_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
1485b2d3360603bc8dcb785c5c57d51605b77ffbaad8698095055d692baf01cb
Hans-Halverson/myte
error_utils.ml
let concat_with_conjunction conj strs = match strs with | [] -> "" | [str] -> str | [str1; str2] -> str1 ^ " " ^ conj ^ " " ^ str2 | strs -> let (strs, last_str) = List_utils.split_last strs in String.concat ", " strs ^ ", " ^ conj ^ " " ^ last_str let concat_with_and = concat_with_conjunction "and" ...
null
https://raw.githubusercontent.com/Hans-Halverson/myte/c873c89417367a4ba385d081346241b0d9236e01/src/common/error_utils.ml
ocaml
let concat_with_conjunction conj strs = match strs with | [] -> "" | [str] -> str | [str1; str2] -> str1 ^ " " ^ conj ^ " " ^ str2 | strs -> let (strs, last_str) = List_utils.split_last strs in String.concat ", " strs ^ ", " ^ conj ^ " " ^ last_str let concat_with_and = concat_with_conjunction "and" ...
1d408682557c169244a13d1826497b2a8433fda7645f3657dbf4f9001d2d708a
bytekid/mkbtt
terminationCount.ml
Copyright 2010 * GNU Lesser General Public License * * This file is part of MKBtt . * * 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 3 of the License , or (...
null
https://raw.githubusercontent.com/bytekid/mkbtt/c2f8e0615389b52eabd12655fe48237aa0fe83fd/src/mkbtt/termination/terminationCount.ml
ocaml
* Checks termination for orient/ordered rewrite inference ** SUBMODULES ********************************************************* ** OPENS ************************************************************** ** FUNCTIONS ********************************************************** helper function for below wrapper: checks...
Copyright 2010 * GNU Lesser General Public License * * This file is part of MKBtt . * * 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 3 of the License , or (...
35be538c564b14f5a2380f09ab3c1aa781587dadf5f523e49ea16edaa180d3d1
ocsigen/ocaml-eliom
printtyped.ml
(**************************************************************************) (* *) (* OCaml *) (* *) (* ...
null
https://raw.githubusercontent.com/ocsigen/ocaml-eliom/497c6707f477cb3086dc6d8124384e74a8c379ae/typing/printtyped.ml
ocaml
************************************************************************ OCaml Fabrice L...
Copyright 1999 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Asttypes;; open Format;; open Lexing;; open Location;; open Typedtree;; let fmt_position f l = if l.pos_lnum = -1 then fprintf f "%s[%d]" l.pos_fname l.pos_cnum...
07f5d9d20d2c233c6301fc2b70dc03b27b039619eb2a6709263a82f972ec3f17
travelping/lager_journald_backend
lager_journald_backend.erl
%% @doc Journald backend for lager. Configured with a loglevel, formatter and formatter config. -module(lager_journald_backend). -behaviour(gen_event). -export([init/1, handle_call/2, handle_event/2, handle_info/2, terminate/2, code_change/3]). -record(state, {level, formatter, formatter_config, global_att...
null
https://raw.githubusercontent.com/travelping/lager_journald_backend/e2a433e022680188ae9aa845ee41a8ba3ebed0fb/src/lager_journald_backend.erl
erlang
@doc Journald backend for lager. Configured with a loglevel, formatter and formatter config. We also want to accept binaries We also want to accept strings as keys convert all data types accordingly, so the journal is able to process them (see ) ------------------------------------------------------------ Number...
-module(lager_journald_backend). -behaviour(gen_event). -export([init/1, handle_call/2, handle_event/2, handle_info/2, terminate/2, code_change/3]). -record(state, {level, formatter, formatter_config, global_attributes}). -include("lager.hrl " ) . -define(JOURNALD_FORMAT, [message]). -define(CONTAINS(Lis...
12a6dfff1d92fea85cec7b7bdaee406285e550c6614ddf3350ec25497045cd30
Sword-Smith/Sword
EvmCompilerSubroutines.hs
MIT License -- Copyright ( c ) 2019 and -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal in the Software without restriction , including without limitation the rights -- to use, copy, modify, m...
null
https://raw.githubusercontent.com/Sword-Smith/Sword/214da8011eec75fb949bdc52418b269ab329b2c6/src/EvmCompilerSubroutines.hs
haskell
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished to do so, subject to the following conditions: The above copyright not...
MIT License Copyright ( c ) 2019 and in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , E...
df1b02f2a70ca51aad7c9da9a58523d739a897689a9a48521aee9550944853c4
c-cube/smtlib-utils
Ast.ml
(* This file is free software. See file "license" for more details. *) * { 1 Trivial AST for parsing } let pp_to_string pp x = Format.asprintf "%a@?" pp x type var = string type ty_var = string (** Polymorphic types *) type ty = | Ty_bool | Ty_real | Ty_app of ty_var * ty list | Ty_arrow of ty list * ty ty...
null
https://raw.githubusercontent.com/c-cube/smtlib-utils/d93c5955d814e675045f2f7f024f6bbda9f74abf/src/Ast.ml
ocaml
This file is free software. See file "license" for more details. * Polymorphic types higher-order application tester: is-constructor(term) type cast term + attributes selector+type arity * {2 Errors} * {2 Constructors}
* { 1 Trivial AST for parsing } let pp_to_string pp x = Format.asprintf "%a@?" pp x type var = string type ty_var = string type ty = | Ty_bool | Ty_real | Ty_app of ty_var * ty list | Ty_arrow of ty list * ty type typed_var = var * ty type arith_op = | Leq | Lt | Geq | Gt | Add | Minus | Mul...
e72f05567a8e01be6263f6039eeed5a7edefecaedbeb832152a63700c2c72a2b
clojurecademy/clojurecademy
java.clj
(ns clojurecademy.repl.java (:require [clojurecademy.repl.util :as util] [kezban.core :refer :all])) (defn- get-import-deps [ns-form] (->> ns-form (filter #(and (list? %) (= :import (first %)))) (apply concat) (filter (complement keyword?)))) (defn- sym-dep->str-dep [dep] (s...
null
https://raw.githubusercontent.com/clojurecademy/clojurecademy/97dc7f9b91a90a3f30ca5a3de88542c90a50ce01/src/clj/clojurecademy/repl/java.clj
clojure
(ns clojurecademy.repl.java (:require [clojurecademy.repl.util :as util] [kezban.core :refer :all])) (defn- get-import-deps [ns-form] (->> ns-form (filter #(and (list? %) (= :import (first %)))) (apply concat) (filter (complement keyword?)))) (defn- sym-dep->str-dep [dep] (s...
ccd8625b76f1019a5a3f67e749a17e8d5a46166327b337d4893e45f373cf87f0
jcclinton/wow-emulator
srp_tests.erl
This is a World of Warcraft emulator written in erlang , supporting client 1.12.x %% Copyright ( C ) 2014 < jamieclinton.com > %% %% This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Found...
null
https://raw.githubusercontent.com/jcclinton/wow-emulator/21bc67bfc9eea131c447c67f7f889ba040dcdd79/test/srp_tests.erl
erlang
This program is free software; you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU G...
This is a World of Warcraft emulator written in erlang , supporting client 1.12.x Copyright ( C ) 2014 < jamieclinton.com > it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or You should have received a copy...
df97f3dc0451d9c05c24473bdc048db486468f8924f0fe8acbbf80754ffd96c6
2600hz/kazoo
kast_app_deps.erl
%%%----------------------------------------------------------------------------- ( C ) 2015 - 2020 , 2600Hz @doc Module for studying Kazoo applications dependency . @author This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with t...
null
https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/core/kazoo_ast/src/kast_app_deps.erl
erlang
----------------------------------------------------------------------------- @end ----------------------------------------------------------------------------- || App <- kz_ast_util:project_apps() ], io:format(" done~n"), Circles.
( C ) 2015 - 2020 , 2600Hz @doc Module for studying Kazoo applications dependency . @author This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. -module(kast_app_deps). -export([process_p...
0136a1551a7a97083b87f1150aa26a9cff399f92c299a72edc23d59e465cb500
dgiot/dgiot
dgiot_cron_sup.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 - 2021 DGIOT 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...
null
https://raw.githubusercontent.com/dgiot/dgiot/a6b816a094b1c9bd024ce40b8142375a0f0289d8/apps/dgiot/src/otp/dgiot_cron_sup.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 ...
Copyright ( c ) 2020 - 2021 DGIOT 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 , Body^@ -module(dgiot_cron_sup). -include("dgiot_cron.hrl"). -behaviour(supervisor). -export...
7b00048c3ce550b9afe2bc786600e3c9b7b92f13f5b6ef6811970e6fb8f8a15e
well-typed-lightbulbs/ocaml-esp32
testarg.ml
(* TEST compare_programs = "false" (* See *) *) let current = ref 0;; let accum = ref [];; let record fmt (* args *) = Printf.kprintf (fun s -> accum := s :: !accum) fmt ;; let f_unit () = record "unit()";; let f_bool b = record "bool(%B)" b;; let r_set = ref false;; let r_clear = ref true;; let f_string s = ...
null
https://raw.githubusercontent.com/well-typed-lightbulbs/ocaml-esp32/c24fcbfbee0e3aa6bb71c9b467c60c6bac326cc7/testsuite/tests/lib-arg/testarg.ml
ocaml
TEST compare_programs = "false" (* See args
*) let current = ref 0;; let accum = ref [];; Printf.kprintf (fun s -> accum := s :: !accum) fmt ;; let f_unit () = record "unit()";; let f_bool b = record "bool(%B)" b;; let r_set = ref false;; let r_clear = ref true;; let f_string s = record "string(%s)" s;; let r_string = ref "";; let f_int i = record "int(%d)...
8486fa290171674428d11e2739a299e2809e19c39cc0c7ab2e022dfa10813a82
dabcoder/stocks
TimeSeries.hs
# LANGUAGE DeriveGeneric # module Net.IEX.TimeSeries (TimeSeries(..)) where import Data.Maybe import Data.Aeson import GHC.Generics data TimeSeries = TimeSeries { date :: String, open :: Double, high :: Double, low :: Double, close :: Double, volume :: Integer, unadjustedVolume :: Integer, change :: ...
null
https://raw.githubusercontent.com/dabcoder/stocks/aad9bb3e74b2abf54cc09dd10dc66152881a32b8/src/Net/IEX/TimeSeries.hs
haskell
# LANGUAGE DeriveGeneric # module Net.IEX.TimeSeries (TimeSeries(..)) where import Data.Maybe import Data.Aeson import GHC.Generics data TimeSeries = TimeSeries { date :: String, open :: Double, high :: Double, low :: Double, close :: Double, volume :: Integer, unadjustedVolume :: Integer, change :: ...
23062f2941f0ba30af82fc1c80c6f6f7e8b87f06108327bf6242f60b535358b2
tatut/postgrest-ui
default_style.cljs
(ns postgrest-ui.impl.style.default-style "Implements element rendering for the default style" (:require [postgrest-ui.elements :refer [element]] [clojure.string :as str] [reagent.core :as r])) Generic elements (defmethod element [:default :loading-indicator] [_ _ & _] [:div.loading "Lo...
null
https://raw.githubusercontent.com/tatut/postgrest-ui/a6a38d14433ec793c6d9df0a288d8501073eabe7/src/cljs/postgrest_ui/impl/style/default_style.cljs
clojure
Elements for listing-view Elements for item-view Form layout Elements for input fields Empty selection
(ns postgrest-ui.impl.style.default-style "Implements element rendering for the default style" (:require [postgrest-ui.elements :refer [element]] [clojure.string :as str] [reagent.core :as r])) Generic elements (defmethod element [:default :loading-indicator] [_ _ & _] [:div.loading "Lo...
e0b107c97eb97d7f48275f129963f355f8de723c342ef19438c3d7c16dcccc8b
jship/monad-logger-aeson
ThreadContextNo.hs
# LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE QuasiQuotes # module TestCase.MonadLogger.LogDebugN.ThreadContextNo ( testCase ) where import Control.Monad.Logger.Aeson (LogLevel(..), LoggedMessage(..)) import Data.Aeson.QQ.Simple (aesonQQ) import Data.Time (UTCTime(..)) import TestCase (...
null
https://raw.githubusercontent.com/jship/monad-logger-aeson/218dd4a1fd9fd7f86514322dd529444a55001443/monad-logger-aeson/test-suite/TestCase/MonadLogger/LogDebugN/ThreadContextNo.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE NamedFieldPuns # # LANGUAGE QuasiQuotes # module TestCase.MonadLogger.LogDebugN.ThreadContextNo ( testCase ) where import Control.Monad.Logger.Aeson (LogLevel(..), LoggedMessage(..)) import Data.Aeson.QQ.Simple (aesonQQ) import Data.Time (UTCTime(..)) import TestCase (TestCase(..)) import qualified Cont...
b27a19ff248ef0cbe18f4830d737f1b522f822052e1f443c2fae880871056aa0
sdiehl/write-you-a-haskell
Pretty.hs
module Pretty ( ppexpr, pptype ) where import Syntax import Type import Text.PrettyPrint (Doc, (<>), (<+>)) import qualified Text.PrettyPrint as PP parensIf :: Bool -> Doc -> Doc parensIf True = PP.parens parensIf False = id class Pretty p where ppr :: Int -> p -> Doc instance Pretty Expr where ppr p expr...
null
https://raw.githubusercontent.com/sdiehl/write-you-a-haskell/ae73485e045ef38f50846b62bd91777a9943d1f7/chapter5/calc_typed/Pretty.hs
haskell
module Pretty ( ppexpr, pptype ) where import Syntax import Type import Text.PrettyPrint (Doc, (<>), (<+>)) import qualified Text.PrettyPrint as PP parensIf :: Bool -> Doc -> Doc parensIf True = PP.parens parensIf False = id class Pretty p where ppr :: Int -> p -> Doc instance Pretty Expr where ppr p expr...
290d9a7b042110f7a9da1394eb85d12b076ab84a136dbff9a0b36ef4b2a2b7fb
audreyt/openafp
UConv.hs
{-# OPTIONS -#include <unicode/ucnv.h> #-} ----------------------------------------------------------------------------- -- | Module : OpenAFP.Internals . Copyright : License : PublicDomain -- -- Maintainer : -- Stability : experimental Portability : non - portable ( FFI extensio...
null
https://raw.githubusercontent.com/audreyt/openafp/178e0dd427479ac7b8b461e05c263e52dd614b73/src/OpenAFP/Internals/UConv.hs
haskell
# OPTIONS -#include <unicode/ucnv.h> # --------------------------------------------------------------------------- | Maintainer : Stability : experimental --------------------------------------------------------------------------- Make with: ghc --make main.hs -L/usr/local/lib -licuuc -O -I/usr/local/inclu...
Module : OpenAFP.Internals . Copyright : License : PublicDomain Portability : non - portable ( FFI extensions , UNIX98 ) This module provides an interface to IBM ICU 's functionality module OpenAFP.Internals.UConv where import Foreign import Foreign.C import Foreign.Ptr import Op...
a9e5b15e111733861374eb23b28cfa77a942334cbb3ffe6239671dd62274b624
LexiFi/menhir
codePieces.mli
(******************************************************************************) (* *) (* *) ...
null
https://raw.githubusercontent.com/LexiFi/menhir/794e64e7997d4d3f91d36dd49aaecc942ea858b7/src/codePieces.mli
ocaml
**************************************************************************** file LICEN...
, Paris , PPS , Université Paris Diderot . All rights reserved . This file is distributed under the terms of the GNU General Public License version 2 , as...
5b5285c229d8dfd67926bf69a00f19159cbe2833fbe435786227b40d777c802d
CryptoKami/cryptokami-core
History.hs
# LANGUAGE TypeFamilies # -- | Wallet history module Pos.Wallet.Web.Methods.History ( MonadWalletHistory , WalletHistory (..) , _WalletHistory , WalletHistorySize (..) , getHistoryLimited , getHistory , addHistoryTxMeta , constructCTx , getCurChainDifficu...
null
https://raw.githubusercontent.com/CryptoKami/cryptokami-core/12ca60a9ad167b6327397b3b2f928c19436ae114/wallet/src/Pos/Wallet/Web/Methods/History.hs
haskell
| Wallet history can avoid doing any expensive filtering in this case TODO: Why do we reuse the old size, pre-filter? Explain. TODO: if we use a (lazy) heap sort here, we can get the This functions is helper to do @addHistoryTx@ for It's impossible case but just in case show only actually pending transactions in...
# LANGUAGE TypeFamilies # module Pos.Wallet.Web.Methods.History ( MonadWalletHistory , WalletHistory (..) , _WalletHistory , WalletHistorySize (..) , getHistoryLimited , getHistory , addHistoryTxMeta , constructCTx , getCurChainDifficulty ) where ...
46a51ff1dcc181f67e099ed205cd26f3af5719df6120d83f9e3c02f5294dc62b
technomancy/leiningen
project.clj
(defproject {{raw-name}} "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0" :url "-2.0/"} :dependencies [[org.clojure/clojure "1.11.1"]] :main ^:skip-aot {{namespace}} :target-path "target/%s" :profiles {:...
null
https://raw.githubusercontent.com/technomancy/leiningen/24fb93936133bd7fc30c393c127e9e69bb5f2392/resources/leiningen/new/app/project.clj
clojure
(defproject {{raw-name}} "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0" :url "-2.0/"} :dependencies [[org.clojure/clojure "1.11.1"]] :main ^:skip-aot {{namespace}} :target-path "target/%s" :profiles {:...
2e2802413ebd345c0d45fcf6ac2780cf5e001d7cf92acfd115d4944a497b9a1f
aterreno/etcd-clojure
project.clj
(defproject etcd-clojure "0.2.4" :description "etcd client library in clojure" :url "-clojure" :lein-release {:deploy-via :clojars} :license {:name "Apache license version 2" :url "-2.0"} :scm {:url ":aterreno/etcd-clojure.git"} :main etcd-clojure.core :dependencies [[org.clojure/clojure "1.9....
null
https://raw.githubusercontent.com/aterreno/etcd-clojure/3112e8b1bddbb71bb0cfa12bc9a60550b4f02305/project.clj
clojure
(defproject etcd-clojure "0.2.4" :description "etcd client library in clojure" :url "-clojure" :lein-release {:deploy-via :clojars} :license {:name "Apache license version 2" :url "-2.0"} :scm {:url ":aterreno/etcd-clojure.git"} :main etcd-clojure.core :dependencies [[org.clojure/clojure "1.9....
2376205836b5df44ec7b1fa6acc80d8d10f6a3818831954a3ffa7c808a39afbb
RichiH/git-annex
TransferInfo.hs
git - annex command - - Copyright 2012 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2012 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} module Command.TransferInfo where import Command import Annex.Content import Types.Transfer import Logs.Transf...
null
https://raw.githubusercontent.com/RichiH/git-annex/bbcad2b0af8cd9264d0cb86e6ca126ae626171f3/Command/TransferInfo.hs
haskell
git - annex command - - Copyright 2012 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2012 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} module Command.TransferInfo where import Command import Annex.Content import Types.Transfer import Logs.Transf...
05c84f6411b527083d5f76b116f3dec8b3f15fd599d7b3d8f245d52112a6f6cb
dsorokin/aivika
Gate.hs
-- | -- Module : Simulation.Aivika.Gate Copyright : Copyright ( c ) 2009 - 2017 , < > -- License : BSD3 Maintainer : < > -- Stability : experimental Tested with : GHC 8.0.1 -- -- The module defines a gate which can be either opened or closed. -- module Simulation.Aivika.Gate (Gate, ...
null
https://raw.githubusercontent.com/dsorokin/aivika/7a14f460ab114b0f8cdfcd05d5cc889fdc2db0a4/Simulation/Aivika/Gate.hs
haskell
| Module : Simulation.Aivika.Gate License : BSD3 Stability : experimental The module defines a gate which can be either opened or closed. | Represents a gate, which can be either opened or closed. | Create a new gate, specifying whether the gate is initially open. | Create a new initially open gate. ...
Copyright : Copyright ( c ) 2009 - 2017 , < > Maintainer : < > Tested with : GHC 8.0.1 module Simulation.Aivika.Gate (Gate, newGate, newGateOpened, newGateClosed, openGate, closeGate, invertGate, gateOpened, gateClosed, awaitG...
0d76d28cd23fd11d8a55291cd5712c9866361f7d2e450033fdeab59641e0d9f1
batterseapower/parallel-io
Local.hs
# LANGUAGE ScopedTypeVariables # -- | Parallelism combinators with explicit thread-pool creation and -- passing. -- -- The most basic example of usage is: -- > main = withPool 2 $ \pool - > parallel _ pool [ putStrLn " Echo " , " in parallel " ] -- -- Make sure that you compile with @-threaded@ and supply @+RTS -N2 ...
null
https://raw.githubusercontent.com/batterseapower/parallel-io/f605d693956697318a981a692f0d2c44c7d4c071/Control/Concurrent/ParallelIO/Local.hs
haskell
| Parallelism combinators with explicit thread-pool creation and passing. The most basic example of usage is: Make sure that you compile with @-threaded@ and supply @+RTS -N2 -RTS@ If you plan to allow your worker items to block, then you should read the documentation for 'extraWorkerWhileBlocked'. on top of...
# LANGUAGE ScopedTypeVariables # > main = withPool 2 $ \pool - > parallel _ pool [ putStrLn " Echo " , " in parallel " ] to the generated executable , or you wo n't get any parallelism . The " Control . Concurrent . ParallelIO.Global " module is implemented with one thread per capability . module Control.Co...
7d4913b76d5687fac95cb1b9005bf3b78db85d4c84311037212e8a52d19db59a
VincentToups/racket-lib
list-parser.rkt
#lang racket (require functional/monads) (require functional/point-free)
null
https://raw.githubusercontent.com/VincentToups/racket-lib/d8aed0959fd148615b000ceecd7b8a6128cfcfa8/utilities/list-parser.rkt
racket
#lang racket (require functional/monads) (require functional/point-free)
43384ec3dfbc578997c177f6606318208cc64b3559ef6017ea45da59a945f65c
startling/partly
partly.hs
module Main where -- base: import Control.Applicative -- optparse-applicative: import Options.Applicative -- partly: import Partly.Make import Partly.View data Command = View ViewCommand | Make MakeOptions parser :: ParserInfo Command parser = info ( subparser ( command "view" (View <$> viewParser) & co...
null
https://raw.githubusercontent.com/startling/partly/d23b27910084eede0828bc421d7c1923660826b2/partly.hs
haskell
base: optparse-applicative: partly:
module Main where import Control.Applicative import Options.Applicative import Partly.Make import Partly.View data Command = View ViewCommand | Make MakeOptions parser :: ParserInfo Command parser = info ( subparser ( command "view" (View <$> viewParser) & command "make" (Make <$> makeParser) )) ( pro...
5bfb6470b3461691c529e3c645c9e9e5489920caf978e2659f50854765c86221
runtimeverification/haskell-backend
Owise.hs
| Copyright : ( c ) Runtime Verification , 2020 - 2021 License : BSD-3 - Clause Copyright : (c) Runtime Verification, 2020-2021 License : BSD-3-Clause -} module Kore.Attribute.Owise ( Owise (..), owiseId, owiseSymbol, owiseAttribute, ) where import GHC.Generics qualified as GHC im...
null
https://raw.githubusercontent.com/runtimeverification/haskell-backend/b06757e252ee01fdd5ab8f07de2910711997d845/kore/src/Kore/Attribute/Owise.hs
haskell
| Copyright : ( c ) Runtime Verification , 2020 - 2021 License : BSD-3 - Clause Copyright : (c) Runtime Verification, 2020-2021 License : BSD-3-Clause -} module Kore.Attribute.Owise ( Owise (..), owiseId, owiseSymbol, owiseAttribute, ) where import GHC.Generics qualified as GHC im...
bc82ffa8cacf39910658f9886c97c357751c345d7c5e3c4ae96cb371cb476573
cryptosense/pkcs11
pkcs11_CK_VOID.mli
* Wrapper for [ unit ] ( not defined in PKCS#11 ) type t = unit
null
https://raw.githubusercontent.com/cryptosense/pkcs11/854c5a48a5ea18aaaf81008216a5dbaab200118e/driver/pkcs11_CK_VOID.mli
ocaml
* Wrapper for [ unit ] ( not defined in PKCS#11 ) type t = unit
3993aa6b46dae35264f2bdee9cddcc9a3810ba5115376f218bbb5fb5699dc259
alexander-yakushev/compliment
resources.clj
(ns compliment.sources.resources "Completion for bundled resource files." (:require [clojure.java.io :as io] [compliment.sources :refer [defsource]] [compliment.utils :as utils]) (:import java.io.File java.net.URLConnection)) (defn inside-resource-call? "If context is not nil...
null
https://raw.githubusercontent.com/alexander-yakushev/compliment/a112bb85b748d4a34da89ee783e7c64d8183dab7/src/compliment/sources/resources.clj
clojure
(ns compliment.sources.resources "Completion for bundled resource files." (:require [clojure.java.io :as io] [compliment.sources :refer [defsource]] [compliment.utils :as utils]) (:import java.io.File java.net.URLConnection)) (defn inside-resource-call? "If context is not nil...
6377e34b7343d0cfe042f0cd99e527eb270312c30f7b8edf1e9c0ccfab08ffba
fission-codes/fission
DNS.hs
module Fission.Test.DNS (spec) where import qualified RIO.NonEmpty as NonEmpty import qualified RIO.Text as Text import qualified Fission.DNS as DNS import Fission.Test.Prelude spec :: Spec spec = describe "Fission.DNS" do describe "splitRecord" do context "256 cha...
null
https://raw.githubusercontent.com/fission-codes/fission/11d14b729ccebfd69499a534445fb072ac3433a3/fission-core/test/Fission/Test/DNS.hs
haskell
module Fission.Test.DNS (spec) where import qualified RIO.NonEmpty as NonEmpty import qualified RIO.Text as Text import qualified Fission.DNS as DNS import Fission.Test.Prelude spec :: Spec spec = describe "Fission.DNS" do describe "splitRecord" do context "256 cha...
bae77052f6bedd425bfc2af8bf524377a3e46a9da8851d6241e32d3987535bbb
CarlosMChica/HaskellBook
Lib.hs
module Lib (caesar, unCaesar, vigenere, unVigenere, Key, PlainText, EncrypedText, Spaces) where import Data.Char import Control.Applicative() type Key = String type PlainText = String type EncrypedText = String type Spaces = Int caesar :: PlainText -> Spaces -> EncrypedText caesar text spaces = caesarChar spaces <$...
null
https://raw.githubusercontent.com/CarlosMChica/HaskellBook/86f82cf36cd00003b1a1aebf264e4b5d606ddfad/chapter29/cypher/src/Lib.hs
haskell
module Lib (caesar, unCaesar, vigenere, unVigenere, Key, PlainText, EncrypedText, Spaces) where import Data.Char import Control.Applicative() type Key = String type PlainText = String type EncrypedText = String type Spaces = Int caesar :: PlainText -> Spaces -> EncrypedText caesar text spaces = caesarChar spaces <$...
b2fd546ed79d199d7c3f7a4375f6a82ce442763a7b77a467ac687d5c60c5be85
Shirakumo/trial
toolkit.lisp
(in-package #:org.shirakumo.fraf.trial.release) (defparameter *config* '(:build (:features () :build-arguments () :dynamic-space-size 4096 :linux "sbcl-lin" :windows "sbcl-win" :macos "sbcl-mac" :targets (:linux :windows) :prune () ...
null
https://raw.githubusercontent.com/Shirakumo/trial/77bbf16e0fbfb37a5f09bc4a74268f4a99a5eac9/release/toolkit.lisp
lisp
(in-package #:org.shirakumo.fraf.trial.release) (defparameter *config* '(:build (:features () :build-arguments () :dynamic-space-size 4096 :linux "sbcl-lin" :windows "sbcl-win" :macos "sbcl-mac" :targets (:linux :windows) :prune () ...
15ff0d8d703b821c3f79679638871b38b75b130d742eee4f56875b0a12204352
restyled-io/restyled.io
Repos.hs
# LANGUAGE TemplateHaskell # module Restyled.Handlers.Admin.Repos ( getAdminReposSearchR ) where import Restyled.Prelude import Restyled.Admin.RepoSearch import qualified Restyled.Api.Repo as ApiRepo import Restyled.Foundation import Restyled.Paginate import Restyled.Routes import Restyled.Settings import Re...
null
https://raw.githubusercontent.com/restyled-io/restyled.io/a983033d26404890ba276f585b509242653d0901/src/Restyled/Handlers/Admin/Repos.hs
haskell
# LANGUAGE TemplateHaskell # module Restyled.Handlers.Admin.Repos ( getAdminReposSearchR ) where import Restyled.Prelude import Restyled.Admin.RepoSearch import qualified Restyled.Api.Repo as ApiRepo import Restyled.Foundation import Restyled.Paginate import Restyled.Routes import Restyled.Settings import Re...
577c989796702542b413c36def3414613bd155b00129138dc419884f60515da7
ddmcdonald/sparser
charaterize-words.lisp
;;; -*- Mode:LISP; Syntax:Common-Lisp; Package:SPARSER -*- copyright ( c ) 2015 - 2021 -- all rights reserved ;;; ;;; File: "charaterize-words" ;;; Module: "analysers;psp:patterns:" version : February 2021 initiated 5/15/15 breaking out the routines that look at the words ;; and characterize them...
null
https://raw.githubusercontent.com/ddmcdonald/sparser/304bd02d0cf7337ca25c8f1d44b1d7912759460f/Sparser/code/s/analyzers/psp/patterns/charaterize-words.lisp
lisp
-*- Mode:LISP; Syntax:Common-Lisp; Package:SPARSER -*- File: "charaterize-words" Module: "analysers;psp:patterns:" and characterize them as patterns to drive the matcher. Moved in ------------------------------------------------ characterizing terms in the character sequence ------------------------------...
copyright ( c ) 2015 - 2021 -- all rights reserved version : February 2021 initiated 5/15/15 breaking out the routines that look at the words operations getting labels from edges (in-package :sparser) (defun characterize-word-type (position word) "return a indicator read by resolve-ns-pattern to ...
2b1601d7d0f9659eb7006a5ad88b1d92fc5e366f21166538f64969a61e091825
input-output-hk/cardano-ledger-byron
Block.hs
{-# LANGUAGE DataKinds #-} # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DerivingVia # # LANGUAGE FlexibleContexts # # LANGUAGE OverloadedLists # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeApplications # -- | This module provides functionality for transl...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger-byron/d309449e6c303a9f0dcc8dcf172df6f0b3195ed5/cardano-ledger/test/Test/Cardano/Chain/Elaboration/Block.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE OverloadedStrings # | This module provides functionality for translating abstract blocks into concrete blocks. The abstract blocks are generated according the small-step rules for the blockchain (also called the blockchain specification). | Elaborate an abstract block int...
# LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DerivingVia # # LANGUAGE FlexibleContexts # # LANGUAGE OverloadedLists # # LANGUAGE TypeApplications # module Test.Cardano.Chain.Elaboration.Block ( abEnvToCfg , elaborate , elaborateBS , rcDCert , AbstractToConcret...
045bb0514a8166cb77455d0e179e0788c3086bc9a012fb784d91642cd6d0a913
imnisen/web3.lisp
web3.lisp
(in-package :web3) ;;; ------------------------------------ Utils ;;; ------------------------------------ (defun response-error (response) (cdr (assoc :error response))) ;; Help set fileds to hash table ;; generate code like below, according to required fields or optional fileds ;; (LET (#:G767 (MAKE-HASH-TABLE ...
null
https://raw.githubusercontent.com/imnisen/web3.lisp/45b0363c2f09bbe0db746a7c56a9ba19feec35b2/src/web3.lisp
lisp
------------------------------------ ------------------------------------ Help set fileds to hash table generate code like below, according to required fields or optional fileds (LET (#:G767 (MAKE-HASH-TABLE :TEST 'EQUAL)) #:G767) The reason to use hash table to collect values (for cl-json encode to string) i...
(in-package :web3) Utils (defun response-error (response) (cdr (assoc :error response))) ( SETF ( GETHASH " from " # : G767 ) FROM ) ( SETF ( GETHASH " to " # : G767 ) TO ) ( SETF ( GETHASH " data " # : G767 ) DATA ) ( WHEN GAS ( SETF ( GETHASH " gas " # : G767 ) GAS ) ) ( WHEN GAS - PRICE ( S...
3d640e1341ab031937ec9f14ef6e75965d1d2ab5cccb05e2313028e0a09db032
rill-event-sourcing/wheel
wrap_stream_properties.clj
(ns rill.wheel.wrap-stream-properties (:require [rill.event-store :refer [EventStore retrieve-events-since append-events]] [rill.event-stream :refer [all-events-stream-id]])) (defn valid-props? [p] (and (map? p) (sorted? p))) (defrecord StreamPropertiesWrapper [delegated-event-store] Event...
null
https://raw.githubusercontent.com/rill-event-sourcing/wheel/36bf725fbee3b29a1989e95e4eb10bb599a2d4a0/src/rill/wheel/wrap_stream_properties.clj
clojure
must fetch props for each event separately set these props on every event
(ns rill.wheel.wrap-stream-properties (:require [rill.event-store :refer [EventStore retrieve-events-since append-events]] [rill.event-stream :refer [all-events-stream-id]])) (defn valid-props? [p] (and (map? p) (sorted? p))) (defrecord StreamPropertiesWrapper [delegated-event-store] Event...
452e8e81ba19932c6517835e332caef2d26110ba768fcec606949e709e4cd802
janestreet/async_kernel
pipe.ml
open Core open Import open Deferred_std module Stream = Async_stream let show_debug_messages = ref false let check_invariant = ref false module Flushed_result = struct type t = [ `Ok | `Reader_closed ] [@@deriving compare, sexp_of] let equal = [%compare.equal: t] let combine (l : t Deferred.t li...
null
https://raw.githubusercontent.com/janestreet/async_kernel/765ab511573166377eb3ed76ff069d6a4bdfb399/src/pipe.ml
ocaml
[values_read] reflects whether values the consumer has read from the pipe have been sent downstream or if not, holds an ivar that is to be filled when they are. [downstream_flushed ()] returns when all prior values that the consumer has passed downstream have been flushed all the way down the chain...
open Core open Import open Deferred_std module Stream = Async_stream let show_debug_messages = ref false let check_invariant = ref false module Flushed_result = struct type t = [ `Ok | `Reader_closed ] [@@deriving compare, sexp_of] let equal = [%compare.equal: t] let combine (l : t Deferred.t li...
6fa8896d27354f83d3b66dd1d7e19f8b89a8bc0469a58b449f8cbe57a6a9b1ac
haskell-distributed/rank1dynamic
Rank1Dynamic.hs
-- | Dynamic values with support for rank-1 polymorphic types. -- -- [Examples of fromDynamic] -- These examples correspond to the ' Data . ' examples in " Data . Rank1Typeable " . -- > > do f < - fromDynamic ( toDynamic ( even : : Int - > Bool ) ) ; return $ ( f : : Int - > Int ) 0 > Left " Can not unify Int ...
null
https://raw.githubusercontent.com/haskell-distributed/rank1dynamic/d6740b29629a2f3d63caec31f64b2dc59af927c4/src/Data/Rank1Dynamic.hs
haskell
| Dynamic values with support for rank-1 polymorphic types. [Examples of fromDynamic] > > > Right 0 > > > do f <- fromDynamic (toDynamic (id :: ANY -> ANY)) ; return $ (f :: Int -> Bool) 0 > > Right *** Exception: Prelude.undefined > > > do f <- fromDynamic (toDynamic (id :: ANY -> ANY)) ; return $ (f :: ...
These examples correspond to the ' Data . ' examples in " Data . Rank1Typeable " . > > do f < - fromDynamic ( toDynamic ( even : : Int - > Bool ) ) ; return $ ( f : : Int - > Int ) 0 > Left " Can not unify Int and " > > do f < - fromDynamic ( toDynamic ( const 1 : : ANY - > Int ) ) ; return $ ( f : : Int - ...
39631b214ec5f65bd9ec406cc18b54c0dc484d81293e3b04991078336013f1f7
exercism/erlang
change_tests.erl
Generated with ' v0.2.0 ' %% Revision 1 of the exercises generator was used %% -specifications/raw/448e975bd8bc59491c9c119dba92d26b28674c5e/exercises/change/canonical-data.json %% This file is automatically generated from the exercises canonical data. -module(change_tests). -include_lib("erl_exercism/include/exerc...
null
https://raw.githubusercontent.com/exercism/erlang/57ac2707dae643682950715e74eb271f732e2100/exercises/practice/change/test/change_tests.erl
erlang
Revision 1 of the exercises generator was used -specifications/raw/448e975bd8bc59491c9c119dba92d26b28674c5e/exercises/change/canonical-data.json This file is automatically generated from the exercises canonical data.
Generated with ' v0.2.0 ' -module(change_tests). -include_lib("erl_exercism/include/exercism.hrl"). -include_lib("eunit/include/eunit.hrl"). '1_change_for_1_cent_test_'() -> Target = 1, Coins = [1, 5, 10, 25], Expected = [1], {"change for 1 cent", ?_assertEqual(Expected, change:find_f...
2d391c652370378c00f97156f899866f0c8d6a5b558336c7032da319365b0db1
fgalassi/cs61a-sp11
4.10.scm
(load "mceval") ;(if expr then stuff else stuff) (define (if-consequent exp) (cadddr exp)) (define (if-alternative exp) (if (eq? 'else (list-ref exp 4)) (list-ref exp 5) 'false)) (define (make-if predicate consequent alternative) (list 'if predicate 'then consequent 'else alternative))
null
https://raw.githubusercontent.com/fgalassi/cs61a-sp11/66df3b54b03ee27f368c716ae314fd7ed85c4dba/homework/4.10.scm
scheme
(if expr then stuff else stuff)
(load "mceval") (define (if-consequent exp) (cadddr exp)) (define (if-alternative exp) (if (eq? 'else (list-ref exp 4)) (list-ref exp 5) 'false)) (define (make-if predicate consequent alternative) (list 'if predicate 'then consequent 'else alternative))
68bdf988a4cadc587dcf68b3284c0c8c2b6d52affdfe6d93e18a7bcf009bf9f7
jtod/Hydra
Mux1wRun.hs
Mux1wRun : simulation driver for mux1w circuit This file is part of Hydra . See README and Copyright ( c ) 2022 module Main where import HDL.Hydra.Core.Lib defines mux1w circuit The mux1w circuit is defined in HDL.Hydra . Circuits . Combinational . -- Here is the circuit definition (commented out to avo...
null
https://raw.githubusercontent.com/jtod/Hydra/cf67a88050720acfff6a51b16d5f9efbd154dc1e/examples/mux/Mux1wRun.hs
haskell
Here is the circuit definition (commented out to avoid redefining it in this file): mux1w :: Bit a => a -> [a] -> [a] -> [a] Input data supplied, so it will run in Batch mode Inputs Circuit Outputs Run
Mux1wRun : simulation driver for mux1w circuit This file is part of Hydra . See README and Copyright ( c ) 2022 module Main where import HDL.Hydra.Core.Lib defines mux1w circuit The mux1w circuit is defined in HDL.Hydra . Circuits . Combinational . mux1w c x y = map2 ( mux1 c ) x y main :: IO () mai...
d583a22bea9e404365a94f2b03455935d1481c0a91b64d575bca7e1b130343a0
Liqwid-Labs/agora
GovernorMutation.hs
module Spec.Effect.GovernorMutation (specs) where import Agora.Governor (GovernorDatum (..), GovernorRedeemer (MutateGovernor)) import Agora.Proposal (ProposalId (..)) import Data.Default.Class (Default (def)) import PlutusLedgerApi.V2 (ScriptContext (ScriptContext), ScriptPurpose (Spending)) import Sample.Effect.Gove...
null
https://raw.githubusercontent.com/Liqwid-Labs/agora/49ac5e2419fefbe1a99970e8d5c3b36d87f3279e/agora-specs/Spec/Effect/GovernorMutation.hs
haskell
module Spec.Effect.GovernorMutation (specs) where import Agora.Governor (GovernorDatum (..), GovernorRedeemer (MutateGovernor)) import Agora.Proposal (ProposalId (..)) import Data.Default.Class (Default (def)) import PlutusLedgerApi.V2 (ScriptContext (ScriptContext), ScriptPurpose (Spending)) import Sample.Effect.Gove...
8162f7bf42020751ab30a4e20c835801dabc6a824462697bde296925bc834425
system-f/fp-course
TraversableTest.hs
# OPTIONS_GHC -fno - warn - type - defaults # # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} module Test.TraversableTest ( -- * Tests test_Traversable , listTest , exactlyOneTest , optionalTest , sequenceATest , composeTest , productFunctorTest , productTraversableTest , coProd...
null
https://raw.githubusercontent.com/system-f/fp-course/e929bc909a1701f67d218ed7974e9732d1e8dd32/src/Test/TraversableTest.hs
haskell
# LANGUAGE OverloadedStrings # * Tests * Runner
# OPTIONS_GHC -fno - warn - type - defaults # # LANGUAGE NoImplicitPrelude # module Test.TraversableTest ( test_Traversable , listTest , exactlyOneTest , optionalTest , sequenceATest , composeTest , productFunctorTest , productTraversableTest , coProductFunctorTest , coProductTraversableTest ,...
e1c54e919747696849499586444b3e43f617943f460edbff49d58a3dd193117d
yzhs/ocamlllvm
asmpackager.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/yzhs/ocamlllvm/45cbf449d81f2ef9d234968e49a4305aaa39ace2/src/asmcomp/asmpackager.mli
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 2002 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ Id$ " Package " a set of .cmx/.o...
5829a65d20342e1c327eb40396530dc6d8aee1958f5b7c86e6964212f80111ac
yesodweb/persistent
GeneratedColumnTestSQL.hs
# LANGUAGE RecordWildCards # # LANGUAGE UndecidableInstances # {-# OPTIONS_GHC -Wno-unused-top-binds #-} module GeneratedColumnTestSQL (specsWith) where import Database.Persist.TH import Init share [mkPersist sqlSettings, mkMigrate "migrate1"] [persistLowerCase| GenTest sql=gen_test fieldOne Text Maybe fieldTwo T...
null
https://raw.githubusercontent.com/yesodweb/persistent/eaf9d561a66a7b7a8fcbdf6bd0e9800fa525cc13/persistent-test/src/GeneratedColumnTestSQL.hs
haskell
# OPTIONS_GHC -Wno-unused-top-binds #
# LANGUAGE RecordWildCards # # LANGUAGE UndecidableInstances # module GeneratedColumnTestSQL (specsWith) where import Database.Persist.TH import Init share [mkPersist sqlSettings, mkMigrate "migrate1"] [persistLowerCase| GenTest sql=gen_test fieldOne Text Maybe fieldTwo Text Maybe fieldThree Text Maybe generate...
a2d4853e357b5c53953447a7f1e60b9b84c33be85823456bbed18922217e2960
uswitch/adworj
credentials.clj
(ns adworj.credentials (:import [com.google.api.ads.common.lib.auth OfflineCredentials$Builder OfflineCredentials$Api] [com.google.api.ads.common.lib.auth GoogleClientSecretsBuilder GoogleClientSecretsBuilder$Api] [com.google.api.client.googleapis.auth.oauth2 GoogleCredential$Builder] ...
null
https://raw.githubusercontent.com/uswitch/adworj/0b612ab032db116cdbf2f58e00cc505d32d00100/src/adworj/credentials.clj
clojure
(ns adworj.credentials (:import [com.google.api.ads.common.lib.auth OfflineCredentials$Builder OfflineCredentials$Api] [com.google.api.ads.common.lib.auth GoogleClientSecretsBuilder GoogleClientSecretsBuilder$Api] [com.google.api.client.googleapis.auth.oauth2 GoogleCredential$Builder] ...
74d25984f0e9c75a05b517e4dc593068393a546c7c02c3a2b3799bacd7f163bf
swarmpit/swarmpit
api_access.cljs
(ns swarmpit.component.api-access (:require [material.components :as comp] [swarmpit.component.message :as message] [swarmpit.component.state :as state] [swarmpit.component.mixin :as mixin] [swarmpit.ajax :as ajax] [swarmpit.routes :as routes] [s...
null
https://raw.githubusercontent.com/swarmpit/swarmpit/38ffbe08e717d8620bf433c99f2e85a9e5984c32/src/cljs/swarmpit/component/api_access.cljs
clojure
(ns swarmpit.component.api-access (:require [material.components :as comp] [swarmpit.component.message :as message] [swarmpit.component.state :as state] [swarmpit.component.mixin :as mixin] [swarmpit.ajax :as ajax] [swarmpit.routes :as routes] [s...
c76ff3e7131bbcc1467df434699b73bab34c4cb6499edb2d85b73a6ad3493ddc
mzp/bs-lwt
lwt_unix.cppo.mli
Lightweight thread library for OCaml * * Interface Lwt_unix * Copyright ( C ) 2005 - 2008 * Laboratoire PPS - CNRS Université Paris Diderot * 2009 * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General P...
null
https://raw.githubusercontent.com/mzp/bs-lwt/f37a3c47d038f4efcd65912c41fab95d1e6633ce/lwt/src/unix/lwt_unix.cppo.mli
ocaml
* Cooperative system calls * {2 Configuration} * System calls are made synchronously, and may block the entire program. * System calls are made in another system thread, thus without blocking other Lwt threads. The drawback is that it may degrade performance in some cases. Th...
Lightweight thread library for OCaml * * Interface Lwt_unix * Copyright ( C ) 2005 - 2008 * Laboratoire PPS - CNRS Université Paris Diderot * 2009 * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General P...
8e31d422ff932ca198b576c12f1cf183f63d7d8de45c9d3ab02d5ed9c524f14a
nallen05/djula
filter-definitions.lisp
(in-package :djula) capfirst (def-filter-documentation :capfirst '(thing) "Capitalizes the first character of the value" :from-django-p t) (def-filter :capfirst (it) (string-capitalize (princ-to-string it))) ; cup (def-filter-documentation :cut '(thing) "Removes all values of arg from the given string. F...
null
https://raw.githubusercontent.com/nallen05/djula/331e2d5b0c9967b636e4df22e847ac98f16f6ba9/src/filter-definitions.lisp
lisp
cup default force_escape length a single newline becomes an linebreaksbr lisp lower safe truncatechars upper urlencode
(in-package :djula) capfirst (def-filter-documentation :capfirst '(thing) "Capitalizes the first character of the value" :from-django-p t) (def-filter :capfirst (it) (string-capitalize (princ-to-string it))) (def-filter-documentation :cut '(thing) "Removes all values of arg from the given string. For exa...
f77735606c79133564a968d3851560c9b864de2b360e1076b4beb7f8da85653c
ryo-imai-bit/Writing-An-Interpreter-In-Go-In-OCaml
token.ml
module Token = struct include Fmt type token_type = | ILLEGAL | EOF (* identifers and literals *) | IDENT | INT | STRING (* operators *) | ASSIGN | PLUS | MINUS | BANG | ASTERISK | SLASH | LT | GT | EQ | NOT_EQ (* delimeters *) | COMMA | COLLON | SEMICOLON | LPAREN | R...
null
https://raw.githubusercontent.com/ryo-imai-bit/Writing-An-Interpreter-In-Go-In-OCaml/20e8f3cee37f810aef82255a351fbb1411a0b3bd/lib/token.ml
ocaml
identifers and literals operators delimeters keywords todo MACRO identifers and literals operators delimeters keywords
module Token = struct include Fmt type token_type = | ILLEGAL | EOF | IDENT | INT | STRING | ASSIGN | PLUS | MINUS | BANG | ASTERISK | SLASH | LT | GT | EQ | NOT_EQ | COMMA | COLLON | SEMICOLON | LPAREN | RPAREN | LBRACE | RBRACE | LBRACKET | RBRACKET | FUNCTION ...
71db588b541a5cc5d5451993827ae46b5b44ae0d04f7b0d85621f388b66c448e
ssor/erlangDemos
izeg.erl
%% @doc Module to generate temperature and humidity event %% %% Events generated listed as followed: %% %% Events for humidity %% %% {interval_humidity_notify, Address, {Address, NodeID, Huminity}} %% %% {humidity_lower, Address, {Address, NodeID, Humidity}} %% %% {humidity_higher, Address, {Address, NodeID, Humid...
null
https://raw.githubusercontent.com/ssor/erlangDemos/632cd905be2c4f275f1c1ae15238e711d7bb9147/intellegent_zigbee_event_generator/src/izeg.erl
erlang
@doc Module to generate temperature and humidity event Events generated listed as followed: Events for humidity {interval_humidity_notify, Address, {Address, NodeID, Huminity}} {humidity_lower, Address, {Address, NodeID, Humidity}} {humidity_higher, Address, {Address, NodeID, Humidity}} {humidity_too...
-module(izeg). -export([add_node/1, delete_node/1, add_handler/2 , delete_handler/2, list_current_nodes/0 , event_call/2, event_notify/2 , refresh_port_filter_list/0 , get_port_filter_list/0]). -export([get_huminity_min/1, get_huminity_max/1, get_temperature_max/1, get_temperature_min/1]). -export([...
208d835e76ef1a16b28d0d91cf4cdee45a737dea9dd90480d62e7cb59c8724a1
mjambon/mikmatch
pcre_lib.ml
pp camlp4orf open Printf open Camlp4.PreCast open Mm_util open Regexp_ast let _ = Constants.mod_runtime := "Run_mikmatch_pcre"; Constants.mod_runtime_mt := "Run_mikmatch_pcre" output for PCRE : Perl Compatible Regular Expressions let special_regexps = let _loc = Constants.dummy_loc in [ "any", (* an...
null
https://raw.githubusercontent.com/mjambon/mikmatch/4ee0d1158370be247763027018bbf54b865014dd/pcre/pcre_lib.ml
ocaml
any character except newline beginning of line end of line beginning of string end of string shortcut
pp camlp4orf open Printf open Camlp4.PreCast open Mm_util open Regexp_ast let _ = Constants.mod_runtime := "Run_mikmatch_pcre"; Constants.mod_runtime_mt := "Run_mikmatch_pcre" output for PCRE : Perl Compatible Regular Expressions let special_regexps = let _loc = Constants.dummy_loc in Special (_loc,...
bb9eb06c5c7e60198f64071f7cfc28c175858de3cbc2c28e6b7b31fbd63d364a
coleslaw-org/coleslaw
documents.lisp
(in-package :coleslaw) The Document Protocol ;; Data Storage (defvar *site* (make-hash-table :test #'equal) "An in-memory database to hold all site documents, keyed on relative URLs.") ;; Class Methods (defgeneric publish (doc-type) (:documentation "Write pages to disk for all documents of the given DOC-TYPE...
null
https://raw.githubusercontent.com/coleslaw-org/coleslaw/e7e68ce6020d13b14bf212890a7d8973d7af3b40/src/documents.lisp
lisp
Data Storage Class Methods Instance Methods Helper Functions
(in-package :coleslaw) The Document Protocol (defvar *site* (make-hash-table :test #'equal) "An in-memory database to hold all site documents, keyed on relative URLs.") (defgeneric publish (doc-type) (:documentation "Write pages to disk for all documents of the given DOC-TYPE.")) (defgeneric discover (doc-t...
4aa9461e6aba261439af7e9de1835cc0b1f6373a36d8fe7d50f3284852b4a702
binsec/haunted
trace_config.mli
(**************************************************************************) This file is part of BINSEC . (* *) Copyright ( C ) 2016 - 2019 CEA ( Co...
null
https://raw.githubusercontent.com/binsec/haunted/7ffc5f4072950fe138f53fe953ace98fff181c73/src/dynamic/base/trace_config.mli
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...
ff3d33364bf0575b3d9d1ab143f54788d66a46525c26447f0d5ca288671c4176
ericclack/overtone-loops
pattern_04_13b.clj
(ns overtone-loops.dph-book.pattern-04-13b (:use [overtone.live] [overtone-loops.loops] [overtone-loops.samples])) We want to use amps between 0 and 9 in our lists (amp-scale 1/9) BAR1 BAR2 BAR3 BAR4 ...
null
https://raw.githubusercontent.com/ericclack/overtone-loops/54b0c230c1e6bd3d378583af982db4e9ae4bda69/src/overtone_loops/dph_book/pattern_04_13b.clj
clojure
1 e & a 2 e & a 3 e & a 4 e & a 1 e & a 2 e & a 3 e & a 4 e & a --------------------------------------------- (stop)
(ns overtone-loops.dph-book.pattern-04-13b (:use [overtone.live] [overtone-loops.loops] [overtone-loops.samples])) We want to use amps between 0 and 9 in our lists (amp-scale 1/9) BAR1 BAR2 BAR3 BAR4 ...
645912651856bd093e65b1caeb783c7cb8c2668bb3c135713e3497b9fa0bb15c
ostinelli/pgpool
pgpool_worker.erl
%% ========================================================================================================== PGPool - A PosgreSQL client that automatically uses connection pools and reconnects in case of errors . %% The MIT License ( MIT ) %% Copyright ( c ) 2016 - 2019 < > and Neato Robotics , Inc. %% %% Per...
null
https://raw.githubusercontent.com/ostinelli/pgpool/f733a321033ba85da12d4c27e408e6b7fb7b30cc/src/pgpool_worker.erl
erlang
========================================================================================================== Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, s...
PGPool - A PosgreSQL client that automatically uses connection pools and reconnects in case of errors . The MIT License ( MIT ) Copyright ( c ) 2016 - 2019 < > and Neato Robotics , Inc. in the Software without restriction , including without limitation the rights copies of the Software , and to permit pers...
2a99243b5c065801061ea5e9e3259c27bc05c964ce529f353eb37ef21045bf55
KDr2/kittle-buffer
kbf.rkt
#lang racket (require kittle-buffer/interpreter) (require kittle-buffer/ui) ;; entrance (define (main) (let* ([args (current-command-line-arguments)]) (if (= 0 (vector-length args)) (wmain) (let ([in (if (string=? (vector-ref args 0) "-") (current-input-port) ...
null
https://raw.githubusercontent.com/KDr2/kittle-buffer/92aa48f4aacb401a0010386b671b2496bbe94a85/kbf.rkt
racket
entrance
#lang racket (require kittle-buffer/interpreter) (require kittle-buffer/ui) (define (main) (let* ([args (current-command-line-arguments)]) (if (= 0 (vector-length args)) (wmain) (let ([in (if (string=? (vector-ref args 0) "-") (current-input-port) (ope...
f7c122783d488ef5bf5af060693bae58ef29bb03a03c004d014d4d991f4c7928
Emgariko/hi
Pretty_20220102184310.hs
module HW3.Pretty ( prettyValue ) where import HW3.Base (HiValue) import Prettyprinter prettyValue :: HiValue -> Doc AnsiStyle prettyValue = undefined
null
https://raw.githubusercontent.com/Emgariko/hi/09c7c43b98098317bc07d8108859c793557672b0/hw3/.history/src/HW3/Pretty_20220102184310.hs
haskell
module HW3.Pretty ( prettyValue ) where import HW3.Base (HiValue) import Prettyprinter prettyValue :: HiValue -> Doc AnsiStyle prettyValue = undefined
6600661869d1378150fd35e141d61a1b2e1eb23cd9924dee67bc0a084af0e250
returntocorp/semgrep
Dataflow_tainting.mli
type var = Dataflow_var_env.var (** A string of the form "<source name>:<sid>". *) type overlap = float * Overlap ratio , only applies to AST nodes that fall in the range of a * source / sanitizer / sink annotation . It is a number in [ 0.0 , 1.0 ] , where * 1.0 means that the AST node matches the annotation per...
null
https://raw.githubusercontent.com/returntocorp/semgrep/330627a824c2badbc46c45792b02f49cd818fbc7/src/tainting/Dataflow_tainting.mli
ocaml
* A string of the form "<source name>:<sid>". * The specification on which the match is based, e.g. a taint source. * This spec should have a pattern formula. * A pattern match obtained directly from the spec's pattern formula. REMOVE USE prop.id * Test whether 'any' is a taint source, this corresponds to ...
type var = Dataflow_var_env.var type overlap = float * Overlap ratio , only applies to AST nodes that fall in the range of a * source / sanitizer / sink annotation . It is a number in [ 0.0 , 1.0 ] , where * 1.0 means that the AST node matches the annotation perfectly . For * practical purposes we can interpr...
51af40e73bb45de510603c9c9bf5cc1722c1e2c2b63ed8152dd5c68dd1d03982
pallet/learn-pallet
pallet_aws.clj
(defsection pallet-aws :dependencies [[com.palletops/pallet-aws "0.1.0"] [org.slf4j/jcl-over-slf4j "1.7.4"]]) (ns pallet-aws (:require [pallet.api :as api] [pallet.compute :as compute])) (def id "<your aws identity>") (def cred "<your aws credendial>") ;(def service (compute/instanti...
null
https://raw.githubusercontent.com/pallet/learn-pallet/7cbd3b353e523dd079151a6c3d680f528efbc6e2/src/pallet_aws.clj
clojure
(def service (compute/instantiate-provider)) create the basic compute service To list the current nodes in the account AWS offers by default all of the available of images via it's API with AWS quite slow in some instances. In most of the cases it make sense to tell jclouds to only consider certain kind of image...
(defsection pallet-aws :dependencies [[com.palletops/pallet-aws "0.1.0"] [org.slf4j/jcl-over-slf4j "1.7.4"]]) (ns pallet-aws (:require [pallet.api :as api] [pallet.compute :as compute])) (def id "<your aws identity>") (def cred "<your aws credendial>") (def my-compute (compute/inst...
dce5c7ee50914bba3dcadc84051e5f859d61f5f5896b10f6021625895cce3788
kwanghoon/polyrpc
Main.hs
# LANGUAGE DeriveGeneric # module Main where import CommonParserUtil import TokenInterface import Token import Lexer import Terminal import Parser import qualified ParserBidi as PB import qualified ParserBidiLinks as PBLinks import Type import Expr import BasicLib import qualified CSType as TT import qualified CSExp...
null
https://raw.githubusercontent.com/kwanghoon/polyrpc/b0ce3aea301ff34f9ffc584f95849957f7a300bc/app/Main.hs
haskell
For aeson Syntax completion [ ((build cmd file), file) | file <- files ] verbose (_flag_debug_lex cmd) $ mapM_ (putStrLn) (map terminalToString terminalList) putStrLn "[Parsing]" exprSeqAst <- parsing parserSpec terminalList exprSeqAst <- parsing PB.parserSpec terminalList putStrLn $ show putStrLn $ show $ ...
# LANGUAGE DeriveGeneric # module Main where import CommonParserUtil import TokenInterface import Token import Lexer import Terminal import Parser import qualified ParserBidi as PB import qualified ParserBidiLinks as PBLinks import Type import Expr import BasicLib import qualified CSType as TT import qualified CSExp...
dbd4b0d6f077a37b082ae5e9a9899ca721db2e3dfa552135761eef0ad38c6827
finnishtransportagency/harja
urakan_lupausmuistutukset_test.clj
(ns harja.palvelin.ajastetut-tehtavat.urakan-lupausmuistutukset-test "Pyrkii testaamaan lupausmuistutustehtävän toimintaa. Ei testata: ajastus, FIM ja varsinainen sähköpostin lähetys." (:require [clojure.test :refer :all] [com.stuartsierra.component :as component] [harja.testi :refer :all]...
null
https://raw.githubusercontent.com/finnishtransportagency/harja/9e9e2e75ce8384d2f2705407d6fc2cc68948c1cb/test/clj/harja/palvelin/ajastetut_tehtavat/urakan_lupausmuistutukset_test.clj
clojure
(ns harja.palvelin.ajastetut-tehtavat.urakan-lupausmuistutukset-test "Pyrkii testaamaan lupausmuistutustehtävän toimintaa. Ei testata: ajastus, FIM ja varsinainen sähköpostin lähetys." (:require [clojure.test :refer :all] [com.stuartsierra.component :as component] [harja.testi :refer :all]...
62f0f0663d8672602f277c5459699e459dc94f2782264bf18d2b3b6e9380d6a6
kopera/erlang-influxdb
influxdb_uri.erl
-module(influxdb_uri). -export([ encode/1 ]). -export([ encode_query/1, encode_component/1, encode_component_plus/1, encode_component/2, is_char_reserved/1, is_char_unreserved/1 ]). -export_type([ uri/0, query/0 ]). %% == Encoding URI == -spec encode(uri()) -> binary(). -type uri...
null
https://raw.githubusercontent.com/kopera/erlang-influxdb/40aba37fb6c0008bebfb12ce86413947f7eaa285/src/influxdb_uri.erl
erlang
== Encoding URI == @doc Encode a URI. == Encoding data == @doc Encode a map or a list of key value pairs into `key1=value1&key2=value2&key3&key4=value4...' where the keys and values are encoded using {@link encode_component_plus/1}. @doc Encode a string percent-escaping all but the "unreserved" characters. @doc ...
-module(influxdb_uri). -export([ encode/1 ]). -export([ encode_query/1, encode_component/1, encode_component_plus/1, encode_component/2, is_char_reserved/1, is_char_unreserved/1 ]). -export_type([ uri/0, query/0 ]). -spec encode(uri()) -> binary(). -type uri() :: #{ scheme :=...
9799bb10f366166deb299a549b1ced176ea2c1efef527e18e79f0ffbef271cfb
s-expressionists/Cleavir
staple.ext.lisp
(in-package #:cleavir-documentation-generation) (defmethod staple:packages ((sys (eql (asdf:find-system :cleavir-ctype)))) (list (find-package "CLEAVIR-CTYPE"))) (defmethod staple:page-type ((sys (eql (asdf:find-system :cleavir-ctype)))) 'cleavir-page)
null
https://raw.githubusercontent.com/s-expressionists/Cleavir/b211c882e075867b0e18f5ccfc8d38a021df7eb8/Ctype/staple.ext.lisp
lisp
(in-package #:cleavir-documentation-generation) (defmethod staple:packages ((sys (eql (asdf:find-system :cleavir-ctype)))) (list (find-package "CLEAVIR-CTYPE"))) (defmethod staple:page-type ((sys (eql (asdf:find-system :cleavir-ctype)))) 'cleavir-page)
7b68f1bd925ae666c6edd890e768e51092330f1b6e8ac2214325dfc9176c5db0
carl-eastlund/dracula
test-define.rkt
#lang scheme (require scheme/sandbox "checks.ss" "../define.ss") (provide define-suite) (define define-suite (test-suite "define.ss" (test-suite "block" (test (block (define (f x y) (both x y)) (define-match-expander both (syntax-rules () [(_ a b) (stru...
null
https://raw.githubusercontent.com/carl-eastlund/dracula/a937f4b40463779246e3544e4021c53744a33847/private/scheme/test/test-define.rkt
racket
#lang scheme (require scheme/sandbox "checks.ss" "../define.ss") (provide define-suite) (define define-suite (test-suite "define.ss" (test-suite "block" (test (block (define (f x y) (both x y)) (define-match-expander both (syntax-rules () [(_ a b) (stru...
b0ec1ffaea7947da210ad6d35893156f30653dd357c181e11c635731f1b5209a
mcgizzle/haxchange
Api.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # module Haxchange.Kraken.Api where import Haxchange.Types (APIKeys (..), Balance (..), Error (..), Markets (..), Opts (..), Order (..),...
null
https://raw.githubusercontent.com/mcgizzle/haxchange/620a4c93ae28abdd637b7c1fd8b018628b3bd0e9/src/Haxchange/Kraken/Api.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE RecordWildCards # module Haxchange.Kraken.Api where import Haxchange.Types (APIKeys (..), Balance (..), Error (..), Markets (..), Opts (..), Order (..), OrderId, ServerTime, ...
54ce6c209ad99006306411fb43c89df20237997e0cb84022af8e187fc09fcef1
GaloisInc/HaNS
Setup.hs
module Main (main) where import Distribution.Simple main :: IO () main = defaultMain
null
https://raw.githubusercontent.com/GaloisInc/HaNS/2af19397dbb4f828192f896b223ed2b77dd9a055/Setup.hs
haskell
module Main (main) where import Distribution.Simple main :: IO () main = defaultMain
0385b86f88ffe8649b23e231e95329b98783c3e48f6cfaff6ea5f5bd481ff2e7
spawnfest/eep49ers
lib1.erl
-module(lib1). -export([f/0]). f() -> true.
null
https://raw.githubusercontent.com/spawnfest/eep49ers/d1020fd625a0bbda8ab01caf0e1738eb1cf74886/lib/tools/test/xref_SUITE_data/lib_test/lib1.erl
erlang
-module(lib1). -export([f/0]). f() -> true.
b711504a1a12797ffd73d7c6720bc4ac95620355a330ed1af5b1401d039b67a7
tjammer/raylib-ocaml
rlgl_generated_types.ml
include Rlgl_types.Types (Rlgl_c_generated_types)
null
https://raw.githubusercontent.com/tjammer/raylib-ocaml/c705cab2c85605d3c62e3937b8b17df9a4486501/src/c/types/rlgl_generated_types.ml
ocaml
include Rlgl_types.Types (Rlgl_c_generated_types)
0be508742c1fe88643800201ea7f44c8ba9b37237c67bed5a86419572866cfeb
justinmeiners/exercises
2_36.scm
(define (accumulate op initial sequence) (if (null? sequence) initial (op (car sequence) (accumulate op initial (cdr sequence))) )) (define (accumulate-n op initial seqs) (if (null? (car seqs)) '() (cons (accumulate op initial (map car seqs)) (accumulate...
null
https://raw.githubusercontent.com/justinmeiners/exercises/9491bc16925eae12e048ccd3f424b870ebdc73aa/sicp/2/2_36.scm
scheme
(define (accumulate op initial sequence) (if (null? sequence) initial (op (car sequence) (accumulate op initial (cdr sequence))) )) (define (accumulate-n op initial seqs) (if (null? (car seqs)) '() (cons (accumulate op initial (map car seqs)) (accumulate...
a3deb84f380ebe740bc82dcd78ac552181d3a7bbd885020f5e09b7570dda16ed
emqx/esockd
recv_eprof.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2019 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 L...
null
https://raw.githubusercontent.com/emqx/esockd/9b959fc11a1c398a589892f335235be6c5b4a454/examples/active_n/recv_eprof.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 ...
Copyright ( c ) 2019 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(recv_eprof). -export([start/3]). -define(TCP_OPTS, [ binary, {packet, raw}, {node...
503d75172fb5c1e62b11f9357b748c5d32a4159837879482024882761953abed
mirage/ptt
spartacus.mli
* { 1 : A filter as a SMTP server . } This module implements a server which { b annotes } incoming emails with a field to recognizes them as a spam or not . It re - sends emails with this field then . This module implements a server which {b annotes} incoming emails with a field to recognize...
null
https://raw.githubusercontent.com/mirage/ptt/b5a704ac615c1c06231f377d18f0a9b5cfa9005f/lib/spartacus.mli
ocaml
* { 1 : A filter as a SMTP server . } This module implements a server which { b annotes } incoming emails with a field to recognizes them as a spam or not . It re - sends emails with this field then . This module implements a server which {b annotes} incoming emails with a field to recognize...
ed719d9cf932bb21fe157563a6d02dd23c43114aab5729bc30c0f20d980c86cc
yogthos/krueger
feeds.cljs
(ns krueger.feeds (:require [taoensso.sente :as sente])) (def connection (sente/make-channel-socket! "/ws" {:type :auto})) (defn state-handler [{:keys [?data]}] (println "state changed: " ?data)) (defn handshake-handler [{:keys [?data]}] (println "connection established: " ?data)) (defn default-event-hand...
null
https://raw.githubusercontent.com/yogthos/krueger/782e1f8ab358867102b907c5a80e56ee6bc6ff82/src/cljs/krueger/feeds.cljs
clojure
(ns krueger.feeds (:require [taoensso.sente :as sente])) (def connection (sente/make-channel-socket! "/ws" {:type :auto})) (defn state-handler [{:keys [?data]}] (println "state changed: " ?data)) (defn handshake-handler [{:keys [?data]}] (println "connection established: " ?data)) (defn default-event-hand...
99871f677a4af56be63f3752273d52d778bb29ae1193946eca2c2bc64b069954
phoe/cl-lzma
package.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; CL - LZMA " phoe " Herda 2017 package.lisp (uiop:define-package #:cl-lzma/autowrap (:use) (:export #:cl-lzma/autowrap #:make-i-sz-alloc #:lzma-enc-props-init #:c-lzma-enc-props.dict-size ...
null
https://raw.githubusercontent.com/phoe/cl-lzma/593c2004de933b7f665cdcfbfd1e9f769320ef6b/package.lisp
lisp
CL - LZMA " phoe " Herda 2017 package.lisp (uiop:define-package #:cl-lzma/autowrap (:use) (:export #:cl-lzma/autowrap #:make-i-sz-alloc #:lzma-enc-props-init #:c-lzma-enc-props.dict-size #:c-lzma-enc-props.fb #:lzma-encode #:lzma-decode ...
11c3f8b5e637ea8958900ab31c9d6b4fda9654f1d52f5587e86e7388ac893ecb
janestreet/opamcheck
version.mli
version.mli -- manipulate and compare OPAM package version numbers Copyright 2017 author : Copyright 2017 Inria author: Damien Doligez *) val split_name_version : string -> string * string option (** Take a package-with-version string and split it into package name and version. *) val compa...
null
https://raw.githubusercontent.com/janestreet/opamcheck/6af68a21805ed6f0b5427788a51f9cb6ba4c79c2/src/version.mli
ocaml
* Take a package-with-version string and split it into package name and version.
version.mli -- manipulate and compare OPAM package version numbers Copyright 2017 author : Copyright 2017 Inria author: Damien Doligez *) val split_name_version : string -> string * string option val compare : string -> string -> int * [ lt v1 v2 ] Return : * [ -1 ] iff [ v1 ] is le...
e2368f80f42f9fad9fb13b8b26c7bc3c82568a9109e13651bd570c0d4d5a8e60
NorfairKing/tickler
TestUtils.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # module Tickler.Web.Server.Webdriver.Edit.TestUtils where import Control.Monad import qualified Data.Text as T import Data.Time import Test.Syd.Webdriver import Test.WebDriver import Tickler.API import Tickler.Web.Server.Foundation driveEditTickle :: Ite...
null
https://raw.githubusercontent.com/NorfairKing/tickler/1b0c05dc1d32847596bd3ffe4f93d094e1f6382a/tickler-web-server-webdriver/src/Tickler/Web/Server/Webdriver/Edit/TestUtils.hs
haskell
# LANGUAGE OverloadedStrings # Contents Scheduled day Scheduled time of day Recurrence No recurrence Daily recurrence Number of days Number of months
# LANGUAGE RecordWildCards # module Tickler.Web.Server.Webdriver.Edit.TestUtils where import Control.Monad import qualified Data.Text as T import Data.Time import Test.Syd.Webdriver import Test.WebDriver import Tickler.API import Tickler.Web.Server.Foundation driveEditTickle :: ItemUUID -> Tickle -> WebdriverTestM A...
ef5b13faff217aafa2aedb079a2c426edb3acf3fd57b40bd5d5abc1cf935eab6
qitab/bazelisp
args-test.lisp
Copyright 2015 - 2020 Google LLC ;;; Use of this source code is governed by an MIT - style ;;; license that can be found in the LICENSE file or at ;;; . (in-package :cl-user) (defun main () (format t "~A~%" (bazel.sbcl:command-line-arguments)) NOLINT
null
https://raw.githubusercontent.com/qitab/bazelisp/674f05c38585528d7d18e00b0def98493b646510/test/args-test.lisp
lisp
license that can be found in the LICENSE file or at .
Copyright 2015 - 2020 Google LLC Use of this source code is governed by an MIT - style (in-package :cl-user) (defun main () (format t "~A~%" (bazel.sbcl:command-line-arguments)) NOLINT
81eb4a20eee419fd55e61d8bb8e787cc5b06ce72dab5fb6426617dd80d0fe0de
cartazio/language-c
Constants.hs
{-# LANGUAGE DeriveDataTypeable #-} ----------------------------------------------------------------------------- -- | -- Module : Language.C.Syntax.Constants Copyright : ( c ) 2007 .. 2008 , -- License : BSD-style -- Maintainer : -- Stability : experimental Portability : ghc -- -- This modu...
null
https://raw.githubusercontent.com/cartazio/language-c/d003206a45baec4e2a2a85026d88bd225162d951/src/Language/C/Syntax/Constants.hs
haskell
# LANGUAGE DeriveDataTypeable # --------------------------------------------------------------------------- | Module : Language.C.Syntax.Constants License : BSD-style Maintainer : Stability : experimental This module provides support for representing, checking and exporting c constants, i.e. inte...
Copyright : ( c ) 2007 .. 2008 , Portability : ghc module Language.C.Syntax.Constants ( escapeChar, unescapeChar, unescapeString, Flags(..), noFlags, setFlag, clearFlag, testFlag, cChar, cChar_w, cChars, CChar(..), getCChar, getCCharAsInt, isWideChar, showCharConst, CIntFlag(..), CIntRepr(..), cInt...
657d7a04c9ad7d81ccb97d8dc745da59753e73123907941b99064c9fc0d059fa
mirage/ocaml-cstruct
cstruct_not_a_record.ml
[%%cstruct type t = int ]
null
https://raw.githubusercontent.com/mirage/ocaml-cstruct/9ef1ca60f29c06bdf68c0d756b278c7b7f06bbc9/ppx_test/errors/cstruct_not_a_record.ml
ocaml
[%%cstruct type t = int ]
d81bfff36921878351af8ad162d7b77f198d4290e35e3c893a95aba087e17bb6
brendanhay/terrafomo
Types.hs
-- This module was auto-generated. If it is modified, it will not be overwritten. -- | Module : . ProfitBricks . Types Copyright : ( c ) 2017 - 2018 License : Mozilla Public License , v. 2.0 . Maintainer : < brendan.g.hay+ > -- Stability : auto-generated Portability : non - portable ( ...
null
https://raw.githubusercontent.com/brendanhay/terrafomo/387a0e9341fb9cd5543ef8332dea126f50f1070e/provider/terrafomo-profitbricks/src/Terrafomo/ProfitBricks/Types.hs
haskell
This module was auto-generated. If it is modified, it will not be overwritten. | Stability : auto-generated import Formatting (Format, (%))
Module : . ProfitBricks . Types Copyright : ( c ) 2017 - 2018 License : Mozilla Public License , v. 2.0 . Maintainer : < brendan.g.hay+ > Portability : non - portable ( GHC extensions ) module Terrafomo.ProfitBricks.Types where import Data . Text ( Text ) import Terrafomo impor...
276a229fe90eb86db3ae1978bbb567d7bdcc8c0b20ab77caf3e339d5c0d732ad
codedownio/sandwich
Windows.hs
-- | Functions for manipulating browser windows. # LANGUAGE QuasiQuotes # module Test.Sandwich.WebDriver.Windows ( -- * Window positioning setWindowLeftSide , setWindowRightSide , setWindowFullScreen -- * Querying screen info , getScreenResolution ) where import Control.Exception.Safe import Control.M...
null
https://raw.githubusercontent.com/codedownio/sandwich/2039f791c0b1274d814d02d83c05803de3bb0149/sandwich-webdriver/src/Test/Sandwich/WebDriver/Windows.hs
haskell
| Functions for manipulating browser windows. * Window positioning * Querying screen info | Fullscreen the browser window. | Get the screen resolution as (x, y, width, height). (The x and y coordinates may be nonzero in multi-monitor setups.)
# LANGUAGE QuasiQuotes # module Test.Sandwich.WebDriver.Windows ( setWindowLeftSide , setWindowRightSide , setWindowFullScreen , getScreenResolution ) where import Control.Exception.Safe import Control.Monad.IO.Class import Control.Monad.Logger (MonadLogger) import Control.Monad.Reader import Data.Bits as...
0f29efece5b378bf0deeaf4a103b2120b64a4c2ebf6599caf3fc8dd46bf2b692
RyanGlScott/text-show
Types.hs
# LANGUAGE CPP # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE StandaloneDeriving # # OPTIONS_GHC -fno - warn - orphans # | Module : Instances . System . . Types Copyright : ( C ) 2014 - 2017 License : BSD - style ( see the file LICENSE ) Maintainer : ...
null
https://raw.githubusercontent.com/RyanGlScott/text-show/5ea297d0c7ae2d043f000c791cc12ac53f469944/tests/Instances/System/Posix/Types.hs
haskell
# LANGUAGE CPP # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE StandaloneDeriving # # OPTIONS_GHC -fno - warn - orphans # | Module : Instances . System . . Types Copyright : ( C ) 2014 - 2017 License : BSD - style ( see the file LICENSE ) Maintainer : ...
664f9864be6440a81a85bf990d0726bad4a1a4f54a71591af1e78c847ed560b4
hstreamdb/hstream
Checkpoint.hs
# LANGUAGE MagicHash # module HStream.Store.Internal.LogDevice.Checkpoint where import Control.Monad (void) import Data.Int (Int64) import Data.Map.Strict (Map) import qualified Data.Map.Strict as Map import qualified D...
null
https://raw.githubusercontent.com/hstreamdb/hstream/e6bfcc2bc5bb6faa21fb480b509c383c82cd7a10/hstream-store/HStream/Store/Internal/LogDevice/Checkpoint.hs
haskell
----------------------------------------------------------------------------- | Create a file based checkpoint store. Note: it's not safe to have multiple FileBasedVersionedConfigStore objects created from the `root_path' accessing configs with the same TODO: remove | Creates a zookeeper based CheckpointStore. ...
# LANGUAGE MagicHash # module HStream.Store.Internal.LogDevice.Checkpoint where import Control.Monad (void) import Data.Int (Int64) import Data.Map.Strict (Map) import qualified Data.Map.Strict as Map import qualified D...
f0414e77bc54b66646a0a0d16789561b974980ba4c8d0e785b4a55fefe0542e9
hemmi/coq2scala
clenvtac.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/hemmi/coq2scala/d10f441c18146933a99bf2088116bd213ac3648d/coq-8.4pl2-old/proofs/clenvtac.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** This function put casts around meta...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Pp open Util open Names ...
6f07aad19da7b5c1f8d17e61bacb121bc7ac43644702f73109daef7769b7c9cd
spurious/chibi-scheme-mirror
parse-tests.scm
(import (chibi) (chibi test) (chibi char-set) (chibi char-set ascii) (chibi parse) (chibi parse common)) (test-begin "parse") ;; basic (test-assert (parse parse-epsilon "")) (test-assert (parse-fully parse-epsilon "")) (test-error (parse-fully parse-epsilon "a")) (test-not (parse parse-anything "")...
null
https://raw.githubusercontent.com/spurious/chibi-scheme-mirror/49168ab073f64a95c834b5f584a9aaea3469594d/tests/parse-tests.scm
scheme
basic grammars partial match (grammar isn't checking end) this takes exponential time without memoization
(import (chibi) (chibi test) (chibi char-set) (chibi char-set ascii) (chibi parse) (chibi parse common)) (test-begin "parse") (test-assert (parse parse-epsilon "")) (test-assert (parse-fully parse-epsilon "")) (test-error (parse-fully parse-epsilon "a")) (test-not (parse parse-anything "")) (test-a...
685642aa13d30d3d76681fda547771729a422d92365bc6ea997984a5b60444d6
rowangithub/DOrder
066_repeatadd.ml
let add x1 x2 = x1 + x2 let rec repeat (k:int) (x:int) (n:int) (f:int->int) = if k <= 0 then x else f (repeat (k - 1) x n f) let main n k = if n >= 0 && k > 0 then assert (repeat k 0 n (add n) >= n) else ()
null
https://raw.githubusercontent.com/rowangithub/DOrder/e0d5efeb8853d2a51cc4796d7db0f8be3185d7df/tests/mochi2/benchs/066_repeatadd.ml
ocaml
let add x1 x2 = x1 + x2 let rec repeat (k:int) (x:int) (n:int) (f:int->int) = if k <= 0 then x else f (repeat (k - 1) x n f) let main n k = if n >= 0 && k > 0 then assert (repeat k 0 n (add n) >= n) else ()
029b75cbe254f872336e2f5839bb00aaad4c4887463dab63fbf5d77e177ace84
ocamllabs/ocaml-modular-implicits
printtyp.mli
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/typing/printtyp.mli
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . open Format open Types open Outcometre...
a20e883d4e7e26dba828ca4392ba640897bd57419e02883b07693ea6a9b16479
smucclaw/dsl
SLParserSpec.hs
{-# LANGUAGE OverloadedStrings #-} module Parsing.SLParserSpec where import Text.Megaparsec import LS.Lib import LS.Parser import LS.RelationalPredicates import LS.Tokens import AnyAll hiding (asJSON) import LS.BasicTypes import LS.Types import LS.Rule import Test.Hspec import qualified Data.ByteString.Lazy as BS impo...
null
https://raw.githubusercontent.com/smucclaw/dsl/e06c3f4b5ffe74774908116219940d80c92c3fdc/lib/haskell/natural4/test/Parsing/SLParserSpec.hs
haskell
# LANGUAGE OverloadedStrings # pOtherVal aboveNextLineKeyword pOtherVal "Bad" sl style [TODO] how do we run a shouldFailOn? we are expecting this to fail.
module Parsing.SLParserSpec where import Text.Megaparsec import LS.Lib import LS.Parser import LS.RelationalPredicates import LS.Tokens import AnyAll hiding (asJSON) import LS.BasicTypes import LS.Types import LS.Rule import Test.Hspec import qualified Data.ByteString.Lazy as BS import Control.Monad (when, guard) impo...
34efc6cf9734e01383c91077c82b6fcd74b692c47975230fdd91dba00d5bdfc4
fimad/scalpel
StringLike.hs
{-# OPTIONS_HADDOCK hide #-} module Text.HTML.Scalpel.Internal.Scrape.StringLike ( scrapeStringLike , scrapeStringLikeT ) where import Data.Functor.Identity import Text.HTML.Scalpel.Internal.Scrape import qualified Text.HTML.TagSoup as TagSoup import qualified Text.StringLike as TagSoup | The ' scrapeStringL...
null
https://raw.githubusercontent.com/fimad/scalpel/bd42bdfe48eccfdc1544dcc9dad26bbc66c2854a/scalpel-core/src/Text/HTML/Scalpel/Internal/Scrape/StringLike.hs
haskell
# OPTIONS_HADDOCK hide # tags and executes a 'Scraper' on it. tags and executes a 'ScraperT' on it. Since 'ScraperT' is a monad transformer, the result is monadic.
module Text.HTML.Scalpel.Internal.Scrape.StringLike ( scrapeStringLike , scrapeStringLikeT ) where import Data.Functor.Identity import Text.HTML.Scalpel.Internal.Scrape import qualified Text.HTML.TagSoup as TagSoup import qualified Text.StringLike as TagSoup | The ' scrapeStringLike ' function parses a ' Str...
4a4ba10ddebd5ca06b6a35f4a5837edb8d7e292ca079b10fac9d862a2e073553
input-output-hk/project-icarus-importer
TimerSpec.hs
module Test.Pos.Util.TimerSpec ( spec) where import Universum hiding (newTVarIO) import Control.Concurrent.STM (newTVarIO, writeTVar, readTVar, retry) import Control.Concurrent.Async (async) import Data.Time.Clock.POSIX (POSIXTime, getPOSIXTime) import Data.Time.Un...
null
https://raw.githubusercontent.com/input-output-hk/project-icarus-importer/36342f277bcb7f1902e677a02d1ce93e4cf224f0/util/test/Test/Pos/Util/TimerSpec.hs
haskell
| A timer should wait at least given interval. microseconds should wait at least @t0 + t1@ microseconds. Set the 'timerMax' once the 'timerMin' expires. Wait on the 'timerMax', and retry if the 'timerMin' has not expired and the 'timerMax' reset, to avoid the case in which the 'timerMax' finishes before it's rese...
module Test.Pos.Util.TimerSpec ( spec) where import Universum hiding (newTVarIO) import Control.Concurrent.STM (newTVarIO, writeTVar, readTVar, retry) import Control.Concurrent.Async (async) import Data.Time.Clock.POSIX (POSIXTime, getPOSIXTime) import Data.Time.Un...
c2e1014f8ebefc310c63c91c6f84b6f47ca681fdacc99d47709f6dcfdd50f031
the-concurrent-schemer/scm
scml_base_boolean.erl
%%% The MIT License %%% Copyright ( C ) 2013 - 2014 by < > %%% %%% Permission is hereby granted, free of charge, to any person obtaining a copy %%% of this software and associated documentation files (the "Software"), to deal in the Software without restriction , including without limitation the rights %%% to u...
null
https://raw.githubusercontent.com/the-concurrent-schemer/scm/1726ec2e94e766893d80c286f816599defb6a524/src/scml_base_boolean.erl
erlang
The MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished to do so, subject to the following conditions: The above...
Copyright ( C ) 2013 - 2014 by < > in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , E...
5e0118f55aae068b3186c64dd899ec27877b099e6c661adabb7f10c839ab3b4b
penpot/penpot
constraints.cljc
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. ;; ;; Copyright (c) KALEIDOS INC (ns app.common.geom.shapes.constraints (:require [app.common.geom.point :as gpt] [app.common.geom.shap...
null
https://raw.githubusercontent.com/penpot/penpot/c8360b19949a34a9b0878a3a6f2dd08529c9c4cb/common/src/app/common/geom/shapes/constraints.cljc
clojure
Copyright (c) KALEIDOS INC Auxiliary methods to work in an specifica axis Same as constraint end after-vec will contain the side length of the grown side we scale the shape by the diference and translate it by the start displacement (so its left+top position is constant)
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. (ns app.common.geom.shapes.constraints (:require [app.common.geom.point :as gpt] [app.common.geom.shapes.intersect :as gsi] [app.com...
350a2c7c489c86d2cd3f5409206a87b976afc795748567303192d02e6a91fbda
pariyatti/kosa
handler.clj
(ns kosa.library.handler (:require [kosa.library.views :as views] [ring.util.response :as resp])) (defn index [request] (resp/response (views/index request)))
null
https://raw.githubusercontent.com/pariyatti/kosa/593a84d769ef72e459a68e194e2f344e0a851a9a/src/kosa/library/handler.clj
clojure
(ns kosa.library.handler (:require [kosa.library.views :as views] [ring.util.response :as resp])) (defn index [request] (resp/response (views/index request)))
bbaf7dd3fe086a04b2aa5737b99b5710269febe6be3bf0e2c91f81da2a230e87
airbus-seclab/bincat
armv7Imports.ml
This file is part of BinCAT . Copyright 2014 - 2018 - Airbus BinCAT is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your opti...
null
https://raw.githubusercontent.com/airbus-seclab/bincat/493a03890b3b472fd198ce58c7e9280abd0f9f93/ocaml/src/disassembly/armv7Imports.ml
ocaml
replace stub statements
This file is part of BinCAT . Copyright 2014 - 2018 - Airbus BinCAT is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your opti...
d697f2fa5534ecf4dfc1afde397c329e7b3ff4f4d2cac45785384225a6689a7c
orbitz/scow
scow_server_leader.mli
open Async.Std module Make : functor (Statem : Scow_statem.S) -> functor (Log : Scow_log.S with type elt = Statem.op) -> functor (Store : Scow_store.S) -> functor (Transport : Scow_transport.S with type Node.t = Store.node and type elt = Log.elt) -> sig type ...
null
https://raw.githubusercontent.com/orbitz/scow/feb633ef94824f44f0ffc679a548f97288c8ae48/lib/scow/scow_server_leader.mli
ocaml
open Async.Std module Make : functor (Statem : Scow_statem.S) -> functor (Log : Scow_log.S with type elt = Statem.op) -> functor (Store : Scow_store.S) -> functor (Transport : Scow_transport.S with type Node.t = Store.node and type elt = Log.elt) -> sig type ...
aee95086ba96cd6958f3df8f0c98f4c1a423cfbef4ed7e212577fd7aa3546df5
esmolanka/sexp-grammar
Misc.hs
# LANGUAGE DeriveGeneric # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE TypeOperators # # OPTIONS_GHC -fno - warn - orphans # module Misc where import Prelude hiding ((.), id) import Control.Category import qualified Data.ByteString.Lazy.Char8 as B8 import D...
null
https://raw.githubusercontent.com/esmolanka/sexp-grammar/ec5a2af94ebe403a5fab882af36ee9bbd12b3783/examples/Misc.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # Combinator 'with' matches the single constructor of a datatype to a grammar pops b, pops a, applies a to Pair, apply b to (Pair a): (Pair a b :- t) begin list
# LANGUAGE DeriveGeneric # # LANGUAGE TypeOperators # # OPTIONS_GHC -fno - warn - orphans # module Misc where import Prelude hiding ((.), id) import Control.Category import qualified Data.ByteString.Lazy.Char8 as B8 import Data.Text (Text) import qualified Language.Sexp.Located as Sexp import Langu...
d661794f78d5f604dc0a9498dbe808ed716e131f09b0012f11f539f15ebd0de9
8c6794b6/haskell-sc-scratch
Simple.hs
| Module : $ Header$ CopyRight : ( c ) 8c6794b6 License : : Stability : unstable Portability : portable From ' lambda - calculus cooked four ways ' . Module : $Header$ CopyRight : (c) 8c6794b6 License : BSD3 Maintainer : Stability : unstable Portability : portable F...
null
https://raw.githubusercontent.com/8c6794b6/haskell-sc-scratch/22de2199359fa56f256b544609cd6513b5e40f43/Scratch/FP/LC4W/Simple.hs
haskell
| Module : $ Header$ CopyRight : ( c ) 8c6794b6 License : : Stability : unstable Portability : portable From ' lambda - calculus cooked four ways ' . Module : $Header$ CopyRight : (c) 8c6794b6 License : BSD3 Maintainer : Stability : unstable Portability : portable F...
e218f4b92368e6b9d1a0a96998ee9ae36a7d21d08b41c905da636cd94fda2719
denisidoro/rosebud
bucket.clj
(ns rosebud.logic.bucket (:require [quark.beta.math.curve :as curve] [quark.beta.math.point :as point] [quark.beta.time :as time] [quark.collection.map :as map] [quark.collection.seq :as seq] [quark.navigation.core :as nav])) (defn find-path [hierarchy le...
null
https://raw.githubusercontent.com/denisidoro/rosebud/90385528d9a75a0e17803df487a4f6cfb87e981c/server/src/rosebud/logic/bucket.clj
clojure
(ns rosebud.logic.bucket (:require [quark.beta.math.curve :as curve] [quark.beta.math.point :as point] [quark.beta.time :as time] [quark.collection.map :as map] [quark.collection.seq :as seq] [quark.navigation.core :as nav])) (defn find-path [hierarchy le...
293b37bb04a23da39c157c884290171bf69817bd795b4c91e6b96f6a529a9db8
ghcjs/ghcjs
overloadedrecfldsrun04.hs
Test that DuplicateRecordFields works with TemplateHaskell # LANGUAGE DuplicateRecordFields , TemplateHaskell # import Language.Haskell.TH import Language.Haskell.TH.Syntax -- Splice in a datatype with field... $(return [DataD [] (mkName "R") [] Nothing [RecC (mkName "MkR") [( mkName "foo" ...
null
https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/test/ghc/overloadedrecflds/overloadedrecfldsrun04.hs
haskell
Splice in a datatype with field... ... and check that we can inspect it
Test that DuplicateRecordFields works with TemplateHaskell # LANGUAGE DuplicateRecordFields , TemplateHaskell # import Language.Haskell.TH import Language.Haskell.TH.Syntax $(return [DataD [] (mkName "R") [] Nothing [RecC (mkName "MkR") [( mkName "foo" , Bang NoSourceUnpackedness NoSource...
bd4bb7b0ca15fda54e7bb7a6bb457a9c2bf006e46fd838c9d8e66fa5974e5b49
sneeuwballen/zipperposition
STerm.mli
This file is free software , part of Zipperposition . See file " license " for more details . (** {1 Simple Terms} *) * Simple terms , that are not hashconsed , nor typed . Those do not use indices for variable binding , but simply names ( scoping is done later ) . Their simplicity make them go...
null
https://raw.githubusercontent.com/sneeuwballen/zipperposition/333c4a5b0f8a726f414db901a77ca30921178da5/src/core/STerm.mli
ocaml
* {1 Simple Terms} * variable * constant * apply term * bind n variables * special constructor for lists * extensible record * wildcard * Bind all free vars with the symbol * is [sub] a (strict?) subterm of the other arg? * [merge a b] merges [a] into [b], but favors [b] in case of conflict
This file is free software , part of Zipperposition . See file " license " for more details . * Simple terms , that are not hashconsed , nor typed . Those do not use indices for variable binding , but simply names ( scoping is done later ) . Their simplicity make them good for heavy AST transfo...