_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
e4ac61c51beb174dae22d2e1bf7bd86dedb76b288dbc0bbf855ab61279daf1cd
gregr/dbKanren
benchmark1.rkt
#lang racket/base (require "../dbk.rkt" racket/function racket/list racket/pretty) (print-as-expression #f) (pretty-print-abbreviate-read-macros #f) (define-syntax-rule (test name e expected) (begin (printf "Testing ~s:\n" name) (pretty-print 'e) (let ((answer (time e))) (unless (equal? ...
null
https://raw.githubusercontent.com/gregr/dbKanren/b95c2e22d2fba2cfb72a2d2eecb7783ced2b6330/test/benchmark1.rkt
racket
Benchmark reference: -halle.de/~brass/botup/ optionally preload into memory optionally preload into memory disk: ~8000ms disk: ~8000ms TODO: improve performance (define-relation/table Q.large 'source-stream (value/syntax 'attribute-names '(a b) ;; optionally preload into memory 'retrieval-type 'scm )...
#lang racket/base (require "../dbk.rkt" racket/function racket/list racket/pretty) (print-as-expression #f) (pretty-print-abbreviate-read-macros #f) (define-syntax-rule (test name e expected) (begin (printf "Testing ~s:\n" name) (pretty-print 'e) (let ((answer (time e))) (unless (equal? ...
ad71c8a749a7bca582cb7194a2e6994e881e8990712f77e3ec8aeefd12e835d0
stamourv/roguelike
monsters.rkt
#lang racket (require (for-syntax (except-in syntax/parse character) racket/syntax) racket/require) (require (multi-in "../utilities" ("class.rkt" "descriptions.rkt")) "../data/items.rkt" "character.rkt" "scheduler.rkt" "common.rkt") (provide (all-defin...
null
https://raw.githubusercontent.com/stamourv/roguelike/c3edf2d602e215ecf28d0cad68dc545b7599a93b/engine/monsters.rkt
racket
function that takes the monster and the position of the player as parameters and makes the monster act to handle the repetitive parts pos, floor altered-attrs hp, max-hp base-attack-bonus, current-attack-bonus
#lang racket (require (for-syntax (except-in syntax/parse character) racket/syntax) racket/require) (require (multi-in "../utilities" ("class.rkt" "descriptions.rkt")) "../data/items.rkt" "character.rkt" "scheduler.rkt" "common.rkt") (provide (all-defin...
35d1518dc9f34a128892ee84c3fbf84c7c505d97c38069aa3b935f8aa7cdb21a
HaskellZhangSong/Introduction_to_Haskell_2ed_source
FunDep.hs
# LANGUAGE FunctionalDependencies , MultiParamTypeClasses # class Collection e ce | ce -> e where empty :: ce insert :: e -> ce -> ce member :: e -> ce -> Bool
null
https://raw.githubusercontent.com/HaskellZhangSong/Introduction_to_Haskell_2ed_source/140c50fdccfe608fe499ecf2d8a3732f531173f5/C16/FunDep.hs
haskell
# LANGUAGE FunctionalDependencies , MultiParamTypeClasses # class Collection e ce | ce -> e where empty :: ce insert :: e -> ce -> ce member :: e -> ce -> Bool
d5d8d80a0e3f2ebbaa7679b9ab7d4461d4201f5c5a9d039ae92143153d66eff1
digital-asset/ghc
tcrun024.hs
# LANGUAGE ImplicitParams , TypeSynonymInstances , FlexibleInstances , ConstrainedClassMethods # -- Class ops that bind no new type variables module Main where import Data.List( sort ) just = [Just "fred",Just "bill"] main = do { putStrLn (let ?p = "ok1" in fc1); putStrL...
null
https://raw.githubusercontent.com/digital-asset/ghc/323dc6fcb127f77c08423873efc0a088c071440a/testsuite/tests/typecheck/should_run/tcrun024.hs
haskell
Class ops that bind no new type variables This class has no tyvars in its class op context One uses a newtype, the other a data type This class constrains no new type variables in its class op context
# LANGUAGE ImplicitParams , TypeSynonymInstances , FlexibleInstances , ConstrainedClassMethods # module Main where import Data.List( sort ) just = [Just "fred",Just "bill"] main = do { putStrLn (let ?p = "ok1" in fc1); putStrLn (let ?p = "ok2" in fc2); ...
b6b32d6c5ebce2f3339d64b69cfc93c40fcdffa92c716d7e574cf4ffdc40b666
Nike-Inc/hal
RuntimeClient.hs
# LANGUAGE CPP # | Module : AWS.Lambda . Description : HTTP related machinery for talking to the AWS Lambda Custom Runtime interface . Copyright : ( c ) Nike , Inc. , 2018 License : : , Stability : stable Module : AWS.Lambda.RuntimeClient Description : HTTP related machinery fo...
null
https://raw.githubusercontent.com/Nike-Inc/hal/d2142ea440b1f8bada32825925d95fc90593c22b/src/AWS/Lambda/RuntimeClient.hs
haskell
| Lambda runtime error that we pass back to AWS Exposed Handlers TODO: It would be interesting if we could make the interface a sort of "chained" callback API. So instead of getting back a base request to kick things off we get a 'getNextEvent' handler and then the 'getNextEvent' handler returns both the 'succes...
# LANGUAGE CPP # | Module : AWS.Lambda . Description : HTTP related machinery for talking to the AWS Lambda Custom Runtime interface . Copyright : ( c ) Nike , Inc. , 2018 License : : , Stability : stable Module : AWS.Lambda.RuntimeClient Description : HTTP related machinery fo...
901e88f4459fb9e74856131630a529c4c492a25ca73bb657d6f22aa8e32d44ca
aratare-jp/shinsetsu
tab_test.clj
(ns shinsetsu.resolvers.tab-test (:require [buddy.hashers :as hashers] [clojure.test :refer :all] [expectations.clojure.test :refer [defexpect expect]] [shinsetsu.db.tab :as tab-db] [shinsetsu.db.user :as user-db] [shinsetsu.parser :refer [protected-parser]] [shinsetsu.test-utility :refer ...
null
https://raw.githubusercontent.com/aratare-jp/shinsetsu/bef80e78cb79d257716bec84c7050d82e569ae13/test/clj/shinsetsu/resolvers/tab_test.clj
clojure
(ns shinsetsu.resolvers.tab-test (:require [buddy.hashers :as hashers] [clojure.test :refer :all] [expectations.clojure.test :refer [defexpect expect]] [shinsetsu.db.tab :as tab-db] [shinsetsu.db.user :as user-db] [shinsetsu.parser :refer [protected-parser]] [shinsetsu.test-utility :refer ...
5716f2311ff9e1754f6a73a1a2bc7f5b48da4abc6c572722c33ca56fd659ecef
FranklinChen/hugs98-plus-Sep2006
GHC.hs
# OPTIONS_GHC -cpp # ----------------------------------------------------------------------------- -- | Module : Distribution . Simple . GHC Copyright : 2003 - 2006 -- Maintainer : < > -- Stability : alpha -- Portability : portable -- Copyright ( c ) 2003 - 2005 , All rights rese...
null
https://raw.githubusercontent.com/FranklinChen/hugs98-plus-Sep2006/54ab69bd6313adbbed1d790b46aca2a0305ea67e/packages/Cabal/Distribution/Simple/GHC.hs
haskell
--------------------------------------------------------------------------- | Stability : alpha Portability : portable ----------------------------------------------------------------------------- Building it to the command-line. so we fake it. TODO: This can go away in due course. Build lib put hi-boo...
# OPTIONS_GHC -cpp # Module : Distribution . Simple . GHC Copyright : 2003 - 2006 Maintainer : < > Copyright ( c ) 2003 - 2005 , All rights reserved . Redistribution and use in source and binary forms , with or without modiication , are permitted provided that the following condi...
6ed79aeb7684bf9569e565017e8258fa37faf3815ecd76c7383c80426bd9b346
juspay/atlas
Handler.hs
| Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software dis...
null
https://raw.githubusercontent.com/juspay/atlas/e64b227dc17887fb01c2554db21c08284d18a806/app/parking-bap/src/API/Parking/Booking/BookingId/TriggerStatus/Handler.hs
haskell
| Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software dis...
e129ebd540a69d6085d9755a808132e339f67147085ac030a09b1656424bac28
BekaValentine/SimpleFP
Abstraction.hs
# LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE TypeSynonymInstances #-} # LANGUAGE UndecidableInstances # module Record.Core.Abstraction where import Control.Applicative import Control.Monad.Reader import qualified Control.Monad.State as S import Abs impo...
null
https://raw.githubusercontent.com/BekaValentine/SimpleFP/3cff456be9f0b99509e5cbe809be1055009b32df/src/Record/Core/Abstraction.hs
haskell
# LANGUAGE TypeSynonymInstances #
# LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE MultiParamTypeClasses # # LANGUAGE UndecidableInstances # module Record.Core.Abstraction where import Control.Applicative import Control.Monad.Reader import qualified Control.Monad.State as S import Abs import Plicity import Scope import Record....
6f3fac4f41aadbfbff8b57dd66b42b88aefd1de72bf41f2b4cdeb26974cf8a54
huangz1990/real-world-haskell-cn
scale.hs
-- file: ch12/Barcode.hs type Score = Ratio Int scaleToOne :: [Run] -> [Score] scaleToOne xs = map divide xs where divide d = fromIntegral d / divisor divisor = fromIntegral (sum xs) -- A more compact alternative that "knows" we're using Ratio Int: -- scaleToOne xs = map (% sum xs) xs type ScoreTable = [[...
null
https://raw.githubusercontent.com/huangz1990/real-world-haskell-cn/f67b07dd846b1950d17ff941d650089fcbbe9586/code/ch12/scale.hs
haskell
file: ch12/Barcode.hs A more compact alternative that "knows" we're using Ratio Int: scaleToOne xs = map (% sum xs) xs
type Score = Ratio Int scaleToOne :: [Run] -> [Score] scaleToOne xs = map divide xs where divide d = fromIntegral d / divisor divisor = fromIntegral (sum xs) type ScoreTable = [[Score]] " SRL " means " scaled run length " . asSRL :: [String] -> ScoreTable asSRL = map (scaleToOne . runLengths) leftOddS...
3ceaca4aa68b6d0b0eabb05ee920d7ebcf76a6b823958b73382902e7d407aa31
edicl/cl-gd
packages.lisp
(in-package #:cl-user) (defpackage #:cl-gd (:use #:cl #:uffi) (:export #:*default-image* #:*default-color* #:*default-font* #:+max-colors+ #:without-transformations #:with-transformation #:create-image #:destroy-image #:with-im...
null
https://raw.githubusercontent.com/edicl/cl-gd/0e1812a38f93ece0c3b183a92be6e440cecfd7e6/packages.lisp
lisp
(in-package #:cl-user) (defpackage #:cl-gd (:use #:cl #:uffi) (:export #:*default-image* #:*default-color* #:*default-font* #:+max-colors+ #:without-transformations #:with-transformation #:create-image #:destroy-image #:with-im...
5f74182e8625ea1a9954eb57f3eb6482d7fd87e5088cd95297af8178834cb2d5
jgm/skylighting
Core.hs
module Skylighting.Core ( lookupSyntax , syntaxByName , syntaxByShortName , syntaxesByExtension , syntaxesByFilename , module Skylighting.Types , module Skylighting.Tokenizer , module Skylighting.Parser , module Skylighting.Regex , module Skylighting.Styles , module Skylighting.Loader ) where ...
null
https://raw.githubusercontent.com/jgm/skylighting/16359a210ec43af308bd2cccea9595fa0c260404/skylighting-core/src/Skylighting/Core.hs
haskell
| Returns a list of syntaxes appropriate for the given file extension. | Returns a list of syntaxes appropriate for the given filename. | Lookup a syntax by full name (case insensitive). | Lookup a syntax by short name (case insensitive). | Lookup syntax by (in order) full name (case insensitive), short name (cas...
module Skylighting.Core ( lookupSyntax , syntaxByName , syntaxByShortName , syntaxesByExtension , syntaxesByFilename , module Skylighting.Types , module Skylighting.Tokenizer , module Skylighting.Parser , module Skylighting.Regex , module Skylighting.Styles , module Skylighting.Loader ) where ...
605e1111b9807064b409329ff2a7bd474db3105ada7d8f5a121c7d7327770abc
tweag/ormolu
record-dot.hs
# LANGUAGE OverloadedRecordDot # {-# LANGUAGE OverloadedRecordUpdate #-} data Foo = Foo { bar :: Foo } mfoo = fmap (.bar) $ Nothing bar = ( Foo 1).bar fooplus f n = f{foo = f.bar + n} nestedFoo f = f.bar.bar.bar.bar.bar nestedFooUpdate f = f {bar.bar = f.bar } <> f {bar.bar.bar.bar} operatorUpdate f = f { (+)...
null
https://raw.githubusercontent.com/tweag/ormolu/11cda4c653bc67a6ff579531a441410626ab3bbd/data/examples/declaration/value/function/record/record-dot.hs
haskell
# LANGUAGE OverloadedRecordUpdate #
# LANGUAGE OverloadedRecordDot # data Foo = Foo { bar :: Foo } mfoo = fmap (.bar) $ Nothing bar = ( Foo 1).bar fooplus f n = f{foo = f.bar + n} nestedFoo f = f.bar.bar.bar.bar.bar nestedFooUpdate f = f {bar.bar = f.bar } <> f {bar.bar.bar.bar} operatorUpdate f = f { (+) = 1 }
5077839d36739a0deffe1382730629613b7903259b4219dcd5afa6b24f09a369
AshleyYakeley/Truth
Lens.hs
module Changes.Core.Lens.Lens where import Changes.Core.Edit.Edit import Changes.Core.Edit.FullEdit import Changes.Core.Edit.Update import Changes.Core.Import import Changes.Core.Read data Linearity = Linear | NonLinear type NullReader :: Type -> Type data NullReader t nullReadable :: Readable m NullReader ...
null
https://raw.githubusercontent.com/AshleyYakeley/Truth/2817d5e36bd1dc5de932d808026098b6c35e7185/Changes/changes-core/lib/Changes/Core/Lens/Lens.hs
haskell
^ the Readable argument will reflect the new value ^ the Readable argument will reflect the new value ^ the Readable argument will reflect the new value
module Changes.Core.Lens.Lens where import Changes.Core.Edit.Edit import Changes.Core.Edit.FullEdit import Changes.Core.Edit.Update import Changes.Core.Import import Changes.Core.Read data Linearity = Linear | NonLinear type NullReader :: Type -> Type data NullReader t nullReadable :: Readable m NullReader ...
1687a404b419865adfecddd51de1d1ad15c51747422398b5f4a5dd993912486a
Kakadu/fp2022
parser.ml
* Copyright 2022 - 2023 , * SPDX - License - Identifier : LGPL-3.0 - or - later open Angstrom open Ast (* helper functions and parsers *) let is_space = function | ' ' | '\t' | '\n' | '\r' -> true | _ -> false ;; let is_first_char = function | 'a' .. 'z' | '_' -> true | _ -> false ;; let is_varname_char ...
null
https://raw.githubusercontent.com/Kakadu/fp2022/836230c8130be216d8008c96249b42828b240d7e/SMLEqTypesValRestr/lib/parser.ml
ocaml
helper functions and parsers dispatch for parsers expression parsers Default expression dispatch main parser some parser tests
* Copyright 2022 - 2023 , * SPDX - License - Identifier : LGPL-3.0 - or - later open Angstrom open Ast let is_space = function | ' ' | '\t' | '\n' | '\r' -> true | _ -> false ;; let is_first_char = function | 'a' .. 'z' | '_' -> true | _ -> false ;; let is_varname_char = function | 'a' .. 'z' | 'A' .. ...
923d2cf5c53c296de64d4db79e418d416756118f73de900f061cbdb5123d41b5
BinaryAnalysisPlatform/bap
bap_primus_lisp_index.ml
open Core_kernel[@@warning "-D"] module type S = sig type t [@@deriving sexp_of] val null : t val next : t -> t val pp : Format.formatter -> t -> unit include Comparable.S_plain with type t := t end module Make() : S = struct let null = Int63.zero let next = Int63.succ include Int63 end type ('a,'i,'...
null
https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap/253afc171bbfd0fe1b34f6442795dbf4b1798348/lib/bap_primus/bap_primus_lisp_index.ml
ocaml
open Core_kernel[@@warning "-D"] module type S = sig type t [@@deriving sexp_of] val null : t val next : t -> t val pp : Format.formatter -> t -> unit include Comparable.S_plain with type t := t end module Make() : S = struct let null = Int63.zero let next = Int63.succ include Int63 end type ('a,'i,'...
2368a03aa3d11a158d1c4c2cf168e0232b6f2fa0129944f229e6da2c2f715ebf
shirok/Gauche
test.scm
(include "test-colseq.scm") (include "test-hook.scm") (include "test-parameter.scm") (include "test-process.scm") (include "test-record.scm") (include "test-generator.scm") (include "test-bitvector.scm") (include "test-lazy.scm") (include "test-unicode.scm")
null
https://raw.githubusercontent.com/shirok/Gauche/183582cbe8ba101487d2d7ffcc641df63b421575/ext/gauche/test.scm
scheme
(include "test-colseq.scm") (include "test-hook.scm") (include "test-parameter.scm") (include "test-process.scm") (include "test-record.scm") (include "test-generator.scm") (include "test-bitvector.scm") (include "test-lazy.scm") (include "test-unicode.scm")
33558be951cc9a57926d882a6cf19f4f54fbe4cf7983b562f75fb7fd86da971a
sboehler/beans
AlphaVantage.hs
module Beans.MarketData.AlphaVantage ( getDailySeries, getFXSeries, APIKey (APIKey), FXEntry (..), TimeSeriesEntry (..), TimeSeriesResult (..), TimeSeries (..), FXResult (..), FX (..), Symbol (Symbol), ) where import Control.Monad.IO.Class (MonadIO) import Data.Aeson import qual...
null
https://raw.githubusercontent.com/sboehler/beans/897fc30a602f49906eb952c4fd5c8c0bf05a6beb/src/Beans/MarketData/AlphaVantage.hs
haskell
------------------------------------------------------------------------------ High level methods ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ API Implementation -------------------------------------------...
module Beans.MarketData.AlphaVantage ( getDailySeries, getFXSeries, APIKey (APIKey), FXEntry (..), TimeSeriesEntry (..), TimeSeriesResult (..), TimeSeries (..), FXResult (..), FX (..), Symbol (Symbol), ) where import Control.Monad.IO.Class (MonadIO) import Data.Aeson import qual...
ce6270ea1ee21da182a97c3b764ca5b3e81e4ed152bda6c09df2cdac4573123a
sigscale/snmp-collector
snmp_collector_trap_cisco.erl
%%% snmp_collector_trap_cisco.erl %%% vim: ts=3 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2016 - 2019 SigScale Global Inc. %%% @end Licensed under the Apache License , Version 2.0 ( the " License " ) ; %%% you may not use this file except in compliance with the License. %%% You ...
null
https://raw.githubusercontent.com/sigscale/snmp-collector/cb6b95ed331abd6f258d8ea55bf34c57f2992444/src/snmp_collector_trap_cisco.erl
erlang
snmp_collector_trap_cisco.erl vim: ts=3 @end 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 ...
2016 - 2019 SigScale Global Inc. Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @doc This module normalizes traps received from CISCO agents . The following table shows the mapping between CISCO MIB attributes -modu...
fbdb7d0d3ed35cf1b1e0ecc04a54d890f8c18d77fad38cbeaaa2a484b69fbd8d
choener/ADPfusion
Deletion.hs
module ADPfusion.PointR.Term.Deletion where import Data.Proxy import Data.Strict.Tuple import qualified Data.Vector.Fusion.Stream.Monadic as S import GHC.Exts import Data.PrimitiveArray import ADPfusion.Core import ADPfusion.Core.Term.Deletion import ...
null
https://raw.githubusercontent.com/choener/ADPfusion/fcbbf05d0f438883928077e3d8a7f1cbf8c2e58d/ADPfusion/PointR/Term/Deletion.hs
haskell
# Inline mkStream # # Inline [0] termStreamIndex # # Inline [0] termStaticCheck # # Inline [0] termStreamIndex # # Inline [0] termStaticCheck #
module ADPfusion.PointR.Term.Deletion where import Data.Proxy import Data.Strict.Tuple import qualified Data.Vector.Fusion.Stream.Monadic as S import GHC.Exts import Data.PrimitiveArray import ADPfusion.Core import ADPfusion.Core.Term.Deletion import ...
ee8ccf18495ffe18a04eaceae5c05a4f9ffb6e4e40d8243e8d73f8fc4dbd2ad8
trchopan/scheduled-blocks
PoolInfo.hs
# LANGUAGE DeriveGeneric # module Domain.PoolInfo where import Data.Aeson ( (.:) , FromJSON(parseJSON) , KeyValue((.=)) , ToJSON(toJSON) ...
null
https://raw.githubusercontent.com/trchopan/scheduled-blocks/80dfeed3da827d41e2f984e6a8673ab204cd510b/src/Domain/PoolInfo.hs
haskell
# LANGUAGE DeriveGeneric # module Domain.PoolInfo where import Data.Aeson ( (.:) , FromJSON(parseJSON) , KeyValue((.=)) , ToJSON(toJSON) ...
175f31204ff4fc85aaea469845a25309556d41528731420adc4ef7d186d2ab0b
geneweb/geneweb
wiznotesDisplay.ml
Copyright ( c ) 1998 - 2007 INRIA open Config open Def open Util let dir conf base = Filename.concat (Util.bpath (conf.bname ^ ".gwb")) (Gwdb.base_wiznotes_dir base) let wzfile wddir wz = Filename.concat wddir (wz ^ ".txt") let read_auth_file fname = let data = read_gen_auth_file fname in List.map ...
null
https://raw.githubusercontent.com/geneweb/geneweb/747f43da396a706bd1da60d34c04493a190edf0f/lib/wiznotesDisplay.ml
ocaml
mouais... backward compatibility searching
Copyright ( c ) 1998 - 2007 INRIA open Config open Def open Util let dir conf base = Filename.concat (Util.bpath (conf.bname ^ ".gwb")) (Gwdb.base_wiznotes_dir base) let wzfile wddir wz = Filename.concat wddir (wz ^ ".txt") let read_auth_file fname = let data = read_gen_auth_file fname in List.map ...
9a750d98b155e42e1cf5db97ce096b0c3533ec17e08a7ea9f9da29c2aecdef8f
heraldry/heraldicon
geometry_test.cljs
(ns spec.heraldry.motto.geometry-test (:require [cljs.test :refer-macros [are deftest]] [spec.heraldicon.test-util :as tu] [spec.heraldry.specs])) (deftest valid-geometry (are [form] (tu/valid? :heraldry.motto/geometry form) {} {:size 5})) (deftest invalid-geometry (are [form] (tu/invalid? :he...
null
https://raw.githubusercontent.com/heraldry/heraldicon/19c9d10485bbc48e98ddee30092a246cccc986d2/test/spec/heraldry/motto/geometry_test.cljs
clojure
(ns spec.heraldry.motto.geometry-test (:require [cljs.test :refer-macros [are deftest]] [spec.heraldicon.test-util :as tu] [spec.heraldry.specs])) (deftest valid-geometry (are [form] (tu/valid? :heraldry.motto/geometry form) {} {:size 5})) (deftest invalid-geometry (are [form] (tu/invalid? :he...
0ef3ecce296c467f5d1ef0598821a829053cfcf22e3a2039cd13b0e5825199c6
Rydgel/flappy-haskell
Main.hs
{-# LANGUAGE OverloadedStrings #-} module Main (main) where import FRP.Yampa import Game import Input import Rendering import System.Random (newStdGen) main :: IO () main = do g <- newStdGen animate "Flappy Haskell" (round winWidth) (round winHeight) $ parse...
null
https://raw.githubusercontent.com/Rydgel/flappy-haskell/4790c34978e47b048af1550f6d3af8604d9c8a89/src/Main.hs
haskell
# LANGUAGE OverloadedStrings #
module Main (main) where import FRP.Yampa import Game import Input import Rendering import System.Random (newStdGen) main :: IO () main = do g <- newStdGen animate "Flappy Haskell" (round winWidth) (round winHeight) $ parseWinInput >>> (game g &&& handleExit...
5734b47fa7ea3c78594fdf98663bf8a92f0be474f759d75d0177f4ef8c10b397
ragkousism/Guix-on-Hurd
http-client.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2012 , 2013 , 2014 , 2015 , 2016 , 2017 < > Copyright © 2015 < > Copyright © 2012 , 2015 Free Software Foundation , Inc. ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under t...
null
https://raw.githubusercontent.com/ragkousism/Guix-on-Hurd/e951bb2c0c4961dc6ac2bda8f331b9c4cee0da95/guix/http-client.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2012 , 2013 , 2014 , 2015 , 2016 , 2017 < > Copyright © 2015 < > Copyright © 2012 , 2015 Free Software Foundation , Inc. under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < /...
f8fb59c080bca437903cd55942f7b08ec7a3962a4f0cad0c1a5583ca5a5f725a
lucasdicioccio/prodapi
Trace.hs
module Prod.UserAuth.Trace where import Data.ByteString (ByteString) import Prod.UserAuth.Base import Web.JWT data Track = Behaviour BehaviourTrack | Bearer JwtTrack | Backend BackendTrack -- | Track enough information to study potentially-malicious activities. data BehaviourTrack = Attempt LoginAttempt...
null
https://raw.githubusercontent.com/lucasdicioccio/prodapi/4c43e1d617832f8ae88cb15afada1d5ab5e46ea4/prodapi-userauth/src/Prod/UserAuth/Trace.hs
haskell
| Track enough information to study potentially-malicious activities. | Track backend sql information.
module Prod.UserAuth.Trace where import Data.ByteString (ByteString) import Prod.UserAuth.Base import Web.JWT data Track = Behaviour BehaviourTrack | Bearer JwtTrack | Backend BackendTrack data BehaviourTrack = Attempt LoginAttempt LoginResult | Verification Bool | OptionalVerification Bool | Regi...
f7ad275dbf06250da78ca5bf1b48a22aedf3d17499eb7f07a9b2c8d475145335
input-output-hk/cardano-ledger
TxPayload.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveFunctor # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeApplications # module Cardano.Chain.UTxO.TxPayload ( TxPayload, ATxPayload (..), mkT...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger/b9aa1ad1728c0ceeca62657ec94d6d099896c052/eras/byron/ledger/impl/src/Cardano/Chain/UTxO/TxPayload.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE OverloadedStrings # | Payload of UTxO component which is part of the block body Used for debugging purposes only This is the value of Codec.CBOR.Write.toLazyByteString encodeListLenIndef This is the value of Codec.CBOR.Write.toLazyByteString encodeBreak They are hard coded he...
# LANGUAGE DeriveFunctor # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE TypeApplications # module Cardano.Chain.UTxO.TxPayload ( TxPayload, ATxPayload (..), mkTxPayload, recoverHashedBytes, txpAnnotatedTxs, txpTxs, txpW...
2c72fe5013c3257ada0c7fdf4fc3c8a8e9a10863731fd20ab082bf1f2d584b38
takuto-h/yuzu
token.ml
open Printf type t = | EOF | Newline | Undent | Int of int | String of string | Char of string | LowId of string | CapId of string | Reserved of string | AssignOp of string | OrOp of string | AndOp of string | CmpOp of string | ConsOp of string | AddOp of string | MulOp of string | P...
null
https://raw.githubusercontent.com/takuto-h/yuzu/e6bef0964d87c1ced65280083505448f56e5cf29/token.ml
ocaml
open Printf type t = | EOF | Newline | Undent | Int of int | String of string | Char of string | LowId of string | CapId of string | Reserved of string | AssignOp of string | OrOp of string | AndOp of string | CmpOp of string | ConsOp of string | AddOp of string | MulOp of string | P...
ccbcbdea26951b862c66533efb053a1d3925eb2dda298f71628cd439ba0396c2
nkpart/kit
Tests.hs
{-# LANGUAGE PackageImports, ScopedTypeVariables #-} module Tests where import Test.QuickCheck import Test.HUnit import Control.Applicative import System.Directory import System.FilePath.Posix import "mtl" Control.Monad.Writer import qualified Kit.Contents as KC import Kit.Spec import Kit.Util.FSAc...
null
https://raw.githubusercontent.com/nkpart/kit/ed217ddbc90688350e52156503cca092c9bf8300/Tests.hs
haskell
# LANGUAGE PackageImports, ScopedTypeVariables # Test/Prop helpers My little DSL for writing props and unit tests Arbitrary instances for Kit Types THE TESTS Todo * depsonly.xcconfig must specify SKIP_INSTALL=YES
module Tests where import Test.QuickCheck import Test.HUnit import Control.Applicative import System.Directory import System.FilePath.Posix import "mtl" Control.Monad.Writer import qualified Kit.Contents as KC import Kit.Spec import Kit.Util.FSAction as FSA import Kit.AbsolutePath import quali...
df0fd7e7d8246743bfae87bad6f9b450b839007d988a2f1dcf62a06396a3c44b
racket/images
info.rkt
#lang info (define collection 'multi) (define deps '("base" "images-lib")) (define build-deps '("pict-lib" "slideshow-lib" "racket-doc")) (define update-implies '("images-lib")) (define compile-omit-paths '("tests")) (define pkg-desc "Tests for images-pkg") ...
null
https://raw.githubusercontent.com/racket/images/b3d032087d9544a0561b61fedc09adc2c63ed29d/images-test/info.rkt
racket
#lang info (define collection 'multi) (define deps '("base" "images-lib")) (define build-deps '("pict-lib" "slideshow-lib" "racket-doc")) (define update-implies '("images-lib")) (define compile-omit-paths '("tests")) (define pkg-desc "Tests for images-pkg") ...
43ad9e81540438c71ec1d429795218877822c10490c8407e9632940139007da1
anmonteiro/ocaml-h2
gen_huffman.ml
---------------------------------------------------------------------------- Copyright ( c ) 2019 All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : 1 . Redistributions of sourc...
null
https://raw.githubusercontent.com/anmonteiro/ocaml-h2/1aea7e0aebb2c440dc35ef35ca15d87d44799f4e/hpack/util/gen_huffman.ml
ocaml
---------------------------------------------------------------------------- Copyright ( c ) 2019 All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : 1 . Redistributions of sourc...
28192c78dd53058f05475d1490691d28f4ed8c3c405991bc9d5e56b93a40fcb0
igorhvr/bedlam
optional-args.scm
;;code for CHECK-ARG, :OPTIONAL and LET-OPTIONALS* ;; A few SRFI 's use this . ;; ;;Most of this is copied from Scheme48. ;; ;;There should also be a definition of LET-OPTIONALS here, but it gets only used in one place in srfi-1 , so we replaced that code instead . (define (check-arg pred val caller) (let lp ((val v...
null
https://raw.githubusercontent.com/igorhvr/bedlam/b62e0d047105bb0473bdb47c58b23f6ca0f79a4e/sisc/sisc-1.16.6/full-src/sisc/src/sisc/modules/srfi/optional-args.scm
scheme
code for CHECK-ARG, :OPTIONAL and LET-OPTIONALS* Most of this is copied from Scheme48. There should also be a definition of LET-OPTIONALS here, but it gets
A few SRFI 's use this . only used in one place in srfi-1 , so we replaced that code instead . (define (check-arg pred val caller) (let lp ((val val)) (if (pred val) val (lp (error "Bad argument" val pred caller))))) (define-syntax :optional (syntax-rules () ((:optional rest default-exp) (let ((maybe...
118b548e0519c08e5c82dd3637c32d645ef73841ad7ff4131a98a2ba96f9c0b7
softwarelanguageslab/maf
R5RS_scp1_ring-rotate-1.scm
; Changes: * removed : 1 * added : 1 * swaps : 0 ; * negated predicates: 0 ; * swapped branches: 0 * calls to i d fun : 1 (letrec ((result ()) (output (lambda (i) (set! result (cons i result)))) (make-ring (lambda (n) (let ((last (cons 0 ()))) ...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_scp1_ring-rotate-1.scm
scheme
Changes: * negated predicates: 0 * swapped branches: 0
* removed : 1 * added : 1 * swaps : 0 * calls to i d fun : 1 (letrec ((result ()) (output (lambda (i) (set! result (cons i result)))) (make-ring (lambda (n) (let ((last (cons 0 ()))) (letrec ((build-list (lambda (n) ...
b1def9090ffebdf8a4a6eb1da01673d5cd70a0d91d3ccfa6f39b59d6952de349
protojure/lib
empty.cljc
;;;---------------------------------------------------------------------------------- ;;; Generated by protoc-gen-clojure. DO NOT EDIT ;;; ;;; Message Implementation of package com.example.empty ;;;---------------------------------------------------------------------------------- (ns com.example.empty (:require [pro...
null
https://raw.githubusercontent.com/protojure/lib/5b0b986d55455739ed18842557fbec9d6fd3ead5/test/test/com/example/empty.cljc
clojure
---------------------------------------------------------------------------------- Generated by protoc-gen-clojure. DO NOT EDIT Message Implementation of package com.example.empty ---------------------------------------------------------------------------------- -----------------------------------------------------...
(ns com.example.empty (:require [protojure.protobuf.protocol :as pb] [protojure.protobuf.serdes.core :as serdes.core] [protojure.protobuf.serdes.complex :as serdes.complex] [protojure.protobuf.serdes.utils :refer [tag-map]] [protojure.protobuf.serdes.stream :as serdes.s...
f259454b29ae914f3c60c0422ff7fdfb071ea1fd95a1ddfc42b59203328a7140
xxyzz/SICP
Exercise_3_71.rkt
#lang racket/base (require racket/stream) (require racket/list) (define (merge-weighted s1 s2 weight) (cond [(stream-empty? s1) s2] [(stream-empty? s2) s1] [else (let* ([s1car (stream-first s1)] [s2car (stream-first s2)] [weight-result (- (weight s1car) (weigh...
null
https://raw.githubusercontent.com/xxyzz/SICP/e26aea1c58fd896297dbf5406f7fcd32bb4f8f78/3_Modularity_Objects_and_State/3.5_Streams/Exercise_3_71.rkt
racket
!!
#lang racket/base (require racket/stream) (require racket/list) (define (merge-weighted s1 s2 weight) (cond [(stream-empty? s1) s2] [(stream-empty? s2) s1] [else (let* ([s1car (stream-first s1)] [s2car (stream-first s2)] [weight-result (- (weight s1car) (weigh...
9333439c1032115cee12fc59531b01c7f1ff56df4c90dfbf2e08cb2366b62e99
aiya000/haskell-examples
Main.hs
# LANGUAGE ImplicitParams # type MonoidDict a = (a, a -> a -> a) plus :: (?mDict :: MonoidDict a) => a -> a -> a plus = snd ?mDict main :: IO () main = do First , ` plus 1 ( 2 : : Int ) ` finds a ` MonoidDict Int ` . Second , ` ? mDict ` is applied to ` plus ` implicitly . let ?mDict = (0, (+)) :: MonoidDict I...
null
https://raw.githubusercontent.com/aiya000/haskell-examples/a337ba0e86be8bb1333e7eea852ba5fa1d177d8a/Language/Haskell/Extension/ImplicitParams/Main.hs
haskell
This is same as the last case Always the latest `?mDict` in lexical scope is preferred {output} "sugar" -1
# LANGUAGE ImplicitParams # type MonoidDict a = (a, a -> a -> a) plus :: (?mDict :: MonoidDict a) => a -> a -> a plus = snd ?mDict main :: IO () main = do First , ` plus 1 ( 2 : : Int ) ` finds a ` MonoidDict Int ` . Second , ` ? mDict ` is applied to ` plus ` implicitly . let ?mDict = (0, (+)) :: MonoidDict I...
855af17314fb033f409a45eaf7322cc426e862ea91fbfebebf99dcf32ecf161c
erlangonrails/devdb
rabbit_control.erl
The contents of this file are subject to the Mozilla Public License Version 1.1 ( the " License " ) ; you may not use this file except in %% compliance with the License. You may obtain a copy of the License at %% / %% Software distributed under the License is distributed on an " AS IS " %% basis, WITH...
null
https://raw.githubusercontent.com/erlangonrails/devdb/0e7eaa6bd810ec3892bfc3d933439560620d0941/dev/rabbitmq-server-1.8.0/src/rabbit_control.erl
erlang
compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. All Rights Reserved. Contributor(s): __________________________...
The contents of this file are subject to the Mozilla Public License Version 1.1 ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " The Original Code is RabbitMQ . The Initial Developers of the Original Code are LShift Ltd ,...
b6df6e8271fab79b59690c27cc9605e46e5c5d5c64a6c2b66720746bee5c63a9
Oblosys/proxima
DocumentEdit_Generated.hs
# LANGUAGE FlexibleInstances # module DocumentEdit_Generated where import Prelude hiding (Word) import Common.CommonTypes hiding (Dirty (..)) import Evaluation.DocTypes import DocTypes_Generated import DocUtils_Generated import Evaluation.DocumentEdit import Evaluation.DocUtils import Presentation.PresTypes ----- GEN...
null
https://raw.githubusercontent.com/Oblosys/proxima/f154dff2ccb8afe00eeb325d9d06f5e2a5ee7589/multi-editor/src/DocumentEdit_Generated.hs
haskell
--- GENERATED PART STARTS HERE. DO NOT EDIT ON OR BEYOND THIS LINE ----- ------------------------------------------------------------------------ Clip instance -- ------------------------------------------------------------------------ ----------------------------...
# LANGUAGE FlexibleInstances # module DocumentEdit_Generated where import Prelude hiding (Word) import Common.CommonTypes hiding (Dirty (..)) import Evaluation.DocTypes import DocTypes_Generated import DocUtils_Generated import Evaluation.DocumentEdit import Evaluation.DocUtils import Presentation.PresTypes instanc...
5d10ce36fa74512cadb85e601b3ddb4f9e70a0f201c65bfea3a6ff1c04486fd3
gafiatulin/codewars
GCD.hs
-- Greatest common divisor -- / module Codewars.Kata.GCD where import Prelude hiding (gcd, lcm) gcd :: Integral n => n -> n -> n gcd a b | a == b = a | b == 0 = a | a == 0 = b | b > 0 = gcd b (a`mod` b)
null
https://raw.githubusercontent.com/gafiatulin/codewars/535db608333e854be93ecfc165686a2162264fef/src/7%20kyu/GCD.hs
haskell
Greatest common divisor /
module Codewars.Kata.GCD where import Prelude hiding (gcd, lcm) gcd :: Integral n => n -> n -> n gcd a b | a == b = a | b == 0 = a | a == 0 = b | b > 0 = gcd b (a`mod` b)
a0c898773a5e7989ff342e75149ea6384c6234bd49d56074512e2d9dfe0bcc6a
iconnect/ridley
DiskUsage.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE CPP # # LANGUAGE RecordWildCards # # LANGUAGE TemplateHaskell # module System.Metrics.Prometheus.Ridley.Metrics.DiskUsage ( newDiskUsageMetrics ) where import Control.Monad import Control.Monad.IO.Class import Control.Monad.Trans.Class imp...
null
https://raw.githubusercontent.com/iconnect/ridley/d0d045ed0334af9b2403f60e8abe945b4e193d7e/ridley/src/System/Metrics/Prometheus/Ridley/Metrics/DiskUsage.hs
haskell
# LANGUAGE OverloadedStrings # ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ----------------------------------------------------...
# LANGUAGE CPP # # LANGUAGE RecordWildCards # # LANGUAGE TemplateHaskell # module System.Metrics.Prometheus.Ridley.Metrics.DiskUsage ( newDiskUsageMetrics ) where import Control.Monad import Control.Monad.IO.Class import Control.Monad.Trans.Class import Data.Maybe import ...
222f0e6554ea83ce5341ea775b656e295bd55cef5bb60b035e7eae35edaf7942
schemeorg-community/index.scheme.org
srfi.146.scm
(((name . "mapping") (signature lambda ((comparator? comparator) arg ...) mapping?) (tags pure)) ((name . "mapping-unfold") (signature lambda ((procedure? stop?) (procedure? mapper) (procedure? successor) seed (comparator? comparator)) mapping?) (subsigs (stop? (lambda (seed) boolea...
null
https://raw.githubusercontent.com/schemeorg-community/index.scheme.org/32e1afcfe423a158ac8ce014f5c0b8399d12a1ea/types/srfi.146.scm
scheme
(((name . "mapping") (signature lambda ((comparator? comparator) arg ...) mapping?) (tags pure)) ((name . "mapping-unfold") (signature lambda ((procedure? stop?) (procedure? mapper) (procedure? successor) seed (comparator? comparator)) mapping?) (subsigs (stop? (lambda (seed) boolea...
b360cb24c84c6277c42735288fd91b3cc09ec701a4e4799cf9e7e7c295d4b981
tonyg/racket-operational-transformation
server.rkt
#lang racket/base (provide (struct-out server-state) (struct-out pending-operation) (struct-out server-snapshot) make-server incorporate-operation-from-client extract-operation extract-snapshot forget-operation-history) (require racket/match) (require (on...
null
https://raw.githubusercontent.com/tonyg/racket-operational-transformation/685d60091bff0428c2ec3cd8c4f63c8ef8b28de5/operational-transformation-lib/operational-transformation/server.rkt
racket
operation revision out of range
#lang racket/base (provide (struct-out server-state) (struct-out pending-operation) (struct-out server-snapshot) make-server incorporate-operation-from-client extract-operation extract-snapshot forget-operation-history) (require racket/match) (require (on...
47c0dab1606054c45ac3f8dce97d5742ebfc2ac455630989bbf4f25a01b5c0a6
webyrd/n-grams-for-synthesis
variant-dynamic-ordering-with-application-optimization-ml-infer.scm
(define *output-table-file-name* "tmp/variant-dynamic-ordering-with-application-optimization-ml-infer-table.scm") (define allow-incomplete-search? #f) (define lookup-optimization? #f) (load "mk-vicare.scm") (load "mk.scm") (load "test-check.scm") (load "infer-app-optimization-ml.scm") (load "construct-ordering-ml-in...
null
https://raw.githubusercontent.com/webyrd/n-grams-for-synthesis/b53b071e53445337d3fe20db0249363aeb9f3e51/variant-dynamic-ordering-with-application-optimization-ml-infer.scm
scheme
(define *output-table-file-name* "tmp/variant-dynamic-ordering-with-application-optimization-ml-infer-table.scm") (define allow-incomplete-search? #f) (define lookup-optimization? #f) (load "mk-vicare.scm") (load "mk.scm") (load "test-check.scm") (load "infer-app-optimization-ml.scm") (load "construct-ordering-ml-in...
7536fd9c0d98232fc012a2d3b7701198c0292804ef125d033df32c4ff93ac143
returntocorp/semgrep
Output_from_core_util.mli
Utilities for working with the types defined in Semgrep_output_v1.atd Utilities for working with the types defined in Semgrep_output_v1.atd *) val position_of_token_location : Parse_info.token_location -> Output_from_core_t.position val position_range : Parse_info.token_location -> Parse_info.token_lo...
null
https://raw.githubusercontent.com/returntocorp/semgrep/70af5900482dd15fcce9b8508bd387f7355a531d/src/reporting/Output_from_core_util.mli
ocaml
Utilities for working with the types defined in Semgrep_output_v1.atd Utilities for working with the types defined in Semgrep_output_v1.atd *) val position_of_token_location : Parse_info.token_location -> Output_from_core_t.position val position_range : Parse_info.token_location -> Parse_info.token_lo...
aac8860f3cae1c7ea048a0c80dc902945ec06c16b7ef5d17a26e90df696c3ce6
aeyakovenko/rbm
Matrix.hs
module Test.Matrix(test) where import Data.Matrix import Prelude as P import System.Exit (exitFailure) import Test.QuickCheck(verboseCheckWithResult) import Test.QuickCheck.Test(isSuccess,stdArgs,maxSuccess,maxSize) import Control.Monad.Identity(runIdentity) import qualified Data.Vector.Unboxed as V import Data.Binar...
null
https://raw.githubusercontent.com/aeyakovenko/rbm/e1767257ba7499e09b31b34b1ec76c14272ba127/Test/Matrix.hs
haskell
module Test.Matrix(test) where import Data.Matrix import Prelude as P import System.Exit (exitFailure) import Test.QuickCheck(verboseCheckWithResult) import Test.QuickCheck.Test(isSuccess,stdArgs,maxSuccess,maxSize) import Control.Monad.Identity(runIdentity) import qualified Data.Vector.Unboxed as V import Data.Binar...
5db8af53cd82b4f2ddcc9c8ccef56bacb90dc9eec8c678a36190a9f4e9677523
bldl/magnolisp
backend-util.rkt
#lang racket/base #| Utilities useful for implementing compiler back ends. |# (require (for-syntax racket/base) racket/contract/base racket/file racket/port racket/pretty racket/string "util.rkt") ;;; ;;; data processing ;;; (define* (space-join l) (string...
null
https://raw.githubusercontent.com/bldl/magnolisp/191d529486e688e5dda2be677ad8fe3b654e0d4f/backend-util.rkt
racket
Utilities useful for implementing compiler back ends. data processing IO Checks whether a file either does not exist or has been changed. input streams? Then we could handle large files as well. ((nin (open-input-string s))) and then compare to file input. pretty printing
#lang racket/base (require (for-syntax racket/base) racket/contract/base racket/file racket/port racket/pretty racket/string "util.rkt") (define* (space-join l) (string-join l " ")) (define* (for-each-sep elemact sepact lst) (define first #t) (for-each ...
0af1fd292f083dd950cf19398c71d9dd457e5c1c145f8974afbea6a467cf233f
robstewart57/rdf4h
ESWC.hs
module Main where import Data.RDF import qualified Data.Text as T eswcCommitteeURI, heldByProp :: T.Text eswcCommitteeURI = "-committee-member" heldByProp = "swc:heldBy" -- | returns a list of full names of people who served as members on the ESWC 2015 conference programme committee . eswcCommitteeMembers...
null
https://raw.githubusercontent.com/robstewart57/rdf4h/22538a916ec35ad1c46f9946ca66efed24d95c75/examples/ESWC.hs
haskell
| returns a list of full names of people who served as
module Main where import Data.RDF import qualified Data.Text as T eswcCommitteeURI, heldByProp :: T.Text eswcCommitteeURI = "-committee-member" heldByProp = "swc:heldBy" members on the ESWC 2015 conference programme committee . eswcCommitteeMembers :: RDF TList -> [T.Text] eswcCommitteeMembers graph = l...
b60c0d681a44e73d3ad67631a0b4acdf42cd0ae5babc2df6350a470d57666c8f
patrikja/AFPcourse
GenTree.hs
module GenTree where import Test.QuickCheck -- (frequency) import Control.Monad (liftM, liftM2) data Tree a = Leaf a | Node (Tree a) (Tree a) deriving (Eq, Show) arbBad :: Arbitrary a => Gen (Tree a) arbBad = frequency [ (1, liftM Leaf arbitrary) , (2, liftM2 Node arbBad arbBad) ...
null
https://raw.githubusercontent.com/patrikja/AFPcourse/1a079ae80ba2dbb36f3f79f0fc96a502c0f670b6/L8/GenTree.hs
haskell
(frequency) all on one side try to factor out ( t-1 ) from the t*t term simplify the rest factor out ( t-1 ) also in the rest distributivity all on one side try to factor out (t-1) from the t*t term simplify the rest factor out (t-1) also in the rest distributivity
module GenTree where import Control.Monad (liftM, liftM2) data Tree a = Leaf a | Node (Tree a) (Tree a) deriving (Eq, Show) arbBad :: Arbitrary a => Gen (Tree a) arbBad = frequency [ (1, liftM Leaf arbitrary) , (2, liftM2 Node arbBad arbBad) ] Termination ? let p be ...
167307d3162de06e2c1c9967af16e7a4ab505aa6fd546e18434d63ff482a19bf
metaocaml/ber-metaocaml
broken_invariants.ml
(* TEST files="illegal_ppx.ml" * setup-ocamlc.byte-build-env ** ocamlc.byte with ocamlcommon all_modules="illegal_ppx.ml" program="ppx.exe" *** toplevel all_modules="broken_invariants.ml" flags="-ppx '${ocamlrun} ${test_build_directory_prefix}/ocamlc.byte/ppx.exe'" *) let empty_tuple = [%tuple];; let ...
null
https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/testsuite/tests/parsing/broken_invariants.ml
ocaml
TEST files="illegal_ppx.ml" * setup-ocamlc.byte-build-env ** ocamlc.byte with ocamlcommon all_modules="illegal_ppx.ml" program="ppx.exe" *** toplevel all_modules="broken_invariants.ml" flags="-ppx '${ocamlrun} ${test_build_directory_prefix}/ocamlc.byte/ppx.exe'"
let empty_tuple = [%tuple];; let empty_record = [%record];; let empty_apply = [%no_args f];; let f = function [%record_with_functor_fields] -> ();; [%%empty_let];; [%%empty_type];;
af9edebade1f5a0c19f44a2aa56c63289546c1cb7188e6561e0bbc874375034f
Frama-C/Frama-C-snapshot
gui_red.ml
(**************************************************************************) (* *) This file is part of Frama - C. (* *) Copyright ...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/value/gui_files/gui_red.ml
ocaml
************************************************************************ alternatives) ...
This file is part of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , v...
22d29d3b34095f907523be72a03cb42bfb19e3c7c3ca8631178f767d7befccbf
ocaml/ocaml-lsp
action_destruct.mli
open Import val kind : CodeActionKind.t val t : State.t -> Code_action.t
null
https://raw.githubusercontent.com/ocaml/ocaml-lsp/63bb9adbbaaf0ac199b7ee21c90a60ff1101618c/ocaml-lsp-server/src/code_actions/action_destruct.mli
ocaml
open Import val kind : CodeActionKind.t val t : State.t -> Code_action.t
d464e303c463d88debb774b564126c78feddd8c4868fa270068e3a15432e6a34
bartavelle/manglingrules
Mangling.hs
{-# LANGUAGE DeriveDataTypeable #-} module Mangling ( preprocess, cleanup, parseRuleFile, parseSingleRule, showRule, Flavor (..), Rule (..), Numeric (..), CharacterClassType (..), CharacterClass (..) ) where import Text.Parsec import C...
null
https://raw.githubusercontent.com/bartavelle/manglingrules/40106dcb9d5f5a2e05e382afd18cc3289902412f/Mangling.hs
haskell
# LANGUAGE DeriveDataTypeable # PREPROCESSOR IMPLENTATION ACTUAL STUFF used for error handling true = match, false = exclude
module Mangling ( preprocess, cleanup, parseRuleFile, parseSingleRule, showRule, Flavor (..), Rule (..), Numeric (..), CharacterClassType (..), CharacterClass (..) ) where import Text.Parsec import Control.Applicative hiding (many, (<|...
c905f2273ca1fccedfec72fe32a6177afe015817e7bb78f1e5068db7c709aa16
deadcode/Learning-CL--David-Touretzky
4.38.lisp
(defun NOR (x y) (NOT (OR x y))) (defun NOT2 (x) (NOR x x)) (defun LOGICAL-AND (x y) (NOR (NOR x x) (NOR y y))) (defun LOGICAL-OR (x y) (NOR (NOR x y) (NOR x y))) (defun LOGICAL-NAND (x y) (NOT2 (LOGICAL-AND x y))) (format t "~s = ~s~%" '(NOT2 nil) (NOT2 nil)) (format t "~s = ~s~%" '(NOT2...
null
https://raw.githubusercontent.com/deadcode/Learning-CL--David-Touretzky/b4557c33f58e382f765369971e6a4747c27ca692/Chapter%204/4.38.lisp
lisp
(defun NOR (x y) (NOT (OR x y))) (defun NOT2 (x) (NOR x x)) (defun LOGICAL-AND (x y) (NOR (NOR x x) (NOR y y))) (defun LOGICAL-OR (x y) (NOR (NOR x y) (NOR x y))) (defun LOGICAL-NAND (x y) (NOT2 (LOGICAL-AND x y))) (format t "~s = ~s~%" '(NOT2 nil) (NOT2 nil)) (format t "~s = ~s~%" '(NOT2...
bb9bec14d08ebe9dcbbaa68ad7dbd0646a12953b881e40e68293630a63f6916d
5HT/ant
german.ml
open XNum; open Runtime; open Unicode.Types; open Logging; open Dim; open Markup; open ParseState; value warn_unknown loc sequence = do { log_warn loc "command \""; log_uc_list sequence; log_string " unknown!" }; value add_zero_skip ps = do { add_node ps (`Glue (location ps, fun _ -> dim_zero, fun _ -> dim_z...
null
https://raw.githubusercontent.com/5HT/ant/6acf51f4c4ebcc06c52c595776e0293cfa2f1da4/Packages/german.ml
ocaml
""a ""A ""e ""E ""i ""I ""o ""O ""u ""U ""s ""S ""z ""Z ""` ""' ""< ""> ""- ""| "" ""= ""~ ""ck ""CK ""ff ""ll ""LL ""mm ""MM ""nn ""NN ""pp ""rr ""RR ""tt ""a ""A ""e ""E ""i ""I ""o ""O ""u ""U ""s ""S ""z ""Z ""` "...
open XNum; open Runtime; open Unicode.Types; open Logging; open Dim; open Markup; open ParseState; value warn_unknown loc sequence = do { log_warn loc "command \""; log_uc_list sequence; log_string " unknown!" }; value add_zero_skip ps = do { add_node ps (`Glue (location ps, fun _ -> dim_zero, fun _ -> dim_z...
3bf5680aa6f4c7813072dbafd024d95534c680b27521d8093ff722a2826161a8
Jarzka/stylefy
style_hash_test.cljs
(ns stylefy.tests.style-hash-test (:require [cljs.test :as test :refer-macros [deftest is testing]] [stylefy.core :as stylefy] [garden.units :as units] [stylefy.impl.hashing :as hashing] [stylefy.impl.dom :as dom] [clojure.string :as str])) (def style-box-e...
null
https://raw.githubusercontent.com/Jarzka/stylefy/c4c3a9b1d230605e2d08a769d83d632e696d84a0/test/stylefy/tests/style_hash_test.cljs
clojure
Default case: custom class prefixes are disabled globally by default Custom class prefixes are enabled globally Custom class prefix is a keyword Custom class prefix is nil -> use default Custom class prefix is something else ::sub-styles is only a link to other styles, it does not define the actual properties of...
(ns stylefy.tests.style-hash-test (:require [cljs.test :as test :refer-macros [deftest is testing]] [stylefy.core :as stylefy] [garden.units :as units] [stylefy.impl.hashing :as hashing] [stylefy.impl.dom :as dom] [clojure.string :as str])) (def style-box-e...
82b878049e12ebcc2623e4eb8fe7c312c2aaca50aa1875590f7dd66ecedb2669
esl/MongooseIM
push_pubsub_SUITE.erl
-module(push_pubsub_SUITE). -compile([export_all, nowarn_export_all]). -include_lib("eunit/include/eunit.hrl"). -include_lib("exml/include/exml.hrl"). -include("push_helper.hrl"). -import(distributed_helper, [subhost_pattern/1]). -import(domain_helper, [domain/0]). -import(config_parser_helper, [config/2]). %%-------...
null
https://raw.githubusercontent.com/esl/MongooseIM/74bf246d0ee6c04bc8206e8f8cc3d019b30c1d3c/big_tests/tests/push_pubsub_SUITE.erl
erlang
-------------------------------------------------------------------- Suite configuration -------------------------------------------------------------------- -------------------------------------------------------------------- -------------------------------------------------------------------- For mocking with unnam...
-module(push_pubsub_SUITE). -compile([export_all, nowarn_export_all]). -include_lib("eunit/include/eunit.hrl"). -include_lib("exml/include/exml.hrl"). -include("push_helper.hrl"). -import(distributed_helper, [subhost_pattern/1]). -import(domain_helper, [domain/0]). -import(config_parser_helper, [config/2]). all() ->...
b3aef15f7445fdb0e7dcef5e0d11c9b40043f9d8768e24e253189733c8fb6f8c
flipstone/orville
RelationalMap.hs
| Module : Database . Orville . PostgreSQL.Internal . RelationalMap Copyright : Flipstone Technology Partners 2016 - 2018 License : MIT Module : Database.Orville.PostgreSQL.Internal.RelationalMap Copyright : Flipstone Technology Partners 2016-2018 License : MIT -} # LANGUAGE FlexibleContexts # {-# L...
null
https://raw.githubusercontent.com/flipstone/orville/5dce4785d69edcaa43438380b7f51c01aa01b84a/orville-postgresql/src/Database/Orville/PostgreSQL/Internal/RelationalMap.hs
haskell
# LANGUAGE GADTs # ^ The name of the table in the database is converted both to and from sql. The fields utilized in the mapping define the structure of the table in the database. ^ A function to set the key on the entity ^ A function to get the key on the entity ^ Any comments that might be interesting for devel...
| Module : Database . Orville . PostgreSQL.Internal . RelationalMap Copyright : Flipstone Technology Partners 2016 - 2018 License : MIT Module : Database.Orville.PostgreSQL.Internal.RelationalMap Copyright : Flipstone Technology Partners 2016-2018 License : MIT -} # LANGUAGE FlexibleContexts # # LAN...
a5916df0bea0103c7cab6e90a28bd308debab61e0b43c0e098c03bc395fdc857
imrehg/ypsilon
condition.scm
Ypsilon Scheme System Copyright ( c ) 2004 - 2009 Y.FUJITA / LittleWing Company Limited . See license.txt for terms and conditions of use . (define make-condition-uid (lambda () (string->symbol (format "<~a>" (make-uuid))))) (define &condition (let* ((rtd (make-record-type-descriptor '&condition #f (make-cond...
null
https://raw.githubusercontent.com/imrehg/ypsilon/e57a06ef5c66c1a88905b2be2fa791fa29848514/heap/boot/condition.scm
scheme
Ypsilon Scheme System Copyright ( c ) 2004 - 2009 Y.FUJITA / LittleWing Company Limited . See license.txt for terms and conditions of use . (define make-condition-uid (lambda () (string->symbol (format "<~a>" (make-uuid))))) (define &condition (let* ((rtd (make-record-type-descriptor '&condition #f (make-cond...
6b585b02ce3320ad406c0874957dec8d33912d47cde8de9738266986e4dd0c78
eeng/mercurius
simulation.clj
(ns fiddles.simulation (:require [user :refer [system reset]] [mercurius.simulation.adapters.processes.simulation :refer [run-simulation]] [mercurius.util.progress :refer [new-progress-tracker]])) (comment (do (reset) (def dispatch (:use-cases/dispatch system)) (time (run-simula...
null
https://raw.githubusercontent.com/eeng/mercurius/f83778ddde99aa13692e4fe2e70b2e9dc2fd70e9/dev/fiddles/simulation.clj
clojure
(ns fiddles.simulation (:require [user :refer [system reset]] [mercurius.simulation.adapters.processes.simulation :refer [run-simulation]] [mercurius.util.progress :refer [new-progress-tracker]])) (comment (do (reset) (def dispatch (:use-cases/dispatch system)) (time (run-simula...
5d163a41fadf6fa05a326ef9b018788480ee3101d080bced9ed59c335c3bcf3c
dbuenzli/uucd
B0.ml
open B0_kit.V000 open Result.Syntax (* OCaml library names *) let uucd = B0_ocaml.libname "uucd" let xmlm = B0_ocaml.libname "xmlm" (* Libraries *) let uucd_lib = let srcs = Fpath.[ `Dir (v "src") ] in let requires = [xmlm] in B0_ocaml.lib uucd ~doc:"Uucd library" ~srcs ~requires (* Tests *) let test = le...
null
https://raw.githubusercontent.com/dbuenzli/uucd/b207f3c747bcb13611f0ede9ef522d9edfb7b374/B0.ml
ocaml
OCaml library names Libraries Tests Packs
open B0_kit.V000 open Result.Syntax let uucd = B0_ocaml.libname "uucd" let xmlm = B0_ocaml.libname "xmlm" let uucd_lib = let srcs = Fpath.[ `Dir (v "src") ] in let requires = [xmlm] in B0_ocaml.lib uucd ~doc:"Uucd library" ~srcs ~requires let test = let srcs = Fpath.[`File (v "test/test.ml")] in let req...
fb8619ba43b791f5723e699d568b0903287fd335e41f1f9140986bf6de786c29
wenkokke/MonoProc
LV.hs
module PROC.MF.Analysis.LV (mfLV) where import Prelude hiding (init) import PROC.Base import PROC.MF.Analysis import PROC.MF.Flowable import PROC.MF.FreeNames import Data.Monoid ((<>)) import Data.Set (Set,(\\)) import qualified Data.Set as S import qualified Data.Foldable as S (foldMap) -- * Monotone Framework Inst...
null
https://raw.githubusercontent.com/wenkokke/MonoProc/c3d00bd55ee8a6f2c12ebf5abb226c731e856350/src/PROC/MF/Analysis/LV.hs
haskell
* Monotone Framework Instance |Monotone Framework for Live Variable Analysis.
module PROC.MF.Analysis.LV (mfLV) where import Prelude hiding (init) import PROC.Base import PROC.MF.Analysis import PROC.MF.Flowable import PROC.MF.FreeNames import Data.Monoid ((<>)) import Data.Set (Set,(\\)) import qualified Data.Set as S import qualified Data.Foldable as S (foldMap) mfLV :: Prog -> MF (Set Nam...
c825cb9cb018e0585319560bb0bd1f8b59178ef73b3e7f459bb0704a7602bc5b
maximedenes/native-coq
unify.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/maximedenes/native-coq/3623a4d9fe95c165f02f7119c0e6564a83a9f4c9/plugins/firstorder/unify.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** domaine de quantification
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Term exception UFAIL of...
babd825061118b8311d42efe7f4b905576e92f6a516d7dc0df6200ccb12ce79b
Emmanuel-PLF/facile
fcl_invariant.ml
(***********************************************************************) (* *) FaCiLe A Functional Constraint Library (* ...
null
https://raw.githubusercontent.com/Emmanuel-PLF/facile/3b6902e479019c25b582042d9a02152fec145eb0/lib/fcl_invariant.ml
ocaml
********************************************************************* under the terms of the GNU Lesser Gener...
FaCiLe A Functional Constraint Library , , LOG , CENA Copyright 2004 CENA . All rights reserved . This file is distributed $ I d : fcl_invariant.ml , v 1.2 2004/08/12 15:22:07 bar...
13c30ec69fb22ee68b60de80d6111b3c615f6aefe27a695df0f0389a19179ed6
OCamlPro/ocp-build
buildDepMisc.ml
(**************************************************************************) (* *) (* Typerex Tools *) (* *) Copyrigh...
null
https://raw.githubusercontent.com/OCamlPro/ocp-build/56aff560bb438c12b2929feaf8379bc6f31b9840/tools/ocp-build/buildDepMisc.ml
ocaml
************************************************************************ Typerex Tools ...
Copyright 2011 - 2017 OCamlPro SAS the GNU General Public License version 3 described in the file open OcpCompat open BuildEngineTypes open BuildTypes open BuildOCPTypes open BuildValue.TYPES let verbose = OcpDebug.verbose_function [ "B" ;"BuildOCamldep" ] let pars...
51e4e116bfd91427787e4382d8c8f5f09cf5bba11f41f623317d85187c11a94a
racket/gui
exit.rkt
#lang racket/base (require "test-suite-utils.rkt") (module test racket/base) (test 'exit/no-prompt (lambda (x) (and (eq? x 'passed) (not (mred-running?)))) (lambda () (with-handlers ([eof-result? (lambda (x) 'passed)]) (send-sexp-to-mred '(begin (exit:exit) (sleep/yield 1))) 'failed))) (def...
null
https://raw.githubusercontent.com/racket/gui/d1fef7a43a482c0fdd5672be9a6e713f16d8be5c/gui-test/framework/tests/exit.rkt
racket
need to test "on" callbacks
#lang racket/base (require "test-suite-utils.rkt") (module test racket/base) (test 'exit/no-prompt (lambda (x) (and (eq? x 'passed) (not (mred-running?)))) (lambda () (with-handlers ([eof-result? (lambda (x) 'passed)]) (send-sexp-to-mred '(begin (exit:exit) (sleep/yield 1))) 'failed))) (def...
a82e9ccad4a5a5ef9a794e06d79d33c48d7d25857e1e08a9f8e2acbb5b92783d
CoNarrative/precept-devtools
ws.cljs
(ns precept-visualizer.ws (:require [taoensso.sente :as sente] [mount.core :refer [defstate]] [precept-visualizer.state :as state] [precept-visualizer.config :as config] [precept.core :as precept])) (declare socket) (defn connect! [host path] (let [{:keys [chsk ch-r...
null
https://raw.githubusercontent.com/CoNarrative/precept-devtools/0c69c090db2159c4d1f5ce783cecd9d5426c5fe0/precept-visualizer/src/cljs/precept_visualizer/ws.cljs
clojure
(println "Initial facts:")
(ns precept-visualizer.ws (:require [taoensso.sente :as sente] [mount.core :refer [defstate]] [precept-visualizer.state :as state] [precept-visualizer.config :as config] [precept.core :as precept])) (declare socket) (defn connect! [host path] (let [{:keys [chsk ch-r...
67248aeb7e7d6a1c263bb03a092cb0ed529566611a915328b454dd6827db052c
iamFIREcracker/adventofcode
day04.lisp
(defpackage :aoc/2018/04 #.cl-user::*aoc-use*) (in-package :aoc/2018/04) (defun guard (schedule-entry) (car schedule-entry)) (defun sleeptable (schedule-entry) (cdr schedule-entry)) (defun (setf sleeptable) (value schedule-entry) (setf (cdr schedule-entry) value)) (defun minute (sleeptable-entry) (car sleeptable-entr...
null
https://raw.githubusercontent.com/iamFIREcracker/adventofcode/2c5e174918a56ce80e39d4f5039e6b2d1d1050e6/src/2018/day04.lisp
lisp
(defpackage :aoc/2018/04 #.cl-user::*aoc-use*) (in-package :aoc/2018/04) (defun guard (schedule-entry) (car schedule-entry)) (defun sleeptable (schedule-entry) (cdr schedule-entry)) (defun (setf sleeptable) (value schedule-entry) (setf (cdr schedule-entry) value)) (defun minute (sleeptable-entry) (car sleeptable-entr...
912f3101172e8cd364088acf8eabeccb982c60874e3a6d351fd04c19f07627dd
roman/lc-2018-rock-solid-haskell-services
CircuitBreaker.hs
# LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE NoImplicitPrelude # -- | Module containing circuit breaker functionality, which is the ability to -- open a circuit once a number of failures have occurred, thereby preventing -- later calls from attempting to...
null
https://raw.githubusercontent.com/roman/lc-2018-rock-solid-haskell-services/c964beba5ddc50bb586e02b14d8d89128f17a53f/5-web-crawl/app/App/CircuitBreaker.hs
haskell
# LANGUAGE DeriveDataTypeable # | Module containing circuit breaker functionality, which is the ability to open a circuit once a number of failures have occurred, thereby preventing later calls from attempting to make unsuccessful calls. | Often this is useful if the underlying service were to repeatedly time out, ...
# LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE NoImplicitPrelude # module App.CircuitBreaker( CircuitBreakerOptions , CircuitBreakerState , CircuitBreakerException(..) , combineCircuitBreakerStates , isCircuitBreakerOpen , isCircuitBreakerClosed , defaultCircuitBreakerOptions...
431fb13264c3ea8e24276651710a47de6f414eda5aa45d7c7241c2092d52cd00
oker1/websocket-chat
cset_sup.erl
-module(cset_sup). -behaviour(supervisor). %% API -export([start_link/1]). %% Supervisor callbacks -export([init/1]). %% Helper macro for declaring children of supervisor -define(CHILD(I, Type), {I, {I, start_link, []}, permanent, 5000, Type, [I]}). %% =============================================================...
null
https://raw.githubusercontent.com/oker1/websocket-chat/8dfbd7357b2e37615d1d055f8cbb70777e5d82c8/src/cset_sup.erl
erlang
API Supervisor callbacks Helper macro for declaring children of supervisor =================================================================== API functions =================================================================== =================================================================== Supervisor callback...
-module(cset_sup). -behaviour(supervisor). -export([start_link/1]). -export([init/1]). -define(CHILD(I, Type), {I, {I, start_link, []}, permanent, 5000, Type, [I]}). start_link(InitParams) -> supervisor:start_link({local, ?MODULE}, ?MODULE, InitParams). init(InitParams) -> {ok, { {one_for_one, 5, 10}, ...
f4b9c0cc935e76f76c933300281e9b8795f79b6bf2f8f1e8894de0d4981db8e9
nuscr/nuscr
expr.mli
(** Expressions, used in [RefinementTypes] pragma *) open! Base open Names open Syntax.Exprs (** {1 Expressions} *) * An expression , used in RefinementType extension { v type t = | Var of VariableName.t ( * * A variable {v type t = | Var of VariableName.t (** A variable *) | Int of int...
null
https://raw.githubusercontent.com/nuscr/nuscr/c1bc08fa612b8b9905c50f46a04f043c069b8308/lib/mpst/expr.mli
ocaml
* Expressions, used in [RefinementTypes] pragma * {1 Expressions} * A variable * An integer constant * An boolean constant * A string literal * A binary operator * An unary operator * Get free variables in an expression * Perform substitutions on an expression Workaround for * An modified S-expression libr...
open! Base open Names open Syntax.Exprs * An expression , used in RefinementType extension { v type t = | Var of VariableName.t ( * * A variable {v type t = v} *) type t = expr [@@deriving sexp_of, eq, ord, show] val free_var : t -> Set.M(VariableName).t val substitute : from:VariableNam...
c919cc9b9265abf4af73b5c07eb1db69a72fa17139e20666460d95d9f6115c57
jdsandifer/AutoLISP
DRAW.lsp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;; ;;;; JD 's Drawing Functions ; ; ; ; ;;;; ;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |========== { JD : Arc } = = = = = = = = = = = = = = = = = = = = = =| ...
null
https://raw.githubusercontent.com/jdsandifer/AutoLISP/054c8400fae84c223c3113e049a1ab87d374ba37/DRAW.lsp
lisp
;;;; ; ; ; ;;;; | Draws and arc using supplied center, |; | start, and end points. Uses current |; | settings for everything else. |; |==========================================|; Check pts are valid. ...
(defun JD:Arc ( centerPt startPt endPt / ) (setq FUZZ_FACTOR 0.001) (command "._arc" "c" centerPt startPt endPt)) nil) (princ (strcat "\n:: DRAW.lsp loaded. | \\U+00A9 J.D. Sandifer " (menucmd "m=$(edtime,0,yyyy)") " ::")) (princ)
c41192a4aea1b080848728199c93003d3a6a88d5d15ae3dc543f5b2d456ed632
synrc/mad
mad_compile.erl
-module(mad_compile). -copyright('Sina Samavati'). -compile(export_all). compile(App,_Path) -> compile(App). compile(Params) -> SysConfig = try {ok,[S]} = file:consult("sys.config"), S catch _:_ -> [] end, BERT = proplists:get_value(bert,SysConfig,[]), N2O = proplists:get_value(n2o,SysConfig,[]), JS =...
null
https://raw.githubusercontent.com/synrc/mad/b8811aebd662c2a281c9f87642b5cab9321cf543/src/compile/mad_compile.erl
erlang
-module(mad_compile). -copyright('Sina Samavati'). -compile(export_all). compile(App,_Path) -> compile(App). compile(Params) -> SysConfig = try {ok,[S]} = file:consult("sys.config"), S catch _:_ -> [] end, BERT = proplists:get_value(bert,SysConfig,[]), N2O = proplists:get_value(n2o,SysConfig,[]), JS =...
cceeef91b30589385c893a7dfe9160b611948cb029b6db7a7937fbef3161bc58
gvannest/piscine_OCaml
btree.ml
type 'a tree = Nil | Node of 'a * 'a tree * 'a tree type intOption = Some of int | None let is_bst (tree:int tree) = let rec is_bst_left (tree_left:'a tree) maxValue (min:'a tree) (max:'a tree) = match tree_left with | Nil -> true | Node(v, l, r) when v > maxValue -> false | Node(v, l, r)...
null
https://raw.githubusercontent.com/gvannest/piscine_OCaml/2533c6152cfb46c637d48a6d0718f7c7262b3ba6/d03/ex03/btree.ml
ocaml
******************** To print tree ************** ************************* *************** *********************************** true true for is_balanced criteria, check followin sites: -balancing-binary-search-trees-101-fc4f51199e1d -to-determine-if-a-binary-tree-is-balanced/
type 'a tree = Nil | Node of 'a * 'a tree * 'a tree type intOption = Some of int | None let is_bst (tree:int tree) = let rec is_bst_left (tree_left:'a tree) maxValue (min:'a tree) (max:'a tree) = match tree_left with | Nil -> true | Node(v, l, r) when v > maxValue -> false | Node(v, l, r)...
2d8806bd7afffeaedff22bb00903c3c643979343566d29c9435fb8e9120120f5
Calsign/p5ml
runner.ml
(** [Runner] contains code for running sketches. *) open Config open Shape open Sketch open Renderer open Key (** Used internally by dynamic runner *) module Dynamic : sig val set_dynamic_handler : (unit -> unit) -> unit val apply_handler : unit -> unit val is_dynamic : unit -> bool val set_initialized : unit...
null
https://raw.githubusercontent.com/Calsign/p5ml/65a379a941a7c1c99e6d43fa4a171cd4d68d4e88/core/runner.ml
ocaml
* [Runner] contains code for running sketches. * Used internally by dynamic runner TODO: maybe don't need to ping inotify at 60fps do not try this at home kids
open Config open Shape open Sketch open Renderer open Key module Dynamic : sig val set_dynamic_handler : (unit -> unit) -> unit val apply_handler : unit -> unit val is_dynamic : unit -> bool val set_initialized : unit -> unit val is_initialized : unit -> bool val set_dynamic_hotswap : (Obj.t -> config -> ...
6a4945d3c195c818018551bd703629500610d85f94e33b1bfc4233b461efd5c7
dundalek/closh
jline_history.clj
(ns closh.zero.frontend.jline-history (:require [clojure.java.jdbc :as jdbc] [clojure.java.io :as io] [closh.zero.service.history-common :refer [table-history table-session get-db-filename check-history-line]] [closh.zero.platform.process :as process]) (:import [org.jline.reader ...
null
https://raw.githubusercontent.com/dundalek/closh/b1a7fd310b6511048fbacb8e496f574c8ccfa291/src/jvm/closh/zero/frontend/jline_history.clj
clojure
In case there is a need to debug this, run `git checkout c5f8e8f8b5440dcc0ebf91055cd2f1295e528629` to get the helper code which includes iterator implementations, in menory history or debugging proxy. TODO: maybe use gen-class Attaching reader is just to customize history behavior by injecting options. It is extra c...
(ns closh.zero.frontend.jline-history (:require [clojure.java.jdbc :as jdbc] [clojure.java.io :as io] [closh.zero.service.history-common :refer [table-history table-session get-db-filename check-history-line]] [closh.zero.platform.process :as process]) (:import [org.jline.reader ...
3c808163b2b175762aa433f1f8b1e5d2d620c68064cda03f26c35cce32997b23
lucasdicioccio/deptrack-project
Graph.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE DeriveFunctor #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE TemplateHaskell # # OPTIONS_GHC -fno - warn - orphans # module Devops.Graph ( WantedDirection (..) , Stability (..) , Op...
null
https://raw.githubusercontent.com/lucasdicioccio/deptrack-project/cd3d59a796815af8ae8db32c47b1e1cdc209ac71/deptrack-devops/src/Devops/Graph.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE DeriveFunctor # # LANGUAGE OverloadedStrings # # LANGUAGE ScopedTypeVariables # * Asynchronous Operations * Synchronous Operations | The intended direction of an operation. | NIH Stream representing an infinite non-empty lists. TODO: * carry some logical version/t...
# LANGUAGE DeriveGeneric # # LANGUAGE TemplateHaskell # # OPTIONS_GHC -fno - warn - orphans # module Devops.Graph ( WantedDirection (..) , Stability (..) , OpGraph , OpStatus , opCheckResult , OpStatusesMap , OpIntent , intentPreOp , intentDirection , Intents , emptyIntents , Broadcast , n...
8aeaf45a3da616ccb0244fdf57ce9ad07033f61e2952ea8056e3bc85b4dcd973
incoherentsoftware/defect-process
Sprites.hs
module Enemy.All.Flying.Sprites ( EnemySprites(..) , mkEnemySprites ) where import Control.Monad.IO.Class (MonadIO) import Enemy.Util import FileCache import Window.Graphics data EnemySprites = EnemySprites { _idle :: Sprite , _hurt :: Sprite , _fallHurt :: Sprite ,...
null
https://raw.githubusercontent.com/incoherentsoftware/defect-process/8797aad1d93bff5aadd7226c39a48f45cf76746e/src/Enemy/All/Flying/Sprites.hs
haskell
module Enemy.All.Flying.Sprites ( EnemySprites(..) , mkEnemySprites ) where import Control.Monad.IO.Class (MonadIO) import Enemy.Util import FileCache import Window.Graphics data EnemySprites = EnemySprites { _idle :: Sprite , _hurt :: Sprite , _fallHurt :: Sprite ,...
8d974eab7e7bbb181698836e84adf6c522c3b1e077445e95ec63fe79f3f004e2
ServiceNow/picard
Scholar.hs
{-# LANGUAGE OverloadedStrings #-} module Language.SQL.SpiderSQL.Scholar where import qualified Data.HashMap.Strict as HashMap import qualified Data.Text as Text (Text) import Language.SQL.SpiderSQL.TestItem (TestItem (..)) import Picard.Types (ColumnType (..), SQLSchema (..)) scholarSchema :: SQLSchema scholarSchem...
null
https://raw.githubusercontent.com/ServiceNow/picard/6a252386bed6d4233f0f13f4562d8ae8608e7445/picard/tests/Language/SQL/SpiderSQL/Scholar.hs
haskell
# LANGUAGE OverloadedStrings #
module Language.SQL.SpiderSQL.Scholar where import qualified Data.HashMap.Strict as HashMap import qualified Data.Text as Text (Text) import Language.SQL.SpiderSQL.TestItem (TestItem (..)) import Picard.Types (ColumnType (..), SQLSchema (..)) scholarSchema :: SQLSchema scholarSchema = let columnNames = HashMap.fro...
8a5ad19822cee783bf51f512d8b9a59983a7292a9ccbfcf991ca3db97f97c023
morgenthum/lambda-heights
Score.hs
# LANGUAGE DeriveGeneric # # LANGUAGE GeneralizedNewtypeDeriving # module LambdaHeights.Types.Score where import Data.Yaml import GHC.Generics newtype Score = Score Int deriving (Eq, Ord, Num, Generic) instance ToJSON Score instance FromJSON Score
null
https://raw.githubusercontent.com/morgenthum/lambda-heights/0a86ead23e8c223ba2672fa314666a06eb669fe2/lambda-heights/src/LambdaHeights/Types/Score.hs
haskell
# LANGUAGE DeriveGeneric # # LANGUAGE GeneralizedNewtypeDeriving # module LambdaHeights.Types.Score where import Data.Yaml import GHC.Generics newtype Score = Score Int deriving (Eq, Ord, Num, Generic) instance ToJSON Score instance FromJSON Score
0ee9d594abafc655404a4178685381831c2b1a357b54013eb9829f7d140cc3fa
mzp/coq-ide-for-ios
entries.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/mzp/coq-ide-for-ios/4cdb389bbecd7cdd114666a8450ecf5b5f0391d3/coqlib/kernel/entries.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** i i This module defines the entry t...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * i $ I d : entries.mli 13323 2...
5442a7aa67fb73a278db0eefefc5674903cb600fcee4babdd20f76ed28cc00a9
metaocaml/ber-metaocaml
edit_distance.ml
(* TEST include config include testing binary_modules = "config build_path_prefix_map misc identifiable numbers" * bytecode *) let edit_distance = Misc.edit_distance let show_cutoff n = if n = max_int then "max_int" else Printf.sprintf "%d" n ;; let test = let counter = ref 0 in fun a b cutoff expected -> ...
null
https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/testsuite/tests/utils/edit_distance.ml
ocaml
TEST include config include testing binary_modules = "config build_path_prefix_map misc identifiable numbers" * bytecode check for bugs where a small common suffix, or common prefix, is enough to make the distance goes down check that using "max_int" as cutoff works check empty strings
let edit_distance = Misc.edit_distance let show_cutoff n = if n = max_int then "max_int" else Printf.sprintf "%d" n ;; let test = let counter = ref 0 in fun a b cutoff expected -> let show_result = function | None -> "None" | Some d -> "Some " ^ Int.to_string d in incr counter; Printf.p...
3c8078052ef77ddb393a4f2293a56188153cce8a1ed6144578a3da1c10172415
maranget/hevea
lexstate.mli
(***********************************************************************) (* *) (* HEVEA *) (* *) , projet PARA , INR...
null
https://raw.githubusercontent.com/maranget/hevea/226eac8c506f82a600d453492fbc1b9784dd865f/lexstate.mli
ocaml
********************************************************************* HEVEA ...
, projet PARA , INRIA Rocquencourt Copyright 1998 Institut National de Recherche en Informatique et Automatique . Distributed only by permission . type action = | Subst of string list | Toks of string list | CamlCode of (Lexing.lexbuf -> unit) val pret...
290ae0168341cd3acefa3064e8f5ca1455b1babd45253c24e389bc49a3b5b394
metabase/metabase
task_history_test.clj
(ns metabase.models.task-history-test (:require [cheshire.core :as json] [clojure.test :refer :all] [java-time :as t] [metabase.analytics.snowplow-test :as snowplow-test] [metabase.api.common :refer [*current-user-id*]] [metabase.models :refer [Database TaskHistory]] [metabase.models.task-history...
null
https://raw.githubusercontent.com/metabase/metabase/7e3048bf73f6cb7527579446166d054292166163/test/metabase/models/task_history_test.clj
clojure
temp ones created, so delete any stale ones from previous tests And the stack trace is the longest part of the exception, so we need to make sure no stacktrace register a task history with exception sync task include the exception as {:throwable e} sync task include the exception as {:throwable e}
(ns metabase.models.task-history-test (:require [cheshire.core :as json] [clojure.test :refer :all] [java-time :as t] [metabase.analytics.snowplow-test :as snowplow-test] [metabase.api.common :refer [*current-user-id*]] [metabase.models :refer [Database TaskHistory]] [metabase.models.task-history...
b54c47321219d6602ef13663f9ad0844b8c80da752cf77176a4dab5ce6f0645a
philnguyen/soft-contract
snake.rkt
#lang racket (module image racket (require 2htdp/image) (define image/c (λ (x) (image? x))) (provide/contract [image/c any/c] [circle (real? string? string? . -> . image/c)] [empty-scene (real? real? . -> . image/c)] [place-image (image/c real? real? image/c . -> . image/c)]) #;(define (image?...
null
https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/benchmark-contract-overhead/snake.rkt
racket
(define (image? x) •)) (define (image? x) •)) snake-wall-collide? : Snake -> Boolean Is the snake colliding with any of the walls? head-collide? : Posn -> Boolean snake-self-collide? : Snake -> Boolean snake-wall-collide? : Snake -> Boolean Is the snake colliding with any of the walls? head-collide? : Posn -> Bo...
#lang racket (module image racket (require 2htdp/image) (define image/c (λ (x) (image? x))) (provide/contract [image/c any/c] [circle (real? string? string? . -> . image/c)] [empty-scene (real? real? . -> . image/c)] [place-image (image/c real? real? image/c . -> . image/c)]) (module unsafe-ima...
828d595462dc91ca9fbb0db14c05027d36fb92e2185e9240e143f51257f9c66d
ntrocado/cl-collider-examples
3-4.lisp
(play (impulse.ar (mouse-x.kr 1 100))) (play (dust.ar (mouse-x.kr 1 100))) (play (sin-osc.ar (* (stepper.ar (impulse.ar 10) 0 1 10 1) 100) 0 0.1)) (play (saw.ar (select.kr (stepper.kr (impulse.kr 4 0.1) 0 0 7 1) (midicps '(72 63 67 72 55 62 63 60))) 0.1)) (play (saw.ar (select.kr (...
null
https://raw.githubusercontent.com/ntrocado/cl-collider-examples/67eec426ea45f5423eefd9391d9a7e8ba41f8b51/nick-collins-tutorial/3-4.lisp
lisp
...
(play (impulse.ar (mouse-x.kr 1 100))) (play (dust.ar (mouse-x.kr 1 100))) (play (sin-osc.ar (* (stepper.ar (impulse.ar 10) 0 1 10 1) 100) 0 0.1)) (play (saw.ar (select.kr (stepper.kr (impulse.kr 4 0.1) 0 0 7 1) (midicps '(72 63 67 72 55 62 63 60))) 0.1)) (play (saw.ar (select.kr (...
ea27ba9d0fd33890c80420036affe4541e50a98e7f588cf9f8f27c141cf7f975
spechub/Hets
Sublogic.hs
{-# LANGUAGE DeriveDataTypeable #-} | Module : ./OWL2 / Sublogic.hs Copyright : ( c ) , : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : portable Complexity analysis of OWL2 Module : ./OWL2/Sublogic.hs Copyright : (...
null
https://raw.githubusercontent.com/spechub/Hets/3ff2da4699091edeb9db43118d1984c1a6b16d61/OWL2/Sublogic.hs
haskell
# LANGUAGE DeriveDataTypeable # ^ Enumerated classes can be used ^ Inverse roles can be used ^ Roles can be transitive ^ Role hierachy (subproperties) can be used ^ Complex role inclusions can be used ^ Additional features can be used ^ Set of datatypes that can be used ^ OWL2 DL restriction can be ignored | s...
| Module : ./OWL2 / Sublogic.hs Copyright : ( c ) , : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : portable Complexity analysis of OWL2 Module : ./OWL2/Sublogic.hs Copyright : (c) Dominik Luecke, Felix Gabriel Man...
11bd8abefbbeff85cec504d631b836edaed26d42b1e8343450fb9fdaae0077ac
tschady/advent-of-code
d17_test.clj
(ns aoc.2015.d17-test (:require [aoc.2015.d17 :as sut] [clojure.test :refer :all])) (def denoms [20 15 10 5 5]) (deftest part-1-example (is (= 4 (sut/part-1 25 denoms)))) (deftest part-2-example (is (= 3 (sut/part-2 25 denoms)))) (deftest challenge (is (= 1304 (sut/part-1 150 sut/input))) (is ...
null
https://raw.githubusercontent.com/tschady/advent-of-code/1e4a95ef580c3bf635837eff52aa998b0acfc666/test/aoc/2015/d17_test.clj
clojure
(ns aoc.2015.d17-test (:require [aoc.2015.d17 :as sut] [clojure.test :refer :all])) (def denoms [20 15 10 5 5]) (deftest part-1-example (is (= 4 (sut/part-1 25 denoms)))) (deftest part-2-example (is (= 3 (sut/part-2 25 denoms)))) (deftest challenge (is (= 1304 (sut/part-1 150 sut/input))) (is ...
991e5636e25c1f435e0567b8c47aacf188d97c75476aab3aa77d36b9bf1ac5d1
WorksHub/client
forms.cljc
(ns wh.interop.forms (:require [clojure.string :as str] [wh.interop :refer [->jsfn unparse-arg]] [wh.re-frame.events :refer [dispatch]])) (defn on-change-fn [jsf] #?(:clj {:onchange jsf} :cljs {:on-change jsf})) (defn on-input-fn [jsf] #?(:clj {:oninput jsf} :cljs {:on-input jsf})) (d...
null
https://raw.githubusercontent.com/WorksHub/client/77e4212a69dad049a9e784143915058acd918982/common/src/wh/interop/forms.cljc
clojure
} ") } ")
(ns wh.interop.forms (:require [clojure.string :as str] [wh.interop :refer [->jsfn unparse-arg]] [wh.re-frame.events :refer [dispatch]])) (defn on-change-fn [jsf] #?(:clj {:onchange jsf} :cljs {:on-change jsf})) (defn on-input-fn [jsf] #?(:clj {:oninput jsf} :cljs {:on-input jsf})) (d...
b9a5eb7ae15ba3a40deafcf3bc431063aa6f88886f4a1d65c110ffcf9d008dca
marcoonroad/ocaml-cuid
cuid_jv.mli
include Cuid_core.S
null
https://raw.githubusercontent.com/marcoonroad/ocaml-cuid/478e927c7ecdc688cd0b216dea3b4574323f24e5/lib/cuid-jv/cuid_jv.mli
ocaml
include Cuid_core.S
c8b9c9f6a445263accf07302c0a7f04764742837041c3312e124d0d7d78f848e
jrm-code-project/LISP-Machine
nilcompat.lisp
-*- Mode : LISP ; Package : STEVE - SI ; ; : CL -*- in doing compat package for first - time ports it is ;; important to not directly translate %mumble things ;; into super efficient versions until the port is complete. ;; %versions used here only if they are also known to be safe. ;; first thing to fix (defsubs...
null
https://raw.githubusercontent.com/jrm-code-project/LISP-Machine/0a448d27f40761fafabe5775ffc550637be537b2/lambda/gjcx/steve/nilcompat.lisp
lisp
Package : STEVE - SI ; ; : CL -*- important to not directly translate %mumble things into super efficient versions until the port is complete. %versions used here only if they are also known to be safe. first thing to fix which didnt have correct order of compilation, so i stuck 'em here instead Some faster p...
in doing compat package for first - time ports it is (defsubst 0p (x) (zerop x)) (defsubst -p (x) (minusp x)) (defsubst +p (x) (plusp x)) (defsubst <& (&rest args) (apply #'< args)) (defsubst >& (&rest args) (apply #'> args)) (defsubst =& (&rest args) (apply #'= args)) (defsubst >=& (&rest args)...
eba9016dab9f5077f568e38697d38e4ad0ee8f600307c6512bba1d3e55d990c7
stedolan/ppx_stage
quasiquote.ml
open Migrate_parsetree open Ast_408 open Asttypes open Parsetree open Ast_mapper open Ast_helper let mk_ident ?(loc=Location.none) name = let rec go = function | [] -> failwith "error: mk_ident []" | [x] -> Longident.Lident x | field :: rest -> Longident.Ldot(go rest, field) in { txt = go (List.rev n...
null
https://raw.githubusercontent.com/stedolan/ppx_stage/0b8494d31f8913945e5f69e61b443457fe48028e/ppx/quasiquote.ml
ocaml
FIXME: context_vars assumes same names in staged and top program It is safe to compute context variables in the original environment, since by definition they do not depend on recent binders already in environment already in environment context variables are already available FIXME: suppo...
open Migrate_parsetree open Ast_408 open Asttypes open Parsetree open Ast_mapper open Ast_helper let mk_ident ?(loc=Location.none) name = let rec go = function | [] -> failwith "error: mk_ident []" | [x] -> Longident.Lident x | field :: rest -> Longident.Ldot(go rest, field) in { txt = go (List.rev n...
d023d971992ab7540c6c5a6eb04f13156b1f6e552ddbfb3c75fb3f9971a610cf
rossberg/1ml
erase.mli
* ( c ) 2014 * (c) 2014 Andreas Rossberg *) val erase_kind : Types.kind -> Fomega.kind val erase_typ : Types.typ -> Fomega.typ val erase_extyp : Types.extyp -> Fomega.typ val erase_bind : (Types.var * Types.kind) list -> (Fomega.var * Fomega.kind) list val erase_env : Env.env -> Fomega.env
null
https://raw.githubusercontent.com/rossberg/1ml/028859a6a687d874981f440bdc5be5f8daa4a777/erase.mli
ocaml
* ( c ) 2014 * (c) 2014 Andreas Rossberg *) val erase_kind : Types.kind -> Fomega.kind val erase_typ : Types.typ -> Fomega.typ val erase_extyp : Types.extyp -> Fomega.typ val erase_bind : (Types.var * Types.kind) list -> (Fomega.var * Fomega.kind) list val erase_env : Env.env -> Fomega.env
e54356b5509a6e8372a051236e95e953b947170b83eff484f5f56ed686292523
HaskellEmbedded/data-stm32
EXTIF1.hs
# LANGUAGE DataKinds # module {{ modns }} ({{#instances}}{{ name }}{{/instances}}) where import Ivory.BSP.STM32{{ dev }}.MemoryMap import Ivory.BSP.STM32{{ dev }}.AFIO import qualified Ivory.BSP.STM32{{ dev }}.Interrupt as {{ dev }} import Ivory.BSP.STM32.Peripheral.EXTI {{#instances}} {{ name }} :: EXTI {{ name }} ...
null
https://raw.githubusercontent.com/HaskellEmbedded/data-stm32/204aff53eaae422d30516039719a6ec7522a6ab7/templates/STM32DEV/EXTIF1.hs
haskell
# LANGUAGE DataKinds # module {{ modns }} ({{#instances}}{{ name }}{{/instances}}) where import Ivory.BSP.STM32{{ dev }}.MemoryMap import Ivory.BSP.STM32{{ dev }}.AFIO import qualified Ivory.BSP.STM32{{ dev }}.Interrupt as {{ dev }} import Ivory.BSP.STM32.Peripheral.EXTI {{#instances}} {{ name }} :: EXTI {{ name }} ...
1352caa8cad64069c7551a8be3e43fa235875dcd782e0d7003ce6c558abee273
exoscale/clojure-kubernetes-client
v1alpha1_role_list.clj
(ns clojure-kubernetes-client.specs.v1alpha1-role-list (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1alpha1-role :refer :all] [clojure-kubernetes-client.specs.v1-list-meta :refer :all] ) (:import (java.io File)))...
null
https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/v1alpha1_role_list.clj
clojure
(ns clojure-kubernetes-client.specs.v1alpha1-role-list (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1alpha1-role :refer :all] [clojure-kubernetes-client.specs.v1-list-meta :refer :all] ) (:import (java.io File)))...
b578e4944ae4397f88a813f2770f57748ff1af9e7082b35ac4a31cc65ddb5849
ocaml/ocaml
pingpong.ml
(* TEST *) let r = ref (Some 0) let () = Gc.minor () let rec even lim put = match !r with | Some n when n = lim -> () | (Some n) when n mod 2 == 0 -> let next = Some (n + 1) in put next; even lim put | _ -> let _ = [!r] in even lim put let rec odd lim put = match !r with | Some n when n ...
null
https://raw.githubusercontent.com/ocaml/ocaml/949e2626c22b5fe8159cb29d47207d5621eabf90/testsuite/tests/parallel/pingpong.ml
ocaml
TEST
let r = ref (Some 0) let () = Gc.minor () let rec even lim put = match !r with | Some n when n = lim -> () | (Some n) when n mod 2 == 0 -> let next = Some (n + 1) in put next; even lim put | _ -> let _ = [!r] in even lim put let rec odd lim put = match !r with | Some n when n = lim -> ()...
6e6e7c0f3e1d45c98b436fda8d305fbe0ecfaec13947451747a521a4495dfaf2
startalkIM/ejabberd
acl.erl
%%%---------------------------------------------------------------------- %%% File : acl.erl Author : < > %%% Purpose : ACL support Created : 18 Jan 2003 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2016 ProcessOne %%% %%% This program is free software; you can redistribute it and/or modify it...
null
https://raw.githubusercontent.com/startalkIM/ejabberd/718d86cd2f5681099fad14dab5f2541ddc612c8b/src/acl.erl
erlang
---------------------------------------------------------------------- File : acl.erl Purpose : ACL support This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;...
Author : < > Created : 18 Jan 2003 by < > ejabberd , Copyright ( C ) 2002 - 2016 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a copy of the GNU General Public License along ...
dbaa60b1e7f60ac64be76436a9ee2ba5ab31beb0fb5129c19262dddf6cc6c1b3
eglaysher/rldev
cp932.ml
: CP932 conversion tables for use in binary distributions Copyright ( C ) 2006 Haeleth This program is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or...
null
https://raw.githubusercontent.com/eglaysher/rldev/e59103b165e1c20bd940942405b2eee767933c96/src/common/cp932.ml
ocaml
Load data structures generated by mkdatafiles
: CP932 conversion tables for use in binary distributions Copyright ( C ) 2006 Haeleth This program is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or...
37ad044ed047cbe2a0ad0f96c2c9baeb6e608dc02af95bcd1a547836afe3dd61
ocaml-flambda/ocaml-jst
load_path.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-flambda/ocaml-jst/5bf2820278c58f6715dcfaf6fa61e09a9b0d8db3/utils/load_path.mli
ocaml
************************************************************************ OCaml ...
, Jane Street Europe Copyright 2018 Jane Street Group LLC the GNU Lesser General Public License version 2.1 , with the val add_dir : string -> unit val remove_dir : string -> unit val reset : unit -> unit val init : string ...
c357c4b0c726128427ec508b55f207cf9ace2cc49502fec4c3b43a10e19869a6
dkataskin/erlazure
test_utils.erl
Copyright ( c ) 2013 - 2015 , %% All rights reserved. %% %% Redistribution and use in source and binary forms, with or without %% modification, are permitted provided that the following conditions are met: %% %% * Redistributions of source code must retain the above copyright notice, %% this list of conditions and ...
null
https://raw.githubusercontent.com/dkataskin/erlazure/066510454597b72f283748b2e5be3d5eb8d328b6/test/test_utils.erl
erlang
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in ...
Copyright ( c ) 2013 - 2015 , THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT OWNER OR LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLA...
da10805d128e5659bac7d0162e0a31379340a6c76ff403f1d66fb8a4d0853a92
ocaml-gospel/gospel
tuple.mli
type t = bool * int @ function f ( a : t ) : bool = match a with | true , 0i - > true | false , x - > false match a with | true, 0i -> true | false, x -> false *) { gospel_expected| [ 125 ] File " tuple.mli " , line 4 , characters 6 - 69 : 4 | ...... match...
null
https://raw.githubusercontent.com/ocaml-gospel/gospel/79841c510baeb396d9a695ae33b290899188380b/test/patterns/negative/tuple.mli
ocaml
type t = bool * int @ function f ( a : t ) : bool = match a with | true , 0i - > true | false , x - > false match a with | true, 0i -> true | false, x -> false *) { gospel_expected| [ 125 ] File " tuple.mli " , line 4 , characters 6 - 69 : 4 | ...... match...