_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
63b68906cc8092e21dc577e482b8d59e2f55845cbf7521b5491554468f5d1738
racket/racket7
api-module.rkt
#lang racket/base (require "../common/module-path.rkt" "../expand/root-expand-context.rkt" "namespace.rkt" (submod "namespace.rkt" for-module) "module.rkt" "provide-for-api.rkt" "provided.rkt" (submod "module.rkt" for-module-reflect) "../common/con...
null
https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/src/expander/namespace/api-module.rkt
racket
---------------------------------------- Check for declaration: Must be declared, but not instantiated Instantiating the module didn't install a context, so make one now Ensure that the module is available ---------------------------------------- ----------------------------------------
#lang racket/base (require "../common/module-path.rkt" "../expand/root-expand-context.rkt" "namespace.rkt" (submod "namespace.rkt" for-module) "module.rkt" "provide-for-api.rkt" "provided.rkt" (submod "module.rkt" for-module-reflect) "../common/con...
08ad86abb2f917ab46466904f3572820c600a75ebc0bb0a542969e2871829a2e
alt-romes/slfl
map4.hs
data Map a b = Tip | Bin (a * b * (Map a b) * (Map a b)); synth insertWith :: ((b -o b -o b) -> a -o b -o Map a b -o Map a b);
null
https://raw.githubusercontent.com/alt-romes/slfl/4956fcce8ff2ca7622799fe0715c118b568b74eb/STLLC/bench/map4.hs
haskell
data Map a b = Tip | Bin (a * b * (Map a b) * (Map a b)); synth insertWith :: ((b -o b -o b) -> a -o b -o Map a b -o Map a b);
3f9c9c15c3122a11f0a237e324b3d5c6a047418a1e426abbe10e8cb0cf5013d1
relevance/mycroft
daemon.clj
(ns mycroft.daemon (:use [clojure.java.io :only (file)]) (:require mycroft.main)) (defn daemonize "Helper function to launch the server, e.g. when running mycroft on ." [] (.deleteOnExit (file "log/daemon.pid")) (.. System out close) (.. System err close) (mycroft.main/run 8080))
null
https://raw.githubusercontent.com/relevance/mycroft/1bf86dfd1092408c9e9fc836be6dfb2f95099253/src/mycroft/daemon.clj
clojure
(ns mycroft.daemon (:use [clojure.java.io :only (file)]) (:require mycroft.main)) (defn daemonize "Helper function to launch the server, e.g. when running mycroft on ." [] (.deleteOnExit (file "log/daemon.pid")) (.. System out close) (.. System err close) (mycroft.main/run 8080))
415598949551777190fc20284c21dced6b6312e59d188cbef8668ee02996e8e5
iamFIREcracker/adventofcode
day04.lisp
(defpackage :aoc/2020/04 #.cl-user::*aoc-use*) (in-package :aoc/2020/04) (defun parse-line (string) (loop for part in (split-sequence:split-sequence #\Space string) for (name value) = (split-sequence:split-sequence #\: part) unless (string= name "cid") append (list (as-keyword name) value))) ...
null
https://raw.githubusercontent.com/iamFIREcracker/adventofcode/cf33fc217dc63b9438a9b6ec793207351c4d48d5/src/2020/day04.lisp
lisp
it's a plist, and we skipped the "cid" field
(defpackage :aoc/2020/04 #.cl-user::*aoc-use*) (in-package :aoc/2020/04) (defun parse-line (string) (loop for part in (split-sequence:split-sequence #\Space string) for (name value) = (split-sequence:split-sequence #\: part) unless (string= name "cid") append (list (as-keyword name) value))) ...
a812e59e240fc418dbe064ce659663732313c8251987ca335076396b274e4966
input-output-hk/cardano-ledger
OCert.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingVia # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeApplications # module Cardano.Protocol.TPraos.OCert ( OCert...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger/49a84725c4c2ecabc80f6dac215881bc23920962/libs/cardano-protocol-tpraos/src/Cardano/Protocol/TPraos/OCert.hs
haskell
# LANGUAGE OverloadedStrings # | Pool hash ^ The operational hot key ^ counter ^ Start of key evolving signature period ^ Signature of block operational certificate content | Signable part of an operational certificate | Extract the signable part of an operational certificate (for verification)
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingVia # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE NamedFieldPuns # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeApplications # module Cardano.Protocol.TPraos.OCert ( OCert (..), OCertEnv (..), OCertSign...
58be71198fd49cb06f311cb3dabdef6aafed97cd3654a8325093d888bb3e7663
bumptech/nitro-haskell
Setup.hs
module Main where import Distribution.Simple main = defaultMainWithHooks defaultUserHooks
null
https://raw.githubusercontent.com/bumptech/nitro-haskell/937415d361193bab86545d0bc784830b29573474/Setup.hs
haskell
module Main where import Distribution.Simple main = defaultMainWithHooks defaultUserHooks
5a89e36f47e3f087b7064d7525ee51f5553a21ce43bac13c64058b085ca99795
ocaml-ppx/ppx_tools_versioned
ast_mapper_class_402.mli
open Migrate_parsetree.Ast_402 (* This file is part of the ppx_tools package. It is released *) under the terms of the MIT license ( see LICENSE file ) . Copyright 2013 and LexiFi (** Class-based customizable mapper *) open Parsetree class mapper: object method attrib...
null
https://raw.githubusercontent.com/ocaml-ppx/ppx_tools_versioned/00a0150cdabfa7f0dad2c5e0e6b32230d22295ca/ast_mapper_class_402.mli
ocaml
This file is part of the ppx_tools package. It is released * Class-based customizable mapper
open Migrate_parsetree.Ast_402 under the terms of the MIT license ( see LICENSE file ) . Copyright 2013 and LexiFi open Parsetree class mapper: object method attribute: attribute -> attribute method attributes: attribute list -> attribute list method case: case -...
887c12efec2197820fdf459abfba7bf22f9afbd3d26c3590a3fc98a4bb867af3
mmottl/lacaml
complex64.ml
File : complex64.ml Copyright ( C ) 2005- email : WWW : This library is free software ; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either version 2.1 of the Licens...
null
https://raw.githubusercontent.com/mmottl/lacaml/2e01c0747e740e54ab9a23ea59b29ea0d929b50f/src/complex64.ml
ocaml
Mat Types
File : complex64.ml Copyright ( C ) 2005- email : WWW : This library is free software ; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either version 2.1 of the Licens...
dc6c30effe8ffcdc31d38ef1a05fd28d78c9b48a25435b7e278b26913d434ab6
mirage/ocaml-xenstore
call.ml
* Copyright ( C ) Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking described in file LI...
null
https://raw.githubusercontent.com/mirage/ocaml-xenstore/8b4eec36420b5ac529787fb6dab37c83d2b33ad8/server/call.ml
ocaml
Perform a 'simple' operation (not a Transaction_start or Transaction_end) and create a response. Replay a stored transaction against a fresh store, check the responses are all equivalent: if so, commit the transaction. Otherwise send the abort to the client. Don't log an explicit abort register domain ...
* Copyright ( C ) Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking described in file LI...
765b00993453ad8333831f0d169db59995dc76fff3ff44ede16385e74ef8ea47
SamB/coq
unification.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/SamB/coq/8f84aba9ae83a4dc43ea6e804227ae8cae8086b1/pretyping/unification.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** if lname_typ is [xn,An;..;x1,A1] an...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * $ Id$ open Pp open Util ...
41d40f49754c149f22114dfe68f409af2848cdaf93573eb46b2d4c31afea71a1
emqx/pulsar-client-erl
pulsar_relup_SUITE.erl
Copyright ( c ) 2022 EMQ Technologies Co. , Ltd. All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicable law or agr...
null
https://raw.githubusercontent.com/emqx/pulsar-client-erl/8c77ac665589f31a6355c8ebd7cc459b9e4305bc/test/pulsar_relup_SUITE.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing perm...
Copyright ( c ) 2022 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(pulsar_relup_SUITE). -compile(export_all). -compile(nowarn_export_all). -include_lib("eunit/i...
b3c61715a3935ca630e9da1699dcb3d1cab173e05434bcc6ea3162e9a5bfed45
iu-parfunc/verified-instances
Generics.hs
{-@ LIQUID "--higherorder" @-} {-@ LIQUID "--exactdc" @-} {-@ LIQUID "--noadt" @-} # LANGUAGE EmptyCase # {-# LANGUAGE Rank2Types #-} # LANGUAGE TypeOperators # module GenericProofs.VerifiedFunctor.Generics where import Prelude hiding (fmap) import GenericProofs.Iso import GenericProofs.Verified...
null
https://raw.githubusercontent.com/iu-parfunc/verified-instances/cebfdf1e3357a693360be74c90211be18ce3c045/generic-proofs/src/GenericProofs/VerifiedFunctor/Generics.hs
haskell
@ LIQUID "--higherorder" @ @ LIQUID "--exactdc" @ @ LIQUID "--noadt" @ # LANGUAGE Rank2Types # @ measure fmapV1 @ @ fmapV1Id :: x:V1 p -> { fmapV1 identity x == x } @ @ fmapV1Compose :: f:(q -> r) -> g:(p -> q) -> x:V1 p -> { fmapV1 (com...
# LANGUAGE EmptyCase # # LANGUAGE TypeOperators # module GenericProofs.VerifiedFunctor.Generics where import Prelude hiding (fmap) import GenericProofs.Iso import GenericProofs.VerifiedFunctor import Generics.Deriving.Newtypeless.Base.Internal import Language.Haskell.Liquid.ProofCombinators fmapV1 :: (p -> q) ...
99cfbb7112305f154dcf8c9eaebb8753357f9782a25db72f95eadc0b84fd307d
jeapostrophe/opencl
5-1.rkt
#lang at-exp racket/base (require ffi/unsafe (except-in racket/contract ->) (prefix-in c: racket/contract) scribble/srcdoc "include/cl.rkt" "lib.rkt" "syntax.rkt" "types.rkt") (require/doc racket/base scribble/manual (for-label "...
null
https://raw.githubusercontent.com/jeapostrophe/opencl/f984050b0c02beb6df186d1d531c4a92a98df1a1/opencl/c/5-1.rkt
racket
clGetCommandQueueInfo
#lang at-exp racket/base (require ffi/unsafe (except-in racket/contract ->) (prefix-in c: racket/contract) scribble/srcdoc "include/cl.rkt" "lib.rkt" "syntax.rkt" "types.rkt") (require/doc racket/base scribble/manual (for-label "...
27d4fa558ea5c28dccf802cd66717fa31ad2f74bc29a253b1e9707e2bba7d993
mfp/obigstore
test_bytea.ml
* Copyright ( C ) 2011 - 2012 < > * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation ; either * version 2.1 of the License , or ( at your option ) any later version , ...
null
https://raw.githubusercontent.com/mfp/obigstore/1b078eeb21e11c8de986717150c7108a94778095/test/test_bytea.ml
ocaml
* Copyright ( C ) 2011 - 2012 < > * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation ; either * version 2.1 of the License , or ( at your option ) any later version , ...
009eca44604b2cf784475004c1ec17fd4c39f4a23c0dec55c42c62e3b227123c
facebookarchive/pfff
unit_prolog_php.mli
(* Returns a testsuite to be concatenated by the caller (e.g. in * pfff/main_test.ml ) with other testsuites and run via * OUnit.run_test_tt *) val unittest: OUnit.test
null
https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/lang_php/analyze/foundation/unit_prolog_php.mli
ocaml
Returns a testsuite to be concatenated by the caller (e.g. in * pfff/main_test.ml ) with other testsuites and run via * OUnit.run_test_tt
val unittest: OUnit.test
a4894082c76bd8c9e7307bbc5ded75b7f23e37629e45c27f37658178f0f20c41
nedap/formatting-stack
kondo_classpath_cache.clj
(ns functional.formatting-stack.kondo-classpath-cache (:require [clojure.test :refer [are deftest is testing]] [formatting-stack.kondo-classpath-cache :as sut] [formatting-stack.util :refer [rcomp]])) (deftest runner (testing "All choices have identical arglists (and therefore can be swapped transparently...
null
https://raw.githubusercontent.com/nedap/formatting-stack/c43e74d5409e9338f208457bb8928ce437381a3f/test/functional/formatting_stack/kondo_classpath_cache.clj
clojure
(ns functional.formatting-stack.kondo-classpath-cache (:require [clojure.test :refer [are deftest is testing]] [formatting-stack.kondo-classpath-cache :as sut] [formatting-stack.util :refer [rcomp]])) (deftest runner (testing "All choices have identical arglists (and therefore can be swapped transparently...
d64b441019f4bcb54fcd5e81089ce3434f4a1f7a7507ab528e014f4f7fe33ec1
erleans/erleans
no_provider_test_grain.erl
%%% --------------------------------------------------------------------------- @author < > 2016 Space - Time Insight < > %%% %%% @doc A grain that doesn't use any storage provider. %%% @end %%% --------------------------------------------------------------------------- -module(no_provider_test_grain). -behav...
null
https://raw.githubusercontent.com/erleans/erleans/7d640d84654b45a27399ca258406c31005d600df/test/no_provider_test_grain.erl
erlang
--------------------------------------------------------------------------- @doc A grain that doesn't use any storage provider. @end --------------------------------------------------------------------------- will throw an exception =================================================================== =============...
@author < > 2016 Space - Time Insight < > -module(no_provider_test_grain). -behaviour(erleans_grain). -export([placement/0, hello/1, save/1]). -export([activate/2, handle_call/3, handle_cast/2, deactivate/1]). -include("erleans.hrl"). placement() -> prefer_...
3b1e0ea655f0166b50a8c65088aa230d776823f9079f640b749d2a3bf8417691
agj/nendo
n-kakkei.rkt
#lang racket (require "../../src/ale/intl/ja/main.rkt") (totteoku (n-kakkei n ookisa) (draw-turtle (kurikaesu n (migi (/ 360 n)) (susumu ookisa)))) (kasane (n-kakkei 3 80) (n-kakkei 4 80) (n-kakkei 5 80) (n-kakkei 6 80))
null
https://raw.githubusercontent.com/agj/nendo/d668ef17349e3336269f7d03e7f71df0f06caa57/examples/ja/n-kakkei.rkt
racket
#lang racket (require "../../src/ale/intl/ja/main.rkt") (totteoku (n-kakkei n ookisa) (draw-turtle (kurikaesu n (migi (/ 360 n)) (susumu ookisa)))) (kasane (n-kakkei 3 80) (n-kakkei 4 80) (n-kakkei 5 80) (n-kakkei 6 80))
d8bd18be25722be4327f6faca529f4e8683406758475f973e18c371306169413
haskus/haskus-system
Netlink.hs
# LANGUAGE DeriveGeneric # {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DataKinds # | Netlink generic interface module Haskus.System.Linux.Internals.Netlink ( NetlinkType (..) , NetlinkSocket (..) , NetlinkMessageHeader (..) , NetlinkCommonFlag (..) , NetlinkCommonFlags , NetlinkGetFlag (..) , Net...
null
https://raw.githubusercontent.com/haskus/haskus-system/38b3a363c26bc4d82e3493d8638d46bc35678616/haskus-system/src/lib/Haskus/System/Linux/Internals/Netlink.hs
haskell
# LANGUAGE DeriveAnyClass # ============================================================= From linux/include/uapi/linux/netlink.h ============================================================= ^ Routing/device hook ^ Reserved for user mode socket protocols ^ socket monitoring ^ netfilter/iptables ULOG ^ SELin...
# LANGUAGE DeriveGeneric # # LANGUAGE DataKinds # | Netlink generic interface module Haskus.System.Linux.Internals.Netlink ( NetlinkType (..) , NetlinkSocket (..) , NetlinkMessageHeader (..) , NetlinkCommonFlag (..) , NetlinkCommonFlags , NetlinkGetFlag (..) , NetlinkGetFlags , NetlinkNewFlag...
626e9273e70932b24ab44b08adbf70f5990ffc6b48119e007c36dbe1893ed750
lasp-lang/lasp
lasp_dt.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2015 . All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may obtain %% a copy of the ...
null
https://raw.githubusercontent.com/lasp-lang/lasp/1701c8af77e193738dfc4ef4a5a703d205da41a1/src/lasp_dt.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 ) 2015 . All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(lasp_dt). -author("Ch...
64a2fdd1312a41fcef236b194f43acf878b1c03746f2bb042aef876cf6407846
Simre1/haskell-game
Timed.hs
import Graphics.GPipe import qualified Graphics.GPipe.Context.GLFW as GLFW import qualified Test.Common as C import qualified Test.Control as A main :: IO () main = do putStrLn "== Timed render" putStrLn $ "\tRender a scene to a window for " ++ show maxSec ++ " seconds." runContextT GLFW.defaultHandleConfi...
null
https://raw.githubusercontent.com/Simre1/haskell-game/272a0674157aedc7b0e0ee00da8d3a464903dc67/GPipe-GLFW/Smoketests/src/Timed.hs
haskell
import Graphics.GPipe import qualified Graphics.GPipe.Context.GLFW as GLFW import qualified Test.Common as C import qualified Test.Control as A main :: IO () main = do putStrLn "== Timed render" putStrLn $ "\tRender a scene to a window for " ++ show maxSec ++ " seconds." runContextT GLFW.defaultHandleConfi...
cf1448298874cd9ef4b017b40c0a835001d510ed1e67710559c3a12789cddf99
b1412/clojure-web-admin
entity_bs_table.cljs
(ns clojure-web.components.entity-bs-table (:require-macros [cljs.core.async.macros :refer [go]] [reagent.ratom :refer [reaction]]) (:require [bouncer.core :as b] [clojure-web.validate :refer [get-validators]] [cljs-http.client :as http] [cljs.core.async :refer...
null
https://raw.githubusercontent.com/b1412/clojure-web-admin/018161dcdb364cc168d6f5a56ceb798005a0701f/src/cljs/clojure_web/components/entity_bs_table.cljs
clojure
(ns clojure-web.components.entity-bs-table (:require-macros [cljs.core.async.macros :refer [go]] [reagent.ratom :refer [reaction]]) (:require [bouncer.core :as b] [clojure-web.validate :refer [get-validators]] [cljs-http.client :as http] [cljs.core.async :refer...
d938e34e72ebc57b214894639bf324655a5a89894809616dd936bdb3fe21a05f
BinRoot/Haskell-Data-Analysis-Cookbook
Main2.hs
{-# LANGUAGE OverloadedStrings #-} import Data.ByteString.Search (indices) import qualified Data.ByteString as BS import Control.DeepSeq main = do corpus <- BS.readFile "big.txt" print $ map (\x -> (not.null) (indices x corpus)) shortNeedles shortNeedles = [ "abc", "fwi", "lqa", "pwf", "ooo" , "...
null
https://raw.githubusercontent.com/BinRoot/Haskell-Data-Analysis-Cookbook/f8c46987d78f4a6c1828b353c5f906b9314c2ef9/Ch03/Code04_bm/Main2.hs
haskell
# LANGUAGE OverloadedStrings #
import Data.ByteString.Search (indices) import qualified Data.ByteString as BS import Control.DeepSeq main = do corpus <- BS.readFile "big.txt" print $ map (\x -> (not.null) (indices x corpus)) shortNeedles shortNeedles = [ "abc", "fwi", "lqa", "pwf", "ooo" , "mos", "fez", "cwd", "qfo", "mic" ...
1d17c4f588124c3d3fd470decdad1d3d2199db66d8f3c51d5f5108a8eab87ce5
tnelson/Forge
set.rkt
#lang forge option run_sterling off option verbose 0 sig Node { edge: set Node } test expect One { negative: { } is sat }
null
https://raw.githubusercontent.com/tnelson/Forge/a7187ef110f46493c1d45011035b05646b9ccd22/forge/tests/forge/relations/set.rkt
racket
#lang forge option run_sterling off option verbose 0 sig Node { edge: set Node } test expect One { negative: { } is sat }
08dc519e35451cc6d8657ffb0cda564a61b28e7c008bafcdf3c0117a758284e2
hasufell/abstract-filepath
AbstractFilePath.hs
# LANGUAGE CPP # -- | -- Module : AbstractFilePath Copyright : © 2021 License : MIT -- Maintainer : < > -- Stability : experimental -- Portability : portable -- An implementation of the < /-/wikis/proposal/abstract-file-path Abstract FilePath Proposal > , -- which aims to superse...
null
https://raw.githubusercontent.com/hasufell/abstract-filepath/c41121a68ef7b08c41a2bbc71937c409056f6940/abstract-filepath/lib/AFP/AbstractFilePath.hs
haskell
| Module : AbstractFilePath Stability : experimental Portability : portable which aims to supersede @type FilePath = String@ for various reasons: It is important to know that filenames\/filepaths have different representations across platforms: - On /Windows/, filepaths are expected to be in UTF16...
# LANGUAGE CPP # Copyright : © 2021 License : MIT Maintainer : < > An implementation of the < /-/wikis/proposal/abstract-file-path Abstract FilePath Proposal > , 1 . it is more efficient ( uses unpinned ' ShortByteString ' under the hood ) 2 . is more type - safe ( not a type synonym ,...
1720d1cf9b40f89d8301aa17c854ad1158c2dd23d23331bd3025987b086c1d70
synduce/Synduce
Main.ml
open Base open Common open Env open ProblemDefs open Lang open RootCauseAnalysis open Utils module Sub = Configuration.Subconf module G = ConfGraph module CO = Config.Optims type multi_soln_result = { r_best : (env * PsiDef.t * Syguslib.Sygus.solver_response segis_response) option ; r_all : (env * PsiDef.t * Sygus...
null
https://raw.githubusercontent.com/synduce/Synduce/42d970faa863365f10531b19945cbb5cfb70f134/src/confsearch/Main.ml
ocaml
============================================================================================= ============================================================================================= Default algorithm: best combination of techniques (TODO) Save stats an restart counters. ==================================...
open Base open Common open Env open ProblemDefs open Lang open RootCauseAnalysis open Utils module Sub = Configuration.Subconf module G = ConfGraph module CO = Config.Optims type multi_soln_result = { r_best : (env * PsiDef.t * Syguslib.Sygus.solver_response segis_response) option ; r_all : (env * PsiDef.t * Sygus...
0f8b13f1006827c4f42097f7ff26d46ed1178981460c5fcbb0aa7ef5e0158407
pflanze/chj-schemelib
easy.scm
(require easy-2 docstring oo-util-lazy)
null
https://raw.githubusercontent.com/pflanze/chj-schemelib/59ff8476e39f207c2f1d807cfc9670581c8cedd3/easy.scm
scheme
(require easy-2 docstring oo-util-lazy)
aa684db2dd4f65dfd5e1d0b893be79f85726bb8a199ca64ec1c56af292c56ec1
melange-re/melange
stdlib.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/melange-re/melange/246e6df78fe3b6cc124cb48e5a37fdffd99379ed/jscomp/stdlib-412/stdlib.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the #if BS then #else external register_named_value : string -> 'a -> unit = "...
637fbb09e3bf7975354f96dd5405b254322b29e001d3ae780732c47d8d063353
ocaml/ocamlbuild
a.mli
(***********************************************************************) (* *) (* ocamlbuild *) (* *) , , projet Galliu...
null
https://raw.githubusercontent.com/ocaml/ocamlbuild/792b7c8abdbc712c98ed7e69469ed354b87e125b/test/test5/a.mli
ocaml
********************************************************************* ocamlbuild ...
, , projet Gallium , INRIA Rocquencourt Copyright 2007 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with val a : int
b8f285c382b510f0298b5cb584b98da4ade6600c87e30af9ad3cbe632d64b3db
EchoTeam/mcd
mcd_cluster_tests.erl
-module(mcd_cluster_tests). -include_lib("eunit/include/eunit.hrl"). -define(NAME, mb_test). -define(setup(F), {setup, fun setup/0, fun cleanup/1, F}). all_test_() -> [{"Check MCD cluster", ?setup(fun() -> [check_node_(), add_node_(), check_node_2_(), ...
null
https://raw.githubusercontent.com/EchoTeam/mcd/ef26b96edbf1608e30ea979b5ef72f7bde02421b/test/mcd_cluster_tests.erl
erlang
-module(mcd_cluster_tests). -include_lib("eunit/include/eunit.hrl"). -define(NAME, mb_test). -define(setup(F), {setup, fun setup/0, fun cleanup/1, F}). all_test_() -> [{"Check MCD cluster", ?setup(fun() -> [check_node_(), add_node_(), check_node_2_(), ...
3a7987bf134ab2d1ddd6953ca2c8e07180e047e9a137c084cf3d249b113b1e86
PhDP/Akarui
KnowledgeBase.hs
| A knowledge base is a set of formulas . Will replace . module Akarui.FOL.KnowledgeBase where import qualified Data.Set as Set import Data.Set (Set) import qualified Data.Map as Map import Data.Map (Map) import Akarui.FOL.Formula (allAss, satisfy) import Akarui.FOL.FOL --import Akarui.Predicate import Akarui.FOL.R...
null
https://raw.githubusercontent.com/PhDP/Akarui/4ad888d011f7115677e8f9ba18887865f5150746/Akarui/FOL/KnowledgeBase.hs
haskell
import Akarui.Predicate | A knowledge base is a set of formulas. | All formulas with their types. | Set of domains used in the knowledge base. | Maps the predicate (by name) to their domain. | Checks by brute force if a knowledgebase entails a formula.
| A knowledge base is a set of formulas . Will replace . module Akarui.FOL.KnowledgeBase where import qualified Data.Set as Set import Data.Set (Set) import qualified Data.Map as Map import Data.Map (Map) import Akarui.FOL.Formula (allAss, satisfy) import Akarui.FOL.FOL import Akarui.FOL.RuleType import Akarui.FOL....
551b629d9a7c3ba167072bec62352b097047be2b3d8abf5aec15892cf811c211
cchalmers/circuit-notation
CircuitNotation.hs
█ █ █ █ █ █ ╗ █ █ ╗ █ █ █ █ █ █ ╗ █ █ █ █ █ █ ╗ █ █ ╗ █ █ ╗ █ █ ╗ █ █ █ █ █ █ █ █ ╗ █ █ █ █ █ █ █ ╗ █ █ ╔ ═ ═ ═ ═ ╝ █ █ ║ █ █ ╔ ═ ═ █ █ ╗ █ █ ╔ ═ ═ ═ ═ ╝ █ █ ║ █ █ ║ █ █ ║ ╚ ═ ═ █ █ ╔ ═ ═ ╝ █ █ ╔ ═ ═ ═ ═ ╝ █ █ ║ █ █ ║ █ █ █ █ █ █ ╔ ╝ █ █ ║ █ █ ║ █ █ ║ █ █ ║ █ █ ║ █ █ █ █ █ █ █ ╗ █ █ ...
null
https://raw.githubusercontent.com/cchalmers/circuit-notation/618e37578e699df235f2e7150108b6401731919b/src/CircuitNotation.hs
haskell
# LANGUAGE DeriveTraversable # # LANGUAGE OverloadedStrings # # LANGUAGE TemplateHaskell # # OPTIONS_GHC -Wno-unused-top-binds # base clash-prelude containers lens pretty-show syb The stages of this plugin slave). to make the type descriptor helper. Utils ------------------...
█ █ █ █ █ █ ╗ █ █ ╗ █ █ █ █ █ █ ╗ █ █ █ █ █ █ ╗ █ █ ╗ █ █ ╗ █ █ ╗ █ █ █ █ █ █ █ █ ╗ █ █ █ █ █ █ █ ╗ █ █ ╔ ═ ═ ═ ═ ╝ █ █ ║ █ █ ╔ ═ ═ █ █ ╗ █ █ ╔ ═ ═ ═ ═ ╝ █ █ ║ █ █ ║ █ █ ║ ╚ ═ ═ █ █ ╔ ═ ═ ╝ █ █ ╔ ═ ═ ═ ═ ╝ █ █ ║ █ █ ║ █ █ █ █ █ █ ╔ ╝ █ █ ║ █ █ ║ █ █ ║ █ █ ║ █ █ ║ █ █ █ █ █ █ █ ╗ █ █ ...
c8b80fa67ddd41816b41d383accb9a94fdabbe8e612e82597e037fe63528cc3f
tommaisey/aeon
sys.chez.scm
;; double -> void (define thread-sleep (lambda (secs) (sleep (make-time 'time-duration 0 secs)))) ;; void -> double (define utcr (lambda () (let* ((t (current-time)) (s (time-second t)) (n (time-nanosecond t))) (+ s (/ n 1e9)))))
null
https://raw.githubusercontent.com/tommaisey/aeon/80744a7235425c47a061ec8324d923c53ebedf15/libs/third-party/sc3/rsc3/src/ext/sys.chez.scm
scheme
double -> void void -> double
(define thread-sleep (lambda (secs) (sleep (make-time 'time-duration 0 secs)))) (define utcr (lambda () (let* ((t (current-time)) (s (time-second t)) (n (time-nanosecond t))) (+ s (/ n 1e9)))))
9afe36619fae12b2cc13e945d648c91d1c74d0ecfe698bd5797d7e98e7eac7ba
mchakravarty/language-c-inline
Marshal.hs
# LANGUAGE PatternGuards , TemplateHaskell , QuasiQuotes # -- | Module : Language . C.Inline . C.Marshal Copyright : [ 2013 ] -- License : BSD3 -- Maintainer : < > -- Stability : experimental Portability : non - portable ( GHC extensions ) -- -- C-specific marshalling functions. -- --...
null
https://raw.githubusercontent.com/mchakravarty/language-c-inline/034128f80abc917040f42a10ce982775ae5e7387/Language/C/Inline/C/Marshal.hs
haskell
| License : BSD3 Stability : experimental C-specific marshalling functions. FIXME: Some of the code can go into a module for general marshalling, as only some of it is C-specific. * Marshaller types * Compute bridging types and marshallers common libraries quasi-quotation libraries friends Determine...
# LANGUAGE PatternGuards , TemplateHaskell , QuasiQuotes # Module : Language . C.Inline . C.Marshal Copyright : [ 2013 ] Maintainer : < > Portability : non - portable ( GHC extensions ) module Language.C.Inline.C.Marshal ( * Determine corresponding foreign types of Haskell types haskel...
0099353fdbe44b3d8bb14e23388192552356ec2f1626696c3b0b5ec993fbcf12
alvatar/spheres
filesystem.scm
;;!!! Filesets and combinators .author , 2012 - 2015 (define (filesystem:info . args) (println (append-strings (cons "*** INFO: " args)))) (define (filesystem:warn . args) (println (append-strings (cons "*** WARNING: " args)))) (define (extension=? ext) (ends-with? ext)) (define (ends-with? end) (lamb...
null
https://raw.githubusercontent.com/alvatar/spheres/568836f234a469ef70c69f4a2d9b56d41c3fc5bd/spheres/os/filesystem.scm
scheme
!!! Filesets and combinators ------------------------------------------------------------------------------ !! File handling ! Make directory ! Improved delete-file ! Improved delete-directory ! Delete a list of files ! Improved copy-file ! Copy a directory ! Copy a list of files and directories
.author , 2012 - 2015 (define (filesystem:info . args) (println (append-strings (cons "*** INFO: " args)))) (define (filesystem:warn . args) (println (append-strings (cons "*** WARNING: " args)))) (define (extension=? ext) (ends-with? ext)) (define (ends-with? end) (lambda (name) (and (>= (string-...
adf0324d6a55a38946c2dd8c7c351c3ffde7ded6f7ad561cfef20f4f658c9d58
tonyg/kali-scheme
merge.scm
Copyright ( c ) 1994 . See file COPYING . This code determines which procedures are called from one other form , and ; thus can be compiled as part of that form and called with a `goto' instead ; of a normal procedure call. This saves much of the overhead of a normal ; procedure call. ; ; The procedures to be...
null
https://raw.githubusercontent.com/tonyg/kali-scheme/79bf76b4964729b63fce99c4d2149b32cb067ac0/ps-compiler/prescheme/merge.scm
scheme
thus can be compiled as part of that form and called with a `goto' instead of a normal procedure call. This saves much of the overhead of a normal procedure call. The procedures to be merged are annotated; no code is changed. self or the form into which this one will be merged forms that call this one tail-recu...
Copyright ( c ) 1994 . See file COPYING . This code determines which procedures are called from one other form , and (define-subrecord form form-merge form-merge ) ( one of # F , DO - NOT - MERGE , MERGED forms merged with this one )) Two procedures for letting the user know what is going on . ...
a77db0d53268089bb84abba6054b487142f7dcb21abed1410fb77c166afef0c0
biocad/openapi3
Schema.hs
-- | Module : Data . OpenApi . Schema Maintainer : < > -- Stability: experimental -- -- Types and functions for working with Swagger schema. module Data.OpenApi.Schema ( -- * Encoding ToSchema(..), declareSchema, declareSchemaRef, toSchema, toSchemaRef, schemaName, toInlinedSchema, -...
null
https://raw.githubusercontent.com/biocad/openapi3/e6597e67ba54d55096d37f1eecca9c671ff868a6/src/Data/OpenApi/Schema.hs
haskell
| Stability: experimental Types and functions for working with Swagger schema. * Encoding * Generic schema encoding ** 'Bounded' 'Integral' * Generic encoding configuration
Module : Data . OpenApi . Schema Maintainer : < > module Data.OpenApi.Schema ( ToSchema(..), declareSchema, declareSchemaRef, toSchema, toSchemaRef, schemaName, toInlinedSchema, genericDeclareNamedSchema, genericDeclareSchema, genericDeclareNamedSchemaNewtype, genericNameSchema, ...
8221d7102e697c569c05a6c8c88bd3f409df969a705c3a9fdfa8c8eaa55514b3
tsloughter/kuberl
kuberl_v1beta1_validating_webhook_configuration_list.erl
-module(kuberl_v1beta1_validating_webhook_configuration_list). -export([encode/1]). -export_type([kuberl_v1beta1_validating_webhook_configuration_list/0]). -type kuberl_v1beta1_validating_webhook_configuration_list() :: #{ 'apiVersion' => binary(), 'items' := list(), 'kind' => binary(), 'met...
null
https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_v1beta1_validating_webhook_configuration_list.erl
erlang
-module(kuberl_v1beta1_validating_webhook_configuration_list). -export([encode/1]). -export_type([kuberl_v1beta1_validating_webhook_configuration_list/0]). -type kuberl_v1beta1_validating_webhook_configuration_list() :: #{ 'apiVersion' => binary(), 'items' := list(), 'kind' => binary(), 'met...
7d8a3fa8753752cab4781f57e02ebd5601a4f5849c4aa0202503cde1f5cd9e97
victornicolet/parsynt
SelfFoldSinglePass.mli
val to_single_pass : (Lang.Term.VarSet.t * Lang.Typ.term) list -> Lang.Typ.term * Lang.Term.VarSet.t -> ( Lang.SolutionDescriptors.soln_info, float * (Lang.Term.VarSet.t * Lang.Typ.term) list * Lang.Typ.term ) Base.Either.t val solve : Lang.SolutionDescriptors.soln_info -> Lang.SolutionDescriptors.join_sol...
null
https://raw.githubusercontent.com/victornicolet/parsynt/d3f530923c0c75537b92c2930eb882921f38268c/src/recursion/SelfFoldSinglePass.mli
ocaml
val to_single_pass : (Lang.Term.VarSet.t * Lang.Typ.term) list -> Lang.Typ.term * Lang.Term.VarSet.t -> ( Lang.SolutionDescriptors.soln_info, float * (Lang.Term.VarSet.t * Lang.Typ.term) list * Lang.Typ.term ) Base.Either.t val solve : Lang.SolutionDescriptors.soln_info -> Lang.SolutionDescriptors.join_sol...
c00f0eb17a2634b4f9162c8a7f7202e781b17ada23e056a03020a587fd37b282
AccelerateHS/accelerate-llvm
Async.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # {-# OPTIONS_HADDOCK hide #-} -- | -- Module : Data.Array.Accelerate...
null
https://raw.githubusercontent.com/AccelerateHS/accelerate-llvm/0dec9b4deeb86a28fe89fb330f93aa025ef38745/accelerate-llvm/src/Data/Array/Accelerate/LLVM/Execute/Async.hs
haskell
# LANGUAGE GADTs # # OPTIONS_HADDOCK hide # | Module : Data.Array.Accelerate.LLVM.Execute.Async License : BSD3 Stability : experimental | The monad parallel computations will be executed in. Presumably a stack | Parallel computations can communicate via futures. | Create a new...
# LANGUAGE FlexibleContexts # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # Copyright : [ 2014 .. 2020 ] The Accelerate Team Maintainer : < > Portability : non - portable ( GHC ...
15dfe27d7d29651671e47232f0efb13d8b7b23fae34c1aaa630287f4a8d620bd
erlscripten/erlscripten
circular_two.erl
-module(circular_two). -erlscripten_output(autogenerated_transpilation_tests). -compile({parse_transform, erlps_parse_transform}). -compile(nowarn). -compile(export_all). %% API -export([]). one() -> circular_one:one(). two() -> hello_from_module_two.
null
https://raw.githubusercontent.com/erlscripten/erlscripten/6b70be39dc51c21388dd7bae1eb46a0d306ecdcc/transpilation_tests/circular_two.erl
erlang
API
-module(circular_two). -erlscripten_output(autogenerated_transpilation_tests). -compile({parse_transform, erlps_parse_transform}). -compile(nowarn). -compile(export_all). -export([]). one() -> circular_one:one(). two() -> hello_from_module_two.
a663e69ca7a2975368ff0a1a733ef7315df1d19d2072a62478cffa944640de37
juxt-site/site
rewrite.clj
Copyright © 2023 , JUXT LTD . (ns rewrite (:require [rewrite-clj.node :as n] [rewrite-clj.zip :as z] [clojure.java.io :as io])) (set! *print-namespace-maps* false) (defn modify-file "Call function f with the string contents of the given file" [file f] (let [file (io/file file)] (as-> file % ...
null
https://raw.githubusercontent.com/juxt-site/site/673b0978b80cbb6fd74c28e41d5b29b3199bfed1/dev/rewrite.clj
clojure
Copyright © 2023 , JUXT LTD . (ns rewrite (:require [rewrite-clj.node :as n] [rewrite-clj.zip :as z] [clojure.java.io :as io])) (set! *print-namespace-maps* false) (defn modify-file "Call function f with the string contents of the given file" [file f] (let [file (io/file file)] (as-> file % ...
b762be3f8bccade627bcbe82bf7097694ab9e0f782ae9bac892b95d6724f8e9d
theodormoroianu/SecondYearCourses
LambdaChurch_20210415171056.hs
module LambdaChurch where import Data.Char (isLetter) import Data.List ( nub ) class ShowNice a where showNice :: a -> String class ReadNice a where readNice :: String -> (a, String) data Variable = Variable { name :: String , count :: Int } deriving (Show, Eq, Ord) var :: String -> Variable var ...
null
https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/5e359e6a7cf588a527d27209bf53b4ce6b8d5e83/FLP/Laboratoare/Lab%209/.history/LambdaChurch_20210415171056.hs
haskell
alpha-equivalence subst u x t defines [u/x]t, i.e., substituting u for x in t This substitution avoids variable captures so it is safe to be used when reducing terms with free variables (e.g., if evaluating inside lambda abstractions) ^ substitution term ^ variable to be substitutes ^ term in which the substit...
module LambdaChurch where import Data.Char (isLetter) import Data.List ( nub ) class ShowNice a where showNice :: a -> String class ReadNice a where readNice :: String -> (a, String) data Variable = Variable { name :: String , count :: Int } deriving (Show, Eq, Ord) var :: String -> Variable var ...
9308dabb2dd0cb2d7168d01554b773f126e0c9bafb2c9164fcfb4da82c7ea027
cyga/real-world-haskell
BrokenClass.hs
-- file: ch06/BrokenClass.hs instance (JSON a) => JSON [a] where toJValue = undefined fromJValue = undefined -- file: ch06/BrokenClass.hs instance (JSON a) => JSON [(String, a)] where toJValue = undefined fromJValue = undefined
null
https://raw.githubusercontent.com/cyga/real-world-haskell/4ed581af5b96c6ef03f20d763b8de26be69d43d9/ch06/BrokenClass.hs
haskell
file: ch06/BrokenClass.hs file: ch06/BrokenClass.hs
instance (JSON a) => JSON [a] where toJValue = undefined fromJValue = undefined instance (JSON a) => JSON [(String, a)] where toJValue = undefined fromJValue = undefined
4d05a46a29b22e2944b713ae74b44200cf53b87613eda8593f058517550ad5aa
ghcjs/ghcjs-closure
Setup.hs
import Distribution.Simple (defaultMainWithHooks, simpleUserHooks, hookedPrograms, UserHooks(..)) import Distribution.Simple.Program.Types (simpleProgram) import Distribution.Simple.Setup (CopyDest(..), installVerbosity, copyVerbosity, fromFlag) import Distribution.Simple.Utils (createDirectoryIfMissingVerbose, install...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-closure/13592bcfde3a235c044335ee34fc724bb9c8acd7/Setup.hs
haskell
the closure library has too many files to list manually in a cabal file they are included as .pkg files with "underscore encoding"
import Distribution.Simple (defaultMainWithHooks, simpleUserHooks, hookedPrograms, UserHooks(..)) import Distribution.Simple.Program.Types (simpleProgram) import Distribution.Simple.Setup (CopyDest(..), installVerbosity, copyVerbosity, fromFlag) import Distribution.Simple.Utils (createDirectoryIfMissingVerbose, install...
2efbbf7dd8d4c40e7a7611a60b7f2842a128590a1ad47b9c3fa281c6f0572f09
pavlobaron/ErlangOTPBookSamples
mnesia1.erl
-module(mnesia1). -export([create/0, drop/0, create_list/2, subscribe/4, unsubscribe/2]). -include("mnesiarecs.hrl"). create() -> mnesia:create_table(list, [{attributes, record_info(fields, list)}]), mnesia:create_table(email, [{attributes, record_info(fields, email)}]), mnesia:create_table(e...
null
https://raw.githubusercontent.com/pavlobaron/ErlangOTPBookSamples/50094964ad814932760174914490e49618b2b8c2/datenhaltung/mnesia1.erl
erlang
-module(mnesia1). -export([create/0, drop/0, create_list/2, subscribe/4, unsubscribe/2]). -include("mnesiarecs.hrl"). create() -> mnesia:create_table(list, [{attributes, record_info(fields, list)}]), mnesia:create_table(email, [{attributes, record_info(fields, email)}]), mnesia:create_table(e...
55ddcf8a928863de6088dc133770c5956dbcfcedb78691cb3c49285978bc3702
granule-project/gerty
Test.hs
module Main (main) where import Control.Monad.IO.Class (liftIO) import System.Directory (doesDirectoryExist) import qualified System.IO.Strict as Strict import Test.Tasty.HUnit (testCase, assertFailure, assertBool) import Test.Tasty (defaultMain, TestTree, testGroup) import Test.Tasty.Golden (findByExtension) import...
null
https://raw.githubusercontent.com/granule-project/gerty/972fa027973032a4499747039b45e744ca17e9e2/tests/Test.hs
haskell
------------------------ --- Positive tests ----- ------------------------ | The collection of positive syntax tests (i.e., those that should parse). | The collection of positive scope tests (i.e., those that should scope check). | The collection of positive typing tests (i.e., those that should type check). | The ...
module Main (main) where import Control.Monad.IO.Class (liftIO) import System.Directory (doesDirectoryExist) import qualified System.IO.Strict as Strict import Test.Tasty.HUnit (testCase, assertFailure, assertBool) import Test.Tasty (defaultMain, TestTree, testGroup) import Test.Tasty.Golden (findByExtension) import...
aff5fe70f86d8666d6ea0c2fcbea259821c29a94740eefee868c2ed012afc507
synrc/cr
cr_log.erl
-module(cr_log). -description('RAFT protocol replication log'). -compile(export_all). -behaviour(gen_server). -include_lib("kernel/include/file.hrl"). -include("cr.hrl"). -include("rafter.hrl"). -include("rafter_opts.hrl"). -export(?GEN_SERVER). show() -> show(cr:node()). show(Node) -> [ {I,element(2,cr_log:get_entr...
null
https://raw.githubusercontent.com/synrc/cr/b4a30dc55d30500a1c239d6234444e1ecff5aab5/src/consensus/cr_log.erl
erlang
============================================================================= Logfile Structure ============================================================================= @doc A log is made up of a file header and entries. The header contains file metadata and is written once at file creation. Each entry is ...
-module(cr_log). -description('RAFT protocol replication log'). -compile(export_all). -behaviour(gen_server). -include_lib("kernel/include/file.hrl"). -include("cr.hrl"). -include("rafter.hrl"). -include("rafter_opts.hrl"). -export(?GEN_SERVER). show() -> show(cr:node()). show(Node) -> [ {I,element(2,cr_log:get_entr...
096c24eb9099fef2fd3608f2881035464f7fea1d872495c96ea34c7f1c12efd8
AccelerateHS/accelerate-llvm
Arithmetic.hs
# LANGUAGE GADTs # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RebindableSyntax # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TupleSections # # LANGUAGE TypeApplications # # LANGUAGE ViewPatterns # {-# OPTIONS_HADDOCK hide #-} -- | -- Module ...
null
https://raw.githubusercontent.com/AccelerateHS/accelerate-llvm/cf081587fecec23a19f68bfbd31334166868405e/accelerate-llvm/src/Data/Array/Accelerate/LLVM/CodeGen/Arithmetic.hs
haskell
# LANGUAGE OverloadedStrings # # OPTIONS_HADDOCK hide # | Module : Data.Array.Accelerate.LLVM.CodeGen.Arithmetic License : BSD3 Stability : experimental ------------------- /~seander/bithacks.html#CopyIntegerSign /~seander/bithacks.html#CopyIntegerSign --------------------------------- div/rem...
# LANGUAGE GADTs # # LANGUAGE RebindableSyntax # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TupleSections # # LANGUAGE TypeApplications # # LANGUAGE ViewPatterns # Copyright : [ 2015 .. 2020 ] The Accelerate Team Maintainer : < > Po...
a4d4e16e7282ea9867d74ee0cff538208a27b5ba6a2b174121f48c3f545f5da7
carp-lang/Carp
Qualify.hs
# LANGUAGE TupleSections # -------------------------------------------------------------------------------- -- | Defines data, errors, and functions for qualifying symbols in a given -- context. module Qualify ( QualificationError, QualifiedPath, Qualified (..), qualify, qualifyPath, unqualify, ...
null
https://raw.githubusercontent.com/carp-lang/Carp/25f50c92a57cc91b6cb4ec48df658439f936b641/src/Qualify.hs
haskell
------------------------------------------------------------------------------ | Defines data, errors, and functions for qualifying symbols in a given context. ------------------------------------------------------------------------------ Errors | Error qualifying a symbol. -----------------------------------------...
# LANGUAGE TupleSections # module Qualify ( QualificationError, QualifiedPath, Qualified (..), qualify, qualifyPath, unqualify, markQualified, qualifyNull, getQualifiedPath, ) where import Control.Monad (foldM, liftM) import Data.Bifunctor import Data.Either (fromRight) import qua...
e141764253f229c2d796d39d13719d4070a2d0ec5ec5d63d1ae6ae6b088319d9
d-cent/objective8
uris.clj
(ns objective8.back-end.storage.uris (:require [bidi.bidi :as bidi])) (def uri-routes ["/" {["objectives/" [#"\d+" :objective-id]] {"" :objective ["/questions/" [#"\d+" :question-id]] {"" :question ...
null
https://raw.githubusercontent.com/d-cent/objective8/db8344ba4425ca0b38a31c99a3b282d7c8ddaef0/src/objective8/back_end/storage/uris.clj
clojure
(ns objective8.back-end.storage.uris (:require [bidi.bidi :as bidi])) (def uri-routes ["/" {["objectives/" [#"\d+" :objective-id]] {"" :objective ["/questions/" [#"\d+" :question-id]] {"" :question ...
aa4b5e334e42dd690d8dd1b23698bd009d300eefc16a38bfe25bdbfffe05503a
msp-strath/Mary
FreeVars.hs
{-# LANGUAGE GADTs #-} module Shonkier.FreeVars where import Data.Map (Map) import Data.Set (Set) import qualified Data.Set as Set import Shonkier.Syntax import Shonkier.Value class FreeVars t where freeVars :: t -> Set Variable default freeVars :: (t ~ f a, Foldable f, FreeVars a) => t -> Set Variable freeV...
null
https://raw.githubusercontent.com/msp-strath/Mary/d805849e6da4133093564077d2344815155d7e5e/src/Shonkier/FreeVars.hs
haskell
# LANGUAGE GADTs # To be exact we would need to subtract the variables bound in `f` if it is a `Match`. At the moment we generate an over-approximation.
module Shonkier.FreeVars where import Data.Map (Map) import Data.Set (Set) import qualified Data.Set as Set import Shonkier.Syntax import Shonkier.Value class FreeVars t where freeVars :: t -> Set Variable default freeVars :: (t ~ f a, Foldable f, FreeVars a) => t -> Set Variable freeVars = foldMap freeVars ...
69a8fcfc4c4d12f3612db599623879b5d25bf1ee3aa99ac10cef5453b8fba6d9
nboldi/c-parser-in-haskell
Example.hs
# LANGUAGE StandaloneDeriving , TemplateHaskell , FlexibleContexts # module Data.SmartTrav.Example where import Data.SmartTrav.Class import Data.SmartTrav.Instances import Data.SmartTrav.TH import Data.SmartTrav.Indexing import Control.Applicative data Lit a = IntLit Integer a deriving (Show) data ...
null
https://raw.githubusercontent.com/nboldi/c-parser-in-haskell/1a92132e7d1b984cf93ec89d6836cc804257b57d/Data/SmartTrav/Example.hs
haskell
$(thExamine [d| = ASTList <*> f info |])
# LANGUAGE StandaloneDeriving , TemplateHaskell , FlexibleContexts # module Data.SmartTrav.Example where import Data.SmartTrav.Class import Data.SmartTrav.Instances import Data.SmartTrav.TH import Data.SmartTrav.Indexing import Control.Applicative data Lit a = IntLit Integer a deriving (Show) data ...
ad2913c8b23c72e7e321ee8e07bf7a5b12d74515bebec6d5eb978f032d08fb12
marigold-dev/deku
nonce.ml
open Deku_stdlib (* TODO: should we prefix level in b58? *) type nonce = N.t and t = nonce [@@deriving eq, ord, show] (* repr *) let of_n n = n let to_n nonce = nonce let encoding = N.encoding
null
https://raw.githubusercontent.com/marigold-dev/deku/cdf82852196b55f755f40850515580be4fd9a3fa/deku-p/src/core/protocol/nonce.ml
ocaml
TODO: should we prefix level in b58? repr
open Deku_stdlib type nonce = N.t and t = nonce [@@deriving eq, ord, show] let of_n n = n let to_n nonce = nonce let encoding = N.encoding
3c033d29342efd887f8de8f9f9d3790237984388b304de4ce2975b5dc0676454
zkincaid/duet
dD.mli
(** Double-description method polyhedra. *) open Apron module V = Linear.QQVector type constraint_kind = [`Zero | `Nonneg | `Pos] type generator_kind = [`Vertex | `Ray | `Line] (** Topologically closed polyhedra *) type closed = Polka.loose Polka.t (** Not-necessarily closed polyhedra *) type nnc = Polka.strict Pol...
null
https://raw.githubusercontent.com/zkincaid/duet/162d3da830f12ab8e8d51f7757cddcb49c4084ca/srk/src/dD.mli
ocaml
* Double-description method polyhedra. * Topologically closed polyhedra * Not-necessarily closed polyhedra * Double-description method polyhedra. Type parameter is either [closed] or [nnc]. * Pretty print * Compute double-description polyhedron from its generators. * Enumerate the generators of a polyhedron. ...
open Apron module V = Linear.QQVector type constraint_kind = [`Zero | `Nonneg | `Pos] type generator_kind = [`Vertex | `Ray | `Line] type closed = Polka.loose Polka.t type nnc = Polka.strict Polka.t type 'a t = 'a Abstract0.t val pp : (Format.formatter -> int -> unit) -> Format.formatter -> 'a t -> unit val of_...
58ab93098eb5440e58152437c72a6b6c624f57fac3083b5618ebbdd88e27d326
opennars/Narjure
matching.clj
(ns nal.deriver.matching (:require [nal.deriver.utils :refer [walk operator? not-operator?]] [clojure.core.unify :as u] [clojure.set :refer [map-invert intersection]] [clojure.string :as s] [narjure.global-atoms :refer [nars-time]] ;because of projection! [nal.deriver [set-f...
null
https://raw.githubusercontent.com/opennars/Narjure/cd5a72e6777fc47271d721fef8362aa2dad664ca/src/nal/deriver/matching.clj
clojure
because of projection! operators/functions that shouldn't be quoted as task and belief are not aviable on rule generation just to play the role of less confidence for further apart not necessary as time is kept track of!! disabled due to new handling!!
(ns nal.deriver.matching (:require [nal.deriver.utils :refer [walk operator? not-operator?]] [clojure.core.unify :as u] [clojure.set :refer [map-invert intersection]] [clojure.string :as s] [nal.deriver [set-functions :refer [f-map not-empty-diff? not-empty-inter?]] [substitution :refer ...
32fbbfa28e337e8807b5324b2b5ed80816c31fec9462aeab45ce5d0722b793f6
qfpl/sv
Random.hs
# LANGUAGE TemplateHaskell # # LANGUAGE DeriveFunctor # # LANGUAGE DeriveFoldable # {-# LANGUAGE DeriveTraversable #-} # LANGUAGE DeriveGeneric # module Data.Sv.Random ( Row (..) , BenchData (..) , rowDec , loadOrCreateTestFiles ) where import Control.Applicative ((<$>), (<*>), (<|>), empty) import Control.De...
null
https://raw.githubusercontent.com/qfpl/sv/74aa56bcdcc0d7f1d7b5783bf59e3878dfbb64bc/benchmarks/src/Data/Sv/Random.hs
haskell
# LANGUAGE DeriveTraversable #
# LANGUAGE TemplateHaskell # # LANGUAGE DeriveFunctor # # LANGUAGE DeriveFoldable # # LANGUAGE DeriveGeneric # module Data.Sv.Random ( Row (..) , BenchData (..) , rowDec , loadOrCreateTestFiles ) where import Control.Applicative ((<$>), (<*>), (<|>), empty) import Control.DeepSeq (NFData) import Control.Lens ...
5a4ad0c7a494f8e7cc06d2b75581d13532e9c1ff9afb27fa945da97514d2a8a9
facebook/flow
find_method.ml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/flow/145a998bf5fa6b31265c3302f63d649ae1e9901c/src/services/autocomplete/find_method.ml
ocaml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
2211d648bbd07a1409b09c985ffd33d2595d349c6bca108503f5eaa0b0d784e7
binsec/haunted
reduced_product.ml
(**************************************************************************) This file is part of BINSEC . (* *) Copyright ( C ) 2016 - 2019 CEA ( Co...
null
https://raw.githubusercontent.com/binsec/haunted/7ffc5f4072950fe138f53fe953ace98fff181c73/src/static/ai/reduced_product.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...
3434126b84523e1548312e5b25cc69d06cf085897a073a01457ebfabc870f02c
imandra-ai/catapult
Bare_encoding.ml
module String_map = Map.Make(String) module type INPUT = sig val read_byte : unit -> char val read_i16 : unit -> int val read_i32 : unit -> int32 val read_i64 : unit -> int64 val read_exact : bytes -> int -> int -> unit end type input = (module INPUT) let input_of_bytes ?(off=0) ?len (b:bytes) : input = ...
null
https://raw.githubusercontent.com/imandra-ai/catapult/5da09522eec179823b67f37549eb10a5dc570d4b/src/core/Bare_encoding.ml
ocaml
done true if negative put sign back fits, because of previous test no need to check for overflow below
module String_map = Map.Make(String) module type INPUT = sig val read_byte : unit -> char val read_i16 : unit -> int val read_i32 : unit -> int32 val read_i64 : unit -> int64 val read_exact : bytes -> int -> int -> unit end type input = (module INPUT) let input_of_bytes ?(off=0) ?len (b:bytes) : input = ...
0e09168c5cd5cd402a20b6a011e34785a920d34217af64d231f3f8847481a1ef
ros/roslisp
tcpros.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Software License Agreement (BSD License) ;; Copyright ( c ) 2008 , Willow Garage , Inc. ;; All rights reserved. ;; ;; Redistribution and use in source and binary forms, with ;; or without modification, are permitted provided that the ;; following cond...
null
https://raw.githubusercontent.com/ros/roslisp/559355a8d695e34e6dedae071a9af2c065411687/src/tcpros.lisp
lisp
Software License Agreement (BSD License) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions...
Copyright ( c ) 2008 , Willow Garage , Inc. * Neither the name of Willow Garage , Inc. nor the names CONTRIBUTORS " AS IS " AND ANY EXPRESS OR COPYRIGHT OWNER OR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CAUSED AND ON ANY THEORY OF LIABILITY , WHETHER IN (in-package :roslisp) (d...
111d65e2aca6a18126d3e62ef3a4caeefccd1af5f857e9ace1d8929d4f59adc4
racketscript/racketscript
compose.rkt
#lang racket (define (factorial n) (let loop ([n n] [a 1]) (if (zero? n) a (loop (sub1 n) (* n a))))) (define cc0 (compose factorial sqr)) (define cc1 (compose1 factorial sqr)) (define cc2 (compose sqr factorial)) (define cc3 (compose1 sqr factorial)) (displayln (cc0 3)) (displayln (cc...
null
https://raw.githubusercontent.com/racketscript/racketscript/f94006d11338a674ae10f6bd83fc53e6806d07d8/tests/basic/compose.rkt
racket
#lang racket (define (factorial n) (let loop ([n n] [a 1]) (if (zero? n) a (loop (sub1 n) (* n a))))) (define cc0 (compose factorial sqr)) (define cc1 (compose1 factorial sqr)) (define cc2 (compose sqr factorial)) (define cc3 (compose1 sqr factorial)) (displayln (cc0 3)) (displayln (cc...
d3aa3e8f159ab7be344b7e88ac4f63f82d146de12cc63b284f2c31df7ffe200a
haskell-opengl/OpenGLRaw
TextureSwizzle.hs
# LANGUAGE PatternSynonyms # -------------------------------------------------------------------------------- -- | Module : Graphics . GL.ARB.TextureSwizzle Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- --------------...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/ARB/TextureSwizzle.hs
haskell
------------------------------------------------------------------------------ | License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ * Extension Support * Enums
# LANGUAGE PatternSynonyms # Module : Graphics . GL.ARB.TextureSwizzle Copyright : ( c ) 2019 Maintainer : < > module Graphics.GL.ARB.TextureSwizzle ( glGetARBTextureSwizzle, gl_ARB_texture_swizzle, pattern GL_TEXTURE_SWIZZLE_A, pattern GL_TEXTURE_SWIZZLE_B, pattern GL_TEXTURE_SWI...
5ecea93be6660d3284b025d2219597b1863e2971fdb4cb619d37f0ca828bb603
emqx/emqx
emqx_license_schema.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2022 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . %%-------------------------------------------------------------------- -module(emqx_license_schema). -include_lib("typerefl/include/types.hrl"). -include_lib("hocon/in...
null
https://raw.githubusercontent.com/emqx/emqx/969cbecf91cd71f3f4a0d83f6fa4a9f45329645e/lib-ee/emqx_license/src/emqx_license_schema.erl
erlang
-------------------------------------------------------------------- -------------------------------------------------------------------- ------------------------------------------------------------------------------ hocon_schema callbacks ------------------------------------------------------------------------------ ...
Copyright ( c ) 2022 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . -module(emqx_license_schema). -include_lib("typerefl/include/types.hrl"). -include_lib("hocon/include/hoconsc.hrl"). -behaviour(hocon_schema). -export([roots/0, fields/1, validations/0, desc/1, tags/0]). -export([ default_license/...
17e53918bf631b7bc7a53ba8230658f918efba643121336344c7b0a8132be6fb
chef-boneyard/opscode-pushy-server
pushy_node_stats_scanner.erl
-*- erlang - indent - level : 4;indent - tabs - mode : nil ; fill - column : 92 -*- %% ex: ts=4 sw=4 et %%% @doc %%% Conducts background scans on node stats %%% looking for zombie nodes %%% @end Copyright 2012 - 2012 Chef Software , Inc. All Rights Reserved . %% This file is provided to you under the Apache Lic...
null
https://raw.githubusercontent.com/chef-boneyard/opscode-pushy-server/7272326960fcc35eaa99fa8d5f5bd58959755b3e/apps/pushy/src/pushy_node_stats_scanner.erl
erlang
ex: ts=4 sw=4 et @doc Conducts background scans on node stats looking for zombie nodes @end 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, KIND, either exp...
-*- erlang - indent - level : 4;indent - tabs - mode : nil ; fill - column : 92 -*- Copyright 2012 - 2012 Chef Software , Inc. All Rights Reserved . This file is provided to you under the Apache License , software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CON...
8b700d7d511d3fa0e42070753429b784cb801a962377de1ef903adf5a444caf7
returntocorp/ocaml-tree-sitter-core
Inline.mli
(* Transform the grammar's original type definitions so as to inline some of them. This is meant to make the OCaml types more readable. *) (* Replace type names by their value if they're used only once. Their definition is then marked as inlined and is moved to the bottom of the list of definitions, sin...
null
https://raw.githubusercontent.com/returntocorp/ocaml-tree-sitter-core/28f750bb894ea4c0a7f6b911e568ab9d731cc0b5/src/gen/lib/Inline.mli
ocaml
Transform the grammar's original type definitions so as to inline some of them. This is meant to make the OCaml types more readable. Replace type names by their value if they're used only once. Their definition is then marked as inlined and is moved to the bottom of the list of definitions, since no o...
val inline_rules : CST_grammar.t -> CST_grammar.t
9e9eeb0ad4e3956731d51973e32254725c2fa5d2ba60483b9eed2d632ca07a44
ralt/github-backup
github-backup.lisp
(defpackage #:github-backup (:use :cl) (:export :main)) (in-package #:github-backup) (defvar *token*) (defvar *orgs*) (defvar *archive-name* "") (defun main (&rest args) (declare (ignore args)) (handler-case (progn (setf *token* (uiop:getenv "PERSONAL_ACCESS_TOKEN")) (setf *orgs* (cl-p...
null
https://raw.githubusercontent.com/ralt/github-backup/449c6b1d5eb86d64c940f1d345f35047fadee2ce/github-backup.lisp
lisp
(defpackage #:github-backup (:use :cl) (:export :main)) (in-package #:github-backup) (defvar *token*) (defvar *orgs*) (defvar *archive-name* "") (defun main (&rest args) (declare (ignore args)) (handler-case (progn (setf *token* (uiop:getenv "PERSONAL_ACCESS_TOKEN")) (setf *orgs* (cl-p...
afc810f624596bd728c902c2be3d704fd07d0a1ae32a405935307e20f350a2a0
alex-hhh/ActivityLog2
view-equipment.rkt
#lang racket/base ;; view-equipment.rkt -- equipment and service log management panel ;; ;; This file is part of ActivityLog2, an fitness activity tracker Copyright ( C ) 2015 , 2020 < > ;; ;; This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Licens...
null
https://raw.githubusercontent.com/alex-hhh/ActivityLog2/efd2b402e846680d0e5542cde0199616477f0084/rkt/view-equipment.rkt
racket
view-equipment.rkt -- equipment and service log management panel This file is part of ActivityLog2, an fitness activity tracker This program is free software: you can redistribute it and/or modify it any later version. This program is distributed in the hope that it will be useful, but WITHOUT without even the...
#lang racket/base Copyright ( C ) 2015 , 2020 < > 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 ) (require db/base racket/class racket/format racket/gui/base racket/matc...
4df6725760dc6165fb9dc8fcd95f264c4b73d3f3c41b6b33bd05daf65cd1f88c
smanek/trivial-lisp-webapp
acceptor.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : CL - USER ; Base : 10 -*- $ Header : /usr / local / cvsrep / hunchentoot / server.lisp , v 1.43 2008/04/09 08:17:48 edi Exp $ Copyright ( c ) 2004 - 2009 , Dr. . All rights reserved . ;;; Redistribution and use in source and binary forms, with or without ...
null
https://raw.githubusercontent.com/smanek/trivial-lisp-webapp/36816c17ea378822e02a123c1be960fd9ce3e29d/aux/hunchentoot/acceptor.lisp
lisp
Syntax : COMMON - LISP ; Package : CL - USER ; Base : 10 -*- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
$ Header : /usr / local / cvsrep / hunchentoot / server.lisp , v 1.43 2008/04/09 08:17:48 edi Exp $ Copyright ( c ) 2004 - 2009 , Dr. . All rights reserved . DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , (in-packa...
daf5981bed9398e9e4676e039418107ce1f5859ef7c7eb7cc07ebefbd9e269a5
sph-mn/sph-lib
test-module.scm
(define-test-module (test module sph test-module) (l (settings) (list "execute called")))
null
https://raw.githubusercontent.com/sph-mn/sph-lib/c7daf74f42d6bd1304f49c2fef89dcd6dd94fdc9/modules/test/module/sph/test-module.scm
scheme
(define-test-module (test module sph test-module) (l (settings) (list "execute called")))
574ab4934777ed0fbe13db10fa9defb950c17a18f98363a72ab80817c9a801a3
ocsigen/eliom
eliom_client.client.mli
Ocsigen * * Module eliom_client.ml * Copyright ( C ) 2010 * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking exception ; * either version 2.1 of...
null
https://raw.githubusercontent.com/ocsigen/eliom/c3e0eea5bef02e0af3942b6d27585add95d01d6c/src/lib/eliom_client.client.mli
ocaml
* Call server side services and change the current page. * Stop current program and load a new page. Note that for string arguments, sole line feed or sole carriage return characters are substituted by the string ["\r\n"]. If [window_name] is specified (for example ["_blank"]), open in new window by c...
Ocsigen * * Module eliom_client.ml * Copyright ( C ) 2010 * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking exception ; * either version 2.1 of...
506567f3ff03c229367913c4080a3c043c53d5338f4129269eb554cbbdfbc319
facebookarchive/duckling_old
cycles.clj
; Cycles are like a heart beat, the next starts just when the previous ends. ; Unlike durations, they have an absolute position in the time, it's just that this position is periodic. ; Examples of phrases involving cycles: - this week ; - today (= this day) ; - last month ; - last 2 calendar months (last 2 months is ...
null
https://raw.githubusercontent.com/facebookarchive/duckling_old/bf5bb9758c36313b56e136a28ba401696eeff10b/resources/languages/en/rules/cycles.clj
clojure
Cycles are like a heart beat, the next starts just when the previous ends. Unlike durations, they have an absolute position in the time, it's just that this position is periodic. Examples of phrases involving cycles: - today (= this day) - last month - last 2 calendar months (last 2 months is interpreted as a dur...
- this week As soon as you put a quantity ( 2 months ) , the cycle becomes a duration . ( "second (cycle)" #"(?i)seconds?" {:dim :cycle :grain :second} "minute (cycle)" #"(?i)minutes?" {:dim :cycle :grain :minute} "hour (cycle)" #"(?i)h(ou)?rs?" {:dim :cycle :grain :hour} "day (cyc...
db41afece0abacd61b2831cab1347051f271381f7c1269294d8b57690b3bc6a7
biscuit-auth/biscuit-haskell
Token.hs
{-# LANGUAGE DataKinds #-} # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleInstances # {-# LANGUAGE KindSignatures #-} {-# LANGUAGE NamedFieldPuns #-} # LANGUAGE RecordWildCards # HLINT ignore " Reduce duplication " | Module : Auth . Biscuit . Token Copyright : , 2021 ...
null
https://raw.githubusercontent.com/biscuit-auth/biscuit-haskell/ae09dfb90d5418261c34606efd53dd195cf61b55/biscuit/src/Auth/Biscuit/Token.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE KindSignatures # # LANGUAGE NamedFieldPuns # $openOrSealed | Protobuf serialization does not have a guaranteed deterministic behaviour, so we need to keep the initial serialized payload around in order to compute a new signature when adding a block. $openOrSealed ...
# LANGUAGE DerivingStrategies # # LANGUAGE FlexibleInstances # # LANGUAGE RecordWildCards # HLINT ignore " Reduce duplication " | Module : Auth . Biscuit . Token Copyright : , 2021 License : MIT Maintainer : Module defining the main biscuit - related operations Module...
60a9a266a86fcbdd30e38321f272dc594427720a89178c1614731c4d2aab9fb2
kit-ty-kate/visitors
map_from_fold.mli
class ['self] map_from_fold : object ('self) method private visit_option : 'a . ('env -> 'a -> 'b) -> 'env -> 'a option -> 'b option method private build_None : 'env -> 'b option method private build_Some : 'env -> 'b -> 'b option end
null
https://raw.githubusercontent.com/kit-ty-kate/visitors/fc53cc486178781e0b1e581eced98e07facb7d29/test/map_from_fold.mli
ocaml
class ['self] map_from_fold : object ('self) method private visit_option : 'a . ('env -> 'a -> 'b) -> 'env -> 'a option -> 'b option method private build_None : 'env -> 'b option method private build_Some : 'env -> 'b -> 'b option end
26655d89b933c87a9bf1a5fb5e0ef68a24893b2e74738cf5fa36833b34d21e73
nuvla/api-server
resource_metadata_value_scope_unit.cljc
(ns sixsq.nuvla.server.resources.spec.resource-metadata-value-scope-unit (:require [clojure.spec.alpha :as s] [sixsq.nuvla.server.resources.spec.core :as core] [sixsq.nuvla.server.util.spec :as su])) (s/def ::units ::core/token) (s/def ::unit (su/only-keys :req-un [::units]))
null
https://raw.githubusercontent.com/nuvla/api-server/a64a61b227733f1a0a945003edf5abaf5150a15c/code/src/sixsq/nuvla/server/resources/spec/resource_metadata_value_scope_unit.cljc
clojure
(ns sixsq.nuvla.server.resources.spec.resource-metadata-value-scope-unit (:require [clojure.spec.alpha :as s] [sixsq.nuvla.server.resources.spec.core :as core] [sixsq.nuvla.server.util.spec :as su])) (s/def ::units ::core/token) (s/def ::unit (su/only-keys :req-un [::units]))
cb7be7d4a10adb507c5f307148c5cb11fe32cf144ee5fd6bd5c0deeeb7f254b2
sbcl/sbcl
typehashmix.impure.lisp
;;; This file is impure NOT because of its effects, but because of effects upon it ;;; from other tests- I don't want the type caches to have many extra lines ;;; in them at the start of the test. (with-test (:name :exactly-one-null-type-instance) (let ((null-instances)) (dolist (x (sb-vm:list-allocated-objects ...
null
https://raw.githubusercontent.com/sbcl/sbcl/f80f4a32fa6ac42b98e846384652dcbc34961e75/tests/typehashmix.impure.lisp
lisp
This file is impure NOT because of its effects, but because of effects upon it from other tests- I don't want the type caches to have many extra lines in them at the start of the test. not really a test of the mixer, just that we don't try to hash-cons and then blow up on MEMBER types that contain other than numb...
(with-test (:name :exactly-one-null-type-instance) (let ((null-instances)) (dolist (x (sb-vm:list-allocated-objects :all :test #'sb-kernel:member-type-p)) (let ((m (sb-kernel:member-type-members x))) (when (and (sb-int:singleton-p m) (eq nil (car m))) (push x null-insta...
ad325d19321c69ad1a37a756c43777c6d3fef8164151776a6918a426fa4a00b1
Novus-School/novus
schema.clj
(ns ^{:doc "Comprehensive Datomic Schema tutorial" :author "Vishal Gautam"} novus.schema (:require [datomic.client.api :as d])) ;; Intro =============================== (comment " What? - The facts that a Datomic database stores are represented by datoms. - Each datom is an addition or retraction of...
null
https://raw.githubusercontent.com/Novus-School/novus/d28c5b85c199495dccd3b0368a466d2e4b3fc337/novus/src/main/novus/schema.clj
clojure
Intro =============================== Attributes =============================== Installing an attribute definition Required schema attributes ======== ======== Optional schema attributes attempts to insert a duplicate value for a temporary ======================================================================...
(ns ^{:doc "Comprehensive Datomic Schema tutorial" :author "Vishal Gautam"} novus.schema (:require [datomic.client.api :as d])) (comment " What? - The facts that a Datomic database stores are represented by datoms. - Each datom is an addition or retraction of a relation between - an entity, ...
be572fbc914554f772f525602c1bc2f780cf0fd7ba4229f534d5e5d41c313b54
kazu-yamamoto/http2
BinaryHeapSTMSpec.hs
{-# LANGUAGE BangPatterns #-} module BinaryHeapSTMSpec where import Control.Concurrent.STM import Data.IORef (readIORef) import Data.List (group, sort) import Test.Hspec import qualified BinaryHeapSTM as P spec :: Spec spec = do describe "base priority queue" $ do it "queues entries based on weight" $ d...
null
https://raw.githubusercontent.com/kazu-yamamoto/http2/3c29763be147a3d482eff28f427ad80f1d4df706/bench-priority/test/BinaryHeapSTMSpec.hs
haskell
# LANGUAGE BangPatterns #
module BinaryHeapSTMSpec where import Control.Concurrent.STM import Data.IORef (readIORef) import Data.List (group, sort) import Test.Hspec import qualified BinaryHeapSTM as P spec :: Spec spec = do describe "base priority queue" $ do it "queues entries based on weight" $ do q <- atomically ...
a8c9333cc620548ce663bcfb7997990f7922a52d45295847b00f57eeb0cb18c0
azimut/shiny
extempore-misc.lisp
(in-package :shiny) ;; extempore - a study in part ;; this basically covers a scale descendent ;; cambiar los random ;; + (fp 8 52) (defun g ()) (defun g (time start pitch &optional duration) (print (format nil "~a ~a" start pitch)) (p time pitch 60 duration 8) (aat (+ time duration) #'g it (if (> pitch ...
null
https://raw.githubusercontent.com/azimut/shiny/774381a9bde21c4ec7e7092c7516dd13a5a50780/compositions/drafts/extempore-misc.lisp
lisp
extempore - a study in part this basically covers a scale descendent cambiar los random + extempore - an evening livecoding same , but synth
(in-package :shiny) (fp 8 52) (defun g ()) (defun g (time start pitch &optional duration) (print (format nil "~a ~a" start pitch)) (p time pitch 60 duration 8) (aat (+ time duration) #'g it (if (> pitch (- start 12)) start (pc-relative start -1 *phrygian*)) (if (> pitch (- st...
f1d3b6cb39fc8ecf460a3a603d0441fb2f633607b1e6a2f6cea8350e992d83e7
puppetlabs/clj-http-client
async_unbuffered_test.clj
(ns puppetlabs.http.client.async-unbuffered-test (:import (com.puppetlabs.http.client Async RequestOptions ClientOptions ResponseBodyType) (java.net SocketTimeoutException ConnectException) (java.io PipedInputStream PipedOutputStream) (java.util.concurrent TimeoutException) ...
null
https://raw.githubusercontent.com/puppetlabs/clj-http-client/2bb91cdf6a96b180b4f14e65edbc09929aafe63e/test/puppetlabs/http/client/async_unbuffered_test.clj
clojure
Return the response immediately and asynchronously stream some data into it :socket-timeout-milliseconds on the client ensures we can't really get stuck here, even if the test fails Write the last of the data Make sure we can read a few chars off of the stream Indicate we read some chars Read the rest and validat...
(ns puppetlabs.http.client.async-unbuffered-test (:import (com.puppetlabs.http.client Async RequestOptions ClientOptions ResponseBodyType) (java.net SocketTimeoutException ConnectException) (java.io PipedInputStream PipedOutputStream) (java.util.concurrent TimeoutException) ...
55fcdeedfc6193e166f7a79fd59488daa79b3e4f5df5d9708be08c53feac94cc
jarmitage/jarmlib
Targets.hs
:{ let oscBundle = [("delta", Just $ VF 0), ("cycle", Just $ VF 0), ("cps", Just $ VF 0)] oscMessage = [("sec", Just $ VF 0), ("usec", Just $ VF 0)] :} -- :script osc/targets/ASCIISVS.hs -- :script osc/targets/BelaRes.hs -- :script osc/targets/Bitwig/Bitwig.hs --...
null
https://raw.githubusercontent.com/jarmitage/jarmlib/347a4ca27478cdfaef5d44c540b21683eadc56bf/tidal/osc/Targets.hs
haskell
:script osc/targets/ASCIISVS.hs :script osc/targets/BelaRes.hs :script osc/targets/Bitwig/Bitwig.hs :script osc/targets/CineVivo.hs :script osc/targets/FlowerTarget.hs :script osc/targets/VDMX.hs :script osc/targets/VST.hs :script osc/targets/Vuo.hs :{ , , brOscMap -- ,cvOscMap , -- vuoO...
:{ let oscBundle = [("delta", Just $ VF 0), ("cycle", Just $ VF 0), ("cps", Just $ VF 0)] oscMessage = [("sec", Just $ VF 0), ("usec", Just $ VF 0)] :} : script osc / targets / LiveCore / LiveCore.hs let sdOscMap = (superdirtTarget, [superdirtShape]) :{ let o...
2a405d940b1034243fa898ce2e29755665cf0bdf9a9f8da75449bec1f0e624cd
mbutterick/pollen
file.rkt
#lang racket/base (require sugar/test racket/require (matching-identifiers-in #rx"-source\\?$" "private/file-utils.rkt") (matching-identifiers-in #rx"-source-path$" "private/file-utils.rkt") (matching-identifiers-in #rx"^get.*-source$" "private/file-utils.rkt") (only-in "private/file-utils.rk...
null
https://raw.githubusercontent.com/mbutterick/pollen/a4910a86dc62d1147f3aad94b56cecd6499d7aa6/pollen/file.rkt
racket
do the tests here to verify that the right functions are available through file.rkt
#lang racket/base (require sugar/test racket/require (matching-identifiers-in #rx"-source\\?$" "private/file-utils.rkt") (matching-identifiers-in #rx"-source-path$" "private/file-utils.rkt") (matching-identifiers-in #rx"^get.*-source$" "private/file-utils.rkt") (only-in "private/file-utils.rk...
ef2fb560282eebeb6c88648c00d7a647afb7a462ffa77e1f4d31c4b3dae12ad2
SovereignShop/codenames
app_state.cljs
(ns codenames.events.app-state (:require [codenames.comms :refer [init-sente!]] [codenames.db :as db] [datascript.core :as d] [re-posh.core :as re-posh] [goog.dom :as gdom] [datascript.transit :as dt] [taoensso.timbre :as timbre :refer-macros [debug info warn]])) (timbre/set-level! :trace) (re-...
null
https://raw.githubusercontent.com/SovereignShop/codenames/0a3d5f52b0a704341801bb7125b054a4323bcf19/src/cljs/codenames/events/app_state.cljs
clojure
(ns codenames.events.app-state (:require [codenames.comms :refer [init-sente!]] [codenames.db :as db] [datascript.core :as d] [re-posh.core :as re-posh] [goog.dom :as gdom] [datascript.transit :as dt] [taoensso.timbre :as timbre :refer-macros [debug info warn]])) (timbre/set-level! :trace) (re-...
6c58df1b9ab3640bd320202efe985e09d9b73c788cdf28618d4a3087d104ab7b
nibbula/terminal
terminal-dumb.lisp
;;; ;;; terminal-dumb.lisp - Dumb terminal ;;; (defpackage :terminal-dumb (:documentation "Dumb terminal") (:use :cl :dlib :terminal :char-util :dgray :fatchar) (:export #:terminal-dumb-stream-mixin #:terminal-fake-column #:terminal-dumb-stream #:terminal-dumb )) (in-package :terminal-dumb) (decl...
null
https://raw.githubusercontent.com/nibbula/terminal/af19e78a46f5d5236dc4aca926e88c9dafd857b4/terminal-dumb.lisp
lisp
terminal-dumb.lisp - Dumb terminal @@@ Does this even make sense? This is silly. We have no idea what the size is. (values nil nil) This is the best we can do. It probably won't work. This isn't technically right, but we don't care, since we can't really do much that depends on it anyway. normal case some non...
(defpackage :terminal-dumb (:documentation "Dumb terminal") (:use :cl :dlib :terminal :char-util :dgray :fatchar) (:export #:terminal-dumb-stream-mixin #:terminal-fake-column #:terminal-dumb-stream #:terminal-dumb )) (in-package :terminal-dumb) (declaim #.`(optimize ,.(getf terminal-config::*conf...
76d25a398fc0777cdc13568704252f9acdc712da13ce9a0d5a0279a486a41ba6
dscarpetti/codax
operations.clj
(ns codax.operations (:require [codax.store :as store] [codax.pathwise :as pathwise])) (defn get-val [tx path] (store/b+get tx (pathwise/encode path))) (defn delete-val [tx path] (store/b+remove tx (pathwise/encode path))) (defn put-val [tx path v] (store/b+insert tx (pathwise/encode path) v)) (defn u...
null
https://raw.githubusercontent.com/dscarpetti/codax/68edc73dbdfe4d33f5d08f658052edbc3de85121/src/codax/operations.clj
clojure
(ns codax.operations (:require [codax.store :as store] [codax.pathwise :as pathwise])) (defn get-val [tx path] (store/b+get tx (pathwise/encode path))) (defn delete-val [tx path] (store/b+remove tx (pathwise/encode path))) (defn put-val [tx path v] (store/b+insert tx (pathwise/encode path) v)) (defn u...
65e67d1ca5ea1a25087773301647b088bc60c9fce402ec49015d07d9d2d12c8c
soulomoon/SICP
Exercise5.15.scm
Exercise 5.15 : Add instruction counting to the register machine simulation . That is , have the machine model keep track of the number of instructions executed . Extend the machine model ’s interface to accept a new message that prints the value of the instruction count and resets the count to zero . (load "/Users/sou...
null
https://raw.githubusercontent.com/soulomoon/SICP/1c6cbf5ecf6397eaeb990738a938d48c193af1bb/Chapter5/Exercise5.15.scm
scheme
-- comment out if not wanted Recursive exponentiation: save old value of n clobber n to n-1 perform recursive call (restore continue) ;here extra-restore (save continue) ;here extra-save return to caller, answer is in val base case: Fib(n) = n memory limit : 128 MB . (REGISTER SIMULATOR LOADED) 'done 'done ...
Exercise 5.15 : Add instruction counting to the register machine simulation . That is , have the machine model keep track of the number of instructions executed . Extend the machine model ’s interface to accept a new message that prints the value of the instruction count and resets the count to zero . (load "/Users/sou...
35337525e41c8c56b90acf66f2476d9ff9f251e996d39dae3d04ecce0cf4d7ea
racket/scribble
decode-struct.rkt
#lang racket/base (require "private/provide-structs.rkt") (provide-structs [part-index-desc ()])
null
https://raw.githubusercontent.com/racket/scribble/beb2d9834169665121d34b5f3195ddf252c3c998/scribble-lib/scribble/decode-struct.rkt
racket
#lang racket/base (require "private/provide-structs.rkt") (provide-structs [part-index-desc ()])
55fadef6ee43e8552e6c808a097d998e068af68d42692a6b1a4b42065c44674c
chetmurthy/ensemble
lensemble.ml
(**************************************************************) LENSEMBLE.ML : text - based interface to Ensemble Author : , 8/95 (**************************************************************) open Ensemble open Hsys open Util open View open Appl_intf open New open Trans (**************************************...
null
https://raw.githubusercontent.com/chetmurthy/ensemble/8266a89e68be24a4aaa5d594662e211eeaa6dc89/ensemble/server/prog/lensemble.ml
ocaml
************************************************************ ************************************************************ ************************************************************ ************************************************************ This function returns the interface record that defines * the callbacks fo...
LENSEMBLE.ML : text - based interface to Ensemble Author : , 8/95 open Ensemble open Hsys open Util open View open Appl_intf open New open Trans let name = Trace.file "ENSEMBLE" let failwith s = Trace.make_failwith name s type tcontrol = | TLeave | TPrompt | TSuspect of rank list | TXferDone | TRekey...
7d2ec375434f12ba199331aa739a85a8fc15dcd5f6dae2d484bb39f05032ba51
witheve/eve-experiments
spec_util.clj
(ns server.spec-util (:require [speclj.core :refer :all])) (defmacro should-include [expected-form actual-form] `(let [expected# ~expected-form actual# ~actual-form expected-keys# (keys expected#) missing-keys# (filter (complement (fn foop [key#] (contains? actual# key#))) expected-keys#...
null
https://raw.githubusercontent.com/witheve/eve-experiments/8a1cdb353b3e728bc768b315e5b9a9f9dc785ae1/server/spec/server/spec_util.clj
clojure
(ns server.spec-util (:require [speclj.core :refer :all])) (defmacro should-include [expected-form actual-form] `(let [expected# ~expected-form actual# ~actual-form expected-keys# (keys expected#) missing-keys# (filter (complement (fn foop [key#] (contains? actual# key#))) expected-keys#...
f52a6162120c0b0cb450ceacacfd74b0ff113d51be2327cb950bdc60003f7e2c
purescript/purescript
Blocks.hs
| Optimizer steps for simplifying JavaScript blocks module Language.PureScript.CoreImp.Optimizer.Blocks ( collapseNestedBlocks , collapseNestedIfs ) where import Prelude import Language.PureScript.CoreImp.AST -- | Collapse blocks which appear nested directly below another block collapseNestedBlocks :: AST ->...
null
https://raw.githubusercontent.com/purescript/purescript/02bd6ae60bcd18cbfa892f268ef6359d84ed7c9b/src/Language/PureScript/CoreImp/Optimizer/Blocks.hs
haskell
| Collapse blocks which appear nested directly below another block
| Optimizer steps for simplifying JavaScript blocks module Language.PureScript.CoreImp.Optimizer.Blocks ( collapseNestedBlocks , collapseNestedIfs ) where import Prelude import Language.PureScript.CoreImp.AST collapseNestedBlocks :: AST -> AST collapseNestedBlocks = everywhere collapse where collapse :: AS...
244d042b45eab04cc35cf5e347d8ebdc00767c8ed3a5123277dcea45e0b14b4e
pokepay/aws-sdk-lisp
elasticloadbalancingv2.lisp
;; DO NOT EDIT: File is generated by AWS-SDK/GENERATOR. (uiop:define-package #:aws-sdk/services/elasticloadbalancingv2 (:use) (:use-reexport #:aws-sdk/services/elasticloadbalancingv2/api))
null
https://raw.githubusercontent.com/pokepay/aws-sdk-lisp/836b87df520391478a19462443342dc56f4b3f2c/services/elasticloadbalancingv2.lisp
lisp
DO NOT EDIT: File is generated by AWS-SDK/GENERATOR.
(uiop:define-package #:aws-sdk/services/elasticloadbalancingv2 (:use) (:use-reexport #:aws-sdk/services/elasticloadbalancingv2/api))
ee36a867eb5b4777433fc552a1693987931263c7f086e71633f1a0c2153d9899
gsakkas/rite
20060313-23:03:58-c9d9c96a5c92d44ea888b2bf8287ed92.seminal.ml
type heap = (string * intorheap) list and intorheap = Int of int | Heap of heap type exp = Int of int | Var of string | Plus of exp * exp | Times of exp * exp | Heap of heap type stmt = Skip | Assign of string * exp | Seq of stmt * stmt | If of exp * stmt * stmt | Wh...
null
https://raw.githubusercontent.com/gsakkas/rite/958a0ad2460e15734447bc07bd181f5d35956d3b/features/data/seminal/20060313-23%3A03%3A58-c9d9c96a5c92d44ea888b2bf8287ed92.seminal.ml
ocaml
type heap = (string * intorheap) list and intorheap = Int of int | Heap of heap type exp = Int of int | Var of string | Plus of exp * exp | Times of exp * exp | Heap of heap type stmt = Skip | Assign of string * exp | Seq of stmt * stmt | If of exp * stmt * stmt | Wh...
f926ca4870b3799fb408c700da7a6a46dee2bfaae733a0e84c126e5e04397517
rizo/snowflake-os
elfParsing.ml
open ElfTypes let copy i = Int32.add Int32.zero i let to_int = Int32.to_int (* Symbol Tables *) let rec parse_symbol_table acc bits = if Bitstring.bitstring_length bits = 0 then Array.of_list (List.rev acc) else bitmatch bits with | { name : 32 : littleendian; value : 32 : littleendian; ...
null
https://raw.githubusercontent.com/rizo/snowflake-os/51df43d9ba715532d325e8880d3b8b2c589cd075/kernel/elfParsing.ml
ocaml
Symbol Tables Section Headers ELF Object Files 0x7F 'E' 'L' 'F' == version beginning of unused bytes in ident that should be ignored Archive Files (gnu ar) date gid mode build the lookup table need to do a lookup
open ElfTypes let copy i = Int32.add Int32.zero i let to_int = Int32.to_int let rec parse_symbol_table acc bits = if Bitstring.bitstring_length bits = 0 then Array.of_list (List.rev acc) else bitmatch bits with | { name : 32 : littleendian; value : 32 : littleendian; size : 32 : littleen...
70af546ac1c737a7a7ffca468e4788ff9e212f923f817af2a7a60d912302e1e2
ghcjs/ghcjs-dom
IDBVersionChangeEvent.hs
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} module GHCJS.DOM.JSFFI.Generated.IDBVersionChangeEvent (js_newIDBVersionChangeEvent, newIDBVersionChangeEvent, j...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-dom/749963557d878d866be2d0184079836f367dd0ea/ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/IDBVersionChangeEvent.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # module GHCJS.DOM.JSFFI.Generated.IDBVersionChangeEvent (js_newIDBVersionChangeEvent, newIDBVersionChangeEvent, js_getOldVersion, getOldVersion, js_getNewVersion, getNewVersion, getNewVersionUnsafe, getNe...
05491a9e8cdadaaf8a6988c659e749e67365e8e3081202701c15e9484e4e90cd
quchen/stgi
Marshal.hs
# LANGUAGE NumDecimals # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} # LANGUAGE ScopedTypeVariables # module Test.Marshal (tests) where import qualified Data.List.NonEmpty as NE import Data.Proxy import Data.Text (Text) import qualifi...
null
https://raw.githubusercontent.com/quchen/stgi/dacd45cb0247f73889713dc92a911aaa835afd19/test/Testsuite/Test/Marshal.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE QuasiQuotes # | Specifies a test that is based on the reduction of a closure. ^ Pin down the type of @a@
# LANGUAGE NumDecimals # # LANGUAGE ScopedTypeVariables # module Test.Marshal (tests) where import qualified Data.List.NonEmpty as NE import Data.Proxy import Data.Text (Text) import qualified Data.Text as T import Data.Text.Prettyprint.D...
defe5fa424f9350c3967283d8d7bb217000559270d83c67a395b179cd0752af9
ijvcms/chuanqi_dev
artifact_exp_config.erl
%%%------------------------------------------------------------------- @author zhengsiying %%% @doc %%% 自动生成文件,不要手动修改 %%% @end Created : 2016/10/12 %%%------------------------------------------------------------------- -module(artifact_exp_config). -include("common.hrl"). -include("config.hrl"). -compile([expor...
null
https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/config/artifact_exp_config.erl
erlang
------------------------------------------------------------------- @doc 自动生成文件,不要手动修改 @end -------------------------------------------------------------------
@author zhengsiying Created : 2016/10/12 -module(artifact_exp_config). -include("common.hrl"). -include("config.hrl"). -compile([export_all]). get_list() -> [{1,1}, {2,1}, {3,1}, {4,1}, {5,1}, {6,1}, {7,1}, {8,1}, {9,1}, {10,1}, {1,2}, {2,2}, {3,2}, {4,2}, {5,2}, {6,2}, {7,2}, {8,2}, {9,2}, {10,2}]. get({1,1}...
dc219faf94e8f439185fb16c7b5941aba2bae6871c4565cd4839f93fa939e383
dhleong/wish
util.cljs
(ns wish.sheets.dnd5e.subs.util (:require [clojure.string :as str] [wish-engine.core :as engine] [wish.sheets.util :as sheet-util] [wish.subs-util :refer [reg-id-sub]] [wish.util.string :as wstr] [wish.util :refer [->set]])) (defn reg-sheet-sub "Convenien...
null
https://raw.githubusercontent.com/dhleong/wish/9036f9da3706bfcc1e4b4736558b6f7309f53b7b/src/cljs/wish/sheets/dnd5e/subs/util.cljs
clojure
(ns wish.sheets.dnd5e.subs.util (:require [clojure.string :as str] [wish-engine.core :as engine] [wish.sheets.util :as sheet-util] [wish.subs-util :refer [reg-id-sub]] [wish.util.string :as wstr] [wish.util :refer [->set]])) (defn reg-sheet-sub "Convenien...
7b8cdd9b8493229db5488ff96eaed89ab17fc3f3e145d110c9a5695706a52268
patrikja/AFPcourse
PolyParser.hs
module Compiler.PolyParser where This parser library has at least one bug planted . type Parser s a = [s] -> [(a,[s])] succeed :: a -> Parser s a succeed v inp = [(v,inp)] satisfy :: (s -> Bool) -> Parser s s satisfy _p [] = [] satisfy p (x:xs) = if p x then [(x,xs)] else [] lit :: Eq s => s -> Parser s s li...
null
https://raw.githubusercontent.com/patrikja/AFPcourse/1a079ae80ba2dbb36f3f79f0fc96a502c0f670b6/L10/src/Compiler/PolyParser.hs
haskell
-------------------------------------------------------------- P, symbol, (+++), pfail, parse, return, (>>=) Possible bug to use for debugging: (y, _ ) <- unP (f x) rest return (y, rest)
module Compiler.PolyParser where This parser library has at least one bug planted . type Parser s a = [s] -> [(a,[s])] succeed :: a -> Parser s a succeed v inp = [(v,inp)] satisfy :: (s -> Bool) -> Parser s s satisfy _p [] = [] satisfy p (x:xs) = if p x then [(x,xs)] else [] lit :: Eq s => s -> Parser s s li...
6f14181dd9e2cd242fc897ddefb73d88154a5769ec9a17526a00f00482fc032d
parsonsmatt/persistent-typed-db
EsqueletoSpec.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DerivingStrategies #-} {-# LANGUAGE EmptyDataDecls #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE General...
null
https://raw.githubusercontent.com/parsonsmatt/persistent-typed-db/390b995dc327ae48f7b35bab8410f0c5b8dfdf9f/test/EsqueletoSpec.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE EmptyDataDecls # # LANGUAGE GADTs # # LANGUAGE OverloadedStrings # # LANGUAGE QuasiQuotes # # LANGUAGE TemplateHaskell # ...
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeFamilies # module EsqueletoSpec where import Database.Esqueleto import ...
9be3c7988b4c9d11177851c93376699807ce66ad7c6ee7eef97a0bd06a4afa61
nojb/ocaml-imap
imap_unix.mli
The MIT License ( MIT ) Copyright ( c ) 2015 - 2018 < > Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitation the rig...
null
https://raw.githubusercontent.com/nojb/ocaml-imap/6e06e159597c3c1ea231edfe5ede53b28ae0c0ba/unix/imap_unix.mli
ocaml
* The type for connections. * [connect ?port host]. * Disconnect. * Run an IMAP command.
The MIT License ( MIT ) Copyright ( c ) 2015 - 2018 < > Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitation the rig...