_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
a96e5188a96df5c153830d6698b9f26db743334a556cd4147cdf7249471ce7ec
ocaml-multicore/tezos
qcheck2_helpers.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2021 Nomadic Labs < > (* ...
null
https://raw.githubusercontent.com/ocaml-multicore/tezos/e4fd21a1cb02d194b3162ab42d512b7c985ee8a9/src/lib_test/qcheck2_helpers.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2021 Nomadic Labs < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN AN...
161e63d1300d4eccf1ab33a28dafe66d71de0a550538b2124388f07fe5aa587c
FranklinChen/hugs98-plus-Sep2006
AnsiScreen.hs
----------------------------------------------------------------------------- Library of escape sequences for ANSI compatible screen I / O : -- Suitable for use with Hugs 98 ----------------------------------------------------------------------------- module AnsiScreen( Pos(..), cls, goto, at, home, highlight...
null
https://raw.githubusercontent.com/FranklinChen/hugs98-plus-Sep2006/54ab69bd6313adbbed1d790b46aca2a0305ea67e/lib/hugs/AnsiScreen.hs
haskell
--------------------------------------------------------------------------- --------------------------------------------------------------------------- Basic screen control codes: Choose whichever of the following lines is suitable for your system: for PC with ANSI.SYS for Sun window ------------------------------...
Library of escape sequences for ANSI compatible screen I / O : Suitable for use with Hugs 98 module AnsiScreen( Pos(..), cls, goto, at, home, highlight ) where type Pos = (Int,Int) at :: Pos -> String -> String highlight :: String -> String goto :: Int -> Int -> String home :: S...
9bd51c96476aabc7580bd1a20ea14322309d1f0d1d62f48f1e3b4cbe6d357c08
extend/elevators
elev_sup.erl
%%%---------------------------------------------------------------------- Copyright ( c ) 1999 , Ericsson Utvecklings AB %%% File : elev_sup.erl Author : %%% Purpose : Elevator process supervisor. Created : 28 Aug 1999 by %%%-----------------------------------------------------------------...
null
https://raw.githubusercontent.com/extend/elevators/02276cc05da80017eea1691281fc062af62fa64a/src/elev_sup.erl
erlang
---------------------------------------------------------------------- File : elev_sup.erl Purpose : Elevator process supervisor. ---------------------------------------------------------------------- External exports supervisor callbacks --------------------------------------------------------------------...
Copyright ( c ) 1999 , Ericsson Utvecklings AB Author : Created : 28 Aug 1999 by -module(elev_sup). -author(''). -vsn("1.0"). -behaviour(supervisor). -export([start_link/1]). -export([init/1]). start_link(NElevs) -> supervisor:start_link({local, elev_sup}, elev_sup, [NElevs]...
ab8e6083a2d6fadfc6cd861b6a312b3d643fc71c2bd4621f78a79ddaf516ea75
erlio/vmq_commons
on_client_gone_hook.erl
-module(on_client_gone_hook). -include("vmq_types.hrl"). %% called as an 'all'-hook, return value is ignored -callback on_client_gone(SubscriberId :: subscriber_id()) -> any().
null
https://raw.githubusercontent.com/erlio/vmq_commons/847d92d23ec212430bd8bace097ee91a033a8ff9/src/on_client_gone_hook.erl
erlang
called as an 'all'-hook, return value is ignored
-module(on_client_gone_hook). -include("vmq_types.hrl"). -callback on_client_gone(SubscriberId :: subscriber_id()) -> any().
3a355e66eb9333021351671ffef5beaa9d6e5f5640fe00799f30cf2f1f0824cb
spawngrid/htoad
ec_dictionary_proper.erl
%% compile with %% erl -pz ebin --make %% start test with %% erl -pz ebin -pz test %% proper:module(ec_dictionary_proper). -module(ec_dictionary_proper). -export([my_dict/0, dict/1, sym_dict/0, sym_dict/1, gb_tree/0, gb_tree/1, sym_dict2/0]). -include_lib("proper/include/proper.hrl"). %%------------------------...
null
https://raw.githubusercontent.com/spawngrid/htoad/f0c7dfbd911b29fb0c406b7c26606f553af11194/deps/erlware_commons/test/ec_dictionary_proper.erl
erlang
compile with erl -pz ebin --make start test with erl -pz ebin -pz test proper:module(ec_dictionary_proper). ------------------------------------------------------------------------------ Properties ------------------------------------------------------------------------------ In the unlikely event that keys ...
-module(ec_dictionary_proper). -export([my_dict/0, dict/1, sym_dict/0, sym_dict/1, gb_tree/0, gb_tree/1, sym_dict2/0]). -include_lib("proper/include/proper.hrl"). prop_size_increases_with_new_key() -> ?FORALL({Dict,K}, {sym_dict(),integer()}, begin Size = ec_dictionary:size(Dict), ...
b0706d3fd433fac6dab0d3218ef36c5e8ffdb54b1989b69b1735351b9b3aef3d
0install/0install
arch.mli
Copyright ( C ) 2013 , the README file for details , or visit . * See the README file for details, or visit . *) (** OS and CPU types. *) open Support open Support.Common type os type machine type arch = os option * machine option type os_ranking type machine_ranking * a ( canonical ) arch , as found...
null
https://raw.githubusercontent.com/0install/0install/22eebdbe51a9f46cda29eed3e9e02e37e36b2d18/src/zeroinstall/arch.mli
ocaml
* OS and CPU types. * Treat a string as a machine type. None if "*". e.g. i686 e.g. x86_64 * Is this value in the ranking? * Returns "*" if None. * Returns "*" if None.
Copyright ( C ) 2013 , the README file for details , or visit . * See the README file for details, or visit . *) open Support open Support.Common type os type machine type arch = os option * machine option type os_ranking type machine_ranking * a ( canonical ) arch , as found in 0install feeds . val ...
343ce3316be8e08b93cc683cc817fe820ed4ec6c8f5676a2551a0c70e69128f4
brendanhay/terrafomo
Types.hs
-- This module was auto-generated. If it is modified, it will not be overwritten. -- | Module : . . Types Copyright : ( c ) 2017 - 2018 License : Mozilla Public License , v. 2.0 . Maintainer : < brendan.g.hay+ > -- Stability : auto-generated Portability : non - portable ( GHC extensio...
null
https://raw.githubusercontent.com/brendanhay/terrafomo/387a0e9341fb9cd5543ef8332dea126f50f1070e/provider/terrafomo-grafana/src/Terrafomo/Grafana/Types.hs
haskell
This module was auto-generated. If it is modified, it will not be overwritten. | Stability : auto-generated import Formatting (Format, (%))
Module : . . Types Copyright : ( c ) 2017 - 2018 License : Mozilla Public License , v. 2.0 . Maintainer : < brendan.g.hay+ > Portability : non - portable ( GHC extensions ) module Terrafomo.Grafana.Types where import Data . Text ( Text ) import Terrafomo import Terrafomo . . ...
bdb724cadd39fb9d6e1f4f79c1394eb9417506577ca7271f0d3fd5101bf24c67
helvm/helms
RepLine.hs
module HelVM.HelMS.Repl.RepLine (repl) where import qualified HelVM.HelMS.Repl.Option as Option import HelVM.HelMS.Repl.Types import Data.Function.Tools import qualified Data.Set as Set import qualified Data.Text as Text import System.Console.Repline repl ...
null
https://raw.githubusercontent.com/helvm/helms/ffb271bf83d1eb1cc5a104dc5408363799040222/hs/src/HelVM/HelMS/Repl/RepLine.hs
haskell
| Matcher | Completer
module HelVM.HelMS.Repl.RepLine (repl) where import qualified HelVM.HelMS.Repl.Option as Option import HelVM.HelMS.Repl.Types import Data.Function.Tools import qualified Data.Set as Set import qualified Data.Text as Text import System.Console.Repline repl ...
cd5e667028faa27434c647df5233f022a14798bb1c75ef0dbe9c534404897c0d
project-oak/hafnium-verification
Source.mli
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
null
https://raw.githubusercontent.com/project-oak/hafnium-verification/6071eff162148e4d25a0fedaea003addac242ace/experiments/ownership-inference/infer/infer/src/checkers/Source.mli
ocaml
* specify that all the formals of the procdesc are not tainted * return Some (kind) if the procedure with the given actuals is a taint source, None otherwise * return each formal of the function paired with either Some(kind) if the formal is a taint source, or None if the formal is not a taint source * type of...
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
7f3b9ed61a685f097a0ba98c1a4f5888ec6a54d7e832b783bb382601d47736fb
ChillkroeteTTS/fischer
console_reporter.clj
(ns fischer.reporter.console-reporter (:require [fischer.reporter.prediction-reporter :as r])) (defrecord ConsoleReporter [] r/PredictionReporter (report [self profile->prediction] (let [print-prediction (fn [[profile prediction]] (prn (format "%s -> anomaly detected: %s" (name profile) prediction)))] ...
null
https://raw.githubusercontent.com/ChillkroeteTTS/fischer/2f479ac0d410f536f5bd89659d7f69113422784a/src/clj/fischer/reporter/console_reporter.clj
clojure
(ns fischer.reporter.console-reporter (:require [fischer.reporter.prediction-reporter :as r])) (defrecord ConsoleReporter [] r/PredictionReporter (report [self profile->prediction] (let [print-prediction (fn [[profile prediction]] (prn (format "%s -> anomaly detected: %s" (name profile) prediction)))] ...
28f38af699702c389e663a6b24d588ea333b627805090d7697d67ced5206f668
theodormoroianu/SecondYearCourses
lab12_20210115155728.hs
import System.Random import Data.Char newtype MyRandom a = MyRandom { runRandom :: StdGen -> (a,StdGen) } randomPositive :: MyRandom Int randomPositive = (MyRandom next) instance Functor MyRandom where fmap f ra = MyRandom rb where rb gen = (f a, gen') where (a,gen') = runRandom ra gen...
null
https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/99185b0e97119135e7301c2c7be0f07ae7258006/Haskell/l/.history/lab12/lab12_20210115155728.hs
haskell
import System.Random import Data.Char newtype MyRandom a = MyRandom { runRandom :: StdGen -> (a,StdGen) } randomPositive :: MyRandom Int randomPositive = (MyRandom next) instance Functor MyRandom where fmap f ra = MyRandom rb where rb gen = (f a, gen') where (a,gen') = runRandom ra gen...
57f2218247f1b954b3a774731b0ad51b804a616492fd5908323e6b2c78dc04c7
eugenehr/erlyconv
cp1026.erl
%% THIS FILE WAS AUTOMATICALLY GENERATED BY gen_src.pl FROM mappings / MICSFT / EBCDIC / CP1026.TXT AT 2016 - 08 - 19 -module(cp1026). -vsn(20160819). -export([to_unicode/1, from_unicode/1]). %% Public functions to_unicode(16#04) -> 16#009C; to_unicode(16#05) -> 16#0009; to_unicode(16#06) -> 16#0086; to_unicode(16#0...
null
https://raw.githubusercontent.com/eugenehr/erlyconv/ecdcd7db8f785c9638cd1ebad37ccd426c050cdf/src/cp1026.erl
erlang
THIS FILE WAS AUTOMATICALLY GENERATED BY gen_src.pl Public functions Private functions
FROM mappings / MICSFT / EBCDIC / CP1026.TXT AT 2016 - 08 - 19 -module(cp1026). -vsn(20160819). -export([to_unicode/1, from_unicode/1]). to_unicode(16#04) -> 16#009C; to_unicode(16#05) -> 16#0009; to_unicode(16#06) -> 16#0086; to_unicode(16#07) -> 16#007F; to_unicode(16#08) -> 16#0097; to_unicode(16#09) -> 16#008D; ...
c9b558aa49147c2078d8a420512a7ed641da12224c8780af3c3cdc21510749ab
hedgehogqa/haskell-hedgehog-classes
Integral.hs
module Spec.Integral (testIntegral) where import Hedgehog.Classes import qualified Hedgehog.Gen as Gen import qualified Hedgehog.Range as Range ranged :: (Bounded a, Integral a) => (Range.Range a -> b) -> b ranged f = f (Range.linear 1 maxBound) testIntegral :: [(String, [Laws])] testIntegral = [ ("Int", listInt)...
null
https://raw.githubusercontent.com/hedgehogqa/haskell-hedgehog-classes/4d97b000e915de8ba590818f551bce7bd862e7d4/test/Spec/Integral.hs
haskell
module Spec.Integral (testIntegral) where import Hedgehog.Classes import qualified Hedgehog.Gen as Gen import qualified Hedgehog.Range as Range ranged :: (Bounded a, Integral a) => (Range.Range a -> b) -> b ranged f = f (Range.linear 1 maxBound) testIntegral :: [(String, [Laws])] testIntegral = [ ("Int", listInt)...
b958ce451630a1d6ce49c8f840ea6f8fc6d5041d223971b349c6d86eea848c5a
Anut-py/h-raylib
ForeignUtil.hs
{-# OPTIONS -Wall #-} module Raylib.ForeignUtil (c'free, p'free, freeMaybePtr, Freeable (..), rlFreeArray, rlFreeMaybeArray, pop, popCArray, popCString, withFreeable, withFreeableArray, withFreeableArrayLen, withFreeableArray2D, configsToBitflag, withMaybe, withMaybeCString, peekMaybe, peekMaybeOff, pokeMaybe, pokeMay...
null
https://raw.githubusercontent.com/Anut-py/h-raylib/22116158546b5f604a512192c67bf2bf07bb31c8/src/Raylib/ForeignUtil.hs
haskell
# OPTIONS -Wall # Internal utility functions
module Raylib.ForeignUtil (c'free, p'free, freeMaybePtr, Freeable (..), rlFreeArray, rlFreeMaybeArray, pop, popCArray, popCString, withFreeable, withFreeableArray, withFreeableArrayLen, withFreeableArray2D, configsToBitflag, withMaybe, withMaybeCString, peekMaybe, peekMaybeOff, pokeMaybe, pokeMaybeOff, peekMaybeArray,...
9250c5b60a50769671eeab4fe659e4ce22a03f5321a600910b031691a55dacec
esuomi/git-revisions
nio.clj
(ns gap.nio "`java.nio.*` interop helpers" (:require [clojure.java.io :as io]) (:import [java.nio.file FileSystems Path Paths] [java.io Writer])) (defn ^Path ->path [& segments] (-> (Path/of (first segments) (into-array String (rest segments))))) (defn ^boolean starts-with? [^Path full ^Path pr...
null
https://raw.githubusercontent.com/esuomi/git-revisions/e2c70eeb46ab0b5a70836fcc659042c92e7a207d/src/gap/nio.clj
clojure
They're provided mostly for convenience, this way just a single require is needed on caller side.
(ns gap.nio "`java.nio.*` interop helpers" (:require [clojure.java.io :as io]) (:import [java.nio.file FileSystems Path Paths] [java.io Writer])) (defn ^Path ->path [& segments] (-> (Path/of (first segments) (into-array String (rest segments))))) (defn ^boolean starts-with? [^Path full ^Path pr...
7bc06791524f14413bdb112bcf6dca567bc78a67ce156202fd19eb03011ad801
phronmophobic/membrane
webgl_macros.clj
(ns membrane.webgl-macros (:import javax.imageio.ImageIO)) (defmacro push-state [ctx & body] `(let [ctx# ~ctx] (try (.save ctx#) ~@body (finally (.restore ctx#))))) (defn image-size-raw [image-path] (let [image-file (clojure.java.io/file image-path)] (when (.exists image-file)...
null
https://raw.githubusercontent.com/phronmophobic/membrane/4a69da67c5924068fd9a47df77226e6529a01b99/src/membrane/webgl_macros.clj
clojure
(ns membrane.webgl-macros (:import javax.imageio.ImageIO)) (defmacro push-state [ctx & body] `(let [ctx# ~ctx] (try (.save ctx#) ~@body (finally (.restore ctx#))))) (defn image-size-raw [image-path] (let [image-file (clojure.java.io/file image-path)] (when (.exists image-file)...
d0c2e39431433f9cb23845741c31da1ca8e876edd441585c67eac1ec8f2f7596
jacekschae/learn-datomic-course-files
jetty.clj
(ns cheffy.components.jetty (:require [integrant.core :as ig] [ring.adapter.jetty :as jetty])) (defmethod ig/init-key ::server [_ {:keys [handler port] :as _config}] (println (str "\nServer running on port " port)) (jetty/run-jetty handler {:port port :join? false})) (defmethod ig/halt-key! ::serv...
null
https://raw.githubusercontent.com/jacekschae/learn-datomic-course-files/be20cd3f77c70fac33c95f3231f0ccdf41525f67/increments/63-squuid/src/main/cheffy/components/jetty.clj
clojure
(ns cheffy.components.jetty (:require [integrant.core :as ig] [ring.adapter.jetty :as jetty])) (defmethod ig/init-key ::server [_ {:keys [handler port] :as _config}] (println (str "\nServer running on port " port)) (jetty/run-jetty handler {:port port :join? false})) (defmethod ig/halt-key! ::serv...
fb3a0640971ead3d7d3a06014ba16fe635f818d0d2e6a7ba2f0064006eceac69
stuarthalloway/programming-clojure
gulp.clj
(ns examples.gulp (:import (java.io FileInputStream InputStreamReader BufferedReader))) (defn gulp [src] (let [sb (StringBuilder.)] (with-open [reader (-> src FileInputStream. InputStreamReader. BufferedReader.)] (loop [c (.r...
null
https://raw.githubusercontent.com/stuarthalloway/programming-clojure/192e2f28d797fd70e50778aabd031b3ff55bd2b9/src/examples/gulp.clj
clojure
(ns examples.gulp (:import (java.io FileInputStream InputStreamReader BufferedReader))) (defn gulp [src] (let [sb (StringBuilder.)] (with-open [reader (-> src FileInputStream. InputStreamReader. BufferedReader.)] (loop [c (.r...
b2df5e012d2cc5fab0fa6a5436918d72f6b84fd35af022569741fce2828c655f
shriram/smol
semantics.rkt
#lang racket (require [rename-in smol/fun/semantics [#%app checked-#%app]]) (provide [except-out [all-from-out smol/fun/semantics] checked-#%app] [rename-out [checked-#%app #%app]]) (provide mvec vec-set!) (provide mpair set-left! set-right!) (provide set!) (define mvec vector) (define vec-set! vector-se...
null
https://raw.githubusercontent.com/shriram/smol/32ff0d5d75ade9eb47928da5eccba704e7bf8b63/state/semantics.rkt
racket
#lang racket (require [rename-in smol/fun/semantics [#%app checked-#%app]]) (provide [except-out [all-from-out smol/fun/semantics] checked-#%app] [rename-out [checked-#%app #%app]]) (provide mvec vec-set!) (provide mpair set-left! set-right!) (provide set!) (define mvec vector) (define vec-set! vector-se...
5c2df15ee02f8135a2087b997f00f2d6f2f3d4d870d9f139adf24210408db796
SamB/coq
heads.mli
(************************************************************************) 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/library/heads.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * This module is about the computati...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * $ Id$ open Names open Te...
0a926c07085392ab479dfbfcb1ddef643bbf3ffaec06a88687b2f1fbe53c1ceb
imkiva/HiVM
Interpreter.hs
module Runtime.Interpreter ( dispatch ) where import ClassPath.Base import Control.Exception (throw) import Control.Monad.Except import Control.Monad.State (get) import Data.Array.IO (getBounds, readArray, writeArray) import qualified Data.Binary.IEEE754...
null
https://raw.githubusercontent.com/imkiva/HiVM/c9756e3c8398c896b3fe382ae1ffd2d6b51096d7/src/Runtime/Interpreter.hs
haskell
| Type checkers | Auxiliary functions | Decode-Dispatch Interpreter | | | Array manipulating instructions | | | | | | | TODO: check cast | Cast instructions | Mathematical instructions
module Runtime.Interpreter ( dispatch ) where import ClassPath.Base import Control.Exception (throw) import Control.Monad.Except import Control.Monad.State (get) import Data.Array.IO (getBounds, readArray, writeArray) import qualified Data.Binary.IEEE754...
5dd8bd0801636f19350295eeff2d1ef31db27f7dd0efa935398eaf39ff330223
janestreet/ppx_css
test_ppx_css_builds.mli
(** This file is a small test suite to check for successful compilation of ppx_css. *) module Normal : module type of [%css stylesheet {| #an_id {} .a_class {} |}] module With_variables : module type of [%css stylesheet {| :root { --bg-color: red; } .a_class #an_id { color:...
null
https://raw.githubusercontent.com/janestreet/ppx_css/227a89d7e4605f740366a1e1e20923c1d69d6bbc/test/inline/test_ppx_css_builds.mli
ocaml
* This file is a small test suite to check for successful compilation of ppx_css.
module Normal : module type of [%css stylesheet {| #an_id {} .a_class {} |}] module With_variables : module type of [%css stylesheet {| :root { --bg-color: red; } .a_class #an_id { color: var(--fg-color) } |}] module Clashing_id_and_class : module t...
715a1cf3f3c72b9a59d7804ed54dacb82127729def88f0274c73ab2c6375bbf5
mefyl/dune-cache-daemon
distributed.ml
include Distributed_intf module Metadata_file = Cache.Local.Metadata_file module Log = Dune_util.Log let disabled _ = ( module struct let distribute _ _ = Async.Deferred.Result.return () let prefetch _ = Async.Deferred.Result.return () let index_add _ _ _ = Async.Deferred.Result.return () let inde...
null
https://raw.githubusercontent.com/mefyl/dune-cache-daemon/f6debe2598aaa97e31e37c93b3aa2fbff55f3137/src/sietch/distributed.ml
ocaml
include Distributed_intf module Metadata_file = Cache.Local.Metadata_file module Log = Dune_util.Log let disabled _ = ( module struct let distribute _ _ = Async.Deferred.Result.return () let prefetch _ = Async.Deferred.Result.return () let index_add _ _ _ = Async.Deferred.Result.return () let inde...
41d60d886e9b458bfb0ae441099c6ad68a04397ec044568cb023b64483952de8
danielmiladinov/joy-of-clojure
using_the_repl_to_experiment.clj
;; Using the REPL to experiment ;; --------------------------------------------------------------------------------------------------------------------- ;; Most software development projects include a stage where you're not sure what needs to happen next. Perhaps you need ;; to use a library or part of a library you've...
null
https://raw.githubusercontent.com/danielmiladinov/joy-of-clojure/cad7d1851e153beb12a2cd536eb467be12cb7a73/src/joy-of-clojure/chapter3/using_the_repl_to_experiment.clj
clojure
Using the REPL to experiment --------------------------------------------------------------------------------------------------------------------- Most software development projects include a stage where you're not sure what needs to happen next. Perhaps you need to use a library or part of a library you've never t...
(range 5) That should do nicely for one coordinate . To nest seqs , for often does the trick . But again , rather than writing code (for [x (range 2) y (range 2)] [x y]) = > ( [ 0 0 ] [ 0 1 ] [ 1 0 ] [ 1 1 ] ) (xor 1 2) = > CompilerException java.lang . RuntimeException : Unable to resolve symbol : in this contex...
139c8dc39b891cc09897118ecff1fe5697f698b9f0a4263441436d7058e9fdf2
clash-lang/clash-compiler
CalculatorTypes.hs
module CalculatorTypes where import Clash.Prelude type Word = Signed 4 data OPC a = ADD | MUL | Imm a | Pop | Push deriving Lift
null
https://raw.githubusercontent.com/clash-lang/clash-compiler/8e461a910f2f37c900705a0847a9b533bce4d2ea/examples/CalculatorTypes.hs
haskell
module CalculatorTypes where import Clash.Prelude type Word = Signed 4 data OPC a = ADD | MUL | Imm a | Pop | Push deriving Lift
3dd54883c51390f3ccff6eec50276a5f5b872ec213b92e6ad4fedc00c353a9c9
JustusAdam/marvin
Handler.hs
| Module : $ Header$ Description : Some generic handlers for bots Copyright : ( c ) , 2017 License : : Stability : experimental Portability : POSIX Generic handlers for scripts . You can use them directly or have a look at the source as an example of how to use marvins featur...
null
https://raw.githubusercontent.com/JustusAdam/marvin/c49db1f7efbd5cc0803c9802ca31bb4488472ac3/src/Marvin/Handler.hs
haskell
| Download any shared file which was not shared by the bot itself (@uploader^.username /= botname@) The boolean decides whether to send a message of success or failure to the originating channel. | Upload a file referenced by a command. The boolean decides whether to send a message of success or failure to the or...
| Module : $ Header$ Description : Some generic handlers for bots Copyright : ( c ) , 2017 License : : Stability : experimental Portability : POSIX Generic handlers for scripts . You can use them directly or have a look at the source as an example of how to use marvins featur...
1301e3e2a0be705864ea92b0b213a966d5fc932e737952a092b8d731399626d6
orestis/reseda
state.cljc
(ns reseda.state) (defn nano-id [] (str (random-uuid))) ;; TODO: expose subscriptions ;; TODO: timing? ;; TODO: custom equality ;; TODO: caching / deduplication (defprotocol IStore (-trigger-subs [this old-state new-state]) (-get-value [this selector] [this backing selector]) (destroy [this] "Remove all ref...
null
https://raw.githubusercontent.com/orestis/reseda/b757447b70ad919172ac97bd87964994f358aa42/src/reseda/state.cljc
clojure
TODO: expose subscriptions TODO: timing? TODO: custom equality TODO: caching / deduplication TODO: no need for atom for subs, could use a mutable field for performance
(ns reseda.state) (defn nano-id [] (str (random-uuid))) (defprotocol IStore (-trigger-subs [this old-state new-state]) (-get-value [this selector] [this backing selector]) (destroy [this] "Remove all references to subscriptions and the underlying watchable.") (subscribe [this selector on-change] "Subs...
73d087e55b337bd3a622da68fd5d983c8daa5445c5859af2864cc0f4dab5b412
TakaiKinoko/Cornell_CS3110_OCaml
4map.ml
(** This is the Map module defined in OCAML stdlib *) module type OrderedType = sig type t val compare: t -> t -> int end module type S = sig type key type +'a t val empty: 'a t val is_empty: 'a t -> bool val mem: key -> 'a t -> bool val add: key -> 'a -> 'a t -> 'a t val up...
null
https://raw.githubusercontent.com/TakaiKinoko/Cornell_CS3110_OCaml/0a830bc50a5e39f010074dc289161426294cad1d/Chap5_Modules/07functor/4map.ml
ocaml
* This is the Map module defined in OCAML stdlib call [p] in the expected left-to-right order call [p] in the expected left-to-right order
module type OrderedType = sig type t val compare: t -> t -> int end module type S = sig type key type +'a t val empty: 'a t val is_empty: 'a t -> bool val mem: key -> 'a t -> bool val add: key -> 'a -> 'a t -> 'a t val update: key -> ('a option -> 'a option) -> 'a t -> 'a t ...
82941e614e0ab8d180baa83605323e3b1a12e20e4d0b7f8e4d9cbe5b07387fd2
fp-works/2019-winter-Haskell-school
Homework01.hs
module Homework01 ( toDigits, toDigitsRev, doubleEveryOther, sumDigits, validate ) where -- toDigits toDigits :: Integer -> [Integer] toDigits num | num <= 0 = [] | otherwise = toDigits ( num `div` 10 ) ++ [ num `mod` 10 ] -- toDigitRev toDigitsRev :: Integer -> [Integer] toDigitsRev = reverse...
null
https://raw.githubusercontent.com/fp-works/2019-winter-Haskell-school/823b67f019b9e7bc0d3be36711c0cc7da4eba7d2/cis194/week1/jimfang/Homework01.hs
haskell
toDigits toDigitRev doubleEveryOther validate
module Homework01 ( toDigits, toDigitsRev, doubleEveryOther, sumDigits, validate ) where toDigits :: Integer -> [Integer] toDigits num | num <= 0 = [] | otherwise = toDigits ( num `div` 10 ) ++ [ num `mod` 10 ] toDigitsRev :: Integer -> [Integer] toDigitsRev = reverse . toDigits doubleEveryOt...
b4d65353ce47b55cc7b3336ce2a2afba5db97665ca3928a73c05b2c17bbf4a7e
PLTools/OCanren
test009.ml
(** This is part of HM inferencer demo from noCanren. * Look how we are using another extension point which is renaming of 'distrib' *) let () = print_endline "test009" module _ = struct [%%ocanren type nonrec ('a1, 'a0) t = | LInt of 'a1 | LBool of 'a0 [@@deriving gt ~options:{ gmap }] type nonr...
null
https://raw.githubusercontent.com/PLTools/OCanren/e8f3b2e876baa916f30d60a5cecf0f1470a61c24/regression_ppx/test009.ml
ocaml
* This is part of HM inferencer demo from noCanren. * Look how we are using another extension point which is renaming of 'distrib'
let () = print_endline "test009" module _ = struct [%%ocanren type nonrec ('a1, 'a0) t = | LInt of 'a1 | LBool of 'a0 [@@deriving gt ~options:{ gmap }] type nonrec ground = (GT.int, GT.bool) t] end
36baa67385d44edc93c62c5bf1c9bcdaaffdc534e49a610ea9fe748b547d3f69
askvortsov1/hardcaml-mips
test_writeback.ml
open Hardcaml open Hardcaml_waveterm open Mips.Writeback module Simulator = Cyclesim.With_interface (I) (O) let testbench () = let scope = Scope.create ~flatten_design:true () in let sim = Simulator.create (circuit_impl_exn scope) in let waves, sim = Waveform.create sim in let inputs = Cyclesim.inputs sim in ...
null
https://raw.githubusercontent.com/askvortsov1/hardcaml-mips/cc5cac9348cf1fa1859391598ede94f96e885f6b/test/test_writeback/test_writeback.ml
ocaml
Output = data_output
open Hardcaml open Hardcaml_waveterm open Mips.Writeback module Simulator = Cyclesim.With_interface (I) (O) let testbench () = let scope = Scope.create ~flatten_design:true () in let sim = Simulator.create (circuit_impl_exn scope) in let waves, sim = Waveform.create sim in let inputs = Cyclesim.inputs sim in ...
042c31e95789d6bbccdc5f039d5d3b273ebda2cb1b8744a6522d277547a8d430
tomprimozic/type-systems
test.ml
open OUnit2 let suite = test_list [Test_lexer.suite; Test_parser.suite; Test_infer.suite] let () = run_test_tt_main suite
null
https://raw.githubusercontent.com/tomprimozic/type-systems/4403586a897ee94cb8f0de039aeee8ef1ecef968/algorithm_w/test.ml
ocaml
open OUnit2 let suite = test_list [Test_lexer.suite; Test_parser.suite; Test_infer.suite] let () = run_test_tt_main suite
8fffe8408a05f63ebe4ec62e7e2d547986202ef93621fda20b8d3a895d863bac
yurug/ocaml4.04.0-copatterns
typedecl.ml
(**************************************************************************) (* *) (* OCaml *) (* *) and ,...
null
https://raw.githubusercontent.com/yurug/ocaml4.04.0-copatterns/b3ec6a3cc203bd2cde3b618546d29e10f1102323/typing/typedecl.ml
ocaml
************************************************************************ OCaml ...
and , projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Misc open Asttypes open Parsetree open Primitive open Types open Typetexp type native_repr_kind = Unboxed | Unta...
641ab8c5a65bf82e06032f5d5a022aa94907a49cb41a151a9e4ef9015aeef34f
panda-planner-dev/ipc2020-domains
d-17.lisp
(defdomain domain ( (:operator (!epsilon) ;; preconditions ( ) ;; delete effects () ;; add effects () ) (:operator (!t1G1) ;; preconditions ( (turnA) ) ;; delete effects ((turnA)) ;; add effects ((turnB) (lt1)) ) (:operator (!t...
null
https://raw.githubusercontent.com/panda-planner-dev/ipc2020-domains/9adb54325d3df35907adc7115fcc65f0ce5953cc/partial-order/PCP/other/SHOP2/d-17.lisp
lisp
preconditions delete effects add effects preconditions delete effects add effects preconditions delete effects add effects preconditions delete effects add effects preconditions delete effects add effects preconditions delete effects add effects preconditions delete effects add effects preconditio...
(defdomain domain ( (:operator (!epsilon) ( ) () () ) (:operator (!t1G1) ( (turnA) ) ((turnA)) ((turnB) (lt1)) ) (:operator (!t2G1) ( (turnA) ) ((turnA)) ((turnB) (lt2)) ) (:operator (!t3G1) ( (turnA) ...
0369b0ec9db2c5e908779c7b779f74499b689c78629b5b110d23cc0e55d5e531
HaskellEmbedded/data-stm32
MCU.hs
{-# LANGUAGE Arrows #-} # LANGUAGE NoMonomorphismRestriction # # LANGUAGE RecordWildCards # module Data.CMX.Parse.MCU (parseMCU, parseAFs, parseClockSources) where import Control.Monad import Control.Arrow.ArrowList import Text.XML.HXT.Core import qualified Data.Char as Char import qualified Data.Set as Set import qu...
null
https://raw.githubusercontent.com/HaskellEmbedded/data-stm32/204aff53eaae422d30516039719a6ec7522a6ab7/src/Data/CMX/Parse/MCU.hs
haskell
# LANGUAGE Arrows # nonempty attr value db/package.xml parser devices/.db parser passed from families parser as here it contains things like (B-C) these are added/computed from families.xml later mcuFlashVariants = map read flashVariants' no information about these in xml files, added afterwards in Extract
# LANGUAGE NoMonomorphismRestriction # # LANGUAGE RecordWildCards # module Data.CMX.Parse.MCU (parseMCU, parseAFs, parseClockSources) where import Control.Monad import Control.Arrow.ArrowList import Text.XML.HXT.Core import qualified Data.Char as Char import qualified Data.Set as Set import qualified Data.ByteString....
fc408816d9e01d90d53a3a6a6b3569848652b3c2691fae7c49b1f71b0f940ac0
google/ormolu
poly-kinded-classes-out.hs
# LANGUAGE PolyKinds # class Foo (a :: k) class Bar ( a -- Variable Star )
null
https://raw.githubusercontent.com/google/ormolu/ffdf145bbdf917d54a3ef4951fc2655e35847ff0/data/examples/declaration/class/poly-kinded-classes-out.hs
haskell
Variable
# LANGUAGE PolyKinds # class Foo (a :: k) class Bar Star )
7ea6df03d6681ccdccb8eafabae72f1062ead19dca8ad7a78520a89420be9e68
petablox/arbitrar
options.ml
(* Debug Options *) let debug = ref false let no_filter_duplication = ref false (* Output Options *) let outdir_ = ref "llextractor-out" let outdir () = Utils.get_abs_path !outdir_ let batched_outdir i = outdir () ^ Printf.sprintf "/batch_%d" i let verbose = ref 0 let pretty_json = ref false let json_to_channel ...
null
https://raw.githubusercontent.com/petablox/arbitrar/f965f8e8cd0ebc00061a847c8f7ebb6ec9c61a45/src/old_analyzer/src/options.ml
ocaml
Debug Options Output Options Slicer Options Occurrence Options Filter Options Executor Options Analyzer Options Feature Options
let debug = ref false let no_filter_duplication = ref false let outdir_ = ref "llextractor-out" let outdir () = Utils.get_abs_path !outdir_ let batched_outdir i = outdir () ^ Printf.sprintf "/batch_%d" i let verbose = ref 0 let pretty_json = ref false let json_to_channel oc json = if !pretty_json then Yojson.S...
2afa021351e31882322814942ce40b6c81be2d8aeb00291ac2b1c31d3ddf2364
ocaml-ppx/ocamlformat
syntax.ml
This module is a recursive descent parser for the ocamldoc syntax . The parser consumes a token stream of type [ Token.t Stream.t ] , provided by the lexer , and produces a comment AST of the type defined in [ Parser_.Ast ] . The AST has two main levels : inline elements , which can appear inside ...
null
https://raw.githubusercontent.com/ocaml-ppx/ocamlformat/f14d3a24c9507b58832ca814c338c3df3a55d098/vendor/odoc-parser/syntax.ml
ocaml
{2 Input} {2 Output} The last token in the stream is always [`End], and it is never consumed by the parser, so the [None] case is impossible. Convenient abbreviation for use in patterns. {2 Paragraphs} After each line is parsed, decides whether to parse more lines. {3 Helper types} This is a no-op. It...
This module is a recursive descent parser for the ocamldoc syntax . The parser consumes a token stream of type [ Token.t Stream.t ] , provided by the lexer , and produces a comment AST of the type defined in [ Parser_.Ast ] . The AST has two main levels : inline elements , which can appear inside ...
037b724dd56409fc4bd422f2843e0fd8527c32a4661ad5f1636e1bf19e4fb301
offby1/rudybot
utils.rkt
#lang racket/base (require scheme/match scheme/system scheme/promise (for-syntax scheme/base syntax/boundmap)) (provide from-env run-command call-with-PATH defmatcher domatchers defautoloads) ;; this is used when this module is loaded, before `clearenv' is called (define (from-env var default [split #f]) ...
null
https://raw.githubusercontent.com/offby1/rudybot/74773ce9c1224813ee963f4d5d8a7748197f6963/utils.rkt
racket
this is used when this module is loaded, before `clearenv' is called Capture the initial path for all kinds of things that need it no way to actually delete a var Conveniently running an external process (given its name and string args) and return the stdout in a string Allows defining matchers separately, easier...
#lang racket/base (require scheme/match scheme/system scheme/promise (for-syntax scheme/base syntax/boundmap)) (provide from-env run-command call-with-PATH defmatcher domatchers defautoloads) (define (from-env var default [split #f]) (let ([val (getenv var)]) (if (and val (> (string-length val) 0)) ...
d168335f0ceb0f16d8841acdedbfa4f0a55330f22d3b537ce1a07b63362d32b8
johnlawrenceaspden/hobby-code
fractal-fern.clj
Barnsley 's Famous Fern ;; generated by an iterated function system. (use 'simple-plotter.core) (defn transform [[xx xy yx yy dx dy]] (fn [[x y]] [(+ (* xx x) (* xy y) dx) (+ (* yx x) (* yy y) dy)])) (def barnsleys-fern '((2 [ 0 0 0 0.16 0 0 ]) (6 [ 0.2 -0.2...
null
https://raw.githubusercontent.com/johnlawrenceaspden/hobby-code/48e2a89d28557994c72299962cd8e3ace6a75b2d/fractal-fern.clj
clojure
generated by an iterated function system.
Barnsley 's Famous Fern (use 'simple-plotter.core) (defn transform [[xx xy yx yy dx dy]] (fn [[x y]] [(+ (* xx x) (* xy y) dx) (+ (* yx x) (* yy y) dy)])) (def barnsleys-fern '((2 [ 0 0 0 0.16 0 0 ]) (6 [ 0.2 -0.26 0.23 0.22 0 0 ]) ...
faa57559f0132ef3b92950c83cf200eecdf308a51f06fe1e2ca5e4e33b15e2d3
fp-works/2019-winter-Haskell-school
Log.hs
module CIS194.Homework02.Log where type TimeStamp = Int type Severity = Int data MessageType = Info | Warning | Error Severity deriving (Show, Eq) data LogMessage = LogMessage MessageType TimeStamp String | Unknown String deri...
null
https://raw.githubusercontent.com/fp-works/2019-winter-Haskell-school/823b67f019b9e7bc0d3be36711c0cc7da4eba7d2/cis194/week2/daniel-deng/src/CIS194/Homework02/Log.hs
haskell
module CIS194.Homework02.Log where type TimeStamp = Int type Severity = Int data MessageType = Info | Warning | Error Severity deriving (Show, Eq) data LogMessage = LogMessage MessageType TimeStamp String | Unknown String deri...
d76e735bd288a54ae4b28a9b3f214ad37140118f45c4e362defd926bc9986ead
runtimeverification/haskell-backend
Memo.hs
module Test.Kore.Rewrite.Function.Memo ( test_Self, ) where import Control.Monad.State.Strict ( evalState, ) import Kore.Internal.TermLike import Kore.Rewrite.Function.Memo import Prelude.Kore import Test.Kore.Rewrite.MockSymbols qualified as Mock import Test.Tasty import Test.Tasty.HUnit.Ext test_Self :: [T...
null
https://raw.githubusercontent.com/runtimeverification/haskell-backend/b06757e252ee01fdd5ab8f07de2910711997d845/kore/test/Test/Kore/Rewrite/Function/Memo.hs
haskell
module Test.Kore.Rewrite.Function.Memo ( test_Self, ) where import Control.Monad.State.Strict ( evalState, ) import Kore.Internal.TermLike import Kore.Rewrite.Function.Memo import Prelude.Kore import Test.Kore.Rewrite.MockSymbols qualified as Mock import Test.Tasty import Test.Tasty.HUnit.Ext test_Self :: [T...
86c552e971b7bcc2bbd35a7b316b60b36565e8e88226e5215f9f9ac424465b98
NorfairKing/declops
VirtualBox.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DerivingVia # # LANGUAGE FlexibleInstances # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # # OPTIONS_GHC -Wno - orphans # module Declops.Provider.VirtualBox where import Autodocodec import Control.Monad import Data.Aeson (FromJSON, ToJSON) import qualified Data....
null
https://raw.githubusercontent.com/NorfairKing/declops/69526634a40a215115e973af1572df80a9b4b145/declops-provider-virtualbox/src/Declops/Provider/VirtualBox.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE DeriveGeneric # # LANGUAGE DerivingVia # # LANGUAGE FlexibleInstances # # LANGUAGE RecordWildCards # # OPTIONS_GHC -Wno - orphans # module Declops.Provider.VirtualBox where import Autodocodec import Control.Monad import Data.Aeson (FromJSON, ToJSON) import qualified Data.ByteString.Lazy as LB import Data.L...
98ac44abdc9d996a68b4a85270e9f8215513f4aa2d4f8a088a1e4e05c4057500
gfour/gic
papp.hs
result = g add 1 g f x = h (f x) h t = t 3 add a b = a + b
null
https://raw.githubusercontent.com/gfour/gic/d5f2e506b31a1a28e02ca54af9610b3d8d618e9a/Examples/Data/papp.hs
haskell
result = g add 1 g f x = h (f x) h t = t 3 add a b = a + b
dc875f8fe855390cd8d061d4fcbad0e9526de1172dbb7f7cf58e8df45c5970b5
xvw/preface
indexed_foldable.mli
(** Functor that generate a suite for an [Indexed Foldable]. *) module Suite (R : Model.COVARIANT_2) (F : Preface_specs.INDEXED_FOLDABLE with type ('a, 'index) t = ('a, 'index) R.t) (A : Model.T0) (B : Model.T0) (M : Preface_specs.MONOID with type t = A.t) (Index : Model.T0) : Model....
null
https://raw.githubusercontent.com/xvw/preface/51892a7ce2ddfef69de963265da3617968cdb7ad/lib/preface_qcheck/indexed_foldable.mli
ocaml
* Functor that generate a suite for an [Indexed Foldable].
module Suite (R : Model.COVARIANT_2) (F : Preface_specs.INDEXED_FOLDABLE with type ('a, 'index) t = ('a, 'index) R.t) (A : Model.T0) (B : Model.T0) (M : Preface_specs.MONOID with type t = A.t) (Index : Model.T0) : Model.SUITE
da8b77a5d0b28830e802f150f60f2c03b177237c6cbef24d7e63ffa91239cd04
ruricolist/FXML
package.lisp
;;; -*- Mode: Lisp; Syntax: Common-Lisp; Package: CL-USER; -*- ;;; --------------------------------------------------------------------------- Title : Generating a sane DEFPACKAGE for Created : 1999 - 05 - 25 Author : < > ;;; ---------------------------------------------------------------------------...
null
https://raw.githubusercontent.com/ruricolist/FXML/a0e73bb48ef03adea94a55986cc27f522074c8e1/runes/package.lisp
lisp
-*- Mode: Lisp; Syntax: Common-Lisp; Package: CL-USER; -*- --------------------------------------------------------------------------- --------------------------------------------------------------------------- runes.lisp ystream.lisp
Title : Generating a sane DEFPACKAGE for Created : 1999 - 05 - 25 Author : < > ( c ) copyright 1999,2000 by (in-package :cl-user) (defpackage :fxml.runes (:use :cl :named-readtables :trivial-gray-streams) (:import-from #:alexandria #:array-index #:emptyp) (:import-from #:serapeum #:-> #:...
e5c061295f619f038a4c525ba1d51840935b43e68d3e2473466c1b2bc2ee9933
Bertkiing/ErlangLearner
erlang_exceptions.erl
-module(erlang_exceptions). -compile(export_all). % -export([throws/1]). throws(F) -> try F() of _ -> ok catch % Throw -> {throw,caught,Throw} throw:Throw -> {throw,caught,Throw} end. % error异常 errors(F) -> try F() of _ -> ok catch %...
null
https://raw.githubusercontent.com/Bertkiing/ErlangLearner/ce917684ee91e6d43864291f0e34050e7e004ca5/erlang_exceptions.erl
erlang
-export([throws/1]). Throw -> {throw,caught,Throw} error异常 Error -> {error,caught,Error} Exit -> {exit,caught,Exit}
-module(erlang_exceptions). -compile(export_all). throws(F) -> try F() of _ -> ok catch throw:Throw -> {throw,caught,Throw} end. errors(F) -> try F() of _ -> ok catch error:Error -> {error,caught,Errorss} end. e...
fc950d80db9f2ba4050daca5af3943e51309693a3375e434f8f31f180439ff4e
cirfi/sicp-my-solutions
1.14.scm
;;; cc 11 5 ;;; cc 11 4 + cc -39 5 cc 11 3 + cc -14 4 0 cc 11 2 + cc 1 3 0 ;;; cc 11 2 + cc 1 3 0 ;;; cc 11...
null
https://raw.githubusercontent.com/cirfi/sicp-my-solutions/4b6cc17391aa2c8c033b42b076a663b23aa022de/ch1/1.14.scm
scheme
cc 11 5 cc 11 4 + cc -39 5 cc 11 2 + cc 1 3 0 cc 11 1 + cc 6 2 cc 1 2 + cc -9 3 0 cc 8 0 + cc 7 1 0 ...
cc 11 3 + cc -14 4 0 cc 11 2 + cc 1 3 0 cc 11 0 + cc 10 1 cc 6 1 + cc 1 2 cc 1 1 + cc -4 2 0 cc 11 0 + cc 10 1 cc 6 1 + cc 1 2 cc 1 1 + cc -4 2...
40a5adc62d29530b90bd1509998eaa58128f896b775314967b2282ec03faaaff
TaktInc/freer
HandleRegion.hs
{-# LANGUAGE DataKinds #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE RankNTypes #-} {-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE TypeAp...
null
https://raw.githubusercontent.com/TaktInc/freer/b1e4911832ad12ef0b9b23883548dcf44ea3bd59/examples/src/HandleRegion.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE RankNTypes # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # ---------------------------------------------------------------------------- | ...
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeApplications # # OPTIONS_GHC -fno - warn - orphans # # OPTIONS_GHC -fno - warn - redundant - constraints # module HandleReg...
79ebd977a7c55db87009e446d5236775fbe159d32855cf438a8bc39ea21d8e27
Naproche-SAD/Naproche-SAD
Show.hs
module SAD.Data.Formula.Show ( showArgumentsWith, showTailWith, symEncode, symChars also exports show instance for Formula )where import SAD.Data.Formula.Base import SAD.Data.Formula.Kit -- show instances instance Show Formula where showsPrec p = showFormula p 0 showFormula :: Int -> Int -> Formula -...
null
https://raw.githubusercontent.com/Naproche-SAD/Naproche-SAD/da131a6eaf65d4e02e82082a50a4febb6d42db3d/src/SAD/Data/Formula/Show.hs
haskell
show instances decoding of symbolic names Symbolic names
module SAD.Data.Formula.Show ( showArgumentsWith, showTailWith, symEncode, symChars also exports show instance for Formula )where import SAD.Data.Formula.Base import SAD.Data.Formula.Kit instance Show Formula where showsPrec p = showFormula p 0 showFormula :: Int -> Int -> Formula -> ShowS showFormul...
9bdff7bfa3215e791a4c47f0942fbf227116297eea9799f327008897ee8f9e0a
elaforge/karya
ExtractDoc.hs
Copyright 2013 -- This program is distributed under the terms of the GNU General Public -- License 3.0, see COPYING or -3.0.txt module App.ExtractDoc where import qualified Data.Map as Map import qualified Data.Set as Set import qualified Data.Text as Text import qualified Data.Text.IO as Text.IO import qualified...
null
https://raw.githubusercontent.com/elaforge/karya/2519508719507c5e5e0d41000f7ccb8033d0843e/App/ExtractDoc.hs
haskell
This program is distributed under the terms of the GNU General Public License 3.0, see COPYING or -3.0.txt * extract keymap | A repeatable key implies the non-repeating key. Also, a drag implies a click. | Strip out redundant modifiers. E.g. Click and Drag bindings by necessity imply that the mouse button is d...
Copyright 2013 module App.ExtractDoc where import qualified Data.Map as Map import qualified Data.Set as Set import qualified Data.Text as Text import qualified Data.Text.IO as Text.IO import qualified System.Environment as Environment import qualified Text.Printf as Printf import qualified Util.Html as Html imp...
51077bf5154b69282512235e4b97bef10d0f6d09b7c6b004bfc2158606c96e03
owickstrom/twitter-kinesis-lab
project.clj
(defproject twitter-producer "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.6.0"] [twitter-streaming-client "0.3.2" :exclusions [org.apache.httpcompo...
null
https://raw.githubusercontent.com/owickstrom/twitter-kinesis-lab/254111d100b11a1896f713c82d55f9e8e98f2e9e/twitter-producer/project.clj
clojure
twitter-streaming-client wants 1.7.5 of these, no way dude
(defproject twitter-producer "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.6.0"] [twitter-streaming-client "0.3.2" :exclusions [org.apache.httpcompo...
24d03adb003cb82ca336a5083a15ac087180d5f5e81319516fbed16161f2e255
Feuerlabs/exometer_core
exometer_entry.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2014 Basho Technologies , Inc. All Rights Reserved . %% 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 obtai...
null
https://raw.githubusercontent.com/Feuerlabs/exometer_core/358d5c6724b823104f122ca4f16439ae0e767c82/src/exometer_entry.erl
erlang
------------------------------------------------------------------- ------------------------------------------------------------------- @doc == Creating custom exometer entries == An exometer_entry behavior implementation can be created when custom processing of various metrics is needed. A custom exometer ...
Copyright ( c ) 2014 Basho Technologies , Inc. All Rights Reserved . 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 /. new(Name , Type , Options)</pre > The ` new ( ) ' functi...
0bc9669463f44b8848b7c0673d8a2a45cfc01aa33f7f6937747af2706231bf94
nervous-systems/chemtrack-example
lambda.cljs
(ns chemtrack.lambda (:require [cljs-lambda.util :refer [async-lambda-fn]] [cljs.core.async :as async :refer [<!]] [fink-nottle.sns :as sns] [fink-nottle.sqs :as sqs] [glossop.util] [eulalie.creds]) (:require-macros [cljs.core.async.macros :refer [go]])) ...
null
https://raw.githubusercontent.com/nervous-systems/chemtrack-example/b547a0a42c678704a68a9889d22900e5490cdcf0/lambda/chemtrack/lambda.cljs
clojure
(ns chemtrack.lambda (:require [cljs-lambda.util :refer [async-lambda-fn]] [cljs.core.async :as async :refer [<!]] [fink-nottle.sns :as sns] [fink-nottle.sqs :as sqs] [glossop.util] [eulalie.creds]) (:require-macros [cljs.core.async.macros :refer [go]])) ...
2e88ce296bd4ef1413f3846b378149367bb791d58f1aff37e2c12a98486de539
TheLortex/mirage-monorepo
migrate_413_412.ml
open Stdlib0 module From = Ast_413 module To = Ast_412 let migration_error loc missing_feature = Location.raise_errorf ~loc "migration error: %s is not supported before OCaml 4.13" missing_feature let rec copy_toplevel_phrase : Ast_413.Parsetree.toplevel_phrase -> Ast_412.Parsetree.toplevel_phrase = funct...
null
https://raw.githubusercontent.com/TheLortex/mirage-monorepo/b557005dfe5a51fc50f0597d82c450291cfe8a2a/duniverse/ppxlib/astlib/migrate_413_412.ml
ocaml
open Stdlib0 module From = Ast_413 module To = Ast_412 let migration_error loc missing_feature = Location.raise_errorf ~loc "migration error: %s is not supported before OCaml 4.13" missing_feature let rec copy_toplevel_phrase : Ast_413.Parsetree.toplevel_phrase -> Ast_412.Parsetree.toplevel_phrase = funct...
97343d748f55a0da6fdde5627c166ec30823a706e8361a4f7b080b2997530d1e
lpeterse/haskell-hummingbird
Response.hs
# LANGUAGE DeriveGeneric # module Hummingbird.Administration.Response where -------------------------------------------------------------------------------- -- | -- Module : Hummingbird.Administration.Response Copyright : ( c ) 2017 License : MIT -- -- Maintainer : -- Stability : experimen...
null
https://raw.githubusercontent.com/lpeterse/haskell-hummingbird/1e380d53cc5bc06ca2cbac2ff8359dc5aab6b199/src/Hummingbird/Administration/Response.hs
haskell
------------------------------------------------------------------------------ | Module : Hummingbird.Administration.Response Maintainer : Stability : experimental ------------------------------------------------------------------------------
# LANGUAGE DeriveGeneric # module Hummingbird.Administration.Response where Copyright : ( c ) 2017 License : MIT import Control.Monad import Control.Monad.IO.Class import qualified Data.Binary as B import qualified Data.ByteString.Lazy as LBS i...
9182321837fe303b757648992e564ff97fcfa7f0a44b6a3e62d0d8e64517ed9a
biocaml/phylogenetics
alignment.mli
(** A representation for sequence alignments The following invariants are maintained: - the alignment is non-empty - all sequences have the same length *) type t val nrows : t -> int val ncols : t -> int val description : t -> int -> string val sequence : t -> int -> string type error = [ | `Empty_al...
null
https://raw.githubusercontent.com/biocaml/phylogenetics/712e1a3f3fb505c11cdf6885ed38e0f1ca6dcb10/lib/alignment.mli
ocaml
* A representation for sequence alignments The following invariants are maintained: - the alignment is non-empty - all sequences have the same length * Same as {! from_file} but raises [Failure] if some error happens
type t val nrows : t -> int val ncols : t -> int val description : t -> int -> string val sequence : t -> int -> string type error = [ | `Empty_alignment | `Unequal_sequence_lengths ] [@@deriving show] val map : t -> f:(description:string -> sequence:string -> string * string) -> (t, [> `Unequal_sequence...
47bd122551c91b80e8e03163ea98b65830aae16a1d92de80091b509c23136907
chunsj/TH
gench-do-lstm3-obama.lisp
;; from ;; -effectiveness/ (defpackage :gench-do-lstm3-obama (:use #:common-lisp #:mu #:th #:th.ex.data)) (in-package :gench-do-lstm3-obama) ;; 3 - layer lstm with dropout ;; (defparameter *data-lines* (text-lines :obama)) (defparameter *data* (format nil "~{~A~^~%~}" *data-lines*)) (def...
null
https://raw.githubusercontent.com/chunsj/TH/890f05ab81148d9fe558be3979c30c303b448480/examples/genchars/gench-do-lstm3-obama.lisp
lisp
from -effectiveness/ ; for continued training
(defpackage :gench-do-lstm3-obama (:use #:common-lisp #:mu #:th #:th.ex.data)) (in-package :gench-do-lstm3-obama) 3 - layer lstm with dropout (defparameter *data-lines* (text-lines :obama)) (defparameter *data* (format nil "~{~A~^~%~}" *data-lines*)) (defparameter *chars* (remove-duplica...
4d113581966c98eec589b22b227894f8f4572d461595a7bd7656eb866ebe8939
rtoy/cmucl
bit-stream.lisp
-*- Log : hemlock.log ; Package : Hemlock - Internals -*- ;;; ;;; ********************************************************************** This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . ;;; (ext:file-comment "$Header: src/hem...
null
https://raw.githubusercontent.com/rtoy/cmucl/9b1abca53598f03a5b39ded4185471a5b8777dea/src/hemlock/bit-stream.lisp
lisp
Package : Hemlock - Internals -*- ********************************************************************** ********************************************************************** Some stuff to make streams that write out on bitmap hunks. These streams have an associated bitmap-hunk that is used for its font-fa...
This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . (ext:file-comment "$Header: src/hemlock/bit-stream.lisp $") Written by . Modified by to run under X on the IBM RT . (in-package "HEMLOCK-INTERNALS") The hunk need not...
1484aa82cf5a08dc08077a97e40c348390721529e58d849b76b46236d842c5b3
digitallyinduced/ihp
Types.hs
| Module : IHP.Modal . Types Copyright : ( c ) digitally induced GmbH , 2020 Module: IHP.Modal.Types Copyright: (c) digitally induced GmbH, 2020 -} module IHP.Modal.Types ( Modal (..) , ModalContainer (..) ) where import IHP.Prelude import Text.Blaze.Html5 (Html) data Modal = Modal { modalContent :: Html ...
null
https://raw.githubusercontent.com/digitallyinduced/ihp/d98c3d6eb8145d859c9ce461e7d1367be5be7337/IHP/Modal/Types.hs
haskell
| Stores the current modal inside @?context@
| Module : IHP.Modal . Types Copyright : ( c ) digitally induced GmbH , 2020 Module: IHP.Modal.Types Copyright: (c) digitally induced GmbH, 2020 -} module IHP.Modal.Types ( Modal (..) , ModalContainer (..) ) where import IHP.Prelude import Text.Blaze.Html5 (Html) data Modal = Modal { modalContent :: Html ...
7ec64a1b3868b773d1b3681e080770bf7c8ba0e1071d4bcc66a63f53462eda23
input-output-hk/marlowe-cardano
AssocMap.hs
----------------------------------------------------------------------------- -- -- Module : $Headers License : Apache 2.0 -- -- Stability : Experimental Portability : Portable -- | Test the ` PlutusTx . AssocMap ` functions used by the validators . -- ------------------------------------------...
null
https://raw.githubusercontent.com/input-output-hk/marlowe-cardano/b1b5d77e3fc78caa9fd67106e49c97ebc49438ec/marlowe-test/src/Spec/Marlowe/Plutus/AssocMap.hs
haskell
--------------------------------------------------------------------------- Module : $Headers Stability : Experimental --------------------------------------------------------------------------- * Testing | Run tests. | `fromList` is the inverse of `toList`. | `toList` is the inverse of `fromList`. ...
License : Apache 2.0 Portability : Portable | Test the ` PlutusTx . AssocMap ` functions used by the validators . module Spec.Marlowe.Plutus.AssocMap tests ) where import Spec.Marlowe.Semantics.Arbitrary (arbitraryAssocMap) import Spec.Marlowe.Semantics.AssocMap (assocMapDelete, assocMapEq, as...
8009f50e2a1ce0c0d4246fc9b42334132bd4aa5660de3acbfb963e71bd2d1c16
mpelleau/AbSolute
polynomial.ml
open Libabsolute (* example of polynomial solving *) module Solver = Solver.Make (Domains.Boolean.Make (Domains.BoxS)) let () = let open Csp in let prob = empty |> add_real_var_f "x" (-1000.) 1000. |> add_constr (Parser.constr {|3*x^2 +4*x -5 <= 0|}) in match Solver.witness 0.000001 1000000 prob w...
null
https://raw.githubusercontent.com/mpelleau/AbSolute/8cdea2008161a7c4899db653b85da88b2fe79891/examples/polynomial.ml
ocaml
example of polynomial solving
open Libabsolute module Solver = Solver.Make (Domains.Boolean.Make (Domains.BoxS)) let () = let open Csp in let prob = empty |> add_real_var_f "x" (-1000.) 1000. |> add_constr (Parser.constr {|3*x^2 +4*x -5 <= 0|}) in match Solver.witness 0.000001 1000000 prob with | Witness i -> Format.pr...
9e0a9c4de4a7ed000482df067c0a46c402c3a9a32728d11264a6f8c4dac6ba47
lspitzner/brittany
Test437.hs
-- brittany { lconfig_columnAlignMode: { tag: ColumnAlignModeDisabled }, lconfig_indentPolicy: IndentPolicyLeft } func = (`abc` 1)
null
https://raw.githubusercontent.com/lspitzner/brittany/a15eed5f3608bf1fa7084fcf008c6ecb79542562/data/Test437.hs
haskell
brittany { lconfig_columnAlignMode: { tag: ColumnAlignModeDisabled }, lconfig_indentPolicy: IndentPolicyLeft }
func = (`abc` 1)
253273266d965ed25ee32526e524c5862de439d8e7930e438d11d8286ab574ed
strint/sicpAns
1027_prime_carmichael_number.scm
(define (fermat-test n) (define (test-all-a count result) (display count) (display result) (newline) (if result (if (> count 1) test all a , 1 < a < n #t) #f)) (define (try-it a) (= (expmod a n n) a)) (test-all-a n #t)) (define (expmod base expo m) (cond ((= expo 0) 1) ...
null
https://raw.githubusercontent.com/strint/sicpAns/efc4bdfaab7583117d42f2141d4b3b9e12792b79/1.2.6-6_Primes/1027_prime_carmichael_number.scm
scheme
(define (fermat-test n) (define (test-all-a count result) (display count) (display result) (newline) (if result (if (> count 1) test all a , 1 < a < n #t) #f)) (define (try-it a) (= (expmod a n n) a)) (test-all-a n #t)) (define (expmod base expo m) (cond ((= expo 0) 1) ...
9357e2efb0112bc67151543e01757db8147b223354085c26562a99015bc8df1e
camllight/camllight
mainloop.ml
#open "unix";; let NextCallback () = let str = GetTkToken !PipeTkCallB in try (hashtbl__find callback_table str) () with exc -> CloseTk(); raise exc ;; (* Support for fileinput callbacks *) let channel_callbacks = (hashtbl__new 11 : (file_descr, (unit -> unit)) hashtbl__t);; let channels = ref ([] : fil...
null
https://raw.githubusercontent.com/camllight/camllight/0cc537de0846393322058dbb26449427bfc76786/sources/contrib/camltk/libsupport/mainloop.ml
ocaml
Support for fileinput callbacks Redefine OpenTk with fileinput support Redefine CloseTk so it appears in module tk
#open "unix";; let NextCallback () = let str = GetTkToken !PipeTkCallB in try (hashtbl__find callback_table str) () with exc -> CloseTk(); raise exc ;; let channel_callbacks = (hashtbl__new 11 : (file_descr, (unit -> unit)) hashtbl__t);; let channels = ref ([] : file_descr list) ;; let add_fileinput fd...
070ecd6b4116febf11f7d813707da51359c67d56cdd9ff4921545fbb50cd6c9b
Clojure2D/clojure2d-examples
tree_8_6.clj
(ns examples.NOC.ch08.tree-8-6 (:require [clojure2d.core :refer :all] [fastmath.core :as m])) (defn branch "Generate branches." [canvas len theta] (let [nlen (* 0.66 len)] (-> canvas (set-stroke 2.0) (line 0 0 0 (- len)) (translate 0 (- len))) (if (> nlen 2.0) ...
null
https://raw.githubusercontent.com/Clojure2D/clojure2d-examples/9de82f5ac0737b7e78e07a17cf03ac577d973817/src/NOC/ch08/tree_8_6.clj
clojure
(ns examples.NOC.ch08.tree-8-6 (:require [clojure2d.core :refer :all] [fastmath.core :as m])) (defn branch "Generate branches." [canvas len theta] (let [nlen (* 0.66 len)] (-> canvas (set-stroke 2.0) (line 0 0 0 (- len)) (translate 0 (- len))) (if (> nlen 2.0) ...
5783f2b2bf36ca736266afe9dd24a6531bd3d22695b6c4b6f58d279f2ea28e43
xach/zs3
objects.lisp
;;;; Copyright ( c ) 2008 , 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 o...
null
https://raw.githubusercontent.com/xach/zs3/1294bd38c4cd00c6b2f628b05ad0f88b193c067a/objects.lisp
lisp
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form...
Copyright ( c ) 2008 , All Rights Reserved DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , objects.lisp (in-package #:zs3) (defclass person () ((id :initarg :id :accessor id) (display-name :initarg :displ...
7eb39363c47b3017bba3e9caa6a29c01db9ec8ac2c4ee7071ee5eef2e5d148d6
GrammaticalFramework/gf-core
CId.hs
module PGF.CId (CId(..), mkCId, wildCId, readCId, showCId, -- utils utf8CId, pCId, pIdent, ppCId) where import Control.Monad import qualified Data.ByteString.Char8 as BS import qualified Data.ByteString.UTF8 as UTF8 import Data.Char impo...
null
https://raw.githubusercontent.com/GrammaticalFramework/gf-core/9b4f2dd18b64b770aaebfa1885085e8e3447f119/src/runtime/haskell/PGF/CId.hs
haskell
utils | An abstract data type that represents | Creates a new identifier from 'String' | Reads an identifier from 'String'. The function returns 'Nothing' if the string is not valid identifier. | Renders the identifier as 'String' where
module PGF.CId (CId(..), mkCId, wildCId, readCId, showCId, utf8CId, pCId, pIdent, ppCId) where import Control.Monad import qualified Data.ByteString.Char8 as BS import qualified Data.ByteString.UTF8 as UTF8 import Data.Char import qualified Text.ParserC...
f080ab1467747e9f07ebbfa51230f63dc94be6d9d18f5b31f92195d4eb2be86c
JonyEpsilon/darwin
random.clj
; This file is part of . ; Copyright ( C ) 2014- , Imperial College , London , All rights reserved . ; Contributors : ; Released under the MIT license .. ; (ns darwin.utility.random "Random number generators and associated functions. These mirror the functions in clojure.core, but use java's ThreadLocal...
null
https://raw.githubusercontent.com/JonyEpsilon/darwin/2b27aa83ec0b7bbc37effed243bf92673de586ea/src/darwin/utility/random.clj
clojure
This file is part of . Copyright ( C ) 2014- , Imperial College , London , All rights reserved . Contributors : Released under the MIT license .. (ns darwin.utility.random "Random number generators and associated functions. These mirror the functions in clojure.core, but use java's ThreadLocalRandom whi...
8034e8ba07de549e8751528647f33c3e92323de0e76cb5156d3f10809fad0f75
lambdacms/lambdacms
Import.hs
# LANGUAGE CPP # module LambdaCms.Media.Import ( module Import ) where import Prelude as Import hiding (head, init, last, readFile, tail, writeFile) import ...
null
https://raw.githubusercontent.com/lambdacms/lambdacms/3b9cd54f8f168d6c984d29d944895d7d742e30b9/lambdacms-media/LambdaCms/Media/Import.hs
haskell
# LANGUAGE CPP # module LambdaCms.Media.Import ( module Import ) where import Prelude as Import hiding (head, init, last, readFile, tail, writeFile) import ...
586b479365456adc68755c825de72f31115657ef5fe7939ebcd78be93b3f7bce
jashmenn/chordjerl
ch_id_utils.erl
%%%------------------------------------------------------------------- %%% File : ch_id_utils.erl Author : < > %%% Description : Utilities for calculating ids Created : 2009 - 01 - 23 %%%------------------------------------------------------------------- -module(ch_id_utils). -compile(export_a...
null
https://raw.githubusercontent.com/jashmenn/chordjerl/212a687e785c9ac48902c79d7d3e67cf5b68c413/src/ch_id_utils.erl
erlang
------------------------------------------------------------------- File : ch_id_utils.erl Description : Utilities for calculating ids ------------------------------------------------------------------- -------------------------------------------------------------------- Code ported from chord c code. Math...
Author : < > Created : 2009 - 01 - 23 -module(ch_id_utils). -compile(export_all). -include_lib("../include/defines.hrl"). Function : successor_id(CurrentId , Index ) - > { ok , } Description : given CurrentId and Index returns the minimum I d required by the I'th successor B = ( 1 bsl ? NB...
f10a941b7c0d7b63437ceb01ba66870e19e350ecef047ed99f30ebe1527d4eb6
bmeurer/ocaml-experimental
jit.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , U...
null
https://raw.githubusercontent.com/bmeurer/ocaml-experimental/fe5c10cdb0499e43af4b08f35a3248e5c1a8b541/toplevel/amd64/jit.ml
ocaml
********************************************************************* Objective Caml ...
, University of Siegen Copyright 2011 Compilerbau und Softwareanalyse , Universität Siegen . All rights reserved . This file is distri- buted under the terms of the Q Public License version 1.0 . $ Id$ JIT emission of x86 - 64 ( AMD 64 ) assembly ...
c78b061350c557bb026ae3142a15b72d0a4fa9bd9b04a1f935fce00b1c7a081e
josephwilk/functions-as-patterns
color.clj
(ns functions-as-patterns.color (require [mikera.image.core :refer :all] [mikera.image.colours :refer :all] [com.evocomputing.colors :as colors])) (def blank-color (colors/create-color "#663477")) (def highlight-color (colors/create-color "#EE5C96")) (def stroke-color (colors/create-colo...
null
https://raw.githubusercontent.com/josephwilk/functions-as-patterns/a0ef526b2f8b44755d49dd252c78afef67d5c282/src/functions_as_patterns/color.clj
clojure
debug Some odd clojure fn noise?
(ns functions-as-patterns.color (require [mikera.image.core :refer :all] [mikera.image.colours :refer :all] [com.evocomputing.colors :as colors])) (def blank-color (colors/create-color "#663477")) (def highlight-color (colors/create-color "#EE5C96")) (def stroke-color (colors/create-colo...
79978d50f7a53f4bae441a13cb16fd86e0fdae9a951d96b4ae9a47b351ae9d78
arttuka/reagent-material-ui
transcribe.cljs
(ns reagent-mui.icons.transcribe "Imports @mui/icons-material/Transcribe as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def transcribe (create-svg-icon (e "pat...
null
https://raw.githubusercontent.com/arttuka/reagent-material-ui/14103a696c41c0eb67fc07fc67cd8799efd88cb9/src/icons/reagent_mui/icons/transcribe.cljs
clojure
(ns reagent-mui.icons.transcribe "Imports @mui/icons-material/Transcribe as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def transcribe (create-svg-icon (e "pat...
973c0168b9340a9f41562e0b2b4039352cd20bdd884c8e2339623f8909655a77
NorfairKing/the-notes
Macro.hs
module Cryptography.ComputationalProblems.Abstract.Macro where import Types import Macro.MetaMacro import Functions.Application.Macro -- * Problems probl_ :: Note probl_ = "p" -- | Concrete set of problems probs_ :: Note probs_ = comm0 "Theta" -- | Set of solvers for a problem solvs ...
null
https://raw.githubusercontent.com/NorfairKing/the-notes/ff9551b05ec3432d21dd56d43536251bf337be04/src/Cryptography/ComputationalProblems/Abstract/Macro.hs
haskell
* Problems | Concrete set of problems | Set of solvers for a problem | Concrete set of solvers | Performance set of a problem | Performance function * Cases | Worst-case of a problem | Problem in case of the given distribution | Average-case of a problem" | An abstract problem of which the instance space is ...
module Cryptography.ComputationalProblems.Abstract.Macro where import Types import Macro.MetaMacro import Functions.Application.Macro probl_ :: Note probl_ = "p" probs_ :: Note probs_ = comm0 "Theta" solvs :: Note -> Note solvs = (comm0 "Sigma" !:) solvs_ :: Note solvs_ = solvs prob...
332c3ee6e100202bdc8b0378799f29b81169d0f94bfad8ceedbe970c71921c70
DestyNova/advent_of_code_2021
Part2.hs
module Main where import Text.Parsec import Data.List (minimumBy) import Data.Ord (comparing) type Board = [[Int]] main = do txt <- readFile "input.txt" let (Right crabs) = parse parser "" txt print $ getCost crabs getCost :: [Int] -> (Int,Int) getCost crabs = minimumBy (comparing snd) fuelCosts where fuelC...
null
https://raw.githubusercontent.com/DestyNova/advent_of_code_2021/2da350675e451703293cdd6aab54af82a1c6e377/day7/Part2.hs
haskell
module Main where import Text.Parsec import Data.List (minimumBy) import Data.Ord (comparing) type Board = [[Int]] main = do txt <- readFile "input.txt" let (Right crabs) = parse parser "" txt print $ getCost crabs getCost :: [Int] -> (Int,Int) getCost crabs = minimumBy (comparing snd) fuelCosts where fuelC...
ce5432302a2cadb5162558059ef2f363450ba2ad20ea2021aaa949a03d6f56da
marick/structural-typing
f_path_mismatches.clj
(ns structural-typing.use.f-path-mismatches "Cases where no additions to the value could make it match the path" (:use midje.sweet structural-typing.type structural-typing.global-type structural-typing.clojure.core structural-typing.assist.testutil) (:refer-clojure :except [any?]))...
null
https://raw.githubusercontent.com/marick/structural-typing/9b44c303dcfd4a72c5b75ec7a1114687c809fba1/test/structural_typing/use/f_path_mismatches.clj
clojure
Note that this is NOT an error. Note that this is NOT an error. This means negative values of `:a` must be even. Since there are none... Similarly, the following expression is about strings, which there ain't any of NOTE: This is an example of how error messages might be usefully condensed.
(ns structural-typing.use.f-path-mismatches "Cases where no additions to the value could make it match the path" (:use midje.sweet structural-typing.type structural-typing.global-type structural-typing.clojure.core structural-typing.assist.testutil) (:refer-clojure :except [any?]))...
278e1627408ec52ac71e407229a3d33dd443d93fd6d2df374a746d6074905f0e
mfoemmel/erlang-otp
wxEraseEvent.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2008 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/wx/src/gen/wxEraseEvent.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 2008 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " See also the message variant { @link wxE...
376b8b34f9de9461754530bdd37cede168f136dd6080e1c67aab6bdaa975d349
tweag/capability
Class.hs
-- | Defines a capability for computations that consume a stream of values -- as part of their execution. -- -- Programs comsuming streams of data are common. Examples: rolling up input -- events. Sources are similar to Python generators. -- -- This can be thought of as a reader capability where there's no guarantee th...
null
https://raw.githubusercontent.com/tweag/capability/398608b25a3b1b34ba3608ca2631cddb415e0733/src/Capability/Source/Internal/Class.hs
haskell
| Defines a capability for computations that consume a stream of values as part of their execution. Programs comsuming streams of data are common. Examples: rolling up input events. Sources are similar to Python generators. This can be thought of as a reader capability where there's no guarantee that one reads ...
The ' HasSource ' capability enables separating the logic responsible for # LANGUAGE AllowAmbiguousTypes # # LANGUAGE DerivingVia # # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE FunctionalDependencies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE KindSignatures # # LANGUAGE MagicHash...
7f3c856fb5e7fb2e9f15b08df981c83b8e23971ac891869f58be2c6dc18f7fe8
Nayshins/ocaml-tic-tac-toe
negamaxTest.ml
open Core.Std open OUnit2 open Token open Negamax let board_score_test_X_win test_ctxt = assert_equal ~ctxt:test_ctxt 1000 (Negamax.board_score [X;O;X; EMPTY 1; EMPTY 2; EMPTY 3; X;X;X] X) let board_score_test_O_loss test_ctxt = assert_equal ~ctx...
null
https://raw.githubusercontent.com/Nayshins/ocaml-tic-tac-toe/a177feed4938552ce7df79f0e4d09b24cdcb3667/test/negamaxTest.ml
ocaml
open Core.Std open OUnit2 open Token open Negamax let board_score_test_X_win test_ctxt = assert_equal ~ctxt:test_ctxt 1000 (Negamax.board_score [X;O;X; EMPTY 1; EMPTY 2; EMPTY 3; X;X;X] X) let board_score_test_O_loss test_ctxt = assert_equal ~ctx...
717f428ceebc8a45bebc137fe043601220b9410a326b008469c219009ab0f269
NashFP/bowling
bowling.erl
-module(bowling). -export([score/1, tweetable_score/1, tweetable_ermahgerd_score/1]). score(Frames) -> Score = score(lists:flatten(Frames), 0), FrameCount = length(Frames), case {FrameCount, Score} of {10, 0} -> {complete, 0, "Skunky town..."}; {10, 300} -> {complete, 300, "Perfect game!"}; {10, _}...
null
https://raw.githubusercontent.com/NashFP/bowling/d7829668fc221784528019796cc33011b1c65a2d/yellow5%2Berlang/bowling.erl
erlang
-module(bowling). -export([score/1, tweetable_score/1, tweetable_ermahgerd_score/1]). score(Frames) -> Score = score(lists:flatten(Frames), 0), FrameCount = length(Frames), case {FrameCount, Score} of {10, 0} -> {complete, 0, "Skunky town..."}; {10, 300} -> {complete, 300, "Perfect game!"}; {10, _}...
cbaed0db13c770d8fabe20427055a122e13f6a27e1e1207b0a7f8515911abf35
onedata/op-worker
atm_lambda_execution_config_entries.erl
%%%------------------------------------------------------------------- @author ( C ) 2023 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%------------------------------------------------------------------- %%% @doc %%% Helper module for constructing lam...
null
https://raw.githubusercontent.com/onedata/op-worker/2c347ac8c1a3f7f9723d4b1825bd915df0f49dde/src/modules/automation/task/config/atm_lambda_execution_config_entries.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- @doc Helper module for constructing lambda execution config entries. @end ------------------------------------------------------------------- API ============================...
@author ( C ) 2023 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . -module(atm_lambda_execution_config_entries). -author("Bartosz Walkowicz"). -include("modules/automation/atm_execution.hrl"). -export([build_entries/3, acquire_config/2]). -spec build_entries(...
f6f0adf1149248c966468789dfab789cdec25b47ea0f7ee0ce65c94c0670128a
luminus-framework/examples
app.cljs
(ns multi-client-ws-http-kit.app (:require [multi-client-ws-http-kit.core :as core])) ;;ignore println statements in prod (set! *print-fn* (fn [& _])) (core/init!)
null
https://raw.githubusercontent.com/luminus-framework/examples/cbeee2fef8f457a6a6bac2cae0b640370ae2499b/multi-client-ws-http-kit/env/prod/cljs/multi_client_ws_http_kit/app.cljs
clojure
ignore println statements in prod
(ns multi-client-ws-http-kit.app (:require [multi-client-ws-http-kit.core :as core])) (set! *print-fn* (fn [& _])) (core/init!)
32a5c7e741e55ca24bdfb45300a075bb7b3b61ccbd66df365421a1c1f1e094a9
metaocaml/ber-metaocaml
pr4018_bad.ml
TEST flags = " -w a " ocamlc_byte_exit_status = " 2 " * setup - ocamlc.byte - build - env * * ocamlc.byte * * * check - ocamlc.byte - output flags = " -w a " ocamlc_byte_exit_status = "2" * setup-ocamlc.byte-build-env ** ocamlc.byte *** check-ocamlc.byte-output *) class virtual ['subject, 'event] observe...
null
https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/testsuite/tests/typing-objects-bugs/pr4018_bad.ml
ocaml
TEST flags = " -w a " ocamlc_byte_exit_status = " 2 " * setup - ocamlc.byte - build - env * * ocamlc.byte * * * check - ocamlc.byte - output flags = " -w a " ocamlc_byte_exit_status = "2" * setup-ocamlc.byte-build-env ** ocamlc.byte *** check-ocamlc.byte-output *) class virtual ['subject, 'event] observe...
0861fe298df5ba1898e41e3d329ff341dac6b06f949822aae1dbe57eb198389a
tezos/tezos-mirror
main.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2021 Nomadic Labs < > (* ...
null
https://raw.githubusercontent.com/tezos/tezos-mirror/c50423992947f9d3bf33f91ec8000f3a0a70bc2d/src/proto_016_PtMumbai/lib_protocol/test/integration/michelson/main.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2021 Nomadic Labs < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN AN...
91a48d491df7fec4bb07b99e6bb4149f985adeb894ba854ee3c04aa0c0f296e8
brunjlar/neural
Graph.hs
# LANGUAGE ScopedTypeVariables # module Graph where import Control.Monad import Control.Monad.ST (ST, runST) import qualified Data.Array.Unboxed as U import qualified Data.Array.ST as ST graph :: (Double -> Double) -> Double -> Double -> Int -> Int -> IO () graph f xMin xMax height width =...
null
https://raw.githubusercontent.com/brunjlar/neural/1211d1a2bed14b4036f48c500f945fea027cd3b9/examples/sin/Graph.hs
haskell
# LANGUAGE ScopedTypeVariables # module Graph where import Control.Monad import Control.Monad.ST (ST, runST) import qualified Data.Array.Unboxed as U import qualified Data.Array.ST as ST graph :: (Double -> Double) -> Double -> Double -> Int -> Int -> IO () graph f xMin xMax height width =...
b019bf7237b3728bf5fc1092d13d067d90089db788f905d8c3c8522ba1d72f98
aarkerio/ZentaurLMS
seeder.clj
(ns luminus.seeder "Seed DB for dev and test environments" (:require [clojure.tools.logging :as log] [mount.core :as mount] [zentaur.db.core :as db] [zentaur.models.tests :as mt] [zentaur.models.users :as mu])) (def question-txt ["Condimentum mattis pellentesque id n...
null
https://raw.githubusercontent.com/aarkerio/ZentaurLMS/adb43fb879b88d6a35f7f556cb225f7930d524f9/src/clj/luminus/seeder.clj
clojure
necessary for testing
(ns luminus.seeder "Seed DB for dev and test environments" (:require [clojure.tools.logging :as log] [mount.core :as mount] [zentaur.db.core :as db] [zentaur.models.tests :as mt] [zentaur.models.users :as mu])) (def question-txt ["Condimentum mattis pellentesque id n...
acb1d27e43411b5bb56e30531a6f3ea81eb5494878040c1649674362fc8bb672
RefactoringTools/HaRe
InferenceMonad.hs
$ I d : InferenceMonad.hs , v 1.6 2001/03/28 22:08:56 sheard Exp $ module InferenceMonad where import ST data Value g b = Good g | Bad b deriving (Show, Eq) newtype IM a e x = Ck (Int -> (ST a (Value x e, String, Int))) instance Functor (IM a e) where fmap f (Ck g) = Ck h where h n = do { (x, out, n') <-...
null
https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/old/tools/base/TC/InferenceMonad.hs
haskell
Non standard morphisms for IM monad ---------------- - First Mutable vars ---------------------- ----------- Then printing and error handling ----------- ------------ Finally the run function for the monad --------------
$ I d : InferenceMonad.hs , v 1.6 2001/03/28 22:08:56 sheard Exp $ module InferenceMonad where import ST data Value g b = Good g | Bad b deriving (Show, Eq) newtype IM a e x = Ck (Int -> (ST a (Value x e, String, Int))) instance Functor (IM a e) where fmap f (Ck g) = Ck h where h n = do { (x, out, n') <-...
10ef586f453111070a75f196e4a764072f3638e59566658dc97094431adc7322
qitab/ace.core
io-test.lisp
Copyright 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 ;;; . ;;; Test for #:ace.core.io. (defpackage #:ace.core.io-test (:use #:common-lisp #:ace.core.io #:ace.core.os #:ace.test) (:import-from #:ace.c...
null
https://raw.githubusercontent.com/qitab/ace.core/e6eb21ff67b0c5eaec21c9b543b6dce18d7c8e6d/io-test.lisp
lisp
license that can be found in the LICENSE file or at . Test for #:ace.core.io. Let's set the temporary directory to the TEST_UNDECLARED_OUTPUTS_DIR... for demonstration purpose that temporary files are always temporary - i.e. they disappear.
Copyright 2020 Google LLC Use of this source code is governed by an MIT - style (defpackage #:ace.core.io-test (:use #:common-lisp #:ace.core.io #:ace.core.os #:ace.test) (:import-from #:ace.core.io #:*temporary-directory*)) (in-package #:ace.core.io-test) (deftest directory-pathname...
08545c94075e73e8f9316701e34b73286953e995158c50a2fbb3973947e15217
zenspider/schemers
exercise.1.33.scm
#lang racket/base Exercise 1.33 : ;; You can obtain an even more general version of `accumulate' ( * Note Exercise 1 - 32 ) by introducing the notion of a " filter " on the ;; terms to be combined. That is, combine only those terms derived ;; from values in the range that satisfy a specified condition. The ;; res...
null
https://raw.githubusercontent.com/zenspider/schemers/2939ca553ac79013a4c3aaaec812c1bad3933b16/sicp/ch_1/exercise.1.33.scm
scheme
You can obtain an even more general version of `accumulate' terms to be combined. That is, combine only those terms derived from values in the range that satisfy a specified condition. The resulting `filtered-accumulate' abstraction takes the same arguments as accumulate, together with an additional predicate of ...
#lang racket/base Exercise 1.33 : ( * Note Exercise 1 - 32 ) by introducing the notion of a " filter " on the one argument that specifies the filter . Write ` filtered - accumulate ' (define (filtered-accumulate fold identity filter f a b n) (define (iterate a result) (if (> a b) result (iterate ...
4926bc03440b83a19eb853b4aaad19878af8a3e8f5fbf7472ee7ef9d73b5b568
maurer/symfuzz
rcfg.ml
(* SymFuzz *) * CFG recovery @author < sangkil.cha\@gmail.com > @since 2014 - 03 - 19 @author Sang Kil Cha <sangkil.cha\@gmail.com> @since 2014-03-19 *) Copyright ( c ) 2014 , All rights reserved . Redistribution and use in source and binary forms , with or without modifi...
null
https://raw.githubusercontent.com/maurer/symfuzz/ea6298746a23b6d266d28d27c6ff952a7bd14885/src/analyzer/rcfg.ml
ocaml
SymFuzz XXX: this is large enough in most cases reverse cfg will create an exit node cfg_debugging st; TODO : handle tid for threaded apps
* CFG recovery @author < sangkil.cha\@gmail.com > @since 2014 - 03 - 19 @author Sang Kil Cha <sangkil.cha\@gmail.com> @since 2014-03-19 *) Copyright ( c ) 2014 , All rights reserved . Redistribution and use in source and binary forms , with or without modification , are p...
eccdff1034aeadb1d95a6d743d2b58afee2efa592e92cb92d6fcec61d1f2312a
ekmett/ekmett.github.com
Coproduct.hs
# LANGUAGE TypeOperators # module Data.Rope.Util.Coproduct ( (:+:)(..) , (:+)(..) , Coproduct(..) , counzip ) where import Control.Applicative import Data.Rope.Util.Bifunctor counzip :: (Coproduct s, Coproduct s', Functor f) => s (f a) (f b) -> f (s' a b) counzip = fmap left ||| fmap right -- a c...
null
https://raw.githubusercontent.com/ekmett/ekmett.github.com/8d3abab5b66db631e148e1d046d18909bece5893/haskell/rope/Data/Rope/Util/Coproduct.hs
haskell
a coproduct that is strict in its left argument only
# LANGUAGE TypeOperators # module Data.Rope.Util.Coproduct ( (:+:)(..) , (:+)(..) , Coproduct(..) , counzip ) where import Control.Applicative import Data.Rope.Util.Bifunctor counzip :: (Coproduct s, Coproduct s', Functor f) => s (f a) (f b) -> f (s' a b) counzip = fmap left ||| fmap right data a...
b8087b1545d6ab7936ee8e724cb9364e73a1643da23cd9a4d78a714519444991
tomahawkins/verilog
Tokens.hs
module Language.Verilog.Parser.Tokens ( Token (..) , TokenName (..) , Position (..) , tokenString ) where import Text.Printf tokenString :: Token -> String tokenString (Token _ s _) = s data Position = Position String Int Int deriving Eq instance Show Position where show (Position f l c) = printf "...
null
https://raw.githubusercontent.com/tomahawkins/verilog/5c48d9e88f70b445b53644baaafda9f75f60a5b5/Language/Verilog/Parser/Tokens.hs
haskell
\$fullskew \$hold \$nochange \$period \$randomize \$recovery \$recrem \$removal \$root \$setup \$setuphold \$skew \$timeskew -- \$width \$fullskew \$hold \$nochange \$period \$randomize \$recovery \$recrem \$removal \$root \$setup \$setuphold \$skew \$timeskew \$unit \$width
module Language.Verilog.Parser.Tokens ( Token (..) , TokenName (..) , Position (..) , tokenString ) where import Text.Printf tokenString :: Token -> String tokenString (Token _ s _) = s data Position = Position String Int Int deriving Eq instance Show Position where show (Position f l c) = printf "...
f0b0865f981d1b1290038f7a719ed98ddad7702606424635818f8eb6e965d02c
xh4/web-toolkit
client.lisp
(in-package :websocket) (defun connect (endpoint uri) (unless (equal (uri-scheme uri) "ws") (error "Expect ws scheme in uri")) (let* ((host (uri-host uri)) (port (or (uri-port uri) 80)) (request (make-instance 'http:request :method :get ...
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/websocket/client.lisp
lisp
(in-package :websocket) (defun connect (endpoint uri) (unless (equal (uri-scheme uri) "ws") (error "Expect ws scheme in uri")) (let* ((host (uri-host uri)) (port (or (uri-port uri) 80)) (request (make-instance 'http:request :method :get ...
2068e34c3c1eefbe294b1a144e5ed2f2a22240f93b9290ab0b63631b51cc67e4
rjnw/sham
env.rkt
#lang racket (provide (all-defined-out)) (define (to-string s) (match s [(? symbol?) (symbol->string s)] [(? string?) s] [(? false?) s] [else (error 'sham "invalid name for sham values ~a" s)])) (define (normalize-id s) (string-downcase (string-replace (string-replace (to-string s) "_" "") ...
null
https://raw.githubusercontent.com/rjnw/sham/6e0524b1eb01bcda83ae7a5be6339da4257c6781/sham-llvm/sham/private/env.rkt
racket
#lang racket (provide (all-defined-out)) (define (to-string s) (match s [(? symbol?) (symbol->string s)] [(? string?) s] [(? false?) s] [else (error 'sham "invalid name for sham values ~a" s)])) (define (normalize-id s) (string-downcase (string-replace (string-replace (to-string s) "_" "") ...
32fa80f5b055d0061f807c61b30d943cb243f890b58e5c9fe6807a1158b12af1
scsibug/hS3
hS3.hs
----------------------------------------------------------------------------- -- | Module : Copyright : ( c ) 2007 -- License : BSD3 -- -- Command-line program for interacting with S3. ----------------------------------------------------------------------------- module Main where import Networ...
null
https://raw.githubusercontent.com/scsibug/hS3/ca0c0a4f48f2343324fce94da9c30a8718db7905/hS3.hs
haskell
--------------------------------------------------------------------------- | License : BSD3 Command-line program for interacting with S3. --------------------------------------------------------------------------- failure create / empty / delete bucket objects
Module : Copyright : ( c ) 2007 module Main where import Network.AWS.S3Bucket import Network.AWS.AWSConnection import Network.AWS.AWSResult import System.Environment import System.IO import Data.Maybe import Network.AWS.S3Object import qualified Data.ByteString.Lazy.Char8 as L withConn :: ( AWSCon...
810bb05db72d03dff37402950b0203330c7edca792fc60db504348d65397ab23
fetburner/Coq2SML
cdglobals.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/fetburner/Coq2SML/322d613619edbb62edafa999bff24b1993f37612/coq-8.4pl4/tools/coqdoc/cdglobals.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** s Output options s Manipulations of...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * type target_language = LaT...
0aa0d79c0fee335ccbd8fcb2e45d8dc22cac10dac8085a6a410755e43e1ed662
marigold-dev/deku
ligo_commands.ml
let compile_contract ~env ~lang ~filename_ligo ~filename_tz () = Eio.Switch.run @@ fun sw -> Logs.info (fun m -> m "compiling %s with syntax %s" filename_ligo lang); let stdout = Unix.open_process_args_in "ligo" [| "ligo"; "compile"; "contract"; filename_ligo |] in let descr = Unix.descr_of_in_chann...
null
https://raw.githubusercontent.com/marigold-dev/deku/5d578d6a6124ade1deff4ed88eac71de17a065fd/deku-c/ligo-deku-rpc/ligo_commands.ml
ocaml
let compile_contract ~env ~lang ~filename_ligo ~filename_tz () = Eio.Switch.run @@ fun sw -> Logs.info (fun m -> m "compiling %s with syntax %s" filename_ligo lang); let stdout = Unix.open_process_args_in "ligo" [| "ligo"; "compile"; "contract"; filename_ligo |] in let descr = Unix.descr_of_in_chann...
8216559276053a5e2c2c1fc431502a589037e4955469f9794d2a2d60f91f5123
techascent/tvm-clj
vm.clj
(ns tvm-clj.impl.fns.relay.op.vm (:require [tvm-clj.impl.tvm-ns-fns :as tvm-ns-fns])) (tvm-ns-fns/export-tvm-functions "relay.op.vm")
null
https://raw.githubusercontent.com/techascent/tvm-clj/1088845bd613b4ba14b00381ffe3cdbd3d8b639e/src/tvm_clj/impl/fns/relay/op/vm.clj
clojure
(ns tvm-clj.impl.fns.relay.op.vm (:require [tvm-clj.impl.tvm-ns-fns :as tvm-ns-fns])) (tvm-ns-fns/export-tvm-functions "relay.op.vm")
7b97f33781a23ce05381370b286d9e846bebbb2ff1c2f182bca29488cc771104
tweag/webauthn
Strings.hs
-- | Stability: experimental This module provides functions for encoding and decoding WebAuthn enum types between their types defined in " Crypto . WebAuthn . Model . Types " and -- their string forms. module Crypto.WebAuthn.Encoding.Strings ( encodeCredentialType, decodeCredentialType, encodeUserVerific...
null
https://raw.githubusercontent.com/tweag/webauthn/349a2b408a79107d9f07c017b72b03c9c306e5fa/src/Crypto/WebAuthn/Encoding/Strings.hs
haskell
| Stability: experimental their string forms. isn't known to be an enum value. the string isn't known to be an enum value. the string isn't known to be an enum value. the string isn't known to be an enum value. the string isn't known to be an enum value. value. This is required so that relying parties can still...
This module provides functions for encoding and decoding WebAuthn enum types between their types defined in " Crypto . WebAuthn . Model . Types " and module Crypto.WebAuthn.Encoding.Strings ( encodeCredentialType, decodeCredentialType, encodeUserVerificationRequirement, decodeUserVerificationRequirem...