_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
25bfb207a8ee6ad209a7ebf076a61d696393207a55c0b5434d5cded9e4da791b
ActaFi/cardano-staking-smart-contract
Compound.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE NumericUnderscores #-} # LANGUAGE OverloadedStrings # {-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # | Module : T...
null
https://raw.githubusercontent.com/ActaFi/cardano-staking-smart-contract/1548ba69b6cc6f2706668aee103e36c8c0bac19e/test/Tests/OffChain/Compound.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE NumericUnderscores # # LANGUAGE ScopedTypeVariables # The initial amount of microtokens on the staking pool. The value to be deposited by the user into the staking pool. The expected rewards to be claimed. refDepositFees = 125_001...
# LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # | Module : Tests . OffChain . Compound Description : A test to check the behavior of the compound operation . Copyright : P2P Solutions Ltd. License : GPL...
dbe881c644d18b54014bc3e8d4876f1e7faac93c3ad2cdf3d51b72720d446a61
nikivazou/verified_string_matching
mapLenFusion.hs
#define IncludedmapLenFusion {-@ automatic-instances mapLenFusion @-} mapLenFusion :: RString -> RString -> RString -> RString -> List Integer -> Proof @ mapLenFusion : : tg : RString - > xi : RString - > yi : RString - > zi : RString - > zis : List ( GoodIndex zi tg ) - > { map ( shiftStringR...
null
https://raw.githubusercontent.com/nikivazou/verified_string_matching/abdd611a0758467f776c59c3d6c9e4705d36a3a0/src/AutoProofs/mapLenFusion.hs
haskell
@ automatic-instances mapLenFusion @
#define IncludedmapLenFusion mapLenFusion :: RString -> RString -> RString -> RString -> List Integer -> Proof @ mapLenFusion : : tg : RString - > xi : RString - > yi : RString - > zi : RString - > zis : List ( GoodIndex zi tg ) - > { map ( shiftStringRight tg xi ( yi < + > zi ) ) ( map ( shif...
bbf1ea49a45d198120167ef95b991b4ccec4f977725a086de2cb7c9a7a3bbaae
rwmjones/guestfs-tools
sysprep_operation_dhcp_client_state.ml
virt - sysprep * Copyright ( C ) 2012 Red Hat Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation ; either version 2 of the License , or * ( at your option ) any later ver...
null
https://raw.githubusercontent.com/rwmjones/guestfs-tools/3a498512f58bc431db490e96cdb712b19389bda4/sysprep/sysprep_operation_dhcp_client_state.ml
ocaml
virt - sysprep * Copyright ( C ) 2012 Red Hat Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation ; either version 2 of the License , or * ( at your option ) any later ver...
b79f0efbcf2b98cdcbf5f29659e91d0954f78d5c54e53d2b3c294f6b6484a9d6
josephwilk/musical-creativity
music.clj
(ns musical-creativity.composers.apprentice.music (:require [musical-creativity.composers.apprentice :refer :all] [musical-creativity.util :refer :all] [musical-creativity.composers.apprentice.bach :refer :all])) (defn remove-cadences "removes the cadences from the choices." [choices] (...
null
https://raw.githubusercontent.com/josephwilk/musical-creativity/c2e6aab2a26d69ee2e51f4fad84fa3a71805e6ca/src/musical_creativity/composers/apprentice/music.clj
clojure
(ns musical-creativity.composers.apprentice.music (:require [musical-creativity.composers.apprentice :refer :all] [musical-creativity.util :refer :all] [musical-creativity.composers.apprentice.bach :refer :all])) (defn remove-cadences "removes the cadences from the choices." [choices] (...
a245e3d1bbf4dcbd63b77975de03874627bd6f41968dbfa2a3bf759dd1c20444
Lelio-Brun/Obelisk
latexTabular.ml
include MiniLatex let print_header symbols = documentclass (usepackage "" "longtable" ^ usepackage "" "tabu" ^ "@;\ \\newenvironment{" ^ grammarname ^ "}{@;<0 2>\ \\begin{longtabu}{r%@{}c%@{}X%@{}}@;\ }{@;<0 2>\ \\end{longtabu}@;}@;@;" ^ newcommand "gramsp" 0 None "\\quad" ...
null
https://raw.githubusercontent.com/Lelio-Brun/Obelisk/ab8ab94f1974caca8a164768634fa171cfe47503/src/helpers/latexTabular.ml
ocaml
include MiniLatex let print_header symbols = documentclass (usepackage "" "longtable" ^ usepackage "" "tabu" ^ "@;\ \\newenvironment{" ^ grammarname ^ "}{@;<0 2>\ \\begin{longtabu}{r%@{}c%@{}X%@{}}@;\ }{@;<0 2>\ \\end{longtabu}@;}@;@;" ^ newcommand "gramsp" 0 None "\\quad" ...
8b361c6dda8fc7c70a789c1e3fb5a5459b4781cc314eac537661e65e689bb410
kraison/vivace-graph-v3
gc.lisp
(in-package :graph-db) ;;; Mapping graph nodes (defun map-all-nodes (fn graph) "Call FN for each node (vertex or edge) in GRAPH. " (map-vertices fn graph) (map-edges fn graph)) (defun map-node-addresses (fn graph) "Call FN with the heap address of each node in GRAPH." (map-all-nodes (lambda (node) ...
null
https://raw.githubusercontent.com/kraison/vivace-graph-v3/cf2caaf26baccec9afd4d6a79375cd9ff5fe0613/gc.lisp
lisp
Mapping graph nodes Mapping graph index lists Mapping graph view skip lists -- but view skip lists use their own heap, not GC'd for now. Putting it all together
(in-package :graph-db) (defun map-all-nodes (fn graph) "Call FN for each node (vertex or edge) in GRAPH. " (map-vertices fn graph) (map-edges fn graph)) (defun map-node-addresses (fn graph) "Call FN with the heap address of each node in GRAPH." (map-all-nodes (lambda (node) (let ((data-po...
cda58940e45cf7838819a5b0a7e372b610a477af9197d8231d9cb992989c9e95
TorXakis/TorXakis
RandTrueBins.hs
TorXakis - Model Based Testing Copyright ( c ) 2015 - 2017 TNO and Radboud University See LICENSE at root directory of this repository . TorXakis - Model Based Testing Copyright (c) 2015-2017 TNO and Radboud University See LICENSE at root directory of this repository. -} -- ------------------------------------...
null
https://raw.githubusercontent.com/TorXakis/TorXakis/038463824b3d358df6b6b3ff08732335b7dbdb53/sys/solve/src/RandTrueBins.hs
haskell
----------------------------------------------------------------------------------------- -- # LANGUAGE OverloadedStrings # ----------------------------------------------------------------------------------------- -- ----------------------------------------------------------------------------------------- -- expo...
TorXakis - Model Based Testing Copyright ( c ) 2015 - 2017 TNO and Radboud University See LICENSE at root directory of this repository . TorXakis - Model Based Testing Copyright (c) 2015-2017 TNO and Radboud University See LICENSE at root directory of this repository. -} module RandTrueBins Module RandTru...
1e25d81b52552fe4284e511f1b4977f97acdfd41af0052a5586ce0b6c1ff7b97
SecPriv/webspec
config.mli
(********************************************************************************) Copyright ( c ) 2021 (* *) (* Permission is hereby granted, free of charge, to any person obtaining a *) (* c...
null
https://raw.githubusercontent.com/SecPriv/webspec/9f500bd85400551d8bf0e117ac5aa57088f9bc20/compiler/src/config.mli
ocaml
****************************************************************************** Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), th...
Copyright ( c ) 2021 to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABI...
4ff84f59c35a97036e61d986ad17843e838ae4c2a9ffc2a65a9eeee2a37a2469
imitator-model-checker/imitator
ResultProcessor.mli
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * IMITATOR * * Laboratoire Spécification et Vérification ( ENS Cachan & CNRS , France ) * Université Paris 13 , LIPN , CNRS , France * Université de Lorraine ,...
null
https://raw.githubusercontent.com/imitator-model-checker/imitator/105408ae2bd8c3e3291f286e4d127defd492a58b/src/ResultProcessor.mli
ocaml
Add a property to custom details json struct * Convert a Result.good_or_bad_constraint into a string
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * IMITATOR * * Laboratoire Spécification et Vérification ( ENS Cachan & CNRS , France ) * Université Paris 13 , LIPN , CNRS , France * Université de Lorraine ,...
cc8e93ef0d98296c08ce4b03f72ac5f60d7c3090b946b96ac4779f80be0be111
svdm/ClojureGP
test_util.clj
Copyright ( c ) . All rights reserved . The use and distribution terms for this software are covered by the Eclipse ;; Public License 1.0 (-1.0.php) which ;; can be found in the file epl-v10.html at the root of this distribution. By ;; using this software in any fashion, you are agreeing to be bound by t...
null
https://raw.githubusercontent.com/svdm/ClojureGP/266e501411b37297bdeb082913df63ececa8515c/test/cljgp/test_util.clj
clojure
Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software. mock expression tree, for the util f...
Copyright ( c ) . All rights reserved . The use and distribution terms for this software are covered by the Eclipse (ns test.cljgp.test-util (:use clojure.test cljgp.util)) (def valid-tree '(+ 1 (* 3 4) (- 2 2))) (defn my-tpl [tree] (list `fn [] tree)) (deftest test-make-individual ...
554a077b19520b1ec161994d749ca41a6b67917e706bf9f56660ace43360dda0
ghc/nofib
Pair.hs
-- Los Alamos National Laboratory 1990 August -- module Pair (pair) where import GamtebType import Consts import Utils -- pair production after a collision pair :: Particle -> (Particle, Probability, Bool) pair (Part pos dir w e eIndx cell seed) = if (e' <= ergCut) then (Part pos dir w' ...
null
https://raw.githubusercontent.com/ghc/nofib/f34b90b5a6ce46284693119a06d1133908b11856/real/gamteb/Pair.hs
haskell
pair production after a collision sample a direction u,v,w isotropically isotropic emission lab system
Los Alamos National Laboratory 1990 August module Pair (pair) where import GamtebType import Consts import Utils pair :: Particle -> (Particle, Probability, Bool) pair (Part pos dir w e eIndx cell seed) = if (e' <= ergCut) then (Part pos dir w' e' eIndx' cell seed', prob', True) els...
d55c81722df3425d377182663ba05a8590c1ca0cebfe49831eca08367ba8e251
programaker-project/Programaker-Core
automate_rest_api_users_specific.erl
%%% @doc %%% REST endpoint to manage knowledge collections. %%% @end -module(automate_rest_api_users_specific). -export([init/2]). -export([allowed_methods/2]). -export([content_types_provided/2]). -export([to_json/2]). %% -include("include/records.hrl"). -include("./records.hrl"). -spec init(_,_) -> {'cowboy_rest'...
null
https://raw.githubusercontent.com/programaker-project/Programaker-Core/ef10fc6d2a228b2096b121170c421f5c29f9f270/backend/apps/automate_rest_api/src/automate_rest_api_users_specific.erl
erlang
@doc REST endpoint to manage knowledge collections. @end -include("include/records.hrl"). GET Knowledge collection item retrieval
-module(automate_rest_api_users_specific). -export([init/2]). -export([allowed_methods/2]). -export([content_types_provided/2]). -export([to_json/2]). -include("./records.hrl"). -spec init(_,_) -> {'cowboy_rest',_,_}. init(Req, Opts) -> {cowboy_rest, Req, Opts}. -spec allowed_methods(cowboy_req:req(),_) -> {[b...
d97bc68a4b1af981aa796d95c8c6ec306e9b1d01ece10871f22a4fa7db12a456
rpav/cl-interval
package.lisp
(defpackage :interval (:use #:cl) (:shadow cl:find cl:delete) (:export ;; Interval #:interval #:interval-start #:interval-end #:make-interval #:interval< #:interval= ;; Interval tree #:tree #:make-tree #:tree-beforep #:tree-equalp #:tree-value-before-p #:insert #:delete #:find #:find-all...
null
https://raw.githubusercontent.com/rpav/cl-interval/2ffd7990e23533f200dc6b1b3521c5ca808e9c23/package.lisp
lisp
Interval Interval tree
(defpackage :interval (:use #:cl) (:shadow cl:find cl:delete) (:export #:interval #:interval-start #:interval-end #:make-interval #:interval< #:interval= #:tree #:make-tree #:tree-beforep #:tree-equalp #:tree-value-before-p #:insert #:delete #:find #:find-all #:find-any #:tree-dump #:sdot-t...
7f16445dc955be1f3222e78e2bdf41c6e7b1f3d766844ab1ec4e2ee5d2f1cf8e
bhauman/figwheel-main
helper.cljc
(ns figwheel.main.helper (:require #?@(:cljs [[goog.dom :as gdom] [goog.dom.classlist :as classlist] [goog.net.XhrIo :as xhr] [goog.object :as gobj]] :clj [[clojure.java.io :as io] [figwheel.server.ring :refer [best-guess-script-path]]]) [clojure.string :as str...
null
https://raw.githubusercontent.com/bhauman/figwheel-main/ead06b94b1b2747ed37e5d8c37118d6e7ae77193/src/figwheel/main/helper.cljc
clojure
pre-fetch &lt;/script&gt;\n" clj conditional reader end
(ns figwheel.main.helper (:require #?@(:cljs [[goog.dom :as gdom] [goog.dom.classlist :as classlist] [goog.net.XhrIo :as xhr] [goog.object :as gobj]] :clj [[clojure.java.io :as io] [figwheel.server.ring :refer [best-guess-script-path]]]) [clojure.string :as str...
439e60de6ef3a9484f57c8275fc9e80ef204011665f22f029e672ca6f46472f7
eta-lang/eta-prelude
Ord.hs
| The ' ' class defines ordering A helper datatype exists to denote the ' Ordering ' > > > compare 1 2 LT > > > compare 2 1 GT > > > compare 2 2 EQ > > > 1 < 2 True > > > 1 > 2 False > > > 1 > = 2 False > > > 1 < = 2 True A helper datatype exists to denote the 'Ordering' >>> compare...
null
https://raw.githubusercontent.com/eta-lang/eta-prelude/e25e9aa42093e090a86d2728b0cac288a25bc52e/src/Eta/Classes/Ord.hs
haskell
| The ' ' class defines ordering A helper datatype exists to denote the ' Ordering ' > > > compare 1 2 LT > > > compare 2 1 GT > > > compare 2 2 EQ > > > 1 < 2 True > > > 1 > 2 False > > > 1 > = 2 False > > > 1 < = 2 True A helper datatype exists to denote the 'Ordering' >>> compare...
a1488c76adfa1637a21a77350a57497f9ed9db1b35bdc6c36c5fdf5bee930e99
erlio/vmq_server
vmq_hook_rewrite_SUITE.erl
-module(vmq_hook_rewrite_SUITE). -export([ %% suite/0, init_per_suite/1, end_per_suite/1, init_per_testcase/2, end_per_testcase/2, all/0 ]). -export([auth_on_publish_rewrite_payload_test/1 , auth_on_publish_rewrite_packet_test/1 , auth_on_...
null
https://raw.githubusercontent.com/erlio/vmq_server/d008c6dcc62fe985d08456caa4024750e1febf38/test/vmq_hook_rewrite_SUITE.erl
erlang
suite/0, =================================================================== common_test callbacks =================================================================== publish receive publish with rewritten payload publish receive publish with rewritten payload and rewritten topic subscribes for sub/rewrite/me ...
-module(vmq_hook_rewrite_SUITE). -export([ init_per_suite/1, end_per_suite/1, init_per_testcase/2, end_per_testcase/2, all/0 ]). -export([auth_on_publish_rewrite_payload_test/1 , auth_on_publish_rewrite_packet_test/1 , auth_on_subscribe_rewrite_tes...
b339f03d1d8557012c666d6b0f27a94411cca69dce0cbb8ce39c9f3aa9313a64
graphx-design/ocaml-serializers
thrift_benchmark.ml
open Core open Core_bench.Std exception Oops of string open Payloads_t open Thrift open Thrift_buffer_transport open Tpayloads_consts open Tpayloads_types let main () = let t_transport = new Thrift_buffer_transport.t () in let t_protocol = new TBinaryProtocol.t (t_transport :> Transport.t) in let thrift_payloa...
null
https://raw.githubusercontent.com/graphx-design/ocaml-serializers/6cd42694ebf8e2c4eca6c9de5fbe9d838a324c41/src/thrift_benchmark.ml
ocaml
open Core open Core_bench.Std exception Oops of string open Payloads_t open Thrift open Thrift_buffer_transport open Tpayloads_consts open Tpayloads_types let main () = let t_transport = new Thrift_buffer_transport.t () in let t_protocol = new TBinaryProtocol.t (t_transport :> Transport.t) in let thrift_payloa...
ea000c90caa8af85ae89437fd21d20b9a5f49963f24a61ea237ee39de52abeef
RefactoringTools/HaRe
WildCard.expected.hs
# LANGUAGE PartialTypeSignatures # module Renaming.WildCard where -- | This will be read from a configuration, eventually taggedPlugins2 :: Plugin _ taggedPlugins2 = undefined data Plugin a = Plugin a
null
https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/test/testdata/Renaming/WildCard.expected.hs
haskell
| This will be read from a configuration, eventually
# LANGUAGE PartialTypeSignatures # module Renaming.WildCard where taggedPlugins2 :: Plugin _ taggedPlugins2 = undefined data Plugin a = Plugin a
31d8e138b27c8baf6a033707f10c14bbdf4ecc72835feed3c3cab4bcf394ba27
magicant/flesh
Position.hs
Copyright ( C ) 2017 WATANABE > This program is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . This program is distribut...
null
https://raw.githubusercontent.com/magicant/flesh/0e76312d291aae8f890ba55d8131ade78600d7e8/src/Flesh/Source/Position.hs
haskell
# LANGUAGE Safe # | Function definition. | Situation in which a code fragment is executed/evaluated. | Standard input. | Script file. | Path to the script file (for informative purposes only). | Position of the dot built-in that sourced this file. (Nothing if not sourced by the dot built-in.) | Command string e...
Copyright ( C ) 2017 WATANABE > This program is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . This program is distribut...
32d5b5fe0f31f264d307469f87d0fa5aea547d2d51148d811835bb4acf23845a
LennMars/algorithms_in_OCaml
main.ml
open Unix open Util (** Get resolution of unix timer. *) let get_tick n = let rec get_tick_aux i accum = if i <= 0 then let tick = List.to_chain accum |> List.map (fun (a, b) -> a -. b) |> List.filter ((<) 0.) |> List.find_min identity and overhead = (List.find_max identity accum -. List.find_min i...
null
https://raw.githubusercontent.com/LennMars/algorithms_in_OCaml/f7fb8ca9f497883d86be3167bfc98a4a28ac73c9/timer_test/main.ml
ocaml
* Get resolution of unix timer.
open Unix open Util let get_tick n = let rec get_tick_aux i accum = if i <= 0 then let tick = List.to_chain accum |> List.map (fun (a, b) -> a -. b) |> List.filter ((<) 0.) |> List.find_min identity and overhead = (List.find_max identity accum -. List.find_min identity accum) /. float n in ...
2b6145126c67ee107763cf3cf2779a8c6c438a5a1d81f655ef8e8f7d03ce9fef
ocaml/odoc
paths_types.ml
open Names (** {1 Paths} *) type 'a id = { iv : 'a; ihash : int; ikey : string } (** @canonical Odoc_model.Paths.Identifier.id *) module Identifier = struct type container_page_pv = [ `Page of container_page option * PageName.t ] (** @canonical Odoc_model.Paths.Identifier.ContainerPage.t_pv *) and container_pa...
null
https://raw.githubusercontent.com/ocaml/odoc/c3f025d2e67d2a6f236bad5b0db7891ad0a7973f/src/model/paths_types.ml
ocaml
* {1 Paths} * @canonical Odoc_model.Paths.Identifier.id * @canonical Odoc_model.Paths.Identifier.ContainerPage.t_pv * @canonical Odoc_model.Paths.Identifier.ContainerPage.t * @canonical Odoc_model.Paths.Identifier.Page.t_pv * @canonical Odoc_model.Paths.Identifier.Page.t * @canonical Odoc_model.Paths.Identifier.O...
open Names type 'a id = { iv : 'a; ihash : int; ikey : string } module Identifier = struct type container_page_pv = [ `Page of container_page option * PageName.t ] and container_page = container_page_pv id type page_pv = [ container_page_pv | `LeafPage of container_page option * PageName.t ] and page =...
4790cfbf2ded6bfc6a1489fdfed7382ac96c1516592a663c94e69661f3da3df9
city41/reagent-breakout
title.cljs
(ns breakout.engine.title (:require-macros [cljs.core.async.macros :refer [go]]) (:require [cljs.core.async :refer [<! close!]] [breakout.engine.input :as input])) (def ^:private running (atom false)) (defn- listen-to-input-clicks [next-scene!] (go (while @running (<! input/clicks) ...
null
https://raw.githubusercontent.com/city41/reagent-breakout/84907d0cbc2d3cae917e30f955bc8e42fcb2d505/src/cljs/breakout/engine/title.cljs
clojure
(ns breakout.engine.title (:require-macros [cljs.core.async.macros :refer [go]]) (:require [cljs.core.async :refer [<! close!]] [breakout.engine.input :as input])) (def ^:private running (atom false)) (defn- listen-to-input-clicks [next-scene!] (go (while @running (<! input/clicks) ...
a36c09d4b86117d94a5e9014269a192e5602c63eaa885fdff75581d31e0631c9
greghendershott/vestige
infer-name.rkt
#lang racket/base (require (only-in racket/path file-name-from-path)) (provide syntax-local-infer-name) ;; syntax-local-infer-name is great, except when it can't find a name and synthesizes one from the srcloc , it truncates the pathname to 20 chars , prefixed by " / ... " if longer . I find this kind of ugly ;;...
null
https://raw.githubusercontent.com/greghendershott/vestige/ee7f0b35ba5e5d1a3e5ec90976c658bce24d0ba4/vestige-lib/vestige/private/tracing/infer-name.rkt
racket
syntax-local-infer-name is great, except when it can't find a name and distracting. Below is our adaptation with different truncation behavior: When the source is a path, we simply use the filename:line:col. (Although normally I hate discarding full pathnames, we're using this to generate a name where we alread...
#lang racket/base (require (only-in racket/path file-name-from-path)) (provide syntax-local-infer-name) and synthesizes one from the srcloc , it truncates the pathname to 20 chars , prefixed by " / ... " if longer . I find this kind of ugly (define (syntax-local-infer-name stx) (let ([prop (simplify-inferred-...
f20072a14d6d11267a20c96379d10d57650a9ed8bd1add292d6d8708bf1fe094
zwizwa/staapl
snarf.rkt
#lang racket/base Pprimitive snarfing . These macros are syntax only : they do not ;; depend on name space representation. (require "stack.rkt" "rep.rkt") (require (for-syntax racket/base "../tools/stx.rkt")) (provide as-push as-void ;; wrap scheme function -> rpn primitive ) ;; SNARFING ;; To s...
null
https://raw.githubusercontent.com/zwizwa/staapl/e30e6ae6ac45de7141b97ad3cebf9b5a51bcda52/scat/snarf.rkt
racket
depend on name space representation. wrap scheme function -> rpn primitive SNARFING To steal behaviour from scheme, we need to know the number of arguments and the way the arguments are re-arrange, and what to do with the return value(s). Usually, just reversing the argument list is enough: this preserves the a...
#lang racket/base Pprimitive snarfing . These macros are syntax only : they do not (require "stack.rkt" "rep.rkt") (require (for-syntax racket/base "../tools/stx.rkt")) (provide ) (define-syntax scheme->cat/perm (syntax-rules () ((_ combine fn (dsta ...) (srca ...)) (make-word (stac...
d645c3c0f6f460c3e9c21f8fb7ec6cf94d615f531caf67f598152973a2c689cb
tenpureto/tenpureto
Yaml.hs
module Tenpureto.Yaml ( fromByteString , toByteString , prettyPrintYamlParseException ) where import Control.Exception ( try ) import Data.ByteString ( ByteString ) import Data.Conduit ( (.|) ...
null
https://raw.githubusercontent.com/tenpureto/tenpureto/886df860200e1a6f44ce07c24a5e7597009f71ef/src/Tenpureto/Yaml.hs
haskell
module Tenpureto.Yaml ( fromByteString , toByteString , prettyPrintYamlParseException ) where import Control.Exception ( try ) import Data.ByteString ( ByteString ) import Data.Conduit ( (.|) ...
2dc825ddf37f6864bad180512a499f47ca13c7c7d63d2bd8a574b207e14c3e42
kelamg/HtDP2e-workthrough
ex497.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex497) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-...
null
https://raw.githubusercontent.com/kelamg/HtDP2e-workthrough/ec05818d8b667a3c119bea8d1d22e31e72e0a958/HtDP/Accumulators/ex497.rkt
racket
about the language level of this file in a form that our tools can easily process.
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex497) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (require racket/base) (define (!.v1 n) (cond [(...
8cdc155f4ccd48b87ba0fe5e32aed916a96f423a6eb9d6738b9b539d0d63d561
astrada/ocaml-extjs
ext_form_Panel.mli
* FormPanel provides a standard container for forms . ... { % < p > FormPanel provides a standard container for forms . It is essentially a standard < a href="#!/api / Ext.panel . Panel " rel="Ext.panel . Panel " class="docClass">Ext.panel . Panel</a > which automatically creates a < a href="#!/api / Ext.form ...
null
https://raw.githubusercontent.com/astrada/ocaml-extjs/77df630a75fb84667ee953f218c9ce375b3e7484/lib/ext_form_Panel.mli
ocaml
* {% <p>Provides access to the <a href="#!/api/Ext.form.Basic" rel="Ext.form.Basic" class="docClass">Form</a> which this Panel contains.</p> %} {b Returns}: {ul {- [Ext_form_Basic.t Js.t] {% <p>The <a href="#!/api/Ext.form.Basic" rel="Ext.form.Basic" class="docClass">Form</a> which this Panel contains....
* FormPanel provides a standard container for forms . ... { % < p > FormPanel provides a standard container for forms . It is essentially a standard < a href="#!/api / Ext.panel . Panel " rel="Ext.panel . Panel " class="docClass">Ext.panel . Panel</a > which automatically creates a < a href="#!/api / Ext.form ...
78a4530e21e1408ce186d717d5713f4165e972b0acdf9f83c4088531e46edb9c
gfngfn/SATySFi
loadHyph.mli
open MyUtil open CharBasis exception InvalidPatternElement of Range.t type t type answer = | Single of uchar_segment list | Fractions of (uchar_segment list) list val empty : t val main : abs_path -> t val lookup : int -> int -> t -> uchar_segment list -> answer
null
https://raw.githubusercontent.com/gfngfn/SATySFi/9dbd61df0ab05943b3394830c371e927df45251a/src/backend/loadHyph.mli
ocaml
open MyUtil open CharBasis exception InvalidPatternElement of Range.t type t type answer = | Single of uchar_segment list | Fractions of (uchar_segment list) list val empty : t val main : abs_path -> t val lookup : int -> int -> t -> uchar_segment list -> answer
d6c3f9ca2bf811a7a995f32dbab5cf700c40971bd3b9fe808535fea4f92fae3f
otto-de-legacy/oscillator
project.clj
(defproject de.otto/oscillator "0.2.27" :description "A Clojure library that lets you create dashboards with interactive charts to monitor applications in multiple environments." :url "-de/oscillator" :license {:name "Apache License 2.0" ...
null
https://raw.githubusercontent.com/otto-de-legacy/oscillator/c1ddf409a70cb91329f0039b95c7bc12289922e2/project.clj
clojure
(defproject de.otto/oscillator "0.2.27" :description "A Clojure library that lets you create dashboards with interactive charts to monitor applications in multiple environments." :url "-de/oscillator" :license {:name "Apache License 2.0" ...
5fd68128f78eb818401c773a22b7565103c823f7e78962ebbfa1da003d2b27ce
wdebeaum/DeepSemLex
spit.lisp
;;;; ;;;; W::spit ;;;; (define-words :pos W::V :words ( (W::spit (wordfeats (W::morph (:forms (-vb) :past W::spat :ing W::spitting))) (SENSES ((meta-data :origin "verbnet-1.5" :entry-date 20051219 :change-date nil :comments nil :vn ("breathe-40.1.2") :wn ("spit%2:29:00")) (LF-PARENT ONT::expectorate...
null
https://raw.githubusercontent.com/wdebeaum/DeepSemLex/ce0e7523dd2b1ebd42b9e88ffbcfdb0fd339aaee/trips/src/LexiconManager/Data/new/spit.lisp
lisp
W::spit
(define-words :pos W::V :words ( (W::spit (wordfeats (W::morph (:forms (-vb) :past W::spat :ing W::spitting))) (SENSES ((meta-data :origin "verbnet-1.5" :entry-date 20051219 :change-date nil :comments nil :vn ("breathe-40.1.2") :wn ("spit%2:29:00")) (LF-PARENT ONT::expectorate) (TEMPL agent-AFF...
3ec00e87d284e7fd608c950d75f6b1ee943d32eeb5a2fd7a40c973134260eb8b
avsm/mirage-duniverse
tar.ml
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * Copyright ( C ) 2012 < > * * 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 copie...
null
https://raw.githubusercontent.com/avsm/mirage-duniverse/983e115ff5a9fb37e3176c373e227e9379f0d777/ocaml_modules/tar/lib/tar.ml
ocaml
* Process and create tar file headers * Map of field name -> (start offset, length) taken from wikipedia: * For debugging: pretty-print a string as hex * Unmarshal an integer field (stored as 0-padded octal) * Unmarshal a string doesn't matter, all are strings Strictly speaking, v7 supports Normal (as \0...
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * Copyright ( C ) 2012 < > * * 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 copie...
9cb4c3fdbd0a6f6091d3a6a051a0416705d2ad52625626574584096427a01034
whamtet/dogfort
routes.cljs
; From (ns dogfort.middleware.routes (:use-macros [dogfort.middleware.routes-macros :only [compile-route ANY]] [redlobster.macros :only [promise]]) (:use [cljs.node :only [log]]) (:require [redlobster.promise :as p] [dogfort.util.response :as response] [dogfort.util.codec ...
null
https://raw.githubusercontent.com/whamtet/dogfort/75c2908355cc18bf350a5b761d2906e013ee9f94/src/dogfort/middleware/routes.cljs
clojure
From
(ns dogfort.middleware.routes (:use-macros [dogfort.middleware.routes-macros :only [compile-route ANY]] [redlobster.macros :only [promise]]) (:use [cljs.node :only [log]]) (:require [redlobster.promise :as p] [dogfort.util.response :as response] [dogfort.util.codec :as code...
8aeac373d1401b9904089e4ff97a92f92e367288ef48f250136b2dd3e583a668
ariesteam/aries
analyzer.clj
Copyright 2009 ;;; This file is part of CLJ - SPAN . ;;; CLJ - SPAN is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , ;;; or (at your option) any later version. ;;; ...
null
https://raw.githubusercontent.com/ariesteam/aries/b3fafd4640f4e7950fff3791bc4ea4c06ee4dcdf/plugins/org.integratedmodelling.aries.core/bindings/clojure/span/analyzer.clj
clojure
or (at your option) any later version. WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. FIXME overload these for probabilities and doubles
Copyright 2009 This file is part of CLJ - SPAN . CLJ - SPAN is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , CLJ - SPAN is distributed in the hope that it will be u...
d8dc95f60496fb97328cd1c63a8989faf9130fa5254a6d1850d32a657d37c7e6
racket/web-server
coercion.rkt
#lang racket/base (require racket/contract racket/match (for-syntax racket/base)) (define (make-coerce-safe? coerce) (lambda (x) (with-handlers ([exn:fail? (lambda (x) #f)]) (and (coerce x) #t)))) (define-syntax (define-coercion-match-expander stx) (syntax-case stx () [(_ expander-...
null
https://raw.githubusercontent.com/racket/web-server/f718800b5b3f407f7935adf85dfa663c4bba1651/web-server-lib/web-server/dispatch/coercion.rkt
racket
#lang racket/base (require racket/contract racket/match (for-syntax racket/base)) (define (make-coerce-safe? coerce) (lambda (x) (with-handlers ([exn:fail? (lambda (x) #f)]) (and (coerce x) #t)))) (define-syntax (define-coercion-match-expander stx) (syntax-case stx () [(_ expander-...
ee9676f9af524d7f32b49ed36e6de0c0cbc948bee7912d55253d1a9634a44f10
BitGameEN/bitgamex
rest_forbidden_resource.erl
-module(rest_forbidden_resource). -export([init/2]). -export([allowed_methods/2]). -export([forbidden/2]). -export([content_types_provided/2]). -export([content_types_accepted/2]). -export([to_text/2]). -export([from_text/2]). init(Req, [Forbidden]) -> {cowboy_rest, Req, Forbidden}. allowed_methods(Req, State) -> ...
null
https://raw.githubusercontent.com/BitGameEN/bitgamex/151ba70a481615379f9648581a5d459b503abe19/src/deps/cowboy/test/old_http_SUITE_data/rest_forbidden_resource.erl
erlang
-module(rest_forbidden_resource). -export([init/2]). -export([allowed_methods/2]). -export([forbidden/2]). -export([content_types_provided/2]). -export([content_types_accepted/2]). -export([to_text/2]). -export([from_text/2]). init(Req, [Forbidden]) -> {cowboy_rest, Req, Forbidden}. allowed_methods(Req, State) -> ...
db27ffb772e6d1904f1c2078c2b93dff5eda891b9d349849bbeab4151c16b4c6
mbutterick/beautiful-racket
misc.rkt
#lang br (require "struct.rkt" "expr.rkt") (provide b-rem b-print b-let b-input b-import b-export b-repl) (define (b-rem val) (void)) (define (b-print . vals) (displayln (string-append* (map ~a vals)))) (define-macro (b-let ID VAL) #'(set! ID VAL)) (define-macro (b-input ID) #'(b-let ID (let* ([str (read-line)]...
null
https://raw.githubusercontent.com/mbutterick/beautiful-racket/f0e2cb5b325733b3f9cbd554cc7d2bb236af9ee9/beautiful-racket-demo/basic-demo-3/misc.rkt
racket
#lang br (require "struct.rkt" "expr.rkt") (provide b-rem b-print b-let b-input b-import b-export b-repl) (define (b-rem val) (void)) (define (b-print . vals) (displayln (string-append* (map ~a vals)))) (define-macro (b-let ID VAL) #'(set! ID VAL)) (define-macro (b-input ID) #'(b-let ID (let* ([str (read-line)]...
a43c8ec2a38f6eb8520be6c25a0581cfd7a03ad27021b39e0cc494b6950e506c
esl/MongooseIM
mongoose_hooks.erl
%%% @doc Hooks wrapper providing clear specifications for a hook caller. %%% %%% Every hook has its own function in this module with specs as accurate as %%% possible. This helps to have a static analysis of the hooks callers to %%% make sure they pass the expected arguments. -module(mongoose_hooks). -include("mod_pri...
null
https://raw.githubusercontent.com/esl/MongooseIM/d816175b00779b251c26a23564b151cd02aeb9ef/src/hooks/mongoose_hooks.erl
erlang
@doc Hooks wrapper providing clear specifications for a hook caller. Every hook has its own function in this module with specs as accurate as possible. This helps to have a static analysis of the hooks callers to make sure they pass the expected arguments. Not mongoose_acc:t(). @doc The `anonymous_purge_hook' ho...
-module(mongoose_hooks). -include("mod_privacy.hrl"). -include("mongoose.hrl"). -export([adhoc_local_commands/4, adhoc_sm_commands/4, anonymous_purge_hook/3, auth_failed/3, does_user_exist/3, failed_to_store_message/1, filter_local_packet/1, filter_packet...
9f04bb218be86a2e594412582c6584c85412e180ce185f187c3fb041ce24903e
agda/agda
Lens.hs
-- | A cut-down implementation of lenses, with names taken from lens package . module Agda.Utils.Lens ( module Agda.Utils.Lens reexported from Agda . Utils . Functor ) where import Control.Applicative ( Const(Const), getConst ) import Control.Monad.State import Control.Monad.Reader import Control.Monad.W...
null
https://raw.githubusercontent.com/agda/agda/f50c14d3a4e92ed695783e26dbe11ad1ad7b73f7/src/full/Agda/Utils/Lens.hs
haskell
| A cut-down implementation of lenses, with names taken from * Type-preserving lenses. * Some simple lenses. * Elementary lens operations. * State accessors and modifiers using 'StateT'. | Focus on a part of the state for a stateful computation. * State accessors and modifiers using 'MonadState'. | Read a part ...
lens package . module Agda.Utils.Lens ( module Agda.Utils.Lens reexported from Agda . Utils . Functor ) where import Control.Applicative ( Const(Const), getConst ) import Control.Monad.State import Control.Monad.Reader import Control.Monad.Writer import Data.Map (Map) import qualified Data.Map as Map i...
4749f0795868aaec2fe7d2eb99788cbe2b651cf1a1c8c2b37f2e07a2b7d93799
casperschipper/ocaml-cisp
cisp2.ml
open Cisp open Midi open Seq (* this maps midi input msg to an output msg (raw midi) *) let midiInputTestFun input = (* this translates input into boolean trigger *) let inputTrigger = map (fun midiMsg -> match midiMsg with NoteOn (_, _, _) -> true | _ -> false) input in (* a metre bool...
null
https://raw.githubusercontent.com/casperschipper/ocaml-cisp/954e4b71dca0d0af0786395d727b7a7cde5568a7/examples/cisp_backup/spaceWalk/cisp2.ml
ocaml
this maps midi input msg to an output msg (raw midi) this translates input into boolean trigger a metre boolean mask that triggers notes or rests in the pattern dummy event apply metre to default event, use Silence as filler the sq state var Slightly troublesome, this looks like a pure function (a -> b) bu...
open Cisp open Midi open Seq let midiInputTestFun input = let inputTrigger = map (fun midiMsg -> match midiMsg with NoteOn (_, _, _) -> true | _ -> false) input in let metre = ch [|2; 3|] |> map (fun n () -> Cons (false, repeat n true)) |> concat in let pitchPattern = boundedW...
9b40221f300840e17ffc5052120d2f87dd161bd725d5f6d6b358917adf5f56a9
finnishtransportagency/harja
tarkastus.cljc
(ns harja.domain.laadunseuranta.tarkastus (:require [clojure.spec.alpha :as s] [clojure.string :as str] [harja.domain.hoitoluokat :as hoitoluokat] [clojure.set :as set] #?@(:clj [ [harja.kyselyt.specql-db :refer [define-tables]] ] :cljs [[specql.impl.registry]]) [harja.domain....
null
https://raw.githubusercontent.com/finnishtransportagency/harja/3be16da762d8228a2b2c9a3d4c7120c2b891d47e/src/cljc/harja/domain/laadunseuranta/tarkastus.cljc
clojure
aiheutti paljon ClassCastExceptioneita HAR-9415
(ns harja.domain.laadunseuranta.tarkastus (:require [clojure.spec.alpha :as s] [clojure.string :as str] [harja.domain.hoitoluokat :as hoitoluokat] [clojure.set :as set] #?@(:clj [ [harja.kyselyt.specql-db :refer [define-tables]] ] :cljs [[specql.impl.registry]]) [harja.domain....
765a8602ad7f5bd394b81606ada3be5df72e7b4822faf73e2d7ca7dc794de988
witch-house/pronoun.is
web.clj
pronoun.is - a website for pronoun usage examples Copyright ( C ) 2014 - 2018 Morgan Astra ;; 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 , either version 3 of the ;; License, or (a...
null
https://raw.githubusercontent.com/witch-house/pronoun.is/082bbc6e4a3cf3a647c35ad61d07ba5c998f42e5/src/pronouns/web.clj
clojure
This program is free software: you can redistribute it and/or modify License, or (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 Affe...
pronoun.is - a website for pronoun usage examples Copyright ( C ) 2014 - 2018 Morgan Astra it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the You should have received a copy of the GNU Affero General Public License (ns pronoun...
3f77fb45c902481c3af9d8e070017290651aaee9b7fc9c436c6cbc2ce9ef8435
eeng/shevek
auth_test.clj
(ns shevek.acceptance.auth-test (:require [clojure.test :refer [deftest use-fixtures is]] [shevek.acceptance.test-helper :refer [wrap-acceptance-tests it login login-admin click click-text visit fill has-css? has-title? has-text? has-no-text? click-tid]] [etaoin.keys :as k] [shevek...
null
https://raw.githubusercontent.com/eeng/shevek/7783b8037303b8dd5f320f35edee3bfbb2b41c02/test/clj/shevek/acceptance/auth_test.clj
clojure
(ns shevek.acceptance.auth-test (:require [clojure.test :refer [deftest use-fixtures is]] [shevek.acceptance.test-helper :refer [wrap-acceptance-tests it login login-admin click click-text visit fill has-css? has-title? has-text? has-no-text? click-tid]] [etaoin.keys :as k] [shevek...
b46ccc34d89aa50e1383230d6d85b8163abac515e1cf0b8a0dae6d4296ca41a0
brendanhay/amazonka
ChoiceAnswer.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # {-# LANGUAGE StrictData #-} # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - unused - matches # Derived fr...
null
https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-wellarchitected/gen/Amazonka/WellArchitected/Types/ChoiceAnswer.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Module : Amazonka.WellArchitected.Types.ChoiceAnswer Stability : auto-generated | A choice that has been answered on a question in your workload. /See:/ 'newChoiceAnswer' smart constructor. | The notes associated with a choice. | The reason why a c...
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - unused - matches # Derived from AWS service descriptions , licensed under Apache 2.0 . Co...
bcc916ac4e8b2aff3e5f6dbf3eb19320db2daa684e9e7a40e0d5129ab4db7262
tfausak/rattletrap
MissingObjectName.hs
module Rattletrap.Exception.MissingObjectName where import qualified Control.Exception as Exception import qualified Data.Word as Word newtype MissingObjectName = MissingObjectName Word.Word32 deriving (Eq, Show) instance Exception.Exception MissingObjectName
null
https://raw.githubusercontent.com/tfausak/rattletrap/4d6e3cc0aa0f45beaf189255943f0d824c80a7df/src/lib/Rattletrap/Exception/MissingObjectName.hs
haskell
module Rattletrap.Exception.MissingObjectName where import qualified Control.Exception as Exception import qualified Data.Word as Word newtype MissingObjectName = MissingObjectName Word.Word32 deriving (Eq, Show) instance Exception.Exception MissingObjectName
157fb2a895f4e5b3f977cb4d5475cfb6396178c83d4e415c2b98036a8433042b
Gadjib/ocamlhomeworks
p3.ml
type tree = Braces of tree | Star;; let n_spaces n = let s = ref "" in begin for i = 1 to n do s:=!s^" " done; !s; end ;; let rec main t n = match t with |Star -> "*" |Braces t1 -> "(\n"^(n_spaces (3*n))^(main t1 (n+1))^(n_spaces (3*n))^")\n" ;; print_string (main (Braces (Braces Sta...
null
https://raw.githubusercontent.com/Gadjib/ocamlhomeworks/d5568d4830d4306ea56749f17af355bc35001eff/8%20%D0%BA%D0%BB%D0%B0%D1%81%D1%81/2019.04.05/p3.ml
ocaml
type tree = Braces of tree | Star;; let n_spaces n = let s = ref "" in begin for i = 1 to n do s:=!s^" " done; !s; end ;; let rec main t n = match t with |Star -> "*" |Braces t1 -> "(\n"^(n_spaces (3*n))^(main t1 (n+1))^(n_spaces (3*n))^")\n" ;; print_string (main (Braces (Braces Sta...
7a9041a0b35213e465b8b99616945eee580c42def874623e5d5bf4708da9f0ce
thizanne/cormoran
sym.mli
open Batteries type t val namespace : unit -> string -> t val name : t -> string val print : 'a IO.output -> t -> unit module Ord : sig val compare : t -> t -> int end module Map : Map.S with type key = t module Set : Set.S with type elt = t
null
https://raw.githubusercontent.com/thizanne/cormoran/46d13330ebd1c8224a0603fd473d8e6bed48bf53/src/sym.mli
ocaml
open Batteries type t val namespace : unit -> string -> t val name : t -> string val print : 'a IO.output -> t -> unit module Ord : sig val compare : t -> t -> int end module Map : Map.S with type key = t module Set : Set.S with type elt = t
a6b22cfb79665dcec0951464c8095069f2d387c55fc6e085a79d7cb418307f51
jordwalke/rehp
mutationObserver.mli
Js_of_ocaml library * / * Copyright ( C ) 2015 * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking exception ; * either version 2.1 of the License , ...
null
https://raw.githubusercontent.com/jordwalke/rehp/f122b94f0a3f06410ddba59e3c9c603b33aadabf/lib/js_of_ocaml/mutationObserver.mli
ocaml
* Helper to create a new observer and connect it to a node
Js_of_ocaml library * / * Copyright ( C ) 2015 * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking exception ; * either version 2.1 of the License , ...
878e0062527f4269dcdb1a77b6152b685d256423abda383c5cb0f37b330e783d
joodie/flutter
test_input_fields.clj
(ns flutter.html4.test-input-fields (:use flutter.core flutter.html4.input-fields clojure.test)) (deftest basic (let [field (-> field wrap-basic-input-fields)] (is (= (field :input {:type :text} :my-name nil :my-value) [:input {:type :text :name :my-name :value :my-...
null
https://raw.githubusercontent.com/joodie/flutter/336e40386ff4e79ce9243ec8690e2a62c41f80a3/test/flutter/html4/test_input_fields.clj
clojure
(ns flutter.html4.test-input-fields (:use flutter.core flutter.html4.input-fields clojure.test)) (deftest basic (let [field (-> field wrap-basic-input-fields)] (is (= (field :input {:type :text} :my-name nil :my-value) [:input {:type :text :name :my-name :value :my-...
0db1230741e641feb3226012634f3e5cd047688aae11f4bf7e0ebe1de474bd37
alanz/ghc-exactprint
T10361b.hs
# LANGUAGE DefaultSignatures # {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # module T10361b where import GHC.Generics ---------------------------------------------------------------------...
null
https://raw.githubusercontent.com/alanz/ghc-exactprint/b6b75027811fa4c336b34122a7a7b1a8df462563/tests/examples/ghc80/T10361b.hs
haskell
# LANGUAGE DeriveAnyClass # ------------------------------------------------------------------- ------------------------------------------------------------------- -------------------------------------------------------------------
# LANGUAGE DefaultSignatures # # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # module T10361b where import GHC.Generics class Convert a where type Result a type instance Result a = GResult (Rep a) convert :: ...
3b6b28904668542ff136e8ff34db7b5818d9fc8bb1b00209a01989b2b568228b
obsidiansystems/rhyolite
Orphans.hs
# LANGUAGE TemplateHaskell # # LANGUAGE StandaloneDeriving # # OPTIONS_GHC -Wno - orphans # module Rhyolite.Email.Orphans where import ByteString.Aeson.Orphans () import Data.Aeson import Data.Aeson.TH import qualified Network.Mail.Mime as Mail deriveJSON defaultOptions ''Mail.Address deriveJSON defaultOptions ''Mai...
null
https://raw.githubusercontent.com/obsidiansystems/rhyolite/0a8e69804f5b4f3079a938b797408c1a16c541bd/email/src/Rhyolite/Email/Orphans.hs
haskell
# LANGUAGE TemplateHaskell # # LANGUAGE StandaloneDeriving # # OPTIONS_GHC -Wno - orphans # module Rhyolite.Email.Orphans where import ByteString.Aeson.Orphans () import Data.Aeson import Data.Aeson.TH import qualified Network.Mail.Mime as Mail deriveJSON defaultOptions ''Mail.Address deriveJSON defaultOptions ''Mai...
9a5116de704f791c623cf5c10783e85a0ed07348717c640230c6d1a2b5a9e875
thi-ng/demos
csv.clj
(ns day3.csv (:require [clojure.java.io :as io] [clojure.data.csv :as csv] [clojure.string :as str] [thi.ng.strf.core :as f] [thi.ng.geom.core :as g] [thi.ng.geom.core.vector :refer [vec2]] [thi.ng.geom.viz.core :as viz] [thi.ng.geom.svg.core :as svg] )) (defn sanitize "Takes a ...
null
https://raw.githubusercontent.com/thi-ng/demos/048cd131099a7db29be56b965c053908acad4166/ws-bln-1/day3/src/day3/csv.clj
clojure
add col # to each value only keep indexed columns remove all cols w/ empty vals turn into hash-map
(ns day3.csv (:require [clojure.java.io :as io] [clojure.data.csv :as csv] [clojure.string :as str] [thi.ng.strf.core :as f] [thi.ng.geom.core :as g] [thi.ng.geom.core.vector :refer [vec2]] [thi.ng.geom.viz.core :as viz] [thi.ng.geom.svg.core :as svg] )) (defn sanitize "Takes a ...
4a0b6d3533f907c7a57ce83a56e8e7f40fbb6954fa37cac57b0fd086c024536b
haskell-opengl/OpenGL
FramebufferObjects.hs
----------------------------------------------------------------------------- -- | -- Module : Graphics.Rendering.OpenGL.GL.FramebufferObjects.FramebufferObjects Copyright : ( c ) 2011 - 2019 , 2011 - 2016 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : po...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGL/f7af8fe04b0f19c260a85c9ebcad612737cd7c8c/src/Graphics/Rendering/OpenGL/GL/FramebufferObjects/FramebufferObjects.hs
haskell
--------------------------------------------------------------------------- | Module : Graphics.Rendering.OpenGL.GL.FramebufferObjects.FramebufferObjects License : BSD3 Stability : stable Portability : portable --------------------------------------------------------------------------- -----------...
Copyright : ( c ) 2011 - 2019 , 2011 - 2016 Maintainer : < > module Graphics.Rendering.OpenGL.GL.FramebufferObjects.FramebufferObjects ( FramebufferObject, defaultFramebufferObject, FramebufferTarget(..), bindFramebuffer, FramebufferStatus(..), framebufferStatus, ) where import Data.State...
39a7bc7fee5d71705252777a3d7129bf702ec24fd5c8d4e299d67b36137b565a
merijn/Belewitte
V0.hs
# LANGUAGE DataKinds # # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE QuasiQuotes # # LANGUAGE StandaloneDeriving # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableIn...
null
https://raw.githubusercontent.com/merijn/Belewitte/cab6010a2bc54acfc4f4b169c95799fe455799ef/benchmark-analysis/src/Schema/Platform/V0.hs
haskell
# LANGUAGE GADTs #
# LANGUAGE DataKinds # # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE QuasiQuotes # # LANGUAGE StandaloneDeriving # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # module Schema...
2a6af32e111c88049d79759fca7011fa6aa7d1b7d6f4edd928ca8733740d0ac3
scrive/hpqtypes
Composite.hs
# LANGUAGE TypeApplications # module Database.PostgreSQL.PQTypes.Composite ( Composite(..) , unComposite , CompositeRow , CompositeFromSQL(..) , CompositeToSQL(..) ) where import Data.Kind (Type) import Foreign.Ptr import qualified Control.Exception as E import Database.PostgreSQL.PQTypes.Format import ...
null
https://raw.githubusercontent.com/scrive/hpqtypes/d5ce069e0130e51c22b7cbe2d1f22462d4fc273b/src/Database/PostgreSQL/PQTypes/Composite.hs
haskell
| Wrapper for (de)serializing composite types. | Extract underlying value. | Type function which maps composite type to its intermediate to PostgreSQL types in composite type definition. | Class which represents \"from SQL to composite\" transformation. | Convert composite row to destination type. | Class which...
# LANGUAGE TypeApplications # module Database.PostgreSQL.PQTypes.Composite ( Composite(..) , unComposite , CompositeRow , CompositeFromSQL(..) , CompositeToSQL(..) ) where import Data.Kind (Type) import Foreign.Ptr import qualified Control.Exception as E import Database.PostgreSQL.PQTypes.Format import ...
5138de0d5047d6450ff1709eabb64db2d91be27589d4e324b4e40857e2e9e0c5
ReedOei/CMips
Resolver.hs
module Compiler.Resolver where import Control.Lens import Control.Monad.State import Data.List (find, maximumBy, isInfixOf) import Data.Maybe (fromMaybe) import Data.Map (Map) import qualified Data.Map as Map import Data.Ord (comparing) import CLanguage import Compiler.Types import MIPSLanguage import Types import U...
null
https://raw.githubusercontent.com/ReedOei/CMips/daae33aeba31d0f4b0a97fab206b2726566d5ee4/src/Compiler/Resolver.hs
haskell
Don't actually support doubles. Returns the offset of the member of the struct. | Resolves a function call by name for the current scope, and returns the return type/argument types. Possible function pointer, see if it's a local variable name. Could be a function name.
module Compiler.Resolver where import Control.Lens import Control.Monad.State import Data.List (find, maximumBy, isInfixOf) import Data.Maybe (fromMaybe) import Data.Map (Map) import qualified Data.Map as Map import Data.Ord (comparing) import CLanguage import Compiler.Types import MIPSLanguage import Types import U...
e4ac51d2d77edf7410bd04c3d53b2db8df6d8302fd725e28ad0ff48245175bfd
ShamoX/admere
admereUtils.ml
(** This modules contains utilities functions used in the Admere's modules *) open AdmereTypes open AdmereExceptions open Batteries (** This function generate the sign relatively to the dimension, and the index * in the table. This defines the way the sub-tree of a cell is explored. * *) let generateSign dim i = ...
null
https://raw.githubusercontent.com/ShamoX/admere/9a6211b3def99a8344454f88b64cce4a52ca4256/src/admereUtils.ml
ocaml
* This modules contains utilities functions used in the Admere's modules * This function generate the sign relatively to the dimension, and the index * in the table. This defines the way the sub-tree of a cell is explored. * * Make reference array to explore the sub-tree * generate coordinates from a reference vec...
open AdmereTypes open AdmereExceptions open Batteries let generateSign dim i = Int.pow (-1) (i/(Int.pow 2 (dim-1))) ;; let generateVectors dim = let res = Array.make (Int.pow 2 dim) (Array.make dim 0.0) in for i = 0 to ((Int.pow 2 dim)-1) do res.(i) <- Array.make dim 0.0; for d = 1 to dim do res....
3325f32e3610beb2b5c86a348985d3ed785224e5c4aef75b1343a68ff993b63c
mentat-collective/emmy
top_test.cljc
#_"SPDX-License-Identifier: GPL-3.0" (ns emmy.examples.top-test (:refer-clojure :exclude [+ - * /]) (:require [clojure.test :refer [deftest is use-fixtures]] [emmy.env :as e :refer [up literal-function]] [emmy.examples.top :as t] [emmy.simplify :refer [hermetic-simplify-fixture]...
null
https://raw.githubusercontent.com/mentat-collective/emmy/535b237a8e3fd7067b9c0ade8b2a4b3419f9f132/test/emmy/examples/top_test.cljc
clojure
#_"SPDX-License-Identifier: GPL-3.0" (ns emmy.examples.top-test (:refer-clojure :exclude [+ - * /]) (:require [clojure.test :refer [deftest is use-fixtures]] [emmy.env :as e :refer [up literal-function]] [emmy.examples.top :as t] [emmy.simplify :refer [hermetic-simplify-fixture]...
e85e721b173ff57e7228fd31f5e2913778f4fce50663df2ab13732e0d8e43504
S8A/htdp-exercises
ex052.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-beginner-reader.ss" "lang")((modname ex052) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp") (lib "universe.rkt...
null
https://raw.githubusercontent.com/S8A/htdp-exercises/578e49834a9513f29ef81b7589b28081c5e0b69f/ex052.rkt
racket
about the language level of this file in a form that our tools can easily process.
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-reader.ss" "lang")((modname ex052) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp") (lib "universe.rkt" "teachpack" "2htdp") (lib "batch-io.rkt" "teachpack" "2htdp"))) (htdp-settings #(#t ...
d9e9d6cbeae39a5642b9ab98189216b50c9e9a939d2fd5413fc37a5e1018737b
morpheusgraphql/morpheus-graphql
DefineByIntrospection.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE MultiParamTypeClasses # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE QuasiQuotes # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # module Client.Defin...
null
https://raw.githubusercontent.com/morpheusgraphql/morpheus-graphql/ea7539d6abce016b9fdb02c87780e792e4664a34/examples/client/src/Client/DefineByIntrospection.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE OverloadedStrings #
# LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE MultiParamTypeClasses # # LANGUAGE NamedFieldPuns # # LANGUAGE QuasiQuotes # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # module Client.DefineByIntrospection ( fetchUsers, ) where import Data.ByteString....
75f8a2c43942681dbf59e7aa1c5ca81fb93d54dc0cfa54e441b857ad09d87f1d
pdarragh/parsing-with-zippers-paper-artifact
menhir_interface.ml
module MenhirParserInterface = struct type tok = Pytokens.token type res = Pyast.ast list let process_tokens (tokens : Pytokens.token list) : tok list = tokens let make_lexer (tokens : tok list) : ((tok list) ref -> tok) * ((tok list) ref) = let lex (lexbuf : (tok list) ref) : tok = match !lexbuf wi...
null
https://raw.githubusercontent.com/pdarragh/parsing-with-zippers-paper-artifact/c5c08306cfe4eec588237c7fa45b794649ccb68a/benchmark/pwz_bench/generate/static/menhir/menhir_interface.ml
ocaml
module MenhirParserInterface = struct type tok = Pytokens.token type res = Pyast.ast list let process_tokens (tokens : Pytokens.token list) : tok list = tokens let make_lexer (tokens : tok list) : ((tok list) ref -> tok) * ((tok list) ref) = let lex (lexbuf : (tok list) ref) : tok = match !lexbuf wi...
131daea4b3f44e1264f2baf86a7fc8452ab37f8e895841b3027333c70fec8bf8
travelping/capwap
capwap_report_influxdb.erl
Copyright ( C ) 2013 - 2023 , Travelping 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 , either version 3 of the License , or %% (at your option) any later version. %% Thi...
null
https://raw.githubusercontent.com/travelping/capwap/c2e503c5ad7d6b4c0ff3df2a4d5deed73d5f7c51/src/capwap_report_influxdb.erl
erlang
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 Affero General P...
Copyright ( C ) 2013 - 2023 , Travelping GmbH < > it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU Affero General Public License -module(capwap_report_influxdb). -expor...
49d6b68783333158afae9033c0008517fa395e7e29ae814a71a38f38886db44b
GaloisInc/ivory
ClassHierarchy.hs
# OPTIONS_GHC -fno - warn - orphans # # LANGUAGE DataKinds # # LANGUAGE KindSignatures # # LANGUAGE TypeOperators # # LANGUAGE QuasiQuotes # # LANGUAGE FlexibleInstances # # LANGUAGE ExistentialQuantification # module ClassHierarchy where import Ivory.Language --------------------------------------------------------...
null
https://raw.githubusercontent.com/GaloisInc/ivory/53a0795b4fbeb0b7da0f6cdaccdde18849a78cd6/ivory-examples/examples/ClassHierarchy.hs
haskell
------------------------------------------------------------------------------ extend it. Annoyingly, the fields are in the same global namespace, so we give unique names to the fields pointing to the base struct. getBase returns the base state. XXX This is boilerplate that might be generated... For the parent, i...
# OPTIONS_GHC -fno - warn - orphans # # LANGUAGE DataKinds # # LANGUAGE KindSignatures # # LANGUAGE TypeOperators # # LANGUAGE QuasiQuotes # # LANGUAGE FlexibleInstances # # LANGUAGE ExistentialQuantification # module ClassHierarchy where import Ivory.Language [ivory| Three structs defined in the quasiquoter , a...
9e9433712d1dbc3c2d9bba65b5d0f0bf49e8623ca5bd1cef6fa1f97844304f35
let-def/menhir
cst.ml
(**************************************************************************) (* *) Menhir (* *) , INRIA Ro...
null
https://raw.githubusercontent.com/let-def/menhir/e8ba7bef219acd355798072c42abbd11335ecf09/src/cst.ml
ocaml
************************************************************************ et en Automatique. All rig...
Menhir , INRIA Rocquencourt , PPS , Université Paris Diderot Copyright 2005 - 2008 Institut National de Recherche en Informatique under the terms of the Q Public License versi...
0a0d76da763fd158ada89eea30cbf81be28fb099dbe46e78ff268bbddf4cc365
lpeterse/haskell-mqtt
TrieSizeTest.hs
{-# LANGUAGE OverloadedStrings #-} module Main where import Control.Monad ( foldM, when ) import Data.IntSet as IS import qualified Data.List.NonEmpty as NL import qualified Data.Map as M import System.Random ( randomIO ) import ...
null
https://raw.githubusercontent.com/lpeterse/haskell-mqtt/dd4eb856edd50439c6e73eda5878a5b6624e3eba/test/TrieSizeTest.hs
haskell
# LANGUAGE OverloadedStrings # | This test shall assure that the memory consumption of the subscription tree stays within certain limits. This test suite runs with restricted maximum heap size. We need to to something with `r` or it won't be evaluated.
module Main where import Control.Monad ( foldM, when ) import Data.IntSet as IS import qualified Data.List.NonEmpty as NL import qualified Data.Map as M import System.Random ( randomIO ) import Network.MQTT.Message import...
717f1e3130d43824e26f557a62207c46e6636af2eb931f5e9d674006d6cef883
offby1/anagrams
dict.scm
(define-module (dict)) (use-modules (ice-9 rdelim) (ice-9 pretty-print) (srfi srfi-1) (bag)) (define-public *dictionary* #f) (define *big-ol-hash-table* #f) (define *alist-file-name* "big-dict-alist") (define (wordlist->hash) (with-input-from-file "../....
null
https://raw.githubusercontent.com/offby1/anagrams/0a7fbcff49a7dee6ed28333ecd354dd1fcff4bd6/scheme/guile/dict.scm
scheme
it's gotta have a vowel. it's gotta be all ASCII, all the time. now clobber the alist. want to sort it: with the same input, the anagrams appear in different orders. This is useful for when the input is large, and the complete list of anagrams would take forever to generate; in that case, we simply gene...
(define-module (dict)) (use-modules (ice-9 rdelim) (ice-9 pretty-print) (srfi srfi-1) (bag)) (define-public *dictionary* #f) (define *big-ol-hash-table* #f) (define *alist-file-name* "big-dict-alist") (define (wordlist->hash) (with-input-from-file "../....
7cd4f4602ef0deb7114dace22469f445cc4cbaa7271cc03b251e468201885484
adaliu-gh/htdp
10-163-165.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-beginner-reader.ss" "lang")((modname 10-163-165) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decima...
null
https://raw.githubusercontent.com/adaliu-gh/htdp/a0fca8af2ae8bdcef40d56f6f45021dd92df2995/8-13%20Arbitrarily%20Large%20Data/10-163-165.rkt
racket
about the language level of this file in a form that our tools can easily process. Number -> Number List-of-numbers -> List-of-numbers List-of-strings -> List-of-strings substitute all "robot" in old with "r2d2"
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-reader.ss" "lang")((modname 10-163-165) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) converts a to a Celsius (define (f2c f) (/ (- f 32) 1.8)...
9d7b0d215ed1999b102476a1f1afe83581ac94c23e6c48f335d6af30bcf5acc9
WhatsApp/erlt
erlt_otp_compile.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1996 - 2020 . All Rights Reserved . Copyright ( c ) Facebook , Inc. and its affiliates . %% 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 Lice...
null
https://raw.githubusercontent.com/WhatsApp/erlt/616a4adc628ca8754112e659701e57f1cd7fecd1/erltc/src/erlt_otp_compile.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 1996 - 2020 . All Rights Reserved . Copyright ( c ) Facebook , Inc. and its affiliates . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , Purpose : Run the Erlang compiler . -module(erlt_otp_compil...
92b93350eb72125d49d10c02ab356a095eec7cb850e4b216be071d48d6caed02
yesodweb/wai
Embedded.hs
module WaiAppStatic.Storage.Embedded( -- * Basic embeddedSettings -- * Template Haskell , Etag , EmbeddableEntry(..) , mkSettings ) where import WaiAppStatic.Storage.Embedded.Runtime import WaiAppStatic.Storage.Embedded.TH
null
https://raw.githubusercontent.com/yesodweb/wai/f59e577f865d017b4726826ac5586bb916cf315b/wai-app-static/WaiAppStatic/Storage/Embedded.hs
haskell
* Basic * Template Haskell
module WaiAppStatic.Storage.Embedded( embeddedSettings , Etag , EmbeddableEntry(..) , mkSettings ) where import WaiAppStatic.Storage.Embedded.Runtime import WaiAppStatic.Storage.Embedded.TH
c7c64c499c611821a0d6cd51f4c76ea19248ca7229b47fd395511e95a8512ea3
pjotrp/guix
ghostscript.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2013 < > Copyright © 2014 , 2015 < > Copyright © 2015 < > Copyright © 2013 , 2015 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General...
null
https://raw.githubusercontent.com/pjotrp/guix/96250294012c2f1520b67f12ea80bfd6b98075a2/gnu/packages/ghostscript.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2013 < > Copyright © 2014 , 2015 < > Copyright © 2015 < > Copyright © 2013 , 2015 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (gnu p...
91a226682f8a73ef4be1e7011eedbba37ae644993d36f8e79753e0ada7ad38c4
well-typed/large-records
R030.hs
# LANGUAGE TypeApplications # #if PROFILE_CORESIZE {-# OPTIONS_GHC -ddump-to-file -ddump-ds-preopt -ddump-ds -ddump-simpl #-} #endif #if PROFILE_TIMING {-# OPTIONS_GHC -ddump-to-file -ddump-timings #-} #endif module Experiment.PreEval_Phantom.Sized.R030 where import Data.Proxy import Common.EmptyClass_Tree_Phantom ...
null
https://raw.githubusercontent.com/well-typed/large-records/c6c2b51af11e90f30822543d7ce4d1cb28cee294/large-records-benchmarks/bench/experiments/Experiment/PreEval_Phantom/Sized/R030.hs
haskell
# OPTIONS_GHC -ddump-to-file -ddump-ds-preopt -ddump-ds -ddump-simpl # # OPTIONS_GHC -ddump-to-file -ddump-timings #
# LANGUAGE TypeApplications # #if PROFILE_CORESIZE #endif #if PROFILE_TIMING #endif module Experiment.PreEval_Phantom.Sized.R030 where import Data.Proxy import Common.EmptyClass_Tree_Phantom import Common.HListOfSize.HL030 requiresInstance :: () requiresInstance = requireEmptyClass_preEval (Proxy @ExampleFields)
1ec0f9b3044386fd817f63e3d1c7cb2703ac5cef9353a692743744d1fa3a5e37
erlang/otp
gen_tcp.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1997 - 2023 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applic...
null
https://raw.githubusercontent.com/erlang/otp/2b397d7e5580480dc32fa9751db95f4b89ff029e/lib/kernel/src/gen_tcp.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific l...
Copyright Ericsson AB 1997 - 2023 . 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(gen_tcp). -export([connect/2, connect/3, connect/4, listen/2, accept/1, accept/2, shut...
f197e827c400c2c49a7728518aefc690ad9e9e02f9a5e1587e4ef9cba016677b
NPException/Clojure-Quotes-Bot
quotes.clj
(ns cljqbot.quotes (:require [clojure.string :as string] [clojure.walk :as walk] [tick.core :as t]) (:import [clojure.lang IDeref])) (defonce requested (atom 0)) ; how many quotes were delivered (defn cached "Returns an IDeref that holds a value for the given amount of time before rec...
null
https://raw.githubusercontent.com/NPException/Clojure-Quotes-Bot/0a3273de5a93487579580adc6251a883fd494322/src/cljqbot/quotes.clj
clojure
how many quotes were delivered TODO: make use of this by adding the capability of requesting a quote by someone
(ns cljqbot.quotes (:require [clojure.string :as string] [clojure.walk :as walk] [tick.core :as t]) (:import [clojure.lang IDeref])) (defn cached "Returns an IDeref that holds a value for the given amount of time before recreating it by calling load-fn" [load-fn ttl-millis] MIN_VA...
d77a52f8392378f92b93cca781bfb5f2e508733dc45227e0bb6dbfc2d4b8fc76
arachne-framework/arachne-buildtools
build-all.cljs
#!/usr/bin/env planck (ns build-all.main (:require [planck.shell :refer [sh]] [planck.io :as io] [planck.core :as core :refer [*command-line-args*]] [planck.http :as http] [cljs.reader :as reader] [clojure.string :as str] [clojure.string :as str]...
null
https://raw.githubusercontent.com/arachne-framework/arachne-buildtools/000cac1e8d7b51370b300106662951121a8e463c/build-all.cljs
clojure
these must be in dependency order an inefficient "busy sleep" but it doesn't really matter
#!/usr/bin/env planck (ns build-all.main (:require [planck.shell :refer [sh]] [planck.io :as io] [planck.core :as core :refer [*command-line-args*]] [planck.http :as http] [cljs.reader :as reader] [clojure.string :as str] [clojure.string :as str]...
f4708009e3ed4ae3ef117a1259f8e29bcf16bd7f9e6471940e73f2eb42b2f994
serokell/importify
06-MultipleInnerEntriesRemoved.hs
module MultipleInnerEntriesRemoved where import Language.Haskell.Exts (Exp(Var,Con,Lit)) foo = Con
null
https://raw.githubusercontent.com/serokell/importify/09f31d851b2152ae6ce880b81abc3554ade29f37/test/test-data/haskell-src-exts%40constructors/06-MultipleInnerEntriesRemoved.hs
haskell
module MultipleInnerEntriesRemoved where import Language.Haskell.Exts (Exp(Var,Con,Lit)) foo = Con
8ee88675f7cf8cb32acd5366f99b81411bf9bdf3e9e2bb633e09652ffbf46faf
argp/bap
formula.ml
let sort = let underscore = Str.regexp_string "_" in let sort_aux (var1, _) (var2,_) = let ss1 = Str.split underscore var1 and ss2 = Str.split underscore var2 in let s1 = List.nth ss1 1 and s2 = List.nth ss2 1 in let s1i = int_of_string s1 and s2i = int_of_string s2 in co...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/utils/formula.ml
ocaml
let sort = let underscore = Str.regexp_string "_" in let sort_aux (var1, _) (var2,_) = let ss1 = Str.split underscore var1 and ss2 = Str.split underscore var2 in let s1 = List.nth ss1 1 and s2 = List.nth ss2 1 in let s1i = int_of_string s1 and s2i = int_of_string s2 in co...
5fefa2b7807a143754befc93af2da40c53af39a1df6954f54b173cd544b46b71
lisp/de.setf.utility
walk.lisp
-*- Mode : lisp ; Syntax : ansi - common - lisp ; Base : 10 ; Package : de.setf.utility.implementation ; -*- (in-package :de.setf.utility.implementation) (:documentation "iterative-form model navigation operators for an abstract graph model" (copyright "Copyright 2010 [james anderson](mailto:) All Rights Res...
null
https://raw.githubusercontent.com/lisp/de.setf.utility/782cd79d99ebf40deeed60c492be9873bbe42a15/graph/walk.lisp
lisp
Syntax : ansi - common - lisp ; Base : 10 ; Package : de.setf.utility.implementation ; -*-
(in-package :de.setf.utility.implementation) (:documentation "iterative-form model navigation operators for an abstract graph model" (copyright "Copyright 2010 [james anderson](mailto:) All Rights Reserved" "'de.setf.utility' is free software: you can redistribute it and/or modify it under the terms of vers...
d51417ba6ba1f25da4532bee86bfaea94c8db531255a329f4191fe319dba0f9a
tekul/broch
ClientAuth.hs
{-# LANGUAGE OverloadedStrings, Rank2Types #-} module Broch.OAuth2.ClientAuth where import Control.Error import Control.Monad.Trans (lift) import Control.Monad (join, unless) import Crypto.Random (MonadRandom) import Data.Aeson hiding (decode) import Data.By...
null
https://raw.githubusercontent.com/tekul/broch/885ace4652cad4dcd806c8c31c1a59bf6a9a3337/Broch/OAuth2/ClientAuth.hs
haskell
# LANGUAGE OverloadedStrings, Rank2Types # | Authenticate the client using one of the methods defined in -connect-core-1_0.html#ClientAuthentication See #section-5.2 TODO: Return auth type here so it can be checked after authenticating TODO: Check audience TODO: Introduce jti caching TODO: Fixed delay based on ...
module Broch.OAuth2.ClientAuth where import Control.Error import Control.Monad.Trans (lift) import Control.Monad (join, unless) import Crypto.Random (MonadRandom) import Data.Aeson hiding (decode) import Data.ByteArray (constEq) import Data.ByteArr...
ace035b2106706523eb844c1b6410a2fb5f20459fcc81cd464c89d18fe095ddb
spl/ivy
dfwdsubst.ml
* * Copyright ( c ) 2004 , * < > * < > * All rights reserved . * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided that the following conditions are * met : * * 1 . Redistributions of source code must reta...
null
https://raw.githubusercontent.com/spl/ivy/b1b516484fba637eb24e83d27555d273495e622b/src/deputy/optimizer/dfwdsubst.ml
ocaml
* dfwdsubst.ml * * The visitor below symbolically evaluates expressions * inside of checks for easy consumption by the other * passes. * Type for the form of temporary variable names check if a name matches a form string -> nameform -> bool check a name against a list of forms if it matches any then...
* * Copyright ( c ) 2004 , * < > * < > * All rights reserved . * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided that the following conditions are * met : * * 1 . Redistributions of source code must reta...
ebae1beeb2b65493066e66f0222950de60a4866887b44a14cc1b894314e57ec7
rizo/snowflake-os
list.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/rizo/snowflake-os/51df43d9ba715532d325e8880d3b8b2c589cd075/libraries/stdlib/list.mli
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with $ I d : list.mli , v 1.47 2006 - 09 -...
397d380f869f89ff07e76eff04e3a91191d7004b4e251e46ee62bf9a1a1719d8
jeapostrophe/exp
main.rkt
#lang racket/base (require rackunit racket/list racket/match (for-syntax racket/base syntax/parse)) (struct stack-op (f)) (begin-for-syntax (define (generate-n-temporaries stx) (generate-temporaries (build-list (syntax->datum stx) (λ (i) stx)))) (define-syntax-...
null
https://raw.githubusercontent.com/jeapostrophe/exp/43615110fd0439d2ef940c42629fcdc054c370f9/rorth/main.rkt
racket
#lang racket/base (require rackunit racket/list racket/match (for-syntax racket/base syntax/parse)) (struct stack-op (f)) (begin-for-syntax (define (generate-n-temporaries stx) (generate-temporaries (build-list (syntax->datum stx) (λ (i) stx)))) (define-syntax-...
fa03ec6b66b99c3f8b550c60cbeffc04edd03a59a891b34d6eb447ed41300e66
project-oak/hafnium-verification
ProcessPoolState.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/project-oak/hafnium-verification/6071eff162148e4d25a0fedaea003addac242ace/experiments/ownership-inference/infer/infer/src/base/ProcessPoolState.mli
ocaml
* Keep track of whether the current execution is in a child process
* 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 ...
26b26f20c8c16f47f5df89550396ab0738c624ce25c71d29345f234d9ab13d31
ssardina/ergo
systematic-main.scm
(include "sw-bridge.scm") (include "systematic-bat.scm") (include "systematic-procs.scm") (define (run-to x y) ; run to (x,y) but east/west on x-axis only (:begin (:for-all i yposition (go-dir 'south)) (:if (< x xposition) (:for-all i (- xposition x) (go-dir 'west)) (:for-all i (- x xposition...
null
https://raw.githubusercontent.com/ssardina/ergo/4225ebb95779d1748f377cf2e4d0a593d6a2a103/Projects/Squirrels/systematic-main.scm
scheme
run to (x,y) but east/west on x-axis only walk north, smelling and looking for walls systematic search of grid walk north as far as possible run back to x-axis
(include "sw-bridge.scm") (include "systematic-bat.scm") (include "systematic-procs.scm") (:begin (:for-all i yposition (go-dir 'south)) (:if (< x xposition) (:for-all i (- xposition x) (go-dir 'west)) (:for-all i (- x xposition) (go-dir 'east))) (:for-all i y (go-dir 'north)))) run to ( 1,1 )...
795617e7fd82cf0840c00fd5d745c557b18ee706ac9655c02a7c331e17343b25
manuel-serrano/bigloo
cpp.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / cigloo / Parser / cpp.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation ...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/eb650ed4429155f795a32465e009706bbf1b8d74/cigloo/Parser/cpp.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * The cpp parsing */ *===========================...
* serrano / prgm / project / bigloo / cigloo / Parser / cpp.scm * / * Author : * / * Creation : We d Nov 29 09:46:19 1995 * / * Last change : Sun Aug 31 16:05:42 2008 ( serrano ) * / (module ...
a81d31deea248bb0455d1594df2d172a4cfa75255afc5cbd3f69b83b38f22f76
input-output-hk/plutus
Error.hs
-- editorconfig-checker-disable-file {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE TypeOperators #-} # LANGUAGE Un...
null
https://raw.githubusercontent.com/input-output-hk/plutus/ece3115856b370e259d88e6b45a4f59db7756ca6/plutus-core/plutus-ir/src/PlutusIR/Compiler/Error.hs
haskell
editorconfig-checker-disable-file # LANGUAGE DeriveAnyClass # # LANGUAGE OverloadedStrings # # LANGUAGE TemplateHaskell # # LANGUAGE TypeOperators # ^ A generic compilation error. ^ An error relating specifically to an unsupported feature.
# LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # # LANGUAGE LambdaCase # # LANGUAGE UndecidableInstances # module PlutusIR.Compiler.Error (Error (..), AsError (..)) where import PlutusCore qualified as PLC import PlutusCore.Pretty qualified as PLC import Control.Exception impor...
efb163466005e6ccf64682421ad9192372be09ba34bc0066e1b3720bc18fe114
lexi-lambda/racket-r7rs
file.rkt
#lang racket/base (require racket/require (prefix-in r: racket/base) "private/strip-prefix.rkt") (provide (strip-colon-prefix-out r:call-with-input-file r:call-with-output-file r:delete-file r:file-exists? open-binary-input-file open-binary-output-file r:open-input-file r:open-output-file r:wit...
null
https://raw.githubusercontent.com/lexi-lambda/racket-r7rs/5834ec6e66f63c61589130aaebd0f25ab3eefc2b/r7rs-lib/file.rkt
racket
#lang racket/base (require racket/require (prefix-in r: racket/base) "private/strip-prefix.rkt") (provide (strip-colon-prefix-out r:call-with-input-file r:call-with-output-file r:delete-file r:file-exists? open-binary-input-file open-binary-output-file r:open-input-file r:open-output-file r:wit...
6fcceed4ddbcebfc5da95625e4fae7babf91e3ba633175547151870d6e773e3f
janestreet/ppx_sexp_conv
test_polymorphism.ml
open! Base type ('a, _, 'b) t = 'a * 'b and u = (string, int, float) t [@@deriving_inline sexp_grammar] let _ = fun (_ : ('a, _, 'b) t) -> () let _ = fun (_ : u) -> () let t_sexp_grammar : 'a 'b__001_ 'b. 'a Sexplib0.Sexp_grammar.t -> 'b__001_ Sexplib0.Sexp_grammar.t -> 'b Sexplib0.Sexp_grammar.t -> ('a, '...
null
https://raw.githubusercontent.com/janestreet/ppx_sexp_conv/d9f92275eaff71fd721f7902756e621c22e6d118/test/sexp_grammar/test_polymorphism.ml
ocaml
open! Base type ('a, _, 'b) t = 'a * 'b and u = (string, int, float) t [@@deriving_inline sexp_grammar] let _ = fun (_ : ('a, _, 'b) t) -> () let _ = fun (_ : u) -> () let t_sexp_grammar : 'a 'b__001_ 'b. 'a Sexplib0.Sexp_grammar.t -> 'b__001_ Sexplib0.Sexp_grammar.t -> 'b Sexplib0.Sexp_grammar.t -> ('a, '...
e8905b0a8c58ad5a65681156c82cdfd3fd739d41d5c9c54691318d7697cf1877
cbaatz/build-a-haskell-web-framework
Route.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} module Route ( Route(..) , parseRoute ) where import BasicPrelude import Data.Attoparsec.ByteString.Char8 data Route = Home | Message Int parseRoute :: ByteString -> Either String Route parseRoute = parseOnly parser ...
null
https://raw.githubusercontent.com/cbaatz/build-a-haskell-web-framework/eb16da8ec99153b6fc7584d4ce1a5e7d7cf7dce2/demo/src/Route.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE NoImplicitPrelude # module Route ( Route(..) , parseRoute ) where import BasicPrelude import Data.Attoparsec.ByteString.Char8 data Route = Home | Message Int parseRoute :: ByteString -> Either String Route parseRoute = parseOnly parser parser :: Parser Route parser = cho...
a785a95660a0e5fee2d89080944674226e3a8ad04b3c422cff9a6bf44644d049
facebook/infer
SwitchCase.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/4ee1c2a8e783ee770b61547a38ff1715d6ed75fe/infer/src/clang/SwitchCase.mli
ocaml
* 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 ...
3553c468c86fade22a00dab4c3970537a6d2e1588fa7514a01b860de9a151ba1
johnwhitington/ocamli
test.ml
1 + 2 * 3
null
https://raw.githubusercontent.com/johnwhitington/ocamli/28da5d87478a51583a6cb792bf3a8ee44b990e9f/test.ml
ocaml
1 + 2 * 3
32a2f0b5d99a48871e462d046999bcdfcc6c4a9bcf85dbed1e77836998988ab1
blindglobe/common-lisp-stat
unittests-proto.lisp
;;; -*- mode: lisp -*- Copyright ( c ) 2007 , by < > ;;; See COPYRIGHT file for any additional restrictions (BSD license). Since 1991 , ANSI was finally finished . Edited for ANSI Common Lisp . This is semi - external to lispstat core packages . The dependency ;;; should be that lispstat packages are depe...
null
https://raw.githubusercontent.com/blindglobe/common-lisp-stat/0c657e10a4ee7e8d4ef3737f8c2d4e62abace2d8/src/unittests/unittests-proto.lisp
lisp
-*- mode: lisp -*- See COPYRIGHT file for any additional restrictions (BSD license). should be that lispstat packages are dependencies for the unit tests. However, where they will end up is still to be determined. Object System tests need to ensure stability of add, display, send, instantiate and similar acti...
Copyright ( c ) 2007 , by < > Since 1991 , ANSI was finally finished . Edited for ANSI Common Lisp . This is semi - external to lispstat core packages . The dependency (in-package :lisp-stat-unittests) (deftestsuite lisp-stat-ut-proto (lisp-stat-ut) () ( create - proto ( ensure ( typep ( defp...
1ab2525b2fdae54fa92f99c1f527ba68990325aeaf4f800fb86d07791d46165f
vikram/lisplibraries
readmacros-mcl.lisp
-*- Mode : Lisp ; Syntax : ANSI - Common - Lisp ; Base : 10 ; Package : UFFI -*- ;;;; ************************************************************************* ;;;; FILE IDENTIFICATION ;;;; ;;;; Name: readmacros-mcl.lisp Purpose : This file holds functions using read macros for MCL Programmer : ...
null
https://raw.githubusercontent.com/vikram/lisplibraries/105e3ef2d165275eb78f36f5090c9e2cdd0754dd/site/uffi-1.5.17/src/readmacros-mcl.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 ; Package : UFFI -*- ************************************************************************* FILE IDENTIFICATION Name: readmacros-mcl.lisp ************************************************************************* trap macros don't work right directly in the...
Purpose : This file holds functions using read macros for MCL Programmer : / Date Started : Feb 2002 $ I d : readmacros-mcl.lisp 10917 2006 - 04 - 18 00:07:09Z kevin $ This file , part of UFFI , is Copyright ( c ) 2002 - 2005 by (in-package #:uffi) #+digitool (defun new-ptr (size) (#...
432f67b36caef124641d47e2d123705a0a4908fe75249cfc718b9c5e3e699f0d
ghc/packages-base
ForeignPtr.hs
# LANGUAGE Unsafe # # LANGUAGE NoImplicitPrelude , BangPatterns , MagicHash , UnboxedTuples # , BangPatterns , MagicHash , UnboxedTuples #-} {-# OPTIONS_HADDOCK hide #-} {-# LANGUAGE DeriveDataTypeable, StandaloneDeriving #-} ---------------...
null
https://raw.githubusercontent.com/ghc/packages-base/52c0b09036c36f1ed928663abb2f295fd36a88bb/GHC/ForeignPtr.hs
haskell
# OPTIONS_HADDOCK hide # # LANGUAGE DeriveDataTypeable, StandaloneDeriving # --------------------------------------------------------------------------- | Module : GHC.ForeignPtr License : see libraries/base/LICENSE Maintainer : Stability : internal -------------------------------------------...
# LANGUAGE Unsafe # # LANGUAGE NoImplicitPrelude , BangPatterns , MagicHash , UnboxedTuples # , BangPatterns , MagicHash , UnboxedTuples #-} Copyright : ( c ) The University of Glasgow , 1992 - 2003 Portability : non - portable ( ...
f259b1a436a87e8e8609e230e188d5fb0038179949aa3229029b0861d0d42795
emlyn/tortilla
coerce.clj
(ns tortilla.coerce (:import [java.lang.reflect Method Modifier])) (defprotocol Coercible (coerce [val typ])) (defmulti coerce-long (fn [_val typ] typ)) (defmulti coerce-double (fn [_val typ] typ)) (defmulti coerce-kw (fn [_val typ] typ)) (defmulti coerce-vector (fn [_val typ] typ)) (defmulti coerce-list ...
null
https://raw.githubusercontent.com/emlyn/tortilla/e12ecdd48cd4d14593da3ed057f257cdeffa35b0/src/main/tortilla/coerce.clj
clojure
Ignore symbols that don't resolve,
(ns tortilla.coerce (:import [java.lang.reflect Method Modifier])) (defprotocol Coercible (coerce [val typ])) (defmulti coerce-long (fn [_val typ] typ)) (defmulti coerce-double (fn [_val typ] typ)) (defmulti coerce-kw (fn [_val typ] typ)) (defmulti coerce-vector (fn [_val typ] typ)) (defmulti coerce-list ...
a22e8bdf26d40ba3fc78baa9aaa1b3aa4d4bdacc96a0e8395939909f9598c3c9
ragkousism/Guix-on-Hurd
zile.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2012 , 2013 , 2017 < > Copyright © 2014 < > Copyright © 2016 < > ;;; ;;; This file is 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 publishe...
null
https://raw.githubusercontent.com/ragkousism/Guix-on-Hurd/e951bb2c0c4961dc6ac2bda8f331b9c4cee0da95/gnu/packages/zile.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2012 , 2013 , 2017 < > Copyright © 2014 < > Copyright © 2016 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (gnu packages zile) #:use-modul...
6b57546c33f243e4b659af6474167573e54fc0184ea75d0d0f896a5849324788
xh4/web-toolkit
example.lisp
;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*- ;;;; * FiveAM Example (poor man's tutorial) (asdf:oos 'asdf:load-op :fiveam) (defpackage :it.bese.fiveam.example (:use :common-lisp :it.bese.fiveam)) (in-package :it.bese.fiveam.example) First we need some functions to test . (defun add-2 (n) (+ n 2)) (defun ...
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/vendor/fiveam-v1.4.1/t/example.lisp
lisp
-*- Mode: Lisp; indent-tabs-mode: nil -*- * FiveAM Example (poor man's tutorial) Now we need to create a test which makes sure that add-2 and add-4 work as specified. we create a test named ADD-2 and supply a short description. a short description the checks we can already run add-2. This will return the list o...
(asdf:oos 'asdf:load-op :fiveam) (defpackage :it.bese.fiveam.example (:use :common-lisp :it.bese.fiveam)) (in-package :it.bese.fiveam.example) First we need some functions to test . (defun add-2 (n) (+ n 2)) (defun add-4 (n) (+ n 4)) (test add-2 (is (= 2 (add-2 0))) (is (= 0 (add-2 -2)))) result...
239d3c1b16d1369e242cf2327864a1645e54ceeb374f49854cf177b7333a8faa
mylesmegyesi/metis
core_spec.clj
(ns metis.core-spec (:use [speclj.core :rename {with other-with}] [metis.test-validators] [metis.core])) (defvalidator :generic-record [[:first-name :zipcode] [:presence {:allow-blank true}]] [:first-name :presence {:allow-nil true}]) (defvalidator "other" [[:first-name :zipcode] :presence {:allow...
null
https://raw.githubusercontent.com/mylesmegyesi/metis/44127ac75fb6ce6235a516bf6a6f8a9222e5dd67/spec/metis/core_spec.clj
clojure
(ns metis.core-spec (:use [speclj.core :rename {with other-with}] [metis.test-validators] [metis.core])) (defvalidator :generic-record [[:first-name :zipcode] [:presence {:allow-blank true}]] [:first-name :presence {:allow-nil true}]) (defvalidator "other" [[:first-name :zipcode] :presence {:allow...
ce4ba5451cf5c154fab09736687dad6ff2eee0a5678ce0f705fbc8b16b6d7e6a
pfdietz/ansi-test
print-unreadable-object.lsp
;-*- Mode: Lisp -*- Author : Created : Mon Jul 12 06:06:01 2004 ;;;; Contains: Tests of PRINT-UNREADABLE-OBJECT (in-package :cl-test) (def-pprint-test print-unreadable-object.1 (loop for x in *mini-universe* for return-vals = nil for s = (with-output-to-string (s) ...
null
https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/printer/print-unreadable-object.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests of PRINT-UNREADABLE-OBJECT test if this is ignored test if this is ignored TODO Tests that the :identity and :type arguments are evaluated TODO Tests where :type, :identity are provided, but are nil TODO Test that the type/identity parts of the output are the same for...
Author : Created : Mon Jul 12 06:06:01 2004 (in-package :cl-test) (def-pprint-test print-unreadable-object.1 (loop for x in *mini-universe* for return-vals = nil for s = (with-output-to-string (s) (setq return-vals (multiple-value-list (print-unread...
406c4d91fdd19d03600655d9ff3c155605c1d612c002fb8bceae2f1b83829274
GlideAngle/flare-timing
KmlMain.hs
import System.Environment (getProgName) import System.Console.CmdArgs.Implicit (cmdArgs) import Control.Monad (mapM_) import System.FilePath (takeFileName) import System.Directory (getCurrentDirectory) import Flight.Cmd.Paths (LenientFile(..), checkPaths) import Flight.Kml (parse) import Flight.Comp (FindDirFile(..), ...
null
https://raw.githubusercontent.com/GlideAngle/flare-timing/27bd34c1943496987382091441a1c2516c169263/lang-haskell/flare-timing/test-apps/kml-parser/KmlMain.hs
haskell
import System.Environment (getProgName) import System.Console.CmdArgs.Implicit (cmdArgs) import Control.Monad (mapM_) import System.FilePath (takeFileName) import System.Directory (getCurrentDirectory) import Flight.Cmd.Paths (LenientFile(..), checkPaths) import Flight.Kml (parse) import Flight.Comp (FindDirFile(..), ...
2255fdde98958dc37ff2722c75c8ae5259c81d8189524c29bc3e3484cc7781fb
expipiplus1/vulkan
PipelineViewportStateCreateFlags.hs
{-# language CPP #-} No documentation found for Chapter " PipelineViewportStateCreateFlags " module Vulkan.Core10.Enums.PipelineViewportStateCreateFlags (PipelineViewportStateCreateFlags(..)) where import Data.Bits (Bits) import Data.Bits (FiniteBits) import Vulkan.Internal.Utils (enumReadPrec) import Vulkan.Intern...
null
https://raw.githubusercontent.com/expipiplus1/vulkan/70d8cca16893f8de76c0eb89e79e73f5a455db76/src/Vulkan/Core10/Enums/PipelineViewportStateCreateFlags.hs
haskell
# language CPP # | VkPipelineViewportStateCreateFlags - Reserved for future use = Description 'PipelineViewportStateCreateFlags' is a bitmask type for setting a mask, but is currently reserved for future use. = See Also <-extensions/html/vkspec.html#VK_VERSION_1_0 VK_VERSION_1_0>,
No documentation found for Chapter " PipelineViewportStateCreateFlags " module Vulkan.Core10.Enums.PipelineViewportStateCreateFlags (PipelineViewportStateCreateFlags(..)) where import Data.Bits (Bits) import Data.Bits (FiniteBits) import Vulkan.Internal.Utils (enumReadPrec) import Vulkan.Internal.Utils (enumShowsPr...
a1b03428f8343d0ba76131c144bfa3512dbdc07b9e7c03f50d3d30de4e6cc47c
ryanpbrewster/haskell
P057Test.hs
module Problems.P057Test ( case_057_main ) where import Problems.P057 import Test.Tasty.Discover (Assertion, (@?=)) case_057_main :: Assertion case_057_main = solve @?= "153"
null
https://raw.githubusercontent.com/ryanpbrewster/haskell/6edd0afe234008a48b4871032dedfd143ca6e412/project-euler/tests/Problems/P057Test.hs
haskell
module Problems.P057Test ( case_057_main ) where import Problems.P057 import Test.Tasty.Discover (Assertion, (@?=)) case_057_main :: Assertion case_057_main = solve @?= "153"