_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
60a2ee7751f2086b7ed18bfd3c4f9610cb1b837e35b0142a02b4ed747f2c6f76
frank-lang/frank
Compile.hs
# LANGUAGE ScopedTypeVariables # # LANGUAGE ViewPatterns # Compile Frank to Shonky module Compile where import Control.Monad import Control.Monad.Identity import Control.Monad.State import Data.List import qualified Data.Map.Strict as M import qualified Data.Set as S import Syntax import qualified Shonky.Syntax a...
null
https://raw.githubusercontent.com/frank-lang/frank/1df9644b57551232fdde5a43acabaf790e86cb17/Compile.hs
haskell
interfaces are ignored for now. add to a map? a constructor is then just a cons cell of its arguments how to do pattern matching correctly? maybe they are just n-adic functions too? pure ones are just pure functions, etc. return $ x : xs' use the type to generate the signature of commands...
# LANGUAGE ScopedTypeVariables # # LANGUAGE ViewPatterns # Compile Frank to Shonky module Compile where import Control.Monad import Control.Monad.Identity import Control.Monad.State import Data.List import qualified Data.Map.Strict as M import qualified Data.Set as S import Syntax import qualified Shonky.Syntax a...
4f657d99a82ee23c09997bbeb27032497e754e3577f4f253928fbc9f6e2808d8
raph-amiard/CamllVM
21_99Bottles_iter_clean.ml
for n = 99 downto 1 do Printf.printf "%d bottles of beer on the wall\n" n; Printf.printf "%d bottles of beer\n" n; Printf.printf "Take one down, pass it around\n"; Printf.printf "%d bottles of beer on the wall\n\n" (pred n); done
null
https://raw.githubusercontent.com/raph-amiard/CamllVM/d36928f0e81a6f4f65ddd3a8653887d187632dc2/test/testfiles/21_99Bottles_iter_clean.ml
ocaml
for n = 99 downto 1 do Printf.printf "%d bottles of beer on the wall\n" n; Printf.printf "%d bottles of beer\n" n; Printf.printf "Take one down, pass it around\n"; Printf.printf "%d bottles of beer on the wall\n\n" (pred n); done
a48d6e74f362cd43c8c24060950f0b767e639fc74161d0a083c5208873359d68
learningclojurescript/code-examples
project.clj
(defproject testing "0.1.0-SNAPSHOT" :description "FIXME: write this!" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :min-lein-version "2.6.1" :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/clojurescript "1.7.228"] [cljs-ajax "0.5...
null
https://raw.githubusercontent.com/learningclojurescript/code-examples/fdbd0e35ae5a16d53f1f784a52c25bcd4e5a8097/chapter-8/testing/project.clj
clojure
If no code is to be run, set :figwheel true for continued automagical reloading This next build is an compressed minified build for production. You can build this with: :http-server-root "public" ;; default and assumes "resources" ; default watch and update CSS if you want to embed a ring handler into the figwhe...
(defproject testing "0.1.0-SNAPSHOT" :description "FIXME: write this!" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :min-lein-version "2.6.1" :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/clojurescript "1.7.228"] [cljs-ajax "0.5...
aa0499c20b0556cdb1390488b97e7dfe6b3e89ddc95240d4b26c12ebcd658e57
jgm/commonmark-hs
Smart.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE UndecidableInstances # module Commonmark.Extensions.Smart ( HasQuoted(..) , smartPunctuationSpec ) where import Commonmark.Types import Commonmark.Syntax import Commonmark.Inlines import Commonmark.H...
null
https://raw.githubusercontent.com/jgm/commonmark-hs/78fe129347afe7be1e33405bfb7a74832035498d/commonmark-extensions/src/Commonmark/Extensions/Smart.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE UndecidableInstances # module Commonmark.Extensions.Smart ( HasQuoted(..) , smartPunctuationSpec ) where import Commonmark.Types import Commonmark.Syntax import Commonmark.Inlines import Commonmark.Html import Commonmark.SourceMap imp...
0f8378f5451b305542dfb02c957b35f78eba70b342d79479fc26c4fa266878d3
matsen/pplacer
convex.mli
Notes : In the manuscript , there is no notion of optional color . However , that notion is useful here . In the aparts , an between color of None is any color that is not in B(\pi ) , and is not forced upon us by the above color . In this situation , the between color b can be any color from one of t...
null
https://raw.githubusercontent.com/matsen/pplacer/f40a363e962cca7131f1f2d372262e0081ff1190/pplacer_src/convex.mli
ocaml
a pair (c, X) apart = almost partition Here the int list is the list of top_id's that are in parallel with the * top_id's of the subtree below. QuestionMap should be a map from questions Basics. * Just list union, called A in the manuscript. * The union of the pairwise intersections, called B in the manuscr...
Notes : In the manuscript , there is no notion of optional color . However , that notion is useful here . In the aparts , an between color of None is any color that is not in B(\pi ) , and is not forced upon us by the above color . In this situation , the between color b can be any color from one of t...
8ad28ee71df7e4e6f5da344b45311da42f7286bacbf3d20daab4ed17a2ded00a
ds-wizard/engine-backend
Detail_Bundle_GET.hs
module Wizard.Api.Handler.DocumentTemplate.Detail_Bundle_GET where import Servant import Shared.Api.Handler.Common import Shared.Model.Context.TransactionState import Wizard.Api.Handler.Common import Wizard.Api.Resource.TemporaryFile.TemporaryFileDTO import Wizard.Api.Resource.TemporaryFile.TemporaryFileJM () import ...
null
https://raw.githubusercontent.com/ds-wizard/engine-backend/c7bcacdd84a09b7911c7cb1a17e7af0a2d0c1f18/engine-wizard/src/Wizard/Api/Handler/DocumentTemplate/Detail_Bundle_GET.hs
haskell
module Wizard.Api.Handler.DocumentTemplate.Detail_Bundle_GET where import Servant import Shared.Api.Handler.Common import Shared.Model.Context.TransactionState import Wizard.Api.Handler.Common import Wizard.Api.Resource.TemporaryFile.TemporaryFileDTO import Wizard.Api.Resource.TemporaryFile.TemporaryFileJM () import ...
85cc7bb18c53751cea690f8fc627152dbd15045c58789c6b7625e053099da2fe
cmsc430/www
interp-prim.rkt
#lang racket (provide interp-prim0 interp-prim1 interp-prim2) ;; Op0 -> Answer (define (interp-prim0 op) (match op ['read-byte (read-byte)] ['peek-byte (peek-byte)] ['void (void)])) ;; Op1 Value -> Answer (define (interp-prim1 op v) (match op ['add1 (if (integer? v) (add1 v) 'err)] ...
null
https://raw.githubusercontent.com/cmsc430/www/5b8203006d116d84d0829632bac77e81f09b85f5/langs/fraud/interp-prim.rkt
racket
Op0 -> Answer Op1 Value -> Answer Op2 Value Value -> Answer Any -> Boolean
#lang racket (provide interp-prim0 interp-prim1 interp-prim2) (define (interp-prim0 op) (match op ['read-byte (read-byte)] ['peek-byte (peek-byte)] ['void (void)])) (define (interp-prim1 op v) (match op ['add1 (if (integer? v) (add1 v) 'err)] ['sub1 (if (integer? v) (sub...
bb394c455c0683cba89ada105105cefb498dc7a900695aa9123fe252a201233a
mikera/vectorz-clj
test_linear.clj
(ns mikera.vectorz.test-linear (:use [clojure.test] [clojure.core.matrix :exclude [rank]] [clojure.core.matrix.linear]) (:require [mikera.vectorz.core :as v])) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) (set-current-implementation :vectorz) (deftest test-svd (let [r...
null
https://raw.githubusercontent.com/mikera/vectorz-clj/cf98ff89c7f1d26b98eb9bc18b1b0a3e53176dca/src/test/clojure/mikera/vectorz/test_linear.clj
clojure
TODO: Reinstate once linear algebra implementation complete Singular matrix
(ns mikera.vectorz.test-linear (:use [clojure.test] [clojure.core.matrix :exclude [rank]] [clojure.core.matrix.linear]) (:require [mikera.vectorz.core :as v])) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) (set-current-implementation :vectorz) (deftest test-svd (let [r...
446f094d7cba73b236dfda9cfc16781670106df71630f389face552f86c6eb4e
caiorulli/vega
scheduler.clj
(ns caiorulli.vega.scheduler (:require [chime.core :as chime] [chime.core-async :refer [chime-ch]] [clojure.core.async :refer [close!]] [integrant.core :as ig] [taoensso.timbre :as timbre]) (:import [java.time Instant Duration])) (defn create-chime [recurrence] (...
null
https://raw.githubusercontent.com/caiorulli/vega/09a8c73e74c69a36b9b1469af330e4133311541b/src/caiorulli/vega/scheduler.clj
clojure
(ns caiorulli.vega.scheduler (:require [chime.core :as chime] [chime.core-async :refer [chime-ch]] [clojure.core.async :refer [close!]] [integrant.core :as ig] [taoensso.timbre :as timbre]) (:import [java.time Instant Duration])) (defn create-chime [recurrence] (...
1aad5675a3074d1a52472fcf0ef0b7d38263aec34138feb28ce1a8b2400db793
jdz/rfc2388
packages.lisp
;;;; -*- mode: LISP; package: RFC2388 -*- Copyright ( c ) 2003 ;;;; ;;;; Redistribution and use in source and binary forms, with or without ;;;; modification, are permitted provided that the following conditions ;;;; are met: 1 . Redistributions of source code must retain the above copyright ;;;; notice, this ...
null
https://raw.githubusercontent.com/jdz/rfc2388/591bcf7e77f2c222c43953a80f8c297751dc0c4e/packages.lisp
lisp
-*- mode: LISP; package: RFC2388 -*- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: notice, this list of conditions and the following disclaimer. notice, this list of conditions and the following disclaimer in t...
Copyright ( c ) 2003 1 . Redistributions of source code must retain the above copyright 2 . Redistributions in binary form must reproduce the above copyright THIS SOFTWARE IS PROVIDED BY THE AUTHOR ` ` AS IS '' AND ANY EXPRESS OR INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT ...
713cb60fc44c4c7895269447c5e838308003e89a864f2463ff03e4be11ccb253
b-social/zebra
payment_methods_test.clj
(ns zebra.payment-methods-test (:require [clojure.test :refer :all] [zebra.payment-methods :refer [create retrieve]] [zebra.helpers.constants :refer [api-key tokens]])) (deftest create-payment-method (let [payment-method (create {:type "card" ...
null
https://raw.githubusercontent.com/b-social/zebra/0dac502c2a493d3eeb74b35195dbcae206978d55/test/zebra/payment_methods_test.clj
clojure
(ns zebra.payment-methods-test (:require [clojure.test :refer :all] [zebra.payment-methods :refer [create retrieve]] [zebra.helpers.constants :refer [api-key tokens]])) (deftest create-payment-method (let [payment-method (create {:type "card" ...
ea65aa2dcccab678a532e81d5d4b8c751b73e6dc7f1d4201a245a10e2cb513d2
janestreet/parsexp
parser_equivalence.ml
About this file : It checks the equivalence of the various parsexp parsers , as well some sexplib parsers . This check is manual , it is not run in hydra in any way . This requires instrumentation , so I build my own compiler like so : # ./configure -prefix $ PWD / installed -afl - instrument & ...
null
https://raw.githubusercontent.com/janestreet/parsexp/9fd77f715dfb26f740ba06948dd8b2a48c1f874e/fuzz/parser_equivalence.ml
ocaml
About this file : It checks the equivalence of the various parsexp parsers , as well some sexplib parsers . This check is manual , it is not run in hydra in any way . This requires instrumentation , so I build my own compiler like so : # ./configure -prefix $ PWD / installed -afl - instrument & ...
9cab490a811d3eb96376cd0b6f078b143a156660fa05eacdc3336f8fa54bed63
sulami/spielwiese
13.hs
#!/usr/bin/env stack -- stack --resolver lts-9.13 --install-ghc runghc module Main where type Firewall = (Int, Int) readFirewall :: String -> Firewall readFirewall s = let [a,b] = map read . words $ filter (/= ':') s :: [Int] in (a, b) severity :: Int -> Firewall -> Int severity offset (d,r) = if caught offset (d,r...
null
https://raw.githubusercontent.com/sulami/spielwiese/da354aa112d43d7ec5f258f4b5afafd7a88c8aa8/advent17/13.hs
haskell
stack --resolver lts-9.13 --install-ghc runghc
#!/usr/bin/env stack module Main where type Firewall = (Int, Int) readFirewall :: String -> Firewall readFirewall s = let [a,b] = map read . words $ filter (/= ':') s :: [Int] in (a, b) severity :: Int -> Firewall -> Int severity offset (d,r) = if caught offset (d,r) then d * r else 0 caught :: Int -> Firewall -> ...
25aeee15d2ac3ac329c9a87666c901a9cb5c756a4c58cea5ef5664f3576cb633
kudu-dynamics/blaze
SubOp.hs
module Blaze.Types.Pil.Op.SubOp where -- This module is generated. Please use app/gen_pil_ops/Main.hs to modify. import Blaze.Prelude data SubOp expr = SubOp { left :: expr , right :: expr } deriving (Eq, Ord, Show, Functor, Foldable, Traversable, Generic, FromJSON, ToJSON) instance Hashable a => Hashable (Su...
null
https://raw.githubusercontent.com/kudu-dynamics/blaze/a385bb3b37a0a0e061217ebdd70dd0eecbb20332/src/Blaze/Types/Pil/Op/SubOp.hs
haskell
This module is generated. Please use app/gen_pil_ops/Main.hs to modify.
module Blaze.Types.Pil.Op.SubOp where import Blaze.Prelude data SubOp expr = SubOp { left :: expr , right :: expr } deriving (Eq, Ord, Show, Functor, Foldable, Traversable, Generic, FromJSON, ToJSON) instance Hashable a => Hashable (SubOp a)
c341fa6ea528292890da180f25b4afe7717589276d65c1c9890918285005f16b
banacorn/agda-language-server
Main.hs
module Main where import Options import Server ( run ) import System.Console.GetOpt import System.Environment ( getArgs ) import Text.Read ( readMaybe ) main :: IO () main = do options <- getOptionsFromArgv ...
null
https://raw.githubusercontent.com/banacorn/agda-language-server/41b8fb0ea16509fc7253005fdb73a6796a61af18/app/Main.hs
haskell
module Main where import Options import Server ( run ) import System.Console.GetOpt import System.Environment ( getArgs ) import Text.Read ( readMaybe ) main :: IO () main = do options <- getOptionsFromArgv ...
95debb1b95882c6f52b9eed066297892430fe3656ca098ad2efb795f0a39bc1c
typelead/etlas
World.hs
----------------------------------------------------------------------------- -- | -- Module : Distribution.Client.World Copyright : ( c ) 2009 -- License : BSD-like -- -- Maintainer : -- Stability : provisional -- Portability : portable -- Interface to the world - file that contains a list...
null
https://raw.githubusercontent.com/typelead/etlas/bbd7c558169e1fda086e759e1a6f8c8ca2807583/etlas/Distribution/Client/World.hs
haskell
--------------------------------------------------------------------------- | Module : Distribution.Client.World License : BSD-like Maintainer : Stability : provisional Portability : portable requested packages. Meant to be imported qualified. A world file entry stores the package-name, pac...
Copyright : ( c ) 2009 Interface to the world - file that contains a list of explicitly module Distribution.Client.World ( WorldPkgInfo(..), insert, delete, getContents, ) where import Distribution.Types.Dependency import Distribution.PackageDescription ( FlagAssignment, mkFlagNam...
eba306543806c6952e5ede349e75dcbe8dc7d33cfd8a0c229a87e970d982a802
nbeloglazov/blog-projects
vectors_3d.clj
(ns vector-generation.vectors-3d (:require [quil.core :as q :include-macros true] [quil.middleware :as m])) ;;; Source code for Random Vector Generation article . ;;; -vector-generation.html ;;; ; Number of vectors to generate in visualization (def n 2000) (def frame-rate 10) ;;; ;;; rand-3d functi...
null
https://raw.githubusercontent.com/nbeloglazov/blog-projects/51fce76b8cf7ca208a2f7e87dcff73795c537471/vector-generation/src/vector_generation/vectors_3d.clj
clojure
-vector-generation.html Number of vectors to generate in visualization rand-3d functions described in the article. Visualization. draw axis draw vectors
(ns vector-generation.vectors-3d (:require [quil.core :as q :include-macros true] [quil.middleware :as m])) Source code for Random Vector Generation article . (def n 2000) (def frame-rate 10) (defn rand-3d-v1 [] (let [x (dec (rand 2)) y (dec (rand 2)) z (dec (rand 2)) len...
722f04611059c67cd54902be0bf833a2d1928de701f4eb61722fb18cea565578
dradtke/Lisp-Text-Editor
bin.lisp
(in-package :gtk-cffi) (defclass bin (container) ()) (defcfun "gtk_bin_get_child" pobject (bin pobject)) (defmethod child ((bin bin)) (gtk-bin-get-child bin)) (defmethod (setf kids) (kids (bin bin)) (if (second kids) (error "bin should have only one child") (add bin (car kids))))
null
https://raw.githubusercontent.com/dradtke/Lisp-Text-Editor/b0947828eda82d7edd0df8ec2595e7491a633580/quicklisp/dists/quicklisp/software/gtk-cffi-20120208-cvs/gtk/bin.lisp
lisp
(in-package :gtk-cffi) (defclass bin (container) ()) (defcfun "gtk_bin_get_child" pobject (bin pobject)) (defmethod child ((bin bin)) (gtk-bin-get-child bin)) (defmethod (setf kids) (kids (bin bin)) (if (second kids) (error "bin should have only one child") (add bin (car kids))))
f8f209743ff9794faf2e09f0c7aff186b1343cd4a6bf5eba0b5a08988f917a3f
UChicago-PL/smyth
pretty.mli
(** Pretty-printing. *) open Lang val pat : pat -> string (** Pretty-prints a pattern. *) val typ : typ -> string (** Pretty-prints a type. *) val exp : exp -> string (** Pretty-prints an expression. *)
null
https://raw.githubusercontent.com/UChicago-PL/smyth/08fea281f70d3ee604fde9dde140c8a570d6905d/lib/smyth/pretty.mli
ocaml
* Pretty-printing. * Pretty-prints a pattern. * Pretty-prints a type. * Pretty-prints an expression.
open Lang val pat : pat -> string val typ : typ -> string val exp : exp -> string
c9303f83b50eb348c8ea4a864f4099e3aeb535fca9ee41386ede78af874f25e1
ejgallego/coq-serapi
ser_equality.ml
open Sexplib.Std open Ppx_hash_lib.Std.Hash.Builtin open Ppx_compare_lib.Builtin type multi = [%import: Equality.multi] [@@deriving sexp,yojson,hash,compare]
null
https://raw.githubusercontent.com/ejgallego/coq-serapi/61d2a5c092c1918312b8a92f43a374639d1786f9/serlib/ser_equality.ml
ocaml
open Sexplib.Std open Ppx_hash_lib.Std.Hash.Builtin open Ppx_compare_lib.Builtin type multi = [%import: Equality.multi] [@@deriving sexp,yojson,hash,compare]
2309b18821d1a6841879eeb648304254fad1eec78223ab9c3dd67e71883e475d
nikita-volkov/rebase
Internal.hs
module Rebase.Data.Text.Internal ( module Data.Text.Internal ) where import Data.Text.Internal
null
https://raw.githubusercontent.com/nikita-volkov/rebase/7c77a0443e80bdffd4488a4239628177cac0761b/library/Rebase/Data/Text/Internal.hs
haskell
module Rebase.Data.Text.Internal ( module Data.Text.Internal ) where import Data.Text.Internal
16d22c95b194ce6fe71489fcdd80c3dcfd9ed0731de53e1554551cb6b2583ab3
typelead/etlas
GHCJS.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE RankNTypes #-} module Distribution.Simple.GHCJS ( configure, getInstalledPackages, getPackageDBContents, buildLib, buildExe, replLib, replExe, startInterpreter, installLib, installExe, libAbiHash, hcPkgInfo, regi...
null
https://raw.githubusercontent.com/typelead/etlas/bbd7c558169e1fda086e759e1a6f8c8ca2807583/etlas-cabal/Distribution/Simple/GHCJS.hs
haskell
# LANGUAGE RankNTypes # location of ghcjs to help find ghcjs-pkg in the case that the user did not configure gcc and ld method. | Given a package DB stack, return all installed packages. paths. We need to substitute the right value in so that when we, for example, call gcc, we have proper paths to give it. Deter...
# LANGUAGE FlexibleContexts # module Distribution.Simple.GHCJS ( configure, getInstalledPackages, getPackageDBContents, buildLib, buildExe, replLib, replExe, startInterpreter, installLib, installExe, libAbiHash, hcPkgInfo, registerPackage, compone...
4f53ef4c45d9cb609fb2b7d8c3a033a067097fa424b28c0e71db5bad19705948
originrose/think.image
util.clj
(ns think.image.util (:require [clojure.core.matrix :as m] [mikera.image.core :as i] [mikera.image.colours :as colour] [think.image.color :as color])) (defn hue-wheel-image "Takes a saturation and a value and produces an image that walks the hue wheel whith that saturation and...
null
https://raw.githubusercontent.com/originrose/think.image/0179d104d5fa74977890942858b44e1349457514/src/clj/think/image/util.clj
clojure
(ns think.image.util (:require [clojure.core.matrix :as m] [mikera.image.core :as i] [mikera.image.colours :as colour] [think.image.color :as color])) (defn hue-wheel-image "Takes a saturation and a value and produces an image that walks the hue wheel whith that saturation and...
ec3e7d512a7984e6cf65ed5e2875240af4673de76f88b2e1364fdf0bc6496bbe
marcelog/erlci
erlci_trigger.erl
%%% @doc Trigger behavior. %%% Copyright 2017 ; %%% 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 wr...
null
https://raw.githubusercontent.com/marcelog/erlci/db82e2e4328a5f842ab3041afcd41453a08e806e/apps/erlci/src/triggers/erlci_trigger.erl
erlang
@doc Trigger behavior. 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 specifi...
Copyright 2017 ; Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @copyright < > @author < > -module(erlci_trigger). -author(""). -github(""). -homepage("/"). -license("Apache License 2.0"). -include("include/...
2346129c45d006413409ff97125099c87ee685c86580c6a97fa1c22430caaf99
ocsigen/js_of_ocaml
gh1007.ml
Js_of_ocaml tests * / * Copyright ( C ) 2020 Hugo Heuzard * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking exception ; * either version 2.1 of the L...
null
https://raw.githubusercontent.com/ocsigen/js_of_ocaml/4b1253d25c7539a73305f4320a945ee9751abfee/compiler/tests-compiler/gh1007.ml
ocaml
There was a bad interaction between the code generating trampoline for recursive functions and the code responsible for capturing mutable variable in closures. In practice, the issue would trigger when mutually recursives functions, where recursion is not in tail position, appear inside a for-loop. ...
Js_of_ocaml tests * / * Copyright ( C ) 2020 Hugo Heuzard * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking exception ; * either version 2.1 of the L...
729fbda57b601171ec7521637a71201a3b97420fb97ab7778857a6c1d8dafa1d
ryanpbrewster/haskell
P042Test.hs
module Problems.P042Test ( case_042_main ) where import Problems.P042 import Test.Tasty.Discover (Assertion, (@?=)) import qualified TestData.P042 case_042_main :: Assertion case_042_main = process TestData.P042.txt @?= "162"
null
https://raw.githubusercontent.com/ryanpbrewster/haskell/6edd0afe234008a48b4871032dedfd143ca6e412/project-euler/tests/Problems/P042Test.hs
haskell
module Problems.P042Test ( case_042_main ) where import Problems.P042 import Test.Tasty.Discover (Assertion, (@?=)) import qualified TestData.P042 case_042_main :: Assertion case_042_main = process TestData.P042.txt @?= "162"
316b8cf171b7c064048dfb235560840bfed5a19cb08e8c93931e7e0585d4a677
snoyberg/conduit
ProcessSpec.hs
# LANGUAGE CPP # {-# LANGUAGE OverloadedStrings #-} module Data.Conduit.ProcessSpec (spec, main) where import Test.Hspec import Test.Hspec.QuickCheck (prop) import Data.Conduit import qualified Data.Conduit.List as CL import Data.Conduit.Process import Control.Concurrent.Async (concurrently) import qualified Data.Byte...
null
https://raw.githubusercontent.com/snoyberg/conduit/1771780ff4b606296924a28bf5d4433ae6a916f3/conduit-extra/test/Data/Conduit/ProcessSpec.hs
haskell
# LANGUAGE OverloadedStrings # stdout stderr stdout stderr stdout stderr this in a loop.
# LANGUAGE CPP # module Data.Conduit.ProcessSpec (spec, main) where import Test.Hspec import Test.Hspec.QuickCheck (prop) import Data.Conduit import qualified Data.Conduit.List as CL import Data.Conduit.Process import Control.Concurrent.Async (concurrently) import qualified Data.ByteString.Lazy as L import qualified D...
d6b87b8dd2eba56790a7b14f4c5be2c45caba06789670bd41de286d746c5acc7
bomberstudios/mtasc
dynArray.mli
* DynArray - Resizeable Ocaml arrays * Copyright ( C ) 2003 * Copyright ( C ) 2003 * * 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 2.1 of ...
null
https://raw.githubusercontent.com/bomberstudios/mtasc/d7c2441310248776aa89d60f9c8f98d539bfe8de/src/extlib-dev/dynArray.mli
ocaml
* Dynamic arrays. A dynamic array is equivalent to a OCaml array that will resize itself when elements are added or removed, except that floats are boxed and that no initialization element is required. * [create()] returns a new empty dynamic array. * [make count] returns an array with some memory already a...
* DynArray - Resizeable Ocaml arrays * Copyright ( C ) 2003 * Copyright ( C ) 2003 * * 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 2.1 of ...
85b770dcf20a2a915d044ae86c59cf0f9c97db8a27b14a7a791c3c28ce314a99
janestreet/ocaml_plugin
dsl.ml
open! Core type t1 = string let make_v1 s = s module type Config_intf_v1 = sig val job : t1 end let univ_constr_v1 : (module Config_intf_v1) Ocaml_plugin.Dynloader.Univ_constr.t = Ocaml_plugin.Dynloader.Univ_constr.create () ;; type t2 = string let make_v2 s = s module type Config_intf_v2 = sig val job : t...
null
https://raw.githubusercontent.com/janestreet/ocaml_plugin/7edff57f62e1d0039719f8f29c3e9d0aa85568a2/sample/src/dsl.ml
ocaml
open! Core type t1 = string let make_v1 s = s module type Config_intf_v1 = sig val job : t1 end let univ_constr_v1 : (module Config_intf_v1) Ocaml_plugin.Dynloader.Univ_constr.t = Ocaml_plugin.Dynloader.Univ_constr.create () ;; type t2 = string let make_v2 s = s module type Config_intf_v2 = sig val job : t...
3f3127850203173dbcef8ff79e0369038b02f221c0583c95fd4a13788955fa4b
ocsigen/obrowser
camlinternalOO.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet Cri...
null
https://raw.githubusercontent.com/ocsigen/obrowser/977c09029ea1e4fde4fb0bf92b4d893835bd9504/rt/caml/camlinternalOO.ml
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 2002 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with $ I d : camlinternalOO.ml 2008 - 01 - 1...
09700593b284f3f568bb229053b8fcfb7f823fe2aca1d8d66f25fecdc6f21dcb
prg-titech/Kani-CUDA
sample.rkt
#lang rosette (require "../lang.rkt") ;(define (test j) ;(printf "~a\n" (thread-idx i)) ;(printf "~a\n" (block-idx i)) ;(for- i 0 5 1 ; (print i))) ( invoke - kernel test ' ( 2 5 ) ' ( 2 3 ) 0 ) ( invoke - kernel test ' ( 2 5 ) ' ( 2 3 ) 1 ) (define (same i) (and (eq? i (??)) (eq? (??) (??)))) (define (pol...
null
https://raw.githubusercontent.com/prg-titech/Kani-CUDA/e97c4bede43a5fc4031a7d2cfc32d71b01ac26c4/Emulator/test/sample.rkt
racket
(define (test j) (printf "~a\n" (thread-idx i)) (printf "~a\n" (block-idx i)) (for- i 0 5 1 (print i))) (current-bitwidth #f)
#lang rosette (require "../lang.rkt") ( invoke - kernel test ' ( 2 5 ) ' ( 2 3 ) 0 ) ( invoke - kernel test ' ( 2 5 ) ' ( 2 3 ) 1 ) (define (same i) (and (eq? i (??)) (eq? (??) (??)))) (define (poly x) (+ (* x x x x) (* 6 x x x) (* 11 x x) (* 6 x))) (define (a x) (* (+ x 1) (+ x (??)) (+ x (??)) (+ x (??))...
952f4995aa68edcc8c8e0530b29fc14e6e150b703b2722311987c67ab9b9543e
racket/parser-tools
stx.rkt
#lang racket (require "util.rkt" syntax/id-table) (provide parse) (define (bad-args stx num) (raise-syntax-error #f (format "incorrect number of arguments (should have ~a)" num) stx)) ;; char-range-arg: syntax-object syntax-object -> nat If c contains is a character or length 1 string , retu...
null
https://raw.githubusercontent.com/racket/parser-tools/d76cb89c36c22ce569475b628164393c9ed35fb6/parser-tools-lib/parser-tools/private-lex/stx.rkt
racket
char-range-arg: syntax-object syntax-object -> nat for the character. Otherwise raises a syntax error. parse : syntax-object (box (list-of syntax-object)) -> s-re (see re.rkt) checks for errors and generates the plain s-exp form for s Expands lex-abbrevs and applies lex-trans. seen-lex-abbrevs: id-table Check f...
#lang racket (require "util.rkt" syntax/id-table) (provide parse) (define (bad-args stx num) (raise-syntax-error #f (format "incorrect number of arguments (should have ~a)" num) stx)) If c contains is a character or length 1 string , returns the integer (define (char-range-arg stx containing...
eccc20c9e33eb227969106f85659da06d2014df989d932d87ef2b300ead094cb
vvvvalvalval/scope-capture
repl.clj
(ns sc.repl (:require [clojure.main :as main] [sc.api])) (defn ep-repl [ep-id] (let [ep (sc.api/ep-info ep-id) ep-id (:sc.ep/id ep) cs-id (-> ep :sc.ep/code-site :sc.cs/id)] (main/repl :prompt (fn sc-prompt [] (print (str "SC" (pr-str [ep-id cs-id]) "=>"))) ...
null
https://raw.githubusercontent.com/vvvvalvalval/scope-capture/1214ff41459c41df57ef55b3fdf01d965ad611b2/src/sc/repl.clj
clojure
(ns sc.repl (:require [clojure.main :as main] [sc.api])) (defn ep-repl [ep-id] (let [ep (sc.api/ep-info ep-id) ep-id (:sc.ep/id ep) cs-id (-> ep :sc.ep/code-site :sc.cs/id)] (main/repl :prompt (fn sc-prompt [] (print (str "SC" (pr-str [ep-id cs-id]) "=>"))) ...
fb3a8c30e262a39858d7207ed7db65d4e2340dd93d3176b313d8c7148a576b6c
MarcosPividori/push-notify
Constants.hs
-- GSoC 2013 - Communicating with mobile devices. {-# LANGUAGE OverloadedStrings #-} -- | This Module define the main contants for sending Push Notifications through Google Cloud Messaging. module Network.PushNotify.Gcm.Constants where import Data.Text cPOST_URL :: Text cPOST_URL = "" -- Fields for JSON object in ...
null
https://raw.githubusercontent.com/MarcosPividori/push-notify/4c023c3fd731178d1d114774993a5e337225baa1/push-notify/Network/PushNotify/Gcm/Constants.hs
haskell
GSoC 2013 - Communicating with mobile devices. # LANGUAGE OverloadedStrings # | This Module define the main contants for sending Push Notifications through Google Cloud Messaging. Fields for JSON object in requests to GCM servers. Fields for a JSON response to a sucessful request. More constants
module Network.PushNotify.Gcm.Constants where import Data.Text cPOST_URL :: Text cPOST_URL = "" cREGISTRATION_IDS :: Text cREGISTRATION_IDS = "registration_ids" cCOLLAPSE_KEY :: Text cCOLLAPSE_KEY = "collapse_key" cDATA :: Text cDATA = "data" cDELAY_WHILE_IDLE :: Text cDELAY_WHILE_IDLE = "delay_while_idle" cT...
b9605760b58524b926e0c5e4f7823a99350a82e2ef47fe005d05b5b921f06c3e
kupl/LearnML
patch.ml
type formula = | True | False | Not of formula | AndAlso of (formula * formula) | OrElse of (formula * formula) | Imply of (formula * formula) | Equal of (exp * exp) and exp = Num of int | Plus of (exp * exp) | Minus of (exp * exp) let rec eval (f : formula) : bool = let rec evalexp (f1 : exp) : int =...
null
https://raw.githubusercontent.com/kupl/LearnML/c98ef2b95ef67e657b8158a2c504330e9cfb7700/result/cafe2/formula/sub41/patch.ml
ocaml
type formula = | True | False | Not of formula | AndAlso of (formula * formula) | OrElse of (formula * formula) | Imply of (formula * formula) | Equal of (exp * exp) and exp = Num of int | Plus of (exp * exp) | Minus of (exp * exp) let rec eval (f : formula) : bool = let rec evalexp (f1 : exp) : int =...
942f6cfa31801057a03e953cabd47fbf9ae96d434319b230285c1ab2d698faab
garrigue/lablgtk
dtd.ml
* , an small Xml parser / printer with DTD support . * Copyright ( C ) 2003 ( ) * * 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 2.1 o...
null
https://raw.githubusercontent.com/garrigue/lablgtk/504fac1257e900e6044c638025a4d6c5a321284c/tools/introspection/xml-light/dtd.ml
ocaml
local cast Dtd.dtd -> dtd - for debug only -
* , an small Xml parser / printer with DTD support . * Copyright ( C ) 2003 ( ) * * 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 2.1 o...
fca23ecffb887c89227a825297f467bc73bd03259ae5993285050dde0ae5384b
theodormoroianu/SecondYearCourses
LambdaChurch_20210415164332.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_20210415164332.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 ...
2765c704b0a1d21d9b009c813536e9cf37c0cb6b16e15dc4cb9b40ae4a2c5488
robert-stuttaford/bridge
routes.cljs
(ns bridge.ui.routes (:require [bidi.bidi :as bidi] [bridge.ui.util :refer [<== ==> log]] [pushy.core :as pushy] [re-frame.core :as rf])) (def *routes (atom nil)) (defn url->route [url] (or (bidi/match-route @*routes url) (throw (ex-info (str "No route found for url") {:u...
null
https://raw.githubusercontent.com/robert-stuttaford/bridge/867d81354457c600cc5c25917de267a8e267c853/src/bridge/ui/routes.cljs
clojure
(ns bridge.ui.routes (:require [bidi.bidi :as bidi] [bridge.ui.util :refer [<== ==> log]] [pushy.core :as pushy] [re-frame.core :as rf])) (def *routes (atom nil)) (defn url->route [url] (or (bidi/match-route @*routes url) (throw (ex-info (str "No route found for url") {:u...
6e5097fa70cbd7d08ceae414a07b88f47b68942091dea438381fa68549c11783
ryanpbrewster/haskell
092.hs
-- 092.hs - A number chain is created by continuously adding the square of the digits in - a number to form a new number until it has been seen before . - - For example , - - 44 → 32 → 13 → 10 → 1 → 1 - 85 → 89 → 145 → 42 → 20 → 4 → 16 → 37 → 58 → 89 - - Therefore any chain that arrives at 1 ...
null
https://raw.githubusercontent.com/ryanpbrewster/haskell/6edd0afe234008a48b4871032dedfd143ca6e412/project-euler/src/Old/092.hs
haskell
092.hs
- A number chain is created by continuously adding the square of the digits in - a number to form a new number until it has been seen before . - - For example , - - 44 → 32 → 13 → 10 → 1 → 1 - 85 → 89 → 145 → 42 → 20 → 4 → 16 → 37 → 58 → 89 - - Therefore any chain that arrives at 1 or 89 will...
58971667792accb97232f1324372fe604f04969f881ac14ed949a9b8c13028b7
yallop/ocaml-asp
json_tokens.ml
* Copyright ( c ) 2018 and * * This file is distributed under the terms of the MIT License . * See the file LICENSE for details . * Copyright (c) 2018 Neelakantan Krishnaswami and Jeremy Yallop * * This file is distributed under the terms of the MIT License. * See the file LICENSE for details. *...
null
https://raw.githubusercontent.com/yallop/ocaml-asp/a092f17ea55d427c63414899e39a8fe80b30db14/benchmarks/json/json_tokens.ml
ocaml
* Copyright ( c ) 2018 and * * This file is distributed under the terms of the MIT License . * See the file LICENSE for details . * Copyright (c) 2018 Neelakantan Krishnaswami and Jeremy Yallop * * This file is distributed under the terms of the MIT License. * See the file LICENSE for details. *...
df780be3407ed760a85cead8269602c850475d4f3ad0f1722b74807f42b04b09
sighingnow/mxnet-haskell
NDArray.hs
----------------------------------------------------------- -- | module : MXNet . Core . Base . NDArray copyright : ( c ) 2016 - 2017 He license : MIT -- maintainer: -- NDArray module , provide an imperative - style programming int...
null
https://raw.githubusercontent.com/sighingnow/mxnet-haskell/b8e8c6834519df512533094122ee223fd9fb91d8/mxnet/src/MXNet/Core/Base/NDArray.hs
haskell
--------------------------------------------------------- | maintainer: # OPTIONS_GHC -Wno-redundant-constraints # | Make a new empty ndarray with specified shape, context and data type. ^ Shape. ^ Context/ ^ If delayed allocate. ^ size of every dimensions. ^ Dimensions and size of every dim...
module : MXNet . Core . Base . NDArray copyright : ( c ) 2016 - 2017 He license : MIT NDArray module , provide an imperative - style programming interface . # OPTIONS_GHC -Wno - missing - methods # # LANGUAGE DataKinds # # LANGUAGE ExistentialQuanti...
20791197d8d4ea32968ec3eb504a6029cb60bea81b7b71cfb35269b61ed55c1e
radicle-dev/radicle-alpha
Foo.hs
# OPTIONS_GHC -fno - warn - partial - fields # -- | The purpose of the 'Foo' datatype is to check the instances of ' FromRad ' and ' ToRad ' derived via generics . module Radicle.Internal.Foo (Foo) where import Protolude import Data.Scientific (Scientific) import Test.QuickCheck impor...
null
https://raw.githubusercontent.com/radicle-dev/radicle-alpha/b38a360d9830a938fa83fc066c1d131ec903b5e1/radicle-lang/test/spec/Radicle/Internal/Foo.hs
haskell
| The purpose of the 'Foo' datatype is to check the instances of
# OPTIONS_GHC -fno - warn - partial - fields # ' FromRad ' and ' ToRad ' derived via generics . module Radicle.Internal.Foo (Foo) where import Protolude import Data.Scientific (Scientific) import Test.QuickCheck import Test.QuickCheck.Instances () import Radicle ...
59142103393ed4ff361c9a0b662294d4e889c4a3df2c50b20b90d89b245381db
amnh/poy5
pdfdoc.mli
(** Document-level functions *) * The type of the four rotations of pages . This defines how a viewing application ( e.g Acrobat ) displays the page . application (e.g Acrobat) displays the page. *) type rotation = Rotate0 | Rotate90 | Rotate180 | Rotate270 (** Utility function to convert from rotation to ...
null
https://raw.githubusercontent.com/amnh/poy5/da563a2339d3fa9c0110ae86cc35fad576f728ab/src/camlpdf-0.3/pdfdoc.mli
ocaml
* Document-level functions * Utility function to convert from rotation to integers. * A type representing a page. [content] is the list of objects containing the graphical content stream (see the [Pdfpages] module), [mediabox] the page size, [resources] the page's resource dictionary, [rotate] its rotation and [res...
* The type of the four rotations of pages . This defines how a viewing application ( e.g Acrobat ) displays the page . application (e.g Acrobat) displays the page. *) type rotation = Rotate0 | Rotate90 | Rotate180 | Rotate270 val int_of_rotation : rotation -> int * The reverse . raises [ Pdf . PDFError ]...
a0f17ee12a8864715d00b0402bb982b8fb98328a64de3522f746666484879fa6
rollacaster/sketches
core.clj
(ns sketches.core (:require [clojure.java.io :as io] [quil.core :as q] [sketches.generative-artistry.cubic-disarray :as cd] [tech.thomas-sojka.clj-axidraw.core :as axidraw])) (defn plot-sketch [] (let [file-name "temp/sketch.svg"] q/defsketch (q/sketch :draw cd/draw...
null
https://raw.githubusercontent.com/rollacaster/sketches/f0c491e4cfdb522be6a2d7fd0cffb3c36dec46b5/src/sketches/core.clj
clojure
(ns sketches.core (:require [clojure.java.io :as io] [quil.core :as q] [sketches.generative-artistry.cubic-disarray :as cd] [tech.thomas-sojka.clj-axidraw.core :as axidraw])) (defn plot-sketch [] (let [file-name "temp/sketch.svg"] q/defsketch (q/sketch :draw cd/draw...
9df5c9686a801a86c0fa03dc06e3ecc74479ba03d790112426b9901946cebf54
zk/nsfw
gui.cljs
(ns nsfw.devbus.gui (:require [nsfw.fuse :as fuse] [nsfw.util :as nu] [nsfw.devbus :as devbus] [nsfw.components :as nc] [nsfw.page :as page] [nsfw.s3 :as s3] [dommy.core :as dommy] [cljs.reader :as reader] [taoensso.timbre...
null
https://raw.githubusercontent.com/zk/nsfw/ea07ba20cc5453b34a56b34c9d8738bf9bf8e92f/src/cljs/nsfw/devbus/gui.cljs
clojure
(ns nsfw.devbus.gui (:require [nsfw.fuse :as fuse] [nsfw.util :as nu] [nsfw.devbus :as devbus] [nsfw.components :as nc] [nsfw.page :as page] [nsfw.s3 :as s3] [dommy.core :as dommy] [cljs.reader :as reader] [taoensso.timbre...
16530bc08338cb879d3bfaf55e169703e0ac7deed356d9ec6a684606c462bd18
haskell-opengl/OpenGLRaw
FloatPixels.hs
# LANGUAGE PatternSynonyms # -------------------------------------------------------------------------------- -- | Module : Graphics . Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- -----------------------------------...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/APPLE/FloatPixels.hs
haskell
------------------------------------------------------------------------------ | License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ * Extension Support * Enums
# LANGUAGE PatternSynonyms # Module : Graphics . Copyright : ( c ) 2019 Maintainer : < > module Graphics.GL.APPLE.FloatPixels ( glGetAPPLEFloatPixels, gl_APPLE_float_pixels, pattern GL_ALPHA_FLOAT16_APPLE, pattern GL_ALPHA_FLOAT32_APPLE, pattern GL_COLOR_FLOAT_APPLE, pattern GL...
4b10b81b831b6b1bf81f80c7dfc478c348980c069307b333f910071bf9de6a98
g-andrade/taskforce
taskforce_app.erl
% vim: set expandtab softtabstop=4 shiftwidth=4: %% @hidden -module(taskforce_app). -behaviour(application). %% Application callbacks -export([start/2, stop/1]). %%%=================================================================== %%% Application callbacks %%%==============================================...
null
https://raw.githubusercontent.com/g-andrade/taskforce/7ec4f4fe8190e0b3c1fa2126bbdf88f9f724a7c8/src/taskforce_app.erl
erlang
vim: set expandtab softtabstop=4 shiftwidth=4: @hidden Application callbacks =================================================================== Application callbacks =================================================================== -------------------------------------------------------------------- @doc This ...
-module(taskforce_app). -behaviour(application). -export([start/2, stop/1]). @private application : start/[1,2 ] , and should start the processes of the @spec start(StartType , ) - > { ok , Pid } | { ok , Pid , State } | = term ( ) start(_StartType, _St...
40b180d3a1e5c7a30faf74ab05a99074bd8dae5e0a99be61a5ed48a32a9a078d
mflatt/s3-sync
info.rkt
#lang info (define collection "s3-sync") (define deps '(("aws" #:version "1.8") ("http" #:version "0.2") ("base" #:version "6.0.0.4"))) (define build-deps '("scribble-lib" "racket-doc" "rackunit-lib")) (define scribblings '(("s3-sync.scrbl" () ...
null
https://raw.githubusercontent.com/mflatt/s3-sync/46ce35eae8d99f4a7cee945aa7bd9d7b07f8beab/info.rkt
racket
#lang info (define collection "s3-sync") (define deps '(("aws" #:version "1.8") ("http" #:version "0.2") ("base" #:version "6.0.0.4"))) (define build-deps '("scribble-lib" "racket-doc" "rackunit-lib")) (define scribblings '(("s3-sync.scrbl" () ...
5815b770942488f264f711eb950028361919a9dc2738248653100f73f7fee7b8
ocaml-multicore/effects-examples
dyn_wind.ml
(* User-land dynamic wind: #dynamic-wind *) open Effect open Effect.Deep let dynamic_wind before_thunk thunk after_thunk = before_thunk (); let res = match_with thunk () { retc = Fun.id; exnc = (fun e -> after_thunk (); raise e); effc = fun (type a) (e : a Effect.t) -> Some (fun (k...
null
https://raw.githubusercontent.com/ocaml-multicore/effects-examples/4f07e1774b726eec0f6769da0a16b402582d37b5/dyn_wind.ml
ocaml
User-land dynamic wind: #dynamic-wind
open Effect open Effect.Deep let dynamic_wind before_thunk thunk after_thunk = before_thunk (); let res = match_with thunk () { retc = Fun.id; exnc = (fun e -> after_thunk (); raise e); effc = fun (type a) (e : a Effect.t) -> Some (fun (k : (a, _) continuation) -> after_thun...
6c20fe1d015a84b5a341dee75424788672807b60c7cd49057a730649b7bd8bef
kaoskorobase/mescaline
Qt.hs
# LANGUAGE ScopedTypeVariables # module Mescaline.Application.Config.Qt ( getColor ) where import Control.Monad.IO.Class (MonadIO, liftIO) import Mescaline.Application (AppT) import qualified Mescaline.Application as App import Mescaline.Util (readMaybe) import Qtc.ClassTypes....
null
https://raw.githubusercontent.com/kaoskorobase/mescaline/13554fc4826d0c977d0010c0b4fb74ba12ced6b9/app/Mescaline/Application/Config/Qt.hs
haskell
# LANGUAGE ScopedTypeVariables # module Mescaline.Application.Config.Qt ( getColor ) where import Control.Monad.IO.Class (MonadIO, liftIO) import Mescaline.Application (AppT) import qualified Mescaline.Application as App import Mescaline.Util (readMaybe) import Qtc.ClassTypes....
4c6cba727fb9990a39e831e0779ad989b1dea0adbe352162af6ed926b6b48e9b
pascal-knodel/haskell-craft
E'8''3.hs
-- -- -- ---------------- Exercise 8.3 . ---------------- -- -- -- module E'8''3 where import B'C'8 ( Strategy ) Note : Chapter 4 > cabal install import B'C'4 ( Move ( Rock , Paper , Scissors ) , beat , lose ) beatLast :: Strategy beatLast [] = Rock -- Or "Paper" or "Scissors". beatLast (latestM...
null
https://raw.githubusercontent.com/pascal-knodel/haskell-craft/c03d6eb857abd8b4785b6de075b094ec3653c968/_/links/E'8''3.hs
haskell
-------------- -------------- Or "Paper" or "Scissors". Or "Paper" or "Scissors".
Exercise 8.3 . module E'8''3 where import B'C'8 ( Strategy ) Note : Chapter 4 > cabal install import B'C'4 ( Move ( Rock , Paper , Scissors ) , beat , lose ) beatLast :: Strategy beatLast (latestMove : _) = beat latestMove loseLast :: Strategy loseLast (latestMove : _) = lose latestMove ...
4dc3276fc5d9ae88e45f02bc4eadd7d129fb43f0b76f305e00cac69404639232
EduardoRFS/ppx_implicits
typedecl.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/EduardoRFS/ppx_implicits/019428c738d48246d2be9cecc6f4657af76772a1/typing/typedecl.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Types open Format val transl_type_decl: Env.t -> Asttypes.rec_flag -> Parsetree.type_declarati...
45fd93ab1912c99fab9b8c29f15554a0c202d2ebbc6440d6bfe9ce7539db44a6
onyx-platform/onyx
trigger_punctuation_test.clj
(ns onyx.triggers.trigger-punctuation-test (:require [clojure.test :refer [deftest is use-fixtures]] [onyx.windowing.aggregation] [onyx.state.protocol.db :as db] [onyx.state.serializers.utils :as u] [onyx.refinements] [onyx.windowing.window-compile :as wc] ...
null
https://raw.githubusercontent.com/onyx-platform/onyx/74f9ae58cdbcfcb1163464595f1e6ae6444c9782/test/onyx/triggers/trigger_punctuation_test.clj
clojure
(ns onyx.triggers.trigger-punctuation-test (:require [clojure.test :refer [deftest is use-fixtures]] [onyx.windowing.aggregation] [onyx.state.protocol.db :as db] [onyx.state.serializers.utils :as u] [onyx.refinements] [onyx.windowing.window-compile :as wc] ...
38cf8325fd00dea5b634595eeb44a3b4ef601224f406355440f61473d1f68d27
lvh/caesium
secretbox_benchmark.clj
(ns caesium.magicnonce.secretbox-benchmark (:require [caesium.randombytes :refer [randombytes]] [caesium.magicnonce.secretbox :as ms] [caesium.bench-utils :refer [fmt-bytes print-title]] [clojure.test :refer [deftest]] [criterium.core :refer [bench quick-bench]])) (def...
null
https://raw.githubusercontent.com/lvh/caesium/cb90a4325fa48a2e4fb6cad810f340125a53fc57/benchmarks/caesium/magicnonce/secretbox_benchmark.clj
clojure
(ns caesium.magicnonce.secretbox-benchmark (:require [caesium.randombytes :refer [randombytes]] [caesium.magicnonce.secretbox :as ms] [caesium.bench-utils :refer [fmt-bytes print-title]] [clojure.test :refer [deftest]] [criterium.core :refer [bench quick-bench]])) (def...
81e6050175e3b08ed69d1b3e9111b8ad8fa741a2e01f1c148cb25472c6f7e359
GlideAngle/flare-timing
Stop.hs
module Flight.Gap.Validity.Stop (StopValidity(..)) where import GHC.Generics (Generic) import Data.Typeable (Typeable, typeOf) import "newtype" Control.Newtype (Newtype(..)) import Data.Via.Scientific ( DecimalPlaces(..), deriveDecimalPlaces, deriveJsonViaSci, deriveShowViaSci) newtype StopValidity = StopValidity...
null
https://raw.githubusercontent.com/GlideAngle/flare-timing/27bd34c1943496987382091441a1c2516c169263/lang-haskell/gap-valid/library/Flight/Gap/Validity/Stop.hs
haskell
module Flight.Gap.Validity.Stop (StopValidity(..)) where import GHC.Generics (Generic) import Data.Typeable (Typeable, typeOf) import "newtype" Control.Newtype (Newtype(..)) import Data.Via.Scientific ( DecimalPlaces(..), deriveDecimalPlaces, deriveJsonViaSci, deriveShowViaSci) newtype StopValidity = StopValidity...
2f92836958a3c2c02992eb162bc6a1819bb6df8c1dae4a20da9aaac375ba6b9c
rafaeldelboni/nota
pushy_test.cljs
(ns nota.routing.pushy-test (:require [clojure.test :refer [async deftest is] :as test] [secretary.core :as secretary :refer-macros [defroute]] [nota.routing.pushy :as pushy]) (:import goog.history.Html5History)) (secretary/set-config! :prefix "/") (def test-val (atom false)) (def history ...
null
https://raw.githubusercontent.com/rafaeldelboni/nota/c7a3bb44fe98b7cc2f143e40b038e9b17af6fe37/test/nota/routing/pushy_test.cljs
clojure
event listeners started = dispatch no event listeners started = no dispatch
(ns nota.routing.pushy-test (:require [clojure.test :refer [async deftest is] :as test] [secretary.core :as secretary :refer-macros [defroute]] [nota.routing.pushy :as pushy]) (:import goog.history.Html5History)) (secretary/set-config! :prefix "/") (def test-val (atom false)) (def history ...
fb87b0e85dbb1f2dedc039985a3bbd734db746cd9b92f4036ddc284cc5d1a42c
luontola/varjocafe
project.clj
(defproject varjocafe "2.0.0-SNAPSHOT" :description "Mashup of UniCafe's menus" :url "/" :license {:name "Apache License 2.0" :url "-2.0.html"} :dependencies [[org.clojure/clojure "1.6.0"] ; HTTP Server [ring/ring-core "1.3.2"] [ring/ring-devel...
null
https://raw.githubusercontent.com/luontola/varjocafe/cb4c68dce0ef5dd2031ba379dd63b63e8b9433b7/project.clj
clojure
HTTP Server HTTP Routing HTML Templating Date & Time JSON Logging Misc
(defproject varjocafe "2.0.0-SNAPSHOT" :description "Mashup of UniCafe's menus" :url "/" :license {:name "Apache License 2.0" :url "-2.0.html"} :dependencies [[org.clojure/clojure "1.6.0"] [ring/ring-core "1.3.2"] [ring/ring-devel "1.3.2"] [rin...
6d43e6909a6a60e9300c73331daa8073033a881fe95f27ef300b1f17183e118d
yi-editor/yi
Dired.hs
{-# LANGUAGE CPP #-} {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DeriveGeneric # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TemplateHaskell #-} {-# OPTIONS_HADDOCK show-extensions #-} | Module : Yi . : GPL-2 Maintainer : Sta...
null
https://raw.githubusercontent.com/yi-editor/yi/65c157580e93f496a1acc6117ad02594dbcd9f35/yi-core/src/Yi/Dired.hs
haskell
# LANGUAGE CPP # # LANGUAGE DeriveDataTypeable # # LANGUAGE OverloadedStrings # # LANGUAGE TemplateHaskell # # OPTIONS_HADDOCK show-extensions # Have no idea how to keep track of this state better, so here it is ... ^ keep track of the num of successful operations | Alias serving as documentation ...
# LANGUAGE DeriveGeneric # # LANGUAGE LambdaCase # | Module : Yi . : GPL-2 Maintainer : Stability : experimental Portability : portable A simple < dired > implementation for . = TODO * add more comments * Support symlinks * operations * se...
fc4b4f8abb2c861b7139a6a160cf544696abf255672d376ab2eaf077b169dd3b
sonowz/advent-of-code-haskell
Day11.hs
module Y2019.Day11 where import Relude import Relude.Extra.Bifunctor import Relude.Extra.CallStack import Relude.Extra.Foldable1 import Relude.Extra.Map import Relude.Extra.Newtype import Relude.Extra.Tuple import Relude.Unsafe ((!!)) import Data.Map (mapKeys) import Data.Vector (Vector) import qualified Data.Vector a...
null
https://raw.githubusercontent.com/sonowz/advent-of-code-haskell/6cec825c5172bbec687aab510e43832e6f2c0372/src/Y2019/Day11.hs
haskell
-------------------- Intcode Computer -- -------------------- exit 0 Used bang pattern(!) for eager evaluation --------------------- Type declarations -- --------------------- ---------- Part 1 -- ---------- ---------- ---------- ------------------ ------------------
module Y2019.Day11 where import Relude import Relude.Extra.Bifunctor import Relude.Extra.CallStack import Relude.Extra.Foldable1 import Relude.Extra.Map import Relude.Extra.Newtype import Relude.Extra.Tuple import Relude.Unsafe ((!!)) import Data.Map (mapKeys) import Data.Vector (Vector) import qualified Data.Vector a...
88c647a5a110c4e711b0b7d3c93531033ac6c4e7adf1c76ef83c41d12c25468d
ocurrent/mirage-ci
worker.ml
* Communication between and the workers . (** Variables describing a build environment. *) module Vars = struct type t = { arch : string; os : string; os_family : string; os_distribution : string; os_version : string; } [@@deriving yojson] end (** A set of packages for a single build. *) ...
null
https://raw.githubusercontent.com/ocurrent/mirage-ci/855223ba8dffb153964e0df4f0f1b76713e77199/src/api/worker.ml
ocaml
* Variables describing a build environment. * A set of packages for a single build. * The platform ID from the request. * The selected packages ("name.version"). * Commits in opam-repositories to use. * A request to select sets of packages for the builds. * Opam repositories to use: name, folder, commit * Name o...
* Communication between and the workers . module Vars = struct type t = { arch : string; os : string; os_family : string; os_distribution : string; os_version : string; } [@@deriving yojson] end module Selection = struct type t = { commits : (string * string) list; } [@@deriving...
39735761bf57fdfb98540fd2c7867679548b5ccfa08d9c44c2d4e5cd6c6cdfa0
TheClimateCorporation/boomhauer
test_helper.clj
(ns com.climate.boomhauer.test-helper (:import [com.amazon.speech.speechlet IntentRequest SessionStartedRequest SessionStartedRequest$Builder IntentRequest$Builder Session$Builder Session SessionEndedRequest SessionEndedRequest$Builder La...
null
https://raw.githubusercontent.com/TheClimateCorporation/boomhauer/b42a8ee43d51d5deded0145ec19634e222a11d78/src/test/clojure/com/climate/boomhauer/test_helper.clj
clojure
stub functions
(ns com.climate.boomhauer.test-helper (:import [com.amazon.speech.speechlet IntentRequest SessionStartedRequest SessionStartedRequest$Builder IntentRequest$Builder Session$Builder Session SessionEndedRequest SessionEndedRequest$Builder La...
933876c592d8b201b521e62abedad128b66a3c0a7550023e5920185207679a6e
ocamllabs/ocaml-modular-implicits
testexit.ml
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/testsuite/tests/lib-threads/testexit.ml
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . let somethread (name, limit, last) = ...
7c4c38571d8827ba51a41ce10b05d06e268c09e75a98de4404b491ddff7dee3f
roburio/builder-web
builder_system.ml
let uname = let cmd = Bos.Cmd.(v "uname" % "-s") in lazy (match Bos.OS.Cmd.(run_out cmd |> out_string |> success) with | Ok s when s = "FreeBSD" -> `FreeBSD | Ok s when s = "Linux" -> `Linux | Ok s -> invalid_arg (Printf.sprintf "OS %s not supported" s) | Error (`Msg m) -> invalid_arg m) le...
null
https://raw.githubusercontent.com/roburio/builder-web/72393c90987ea53f176489cf083ea1c147cc035a/bin/builder_system.ml
ocaml
let uname = let cmd = Bos.Cmd.(v "uname" % "-s") in lazy (match Bos.OS.Cmd.(run_out cmd |> out_string |> success) with | Ok s when s = "FreeBSD" -> `FreeBSD | Ok s when s = "Linux" -> `Linux | Ok s -> invalid_arg (Printf.sprintf "OS %s not supported" s) | Error (`Msg m) -> invalid_arg m) le...
ba8f5de99034e749875b40a5744d61956c394d50b28f0652961ee79522a7e125
titola/incudine
base.lisp
(in-package :incudine-tests) (define-constant +sample-rate-test+ (sample 48000)) The duration of the test is 5 seconds . (define-constant +vug-test-duration-sec+ 5) ;;; Duration of the test in samples. (define-constant +vug-test-duration+ (floor (* +vug-test-duration-sec+ ...
null
https://raw.githubusercontent.com/titola/incudine/f6dabd1de6b133f93f4b9e519b0f7f46fab2971f/tests/vug/base.lisp
lisp
Duration of the test in samples. Reverse the order of the bits. Tested only with double float samples. the precision of the sample could slightly vary on different machines (i.e. due to the conversions from/to the data registers of the x87 FPU on x86, from double extended precision to double precision and vice v...
(in-package :incudine-tests) (define-constant +sample-rate-test+ (sample 48000)) The duration of the test is 5 seconds . (define-constant +vug-test-duration-sec+ 5) (define-constant +vug-test-duration+ (floor (* +vug-test-duration-sec+ +sample-rate-test+))) (define-c...
9d82b3b3de7fd5581eb315b72319442c4e37186bae30688aa5bfd1c963387fd9
fujita-y/ypsilon
srfi-9.scm
#!nobacktrace (define-library (srfi srfi-9) (import (srfi 9)) (export define-record-type))
null
https://raw.githubusercontent.com/fujita-y/ypsilon/44260d99e24000f9847e79c94826c3d9b76872c2/sitelib/srfi/srfi-9.scm
scheme
#!nobacktrace (define-library (srfi srfi-9) (import (srfi 9)) (export define-record-type))
17d2583cfdf8862f0d85a2a622c7182b287cd499983f6bbfae60fe489afd0a58
lingnand/VIMonad
DynamicProperty.hs
----------------------------------------------------------------------------- -- | Module : XMonad . Hooks . Copyright : ( c ) , 2015 -- License : BSD3-style (see LICENSE) -- -- Maintainer : -- Stability : unstable -- Portability : not portable -- -- Module to apply a ManageHook to an a...
null
https://raw.githubusercontent.com/lingnand/VIMonad/048e419fc4ef57a5235dbaeef8890faf6956b574/XMonadContrib/XMonad/Hooks/DynamicProperty.hs
haskell
--------------------------------------------------------------------------- | License : BSD3-style (see LICENSE) Maintainer : Stability : unstable Portability : not portable Module to apply a ManageHook to an already-mapped window when a property changes. This would commonly be used to match browse...
Module : XMonad . Hooks . Copyright : ( c ) , 2015 ( Do n't blame browsers for this ; it 's inherent in HTML and the DOM . And changing title dynamically is explicitly permitted by ICCCM and EWMH ; module XMonad.Hooks.DynamicProperty where import XMonad import Data.Monoid import Control.Appli...
6a7d5738ce09fa7dd8081720f7db9e480439c0f7774296c7f4d236e90e61094a
Denommus/monadic
tests.ml
open OUnit2 let empty_list = [] module ReaderWriterTest = struct module WriterString = Monadic.Writer.Make (struct type t = string let empty = "" let append = ( ^ ) end) module ReaderWriter = Monadic.Reader.MakeT (WriterString) (Int) let reader_writer = let open ReaderWriter.Syntax in ...
null
https://raw.githubusercontent.com/Denommus/monadic/7cbf9b309800303665a6712a9b57c1d9c66e75b8/tests/tests.ml
ocaml
open OUnit2 let empty_list = [] module ReaderWriterTest = struct module WriterString = Monadic.Writer.Make (struct type t = string let empty = "" let append = ( ^ ) end) module ReaderWriter = Monadic.Reader.MakeT (WriterString) (Int) let reader_writer = let open ReaderWriter.Syntax in ...
dbe3222c0a3595289466d300fa5b2bbad3a5c15fc7680fcc3ba5b388732beaf8
chrisnevers/mkocaml
ioUtils.ml
let exec cmd = cmd |> Unix.open_process_in |> input_line let cmd_ cmd = let _ = Sys.command cmd in () let write_file name str = let chan = open_out name in output_string chan str; close_out chan
null
https://raw.githubusercontent.com/chrisnevers/mkocaml/4d3fec15a9f723e3ebf7a657da80b37f023d182c/lib/io/ioUtils.ml
ocaml
let exec cmd = cmd |> Unix.open_process_in |> input_line let cmd_ cmd = let _ = Sys.command cmd in () let write_file name str = let chan = open_out name in output_string chan str; close_out chan
85055a989b1de5da451115adb01db43645ba4e422604e26852aaee28dd94ce85
abyala/advent-2022-clojure
day03_test.clj
(ns advent-2022-clojure.day03-test (:require [clojure.test :refer :all] [advent-2022-clojure.day03 :refer :all])) (def test-data "vJrwpWtwJgWrhcsFMMfFFhFp\njqHRNqRjqzjGDLGLrsFMfFZSrLrFZsSL\nPmmdzqPrVvPwwTWBwg\nwMqvLMZHhHMvwLHjbvcjnnSBnvTQFn\nttgJtRGJQctTZtZT\nCrZsJsPPZsGzwwsLwLmpwMDw") (def puzzle-data (...
null
https://raw.githubusercontent.com/abyala/advent-2022-clojure/50e2346573efd1d4833ff69ea758a263753ad681/test/advent_2022_clojure/day03_test.clj
clojure
(ns advent-2022-clojure.day03-test (:require [clojure.test :refer :all] [advent-2022-clojure.day03 :refer :all])) (def test-data "vJrwpWtwJgWrhcsFMMfFFhFp\njqHRNqRjqzjGDLGLrsFMfFZSrLrFZsSL\nPmmdzqPrVvPwwTWBwg\nwMqvLMZHhHMvwLHjbvcjnnSBnvTQFn\nttgJtRGJQctTZtZT\nCrZsJsPPZsGzwwsLwLmpwMDw") (def puzzle-data (...
999dccc9c176add9851dcfc02bf8e240b7f2dfbd12eb3ec9f81c3159387b1d49
pmundkur/flowcaml
terminfo.ml
(**************************************************************************) (* *) (* *) , Projet C...
null
https://raw.githubusercontent.com/pmundkur/flowcaml/ddfa8a37e1cb60f42650bed8030036ac313e048a/src-flowcaml/utils/terminfo.ml
ocaml
************************************************************************ et en Automatique. All ri...
, Projet Cristal , INRIA Rocquencourt Copyright 2002 , 2003 Institut National de Recherche en Informatique under the terms of the Q Public License version 1.0 . $ I d : terminfo.ml , v 1.3 2005/01/25 ...
78bf604928ede96ba19b53025d730aa372a5d8adbefc2453800835c1c6288ab1
racket/typed-racket
sort-infer.rkt
#lang typed/racket ( ) (sort ss string<?)
null
https://raw.githubusercontent.com/racket/typed-racket/0236151e3b95d6d39276353cb5005197843e16e4/typed-racket-test/succeed/sort-infer.rkt
racket
#lang typed/racket ( ) (sort ss string<?)
7d44a2cf1ccf656f5810d3471a51a85a435f47b868ab8c094a5de2bd7a61ecd8
mput/sicp-solutions
1_33.rkt
#lang racket Solution for exercise 1_33 . (require rackunit "../solutions/utils.rkt") (provide filter-accumulate) (define (filter-accumulate combiner filter null-value term a next b) (if (> a b) null-value (combiner (if (filter a) (term a) null-value) (filter-accumulate combiner filter null-...
null
https://raw.githubusercontent.com/mput/sicp-solutions/fe12ad2b6f17c99978c8fe04b2495005986b8496/solutions/1_33.rkt
racket
#lang racket Solution for exercise 1_33 . (require rackunit "../solutions/utils.rkt") (provide filter-accumulate) (define (filter-accumulate combiner filter null-value term a next b) (if (> a b) null-value (combiner (if (filter a) (term a) null-value) (filter-accumulate combiner filter null-...
32ce6651b68029c453cbf18afa58e2c9219425462ede00f6556bfd6c84a42f54
samrushing/irken-compiler
4.scm
;; -*- Mode: Irken -*- (include "lib/core.scm") (datatype tree (:empty) (:node 'a (tree 'a) (tree 'a)) ) (define indent 0 -> #f n -> (begin (print-string " ") (indent (- n 1))) ) (define tree/print d (tree:empty) -> #f d (tree:node val left right) -> (begin (indent d) ...
null
https://raw.githubusercontent.com/samrushing/irken-compiler/690da48852d55497f873738df54f14e8e135d006/lang/4.scm
scheme
-*- Mode: Irken -*-
(include "lib/core.scm") (datatype tree (:empty) (:node 'a (tree 'a) (tree 'a)) ) (define indent 0 -> #f n -> (begin (print-string " ") (indent (- n 1))) ) (define tree/print d (tree:empty) -> #f d (tree:node val left right) -> (begin (indent d) (tree/print (+ d 1) lef...
db9a9929f188f2935b6aa5c2a278f0aab7441fdff7c074cb286e188c02aca4c2
robrix/starlight
Mass.hs
{-# LANGUAGE DeriveTraversable #-} # LANGUAGE DerivingVia # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # module Unit.Mass ( Mass , Grams(..) , module Unit , module Unit.Algebra...
null
https://raw.githubusercontent.com/robrix/starlight/ad80ab74dc2eedbb52a75ac8ce507661d32f488e/src/Unit/Mass.hs
haskell
# LANGUAGE DeriveTraversable #
# LANGUAGE DerivingVia # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # module Unit.Mass ( Mass , Grams(..) , module Unit , module Unit.Algebra , module Unit.Multiple ) where im...
b53a98cb223c8f427f18c1339caf66aefcc3b2984706dfc271f6a50e66532122
elastic/es2unix
main.clj
(ns es.main (:gen-class) (:require [clojure.tools.cli :refer [cli]] [bultitude.core :refer [namespaces-on-classpath]] [es.format.error :refer [stack-trace]] [es.format.table :refer [tabler]] [es.http :as http] [es.help :refer [help]] [slingshot...
null
https://raw.githubusercontent.com/elastic/es2unix/87cd8d17faa07f964ac85505b744b6a4dfe813d4/src/es/main.clj
clojure
(ns es.main (:gen-class) (:require [clojure.tools.cli :refer [cli]] [bultitude.core :refer [namespaces-on-classpath]] [es.format.error :refer [stack-trace]] [es.format.table :refer [tabler]] [es.http :as http] [es.help :refer [help]] [slingshot...
18f32d80010d03fb3023a281ff60d120a86fe75e7b77d782c40858f35329fee8
nikodemus/SBCL
array.lisp
;;;; functions to implement arrays This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the ;;;; public domain. The software is in the public domain and is...
null
https://raw.githubusercontent.com/nikodemus/SBCL/3c11847d1e12db89b24a7887b18a137c45ed4661/src/code/array.lisp
lisp
functions to implement arrays more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. miscellaneous accessor functions These functions are only needed by the interpreter, 'cause the MAKE-ARRAY Th...
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!IMPL") #!-sb-fluid (declaim (inline adjustable-array-p array-displacement)) compiler i...
5493ac4a1b67dcc131d9f0e25873205071375fcf8ddad989c95f8df588a4a5ba
kafka4beam/kflow
kflow_config_load_tests.erl
-module(kflow_config_load_tests). -include_lib("eunit/include/eunit.hrl"). load_config_test() -> application:load(kflow), Dir = filename:join(code:lib_dir(kflow), "test/pipe_config"), application:set_env(kflow, config_module_dir, Dir), Do n't start any brod processes : application:set_env(kflow, kafka_clien...
null
https://raw.githubusercontent.com/kafka4beam/kflow/2c44379a2934385a17fb504e7a933c859da7ab06/test/kflow_config_load_tests.erl
erlang
-module(kflow_config_load_tests). -include_lib("eunit/include/eunit.hrl"). load_config_test() -> application:load(kflow), Dir = filename:join(code:lib_dir(kflow), "test/pipe_config"), application:set_env(kflow, config_module_dir, Dir), Do n't start any brod processes : application:set_env(kflow, kafka_clien...
95429d9ead0f39d7186448ca176c6563db9fd07cd1e0490d722abb207bb6c37d
srid/emanote
Rel.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE TemplateHaskell # module Emanote.Model.Link.Rel where import Commonmark.Extensions.WikiLink qualified as WL import Data.Aeson (ToJSON) import Data.IxSet.Typed (Indexable (..), IxSet, ixFun, ixList) import Data.IxSet.Typed qualified as Ix import Data.List.NonEmpty qualified a...
null
https://raw.githubusercontent.com/srid/emanote/66dad06ca8fff73e30c52aee28f6458c73c900e3/src/Emanote/Model/Link/Rel.hs
haskell
# LANGUAGE DeriveAnyClass # The note containing this relation The target of the relation (can be a note or anything) | Parse a relative URL string for later resolution. TODO: Need tests for this function. | Like `System.FilePath.normalise` but also normalises '..' Remove '..' from path component. symlinks (wh...
# LANGUAGE TemplateHaskell # module Emanote.Model.Link.Rel where import Commonmark.Extensions.WikiLink qualified as WL import Data.Aeson (ToJSON) import Data.IxSet.Typed (Indexable (..), IxSet, ixFun, ixList) import Data.IxSet.Typed qualified as Ix import Data.List.NonEmpty qualified as NEL import Data.Map.Strict qua...
9b979006f66def1f675efd3d020994465cdb4312ca89d93994dd6dd07b298f54
galdor/tungsten
calendar.lisp
(in-package :time) (deftype year () '(integer 1582)) (deftype month () '(integer 1 12)) (deftype day () '(integer 1 31)) (deftype week-day () '(integer 1 7)) (defun month-name (month) (declare (type month month)) (aref #("january" "february" "march" "april" "may" "june" "july" "september" "oc...
null
https://raw.githubusercontent.com/galdor/tungsten/61bc5e1c91c8027cce9f079f1eec9368316e181c/tungsten-time/src/calendar.lisp
lisp
(in-package :time) (deftype year () '(integer 1582)) (deftype month () '(integer 1 12)) (deftype day () '(integer 1 31)) (deftype week-day () '(integer 1 7)) (defun month-name (month) (declare (type month month)) (aref #("january" "february" "march" "april" "may" "june" "july" "september" "oc...
4f616ae4204e3f079290e735fc1842b2ed01569bf59f9f981d1a81fd0e74f487
peak6/mmd_core
client_channel.erl
Copyright 2011 PEAK6 Investments , L.P. %% 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 d...
null
https://raw.githubusercontent.com/peak6/mmd_core/f90469ea9eac8cd607aa6ec5b9ad6ff003a35572/src/client_channel.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 governing perm...
Copyright 2011 PEAK6 Investments , L.P. Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author ( C ) 2011 , PEAK6 Investments , L.P. Created : Sun Apr 24 08:49:40 CDT 2011 -module(client_channel). -behaviour(gen_s...
1d98f663ffb50f68816c64646f135a2d93c084e2caa96cdd8000c4d6e7e6cd8f
avh4/elm-format
PatternMatching.hs
# LANGUAGE DataKinds # {-# LANGUAGE GADTs #-} module ElmFormat.AST.PatternMatching where import ElmFormat.AST.Shared import AST.V0_16 import AST.Structure import Reporting.Annotation (Located(At)) import Data.Indexed as I {-| Takes a list of patterns and matches them agains a type, extracting the types of each of th...
null
https://raw.githubusercontent.com/avh4/elm-format/af3acfc89b619b9dbcdbdb7185d3936971d76f87/elm-format-lib/src/ElmFormat/AST/PatternMatching.hs
haskell
# LANGUAGE GADTs # | Takes a list of patterns and matches them agains a type, extracting the types of each of the patterns and the return type of a function that has that list of patterns as its parameters. TODO: retain all comments in the output TODO: make complete function so it doesn't crash on invalid source files...
# LANGUAGE DataKinds # module ElmFormat.AST.PatternMatching where import ElmFormat.AST.Shared import AST.V0_16 import AST.Structure import Reporting.Annotation (Located(At)) import Data.Indexed as I matchType :: List (C1 'BeforeTerm (ASTNS Located ns 'PatternNK)) -> ASTNS Located ns 'TypeNK -> ( List (C1...
9557387a99c27765c5dbcd27adf7d32561790cbd87478fab2fbaaee59e64efe9
typelead/eta
tcfail077.hs
module ShouldFail where -- !!! declaring a default method in a class that doesn't have that method. class Foo a where op :: a -> a op2 x = x -- Bogus declaration
null
https://raw.githubusercontent.com/typelead/eta/97ee2251bbc52294efbf60fa4342ce6f52c0d25c/tests/suite/typecheck/fail/tcfail077.hs
haskell
!!! declaring a default method in a class that doesn't have that method. Bogus declaration
module ShouldFail where class Foo a where op :: a -> a
16a50502648e21cc12ded6407b9c8c287e1418ba985b05bfa3f53a902e1d3700
philopon/apiary
main.hs
import Test.Tasty import qualified Application import qualified Method main :: IO () main = defaultMain $ testGroup "/" [ Application.test , Method.test ]
null
https://raw.githubusercontent.com/philopon/apiary/7da306fcbfcdec85d073746968298de4540d7235/tests/main.hs
haskell
import Test.Tasty import qualified Application import qualified Method main :: IO () main = defaultMain $ testGroup "/" [ Application.test , Method.test ]
69273149209dab18834a7538faebbe339e303fc70f99f209f7240004d46aaf7c
typeclasses/haskell-phrasebook
timeouts.hs
# LANGUAGE LambdaCase , NumericUnderscores # import Data.Foldable (asum) import Control.Concurrent (forkIO, threadDelay) import Control.Concurrent.STM (atomically, retry) import Control.Concurrent.STM.TVar main = do result <- atomically (newTVar Nothing) forkIO $ do threadDelay 2_000_000 ...
null
https://raw.githubusercontent.com/typeclasses/haskell-phrasebook/61ee6a7e63e4d6fc0e86c0cb9dc2c0d9f06b9537/timeouts.hs
haskell
--
# LANGUAGE LambdaCase , NumericUnderscores # import Data.Foldable (asum) import Control.Concurrent (forkIO, threadDelay) import Control.Concurrent.STM (atomically, retry) import Control.Concurrent.STM.TVar main = do result <- atomically (newTVar Nothing) forkIO $ do threadDelay 2_000_000 ...
b4d63ef87623880ffe6972af2a1ea65917cfd09c03a092f6a7d74c9ea19b93ae
kurtharriger/shadow-cljs-reframe-template
routes.cljs
(ns demo.routes (:import goog.History) (:require [secretary.core :as secretary :refer-macros [defroute]] [goog.events :as gevents] [goog.history.EventType :as EventType] [accountant.core :as accountant])) (def ^:dynamic *dispatch* (fn [event] (prn :dispatch event))) (defroute...
null
https://raw.githubusercontent.com/kurtharriger/shadow-cljs-reframe-template/cfeb1dc2ed89a3e4289aa5dee01f80d2a1e89403/src/cljs/demo/routes.cljs
clojure
(ns demo.routes (:import goog.History) (:require [secretary.core :as secretary :refer-macros [defroute]] [goog.events :as gevents] [goog.history.EventType :as EventType] [accountant.core :as accountant])) (def ^:dynamic *dispatch* (fn [event] (prn :dispatch event))) (defroute...
8c57eae91f54fee76868217d293915fe01cca15f46b17fdc61a7040897982ebb
SamB/coq
subtac_pretyping_F.ml
-*- compile - command : " make -C .. / .. " -*- (************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * ...
null
https://raw.githubusercontent.com/SamB/coq/8f84aba9ae83a4dc43ea6e804227ae8cae8086b1/contrib/subtac/subtac_pretyping_F.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** ************************************...
-*- compile - command : " make -C .. / .. " -*- v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
e20487aee9298ca788d4989c657d6b576e7cab4ca4073fe3079f336e6f4a3929
burkaydurdu/muggle
subs.cljs
(ns muggle.houses.subs (:require [re-frame.core :refer [reg-sub]])) (reg-sub :houses-list (fn [db _] (:houses-list db)))
null
https://raw.githubusercontent.com/burkaydurdu/muggle/8c457397305be6ea2848a2537669a700d0147997/src/muggle/houses/subs.cljs
clojure
(ns muggle.houses.subs (:require [re-frame.core :refer [reg-sub]])) (reg-sub :houses-list (fn [db _] (:houses-list db)))
dd718e69e4137a95a3a84ffe6d9d3a73f078f05e40ed426f55b9b3f5111e993f
fortytools/holumbus
Types.hs
# OPTIONS # -- ------------------------------------------------------------ module Holumbus.Crawler.Types where import Control.DeepSeq import Control.Monad.Reader import Control.Monad.ReaderStateIOError import Control.Monad.State import Data.Binary ...
null
https://raw.githubusercontent.com/fortytools/holumbus/4b2f7b832feab2715a4d48be0b07dca018eaa8e8/Holumbus-Searchengine/src/Holumbus/Crawler/Types.hs
haskell
------------------------------------------------------------ ------------------------------------------------------------ | The action to combine the result of a single document with the accumulator for the overall crawler result. but it is not a CrawlerAction, else parallel crawling with forkIO is not longer appli...
# OPTIONS # module Holumbus.Crawler.Types where import Control.DeepSeq import Control.Monad.Reader import Control.Monad.ReaderStateIOError import Control.Monad.State import Data.Binary (Binary) import qualified Data.Binary ...
4a949f1bf629462e77b662938878fcf5f2a8a1809179fbeb8d979ca06f42f630
chrisdone/sandbox
conduit-server-stream-csv.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeApplications # import qualified Data.Map.Strict as M import Data.Map.Strict (Map) import Data.ByteString (ByteString) import qualified Data.Conduit.List as CL import Data.CSV.Conduit import qualified Data.Conduit.Binary as CB import ...
null
https://raw.githubusercontent.com/chrisdone/sandbox/c43975a01119a7c70ffe83c49a629c45f7f2543a/conduit-server-stream-csv.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE TypeApplications # import qualified Data.Map.Strict as M import Data.Map.Strict (Map) import Data.ByteString (ByteString) import qualified Data.Conduit.List as CL import Data.CSV.Conduit import qualified Data.Conduit.Binary as CB import Data.Conduit.Network import qual...
0a04950b2357e679b805682544c77bdb2389be80dd5e81181e68f3a7e7dbee97
JHU-PL-Lab/jaylang
jay_to_jayil_monad_inst.ml
open Batteries open Jayil type translation_context = { tc_fresh_suffix_separator : string; tc_contextual_recursion : bool; mutable tc_fresh_name_counter : int; mutable tc_jayil_instrumentation_mappings : Jayil_instrumentation_maps.t; } (* [@@deriving eq, ord] *) let new_translation_context ?(is_jay = false) ?...
null
https://raw.githubusercontent.com/JHU-PL-Lab/jaylang/484b3876986a515fb57b11768a1b3b50418cde0c/src/jayil-instrumentation/jay_to_jayil_monad_inst.ml
ocaml
[@@deriving eq, ord] * Run the monad to completion * Create a fresh var * Map an odefa var to its clause * Add an odefa var to note that it was added during instrumentation (and that it does not have an associated pre-instrumentation clause) * Map an odefa clause to its associated pre-instrumentation clause...
open Batteries open Jayil type translation_context = { tc_fresh_suffix_separator : string; tc_contextual_recursion : bool; mutable tc_fresh_name_counter : int; mutable tc_jayil_instrumentation_mappings : Jayil_instrumentation_maps.t; } let new_translation_context ?(is_jay = false) ?(suffix = "_i_") ?(cont...
5b9935d17be9571c083da1c2af58798d2ed7a3705c417fcbd825741bb1310b58
maitria/gambit-objc
objc.scm
(include "objc#.scm") (include "~~lib/_gambit#.scm") (namespace ("objc#" objc.id objc.SEL make-object-tags make-selector-tags is_selector is_object old-wr )) (c-declare "#include \"../../lib/internal.h\"") (c-define-type objc.id (pointer (struct "objc_object") (objc.id))) (c-define-type objc.SEL (poi...
null
https://raw.githubusercontent.com/maitria/gambit-objc/abf6755d67d7137ade321c699304ed1e932cc675/lib/objc.scm
scheme
(include "objc#.scm") (include "~~lib/_gambit#.scm") (namespace ("objc#" objc.id objc.SEL make-object-tags make-selector-tags is_selector is_object old-wr )) (c-declare "#include \"../../lib/internal.h\"") (c-define-type objc.id (pointer (struct "objc_object") (objc.id))) (c-define-type objc.SEL (poi...
60758be92b079e636c8e366d3be185236a5f1190c638ff554c01bf5aca05199b
Quid2/zm
ZM.hs
module ZM |Check the < tutorial and github repo > . module Flat , module Data.Model , module ZM.Abs , module ZM.BLOB -- , module ZM.Dynamic , module ZM.Pretty , module ZM.Transform , module ZM.Types ) where import Flat import Data.Model hiding ( Name ) imp...
null
https://raw.githubusercontent.com/Quid2/zm/02c0514777a75ac054bfd6251edd884372faddea/src/ZM.hs
haskell
, module ZM.Dynamic import ZM.Dynamic import ZM.Pretty.Value ()
module ZM |Check the < tutorial and github repo > . module Flat , module Data.Model , module ZM.Abs , module ZM.BLOB , module ZM.Pretty , module ZM.Transform , module ZM.Types ) where import Flat import Data.Model hiding ( Name ) import ZM.Abs import ...
5ec5ef290fea97a0acfb51b655666396c34b4c870836326c5af94c34e079d085
rvantonder/hack_parallel
prefix.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/heap/prefix.ml
ocaml
*************************************************************************** The prefix is used to guarantee that we are not mixing different kind of * keys in the heap. * It just creates a new prefix every time its called. * The $ at the end of the prefix ensures that we don't have ambiguities if a key * happens t...
* * 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 . *...
a32a16adc40813c7ac3318228f7e4f4f3597095114614e7ff185bc76d1c905ae
ragkousism/Guix-on-Hurd
gnunet.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2013 , 2014 , 2015 < > Copyright © 2014 Sree < > Copyright © 2015 < > Copyright © 2015 < > Copyright © 2016 < > Copyright © 2016 < > Copyright © 2016 , 2017 ng0 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is f...
null
https://raw.githubusercontent.com/ragkousism/Guix-on-Hurd/e951bb2c0c4961dc6ac2bda8f331b9c4cee0da95/gnu/packages/gnunet.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2013 , 2014 , 2015 < > Copyright © 2014 Sree < > Copyright © 2015 < > Copyright © 2015 < > Copyright © 2016 < > Copyright © 2016 < > Copyright © 2016 , 2017 ng0 < > under the terms of the GNU General Public License as published by You should have received a copy of the ...
90736d06744d0a38ee5831e92307f8b643944263ea6a3e8760cf6e6d10d7c4cb
mpenet/auspex
auspex_test.clj
(ns qbits.auspex-test (:require [clojure.test :refer :all] [qbits.auspex :as a]) (:import (clojure.lang ExceptionInfo) (java.util.concurrent CancellationException ExecutionException))) (def executor clojure.lang.Agent/pooledExecutor) (def ex (ex-info "boom" {})) (def f-inc #(a/future (con...
null
https://raw.githubusercontent.com/mpenet/auspex/ce0207317571d1361bcb293d4e71a58699ba00e6/test/qbits/auspex_test.clj
clojure
(ns qbits.auspex-test (:require [clojure.test :refer :all] [qbits.auspex :as a]) (:import (clojure.lang ExceptionInfo) (java.util.concurrent CancellationException ExecutionException))) (def executor clojure.lang.Agent/pooledExecutor) (def ex (ex-info "boom" {})) (def f-inc #(a/future (con...
c51be4545e11b2c0167d6cc9b6353bc20d0f961ab8c826b28a753a9c6f96137b
mattmundell/nightshade
debug.lisp
Compiler support for the debugger . (in-package "SPARC") (defknown di::current-sp () system-area-pointer (movable flushable)) (defknown di::current-fp () system-area-pointer (movable flushable)) (defknown di::stack-ref (system-area-pointer index) t (flushable)) (defknown di::%set-stack-ref (system-area-pointer inde...
null
https://raw.githubusercontent.com/mattmundell/nightshade/d8abd7bd3424b95b70bed599e0cfe033e15299e0/src/compiler/sparc/debug.lisp
lisp
Compiler support for the debugger . (in-package "SPARC") (defknown di::current-sp () system-area-pointer (movable flushable)) (defknown di::current-fp () system-area-pointer (movable flushable)) (defknown di::stack-ref (system-area-pointer index) t (flushable)) (defknown di::%set-stack-ref (system-area-pointer inde...
d13e79428617460eb26f5a1eeb408f5fb7e597e2d7fae6e60b050eddd69520a6
imandra-ai/mhash
mhash_sha.mli
(** Implementation of Mhash using Sha *) module Sha1 : sig type state type t = Sha1.t val ctx : state -> Sha1.ctx val algo : (state, t) Mhash.hash_algo end module Sha256 : sig type state type t = Sha256.t val ctx : state -> Sha256.ctx val algo : (state, t) Mhash.hash_algo end module Sha512 : sig ...
null
https://raw.githubusercontent.com/imandra-ai/mhash/0f750668844e00c8c7da907e07918383fb2e483a/src/sha/mhash_sha.mli
ocaml
* Implementation of Mhash using Sha
module Sha1 : sig type state type t = Sha1.t val ctx : state -> Sha1.ctx val algo : (state, t) Mhash.hash_algo end module Sha256 : sig type state type t = Sha256.t val ctx : state -> Sha256.ctx val algo : (state, t) Mhash.hash_algo end module Sha512 : sig type state type t = Sha512.t val ct...
57ab0f6d33be009300f5faef578f5f0ab4b725836daf99b35cf8752878244a83
Plisp/uncursed
hacks.lisp
(in-package :uncursed-sys) ;;; palette approximation (defun red (color) (ldb (byte 8 16) color)) (defun green (color) (ldb (byte 8 8) color)) (defun blue (color) (ldb (byte 8 0) color)) (defun color (r g b) (+ (ash r 16) (ash g 8) b)) (defparameter *xterm-256* (let ((colors (make-array 256 :element-type 'fixnum)))...
null
https://raw.githubusercontent.com/Plisp/uncursed/a2d2cb470d664a8c914ad0cc1fcce6bf54d2faf6/hacks.lisp
lisp
palette approximation palette modification
(in-package :uncursed-sys) (defun red (color) (ldb (byte 8 16) color)) (defun green (color) (ldb (byte 8 8) color)) (defun blue (color) (ldb (byte 8 0) color)) (defun color (r g b) (+ (ash r 16) (ash g 8) b)) (defparameter *xterm-256* (let ((colors (make-array 256 :element-type 'fixnum))) (loop :for r :below 6...
6569fcf9e7fd87a843b98d57dc35e19418e05291bf52ce757aaa92e75c72f567
appleshan/cl-http
resource.lisp
-*- Mode : LISP ; Package : http ; BASE : 10 ; Syntax : ANSI - Common - Lisp ; Default - Character - Style : ( : FIX : ROMAN : NORMAL);-*- ( C ) Copyright 1998 - 2001 , ;;; All Rights Reserved. ( C ) Copyright 1996 - 97 , ;;; All Rights Reserved. (in-package :http) ;;;---------------------------...
null
https://raw.githubusercontent.com/appleshan/cl-http/a7ec6bf51e260e9bb69d8e180a103daf49aa0ac2/proxy/resource.lisp
lisp
Package : http ; BASE : 10 ; Syntax : ANSI - Common - Lisp ; Default - Character - Style : ( : FIX : ROMAN : NORMAL);-*- All Rights Reserved. All Rights Reserved. ------------------------------------------------------------------- RESOURCES "Total size, including all the representations." -------------...
( C ) Copyright 1998 - 2001 , ( C ) Copyright 1996 - 97 , (in-package :http) (defmethod print-object ((resource resource) stream) (with-slots (uri-string) resource (print-unreadable-object (resource stream :type t :identity t) (when (slot-boundp resource 'uri-string) (write-string uri-s...
d23bf950c7db171546ff4d10f84086bf513828509a86fd5e8edeef5d0ee91a81
manuel-serrano/bigloo
fsevent.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / api / libuv / src / Llib / fsevent.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation ...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/eb650ed4429155f795a32465e009706bbf1b8d74/api/libuv/src/Llib/fsevent.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ *=====================================================================*/ *---------------------------...
* serrano / prgm / project / bigloo / api / libuv / src / Llib / fsevent.scm * / * Author : * / * Creation : Tue May 6 12:27:21 2014 * / * Last change : We d Mar 1 10:25:49 2017 ( serrano ) * / * ...