_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
ce19a58767d1540cad8973c275b378988a63a26dd80f05d4a207dc4620096b4b
pallix/tikkba
analemma.clj
(ns tikkba.examples.analemma (:use [analemma svg charts xml] [tikkba swing dom]) (:import (javax.swing JFrame SwingUtilities))) (def analemma-data) (defn analemma-svg "Creates a SVG representation with the Analemma functions" [] (svg (apply group (-> (text "Analemma") (add...
null
https://raw.githubusercontent.com/pallix/tikkba/86fda7f97c3b1ff835f02c2b1c0337f3e134fd2c/src/tikkba/examples/analemma.clj
clojure
and displays the SVG in a JFrame
(ns tikkba.examples.analemma (:use [analemma svg charts xml] [tikkba swing dom]) (:import (javax.swing JFrame SwingUtilities))) (def analemma-data) (defn analemma-svg "Creates a SVG representation with the Analemma functions" [] (svg (apply group (-> (text "Analemma") (add...
ecbb80645f24fd90b7083af26c061e2c25a5be37c2d6de884933bf06b7c47372
amw-zero/sligh
process.ml
open Core type schema = { name: string; attrs: typed_attr list; } type action = { action_ast: Core.proc_action; state_vars: Core.typed_attr list; } type variant = { vname: string; variants: variant_tag list } type process = { schemas: schema list; variants: variant list; variables: Core.typed_attr...
null
https://raw.githubusercontent.com/amw-zero/sligh/bb979a0f7c0c57dfc9c2fd00ee02e490816ce786/lib/process.ml
ocaml
Failure to find attr here means assignment is on a non-state variable collect_state_vars is returning duplicates - should ultimately fix that instead of this unique sort
open Core type schema = { name: string; attrs: typed_attr list; } type action = { action_ast: Core.proc_action; state_vars: Core.typed_attr list; } type variant = { vname: string; variants: variant_tag list } type process = { schemas: schema list; variants: variant list; variables: Core.typed_attr...
ac0e6749e2d68d2099c18d8bc265302561834de0d699d27eb1a0880a44d34df1
sdiehl/print
Example.hs
# LANGUAGE DeriveGeneric # {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ExtendedDefaultRules # # LANGUAGE NoImplicitPrelude # module Main where import Print import Protolude hiding (Show, show, print) data Animal = Dog | Cat deriving (Generic, Show) data T1 = T1 Int Bool ...
null
https://raw.githubusercontent.com/sdiehl/print/0b434500b78bf5a8b1081957ffc0a2de693e6429/Example.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE OverloadedStrings #
# LANGUAGE DeriveGeneric # # LANGUAGE ExtendedDefaultRules # # LANGUAGE NoImplicitPrelude # module Main where import Print import Protolude hiding (Show, show, print) data Animal = Dog | Cat deriving (Generic, Show) data T1 = T1 Int Bool deriving (Generic, Show) data T2 = T2 Int Bool | T3 { x :: B...
22d41d67c1d6b0c67c6d71c5fd302813909710d1c46d672751c39236de9f98f1
babashka/sci
utils.cljc
(ns sci.impl.utils {:no-doc true} (:refer-clojure :exclude [eval demunge var?]) (:require [clojure.string :as str] [sci.impl.macros :as macros] [sci.impl.types :as t] [sci.impl.vars :as vars] [sci.lang :as lang]) #?(:cljs (:require-macros [sci.impl.utils :refer [k...
null
https://raw.githubusercontent.com/babashka/sci/0fee91953e0d0504e80a5997585c6d00833f98c0/src/sci/impl/utils.cljc
clojure
resolve macro inner fn for comparison st (:sci.impl/callstack d) foundational namespaces
(ns sci.impl.utils {:no-doc true} (:refer-clojure :exclude [eval demunge var?]) (:require [clojure.string :as str] [sci.impl.macros :as macros] [sci.impl.types :as t] [sci.impl.vars :as vars] [sci.lang :as lang]) #?(:cljs (:require-macros [sci.impl.utils :refer [k...
f7f36b923fa6e6daf9aa0ee83bd59ed6275ea5c2fc95eee78cede512d8a83775
facebook/duckling
Corpus.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} module Duckling.Time.Corpus ( datetime ,...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/Time/Corpus.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. # LANGUAGE OverloadedStrings #
Copyright ( c ) 2016 - present , Facebook , Inc. # LANGUAGE NamedFieldPuns # module Duckling.Time.Corpus ( datetime , datetimeHoliday , datetimeInterval , datetimeIntervalHoliday , datetimeOpenInterval , examples ) where import Data.Aeson import qualified Data.HashMap.Strict as H import Data.Text (T...
4ee315b78ab38eae9a9c7a67f9b03eeee88e0d6a37f24c11b307e4aac697e8fe
samrushing/irken-compiler
t42.scm
(include "lib/core.scm") (define (make-int-generator n) (make-generator (lambda (consumer) (let loop ((n n)) (consumer n) (loop (+ n 1)))))) (let ((g (make-int-generator 42))) (printn (g)) (printn (g)) (printn (g)) (printn (g)) (printn (g)) (printn (g)) (printn ...
null
https://raw.githubusercontent.com/samrushing/irken-compiler/690da48852d55497f873738df54f14e8e135d006/tests/t42.scm
scheme
(include "lib/core.scm") (define (make-int-generator n) (make-generator (lambda (consumer) (let loop ((n n)) (consumer n) (loop (+ n 1)))))) (let ((g (make-int-generator 42))) (printn (g)) (printn (g)) (printn (g)) (printn (g)) (printn (g)) (printn (g)) (printn ...
ec77255f539c13fafb45748b62e25633f3ede3fe7d4b4da561d573b228790866
bazqux/bazqux-urweb
Merge.hs
| Утилиты слияния ключей module Lib.Merge ( unionByWith ) where import Data.List import Data.Ord | Объединяет два списка по ключам с объединением одинаковых значений . unionByWith key merge a b = go (s a) (s b) where s = mergeSame . sortBy (comparing key) mergeSame [] = [] merg...
null
https://raw.githubusercontent.com/bazqux/bazqux-urweb/bf2d5a65b5b286348c131e91b6e57df9e8045c3f/crawler/Lib/Merge.hs
haskell
| Утилиты слияния ключей module Lib.Merge ( unionByWith ) where import Data.List import Data.Ord | Объединяет два списка по ключам с объединением одинаковых значений . unionByWith key merge a b = go (s a) (s b) where s = mergeSame . sortBy (comparing key) mergeSame [] = [] merg...
a5a9d1a2d3938a81fb4805d6fbf718eb60f75ac85849fa3e956f190d6334cd93
clojure-interop/aws-api
AWSResourceGroupsClient.clj
(ns com.amazonaws.services.resourcegroups.AWSResourceGroupsClient "Client for accessing Resource Groups. All service calls made using this client are blocking, and will not return until the service call completes. AWS Resource Groups AWS Resource Groups lets you organize AWS resources such as Amazon EC2 insta...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.resourcegroups/src/com/amazonaws/services/resourcegroups/AWSResourceGroupsClient.clj
clojure
it only deletes the group structure.
(ns com.amazonaws.services.resourcegroups.AWSResourceGroupsClient "Client for accessing Resource Groups. All service calls made using this client are blocking, and will not return until the service call completes. AWS Resource Groups AWS Resource Groups lets you organize AWS resources such as Amazon EC2 insta...
f4469d4964530faf0ee91fcd2606373e60dc8b150bd8f359dcc94859f20d0d8a
cljfx/cljfx
number_axis.clj
(ns cljfx.fx.number-axis "Part of a public API" (:require [cljfx.composite :as composite] [cljfx.lifecycle :as lifecycle] [cljfx.fx.value-axis :as fx.value-axis]) (:import [javafx.scene.chart NumberAxis])) (set! *warn-on-reflection* true) (def props (merge fx.value-axis/props (...
null
https://raw.githubusercontent.com/cljfx/cljfx/543f7409290051e9444771d2cd86dadeb8cdce33/src/cljfx/fx/number_axis.clj
clojure
(ns cljfx.fx.number-axis "Part of a public API" (:require [cljfx.composite :as composite] [cljfx.lifecycle :as lifecycle] [cljfx.fx.value-axis :as fx.value-axis]) (:import [javafx.scene.chart NumberAxis])) (set! *warn-on-reflection* true) (def props (merge fx.value-axis/props (...
7caa624823a7b9533c03edc0773c72b85c50d4356e852b36131f8f1840b9305e
gildor478/ocaml-fileutils
FilePath.ml
(******************************************************************************) (* ocaml-fileutils: files and filenames common operations *) (* *) Copyright ( C ) 2003 - 2014 , (* ...
null
https://raw.githubusercontent.com/gildor478/ocaml-fileutils/9ad8d2ee342c551391f2a9873de01982d24b36d5/src/lib/fileutils/FilePath.ml
ocaml
**************************************************************************** ocaml-fileutils: files and filenames common operations This libra...
Copyright ( C ) 2003 - 2014 , the Free Software Foundation ; either version 2.1 of the License , or ( at You should have received a copy of the GNU Lesser General Public License along with this library ; if not , write to the Free Software Foundation , Inc. , 51 Franklin St , Fifth Floor , Bo...
31d103554673c524fe78753154464ab4b1bcd9947bb03943c43fb379492f1aa7
dongcarl/guix
jose.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2018 < > Copyright © 2021 < > ;;; ;;; 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 published by the Free Software Foundation ;...
null
https://raw.githubusercontent.com/dongcarl/guix/d2b30db788f1743f9f8738cb1de977b77748567f/gnu/packages/jose.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 © 2018 < > Copyright © 2021 < > 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 jose) #:use-module ((guix licenses) #:prefix license:)...
e5d9784ed2d2352fb36e166bed78fbd208706a9b0cd88f162bbf0b914d582aba
Helkafen/wai-middleware-metrics
Metrics.hs
{-# LANGUAGE OverloadedStrings #-} | Module : Network . Wai . Metrics License : : experimental A < WAI > middleware to collect the following < -12-11-24-day-of-hackage-ekg.html EKG > metrics from compatible web servers : * number of requests ( counter @wai.request_count@ ) * number of res...
null
https://raw.githubusercontent.com/Helkafen/wai-middleware-metrics/2d2d9fd6ade1e07b2bae129da6af0a9fa5c5a9e5/Network/Wai/Metrics.hs
haskell
# LANGUAGE OverloadedStrings # Compile with GHC option ` -with - rtsopts=-T ` for GC metrics Compile with GHC option `-with-rtsopts=-T` for GC metrics | Register in EKG a number of metrics related to web server activity using empty namespace. * @wai.request_count@ * @wai.response_status_1xx@ * @wai.response_status_...
| Module : Network . Wai . Metrics License : : experimental A < WAI > middleware to collect the following < -12-11-24-day-of-hackage-ekg.html EKG > metrics from compatible web servers : * number of requests ( counter @wai.request_count@ ) * number of response by status code , broken down ...
75a865939e8ecc19e440fb1671d983f3b26abf4a25382fc108731f50a1f74656
robertmeta/cowboy-examples
hello_world_rest.erl
-module(hello_world_rest). -export([start/0, start/2, stop/0]). start() -> application:start(cowboy), application:start(hello_world_rest). start(_Type, _Args) -> Dispatch = [ {'_', [{'_', hello_world_rest_handler, []}]} ], cowboy:start_listener(my_http_listener, 1, cowboy_tcp_trans...
null
https://raw.githubusercontent.com/robertmeta/cowboy-examples/d03c289c9fb0d750eca11e3f1671e74d1841bd09/apps/hello_world_rest/src/hello_world_rest.erl
erlang
-module(hello_world_rest). -export([start/0, start/2, stop/0]). start() -> application:start(cowboy), application:start(hello_world_rest). start(_Type, _Args) -> Dispatch = [ {'_', [{'_', hello_world_rest_handler, []}]} ], cowboy:start_listener(my_http_listener, 1, cowboy_tcp_trans...
35f282c6dd3ae947aa87e4976cc695ead482045a426c5b10c2f992627d9ddc8f
barbuz/Husk
InputParser.hs
Parser for recognizing types of inputs module InputParser where import Expr import Infer import Debug import Text.Parsec import Data.List (intercalate,nub) import Control.Monad (foldM) type InputParser = Parsec String () (Maybe (String, Type)) unifyInputs :: Type -> Type -> Maybe Type unifyInputs t1 t2 | trace' ...
null
https://raw.githubusercontent.com/barbuz/Husk/40fbd352d5a6a9a709ea0901756fa3e0557e2063/InputParser.hs
haskell
Parser for recognizing types of inputs module InputParser where import Expr import Infer import Debug import Text.Parsec import Data.List (intercalate,nub) import Control.Monad (foldM) type InputParser = Parsec String () (Maybe (String, Type)) unifyInputs :: Type -> Type -> Maybe Type unifyInputs t1 t2 | trace' ...
f72fa3c6d86e63337e75c744eadd65c7257a06f3e8dca4189047ae0266a03675
mentat-collective/emmy
interpolate_test.cljc
#_"SPDX-License-Identifier: GPL-3.0" (ns emmy.polynomial.interpolate-test (:require [clojure.test :refer [is deftest testing use-fixtures]] [emmy.generic :as g] [emmy.numsymb] [emmy.polynomial.gcd :as pg] [emmy.polynomial.interpolate :as pi] [emmy.simplify ...
null
https://raw.githubusercontent.com/mentat-collective/emmy/90a1de10e78187c70d546c3cfd63c8d32b783bed/test/emmy/polynomial/interpolate_test.cljc
clojure
#_"SPDX-License-Identifier: GPL-3.0" (ns emmy.polynomial.interpolate-test (:require [clojure.test :refer [is deftest testing use-fixtures]] [emmy.generic :as g] [emmy.numsymb] [emmy.polynomial.gcd :as pg] [emmy.polynomial.interpolate :as pi] [emmy.simplify ...
74810568dbd518a068021c77804a79d8ba24a4759ab9302e80d39069830a1549
mukul-rathi/bolt
good_consume_variable.ml
open Core open Print_typed_ast let%expect_test "Consume variable" = print_typed_ast " class Foo { capability linear Bar; const int f : Bar; const int g : Bar ; const int h : Bar; } class Choco { capability local Late; const int f : Late; } class Bana { ...
null
https://raw.githubusercontent.com/mukul-rathi/bolt/1faf19d698852fdb6af2ee005a5f036ee1c76503/tests/frontend/expect/typing/good_consume_variable.ml
ocaml
open Core open Print_typed_ast let%expect_test "Consume variable" = print_typed_ast " class Foo { capability linear Bar; const int f : Bar; const int g : Bar ; const int h : Bar; } class Choco { capability local Late; const int f : Late; } class Bana { ...
e06c7dc7f228b599635b3defab740120c72d566eae7a18b48933701a93d1fbbf
bob-cd/wendy
impl.clj
(ns wendy.impl) (defn bail! [ex] (println (str "Error: " ex)) (System/exit 1)) (defn try! [f] (try (let [resp (f)] (if (and (map? resp) (instance? Exception (:error resp))) (bail! (:error resp)) resp)) (catch Exception e (bail! e))))
null
https://raw.githubusercontent.com/bob-cd/wendy/9e7399a261d836d994a3154b1c2084cda37d72fb/src/wendy/impl.clj
clojure
(ns wendy.impl) (defn bail! [ex] (println (str "Error: " ex)) (System/exit 1)) (defn try! [f] (try (let [resp (f)] (if (and (map? resp) (instance? Exception (:error resp))) (bail! (:error resp)) resp)) (catch Exception e (bail! e))))
76951417e58419723fc59cdfbff00032a60d2790b044e78dd6ee2614884c6b53
ml4tp/tcoq
typing.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/ml4tp/tcoq/7a78c31df480fba721648f277ab0783229c8bece/pretyping/typing.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * This module provides the typing ma...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Term open Environ open E...
736d0ab35a369202e5e354b1b5a4730088ebfddb29f722e81ff160a5965d2abe
borodust/alien-works-delivery
blobs.lisp
(cl:in-package :cl-user) ;; ;; INPUT: ;; *bodge-blob-systems* ;; *foreign-library-dir* ;; ;; FROM build.lisp: ;; *delivery-bundle-directory* ;; *target-features* ;; (when *bodge-blob-systems* (asdf:load-system :bodge-blobs-support)) (when *bodge-blob-systems* (let ((dst-dir (dir *delivery-bundle-directory...
null
https://raw.githubusercontent.com/borodust/alien-works-delivery/604bae3c93be96413aec150101981142ae0bd884/delivery/scripts/blobs.lisp
lisp
INPUT: *bodge-blob-systems* *foreign-library-dir* FROM build.lisp: *delivery-bundle-directory* *target-features*
(cl:in-package :cl-user) (when *bodge-blob-systems* (asdf:load-system :bodge-blobs-support)) (when *bodge-blob-systems* (let ((dst-dir (dir *delivery-bundle-directory* *foreign-library-dir*)) (libraries (loop for system in *bodge-blob-systems* append (bodge-blobs-support:find-syst...
33a68b08c81fbd8911c52f8da34206be63aef6fe14e26f2e0fd30c35cb3d95ea
ocaml-ppx/ocamlformat
break_string_literals.ml
let () = if true then (* Shrinking the margin a bit *) Format.printf "@[<v 2>@{<warning>@{<title>Warning@}@}@,@,\ \ These are @{<warning>NOT@} the Droids you are looking for!@,\ @,\ \ Some more text. Just more letters and words.@,\ \ All this text is left-aligne...
null
https://raw.githubusercontent.com/ocaml-ppx/ocamlformat/3d1c992240f7d30bcb8151285274f44619dae197/test/passing/tests/break_string_literals.ml
ocaml
Shrinking the margin a bit
let () = Format.printf "@[<v 2>@{<warning>@{<title>Warning@}@}@,@,\ \ These are @{<warning>NOT@} the Droids you are looking for!@,\ @,\ \ Some more text. Just more letters and words.@,\ \ All this text is left-aligned because it's part of the UI.@,\ \ ...
090d0869647f36bf1ffdaadde0fb3fbb17287156cafa9023c65f7329bb2e953b
aistrate/Okasaki
SimpleCatenableDeque.hs
-- Source code from -- Purely Functional Data Structures Cambridge University Press , 1998 -- Copyright ( c ) 1998 Cambridge University Press module SimpleCatenableDeque (module CatenableDeque,SimpleCatDeque) where import Prelude hiding (head,tail,last,init,(++)) import CatenableDeque data SimpleC...
null
https://raw.githubusercontent.com/aistrate/Okasaki/cc1473c81d053483bb5e327409346da7fda10fb4/Original/SimpleCatenableDeque.hs
haskell
Source code from Purely Functional Data Structures
Cambridge University Press , 1998 Copyright ( c ) 1998 Cambridge University Press module SimpleCatenableDeque (module CatenableDeque,SimpleCatDeque) where import Prelude hiding (head,tail,last,init,(++)) import CatenableDeque data SimpleCatDeque d a = Shallow (d a) | Deep (d a) (SimpleCa...
97171f5f4ab78968343c34d214e4696e7fff9d1e5736ecf96bcfaecab9f035b6
pixlsus/registry.gimp.org_static
scale_pattern.scm
; scale_pattern.scm by ; Version 1.2 ( 20090413 ) ; Description ; Scales the selected pattern and puts it in the clipboard to allow it to be used as a pattern ; ; Changes 1.1 - Added interactive calls to sharpen the pattern . 1.2 - If larger than 512x512 will save it , refresh patterns , and set the active...
null
https://raw.githubusercontent.com/pixlsus/registry.gimp.org_static/ffcde7400f402728373ff6579947c6ffe87d1a5e/registry.gimp.org/files/scale_pattern.scm
scheme
scale_pattern.scm Description Scales the selected pattern and puts it in the clipboard to allow it to be used as a pattern Changes License: This program is free software; you can redistribute it and/or modify either version 2 of the License , or (at your option) any later version. This program is distribu...
by Version 1.2 ( 20090413 ) 1.1 - Added interactive calls to sharpen the pattern . 1.2 - If larger than 512x512 will save it , refresh patterns , and set the active pattern to be the saved file . it under the terms of the GNU General Public License as published by The GNU Public License is available at...
bb80a1c53a59434b1c12c25732d5cae7f21b3f9cda1f62743fb55ba62dbbb4da
clj-kondo/clj-kondo
schema.clj
(ns clj-kondo.impl.schema {:no-doc true} (:require [clj-kondo.impl.utils :as utils])) (defn remove-schemas-from-children [expr] (let [children (:children expr) {:keys [:new-children :schemas]} (loop [[fst-child & rest-children] children res {:new-children [] ...
null
https://raw.githubusercontent.com/clj-kondo/clj-kondo/ed9f29052ecf54ee5fe90ebe53f4544382e46e9f/src/clj_kondo/impl/schema.clj
clojure
Scratch
(ns clj-kondo.impl.schema {:no-doc true} (:require [clj-kondo.impl.utils :as utils])) (defn remove-schemas-from-children [expr] (let [children (:children expr) {:keys [:new-children :schemas]} (loop [[fst-child & rest-children] children res {:new-children [] ...
4b15ae5fab591d1b333ec0dc01caea25b40b87b293058e08946bef8ff8dabae7
remixlabs/wasicaml
t010_funcall4.ml
let rec f1 a b c = a * f2 b c and f2 b c = b + c let () = let x = f1 3 4 5 in Testprint.int "x" x
null
https://raw.githubusercontent.com/remixlabs/wasicaml/74ff72535aa8e49ab94a05d9c32c059ce264c1bb/test/t010_funcall4.ml
ocaml
let rec f1 a b c = a * f2 b c and f2 b c = b + c let () = let x = f1 3 4 5 in Testprint.int "x" x
88956b2099fbed472721bb4582dc0b4d44465aeb612107b8abecbb360fccfcb5
bondy-io/bondy
bondy_registry_entry_SUITE.erl
%% ============================================================================= %% bondy_realm_SUITE.erl - %% Copyright ( c ) 2016 - 2022 Leapsight . 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...
null
https://raw.githubusercontent.com/bondy-io/bondy/a1267e7e5526db24f278e12315020753f3168b44/apps/bondy/test/bondy_registry_entry_SUITE.erl
erlang
============================================================================= bondy_realm_SUITE.erl - 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 O...
Copyright ( c ) 2016 - 2022 Leapsight . 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(bondy_registry_entry_SUITE). -include_lib("common_test/include/ct.hrl"). -include_lib("stdlib/include...
21e9d152de584af19cbaa85b329870d57c631e6fa6a61b6f3e65f3ec6a2369ae
futurice/haskell-mega-repo
TH.hs
# LANGUAGE TemplateHaskell # module Futurice.JavaScript.TH ( embedJS, ) where import Futurice.JavaScript import Futurice.Prelude import Language.Haskell.TH (Exp, Q, runIO) import Prelude () import qualified Data.Text.IO as T -- | Create 'JS' from a file, compile-time verifying it can be parsed. -- -- > $(emb...
null
https://raw.githubusercontent.com/futurice/haskell-mega-repo/95fe8e33ad6426eb6e52a9c23db4aeffd443b3e5/futurice-foundation/src/Futurice/JavaScript/TH.hs
haskell
| Create 'JS' from a file, compile-time verifying it can be parsed. > $(embedJS "supersource.js")
# LANGUAGE TemplateHaskell # module Futurice.JavaScript.TH ( embedJS, ) where import Futurice.JavaScript import Futurice.Prelude import Language.Haskell.TH (Exp, Q, runIO) import Prelude () import qualified Data.Text.IO as T embedJS :: FilePath -> Q Exp embedJS fp = do contents <- runIO $ T.readFile fp ...
e07948c3b892673d50444ad59bb72cdec8aa8059cada8070c9f15222439db83e
gbour/wave
mqtt_msg.erl
%% Wave - MQTT Broker Copyright ( C ) 2014 - 2016 - %% %% 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 , version 3 of the License . %% %% This program is distribut...
null
https://raw.githubusercontent.com/gbour/wave/fe5b78408a7c6e723b19cd454068958058e5e072/apps/wave/src/mqtt_msg.erl
erlang
This program is free software: you can redistribute it and/or modify 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 along with this program. If not, see ...
Wave - MQTT Broker Copyright ( C ) 2014 - 2016 - it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , version 3 of the License . GNU Affero General Public License for more details . You should have received a copy of the GNU Affero Ge...
5753137585be8912d70db3eef4ccb741f99ff77d13671015b6731fef008e0bb4
commercialhaskell/path
Path.hs
-- | This library provides a well-typed representation of paths in a filesystem -- directory tree. -- Both " Path . " and " Path . Windows " provide the same interface . This -- module will reexport the appropriate module for your platform. # LANGUAGE CPP # #if defined(mingw32_HOST_OS) module Path(module Path.Wind...
null
https://raw.githubusercontent.com/commercialhaskell/path/2bec48c17be4b82f7dabc8e2dd167444e558e9a5/src/Path.hs
haskell
| This library provides a well-typed representation of paths in a filesystem directory tree. module will reexport the appropriate module for your platform.
Both " Path . " and " Path . Windows " provide the same interface . This # LANGUAGE CPP # #if defined(mingw32_HOST_OS) module Path(module Path.Windows) where import Path.Windows #else module Path(module Path.Posix) where import Path.Posix #endif
0274dd0a73fa139a51b113593a901dc94fff820c79abaf390009feda563f307b
jyh/metaprl
meta_context_terms2.mli
* Context rewrites . * * ---------------------------------------------------------------- * * @begin[license ] * Copyright ( C ) 2005 - 2006 Mojave Group , Caltech * * This program is free software ; you can redistribute it and/or * modify it under the terms of the GNU General Public License ...
null
https://raw.githubusercontent.com/jyh/metaprl/51ba0bbbf409ecb7f96f5abbeb91902fdec47a19/theories/meta/extensions/meta_context_terms2.mli
ocaml
* In the common case, the sequents are defined over terms. * Split the hyp. ! * @docoff * * -*- * Local Variables: * Caml-master: "compile" * End: * -*-
* Context rewrites . * * ---------------------------------------------------------------- * * @begin[license ] * Copyright ( C ) 2005 - 2006 Mojave Group , Caltech * * This program is free software ; you can redistribute it and/or * modify it under the terms of the GNU General Public License ...
b884e2b64964dbd3ee30d62814af1c9ae16cf1bced3788ef86551218b001ee10
rabbitmq/rabbit-socks
rabbit_socks.erl
-module(rabbit_socks). -behaviour(application). -export([start/2, stop/1]). %% For other apps to drive rabbit-socks -export([start_listener/3]). start(normal, []) -> {ok, SupPid} = rabbit_socks_sup:start_link(), case application:get_env(listeners) of undefined -> throw({error, socks_no_li...
null
https://raw.githubusercontent.com/rabbitmq/rabbit-socks/c2f2c894c2537f028c1eb01bccc59b74736c1eee/src/rabbit_socks.erl
erlang
For other apps to drive rabbit-socks
-module(rabbit_socks). -behaviour(application). -export([start/2, stop/1]). -export([start_listener/3]). start(normal, []) -> {ok, SupPid} = rabbit_socks_sup:start_link(), case application:get_env(listeners) of undefined -> throw({error, socks_no_listeners_given}); {ok, Listeners}...
d7573b1a887907710c548e54caa28a0654bc73839e99ef9a40a2ae7afc6acfc1
SevereOverfl0w/bukkure
util.clj
;; TODO: Check this file manually (ns bukkure.util (:require [clojure.set :as set]) (:require [bukkure.logging :as log]) (:import (java.net ServerSocket InetSocketAddress)) (:import (java.io IOException)) ) (defmacro map-enums [enumclass] `(apply merge (map #(hash-map (keyword (.toLowerCase (.name %))) %) ...
null
https://raw.githubusercontent.com/SevereOverfl0w/bukkure/2091d70191127e617c1a7ce12f1c7b96585f124e/src/bukkure/util.clj
clojure
TODO: Check this file manually
(ns bukkure.util (:require [clojure.set :as set]) (:require [bukkure.logging :as log]) (:import (java.net ServerSocket InetSocketAddress)) (:import (java.io IOException)) ) (defmacro map-enums [enumclass] `(apply merge (map #(hash-map (keyword (.toLowerCase (.name %))) %) (~(symbol (apply str (name enumcla...
e1b690290642cdcc060be13754f92b7330a1098550db34308f6997027848f324
typelead/etlas
Parsec.hs
# LANGUAGE CPP # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE Rank2Types #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TupleSections # {-# LANGUAGE FlexibleContexts #-} ----------------------------------------------------------------------------- -- | Module : Distri...
null
https://raw.githubusercontent.com/typelead/etlas/bbd7c558169e1fda086e759e1a6f8c8ca2807583/etlas-cabal/Distribution/PackageDescription/Parsec.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE Rank2Types # # LANGUAGE FlexibleContexts # --------------------------------------------------------------------------- | License : BSD3 Maintainer : Portability : portable This defined parsers and partial pretty printers for the @.cabal@ format. *...
# LANGUAGE CPP # # LANGUAGE ScopedTypeVariables # # LANGUAGE TupleSections # Module : Distribution . PackageDescription . Parsec Copyright : 2003 - 2005 module Distribution.PackageDescription.Parsec ( readGenericPackageDescription, parseGenericPackageDescription, ...
70bbb9f75121fd5f2c0a90e1f415593d2b1e1da1871776bcce90360c605c3b6f
noinia/hgeometry
BallSpec.hs
module Geometry.BallSpec where import Control.Lens import Control.Monad (forM_) import Data.Ext import Geometry.Ball import Geometry.LineSegment import Geometry.Point import Data.Intersection import Data.RealNumber.Rational import Test.Hspec import Test.QuickCheck import Test.Util ------------------------------------...
null
https://raw.githubusercontent.com/noinia/hgeometry/89cd3d3109ec68f877bf8e34dc34b6df337a4ec1/hgeometry/test/src/Geometry/BallSpec.hs
haskell
------------------------------------------------------------------------------
module Geometry.BallSpec where import Control.Lens import Control.Monad (forM_) import Data.Ext import Geometry.Ball import Geometry.LineSegment import Geometry.Point import Data.Intersection import Data.RealNumber.Rational import Test.Hspec import Test.QuickCheck import Test.Util type R = RealNumber 5 spec :: Spe...
a1af0e05047e59cfef239f8eb6b494d98c4938c50a57b4d12ea5276ab1e0c0b9
tsloughter/rebar3_tests
graph_map_sup.erl
%%%------------------------------------------------------------------- %% @doc graph_map top level supervisor. %% @end %%%------------------------------------------------------------------- -module(graph_map_sup). -behaviour(supervisor). %% API -export([start_link/0]). %% Supervisor callbacks -export([init/1]). -d...
null
https://raw.githubusercontent.com/tsloughter/rebar3_tests/090bfef7d3a4790bb6b16e4c38df6e4c0460b4b2/sub_app_eleveldb/apps/graph_map/src/graph_map_sup.erl
erlang
------------------------------------------------------------------- @doc graph_map top level supervisor. @end ------------------------------------------------------------------- API Supervisor callbacks ==================================================================== API functions =============================...
-module(graph_map_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). -define(SERVER, ?MODULE). start_link() -> supervisor:start_link({local, ?SERVER}, ?MODULE, []). Child : : { Id , StartFunc , Restart , Shutdown , Type , Modules } init([]) -> {ok, { {one_for_all, 0, 1}, []} }....
dae9a251997e60073de2116f8acf760910c7b68264933c95c3bddb8782ea33a9
monadbobo/ocaml-core
int_intf.ml
open Interfaces module type S = sig type t include Binable with type t := t include Comparable.S_binable with type t := t include Floatable with type t := t include Hashable.S_binable with type t := t include Sexpable with type t := t include Stringable wi...
null
https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/core/lib/int_intf.ml
ocaml
open Interfaces module type S = sig type t include Binable with type t := t include Comparable.S_binable with type t := t include Floatable with type t := t include Hashable.S_binable with type t := t include Sexpable with type t := t include Stringable wi...
881d26dd7ff4a6639fd23ca6bde0902200bedc93658bff8d583ebf02c915bb4b
holdybot/holdybot
handler.clj
(ns parky.test.handler (:require [clojure.test :refer :all] [ring.mock.request :refer :all] [parky.handler :refer :all] [parky.middleware.formats :as formats] [muuntaja.core :as m] [mount.core :as mount])) (defn parse-json [body] (m/decode formats/instance "application/json" body)) (use-fi...
null
https://raw.githubusercontent.com/holdybot/holdybot/e65007a3113c89b3f457b9d966d6bf305983c975/test/clj/parky/test/handler.clj
clojure
(ns parky.test.handler (:require [clojure.test :refer :all] [ring.mock.request :refer :all] [parky.handler :refer :all] [parky.middleware.formats :as formats] [muuntaja.core :as m] [mount.core :as mount])) (defn parse-json [body] (m/decode formats/instance "application/json" body)) (use-fi...
a87acb3bdeb3bd77d20fd02966950e75cf40e7fe624993844c99c1e0f5b476e5
lspitzner/brittany
Test477.hs
-- brittany { lconfig_columnAlignMode: { tag: ColumnAlignModeDisabled }, lconfig_indentPolicy: IndentPolicyLeft } import TestJustAbitToLongModuleNameLikeThisOneI as T import TestJustShortEnoughModuleNameLikeThisOn as T
null
https://raw.githubusercontent.com/lspitzner/brittany/a15eed5f3608bf1fa7084fcf008c6ecb79542562/data/Test477.hs
haskell
brittany { lconfig_columnAlignMode: { tag: ColumnAlignModeDisabled }, lconfig_indentPolicy: IndentPolicyLeft }
import TestJustAbitToLongModuleNameLikeThisOneI as T import TestJustShortEnoughModuleNameLikeThisOn as T
580f1b533f864c556d5117c1a2ceec0ef34f8b546cfb838dd2ef1ff289abfcc3
ChrisPenner/proton
Layers.hs
# LANGUAGE TypeFamilies # # LANGUAGE TupleSections # module Examples.Layers where import Proton import Data.Profunctor import Data.Profunctor.Rep import Data.Profunctor.MStrong import Proton.Algebraic import qualified Data.Map as M import Data.Foldable import Data.Maybe imgLayers :: [[Int]] imgLayers = [ [0, 1, 0, 1]...
null
https://raw.githubusercontent.com/ChrisPenner/proton/4ce22d473ce5bece8322c841bd2cf7f18673d57d/src/Examples/Layers.hs
haskell
done :: [Int] test :: IO () test = do
# LANGUAGE TypeFamilies # # LANGUAGE TupleSections # module Examples.Layers where import Proton import Data.Profunctor import Data.Profunctor.Rep import Data.Profunctor.MStrong import Proton.Algebraic import qualified Data.Map as M import Data.Foldable import Data.Maybe imgLayers :: [[Int]] imgLayers = [ [0, 1, 0, 1]...
861a9f16fe8d4bac7c72cfb2dc25357df9b13b62a792f1b0222c62863230cf0d
mbj/stratosphere
PipeTargetRedshiftDataParametersProperty.hs
module Stratosphere.Pipes.Pipe.PipeTargetRedshiftDataParametersProperty ( PipeTargetRedshiftDataParametersProperty(..), mkPipeTargetRedshiftDataParametersProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosp...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/pipes/gen/Stratosphere/Pipes/Pipe/PipeTargetRedshiftDataParametersProperty.hs
haskell
module Stratosphere.Pipes.Pipe.PipeTargetRedshiftDataParametersProperty ( PipeTargetRedshiftDataParametersProperty(..), mkPipeTargetRedshiftDataParametersProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosp...
e468410bef47f6ae8e0b668a5565abc3e220e1c8b1b7ec46eef1ea82c9e20c28
exercism/clojure
exemplar.clj
(ns bird-watcher) (def last-week [0 2 5 3 7 8 4]) (defn today [birds] (last birds)) (defn inc-bird [birds] (update birds (dec (count birds)) inc)) (defn day-without-birds? [birds] (pos? (count (filter zero? birds)))) (defn n-days-count [birds n] (reduce + (take n birds))) (defn busy-days [birds] (count ...
null
https://raw.githubusercontent.com/exercism/clojure/42df085688c9bf0bbccf8dce33d995287f7a1bc8/exercises/concept/bird-watcher/.meta/exemplar.clj
clojure
(ns bird-watcher) (def last-week [0 2 5 3 7 8 4]) (defn today [birds] (last birds)) (defn inc-bird [birds] (update birds (dec (count birds)) inc)) (defn day-without-birds? [birds] (pos? (count (filter zero? birds)))) (defn n-days-count [birds n] (reduce + (take n birds))) (defn busy-days [birds] (count ...
e4514a369a0f3e742f5403764a2eebeb0f8991ed29572e5bb612252fe9344c44
haskell-beam/beam
Connection.hs
# OPTIONS_GHC -fno - warn - orphans # {-# LANGUAGE BangPatterns #-} # LANGUAGE CPP # # LANGUAGE DataKinds # # LANGUAGE InstanceSigs # # LANGUAGE UndecidableInstances # # LANGUAGE GeneralizedNewtypeDeriving # module Database.Beam.Sqlite.Connection ( Sqlite(..), SqliteM(..) , sqliteUriSyntax , runBeamSqlite, runB...
null
https://raw.githubusercontent.com/haskell-beam/beam/8bcefd8b50d1c34359e77709de419cd214fe3bb1/beam-sqlite/Database/Beam/Sqlite/Connection.hs
haskell
# LANGUAGE BangPatterns # 'MonadBeam' and the <-beam.github.io/beam/ user guide> for more information on how to use this backend. <-beam.github.io/beam/ user guide> for more information function, called or each query submitted on the connection. * Equality checks TODO we should somehow allow contsraints based on ...
# OPTIONS_GHC -fno - warn - orphans # # LANGUAGE CPP # # LANGUAGE DataKinds # # LANGUAGE InstanceSigs # # LANGUAGE UndecidableInstances # # LANGUAGE GeneralizedNewtypeDeriving # module Database.Beam.Sqlite.Connection ( Sqlite(..), SqliteM(..) , sqliteUriSyntax , runBeamSqlite, runBeamSqliteDebug * Emulated @...
c38e40173fcba6bf0d013a408ae37409f8e064aa87fcec52e67ecbf0751e3a1c
jumarko/web-development-with-clojure
handler.clj
(ns reporting-examples.test.handler (:require [clojure.test :refer :all] [ring.mock.request :refer :all] [reporting-examples.handler :refer :all])) (deftest test-app (testing "main route" (let [response ((app) (request :get "/"))] (is (= 200 (:status response))))) (testing "not...
null
https://raw.githubusercontent.com/jumarko/web-development-with-clojure/dfff6e40c76b64e9fcd440d80c7aa29809601b6b/examples/reporting-examples/test/clj/reporting_examples/test/handler.clj
clojure
(ns reporting-examples.test.handler (:require [clojure.test :refer :all] [ring.mock.request :refer :all] [reporting-examples.handler :refer :all])) (deftest test-app (testing "main route" (let [response ((app) (request :get "/"))] (is (= 200 (:status response))))) (testing "not...
6d13c10f3613b213806b59ff723a2d93bb5530a08845ee6c8a4c2f5b9acc69b9
VMatthijs/CHAD
Simplify.hs
# LANGUAGE DataKinds # # LANGUAGE EmptyCase # # LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} # LANGUAGE ImplicitParams # # LANGUAGE LambdaCase # {-# LANGUAGE RankNTypes #-} # LANGUAGE TypeOperators # # LANGUAGE ViewPatterns # -- | Simplify terms in the concrete language to aid legibility. -- -- This should only ...
null
https://raw.githubusercontent.com/VMatthijs/CHAD/755fc47e1f8d1c3d91455f123338f44a353fc265/src/Concrete/Simplify.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes # | Simplify terms in the concrete language to aid legibility. This should only do simplifications that any basic compiler would also perform. The simplifier in this module is /parametrised/: all the individual simplifications can be turned on or off by setting the corres...
# LANGUAGE DataKinds # # LANGUAGE EmptyCase # # LANGUAGE FlexibleContexts # # LANGUAGE ImplicitParams # # LANGUAGE LambdaCase # # LANGUAGE TypeOperators # # LANGUAGE ViewPatterns # module Concrete.Simplify ( simplifyCTerm, Settings(..), allSettings, ) where import Data.GADT.Compare (geq) import Data.Type.Equality...
6e690e126d92f74834845e557e53f529b1c1c23f5126dbc17f4a8b246bc30c24
brendanhay/gogol
Delete.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # {-# LANGUAGE St...
null
https://raw.githubusercontent.com/brendanhay/gogol/fffd4d98a1996d0ffd4cf64545c5e8af9c976cda/lib/services/gogol-logging/gen/Gogol/Logging/Organizations/Exclusions/Delete.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated Deletes an exclusion in the _Default sink. * Resource ** Constructing a Request | Deletes an exclusion in the _Default sink. /See:/ 'newLoggingOrganizationsExclusionsDelete' smart constructor. | V1 error format. | OAuth ac...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators...
82acc8ee095243318aec14de76cc5b377cb9fdd66bf12d7ba43a0af7c96f2ef8
ktakashi/sagittarius-scheme
enums.scm
;; -*- scheme -*- #!core (library (core enums) (export make-enumeration enum-set? enum-set-universe enum-set-indexer enum-set-constructor enum-set->list enum-set-member? enum-set-subset? enum-set=? enum-set-union enum-set-intersection enum-set-difference e...
null
https://raw.githubusercontent.com/ktakashi/sagittarius-scheme/45ee618323dcbb5fde7072d4872a35bdacb387e1/lib/core/enums.scm
scheme
-*- scheme -*- use record api directory from mosh [end] end of file Local Variables: End:
#!core (library (core enums) (export make-enumeration enum-set? enum-set-universe enum-set-indexer enum-set-constructor enum-set->list enum-set-member? enum-set-subset? enum-set=? enum-set-union enum-set-intersection enum-set-difference enum-set-complement...
3282f8806bae5d2bc45b3976d6eb7d9d92eef6f4a70f75e654b85eedc87ae5f8
slyrus/mcclim-old
glimpse-present-window.lisp
(in-package :glimpse) ;;; Convert a basic :select gesture on a PORT presentation type to a ;;; 'describe object' command. This needs to be applicable when ;;; we're in the 'standard' input context for an interactor pane. (define-presentation-to-command-translator port-select-to-describe-command (port ...
null
https://raw.githubusercontent.com/slyrus/mcclim-old/354cdf73c1a4c70e619ccd7d390cb2f416b21c1a/Backends/beagle/glimpse/glimpse-present-window.lisp
lisp
Convert a basic :select gesture on a PORT presentation type to a 'describe object' command. This needs to be applicable when we're in the 'standard' input context for an interactor pane. from-type command-name - maybe com-describe-presentation? command table containing command activate on :select (left-button cl...
(in-package :glimpse) (define-presentation-to-command-translator port-select-to-describe-command :documentation "Invoke the 'describe presentation' command on the selected port" :pointer-documentation ((object stream) (format stream "Describe port ~A" (type-of object))) : priority 1123 (object) (lis...
ed19e1cab385bc8cfbd9be691026f6dc8c4f936772b9c66ff52a14a44f782e2f
merijn/broadcast-chan
IOTest.hs
{-# LANGUAGE BangPatterns #-} import Control.Monad (void) import Data.Foldable (forM_, foldlM) import Data.Set (Set) import qualified Data.Set as S import BroadcastChan import BroadcastChan.Test sequentialSink :: Foldable f => f a -> (a -> IO b) -> IO () sequentialSink set f = forM_ set (void . f) parallelSink ...
null
https://raw.githubusercontent.com/merijn/broadcast-chan/1a884f9ffa6f9f5628f575aec1e06502c853ab9f/broadcast-chan-tests/tests/IOTest.hs
haskell
# LANGUAGE BangPatterns #
import Control.Monad (void) import Data.Foldable (forM_, foldlM) import Data.Set (Set) import qualified Data.Set as S import BroadcastChan import BroadcastChan.Test sequentialSink :: Foldable f => f a -> (a -> IO b) -> IO () sequentialSink set f = forM_ set (void . f) parallelSink :: Foldable f => Handler IO a ...
1436d6f8441c7bd6ee6684ebb970c4f4685ae07adca0630547da3ebaf33cb2db
bmeurer/ocaml-arm
ocaml_specific.mli
(***********************************************************************) (* ocamlbuild *) (* *) , , projet Gallium , INRIA Rocquencourt (* ...
null
https://raw.githubusercontent.com/bmeurer/ocaml-arm/43f7689c76a349febe3d06ae7a4fc1d52984fd8b/ocamlbuild/ocaml_specific.mli
ocaml
********************************************************************* ocamlbuild ...
, , projet Gallium , INRIA Rocquencourt Copyright 2007 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . Original author : val init : unit -> unit
077d392c23ba88bf755ee64933cc2776520d542b4af5f16207266508a8685a9b
cmsc430/www
let-x-err.rkt
#lang racket (let ((x #f)) (unbox #f))
null
https://raw.githubusercontent.com/cmsc430/www/0809867532b8ef516029ac38093a145db5b424ea/langs/test-programs/hustle/let-x-err.rkt
racket
#lang racket (let ((x #f)) (unbox #f))
092951646e65fa5b7439ecf0f192eff94ae89c5ee105022d4aeb08ca9920dbdd
ormf/cm
fullmix-examples.lisp
(cd ) (load "/Volumes/Classes/Music 404b/Samples/sdb.lisp") (dac "sdb:pp;a4.aiff") (defparameter sf (namestring (truename "sdb:pp;a4.aiff"))) (sound-chans sf) (sound-srate sf) (sound-duration sf) (sound-comment sf) (sound-data-format sf) (sound-format-name (sound-data-format sf)) (sound-header-type sf) (sound-type...
null
https://raw.githubusercontent.com/ormf/cm/26843eec009bd6c214992a8e67c49fffa16d9530/doc/404B-SoundSynth-AlgoComp/www-camil.music.uiuc.edu_16080/classes/404B/sfp/fullmix/fullmix-examples.lisp
lisp
Fullmix
(cd ) (load "/Volumes/Classes/Music 404b/Samples/sdb.lisp") (dac "sdb:pp;a4.aiff") (defparameter sf (namestring (truename "sdb:pp;a4.aiff"))) (sound-chans sf) (sound-srate sf) (sound-duration sf) (sound-comment sf) (sound-data-format sf) (sound-format-name (sound-data-format sf)) (sound-header-type sf) (sound-type...
d26d7cdbb50ccd682f25cacf98a39d7ee0bfae585e1d03dabb55b1346aeb670d
mzp/coq-ide-for-ios
ideal.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/mzp/coq-ide-for-ios/4cdb389bbecd7cdd114666a8450ecf5b5f0391d3/CoqIDE/coq-8.2pl2/plugins/nsatz/ideal.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** Monomials Polynomials **********...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Nullstellensatz with Groebn...
2b4a97ab3409e1a409a90e960b284b573df77b2770b4c8e92bab1652991818f8
huangz1990/SICP-answers
test-17-double-and-halve.scm
(load "test-manager/load.scm") (load "17-double-and-halve.scm") (define-test (test-double) (check (= 4 (double 2))) (check (= 10 (double 5))) ) (define-test (test-halve) (check (= 2 (halve 4))) (check (= 5 (halve 10))) ) (run-registered-tests)
null
https://raw.githubusercontent.com/huangz1990/SICP-answers/15e3475003ef10eb738cf93c1932277bc56bacbe/chp1/code/test-17-double-and-halve.scm
scheme
(load "test-manager/load.scm") (load "17-double-and-halve.scm") (define-test (test-double) (check (= 4 (double 2))) (check (= 10 (double 5))) ) (define-test (test-halve) (check (= 2 (halve 4))) (check (= 5 (halve 10))) ) (run-registered-tests)
d52f9a319516406f98fc546bff3d875830f1ea5880eb960c84cf9c59b31c328f
mirage/ocaml-matrix
http.ml
open Lwt open Cohttp open Cohttp_lwt_unix open Json_encoding exception Json_error of string module Server = struct type scheme = [ `Http | `Https ] let scheme_to_string = function `Http -> "http" | `Https -> "https" type t = {scheme: scheme; host: string; port: int} let pp f {scheme; host; port} = Fmt....
null
https://raw.githubusercontent.com/mirage/ocaml-matrix/2a58d3d41c43404741f2dfdaf1d2d0f3757b2b69/ci-client/http.ml
ocaml
open Lwt open Cohttp open Cohttp_lwt_unix open Json_encoding exception Json_error of string module Server = struct type scheme = [ `Http | `Https ] let scheme_to_string = function `Http -> "http" | `Https -> "https" type t = {scheme: scheme; host: string; port: int} let pp f {scheme; host; port} = Fmt....
d9eff749d3a92fd96f5d2410c91637f3a0b388c85d3b881ec183a19fe1a28f5b
Bogdanp/racket-north
cli.rkt
#lang at-exp racket/base (require db gregor net/url openssl/md5 racket/cmdline racket/format racket/function racket/match racket/port raco/command-name "adapter/base.rkt" "adapter/postgres.rkt" "adapter/sqlite.r...
null
https://raw.githubusercontent.com/Bogdanp/racket-north/d256258e2d485bc425bca327809dbb0eaa7318ac/north/cli.rkt
racket
#lang at-exp racket/base (require db gregor net/url openssl/md5 racket/cmdline racket/format racket/function racket/match racket/port raco/command-name "adapter/base.rkt" "adapter/postgres.rkt" "adapter/sqlite.r...
6bf2de1e4dc897d00ad623f0c2070eaddf3d784cc0c78f1e11c1919dbe473647
UnkindPartition/tasty
Utils.hs
{-# LANGUAGE BangPatterns #-} -- | Note: this module is re-exported as a whole from "Test.Tasty.Runners" module Test.Tasty.Runners.Utils where import Control.Exception import Control.Applicative import Control.Concurrent (mkWeakThreadId, myThreadId) import Control.Monad (forM_) import Data.Typeable (Typeable) Silen...
null
https://raw.githubusercontent.com/UnkindPartition/tasty/0debac85701560e8c96cd3705988c50197cb214e/core/Test/Tasty/Runners/Utils.hs
haskell
# LANGUAGE BangPatterns # | Note: this module is re-exported as a whole from "Test.Tasty.Runners" | Catch possible exceptions that may arise when evaluating a string. For normal (total) strings, this is a no-op. This function should be used to display messages generated by the test suite (such as test result desc...
module Test.Tasty.Runners.Utils where import Control.Exception import Control.Applicative import Control.Concurrent (mkWeakThreadId, myThreadId) import Control.Monad (forM_) import Data.Typeable (Typeable) Silence AMP import warnings import Text.Printf import Foreign.C (CInt) #if MIN_VERSION_base(4,11,0) import GH...
147497d04d30fa53887d43339d518d7bb3cbc25d68b56c1122943b7e285380c2
dancrossnyc/multics
e_window_mgr_.lisp
;;; *********************************************************** ;;; * * * Copyright , ( C ) Honeywell Bull Inc. , 1988 * ;;; * * * Copyright , ( C ) Honeywell Information Systems Inc. , 19...
null
https://raw.githubusercontent.com/dancrossnyc/multics/dc291689edf955c660e57236da694630e2217151/library_dir_dir/system_library_unbundled/source/bound_multics_emacs_.s.archive/e_window_mgr_.lisp
lisp
*********************************************************** * * * * * * * * **************...
* Copyright , ( C ) Honeywell Bull Inc. , 1988 * * Copyright , ( C ) Honeywell Information Systems Inc. , 1982 * * Copyright ( c ) 1978 by Massachusetts Institute of * * Technology and Honeywell Information Systems , Inc. * 1 ) change(84 - 01 - 19,Margolin ) , approve ( ) , ...
43f74866e3eba91f5fb589b010f7bf960a1f2b1e54b3b8951c974fbdf77af4f1
diogob/postgres-websockets
ServerSpec.hs
module ServerSpec (spec) where import Control.Lens import Data.Aeson.Lens import Network.Socket (withSocketsDo) import qualified Network.WebSockets as WS import PostgresWebsockets import PostgresWebsockets.Config import Protolude import Test.Hspec testServerConfig :: AppConfig testServerConfig = AppConfig { con...
null
https://raw.githubusercontent.com/diogob/postgres-websockets/679d471d2682be6529a2447a145d9362648ed732/test/ServerSpec.hs
haskell
module ServerSpec (spec) where import Control.Lens import Data.Aeson.Lens import Network.Socket (withSocketsDo) import qualified Network.WebSockets as WS import PostgresWebsockets import PostgresWebsockets.Config import Protolude import Test.Hspec testServerConfig :: AppConfig testServerConfig = AppConfig { con...
68fe68be87c8e0e285f0cc648adc1c2783acdad2b3e58b0221d6fa411f401c45
geophf/1HaskellADay
Exercise.hs
module Y2018.M02.D27.Exercise where - From -you-solve-these-mensa-puzzles5/ ( 7 ) If works one shift every second day , works once every third day , and works every fifth day , how often do all three colleagues work together ? This problem looks very fizz - buzzy . HOW DO YOU SOLVE THIS ? ...
null
https://raw.githubusercontent.com/geophf/1HaskellADay/514792071226cd1e2ba7640af942667b85601006/exercises/HAD/Y2018/M02/D27/Exercise.hs
haskell
} or you could solve it mathematically to: your choice.
module Y2018.M02.D27.Exercise where - From -you-solve-these-mensa-puzzles5/ ( 7 ) If works one shift every second day , works once every third day , and works every fifth day , how often do all three colleagues work together ? This problem looks very fizz - buzzy . HOW DO YOU SOLVE THIS ? ...
8eecd3a4d2a567db5c520d18fbaaa6c971faf0a1b7d0f2fe80b2d1df572b5a49
mzp/ocaml-hoogle
controller.mli
type t = String of string | Bool of bool | Table of (string * t) list list val format : Chconfig.t list -> Search.t -> (string * t) list * formatter for [ Search.t ] val pagenation : offset:int -> window:int -> 'a list -> (string * t) list * 'a list val available : Chconfig.t list -> t
null
https://raw.githubusercontent.com/mzp/ocaml-hoogle/dbfb2e970d65e41936baa0ba51c7f7596cc6c369/controller.mli
ocaml
type t = String of string | Bool of bool | Table of (string * t) list list val format : Chconfig.t list -> Search.t -> (string * t) list * formatter for [ Search.t ] val pagenation : offset:int -> window:int -> 'a list -> (string * t) list * 'a list val available : Chconfig.t list -> t
bfc29284f078f4858677ce601b7ebe793a29218759987a376b8af0b2400e0773
andorp/bead
TestSet.hs
# LANGUAGE GeneralizedNewtypeDeriving # module Test.Tasty.TestSet ( TestSet , TestName , buildTestTree , runTestSet , group , shrink , add , test , assertEquals , assertProperty , assertSatisfy , ioTest , equals , satisfies , Partition(..) , eqPartitions ) where import Con...
null
https://raw.githubusercontent.com/andorp/bead/280dc9c3d5cfe1b9aac0f2f802c705ae65f02ac2/src/Test/Tasty/TestSet.hs
haskell
# LANGUAGE GeneralizedNewtypeDeriving # module Test.Tasty.TestSet ( TestSet , TestName , buildTestTree , runTestSet , group , shrink , add , test , assertEquals , assertProperty , assertSatisfy , ioTest , equals , satisfies , Partition(..) , eqPartitions ) where import Con...
44aeda5adf4d8bffafd73c9a6b24ff8fabe6255c74b4b966e7368ca2de140111
re-ops/re-cipes
tmux.clj
(ns re-cipes.tmux "Setting up tmux and related utilities" (:require [re-cipes.access :refer (permissions)] [re-cog.resources.git :refer (clone)] [re-cog.common.recipe :refer (require-recipe)] [re-cog.facts.config :refer (configuration)] [re-cog.resources.download :refer (download)] [re-cog.resourc...
null
https://raw.githubusercontent.com/re-ops/re-cipes/183bdb637e54df1c6f20e8d529132e0c004e8ead/src/re_cipes/tmux.clj
clojure
(ns re-cipes.tmux "Setting up tmux and related utilities" (:require [re-cipes.access :refer (permissions)] [re-cog.resources.git :refer (clone)] [re-cog.common.recipe :refer (require-recipe)] [re-cog.facts.config :refer (configuration)] [re-cog.resources.download :refer (download)] [re-cog.resourc...
2aed03e0b1f9c266b6df4cfd2526b3735e54a40506aa2168f9aa672039e05d5c
theia-ide/racket-language-server
conversion.rkt
#lang racket/base (require racket/class racket/list racket/match "lsp.rkt" "../lang/check-syntax.rkt") ; For exception and warning structs (define (pos->line/char t pos) (define line (send t position-paragraph pos)) (define line-begin (send t paragraph-start-position line)) (d...
null
https://raw.githubusercontent.com/theia-ide/racket-language-server/e397a130676504fc8b053e6b1f48d49b77b9ad98/protocol/conversion.rkt
racket
For exception and warning structs
#lang racket/base (require racket/class racket/list racket/match "lsp.rkt" (define (pos->line/char t pos) (define line (send t position-paragraph pos)) (define line-begin (send t paragraph-start-position line)) (define char (- pos line-begin)) (values line char)) (define (line/char-...
dc693a5522c4ba02285ac6f90167b4c7e0d43dca003863b1948041905844edf6
alephcloud/hs-yet-another-logger
Logger.hs
Copyright ( c ) 2014 - 2015 PivotCloud , Inc. -- -- System.Logger.Logger -- -- Please feel free to contact us at with any -- contributions, additions, or other feedback; we would love to hear from -- you. -- Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may -- not use this file except i...
null
https://raw.githubusercontent.com/alephcloud/hs-yet-another-logger/bdeb95980b69839b1acf1a8cef53426bbd073531/src/System/Logger/Logger.hs
haskell
System.Logger.Logger Please feel free to contact us at with any contributions, additions, or other feedback; we would love to hear from you. 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, softwa...
Copyright ( c ) 2014 - 2015 PivotCloud , Inc. Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may distributed under the License is distributed on an " AS IS " BASIS , WITHOUT Copyright : Copyright ( c ) 2014 - 2015 PivotCloud , Inc. Maintainer : < > # LANGUAGE UnicodeSyntax # m...
0f2b2632ebd964840cec32d094786bf2b814a29d8259dcf8c88a2e46391c26e7
fredlund/McErlang
mce_erl_process.erl
Copyright ( c ) 2009 , %% All rights reserved. %% %% Redistribution and use in source and binary forms, with or without %% modification, are permitted provided that the following conditions are met: %% %% Redistributions of source code must retain the above copyright %% notice, this list of conditions a...
null
https://raw.githubusercontent.com/fredlund/McErlang/25b38a38a729fdb3c3d2afb9be016bbb14237792/languages/erlang/src/mce_erl_process.erl
erlang
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: %% Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. %% Redi...
Copyright ( c ) 2009 , IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE BE LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR @author 2006 - 2009 @private -module(mce_erl_process). -export([makeRunnable/2,makeRunnable/3,makeRunnableInSystem/3])....
e113ee337e916045dec4864b1f3de2f6ee8cf314444363626bd61d456141684b
tonsky/datascript-transit
transit.cljs
(ns datascript.test.transit (:require [datascript.transit :as dt] [datascript.core :as d] [cljs.test :refer-macros [is deftest]])) (def test-db (-> (d/empty-db { :email { :db/unique :db.unique/identity } }) (d/db-with [{:name "Ivan" :email "" :id #uuid "...
null
https://raw.githubusercontent.com/tonsky/datascript-transit/365f2e5a7b4e268b78b3b9576bb685d18d35eb96/test/datascript/test/transit.cljs
clojure
(ns datascript.test.transit (:require [datascript.transit :as dt] [datascript.core :as d] [cljs.test :refer-macros [is deftest]])) (def test-db (-> (d/empty-db { :email { :db/unique :db.unique/identity } }) (d/db-with [{:name "Ivan" :email "" :id #uuid "...
9616429afb6b902877dd2070fe3b5b030dff2f7e41edb2f02f044f45d228a89a
poroh/ersip
ersip_sdp_attr.erl
%% Copyright ( c ) 2018 Dmitry Poroh %% All rights reserved. Distributed under the terms of the MIT License . See the LICENSE file . %% SDP attributes %% -module(ersip_sdp_attr). -export([parse/1, parse_attr/1, assemble/1 ]). -export_type([attr_list/0, attr/0]). %%%====================================...
null
https://raw.githubusercontent.com/poroh/ersip/241c4be134e388325011cc6492678af7025fcef5/src/sdp/ersip_sdp_attr.erl
erlang
All rights reserved. =================================================================== Types =================================================================== =================================================================== API =================================================================== ===========...
Copyright ( c ) 2018 Dmitry Poroh Distributed under the terms of the MIT License . See the LICENSE file . SDP attributes -module(ersip_sdp_attr). -export([parse/1, parse_attr/1, assemble/1 ]). -export_type([attr_list/0, attr/0]). -type attr_list() :: [attr()]. -type parse_result() :: ersip_parser_...
9b7d052ace028998d52963bea446635b1a402f23e492767961b8f0d1fa47dd2d
semilin/layoup
Narts-9.lisp
(MAKE-LAYOUT :NAME "Narts-9" :MATRIX (APPLY #'KEY-MATRIX '("qwlgjkfou;" "nrtscpheia" "zxmyvbd',.")) :SHIFT-MATRIX NIL :KEYBOARD NIL)
null
https://raw.githubusercontent.com/semilin/layoup/27ec9ba9a9388cd944ac46206d10424e3ab45499/data/layouts/Narts-9.lisp
lisp
(MAKE-LAYOUT :NAME "Narts-9" :MATRIX (APPLY #'KEY-MATRIX '("qwlgjkfou;" "nrtscpheia" "zxmyvbd',.")) :SHIFT-MATRIX NIL :KEYBOARD NIL)
f280423faf196658f2db52a8dfbd267b775819ec09aa99259e27aefc2f9759d8
wireapp/saml2-web-sso
Samples.hs
{-# LANGUAGE OverloadedStrings #-} | haskell representations of the sample data in /test / xml/. module Samples where import Crypto.PubKey.RSA as RSA import SAML2.WebSSO import URI.ByteString.QQ -- source: -us/azure/active-directory/develop/active-directory-single-sign-on-protocol-reference microsoft_authnrequest_...
null
https://raw.githubusercontent.com/wireapp/saml2-web-sso/ac88b934bb4a91d4d4bb90c620277188e4087043/test/Samples.hs
haskell
# LANGUAGE OverloadedStrings # source: -us/azure/active-directory/develop/active-directory-single-sign-on-protocol-reference
| haskell representations of the sample data in /test / xml/. module Samples where import Crypto.PubKey.RSA as RSA import SAML2.WebSSO import URI.ByteString.QQ microsoft_authnrequest_1 :: AuthnRequest microsoft_authnrequest_1 = AuthnRequest {_rqID = ID {fromID = mkXmlText "id6c1c178c166d486687be4aaf5e482730"}, _rq...
2c91932d90cc30d3081ce3f848aa7a1f250340b6d1009a25865ccb710b2f2fc0
pascutto/cachecache
lru.mli
module Make (K : sig type t val equal : t -> t -> bool (*@ pure *) val hash : t -> int end) : sig type 'a t type key = K.t (*@ ephemeral model cap : int mutable model assoc : key -> 'a option mutable model age : key -> int invariant cap > 0 invariant forall k k'. n...
null
https://raw.githubusercontent.com/pascutto/cachecache/d239c20d3411383c0399674f1425acce73dbf95e/src/lru.mli
ocaml
@ pure @ ephemeral model cap : int mutable model assoc : key -> 'a option mutable model age : key -> int invariant cap > 0 invariant forall k k'. not (K.equal k k') -> assoc k <> None -> assoc k' <> None -> age k <> age k' invariant forall k. age k >= 0 ...
module Make (K : sig type t val equal : t -> t -> bool val hash : t -> int end) : sig type 'a t type key = K.t val v : int -> 'a t val stats : 'a t -> Stats.t val is_empty : 'a t -> bool @ b = is_empty t ensures b = true < - > forall k = None ensures b = true <-> forall k. t.assoc k...
a70cbf831c9d3909d68b8b3fa2f43f88bdf682447e8b70a7ed7fbb9d71bed7e3
erlcloud/erlcloud
erlcloud_cognito_user_pools.erl
-module(erlcloud_cognito_user_pools). -include("erlcloud_aws.hrl"). -export([configure/2, configure/3, new/2, new/3]). -export([ list_users/1, list_users/2, list_users/5, list_users/6, list_all_users/1, list_all_users/2, list_all_users/3, admin_list_groups_for_user/2, admin_list_...
null
https://raw.githubusercontent.com/erlcloud/erlcloud/a080fe22ac0c8625c2506cdb36b12badf5469910/src/erlcloud_cognito_user_pools.erl
erlang
------------------------------------------------------------------------------ Internal Functions ------------------------------------------------------------------------------
-module(erlcloud_cognito_user_pools). -include("erlcloud_aws.hrl"). -export([configure/2, configure/3, new/2, new/3]). -export([ list_users/1, list_users/2, list_users/5, list_users/6, list_all_users/1, list_all_users/2, list_all_users/3, admin_list_groups_for_user/2, admin_list_...
b0d2567593b5b5a25555d621319fe9e48b5271a8f9de1429e9c227e87b21961e
finnishtransportagency/harja
kohteet_test.clj
(ns harja.palvelin.palvelut.kanavat.kohteet-test (:require [clojure.test :refer :all] [harja.palvelin.komponentit.tietokanta :as tietokanta] [com.stuartsierra.component :as component] [harja [pvm :as pvm] [testi :refer :all]] [harja.kyselyt.kon...
null
https://raw.githubusercontent.com/finnishtransportagency/harja/c57d742beaff2bef7b30318819f07d4a13423404/test/clj/harja/palvelin/palvelut/kanavat/kohteet_test.clj
clojure
(ns harja.palvelin.palvelut.kanavat.kohteet-test (:require [clojure.test :refer :all] [harja.palvelin.komponentit.tietokanta :as tietokanta] [com.stuartsierra.component :as component] [harja [pvm :as pvm] [testi :refer :all]] [harja.kyselyt.kon...
0bc6586538d6a5bd63b704e84ee519c86deea7f49c7d17b6913dfb8bfd5622fb
khibino/haskell-relational-record
Session.hs
{-# LANGUAGE Rank2Types #-} -- | -- Module : Database.HDBC.Session Copyright : 2013 - 2018 -- License : BSD3 -- -- Maintainer : -- Stability : experimental -- Portability : unknown -- -- This module provides a base bracketed function -- to call close correctly against opend DB connection. module Da...
null
https://raw.githubusercontent.com/khibino/haskell-relational-record/759b3d7cea207e64d2bd1cf195125182f73d2a52/HDBC-session/src/Database/HDBC/Session.hs
haskell
# LANGUAGE Rank2Types # | Module : Database.HDBC.Session License : BSD3 Maintainer : Stability : experimental Portability : unknown This module provides a base bracketed function to call close correctly against opend DB connection. * Bracketed session $bracketedSession * Show errors $showErro...
Copyright : 2013 - 2018 module Database.HDBC.Session ( transaction, withConnectionIO, withConnectionIO_, bracketConnection, showSqlError, handleSqlError', withConnection, withConnectionIO', withConnectionCommit, ) where import Database.HDBC (IConnection, handleSql, Sql...
852dc8fc87f9d6f4ad1dbd6a63f87f5a93229a2c6103066e4d46676ed426bcea
mirage/ocaml-matrix
identifier.ml
open Json_encoding module User = struct type t = {user: string} [@@deriving accessor] let encoding = let to_tuple t = t.user in let of_tuple v = let user = v in {user} in let with_tuple = obj1 (req "user" string) in conv to_tuple of_tuple with_tuple let pp ppf t = Fmt.(pf ppf "{ use...
null
https://raw.githubusercontent.com/mirage/ocaml-matrix/2a58d3d41c43404741f2dfdaf1d2d0f3757b2b69/lib/matrix-ctos/identifier.ml
ocaml
open Json_encoding module User = struct type t = {user: string} [@@deriving accessor] let encoding = let to_tuple t = t.user in let of_tuple v = let user = v in {user} in let with_tuple = obj1 (req "user" string) in conv to_tuple of_tuple with_tuple let pp ppf t = Fmt.(pf ppf "{ use...
2c104abeceea5609781afa54724a18fd35e5c462f41eb0136475e4b87945a1c1
sebastian-philipp/r-tree
RTreeStrict.hs
# LANGUAGE BangPatterns # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE ScopedTypeVariables # module Main where -- import qualified Data.RTree as Lazy -- just for dev. import Prelude hiding (lookup, map, mapM, ...
null
https://raw.githubusercontent.com/sebastian-philipp/r-tree/547c6fbda8827d8f17b3daaae3b7c9437664052a/test/RTreeStrict.hs
haskell
import qualified Data.RTree as Lazy -- just for dev. import System.IO example = { subst of mappend } = { subst of mkA } = { subst of $!! } A [1,2,3,4] in a call of Data.RTree.insert k (x `mappend` y) m before calling the constructor A some simple test data --------...
# LANGUAGE BangPatterns # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE ScopedTypeVariables # module Main where import Prelude hiding (lookup, map, mapM, null, succ) import Control . ...
a63d574e013276483fcc9b88efa49e6c0e420059c1625c5b63d319cf506f3bf4
bytekid/mkbtt
dioMio.mli
val solve : (Rewriting.Variable.t list) * (Rewriting.Variable.t list) -> (Rewriting.Variable.t * int) list list val minimize : (Rewriting.Variable.t * int) list list -> (Rewriting.Variable.t * int) list list
null
https://raw.githubusercontent.com/bytekid/mkbtt/c2f8e0615389b52eabd12655fe48237aa0fe83fd/src/mascott/src/dioMio.mli
ocaml
val solve : (Rewriting.Variable.t list) * (Rewriting.Variable.t list) -> (Rewriting.Variable.t * int) list list val minimize : (Rewriting.Variable.t * int) list list -> (Rewriting.Variable.t * int) list list
adbc9e26f63b178d4c5830895fab81064db765340d3e88ceb9f1cee0da60e59e
binsec/haunted
relse_insecurity.mli
type level = Path | Block | Instr (** Module that handles all the insecurity checks. Contains all the checks related to a path. *) module Insecurity_State : sig type t (** Create a new insecurity state with no insecurity checks *) val create : unit -> t * [ add_memory_check ps instr is ] Collects memory i...
null
https://raw.githubusercontent.com/binsec/haunted/7ffc5f4072950fe138f53fe953ace98fff181c73/src/relse/relse_insecurity.mli
ocaml
* Module that handles all the insecurity checks. Contains all the checks related to a path. * Create a new insecurity state with no insecurity checks * [add_memory_check r_expr is] Add a memory insecurity check to the insecurity state [is] to check [r_expr] cannot leak secret information
type level = Path | Block | Instr module Insecurity_State : sig type t val create : unit -> t * [ add_memory_check ps instr is ] Collects memory insecurity check of hte instruction [ instr ] under the symbolic state [ ps ] and add them to the insecurity state [ is ] of hte instruction [instr]...
1c612bb9336e39745417106e643f737914db36998cefe2d393ac8692c510ab6a
avsm/mirage-duniverse
udp_packet.ml
type t = { src_port : Cstruct.uint16; dst_port : Cstruct.uint16; } let equal {src_port; dst_port} q = src_port = q.src_port && dst_port = q.dst_port let pp fmt t = Format.fprintf fmt "UDP port %d -> %d" t.src_port t.dst_port module Unmarshal = struct type error = string let of_cstruct buf = let o...
null
https://raw.githubusercontent.com/avsm/mirage-duniverse/983e115ff5a9fb37e3176c373e227e9379f0d777/ocaml_modules/tcpip/src/udp/udp_packet.ml
ocaml
if we've been passed a buffer larger than sizeof_udp, make sure we * consider only the portion which will actually contain the header * when calculating this bit of the checksum
type t = { src_port : Cstruct.uint16; dst_port : Cstruct.uint16; } let equal {src_port; dst_port} q = src_port = q.src_port && dst_port = q.dst_port let pp fmt t = Format.fprintf fmt "UDP port %d -> %d" t.src_port t.dst_port module Unmarshal = struct type error = string let of_cstruct buf = let o...
2ad66fa131df83fc6e5451141d099ea51fb5dd38d656fe748b6259cdc0aee9c4
tezos/tezos-mirror
main_wasm_debugger.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2022 Nomadic Labs < > (* ...
null
https://raw.githubusercontent.com/tezos/tezos-mirror/195315d385d7e8e25fc599e7cb645b1429957183/src/bin_wasm_debugger/main_wasm_debugger.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2022 Nomadic Labs < > 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 LIABILITY , WHETHER IN AN...
a99690ebc5be1e7fc7a2f2c4aa2a61d1ee9d1aff0e8f64ce192e4dd7e301db7b
WormBase/wormbase_rest
homology.clj
(ns rest-api.classes.protein.widgets.homology (:require [datomic.api :as d] [rest-api.db.main :refer [datomic-homology-conn datomic-conn]] [rest-api.formatters.object :as obj :refer [pack-obj]] [clojure.math.numeric-tower :as math] [rest-api.classes.generic-fields :as generic] [rest-api.classes.prot...
null
https://raw.githubusercontent.com/WormBase/wormbase_rest/e51026f35b87d96260b62ddb5458a81ee911bf3a/src/rest_api/classes/protein/widgets/homology.clj
clojure
:protein_homology protein-homology
(ns rest-api.classes.protein.widgets.homology (:require [datomic.api :as d] [rest-api.db.main :refer [datomic-homology-conn datomic-conn]] [rest-api.formatters.object :as obj :refer [pack-obj]] [clojure.math.numeric-tower :as math] [rest-api.classes.generic-fields :as generic] [rest-api.classes.prot...
4a8c4809cc71144e1ff8edbddc067e0c5fc3a3881482a81f14ecbc774ecbfb0e
bgamari/ghc-debug
List.hs
# LANGUAGE DeriveFunctor # # LANGUAGE DeriveGeneric # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # Authored by , copied from cursor package # module Cursor.List ( ListCursor (..), emptyListCursor, makeListCursor, makeListCursorWithSelection, rebuildListCursor, listCursorNull, l...
null
https://raw.githubusercontent.com/bgamari/ghc-debug/c931fe52efbed1f4c3e47e27e81994ddd0b88f10/ghc-debug-brick/src/Cursor/List.hs
haskell
| In reverse order
# LANGUAGE DeriveFunctor # # LANGUAGE DeriveGeneric # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # Authored by , copied from cursor package # module Cursor.List ( ListCursor (..), emptyListCursor, makeListCursor, makeListCursorWithSelection, rebuildListCursor, listCursorNull, l...
fa4760f77255fa57d182652bbde531b7db7e762d2e84088bc714efe3de206f87
exoscale/clojure-kubernetes-client
v1_replica_set.clj
(ns clojure-kubernetes-client.specs.v1-replica-set (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1-object-meta :refer :all] [clojure-kubernetes-client.specs.v1-replica-set-spec :refer :all] [clojure-kubernetes-clien...
null
https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/v1_replica_set.clj
clojure
(ns clojure-kubernetes-client.specs.v1-replica-set (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1-object-meta :refer :all] [clojure-kubernetes-client.specs.v1-replica-set-spec :refer :all] [clojure-kubernetes-clien...
321c8cafcaebbfae8ed20a99af834e3e70739f59e0428cb2e8031830ecacc53d
mransan/raft-udp
raft_utl_ratelimiter.ml
open Lwt.Infix let wrap rate stream = let events = Array.make rate (-. 1.) in let t0 = Mtime.counter () in let i = ref 0 in let rate, min_delta = let precision = 5 in if rate <= precision then rate, 1. else (rate / precision), (1. /. (float_of_int precision)) in let set_events ~from...
null
https://raw.githubusercontent.com/mransan/raft-udp/ffa307fa6d8bdaa3133f3cc66149ac7dfda5fc7c/src/utl/raft_utl_ratelimiter.ml
ocaml
open Lwt.Infix let wrap rate stream = let events = Array.make rate (-. 1.) in let t0 = Mtime.counter () in let i = ref 0 in let rate, min_delta = let precision = 5 in if rate <= precision then rate, 1. else (rate / precision), (1. /. (float_of_int precision)) in let set_events ~from...
5d8109fb0e891d083ad2f9003427badfe9df3f4e8b3aeccc06412dcae46d43d5
JHU-PL-Lab/jaylang
append02.ml
let rec bot _ = bot () let fail _ = assert false let rec append_1030 append_without_checking_1072 x_DO_NOT_CARE_1074 x_DO_NOT_CARE_1075 x_DO_NOT_CARE_1076 xs_1031 prev_set_flag_append_1058 s_prev_append_xs_1056 s_prev_append_ys_1057 ys_1032 = let u = if prev_set_flag_append_1058 then if ((0 * 1)...
null
https://raw.githubusercontent.com/JHU-PL-Lab/jaylang/484b3876986a515fb57b11768a1b3b50418cde0c/benchmark/cases/mochi_origin/termination/append02.ml
ocaml
let rec bot _ = bot () let fail _ = assert false let rec append_1030 append_without_checking_1072 x_DO_NOT_CARE_1074 x_DO_NOT_CARE_1075 x_DO_NOT_CARE_1076 xs_1031 prev_set_flag_append_1058 s_prev_append_xs_1056 s_prev_append_ys_1057 ys_1032 = let u = if prev_set_flag_append_1058 then if ((0 * 1)...
a1c86c5d0223586635f2f88069442fa5d8092a05fd070ed75a5bb7c450e8944b
con-kitty/categorifier-c
Main.hs
{-# LANGUAGE OverloadedStrings #-} module Main (main) where import Categorifier.C.Generate (writeCFiles) import F (fCategorified) -- This generates /tmp/recursive_types_2.c main :: IO () main = writeCFiles "/tmp" "recursive_types_2" fCategorified
null
https://raw.githubusercontent.com/con-kitty/categorifier-c/dd5ba3ac4d39629b99200bdffa0af54d124233f0/examples/recursive-types-2/Main.hs
haskell
# LANGUAGE OverloadedStrings # This generates /tmp/recursive_types_2.c
module Main (main) where import Categorifier.C.Generate (writeCFiles) import F (fCategorified) main :: IO () main = writeCFiles "/tmp" "recursive_types_2" fCategorified
9e0e9dfd6e1794e666440de5ae2c9704570e91d2ff88d5105f020c204d3111d9
openmusic-project/OMChroma
gen-model-data.lisp
;===================================================== ; CHROMA ;===================================================== part of the OMChroma library - > High - level control of sound synthesis in OM ;===================================================== ; ;This program is free software; you can redistribute it and/...
null
https://raw.githubusercontent.com/openmusic-project/OMChroma/5ded34f22b59a1a93ea7b87e182c9dbdfa95e047/sources/chroma/models/gen-model-data.lisp
lisp
===================================================== CHROMA ===================================================== ===================================================== This program is free software; you can redistribute it and/or either version 2 of the License, or (at your option) any later version. See file LIC...
part of the OMChroma library - > High - level control of sound synthesis in OM modify it under the terms of the GNU General Public License (in-package :cr) (defmethod gen-model-data (lvals fun-list arg-list &key (interpolmode) (markers) (test) (markermode 'delete) (timemode 'rel...
9af33dab26b43ab46c501289e395e07654833972ff8d2cfcac1aa132ab113ac0
ThoughtWorksInc/DeepDarkFantasy
Lang.hs
# LANGUAGE NoImplicitPrelude , NoMonomorphismRestriction , MultiParamTypeClasses , FlexibleInstances , TypeFamilies , ScopedTypeVariables , FlexibleContexts , UndecidableInstances , TypeApplications , PartialTypeSignatures , UndecidableSuperClasses # NoImplicitPrelude, ...
null
https://raw.githubusercontent.com/ThoughtWorksInc/DeepDarkFantasy/4c569aefc03a2bcfb6113b65367201d30077f2b6/DDF/Lang.hs
haskell
# LANGUAGE NoImplicitPrelude , NoMonomorphismRestriction , MultiParamTypeClasses , FlexibleInstances , TypeFamilies , ScopedTypeVariables , FlexibleContexts , UndecidableInstances , TypeApplications , PartialTypeSignatures , UndecidableSuperClasses # NoImplicitPrelude, ...
4f146b833f1287985b95b391ea56c68712e13f3d759ad46ee989968dd77aef3a
niquola/clojure-native-example
user.clj
(ns user (:require [cider-nrepl.main])) (defn -main [& args] (-> (Thread/currentThread) (.setName "cider")) (cider-nrepl.main/init ["refactor-nrepl.middleware/wrap-refactor" "cider.nrepl/cider-middleware"]))
null
https://raw.githubusercontent.com/niquola/clojure-native-example/90c171bcbec5ee7e72396243bf854c3d0f80f755/dev/user.clj
clojure
(ns user (:require [cider-nrepl.main])) (defn -main [& args] (-> (Thread/currentThread) (.setName "cider")) (cider-nrepl.main/init ["refactor-nrepl.middleware/wrap-refactor" "cider.nrepl/cider-middleware"]))
938b143cf6c41b1742b1bfc50cee23d2080c72b9289059ba84c134b057d50bac
4clojure/4clojure
config.clj
{:wrap-reload false :db-host "localhost" :db-name "4clojure" :db-user nil :db-pwd nil :jetty-port 8080 :host "smtp.googlemail.com" :user "" :problem-submission true :advanced-user-count 50 :pass "" :repo-url "" :hosts {;; :static "static.4clojure.com" ;; :dynamic "www.4clojure.com" :redire...
null
https://raw.githubusercontent.com/4clojure/4clojure/25dec057d9d6871ce52aee9e2c3de7efdab14373/resources/config.clj
clojure
:static "static.4clojure.com" :dynamic "www.4clojure.com" this list is just for bootstrapping - the real DB is authoritative
{:wrap-reload false :db-host "localhost" :db-name "4clojure" :db-user nil :db-pwd nil :jetty-port 8080 :host "smtp.googlemail.com" :user "" :problem-submission true :advanced-user-count 50 :pass "" :repo-url "" :redirects ["4clojure.com"]} :golfing-active true set to , eg , [ 1 : hour ] for perio...
c6015c1ed97b423d012f8f37cdf85137933d8828389ab02cdfb206651a5ce1c0
nuvla/ui
subs.cljs
(ns sixsq.nuvla.ui.clouds-detail.subs (:require [re-frame.core :refer [reg-sub]] [sixsq.nuvla.ui.clouds-detail.spec :as spec] [sixsq.nuvla.ui.utils.general :as general-utils])) (reg-sub ::loading? (fn [db] (::spec/loading? db))) (reg-sub ::infrastructure-service (fn [db] (:...
null
https://raw.githubusercontent.com/nuvla/ui/c10704eabd339489722fa53bc99f11f21103c070/code/src/cljs/sixsq/nuvla/ui/clouds_detail/subs.cljs
clojure
(ns sixsq.nuvla.ui.clouds-detail.subs (:require [re-frame.core :refer [reg-sub]] [sixsq.nuvla.ui.clouds-detail.spec :as spec] [sixsq.nuvla.ui.utils.general :as general-utils])) (reg-sub ::loading? (fn [db] (::spec/loading? db))) (reg-sub ::infrastructure-service (fn [db] (:...
26348294ed99631c4c2e70d69a2ff74b826a77d0b772e588d11651771d8d5e62
abdulapopoola/SICPBook
Ex2.34.scm
#lang planet neil/sicp ;; helpers (define (accumulate op initial sequence) (if (null? sequence) initial (op (car sequence) (accumulate op initial (cdr sequence))))) (define (horner-eval x coefficient-sequence) (accumulate (lambda (this-coeff ...
null
https://raw.githubusercontent.com/abdulapopoola/SICPBook/c8a0228ebf66d9c1ddc5ef1fcc1d05d8684f090a/Chapter%202/2.2/Ex2.34.scm
scheme
helpers
#lang planet neil/sicp (define (accumulate op initial sequence) (if (null? sequence) initial (op (car sequence) (accumulate op initial (cdr sequence))))) (define (horner-eval x coefficient-sequence) (accumulate (lambda (this-coeff higher-term...
7b7f8804f96e75d123dab7df4c9f055f8b4b21e11e88abe2e35329a9b775aa64
slipstream/SlipStreamServer
deployment_parameter.clj
(ns com.sixsq.slipstream.ssclj.resources.deployment-parameter (:require [clojure.string :as s] [com.sixsq.slipstream.auth.acl :as a] [com.sixsq.slipstream.ssclj.resources.common.crud :as crud] [com.sixsq.slipstream.ssclj.resources.common.schema :as c] [com.sixsq.slipstream.ssclj.resources.common....
null
https://raw.githubusercontent.com/slipstream/SlipStreamServer/3ee5c516877699746c61c48fc72779fe3d4e4652/cimi-resources/src/com/sixsq/slipstream/ssclj/resources/deployment_parameter.clj
clojure
only authenticated users can view and create credentials set the resource identifier to "deployment-parameter/predictable-uuid3-from-string" CRUD operations initialization
(ns com.sixsq.slipstream.ssclj.resources.deployment-parameter (:require [clojure.string :as s] [com.sixsq.slipstream.auth.acl :as a] [com.sixsq.slipstream.ssclj.resources.common.crud :as crud] [com.sixsq.slipstream.ssclj.resources.common.schema :as c] [com.sixsq.slipstream.ssclj.resources.common....
2b830b4d101c36d88c3447447f73f31b2e1b6ddc91d2d4c4fff536089c53808c
facebook/duckling
Tests.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. module Duckling.Quantity.PT.Tests ( tests ) where import Prelude import Data.String import Test.Tasty im...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/tests/Duckling/Quantity/PT/Tests.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree.
Copyright ( c ) 2016 - present , Facebook , Inc. module Duckling.Quantity.PT.Tests ( tests ) where import Prelude import Data.String import Test.Tasty import Duckling.Dimensions.Types import Duckling.Quantity.PT.Corpus import Duckling.Testing.Asserts tests :: TestTree tests = testGroup "PT Tests" [ makeCorpu...
6f18176ae9b0f6394383c517a7bde2819abe4e9b7a26e65cc0f7e6eba0d84dcc
UU-ComputerScience/uhc
t4.hs
module Main where ids = [] ids :: [forall a . a -> a] ( :) : : a - > [ a ] - > [ a ] un : : : [ a ] - > ( a,[a ] ) ( f1 : g1 : _ ) = ids ( ( f2::Int->Int):g2 : _ ) = ids ( ( f3::Int->Int):(g3::forall a . a->a ): _ ) = ids ( f4 : g4 : _ ) = const ( const ids f4 ' ) g4 ' f4 ' : : forall a. a ...
null
https://raw.githubusercontent.com/UU-ComputerScience/uhc/f2b94a90d26e2093d84044b3832a9a3e3c36b129/EHC/test/lucilia/t4.hs
haskell
g9 :: forall a. a -> a
module Main where ids = [] ids :: [forall a . a -> a] ( :) : : a - > [ a ] - > [ a ] un : : : [ a ] - > ( a,[a ] ) ( f1 : g1 : _ ) = ids ( ( f2::Int->Int):g2 : _ ) = ids ( ( f3::Int->Int):(g3::forall a . a->a ): _ ) = ids ( f4 : g4 : _ ) = const ( const ids f4 ' ) g4 ' f4 ' : : forall a. a ...
35e8ef692ff3a731a431f17f32e1f833b334ba905973e27458fda0c07d752f9b
FranklinChen/learn-you-some-erlang
state_SUITE.erl
-module(state_SUITE). -include_lib("common_test/include/ct.hrl"). -export([all/0, init_per_testcase/2, end_per_testcase/2]). -export([ets_tests/1]). all() -> [ets_tests]. init_per_testcase(ets_tests, Config) -> TabId = ets:new(account, [ordered_set, public]), ets:insert(TabId, {andy, 2131}), ets:insert(T...
null
https://raw.githubusercontent.com/FranklinChen/learn-you-some-erlang/878c8bc2011a12862fe72dd7fdc6c921348c79d6/ct/demo/state_SUITE.erl
erlang
-module(state_SUITE). -include_lib("common_test/include/ct.hrl"). -export([all/0, init_per_testcase/2, end_per_testcase/2]). -export([ets_tests/1]). all() -> [ets_tests]. init_per_testcase(ets_tests, Config) -> TabId = ets:new(account, [ordered_set, public]), ets:insert(TabId, {andy, 2131}), ets:insert(T...
c7049a21f8f3907150495591ed9c9a6c529215317be8f4d46fb02aefb4524aaf
vikram/lisplibraries
wiki-make.lisp
(asdf:oos 'asdf:load-op :ucw) (asdf:oos 'asdf:load-op :ucw.aserve) (asdf:oos 'asdf:load-op :ucw.araneida) (asdf:oos 'asdf:load-op :ucw.mod-lisp) (asdf:oos 'asdf:load-op :qbook) (asdf:oos 'asdf:load-op :qbook) (in-package :it.bese.ucw-user) (qbook:publish-qbook "../examples/wiki.lisp" (make-inst...
null
https://raw.githubusercontent.com/vikram/lisplibraries/105e3ef2d165275eb78f36f5090c9e2cdd0754dd/site/ucw-boxset/ucw_ajax/docs/wiki-make.lisp
lisp
(asdf:oos 'asdf:load-op :ucw) (asdf:oos 'asdf:load-op :ucw.aserve) (asdf:oos 'asdf:load-op :ucw.araneida) (asdf:oos 'asdf:load-op :ucw.mod-lisp) (asdf:oos 'asdf:load-op :qbook) (asdf:oos 'asdf:load-op :qbook) (in-package :it.bese.ucw-user) (qbook:publish-qbook "../examples/wiki.lisp" (make-inst...
0258bf320814d74547d41e628820d59d525f895cc23580fdb99f2d8f20c86864
SahilKang/cl-rdkafka
posix.lisp
Copyright ( C ) 2018 - 2020 < > ;;; ;;; This file is part of cl-rdkafka. ;;; ;;; cl-rdkafka 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 l...
null
https://raw.githubusercontent.com/SahilKang/cl-rdkafka/4d0b6f7f9b102769cb91a020e4e192a2ea066e0b/src/high-level/event-io/posix.lisp
lisp
This file is part of cl-rdkafka. cl-rdkafka is free software: you can redistribute it and/or modify (at your option) any later version. cl-rdkafka 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 PURPOS...
Copyright ( C ) 2018 - 2020 < > it under the terms of the GNU 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 General Public License (in-package #:cl-rdkafka) (cffi:defcstruct pollfd (fd :int) (events ...
c5626ba4097eae8d2273a1d1fd4adf2ed87c1ae3506e7e90ed86139ed51b59f7
msp-strath/Mary
Examples.hs
module Shonkier.Examples where import Data . Map ( singleton ) import Data . Semigroup ( ( < > ) ) -- needed for ghc versions < = 8.2.2 import Shonkier . Syntax import Shonkier . Semantics appendEnv : : GlobalEnv appendEnv = singleton " append " $ singleton " . " $ VFun mempty [ ] [ ] [ ( PValue <...
null
https://raw.githubusercontent.com/msp-strath/Mary/d805849e6da4133093564077d2344815155d7e5e/src/Shonkier/Examples.hs
haskell
needed for ghc versions < = 8.2.2 needed for ghc versions <= 8.2.2
module Shonkier.Examples where import Data . Map ( singleton ) import Shonkier . Syntax import Shonkier . Semantics appendEnv : : GlobalEnv appendEnv = singleton " append " $ singleton " . " $ VFun mempty [ ] [ ] [ ( PValue < $ > [ PCell ( PBind " x " ) ( PBind " xs " ) , PBind ...
609628ac20e51cb013317b40cc9ba24a8a72c206d63e7b5a2161f72d33360399
qrilka/xlsx
Types.hs
# LANGUAGE CPP # # LANGUAGE NoMonomorphismRestriction # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # # LANGUAGE TemplateHaskell # # LANGUAGE DeriveGeneric # {-# LANGUAGE RankNTypes #-} module Codec.Xlsx.Types ( -- * The main types Xlsx(..) , Styles(..) , DefinedNames(..) ...
null
https://raw.githubusercontent.com/qrilka/xlsx/ad3bfe13d89db1b519b4996f0cd82b1a1e47f0ab/src/Codec/Xlsx/Types.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # * The main types * Lenses ** Workbook ** Worksheet ** Cells ** Row properties * Style helpers * Misc | Height of a row in points (1/72in) ^ Row height is set by the user ^ Row height is set automatically by the program Since micro-lens denies t...
# LANGUAGE CPP # # LANGUAGE NoMonomorphismRestriction # # LANGUAGE RecordWildCards # # LANGUAGE TemplateHaskell # # LANGUAGE DeriveGeneric # module Codec.Xlsx.Types ( Xlsx(..) , Styles(..) , DefinedNames(..) , ColumnsProperties(..) , PageSetup(..) , Worksheet(..) , SheetState(..) , Cell...
ab190e477a35dba4cad196820d800aa96e2ba4d994eaf1dc88a7b3f30599f034
haskellfoundation/matchmaker
ContributorCall.hs
module DB.ContributorCall where import Data.Aeson (FromJSON, ToJSON) import Data.Time (UTCTime) import Data.UUID (UUID) import Database.PostgreSQL.Entity import Database.PostgreSQL.Simple (FromRow, Only (Only), ToRow) import Database.PostgreSQL.Simple.FromField (FromField) import Database.PostgreSQL.Simple.ToField (To...
null
https://raw.githubusercontent.com/haskellfoundation/matchmaker/136fcb9ba866359c5efd4271a4d39e2b98fd1897/src/DB/ContributorCall.hs
haskell
module DB.ContributorCall where import Data.Aeson (FromJSON, ToJSON) import Data.Time (UTCTime) import Data.UUID (UUID) import Database.PostgreSQL.Entity import Database.PostgreSQL.Simple (FromRow, Only (Only), ToRow) import Database.PostgreSQL.Simple.FromField (FromField) import Database.PostgreSQL.Simple.ToField (To...
6b1d67cf4ba1c0fe674936e62971db428ffcae542582cc69ab9ff44a3b863f16
AccelerateHS/accelerate-examples
Config.hs
{-# LANGUAGE CPP #-} # LANGUAGE TemplateHaskell # {-# LANGUAGE TypeOperators #-} -- | -- Module: : Data.Array.Accelerate.Examples.Internal.Criterion.Config Copyright : [ 2014 .. 2020 ] -- License : BSD3 -- Maintainer : < > -- Stability : experimental Portability : non - ...
null
https://raw.githubusercontent.com/AccelerateHS/accelerate-examples/a973ee423b5eadda6ef2e2504d2383f625e49821/lib/Data/Array/Accelerate/Examples/Internal/Criterion/Config.hs
haskell
# LANGUAGE CPP # # LANGUAGE TypeOperators # | Module: : Data.Array.Accelerate.Examples.Internal.Criterion.Config License : BSD3 Stability : experimental ** Criterion options unfortunate that we need to do this to integrate with the other frameworks. The following options are not par...
# LANGUAGE TemplateHaskell # Copyright : [ 2014 .. 2020 ] Maintainer : < > Portability : non - portable ( GHC extensions ) module Data.Array.Accelerate.Examples.Internal.Criterion.Config ( Config, defaultConfig, module Data.Array.Accelerate.Examples.Internal.Criterion.Config ) where import...