_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
c1c51a55cacfc666e594e8fb2c26da4f867c2afbde4ecbb914163f2d279ad676
vernemq/vernemq
vmq_generic_msg_store_app.erl
Copyright 2019 Octavo Labs AG Zurich Switzerland ( ) %% 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/vernemq/vernemq/eb1a262035af47e90d9edf07f36c1b1503557c1f/apps/vmq_generic_msg_store/src/vmq_generic_msg_store_app.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing perm...
Copyright 2019 Octavo Labs AG Zurich Switzerland ( ) Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(vmq_generic_msg_store_app). -behaviour(application). -export([start/2, stop/1]). start(_StartType, _StartArgs...
53daad55110c4276f96de62798627c1a4943e83d2cc1ec7b8049a3341281d9b9
qfpl/applied-fp-course
CommentText.hs
module Level04.Types.CommentText ( CommentText , mkCommentText , getCommentText ) where import Waargonaut.Encode (Encoder) import qualified Waargonaut.Encode as E import Level04.Types.Error (Error (EmptyCommentText), non...
null
https://raw.githubusercontent.com/qfpl/applied-fp-course/d5a94a9dcee677bc95a5184c2ed13329c9f07559/src/Level04/Types/CommentText.hs
haskell
| We will use this function to describe how we would like our `CommentText` type to be encoded into JSON. Waargonaut knows how to encode a `Text` value, we need a way of telling it how to unwrap our newtype to encode the `Text` value inside. then run the `Text` encoder using that value as input before returning ...
module Level04.Types.CommentText ( CommentText , mkCommentText , getCommentText ) where import Waargonaut.Encode (Encoder) import qualified Waargonaut.Encode as E import Level04.Types.Error (Error (EmptyCommentText), non...
b9218c5725799d767f2a993e12d300c379d7ef03cd9544d0aa45ca01f4e4a200
ananthakumaran/eopl
18.clj
( swapper s1 s2 ) returns a list the same as slist , but with all ;; occurrences of s1 replaced by s2 and all occurences of s2 replaced by s1. (ns eopl.chap-1.18 (:use clojure.test)) (defn swapper [s1 s2 slist] (map (fn [x] (if (symbol? x) (cond (= s1 x) s2 (= s2 x) s1 ...
null
https://raw.githubusercontent.com/ananthakumaran/eopl/876d6c2e44865e2c89a05a683d99a289c71f1487/src/eopl/chap_1/18.clj
clojure
occurrences of s1 replaced by s2 and all occurences of s2 replaced by s1.
( swapper s1 s2 ) returns a list the same as slist , but with all (ns eopl.chap-1.18 (:use clojure.test)) (defn swapper [s1 s2 slist] (map (fn [x] (if (symbol? x) (cond (= s1 x) s2 (= s2 x) s1 :else x) (swapper s1 s2 x))) slist)) (deftest...
c639dc4e5128e753cee4ec8cfdb8410c42d2ae5b6f9ff2a7087712a4292cbe3c
tlehman/sicp-exercises
ex-1.02.scm
Exercise 1.2 : Translate the following expression into prefix form ; 5 + 4 + ( 2 - ( 3 - ( 6 + 4/5 ) ) ) ; ----------------------------- ; 3(6 - 2)(2 - 7) ; (/ (+ 5 4 (- 2 (- 3 (+ 6 (/ 4 5))))) (* 3 (- 6 2) (- 2 7)))
null
https://raw.githubusercontent.com/tlehman/sicp-exercises/57151ec07d09a98318e91c83b6eacaa49361d156/ex-1.02.scm
scheme
----------------------------- 3(6 - 2)(2 - 7)
Exercise 1.2 : Translate the following expression into prefix form 5 + 4 + ( 2 - ( 3 - ( 6 + 4/5 ) ) ) (/ (+ 5 4 (- 2 (- 3 (+ 6 (/ 4 5))))) (* 3 (- 6 2) (- 2 7)))
5eb43d1c787e7a215fd08b543f558918c787b9114532afe10457f899c319901b
clojure-interop/java-jdk
WebServiceFeature.clj
(ns javax.xml.ws.WebServiceFeature "A WebServiceFeature is used to represent a feature that can be enabled or disabled for a web service. The JAX-WS specification will define some standard features and JAX-WS implementors are free to define additional features if necessary. Vendor specific features may not ...
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.xml/src/javax/xml/ws/WebServiceFeature.clj
clojure
(ns javax.xml.ws.WebServiceFeature "A WebServiceFeature is used to represent a feature that can be enabled or disabled for a web service. The JAX-WS specification will define some standard features and JAX-WS implementors are free to define additional features if necessary. Vendor specific features may not ...
f42e0dcc7f32cc517fdaeb436ec5b3cb21dcd897110146cd50429ed00222bb5c
zed-throben/erlangeos
test_loop.erl
- module('test_loop'). - compile(export_all). test() -> A = eos_loop:times(fun () -> eosstd:puts("*") end,5), B = eos_loop:times(fun (N) -> eosstd:puts(eosstd:fmt("* ~s",[eosstd:to_str(N)])), (fun()->EOSSYS@t_4 = N == 3 , if EOSSYS@t_4 -> e...
null
https://raw.githubusercontent.com/zed-throben/erlangeos/44e50e442f5d396c69ae90db530b0b60b01d692a/test/test_loop.erl
erlang
- module('test_loop'). - compile(export_all). test() -> A = eos_loop:times(fun () -> eosstd:puts("*") end,5), B = eos_loop:times(fun (N) -> eosstd:puts(eosstd:fmt("* ~s",[eosstd:to_str(N)])), (fun()->EOSSYS@t_4 = N == 3 , if EOSSYS@t_4 -> e...
7231ac8bed87778e6c83bf02ca8dec282e223d9e7a40bfd78ad489afddbd49d5
racket/racket7
contract.rkt
#lang racket/base (require racket/contract/base (for-template racket/base racket/contract/base syntax/location) syntax/srcloc syntax/modcollapse racket/syntax) (provide/contract [wrap-expr/c (->* (syntax? syntax?) (#:positive (...
null
https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/collects/syntax/contract.rkt
racket
FIXME: extend collapse-module-path-index to accept #f, return rel mod path module-path-index
#lang racket/base (require racket/contract/base (for-template racket/base racket/contract/base syntax/location) syntax/srcloc syntax/modcollapse racket/syntax) (provide/contract [wrap-expr/c (->* (syntax? syntax?) (#:positive (...
550fa666945cae72dae2903d5ac015c6b72641947582dced9bf4f33e8cc9bfbb
helium/erlang-hbbft
hbbft_acs.erl
-module(hbbft_acs). -export([init/4, input/2, handle_msg/3, serialize/1, deserialize/2, status/1]). -ifdef(TEST). -export([sort_bba_msgs/1]). -endif. -record(rbc_state, { rbc_data :: hbbft_rbc:rbc_data(), result :: undefined | binary() }). -record(bba_state, { bba_data :: hbbf...
null
https://raw.githubusercontent.com/helium/erlang-hbbft/16a75ba127b745ae8b062b19de0f10dc70e25564/src/hbbft_acs.erl
erlang
instantiate all the RBCs upon receiving input vi , input vi to RBCi Figure4, Bullet3 Figure4, Bullet4 Wait for the output vj for each RBCj such that j∈C. Finally output ∪j∈Cvj. successful_bba_count can be 0 Helper functions for serialization/deserialization
-module(hbbft_acs). -export([init/4, input/2, handle_msg/3, serialize/1, deserialize/2, status/1]). -ifdef(TEST). -export([sort_bba_msgs/1]). -endif. -record(rbc_state, { rbc_data :: hbbft_rbc:rbc_data(), result :: undefined | binary() }). -record(bba_state, { bba_data :: hbbf...
4f82dbea57bd06878a1e9cc18ac5f0ba06a585f46d3854d3d5bcdd0db7a0327d
aeternity/aesim
aesim_connection.erl
-module(aesim_connection). %=== INCLUDES ================================================================== -include_lib("stdlib/include/assert.hrl"). -include("aesim_types.hrl"). %=== BEHAVIOUR DEFINITION ====================================================== -callback parse_options(Opts, Sim) -> Sim when Opts...
null
https://raw.githubusercontent.com/aeternity/aesim/20d89621a0994e1b6cf2b766d188ec29283e77e1/src/aesim_connection.erl
erlang
=== INCLUDES ================================================================== === BEHAVIOUR DEFINITION ======================================================
-module(aesim_connection). -include_lib("stdlib/include/assert.hrl"). -include("aesim_types.hrl"). -callback parse_options(Opts, Sim) -> Sim when Opts :: map(), Sim :: sim(). -callback conn_new(Context, Sim) -> {State, Sim} when Context :: context(), State :: term(), Sim :: sim(). -ca...
c6d0f26d382ff460177d03290dfed3b8a771ec71002de8841f01ed0225690853
fccm/glMLite
LablGL.ml
open GL ;; module Gl = struct let enable cap = let cap = match cap with |`alpha_test -> GL_ALPHA_TEST |`auto_normal -> GL_AUTO_NORMAL |`blend -> GL_BLEND |`clip_plane0 -> GL_CLIP_PLANE0 |`clip_plane1 -> GL_CLIP_PLANE1 |`clip_plane2 ...
null
https://raw.githubusercontent.com/fccm/glMLite/c52cd806909581e49d9b660195576c8a932f6d33/LablGL/LablGL.ml
ocaml
-> GL_TEXTURE_3D -> GL_TEXTURE_3D TODO val polygon_stipple : GlPix.bitmap -> unit -> Get.GL_COLOR_MATRIX -> Get.GL_TRANSPOSE_COLOR_MATRIX -> Get.GL_TRANSPOSE_MODELVIEW_MATRIX -> Get.GL_TRANSPOSE_PROJECTION_MATRIX ...
open GL ;; module Gl = struct let enable cap = let cap = match cap with |`alpha_test -> GL_ALPHA_TEST |`auto_normal -> GL_AUTO_NORMAL |`blend -> GL_BLEND |`clip_plane0 -> GL_CLIP_PLANE0 |`clip_plane1 -> GL_CLIP_PLANE1 |`clip_plane2 ...
4e40ebba86ae09ed1eecd75d6ff852fa3cdd2e94f3c0c4251c56ad7a47cd2312
janestreet/ppx_fields_conv
test.mli
(* sample mli showing everything that 'with fields' introduces *) NOTES : - ( 1 ) this file was hand generated and can therefore get out of sync with the actual interface of the generated code . - ( 2 ) The file generated_test.mli does not have this problem as it is generated by ocamlp4o f...
null
https://raw.githubusercontent.com/janestreet/ppx_fields_conv/64e644e97ae58cad9b9cc675e12525ad5c66d9a1/example/test.mli
ocaml
sample mli showing everything that 'with fields' introduces symbol : string; symbol : string; symbol : string;
NOTES : - ( 1 ) this file was hand generated and can therefore get out of sync with the actual interface of the generated code . - ( 2 ) The file generated_test.mli does not have this problem as it is generated by ocamlp4o from the file test.mli - ( 3 ) The types we list here are actu...
062f9041bcd25db699f153681a4d62de9f3ff219d6658c5685cbe0af563a9be0
karimarttila/clojure
server_test.clj
(ns simpleserver.webserver.server-test (:require [clojure.test :refer [deftest use-fixtures is testing]] [clojure.tools.logging :as log] [clojure.data.codec.base64 :as base64] [simpleserver.test-config :as ss-tc] [simpleserver.test-utils.test-service :as ss-test-service...
null
https://raw.githubusercontent.com/karimarttila/clojure/ee1261b9a8e6be92cb47aeb325f82a278f2c1ed3/webstore-demo/integrant-simple-server/test/clj/simpleserver/webserver/server_test.clj
clojure
Next with bad credentials. Rich comment.
(ns simpleserver.webserver.server-test (:require [clojure.test :refer [deftest use-fixtures is testing]] [clojure.tools.logging :as log] [clojure.data.codec.base64 :as base64] [simpleserver.test-config :as ss-tc] [simpleserver.test-utils.test-service :as ss-test-service...
4e15c5581ecbb51cfad4d23640795537a49565e28fcf5dbef5b7805c97742dc7
m4dc4p/haskelldb
quickcheck.hs
import Debug.QuickCheck import Database.HaskellDB import Database.HaskellDB.Database import Dp037.D3proj_time_reports import TestConnect Possible properties : -- optimization does not change result -- lazy and strict give same results -- inserting a row and then retrieving it gives the original values ...
null
https://raw.githubusercontent.com/m4dc4p/haskelldb/a1fbc8a2eca8c70ebe382bf4c022275836d9d510/test/old/quickcheck.hs
haskell
optimization does not change result lazy and strict give same results inserting a row and then retrieving it gives the original values show . read = = i d for records read . show = = i d for records read . show = = i d for records creating a table and describing it gives the orginal spec same operations ...
import Debug.QuickCheck import Database.HaskellDB import Database.HaskellDB.Database import Dp037.D3proj_time_reports import TestConnect Possible properties : Possible properties: -} resultEq :: Eq r => [Row r] -> [Row r] -> Bool resultEq [] [] = True resultEq (Row x:xs) (Row y:ys) = x == y...
ba9e3baf22c8b75eafc1cdc931376e0096a53445d28749fc3bfa417c0b6682ce
iambrj/imin
foo.rkt
#lang typed/racket (define (other-car [x : (Vector Integer (Vector Integer))] [y : (Vector (Vector Integer) Integer)] [z : Integer] [a : Boolean] [b : (Vector Boolean Integer)] [c : (Vector (Vector Integer) (Vector Boolean B...
null
https://raw.githubusercontent.com/iambrj/imin/6ba2c0386199ebe6a20caef4e2fd3b3cf10e6b63/tests/foo.rkt
racket
#lang typed/racket (define (other-car [x : (Vector Integer (Vector Integer))] [y : (Vector (Vector Integer) Integer)] [z : Integer] [a : Boolean] [b : (Vector Boolean Integer)] [c : (Vector (Vector Integer) (Vector Boolean B...
22c65ddb892d1f03d2cacfeab63da85a6fa3bbd63ae7df79cc2b74bc0ad210ac
raviksharma/bartosz-basics-of-haskell
evaluate5.hs
import Data.Char import qualified Data.Map as M import Control.Applicative import Control.Monad (liftM, ap) data Operator = Plus | Minus | Times | Div deriving (Show, Eq) data Token = TokOp Operator | TokAssign | TokLParen | TokRParen | TokIdent String | Tok...
null
https://raw.githubusercontent.com/raviksharma/bartosz-basics-of-haskell/86d40d831f61415ef0022bff7fe7060ae6a23701/11-state-monad/evaluate5.hs
haskell
-- parser ---- -- evaluator ---- show
import Data.Char import qualified Data.Map as M import Control.Applicative import Control.Monad (liftM, ap) data Operator = Plus | Minus | Times | Div deriving (Show, Eq) data Token = TokOp Operator | TokAssign | TokLParen | TokRParen | TokIdent String | Tok...
2889f6779d7f9a7938113943d311dd5b6ab2a2b4cfcdf2b4746480f9e835ce69
SimulaVR/godot-haskell
FileDialog.hs
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.FileDialog (Godot.Core.FileDialog._ACCESS_RESOURCES,...
null
https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/src/Godot/Core/FileDialog.hs
haskell
| Emitted when the user selects a directory. | Emitted when the user selects a file by double-clicking it or pressing the __OK__ button. | Emitted when the user selects multiple files. # NOINLINE bindFileDialog__file_entered # # NOINLINE bindFileDialog__filter_selected # # NOINLINE bindFileDialog__unhandled_input # ...
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.FileDialog (Godot.Core.FileDialog._ACCESS_RESOURCES,...
771144c3bf7fff6301ebb70431d72f01f971ee26d96c8e737a93a1338f37f122
SKA-ScienceDataProcessor/RC
ddp-in-memory-failure.hs
# LANGUAGE TemplateHaskell # module Main(main) where import DNA.Channel.File (readDataMMap) import DNA import DDP import DDP_Slice ---------------------------------------------------------------- -- Distributed dot product ---------------------------------------------------------------- ddpCollector :: CollectActo...
null
https://raw.githubusercontent.com/SKA-ScienceDataProcessor/RC/1b5e25baf9204a9f7ef40ed8ee94a86cc6c674af/MS2/dna-programs/ddp-in-memory-failure.hs
haskell
-------------------------------------------------------------- Distributed dot product -------------------------------------------------------------- | Actor for calculating dot product Vector size: > 4 nodes Run it
# LANGUAGE TemplateHaskell # module Main(main) where import DNA.Channel.File (readDataMMap) import DNA import DDP import DDP_Slice ddpCollector :: CollectActor Double Double ddpCollector = collectActor (\s a -> return $! s + a) (return 0) (return) remotable [ 'ddpCollector ] ddpDotProduct :...
a9e2621b949ccaecb264600ee4c267ddb152fda86115150214336f46b0002fe0
CloudI/CloudI
metrics.erl
%%% -*- erlang -*- %%% This file is part of metrics released under the BSD license . %%% See the LICENSE for more information. %%% -module('metrics'). %% API exports -export([init/1]). -export([ new/3, delete/2, increment_counter/2, increment_counter/3, decrement_counter/2, decrement_counter...
null
https://raw.githubusercontent.com/CloudI/CloudI/3e45031c7ee3e974ead2612ea7dd06c9edf973c9/src/external/cloudi_x_metrics/src/metrics.erl
erlang
-*- erlang -*- See the LICENSE for more information. API exports ==================================================================== API functions ==================================================================== @doc set the module to use for metrics. Types are: counter, histograme, gauge, meter modules ...
This file is part of metrics released under the BSD license . -module('metrics'). -export([init/1]). -export([ new/3, delete/2, increment_counter/2, increment_counter/3, decrement_counter/2, decrement_counter/3, update_histogram/3, update_gauge/3, update_meter/3]). -record(metr...
ba591bd758640f5862ef661bb969aec23eb1dd61274ef96dd48088407bda655a
dpaetzel/aq2ledger
Setup.hs
# LANGUAGE DeriveGeneric # # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} | Module : Aq2Ledger . AqBanking . Setup Description : TODO Copyright : , 2019 License : GPL-3 Maintainer : < > Stability : experimental TODO For now , we require the user to set up Aq...
null
https://raw.githubusercontent.com/dpaetzel/aq2ledger/fd16e0459b83e142a625721b0f6071d28cefc20e/src/Aq2Ledger/AqBanking/Setup.hs
haskell
# LANGUAGE OverloadedStrings # | Data types that are can be converted to CLI arguments. | Possible types of authentication; to be used in automated connection setup. | Configuration of a connection to a bank. ^ The 'Config'-wide unique(!) name for this connection. ^ The login name to be used when connecting. ^ Th...
# LANGUAGE DeriveGeneric # # LANGUAGE NoImplicitPrelude # | Module : Aq2Ledger . AqBanking . Setup Description : TODO Copyright : , 2019 License : GPL-3 Maintainer : < > Stability : experimental TODO For now , we require the user to set up AqBanking manually because there are ...
d114a794587a658c8a7df441863f789794037224da3c648f1ee3ccbb1fe0ce88
zcaudate/hara
struct_test.clj
(ns hara.object.framework.struct-test (:use hara.test) (:require [hara.object.framework.struct :refer :all])) ^{:refer hara.object.framework.struct/getter-function-raw :added "3.0"} (fact "creates a getter function" ((getter-function-raw :bytes) "hello") => bytes?) ^{:refer hara.object.framework.struct/field...
null
https://raw.githubusercontent.com/zcaudate/hara/481316c1f5c2aeba5be6e01ae673dffc46a63ec9/test/hara/object/framework/struct_test.clj
clojure
(ns hara.object.framework.struct-test (:use hara.test) (:require [hara.object.framework.struct :refer :all])) ^{:refer hara.object.framework.struct/getter-function-raw :added "3.0"} (fact "creates a getter function" ((getter-function-raw :bytes) "hello") => bytes?) ^{:refer hara.object.framework.struct/field...
ad732710a015a59b4e47af08c3b4612e794f8c347afdd045af8ed4b1ca3d2f6c
barrel-db/barrel
barrel_system_docs_SUITE.erl
Copyright 2016 , %% 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 distributed under the Li...
null
https://raw.githubusercontent.com/barrel-db/barrel/1695ca4cfe821808526f9ecb2e019bc1b8eff48e/test/barrel_system_docs_SUITE.erl
erlang
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 WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitation...
Copyright 2016 , Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not distributed under the License is distributed on an " AS IS " BASIS , WITHOUT -module(barrel_system_docs_SUITE). -author("Bernard Notarianni"). -export([ all/0, init_per_suite/1, end_per_suite/1, init_pe...
8a93fca8a9aa9f10d67a2eb0ca85fa9152b7e0e3289d2478b66c2d5fece35775
hyperledger-labs/fabric-chaincode-ocaml
conversion.ml
let () = let timestamp = FabricChaincodeShim.Protobuf.Timestamp.make ~seconds:42 () in Printf.printf "%i\n" timestamp.seconds; let encoded = FabricChaincodeShim.Protobuf.Timestamp.to_proto timestamp |> Ocaml_protoc_plugin.Writer.contents in Printf.printf "%S\n" encoded; let decoded = Ocaml_proto...
null
https://raw.githubusercontent.com/hyperledger-labs/fabric-chaincode-ocaml/bef9008ce8a20fb5155a855dc860f9062340b829/fabric-chaincode-shim/tests/conversion.ml
ocaml
let () = let timestamp = FabricChaincodeShim.Protobuf.Timestamp.make ~seconds:42 () in Printf.printf "%i\n" timestamp.seconds; let encoded = FabricChaincodeShim.Protobuf.Timestamp.to_proto timestamp |> Ocaml_protoc_plugin.Writer.contents in Printf.printf "%S\n" encoded; let decoded = Ocaml_proto...
deafde8f8e9a65c1ff6a532a7a0b04180aaa63d177be5cc303846230a661b0dc
bomberstudios/mtasc
png.ml
* PNG File Format Library * Copyright ( c)2005 * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation ; either version 2 of the License , or * ( at your option ) an...
null
https://raw.githubusercontent.com/bomberstudios/mtasc/d7c2441310248776aa89d60f9c8f98d539bfe8de/src/swflib/png.ml
ocaml
RGBA
* PNG File Format Library * Copyright ( c)2005 * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation ; either version 2 of the License , or * ( at your option ) an...
221e0f1be162dd48d177e92add1d236f5e5480dd30ee12e621135e498bcef014
ocaml/dune
main.ml
print_endline "foobar";
null
https://raw.githubusercontent.com/ocaml/dune/4e83d1b80bd9a37de7e0d39d6f22873850314557/test/blackbox-tests/test-cases/empty-modules.t/main.ml
ocaml
print_endline "foobar";
28e0554ba33804cc490d770f685f34b56fa21ee54fcc076bec5b9344e96a774d
coq/coq
cbv.ml
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * *...
null
https://raw.githubusercontent.com/coq/coq/19ac066ffdf4e7fbd03f1b81763d2e6aae5a7278/pretyping/cbv.ml
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team // * This file is distributed under the terms of the * (see LICENSE file for the text of the license) ************************************...
v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser Gener...
9e80df0f57116b13dd07a55c6596194444e7c37c8cfd60f35de9451b2cc878c4
hellonico/origami-fun
background_substraction.clj
(ns opencv4.video.background-sub (:require [opencv4.core :refer :all]) (:require [opencv4.utils :as u]) (:import [org.opencv.video Video])) (def width 200) (def height 150) (def capture (new-videocapture)) (.set capture CAP_PROP_FRAME_WIDTH width) (.set capture CAP_PROP_FRAME_HEIGHT height) (.open capture 0...
null
https://raw.githubusercontent.com/hellonico/origami-fun/80117788530d942eaa9a80e2995b37409fa24889/test/opencv4/video/background_substraction.clj
clojure
(.release capture) opencv based background substraction -demo/blob/master/src/main/java/tk/year/opencv/demo/filters/MorphologyEx.java background filters those seem to be gone (Video/createBackgroundSubtractorMOG) (Video/createBackgroundSubtractorGMG)
(ns opencv4.video.background-sub (:require [opencv4.core :refer :all]) (:require [opencv4.utils :as u]) (:import [org.opencv.video Video])) (def width 200) (def height 150) (def capture (new-videocapture)) (.set capture CAP_PROP_FRAME_WIDTH width) (.set capture CAP_PROP_FRAME_HEIGHT height) (.open capture 0...
87e1a347e5bf546c3f0683963263f11475269025c99b7a6003917c7593bfba97
larrychristensen/orcpub
security.clj
(ns orcpub.security (:require [clj-time.core :as t :refer [ago now minutes hours]])) (defn compare-dates [attempt-1 attempt-2] (compare (:date attempt-1) (:date attempt-2))) (def failed-login-attempts-by-username (atom {})) (def failed-login-attempts-by-ip (atom {})) (defn threshold [] (-> 1 minutes ago)...
null
https://raw.githubusercontent.com/larrychristensen/orcpub/e83995857f7e64af1798009a45a0b03abcd3a4be/src/clj/orcpub/security.clj
clojure
(ns orcpub.security (:require [clj-time.core :as t :refer [ago now minutes hours]])) (defn compare-dates [attempt-1 attempt-2] (compare (:date attempt-1) (:date attempt-2))) (def failed-login-attempts-by-username (atom {})) (def failed-login-attempts-by-ip (atom {})) (defn threshold [] (-> 1 minutes ago)...
b0ef2f4185fbd402661c9dc4c62e001b2ba4fee774fda7a68b0f6bc098fc82fc
Eduap-com/WordMat
mradf3.lisp
;;; Compiled by f2cl version: ( " f2cl1.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl2.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl5.l , v 95098eb54f13 2013/04/01 00:45:16 toy $...
null
https://raw.githubusercontent.com/Eduap-com/WordMat/83c9336770067f54431cc42c7147dc6ed640a339/Windows/ExternalPrograms/maxima-5.45.1/share/maxima/5.45.1/share/fftpack5/lisp/mradf3.lisp
lisp
Compiled by f2cl version: Using Lisp CMU Common Lisp snapshot-2020-04 (21D Unicode) Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t) (:coerce-assigns :as-needed) (:array-type ':array) (:array-slicing t) (:declare-common nil) (:float-format single-float))
( " f2cl1.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl2.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl5.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl6.l , v 1d5cbacbb9...
c8f5274588d114a6acad19f6a1cfa590dc4c4cb7b6d2ac81a2a279f40ca48186
spawnfest/eep49ers
observer_backend.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2002 - 2021 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applic...
null
https://raw.githubusercontent.com/spawnfest/eep49ers/d1020fd625a0bbda8ab01caf0e1738eb1cf74886/lib/runtime_tools/src/observer_backend.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific l...
Copyright Ericsson AB 2002 - 2021 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(observer_backend). -export([vsn/0]). -export([socket_info/0, sys_info/0, get_port_list/0, get_socket_list...
b7edd34efb7c8ca6f1454237df5a4a915676da8ef5b0e79715807de7323bae0f
UU-ComputerScience/uhc
BoundedDeriv2.hs
{- ---------------------------------------------------------------------------------------- what : Bounded class, derived (via generics) expected: ok platform: word size dependent constraints: exclude-if-js ---------------------------------------------------------------------------------------- -} modul...
null
https://raw.githubusercontent.com/UU-ComputerScience/uhc/f2b94a90d26e2093d84044b3832a9a3e3c36b129/EHC/test/regress/99/BoundedDeriv2.hs
haskell
---------------------------------------------------------------------------------------- what : Bounded class, derived (via generics) expected: ok platform: word size dependent constraints: exclude-if-js ----------------------------------------------------------------------------------------
module BoundedDeriv2 where import Data.Int import Data.Word main :: IO () main = do print (minBound :: (Int,Char)) print (maxBound :: (Int,Char)) print (minBound :: (Bool,Int8,Int16,Int32,Int64)) print (maxBound :: (Bool,Int8,Int16,Int32,Int64))
788d4c71c4170fbe5a2b5c0eb7dac1310259d16d34f2cba192183f1fdb747a17
discord-haskell/discord-haskell
Gateway.hs
{-# LANGUAGE OverloadedStrings #-} -- | Provides a rather raw interface to the websocket events through a real - time module Discord.Internal.Gateway ( GatewayHandle(..) , CacheHandle(..) , GatewayException(..) , Cache(..) , startCacheThread , startGatewayThread , module Discord.Internal.Types ) w...
null
https://raw.githubusercontent.com/discord-haskell/discord-haskell/adf1b3bdeabd6a300c315410695c8c7cbb041327/src/Discord/Internal/Gateway.hs
haskell
# LANGUAGE OverloadedStrings # | Provides a rather raw interface to the websocket events | Starts a thread for the cache | Create a Chan for websockets. This creates a thread that
through a real - time module Discord.Internal.Gateway ( GatewayHandle(..) , CacheHandle(..) , GatewayException(..) , Cache(..) , startCacheThread , startGatewayThread , module Discord.Internal.Types ) where import Prelude hiding (log) import Control.Concurrent.Chan (newChan, dupChan, Chan) import...
d45cfc2a6853711af78159e34c12cfc37ce30b7c0b2611c8148b5153c0a6b5e9
turtlegrammar/faconne
genreadme.clj
(ns genreadme (:require [clojure.string :as string])) ;; Intentionally quadratic This was probably more difficult than Faconne 's core logic tbh (defn gen [lines] (let [wrap-src (fn [x] (str "```clj \n" x "\n```")) wrap-header (fn [x] (str "##" x)) wrap-small-header (fn [x] (str "###" x))] (...
null
https://raw.githubusercontent.com/turtlegrammar/faconne/d2827132d7b2d8ffb8dcd59dcae1890251d42bec/scripts/genreadme.clj
clojure
Intentionally quadratic
(ns genreadme (:require [clojure.string :as string])) This was probably more difficult than Faconne 's core logic tbh (defn gen [lines] (let [wrap-src (fn [x] (str "```clj \n" x "\n```")) wrap-header (fn [x] (str "##" x)) wrap-small-header (fn [x] (str "###" x))] (loop [[line & rest-lines] l...
3c441832aa87d488cab3027abefcb16d8055a78ced46ec3ea5653e8e0e3fa7d6
adaliu-gh/htdp
14-245.rkt
;;====================== 245 ;; Function Function -> Boolean determines if two functions are equal (define (function=at-1.2-3-and-5.775? f1 f2) (and (= (f1 1.2) (f2 1.2)) (= (f1 3) (f2 3)) (= (f1 -5.775) (f2 -5.775))))
null
https://raw.githubusercontent.com/adaliu-gh/htdp/a0fca8af2ae8bdcef40d56f6f45021dd92df2995/14-18%20Abstraction/14-245.rkt
racket
====================== Function Function -> Boolean
245 determines if two functions are equal (define (function=at-1.2-3-and-5.775? f1 f2) (and (= (f1 1.2) (f2 1.2)) (= (f1 3) (f2 3)) (= (f1 -5.775) (f2 -5.775))))
575d734b9a111dacd113966e374dccea46681908c2d8e0daf3798a4d3d562f28
xandkar/tiger.ml
tiger_mips_frame.mli
include Tiger_frame_sig.S
null
https://raw.githubusercontent.com/xandkar/tiger.ml/cc540a7e2dfcee4411953075210a64de874b91e5/compiler/src/lib/tiger/tiger_mips_frame.mli
ocaml
include Tiger_frame_sig.S
b86d0375105349b1716df1dc06eab86052e058c768a594b5a511d66a63211fe7
awslabs/s2n-bignum
bignum_nonzero_4.ml
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved . * SPDX - License - Identifier : Apache-2.0 OR ISC * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 OR ISC *) (* =================================================================...
null
https://raw.githubusercontent.com/awslabs/s2n-bignum/824c15f908d7a343af1b2f378cfedd36e880bdde/x86/proofs/bignum_nonzero_4.ml
ocaml
========================================================================= ========================================================================= *** print_literal_from_elf "x86/p256/bignum_nonzero_4.o";; *** OR (% rax) (% rdx) ------------------------------------------------------------------------- Correc...
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved . * SPDX - License - Identifier : Apache-2.0 OR ISC * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 OR ISC *) Deduce if a 256 - bit bignum is nonzero . ...
ee66995e54d2b2667975300802cad045da58c4f156103f8f6c53519202bc661c
jacobstanley/hadoop-tools
Configuration.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # module Hadoop.Tools.Configuration ( getConfig ) where import Control.Applicative ((<|>)) import Control.Monad import qualified Data.Configurator as C import Data.Configurator.Types (W...
null
https://raw.githubusercontent.com/jacobstanley/hadoop-tools/8adc178a599d28f4ee3baedd34397e566f7b3fa6/hadoop-tools/src/Hadoop/Tools/Configuration.hs
haskell
# LANGUAGE OverloadedStrings # | Augments any auto-discovered hadoop configuration parameters with those found in your `hh` config. Derive an username for authentication based on the currently set hdfs username and the principal used by the name node. ----------------------------------------------------------------...
# LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # module Hadoop.Tools.Configuration ( getConfig ) where import Control.Applicative ((<|>)) import Control.Monad import qualified Data.Configurator as C import Data.Configurator.Types (Worth(..)) import Data.Mon...
5ec91bae7c46b34350a48429d342eab5fe22afb975c18d576cdebf37f6933701
startalkIM/ejabberd
p1_utils.erl
%%%------------------------------------------------------------------- @author < > ( C ) 2017 - 2019 %%% @doc %%% %%% @end Created : 8 Mar 2017 by < > %%%------------------------------------------------------------------- -module(p1_utils). -behaviour(application). %% Application callbacks -export([s...
null
https://raw.githubusercontent.com/startalkIM/ejabberd/718d86cd2f5681099fad14dab5f2541ddc612c8b/deps/p1_utils/src/p1_utils.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- Application callbacks =================================================================== Application callbacks =========================================================...
@author < > ( C ) 2017 - 2019 Created : 8 Mar 2017 by < > -module(p1_utils). -behaviour(application). -export([start/2, stop/1]). -export([start/0, stop/0]). start(_StartType, _StartArgs) -> case p1_utils_sup:start_link() of {ok, Pid} -> {ok, Pid}; Error -> Error end. stop(_Stat...
9ee99d7cfbcb11ff580bf57166b9f822b78bf21fe7574d661986bc925cfe7935
mstksg/tensor-ops
NeuralNet.hs
{-# LANGUAGE DataKinds #-} # LANGUAGE PolyKinds # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # {-# LANGUAGE TypeInType #-} module TensorOps.Learn.NeuralNet where import Control.Category hiding (id, (.)) import Data.Singletons import ...
null
https://raw.githubusercontent.com/mstksg/tensor-ops/1958642d60d879e311da14469c3dd09c186b5fda/src/TensorOps/Learn/NeuralNet.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE RankNTypes # # LANGUAGE TypeInType # # INLINE actMap # # INLINE actMap' # # INLINE logistic' #
# LANGUAGE PolyKinds # # LANGUAGE ScopedTypeVariables # module TensorOps.Learn.NeuralNet where import Control.Category hiding (id, (.)) import Data.Singletons import Data.Type.Length import TensorOps.Types import qualified TensorOps.TOp as TO newtype Activation k...
a1fe7b957904355ffe73a2b3e84b760577f58687f4a85f8eff8b27a0e077cb45
rain-1/single_cream
minpred-minus.scm
(procedure? -) (number? -)
null
https://raw.githubusercontent.com/rain-1/single_cream/f8989fde4bfcffe0af7f6ed5916885446bf40124/t/simple/minpred-minus.scm
scheme
(procedure? -) (number? -)
4616d6c5dc4936bf3bdec553d6c09bb99685be9c568ee9597e82aa236275554d
wyager/Neks
Message.hs
module Network.Neks.Message ( parseRequests, formatRequests, parseResponses, formatResponses ) where import Data.ByteString (ByteString) import Network.Neks.Actions (Request(Set, Get, Delete, Atomic), Reply(Found, NotFound)) import qualified Data.Serialize as Serialize import Data.MessagePack (Object(O...
null
https://raw.githubusercontent.com/wyager/Neks/a9eb9bd7eea9f8766dbf7f9eac4d121ca903e454/Network/Neks/Message.hs
haskell
module Network.Neks.Message ( parseRequests, formatRequests, parseResponses, formatResponses ) where import Data.ByteString (ByteString) import Network.Neks.Actions (Request(Set, Get, Delete, Atomic), Reply(Found, NotFound)) import qualified Data.Serialize as Serialize import Data.MessagePack (Object(O...
98cc93324567748aa3b2962269471c4e20976cffb1679b7cfec2060cf21dfd46
fukamachi/getac
indent-stream.lisp
(defpackage #:getac/indent-stream (:use #:cl #:trivial-gray-streams) (:export #:indent-stream #:make-indent-stream #:stream-fresh-line-p #:with-indent)) (in-package #:getac/indent-stream) (defclass indent-stream (trivial-gray-stream-mixin fundamenta...
null
https://raw.githubusercontent.com/fukamachi/getac/94473a0a4adc96b1b055633c6d78e05aa52ead6b/src/indent-stream.lisp
lisp
(defpackage #:getac/indent-stream (:use #:cl #:trivial-gray-streams) (:export #:indent-stream #:make-indent-stream #:stream-fresh-line-p #:with-indent)) (in-package #:getac/indent-stream) (defclass indent-stream (trivial-gray-stream-mixin fundamenta...
3d2432cd6df369cfb6d9e1dbb088e027ce3df88a246f05892495ec0c859431bb
ghc/packages-Cabal
Main.hs
# OPTIONS_GHC -F -pgmF build - tool - exe # import BuildToolLibrary (buildToolLibraryVersion) main = do putStrLn $ "build-tool library version: " ++ show buildToolLibraryVersion ++ "," putStrLn $ "build-tool exe version: " ++ show buildToolExeVersion buildToolExeVersion :: Int buildToolExeVersion = BUILD_TOO...
null
https://raw.githubusercontent.com/ghc/packages-Cabal/6f22f2a789fa23edb210a2591d74ea6a5f767872/cabal-testsuite/PackageTests/Regression/T5409/Main.hs
haskell
# OPTIONS_GHC -F -pgmF build - tool - exe # import BuildToolLibrary (buildToolLibraryVersion) main = do putStrLn $ "build-tool library version: " ++ show buildToolLibraryVersion ++ "," putStrLn $ "build-tool exe version: " ++ show buildToolExeVersion buildToolExeVersion :: Int buildToolExeVersion = BUILD_TOO...
95ec0e5840b4f1679d1d524f688e5d9cb3d0520b8523a512ec2c8818ba099e33
gcross/LogicGrowsOnTrees
Checkpoint.hs
{-# LANGUAGE BangPatterns #-} {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DeriveFunctor # # LANGUAGE DeriveGeneric # {-# LANGUAGE GADTs #-} # LANGUAGE LambdaCase # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE RecordWildCards # # LANGUAGE TemplateHaskell # # LANGUAGE TupleSections # # LANGU...
null
https://raw.githubusercontent.com/gcross/LogicGrowsOnTrees/4befa81eb7152d877a7c78338d21bed61b06db66/LogicGrowsOnTrees/sources/LogicGrowsOnTrees/Checkpoint.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE DeriveDataTypeable # # LANGUAGE GADTs # # LANGUAGE RankNTypes # | This module contains the infrastructure used to maintain a checkpoint during a tree exploration. * Types ** Cursors and contexts $cursors ** Exploration state * Exceptions * Utility functions ** Checkpoin...
# LANGUAGE DeriveFunctor # # LANGUAGE DeriveGeneric # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE RecordWildCards # # LANGUAGE TemplateHaskell # # LANGUAGE TupleSections # # LANGUAGE UnicodeSyntax # # LANGUAGE ViewPatterns # module LogicGrowsOnTrees.Checkpoint ( Checkpoint(..) , P...
4c8942dd2b5282fa458155baee4b56c070d1bc8ef319f92484d94beacd4d2480
haskell-tools/haskell-tools
B.hs
# LANGUAGE TemplateHaskell # module B where import C c'
null
https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/daemon/examples/Project/th-imports-normal/B.hs
haskell
# LANGUAGE TemplateHaskell # module B where import C c'
522fe61482d93944a883aec823c262b49699027fc4f9cadab26a007e2e0bf2be
CrossRef/cayenne
unixref.clj
(ns cayenne.formats.unixref (:require [clj-time.format :as ftime] [clj-time.core :as t] [cayenne.xml :as xml] [cayenne.conf :as conf] [cayenne.ids :as ids] [cayenne.ids.fundref :as fundref] [cayenne.item-tree :as itree] [clojure.tools...
null
https://raw.githubusercontent.com/CrossRef/cayenne/02321ad23dbb1edd3f203a415f4a4b11ebf810d7/src/cayenne/formats/unixref.clj
clojure
----------------------------------------------------------------- Helpers todo rename to parse-attach-rel ----------------------------------------------------------------- Component locators -------------------------------------------------------------------- Dates ----------------------------------------------...
(ns cayenne.formats.unixref (:require [clj-time.format :as ftime] [clj-time.core :as t] [cayenne.xml :as xml] [cayenne.conf :as conf] [cayenne.ids :as ids] [cayenne.ids.fundref :as fundref] [cayenne.item-tree :as itree] [clojure.tools...
2578cc74d3eeb19164ffb16c0eec4a29619eabe525dc45ac3a7137a969d8077a
ijvcms/chuanqi_dev
map_20240.erl
-module(map_20240). -export([ range/0, data/0 ]). range() -> {72, 48}. data() -> { {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1...
null
https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/map_data/map_20240.erl
erlang
-module(map_20240). -export([ range/0, data/0 ]). range() -> {72, 48}. data() -> { {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1...
b776212886729dd9b36d265c9e099e9531ab6fa570df86f6d8b1f7ae8ba63cf2
pkrumins/the-little-mler
04-stars.ml
* * Chapter 4 of The Little MLer : * * Look to the Stars * * * * Code examples assembled by ( ) . * * His blog is at -- good coders code , great reuse . * * * * Get yourself this wonderful book at Amazon : ** Chapter 4 of The Little MLer: ** Look to the Stars ** ** Code examples asse...
null
https://raw.githubusercontent.com/pkrumins/the-little-mler/369745c04daee42a52cf54f48f27cac8092b0f83/04-stars.ml
ocaml
Meza Main Salad Dessert Let's construct a meal! The type of the meal is (meza * main * salad * dessert) What's the type of add_a_steak? It's meza -> (meza * main) Example of add_a_steak We can write it shorter Examples of add_a_steak2 What's the type of add_a_steak2? It's 'a -> ('a *...
* * Chapter 4 of The Little MLer : * * Look to the Stars * * * * Code examples assembled by ( ) . * * His blog is at -- good coders code , great reuse . * * * * Get yourself this wonderful book at Amazon : ** Chapter 4 of The Little MLer: ** Look to the Stars ** ** Code examples asse...
bafd3d14e805b8cac673bcfc57c17a84dc8caafe9e5ec27ea8a51b89349f14a9
marcoheisig/Typo
complex-part-ntype.lisp
(in-package #:typo.ntype) (defmacro define-complex-part-ntype-methods () (let ((complex-classes (class-subclasses (find-class 'complex)))) `(progn ,@(loop for complex-class in complex-classes for class-name = (class-name complex-class) collect `(defmethod compl...
null
https://raw.githubusercontent.com/marcoheisig/Typo/88f2708bbb8f8f8ac2dd19cd153a16c06554a6aa/code/ntype/complex-part-ntype.lisp
lisp
(in-package #:typo.ntype) (defmacro define-complex-part-ntype-methods () (let ((complex-classes (class-subclasses (find-class 'complex)))) `(progn ,@(loop for complex-class in complex-classes for class-name = (class-name complex-class) collect `(defmethod compl...
82f3b7efbeea6c364af839b907cca3d32f4977c8e6c3b5b37289b51007d0d0f1
AndrasKovacs/sett
Test.hs
module Main where import Control.Exception import Control.Monad import Data.List import System.Console.ANSI (setSGRCode) import System.Directory.Recursive import System.Exit import System.FilePath import System.IO import qualified System.Console.ANSI.Codes as ANSI import Paths_sett import Common import MainInteract...
null
https://raw.githubusercontent.com/AndrasKovacs/sett/6d454106f1ad3dd34e3bd44c2ec1705bbbeb6749/test/Test.hs
haskell
NOTE: stack test --coverage
module Main where import Control.Exception import Control.Monad import Data.List import System.Console.ANSI (setSGRCode) import System.Directory.Recursive import System.Exit import System.FilePath import System.IO import qualified System.Console.ANSI.Codes as ANSI import Paths_sett import Common import MainInteract...
63d083d16b124e93ade78d3606345af611605949b49afec73289842a073032d5
openmusic-project/openmusic
sheet.lisp
;========================================================================= OpenMusic : Visual Programming Language for Music Composition ; Copyright ( c ) 1997- ... IRCAM - Centre , Paris , France . ; This file is part of the OpenMusic environment sources ; OpenMusic is free software : you ...
null
https://raw.githubusercontent.com/openmusic-project/openmusic/9560c064512a1598cd57bcc9f0151c0815178e6f/OPENMUSIC/code/projects/sheet/sheetobjects/sheet.lisp
lisp
========================================================================= (at your option) any later version. 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. ======...
OpenMusic : Visual Programming Language for Music Composition Copyright ( c ) 1997- ... IRCAM - Centre , Paris , France . This file is part of the OpenMusic environment sources OpenMusic is free software : you can redistribute it and/or modify it under the terms of the GNU General Public ...
3d1cc02fd6acde625038ae6285a2ae76c5d84272502715a58406d5d850b581cf
Kakadu/fp2022
exceptions.mli
* Copyright 2021 - 2022 , * SPDX - License - Identifier : LGPL-3.0 - or - later open Ast exception DupVarName of name exception VariableNotFound of name exception FunctionNotFound of name exception TypeNotFound of name exception NotAType of name exception NotAConst of name exception NonConstCall exception NotAVari...
null
https://raw.githubusercontent.com/Kakadu/fp2022/132b0dc58bc19e25007c40eebdff82cbe855160c/Pascal/lib/exceptions.mli
ocaml
* Copyright 2021 - 2022 , * SPDX - License - Identifier : LGPL-3.0 - or - later open Ast exception DupVarName of name exception VariableNotFound of name exception FunctionNotFound of name exception TypeNotFound of name exception NotAType of name exception NotAConst of name exception NonConstCall exception NotAVari...
9b216dec15ea1208ddb06da5e8eb9d3372cc0438869550a9a2f81ae41f42a5b5
ocaml/odoc
good.mli
* Canonical tag in the top - comment @canonical @canonical A.B *) module type T = sig type t end include T * Status tags on an [ include ] . Only the first one will be taken into account . @open @closed @inline @open @closed @inline *) type u (** Canonical on a type. ...
null
https://raw.githubusercontent.com/ocaml/odoc/3438afc40d9418b14d38ee7524c4e2fc5145533e/test/model/internal_tags.t/good.mli
ocaml
* Canonical on a type. @canonical A.u
* Canonical tag in the top - comment @canonical @canonical A.B *) module type T = sig type t end include T * Status tags on an [ include ] . Only the first one will be taken into account . @open @closed @inline @open @closed @inline *) type u module M : sig end * Canonic...
6dc9d323d969224a43ff40706a877c8a2cab41fee934df6807472387545e0ae2
Dale-M/mcron
vixie-time.scm
vixie-time.scm -- tests for ( mcron vixie - time ) module Copyright © 2018 < > ;;; This file is part of GNU Mcron . ;;; GNU Mcron is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 o...
null
https://raw.githubusercontent.com/Dale-M/mcron/56308568da1c846698a4b2ad593a164133ab19cf/tests/vixie-time.scm
scheme
(at your option) any later version. 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. jan fev mar may Errors FIXME: infinite loop (test-error "month 0" #t (let ((p (parse-vixie-time "0...
vixie-time.scm -- tests for ( mcron vixie - time ) module Copyright © 2018 < > This file is part of GNU Mcron . GNU Mcron is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the Li...
c84b7387524e575e2f17f856d72e429b2cec36ad420c53e51e99a1dd781b6c11
pippijn/mlwidgets
container.ml
class t ~children ~geometry ~id = object (self) inherit Widget.t ~children ~geometry ~id as widget end
null
https://raw.githubusercontent.com/pippijn/mlwidgets/0255a0c9543ca27cbcf5367051050bd8d17009ce/src/structure/container.ml
ocaml
class t ~children ~geometry ~id = object (self) inherit Widget.t ~children ~geometry ~id as widget end
b1ac215468a6018ff511c4629e82bb5a2af50f67947066d6deaeae918b5ec1ff
lasp-lang/partisan
partisan_hbbft_worker.erl
-module(partisan_hbbft_worker). -behaviour(gen_server). -include("partisan.hrl"). -include("partisan_logger.hrl"). -export([start_link/6, submit_transaction/2, start_on_demand/1, get_blocks/1, get_status/1, get_buf/1, stop/1, terminate/2]). -export([verify_chain/2, block_transactions/1]). -export([sync/2, fetch_fro...
null
https://raw.githubusercontent.com/lasp-lang/partisan/fd048fc1b34309d9fa41450434a7e7b3b2fa1fb8/protocols/partisan_hbbft_worker.erl
erlang
genesis block has no prev hash genesis block should have a valid signature A should have the the prev_hash of B A should have a valid signature deserialize the secret key once store the serialized state and serialized SK deadlock avoidance, also handled at the prop level todo check for disjoint chain if there i...
-module(partisan_hbbft_worker). -behaviour(gen_server). -include("partisan.hrl"). -include("partisan_logger.hrl"). -export([start_link/6, submit_transaction/2, start_on_demand/1, get_blocks/1, get_status/1, get_buf/1, stop/1, terminate/2]). -export([verify_chain/2, block_transactions/1]). -export([sync/2, fetch_fro...
82c9b55962c46182b2415f790f7eb9dfefb17ac74de49201643668c6b8dc0dd4
njross/simcount
SelectV.hs
-- This module contains an implementation of (a specialized version of ) the select(V ) operation . Given a a list of unitaries V1 , ... , -- Vk, a target register psi, and a register |j> of log_2(k) controls x1 ... xs , the select(V ) operation maps |j > |psi > to |j > Vj|psi > . -- -- The select(V) operation is p...
null
https://raw.githubusercontent.com/njross/simcount/def6836442b45076fadb5f8fd812b98397f588ca/SelectV.hs
haskell
This module contains an implementation of (a specialized version Vk, a target register psi, and a register |j> of log_2(k) controls The select(V) operation is performed by walking along a binary tree step of the walk adds gates to the circuit so that the value of the controls cycles through the required products....
of ) the select(V ) operation . Given a a list of unitaries V1 , ... , x1 ... xs , the select(V ) operation maps |j > |psi > to |j > Vj|psi > . whose nodes are labelled by Boolean products of the x1, ... ,xs . Each , , , , and , Toward the first quantum simulation with quantum speedup . November...
33a5b106603ac5552d205a59f8dda7dca8803d9cbb846de447919800abbda06c
lehins/massiv
VectorSpec.hs
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # module Test.Massiv.Array.Manifest.VectorSpec (spec) where import Data.Massiv.Array as A import Data.Massiv.Array.Manifest.Vector import qualified Data.Vector as VB...
null
https://raw.githubusercontent.com/lehins/massiv/67a920d4403f210d0bfdad1acc4bec208d80a588/massiv-test/tests/Test/Massiv/Array/Manifest/VectorSpec.hs
haskell
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # module Test.Massiv.Array.Manifest.VectorSpec (spec) where import Data.Massiv.Array as A import Data.Massiv.Array.Manifest.Vector import qualified Data.Vector as VB...
74ad10a954987131267cebc9920d2e78efa53701eddcc58c9b49f4f20ecd64ff
bzg/woof
data.clj
Copyright ( c ) 2022 - 2023 Bastien Guerry < > SPDX - License - Identifier : EPL-2.0 ;; License-Filename: LICENSES/EPL-2.0.txt (ns bzg.data (:require [bzg.core :as core] [bzg.fetch :as fetch] [bzg.db :as db] [clojure.string :as string] [clojure.data.json :as json]...
null
https://raw.githubusercontent.com/bzg/woof/d0cb841d62391122ab232fd4c241c138726120c9/src/bzg/data.clj
clojure
License-Filename: LICENSES/EPL-2.0.txt
Copyright ( c ) 2022 - 2023 Bastien Guerry < > SPDX - License - Identifier : EPL-2.0 (ns bzg.data (:require [bzg.core :as core] [bzg.fetch :as fetch] [bzg.db :as db] [clojure.string :as string] [clojure.data.json :as json] [clj-rss.core :as rss])) (de...
ead5fbe781181b900ccba7b28dbf795abdabbf6ff40c3618dd22577a95cff0b2
Chris00/ocaml-curve-sampling
graphs.ml
open Printf let () = let fh = open_out "graphs.gp" in fprintf fh "set terminal pngcairo\n\ set grid\n"; let n = ref 0 in let save t ~title = incr n; let fname = sprintf "graph%d.dat" !n in Curve_sampling.to_file t fname; fprintf fh "set output \"graph%d.png\"\n\ pl...
null
https://raw.githubusercontent.com/Chris00/ocaml-curve-sampling/355b207c4c161152b84ab0cf42edb594fc913266/demo/graphs.ml
ocaml
open Printf let () = let fh = open_out "graphs.gp" in fprintf fh "set terminal pngcairo\n\ set grid\n"; let n = ref 0 in let save t ~title = incr n; let fname = sprintf "graph%d.dat" !n in Curve_sampling.to_file t fname; fprintf fh "set output \"graph%d.png\"\n\ pl...
d2764f4c0e7abc902dd996a91efed8a6d875470c4d19a0811432275589366abd
ThomasHintz/keep-the-records
database.scm
(db:path "ktr-db") (db:flags (fx+ db:flag-no-lock (fx+ db:flag-writer (fx+ db:flag-reader db:flag-create))))
null
https://raw.githubusercontent.com/ThomasHintz/keep-the-records/c20e648e831bed2ced3f2f74bfc590dc06b5f076/etc/database.scm
scheme
(db:path "ktr-db") (db:flags (fx+ db:flag-no-lock (fx+ db:flag-writer (fx+ db:flag-reader db:flag-create))))
11bfd08a2a4ff0029f6d86fd9e1ef75793169c61d524ebbae3ae44eee660fb38
diffusionkinetics/open
Class.hs
module Dampf.Docker.Args.Class where import Data.Text (Text) import qualified Data.Text as T class ToArgs a where toArgs :: a -> [String] flagArg' :: String -> [String] flagArg' n | null n = [] | otherwise = ["--" ++ n] flagArg :: (Show a) => a -> [String] flagArg v = if null s then [] e...
null
https://raw.githubusercontent.com/diffusionkinetics/open/673d9a4a099abd9035ccc21e37d8e614a45a1901/dampf/lib/Dampf/Docker/Args/Class.hs
haskell
module Dampf.Docker.Args.Class where import Data.Text (Text) import qualified Data.Text as T class ToArgs a where toArgs :: a -> [String] flagArg' :: String -> [String] flagArg' n | null n = [] | otherwise = ["--" ++ n] flagArg :: (Show a) => a -> [String] flagArg v = if null s then [] e...
532d10d3c2165a8b862216686fcd29e2a3f6fa6119f85c6dd7ba39cf78f1da0f
maaleske/clif
bench-clifProduct.hs
{- - A simple benchmark for the geometric product. -} # LANGUAGE MultiParamTypeClasses , FlexibleInstances , BangPatterns , RankNTypes # module Main where import Clif import Data.List import Data.Time.Clock alphabet = [1 .. 20] :: [Int] blades = subsequences alphabet eBlades = map ((1 *:) . map E) blades :: [Clif (...
null
https://raw.githubusercontent.com/maaleske/clif/abce0365b71ca168cf7fc798772b9be1b4a1562b/benchmarks/bench-clifProduct.hs
haskell
- A simple benchmark for the geometric product.
# LANGUAGE MultiParamTypeClasses , FlexibleInstances , BangPatterns , RankNTypes # module Main where import Clif import Data.List import Data.Time.Clock alphabet = [1 .. 20] :: [Int] blades = subsequences alphabet eBlades = map ((1 *:) . map E) blades :: [Clif (Euclidean Int) Int] lBlades = map ((1 *:) . map S) blad...
c46be12ffefdd4fa421e634d068b938decc59ecfb34e1b19be56dae67fa4da1b
cyverse-archive/DiscoveryEnvironmentBackend
oauth.clj
(ns donkey.routes.oauth (:use [compojure.core]) (:require [donkey.clients.metadactyl.raw :as metadactyl] [donkey.util.service :as service])) (defn secured-oauth-routes "These routes are callback routes for OAuth authorization codes. They need to be secured because we need to associate the access t...
null
https://raw.githubusercontent.com/cyverse-archive/DiscoveryEnvironmentBackend/7f6177078c1a1cb6d11e62f12cfe2e22d669635b/services/Donkey/src/donkey/routes/oauth.clj
clojure
(ns donkey.routes.oauth (:use [compojure.core]) (:require [donkey.clients.metadactyl.raw :as metadactyl] [donkey.util.service :as service])) (defn secured-oauth-routes "These routes are callback routes for OAuth authorization codes. They need to be secured because we need to associate the access t...
089f90fe8f2c166fc2c62d9ff212463649a4fbb409804eae534fa0c3dff60906
hgoes/vvt
Transforms.hs
module Realization.Lisp.Transforms where import Realization.Lisp import Realization.Lisp.Value import Realization.Lisp.Array import Language.SMTLib2.Internals.Expression import Language.SMTLib2.Internals.Type import Language.SMTLib2.Internals.Type.Nat import Language.SMTLib2.Internals.Type.List (List(..)) import qual...
null
https://raw.githubusercontent.com/hgoes/vvt/dd2809753d7e5059d9103ea578f36afa8294cd84/Realization/Lisp/Transforms.hs
haskell
To avoid the runtime check, we would need to have disequality in the type-system
module Realization.Lisp.Transforms where import Realization.Lisp import Realization.Lisp.Value import Realization.Lisp.Array import Language.SMTLib2.Internals.Expression import Language.SMTLib2.Internals.Type import Language.SMTLib2.Internals.Type.Nat import Language.SMTLib2.Internals.Type.List (List(..)) import qual...
c223f627ef650447770f47b341e2d6802f69772a9723b2ad7908d570280af432
trskop/dot.config
Preferences.hs
# LANGUAGE NoImplicitPrelude # -- | -- Module: Main.Config.Preferences -- Description: Cache of user preferences. Copyright : ( c ) 2018 License : BSD3 -- -- Maintainer: -- Stability: experimental Portability : GHC specific language extensions ; POSIX . -- -- Cache of user preferences. module M...
null
https://raw.githubusercontent.com/trskop/dot.config/9dbd2e5eb07ddd74e817a762e3b6ba823d3e2965/yx/toolset/app-yx-env/Main/Config/Preferences.hs
haskell
| Module: Main.Config.Preferences Description: Cache of user preferences. Maintainer: Stability: experimental Cache of user preferences. , timetamp :: Timestamp -- TODO: Consider adding this. | User preferences are a cache of user decisions. It is considered safe to get rid of it. Make sure that ...
# LANGUAGE NoImplicitPrelude # Copyright : ( c ) 2018 License : BSD3 Portability : GHC specific language extensions ; POSIX . module Main.Config.Preferences ( Preferences(..) , KnownFile(..) , Status(..) , read , modify ) where import Control.Exception (bracket) import Data.Eq...
b4f6dd0005ce253283695298c96f38b9d946d0a5594b8c79a9253eee01201dc4
pirapira/coq2rust
nativenorm.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2013 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/pirapira/coq2rust/22e8aaefc723bfb324ca2001b2b8e51fcc923543/pretyping/nativenorm.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * This module implements normalizati...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2013 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Pp open Errors open Term ...
8c4a2bb28f51319e7b70ebc4b6f7b5b0f4d8ce02a08c0ee4cb1e4a54ef378239
nikodemus/SBCL
sharpm.lisp
This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the ;;;; public domain. The software is in the public domain and is ;;;; provided with absolutely no wa...
null
https://raw.githubusercontent.com/nikodemus/SBCL/3c11847d1e12db89b24a7887b18a137c45ed4661/src/code/sharpm.lisp
lisp
more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. FIXME: Is it standard to ignore numeric args instead of raising errors? ANSI: "If some dimension of the array whose representation is being p...
This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB!IMPL") (declaim (special *read-suppress* *standard-readtable* *bq-vector-flag*)) (defun ignore-numarg (sub-...
619814a472a4ad1bde7b7e3c934109b42207bbbf990eb2eb5102d0c4ad4db176
haskell-tools/haskell-tools
RecordPuns.hs
# LANGUAGE NamedFieldPuns # module Expr.RecordPuns where data Point = Point { x :: Int, y :: Int } f (Point {y}) = y
null
https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/refactor/examples/Expr/RecordPuns.hs
haskell
# LANGUAGE NamedFieldPuns # module Expr.RecordPuns where data Point = Point { x :: Int, y :: Int } f (Point {y}) = y
5d7fe82753e4e3f3a14c5543ccc11ac58f12ad1d16fd767be4b65bb8db533209
AlexKnauth/music
scale-tuning.rkt
#lang agile (require "../scale/scale-note.rkt") (module+ example (provide (all-defined-out))) ;; ------------------------------------------------------------------------ (provide scale-tuning scale-tuning-number scale-tuning-frequency/diatonic scale-tuning-frequency/alteration) ;; A Sc...
null
https://raw.githubusercontent.com/AlexKnauth/music/b4489c27d7c0f7116d769344c787fa76b479e5fa/music/data/tuning/scale-tuning.rkt
racket
------------------------------------------------------------------------ A ScaleTuning is a (scale-tuning PosReal ScaleKindTuning) scale-tuning-number : ScaleTuning -> Nat scale-tuning-frequency/diatonic : ScaleTuning Int Nat -> PosReal scale-tuning-frequency/alteration : ScaleTuning Int Nat Int -> PosReal ------...
#lang agile (require "../scale/scale-note.rkt") (module+ example (provide (all-defined-out))) (provide scale-tuning scale-tuning-number scale-tuning-frequency/diatonic scale-tuning-frequency/alteration) (struct scale-tuning [root-frequency kind] #:transparent) (define (scale-tuning-nu...
42c6de879a88507accb32d38f630796b931c75070a856ea3eac87dd97247cc95
clingen-data-model/genegraph
common.clj
(ns genegraph.source.html.common (:require [genegraph.database.query :as q] [genegraph.source.html.elements :as e] [genegraph.source.html.elements.class] [genegraph.source.html.elements.dosage-sensitivity-proposition] [genegraph.source.html.elements.evidence-level-asser...
null
https://raw.githubusercontent.com/clingen-data-model/genegraph/8c217e4c3820b3bd0a0937a6e331a6e6a49b8c14/src/genegraph/source/html/common.clj
clojure
(ns genegraph.source.html.common (:require [genegraph.database.query :as q] [genegraph.source.html.elements :as e] [genegraph.source.html.elements.class] [genegraph.source.html.elements.dosage-sensitivity-proposition] [genegraph.source.html.elements.evidence-level-asser...
fafe8d3bc4f4af1711cd232b5fde87740ebfe4afe8b5fb3264409d473d6d13c5
mfp/oraft
oraft_lwt_conn_wrapper.ml
type 'a conn_wrapper = { wrap_incoming_conn : Lwt_unix.file_descr -> (Lwt_io.input_channel * Lwt_io.output_channel) Lwt.t; wrap_outgoing_conn : Lwt_unix.file_descr -> (Lwt_io.input_channel * Lwt_io.output_channel) Lwt.t; } type simple_wrapper = Lwt_unix.file_descr -> (Lwt_io.input_channel * Lwt_i...
null
https://raw.githubusercontent.com/mfp/oraft/cf7352eb8f1324717d47dc294a058c857ebef9eb/src/oraft_lwt_conn_wrapper.ml
ocaml
This may happen if the server closed the connection before us
type 'a conn_wrapper = { wrap_incoming_conn : Lwt_unix.file_descr -> (Lwt_io.input_channel * Lwt_io.output_channel) Lwt.t; wrap_outgoing_conn : Lwt_unix.file_descr -> (Lwt_io.input_channel * Lwt_io.output_channel) Lwt.t; } type simple_wrapper = Lwt_unix.file_descr -> (Lwt_io.input_channel * Lwt_i...
fa6eeaa552cc40c308bd2492635748f2dcf6c987f5bad717f995cd0d4e889439
startalkIM/ejabberd
mod_privacy_mnesia.erl
%%%------------------------------------------------------------------- @author < > ( C ) 2016 , %%% @doc %%% %%% @end Created : 14 Apr 2016 by < > %%%------------------------------------------------------------------- -module(mod_privacy_mnesia). -behaviour(mod_privacy). %% API -export([init/2, process...
null
https://raw.githubusercontent.com/startalkIM/ejabberd/718d86cd2f5681099fad14dab5f2541ddc612c8b/src/mod_privacy_mnesia.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- API =================================================================== API =================================================================== =========================...
@author < > ( C ) 2016 , Created : 14 Apr 2016 by < > -module(mod_privacy_mnesia). -behaviour(mod_privacy). -export([init/2, process_lists_get/2, process_list_get/3, process_default_set/3, process_active_set/3, remove_privacy_list/3, set_privacy_list/1, set_privacy_list/4, get_user_list/2, get_us...
9fd85a9c95f5d8202f9a3864e732cadedcbfbccd57978863f029053f656a3822
scrintal/heroicons-reagent
musical_note.cljs
(ns com.scrintal.heroicons.solid.musical-note) (defn render [] [:svg {:xmlns "" :viewBox "0 0 24 24" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M19.952 1.651a.75.75 0 01.298.599V16.303a3 3 0 01-2.176 2.884l-1.32.377a2.553...
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/solid/musical_note.cljs
clojure
(ns com.scrintal.heroicons.solid.musical-note) (defn render [] [:svg {:xmlns "" :viewBox "0 0 24 24" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M19.952 1.651a.75.75 0 01.298.599V16.303a3 3 0 01-2.176 2.884l-1.32.377a2.553...
840557048e434cc68b978e606c7a7e61d2dcee9cfe29b143523757ec8d362fd0
scheme/scsh
syntax.scm
;;; Syntax definitions for scsh. ;;; Translating process forms into Scheme code. Copyright ( c ) 1993 by . The three basic forms for running an extended process form : EXEC - EPF , & , and RUN . EXEC - EPF is the foundation . ;; This is used by the macro for the << redirection to prevent the temporary port ...
null
https://raw.githubusercontent.com/scheme/scsh/114432435e4eadd54334df6b37fcae505079b49f/scheme/syntax.scm
scheme
Syntax definitions for scsh. Translating process forms into Scheme code. This is used by the macro for the << redirection to prevent the temporary Sequencing operators: otherwise # f. Run each proc until one fails (i.e., exit status non-0). otherwise # f. (define (expand-mac transformer form) (transforme...
Copyright ( c ) 1993 by . The three basic forms for running an extended process form : EXEC - EPF , & , and RUN . EXEC - EPF is the foundation . port from being closed by a GC before the process exec 's (define <<-port-holder) (define-syntax exec-epf (lambda (form rename compare) (transcribe-extended...
3737dcc2cf0eaac1bd8db5fa3fd229afae86d3c019086e2530253aead4f8bfd5
debug-ito/greskell
GMap.hs
# LANGUAGE CPP # {-# LANGUAGE DeriveTraversable #-} # LANGUAGE GeneralizedNewtypeDeriving # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeFamilies # -- | Module : Data . Greskell . -- Description: data type for g:Map Maintainer : < > -- -- @since 0.1....
null
https://raw.githubusercontent.com/debug-ito/greskell/ff21b8297a158cb4b5bafcbb85094cef462c5390/greskell-core/src/Data/Greskell/GMap.hs
haskell
# LANGUAGE DeriveTraversable # # LANGUAGE OverloadedStrings # | Description: data type for g:Map @since 0.1.2.0 This module defines types for parsing a "g:Map" GraphSON object. Usually users only have to use 'GMapEntry', because other * GMapEntry * Examples | JSON encoding of a map as an arr...
# LANGUAGE CPP # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE TypeFamilies # Module : Data . Greskell . Maintainer : < > types are just used internally to implement GraphSON parsers . module Data.Greskell.GMap * FlattenedMap (..) , parseToFlattenedMap ...
b4f554c079243e67484433b9ec6df1619d5208e9de70d6afe04e131738f78839
rixed/ramen
RamenSync.ml
Now the actual implementation of the Ramen Sync Server and Client . * We need a client in OCaml to synchronise the configuration in between * several ramen processes , and one in C++ to synchronise with a GUI * tool . * We need a client in OCaml to synchronise the configuration in between * several ramen...
null
https://raw.githubusercontent.com/rixed/ramen/f91639f0f3da4a7d07a7ba00d6604b78d6dc3769/src/RamenSync.ml
ocaml
$< Key No need to quote the glob as it's in leaf position: Special key for error reporting: TODO: a string_split_by_char would come handy in many places. Returns if a user can read/write/del a key: Everyone can read/write/delete: Nobody can delete: Nobody can write nor delete: Default: reserve writes an...
Now the actual implementation of the Ramen Sync Server and Client . * We need a client in OCaml to synchronise the configuration in between * several ramen processes , and one in C++ to synchronise with a GUI * tool . * We need a client in OCaml to synchronise the configuration in between * several ramen...
74cf433168d69585c6619b8144c49bec2fd4a9e67d81b99cde0a4e281bb91de8
nikita-volkov/rerebase
Mapping.hs
module Data.Profunctor.Mapping ( module Rebase.Data.Profunctor.Mapping ) where import Rebase.Data.Profunctor.Mapping
null
https://raw.githubusercontent.com/nikita-volkov/rerebase/25895e6d8b0c515c912c509ad8dd8868780a74b6/library/Data/Profunctor/Mapping.hs
haskell
module Data.Profunctor.Mapping ( module Rebase.Data.Profunctor.Mapping ) where import Rebase.Data.Profunctor.Mapping
6c5ced3766958c604a7f0869acfe4116f7fd353ceb4cbce3657ce830796a29d4
muldvarp/DiMo
enumerators.ml
type term_types = Int of int let show_value = function Int v -> string_of_int v type enum_result = EnumInt of string * int | EnumPair of enum_result * enum_result module ParamEval = Map.Make(String);; let rec make_eval = function EnumInt(x,v) -> ParamEval.singleton x (Int v) ...
null
https://raw.githubusercontent.com/muldvarp/DiMo/fb244b96b256aaf969bb88fcb91a37e37312c98d/src/enumerators.ml
ocaml
type term_types = Int of int let show_value = function Int v -> string_of_int v type enum_result = EnumInt of string * int | EnumPair of enum_result * enum_result module ParamEval = Map.Make(String);; let rec make_eval = function EnumInt(x,v) -> ParamEval.singleton x (Int v) ...
396a159e8308b27ba1f9abf1479295c4feda755ba2b3807ea99034143693ccab
zippy/anansi
email_bridge_in.clj
(ns #^{:author "Eric Harris-Braun" :doc "Email Bridge receptor"} anansi.streamscapes.channels.email-bridge-in (:use [anansi.ceptr] [anansi.receptor.scape] [anansi.streamscapes.streamscapes] [anansi.streamscapes.channel] [anansi.util :only [date-time-from-java-date standard-dat...
null
https://raw.githubusercontent.com/zippy/anansi/881aa279e5e7836f3002fc2ef7623f2ee1860c9a/src/anansi/streamscapes/channels/email_bridge_in.clj
clojure
(.setDebug true)
(ns #^{:author "Eric Harris-Braun" :doc "Email Bridge receptor"} anansi.streamscapes.channels.email-bridge-in (:use [anansi.ceptr] [anansi.receptor.scape] [anansi.streamscapes.streamscapes] [anansi.streamscapes.channel] [anansi.util :only [date-time-from-java-date standard-dat...
a1f92ddfca5f5e36797a193b815ab80ed5abffb35b7de7349f638d2f2561d449
schmidt73/guidescan-web
jobs_test.clj
(ns guidescan-web.query.jobs-test (:require [clojure.test :refer :all] [clojure.java.io :as io] [failjure.core :as f] [guidescan-web.mock :as mock] [guidescan-web.query.jobs :as jobs])) (def test-params-good {:params {:query-text "chrV:91177-916325" :orga...
null
https://raw.githubusercontent.com/schmidt73/guidescan-web/130f189c88aadcce7a2d857943d16be54f789059/test/guidescan_web/query/jobs_test.clj
clojure
(ns guidescan-web.query.jobs-test (:require [clojure.test :refer :all] [clojure.java.io :as io] [failjure.core :as f] [guidescan-web.mock :as mock] [guidescan-web.query.jobs :as jobs])) (def test-params-good {:params {:query-text "chrV:91177-916325" :orga...
1be9d01aebababe55603c80999afca18de3a151cbcae715011f34e30fb67ddd7
binsec/binsec
loader_elf.ml
(**************************************************************************) This file is part of BINSEC . (* *) Copyright ( C ) 2016 - 2022 CEA ( Co...
null
https://raw.githubusercontent.com/binsec/binsec/22ee39aad58219e8837b6ba15f150ba04a498b63/src/loader/loader_elf.ml
ocaml
************************************************************************ alternatives) you can redistribute it an...
This file is part of BINSEC . Copyright ( C ) 2016 - 2022 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , ve...
ae5d155777fb7f0678fdc149b9085ae87f693a1578177342c765bdaea655128a
ucsd-progsys/dsolve
arrayLabels.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , Kyot...
null
https://raw.githubusercontent.com/ucsd-progsys/dsolve/bfbbb8ed9bbf352d74561e9f9127ab07b7882c0c/stdlib/arrayLabels.ml
ocaml
********************************************************************* Objective Caml ...
, Kyoto University RIMS Copyright 2001 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with $ I d : , v 1.3 2001/12/07 13:40:49 xlero...
d9d8d4d5965fc5d8e9193f14df395b37f144fe5a60199dd7c015d9452cb90947
elliottt/llvm-pretty
LookupTable.hs
| Module : Text . LLVM.Triple . . Description : Helpers for parsing a finite set of strings . License : Stability : experimental This module is not exposed as part of the library API . Module : Text.LLVM.Triple.Parse.LookupTable Description : Helpers for parsing a finite set o...
null
https://raw.githubusercontent.com/elliottt/llvm-pretty/31612ff381fba3971263371daab452faab5b76fe/src/Text/LLVM/Triple/Parse/LookupTable.hs
haskell
* Construction * Queries ------------------------------------------------------------------------------ Construction | A table from constrant strings to values, to be used in parsing a finite set of possibilities. Could be replaced by a fancier data structure, but -------------------------------------------------...
| Module : Text . LLVM.Triple . . Description : Helpers for parsing a finite set of strings . License : Stability : experimental This module is not exposed as part of the library API . Module : Text.LLVM.Triple.Parse.LookupTable Description : Helpers for parsing a finite set o...
b05ffb6afb7a49f43dae5b3abf3e8fba4c40e3fd0270ae06d8211155d25a42d8
Zilliqa/scilla
scilla_checker.ml
This file is part of scilla . Copyright ( c ) 2018 - present Zilliqa Research Pvt . Ltd. scilla is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at you...
null
https://raw.githubusercontent.com/Zilliqa/scilla/011323ac5da48ee16890b71424e057ffbc4216da/src/runners/scilla_checker.ml
ocaml
This file is part of scilla . Copyright ( c ) 2018 - present Zilliqa Research Pvt . Ltd. scilla is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at you...
1e96c3690ae265c9d48daa3ed6614f44c7ac18fb04df3247506bac9d895d0836
ddmcdonald/sparser
inc-terms.lisp
;;; -*- Mode:LISP; Syntax:Common-Lisp; Package:SPARSER -*- copyright ( c ) 1993 - 1996,2013 David D. McDonald -- all rights reserved ;;; ;;; File: "kinds of companies" Module : " model;dossiers : " version : March 2013 initiated 5/26/93 v2.3 , copying most words from companies;inc : inc cases b...
null
https://raw.githubusercontent.com/ddmcdonald/sparser/3c9797d77720c2493ed8104bf1060edef2349132/Sparser/code/s/grammar/model/dossiers/inc-terms.lisp
lisp
-*- Mode:LISP; Syntax:Common-Lisp; Package:SPARSER -*- File: "kinds of companies" inc : inc cases "limited partnership" 1/17/96
copyright ( c ) 1993 - 1996,2013 David D. McDonald -- all rights reserved Module : " model;dossiers : " version : March 2013 but with drastically different conceptualization . Added S.P.A. 3/8/13 (in-package :sparser) (define-individual 'inc-term :name "ag") (define-individual 'inc-term :name "b...
31a91ab5b7b040c78256cd573e729b2a586ac9d1d336561f89094a16d660cb10
nominolo/lambdachine
Basic0007.hs
# LANGUAGE NoImplicitPrelude , MagicHash , UnboxedTuples # -- RUN: %bc module Test.Basic0007 where import GHC.Prim data Int = I# Int# test = raise# (I# 42#)
null
https://raw.githubusercontent.com/nominolo/lambdachine/49d97cf7a367a650ab421f7aa19feb90bfe14731/tests/Test/Basic0007.hs
haskell
RUN: %bc
# LANGUAGE NoImplicitPrelude , MagicHash , UnboxedTuples # module Test.Basic0007 where import GHC.Prim data Int = I# Int# test = raise# (I# 42#)
4e38e408f2fa3ef1e80ad6c884657b8947f4cba24156379e51312c64094989f0
Yvee1/hascard
Glue.hs
module Glue where import Brick import States import StateManagement import qualified Graphics.Vty as V import qualified UI.MainMenu as MM import qualified UI.Settings as S import qualified UI.Info as I import qualified UI.CardSelector as CS import qualified UI.FileBrowser as FB import qualifie...
null
https://raw.githubusercontent.com/Yvee1/hascard/4ddeb44d6f85cd52e87f16e919b6f20c64e24e3b/src/Glue.hs
haskell
module Glue where import Brick import States import StateManagement import qualified Graphics.Vty as V import qualified UI.MainMenu as MM import qualified UI.Settings as S import qualified UI.Info as I import qualified UI.CardSelector as CS import qualified UI.FileBrowser as FB import qualifie...
10aca94fa0d4b8fdab32235e329711a8420a4a4a8e05760f5690fb9a37307a4c
Netflix/PigPen
set_test.clj
;; ;; Copyright 2013 - 2015 Netflix , Inc. ;; 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 ...
null
https://raw.githubusercontent.com/Netflix/PigPen/18d461d9b2ee6c1bb7eee7324889d32757fc7513/pigpen-core/src/test/clojure/pigpen/set_test.clj
clojure
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the speci...
Copyright 2013 - 2015 Netflix , Inc. distributed under the License is distributed on an " AS IS " BASIS , (ns pigpen.set-test (:require [clojure.test :refer :all] [pigpen.extensions.test :refer [test-diff pigsym-zero pigsym-inc]] [pigpen.set :as pig])) (deftest test-split-opts-relat...
cf425d27efd85b0f447332173e97f114a5c119767473f51122f61091180544a1
billrobertson42/soupup
core.clj
(ns soupup.core (:require [clojure.string :as str]) (:import [org.jsoup Jsoup] [org.jsoup.nodes Attribute Comment DataNode Document DocumentType Element Node TextNode] [org.jsoup.select Elements])) (declare child-content) (defn attr-seq [^Node node] "create a seq of attibutes o...
null
https://raw.githubusercontent.com/billrobertson42/soupup/27535f3e5df98e0a552d2c1dd2309621561e034b/src/soupup/core.clj
clojure
(ns soupup.core (:require [clojure.string :as str]) (:import [org.jsoup Jsoup] [org.jsoup.nodes Attribute Comment DataNode Document DocumentType Element Node TextNode] [org.jsoup.select Elements])) (declare child-content) (defn attr-seq [^Node node] "create a seq of attibutes o...
a5cab197e6f8acddbe7409a6a68f9be5020e3c7d570644d425f39306359edb0d
ocamllabs/ocaml-modular-implicits
t110-mulint.ml
open Lib;; if 2 * 2 <> 4 then raise Not_found;; * 0 CONSTINT 42 2 PUSHACC0 3 MAKEBLOCK1 0 5 POP 1 7 9 CONSTINT 4 11 PUSHCONST2 12 PUSHCONST2 13 MULINT 14 NEQ 15 BRANCHIFNOT 22 17 GETGLOBAL Not_found 19 MAKEB...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/testsuite/tests/tool-ocaml/t110-mulint.ml
ocaml
open Lib;; if 2 * 2 <> 4 then raise Not_found;; * 0 CONSTINT 42 2 PUSHACC0 3 MAKEBLOCK1 0 5 POP 1 7 9 CONSTINT 4 11 PUSHCONST2 12 PUSHCONST2 13 MULINT 14 NEQ 15 BRANCHIFNOT 22 17 GETGLOBAL Not_found 19 MAKEB...
9218e4b8abf8aef5e1b6dc03c9d2afe58770239d2918aa365d3a8bafa9420306
well-typed/generics-sop
BasicFunctors.hs
module Generics.SOP.BasicFunctors ( module Data.SOP.BasicFunctors ) where import Data.SOP.BasicFunctors
null
https://raw.githubusercontent.com/well-typed/generics-sop/39a3badb10e11efc4f907db557f998412ffc1b2a/generics-sop/src/Generics/SOP/BasicFunctors.hs
haskell
module Generics.SOP.BasicFunctors ( module Data.SOP.BasicFunctors ) where import Data.SOP.BasicFunctors
6d34731d46393b05cbc87443b4eaf239f3b5f19dc8fd7af80a416473e52d0b7a
ghc/packages-base
Unsafe.hs
# LANGUAGE Unsafe # # LANGUAGE NoImplicitPrelude # ----------------------------------------------------------------------------- -- | Module : System . Copyright : ( c ) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : -- Stabilit...
null
https://raw.githubusercontent.com/ghc/packages-base/52c0b09036c36f1ed928663abb2f295fd36a88bb/System/IO/Unsafe.hs
haskell
--------------------------------------------------------------------------- | License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : provisional Portability : portable \"Unsafe\" IO operations. --------------------------------------------------------------------------- ...
# LANGUAGE Unsafe # # LANGUAGE NoImplicitPrelude # Module : System . Copyright : ( c ) The University of Glasgow 2001 module System.IO.Unsafe ( unsafePerformIO, unsafeDupablePerformIO, unsafeInterleaveIO, unsafeFixIO, ) where import GHC.Base import GHC.IO import GHC.IORef import GHC.E...
940905429c960b3aae93da0f0a9b8d6d8e811b7c7c28f71a09b9d18c327d46d2
BinRoot/Haskell-Data-Analysis-Cookbook
Main.hs
import Network.HTTP import Network.URI import Text.XML.HXT.Core import Text.HandsomeSoup type SearchResult = Either SearchResultErr [String] data SearchResultErr = NoResultsErr | TooManyResultsErr | UnknownErr deriving (Show, Eq) -- Searching through a database system. main :: IO () main = main' "a" main' query = d...
null
https://raw.githubusercontent.com/BinRoot/Haskell-Data-Analysis-Cookbook/f8c46987d78f4a6c1828b353c5f906b9314c2ef9/Ch01/Code09_mining/Main.hs
haskell
Searching through a database system.
import Network.HTTP import Network.URI import Text.XML.HXT.Core import Text.HandsomeSoup type SearchResult = Either SearchResultErr [String] data SearchResultErr = NoResultsErr | TooManyResultsErr | UnknownErr deriving (Show, Eq) main :: IO () main = main' "a" main' query = do print query doc <- getDoc query ...
97e18eefb125b48d05280ef493b349186ba452fae22d079e8f741b653c7101be
achirkin/qua-view
Import.hs
module Commons.NoReflex.Import ( -- * Commonly used standard types first, second, (***), (&&&) , when, unless, void, for, forM, forM_, (>=>) , Proxy (..) , Semigroup (..), Monoid (..), NonEmpty (..), foldMap' , Dim (), Idx (), DataFrame () , Coercible, coerce * Re - exported from , ...
null
https://raw.githubusercontent.com/achirkin/qua-view/62626ead828889a1c7ef1fdba4d84324eb5420b3/src/Commons/NoReflex/Import.hs
haskell
* Commonly used standard types * Dependent maps * Some commonly used types re-exported * Other useful libraries
module Commons.NoReflex.Import first, second, (***), (&&&) , when, unless, void, for, forM, forM_, (>=>) , Proxy (..) , Semigroup (..), Monoid (..), NonEmpty (..), foldMap' , Dim (), Idx (), DataFrame () , Coercible, coerce * Re - exported from , Symbol, Nat, KnownNat, KnownSymbol, natV...
8c2b3b2e2466aeeb5775a3f5b0945d52d3f46c8397ed6713be73084ce4fca2f2
racketscript/racketscript
macro-introduced-binding.rkt
#lang racket (require "simple-provide.rkt") (provide invoke-macro invoke-macro-with-function-elsewhere) (define (internal-func) (displayln "called internal function")) (define-syntax (invoke-macro stx) (syntax-case stx () [(_) #'(internal-func)])) (define-syntax (invoke-macro-with-function-elsewher...
null
https://raw.githubusercontent.com/racketscript/racketscript/f94006d11338a674ae10f6bd83fc53e6806d07d8/tests/modules/private/macro-introduced-binding.rkt
racket
#lang racket (require "simple-provide.rkt") (provide invoke-macro invoke-macro-with-function-elsewhere) (define (internal-func) (displayln "called internal function")) (define-syntax (invoke-macro stx) (syntax-case stx () [(_) #'(internal-func)])) (define-syntax (invoke-macro-with-function-elsewher...
cd6667b40760dbb2c62257db249d94d08e35a14318564a8f8d883c9de0b0c25b
nogden/rtsp
transport.clj
(ns multimedia.streaming.rtsp.transport (:require [multimedia.streaming.rtsp.protocol :as rtsp] [aleph.tcp :as tcp] [manifold.deferred :as d] [manifold.stream :as s])) Interface to be used by all protocols . (defprotocol IRequest "An object that is able to issue requests." ...
null
https://raw.githubusercontent.com/nogden/rtsp/8ef408c9aca520bbc6edfb9b9dce147a740751b0/src/multimedia/streaming/rtsp/transport.clj
clojure
TCP support
(ns multimedia.streaming.rtsp.transport (:require [multimedia.streaming.rtsp.protocol :as rtsp] [aleph.tcp :as tcp] [manifold.deferred :as d] [manifold.stream :as s])) Interface to be used by all protocols . (defprotocol IRequest "An object that is able to issue requests." ...
56eb17e61490cc087435faeb9e04b977cb8b59d54348db13429943b32c2b8f95
gahag/FSQL
Typed.hs
FSQL : / Typed.hs -- Typed expression data types and functions - - Copyright ( C ) 2015 gahag - All rights reserved . - - This software may be modified and distributed under the terms - of the BSD license . See the LICENSE file for details . - - Copyright (C) 2015 gahag - All rights reserved....
null
https://raw.githubusercontent.com/gahag/FSQL/5c68cb8af68e7e66876bc2b937b91ddb363b2db7/src/Expr/Typed.hs
haskell
Typed expression data types and functions # LANGUAGE DataKinds, KindSignatures # ord, regex ord regex ord regex Expression of type t
- - Copyright ( C ) 2015 gahag - All rights reserved . - - This software may be modified and distributed under the terms - of the BSD license . See the LICENSE file for details . - - Copyright (C) 2015 gahag - All rights reserved. - - This software may be modified and distributed under the term...
a391533d1426f1da1ffe6693fb203f97ad32eb163ebcdf90f8085551f9ce291f
funcool/httpurr
test_xhr_alt_client.cljs
(ns httpurr.test.test-xhr-alt-client (:require [cljs.test :as t] [httpurr.client.xhr-alt :as xhr-alt])) (t/deftest make-uri-test (t/testing "no question mark when no params" (t/is (= (xhr-alt/make-uri "foo/bar" nil nil) "foo/bar"))) (t/testing "question mark when params" (t/is (=...
null
https://raw.githubusercontent.com/funcool/httpurr/22fb1b921864155a6b4eff113e2456ee924dd681/test/httpurr/test/test_xhr_alt_client.cljs
clojure
(ns httpurr.test.test-xhr-alt-client (:require [cljs.test :as t] [httpurr.client.xhr-alt :as xhr-alt])) (t/deftest make-uri-test (t/testing "no question mark when no params" (t/is (= (xhr-alt/make-uri "foo/bar" nil nil) "foo/bar"))) (t/testing "question mark when params" (t/is (=...
a6481188b2f7206e1ce0846baa5ceeb083a64d1172d9a5e71d7a5e39feee098f
Frama-C/Frama-C-snapshot
zones.ml
(**************************************************************************) (* *) This file is part of Frama - C. (* *) Copyright ...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/scope/zones.ml
ocaml
************************************************************************ alternatives) ...
This file is part of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , v...
6278154123de54957011a0835561c1a2b61126712b2da149b3a92f84614797f0
tcsprojects/pgsolver
optstratimprov.ml
open Basics ;; open Paritygame ;; open Univsolve;; open Transformations;; open Tcsarray;; open Tcslist;; let array_max a less = ArrayUtils.max_elt (fun x y -> if less x y then -1 else 1) a let list_max a less = ListUtils.max_elt (fun x y -> if less x y then -1 else 1) a let msg_tagged v = message_autotagged_newline...
null
https://raw.githubusercontent.com/tcsprojects/pgsolver/b0c31a8b367c405baed961385ad645d52f648325/src/solvers/optstratimprov.ml
ocaml
open Basics ;; open Paritygame ;; open Univsolve;; open Transformations;; open Tcsarray;; open Tcslist;; let array_max a less = ArrayUtils.max_elt (fun x y -> if less x y then -1 else 1) a let list_max a less = ListUtils.max_elt (fun x y -> if less x y then -1 else 1) a let msg_tagged v = message_autotagged_newline...