_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
cfca5e6563858230f16b272d2cea9f121e51e522b9eb9b2b22a2534ff4944efe
sibylfs/sibylfs_src
fs_test_config.ml
(****************************************************************************) Copyright ( c ) 2013 , 2014 , 2015 , , , , ( as part of the SibylFS project ) (* *) (* Permission to use, copy, modify, and/or d...
null
https://raw.githubusercontent.com/sibylfs/sibylfs_src/30675bc3b91e73f7133d0c30f18857bb1f4df8fa/fs_test/lib/fs_test_config.ml
ocaml
************************************************************************** Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright no...
Copyright ( c ) 2013 , 2014 , 2015 , , , , ( as part of the SibylFS project ) THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL PROFITS , WHETHER IN AN ACTION OF CONTRACT , NEGLIGENCE OR OTHER TORTIOUS ACTION , ARISING OUT OF OR IN CONNE...
159acb9e04ef8ff59331dfd3a97ff6f85daf3a1f91fda2606a5776a1e7af2b74
snoyberg/conduit
Network.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE CPP # module Data.Conduit.Network ( -- * Basic utilities sourceSocket , sinkSocket -- * Simple TCP server/client interface. , SN.AppData , appSource , appSink , SN.appSockAddr , ...
null
https://raw.githubusercontent.com/snoyberg/conduit/1771780ff4b606296924a28bf5d4433ae6a916f3/conduit-extra/Data/Conduit/Network.hs
haskell
# LANGUAGE RankNTypes # * Basic utilities * Simple TCP server/client interface. ** Server ** Client ** Getters ** Setters * Types | Stream data from the socket. | Stream data to the socket. | Fork a TCP Server Will fork the runGeneralTCPServer function but will only return from this call when the serve...
# LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE CPP # module Data.Conduit.Network sourceSocket , sinkSocket , SN.AppData , appSource , appSink , SN.appSockAddr , SN.appLocalAddr , SN.ServerSettings , serverSettings , SN.runTCPServer , SN.runTCPServ...
33d6385c4973142166f38d58d464fec9de1b86264bf18c49cdddbe8bb40e3031
audreyt/openafp
TLE.hs
module OpenAFP.Records.AFP.TLE where import OpenAFP.Types import OpenAFP.Internals data TLE = TLE { tle_Type :: !N3 ,tle_ :: !N3 ,tle_Chunks :: ![T_] } deriving (Show, Typeable)
null
https://raw.githubusercontent.com/audreyt/openafp/178e0dd427479ac7b8b461e05c263e52dd614b73/src/OpenAFP/Records/AFP/TLE.hs
haskell
module OpenAFP.Records.AFP.TLE where import OpenAFP.Types import OpenAFP.Internals data TLE = TLE { tle_Type :: !N3 ,tle_ :: !N3 ,tle_Chunks :: ![T_] } deriving (Show, Typeable)
4d7b2439192cf37b03f504115f784fde6064579655633b739a14551807cec7fb
cedlemo/OCaml-GI-ctypes-bindings-generator
Emblem.mli
open Ctypes type t val t_typ : t typ (*Not implemented g_emblem_new type interface not implemented*) (*Not implemented g_emblem_new_with_origin type interface not implemented*) Not implemented g_emblem_get_icon return type interface not handled val get_origin : t -> Emblem_origin.t
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gio/Emblem.mli
ocaml
Not implemented g_emblem_new type interface not implemented Not implemented g_emblem_new_with_origin type interface not implemented
open Ctypes type t val t_typ : t typ Not implemented g_emblem_get_icon return type interface not handled val get_origin : t -> Emblem_origin.t
9f8af6429588eeb9d42fe80da1eef8e21a30d18bcd00ac6f9b54dceba1a22ac0
jordanthayer/ocaml-search
fn.ml
* Some simple functions . @author eaburns @since 2010 - 01 - 05 @author eaburns @since 2010-01-05 *) * Function composition : returns a function of one argument that calls [ f ] on result of calling [ g ] on the argument calls [f] on result of calling [g] on the argument *) let compos...
null
https://raw.githubusercontent.com/jordanthayer/ocaml-search/57cfc85417aa97ee5d8fbcdb84c333aae148175f/wrutils/fn.ml
ocaml
* Sequencing operator.
* Some simple functions . @author eaburns @since 2010 - 01 - 05 @author eaburns @since 2010-01-05 *) * Function composition : returns a function of one argument that calls [ f ] on result of calling [ g ] on the argument calls [f] on result of calling [g] on the argument *) let compos...
77957f878e20b16c0933a4fdd467cf008eb2440f784024d3e0baa871f1881f63
fare/xcvb
package.lisp
#+xcvb (module (:depends-on ("lib-a/package" "lib-b/package"))) (cl:defpackage :xcvb-example-2 (:use :common-lisp :lib-a :lib-b))
null
https://raw.githubusercontent.com/fare/xcvb/460e27bd4cbd4db5e7ddf5b22c2ee455df445258/examples/example-2/package.lisp
lisp
#+xcvb (module (:depends-on ("lib-a/package" "lib-b/package"))) (cl:defpackage :xcvb-example-2 (:use :common-lisp :lib-a :lib-b))
c0655c4c14930eb65e4112c1e300f7d483db391887f5ef9ff84005a4508912ca
40ants/reblocks-ui
form-errors.lisp
(uiop:define-package #:reblocks-ui-examples/form-errors (:use #:cl) (:import-from #:reblocks/app #:defapp) (:import-from #:reblocks/widget #:update #:defwidget) (:import-from #:reblocks-ui/form #:field-error #:with...
null
https://raw.githubusercontent.com/40ants/reblocks-ui/186743a786fcfbd556c60e94b7f6f22769360d7d/examples/form-errors.lisp
lisp
If everything success Without this line, error in the action will
(uiop:define-package #:reblocks-ui-examples/form-errors (:use #:cl) (:import-from #:reblocks/app #:defapp) (:import-from #:reblocks/widget #:update #:defwidget) (:import-from #:reblocks-ui/form #:field-error #:with...
7a96e8749c4d09e328c8e4128633bcd5eca84672573040229dfe6e6898aabd90
locusmath/locus
statistics.clj
(ns locus.stat.commons.statistics (:require [locus.set.logic.core.set :refer :all]) (:import [org.apache.commons.math3.stat Frequency StatUtils] (org.apache.commons.math3.stat.correlation Covariance))) Convert from a Clojure multiset into an apache commons math frequency (defn multiset->frequency [c...
null
https://raw.githubusercontent.com/locusmath/locus/fb6068bd78977b51fd3c5783545a5f9986e4235c/src/clojure/locus/stat/commons/statistics.clj
clojure
Covariance matrices
(ns locus.stat.commons.statistics (:require [locus.set.logic.core.set :refer :all]) (:import [org.apache.commons.math3.stat Frequency StatUtils] (org.apache.commons.math3.stat.correlation Covariance))) Convert from a Clojure multiset into an apache commons math frequency (defn multiset->frequency [c...
291ba045ad0c4725ceea91fc3a14545c9df9eccb8f1e69ea9ac944473b76cc4f
ocsigen/js_of_ocaml
d.ml
let f x = x / 2
null
https://raw.githubusercontent.com/ocsigen/js_of_ocaml/3b2b311d767bf4542aefe09fc865b28b5cd0ee00/compiler/tests-sourcemap/d.ml
ocaml
let f x = x / 2
37c7ddda07fae5a38a597fc1de26442c95c53c193ac5857a58c2df5bedbee9ea
binsec/haunted
interval.ml
(**************************************************************************) This file is part of BINSEC . (* *) Copyright ( C ) 2016 - 2019 CEA ( Co...
null
https://raw.githubusercontent.com/binsec/haunted/7ffc5f4072950fe138f53fe953ace98fff181c73/src/base/interval.ml
ocaml
************************************************************************ alternatives) you can redistribute it an...
This file is part of BINSEC . Copyright ( C ) 2016 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , ve...
6c8afbc831f893d31927c2cf3773073679e37e663d43b7d64b2c53a6a9d1ad21
ariesteam/aries
water_la_antigua.clj
Copyright 2011 The ARIES Consortium ( ) ;;; ;;; This file is part of ARIES. ;;; ;;; ARIES is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ;;; (at your option) any later...
null
https://raw.githubusercontent.com/ariesteam/aries/b3fafd4640f4e7950fff3791bc4ea4c06ee4dcdf/plugins/org.integratedmodelling.aries.core/models/water_la_antigua.clj
clojure
This file is part of ARIES. ARIES is free software: you can redistribute it and/or modify it (at your option) any later version. ARIES 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 ...
Copyright 2011 The ARIES Consortium ( ) under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License Water supply model for La Antigua , Veracruz , Mexico (ns core.model...
a92c4fd6fc0031dac955acb3715586eaacf5351a12d9c5eec4ceccae188210f5
mbenke/zpf2013
BadCollection1.hs
class Collection c where empty :: c insert :: e -> c -> c member :: e -> c -> Bool instance Collection [a] where empty = [] insert x xs = x:xs member = undefined
null
https://raw.githubusercontent.com/mbenke/zpf2013/85f32747e17f07a74e1c3cb064b1d6acaca3f2f0/Slides/02Typ2/BadCollection1.hs
haskell
class Collection c where empty :: c insert :: e -> c -> c member :: e -> c -> Bool instance Collection [a] where empty = [] insert x xs = x:xs member = undefined
1eb6680e15eca2b30ddb6583f38a4ec8fe13caea2a8f30f876e07fb3c633d3f2
input-output-hk/ouroboros-network
PartialConfig.hs
{-# LANGUAGE DefaultSignatures #-} # LANGUAGE FlexibleContexts # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeFamilies # {-# LANGUAGE UndecidableInstances #-} module Ouroboros.Consensus.HardFork.Combinator.PartialConfig ( H...
null
https://raw.githubusercontent.com/input-output-hk/ouroboros-network/0a3a61ae80244dde943843fd39ef17cd85260980/ouroboros-consensus/src/Ouroboros/Consensus/HardFork/Combinator/PartialConfig.hs
haskell
# LANGUAGE DefaultSignatures # # LANGUAGE UndecidableInstances # * Convenience re-exports | Partial consensus config See comments for 'completeLedgerConfig' for some details about the 'EpochInfo'. | Construct partial consensus config from full consensus config NOTE: This is basically just losing ...
# LANGUAGE FlexibleContexts # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeFamilies # module Ouroboros.Consensus.HardFork.Combinator.PartialConfig ( HasPartialConsensusConfig (..) , HasPartialLedgerConfig (..) * Newtype wrappers , W...
fec21d6d771a2054159b23e963f75a702d7b971b42a57b129f5a90941bebd138
patrikja/AFPcourse
StackMap.hs
module Compiler.StackMap where import Compiler.Syntax import Data.List( union ) type StackMap = (Int,[Name]) stackMap :: Command -> StackMap stackMap c = (0, comVars c) push :: StackMap -> StackMap push (n, vars) = (n+1, vars) pop :: StackMap -> StackMap pop (n, vars) = (n-1, vars) location :: StackMap -> Name ->...
null
https://raw.githubusercontent.com/patrikja/AFPcourse/1a079ae80ba2dbb36f3f79f0fc96a502c0f670b6/L10/src/Compiler/StackMap.hs
haskell
module Compiler.StackMap where import Compiler.Syntax import Data.List( union ) type StackMap = (Int,[Name]) stackMap :: Command -> StackMap stackMap c = (0, comVars c) push :: StackMap -> StackMap push (n, vars) = (n+1, vars) pop :: StackMap -> StackMap pop (n, vars) = (n-1, vars) location :: StackMap -> Name ->...
31c206ecee4e0f7fef2e944a9a33710d606212b008f9613c1cfeb8e8f3fbea7c
ghc/ghc
Binds.hs
# LANGUAGE CPP # {-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # in module Language . Has...
null
https://raw.githubusercontent.com/ghc/ghc/3b019a7ac8fc9059cc3213f6f95a2daef97ca442/compiler/GHC/Hs/Binds.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE DeriveDataTypeable # # SOURCE # # SOURCE # one for the left and one for the right. --------------------------------------------------------------------- Deal with ValBindsOut --------------------------------------------------------------------- extension field contains the l...
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # in module Language . Haskell . Syntax . Extension # OPTIONS_GHC -Wno - orphans # ( c ) Th...
dafe908cdbecf3e0c20a105b8f46c26ae8516877d48da3efa337e19ed19f98b8
areuu/ilcompiler
util.ml
let remove_percent input = Str.global_replace (Str.regexp_string "%") "" input let encode_newline input = Str.global_replace (Str.regexp_string "\n") "\\n" input Only bother filtering the ones we care about TODO : Optimize this list TODO: Optimize this list*) let chrome_builtins = [ "%PrepareFunct...
null
https://raw.githubusercontent.com/areuu/ilcompiler/c6f0bc809fe165947b8c7004dc1ed94414038002/src/util.ml
ocaml
Gets just the type from a Flow_ast.__TYPE___.show statement. For use in building information on which operations the compiler doesn't handle yet
let remove_percent input = Str.global_replace (Str.regexp_string "%") "" input let encode_newline input = Str.global_replace (Str.regexp_string "\n") "\\n" input Only bother filtering the ones we care about TODO : Optimize this list TODO: Optimize this list*) let chrome_builtins = [ "%PrepareFunct...
064b93794ed13948d53f41d82bc41629e7adbaf3d974db66eee3727a60ab4f09
coccinelle/coccinelle
printexc.mli
type t = exn = .. val to_string : exn -> string val to_string_default : exn -> string val print : ('a -> 'b) -> 'a -> 'b val catch : ('a -> 'b) -> 'a -> 'b val print_backtrace : out_channel -> unit val get_backtrace : unit -> string val record_backtrace : bool -> unit val backtrace_status : unit -> bool val register_pr...
null
https://raw.githubusercontent.com/coccinelle/coccinelle/5448bb2bd03491ffec356bf7bd6ddcdbf4d36bc9/bundles/stdcompat/stdcompat-current/interfaces/4.09/printexc.mli
ocaml
type t = exn = .. val to_string : exn -> string val to_string_default : exn -> string val print : ('a -> 'b) -> 'a -> 'b val catch : ('a -> 'b) -> 'a -> 'b val print_backtrace : out_channel -> unit val get_backtrace : unit -> string val record_backtrace : bool -> unit val backtrace_status : unit -> bool val register_pr...
2e17d9e692e154c76401772c693edb142617940cb803424dfc17cdb7359665ff
biocaml/phylogenetics
zipper.ml
open Core open Phylogenetic_tree (* ======= *) TYPES (* ======= *) type branch = float * Phylogenetic_tree.t and metadata = {routing:routing_table; me:int} and t = | ZipNode of {b0:branch; b1:branch; b2:branch; meta:metadata} | ZipBranch of {b0:branch; b1:branch; meta:metadata} | ZipLeaf of {index:Sigs.ind...
null
https://raw.githubusercontent.com/biocaml/phylogenetics/e225616a700b03c429c16f760dbe8c363fb4c79d/lib/zipper.ml
ocaml
======= ======= ======================== DIRECTIONS / LOCATIONS ======================== ============== ============== point only neighbour to current pos point new pos to itself point neighbours to current pos point new pos to itself branch index is always 0 point neighbours to current pos ...
open Core open Phylogenetic_tree TYPES type branch = float * Phylogenetic_tree.t and metadata = {routing:routing_table; me:int} and t = | ZipNode of {b0:branch; b1:branch; b2:branch; meta:metadata} | ZipBranch of {b0:branch; b1:branch; meta:metadata} | ZipLeaf of {index:Sigs.index; b0:branch; meta:metadata...
f8daf491dba2168d2fd63c36cbb5f5905481fbe70df34b49359f1f17415df550
aerosol/signerl
tcap_cco_server.erl
$ I d : tcap_cco_server.erl , v 1.3 2005/08/04 09:33:17 vances Exp $ %%%--------------------------------------------------------------------- 2004 - 2005 Motivity Telecom @author < > [ ] %%% @end %%% Copyright ( c ) 2004 - 2005 , Motivity Telecom %%% %%% All rights reserved. %%% %%% Redistribution and us...
null
https://raw.githubusercontent.com/aerosol/signerl/b85bdc8e2a740afd80c64006e777269496aaa5dc/TCAP/src/ANSI/tcap_cco_server.erl
erlang
--------------------------------------------------------------------- @end All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright ...
$ I d : tcap_cco_server.erl , v 1.3 2005/08/04 09:33:17 vances Exp $ 2004 - 2005 Motivity Telecom @author < > [ ] Copyright ( c ) 2004 - 2005 , Motivity Telecom - Neither the name of Motivity Telecom nor the names of its " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT OWNER O...
7972c0fd3f62c87069cbc711b741194b75fef20938e0aa934c235e4d82b147eb
nibbula/yew
view-table.lisp
;;; view-table.lisp - Command to view a table using the table - viewer . ;;; (defpackage :view-table (:documentation "Command to view a table using the table-viewer.") (:use :cl :dlib :view-generic :table :table-print :table-viewer :dtt :grout :lish) (:export #:with-coerced-table #:!print-table ...
null
https://raw.githubusercontent.com/nibbula/yew/e2c9b28490db6af601143da397ffc1e3c892caef/tools/view-table.lisp
lisp
This is semi-bogus interpreting a symbol as a filename, but this makes the command work. @@@ check with find-method? End
view-table.lisp - Command to view a table using the table - viewer . (defpackage :view-table (:documentation "Command to view a table using the table-viewer.") (:use :cl :dlib :view-generic :table :table-print :table-viewer :dtt :grout :lish) (:export #:with-coerced-table #:!print-table #:view...
c792023222471d9815d1a6c774cfbd2c6f24bae803fe37ddd9bd5e351991c2b5
mstksg/servant-cli
HasCLI.hs
# LANGUAGE AllowAmbiguousTypes # {-# LANGUAGE CPP #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # {-# LANGUAGE LambdaCase #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE RecordWildCards # {-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE TupleSecti...
null
https://raw.githubusercontent.com/mstksg/servant-cli/f67e85ac5102a0db1bb923487a99cb1bf058d076/src/Servant/CLI/HasCLI.hs
haskell
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeInType # # LANGUAGE TypeOperators # | Module : Servant.CLI.HasCLI License : BSD3 Stability : experimental Portability : non-porta...
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE RecordWildCards # # LANGUAGE TupleSections # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # # LANGUAGE ViewPatterns ...
66dc9ec12975fc3d1e71e084f1f70542ddfdc582ac42aee97c71fb3cc4af5bd2
basho/riak_kv
riak_kv_w_reduce.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2011 Basho Technologies , Inc. %% This file is provided to you 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 Li...
null
https://raw.githubusercontent.com/basho/riak_kv/aeef1591704d32230b773d952a2f1543cbfa1889/src/riak_kv_w_reduce.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 permissio...
Copyright ( c ) 2011 Basho Technologies , Inc. 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 intended to be used as the em...
687e8c7466a0505e95f6130b525dd5e6f45ec6f3a70558c54f0af13b0b692744
hawk/lux
lux_trace.erl
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright 2012 - 2022 Tail - f Systems AB %% %% See the file "LICENSE" for information on usage and redistribution %% of this file, and for a DISCLAIMER OF ALL WARRANTIES. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -mo...
null
https://raw.githubusercontent.com/hawk/lux/4304c89b3c9cccb256655b7d1058d7619e926dc7/src/lux_trace.erl
erlang
See the file "LICENSE" for information on usage and redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. Keep as is Annotate field value with its name Field value Skip field Record name Follow call stack Keep call but do not recurse Skip call Display traces Filter Keep as is Keep ...
Copyright 2012 - 2022 Tail - f Systems AB -module(lux_trace). -export([ start_suite_trace/2, start_trace/4, stop_trace/0, display/2 ]). -include("lux.hrl"). -define(WILDCARD, '_'). -type field_action() :: Field name -type record_action() :: field_action(). ...
b5db7345d32ec0d4bcbd8b49775694da3bf5da075445ca942072ed9badbd42a7
brendanhay/amazonka
DocumentStatusType.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # {-# LANGUAGE StrictData #-} # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - imports # Derived from AWS service...
null
https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-workdocs/gen/Amazonka/WorkDocs/Types/DocumentStatusType.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Module : Amazonka.WorkDocs.Types.DocumentStatusType Stability : auto-generated
# LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - imports # Derived from AWS service descriptions , licensed under Apache 2.0 . Copyright : (...
7dbfe83ced7aa85e85c4b088791fdf5c37755eb6fc569353d783030d176a5ba5
MrEbbinghaus/fulcro-material-ui-wrapper
dialog.cljc
(ns ^:deprecated material-ui.feedback.dialog (:require [com.fulcrologic.fulcro.algorithms.react-interop :as interop] #?@(:cljs [["@mui/material/Dialog" :default Dialog] ["@mui/material/DialogActions" :default DialogActions] ["@mui/material/DialogContent" :default DialogContent] ...
null
https://raw.githubusercontent.com/MrEbbinghaus/fulcro-material-ui-wrapper/058f1dd4b85542914f92f48a4010ea9ad497e48f/src/material_ui/feedback/dialog.cljc
clojure
(ns ^:deprecated material-ui.feedback.dialog (:require [com.fulcrologic.fulcro.algorithms.react-interop :as interop] #?@(:cljs [["@mui/material/Dialog" :default Dialog] ["@mui/material/DialogActions" :default DialogActions] ["@mui/material/DialogContent" :default DialogContent] ...
f7b26b0c24fd4fa85b15070531bf333ad4e0c027a43e6c50dea7cd678b8fade8
chyanju/Picus
r1cs-z3-template-optimizer.rkt
#lang rosette ; this is a template for optimizer (require (prefix-in tokamak: "../tokamak.rkt") (prefix-in utils: "../utils.rkt") (prefix-in config: "../config.rkt") (prefix-in r1cs: "../r1cs-grammar.rkt") ) (provide (rename-out [optimize-r1cs optimize-r1cs] )) (define (optimize-r1cs arg-r1cs) ...
null
https://raw.githubusercontent.com/chyanju/Picus/b88dc3e0092f50879d73de1efd49f3c37ad94405/picus/optimizers/r1cs-z3-template-optimizer.rkt
racket
this is a template for optimizer command level sub-command level
#lang rosette (require (prefix-in tokamak: "../tokamak.rkt") (prefix-in utils: "../utils.rkt") (prefix-in config: "../config.rkt") (prefix-in r1cs: "../r1cs-grammar.rkt") ) (provide (rename-out [optimize-r1cs optimize-r1cs] )) (define (optimize-r1cs arg-r1cs) (match arg-r1cs [(r1cs:rcm...
340b19810730417de4fd8547502be369d47511a9c527d4b01648f7b5646a31ea
kblake/erlang-chat-demo
action_comet.erl
Nitrogen Web Framework for Erlang Copyright ( c ) 2008 - 2010 See MIT - LICENSE for licensing information . -module (action_comet). -include_lib ("wf.hrl"). -compile(export_all). -define (COMET_INTERVAL, 10 * 1000). -define (TEN_SECONDS, 10 * 1000). -define (TWENTY_SECONDS, 20 * 1000). Comet and polling / c...
null
https://raw.githubusercontent.com/kblake/erlang-chat-demo/6fd2fce12f2e059e25a24c9a84169b088710edaf/apps/nitrogen/src/actions/action_comet.erl
erlang
processing scheme. This allows you to fire up an asynchronous process with the #comet { fun=AsyncFunction } action. are distributed to all processes within the pool. Pools can either have a local or global scope. Local scope means that the pool applies only to the current series of page requests by a user. Globa...
Nitrogen Web Framework for Erlang Copyright ( c ) 2008 - 2010 See MIT - LICENSE for licensing information . -module (action_comet). -include_lib ("wf.hrl"). -compile(export_all). -define (COMET_INTERVAL, 10 * 1000). -define (TEN_SECONDS, 10 * 1000). -define (TWENTY_SECONDS, 20 * 1000). Comet and polling / c...
3e9e369001de41f187bbe6560f12899a8a43695622282744bce7accaf58d7d69
janestreet/async_smtp
test_auth.ml
open! Core open Poly open Async open Async_smtp let () = Backtrace.elide := true let valid_username = "username" let valid_password = "password" let plugin ~login ~plain = (module struct open Smtp_monad.Let_syntax module State = Unit module Session = struct include Smtp_server.Plugin.Simple.Sessi...
null
https://raw.githubusercontent.com/janestreet/async_smtp/7b0633e75a84e1cca91441ebacfb8200c308b759/test/lib/test_auth.ml
ocaml
open! Core open Poly open Async open Async_smtp let () = Backtrace.elide := true let valid_username = "username" let valid_password = "password" let plugin ~login ~plain = (module struct open Smtp_monad.Let_syntax module State = Unit module Session = struct include Smtp_server.Plugin.Simple.Sessi...
ca74260cd2a5f9f80b3e76ac84d0ce690b3e3ef9b5aa4bd182bd1d78bb7ba522
rogerkeays/racket-fluent
unicode.rkt
#lang racket/base (require "main.rkt") (provide (except-out (all-from-out "main.rkt") ~> ~~>) (rename-out (~> →) (~~> ⇒)))
null
https://raw.githubusercontent.com/rogerkeays/racket-fluent/b8bc82e25a35451ba3136f393157e380e6f4837f/unicode.rkt
racket
#lang racket/base (require "main.rkt") (provide (except-out (all-from-out "main.rkt") ~> ~~>) (rename-out (~> →) (~~> ⇒)))
e4bf19dc846b4dd93e23efa0062e7f22fdb785f395384efb6240e3aacab97bf2
jrm-code-project/LISP-Machine
new-macros.lisp
-*- Mode : Lisp ; ) ; : CL ; -*- ;;;; New Macros (defun get-subst (name) (get-declaration name 'prims:subst)) (defmacro ndefmacro (name args &body body) (let ((nname (gensym name))) `(progn (defmacro ,nname ,args ,@body) (setf (nlisp:macro-function ',name) (macro-function ',nn...
null
https://raw.githubusercontent.com/jrm-code-project/LISP-Machine/0a448d27f40761fafabe5775ffc550637be537b2/kmachine/fleabit/new-macros.lisp
lisp
) ; : CL ; -*- New Macros (record-macro-expanded name) this can't really work because this version of macroexpand uses a different representation for the environment than lisp:macroexpand environment this is all common lisp requires This is not right, need to put declarations in the right place get declar...
(defun get-subst (name) (get-declaration name 'prims:subst)) (defmacro ndefmacro (name args &body body) (let ((nname (gensym name))) `(progn (defmacro ,nname ,args ,@body) (setf (nlisp:macro-function ',name) (macro-function ',nname)) (setf (get ',name 'si:arglist) ',args)))) ...
59e2bd3caaf63d09a69e92e941ff041621019f8dc7b009ca87ceec4052da0c0a
lambdaclass/holiday_pinger
console_channel.erl
-module(console_channel). -export([handle/4]). handle(_User, _Date, _Config, Message) -> lager:info(Message), {ok, [<<"console">>]}.
null
https://raw.githubusercontent.com/lambdaclass/holiday_pinger/a8a6d1e28de57cf24d6205d275981a718305b351/src/reminders/console_channel.erl
erlang
-module(console_channel). -export([handle/4]). handle(_User, _Date, _Config, Message) -> lager:info(Message), {ok, [<<"console">>]}.
0283dff7489fcc118ed284adc92a445b8ac6367c684fcf8aef7c7186124cbdb1
facebook/infer
fml.ml
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
null
https://raw.githubusercontent.com/facebook/infer/b3d7208a8664a8cd8f6c5d96893b00e06e3e4b6f/sledge/src/fol/fml.ml
ocaml
* Formulas * Construct x = y ==> 0 = x - y when x = y is an arithmetic equality * Traverse
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
660b2b8ee7fabec41b23e08f356f5faadfbdbf78f6bceb21266a4d5806f17497
mfoemmel/erlang-otp
ssh_subsystem_sup.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2008 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/ssh/src/ssh_subsystem_sup.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 2008 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(ssh_subsystem_sup). -behaviour(su...
fdd6a3b2035dd369f37d8f1a8e31d2ad4edab127ea9bde6fe6ac5bf47aeb7a68
samoht/depyt
test.ml
--------------------------------------------------------------------------- Copyright ( c ) 2016 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) 2...
null
https://raw.githubusercontent.com/samoht/depyt/58dc17c37159a266dc677dfff3176c9ab7218504/test/test.ml
ocaml
FIXME: should go upstream we wrap the JSON fragment into a list to be sure that `pp_json` will not try to wrap the result in a list.
--------------------------------------------------------------------------- Copyright ( c ) 2016 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) 2...
75cd310822fc2c39b449f352c745e0644b520ece7d2fa3f14bc588a072ae97a6
BranchTaken/Hemlock
test_hash_fold.ml
open! Basis.Rudiments open! Basis open I8 let test () = let rec test_hash_fold xs = begin match xs with | [] -> () | x :: xs' -> begin File.Fmt.stdout |> Fmt.fmt "hash_fold " |> fmt ~alt:true ~zpad:true ~width:2L ~radix:Radix.Hex ~pretty:true x |> Fmt.fmt " -> " |>...
null
https://raw.githubusercontent.com/BranchTaken/Hemlock/a07e362d66319108c1478a4cbebab765c1808b1a/bootstrap/test/basis/i8/test_hash_fold.ml
ocaml
open! Basis.Rudiments open! Basis open I8 let test () = let rec test_hash_fold xs = begin match xs with | [] -> () | x :: xs' -> begin File.Fmt.stdout |> Fmt.fmt "hash_fold " |> fmt ~alt:true ~zpad:true ~width:2L ~radix:Radix.Hex ~pretty:true x |> Fmt.fmt " -> " |>...
bb090b3976d86376165a7d8d998dbd55ee9e2bfb522272b513dbc16db77af40f
grammarly/omniconf
project.clj
(defproject example-lein "0.1.0-SNAPSHOT" :dependencies [[org.clojure/clojure "1.10.0"] [com.grammarly/omniconf "0.3.2"]] :main example-lein.core)
null
https://raw.githubusercontent.com/grammarly/omniconf/588e9e9200509f7c6afe1ff5f2bddad7bab5b0a4/example-lein/project.clj
clojure
(defproject example-lein "0.1.0-SNAPSHOT" :dependencies [[org.clojure/clojure "1.10.0"] [com.grammarly/omniconf "0.3.2"]] :main example-lein.core)
85d04d2fb4e0a491e486b9241148d434a30a27c7830c107591277bb3139afd27
realworldocaml/book
common.mli
val version : string exception Json_error of string (** Exception used: - in JSON readers, if parsing fails; - in JSON writers and pretty printing, if [float] value is not allowed in standard JSON. *) val json_error : string -> 'a (** @raise Json_error *) type lexer_state = { buf : Buffer.t; (** Buffer...
null
https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/yojson/lib/common.mli
ocaml
* Exception used: - in JSON readers, if parsing fails; - in JSON writers and pretty printing, if [float] value is not allowed in standard JSON. * @raise Json_error * Buffer used to accumulate substrings * Name referencing the input file in error messages * Create a fresh lexer_state record. */* begin undo...
val version : string exception Json_error of string val json_error : string -> 'a type lexer_state = { buf : Buffer.t; mutable lnum : int; * Current line number ( counting from 1 ) mutable bol : int; * Absolute position of the first character of the current line ( counting from 0 ) (countin...
3257d4c24c6a56b16cc6b9b4c0ce5ee10f519e402557d394d7b92d52d1e82109
DYCI2/om-dyci2
general.lisp
;============================================================================ OM - SuperVP SuperVP sound analysis and processing for OpenMusic ;============================================================================ ; ; This program is free software. For information on usage ; and redistribution, ...
null
https://raw.githubusercontent.com/DYCI2/om-dyci2/a51e6c51ec60ffabb799c9ee08d2173c30509ac2/om-dyci2/dependencies/OM-SuperVP%202.13/sources/general.lisp
lisp
============================================================================ ============================================================================ This program is free software. For information on usage and redistribution, see the "LICENSE" file in this distribution. This program is distributed...
OM - SuperVP SuperVP sound analysis and processing for OpenMusic File author : ( IRCAM - 2006 - 2016 ) (in-package :svp) (defmethod! om::supervp-command ((cmd string)) :icon 950 (let ((supervp-path (om::svp-path))) (if (and supervp-path (probe-file supervp-path)) (om::om-cmd-l...
f75100bf44a6137f46716d30822d53a0229cc422d7f086c59c1e1facf52315df
adamwalker/clash-utils
Test.hs
{-# LANGUAGE RankNTypes #-} | Utilities for testing streams consisting of data and signals module Clash.Stream.Test ( streamList, streamListHoldEnable, toPacketStream, toPacketStreamList, fromPacketStream, fromPacketStreamList, StreamOperator, propStre...
null
https://raw.githubusercontent.com/adamwalker/clash-utils/375c61131e21e9a239b80bdb929ae77f156d056f/src/Clash/Stream/Test.hs
haskell
# LANGUAGE RankNTypes # | Create a stream from a list ^ List to stream ^ Enable signal - useful if your design needs to be tolerant of the enable signal dropping out ^ Ready signal from downstream ^ (Valid, Data) | Create a stream from a list. Holds data and enable constant if downstream doesn't assert ready. ^ ...
| Utilities for testing streams consisting of data and signals module Clash.Stream.Test ( streamList, streamListHoldEnable, toPacketStream, toPacketStreamList, fromPacketStream, fromPacketStreamList, StreamOperator, propStreamIdentity, propPack...
0923a622efbfbc79e0be84c46dcbb85b7e31eef77a551c4149fa8168f18d632e
repl-electric/cassiopeia
synths.clj
(ns cassiopeia.waves.synths (:use overtone.live) (:use mud.core) (:require [mud.timing :as time] [overtone.studio.fx :as fx] [cassiopeia.engine.mixers :as mix] [overtone.inst.synth :as s])) (defsynth spacy [buf 0 chain 0 amp 1] (let [in (play-buf:ar 1 buf (buf-rate-scale:kr...
null
https://raw.githubusercontent.com/repl-electric/cassiopeia/a42c01752fc8dd04ea5db95c8037f393c29cdb75/src/cassiopeia/waves/synths.clj
clojure
(mouse-x:kr 0 (= beat-num cnt) (= beat-num cnt) _ (tap "g" 60 (a2k src)) (= beat-num cntsteps) (= beat-num cntsteps) ctl-wave-prob (coin-gate:kr verb (impulse:kr (/ 1 0.5))) src (* slice-amp [s1 s2]) Experimental Synths
(ns cassiopeia.waves.synths (:use overtone.live) (:use mud.core) (:require [mud.timing :as time] [overtone.studio.fx :as fx] [cassiopeia.engine.mixers :as mix] [overtone.inst.synth :as s])) (defsynth spacy [buf 0 chain 0 amp 1] (let [in (play-buf:ar 1 buf (buf-rate-scale:kr...
9da0692a59791f1362b6ffe26cd0b24cf92f556322a702a0451c9459e333b0c9
discus-lang/ddc
BuilderX8664Linux.hs
{-# OPTIONS_HADDOCK hide #-} module DDC.Build.Builder.BuilderX8664Linux where import DDC.Build.Builder.Base import qualified DDC.Core.Salt.Platform as Llvm import qualified System.Directory as System builder_X8664_Linux config host = Builder { builderName = "x86_64-linux" , build...
null
https://raw.githubusercontent.com/discus-lang/ddc/2baa1b4e2d43b6b02135257677671a83cb7384ac/src/s1/ddc-build/DDC/Build/Builder/BuilderX8664Linux.hs
haskell
# OPTIONS_HADDOCK hide #
module DDC.Build.Builder.BuilderX8664Linux where import DDC.Build.Builder.Base import qualified DDC.Core.Salt.Platform as Llvm import qualified System.Directory as System builder_X8664_Linux config host = Builder { builderName = "x86_64-linux" , buildHost = Platform A...
d40cf4c0f40a84c3316ec5c2d1b3c9700692c226a5dcd657629941497a116416
fpco/ide-backend
TempFile.hs
# LANGUAGE CPP # {-# OPTIONS_HADDOCK hide #-} module Distribution.Compat.TempFile ( openTempFile, openBinaryTempFile, openNewBinaryFile, createTempDirectory, ) where import System.FilePath ((</>)) import Foreign.C (eEXIST) import System.IO (Handle, openTempFile, openBinaryT...
null
https://raw.githubusercontent.com/fpco/ide-backend/860636f2d0e872e9481569236bce690637e0016e/ide-backend/TestSuite/inputs/Cabal-1.18.1.5/Distribution/Compat/TempFile.hs
haskell
# OPTIONS_HADDOCK hide # ------------------------------------------------------------ * temporary files ------------------------------------------------------------ TODO: Not sure about jhc This is a copy/paste of the openBinaryTempFile definition, but needs to be changed to make this better. We split off the la...
# LANGUAGE CPP # module Distribution.Compat.TempFile ( openTempFile, openBinaryTempFile, openNewBinaryFile, createTempDirectory, ) where import System.FilePath ((</>)) import Foreign.C (eEXIST) import System.IO (Handle, openTempFile, openBinaryTempFile) import Data.Bits ...
63a991fd59ad80320552bf20976bfca31be5a360aaa3d407dd5c752bf3d8e5e6
dpiponi/Moodler
ParsePragma.hs
| Module : ParsePragma Description : Quick and dirty DFA to parse pragma lines at start of .msl file Maintainer : .msl files support two kinds of pragmas : @ # define include " file.h " # define link " library.o " @ These allow inclusion of header files in generated C code and the linking ...
null
https://raw.githubusercontent.com/dpiponi/Moodler/a0c984c36abae52668d00f25eb3749e97e8936d3/Moodler/src/ParsePragma.hs
haskell
| Parse entire pragma line | Parse entire pragma line after initial # | Parse spaces in pragma line after 'pragma' | Parse keyword ('include' or 'link') in pragma line | Parse string | Parse string after initial '"' ^ ...returning this list of headers and list of libraries
| Module : ParsePragma Description : Quick and dirty DFA to parse pragma lines at start of .msl file Maintainer : .msl files support two kinds of pragmas : @ # define include " file.h " # define link " library.o " @ These allow inclusion of header files in generated C code and the linking ...
b6432abbc31660cb3b32f8b816da2221453ecd4a657af568253c339e7cfa5e74
input-output-hk/hydra
TimeHandle.hs
-- | Module to deal with time in direct cardano chain layer. Defines the type for a ' PointInTime ' and a means to acquire one via a ' TimeHandle ' and ' queryTimeHandle ' . module Hydra.Chain.Direct.TimeHandle where import Hydra.Prelude import Cardano.Slotting.Slot (SlotNo (SlotNo)) import Cardano.Slotting.Time ...
null
https://raw.githubusercontent.com/input-output-hk/hydra/03f64a7dc8f5e6d3a6144f086f70563461d63036/hydra-node/src/Hydra/Chain/Direct/TimeHandle.hs
haskell
| Module to deal with time in direct cardano chain layer. Defines the type | Get the current 'PointInTime' | Lookup slot number given a 'UTCTime'. This will fail if the time is outside the "safe zone". | Convert a slot number to a 'UTCTime' using the stored epoch info. This will fail if the slot is outside the "s...
for a ' PointInTime ' and a means to acquire one via a ' TimeHandle ' and ' queryTimeHandle ' . module Hydra.Chain.Direct.TimeHandle where import Hydra.Prelude import Cardano.Slotting.Slot (SlotNo (SlotNo)) import Cardano.Slotting.Time (SystemStart (SystemStart), fromRelativeTime, toRelativeTime) import Data.Time...
701780c8f81a91f3f7852322e7b1ba488cb7d1e55da7c1f812eb2a4563bbad4d
nshimaza/thread-supervisor
SupervisorInternalSpec.hs
# OPTIONS_GHC -Wno - type - defaults # module Control.Concurrent.SupervisorInternalSpec where import Data.Char (chr, ord) import Data.Default (def) import Data.Foldable (for_) import Data.List ...
null
https://raw.githubusercontent.com/nshimaza/thread-supervisor/ac7e21eadd2489c85aa9a630ae89c629280032bc/test/Control/Concurrent/SupervisorInternalSpec.hs
haskell
# ANN module "HLint: ignore Reduce duplication" #
# OPTIONS_GHC -Wno - type - defaults # module Control.Concurrent.SupervisorInternalSpec where import Data.Char (chr, ord) import Data.Default (def) import Data.Foldable (for_) import Data.List ...
a15bd93736b24f007232d91727233d882b745f549153c8e68f6cdd4b185c1bb7
TyGuS/hoogle_plus
FilterTest.hs
module HooglePlus . FilterTest ( runChecks , checkSolutionNotCrash , checkDuplicates ) where module HooglePlus.FilterTest where import Language.Haskell.Interpreter hiding (get) import Language.Haskell.Interpreter.Unsafe import Language.Haskell.Exts.Parser import Text.Printf import Control.Exception import Data.List ...
null
https://raw.githubusercontent.com/TyGuS/hoogle_plus/d02a1466d98f872e78ddb2fb612cb67d4bd0ca18/src/HooglePlus/FilterTest.hs
haskell
instantiate polymorphic types in function signature with `Int` * note that constraints were ignored since we only use `Int` now
module HooglePlus . FilterTest ( runChecks , checkSolutionNotCrash , checkDuplicates ) where module HooglePlus.FilterTest where import Language.Haskell.Interpreter hiding (get) import Language.Haskell.Interpreter.Unsafe import Language.Haskell.Exts.Parser import Text.Printf import Control.Exception import Data.List ...
1612e7fb12e19a41c3c915231ef44ebb98205196da544684c362ce63ff9b38e7
travelping/ergw_aaa
static_SUITE.erl
Copyright 2017,2018 , Travelping GmbH < > %% This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . -module(static_SUIT...
null
https://raw.githubusercontent.com/travelping/ergw_aaa/e74860196603c26d15366d30519f4b6884b92cc4/test/static_SUITE.erl
erlang
This program is free software; you can redistribute it and/or Common Test callbacks DownLink =================================================================== Common Test callbacks =================================================================== =================================================================...
Copyright 2017,2018 , Travelping GmbH < > 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 later version . -module(static_SUITE). -compile([export_all, nowarn_export_all]). -include_lib("co...
22cc9f4b3ba9c0d197537e7043d4136ae7968bee9b633273340a329c7a11b19a
NorfairKing/validity
ApplicativeSpec.hs
# LANGUAGE TypeApplications # module Test.Validity.ApplicativeSpec where import Data.GenValidity import Test.Hspec import Test.Validity.Applicative spec :: Spec spec = do applicativeSpec @(Either Int) applicativeSpec @[] applicativeSpec @Maybe applicativeSpecOnArbitrary @[] applicativeSpecOnArbitrary @Mayb...
null
https://raw.githubusercontent.com/NorfairKing/validity/35bc8d45b27e6c21429e4b681b16e46ccd541b3b/genvalidity-hspec/test/Test/Validity/ApplicativeSpec.hs
haskell
# LANGUAGE TypeApplications # module Test.Validity.ApplicativeSpec where import Data.GenValidity import Test.Hspec import Test.Validity.Applicative spec :: Spec spec = do applicativeSpec @(Either Int) applicativeSpec @[] applicativeSpec @Maybe applicativeSpecOnArbitrary @[] applicativeSpecOnArbitrary @Mayb...
dfb081dc4948b471ae05cef4e7664ee7f0a7807cda9360463969fcd6fa423548
gergoerdi/metafun
Infer.hs
module Language.Kiff.Typing.Infer (infer) where import Language.Kiff.Syntax import Language.Kiff.Typing import Language.Kiff.Typing.Errors import Language.Kiff.Typing.Substitution import Language.Kiff.Typing.Unify import Language.Kiff.Typing.Instantiate import Language.Kiff.Typing.State import Language.Kiff.CallGraph ...
null
https://raw.githubusercontent.com/gergoerdi/metafun/b279ebfa90cd177ff276f98d42fbbccfcca33374/src/Language/Kiff/Typing/Infer.hs
haskell
TODO: errors TODO: errors TODO: Check that pattern variable names are non-overlapping TODO: errors
module Language.Kiff.Typing.Infer (infer) where import Language.Kiff.Syntax import Language.Kiff.Typing import Language.Kiff.Typing.Errors import Language.Kiff.Typing.Substitution import Language.Kiff.Typing.Unify import Language.Kiff.Typing.Instantiate import Language.Kiff.Typing.State import Language.Kiff.CallGraph ...
681ea70456b77af90498bf922759b6c472134acdbfa8a6542dcb184c54485ec9
samrushing/irken-compiler
t_lll.scm
;; -*- Mode: Irken -*- (datatype list (:nil) (:cons 'a (list 'a)) ) ;(define (+ a b) ; (%%cexp (int int -> int) "%0+%1" a b)) (define (+ a b) (%llarith add a b)) (define ^llvm-len () acc -> acc (_ . tl) acc -> (^llvm-len tl (+ 1 acc)) ) (^llvm-len '(1 2 3 4 5) 0)
null
https://raw.githubusercontent.com/samrushing/irken-compiler/690da48852d55497f873738df54f14e8e135d006/tests/llvm/t_lll.scm
scheme
-*- Mode: Irken -*- (define (+ a b) (%%cexp (int int -> int) "%0+%1" a b))
(datatype list (:nil) (:cons 'a (list 'a)) ) (define (+ a b) (%llarith add a b)) (define ^llvm-len () acc -> acc (_ . tl) acc -> (^llvm-len tl (+ 1 acc)) ) (^llvm-len '(1 2 3 4 5) 0)
1bc6733b232f2d1929eae5d65158ac2f93a282cfbe1c48e7f17dbef5dce33224
ghc/packages-directory
T8482.hs
# LANGUAGE CPP # module T8482 where #include "util.inl" tmp1 :: FilePath tmp1 = "T8482.tmp1" testdir :: FilePath testdir = "T8482.dir" main :: TestEnv -> IO () main _t = do writeFile tmp1 "hello" createDirectory testdir T(expectIOErrorType) () (is InappropriateType) (renameFile testdir tmp1) T(expectIOErrorT...
null
https://raw.githubusercontent.com/ghc/packages-directory/75165a9d69bebba96e0e3a1e519ab481d1362dd2/tests/T8482.hs
haskell
# LANGUAGE CPP # module T8482 where #include "util.inl" tmp1 :: FilePath tmp1 = "T8482.tmp1" testdir :: FilePath testdir = "T8482.dir" main :: TestEnv -> IO () main _t = do writeFile tmp1 "hello" createDirectory testdir T(expectIOErrorType) () (is InappropriateType) (renameFile testdir tmp1) T(expectIOErrorT...
4a7c1a040dbc0f5b68ac58f2828ef75c0aee755bd52c8db26846aece21b1b618
reanimate/reanimate
doc_mkImage.hs
#!/usr/bin/env stack -- stack runghc --package reanimate module Main (main) where import Reanimate import Reanimate.Builtin.Documentation main :: IO () main = reanimate $ docEnv $ staticFrame 1 $ mkImage screenWidth screenHeight "../data/haskell.svg"
null
https://raw.githubusercontent.com/reanimate/reanimate/5ea023980ff7f488934d40593cc5069f5fd038b0/examples/doc_mkImage.hs
haskell
stack runghc --package reanimate
#!/usr/bin/env stack module Main (main) where import Reanimate import Reanimate.Builtin.Documentation main :: IO () main = reanimate $ docEnv $ staticFrame 1 $ mkImage screenWidth screenHeight "../data/haskell.svg"
bafae0a3c4f3c55442b26cf7be30b58c23dcccbdf1e665dce667d1e3a7b9516b
LCBH/UKano
display.mli
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Cryptographic protocol verifier * * * ...
null
https://raw.githubusercontent.com/LCBH/UKano/13c046ddaca48b45d3652c3ea08e21599e051527/proverif2.01/src/display.mli
ocaml
* Return an abbreviated derivation and an association table where the names are abbreviated [auto_cleanup_display f] runs [f()], considering the identifiers displayed by [f()] as having a local scope, so that the same identifiers can be reused after [auto_cleanup_display f] [string_of_fsymb f] returns the str...
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Cryptographic protocol verifier * * * ...
cdd2f0149da2592cc9b661eda1af95842afbf0dac37bcf5bab0405e62dfd2404
nuvla/api-server
deployment_parameter.clj
(ns sixsq.nuvla.server.resources.deployment-parameter " These resources represent the parameters of a deployment that describe properties of the deployment, for example, the IP address of the container or a configuration option. " (:require [clojure.string :as str] [sixsq.nuvla.auth.acl-resource :as a] ...
null
https://raw.githubusercontent.com/nuvla/api-server/e4f0535e2e39e5042094fc20bfb811d2a9c75ad5/code/src/sixsq/nuvla/server/resources/deployment_parameter.clj
clojure
set the resource identifier to "deployment-parameter/predictable-uuid3-from-string" CRUD operations initialization
(ns sixsq.nuvla.server.resources.deployment-parameter " These resources represent the parameters of a deployment that describe properties of the deployment, for example, the IP address of the container or a configuration option. " (:require [clojure.string :as str] [sixsq.nuvla.auth.acl-resource :as a] ...
5dc98e7cdc95fd8dfc442db12438e129d86058d7a60be2a193ea93d570d7785b
BekaValentine/SimpleFP
Abstraction.hs
{-# OPTIONS -Wall #-} # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE TypeSynonymInstances #-} module Dependent.Core.Abstraction where import Control.Applicative import Control.Monad.Reader import qualified Control.Monad.State as S import Abs import Scope import Dependent.Core.ConSig i...
null
https://raw.githubusercontent.com/BekaValentine/SimpleFP/3cff456be9f0b99509e5cbe809be1055009b32df/src/Dependent/Core/Abstraction.hs
haskell
# OPTIONS -Wall # # LANGUAGE TypeSynonymInstances #
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # module Dependent.Core.Abstraction where import Control.Applicative import Control.Monad.Reader import qualified Control.Monad.State as S import Abs import Scope import Dependent.Core.ConSig import Dependent.Core.Term instance Abstract String Term C...
73a53c50851842c5d137373a57b36440cec464c48aed3a262cb7b19ad576002d
djblue/portal
macros.cljc
(ns ^:no-doc portal.runtime.macros #?(:cljs (:require-macros portal.runtime.macros))) #?(:clj (defn- resolve-var [& args] (apply (requiring-resolve 'cljs.analyzer/resolve-var) args))) #?(:clj (defmacro extend-type? [type & args] (when (or (= (namespace type) "js") (:type (resolve-var ...
null
https://raw.githubusercontent.com/djblue/portal/1ee145277b572e572bc3fd88ad0553c9cc15d7be/src/portal/runtime/macros.cljc
clojure
(ns ^:no-doc portal.runtime.macros #?(:cljs (:require-macros portal.runtime.macros))) #?(:clj (defn- resolve-var [& args] (apply (requiring-resolve 'cljs.analyzer/resolve-var) args))) #?(:clj (defmacro extend-type? [type & args] (when (or (= (namespace type) "js") (:type (resolve-var ...
98459efb1a2b66bf75cd84dd8ac7d05dab4147c99e0f165082b5a7d0a1b8700a
Decentralized-Pictures/T4L3NT
fees_storage.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > (* ...
null
https://raw.githubusercontent.com/Decentralized-Pictures/T4L3NT/6d4d3edb2d73575384282ad5a633518cba3d29e3/src/proto_alpha/lib_protocol/fees_storage.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETH...
10b03889f30a704b4df9263ebe7a90b389d9f6fb16d3befcf0c9d67f2775d59d
monadbobo/ocaml-core
english.mli
* Translating English into useful data structures open Core.Std * [ parse_int s ] : Like standard int_of_string , but try to convert the first twenty english numbers ( eg . " one " , " two " , ... " twenty " ) [ parse_int " thirteen " ] [ - : int = 13 ] [ parse_int " 5296 " ] [ - : int...
null
https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/core/extended/lib/english.mli
ocaml
just uses [parse_date] for the date part
* Translating English into useful data structures open Core.Std * [ parse_int s ] : Like standard int_of_string , but try to convert the first twenty english numbers ( eg . " one " , " two " , ... " twenty " ) [ parse_int " thirteen " ] [ - : int = 13 ] [ parse_int " 5296 " ] [ - : int...
f969b4c7a094fbc0b44ed4365c95d4ee2622dd7172391e65d9d3ac96eab83c57
tachukao/ocaml-mlir
pass.ml
(* Recreating CAPI test: pass.c *) open Mlir open IR (* test run pass on module *) let%expect_test _ = with_context (fun ctx -> register_all_dialects ctx; let m = {| func @foo(%arg0 : i32) -> i32 { %res = addi %arg0, %arg0 : i32 return %res : i32 } |} |> Module.par...
null
https://raw.githubusercontent.com/tachukao/ocaml-mlir/0e65403c994b16c3e01a55e61b4df7f5a1728af3/tests/pass.ml
ocaml
Recreating CAPI test: pass.c test run pass on module Run the print-op-stats pass on the top-level module test run pass on nested module
open Mlir open IR let%expect_test _ = with_context (fun ctx -> register_all_dialects ctx; let m = {| func @foo(%arg0 : i32) -> i32 { %res = addi %arg0, %arg0 : i32 return %res : i32 } |} |> Module.parse ctx in assert (Module.(not (is_null m))); le...
260c35c8ee9abfac6b316800f77f61a355513de6683fa76742e5fcfb3536f3f8
OlafChitil/hat
Delta.hs
{-# LANGUAGE EmptyDataDecls #-} -- Low-level routines specifically for hat-delta / hat-detect. module Delta ( findMain, findMainCall, edtNextChild , doObserve, doTrail, doDelta, doDetect, doAnim, doExplore, doView , identifyBug, identifyCycle , questionText, showHeuristic , ParentSet, newParentSet , anySus...
null
https://raw.githubusercontent.com/OlafChitil/hat/8840a480c076f9f01e58ce24b346850169498be2/tools/Delta.hs
haskell
# LANGUAGE EmptyDataDecls # Low-level routines specifically for hat-delta / hat-detect. | Maybe | MaybeNo For debugging: foreign import ccall showParentSet :: ParentSet -> IO () putStrLn ("edtNextChild: "++showHex (int c) "") showParentSet ps
module Delta ( findMain, findMainCall, edtNextChild , doObserve, doTrail, doDelta, doDetect, doAnim, doExplore, doView , identifyBug, identifyCycle , questionText, showHeuristic , ParentSet, newParentSet , anySuspect , DetectCommand(..), toCommand , DeltaOption(..), HeuristicMode(..), HeuristicBool(..)...
95c2fb0ea8b6c6091cee524185dda71d28dca711dbd946d609222ffb9cd582f4
sionescu/iolib
ex1-client.lisp
(in-package :iolib.examples) This file was originally written by ( ) and this code is released under the same license as IOLib . ;;;; The entry call to this example is: (run-ex1-client) It can take two keyword arguements of : host STRING and : port INTEGER . This example implements a very simple IPV4 TCP ...
null
https://raw.githubusercontent.com/sionescu/iolib/dac715c81db55704db623d8b2cfc399ebcf6175f/examples/ex1-client.lisp
lisp
The entry call to this example is: (run-ex1-client) It can take client which talks to a date server. After connecting to the date server, a single line is sent from the server to the cilent and then the client disconnects. We don't handle many errors and this code is written from a C-style perspective that we wil...
(in-package :iolib.examples) This file was originally written by ( ) and this code is released under the same license as IOLib . two keyword arguements of : host STRING and : port INTEGER . This example implements a very simple IPV4 TCP blocking i / o (defun run-ex1-client (&key (host *host*) (port *por...
ccb894145f67a529440f53540708beda92dabf908eebf72b94f35c92bb6d4cbc
esl/MongooseIM
service_admin_extra_domain.erl
Domain actions for mongooseimctl -module(service_admin_extra_domain). -export([commands/0, insert_domain/2, delete_domain/2, enable_domain/1, disable_domain/1]). -ignore_xref([ commands/0, insert_domain/2, delete_domain/2, enable_domain/1, disable_domain/1 ]). -include("ejabb...
null
https://raw.githubusercontent.com/esl/MongooseIM/c863ca0a6109c782577a63e00510f634ca31d831/src/domain/service_admin_extra_domain.erl
erlang
Domain actions for mongooseimctl -module(service_admin_extra_domain). -export([commands/0, insert_domain/2, delete_domain/2, enable_domain/1, disable_domain/1]). -ignore_xref([ commands/0, insert_domain/2, delete_domain/2, enable_domain/1, disable_domain/1 ]). -include("ejabb...
0dd5edddf7858b2bd2178aa0dd76be34fb442f416286a16bf50586a988617fd7
ulricha/dsh
PruneEmpty.hs
# LANGUAGE TemplateHaskell # module Database.DSH.VSL.Opt.Rewrite.PruneEmpty(pruneEmpty) where -- import Control.Monad import Database.DSH.Common.Opt import Database.DSH.Common.VectorLang import Database.DSH.VSL.Opt.Properties.Types import Database.DSH.VSL.Opt.Rewrite...
null
https://raw.githubusercontent.com/ulricha/dsh/e6cd5c6bea575e62a381e89bfc4cc7cb97485106/src/Database/DSH/VSL/Opt/Rewrite/PruneEmpty.hs
haskell
import Control.Monad import Database.Algebra.Dag.Common import Database.DSH.VSL.Lang emptyAppendLeftR1 , emptyAppendLeftR2 , emptyAppendRightR1 , emptyAppendRightR2 , emptyAppendRightR3 well, because otherwise inner vectors will be re-keyed and no longer be aligned with the outer...
# LANGUAGE TemplateHaskell # module Database.DSH.VSL.Opt.Rewrite.PruneEmpty(pruneEmpty) where import Database.DSH.Common.Opt import Database.DSH.Common.VectorLang import Database.DSH.VSL.Opt.Properties.Types import Database.DSH.VSL.Opt.Rewrite.Common pruneEmpty :: VSLRewrite...
2e943cb4749a971455d0048bc829a86ad819a371cccdf34c0783732862f42836
erlang/corba
ic_attribute_java.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1999 - 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 applic...
null
https://raw.githubusercontent.com/erlang/corba/a35a739ccb8f31fabf8e7314584d1ed176bcaf93/lib/ic/src/ic_attribute_java.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 1999 - 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 , -module(ic_attribute_java). -include("icforms.hrl"). -include("ic.hrl"). -export([emit_attribute_prototype/4, em...
b4aff645d4bfae7c4cc3135af4c0afa43f14e8d439d095ae951c1426092bf38b
jamie/sicp
1.2.2.clj
1.11 A function f is defined by the rule that f(n ) = n if n<3 and f(n ) = f(n - 1 ) + 2f(n - 2 ) + 3f(n - 3 ) if n>= 3 . Write a procedure that ; computes f by means of an iterative process. ; recursive (defn f [n] (if (< n 3) n (+ (f (- n 1)) (* 2 (f (- n 2))) (* 3 (f (- n 3))...
null
https://raw.githubusercontent.com/jamie/sicp/c6b152cea29c72db0cab03f3252322073f84e95f/1.2.2.clj
clojure
computes f by means of an iterative process. recursive iterative translation 1 2 1 1 4 6 4 1 Prove that Fib(n) is the closest integer to phi^n/ sqrt5, where phi = (1 + sqrt5)/2. Hint: Let psi = (1 - sqrt5)/2. Use induction and the Fib(n) = (phi^n - psi^n)/ sqrt5. Definition of fibonnaci: Fib...
1.11 A function f is defined by the rule that f(n ) = n if n<3 and f(n ) = f(n - 1 ) + 2f(n - 2 ) + 3f(n - 3 ) if n>= 3 . Write a procedure that (defn f [n] (if (< n 3) n (+ (f (- n 1)) (* 2 (f (- n 2))) (* 3 (f (- n 3))) ))) (defn f [n] (defn iter [i n1 n2 n3] (if (> i n)...
a114228a4cc64d5fdedd1d25501740c1687e7535dc24758304d686177f720ae6
ekmett/category-extras
Const.hs
------------------------------------------------------------------------------------------- -- | -- Module : Control.Functor.Combinators.Const Copyright : 2008 -- License : BSD3 -- Maintainer : < > -- Stability : experimental -- Portability : portable -- ----------------------------------------------------...
null
https://raw.githubusercontent.com/ekmett/category-extras/f0f3ca38a3dfcb49d39aa2bb5b31b719f2a5b1ae/Control/Functor/Combinators/Const.hs
haskell
----------------------------------------------------------------------------------------- | Module : Control.Functor.Combinators.Const License : BSD3 Stability : experimental Portability : portable -----------------------------------------------------------------------------------------
Copyright : 2008 Maintainer : < > module Control.Functor.Combinators.Const ( Const2(Const2,runConst2) ) where import Data.Monoid import Control.Applicative import Control.Applicative.Parameterized () import Control.Monad import Control.Category.Hask import Control.Category.Associative import Control.Ca...
ad0f9522b0c72e2216fa0f90178cfbb98a4dfaeaae82a334943a9509392275f9
kennethkalmer/re-frame-semantic-ui-react-github-widget
config.cljs
(ns re-frame-semantic-ui-react-github-widget.config) (def debug? ^boolean js/goog.DEBUG)
null
https://raw.githubusercontent.com/kennethkalmer/re-frame-semantic-ui-react-github-widget/5849fe00386518e5e28013a36c76efd0eb4b4c12/src/cljs/re_frame_semantic_ui_react_github_widget/config.cljs
clojure
(ns re-frame-semantic-ui-react-github-widget.config) (def debug? ^boolean js/goog.DEBUG)
97a849f5ca076364fa073a4f92388d4eb665c58bb9721b34828019c6fe8f8eb6
wireapp/wire-server
Locale.hs
-- This file is part of the Wire Server implementation. -- Copyright ( C ) 2022 Wire Swiss GmbH < > -- -- This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License...
null
https://raw.githubusercontent.com/wireapp/wire-server/2e1290d79e43685f5fecacd95b7170e3714ad848/services/brig/src/Brig/Locale.hs
haskell
This file is part of the Wire Server implementation. This program is free software: you can redistribute it and/or modify it under later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTI...
Copyright ( C ) 2022 Wire Swiss GmbH < > the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any You should have received a copy of the GNU Affero General Public License along module Brig.Locale ( timeLocal...
1a6db023c670809f6fd9127998e16ae0697271e9296e148ec661a1188f3a1840
racket/algol60
algol60.rkt
#lang racket/base (require "../runtime.rkt" "../prims.rkt") (provide (all-from-out racket/base) (all-from-out "../prims.rkt") (all-from-out "../runtime.rkt"))
null
https://raw.githubusercontent.com/racket/algol60/e4aebcaff66f121cf52a1f58f4f7bd285eded728/lang/algol60.rkt
racket
#lang racket/base (require "../runtime.rkt" "../prims.rkt") (provide (all-from-out racket/base) (all-from-out "../prims.rkt") (all-from-out "../runtime.rkt"))
2fd1331fd1b9ac402ba3b76c5544215b36e6a284d1270e4ac97cc034571f78bc
Bogdanp/koyo
mail.rkt
#lang racket/base (require component component/testing koyo/url koyo/testing rackunit threading app-name-here/components/mail app-name-here/components/user "../common.rkt") (provide mail-tests) (define mailer (make-test-mailer)) (define mai...
null
https://raw.githubusercontent.com/Bogdanp/koyo/9fac1c0430e34030b430b82b2e6228819642b448/koyo-lib/blueprints/standard/app-name-here-tests/app-name-here/components/mail.rkt
racket
#lang racket/base (require component component/testing koyo/url koyo/testing rackunit threading app-name-here/components/mail app-name-here/components/user "../common.rkt") (provide mail-tests) (define mailer (make-test-mailer)) (define mai...
cfc0e5bb939f92d2b72b3245ed127b4447cd2067887741077b60eb8a8ea94633
kdltr/chicken-core
test-find-files.scm
(import (chicken file) (chicken file posix) (chicken process-context) (chicken sort) (chicken string)) (include "test.scm") (handle-exceptions exn 'ignore (delete-directory "find-files-test-dir" #t)) (define (file-list=? a b) (equal? (sort a string<?) (sort b string<?))) (for-e...
null
https://raw.githubusercontent.com/kdltr/chicken-core/b2e6c5243dd469064bec947cb3b49dafaa1514e5/tests/test-find-files.scm
scheme
Cannot handle symlinks
(import (chicken file) (chicken file posix) (chicken process-context) (chicken sort) (chicken string)) (include "test.scm") (handle-exceptions exn 'ignore (delete-directory "find-files-test-dir" #t)) (define (file-list=? a b) (equal? (sort a string<?) (sort b string<?))) (for-e...
ecb51db01390ce4a6b957ace5784229a84fe2f27d92367821a8c16867f38a527
privet-kitty/cl-competitive
knapsack.lisp
(defpackage :cp/knapsack (:use :cl) (:export #:knapsack-merge)) (in-package :cp/knapsack) ;; TODO: add document and test (declaim (inline knapsack-merge)) (defun knapsack-merge (weights values update-weight update-value &key (order-w #'<) (order-v #'<)) "Merges new item to the set of possi...
null
https://raw.githubusercontent.com/privet-kitty/cl-competitive/3b7fefc982ccfc4fe82e44aa7e9d2d114e07bbea/module/knapsack.lisp
lisp
TODO: add document and test (= w1 (+ w2 new-weight))
(defpackage :cp/knapsack (:use :cl) (:export #:knapsack-merge)) (in-package :cp/knapsack) (declaim (inline knapsack-merge)) (defun knapsack-merge (weights values update-weight update-value &key (order-w #'<) (order-v #'<)) "Merges new item to the set of possible sum of weights and values. ...
5478ef325f5fb636ce5cc2a22a98e3d21d2eef906f8e4b6dd67136fdb7aea4d2
haskell-gi/haskell-gi
GError.hs
{-# LANGUAGE DeriveDataTypeable, ScopedTypeVariables #-} # LANGUAGE TypeFamilies , DataKinds # | To catch GError exceptions use the -- catchGError* or handleGError* functions. They work in a similar -- way to the standard 'Control.Exception.catch' and -- 'Control.Exception.handle' functions. -- To catch just a sin...
null
https://raw.githubusercontent.com/haskell-gi/haskell-gi/bff8f3b92bf2594ea3d6745c346a8de594fc3709/base/Data/GI/Base/GError.hs
haskell
# LANGUAGE DeriveDataTypeable, ScopedTypeVariables # catchGError* or handleGError* functions. They work in a similar way to the standard 'Control.Exception.catch' and 'Control.Exception.handle' functions. 'handleGErrorJust'. To catch any error in a particular error domain use 'catchGErrorJustDomain' \/ 'handleGEr...
# LANGUAGE TypeFamilies , DataKinds # | To catch GError exceptions use the To catch just a single specific error use ' catchGErrorJust ' \/ invoke < -gdkpixbuf/docs/GI-GdkPixbuf-Enums.html#v:catchPixbufError catchPixbufError > \/ module Data.GI.Base.GError ( * Unpacking GError GError(..) , gerror...
7a57254567ce0d544541d07fd6e621ac13ec491ad972c02475b6b4fd76ca55a6
alainfrisch/mtt
robdd.ml
module type HashedOrdered = sig type t val equal: t -> t -> bool val hash: t -> int val compare: t -> t -> int end module type S = sig type var (** Type of atoms. *) include HashedOrdered (* Formulas. *) val dump: (Format.formatter -> var -> unit) -> Format.formatter -> t -> unit val dump_dn...
null
https://raw.githubusercontent.com/alainfrisch/mtt/b94f64aa216b1d16b6c02e434bf20c18e6869a78/robdd.ml
ocaml
* Type of atoms. Formulas. * Returns an integer which uniquely identifies the formula. * The true formula. * The false formula. * Builds a formula from an atom. * Logical negation. * Logical conjunction. * Logical disjunction. * Logical difference. * [simpl t1 t2] returns a formula [t] which is equivalent to...
module type HashedOrdered = sig type t val equal: t -> t -> bool val hash: t -> int val compare: t -> t -> int end module type S = sig type var val dump: (Format.formatter -> var -> unit) -> Format.formatter -> t -> unit val dump_dnf: (Format.formatter -> var -> unit) -> Format.formatter -> t...
2805d7cf61bca090d1eadea37ce8631c5c87d1dcd03b05794abc439604127aeb
smucclaw/dsl
TestNLG.hs
{-# LANGUAGE OverloadedStrings #-} module TestNLG where import Test.Hspec import LS.NLP.NLG import LS.NLP.NL4 import Parsing.PDPASpec (expected_pdpadbno1) import qualified AnyAll as AA import LS.Types import PGF (mkCId) spec :: Spec spec = do env <- runIO $ myNLGEnv (mkCId "NL4Eng") describe "test rodents" $ do ...
null
https://raw.githubusercontent.com/smucclaw/dsl/c4519c02c303b836c738f20b6f3fdda69516803a/lib/haskell/natural4/test/TestNLG.hs
haskell
# LANGUAGE OverloadedStrings #
module TestNLG where import Test.Hspec import LS.NLP.NLG import LS.NLP.NL4 import Parsing.PDPASpec (expected_pdpadbno1) import qualified AnyAll as AA import LS.Types import PGF (mkCId) spec :: Spec spec = do env <- runIO $ myNLGEnv (mkCId "NL4Eng") describe "test rodents" $ do it "Should return questions abo...
8a11675bbd4897316d6dcda83ef6cb0b5bd29713a07cdce7a87bb1d6297e3880
herd/herdtools7
autoOpt.ml
(****************************************************************************) (* the diy toolsuite *) (* *) , University College London , UK . , INRIA Par...
null
https://raw.githubusercontent.com/herd/herdtools7/b86aec8db64f8812e19468893deb1cdf5bbcfb83/gen/autoOpt.ml
ocaml
************************************************************************** the diy toolsuite en Automatique and ...
, University College London , UK . , INRIA Paris - Rocquencourt , France . Copyright 2010 - present Institut National de Recherche en Informatique et This software is governed by the CeCILL - B license under French law and modify and/ or redistribu...
5e4d80133ac83a0105998575d29bd658042b4ee0cd228f4dc73a17b304ac8ae4
tommay/pokemon-go
MyPokemon.hs
-- So .: works with Strings. {-# LANGUAGE OverloadedStrings #-} module MyPokemon ( MyPokemon (MyPokemon), load, name, species, cp, hp, stardust, quickName, chargeName, maybeChargeName2, chargeNames, ivs, stats, level, setIVs, setStats, setLevel, setSpecies, setQuickName, setChar...
null
https://raw.githubusercontent.com/tommay/pokemon-go/6b0132f03a1d50ad5513b70fe715e57879dfa597/src/MyPokemon.hs
haskell
So .: works with Strings. # LANGUAGE OverloadedStrings #
module MyPokemon ( MyPokemon (MyPokemon), load, name, species, cp, hp, stardust, quickName, chargeName, maybeChargeName2, chargeNames, ivs, stats, level, setIVs, setStats, setLevel, setSpecies, setQuickName, setChargeName, ) where import qualified Epic import qualified IVs impo...
870af6f226a4226633c4f6182ac03b9ebb845c7f20d6cf2289cad53fa9b8091b
racket/redex
stlc-sub-info.rkt
#lang racket/base (require racket/runtime-path "../util/info-util.rkt") (provide all-mods) (define-runtime-path here ".") (define (all-mods) (make-all-mods here "stlc-sub" (make-path-root 'stlc-subst)))
null
https://raw.githubusercontent.com/racket/redex/4c2dc96d90cedeb08ec1850575079b952c5ad396/redex-benchmark/redex/benchmark/models/stlc-subst/stlc-sub-info.rkt
racket
#lang racket/base (require racket/runtime-path "../util/info-util.rkt") (provide all-mods) (define-runtime-path here ".") (define (all-mods) (make-all-mods here "stlc-sub" (make-path-root 'stlc-subst)))
3a1c5911d87c8282ecb04b93b4ed21ccc14f40eb1d9cb8db377170ffaa46706b
jordanthayer/ocaml-search
sokoban_instance.ml
(** Instance Representation and loadings *) type direction = | Left | Right | Up | Down type move = | Push of direction | Walk of direction type cell = | Floor | Wall | Target | Player | Box | Box_on_target | Player_on_target type state = { location : int * int; boxes : (int * int) arr...
null
https://raw.githubusercontent.com/jordanthayer/ocaml-search/57cfc85417aa97ee5d8fbcdb84c333aae148175f/sokoban/sokoban_instance.ml
ocaml
* Instance Representation and loadings east west north south * Makes a functionf for Converting states into a strings for printing. ************************************************************************* * How tall is the [b]oard * How wide is the [b]oard let update_parent node new_parent = (** Replace...
type direction = | Left | Right | Up | Down type move = | Push of direction | Walk of direction type cell = | Floor | Wall | Target | Player | Box | Box_on_target | Player_on_target type state = { location : int * int; boxes : (int * int) array; parent : state; } let possible_moves...
bf2169e66af3dcf71d600df0ea88f7b2b76d9a341d7b1665a4171a13a670e531
clojure/clojure-api-doc
collect.clj
(use 'autodoc-collect.collect-info) (collect-info-to-file Clojure repo directory "../../repo/" Relative path in repo to Clojure source "src/clj" ;; Analyze these namespaces "clojure.core:clojure.core.protocols:clojure.core.reducers:clojure.core.server:clojure.data:clojure.datafy:clojure.edn:clojure.insp...
null
https://raw.githubusercontent.com/clojure/clojure-api-doc/e954af24a35fdc776f99f778e09a09142c784533/config/1.10/collect.clj
clojure
Analyze these namespaces Skip these namespaces Trim prefix - don't set Output analysis data file Branch name
(use 'autodoc-collect.collect-info) (collect-info-to-file Clojure repo directory "../../repo/" Relative path in repo to Clojure source "src/clj" "clojure.core:clojure.core.protocols:clojure.core.reducers:clojure.core.server:clojure.data:clojure.datafy:clojure.edn:clojure.inspector:clojure.instant:clojure.j...
692c9694bc757154b2de184d224c824f1cbf363855b7caa8a978e4dda33646d9
dking1286/joyful_clojure
urls.clj
(ns urls (:require [clojure.java.jdbc :as jdbc] [db.core :refer [connection]] [utils.errors :refer [not-found]])) (defn get-url-by-id "Gets the url from the database with the given id, or nil if no such url exists." [id] (let [query ["SELECT * FROM urls WHERE id = ?" id] resu...
null
https://raw.githubusercontent.com/dking1286/joyful_clojure/fa4a17091eab2318b2901a17d0d1004539b6ba76/03_clojure_application_development/src/urls.clj
clojure
(ns urls (:require [clojure.java.jdbc :as jdbc] [db.core :refer [connection]] [utils.errors :refer [not-found]])) (defn get-url-by-id "Gets the url from the database with the given id, or nil if no such url exists." [id] (let [query ["SELECT * FROM urls WHERE id = ?" id] resu...
e3606bd4da47e5b6961b7fb1552bdfc3fea65f78b261c408ba9ffc60d30949f4
s9gf4ult/type-fun
List.hs
-- | Collection of type families on type lists. This module differs -- from __Data.Singletons.Prelude.List__ because works with __[*]__ and relies on GHC 's type equality ( ~ ) . The rest of required -- operations like 'Reverse' or '(:++:)' you could find in singletons module TypeFun.Data.List ( -- * Primitive ope...
null
https://raw.githubusercontent.com/s9gf4ult/type-fun/b4bc5fc90b012b1ad0dd130aa32415579a5c5df5/src/TypeFun/Data/List.hs
haskell
| Collection of type families on type lists. This module differs from __Data.Singletons.Prelude.List__ because works with __[*]__ operations like 'Reverse' or '(:++:)' you could find in singletons * Primitive operations on lists * Elements lookup * Operations with lists * Set operations * Uniqueness checking *...
and relies on GHC 's type equality ( ~ ) . The rest of required module TypeFun.Data.List Length , Drop , Take , Delete , Remove , (:++:) , IndexOf , IndexOfMay , IndexOfMay' , IndicesOfMay , IndicesOf , Index , IndexMay , IndicesMay , Indices , Elem , NotElem , Count , SubList...
7a55e80f714d42d7705c390d8abfc381c0738a5e8a195d4fcaf7a072aaf9021c
rpeszek/typed-encoding
Overview.hs
# LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE DataKinds # # LANGUAGE TypeApplications # # OPTIONS_GHC -Wno - deprecations # -- | type-encoding overview examples. -- This library is concerned with 3 main operations done on strings : -- __encoding__, __decoding__, and __recovery__....
null
https://raw.githubusercontent.com/rpeszek/typed-encoding/441f9f3bbf849f485f82eae66402ee2fd7b47a34/src/Examples/TypedEncoding/Overview.hs
haskell
# LANGUAGE OverloadedStrings # | type-encoding overview examples. __encoding__, __decoding__, and __recovery__. Examples in this module cover all of these base cases. This module uses encoding instances found in $setup This module contains some ghci friendly values to play with. Each value is documented...
# LANGUAGE MultiParamTypeClasses # # LANGUAGE DataKinds # # LANGUAGE TypeApplications # # OPTIONS_GHC -Wno - deprecations # This library is concerned with 3 main operations done on strings : * " Data . . Instances . Enc . Base64 " * " Data . . Instances . Restriction . ASCII " * " Examples . . Instances . ...
1b74576c81f6e25be42e2e860ae1db2cd7f80c08f35279a74e38a3eaf3590c64
clj-dasha/dasha
google.clj
(ns dasha.widgets.google (:require [dasha.widgets.util :refer [icon]] [hiccup.core :as hc]))
null
https://raw.githubusercontent.com/clj-dasha/dasha/13508b5d75cabce5a6dff9545054f7ef40731717/src/dasha/widgets/google.clj
clojure
(ns dasha.widgets.google (:require [dasha.widgets.util :refer [icon]] [hiccup.core :as hc]))
bebc274b9f3e69d79452cbdde9e1d5161345cd66e6b73e81ce4348c896e9aeb3
expipiplus1/vulkan
ExternalFenceHandleTypeFlagBits.hs
{-# language CPP #-} -- No documentation found for Chapter "ExternalFenceHandleTypeFlagBits" module Vulkan.Core11.Enums.ExternalFenceHandleTypeFlagBits ( ExternalFenceHandleTypeFlags , ExternalFenceHandleTypeFlagBits( EXTERNAL_FENCE_HANDLE_TYPE_OPAQUE_FD_BIT ...
null
https://raw.githubusercontent.com/expipiplus1/vulkan/70d8cca16893f8de76c0eb89e79e73f5a455db76/src/Vulkan/Core11/Enums/ExternalFenceHandleTypeFlagBits.hs
haskell
# language CPP # No documentation found for Chapter "ExternalFenceHandleTypeFlagBits" handle types = Description Some external fence handle types can only be shared within the same underlying physical device and\/or the same driver version, as defined in the following table: +---------------------------------...
module Vulkan.Core11.Enums.ExternalFenceHandleTypeFlagBits ( ExternalFenceHandleTypeFlags , ExternalFenceHandleTypeFlagBits( EXTERNAL_FENCE_HANDLE_TYPE_OPAQUE_FD_BIT ...
30f519631f5449d572cb3610623ff50544e5c9c7764596c1a45562b325beda2e
GNOME/gimp-tiny-fu
paste-as-brush.scm
; GIMP - The GNU Image Manipulation Program Copyright ( C ) 1995 and ; ; script-fu-paste-as-brush Based on select - to - brush by Copyright ( c ) 1997 ; ; 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 Soft...
null
https://raw.githubusercontent.com/GNOME/gimp-tiny-fu/a64d85eec23b997e535488d67f55b44395ba3f2e/scripts/paste-as-brush.scm
scheme
GIMP - The GNU Image Manipulation Program script-fu-paste-as-brush This program is free software: you can redistribute it and/or modify either version 3 of the License , or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without eve...
Copyright ( C ) 1995 and Based on select - to - brush by Copyright ( c ) 1997 it under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License (define (script-fu-paste-as-brush name filename spacing) (let* ((brush-image (car (gimp-...
e06cc720f2455b02fa85a11bc5101daad46a419cf515bd3a3106c7849c2ffff1
Eduap-com/WordMat
conjugate.lisp
Copyright 2005 , 2006 , 2020 , 2021 by ;; This is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License , ;; . ;; This software has NO WARRANTY, not even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. (in-package :maxima) ...
null
https://raw.githubusercontent.com/Eduap-com/WordMat/83c9336770067f54431cc42c7147dc6ed640a339/Windows/ExternalPrograms/maxima-5.45.1/share/maxima/5.45.1/src/conjugate.lisp
lisp
This is free software; you can redistribute it and/or . This software has NO WARRANTY, not even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Let's remove built-in symbols from list for user-defined properties. after that , conjugate gives rubbish . Let's remove built-in symbols ...
Copyright 2005 , 2006 , 2020 , 2021 by modify it under the terms of the GNU General Public License , (in-package :maxima) (macsyma-module conjugate) ($put '$conjugate 1 '$version) (setq $props (remove '$conjugate $props)) (defprop $conjugate tex-postfix tex) (defprop $conjugate ("^\\star") texsym) (defpro...
0bdc5ef05988a1816d0106575e87cb28876ae71c27674ba11eb37752c4363b95
blarney-lang/actora
CBackend.hs
module CBackend where -- Standard imports import Data.Char import Data.List import Control.Monad import System.Directory import qualified Data.Set as S import qualified Data.Map as M -- Local imports import Syntax import Descend import Compiler import Monad.Fresh Target : NIOS - II or standard C ( both in 32 - bit...
null
https://raw.githubusercontent.com/blarney-lang/actora/a5380662a55952c19f82e08c4dce25ad98390bdf/compiler/CBackend.hs
haskell
Standard imports Local imports C generator options Compile an expression to a simple expression and an instruction sequence Atoms, integers, variables Functions Lists and tuples Application of primitive function Closure creation Application of known function Application of unknown function Conditional expr...
module CBackend where import Data.Char import Data.List import Control.Monad import System.Directory import qualified Data.Set as S import qualified Data.Map as M import Syntax import Descend import Compiler import Monad.Fresh Target : NIOS - II or standard C ( both in 32 - bit mode ) data CGenMode = Gen_NIOSII_32...
d3c9c079fc103e7447306316f7a02770f61aedb34a4d85559f0c5f54e1297dad
tonyfloatersu/solution-haskell-craft-of-FP
StoreSeq.hs
module StoreSeq ( StoreS , initialS , valueS , updateS ) where type Var = Char newtype StoreS = StoreS [(Integer, Var)] initialS :: StoreS initialS = StoreS [] valueS :: StoreS -> Var -> Integer valueS (StoreS []) _ = 0 valueS (StoreS ((int, chr) : rst)) vr ...
null
https://raw.githubusercontent.com/tonyfloatersu/solution-haskell-craft-of-FP/0d4090ef28417c82a7b01e4a764f657641cb83f3/StoreSeq.hs
haskell
module StoreSeq ( StoreS , initialS , valueS , updateS ) where type Var = Char newtype StoreS = StoreS [(Integer, Var)] initialS :: StoreS initialS = StoreS [] valueS :: StoreS -> Var -> Integer valueS (StoreS []) _ = 0 valueS (StoreS ((int, chr) : rst)) vr ...
54f97ac582d5eb95759bb6929d047f96f971b7dba9faf5ad4dbb65296b274fa1
mzp/coq-ide-for-ios
output.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/mzp/coq-ide-for-ios/4cdb389bbecd7cdd114666a8450ecf5b5f0391d3/coqlib/tools/coqdoc/output.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 **********************************************************************
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * i $ I d : output.mli 13323 20...
303e6969c0cdcb774d55dea4c31094f56f6fc6637de4a8a03ca5258a8c05589f
ahushh/monaba
Delete.hs
# OPTIONS_GHC -fno - warn - type - defaults # module Handler.Admin.Delete where import Import import Handler.Admin.Modlog (addModlogEntry) import Utils.YobaMarkup (makeExternalRef) import qualified Data.Text as T ------------------------------------------------------------...
null
https://raw.githubusercontent.com/ahushh/monaba/9fbfffcc970da0ebaf2d5df716c3bb075b1c761a/monaba/src/Handler/Admin/Delete.hs
haskell
----------------------------------------------------------------------------------------------------------- View and recover deleted posts -----------------------------------------------------------------------------------------------------------
# OPTIONS_GHC -fno - warn - type - defaults # module Handler.Admin.Delete where import Import import Handler.Admin.Modlog (addModlogEntry) import Utils.YobaMarkup (makeExternalRef) import qualified Data.Text as T getAdminDeletedFilteredR :: Text -> Int -> Int -> Handler Ht...
a1aa21847ebd45126e8572110196aea146e720c62581ecf0f026a5f92f13c207
NorfairKing/intray
Sync.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # module Intray.Cli.Sync ( autoSyncStore, tryToSyncStore, anyUnsyncedWarning, ) where import Control.Monad.Logger import qualified Data.Set as S import qualified Data.Text as T import Database.Persist import Database.Persist.Sql import Import i...
null
https://raw.githubusercontent.com/NorfairKing/intray/3335692a5445e86bf308420d4ab025d6ab11b10d/intray-cli/src/Intray/Cli/Sync.hs
haskell
# LANGUAGE OverloadedStrings # If the shown item was deleted then we have to clear it because otherwise it will refer to a row that won't exist anymore when the sync response is merged.
# LANGUAGE RecordWildCards # module Intray.Cli.Sync ( autoSyncStore, tryToSyncStore, anyUnsyncedWarning, ) where import Control.Monad.Logger import qualified Data.Set as S import qualified Data.Text as T import Database.Persist import Database.Persist.Sql import Import import Intray.Cli.DB import Intray.C...
0327b9f565fc3a2c504d24dfa32c59cd2b74706a4e2d5aa9b655f9f47ecb7c68
iand675/datadog
Datadog.hs
| accepts custom application metrics points over UDP , and then periodically aggregates and forwards the metrics to Datadog , where they can be graphed on dashboards . The data is sent by using a client library such as this one that communicates with a server . {-# LANGUAGE BangPatterns #-} {-# LANGUAGE OverloadedSt...
null
https://raw.githubusercontent.com/iand675/datadog/0419b9dfc32581a2e27316786c23df452c7bd475/src/Network/StatsD/Datadog.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE OverloadedStrings # * Client interface * Optional fields * Dummy client dimension that’s meaningful to you and slice and dice along that dimension in your graphs. you could tag the rendering time metric with the version of the algorithm you used. Key and value text values are...
| accepts custom application metrics points over UDP , and then periodically aggregates and forwards the metrics to Datadog , where they can be graphed on dashboards . The data is sent by using a client library such as this one that communicates with a server . # LANGUAGE TemplateHaskell # # LANGUAGE FunctionalDepen...
50d16e92b0aa000f66ccac3787f36d20b12c1eecb95e504c4f1597217a681294
nubank/mockfn
basic_usage.cljc
(ns mockfn.examples.basic-usage (:require [clojure.test :refer [deftest testing is]] [mockfn.macros :as mfn] [mockfn.matchers :as matchers]) #?(:clj (:import (clojure.lang ExceptionInfo)))) (def one-fn) (def other-fn) (defn implemented-fn [x] x) (deftest examples-test (testing "providing...
null
https://raw.githubusercontent.com/nubank/mockfn/7e51406edd237ba51687bfef4e66ee521c603b5f/test/mockfn/examples/basic_usage.cljc
clojure
(ns mockfn.examples.basic-usage (:require [clojure.test :refer [deftest testing is]] [mockfn.macros :as mfn] [mockfn.matchers :as matchers]) #?(:clj (:import (clojure.lang ExceptionInfo)))) (def one-fn) (def other-fn) (defn implemented-fn [x] x) (deftest examples-test (testing "providing...
5af42d330f37d3bebd4ca1d335aa8f3e48a535663cbe883c568ac3e6aabbe4ee
OlafChitil/hat
Directory.hs
module Hat.Directory (Permissions(Permissions, breadable, bwritable, bexecutable, bsearchable), greadable, gwritable, gexecutable, gsearchable, hreadable, hwritable, hexecutable, hsearchable, areadable, awritable, aexecutable, asearchable, aPermissions, gcreate...
null
https://raw.githubusercontent.com/OlafChitil/hat/8840a480c076f9f01e58ce24b346850169498be2/Hat/Directory.hs
haskell
module Hat.Directory (Permissions(Permissions, breadable, bwritable, bexecutable, bsearchable), greadable, gwritable, gexecutable, gsearchable, hreadable, hwritable, hexecutable, hsearchable, areadable, awritable, aexecutable, asearchable, aPermissions, gcreate...
967615aec725f9a5d5677c7ec0fa3de86768d15416f5771e2b6e74010e1d35fd
apache/couchdb-rebar
foo_app.erl
-module(foo_app). -behaviour(application). -export([start/2, stop/1]). start(_Type, _Args) -> foo_sup:start_link(). stop(_State) -> ok.
null
https://raw.githubusercontent.com/apache/couchdb-rebar/8578221c20d0caa3deb724e5622a924045ffa8bf/inttest/erlc/src/foo_app.erl
erlang
-module(foo_app). -behaviour(application). -export([start/2, stop/1]). start(_Type, _Args) -> foo_sup:start_link(). stop(_State) -> ok.
2b58a40d81a26efeee782f01004a1190086ddc47325263e6958446d1fd67b3fc
darrenldl/ProVerif-ATP
termsEq.ml
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Cryptographic protocol verifier * * * ...
null
https://raw.githubusercontent.com/darrenldl/ProVerif-ATP/7af6cfb9e0550ecdb072c471e15b8f22b07408bd/proverif2.00/src/termsEq.ml
ocaml
******* Close clauses modulo the equational theory ****** close_rule_eq is used for clauses entered by the user in Horn-clause front-ends, close_fact_eq is used for closing the goals TO DO should I always recursively close links modulo equations? TO DO should I always recursively close links modulo equations? ...
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Cryptographic protocol verifier * * * ...
3e441b07687989ec055471d5e222012f2d1cb4aa3584a2b0328bf3e252589b20
embeepea/pga2d
repl.clj
(use 'figwheel-sidecar.repl-api) (start-figwheel!) ;; <-- fetches configuration (cljs-repl)
null
https://raw.githubusercontent.com/embeepea/pga2d/d7e140c9718fd68ae0866056f99c0e8e6867da92/script/repl.clj
clojure
<-- fetches configuration
(use 'figwheel-sidecar.repl-api) (cljs-repl)
a29fc3acec4e6d0fae731eef6e8c9653dd90e08fcc859ebd6e3296155ef5ca0e
xapi-project/xen-api-libs-transitional
safe_test.ml
open Safe_resources module Counting : sig type t val create : unit -> t val release : t -> unit val get : t -> int end = struct type t = int ref let create () = ref 0 let release t = incr t let get t = !t end module SafeCounting = struct type t = Counting.t Safe.t let create () = Safe.creat...
null
https://raw.githubusercontent.com/xapi-project/xen-api-libs-transitional/656e5e750d77a98e6656ac1c37d9309be795b0b6/resources/test/safe_test.ml
ocaml
here we access [counter] after [t] has been dropped. * In general one shouldn't do this, but for this unit test it is ok
open Safe_resources module Counting : sig type t val create : unit -> t val release : t -> unit val get : t -> int end = struct type t = int ref let create () = ref 0 let release t = incr t let get t = !t end module SafeCounting = struct type t = Counting.t Safe.t let create () = Safe.creat...
f67c045fbd1b5f5becb4d52e1133ca8909aef1e30b67081b3bb077d1c473bde5
twosigma/waiter
correlation_id.clj
;; Copyright ( c ) Two Sigma Open Source , LLC ;; 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...
null
https://raw.githubusercontent.com/twosigma/waiter/7e42a39b4f4c24dd0c09b92e15bf22a9872618da/waiter/src/waiter/correlation_id.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 specific language governing permi...
Copyright ( c ) Two Sigma Open Source , LLC distributed under the License is distributed on an " AS IS " BASIS , (ns waiter.correlation-id (:require [clojure.string :as str] [clojure.tools.logging :as log]) (:import (clojure.lang Var) (java.util Collections) (org.apache.log4j A...