_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
c5dd7a51af5b56e2a2b2aeb36193d6dc1b3bc686d302027a50fce306412dbc3b
Camilotk/ocaml4noobs
functor.ml
module type Stringable = sig type t val toString : t -> string end module Printer (Item:Stringable) = struct let print (t : Item.t) = print_endline (Item.toString t) let printList (list : Item.t list) = ((list |> (List.map Item.toString)) |> (String.concat ((", ")[@reason.raw_literal ",...
null
https://raw.githubusercontent.com/Camilotk/ocaml4noobs/e0bcabb64b7d7749205bbce8a3d0ef75e16e66b3/4_organizacao/functor.ml
ocaml
module type Stringable = sig type t val toString : t -> string end module Printer (Item:Stringable) = struct let print (t : Item.t) = print_endline (Item.toString t) let printList (list : Item.t list) = ((list |> (List.map Item.toString)) |> (String.concat ((", ")[@reason.raw_literal ",...
170d9b09a6e4dcb82b405629bea60083e26645395ba7790a006a590ecd3ca5c8
geophf/1HaskellADay
Exercise.hs
module Y2018.M11.D22.Exercise where - Happy Thanksgiving from the U.S.A. ! From @fermatslibrary : url : A visual proof that 1/4 + 1/4² + 1/4³ + ... = 1/3 ⚪ ⚪ ⚪ ⚪ ⚪ ⚪ ⚪ ⚪ ⚪ ⚫ ⚪ ⚪ ⚪ ⚪ ⚪ ⚪ ⚪ ⚪ ⚫ ⚫ ⚪ ⚪ ⚪ ⚪ ⚪ ⚪ ⚫ ⚫ ⚪ ⚪ ⚪ ⚪ ⚪ ⚪ ⚪ ⚪ ⚫ ⚫ ⚫ ⚫ ⚪ ⚪ ⚪ ⚪ ⚫ ⚫ ⚫ ⚫ ⚪ ⚪ ⚪ ⚪ ⚫ ⚫ ⚫ ⚫ ⚪ ⚪ ⚪ ⚪ ⚫ ⚫ ⚫ ⚫ Pro...
null
https://raw.githubusercontent.com/geophf/1HaskellADay/514792071226cd1e2ba7640af942667b85601006/exercises/HAD/Y2018/M11/D22/Exercise.hs
haskell
}
module Y2018.M11.D22.Exercise where - Happy Thanksgiving from the U.S.A. ! From @fermatslibrary : url : A visual proof that 1/4 + 1/4² + 1/4³ + ... = 1/3 ⚪ ⚪ ⚪ ⚪ ⚪ ⚪ ⚪ ⚪ ⚪ ⚫ ⚪ ⚪ ⚪ ⚪ ⚪ ⚪ ⚪ ⚪ ⚫ ⚫ ⚪ ⚪ ⚪ ⚪ ⚪ ⚪ ⚫ ⚫ ⚪ ⚪ ⚪ ⚪ ⚪ ⚪ ⚪ ⚪ ⚫ ⚫ ⚫ ⚫ ⚪ ⚪ ⚪ ⚪ ⚫ ⚫ ⚫ ⚫ ⚪ ⚪ ⚪ ⚪ ⚫ ⚫ ⚫ ⚫ ⚪ ⚪ ⚪ ⚪ ⚫ ⚫ ⚫ ⚫ Pro...
211ad9b3ec0623338c8a103d05df086a10160b8d25b234bf5f1257d19f6299ee
tail-reversion/elle
symbol.rkt
#lang elle/private/prebase {reprovide racket/base #:exposing symbol? symbol<? string->symbol #:as text→symbol} {reprovide rebellion/base/immutable-string #:exposing symbol->immutable-string #:as symbol→text}
null
https://raw.githubusercontent.com/tail-reversion/elle/ed113df48d37c0481d2e6d068635e4699ea33d65/elle-lib/private/symbol.rkt
racket
#lang elle/private/prebase {reprovide racket/base #:exposing symbol? symbol<? string->symbol #:as text→symbol} {reprovide rebellion/base/immutable-string #:exposing symbol->immutable-string #:as symbol→text}
53b8e2a46fed5d8efb66581865a816cd545b3c53ec4a84ebbd791466f8e4806f
OCamlPro/freeton_ocaml_sdk
ton_client.ml
module ABI = Mod_abi module BOC = Mod_boc module CLIENT = Mod_client module CRYPTO = Mod_crypto module DEBOT = Mod_debot module NET = Mod_net module PROCESSING = Mod_processing module TVM = Mod_tvm module UTILS = Mod_utils module TC = Tc
null
https://raw.githubusercontent.com/OCamlPro/freeton_ocaml_sdk/afb45b78efc055a8803dae60a9571e4859f5d58c/src/freeton_client_lib/ton_client.ml
ocaml
module ABI = Mod_abi module BOC = Mod_boc module CLIENT = Mod_client module CRYPTO = Mod_crypto module DEBOT = Mod_debot module NET = Mod_net module PROCESSING = Mod_processing module TVM = Mod_tvm module UTILS = Mod_utils module TC = Tc
b814336292492afa6c60cbdede95f79fe9e22181e14fc210274cff94339fb555
chuan6/tiger-compiler
grammar.clj
(ns tigerc.grammar) (def empty-string :ε) (def slr {:terminals #{:array :break :do :else :end :for :function :if :in :let :nil :of :then :to :type :var :while :id :digits :string :ty-id ;:comment is omitted :comma :colon :semi-colon :open-paren :close-paren :open-bracket :close-bracket :open-...
null
https://raw.githubusercontent.com/chuan6/tiger-compiler/3fc54f0f04aba2d87bc263d6edc6a8ea446739d5/src/tigerc/grammar.clj
clojure
:comment is omitted
(ns tigerc.grammar) (def empty-string :ε) (def slr {:terminals #{:array :break :do :else :end :for :function :if :in :let :nil :of :then :to :type :var :while :comma :colon :semi-colon :open-paren :close-paren :open-bracket :close-bracket :open-brace :close-brace :period :assign :pipe :and ...
ee7076ca1266a63122397e082f35e50d1d3bbb963157ae591febbd02ff25ec88
defclass/sasori
protocols.clj
(ns sasori.protocols) (defprotocol ICmd (plain [_ opts] "Transform to string form.") (exit? [_] "Whether exit when failed")) (defprotocol ICmdStatus (ok? [_] "Success or failed.")) (defprotocol ITaskReturn (merge-to-msg [this msg] "Merge new state from task return to msg."))
null
https://raw.githubusercontent.com/defclass/sasori/86806d12db85598a08289902662e9b81b107871c/src/sasori/protocols.clj
clojure
(ns sasori.protocols) (defprotocol ICmd (plain [_ opts] "Transform to string form.") (exit? [_] "Whether exit when failed")) (defprotocol ICmdStatus (ok? [_] "Success or failed.")) (defprotocol ITaskReturn (merge-to-msg [this msg] "Merge new state from task return to msg."))
695c7df4ccac25f47f339e5e3eade1e647e8de0760ebdaaae465afcc06aa705d
ocaml-multicore/tezos
seed_storage.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > (* ...
null
https://raw.githubusercontent.com/ocaml-multicore/tezos/e4fd21a1cb02d194b3162ab42d512b7c985ee8a9/src/proto_012_Psithaca/lib_protocol/seed_storage.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > 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 , WHETH...
0aba1a6373ddb818f70b7f161b22c5fb98df77a8e9cdbfba1219da200a6acd51
fjames86/schannel
test-stream.lisp
(defpackage #:schannel/test-stream (:use #:cl) (:export #:test-usocket #:test-fsocket)) (in-package #:schannel/test-stream) (defparameter *http-request* "GET / HTTP/1.1 Host: ~A ") ;; This doesn't work. ;; Q: why doesn't usocket work? ;; A: we now understand: it is due to the semantics of read-sequence. ...
null
https://raw.githubusercontent.com/fjames86/schannel/a45b0069fcdbcad90453c7193ea7818128f9dc7f/test-stream.lisp
lisp
This doesn't work. Q: why doesn't usocket work? A: we now understand: it is due to the semantics of read-sequence. return a short read. This is fine and is a normal part of how i.e. read-sequence should block until more bytes are available. This poses a major problem for us: the schannel APIs take input sequences...
(defpackage #:schannel/test-stream (:use #:cl) (:export #:test-usocket #:test-fsocket)) (in-package #:schannel/test-stream) (defparameter *http-request* "GET / HTTP/1.1 Host: ~A ") If one calls n = recv(fd , buf , count ) , n may be < = count i.e. may bsd - sockets / TCP work . However 's ( read - ...
5c098daf8b78c2edad018b250dc439fec7b0aba50979ef54fbb1a14795f71488
jyh/metaprl
ma_finite__partial__functions.ml
extends Nuprl_finite__partial__functions open Dtactic open Top_conversionals open Mp_resource interactive nuprl_fpf_single_wf {| intro [] |}: [wf] sequent { <Gamma> >- "type"{'"A"} } --> [wf] sequent { <Gamma>; x:'A >- "type"{'B['x]} } --> [wf] sequent { <Gamma> >- '"x" in '"A" } --> [wf] sequent ...
null
https://raw.githubusercontent.com/jyh/metaprl/51ba0bbbf409ecb7f96f5abbeb91902fdec47a19/theories/mesa/ma_finite__partial__functions.ml
ocaml
???
extends Nuprl_finite__partial__functions open Dtactic open Top_conversionals open Mp_resource interactive nuprl_fpf_single_wf {| intro [] |}: [wf] sequent { <Gamma> >- "type"{'"A"} } --> [wf] sequent { <Gamma>; x:'A >- "type"{'B['x]} } --> [wf] sequent { <Gamma> >- '"x" in '"A" } --> [wf] sequent ...
6c3865e12e8e630d6fc2b14dca24dd54269e4c871e8e914a093df997ef7dbd67
IBM/wcs-ocaml
json_spel.ml
* This file is part of the Watson Conversation Service OCaml API project . * * Copyright 2016 - 2017 IBM Corporation * * 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...
null
https://raw.githubusercontent.com/IBM/wcs-ocaml/b237b7057f44caa09d36e466be015e2bc3173dd5/wcs-lib/json_spel.ml
ocaml
* {8 Bool}
* This file is part of the Watson Conversation Service OCaml API project . * * Copyright 2016 - 2017 IBM Corporation * * 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...
04757fe6011c2cb322b35cd9cf34c0c14a853755df4d99b31a7e18117c77932a
thierry-martinez/metaquot
metaquot_ppx.ml
let mapper = object (self) inherit Ppxlib.Ast_traverse.map as super method! expression exp = This seems to solve a segfault in OCaml 5.0 but this is weird ! but this is weird!*) Metaquot.Exp.lift { expression = super#expression; pattern = super#pattern } exp method! pattern = Metaq...
null
https://raw.githubusercontent.com/thierry-martinez/metaquot/e19ef99bb368da0d521f6c4987791d98f9380656/ppx/metaquot_ppx.ml
ocaml
let mapper = object (self) inherit Ppxlib.Ast_traverse.map as super method! expression exp = This seems to solve a segfault in OCaml 5.0 but this is weird ! but this is weird!*) Metaquot.Exp.lift { expression = super#expression; pattern = super#pattern } exp method! pattern = Metaq...
be33f2e35853fd7564945c7591519181f63a243ca3edfccca8f4ad5fe5c0e7be
juxt/shop
main.cljs
(ns ^:figwheel-hooks {{root-ns}}.frontend.main) (js/console.log "Hello, world") ;; This is called once (defonce init (do (set! (.-innerHTML (js/document.getElementById "app")) "<p>Loaded {{name}}!</p> <p>Edit src/{{sanitized}}/frontend/main.cljs to change this message.</p>") true)) ;;...
null
https://raw.githubusercontent.com/juxt/shop/c23fc55bca1852bfbabb681a72debc12373c3a36/lib/edge-app-template/resources/clj/new/app.template/main.cljs
clojure
This is called once This is called every time you make a code change
(ns ^:figwheel-hooks {{root-ns}}.frontend.main) (js/console.log "Hello, world") (defonce init (do (set! (.-innerHTML (js/document.getElementById "app")) "<p>Loaded {{name}}!</p> <p>Edit src/{{sanitized}}/frontend/main.cljs to change this message.</p>") true)) (defn ^:after-load reload...
07ce843f34af5fe272563b5024f8a535e67d086cc274f60dae5217988ebae5c1
yrashk/erlang
ssh_connection.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2008 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/yrashk/erlang/e1282325ed75e52a98d58f5bd9fb0fa27896173f/lib/ssh/src/ssh_connection.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 2008 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(ssh_connection). -include("ssh....
82516dbe34f0a19827a7f2a1bb8da178bb7bec90c15752e98dd1e5f39817eefb
ulrikstrid/reason-native-web
Status.ml
---------------------------------------------------------------------------- Copyright ( c ) 2017 Inhabited Type LLC . All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : ...
null
https://raw.githubusercontent.com/ulrikstrid/reason-native-web/81d1a1145d17f6eddd8174ae0463db3ed0fdbb0c/http/src/Status.ml
ocaml
| `Switching_protocols Informational | `Switching_protocols -> "Switching Protocols" Successful Client error RFC 2342 Server error Informational Successful Client error Server error Informational | 101 -> `Switching_protocols Successful Client error Server error don't allocate Informationa...
---------------------------------------------------------------------------- Copyright ( c ) 2017 Inhabited Type LLC . All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : ...
1bcfe20a1c766a759d76b30603a2e5d558adcb59378f759e094b76a0cd18e8ad
static-analysis-engineering/codehawk
jCHClass.mli
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Java Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Copy...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/98ced4d5e6d7989575092df232759afc2cb851f6/CodeHawk/CHJ/jchlib/jCHClass.mli
ocaml
jchlib
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Java Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Copy...
63349199f21fa86f9b9a859c56f2993b55216f47327576528bfc92d238f8194c
neeraj9/hello-erlang-rump
uwiki_textsearch_handler.erl
%%%------------------------------------------------------------------- @author nsharma ( C ) 2016 , %%% @doc %%% %%% @end Copyright ( c ) 2016 , < > . %%% All rights reserved. %%% %%% Redistribution and use in source and binary forms, with or without %%% modification, are permitted provided that the followi...
null
https://raw.githubusercontent.com/neeraj9/hello-erlang-rump/304d2f0faaef64677de22d9a3495297e08d90a3f/apps/uwiki/src/uwiki_textsearch_handler.erl
erlang
------------------------------------------------------------------- @doc @end All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright ...
@author nsharma ( C ) 2016 , Copyright ( c ) 2016 , < > . " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT OWNER OR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED TO , PROCUREMENT OF SUBSTITUTE GOODS OR SERVI...
eca0012b8ea2804c29c7121f2790ec16c2d166dacbd71fa3de874b81433ccea9
pliant/lein-package
project.clj
(defproject lein-package/test-alias "2.1.1" :description "This project test the usage of the package command when generating only a WAR with the lein-ring plugin that is aliased. To test, perform the following: lein package lein install lein deploy local The deploy task will put the artifa...
null
https://raw.githubusercontent.com/pliant/lein-package/aef327e4698b13f1cf0986f5eaa23968e90b458b/test-projects/test-alias/project.clj
clojure
(defproject lein-package/test-alias "2.1.1" :description "This project test the usage of the package command when generating only a WAR with the lein-ring plugin that is aliased. To test, perform the following: lein package lein install lein deploy local The deploy task will put the artifa...
5eea2150382fc6281f6e5bb37303d1700e425948c5f7ed6c1b22208c647bce3a
rurban/clisp
clx.lisp
Copyright ( C ) 1996 by Copyright ( C ) 2001 - 2009 , 2011 , 2017 by This is Free Software , distributed under the GNU GPL v2 + Some parts are from the MIT - CLX Distribution , copyrighted by Texas Instruments Incorporated , but freely distributable for details see image.lisp or the MIT - CLX distributi...
null
https://raw.githubusercontent.com/rurban/clisp/75ed2995ff8f5364bcc18727cde9438cca4e7c2c/modules/clx/new-clx/clx.lisp
lisp
-------------------------------------------------------------------------- Exports -------------------------------------------------------------------------- extension for backwards compatibility describe-request describe-event describe-reply extensions Only when using libXt: last-event-processed last-timestam...
Copyright ( C ) 1996 by Copyright ( C ) 2001 - 2009 , 2011 , 2017 by This is Free Software , distributed under the GNU GPL v2 + Some parts are from the MIT - CLX Distribution , copyrighted by Texas Instruments Incorporated , but freely distributable for details see image.lisp or the MIT - CLX distributi...
19ecdb9eb121ca3c0238e40d20d651746fd84161d9ee9cb41001a41baf7d2c00
openbadgefactory/salava
async.clj
(ns salava.firebase.async (:require [clojure.tools.logging :as log] [clojure.string :as string] [clojure.pprint :refer [pprint]] [clojure.java.io :as io] [clojure.data.json :as json] [yesql.core :refer [defqueries]] [salava.core.util :as u] ...
null
https://raw.githubusercontent.com/openbadgefactory/salava/97f05992406e4dcbe3c4bff75c04378d19606b61/src/clj/salava/firebase/async.clj
clojure
com.google.auth.oauth2 parts from: -credentials
(ns salava.firebase.async (:require [clojure.tools.logging :as log] [clojure.string :as string] [clojure.pprint :refer [pprint]] [clojure.java.io :as io] [clojure.data.json :as json] [yesql.core :refer [defqueries]] [salava.core.util :as u] ...
f7b71fb4206805b31bc3aaebdd6f42fe6c2c90a4c5b499b683d70675dfe4126b
thierry-martinez/stdcompat
pervasives.mli
external raise : exn -> 'a = "%raise" val invalid_arg : string -> 'a val failwith : string -> 'a exception Exit external (=) : 'a -> 'a -> bool = "%equal" external (<>) : 'a -> 'a -> bool = "%notequal" external (<) : 'a -> 'a -> bool = "%lessthan" external (>) : 'a -> 'a -> bool = "%greaterthan" external (<=) : 'a -> ...
null
https://raw.githubusercontent.com/thierry-martinez/stdcompat/83d786cdb17fae0caadf5c342e283c3dcfee2279/interfaces/3.10/pervasives.mli
ocaml
external raise : exn -> 'a = "%raise" val invalid_arg : string -> 'a val failwith : string -> 'a exception Exit external (=) : 'a -> 'a -> bool = "%equal" external (<>) : 'a -> 'a -> bool = "%notequal" external (<) : 'a -> 'a -> bool = "%lessthan" external (>) : 'a -> 'a -> bool = "%greaterthan" external (<=) : 'a -> ...
cdc57f9a87b917c8a820493770773b579068773a90d3bdccab76ea63e54cfdff
Simre1/haskell-game
All.hs
# LANGUAGE DataKinds # # LANGUAGE TypeFamilies # module Render.Level.All where import Polysemy (Members, Embed, Sem) import Linear.V2 (V2(..)) import ECS.Apecs (ApecsSystem, lift, executeApecsSystem) import Window.GPipe (executeWindowAction, makeWindowAction, render) import Sigma (Signal, liftAction, withInitializat...
null
https://raw.githubusercontent.com/Simre1/haskell-game/272a0674157aedc7b0e0ee00da8d3a464903dc67/app/Render/Level/All.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE TypeFamilies # module Render.Level.All where import Polysemy (Members, Embed, Sem) import Linear.V2 (V2(..)) import ECS.Apecs (ApecsSystem, lift, executeApecsSystem) import Window.GPipe (executeWindowAction, makeWindowAction, render) import Sigma (Signal, liftAction, withInitializat...
83612d7652268908f846a4d44718794dca0facbc642dc8f332f3e9bab2dec1cc
mfikes/fifth-postulate
ns203.cljs
(ns fifth-postulate.ns203) (defn solve-for01 [xs v] (for [ndx0 (range 0 (- (count xs) 3)) ndx1 (range (inc ndx0) (- (count xs) 2)) ndx2 (range (inc ndx1) (- (count xs) 1)) ndx3 (range (inc ndx2) (count xs)) :when (= v (+ (xs ndx0) (xs ndx1) (xs ndx2) (xs ndx3)))] (list (x...
null
https://raw.githubusercontent.com/mfikes/fifth-postulate/22cfd5f8c2b4a2dead1c15a96295bfeb4dba235e/src/fifth_postulate/ns203.cljs
clojure
(ns fifth-postulate.ns203) (defn solve-for01 [xs v] (for [ndx0 (range 0 (- (count xs) 3)) ndx1 (range (inc ndx0) (- (count xs) 2)) ndx2 (range (inc ndx1) (- (count xs) 1)) ndx3 (range (inc ndx2) (count xs)) :when (= v (+ (xs ndx0) (xs ndx1) (xs ndx2) (xs ndx3)))] (list (x...
450d0b9c6cd0667f63c193a2e018b5a3725d08b5dd3c83296fa96cd2a38fd3a2
tanakh/ICFP2011
Y2CQB10.hs
# LANGUAGE CPP # {-# OPTIONS -Wall #-} import Control.Applicative import qualified Control.Exception.Control as E import Control.Monad import Control.Monad.State import Data.List import Data.Maybe import System.Environment import LTG getFirstWorthEnemy :: Int -> LTG (Maybe Int) getFirstWorthEnemy dmg = do alives <...
null
https://raw.githubusercontent.com/tanakh/ICFP2011/db0d670cdbe12e9cef4242d6ab202a98c254412e/ai/Y2CQB10.hs
haskell
# OPTIONS -Wall # dec S (K f) (K g) lprint $ "Reusing " ++ show f lprint $ "Failed reusing " ++ show f ++ " [expected " ++ show lval ++ " but was " ++ show ff ++ "]" f1, f2: temp f4 target: zombie target reuse field 0 to speed up I know it's ugly v[f4] <- S (S Help I) (lazyApply Copy f8) S (S Help...
# LANGUAGE CPP # import Control.Applicative import qualified Control.Exception.Control as E import Control.Monad import Control.Monad.State import Data.List import Data.Maybe import System.Environment import LTG getFirstWorthEnemy :: Int -> LTG (Maybe Int) getFirstWorthEnemy dmg = do alives <- filterM ...
71c3128b7b11e7cc148597e3cb4b1b0dd60aa6a8298eb744e7aba53ec63a3ab8
Minoru/hakyll-convert
Wordpress.hs
module Golden.Wordpress where import Data.Maybe (listToMaybe) import Golden.GoldenTestHelpers import Hakyll.Convert.Wordpress import Test.Tasty (TestTree, testGroup) import Text.RSS.Syntax (RSSItem (..)) instance CustomShow RSSItem where customShow item = show ( rssItemTitle item, rssItemLink item...
null
https://raw.githubusercontent.com/Minoru/hakyll-convert/9e5006b996586d864c5f3c6f716f3c10aeb51bbb/test/golden/Golden/Wordpress.hs
haskell
module Golden.Wordpress where import Data.Maybe (listToMaybe) import Golden.GoldenTestHelpers import Hakyll.Convert.Wordpress import Test.Tasty (TestTree, testGroup) import Text.RSS.Syntax (RSSItem (..)) instance CustomShow RSSItem where customShow item = show ( rssItemTitle item, rssItemLink item...
ee9da068ec11ca2f5993ad125a54f10b0f84fc377247bc6d53a2feb980e01671
ComputeSoftware/gcp-api
openapi.clj
(ns compute.gcp.impl.openapi (:require [clojure.string :as str] [clojure.edn :as edn] [clojure.walk :as walk] [clojure.set :as sets] [clojure.java.io :as io] [clojure.data.json :as json] [clojure.spec.alpha :as s] [compute.gcp.impl.util :as util] [compute.gcp.swagger :as swagger]))...
null
https://raw.githubusercontent.com/ComputeSoftware/gcp-api/24204927554a3e3b69ef2917f139b53f05def52e/src/compute/gcp/impl/openapi.clj
clojure
(ns compute.gcp.impl.openapi (:require [clojure.string :as str] [clojure.edn :as edn] [clojure.walk :as walk] [clojure.set :as sets] [clojure.java.io :as io] [clojure.data.json :as json] [clojure.spec.alpha :as s] [compute.gcp.impl.util :as util] [compute.gcp.swagger :as swagger]))...
d84b2f054e46702364d4ab84d45721fff2ff1b45cb7d97abc131c92f8eb732cd
PseudoPower/AFSM
SMP.hs
----------------------------------------------------------------------------- -- | -- Module : Control.AFSM.SMMonoid Copyright : ( c ) , 2016 , License : MIT License -- -- Maintainer : -- Stability : experimental -- Portability : portable ------------------------------------------------...
null
https://raw.githubusercontent.com/PseudoPower/AFSM/9d6ace9d279992a18f44856058040a0ef391abd6/src/Control/AFSM/Draft/SMP.hs
haskell
--------------------------------------------------------------------------- | Module : Control.AFSM.SMMonoid Maintainer : Stability : experimental Portability : portable ---------------------------------------------------------------------------
Copyright : ( c ) , 2016 , License : MIT License module Control.AFSM.Draft.SMP where import Data.Monoid import Control.Category import Control.Arrow import Control.AFSM.CoreType import Control.AFSM.Core import Control.AFSM.Draft.SMMonoid data SMNode = SMId | SMArr | SMName String | SMFs...
39d0312b43b5046fdeb5b496cb5fa57beee1f3ef27465df12659f542f7c2d6c8
nick8325/jukebox
Name.hs
# LANGUAGE TypeOperators , GeneralizedNewtypeDeriving , FlexibleInstances , CPP # module Jukebox.Name where import Control.Monad import Control.Monad.Trans.State.Strict import Data.Ord import Data.Int import Data.Symbol import Data.Char import Data.Ratio #if __GLASGOW_HASKELL__ < 710 import Control.Applicative #endif ...
null
https://raw.githubusercontent.com/nick8325/jukebox/52c3206d7def50c8ebcc0128c442fa6c2bd4e074/src/Jukebox/Name.hs
haskell
# UNPACK # # UNPACK # # UNPACK # # UNPACK # # UNPACK # Get all names, including those only used as part of a variant.
# LANGUAGE TypeOperators , GeneralizedNewtypeDeriving , FlexibleInstances , CPP # module Jukebox.Name where import Control.Monad import Control.Monad.Trans.State.Strict import Data.Ord import Data.Int import Data.Symbol import Data.Char import Data.Ratio #if __GLASGOW_HASKELL__ < 710 import Control.Applicative #endif ...
58cae4a0198731d33d9422de6e854c326dbff220acf0b134e423e708c6ebde4b
dgiot/dgiot
dgiot_proxy.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_api/src/utils/dgiot_proxy.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_proxy). -author("johnliu"). -include("dgiot_api.hrl"). -include_lib("dgiot/inclu...
f7a6676018dc560db7858bc7053a4b45417a76ac3cc75e2bad8b5620a5109b45
onixie/w32api
gdi32.lisp
(defpackage #:w32api.gdi32 (:use #:common-lisp #:cffi #:w32api.type) (:export TextOutW MoveToEx LineTo Polyline PolylineTo PolyPolyline PolyBezier PolyBezierTo PolyDraw SetArcDirection GetArcDirection Arc ArcTo AngleArc Ellipse Rectangle ...
null
https://raw.githubusercontent.com/onixie/w32api/bc2c17a3ff493b4dc22c8c0479ca1bf0bdcce5cc/api/gdi32.lisp
lisp
(defpackage #:w32api.gdi32 (:use #:common-lisp #:cffi #:w32api.type) (:export TextOutW MoveToEx LineTo Polyline PolylineTo PolyPolyline PolyBezier PolyBezierTo PolyDraw SetArcDirection GetArcDirection Arc ArcTo AngleArc Ellipse Rectangle ...
312339ddccf168ddcd2df4a98c1c1ef389c090eded06aee1cf1fb83809663766
c-cube/quip
TEF.ml
module P = Profile let active = lazy ( match Sys.getenv "TEF" with | "1"|"true" -> true | _ -> false | exception Not_found -> false ) let program_start = Mtime_clock.now() module Make() : P.BACKEND = struct let first_ = ref true let closed_ = ref false let teardown_ oc = if not !closed_ then ( ...
null
https://raw.githubusercontent.com/c-cube/quip/d8671f8dbf299a010490a6c8824c602332e7f489/src/core/TEF.ml
ocaml
close array connection to subprocess writing into the file
module P = Profile let active = lazy ( match Sys.getenv "TEF" with | "1"|"true" -> true | _ -> false | exception Not_found -> false ) let program_start = Mtime_clock.now() module Make() : P.BACKEND = struct let first_ = ref true let closed_ = ref false let teardown_ oc = if not !closed_ then ( ...
1fb9c681c9d829b306a47fa78128db75164f9049ffb5320309d6767200dd7622
rescript-association/genType
clflags.ml
let output_name = ref (None : string option) (* -o *) and include_dirs = ref ([] : string list)(* -I *) and debug = ref false (* -g *) and fast = ref false (* -unsafe *) and nopervasives = ref false (* -nopervasives *) and preprocessor = ref(None : string option) (*...
null
https://raw.githubusercontent.com/rescript-association/genType/c44251e969fb10d27a38d2bdeff6a5f4d778594f/src/compiler-libs-406/clflags.ml
ocaml
-o -I -g -unsafe -nopervasives -pp -ppx -annot -annot -noassert -verbose -open -principal -short-paths -no-app-funct -error-size -trans-mod -dsource -dparsetree -dtypedtree -drawlambda -dlambda set to true under ocamldoc -keep-docs -keep-locs -color We get it from en...
let reset_dump_state () = begin dump_source := false; dump_parsetree := false; dump_typedtree := false; dump_rawlambda := false end let parse_color_setting = function | "auto" -> Some Misc.Color.Auto | "always" -> Some Misc.Color.Always | "never" -> Some Misc.Color.Never | _ -> None l...
3291770325d38e2f2536b0a81b4cb39185e93a9e7a3b5e03f559440f6250a3c7
jrm-code-project/LISP-Machine
useful-demo.lisp
-*- Mode : LISP ; Fonts:(5X5 ) -*- (defun drf (win) (send win ':clear-screen) (loop for i from 1 to 100 as wid = (send win ':width) as hit = (send win ':height) as rad = (// (min wid hit) 15) do (send win ':draw-circle (random wid) (random hit) ...
null
https://raw.githubusercontent.com/jrm-code-project/LISP-Machine/0a448d27f40761fafabe5775ffc550637be537b2/lambda/window/window-maker/useful-demo.lisp
lisp
Fonts:(5X5 ) -*-
(defun drf (win) (send win ':clear-screen) (loop for i from 1 to 100 as wid = (send win ':width) as hit = (send win ':height) as rad = (// (min wid hit) 15) do (send win ':draw-circle (random wid) (random hit) (random rad)) )...
59fcdc163a440502e4cebc61605e9ecba0de59e0ac90e4106676a0961856766c
webyrd/mediKanren
test-common.rkt
#lang racket (provide (all-defined-out) (all-from-out "../../common.rkt")) (require "../../common.rkt") (define decreases (find-predicates '("negatively_regulates" "prevents" "treats" "disrupts" "increases_degradation_of" "decreases_activity_of" "decreases_expression_...
null
https://raw.githubusercontent.com/webyrd/mediKanren/f82c3c7eb0814eefbfff97f69ee9f73fb258d55c/medikanren/test/full-dbs/test-common.rkt
racket
Alternatively, fuzzy search by name. Introduce concept names. Optionally constrain them with lists of either concepts or categories. Introduce edge names. Optionally constrain them with predicate lists. Specify one or more directed paths. Paths imply edges with subject on the left and object on the right. pat...
#lang racket (provide (all-defined-out) (all-from-out "../../common.rkt")) (require "../../common.rkt") (define decreases (find-predicates '("negatively_regulates" "prevents" "treats" "disrupts" "increases_degradation_of" "decreases_activity_of" "decreases_expression_...
4ceeaf8bfee8f84267503730b6e7032fe6a97678786ff2c0792e6906c014bd64
phoe/protest
macro.lisp
;;;; src/protocol/elements/macro.lisp (in-package #:protest/protocol) (defclass protocol-macro (protocol-operation) ((%name :reader name :initarg :name :initform (error "Must provide NAME.")) (%lambda-list :reader lambda-list :initarg :lambda-list :initform (...
null
https://raw.githubusercontent.com/phoe/protest/be885130044d9950758a2d1726246c4c114692c1/src/protocol/elements/macro.lisp
lisp
src/protocol/elements/macro.lisp
(in-package #:protest/protocol) (defclass protocol-macro (protocol-operation) ((%name :reader name :initarg :name :initform (error "Must provide NAME.")) (%lambda-list :reader lambda-list :initarg :lambda-list :initform (error "Must provide LAMBDA-LIST."))) ...
525e1f0e6dcf9544afb4a0ed9147369644c3ed1d21eb49cff0a219890f4e9f34
league/metaserv
timeStamp.ml
open Unix let days = [|"Sun"; "Mon"; "Tue"; "Wed"; "Thu"; "Fri"; "Sat"|] let months = [|"Jan"; "Feb"; "Mar"; "Apr"; "May"; "Jun"; "Jul"; "Aug"; "Sep"; "Oct"; "Nov"; "Dec"|] examples : * We d , 15 Nov 1995 04:58:08 GMT * Fri , 31 Dec 1999 23:59:59 GMT * Wed, 15 Nov 1995 04:58:08 GMT * Fri, ...
null
https://raw.githubusercontent.com/league/metaserv/35e85832b3d6dfe4e15b8036653d4429a90644f5/server/timeStamp.ml
ocaml
open Unix let days = [|"Sun"; "Mon"; "Tue"; "Wed"; "Thu"; "Fri"; "Sat"|] let months = [|"Jan"; "Feb"; "Mar"; "Apr"; "May"; "Jun"; "Jul"; "Aug"; "Sep"; "Oct"; "Nov"; "Dec"|] examples : * We d , 15 Nov 1995 04:58:08 GMT * Fri , 31 Dec 1999 23:59:59 GMT * Wed, 15 Nov 1995 04:58:08 GMT * Fri, ...
5291f0eef25dfd896eaca1a591c09f3204a36a4923d6b4d1e2460f239dd1aa62
symbiont-io/detsys-testkit
Types.hs
# LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE NumericUnderscores # # LANGUAGE PatternSynonyms # # LANGUAGE ScopedTypeVariables # module Journal.Types -- ( Journal(Journal) , Journal(Journal ) -- , jMaxByteSize -- , jOffset -- , jDirectory -- , jBytesConsumed , Options(Op...
null
https://raw.githubusercontent.com/symbiont-io/detsys-testkit/eaaf90f79d99186b5a5bbf4d4bcffc231d775c08/src/journal/src/Journal/Types.hs
haskell
( Journal(Journal) , jMaxByteSize , jOffset , jDirectory , jBytesConsumed , oMaxByteSize , JournalConsumer(JournalConsumer) , jcBytesConsumed , jcDirectory , jcMaxByteSize , updateJournalPtr , newJournalConsumerPtrRef , readJournalConsumerPtr , updateJournalConsumerPtr , getMaxByteSize ,...
# LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE NumericUnderscores # # LANGUAGE PatternSynonyms # # LANGUAGE ScopedTypeVariables # module Journal.Types , Journal(Journal ) , Options(Options ) , oTermBufferLength , newJournalPtrRef , readJournalPtr , module Journal ....
e381267c64cda0c8ddad0b02df9282c4b169d53ded1b95249cc4774281fef38e
gilith/hol-light
mygraph.ml
unset_jrh_lexer;; module Intvertex = struct type t = int let compare : t -> t -> int = Pervasives.compare let hash = Hashtbl.hash let equal = (=) let default = 0 end;; module Gr = Graph.Imperative.Digraph.ConcreteBidirectional(Intvertex);; module Topo = Graph.Topological.Make(Gr);; let make_vertex var_i...
null
https://raw.githubusercontent.com/gilith/hol-light/f3f131963f2298b4d65ee5fead6e986a4a14237a/QBF/mygraph.ml
ocaml
unset_jrh_lexer;; module Intvertex = struct type t = int let compare : t -> t -> int = Pervasives.compare let hash = Hashtbl.hash let equal = (=) let default = 0 end;; module Gr = Graph.Imperative.Digraph.ConcreteBidirectional(Intvertex);; module Topo = Graph.Topological.Make(Gr);; let make_vertex var_i...
57698eae036f15ad8f6678ec5fe1bea3d2d85096654355ddf2a564073e771b8b
freckle/yesod-auth-oauth2
Bitbucket.hs
{-# LANGUAGE OverloadedStrings #-} -- | -- -- OAuth2 plugin for -- -- * Authenticates against bitbucket -- * Uses bitbucket uuid as credentials identifier -- module Yesod.Auth.OAuth2.Bitbucket ( oauth2Bitbucket , oauth2BitbucketScoped ) where import Yesod.Auth.OAuth2.Prelude import qualified Data.Text as T ne...
null
https://raw.githubusercontent.com/freckle/yesod-auth-oauth2/8976e193e94ab4f0c38bea446a77d30b694780f4/src/Yesod/Auth/OAuth2/Bitbucket.hs
haskell
# LANGUAGE OverloadedStrings # | OAuth2 plugin for * Authenticates against bitbucket * Uses bitbucket uuid as credentials identifier FIXME: Preserved bug. This should just be userId (it's already a Text), but because this code was shipped, folks likely have they would need migrating. We're keeping it for now...
module Yesod.Auth.OAuth2.Bitbucket ( oauth2Bitbucket , oauth2BitbucketScoped ) where import Yesod.Auth.OAuth2.Prelude import qualified Data.Text as T newtype User = User Text instance FromJSON User where parseJSON = withObject "User" $ \o -> User <$> o .: "uuid" pluginName :: Text pluginName = "bitbucket" ...
7bbff5992e2fc222eee579a085a5a95cae6e4e9c693e03847a5689c83f19787b
lehins/Color
Common.hs
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE FlexibleContexts # # LANGUAGE PolyKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module Graphics.Color.Illuminant.Common ( illuminantSpec ) where import Data.Proxy import Graphics.Color.Space import Graphics.Color.Model.Common import GHC.TypeLits ...
null
https://raw.githubusercontent.com/lehins/Color/8f17d4d17dc9b899af702f54b69d49f3a5752e7b/Color/tests/Graphics/Color/Illuminant/Common.hs
haskell
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE FlexibleContexts # # LANGUAGE PolyKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module Graphics.Color.Illuminant.Common ( illuminantSpec ) where import Data.Proxy import Graphics.Color.Space import Graphics.Color.Model.Common import GHC.TypeLits ...
b520f4a53d5cbf82483e34436c7c2ce7f111c5c5abe8e58dedbeee7a444c1933
aryx/xix
device.ml
open Common (*****************************************************************************) (* Prelude *) (*****************************************************************************) (*****************************************************************************) (* Types and constants *) (*************************...
null
https://raw.githubusercontent.com/aryx/xix/60ce1bd9a3f923e0e8bb2192f8938a9aa49c739c/windows/device.ml
ocaml
*************************************************************************** Prelude *************************************************************************** *************************************************************************** Types and constants ************************************************************...
open Common type t = { name: string; perm: Plan9.perm_property; open_: Window.t -> unit; close: Window.t -> unit; read_threaded: int64 -> int -> Window.t -> bytes; write_threaded: int64 -> bytes -> Window.t -> unit; } let default = { name = "<default>"; perm = Plan9.rw; open_ = (fun _ -> ()); ...
607d227307f47375792982b7283cb8393f08fe42d4ebbbffad7763ede3f86322
adaliu-gh/htdp
11-189.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-beginner-abbr-reader.ss" "lang")((modname 11-189) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decim...
null
https://raw.githubusercontent.com/adaliu-gh/htdp/a0fca8af2ae8bdcef40d56f6f45021dd92df2995/8-13%20Arbitrarily%20Large%20Data/11-189.rkt
racket
about the language level of this file in a form that our tools can easily process. Number List-of-numbers -> Boolean Number List-of-numbers -> Boolean determines if a number exists in a sorted list
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-abbr-reader.ss" "lang")((modname 11-189) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (define (search n alon) (cond [(empty? alon) #false] ...
aafb6c0ff586bed74d67008dc613fc8a0303866cf9ca2eeb8afdb5e66e1a8376
avsm/eeww
endpoint.ml
module Type = struct type t = | Invalid | Address | Host | Bonjour | Url (** Types of network endpoints *) end type t (** A local or remote endpoint in a network connection *) external network_endpoint_create_host : string -> string -> t = "ocaml_network_endpoint_create_host" external networ...
null
https://raw.githubusercontent.com/avsm/eeww/17c68b93536cd382b901ba675411c2f69831fdac/lib/network/lib/endpoint.ml
ocaml
* Types of network endpoints * A local or remote endpoint in a network connection
module Type = struct type t = | Invalid | Address | Host | Bonjour end type t external network_endpoint_create_host : string -> string -> t = "ocaml_network_endpoint_create_host" external network_endpoint_get_type : t -> Type.t = "ocaml_network_endpoint_get_type" external network_endpoint_rele...
0e8aaaa36ce77499b90ce0efdba45ee35ee56ed3dbc1a96b8450d97bf0de795c
jasonstolaruk/CurryMUD
Misc.hs
{-# LANGUAGE OverloadedStrings #-} module MudTests.Data.State.Util.Misc where import Mud.Data.State.MudData import Mud.Data.State.Util.Misc import Mud.TheWorld.Zones.AdminZone import Mud.TopLvlDefs.Chars import MudTests.TestUtil import Control.Lens (views) ...
null
https://raw.githubusercontent.com/jasonstolaruk/CurryMUD/f9775fb3ede08610f33f27bb1fb5fc0565e98266/tests/MudTests/Data/State/Util/Misc.hs
haskell
# LANGUAGE OverloadedStrings # ==================================================
module MudTests.Data.State.Util.Misc where import Mud.Data.State.MudData import Mud.Data.State.Util.Misc import Mud.TheWorld.Zones.AdminZone import Mud.TopLvlDefs.Chars import MudTests.TestUtil import Control.Lens (views) import Data.Monoid ((<>))...
743240aa092ed012c77d09c468898bf6f6339817480f0b65b76ce6da12c2ab28
smaccoun/beam-servant
DBConfig.hs
{-# LANGUAGE DataKinds #-} # LANGUAGE TemplateHaskell # {-# LANGUAGE TypeOperators #-} module Config.DBConfig where import AppPrelude import Control.Lens.TH import qualified Data.Text as T import qualified Database.PostgreSQL.Simple as PGS data DBConfig = DBConfig {...
null
https://raw.githubusercontent.com/smaccoun/beam-servant/1560f81c56ca7a324be1ee68208fb05c4dfea844/src/Config/DBConfig.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE TypeOperators #
# LANGUAGE TemplateHaskell # module Config.DBConfig where import AppPrelude import Control.Lens.TH import qualified Data.Text as T import qualified Database.PostgreSQL.Simple as PGS data DBConfig = DBConfig {dbHost :: T.Text ,dbPort :: Integer ,dbDatabase ::...
da658745301e462a6e563422226150121208918ae59eff15d96eb4da56e11c19
kraison/cl-neo4j
globals.lisp
(in-package #:cl-neo4j) (defvar *neo4j-host* "localhost") (defvar *neo4j-port* 7474) (defvar *neo4j-user* "neo4j") (defvar *neo4j-pass* "neo4j")
null
https://raw.githubusercontent.com/kraison/cl-neo4j/f74c835d81b5c41581ae8f80959a6a186413efc8/src/globals.lisp
lisp
(in-package #:cl-neo4j) (defvar *neo4j-host* "localhost") (defvar *neo4j-port* 7474) (defvar *neo4j-user* "neo4j") (defvar *neo4j-pass* "neo4j")
cadda958af062f278e8b8bd0c63803605a2f2d053e619eb178881a351650ce3c
rescript-lang/rescript-compiler
bsb_pkg_types.ml
Copyright ( C ) 2018- , Authors of ReScript * * This program 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 * ( at your option ) any later vers...
null
https://raw.githubusercontent.com/rescript-lang/rescript-compiler/e60482c6f6a69994907b9bd56e58ce87052e3659/jscomp/bsb/bsb_pkg_types.ml
ocaml
* input: {[ @hello/yy/xx hello/yy ]} FIXME: fix invalid input {[ hello//xh//helo ]} better-eror message for invalid scope package: @rescript/std
Copyright ( C ) 2018- , Authors of ReScript * * This program 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 * ( at your option ) any later vers...
43ba366c06b5b08c28139942824d15ea79b80026155600ff0d528e7d1caef609
onyx-platform/onyx-kafka
input_resume_test.clj
(ns onyx.plugin.input-resume-test (:require [aero.core :refer [read-config]] [clojure.test :refer [deftest is]] [com.stuartsierra.component :as component] [onyx api [job :refer [add-task]] [test-helper :refer [with-test-env]]] [onyx.plugin kafk...
null
https://raw.githubusercontent.com/onyx-platform/onyx-kafka/8353ed5ff1a9f41da836a0069cdf6ba6da91f613/test/onyx/plugin/input_resume_test.clj
clojure
should be much lower to get some checkpointing in
(ns onyx.plugin.input-resume-test (:require [aero.core :refer [read-config]] [clojure.test :refer [deftest is]] [com.stuartsierra.component :as component] [onyx api [job :refer [add-task]] [test-helper :refer [with-test-env]]] [onyx.plugin kafk...
1bd8d85eb9748eba2c671d9b4e1bc256bbd23a60e4f404dfc93ea7631d9ea6a4
Cumulus/Syndic
test_decisions.ml
(* Use the W3C validator to motivate some decisions that were taken. *) open Printf open Lwt open Syndic module Client = Cohttp_lwt_unix.Client module Body = Cohttp_lwt.Body let check_feed data = printf "ATOM: %s\n" data ; Client.get (W3C.url (`Data data)) >>= fun (_r, b) -> Body.to_string b >>= fun body ->...
null
https://raw.githubusercontent.com/Cumulus/Syndic/7a70e3062e42f9ee0ec77f282e1924736b0dff2a/test/test_decisions.ml
ocaml
Use the W3C validator to motivate some decisions that were taken.
open Printf open Lwt open Syndic module Client = Cohttp_lwt_unix.Client module Body = Cohttp_lwt.Body let check_feed data = printf "ATOM: %s\n" data ; Client.get (W3C.url (`Data data)) >>= fun (_r, b) -> Body.to_string b >>= fun body -> let err, warn = `String (0, body) |> Xmlm.make_input |> W3C.parse in ...
d696a8bb5a9bcdee99162dbf5361cc0547f8bec98e0f7ce594ebc7beb57dc3f0
let-def/wall
wall_text.ml
open Wall open Wall__geom utf-8 decoding dfa , from -8/decoder/dfa/ let bufsize = 2048 let ibufsize = 1.0 /. float bufsize let utf8d = "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000...
null
https://raw.githubusercontent.com/let-def/wall/43b7a1601d5d3ef624e4b641446aaaaa76db7b89/lib/wall_text.ml
ocaml
(prerr_endline ("new glyph: " ^ string_of_int cp);
open Wall open Wall__geom utf-8 decoding dfa , from -8/decoder/dfa/ let bufsize = 2048 let ibufsize = 1.0 /. float bufsize let utf8d = "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000...
82675ec921ca98cebf5f88b84ce63e9f83c3c92197f5e1653096fb2e3f715217
ddmcdonald/sparser
ns-unknown-rd-items-phase3-22001-22400.lisp
(IN-PACKAGE :SP) (DEFPARAMETER SPARSER::*NS-RD-PHASE3-22001-22400* 'NIL)
null
https://raw.githubusercontent.com/ddmcdonald/sparser/304bd02d0cf7337ca25c8f1d44b1d7912759460f/Sparser/code/s/tools/ns-stuff/old-unknown/ns-unknown-rd-items-phase3-22001-22400.lisp
lisp
(IN-PACKAGE :SP) (DEFPARAMETER SPARSER::*NS-RD-PHASE3-22001-22400* 'NIL)
3f2f4316222df2f4fea5651100114e1113f66f67af830d2a8b4d995b942f21c8
tlaplus/tlapm
rewrite_trivial.mli
open Expr.T val rw : expr -> expr val range2set : int -> int -> expr list
null
https://raw.githubusercontent.com/tlaplus/tlapm/b82e2fd049c5bc1b14508ae16890666c6928975f/src/smt/rewrite_trivial.mli
ocaml
open Expr.T val rw : expr -> expr val range2set : int -> int -> expr list
c5c1e6e32443930812efa55f18e0307fce0929b98315df6fcf6f4dc20ee41140
zcaudate/hara
main.clj
(ns hara.deploy.main (:require [hara.core.base.encode :as encode] [hara.deploy.common :as common] [hara.deploy.package.meta :as meta] [hara.security.pgp :as privacy] [hara.security.pgp.local :as user] [hara.io.archive :as archive] [hara.io.file :...
null
https://raw.githubusercontent.com/zcaudate/hara/481316c1f5c2aeba5be6e01ae673dffc46a63ec9/src/hara/deploy/main.clj
clojure
(ns hara.deploy.main (:require [hara.core.base.encode :as encode] [hara.deploy.common :as common] [hara.deploy.package.meta :as meta] [hara.security.pgp :as privacy] [hara.security.pgp.local :as user] [hara.io.archive :as archive] [hara.io.file :...
bb430776c75a2f67cb2944a1909db8faf502546a30069a62a2c82b5874bff32d
diagrams/diagrams-cairo
Visible.hs
# LANGUAGE NoMonomorphismRestriction # import Diagrams.Prelude import Diagrams.Backend.Cairo.CmdLine grid n = centerXY . cat' unitY with {sep = 1, catMethod = Distrib} . map (hcat' with { sep = 1, catMethod = Distrib }) $ (map . map) (lw 0 . applyColor) [ [(r,c) | c <- [0..n] ] | r <- [0..n]] apply...
null
https://raw.githubusercontent.com/diagrams/diagrams-cairo/533e4f4f18f961543bb1d78493c750dec45fd4a3/test/Visible.hs
haskell
# LANGUAGE NoMonomorphismRestriction # import Diagrams.Prelude import Diagrams.Backend.Cairo.CmdLine grid n = centerXY . cat' unitY with {sep = 1, catMethod = Distrib} . map (hcat' with { sep = 1, catMethod = Distrib }) $ (map . map) (lw 0 . applyColor) [ [(r,c) | c <- [0..n] ] | r <- [0..n]] apply...
dbc0f09d7079911d2bfa6cc5546aa372431c30e0fe0095ff5e055dc29138f929
aturon/Caper
hm-list.rkt
#lang racket A variant of Harrs - Michael linked lists , ; used to represent finite mappings (require racket/future racket/match caper/core/reagent caper/core/atomic-ref) ; special, unexported values for the val field of a node (define deleted (gensym)) ; THIS node is deleted (define marked (gensym)) ; the PREDEC...
null
https://raw.githubusercontent.com/aturon/Caper/be05f13f3189c7717cd14a223b0cb3b188fe5bb1/data/hm-list.rkt
racket
used to represent finite mappings special, unexported values for the val field of a node THIS node is deleted the PREDECESSOR of this node is deleted key: any val: atomic-ref(any) (with deleted and marked as special values) next: atomic-ref(node U ()) mark: node -> bool attempt to append a marker to the give...
#lang racket A variant of Harrs - Michael linked lists , (require racket/future racket/match caper/core/reagent caper/core/atomic-ref) (struct node (key val next)) (struct hm-list (head <)) (define (mark n) (atomic-ref-cas! (node-next n))) (define (help-delete pred n) from JUC : " rechecking links and then...
5085562677b893d02e032858dfabb64ee9d6bdff1e837ef5a4f4d34ff8043c35
braidchat/braid
db.clj
(ns braid.emoji-custom.server.db (:require [datomic.api :as d] [datomic.db] FIXME use of non - public API )) (def db-schema [{:db/ident :custom-emoji/id :db/valueType :db.type/uuid :db/cardinality :db.cardinality/one :db/unique :db.unique/identity} {:db/ident :custom-emoji/shortcode :...
null
https://raw.githubusercontent.com/braidchat/braid/2e44eb6e77f1d203115f9b9c529bd865fa3d7302/src/braid/emoji_custom/server/db.clj
clojure
(ns braid.emoji-custom.server.db (:require [datomic.api :as d] [datomic.db] FIXME use of non - public API )) (def db-schema [{:db/ident :custom-emoji/id :db/valueType :db.type/uuid :db/cardinality :db.cardinality/one :db/unique :db.unique/identity} {:db/ident :custom-emoji/shortcode :...
317aaed0ab21ce59f6e2cd585b4c25ed66e32ac740b4071d299c3d7a60e544c1
macintux/lynch
lcr.erl
@author < > ( C ) 2013 , %%% @doc Implement the Le Lann , , and algorithm for leader election as described in Lynch section 3.3 . %%% @end Created : 10 Nov 2013 by < > -module(lcr). -include("process.hrl"). -behavior(process). -export([init/3, step/2, handle_message/4, dump/1, complexity/2])....
null
https://raw.githubusercontent.com/macintux/lynch/63ed74634872b23a4bcce6315cd1077817a4ad56/sync/LCR/lcr.erl
erlang
@doc @end Position in the ring Unique ID unknown or leader
@author < > ( C ) 2013 , Implement the Le Lann , , and algorithm for leader election as described in Lynch section 3.3 . Created : 10 Nov 2013 by < > -module(lcr). -include("process.hrl"). -behavior(process). -export([init/3, step/2, handle_message/4, dump/1, complexity/2]). -record(state, {...
fd40d70c272d3213e55683be8cc5b81e4cd2778e51087e65188bbb67570a8671
imandra-ai/ocaml-opentelemetry
trace_service_types.mli
(** trace_service.proto Types *) (** {2 Types} *) type export_trace_service_request = { resource_spans : Trace_types.resource_spans list; } type export_trace_partial_success = { rejected_spans : int64; error_message : string; } type export_trace_service_response = { partial_success : export_trace_partial_...
null
https://raw.githubusercontent.com/imandra-ai/ocaml-opentelemetry/3dc7d63c7d2c345ba13e50b67b56aff878b6d0bb/src/trace_service_types.mli
ocaml
* trace_service.proto Types * {2 Types} * [default_export_trace_service_request ()] is the default value for type [export_trace_service_request] * [default_export_trace_partial_success ()] is the default value for type [export_trace_partial_success]
type export_trace_service_request = { resource_spans : Trace_types.resource_spans list; } type export_trace_partial_success = { rejected_spans : int64; error_message : string; } type export_trace_service_response = { partial_success : export_trace_partial_success option; } * { 2 Default values } val de...
67bd0c7aa7b093f6ae062509a4816c194d36ed54166e3a25910e743ce37031de
finkel-lang/finkel
Fnk.hs
# LANGUAGE CPP # {-# LANGUAGE OverloadedStrings #-} # OPTIONS_GHC -Wno - orphans # | Wrapper for code compilation monad . module Language.Finkel.Fnk * compiler monad Fnk(..) , FnkEnv(..) , FnkEnvRef(..) , FnkInvokedMode(..) , Macro(..) , MacroFunction , MacroName(..) , EnvMacros ...
null
https://raw.githubusercontent.com/finkel-lang/finkel/74ce4bb779805ad2b141098e29c633523318fa3e/finkel-kernel/src/Language/Finkel/Fnk.hs
haskell
# LANGUAGE OverloadedStrings # * Error related functions * Debugging * Command line option handlings * Re-export from 'exceptions' package base containers exceptions process --------------------------------------------------------------------- ----------------------------------------------------------------...
# LANGUAGE CPP # # OPTIONS_GHC -Wno - orphans # | Wrapper for code compilation monad . module Language.Finkel.Fnk * compiler monad Fnk(..) , FnkEnv(..) , FnkEnvRef(..) , FnkInvokedMode(..) , Macro(..) , MacroFunction , MacroName(..) , EnvMacros , FlagSet , runFnk , toGhc ...
34769dd6a25052de76dab82a2cec182ca3c3471e4f58e7f189c60c0ecde0f7e3
clojure-interop/aws-api
project.clj
(defproject clojure-interop/com.amazonaws.services.stepfunctions "1.0.0" :description "Clojure to Java Interop Bindings for com.amazonaws.services.stepfunctions" :url "-interop/aws-api" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"]] :source...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.stepfunctions/project.clj
clojure
(defproject clojure-interop/com.amazonaws.services.stepfunctions "1.0.0" :description "Clojure to Java Interop Bindings for com.amazonaws.services.stepfunctions" :url "-interop/aws-api" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"]] :source...
d5f101f029f3224cb056188e53a52bff86c09af3dbd5c5894a80ce47ddb31138
zhugecaomao/AutoLISP
thread.lsp
; 该程序可生成三维实体外螺纹。 ; 你可生成以下的螺纹: 执行命令:ISO228 功能 : ISO 228 ( 相当于 DIN 228 和 NEN 176 ) ; 执行命令:mythread 功能:管螺纹 , ISO 7 - 1 ( 相当于 DIN 2999 和 NEN 3258 ) ; 执行命令:Metric 功能:公制内外螺纹 , NEN 81 和 NEN 1870 (defun myerror (s) (if (/= s "function cancelled") (princ (strcat "\nError: " s))) (setvar "cmdecho" ocmd) (setvar ...
null
https://raw.githubusercontent.com/zhugecaomao/AutoLISP/3e97f911068124f3ea8a1cf6f1d8be9f8227c64b/thread.lsp
lisp
该程序可生成三维实体外螺纹。 你可生成以下的螺纹: 执行命令:mythread 执行命令:Metric (setq olderr *error* *error* myerror) demo version only 1 no enter biggest outside diameter inside diameter threadangle ------------------------------------------------------------------- Gets the nominal size, tpi, and total length then calculates a ...
执行命令:ISO228 功能 : ISO 228 ( 相当于 DIN 228 和 NEN 176 ) 功能:管螺纹 , ISO 7 - 1 ( 相当于 DIN 2999 和 NEN 3258 ) 功能:公制内外螺纹 , NEN 81 和 NEN 1870 (defun myerror (s) (if (/= s "function cancelled") (princ (strcat "\nError: " s))) (setvar "cmdecho" ocmd) (setvar "osmode" osm) (setq *error* olderr) (princ) ) (defun c:...
35ff7fcae472c974c23ecc2763be90e7802639c6137ac4c3a613531bc56eef6a
SahilKang/cl-rdkafka
create-partitions.lisp
Copyright ( C ) 2018 - 2020 < > ;;; ;;; This file is part of cl-rdkafka. ;;; ;;; cl-rdkafka is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ;;; (at your option) any l...
null
https://raw.githubusercontent.com/SahilKang/cl-rdkafka/4d0b6f7f9b102769cb91a020e4e192a2ea066e0b/src/high-level/admin/create-partitions.lisp
lisp
This file is part of cl-rdkafka. cl-rdkafka is free software: you can redistribute it and/or modify (at your option) any later version. cl-rdkafka is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOS...
Copyright ( C ) 2018 - 2020 < > it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License (in-package #:cl-rdkafka) (defgeneric create-partitions (client topi...
112f31ae6c517de7e822094b8de4b25d1991e7f99d98ed7c8d78907bf285ca8b
timjs/tophat-haskell
Abort.hs
# LANGUAGE TemplateHaskell # module Polysemy.Abort ( -- * Effect Abort, -- * Actions abort, -- * Interpretations runAbort , abortToError, abortToNonDet, abortToIO, ) where import Polysemy import Polysemy.Error import Polysemy.NonDet ---- Effect ------------------------------------...
null
https://raw.githubusercontent.com/timjs/tophat-haskell/665d620ded5b61c454b6c50b8590f0d3f21c055f/src/Polysemy/Abort.hs
haskell
* Effect * Actions * Interpretations -- Effect -------------------------------------------------------------------- -- Interpretations ----------------------------------------------------------- -- | Run a 'Abort' effect purely. runAbort :: a -> Sem (Abort ': r) a -> Sem r a runAbort a = interpret \case ...
# LANGUAGE TemplateHaskell # module Polysemy.Abort Abort, abort, runAbort , abortToError, abortToNonDet, abortToIO, ) where import Polysemy import Polysemy.Error import Polysemy.NonDet data Abort m a where Abort :: Abort m a makeSem ''Abort { - # INLINE runAbort # - } abortToError...
26c68d967ee331d09b7f194f1fd351af967afc68d27577a53b732d845b0e45e3
stylewarning/hypergeometrica
fixed-width-arithmetic.lisp
fixed-width-arithmetic.lisp ;;; Copyright ( c ) 2014 - 2019 (in-package #:hypergeometrica) ;;;;;;;;;;;;;;;;;;;;;;; Fixed-Width Arithmetic ;;;;;;;;;;;;;;;;;;;;;;; (declaim (inline split-byte)) (defun split-byte (x bits) "Split the non-negative integer X into two values X0 and X1 such that X = X1 << bits ...
null
https://raw.githubusercontent.com/stylewarning/hypergeometrica/00062e5e6f838cb089dde078918bed879b6cccea/src/fixed-width-arithmetic.lisp
lisp
Fixed-Width Arithmetic ;;;;;;;;;;;;;;;;;;;;;;; A = A0 + A1*W' Each of these sub-A*B products are of width WIDTH, and are Compute columns and carries as in longhand multiplication. Each column tracks WIDTH/2 bits. Column 1 = C0-HI + C1A-LO + C1B-LO Column 2,3 = C1A-HI + C1B-HI + C3 + COL1-CARRY
fixed-width-arithmetic.lisp Copyright ( c ) 2014 - 2019 (in-package #:hypergeometrica) (declaim (inline split-byte)) (defun split-byte (x bits) "Split the non-negative integer X into two values X0 and X1 such that X = X1 << bits + X0." (values (ldb (byte bits 0) x) (ash x (- bits)))) (decla...
7a46673c659dd4ebfc8e2d518b8cfa4d10aa881d2bcaff260cfd6301e235846b
quan-nh/adventofcode
day4.clj
(ns adventofcode2016.day4 (:require [clojure.string :as str] [clojure.java.io :as io] [adventofcode2016.util :as util])) (def input (-> (io/resource "2016/day4") slurp str/split-lines)) (defn parse-room [room] (let [[_ name id checksum] (re-matches #"^(.+)-(\d...
null
https://raw.githubusercontent.com/quan-nh/adventofcode/98542934a121d1df85dd271d28fedc1f25b98206/src/adventofcode2016/day4.clj
clojure
part1 part2
(ns adventofcode2016.day4 (:require [clojure.string :as str] [clojure.java.io :as io] [adventofcode2016.util :as util])) (def input (-> (io/resource "2016/day4") slurp str/split-lines)) (defn parse-room [room] (let [[_ name id checksum] (re-matches #"^(.+)-(\d...
e4e7f933e20b4b75cd13c538b1e61e50e98f7216b2b09f5bdb507df53ab98915
mstepniowski/project-euler
euler_023.clj
Solution to Project Euler problem 23 ;; ;; ;; A perfect number is a number for which the sum of its proper ;; divisors is exactly equal to the number. For example, the sum of the proper divisors of 28 would be 1 + 2 + 4 + 7 + 14 = 28 , which means that 28 is a perfect number . ;; ;; A number n is called deficien...
null
https://raw.githubusercontent.com/mstepniowski/project-euler/01d64aa46b21d96fc5291fdf216bf4bad8249029/src/com/stepniowski/euler_023.clj
clojure
A perfect number is a number for which the sum of its proper divisors is exactly equal to the number. For example, the sum of A number n is called deficient if the sum of its proper divisors is less than n and it is called abundant if this sum exceeds n. abundant numbers. However, this upper limit cannot be r...
Solution to Project Euler problem 23 the proper divisors of 28 would be 1 + 2 + 4 + 7 + 14 = 28 , which means that 28 is a perfect number . As 12 is the smallest abundant number , 1 + 2 + 3 + 4 + 6 = 16 , the smallest number that can be written as the sum of two abundant numbers is 24 . By mathematical anal...
eee17cb2c11c2f5896b72d57d9f0a3ec78a0679cb45ec60a5109ed86dde5b812
triffon/fp-2022-23
class.05.deep-delete.rkt
#lang racket “ Ниво на влагане ” на атом в броя пъти , който да се приложи операцията car ; за достигане до атома. ; Да се реализира функция deep-delete, която в даден числови атоми , които са по- малки от нивото ; им на влагане. (define (atom? x) (and (not (null? x)) (not (pair? x)))) (defi...
null
https://raw.githubusercontent.com/triffon/fp-2022-23/b6991b5be25fb65d1e44b49ff612eb4e63f7caae/exercises/cs2/05.scheme.fold-deeplists/class.05.deep-delete.rkt
racket
за достигане до атома. Да се реализира функция deep-delete, им на влагане. (car dl) е списък
#lang racket “ Ниво на влагане ” на атом в броя пъти , който да се приложи операцията car която в даден числови атоми , които са по- малки от нивото (define (atom? x) (and (not (null? x)) (not (pair? x)))) (define dl1 '(1 (2 (2 4) 1) 0 (3 (1)))) → ( 1 ( 2 ( 4 ) ) ( 3 ( ) ) ) (define (deep...
b86e5541249e6ca9329cad9b0b26fc468eecf41e1cc4d6a8bd38387018fbe4a8
roddyyaga/ocoi
auth.ml
open Base open Utils type auth_credential = [ `Bearer of string | `Other of string ] (** Helper to parse "Authorization: Bearer <credentials>" headers *) let get_authorization header = let cohttp_parsed = Httpaf.Headers.get header "Authorization" in match cohttp_parsed with | Some content -> ( match Strin...
null
https://raw.githubusercontent.com/roddyyaga/ocoi/0a07e9457add9890cb507ac8bb4e55044d86a640/ocoi/lib/handlers/auth.ml
ocaml
* Helper to parse "Authorization: Bearer <credentials>" headers
open Base open Utils type auth_credential = [ `Bearer of string | `Other of string ] let get_authorization header = let cohttp_parsed = Httpaf.Headers.get header "Authorization" in match cohttp_parsed with | Some content -> ( match String.lsplit2 ~on:' ' content with | Some (type_, credentials) -> (...
035b4691c5b70215cd63560a3da065e18a848b7c54e81da6d1c4814194012b63
ivanjovanovic/sicp
5.2.4.scm
(load "../5.2/5.2.scm") ; we update the machine with the new stack and add an instruction to ; print the stack statisticks (define (make-new-machine) (let ((pc (make-register 'pc)) (flag (make-register 'flag)) (stack (make-stack)) (the-instruction-sequence '())) (let ((the-ops ...
null
https://raw.githubusercontent.com/ivanjovanovic/sicp/a3bfbae0a0bda414b042e16bbb39bf39cd3c38f8/5.2/5.2.4.scm
scheme
we update the machine with the new stack and add an instruction to print the stack statisticks delegator procedure bindings to the internal "objects" allocation of the new register object with the given name get the value of the register run the machine external interface new version of traceable stack
(load "../5.2/5.2.scm") (define (make-new-machine) (let ((pc (make-register 'pc)) (flag (make-register 'flag)) (stack (make-stack)) (the-instruction-sequence '())) (let ((the-ops (list (list 'initialize-stack (lambda () (stack 'initialize))) ...
56b96ff2c963ce682f730b2758ef2817306f701705b355c2778de76bfa45a3be
juspay/euler-hs
Language.hs
| Module : EulerHS.Core . Types Copyright : ( C ) Juspay Technologies Pvt Ltd 2019 - 2022 License : Apache 2.0 ( see the file LICENSE ) Maintainer : Stability : experimental Portability : non - portable This module reexports the language of the framework . This is an ...
null
https://raw.githubusercontent.com/juspay/euler-hs/0fdda6ef43c1a6c9c7221d7c194c278e375b9936/src/EulerHS/Framework/Language.hs
haskell
| Module : EulerHS.Core . Types Copyright : ( C ) Juspay Technologies Pvt Ltd 2019 - 2022 License : Apache 2.0 ( see the file LICENSE ) Maintainer : Stability : experimental Portability : non - portable This module reexports the language of the framework . This is an ...
252d1f26f8ee532c816ff6ec14954725648a8a5966e12c2947475993a07092e1
ocaml-doc/doc-ock
docOckCmti.mli
* Copyright ( c ) 2014 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
null
https://raw.githubusercontent.com/ocaml-doc/doc-ock/788aabe6e3d157633890f67042d6a4d0161835a7/src/docOckCmti.mli
ocaml
* Copyright ( c ) 2014 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
2f29cb74052ec5e2199612b12cc80e1da92624c4967828fcd6eda2d04482e5be
alanz/ghc-exactprint
records-no-uni-update.hs
# LANGUAGE PatternSynonyms # module RecordPats where -- No updates pattern Uni{a,b} <- (a, b) foo = ("a","b") { a = "b" }
null
https://raw.githubusercontent.com/alanz/ghc-exactprint/b6b75027811fa4c336b34122a7a7b1a8df462563/tests/examples/ghc80/records-no-uni-update.hs
haskell
No updates
# LANGUAGE PatternSynonyms # module RecordPats where pattern Uni{a,b} <- (a, b) foo = ("a","b") { a = "b" }
df59a46060d687ebea4143e6ccbb021239e2f6dcf6a343b743423e7430f6d6e4
ndmitchell/shake
GetOpt.hs
module General.GetOpt( OptDescr(..), ArgDescr(..), getOpt, fmapFmapOptDescr, showOptDescr, mergeOptDescr, removeOverlap, optionsEnum, optionsEnumDesc ) where import qualified System.Console.GetOpt as O import System.Console.GetOpt hiding (getOpt) import qualified Data.HashSet as Se...
null
https://raw.githubusercontent.com/ndmitchell/shake/99c5a7a4dc1d5a069b13ed5c1bc8e4bc7f13f4a6/src/General/GetOpt.hs
haskell
module General.GetOpt( OptDescr(..), ArgDescr(..), getOpt, fmapFmapOptDescr, showOptDescr, mergeOptDescr, removeOverlap, optionsEnum, optionsEnumDesc ) where import qualified System.Console.GetOpt as O import System.Console.GetOpt hiding (getOpt) import qualified Data.HashSet as Se...
2934b8e2277e9c45dd33b652a7447d7518ce6660c17c298333c2a20c9b45fed3
argp/bap
utf8.mli
exception MalFormed val width: int array val next: string -> int -> int val compute_len: string -> int -> int -> int val blit_to_int: string -> int -> int array -> int -> int -> unit val to_int_array: string -> int -> int -> int array val store: Buffer.t -> int -> unit val from_int_array: int array -> int -> int -> s...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/libtracewrap/libtrace/piqi/piqi/deps/ulex-1.1/utf8.mli
ocaml
exception MalFormed val width: int array val next: string -> int -> int val compute_len: string -> int -> int -> int val blit_to_int: string -> int -> int array -> int -> int -> unit val to_int_array: string -> int -> int -> int array val store: Buffer.t -> int -> unit val from_int_array: int array -> int -> int -> s...
2f03c8d37ac911d30db0d8d3d5d9367c9d39c5d55c2528b58d3b06334376b46c
mhuebert/chia
dev_errors.cljs
(ns chia.util.dev-errors (:require [cljs.repl :as repl] [applied-science.js-interop :as j])) (def devtools-error-formatter "Uses cljs.repl utilities to format ExceptionInfo objects in Chrome devtools console." #js{:header (fn [object config] (when (instance? ExceptionInfo object) ...
null
https://raw.githubusercontent.com/mhuebert/chia/74ee3ee9f86efbdf81d8829ab4f0a44d619c73d3/util/src/chia/util/dev_errors.cljs
clojure
(ns chia.util.dev-errors (:require [cljs.repl :as repl] [applied-science.js-interop :as j])) (def devtools-error-formatter "Uses cljs.repl utilities to format ExceptionInfo objects in Chrome devtools console." #js{:header (fn [object config] (when (instance? ExceptionInfo object) ...
80e8c527e5b349b1b4362ebe0b6cb7a3d754e2cdf99eeed23fd754720322514f
zellige/zellige
DouglasPeuckerSpec.hs
{-# LANGUAGE OverloadedStrings #-} module Data.Geometry.DouglasPeuckerSpec where import qualified Data.Geospatial as Geospatial import qualified Data.Sequence as Sequence import Test.Hspec (Spec, describe, it, ...
null
https://raw.githubusercontent.com/zellige/zellige/87e6dab11ac4c1843009043580f14422a1d83ebf/test/Data/Geometry/DouglasPeuckerSpec.hs
haskell
# LANGUAGE OverloadedStrings #
module Data.Geometry.DouglasPeuckerSpec where import qualified Data.Geospatial as Geospatial import qualified Data.Sequence as Sequence import Test.Hspec (Spec, describe, it, shou...
b0ceaf1bad931fad8feafab3f1762c5e079709f1e7de223ca33ff0837bbbb855
screenshotbot/screenshotbot-oss
test-store.lisp
(pkg:define-package :screenshotbot/test-store (:use #:cl #:alexandria #:bknr.datastore #:util #:fiveam #:screenshotbot/model/recorder-run #:screenshotbot/model/core)) (defvar *tmpdir*) (defun reset-store (&optional why) (declare (optimize (speed 0) (debug 3))) (lo...
null
https://raw.githubusercontent.com/screenshotbot/screenshotbot-oss/053a95a8ac234b20b12d4182dccc3065e594ee53/src/screenshotbot/test-store.lisp
lisp
(pkg:define-package :screenshotbot/test-store (:use #:cl #:alexandria #:bknr.datastore #:util #:fiveam #:screenshotbot/model/recorder-run #:screenshotbot/model/core)) (defvar *tmpdir*) (defun reset-store (&optional why) (declare (optimize (speed 0) (debug 3))) (lo...
844789cb518c1b3b7af59874676828feab9e2e0224af467d93aeb1443431bc1f
input-output-hk/cardano-ledger-byron
Properties.hs
# LANGUAGE TemplateHaskell # module Test.Cardano.Chain.Slotting.Properties ( tests ) where import Cardano.Prelude import Test.Cardano.Prelude import Hedgehog ((===), forAll, property, success) import Cardano.Chain.Slotting ( SlotCount(..) , SlotNumber(..) , addSlotCount , toSlotNumber , subSlotCount ...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger-byron/d309449e6c303a9f0dcc8dcf172df6f0b3195ed5/cardano-ledger/test/Test/Cardano/Chain/Slotting/Properties.hs
haskell
------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Check that `fromSlotNumber` does not panic for allowed values of `EpochSlots` and `SlotNumber`. Check that `fromSlotNumber . toSlotNumber == id`. Check that `...
# LANGUAGE TemplateHaskell # module Test.Cardano.Chain.Slotting.Properties ( tests ) where import Cardano.Prelude import Test.Cardano.Prelude import Hedgehog ((===), forAll, property, success) import Cardano.Chain.Slotting ( SlotCount(..) , SlotNumber(..) , addSlotCount , toSlotNumber , subSlotCount ...
73de0b09cefee3cf7b4038990ad7134548556b5eccf849f0e2d22d9ffa41b12a
facebookarchive/pfff
unparse_html.ml
let ( unparse_tree : html_tree2 - > html_raw ) = fun html - > let buf = Buffer.create 1000 in let ch = new in Nethtml.write ch html ; HtmlRaw ( Buffer.contents buf ) let (unparse_tree: html_tree2 -> html_raw) = fun html -> let buf = Buffer.create 1000 in let ch = new Netchannels.output_bu...
null
https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/lang_html/parsing/unparse_html.ml
ocaml
let ( unparse_tree : html_tree2 - > html_raw ) = fun html - > let buf = Buffer.create 1000 in let ch = new in Nethtml.write ch html ; HtmlRaw ( Buffer.contents buf ) let (unparse_tree: html_tree2 -> html_raw) = fun html -> let buf = Buffer.create 1000 in let ch = new Netchannels.output_bu...
3bfa39da73ba5cb0d467746143a94e5a0d00f848904e2da132616141e4c51883
robert-strandh/SICL
image.lisp
(cl:in-package #:sicl-memory) Simulate a memory of 2 ^ 61 8 - byte WORDS , corresponding to a size of 2 ^ 64 bytes . We organize the memory into 8 levels , 7 levels of directories and 1 level of pages . Each level corresponds to 8 address bits so that a directory always has 256 entries . A page stores ...
null
https://raw.githubusercontent.com/robert-strandh/SICL/53fcc065551f66b1034197a865a86258cec39a22/Code/Memory/image.lisp
lisp
Word accesses are always word aligned. We allow for accesses to FIXME: get this from the general configuration. The page is
(cl:in-package #:sicl-memory) Simulate a memory of 2 ^ 61 8 - byte WORDS , corresponding to a size of 2 ^ 64 bytes . We organize the memory into 8 levels , 7 levels of directories and 1 level of pages . Each level corresponds to 8 address bits so that a directory always has 256 entries . A page stores ...
cbce35f1c34325c13005792774a2ce15abcd5150c0d69d83f0dcf9a6a3d056f0
nominolo/lambdachine
Serialise.hs
{-# LANGUAGE Rank2Types #-} # LANGUAGE PatternGuards # {-# LANGUAGE BangPatterns #-} # LANGUAGE GADTs , GeneralizedNewtypeDeriving # # LANGUAGE CPP # module Lambdachine.Serialise where import Lambdachine.Id import Lambdachine.Grin.Bytecode import Lambdachine.Utils import Lambdachine.Utils.IO import Lambdachine.Utils.P...
null
https://raw.githubusercontent.com/nominolo/lambdachine/49d97cf7a367a650ab421f7aa19feb90bfe14731/compiler/Lambdachine/Serialise.hs
haskell
# LANGUAGE Rank2Types # # LANGUAGE BangPatterns # ( StateT, runStateT ) # UNPACK # put :: a -> BuildM () magic version flags string table section magic closure table section magic Create the closure part for a no payload info table no payload , hence no literals A function with free variables nee...
# LANGUAGE PatternGuards # # LANGUAGE GADTs , GeneralizedNewtypeDeriving # # LANGUAGE CPP # module Lambdachine.Serialise where import Lambdachine.Id import Lambdachine.Grin.Bytecode import Lambdachine.Utils import Lambdachine.Utils.IO import Lambdachine.Utils.Pretty import Lambdachine.Utils.Convert import qualified D...
a3ce229585373fe6f385cb4a584d122bf7e9909fe5c88167ea7249d7780d65a1
RefactoringTools/wrangler
wls_execute_command_provider.erl
-module(wls_execute_command_provider). -export([enabled_commands/0, execute_command/2]). -include_lib("kernel/include/logger.hrl"). -spec enabled_commands() -> [els_command:command_id()]. enabled_commands() -> Commands = wls_code_actions:enabled_actions() ++ [ <<"form-exit">> ...
null
https://raw.githubusercontent.com/RefactoringTools/wrangler/7f4c120e4bf06a39d8762caa60b4c88ef03086b0/src/wls/wls_execute_command_provider.erl
erlang
-module(wls_execute_command_provider). -export([enabled_commands/0, execute_command/2]). -include_lib("kernel/include/logger.hrl"). -spec enabled_commands() -> [els_command:command_id()]. enabled_commands() -> Commands = wls_code_actions:enabled_actions() ++ [ <<"form-exit">> ...
517f28bf28ca885be49c653d90c914a44008c9f6ad7c8ebd70c41ffe2abac55a
astrada/google-drive-ocamlfuse
utils.ml
open GapiUtils.Infix open GapiMonad open GapiMonad.SessionM.Infix exception Temporary_error (* Globals *) let start_time = Unix.gettimeofday () let verbose = ref false let debug_buffers = ref false let log_channel = ref stdout let log_mutex = Mutex.create () let max_retries = ref 10 let mb = 1048576L let hashtable_in...
null
https://raw.githubusercontent.com/astrada/google-drive-ocamlfuse/9027602dbbaf7473cfacc8bd44865d2bef7c41c7/src/utils.ml
ocaml
Globals Threads try/finally Channels Logging Locks Used to do a try/with on a monadic f: state parameter s is eta-expanded, * otherwise the try/with will be ignored because f is only partially applied Unix Browser Retry Base64 Normalize paths
open GapiUtils.Infix open GapiMonad open GapiMonad.SessionM.Infix exception Temporary_error let start_time = Unix.gettimeofday () let verbose = ref false let debug_buffers = ref false let log_channel = ref stdout let log_mutex = Mutex.create () let max_retries = ref 10 let mb = 1048576L let hashtable_initial_size = 6...
3d4e67e881e76f356963f3d151a3f1a0248bb92db787065cc9d75c9fefa245de
nvim-treesitter/nvim-treesitter
locals.scm
The MIT License ( MIT ) ; Copyright ( c ) 2016 ; ; 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, me...
null
https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/56634f49ab3d8122153c8c5582c581fb6a6af075/queries/ruby/locals.scm
scheme
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 notic...
The MIT License ( MIT ) Copyright ( c ) 2016 in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KI...
b3c977904233ca0f9756c99ab81d129547356da6fbe77822dc5857dedf84e454
zotonic/zotonic
m_client_local_storage.erl
@author < > 2019 %% @doc Store information in the localStorage on the client. Copyright 2019 %% 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 %% %% Unles...
null
https://raw.githubusercontent.com/zotonic/zotonic/852f627c28adf6e5212e8ad5383d4af3a2f25e3f/apps/zotonic_mod_mqtt/src/models/m_client_local_storage.erl
erlang
@doc Store information in the localStorage on the client. 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...
@author < > 2019 Copyright 2019 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(m_client_local_storage). -export([ get/2, get/3, put/3, put/4, get_secure/2, put_secure/4, ...
b8995da65fdcd13a63b6dd3fa2aab09f0d65afeaee764555b7fe608457b8c7e9
finkel-lang/finkel
Setup.hs
module Main where import Distribution.Simple.Finkel main :: IO () main = finkelMakeMain
null
https://raw.githubusercontent.com/finkel-lang/finkel/2a56dcc0fc1bd1f55ec70360d13d44f667c05ad6/finkel-tool/test/data/p02/Setup.hs
haskell
module Main where import Distribution.Simple.Finkel main :: IO () main = finkelMakeMain
5c4d4c1817f5a470e936b3b3b3ae6ce1d018b27ef72f9d75ebac34694ad5c535
input-output-hk/plutus
Default.hs
-- | Defines the type of default machine parameters and a function for creating a value of the type. We keep them separate , because the function unfolds into multiple thousands of lines of Core and we want to instantiate it in two different ways on top of that , which gives another ton of Core -- that we need to i...
null
https://raw.githubusercontent.com/input-output-hk/plutus/ece3115856b370e259d88e6b45a4f59db7756ca6/plutus-core/plutus-core/src/PlutusCore/Evaluation/Machine/MachineParameters/Default.hs
haskell
| Defines the type of default machine parameters and a function for creating a value of the type. that we need to inspect, hence we dedicate an entire folder to that. Not marking this function with @INLINE@, since at this point everything we wanted to be inlined the line.
We keep them separate , because the function unfolds into multiple thousands of lines of Core and we want to instantiate it in two different ways on top of that , which gives another ton of Core module PlutusCore.Evaluation.Machine.MachineParameters.Default where import PlutusCore.Builtin import PlutusCore.Default...
96219884b2d6269f93210d7b243c3554cb1dfe6d16912210feec4f9eb38438e2
priestjim/gen_rpc
remote_with_key_SUITE.erl
-*-mode : erlang;coding : utf-8;tab - width:4;c - basic - offset:4;indent - tabs - mode:()-*- ex : set utf-8 sts=4 ts=4 sw=4 et : %%% Copyright 2015 . All Rights Reserved . %%% -module(remote_with_key_SUITE). -author("Panagiotis Papadomitsos <>"). CT Macros -include_lib("test/include/ct.hrl"). %%% No ...
null
https://raw.githubusercontent.com/priestjim/gen_rpc/6e17cac4e886f36ecb35bbda91e6bb3293aaa723/test/ct/remote_with_key_SUITE.erl
erlang
No need to export anything, everything is automatically exported as part of the test profile =================================================== CT callback functions =================================================== Starting Distributed Erlang on local node Setup the app locally ===========================...
-*-mode : erlang;coding : utf-8;tab - width:4;c - basic - offset:4;indent - tabs - mode:()-*- ex : set utf-8 sts=4 ts=4 sw=4 et : Copyright 2015 . All Rights Reserved . -module(remote_with_key_SUITE). -author("Panagiotis Papadomitsos <>"). CT Macros -include_lib("test/include/ct.hrl"). all() -> g...
d424def6047e60f56fc92d722ad95ddd91ba4f564aeb3a79d98dca3e7ae85c60
johannesgerer/buchhaltung
AQBanking.hs
# LANGUAGE NamedFieldPuns # # LANGUAGE FlexibleContexts # {-# LANGUAGE OverloadedStrings #-} # OPTIONS_HADDOCK ignore - exports # module Buchhaltung.AQBanking where import Buchhaltung.Common import Control.Monad.RWS.Strict import Data.Maybe import qualified Data.Text as T import ...
null
https://raw.githubusercontent.com/johannesgerer/buchhaltung/1a5b584d7df8c33a803361ca37a14323c3a52373/src/Buchhaltung/AQBanking.hs
haskell
# LANGUAGE OverloadedStrings # | Runs an AQBanking Action for all connections of the selected user * Direct access to the executables * Higher Level of Abstraction ^ request new transactions * Utils ^ default ^ config path argument
# LANGUAGE NamedFieldPuns # # LANGUAGE FlexibleContexts # # OPTIONS_HADDOCK ignore - exports # module Buchhaltung.AQBanking where import Buchhaltung.Common import Control.Monad.RWS.Strict import Data.Maybe import qualified Data.Text as T import Formatting ((%)) import qualified ...
b377d0e515ea2dc5086d94caaca430001f5fb38b7eed90e24122c5e02b4d91e1
juxt-site/site
operations.clj
Copyright © 2022 , JUXT LTD . (ns juxt.site.operations (:require [juxt.grab.alpha.parser :as graphql.parser] [juxt.grab.alpha.schema :as graphql.schema] [clojure.tools.logging :as log] [clojure.string :as str] [crypto.password.bcrypt :as bcrypt] [java-http-clj.core :as hc] [jsonista.core :as j...
null
https://raw.githubusercontent.com/juxt-site/site/0cc85778746b73b1c69ae75510e1a26c583104be/src/juxt/site/operations.clj
clojure
This is broken out into its own function to assist debugging when authorization is denied and we don't know why. A better authorization debugger is definitely required. Only consider given operations Only consider a permitted operation Only permissions that match our purpose (log/debugf "Returning permissions: %s...
Copyright © 2022 , JUXT LTD . (ns juxt.site.operations (:require [juxt.grab.alpha.parser :as graphql.parser] [juxt.grab.alpha.schema :as graphql.schema] [clojure.tools.logging :as log] [clojure.string :as str] [crypto.password.bcrypt :as bcrypt] [java-http-clj.core :as hc] [jsonista.core :as j...
973d8700b6fdf8beae63babf6b847ca9356a1b1a081d2d937027b0e1fba02b53
s-expressionists/Cleavir
packages.lisp
(cl:in-package #:common-lisp-user) (defpackage #:cleavir-attributes (:use #:common-lisp) (:export #:attributes #:attributes-designator #:default-attributes #:identities #:sub-attributes-p #:meet-attributes #:join-attributes) (:export #:make-flags #:has-flag-p))
null
https://raw.githubusercontent.com/s-expressionists/Cleavir/f4f38868bc86c1d0de44e75375f9dcb253730ee4/Attributes/packages.lisp
lisp
(cl:in-package #:common-lisp-user) (defpackage #:cleavir-attributes (:use #:common-lisp) (:export #:attributes #:attributes-designator #:default-attributes #:identities #:sub-attributes-p #:meet-attributes #:join-attributes) (:export #:make-flags #:has-flag-p))
d5bbc6ddd753cfcd093656ac569ee1aa648b49e93a22404b9cd1ccc30ce97673
timbertson/opam2nix
seq_ext.ml
include Seq let rec of_list elems () = match elems with | [] -> Nil | head :: tail -> Cons (head, of_list tail)
null
https://raw.githubusercontent.com/timbertson/opam2nix/d1d4cb15131bf45c9402aeff7df05dc78a92add7/src/seq_ext.ml
ocaml
include Seq let rec of_list elems () = match elems with | [] -> Nil | head :: tail -> Cons (head, of_list tail)
c841802f69ca652fe066be945215140b6fd36409c71e42709e92c07f8fc41cc3
mbutterick/pollen
test-quick-tour.rkt
#lang at-exp racket/base (require rackunit racket/runtime-path pollen/render racket/file pollen/setup) ;; define-runtime-path only allowed at top level (define-runtime-path quick-tour-dir "data/quick-tour/") (define-runtime-path hello.txt.pp "data/quick-tour/hello.txt.pp") (define-runtime-path margin.html.pp "data/qui...
null
https://raw.githubusercontent.com/mbutterick/pollen/a4910a86dc62d1147f3aad94b56cecd6499d7aa6/pollen/test/test-quick-tour.rkt
racket
define-runtime-path only allowed at top level test makes sure that quick tour files work
#lang at-exp racket/base (require rackunit racket/runtime-path pollen/render racket/file pollen/setup) (define-runtime-path quick-tour-dir "data/quick-tour/") (define-runtime-path hello.txt.pp "data/quick-tour/hello.txt.pp") (define-runtime-path margin.html.pp "data/quick-tour/margin.html.pp") (define-runtime-path dow...
8d5e0400539b837b6111e3b1fbd3f20a54a0aaa6cd855c836e2bd86fb724acc5
footprintanalytics/footprint-web
graph_test.clj
(ns metabase.models.collection.graph-test (:require [clojure.java.jdbc :as jdbc] [clojure.test :refer :all] [medley.core :as m] [metabase.api.common :refer [*current-user-id*]] [metabase.models :refer [User]] [metabase.models.collection :as collection :refer...
null
https://raw.githubusercontent.com/footprintanalytics/footprint-web/d3090d943dd9fcea493c236f79e7ef8a36ae17fc/test/metabase/models/collection/graph_test.clj
clojure
now fetch the graph bind a current user so CollectionPermissionGraphRevisions get saved. insert all the users determine the range of IDs we inserted -- MySQL doesn't support INSERT INTO ... RETURNING like Postgres so this is the fastest way to do this now run the thunk
(ns metabase.models.collection.graph-test (:require [clojure.java.jdbc :as jdbc] [clojure.test :refer :all] [medley.core :as m] [metabase.api.common :refer [*current-user-id*]] [metabase.models :refer [User]] [metabase.models.collection :as collection :refer...
5d3aa612b1e7ffaa305c0105b1560e9e4fd2ac7e754a818eff2cde74d49db532
S8A/htdp-exercises
ex442.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex442) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-...
null
https://raw.githubusercontent.com/S8A/htdp-exercises/578e49834a9513f29ef81b7589b28081c5e0b69f/ex442.rkt
racket
about the language level of this file in a form that our tools can easily process. N -> [List-of [List-of Number]] and tests the sorting functions. [[List-of Number] -> [List-of Number]] [List-of [List-of Number] -> [List-of Number] Takes a sorting function and a list of lists of numbers and runs the function on...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex442) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) Creates 10 lists of n random numbers in the range [ 0...
97f4fcfcc1837e63c212d97d76414a127c24f96938fbdfb6a3ff6bca1b768172
ChesleyTan/ascii-chat
messaging.mli
open Package open Cv val add_to_history_buffer: string -> package -> unit val refresh_history_buffer: string -> package -> unit val chat_history_to_string: unit -> string val clear_history_buffer: unit -> unit
null
https://raw.githubusercontent.com/ChesleyTan/ascii-chat/f2670c4a9d8b8e555d6b42741b314257db942c30/src/messaging.mli
ocaml
open Package open Cv val add_to_history_buffer: string -> package -> unit val refresh_history_buffer: string -> package -> unit val chat_history_to_string: unit -> string val clear_history_buffer: unit -> unit
1ef2b0f35ac776921e576363262096c09db709871f41ba9388b0532efb7663ab
google/proto-lens
Encoding.hs
-- | This module generates code for decoding and encoding protocol buffer messages. -- -- Upstream docs: <-buffers/docs/encoding> # LANGUAGE CPP # # LANGUAGE DeriveFunctor # # LANGUAGE LambdaCase # # LANGUAGE NoMonomorphismRestriction # # LANGUAGE OverloadedLabels # {-# LANGUAGE OverloadedStrings #-} module Data.ProtoL...
null
https://raw.githubusercontent.com/google/proto-lens/081815877430afc1db669ca5e4edde1558b5fd9d/proto-lens-protoc/app/Data/ProtoLens/Compiler/Generate/Encoding.hs
haskell
| This module generates code for decoding and encoding protocol buffer messages. Upstream docs: <-buffers/docs/encoding> # LANGUAGE OverloadedStrings # let loop :: T -> Bool -> Bool -> ... -> MVector RealWorld Int32 -> MVector RealWorld Float -> ... -> Parser T loop ...
# LANGUAGE CPP # # LANGUAGE DeriveFunctor # # LANGUAGE LambdaCase # # LANGUAGE NoMonomorphismRestriction # # LANGUAGE OverloadedLabels # module Data.ProtoLens.Compiler.Generate.Encoding ( generatedParser , generatedBuilder ) where import Data.Int (Int32) import qualified Data.Map as Map #if !MIN_VERSION_ba...
97ad650c61089ca3845b0a4601c8033801ebbe8f7ef6ee0a261ea81de4081950
treetopllc/deputy
deputy.erl
Copyright ( c ) 2012 , Treetop Software LLC %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above %% copyright notice and this permission notice appear in all copies. %% THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTH...
null
https://raw.githubusercontent.com/treetopllc/deputy/14a3f286a6892b6543bfda2703d94c1015f2c2fe/src/deputy.erl
erlang
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVE...
Copyright ( c ) 2012 , Treetop Software LLC THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL WARRANTIES ANY SPECIAL , DIRECT , INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE , DATA OR PROFITS , WHETHER IN AN @author < > @copyright 2012 Treetop Sof...
0f090ef90e7df950aff444a23b41568a1cb391bfcad537378248436d005632dc
static-analysis-engineering/codehawk
bCHFtsParameter.mli
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Binary Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Co...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/e3f7eb693fff4ec08b00e9e0e98f0bd2031ca933/CodeHawk/CHB/bchlib/bCHFtsParameter.mli
ocaml
chutil bchlib
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Binary Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Co...
1a3c77b0413963d9e4752d28e806a412805497df990d5a2a929667d47d7e0cb1
maranget/hevea
section.ml
(***********************************************************************) (* *) (* HEVEA *) (* *) , projet PARA , INR...
null
https://raw.githubusercontent.com/maranget/hevea/4e40f50a3a299f54e538c57f7f0fa80df55d094b/section.ml
ocaml
********************************************************************* HEVEA ...
, projet PARA , INRIA Rocquencourt Copyright 1998 Institut National de Recherche en Informatique et Automatique . Distributed only by permission . open Printf type style = Article | Book let style = ref Book let set_style sty = match String.uppercase_ascii...
c8ee69a2ac544bfd168c52405898c4858fe64a426953656961072064adcf81c8
unison-code/unison
LowerSubRegVirtuals.hs
| Copyright : Copyright ( c ) 2016 , RISE SICS AB License : BSD3 ( see the LICENSE file ) Maintainer : Copyright : Copyright (c) 2016, RISE SICS AB License : BSD3 (see the LICENSE file) Maintainer : -} Main authors : < > This file is part of Unison , see -code.github.io ...
null
https://raw.githubusercontent.com/unison-code/unison/9f8caf78230f956a57b50a327f8d1dca5839bf64/src/unison/src/Unison/Tools/Import/LowerSubRegVirtuals.hs
haskell
Produce a chain of lows and highs recursively Produce a tree of combines recursively Select the low combine operand as the left child
| Copyright : Copyright ( c ) 2016 , RISE SICS AB License : BSD3 ( see the LICENSE file ) Maintainer : Copyright : Copyright (c) 2016, RISE SICS AB License : BSD3 (see the LICENSE file) Maintainer : -} Main authors : < > This file is part of Unison , see -code.github.io ...