_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
53c6cb405f9f807f03029478131df493c484fcc36f617b875552d823a6cf6888
ucsd-progsys/dsolve
subst.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ucsd-progsys/dsolve/bfbbb8ed9bbf352d74561e9f9127ab07b7882c0c/typing/subst.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 Q Public License version 1.0 . $ I d : subst.ml , v 1.50 2006/04/05 ...
66923cf0ddfda783a8f635d92706bd85fc3d432ba4a0a8405248eca73e4e46e5
valerauko/kitsune-alpha
user.clj
(ns kitsune.spec.user (:require [clojure.spec.alpha :as s])) (s/def ::name (s/and string? #(re-matches #"(?i)[a-z0-9][a-z0-9_]{2,25}" %))) (s/def ::display-name (s/or :empty nil? :string (s/and string? #(-> % count (< 25))))) (s/def ::email (s/and string? #(re...
null
https://raw.githubusercontent.com/valerauko/kitsune-alpha/34ca08e4013541aeaf1a5a5786f3189ff17c1a58/src/kitsune/spec/user.clj
clojure
TODO: avatar and header
(ns kitsune.spec.user (:require [clojure.spec.alpha :as s])) (s/def ::name (s/and string? #(re-matches #"(?i)[a-z0-9][a-z0-9_]{2,25}" %))) (s/def ::display-name (s/or :empty nil? :string (s/and string? #(-> % count (< 25))))) (s/def ::email (s/and string? #(re...
48f351d9d31a3c82a44cbab429106e547ca89c0032e1e0e220940b2b7a327f6d
dimitri/pgloader
csv-database.lisp
;;; ;;; Experimental code, used to be used a long time ago, before this lisp ;;; code became pgloader. The idea is to use it again sometimes, someway. ;;; (in-package #:pgloader.source.csv) ;;; ;;; When you exported a whole database as a bunch of CSV files to be found ;;; in the same directory, each file name being th...
null
https://raw.githubusercontent.com/dimitri/pgloader/3047c9afe141763e9e7ec05b7f2a6aa97cf06801/src/sources/csv/csv-database.lisp
lisp
Experimental code, used to be used a long time ago, before this lisp code became pgloader. The idea is to use it again sometimes, someway. When you exported a whole database as a bunch of CSV files to be found in the same directory, each file name being the name of the target table, then this function allows to...
(in-package #:pgloader.source.csv) (defun import-database (dbname &key (fd-path-root *fd-path-root*) (skip-lines 0) (separator #\Tab) (quote cl-csv:*quote*) (escape cl-csv:*quote-escape*) (truncate t) only-tables) "Export MySQL data and Import it into PostgreSQL" (let ((*state...
4eb37373929cd0c118eb83bb63a6062ca51eca10c408c02ae4a6a72630283c70
xh4/web-toolkit
list.lisp
;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*- (in-package :split-sequence) (declaim (inline collect-until count-while split-list split-list-if split-list-if-not split-list-from-end split-list-from-start split-list-internal)) (declaim (ftype (function (&rest t) (values list unsigned-byt...
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/vendor/split-sequence-v2.0.0/list.lisp
lisp
-*- Mode: Lisp; indent-tabs-mode: nil -*-
(in-package :split-sequence) (declaim (inline collect-until count-while split-list split-list-if split-list-if-not split-list-from-end split-list-from-start split-list-internal)) (declaim (ftype (function (&rest t) (values list unsigned-byte)) split-list split-list-if sp...
d908349b2e71aaf6cbfb48fdeae43fa8dc45f87017fda0866fd56e4bbc96046e
mtravers/wuwei
eval-server.lisp
(in-package :wu) ;;; An Eval server and page, for development and debugging ;;; Respects *developer-mode*. On , turn on off with ;;; > heroku config:add DEVELOPER_MODE=Y[N] (publish :path "/eval-server" :function 'eval-server) (defun eval-server (req ent) (if *developer-mode* (let* ((form (get-request-b...
null
https://raw.githubusercontent.com/mtravers/wuwei/c0968cca10554fa12567d48be6f932bf4418dbe1/src/eval-server.lisp
lisp
An Eval server and page, for development and debugging Respects *developer-mode*. > heroku config:add DEVELOPER_MODE=Y[N] :::::::::::::::::::::::::::::::: Session debug tool
(in-package :wu) On , turn on off with (publish :path "/eval-server" :function 'eval-server) (defun eval-server (req ent) (if *developer-mode* (let* ((form (get-request-body req)) (result (multiple-value-list (ignore-errors (eval (read-from-string form)))))) (if (typep (cadr result) 'error) ...
4b710f632f6440fd117771d2aa63c3831e8ea36c6294626fafb3a8103b49518f
master/ejabberd
ejabberd_listener.erl
%%%---------------------------------------------------------------------- %%% File : ejabberd_listener.erl Author : < > %%% Purpose : Manage socket listener Created : 16 Nov 2002 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2012 ProcessOne %%% %%% This program is free software; you can redistrib...
null
https://raw.githubusercontent.com/master/ejabberd/9c31874d5a9d1852ece1b8ae70dd4b7e5eef7cf7/src/ejabberd_listener.erl
erlang
---------------------------------------------------------------------- File : ejabberd_listener.erl Purpose : Manage socket listener This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be useful, ...
Author : < > Created : 16 Nov 2002 by < > ejabberd , Copyright ( C ) 2002 - 2012 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a copy of the GNU General Public License Founda...
e3e9525d1fc8516a2f1ddcdd13ab582d03401d8368e55a505afa64dc8abf5214
wireapp/wire-server
TeamMemberStore.hs
# LANGUAGE TemplateHaskell # -- This file is part of the Wire Server implementation. -- Copyright ( C ) 2022 Wire Swiss GmbH < > -- -- This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , e...
null
https://raw.githubusercontent.com/wireapp/wire-server/ee767dc62b3e2ddaf7eeb5a1e3f996606d3b9d7d/services/galley/src/Galley/Effects/TeamMemberStore.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 TemplateHaskell # Copyright ( C ) 2022 Wire Swiss GmbH < > the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any You should have received a copy of the GNU Affero General Public License along mo...
3e4fa7eb1e538851db7769b891ac747a52ef0ea499278c5e1b538d629a322c28
andersfugmann/amqp-client
connection.ml
open Thread open Amqp_client_lib open Spec.Connection let version = "2.2.2" let string_until c str = try let index = String.index str c in String.sub str 0 index with | Not_found -> str type t = { framing: Framing.t; virtual_host: string; mutable channel: int; mutable c...
null
https://raw.githubusercontent.com/andersfugmann/amqp-client/e6e92225b91742fa8777a02ad9b59a1dde45e752/async/src/connection.ml
ocaml
Ivar.fill t.closed ();
open Thread open Amqp_client_lib open Spec.Connection let version = "2.2.2" let string_until c str = try let index = String.index str c in String.sub str 0 index with | Not_found -> str type t = { framing: Framing.t; virtual_host: string; mutable channel: int; mutable c...
6ca027bcc76e74d3fb711cdd16e81851e0f8a16e6aee8bd786303b7e725936f5
basho/riak_test
rt.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2013 - 2016 Basho Technologies , Inc. %% 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/basho/riak_test/8170137b283061ba94bc85bf42575021e26c929d/src/rt.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 ) 2013 - 2016 Basho Technologies , Inc. 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 nodes in a Riak cluste...
005fcda3fe517e39d2370bfd01b19a3df02c7ab0e401a09dfc5799527f4735c4
avsm/platform
compact_lists_arrays.ml
[@@@ocamlformat "break-collection-expressions=wrap"] let length = [| 0; 1; 2; 3; 4; 5; 6; 7; 8; 8; 9; 9; 10; 10; 11; 11; 12; 12; 12; 12; 13 ; 13; 13; 13; 14; 14; 14; 14; 15; 15; 15; 15; 16; 16; 16; 16; 16; 16; 16 ; 16; 17; 17; 17; 17; 17; 17; 17; 17; 18; 18; 18; 18; 18; 18; 18; 18; 19 ; 19; 19; 19; 19; 19; ...
null
https://raw.githubusercontent.com/avsm/platform/b254e3c6b60f3c0c09dfdcde92eb1abdc267fa1c/duniverse/ocamlformat.0.12/test/passing/compact_lists_arrays.ml
ocaml
this is an array foo foo this is a list foo foo
[@@@ocamlformat "break-collection-expressions=wrap"] let length = [| 0; 1; 2; 3; 4; 5; 6; 7; 8; 8; 9; 9; 10; 10; 11; 11; 12; 12; 12; 12; 13 ; 13; 13; 13; 14; 14; 14; 14; 15; 15; 15; 15; 16; 16; 16; 16; 16; 16; 16 ; 16; 17; 17; 17; 17; 17; 17; 17; 17; 18; 18; 18; 18; 18; 18; 18; 18; 19 ; 19; 19; 19; 19; 19; ...
726570f9bcb4599aa7d8741664d9d73f6e701c80cfad13756c34d0693e199128
drewc/planks
object-btree.lisp
(in-package :planks.btree) (defclass object-storage-btree (single-file-btree) () (:default-initargs :footer-class 'object-storage-footer)) (defclass object-storage-footer (btree-footer) ((next-id :accessor btree-footer-next-id :initform 0))) (defgeneric make-btree-footer (btree old-footer &key &allow-other-ke...
null
https://raw.githubusercontent.com/drewc/planks/ac600345ac5f01b1610720a69bfe57953dfb5695/src/object-btree.lisp
lisp
(in-package :planks.btree) (defclass object-storage-btree (single-file-btree) () (:default-initargs :footer-class 'object-storage-footer)) (defclass object-storage-footer (btree-footer) ((next-id :accessor btree-footer-next-id :initform 0))) (defgeneric make-btree-footer (btree old-footer &key &allow-other-ke...
90084cf3e3af76c929b72e9223ba844d57632eb992f7e6d49da8dddae80b41f0
tschady/advent-of-code
d10.clj
(ns aoc.2017.d10 (:require [aoc.file-util :as file-util] [aoc.string-util :as string-util])) (def input (file-util/read-file "2017/d10.txt")) (defn half-twist "Reverse the segment of data starting at position `start` with length `length`. Wrap this around to the start of the list if we go past the l...
null
https://raw.githubusercontent.com/tschady/advent-of-code/29d0e96268616ea18c6c1f76c649ecfca2e85a55/src/aoc/2017/d10.clj
clojure
(ns aoc.2017.d10 (:require [aoc.file-util :as file-util] [aoc.string-util :as string-util])) (def input (file-util/read-file "2017/d10.txt")) (defn half-twist "Reverse the segment of data starting at position `start` with length `length`. Wrap this around to the start of the list if we go past the l...
a14b90dfa15eccaf40087c8ae0b3af048c40d5b814eef42e0cddacb28fba173e
typelead/etlas
Modular.hs
module Distribution.Solver.Modular ( modularResolver, SolverConfig(..)) where -- Here, we try to map between the external etlas solver -- interface and the internal interface that the solver actually -- expects. There are a number of type conversions to perform: we -- have to convert the package indices to th...
null
https://raw.githubusercontent.com/typelead/etlas/bbd7c558169e1fda086e759e1a6f8c8ca2807583/etlas/Distribution/Solver/Modular.hs
haskell
Here, we try to map between the external etlas solver interface and the internal interface that the solver actually expects. There are a number of type conversions to perform: we have to convert the package indices to the uniform index used by the solver; we also have to convert the initial constraints; and final...
module Distribution.Solver.Modular ( modularResolver, SolverConfig(..)) where import Data.Map as M ( fromListWith ) import Distribution.Compat.Graph ( IsNode(..) ) import Distribution.Solver.Modular.Assignment ( toCPs ) import Distribution.Solver.Modular.ConfiguredConversion ...
bdb897654cd36d456560f080a50c51949a5e658e8b9d2dfb834b189cdf60d37d
scrintal/heroicons-reagent
information_circle.cljs
(ns com.scrintal.heroicons.mini.information-circle) (defn render [] [:svg {:xmlns "" :viewBox "0 0 20 20" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.7...
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/mini/information_circle.cljs
clojure
(ns com.scrintal.heroicons.mini.information-circle) (defn render [] [:svg {:xmlns "" :viewBox "0 0 20 20" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.7...
45dad0ac0736516d7186e995e7e74aa153058211603e5fb2aa0d880d00516b20
robert-strandh/SICL
allocate-registers-for-instructions.lisp
(cl:in-package #:sicl-register-allocation) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; PROCESS-INPUTS. This function may add new instructions between ;;; PREDECESSOR and INSTRUCTION in order to create a register ;;; arrangement suitable for the inputs INSTRUCTION. It returns the ...
null
https://raw.githubusercontent.com/robert-strandh/SICL/26f2b6e4391290114b3a30df9012a6141a52ffb1/Code/Compiler/MIR-to-LIR/Register-allocation/allocate-registers-for-instructions.lisp
lisp
PROCESS-INPUTS. This function may add new instructions between PREDECESSOR and INSTRUCTION in order to create a register arrangement suitable for the inputs INSTRUCTION. It returns the instructions were added. either an immediate input, or it is a lexical location, and that lexical location has a register att...
(cl:in-package #:sicl-register-allocation) last such new instruction that was added , or PREDECESSOR if no new (defgeneric process-inputs (predecessor instruction)) Make sure INPUT is " available " . An input is available if it is (defun ensure-input-available (predecessor instruction input) (if (typep input...
b93b886eec82e287545553667b27fa870aa1b7a042c735cf2f5b9cda59fffc60
MMagueta/MMaguetaGuix
vpn.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2020 < > ;;; ;;; This file is not part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 3 of the ...
null
https://raw.githubusercontent.com/MMagueta/MMaguetaGuix/0490ffc33bc7d269e2b586637a76e7fe7914fbfb/nongnu/packages/vpn.scm
scheme
GNU Guix --- Functional package management for GNU This file is not 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 implie...
Copyright © 2020 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License (define-module (nongnu packages vpn) #:use-module (guix build utils) #:use-module (guix build-system gnu) #:use-module (guix download) #:use-module ...
5335fa07daaec14b651fefbe6dbba824ce78f7266beee0cdb6830e5817015589
faylang/fay
ref.hs
-- | Mutable references. {-# LANGUAGE EmptyDataDecls #-} module Ref where import FFI import Prelude main :: Fay () main = do ref <- newRef "Hello, World!" x <- readRef ref writeRef ref "Hai!" readRef ref >>= print data Ref a instance Show (Ref a) newRef :: a -> Fay (Ref a) newRef =...
null
https://raw.githubusercontent.com/faylang/fay/8455d975f9f0db2ecc922410e43e484fbd134699/examples/ref.hs
haskell
| Mutable references. # LANGUAGE EmptyDataDecls #
module Ref where import FFI import Prelude main :: Fay () main = do ref <- newRef "Hello, World!" x <- readRef ref writeRef ref "Hai!" readRef ref >>= print data Ref a instance Show (Ref a) newRef :: a -> Fay (Ref a) newRef = ffi "new Fay$$Ref(%1)" writeRef :: Ref a -> a -> Fay () wr...
020b9641a2e4541415f0f66e0a973db2b6a847d64d8f1a386732233e49562f56
toschoo/mom
Server.hs
------------------------------------------------------------------------------- -- | Module : Network / Mom / Patterns / Basic / Server.hs Copyright : ( c ) -- License : LGPL -- Stability : experimental -- Portability: non-portable -- -- Server side of \'Client\/Server\' -----------------------------...
null
https://raw.githubusercontent.com/toschoo/mom/b58ca23d05c98ab50d9e981bd4ad2cdb76846399/src/patterns/src/Network/Mom/Patterns/Basic/Server.hs
haskell
----------------------------------------------------------------------------- | License : LGPL Stability : experimental Portability: non-portable Server side of \'Client\/Server\' ----------------------------------------------------------------------------- * Server * Queue -------------------------------...
Module : Network / Mom / Patterns / Basic / Server.hs Copyright : ( c ) module Network.Mom.Patterns.Basic.Server ( withServer, withQueue) where import Data.Conduit ((=$)) import Network.Mom.Patterns.Types import Network.Mom.Patterns.Streams * ' Context ' - The...
cf53ab5deac79d24bbbd3767c0e04d4f0724e80b536d23b7c1a5e9af34dfd9ce
haskell/haskell-language-server
Fgmap.hs
fgmap :: (Functor f, Functor g) => (a -> b) -> (f (g a) -> f (g b)) fgmap = _
null
https://raw.githubusercontent.com/haskell/haskell-language-server/f3ad27ba1634871b2240b8cd7de9f31b91a2e502/plugins/hls-tactics-plugin/new/test/golden/Fgmap.hs
haskell
fgmap :: (Functor f, Functor g) => (a -> b) -> (f (g a) -> f (g b)) fgmap = _
1da1a773d15f8dcd589bbc665a6845aefdad1973b1442b2f6df361abd7e5f6ae
bolducp/SICP
01.03.scm
Exercise 1.3 . Define a procedure that takes three numbers as arguments and returns the sum of the squares of the two larger numbers . (define (square x) (* x x)) (define (sum-of-squares x y) (+ (square x) (square y))) (define (sum-two-largest-squares x y z) (if (> x y) (if (> y z) (sum-of-squares x y) (s...
null
https://raw.githubusercontent.com/bolducp/SICP/871babe9296b84b2b9648a02f9202752d21ebf93/exercises/chapter_01/1.1_exercises/01.03.scm
scheme
test
Exercise 1.3 . Define a procedure that takes three numbers as arguments and returns the sum of the squares of the two larger numbers . (define (square x) (* x x)) (define (sum-of-squares x y) (+ (square x) (square y))) (define (sum-two-largest-squares x y z) (if (> x y) (if (> y z) (sum-of-squares x y) (s...
5f6206890cdbb60b6ecf7def990dbe0de09cc041952a6fdfee174171a7a9ef61
racket/typed-racket
struct-mutable-contract.rkt
#lang racket/load (module promise typed/racket/base (require (for-syntax racket/base)) (provide MyPromise) (define-struct: (a) MyPromise ([thunk : (-> a)]) #:mutable)) (module user racket/base (require 'promise) (MyPromise (lambda () #f))) (require 'user)
null
https://raw.githubusercontent.com/racket/typed-racket/0236151e3b95d6d39276353cb5005197843e16e4/typed-racket-test/succeed/struct-mutable-contract.rkt
racket
#lang racket/load (module promise typed/racket/base (require (for-syntax racket/base)) (provide MyPromise) (define-struct: (a) MyPromise ([thunk : (-> a)]) #:mutable)) (module user racket/base (require 'promise) (MyPromise (lambda () #f))) (require 'user)
ef26fbb2fe063f1e831b6f82f9110a515d9017b137940b0c689655883a801783
gren-lang/compiler
Module.hs
# OPTIONS_GHC -Wall # module Canonicalize.Module ( canonicalize, ) where import AST.Canonical qualified as Can import AST.Source qualified as Src import Canonicalize.Effects qualified as Effects import Canonicalize.Environment qualified as Env import Canonicalize.Environment.Dups qualified as Dups import Canonica...
null
https://raw.githubusercontent.com/gren-lang/compiler/c3a39dc7177934704ba2c1942580f1f8169954a9/compiler/src/Canonicalize/Module.hs
haskell
RESULT MODULES CANONICALIZE BINOP DECLARATIONS / CYCLE DETECTION DECLARATIONS / CYCLE DETECTION SETUP Phase one nodes track ALL dependencies. This allows us to find cyclic values for type inference. This allows us to detect cycles that definitely do not terminate. CANONICALIZE EXPORTS
# OPTIONS_GHC -Wall # module Canonicalize.Module ( canonicalize, ) where import AST.Canonical qualified as Can import AST.Source qualified as Src import Canonicalize.Effects qualified as Effects import Canonicalize.Environment qualified as Env import Canonicalize.Environment.Dups qualified as Dups import Canonica...
6f3969d1efed2949856a9d238ca8077bdffe8af5452cdf1bfa717f600ba4e361
Frechmatz/cl-synthesizer
packages.lisp
(defpackage :cl-synthesizer-modules-ramp (:use :cl) (:export :make-module))
null
https://raw.githubusercontent.com/Frechmatz/cl-synthesizer/4dfc5c804e56cffbba57744b92b2eebc3b514d1e/src/modules/ramp/packages.lisp
lisp
(defpackage :cl-synthesizer-modules-ramp (:use :cl) (:export :make-module))
35b46bedbcc1db6351eb61f318bc1144676b7dde9d80fb782915a3acef5525b4
Tim-ats-d/Macron
daemon.ml
open Lwt.Syntax let run_lwt () = let* str_settings = Lwt_io.with_file "examples/settings.sexp" ~mode:Input Lwt_io.read in match Config.Settings.parse str_settings with | Ok settings -> ( let* str_shortcs = Lwt_io.with_file "examples/shortcuts.sexp" ~mode:Input Lwt_io.read in match...
null
https://raw.githubusercontent.com/Tim-ats-d/Macron/bf9170f98d46b4388b323f31f1d860c2f9d699eb/lib/daemon.ml
ocaml
open Lwt.Syntax let run_lwt () = let* str_settings = Lwt_io.with_file "examples/settings.sexp" ~mode:Input Lwt_io.read in match Config.Settings.parse str_settings with | Ok settings -> ( let* str_shortcs = Lwt_io.with_file "examples/shortcuts.sexp" ~mode:Input Lwt_io.read in match...
e891047e2b0aea30920d00e54a2471010ec8dfc2f992ebad2a689209ca51b7f7
maximedenes/native-coq
term_typing.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/maximedenes/native-coq/3623a4d9fe95c165f02f7119c0e6564a83a9f4c9/kernel/term_typing.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** This module provides the main entry...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Created by , Aug 2002 as ...
c5bd5543e82aa282b4732f799199652a3c9501725c00cfac0761ca0590725618
ekmett/ekmett.github.com
AD.hs
{-# OPTIONS -fglasgow-exts -fallow-undecidable-instances -fallow-overlapping-instances #-} module Derivatives2 where import Control.Monad.Identity import Control.Arrow ((+++),(***),(&&&)) import Data.Monoid infixl 9 :.: infixl 7 :*: infixl 6 :+: class Bifunctor f where bimap :: (a -> c) -> (b -> d) -> f a b -> f c ...
null
https://raw.githubusercontent.com/ekmett/ekmett.github.com/8d3abab5b66db631e148e1d046d18909bece5893/haskell/AD.hs
haskell
# OPTIONS -fglasgow-exts -fallow-undecidable-instances -fallow-overlapping-instances #
module Derivatives2 where import Control.Monad.Identity import Control.Arrow ((+++),(***),(&&&)) import Data.Monoid infixl 9 :.: infixl 7 :*: infixl 6 :+: class Bifunctor f where bimap :: (a -> c) -> (b -> d) -> f a b -> f c d instance Bifunctor (,) where bimap f g ~(a,b) = (f a, g b) instance Bifunctor Either w...
ffd63af142c0809d669401f6f28edd91cb58d09c99e53ef65e77f0c11e5ed927
kronkltd/jiksnu
access_token.clj
(ns jiksnu.modules.core.model.access-token (:require [jiksnu.modules.core.model :as model] [jiksnu.modules.core.templates.model :as templates.model] [jiksnu.modules.core.validators :as vc] [validateur.validation :as v]) (:import (org.joda.time DateTime))) (def collection-name "a...
null
https://raw.githubusercontent.com/kronkltd/jiksnu/8c91e9b1fddcc0224b028e573f7c3ca2f227e516/src/jiksnu/modules/core/model/access_token.clj
clojure
(ns jiksnu.modules.core.model.access-token (:require [jiksnu.modules.core.model :as model] [jiksnu.modules.core.templates.model :as templates.model] [jiksnu.modules.core.validators :as vc] [validateur.validation :as v]) (:import (org.joda.time DateTime))) (def collection-name "a...
e9cbede2651473587d0fce67baa1a1dd8f8dc6d1071734de24c5aca6b332f6fe
cedlemo/OCaml-GI-ctypes-bindings-generator
Text_view_private.ml
open Ctypes open Foreign type t let t_typ : t structure typ = structure "Text_view_private"
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Text_view_private.ml
ocaml
open Ctypes open Foreign type t let t_typ : t structure typ = structure "Text_view_private"
aaadaa78fb7ac083c4936751a20496f4132243f0a547d0ec42d73457cfc4eaee
expipiplus1/vulkan
VK_KHR_sampler_mirror_clamp_to_edge.hs
{-# language CPP #-} -- | = Name -- VK_KHR_sampler_mirror_clamp_to_edge - device extension -- = = VK_KHR_sampler_mirror_clamp_to_edge -- -- [__Name String__] -- @VK_KHR_sampler_mirror_clamp_to_edge@ -- -- [__Extension Type__] -- Device extension -- -- [__Registered Extension Number__] 15 -- -- [__Revi...
null
https://raw.githubusercontent.com/expipiplus1/vulkan/b1e33d1031779b4740c279c68879d05aee371659/src/Vulkan/Extensions/VK_KHR_sampler_mirror_clamp_to_edge.hs
haskell
# language CPP # | = Name [__Name String__] @VK_KHR_sampler_mirror_clamp_to_edge@ [__Extension Type__] Device extension [__Registered Extension Number__] [__Revision__] [__Extension and Version Dependencies__] [__Deprecation state__] - /Promoted/ to <-extensions/html/vkspec.ht...
VK_KHR_sampler_mirror_clamp_to_edge - device extension = = VK_KHR_sampler_mirror_clamp_to_edge 15 3 - Requires support for Vulkan 1.0 - < -Docs/issues/new?body=[VK_KHR_sampler_mirror_clamp_to_edge ] @tobski%0A*Here describe the issue or question you have about the VK_KHR_sa...
ad88e95f5f3ee712f584824195536055d6d8873e6ce18fe0290a3ef9d2591ad2
gas2serra/mcclim-desktop
kirc-config.lisp
(in-package :desktop-user) (setf (application-entry-fn *application*) #'(lambda (app &rest args) (declare (ignore app args)) (kirc:start-kirc "mcclim-dekstop" "")))
null
https://raw.githubusercontent.com/gas2serra/mcclim-desktop/f85d19c57d76322ae3c05f98ae43bfc8c0d0a554/dot-mcclim-desktop/config/kirc-config.lisp
lisp
(in-package :desktop-user) (setf (application-entry-fn *application*) #'(lambda (app &rest args) (declare (ignore app args)) (kirc:start-kirc "mcclim-dekstop" "")))
9b5182a8e8f84bb7f920e6930ba8d83df758dc081009e57cd7eda687a0ff9b8f
ghc/packages-Cabal
Q.hs
module Q where import P q :: Int q = p
null
https://raw.githubusercontent.com/ghc/packages-Cabal/6f22f2a789fa23edb210a2591d74ea6a5f767872/cabal-install/tests/IntegrationTests2/regression/3324/q/Q.hs
haskell
module Q where import P q :: Int q = p
73670038f4fa08f5c5d8a97337e3283cace95d56727276598913fd16d9d891ff
bensu/lein-cljs
core_test.cljs
(ns lein-cljs.core-test (:require [cljs.test :refer-macros [async deftest is testing]])) (deftest sync-test (is (= 2 1))) ;; Only works in browsers because it uses setTimeout (deftest async-test (async done (is (= 1 1)) (let [a 1] (js/setTimeout (fn [] (is (= a 2)) ...
null
https://raw.githubusercontent.com/bensu/lein-cljs/3da25fc1b620c5cdcb85260c6ca2714764e0c9ac/test/lein_cljs/core_test.cljs
clojure
Only works in browsers because it uses setTimeout
(ns lein-cljs.core-test (:require [cljs.test :refer-macros [async deftest is testing]])) (deftest sync-test (is (= 2 1))) (deftest async-test (async done (is (= 1 1)) (let [a 1] (js/setTimeout (fn [] (is (= a 2)) (done)) 500))))
1238c2a0e1daf82941f6b3cdbba58974525515699e4168a5d50d648062e049ff
xapi-project/xen-api
xapi_event.mli
* Copyright ( C ) 2006 - 2014 Citrix Systems Inc. * * 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 ; version 2.1 only . with the special * exception on linking describe...
null
https://raw.githubusercontent.com/xapi-project/xen-api/fa6f118fb512a2c90159368a1a0bc1cc730c895b/ocaml/xapi/xapi_event.mli
ocaml
* Register an interest in events generated on objects of class <class_name> * Blocking call which returns the next set of events relevant to this session. * Blocking call which returns the next set of events from a given set of classes/objects, or the empty list if the timeout is exceeded
* Copyright ( C ) 2006 - 2014 Citrix Systems Inc. * * 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 ; version 2.1 only . with the special * exception on linking describe...
c18fccdd39e48310ced36ecdee13ebb1413435d81b74f17dfcfd16f42a41495c
keigoi/session-ocaml
ppx_session.ml
TODO : replace " failwith " with proper error - handling open Asttypes open Parsetree open Longident open Ast_helper open Ast_convenience let newname = let r = ref 0 in fun prefix -> let i = !r in r := i + 1; Printf.sprintf "__ppx_linocaml_%s_%d" prefix i let root_module = ref "Syntax" let longide...
null
https://raw.githubusercontent.com/keigoi/session-ocaml/f365456043b349874a5ce5444d313f365d5573c6/ppx/ppx_session.ml
ocaml
var wrapper #tconst wrapper _ x P as 'a 'a'..'z' Other forms of interval are recognized by the parser but rejected by the type-checker. `A (None) `A P (Some P) [| P1; ...; Pn |] (P : T) #tconst [p0 = ??] and [p1 = ??] and .. and e ==> [bi...
TODO : replace " failwith " with proper error - handling open Asttypes open Parsetree open Longident open Ast_helper open Ast_convenience let newname = let r = ref 0 in fun prefix -> let i = !r in r := i + 1; Printf.sprintf "__ppx_linocaml_%s_%d" prefix i let root_module = ref "Syntax" let longide...
9e5b6c15d8cf43587787f11b97ff3fdd9f15848c585eae4a7c8c7c21f6911664
factisresearch/mq-demo
STM1.hs
import Control.Concurrent.STM doSomethingBad :: TVar Int -> IO () doSomethingBad v = do x <- readTVar v writeTVar v (x + 1)
null
https://raw.githubusercontent.com/factisresearch/mq-demo/0efa1991ca647a86a8c22e516a7a1fb392ab4596/talk-cufp2014/code/STM1.hs
haskell
import Control.Concurrent.STM doSomethingBad :: TVar Int -> IO () doSomethingBad v = do x <- readTVar v writeTVar v (x + 1)
047b21def534526afda24a5591fb860fb952b1fedcf84af65d35641eded6eff0
vrnithinkumar/ETC
case_branch_use.erl
-module(case_branch_use). -compile(export_all). ping() -> 1.0. pong() -> 2. % unused case can have branches of different types foo(X) -> A = case X of ping -> ping(); pong -> pong() end, A + 5.
null
https://raw.githubusercontent.com/vrnithinkumar/ETC/34e8b3f98973f49582bb68c46822dbe94f1f9c61/btc_test_suit/test_cases/case_branch_use.erl
erlang
unused case can have branches of different types
-module(case_branch_use). -compile(export_all). ping() -> 1.0. pong() -> 2. foo(X) -> A = case X of ping -> ping(); pong -> pong() end, A + 5.
f4c1d70813de5e1a725d346027d0aefc58d51d1c85891d17df3dc7f8a6e952d8
jrh13/hol-light
prover9.ml
(* ========================================================================= *) Interface to prover9 . (* ========================================================================= *) * * * NB : this is the " prover9 " command invoked by HOL Light . * * * * If t...
null
https://raw.githubusercontent.com/jrh13/hol-light/d125b0ae73e546a63ed458a7891f4e14ae0409e2/Examples/prover9.ml
ocaml
========================================================================= ========================================================================= ------------------------------------------------------------------------- ------------------------------------------------------------------------- ---------------...
Interface to prover9 . * * * NB : this is the " prover9 " command invoked by HOL Light . * * * * If this does n't work , set an explicit path to the prover9 binary * * * **** If this doesn't work, set an explicit path to the prover9 binary ****) let prove...
e5251ed566cccd88d7677fc8ffb19a0aae69d2c40406a424862bd0e34696b233
Compositional/reflex-servant
Servant.hs
# LANGUAGE TupleSections # {-# LANGUAGE Rank2Types #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # module Reflex.Servant ( -- * Deriving the endpoints reflexClient , HasReflexClient , ReflexClient -- * Configuration basics , basicConfig , defaultConfig , Config(..) -- * Basi...
null
https://raw.githubusercontent.com/Compositional/reflex-servant/ab29626d9643ede881572c35b8ae08f93cefe1d7/src/Reflex/Servant.hs
haskell
# LANGUAGE Rank2Types # * Deriving the endpoints * Configuration basics * Basic endpoint configuration * General endpoint configuration * Product type configuration * Configuration type classes | A very basic configuration for concrete @m@ that does not support 'traverseEndpoint'. | A default configuration that...
# LANGUAGE TupleSections # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # module Reflex.Servant ( reflexClient , HasReflexClient , ReflexClient , basicConfig , defaultConfig , Config(..) , InstantiatedEndpointConfig(..) , ConfiguredEndpointConfig(..) , ServantClientRunner , Generi...
c61b4dd19cabde84e1488faa13e672d4a7647461970c9f35db9dc7e932b37d73
janestreet/universe
hlist.mli
(** A set of right-nested tuples and associated types used to represent the fields of a record while rebuilding it. *) (** *) type 'elements t = 'elements type nil = unit type ('head, 'tail) cons = 'head * 'tail type 'elements nonempty = 'elements constraint 'elements = ('x, 'xs) cons val empty : nil t val cons :...
null
https://raw.githubusercontent.com/janestreet/universe/b6cb56fdae83f5d55f9c809f1c2a2b50ea213126/record_builder/src/hlist.mli
ocaml
* A set of right-nested tuples and associated types used to represent the fields of a record while rebuilding it. * * @open * Transform an index to find an element within a suffix of the list. {i O(n)} allocation and work. * @open * Get the element at some index of an hlist. {i O(n)} work, no all...
type 'elements t = 'elements type nil = unit type ('head, 'tail) cons = 'head * 'tail type 'elements nonempty = 'elements constraint 'elements = ('x, 'xs) cons val empty : nil t val cons : 'a -> 'tail t -> ('a, 'tail) cons t val head : ('a, _) cons t -> 'a val tail : (_, 'tail) cons t -> 'tail module Suffix_index :...
71211123dc84123554fcf40c829f8b1182522a91efcd282bc59ca5cc46648428
cmars/sks-keyserver
wserver.ml
(***********************************************************************) (* wserver.ml - simple web server code *) (* *) Copyright ( C ) 2002 , 2003 , 2004 , 2005 , 2006 , 2007 , 2008 , 2009 , 2010 , 2...
null
https://raw.githubusercontent.com/cmars/sks-keyserver/d848c4852cb15585525772b6378670f8724a8f39/wserver.ml
ocaml
********************************************************************* wserver.ml - simple web server code redistribute it and/or modify it under ...
Copyright ( C ) 2002 , 2003 , 2004 , 2005 , 2006 , 2007 , 2008 , 2009 , 2010 , 2011 , 2012 , 2013 and Contributors This file is part of SKS . SKS is free software ; you can Public License as published by the Free Software Foundation ; either version 2 of the License , or...
75b5bc8d8b8af4d6aa280e54dccb736186558985f901e93c5155a5a5e5e98606
ocaml-omake/omake
lm_thread_core_system.ml
* Our personal implementation of threads . Each thread has * thread - local state . * * ---------------------------------------------------------------- * * @begin[license ] * Copyright ( C ) 2003 - 2007 Mojave Group , California Institute of Technology , and * HRL Laboratories , LLC * *...
null
https://raw.githubusercontent.com/ocaml-omake/omake/08b2a83fb558f6eb6847566cbe1a562230da2b14/src/libmojave/lm_thread_core_system.ml
ocaml
* Thread implementation. * -*- * Local Variables: * End: * -*-
* Our personal implementation of threads . Each thread has * thread - local state . * * ---------------------------------------------------------------- * * @begin[license ] * Copyright ( C ) 2003 - 2007 Mojave Group , California Institute of Technology , and * HRL Laboratories , LLC * *...
e59a423923f9a5bc1a8edcb725fb1259178c1348ce9e1862fe485bd9d879a07e
alanz/ghc-exactprint
WCompatWarningsOff.hs
-- Test purpose: -- Ensure that using -Wno-compat does not switch on warnings { - # OPTIONS_GHC -Wcompat # - } # OPTIONS_GHC -Wno - compat # module WCompatWarningsOff where import qualified Data.Semigroup as Semi monadFail :: Monad m => m a monadFail = do Just _ <- undefined undefined (<>) = undefined --...
null
https://raw.githubusercontent.com/alanz/ghc-exactprint/b6b75027811fa4c336b34122a7a7b1a8df462563/tests/examples/ghc80/WCompatWarningsOff.hs
haskell
Test purpose: Ensure that using -Wno-compat does not switch on warnings Semigroup warnings -fwarn-noncanonical-monoid-instances
{ - # OPTIONS_GHC -Wcompat # - } # OPTIONS_GHC -Wno - compat # module WCompatWarningsOff where import qualified Data.Semigroup as Semi monadFail :: Monad m => m a monadFail = do Just _ <- undefined undefined newtype S = S Int instance Semi.Semigroup S where (<>) = mappend instance Semi.Monoid S wher...
0d1c52135eb362ce3b17ae31c94754eb46490f9ee0426b1d8b251ac9d0e0821e
ucsd-progsys/liquidhaskell
T1013.hs
{-@ LIQUID "--reflection" @-} {-# LANGUAGE RankNTypes #-} module T1013 where import Language.Haskell.Liquid.ProofCombinators {-@ reflect _identity @-} _identity :: a -> a _identity x = x {-# INLINE _identity #-} data Rec1 f p = Rec1 { unRec1 : : f p } @ data Rec1 f p = Rec1 { unRec1 :: f p } {-@ reflect fmapR...
null
https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/20cd67af038930cb592d68d272c8eb1cbe3cb6bf/tests/pos/T1013.hs
haskell
@ LIQUID "--reflection" @ # LANGUAGE RankNTypes # @ reflect _identity @ # INLINE _identity # @ reflect fmapRec1 @
module T1013 where import Language.Haskell.Liquid.ProofCombinators _identity :: a -> a _identity x = x data Rec1 f p = Rec1 { unRec1 : : f p } @ data Rec1 f p = Rec1 { unRec1 :: f p } fmapRec1 :: (forall a b. (a -> b) -> f a -> f b) -> (p -> q) -> Rec1 f p -> Rec1 f q fmapRec1 fmapF f (Rec1 fp) = Rec1 (...
cbc64736894e3178e7463b77d0e760a78e702584a15ccc67d104ff2dcff5bb8f
camfort/camfort
Environment.hs
Copyright 2016 , , , , 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 distribute...
null
https://raw.githubusercontent.com/camfort/camfort/861646ae5af61a41d1519049cfeda60ac82f3d98/src/Camfort/Specification/Units/Environment.hs
haskell
* Helpers * Modules (instances) | A (unique name, source name) variable | A (unique name, source name) program unit name | Description of the unit of an expression. identify particular instantiation of parameters a particular instantiation of above a literal with abstract, polymorphic units, uniquely identified...
Copyright 2016 , , , , 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 distribute...
dade68dbe66ab8f5982bb2873e96a588cc943a0423e3ba1f7a17cead93a215cb
Perry961002/SICP
exe2.73-deriv.scm
; a) ;在求导程序中,数字被直接表示为数值类型,而变量被直接表示为符号类型,没有必要画蛇添足 ; b) ;补充代码 ;加载put和get操作 (load "Chap3\\example\\exa3.3.3-table.scm") (define (variable? x) (symbol? x)) (define (same-variable? v1 v2) (and (variable? v1) (variable? v2) (eq? v1 v2))) (define (=number? exp num) (and (number? exp) (= exp num))) - tag和contents操作...
null
https://raw.githubusercontent.com/Perry961002/SICP/89d539e600a73bec42d350592f0ac626e041bf16/Chap2/exercise/exe2.73-deriv.scm
scheme
a) 在求导程序中,数字被直接表示为数值类型,而变量被直接表示为符号类型,没有必要画蛇添足 b) 补充代码 加载put和get操作 定义加法求导的程序包 内部数据 外部接口 内部数据 外部接口 c) 添加乘幂运算包 内部数据 外部接口 d) 对于题目中提到的情况,只要把put操作的参数的顺序反一下即可
(load "Chap3\\example\\exa3.3.3-table.scm") (define (variable? x) (symbol? x)) (define (same-variable? v1 v2) (and (variable? v1) (variable? v2) (eq? v1 v2))) (define (=number? exp num) (and (number? exp) (= exp num))) - tag和contents操作 (define (attach-tag type-tag x y) (list type-tag x y)) (define (typ...
3371fe1ed42ac5b5e0ecf219f358ce3e5a582acf8626c2abb5c17470a5866b0b
noinia/hgeometry
Determinant.hs
module Geometry.SoS.Determinant where import HGeometry.Sign import HGeometry.Number.Real.Symbolic import Geometry.Matrix -- | pre: computes the sign of the determinant signDet :: (HasDeterminant d, Ord i, Num r, Ord r) => Matrix d d (Symbolic i r) -> Sign signDet m = case det m `compa...
null
https://raw.githubusercontent.com/noinia/hgeometry/ddc7d456cbee3e2cd998857780089e1469ba81ba/hgeometry/src/Geometry/SoS/Determinant.hs
haskell
| pre: computes the sign of the determinant
module Geometry.SoS.Determinant where import HGeometry.Sign import HGeometry.Number.Real.Symbolic import Geometry.Matrix signDet :: (HasDeterminant d, Ord i, Num r, Ord r) => Matrix d d (Symbolic i r) -> Sign signDet m = case det m `compare` 0 of LT -> Negative ...
fde9b0f23d7ba8a426818306a63f65bb51a134beef4902f96d53c00653abcb5c
ocramz/heidi
DocTest.hs
module Main where import Test.DocTest (doctest) main :: IO () main = doctest [ " src / Data / Generics / Encode / OneHot.hs " , "src/Heidi.hs" " src / Data / Generics / Encode / Internal.hs " " src / Core / Data / Frame / Generic.hs " , " src / Core / Data / Frame / List.hs " ]
null
https://raw.githubusercontent.com/ocramz/heidi/172e4337a1f730c038ba10f48ea6bb3aa8acbf1f/test/DocTest.hs
haskell
module Main where import Test.DocTest (doctest) main :: IO () main = doctest [ " src / Data / Generics / Encode / OneHot.hs " , "src/Heidi.hs" " src / Data / Generics / Encode / Internal.hs " " src / Core / Data / Frame / Generic.hs " , " src / Core / Data / Frame / List.hs " ]
24295e603997fad2873003975cfe7f75630df767552d260df7dbbb05210e41a4
HaskellZhangSong/Introduction_to_Haskell_2ed_source
ImplicitParams.hs
# LANGUAGE ImplicitParams # import Data.List sortBy' :: Ord a => (a -> a -> Bool) -> [a] -> [a] sortBy' f xs = sortBy cmp xs where cmp x y = if f x y then LT else GT sort' :: (?cmp :: a -> a -> Bool) => Ord a => [a] -> [a] sort' = sortBy' ?cmp least xs = head (sort' xs) maxnum = let ?cmp =...
null
https://raw.githubusercontent.com/HaskellZhangSong/Introduction_to_Haskell_2ed_source/140c50fdccfe608fe499ecf2d8a3732f531173f5/C16/ImplicitParams.hs
haskell
# LANGUAGE ImplicitParams # import Data.List sortBy' :: Ord a => (a -> a -> Bool) -> [a] -> [a] sortBy' f xs = sortBy cmp xs where cmp x y = if f x y then LT else GT sort' :: (?cmp :: a -> a -> Bool) => Ord a => [a] -> [a] sort' = sortBy' ?cmp least xs = head (sort' xs) maxnum = let ?cmp =...
3c54ea7a3cedf3d18453584863f30b6e59c30aa3921fb772f1f82e810ef47304
Ericson2314/lighthouse
Hello.hs
Hello.hs ( adapted from hello.c which is ( c ) Silicon Graphics , Inc. ) Copyright ( c ) 2002 - 2005 < > This file is part of HOpenGL and distributed under a BSD - style license See the file libraries / GLUT / LICENSE This is a simple , introductory OpenGL program . Hello.hs (adapted f...
null
https://raw.githubusercontent.com/Ericson2314/lighthouse/210078b846ebd6c43b89b5f0f735362a01a9af02/ghc-6.8.2/libraries/GLUT/examples/RedBook/Hello.hs
haskell
clear all pixels draw white polygon (rectangle) with corners at resolve overloading, not needed in "real" programs don't wait! start processing buffered OpenGL routines select clearing color initialize viewing values Declare initial window size, position, and display mode (single buffer and RGBA). Open window ...
Hello.hs ( adapted from hello.c which is ( c ) Silicon Graphics , Inc. ) Copyright ( c ) 2002 - 2005 < > This file is part of HOpenGL and distributed under a BSD - style license See the file libraries / GLUT / LICENSE This is a simple , introductory OpenGL program . Hello.hs (adapted f...
d9a0f5e0ae3188c6dfd33797b403b2b0c5b0eb923b45bb2dd942073145c8355d
nvim-treesitter/nvim-treesitter
folds.scm
[ (function_definition) (class_definition) (while_statement) (for_statement) (if_statement) (with_statement) (try_statement) (match_statement) (import_from_statement) (parameters) (argument_list) (parenthesized_expression) (generator_expression) (list_comprehension) (set_comprehension) ...
null
https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/c9ebd16c2884c3ab7463c6cafa0385971db7456b/queries/python/folds.scm
scheme
[ (function_definition) (class_definition) (while_statement) (for_statement) (if_statement) (with_statement) (try_statement) (match_statement) (import_from_statement) (parameters) (argument_list) (parenthesized_expression) (generator_expression) (list_comprehension) (set_comprehension) ...
f6286f1eb675968a1a5a970a36421f3ca85a0b4623e8c9cd2520b0151b4de7ce
ChrisTitusTech/gimphelp
210_artist_notepaper.scm
; 210_artist_notepaper.scm last modified / tested by [ gimphelp.org ] 05/11/2019 on GIMP 2.10.10 ;================================================== ; ; Installation: ; This script should be placed in the user or system-wide script folder. ; ; Windows 7/10 C:\Program Files\GIMP 2\share\gimp\2.0\scripts ; or C...
null
https://raw.githubusercontent.com/ChrisTitusTech/gimphelp/fdbc7e3671ce6bd74cefd83ecf7216e5ee0f1542/gimp_scripts-2.10/210_artist_notepaper.scm
scheme
210_artist_notepaper.scm ================================================== Installation: This script should be placed in the user or system-wide script folder. Windows 7/10 or Linux /home/yourname/.config/GIMP/2.10/scripts or Linux system-wide /usr/share/gimp/2.0/scripts =========================...
last modified / tested by [ gimphelp.org ] 05/11/2019 on GIMP 2.10.10 C:\Program Files\GIMP 2\share\gimp\2.0\scripts C:\Users\YOUR - NAME\AppData\Roaming\GIMP\2.10\scripts it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the Lice...
37d3e114347537ecbe36f18eae52e39362262d503764f32fa1094d75681fd628
endobson/racket-llvm
misc-instructions.rkt
#lang racket (require "define.rkt" "ctypes.rkt") (require ffi/unsafe) (provide (all-defined-out)) ;/* Miscellaneous instructions */ (define-llvm-unsafe LLVMBuildPhi (_fun LLVMBuilderRef LLVMTypeRef _string -> LLVMValueRef)) (define-llvm-safe LLVMBuildPhi (_fun (builder : safe:LLVMBuilderRef) safe:L...
null
https://raw.githubusercontent.com/endobson/racket-llvm/3eb557b0fe4bddfdfce8e8f4659d218535daa061/private/ffi/misc-instructions.rkt
racket
/* Miscellaneous instructions */
#lang racket (require "define.rkt" "ctypes.rkt") (require ffi/unsafe) (provide (all-defined-out)) (define-llvm-unsafe LLVMBuildPhi (_fun LLVMBuilderRef LLVMTypeRef _string -> LLVMValueRef)) (define-llvm-safe LLVMBuildPhi (_fun (builder : safe:LLVMBuilderRef) safe:LLVMTypeRef _non-null-strin...
e58779f04d86455d5188dd1e4137db2c2beb784620f5edf0da37e34bda510c8c
mariusae/ocaml-rtree
rtree_f.mli
module type BoundableType = sig type t val to_envelope : t -> Envelope.t end module type R = sig type elem type t val empty : t val insert : t -> elem -> t val find : t -> Envelope.t -> elem list val size : t -> int end module Make (B : BoundableType) : R with type elem = B.t
null
https://raw.githubusercontent.com/mariusae/ocaml-rtree/dc579fd70293ff9470a3f4e9bff2c62f747213d2/src/rtree_f.mli
ocaml
module type BoundableType = sig type t val to_envelope : t -> Envelope.t end module type R = sig type elem type t val empty : t val insert : t -> elem -> t val find : t -> Envelope.t -> elem list val size : t -> int end module Make (B : BoundableType) : R with type elem = B.t
8817f668c2626776f91f562998427d5518faa7f04278b373c97d91d5e996a496
jackfirth/rebellion
equivalence-relation.rkt
#lang racket/base (require racket/contract/base) (provide (contract-out [equivalence-relation? predicate/c] [make-equivalence-relation (->* ((-> any/c any/c boolean?)) (#:name (or/c interned-symbol? #f)) equivalence-relation?)] [equivalence-relation-holds? (-> equivalence-relation? any/c any...
null
https://raw.githubusercontent.com/jackfirth/rebellion/64f8f82ac3343fe632388bfcbb9e537759ac1ac2/base/equivalence-relation.rkt
racket
@------------------------------------------------------------------------------
#lang racket/base (require racket/contract/base) (provide (contract-out [equivalence-relation? predicate/c] [make-equivalence-relation (->* ((-> any/c any/c boolean?)) (#:name (or/c interned-symbol? #f)) equivalence-relation?)] [equivalence-relation-holds? (-> equivalence-relation? any/c any...
5e6f57b06989bf1c9475959087a396678b7eb7b26a61be4f9e7423c7ba30aeba
ankushdas/Nomos
RastFlags.ml
(* Cost Model *) type cost = None (* none *) | Free (* only explicit work or delay constructs *) each receive costs 1 unit each receive and send costs 1 unit each send costs 1 unit let parseCost s = match s with "none" -> Some None | "recv" -> Some Recv | "...
null
https://raw.githubusercontent.com/ankushdas/Nomos/db678f3981e75a1b3310bb55f66009bb23430cb1/rast/RastFlags.ml
ocaml
Cost Model none only explicit work or delay constructs Syntax Explicit syntax performs no reconstruction * Implicit syntax reconstructs non-structural types * (quantifiers, work, time) Default values
each receive costs 1 unit each receive and send costs 1 unit each send costs 1 unit let parseCost s = match s with "none" -> Some None | "recv" -> Some Recv | "recvsend" -> Some RecvSend | "send" -> Some Send | "free" -> Some Free | _ -> None;; let pp_cost c = match c with None -> "none" |...
cc5935fa4cb838df0aed8285d0133e3db52f02e7d3c160119980a45d43718afc
AccelerateHS/accelerate-examples
PGM.hs
-- Load a PGM file . MacOS X users might find the following quicklook plugin useful for viewing PGM files : -- -- -pfm/ -- module PGM where import Control.Applicative import Graphics.Pgm import Prelude as P import Data.Array.Accelerate as Acc import Data.Array.Unboxed hiding (Array) ...
null
https://raw.githubusercontent.com/AccelerateHS/accelerate-examples/a973ee423b5eadda6ef2e2504d2383f625e49821/examples/icebox/tests/PGM.hs
haskell
-pfm/
Load a PGM file . MacOS X users might find the following quicklook plugin useful for viewing PGM files : module PGM where import Control.Applicative import Graphics.Pgm import Prelude as P import Data.Array.Accelerate as Acc import Data.Array.Unboxed hiding (Array) import qualified D...
ba4e27885f314bb76915f62435b41b613a2a3d9b53632a97bd002e56eddcc660
gebi/jungerl
rcube.erl
-module(rcube). -author(''). %%% -------------------------------------------------------------------- Created : 92 - 01 - 30 by Tobbe ( ) One of my first programs in Erlang , making use of %%% PXW which was an interface to the Athena Widget set. %%% I wanted to try out some simple g...
null
https://raw.githubusercontent.com/gebi/jungerl/8f5c102295dbe903f47d79fd64714b7de17026ec/lib/ex11/src/rcube.erl
erlang
-------------------------------------------------------------------- PXW which was an interface to the Athena Widget set. I wanted to try out some simple graphics concepts, such as how to remove hidden lines before drawing them. Since then I have used this program as little ...
-module(rcube). -author(''). Created : 92 - 01 - 30 by Tobbe ( ) One of my first programs in Erlang , making use of Modified : 12 Aug 1997 by Transformed to use GS . Modified : 19 Feb 1999 by Transformed again to use the Erlang X11 binding . -export([start/0, start/1,init/...
922d09ffd94beff91b9f5bf0c7f3c3d8472a10b1d2eff6264017348c643c0bee
alwx/luno-react-native
main.cljs
(ns env.ios.main (:require [luno.ios.core :as core])) (core/init)
null
https://raw.githubusercontent.com/alwx/luno-react-native/34f9f8b01c1248cf64f40be9638e8352fd8fd448/env/prod/env/ios/main.cljs
clojure
(ns env.ios.main (:require [luno.ios.core :as core])) (core/init)
aa2cc535d16871831efddd545f26424a476ff81ba0a3cf0a3b8383619e98fa2e
LPCIC/matita
nDestructTac.mli
||M|| This file is part of HELM , an Hypertextual , Electronic ||A|| Library of Mathematics , developed at the Computer Science ||T|| Department , University of Bologna , Italy . ||I|| ||T||...
null
https://raw.githubusercontent.com/LPCIC/matita/794ed25e6e608b2136ce7fa2963bca4115c7e175/matita/components/ng_tactics/nDestructTac.mli
ocaml
||M|| This file is part of HELM , an Hypertextual , Electronic ||A|| Library of Mathematics , developed at the Computer Science ||T|| Department , University of Bologna , Italy . ||I|| ||T||...
ffbdf9851c8d9de4c98fd0fb06ff4fa683e1e9a712cded107cdca69e9b753ee0
BranchTaken/Hemlock
test_fmt.ml
open! Basis.Rudiments open! Basis open I256 let test () = let rec fn = function | [] -> () | x :: xs' -> begin let _ = File.Fmt.stdout |> pp x |> Fmt.fmt " " |> fmt ~alt:true ~zpad:true ~width:64L ~radix:Radix.Hex ~pretty:true x |> Fmt.fmt "\n" ...
null
https://raw.githubusercontent.com/BranchTaken/Hemlock/a07e362d66319108c1478a4cbebab765c1808b1a/bootstrap/test/basis/i256/test_fmt.ml
ocaml
open! Basis.Rudiments open! Basis open I256 let test () = let rec fn = function | [] -> () | x :: xs' -> begin let _ = File.Fmt.stdout |> pp x |> Fmt.fmt " " |> fmt ~alt:true ~zpad:true ~width:64L ~radix:Radix.Hex ~pretty:true x |> Fmt.fmt "\n" ...
11d38fc7dce94e647ef53e61a4971bef19f7444ce315d60c503fd48753b2e87a
cram2/cram
sort-vector-largest-index.lisp
Regression test SORT - VECTOR - LARGEST - INDEX for GSLL , automatically generated ;; Copyright 2009 , 2011 , 2014 Distributed under the terms of the GNU General Public License ;; ;; This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as p...
null
https://raw.githubusercontent.com/cram2/cram/dcb73031ee944d04215bbff9e98b9e8c210ef6c5/cram_3rdparty/gsll/src/tests/sort-vector-largest-index.lisp
lisp
This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Publi...
Regression test SORT - VECTOR - LARGEST - INDEX for GSLL , automatically generated Copyright 2009 , 2011 , 2014 Distributed under the terms of the GNU General Public License it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License ,...
42063163175c9db96c8b13df22e76c431a1550cb1e128fd279180a9ae88d4232
Andromedans/andromeda
debruijn.ml
* Convert input syntax to abstract syntax . We convert variables do indices , although binders remember the variables names for later printing out . We also have to decouple terms from types by figuring out which expressions are types and which ones are names of types . We insert [ El ] as ne...
null
https://raw.githubusercontent.com/Andromedans/andromeda/a5c678450e6c6d4a7cd5eee1196bde558541b994/archive/old-andromeda/debruijn.ml
ocaml
* Convert input syntax to abstract syntax . We convert variables do indices , although binders remember the variables names for later printing out . We also have to decouple terms from types by figuring out which expressions are types and which ones are names of types . We insert [ El ] as ne...
c551afcd2afa3be42eb39803bc8b214241ab4e8a33c298325f1972de3c762336
eshamster/watson
environment.lisp
(defpackage :watson/t/env/environment (:use #:cl #:rove #:watson/env/environment)) (in-package :watson/t/env/environment) (deftest intern.wat (with-cloned-wenvironment (let ((hoge1 (intern.wat 'hoge)) (hoge2 (intern.wat 'hoge)) (fuga (intern.wat 'fuga))) (ok (eq hoge1 ...
null
https://raw.githubusercontent.com/eshamster/watson/0525f4a657298cec74121162c3cd3dec953c7a25/t/env/environment.lisp
lisp
this won't be got this won't be got this won't be got NOTE: There are some default macros. So check difference of length. this won't be got this won't be got this won't be got
(defpackage :watson/t/env/environment (:use #:cl #:rove #:watson/env/environment)) (in-package :watson/t/env/environment) (deftest intern.wat (with-cloned-wenvironment (let ((hoge1 (intern.wat 'hoge)) (hoge2 (intern.wat 'hoge)) (fuga (intern.wat 'fuga))) (ok (eq hoge1 ...
2d9d0b681486df110147aa4e80682a3a53a2d93018f97109e8120cb7129b3047
kuberlog/holon
printing.lisp
(in-package :holon.task) (defun print-all-task-info () (print-current-task *selected-task*) (print-task-list nil) (print-task-menu)) (defgeneric print-current-task (current-task)) (defmethod print-current-task ((current-task null))) (defmethod print-current-task ((current-task task)) (when current-task ...
null
https://raw.githubusercontent.com/kuberlog/holon/f9c9a687eff0c40bc1293820efda92683f1174fa/lisp/task/printing.lisp
lisp
(in-package :holon.task) (defun print-all-task-info () (print-current-task *selected-task*) (print-task-list nil) (print-task-menu)) (defgeneric print-current-task (current-task)) (defmethod print-current-task ((current-task null))) (defmethod print-current-task ((current-task task)) (when current-task ...
433ba4fdd0e2d0e346fb6c803921b746bc226dfcb4ff48fb21d2fa20cccaac0e
elginer/Delve
UniqueVars.hs
The Delve Programming Language Copyright 2009 Distributed under the terms of the GNU General Public License v3 , or ( at your option ) any later version . This file is part of Delve . Delve is free software : you can redistribute it and/or modify it under the terms of the GNU Ge...
null
https://raw.githubusercontent.com/elginer/Delve/997c25d2c43ac3ab06f7d70304a59f4a8d5f9670/src/UniqueVars.hs
haskell
# OPTIONS -XRankNTypes # | A monad for generating unique variable names. | A Simple varient of UniqueVarsM. It rather disrupts 'from simple to complex'. | Create a new unique symbol
The Delve Programming Language Copyright 2009 Distributed under the terms of the GNU General Public License v3 , or ( at your option ) any later version . This file is part of Delve . Delve is free software : you can redistribute it and/or modify it under the terms of the GNU Ge...
426837d725e627c08eb8c1f3dbd6d7485a4f74c5e640b31abb557252d299ddd6
jeffshrager/biobike
fasta-utils.lisp
-*- Package : bioutils ; mode : lisp ; base : 10 ; Syntax : Common - Lisp ; -*- ;;; Author: JP Massar. (in-package :bioutils) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; Tests (defun test-file-template () (cl-user:translate-simple-lp "Biol:Testing;")) (defun fasta-test-file (&optional (name "test.fsta")) (merge-pa...
null
https://raw.githubusercontent.com/jeffshrager/biobike/5313ec1fe8e82c21430d645e848ecc0386436f57/BioLisp/Biotests/fasta-utils.lisp
lisp
mode : lisp ; base : 10 ; Syntax : Common - Lisp ; -*- Author: JP Massar. Tests Returns NIL if file does not exist or could not be deleted. Otherwise T. DELETE-FILE is always supposed to return T or error out, Should create the index file and compile it and load it. Should create the index file and compile it ...
(in-package :bioutils) (defun test-file-template () (cl-user:translate-simple-lp "Biol:Testing;")) (defun fasta-test-file (&optional (name "test.fsta")) (merge-pathnames name (test-file-template))) (defparameter *fasta-other-extension* (fasta-test-file "test.fasta")) (defparameter *fasta-no-extension* (fast...
0cae99e0b81ad038a29a65e49f9919d599c9a943683f97c24bee319174dd68aa
semilin/layoup
(p_q).lisp
(MAKE-LAYOUT :NAME "(p_q)" :MATRIX (APPLY #'KEY-MATRIX '("hsi.,;qply" "rtekxfzocb" "ndavj'wgmu")) :SHIFT-MATRIX NIL :KEYBOARD NIL)
null
https://raw.githubusercontent.com/semilin/layoup/27ec9ba9a9388cd944ac46206d10424e3ab45499/data/layouts/(p_q).lisp
lisp
(MAKE-LAYOUT :NAME "(p_q)" :MATRIX (APPLY #'KEY-MATRIX '("hsi.,;qply" "rtekxfzocb" "ndavj'wgmu")) :SHIFT-MATRIX NIL :KEYBOARD NIL)
22401f3f76d94306a841b6daf40496b58baf1bfd0a24c9fa64434511e56faeaa
vonzhou/LearnYouHaskellForGreatGood
return2.hs
main = do a <- return "helllo" b <- return "vonzhou" putStrLn $ a ++ " " ++ b
null
https://raw.githubusercontent.com/vonzhou/LearnYouHaskellForGreatGood/439d848deac53ef6da6df433078b7f1dcf54d18d/chapter8/return2.hs
haskell
main = do a <- return "helllo" b <- return "vonzhou" putStrLn $ a ++ " " ++ b
7a66794656567a4502575255f6cc1bba28625d63be588716c731a77f23176018
facebookincubator/hsthrift
Internal.hs
Copyright ( c ) Facebook , Inc. and its affiliates . # LANGUAGE CPP # module Thrift.Protocol.Binary.Internal ( binaryFloat, binaryDouble, getBuffer ) where #if __GLASGOW_HASKELL__ == 804 import Thrift.Binary.Parser (getWord32be) #endif import Thrift.Binary.Parser as P import Data.ByteString (ByteString) import ...
null
https://raw.githubusercontent.com/facebookincubator/hsthrift/d3ff75d487e9d0c2904d18327373b603456e7a01/lib/Thrift/Protocol/Binary/Internal.hs
haskell
Note: The copy function *must* copy the input, otherwise this is unsafe because the result is a slice of the input which may be a memory buffer that can get GC'd
Copyright ( c ) Facebook , Inc. and its affiliates . # LANGUAGE CPP # module Thrift.Protocol.Binary.Internal ( binaryFloat, binaryDouble, getBuffer ) where #if __GLASGOW_HASKELL__ == 804 import Thrift.Binary.Parser (getWord32be) #endif import Thrift.Binary.Parser as P import Data.ByteString (ByteString) import ...
eea68507ec6dbea103299211c61395a446fecdf62adae35c1172af50949ad17f
mirage/alcotest
alcotest_lwt.mli
* Copyright ( c ) 2017 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
null
https://raw.githubusercontent.com/mirage/alcotest/bb3492901dea03c72b4de6b5660852a020283921/src/alcotest-lwt/alcotest_lwt.mli
ocaml
* [Alcotest_lwt] enables testing functions which return an Lwt promise. {!run} returns a promise that runs the tests when scheduled, catching any asynchronous exceptions thrown by the tests.
* Copyright ( c ) 2017 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
92148b4ffb644d20aee9823406bc2338364446b687c7551946a7f75c224e317e
ndmitchell/catch
Type.hs
module Pred.Type where import List import General.General -- * Data type definition data Pred a = PredOr [Pred a] | PredAnd [Pred a] | PredLit a isPredLit (PredLit _) = True; isPredLit _ = False isPredAnd (PredAnd _) = True; isPredAnd _ = False isPredOr (PredOr _) = True; isPredOr _ = F...
null
https://raw.githubusercontent.com/ndmitchell/catch/5d834416a27b4df3f7ce7830c4757d4505aaf96e/src/Pred/Type.hs
haskell
* Data type definition * Show instance * Play instances ** Play on the predicate ** Play on the literal * Construction and simplification
module Pred.Type where import List import General.General data Pred a = PredOr [Pred a] | PredAnd [Pred a] | PredLit a isPredLit (PredLit _) = True; isPredLit _ = False isPredAnd (PredAnd _) = True; isPredAnd _ = False isPredOr (PredOr _) = True; isPredOr _ = False instance Eq a => E...
8a6e46cc8bbbabd80ac5487d2ab28e5d61021f0026b9365c4cc343d69d6efcc3
ricardobcl/Dotted-Version-Vectors
dvv.erl
%%%------------------------------------------------------------------- %%% %%% File: dvv.erl %%% @author < > %%% 2012 %%% The MIT License ( MIT ) Copyright ( C ) 2013 %%% Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentat...
null
https://raw.githubusercontent.com/ricardobcl/Dotted-Version-Vectors/27fd1225c10a7dc4890e5e55abddf6db2392f6cc/src/dvv.erl
erlang
------------------------------------------------------------------- File: dvv.erl @doc @end @reference Dotted Version Vectors: Logical Clocks for Optimistic Replication URL: ------------------------------------------------------------------- STRUCTURE FUNCTIONS @doc Returns a new dvv. ...
@author < > 2012 The MIT License ( MIT ) Copyright ( C ) 2013 Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitation the ri...
388ca719eb53bbc8763479c012f1848ebccc34d899c6c09761ded3ffd11ccd04
GillianPlatform/Gillian
PFS.ml
(** GIL Pure Formulae *) open SVal module L = Logging type t = Formula.t Ext_list.t [@@deriving yojson] (**************************************) (** Pure formulae functions **) (**************************************) let init () : t = Ext_list.make () let equal (pfs1 : t) (pfs2 : t) : bool = Ext_list....
null
https://raw.githubusercontent.com/GillianPlatform/Gillian/eaa028aaed7414c216b04ee25e0332dbc3d3cf8b/GillianCore/engine/FOLogic/PFS.ml
ocaml
* GIL Pure Formulae ************************************ * Pure formulae functions * ************************************
open SVal module L = Logging type t = Formula.t Ext_list.t [@@deriving yojson] let init () : t = Ext_list.make () let equal (pfs1 : t) (pfs2 : t) : bool = Ext_list.for_all2 Formula.equal pfs1 pfs2 let to_list : t -> Formula.t list = Ext_list.to_list let of_list : Formula.t list -> t = Ext_list.of_list let to_...
bdf398f6aa3f06a5b47f76d3afc54f53b68b2d8e6183d6ce99124932cf62bc85
leepike/Copilot
Cast.hs
-------------------------------------------------------------------------------- Copyright © 2011 National Institute of Aerospace / Galois , Inc. -------------------------------------------------------------------------------- # LANGUAGE RebindableSyntax # -- Examples of casting types. module Cast ( castEx ) whe...
null
https://raw.githubusercontent.com/leepike/Copilot/18a71502c5c9e7262f14bb8167f3b4a09c9c6a8b/Examples/Cast.hs
haskell
------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Examples of casting types.
Copyright © 2011 National Institute of Aerospace / Galois , Inc. # LANGUAGE RebindableSyntax # module Cast ( castEx ) where import Language.Copilot hiding (even, odd) import Copilot.Compile.C99 b :: Stream Bool b = [True] ++ not b i :: Stream Int8 i = cast b x :: Stream Word16 x = [0] ++ x + 1 y :: Stream Int...
acee25cb0f6f48eb89cc96cd68fce666c86d0286956ef4ff68e24805095649a1
scalaris-team/scalaris
txid_on_cseq.erl
2012 - 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 ...
null
https://raw.githubusercontent.com/scalaris-team/scalaris/feb894d54e642bb3530e709e730156b0ecc1635f/src/tx/txid_on_cseq.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...
2012 - 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 < > @doc txid store based on . -module(txid_on_cseq). -author(''). -vsn('$Id:$'). -define(TRACE(X,Y), ok). -include...
6c0ae38b20afeb6a414f8bb0217d21c219e8ca5e0035731b56e5e4631640aafa
Helium4Haskell/helium
Hiding1.hs
import Prelude hiding (map) import Hiding2 hiding (x, y) TODO : statische error bij verbergen show functie x, y :: Int x = 3 y = 4 map :: Num a => [a] -> a map xs = sum xs main :: (Int, String) should be 307 , show X -- show functions, types and constructors may not be hidden )
null
https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/make/Hiding1.hs
haskell
show functions, types and constructors may not be hidden
import Prelude hiding (map) import Hiding2 hiding (x, y) TODO : statische error bij verbergen show functie x, y :: Int x = 3 y = 4 map :: Num a => [a] -> a map xs = sum xs main :: (Int, String) should be 307 )
ff2913c72d3d8a198a1704b627bda428fabac5e7f6dfae4d6f72da52783c49da
LexiFi/dead_code_analyzer
deadMod.ml
(***************************************************************************) (* *) Copyright ( c ) 2014 - 2016 LexiFi SAS . All rights reserved . (* *) (* ...
null
https://raw.githubusercontent.com/LexiFi/dead_code_analyzer/c44dc2ea5ccb13df2145e9316e21c39f09dad506/src/deadMod.ml
ocaml
************************************************************************* This source code is licensed under the MIT License found in the LICENSE ...
Copyright ( c ) 2014 - 2016 LexiFi SAS . All rights reserved . open Ident open Types open Typedtree open DeadCommon let defined : string list ref = ref [] let rec sign ?(isfunc = false) = function | Mty_signature sg -> sg | Mty_functor (_, t, _) when isfunc -> begin match t with | None ...
b0fa7b4bd51396a26c3535e6b2578e0a6888efb1df8db01e10d8b0a14502f002
nilenso/time-tracker
routes.clj
(ns time-tracker.projects.routes (:require [time-tracker.projects.handlers :as handlers] [time-tracker.auth.core :refer [wrap-auth]] [clojure.algo.generic.functor :refer [fmap]] [clojure.java.jdbc :as jdbc] [time-tracker.db :refer [wrap-transaction]] [time-t...
null
https://raw.githubusercontent.com/nilenso/time-tracker/054d0dc6d6b89a4ed234d8f0b0a260b6deeef9e3/src/clj/time_tracker/projects/routes.clj
clojure
(ns time-tracker.projects.routes (:require [time-tracker.projects.handlers :as handlers] [time-tracker.auth.core :refer [wrap-auth]] [clojure.algo.generic.functor :refer [fmap]] [clojure.java.jdbc :as jdbc] [time-tracker.db :refer [wrap-transaction]] [time-t...
32d29f288ada025456ebacb453fe6796169c775a801fa924c64e7a99b47451a3
yuriy-chumak/ol
shader_objects.scm
; =========================================================================== ; ARB_shader_objects (included in OpenGL 2.0) ; ; ; ; Version ; ; Overview ; (define-library (OpenGL ARB shader_objects) ; --------------------------------------------------------------------------- ; Depende...
null
https://raw.githubusercontent.com/yuriy-chumak/ol/83dd03d311339763682eab02cbe0c1321daa25bc/libraries/OpenGL/ARB/shader_objects.scm
scheme
=========================================================================== ARB_shader_objects (included in OpenGL 2.0) Version Overview --------------------------------------------------------------------------- Dependencies -------------------------------------------------...
(define-library (OpenGL ARB shader_objects) (import (scheme core) (OpenGL platform)) (export ARB_shader_objects ) (begin (define ARB_shader_objects (gl:QueryExtension "GL_ARB_shader_objects")) ))
0f04d3b1e0992002e2214bba2c53f36c3a7c96888eecedfafd481d8c5c32ce34
zcaudate/hara
method_test.clj
(ns hara.object.element.impl.method-test (:use hara.test) (:require [hara.object.element.impl.method :as method] [hara.object.query :as query])) ^{:refer hara.object.element.impl.method/invoke-static-method :added "3.0"} (fact "invoke function for a static method" (-> (query/query-class clojure.java...
null
https://raw.githubusercontent.com/zcaudate/hara/481316c1f5c2aeba5be6e01ae673dffc46a63ec9/test/hara/object/element/impl/method_test.clj
clojure
(ns hara.object.element.impl.method-test (:use hara.test) (:require [hara.object.element.impl.method :as method] [hara.object.query :as query])) ^{:refer hara.object.element.impl.method/invoke-static-method :added "3.0"} (fact "invoke function for a static method" (-> (query/query-class clojure.java...
315baf35c52f07f70379c2e7e7504180e2efc19a9226c184939441bc9e57670d
scicloj/wadogo
datetime.clj
(ns wadogo.format.datetime (:require [java-time :as dt] [wadogo.utils :refer [dt-data step->duration datetime-diff-millis]])) (set! *unchecked-math* :warn-on-boxed) (defn- same-properties? "Compare given properties" [start end k] (let [prop (:property (dt-data k))] (= (dt/value (dt/property s...
null
https://raw.githubusercontent.com/scicloj/wadogo/4076820f55c1b6413b055611ad49be4de392cdb7/src/wadogo/format/datetime.clj
clojure
(ns wadogo.format.datetime (:require [java-time :as dt] [wadogo.utils :refer [dt-data step->duration datetime-diff-millis]])) (set! *unchecked-math* :warn-on-boxed) (defn- same-properties? "Compare given properties" [start end k] (let [prop (:property (dt-data k))] (= (dt/value (dt/property s...
d954aacf856f3ab461e14a58f7e1158889535c1dab128a9dafa88db8fd1b0b94
Liutos/cl-github-page
package.lisp
(defpackage #:com.liutos.cl-github-page.page (:use :cl) (:export #:write-all-category-pages #:write-all-pagination-pages #:write-all-posts #:write-category-page #:write-index-page #:write-pagination-page #:write-post-page #:write-rss-page)...
null
https://raw.githubusercontent.com/Liutos/cl-github-page/336e4ad925c95969a8686ea2267099f49c1e01a6/src/page/package.lisp
lisp
(defpackage #:com.liutos.cl-github-page.page (:use :cl) (:export #:write-all-category-pages #:write-all-pagination-pages #:write-all-posts #:write-category-page #:write-index-page #:write-pagination-page #:write-post-page #:write-rss-page)...
4d4c90c2fd602e588f9c1ab2f293f471a210617c8b2307783d3dfc15e86a3773
emillon/ocaml-noise
public_key.ml
type t = Public of Cstruct.t [@@deriving eq] let pp fmt (Public cs) = Format.fprintf fmt "<public key:@,%a>" Cstruct.hexdump_pp cs let bytes (Public cs) = cs let of_bytes cs = Public cs
null
https://raw.githubusercontent.com/emillon/ocaml-noise/d5a3e0f634fba1f8d948a91c70a1dad6470722b0/lib/public_key.ml
ocaml
type t = Public of Cstruct.t [@@deriving eq] let pp fmt (Public cs) = Format.fprintf fmt "<public key:@,%a>" Cstruct.hexdump_pp cs let bytes (Public cs) = cs let of_bytes cs = Public cs
474f8a18be01ceb72a2d8b4fc12213811aeb3c4f69f67fb07b9c3a39be168ec7
robert-strandh/Docleanser
pixmap-output-record.lisp
(cl:in-package #:docleanser) (defclass pixmap-output-record (clim:displayed-output-record) ((%parent :initarg :parent :accessor clim:output-record-parent) (%x-position :initform 0 :reader x-position) (%y-position :initform 0 :reader y-position) (%pixmap :initarg :pixmap :reader pixmap) (%size :in...
null
https://raw.githubusercontent.com/robert-strandh/Docleanser/9043b16e98439a0af33b44aa893f69904752d6c2/pixmap-output-record.lisp
lisp
(cl:in-package #:docleanser) (defclass pixmap-output-record (clim:displayed-output-record) ((%parent :initarg :parent :accessor clim:output-record-parent) (%x-position :initform 0 :reader x-position) (%y-position :initform 0 :reader y-position) (%pixmap :initarg :pixmap :reader pixmap) (%size :in...
e42e69dbd365beac2f700c5ea6263b228fa0a8f2002852a41c6e3154c421dd5a
flavioc/cl-hurd
tmp.lisp
#!/usr/bin/run-lisp-trans ; settrans -ac foo ./tmp.lisp ; (asdf:operate 'asdf:load-op 'tmp-translator)
null
https://raw.githubusercontent.com/flavioc/cl-hurd/982232f47d1a0ff4df5fde2edad03b9df871470a/examples/tmp.lisp
lisp
settrans -ac foo ./tmp.lisp
#!/usr/bin/run-lisp-trans (asdf:operate 'asdf:load-op 'tmp-translator)
34099557c7b26d287a8f3b9814aeb3aeedaa4a31b9a4b21bb5717998f29c0994
racket/parser-tools
cfg-parser.rkt
#lang racket/base ;; This module implements a parser form like the parser-tools's ` parser ' , except that it works on an arbitrary CFG ( returning the first sucecssful parse ) . I 'm pretty sure that this is an implementation of 's ;; algorithm. To a first approximation , it 's a backtracking parser . Alter...
null
https://raw.githubusercontent.com/racket/parser-tools/d76cb89c36c22ce569475b628164393c9ed35fb6/parser-tools-lib/parser-tools/cfg-parser.rkt
racket
This module implements a parser form like the parser-tools's algorithm. for a non-terminal are computed in parallel, and multiple attempts you get into deadlock, such as when trying to match <foo> := <foo> then it means that there's no successful parse, so everything that's blocked fails. A cache holds the s...
#lang racket/base ` parser ' , except that it works on an arbitrary CFG ( returning the first sucecssful parse ) . I 'm pretty sure that this is an implementation of 's To a first approximation , it 's a backtracking parser . Alternative to compute the same result block until the first one completes . If...
66fb3a4c08b39edb93b5588b3d500a1f27910f9138467547dac1ff9ad41f2b29
weavejester/ragtime
strategy_test.clj
(ns ragtime.strategy-test (:require [clojure.test :refer :all] [ragtime.strategy :refer :all])) (deftest apply-new-test (are [a m r] (= (apply-new a m) r) [:a] [:a] [] [] [] [] [:a :b] [:a :b] [] [:a] [:a :b] [[:migrate :b]] [:a] [:a :b :c] [[:migrate :b] [:migrate :c]] [] [:a :...
null
https://raw.githubusercontent.com/weavejester/ragtime/a37613e22afadfaabcc29016eb8f13413711d527/core/test/ragtime/strategy_test.clj
clojure
(ns ragtime.strategy-test (:require [clojure.test :refer :all] [ragtime.strategy :refer :all])) (deftest apply-new-test (are [a m r] (= (apply-new a m) r) [:a] [:a] [] [] [] [] [:a :b] [:a :b] [] [:a] [:a :b] [[:migrate :b]] [:a] [:a :b :c] [[:migrate :b] [:migrate :c]] [] [:a :...
cbfc0b1c07ff98fce8bc2fe3b0813b294e041249f7d5d61af73a7bbda4be3a64
mokus0/junkbox
Interleave.hs
module Functions.Interleave where import Data.Bits import Data.Word import qualified Data.Vector.Unboxed as U bs = U.fromList [ (1, 0x55555555) , (2, 0x33333333) , (4, 0x0F0F0F0F) , (8, 0x00FF00FF) ] interleave :: Word16 -> Word16 -> Word32 interleave evens odds = x .|. shiftL y 1 where ...
null
https://raw.githubusercontent.com/mokus0/junkbox/151014bbef9db2b9205209df66c418d6d58b0d9e/Haskell/Functions/Interleave.hs
haskell
module Functions.Interleave where import Data.Bits import Data.Word import qualified Data.Vector.Unboxed as U bs = U.fromList [ (1, 0x55555555) , (2, 0x33333333) , (4, 0x0F0F0F0F) , (8, 0x00FF00FF) ] interleave :: Word16 -> Word16 -> Word32 interleave evens odds = x .|. shiftL y 1 where ...
9298c31bc5e1c56d93a2891c7ad3188d2d1671f6f7d201cda113dd697a1adf3e
racket/typed-racket
rest-star-hash-examples.rkt
#lang typed/racket/base (provide my-hash my-hash-set*) (require racket/match) (define-type (KV-List K V) (Rec T (U Null (List* K V T)))) (: my-hash (All (K V) (->* () #:rest-star (K V) (Immutable-HashTable K V)))) (define (my-hash . k/v-list) (let loop ([h : (Immutable-HashTable K V) (hash)] [to-add ...
null
https://raw.githubusercontent.com/racket/typed-racket/0236151e3b95d6d39276353cb5005197843e16e4/typed-racket-test/succeed/rest-star-hash-examples.rkt
racket
#lang typed/racket/base (provide my-hash my-hash-set*) (require racket/match) (define-type (KV-List K V) (Rec T (U Null (List* K V T)))) (: my-hash (All (K V) (->* () #:rest-star (K V) (Immutable-HashTable K V)))) (define (my-hash . k/v-list) (let loop ([h : (Immutable-HashTable K V) (hash)] [to-add ...
197404be87878771c5edb1936101be793e1f75fdafc785c96f17fe67a4ea5677
Z572/gwwm
pointer.scm
(define-module (gwwm pointer) #:use-module (oop goops) #:use-module (gwwm listener) #:use-module (wlroots types input-device) #:use-module (wlroots types pointer) #:use-module (wlroots backend libinput) #:use-module (bytestructure-class) #:use-module (libinput) #:use-module (srfi srfi-2) #:use-module ...
null
https://raw.githubusercontent.com/Z572/gwwm/fd4b03ded061ef11fe8825f923387755467dbc5b/gwwm/pointer.scm
scheme
(define-module (gwwm pointer) #:use-module (oop goops) #:use-module (gwwm listener) #:use-module (wlroots types input-device) #:use-module (wlroots types pointer) #:use-module (wlroots backend libinput) #:use-module (bytestructure-class) #:use-module (libinput) #:use-module (srfi srfi-2) #:use-module ...
7be03c40fa386346c2a383f63368d505132d0fb00b464dee96181e04840d2066
opencog/opencog
contexts.scm
(use-modules (opencog) (opencog nlp) (opencog nlp oc) (opencog nlp relex2logic)) (load "states.scm") (load "utils.scm") ;------------------------------------------------------------------------------- ; Useful functions for the contexts (define (is-utterance-type? speechact) (Satisfaction (And (State inp...
null
https://raw.githubusercontent.com/opencog/opencog/482a93b34c2eeaac0e773731d61c31558710f93d/opencog/nlp/chatbot-psi/contexts.scm
scheme
------------------------------------------------------------------------------- Useful functions for the contexts ------------------------------------------------------------------------------- Essentially equivalent to "is-input-utterance", as the states will be reset after giving a reply by default Number being p...
(use-modules (opencog) (opencog nlp) (opencog nlp oc) (opencog nlp relex2logic)) (load "states.scm") (load "utils.scm") (define (is-utterance-type? speechact) (Satisfaction (And (State input-utterance-sentence (Variable "$s")) (Parse (Variable "$parse") (Variable "$s")) (Interpretation (V...
dc3d873801eefe6a9cfe13183a9d1a0b1934e9a285cc8b8e9670b72c13942777
wireapp/saml2-web-sso
DSig.hs
# LANGUAGE GeneralizedNewtypeDeriving # {-# LANGUAGE OverloadedStrings #-} | Partial implementation of < -core/ > . We use hsaml2 , hxt , x509 and other dubious packages internally , but expose xml - types and . -- -- FUTUREWORK: other implementations that could be used for testing: -- / (C); -- -crypto (js) mo...
null
https://raw.githubusercontent.com/wireapp/saml2-web-sso/ac88b934bb4a91d4d4bb90c620277188e4087043/src/Text/XML/DSig.hs
haskell
# LANGUAGE OverloadedStrings # FUTUREWORK: other implementations that could be used for testing: / (C); -crypto (js) * types * credential handling * signature verification * signature creation * testing -------------------------------------------------------------------- types --------------------------------...
# LANGUAGE GeneralizedNewtypeDeriving # | Partial implementation of < -core/ > . We use hsaml2 , hxt , x509 and other dubious packages internally , but expose xml - types and . module Text.XML.DSig SignCreds (..), SignDigest (..), SignKey (..), SignPrivCreds (..), SignPrivKey (..), veri...
3bcf724cf31d46958e5733cd66b0d99d0be9dd6118966d6759e38582cae91f84
armstnp/advent-of-code-2019
day9_sketch.clj
(ns advent-of-code-2019.day9-sketch (:require [advent-of-code-2019.day9 :as soln] [quil.core :as q :include-macros true] [quil.middleware :as m])) ;; Pause and unpause the simulation by clicking or pressing any key (def cells 1077) (def memory-cell-width 37) (def memory-cell-height (q/ceil (...
null
https://raw.githubusercontent.com/armstnp/advent-of-code-2019/68e21174394d8b0e14433f9f249e995c10ac6d67/src/advent_of_code_2019/day9_sketch.clj
clojure
Pause and unpause the simulation by clicking or pressing any key Hosted at
(ns advent-of-code-2019.day9-sketch (:require [advent-of-code-2019.day9 :as soln] [quil.core :as q :include-macros true] [quil.middleware :as m])) (def cells 1077) (def memory-cell-width 37) (def memory-cell-height (q/ceil (/ cells memory-cell-width))) (def cell-width 24) (def cell-height 24...
faba07cead622462eed8ff9860519eb9364a9ad286a39d66495bbbcd99fde857
FPBench/FPBench
test-core2rust.rkt
#lang racket (require generic-flonum) (require "test-common.rkt" "../src/core2rust.rkt") (define (compile->rust prog ctx type test-file) (define bit-length (match type ['binary64 "64"] ['binary32 "32"])) (call-with-output-file test-file #:exists 'replace (λ (p) (define N (if (list? (second prog)) (lengt...
null
https://raw.githubusercontent.com/FPBench/FPBench/11153e1ef2cfbebb016b5deb628485376eb62c85/infra/test-core2rust.rkt
racket
Command line
#lang racket (require generic-flonum) (require "test-common.rkt" "../src/core2rust.rkt") (define (compile->rust prog ctx type test-file) (define bit-length (match type ['binary64 "64"] ['binary32 "32"])) (call-with-output-file test-file #:exists 'replace (λ (p) (define N (if (list? (second prog)) (lengt...
81c34c2672c827c94bacb4b6d61d0929ce8614eac8f3e7bddd8294974a790a9a
dsorokin/aivika
Composite.hs
# LANGUAGE MultiParamTypeClasses , RecursiveDo # -- | -- Module : Simulation.Aivika.Composite Copyright : Copyright ( c ) 2009 - 2017 , < > -- License : BSD3 Maintainer : < > -- Stability : experimental Tested with : GHC 8.0.1 -- -- It defines the 'Composite' monad that allows constructing compo...
null
https://raw.githubusercontent.com/dsorokin/aivika/7a14f460ab114b0f8cdfcd05d5cc889fdc2db0a4/Simulation/Aivika/Composite.hs
haskell
| Module : Simulation.Aivika.Composite License : BSD3 Stability : experimental It defines the 'Composite' monad that allows constructing components which can be then destroyed in case of need. * Composite Monad | It represents a composite which can be then destroyed in case of need. ^ Run the computa...
# LANGUAGE MultiParamTypeClasses , RecursiveDo # Copyright : Copyright ( c ) 2009 - 2017 , < > Maintainer : < > Tested with : GHC 8.0.1 module Simulation.Aivika.Composite Composite, CompositeLift(..), runComposite, runComposite_, runCompositeInStartTime_, ...
69f572b3a31d1a57706d5893eca61decc627ffec1e1340dab6e26945d0e3eca0
WFP-VAM/RAMResourcesScripts
pro-CC-1-3.sps
* Encoding: UTF-8. Variable labels HHAsstRespect ‘Do you think WFPandor partner staff have treated you and members of your household respectfully? ’. Variable labels HHDTPDign ‘Do you think the conditions of WFP programme sites are dignified?’. Value labels HHAsstRespect HHDTPDign 1 'Yes' 0 'No'. * cross tab firs...
null
https://raw.githubusercontent.com/WFP-VAM/RAMResourcesScripts/236e1a630f053d27161c73dfe01a9ef04b7ebdcc/Indicators/Protection-CRF-CC1-3/pro-CC-1-3.sps
scheme
* Encoding: UTF-8. Variable labels HHAsstRespect ‘Do you think WFPandor partner staff have treated you and members of your household respectfully? ’. Variable labels HHDTPDign ‘Do you think the conditions of WFP programme sites are dignified?’. Value labels HHAsstRespect HHDTPDign 1 'Yes' 0 'No'. * cross tab firs...
0acdb99bb6d7b5760615d5edcfb0b44976fec136bed526ac0e09e14f990fcada
RichiH/git-annex
LockStatus.hs
LockStatus type - - Copyright 2014 < > - - License : BSD-2 - clause - - Copyright 2014 Joey Hess <> - - License: BSD-2-clause -} module Utility.LockFile.LockStatus where import System.Posix data LockStatus = StatusUnLocked | StatusLockedBy ProcessID | StatusNoLockFile deriving (Eq)
null
https://raw.githubusercontent.com/RichiH/git-annex/bbcad2b0af8cd9264d0cb86e6ca126ae626171f3/Utility/LockFile/LockStatus.hs
haskell
LockStatus type - - Copyright 2014 < > - - License : BSD-2 - clause - - Copyright 2014 Joey Hess <> - - License: BSD-2-clause -} module Utility.LockFile.LockStatus where import System.Posix data LockStatus = StatusUnLocked | StatusLockedBy ProcessID | StatusNoLockFile deriving (Eq)
02394416cc87a764de38ab03e9820ff2fac0709221f5525fcc1ea23dcf15c74f
amar47shah/cis-194
Calc.hs
# LANGUAGE FlexibleInstances # {-# LANGUAGE TypeSynonymInstances #-} # OPTIONS_GHC -Wall # module Calc where import ExprT import Parser import qualified StackVM as S import Control.Applicative ((<$>), liftA2) import Data.Function (on) import qualified Data.Map.Strict as M --------------------------------------------...
null
https://raw.githubusercontent.com/amar47shah/cis-194/2b35ce18df176b47502950030af26e14d866b3e4/2013-byorgey/solutions/Calc.hs
haskell
# LANGUAGE TypeSynonymInstances # ------------------------------------------------------------------------------ ------------------------------------------------------------------------------` ------------------------------------------------------------------------------` -----------------------------------------------...
# LANGUAGE FlexibleInstances # # OPTIONS_GHC -Wall # module Calc where import ExprT import Parser import qualified StackVM as S import Control.Applicative ((<$>), liftA2) import Data.Function (on) import qualified Data.Map.Strict as M Exercise 1 eval :: ExprT -> Integer eval (Lit x) = x eval (Add x y) = ((+) `...
9e8e4aa0943670513c76d0b4f7d42942e9640376cb7a22c1bd875baebacc2169
yallop/ocaml-ctypes
fts.mli
* Copyright ( c ) 2013 . * * This file is distributed under the terms of the MIT License . * See the file LICENSE for details . * Copyright (c) 2013 Jeremy Yallop. * * This file is distributed under the terms of the MIT License. * See the file LICENSE for details. *) open Ctypes The fts functi...
null
https://raw.githubusercontent.com/yallop/ocaml-ctypes/52ff621f47dbc1ee5a90c30af0ae0474549946b4/examples/fts/foreign/fts.mli
ocaml
A directory being visited in preorder. A directory that causes a cycle in the tree. (The fts_cycle field of the FTSENT structure will be filled in as well.) A directory which cannot be read. This is an error return, and the fts_errno field will be set to indicate what caused the error. This is an err...
* Copyright ( c ) 2013 . * * This file is distributed under the terms of the MIT License . * See the file LICENSE for details . * Copyright (c) 2013 Jeremy Yallop. * * This file is distributed under the terms of the MIT License. * See the file LICENSE for details. *) open Ctypes The fts functi...
824398107625cf51a202e33d997e9909b476ebd88e5693d75ebec0d0e8c1a19a
rudolph-miller/clipper
clipper.lisp
(in-package :cl-user) (defpackage clipper-test (:use :cl :clipper :prove)) (in-package :clipper-test) (plan nil) (finalize)
null
https://raw.githubusercontent.com/rudolph-miller/clipper/b07a1be210d5504cd67c8e303168cb4bc09f642e/t/clipper.lisp
lisp
(in-package :cl-user) (defpackage clipper-test (:use :cl :clipper :prove)) (in-package :clipper-test) (plan nil) (finalize)