_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
ca67f24f4891546960e2dd191141e58e23775e5f2c7062c12e08555159a92ee7
roelvandijk/numerals
TestData.hs
| [ @ISO639 - 1@ ] da [ @ISO639 - 2@ ] dan [ @ISO639 - 3@ ] dan [ @Native name@ ] dansk [ @English name@ ] Danish [@ISO639-1@] da [@ISO639-2@] dan [@ISO639-3@] dan [@Native name@] dansk [@English name@] Danish -} module Text.Numeral.Langu...
null
https://raw.githubusercontent.com/roelvandijk/numerals/b1e4121e0824ac0646a3230bd311818e159ec127/src-test/Text/Numeral/Language/DAN/TestData.hs
haskell
------------------------------------------------------------------------------ Imports ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Test data ---------------------------------------------------------------...
| [ @ISO639 - 1@ ] da [ @ISO639 - 2@ ] dan [ @ISO639 - 3@ ] dan [ @Native name@ ] dansk [ @English name@ ] Danish [@ISO639-1@] da [@ISO639-2@] dan [@ISO639-3@] dan [@Native name@] dansk [@English name@] Danish -} module Text.Numeral.Langu...
305eebf046c3de01d83adae4f69cbdfd87ff89a63da4e1d9c785d1fde2863380
tommaisey/aeon
pv-bin-wipe.help.scm
;; (pv-bin-wipe bufferA bufferB wipe) Combine low and high bins from two inputs Copies low bins from one input and the high bins of the other . ;; bufferA - fft buffer A. ;; bufferB - fft buffer B. ;; wipe - can range between -1 and +1. ;; if wipe == 0 then the output is the same as inA. ;; if wipe > 0 then it...
null
https://raw.githubusercontent.com/tommaisey/aeon/80744a7235425c47a061ec8324d923c53ebedf15/libs/third-party/sc3/rsc3/help/ugen/fft/pv-bin-wipe.help.scm
scheme
(pv-bin-wipe bufferA bufferB wipe) bufferA - fft buffer A. bufferB - fft buffer B. wipe - can range between -1 and +1. if wipe == 0 then the output is the same as inA. if wipe > 0 then it begins replacing with bins from inB from the bottom up. if wipe < 0 then it begins replacing with bins from inB from the to...
Combine low and high bins from two inputs Copies low bins from one input and the high bins of the other . (with-sc3 (lambda (fd) (async fd (b-alloc 10 2048 1)) (async fd (b-alloc 11 2048 1)) (async fd (b-alloc-read 12 "/home/rohan/audio/metal.wav" 0 0)))) (let* ((a (mul (white-noise ar) 0.2)) (b...
28025c30fc3d963f1ee887b3d4265fbc4388f21dc2efdcdec5894b6d6ae2f2ce
HeinrichApfelmus/reactive-banana
TicTacToe.hs
---------------------------------------------------------------------------- reactive - banana - wx Example : A version of TicTacToe with eclectic interface elements Original Author : ----------------------------------------------------------------------------- reactive-banana-wx ...
null
https://raw.githubusercontent.com/HeinrichApfelmus/reactive-banana/79482f3e9bfab493e2d2197f70cdb11787b33a03/reactive-banana-wx/src/TicTacToe.hs
haskell
-------------------------------------------------------------------------- --------------------------------------------------------------------------- ----------------------------------------------------------------------------} allows pattern signatures like do (b :: Behavior Int) <- stepper 0 ... allows...
reactive - banana - wx Example : A version of TicTacToe with eclectic interface elements Original Author : reactive-banana-wx Example: A version of TicTacToe with eclectic interface elements Original Author: Gideon Sireling # LANGUAGE ScopedTypeVariables # # LANGUAGE Re...
3afbf15b5728e3c2496f1a97a326b920c3c6c3b78fea4b173508fdf143dd3ced
ekmett/intern
Text.hs
# LANGUAGE TypeFamilies , FlexibleInstances # module Data.Interned.Internal.Text ( InternedText(..) ) where import Data.String import Data.Interned import qualified Data.Text as T import Data.Text (Text) import Data.Hashable data InternedText = InternedText { internedTextId :: {-# UNPACK #-} !Id , uninternedT...
null
https://raw.githubusercontent.com/ekmett/intern/4f21bb83c0072e3e1615a5f11d36e4f9484d6e8b/Data/Interned/Internal/Text.hs
haskell
# UNPACK # # UNPACK #
# LANGUAGE TypeFamilies , FlexibleInstances # module Data.Interned.Internal.Text ( InternedText(..) ) where import Data.String import Data.Interned import qualified Data.Text as T import Data.Text (Text) import Data.Hashable data InternedText = InternedText } instance IsString InternedText where fromString =...
597884700bd0528114f42abd05854b2e707d247966d5c5efa36847c5be5f2122
samrushing/irken-compiler
sig.scm
;; -*- Mode: Irken -*- (require "lib/crypto/sodium.scm") (require "lib/crypto/ctbig.scm") (require "lib/crypto/pem.scm") (require "lib/asn1/ber.scm") PKCS # 1 v2.2 ( RFC 8017 ) (define (read-pem-asn1 path) (with-file file (file/open-read path) (match ((pem-gen (file-char-generator file))) with (maybe:y...
null
https://raw.githubusercontent.com/samrushing/irken-compiler/690da48852d55497f873738df54f14e8e135d006/lib/crypto/sig.scm
scheme
-*- Mode: Irken -*- note: no NULL -ietf-curdle-pkix-10 XXX need to handle attributes & public key... version n e d p q assumes sha256 5.2.1 RSASP1 (big-add m2 (big-mul skey.q h)))) This version uses the translated version of BearSSL's constant-time i31 code. (printf " --- sign ---\n") (printf "diges...
(require "lib/crypto/sodium.scm") (require "lib/crypto/ctbig.scm") (require "lib/crypto/pem.scm") (require "lib/asn1/ber.scm") PKCS # 1 v2.2 ( RFC 8017 ) (define (read-pem-asn1 path) (with-file file (file/open-read path) (match ((pem-gen (file-char-generator file))) with (maybe:yes (:tuple kind ber)) ...
208ff3530fb7b493c703e21246e1c9d193175a1e823c80603e79aed3926f8408
charlieg/Sparser
determiner1.lisp
;;; -*- Mode:LISP; Syntax:Common-Lisp; Package:SPARSER -*- copyright ( c ) 1993,1994,1995 -- all rights reserved ;;; ;;; File: "determiner" ;;; Module: "grammar;rules:HA:" Version : 0.4 November 1995 initiated 6/13/93 v2.3 , completely new model based on independent notion of " segments " . ...
null
https://raw.githubusercontent.com/charlieg/Sparser/b9bb7d01d2e40f783f3214fc104062db3d15e608/Sparser/code/s/grammar/rules/HA/determiner1.lisp
lisp
-*- Mode:LISP; Syntax:Common-Lisp; Package:SPARSER -*- File: "determiner" Module: "grammar;rules:HA:" daughters and leave that calculation to the automatic routines. Called from Apply-HA-to-current-segment coming from sf-action/discontinuous-edges after all the within-segment parsing has finished,...
copyright ( c ) 1993,1994,1995 -- all rights reserved Version : 0.4 November 1995 initiated 6/13/93 v2.3 , completely new model based on independent notion of " segments " . fleshed out 6/16 0.1 ( 7/8 ) added flag and dispatch to DA routines 0.2 ( 5/2/94 ) changed details of call to make the edg...
1ed51bf049bf0db3e79554bb36f03651b22f499ff179a189efe1c2dfa9f8b022
oblivia-simplex/roper
ropush-test.lisp
(in-package :ropush) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;; Test Functions ;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (defparameter code-stack-1 (list `(:int . 1000) (cons :bytes #(1 2 3 4 5 6 7 8 9 10 ...
null
https://raw.githubusercontent.com/oblivia-simplex/roper/7714ccf677359126ca82446843030fac89c6655a/lisp/roper/ropush-test.lisp
lisp
Test Functions ;;;;
(in-package :ropush) (defparameter code-stack-1 (list `(:int . 1000) (cons :bytes #(1 2 3 4 5 6 7 8 9 10 11 12)) `(:op . ,!bytes->ints) `(:int . 1) `(:op . ,!int-<) `(:op . ,!code-if-else) `(:op . ,!int-dup) `(:op . ,!code-dup) `(:op . ,!int-over) `(:op . ,!code->womb) `(:op . ,!int-rot+) `(:op . ,!co...
435e852bb4e94effa81e595fa23acf171221c1a3ce87b224bd515eb188b9354a
lexi-lambda/litpub
route-unit.rkt
#lang racket/unit (require web-server/dispatch "route-sig.rkt" "handler/api-sig.rkt" "handler/feedback-sig.rkt" "handler/story-sig.rkt") (import (prefix api: api^) (prefix feedback: feedback^) (prefix stories: story^)) (export route^) (define-values [server-dispat...
null
https://raw.githubusercontent.com/lexi-lambda/litpub/2f326c1c0e0ee8cad0b8b3f7f7b4a49a02ac62b5/route-unit.rkt
racket
#lang racket/unit (require web-server/dispatch "route-sig.rkt" "handler/api-sig.rkt" "handler/feedback-sig.rkt" "handler/story-sig.rkt") (import (prefix api: api^) (prefix feedback: feedback^) (prefix stories: story^)) (export route^) (define-values [server-dispat...
20aa68b1ba80545cfd702312e02e19f2b9e879ae94286e5fae93005ed4ff8b34
javalib-team/sawja
jBirSSAPP.mli
* This file is part of SAWJA * Copyright ( c)2013 ( INRIA ) * * This program is free software : you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation , either version 3 of * the License , or ( at your option ) a...
null
https://raw.githubusercontent.com/javalib-team/sawja/5b46e4afc024092cdeaf8ba125f0c5ac05cb9137/src/jBirSSAPP.mli
ocaml
* get internal representation. * [goto_absolute pp i]: return the program pointer at instruction [i] in the method of program pointer [pp]. * [goto_relative pp i]: return the program pointer at instruction [i'+i] (with i' the current program point of pp)in the method of program pointer [pp]. * get the instr...
* This file is part of SAWJA * Copyright ( c)2013 ( INRIA ) * * This program is free software : you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation , either version 3 of * the License , or ( at your option ) a...
587ee30fc9fe97c399a268ec706cb53bc58fb434600b1f7b2a7b192d8c7776aa
mbutterick/aoc-racket
stub.rkt
#lang debug br #;(define (★) ) #;(★) #;(define (★★) ) #;(★★) #;(module+ test (require rackunit) (check-equal? (time (★)) 454) (check-equal? (time (★★)) 566))
null
https://raw.githubusercontent.com/mbutterick/aoc-racket/2c6cb2f3ad876a91a82f33ce12844f7758b969d6/2018/stub.rkt
racket
(define (★) (★) (define (★★) (★★) (module+ test
#lang debug br ) ) (require rackunit) (check-equal? (time (★)) 454) (check-equal? (time (★★)) 566))
a96d212cb7230d5afc090b57662142fdb2ede4a868619e8fdd25b2026c2021a5
dgiot/dgiot
dgiot_parse_auth.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_parse/src/dgiot_parse_auth.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_parse_auth). -author("dgiot"). -include("dgiot_parse.hrl"). -include_lib("dgiot/...
5faa6fafedce8559fa2310e26e757768191cb3a281f08995e50ba22d60af996c
ejgallego/coq-serapi
ser_tacentries.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2016 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/ejgallego/coq-serapi/61d2a5c092c1918312b8a92f43a374639d1786f9/serlib/plugins/ltac/ser_tacentries.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** ************************************...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2016 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright 2016 - 2018 MINES...
1e469623bc4233f5bf59323e9b3f3376e2cf9810cdd1106a9d310a31e1866118
shagun6093/PCPF-Practical
Area_Volume_Perimeter.hs
perform various fuction like volume , area , perimeter in haskell --area of triangle main = do putStrLn("Enter magnitude of 3 sides of triangle") ain <- getLine let a = (read ain :: Float) bin <- getLine let b = (read bin :: Float) cin <- getLine let c = (read cin :: F...
null
https://raw.githubusercontent.com/shagun6093/PCPF-Practical/e12bec936e893be4be14496a075d5e30a9602f51/HASKELL/Area_Volume_Perimeter.hs
haskell
area of triangle int doesnt work area of square perimeter of rectangle volume of sphere volume of cube
perform various fuction like volume , area , perimeter in haskell main = do putStrLn("Enter magnitude of 3 sides of triangle") ain <- getLine let a = (read ain :: Float) bin <- getLine let b = (read bin :: Float) cin <- getLine let c = (read cin :: Float) let s ...
b0805828370f9a12ba06106234238c66c83f873fc35e5b455e747c2f562e8c7c
kmi/irs
refine-query.lisp
;;; Mode: Lisp; Package: http Author : The Open University (in-package "HTTP") (http::define-page ("Refined Results Page" :func-name web-onto::refine-lois-results :class :user :bgcolor ...
null
https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/src/webonto/refine-query.lisp
lisp
Mode: Lisp; Package: http
Author : The Open University (in-package "HTTP") (http::define-page ("Refined Results Page" :func-name web-onto::refine-lois-results :class :user :bgcolor web-onto::*default-page-c...
a2987a55a26f62d82930c6ae7e059e046d7bcd6693db9b21a5c966a00c051566
ichko/fmi-fp-2020-21
class.hs
import Control.Monad mainWorld :: IO () mainWorld = putStrLn "Hello World" mainGreet :: IO () mainGreet = do putStrLn "Hello, what's your name?" name <- getLine putStrLn ("Hey " ++ name ++ ", you rock!") -- > By convention, we don't usually specify a type declaration for main mainCalculator :: IO () mainCalcul...
null
https://raw.githubusercontent.com/ichko/fmi-fp-2020-21/83dea8db7666e7a8a372d82301d71c79d5b798ff/week-06/class.hs
haskell
> By convention, we don't usually specify a type declaration for main как return се ориентира за типа си (обичайно от контекста) какво ни дава do като синтаксис
import Control.Monad mainWorld :: IO () mainWorld = putStrLn "Hello World" mainGreet :: IO () mainGreet = do putStrLn "Hello, what's your name?" name <- getLine putStrLn ("Hey " ++ name ++ ", you rock!") mainCalculator :: IO () mainCalculator = do putStrLn "a + b = ? калкулатор\nдай a:" a <- getLine putS...
074a27393c64762a322f961cb6e0f12c37e9b26d77d2815b4a028b01d74f9938
craigfe/progress
main.ml
let examples = Examples. [ ( "bar_styles" , "Demo of possible progress bar configurations" , Bar_styles.run ) ; ("cargo", "Port of the Cargo install progress bar", Cargo.run) ; ("download", "Rainbow-coloured download sequence", Download.run) ; ("interject", "Logging while displaying a prog...
null
https://raw.githubusercontent.com/craigfe/progress/04ef71000a791bdf7da6d8c7da8af797b4aebd51/examples/main.ml
ocaml
let examples = Examples. [ ( "bar_styles" , "Demo of possible progress bar configurations" , Bar_styles.run ) ; ("cargo", "Port of the Cargo install progress bar", Cargo.run) ; ("download", "Rainbow-coloured download sequence", Download.run) ; ("interject", "Logging while displaying a prog...
679d772f07e353416b61a2572a5d0077e5702fa75f85fdad8c370f8b774fbb72
fragnix/fragnix
System.PosixCompat.Types.hs
# LANGUAGE Haskell98 # # LINE 1 " src / System / PosixCompat / Types.hs " # # LANGUAGE CPP # # LANGUAGE GeneralizedNewtypeDeriving # | This module re - exports the types from @System . . Types@ on all platforms . On Windows ' UserID ' , ' GroupID ' and ' LinkCount...
null
https://raw.githubusercontent.com/fragnix/fragnix/b9969e9c6366e2917a782f3ac4e77cce0835448b/tests/packages/scotty/System.PosixCompat.Types.hs
haskell
# LANGUAGE Haskell98 # # LINE 1 " src / System / PosixCompat / Types.hs " # # LANGUAGE CPP # # LANGUAGE GeneralizedNewtypeDeriving # | This module re - exports the types from @System . . Types@ on all platforms . On Windows ' UserID ' , ' GroupID ' and ' LinkCount...
dea90aeae303c42448cdbcd02d643990f031b50b38ebb40a31d5610afdb9dbf5
lpeterse/haskell-ssh
Key.hs
{-# LANGUAGE MultiWayIf #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TypeFamilies #-} module Network.SSH.Key ( KeyPair (..) , newKeyPair , PublicKey (..) , decodePrivateKeyFile , toPublicKey -- * Internal , parseBase64 ) where import ...
null
https://raw.githubusercontent.com/lpeterse/haskell-ssh/d1a614b6bf30c4932ee5a66efcae6e71680b4819/src/hssh-internal/Network/SSH/Key.hs
haskell
# LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # # LANGUAGE TypeFamilies # * Internal import qualified Crypto.KDF.BCryptPBKDF as BCryptPBKDF This is currently not included in . Re - enable if my PR has been merged . impossible This is currently not included in c...
module Network.SSH.Key ( KeyPair (..) , newKeyPair , PublicKey (..) , decodePrivateKeyFile , toPublicKey , parseBase64 ) where import Control.Applicative (many, (<|>)) import Control.Monad (replicateM, void, when) import Control.Monad.Fail (Mona...
8934b615de402cc49215a4a248a5cb2039b6a6072328e708d8c52991dc689a9a
poroh/ersip_proxy
erproxy_domain.erl
%% Copyright ( c ) 2018 Dmitry Poroh %% All rights reserved. Distributed under the terms of the MIT License . See the LICENSE file . %% %% Stateless proxy worker supervisor %% -module(erproxy_domain). -export([is_own/1]). %%%=================================================================== %%% API %%%=========...
null
https://raw.githubusercontent.com/poroh/ersip_proxy/8a67e676e255c07a63b88b970ef82ed4762debcb/apps/erproxy/src/erproxy_domain.erl
erlang
All rights reserved. Stateless proxy worker supervisor =================================================================== API =================================================================== =================================================================== Internal Implementation ==========================...
Copyright ( c ) 2018 Dmitry Poroh Distributed under the terms of the MIT License . See the LICENSE file . -module(erproxy_domain). -export([is_own/1]). is_own(CheckURI) -> MyURI = erproxy_listener:uri(), uri_transport_equal(CheckURI, MyURI). uri_transport_equal(URI1, URI2) -> uri_transport(URI1) ...
620b5b0eda1819f27fef6a08d269aa38676147bbeb96fbe623abc847662cfac5
sealchain-project/sealchain
MerklePatricia.hs
| This is an implementation of the modified Patricia database described in the Ethereum Yellowpaper -- (<>). This modified version works like a canonical Merkle Patricia database , but includes certain -- optimizations. In particular, a new type of "shortcut node" has been -- added to represent multiple tradit...
null
https://raw.githubusercontent.com/sealchain-project/sealchain/e97b4bac865fb147979cb14723a12c716a62e51e/mpt/src/Sealchain/Mpt/MerklePatricia.hs
haskell
(<>). This modified version works like a optimizations. In particular, a new type of "shortcut node" has been added to represent multiple traditional nodes that fall in a linear string (ie- a stretch of parent child nodes where no branch choices exist). snapshot of all key-value pairs at a given time can be lo...
| This is an implementation of the modified Patricia database described in the Ethereum Yellowpaper canonical Merkle Patricia database , but includes certain A effeciently retains its full history , and a The underlying data is actually stored in RocksDB . This module . module Sealchain.Mpt.Merkle...
f777808db9527522e952fb46664c680ed7c0907ad033d197af2b3588b7dd2f2c
michaelzenz/jecci
db.clj
(ns jecci.common.db (:require [clojure.tools.logging :refer :all] [clojure.string :as str] [jecci.interface.db :as idb] [jepsen.db :as db])) ; implementation of jepsen.db/DB (def db (if-let [_db idb/db] _db (throw (Exception. "MUST Implement db to Run jepsen!!!!"))))
null
https://raw.githubusercontent.com/michaelzenz/jecci/81ee068601c31a14fe642f93d30223c2a8ced04d/src/jecci/common/db.clj
clojure
implementation of jepsen.db/DB
(ns jecci.common.db (:require [clojure.tools.logging :refer :all] [clojure.string :as str] [jecci.interface.db :as idb] [jepsen.db :as db])) (def db (if-let [_db idb/db] _db (throw (Exception. "MUST Implement db to Run jepsen!!!!"))))
10fe46d9d18068c9414e9d04018d067c874acc83704f0de57e62e9bd6add34bd
realworldocaml/book
ppx_hash_expander.mli
open Ppxlib val hash_fold_type : loc:Location.t -> core_type -> core_type val hash_fold_core_type : core_type -> expression (** [hash_core_type ty] is an expression of type [Hash.state -> ty -> Hash.state] *) val hash_type : loc:Location.t -> core_type -> core_type val hash_core_type : core_type -> expression val st...
null
https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/ppx_hash/expander/ppx_hash_expander.mli
ocaml
* [hash_core_type ty] is an expression of type [Hash.state -> ty -> Hash.state]
open Ppxlib val hash_fold_type : loc:Location.t -> core_type -> core_type val hash_fold_core_type : core_type -> expression val hash_type : loc:Location.t -> core_type -> core_type val hash_core_type : core_type -> expression val str_attributes : Attribute.packed list val str_type_decl : loc:Location.t -> path...
ad54ff073b8cfe6615b1ce817eb35fa4c0ac5f5fd002d43b97e6234ce4f8005b
Plutonomicon/plutarch-plutus
Scripts.hs
# LANGUAGE FlexibleInstances # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -Wno - orphans # module Plutarch.Api.V1.Scripts ( * API Types PDatum (PDatum), PDatumHash (PDatumHash), PRedeemer (PRedeemer), PRedeemerHash (PRedeemerHash), PScriptHash (PScriptHash), ) where import PlutusLedgerApi.V1 qualifi...
null
https://raw.githubusercontent.com/Plutonomicon/plutarch-plutus/9b83892057f2aaaed76e3af6193ad1ae242244cc/Plutarch/Api/V1/Scripts.hs
haskell
# LANGUAGE FlexibleInstances # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -Wno - orphans # module Plutarch.Api.V1.Scripts ( * API Types PDatum (PDatum), PDatumHash (PDatumHash), PRedeemer (PRedeemer), PRedeemerHash (PRedeemerHash), PScriptHash (PScriptHash), ) where import PlutusLedgerApi.V1 qualifi...
b6b8dc9750087cde7cd58ce7f057aee6913c542c4d5bd563cb3c598cc45bf272
kmi/irs
research-areas.lisp
Mode : Lisp ; Package : The Open University (in-package "OCML") (in-ontology aktive-portal-ontology2) This file provides a very simple notion of GENERIC - AREA - OF - INTEREST , with two main subclasses : BUSINESS - AREA and RESEARCH - AREA . ;;;Areas can have sub-areas, e.g., adaptive-hypermedia is a sub-a...
null
https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/ontologies/domains/aktive-portal-ontology2/research-areas.lisp
lisp
Package : Areas can have sub-areas, e.g., adaptive-hypermedia is a sub-area of hypermedia. used the sub-area-of slot very timidly, because I know that these are very sensitive relations!
The Open University (in-package "OCML") (in-ontology aktive-portal-ontology2) This file provides a very simple notion of GENERIC - AREA - OF - INTEREST , with two main subclasses : BUSINESS - AREA and RESEARCH - AREA . I have also done an initial list of research areas relevant to AKT . I have (def-class GE...
28061ab10d93bd74bcbc36f4babcd88b3b83585125413a0af519a786170d2796
ruHaskell/ruhaskell
Footer.hs
{-# LANGUAGE OverloadedStrings #-} module Markup.Footer where import Prelude hiding (div, span) import Text.Blaze.Html5 import qualified Text.Blaze.Html5.Attributes as A commonFooter :: Html commonFooter = footer ! A.class_ "footer" $ div ! A.class_ "container-fluid" $ div...
null
https://raw.githubusercontent.com/ruHaskell/ruhaskell/243bc5c631df96558123014befc9f6e9bdd96c91/src/Markup/Footer.hs
haskell
# LANGUAGE OverloadedStrings #
module Markup.Footer where import Prelude hiding (div, span) import Text.Blaze.Html5 import qualified Text.Blaze.Html5.Attributes as A commonFooter :: Html commonFooter = footer ! A.class_ "footer" $ div ! A.class_ "container-fluid" $ div ! A.class_ "row" $ do ...
e7c51fb43149a709164adc49a8b38c3df0d2883723fcde3372d8e5f591b28eb9
FreeProving/free-compiler
Effect.hs
-- | This module contains a data type for effect constraints. module FreeC.LiftedIR.Effect where -- | An effect constraint. -- -- These effects corresponds to type classes constraining the container used by the @Free@ monad . The order of the constructors in this data type -- determines the order of constraint...
null
https://raw.githubusercontent.com/FreeProving/free-compiler/6931b9ca652a185a92dd824373f092823aea4ea9/src/lib/FreeC/LiftedIR/Effect.hs
haskell
| This module contains a data type for effect constraints. | An effect constraint. These effects corresponds to type classes constraining the container used determines the order of constraints in the generated function declarations. are in alphabetical order by default.
module FreeC.LiftedIR.Effect where by the @Free@ monad . The order of the constructors in this data type The ' Sharing ' effect is the first effect by convention . All other effects data Effect = Sharing | Normalform | Partiality | Tracing | NonDet deriving ( Eq, Ord, Read, Show )
5378d8225be857d1a4ad0b740cd9fdecfae42084c4efc86ab95ae0d48b58cbd5
lspitzner/brittany
Test295.hs
foo a b = g a b where g a b = b + b * a -- fooooooooooooooooooooooooooooooooooo
null
https://raw.githubusercontent.com/lspitzner/brittany/a15eed5f3608bf1fa7084fcf008c6ecb79542562/data/Test295.hs
haskell
fooooooooooooooooooooooooooooooooooo
d1e379db771ad6b08a904c82cfc9ad712d6ca8b45a5081d4d4e064ca54c0e390
neel-krishnaswami/proof-checker
jlist.ml
type 'a t' = | Zero | One of 'a | Append of 'a t * 'a t and 'a t = 'a t' * int let size : 'a t -> int = snd let data : 'a t -> 'a t' = fst let zero = (Zero, 0) let one x = (One x, 1) let rec split xs = match data xs with | Zero -> zero, zero | One x -> (one x), zero | Append(ys, zs) -> (ys, zs...
null
https://raw.githubusercontent.com/neel-krishnaswami/proof-checker/e53b9e107cf1adf7d143912f7aa2d7fc4ffec341/jlist.ml
ocaml
type 'a t' = | Zero | One of 'a | Append of 'a t * 'a t and 'a t = 'a t' * int let size : 'a t -> int = snd let data : 'a t -> 'a t' = fst let zero = (Zero, 0) let one x = (One x, 1) let rec split xs = match data xs with | Zero -> zero, zero | One x -> (one x), zero | Append(ys, zs) -> (ys, zs...
150be9cc0cb0b8c6547ab46aa29e3ab45800b7474bf4e721644637d8c25cc3cf
cgrand/megaref
megaatom.clj
(ns net.cgrand.megaatom) (defprotocol AssociativeAtom (compare-and-set-in! [a path before after]) (reset-in! [a path v]) (-swap-in! [a path f args])) (defn- cas* [x p before after] (let [ok (identical? x before)] (deliver p ok) (if ok after x))) (defn swap-in! [a path f & args]) (extend-protocol Ass...
null
https://raw.githubusercontent.com/cgrand/megaref/574664d8ff9ea79d46d573d0344a80591ff2fe6b/src/net/cgrand/megaatom.clj
clojure
(ns net.cgrand.megaatom) (defprotocol AssociativeAtom (compare-and-set-in! [a path before after]) (reset-in! [a path v]) (-swap-in! [a path f args])) (defn- cas* [x p before after] (let [ok (identical? x before)] (deliver p ok) (if ok after x))) (defn swap-in! [a path f & args]) (extend-protocol Ass...
74bcaef6e03caf08362f54dfd89b54c780bb565a4616217970bcaba3e76d43c4
strymonas/staged-streams.ocaml
stream_constructors.mli
(* Functional stream *) type 'a stream_res = | Done | Cons of 'a * 'a stream | Skip of 'a stream and 'a stream = unit -> 'a stream_res type ('a,'b) either = Left of 'a | Right of 'b
null
https://raw.githubusercontent.com/strymonas/staged-streams.ocaml/91669be7d0922e9d537afa133bf0b69bce0f0d89/lib/stream_constructors.mli
ocaml
Functional stream
type 'a stream_res = | Done | Cons of 'a * 'a stream | Skip of 'a stream and 'a stream = unit -> 'a stream_res type ('a,'b) either = Left of 'a | Right of 'b
92f98ca14239e6798856c04cfd6bb5756bb6ca590faa4f226ebc58a854dc9f9e
jacekschae/learn-reitit-course-files
auth0.clj
(ns cheffy.auth0 (:require [clj-http.client :as http] [muuntaja.core :as m])) (defn get-test-token [] (->> {:content-type :json :cookie-policy :standard :body (m/encode "application/json" {:client_id "ts5NfJYbsIZ6rvhmbKykF9TkWz0tKcGS" :audience "-reiti...
null
https://raw.githubusercontent.com/jacekschae/learn-reitit-course-files/c13a8eb622a371ad719d3d9023f1b4eff9392e4c/increments/45-role-middleware/src/cheffy/auth0.clj
clojure
(ns cheffy.auth0 (:require [clj-http.client :as http] [muuntaja.core :as m])) (defn get-test-token [] (->> {:content-type :json :cookie-policy :standard :body (m/encode "application/json" {:client_id "ts5NfJYbsIZ6rvhmbKykF9TkWz0tKcGS" :audience "-reiti...
361c43c6dd51051cdfddc096724eaf8ca9280a1cc67e6bee8c5044e57ab7677d
jeromesimeon/Galax
code_functional_ops.ml
(***********************************************************************) (* *) (* GALAX *) (* XQuery Engine *) (* ...
null
https://raw.githubusercontent.com/jeromesimeon/Galax/bc565acf782c140291911d08c1c784c9ac09b432/code_selection/code/code_functional_ops.ml
ocaml
********************************************************************* GALAX XQuery Engine ...
Copyright 2001 - 2007 . $ I d : code_functional_ops.ml , v 1.19 2007/08/27 18:49:03 simeon Exp $ open Code_selection_context open Cs_util_coercion open Cs_util open Xquery_common_ast open Xquery_algebra_ast open Xquery_algebra_ast_util open Xquery_physical_algebr...
c82adc4db93ac41bf82ec209d7bdc4c110c5faa55b86eadb7bb17c7b36c743e2
mirage/irmin
logging_intf.ml
* Copyright ( c ) 2022 Tarides < > * * 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 " AND ...
null
https://raw.githubusercontent.com/mirage/irmin/abeee121a6db7b085b3c68af50ef24a8d8f9ed05/src/irmin/logging_intf.ml
ocaml
* A monotonic time source. See {!Mtime_clock} for an OS-dependent implementation. * A default {!Logs} reporter that is sensitive to the logs tags above.
* Copyright ( c ) 2022 Tarides < > * * 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 " AND ...
b332d277871d2a7a2ede020669ad773f1cb77174ce71a43956441cda47246bc1
lasp-lang/types
pure_ewflag.erl
%% Copyright ( c ) 2015 - 2016 . All Rights Reserved . %% This file is provided to you 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/lasp-lang/types/e35b9b3a32b8f580daff1a7d1102813ad530835e/src/pure_ewflag.erl
erlang
Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ----------------------------...
Copyright ( c ) 2015 - 2016 . All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY @doc Pure EWFlag CRD...
07b5dc8792a92b56f1d6aef2fa7f7d12dbb0f004dca4623167802fa4ec9030a7
dktr0/estuary
Response.hs
# LANGUAGE DeriveGeneric # This type represents all messages that an Estuary server can send to an Estuary client via WebSockets . module Estuary.Types.Response where import Data.Maybe (mapMaybe,catMaybes) import Data.Time.Clock import Data.Text import GHC.Generics import Data.Aeson import Data.Sequ...
null
https://raw.githubusercontent.com/dktr0/estuary/c08a4790533c983ba236468e0ae197df50f2109f/common/src/Estuary/Types/Response.hs
haskell
eg. ensemble successfully deleted -- could this include the request it was a response to? eg. ensemble login failure -- could this include the request it was a response to? could be deleted if ResponseOk includes Request ? ( see above ) Bool represents whether new Definition should be sent to renderer used fo...
# LANGUAGE DeriveGeneric # This type represents all messages that an Estuary server can send to an Estuary client via WebSockets . module Estuary.Types.Response where import Data.Maybe (mapMaybe,catMaybes) import Data.Time.Clock import Data.Text import GHC.Generics import Data.Aeson import Data.Sequ...
8cb545667549d21ec4074746fdccb0c095e495983e3267147634ae7f1d696611
spurious/sagittarius-scheme-mirror
%3a112.scm
-*- mode : scheme ; coding : utf-8 ; -*- ;;; ;;; SRFI-112 ;;; Copyright ( c ) 2010 - 2013 < > ;;; ;;; 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 c...
null
https://raw.githubusercontent.com/spurious/sagittarius-scheme-mirror/53f104188934109227c01b1e9a9af5312f9ce997/sitelib/srfi/%253a112.scm
scheme
coding : utf-8 ; -*- SRFI-112 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 following...
Copyright ( c ) 2010 - 2013 < > " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING (library (srfi :112) (export :all) (...
f2b40c571ed3399d598f0d4525a37894d7664e114f2f00f572158916c7652d82
screenshotbot/screenshotbot-oss
image-comparison.lisp
(defpackage :screenshotbot/model/image-comparison (:use #:cl) (:shadow #:find) (:import-from #:bknr.datastore #:persistent-class) (:import-from #:screenshotbot/model/transient-object #:make-transient-clone #:with-transient-copy) (:import-from #:bknr.datastore ...
null
https://raw.githubusercontent.com/screenshotbot/screenshotbot-oss/95f92d7c5bf1d954ede380da947217cdbc86c73c/src/screenshotbot/model/image-comparison.lisp
lisp
When loading this as a fasl in a delivered image, this throws before, after, and result are OIDs to images represented as strings. TODO: remove We used to draw the masks earlier, we don't now.
(defpackage :screenshotbot/model/image-comparison (:use #:cl) (:shadow #:find) (:import-from #:bknr.datastore #:persistent-class) (:import-from #:screenshotbot/model/transient-object #:make-transient-clone #:with-transient-copy) (:import-from #:bknr.datastore ...
7310fff495a78bb7ad0ef13c51aa19e7384a59b3cb6ebcb70a7bdd0efb89892e
replikativ/datahike-frontend
pathom.cljs
(ns app.dashboard.pathom (:require [com.wsscode.common.async-cljs :refer [go-catch <?]] [com.wsscode.pathom.core :as p] [com.wsscode.pathom.connect :as pc] [com.wsscode.pathom.connect.graphql2 :as pcg] [com.wsscode.pathom.diplomat.http :as p.http] [com.wsscode.pathom.diplomat.http.fetch :as p....
null
https://raw.githubusercontent.com/replikativ/datahike-frontend/6e3ab3bb761b41c4ffea792297286f8942a27909/src/main/app/dashboard/pathom.cljs
clojure
(ns app.dashboard.pathom (:require [com.wsscode.common.async-cljs :refer [go-catch <?]] [com.wsscode.pathom.core :as p] [com.wsscode.pathom.connect :as pc] [com.wsscode.pathom.connect.graphql2 :as pcg] [com.wsscode.pathom.diplomat.http :as p.http] [com.wsscode.pathom.diplomat.http.fetch :as p....
224514daadd83293252548c07fa580539b94fbe841a1e7397c2ce1c087293a4b
racket/gui
font.rkt
#lang racket/base (require racket/class racket/draw ffi/unsafe ffi/unsafe/objc ffi/unsafe/alloc racket/draw/unsafe/pango racket/draw/private/dc "../../lock.rkt" "const.rkt" "utils.rkt" "types.rkt") (provide (protect-out font->N...
null
https://raw.githubusercontent.com/racket/gui/d1fef7a43a482c0fdd5672be9a6e713f16d8be5c/gui-lib/mred/private/wx/cocoa/font.rkt
racket
------------------------------------------------------------ accessible through a font family. (The idea is that the face can vary with the requested size --- but we don't want to go there in general.) To make the main face accessible, we've added a hook to or more face descriptions.
#lang racket/base (require racket/class racket/draw ffi/unsafe ffi/unsafe/objc ffi/unsafe/alloc racket/draw/unsafe/pango racket/draw/private/dc "../../lock.rkt" "const.rkt" "utils.rkt" "types.rkt") (provide (protect-out font->N...
1ced10441ba75cfd6d523f22b563b57557052fd9292b9ce9d4d617ea3f6928e4
bugczw/Introduction-to-Functional-Programming-in-OCaml
arg.ml
let apply_twice f x = f (f x);; apply_twice (function x -> 2*x) 1;; let rec apply_n_times f n x = if n <= 0 then x else apply_n_times f (n-1) (f x);; apply_n_times (function x -> 2*x) 10 1;;
null
https://raw.githubusercontent.com/bugczw/Introduction-to-Functional-Programming-in-OCaml/13c4d1f92e7479f8eb10ea5d4c43a598b6676d0f/OCaml_MOOC_W4_ALL/arg.ml
ocaml
let apply_twice f x = f (f x);; apply_twice (function x -> 2*x) 1;; let rec apply_n_times f n x = if n <= 0 then x else apply_n_times f (n-1) (f x);; apply_n_times (function x -> 2*x) 10 1;;
fa5b98920197a2bf637995ce72c98f66b9f8e14522aff5fce9c9dacd03c3d04c
typelead/intellij-eta
Base.hs
-- Base of the prelude P module This should be importable from anywhere ( especially FFI modules ) , -- so take care to not introduce any potential cyclical dependencies. module P.Base ( module P.Base , module X ) where import Prelude as X hiding (String, head, tail) import Control.Exception as X import Contro...
null
https://raw.githubusercontent.com/typelead/intellij-eta/ee66d621aa0bfdf56d7d287279a9a54e89802cf9/plugin/src/main/eta/P/Base.hs
haskell
Base of the prelude P module so take care to not introduce any potential cyclical dependencies. # CLASS "java.lang.Class[]" # # CLASS "java.io.File" # Java Functions # CLASS "java.util.function.Supplier" # Java Exceptions # CLASS "java.io.FileNotFoundException" # foreign import java unsafe :: (Class e, e <: JTh...
This should be importable from anywhere ( especially FFI modules ) , module P.Base ( module P.Base , module X ) where import Prelude as X hiding (String, head, tail) import Control.Exception as X import Control.Monad as X import qualified Data.Int import Data.List as X (intercalate) import Data.Maybe as X impo...
70cc32648a11162b687e2ecdfc327f9e1d22a949433c1b22101273a9db919fe3
WhatsApp/erlt
erlt_shape.erl
Copyright Ericsson AB 1996 - 2020 . All Rights Reserved . Copyright ( c ) 2020 Facebook , Inc. and its affiliates . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0...
null
https://raw.githubusercontent.com/WhatsApp/erlt/616a4adc628ca8754112e659701e57f1cd7fecd1/erltc/src/erlt_shape.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 or implied. See the License for the specific language governing perm...
Copyright Ericsson AB 1996 - 2020 . All Rights Reserved . Copyright ( c ) 2020 Facebook , Inc. and its affiliates . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(erlt_shape). -export([parse_transform/2]). par...
9efc2693bbee5ee5496266424d0ccd535ce472955016266d30e67414ead6c85c
JunSuzukiJapan/cl-reex
sequence-equalp-test.lisp
(defpackage sequence-equalp-test (:use :cl :cl-reex :cl-reex-test.logger :prove) (:shadowing-import-from :cl-reex :skip)) (in-package :sequence-equalp-test) NOTE : To run this test file , execute ` ( asdf : test - system : cl - reex ) ' in your Lisp . (plan 2) ;; blah blah blah. (defparameter logg...
null
https://raw.githubusercontent.com/JunSuzukiJapan/cl-reex/94928c7949c235b41902138d9e4a5654b92d67eb/tests/sequence-equalp-test.lisp
lisp
blah blah blah.
(defpackage sequence-equalp-test (:use :cl :cl-reex :cl-reex-test.logger :prove) (:shadowing-import-from :cl-reex :skip)) (in-package :sequence-equalp-test) NOTE : To run this test file , execute ` ( asdf : test - system : cl - reex ) ' in your Lisp . (plan 2) (defparameter logger (make-instance '...
9d16229eb978f72f8db3c238e481b1d7402f7906a1657d5a3dc28a29426ec334
thi-ng/demos
map.cljs
(ns ws-ldn-2.views.map (:require-macros [reagent.ratom :refer [reaction]] [cljs-log.core :refer [debug info warn]]) (:require [ws-ldn-2.state :as state] [ws-ldn-2.components.dropdown :as dd] [ws-ldn-2.utils :as utils] [reagent.core :as r] [thi.ng.geom.core :as g] [thi.ng.geom.core.matrix :as...
null
https://raw.githubusercontent.com/thi-ng/demos/048cd131099a7db29be56b965c053908acad4166/ws-ldn-2/src/cljs/ws_ldn_2/views/map.cljs
clojure
(ns ws-ldn-2.views.map (:require-macros [reagent.ratom :refer [reaction]] [cljs-log.core :refer [debug info warn]]) (:require [ws-ldn-2.state :as state] [ws-ldn-2.components.dropdown :as dd] [ws-ldn-2.utils :as utils] [reagent.core :as r] [thi.ng.geom.core :as g] [thi.ng.geom.core.matrix :as...
d1a43f1df4133b3acd3acc08aaf435ea36a671ac987934ca2326a965049dab45
thierry-martinez/stdcompat
digest.mli
type t = string val string : string -> t val substring : string -> int -> int -> t external channel : in_channel -> int -> t = "md5_chan" val file : string -> t val output : out_channel -> t -> unit val input : in_channel -> t val to_hex : t -> string
null
https://raw.githubusercontent.com/thierry-martinez/stdcompat/83d786cdb17fae0caadf5c342e283c3dcfee2279/interfaces/3.07/digest.mli
ocaml
type t = string val string : string -> t val substring : string -> int -> int -> t external channel : in_channel -> int -> t = "md5_chan" val file : string -> t val output : out_channel -> t -> unit val input : in_channel -> t val to_hex : t -> string
b424c1b9773356ae7156cc30b017d9c5aebb64e9594ed999043ec85bcc3e2ee6
JamesLaverack/cljfmt-runner
core_test.clj
(ns cljfmt-runner.core-test (:require [clojure.java.io :as io] [clojure.test :refer :all] [cljfmt-runner.core :as rcore])) (def example-root "test-resources/example-project/") (deftest io-test (testing "Test that a directory can be detected" (is (rcore/directory? (io/file example-root)...
null
https://raw.githubusercontent.com/JamesLaverack/cljfmt-runner/6383fbb0bd22a21c0edf5b699425504d9f0a958a/test/cljfmt_runner/core_test.clj
clojure
main project's files
(ns cljfmt-runner.core-test (:require [clojure.java.io :as io] [clojure.test :refer :all] [cljfmt-runner.core :as rcore])) (def example-root "test-resources/example-project/") (deftest io-test (testing "Test that a directory can be detected" (is (rcore/directory? (io/file example-root)...
f27249d9119b90773c6fcec69bb6885512f1d2964df47c56375d46f8610152d2
wireapp/wire-server
Auth.hs
{-# LANGUAGE OverloadedStrings #-} -- This file is part of the Wire Server implementation. -- Copyright ( C ) 2022 Wire Swiss GmbH < > -- -- This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundati...
null
https://raw.githubusercontent.com/wireapp/wire-server/e03f7219210019ae5be50739f594dc667e669168/libs/brig-types/src/Brig/Types/User/Auth.hs
haskell
# LANGUAGE OverloadedStrings # This file is part of the Wire Server implementation. This program is free software: you can redistribute it and/or modify it under later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANT...
Copyright ( C ) 2022 Wire Swiss GmbH < > the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any You should have received a copy of the GNU Affero General Public License along module Brig.Types.User.Auth (...
c77b8e7cdc15f79190c412b48d72a75211a9c6e05ba63f6be7a247040cb6d128
bmeurer/ocaml-experimental
optionmenu.ml
##ifdef CAMLTK open Protocol;; (* Implementation of the tk_optionMenu *) let create ?name parent variable values = let w = Widget.new_atom "menubutton" ~parent ?name in let mw = Widget.new_atom "menu" ~parent:w ~name:"menu" in let res = tkEval [|TkToken "tk_optionMenu"; TkToken (Widget.name w);...
null
https://raw.githubusercontent.com/bmeurer/ocaml-experimental/fe5c10cdb0499e43af4b08f35a3248e5c1a8b541/otherlibs/labltk/builtin/optionmenu.ml
ocaml
Implementation of the tk_optionMenu Implementation of the tk_optionMenu assumes .menu naming
##ifdef CAMLTK open Protocol;; let create ?name parent variable values = let w = Widget.new_atom "menubutton" ~parent ?name in let mw = Widget.new_atom "menu" ~parent:w ~name:"menu" in let res = tkEval [|TkToken "tk_optionMenu"; TkToken (Widget.name w); cCAMLtoTKtextVariable variab...
b705fbeaa486df7e366559092a81b06d4fce30e62392adc24001286217ebb8f9
sile/cl-asm
sample.lisp
(progn (defparameter save-stack@ '((:push %rbp) (:mov %rbp %rsp) (:push %rdi) (:push %rsi) (:push %rbx))) (defparameter restore-stack@ '((:pop %rbx) (:pop %rsi) (:pop %rdi) (:pop %rbp))) (defparameter in@ save-stack@) (defparameter out@ `(,@restore-stack@ :ret)) (defmacro body (&rest mnemonics) `'(,@in@ ,@...
null
https://raw.githubusercontent.com/sile/cl-asm/141f998d195ba5a0e990f547903a04c219cc887d/sample.lisp
lisp
Fibonacci
(progn (defparameter save-stack@ '((:push %rbp) (:mov %rbp %rsp) (:push %rdi) (:push %rsi) (:push %rbx))) (defparameter restore-stack@ '((:pop %rbx) (:pop %rsi) (:pop %rdi) (:pop %rbp))) (defparameter in@ save-stack@) (defparameter out@ `(,@restore-stack@ :ret)) (defmacro body (&rest mnemonics) `'(,@in@ ,@...
6e33b5e0432137d2c95db0c41a83ab1dcf0b0118fec57bc5aa675747632e7204
G-Corp/kafe
kafe_consumer.erl
@author < > 2014 - 2015 Finexkap , 2015 G - Corp , 2015 - 2016 BotsUnit @since 2014 % @doc A client for Erlang % To create a consumer , create a function with 6 parameters : % % <pre> % -module(my_consumer). % % -export([consume/6]). % % consume(GroupID, Topic, Partition, Offset, Key, Value) -> % % Do ...
null
https://raw.githubusercontent.com/G-Corp/kafe/78e014ae5b6d7e1077aa5cabf4adc21ed7abe203/src/kafe_consumer.erl
erlang
@doc <pre> -module(my_consumer). -export([consume/6]). consume(GroupID, Topic, Partition, Offset, Key, Value) -> % Do something with Topic/Partition/Offset/Key/Value ok. </pre> Then start a new consumer : <pre> ... kafe:start(), ... ... </pre> See {@link kafe:start_consumer/3} for the availa...
@author < > 2014 - 2015 Finexkap , 2015 G - Corp , 2015 - 2016 BotsUnit @since 2014 A client for Erlang To create a consumer , create a function with 6 parameters : The < tt > consume</tt > function must return < tt > ok</tt > if the message was treated , or < tt>{error , > on error . kafe : start_c...
21564c163502b2fa89fa58b81bb4e10b5dc6737ef2416aa682de07d4076f0b90
xkcd/kurita
Emoji.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeApplications # module Kurita.Emoji (uncodes, uncode) where import Data.Char import qualified Data.Text as T import qualified Data.Text.Read as TR uncodes :: T.Text -> Either String T.Text uncodes = fmap T.pack . mapM uncode . T.words uncode :: T.Text -> Ei...
null
https://raw.githubusercontent.com/xkcd/kurita/090655eaa44f21046e868d303cb35493dff257d7/src/Kurita/Emoji.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE TypeApplications # module Kurita.Emoji (uncodes, uncode) where import Data.Char import qualified Data.Text as T import qualified Data.Text.Read as TR uncodes :: T.Text -> Either String T.Text uncodes = fmap T.pack . mapM uncode . T.words uncode :: T.Text -> Either String Char uncode t = case ...
bf73c064f2441cbcde9dc0dfa9e96641a445e81c83162a78028c94640fd0e373
aprell/miniml
typecheck.ml
open Ast exception Error of string let type_error msg = raise (Error msg) let check ty ~expect = if ty <> expect then let msg = Printf.sprintf "Expected `%s', but computed `%s'" (Type.string_of_type expect) (Type.string_of_type ty) in type_error msg else () let lookup x env =...
null
https://raw.githubusercontent.com/aprell/miniml/ba67cdf3057df27ffac369f58b2d2dcba2e6779e/src/typecheck.ml
ocaml
-------------- ⊢ n : Type.Int ---------------- ⊢ () : Type.Unit ------------ Γ ⊢ x : Γ(x) Γ ⊢ e1 : T Γ, x : T ⊢ e2 : U ------------------------------- Γ ⊢ (let x = e1 in e2) : U Γ, x : T ⊢ e1 : T Γ, x : T ⊢ e2 : U ----------------------------...
open Ast exception Error of string let type_error msg = raise (Error msg) let check ty ~expect = if ty <> expect then let msg = Printf.sprintf "Expected `%s', but computed `%s'" (Type.string_of_type expect) (Type.string_of_type ty) in type_error msg else () let lookup x env =...
8c41f8e7220cbb87bb351b69fbae82cd221171becac56e0fb677f4e1cca7df86
EasyCrypt/easycrypt
ecProvers.ml
(* -------------------------------------------------------------------- *) open EcUtils open Why3 open EcSymbols (* -------------------------------------------------------------------- *) module Version : sig type version val parse : string -> version val compare : version -> version -> int val of_tuple :...
null
https://raw.githubusercontent.com/EasyCrypt/easycrypt/e45a54c433f974412042dfa075a29de639ed8d3c/src/ecProvers.ml
ocaml
-------------------------------------------------------------------- -------------------------------------------------------------------- -------------------------------------------------------------------- -------------------------------------------------------------------- -----------------------------------...
open EcUtils open Why3 open EcSymbols module Version : sig type version val parse : string -> version val compare : version -> version -> int val of_tuple : int * int * int -> version val to_string : version -> string end = struct type version = { v_major : int; v_minor : int; v_subm...
f0855d40ea9e7cc61b349fa91951ee4bb4b4dbca3c11a68814fa45b6d4b29c6a
UnixJunkie/consent
molecule.ml
open Printf module Log = Dolog.Log module Fp = Fingerprint module Ht = BatHashtbl module L = MyList module StringSet = BatSet.String module Utls = MyUtils let no_index = -1 type t = { index: int; (* rank in input file *) name: string; (* molecule name *) ic50: float; (* IC50 *) fp: Fp.t } (* fingerpr...
null
https://raw.githubusercontent.com/UnixJunkie/consent/f065ee7ba5a1ae014b5c3a28d0985ba5ad1abda5/src/molecule.ml
ocaml
rank in input file molecule name IC50 fingerprint the most active molecule has the smallest ic50 value; so we just sort in increasing order compressed marshalling supported file formats a csv file I crafted myself (with ECFP4 Fps) marshalling output format find the ob_maccs exe find ecfp4.py s...
open Printf module Log = Dolog.Log module Fp = Fingerprint module Ht = BatHashtbl module L = MyList module StringSet = BatSet.String module Utls = MyUtils let no_index = -1 type t = let get_index m = m.index let get_name m = m.name let get_ic50 m = m.ic50 let get_fp m = m.fp let is_active (m: t): bool = BatStr...
310a815697a6fbd589f5a9194489f0b1f6714def8e7c4837d76fadb983a09aa4
zyrolasting/polyglot
builds.rkt
#lang racket/base (require racket/class racket/contract racket/dict unlike-assets "./projects.rkt" "./paths.rkt") (provide (contract-out [polyglot-live? (parameter/c boolean?)] [make-polyglot-workflow-object (->* ((is-a?/c polyglot-project%)) ...
null
https://raw.githubusercontent.com/zyrolasting/polyglot/d27ca7fe90fd4ba2a6c5bcd921fce89e72d2c408/polyglot-lib/polyglot/builds.rkt
racket
#lang racket/base (require racket/class racket/contract racket/dict unlike-assets "./projects.rkt" "./paths.rkt") (provide (contract-out [polyglot-live? (parameter/c boolean?)] [make-polyglot-workflow-object (->* ((is-a?/c polyglot-project%)) ...
d227b870d1c95d80d34fb5d157382a3e915bc01b4ef2f31a30fe45ac8d87249d
echeran/clj-thamil
main.clj
(ns clj-thamil.main (require [clojure.string :as string] [clj-thamil.format [analysis :as analysis] [convert :as convert]] [clj-thamil.subprograms :as subprog]) (:gen-class)) (def ^{:doc "a map that specifies what sub-program to run based on the first arg passed in"} main-fns {"freqs" ana...
null
https://raw.githubusercontent.com/echeran/clj-thamil/692a6d94329bb14cb58fb39b875792e5d774d2c4/src/clj_thamil/main.clj
clojure
(ns clj-thamil.main (require [clojure.string :as string] [clj-thamil.format [analysis :as analysis] [convert :as convert]] [clj-thamil.subprograms :as subprog]) (:gen-class)) (def ^{:doc "a map that specifies what sub-program to run based on the first arg passed in"} main-fns {"freqs" ana...
0ddc2f4b69b095f8a417e173c8284e1e1595ac5621f50d32887ad4769bbbe870
dbuenzli/uuseg
uuseg_line_break.ml
--------------------------------------------------------------------------- Copyright ( c ) 2014 The uuseg programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c)...
null
https://raw.githubusercontent.com/dbuenzli/uuseg/fc4530bce6873a28a7e2deea9bd34ec415d496b3/src/uuseg_line_break.ml
ocaml
Added to handle LB30 fill slot on the right of boundary. decide boundary of slot r0. current state. odd number of RI on the left of break point. data in r0 [true] if break is mandatory. overwritten N.B. sets s.mandatory by side effect. LB1 is handled by [byte_to_line] and [line]. LB2 LB3 LB6 ...
--------------------------------------------------------------------------- Copyright ( c ) 2014 The uuseg programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c)...
4f5df4de1fba2fe625422d99d57bbe6b823bbbc8bc3583a8be949199ba112955
WormBase/wormbase_rest
history.clj
(ns rest-api.classes.protein.widgets.history (:require [rest-api.classes.generic-fields :as generic])) (defn history [p] {:data (when-let [hs (:protein/history p)] (for [h hs] {:version (:protein.history/int h) :prediction (when-let [prediction (:protein.history/text-c h)]...
null
https://raw.githubusercontent.com/WormBase/wormbase_rest/e51026f35b87d96260b62ddb5458a81ee911bf3a/src/rest_api/classes/protein/widgets/history.clj
clojure
(ns rest-api.classes.protein.widgets.history (:require [rest-api.classes.generic-fields :as generic])) (defn history [p] {:data (when-let [hs (:protein/history p)] (for [h hs] {:version (:protein.history/int h) :prediction (when-let [prediction (:protein.history/text-c h)]...
97c08badab07d247abad18af7b8891e5199862493d5177c404fe941a172d65b2
DomainDrivenArchitecture/dda-cloudspec
template_test.cljs
Copyright 2014 - 2018 meissa . 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 or agreed to in writing...
null
https://raw.githubusercontent.com/DomainDrivenArchitecture/dda-cloudspec/8197de8b5eb528fce14d71ec83298a38d282ab90/test/cljs/dda/template_test.cljs
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 governing pe...
Copyright 2014 - 2018 meissa . All Rights Reserved . distributed under the License is distributed on an " AS - IS " BASIS , (ns dda.template-test (:require [cljs.test :refer [deftest testing is]] [dda.template :as sut])) (deftest test-parse-stencils (testing (is (= '(["Some {{symbol-to-replace...
6874dda9b2b33b42d2aae7115adfb7b65a44cebcfd709406b793f92904b89482
pine-lang/pine
core.clj
(ns pine.core (:require [clojure.java.jdbc :as j] [pine.ast :as ast] [pine.db :as db] [pine.db.protocol :as protocol] )) ;; Eval ;; TODO: this shouldn't take the schema. Schema is embedded in the adapter (i.e ;; connection) (defn pine-prepare "Using a pine expressio...
null
https://raw.githubusercontent.com/pine-lang/pine/03eaf6b8e2e38334b22aff328767a613f1aceadc/src/pine/core.clj
clojure
Eval TODO: this shouldn't take the schema. Schema is embedded in the adapter (i.e connection) (pine-prepare (db/get-schema c/config) "caseFiles 1 | s: id")
(ns pine.core (:require [clojure.java.jdbc :as j] [pine.ast :as ast] [pine.db :as db] [pine.db.protocol :as protocol] )) (defn pine-prepare "Using a pine expression, prepare and SQL statements and params" [schema expression] (let [[sql params] (->> expression ...
a32772d1756faff8a4976a8b3db27b2f3102d586b895539c631c8d0e86bfcebb
richmit/mjrcalc
use-intrp.lisp
;; -*- Mode:Lisp; Syntax:ANSI-Common-LISP; Coding:us-ascii-unix; fill-column:158 -*- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;; @file use-intrp.lisp @author < > ;; @brief Polyno...
null
https://raw.githubusercontent.com/richmit/mjrcalc/96f66d030034754e7d3421688ff201f4f1db4833/use-intrp.lisp
lisp
-*- Mode:Lisp; Syntax:ANSI-Common-LISP; Coding:us-ascii-unix; fill-column:158 -*- @file use-intrp.lisp @brief Polynomial interpolation.@EOL @std Common Lisp @see tst-intrp.lisp Redistribution and use in source and binary forms, with or without modification, are permitted provided that the...
@author < > @parblock Copyright ( c ) 1997,1998,2004,2013,2015 , < > All rights reserved . 1 . Redistributions of source code must retain the above copyright notice , this list of conditions , and the following disclaimer . 2 . Redistributions in binary form must reproduce the above copyrigh...
5bb8ab8ff22d90f5ebdbf8eae705b6f73edbb3d41b67c38e5af28a2c521f8ee3
processone/tsung
ts_config_mqtt.erl
This code was developed by ) . %%% Copyright ( C ) 2013 %%% %%% This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or %%% (at your option) any later v...
null
https://raw.githubusercontent.com/processone/tsung/b0ed22981b534ee3becefb2124a6e168c664d434/src/tsung_controller/ts_config_mqtt.erl
erlang
This program is free software; you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General...
This code was developed by ) . Copyright ( C ) 2013 it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or You should have received a copy of the GNU General Public License Foundation , Inc. , 59 Temple Place , Suite...
c8b5f45514f47b63559ca9998271b9f55df185a075539aba444b66dc99275bef
softwarelanguageslab/maf
R5RS_gambit_wc-2.scm
; Changes: * removed : 1 * added : 3 * swaps : 0 ; * negated predicates: 0 ; * swapped branches: 0 * calls to i d fun : 1 (letrec ((inport #f) (nl #f) (nw #f) (nc #f) (inword #f) (wcport (lambda (port) (let ((x (read-char port))) ...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_gambit_wc-2.scm
scheme
Changes: * negated predicates: 0 * swapped branches: 0
* removed : 1 * added : 3 * swaps : 0 * calls to i d fun : 1 (letrec ((inport #f) (nl #f) (nw #f) (nc #f) (inword #f) (wcport (lambda (port) (let ((x (read-char port))) (<change> (if (eof-object? x) ...
e52ac3aa0e5b2a4613f26ce76124eb10615f9a4b034f29239452c3c8a9a5ea3e
Tclv/HaskellBook
Identity.hs
module Identity where newtype Identity a = Identity a deriving (Eq, Ord, Show) instance Functor Identity where fmap f (Identity a) = Identity $ f a instance Applicative Identity where pure = Identity Identity f <*> Identity x = Identity $ f x
null
https://raw.githubusercontent.com/Tclv/HaskellBook/78eaa5c67579526b0f00f85a10be3156bc304c14/ch17/Identity.hs
haskell
module Identity where newtype Identity a = Identity a deriving (Eq, Ord, Show) instance Functor Identity where fmap f (Identity a) = Identity $ f a instance Applicative Identity where pure = Identity Identity f <*> Identity x = Identity $ f x
bdd50a6fcd9d15c2b958d5148c3c0993e4437198ee4062c098f478c5f95f00a8
tamarit/edd
edd_server.erl
%%%============================================================================= %%% @doc @author < > %%% @end %%%============================================================================= -module(edd_server). %% Exports -export([start/0]). -export([server_entry_point/1]). -define(DEF_PORT, 6667). %%%_* ...
null
https://raw.githubusercontent.com/tamarit/edd/867f287efe951bec6a8213743a218b86e4f5bbf7/src/edd_server.erl
erlang
============================================================================= @doc @end ============================================================================= Exports _* application callbacks ---------------------------------------------------- _* External functions -------------------------------------------...
@author < > -module(edd_server). -export([start/0]). -export([server_entry_point/1]). -define(DEF_PORT, 6667). -spec start() -> ok. start() -> server(?DEF_PORT). -spec server_entry_point(port()) -> ok. server_entry_point(Socket) -> server_listener(Socket). -spec server(integer()) -> ok. server(P...
9cd410f1df1952e5e17f9a309816930bf0a669826fc597c120aa5dbeac67201a
kelamg/HtDP2e-workthrough
ex141.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 ex141) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f ...
null
https://raw.githubusercontent.com/kelamg/HtDP2e-workthrough/ec05818d8b667a3c119bea8d1d22e31e72e0a958/HtDP/Arbitrarily-Large-Data/ex141.rkt
racket
about the language level of this file in a form that our tools can easily process. List-of-string -> String (cons "a" "a" (cons "b" "b" "ab" (cons "b" '()) '())) "ab" (cons "ef" (cons "cd" '())) (cons "ef" ...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-reader.ss" "lang")((modname ex141) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) concatenates all strings in l into one long string (check-exp...
adbe0088d5722da4357e2cc7ae2122d16cf47248c637462e4915abd8aaa1047b
well-typed/large-records
R060.hs
#if PROFILE_CORESIZE {-# OPTIONS_GHC -ddump-to-file -ddump-ds-preopt -ddump-ds -ddump-simpl #-} #endif #if PROFILE_TIMING {-# OPTIONS_GHC -ddump-to-file -ddump-timings #-} #endif # OPTIONS_GHC -fplugin = TypeLet -fplugin = Data . Record . Anon . Plugin # {-# OPTIONS_GHC -fplugin-opt=Data.Record.Anon.Plugin:typelet #-}...
null
https://raw.githubusercontent.com/well-typed/large-records/78d0966e4871847e2c17a0aa821bacf38bdf96bc/large-records-benchmarks/bench/large-anon/Experiment/ConstructWithTypeLet/Sized/R060.hs
haskell
# OPTIONS_GHC -ddump-to-file -ddump-ds-preopt -ddump-ds -ddump-simpl # # OPTIONS_GHC -ddump-to-file -ddump-timings # # OPTIONS_GHC -fplugin-opt=Data.Record.Anon.Plugin:typelet # 00 .. 09
#if PROFILE_CORESIZE #endif #if PROFILE_TIMING #endif # OPTIONS_GHC -fplugin = TypeLet -fplugin = Data . Record . Anon . Plugin # module Experiment.ConstructWithTypeLet.Sized.R060 where import Data.Record.Anon.Simple (Record) import Bench.Types import Common.RowOfSize.Row060 record :: Word -> Record ExampleRow rec...
543b8d30f43a86dab40285c02dd3b92ba406b9742f501b0f3baaffca2df43135
craigfe/compact
hashed_container_intf.ml
— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — Copyright ( c ) 2020–2021 < > Distributed under the MIT license . See terms at the end of this file . — — — — — — — — — — — — — — — — — — — — — — — — —...
null
https://raw.githubusercontent.com/craigfe/compact/daa1b516c917585b80e2fbace74690766a9ac907/src/hashed_container_intf.ml
ocaml
* [cardinal t] is the number of bindings in [t]. * [clear t] removes all bindings from [t]. * Returns the number of {i buckets} in the container. A bucket is a slot in the container's internal hashtable, to which elements are assigned based on the hash value of their key. * Returns the average number of ...
— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — Copyright ( c ) 2020–2021 < > Distributed under the MIT license . See terms at the end of this file . — — — — — — — — — — — — — — — — — — — — — — — — —...
5baba4becca63dfa8cc29645e63e00bad98c05633b0a7031327a3c95e38ac0ed
L7R7/gitlab-ci-build-statuses
Shared.hs
# OPTIONS_GHC -fno - warn - orphans # module UseCases.Shared () where import Core.Shared import Data.Aeson (ToJSON) deriving newtype instance ToJSON (Id a)
null
https://raw.githubusercontent.com/L7R7/gitlab-ci-build-statuses/87664dff508a2feb49ba4f2c42b691c1b53eff09/src/UseCases/Shared.hs
haskell
# OPTIONS_GHC -fno - warn - orphans # module UseCases.Shared () where import Core.Shared import Data.Aeson (ToJSON) deriving newtype instance ToJSON (Id a)
3488f5a33221b4bb8f5297bfb1b6d3ffbd088db7360f028e6c0ea05d080d728e
jeromesimeon/Galax
function_analysis.ml
(***********************************************************************) (* *) (* GALAX *) (* XQuery Engine *) (* ...
null
https://raw.githubusercontent.com/jeromesimeon/Galax/bc565acf782c140291911d08c1c784c9ac09b432/projection/function_analysis.ml
ocaml
********************************************************************* GALAX XQuery Engine ...
Copyright 2001 - 2007 . $ I d : function_analysis.ml , v 1.15 2007/02/01 22:08:52 simeon Exp $ open Format open Error open Namespace_names open Namespace_builtin open Xquery_ast let fun_used_only_table = [ (op_integer_add); (op_integer_divide); (op_in...
23303a5040d2585d0fac3979da8ddd21397fda8ab4bb3bb5ce95fa65363692c0
ghcjs/ghcjs-dom
WebGLDrawBuffers.hs
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} module GHCJS.DOM.JSFFI.Generated.WebGLDrawBuffers (js_drawBuffersWEBGL, drawBuffersWEBGL, pattern COLOR_ATTACHME...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-dom/749963557d878d866be2d0184079836f367dd0ea/ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/WebGLDrawBuffers.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # module GHCJS.DOM.JSFFI.Generated.WebGLDrawBuffers (js_drawBuffersWEBGL, drawBuffersWEBGL, pattern COLOR_ATTACHMENT0_WEBGL, pattern COLOR_ATTACHMENT1_WEBGL, pattern COLOR_ATTACHMENT2_WEBGL, pattern COLOR_...
9b8bf24305fcfd926ff38cca2bbace7ec6fd1e5d681c42d497961099f71c6da9
cognitect-labs/vase
project.clj
(defproject omnext-todo "0.9.4-SNAPSHOT" :description "Vase sample application, Todo list compatible with Om.next" :url "-labs/vase/tree/master/samples/omnext-todo" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.10.0"] [io.pedestal/...
null
https://raw.githubusercontent.com/cognitect-labs/vase/d882bc8f28e8af2077b55c80e069aa2238f646b7/samples/omnext-todo/project.clj
clojure
Om.next Demand-driven API
(defproject omnext-todo "0.9.4-SNAPSHOT" :description "Vase sample application, Todo list compatible with Om.next" :url "-labs/vase/tree/master/samples/omnext-todo" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.10.0"] [io.pedestal/...
40268320e638c7e289b44d0effd924854cae519001acab34b49f39badf431a78
input-output-hk/ouroboros-network
NetworkProtocolVersion.hs
# LANGUAGE DefaultSignatures # # LANGUAGE FlexibleContexts # {-# LANGUAGE TypeFamilies #-} module Ouroboros.Consensus.Node.NetworkProtocolVersion ( HasNetworkProtocolVersion (..) , SupportedNetworkProtocolVersion (..) , latestReleasedNodeVersionDefault -- * Re-exports , NodeToClientVersion (..) ...
null
https://raw.githubusercontent.com/input-output-hk/ouroboros-network/2793b6993c8f6ed158f432055fa4ef581acdb661/ouroboros-consensus/src/Ouroboros/Consensus/Node/NetworkProtocolVersion.hs
haskell
# LANGUAGE TypeFamilies # * Re-exports ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- -----------------------------------------------------------------------------} | Protocol versioning Defaults | Enume...
# LANGUAGE DefaultSignatures # # LANGUAGE FlexibleContexts # module Ouroboros.Consensus.Node.NetworkProtocolVersion ( HasNetworkProtocolVersion (..) , SupportedNetworkProtocolVersion (..) , latestReleasedNodeVersionDefault , NodeToClientVersion (..) , NodeToNodeVersion (..) ) where import Da...
8d3e955298d7b6e8e5b73dc56ace2f8cdaa1fd2adf7f7c07c0c562c20001336c
DeathKing/Hit-DataStructure-On-Scheme
forest.scm
;;; SIMPLE TREE-BINTREE TRANSFORMER / VECTOR ;;; This program can transform ( data - left - right triple ) to ;;; normal tree (data-child-sibling triple) with pretty dot output. ;;; You can easily draw the picture by using graphviz . ;;; ;;; AUTHOR: DeathKing<dk#hit.edu.cn> LICENSE : MIT / HIT (load-option '...
null
https://raw.githubusercontent.com/DeathKing/Hit-DataStructure-On-Scheme/11677e3c6053d6c5b37cf0509885f74ab5c2bab9/application2/forest.scm
scheme
SIMPLE TREE-BINTREE TRANSFORMER / VECTOR normal tree (data-child-sibling triple) with pretty dot output. AUTHOR: DeathKing<dk#hit.edu.cn> These are test code
This program can transform ( data - left - right triple ) to You can easily draw the picture by using graphviz . LICENSE : MIT / HIT (load-option 'format) (define (make-bintree data left right) (let ((v (make-vector 3 '()))) (vector-set! v 0 data) (vector-set! v 1 left) (vector-set! v 2 right) ...
a45b495047fb88bd4ced5e43fbae66977f7b55c38561fcd27c5e280b26f1bddf
huaban/erlzk
erlzk_conn_sup.erl
2013 - 2014 ( c ) < > 2013 - 2014 ( c ) huaban.com < www.huaban.com > %% 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/huaban/erlzk/fe2b0909333413438246f4989ce5d8d3317c501c/src/erlzk_conn_sup.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 or implied. See the License for the specific language governing pe...
2013 - 2014 ( c ) < > 2013 - 2014 ( c ) huaban.com < www.huaban.com > Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(erlzk_conn_sup). -behaviour(supervisor). -export([start_conn/1]). -export([start_link/0]). ...
db15d94546b88e7261a7ef9711fe179ae9f2527fc78f9e65bd759ad9fd98d597
mpaltun/istanbus
istanbus_web_bus_stops_resource.erl
@author < > 2012 mpaltun . %% @doc istanbus webmachine_resource. -module(istanbus_web_bus_stops_resource). -export([init/1, to_json/2, content_types_provided/2]). -include_lib("webmachine/include/webmachine.hrl"). init([]) -> {ok, undefined}. content_types_provided(ReqData, Context) -> {[{"application/j...
null
https://raw.githubusercontent.com/mpaltun/istanbus/9f8edd1e092045d015615d29011481539ea23374/istanbus_web/src/istanbus_web_bus_stops_resource.erl
erlang
@doc istanbus webmachine_resource.
@author < > 2012 mpaltun . -module(istanbus_web_bus_stops_resource). -export([init/1, to_json/2, content_types_provided/2]). -include_lib("webmachine/include/webmachine.hrl"). init([]) -> {ok, undefined}. content_types_provided(ReqData, Context) -> {[{"application/json", to_json}], ReqData, Context}. t...
060c8a906571d71ac9c8dd0b42c6b5a6762fd024f9c1220c1437756e9e47a285
jfeser/castor
join_elim.ml
open Core open Ast module A = Abslayout module V = Visitors include (val Log.make "castor.join-elim") * Given two sets of names and an equivalence relation , return a translation from one set to the other . from one set to the other. *) let translate eqs ~from ~to_ = let open Option.Let_syntax in let eqs =...
null
https://raw.githubusercontent.com/jfeser/castor/e9f394e9c0984300f71dc77b5a457ae4e4faa226/lib/join_elim.ml
ocaml
open Core open Ast module A = Abslayout module V = Visitors include (val Log.make "castor.join-elim") * Given two sets of names and an equivalence relation , return a translation from one set to the other . from one set to the other. *) let translate eqs ~from ~to_ = let open Option.Let_syntax in let eqs =...
c1f808e9d42188d724b604585b759aae765c09d0f15315fa47fed634739a4e5d
abooij/haskell-wayland
Client.hs
module Graphics.Wayland.Client ( Expose built - in wayland functions module Graphics.Wayland.Internal.Client, module Graphics.Wayland.Internal.Cursor, module Graphics.Wayland.Internal.EGL, -- Expose scanned protocol module Graphics.Wayland.Internal.SpliceClient, module Graphics.Wayland.Internal.SpliceClie...
null
https://raw.githubusercontent.com/abooij/haskell-wayland/4afbc5a5c05bc436ca74dabe3c02dd1247a91304/Graphics/Wayland/Client.hs
haskell
Expose scanned protocol
module Graphics.Wayland.Client ( Expose built - in wayland functions module Graphics.Wayland.Internal.Client, module Graphics.Wayland.Internal.Cursor, module Graphics.Wayland.Internal.EGL, module Graphics.Wayland.Internal.SpliceClient, module Graphics.Wayland.Internal.SpliceClientTypes, ) where import Gr...
105962bb32c87f7ac1d7de5568d2438aea07ec8199a5244cd19c3a342877bd1e
nominolo/lambdachine
Paps.hs
# LANGUAGE NoImplicitPrelude , MagicHash # -- RUN: %bc_vm_chk CHECK : @Result@ IND - > GHC.Bool . True`con_info module Bc.Paps where import GHC.Prim import GHC.Types import GHC.Base # NOINLINE f # f :: Int# -> Int -> Int# -> Int -> Int -> Int# f a (I# b) c (I# d) (I# e)= a +# b *# c -# d *# e data Box a = Box a ...
null
https://raw.githubusercontent.com/nominolo/lambdachine/49d97cf7a367a650ab421f7aa19feb90bfe14731/tests/Bc/Paps.hs
haskell
RUN: %bc_vm_chk
# LANGUAGE NoImplicitPrelude , MagicHash # CHECK : @Result@ IND - > GHC.Bool . True`con_info module Bc.Paps where import GHC.Prim import GHC.Types import GHC.Base # NOINLINE f # f :: Int# -> Int -> Int# -> Int -> Int -> Int# f a (I# b) c (I# d) (I# e)= a +# b *# c -# d *# e data Box a = Box a # NOINLINE g # g ::...
47584c50e57bc75b59c7a2270c58b776c31957b1919d4226a205d4e024b36063
tfausak/patrol
GpuContextSpec.hs
# LANGUAGE QuasiQuotes # module Patrol.Type.GpuContextSpec where import qualified Data.Aeson as Aeson import qualified Data.Aeson.QQ.Simple as Aeson import qualified Data.Text as Text import qualified Patrol.Type.GpuContext as GpuContext import qualified Test.Hspec as Hspec spec :: Hspec.Spec spec = Hspec.describe "...
null
https://raw.githubusercontent.com/tfausak/patrol/1cae55b3840b328cda7de85ea424333fcab434cb/source/test-suite/Patrol/Type/GpuContextSpec.hs
haskell
# LANGUAGE QuasiQuotes # module Patrol.Type.GpuContextSpec where import qualified Data.Aeson as Aeson import qualified Data.Aeson.QQ.Simple as Aeson import qualified Data.Text as Text import qualified Patrol.Type.GpuContext as GpuContext import qualified Test.Hspec as Hspec spec :: Hspec.Spec spec = Hspec.describe "...
533f9b7c704cbb40da956e9b248e21f7c3c57da458cac72c40050e555b5fe217
airalab/hs-web3
Main.hs
{-# LANGUAGE OverloadedStrings #-} module Main where import Data.Default (def) import Data.Text (unpack) import Lens.Micro ((.~)) import Network.Ethereum hiding (name) import Network.Ethereum.Account import Net...
null
https://raw.githubusercontent.com/airalab/hs-web3/e6719ae384d2371a342f03afa3634921f4a8cd37/examples/erc20/Main.hs
haskell
# LANGUAGE OverloadedStrings #
module Main where import Data.Default (def) import Data.Text (unpack) import Lens.Micro ((.~)) import Network.Ethereum hiding (name) import Network.Ethereum.Account import Network.Web3 import Text.Pri...
8f13ad439ab1e5f94a5d0cb9280ef81df9909825fc47686a63c9da9a9ac2bc56
bbusching/libgit2
refdb.rkt
#lang racket (require ffi/unsafe "define.rkt" "types.rkt" "utils.rkt") (provide (all-defined-out)) (define-libgit2/alloc git_refdb_backend_fs (_fun _refdb_backend _repository -> _int)) (define-libgit2/check git_refdb_compress (_fun _refdb -> _int)) (define-libgit2/dealloc git_refdb_f...
null
https://raw.githubusercontent.com/bbusching/libgit2/6d6a007543900eb7a6fbbeba55850288665bdde5/libgit2/include/refdb.rkt
racket
#lang racket (require ffi/unsafe "define.rkt" "types.rkt" "utils.rkt") (provide (all-defined-out)) (define-libgit2/alloc git_refdb_backend_fs (_fun _refdb_backend _repository -> _int)) (define-libgit2/check git_refdb_compress (_fun _refdb -> _int)) (define-libgit2/dealloc git_refdb_f...
b5cf877133c8805fd5aea95114c10b616a7f5ad670d2069ac10a0a1dbfbe47f0
ksrky/Plato
TcTypes.hs
module Plato.Typing.TcTypes where import Plato.Syntax.Typing import Plato.Types.Error import Plato.Types.Location import Plato.Types.Name import Data.List (nub) import Data.Maybe (fromMaybe) metaTvs :: [Type] -> [MetaTv] metaTvs = foldr go [] where go :: Type -> [MetaTv] -> [MetaTv] go (MetaT tv)...
null
https://raw.githubusercontent.com/ksrky/Plato/02b1a043efa92cf2093ff7d721a607d8abe9d876/src/Plato/Typing/TcTypes.hs
haskell
-------------------------------------------------------------- Substitution --------------------------------------------------------------
module Plato.Typing.TcTypes where import Plato.Syntax.Typing import Plato.Types.Error import Plato.Types.Location import Plato.Types.Name import Data.List (nub) import Data.Maybe (fromMaybe) metaTvs :: [Type] -> [MetaTv] metaTvs = foldr go [] where go :: Type -> [MetaTv] -> [MetaTv] go (MetaT tv)...
1faddea6d5001e8a18868f6f617fb9ad81f9bb43c64c4f6e6e93bca77232d3f0
fukamachi/rove
none.lisp
(in-package #:cl-user) (defpackage #:rove/reporter/none (:use #:cl #:rove/reporter) (:export #:none-reporter)) (in-package #:rove/reporter/none) (defclass none-reporter (reporter) ())
null
https://raw.githubusercontent.com/fukamachi/rove/bbc7b8e3e300266b44780fc926aee2962e649392/reporter/none.lisp
lisp
(in-package #:cl-user) (defpackage #:rove/reporter/none (:use #:cl #:rove/reporter) (:export #:none-reporter)) (in-package #:rove/reporter/none) (defclass none-reporter (reporter) ())
b0f86770300e15b4e26ee1598357113443300e833ad3000f7b0bf28f0a6098d1
janestreet/ecaml
test_completion.ml
open! Core open! Async_kernel open! Import let%expect_test "[press_and_show_prompt] shows completions" = within_temp_dir (fun () -> File.ensure_exists "foo.tmp"; File.ensure_exists "foobar.tmp"; let%bind () = press_and_show_minibuffer "C-x C-f ./foo TAB TAB" ~show_contents:false in [%expect...
null
https://raw.githubusercontent.com/janestreet/ecaml/76711536efc37dcbf4574a217e529f081df58e6d/ecaml_test_helpers/test/test_completion.ml
ocaml
open! Core open! Async_kernel open! Import let%expect_test "[press_and_show_prompt] shows completions" = within_temp_dir (fun () -> File.ensure_exists "foo.tmp"; File.ensure_exists "foobar.tmp"; let%bind () = press_and_show_minibuffer "C-x C-f ./foo TAB TAB" ~show_contents:false in [%expect...
2ce7e2be3dfca0e0cfa64fdf422ec56d014ffde46cdcc9717c61972dca86b9cc
mhuebert/re-view
d.cljs
(ns re-db.d (:refer-clojure :exclude [get get-in contains? select-keys namespace]) (:require [re-db.core :as d]) (:require-macros [re-db.d])) (defonce ^:dynamic *db* (d/create {})) (defn partial-deref "Partially apply a (an atom) to f, but deref the atom at time of application." [f a] (fn [& args] (ap...
null
https://raw.githubusercontent.com/mhuebert/re-view/ba38cd09b78b3c6db6a2983f3e2cf1bd6294564f/re_db/src/re_db/d.cljs
clojure
(ns re-db.d (:refer-clojure :exclude [get get-in contains? select-keys namespace]) (:require [re-db.core :as d]) (:require-macros [re-db.d])) (defonce ^:dynamic *db* (d/create {})) (defn partial-deref "Partially apply a (an atom) to f, but deref the atom at time of application." [f a] (fn [& args] (ap...
a96f1494a2247354317f658c4b2328548c8b9deb87eb3fb945fb27f223998e54
protz/mezzo
gMap.mli
(*****************************************************************************) (* Mezzo, a programming language based on permissions *) Copyright ( C ) 2011 , 2012 and (* *) (* This program is free softwar...
null
https://raw.githubusercontent.com/protz/mezzo/4e9d917558bd96067437116341b7a6ea02ab9c39/lib/gMap.mli
ocaml
*************************************************************************** Mezzo, a programming language based on permissions This program is free software: you can redistribute it and/or modify (at your optio...
Copyright ( C ) 2011 , 2012 and it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License module type S = sig type key ...
59f34fe0c70943d781bf1a729799e05bc14b8d8a3746034021aa8312762ce2eb
vraid/earthgen
climate-create-base.rkt
#lang typed/racket (require vraid/flow vraid/math vraid/util math/flonum "../grid-base.rkt" "../geometry.rkt" "../terrain.rkt" "../climate.rkt" "defaults.rkt") (provide (all-defined-out)) (define zeros (λ ([n : Integer]) (make-flvector-acc...
null
https://raw.githubusercontent.com/vraid/earthgen/208ac834c02208ddc16a31aa9e7ff7f91c18e046/planet/climate-generation/climate-create-base.rkt
racket
#lang typed/racket (require vraid/flow vraid/math vraid/util math/flonum "../grid-base.rkt" "../geometry.rkt" "../terrain.rkt" "../climate.rkt" "defaults.rkt") (provide (all-defined-out)) (define zeros (λ ([n : Integer]) (make-flvector-acc...
3127bf767c89a3dd43c1024572119cb9dc09884fedf7171a94cbc255ae30daa2
nomeata/free-theorems-static-webui
Arbitraries.hs
-- | Gives instance of the class Arbitrary for several data types of the library . These instances are needed by QuickCheck . -- See also "Tests". module Arbitraries where import Control.Monad import Data.Generics (Typeable, Data) import Test.QuickCheck import Language.Haskell.FreeTheorems.Syntax import L...
null
https://raw.githubusercontent.com/nomeata/free-theorems-static-webui/44149706c2b809734ab3848047e314359bc59ccb/free-theorems/src/Arbitraries.hs
haskell
| Gives instance of the class Arbitrary for several data types of the See also "Tests".
library . These instances are needed by QuickCheck . module Arbitraries where import Control.Monad import Data.Generics (Typeable, Data) import Test.QuickCheck import Language.Haskell.FreeTheorems.Syntax import Language.Haskell.FreeTheorems.LanguageSubsets newtype ListOfDeclarations = ListOfDeclarations ...
317300703ef4026578315e442dd05865c4e529d250880b3458bf988ad922b36f
bazurbat/chicken-scheme
extras.import.scm
;;;; extras.import.scm - import library for "extras" module ; Copyright ( c ) 2008 - 2016 , The CHICKEN Team ; All rights reserved. ; ; Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following ; conditions are met: ; ; Redistributions of source code ...
null
https://raw.githubusercontent.com/bazurbat/chicken-scheme/f0c9d1fd8b68eb322e320e65ec40b0bf7d1b41dc/extras.import.scm
scheme
extras.import.scm - import library for "extras" module All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditi...
Copyright ( c ) 2008 - 2016 , The CHICKEN Team THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " AND ANY EXPRESS CONTRIBUTORS BE LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED TO , PROCUREMENT OF SUBSTITUTE...
5ce268f861997c96c8776a746ee805d027e5a39c605b6666186425f1bd6570b5
mit-plv/riscv-semantics
CSRSpec.hs
# LANGUAGE ScopedTypeVariables # module Spec.CSRSpec where import qualified Spec.CSRGetSet as GetSet import Spec.CSR import Spec.Machine import Utility.Utility import Control.Monad import Prelude getCSR :: forall p t . (RiscvMachine p t) => CSR -> p t getCSR c = do r <- GetSet.getCSR c return ((fromIntegral:: Mach...
null
https://raw.githubusercontent.com/mit-plv/riscv-semantics/1c0da3cac9d3f8dd813d26c0d2fbaccbb2210313/src/Spec/CSRSpec.hs
haskell
# LANGUAGE ScopedTypeVariables # module Spec.CSRSpec where import qualified Spec.CSRGetSet as GetSet import Spec.CSR import Spec.Machine import Utility.Utility import Control.Monad import Prelude getCSR :: forall p t . (RiscvMachine p t) => CSR -> p t getCSR c = do r <- GetSet.getCSR c return ((fromIntegral:: Mach...
78d1440292478d5e7855ec52f33a8f5a1c72b176b7f38979f05353a4ab24a63a
sharplispers/cormanlisp
trees.lisp
;;;; ------------------------------- Copyright ( c ) Corman Technologies Inc. See LICENSE.txt for license information . ;;;; ------------------------------- ;;;; ;;;; File: trees.lisp Contents : tree manipulation functions . History : 6/1/01 RGC Created . ;;;; (in-package :common-lisp)...
null
https://raw.githubusercontent.com/sharplispers/cormanlisp/6ff68633ed730dbd1500f06639dd093513b4278e/Sys/trees.lisp
lisp
------------------------------- ------------------------------- File: trees.lisp avoid unnecessary consing avoid unnecessary consing Common Lisp SUBST-IF-NOT function. avoid unnecessary consing Common Lisp NSUBST function. Common Lisp NSUBST-IF function. Common Lisp NSUBST-...
Copyright ( c ) Corman Technologies Inc. See LICENSE.txt for license information . Contents : tree manipulation functions . History : 6/1/01 RGC Created . (in-package :common-lisp) Common Lisp SUBST function . (defun subst (new old tree &key (key nil) (test #'eql) (test-not nil)) (i...
d2f9816e8922f64bde31c5e4c0183234803930b27b33597a9f3d91e1b4c5190b
clojure-interop/google-cloud-clients
ImageAnnotatorStubSettings.clj
(ns com.google.cloud.vision.v1.stub.ImageAnnotatorStubSettings "Settings class to configure an instance of ImageAnnotatorStub. The default instance has everything set to sensible defaults: The default service address (vision.googleapis.com) and default port (443) are used. Credentials are acquired automa...
null
https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.vision/src/com/google/cloud/vision/v1/stub/ImageAnnotatorStubSettings.clj
clojure
"
(ns com.google.cloud.vision.v1.stub.ImageAnnotatorStubSettings "Settings class to configure an instance of ImageAnnotatorStub. The default instance has everything set to sensible defaults: The default service address (vision.googleapis.com) and default port (443) are used. Credentials are acquired automa...
d5c51f281bc490d88b08c841cdaa990e5df10bb4b8e5272855a2efa1aec3b388
tsloughter/kuberl
kuberl_v1_volume_attachment_spec.erl
-module(kuberl_v1_volume_attachment_spec). -export([encode/1]). -export_type([kuberl_v1_volume_attachment_spec/0]). -type kuberl_v1_volume_attachment_spec() :: #{ 'attacher' := binary(), 'nodeName' := binary(), 'source' := kuberl_v1_volume_attachment_source:kuberl_v1_volume_attachment_source() ...
null
https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_v1_volume_attachment_spec.erl
erlang
-module(kuberl_v1_volume_attachment_spec). -export([encode/1]). -export_type([kuberl_v1_volume_attachment_spec/0]). -type kuberl_v1_volume_attachment_spec() :: #{ 'attacher' := binary(), 'nodeName' := binary(), 'source' := kuberl_v1_volume_attachment_source:kuberl_v1_volume_attachment_source() ...
e14bfb693e724830a380781852d5858b2af6a6bc2937c7ac08e6557ca41dc9e3
coq-community/coqffi
keywords.mli
module Variable : sig val x : int end module Definition : sig type t end
null
https://raw.githubusercontent.com/coq-community/coqffi/9307403abe0919665cd38dcc8f71582e950aa7c1/examples/src/keywords.mli
ocaml
module Variable : sig val x : int end module Definition : sig type t end
a004f21f0f2e588609da749f7fba0bc5196654ae6466f5c33e705b3f68db86ef
privet-kitty/cl-competitive
floor-quotients.lisp
(defpackage :cp/test/floor-quotients (:use :cl :fiveam :cp/floor-quotients) (:import-from :cp/test/base #:base-suite)) (in-package :cp/test/floor-quotients) (in-suite base-suite) (defun %identity (vec n) (nreverse (map 'vector (lambda (x) (+ 1 (floor n x))) vec))) (test enum-fdivisors (let ((*test-dribble* ni...
null
https://raw.githubusercontent.com/privet-kitty/cl-competitive/896e9000eb9c54ef28264fb0a0504688c21cd374/module/test/floor-quotients.lisp
lisp
(defpackage :cp/test/floor-quotients (:use :cl :fiveam :cp/floor-quotients) (:import-from :cp/test/base #:base-suite)) (in-package :cp/test/floor-quotients) (in-suite base-suite) (defun %identity (vec n) (nreverse (map 'vector (lambda (x) (+ 1 (floor n x))) vec))) (test enum-fdivisors (let ((*test-dribble* ni...
0fbfa3779da850eed9361f9abb20dff9d10aed5862da62d55df7150427ce66b9
slipstream/SlipStreamServer
module.cljc
(ns com.sixsq.slipstream.ssclj.resources.spec.module (:require [clojure.spec.alpha :as s] [com.sixsq.slipstream.ssclj.resources.spec.common :as c] [com.sixsq.slipstream.ssclj.resources.spec.common :as cimi-common] [com.sixsq.slipstream.ssclj.resources.spec.core :as cimi-core] [com.sixsq.slipstream...
null
https://raw.githubusercontent.com/slipstream/SlipStreamServer/3ee5c516877699746c61c48fc72779fe3d4e4652/cimi-resources/src/com/sixsq/slipstream/ssclj/resources/spec/module.cljc
clojure
define schema for references to module resources data management attributes
(ns com.sixsq.slipstream.ssclj.resources.spec.module (:require [clojure.spec.alpha :as s] [com.sixsq.slipstream.ssclj.resources.spec.common :as c] [com.sixsq.slipstream.ssclj.resources.spec.common :as cimi-common] [com.sixsq.slipstream.ssclj.resources.spec.core :as cimi-core] [com.sixsq.slipstream...
5f1f85b088f01a306636551121463797587bdd1ae4154281fab0ac77f26c2e31
EarnestResearch/yambda
EncodingSpec.hs
# LANGUAGE DuplicateRecordFields # # LANGUAGE OverloadedStrings # module AWS.Lambda.Wai.EncodingSpec where import AWS.Lambda.Event.APIGatewayV2 import AWS.Lambda.Wai.Encoding import Control.Lens import Data.Aeson import qualified Data.List as List import qualified Data.Map...
null
https://raw.githubusercontent.com/EarnestResearch/yambda/b1f45e42447c08d7da4b3f470bdb849c9ea1b200/wai/test/AWS/Lambda/Wai/EncodingSpec.hs
haskell
# LANGUAGE DuplicateRecordFields # # LANGUAGE OverloadedStrings # module AWS.Lambda.Wai.EncodingSpec where import AWS.Lambda.Event.APIGatewayV2 import AWS.Lambda.Wai.Encoding import Control.Lens import Data.Aeson import qualified Data.List as List import qualified Data.Map...
47c8fb7d56aa434544eee77896c785cfd2c50a39f6df0dcfa1cc519c860117c3
kmonad/kmonad
Cmd.hs
| Module : KMonad . . Cmd Description : Parse command - line options into a ' Cmd ' for KMonad to execute Copyright : ( c ) , 2019 License : MIT Maintainer : Stability : experimental Portability : non - portable ( MPTC with FD , FFI to Linux - only c - code ) Module : KMona...
null
https://raw.githubusercontent.com/kmonad/kmonad/6c2dfa584c251683206de94f5354d6edd98ae227/src/KMonad/Args/Cmd.hs
haskell
------------------------------------------------------------------------------ $cmd The different things KMonad can be instructed to do. | Record describing the instruction to KMonad ^ Which file to read the config from ^ Flag to indicate we are only test-parsing ^ Level of logging to use ^ How long to wait bef...
| Module : KMonad . . Cmd Description : Parse command - line options into a ' Cmd ' for KMonad to execute Copyright : ( c ) , 2019 License : MIT Maintainer : Stability : experimental Portability : non - portable ( MPTC with FD , FFI to Linux - only c - code ) Module : KMona...
8ee9dafd031bcc2bdbd2823b44382074882ffd8e31cc492ce432c4118ed9e496
jessealama/argo
resolve.rkt
#lang racket/base (module+ test (require rackunit)) (require (only-in (file "parameters.rkt") original-schema current-id)) (require net/url-structs) (require net/http-easy) (require (only-in net/url string->url combine-url/relative)) (requir...
null
https://raw.githubusercontent.com/jessealama/argo/244234415715d2e9294d56f04f79e86f56bcb64f/resolve.rkt
racket
string?|url? string?|#f jsexpr? -> jsexpr? boolean? commented out because testing these requires making an HTTP connection to json-schema.org: (define-values (resolved-geo resolved-ok?) (check-true resolved-ok?) (check-true (equal-jsexprs? resolved-geo geo/jsexp)) -json-schema/structuring.html
#lang racket/base (module+ test (require rackunit)) (require (only-in (file "parameters.rkt") original-schema current-id)) (require net/url-structs) (require net/http-easy) (require (only-in net/url string->url combine-url/relative)) (requir...