_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
76d67fbddc91f32f6623e5e832ebb710c700dae8aa975b7375fbaca18a84c680
skanev/playground
25-tests.scm
(require rackunit rackunit/text-ui) (load-relative "../../support/eopl.scm") (load-relative "../25.scm") (load-relative "helpers/proc.scm") (define eopl-3.25-tests (test-suite "Tests for EOPL exercise 3.25" (check-equal? (run the-example-program) 12) )) (exit (run-tests eopl-3.25-tests))
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/eopl/03/tests/25-tests.scm
scheme
(require rackunit rackunit/text-ui) (load-relative "../../support/eopl.scm") (load-relative "../25.scm") (load-relative "helpers/proc.scm") (define eopl-3.25-tests (test-suite "Tests for EOPL exercise 3.25" (check-equal? (run the-example-program) 12) )) (exit (run-tests eopl-3.25-tests))
8acfc1596719391fbf2c4b76c8a90d24e78fa6643355dafa3ea9461295ecc9fd
magthe/sandi
Base16Bench.hs
module Codec.Binary.Base16Bench where import Criterion.Main (bench, nf) import Codec.Binary.Base16 mkBenchs data1M data10M = let enc1M = encode data1M enc10M = encode data10M in [ bench "enc base 16 1M" $ nf encode data1M , bench "dec base 16 1M" $ nf decode enc1M , bench ...
null
https://raw.githubusercontent.com/magthe/sandi/a8ef86ec3798a640d86342421a7fa7fa97bdedd4/sandi/bench-src/Codec/Binary/Base16Bench.hs
haskell
module Codec.Binary.Base16Bench where import Criterion.Main (bench, nf) import Codec.Binary.Base16 mkBenchs data1M data10M = let enc1M = encode data1M enc10M = encode data10M in [ bench "enc base 16 1M" $ nf encode data1M , bench "dec base 16 1M" $ nf decode enc1M , bench ...
9198558be8c16707bc45f92ded835e35bf74b1d19f7c66002ec4a91193cce100
soulomoon/SICP
Exercise 2.80.scm
Exercise 2.79 : Define a generic equality predicate equ ? that tests the equality of two numbers , and install it in the generic arithmetic package . This operation should work for ordinary numbers , rational numbers , and complex numbers . (define (make-table) (let ((local-table (list '*table*))) (define (lo...
null
https://raw.githubusercontent.com/soulomoon/SICP/1c6cbf5ecf6397eaeb990738a938d48c193af1bb/Chapter2/Exercise%202.80.scm
scheme
internal procedures interface to rest of the system internal procedures interface to the rest of the system internal procedures interface to the rest of the system imported procedures from rectangular and polar packages internal procedures interface to rest of the system memory limit : 128 MB . 'scheme-num...
Exercise 2.79 : Define a generic equality predicate equ ? that tests the equality of two numbers , and install it in the generic arithmetic package . This operation should work for ordinary numbers , rational numbers , and complex numbers . (define (make-table) (let ((local-table (list '*table*))) (define (lo...
b95eb6696b4686198f29f3d0151aa117b6b46246f000718b7ac9dbd87177bf3d
haskell/text-icu
Types.hs
-- | Module : Data . Text . Copyright : ( c ) 2010 -- -- License : BSD-style -- Maintainer : -- Stability : experimental Portability : GHC -- Types for use when manipulating Unicode text , using the bindings to the International Components for Unicode ( ICU ) libraries . module Data.Text.I...
null
https://raw.githubusercontent.com/haskell/text-icu/5ab84d8106c06fbabb87a0f173faa6049775a148/Data/Text/ICU/Types.hs
haskell
| License : BSD-style Maintainer : Stability : experimental * Widely used types
Module : Data . Text . Copyright : ( c ) 2010 Portability : GHC Types for use when manipulating Unicode text , using the bindings to the International Components for Unicode ( ICU ) libraries . module Data.Text.ICU.Types ( LocaleName(..) , ParseError(errError, errLine, errOffset) ...
69999e5839275eda8802f0500251920be9d6be4fea0078cc5b42b6b6124388ad
tonyg/kali-scheme
ilength.scm
Copyright ( c ) 1993 , 1994 by and . Copyright ( c ) 1996 by NEC Research Institute , Inc. See file COPYING . Integer - length , a la Common Lisp , written in portable Scheme . (define-syntax cons-stream (syntax-rules () ((cons-stream head tail) (cons head (delay tail))))) (define head car) ...
null
https://raw.githubusercontent.com/tonyg/kali-scheme/79bf76b4964729b63fce99c4d2149b32cb067ac0/scheme/misc/ilength.scm
scheme
Copyright ( c ) 1993 , 1994 by and . Copyright ( c ) 1996 by NEC Research Institute , Inc. See file COPYING . Integer - length , a la Common Lisp , written in portable Scheme . (define-syntax cons-stream (syntax-rules () ((cons-stream head tail) (cons head (delay tail))))) (define head car) ...
91fea0f8f594ce84393420a7751975f39f1546b8e62794cd78d562155c4fffe6
yi-editor/yi-rope
Rope.hs
{-# language CPP #-} # language BangPatterns # {-# language DeriveDataTypeable #-} # language LambdaCase # # language MultiParamTypeClasses # {-# language OverloadedStrings #-} {-# language ScopedTypeVariables #-} # language ViewPatterns # {-# options_haddock show-extensions #-} -- | -- Module : Yi.Rope -- Licen...
null
https://raw.githubusercontent.com/yi-editor/yi-rope/f3b925e2f4c55092957cecc3c037f36baff582bb/src/Yi/Rope.hs
haskell
# language CPP # # language DeriveDataTypeable # # language OverloadedStrings # # language ScopedTypeVariables # # options_haddock show-extensions # | Module : Yi.Rope License : GPL-2 Maintainer : Stability : experimental Portability : portable specific implementation uses a fingertree over Te...
# language BangPatterns # # language LambdaCase # # language MultiParamTypeClasses # # language ViewPatterns # This module defines a @rope@ data structure for use in . This book - keeping . We do n't lose out on not using ByteString directly module Yi.Rope ( Yi.Rope.YiString, * Conversions to Yi.Rope.f...
c645156eaa822a8223ddfdf4cc1caea87b76ce975753926d2f16ea828c1dbd98
mitchellwrosen/hspolls
GetPoll.hs
module Hp.ResponseBody.GetPoll ( GetPollResponseBody(..) , makeGetPollResponseBody ) where import Hp.Entity.Poll (Poll) import Hp.PollFormElement (PollFormElement) import Hp.PollQuestionAnswer (PollQuestionAnswer) import Data.Aeson (ToJSON) import Data.Time (DiffTime, UTCTime) data GetPollResponseB...
null
https://raw.githubusercontent.com/mitchellwrosen/hspolls/22efea743194ade091f7daa112a2d9ce985a4500/src/Hp/ResponseBody/GetPoll.hs
haskell
module Hp.ResponseBody.GetPoll ( GetPollResponseBody(..) , makeGetPollResponseBody ) where import Hp.Entity.Poll (Poll) import Hp.PollFormElement (PollFormElement) import Hp.PollQuestionAnswer (PollQuestionAnswer) import Data.Aeson (ToJSON) import Data.Time (DiffTime, UTCTime) data GetPollResponseB...
f21230ef8f5447d13e21eab931e0232843506df47a47ba6ec1112b33eb044aa5
scorphus/advent-of-code-2022
main.rkt
#lang racket/base (module+ test (require rackunit)) ;; Notice ;; To install (from within the package directory): $ raco pkg install ;; To install (once uploaded to pkgs.racket-lang.org): $ raco pkg install < < name > > ;; To uninstall: $ raco pkg remove < < name > > ;; To view documentation: ;; $ raco...
null
https://raw.githubusercontent.com/scorphus/advent-of-code-2022/07e5385116f8c889b44122f5ca2c6dffac12c037/main.rkt
racket
Notice To install (from within the package directory): To install (once uploaded to pkgs.racket-lang.org): To uninstall: To view documentation: $ raco docs <<name>> For your convenience, we have included LICENSE-MIT and LICENSE-APACHE files. If you would prefer to use a different license, replace those files...
#lang racket/base (module+ test (require rackunit)) $ raco pkg install $ raco pkg install < < name > > $ raco pkg remove < < name > > -lang.org/style/index.html (module+ test Any code in this ` test ` submodule runs when this file is run using (check-equal? (+ 2 2) 4)) (module+ main this fi...
580c12c379f06b66c94d65b64e87d4ffb7b75ec57b9c0ef1af71a2fe92b05ca8
picrin-scheme/picrin
roundtrip.scm
(import (scheme base) (srfi 27) (scheme inexact) (picrin test)) (test-begin) (define (rountrip-ok number) (let ((radix 10)) (eqv? number (string->number (number->string number radix) radix)))) (test #t (rountrip-ok -nan.0)) (test #t (rountrip-ok +nan.0)) (test #t (rountrip-ok -inf.0)...
null
https://raw.githubusercontent.com/picrin-scheme/picrin/2af16bc88fbfca2efafd27ca9e5006d73c06f6fb/contrib/10.roundtrip/t/roundtrip.scm
scheme
(import (scheme base) (srfi 27) (scheme inexact) (picrin test)) (test-begin) (define (rountrip-ok number) (let ((radix 10)) (eqv? number (string->number (number->string number radix) radix)))) (test #t (rountrip-ok -nan.0)) (test #t (rountrip-ok +nan.0)) (test #t (rountrip-ok -inf.0)...
daba47ba93977107055c7b918ff050870278774114a451d67aababe1ff0f7c00
boolexpr/boolexpr
BoolExpr.hs
# LANGUAGE GeneralizedNewtypeDeriving , TypeFamilies # -------------------------------------------------------------------- -- | -- Module : Data.BoolExpr Copyright : ( c ) 2008,2009 -- License : BSD3 -- Maintainer : < > -- Stability : provisional -- Portability: -- -- Boolean expressions and various repr...
null
https://raw.githubusercontent.com/boolexpr/boolexpr/023185a3a2c8b90ef156c2392dfd554447fbeee4/Data/BoolExpr.hs
haskell
------------------------------------------------------------------ | Module : Data.BoolExpr License : BSD3 Stability : provisional Portability: Boolean expressions and various representations. ------------------------------------------------------------------ * A boolean class * Boolean trees * Boolean ...
# LANGUAGE GeneralizedNewtypeDeriving , TypeFamilies # Copyright : ( c ) 2008,2009 Maintainer : < > module Data.BoolExpr Boolean(..) * Generic functions derived from Boolean ,bAnd ,bAll ,bOr ,bAny ,BoolExpr(..) ,reduceBoolExpr ,evalBoolExpr ,Eval(..) ,runEvalId ,Signed(..) ,negateSi...
b4758a001bb6c440be4963512c36f7ca7c62afdec5476b9a370e753460f08f05
HealthSamurai/unit-map
reader.cljc
(ns unit-map.impl.reader (:require [unit-map.impl.system :as system])) (defn process-urange [pprev prev next-useq nnext] {:pre [(and (not-every? nil? [pprev nnext]) (every? some? [prev next-useq]))]} (let [start (or pprev prev) end (or nnext next-useq) step (if (nil? pprev) ...
null
https://raw.githubusercontent.com/HealthSamurai/unit-map/eb90c2c427c2fb0f48cb54e58d1565f3255ec16d/src/unit_map/impl/reader.cljc
clojure
(ns unit-map.impl.reader (:require [unit-map.impl.system :as system])) (defn process-urange [pprev prev next-useq nnext] {:pre [(and (not-every? nil? [pprev nnext]) (every? some? [prev next-useq]))]} (let [start (or pprev prev) end (or nnext next-useq) step (if (nil? pprev) ...
63bd44691e88ba9a273dab4ded78b6b3c51a998de55119da59ee3264475458ed
mariari/Misc-Lisp-Scripts
arrow.lisp
;; (load "./data-structures/tuple.lisp") (eval-when (:compile-toplevel :load-toplevel :execute) (use-package 'tuple)) (defun **** (&rest fns) (flet ((func (f g) (lambda (x) (tup (funcall f (fst x)) (funcall g (snd x)))))) (reduce #'func fns :from-end t))) (defun &&& ...
null
https://raw.githubusercontent.com/mariari/Misc-Lisp-Scripts/acecadc75fcbe15e6b97e084d179aacdbbde06a8/data-structures/arrow.lisp
lisp
(load "./data-structures/tuple.lisp")
(eval-when (:compile-toplevel :load-toplevel :execute) (use-package 'tuple)) (defun **** (&rest fns) (flet ((func (f g) (lambda (x) (tup (funcall f (fst x)) (funcall g (snd x)))))) (reduce #'func fns :from-end t))) (defun &&& (&rest fns) (flet ((func (f g) ...
f69f0a1f7e332059514f118fdfd30a8df3a160671091f1282d3c64ab9fdc7681
thoughtstem/morugamu
emoji-numb.rkt
#lang racket (provide theme) (require 2htdp/image) (define dot (bitmap "./emojis/dot.png")) (define 1-pic dot) (define 2-pic (beside dot dot)) (define 3-pic (above dot (beside dot dot))) (define 4-pic (above (beside dot dot) (beside dot dot))) (define 5-pic (above (beside dot dot) dot ...
null
https://raw.githubusercontent.com/thoughtstem/morugamu/a9095ddebe364adffb036c3faed95c873a4d9f3c/themes/emoji-numb.rkt
racket
#lang racket (provide theme) (require 2htdp/image) (define dot (bitmap "./emojis/dot.png")) (define 1-pic dot) (define 2-pic (beside dot dot)) (define 3-pic (above dot (beside dot dot))) (define 4-pic (above (beside dot dot) (beside dot dot))) (define 5-pic (above (beside dot dot) dot ...
7dd479d7cd2fbe5dab892d444840139e847f7f6b61af10685a4410cfec6cfe05
ghc/testsuite
T4917.hs
# LANGUAGE GADTs , ScopedTypeVariables , EmptyDataDecls , RankNTypes # module T4917 where only works on ghc6 but not on ghc7 type Const a b = a newtype Fix f n = In { out :: f (Fix f) n } mcata :: forall f a b . (forall x c . (forall d . x d -> Const b d) -> f x c -> Const b c) -> Fix f a -> Const ...
null
https://raw.githubusercontent.com/ghc/testsuite/998a816ae89c4fd573f4abd7c6abb346cf7ee9af/tests/typecheck/should_compile/T4917.hs
haskell
x=(Fix f), c=a f=f, a=d, b=b0 Const b d ~ Const b0 d Expected type of f :: forall x c. (forall d. x d -> Const b0 d) -> f x c -> Const b0 c
# LANGUAGE GADTs , ScopedTypeVariables , EmptyDataDecls , RankNTypes # module T4917 where only works on ghc6 but not on ghc7 type Const a b = a newtype Fix f n = In { out :: f (Fix f) n } mcata :: forall f a b . (forall x c . (forall d . x d -> Const b d) -> f x c -> Const b c) -> Fix f a -> Const ...
0797ab33e5a6b01dbdea03c4996d6942a81d45edf2822958295c89942e69fbf4
gndl/graffophone
gCurve.ml
* Copyright ( C ) 2015 Ga � * * All rights reserved . This file is distributed under the terms of the * GNU General Public License version 3.0 . * * This program is distributed in the hope that it will be useful , * but WITHOUT ANY WARRANTY ; without even the implied warranty of * MERCHAN...
null
https://raw.githubusercontent.com/gndl/graffophone/71a12fcf8e799bb8ebfc37141b300ecbc9475c43/src/gCurve.ml
ocaml
INCHES CENTIMETERS ~max_size:float observer methods
* Copyright ( C ) 2015 Ga � * * All rights reserved . This file is distributed under the terms of the * GNU General Public License version 3.0 . * * This program is distributed in the hope that it will be useful , * but WITHOUT ANY WARRANTY ; without even the implied warranty of * MERCHAN...
bbcff9faa18bfbdf39c253ff28deed8ff7262d3cc2fc5838553987e1c8215508
skynet-gh/skylobby
spads.clj
(ns skylobby.spads (:require [clojure.string :as string])) (set! *warn-on-reflection* true) (def spads-message-types [ [:vote-progress #"Vote in progress: \"(.*)\" \[y:(.*)/(.*), n:(\d+)/([^,]+)(.*)\] \((.*) remaining\)"] [:greeting #"Hi (.*)! Current battle type is (.*)\."] [:called-vote #"\* (.*)...
null
https://raw.githubusercontent.com/skynet-gh/skylobby/f5f5df8ab24dd324c488e8de1e41a04154c6a661/graal/clj/skylobby/spads.clj
clojure
(ns skylobby.spads (:require [clojure.string :as string])) (set! *warn-on-reflection* true) (def spads-message-types [ [:vote-progress #"Vote in progress: \"(.*)\" \[y:(.*)/(.*), n:(\d+)/([^,]+)(.*)\] \((.*) remaining\)"] [:greeting #"Hi (.*)! Current battle type is (.*)\."] [:called-vote #"\* (.*)...
66e90e79253301d578c553de3380c8f3651bc6580fef3ae5619f1d046d91d43f
Decentralized-Pictures/T4L3NT
gas_monad.mli
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2021 Nomadic Labs < > (* ...
null
https://raw.githubusercontent.com/Decentralized-Pictures/T4L3NT/6d4d3edb2d73575384282ad5a633518cba3d29e3/src/proto_012_Psithaca/lib_protocol/gas_monad.mli
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2021 Nomadic Labs < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN AN...
b224696d18bdfbb2be117eb84f79212fba0500409fb32d31121eaf9fdcfb4223
helium/helium-packet-router
hpr_test_packet_router_service.erl
-module(hpr_test_packet_router_service). -behaviour(helium_packet_router_packet_bhvr). -export([ init/2, route/2, handle_info/2 ]). -spec init(atom(), StreamState :: grpcbox_stream:t()) -> grpcbox_stream:t(). init(RPC, StreamState) -> ct : print("TEST : initializing stream for ~p : ~p " , [ RPC , Strea...
null
https://raw.githubusercontent.com/helium/helium-packet-router/d6458e1a7e6460d4e95ad3a08b3c67030702f360/test/hpr_test_packet_router_service.erl
erlang
ct:print("TEST: route: ~p", [Env]), ct:print("TEST: handle_info: ~p", [Msg]),
-module(hpr_test_packet_router_service). -behaviour(helium_packet_router_packet_bhvr). -export([ init/2, route/2, handle_info/2 ]). -spec init(atom(), StreamState :: grpcbox_stream:t()) -> grpcbox_stream:t(). init(RPC, StreamState) -> ct : print("TEST : initializing stream for ~p : ~p " , [ RPC , Strea...
8242618cb656a0a47f36719a0165422e0375cab543ccaea832f5f4712d96a807
mirage/xentropyd
s.ml
* Copyright ( c ) 2014 Citrix Systems Inc * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS ...
null
https://raw.githubusercontent.com/mirage/xentropyd/4705bb2f6c10ae84f842a5c39cd8a513ea8c761a/console/s.ml
ocaml
* Copyright ( c ) 2014 Citrix Systems Inc * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS ...
7b6e685434a50d2f397485cd251b897d96f460bbe0fbf210c03e2f148ff38d10
manuel-serrano/bigloo
crc16.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / runtime / Unsafe / crc16.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation ...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/eb650ed4429155f795a32465e009706bbf1b8d74/runtime/Unsafe/crc16.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * CRC16 encoding */ * -----------------------...
* serrano / prgm / project / bigloo / runtime / Unsafe / crc16.scm * / * Author : * / * Creation : Mon Nov 26 09:34:19 2007 * / * Last change : Tue Apr 17 07:52:39 2012 ( serrano ) * / * Copy...
9fde5c81b84efbe51e61aab76abb64c1af4bf8b5e8960450876b036e74bbe5de
fp-works/2019-winter-Haskell-school
LogAnalysis.hs
# OPTIONS_GHC -Wall # # LANGUAGE ViewPatterns # module LogAnalysis where import Log import Text.Read (readMaybe) Exercise 1 -- parseMessage : : String - > LogMessage -- parseMessage logStr = -- case words logStr of -- ("I":ts:rest) -> case ts : : Maybe Int of -- Just i ...
null
https://raw.githubusercontent.com/fp-works/2019-winter-Haskell-school/823b67f019b9e7bc0d3be36711c0cc7da4eba7d2/cis194/week2/tien/homework2/src/LogAnalysis.hs
haskell
parseMessage logStr = case words logStr of ("I":ts:rest) -> Just i -> LogMessage Info i (unwords rest) _ -> Unknown logStr ("W":ts:rest) -> Just i -> LogMessage Warning i (unwords rest) _ -> Unknown logStr ("E":lv:ts:rest) -> _ ->...
# OPTIONS_GHC -Wall # # LANGUAGE ViewPatterns # module LogAnalysis where import Log import Text.Read (readMaybe) parseMessage : : String - > LogMessage case ts : : Maybe Int of case ts : : Maybe Int of case ( lv : : Maybe Int , readMaybe ts : : Maybe Int ) of ...
70fd352780f7804aa8224c44e7a238e8f842c20b0344ad22744225c2545f5976
hoelzl/Snark
constraint-purify.lisp
;;; -*- Mode: Lisp; Syntax: Common-Lisp; Package: snark -*- ;;; File: constraint-purify.lisp 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 ;;; / ;;; Sof...
null
https://raw.githubusercontent.com/hoelzl/Snark/06f86a31f476b2e4c28519765ab1e1519a4cc932/src/constraint-purify.lisp
lisp
-*- Mode: Lisp; Syntax: Common-Lisp; Package: snark -*- File: constraint-purify.lisp 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 / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the spe...
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is SNARK . The Initial Developer of the Original Code is SRI International . Portions created by the Initial Developer are Copyright ( C ) 1981 - 2011 . ...
dd65b184347a708d46fec4a99ef8763d6a6a1827c5b5bdda3641de9fe91c9ea1
utkarshkukreti/reaml
HelloWorld.ml
module R = Reaml let main = R.h1 [ R.id "hello" ] [ R.string "Hello, world!" ] let () = main |> R.renderTo "main"
null
https://raw.githubusercontent.com/utkarshkukreti/reaml/5640a36293ba2a765171225deddb644f4d6c5d26/examples/HelloWorld.ml
ocaml
module R = Reaml let main = R.h1 [ R.id "hello" ] [ R.string "Hello, world!" ] let () = main |> R.renderTo "main"
3ced4125127b91d33e58d985eb833bd3df70a5c1dc1d353090371fa0da76f214
emotiq/emotiq
deps.lisp
(ql-dist:install-dist "-01-31/distinfo.txt" :replace t :prompt nil) (ql-dist:install-dist "-east-1.amazonaws.com/emotiq-quickdist/emotiq.txt" :replace t :prompt nil) (setf (ql-dist:preference (ql-dist:dist "emotiq")) (1+ (ql-dist:preference (ql-dist:dist "quicklisp")))) (ql:quickload :ironclad) (ql:quickload :cl-...
null
https://raw.githubusercontent.com/emotiq/emotiq/9af78023f670777895a3dac29a2bbe98e19b6249/ci/deps.lisp
lisp
(ql-dist:install-dist "-01-31/distinfo.txt" :replace t :prompt nil) (ql-dist:install-dist "-east-1.amazonaws.com/emotiq-quickdist/emotiq.txt" :replace t :prompt nil) (setf (ql-dist:preference (ql-dist:dist "emotiq")) (1+ (ql-dist:preference (ql-dist:dist "quicklisp")))) (ql:quickload :ironclad) (ql:quickload :cl-...
8c058f35a5668f16c0a6f9653d9a18801015e17cd4e4370d55a42a6713fcc3f6
geoffder/olm-ml
account_test.ml
open! Core open! Olm open! Helpers.ResultInfix let%test "creation" = Account.create () |> Result.is_ok let%test "pickle" = begin Account.create () >>= fun chad -> Account.identity_keys chad >>= fun keys -> Account.pickle chad >>= Account.from_pickle >>= Account.identity_...
null
https://raw.githubusercontent.com/geoffder/olm-ml/6ab791c5f4cacb54cf8939d78bd2a6820ec136b3/olm/test/account_test.ml
ocaml
open! Core open! Olm open! Helpers.ResultInfix let%test "creation" = Account.create () |> Result.is_ok let%test "pickle" = begin Account.create () >>= fun chad -> Account.identity_keys chad >>= fun keys -> Account.pickle chad >>= Account.from_pickle >>= Account.identity_...
a7b87f349bd91865603c45a1226be5882a5f84657a4d6e7bc2afec897b597d87
blindglobe/clocc
gimage.lisp
-*- Mode : Common - Lisp ; Package : PICTURES ; -*- ;;; ;;; ;;; TEXAS INSTRUMENTS INCORPORATED P.O. BOX 149149 AUSTIN , TEXAS 78714 - 9149 ;;; Copyright ( C)1987,1988,1989,1990 Texas Instruments Incorporated . ;;; ;;; Permission is granted to any individual or institution to use, copy, modify,...
null
https://raw.githubusercontent.com/blindglobe/clocc/a50bb75edb01039b282cf320e4505122a59c59a7/src/gui/clue/pictures/gimage.lisp
lisp
Package : PICTURES ; -*- Permission is granted to any individual or institution to use, copy, modify, and distribute this software, provided that this complete copyright and permission notice is maintained, intact, in all copies and supporting documentation. express or implied warranty.
TEXAS INSTRUMENTS INCORPORATED P.O. BOX 149149 AUSTIN , TEXAS 78714 - 9149 Copyright ( C)1987,1988,1989,1990 Texas Instruments Incorporated . Texas Instruments Incorporated provides this software " as is " without Authors : , , Contributors : , , (in-package "PICTURES") (EX...
143bc50b05b10770b26d0c2ee061faa51b7f96703935f900455095d8110f14e5
hyperledger-archives/fabric-chaintool
api.clj
Copyright London Stock Exchange Group 2016 All Rights Reserved . ;; Licensed under the Apache License , Version 2.0 ( the " License " ) ; ;; you may not use this file except in compliance with the License. ;; You may obtain a copy of the License at ;; ;; -2.0 ;; ;; Unless required by applicable law...
null
https://raw.githubusercontent.com/hyperledger-archives/fabric-chaintool/57d8f460d0bfdc7cb4ddea0147fea16f15a06258/src/chaintool/platforms/api.clj
clojure
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language ...
Copyright London Stock Exchange Group 2016 All Rights Reserved . distributed under the License is distributed on an " AS IS " BASIS , (ns chaintool.platforms.api) (defprotocol Platform (env [this params]) (build [this params]) Downloads any missing for the platform (deps [this params]) (clean [this par...
bb8602bbd094be16a1fb99473d1307b468b7c557014f37dce7152d0be8b10b8d
ndpar/erlang
echo_active.erl
% % % 1 > echo_active : start(4321 ) . % telnet localhost 4321 % -module(echo_active). -author('Alain O\'Dea'). -export([start/1]). -define(TCP_OPTIONS, [list, {packet, line}, {reuseaddr, true}, {active, true}]). start(Port) -> {ok, Listen} = gen_tcp:listen(Port, ?TCP_OPTIONS), spawn(fun() -> par_connect...
null
https://raw.githubusercontent.com/ndpar/erlang/e215841a1d370e0fc5eb6b9ff40ea7ae78fc8763/tcp/src/echo_active.erl
erlang
1 > echo_active : start(4321 ) . telnet localhost 4321 -module(echo_active). -author('Alain O\'Dea'). -export([start/1]). -define(TCP_OPTIONS, [list, {packet, line}, {reuseaddr, true}, {active, true}]). start(Port) -> {ok, Listen} = gen_tcp:listen(Port, ?TCP_OPTIONS), spawn(fun() -> par_connect(Listen) en...
ed7eb16c2b886ead1f8082416172caa34cefccb142c1682ebbaa48838434c819
mlabs-haskell/hydra-demo
Spec.hs
module Main (main) where import Test.Tasty qualified as Tasty import Prelude import EndToEnd.Spec (headTests) import OffChain.Test (offChainTests) import Tx.Spec qualified as Tx (tests) main :: IO () main = do spec <- headTests Tasty.defaultMain $ Tasty.testGroup "Hydra-demo" [ offChainTests ...
null
https://raw.githubusercontent.com/mlabs-haskell/hydra-demo/c5e5411d40556bd7ad7d6d041e29ed8d1405378f/test/Spec.hs
haskell
module Main (main) where import Test.Tasty qualified as Tasty import Prelude import EndToEnd.Spec (headTests) import OffChain.Test (offChainTests) import Tx.Spec qualified as Tx (tests) main :: IO () main = do spec <- headTests Tasty.defaultMain $ Tasty.testGroup "Hydra-demo" [ offChainTests ...
ebb8a091848cc1c9811494fbdec81f0868ad3fd25bfa7d262eaa0211c8cc56b5
leo-project/simplenfs
simplenfs_sup.erl
-module(simplenfs_sup). -behaviour(supervisor). %% Include -include("nfs_prot3.hrl"). -include("mount3.hrl"). %% API. -export([start_link/0]). %% supervisor. -export([init/1]). %% API. -spec start_link() -> {ok, pid()}. start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, []). %% supervisor...
null
https://raw.githubusercontent.com/leo-project/simplenfs/15dfecd6324b5d464ea8056b2ec8eed7463ed1e1/src/simplenfs_sup.erl
erlang
Include API. supervisor. API. supervisor.
-module(simplenfs_sup). -behaviour(supervisor). -include("nfs_prot3.hrl"). -include("mount3.hrl"). -export([start_link/0]). -export([init/1]). -spec start_link() -> {ok, pid()}. start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, []). init([]) -> {ok, {{one_for_one, 10, 10}, []}}.
144b8aa7a1373ed7b799a892f5b473347a3305fb9ccf3ab961b41ef81674c390
flipstone/haskell-for-beginners
6_monad_laws.hs
justAddOne :: Int -> Maybe Int justAddOne x = Just (x + 1) Demonstrate the left identity law with the Maybe Monad -- leftIdMaybe :: Bool leftIdMaybe = (return 3 >>= justAddOne) == (justAddOne 3) Demonstrate the right identity law with the Maybe Monad -- rightIdMaybe :: Bool rightIdMaybe = (Just ...
null
https://raw.githubusercontent.com/flipstone/haskell-for-beginners/e586a1f3ef08f21d5181171fe7a7b27057391f0b/answers/chapter_12/6_monad_laws.hs
haskell
justAddOne :: Int -> Maybe Int justAddOne x = Just (x + 1) Demonstrate the left identity law with the Maybe Monad leftIdMaybe :: Bool leftIdMaybe = (return 3 >>= justAddOne) == (justAddOne 3) Demonstrate the right identity law with the Maybe Monad rightIdMaybe :: Bool rightIdMaybe = (Just 3 >>= ...
468d245bec06cc85dfbde24e7be783fee5be4e34952308ba69d240a8aeb0a53e
grin-compiler/ghc-wpc-sample-programs
MemView.hs
-- | Module : Data . . MemView -- License : BSD-style Maintainer : < > -- Stability : stable -- Portability : Good -- module Data.ByteArray.MemView ( MemView(..) , memViewPlus ) where import Foreign.Ptr import Data.ByteArray.Types import Data.Memory.Inter...
null
https://raw.githubusercontent.com/grin-compiler/ghc-wpc-sample-programs/0e3a9b8b7cc3fa0da7c77fb7588dd4830fb087f7/memory-0.15.0/Data/ByteArray/MemView.hs
haskell
| License : BSD-style Stability : stable Portability : Good | A simple abstraction to a piece of memory. Do beware that garbage collection related to piece of memory could be triggered before this is used. Only use with the appropriate handler has been used (e.g. withForeignPtr on ForeignPtr) # UNPA...
Module : Data . . MemView Maintainer : < > module Data.ByteArray.MemView ( MemView(..) , memViewPlus ) where import Foreign.Ptr import Data.ByteArray.Types import Data.Memory.Internal.Imports deriving (Show,Eq) instance ByteArrayAccess MemView where l...
57344cb7ceefdf8081cf58d707fcca2d8f81cbc4450f8b5af6953c5e32686b73
Apress/beg-haskell
ExprMonad.hs
module Chapter14.ExprMonad where import Control.Applicative import Control.Monad.Reader import Control.Monad.Writer data Expr a = AmountOf a | PriceOf a | TotalNumberProducts | TotalPrice | IVal Int | FVal Float | (Expr a) :+: (Expr a) | (Expr a) :*: (Expr a) | (Expr a) :<: (Expr a) | (Expr a) :<=: ...
null
https://raw.githubusercontent.com/Apress/beg-haskell/aaacbf047d553e6177c38807e662cc465409dffd/chapter14/src/Chapter14/ExprMonad.hs
haskell
module Chapter14.ExprMonad where import Control.Applicative import Control.Monad.Reader import Control.Monad.Writer data Expr a = AmountOf a | PriceOf a | TotalNumberProducts | TotalPrice | IVal Int | FVal Float | (Expr a) :+: (Expr a) | (Expr a) :*: (Expr a) | (Expr a) :<: (Expr a) | (Expr a) :<=: ...
dc4d898c1ccf147fc7cc62f3e224c9571d1d50b89fa05d30370b7cdd204e7154
codinuum/cca
py_lib.ml
Copyright 2012 - 2020 Codinuum Software Lab < > 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 wri...
null
https://raw.githubusercontent.com/codinuum/cca/88ea07f3fe3671b78518769d804fdebabcd28e90/src/ast/analyzing/langs/python/py_lib.ml
ocaml
py_lib.ml not yet
Copyright 2012 - 2020 Codinuum Software Lab < > 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 wri...
743a6ac3bee7f4301cc6029816e2d3fd0f7936d9144d6b75a04e88fdd4e84119
satos---jp/mincaml_self_hosting
parsing.mli
Parser.toplevel Lexer.main ( ) Parser.toplevel Lexer.main (Lexing.from_channel stdin) *) type parsingact = | Shift of int | Reduce of int * int | Error val my_parsing : (int -> int) * ((int list) list) * ((int * parsingact) list) list -> (unit -> 'a) -> (('a parsing_data) -> int) -> ('a parsing_data)
null
https://raw.githubusercontent.com/satos---jp/mincaml_self_hosting/5fdf8b5083437d7607a924142eea52d9b1de0439/lib/ml/parsing.mli
ocaml
Parser.toplevel Lexer.main ( ) Parser.toplevel Lexer.main (Lexing.from_channel stdin) *) type parsingact = | Shift of int | Reduce of int * int | Error val my_parsing : (int -> int) * ((int list) list) * ((int * parsingact) list) list -> (unit -> 'a) -> (('a parsing_data) -> int) -> ('a parsing_data)
c797287cae5a88ba6afe9a77218c2f473080edc79e054402e4f9b7a72ec3b217
Leystryku/mpbomberman_racket
cl_sound.rkt
#lang racket ;; imports (require (only-in racket/gui/base play-sound)) (require ffi/unsafe) (require "sh_config.rkt") (require "sh_config_snds.rkt") ;; exports (provide (all-defined-out)) ;; [sound-fn] calls the proper sound functions for the OS using rackets foreign function interface (define (sound-fn str) (con...
null
https://raw.githubusercontent.com/Leystryku/mpbomberman_racket/059d95040cfad2e27237f8dd41fc32a4fc698afe/game/cl_sound.rkt
racket
imports exports [sound-fn] calls the proper sound functions for the OS using rackets foreign function interface [windows-play-sound] is a wrapper around sound-fn for playing sounds using the windows sound cmd [windows-stop-sound] is a wrapper around sound-fn for stopping sounds using the windows sound cmd [play-o...
#lang racket (require (only-in racket/gui/base play-sound)) (require ffi/unsafe) (require "sh_config.rkt") (require "sh_config_snds.rkt") (provide (all-defined-out)) (define (sound-fn str) (cond [(equal? soundEnabled 1) (lambda (x) (define mci-send-string (get-ffi-obj "mciSendStringA" "Winmm" ...
28282960ef2706f8dfdcbfc4184222e52296205424d17058df0f90d7fbd5d646
luminus-framework/examples
home.clj
(ns multi-client-ws-aleph.routes.home (:require [multi-client-ws-aleph.layout :as layout] [multi-client-ws-aleph.middleware :as middleware] [ring.util.http-response :as response] [clojure.tools.logging :as log] [aleph.http :as http] [manifold.stream :as s] [manifold.deferred :as d] [manifold.b...
null
https://raw.githubusercontent.com/luminus-framework/examples/cbeee2fef8f457a6a6bac2cae0b640370ae2499b/multi-client-ws-aleph/src/clj/multi_client_ws_aleph/routes/home.clj
clojure
return nil to Ring handler
(ns multi-client-ws-aleph.routes.home (:require [multi-client-ws-aleph.layout :as layout] [multi-client-ws-aleph.middleware :as middleware] [ring.util.http-response :as response] [clojure.tools.logging :as log] [aleph.http :as http] [manifold.stream :as s] [manifold.deferred :as d] [manifold.b...
9faf72ada55bfa34db6b4c4174dac3acb0f300c54b09195242966dcd7f605017
erlware/erlware_commons
ec_plists.erl
-*- mode : Erlang ; fill - column : 80 ; comment - column : 75 ; -*- %%% vi:ts=4 sw=4 et %%% The MIT License %%% Copyright ( c ) 2007 %%% %%% Permission is hereby granted, free of charge, to any person obtaining a copy %%% of this software and associated documentation files (the "Software"), to deal in the Soft...
null
https://raw.githubusercontent.com/erlware/erlware_commons/eeb25f4b7f4d9f423a0470461d225fb6a61217d2/src/ec_plists.erl
erlang
vi:ts=4 sw=4 et The MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished to do so, subject to the following condit...
-*- mode : Erlang ; fill - column : 80 ; comment - column : 75 ; -*- Copyright ( c ) 2007 in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the Software . THE SOFTWARE I...
1fdae212c077702eea63b5fbb6408673c79f4f619e3110ceee2924f77547691e
ghc/testsuite
simpl005.hs
-- !!! CPR on newtype with polymorphic argument {-# OPTIONS -O #-} module ShouldCompile where data StateM m s a = STM (s -> m (a,s)) instance Functor m => Functor (StateM m s) where fmap f (STM xs) = STM (\s -> fmap (\ (x,s') -> (f x, s')) (xs s) ...
null
https://raw.githubusercontent.com/ghc/testsuite/998a816ae89c4fd573f4abd7c6abb346cf7ee9af/tests/simplCore/should_compile/simpl005.hs
haskell
!!! CPR on newtype with polymorphic argument # OPTIONS -O # ruq panic! (the `impossible' happened): mk_cpr_let: not a product rur rur -> MonadLibrary.StateM{-r2o,x a30Y a30Z ruq
module ShouldCompile where data StateM m s a = STM (s -> m (a,s)) instance Functor m => Functor (StateM m s) where fmap f (STM xs) = STM (\s -> fmap (\ (x,s') -> (f x, s')) (xs s) ) With GHC 4.04 ( first release ) this program gave : ...
1b991543716ae7e8bd34cb432586d6b4148daa3b9165b67cd8e4226055e40584
philnguyen/soft-contract
zo-shell.rkt
#lang racket/base ;; Command-line UI for exploring decompiled bytecode. ;; (Use `raco make` to generate bytecode) (provide init) (require benchmark-util (only-in racket/string string-split string-join string-trim) racket/match) (require "zo-string.rkt" "zo-transition.rkt" "zo-find.rkt" compile...
null
https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/test/gradual-typing-benchmarks/zordoz.6.3/zo-shell.rkt
racket
Command-line UI for exploring decompiled bytecode. (Use `raco make` to generate bytecode) ----------------------------------------------------------------------------- --- constants & contracts when set, print extra debugging information For aesthetic purposes (define-type History (Listof Context)) --- API funct...
#lang racket/base (provide init) (require benchmark-util (only-in racket/string string-split string-join string-trim) racket/match) (require "zo-string.rkt" "zo-transition.rkt" "zo-find.rkt" compiler/zo-parse) (define DEBUG #f) (define VERSION 1.0) (define VNAME "vortex") ( define - typ...
84ba9844801e769918f1d95ab8b660472efed2cbf3157166ba6714bb05956338
mrphlip/aoc
06.hs
# OPTIONS_GHC -Wno - tabs # import Data.List import Control.Exception import Utils type Stacks = [[Char]] type Move = (Integer, Integer, Integer) getInput :: IO String getInput = readFile "06.txt" findSingleton :: Integer -> String -> Integer findSingleton n s = (+n) $ genericLength $ takeWhile ((/=n).genericLength....
null
https://raw.githubusercontent.com/mrphlip/aoc/65bd3b3801dde8050cd585f1f1d3815d47964c9a/2022/06.hs
haskell
# OPTIONS_GHC -Wno - tabs # import Data.List import Control.Exception import Utils type Stacks = [[Char]] type Move = (Integer, Integer, Integer) getInput :: IO String getInput = readFile "06.txt" findSingleton :: Integer -> String -> Integer findSingleton n s = (+n) $ genericLength $ takeWhile ((/=n).genericLength....
d2c556daf063d348729bdf7d41e53695666f3de23bf3409af346083f2471b728
hiroshi-unno/coar
solver.ml
open Core open Common open Common.Ext open Ast open Ast.LogicOld module Make (Cfg: Config.ConfigType) = struct let config = Cfg.config module Debug = Debug.Make (val Debug.Config.(if config.verbose then enable else disable)) let ctx = let options = match config.timeout with | None -> [] |...
null
https://raw.githubusercontent.com/hiroshi-unno/coar/90a23a09332c68f380efd4115b3f6fdc825f413d/lib/SPACER/solver.ml
ocaml
* assume that [phi] is alpha-renamed * ToDo: return a solution Or_error.error_string reason
open Core open Common open Common.Ext open Ast open Ast.LogicOld module Make (Cfg: Config.ConfigType) = struct let config = Cfg.config module Debug = Debug.Make (val Debug.Config.(if config.verbose then enable else disable)) let ctx = let options = match config.timeout with | None -> [] |...
b02215be002cbd698e0b4305613ef25c34d22ed4c23f8fa63365aadd76b99364
Clojure2D/clojure2d-examples
ray.clj
(ns rt4.in-one-weekend.ch08b.ray (:require [fastmath.vector :as v] [fastmath.core :as m])) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) (m/use-primitive-operators) (defprotocol RayProto (at [ray t])) (defrecord Ray [origin direction] RayProto (at [_ t] (v/add origin (v/...
null
https://raw.githubusercontent.com/Clojure2D/clojure2d-examples/ead92d6f17744b91070e6308157364ad4eab8a1b/src/rt4/in_one_weekend/ch08b/ray.clj
clojure
(ns rt4.in-one-weekend.ch08b.ray (:require [fastmath.vector :as v] [fastmath.core :as m])) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) (m/use-primitive-operators) (defprotocol RayProto (at [ray t])) (defrecord Ray [origin direction] RayProto (at [_ t] (v/add origin (v/...
80de30b5a9772e8a0881883d68eeb0fc135ce5ce387585e3132a7ac60761e461
shriphani/sleipnir
handler.clj
(ns sleipnir.handler (:require [cheshire.core :refer :all] [clojure.java.io :as io] [clojure.string :as string] [compojure.core :refer :all] [ring.middleware.resource :refer [wrap-resource]] [ring.middleware.file-info :refer [wrap-file-info]] [ri...
null
https://raw.githubusercontent.com/shriphani/sleipnir/2eeb711c63cea61ba25dba46e1144cfd59e4f1dc/src/sleipnir/handler.clj
clojure
resolve the config spin up webservice create the directory generate-config-file add-job to heritrix build launch
(ns sleipnir.handler (:require [cheshire.core :refer :all] [clojure.java.io :as io] [clojure.string :as string] [compojure.core :refer :all] [ring.middleware.resource :refer [wrap-resource]] [ring.middleware.file-info :refer [wrap-file-info]] [ri...
20b654565ca865dee2afb0ad320ee48c4afe04deee04492a0d6c740aa0a2c7bc
adaliu-gh/htdp
6-space invader game.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-beginner-reader.ss" "lang")((modname |6-space invader game|) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repe...
null
https://raw.githubusercontent.com/adaliu-gh/htdp/a0fca8af2ae8bdcef40d56f6f45021dd92df2995/1-7%20Fixed-Size%20Data/6-space%20invader%20game.rkt
racket
about the language level of this file in a form that our tools can easily process. REQUIREMENTS ------------- ------------- CONSTANTS ------------- ------------- DATA DEFINITION ------------- A UFO is a Posn interpretation (make-posn x y) is the UFO's location (using the top-down, left-to-right convention) A Ta...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-reader.ss" "lang")((modname |6-space invader game|) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (require 2htdp/image) (require 2htdp/universe) (d...
60a67e320f908937d35af65d68612c231ca9efdb006edaaf8381c375b6fd5f55
pkrumins/the-little-mler
03-cons-magnificent.ml
* * Chapter 3 of The Little MLer : * * Cons Is Still Magnificent * * * * Code examples assembled by ( ) . * * His blog is at -- good coders code , great reuse . * * * * Get yourself this wonderful book at Amazon : ** Chapter 3 of The Little MLer: ** Cons Is Still Magnificent ** ** Co...
null
https://raw.githubusercontent.com/pkrumins/the-little-mler/369745c04daee42a52cf54f48f27cac8092b0f83/03-cons-magnificent.ml
ocaml
A new datatype - pizza Our favorite pizza The datatype of remove_anchovy is remove_anchovy: pizza -> pizza Example of remove_anchovy Onion(Cheese(Crust)) Let's top Anchovy with Cheese Example of top_anchovy_with_cheese Combine remove_anchovy with top_anchovy_with_cheese Onion(Cheese(Crust)) On...
* * Chapter 3 of The Little MLer : * * Cons Is Still Magnificent * * * * Code examples assembled by ( ) . * * His blog is at -- good coders code , great reuse . * * * * Get yourself this wonderful book at Amazon : ** Chapter 3 of The Little MLer: ** Cons Is Still Magnificent ** ** Co...
6e4f883010e2ef232881789624906a714cda0c76cd5d94f11e172ddcdd519762
pkel/cpr
tailstormll.ml
open Cpr_lib let incentive_schemes = Tailstorm.incentive_schemes let subblock_selections = Tailstorm.subblock_selections module type Parameters = Tailstorm.Parameters module Make (Parameters : Parameters) = struct open Parameters let key = let open Options in Format.asprintf "tailstormll-%i-%a-%a" k pp ...
null
https://raw.githubusercontent.com/pkel/cpr/9a08c2a9533866ce52c2e08c42bbf8fcd9d6636c/simulator/protocols/tailstormll.ml
ocaml
smaller is better child is vote child is block * better is bigger quorum would grow to big calculate own and overall reward for branch ensure branch fits into quorum prefer own reward, then overall reward no branches left, not enough votes add best branch, continue quorum complete. Ensure that it sa...
open Cpr_lib let incentive_schemes = Tailstorm.incentive_schemes let subblock_selections = Tailstorm.subblock_selections module type Parameters = Tailstorm.Parameters module Make (Parameters : Parameters) = struct open Parameters let key = let open Options in Format.asprintf "tailstormll-%i-%a-%a" k pp ...
942174e327c2a3776c6c9110a904c830f93555b8cd0756b5afb44d584afce99b
clingen-data-model/genegraph
variation_descriptor.clj
(ns genegraph.source.graphql.schema.variation-descriptor (:require [genegraph.database.query :as q] [io.pedestal.log :as log] [genegraph.database.names :as names])) (def variation-descriptor {:name :VariationDescriptor :graphql-type :object :description "A descriptor containing a refe...
null
https://raw.githubusercontent.com/clingen-data-model/genegraph/10e435cc20461d9232313a98752d4fc0917c00d5/src/genegraph/source/graphql/schema/variation_descriptor.clj
clojure
(ns genegraph.source.graphql.schema.variation-descriptor (:require [genegraph.database.query :as q] [io.pedestal.log :as log] [genegraph.database.names :as names])) (def variation-descriptor {:name :VariationDescriptor :graphql-type :object :description "A descriptor containing a refe...
24528f02eda46904e9de9239f2572d0102ecbbc52d669affd15c111a9130d49e
ezrakilty/narc
Fallible.hs
# LANGUAGE FlexibleContexts # module Database.Narc.Fallible where import Control.Monad.Error hiding (when, join) import Gensym import Database.Narc.Debug Fallible and ErrorGensym monads -------------------------------------- ( TBD : this is more general than Narc ; factor it out . ) data Fallible a = Failure Str...
null
https://raw.githubusercontent.com/ezrakilty/narc/76310e6ac528fe038d8bdd4aa78fa8c555501fad/Database/Narc/Fallible.hs
haskell
------------------------------------ | with Left as failure, Right as success.
# LANGUAGE FlexibleContexts # module Database.Narc.Fallible where import Control.Monad.Error hiding (when, join) import Gensym import Database.Narc.Debug ( TBD : this is more general than Narc ; factor it out . ) data Fallible a = Failure String | Success a deriving (Eq, Show) instance Monad Fallible where ...
7557871aea79f8f34ef9079604a6ed9bfd08ff64a96b456648eb02cc6458492b
dinosaure/bob
relay.ml
let run timeout inet_addr port secure_port backlog = let sockaddr01 = Unix.ADDR_INET (inet_addr, port) in let sockaddr02 = Unix.ADDR_INET (inet_addr, secure_port) in let socket01 = Unix.socket ~cloexec:true (Unix.domain_of_sockaddr sockaddr01) Unix.SOCK_STREAM 0 in Unix.setsockopt socket01 Uni...
null
https://raw.githubusercontent.com/dinosaure/bob/7ce049a8fa96f2106c73253f47e18e7f955a9880/bin/relay.ml
ocaml
let run timeout inet_addr port secure_port backlog = let sockaddr01 = Unix.ADDR_INET (inet_addr, port) in let sockaddr02 = Unix.ADDR_INET (inet_addr, secure_port) in let socket01 = Unix.socket ~cloexec:true (Unix.domain_of_sockaddr sockaddr01) Unix.SOCK_STREAM 0 in Unix.setsockopt socket01 Uni...
4ec4540a870f0b3f386a4644d2ebb3941e77a6c6610bae9215b49ecb93b578ee
tonsky/compact-uuids
project.clj
(defproject compact-uuids "0.2.1" :description "Compact 26-char URL-safe representation of UUIDs" :license { :name "Eclipse" :url "-v10.html" } :url "-uuids" :dependencies [ [org.clojure/clojure "1.9.0-RC1"] [org.clojure/clojurescript "1.9.946" :scope "provided"] ] :...
null
https://raw.githubusercontent.com/tonsky/compact-uuids/b4546a2831f04f5e0c23543e91770af4cddb3b57/project.clj
clojure
(defproject compact-uuids "0.2.1" :description "Compact 26-char URL-safe representation of UUIDs" :license { :name "Eclipse" :url "-v10.html" } :url "-uuids" :dependencies [ [org.clojure/clojure "1.9.0-RC1"] [org.clojure/clojurescript "1.9.946" :scope "provided"] ] :...
61edcd9495cab8892fe8773319e16bb4f2569df523bcc08d95f8ceac65dc9aa4
rsnikhil/Forvis_RISCV-ISA-Spec
Forvis_Spec_I.hs
Copyright ( c ) 2018 -- See LICENSE for license details module Forvis_Spec_I where -- ================================================================ -- Part of: specification of all RISC-V instructions. This module is the specification of the RISC - V ' I ' ( Base ) instructions -- ========================...
null
https://raw.githubusercontent.com/rsnikhil/Forvis_RISCV-ISA-Spec/0c5590a12f4b39644d0497fa6285ad5e33003dfc/ZZ_OLD/v3/Forvis_Spec_I.hs
haskell
See LICENSE for license details ================================================================ Part of: specification of all RISC-V instructions. ================================================================ Haskell lib imports For bit-wise 'and' (.&.) etc. Local imports Canonical ways for finish an instru...
Copyright ( c ) 2018 module Forvis_Spec_I where This module is the specification of the RISC - V ' I ' ( Base ) instructions import Bit_Utils import ALU import Arch_Defs import Machine_State import CSR_File import Virtual_Mem instr_specs_I :: [(Instr_Spec, String)] instr_specs_I = [(spec_LUI, ...
89593223e0e442f899129c196e3991b081b747da24f41bcc8191bce869be9fc2
hbr/albatross
prover.ml
Copyright ( C ) < helmut dot brandl at gmx dot net > This file is distributed under the terms of the GNU General Public License version 2 ( GPLv2 ) as published by the Free Software Foundation . This file is distributed under the terms of the GNU General Public License version 2 (GPLv2) as publ...
null
https://raw.githubusercontent.com/hbr/albatross/8f28ef97951f92f30dc69cf94c0bbe20d64fba21/ocaml/alba1/prover.ml
ocaml
Illegal call Illegal call number of premises still to prove index of the backward rule Blacklist of rules which are no longer to be considered The target is the same as the goal, if the goal is not a general implication chain, otherwise its the target of the chain. n...
Copyright ( C ) < helmut dot brandl at gmx dot net > This file is distributed under the terms of the GNU General Public License version 2 ( GPLv2 ) as published by the Free Software Foundation . This file is distributed under the terms of the GNU General Public License version 2 (GPLv2) as publ...
d752111835fd3446b0d8c9acbde58e73bd804979dec3a6488b5ce57ff34a3d55
fourmolu/fourmolu
output-LetMixed-InRightAlign-indent=4.hs
{-- should be the same in every option --} let_oneline_empty = let in 10 let_oneline_single = let a = 1 in a + 2 let_oneline_multi = let a = 1; b = 2 in a + b {-- pure let expressions --} let_empty = let in 10 let_single = let a = 1 in a + 2 let_single_sig = let a :: Int...
null
https://raw.githubusercontent.com/fourmolu/fourmolu/f47860f01cb3cac3b973c5df6ecbae48bbb4c295/data/fourmolu/let-style/output-LetMixed-InRightAlign-indent%3D4.hs
haskell
- should be the same in every option - - pure let expressions - a comment - do-block - - list comprehension -
let_oneline_empty = let in 10 let_oneline_single = let a = 1 in a + 2 let_oneline_multi = let a = 1; b = 2 in a + b let_empty = let in 10 let_single = let a = 1 in a + 2 let_single_sig = let a :: Int a = 1 in a + 2 let_single_comment = a = 1...
d06cbc6d91b3a7153a9431491419b1a1abeed89777d4598fe73eb2067146c8d8
jyh/metaprl
czf_itt_subset.mli
* Subset predicate . * * ---------------------------------------------------------------- * * Copyright ( C ) 2000 , Caltech * * 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 F...
null
https://raw.githubusercontent.com/jyh/metaprl/51ba0bbbf409ecb7f96f5abbeb91902fdec47a19/theories/czf/czf_itt_subset.mli
ocaml
* -*- * Local Variables: * Caml-master: "compile" * End: * -*-
* Subset predicate . * * ---------------------------------------------------------------- * * Copyright ( C ) 2000 , Caltech * * 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 F...
8c125ede5141838b79224930970f1f9d9d831d5b9aec214048e81e4a040c9f1a
msszczep/pequod-cljs
prod.cljs
(ns pequod-cljs.prod (:require [pequod-cljs.core :as core])) ;;ignore println statements in prod (set! *print-fn* (fn [& _])) (core/init!)
null
https://raw.githubusercontent.com/msszczep/pequod-cljs/986ad97fa39d5b83828c07daf80655460b27d2dd/env/prod/cljs/pequod_cljs/prod.cljs
clojure
ignore println statements in prod
(ns pequod-cljs.prod (:require [pequod-cljs.core :as core])) (set! *print-fn* (fn [& _])) (core/init!)
665fad98b9ea30c55c50f0da3fb18f367d80ee20c4a5043f5177544272ff3d40
sneerteam/sneer
util.cljc
(ns reagent-spike.util) (defn foo-cljc [x] "I don't do a whole lot." [x] (println x "Hello, World!"))
null
https://raw.githubusercontent.com/sneerteam/sneer/b093c46321a5a42ae9418df427dbb237489b7bcb/spikes/reagent-spike/src/cljc/reagent_spike/util.cljc
clojure
(ns reagent-spike.util) (defn foo-cljc [x] "I don't do a whole lot." [x] (println x "Hello, World!"))
6d2f3f25a2550eecfb2a683bccf111d1ca6c7378ebb49c053008e57983749969
tisnik/clojure-examples
core.clj
; ( C ) Copyright 2018 , 2020 ; ; All rights reserved. This program and the accompanying materials ; are made available under the terms of the Eclipse Public License v1.0 ; which accompanies this distribution, and is available at -v10.html ; ; Contributors: ; (ns cucumber+expect3.core (:gen-...
null
https://raw.githubusercontent.com/tisnik/clojure-examples/984af4a3e20d994b4f4989678ee1330e409fdae3/cucumber%2Bexpect3/src/cucumber%2Bexpect3/core.clj
clojure
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at Contributors:
( C ) Copyright 2018 , 2020 -v10.html (ns cucumber+expect3.core (:gen-class)) funkce faktorial obsahuje i test na (defn factorial [n] (if (neg? n) (throw (IllegalArgumentException. "negative numbers are not supported!")) (apply * (range 1M (inc n))))) otestujeme f...
26be583cb85319e3ac42ee0b7799576823b8b3df69685633480384ccd8524c6f
Spin1Half/Advent-Of-Coalton-2022
aoc3.lisp
(in-package :coalton-user) (coalton-toplevel for part 1 (declare match-first-back (String -> Char)) (define (match-first-back str) (let line-len = (string:length str)) (let halfway = (math:div line-len 2)) (let str-a = (substring str 0 halfway)) (let str-b = (substring str halfway line-len)) ...
null
https://raw.githubusercontent.com/Spin1Half/Advent-Of-Coalton-2022/ceef0801aff069f7e116b8d9339efb9d7664571a/aoc3.lisp
lisp
(in-package :coalton-user) (coalton-toplevel for part 1 (declare match-first-back (String -> Char)) (define (match-first-back str) (let line-len = (string:length str)) (let halfway = (math:div line-len 2)) (let str-a = (substring str 0 halfway)) (let str-b = (substring str halfway line-len)) ...
061418912b31561764ed16ef9e6b7320b1f0ee682fcbd420b2612041567cf55e
aaronc/fx-clj
convert.clj
(ns ^:no-doc fx-clj.core.convert (:require [fx-clj.core.extensibility :refer [convert-arg]] [fx-clj.util :as util] [clojure.core.async :refer [put!]] [ : as csk ] [org.tobereplaced.lettercase :as lettercase]) (:import (javafx.event EventHandler) (clojure.core.async.impl.channels ManyToMa...
null
https://raw.githubusercontent.com/aaronc/fx-clj/29639356d8d1253438ecf61e123caacefa9269ec/src/fx_clj/core/convert.clj
clojure
(ns ^:no-doc fx-clj.core.convert (:require [fx-clj.core.extensibility :refer [convert-arg]] [fx-clj.util :as util] [clojure.core.async :refer [put!]] [ : as csk ] [org.tobereplaced.lettercase :as lettercase]) (:import (javafx.event EventHandler) (clojure.core.async.impl.channels ManyToMa...
8f27b442eb72c2f5ae7819fdee787775af092417472433259fb4a5f76bdfd4b6
prg-titech/Kani-CUDA
diffusion3d-temporal-seq-synth.rkt
#lang rosette (require "diffusion3d-baseline.rkt" "../../lang.rkt" racket/hash) (require rosette/query/debug rosette/lib/render) (current-bitwidth 7) (define switch 0) (define (diffusion-kernel-temporal-blocking in mid ...
null
https://raw.githubusercontent.com/prg-titech/Kani-CUDA/e97c4bede43a5fc4031a7d2cfc32d71b01ac26c4/Emulator/Examples/Diffusion3d/diffusion3d-temporal-seq-synth.rkt
racket
Number of elements in xy plane of input (= sb1 sb2) (= sb3 sb-temp)) (:= int bv sb1) (:= int tv sb2) ;(printf "sb2 = ~a\n" sb2) (*/LS cn [sb sb2 n]) (*/LS cb [sb bv sc2]) (*/LS ct [sb tv sc2]))))) Add a constraint that it is equal to each of the elements of Execute a di...
#lang rosette (require "diffusion3d-baseline.rkt" "../../lang.rkt" racket/hash) (require rosette/query/debug rosette/lib/render) (current-bitwidth 7) (define switch 0) (define (diffusion-kernel-temporal-blocking in mid ...
bc045522df395e5f3310abdce4d8a69218d020c798ef3042df0461fe5ba72947
broadinstitute/firecloud-ui
common.cljs
(ns broadfcui.page.method-repo.method.common (:require [dmohs.react :as react] [clojure.string :as string] [broadfcui.common.components :as comps] [broadfcui.common.icons :as icons] [broadfcui.common.links :as links] [broadfcui.common.method.config-io :as config-io] [broadfcui.common.style :as st...
null
https://raw.githubusercontent.com/broadinstitute/firecloud-ui/8eb077bc137ead105db5665a8fa47a7523145633/src/cljs/main/broadfcui/page/method_repo/method/common.cljs
clojure
gives room for highlight around filter field exist to avoid tantalizing UI-only users with something they can't have (at least until GAWB-2702)
(ns broadfcui.page.method-repo.method.common (:require [dmohs.react :as react] [clojure.string :as string] [broadfcui.common.components :as comps] [broadfcui.common.icons :as icons] [broadfcui.common.links :as links] [broadfcui.common.method.config-io :as config-io] [broadfcui.common.style :as st...
e2b826f188cb1a873bb717eadf20801f872a8a73ef10cf4cd908dd6a689d4a35
jayrbolton/coursework
TrustMe.hs
{-# LANGUAGE EmptyDataDecls , ExistentialQuantification , ScopedTypeVariables , NoMonomorphismRestriction #-} module MAlonzo.Relation.Binary.PropositionalEquality.TrustMe where import qualified Unsafe.Coerce import qualified MAlonzo.Relation.Binary.Core import qualified MAlonzo.Relati...
null
https://raw.githubusercontent.com/jayrbolton/coursework/f0da276527d42a6751fb8d29c76de35ce358fe65/computability_and_formal_languages/project__/agda/MAlonzo/Relation/Binary/PropositionalEquality/TrustMe.hs
haskell
# LANGUAGE EmptyDataDecls , ExistentialQuantification , ScopedTypeVariables , NoMonomorphismRestriction #
module MAlonzo.Relation.Binary.PropositionalEquality.TrustMe where import qualified Unsafe.Coerce import qualified MAlonzo.Relation.Binary.Core import qualified MAlonzo.Relation.Binary.PropositionalEquality name7 = ("Relation.Binary.PropositionalEquality.TrustMe.primTrustMe") d7 = (\ v0 -> (\ v1 -> (\ v2 -> (MAlonz...
93a34db7c672547a8558626d0a8bea28c5af2c805346381cdb2750d0d0b4696c
ChaosEternal/guile-scsh
rw.scm
;;; Basic read and write Copyright ( c ) 1993 by . See file COPYING . ;;; Note: read ops should check to see if their string args are mutable. (define-module (scsh rw) :use-module (ice-9 rw) :use-module (scsh errno) :use-module (scsh optional) :use-module (ice-9 optargs) :use-module (scsh let-optionals-...
null
https://raw.githubusercontent.com/ChaosEternal/guile-scsh/1a76e006e193a6a8c9f93d23bacb9e51a1ff6c4c/scsh/rw.scm
scheme
Basic read and write Note: read ops should check to see if their string args are mutable. Best-effort/forward-progress reading Persistent reading Give info on partially-read data in error packet. Persistent writing
Copyright ( c ) 1993 by . See file COPYING . (define-module (scsh rw) :use-module (ice-9 rw) :use-module (scsh errno) :use-module (scsh optional) :use-module (ice-9 optargs) :use-module (scsh let-optionals-aster) from ( ice-9 rw ) :export (bogus-substring-spec? read-string/partial ...
fe3de137742ee042fcdd3ffac214ab9bc526158b9d92d6b360b009017439b64a
kadena-io/pact
Runtime.hs
# LANGUAGE FlexibleInstances # # LANGUAGE RecordWildCards # {-# LANGUAGE RankNTypes #-} # LANGUAGE TemplateHaskell # # LANGUAGE GeneralizedNewtypeDeriving # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE BangPatterns #-} # LANGUAGE ScopedTypeVariables # {-# LANGUAGE GADTs #-} # LANGUAGE DeriveGeneric # # LANGUAGE Lamb...
null
https://raw.githubusercontent.com/kadena-io/pact/6bf5477a6ee3c78faf606471894b3e986deefe3d/src/Pact/Types/Runtime.hs
haskell
# LANGUAGE RankNTypes # # LANGUAGE OverloadedStrings # # LANGUAGE BangPatterns # # LANGUAGE GADTs # | Module : Pact.Types.Runtime License : BSD-style (see the file LICENSE) 'Eval' monad and utilities. | Storage for natives. | Indicates level of db access offered in current Eval monad. | Read-only ac...
# LANGUAGE FlexibleInstances # # LANGUAGE RecordWildCards # # LANGUAGE TemplateHaskell # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE ScopedTypeVariables # # LANGUAGE DeriveGeneric # # LANGUAGE LambdaCase # Copyright : ( C ) 2016 Maintainer : < > Exports Lang and Util , so this is the " defau...
70369dfeb51e590532a19acb5a2c1f9762c286238440c7e57f77ff73ebd94d3b
AbstractMachinesLab/caramel
ast_helper.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/AbstractMachinesLab/caramel/7d4e505d6032e22a630d2e3bd7085b77d0efbb0c/vendor/ocaml-lsp-1.4.0/ocaml-lsp-server/vendor/merlin/src/ocaml/parsing/405/ast_helper.mli
ocaml
************************************************************************ OCaml ...
, LexiFi Copyright 2012 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the * Helpers to produce Parsetree fragments open Asttypes open Docstrings open Parsetree type lid = Longide...
20cb3dad1fb97821d0d334e2c2ee177fbf35c343190f6c0eabfa37eab9a915f2
msgpack/msgpack-haskell
Result.hs
{-# LANGUAGE CPP #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveFoldable #-} {-# LANGUAGE DeriveFunctor #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE DeriveTraversable #-} -- | -- Module : Data.MessagePack.Integer Copyright : © 2019 -- License : BSD3 -- Type represe...
null
https://raw.githubusercontent.com/msgpack/msgpack-haskell/f52a5d2db620a7be70810eca648fd152141f8b14/msgpack/src/Data/MessagePack/Result.hs
haskell
# LANGUAGE CPP # # LANGUAGE DeriveDataTypeable # # LANGUAGE DeriveFoldable # # LANGUAGE DeriveFunctor # # LANGUAGE DeriveTraversable # | Module : Data.MessagePack.Integer License : BSD3 @since 1.1.0.0 @since 1.1.0.0
# LANGUAGE DeriveGeneric # Copyright : © 2019 Type representing MessagePack integers module Data.MessagePack.Result ( Result(..) ) where import Compat.Prelude import qualified Control.Monad.Fail as Fail | The result of decoding from MessagePack data Result a = Error String ...
48dc6cedfb4c947bbf4692ba66969e6c1bbe136181d0c91c8855ef5373f6c1b4
vikram/lisplibraries
forms.lisp
;;;; -*- lisp -*- (in-package :it.bese.ucw-user) ;;;; the file uploading example and test (defclass file-upload-example (widget-component template-component) ((file :accessor file-upload-example.file :initform "")) (:metaclass standard-component-class) (:default-initargs :template-name "ucw/examples/upload.tal...
null
https://raw.githubusercontent.com/vikram/lisplibraries/105e3ef2d165275eb78f36f5090c9e2cdd0754dd/site/ucw-boxset/ucw_dev/examples/forms.lisp
lisp
-*- lisp -*- the file uploading example and test web form example using the web form example to create a dynamic form 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 s...
(in-package :it.bese.ucw-user) (defclass file-upload-example (widget-component template-component) ((file :accessor file-upload-example.file :initform "")) (:metaclass standard-component-class) (:default-initargs :template-name "ucw/examples/upload.tal") (:documentation "Form for uploading a file.")) (defac...
c69dbd63744fd0a9b49bcda0254f1d56d9bb9c420be1948170c3d7f55fc817c3
REPROSEC/dolev-yao-star
Lib_RawIntTypes.ml
open Prims let (u8_from_UInt8 : FStar_UInt8.t -> FStar_UInt8.t) = fun x -> x let (u16_from_UInt16 : FStar_UInt16.t -> FStar_UInt16.t) = fun x -> x let (u32_from_UInt32 : FStar_UInt32.t -> FStar_UInt32.t) = fun x -> x let (u64_from_UInt64 : FStar_UInt64.t -> FStar_UInt64.t) = fun x -> x let (u128_from_UInt128 : FStar_UI...
null
https://raw.githubusercontent.com/REPROSEC/dolev-yao-star/d97a8dd4d07f2322437f186e4db6a1f4d5ee9230/concrete/hacl-star-snapshot/ml/Lib_RawIntTypes.ml
ocaml
open Prims let (u8_from_UInt8 : FStar_UInt8.t -> FStar_UInt8.t) = fun x -> x let (u16_from_UInt16 : FStar_UInt16.t -> FStar_UInt16.t) = fun x -> x let (u32_from_UInt32 : FStar_UInt32.t -> FStar_UInt32.t) = fun x -> x let (u64_from_UInt64 : FStar_UInt64.t -> FStar_UInt64.t) = fun x -> x let (u128_from_UInt128 : FStar_UI...
f0829dd74eb0f13d35629fcbf61ef05c1f1f9c8530425e6a429eb237223706cb
soegaard/metapict
linear-equations.rkt
#lang racket (require "../def.rkt") (module+ test (require rackunit "../def.rkt")) ; A linear expression is represented as an expr struct. The field coefs contains a hash table that maps variables to numbers ( ) . The " variable " 1 is mapped to the constant term . (struct expr (coefs) #:transparent) ; Example: (...
null
https://raw.githubusercontent.com/soegaard/metapict/47ae265f73cbb92ff3e7bdd61e49f4af17597fdf/metapict/todo/linear-equations.rkt
racket
A linear expression is represented as an expr struct. Example: expr-hash-ref : expr-hash variable -> number return the coeffecient of the variable v ref : (or expr expr-hash) variable -> number constant-term : expr -> number return the constant term of the expression variables-in-equation : expr -> (seto...
#lang racket (require "../def.rkt") (module+ test (require rackunit "../def.rkt")) The field coefs contains a hash table that maps variables to numbers ( ) . The " variable " 1 is mapped to the constant term . (struct expr (coefs) #:transparent) (module+ test (def 2x+y=7 (expr #hash((x . 2) (y . 1) (1 . -7))...
4143bcf55b8126ec4c08890a0c3477d1e59c69f476ac845a02a73c79c30c282b
erlang/otp
annotations.erl
%% %CopyrightBegin% %% Copyright Ericsson AB 1997 - 2022 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicable ...
null
https://raw.githubusercontent.com/erlang/otp/1a3e3c492378d119e96a0f24f71b9d0313076447/lib/compiler/test/beam_ssa_check_SUITE_data/annotations.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lang...
Copyright Ericsson AB 1997 - 2022 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(annotations). -export([t0/0]). t0() -> X = return_int(), Y = return_tuple(), {X, Y}. return_in...
3fb7b71808f02f87e98cf7947e0fac02d40e6df87b101935bfdc41998aa9fc51
EligiusSantori/L2Apf
refresh_quest_list.scm
(module system racket/base (provide game-client-packet/refresh-quest-list) (require "../../packet.scm") (define (game-client-packet/refresh-quest-list) (let ((s (open-output-bytes))) (begin (write-byte #x63 s) (get-output-bytes s) ) ) ) )
null
https://raw.githubusercontent.com/EligiusSantori/L2Apf/30ffe0828e8a401f58d39984efd862c8aeab8c30/packet/game/client/refresh_quest_list.scm
scheme
(module system racket/base (provide game-client-packet/refresh-quest-list) (require "../../packet.scm") (define (game-client-packet/refresh-quest-list) (let ((s (open-output-bytes))) (begin (write-byte #x63 s) (get-output-bytes s) ) ) ) )
1c207fdfe7a7eb0e63eeef53083d7386cdf535612e3858a60e84a5699ad8c0e7
fiddlerwoaroof/lisp-sandbox
qtools-demo.lisp
(defpackage :qtools-demo (:use :cl)) (in-package :qtools-demo) (defun make-slider () (prog1-bind (the-widget (make-instance 'qui:slider)) )) (defun main () (cl+qt:with-main-window (w (make-instance 'qui:panel-container)) (qui:add-widget (make-instance 'qui:panel :title "An empty panel :(") w) (qui:add-...
null
https://raw.githubusercontent.com/fiddlerwoaroof/lisp-sandbox/38ff817c95af35db042faf760b477675264220d2/qtools-demo.lisp
lisp
(defpackage :qtools-demo (:use :cl)) (in-package :qtools-demo) (defun make-slider () (prog1-bind (the-widget (make-instance 'qui:slider)) )) (defun main () (cl+qt:with-main-window (w (make-instance 'qui:panel-container)) (qui:add-widget (make-instance 'qui:panel :title "An empty panel :(") w) (qui:add-...
6991e445a5226176e75b2c4cc5bf1a6331da3d906e1310e4ddf3510f330512f6
processone/ejabberd
eldap_pool.erl
%%%------------------------------------------------------------------- %%% File : eldap_pool.erl Author : < > %%% Purpose : LDAP connections pool Created : 12 Nov 2006 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2023 ProcessOne %%% %%% This program is free software; you can redistribute it and/...
null
https://raw.githubusercontent.com/processone/ejabberd/c103182bc7e5b8a8ab123ce02d1959a54e939480/src/eldap_pool.erl
erlang
------------------------------------------------------------------- File : eldap_pool.erl Purpose : LDAP connections pool 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...
Author : < > Created : 12 Nov 2006 by < > ejabberd , Copyright ( C ) 2002 - 2023 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 ...
f922eb85c9484499a9b2870d1bd8e66a588d7ea804e3ff108a76f9c605579ad4
REPROSEC/dolev-yao-star
Vale_Def_Words_s.ml
open Prims type 'a two = { lo: 'a ; hi: 'a } let __proj__Mktwo__item__lo : 'a . 'a two -> 'a = fun projectee -> match projectee with | { lo; hi;_} -> lo let __proj__Mktwo__item__hi : 'a . 'a two -> 'a = fun projectee -> match projectee with | { lo; hi;_} -> hi type 'a four = { lo0: 'a ; lo1: 'a ; hi2: 'a ...
null
https://raw.githubusercontent.com/REPROSEC/dolev-yao-star/d97a8dd4d07f2322437f186e4db6a1f4d5ee9230/concrete/hacl-star-snapshot/ml/Vale_Def_Words_s.ml
ocaml
open Prims type 'a two = { lo: 'a ; hi: 'a } let __proj__Mktwo__item__lo : 'a . 'a two -> 'a = fun projectee -> match projectee with | { lo; hi;_} -> lo let __proj__Mktwo__item__hi : 'a . 'a two -> 'a = fun projectee -> match projectee with | { lo; hi;_} -> hi type 'a four = { lo0: 'a ; lo1: 'a ; hi2: 'a ...
30dbbbb6e182bf7a302c46963388a9f8278d0b072728da7494859d96be084108
apache/couchdb-chttpd
chttpd_auth_request.erl
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 distributed under the License is distributed on an " A...
null
https://raw.githubusercontent.com/apache/couchdb-chttpd/74002101513c03df74a4c25f3c892f5d003fa5da/src/chttpd_auth_request.erl
erlang
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 WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations...
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not distributed under the License is distributed on an " AS IS " BASIS , WITHOUT -module(chttpd_auth_request). -export([authorize_request/1]). -include_lib("couch/include/couch_db.hrl"). authorize_request(#httpd{auth=Auth, user_ctx=Ctx}...
814baf5e4c33bc03ebc76a60efb876412638cf194a5676c4532eaeda0605a57a
dgiot/dgiot
dgiot_hjt212_decoder.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 - 2021 DGIOT Technologies Co. , Ltd. All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy...
null
https://raw.githubusercontent.com/dgiot/dgiot/a6b816a094b1c9bd024ce40b8142375a0f0289d8/apps/dgiot_hjt212/src/protocol/dgiot_hjt212_decoder.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2020 - 2021 DGIOT Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(dgiot_hjt212_decoder). -include_lib("dgiot_hjt212.hrl"). -author("stoneliu"). -include...
acfbe9962543cc01587374f06b43ecc4f1484eae1d40a578faadd9ab8110e56f
vrnithinkumar/ETC
grad.erl
-module(grad). % -export([pattern_test/1]). -spec pattern_test(integer()) -> {}. pattern_test(1) -> true; pattern_test(X) -> {}.
null
https://raw.githubusercontent.com/vrnithinkumar/ETC/b2954186e2bc56d9308bb9858c98b6dbe9c3c6ac/btc_test_suit/test_cases/grad.erl
erlang
-export([pattern_test/1]).
-module(grad). -spec pattern_test(integer()) -> {}. pattern_test(1) -> true; pattern_test(X) -> {}.
48e7144e7ec7cfe0d69d110b97d4a6e2ecd33039b05074a4354403d5eace5272
hemml/OMGlib
omgui.lisp
(defpackage :omgui (:use cl omg jscl bordeaux-threads omgdaemon) (:export add-event-handler add-style add-youtube-player append-element async-bind allow-page-close browser-case check-element close-current-dialog creat...
null
https://raw.githubusercontent.com/hemml/OMGlib/4a9007e809eac2f066d8010484e4051188f74604/omgui.lisp
lisp
the callback is called after every field update use: (browser-case (:opera (jslog "Opera!")) (:edge (jslog "Edge!"))) (t (jslog "Unknown browser!"))
(defpackage :omgui (:use cl omg jscl bordeaux-threads omgdaemon) (:export add-event-handler add-style add-youtube-player append-element async-bind allow-page-close browser-case check-element close-current-dialog creat...
de90d17e48e70983905f8c352f372c03ae9fbd852b6e383ce95b6d212add4ae2
shamazmazum/easy-audio
flac2wav.lisp
Copyright ( c ) 2012 , ;; All rights reserved. ;; Redistribution and use in source and binary forms, with or without ;; modification, are permitted provided that the following conditions are met: 1 . Redistributions of source code must retain the above copyright notice , this ;; list of conditions and the fo...
null
https://raw.githubusercontent.com/shamazmazum/easy-audio/4944f4ac12ffbe96f2d6bb7b116deae8203080e8/flac/examples/flac2wav.lisp
lisp
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: list of conditions and the following disclaimer. this list of conditions and the following disclaimer in the documentation and/or other materi...
Copyright ( c ) 2012 , 1 . Redistributions of source code must retain the above copyright notice , this 2 . Redistributions in binary form must reproduce the above copyright notice , THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " AND DISCLAIMED . IN NO EVENT SHALL THE COPYR...
ccd6d6f92176fa93cba543bca2c890729500df57fcb823dfb44161369350e197
owickstrom/komposition
Base.hs
{-# LANGUAGE ConstraintKinds #-} # LANGUAGE FlexibleContexts # # LANGUAGE PolyKinds # {-# LANGUAGE RankNTypes #-} module Komposition.Application.Base ((>>), (>>=), ivoid, Application, module X) where import Komposition.Prelude as X hiding (State, get, (>>), ...
null
https://raw.githubusercontent.com/owickstrom/komposition/64893d50941b90f44d77fea0dc6d30c061464cf3/src/Komposition/Application/Base.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE RankNTypes #
# LANGUAGE FlexibleContexts # # LANGUAGE PolyKinds # module Komposition.Application.Base ((>>), (>>=), ivoid, Application, module X) where import Komposition.Prelude as X hiding (State, get, (>>), (>>=)) import Control.Ef...
155efce2d3bef747e97ef76595ca0a79775a14ff23ed64ef0b8f00b0339a15df
mfoemmel/erlang-otp
xref_scanner.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2000 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/tools/src/xref_scanner.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 2000 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang 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 " -module(xref_scanner). -export([scan/1])....
a64573a126aa5b9fef43124df3862e3ddefb4de187f5ed7b43706bfd3d4b0fe7
ezyang/reflex-backpack
Base.hs
| This module defines ' PostBuildT ' , the standard implementation of ' PostBuild ' . # LANGUAGE CPP # # LANGUAGE DataKinds # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE RecursiveDo # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # ...
null
https://raw.githubusercontent.com/ezyang/reflex-backpack/247898fde872d8909392ebe2539f4623c7449067/host/Reflex/PostBuild/Base.hs
haskell
# OPTIONS_GHC -fplugin=Reflex.Optimizer # immediately after the action is finished running; no other 'Event's should # INLINABLE getPostBuild # # INLINABLE newEventWithTrigger # TODO: Avoid doing this headE so many times; once per loweredDm' firing ought to be OK, but it's not totally trivial to do because result' mig...
| This module defines ' PostBuildT ' , the standard implementation of ' PostBuild ' . # LANGUAGE CPP # # LANGUAGE DataKinds # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE RecursiveDo # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # ...
198ef95c5ae8a52f5b7541ad3289cd7ef110843a930596b6b17c3dd2f3d2308d
haskell/time
CalendarDiffTime.hs
{-# LANGUAGE Safe #-} module Data.Time.LocalTime.Internal.CalendarDiffTime ( -- * Calendar Duration module Data.Time.LocalTime.Internal.CalendarDiffTime, ) where import Control.DeepSeq import Data.Data import Data.Time.Calendar.CalendarDiffDays import Data.Time.Clock.Internal.NominalDiffTime data CalendarDif...
null
https://raw.githubusercontent.com/haskell/time/919018368011669090dd8d59cfe3daacd3d30529/lib/Data/Time/LocalTime/Internal/CalendarDiffTime.hs
haskell
# LANGUAGE Safe # * Calendar Duration | Additive | Additive
module Data.Time.LocalTime.Internal.CalendarDiffTime ( module Data.Time.LocalTime.Internal.CalendarDiffTime, ) where import Control.DeepSeq import Data.Data import Data.Time.Calendar.CalendarDiffDays import Data.Time.Clock.Internal.NominalDiffTime data CalendarDiffTime = CalendarDiffTime { ctMonths :: Intege...
ddad16f18540144f695292e99a0f69280e614331dbea6e42d4826f6fc0547d69
hasktorch/hasktorch
Vision.hs
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE KindSignatures # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # # LANGUAGE QuasiQuotes # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # module Torch.Vision where import qualified Codec.Pictu...
null
https://raw.githubusercontent.com/hasktorch/hasktorch/c34996b0a401a5b1b98b5774e892fde88adaa079/hasktorch/src/Torch/Vision.hs
haskell
dimensionality of the data mnist data representation indices of the dataset / Display an MNIST image tensor as ascii text [batch, height, width, channel] -> [batch, channel, height, width] [batch, channel, height, width] -> [batch, height, width, channel]
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE KindSignatures # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # # LANGUAGE QuasiQuotes # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # module Torch.Vision where import qualified Codec.Pictu...
8071804e23bf1871b2eb59979615a5dcaff32cce2635dd45354f6146fb038362
Eduap-com/WordMat
cfftmf.lisp
;;; Compiled by f2cl version: ( " f2cl1.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl2.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl5.l , v 95098eb54f13 2013/04/01 00:45:16 toy $...
null
https://raw.githubusercontent.com/Eduap-com/WordMat/83c9336770067f54431cc42c7147dc6ed640a339/Windows/ExternalPrograms/maxima-5.45.1/share/maxima/5.45.1/share/fftpack5/lisp/cfftmf.lisp
lisp
Compiled by f2cl version: Using Lisp CMU Common Lisp snapshot-2020-04 (21D Unicode) Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t) (:coerce-assigns :as-needed) (:array-type ':array) (:array-slicing t) (:declare-common nil) (:float-format single-float))
( " f2cl1.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl2.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl5.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl6.l , v 1d5cbacbb9...
8675cbd1412de8ecd17856b0e52d24e53697d35ffe12778bfd05c1ad4c1b043e
tel/saltine
UtilProperties.hs
{-# LANGUAGE OverloadedStrings #-} module UtilProperties ( testUtils ) where import Test.Framework.Providers.QuickCheck2 import Test.Framework import Test.QuickCheck import Util import qualified Crypto.Saltine.Internal.Util as U -- | Testing the comparison of keys keyEquality :: ByteString32 -> Property keyEqua...
null
https://raw.githubusercontent.com/tel/saltine/b00e00fa8ce8bf4ee176a9d3deead57c590fc686/tests/UtilProperties.hs
haskell
# LANGUAGE OverloadedStrings # | Testing the comparison of keys
module UtilProperties ( testUtils ) where import Test.Framework.Providers.QuickCheck2 import Test.Framework import Test.QuickCheck import Util import qualified Crypto.Saltine.Internal.Util as U keyEquality :: ByteString32 -> Property keyEquality k@(ByteString32 bs1) = k === k .&. U.compare bs1 bs1 keyInequalit...
49cf46f10fb8c4616f7a768ef54f3ba72e9426192f94beaa9c3da844687ae407
antifuchs/sbcl
arith.lisp
(in-package "SB!VM") Multiplication and Division helping routines . ;;; ?? FIXME: Where are generic-* and generic-/? #+sb-assembling (define-assembly-routine multiply ((:arg x (signed-reg) nl0-offset) (:arg y (signed-reg) nl1-offset) (:res res (signed-reg) nl2-offset) (:temp tmp (unsigned...
null
https://raw.githubusercontent.com/antifuchs/sbcl/789bf105edca031aff991ad16a5fd207812336a0/src/assembly/hppa/arith.lisp
lisp
?? FIXME: Where are generic-* and generic-/? Determine the sign of the result. Make sure X is less then Y. Move abs(divident) into quo. If the remainder is negative, we need to add the absolute value of the divisor. Now we have to fix the signs of quo and rem. check for overflow We did overflow, so do the bign...
(in-package "SB!VM") Multiplication and Division helping routines . #+sb-assembling (define-assembly-routine multiply ((:arg x (signed-reg) nl0-offset) (:arg y (signed-reg) nl1-offset) (:res res (signed-reg) nl2-offset) (:temp tmp (unsigned-reg) nl3-offset) (:temp sign (unsigned-reg)...
d6dc8c2b850bf97f2da52e11925c039c761eb04dda46ae4e3e4223c2e5881f6e
uncomplicate/deep-diamond
factory.clj
Copyright ( c ) . All rights reserved . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) or later ;; which can be found in the file LICENSE at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be boun...
null
https://raw.githubusercontent.com/uncomplicate/deep-diamond/d5283602905552e3ba832245219b8b712bfba0d9/src/clojure/uncomplicate/diamond/internal/cudnn/factory.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) or later which can be found in the file LICENSE at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not rem...
Copyright ( c ) . All rights reserved . (ns uncomplicate.diamond.internal.cudnn.factory (:require [clojure.java.io :as io] [uncomplicate.commons [core :refer [Releaseable release let-release with-release view]] [utils :refer [dragan-says-ex]]] [uncomplicate.flu...
4969aaaba445b40a92f97465f004bb0e759a25eec7a0a765b2ddeb3063fe0a41
weavery/clarity.ml
compare.ml
(* This is free and unencumbered software released into the public domain. *) let rec equal_expressions a b = List.length a = List.length b && List.for_all2 equal_expression a b and equal_expression a b = match (a, b) with | Let (bindings1, body1), Let (bindings2, body2) -> equal_bindings bindings1 bindings2 ...
null
https://raw.githubusercontent.com/weavery/clarity.ml/20e48b275eaacd7fa71a7b9b7796977f0aba95cb/src/compare.ml
ocaml
This is free and unencumbered software released into the public domain.
let rec equal_expressions a b = List.length a = List.length b && List.for_all2 equal_expression a b and equal_expression a b = match (a, b) with | Let (bindings1, body1), Let (bindings2, body2) -> equal_bindings bindings1 bindings2 && equal_expressions body1 body2 | Literal a, Literal b -> equal_literal a b...
fd471e19546397786fab6d23ee34104aea3f9aece140997393ce3efd4b995f55
remixlabs/wasicaml
wc_traceglobals.ml
Copyright ( C ) 2021 by Figly , Inc. This code is free software , see the file LICENSE for details . This code is free software, see the file LICENSE for details. *) open Printf open Wc_types open Wc_control open Wc_util (* analyze the initialization code and figure out which globals correspond to wh...
null
https://raw.githubusercontent.com/remixlabs/wasicaml/81db46bec0a52a4ce4ae74ac1e4a2b0a40af5b29/src/wasicaml/wc_traceglobals.ml
ocaml
analyze the initialization code and figure out which globals correspond to which global functions maps label to stack shape of camlstack maps global index to initvalue (Unknown not possible) Hashtbl.iter (fun i iv -> print_initvalue (sprintf "global%d" i) iv ) globals_table; flush stdou...
Copyright ( C ) 2021 by Figly , Inc. This code is free software , see the file LICENSE for details . This code is free software, see the file LICENSE for details. *) open Printf open Wc_types open Wc_control open Wc_util type initvalue = | Unknown | Function of { label:int } | FuncInEnv of { func...
7644dc2213ac2971fc694df36288e1d4088f02dc2356d867e343bbf73a2236b5
jellelicht/guix
system.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2014 , 2015 , 2016 < > Copyright © 2016 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software F...
null
https://raw.githubusercontent.com/jellelicht/guix/83cfc9414fca3ab57c949e18c1ceb375a179b59c/guix/scripts/system.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 © 2014 , 2015 , 2016 < > Copyright © 2016 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (guix scripts system) #:use-module (guix config) #:use-...
9c0289628167cbebbaae151eb1d72b384babba8aa2300d0432967467492a57c0
avsm/eeww
test.ml
--------------------------------------------------------------------------- Copyright ( c ) 2016 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (...
null
https://raw.githubusercontent.com/avsm/eeww/a316137bc7550870c9fd0c6a907d87e9d9810ae4/lib/kcas/test/test.ml
ocaml
--------------------------------------------------------------------------- Copyright ( c ) 2016 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (...
0fd1427b6c02d55630a12968e6e7ee72b38862556c9ff20ce9af6fe95fd1cd31
cgoldammer/chess-database-backend
SpeedTest.hs
{-# LANGUAGE OverloadedStrings, ScopedTypeVariables, TypeFamilies #-} module Main where import Services.Helpers import Services.Service import qualified Test.Helpers as TH import Database.Esqueleto hiding (get) import Services.DatabaseHelpers import Database.Persist hiding ((==.)) import Database.Persist.Sql hiding (...
null
https://raw.githubusercontent.com/cgoldammer/chess-database-backend/03b6b8d3072941e7da395eb4371ece588093e140/apps/SpeedTest.hs
haskell
# LANGUAGE OverloadedStrings, ScopedTypeVariables, TypeFamilies #
module Main where import Services.Helpers import Services.Service import qualified Test.Helpers as TH import Database.Esqueleto hiding (get) import Services.DatabaseHelpers import Database.Persist hiding ((==.)) import Database.Persist.Sql hiding ((==.)) import Services.Types main :: IO () main = do (players, ev...
9fcca9c171b9c6321afa4a69d7074ca747adf2ff25a8c32ea889d20c27df3d89
LexiFi/gen_js_api
number.mli
type t = private Ojs.t val toString: t -> ?radix:int -> unit -> float [@@js.call] val toFixed: t -> ?fractionDigits:int -> unit -> float [@@js.call] val toExponential: t -> ?fractionDigits:int -> unit -> float [@@js.call] val toPrecision: t -> ?precision:int -> unit -> float [@@js.call] val valueOf: t -> float [@@js.c...
null
https://raw.githubusercontent.com/LexiFi/gen_js_api/69b7d0a6f79adae07b181e59b2e2053b7528143a/node-test/bindings/number.mli
ocaml
scoped non-scoped
type t = private Ojs.t val toString: t -> ?radix:int -> unit -> float [@@js.call] val toFixed: t -> ?fractionDigits:int -> unit -> float [@@js.call] val toExponential: t -> ?fractionDigits:int -> unit -> float [@@js.call] val toPrecision: t -> ?precision:int -> unit -> float [@@js.call] val valueOf: t -> float [@@js.c...
b4fff3bead98ba30139a23253905a03ea68fc85e7edff07710dd48684fbb47d9
tfausak/burrito
Burrito.hs
| Burrito is a library for parsing and rendering URI templates . -- According to [ RFC 6570]( / html / rfc6570 ): " A URI -- Template is a compact sequence of characters for describing a range of -- Uniform Resource Identifiers through variable expansion." Burrito implements URI templates according to the specif...
null
https://raw.githubusercontent.com/tfausak/burrito/e4475f6bc44862a36464bd8904296d68d995ead2/source/library/Burrito.hs
haskell
Template is a compact sequence of characters for describing a range of Uniform Resource Identifiers through variable expansion." Burrito can be used for all of these. If you want to get technical, its input must it should work with other schemes as well. If you're not already familiar with URI templates, I rec...
| Burrito is a library for parsing and rendering URI templates . According to [ RFC 6570]( / html / rfc6570 ): " A URI implements URI templates according to the specification in that RFC . The term " uniform resource identifiers " ( URI ) is often used interchangeably with other related terms like " internat...
5bdc70744e9db55917f46fe5bfd350874eaec6b3fdd09df2893bb172463d9de7
gergoerdi/tandoori
let-monoenv.hs
undefined = undefined toUpper :: Char -> Char toUpper = undefined foo x = let y = toUpper x in True
null
https://raw.githubusercontent.com/gergoerdi/tandoori/515142ce76b96efa75d7044c9077d85394585556/input/let-monoenv.hs
haskell
undefined = undefined toUpper :: Char -> Char toUpper = undefined foo x = let y = toUpper x in True
b09c71b65ac08b506a10c3cce8fbe767f087347e86a02e2f95ddf8ee20148ee2
meamy/feynman
Core.hs
{-# LANGUAGE Rank2Types #-} module Feynman.Core where import Data.List import Control.Monad import Data.Set (Set) import qualified Data.Set as Set import Data.Map (Map) import qualified Data.Map as Map import Feynman.Algebra.Base type ID = String type Loc = Int {- Phase angles -} Phase angles either have the for...
null
https://raw.githubusercontent.com/meamy/feynman/2291ef5c388652dd352509da1d424e3fbd7b8da5/src/Feynman/Core.hs
haskell
# LANGUAGE Rank2Types # Phase angles Phase of theta Circuits Transformations WARNING: this is incorrect Removes all swap gates by re-indexing Printing Test
module Feynman.Core where import Data.List import Control.Monad import Data.Set (Set) import qualified Data.Set as Set import Data.Map (Map) import qualified Data.Map as Map import Feynman.Algebra.Base type ID = String type Loc = Int Phase angles either have the form pi*(a/2^b ) reduced mod 2 , or theta data Ang...
ec9f6c73f7054c8308c1cf527a9ce39358bd0e183040bb32993ae6c6f8faa6d5
mikera/clisk
patterns.clj
(ns ^{:author "mikera" :doc "Library of clisk patterns generators"} clisk.patterns "Patterns and pattern generators" (:use [clisk core util node functions]) (:import java.awt.image.BufferedImage) (:import clisk.noise.Perlin) (:import clisk.noise.Simplex) (:import clisk.generator.Voronoi2D) ) (se...
null
https://raw.githubusercontent.com/mikera/clisk/44dd35fabbae68ad44f0e8ac2dec4c580203f7b9/src/main/clojure/clisk/patterns.clj
clojure
(ns ^{:author "mikera" :doc "Library of clisk patterns generators"} clisk.patterns "Patterns and pattern generators" (:use [clisk core util node functions]) (:import java.awt.image.BufferedImage) (:import clisk.noise.Perlin) (:import clisk.noise.Simplex) (:import clisk.generator.Voronoi2D) ) (se...
db2531aa39407c487e499085b005b89c5f322d68dddd8fb1d6232f430faab926
tweag/asterius
T13733.hs
module Main where delayedId :: a -> a delayedId x = x {-# INLINE [0] delayedId #-} alwaysTrue :: [Integer]-> Bool alwaysTrue xs = xs == delayedId xs {-# NOINLINE alwaysTrue #-} # RULES " [ Integer ] " forall ( xs : : [ Integer ] ) . xs = = xs = True # "[Integer] Eq Refl" forall (xs :: [Integer]). xs ==...
null
https://raw.githubusercontent.com/tweag/asterius/e7b823c87499656860f87b9b468eb0567add1de8/asterius/test/ghc-testsuite/simplCore/T13733.hs
haskell
# INLINE [0] delayedId # # NOINLINE alwaysTrue #
module Main where delayedId :: a -> a delayedId x = x alwaysTrue :: [Integer]-> Bool alwaysTrue xs = xs == delayedId xs # RULES " [ Integer ] " forall ( xs : : [ Integer ] ) . xs = = xs = True # "[Integer] Eq Refl" forall (xs :: [Integer]). xs == xs = True #-} main = putStrLn $ if alwaysTrue undefined...