_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
21f4f5037cb5ac56a18860196f58e642aafed4d85e14a747650caed30ae77ead
oscoin/oscoin
Trans.hs
| ' NodeT ' is a monad transformer that combines all the storage -- classes with consensus. module Oscoin.Node.Trans ( NodeT , runNodeT , Config(..) , GlobalConfig(..) , Handle(..) , getBlockStoreReader , getLedger ) where import Oscoin.Prelude import Oscoin.Clock...
null
https://raw.githubusercontent.com/oscoin/oscoin/2eb5652c9999dd0f30c70b3ba6b638156c74cdb1/src/Oscoin/Node/Trans.hs
haskell
classes with consensus. | Node static config. | Node handle. ----------------------------------------------------------------------------- # INLINE addTx #
| ' NodeT ' is a monad transformer that combines all the storage module Oscoin.Node.Trans ( NodeT , runNodeT , Config(..) , GlobalConfig(..) , Handle(..) , getBlockStoreReader , getLedger ) where import Oscoin.Prelude import Oscoin.Clock (MonadClock(..)) import ...
f165523dd29e2cb365f0a435050e55c9f64263f2c349ca90cf5a5b2a04755b17
dbuenzli/mtime
pkg.ml
#!/usr/bin/env ocaml #use "topfind" #require "topkg" open Topkg let () = Pkg.describe "mtime" @@ fun c -> Ok [ Pkg.mllib "src/mtime.mllib"; Pkg.mllib ~api:[] "src/mtime_top.mllib" ~dst_dir:"top/"; Pkg.lib "src/mtime_top_init.ml"; Pkg.mllib "src-clock/mtime_clock.mllib" ~dst_dir:"clock/os/"; ...
null
https://raw.githubusercontent.com/dbuenzli/mtime/8e65a3698524ea6050a0bd3a59eb3d770fb33749/pkg/pkg.ml
ocaml
#!/usr/bin/env ocaml #use "topfind" #require "topkg" open Topkg let () = Pkg.describe "mtime" @@ fun c -> Ok [ Pkg.mllib "src/mtime.mllib"; Pkg.mllib ~api:[] "src/mtime_top.mllib" ~dst_dir:"top/"; Pkg.lib "src/mtime_top_init.ml"; Pkg.mllib "src-clock/mtime_clock.mllib" ~dst_dir:"clock/os/"; ...
99e8dd280134bef1646c8365a6cfb5be618a6ccdfc3cb56504a99c55474d1235
brownplt/LambdaS5
propagate_nonconst_test.ml
open Prelude open Util open OUnit2 open Ljs_propagate_nonconst let suite = let cmp before after = cmp before propagate_nonconst after in let no_change code = no_change code propagate_nonconst in "Test propagating nonconst" >::: [ "normal propagation" >:: (cmp "let (x=1) let (f = func() ...
null
https://raw.githubusercontent.com/brownplt/LambdaS5/f0bf5c7baf1daa4ead4e398ba7d430bedb7de9cf/src/optimization/test/propagate_nonconst_test.ml
ocaml
note: here rec is not renamed. An id is renamed only when that id is used in propagation. In this case, a and b neither are propagated, so rec(a=...) is not renamed
open Prelude open Util open OUnit2 open Ljs_propagate_nonconst let suite = let cmp before after = cmp before propagate_nonconst after in let no_change code = no_change code propagate_nonconst in "Test propagating nonconst" >::: [ "normal propagation" >:: (cmp "let (x=1) let (f = func() ...
0917f56e5153dc916ab8d54694fc483b81fae0f7bede63a475274eef84fa6259
geremih/xcljb
xinerama_internal.clj
This file is automatically generated . DO NOT MODIFY . (clojure.core/ns xcljb.gen.xinerama-internal (:require [xcljb common gen-common] [xcljb.gen xinerama-types])) (clojure.core/defmethod xcljb.common/read-reply ["XINERAMA" 0] [_ _ reply-buf] (xcljb.gen-common/deserialize xcljb.gen.xinerama-types/QueryVers...
null
https://raw.githubusercontent.com/geremih/xcljb/59e9ff795bf00595a3d46231a7bb4ec976852396/src/xcljb/gen/xinerama_internal.clj
clojure
Manually written.
This file is automatically generated . DO NOT MODIFY . (clojure.core/ns xcljb.gen.xinerama-internal (:require [xcljb common gen-common] [xcljb.gen xinerama-types])) (clojure.core/defmethod xcljb.common/read-reply ["XINERAMA" 0] [_ _ reply-buf] (xcljb.gen-common/deserialize xcljb.gen.xinerama-types/QueryVers...
1041f6101577c3a91a41f355cb07e6a3d6896c9767c3692f125a31d8e22e0297
xapi-project/xen-api
test_vdi_allowed_operations.ml
* Copyright ( C ) 2006 - 2012 Citrix Systems Inc. * * 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 ; version 2.1 only . with the special * exception on linking describe...
null
https://raw.githubusercontent.com/xapi-project/xen-api/a3b3dfe280bcdb1ec2408b4d4662f361beb3b435/ocaml/tests/test_vdi_allowed_operations.ml
ocaml
Helpers for testing Xapi_vdi.check_operation_error This is to test Xapi_vdi.check_operation_error against CA-98944 code. This DO NOT fully test the aforementionned function Should raise vdi_in_use Should raise vdi_in_use Should raise vdi_in_use Should raise other_operation_in_progress Should pass VDI....
* Copyright ( C ) 2006 - 2012 Citrix Systems Inc. * * 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 ; version 2.1 only . with the special * exception on linking describe...
ed19a42aa1cbfab993aa6dc1ab3b0cc690dd8bd8d8d1e2d3728563bbb4174940
tweag/asterius
genunicode.hs
# LANGUAGE RecordWildCards # import Data.Bits ((.|.), zeroBits) import qualified Data.Char as Char import Data.Int (Int32) import qualified Data.List as List import qualified Data.Map.Strict as Map import Data.Maybe (fromJust, isNothing) import Data.Word (Word32, Word8) import Numeric (readHex) import System.Environme...
null
https://raw.githubusercontent.com/tweag/asterius/e7b823c87499656860f87b9b468eb0567add1de8/asterius/rts/genunicode.hs
haskell
Unicode, with the following methods: > u_gencat(code) > u_iswupper(code) > u_iswlower(code) > u_iswspace(code) > u_iswalpha(code) > u_iswdigit(code) > u_iswalnum(code) > u_iswprint(code) > u_iswcntrl(code) > u_towlower(code) > u_towupper(code) > u_towtitle(code) > } point: * i...
# LANGUAGE RecordWildCards # import Data.Bits ((.|.), zeroBits) import qualified Data.Char as Char import Data.Int (Int32) import qualified Data.List as List import qualified Data.Map.Strict as Map import Data.Maybe (fromJust, isNothing) import Data.Word (Word32, Word8) import Numeric (readHex) import System.Environme...
639bcc3dec18f4b8080d6a50bdfdf6bfb3655fe20bf0890131dd6ea334afa220
haskell/vector
Mutable.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # -- | -- Module : Data.Vector.Generic.Mutable Copyright : ( c ) Roman Leshchinskiy 2008 - 2010 2020 - 2022 ...
null
https://raw.githubusercontent.com/haskell/vector/967159deb71d376d18179eb9d5f903bded0e8074/vector/src/Data/Vector/Generic/Mutable.hs
haskell
# LANGUAGE BangPatterns # | Module : Data.Vector.Generic.Mutable License : BSD-style Stability : experimental Portability : non-portable * Class of mutable vector types * Accessors ** Length information ** Extracting subvectors ** Overlapping * Construction ** Initialisation ** Growing ** Res...
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # Copyright : ( c ) Roman Leshchinskiy 2008 - 2010 2020 - 2022 2020 - 2022 2020 - 2022 Maintainer : Haskel...
cb2340d1afcadb7b575de1fa83ef5fa1f8badafef82c4a09828b2c26545c8b1c
dcos/dcos-net
dcos_rest_metrics_handler.erl
-module(dcos_rest_metrics_handler). -export([ init/2, rest_init/2, allowed_methods/2, content_types_provided/2, metrics/2 ]). init(Req, Opts) -> {cowboy_rest, Req, Opts}. rest_init(Req, Opts) -> {ok, Req, Opts}. allowed_methods(Req, State) -> {[<<"GET">>], Req, State}. content_types...
null
https://raw.githubusercontent.com/dcos/dcos-net/7bd01ac237ff4b9a12a020ed443e71c45f7063f4/apps/dcos_rest/src/dcos_rest_metrics_handler.erl
erlang
-module(dcos_rest_metrics_handler). -export([ init/2, rest_init/2, allowed_methods/2, content_types_provided/2, metrics/2 ]). init(Req, Opts) -> {cowboy_rest, Req, Opts}. rest_init(Req, Opts) -> {ok, Req, Opts}. allowed_methods(Req, State) -> {[<<"GET">>], Req, State}. content_types...
8cb0b8e4240a3e351473ad46878c6f335ed8ee162960d07dade70bbdf364db7c
jarvinet/scheme
quoted.scm
'a ;(display 'a) ;(display '(a b c))
null
https://raw.githubusercontent.com/jarvinet/scheme/47633d7fc4d82d739a62ceec75c111f6549b1650/bin/compiler/test/quoted.scm
scheme
(display 'a) (display '(a b c))
'a
cd081fcf295236d792f9c2cea27ac38f7175011cc78b1bc3b2a8dfddfec333a5
puzza007/openpoker
betting.erl
Copyright ( C ) 2005 Wager Labs , SA %%% This file is part of OpenPoker . %%% OpenPoker is free software ; you can redistribute it and/or %%% modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any l...
null
https://raw.githubusercontent.com/puzza007/openpoker/bbd7158c81ba869f9f04ac7295c9fb7ea099a9d2/src/betting.erl
erlang
modify it under the terms of the GNU General Public This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. License along with this ...
Copyright ( C ) 2005 Wager Labs , SA This file is part of OpenPoker . OpenPoker is free software ; you can redistribute it and/or License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . You should have received a copy of the GNU Gene...
ce24759e4a5699200fb16f7860fc7464001fc7f31f1fc8b6f340f199b850e41c
racket/htdp
racket-tests.rkt
#lang racket/base (require (only-in lang/private/teach check-property for-all Integer) (except-in rackunit check-within) test-engine/racket-tests test-engine/test-engine) (define (assert-failed-check failed-check reason? . selector+value-list) (check-pred failed-check? f...
null
https://raw.githubusercontent.com/racket/htdp/d7642e5efdc6699154b249fc6c7981c4035d9f2f/htdp-test/tests/test-engine/racket-tests.rkt
racket
fails --------------------------------------------------------------------------------------------------- fails
#lang racket/base (require (only-in lang/private/teach check-property for-all Integer) (except-in rackunit check-within) test-engine/racket-tests test-engine/test-engine) (define (assert-failed-check failed-check reason? . selector+value-list) (check-pred failed-check? f...
0cf1e538c8cdb3aabf4856ed78e4d605abcd17734256fd731bd80d7902eede36
simmone/racket-simple-xlsx
sort-styles-col-style-test.rkt
#lang racket (require rackunit/text-ui rackunit) (require"../../../xlsx/xlsx.rkt") (require"../../../sheet/sheet.rkt") (require"../../../style/style.rkt") (require"../../../style/sort-styles.rkt") (require"../../../style/set-styles.rkt") (define test-styles (test-suite "test-styles" (test-case "test-sor...
null
https://raw.githubusercontent.com/simmone/racket-simple-xlsx/e0ac3190b6700b0ee1dd80ed91a8f4318533d012/simple-xlsx/tests/style/sort-styles/sort-styles-col-style-test.rkt
racket
#lang racket (require rackunit/text-ui rackunit) (require"../../../xlsx/xlsx.rkt") (require"../../../sheet/sheet.rkt") (require"../../../style/style.rkt") (require"../../../style/sort-styles.rkt") (require"../../../style/set-styles.rkt") (define test-styles (test-suite "test-styles" (test-case "test-sor...
50897cb03411cf11090387e53c1207247f13e1fc3143ece160187ce3fe45751b
RolfRolles/PandemicML
IDATopLoop.mli
* This module contains no exported functions . The functions that it provides are registered as callbacks , and invoked in the C++ parts of the plugin . are registered as callbacks, and invoked in the C++ parts of the plugin. *)
null
https://raw.githubusercontent.com/RolfRolles/PandemicML/9c31ecaf9c782dbbeb6cf502bc2a6730316d681e/IDA/IDATopLoop.mli
ocaml
* This module contains no exported functions . The functions that it provides are registered as callbacks , and invoked in the C++ parts of the plugin . are registered as callbacks, and invoked in the C++ parts of the plugin. *)
c3d4014e15d154f296385551a8836835c84eef342fa4d7f4744a1c5f52ec07c4
simplegeo/erlang
digraph_utils_SUITE.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2000 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/simplegeo/erlang/15eda8de27ba73d176c7eeb3a70a64167f50e2c4/lib/stdlib/test/digraph_utils_SUITE.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 2000 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(digraph_utils_SUITE). -ifdef(debug...
a3b6a387468d33579aa5b2c8a584bdbb7fcce17a9efaff6ff721d6fdfadf5b18
yesodweb/yesod
Main.hs
# LANGUAGE MultiParamTypeClasses # {-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE TemplateHaskell #-} # LANGUAGE TypeFamilies # module Main where import Control.Applicative ((<$>)) import Wiki import Yesod -- A very simple App, doesn't do anything except provide the ...
null
https://raw.githubusercontent.com/yesodweb/yesod/c59993ff287b880abbf768f1e3f56ae9b19df51e/demo/subsite/Main.hs
haskell
# LANGUAGE QuasiQuotes # # LANGUAGE TemplateHaskell # A very simple App, doesn't do anything except provide the Wiki. Just use the defaults
# LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # module Main where import Control.Applicative ((<$>)) import Wiki import Yesod data App = App { appWiki :: Wiki } mkYesod "App" [parseRoutes| / HomeR GET /wiki WikiR Wiki appWiki |] instance Yesod App instanc...
bcacdaf75e06820ea657c6f24163aa0a3f9653480fe7decb5bf5e268871a2a14
mlabs-haskell/ply
TypedReader.hs
# LANGUAGE UnboxedTuples # # LANGUAGE UndecidableInstances # module Ply.Core.TypedReader (TypedReader, readTypedScript, mkTypedScript, typedScriptToEnvelope) where import Control.Exception (throwIO) import Control.Monad (unless) import Data.Proxy (Proxy (Proxy)) import Data.Text (Text) import Ply.Core.Deserialize (r...
null
https://raw.githubusercontent.com/mlabs-haskell/ply/2cda3b44f87c659980bea2bc0b4a822d1e9eaef4/ply-core/src/Ply/Core/TypedReader.hs
haskell
| Class of 'TypedScript' parameters that are supported and can be read. See: 'mkTypedScript'. | File path where the typed script file is located.
# LANGUAGE UnboxedTuples # # LANGUAGE UndecidableInstances # module Ply.Core.TypedReader (TypedReader, readTypedScript, mkTypedScript, typedScriptToEnvelope) where import Control.Exception (throwIO) import Control.Monad (unless) import Data.Proxy (Proxy (Proxy)) import Data.Text (Text) import Ply.Core.Deserialize (r...
54d31f3c8559676894c37e90495aa7794e2861c86a53faf41a6cd227fa69c6df
meooow25/haccepted
SuffixArrayBench.hs
# LANGUAGE FlexibleContexts , TypeApplications # module SuffixArrayBench where import Data.Array.Unboxed import qualified Data.ByteString.Char8 as C import Criterion import ArrayNFData () import SuffixArray ( buildSufA, buildSufAL ) import Util ( evalR, randInts, randLowerCaseString, sizedBench ) benchmark :: Bench...
null
https://raw.githubusercontent.com/meooow25/haccepted/6289506eed0f230c58f3fd51fafa9ef21d7bda38/bench/SuffixArrayBench.hs
haskell
# LANGUAGE FlexibleContexts , TypeApplications # module SuffixArrayBench where import Data.Array.Unboxed import qualified Data.ByteString.Char8 as C import Criterion import ArrayNFData () import SuffixArray ( buildSufA, buildSufAL ) import Util ( evalR, randInts, randLowerCaseString, sizedBench ) benchmark :: Bench...
8a477f9da9368da86fb40c3f53096231f777f0ee288568b1df9473a4e33bfebd
brunoV/throttler
t_core.clj
(ns throttler.t-core (:use midje.sweet) (:require [clojure.core.async :refer [chan timeout <!! >!! close!]] [throttler.core :refer :all] [throttler.bench :refer [rate]])) (facts "about throttle-fn" (let [+? (throttle-fn + 10 :second) +?? (throttle-fn + 0.00001 :microsecond...
null
https://raw.githubusercontent.com/brunoV/throttler/5486df466795f736148e4d279316fbecd3e82192/test/throttler/t_core.clj
clojure
same, but expressed differently
(ns throttler.t-core (:use midje.sweet) (:require [clojure.core.async :refer [chan timeout <!! >!! close!]] [throttler.core :refer :all] [throttler.bench :refer [rate]])) (facts "about throttle-fn" (let [+? (throttle-fn + 10 :second) (fact "It returns something" (throttl...
3a4a0e90996ee76b6175b9f8af607e09cd465792d902234bb28574a3d166caa8
walkable-server/walkable
helper.cljc
(ns walkable.sql-query-builder.helper (:require [weavejester.dependency :as dep])) (defn check-circular-dependency! [graph] (try (reduce (fn [acc [x y]] (dep/depend acc y x)) (dep/graph) graph) (catch #?(:clj Exception :cljs js/Error) e (let [{:keys [node dependency] :as data} (ex-dat...
null
https://raw.githubusercontent.com/walkable-server/walkable/dcae702f52d630c3ca435d846f4991c93212e434/src/walkable/sql_query_builder/helper.cljc
clojure
(ns walkable.sql-query-builder.helper (:require [weavejester.dependency :as dep])) (defn check-circular-dependency! [graph] (try (reduce (fn [acc [x y]] (dep/depend acc y x)) (dep/graph) graph) (catch #?(:clj Exception :cljs js/Error) e (let [{:keys [node dependency] :as data} (ex-dat...
26833104f64c0f35c5ae9ae5d6a01bcd4454176d0bf14de347164b49a08f5145
aeternity/aeternity
aect_call_tx_tests.erl
%%%------------------------------------------------------------------- ( C ) 2018 , Aeternity Anstalt %%% @doc Unit tests for contract call tx ADT %%% @end %%%------------------------------------------------------------------- -module(aect_call_tx_tests). -include_lib("eunit/include/eunit.hrl"). basic_test_() -...
null
https://raw.githubusercontent.com/aeternity/aeternity/b7ce6ae15dab7fa22287c2da3d4405c29bb4edd7/apps/aecontract/test/aect_call_tx_tests.erl
erlang
------------------------------------------------------------------- @doc @end -------------------------------------------------------------------
( C ) 2018 , Aeternity Anstalt Unit tests for contract call tx ADT -module(aect_call_tx_tests). -include_lib("eunit/include/eunit.hrl"). basic_test_() -> [ {"Gas-related getters test", fun gas_getters/0} ]. gas_getters() -> Tx = call_tx(#{gas_price => 123, gas => 456}), ?assertEqual(123, aect_c...
9b71c0aa6ff3bf64177c3f729ab071cb771016c90aa22d55a6859dc627d2c698
inhabitedtype/ocaml-aws
getDefaultPatchBaseline.ml
open Types open Aws type input = GetDefaultPatchBaselineRequest.t type output = GetDefaultPatchBaselineResult.t type error = Errors_internal.t let service = "ssm" let signature_version = Request.V4 let to_http service region req = let uri = Uri.add_query_params (Uri.of_string (Aws.Util.of_option_exn (...
null
https://raw.githubusercontent.com/inhabitedtype/ocaml-aws/3bc554af7ae7ef9e2dcea44a1b72c9e687435fa9/libraries/ssm/lib/getDefaultPatchBaseline.ml
ocaml
open Types open Aws type input = GetDefaultPatchBaselineRequest.t type output = GetDefaultPatchBaselineResult.t type error = Errors_internal.t let service = "ssm" let signature_version = Request.V4 let to_http service region req = let uri = Uri.add_query_params (Uri.of_string (Aws.Util.of_option_exn (...
51fdc87dcecf603f4e2394853770e8a1a7ebd813effef5982c2a2f28d50cd2d1
antoniogarrote/erlfaye
erlfaye_demo_server.erl
%%%--------------------------------------------------------------------------------------- @author < > [ ] 2007 %%% @doc ErlyComet Demo Chat Application %%% @reference See <a href="" target="_top"></a> for more information %%% @end %%% %%% %%% The MIT License %%% Copyright ( c ) 2007 %%% %...
null
https://raw.githubusercontent.com/antoniogarrote/erlfaye/366227ac6c671e557cedb047c620e69ed3f94b3b/erlfaye_demo/src/erlfaye_demo_server.erl
erlang
--------------------------------------------------------------------------------------- @doc ErlyComet Demo Chat Application @reference See <a href="" target="_top"></a> for more information @end The MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this softw...
@author < > [ ] 2007 Copyright ( c ) 2007 in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT W...
5dfa19450f282a6805654bfe84987d8351d1eff311ff5c13445f9b2d39f5adf6
mikera/core.matrix
geom.clj
(ns clojure.core.matrix.demo.geom "Demonstration of geometric functionality using core.matrix" (:require [clojure.core.matrix :refer :all])) ;; ========================================================================= ;; Vector rotation example ;; The Pi constant. (def π 3.141592653589793) ;; The Tau constant. B...
null
https://raw.githubusercontent.com/mikera/core.matrix/0a35f6e3d6d2335cb56f6f3e5744bfa1dd0390aa/src/test/clojure/clojure/core/matrix/demo/geom.clj
clojure
========================================================================= Vector rotation example The Pi constant. The Tau constant. Better than Pi. -manifesto
(ns clojure.core.matrix.demo.geom "Demonstration of geometric functionality using core.matrix" (:require [clojure.core.matrix :refer :all])) (def π 3.141592653589793) (def τ (* 2.0 π)) (defn rot "Rotates a 2D vector by a given angle (in turns, i.e. 180 degrees = 0.5)" ([turns] (let [a (* τ turns)] ...
25e83289031ee6130e33c4d48442e11fa09b4c73b19d26eddd36c4f51f02281d
janestreet/file_path
types.mli
* @inline
null
https://raw.githubusercontent.com/janestreet/file_path/ba8b499a6cc0e47bf949b292c07afd853b6b9a4a/src/types.mli
ocaml
* @inline
54c943d28c149f0580f1aea10a94ab295214e9346e8426e145cdbe20fa327b71
aiya000/haskell-examples
NonDet.hs
NonDet is ' non determinated ' -- type of multi value function type NonDet i o = i -> [o] sqrts :: NonDet Float Float sqrts x = [sqrt x, - (sqrt x)] -- newtype newtype NonDet' i o = NonDet' { runNonDet' :: i -> [o] } sqrts' :: NonDet' Float Float sqrts' = NonDet' $ \x -> [sqrt x, - (sqrt x)] runSq...
null
https://raw.githubusercontent.com/aiya000/haskell-examples/a337ba0e86be8bb1333e7eea852ba5fa1d177d8a/Control/Category/NonDet.hs
haskell
type of multi value function newtype
NonDet is ' non determinated ' type NonDet i o = i -> [o] sqrts :: NonDet Float Float sqrts x = [sqrt x, - (sqrt x)] newtype NonDet' i o = NonDet' { runNonDet' :: i -> [o] } sqrts' :: NonDet' Float Float sqrts' = NonDet' $ \x -> [sqrt x, - (sqrt x)] runSqrts' :: Float -> [Float] runSqrts' x = runNo...
cb93280013d05b689479e8f57e37c9a154e2e2f9711c724c840df9d1659215fd
clojure-interop/java-jdk
NimbusLookAndFeel.clj
(ns javax.swing.plaf.nimbus.NimbusLookAndFeel "The NimbusLookAndFeel class." (:refer-clojure :only [require comment defn ->]) (:import [javax.swing.plaf.nimbus NimbusLookAndFeel])) (defn ->nimbus-look-and-feel "Constructor. Create a new NimbusLookAndFeel." (^NimbusLookAndFeel [] (new NimbusLookAndFeel...
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.swing/src/javax/swing/plaf/nimbus/NimbusLookAndFeel.clj
clojure
(ns javax.swing.plaf.nimbus.NimbusLookAndFeel "The NimbusLookAndFeel class." (:refer-clojure :only [require comment defn ->]) (:import [javax.swing.plaf.nimbus NimbusLookAndFeel])) (defn ->nimbus-look-and-feel "Constructor. Create a new NimbusLookAndFeel." (^NimbusLookAndFeel [] (new NimbusLookAndFeel...
507f5fbea0df4fa7c2fa668bfe39c4fa30ea65fa3d1e2432e78ef37ae98d569b
ermine/logger
myocamlbuild.ml
OASIS_START DO NOT EDIT ( digest : 992be8e502cd171f8f890a7f5f2a9f34 ) module OASISGettext = struct # 21 "/usr/home/ermine/projects/ocaml/src/oasis.git/src/oasis/OASISGettext.ml" let ns_ str = str let s_ str = str let f_ (str : ('a, 'b, 'c, 'd) format4) = str let fn_ fmt1 fmt2 n = ...
null
https://raw.githubusercontent.com/ermine/logger/d9e2bb7667c6e61b5d5158e037abeaeaedd03dbf/myocamlbuild.ml
ocaml
these functions are not really officially exported this lists all supported packages this is supposed to list available syntaxes, but I don't know how to do it. ocamlfind command by using Before_options one let command line options have an higher priority on the contrary using After_options will guarantee to...
OASIS_START DO NOT EDIT ( digest : 992be8e502cd171f8f890a7f5f2a9f34 ) module OASISGettext = struct # 21 "/usr/home/ermine/projects/ocaml/src/oasis.git/src/oasis/OASISGettext.ml" let ns_ str = str let s_ str = str let f_ (str : ('a, 'b, 'c, 'd) format4) = str let fn_ fmt1 fmt2 n = ...
2c5c3f1128fa132ebc52a450bc9bd51ca081d533b1304971e93090f4537bd0b4
8c6794b6/guile-tjit
generate-autoload.scm
generate - autoload --- Display define - module form with autoload info Copyright ( C ) 2001 , 2006 , 2011 Free Software Foundation , Inc. ;; ;; 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 F...
null
https://raw.githubusercontent.com/8c6794b6/guile-tjit/9566e480af2ff695e524984992626426f393414f/module/scripts/generate-autoload.scm
scheme
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License either version 3 , or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty o...
generate - autoload --- Display define - module form with autoload info Copyright ( C ) 2001 , 2006 , 2011 Free Software Foundation , Inc. You should have received a copy of the GNU Lesser General Public not , write to the Free Software Foundation , Inc. , 51 Franklin Street , Fifth Floor , Boston , USA...
f5c25f293d8c4aa428189adb5e75671dd028a851ef0be176b8347aaaf30447b2
may-liu/qtalk
pg_odbc.erl
%%%---------------------------------------------------------------------- %%% File : pg_odbc.erl %%%---------------------------------------------------------------------- -module(pg_odbc). -define(GEN_FSM, gen_fsm). -behaviour(?GEN_FSM). -include("logger.hrl"). %% External exports -export([ start_link/...
null
https://raw.githubusercontent.com/may-liu/qtalk/f5431e5a7123975e9656e7ab239e674ce33713cd/qtalk_opensource/scripts/ejb_http_server/src/pg_odbc.erl
erlang
---------------------------------------------------------------------- File : pg_odbc.erl ---------------------------------------------------------------------- External exports gen_fsm callbacks gen_fsm states -define(DBGFSM, true). ---------------------------------------------------------------------- API ---...
-module(pg_odbc). -define(GEN_FSM, gen_fsm). -behaviour(?GEN_FSM). -include("logger.hrl"). -export([ start_link/1, sql_query/2, sql_query_t/1, sql_transaction/2, sql_bloc/2, escape/1, escape_like/1, to_bool/1, encode_term/1, decode_term/1, ...
cc1fd8d5e42bfab49937e2dbaea71c95eb3b29715748a4f1c38d4af4ac5f78de
budu/board
core.cljs
(ns board.core (:require [goog.events :as events])) (def socket (new js/window.WebSocket "ws:8080")) (set! (.-onmessage socket) #(-> % msg->coord draw-circ)) (defn $ [selector] (.querySelector js/document (name selector))) (def board ($ :#board)) (defn circ [ctx x y d] (doto ctx .beginPath (.arc x y ...
null
https://raw.githubusercontent.com/budu/board/27dcaeef36b0a56d3a1de8231888e3080daf040f/src/cljs/board/core.cljs
clojure
(ns board.core (:require [goog.events :as events])) (def socket (new js/window.WebSocket "ws:8080")) (set! (.-onmessage socket) #(-> % msg->coord draw-circ)) (defn $ [selector] (.querySelector js/document (name selector))) (def board ($ :#board)) (defn circ [ctx x y d] (doto ctx .beginPath (.arc x y ...
c9df24a61bbbfd0e0930b83cb3f96115cea5284c50fe8d26413cb022ba6c16fd
bldl/magnolisp
backend-build-main.rkt
#lang racket/base #| Routines for parsing and collecting `build` annotations, and generating code for them. |# (require data/order data/splay-tree racket/contract/base racket/dict racket/function racket/list racket/match "app-util.rkt" "ir-ast....
null
https://raw.githubusercontent.com/bldl/magnolisp/191d529486e688e5dda2be677ad8fe3b654e0d4f/backend-build-main.rkt
racket
Routines for parsing and collecting `build` annotations, and generating code for them. parsing i.e., opt-name? holds for the keys. The ir-opt-value/c contract holds for the values, which may be either atoms or sets of values. Set elements are also ordered, and must all be of the same value type. Any retur...
#lang racket/base (require data/order data/splay-tree racket/contract/base racket/dict racket/function racket/list racket/match "app-util.rkt" "ir-ast.rkt" "backend-build-writer.rkt" "backend-util.rkt" "util.rkt" ...
12885b9443a2a556f5fe259ed344f865cc3e526ffde5969932ada46ae38839d9
slyrus/retrospectiff
retrospectiff.lisp
(in-package :retrospectiff) (defun read-grayscale-strip (stream image-info array start-row strip-offset strip-byte-count width ...
null
https://raw.githubusercontent.com/slyrus/retrospectiff/c2a69d77d5010f8cdd9045b3e36a08a73da5d321/retrospectiff.lisp
lisp
default planar-configuration is +planar-configuration-chunky+ FIXME! This image should be inverted The general strategy here is to: represented inline -- starting at the offset of the IFD + (2 + the non-inline values
(in-package :retrospectiff) (defun read-grayscale-strip (stream image-info array start-row strip-offset strip-byte-count width ...
8fbe10e8da0750559e9488394fccdefbea2f79cadc619fa29ae49fec40e757ce
BradWBeer/clinch
tutorial04.lisp
(ql:quickload :clinch) ;; The projection matrix. (defparameter *projection* nil) ;; The triangle entity which connects the shader, vertexes and projection matrix. (defparameter *cube* nil) ;; Lighting values ;; ambientLight The lowest amount of light to use. An RGB value. (defparameter ambientLight '(.2 .2 .2)) ...
null
https://raw.githubusercontent.com/BradWBeer/clinch/421de1e4844a5142e37cb06805bc2d9d13ba048f/examples/Tutorial04/tutorial04.lisp
lisp
The projection matrix. The triangle entity which connects the shader, vertexes and projection matrix. Lighting values ambientLight The lowest amount of light to use. An RGB value. lightIntensity The maximum power of the light. An RGB value. Create a window-resized event handler Run this once before the ne...
(ql:quickload :clinch) (defparameter *projection* nil) (defparameter *cube* nil) (defparameter ambientLight '(.2 .2 .2)) (defparameter lightIntensity '(.8 .8 .8)) lightDirection The direction of the light source . An XYZ normal value . (defparameter lightDirection '(0.5772705 -0.5772705 -0.5772705)) (def...
486ff7c71c208fb9ae5e62495cc54bacaaeaf3b3811940ed2db229814b586aed
daypack-dev/daypack-lib
sched_search.ml
open Int64_utils let brute_force_single ~start ~end_exc ~(base : Sched.sched) ((_sched_req_id, sched_req_record_data_list) : Sched_req.sched_req_record) : Sched.sched Seq.t = let task_seg_is_parallelizable ((task_seg_id, _data) : Task.task_seg) : bool = let task_id = Task.Id.task_id_of_task_seg_id task_seg...
null
https://raw.githubusercontent.com/daypack-dev/daypack-lib/63fa5d85007eca73aa6c51874a839636dd0403d3/src/sched_search.ml
ocaml
open Int64_utils let brute_force_single ~start ~end_exc ~(base : Sched.sched) ((_sched_req_id, sched_req_record_data_list) : Sched_req.sched_req_record) : Sched.sched Seq.t = let task_seg_is_parallelizable ((task_seg_id, _data) : Task.task_seg) : bool = let task_id = Task.Id.task_id_of_task_seg_id task_seg...
fe814547100c93574f7820030b5f3774163de784f86c9ca5bf52e7bcd1246e87
lojic/LearningRacket
day18.rkt
#lang racket (require "../advent.rkt") (define in (parse-aoc 18 numbers)) (define-values (xmin xmax ymin ymax zmin zmax) (let* ([ xs (map car in) ][ xmin (sub1 (list-min xs)) ][ xmax (add1 (list-max xs)) ] [ ys (map cadr in) ][ ymin (sub1 (list-min ys)) ][ ymax (add1 (list-max ys)) ] [ zs (map ...
null
https://raw.githubusercontent.com/lojic/LearningRacket/d8e2cf9be3e96f2fdf77b1d67d8140fa2726b641/advent-of-code-2022/day18/day18.rkt
racket
#lang racket (require "../advent.rkt") (define in (parse-aoc 18 numbers)) (define-values (xmin xmax ymin ymax zmin zmax) (let* ([ xs (map car in) ][ xmin (sub1 (list-min xs)) ][ xmax (add1 (list-max xs)) ] [ ys (map cadr in) ][ ymin (sub1 (list-min ys)) ][ ymax (add1 (list-max ys)) ] [ zs (map ...
12eb8ec49ae048661dce4c808250e0109c5cc34d4d5d49f50826363d1ea069df
coco-team/lustrec
kindIdent.ml
This file is part of the Kind 2 model checker . Copyright ( c ) 2014 by the Board of Trustees of the University of Iowa 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 a...
null
https://raw.githubusercontent.com/coco-team/lustrec/b21f9820df97e661633cd4418fdab68a6c6ca67d/src/cocospec/kindIdent.ml
ocaml
Namespace to avoid clashes between reserved and user identifiers Reserved identifier Identifier in user input Identifier with namespace type t = namespace * string Equality on identifiers Total order on identifiers Local Variables: compile-command: "make -C .. -k" indent-tabs-mode: nil End: ...
This file is part of the Kind 2 model checker . Copyright ( c ) 2014 by the Board of Trustees of the University of Iowa 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 a...
6f2aabc5a140c76a2e1784fc722645c868f0556d6e78041109fe320353c8331f
fyquah/hardcaml_zprize
model.ml
open! Core let () = let t = Pippenger_test.Model.test_even ~verbose:true 10_000_000 in print_s [%message (t : Pippenger_test.Model.t)] ;;
null
https://raw.githubusercontent.com/fyquah/hardcaml_zprize/553b1be10ae9b977decbca850df6ee2d0595e7ff/libs/pippenger/bin/model.ml
ocaml
open! Core let () = let t = Pippenger_test.Model.test_even ~verbose:true 10_000_000 in print_s [%message (t : Pippenger_test.Model.t)] ;;
93403e6d96037b2e2e3fef92b75cc11791a9cc18f21aa8c2e6e77685722d9175
Jell/euroclojure-2016
good_things.cljs
(ns euroclojure.good-things) (defn slide [{:keys [speaker]}] [:div.slide.left [:h1.centered "Good things"] [:ul [:li "Made me love front-end work!"] [:li "Organically grew the project & structure of the app"] (when speaker [:div "only add abstractions when needed, many small steps"]) [:li...
null
https://raw.githubusercontent.com/Jell/euroclojure-2016/a8ca883e8480a4616ede19995aaacd4a495608af/src/euroclojure/good_things.cljs
clojure
(ns euroclojure.good-things) (defn slide [{:keys [speaker]}] [:div.slide.left [:h1.centered "Good things"] [:ul [:li "Made me love front-end work!"] [:li "Organically grew the project & structure of the app"] (when speaker [:div "only add abstractions when needed, many small steps"]) [:li...
748fe323e2bad7c09dc295a7f6b7774f64c57f6f5a592309aa94e2a4d3bd0614
sjoerdvisscher/unfoldable
brackets.hs
-- From -in-enumerating-balanced-brackets/ import Data.Unfolder import Data.MemoTrie (memo) import Control.Applicative enumBrackets :: Unfolder f => f String enumBrackets = enumBracketsTail 0 enumBracketsTail :: Unfolder f => Int -> f String enumBracketsTail = enumBracketsTail' where -- Ensure memoization happe...
null
https://raw.githubusercontent.com/sjoerdvisscher/unfoldable/321334b043a7880bd34a3b24ec23ab6e513ffab6/examples/brackets.hs
haskell
From -in-enumerating-balanced-brackets/ Ensure memoization happens for a specific `f`
import Data.Unfolder import Data.MemoTrie (memo) import Control.Applicative enumBrackets :: Unfolder f => f String enumBrackets = enumBracketsTail 0 enumBracketsTail :: Unfolder f => Int -> f String enumBracketsTail = enumBracketsTail' where enumBracketsTail' = memo enumBracketsTail'' enumBracketsTail'' 0 =...
08c63943e043386ac6193664c3a972c5544daa9016b0b0c364d617387023e171
emanjavacas/cosycat
middleware.cljs
(ns cosycat.backend.middleware (:require [re-frame.core :as re-frame] [re-frame.utils :refer [warn]] [reagent.core :as reagent] [taoensso.timbre :as timbre] [cosycat.schemas.app-state-schemas :refer [db-schema]] [cosycat.routes :refer [refresh]] ...
null
https://raw.githubusercontent.com/emanjavacas/cosycat/a7186363d3c0bdc7b714af126feb565f98793a6e/src/cljs/cosycat/backend/middleware.cljs
clojure
(ns cosycat.backend.middleware (:require [re-frame.core :as re-frame] [re-frame.utils :refer [warn]] [reagent.core :as reagent] [taoensso.timbre :as timbre] [cosycat.schemas.app-state-schemas :refer [db-schema]] [cosycat.routes :refer [refresh]] ...
43d74defcf1eb7f12fc22da7038fbfbdfeb534f90b255fda33792a43d13f9209
robert-strandh/SICL
nreconc-defun.lisp
(cl:in-package #:sicl-cons) (defun nreconc (list tail) (loop with remaining = list with result = tail until (atom remaining) do (let ((temp (cdr remaining))) (setf (cdr remaining) result result remaining remaining temp)) finally (unle...
null
https://raw.githubusercontent.com/robert-strandh/SICL/7e4f5e56a9ca8575d4de40d486bfaf20998694c9/Code/Cons/nreconc-defun.lisp
lisp
(cl:in-package #:sicl-cons) (defun nreconc (list tail) (loop with remaining = list with result = tail until (atom remaining) do (let ((temp (cdr remaining))) (setf (cdr remaining) result result remaining remaining temp)) finally (unle...
5567ef3ed0f22c6c53c607048e076cdf252d325854f2f87709c29f88b5bfe2d3
graninas/Hydra
Language.hs
{-# LANGUAGE GADTs #-} # LANGUAGE TemplateHaskell # module Hydra.Core.Logger.Language where import Hydra.Prelude import qualified Hydra.Core.Domain as D import qualified Hydra.Core.Logger.Class as C -- | Language for logging. data LoggerF next where -- | Log message with a predefined le...
null
https://raw.githubusercontent.com/graninas/Hydra/60d591b1300528f5ffd93efa205012eebdd0286c/lib/hydra-free/src/Hydra/Core/Logger/Language.hs
haskell
# LANGUAGE GADTs # | Language for logging. | Log message with a predefined level.
# LANGUAGE TemplateHaskell # module Hydra.Core.Logger.Language where import Hydra.Prelude import qualified Hydra.Core.Domain as D import qualified Hydra.Core.Logger.Class as C data LoggerF next where LogMessage :: !D.LogLevel -> !D.Message -> (() -> next) -> LoggerF next instance Functor LoggerF...
c3cd83d074bc0a18968284110e3f6e6835b73e2e1286f208d487dbbfcf4ecf57
circuithub/ch-hs-format
TopLevelDeclarations.hs
{-# language FlexibleContexts #-} # language GADTs # # language NamedFieldPuns # | Format all top level declarations to have two blank lines separating them ( but group type signatures ) . Format all top level declarations to have two blank lines separating them (but group type signatures). -} module Circui...
null
https://raw.githubusercontent.com/circuithub/ch-hs-format/a03417b151675c6168d2d6faee60e85c26ff0feb/src/CircuitHub/HsFormat/TopLevelDeclarations.hs
haskell
# language FlexibleContexts # Keep any comments attached to the very last import. Keep trailing comments for declarations. We want to prevent x :: A ... where foo = ... --bar b :: B Becoming x :: A ... where foo = ... --bar b :: B
# language GADTs # # language NamedFieldPuns # | Format all top level declarations to have two blank lines separating them ( but group type signatures ) . Format all top level declarations to have two blank lines separating them (but group type signatures). -} module CircuitHub.HsFormat.TopLevelDeclarations...
59186ff2175640c1adddef254961346bf4fe7076c7799d325a65f103561e6716
PrincetonUniversity/lucid
P4TofinoPrinting.ml
pretty printers for minimal P4 - tofino IR open PPrint open P4TofinoSyntax exception Error of string let error s = raise (Error s) let (!^) s = string s ;; let s' = string ;; let concat_with_nobreak_space a b = a^^(!^" ")^^b ;; let (^-^) a b = concat_with_nobreak_space a b (* convert "a b c d" into a flow...
null
https://raw.githubusercontent.com/PrincetonUniversity/lucid/3a94505efa50e988b4c9ef28048be47cc65b4355/src/lib/backend/printing/P4TofinoPrinting.ml
ocaml
convert "a b c d" into a flow where each space can be a newline and string_of_fcn_call c = s'"" we are casting to the width value, _not_ the width of the width value generic statement printer -- some statements need to be printed differently depending on which kind of function they appear in. Thi...
pretty printers for minimal P4 - tofino IR open PPrint open P4TofinoSyntax exception Error of string let error s = raise (Error s) let (!^) s = string s ;; let s' = string ;; let concat_with_nobreak_space a b = a^^(!^" ")^^b ;; let (^-^) a b = concat_with_nobreak_space a b let as_flow s = flow_map (bre...
cb5c94cf3cee32eba403d5e8e3b975d685863fe19ae0219fd9f59fe3ecd0e882
nomnom-insights/nomnom.eternity
scheduler.clj
(ns eternity.scheduler (:require [clojure.tools.logging :as log] [com.stuartsierra.component :as component] [eternity.scheduler.time :as time] [overtone.at-at :as at])) (defrecord SchedulerJob [name interval initial-delay schedule-fn scheduler-pool] component/Lifecycle (start [component] (if...
null
https://raw.githubusercontent.com/nomnom-insights/nomnom.eternity/58dcdb3326e7e41e220c075f1e61e79bcd3d0733/src/eternity/scheduler.clj
clojure
(ns eternity.scheduler (:require [clojure.tools.logging :as log] [com.stuartsierra.component :as component] [eternity.scheduler.time :as time] [overtone.at-at :as at])) (defrecord SchedulerJob [name interval initial-delay schedule-fn scheduler-pool] component/Lifecycle (start [component] (if...
b45fca27cdf80285c91346e6ce045c8c3d49cc452d3a6fb7da7220128ea6962d
TokTok/hs-toxcore-c
EventsSpec.hs
# LANGUAGE StrictData # {-# LANGUAGE Trustworthy #-} # LANGUAGE ViewPatterns # module Network.Tox.Types.EventsSpec where import Control.Concurrent (threadDelay) import Control.Monad (forM) import Data.List (sort) import Data.MessagePack ...
null
https://raw.githubusercontent.com/TokTok/hs-toxcore-c/57d3c85f4042ea69c15916f58ebc5ec30a5af1ad/test/Network/Tox/Types/EventsSpec.hs
haskell
# LANGUAGE Trustworthy #
# LANGUAGE StrictData # # LANGUAGE ViewPatterns # module Network.Tox.Types.EventsSpec where import Control.Concurrent (threadDelay) import Control.Monad (forM) import Data.List (sort) import Data.MessagePack (Object (..)) import qualifi...
f3ea27bb0166936d48187290093a3f3ae7bf20d980b1385b4a15017873202f90
hypernumbers/hypernumbers
yaws_tei_test.erl
-module(yaws_tei_test). -export([setup_test/0]). -export([test_string/0, test_string_err/0, test_include/0, test_apply/0]). -export([test_simpleif/0, test_fif/0, test_fif2/0, test_nested_fif/0, test_if/0]). -export([test_map/0, test_map_on_empty_list/0, test_mmap/0]). -export([test_imap/0,test_imap2/0, test_imap_name...
null
https://raw.githubusercontent.com/hypernumbers/hypernumbers/281319f60c0ac60fb009ee6d1e4826f4f2d51c4e/lib/sgte/test/src/yaws_tei_test.erl
erlang
-------------------- Tests -------------------- Render Test test callable attribute test on a non existent file -------------------- -------------------- Template String
-module(yaws_tei_test). -export([setup_test/0]). -export([test_string/0, test_string_err/0, test_include/0, test_apply/0]). -export([test_simpleif/0, test_fif/0, test_fif2/0, test_nested_fif/0, test_if/0]). -export([test_map/0, test_map_on_empty_list/0, test_mmap/0]). -export([test_imap/0,test_imap2/0, test_imap_name...
5334dc543c26e49922b7bb045fc481c87d7468585921c4d4ad0234fd7ebaea9a
rkaippully/gamgee
Token.hs
-- | Data structures to define and manipulate tokens module Gamgee.Token ( TokenType (..) , TokenLabel (..) , TokenSecret (..) , TokenIssuer (..) , TokenAlgorithm (..) , TokenDigits (..) , TokenPeriod (..) , TokenSpec (..) , TokenIdentifier (..) , Tokens , Config(..) , ge...
null
https://raw.githubusercontent.com/rkaippully/gamgee/9e510c24b221181e78cd3bdd79c76b4030ddcc23/src/Gamgee/Token.hs
haskell
| Data structures to define and manipulate tokens | Label of the token | Secret used to generate OTPs | Optional issuer of this token | TOTP/HOTP token | A short unique label for this token used to identify it | The secret provided by the issuer to generate tokens | The name of the issuer An identifier for a t...
module Gamgee.Token ( TokenType (..) , TokenLabel (..) , TokenSecret (..) , TokenIssuer (..) , TokenAlgorithm (..) , TokenDigits (..) , TokenPeriod (..) , TokenSpec (..) , TokenIdentifier (..) , Tokens , Config(..) , getIdentifier , currentConfigVersion , initialC...
3d6b77fcfa16818d3d5d9c05a4a1dd7075cae6b411cc7bb311b75bd36a1f0d7f
haslab/HAAP
Haskassonne.hs
# LANGUAGE DeriveGeneric # module Haskassonne where import Text.XML.Light import System.Random (randomRIO) import Data.Maybe import Data.List import Data.Ord (comparing) import Test.QuickCheck import Data.Set (fromList) import Control.DeepSeq import GHC.Generics import Safe data Board = Board {terrain :: Terrain, sco...
null
https://raw.githubusercontent.com/haslab/HAAP/5acf9efaf0e5f6cba1c2482e51bda703f405a86f/examples/xterm/Haskassonne.hs
haskell
| Procura todos os followers | Procura os meeples de um jogador tiles vizinhas existe next no board não existem meeples nas tiles acessíveis | Converte um 'Element' para um 'Board' | Converte um 'Element' para uma 'Tile' | Converte um 'Element' para um 'Follower'
# LANGUAGE DeriveGeneric # module Haskassonne where import Text.XML.Light import System.Random (randomRIO) import Data.Maybe import Data.List import Data.Ord (comparing) import Test.QuickCheck import Data.Set (fromList) import Control.DeepSeq import GHC.Generics import Safe data Board = Board {terrain :: Terrain, sco...
31ec95bd03fc8fb43074382f76a2594ce04e0c8b2f3d436d154969a9b43ff482
dyzsr/ocaml-selectml
t131-setvectitem.ml
TEST include tool - ocaml - lib flags = " -w -a " ocaml_script_as_argument = " true " * setup - ocaml - build - env * * include tool-ocaml-lib flags = "-w -a" ocaml_script_as_argument = "true" * setup-ocaml-build-env ** ocaml *) open Lib;; let x = [| 1; 2 |] in x.(0) <- 3; if x.(0) <> 3 then raise Not_fo...
null
https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/testsuite/tests/tool-ocaml/t131-setvectitem.ml
ocaml
TEST include tool - ocaml - lib flags = " -w -a " ocaml_script_as_argument = " true " * setup - ocaml - build - env * * include tool-ocaml-lib flags = "-w -a" ocaml_script_as_argument = "true" * setup-ocaml-build-env ** ocaml *) open Lib;; let x = [| 1; 2 |] in x.(0) <- 3; if x.(0) <> 3 then raise Not_fo...
0d0d935b011e7db375e9c44abf61c75774158540d6e1613b14cdf89653b90531
NetComposer/nksip
ipv6_test_client1.erl
%% ------------------------------------------------------------------- %% %% ipv6_test: IPv6 Tests and RFC5118 Torture Tests %% Copyright ( c ) 2013 . All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in complianc...
null
https://raw.githubusercontent.com/NetComposer/nksip/7fbcc66806635dc8ecc5d11c30322e4d1df36f0a/test/callbacks/ipv6_test_client1.erl
erlang
------------------------------------------------------------------- ipv6_test: IPv6 Tests and RFC5118 Torture Tests Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the Lice...
Copyright ( c ) 2013 . All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(ipv6_test_client1). ...
f85f9c2b39278cafa7236e794679b1685aa6cd46235626ec95e8646705d035ae
cljfx/cljfx
parent.clj
(ns cljfx.fx.parent (:require [cljfx.composite :as composite] [cljfx.fx.node :as fx.node] [cljfx.lifecycle :as lifecycle]) (:import [javafx.scene Parent])) (set! *warn-on-reflection* true) (def props (merge fx.node/props (composite/props Parent :stylesheets [:list lifecycle...
null
https://raw.githubusercontent.com/cljfx/cljfx/ec3c34e619b2408026b9f2e2ff8665bebf70bf56/src/cljfx/fx/parent.clj
clojure
(ns cljfx.fx.parent (:require [cljfx.composite :as composite] [cljfx.fx.node :as fx.node] [cljfx.lifecycle :as lifecycle]) (:import [javafx.scene Parent])) (set! *warn-on-reflection* true) (def props (merge fx.node/props (composite/props Parent :stylesheets [:list lifecycle...
a7e1564daa3e8253217b3e7759af3e32077f564187fb1e2e3ed224b2c8566984
IBM/probzelus
mountain_world.ml
* Copyright 2018 - 2020 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 at * * -2.0 * * Unless required by applicable law or agreed to in writin...
null
https://raw.githubusercontent.com/IBM/probzelus/3bdd60e3c4010452239bfe7bc79165802e5d941b/examples/hiking/mountain_world.ml
ocaml
* Copyright 2018 - 2020 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 at * * -2.0 * * Unless required by applicable law or agreed to in writin...
46c002fb9893f6f1d55169926a4f6a26dde415cf911378dff279cad1ff19451b
simplex-chat/simplex-chat
Input.hs
# LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} # LANGUAGE LambdaCase # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TupleSections # module Simplex.Chat.Terminal.Input where import Control.Concurrent (forkFinally, fo...
null
https://raw.githubusercontent.com/simplex-chat/simplex-chat/01acbb970ae7762e1551e352131453e77a601764/src/Simplex/Chat/Terminal/Input.hs
haskell
# LANGUAGE GADTs # # LANGUAGE OverloadedStrings #
# LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE NamedFieldPuns # # LANGUAGE ScopedTypeVariables # # LANGUAGE TupleSections # module Simplex.Chat.Terminal.Input where import Control.Concurrent (forkFinally, forkIO, killThread, mkWeakThreadId, threadDelay) import Cont...
6566f18457436467c737f50e16d8b8caec944c687510c7d95ade534e68ade4e0
ocaml/oasis
OASISObject_intern.ml
(******************************************************************************) OASIS : architecture for building OCaml libraries and applications (* *) Copyright ( C ) 2011 - 2016 , Copyrig...
null
https://raw.githubusercontent.com/ocaml/oasis/3d1a9421db92a0882ebc58c5df219b18c1e5681d/src/oasis/OASISObject_intern.ml
ocaml
**************************************************************************** This library is free software; you can redistribute it and/or modify it under the t...
OASIS : architecture for building OCaml libraries and applications Copyright ( C ) 2011 - 2016 , Copyright ( C ) 2008 - 2011 , OCamlCore SARL the Free Software Foundation ; either version 2.1 of the License , or ( at You s...
998126a28c05c2a7d89bad87c52e4bde6eb2e596690b0c635d423566a1e2f374
juspay/atlas
Fixtures.hs
| Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software dis...
null
https://raw.githubusercontent.com/juspay/atlas/e64b227dc17887fb01c2554db21c08284d18a806/test/src/Mobility/Fixtures.hs
haskell
| Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software dis...
19af3d87eaa4b00cd116fa84e5917c2553784ac82d51df8d8dc5326f2a880537
scrintal/heroicons-reagent
rocket_launch.cljs
(ns com.scrintal.heroicons.solid.rocket-launch) (defn render [] [:svg {:xmlns "" :viewBox "0 0 24 24" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M9.315 7.584C12.195 3.883 16.695 1.5 21.75 1.5a.75.75 0 01.75.75c0 5.056-2.3...
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/solid/rocket_launch.cljs
clojure
(ns com.scrintal.heroicons.solid.rocket-launch) (defn render [] [:svg {:xmlns "" :viewBox "0 0 24 24" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M9.315 7.584C12.195 3.883 16.695 1.5 21.75 1.5a.75.75 0 01.75.75c0 5.056-2.3...
5a028791b9d039db910349ca52d17cf278359aecb7639196a65afa549f174d25
bob-cd/bob
util.clj
; Copyright 2018- Rahul De ; Use of this source code is governed by an MIT - style ; license that can be found in the LICENSE file or at ; . (ns runner.util (:require [aero.core :as aero] [clojure.java.io :as io] [clojure.spec.alpha :as s] [clojure.test :as t] [common.system :as cs] [integrant.co...
null
https://raw.githubusercontent.com/bob-cd/bob/e3de6aaeecf62a8e6f907da76773943b259b66b6/runner/test/runner/util.clj
clojure
Copyright 2018- Rahul De license that can be found in the LICENSE file or at .
Use of this source code is governed by an MIT - style (ns runner.util (:require [aero.core :as aero] [clojure.java.io :as io] [clojure.spec.alpha :as s] [clojure.test :as t] [common.system :as cs] [integrant.core :as ig] [next.jdbc :as jdbc] [runner.system])) (defn with-system [test-fn] ...
80443540c04f9072f1933c2f5119c07abae7980b0549add8a5f39cd337c85352
mazenharake/cecho
cecho_example.erl
%%============================================================================== Copyright ( c ) 2017 , %% 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 sourc...
null
https://raw.githubusercontent.com/mazenharake/cecho/6b5ada4769b0f16a53a4b4925b4ba2879c50de01/src/cecho_example.erl
erlang
============================================================================== 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 no...
Copyright ( c ) 2017 , THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT HOLDER OR LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , O...
1cd23e365766439bfd92ca7b83bf7df13d08fcf6c07fc31f9bbf85c3692443e1
brendanhay/gogol
List.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # {-# LANGUAGE St...
null
https://raw.githubusercontent.com/brendanhay/gogol/fffd4d98a1996d0ffd4cf64545c5e8af9c976cda/lib/services/gogol-tagmanager/gen/Gogol/TagManager/Accounts/Containers/Workspaces/Tags/List.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated * Resource ** Constructing a Request | A resource alias for @tagmanager.accounts.containers.workspaces.tags.list@ method which the /See:/ 'newTagManagerAccountsContainersWorkspacesTagsList' smart constructor. | V1 error form...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators...
9db50ff2a77cbcd8f2773020f14f70a80ae0f664e0ef68cdf7157fc6e1772bc0
nuvla/ui
views.cljs
(ns sixsq.nuvla.ui.clouds.views (:require [cljs.spec.alpha :as s] [clojure.string :as str] [re-frame.core :refer [dispatch dispatch-sync subscribe]] [re-frame.db] [reagent.core :as r] [sixsq.nuvla.ui.acl.views :as acl] [sixsq.nuvla.ui.clouds-deta...
null
https://raw.githubusercontent.com/nuvla/ui/4ca093e5d643bfe8df0beecdedb2b08d1bd9814d/code/src/cljs/sixsq/nuvla/ui/clouds/views.cljs
clojure
use content to work around bug in icon in label for cursor
(ns sixsq.nuvla.ui.clouds.views (:require [cljs.spec.alpha :as s] [clojure.string :as str] [re-frame.core :refer [dispatch dispatch-sync subscribe]] [re-frame.db] [reagent.core :as r] [sixsq.nuvla.ui.acl.views :as acl] [sixsq.nuvla.ui.clouds-deta...
1174c8a316d768174514e8194772a4d6d9d9d617e749be9bc00afa1db562381c
headwinds/reagent-reframe-material-ui
reporter.cljs
(ns devtools.reporter (:require-macros [devtools.oops :refer [oget]]) (:require [devtools.util :as util])) (def issues-url "-devtools/issues") ; -- internal errors ------------------------------------------------------------------------------------------------------- (defn report-internal-error! [e & [context f...
null
https://raw.githubusercontent.com/headwinds/reagent-reframe-material-ui/8a6fba82a026cfedca38491becac85751be9a9d4/resources/public/js/out/devtools/reporter.cljs
clojure
-- internal errors -------------------------------------------------------------------------------------------------------
(ns devtools.reporter (:require-macros [devtools.oops :refer [oget]]) (:require [devtools.util :as util])) (def issues-url "-devtools/issues") (defn report-internal-error! [e & [context footer]] (try (let [message (if (instance? js/Error e) (or (.-message e) e) e) ...
89ad522302092a1b25cffc97dd5dd66875b440c218f4478196e31d3f8ed00fdc
tweag/hyperion
Analysis.hs
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} module Hyperion.Analysis ( Parameter(..) , identifiers , analyze ) where import Control.Lens ( Contravariant(..) , Fold , ala , foldMapOf , folded , to ) import Control.Lens.Each import Data.Monoid import Data.Traversable (for) impo...
null
https://raw.githubusercontent.com/tweag/hyperion/4b123d51cbd4d94891fa1097b5f52bac19839357/src/Hyperion/Analysis.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # ^ Benchmark identifier. ^ Measurements.
module Hyperion.Analysis ( Parameter(..) , identifiers , analyze ) where import Control.Lens ( Contravariant(..) , Fold , ala , foldMapOf , folded , to ) import Control.Lens.Each import Data.Monoid import Data.Traversable (for) import Hyperion.Benchmark import Hyperion.Internal import Hyperion....
8db3cc66fe41be6270feb639137a1456692d81c8f28239d2fa4a131887152a0e
YoshikuniJujo/test_haskell
SampleType.hs
# LANGUAGE TemplateHaskell # # LANGUAGE RankNTypes , TypeApplications # # LANGUAGE DataKinds # # LANGUAGE KindSignatures # # LANGUAGE AllowAmbiguousTypes # # OPTIONS_GHC -Wall -fno - warn - tabs # module CEnum.SampleType where import Language.Haskell.TH import TypeValues import qualified CEnum.Sample as E typeValu...
null
https://raw.githubusercontent.com/YoshikuniJujo/test_haskell/25ba89f439b7c1e25679befc0966e120556dcdbd/tribial/tribial-trials/src/CEnum/SampleType.hs
haskell
# LANGUAGE TemplateHaskell # # LANGUAGE RankNTypes , TypeApplications # # LANGUAGE DataKinds # # LANGUAGE KindSignatures # # LANGUAGE AllowAmbiguousTypes # # OPTIONS_GHC -Wall -fno - warn - tabs # module CEnum.SampleType where import Language.Haskell.TH import TypeValues import qualified CEnum.Sample as E typeValu...
e47f9694f8b5d15939a6ad6cc31abe1249af51211e873d8808d006ddff6b3b97
dedbox/racket-neuron
messaging.rkt
#lang racket/base (require neuron/event neuron/exchanger neuron/process neuron/process/exchanger racket/contract/base) (provide (contract-out [give (->* (process?) (any/c) boolean?)] [take (-> any/c)] [recv (-> process? any/c)] [emit (->* () (any/c) void?)] [call (-> process? any/c any/c)] [forward-...
null
https://raw.githubusercontent.com/dedbox/racket-neuron/a8ecafec0c6398c35423348cb02ec229869c8b15/neuron-lib/process/messaging.rkt
racket
Commands Events Commands Events
#lang racket/base (require neuron/event neuron/exchanger neuron/process neuron/process/exchanger racket/contract/base) (provide (contract-out [give (->* (process?) (any/c) boolean?)] [take (-> any/c)] [recv (-> process? any/c)] [emit (->* () (any/c) void?)] [call (-> process? any/c any/c)] [forward-...
e961653ecaba17b8f580e4f6337851791c2c093958d27065e1d71319edeaaf58
brown/base
syntax.lisp
Copyright 2011 Google Inc. All Rights Reserved ;;;; Redistribution and use in source and binary forms, with or without ;;;; modification, are permitted provided that the following conditions are ;;;; met: ;;;; * Redistributions of source code must retain the above copyright ;;;; notice, this list of condition...
null
https://raw.githubusercontent.com/brown/base/e7a1233771c00fe4e178427872968d5a849df525/syntax.lisp
lisp
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form mus...
Copyright 2011 Google Inc. All Rights Reserved * Neither the name of Google Inc. nor the names of its " 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 THEORY O...
438ec0db7f03bd5a71df7e3b462065bfd87a01b8357e43603cc4c33aa010865d
blynn/compiler
Base.hs
GHC - compatible version . module Base where import qualified Data.Char (chr, ord, isSpace) hide_prelude_here = hide_prelude_here chr = Data.Char.chr ord = Data.Char.ord isSpace = Data.Char.isSpace first f (x, y) = (f x, y) second f (x, y) = (x, f y) infixl 3 <|> instance Alternative Maybe where empty = Nothing ; ...
null
https://raw.githubusercontent.com/blynn/compiler/a459e11fea0b726e0fbde5f3224856caddfa4503/inn/Base.hs
haskell
GHC - compatible version . module Base where import qualified Data.Char (chr, ord, isSpace) hide_prelude_here = hide_prelude_here chr = Data.Char.chr ord = Data.Char.ord isSpace = Data.Char.isSpace first f (x, y) = (f x, y) second f (x, y) = (x, f y) infixl 3 <|> instance Alternative Maybe where empty = Nothing ; ...
567482193bbf459d66f60d244ff78d319fb8a1418da2da64d46fb0fbf28ea53b
ocaml-flambda/flambda-backend
flambda_parser.mli
(* The type of tokens. *) type token = | TILDE | SYMBOL of (Fexpr.compilation_unit option * string) | STRING of (string) | STATIC_CONST_FLOAT_BLOCK | STATIC_CONST_FLOAT_ARRAY | STATIC_CONST_BLOCK | STARDOT | STAR | SLASHDOT | SLASH | SEMICOLON | RPAREN | RBRACKPIPE | RBRACK | RBRACE |...
null
https://raw.githubusercontent.com/ocaml-flambda/flambda-backend/e2711acd740fb85b2672c8c72e07d3558edd1b57/middle_end/flambda2/parser/flambda_parser.mli
ocaml
The type of tokens. This exception is raised by the monolithic API functions. The monolithic API. The incremental API. The entry point(s) to the incremental API.
type token = | TILDE | SYMBOL of (Fexpr.compilation_unit option * string) | STRING of (string) | STATIC_CONST_FLOAT_BLOCK | STATIC_CONST_FLOAT_ARRAY | STATIC_CONST_BLOCK | STARDOT | STAR | SLASHDOT | SLASH | SEMICOLON | RPAREN | RBRACKPIPE | RBRACK | RBRACE | QMARKDOT | QMARK | PR...
2efb460f1083999c715f307b088a1bc4e880c3245c001efacd0ee1ba5fe37c9b
haskell-foundation/foundation
Parser.hs
-- | CSV parser as specified in RFC4180 -- {-# LANGUAGE OverloadedStrings #-} # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module Foundation.Format.CSV.Parser ( file , recordC , record , record_ , field ) where import Basement.Imports hiding (...
null
https://raw.githubusercontent.com/haskell-foundation/foundation/58568e9f5368170d272000ecf16ef64fb91d0732/foundation/Foundation/Format/CSV/Parser.hs
haskell
| CSV parser as specified in RFC4180 # LANGUAGE OverloadedStrings # # NOINLINE textdataQuoted # textdata :: String textdata = fromList $ [' '..'!'] <> ['#'..'+'] <> ['-'..'~'] {-# NOINLINE textdata #
# LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module Foundation.Format.CSV.Parser ( file , recordC , record , record_ , field ) where import Basement.Imports hiding (throw) import Foundation.Format.CSV.Types import Basement.String (snoc) import...
1421190719c01b4b96a854e94a9be897bbaf17e435c433a6dfd38a40d27ef507
haskell-suite/haskell-src-exts
RCategory2.hs
# LANGUAGE TypeFamilies , ConstraintKinds # import GHC.Prim class RCategory cat where type RCategoryCtxt cat a b :: Constraint
null
https://raw.githubusercontent.com/haskell-suite/haskell-src-exts/84a4930e0e5c051b7d9efd20ef7c822d5fc1c33b/tests/examples/RCategory2.hs
haskell
# LANGUAGE TypeFamilies , ConstraintKinds # import GHC.Prim class RCategory cat where type RCategoryCtxt cat a b :: Constraint
fdf35e35a81559a391f562e6034356e2628946447c6101125c3074f4cbc9e6ee
brick-lang/kekka
importMap.ml
open Core open Common open Common.Util (** * Maps short module aliases @core@ to full module paths @std/core@. * It is represented as a map from a reversed list of module path components to a full name * i.e. import my/core = std/core -> [(["core","my"], "std/core"); ...] *) type t = (Name.t list * Na...
null
https://raw.githubusercontent.com/brick-lang/kekka/7ede659ffb49959b140e6ab0a72d38ff6c63311b/kindEngine/importMap.ml
ocaml
* * Maps short module aliases @core@ to full module paths @std/core@. * It is represented as a map from a reversed list of module path components to a full name * i.e. import my/core = std/core -> [(["core","my"], "std/core"); ...] make sure it's not already there
open Core open Common open Common.Util type t = (Name.t list * Name.t) list let empty = [] let extend name fq_name (imp_map:t) = let rpath = List.rev @@ Name.split_module_name name in if List.Assoc.mem imp_map rpath ~equal:(List.equal Name.equal) then None else Some((rpath,fq_name)::imp_map) * ...
cd0421ae8359b529f0245117f9327b809d05afb68e3c1012d83e798bbc114c3d
basho/riak_cs
select_gc_bucket.erl
# ! /usr / bin / env escript %% --------------------------------------------------------------------- %% Copyright ( c ) 2015 Basho Technologies , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in complian...
null
https://raw.githubusercontent.com/basho/riak_cs/c0c1012d1c9c691c74c8c5d9f69d388f5047bcd2/priv/tools/internal/select_gc_bucket.erl
erlang
--------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permiss...
# ! /usr / bin / env escript Copyright ( c ) 2015 Basho Technologies , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTI...
66578093a80a59b2f075a355afbca5f66d92b49732e7b944fcbdcf4f95ea4b7d
mzp/coq-ide-for-ios
configwin_types.ml
(*********************************************************************************) Cameleon (* *) Copyright ( C ) 2005 Institut National de Recherche en Informatiqu...
null
https://raw.githubusercontent.com/mzp/coq-ide-for-ios/4cdb389bbecd7cdd114666a8450ecf5b5f0391d3/coqlib/ide/utils/configwin_types.ml
ocaml
******************************************************************************* en Automatique. All rights reserved. ...
Cameleon Copyright ( C ) 2005 Institut National de Recherche en Informatique et it under the terms of the GNU Library General Public License as published by the Free Software Foundation ; either version 2 of the ...
e05f11bbfc501be199fb1fbc9432c58a7c6ed117f7e9a44dbfd49736e15c9c89
runtimeverification/haskell-backend
NewUnifier.hs
| Copyright : ( c ) Runtime Verification , 2022 License : BSD-3 - Clause Unification algorithm based on " Competing for the AC - Unification Race " ( ) and " Combining Unification Algorithms " ( ) by . We have taken some adjustments for ACU unification from the codebase as well . ( -CSL/Ma...
null
https://raw.githubusercontent.com/runtimeverification/haskell-backend/5623b56039f03de68e76ccdee5359dc2058bc9d0/kore/src/Kore/Unification/NewUnifier.hs
haskell
exported for debugging and testing this fold is rather tricky. We might have a unification problem that looks something like this: (free) ------ (ac equation) ------------- (ac solution) ---------- Elem2 = V1 M2 = V2 variables to variables. However, there are multiple ways of doing this. etc. From a un...
| Copyright : ( c ) Runtime Verification , 2022 License : BSD-3 - Clause Unification algorithm based on " Competing for the AC - Unification Race " ( ) and " Combining Unification Algorithms " ( ) by . We have taken some adjustments for ACU unification from the codebase as well . ( -CSL/Ma...
b43c74c7cbbd11babf8aa3e5b93458e2fd61ae65dac3488ed9b98e9e485fc8fd
iskandr/parakeet-retired
GenericValue_to_Value.mli
open Llvm_executionengine val generic_value_to_parnum : GenericValue.t -> Type.elt_t -> ParNum.t val of_generic_value : ?boxed_scalars:bool -> GenericValue.t -> ImpType.t -> Ptr.t Value.t
null
https://raw.githubusercontent.com/iskandr/parakeet-retired/3d7e6e5b699f83ce8a1c01290beed0b78c0d0945/LLVM/GenericValue_to_Value.mli
ocaml
open Llvm_executionengine val generic_value_to_parnum : GenericValue.t -> Type.elt_t -> ParNum.t val of_generic_value : ?boxed_scalars:bool -> GenericValue.t -> ImpType.t -> Ptr.t Value.t
a8d09de842c34cea8b3cb5b78943acbdce59433bd720a9b92a54fe0400e0aa84
defaultxr/zoned
zoned.lisp
;;;; zoned.lisp (in-package #:zoned) ;;; FIX: look into print-items system for printing?: ;;; -project-of-the-day/2020/07/0145-utilities.print-items.html ;;; theme (FIX: move to mutility?) (defvar *theme* (list :background (make-gray-color 0.3) :foreground +black+ ...
null
https://raw.githubusercontent.com/defaultxr/zoned/c708d4a78e92ea2e3b8035f4779cf9cbb5883c56/src/zoned.lisp
lisp
zoned.lisp FIX: look into print-items system for printing?: -project-of-the-day/2020/07/0145-utilities.print-items.html theme (FIX: move to mutility?) gui (define-presentation-type tile () :options (tile rotation) :inherit-from tile) for the tileset view (defclass tileset-pane (action-gadget application-p...
(in-package #:zoned) (defvar *theme* (list :background (make-gray-color 0.3) :foreground +black+ :grid (make-gray-color 0.8))) (defun get-color (element) "Get the theme's color for a type of GUI element, i.e. :foreground, :background, :accent, etc. See also: `*...
7eb54d1b80876b53c14abf2ffba427e7f06689264d3d0b2616211e0e38b0f72f
ocaml-ppx/ocamlformat
list_ext.mli
include module type of Base.List val partition_map : 'a list -> f:('a -> ('b, 'c) Base.Either.t) -> 'b list * 'c list * [ partition_map t ~f ] partitions [ t ] according to [ f ] . @since @since base.v0.14.0 *)
null
https://raw.githubusercontent.com/ocaml-ppx/ocamlformat/3d1c992240f7d30bcb8151285274f44619dae197/vendor/ocamlformat-stdlib/list_ext.mli
ocaml
include module type of Base.List val partition_map : 'a list -> f:('a -> ('b, 'c) Base.Either.t) -> 'b list * 'c list * [ partition_map t ~f ] partitions [ t ] according to [ f ] . @since @since base.v0.14.0 *)
6da63e5c96429c25452ee23dca47ab3f4ff632aadb2ccdb50a70b87355aa686c
patricoferris/ocaml-ipld
dag_cbor.mli
include Ipld.Codec with type t := CBOR.Simple.t
null
https://raw.githubusercontent.com/patricoferris/ocaml-ipld/84a035dd42b9392a0cb9070ee3ddf18816fce8c1/src/dag-cbor/dag_cbor.mli
ocaml
include Ipld.Codec with type t := CBOR.Simple.t
99389d6ff60418ba4fea6e0d0f418b00cd49aa6faa1d24b75cd3ee7a148a693b
MaartenFaddegon/Hoed
FPretty.hs
# LANGUAGE DeriveGeneric # # LANGUAGE Safe , CPP # -- | -- Module : Text.PrettyPrint.FPretty -- License : BSD3 Maintainer : < > -- Portability : portable -- -- Fast pretty-printing library -- -- A pretty printer turns a tree structure into indented text, such that the -- indentation reflects the tree ...
null
https://raw.githubusercontent.com/MaartenFaddegon/Hoed/8769d69e309928aab439b22bc3f3dbf5452acc77/Text/PrettyPrint/FPretty.hs
haskell
| Module : Text.PrettyPrint.FPretty License : BSD3 Portability : portable Fast pretty-printing library A pretty printer turns a tree structure into indented text, such that the indentation reflects the tree structure. To minimise the number of lines, substructures are put on a single line as far as ...
# LANGUAGE DeriveGeneric # # LANGUAGE Safe , CPP # Maintainer : < > An pretty - printed example with 35 characters line - width : > group ( nest 3 ( > group ( nest 3 ( text " if " < > line < > toDoc e1 ) ) < > line < > > group ( nest 3 ( text " then " < > line < > toDoc e2 ) ) < > line < > ...
e5f3ea1657925f2c809ab93835df45614bf2b7ed611c82b703865bf0a3182c04
static-analysis-engineering/codehawk
bCHDisassembleVLEInstructionTest.ml
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Unit Testing Framework Author : Adapted from : ( ) ------------------------------------------------------------------------------ ...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/87db5929b4e589511d644f84defd1b0a722a05b9/CodeHawk/CHT/CHB_tests/bchlibpower32_tests/txbchlibpower32/bCHDisassembleVLEInstructionTest.ml
ocaml
chutil bchlib bchlibpower32 tchlib bchlib bchlibpower32 b-byte VLE32 opcodes, pc-relative set code extent so checks on absolute code addresses pass
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Unit Testing Framework Author : Adapted from : ( ) ------------------------------------------------------------------------------ ...
92fa50b5dc569ed0ac7f0d0d6df98590f39a904bd280c575ff0b78a994ba60eb
thierry-martinez/stdcompat
string.mli
external length : string -> int = "%string_length" external get : string -> int -> char = "%string_safe_get" external set : string -> int -> char -> unit = "%string_safe_set" external create : int -> string = "caml_create_string" val make : int -> char -> string val copy : string -> string val sub : string -> int -> in...
null
https://raw.githubusercontent.com/thierry-martinez/stdcompat/83d786cdb17fae0caadf5c342e283c3dcfee2279/interfaces/4.00/string.mli
ocaml
external length : string -> int = "%string_length" external get : string -> int -> char = "%string_safe_get" external set : string -> int -> char -> unit = "%string_safe_set" external create : int -> string = "caml_create_string" val make : int -> char -> string val copy : string -> string val sub : string -> int -> in...
c9a0b44cb5f73f661007393b113ab67ebe4b4429c34ac980090bee2c3d89d28f
bigmlcom/sketchy
bits.clj
Copyright 2013 , 2014 BigML Licensed under the Apache License , Version 2.0 ;; -2.0 (ns bigml.sketchy.test.bits (:require [clojure.test :refer :all] (bigml.sketchy [bits :as bits]))) (deftest bits-test (let [[s1 s2] (partition 128 (shuffle (range 256))) bs1 (apply bits/set (bits/create 256...
null
https://raw.githubusercontent.com/bigmlcom/sketchy/f06c6f29035f19bbbdaf86c582fed2722032d283/test/bigml/sketchy/test/bits.clj
clojure
-2.0
Copyright 2013 , 2014 BigML Licensed under the Apache License , Version 2.0 (ns bigml.sketchy.test.bits (:require [clojure.test :refer :all] (bigml.sketchy [bits :as bits]))) (deftest bits-test (let [[s1 s2] (partition 128 (shuffle (range 256))) bs1 (apply bits/set (bits/create 256) s1) ...
0e50fdbb5de693aa22941c7f14c7b7ef1be66bcf75271477405bdfcadaeddc68
heitor-lassarote/iolp
Main.hs
module Main where import Universum import Control.Monad.Logger (liftLoc, runStderrLoggingT) import Data.Default.Class import Database.Persist.Postgresql (ConnectionPool, withPostgresqlPool) import Database.Persist.Sql (runMigration, runSqlPool) import Language.Haskell.TH.Syntax (qLocation) import Network.Wai (Middlew...
null
https://raw.githubusercontent.com/heitor-lassarote/iolp/6284ff7127969b95a841a5d7b2af07aa77a38b2d/code-generator/app/Main.hs
haskell
Create the WAI application and apply middlewares | Warp settings for the given foundation value.
module Main where import Universum import Control.Monad.Logger (liftLoc, runStderrLoggingT) import Data.Default.Class import Database.Persist.Postgresql (ConnectionPool, withPostgresqlPool) import Database.Persist.Sql (runMigration, runSqlPool) import Language.Haskell.TH.Syntax (qLocation) import Network.Wai (Middlew...
33eeedca1f32c5d1385719f5f39c1dd1019e06cd7955bf2912daba50d4a92c76
LaurentMazare/btc-ocaml
address.mli
open Core.Std type t with sexp, bin_io val of_string : string -> t val to_string : t -> string val localhost : t val ipv4 : t -> string option val is_ipv4 : t -> bool val of_ipv4 : string -> t option include Comparable.S with type t := t include Hashable.S with type t := t
null
https://raw.githubusercontent.com/LaurentMazare/btc-ocaml/0616d7853d807e50dc9ff83c6783b80f71640da2/address.mli
ocaml
open Core.Std type t with sexp, bin_io val of_string : string -> t val to_string : t -> string val localhost : t val ipv4 : t -> string option val is_ipv4 : t -> bool val of_ipv4 : string -> t option include Comparable.S with type t := t include Hashable.S with type t := t
4fa3782858c5bb9163cd14e187da616e34e7d5183bb85b06362e4740803dfb83
jbracker/supermonad
Environment.hs
-- | Provides the plugins monadic envionment, -- access to the environment and message printing capabilities. module Control.Super.Plugin.Environment ( -- * Supermonad Plugin Monad SupermonadPluginM , runSupermonadPlugin , runSupermonadPluginAndReturn , runTcPlugin * Supermonad Plugin Environment Acces...
null
https://raw.githubusercontent.com/jbracker/supermonad/2595396a225a65b1dce6ed9a1ce59960f392a55b/src/Control/Super/Plugin/Environment.hs
haskell
| Provides the plugins monadic envionment, access to the environment and message printing capabilities. * Supermonad Plugin Monad * Debug and Error Output import Module ( Module ) ----------------------------------------------------------------------------- Plugin Monad ---------------------------------------...
module Control.Super.Plugin.Environment SupermonadPluginM , runSupermonadPlugin , runSupermonadPluginAndReturn , runTcPlugin * Supermonad Plugin Environment Access , getGivenConstraints, getWantedConstraints , getInstEnvs , getClassDictionary , getClass , isOptionalClass , getCustomState, putCu...
0429c691408ca1a23f7543f88a0d4c5c26b72bb9540c5d6c86f5898f06bb2bbb
nuvla/api-server
credential_totp_2fa.cljc
(ns sixsq.nuvla.server.resources.spec.credential-totp-2fa (:require [clojure.spec.alpha :as s] [sixsq.nuvla.server.resources.spec.credential-template :as ps] [sixsq.nuvla.server.resources.spec.credential-template-totp-2fa :as tmpl-totp] [sixsq.nuvla.server.util.spec :as su])) (s/def ::schema ...
null
https://raw.githubusercontent.com/nuvla/api-server/504512e622e1bd677cbfe2c8b3c15524c2bc8ffe/code/src/sixsq/nuvla/server/resources/spec/credential_totp_2fa.cljc
clojure
(ns sixsq.nuvla.server.resources.spec.credential-totp-2fa (:require [clojure.spec.alpha :as s] [sixsq.nuvla.server.resources.spec.credential-template :as ps] [sixsq.nuvla.server.resources.spec.credential-template-totp-2fa :as tmpl-totp] [sixsq.nuvla.server.util.spec :as su])) (s/def ::schema ...
dd473d1059c2b95538fd9bf3d4faf059c79b9919a2877cd9b6199ac1d4dabc24
serialhex/language-common-lisp
test.lisp
; single-line comment #| multiline comment (defun meh () 'llama) |# #p"llama:" #P"mmoooo" #P"C:\\am\\a/long filepath" #\f ; character #\" ;a quote character! #\0 #\Space #\Newline #\Rubout #\Page #\Tab #\Backspace #\Return #\Linefeed #\Mooberry ; bad character! t nil true nilhism package:foo ;shouldn't i...
null
https://raw.githubusercontent.com/serialhex/language-common-lisp/473f967dcdc39fd28cd6e228b2a72251482c782c/test/test.lisp
lisp
single-line comment multiline comment (defun meh () 'llama) character a quote character! bad character! shouldn't improperly highlight should properly highlight int int yes, int: clhs 2.3.1 Numbers as Tokens ratio ratio float float float float float float float float binary bad binary oct...
#p"llama:" #P"mmoooo" #P"C:\\am\\a/long filepath" #\0 #\Space #\Newline #\Rubout #\Page #\Tab #\Backspace #\Return #\Linefeed t nil true nilhism :nil-word 'symbol 'sym5 #'function-symbol (quote list of 4 symbols) '(list of 3 symbols?) '() "moo(man) 4 " sym5 (defun foo->quix (foo) "i change foos into quixs" ...
1fe78f73b11251722297cb2a39d92675dc2d34898d89d10773f8add0e521487a
HuwCampbell/grenade
PadCrop.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE CPP # # LANGUAGE TemplateHaskell # {-# LANGUAGE DataKinds #-} {-# LANGUAGE KindSignatures #-} # LANGUAGE GADTs # # LANGUAGE ScopedTypeVariables # # OPTIONS_GHC -fno - warn - missing - signatures # module Test.Grenade.La...
null
https://raw.githubusercontent.com/HuwCampbell/grenade/5206c95c423d9755e620f41576470a281ba59c89/test/Test/Grenade/Layers/PadCrop.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE DataKinds # # LANGUAGE KindSignatures #
# LANGUAGE CPP # # LANGUAGE TemplateHaskell # # LANGUAGE GADTs # # LANGUAGE ScopedTypeVariables # # OPTIONS_GHC -fno - warn - missing - signatures # module Test.Grenade.Layers.PadCrop where import Grenade import Hedgehog import Numeric.LinearAlgebra...
f2a36e6947e728a026496746fafd1a2ecee2368fcbfd809302e63328afc41c28
cxxxr/apispec
coerce.lisp
(uiop:define-package #:apispec/tests/classes/schema/coerce (:mix #:apispec/classes/schema/core #:cl) (:use #:apispec/classes/schema/coerce #:apispec/classes/schema/composition #:apispec/classes/schema/errors #:rove) (:import-from #:apispec/classes/schema/validate #:...
null
https://raw.githubusercontent.com/cxxxr/apispec/84ff65795dc1a933d484fd3a6cde6a625f77ac88/tests/classes/schema/coerce.lisp
lisp
(uiop:define-package #:apispec/tests/classes/schema/coerce (:mix #:apispec/classes/schema/core #:cl) (:use #:apispec/classes/schema/coerce #:apispec/classes/schema/composition #:apispec/classes/schema/errors #:rove) (:import-from #:apispec/classes/schema/validate #:...
1fa7ead3bd15e558abeec0076aaceab8d1adf2efe54ea16d3ddd20bf8c6a5832
aigarashi/copl-tools
macroVars.ml
open Parser let v = [ ("e", fun s -> MVEXP s); ("v", fun s -> MVVALUE s); ("env", fun s -> MVENV s); ("s", fun s -> MVSTORE s); ("S", fun s -> MVSTORE s); ]
null
https://raw.githubusercontent.com/aigarashi/copl-tools/3c4da117083a0870334c8eef270206b11060514e/checker/EvalRefML3/macroVars.ml
ocaml
open Parser let v = [ ("e", fun s -> MVEXP s); ("v", fun s -> MVVALUE s); ("env", fun s -> MVENV s); ("s", fun s -> MVSTORE s); ("S", fun s -> MVSTORE s); ]
35f5832350e4d15e709d812e65f89292d7e7f288f5c18ac14bdc531b5279eacd
larrychristensen/orcpub
pedestal.clj
(ns orcpub.pedestal (:require [com.stuartsierra.component :as component] [io.pedestal.http :as http] [pandect.algo.sha1 :refer :all] [ring.middleware.etag :refer [wrap-etag]] [datomic.api :as d] [clojure.string :as s] [clj-time.format :as tf] ...
null
https://raw.githubusercontent.com/larrychristensen/orcpub/e83995857f7e64af1798009a45a0b03abcd3a4be/src/clj/orcpub/pedestal.clj
clojure
(ns orcpub.pedestal (:require [com.stuartsierra.component :as component] [io.pedestal.http :as http] [pandect.algo.sha1 :refer :all] [ring.middleware.etag :refer [wrap-etag]] [datomic.api :as d] [clojure.string :as s] [clj-time.format :as tf] ...
f941f94d9d8a82263735b77c68f72329056b8be88783e23dec03e9573f5c1820
abcdw/rde
channels-local.scm
(use-modules (guix ci) (guix channels)) (list (channel (name 'guix) (url "file") (introduction (make-channel-introduction "9edb3f66fd807b096b48283debdcddccfea34bad" (openpgp-fingerprint "BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA")))) (channel (name 'rde) (url "/~abcdw/...
null
https://raw.githubusercontent.com/abcdw/rde/d5f073fe9802eb5dec9f682ecb73cfe218eed060/examples/rde/channels-local.scm
scheme
(use-modules (guix ci) (guix channels)) (list (channel (name 'guix) (url "file") (introduction (make-channel-introduction "9edb3f66fd807b096b48283debdcddccfea34bad" (openpgp-fingerprint "BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA")))) (channel (name 'rde) (url "/~abcdw/...
ec50a218b4d92594d1fee9b2bbb839d3be1f6c74ddf88c97a6092af9a01da560
dfithian/hit
Command.hs
module Command where import Prelude import Data.Text (Text, unpack) import System.Directory (doesDirectoryExist, getCurrentDirectory, listDirectory) import System.FilePath.Posix ((</>), takeDirectory) import qualified Data.Text.ANSI as Text.ANSI import qualified Types as T data Recurse = RecurseNone | RecurseOn...
null
https://raw.githubusercontent.com/dfithian/hit/9f8653a2e773c6304462c53bc99ef23991319e19/src/Command.hs
haskell
|Fold over directories and accumulate the ones that contain a `.git` folder or whose children contain a `.git` folder up to the specified recursion depth. |Interpret subdirs. If a project is specified by `name` in `main.hs`, then we interpret the subdirs to be the ones from that project's config. If not, check the ...
module Command where import Prelude import Data.Text (Text, unpack) import System.Directory (doesDirectoryExist, getCurrentDirectory, listDirectory) import System.FilePath.Posix ((</>), takeDirectory) import qualified Data.Text.ANSI as Text.ANSI import qualified Types as T data Recurse = RecurseNone | RecurseOn...
337d92046cfb0caa8c10074c1c8b7ce31bf37b79a71e3c794772908d1778b1f6
zmaril/callcongressnow
views.clj
(ns callcongressnow.views (:use [hiccup core page])) (defn page [nstr] (html5 [:head [:title "Call Congress Now"] (include-css "/css/bootstrap.min.css") (include-css "/css/index.css") (include-js "//static.twilio.com/libs/twiliojs/1.1/twilio.min.js") (include-js "/js/react.js")] [:body ...
null
https://raw.githubusercontent.com/zmaril/callcongressnow/c6a9eef9fd02b8141e87f34ff73a128c0d9cdc7f/src/clj/callcongressnow/views.clj
clojure
(ns callcongressnow.views (:use [hiccup core page])) (defn page [nstr] (html5 [:head [:title "Call Congress Now"] (include-css "/css/bootstrap.min.css") (include-css "/css/index.css") (include-js "//static.twilio.com/libs/twiliojs/1.1/twilio.min.js") (include-js "/js/react.js")] [:body ...
f090efb3cfce19b749c57d562dcc05ff9557e0009cd0510f6a333eb040cf5066
MinaProtocol/mina
user_command_input.ml
open Mina_base open Signature_lib open Mina_numbers open Core_kernel open Async_kernel module Payload = struct module Common = struct [%%versioned module Stable = struct module V2 = struct type t = ( Currency.Fee.Stable.V1.t , Public_key.Compressed.Stable.V1.t , Ac...
null
https://raw.githubusercontent.com/MinaProtocol/mina/34961ab38efc5608c41e384489644948cad815a4/src/lib/user_command_input/user_command_input.ml
ocaml
User did not provide a nonce, use inferred Multiple user commands from the same fee-payer. If the receiver account doesn't exist yet (as far as we can tell) *and* the * user command isn't sufficient to cover the account creation fee, log a * warning.
open Mina_base open Signature_lib open Mina_numbers open Core_kernel open Async_kernel module Payload = struct module Common = struct [%%versioned module Stable = struct module V2 = struct type t = ( Currency.Fee.Stable.V1.t , Public_key.Compressed.Stable.V1.t , Ac...
94fbbfcefdb3f8d6fda1f266309c9178196941b871fbfb909936e33fd1e4b349
fogfish/datum
m_io.erl
%% Copyright 2016 , All Rights Reserved %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicable law or agreed to in writing...
null
https://raw.githubusercontent.com/fogfish/datum/f5e8f0b5deb8b74d6febe046333dbb4f38b086d8/src/monad/m_io.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language g...
Copyright 2016 , All Rights Reserved Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , IO monad -module(m_io). -export([unit/1, fail/1, '>>='/2]). -type m(A) :: fun(( ) -> A). -type f(A, B) :: fun((A) -> m(B)...
bd69cc31d3b2bde1a13657c204e1d3293fa557496f136aded7edb829840237d7
UnixJunkie/orf
feature_vector.mli
(** A [feature] is accessed via its (integer) index. *) type feature = int (** ['a t] is the type of a feature vector with feature indexes of type [int] and values of type ['a]. *) type 'a t (** Iterate on a feature vector. *) val iter: (feature -> 'a -> unit) -> 'a t -> unit * The zero feature vector . val zer...
null
https://raw.githubusercontent.com/UnixJunkie/orf/0374638871d5faa2f0f377422177920806887d0e/src/feature_vector.mli
ocaml
* A [feature] is accessed via its (integer) index. * ['a t] is the type of a feature vector with feature indexes of type [int] and values of type ['a]. * Iterate on a feature vector. * [get feat vec] returns the value associated to [feat] in the integer-valued vector [vec].
type feature = int type 'a t val iter: (feature -> 'a -> unit) -> 'a t -> unit * The zero feature vector . val zero: unit -> 'a t val get: feature -> int t -> int * [ set feat ] sets the feature at index [ feat ] to value [ val ] in vector [ vec ] . in vector [vec]. *) val set: feature -> 'a -> 'a t -...
4800fc473c9c0dd1eb7f4c0b695d02bdca65fc2614974cc171d2302cd7e26759
quicklisp/quicklisp-controller
ng-indexes.lisp
;;;; ng-indexes.lisp (in-package #:quicklisp-controller) (defclass controller-dist-object () ((name :initarg :name :reader name))) (defclass controller-dist (controller-dist-object) ((provided-releases :initarg :provided-releases :initform nil :accessor provided-releases) (system-table ...
null
https://raw.githubusercontent.com/quicklisp/quicklisp-controller/9fc95237f0f2f86cafc3afb2f1e7666610e8561b/ng-indexes.lisp
lisp
ng-indexes.lisp
(in-package #:quicklisp-controller) (defclass controller-dist-object () ((name :initarg :name :reader name))) (defclass controller-dist (controller-dist-object) ((provided-releases :initarg :provided-releases :initform nil :accessor provided-releases) (system-table :initarg :system-tab...
8c9d9b8b45c2e6f914f343e5e7b75f09be3350f44cdeb314205d0bb4a8d7196a
nervous-systems/chemtrack-example
util.cljs
(ns chemtrack.backend.util (:require [cljs.core.async :as async :refer [<!]] [eulalie.instance-data :as instance-data] [eulalie.lambda.util :as lambda] [cljs.reader] [clojure.string :as str]) (:require-macros [cljs.core.async.macros :refer [go]])) (defn sighting-in [...
null
https://raw.githubusercontent.com/nervous-systems/chemtrack-example/b547a0a42c678704a68a9889d22900e5490cdcf0/backend/chemtrack/backend/util.cljs
clojure
(ns chemtrack.backend.util (:require [cljs.core.async :as async :refer [<!]] [eulalie.instance-data :as instance-data] [eulalie.lambda.util :as lambda] [cljs.reader] [clojure.string :as str]) (:require-macros [cljs.core.async.macros :refer [go]])) (defn sighting-in [...
7092e44fa6bf20213242c7eb1d2c359ac8b450b534ed76186b185bfc052ce8f8
ayazhafiz/plts
vm_fiber.mli
type t type word (** A single cell of data on the stack *) type block (** Opaque block of [word]s from the stack. *) val empty_block : block * Zero - sized [ block ] . type value = int val show_value : value -> string val vals_of_block : block -> value list val make : ret:int -> arg:block -> t * Creates a new fib...
null
https://raw.githubusercontent.com/ayazhafiz/plts/fd0811198c063c5f792b8f1257a9020e4b689383/co_lc/vm_fiber.mli
ocaml
* A single cell of data on the stack * Opaque block of [word]s from the stack. * Pops an word off the fiber's stack. * Pops an integer off the fiber's stack. * [pop_block fiber n] pops a [block] of n words off the top of the stack. * Modifies an integer in-place on the top of the fiber's stack. * Pushes a value g...
type t type word type block val empty_block : block * Zero - sized [ block ] . type value = int val show_value : value -> string val vals_of_block : block -> value list val make : ret:int -> arg:block -> t * Creates a new fiber of a given return size , and with a block of values positioned in calling - conv...