_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 |
|---|---|---|---|---|---|---|---|---|
de67962de13d0c717037d4ac601178e0939432cf4c18aae17d3f8ed2e0566be5 | caiorss/Functional-Programming | BookStore.hs |
data BookInfo = Book Int String [String]
deriving (Show)
data MagazineInfo = Magazine Int String [String]
deriving (Show)
type CustomerID = Int --- Type synonym
type ReviewBody = String
data BookReview = BookReview BookInfo CustomerID String
data BetterReviw = Bette... | null | https://raw.githubusercontent.com/caiorss/Functional-Programming/ef3526898e3014e9c99bf495033ff36a4530503d/haskell/rwh/ch03/BookStore.hs | haskell | - Type synonym |
data BookInfo = Book Int String [String]
deriving (Show)
data MagazineInfo = Magazine Int String [String]
deriving (Show)
type ReviewBody = String
data BookReview = BookReview BookInfo CustomerID String
data BetterReviw = BetterReviw BookInfo CustomerID ReviewBody
type Bo... |
47a591a1eec0c3d090ecc69d8d1de64ed4f5eb949bc907ba91970123387c5bb8 | Opetushallitus/aipal | valtakunnallinen.clj | Copyright ( c ) 2014 The Finnish National Board of Education - Opetushallitus
;;
This program is free software : Licensed under the EUPL , Version 1.1 or - as
soon as they will be approved by the European Commission - subsequent versions
of the EUPL ( the " Licence " ) ;
;;
;; You may not use this work except... | null | https://raw.githubusercontent.com/Opetushallitus/aipal/767bd14ec7153dc97fdf688443b9687cdb70082f/aipal/src/clj/aipal/rest_api/raportti/valtakunnallinen.clj | clojure |
You may not use this work except in compliance with the Licence.
You may obtain a copy of the Licence at: /
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 | Copyright ( c ) 2014 The Finnish National Board of Education - Opetushallitus
This program is free software : Licensed under the EUPL , Version 1.1 or - as
soon as they will be approved by the European Commission - subsequent versions
European Union Public Licence for more details .
(ns aipal.rest-api.raport... |
b47b065de25bc137eff24083c60b19a6643bb3be25a06585af8f032351b53288 | kmi/irs | new.lisp | Mode : Lisp ; Package :
File created in WebOnto
(in-package "OCML")
(in-ontology elms-ontology)
| null | https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/ontologies/domains/elms-ontology/new.lisp | lisp | Package : |
File created in WebOnto
(in-package "OCML")
(in-ontology elms-ontology)
|
88f468a828edeb6f04698de2ca24feee6ba2deeef1ad374bf56cfc16975acb49 | gdevanla/pandoc-markdown-ghci-filter | Main.hs | module Main where
import Text.Pandoc.JSON
import CodeBlockExecutor
-- test c@(CodeBlock (identifier, classes, key_value) str) = do
-- putStrLn $ show key_value
-- putStrLn $ show classes
-- return c
-- test b = return b
-- main :: IO ()
-- main = toJSONFilter test -- applyFilterToBlock
main :: IO ()
main = to... | null | https://raw.githubusercontent.com/gdevanla/pandoc-markdown-ghci-filter/d267a0c2d5176809e9109da6c3dc0dfc6f36f05a/app/Main.hs | haskell | test c@(CodeBlock (identifier, classes, key_value) str) = do
putStrLn $ show key_value
putStrLn $ show classes
return c
test b = return b
main :: IO ()
main = toJSONFilter test -- applyFilterToBlock | module Main where
import Text.Pandoc.JSON
import CodeBlockExecutor
main :: IO ()
main = toJSONFilter applyFilterToBlock
|
7a790552f8a3722ce8249683c22cc9a3baee070fdac138eee7df6235bcc8fbb5 | YoshikuniJujo/test_haskell | TypeMatch.hs | # LANGUAGE MultiParamTypeClasses #
# OPTIONS_GHC -Wall -fno - warn - tabs #
module TypeMatch where
class PairInt a b where add :: a -> b -> Int
data Foo s = Foo Int deriving Show
data Bar s = Bar Int deriving Show
instance PairInt (Foo s) (Bar s) where
Foo f `add` Bar b = f - b
instance {-# OVERLAPPABLE #-} Pair... | null | https://raw.githubusercontent.com/YoshikuniJujo/test_haskell/a6613365b4ce8d869e955cd9050705bedf1f4868/tribial/tribial-trials/src/TypeMatch.hs | haskell | # OVERLAPPABLE #
^
>>> sampleFun (Foo 8) (Bar 9)
-1 | # LANGUAGE MultiParamTypeClasses #
# OPTIONS_GHC -Wall -fno - warn - tabs #
module TypeMatch where
class PairInt a b where add :: a -> b -> Int
data Foo s = Foo Int deriving Show
data Bar s = Bar Int deriving Show
instance PairInt (Foo s) (Bar s) where
Foo f `add` Bar b = f - b
Foo f `add` Bar b = f + b
sample... |
f7c0f0f5935d249fde05ffaaeba2c748016551c0d59c069aad29840a0f68c695 | takikawa/racket-ppa | info.rkt | (module info setup/infotab (#%module-begin (define collection (quote multi)) (define deps (quote ("base" "compatibility-lib" "drracket-plugin-lib" "gui-lib" "htdp-lib" "scheme-lib" "srfi-lib" "string-constants-lib"))) (define pkg-desc "Signature support for teaching languages") (define pkg-authors (quote (sperber))) (d... | null | https://raw.githubusercontent.com/takikawa/racket-ppa/26d6ae74a1b19258c9789b7c14c074d867a4b56b/share/pkgs/deinprogramm-signature/info.rkt | racket | (module info setup/infotab (#%module-begin (define collection (quote multi)) (define deps (quote ("base" "compatibility-lib" "drracket-plugin-lib" "gui-lib" "htdp-lib" "scheme-lib" "srfi-lib" "string-constants-lib"))) (define pkg-desc "Signature support for teaching languages") (define pkg-authors (quote (sperber))) (d... | |
aaea4371d9a3d6696d00ef2993b5a2b9b456157b713e5b09476bb2d5969e5bd9 | ghcjs/ghcjs | Lisplikefns.hs |
Haskell version of ...
! Lisp - like functions which allow easy hand translation from Lisp to Hope+
! Started by on 30th March 1988
! Changes Log
! 18 - 05 - 88 added LUT functions and regularized assoc
! 25 - 05 - 88 added and DisplayLUT
Haskell version : :
23 - 06 - 93 JSM initial versio... | null | https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/test/nofib/spectral/boyer2/Lisplikefns.hs | haskell | "(" or ")" or "Lisp Symbol"
was:Text
These functions provide more complex operations based on a Lisp-like
functionality, they do not exactly match the equivalent Lisp functions
was:Text |
Haskell version of ...
! Lisp - like functions which allow easy hand translation from Lisp to Hope+
! Started by on 30th March 1988
! Changes Log
! 18 - 05 - 88 added LUT functions and regularized assoc
! 25 - 05 - 88 added and DisplayLUT
Haskell version : :
23 - 06 - 93 JSM initial versio... |
a2dd422a31c121fb6b15ee3d4ca14cf45f10bd00e208910aa0e566248bd1d790 | TorXakis/TorXakis | Synchronization.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.
-}
{-# LANGUAGE OverloadedStrings #-}
modul... | null | https://raw.githubusercontent.com/TorXakis/TorXakis/038463824b3d358df6b6b3ff08732335b7dbdb53/test/sqatt/src/Benchmarks/Synchronization.hs | haskell | # LANGUAGE OverloadedStrings # |
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 Benchmarks.Synchronization (bench... |
0f2148c482b792fb96fe83c5d98fedc261bb6eee4af300f9332c6d452bfb17f7 | SamueleGiraudo/Calimba | Main.ml | Author :
* Creation : ( aug . 2016 ) , apr . 2020
* Modifications : apr . 2020 , may 2020 , jul . 2020 , aug . 2020 , dec . 2020 , jan . 2021 , may 2021 ,
* aug . 2021 , nov . 2021 , dec . 2021 , jan . 2022 , may 2022 , aug . 2022
* Creation: (aug. 2016), apr. 2020
* Modifications: apr. 2020, may 2020... | null | https://raw.githubusercontent.com/SamueleGiraudo/Calimba/c1e6e847f6ff1bff08dc8c7024c440a07e16f46b/Sources/Main.ml | ocaml | Main expression.
Creation of the buffer directory if it does not exist.
Version.
Help.
Reading file from path.
Detecting a bunch specification.
Writing a PCM file.
Writing an SVG file.
Playing.
Unknown arguments. | Author :
* Creation : ( aug . 2016 ) , apr . 2020
* Modifications : apr . 2020 , may 2020 , jul . 2020 , aug . 2020 , dec . 2020 , jan . 2021 , may 2021 ,
* aug . 2021 , nov . 2021 , dec . 2021 , jan . 2022 , may 2022 , aug . 2022
* Creation: (aug. 2016), apr. 2020
* Modifications: apr. 2020, may 2020... |
ae86b08a52c2686764f39dfc088a80ab429c33c0809ad6e8e59dff0d1d0ee472 | simingwang/emqx-plugin-kafkav5 | inet6_sctp.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 2007 - 2021 . 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 applicab... | null | https://raw.githubusercontent.com/simingwang/emqx-plugin-kafkav5/bbf919e56dbc8fd2d4c1c541084532f844a11cbc/_build/default/rel/emqx_plugin_kafka/lib/kernel-8.3/src/inet6_sctp.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 2007 - 2021 . All Rights Reserved .
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
SCTP protocol contribution by and .
-module(inet6_sctp).
sockets using the SCTP protocol . The implementat... |
5c03420890324cc33cd02040b17dab0562ac3677b0433745af5eac9a6941dadd | pflanze/chj-schemelib | lazy-debug.scm | Copyright 2010 - 2020 by < >
;;; This file is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License ( GPL ) as published
by the Free Software Foundation , either version 2 of the License , or
;;; (at your option) any later version.
(require laz... | null | https://raw.githubusercontent.com/pflanze/chj-schemelib/59ff8476e39f207c2f1d807cfc9670581c8cedd3/lazy-debug.scm | scheme | This file is free software; you can redistribute it and/or modify
(at your option) any later version.
and after allocating the pad already, but 'could' still be beneficial:
well could have used the latter for each case..
include cj-structs, too!
make copy forcing everything
only copy what was already evalu... | Copyright 2010 - 2020 by < >
it under the terms of the GNU General Public License ( GPL ) as published
by the Free Software Foundation , either version 2 of the License , or
(require lazy
debuggable-promise
(vector-util vector-map)
(values-util values-map values->list))
(export F
F1
S
#!opti... |
bc3ce5c77b8580c8dc0061e2ea73c170df3bdca84e9df069db42bcd1bb6058d9 | camsaul/toucan2 | disallow_test.clj | (ns toucan2.tools.disallow-test
(:require
[clojure.test :refer :all]
[toucan2.delete :as delete]
[toucan2.insert :as insert]
[toucan2.select :as select]
[toucan2.test :as test]
[toucan2.tools.disallow :as disallow]
[toucan2.update :as update]))
(derive ::venues.no-select ::test/venues)
(derive :... | null | https://raw.githubusercontent.com/camsaul/toucan2/6d1e0df579c51a0bb128ca5586028d8b374c59be/test/toucan2/tools/disallow_test.clj | clojure | (ns toucan2.tools.disallow-test
(:require
[clojure.test :refer :all]
[toucan2.delete :as delete]
[toucan2.insert :as insert]
[toucan2.select :as select]
[toucan2.test :as test]
[toucan2.tools.disallow :as disallow]
[toucan2.update :as update]))
(derive ::venues.no-select ::test/venues)
(derive :... | |
5abfa97c7f4fdb48f63e72857369ecd1e292073f2095a17c2bb754d734b39548 | dyoo/whalesong | simple-apply.rkt | #lang whalesong/base
(apply + 2 3 4 5 '())
(apply + 2 3 4 '(5))
(apply + 2 3 '(4 5))
(apply + 2 '(3 4 5))
(apply + '(2 3 4 5))
(apply * 2 3 4 5 '())
(apply * 2 3 4 '(5))
(apply * 2 3 '(4 5))
(apply * 2 '(3 4 5))
(apply * '(2 3 4 5))
(apply (lambda args args) 2 3 4 5 '())
(apply (lambda args args) 2 3 4 '(5))
(apply... | null | https://raw.githubusercontent.com/dyoo/whalesong/636e0b4e399e4523136ab45ef4cd1f5a84e88cdc/whalesong/tests/more-tests/simple-apply.rkt | racket | #lang whalesong/base
(apply + 2 3 4 5 '())
(apply + 2 3 4 '(5))
(apply + 2 3 '(4 5))
(apply + 2 '(3 4 5))
(apply + '(2 3 4 5))
(apply * 2 3 4 5 '())
(apply * 2 3 4 '(5))
(apply * 2 3 '(4 5))
(apply * 2 '(3 4 5))
(apply * '(2 3 4 5))
(apply (lambda args args) 2 3 4 5 '())
(apply (lambda args args) 2 3 4 '(5))
(apply... | |
2b58a3d38bb475853af95755190b46cf0378942322a7a5fcee6cc22275d9d484 | clojure-interop/aws-api | AWSWAFAsyncClientBuilder.clj | (ns com.amazonaws.services.waf.AWSWAFAsyncClientBuilder
"Fluent builder for AWSWAFAsync. Use of the builder is preferred over using
constructors of the client class."
(:refer-clojure :only [require comment defn ->])
(:import [com.amazonaws.services.waf AWSWAFAsyncClientBuilder]))
(defn *standard
"returns: Cr... | null | https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.waf/src/com/amazonaws/services/waf/AWSWAFAsyncClientBuilder.clj | clojure | (ns com.amazonaws.services.waf.AWSWAFAsyncClientBuilder
"Fluent builder for AWSWAFAsync. Use of the builder is preferred over using
constructors of the client class."
(:refer-clojure :only [require comment defn ->])
(:import [com.amazonaws.services.waf AWSWAFAsyncClientBuilder]))
(defn *standard
"returns: Cr... | |
106c652b13434b5fa7fbb30f7b38b02d03824bca74c2ec61e793ba042ff260f8 | engstrand-config/guix-dotfiles | utils.scm | (define-module (engstrand packages utils)
#:use-module (guix utils)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix build-system copy)
#:use-module (guix build-system cargo)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (gnu p... | null | https://raw.githubusercontent.com/engstrand-config/guix-dotfiles/54e051678052e4d1421236d1170b048b6a3f1b59/engstrand/packages/utils.scm | scheme | (define-module (engstrand packages utils)
#:use-module (guix utils)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix build-system copy)
#:use-module (guix build-system cargo)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (gnu p... | |
815abae3d877d96260be594b74482fdfbf12a5299d3ca38ab56854544a8c9701 | nikodemus/SBCL | early-c.lisp | ;;;; This file contains compiler code and compiler-related stuff which
;;;; can be built early on. Some of the stuff may be here because it's
;;;; needed early on, some other stuff (e.g. constants) just because
;;;; it might as well be done early so we don't have to think about
;;;; whether it's done early enough.
T... | null | https://raw.githubusercontent.com/nikodemus/SBCL/3c11847d1e12db89b24a7887b18a137c45ed4661/src/compiler/early-c.lisp | lisp | This file contains compiler code and compiler-related stuff which
can be built early on. Some of the stuff may be here because it's
needed early on, some other stuff (e.g. constants) just because
it might as well be done early so we don't have to think about
whether it's done early enough.
more information.
pub... |
This software is part of the SBCL system . See the README file for
This software is derived from the CMU CL system , which was
written at Carnegie Mellon University and released into the
(in-package "SB!C")
(def!constant sb!xc:call-arguments-limit sb!xc:most-positive-fixnum
#!+sb-doc
"The exclusive upper b... |
f1ea13b0d9d27f8945fcfff11be79fb4b6203c9e7cc68f19deac7972bc7624e2 | monadbobo/ocaml-core | tcp.mli | open Core.Std ;;
* [ with_conn ] opens a connection to the TCP service on [ host ] [ port ] and
if successful calls [ f ] with In_channel.t and Out_channel.t as arguments .
The return value of [ f ] will be returned by [ with_conn ] .
[ with_conn ] raises Connect_timeout if the connection attempt times ou... | null | https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/core/extended/lib/tcp.mli | ocaml | open Core.Std ;;
* [ with_conn ] opens a connection to the TCP service on [ host ] [ port ] and
if successful calls [ f ] with In_channel.t and Out_channel.t as arguments .
The return value of [ f ] will be returned by [ with_conn ] .
[ with_conn ] raises Connect_timeout if the connection attempt times ou... | |
6087d1ad1ce45db8ff79a3f94dfb2c67c2ea08e66d53182d9e988a02400223e8 | tommaisey/aeon | dbufrd.help.scm | (with-sc3
(lambda (fd)
(async fd (b-alloc 10 24 1))
(send fd (b-setn1 10 0 (replicate-m 24 (exp-random 200 500))))))
(let* ((q (dseq 3 (make-mce (list 0 3 5 0 3 7 0 5 9))))
(p (dseq dinf (mce2 q (dbrown 5 0 23 1))))
(t (dust kr 10)))
(audition (out 0 (mul (sin-osc ar (demand t 0 (dbufrd 10 p 1))... | null | https://raw.githubusercontent.com/tommaisey/aeon/80744a7235425c47a061ec8324d923c53ebedf15/libs/third-party/sc3/rsc3/help/ugen/demand/dbufrd.help.scm | scheme | Buffer as a time pattern.
free buffers | (with-sc3
(lambda (fd)
(async fd (b-alloc 10 24 1))
(send fd (b-setn1 10 0 (replicate-m 24 (exp-random 200 500))))))
(let* ((q (dseq 3 (make-mce (list 0 3 5 0 3 7 0 5 9))))
(p (dseq dinf (mce2 q (dbrown 5 0 23 1))))
(t (dust kr 10)))
(audition (out 0 (mul (sin-osc ar (demand t 0 (dbufrd 10 p 1))... |
486c2fe95e6cf1234c173eb53b6d368bf64fa06b65b4572fbe50b4f0b51f1b0b | verystable/warframe-autobuilder | CriticalChanceMods.hs | # LANGUAGE NoImplicitPrelude #
{-# LANGUAGE OverloadedStrings #-}
-- |
-- Module : Builder.Mods.PistolMods.CriticalChanceMods
-- Maintainer :
-- Stability : experimental
--
-- Contains function that modify critical chance, applicable on secondary weapons.
module Builder.Mods.PistolMods.CriticalChanceMods whe... | null | https://raw.githubusercontent.com/verystable/warframe-autobuilder/015e0bb6812711ea27071816d054cbaa1c65770b/src/Builder/Mods/PistolMods/CriticalChanceMods.hs | haskell | # LANGUAGE OverloadedStrings #
|
Module : Builder.Mods.PistolMods.CriticalChanceMods
Maintainer :
Stability : experimental
Contains function that modify critical chance, applicable on secondary weapons.
| Pistol Gambit [+120% Critical Chance]
| Primed Pistol Gambit [+187% Critical Chance]
| Hydraulic ... | # LANGUAGE NoImplicitPrelude #
module Builder.Mods.PistolMods.CriticalChanceMods where
import ClassyPrelude
import Control.Lens ( (^.) )
import GenericFunctions.GenericFunctions
import Types.GenericWeapon
pistolGambit
:: GenericWeapon -> (GenericWeapon, [T... |
98420e202131d363d67eb6a0be767dfe2aeb02053f141a02d706578bc46e2718 | marick/fp-oo | shapely-3.clj |
Exercise 3
(def pattern-classification
(fn [pattern & rest]
(cond (symbol? pattern)
::symbol
(sequential? pattern)
::nested
:else
::literal)))
(defspecialized match-one? ::nested
[pattern form]
(and
(sequential? form)
(= (coun... | null | https://raw.githubusercontent.com/marick/fp-oo/434937826d794d6fe02b3e9a62cf5b4fbc314412/old-code/solutions/shapely-3.clj | clojure | I could use `true?`, because I expect recursive calls to
obey the predicate convention (only `true` or `false`),
but I'll play it safe. |
Exercise 3
(def pattern-classification
(fn [pattern & rest]
(cond (symbol? pattern)
::symbol
(sequential? pattern)
::nested
:else
::literal)))
(defspecialized match-one? ::nested
[pattern form]
(and
(sequential? form)
(= (coun... |
492fdc5acdeb21fddd0072b6789001621852e6abec51729f7b0d96ea28bac346 | goblint/analyzer | mainspec.ml | open Goblint_lib
otherwise open_in would return wrong type for SpecUtil
open SpecUtil
let _ =
no arguments - > run interactively (= reading from stdin )
let args = Array.length Sys.argv > 1 in
if args && Sys.argv.(1) = "-" then
ignore(parse ~dot:true stdin)
else
let cin = if args then open_in Sys.a... | null | https://raw.githubusercontent.com/goblint/analyzer/5ad76318739e61259f9f858b7a678c0b56de046b/src/mainspec.ml | ocaml | exit 0 | open Goblint_lib
otherwise open_in would return wrong type for SpecUtil
open SpecUtil
let _ =
no arguments - > run interactively (= reading from stdin )
let args = Array.length Sys.argv > 1 in
if args && Sys.argv.(1) = "-" then
ignore(parse ~dot:true stdin)
else
let cin = if args then open_in Sys.a... |
b70641c4d6fe92655d6cc08ce5b2e62900390df650dd70d0068bb41411846ac6 | adventuring/tootsville.net | package.lisp | ;;;; -*- lisp -*-
;;;
src / package.lisp is part of
;;;
Copyright © 2008 - 2017 Bruce - Robert Pocock ; © 2018 - 2021 The
Corporation for Inter - World Tourism and Adventuring ( ciwta.org ) .
;;;
This program is Free Software : you can redistribute it and/or
modify it under the te... | null | https://raw.githubusercontent.com/adventuring/tootsville.net/985c11a91dd1a21b77d7378362d86cf1c031b22c/src/package.lisp | lisp | -*- lisp -*-
© 2018 - 2021 The
either version 3 of
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 Public License for more det... | src / package.lisp is part of
Corporation for Inter - World Tourism and Adventuring ( ciwta.org ) .
This program is Free Software : you can redistribute it and/or
modify it under the terms of the GNU Affero General Public License
the License , or ( at your option ) any later version .
You sho... |
939a8d036eb8fb4aecd6ccf04e729e0d9ceccd0f9769f242f55cbe06b9223c9a | lsevero/clj-curl | opts.clj | (ns clj-curl.opts
(:refer-clojure :exclude [proxy quote range resolve]))
(def ^:const accepttimeout-ms 212)
(def ^:const accept-encoding 10102)
(def ^:const address-scope 171)
(def ^:const appconnect-time 3145761)
(def ^:const append 50)
(def ^:const autoreferer 58)
(def ^:const buffersize 98)
(def ^:const cainfo 10... | null | https://raw.githubusercontent.com/lsevero/clj-curl/b4e209efd59c7095c610e42a639bfa3ac3356083/src/clj_curl/opts.clj | clojure | ((size_t) -1) | (ns clj-curl.opts
(:refer-clojure :exclude [proxy quote range resolve]))
(def ^:const accepttimeout-ms 212)
(def ^:const accept-encoding 10102)
(def ^:const address-scope 171)
(def ^:const appconnect-time 3145761)
(def ^:const append 50)
(def ^:const autoreferer 58)
(def ^:const buffersize 98)
(def ^:const cainfo 10... |
eee43619c4fefd4f35b66b4d8431b200912a0bc1bfa1b0f40b9728dc4a6eb609 | spechub/Hets | Options.hs | # LANGUAGE CPP #
|
Module : ./Driver / Options.hs
Description : Datatypes and functions for options that hets understands .
Copyright : ( c ) , , Uni Bremen 2002 - 2006
License : GPLv2 or higher , see LICENSE.txt
Maintainer :
Stability : provisional
Portability : p... | null | https://raw.githubusercontent.com/spechub/Hets/4aa2fe207927302592e35ab3304d5a8aecf39b0f/Driver/Options.hs | haskell | | translate a given http reference using the URL catalog
use the same strings for parsing and printing!
for comments see usage info
^ files to be read
^ specs to be processed
^ comorphism to be processed
^ views to be processed
^ send messages to stdout?
| use the library name in positions to avoid difference... | # LANGUAGE CPP #
|
Module : ./Driver / Options.hs
Description : Datatypes and functions for options that hets understands .
Copyright : ( c ) , , Uni Bremen 2002 - 2006
License : GPLv2 or higher , see LICENSE.txt
Maintainer :
Stability : provisional
Portability : p... |
8718b5a5cb061244cfcaca06241d1bb259be76179ae8a5910cd91a8e213036d4 | nyu-acsys/drift | odd_even.ml | (*
Revised From: jayhorn/benchmarks SatHanoi01_true.java
*)
let rec is_odd on =
if on = 0 then false
else if on = 1 then true
else is_odd (on - 2)
let rec is_even en =
if en = 0 then true
else if en = 1 then false
else is_even (en - 2)
let main (n:int(*-:{v:Int | true}*)) =
if n > 0 then
if n mod ... | null | https://raw.githubusercontent.com/nyu-acsys/drift/51a3160d74b761626180da4f7dd0bb950cfe40c0/tests/benchmarks/DRIFT/first/odd_even.ml | ocaml |
Revised From: jayhorn/benchmarks SatHanoi01_true.java
-:{v:Int | true} |
let rec is_odd on =
if on = 0 then false
else if on = 1 then true
else is_odd (on - 2)
let rec is_even en =
if en = 0 then true
else if en = 1 then false
else is_even (en - 2)
if n > 0 then
if n mod 2 = 0 then
assert(is_even n)
else if n mod 2 = 1 then
assert(is_odd n)... |
5492e20a9b972c5ad73b4481495e6b13773576b9f2d10e679237c05d27605b76 | geophf/1HaskellADay | Exercise.hs | module Y2021.M03.D23.Exercise where
-
HOWDY ! So , what shall we do today ?
I would like to implement FORTH , but that 's just me . Did you know that in
FORTH pi is simply defined as :
: pi 355 113 * / ;
( c.f . : -programming-language/ )
I LOVE IT ! What 's even more amazing is that developed Forth ... | null | https://raw.githubusercontent.com/geophf/1HaskellADay/514792071226cd1e2ba7640af942667b85601006/exercises/HAD/Y2021/M03/D23/Exercise.hs | haskell | }
} | module Y2021.M03.D23.Exercise where
-
HOWDY ! So , what shall we do today ?
I would like to implement FORTH , but that 's just me . Did you know that in
FORTH pi is simply defined as :
: pi 355 113 * / ;
( c.f . : -programming-language/ )
I LOVE IT ! What 's even more amazing is that developed Forth ... |
2cc37ddd3c106667cf023f24b355d1ca52de2119aee76b5ae5e8bbefa45203ca | Eventuria/demonstration-gsd | Definition.hs | {-# LANGUAGE OverloadedStrings #-}
# LANGUAGE DuplicateRecordFields #
# LANGUAGE NamedFieldPuns #
# LANGUAGE DataKinds #
# LANGUAGE DeriveGeneric #
# LANGUAGE FlexibleInstances #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE MultiParamTypeClasses #
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
# L... | null | https://raw.githubusercontent.com/Eventuria/demonstration-gsd/5c7692b310086bc172d3fd4e1eaf09ae51ea468f/src/Eventuria/GSD/Write/CommandConsumer/API/HealthCheck/Definition.hs | haskell | # LANGUAGE OverloadedStrings #
# LANGUAGE OverloadedStrings #
# LANGUAGE RankNTypes # | # LANGUAGE DuplicateRecordFields #
# LANGUAGE NamedFieldPuns #
# LANGUAGE DataKinds #
# LANGUAGE DeriveGeneric #
# LANGUAGE FlexibleInstances #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeOperators #
module Eventuria.GSD.Write.CommandConsume... |
efcde089c7a9edd07afd012e8c5853200243aa8ac1a3086171a12d60e405d523 | javalib-team/javalib | jFile.ml |
* This file is part of Javalib
* Copyright ( c)2007 ( Université de Rennes 1 )
* Copyright ( c)2007 , 2008 , 2009 ( CNRS )
* Copyright ( c)2016 ( ENS Rennes )
* Copyright ( c)2016 ( CNRS )
*
* This software is free software ; you can redistribute it and/or
* modify it under the terms of ... | null | https://raw.githubusercontent.com/javalib-team/javalib/807881077342a1a22650e6a9906ae5c2743a9940/src/jFile.ml | ocaml | there may be an error as the recursive call may have already
build d if d was equal to "foo/bar/."
We should catch only the exceptions Unix_error _ and End_of_file
that we raised.
Search for class c in a given directory or jar file
We delete the unwanted empty strings due to the
presence of multip... |
* This file is part of Javalib
* Copyright ( c)2007 ( Université de Rennes 1 )
* Copyright ( c)2007 , 2008 , 2009 ( CNRS )
* Copyright ( c)2016 ( ENS Rennes )
* Copyright ( c)2016 ( CNRS )
*
* This software is free software ; you can redistribute it and/or
* modify it under the terms of ... |
12a2cbf3358a993437ae67495003b90411c1d0b9315300b6c0b1d3698b01e485 | danieljharvey/mimsa | DataTypes.hs | # LANGUAGE DataKinds #
# LANGUAGE DerivingStrategies #
# LANGUAGE FlexibleContexts #
module Smol.Core.IR.FromExpr.DataTypes
( getDataTypeInMemory,
typeToDataTypeInMemory,
patternTypeInMemory,
constructorTypeInMemory,
DataTypeInMemory (..),
)
where
import Control.Monad.Except
import Control.Monad.I... | null | https://raw.githubusercontent.com/danieljharvey/mimsa/296ab9bcbdbaf682fa76921ce3c80d4bbafb52ae/smol-core/src/Smol/Core/IR/FromExpr/DataTypes.hs | haskell | there is probably a nicer version of this function that just returns
the whole amd speciic types
given a datatype, and enough args to fulfil it's vars (in order)
plan data type as it will live in memory
this will fail if passed more type vars,
we need to get concrete, people
| very approximate way of working out... | # LANGUAGE DataKinds #
# LANGUAGE DerivingStrategies #
# LANGUAGE FlexibleContexts #
module Smol.Core.IR.FromExpr.DataTypes
( getDataTypeInMemory,
typeToDataTypeInMemory,
patternTypeInMemory,
constructorTypeInMemory,
DataTypeInMemory (..),
)
where
import Control.Monad.Except
import Control.Monad.I... |
4079cf726120172ec7866c04ae023e519034ae88a43a54aaa527e9212c8a3af4 | project-oak/hafnium-verification | typeState.ml |
* 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/nullsafe/typeState.ml | ocaml | * Module for typestates: maps from expressions to annotated types, with extensions. |
* 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
... |
5d8622e54b577d2a7202eddff9bfae379ddc15887a84a3b9235575fd7d76cdf2 | NorfairKing/smos | Bench.hs | # LANGUAGE AllowAmbiguousTypes #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
module Main where
import Criterion.Main as Criterion
import Data.GenValidity.Criterion
import Smos.Sync.Client.ContentsMap
import Smos.Sync.Client.ContentsMap.Gen
import Smos.Sync.Client.Env
import Smos.Sync.Client.MetaMap... | null | https://raw.githubusercontent.com/NorfairKing/smos/f72b26c2e66ab4f3ec879a1bedc6c0e8eeb18a01/smos-sync-client-gen/bench/Bench.hs | haskell | # LANGUAGE AllowAmbiguousTypes #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
module Main where
import Criterion.Main as Criterion
import Data.GenValidity.Criterion
import Smos.Sync.Client.ContentsMap
import Smos.Sync.Client.ContentsMap.Gen
import Smos.Sync.Client.Env
import Smos.Sync.Client.MetaMap... | |
a5b8a63755c2a5be4fbf06d039799947b8f3a33a0e3130adcdbcd70a15453409 | dhess/sicp-solutions | ex1.45.scm | (define (average x y) (/ (+ x y) 2))
(define (average-damp f)
(lambda (x) (average x (f x))))
(define tolerance 0.00001)
(define (fixed-point f first-guess)
(define (close-enough? v1 v2)
(< (abs (- v1 v2)) tolerance))
(define (try guess)
(let ((next (f guess)))
(if (close-enough? guess next)
... | null | https://raw.githubusercontent.com/dhess/sicp-solutions/2cf78db98917e9cb1252efda76fddc8e45fe4140/chap1/ex1.45.scm | scheme | (define (average x y) (/ (+ x y) 2))
(define (average-damp f)
(lambda (x) (average x (f x))))
(define tolerance 0.00001)
(define (fixed-point f first-guess)
(define (close-enough? v1 v2)
(< (abs (- v1 v2)) tolerance))
(define (try guess)
(let ((next (f guess)))
(if (close-enough? guess next)
... | |
45f9a409a96176479f5a7f316b1791bd587e38487dd15f1d03393984744ed927 | zaxtax/hakaru-old | ImportanceSampler.hs | {-# LANGUAGE BangPatterns #-}
module Language.Hakaru.Tests.ImportanceSampler where
import Data.Dynamic
import Language.Hakaru.Types
import Language.Hakaru.Lambda
import Language.Hakaru.ImportanceSampler
import Test.QuickCheck.Monadic
-- Some example/test programs in our language
prog_mixture :: Measure Bool
prog_mi... | null | https://raw.githubusercontent.com/zaxtax/hakaru-old/edac4bca19a2b7b9257e584529cde5e7242e9695/Language/Hakaru/Tests/ImportanceSampler.hs | haskell | # LANGUAGE BangPatterns #
Some example/test programs in our language |
module Language.Hakaru.Tests.ImportanceSampler where
import Data.Dynamic
import Language.Hakaru.Types
import Language.Hakaru.Lambda
import Language.Hakaru.ImportanceSampler
import Test.QuickCheck.Monadic
prog_mixture :: Measure Bool
prog_mixture = do
c <- unconditioned (bern 0.5)
_ <- conditioned (ifThenElse c ... |
8169c7e197932db46bf3412ad23dce7a70e39af7356100dc48cb4b739888400f | ekmett/ersatz | Solution.hs | --------------------------------------------------------------------
-- |
Copyright : © 2010 - 2014 , 2013
-- License : BSD3
Maintainer : < >
-- Stability : experimental
-- Portability: non-portable
--
--------------------------------------------------------------------
module Ersatz.Solution
( Sol... | null | https://raw.githubusercontent.com/ekmett/ersatz/2218d30818141957957b1533118dd34bd60df245/src/Ersatz/Solution.hs | haskell | ------------------------------------------------------------------
|
License : BSD3
Stability : experimental
Portability: non-portable
------------------------------------------------------------------
| A @'Solver' s m@ is responsible for invoking a solver and
returning a 'Result' and a map of determined re... | Copyright : © 2010 - 2014 , 2013
Maintainer : < >
module Ersatz.Solution
( Solution(..), solutionFrom
, Result(..)
, Solver
) where
import Control.Lens
import qualified Data.HashMap.Lazy as HashMap
import Data.IntMap (IntMap)
import qualified Data.IntMap.Strict as IntMap
import Data.Ix
import Er... |
79ebf93a2e5e72f3c3e58445fac19fc43daf39afb7e111b34b9c09a03735e797 | I3ck/HGE2D | Colors.hs | -- |
-- Module : HGE2D.Colors
Copyright : ( c ) 2016
-- License : see LICENSE
--
-- Containing color definitions to have easy access to basic colors
module HGE2D.Colors where
import HGE2D.Types
--------------------------------------------------------------------------------
colorBlack :: GlColor... | null | https://raw.githubusercontent.com/I3ck/HGE2D/7ab789964013d8f24cd0be9fbad967d41d00a4bb/src/HGE2D/Colors.hs | haskell | |
Module : HGE2D.Colors
License : see LICENSE
Containing color definitions to have easy access to basic colors
------------------------------------------------------------------------------ | Copyright : ( c ) 2016
module HGE2D.Colors where
import HGE2D.Types
colorBlack :: GlColorRGB
colorBlack = (0, 0, 0)
colorWhite :: GlColorRGB
colorWhite = (1, 1, 1)
colorIce :: GlColorRGB
colorIce = (0.45, 0.73, 0.98)
colorMetal :: GlColorRGB
colorMetal = (0.73, 0.73, 0.73)
colorWater :: GlColorRGB
colo... |
4ab44a7ee4efad21bbb25f37ed20a46f387565a676d5534d6f9a7d5da791d730 | 3b/parenscript | special-operators.lisp | (in-package #:parenscript)
(in-readtable :parenscript)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; arithmetic and logic
(define-trivial-special-ops
+ ps-js:+
- ps-js:-
* ps-js:*
rem ps-js:%
and ps-js:&&
or ps-js:\|\|
logand ps-js:&
logio... | null | https://raw.githubusercontent.com/3b/parenscript/cb4a605ef0ac4fcea1e0ccec23d5748cee613cc3/src/special-operators.lisp | lisp |
arithmetic and logic
for n>2, /= is finding duplicates in an array of numbers (ie -
blocks and control flow
fixme: multiple values
for backwards-compatibility
poor man's codewalker
fail
non-local exit
implicit progn forms
this will go away someday
conditionals
macros
assignment
this must be used as a... | (in-package #:parenscript)
(in-readtable :parenscript)
(define-trivial-special-ops
+ ps-js:+
- ps-js:-
* ps-js:*
rem ps-js:%
and ps-js:&&
or ps-js:\|\|
logand ps-js:&
logior ps-js:\|
logxor ps-js:^
lognot ps-js:~
aref ps-js... |
cc82a489069b9c210d934e4d1580b1bdcc190056ee2279c17ab9e99f16c496d7 | Factual/c4 | core.clj | (ns c4.core
(:require [clojure.string :as str]
[fs.core :as fs]
[clojure-csv.core :as csv]
[cheshire.core :as json]
[clojure.java.io :as io]
[ordered.set :as ords]
[ordered.map :as ordm]
[clojure.java.shell :as sh])
(:use [clojure.t... | null | https://raw.githubusercontent.com/Factual/c4/9391e9a4cb5c9ec6da91cce1cdf5db740f79d37e/src/c4/core.clj | clojure | otherwise the
otherwise the
otherwise the
otherwise the underlying file resource
TODO(aaron): row-seq-* could possibly be refactored/collapsed?
TODO(aaron): need to do anything special with non-String values, e.g. from JSON?
TODO(aaron): somewhere, validate the we recognize the extension
do... | (ns c4.core
(:require [clojure.string :as str]
[fs.core :as fs]
[clojure-csv.core :as csv]
[cheshire.core :as json]
[clojure.java.io :as io]
[ordered.set :as ords]
[ordered.map :as ordm]
[clojure.java.shell :as sh])
(:use [clojure.t... |
0ddce7778168196c4dcb8a929f733e4cdf169c65a2008874b64feacc3dd59398 | ghc/nofib | CmdLine.hs | -----------------------------------------------------------------------------
CmdLine.hs
( c ) 2005
-----------------------------------------------------------------------------
module CmdLine
(
flags, other_args, cmdline_errors,
devs, nodevs, tooquick_threshold, reportTitle,
CLIFlags(..), usage... | null | https://raw.githubusercontent.com/ghc/nofib/f34b90b5a6ce46284693119a06d1133908b11856/nofib-analyse/CmdLine.hs | haskell | ---------------------------------------------------------------------------
---------------------------------------------------------------------------
---------------------------------------------------------------------------
Command line arguments
secs | CmdLine.hs
( c ) 2005
module CmdLine
(
flags, other_args, cmdline_errors,
devs, nodevs, tooquick_threshold, reportTitle,
CLIFlags(..), usage,
)
where
import System.Console.GetOpt
import System.Environment ( getArgs )
import System.IO.Unsafe ( unsafePerformIO )
args :: [S... |
3b6ecf18065df5539a7a5693bf1618bd8908e085a58abb9fad6752ceea20f40f | dwayne/eopl3 | interpreter.rkt | #lang eopl
(require "./env.rkt")
(require "./parser.rkt")
(provide
;; Expressed Values
num-val bool-val list-val
;; Interpreter
run)
(define (run s)
(let ([init-env (extend-env
'i (num-val 1)
(extend-env
'v (num-val 5)
(extend-env
... | null | https://raw.githubusercontent.com/dwayne/eopl3/9d5fdb2a8dafac3bc48852d49cda8b83e7a825cf/solutions/05-ch5/interpreters/racket/LETCC-5.43/interpreter.rkt | racket | Expressed Values
Interpreter
FinalAnswer = ExpVal
Continuations
Cont x ExpVal -> FinalAnswer
apply-callable : ExpVal -> List[ExpVal] -> Cont -> FinalAnswer
apply-hanlder : ExpVal -> Cont -> FinalAnswer
Procedure ADT
Values
ExpVal = Int + Bool + Proc + List[ExpVal] | #lang eopl
(require "./env.rkt")
(require "./parser.rkt")
(provide
num-val bool-val list-val
run)
(define (run s)
(let ([init-env (extend-env
'i (num-val 1)
(extend-env
'v (num-val 5)
(extend-env
'x (num-val 10)
... |
ef0db8945e1ec1d1d75e909f4b7450ffcddbb5e3626d0a564bb2908396cd2327 | ertugrulcetin/konva-cljs | blurred_rect.cljs | (ns examples.blurred-rect
(:require [reagent.core :as r]
[konva-cljs.core :refer [filters]]
[konva-cljs.components :as c]))
(defn blurred-rect-comp []
(let [state (r/atom {})]
(fn []
(r/create-class
{:component-did-mount (fn []
(.cache (:rect... | null | https://raw.githubusercontent.com/ertugrulcetin/konva-cljs/338e3e76a10857e12880ddf10ca05b0b4a2a653e/examples/src/cljs/examples/blurred_rect.cljs | clojure | (ns examples.blurred-rect
(:require [reagent.core :as r]
[konva-cljs.core :refer [filters]]
[konva-cljs.components :as c]))
(defn blurred-rect-comp []
(let [state (r/atom {})]
(fn []
(r/create-class
{:component-did-mount (fn []
(.cache (:rect... | |
992f1040a60984f1d4ca712f6ac29280d1989ebed530f12dbe749b29fd093399 | audreyt/openafp | RMI.hs | module OpenAFP.Records.PTX.RMI where
import OpenAFP.Types
import OpenAFP.Internals
data PTX_RMI = PTX_RMI {
ptx_rmi_Type :: !N1
,ptx_rmi :: !N2
} deriving (Show, Typeable)
| null | https://raw.githubusercontent.com/audreyt/openafp/178e0dd427479ac7b8b461e05c263e52dd614b73/src/OpenAFP/Records/PTX/RMI.hs | haskell | module OpenAFP.Records.PTX.RMI where
import OpenAFP.Types
import OpenAFP.Internals
data PTX_RMI = PTX_RMI {
ptx_rmi_Type :: !N1
,ptx_rmi :: !N2
} deriving (Show, Typeable)
| |
8b3666fd0d3d6ad347f4adac12efccd4bd0c56f4a532e01add64236d16215a71 | Apress/beg-haskell | Database.hs | # LANGUAGE TemplateHaskell , QuasiQuotes ,
TypeFamilies , EmptyDataDecls ,
FlexibleContexts , GADTs ,
OverloadedStrings #
TypeFamilies, EmptyDataDecls,
FlexibleContexts, GADTs,
OverloadedStrings #-}
module Chapter11.Database where
imp... | null | https://raw.githubusercontent.com/Apress/beg-haskell/aaacbf047d553e6177c38807e662cc465409dffd/chapter11/src/Chapter11/Database.hs | haskell | # LANGUAGE TemplateHaskell , QuasiQuotes ,
TypeFamilies , EmptyDataDecls ,
FlexibleContexts , GADTs ,
OverloadedStrings #
TypeFamilies, EmptyDataDecls,
FlexibleContexts, GADTs,
OverloadedStrings #-}
module Chapter11.Database where
imp... | |
ac188a25816f26cfe07008a3189fd9aca117b67d73842eef7c567c4d40e43b5d | jekor/vocabulink | SM2.hs | This is SuperMemo algorithm SM-2
( )
module Vocabulink.Review.SM2 (reviewInterval) where
import Vocabulink.Env
import Vocabulink.Utils
Each algorithm needs to export a |reviewInterval| function that accepts some
-- basic information about a completed review and returns the time from now to
-- schedule the nex... | null | https://raw.githubusercontent.com/jekor/vocabulink/7f938cd11ac81504b42a414998d48cf3b34a8a87/hs/Vocabulink/Review/SM2.hs | haskell | basic information about a completed review and returns the time from now to
schedule the next review for. |reviewInterval| will be called with an active
transaction, so it must not commit anything to the database (such as using
This function is responsible for doing any updates to the database that it
needs in ord... | This is SuperMemo algorithm SM-2
( )
module Vocabulink.Review.SM2 (reviewInterval) where
import Vocabulink.Env
import Vocabulink.Utils
Each algorithm needs to export a |reviewInterval| function that accepts some
quickStmt ' , etc . ) .
reviewInterval :: E (Int32 -> Int32 -> DiffTime -> Float -> IO DiffTi... |
736c8460d6e09b6ea5eba68f427b6ffee64a6f416d95be392cfe551ec2b0bc1f | w3ntao/sicp-solution | new-evaluator.rkt | #lang racket
(require (only-in (combine-in rnrs/base-6
rnrs/mutable-pairs-6
rnrs/io/simple-6)
cons
car
cdr
cadr
caadr
caddr
cadddr
... | null | https://raw.githubusercontent.com/w3ntao/sicp-solution/00be3a7b4da50bb266f8a2db521a24e9f8c156be/chap-4/new-evaluator.rkt | racket | Apply
Application
Procedure arguments
Conditionals
Sequences
Assignments and definitions
Representing Expressions
self evaluating := items, numbers
variables = symbol
(quote <text-of-quotation>)
(set! <var> <value>)
(define <var> <value>)
or
(define <var>
(lambda (<parameter-1> ... <parameter-n>)
... | #lang racket
(require (only-in (combine-in rnrs/base-6
rnrs/mutable-pairs-6
rnrs/io/simple-6)
cons
car
cdr
cadr
caadr
caddr
cadddr
... |
f0deb102e899214139b4889cbd88632ba0d2b2f3f5d0ed22b0f2a918bbfa8f18 | blindglobe/clocc | lambda.lisp | based on 1.2 -*- mode : lisp -*-
(in-package :cl-user)
(check-for-bug :lambda-legacy-4
(makunbound 'b) b)
(check-for-bug :lambda-legacy-7
(makunbound 'e) e)
(check-for-bug :lambda-legacy-10
(setq z 2) 2)
(check-for-bug :lambda-legacy-13
((lambda (z) (declare (special z)) (list z (symbol-value 'z))) 3)
(... | null | https://raw.githubusercontent.com/blindglobe/clocc/a50bb75edb01039b282cf320e4505122a59c59a7/src/tools/ansi-test/lambda.lisp | lisp | CLHS 3.4.1.4.1.1 | based on 1.2 -*- mode : lisp -*-
(in-package :cl-user)
(check-for-bug :lambda-legacy-4
(makunbound 'b) b)
(check-for-bug :lambda-legacy-7
(makunbound 'e) e)
(check-for-bug :lambda-legacy-10
(setq z 2) 2)
(check-for-bug :lambda-legacy-13
((lambda (z) (declare (special z)) (list z (symbol-value 'z))) 3)
(... |
ead369706c137cc22ac76a45eeaed859efa1e0f98dc0b09a40e233c5df3c3e72 | melisgl/higgsml | xgboost.lisp | ;;;; Unused in winning submission.
(in-package :rumcajsz)
(defun run-xgboost (training-file test-file output-file seed)
(external-program:run "/bin/bash"
(list
(merge-pathnames
"../xgboost-scripts/run.sh" *model-dir*)
... | null | https://raw.githubusercontent.com/melisgl/higgsml/a49679354f1b1896ea6472a5f615e9bcdee65638/src/xgboost.lisp | lisp | Unused in winning submission.
(defparameter *to-mirror*
(load-bag (lambda (i)
(merge-pathnames
(format nil "final/bag-~S-out-of-bag-predictions-bpn" i)
*model-dir*))))
(mirror-splits-with-xgboost *to-mirror*
(ensure-directories-exist
... |
(in-package :rumcajsz)
(defun run-xgboost (training-file test-file output-file seed)
(external-program:run "/bin/bash"
(list
(merge-pathnames
"../xgboost-scripts/run.sh" *model-dir*)
seed
tra... |
cae628015ddacc5c7def61d4232aa5bbd62a8e7d49557e9f5665a6f799082056 | coord-e/mlml | global_names.ml | let () =
(* starting with underscore to suppress warning *)
Tester.expr {|
let _f x = x + 3 in
let _f x = 10 * x + 3 in
_f 4
|};
Tester.expr
{|
let f x = (
if x = 0
then x + 3
else x * 3
) in
let g x = (
if x = 9
then x + 3
else x * 3
) in
... | null | https://raw.githubusercontent.com/coord-e/mlml/ec34b1fe8766901fab6842b790267f32b77a2861/test/global_names.ml | ocaml | starting with underscore to suppress warning | let () =
Tester.expr {|
let _f x = x + 3 in
let _f x = 10 * x + 3 in
_f 4
|};
Tester.expr
{|
let f x = (
if x = 0
then x + 3
else x * 3
) in
let g x = (
if x = 9
then x + 3
else x * 3
) in
g (f 3)
|}
;;
|
83f8b63191e0fde1a4aa6c69f0d84d4ce5e99edd0eb0d5c00f73629801b9cbf2 | gotthardp/lorawan-server | lorawan_handler_sup.erl | %
Copyright ( c ) 2016 - 2019 < >
% All rights reserved.
Distributed under the terms of the MIT License . See the LICENSE file .
%
-module(lorawan_handler_sup).
-behaviour(supervisor).
-export([start_link/0, start_child/0]).
-export([init/1]).
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE... | null | https://raw.githubusercontent.com/gotthardp/lorawan-server/1a5c0f2f4d8238a54a326c57a5eb0e6015821b1d/src/lorawan_handler_sup.erl | erlang |
All rights reserved.
end of file | Copyright ( c ) 2016 - 2019 < >
Distributed under the terms of the MIT License . See the LICENSE file .
-module(lorawan_handler_sup).
-behaviour(supervisor).
-export([start_link/0, start_child/0]).
-export([init/1]).
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
start_child() ->
... |
e7c7cfd729d4bfa8d970d3c48bf50625c27eccc36861714f54cac3edbccfcaf0 | expipiplus1/vulkan | StructureType.hs | {-# language CPP #-}
-- No documentation found for Chapter "StructureType"
module OpenXR.Core10.Enums.StructureType (StructureType( TYPE_UNKNOWN
, TYPE_API_LAYER_PROPERTIES
, TYPE_EXTENSION_PROPERTIES
... | null | https://raw.githubusercontent.com/expipiplus1/vulkan/ebc0dde0bcd9cf251f18538de6524eb4f2ab3e9d/openxr/src/OpenXR/Core10/Enums/StructureType.hs | haskell | # language CPP #
No documentation found for Chapter "StructureType"
| XrStructureType - Values for type members of structs
= Description
Most structures containing @type@ members have a value of @type@
matching the type of the structure, as described more fully in
<#valid-usage-for-structure-types Valid Usage f... | module OpenXR.Core10.Enums.StructureType (StructureType( TYPE_UNKNOWN
, TYPE_API_LAYER_PROPERTIES
, TYPE_EXTENSION_PROPERTIES
, TYPE_INSTANCE_CREATE_IN... |
eae70274d9a01062987292aecc17e9851fd8f00b60a183efa10009f0ffbb9b92 | tolitius/boot-check | reporting.clj | (ns tolitius.core.reporting)
(defmulti report (fn [issues options] (:reporter options)))
(defmulti report-extension (fn [options] (:reporter options)))
| null | https://raw.githubusercontent.com/tolitius/boot-check/e9d766532e7e8d2a7c4e11ee016922789e35d6d2/src/tolitius/core/reporting.clj | clojure | (ns tolitius.core.reporting)
(defmulti report (fn [issues options] (:reporter options)))
(defmulti report-extension (fn [options] (:reporter options)))
| |
c9b82d22a40fdc39704b406906dfca48ce4982a11ef081a409ed44a311a96fd7 | anmonteiro/piaf | eio_get.ml | module Result = struct
include Result
let ( let+ ) result f = map f result
let ( let* ) = bind
let ( and* ) r1 r2 =
match r1, r2 with
| Ok x, Ok y -> Ok (x, y)
| Ok _, Error e | Error e, Ok _ | Error e, Error _ -> Error e
end
let setup_log ?style_renderer level =
Fmt_tty.setup_std_outputs ?styl... | null | https://raw.githubusercontent.com/anmonteiro/piaf/77f3f539f84b82cf049c20678af1898484e0ae84/examples/eio/eio_get.ml | ocaml | module Result = struct
include Result
let ( let+ ) result f = map f result
let ( let* ) = bind
let ( and* ) r1 r2 =
match r1, r2 with
| Ok x, Ok y -> Ok (x, y)
| Ok _, Error e | Error e, Ok _ | Error e, Error _ -> Error e
end
let setup_log ?style_renderer level =
Fmt_tty.setup_std_outputs ?styl... | |
a9dcbe8fc7e627efae9777001dbbad37eceb64c8d1abfefa2f9ca427ba977971 | javalib-team/sawja | jCodePP.ml |
* This file is part of SAWJA
* Copyright ( c)2007 , 2008 ( Université de Rennes 1 )
* Copyright ( c)2007 , 2008 , 2009 ( CNRS )
* Copyright ( c)2009 ( INRIA )
* Copyright ( c)2013 ( INRIA )
*
* This program is free software : you can redistribute it and/or
* modify it under the terms of ... | null | https://raw.githubusercontent.com/javalib-team/sawja/da39f9c1c4fc52a1a1a6350be0e39789812b6c00/src/jCodePP.ml | ocaml | If we are in a pp, we should have code available.
all instruction following a jsr are returned.
Check clinit
start looking at the implementation. |
* This file is part of SAWJA
* Copyright ( c)2007 , 2008 ( Université de Rennes 1 )
* Copyright ( c)2007 , 2008 , 2009 ( CNRS )
* Copyright ( c)2009 ( INRIA )
* Copyright ( c)2013 ( INRIA )
*
* This program is free software : you can redistribute it and/or
* modify it under the terms of ... |
3784438d47dc2b0b1977c32c41696de0958a5ac9569db0ad3855a6bcf3b6dac3 | tmattio/js-bindings | node_constants.ml | [@@@js.dummy "!! This code has been generated by gen_js_api !!"]
[@@@ocaml.warning "-7-32-39"]
[@@@ocaml.warning "-7-11-32-33-39"]
open Es2020
open Node_globals
module Constants =
struct
include struct include Node_os.Os.Constants.Errno end
include struct include Node_os.Os.Constants.Priority end
include ... | null | https://raw.githubusercontent.com/tmattio/js-bindings/f1d36bba378e4ecd5310542a0244dce9258b6496/lib/node/node_constants.ml | ocaml | [@@@js.dummy "!! This code has been generated by gen_js_api !!"]
[@@@ocaml.warning "-7-32-39"]
[@@@ocaml.warning "-7-11-32-33-39"]
open Es2020
open Node_globals
module Constants =
struct
include struct include Node_os.Os.Constants.Errno end
include struct include Node_os.Os.Constants.Priority end
include ... | |
9088b03f21404638dd229f32ad265c217e7b10c45091b5f10f149881e964818a | JacquesCarette/Drasil | Body.hs | # LANGUAGE PostfixOperators #
module Drasil.DblPendulum.Body where
import Language.Drasil hiding (organization, section)
import Theory.Drasil (TheoryModel)
import Drasil.SRSDocument
import qualified Drasil.DocLang.SRS as SRS
import Language.Drasil.Chunk.Concept.NamedCombinators
import qualified Language.Drasil.NounPh... | null | https://raw.githubusercontent.com/JacquesCarette/Drasil/84272acccc09574dec70d8d96c6ea994f15f8b22/code/drasil-example/dblpendulum/lib/Drasil/DblPendulum/Body.hs | haskell | This creates the Table of Contents
This add the introduction blob to the reference section
Adds table of unit section with a table frame
Adds table of symbol section with a table frame
Add table of abbreviation and acronym section
This adds a is used to define the problem your system will solve
This is used t... | # LANGUAGE PostfixOperators #
module Drasil.DblPendulum.Body where
import Language.Drasil hiding (organization, section)
import Theory.Drasil (TheoryModel)
import Drasil.SRSDocument
import qualified Drasil.DocLang.SRS as SRS
import Language.Drasil.Chunk.Concept.NamedCombinators
import qualified Language.Drasil.NounPh... |
ad1cdc86537702641719ad9b55b6e6ed0c2a43030793b01acc5d19b78769a18a | sysbio-bioinf/avatar | solution_comparison_view.clj | Copyright ( c ) . All rights reserved .
; The use and distribution terms for this software are covered by the
Eclipse Public License 2.0 ( -v20.html )
; which can be found in the file LICENSE at the root of this distribution.
; By using this software in any fashion, you are agreeing to be bound by
; the terms of ... | null | https://raw.githubusercontent.com/sysbio-bioinf/avatar/cbf9968485f96fb61725aaa7381dba53624d6189/src/clojure/avatar/ui/dialogs/solution_comparison_view.clj | clojure | The use and distribution terms for this software are covered by the
which can be found in the file LICENSE 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.
no cover... | Copyright ( c ) . All rights reserved .
Eclipse Public License 2.0 ( -v20.html )
(ns avatar.ui.dialogs.solution-comparison-view
(:require [clj-jfx.core :as jfx]
[avatar.data.management :as dm]
[clj-jfx.properties :as props]
[clj-jfx.treetable :as treetable]
[clj-... |
cee0f4631e2eb7b54441b62e9863d0f052283cc7aaf18faf341aaceec7e74fc5 | kazu-yamamoto/http2 | Decode.hs | {-# LANGUAGE RecordWildCards, OverloadedStrings #-}
module Network.HPACK.HeaderBlock.Decode (
decodeHeader
, decodeTokenHeader
, ValueTable
, HeaderTable
, toHeaderTable
, getHeaderValue
, decodeString
, decodeS
, decodeSophisticated
, decodeSimple -- testing
) where
import Control.Exception (... | null | https://raw.githubusercontent.com/kazu-yamamoto/http2/88b3c192c251c15fa4dc426aa0372841dc3fee49/Network/HPACK/HeaderBlock/Decode.hs | haskell | # LANGUAGE RecordWildCards, OverloadedStrings #
testing
'getHeaderValue' should be used.
Internally, the key is 'tokenIx'.
--------------------------------------------------------------
* Headers are decoded as is.
and 'ValueTable'.
* Multiple values of Cookie: are concatenated.
* If a pseudo heade... |
module Network.HPACK.HeaderBlock.Decode (
decodeHeader
, decodeTokenHeader
, ValueTable
, HeaderTable
, toHeaderTable
, getHeaderValue
, decodeString
, decodeS
, decodeSophisticated
) where
import Control.Exception (throwIO, catch)
import Data.Array (Array)
import Data.Array.Base (unsafeAt, unsa... |
a8ae3fbab3778a6a49ebf60eeff1a39bd3d6eaf7bc088358db2eb475148b0ae9 | alanz/ghc-exactprint | RandomPGC.hs | # LANGUAGE CPP #
#if __GLASGOW_HASKELL__ >= 701
# LANGUAGE Trustworthy #
#endif
-----------------------------------------------------------------------------
-- |
-- Module : System.Random
Copyright : ( c ) The University of Glasgow 2001
-- License : BSD-style (see the file LICENSE in the 'random' re... | null | https://raw.githubusercontent.com/alanz/ghc-exactprint/b6b75027811fa4c336b34122a7a7b1a8df462563/tests/examples/ghc80/RandomPGC.hs | haskell | ---------------------------------------------------------------------------
|
Module : System.Random
License : BSD-style (see the file LICENSE in the 'random' repository)
Maintainer :
Stability : stable
Portability : portable
This library deals with the common task of pseudo-random number
ge... | # LANGUAGE CPP #
#if __GLASGOW_HASKELL__ >= 701
# LANGUAGE Trustworthy #
#endif
Copyright : ( c ) The University of Glasgow 2001
The library is split into two layers :
The class ' RandomGen ' provides a common interface to such generators .
The library provides one instance of ' RandomGen ' , the abst... |
b21eee19bf347306e9efcbcd78665266ea3da7bb88bf497b02c46a4a8d7f904a | ghc/nofib | Lexer.hs | module Lexer (Lexeme(..), lexer) where
1.3
lexeme
data Lexeme = Ide String
| Evar String
| Op String
| Num String
| Lparen
| Rparen
| Comma
deriving Eq
lexical analyzer returns a indicating whether scanning is successful .
lexer :: String -> ([Lexeme], Bool)
lexer "" = ([... | null | https://raw.githubusercontent.com/ghc/nofib/f34b90b5a6ce46284693119a06d1133908b11856/real/symalg/Lexer.hs | haskell | module Lexer (Lexeme(..), lexer) where
1.3
lexeme
data Lexeme = Ide String
| Evar String
| Op String
| Num String
| Lparen
| Rparen
| Comma
deriving Eq
lexical analyzer returns a indicating whether scanning is successful .
lexer :: String -> ([Lexeme], Bool)
lexer "" = ([... | |
476540ae3dc7085f5688b140bc87538c0256d6afa8b191e7397526c68a61e20a | Daniel-Diaz/HaTeX | Types.hs |
{-# LANGUAGE OverloadedStrings #-}
-- | Some types shared along the library.
module Text.LaTeX.Base.Types (
ClassName
, PackageName
, PageStyle
, Label
, createLabel , labelName
, Pos (..) , HPos (..)
, TableSpec (..)
, Measure (..)
) where
import Text.LaTeX.Base.Syntax
import Text.LaTeX.Base.Render
-- |... | null | https://raw.githubusercontent.com/Daniel-Diaz/HaTeX/aae193763157378500ebedc733c913e74f53b060/Text/LaTeX/Base/Types.hs | haskell | # LANGUAGE OverloadedStrings #
| Some types shared along the library.
| Class names are represented by a 'String'.
| Package names are represented by a 'String'.
| Page styles are represented by a 'String'.
| Type of labels.
| Create a label from its name.
| Get the name of a label.
| Horizontal position.
| Ty... |
module Text.LaTeX.Base.Types (
ClassName
, PackageName
, PageStyle
, Label
, createLabel , labelName
, Pos (..) , HPos (..)
, TableSpec (..)
, Measure (..)
) where
import Text.LaTeX.Base.Syntax
import Text.LaTeX.Base.Render
type ClassName = String
type PackageName = String
type PageStyle = String
newt... |
782374c135d55aa9215dfb4f5b480e8b63cb24acb5c72ff1920f7fca70d02eec | borkdude/advent-of-cljc | bgrabow.cljc | (ns aoc.y2018.d05.bgrabow
(:refer-clojure :exclude [read-string format])
(:require
[aoc.utils :as u :refer [deftest read-string format]]
[aoc.y2018.d05.data :refer [input answer-1 answer-2]]
[clojure.test :refer [is testing]]
[clojure.string :as str]))
(def char-code #?(:clj (comp int char first s... | null | https://raw.githubusercontent.com/borkdude/advent-of-cljc/17c8abb876b95ab01eee418f1da2e402e845c596/src/aoc/y2018/d05/bgrabow.cljc | clojure | (ns aoc.y2018.d05.bgrabow
(:refer-clojure :exclude [read-string format])
(:require
[aoc.utils :as u :refer [deftest read-string format]]
[aoc.y2018.d05.data :refer [input answer-1 answer-2]]
[clojure.test :refer [is testing]]
[clojure.string :as str]))
(def char-code #?(:clj (comp int char first s... | |
ae1bcdad3f8053701d04764e7ba78e077e731f311bb06217990d2135d6429a1d | exercism/clojure | interest_is_interesting_test.clj | (ns interest-is-interesting-test
(:require [clojure.test :refer [deftest is]]
interest-is-interesting))
(deftest ^{:task 1} minimal-first-interest-rate-test
(is (= 0.5 (interest-is-interesting/interest-rate 0M))))
(deftest ^{:task 1} tiny-first-interest-rate-test
(is (= 0.5 (interest-is-interesting/... | null | https://raw.githubusercontent.com/exercism/clojure/7f11e4bee92c3d94fa4d65b2eef7a2b6354fea50/exercises/concept/interest-is-interesting/test/interest_is_interesting_test.clj | clojure | (ns interest-is-interesting-test
(:require [clojure.test :refer [deftest is]]
interest-is-interesting))
(deftest ^{:task 1} minimal-first-interest-rate-test
(is (= 0.5 (interest-is-interesting/interest-rate 0M))))
(deftest ^{:task 1} tiny-first-interest-rate-test
(is (= 0.5 (interest-is-interesting/... | |
d8baf45baf200290eb1c36fee30d97e82bf84756b194bed2554ab548dba11486 | Leberwurscht/Diaspora-User-Directory | recoverList.ml | (************************************************************************)
This file is part of SKS . SKS is free software ; you can
redistribute it and/or modify it under the terms of the GNU General
Public License as published by the Free Software Foundation ; either
version 2 of the License , or (... | null | https://raw.githubusercontent.com/Leberwurscht/Diaspora-User-Directory/1ca4a06a67d591760516edffddb0308b86b6314c/trie_manager/recoverList.ml | ocaml | **********************************************************************
*********************************************************************
* Code for managing reconserver's recover list, i.e., the list of keys that
need to be recovered from other hosts.
* Queue of bundles of hashes to be recovered
***************... | This file is part of SKS . SKS 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 distributed in ... |
6d4b9c08f583e13473c76d66bdd8bf522708a8ee47c1971b1d0dea19a081517f | conjure-cp/conjure | UserError.hs | module Conjure.UserError
( MonadUserError(..), userErr1
, UserErrorT(..), runUserError
, failToUserError, failToBug
) where
import Conjure.Prelude
import qualified Conjure . Prelude as Prelude ( MonadFail ( .. ) )
import Conjure.Bug
import Conjure.Language.Pretty
-- base
import System.Exit ( exitWi... | null | https://raw.githubusercontent.com/conjure-cp/conjure/dd5a27df138af2ccbbb970274c2b8f22ac6b26a0/src/Conjure/UserError.hs | haskell | base
pipes
in the future we intend to exit with different exit code for different kind of user errors,
exit code 0 is for success
| This is to run a MonadUserError. Everything else should lift.
instance (MonadFailDoc m) => MonadFailDoc (UserErrorT m) where
failDoc = lift . failDoc | module Conjure.UserError
( MonadUserError(..), userErr1
, UserErrorT(..), runUserError
, failToUserError, failToBug
) where
import Conjure.Prelude
import qualified Conjure . Prelude as Prelude ( MonadFail ( .. ) )
import Conjure.Bug
import Conjure.Language.Pretty
import System.Exit ( exitWith, Exit... |
a0009699786fe6014a7c0fbcae0d417ea0c3a696d08d3ff62aa4a8fe0e31f599 | tdrhq/fiveam-matchers | misc.lisp | (defpackage :fiveam-matchers/misc
(:use #:cl)
(:import-from #:fiveam-matchers/core
#:is-not
#:equal-to)
(:import-from #:fiveam-matchers/described-as
#:described-as)
(:local-nicknames (#:a #:alexandria))
(:export
#:is-null))
(in-package :fiveam-matchers/misc)
... | null | https://raw.githubusercontent.com/tdrhq/fiveam-matchers/09ac0ff34f7d03aa60518fa578ef9e43567ddad9/misc.lisp | lisp | (defpackage :fiveam-matchers/misc
(:use #:cl)
(:import-from #:fiveam-matchers/core
#:is-not
#:equal-to)
(:import-from #:fiveam-matchers/described-as
#:described-as)
(:local-nicknames (#:a #:alexandria))
(:export
#:is-null))
(in-package :fiveam-matchers/misc)
... | |
e2c4162c47eb22d26ae83ef481ed6f385c663ff5f72e8e1d0db5d17be50d3b20 | ejgallego/dualquery | parmap.mli | (**************************************************************************)
: a simple library to perform Map computations on a multi - core
(* *)
Author(s ): ,
(* ... | null | https://raw.githubusercontent.com/ejgallego/dualquery/f8355212a760ef77ad3fb07f3bb595e775bf06d2/parmap/parmap.mli | ocaml | ************************************************************************
This library is free software: you can redistribute it and/or modify
it under the terms of the ... | : a simple library to perform Map computations on a multi - core
Author(s ): ,
published by the Free Software Foundation , either version 2 of the
exception to the GNU Lesser General Public License applies to this
* Module [ ] : efficient parallel map , fold and ... |
e3648879e070521f18733a744ad2a7ab16c121f1553e7e9b63f3399aee9ce090 | tomhanika/conexp-clj | dim_draw_test.clj | (ns conexp.layouts.dim-draw-test
(:require [clojure.test :refer :all]
[conexp.fca.graph :refer :all]
[conexp.util.graph :refer :all]
[conexp.base :exclude [transitive-closure] :refer :all]
[loom.graph :as lg]
[loom.alg :as la]
[rolling-stones.cor... | null | https://raw.githubusercontent.com/tomhanika/conexp-clj/3201c4781e836e91d8364382e2db606362fe407c/src/test/clojure/conexp/layouts/dim_draw_test.clj | clojure |
does the reduction remove some of the possible nodes?
(there are all nodes from all possible solutions included)
if so, is the resulting graph bipartite?
if so, is it maximal?
test drawing layout
(conexp.gui.draw/draw-layout (dim-draw-layout (graph->lattice g-dominik's-favorite))) | (ns conexp.layouts.dim-draw-test
(:require [clojure.test :refer :all]
[conexp.fca.graph :refer :all]
[conexp.util.graph :refer :all]
[conexp.base :exclude [transitive-closure] :refer :all]
[loom.graph :as lg]
[loom.alg :as la]
[rolling-stones.cor... |
d5b991afb1d3e76999bec7168f9df8a985dbb53f224d17680805d0fff8e15122 | conal/lub | Glb.hs | # LANGUAGE CPP #
{-# LANGUAGE BangPatterns #-}
# LANGUAGE DataKinds #
# LANGUAGE DefaultSignatures #
# LANGUAGE DeriveGeneric #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE PatternGuards #
# LANGUAGE TypeFamilies #
# LANGUAGE TypeOperators #
#if __GLASGOW_HASKELL__ >= 708
# LANGUAGE EmptyCase... | null | https://raw.githubusercontent.com/conal/lub/3a146841d1502febf3951d31ec963a4334cd1751/src/Data/Glb.hs | haskell | # LANGUAGE BangPatterns #
--------------------------------------------------------------------
|
Module : Data.Glb
License : BSD3
Maintainer :
Stability : experimental
Greatest lower bound
--------------------------------------------------------------------
| Types that support information i... | # LANGUAGE CPP #
# LANGUAGE DataKinds #
# LANGUAGE DefaultSignatures #
# LANGUAGE DeriveGeneric #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE PatternGuards #
# LANGUAGE TypeFamilies #
# LANGUAGE TypeOperators #
#if __GLASGOW_HASKELL__ >= 708
# LANGUAGE EmptyCase #
# LANGUAGE PolyKinds #
#end... |
4d785a6b8fbf7bb49ffb1e8780f32f10cb51acfd4a3ef34f40b34cdf664ee710 | massemanet/gtknode | points.erl | %%%-------------------------------------------------------------------
%%% File : points.erl
Author : Mats < locmacr@mwlx084 >
%%% Description :
%%%
Created : 30 Aug 2005 by Mats < locmacr@mwlx084 >
%%%-------------------------------------------------------------------
-module(points).
-export([start/0,stop... | null | https://raw.githubusercontent.com/massemanet/gtknode/69493096cea0948aa591868d824a5d8e769250fd/priv/examples/points/points.erl | erlang | -------------------------------------------------------------------
File : points.erl
Description :
-------------------------------------------------------------------
init | Author : Mats < locmacr@mwlx084 >
Created : 30 Aug 2005 by Mats < locmacr@mwlx084 >
-module(points).
-export([start/0,stop/0]).
-import(filename,[join/1,dirname/1]).
-import(random,[uniform/1]).
-define(SIZE,300).
-record(ld, {name,win,gc,pixmap}).
start() ->
case whereis(?MODULE) of
undefined -> spawn... |
47545b426b7ca86eddee6371d821f15b123c2cd611d76d8758148ed7865d6b44 | OlivierNicole/haskell-chess | Tree.hs | module Tree (
Tree (Node),
genTree,
prune,
takeTree
) where
data Tree a = Node a [Tree a]
instance Functor Tree where
fmap f (Node label children) =
Node (f label) (map (fmap f) children)
instance (Show a) => Show (Tree a) where
show = show' 0
where
-- n est le niveau d'indenta... | null | https://raw.githubusercontent.com/OlivierNicole/haskell-chess/3b76bbc39a6a43d6be9e22e4a68613eba2d2898d/Tree.hs | haskell | n est le niveau d'indentation
builds a tree by repeated applications of a function
prunes a tree to a fixed depth | module Tree (
Tree (Node),
genTree,
prune,
takeTree
) where
data Tree a = Node a [Tree a]
instance Functor Tree where
fmap f (Node label children) =
Node (f label) (map (fmap f) children)
instance (Show a) => Show (Tree a) where
show = show' 0
where
show' n (Node a x) = replica... |
7bf8fb9bdd1285d7e07a165f5a6c8fd97151f0619b554dab467ba6c24bf509c4 | ohpauleez/themis | protocols.clj | (ns themis.protocols)
Protocols
;; ---------
;;
Themis validation is data structure agnostic , but it must be told how
;; it navigates to coordinates within your data structure.
(defprotocol Navigable
(-navigate [t coordinate-vec]))
| null | https://raw.githubusercontent.com/ohpauleez/themis/4d3fb3ccf5911c16148b2f1221af4e708dcd34b4/src/themis/protocols.clj | clojure | ---------
it navigates to coordinates within your data structure. | (ns themis.protocols)
Protocols
Themis validation is data structure agnostic , but it must be told how
(defprotocol Navigable
(-navigate [t coordinate-vec]))
|
201d829f64fb6d8ed5ba83d45bc73833cfba5f9f45373c1318abc40e2b798dae | stassats/lisp-bots | tables.lisp | (defpackage :webutils.tables (:use :cl :webutils.forms :webutils.misc :araneida :webutils.xml-mixed-mode)
(:export :define-table-generator :define-extended-table-generator :table-generator-form))
(in-package :webutils.tables)
(webutils::export-all :webutils.tables)
(defun sort-fn (thing)
(ecase thing
... | null | https://raw.githubusercontent.com/stassats/lisp-bots/09bfce724afd20c91a08acde8816be6faf5f54b2/webutils/tables.lisp | lisp | (defpackage :webutils.tables (:use :cl :webutils.forms :webutils.misc :araneida :webutils.xml-mixed-mode)
(:export :define-table-generator :define-extended-table-generator :table-generator-form))
(in-package :webutils.tables)
(webutils::export-all :webutils.tables)
(defun sort-fn (thing)
(ecase thing
... | |
4db83127896dfcdc8349819a76c13bf476bd38cc7ae9457d4834838223f23b78 | philnguyen/soft-contract | hash-basics.rkt | #lang racket
(define h1 (hash 1 2))
(define h2 (hash-set (hash-set h1 1 2) 'a 'b))
(provide
(contract-out
[h2 (hash/c integer? integer?)]))
| null | https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/test/programs/unsafe/issues/hash-basics.rkt | racket | #lang racket
(define h1 (hash 1 2))
(define h2 (hash-set (hash-set h1 1 2) 'a 'b))
(provide
(contract-out
[h2 (hash/c integer? integer?)]))
| |
5aef5a329ed2523209420f1a410651e1b4f9a76226257589d4029120c420009b | 8c6794b6/haskell-sc-scratch | RunningTests.hs | module Main where
import Data.List (sort, sortBy)
import Test.QuickCheck ((==>))
import qualified Test.QuickCheck as QC
import Test.Framework (defaultMain, testGroup)
import Test.Framework.Providers.QuickCheck2 (testProperty)
import qualified Test.Framework as TF
main :: IO ()
main = defaultMain tests
tests :: [TF.... | null | https://raw.githubusercontent.com/8c6794b6/haskell-sc-scratch/22de2199359fa56f256b544609cd6513b5e40f43/Scratch/RunningTests/RunningTests.hs | haskell | module Main where
import Data.List (sort, sortBy)
import Test.QuickCheck ((==>))
import qualified Test.QuickCheck as QC
import Test.Framework (defaultMain, testGroup)
import Test.Framework.Providers.QuickCheck2 (testProperty)
import qualified Test.Framework as TF
main :: IO ()
main = defaultMain tests
tests :: [TF.... | |
356fad912f389ab413e3bfae2b6acf3bd80a25b02ca28ec97775b2002fae40ea | serioga/webapp-clojure-2020 | core.clj | (ns lib.clojure-string.core
"Extension of `clojure.string`. Similar to cuerdas, superstring etc."
(:refer-clojure :exclude [concat empty? not-empty replace])
(:require [clojure.string :as string]
[clojure.test :as test])
(:import (org.apache.commons.lang3 StringUtils)))
(set! *warn-on-reflection* t... | null | https://raw.githubusercontent.com/serioga/webapp-clojure-2020/b581cab79d131df344dee0889782972dfeca06e4/src/lib/clojure_string/core.clj | clojure | (ns lib.clojure-string.core
"Extension of `clojure.string`. Similar to cuerdas, superstring etc."
(:refer-clojure :exclude [concat empty? not-empty replace])
(:require [clojure.string :as string]
[clojure.test :as test])
(:import (org.apache.commons.lang3 StringUtils)))
(set! *warn-on-reflection* t... | |
f5313974171f359058c19b763139a89cd5e556ce646938dc48d4822e7ad02fed | danelahman/haskell-coop | Cost.hs | # LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
{-# LANGUAGE GADTs #-}
# LANGUAGE KindSignatures #
# LANGUAGE TypeFamilies #
|
Module : Control . Runner . Cost
Description : Runner for instrumenting a user computation with a simple cost model
Copyright : ( c ) , 2019
License : MIT
Mainta... | null | https://raw.githubusercontent.com/danelahman/haskell-coop/95ddb0f340313a25f2e006c75dab8e2c93add8f8/src/Control/Runner/Cost.hs | haskell | # LANGUAGE GADTs #
| The co-operations of the runner `costRunner`.
| Runner that instruments a user computation with a simple
cost model that simply counts the number of operation calls
the user code makes (storing the count in its runtime state).
| Initialiser for the runner `costRunner`.
| Finaliser for the ru... | # LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
# LANGUAGE KindSignatures #
# LANGUAGE TypeFamilies #
|
Module : Control . Runner . Cost
Description : Runner for instrumenting a user computation with a simple cost model
Copyright : ( c ) , 2019
License : MIT
Maintainer :
Stability ... |
dda38ec218d404cd11acd3a6194cc0595090dfbb938d3010025d532bad1e984e | draperlaboratory/cbat_tools | cbat_vsa_utils.ml | (***************************************************************************)
(* *)
Copyright ( C ) 2018/2019 The Charles Stark Draper Laboratory , Inc.
(* *)
(* This... | null | https://raw.githubusercontent.com/draperlaboratory/cbat_tools/334523cb4415f187e33f190a691e34b73733ef24/vsa/value_set/lib/src/cbat_vsa_utils.ml | ocaml | *************************************************************************
This file is provided under the license found in the LICENSE file in
the top-level director... | Copyright ( C ) 2018/2019 The Charles Stark Draper Laboratory , Inc.
This work is funded in part by ONR / NAWC Contract N6833518C0107 . Its
content does not necessarily reflect the position or policy of the US
exception NotImplemented of string
let fail_on_not_implemented = ref true
let not_im... |
724bec687d26f04dc0a1dd8ed974f7a4937685442651bf94066dcc50bbecf05b | clojure-interop/aws-api | AbstractAmazonRoute53DomainsAsync.clj | (ns com.amazonaws.services.route53domains.AbstractAmazonRoute53DomainsAsync
"Abstract implementation of AmazonRoute53DomainsAsync. Convenient method forms pass through to the
corresponding overload that takes a request object and an AsyncHandler, which throws an
UnsupportedOperationException."
(:refer-clojure :... | null | https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.route53domains/src/com/amazonaws/services/route53domains/AbstractAmazonRoute53DomainsAsync.clj | clojure | (ns com.amazonaws.services.route53domains.AbstractAmazonRoute53DomainsAsync
"Abstract implementation of AmazonRoute53DomainsAsync. Convenient method forms pass through to the
corresponding overload that takes a request object and an AsyncHandler, which throws an
UnsupportedOperationException."
(:refer-clojure :... | |
63a9a92d3590cfe5022ade1c225adcfe69b40faae4a5d767c4b9fcbcdce71323 | VitalLabs/derive | debug_level.cljs | (ns derive.debug-level
(:require [derive.tools :as tools]))
(defn set-level!
([] (set-level! 2))
([lvl] (tools/set-debug-level! lvl)))
| null | https://raw.githubusercontent.com/VitalLabs/derive/1febc1e382c90241f9d7e6bfe5243648408d6446/dev/derive/debug_level.cljs | clojure | (ns derive.debug-level
(:require [derive.tools :as tools]))
(defn set-level!
([] (set-level! 2))
([lvl] (tools/set-debug-level! lvl)))
| |
b2b6aa6c087ff54cde887ecdc4d9aa58fb936a379e06be210d0ac32b0117cdaa | JustusAdam/language-haskell | T0132.hs | SYNTAX TEST " source.haskell " " Symbolic type constructors and operators "
data C a b = C a b
< ----
^ storage.type.haskell
-- ^ constant.other.haskell
data a `D` b = a `D` b
< ----
-- ^ storage.type.infix.haskell
^ constant.other.infix.haskell
data a `E` b where
< ----... | null | https://raw.githubusercontent.com/JustusAdam/language-haskell/c9ee1b3ee166c44db9ce350920ba502fcc868245/test/tickets/T0132.hs | haskell | --
^ constant.other.haskell
--
^ storage.type.infix.haskell
--
^ storage.type.infix.haskell
--
^^ constant.other.operator.prefix.haskell
--
^^ storage.type.operator.infix.haskell
^^ constant.other.operator.infix.haskell
^^ ^^ - keyword.operator.in... | SYNTAX TEST " source.haskell " " Symbolic type constructors and operators "
data C a b = C a b
^ storage.type.haskell
data a `D` b = a `D` b
^ constant.other.infix.haskell
data a `E` b where
data (:>) a b = (:>) a b
^^ storage.type.operator.haskell
data a :< b = a :< b
^^ ^... |
6aff60a1a9cee3b0fa40434182332f03ee7565f93033f1d04933abf17747bad8 | kostmo/circleci-failure-tracker | Helpers.hs | module Helpers where
transformLeft :: (a -> c) -> Either a b -> Either c b
transformLeft transformer original = case original of
Left x -> Left $ transformer x
Right x -> Right x
| null | https://raw.githubusercontent.com/kostmo/circleci-failure-tracker/393d10a72080bd527fdb159da6ebfea23fcd52d1/app/fetcher/src/Helpers.hs | haskell | module Helpers where
transformLeft :: (a -> c) -> Either a b -> Either c b
transformLeft transformer original = case original of
Left x -> Left $ transformer x
Right x -> Right x
| |
70a3b3546a4b226f44b76287ead093a3b9858a89653c14dae935fb839004028b | CrossRef/cayenne | ris.clj | (ns cayenne.formats.ris
(:require [clojure.string :as string]))
Convert extended citeproc to RIS .
(def subtype->ris-type
{:journal "JOUR"
:article "JOUR"
:journal-article "JOUR"
:journal-issue "JOUR"
:journal-volume "JOUR"
:proceedings "CONF"
:proceedings-article "CPAPER"
:report "RPRT"
... | null | https://raw.githubusercontent.com/CrossRef/cayenne/02321ad23dbb1edd3f203a415f4a4b11ebf810d7/src/cayenne/formats/ris.clj | clojure | (ns cayenne.formats.ris
(:require [clojure.string :as string]))
Convert extended citeproc to RIS .
(def subtype->ris-type
{:journal "JOUR"
:article "JOUR"
:journal-article "JOUR"
:journal-issue "JOUR"
:journal-volume "JOUR"
:proceedings "CONF"
:proceedings-article "CPAPER"
:report "RPRT"
... | |
eddef75c2f81f076d73020c534274291a77a926785dc7e3e365f1b1af4a48077 | stumpwm/stumpwm-contrib | utils.lisp | ;;;; utils.lisp
(in-package #:desktop-entry)
(defun string-split (regex target-string)
(cl-ppcre:split regex target-string))
(defun string-replace-all (regex target-string replacement)
(cl-ppcre:regex-replace-all regex target-string replacement))
(defun list-directory (path)
(stumpwm:list-directory path))
(de... | null | https://raw.githubusercontent.com/stumpwm/stumpwm-contrib/a7dc1c663d04e6c73a4772c8a6ad56a34381096a/util/desktop-entry/utils.lisp | lisp | utils.lisp |
(in-package #:desktop-entry)
(defun string-split (regex target-string)
(cl-ppcre:split regex target-string))
(defun string-replace-all (regex target-string replacement)
(cl-ppcre:regex-replace-all regex target-string replacement))
(defun list-directory (path)
(stumpwm:list-directory path))
(defun list-entry-f... |
02f5bd64bbe0c13a5299a4b17d1790dc21c25d6f91be570486c50da175576882 | Elzair/nazghul | thud.scm | ;;----------------------------------------------------------------------------
;; Constants
;;----------------------------------------------------------------------------
(define thud-start-lvl 6)
;;----------------------------------------------------------------------------
;; Schedule
;;
In Bole
;;--------------... | null | https://raw.githubusercontent.com/Elzair/nazghul/8f3a45ed6289cd9f469c4ff618d39366f2fbc1d8/worlds/haxima-1.002/thud.scm | scheme | ----------------------------------------------------------------------------
Constants
----------------------------------------------------------------------------
----------------------------------------------------------------------------
Schedule
------------------------------------------------------------------... | (define thud-start-lvl 6)
In Bole
(kern-mk-sched 'sch_thud
(list 0 0 bole-bedroom-thud "idle")
(list 9 0 bole-dining-hall "idle")
(list 10 0 bole-courtyard "idle")
(list 12 0 bole-dining-hall "idle")
(list 23 0 bole-bedroom-thud ... |
bb6d77fa0e8aca80e6b98c2268d1e05b90f98de0f2e0db2a0b773ab74319d888 | heyoka/faxe | esp_deadman.erl | Date : 27.01.20 - 18:38
Ⓒ 2020
%% @doc
%% emits a point, if there is no message coming in for the given amount of time
for the output datapoint there are two options :
%% # if repeat_last param if set, the node will output the last message it saw incoming as the dead-message,
%% if there is no last message ye... | null | https://raw.githubusercontent.com/heyoka/faxe/301bbd2195b176e30e00d287c948448f336577e7/apps/faxe/src/components/esp_deadman.erl | erlang | @doc
emits a point, if there is no message coming in for the given amount of time
# if repeat_last param if set, the node will output the last message it saw incoming as the dead-message,
if there is no last message yet, an empty message will be emitted
# multiple field and field_value can be provided to be inc... | Date : 27.01.20 - 18:38
Ⓒ 2020
for the output datapoint there are two options :
-module(esp_deadman).
-author("Alexander Minichmair").
-behavior(df_component).
-include("faxe.hrl").
-export([init/3, process/3, options/0, handle_info/2, check_options/0]).
-record(state, {
node_id,
timeout,
fields,
... |
dbf0e5011db30f6338f48224dad9338486307efc6f7ca6a41ba25bc8ada30967 | fizruk/lambdaconf-2019-workshop | Game.hs | module ARCube.Game (
module Game,
) where
import ARCube.Game.Stage_0 as Game
| null | https://raw.githubusercontent.com/fizruk/lambdaconf-2019-workshop/1a7caa4dd03ff1b09877b27d8adf79ca35fcc888/project/ar-cube/src/ARCube/Game.hs | haskell | module ARCube.Game (
module Game,
) where
import ARCube.Game.Stage_0 as Game
| |
65f16410bb7fbf5226d44642f2d5ab0ac448a51182d96f4a37fafdebf6ce8249 | lowasser/TrieMap | Subset.hs | {-# LANGUAGE TypeSynonymInstances #-}
module Data.TrieMap.OrdMap.Subset () where
import Data.TrieMap.OrdMap.Base
import Data.TrieMap.OrdMap.Traversable ()
import Data.TrieMap.OrdMap.Splittable ()
import Data.TrieMap.OrdMap.Searchable ()
import Data.Functor.Immoral
instance Ord k => Subset (SNode k) where
t1 <=? t2... | null | https://raw.githubusercontent.com/lowasser/TrieMap/1ab52b8d83469974a629f2aa577a85de3f9e867a/Data/TrieMap/OrdMap/Subset.hs | haskell | # LANGUAGE TypeSynonymInstances # | module Data.TrieMap.OrdMap.Subset () where
import Data.TrieMap.OrdMap.Base
import Data.TrieMap.OrdMap.Traversable ()
import Data.TrieMap.OrdMap.Splittable ()
import Data.TrieMap.OrdMap.Searchable ()
import Data.Functor.Immoral
instance Ord k => Subset (SNode k) where
t1 <=? t2 = castMap t1 `subMap` castMap t2 wher... |
e4a7f212883f61678933ccf82fbcac91aec90fdb4cb06473e84895aabb2724ae | mzp/coq-for-ipad | odoc_comments.ml | (***********************************************************************)
(* OCamldoc *)
(* *)
, projet Cristal , INRIA Rocquencourt
(* ... | null | https://raw.githubusercontent.com/mzp/coq-for-ipad/4fb3711723e2581a170ffd734e936f210086396e/src/ocaml-3.12.0/ocamldoc/odoc_comments.ml | ocaml | *********************************************************************
OCamldoc
... | , projet Cristal , INRIA Rocquencourt
Copyright 2001 Institut National de Recherche en Informatique et
en Automatique . All rights reserved . This file is distributed
under the terms of the Q Public License version 1.0 .
$ I d : odoc_comments.ml 10480 2010 - 05... |
3f4ab9a1bc4771fab011686e37876f7c7b513154116cbbc1af5cfc062e454a69 | tweag/ormolu | simple-out.hs | module Main where
-- | Documentation.
type family Elem c :: Type
| null | https://raw.githubusercontent.com/tweag/ormolu/34bdf62429768f24b70d0f8ba7730fc4d8ae73ba/data/examples/declaration/type-families/type-family/simple-out.hs | haskell | | Documentation. | module Main where
type family Elem c :: Type
|
2a5640a6d21f46f54d62ad2101cd23ebe4a92baef6cf64ba8a77990d74b75bdd | DanielG/ghc-mod | GhcModi.hs | # LANGUAGE ScopedTypeVariables #
-- | WARNING
This program is deprecated , use ` ghc - mod legacy - interactive ` instead .
module Main where
import Control.Applicative
import Control.Monad
import Control.Exception
import Data.Version
import Data.Maybe
import System.IO
import System.Exit
import System.Process
impo... | null | https://raw.githubusercontent.com/DanielG/ghc-mod/391e187a5dfef4421aab2508fa6ff7875cc8259d/src/GhcModi.hs | haskell | | WARNING | # LANGUAGE ScopedTypeVariables #
This program is deprecated , use ` ghc - mod legacy - interactive ` instead .
module Main where
import Control.Applicative
import Control.Monad
import Control.Exception
import Data.Version
import Data.Maybe
import System.IO
import System.Exit
import System.Process
import System.Fil... |
83e8484ada93694bfbc4790f71144da19e989dcba09993f865217775c0aff712 | frasertweedale/hs-tax-ato | FY2019.hs | -- This file is part of hs-tax-ato
Copyright ( C ) 2018 Fraser Tweedale
--
-- hs-tax-ato 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... | null | https://raw.githubusercontent.com/frasertweedale/hs-tax-ato/996f15ea13e1eb205b97898f6679496b9f2cae38/src/Data/Tax/ATO/FY/FY2019.hs | haskell | This file is part of hs-tax-ato
hs-tax-ato 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 PURPOS... | Copyright ( C ) 2018 Fraser Tweedale
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
# LANGUAGE DataKinds #
| Tax tables for 2018–19 fina... |
61cac28c3533292d20d893236c4e9ff6b1b8b8150cc6739c988620074eb05a4f | rd--/hsc3 | pv_MagClip.help.hs | -- pv_MagClip
let f = fft' (localBufId 'α' 2048 1) (soundIn 0)
c = 128
x = mouseX kr 0 c Linear 0.1
h = pv_MagClip f x
in ifft' h * 0.5
| null | https://raw.githubusercontent.com/rd--/hsc3/60cb422f0e2049f00b7e15076b2667b85ad8f638/Help/Ugen/pv_MagClip.help.hs | haskell | pv_MagClip | let f = fft' (localBufId 'α' 2048 1) (soundIn 0)
c = 128
x = mouseX kr 0 c Linear 0.1
h = pv_MagClip f x
in ifft' h * 0.5
|
e8151641712955cadf9811564588910d2d55f9031967265ff635633380d1d24b | kappamodeler/kappa | main.ml | 27/02/2007
Static analysis of BNG systems
pour PlectiX
(* Main file: main function + probleme specification *)
(* main.ml *)
open Config_complx
open Tools
open Var
open Expr
open Kleenean_expr
open Abstract_expr_sig
open Data_structures
open Reachability
open Compressor
open Pb_sig
open Bdd
open Partition
ope... | null | https://raw.githubusercontent.com/kappamodeler/kappa/de63d1857898b1fc3b7f112f1027768b851ce14d/complx_rep/main.ml | ocaml | Main file: main function + probleme specification
main.ml
!Config_complx.do_qualitative_compression
or !Config_complx.do_quantitative_compression
or | 27/02/2007
Static analysis of BNG systems
pour PlectiX
open Config_complx
open Tools
open Var
open Expr
open Kleenean_expr
open Abstract_expr_sig
open Data_structures
open Reachability
open Compressor
open Pb_sig
open Bdd
open Partition
open Rough
open Concretization
open Cbng
open Cbng_sig
open Translate
ope... |
1cdb42d24a010e692c2dde72c0a4cdc01ca775f3ef2ce65b610e0e0f387b35fa | rescript-association/genType | TypeEnv.mli | open GenTypeCommon
type t
val addModuleEquation : dep:dep -> internal:bool -> t -> unit
val addModulePath : typeEnv:t -> string -> ResolvedName.t
val addTypeEquations : typeEquations:(Longident.t * type_) list -> t -> t
val applyTypeEquations : config:config -> path:Path.t -> t -> type_ option
val expandAliasToEx... | null | https://raw.githubusercontent.com/rescript-association/genType/c7a5413d1c46fd1481f9cbb54e1702d89d994338/src/TypeEnv.mli | ocaml | open GenTypeCommon
type t
val addModuleEquation : dep:dep -> internal:bool -> t -> unit
val addModulePath : typeEnv:t -> string -> ResolvedName.t
val addTypeEquations : typeEquations:(Longident.t * type_) list -> t -> t
val applyTypeEquations : config:config -> path:Path.t -> t -> type_ option
val expandAliasToEx... | |
0baae853c3e793d76aa77c4f057c8b0769891995a9c8e8343208668748b190dc | imalooney/t3tr0s | board.cljs | (ns client.game.board)
;;------------------------------------------------------------
;; Pieces.
;;------------------------------------------------------------
; The available pieces resemble letters I,L,J,S,Z,O,T.
; Each piece structure is stored in :coords as [x y a].
; The "a" component of :coords stands for adjac... | null | https://raw.githubusercontent.com/imalooney/t3tr0s/2f9529e7138a0bc3a8578aa89c9661fc89e81cc0/src/client/game/board.cljs | clojure | ------------------------------------------------------------
Pieces.
------------------------------------------------------------
The available pieces resemble letters I,L,J,S,Z,O,T.
Each piece structure is stored in :coords as [x y a].
The "a" component of :coords stands for adjacency,
For example, the coords for... | (ns client.game.board)
which is a number with bit flags UP , RIGHT , DOWN , LEFT .
Adjacency codes are 4 - bit numbers ( for good reason ) ,
- X - - 0010 2
X X - - 0011 3 < -- shown in above example
- - - X 1000 ... |
da2fe8b10896b6bd52b0688a9c48e97b799311ce18595042658cd75aac9d2bc2 | camsaul/methodical | describe_test.clj | (ns methodical.util.describe-test
(:require
[clojure.string :as str]
[clojure.test :as t]
[methodical.core :as m]
[methodical.util.describe :as describe]))
(defonce ^:private dispatch-first
(fn [x _y]
(keyword x)))
(m/defmulti mf
"mf is a great multimethod."
{:arglists '([x y])}
dispatch-fir... | null | https://raw.githubusercontent.com/camsaul/methodical/258d0d12e4b25077574bd1ad4a8b4cfaa9c2910b/test/methodical/util/describe_test.clj | clojure | (ns methodical.util.describe-test
(:require
[clojure.string :as str]
[clojure.test :as t]
[methodical.core :as m]
[methodical.util.describe :as describe]))
(defonce ^:private dispatch-first
(fn [x _y]
(keyword x)))
(m/defmulti mf
"mf is a great multimethod."
{:arglists '([x y])}
dispatch-fir... | |
3ff29cfc2bc177450f817c225d3d2230968ef50b9d4b432aa551e7d5ce4ec789 | jeffpsherman/postgres-jsonb-clojure | core.clj | (ns postgres-jsonb-clojure.core
(:require [clojure.java.jdbc :as sql]
[cheshire.core :as json]
[postgre-types.json :refer [add-json-type add-jsonb-type]]
)
)
(add-json-type json/generate-string json/parse-string)
(add-jsonb-type json/generate-string json/parse-string)
(def ... | null | https://raw.githubusercontent.com/jeffpsherman/postgres-jsonb-clojure/e2156362ae73aef2e6c46f180a43aa1b33aa3b9f/src/postgres_jsonb_clojure/core.clj | clojure | (ns postgres-jsonb-clojure.core
(:require [clojure.java.jdbc :as sql]
[cheshire.core :as json]
[postgre-types.json :refer [add-json-type add-jsonb-type]]
)
)
(add-json-type json/generate-string json/parse-string)
(add-jsonb-type json/generate-string json/parse-string)
(def ... | |
574c22084345b4c49a1466699dcecade0c0ea6bf1608226cd17b5d62b956d786 | ygmpkk/house | Event.hs | -----------------------------------------------------------------------------
-- |
-- Module : Graphics.HGL.X11.Event
Copyright : ( c ) , 1999 - 2003
-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maintainer :
-- Stability : provisional
-- Portability : portable
--
-- A s... | null | https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/libraries/HGL/Graphics/HGL/X11/Event.hs | haskell | ---------------------------------------------------------------------------
|
Module : Graphics.HGL.X11.Event
License : BSD-style (see the file libraries/base/LICENSE)
Maintainer :
Stability : provisional
Portability : portable
A simple graphics library.
------------------------------------... | Copyright : ( c ) , 1999 - 2003
module Graphics.HGL.X11.Event
( Event(..)
) where
import Graphics.HGL.X11.Key (Key)
Interface
Note : The event is for delivering properly translated characters
0 , 1 or more characters after translation ( see ) .
* abstract * keys , i.e. rather than KeyCodes in... |
bdc7783507af96821c254791d02488decf2b79c26708b71849d5c96efa5f6ce0 | wargrey/graphics | zlib.rkt | #lang typed/racket/base
;;;
;;;
(provide parse-png-zlib png-zlib-inflate)
(require bitmap/stdio)
(require racket/fixnum)
(define parse-png-zlib : (-> Input-Port Bytes Index Index (Values Byte Natural (Option Natural)))
;;; /#10CompressionCM0
(lambda [/dev/stdin zlib start end]
(define zlib-magic (integer-... | null | https://raw.githubusercontent.com/wargrey/graphics/50751297f244a01ac734099b9a1e9be97cd36f3f/png/digitama/zlib.rkt | racket |
/#10CompressionCM0
| #lang typed/racket/base
(provide parse-png-zlib png-zlib-inflate)
(require bitmap/stdio)
(require racket/fixnum)
(define parse-png-zlib : (-> Input-Port Bytes Index Index (Values Byte Natural (Option Natural)))
(lambda [/dev/stdin zlib start end]
(define zlib-magic (integer-bytes->integer zlib #false #true st... |
caa2d0b462ee1009e6ba26b0ace3b7d77cdf69a51c4ea0fa931b9edd76bba2f0 | tisnik/clojure-examples | project.clj | ;
( C ) Copyright 2021
;
; All rights reserved. This program and the accompanying materials
; are made available under the terms of the Eclipse Public License v1.0
; which accompanies this distribution, and is available at
-v10.html
;
; Contributors:
;
(defproject git-test4 "0.1.0-SNAPSHOT"
:d... | null | https://raw.githubusercontent.com/tisnik/clojure-examples/78061b533c0755d0165002961334bbe98d994087/git-test4/project.clj | clojure |
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
Contributors:
| ( C ) Copyright 2021
-v10.html
(defproject git-test4 "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.10.1"]
[clj-jgit "0.8.0"]
[clj... |
06725e82f1f280de8f119b252f4672955ca98650b5c301774270cf43dcfd0a38 | uim/sigscheme | test-formatplus.scm | ;; Filename : test-formatplus.scm
About : unit test for SigScheme - specific procedure format+
;;
Copyright ( C ) 2006 YAMAMOTO Kengo < yamaken AT >
Copyright ( c ) 2007 - 2008 SigScheme Project < uim - en AT googlegroups.com >
;;
;; All rights reserved.
;;
;; Redistribution and use in source and binar... | null | https://raw.githubusercontent.com/uim/sigscheme/ccf1f92d6c2a0f45c15d93da82e399c2a78fe5f3/test/test-formatplus.scm | scheme | Filename : test-formatplus.scm
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
notice, this list of conditions and the following disclaimer.
notice, this list of conditions and the... | About : unit test for SigScheme - specific procedure format+
Copyright ( C ) 2006 YAMAMOTO Kengo < yamaken AT >
Copyright ( c ) 2007 - 2008 SigScheme Project < uim - en AT googlegroups.com >
1 . Redistributions of source code must retain the above copyright
2 . Redistributions in binary form must re... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.