_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
0479618f73bf9999039ca5a2cdd837d960152a2e87d1c9acda2f02de3f7f7ed4
herd/herdtools7
CTarget.mli
(****************************************************************************) (* the diy toolsuite *) (* *) , University College London , UK . , INRIA Par...
null
https://raw.githubusercontent.com/herd/herdtools7/b70415f92cc358fc0e8453a042f9890b93b5217c/litmus/CTarget.mli
ocaml
************************************************************************** the diy toolsuite en Automatique and ...
, University College London , UK . , INRIA Paris - Rocquencourt , France . Copyright 2014 - present Institut National de Recherche en Informatique et This software is governed by the CeCILL - B license under French law and modify and/ or redistribu...
f640ce16c992fb4ee9735c871590e85e480bc02c4c2d0179db904c0a5903e31f
witheve/eve-experiments
client.cljs
(ns ui.client (:refer-clojure :exclude [find remove when]) (:require [clojure.set :as set] [clojure.walk :as walk]) (:require-macros [ui.macros :refer [afor when]])) (def USE-SERVER? true) (def BE-STUPIDLY-OPTIMISTIC? true) (def LOCAL-ONLY-TAGS #{"selection" "grid-user-state"}) (def KEYS {:enter 13 ...
null
https://raw.githubusercontent.com/witheve/eve-experiments/8a1cdb353b3e728bc768b315e5b9a9f9dc785ae1/server/src/ui/client.cljs
clojure
--------------------------------------------------------- Runtime wrapper --------------------------------------------------------- --------------------------------------------------------- Websocket --------------------------------------------------------- (send-query "all facts" (query-string `(query [e...
(ns ui.client (:refer-clojure :exclude [find remove when]) (:require [clojure.set :as set] [clojure.walk :as walk]) (:require-macros [ui.macros :refer [afor when]])) (def USE-SERVER? true) (def BE-STUPIDLY-OPTIMISTIC? true) (def LOCAL-ONLY-TAGS #{"selection" "grid-user-state"}) (def KEYS {:enter 13 ...
7924fba82b1faf772524b2f2d2fb1dae5c1350f99d58cee7be7a610120c1d712
nionita/Barbarossa
UciGlue.hs
{-# LANGUAGE TypeSynonymInstances #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleInstances # module Uci.UciGlue ( bestMoveCont ) where import Control . Monad . State . Lazy import Search.CStateMonad (runCState) import Search.AlbetaTypes import Search.Albeta import Struct.Struct import S...
null
https://raw.githubusercontent.com/nionita/Barbarossa/f6168ea77508f75256fb23ce0afc89c5a5fe928d/Uci/UciGlue.hs
haskell
# LANGUAGE TypeSynonymInstances # Parameter of the search at this level: initial aspiration window
# LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleInstances # module Uci.UciGlue ( bestMoveCont ) where import Control . Monad . State . Lazy import Search.CStateMonad (runCState) import Search.AlbetaTypes import Search.Albeta import Struct.Struct import Struct.Status import Struct.Context ...
a5dafca50a6e95f35e2181b7b6d8fbac99d93c88045fd24a68970960701a2933
Clozure/ccl-tests
error.lsp
;-*- Mode: Lisp -*- Author : Created : Tue Jan 28 21:37:43 2003 ;;;; Contains: Tests of ERROR (in-package :cl-test) (deftest error.1 (let ((fmt "Error")) (handler-case (error fmt) (simple-error (c) (frob-simple-error c fmt)))) t) (deftest error.2 (let* ((fmt "Error") (cnd (make-c...
null
https://raw.githubusercontent.com/Clozure/ccl-tests/0478abddb34dbc16487a1975560d8d073a988060/ansi-tests/error.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests of ERROR Tests for other conditions will in their own files.
Author : Created : Tue Jan 28 21:37:43 2003 (in-package :cl-test) (deftest error.1 (let ((fmt "Error")) (handler-case (error fmt) (simple-error (c) (frob-simple-error c fmt)))) t) (deftest error.2 (let* ((fmt "Error") (cnd (make-condition 'simple-error :format-control fmt))) (han...
bcfe225f2d7ce8404db322e709acada929e6aec0f53fd3aab3f8b68e4821076f
xxyzz/SICP
Exercise_4_43.rkt
#lang sicp (define (require p) (if (not p) (amb))) (define (distinct? items) (cond [(null? items) true] [(null? (cdr items)) true] [(member (car items) (cdr items)) false] [else (distinct? (cdr items))])) (define (verify daughter-yacht parker) (if (eq? (car daughter-yacht) "Gabrielle") ...
null
https://raw.githubusercontent.com/xxyzz/SICP/e26aea1c58fd896297dbf5406f7fcd32bb4f8f78/4_Metalinguistic_Abstraction/4.3_Variations_on_a_Scheme_Nondeterministic_Computing/Exercise_4_43.rkt
racket
#lang sicp (define (require p) (if (not p) (amb))) (define (distinct? items) (cond [(null? items) true] [(null? (cdr items)) true] [(member (car items) (cdr items)) false] [else (distinct? (cdr items))])) (define (verify daughter-yacht parker) (if (eq? (car daughter-yacht) "Gabrielle") ...
0a26ddf4d7e19da714c4e4b52ad167afb56fdf7271a1d612dbbfc4738fc7c8c5
dgtized/shimmers
memory_test.cljc
(ns shimmers.automata.memory-test (:require [clojure.test :as t :refer [deftest is] :include-macros true] [shimmers.automata.memory :as sut])) (def pages 8) (def a1 (sut/->Allocation 0 2 2)) (def a2 (sut/->Allocation 0 4 1)) (deftest next-free-chunk (is (= 0 (sut/next-free pages [a1] 0))) (is (= 4 (sut/ne...
null
https://raw.githubusercontent.com/dgtized/shimmers/57288e7faa60d9e04e2c515ef93c7016864b0d53/test/shimmers/automata/memory_test.cljc
clojure
(ns shimmers.automata.memory-test (:require [clojure.test :as t :refer [deftest is] :include-macros true] [shimmers.automata.memory :as sut])) (def pages 8) (def a1 (sut/->Allocation 0 2 2)) (def a2 (sut/->Allocation 0 4 1)) (deftest next-free-chunk (is (= 0 (sut/next-free pages [a1] 0))) (is (= 4 (sut/ne...
9dd2501f8ed8acc412c78a7bc91ccff34c2394f313c9150508cd47e45a67997e
dgiot/dgiot
dgiot_device_profile.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_device/src/dgiot_device_profile.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_device_profile). -author("jonhliu"). -include("dgiot_device.hrl"). -include_lib(...
4c820d10b8fcb80ee250b208d72d5fb0caca0c1aa1219d1055e2466c9612624a
K1D77A/lisp-pay
api-helpers.lisp
(in-package #:lisp-pay/coinpayments) ;;;;this file contains some helpers for working with the coinpayments.net api. (defparameter *sym->string* (make-hash-table :test #'equal) "A list of symbols and their string counterparts") (defun new-string (symbol) (setf (gethash (symbol-name symbol) *sym->string*) ...
null
https://raw.githubusercontent.com/K1D77A/lisp-pay/f345dc8358b270428e72881ce19596576c6b1246/src/coinpayments/api-helpers.lisp
lisp
this file contains some helpers for working with the coinpayments.net api. (convert-merchant-secret-key request)
(in-package #:lisp-pay/coinpayments) (defparameter *sym->string* (make-hash-table :test #'equal) "A list of symbols and their string counterparts") (defun new-string (symbol) (setf (gethash (symbol-name symbol) *sym->string*) (str:snake-case (symbol-name symbol)))) (defun symbol->string (symbol) (let ...
955cb9de2ddf6e234ade77b267bca59203847b184e9d14701b4e7daf9980048a
emqx/emqttb
emqtt_gauge_SUITE.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2022 EMQ 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 of the L...
null
https://raw.githubusercontent.com/emqx/emqttb/241975a55577ec2001c05bb4cef96e309bf84459/test/emqtt_gauge_SUITE.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 ) 2022 EMQ 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(emqtt_gauge_SUITE). -compile(nowarn_export_all). -compile(export_all). -include_lib("snabbkaf...
f25d96c8453a2caef0cc6c2454997df1fbc090ae4e84f1e893caa6996cd380f2
melange-re/melange
bs_ast_mapper.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/melange-re/melange/b595c2647a285e8bb8b16f109d0ab0fbfa22afa3/jscomp/common/bs_ast_mapper.ml
ocaml
************************************************************************ OCaml ...
, LexiFi Copyright 2012 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the A generic Parsetree mapping class [ @@@ocaml.warning " +9 " ] ( * Ensure that record patterns do ...
d2b5aabde427d87931805ad3c269ca29fb479ed4ce8e6b80ae869028431069b3
heraldry/heraldicon
register.cljs
(ns heraldicon.frontend.user.form.register (:require [clojure.string :as str] [heraldicon.frontend.aws.cognito :as cognito] [heraldicon.frontend.language :refer [tr]] [heraldicon.frontend.message :as message] [heraldicon.frontend.modal :as modal] [heraldicon.frontend.user.form.confirmation :as confi...
null
https://raw.githubusercontent.com/heraldry/heraldicon/54e003614cf2c14cda496ef36358059ba78275b0/src/heraldicon/frontend/user/form/register.cljs
clojure
(ns heraldicon.frontend.user.form.register (:require [clojure.string :as str] [heraldicon.frontend.aws.cognito :as cognito] [heraldicon.frontend.language :refer [tr]] [heraldicon.frontend.message :as message] [heraldicon.frontend.modal :as modal] [heraldicon.frontend.user.form.confirmation :as confi...
0a3c596cc79db464e009469b98c67d847c74ad117817501af0f5a531306e4f65
elastic/runbld
version.clj
(ns runbld.version (:require [clojure.java.io :as io])) (defn build [] (if-let [b (io/resource "build.txt")] (.trim (slurp b)) "NOBUILD" #_"For fresh tests")) (defn version [] (.trim (slurp (io/resource "version.txt")))) (defn string [] (format "%s/%s" (version) (build)))
null
https://raw.githubusercontent.com/elastic/runbld/7afcb1d95a464dc068f95abf3ad8a7566202ce28/src/clj/runbld/version.clj
clojure
(ns runbld.version (:require [clojure.java.io :as io])) (defn build [] (if-let [b (io/resource "build.txt")] (.trim (slurp b)) "NOBUILD" #_"For fresh tests")) (defn version [] (.trim (slurp (io/resource "version.txt")))) (defn string [] (format "%s/%s" (version) (build)))
426c560bbcf062973a2f189b0e455d0b5f38bbd2e9d2beeac4cb7ef262ce0aaf
wireless-net/erlang-nommu
wx_object.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2008 - 2011 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Publi...
null
https://raw.githubusercontent.com/wireless-net/erlang-nommu/79f32f81418e022d8ad8e0e447deaea407289926/lib/wx/src/wx_object.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitatio...
Copyright Ericsson AB 2008 - 2011 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " File : wx_object.erl Author : <...
b0551c44363bae705482d09b3a2a014219024e3affd6e3e83244b828e6c846a0
draperlaboratory/VIBES
asm.mli
(***************************************************************************) (* *) Copyright ( C ) 2022/2023 The Charles Stark Draper Laboratory , Inc. (* *) (* This...
null
https://raw.githubusercontent.com/draperlaboratory/VIBES/7f978d66d0b022d1a9262fdfc608b7a2b7c95dff/tools/vibes-constants/lib/asm.mli
ocaml
************************************************************************* This file is provided under the license found in the LICENSE file in the top-level director...
Copyright ( C ) 2022/2023 The Charles Stark Draper Laboratory , Inc. This research was developed with funding from the Defense Advanced Research Projects Agency ( DARPA ) . val patch_start_label : string val patch_location : string
7056ece1630b8b33ee64a2dd00b1e5f0952feaa6e08e281ff94cb7df92f4aca3
maxweber/clj-facebook-graph
FacebookGraphException.clj
Copyright ( c ) . All rights reserved . ; The use and distribution terms for this software are covered by the Eclipse Public License 1.0 ( -1.0.php ) ; which can be found in the file epl-v10.html at the root of this distribution. ; By using this software in any fashion, you are agreeing to be bound by ; the terms...
null
https://raw.githubusercontent.com/maxweber/clj-facebook-graph/34ed828c15c2cf4d9f8ae52d28ae14958248514d/src/clj_facebook_graph/FacebookGraphException.clj
clojure
The use and distribution terms for this software are covered by the which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software.
Copyright ( c ) . All rights reserved . Eclipse Public License 1.0 ( -1.0.php ) (ns clj-facebook-graph.FacebookGraphException (:gen-class :extends java.lang.Exception :implements [clojure.lang.IDeref] :state state :init init :constructors {[clojure.lang.Associative] [String]} :methods [[getEr...
dbcedba5f49b487ffba930e88119c3738812fd9cd336317e3ac62b7b3bb3fc59
mbutterick/beautiful-racket
main.rkt
#lang br/quicklang (require "grammar.rkt") (module+ reader (provide read-syntax)) (define (tokenize ip) (for/list ([tok (in-port read-char ip)]) tok)) (define (parse src toks) (define parse-tree-datum (parse-to-datum toks)) (for/list ([leaf (in-list (cdr parse-tree-datum))]) (integer->char (for/...
null
https://raw.githubusercontent.com/mbutterick/beautiful-racket/f0e2cb5b325733b3f9cbd554cc7d2bb236af9ee9/beautiful-racket-demo/tacogram-demo/main.rkt
racket
#lang br/quicklang (require "grammar.rkt") (module+ reader (provide read-syntax)) (define (tokenize ip) (for/list ([tok (in-port read-char ip)]) tok)) (define (parse src toks) (define parse-tree-datum (parse-to-datum toks)) (for/list ([leaf (in-list (cdr parse-tree-datum))]) (integer->char (for/...
cca3d14d6ed7b17499c4e5be941637c07f0bbc43526ef69d4be1d4328d559c61
yitzchak/common-lisp-jupyter
appveyor-preload.lisp
(ql:quickload '(:common-lisp-jupyter))
null
https://raw.githubusercontent.com/yitzchak/common-lisp-jupyter/930e600cac727360e53cc44a17fde41f05125547/scripts/appveyor-preload.lisp
lisp
(ql:quickload '(:common-lisp-jupyter))
ebdcc323f7f846c99f0642e124f491703cfc028354580384a3140b0fc70ccaec
lucasdicioccio/deptrack-project
BaseImage.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE LambdaCase # -- | Module representing base images in an immutable-infrastructure approach. -- -- This module proposes to bootstrap base images locally from a debootstrapped -- environment and using a chroot. module Devops.BaseImage where import Data.Mono...
null
https://raw.githubusercontent.com/lucasdicioccio/deptrack-project/cd3d59a796815af8ae8db32c47b1e1cdc209ac71/deptrack-devops-recipes/src/Devops/BaseImage.hs
haskell
# LANGUAGE OverloadedStrings # | Module representing base images in an immutable-infrastructure approach. This module proposes to bootstrap base images locally from a debootstrapped environment and using a chroot. Path to binary to turnup a new base image. Path receiving the image. Directory receiving the deboot...
# LANGUAGE LambdaCase # module Devops.BaseImage where import Data.Monoid ((<>)) import qualified Data.Text as Text import Data.Typeable (Typeable) import System.FilePath (makeRelative, (</>)) import Devops.Base import ...
6eb60c6c1e3b3abc8b0c4d5ceada5a7c3b924b95afa428c2fb0fc838e21bb2d7
edgecase/dieter
css.clj
(ns dieter.test.asset.css (:require [clojure.java.io :as io] [dieter.test.helpers :as h] [dieter.asset :as asset] [dieter.settings :as settings] [dieter.asset.css :as css]) (:use clojure.test) (:import dieter.asset.css.Css)) (deftest test-read-asset-css (let [ass...
null
https://raw.githubusercontent.com/edgecase/dieter/f3c7cdd7703c6d1556e68bbe8fc94406b717f6f1/dieter-core/test/dieter/test/asset/css.clj
clojure
(ns dieter.test.asset.css (:require [clojure.java.io :as io] [dieter.test.helpers :as h] [dieter.asset :as asset] [dieter.settings :as settings] [dieter.asset.css :as css]) (:use clojure.test) (:import dieter.asset.css.Css)) (deftest test-read-asset-css (let [ass...
526b18712e4ee0bce117bebef9870900d3b6dd731f800dae40d9638338cc9b4b
helvm/helma
Automaton.hs
module HelVM.HelMA.Automata.SubLeq.Automaton ( newAutomaton, run, ) where import HelVM.HelMA.Automaton.IO.AutomatonIO import HelVM.HelMA.Automaton.IO.BusinessIO import HelVM.HelMA.Automaton.Loop as Loop import HelVM.HelMA.Automaton.Units.RAM as RAM import ...
null
https://raw.githubusercontent.com/helvm/helma/2ae31668ce11ded53daf01effe25047d5ce471cf/hs/src/HelVM/HelMA/Automata/SubLeq/Automaton.hs
haskell
| IO instructions | Terminate instruction | Types
module HelVM.HelMA.Automata.SubLeq.Automaton ( newAutomaton, run, ) where import HelVM.HelMA.Automaton.IO.AutomatonIO import HelVM.HelMA.Automaton.IO.BusinessIO import HelVM.HelMA.Automaton.Loop as Loop import HelVM.HelMA.Automaton.Units.RAM as RAM import ...
0fdb6ce62bc61bc4df45fdf69f5f7e6c68dbe9d328436966e8132e7958b10fe5
clojure/tools.logging
test_readable.clj
(ns clojure.tools.logging.test-readable (:use clojure.test) (:require [clojure.set :as set] [clojure.tools.logging.readable :refer :all] [clojure.tools.logging.test :as log-test :refer [logged? with-log]])) (deftest logp-single-eval (with-log (let [cnt (atom 0)] (logp :debug (str (swap! cnt...
null
https://raw.githubusercontent.com/clojure/tools.logging/31073fe1fbb0533f3c775fa667de70809f24b127/src/test/clojure/clojure/tools/logging/test_readable.clj
clojure
(ns clojure.tools.logging.test-readable (:use clojure.test) (:require [clojure.set :as set] [clojure.tools.logging.readable :refer :all] [clojure.tools.logging.test :as log-test :refer [logged? with-log]])) (deftest logp-single-eval (with-log (let [cnt (atom 0)] (logp :debug (str (swap! cnt...
bdd023c24c18abfe964694831ce281cb492ba8783f811894cb9601e2e1666beb
awslabs/s2n-bignum
bignum_mod_p384_6.ml
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved . * SPDX - License - Identifier : Apache-2.0 OR ISC * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 OR ISC *) (* =================================================================...
null
https://raw.githubusercontent.com/awslabs/s2n-bignum/824c15f908d7a343af1b2f378cfedd36e880bdde/x86/proofs/bignum_mod_p384_6.ml
ocaml
========================================================================= ========================================================================= *** print_literal_from_elf "x86/p384/bignum_mod_p384_6.o";; *** NOT (% rax) NOT (% rax) AND (% rax) (% rsi) XOR (% rsi) (% rsi) SUB (% rsi) (% rax) AND (% r...
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved . * SPDX - License - Identifier : Apache-2.0 OR ISC * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 OR ISC *) Reduction modulo p_384 , the field characteristic of the NIST curv...
7c0a9fe8ed208e60ba0bbe904fa52c239b33bd0f467318c6042dca5d9f35ca15
mirage/mirage
job.mli
* Copyright ( c ) 2013 - 2020 < > * Copyright ( c ) 2013 - 2020 Anil Madhavapeddy < > * Copyright ( c ) 2015 - 2020 < > * * 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 an...
null
https://raw.githubusercontent.com/mirage/mirage/7e36d793ad8bd34beb51bbba62a39aa035f7e297/lib/functoria/job.mli
ocaml
* The representation of main tasks. * Type for job values. * [job] is the signature for user's application main module. * [noop] is an implementation of {!Functoria.job} that holds no state, does nothing and has no dependency. * [keys a] is an implementation of {!Functoria.job} that holds the parsed command...
* Copyright ( c ) 2013 - 2020 < > * Copyright ( c ) 2013 - 2020 Anil Madhavapeddy < > * Copyright ( c ) 2015 - 2020 < > * * 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 an...
189c4b06ae4d4613fa587f730cd239b8aa46c4c7dbacbaaf6478195c258a184e
mattsta/cbuf
cbuf.erl
-module(cbuf). -compile(export_all). start_link() -> cbuf_server:start_link(512). start_link(Length) -> cbuf_server:start_link(Length). start_link(Length, Name) -> cbuf_server:start_link(Length, Name). %%%---------------------------------------------------------------------- %%% Usable Functions %%%-----------...
null
https://raw.githubusercontent.com/mattsta/cbuf/8dcfc95b51a521e0ebcdaeb791b1fecb9c9a1d80/src/cbuf.erl
erlang
---------------------------------------------------------------------- Usable Functions ---------------------------------------------------------------------- ---------------------------------------------------------------------- Testing ----------------------------------------------------------------------
-module(cbuf). -compile(export_all). start_link() -> cbuf_server:start_link(512). start_link(Length) -> cbuf_server:start_link(Length). start_link(Length, Name) -> cbuf_server:start_link(Length, Name). add(Server, Data) -> gen_server:call(Server, {add, Data}). entries(Server, Count) -> gen_server:call(Se...
94ab03cd4db14579d9d70fcc08858c37048dabb05fb8ea58fd72a98876bc1eb7
Earthen/clj-cb
bucket_manager.clj
(ns earthen.clj-cb.bucket-manager (:refer-clojure :exclude [flush]) (:require [earthen.clj-cb.utils :as u]) (:import [com.couchbase.client.java.bucket BucketManager] [com.couchbase.client.java.view SpatialView DesignDocument DefaultView])) (defn default-view->map [defaultview] {:name (.name defau...
null
https://raw.githubusercontent.com/Earthen/clj-cb/aaf7db4bfd26a1d6506b980d6cae6399c3776751/src/earthen/clj_cb/bucket_manager.clj
clojure
(ns earthen.clj-cb.bucket-manager (:refer-clojure :exclude [flush]) (:require [earthen.clj-cb.utils :as u]) (:import [com.couchbase.client.java.bucket BucketManager] [com.couchbase.client.java.view SpatialView DesignDocument DefaultView])) (defn default-view->map [defaultview] {:name (.name defau...
183262f332fcfb0c12eb11ef405650c1624312c6fc7b68a065fb2788ce724580
unclechu/xlib-keys-hack
Process.hs
Author : License : -keys-hack/master/LICENSE # LANGUAGE ScopedTypeVariables , DataKinds , DoAndIfThenElse # module Process ( initReset , processWindowFocus , watchLeds , HandledKey , handleKeyEvent , getNextKeyboardDeviceKeyEvent , SoftwareDebouncer , getSoftwareDebouncer , getSoftwareDebou...
null
https://raw.githubusercontent.com/unclechu/xlib-keys-hack/33b49a9b1fc4bc87bdb95e2bb632a312ec2ebad0/src/Process.hs
haskell
local imports Little delay between restarts FIXME waiting in blocking-mode for new leds event Watch for new leds state and when new leds state is coming Watch for keyboard layout change
Author : License : -keys-hack/master/LICENSE # LANGUAGE ScopedTypeVariables , DataKinds , DoAndIfThenElse # module Process ( initReset , processWindowFocus , watchLeds , HandledKey , handleKeyEvent , getNextKeyboardDeviceKeyEvent , SoftwareDebouncer , getSoftwareDebouncer , getSoftwareDebou...
57e941c4456a67a8d602212dcdcffe81d8f71e595e2ccf4331ff15f4738d7cd6
onedata/op-worker
helpers_reload.erl
%%%------------------------------------------------------------------- @author ( C ) 2019 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%------------------------------------------------------------------- %%% @doc %%% This module contains functions for...
null
https://raw.githubusercontent.com/onedata/op-worker/797a9cd65376ca1357901b0927b9d4f96747df1a/src/modules/storage/helpers/helpers_reload.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- @doc This module contains functions for reloading storage helper parameters after storage configuration has changed. @end ----------------------------------------------------...
@author ( C ) 2019 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . -module(helpers_reload). -author("Wojciech Geisler"). -include("modules/datastore/datastore_models.hrl"). -include_lib("ctool/include/logging.hrl"). -export([refresh_helpers_by_storage/1, refresh_...
53bf9735cb423105d195b9cbd864036049fb2cef42d7fcd761aa1fffce513492
jbrisbin/amqp_client
amqp_channels_manager.erl
The contents of this file are subject to the Mozilla Public License %% Version 1.1 (the "License"); you may not use this file except in %% compliance with the License. You may obtain a copy of the License at %% / %% Software distributed under the License is distributed on an " AS IS " %% basis, WITHOUT WARRANTY OF ...
null
https://raw.githubusercontent.com/jbrisbin/amqp_client/d50aec00b94f0766a048b4eceaf25ddfdeeb1d86/src/amqp_channels_manager.erl
erlang
Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. Pid -> Number -...
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is RabbitMQ . The Initial Developer of the Original Code is GoPivotal , Inc. Copyright ( c ) 2007 - 2016 Pivotal Software , Inc. All rights reserved . ...
9136f4e0958356ccd6a29cb2c8ee0f4a1c4c50dd2d741d09a86df72e056d07bb
zlatozar/study-paip
unify.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : CH11 ; Base : 10 -*- ;;; Code from Paradigms of Artificial Intelligence Programming Copyright ( c ) 1991 ;;;; File unify.lisp: Unification functions (in-package #:ch11) (defparameter *occurs-check* t "Should we do the occurs check?") Like ` ch6 : pat - m...
null
https://raw.githubusercontent.com/zlatozar/study-paip/dfa1ca6118f718f5d47d8c63cbb7b4cad23671e1/ch11/unify.lisp
lisp
Syntax : COMMON - LISP ; Package : CH11 ; Base : 10 -*- Code from Paradigms of Artificial Intelligence Programming File unify.lisp: Unification functions matching logical variable against itself must always succeed are matched against each other *** Close to `ch6::match-variable' When try to unify variable with...
Copyright ( c ) 1991 (in-package #:ch11) (defparameter *occurs-check* t "Should we do the occurs check?") Like ` ch6 : pat - match ' but with two main differences (defun unify (x y &optional (bindings no-bindings)) "See if X and Y match with given bindings." (cond ((eq bindings fail) fail) ((eql ...
9414ea7146601614ba37456b0b196cca41484b71f0d9f3b70c56119f24d9c48e
tweag/asterius
plusMinusInteger.hs
module Main (main) where main :: IO () main = do print $ length vals where boundaries :: [Integer] boundaries = [fromIntegral (maxBound :: Int) - 3, fromIntegral (maxBound :: Int) - 2, fromIntegral (maxBound :: Int) - 1, fromIntegral (maxBound :: In...
null
https://raw.githubusercontent.com/tweag/asterius/e7b823c87499656860f87b9b468eb0567add1de8/asterius/test/ghc-testsuite/integer/plusMinusInteger.hs
haskell
module Main (main) where main :: IO () main = do print $ length vals where boundaries :: [Integer] boundaries = [fromIntegral (maxBound :: Int) - 3, fromIntegral (maxBound :: Int) - 2, fromIntegral (maxBound :: Int) - 1, fromIntegral (maxBound :: In...
4f8b85a792485dbc0c604ec113baa107005d41e13ab03c420a196975821bb44d
cbaggers/rtg-math
docs-consing.lisp
(in-package :rtg-math.vector2) ;;---------------------------------------------------------------- (docs:define-docs (defun +s " Component-wise add of single-float to `vec2` ") (defun -s " Component-wise subtraction of single-float from `vec2` ") (defun angle-between " Returns the angle between...
null
https://raw.githubusercontent.com/cbaggers/rtg-math/29fc5b3d0028a4a11a82355ecc8cca62662c69e0/vectors/vector2/docs-consing.lisp
lisp
----------------------------------------------------------------
(in-package :rtg-math.vector2) (docs:define-docs (defun +s " Component-wise add of single-float to `vec2` ") (defun -s " Component-wise subtraction of single-float from `vec2` ") (defun angle-between " Returns the angle between two `vec2`s. Equivilent to (abs (v2:angle-from a b)) ") (defun ...
59d6c40ec11f42d2b100a344c71af2edb4ae3478d20013e8992a2232ac9d92dd
tweag/distributed-closure
test.hs
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE StaticPointers # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -fno - warn - orphans # module Main wher...
null
https://raw.githubusercontent.com/tweag/distributed-closure/0eaace06ad1e9d80d13287b4e3b1e03f314082ed/tests/test.hs
haskell
# LANGUAGE GADTs # Test that the result of this splice compiles. * Basic generators (parameterized by size) | Generates a basic closure using @cpure@ | Generates a basic closure using @closure@ static pointers are considered to contribute 0 to the size, hence ignore the size parameter. here because we already ha...
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # # LANGUAGE StaticPointers # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -fno - warn - orphans # module Main where import Control.Distr...
6971f262841da202373ef5e053ed4e0e2ffe1b01320581fd7075c796a4346dd2
goldfirere/singletons
CustomStar.hs
----------------------------------------------------------------------------- -- | Module : Data . Singletons . Base . CustomStar Copyright : ( C ) 2013 -- License : BSD-style (see LICENSE) Maintainer : -- Stability : experimental -- Portability : non-portable -- This file implemen...
null
https://raw.githubusercontent.com/goldfirere/singletons/70d622645b960d60411ab8f31d16ffb91e69379e/singletons-base/src/Data/Singletons/Base/CustomStar.hs
haskell
--------------------------------------------------------------------------- | License : BSD-style (see LICENSE) Stability : experimental Portability : non-portable Haskell types themselves. This is still very experimental, so expect unusual results! more minimal version of this module that does not re...
Module : Data . Singletons . Base . CustomStar Copyright : ( C ) 2013 Maintainer : This file implements ' singletonStar ' , which generates a datatype and associated singleton from a list of types . The promoted version of is kind @*@ and the See also " Data . Singletons . TH.CustomSt...
85a5c0433fdaad9c88a044b205e6daed0227b42172b08114156865ab26257b14
elsys/fp-haskell
Lists.hs
# OPTIONS_GHC -Wall # module Lists where import qualified Data.List () import Prelude hiding ( head, tail, null, length, reverse, repeat, replicate, concat, sum, maximum, take, drop, elem, (!!) ) head :: [Int] -> Int head [] = error "empty list" head (x:_) = x tail :: [Int] -> [Int] tail [...
null
https://raw.githubusercontent.com/elsys/fp-haskell/9a2d0cf8b99739c4fee21dc2e2d142de8e87df73/exercises/lists/Lists.hs
haskell
# OPTIONS_GHC -Wall # module Lists where import qualified Data.List () import Prelude hiding ( head, tail, null, length, reverse, repeat, replicate, concat, sum, maximum, take, drop, elem, (!!) ) head :: [Int] -> Int head [] = error "empty list" head (x:_) = x tail :: [Int] -> [Int] tail [...
e6f1db8ed7829f1ba0661cbb18de6665a1c8a5518113f716cb77ca9e834c448a
binsec/haunted
xtrasec.mli
(**************************************************************************) This file is part of BINSEC . (* *) Copyright ( C ) 2016 - 2019 CEA ( Co...
null
https://raw.githubusercontent.com/binsec/haunted/7ffc5f4072950fe138f53fe953ace98fff181c73/src/xtrasec/xtrasec.mli
ocaml
************************************************************************ alternatives) you can redistribute it an...
This file is part of BINSEC . Copyright ( C ) 2016 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , ve...
df17d121f9709127d0efaf5b883b049ed4c1006ef050a76ee0d3792a7a66ff7e
deadpendency/deadpendency
IgnoredRepoDependencies.hs
module Common.Model.Dependency.Ignored.IgnoredRepoDependencies ( IgnoredRepoDependencies (..), ) where import Common.Aeson.Aeson import Common.Model.Dependency.Ignored.IgnoredDependency import Data.Aeson import Data.Vector qualified as V newtype IgnoredRepoDependencies = IgnoredRepoDependencies { _dependencies ...
null
https://raw.githubusercontent.com/deadpendency/deadpendency/170d6689658f81842168b90aa3d9e235d416c8bd/apps/common/src/Common/Model/Dependency/Ignored/IgnoredRepoDependencies.hs
haskell
module Common.Model.Dependency.Ignored.IgnoredRepoDependencies ( IgnoredRepoDependencies (..), ) where import Common.Aeson.Aeson import Common.Model.Dependency.Ignored.IgnoredDependency import Data.Aeson import Data.Vector qualified as V newtype IgnoredRepoDependencies = IgnoredRepoDependencies { _dependencies ...
67de9bb079b3e02f7e865ab3e4b22b2dee4d29ad7d2cb308ad50a5f3e5cda75f
ocaml-flambda/ocaml-jst
ocaml_actions.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-flambda/ocaml-jst/1bb6c797df7c63ddae1fc2e6f403a0ee9896cc8e/ocamltest/ocaml_actions.ml
ocaml
************************************************************************ OCaml ...
, projet Gallium , INRIA Paris Copyright 2017 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Ocamltest_stdlib open Actions let no_native_compilers _log env = (Result.skip_with_reason "native com...
88efc30760eb5c6e27029bc31fe612a89fa0a0f225337dbd3f8ea4e7c01e1dd5
eschulte/software-evolution
quick-sort.lisp
(defun quick-sort (list) (unless (null list) (let ((x (car list)) (xs (cdr list))) (append (quick-sort (remove-if (lambda (el) (>= el x)) xs)) (list x) (quick-sort (remove-if (lambda (el) (< x el)) xs))))))
null
https://raw.githubusercontent.com/eschulte/software-evolution/dbf5900d1eef834b93eeb00eca34eb7c80e701b6/test/quick-sort/quick-sort.lisp
lisp
(defun quick-sort (list) (unless (null list) (let ((x (car list)) (xs (cdr list))) (append (quick-sort (remove-if (lambda (el) (>= el x)) xs)) (list x) (quick-sort (remove-if (lambda (el) (< x el)) xs))))))
716e6a54dd281bbd64dacf78773b685aa1560e8cda73e79cab2a32ec936bba6c
SecPriv/webspec
script.ml
(********************************************************************************) Copyright ( c ) 2022 (* *) (* Permission is hereby granted, free of charge, to any person obtaining a *) (* copy of this software and associated doc...
null
https://raw.githubusercontent.com/SecPriv/webspec/b7ff6b714b3a4b572c108cc3136506da3d263eff/verifier/src/script.ml
ocaml
****************************************************************************** Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), th...
Copyright ( c ) 2022 to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN AN ACTION OF CONTRACT...
df00f6f81401d41e72f4433d821baf6c42a56d4ec343c6f3af40ba24c109570f
vikram/lisplibraries
dispatcher.lisp
(in-package :weblocks-test) ;; whether find-widget-by-path* leaves the cache alone (deftest dispatcher-cache-1 (with-request :get nil :uri "/test1" (setf (root-composite) (create-site-layout)) (catch 'handler-done (handle-client-request (weblocks::current-webapp))) (flet ((the-cache-path () ...
null
https://raw.githubusercontent.com/vikram/lisplibraries/105e3ef2d165275eb78f36f5090c9e2cdd0754dd/site/weblocks-stable/test/widgets/dispatcher.lisp
lisp
whether find-widget-by-path* leaves the cache alone
(in-package :weblocks-test) (deftest dispatcher-cache-1 (with-request :get nil :uri "/test1" (setf (root-composite) (create-site-layout)) (catch 'handler-done (handle-client-request (weblocks::current-webapp))) (flet ((the-cache-path () (car (dispatcher-cache (find-widget-by-path...
b748e5932798a77bc8577221bba3133617beb58531184bbb6f3388488a368f2d
dparis/lein-essthree
project.clj
(defproject lein-essthree "0.3.1-SNAPSHOT" :description "Leiningen plugin for easy S3 project deployment and dependency resolution" :url "-essthree" :license {:name "MIT License" :url ""} :min-lein-version "2.8.1" :dependencies [[com.amazonaws/aws-java-sdk-core "1.11.787"] [com...
null
https://raw.githubusercontent.com/dparis/lein-essthree/a351693b850ba4bd478c9e922969d057b61b7b45/project.clj
clojure
(defproject lein-essthree "0.3.1-SNAPSHOT" :description "Leiningen plugin for easy S3 project deployment and dependency resolution" :url "-essthree" :license {:name "MIT License" :url ""} :min-lein-version "2.8.1" :dependencies [[com.amazonaws/aws-java-sdk-core "1.11.787"] [com...
7b246617b5c20f98aad2037d6aa6938156b0e4f41b8a22215d7d76c665e356e1
Bogdanp/racket-http-easy
pool.rkt
#lang racket/base (require (prefix-in d: data/pool) net/http-client racket/contract "error.rkt" "logger.rkt" "timeout.rkt") ;; config ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (provide limit/c make-pool-config pool-config?) (struct pool-config (ma...
null
https://raw.githubusercontent.com/Bogdanp/racket-http-easy/630a982a282a51fd7fd85dc5e2f3f581c564b5e4/http-easy-lib/http-easy/private/pool.rkt
racket
config ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; pool ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
#lang racket/base (require (prefix-in d: data/pool) net/http-client racket/contract "error.rkt" "logger.rkt" "timeout.rkt") (provide limit/c make-pool-config pool-config?) (struct pool-config (max-size idle-timeout) #:transparent) (define limit/c (or/c +inf.0 exa...
b533c384164544e45e3eae9c8cdc64a6a4dcea44a8735d3c61a94948f1f0c046
macourtney/Conjure
add.clj
(ns views.templates.add (:use conjure.view.base) (:require [clojure.tools.string-utils :as conjure-str-utils] [conjure.util.request :as request] [helpers.template-helper :as template-helper] [views.templates.record-form :as record-form])) (def-view [] (let [model-name (request...
null
https://raw.githubusercontent.com/macourtney/Conjure/1d6cb22d321ea75af3a6abe2a5bc140ad36e20d1/conjure_scaffold/src/views/templates/add.clj
clojure
(ns views.templates.add (:use conjure.view.base) (:require [clojure.tools.string-utils :as conjure-str-utils] [conjure.util.request :as request] [helpers.template-helper :as template-helper] [views.templates.record-form :as record-form])) (def-view [] (let [model-name (request...
efde8c88e5fe9fd52998d80eae95727d8418482a6948546c8081bdb45ff41cc3
clojure-lsp/clojure-lsp
rename_test.clj
(ns integration.rename-test (:require [clojure.test :refer [deftest testing]] [integration.fixture :as fixture] [integration.helper :as h] [integration.lsp :as lsp])) (lsp/clean-after-test) (deftest rename-function-definition (lsp/start-process!) (lsp/request! (fixture/initialize-request)) (lsp/no...
null
https://raw.githubusercontent.com/clojure-lsp/clojure-lsp/c9685358f04f56f41724a2d0b0ac15ed46309a53/cli/integration-test/integration/rename_test.clj
clojure
(ns integration.rename-test (:require [clojure.test :refer [deftest testing]] [integration.fixture :as fixture] [integration.helper :as h] [integration.lsp :as lsp])) (lsp/clean-after-test) (deftest rename-function-definition (lsp/start-process!) (lsp/request! (fixture/initialize-request)) (lsp/no...
7cd26e608160f7cfd34eda37854908585c72f06380bd76d29db6cc6725dacada
klntsky/g4ip-prover
LaTeXExporter.hs
# OPTIONS_HADDOCK prune , ignore - exports # -- | Exporter for proofs module G4ipProver.LaTeXExporter (proofToString, exportContexts) where import Data.List (nub, elemIndex) import G4ipProver.Prover import G4ipProver.Proposition -- | Data type representing proof structure (without rules). data BussTree = Axiom S...
null
https://raw.githubusercontent.com/klntsky/g4ip-prover/9ec543cd3818e7d5bee88802faf600358d9ba3fd/src/G4ipProver/LaTeXExporter.hs
haskell
| Exporter for proofs | Data type representing proof structure (without rules). | Export BussTree to LaTeX | Add @\\RightLabel{ ... }@ to tree node. | Convert proposition to string. | Convert proof tree to structural tree | Extract unique contexts | Convert proof tree to string | Export contexts from proof tre...
# OPTIONS_HADDOCK prune , ignore - exports # module G4ipProver.LaTeXExporter (proofToString, exportContexts) where import Data.List (nub, elemIndex) import G4ipProver.Prover import G4ipProver.Proposition data BussTree = Axiom String | Unary String BussTree (Maybe String) | Binary String BussTree BussTree (Ma...
edaf9c88285fe36c6aaaa6abda79f1e4ceeea117ae1463b6fe4f62a3646702bc
ghollisjr/cl-ana
conversion.lisp
cl - ana is a Common Lisp data analysis library . Copyright 2013 , 2014 ;;;; This file is part of cl - ana . ;;;; ;;;; cl-ana 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 ...
null
https://raw.githubusercontent.com/ghollisjr/cl-ana/5cb4c0b0c9c4957452ad2a769d6ff9e8d5df0b10/histogram/conversion.lisp
lisp
cl-ana is free software: you can redistribute it and/or modify it (at your option) any later version. cl-ana 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 Public Lice...
cl - ana is a Common Lisp data analysis library . Copyright 2013 , 2014 This file is part of cl - ana . 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 ...
9963f0588719750b2990e674fc71e205c177825dd1988a35f79c07576598b9fe
melisgl/lassie
lsa-extra.lisp
(in-package :lassie) (defun insert-into-sorted-vector (item vec &key (max-length (array-total-size vec)) key (test #'>)) "Insert ITEM into VECTOR while keeping it sorted by TEST. Extend the vector if needed while re...
null
https://raw.githubusercontent.com/melisgl/lassie/209b3435596090bc249a43ca7072a38f62a70d41/lsa-extra.lisp
lisp
(in-package :lassie) (defun insert-into-sorted-vector (item vec &key (max-length (array-total-size vec)) key (test #'>)) "Insert ITEM into VECTOR while keeping it sorted by TEST. Extend the vector if needed while re...
991ec4e5916ac291163bbb22de4eaa87ad707746298c9dcb4afd10592b7ffdc6
JacquesCarette/Drasil
TableOfUnits.hs
-- | Standard code to make a table of units. First true example of a ( small ) recipe . module Drasil.Sections.TableOfUnits (tOfUnitDesc, tOfUnitSIName, unitTableRef, tunit, tunit', tuIntro, defaultTUI) where import Control.Lens ((^.)) import Language.Drasil import Data.Drasil.Concepts.Documentation (symbol_, descri...
null
https://raw.githubusercontent.com/JacquesCarette/Drasil/92dddf7a545ba5029f99ad5c5eddcd8dad56a2d8/code/drasil-docLang/lib/Drasil/Sections/TableOfUnits.hs
haskell
| Standard code to make a table of units. | Creates the Table of Units with an "SI Name" column. | Creates the Table of Units with SI name in the "Description" column. | Helper for making a Table of Units. --- Table of units section helper functions ----- | Table of units constructors. | Table of units with an SI...
First true example of a ( small ) recipe . module Drasil.Sections.TableOfUnits (tOfUnitDesc, tOfUnitSIName, unitTableRef, tunit, tunit', tuIntro, defaultTUI) where import Control.Lens ((^.)) import Language.Drasil import Data.Drasil.Concepts.Documentation (symbol_, description, tOfUnit) import Drasil.DocumentLanguag...
7e3334526aa02cf5e8ea093b0333a889aa2ce10fde2a0020ddaafa840d61f1e6
ejgallego/coq-serapi
comp_common.ml
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * INRIA , CNRS and contributors - Copyright 1999 - 2018 (* <O___,, * (see CREDITS file for the list of authors) *) \VV/ * * * *...
null
https://raw.githubusercontent.com/ejgallego/coq-serapi/dd9e3fbf7faaf3bf365fa3eff134641055151a9b/sertop/comp_common.ml
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team <O___,, * (see CREDITS file for the list of authors) // * This file is distributed under the terms of the * (see LICENSE file for...
v * INRIA , CNRS and contributors - Copyright 1999 - 2018 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser General Public License Version 2.1 Coq 's serialization API ...
f3644f56669dc778847300773df52e718110c079cfd58a8ff3e246062d30bd22
fakedata-haskell/fakedata
IndustrySegments.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # module Faker.Provider.IndustrySegments where import Config import Control.Monad.Catch import Control.Monad.IO.Class import Data.Map.Strict (Map) import Data.Monoid ((<>)) import Data.Text (Text) import Data.Vector (Vector) import Data.Yaml import Faker i...
null
https://raw.githubusercontent.com/fakedata-haskell/fakedata/7b0875067386e9bb844c8b985c901c91a58842ff/src/Faker/Provider/IndustrySegments.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE TemplateHaskell # module Faker.Provider.IndustrySegments where import Config import Control.Monad.Catch import Control.Monad.IO.Class import Data.Map.Strict (Map) import Data.Monoid ((<>)) import Data.Text (Text) import Data.Vector (Vector) import Data.Yaml import Faker import Faker.Internal import Faker.P...
6fefbfd4ab94121060317347fbe989933150d54597761f523a4698fdce52c36d
erlang/otp
runner.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1997 - 2022 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applic...
null
https://raw.githubusercontent.com/erlang/otp/34d362faf2a6272280b52585a5570a04d7fd63e4/lib/erl_interface/test/runner.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific l...
Copyright Ericsson AB 1997 - 2022 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(runner). -export([test/2, test/3, init_per_testcase/3, start/2, start/3, send_term/2, finish/1, ...
2ed3128f0c0c134dbef84950db54b11433fc114ddfd879bf84cb6cb645d03ca2
antifuchs/sbcl
sockets.lisp
(in-package "SB-BSD-SOCKETS") Methods , classes , functions for sockets . Protocol - specific stuff ;;;; is deferred to inet.lisp, unix.lisp, etc (eval-when (:load-toplevel :compile-toplevel :execute) (defclass socket () ((file-descriptor :initarg :descriptor :reader socket-file-descriptor)...
null
https://raw.githubusercontent.com/antifuchs/sbcl/789bf105edca031aff991ad16a5fd207812336a0/contrib/sb-bsd-sockets/sockets.lisp
lisp
is deferred to inet.lisp, unix.lisp, etc we deliberately redesign the "bind" interface: instead of passing a multiple arguments. depending on the address There are a whole bunch of interesting things you can do with a socket that don't really map onto "do stream io", especially in allows us to read from an uncon...
(in-package "SB-BSD-SOCKETS") Methods , classes , functions for sockets . Protocol - specific stuff (eval-when (:load-toplevel :compile-toplevel :execute) (defclass socket () ((file-descriptor :initarg :descriptor :reader socket-file-descriptor) (family :initform (error "No socket family...
3a3e81c6c5bcc50c626ff5347293129ae0c3847807823ffaaa5c6118862e90d0
carlosedp/diameter-dcca
client.erl
%% %% An example Diameter client that can sends base protocol %% requests to a connected peer. %% %% The simplest usage is as follows this to connect to a server %% listening on the default port on the local host, assuming diameter %% is already started (eg. diameter:start()). %% %% client:start(). %% client:connec...
null
https://raw.githubusercontent.com/carlosedp/diameter-dcca/af16a531f8c849ab4c1ba8b882527d60e5b30f93/client.erl
erlang
An example Diameter client that can sends base protocol requests to a connected peer. The simplest usage is as follows this to connect to a server listening on the default port on the local host, assuming diameter is already started (eg. diameter:start()). client:start(). client:connect(tcp). client:ca...
The first call starts the a service with the default name of ? MODULE , the second defines a connecting transport that results in a connection to the peer ( if it 's listening ) , the third sends it a -module(client). -include_lib("diameter/include/diameter.hrl"). -include_lib("diameter/include/diameter_gen_bas...
53f2be9d889d89aaabb12bfd47a25274259104b2e30010043c0af1dd7ccf7e07
simonmar/haxl-icfp14-sample-code
blog.hs
module Blog where import Types import Fetch import Control.Applicative import Data.Time import Data.List import Data.Function import Data.Ord import qualified Data.Map as Map import Data.Map (Map) import Prelude hiding (mapM, sequence) -- ----------------------------------------------------------------------------- ...
null
https://raw.githubusercontent.com/simonmar/haxl-icfp14-sample-code/31859f50e0548f3e581acd26944ceb00953f2c42/blog.hs
haskell
----------------------------------------------------------------------------- IO <<dataFetches >> ----------------------------------------------------------------------------- Blog code <<blog >> <<getAllPosts >> >> <<leftPane >> <<topics >> <<popularPosts >> <<mainPane >> --------------------------...
module Blog where import Types import Fetch import Control.Applicative import Data.Time import Data.List import Data.Function import Data.Ord import qualified Data.Map as Map import Data.Map (Map) import Prelude hiding (mapM, sequence) getPostIds :: Fetch [PostId] getPostInfo :: PostId -> Fetch PostInfo getPostCont...
91bf8e0478f2581a5bd5b972d4f61db3b2f552ded7e72512ccc58e3a7ef806f9
plt-amy/mld
Monad.hs
{-# LANGUAGE DeriveFunctor, MultiParamTypeClasses #-} module Typing.Monad ( TypingM , local , newVar , applySub , extendSub , runTyping , getTyping , refresh , module Control.Monad.Except ) where import qualified Data.Map.Strict as Map import qualified Data.Set as Set import Control.Monad.Except ...
null
https://raw.githubusercontent.com/plt-amy/mld/d8cc4e07816c05ce2ee0a09200921534c4bdc667/src/Typing/Monad.hs
haskell
# LANGUAGE DeriveFunctor, MultiParamTypeClasses #
module Typing.Monad ( TypingM , local , newVar , applySub , extendSub , runTyping , getTyping , refresh , module Control.Monad.Except ) where import qualified Data.Map.Strict as Map import qualified Data.Set as Set import Control.Monad.Except import Control.Applicative import Syntax.Subst import...
021ffe2196895e9dd9c89c0fcb523e5d7a0d345089c0f0eed006c62e9e266f85
whalliburton/language
frequency.lisp
;; frequency.lisp (in-package :language) (defun frequency-list-path () (concatenate 'string (base-path) "russian/5000-frequency.txt")) (defparameter *word-frequency-list* nil) (defun load-word-frequency-list (&optional reload) (if (or reload (null *word-frequency-list*)) (setf *word-frequency-list* ...
null
https://raw.githubusercontent.com/whalliburton/language/d16ddf05c2b7e067f6f9ce74416c73f0b64b63c4/frequency.lisp
lisp
frequency.lisp
(in-package :language) (defun frequency-list-path () (concatenate 'string (base-path) "russian/5000-frequency.txt")) (defparameter *word-frequency-list* nil) (defun load-word-frequency-list (&optional reload) (if (or reload (null *word-frequency-list*)) (setf *word-frequency-list* (iter (for line ...
93414e76be7389dfc73835430d0a2fd47aa0b2691a4ac48c389d42d23cfb76ad
berberman/arch-hs
FilesDB.hs
# LANGUAGE CPP # # LANGUAGE DerivingStrategies # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ViewPatterns # | Copyright : ( c ) 2020 - 2021 berberman SPDX - License - Identifier : MIT Maintainer : < > -- Stability: experimental -- Portability: portable This module provides functions operating with ' FilesD...
null
https://raw.githubusercontent.com/berberman/arch-hs/8b979da61faacf8081990a189fca8df3d76fd502/src/Distribution/ArchHs/FilesDB.hs
haskell
# LANGUAGE OverloadedStrings # Stability: experimental Portability: portable | The same purpose as 'loadFilesDB' but use alpm to query files db instead. This query is bad in performance, since it traverses the entire db. | A file's name | Representation of @repo.db@.
# LANGUAGE CPP # # LANGUAGE DerivingStrategies # # LANGUAGE ViewPatterns # | Copyright : ( c ) 2020 - 2021 berberman SPDX - License - Identifier : MIT Maintainer : < > This module provides functions operating with ' FilesDB ' of pacman . module Distribution.ArchHs.FilesDB ( defaultFilesDBDir, loadFiles...
0c3d773ed08507f6ee2ddaee03897b53c2e29119140eb8ff3195d160a8c6378b
quil-lang/quilc
compilation-tests.lisp
;;;; compilation-tests.lisp ;;;; Author : (in-package #:cl-quil-tests) (deftest test-su4-to-su2x2 () "Ensures that Optimal 2Q Compilation decomposes SU(2)xSU(2) matrices correctly." (let* ((a1 (quil::random-special-unitary 2)) (a0 (quil::random-special-unitary 2)) (a (magicl:@ (cl-quil::su2...
null
https://raw.githubusercontent.com/quil-lang/quilc/5d69ac5fdd2d4c838b64c74abe33b633baec003f/tests/compilation-tests.lisp
lisp
compilation-tests.lisp test on quality of compilation, and not on correctness. Just check we get compilation output. Just check we get compilation output. An absolute unit of a matrix. Better compress those qubits. Any string of RXs and RYs should reduce to a string of at most 3 Check we can compute this fact r...
Author : (in-package #:cl-quil-tests) (deftest test-su4-to-su2x2 () "Ensures that Optimal 2Q Compilation decomposes SU(2)xSU(2) matrices correctly." (let* ((a1 (quil::random-special-unitary 2)) (a0 (quil::random-special-unitary 2)) (a (magicl:@ (cl-quil::su2-on-line 1 a1) ...
26d08660e605f332a754bb6b4d92a7dd7ac88333d5909e704e0882594aa76f7a
jeffshrager/biobike
af-upload-params.lisp
;;; -*- mode: Lisp; Syntax: Common-Lisp; Package: bio; -*- (in-package :bio) ;;; +=========================================================================+ | Copyright ( c ) 2002 , 2003 , 2004 JP , , | ;;; | | ;;; | Permission is here...
null
https://raw.githubusercontent.com/jeffshrager/biobike/5313ec1fe8e82c21430d645e848ecc0386436f57/BioLisp/Organisms/af-upload-params.lisp
lisp
-*- mode: Lisp; Syntax: Common-Lisp; Package: bio; -*- +=========================================================================+ | | | Permission is hereby granted, free of charge, to any person obtaining | | a copy of this software and as...
(in-package :bio) | Copyright ( c ) 2002 , 2003 , 2004 JP , , | | " Software " ) , to deal in the Software without restriction , including | | distribute , sublicense , and/or sell copies of the Software , and to | | permit persons to whom the Software is furnished to do so , subject to ...
972e7e89e36c88c13316d241c50b5b4507e5fc2ad5bbb72b5782a706c36e6f41
janestreet/ecaml
valueable_intf.ml
open! Core open! Import open! Valueable0 module type Type = sig type t val type_ : t Value.Type.t end module type S = S with type 'a type_ := 'a Value.Type.t module type S1 = S1 with type 'a type_ := 'a Value.Type.t module type Valueable = sig module type S = S module type S1 = S1 module Make (M : Type) ...
null
https://raw.githubusercontent.com/janestreet/ecaml/7c16e5720ee1da04e0757cf185a074debf9088df/ecaml_value/src/valueable_intf.ml
ocaml
open! Core open! Import open! Valueable0 module type Type = sig type t val type_ : t Value.Type.t end module type S = S with type 'a type_ := 'a Value.Type.t module type S1 = S1 with type 'a type_ := 'a Value.Type.t module type Valueable = sig module type S = S module type S1 = S1 module Make (M : Type) ...
2c6513cd94e95efc2bf7e94c45a28edd828161ab2a2035e7cd8d8fe066f50988
hiram-madelaine/om-inputs
verily_ext.cljs
(ns om-inputs.verily-ext (:require [jkkramer.verily :as v :refer [make-validator validation->fn]] ;[clj-vat.algo :refer [check-ident]] )) #_(defn vat [keys & [msg]] (make-validator keys #(not (check-ident %)) (or msg "must be a valid VAT"))) #_(defmethod validation->fn :vat [vspec] (ap...
null
https://raw.githubusercontent.com/hiram-madelaine/om-inputs/e8843335cff587e46b9171281894b9b237079051/examples/contact/src/verily_ext.cljs
clojure
[clj-vat.algo :refer [check-ident]]
(ns om-inputs.verily-ext (:require [jkkramer.verily :as v :refer [make-validator validation->fn]] )) #_(defn vat [keys & [msg]] (make-validator keys #(not (check-ident %)) (or msg "must be a valid VAT"))) #_(defmethod validation->fn :vat [vspec] (apply vat (rest vspec)))
c63b2a23cb5e87a3bbaa6638039f46b90922b753b0ee35bb00e14378bfed98aa
uzh/guardian
role.mli
module Actor : sig include Guardian.RoleSig with type t = [ `User | `Admin | `Hacker | `Editor of Guardian.Uuid.Target.t ] end module Target : sig include Guardian.RoleSig with type t = [ `User | `Article ] end
null
https://raw.githubusercontent.com/uzh/guardian/d6eec2d4009275818f97c8327d137632ff717a5c/test/role.mli
ocaml
module Actor : sig include Guardian.RoleSig with type t = [ `User | `Admin | `Hacker | `Editor of Guardian.Uuid.Target.t ] end module Target : sig include Guardian.RoleSig with type t = [ `User | `Article ] end
11c11a261aad22017a5f8f4b28e9df5984242e95f861fee065b2e8218f7693dd
bakul/s9fes
plan9.scm
Scheme 9 from Empty Space , Function Library By , 2009 - 2011 ; ; An interface to some Plan9 system services. ; ( sys : dirstat s ) ( sys : i ) ( sys : dirwstat s st ) ( sys : dirfwstat i st ) ; (is-dir? file) ( sys : name ) ( sys : name ) (require-extension sys-plan9) (load-from-library "bitops...
null
https://raw.githubusercontent.com/bakul/s9fes/74c14c0db5f07f5bc6d94131e9e4ee15a29275aa/ext/sys-plan9/plan9.scm
scheme
An interface to some Plan9 system services. (is-dir? file)
Scheme 9 from Empty Space , Function Library By , 2009 - 2011 ( sys : dirstat s ) ( sys : i ) ( sys : dirwstat s st ) ( sys : dirfwstat i st ) ( sys : name ) ( sys : name ) (require-extension sys-plan9) (load-from-library "bitops") (load-from-library "define-structure") (define-structure dir ...
4075f1f8c85284e55ac55de4f3a3c9c9050efea7ca33ace372bf955f25b17a15
philnguyen/soft-contract
file2list.rkt
#lang racket (define x (file->lines "hihi.txt")) (provide (contract-out [x (listof integer?)]))
null
https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/test/programs/unsafe/issues/file2list.rkt
racket
#lang racket (define x (file->lines "hihi.txt")) (provide (contract-out [x (listof integer?)]))
3fcd75a50a478ec090721ae2500aab73c4dd30ca992803517fab7b333285d535
sebfisch/haskell-regexp
Leftmost.hs
-- | -- Module : Text.RegExp.Matching.Leftmost Copyright : , , and -- License : BSD3 Maintainer : < mailto: > -- Stability : experimental -- -- This module implements leftmost matching based on weighted regular -- expressions. It should be imported qualified as the interface -- resembles th...
null
https://raw.githubusercontent.com/sebfisch/haskell-regexp/3acc5087c296860460f01ea74aa9725644299b13/src/Text/RegExp/Matching/Leftmost.hs
haskell
| Module : Text.RegExp.Matching.Leftmost License : BSD3 Stability : experimental This module implements leftmost matching based on weighted regular expressions. It should be imported qualified as the interface resembles that provided by other matching modules. | | Start index of the matching s...
Copyright : , , and Maintainer : < mailto: > module Text.RegExp.Matching.Leftmost ( matching, Matching, matchingIndex, Leftmost, getLeftmost ) where import Text.RegExp import Text.RegExp.Matching.Leftmost.Type A ' Matching ' records the leftmost start index of a matching subword . data...
f3e755daf5477edf2299eecf6c426e1ccfb2483b73e17bd45c39b729da6706d1
jeffreyrosenbluth/static-canvas
Types.hs
{-# LANGUAGE DeriveFunctor #-} # LANGUAGE FlexibleContexts # # LANGUAGE GeneralizedNewtypeDeriving # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE StrictData # -----------------------------------------------------------------...
null
https://raw.githubusercontent.com/jeffreyrosenbluth/static-canvas/1aad0f192828ded72dced14e42ac4e6baa6dab6f/src/Graphics/Static/Types.hs
haskell
# LANGUAGE DeriveFunctor # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # ----------------------------------------------------------------------------- | Module : Graphics.Static.Types License : BSD-style (see LICENSE) Maintainer : ----------------------...
# LANGUAGE FlexibleContexts # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE StrictData # Copyright : ( c ) 2015 A small DSL for creating HTML5 Canvas . module Graphics.Static.Types where import Control.Monad.Free.Class import Control.Monad.State import Control.Monad.Writer...
0fc0c1fe2c74a5f4feebfd26358311e8e881e2067f931705d28450ce269234f1
dmp1ce/DMSS
TH.hs
-- | -- Module : DMSS.Storage.TH -- License : Public Domain -- -- Maintainer : -- Stability : experimental -- Portability : untested -- -- Dead Man Switch System storage schema -- {-# LANGUAGE GADTs #-} {-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE TemplateHaskell ...
null
https://raw.githubusercontent.com/dmp1ce/DMSS/fd88690d97ed267e76f8345e6a76cd3727ef4efb/src-lib/DMSS/Storage/TH.hs
haskell
| Module : DMSS.Storage.TH License : Public Domain Maintainer : Stability : experimental Portability : untested Dead Man Switch System storage schema # LANGUAGE GADTs # # LANGUAGE QuasiQuotes # # LANGUAGE TemplateHaskell # ^ User's name ^ Password ...
# LANGUAGE TypeFamilies # module DMSS.Storage.TH where import Database.Persist.TH import DMSS.Storage.Types import qualified Data.ByteString.Char8 as BS8 share [mkPersist sqlSettings, mkMigrate "migrateAll"] [persistLowerCase| User UniqueName name deriving Show CheckIn user...
c5c458109fd1c5c2bf1cd0382590a15596d9d2c70346669e70977fe3ffb918ae
ocaml-multicore/tezos
shell_services_test_helpers.mli
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2021 Nomadic Labs , < > (* ...
null
https://raw.githubusercontent.com/ocaml-multicore/tezos/e4fd21a1cb02d194b3162ab42d512b7c985ee8a9/src/lib_shell_services/test_helpers/shell_services_test_helpers.mli
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2021 Nomadic Labs , < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN A...
d8377645346f8b81e22f11bdf0b0436981f369a7daedd957b262b8bc8f599c5c
fukamachi/prove
suite.lisp
(in-package :cl-user) (defpackage prove.suite (:use :cl) (:import-from :prove.output :*test-result-output*) (:import-from :prove.report :report :failed-report-p) (:import-from :prove.reporter :print-plan-report :print-finalize-repor...
null
https://raw.githubusercontent.com/fukamachi/prove/5d71f02795b89e36f34e8c7d50e69b67ec6ca2de/src/suite.lisp
lisp
(in-package :cl-user) (defpackage prove.suite (:use :cl) (:import-from :prove.output :*test-result-output*) (:import-from :prove.report :report :failed-report-p) (:import-from :prove.reporter :print-plan-report :print-finalize-repor...
3a1c3c51b3e10132ddea594aefdf2570f9770532b5821ddd644c1e76f273a99c
richhickey/clojure-contrib
duck_streams.clj
duck_streams.clj -- duck - typed I / O streams for Clojure by , / May 13 , 2009 Copyright ( c ) , 2009 . All rights reserved . The use and distribution terms for this software are covered by the Eclipse ;; Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this...
null
https://raw.githubusercontent.com/richhickey/clojure-contrib/40b960bba41ba02811ef0e2c632d721eb199649f/src/main/clojure/clojure/contrib/duck_streams.clj
clojure
Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software. The 'reader' and 'writer' functions wil...
duck_streams.clj -- duck - typed I / O streams for Clojure by , / May 13 , 2009 Copyright ( c ) , 2009 . All rights reserved . The use and distribution terms for this software are covered by the Eclipse This file defines " duck - typed " I / O utility functions for Clojure . like . A better n...
48d55e31ce6d5cd940466dce861bcc21090d8f67c9ef1b9a1c2124619045d60a
geneweb/geneweb
srcfileDisplay.mli
$ I d : srcfile.mli , v 5.5 2007 - 01 - 19 01:53:17 ddr Exp $ Copyright ( c ) 1998 - 2007 INRIA open Gwdb open Config type src_mode = Lang | Source val print : config -> base -> string -> unit val print_source : config -> base -> string -> unit val print_start : config -> base -> unit val incr_welcome_counter : ...
null
https://raw.githubusercontent.com/geneweb/geneweb/747f43da396a706bd1da60d34c04493a190edf0f/lib/srcfileDisplay.mli
ocaml
* Compute administration file path with giving name (search inside {i cnt} directory)
$ I d : srcfile.mli , v 5.5 2007 - 01 - 19 01:53:17 ddr Exp $ Copyright ( c ) 1998 - 2007 INRIA open Gwdb open Config type src_mode = Lang | Source val print : config -> base -> string -> unit val print_source : config -> base -> string -> unit val print_start : config -> base -> unit val incr_welcome_counter : ...
10fe50716908471df9fea78308457561fbd0dc67995b55b6ccf016b2ed592914
jdreaver/amy
Monad.hs
# LANGUAGE GeneralizedNewtypeDeriving # module Amy.Core.Monad ( Desugar , runDesugar , freshId , freshIdent , lookupDataConType ) where import Control.Monad.Reader import Control.Monad.State.Strict import qualified Data.Map.Strict as Map import Data.Maybe (fromMaybe) import Data.Text (Text, pack) import ...
null
https://raw.githubusercontent.com/jdreaver/amy/a0c73f6c02e7d923f1d85c0de89f78dc204dae2f/library/Amy/Core/Monad.hs
haskell
# LANGUAGE GeneralizedNewtypeDeriving # module Amy.Core.Monad ( Desugar , runDesugar , freshId , freshIdent , lookupDataConType ) where import Control.Monad.Reader import Control.Monad.State.Strict import qualified Data.Map.Strict as Map import Data.Maybe (fromMaybe) import Data.Text (Text, pack) import ...
46d48204357425ae1fb0f073b8eb46358aae74aea662ab2067e63a8d63a1138a
ocsigen/eliomlang
eliom_runtime.mli
val pos : string -> int * int * int -> int * int * int -> Eliom_serial.pos module Poly : sig type t val make : _ -> t val marshall : t -> string end module Global_data : sig val serial : debug:bool -> Eliom_serial.global_data end module Request_data : sig type t = Eliom_serial.fragment list ...
null
https://raw.githubusercontent.com/ocsigen/eliomlang/42e55856574e058caca191e50edcb0023900b664/runtime/server/eliom_runtime.mli
ocaml
* Registers a client fragment datum for the next server section when executed in a global_data (cf. {!Eliom_runtime.set_global}) or in the request_data when executed in a request.
val pos : string -> int * int * int -> int * int * int -> Eliom_serial.pos module Poly : sig type t val make : _ -> t val marshall : t -> string end module Global_data : sig val serial : debug:bool -> Eliom_serial.global_data end module Request_data : sig type t = Eliom_serial.fragment list ...
3d47945b32ad2e787ac32594a0a7a7f207f0c0863fe4cc225148843f60d16bec
FBoisson/Camllight
run.ml
$ I d : run.ml , v 1.4 1995/02/08 18:57:21 xleroy Exp $ #open "main";; input_stream := stdin;; if sys__interactive then () else begin go(); exit 0 end;;
null
https://raw.githubusercontent.com/FBoisson/Camllight/2e6d5ec31f93ec53d11232b7b2498adc719a8b13/examples/asl/run.ml
ocaml
$ I d : run.ml , v 1.4 1995/02/08 18:57:21 xleroy Exp $ #open "main";; input_stream := stdin;; if sys__interactive then () else begin go(); exit 0 end;;
4aacced1cc718150c8adbef79bfe20c620b327946518c09303836f409dde314d
uber/queryparser
Token.hs
Copyright ( c ) 2017 Uber Technologies , Inc. -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal in the Software without restriction , including without limitation the rights -- to use, copy, modify, mer...
null
https://raw.githubusercontent.com/uber/queryparser/6015e8f273f4498326fec0315ac5580d7036f8a4/dialects/presto/src/Database/Sql/Presto/Token.hs
haskell
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished to do so, subject to the following conditions: The above copyright notice ...
Copyright ( c ) 2017 Uber Technologies , Inc. in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY K...
cc4d4887b59e64aa94a03eeca1f7bebd336cc309f82c3d1f0d0a1f28804351f8
pink-gorilla/webly
middleware.clj
(ns modular.oauth2.middleware (:require [taoensso.timbre :as timbre :refer [debug info error]] [ring.middleware.defaults :refer [wrap-defaults site-defaults api-defaults]] [ ring-ttl-session.core : refer [ - memory - store ] ] ; [ring.middleware.session :refer [wrap-session]] ; [ring.middleware.cookies :re...
null
https://raw.githubusercontent.com/pink-gorilla/webly/2d38b7eae822b310136dc7349fdef7ea20f0d94b/oauth2/src/modular/oauth2/middleware.clj
clojure
[ring.middleware.session :refer [wrap-session]] [ring.middleware.cookies :refer [wrap-cookies]] -oauth2 we currently dont use ring-oauth2 because it makes sense for server-rendered pages but we do use the same configuration maps in frontend so we currently just print the config that we would use. This is helpful...
(ns modular.oauth2.middleware (:require [taoensso.timbre :as timbre :refer [debug info error]] [ring.middleware.defaults :refer [wrap-defaults site-defaults api-defaults]] [ ring-ttl-session.core : refer [ - memory - store ] ] [ring.middleware.oauth2 :refer [wrap-oauth2]] [modular.config :refer [get-in-c...
5397a54086f7274c61155b15cc8feac46a404ab60c41512b907e2b9fe6f6c4f2
mbj/stratosphere
CsvProperty.hs
module Stratosphere.SageMaker.ModelQualityJobDefinition.CsvProperty ( CsvProperty(..), mkCsvProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data CsvProperty =...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/sagemaker/gen/Stratosphere/SageMaker/ModelQualityJobDefinition/CsvProperty.hs
haskell
module Stratosphere.SageMaker.ModelQualityJobDefinition.CsvProperty ( CsvProperty(..), mkCsvProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data CsvProperty =...
6353cb93404b2937cbf981b25ed0f575702631d18b0dc403ab44f6c15ffac405
wattlebirdaz/rclref
node_join_SUITE.erl
-module(node_join_SUITE). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). -export([all/0, init_per_suite/1, end_per_suite/1]). -export([node_join_test/1]). all() -> [node_join_test]. init_per_suite(Config) -> application:ensure_all_started(rclref), Names = [node1, n...
null
https://raw.githubusercontent.com/wattlebirdaz/rclref/0e31857de43e3930f69d4063f79a518fe9fdbb79/test/multi_nodes/node_join_SUITE.erl
erlang
put and get in distributed nodes generate key, value e.g. key--Node1, value--Node1 put Key-Values into nodes respectively get Key-Values
-module(node_join_SUITE). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). -export([all/0, init_per_suite/1, end_per_suite/1]). -export([node_join_test/1]). all() -> [node_join_test]. init_per_suite(Config) -> application:ensure_all_started(rclref), Names = [node1, n...
9a7b8c816290c71f9b3369fd7fe3c805d5522027c8dd606fdc914c0d80d25879
jaspervdj/advent-of-code
23.hs
# LANGUAGE LambdaCase # module Main where import qualified AdventOfCode.Dijkstra as Dijkstra import AdventOfCode.Main (simpleMain) import Control.Monad (guard) import Data.Char (isUpper) import Data.List (transpose) import Data.Maybe...
null
https://raw.githubusercontent.com/jaspervdj/advent-of-code/bd0109e52e0f98765abc7eca435f87488b6b29cb/2021/23.hs
haskell
# LANGUAGE LambdaCase # module Main where import qualified AdventOfCode.Dijkstra as Dijkstra import AdventOfCode.Main (simpleMain) import Control.Monad (guard) import Data.Char (isUpper) import Data.List (transpose) import Data.Maybe...
acbbbd27c1de1b14a46672957494f3bca326b82d7b24ab6577579026c4ecaf5b
discord-haskell/discord-haskell
RolePermissions.hs
module Discord.Internal.Types.RolePermissions ( PermissionFlag (..), hasRolePermissions, hasRolePermission, newRolePermissions, newRolePermission, setRolePermissions, setRolePermission, clearRolePermissions, clearRolePermission, hasGuildMemberPermission, ) where import Data.Bits...
null
https://raw.githubusercontent.com/discord-haskell/discord-haskell/8a82208cbb59e1ab24176a90de8b0706c08ddb31/src/Discord/Internal/Types/RolePermissions.hs
haskell
| Check if a given role has all the permissions | Check if a given role has the permission | Replace a users rolePerms with a complete new set of permissions | Set a certain permission flag This method doesn't lose the other already present permissions | Remove a permission from a user by clearing the bit |...
module Discord.Internal.Types.RolePermissions ( PermissionFlag (..), hasRolePermissions, hasRolePermission, newRolePermissions, newRolePermission, setRolePermissions, setRolePermission, clearRolePermissions, clearRolePermission, hasGuildMemberPermission, ) where import Data.Bits...
aea9f2f28239503ee7bac55b2107380933cc702c395e23a95886e5ef6bcd7d22
gregwebs/Shelly.hs
WriteSpec.hs
module WriteSpec ( writeSpec ) where import TestInit import Data.Text (Text) default (Text) createsFile :: FilePath -> (FilePath -> IO ()) -> IO () createsFile f action = do exists <- shelly $ test_e f when exists $ error "cleanup after yourself!" action f shelly $ rm f return () writeSpec :: Spec writeS...
null
https://raw.githubusercontent.com/gregwebs/Shelly.hs/5f93588097f475473367a5a85a6c29a5751e5f30/test/src/WriteSpec.hs
haskell
module WriteSpec ( writeSpec ) where import TestInit import Data.Text (Text) default (Text) createsFile :: FilePath -> (FilePath -> IO ()) -> IO () createsFile f action = do exists <- shelly $ test_e f when exists $ error "cleanup after yourself!" action f shelly $ rm f return () writeSpec :: Spec writeS...
6b12cd4a3c3cbfde394f5b9cbecb05b6f208cb16afc7f93fdc84bde9b07dc54f
incoherentsoftware/defect-process
All.hs
module Level.Room.Item.Pickup.All ( chooseLoadRoomItemPickups , loadRoomItemHealthPickups , loadRoomItemGoldChunk , loadRoomItemEvent ) where import Control.Monad (when) import Control.Monad.IO.Class (MonadIO) import Control.Monad.State (execState, modify) import Data.Foldable ...
null
https://raw.githubusercontent.com/incoherentsoftware/defect-process/8797aad1d93bff5aadd7226c39a48f45cf76746e/src/Level/Room/Item/Pickup/All.hs
haskell
module Level.Room.Item.Pickup.All ( chooseLoadRoomItemPickups , loadRoomItemHealthPickups , loadRoomItemGoldChunk , loadRoomItemEvent ) where import Control.Monad (when) import Control.Monad.IO.Class (MonadIO) import Control.Monad.State (execState, modify) import Data.Foldable ...
e9dd10e438039792bf5ad7d8193d686314a3a2cdf5da463ac4d43182f98108c9
rainyt/ocaml-haxe
bool.ml
(**************************************************************************) (* *) (* OCaml *) (* *) (* ...
null
https://raw.githubusercontent.com/rainyt/ocaml-haxe/9d0ab323c6857d7fe3ce89764a00921eff1a5aaf/ocaml-extern/ocaml/bool.ml
ocaml
************************************************************************ OCaml The...
Copyright 2018 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the type t = bool = false | true external not : bool -> bool = "%boolnot" external ( && ) : bool -> bool -> bool = "%sequand" external ( || ) : bool -> bool -> bool = "%sequ...
fd31a0300b09ae16d5f3760187c3cee4ce4021f13bb83f11a6e88dbaf43c3d7c
kolmodin/binary
MemBench.hs
# LANGUAGE ForeignFunctionInterface , BangPatterns # module MemBench (memBench) where import Foreign import Foreign.C import Control.Exception import System.CPUTime import Numeric memBench :: Int -> IO () memBench mb = do let bytes = mb * 2^20 allocaBytes bytes $ \ptr -> do let bench label test = do ...
null
https://raw.githubusercontent.com/kolmodin/binary/bccbece2e254813f86e0a04f71d9ca3cea68b3bf/benchmarks/MemBench.hs
haskell
# LANGUAGE ForeignFunctionInterface , BangPatterns # module MemBench (memBench) where import Foreign import Foreign.C import Control.Exception import System.CPUTime import Numeric memBench :: Int -> IO () memBench mb = do let bytes = mb * 2^20 allocaBytes bytes $ \ptr -> do let bench label test = do ...
a8691c92af067d133d4df5fc544327840137a3350a11b5c4b16aa197c5a858b2
omcljs/om
tutorials.cljs
(ns om.devcards.tutorials (:require [cljs.test :refer-macros [is async]] [devcards.core :refer-macros [defcard deftest dom-node]] [om.next :as om :refer-macros [defui]] [om.dom :as dom])) ;; ============================================================================= ;; Quick Sta...
null
https://raw.githubusercontent.com/omcljs/om/3a1fbe9c0e282646fc58550139b491ff9869f96d/src/devcards/om/devcards/tutorials.cljs
clojure
============================================================================= Quick Start ============================================================================= ----------------------------------------------------------------------------- Parsing ------------------------------------------------------------...
(ns om.devcards.tutorials (:require [cljs.test :refer-macros [is async]] [devcards.core :refer-macros [defcard deftest dom-node]] [om.next :as om :refer-macros [defui]] [om.dom :as dom])) (def animals-app-state (atom {:app/title "Animals" :animals/list [[1 "Ant"] ...
e1fd6bb2ff2eb309156983884e1ec1ab9709d2f3b01051ea1fd2f0e0917dbf80
brownplt/LambdaS5
strat.ml
(**************************************************************************) (* *) : a generic graph library for OCaml Copyright ( C ) 2004 - 2010 , and (* ...
null
https://raw.githubusercontent.com/brownplt/LambdaS5/f0bf5c7baf1daa4ead4e398ba7d430bedb7de9cf/src/ocamlgraph-1.8.1/src/strat.ml
ocaml
************************************************************************ This software is free software; you can redistribute it and/or described in file LICENSE....
: a generic graph library for OCaml Copyright ( C ) 2004 - 2010 , and modify it under the terms of the GNU Library General Public License version 2.1 , with the special exception on linking $ Id$ ...
300138339febe5ca62992877a8e5829044a3bc20c43be11ff00eab3a4176e0d2
pixlsus/registry.gimp.org_static
alien-aura-logo.scm
; alien aura logo Copyright ( C ) 2002 - 2003 Copyright ( C ) 2004 - 2008 ; 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 la...
null
https://raw.githubusercontent.com/pixlsus/registry.gimp.org_static/ffcde7400f402728373ff6579947c6ffe87d1a5e/registry.gimp.org/files/alien-aura-logo.scm
scheme
alien aura logo This program is free software; you can redistribute it and/or modify either version 2 of the License , or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS ...
Copyright ( C ) 2002 - 2003 Copyright ( C ) 2004 - 2008 it under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License Foundation , Inc. , 675 Mass Ave , Cambridge , , USA . version 1.0 by 2003/02/17 version 2.0 by 2004/08...
db1a3428dce8e1f22ed1be4ff71f35e3f6cac056acf894aa893dd1f25cf91042
clojure/core.typed
analyze_host_expr.clj
Copyright ( c ) , Rich Hickey & contributors . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be b...
null
https://raw.githubusercontent.com/clojure/core.typed/f5b7d00bbb29d09000d7fef7cca5b40416c9fa91/typed/analyzer.jvm/src/clojure/core/typed/analyzer/jvm/passes/analyze_host_expr.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) , Rich Hickey & contributors . (ns clojure.core.typed.analyzer.jvm.passes.analyze-host-expr (:require [clojure.core.typed.analyzer.common :as ana] [clojure.core.typed.analyzer.common :as common] [clojure.core.typed.analyzer.common.utils :refer [ctx source-info merge']] ...
9f6147b32140172abfd99d38479cdab66316ca714ca068abbfa0a5b2632b2cbf
snowleopard/hadrian
Target.hs
module Target ( Target, target, context, builder, inputs, outputs, trackArgument, module Builder ) where import Data.Char import Data.List.Extra import qualified Hadrian.Target as H import Hadrian.Target hiding (Target) import Builder import Context type Target = H.Target Context Builder -- | Some argu...
null
https://raw.githubusercontent.com/snowleopard/hadrian/b9a3f9521b315942e1dabb006688ee7c9902f5fe/src/Target.hs
haskell
| Some arguments do not affect build results and therefore do not need to be tracked by the build system. A notable example is "-jN" that controls Make's 'True' only if the argument needs to be tracked.
module Target ( Target, target, context, builder, inputs, outputs, trackArgument, module Builder ) where import Data.Char import Data.List.Extra import qualified Hadrian.Target as H import Hadrian.Target hiding (Target) import Builder import Context type Target = H.Target Context Builder parallelism ...
29b65b054486a89db7e5229f0173cc8243a02b86262687f02edc50e6a28eda8f
kudelskisecurity/scannerl
fsm_ssl.erl
ssl FSM Reference %%% %%% %%% specific option can be set to control how %%% the remote certificate is checked: %%% {sslcheck, true}: check the certificate validity %%% {sslcheck, full}: the above plus the domain check %%% {sslcheck, false}: disable ssl checking %%% {sni, disable}: disable sni %%% {sni, enab...
null
https://raw.githubusercontent.com/kudelskisecurity/scannerl/8133065030d014401c47b2470e67a36e9df81b1e/src/fsms/fsm_ssl.erl
erlang
specific option can be set to control how the remote certificate is checked: {sslcheck, true}: check the certificate validity {sslcheck, full}: the above plus the domain check {sslcheck, false}: disable ssl checking {sni, disable}: disable sni {sni, enable}: enable sni see #setopts-2 debug send...
ssl FSM Reference defaults is erlang 's defaults ( ) -module(fsm_ssl). -author("David Rossier - "). -author("Adrien Giner - "). -behavior(gen_fsm). -include("../includes/args.hrl"). -export([start_link/1, start/1]). -export([init/1, terminate/3, handle_info/3]). -export([code_change/4, handle_sync_event/4, hand...
e44acb0b7c4c88fbd06318979f79d3c2289be0b316d60db6da4e131d43a40f75
bufferswap/ViralityEngine
actor.lisp
(in-package #:virality) ;;;; Implementation of datatype ACTOR (defmethod register-kernel-id ((kernel actor)) (u:when-let ((table (actors-by-id (tables (core kernel))))) (register-kernel-id-in-table kernel table))) (defmethod deregister-kernel-id ((kernel actor)) (u:when-let ((table (actors-by-id (tables (cor...
null
https://raw.githubusercontent.com/bufferswap/ViralityEngine/df7bb4dffaecdcb6fdcbfa618031a5e1f85f4002/src/kernel/actor.lisp
lisp
Implementation of datatype ACTOR Populate book-keeping tables TODO: Same for this pre-destroy view! TODO: A different logic error (that of a destroyed object not having its components also destroyed), and a destroyed object being destroyed twice--which is legal but not explicitly handled) caused this UNLESS to b...
(in-package #:virality) (defmethod register-kernel-id ((kernel actor)) (u:when-let ((table (actors-by-id (tables (core kernel))))) (register-kernel-id-in-table kernel table))) (defmethod deregister-kernel-id ((kernel actor)) (u:when-let ((table (actors-by-id (tables (core kernel))))) (deregister-kernel-i...
be7aa988653ca5ba71593e5472d361d9ab7dbef5c35c6afcc6751d2b282720d7
purebred-mua/purebred
Config.hs
-- This file is part of purebred Copyright ( C ) 2017 - 2021 and -- -- purebred is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or -- (at your option) any later ...
null
https://raw.githubusercontent.com/purebred-mua/purebred/14f50e8406dd81f6f506f1352f623948a1ea63ed/src/Purebred/Config.hs
haskell
This file is part of purebred purebred 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. ...
Copyright ( C ) 2017 - 2021 and it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU Affero General Public License module Purebred.Config ( defaultConfig , sendmail ,...
3bbc90136b90bff4dab209da4213da5c0986aa8ade020f81a78e68d575cf88f7
let-def/merlin-extend
extend_helper.mli
open Parsetree open Extend_protocol (** Default implementation for [Reader_def.print_outcome] using [Oprint] from compiler-libs *) val print_outcome_using_oprint : Format.formatter -> Reader.outcometree -> unit (** Generate an extension node that will be reported as a syntax error by Merlin. *) val syntax_err...
null
https://raw.githubusercontent.com/let-def/merlin-extend/640620568a5f5c7798239ecf7c707c813e3df3cf/extend_helper.mli
ocaml
* Default implementation for [Reader_def.print_outcome] using [Oprint] from compiler-libs * Generate an extension node that will be reported as a syntax error by Merlin. boilerplate boilerplate
open Parsetree open Extend_protocol val print_outcome_using_oprint : Format.formatter -> Reader.outcometree -> unit val syntax_error : string -> Location.t -> extension * Physical locations might be too precise for some features . For instance in : let x = f in y ^1 ^2 ...
8c06e4d7d1f22091abc82b3a3062a15d4f8881bc9daf33f0253d47542051d4d3
AbleEng/hexpacker
core.clj
(ns hexpacker.core (:gen-class) (:require [hexpacker.services :refer [instagram-responses twitter-responses get-google-places-data get-instagram-data get-twitter-data]] [hexpacker.web] [hexpacker.mercator :refer [wgs84->dmercator dmercator->wgs84]] [hexpacker.stitch :refer [min-c...
null
https://raw.githubusercontent.com/AbleEng/hexpacker/41b0d0c224021d6c04cd31b15d38e0301f4f28c1/src/hexpacker/core.clj
clojure
Make requests & store results (SMALL TEST) (def google-response (pmap get-google-places-data test-list)) (map get-instagram-data test-list) (println "Getting Twitter responses...") (map get-twitter-data test-list) Make requests & store results (SCALED TEST) (def google-response (doall (map get-google-places-dat...
(ns hexpacker.core (:gen-class) (:require [hexpacker.services :refer [instagram-responses twitter-responses get-google-places-data get-instagram-data get-twitter-data]] [hexpacker.web] [hexpacker.mercator :refer [wgs84->dmercator dmercator->wgs84]] [hexpacker.stitch :refer [min-c...
d175a7f663020fda6b525910f23e6a3e5094ae72beec600bf1fc294e328dee0d
argp/bap
batMultiMap.mli
* MultiPMap - Polymorphic maps with multiple associations * Copyright ( C ) 1996 - 2003 , , * Copyright ( C ) 2008 , LIFO , Universite d'Orleans * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/batteries/src/batMultiMap.mli
ocaml
* The empty map, using [compare] as key comparison function. * returns true if the map is empty. * [add x y m] returns a map containing the same bindings as [m], plus a binding of [x] to [y]. * [find x m] returns the current binding of [x] in [m] * [remove k d m] returns a map containing the same bindings as ...
* MultiPMap - Polymorphic maps with multiple associations * Copyright ( C ) 1996 - 2003 , , * Copyright ( C ) 2008 , LIFO , Universite d'Orleans * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as...
b92bc02e02bf6678df352246a0cfdd0b1fee8973b950407460fc03940987f9ac
camlspotter/ocamloscope.2
cmt.ml
open Spotlib.Spot open List open Utils open Cmt_format let rec get_load_path cmt = match cmt.cmt_annots with | Packed _ -> let cmis = Cm.get_packed cmt in unique & concat_map (fun cmi -> match Cm.guess cmi with | [] -> assert false | _::_::_ -> assert false (* ambiguous *) | [cm...
null
https://raw.githubusercontent.com/camlspotter/ocamloscope.2/49b5977a283cdd373021d41cb3620222351a2efe/cmt.ml
ocaml
ambiguous
open Spotlib.Spot open List open Utils open Cmt_format let rec get_load_path cmt = match cmt.cmt_annots with | Packed _ -> let cmis = Cm.get_packed cmt in unique & concat_map (fun cmi -> match Cm.guess cmi with | [] -> assert false | [cm] -> begin match cm.Cm.cmt, cm.Cm.cmti...
2a27b3e567fbef3c807e299c08b360eea7d32e243bba83d60d505f250e8353f8
ghcjs/jsaddle-dom
Body.hs
# LANGUAGE PatternSynonyms # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.Body (arrayBuffer, arrayBuffer_, blob, blob_, json, json_, text, text_, getBodyUsed, Body(..), gTypeBody, I...
null
https://raw.githubusercontent.com/ghcjs/jsaddle-dom/5f5094277d4b11f3dc3e2df6bb437b75712d268f/src/JSDOM/Generated/Body.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures # | <-US/docs/Web/API/Body.arrayBuffer Mozilla Body.arrayBuffer documentation> | <-US/docs/Web/API/Body.arrayBuffer Mozilla Body.arrayBuffer documentation> | <-US/docs/Web/API/Body.bodyUsed Mozilla Body.bodyUsed documentatio...
# LANGUAGE PatternSynonyms # # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.Body (arrayBuffer, arrayBuffer_, blob, blob_, json, json_, text, text_, getBodyUsed, Body(..), gTypeBody, IsBody, toBody) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(...
981fbad54c55c00ea98d0552f16926c133d835c6b8cd9610137eb20044e6df13
xh4/web-toolkit
closer-clozure.lisp
(in-package :closer-mop) (defclass standard-class (cl:standard-class) ()) (define-validate-superclass-method standard-class cl:standard-class) (cl:defmethod reinitialize-instance :after ((class standard-class) &key) (finalize-inheritance class)) ;;; New generic functions. ;; Store the method function somewhere el...
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/vendor/closer-mop-20191227-git/closer-clozure.lisp
lisp
New generic functions. Store the method function somewhere else, to circumvent the native check for congruent lambda lists. Ensure that the discriminating function is computed and installed Define compute-effective-method correctly. The following ensures that slot definitions have a documentation.
(in-package :closer-mop) (defclass standard-class (cl:standard-class) ()) (define-validate-superclass-method standard-class cl:standard-class) (cl:defmethod reinitialize-instance :after ((class standard-class) &key) (finalize-inheritance class)) (defparameter *stub-method-functions* (make-hash-table :test #'equa...
4f1e9dd103271b38c4f1a38b541853ffcc12e139187525a0a1a983f5142a912f
fractalide/fractalide
def.rkt
#lang racket (provide (all-defined-out) (struct-out agent)) (require (for-syntax racket/syntax) (for-syntax racket/string) (for-syntax syntax/to-string)) (struct agent (inport in-array-port outport out-array-port proc option)) (struct opt-agent (inport in-array outport out-array proc)) (...
null
https://raw.githubusercontent.com/fractalide/fractalide/9c54ec2615fcc2a1f3363292d4eed2a0fcb9c3a5/modules/rkt/rkt-fbp/def.rkt
racket
All sched messages require/edge
#lang racket (provide (all-defined-out) (struct-out agent)) (require (for-syntax racket/syntax) (for-syntax racket/string) (for-syntax syntax/to-string)) (struct agent (inport in-array-port outport out-array-port proc option)) (struct opt-agent (inport in-array outport out-array proc)) (...
33edd145f56db6eaa5d1489fd64a76e23c9e0a8dfc9fbaa4665f7074ad227fea
bytekid/mkbtt
choiceState.mli
Copyright 2010 * GNU Lesser General Public License * * This file is part of MKBtt . * * is free software : you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the * Free Software Foundation , either version 3 of the License , or (...
null
https://raw.githubusercontent.com/bytekid/mkbtt/c2f8e0615389b52eabd12655fe48237aa0fe83fd/src/mkbtt/choiceState.mli
ocaml
** VALUES ************************************************************
Copyright 2010 * GNU Lesser General Public License * * This file is part of MKBtt . * * is free software : you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the * Free Software Foundation , either version 3 of the License , or (...