_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
9ad66b95dbc32cca284df82b9a807d9e54e2ba0ef502410f1203e459d12aebdf
kayceesrk/httpaf
request.ml
type t = { meth : Method.t ; target : string ; version : Version.t ; headers : Headers.t } let create ?(version=Version.v1_1) ?(headers=Headers.empty) meth target = { meth; target; version; headers } let body_length { headers } = (* XXX(seliopou): perform proper transfer-encoding parsing *) match He...
null
https://raw.githubusercontent.com/kayceesrk/httpaf/791593e0f576a54a6eb37534abde2df60a8370e8/lib/request.ml
ocaml
XXX(seliopou): perform proper transfer-encoding parsing XXX(seliopou): perform proper content-length parsing
type t = { meth : Method.t ; target : string ; version : Version.t ; headers : Headers.t } let create ?(version=Version.v1_1) ?(headers=Headers.empty) meth target = { meth; target; version; headers } let body_length { headers } = match Headers.get_multi headers "transfer-encoding" with | "chunked"::...
5c67c34b19ba1990061e4a2a91c21bdd2f0399b469cc903347db6a8ab5113146
onedata/op-worker
subscription_type.erl
%%%------------------------------------------------------------------- @author ( C ) 2016 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%------------------------------------------------------------------- %%% @doc %%% This module provides an access to ...
null
https://raw.githubusercontent.com/onedata/op-worker/99748b05d58eb808a2043cb85d6076f81d703a10/src/modules/events/subscription_type.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- @doc This module provides an access to the subscription specific data. @end ------------------------------------------------------------------- API ==========================...
@author ( C ) 2016 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . -module(subscription_type). -author("Krzysztof Trzepla"). -include("modules/events/definitions.hrl"). -include("modules/fslogic/fslogic_common.hrl"). -export([get_routing_key/1, get_stream_key/1, ...
0aa6906bad9d6e6da836469aa6d6d0f26cf2d1a7a42ad1cf0880cf0e22100379
Tener/deeplearning-thesis
dbn-converter.hs
# LANGUAGE BangPatterns , FlexibleInstances , DeriveDataTypeable # # LANGUAGE DeriveGeneric # {-# LANGUAGE PackageImports #-} # OPTIONS_GHC -fno - warn - orphans # module Main where import Data.Binary import qualified MinimalNN import System.Environment import System.FilePath import System.Directory import Text.Printf...
null
https://raw.githubusercontent.com/Tener/deeplearning-thesis/c56866bf6f48db3185b4b62348d292bf39a7a2af/src/dbn-converter.hs
haskell
# LANGUAGE PackageImports # instance Binary TNetworkHM
# LANGUAGE BangPatterns , FlexibleInstances , DeriveDataTypeable # # LANGUAGE DeriveGeneric # # OPTIONS_GHC -fno - warn - orphans # module Main where import Data.Binary import qualified MinimalNN import System.Environment import System.FilePath import System.Directory import Text.Printf import GHC.Generics (Generic) ...
42913ab82320de03d493c8010afb10aa18772702cbebcb0f32c9e6679ec9cccc
erlware/erlcron
ecrn_cron_sup.erl
, LLC . All Rights Reserved . %%% This file is provided to you under the BSD License ; you may not use %%% this file except in compliance with the License. %%%------------------------------------------------------------------- %%% @doc Simple one for one supervisor for ecd_chron jobs . -module(ecrn_cron_sup)....
null
https://raw.githubusercontent.com/erlware/erlcron/1c6876dfcd125763342b3968cfc38d2d6aaa3027/src/ecrn_cron_sup.erl
erlang
this file except in compliance with the License. ------------------------------------------------------------------- @doc API Supervisor callbacks =================================================================== API functions =================================================================== @doc @doc @doc...
, LLC . All Rights Reserved . This file is provided to you under the BSD License ; you may not use Simple one for one supervisor for ecd_chron jobs . -module(ecrn_cron_sup). -behaviour(supervisor). -export([start_link/0, add_job/2, add_job/3, all_jobs/0, terminate/1]). -...
ce83ad2c9b0c495bc905542a6e4034ab412806ee225ac6c6ad317e79f7b689f3
ndmitchell/catch
Board.hs
module Board( Kind(King,Queen,Rook,Bishop,Knight,Pawn), Colour(Black,White), Piece, Square, Board, showBoard, showPiece, showSquare, emptyBoard, pieceAt, rmPieceAt, putPieceAt, emptyAtAll, kingSquare, forcesColoured, colourOf, kindOf, opponent, onboard) where import Char(toLower) data Kind = King | Quee...
null
https://raw.githubusercontent.com/ndmitchell/catch/5d834416a27b4df3f7ce7830c4757d4505aaf96e/examples/Nofib/Mate/Board.hs
haskell
white black
module Board( Kind(King,Queen,Rook,Bishop,Knight,Pawn), Colour(Black,White), Piece, Square, Board, showBoard, showPiece, showSquare, emptyBoard, pieceAt, rmPieceAt, putPieceAt, emptyAtAll, kingSquare, forcesColoured, colourOf, kindOf, opponent, onboard) where import Char(toLower) data Kind = King | Quee...
7b226c17e5bd213236f9a1cb59a0b23e1264c5b7c5d28e3071d7cb48eb3b9e12
mbg/hoop
Expr.hs
# LANGUAGE TemplateHaskell # # LANGUAGE QuasiQuotes # # LANGUAGE ExistentialQuantification # # LANGUAGE MultiParamTypeClasses # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE PolyKinds # # LANGUAGE TypeFamilies # # LANGUAGE FunctionalDependencies # {-# OPTIONS_GHC -ddump-...
null
https://raw.githubusercontent.com/mbg/hoop/98a53bb1db66b06f9b5d3e5242eed336f908ad18/test/Expr.hs
haskell
# OPTIONS_GHC -ddump-splices -ddump-to-file # ------------------------------------------------------------------------------ ------------------------------------------------------------------------------
# LANGUAGE TemplateHaskell # # LANGUAGE QuasiQuotes # # LANGUAGE ExistentialQuantification # # LANGUAGE MultiParamTypeClasses # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE PolyKinds # # LANGUAGE TypeFamilies # # LANGUAGE FunctionalDependencies # module Expr where im...
4439279cc3ca82b7cde0ee764e44a6c565c757c6ba6512dc187165dddbb505ac
ijvcms/chuanqi_dev
merge_mod.erl
%%%------------------------------------------------------------------- %%% @author qhb ( C ) 2016 , < COMPANY > %%% @doc %%% %%% @end Created : 15 . 六月 2016 上午11:12 %%%------------------------------------------------------------------- -module(merge_mod). -author("qhb"). -behaviour(gen_server). -include("common....
null
https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/business/merge/merge_mod.erl
erlang
------------------------------------------------------------------- @author qhb @doc @end ------------------------------------------------------------------- gen_server callbacks API =================================================================== API ==========================================================...
( C ) 2016 , < COMPANY > Created : 15 . 六月 2016 上午11:12 -module(merge_mod). -author("qhb"). -behaviour(gen_server). -include("common.hrl"). -include("record.hrl"). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -define(SERVER, ?MODULE). -record(state, {}). -export...
bf0707cb2f8d59593d4a2382045e515682b7c14380cc204b215761f175ef3ccd
acowley/CLUtil
BufferImageInterop.hs
# LANGUAGE ConstraintKinds , FlexibleContexts # | Utilities for working with ' CLBuffer 's and ' CLImage 's together . module CLUtil.BufferImageInterop where import CLUtil.State (clQueue) import CLUtil.Buffer (CLBuffer(..)) import CLUtil.CL (HasCL, ask, throwError, liftIO) import CLUtil.Image (CLImage(..), CLImage1) ...
null
https://raw.githubusercontent.com/acowley/CLUtil/d57f05cb3419001b3079d4dfd738bf4538a115ce/src/CLUtil/BufferImageInterop.hs
haskell
different than the total size of the 'CLImage1'. Returns a different than the total size of the 'CLImage1'. Blocks until the copy operation is complete. different than the total size of the 'CLImage1'. Returns a different than the total size of the 'CLImage1'. Blocks until the copy operation is complete.
# LANGUAGE ConstraintKinds , FlexibleContexts # | Utilities for working with ' CLBuffer 's and ' CLImage 's together . module CLUtil.BufferImageInterop where import CLUtil.State (clQueue) import CLUtil.Buffer (CLBuffer(..)) import CLUtil.CL (HasCL, ask, throwError, liftIO) import CLUtil.Image (CLImage(..), CLImage1) ...
5f252cf1225f41e1ebdf68a19384eccc625b35a24e4480e6347eb420e3dac8f2
OCamlPro/ocp-build
ocpDebug.mli
(**************************************************************************) (* *) (* Typerex Libraries *) (* *) Copyrigh...
null
https://raw.githubusercontent.com/OCamlPro/ocp-build/56aff560bb438c12b2929feaf8379bc6f31b9840/libs/ocplib-debug/ocpDebug.mli
ocaml
************************************************************************ Typerex Libraries ...
Copyright 2011 - 2017 OCamlPro SAS the GNU Lesser General Public License version 2.1 , with the [ verbose_function sources ] returns a function [ verbose ] , so that [ verbose n ] returns [ true ] if the debug level for one of the sources is at least [ ...
ae9f2dc7111de7055763dee48b87f59bbcb30696b8d94005f7819565afe4872c
Ingemark/pbxis
util_test.clj
(ns com.ingemark.util-test (:require [com.ingemark.pbxis.util :refer [call-event qcount-event name-event agnt-event member-event]] [clojure.test :as t])) (t/deftest event-constructors (t/testing "construction of pbxis events" (t/is (= {:type "phoneNumber", :agent "1", :n...
null
https://raw.githubusercontent.com/Ingemark/pbxis/9da41ebb717e02f1a3e3e6f553f340c3dd77e619/test/com/ingemark/util_test.clj
clojure
(ns com.ingemark.util-test (:require [com.ingemark.pbxis.util :refer [call-event qcount-event name-event agnt-event member-event]] [clojure.test :as t])) (t/deftest event-constructors (t/testing "construction of pbxis events" (t/is (= {:type "phoneNumber", :agent "1", :n...
515e01fe0bee10ab6efa4321fd1a5cb175ec2dd8a735ccc0f3385e43e7a899a0
Yume-Labs/prism
project.clj
(defproject io.yumelabs/prism "0.2.0-beta" :description "Prism Engine is a next generation asset rendering program for the Solana blockchain network." :url "-Labs/prism" :license {:name "GNU Affero General Public License" :url "-3.0.en.html"} :dependencies [[org.clojure/clojure "1.10.3"] ...
null
https://raw.githubusercontent.com/Yume-Labs/prism/74193ca592fd0992573c12923d327af2879cee70/project.clj
clojure
(defproject io.yumelabs/prism "0.2.0-beta" :description "Prism Engine is a next generation asset rendering program for the Solana blockchain network." :url "-Labs/prism" :license {:name "GNU Affero General Public License" :url "-3.0.en.html"} :dependencies [[org.clojure/clojure "1.10.3"] ...
0e32f5ff777e29a54b6da4416e0e65454f02b7558934e90204b58e840a5b823c
geneweb/geneweb
wiki.mli
$ I d : wiki.mli , v 5.8 2007 - 09 - 12 09:58:44 ddr Exp $ Copyright ( c ) 1998 - 2007 INRIA open Config TLSW : Text Language Stolen to Wikipedia = title level 1 = = = title level 2 = = ... = = = = = = title level 6 = = = = = = * list / li item * list / li item * * list / l...
null
https://raw.githubusercontent.com/geneweb/geneweb/747f43da396a706bd1da60d34c04493a190edf0f/lib/wiki.mli
ocaml
* Parses a whole TLSW text to a list of strings * HTML displaying a table of content for a TLSW file * Prints an exctracted sub part conf can_edit mode fname title env s * [print_mod_view_page conf can_edit mode fname title env s] Prints an editable part conf wi edit_mode fname read_strin...
$ I d : wiki.mli , v 5.8 2007 - 09 - 12 09:58:44 ddr Exp $ Copyright ( c ) 1998 - 2007 INRIA open Config TLSW : Text Language Stolen to Wikipedia = title level 1 = = = title level 2 = = ... = = = = = = title level 6 = = = = = = * list / li item * list / li item * * list / l...
dace7b77fd188c7c862d8bbacccbd9f0f4b974a0d03fb8d81735bc399337b092
azimut/shiny
foxdot-play.lisp
(in-package #:shiny) ;; ;; Description: Loaders and players for foxdot sounds ;; (defvar *fx-samples* (make-hash-table) "Hash with array of buffers.") (defvar *fx-path* "/home/sendai/.local/lib64/python3.4/site-packages/FoxDot/snd/" "Directory where to search for FoxDot samples, overwrite as needed.") lib / (d...
null
https://raw.githubusercontent.com/azimut/shiny/774381a9bde21c4ec7e7092c7516dd13a5a50780/lib/foxdot/foxdot-play.lisp
lisp
Description: Loaders and players for foxdot sounds ensure trailing slash when this happens?
(in-package #:shiny) (defvar *fx-samples* (make-hash-table) "Hash with array of buffers.") (defvar *fx-path* "/home/sendai/.local/lib64/python3.4/site-packages/FoxDot/snd/" "Directory where to search for FoxDot samples, overwrite as needed.") lib / (defvar *fx-non-alpha-sounds* '(("semicolon" . ":") (...
90f05cdb7b460467404f05f370edb6338fc88fb9aab873e909e6ee99f45615e1
cedlemo/OCaml-GI-ctypes-bindings-generator
Search_entry.ml
open Ctypes open Foreign type t = unit ptr let t_typ : t typ = ptr void let create = foreign "gtk_search_entry_new" (void @-> returning (ptr Widget.t_typ)) (*Not implemented gtk_search_entry_handle_event type union not implemented*)
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Search_entry.ml
ocaml
Not implemented gtk_search_entry_handle_event type union not implemented
open Ctypes open Foreign type t = unit ptr let t_typ : t typ = ptr void let create = foreign "gtk_search_entry_new" (void @-> returning (ptr Widget.t_typ))
4c4b68208714d55c9b1ab39cde6d880ebdc6c953d97d996c2c42332049febb94
sbcl/sbcl
test-funs.lisp
(defvar *test-evaluator-mode* :compile) Set to T to always print summary , or : SLOW to print only if > 1 second . ;;; (Additionally the summary will be printed if the overhead exceeds 1 microsecond , so that I might figure out where it 's occuring ) (defvar *summarize-test-times* nil) (defun summarize-within-fil...
null
https://raw.githubusercontent.com/sbcl/sbcl/d8f840845e3f56e793671dd420937ae0f4c1e3c7/tests/test-funs.lisp
lisp
(Additionally the summary will be printed if the overhead exceeds Only the pure load-only (vs. compile+load) tests will be run concurrently. The impure ones won't because we don't know what side-effects they depend on (they are stateful with regard to order within the file). Potentially the pure '.cload' tests cou...
(defvar *test-evaluator-mode* :compile) Set to T to always print summary , or : SLOW to print only if > 1 second . 1 microsecond , so that I might figure out where it 's occuring ) (defvar *summarize-test-times* nil) (defun summarize-within-file-elapsed-times (file start-time) (let* ((actual-total (- (get-inter...
1f57ae97066162b212c27f186cb21700c2629a683d2ef3b17d0d4378215d195e
slipstream/SlipStreamServer
order.clj
(ns com.sixsq.slipstream.db.es.order (:import (org.elasticsearch.action.search SearchRequestBuilder) (org.elasticsearch.search.sort SortOrder))) (def sort-order {:asc SortOrder/ASC :desc SortOrder/DESC}) (defn direction->sort-order "Returns the elasticsearch SortOrder constant associated...
null
https://raw.githubusercontent.com/slipstream/SlipStreamServer/3ee5c516877699746c61c48fc72779fe3d4e4652/db-binding/src/com/sixsq/slipstream/db/es/order.clj
clojure
(ns com.sixsq.slipstream.db.es.order (:import (org.elasticsearch.action.search SearchRequestBuilder) (org.elasticsearch.search.sort SortOrder))) (def sort-order {:asc SortOrder/ASC :desc SortOrder/DESC}) (defn direction->sort-order "Returns the elasticsearch SortOrder constant associated...
af997a7a672428eb6d7adacf42fdf72aebe8f3ba644302be5241311bac9b0842
rroohhh/guix_packages
x.scm
(define-module (vup x) #:use-module (gnu packages autotools) #:use-module (gnu packages pkg-config) #:use-module (gnu packages xorg) #:use-module (guix packages) #:use-module (guix git-download) #:use-module (guix build-system gnu) #:use-module ((guix licenses) #:prefix license:)) (define-public x2x (l...
null
https://raw.githubusercontent.com/rroohhh/guix_packages/8226e4500d2687d119ede3ebf620488f072c430c/vup/x.scm
scheme
(define-module (vup x) #:use-module (gnu packages autotools) #:use-module (gnu packages pkg-config) #:use-module (gnu packages xorg) #:use-module (guix packages) #:use-module (guix git-download) #:use-module (guix build-system gnu) #:use-module ((guix licenses) #:prefix license:)) (define-public x2x (l...
60ef75f6987264dc76d7a5572ed6d016231a79102b2d4f256dfcde180a7707a4
benoitc-attic/barrel_tcp
barrel_tcp.erl
%%% -*- erlang -*- %%% This file is part of barrel released under the MIT license . %%% See the NOTICE for more information. %%% Copyright ( c ) 2011 - 2012 , < > %%% -module(barrel_tcp). -export([name/0, messages/0, listen/1,listen/2, accept/2, connect/3, connect/4, recv/2, recv/3, send/2, setopts/2, co...
null
https://raw.githubusercontent.com/benoitc-attic/barrel_tcp/e689d0f4286b97462e0fda455f87501dc0ef4487/src/barrel_tcp.erl
erlang
-*- erlang -*- See the NOTICE for more information. @doc Atoms used to identify messages in {active, once | true} mod. @doc Listen for connections on the given port number. @see gen_tcp:listen/2 @doc Accept connections with the given listening socket. @doc Receive a packet from a socket in passive mode. @se...
This file is part of barrel released under the MIT license . Copyright ( c ) 2011 - 2012 , < > -module(barrel_tcp). -export([name/0, messages/0, listen/1,listen/2, accept/2, connect/3, connect/4, recv/2, recv/3, send/2, setopts/2, controlling_process/2, peername/1, close/1, sockname/1, sendfile/2]). ...
0a194d4b1386d81b0bc4be0691b796abe80ae97d2b17c94887c5e2ebf4b85cb0
lemmih/hsSDL2
lesson1.hs
module Main where import Control.Concurrent import Graphics.UI.SDL as SDL main :: IO () main = withInit [InitEverything] $ withWindow "Hello World!" (Position 100 100) (Size 640 480) [WindowShown] $ \win -> withRenderer win (Device (-1)) [Accelerated, PresentVSync] $ \ren -> do bmp <- loadBMP "hello.bmp"...
null
https://raw.githubusercontent.com/lemmih/hsSDL2/7a785dc1b8df28143155c8a7c36e4ab69a10df81/Examples/twinklebear/lesson1.hs
haskell
module Main where import Control.Concurrent import Graphics.UI.SDL as SDL main :: IO () main = withInit [InitEverything] $ withWindow "Hello World!" (Position 100 100) (Size 640 480) [WindowShown] $ \win -> withRenderer win (Device (-1)) [Accelerated, PresentVSync] $ \ren -> do bmp <- loadBMP "hello.bmp"...
f1d611627d19e921e6245662e1580a52c7eec838b8883e267579cec2046c7d0f
wireapp/wire-server
API.hs
-- This file is part of the Wire Server implementation. -- Copyright ( C ) 2022 Wire Swiss GmbH < > -- -- This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License...
null
https://raw.githubusercontent.com/wireapp/wire-server/c27541d7456e3ea07ce5c8991585d0ffc4fac226/services/brig/src/Brig/API.hs
haskell
This file is part of the Wire Server implementation. This program is free software: you can redistribute it and/or modify it under later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTI...
Copyright ( C ) 2022 Wire Swiss GmbH < > the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any You should have received a copy of the GNU Affero General Public License along module Brig.API ( sitemap, )...
f90584965b4f014851ca41c11fee64645ba778eeeb0630a46c423a5a339535ee
onyx-platform/lib-onyx
joplin_test.clj
(ns lib-onyx.joplin-test (:require [clojure.test :refer [deftest is testing]] [lib-onyx.joplin :as sut] [onyx [job :as oj] [schema :as os]] [schema.core :as s])) (def base-job {:workflow [[:in :inc] [:inc :out]] :c...
null
https://raw.githubusercontent.com/onyx-platform/lib-onyx/36aaf4b9ec458d6b135c4f27b00fa4334fb1ec33/test/lib_onyx/joplin_test.clj
clojure
(ns lib-onyx.joplin-test (:require [clojure.test :refer [deftest is testing]] [lib-onyx.joplin :as sut] [onyx [job :as oj] [schema :as os]] [schema.core :as s])) (def base-job {:workflow [[:in :inc] [:inc :out]] :c...
2c44a6cf688672bff5aba2a240eec7181b3f1dc75924330d4c4070b299bc2b52
the-real-blackh/cassandra-cql
test-list.hs
# LANGUAGE OverloadedStrings , import Database.Cassandra.CQL import Control.Monad import Control.Monad.CatchIO import Control.Monad.Trans (liftIO) import Data.Int import Data.ByteString.Char8 (ByteString) import qualified Data.ByteString.Char8 as C import Data.Text (Text) import qualified Data.Text as T import Data....
null
https://raw.githubusercontent.com/the-real-blackh/cassandra-cql/681d900fadcede786d1008eac2270166ca915e8b/tests/test-list.hs
haskell
Ignore the error if the table doesn't exist
# LANGUAGE OverloadedStrings , import Database.Cassandra.CQL import Control.Monad import Control.Monad.CatchIO import Control.Monad.Trans (liftIO) import Data.Int import Data.ByteString.Char8 (ByteString) import qualified Data.ByteString.Char8 as C import Data.Text (Text) import qualified Data.Text as T import Data....
cbf5a914cc1c3dc26bb07bb8bbbc20597d128c7ba7bddf8174fd2059ddae7f42
chetmurthy/pa_ppx
pa_deriving_base.mli
module ParamMap (ARG : sig value arg_ctyp_f : Ploc.t → MLast.ctyp → MLast.ctyp; end) : sig type param_t = { type_id : string; arg_id : string }; value type_id : param_t → string; value arg_id : param_t → string; value param_ctyp : ?mono:bool → MLast.loc → param_t → MLast.ctyp; value arg_ctyp : ?...
null
https://raw.githubusercontent.com/chetmurthy/pa_ppx/7c662fcf4897c978ae8a5ea230af0e8b2fa5858b/pa_deriving/pa_deriving_base.mli
ocaml
module ParamMap (ARG : sig value arg_ctyp_f : Ploc.t → MLast.ctyp → MLast.ctyp; end) : sig type param_t = { type_id : string; arg_id : string }; value type_id : param_t → string; value arg_id : param_t → string; value param_ctyp : ?mono:bool → MLast.loc → param_t → MLast.ctyp; value arg_ctyp : ?...
516af60ae3f2e346b71860117ed53f9b0b66aa850101281d3da12f8fd4260019
vincenthz/hs-cryptohash
MD4.hs
{-# LANGUAGE PackageImports #-} -- | Module : Crypto . Hash . -- License : BSD-style Maintainer : < > -- Stability : experimental -- Portability : unknown -- A module containing MD4 bindings -- module Crypto.Hash.MD4 ( Ctx(..) -- * Incremental hashing Functions : : , update --...
null
https://raw.githubusercontent.com/vincenthz/hs-cryptohash/bc7993c104964a2a593265266730ebc78ef59774/Crypto/Hash/MD4.hs
haskell
# LANGUAGE PackageImports # | License : BSD-style Stability : experimental Portability : unknown * Incremental hashing Functions :: Ctx -> ByteString -> Ctx :: Ctx -> [ByteString] -> Ctx * Single Pass hashing :: ByteString -> ByteString :: ByteString -> ByteString | MD4 Context | init a context | u...
Module : Crypto . Hash . Maintainer : < > A module containing MD4 bindings module Crypto.Hash.MD4 ( Ctx(..) : : : : Ctx - > ByteString ) where import Prelude hiding (init) import qualified Data.ByteString.Lazy as L import Data.ByteString (ByteString) import Crypto.Hash.Internal (diges...
a7042441fc1df10476b9ca4aea85aed0d7a5f8848809fb4f5e1e1578f2c44472
glguy/advent
02.hs
{-# Language QuasiQuotes #-} | Module : Main Description : Day 2 solution Copyright : ( c ) , 2021 License : ISC Maintainer : < > Computes volumes and surface areas of boxes . > > > : main + " 2x3x4\n " 58 34 > > > : main + " 1x1x10\n " 43 14 Module : Main Descr...
null
https://raw.githubusercontent.com/glguy/advent/07dedccf64e96c31481b604bb8ca54fdc8cb1661/solutions/src/2015/02.hs
haskell
# Language QuasiQuotes # | >>> :main
| Module : Main Description : Day 2 solution Copyright : ( c ) , 2021 License : ISC Maintainer : < > Computes volumes and surface areas of boxes . > > > : main + " 2x3x4\n " 58 34 > > > : main + " 1x1x10\n " 43 14 Module : Main Description : Day 2 solution Copyr...
f13bc3c7d6e7fed7ee447c7a26ee1449662ae5271785502ef61926322a329375
BumblebeeBat/PinkFairy
start_random_tx.erl
-module(start_random_tx). -export([]).
null
https://raw.githubusercontent.com/BumblebeeBat/PinkFairy/33d595d735d6b1119732984e894ed6aea2b6cb6a/src/txs/start_random_tx.erl
erlang
-module(start_random_tx). -export([]).
b58397f28bbd66b52eb1b5bade3935e960685885dc32a834cce4af5a3bf1723b
ProjectMAC/propagators
load.scm
;;; ---------------------------------------------------------------------- Copyright 2009 Massachusetts Institute of Technology . ;;; ---------------------------------------------------------------------- This file is part of Propagator Network Prototype . ;;; Propagator Network Prototype is free software ; you ...
null
https://raw.githubusercontent.com/ProjectMAC/propagators/add671f009e62441e77735a88980b6b21fad7a79/core/load.scm
scheme
---------------------------------------------------------------------- ---------------------------------------------------------------------- you can redistribute it and/or modify it under the terms of the GNU any later version. will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of M...
Copyright 2009 Massachusetts Institute of Technology . This file is part of Propagator Network Prototype . General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) Propagator Network Prototype is distributed in the hope that it You should ...
c2a20ccd8587b11570539212133883095609e9039f88d790a6296856e90b1d96
ormf/cm
iter.lisp
;;; ********************************************************************** Copyright ( C ) 2009 , < taube ( at ) uiuc ( dot ) edu > ;;; ;;; This program is free software; you can redistribute it and/or modify it under the terms of the Lisp Lesser Gnu Public License . See for the text of this agreement . ;;; **...
null
https://raw.githubusercontent.com/ormf/cm/26843eec009bd6c214992a8e67c49fffa16d9530/src/iter.lisp
lisp
********************************************************************** This program is free software; you can redistribute it and/or ********************************************************************** generated by scheme->cltl from loop.scm on 04-Aug-2009 14:11:45
Copyright ( C ) 2009 , < taube ( at ) uiuc ( dot ) edu > modify it under the terms of the Lisp Lesser Gnu Public License . See for the text of this agreement . (in-package :cm) (defun loop-operator (c) (elt c 0)) (defun loop-operator-set! (c x) (setf (elt c 0) x)) (defun loop-bindings (c) (elt c 1)) (def...
0b71c43df50e203409aab328e6fb18b4bed06bafabefd301b6a33287926184b4
haskell-repa/repa
HintInterleave.hs
module Data.Array.Repa.Repr.HintInterleave (I, Array (..), hintInterleave) where import Data.Array.Repa.Eval.Load import Data.Array.Repa.Eval.Target import Data.Array.Repa.Eval.Interleaved import Data.Array.Repa.Repr.Delayed import Data.Array.Repa.Shape import Data.Array.Repa.Base import Debug.Trace -- | Hin...
null
https://raw.githubusercontent.com/haskell-repa/repa/c867025e99fd008f094a5b18ce4dabd29bed00ba/repa/Data/Array/Repa/Repr/HintInterleave.hs
haskell
| Hints that computing this array will be an unbalanced workload and evaluation should be interleaved between the processors. # INLINE linearIndex # | Wrap an array with a unbalanced-ness hint. Load ----------------------------------------------------------------------- The fact that the workload is unbalanced d...
module Data.Array.Repa.Repr.HintInterleave (I, Array (..), hintInterleave) where import Data.Array.Repa.Eval.Load import Data.Array.Repa.Eval.Target import Data.Array.Repa.Eval.Interleaved import Data.Array.Repa.Repr.Delayed import Data.Array.Repa.Shape import Data.Array.Repa.Base import Debug.Trace data I r...
61d6d235594f3dcaed8bb76ca56d7e4fdb65da40f69cbf4f19d288e09370c2ab
cl-axon/shop2
tracer.lisp
;;; -*- Mode: common-lisp; package: shop2.unifier; -*- ;;; Version : MPL 1.1 / GPL 2.0 / LGPL 2.1 ;;; The contents of this file are subject to the Mozilla Public License ;;; Version 1.1 (the "License"); you may not use this file except in ;;; compliance with the License. You may obtain a copy of the License at ;;; ...
null
https://raw.githubusercontent.com/cl-axon/shop2/9136e51f7845b46232cc17ca3618f515ddcf2787/unification/tracer.lisp
lisp
-*- Mode: common-lisp; package: shop2.unifier; -*- Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights a...
Version : MPL 1.1 / GPL 2.0 / LGPL 2.1 The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is SHOP2 . The Initial Developer of the Original Code is the University of Maryland . Portions created by the Ini...
cdac491a573a451d8342a187a32b96f287bf0576e275d6c615527a102e54a348
keera-studios/keera-hails
SpinButton.hs
-- | Publishes the main elements of a toggle button -- Copyright : ( C ) Keera Studios Ltd , 2013 -- License : BSD3 Maintainer : module Graphics.UI.Gtk.Reactive.SpinButton where import Control.GFunctor import Data.ReactiveValue import Graphics.UI.Gtk import Graphics.UI.Gtk.Reactive.Property spinButtonVa...
null
https://raw.githubusercontent.com/keera-studios/keera-hails/bf069e5aafc85a1f55fa119ae45a025a2bd4a3d0/keera-hails-reactive-gtk/src/Graphics/UI/Gtk/Reactive/SpinButton.hs
haskell
| Publishes the main elements of a toggle button License : BSD3 spinButtonActiveReactive :: SpinButton -> ReactiveFieldReadWrite IO Int spinButtonActiveReactive e = ReactiveFieldReadWrite setter getter notifier where getter = spinButtonGetValueAsInt e notifier = void . (onValueSpinned e)
Copyright : ( C ) Keera Studios Ltd , 2013 Maintainer : module Graphics.UI.Gtk.Reactive.SpinButton where import Control.GFunctor import Data.ReactiveValue import Graphics.UI.Gtk import Graphics.UI.Gtk.Reactive.Property spinButtonValueIntReactive :: SpinButton -> ReactiveFieldReadWrite IO Int spinButtonValue...
e20cf058174233e3335c5ef4ba7a6f4a6b2cf5f00dd69b298a37080d5e89a60f
re-ops/re-core
clipboard.clj
(ns re-core.clipboard "Basic clipboard reading support" (:import [java.awt.datatransfer DataFlavor StringSelection Transferable])) (defn read-clipboard [] (let [clipboard (.getSystemClipboard (java.awt.Toolkit/getDefaultToolkit))] (-> clipboard (.getContents nil) (.getTransferData (DataFla...
null
https://raw.githubusercontent.com/re-ops/re-core/4c5f55d86c75c36e061ca2433d6185882380b895/src/re_core/clipboard.clj
clojure
(ns re-core.clipboard "Basic clipboard reading support" (:import [java.awt.datatransfer DataFlavor StringSelection Transferable])) (defn read-clipboard [] (let [clipboard (.getSystemClipboard (java.awt.Toolkit/getDefaultToolkit))] (-> clipboard (.getContents nil) (.getTransferData (DataFla...
ef3fa07d45f8183e1fb2a01635135b1590769c59f9b562f48c03c9bcb44d450b
elbrujohalcon/wxhnotepad
Step2.hs
| Like but with Open / Save / Save As ... support module Step2 (step2) where import Graphics.UI.WX import Graphics.UI.WXCore -- | We create a record for the context to simplify parameter passing in al event -- handlers. It seems pretty useless now, but you'll see this purpose later data GUIContext = GUICtx { gu...
null
https://raw.githubusercontent.com/elbrujohalcon/wxhnotepad/76c1f619d39d36e83ee808b5209f37eda45e0694/src/Step2.hs
haskell
| We create a record for the context to simplify parameter passing in al event handlers. It seems pretty useless now, but you'll see this purpose later ^ The path of the current file We define the context to use it on every event handling function We associate the corresponding action to each menuItem the acti...
| Like but with Open / Save / Save As ... support module Step2 (step2) where import Graphics.UI.WX import Graphics.UI.WXCore data GUIContext = GUICtx { guiWin :: Frame (), guiEditor :: TextCtrl (), } step2 :: IO () step2 = do win <- frame [text ...
c31e0cb9e4cff487187cdd5ca0e1059a54c32f23ae47bdd6ee18a7ffe2cb5ede
osener/markup.rocks
Formats.hs
module Formats where import Data.Map (Map) import qualified Data.Map as Map import Text.Pandoc import Text.Pandoc.Error (PandocError) sourceFormats :: Map String String sourceFormats = Map.fromList [("dbk","DocBook") ,("html","HTML") ,("latex","LaTeX") ...
null
https://raw.githubusercontent.com/osener/markup.rocks/02bb050df6b1e4c3a84f9a6aeaad8217215a2b64/src/Formats.hs
haskell
module Formats where import Data.Map (Map) import qualified Data.Map as Map import Text.Pandoc import Text.Pandoc.Error (PandocError) sourceFormats :: Map String String sourceFormats = Map.fromList [("dbk","DocBook") ,("html","HTML") ,("latex","LaTeX") ...
41b4d1031e9ffbc883f8c3887c19644f68fc84483c34c4cf693bd6d873ba858a
xsc/claro
multi.clj
(ns claro.engine.multi (:require [claro.engine.core :as engine] [claro.runtime.impl :as impl])) ;; ## Ordered Resolution (defn- conj-and-recur [impl state result] (->> (-> state (update :result conj! result) (update :resolvables next)) (impl/recur impl))) (defn- resolve...
null
https://raw.githubusercontent.com/xsc/claro/16db75b7a775a14f3b656362e8ee4f65dd8b0d49/src/claro/engine/multi.clj
clojure
## Ordered Resolution ## Builder
(ns claro.engine.multi (:require [claro.engine.core :as engine] [claro.runtime.impl :as impl])) (defn- conj-and-recur [impl state result] (->> (-> state (update :result conj! result) (update :resolvables next)) (impl/recur impl))) (defn- resolve-next [{:keys [impl eng...
9872d853c20bc1de7d9656417c822204dd0afbf0b5d5cd4de7a943a3648da33c
roddyyaga/quests
utils.ml
[ String.escaped ] but not escaping newlines let escaped_literal_newlines s = let lines = String.split_on_char '\n' s in String.concat "\n" (List.map String.escaped lines) let data_to_body data = data |> List.map (fun (key, value) -> (key, [ value ])) |> Uri.encoded_of_query |> Cohttp_lwt.Body.of_string l...
null
https://raw.githubusercontent.com/roddyyaga/quests/72395040b5da1f02a6fe3a0fe0d1e96e9f8d50cd/lib/utils.ml
ocaml
[ String.escaped ] but not escaping newlines let escaped_literal_newlines s = let lines = String.split_on_char '\n' s in String.concat "\n" (List.map String.escaped lines) let data_to_body data = data |> List.map (fun (key, value) -> (key, [ value ])) |> Uri.encoded_of_query |> Cohttp_lwt.Body.of_string l...
fb369434c588e2eecdb9bb2b8e5b10f6b17b44f4953da00f9806ba8e625f92ca
Clozure/ccl
asdf-browser.lisp
;;; ;;; Copyright 2009 Clozure Associates ;;; Licensed under the Apache License , Version 2.0 ( the " License " ) ; ;;; you may not use this file except in compliance with the License. ;;; You may obtain a copy of the License at ;;; ;;; -2.0 ;;; ;;; Unless required by applicable law or agreed to in writing, softw...
null
https://raw.githubusercontent.com/Clozure/ccl/6c1a9458f7a5437b73ec227e989aa5b825f32fd3/cocoa-ide/asdf-browser.lisp
lisp
Copyright 2009 Clozure Associates you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for...
distributed under the License is distributed on an " AS IS " BASIS , (in-package "GUI") This file contains a project browser for the CCL IDE . A " project " is project name is the name of the .asd file . However , if the .asd has been • handle # -ccl sections in .asd (eval-when (:compile-toplevel :load-tople...
0045cfe08698642627a9ae5adaa5752d15798320bfe948f4500e7d98472ea580
SamirTalwar/advent-of-code
AOC_02_2.hs
{-# OPTIONS -Wall #-} # LANGUAGE NamedFieldPuns # import Helpers.Parse import Text.Parsec data Command = Forward Int | Down Int | Up Int deriving (Show) data Position = Position {horizontal :: Int, depth :: Int, aim :: Int} deriving (Show) main :: IO () main = do commands <- parseInput let Position {horizon...
null
https://raw.githubusercontent.com/SamirTalwar/advent-of-code/bd8ae69e1c86d4af02e96192fc297239b0204ffa/2021/AOC_02_2.hs
haskell
# OPTIONS -Wall #
# LANGUAGE NamedFieldPuns # import Helpers.Parse import Text.Parsec data Command = Forward Int | Down Int | Up Int deriving (Show) data Position = Position {horizontal :: Int, depth :: Int, aim :: Int} deriving (Show) main :: IO () main = do commands <- parseInput let Position {horizontal, depth} = foldl mo...
5e62203ca771398f6f1b046e8a84403152530c0d9ac9cdca15fda9e0f34c6132
LukaKurnjek/plutus-pioneer-program-book
Homework2.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE FlexibleContexts #-} # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # # L...
null
https://raw.githubusercontent.com/LukaKurnjek/plutus-pioneer-program-book/0e69b2719dc7412a412a546825a002be5209e733/code/week02/src/Week02/Homework2.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE DeriveAnyClass # # LANGUAGE FlexibleContexts # # LANGUAGE OverloadedStrings # # LANGUAGE TypeOperators # Implement me!
# LANGUAGE DeriveGeneric # # LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # OPTIONS_GHC -fno - warn - unused - imports # module Week02.Homework2 where import Control.Monad ...
8404ae47346abc270de5043b8779ba5164815ae644eb5cfc0d29cde0ca0929ca
mstksg/inCode
MaybeGame.hs
module MaybeGame where -- A simple game using Maybe to keep track of dying. -- -- From the article: -- Let's say we are making a game where you can lose health by being -- hit or gain health by picking up powerups. We want to calculate -- the final health at the end of the game. It seems a bit easy: j...
null
https://raw.githubusercontent.com/mstksg/inCode/e1f80a3dfd83eaa2b817dc922fd7f331cd1ece8a/code-samples/monad-plus/MaybeGame.hs
haskell
A simple game using Maybe to keep track of dying. From the article: Let's say we are making a game where you can lose health by being hit or gain health by picking up powerups. We want to calculate the final health at the end of the game. It seems a bit easy: just add up all the losses and ...
module MaybeGame where λ : setHealth 2 > > = hit > > = powerup > > = hit > > = powerup > > = powerup λ : setHealth 2 > > = hit > > = powerup > > = hit > > = hit > > = powerup λ : setHealth 10 > > = powerup > > die > > = powerup > > = powerup import Control.Monad (guard, mzero) die :: Maybe Int setHealth :: In...
8d9e6cfafbc90242877df4c8a2cd26a254ecb682e1a5b66d059cf95a0321a8b2
mfoemmel/erlang-otp
wxScrolledWindow.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/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/wx/src/gen/wxScrolledWindow.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(wxScrolledWindow). -include("wxe....
b7a7c4abae8ed9e8eac3bf9a041b0d2a1fb108fcacca8690ea03df505c79150a
mnieper/unsyntax
error.scm
Copyright © ( 2020 ) . ;; This file is part of unsyntax. ;; 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...
null
https://raw.githubusercontent.com/mnieper/unsyntax/cd12891805a93229255ff0f2c46cf0e2b5316c7c/src/unsyntax/error.scm
scheme
This file is part of unsyntax. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files including without limitation the rights to use, copy, modify, merge, subject to the following conditions: The above copyright notice and this permission n...
Copyright © ( 2020 ) . ( the " Software " ) , to deal in the Software without restriction , publish , distribute , sublicense , and/or sell copies of the Software , and to permit persons to whom the Software is furnished to do so , portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITH...
225fec305f003136d827de8b6f22b4cfe1fada44270ab81ae26dc8008b1634b4
smart-chain-fr/tokenomia
ChildAddressRef.hs
module Tokenomia.TokenDistribution.Wallet.ChildAddress.ChildAddressRef ( maxChildAddressIndexRequired , defaultFeeAddressRef , defaultCollateralAddressRef ) where import Data.Composition ( (.:) ) import Data.List.NonEmpty ( NonEmpty ) import Tokenomia.Wallet.Type ...
null
https://raw.githubusercontent.com/smart-chain-fr/tokenomia/eacde8e851a2e107c8a4a09ffe85cabaa4f52953/src/Tokenomia/TokenDistribution/Wallet/ChildAddress/ChildAddressRef.hs
haskell
module Tokenomia.TokenDistribution.Wallet.ChildAddress.ChildAddressRef ( maxChildAddressIndexRequired , defaultFeeAddressRef , defaultCollateralAddressRef ) where import Data.Composition ( (.:) ) import Data.List.NonEmpty ( NonEmpty ) import Tokenomia.Wallet.Type ...
4f4b73672d84eadd129c9175248cf118caeef81d5205a19d87f309751dea3361
jship/opentelemetry-haskell
Common_Fields.hs
{- This file was auto-generated from opentelemetry/proto/common/v1/common.proto by the proto-lens-protoc program. -} # LANGUAGE ScopedTypeVariables , DataKinds , TypeFamilies , UndecidableInstances , GeneralizedNewtypeDeriving , MultiParamTypeClasses , FlexibleContexts , FlexibleInstances , PatternSynonyms , MagicHash ...
null
https://raw.githubusercontent.com/jship/opentelemetry-haskell/468b7df49226bb6a478180300dab8d1a214c213f/otel-sdk-otlp-bindings/library/OTel/SDK/OTLP/Bindings/Common/V1/Common_Fields.hs
haskell
This file was auto-generated from opentelemetry/proto/common/v1/common.proto by the proto-lens-protoc program. # OPTIONS_GHC -Wno-unused-imports# # OPTIONS_GHC -Wno-duplicate-exports#
# LANGUAGE ScopedTypeVariables , DataKinds , TypeFamilies , UndecidableInstances , GeneralizedNewtypeDeriving , MultiParamTypeClasses , FlexibleContexts , FlexibleInstances , PatternSynonyms , MagicHash , NoImplicitPrelude , DataKinds , BangPatterns , TypeApplications , OverloadedStrings , DerivingStrategies # # OPTION...
686c2cb7e18fe217046c47dfa5c5ff688bdc9c52388015107670671fd96d4eac
bradrn/brassica
BrassicaInterop.hs
# LANGUAGE LambdaCase # # LANGUAGE BlockArguments # # LANGUAGE ForeignFunctionInterface # module BrassicaInterop where import Data.IORef import Foreign.C hiding (newCString, peekCString) -- hide these so we don't accidentally use them import Foreign.StablePtr import qualified GHC.Foreign as ...
null
https://raw.githubusercontent.com/bradrn/brassica/068d413c302905b6cd737753c4d66c4e8ca248e4/gui/brassica-interop/src/BrassicaInterop.hs
haskell
hide these so we don't accidentally use them ^ changes ^ words ^ report rules applied? ^ input format ^ tokenisation mode ^ highlighting mode ^ MDF output mode ^ previous results ^ output (either wordlist or parse error) ^ paradigm ^ roots this does n't seem to do anything - keeping it here in case I event...
# LANGUAGE LambdaCase # # LANGUAGE BlockArguments # # LANGUAGE ForeignFunctionInterface # module BrassicaInterop where import Data.IORef import Foreign.StablePtr import qualified GHC.Foreign as GHC import GHC.IO.Encoding (utf8) import Brassica.SoundChange import Brassica.SoundChange.Fronten...
0dbf09b6f3b60a53c71d77c04f89c0f82ca8ba82e088e706f6c89a24817f557c
gethop-dev/hop-cli
cloudformation.clj
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this ;; file, You can obtain one at / (ns hop-cli.aws.api.cloudformation (:require [clojure.set :as set] [com.grzm.awyeah.client.api :as aws] [hop-cli.aws.a...
null
https://raw.githubusercontent.com/gethop-dev/hop-cli/37a74e293a739f18958e8c31afb1588bcc699ba9/src/hop_cli/aws/api/cloudformation.clj
clojure
file, You can obtain one at /
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this (ns hop-cli.aws.api.cloudformation (:require [clojure.set :as set] [com.grzm.awyeah.client.api :as aws] [hop-cli.aws.api.client :as aws.client])) (def...
f63e572d49dd32c1b3378216f2585336cb9e5d3a0d6d7595550d87d81f0b2d9c
poseidon-framework/poseidon-hs
EntitiesListSpec.hs
{-# LANGUAGE OverloadedStrings #-} module Poseidon.EntitiesListSpec (spec) where import Poseidon.EntitiesList import Poseidon.Package (PackageReadOptions (..), PoseidonPackage (..), defaultPackageReadOptions...
null
https://raw.githubusercontent.com/poseidon-framework/poseidon-hs/809afc1965fc6e7a7515647734ac3c29320a74b9/test/Poseidon/EntitiesListSpec.hs
haskell
# LANGUAGE OverloadedStrings # the following type annotations - annoyingly - are required because readEntitiesFromString is polymorphic, and even though it all returns Left, the compiler complains about ambiguous types. wrong space test simple extraction with specific syntax test output in case of unresolved dupli...
module Poseidon.EntitiesListSpec (spec) where import Poseidon.EntitiesList import Poseidon.Package (PackageReadOptions (..), PoseidonPackage (..), defaultPackageReadOptions, ...
3703b9340ca01e949d4d819f58824ddaa1b803ebcbc194f100bc8124657bef69
kunstmusik/score
performer_group.clj
(ns score.orchestra.performer-group "Functions for modeling Performer Groups (based on Steven Yi's Python Orchestral Composition Library).")
null
https://raw.githubusercontent.com/kunstmusik/score/87b532ec2e3e273f077be9bdd878427a25d0534c/src/main/score/orchestra/performer_group.clj
clojure
(ns score.orchestra.performer-group "Functions for modeling Performer Groups (based on Steven Yi's Python Orchestral Composition Library).")
961d14005dd9a0589945330abf083cf37803103639f892c857096b884b782405
typelead/eta
T5792.hs
# LANGUAGE DataKinds , TypeFamilies , UndecidableInstances # module T5792 where data T = TT type family Compare (m :: T) :: Ordering type instance Compare TT = Compare TT type Compare' a = Compare a
null
https://raw.githubusercontent.com/typelead/eta/97ee2251bbc52294efbf60fa4342ce6f52c0d25c/tests/suite/typecheck/compile/T5792.hs
haskell
# LANGUAGE DataKinds , TypeFamilies , UndecidableInstances # module T5792 where data T = TT type family Compare (m :: T) :: Ordering type instance Compare TT = Compare TT type Compare' a = Compare a
9528c079b9995e3250033f59ffab663b51e2606a603bde6b990e4dfb96a49fd7
mbenke/zpf2013
Mylens.hs
{-# LANGUAGE Rank2Types #-} module Utils.Lens where import Data.Functor type SimpleLens a b = forall f.(Functor f) => (b -> f b) -> (a -> f a) Functor f = > ( a->b ) - > ( a->b->a ) - > ( b->f b ) - > ( a->f a ) lens :: (a->b) -> (a->b->a) -> SimpleLens a b lens ab abb bfb a = abb a <$> bfb (ab a) newtype Get...
null
https://raw.githubusercontent.com/mbenke/zpf2013/85f32747e17f07a74e1c3cb064b1d6acaca3f2f0/Slides/92Lenses/Mylens.hs
haskell
# LANGUAGE Rank2Types # Getting :: b -> Getting b a got :: Getting b a -> b
module Utils.Lens where import Data.Functor type SimpleLens a b = forall f.(Functor f) => (b -> f b) -> (a -> f a) Functor f = > ( a->b ) - > ( a->b->a ) - > ( b->f b ) - > ( a->f a ) lens :: (a->b) -> (a->b->a) -> SimpleLens a b lens ab abb bfb a = abb a <$> bfb (ab a) newtype Getting b a = Getting { got :: ...
947de609350f00c487c680e86cf9b87ad471d87ec8875adb51b2b48b5b5329a0
burtonsamograd/med
find-definition.lisp
(in-package :med) (defvar *mark-stack* ()) (defun function-source-file (function-symbol) (let ((string (sixth (sys.int::function-pool-object (symbol-function function-symbol) 1)))) (when string (if (eql (char string 0) #\#) (read-from-string string) ; convert pathname ...
null
https://raw.githubusercontent.com/burtonsamograd/med/667c45032f60831447ad0eafd4d5c9a9748b4366/commands/find-definition.lisp
lisp
convert pathname
(in-package :med) (defvar *mark-stack* ()) (defun function-source-file (function-symbol) (let ((string (sixth (sys.int::function-pool-object (symbol-function function-symbol) 1)))) (when string (if (eql (char string 0) #\#) (pathname string))))) (defun function-top-level-...
f5f67ff0fee8a20a883823f5c78658c9ec379fbd3255f2c5010d4cc99d8905cc
keera-studios/keera-hails
CombinedEnvironment.hs
-- | The environment that contains both the view and the model. -- module CombinedEnvironment ( CEnv , module Exported ) where Generic libraries import qualified Hails.MVC.GenericCombinedEnvironment as GEnv import Hails.MVC.DefaultGtkEnvironment as Exported Internal libraries import Mode...
null
https://raw.githubusercontent.com/keera-studios/keera-hails/bf069e5aafc85a1f55fa119ae45a025a2bd4a3d0/keera-hails/templates/CombinedEnvironment.hs
haskell
| The environment that contains both the view and the model. The simplest definition: a view, a model, and a set of events
module CombinedEnvironment ( CEnv , module Exported ) where Generic libraries import qualified Hails.MVC.GenericCombinedEnvironment as GEnv import Hails.MVC.DefaultGtkEnvironment as Exported Internal libraries import Model.ReactiveModel.ModelEvents as Exported import Model...
f76eb93572be7f97d57851b0714f4e982d1652d7373149e7715704973fdb184d
sebsheep/elm2node
Module.hs
# OPTIONS_GHC -Wall # {-# LANGUAGE OverloadedStrings #-} module Parse.Module ( fromByteString , ProjectType(..) , isKernel , chompImports , chompImport ) where import qualified Data.ByteString as BS import qualified Data.Name as Name import qualified AST.Source as Src import qualified Elm.Compiler.Impo...
null
https://raw.githubusercontent.com/sebsheep/elm2node/602a64f48e39edcdfa6d99793cc2827b677d650d/compiler/src/Parse/Module.hs
haskell
# LANGUAGE OverloadedStrings # FROM BYTE STRING PROJECT TYPE CHECK MODULE FRESH LINES MODULE DOC COMMENT HEADER port module MyThing exposing (..) effect module MyThing where { command = MyCmd } exposing (..) default header { } , } } , } = = IMPORTS LISTING ( .. ) , ) ( ) ( .. )
# OPTIONS_GHC -Wall # module Parse.Module ( fromByteString , ProjectType(..) , isKernel , chompImports , chompImport ) where import qualified Data.ByteString as BS import qualified Data.Name as Name import qualified AST.Source as Src import qualified Elm.Compiler.Imports as Imports import qualified Elm...
e982982a94a6d2b292e39ddda36cfd0002bc2392b8f5ca28ceeee841bc7151ab
bhaskara/programmable-reinforcement-learning
condition-variable.lisp
(defpackage condition-variable (:documentation "Package for condition variables. Condition variables are a synchronization tool typically used to make a thread wait for some state that depends on another thread's actions. Condition variables are always associated with a process lock, and all condition variable oper...
null
https://raw.githubusercontent.com/bhaskara/programmable-reinforcement-learning/8afc98116a8f78163b3f86076498d84b3f596217/lisp/data-struct/condition-variable.lisp
lisp
exported functions Leave package
(defpackage condition-variable (:documentation "Package for condition variables. Condition variables are a synchronization tool typically used to make a thread wait for some state that depends on another thread's actions. Condition variables are always associated with a process lock, and all condition variable oper...
1c8472b3c63bc765d940a5761f2894c71b5d6a2b38a8a37d28800ed44a5f2572
EveryTian/Haskell-Codewars
adjacent-pairs-in-a-string.hs
-- -pairs-in-a-string module AdjacentPairs where import Data.List(group) countAdjacentPairs :: String -> Int countAdjacentPairs str = length $ filter (\ x -> length x > 1) ((group . words) str)
null
https://raw.githubusercontent.com/EveryTian/Haskell-Codewars/dc48d95c676ce1a59f697d07672acb6d4722893b/6kyu/adjacent-pairs-in-a-string.hs
haskell
-pairs-in-a-string
module AdjacentPairs where import Data.List(group) countAdjacentPairs :: String -> Int countAdjacentPairs str = length $ filter (\ x -> length x > 1) ((group . words) str)
cb4e9fef44961f3aa190e4ebd9b1337b17fbe45bdebd0cdba685194eac876e83
sicmutils/sicmutils
factorial.cljc
#_"SPDX-License-Identifier: GPL-3.0" (ns sicmutils.special.factorial "Namespace holding implementations of variations on the factorial function." (:require [sicmutils.generic :as g] [sicmutils.numbers] #?@(:cljs [[sicmutils.util :as u]]) [sicmutils.util.def :refer [defgeneric]] ...
null
https://raw.githubusercontent.com/sicmutils/sicmutils/f427fd073937faf62741fcdda6362f910ecda71f/src/sicmutils/special/factorial.cljc
clojure
## Falling and Rising Factorials The default implementation uses generic operations throughout, and requires that `n` be a native integral. [Wikipedia](#Connection_coefficients_and_identities) states that "the rising and falling factorials are well defined in any unital ring, and therefore x can be taken to be, f...
#_"SPDX-License-Identifier: GPL-3.0" (ns sicmutils.special.factorial "Namespace holding implementations of variations on the factorial function." (:require [sicmutils.generic :as g] [sicmutils.numbers] #?@(:cljs [[sicmutils.util :as u]]) [sicmutils.util.def :refer [defgeneric]] ...
f940d755b4b4f8f8e05c7daa1db8de61c2cc4437fcc08252f5d4f37559d89467
shiguredo/dorayaki
dora_datetime_tests.erl
-module(dora_datetime_tests). -include_lib("eunit/include/eunit.hrl"). -include("dora_datetime.hrl"). -import(dora_datetime, [timestamp/2, year/1, month/1, day/1, hour/1, minute/1, second/1, micro_second/1, tz_offset/1, iso8601/1, iso8601_no_mic...
null
https://raw.githubusercontent.com/shiguredo/dorayaki/f98144a9fd8c32fc4d6cd250178d2ea846c27097/test/dora_datetime_tests.erl
erlang
-module(dora_datetime_tests). -include_lib("eunit/include/eunit.hrl"). -include("dora_datetime.hrl"). -import(dora_datetime, [timestamp/2, year/1, month/1, day/1, hour/1, minute/1, second/1, micro_second/1, tz_offset/1, iso8601/1, iso8601_no_mic...
37a4a0e0dbb07bc2d2649836285cdd8e650141f22652ab17be1c9fee9c3996ab
kim/opentracing
Types.hs
# LANGUAGE TypeFamilies , DeriveGeneric , TypeApplications , OverloadedLists , OverloadedStrings # # OPTIONS_GHC -fno - warn - unused - imports -fno - warn - name - shadowing -fno - warn - unused - matches # module Zipkincore.Types where import qualified Prelude import qualified Control.Applicative import qualified C...
null
https://raw.githubusercontent.com/kim/opentracing/2862283bb862875bf92774295a18812c2719c5aa/opentracing-zipkin-v1/gen-src/Zipkincore/Types.hs
haskell
# LANGUAGE TypeFamilies , DeriveGeneric , TypeApplications , OverloadedLists , OverloadedStrings # # OPTIONS_GHC -fno - warn - unused - imports -fno - warn - name - shadowing -fno - warn - unused - matches # module Zipkincore.Types where import qualified Prelude import qualified Control.Applicative import qualified C...
e8c2a392bec04afc9ba6961102bd1836310045b9600b679907d1df0306d24aa9
nasa/Common-Metadata-Repository
admin.clj
(ns ^:system cmr.opendap.tests.system.app.admin "Note: this namespace is exclusively for system tests; all tests defined here will use one or more system test fixtures. Definition used for system tests: * #System_testing" (:require [clojure.test :refer :all] [cmr.http.kit.request :as request] [cm...
null
https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/63001cf021d32d61030b1dcadd8b253e4a221662/other/cmr-exchange/service-bridge/test/cmr/opendap/tests/system/app/admin.clj
clojure
all tests defined
(ns ^:system cmr.opendap.tests.system.app.admin here will use one or more system test fixtures. Definition used for system tests: * #System_testing" (:require [clojure.test :refer :all] [cmr.http.kit.request :as request] [cmr.opendap.testing.system :as test-system] [cmr.opendap.testing.util :as...
2ce665a87dda5bf94ac74916cfb6aa053ac52e19a8ec090e5a45d3c2416e316c
greglook/cljstyle
config.clj
(ns cljstyle.task.config "Task implementation for `cljstyle config`." (:require [cljstyle.task.util :as u] [clojure.pprint :as pp]) (:import java.io.File)) (defn print-usage "Print help for the `config` command." [] (println "Usage: cljstyle [options] config [path]") (newline) (println "Sh...
null
https://raw.githubusercontent.com/greglook/cljstyle/1f58e2e7af4c193aa77ad0695f6c2b9ac2c5c5ec/src/cljstyle/task/config.clj
clojure
(ns cljstyle.task.config "Task implementation for `cljstyle config`." (:require [cljstyle.task.util :as u] [clojure.pprint :as pp]) (:import java.io.File)) (defn print-usage "Print help for the `config` command." [] (println "Usage: cljstyle [options] config [path]") (newline) (println "Sh...
cb1d5cdad378d2c174d8a255ef4443b7c23bac6ba0b0b7b0c24436325169c443
mstksg/hamilton
Examples.hs
# LANGUAGE CPP # {-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveFoldable #-} {-# LANGUAGE DeriveFunctor #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances ...
null
https://raw.githubusercontent.com/mstksg/hamilton/3ba45860466a25de2933c61dd6f3eefa84725c29/app/Examples.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE DeriveFoldable # # LANGUAGE DeriveFunctor # # LANGUAGE FlexibleContexts # # LANGUAGE GADTs # # LANGUAGE LambdaCase ...
# LANGUAGE CPP # # LANGUAGE FlexibleInstances # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE TupleSections # # LANGUAGE TypeApplications ...
1b46dfffe72a207d8a6ce57ab9d372b4db9ea573161c8c293d791b4b92fb9d73
GaloisInc/semmc
Forms.hs
# LANGUAGE DataKinds # # LANGUAGE TypeOperators # # LANGUAGE ImplicitParams # module SemMC.Architecture.PPC.Base.Core.Forms ( vectorBV, xlformcr, mdform4, mdsform4, mform5i, mform5r, xform2, xform2f, dform, dformu, iform, aform, aform4, vxform3, vxform3u, vxform2s, vxform2, vaform, ...
null
https://raw.githubusercontent.com/GaloisInc/semmc/4dc4439720b3b0de8812a68f8156dc89da76da57/semmc-ppc/src/SemMC/Architecture/PPC/Base/Core/Forms.hs
haskell
^ A parameter used as an input (automatically declared as input) ^ Any other parameter | D-form instructions where the operand is allowed to contain r0 | The unsigned immediate version of the dform It is the job of each semantics definition to extract the necessary parts of the registers.
# LANGUAGE DataKinds # # LANGUAGE TypeOperators # # LANGUAGE ImplicitParams # module SemMC.Architecture.PPC.Base.Core.Forms ( vectorBV, xlformcr, mdform4, mdsform4, mform5i, mform5r, xform2, xform2f, dform, dformu, iform, aform, aform4, vxform3, vxform3u, vxform2s, vxform2, vaform, ...
f9eefc0dd4c6c7b5660e181f0228148f2f3fa16520a39301eedc75d3ca086544
hasktorch/hasktorch
ParseDeclarations.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE OverloadedStrings #-} module ParseDeclarations where import Data.Aeson.Types (defaultOptions, fieldLabelModifier, genericParseJSON) import Data.Yaml import GHC.Generics import Text . Show . Prettyprint ( prettyPrint ) import qualified ParseFunc...
null
https://raw.githubusercontent.com/hasktorch/hasktorch/c34996b0a401a5b1b98b5774e892fde88adaa079/codegen/src/ParseDeclarations.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE OverloadedStrings # Declarations.yaml A example-- , method_prefix_derived :: String , buffers :: [String] decodeAndPrint :: String -> IO () decodeAndPrint fileName = do prettyPrint file
# LANGUAGE DeriveGeneric # module ParseDeclarations where import Data.Aeson.Types (defaultOptions, fieldLabelModifier, genericParseJSON) import Data.Yaml import GHC.Generics import Text . Show . Prettyprint ( prettyPrint ) import qualified ParseFunctionSig as S - name : _ th_set _ schema_string : '' metho...
0ab5315d4c12da9112ff90bc0389314993ae5b85e108fa6ebe7f06ac58128290
sile/taomp-sbcl
atomic-stamped-reference.lisp
(defpackage atomic-stamped-reference (:use :common-lisp) (:shadow :common-lisp get set) (:nicknames asr) (:export make get set compare-and-set asr)) (in-package :atomic-stamped-reference) (defstruct ref (x t :type t) (stamp 0 :type fixnum)) (defstruct asr (re...
null
https://raw.githubusercontent.com/sile/taomp-sbcl/6216891346160e613fae3bb73491bc8c8fbad1c4/atomic-stamped-reference.lisp
lisp
(defpackage atomic-stamped-reference (:use :common-lisp) (:shadow :common-lisp get set) (:nicknames asr) (:export make get set compare-and-set asr)) (in-package :atomic-stamped-reference) (defstruct ref (x t :type t) (stamp 0 :type fixnum)) (defstruct asr (re...
aaeee9a41e60848696c0e6ac41c55129f2d64153d27e3d39ae525242ee2c3488
kupl/LearnML
original.ml
let rec iter ((n : int), (f : int -> int)) : int -> int = if n = 0 then f else fun (x : int) -> iter (n - 1, f) (f x) let (_ : int) = iter (2, fun (x : int) -> 2 + x) 0
null
https://raw.githubusercontent.com/kupl/LearnML/c98ef2b95ef67e657b8158a2c504330e9cfb7700/result/cafe2/iter/sub35/original.ml
ocaml
let rec iter ((n : int), (f : int -> int)) : int -> int = if n = 0 then f else fun (x : int) -> iter (n - 1, f) (f x) let (_ : int) = iter (2, fun (x : int) -> 2 + x) 0
503f841547f7a5c5978bf3801ae18b3bb734693a47d074cfea17e9efb2dfffa6
facebook/flow
dirent.mli
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/flow/256738749f456853e8702ac631330f40be3502b6/src/common/dirent/dirent.mli
ocaml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
7962c43217e57ef13f29d868df80f7905ef31eeb38b2e68e9e905d7b8e76799f
jimcrayne/jhc
tc163.hs
{-# OPTIONS -fglasgow-exts #-} This one killed GHC 5.05 and earlier -- The problem was in a newtype with a record selector, with a polymorphic argument type . MkId generated a bogus selector -- function module ShouldCompile where type M3 a = forall r. (forall b. M3' b -> (b -> M3' a) -> r) -> r newtype M3' a ...
null
https://raw.githubusercontent.com/jimcrayne/jhc/1ff035af3d697f9175f8761c8d08edbffde03b4e/regress/tests/1_typecheck/2_pass/ghc/tc163.hs
haskell
# OPTIONS -fglasgow-exts # The problem was in a newtype with a record selector, with function If we simply do a subsumption check of this against alpha -> Int where alpha is the type inferred for (\bm k1 ...) this won't work. everthing works fine. Very very delicate. -------------- A more complex case -----...
This one killed GHC 5.05 and earlier a polymorphic argument type . MkId generated a bogus selector module ShouldCompile where type M3 a = forall r. (forall b. M3' b -> (b -> M3' a) -> r) -> r newtype M3' a = M3' { mkM3' :: M3 a } flop :: forall a b. M3' b -> (b -> M3' a) -> Int flop = \m' k -> mkM3' m' (\bm ...
5e04d3ecb2527180d2a4c8e7dd61e0cfe14155c35872d3ac1b113069909b177a
ConsumerDataStandardsAustralia/validation-prototype
CustomerResponse.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE LambdaCase #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # {-# LANGUAGE RankNTypes #-} # LANGUAGE TypeFamilies ...
null
https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/validation-prototype/ff63338b77339ee49fa3e0be5bb9d7f74e50c28b/consumer-data-au-api-types/src/Web/ConsumerData/Au/Api/Types/Common/Customer/Data/CustomerResponse.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE GADTs # # LANGUAGE LambdaCase # # LANGUAGE RankNTypes # # LANGUAGE TypeOperators #
# LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # # LANGUAGE TypeFamilies # module Web.ConsumerData.Au.Api.Types.Common.Customer.Data.CustomerResponse ( module Web.ConsumerData.Au.Api.Types.Common.Customer.Data.CustomerResponse , module Organisation , module Person ) where import...
c2c1c89224920fe61aad64f54b5082da08305180457f7f44b7dfcc25ef54cd7c
titola/incudine
node-out.lisp
(in-package :incudine-tests) (enable-sharp-square-bracket-syntax) (dsp! node-out-test-1 (freq amp pos) (foreach-channel (node-out (pan2 (sine freq amp 0) pos)))) (dsp! node-out-test-2 (freq amp pos) (initialize (assert (eq *node-enable-gain-p* t))) (foreach-channel (cout (* (the sample (node-gain (dsp-node...
null
https://raw.githubusercontent.com/titola/incudine/325174a54a540f4daa67bcbb29780073c35b7b80/tests/vug/node-out.lisp
lisp
(in-package :incudine-tests) (enable-sharp-square-bracket-syntax) (dsp! node-out-test-1 (freq amp pos) (foreach-channel (node-out (pan2 (sine freq amp 0) pos)))) (dsp! node-out-test-2 (freq amp pos) (initialize (assert (eq *node-enable-gain-p* t))) (foreach-channel (cout (* (the sample (node-gain (dsp-node...
fbb2d2c8cfea22ad85f85e95e900bdbca80b7478e100e1bea88028b425ccbaf9
ndmitchell/supero
rfib.hs
! ! ! the ultra - notorious " nfib 30 " does w/ Floats -- module Main (main) where import System nfib :: Double -> Double nfib n = if n <= 1 then 1 else nfib (n-1) + nfib (n-2) + 1 root x = nfib x #if MAIN main = print $ root 30 ltEqDouble'2 = (<=) :: Double -> Double -> Bool addDouble'2 = (+) :: Double -> Doubl...
null
https://raw.githubusercontent.com/ndmitchell/supero/a8b16ea90862e2c021bb139d7a7e9a83700b43b2/supero3/samples/nofib/rfib.hs
haskell
! ! ! the ultra - notorious " nfib 30 " does w/ Floats module Main (main) where import System nfib :: Double -> Double nfib n = if n <= 1 then 1 else nfib (n-1) + nfib (n-2) + 1 root x = nfib x #if MAIN main = print $ root 30 ltEqDouble'2 = (<=) :: Double -> Double -> Bool addDouble'2 = (+) :: Double -> Double -...
e3e34e27bc22f8fa5e25a647e51fa82a9262efa019cbd887c182d3bbfae32138
parapluu/Concuerror
erlang_maps.erl
-module(erlang_maps). -compile(export_all). scenarios() -> [ maps_fold ]. maps_fold() -> maps:fold(fun(_,_,Acc) -> Acc end, ok, #{}).
null
https://raw.githubusercontent.com/parapluu/Concuerror/152a5ccee0b6e97d8c3329c2167166435329d261/tests/suites/erlang_tests/src/erlang_maps.erl
erlang
-module(erlang_maps). -compile(export_all). scenarios() -> [ maps_fold ]. maps_fold() -> maps:fold(fun(_,_,Acc) -> Acc end, ok, #{}).
524d3cc8d4316bebb020684bf9ff01d25b895021d31d4b26d1dcea5138799c04
whitequark/ocaml-m17n
m17n_util.mli
* [ gen_of_lexbuf lexbuf ] returns a generator that uses [ lexbuf ] 's refill function and returns a sequence of [ chunk , start , len ] tuples containing the data extracted from [ lexbuf ] . refill function and returns a sequence of [chunk, start, len] tuples containing the data extracted from [lex...
null
https://raw.githubusercontent.com/whitequark/ocaml-m17n/adc9db47f19cf4a0e5b2d7d1e80e832dc1cd8ab7/src/m17n_util.mli
ocaml
* [ gen_of_lexbuf lexbuf ] returns a generator that uses [ lexbuf ] 's refill function and returns a sequence of [ chunk , start , len ] tuples containing the data extracted from [ lexbuf ] . refill function and returns a sequence of [chunk, start, len] tuples containing the data extracted from [lex...
1e5379137f25673c148b59e40155d2a29e91ceadaed85a699ef20a8dd1958b48
mirage/ocaml-cohttp
bench.ml
module Command = Core.Command module Staged = Core.Staged open Core_bench let header_names = [ "Accept"; "Accept-Encoding"; "Accept-Language"; "Cache-Control"; "Connection"; "Host"; "If-Modified-Since"; "If-None-Match"; "Origin"; "Referer"; "Sec-Fetch-Dest"; "Sec-Fetch...
null
https://raw.githubusercontent.com/mirage/ocaml-cohttp/c4e7da95a44e072f1e43e6b3605f599c29002ed5/cohttp-bench/bench.ml
ocaml
module Command = Core.Command module Staged = Core.Staged open Core_bench let header_names = [ "Accept"; "Accept-Encoding"; "Accept-Language"; "Cache-Control"; "Connection"; "Host"; "If-Modified-Since"; "If-None-Match"; "Origin"; "Referer"; "Sec-Fetch-Dest"; "Sec-Fetch...
2f8eb0602ad572e6b34f666ebf334e4e03251f3fd5650b7bc9dc61f7d9e3a16a
grin-compiler/ghc-wpc-sample-programs
CmdOptions.hs
# LANGUAGE CPP # | Module : . CmdOptions Description : A parser for the CmdOptions for the executable . License : : The Idris Community . Module : Idris.CmdOptions Description : A parser for the CmdOptions for the Idris executable. License : BSD3 Maintainer : The Idris Community. -} ...
null
https://raw.githubusercontent.com/grin-compiler/ghc-wpc-sample-programs/0e3a9b8b7cc3fa0da7c77fb7588dd4830fb087f7/idris-1.3.3/src/Idris/CmdOptions.hs
haskell
# LANGUAGE Arrows # IDE Mode Specific Flags Client flags Logging Flags Turn off things <|> flag' TypeCase (long "typecase") Show things Package commands Interactive Editing Flags Misc options Optimisation Levels Colour Options
# LANGUAGE CPP # | Module : . CmdOptions Description : A parser for the CmdOptions for the executable . License : : The Idris Community . Module : Idris.CmdOptions Description : A parser for the CmdOptions for the Idris executable. License : BSD3 Maintainer : The Idris Community. -} ...
7c53df73c0675143fe2fe65b974c4f75856becfcd6e82b02c03a83e60527f775
yzh44yzh/cat_traveler
ct_handler_api.erl
-module(ct_handler_api). -behaviour(cowboy_handler). -export([init/2]). -include("cat_traveler_types.hrl"). -type method() :: binary(). -type path() :: binary(). -type status_code() :: non_neg_integer(). %%% cowboy_handler behaviour -spec init(cowboy_req:req(), no_state) -> {ok, cowboy_req:req(), no_state}. init(...
null
https://raw.githubusercontent.com/yzh44yzh/cat_traveler/9f771bec96458cc24bfa123c6d01c6edd52dd5ba/system.marfa/src/http_api/ct_handler_api.erl
erlang
cowboy_handler behaviour Handle Inner Functions
-module(ct_handler_api). -behaviour(cowboy_handler). -export([init/2]). -include("cat_traveler_types.hrl"). -type method() :: binary(). -type path() :: binary(). -type status_code() :: non_neg_integer(). -spec init(cowboy_req:req(), no_state) -> {ok, cowboy_req:req(), no_state}. init(#{method := Method, path := P...
f496c560706dd18b61d8ad04ae29b385565c570fcad62ea93dcd354707c403d0
facebookarchive/duckling_old
finance.clj
( {} "$10" "10$" "ti dollar" (money 10 "$") ;"under $15" ;"no more than 15$" ;"no greater than 15$" " less than fifteen dollars " ( money 15 " $ " " < " ) "ti øre" (money 10 "øre") "$10.000" "10K$" "$10k" (money 10000 "$") "USD1,23" (money 1.23 "USD") "10kroner" "10kr" "ti kroner" "10 NOK" (money 10 "NOK") "2 k...
null
https://raw.githubusercontent.com/facebookarchive/duckling_old/bf5bb9758c36313b56e136a28ba401696eeff10b/resources/languages/nb/corpus/finance.clj
clojure
"under $15" "no more than 15$" "no greater than 15$"
( {} "$10" "10$" "ti dollar" (money 10 "$") " less than fifteen dollars " ( money 15 " $ " " < " ) "ti øre" (money 10 "øre") "$10.000" "10K$" "$10k" (money 10000 "$") "USD1,23" (money 1.23 "USD") "10kroner" "10kr" "ti kroner" "10 NOK" (money 10 "NOK") "2 kroner og 23 øre" "to kroner 23 øre" "to kroner og 23 øre...
43d23044cee3e592b35f11089675c99ecd8fd1a5ef91209306167a01179d8835
JamesLavin/ElixirZone
safe6.erl
-module(safe6). -export([start/0, counter_loop/1, start_counter_loop/0, backup_loop/1, create_or_update_backup/2, create_backups/0, create_backup_unless_exists/1]). -num_backups(2). start_counter_loop() -> backup1 ! {state_request, self()}, receive {current_state, State} -> counter_loop(State)...
null
https://raw.githubusercontent.com/JamesLavin/ElixirZone/c4f7ef9a21762462e5bd2a95c6d9df6cf5f671d4/Erlang_Fundamentals/Erlang103/failure_recovery/safe6.erl
erlang
create a cache/backup process to hold state for fault-recovery
-module(safe6). -export([start/0, counter_loop/1, start_counter_loop/0, backup_loop/1, create_or_update_backup/2, create_backups/0, create_backup_unless_exists/1]). -num_backups(2). start_counter_loop() -> backup1 ! {state_request, self()}, receive {current_state, State} -> counter_loop(State)...
77d0953f7d60652544939ea9ce31397e9603dadf7a5a0e6cd8a9828ddc50748d
ocaml-multicore/reagents
channel.mli
* Copyright ( c ) 2015 , < > * Copyright ( c ) 2015 , < > * * 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 S...
null
https://raw.githubusercontent.com/ocaml-multicore/reagents/6721db78b21028c807fb13d0af0aaf9407c662b5/lib/channel.mli
ocaml
* Copyright ( c ) 2015 , < > * Copyright ( c ) 2015 , < > * * 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 S...
b61486dae300b8e4cd2cc998fccbb0206649115fc57c771f486272f8558b6725
thesis/shale
resources.clj
(ns shale.test.resources (:require [clojure.test :refer :all] [shale.resources :refer [parse-request-data]] [schema.core :as s])) (deftest test-parse-request-data (testing "parse-request-data" (testing "ok" (let [context {:request {:request-method :post ...
null
https://raw.githubusercontent.com/thesis/shale/84180532e46ee5d9ee0218138da04ea035bcf7d2/test/shale/test/resources.clj
clojure
(ns shale.test.resources (:require [clojure.test :refer :all] [shale.resources :refer [parse-request-data]] [schema.core :as s])) (deftest test-parse-request-data (testing "parse-request-data" (testing "ok" (let [context {:request {:request-method :post ...
5051c82a34aba302a47ad42434fe383c2653c4a03a446b5d3b54a62f03b94ae9
marcoonroad/shared-secret
shared_secret.mli
module type IMessage = sig type t type a module Encoder : sig val encode : a -> t end;; module Decoder : sig val decode : t -> a end;; end;; module Message : functor (Type : sig type t end) ( ) -> (IMessage with type a := Type.t);; module type IToken = sig type t type revoker exception RevokedToken ...
null
https://raw.githubusercontent.com/marcoonroad/shared-secret/26cc28c17ecdefe3991f9f4a899af6ab645817e4/lib/shared_secret.mli
ocaml
END
module type IMessage = sig type t type a module Encoder : sig val encode : a -> t end;; module Decoder : sig val decode : t -> a end;; end;; module Message : functor (Type : sig type t end) ( ) -> (IMessage with type a := Type.t);; module type IToken = sig type t type revoker exception RevokedToken ...
f518cd4bae2a0bd3de7596b5b5e28c45c3e10a39fc2ef4985ef5362456bccf13
zadean/xqerl
app_UseCaseR31_SUITE.erl
-module('app_UseCaseR31_SUITE'). -include_lib("common_test/include/ct.hrl"). -export([ all/0, groups/0, suite/0 ]). -export([ init_per_suite/1, init_per_group/2, end_per_group/2, end_per_suite/1 ]). -export(['UseCaseR31-001'/1]). -export(['UseCaseR31-002'/1]). -export(['UseCaseR31-003'/1...
null
https://raw.githubusercontent.com/zadean/xqerl/1a94833e996435495922346010ce918b4b0717f2/test/app/app_UseCaseR31_SUITE.erl
erlang
-module('app_UseCaseR31_SUITE'). -include_lib("common_test/include/ct.hrl"). -export([ all/0, groups/0, suite/0 ]). -export([ init_per_suite/1, init_per_group/2, end_per_group/2, end_per_suite/1 ]). -export(['UseCaseR31-001'/1]). -export(['UseCaseR31-002'/1]). -export(['UseCaseR31-003'/1...
efe7dc2f40f2cebdb3204b703961933a2acc9bd91a134671079a8351d17c30cf
plumatic/grab-bag
exec_test.clj
(ns plumbing.parallel-test (:use clojure.test) (:require [plumbing.parallel :as parallel]) (:import [java.util.concurrent Executors]))
null
https://raw.githubusercontent.com/plumatic/grab-bag/a15e943322fbbf6f00790ce5614ba6f90de1a9b5/lib/plumbing/test/plumbing/exec_test.clj
clojure
(ns plumbing.parallel-test (:use clojure.test) (:require [plumbing.parallel :as parallel]) (:import [java.util.concurrent Executors]))
a16122e0c1ac48dc45677e33c9d346a1e8cc430d64f481a985a8ec4aee8e4a09
vii/teepeedee2
generic.lisp
(in-package #:tpd2.game) (defmyclass game game-over players other-listeners) (defmyclass player controller game waiting-for-input) (defgeneric player-full-state-to-ml (player)) (defgeneric game-drop-player (game player)) (defgeneric play (game)) (defgeneric game-finished (game &rest args)) (defgeneri...
null
https://raw.githubusercontent.com/vii/teepeedee2/a2ed78c51d782993591c3284562daeed3aba3d40/src/game/generic.lisp
lisp
(in-package #:tpd2.game) (defmyclass game game-over players other-listeners) (defmyclass player controller game waiting-for-input) (defgeneric player-full-state-to-ml (player)) (defgeneric game-drop-player (game player)) (defgeneric play (game)) (defgeneric game-finished (game &rest args)) (defgeneri...
a1dcc204622cb94e769cdfbf36483f403cf1d43634bc7277864192a3d23f8068
cwgoes/haskell-abci
Server.hs
module Network.ABCI.Server where import qualified Conduit as C import Control.Monad import qualified Data.Binary as B import qualified Data.Bits as B import qualified Data.ByteString as B import qualified Data.ByteString.Lazy as BL import qualified Data.Co...
null
https://raw.githubusercontent.com/cwgoes/haskell-abci/96c093ea6d5c2055da0e7021890fe2a71a9c46dc/src/Network/ABCI/Server.hs
haskell
module Network.ABCI.Server where import qualified Conduit as C import Control.Monad import qualified Data.Binary as B import qualified Data.Bits as B import qualified Data.ByteString as B import qualified Data.ByteString.Lazy as BL import qualified Data.Co...
660f30ed68255ff43efdd3a7186e57e0ecc7d200d45213e371d17faa03559eff
spurious/sagittarius-scheme-mirror
%3a136.scm
(import (except (rnrs) define-record-type) (sagittarius control) (srfi :136) (srfi :64)) (test-begin "SRFI-136: Extensible record types") ;; tests from sample implementation Copyright ( C ) ( 2016 ) . All Rights Reserved . ;; Permission is hereby granted, free of charge, to any person ;; obtaining a copy...
null
https://raw.githubusercontent.com/spurious/sagittarius-scheme-mirror/53f104188934109227c01b1e9a9af5312f9ce997/test/tests/srfi/%253a136.scm
scheme
tests from sample implementation Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies furnished to do so, subj...
(import (except (rnrs) define-record-type) (sagittarius control) (srfi :136) (srfi :64)) (test-begin "SRFI-136: Extensible record types") Copyright ( C ) ( 2016 ) . All Rights Reserved . files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the S...
5caa113cfa3210b9863da719f1ac20524c4eeb2f5f19c033c7b6ca59c5d823f4
wireapp/wire-server
Mem.hs
# OPTIONS_GHC -fplugin = Polysemy . Plugin # -- This file is part of the Wire Server implementation. -- Copyright ( C ) 2022 Wire Swiss GmbH < > -- -- This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Softwar...
null
https://raw.githubusercontent.com/wireapp/wire-server/a28c06f4096f35d5bdb4289b45abff2c51d354fa/services/spar/src/Spar/Sem/ScimUserTimesStore/Mem.hs
haskell
This file is part of the Wire Server implementation. This program is free software: you can redistribute it and/or modify it under later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTI...
# OPTIONS_GHC -fplugin = Polysemy . Plugin # Copyright ( C ) 2022 Wire Swiss GmbH < > the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any You should have received a copy of the GNU Affero General Public L...
53d9a651c8db3911ac8a1c1543180aa77746b11f1392b7d69323ddfa9229779b
rabbitmq/looking_glass
lg_flame.erl
%% Copyright (c) 2017-Present Pivotal Software, Inc. All rights reserved. %% This package , Looking , is double - licensed under the Mozilla Public License 1.1 ( " MPL " ) and the Apache License version 2 ( " ASL " ) . For the MPL , please see LICENSE - MPL - RabbitMQ . For the ASL , %% please see LICENSE-APACH...
null
https://raw.githubusercontent.com/rabbitmq/looking_glass/0ae891a8cee16603cdead0caf2d4c0b0800b22c9/src/lg_flame.erl
erlang
Copyright (c) 2017-Present Pivotal Software, Inc. All rights reserved. please see LICENSE-APACHE2. either express or implied. See the LICENSE file for specific language governing rights and limitations of this software. If you have any questions regarding licensing, please contact us at . per-process state ...
This package , Looking , is double - licensed under the Mozilla Public License 1.1 ( " MPL " ) and the Apache License version 2 ( " ASL " ) . For the MPL , please see LICENSE - MPL - RabbitMQ . For the ASL , This software is distributed on an " AS IS " basis , WITHOUT WARRANTY OF ANY KIND , -module(lg_flame)....
0d0c570f7e7fd182614a97c789533ee7d0b2ce9caf7dd7534df6f597f20037c0
slipstream/SlipStreamServer
configuration_lifecycle_test.clj
(ns com.sixsq.slipstream.ssclj.resources.configuration-lifecycle-test (:require [clojure.test :refer [deftest use-fixtures]] [com.sixsq.slipstream.ssclj.resources.configuration-lifecycle-test-utils :as test-utils] [com.sixsq.slipstream.ssclj.resources.lifecycle-test-utils :as ltu])) (use-fixtures :each l...
null
https://raw.githubusercontent.com/slipstream/SlipStreamServer/3ee5c516877699746c61c48fc72779fe3d4e4652/cimi/test/com/sixsq/slipstream/ssclj/resources/configuration_lifecycle_test.clj
clojure
see separate test namespaces for each configuration type
(ns com.sixsq.slipstream.ssclj.resources.configuration-lifecycle-test (:require [clojure.test :refer [deftest use-fixtures]] [com.sixsq.slipstream.ssclj.resources.configuration-lifecycle-test-utils :as test-utils] [com.sixsq.slipstream.ssclj.resources.lifecycle-test-utils :as ltu])) (use-fixtures :each l...
99b647f8a14dfb6709804649de29292027af82683912c649ec9cf6ab6f322a23
electric-sql/vaxine
vx_client.erl
%%------------------------------------------------------------------------------ %% @doc Main API module for vx_client application %% %%------------------------------------------------------------------------------ -module(vx_client). -export([ connect/3, start_replication/2, get_next_stream_bulk/...
null
https://raw.githubusercontent.com/electric-sql/vaxine/8e0df658068d57de616958985a6652196c253cfa/apps/vx_client/src/vx_client.erl
erlang
------------------------------------------------------------------------------ @doc Main API module for vx_client application ------------------------------------------------------------------------------ @doc Start WAL streaming replication. Replication can be started either from the position provided by Once th...
-module(vx_client). -export([ connect/3, start_replication/2, get_next_stream_bulk/2, stop_replication/1, stop/1 ]). -type wal_offset() :: term() | eof | 0. -type connection() :: pid(). -type address() :: inet:socket_address() | inet:hostname(). -spec connect(address(...
664214d49d367c1fe07b2c9be16a82db9b4821a1d4e006687b7ec7033062f10a
AdRoll/rebar3_format
inline_clause_bodies.erl
-module(inline_clause_bodies). -format #{paper => 60}. -compile(export_all). -callback f(inline, this, clause, _) -> [just | like]; (inline, this, other, much_much_larger_clause) -> [please | mister | rebar3 | formatter]. -spec f_cs(inline, this, clause, _) -> [just | like]; (inl...
null
https://raw.githubusercontent.com/AdRoll/rebar3_format/5ffb11341796173317ae094d4e165b85fad6aa19/test_app/after/src/inline_clause_bodies/inline_clause_bodies.erl
erlang
-module(inline_clause_bodies). -format #{paper => 60}. -compile(export_all). -callback f(inline, this, clause, _) -> [just | like]; (inline, this, other, much_much_larger_clause) -> [please | mister | rebar3 | formatter]. -spec f_cs(inline, this, clause, _) -> [just | like]; (inl...
d8746b6a0b88d4124a30da9b440d68a63582390c87a119662602349d30490f6b
EmileTrotignon/embedded_ocaml_templates
parser_aux.ml
type output_option = {slurp: bool; escape: bool; format: string option}
null
https://raw.githubusercontent.com/EmileTrotignon/embedded_ocaml_templates/2baf51d1b07db050fe535615018864e7e850ce38/src/common/parser_aux.ml
ocaml
type output_option = {slurp: bool; escape: bool; format: string option}
729ea65e602cf373e3270c60da75e86a02db640264ded66fb694a0adbac28a03
halcat0x15a/one
file.cljs
(ns one.file (:require [clojure.string :as string] [clojure.browser.dom :as dom] [clojure.browser.event :as event] [goog.events.EventType :as gevent-type] [one.core :as core] [one.core.editor :as editor] [one.system :as system])) (defn load [fil...
null
https://raw.githubusercontent.com/halcat0x15a/one/b37197ccf47c1dc1fb0e12f1cb2bee8491d07d80/src-cljs/one/file.cljs
clojure
(ns one.file (:require [clojure.string :as string] [clojure.browser.dom :as dom] [clojure.browser.event :as event] [goog.events.EventType :as gevent-type] [one.core :as core] [one.core.editor :as editor] [one.system :as system])) (defn load [fil...
ee6302c234c290a367846012fd21273357e6c41212a063b41b5dc6c5395ec43f
xu-hao/QueryArrow
ElasticSearch.hs
# LANGUAGE DeriveGeneric , TypeSynonymInstances , FlexibleInstances , MultiParamTypeClasses , GADTs # module QueryArrow.ElasticSearch.ElasticSearch where import Data.Char (toLower) import Data.Aeson import GHC.Generics import QueryArrow.DB.DB import QueryArrow.Config import QueryArrow.Plugin import QueryArrow.Data.He...
null
https://raw.githubusercontent.com/xu-hao/QueryArrow/4dd5b8a22c8ed2d24818de5b8bcaa9abc456ef0d/QueryArrow-db-elastic/src/QueryArrow/ElasticSearch/ElasticSearch.hs
haskell
# LANGUAGE DeriveGeneric , TypeSynonymInstances , FlexibleInstances , MultiParamTypeClasses , GADTs # module QueryArrow.ElasticSearch.ElasticSearch where import Data.Char (toLower) import Data.Aeson import GHC.Generics import QueryArrow.DB.DB import QueryArrow.Config import QueryArrow.Plugin import QueryArrow.Data.He...
525bf670223d1616b1ef37ed407755988cd9550687d7e23733dddb8f162a740a
imitator-model-checker/imitator
VariableInfo.mli
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * IMITATOR * * Laboratoire Spécification et Vérification ( ENS Cachan & CNRS , France ) * Université Paris 13 , LIPN , CNRS , France * Université de Lorraine ,...
null
https://raw.githubusercontent.com/imitator-model-checker/imitator/105408ae2bd8c3e3291f286e4d127defd492a58b/src/VariableInfo.mli
ocaml
Variable kind type represent a variable or a constant kind
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * IMITATOR * * Laboratoire Spécification et Vérification ( ENS Cachan & CNRS , France ) * Université Paris 13 , LIPN , CNRS , France * Université de Lorraine ,...
fe16cb6ddefd70e43a1034a94aa07f551d6d71aac7783c1062ac64af3074643b
thosmos/riverdb
user.clj
(ns user (:require [clojure.edn :as edn] ; [clojure.tools.namespace.repl :as tools-ns :refer [set-refresh-dirs]] [datascript.core :as ds] [datomic.api :as d] [domain-spec.core :as dspec] [mount.core :as mount] [riverdb.server] [riverdb.state :refer [db cx]] [riverdb.db :as rdb :refe...
null
https://raw.githubusercontent.com/thosmos/riverdb/9c8dd8d73405e703475e6b78bfdfb943dee27df3/src/dev/user.clj
clojure
[clojure.tools.namespace.repl :as tools-ns :refer [set-refresh-dirs]] ==================== SERVER ==================== (start-dbs riverdb.state/state)) (tools-ns/refresh) (tools-ns/refresh :after 'user/start)) Run (start-server-tests) in a REPL to start a runner that can render results in a browser See fulc...
(ns user (:require [clojure.edn :as edn] [datascript.core :as ds] [datomic.api :as d] [domain-spec.core :as dspec] [mount.core :as mount] [riverdb.server] [riverdb.state :refer [db cx]] [riverdb.db :as rdb :refer [rpull pull-entities]] [com.rpl.specter :as sp] [thosmos.util :as...
0a5094ed4e1682ecc3fcd8c1a1df35bb0a20eadaf24b5f2dbf38f4f876c69a17
fakedata-haskell/fakedata
Dnd.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # module Faker.Provider.Dnd where import Config import Control.Monad.Catch import Data.Text (Text) import Data.Vector (Vector) import Data.Monoid ((<>)) import Data.Yaml import Faker import Faker.Internal import Faker.Provider.TH import Language.Haskell.TH...
null
https://raw.githubusercontent.com/fakedata-haskell/fakedata/7b0875067386e9bb844c8b985c901c91a58842ff/src/Faker/Provider/Dnd.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE TemplateHaskell # module Faker.Provider.Dnd where import Config import Control.Monad.Catch import Data.Text (Text) import Data.Vector (Vector) import Data.Monoid ((<>)) import Data.Yaml import Faker import Faker.Internal import Faker.Provider.TH import Language.Haskell.TH parseDnd :: FromJSON a => FakerS...
b8a257dde18a1b32a3dc835c6f57f4146d651daa881ef93e268842206199a3ec
HealthSamurai/ci3
k8s.clj
(ns ci3.k8s (:import java.util.Base64) (:require [org.httpkit.client :as http-client] [clj-json-patch.core :as patch] [clojure.walk :as walk] [unifn.core :as u] [cheshire.core :as json] [clojure.tools.logging :as log])) (def default-headers (if-let [token (System/getenv "KUBE_TOKEN")] {"Aut...
null
https://raw.githubusercontent.com/HealthSamurai/ci3/d14a459e677a1f2d89c5df5f09276059f6debccd/src/ci3/k8s.clj
clojure
(ns ci3.k8s (:import java.util.Base64) (:require [org.httpkit.client :as http-client] [clj-json-patch.core :as patch] [clojure.walk :as walk] [unifn.core :as u] [cheshire.core :as json] [clojure.tools.logging :as log])) (def default-headers (if-let [token (System/getenv "KUBE_TOKEN")] {"Aut...
524db644b5bc18fd5b3d5aed03eb97b79523ccb29a63230be7664cd7fe984f9c
ekmett/rope
Rope.hs
module Data.Rope ( -- * Size Rope , length -- :: Rope -> Int , null -- :: Rope -> Bool -- * Slicing , Breakable(..) , splitAt -- :: Int -> Rope -> (Rope, Rope) , take -- :: Int -> Rope -> Rope , drop -- :: Int -> Rope -> Rope -- * Walking -- ** construc...
null
https://raw.githubusercontent.com/ekmett/rope/418b895e4895f566d726ca17688c428bcc95aa25/Data/Rope.hs
haskell
* Size :: Rope -> Int :: Rope -> Bool * Slicing :: Int -> Rope -> (Rope, Rope) :: Int -> Rope -> Rope :: Int -> Rope -> Rope * Walking ** construction :: Rope :: ByteString -> Rope :: [ByteString] -> Rope :: L.ByteString -> Rope :: [Word8] -> Rope :: Word8 -> Rope :: String -> Rope * Deconstructing 'Ro...
module Data.Rope ( Rope , Breakable(..) , Packable(..) : : , Unpackable(..) ) where import Data.Rope.Internal ( Rope , empty , length , null , fromChunks , fromByteString , fromLazyByteString , fromWords , fromChar , fromWord8 , fromString ,...
63e8e769cf9e7fca42835f4032842bca22d4716b81d1fb83aac1a13ebbd3f918
inhabitedtype/ocaml-aws
test_async.ml
open Aws_route53_test module T = TestSuite (struct type 'a m = 'a Async.Deferred.t let run_request = Aws_async.Runtime.run_request let un_m v = Async.Thread_safe.block_on_async_exn (fun () -> v) end)
null
https://raw.githubusercontent.com/inhabitedtype/ocaml-aws/b6d5554c5d201202b5de8d0b0253871f7b66dab6/libraries/route53/lib_test/test_async.ml
ocaml
open Aws_route53_test module T = TestSuite (struct type 'a m = 'a Async.Deferred.t let run_request = Aws_async.Runtime.run_request let un_m v = Async.Thread_safe.block_on_async_exn (fun () -> v) end)
c94f2fcd1b0b24888c5b070470bb0cd164e6dd603b0e40302b6cb67df0687865
RRethy/nvim-treesitter-textsubjects
textsubjects-container-outer.scm
(([ (function_definition) (class_definition) ] @_start @_end) (#make-range! "range" @_start @_end))
null
https://raw.githubusercontent.com/RRethy/nvim-treesitter-textsubjects/30c5aecd3b30d2f7d4d019c91b599b3df8c0b370/queries/python/textsubjects-container-outer.scm
scheme
(([ (function_definition) (class_definition) ] @_start @_end) (#make-range! "range" @_start @_end))