_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
61cebbecb40fa527dd89e7712f776d5c5fc98e89e289cf1434b29d7209c41931
onyx-platform/onyx
percentage_multi_job_test.clj
(ns onyx.scheduler.percentage-multi-job-test (:require [clojure.test :refer :all] [clojure.test.check :as tc] [clojure.test.check.generators :as gen] [clojure.test.check.properties :as prop] [com.gfredericks.test.chuck :refer [times]] [com.gfredericks.test.c...
null
https://raw.githubusercontent.com/onyx-platform/onyx/74f9ae58cdbcfcb1163464595f1e6ae6444c9782/test/onyx/scheduler/percentage_multi_job_test.clj
clojure
(ns onyx.scheduler.percentage-multi-job-test (:require [clojure.test :refer :all] [clojure.test.check :as tc] [clojure.test.check.generators :as gen] [clojure.test.check.properties :as prop] [com.gfredericks.test.chuck :refer [times]] [com.gfredericks.test.c...
d418eb11beacc3c68ad41817e6f51238bb5c94d0412922841e4a0161f19d90ce
egison/sweet-egison
EgisonSpec.hs
module Control.EgisonSpec ( test_something , test_pair , test_list , test_multiset , test_set , test_prime ) where import Control.Egison import Test.Tasty import Test.Tasty.HUnit import Data.Numbers.Primes ( primes ) pmap :: (a -> b) -> [a] -> [b] pmap...
null
https://raw.githubusercontent.com/egison/sweet-egison/f18c4bc1f573b2b3576647eaff124d8c2bbfb9d0/test/Control/EgisonSpec.hs
haskell
module Control.EgisonSpec ( test_something , test_pair , test_list , test_multiset , test_set , test_prime ) where import Control.Egison import Test.Tasty import Test.Tasty.HUnit import Data.Numbers.Primes ( primes ) pmap :: (a -> b) -> [a] -> [b] pmap...
4972addcfdc31ab49e6096a4bc114a375298f25b375fc167302c262fe56c2c58
omarkj/erollbar
erollbar_basic_SUITE.erl
-module(erollbar_basic_SUITE). -include_lib("common_test/include/ct.hrl"). -export([all/0]). -export([init_per_suite/1 ,end_per_suite/1 ,init_per_testcase/2 ,end_per_testcase/2 ]). -export([default_settings/1 ,max_time/1 ,bigger_crash/1 ,crash_with_args/1 ...
null
https://raw.githubusercontent.com/omarkj/erollbar/23e5930be5156ba40adc86f0d117d056ad2c13e6/test/erollbar_basic_SUITE.erl
erlang
Tests Get a crash report
-module(erollbar_basic_SUITE). -include_lib("common_test/include/ct.hrl"). -export([all/0]). -export([init_per_suite/1 ,end_per_suite/1 ,init_per_testcase/2 ,end_per_testcase/2 ]). -export([default_settings/1 ,max_time/1 ,bigger_crash/1 ,crash_with_args/1 ...
f0e9ae6c6672d5887009408fca9951ebf2c4915d3bf43c7ae36ca05e408c972b
pmundkur/flowcaml
print_types.ml
(**************************************************************************) (* *) (* *) , Projet C...
null
https://raw.githubusercontent.com/pmundkur/flowcaml/ddfa8a37e1cb60f42650bed8030036ac313e048a/src-flowcaml/types/print_types.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 : print_types.ml , v 1.7 2003/06/...
366330ca7992208070449fa780b52813e61479a69385d48e78b10a3eee074942
theodormoroianu/SecondYearCourses
HaskellChurch_20210415172955.hs
{-# LANGUAGE RankNTypes #-} module HaskellChurch where import Data.Foldable (toList) A boolean is any way to choose between two alternatives newtype CBool = CBool {cIf :: forall t. t -> t -> t} An instance to show as regular Booleans instance Show CBool where show b = "cBool " <> show (cIf b True False) Th...
null
https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/5e359e6a7cf588a527d27209bf53b4ce6b8d5e83/FLP/Laboratoare/Lab%209/.history/HaskellChurch_20210415172955.hs
haskell
# LANGUAGE RankNTypes # The boolean negation switches the alternatives The boolean conjunction can be built as a conditional The boolean disjunction can be built as a conditional a pair is a way to compute something based on the values contained within the pair. a function to be applied on the values, it will apply i...
module HaskellChurch where import Data.Foldable (toList) A boolean is any way to choose between two alternatives newtype CBool = CBool {cIf :: forall t. t -> t -> t} An instance to show as regular Booleans instance Show CBool where show b = "cBool " <> show (cIf b True False) The boolean constant true alwa...
4d0623afaf40787dc2522e0c91c345d44d04aec75ef06020e14a1bdbd3b8567b
kmi/irs
upload.lisp
(in-package ip) (defun cleanup-code (string) (remove #\return string)) (defun upload (knowledge-model-name knowledge-model-uses knowledge-model-type knowledge-model-format url-string upload-mode author password allowed-editors html-stream) (if (password-ok-p author pas...
null
https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/src/soap-irs-protocol/upload.lisp
lisp
this code there, but I don't understand the entry point, so I daren't touch it.
(in-package ip) (defun cleanup-code (string) (remove #\return string)) (defun upload (knowledge-model-name knowledge-model-uses knowledge-model-type knowledge-model-format url-string upload-mode author password allowed-editors html-stream) (if (password-ok-p author pas...
1dc5f50616276a63c02364871b85b7c8ddf73d304ced23f6b81978afb0497621
eugeneia/athens
prng.lisp
;;;; -*- mode: lisp; indent-tabs-mode: nil -*- ;;;; prng.lisp -- common functions for pseudo-random number generators (in-package :crypto) (defvar *prng* nil "Default pseudo-random-number generator for use by all crypto functions. Defaults to a sensible OS-specific value.") (defun list-all-prngs () (copy-list...
null
https://raw.githubusercontent.com/eugeneia/athens/cc9d456edd3891b764b0fbf0202a3e2f58865cbf/quicklisp/dists/quicklisp/software/ironclad-v0.40/src/prng/prng.lisp
lisp
-*- mode: lisp; indent-tabs-mode: nil -*- prng.lisp -- common functions for pseudo-random number generators if it is sequence of bytes, use those bytes if it if it is NIL then the SEED must as it sets the proper permissions for reading a seedfile.
(in-package :crypto) (defvar *prng* nil "Default pseudo-random-number generator for use by all crypto functions. Defaults to a sensible OS-specific value.") (defun list-all-prngs () (copy-list '(:os :fortuna :fortuna-generator))) (defgeneric make-prng (name &key seed) (:documentation "Create a new NAME-typ...
c1e93cfd42d2ef0e9bbb9405c6050c08d7ef8ceae1b9d975cfb2578bd0bb59d3
scarvalhojr/haskellbook
section11.6.hs
data Price = Price Integer deriving (Eq, Show) data Manufacturer = Mini | Mazda | Tata deriving (Eq, Show) data Airline = PapuAir | Catapult | ChanceUnited deriving (Eq, Show) data Vehicle = Car Manufacturer Price | Plane Airline Integer deriving (Eq, Show) myCar = Car Mini (Price 14000) urCar = Car Mazda (P...
null
https://raw.githubusercontent.com/scarvalhojr/haskellbook/6016a5a78da3fc4a29f5ea68b239563895c448d5/chapter11/section11.6.hs
haskell
data Price = Price Integer deriving (Eq, Show) data Manufacturer = Mini | Mazda | Tata deriving (Eq, Show) data Airline = PapuAir | Catapult | ChanceUnited deriving (Eq, Show) data Vehicle = Car Manufacturer Price | Plane Airline Integer deriving (Eq, Show) myCar = Car Mini (Price 14000) urCar = Car Mazda (P...
47fffd91c0c292ae830413d6a438551cd591b6c3367bd82fa9e5286d7a9896ef
haskell-works/avro
Reader.hs
# LANGUAGE DeriveGeneric # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} # LANGUAGE TemplateHaskell # module Avro.Deconflict.A.Reader where import Data.Avro.Deriving deriveAvroFromByteString [r| { "type": "record", "name": "Outer", "fields": [ { "name": "name", "type": "stri...
null
https://raw.githubusercontent.com/haskell-works/avro/9eb4970fd72939a68aa6f947d3d2dc17280352f8/test/Avro/Deconflict/A/Reader.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE QuasiQuotes #
# LANGUAGE DeriveGeneric # # LANGUAGE TemplateHaskell # module Avro.Deconflict.A.Reader where import Data.Avro.Deriving deriveAvroFromByteString [r| { "type": "record", "name": "Outer", "fields": [ { "name": "name", "type": "string" }, { "name": "inner", "type": { "type": "record", ...
529d8e8184ce8212f945f3b01a1438054fda00f230699a90a4db22f829d728ac
gvolpe/haskell-book-exercises
exercises.hs
module Chapter3 where oneA :: [Char] -> [Char] oneA x = x ++ "!" oneB :: String -> String [ head ( drop 4 x ) ] oneC :: String -> String oneC x = drop 9 x thirdLetter :: String -> Char thirdLetter x = x !! 3 currying = "Curry is awesome" letterIndex :: Int -> Char letterIndex x = currying !! x rvrs :: String rvr...
null
https://raw.githubusercontent.com/gvolpe/haskell-book-exercises/5c1b9d8dc729ee5a90c8709b9c889cbacb30a2cb/chapter3/exercises.hs
haskell
module Chapter3 where oneA :: [Char] -> [Char] oneA x = x ++ "!" oneB :: String -> String [ head ( drop 4 x ) ] oneC :: String -> String oneC x = drop 9 x thirdLetter :: String -> Char thirdLetter x = x !! 3 currying = "Curry is awesome" letterIndex :: Int -> Char letterIndex x = currying !! x rvrs :: String rvr...
e294ece170b0d733f6a414912797d935f4d74c4d635d0c23a8486b6c216d4d6e
dimitaruzunov/fp-2018
endomorphism.scm
(require rackunit rackunit/text-ui) (define (every? p l) (or (null? l) (and (p (car l)) (every? p (cdr l))))) (define (endomorphism? l op f) (define (is-image-in-l? x) (member (f x) l)) (define (f-preserves-op? x y) (= (+ (f x) (f y)) (f (+ x y)))) (and (every? is-image-in-l?...
null
https://raw.githubusercontent.com/dimitaruzunov/fp-2018/f75f0cd009cc7f41ce55a5ec71fb4b8eadafc4eb/exercises/05/endomorphism.scm
scheme
(require rackunit rackunit/text-ui) (define (every? p l) (or (null? l) (and (p (car l)) (every? p (cdr l))))) (define (endomorphism? l op f) (define (is-image-in-l? x) (member (f x) l)) (define (f-preserves-op? x y) (= (+ (f x) (f y)) (f (+ x y)))) (and (every? is-image-in-l?...
0af933dc264c0cc8a44ac4493e7667b266097641f6cd619233843e7703497138
jordanthayer/ocaml-search
logfn.ml
from ahutils , base case log_fn : print string list to channel as one line separated by commas print string list to channel as one line separated by commas *) let log ch = fun opt_log _ -> output_string ch (String.concat "," opt_log); output_char ch '\n' (* flush ch *) alternative b...
null
https://raw.githubusercontent.com/jordanthayer/ocaml-search/57cfc85417aa97ee5d8fbcdb84c333aae148175f/wrutils/logfn.ml
ocaml
flush ch build on a log function: a_of_b - unwrap 'b node as 'a node b_log - prepend values for 'b node to a string list a_log_fn - log function for 'a nodes returns - log function for 'b nodes opt_log - values of later columns b - 'b node uses format of log_fn with unit instead of nodes
from ahutils , base case log_fn : print string list to channel as one line separated by commas print string list to channel as one line separated by commas *) let log ch = fun opt_log _ -> output_string ch (String.concat "," opt_log); output_char ch '\n' alternative base case log_fn and...
aa2c666c7f6840dd73aa4bbd58bb13fa42d4dec27b7b3ac04703482f277b6050
mirage/mirage-unix
lifecycle.mli
* Copyright ( c ) 2015 < > * * 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/mirage-unix/e776cfe5fed3db052ae2b8fcf16c7100b9c4c682/lib/lifecycle.mli
ocaml
* [await_shutdown_request ()] is thread that resolves when the domain is asked to shut down. The optional [poweroff] (default:[true]) and [reboot] (default:[false]) arguments can be used to indicate which features the caller wants to advertise (however, you can still get a request for a mode you didn't ...
* Copyright ( c ) 2015 < > * * 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...
e73c9333aa888dac3d2f05d7f11b41416f7a73bd4a8fa7ae2d6b76e3734cc2a4
BillHallahan/G2
Sets10.hs
{-@ LIQUID "--no-termination" @-} module MergeSortElems (f) where import Data.Set @ type ListS a S = { v:[a ] | listElts v = S } @ @ type ListEq a X = ListS a { listElts X } @ @ type ListEmp a = ListS a { Set_empty 0 } @ {-@ f :: xs:[Int] -> ListEq Int xs @-} f :: [Int] -> [Int] f [] = [] f xs = append ys zs ...
null
https://raw.githubusercontent.com/BillHallahan/G2/21c648d38c380041a9036d0e375ec1d54120f6b4/tests_lh/test_files/Pos/Sets10.hs
haskell
@ LIQUID "--no-termination" @ @ f :: xs:[Int] -> ListEq Int xs @ {-@ append :: xs:[a] -> ys:[a] -> { zs:[a] | Set_cup (listElts xs) (listElts ys) == listElts zs } @-}
module MergeSortElems (f) where import Data.Set @ type ListS a S = { v:[a ] | listElts v = S } @ @ type ListEq a X = ListS a { listElts X } @ @ type ListEmp a = ListS a { Set_empty 0 } @ f :: [Int] -> [Int] f [] = [] f xs = append ys zs where (ys, zs) = g xs : : xs:[a ] - > { t:([a ] , [ a ] )...
d63a9e3faf0c2176fd7fb6161aae17dfb5b0fab9ced610f275c5dfd9f91562da
markwright/antlrc
Antlrc.hs
Copyright ( c)2010 - 2011 , . All rights reserved . | ANTLR C runtime library Haskell binding , for the ANTLR LL ( * ) parser generator . module Text.Antlrc ( * token accessors . module Text.Antlrc.Lexer ) where import Text.Antlrc.Lexer
null
https://raw.githubusercontent.com/markwright/antlrc/ff1f09c316e166791d4546eeb3fbf4df3f0e2dd8/src/Text/Antlrc.hs
haskell
Copyright ( c)2010 - 2011 , . All rights reserved . | ANTLR C runtime library Haskell binding , for the ANTLR LL ( * ) parser generator . module Text.Antlrc ( * token accessors . module Text.Antlrc.Lexer ) where import Text.Antlrc.Lexer
04601ae18b397de9f50da4e50916038e4a7dca3f085ae402ca362787d382455f
ygrek/mldonkey
guiNetHtml.mli
(* $Id$ * ---------------------------------------------------------------------- * *) (** Parsing of HTML *) * The type [ document ] represents parsed HTML documents : * * { ul * { - [ Element ( name , args , subnodes ) ] is an element node for an element of * type [ name ] ( i.e. written [ < name ...
null
https://raw.githubusercontent.com/ygrek/mldonkey/333868a12bb6cd25fed49391dd2c3a767741cb51/src/gtk2/gui/guiNetHtml.mli
ocaml
$Id$ * ---------------------------------------------------------------------- * * Parsing of HTML Now follows the type definition of simplified DTDs. What is the class of an element? The constraint the subelements must fulfill = `Inline or `Block Enumeration of allowed elements * A [simplified_dtd] is a...
* The type [ document ] represents parsed HTML documents : * * { ul * { - [ Element ( name , args , subnodes ) ] is an element node for an element of * type [ name ] ( i.e. written [ < name ... > ... < /name > ] ) with arguments [ args ] * and subnodes [ subnodes ] ( the material within the elem...
e8c8ab95b4326f1182681046919796d53c2a85889e29dd0f99db0e6d1db044a4
ygrek/mldonkey
donkeyOneFile.mli
Copyright 2001 , 2002 b8_bavard , b8_fee_carabine , This file is part of mldonkey . mldonkey is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ...
null
https://raw.githubusercontent.com/ygrek/mldonkey/333868a12bb6cd25fed49391dd2c3a767741cb51/src/networks/donkey/donkeyOneFile.mli
ocaml
Copyright 2001 , 2002 b8_bavard , b8_fee_carabine , This file is part of mldonkey . mldonkey is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ...
b526bd208503263a4810372c221128c058682b86a3d084b8b8ba1adb14acfbb3
thoughtstem/game-engine
render-util.rkt
#lang racket (provide get-sprites-with-top draw-sprite draw-entity draw-entities draw-game) (require 2htdp/image posn threading) (require "../game-entities.rkt") (require "../components/animated-sprite.rkt") (require "../components/storage.rkt") (require "../entit...
null
https://raw.githubusercontent.com/thoughtstem/game-engine/98c4b9e9b8c071818e564ef7efb55465cff487a8/entity-helpers/render-util.rkt
racket
==== Draw Functions for Documentation Only ==== =====================================================
#lang racket (provide get-sprites-with-top draw-sprite draw-entity draw-entities draw-game) (require 2htdp/image posn threading) (require "../game-entities.rkt") (require "../components/animated-sprite.rkt") (require "../components/storage.rkt") (require "../entit...
b3cbf53e0b4d5595b46fdc68be5a4a6f25e2df8d6ca50f6a263be83ad3ca59ae
lsrcz/mini-prover
IndPosSpec.hs
module MiniProver.Core.IndPosSpec (main, spec) where import MiniProver.Core.Context import MiniProver.Core.IndPos import MiniProver.Core.Syntax import MiniProver.Utils.ContextForTesting import Test.Hspec main :: IO () main = hspec spec spec :: Spec spec = describe ...
null
https://raw.githubusercontent.com/lsrcz/mini-prover/0aa4cdf3b495ddf6707f27dcbee810d519b43177/test/MiniProver/Core/IndPosSpec.hs
haskell
module MiniProver.Core.IndPosSpec (main, spec) where import MiniProver.Core.Context import MiniProver.Core.IndPos import MiniProver.Core.Syntax import MiniProver.Utils.ContextForTesting import Test.Hspec main :: IO () main = hspec spec spec :: Spec spec = describe ...
797008c6ce3b7827376d3d75da9acb453b5ba2d601f967fc29342b4e9ea12d01
haskellari/these
Semialign.hs
# LANGUAGE Trustworthy # -- | Zipping and aligning of functors with non-uniform shapes. -- -- module Data.Semialign ( -- * Classes Semialign (..), Align (..), Unalign (..), Zip (..), Repeat (..), Unzip (..), unzipDefault, * Specialized aligns salign, padZip, padZipWith, lpadZip...
null
https://raw.githubusercontent.com/haskellari/these/a1fe1ae3ca6e4e6280373ff62c831d81e101c245/semialign/src/Data/Semialign.hs
haskell
| Zipping and aligning of functors with non-uniform shapes. * Classes
# LANGUAGE Trustworthy # module Data.Semialign ( Semialign (..), Align (..), Unalign (..), Zip (..), Repeat (..), Unzip (..), unzipDefault, * Specialized aligns salign, padZip, padZipWith, lpadZip, lpadZipWith, rpadZip, rpadZipWith, alignVectorWith, ) where import Data...
2704dc06cf98dd0915e340bc6cb9f8040f12d6be68fa1aab0c2918b1bf756fe5
silky/fashion
SunMountainScape.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} {-# LANGUAGE NoMonomorphismRestriction #-} # LANGUAGE ScopedTypeVariables # module Nvds.Designs.SunMountainScape where import Control.Monad import Diagrams.Prelude import Diagrams.Backend.Cairo.CmdLine import System . Rand...
null
https://raw.githubusercontent.com/silky/fashion/2b01d1e5c385fe99e8e54f5828114551e9c8e309/Sun-Mountain-Scape/src/Nvds/Designs/SunMountainScape.hs
haskell
# LANGUAGE GADTs # # LANGUAGE NoMonomorphismRestriction # Plan: - Smooth them out - Make a path - Convert to mountains Heights of the mountain let ys :: [Double] Gala's idea: Consider these ys as offsets, instead of absolute values. r <- newIORef (mkStdGen 1) ys :: [Double] <- f...
# LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # module Nvds.Designs.SunMountainScape where import Control.Monad import Diagrams.Prelude import Diagrams.Backend.Cairo.CmdLine import System . Random import Diagrams.Path import Data.IORef import Data.Random.Source.StdGen import qualif...
cc69832b75d73e617c48fd3debf2652ce65d42bd0b5740e51d660f93276bdd1f
janestreet/ecaml
filename.ml
open! Core open! Async_kernel open! Import0 include ( String : sig type t = string [@@deriving sexp_of] include Comparable.S with type t := t with type comparator_witness = String.comparator_witness include Hashable.S with type t := t end) include Valueable.Make (struct type ...
null
https://raw.githubusercontent.com/janestreet/ecaml/7c16e5720ee1da04e0757cf185a074debf9088df/src/filename.ml
ocaml
open! Core open! Async_kernel open! Import0 include ( String : sig type t = string [@@deriving sexp_of] include Comparable.S with type t := t with type comparator_witness = String.comparator_witness include Hashable.S with type t := t end) include Valueable.Make (struct type ...
8e9c9e1165d1910a1f119ea6afadf7d5584fbd2e613936a8ef76c618b8daaf32
michiakig/sicp
ex-3.03-3.04-bank.scm
;;;; Structure and Interpretation of Computer Programs Chapter 3 Section 1 Assignment and Local State Exercise 3.3 ;;; creates password protected accounts and keeps track of the number of failed ;;; attempts to access the account. (define (make-account balance passwd) (define (withdraw amount) (if (>= bal...
null
https://raw.githubusercontent.com/michiakig/sicp/1aa445f00b7895dbfaa29cf6984b825b4e5af492/ch3/ex-3.03-3.04-bank.scm
scheme
Structure and Interpretation of Computer Programs creates password protected accounts and keeps track of the number of failed attempts to access the account. Exercise 3.4
Chapter 3 Section 1 Assignment and Local State Exercise 3.3 (define (make-account balance passwd) (define (withdraw amount) (if (>= balance amount) (begin (set! balance (- balance amount)) balance) "Insufficient funds")) (define (deposit amount) (set! balance (+ balan...
a91d7a784b0a4fbc3a341534450a7835a7e088c42653b864e849364f3bbd47b8
mattjbray/ocaml-decoders
xml.ml
(** Interface for decoding XML *) module type Decode = sig (** The type of XML values. *) type value type error = value Error.t val pp_error : Format.formatter -> error -> unit val string_of_error : error -> string val of_string : string -> (value, error) result val of_file : string -> (value, error)...
null
https://raw.githubusercontent.com/mattjbray/ocaml-decoders/cbff9f595c3fb5deffafa7b0dc4d12a95196b149/src/xml.ml
ocaml
* Interface for decoding XML * The type of XML values. * Decode a [string]. * Decode an [int] in a data node after stripping whitespace. * Decode a [bool] in a data node after stripping whitespace. * Assert the name of the current tag. * Retrieve the name of the current tag. * [attr name] decodes the attribute ...
module type Decode = sig type value type error = value Error.t val pp_error : Format.formatter -> error -> unit val string_of_error : error -> string val of_string : string -> (value, error) result val of_file : string -> (value, error) result * The type of decoders . Use the functions below ...
5fed43e47c35bf2c38db8036928068d18df3abdf9229bab6a1724686b771d05b
bvaugon/ocamlpp
cmoparser.ml
(*************************************************************************) (* *) (* OCamlPP *) (* *) ...
null
https://raw.githubusercontent.com/bvaugon/ocamlpp/ee8dbf90b2012cb20bb2a9730524e12bc59dc1f2/src/cmoparser.ml
ocaml
*********************************************************************** OCamlPP ...
This file is distributed under the terms of the CeCILL license . exception Not_a_cmo let cmo_magic_number = "Caml1999O011";; let parse file_name = let ic = open_in_bin file_name in try let buffer = Bytes.create (String.length cmo_magic_n...
ca53eff30efccef449900017780d7054616f711213193a9b8cf06e450c532434
logseq/bb-tasks
datalog.clj
(ns logseq.bb-tasks.lint.datalog "Datalog linters for rules. Catches things that clj-kondo doesn't currently" (:require [datalog.parser.impl :as parser-impl] [dlint.core :as dlint])) (defn- lint-unbound-rule [rule] (->> (dlint/lint [rule]) (keep (fn [[k v]] (when (seq v) ...
null
https://raw.githubusercontent.com/logseq/bb-tasks/88736820d2b0daf44b45537331ee6177bb4626dd/src/logseq/bb_tasks/lint/datalog.clj
clojure
(ns logseq.bb-tasks.lint.datalog "Datalog linters for rules. Catches things that clj-kondo doesn't currently" (:require [datalog.parser.impl :as parser-impl] [dlint.core :as dlint])) (defn- lint-unbound-rule [rule] (->> (dlint/lint [rule]) (keep (fn [[k v]] (when (seq v) ...
a10dabe5e06cc9d168bc0687ccad2e74b69e66206e2db9706939cd401fc735b0
hugit-project/hugit
main.cljs
(ns hugit.main "Main application entrypoint. Defines root UI view, cli-options, arg parsing logic, and initialization routine" (:require [clojure.tools.cli :refer [parse-opts]] [mount.core :refer [defstate] :as mount] [re-frame.core :as rf] [reagent.core :as r] [hugit.core :refer [render screen]] ...
null
https://raw.githubusercontent.com/hugit-project/hugit/15c750ed633a229b517ffe0f3e8462197e0e3b06/src/hugit/main.cljs
clojure
(ns hugit.main "Main application entrypoint. Defines root UI view, cli-options, arg parsing logic, and initialization routine" (:require [clojure.tools.cli :refer [parse-opts]] [mount.core :refer [defstate] :as mount] [re-frame.core :as rf] [reagent.core :as r] [hugit.core :refer [render screen]] ...
f208db7bf0ca20d1a1a4907d46537fcc84038d9d9598115d3dc8552d55a2537e
haskell-servant/servant
ClientTestUtils.hs
{-# LANGUAGE CPP #-} {-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # # LANGUAGE GADTs # # LANGUAGE MultiParamTypeClasses # # LANGUAGE Overloa...
null
https://raw.githubusercontent.com/haskell-servant/servant/276ca2ed01f0ca352b21bbc544a39a3d31c4fb3c/servant-client/test/Servant/ClientTestUtils.hs
haskell
# LANGUAGE CPP # # LANGUAGE ConstraintKinds # # LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeOperators # This declaration simply checks that all instances are in place. * test da...
# LANGUAGE FlexibleInstances # # LANGUAGE GADTs # # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # # LANGUAGE PolyKinds # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -freduction - depth...
de31a95487b3d134e0511730ffb88cb95f4b9a860e8a376a00926e27eca751d1
sgbj/MaximaSharp
zshch.lisp
;;; Compiled by f2cl version: ( " f2cl1.l , v 46c1f6a93b0d 2012/05/03 04:40:28 toy $ " " f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " ;;; "f2cl5.l,v 46c1f6a93b0d 2012/05/03 04:40:28 toy $...
null
https://raw.githubusercontent.com/sgbj/MaximaSharp/75067d7e045b9ed50883b5eb09803b4c8f391059/Test/bin/Debug/Maxima-5.30.0/share/maxima/5.30.0/src/numerical/slatec/zshch.lisp
lisp
Compiled by f2cl version: "f2cl5.l,v 46c1f6a93b0d 2012/05/03 04:40:28 toy $" Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t) (:coerce-assigns :as-needed) (:array-type ':simple-array) (:array-slicing nil) (:declare-common nil) (:float-format double-float))
( " f2cl1.l , v 46c1f6a93b0d 2012/05/03 04:40:28 toy $ " " f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl6.l , v 1d5cbacbb977 2008/08/24 00:56:27 rtoy $ " " macros.l , v fceac53...
fd3d32322ce00ce2ceb9bd5a2c4082ce207d521b0011306d9e99ced24cf5fee3
screenshotbot/screenshotbot-oss
copy-file.lisp
;;;; Copyright 2018-Present Modern Interpreters Inc. ;;;; This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. (defpackage :util/copy-file (:use #:cl) (:local-nicknames (#:a #:alexandria)) (...
null
https://raw.githubusercontent.com/screenshotbot/screenshotbot-oss/dab5e0ed3d1b58b3bd4dcaeeb61147eef8ca724b/src/util/copy-file.lisp
lisp
Copyright 2018-Present Modern Interpreters Inc.
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. (defpackage :util/copy-file (:use #:cl) (:local-nicknames (#:a #:alexandria)) (:export #:copy-file-fast) #-lispworks (:local-nickn...
894318dc10a1ee5098c2deedbd4307882f2b8aa8608b9af1ec69168ed5938740
kyleburton/sandbox
app.clj
(ns com.github.kyleburton.app (:gen-class) (:use [com.github.kyleburton.sandbox.web :as kweb] [com.github.kyleburton.sandbox.landmark-parser :as lp] [clojure.contrib.str-utils :as str-utils])) (defn fetch-page [terms] (let [page (kweb/get->string (format "-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:of...
null
https://raw.githubusercontent.com/kyleburton/sandbox/cccbcc9a97026336691063a0a7eb59293a35c31a/examples/exec-jar/src/main/clj/com/github/kyleburton/app.clj
clojure
(ns com.github.kyleburton.app (:gen-class) (:use [com.github.kyleburton.sandbox.web :as kweb] [com.github.kyleburton.sandbox.landmark-parser :as lp] [clojure.contrib.str-utils :as str-utils])) (defn fetch-page [terms] (let [page (kweb/get->string (format "-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:of...
0d14f55dacefcad4e62b8dca603d461ed4371fc6b8cf7755d91e67dbc7553756
synduce/Synduce
Main.mli
open Common open ProblemDefs open Env type multi_soln_result = { r_best : (env * PsiDef.t * Syguslib.Sygus.solver_response segis_response) option ; r_all : (env * PsiDef.t * Syguslib.Sygus.solver_response segis_response) list ; r_subconf_count : int ; r_final_state : ConfGraph.state } (** [find_and_solver_p...
null
https://raw.githubusercontent.com/synduce/Synduce/42d970faa863365f10531b19945cbb5cfb70f134/src/confsearch/Main.mli
ocaml
* [find_and_solver_problem (target,spec,repr) globals] finds the PMRS components in the top-level functions [globals] with names [target], [spec] and [repr], and solves the synthesis problem associated with it. In order to solve it, it may attempt to modify the problem by changing the inputs of the unkn...
open Common open ProblemDefs open Env type multi_soln_result = { r_best : (env * PsiDef.t * Syguslib.Sygus.solver_response segis_response) option ; r_all : (env * PsiDef.t * Syguslib.Sygus.solver_response segis_response) list ; r_subconf_count : int ; r_final_state : ConfGraph.state } val find_and_solve_pro...
65661e204ad6f4f6fbab4159c88a9cbaf636a799253436eeeca15acd37833923
ocaml-multicore/ocaml-tsan
tast_mapper.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-multicore/ocaml-tsan/f54002470cc6ab780963cc81b11a85a820a40819/typing/tast_mapper.ml
ocaml
************************************************************************ OCaml ...
, LexiFi Copyright 2015 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Asttypes open Typedtree type mapper = { binding_op: mapper -> binding_op -> binding_op; c...
121987e07a0dd7889f6386212e4a677fb034a112de464d41148482c3bba878dd
ZHaskell/z-data
CBytesSpec.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module Z.Data.CBytesSpec where import Data.Char (ord) import Data.Hashable (hash, hashWithSalt) import qualified Data.List as List import Data....
null
https://raw.githubusercontent.com/ZHaskell/z-data/b547ac196db274e754af9fdda736ff6beb4c98fa/test/Z/Data/CBytesSpec.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module Z.Data.CBytesSpec where import Data.Char (ord) import Data.Hashable (hash, hashWithSalt) import qualified Data.List as List import Data.Word import qualified GHC.Exts ...
d8eef52115e1c7e116105d7e42d605677ef19ba485e19eb7ade12ec7904416a1
VERIMAG-Polyhedra/VPL
ParamCoeff_t.ml
open Vpl module Cs = Cstr.Rat let x = Var.fromInt 1 let y = Var.fromInt 2 let z = Var.fromInt 3 let t = Var.fromInt 4 let equalTs : Test.t = fun () -> let chk : string * bool * ParamCoeff.t * ParamCoeff.t -> Test.stateT -> Test.stateT = fun (nm, r, c, c') state -> if r = ParamCoeff.equal c c' then Te...
null
https://raw.githubusercontent.com/VERIMAG-Polyhedra/VPL/cd78d6e7d120508fd5a694bdb01300477e5646f8/test/plp/ParamCoeff_t.ml
ocaml
open Vpl module Cs = Cstr.Rat let x = Var.fromInt 1 let y = Var.fromInt 2 let z = Var.fromInt 3 let t = Var.fromInt 4 let equalTs : Test.t = fun () -> let chk : string * bool * ParamCoeff.t * ParamCoeff.t -> Test.stateT -> Test.stateT = fun (nm, r, c, c') state -> if r = ParamCoeff.equal c c' then Te...
87fa2ba306f9117d32ebd612b1c97da71192eecdba893a1c3345eaaa6e09fec8
glguy/advent
09.hs
{-# Language QuasiQuotes #-} | Module : Main Description : Day 9 solution Copyright : ( c ) , 2019 License : ISC Maintainer : < > > > > intcodeToList [ 109,1,204,-1,1001,100,1,100,1008,100,16,101,1006,101,0,99 ] [ ] [ 109,1,204,-1,1001,100,1,100,1008,100,16,101,1006,101,0,99 ] >...
null
https://raw.githubusercontent.com/glguy/advent/7ab9f9e47208fd5720e36bac33fee2b78d4ec50b/solutions/src/2019/09.hs
haskell
# Language QuasiQuotes # | >>> :main
| Module : Main Description : Day 9 solution Copyright : ( c ) , 2019 License : ISC Maintainer : < > > > > intcodeToList [ 109,1,204,-1,1001,100,1,100,1008,100,16,101,1006,101,0,99 ] [ ] [ 109,1,204,-1,1001,100,1,100,1008,100,16,101,1006,101,0,99 ] > > > intcodeToList [ 1102,349...
58f580905b573a5ab35bb6d76bc07c5b1e8bab233c0359bf2369c334f0d97c3d
alevy/simple
Session.hs
# LANGUAGE Trustworthy # # LANGUAGE FlexibleInstances # {-# LANGUAGE OverloadedStrings #-} | Adds cookie - based session management to simple ' Controller 's . To add to an application , declare the Controller setting\ 's type an instance of ' HasSession ' , and wrap routes with ' withSession ' . For example...
null
https://raw.githubusercontent.com/alevy/simple/7091a592635999b3d60799b70c85bceda3905a9f/simple-session/src/Web/Simple/Session.hs
haskell
# LANGUAGE OverloadedStrings # * Accessors * Utilities | Plaintext mapping of the session map. Both keys and values are 'S.ByteString's. | Instances of this class can be used as states by a 'Controller' to manage cookie-based user sessions. Instances must minimally implement 'getSession' By default, the secret ...
# LANGUAGE Trustworthy # # LANGUAGE FlexibleInstances # | Adds cookie - based session management to simple ' Controller 's . To add to an application , declare the Controller setting\ 's type an instance of ' HasSession ' , and wrap routes with ' withSession ' . For example : > data AppSettings = ... ...
ce4b2f4c8e2caa3847cecba2109b49b151b2766423b4ebf318c53e017132d69a
andrewvc/engulf
worker_client.clj
(ns engulf.worker-client (:require [engulf.utils :as utils] [engulf.comm.netchan :as nc] [engulf.settings :as settings] [engulf.formula :as formula] [clojure.tools.logging :as log] [lamina.core :as lc]) (:use lamina.core [clojure.walk :only [keywordize-keys]]) (:import java.util.UUID ...
null
https://raw.githubusercontent.com/andrewvc/engulf/31c71c1e0b304a6c99189d0448105299ef05619c/src/engulf/worker_client.clj
clojure
Send identity immediately
(ns engulf.worker-client (:require [engulf.utils :as utils] [engulf.comm.netchan :as nc] [engulf.settings :as settings] [engulf.formula :as formula] [clojure.tools.logging :as log] [lamina.core :as lc]) (:use lamina.core [clojure.walk :only [keywordize-keys]]) (:import java.util.UUID ...
a816c2cb085028ee06672a6b5ab88e7af83fd25f3edf09b8fa5d502c81a57501
xapi-project/xenopsd
squeeze_xen.ml
* Copyright ( C ) 2006 - 2009 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/xenopsd/2a66192f4e23fd7ebd839980dc6e6078d02b7d81/squeezed/src/squeeze_xen.ml
ocaml
immutable immutable immutable immutable mutable: written by guest agent immutable mutable: written by us mutable: written by domain manager mutable: written by domain manager * Cache of per-domain info, to avoid repeated per-domain queries Misc other stuff appears in max_memory_pages get_per_domai...
* Copyright ( C ) 2006 - 2009 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...
866cba26e795648cdfa18b630c2fffbd62963eb9b41108a5ddbb03aa1a94a096
janestreet/bonsai
app.ml
include App__generated
null
https://raw.githubusercontent.com/janestreet/bonsai/8643e8b3717b035386ac36f2bcfa4a05bca0d64f/web_ui/view/kado/app.ml
ocaml
include App__generated
7c1528ca7111133e5c3ddfcb81f336f360efb5b16e06519e1db568ec48151284
coq/bot
GitLab_types.mli
type ci_common_info = { head_commit: string ; base_commit: string option ; branch: string ; repo_url: string ; project_id: int } type 'a job_info = { build_status: string ; build_id: int ; build_name: string ; stage: string ; failure_reason: string option ; allow_fail: bool ; common_info: 'a } ...
null
https://raw.githubusercontent.com/coq/bot/636c6e1d94a162e6e4177e8af3c4a9684ed53748/bot-components/GitLab_types.mli
ocaml
type ci_common_info = { head_commit: string ; base_commit: string option ; branch: string ; repo_url: string ; project_id: int } type 'a job_info = { build_status: string ; build_id: int ; build_name: string ; stage: string ; failure_reason: string option ; allow_fail: bool ; common_info: 'a } ...
a1a494c4d4479a3b5f588058fae4408275662ebd5dc9550fe4979788c0479ade
ocsigen/ocaml-eliom
test.ml
let () = let a = [|0;1;2;3;4;5;6;7;8;9|] in assert (Array.exists (fun a -> a < 10) a); assert (Array.exists (fun a -> a > 0) a); assert (Array.exists (fun a -> a = 0) a); assert (Array.exists (fun a -> a = 1) a); assert (Array.exists (fun a -> a = 2) a); assert (Array.exists (fun a -> a = 3) a); assert ...
null
https://raw.githubusercontent.com/ocsigen/ocaml-eliom/497c6707f477cb3086dc6d8124384e74a8c379ae/testsuite/tests/array-functions/test.ml
ocaml
let () = let a = [|0;1;2;3;4;5;6;7;8;9|] in assert (Array.exists (fun a -> a < 10) a); assert (Array.exists (fun a -> a > 0) a); assert (Array.exists (fun a -> a = 0) a); assert (Array.exists (fun a -> a = 1) a); assert (Array.exists (fun a -> a = 2) a); assert (Array.exists (fun a -> a = 3) a); assert ...
e4df57225673c3ca95580795592ad7e97f46a37c2356b6fb32dd2ccae6f25deb
bytekid/mkbtt
pair.ml
Copyright 2008 , Christian Sternagel , * GNU Lesser General Public License * * This file is part of TTT2 . * * TTT2 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 ve...
null
https://raw.githubusercontent.com/bytekid/mkbtt/c2f8e0615389b52eabd12655fe48237aa0fe83fd/src/util/src/pair.ml
ocaml
** OPENS ******************************************************************* ** MODULE TYPES ************************************************************ ** FUNCTIONS *************************************************************** Iterators Scan Functions Printers
Copyright 2008 , Christian Sternagel , * GNU Lesser General Public License * * This file is part of TTT2 . * * TTT2 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 ve...
e0473485bb9b2a5a35919efbc8962a04086ac2c25405b82222e28d0b5f770a18
aprell/compiler-potpourri
data_flow.ml
open Basic_block__Utils open Control_flow type 'a analysis = { gen : 'a; kill : 'a; mutable global_in : 'a; mutable global_out : 'a; } module type SetType = sig include Set.S val to_string : t -> string end (* Input signature of functors Forward_flow and Backward_flow *) module type AnalysisType = sig ...
null
https://raw.githubusercontent.com/aprell/compiler-potpourri/a668b71f392abf1810a1f33f362a1d96bc5eebce/data_flow/analysis/data_flow.ml
ocaml
Input signature of functors Forward_flow and Backward_flow Output signature of functors Forward_flow and Backward_flow Input signature of functor Data_flow_analysis Update in-set and out-set of a node
open Basic_block__Utils open Control_flow type 'a analysis = { gen : 'a; kill : 'a; mutable global_in : 'a; mutable global_out : 'a; } module type SetType = sig include Set.S val to_string : t -> string end module type AnalysisType = sig module Set : SetType val meet : Set.t -> Set.t -> Set.t val i...
b82ec35cc13a509db9b5e55062e4bd5eda6f09165731dca26e0005d4d064a2c8
samrushing/irken-compiler
t_prints.scm
;; -*- Mode: Irken -*- (include "lib/core.scm") (print-string "four score and seven years ago...\n")
null
https://raw.githubusercontent.com/samrushing/irken-compiler/690da48852d55497f873738df54f14e8e135d006/vm/tests/t_prints.scm
scheme
-*- Mode: Irken -*-
(include "lib/core.scm") (print-string "four score and seven years ago...\n")
f6d46f155a3e2bc8b8d52a67c13cdadffe0379fd8cf460b39d31ee18a4f796e2
cuplv/dai
exec.ml
open Dai open Import open Command open Command.Let_syntax let analyze = basic ~summary:"Analyze a program edit using the DAI framework" [%map_open let src_dir = anon ("src_dir" %: string) and incr = flag "incremental" no_arg ~doc:"incremental analysis: reuse results across the progr...
null
https://raw.githubusercontent.com/cuplv/dai/99117a6c5bd9a2d54eef9287472861eb508b7772/src/exec.ml
ocaml
open Dai open Import open Command open Command.Let_syntax let analyze = basic ~summary:"Analyze a program edit using the DAI framework" [%map_open let src_dir = anon ("src_dir" %: string) and incr = flag "incremental" no_arg ~doc:"incremental analysis: reuse results across the progr...
e117e3d157b778680f9e8e1b00779f1539d2b1fa154ff3a34a357d93da27152a
dgiot/dgiot
dgiot_eboard.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 - 2021 DGIOT Technologies Co. , Ltd. All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy...
null
https://raw.githubusercontent.com/dgiot/dgiot/c9f2f78af71692ba532e4806621b611db2afe0c9/apps/dgiot_api/src/utils/dgiot_eboard.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2020 - 2021 DGIOT Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(dgiot_eboard). -author("johnliu"). -include("dgiot_api.hrl"). -include_lib("dgiot/incl...
5c466b67dcd7e1346ab6f2a2ee602e1233f70cfad7f1f54ea18dad57e79c66b5
Eonblast/Scalaxis
pid_groups.erl
2007 - 2011 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/Eonblast/Scalaxis/10287d11428e627dca8c41c818745763b9f7e8d4/src/pid_groups.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...
2007 - 2011 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 < > @author < > scalaris nodes in one erlang vm for debugging . But for the -module(pid_groups). -author(''...
024572de64ed869b240ea96c2673210287b9d41831caf873a0dae517d79a1d3a
locusmath/locus
morphism.clj
(ns locus.set.quiver.ternary.thin.morphism (:require [locus.set.logic.core.set :refer :all] [locus.set.logic.limit.product :refer :all] [locus.set.logic.sequence.object :refer :all] [locus.set.logic.structure.protocols :refer :all] [locus.set.mapping.general.core.object...
null
https://raw.githubusercontent.com/locusmath/locus/fb6068bd78977b51fd3c5783545a5f9986e4235c/src/clojure/locus/set/quiver/ternary/thin/morphism.clj
clojure
Composition and identities of thin ternary quivers
(ns locus.set.quiver.ternary.thin.morphism (:require [locus.set.logic.core.set :refer :all] [locus.set.logic.limit.product :refer :all] [locus.set.logic.sequence.object :refer :all] [locus.set.logic.structure.protocols :refer :all] [locus.set.mapping.general.core.object...
b05281f9d438a377591dda575f9d18201011069fcc552ba3e372cebf187a6cac
cojna/iota
UnionFind.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE CPP # module Data.UnionFind where import Control.Monad import Control.Monad.Primitive import Data.Function import qualified Data.Vector.Unboxed as U import qualified Data.Vector.Unboxed.Mutable as UM newtype UnionFind s = UF {getUnionFind :: UM.MVector s Int} newUnionFind ::...
null
https://raw.githubusercontent.com/cojna/iota/6d2ad5b71b1b50bca9136d6ed84f80a0b7713d7c/src/Data/UnionFind.hs
haskell
# LANGUAGE BangPatterns # # INLINE uniteUF_ # | O(n)
# LANGUAGE CPP # module Data.UnionFind where import Control.Monad import Control.Monad.Primitive import Data.Function import qualified Data.Vector.Unboxed as U import qualified Data.Vector.Unboxed.Mutable as UM newtype UnionFind s = UF {getUnionFind :: UM.MVector s Int} newUnionFind :: PrimMonad m => Int -> m (Unio...
3facdd48500aba2cc8952779d9472f31fcbe4c01c840c7fca663029cee11ba2b
avsm/eeww
block.ml
type t external dispatch_block_create : (unit -> unit) -> t = "ocaml_dispatch_block_create" external dispatch_block_destroy : t -> unit = "ocaml_dispatch_block_destroy" external dispatch_block_exec : t -> unit = "ocaml_dispatch_block_exec" let create thunk = let b = dispatch_block_create thunk in Gc.finalise d...
null
https://raw.githubusercontent.com/avsm/eeww/17c68b93536cd382b901ba675411c2f69831fdac/lib/dispatch/lib/block.ml
ocaml
type t external dispatch_block_create : (unit -> unit) -> t = "ocaml_dispatch_block_create" external dispatch_block_destroy : t -> unit = "ocaml_dispatch_block_destroy" external dispatch_block_exec : t -> unit = "ocaml_dispatch_block_exec" let create thunk = let b = dispatch_block_create thunk in Gc.finalise d...
760673573a10e2e2f6bf51542845250e42edf2bc9f8b377e1c46c07bc44e5161
jrm-code-project/LISP-Machine
lispm-patches.lisp
-*- Mode : LISP ; Package : SYSTEM - INTERNALS ; ; Patch - File : T ; : ZL -*- . NIL USES # \^G SYNTAX . (DEFUN XR-#\-MACRO (STREAM IGNORE &OPTIONAL BITS) (MULTIPLE-VALUE-BIND (NIL NIL CHAR) (XR-XRTYI STREAM NIL T) (LOGIOR (%LOGDPB (OR BITS 0) %%KBD-CONTROL-META 0) (COND ((= CHAR #/^...
null
https://raw.githubusercontent.com/jrm-code-project/LISP-Machine/0a448d27f40761fafabe5775ffc550637be537b2/lambda/gjcx/steve/lispm-patches.lisp
lisp
Package : SYSTEM - INTERNALS ; ; Patch - File : T ; : ZL -*- Get symbolic name of character READ returns NIL in this case; don't bomb.
. NIL USES # \^G SYNTAX . (DEFUN XR-#\-MACRO (STREAM IGNORE &OPTIONAL BITS) (MULTIPLE-VALUE-BIND (NIL NIL CHAR) (XR-XRTYI STREAM NIL T) (LOGIOR (%LOGDPB (OR BITS 0) %%KBD-CONTROL-META 0) (COND ((= CHAR #/^) (SEND STREAM :UNTYI CHAR) (PKG-BIND PKG-KEYWORD-PACKAGE...
fa6c42b48e456dcc11568e32f5983fff6c1db9894b0e3c2518107689e8221cd3
janestreet/base
test_stack.mli
open! Base module Debug (S : Stack.S) : Stack.S with type 'a t = 'a S.t module Test (S : Stack.S) : sig end
null
https://raw.githubusercontent.com/janestreet/base/221b085f3fcd77597f8245b4d73de3970b238e71/test/helpers/test_stack.mli
ocaml
open! Base module Debug (S : Stack.S) : Stack.S with type 'a t = 'a S.t module Test (S : Stack.S) : sig end
a57d032e32e7127574baf1c8d20c9c9b183c507bbecb77d9e46557088cbe97d2
andrenth/srsly
util.ml
open Lwt open Printf let inet_addr_of_sockaddr = function | Unix.ADDR_INET (a, _) -> a | Unix.ADDR_UNIX s -> invalid_arg ("inet_addr_of_sockaddr "^s) let string_of_sockaddr = function | Unix.ADDR_INET (a, _) -> Unix.string_of_inet_addr a | Unix.ADDR_UNIX s -> s let applyn f x n = let rec apply z = function...
null
https://raw.githubusercontent.com/andrenth/srsly/fce92645781a6a6037512be4d35116ec53737b17/src/util.ml
ocaml
open Lwt open Printf let inet_addr_of_sockaddr = function | Unix.ADDR_INET (a, _) -> a | Unix.ADDR_UNIX s -> invalid_arg ("inet_addr_of_sockaddr "^s) let string_of_sockaddr = function | Unix.ADDR_INET (a, _) -> Unix.string_of_inet_addr a | Unix.ADDR_UNIX s -> s let applyn f x n = let rec apply z = function...
7abde6d7f412495040015ea3b5d010a776cf4b7b761f0bb27f8e149f2c17ea28
Ejhfast/mobile-for-compojure
project.clj
(defproject mobile "0.0.1-SNAPSHOT" :description "Mobile device middleware for compojure" :dependencies [[org.clojure/clojure "1.1.0"] [org.clojure/clojure-contrib "1.1.0"] [compojure "0.4.0"] [ring/ring-jetty-adapter "0.2.3"] [hiccup "0.3.0"]])
null
https://raw.githubusercontent.com/Ejhfast/mobile-for-compojure/471fdd2a7e827831b602d9a58a0e51709637ed8d/project.clj
clojure
(defproject mobile "0.0.1-SNAPSHOT" :description "Mobile device middleware for compojure" :dependencies [[org.clojure/clojure "1.1.0"] [org.clojure/clojure-contrib "1.1.0"] [compojure "0.4.0"] [ring/ring-jetty-adapter "0.2.3"] [hiccup "0.3.0"]])
a98c112ef31668ea4a01c475b406f58ef6ceee783d31e1a1657f8c4364b16e65
NaaS/motto
translation_aux.ml
Support for translation from to the NaaSty intermediate language , Cambridge University Computer Lab , October 2015 Use of this source code is governed by the Apache 2.0 license ; see LICENSE Support for translation from Flick to the NaaSty intermediate language Nik Sultana, Cambridge Univers...
null
https://raw.githubusercontent.com/NaaS/motto/8ff3eba534be816d861dcfced93b68d593a12e2b/il/translation_aux.ml
ocaml
Apply the local_name_map to expressions/types/etc. This is necessary before giving the expression to any functions that will perform lookups on variables, if those variables are in the domain of local_name_map, otherwise those lookups might take place on incorrect or non-existent symbol names.
Support for translation from to the NaaSty intermediate language , Cambridge University Computer Lab , October 2015 Use of this source code is governed by the Apache 2.0 license ; see LICENSE Support for translation from Flick to the NaaSty intermediate language Nik Sultana, Cambridge Univers...
711504aeb4923f8ab5ed9293f3acba28fb63922625f0e843aabcde64e9ba6f3a
aeternity/aeternity
aehttp_cache_expires.erl
%% Implements expires/3 similar to cowboy_rest expires/2 callback customized with additional ( first ) argument for easy switching %% %% Get the top block (either key or micro block) Can not be cached for more than ( 3s ) %% %% Get a micro block %% Can be cached aggressively, however micro-blocks of last X key bl...
null
https://raw.githubusercontent.com/aeternity/aeternity/b7ce6ae15dab7fa22287c2da3d4405c29bb4edd7/apps/aehttp/src/aehttp_cache_expires.erl
erlang
Implements expires/3 similar to cowboy_rest expires/2 callback Get the top block (either key or micro block) Get a micro block Can be cached aggressively, however micro-blocks of last X key blocks can be reorganized by forks, Also micro blocks can be reorganized because of micro-forks, Get a key block Can be...
customized with additional ( first ) argument for easy switching Can not be cached for more than ( 3s ) thus their cache time should not exceed EXPECTED_BLOCK_MINE_RATE_MINUTES ( 3 min . ) Expires = ExpectedNextBlockTime ( ) - > TopBlockTime + InterBlockTime so micro - blocks of current generation can not b...
fa3571fbc738d6879e31f0b9f549cbb0f89c97aff92165e5a56d63438a4af7a4
kpreid/e-on-cl
serve-event.lisp
Copyright 2005 - 2007 , under the terms of the MIT X license found at ................ (in-package :e.elib) ;;; Runner class for Lisp systems providing SERVE-EVENT. ;;; The remainder of this file is within this conditional. #+(or sbcl cmu) (progn (defclass serve-event-runner (runner) ((time-queue :type pri...
null
https://raw.githubusercontent.com/kpreid/e-on-cl/f93d188051c66db0ad4ff150bd73b838f7bc25ed/lisp/serve-event.lisp
lisp
Runner class for Lisp systems providing SERVE-EVENT. The remainder of this file is within this conditional. (format *trace-output* "~&vr-add-io-handler ~S" (list runner target direction function)) (format *trace-output* "~&vraih install ~S" (list runner target direction function)) (format *trace-output* "~&vraih enqu...
Copyright 2005 - 2007 , under the terms of the MIT X license found at ................ (in-package :e.elib) #+(or sbcl cmu) (progn (defclass serve-event-runner (runner) ((time-queue :type priority-queue :initform (make-instance 'priority-queue) :reader %ser-time-queue))) (def...
66cad1261d2b68cb11133c0c9b6839b602f4acde3c1d3519f7f0d0fc157e55d7
GumTreeDiff/cgum
objet.mli
* Copyright 2014 , INRIA * * This file is part of Cgen . Much of it comes from Coccinelle , which is * also available under the GPLv2 license * * Cgen 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 So...
null
https://raw.githubusercontent.com/GumTreeDiff/cgum/8521aa80fcf4873a19e60ce8c846c886aaefb41b/commons/objet.mli
ocaml
method check: unit -> unit
* Copyright 2014 , INRIA * * This file is part of Cgen . Much of it comes from Coccinelle , which is * also available under the GPLv2 license * * Cgen 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 So...
515c9874e825884e3797cc316a2d1fd48f70fcb051fc8ab757c9f76b0e7949a5
ftzm/Hnefatafl
BasicAI.hs
# OPTIONS_GHC -fno - warn - type - defaults # # LANGUAGE TupleSections # module BasicAI (generateMove, allGameStates, expandGames, test ) where import Board import Moves import Turns import Capture import GameState import Engine import qualified Data.Map as M import Data.Ord import Data.Maybe import Data.Lis...
null
https://raw.githubusercontent.com/ftzm/Hnefatafl/b9788f342890fd5260075200cd6dbcd394a3659a/src/BasicAI.hs
haskell
---------------------------------------------------------------------------- |Given a [(Direction, [Coord])] list, add new head coords to the list of discovered coordinates ---------------------------------------------------------------------------- Board Judging Methods |Given a board, square and direction, if ...
# OPTIONS_GHC -fno - warn - type - defaults # # LANGUAGE TupleSections # module BasicAI (generateMove, allGameStates, expandGames, test ) where import Board import Moves import Turns import Capture import GameState import Engine import qualified Data.Map as M import Data.Ord import Data.Maybe import Data.Lis...
1dfa5a7db3fb3c4cfdeafd33f20287cba2286ac28772b2a7a9492e45d16aaedf
chenyukang/eopl
15.scm
(load "../libs/init.scm") ;; var-exp : Var -> Lc-exp (define var-exp (lambda (var) (cons 'var-exp var))) ;; lambda-exp : Var * Lc-exp -> Lc-exp (define lambda-exp (lambda (var lc-exp) (list 'lambda-exp (list var) lc-exp))) ;; app-exp : Lc-exp * Lc-exp -> Lc-exp (define app-exp (lambda (lc-exp1 lc-exp2)...
null
https://raw.githubusercontent.com/chenyukang/eopl/0406ff23b993bfe020294fa70d2597b1ce4f9b78/ch2/15.scm
scheme
var-exp : Var -> Lc-exp lambda-exp : Var * Lc-exp -> Lc-exp app-exp : Lc-exp * Lc-exp -> Lc-exp var-exp? : Lc-exp -> Bool lambda-exp? : Lc-exp -> Bool app-exp? : Lc-exp -> Bool var-exp->var : Lc-exp -> Var lambda-exp->bound-var : Lc-exp -> Var lambda-exp->body : Lc-exp -> Lc-exp app-exp->rator : Lc-exp -> Lc-...
(load "../libs/init.scm") (define var-exp (lambda (var) (cons 'var-exp var))) (define lambda-exp (lambda (var lc-exp) (list 'lambda-exp (list var) lc-exp))) (define app-exp (lambda (lc-exp1 lc-exp2) (list 'app-exp lc-exp1 lc-exp2))) (define var-exp? (lambda (x) (and (pair? x) (eq? (car x) 'v...
e7f6178416406e01d5e0409f67aae2f59bf82dc5f61ef25c1bdd96093e97624f
Bogdanp/racket-gui-easy
radios.rkt
#lang racket/base (require racket/class (prefix-in gui: racket/gui) racket/list racket/match "../observable.rkt" "common.rkt" "view.rkt") (provide radios) (define radios% (class* object% (view<%>) (init-field @label @enabled? @selection @min-size @stretch ...
null
https://raw.githubusercontent.com/Bogdanp/racket-gui-easy/9343090b08c2d08ae55aa35994411c119a243a12/gui-easy-lib/gui/easy/private/view/radios.rkt
racket
#lang racket/base (require racket/class (prefix-in gui: racket/gui) racket/list racket/match "../observable.rkt" "common.rkt" "view.rkt") (provide radios) (define radios% (class* object% (view<%>) (init-field @label @enabled? @selection @min-size @stretch ...
ed5899f4ed44eee3de7a9a606f0077ec0d00f56b05057fca9ed9f2726df36051
pink-gorilla/webly
ui.cljs
(ns modular.oauth2.token.ui (:require [taoensso.timbre :refer-macros [info error]] [re-frame.core :as rf] [ajax.core :as ajax])) (rf/reg-sub :tokens/summary (fn [db [_]] (get-in db [:tokens/summary]))) (rf/reg-event-db :tokens/summary (fn [db [_ ts]] (info "tokens/summary" ts) (assoc-in db [:t...
null
https://raw.githubusercontent.com/pink-gorilla/webly/ae37a2b0eb201bade5f909ebecfa63a60c3bd4ca/oauth2/src/modular/oauth2/token/ui.cljs
clojure
(info "provider: " provider " status: " status)
(ns modular.oauth2.token.ui (:require [taoensso.timbre :refer-macros [info error]] [re-frame.core :as rf] [ajax.core :as ajax])) (rf/reg-sub :tokens/summary (fn [db [_]] (get-in db [:tokens/summary]))) (rf/reg-event-db :tokens/summary (fn [db [_ ts]] (info "tokens/summary" ts) (assoc-in db [:t...
287ea220cfde4cc1c2a7a53dd9841cfe392420592bf28d49cf95b43358223052
rfkm/zou
cli_test.clj
(ns zou.framework.cli-test (:require [clojure.test :as t] [midje.sweet :refer :all] [zou.framework.cli :as sut] [clojure.java.io :as io])) (t/deftest extract-config-file-test (fact (sut/extract-config-file ["foo" "--bar" "-c" "project.clj"]) => (io/file "project.clj")) (...
null
https://raw.githubusercontent.com/rfkm/zou/228feefae3e008f56806589cb8019511981f7b01/framework/test/zou/framework/cli_test.clj
clojure
(ns zou.framework.cli-test (:require [clojure.test :as t] [midje.sweet :refer :all] [zou.framework.cli :as sut] [clojure.java.io :as io])) (t/deftest extract-config-file-test (fact (sut/extract-config-file ["foo" "--bar" "-c" "project.clj"]) => (io/file "project.clj")) (...
282b88be14ca733d823befaffeb7479da4b1eb02b9736c9321de2e2a61dcb61d
bollu/coremlir
OldConvertToMLIR.hs
# LANGUAGE CPP # # LANGUAGE ViewPatterns # module Core2MLIR.ConvertToMLIR(cvtModuleToMLIR) where import Var (Var, varName) import qualified Var import Id (isFCallId, isGlobalId, isExportedId) import Module (ModuleName, moduleNameFS, moduleName, pprModuleName) import Unique (Unique, getUnique, unpkUnique) import Name (g...
null
https://raw.githubusercontent.com/bollu/coremlir/7ab044051e62c54e8d3f94a38e3d1ecbf49fb2b0/core2MLIR/Core2MLIR/OldConvertToMLIR.hs
haskell
-8.10.1/docs/Outputable.html#v:SDoc -8.10.1/docs/src/Pretty.html#Doc | name of the expression | keep around stuff that can be recursive, so we can emit them differently. | monad instance , recnames :: S.Set String } line concatenation algo is wrong. *sigh* | bracket the use of a recursive var, adding the varia...
# LANGUAGE CPP # # LANGUAGE ViewPatterns # module Core2MLIR.ConvertToMLIR(cvtModuleToMLIR) where import Var (Var, varName) import qualified Var import Id (isFCallId, isGlobalId, isExportedId) import Module (ModuleName, moduleNameFS, moduleName, pprModuleName) import Unique (Unique, getUnique, unpkUnique) import Name (g...
68bb89419206c4966f74a496259f657bd971e26b3210f9b2f2f0c46a6cc87476
kunstmusik/pink
util_test.clj
(ns pink.util-test (:require [pink.util :refer :all] [pink.config :refer :all]) (:require [clojure.test :refer :all])) (deftest set-get-d (let [a (create-buffer 22.0)] (is (= (aget ^doubles a 0) 22.0)) (is (= (getd a) 22.0)))) (deftest test-shared (let [a (atom 0) tfn (shared (f...
null
https://raw.githubusercontent.com/kunstmusik/pink/7d37764b6a036a68a4619c93546fa3887f9951a7/src/test/pink/util_test.clj
clojure
(ns pink.util-test (:require [pink.util :refer :all] [pink.config :refer :all]) (:require [clojure.test :refer :all])) (deftest set-get-d (let [a (create-buffer 22.0)] (is (= (aget ^doubles a 0) 22.0)) (is (= (getd a) 22.0)))) (deftest test-shared (let [a (atom 0) tfn (shared (f...
671246e554a10e134be4bd82cd1a3dff24587935de1d8772519e93e052b7a274
smart-chain-fr/tokenomia
Balanceable.hs
# LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE RecordWildCards # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE DuplicateRecordFields # # LANGUAGE TupleSections # # LANGUAGE NumericUnderscores # # LANGUAGE NamedFieldPuns # # LANGUAGE TypeApplications # # LANGUAGE Flexib...
null
https://raw.githubusercontent.com/smart-chain-fr/tokenomia/8088d3320f02be5b9f9e2a4456e478bd99c6134f/src/Tokenomia/ICO/Balanceable.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE DuplicateRecordFields # # LANGUAGE TupleSections # # LANGUAGE NumericUnderscores # # LANGUAGE NamedFieldPuns # # LANGUAGE TypeApplications # # LANGUAGE FlexibleInstances # module Tokenomia.ICO...
d229433de65fdca447abb38dc0795b10ba4bf41b757dea180d0c7cee7fc234c7
farr/mcmc-ocaml
ellipse_test.ml
open OUnit open Ellipse open Lacaml.Impl.D open Asserts open Stats open Mcmc let mat_mul a b = let n = Array.length a and m = Array.length b.(0) and l = Array.length a.(0) in let res = Array.make_matrix n m 0.0 in for i = 0 to n - 1 do for j = 0 to m - 1 do for k = 0 to l - 1 d...
null
https://raw.githubusercontent.com/farr/mcmc-ocaml/56e46b8539cb8d6fada2cb09810363adf18f4c60/test/ellipse_test.ml
ocaml
open OUnit open Ellipse open Lacaml.Impl.D open Asserts open Stats open Mcmc let mat_mul a b = let n = Array.length a and m = Array.length b.(0) and l = Array.length a.(0) in let res = Array.make_matrix n m 0.0 in for i = 0 to n - 1 do for j = 0 to m - 1 do for k = 0 to l - 1 d...
785ca9b8be3d28f132505ae6afc4377d9c9367cbca3aae39f719b9e957d997a5
rsnikhil/Forvis_RISCV-ISA-Spec
Memory.hs
Copyright ( c ) 2018 -- See LICENSE for license details module Memory where -- ================================================================ -- This module defines an abstraction ('Mem') for -- a RISC-V Memory (byte-addressed), -- accessed via the exported get/set API. -- ====================================...
null
https://raw.githubusercontent.com/rsnikhil/Forvis_RISCV-ISA-Spec/0c5590a12f4b39644d0497fa6285ad5e33003dfc/ZZ_OLD/v2/Memory.hs
haskell
See LICENSE for license details ================================================================ This module defines an abstraction ('Mem') for a RISC-V Memory (byte-addressed), accessed via the exported get/set API. ================================================================ Project imports ==============...
Copyright ( c ) 2018 module Memory where Standard Haskell imports import Data.Maybe import Data.Word import Data.Bits import qualified Data.Map.Strict as Data_Map import Numeric (showHex, readHex) import Bit_Manipulation import Arch_Defs import Mem_Ops uninitialized_word = 0x00000000 :: Word32 Memory ...
7b3a6de24b8bbf6146da78f676b4b1c7fa392b83b1d4dcbae350e0fe302ce1aa
hakaru-dev/hakaru
Density.hs
# LANGUAGE OverloadedStrings , DataKinds , GADTs # module Main where import Language.Hakaru.Pretty.Concrete import Language.Hakaru.Syntax.TypeCheck import Language.Hakaru.Types.Sing import Language.Hakaru.Disintegrate import Language.Hakaru.Evaluation.ConstantPropaga...
null
https://raw.githubusercontent.com/hakaru-dev/hakaru/94157c89ea136c3b654a85cce51f19351245a490/commands/Density.hs
haskell
# LANGUAGE OverloadedStrings , DataKinds , GADTs # module Main where import Language.Hakaru.Pretty.Concrete import Language.Hakaru.Syntax.TypeCheck import Language.Hakaru.Types.Sing import Language.Hakaru.Disintegrate import Language.Hakaru.Evaluation.ConstantPropaga...
2bc6681d2a33de52ae308c97e2b81d50d7c970dbed7da72e2a1b0c3cc89e95d5
tweag/ormolu
invalid-haddock-1-out.hs
test = undefined where a :: -- \** foo Int -> -- \| misplaced Int -- \|misplaced a = undefined
null
https://raw.githubusercontent.com/tweag/ormolu/d0e558d05b734b5cbb35b1650314b4371f470751/data/examples/other/invalid-haddock-1-out.hs
haskell
\** foo \| misplaced \|misplaced
test = undefined where a :: Int -> Int a = undefined
bc914d757b7ef5d1edc095cafeea6dece04fb5c62d0d8204dc88a73a3b8c4b13
solomon-b/titan
ToResponse.hs
module Titan.ToResponse where import Data.Text (Text, concat, pack) class ToResponse a where toResponse :: a -> Text --instance Show a => ToResponse a mime where -- toResponse _ = pack . show instance ToResponse Int where toResponse = pack . show instance ToResponse Text where toResponse = id instance ToRe...
null
https://raw.githubusercontent.com/solomon-b/titan/a9ef0e4048161736b2cc343c12137a4935843493/src/Titan/ToResponse.hs
haskell
instance Show a => ToResponse a mime where toResponse _ = pack . show
module Titan.ToResponse where import Data.Text (Text, concat, pack) class ToResponse a where toResponse :: a -> Text instance ToResponse Int where toResponse = pack . show instance ToResponse Text where toResponse = id instance ToResponse [Text] where toResponse = Data.Text.concat
3d23fb6c9c6afdd3574900e292976b12d73ae0040206846fceefb68c2266e829
snmsts/cl-langserver
allegro.lisp
;;;; -*- indent-tabs-mode: nil; outline-regexp: ";;;;;* "; -*- ;;; slynk-allegro.lisp --- Allegro CL specific code for SLY . ;;; Created 2003 ;;; ;;; This code has been placed in the Public Domain. All warranties ;;; are disclaimed. ;;; (defpackage :ls-allegro (:use cl ls-backend)) (in-package...
null
https://raw.githubusercontent.com/snmsts/cl-langserver/3b1246a5d0bd58459e7a64708f820bf718cf7175/src/backend/impls/allegro.lisp
lisp
-*- indent-tabs-mode: nil; outline-regexp: ";;;;;* "; -*- This code has been placed in the Public Domain. All warranties are disclaimed. slynk-mop UTF8 TCP Server Unix signals Misc Debugger :print-before is kind of mis-used but we just want to stuff our :after methods, which need specia...
slynk-allegro.lisp --- Allegro CL specific code for SLY . Created 2003 (defpackage :ls-allegro (:use cl ls-backend)) (in-package ls-allegro) (eval-when (:compile-toplevel :load-toplevel :execute) (require :sock) (require :process) #+(version>= 8 2) (require 'lldb) ) (defimplementation gray-package-n...
a15d5c1dda1e419d48fe7f8ad39d1bdd77e06c9463395a175e52c66e3be9b356
dnadales/sandbox
Interpreter2.hs
# LANGUAGE InstanceSigs # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilyDependencies # | Third version of the interpreter using injective type families . module Interpreters.Interpreter2 where import Data.Functor.Identity (Identity, runIdentity) class Interpretation i where type C...
null
https://raw.githubusercontent.com/dnadales/sandbox/401c4f0fac5f8044fb6e2e443bacddce6f135b4b/typelevel-computations/src/Interpreters/Interpreter2.hs
haskell
instance: > data Int2Bool2 > > instance Interpretation Int2Bool2 where > type Context Int2Bool2 = Identity > > type Interpreted Int2Bool2 Int = Bool > > int :: Int -> Identity Bool > int x = pure (x /= 0) > Declaring the instance above will give produce the following error: > Type family equa...
# LANGUAGE InstanceSigs # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilyDependencies # | Third version of the interpreter using injective type families . module Interpreters.Interpreter2 where import Data.Functor.Identity (Identity, runIdentity) class Interpretation i where type C...
78adb3fb8198688ea51402930916fd05b66c976e6bdfeacf0505bf089b494f84
jrm-code-project/LISP-Machine
lmemit.lisp
-*- Mode : LISP ; ) ; ; : CL -*- Copyright ( c ) 1985 Yale University Authors : , R , D , J Philbin , J Rees . This material was developed by the T Project at the Yale University Computer Science Department . Permission to copy this software , to redistribute it , ;;; and to use it for any purp...
null
https://raw.githubusercontent.com/jrm-code-project/LISP-Machine/0a448d27f40761fafabe5775ffc550637be537b2/kmachine/fleabit/back-end/lmemit.lisp
lisp
) ; ; : CL -*- and to use it for any purpose is granted, subject to the following restric- tions and understandings. so that these may be included in future releases; and (b) to inform shall duly acknowledge such use, in accordance with the usual standards of acknowledging credit in academic research...
Copyright ( c ) 1985 Yale University Authors : , R , D , J Philbin , J Rees . This material was developed by the T Project at the Yale University Computer Science Department . Permission to copy this software , to redistribute it , 1 . Any copy made of this software must include this copyright noti...
4920a0be37009c83ee27047b71dedf0dccdba8718cbcf6ee1891f7eeecba2fb5
soulomoon/SICP
Exercise4.61.scm
Exercise 4.61 : The following rules implement a next - to relation that finds adjacent elements of a list : ; (rule (?x next-to ?y in (?x ?y . ?u))) ; (rule (?x next-to ?y in (?v . ?z)) ; (?x next-to ?y in ?z)) ; What will the response be to the following queries? ( ? x next - to ? y in ( 1 ( 2 3 ) 4 ) ) ...
null
https://raw.githubusercontent.com/soulomoon/SICP/1c6cbf5ecf6397eaeb990738a938d48c193af1bb/Chapter4/Exercise4.61.scm
scheme
(rule (?x next-to ?y in (?x ?y . ?u))) (rule (?x next-to ?y in (?v . ?z)) (?x next-to ?y in ?z)) What will the response be to the following queries? That I have to put the rule in setup in order for it to work
Exercise 4.61 : The following rules implement a next - to relation that finds adjacent elements of a list : ( ? x next - to ? y in ( 1 ( 2 3 ) 4 ) ) ( ? x next - to 1 in ( 2 1 3 1 ) ) (load "/Users/soulomoon/git/SICP/Chapter4/ch4-query.rkt") (define (inssert_to_init rule_list) (for-each (lambda (rule) (se...
f62c4994d020f9332d6397f8382d54acf2718220a1018036088acbe8e23549c5
TheLortex/mirage-monorepo
test.ml
[@@@ocamlformat "disable"] open Ppxlib (* Simple demo without [as__] and [drop] *) let ___1 = let loc = Location.none in let ast = [%expr List.length xs = 0] in let pat = let open Ast_pattern in let length () = pexp_apply (pexp_ident (ldot (lident (string "List")) (string "length"))) ...
null
https://raw.githubusercontent.com/TheLortex/mirage-monorepo/b557005dfe5a51fc50f0597d82c450291cfe8a2a/duniverse/ppxlib/test/patterns_as_and_drop/test.ml
ocaml
Simple demo without [as__] and [drop] Pitfall. If we forget unit argument and will use [as__], the success case will be fired before the error case. To avoid the pitfall above we could add extra () to delay evaluation But this pitfall is not introduced by [as__], it existed before too.
[@@@ocamlformat "disable"] open Ppxlib let ___1 = let loc = Location.none in let ast = [%expr List.length xs = 0] in let pat = let open Ast_pattern in let length () = pexp_apply (pexp_ident (ldot (lident (string "List")) (string "length"))) ((nolabel ** __) ^:: nil) in let ...
103d19f624c1a8ccda148c6fe481c6ace4a533d8293b2a35a758bc24de3b5318
imrehg/ypsilon
lists.scm
(library (rnrs lists (6)) (export find for-all exists filter partition fold-left fold-right remp remove remv remq memp member memv memq assp assoc assv assq cons*) (import (core lists)))
null
https://raw.githubusercontent.com/imrehg/ypsilon/e57a06ef5c66c1a88905b2be2fa791fa29848514/stdlib/rnrs/lists.scm
scheme
(library (rnrs lists (6)) (export find for-all exists filter partition fold-left fold-right remp remove remv remq memp member memv memq assp assoc assv assq cons*) (import (core lists)))
49861ebb5d018c224197fef6bd423a77f5aa82cd4c88e01413700f8db05bb416
marcelog/erlagi
erlagi_fastagi.erl
%%% A FastAGI server. %%% Copyright 2012 < > %%% 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 writin...
null
https://raw.githubusercontent.com/marcelog/erlagi/fd406e9b55a04ce14c0e68d7b87bd769a3dd7a6f/src/erlagi_fastagi.erl
erlang
A FastAGI server. you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright 2012 < > Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(erlagi_fastagi). -author("Marcelo Gornstein <>"). -github(""). -homepage("/"). -license("Apache License 2.0"). -behaviour(supervisor). -include...
180017348ceaaf2799c29f4569555e80964cd3dffc8ca4c333fd2a2c9ecd2ed0
mzp/coq-ide-for-ios
coqide.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/mzp/coq-ide-for-ios/4cdb389bbecd7cdd114666a8450ecf5b5f0391d3/coqlib/ide/coqide.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 **********************************************************************
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * i $ I d : coqide.mli 13323 20...
b86d73271254c244df6ee8f30d244b98e031d5a1a599c0dc11dc75d67dfd1e53
larcenists/larceny
16begin4.scm
(bits 16) (text (begin (nop) (alt (nop) (begin (nop) (inv z!)) (nop)) (nop))) 00000000 90 nop 00000001 90 nop 00000002 EB04 jmp short 0x8 00000004 90 nop 00000005 7501 jnz 0x8 00000007 90 ...
null
https://raw.githubusercontent.com/larcenists/larceny/fef550c7d3923deb7a5a1ccd5a628e54cf231c75/src/Lib/Sassy/tests/prims16/16begin4.scm
scheme
(bits 16) (text (begin (nop) (alt (nop) (begin (nop) (inv z!)) (nop)) (nop))) 00000000 90 nop 00000001 90 nop 00000002 EB04 jmp short 0x8 00000004 90 nop 00000005 7501 jnz 0x8 00000007 90 ...
a8dd70dd1ecda540acd74c13aa85e0a34b1bc4aff4b2e73b23e0508189a5cd7f
ichko/fmi-fp-2020-21
Spec.hs
import AssertExpectedScreen (assertExpectedScreen) import Lib (Move (..), play) import Test.HUnit ( Counts, Test (..), runTestTT, ) testTrivialGames :: Test testTrivialGames = TestCase $ do assertExpectedScreen "no moves game" $ last $ play [] assertExpectedScreen "one move game" $ last $ play [Move 1]...
null
https://raw.githubusercontent.com/ichko/fmi-fp-2020-21/83dea8db7666e7a8a372d82301d71c79d5b798ff/week-05/ConnectFour/Spec.hs
haskell
Game after invalid moves try to spill the board
import AssertExpectedScreen (assertExpectedScreen) import Lib (Move (..), play) import Test.HUnit ( Counts, Test (..), runTestTT, ) testTrivialGames :: Test testTrivialGames = TestCase $ do assertExpectedScreen "no moves game" $ last $ play [] assertExpectedScreen "one move game" $ last $ play [Move 1]...
b63fcf8c806982db91441c5194e16381f4e6f396257e157300ef967d706b32e3
janestreet/ocaml-probes
many_free_vars_in_handler.ml
(* too probes with the same name, many arguments *) let h2 name x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x = Printf.printf "handler %s:%d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d\n" name x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x let h1 name x = Printf.printf "handler ...
null
https://raw.githubusercontent.com/janestreet/ocaml-probes/1ddd237eb647c94918ce77b13922bd51710e94d5/test/terminating/many_free_vars_in_handler.ml
ocaml
too probes with the same name, many arguments keep some of the args live after probe
let h2 name x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x = Printf.printf "handler %s:%d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d\n" name x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x let h1 name x = Printf.printf "handler %s:%d\n" name x let test1 x = [%probe "a" (h1 "te...
a5169dd2f6da5c84ffd392c81cc850dea4b97c88b5d25389c35629cf48c6bfa2
instedd/planwise
guisso.clj
(ns planwise.auth.guisso (:require [planwise.model.ident :as ident] [taoensso.timbre :as timbre]) (:import [org.openid4java.consumer ConsumerManager] [org.openid4java.discovery DiscoveryInformation] [org.openid4java.message.sreg SRegMessage SRegRequest SRegResponse] [org...
null
https://raw.githubusercontent.com/instedd/planwise/1bc2a5742ae3dc377dddf1f9e9bb60f0d2f59084/src/planwise/auth/guisso.clj
clojure
Remove the identity from the request
(ns planwise.auth.guisso (:require [planwise.model.ident :as ident] [taoensso.timbre :as timbre]) (:import [org.openid4java.consumer ConsumerManager] [org.openid4java.discovery DiscoveryInformation] [org.openid4java.message.sreg SRegMessage SRegRequest SRegResponse] [org...
9a81237d2ad936685144b1faee24dad0d6f86e91bc8b97fdab0d480383e44dd8
adrianwong/programming-in-haskell-2nd-edition
ch08_solutions.hs
module ProgrammingInHaskell_Ch08 where -- Q1 data Nat = Zero | Succ Nat add :: Nat -> Nat -> Nat add Zero n = n add (Succ m) n = Succ (add m n) mult :: Nat -> Nat -> Nat mult m Zero = Zero mult m (Succ n) = add m (mult m n) -- Q2 data Tree a = Leaf a | Node (Tree a) a (Tree a) occurs :: Ord a => a -> Tree a...
null
https://raw.githubusercontent.com/adrianwong/programming-in-haskell-2nd-edition/85e4963f33f6b6b1bbc35281db55036930c1685b/ch08_solutions.hs
haskell
Q1 Q2 Q3 Q4 Q6 Q7 Nothing == Nothing = True (Just x) == (Just y) = x == y _ == _ = False [] == [] = True (x:xs) == (y:ys) = x == y && xs == ys xs == ys = False Q8 Extension for logical disjunction and equivalence: Extension for logical disjunction ...
module ProgrammingInHaskell_Ch08 where data Nat = Zero | Succ Nat add :: Nat -> Nat -> Nat add Zero n = n add (Succ m) n = Succ (add m n) mult :: Nat -> Nat -> Nat mult m Zero = Zero mult m (Succ n) = add m (mult m n) data Tree a = Leaf a | Node (Tree a) a (Tree a) occurs :: Ord a => a -> Tree a -> Bool occ...
9f476f64c591db22b8e77c1cdd7f5472ddf117344d62573af39f71ee975b912e
euhmeuh/web-galaxy
response.rkt
#lang racket/base (provide current-response-headers current-error-responder current-not-found-responder req req-data req-cookie redirect/permanently redirect/temporarily redirect/see-other redirect/cookie response/page response/xml response/raw response/file response/json response/not-f...
null
https://raw.githubusercontent.com/euhmeuh/web-galaxy/d484efe7422df0390d291f74c71cebf6006ab87a/web-galaxy-lib/web-galaxy/response.rkt
racket
#lang racket/base (provide current-response-headers current-error-responder current-not-found-responder req req-data req-cookie redirect/permanently redirect/temporarily redirect/see-other redirect/cookie response/page response/xml response/raw response/file response/json response/not-f...
3bf69e3b4e697b0c24b50ddca4271fab6b782b4302fbda98ad294b50da03030c
google/ormolu
type-applications-out.hs
# LANGUAGE TypeApplications # foo = f @String a b c bar = f @(Maybe Int) a b baz = f @Int @String a b goo = hash @(HASH TPraosStandardCrypto) @ByteString "And the lamb lies down on Broadway"
null
https://raw.githubusercontent.com/google/ormolu/ffdf145bbdf917d54a3ef4951fc2655e35847ff0/data/examples/declaration/value/function/type-applications-out.hs
haskell
# LANGUAGE TypeApplications # foo = f @String a b c bar = f @(Maybe Int) a b baz = f @Int @String a b goo = hash @(HASH TPraosStandardCrypto) @ByteString "And the lamb lies down on Broadway"
6805f4e6761284d1e1e8b2b0b63db4c6bafc559704c79abde212f4b527b0a515
drfloob/ezic
ezic_zone.erl
-module(ezic_zone). -include("include/ezic.hrl"). -include_lib("eunit/include/eunit.hrl"). -export([ parse/1 , current/1 , current_as_of_utc/2 , split_by_name/2 , offset_sec/1 , project_end/2 , project_end_utc/2 , next/3 ]). parse([Name,GmtOffS,Rule,FormatS | UntilTokens]) -> % ?debugVal(GmtOf...
null
https://raw.githubusercontent.com/drfloob/ezic/d95e92d1dc5ac763558da52c271b8a1b76f48122/src/ezic_zone.erl
erlang
?debugVal(GmtOffS), returns the active zone for a given utc time note: requires that flattening be done this will likely get reworked significantly where Similar Zones are those with the same name as Zone @bug doesn't normalize times. Times are self-relative (to standard time), and Now may come from any time...
-module(ezic_zone). -include("include/ezic.hrl"). -include_lib("eunit/include/eunit.hrl"). -export([ parse/1 , current/1 , current_as_of_utc/2 , split_by_name/2 , offset_sec/1 , project_end/2 , project_end_utc/2 , next/3 ]). parse([Name,GmtOffS,Rule,FormatS | UntilTokens]) -> GmtOff= ezic_par...
6ad85ef2b2d3f7fc4b464617f558dd5ec42a5717532d9c4bce73acf784f31615
BillHallahan/G2
SMT2.hs
| This defines an SMTConverter for the SMT2 language -- It provides methods to construct formulas, as well as feed them to an external solver # LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} {-# ...
null
https://raw.githubusercontent.com/BillHallahan/G2/9be4833e62409c93bba90a07e8a78efecc1fd88b/src/G2/Solver/SMT2.hs
haskell
It provides methods to construct formulas, as well as feed them to an external solver # LANGUAGE GADTs # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # # LANGUAGE TypeSynonymInstances # It would be nice to not import this... putStrLn "======" putStrLn $ "m = " ++ show m putStrLn "======" putStrLn "checkSat...
| This defines an SMTConverter for the SMT2 language # LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # module G2.Solver.SMT2 ( Z3 , CVC4 , SomeSMTSolver (..) , getZ3 ...
a72127d22508815dce134b1b4dfd9bdf4daf16b28b14218fe543e191096056d4
ptol/oczor
InferAst.hs
module Oczor.Infer.InferAst where import ClassyPrelude import Data.Functor.Foldable import Oczor.Syntax.Syntax import Oczor.Infer.Substitutable import Oczor.Infer.InferContext import Oczor.Utl type InferExprF = AnnF ExprF (TypeExpr, InferContext) type InferExpr = Ann ExprF (TypeExpr, InferContext) attrType :: Ann a...
null
https://raw.githubusercontent.com/ptol/oczor/77255e3c1b3decb956d53754cd3f2ac0ae746c67/src/Oczor/Infer/InferAst.hs
haskell
apply s | traceArgs ["apply inferExpr", show s] = undefined TODO FF (apply ast) ftv = cata $ \case (AnnF ast tp) -> ftv tp
module Oczor.Infer.InferAst where import ClassyPrelude import Data.Functor.Foldable import Oczor.Syntax.Syntax import Oczor.Infer.Substitutable import Oczor.Infer.InferContext import Oczor.Utl type InferExprF = AnnF ExprF (TypeExpr, InferContext) type InferExpr = Ann ExprF (TypeExpr, InferContext) attrType :: Ann a...
527bfe93b16df73a2c48d322f2a25cec84918a07f563017e4d0d7b8b2b74801c
facebook/infer
ProvisionalAnnotation.mli
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
null
https://raw.githubusercontent.com/facebook/infer/d2e59e6df24858729129debcc2813ae3915c4f0a/infer/src/nullsafe/ProvisionalAnnotation.mli
ocaml
* Provisional annotation is an imaginary [@Nullable] annotation that is added to a class element. * (It implies the corresponding element is NOT annotated as [@Nullable] in the source code.) * The purpose of provisional annotation is to compute Nullability graph: what would happen if such and such * element...
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
1e7b606f21ad170a9c6d9b08c1a1e0aee25b629c088b933062c663a9dfaddb56
soegaard/remacs
config.rkt
#lang racket/base ;;; CONFIGURATION ;;; This file contains the default configuration of Remacs . ; Variables defined in this file are used to make the default namespace. (provide (all-defined-out)) (require racket/set racket/runtime-path "colors.rkt" "parameters.rkt") (define-runtime-path simp...
null
https://raw.githubusercontent.com/soegaard/remacs/8681b3acfe93335e2bc2133c6f144af9e0a1289e/config.rkt
racket
Variables defined in this file are used to make the default namespace. MODES Set the initial mode to the fundamental mode. EDITING Indentation Note! Tabs aren't supported in rendering yet... #t = use tabs for indent, #f = use spaces every tab-width position positions of tab stops Margins used by break-...
#lang racket/base CONFIGURATION This file contains the default configuration of Remacs . (provide (all-defined-out)) (require racket/set racket/runtime-path "colors.rkt" "parameters.rkt") (define-runtime-path simple.rkt "simple.rkt") (define major-mode 'fundamental-mode) (define mode-na...
5d8a6e0964bfa83a7caae52da1a7641986b5b16832620b27e6ec5786a1716957
bobbae/gosling-emacs
alpha1.ml
;Alpha1 specific gemacs initialization. (error-occured (load "psl-abbrev.ml")) ; PSL template fns (error-occured (load "geom-abbr.ml") ; "geom" mode abbreviations. (load "geom-keys.ml") ; Key bindings for shapedit. (declare-global rlisp-pgm) ; The rlisp to start; (setq-default rlisp-pgm "/usr/local...
null
https://raw.githubusercontent.com/bobbae/gosling-emacs/8fdda532abbffb0c952251a0b5a4857e0f27495a/lib/maclib/utah/alpha1.ml
ocaml
;Alpha1 specific gemacs initialization. (error-occured (load "psl-abbrev.ml")) ; PSL template fns (error-occured (load "geom-abbr.ml") ; "geom" mode abbreviations. (load "geom-keys.ml") ; Key bindings for shapedit. (declare-global rlisp-pgm) ; The rlisp to start; (setq-default rlisp-pgm "/usr/local...
2e64890b461bbd81f6b8d7fb589e7a5ddc3943d2904d91f4f5baf5eec262ac2b
pbv/codex
Monad.hs
# LANGUAGE DeriveFunctor # # LANGUAGE GeneralizedNewtypeDeriving # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # -- | Tester monad for writing testers for submissions -- | allows access to an environment , running IO and failure ( i.e. passing ) -- -- | Tester monad for writing testers for sub...
null
https://raw.githubusercontent.com/pbv/codex/1a5a81965b12f834b436e2165c07120360aded99/src/Codex/Tester/Monad.hs
haskell
# LANGUAGE OverloadedStrings # | Tester monad for writing testers for submissions | allows access to an environment , running IO and failure ( i.e. passing ) | Tester monad for writing testers for submissions | allows access to an environment, running IO and failure (i.e. passing) | a monad for testing script...
# LANGUAGE DeriveFunctor # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE RecordWildCards # -} module Codex.Tester.Monad ( Tester, runTester, configured, maybeConfigured, configLimits, testConfig, testFilePath, testCode, testPage, testMetadata, testUser, metadata, metadataWithDefault, ...
c41dcf3c7bab52a627d1eb6d4802570ff129019cd3c6f94428e83545b793d8d5
frizensami/singlang
Defs.hs
module Defs ( Verbosity (..) ) where -- | How verbose printing should be data Verbosity = Verbose | Normal deriving (Show, Eq)
null
https://raw.githubusercontent.com/frizensami/singlang/cecc7f34083d9ae4f748093285dd4b7463fe15a0/src/Defs.hs
haskell
| How verbose printing should be
module Defs ( Verbosity (..) ) where data Verbosity = Verbose | Normal deriving (Show, Eq)
32c07a246d58f23ce3b7dffa99a0868c487fa57aa5948a9b070ecff4e6f0dfbf
fakedata-haskell/fakedata
CultureSeries.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # module Faker.Provider.CultureSeries where import Config import Control.Monad.IO.Class import Data.Map.Strict (Map) import Data.Monoid ((<>)) import Data.Text (Text) import Data.Vector (Vector) import Data.Yaml import Faker import Faker.Internal import Fa...
null
https://raw.githubusercontent.com/fakedata-haskell/fakedata/7b0875067386e9bb844c8b985c901c91a58842ff/src/Faker/Provider/CultureSeries.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE TemplateHaskell # module Faker.Provider.CultureSeries where import Config import Control.Monad.IO.Class import Data.Map.Strict (Map) import Data.Monoid ((<>)) import Data.Text (Text) import Data.Vector (Vector) import Data.Yaml import Faker import Faker.Internal import Faker.Provider.TH import Language.Has...
410bde364790e99658b10bc51369ce86aae6dbb8117d59aa8aed298577f433cf
inhabitedtype/ocaml-aws
describeCacheParameterGroups.mli
open Types type input = DescribeCacheParameterGroupsMessage.t type output = CacheParameterGroupsMessage.t type error = Errors_internal.t include Aws.Call with type input := input and type output := output and type error := error
null
https://raw.githubusercontent.com/inhabitedtype/ocaml-aws/b6d5554c5d201202b5de8d0b0253871f7b66dab6/libraries/elasticache/lib/describeCacheParameterGroups.mli
ocaml
open Types type input = DescribeCacheParameterGroupsMessage.t type output = CacheParameterGroupsMessage.t type error = Errors_internal.t include Aws.Call with type input := input and type output := output and type error := error
37cdab7e25084a5e3220cc50ed27cdfe00749d9d341c60b9ad73198c9dc99fa4
magthe/sandi
QuotedPrintableTest.hs
# LANGUAGE TemplateHaskell # Copyright : ( c ) , 2013 - 2015 License : BSD3 , found in the LICENSE file module Codec.Binary.QuotedPrintableTest where import Codec.TestUtils import qualified Codec.Binary.QuotedPrintable as QP import qualified Data.ByteString as BS import qualified Data.ByteString.Char8 as BSC i...
null
https://raw.githubusercontent.com/magthe/sandi/a8ef86ec3798a640d86342421a7fa7fa97bdedd4/sandi/test-src/Codec/Binary/QuotedPrintableTest.hs
haskell
# LANGUAGE TemplateHaskell # Copyright : ( c ) , 2013 - 2015 License : BSD3 , found in the LICENSE file module Codec.Binary.QuotedPrintableTest where import Codec.TestUtils import qualified Codec.Binary.QuotedPrintable as QP import qualified Data.ByteString as BS import qualified Data.ByteString.Char8 as BSC i...
93ed377d394bfd8d5cef0344a8c1311b05ad00278428550ea2d59d4354096c8d
massung/racket-raylib
info.rkt
#lang setup/infotab (define install-platform "x86_64-linux") (define copy-foreign-libs '("libraylib.4.0.0.so"))
null
https://raw.githubusercontent.com/massung/racket-raylib/6ea9505b54c764fd866dec3fcd7ec4af3ccd5f90/linux-amd64/info.rkt
racket
#lang setup/infotab (define install-platform "x86_64-linux") (define copy-foreign-libs '("libraylib.4.0.0.so"))
a0a31df862e9f272baaa0656f6ab9a01bcaeb2eb0811696633fbd0265a1c1276
logicmoo/logicmoo_nlu
cogbot-init.lisp
{ { { DOC ;;; -*- Mode: LISP; Package: CYC; Syntax: ANSI-Common-Lisp -*- ;;; Copyright ( c ) 2002 - 2010 . All rights reserved . ;;; @module COGBOT - INIT @features : COGBOT - NL ;;; @author dmiles ;;; @owner dmiles ;;; ;;; @created 2010/01/10 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;...
null
https://raw.githubusercontent.com/logicmoo/logicmoo_nlu/c066897f55b3ff45aa9155ebcf799fda9741bf74/ext/e2c/cogbotstuff/cogbot-init.lisp
lisp
-*- Mode: LISP; Package: CYC; Syntax: ANSI-Common-Lisp -*- @owner dmiles @created 2010/01/10 !!!!!!!!!!!!!!! IMPORTANT NOTES: External interface: Depends on interface: DMiles likes to watch this adds some printouts this adds some printouts makes it more like common lisp .. (but leaks functions)
{ { { DOC Copyright ( c ) 2002 - 2010 . All rights reserved . @module COGBOT - INIT @features : COGBOT - NL @author dmiles tools & utilities for Cogbot / NLParsing } } } EDOC (in-package "CYC") ( load " / cogbot - init.lisp " ) (define FORCE-PRINT (string) (print string) (force-output)) (force-print...