_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
4a3be879fd46b246ab781607a0d881133677797533921fdaf1e54b63c9a69f56
realworldocaml/book
ast_builder.mli
(** Helpers for build OCaml AST fragments *) open! Import * This module is similar to the [ Ast_helper ] module distributed with OCaml but uses different conventions . { 3 Locations } [ Ast_helper ] uses a global variable for the default locations , we found that to it makes it quite easy to...
null
https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/ppxlib/src/ast_builder.mli
ocaml
* Helpers for build OCaml AST fragments * Helpers taking a [~loc] argument. This module is meant to be opened or aliased. * This module contains updated versions of node constructors that were kept stable when the node changed. For every function in this module, there's an equally-named function o...
open! Import * This module is similar to the [ Ast_helper ] module distributed with OCaml but uses different conventions . { 3 Locations } [ Ast_helper ] uses a global variable for the default locations , we found that to it makes it quite easy to mess up locations . Instead this modules for...
f1d46c7b8aa2159681d602f484d43f60f6c33e73c7e96a6783da44f049e938c2
geneweb/geneweb
updateFam.ml
$ I d : updateFam.ml , v 5.24 2008 - 01 - 09 03:34:36 ddr Exp $ Copyright ( c ) 1998 - 2007 INRIA open Config open Def open Gwdb open TemplAst open Util type create_info = Update.create_info = { ci_birth_date : date option; ci_birth_place : string; ci_death : death; ci_death_date : date option; ci_death...
null
https://raw.githubusercontent.com/geneweb/geneweb/7b71f8f2f75e0e847818f821a0267938f38c9cf5/lib/updateFam.ml
ocaml
TODO : function logic around array length is not clear TODO : feels like it could be simpler TODO : more array length logic TODO : rewrite, looks bad TODO : rewrite, looks bad TODO : rewrite, looks bad + find a better name TODO : looks bad print S: Same remark than before: fam is added to the iterated...
$ I d : updateFam.ml , v 5.24 2008 - 01 - 09 03:34:36 ddr Exp $ Copyright ( c ) 1998 - 2007 INRIA open Config open Def open Gwdb open TemplAst open Util type create_info = Update.create_info = { ci_birth_date : date option; ci_birth_place : string; ci_death : death; ci_death_date : date option; ci_death...
050bbf652e273086c73d6fc5799b5f92e1ca484516f10615c17dd9e0f5ebf6d2
garrigue/lablgtk
gtkSpell.ml
(**************************************************************************) (* Lablgtk *) (* *) (* This program is free software; you can redistribute it *) and/or ...
null
https://raw.githubusercontent.com/garrigue/lablgtk/504fac1257e900e6044c638025a4d6c5a321284c/src-gtkspell3/gtkSpell.ml
ocaml
************************************************************************ Lablgtk This program is free software; you can redistribute it comes with the library. ...
and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation version 2 , with the exception described in file COPYING which GNU Library General Public License for more details . You should have r...
f7e4bf6bf73967daca1ab2fe2d844c30931cc886258cbaa928b52af5d29a6099
ucsd-progsys/dsolve
weak.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ucsd-progsys/dsolve/bfbbb8ed9bbf352d74561e9f9127ab07b7882c0c/stdlib/weak.mli
ocaml
********************************************************************* Objective Caml ...
, projet Para , INRIA Rocquencourt Copyright 1997 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with $ I d : weak.mli , v 1.15 2004/02/02 14...
e2f4a1a905a72a5bbb96c227b1bfe087ed4d853b2ccab07ccfb4105161b38d36
ndmitchell/extra
Extra.hs
{-# LANGUAGE ScopedTypeVariables, CPP #-} # OPTIONS_GHC -fno - warn - duplicate - exports # | More IO functions . The functions include ones for reading files with specific encodings , -- strictly reading files, and writing files with encodings. There are also some simple -- temporary file functions, more advanc...
null
https://raw.githubusercontent.com/ndmitchell/extra/dffea9e28d7adf9f4dd59236220d0c26f7d28ee4/src/System/IO/Extra.hs
haskell
# LANGUAGE ScopedTypeVariables, CPP # strictly reading files, and writing files with encodings. There are also some simple temporary file functions, more advanced alternatives can be found in the < exceptions> package. * Read encoding * Strict reading * Write with encoding * Temporary files * File compari...
# OPTIONS_GHC -fno - warn - duplicate - exports # | More IO functions . The functions include ones for reading files with specific encodings , module System.IO.Extra( module System.IO, captureOutput, withBuffering, readFileEncoding, readFileUTF8, readFileBinary, readFile', readFileEncoding', read...
d15aee66b5d0e26d75538f33abd04288e375e62e65ef3cf3523a7e9e2b50d155
reanimate/reanimate
Core.hs
{-# LANGUAGE RankNTypes #-} module Reanimate.Scene.Core where import Control.Monad.Fix (MonadFix (..)) import Control.Monad.ST (ST, runST) import Data.List (sortOn) import Reanimate.Animation (Animation, Duration, SVG, Time, mkAnimatio...
null
https://raw.githubusercontent.com/reanimate/reanimate/30359e9d371157b92ab77fcced789c6699971e1c/src/Reanimate/Scene/Core.hs
haskell
# LANGUAGE RankNTypes # | The ZIndex property specifies the stack order of sprites and animations. Elements with a higher ZIndex will be drawn on top of elements with a lower index. (seq duration, par duration) Map Time [(Animation, ZIndex)] | A 'Scene' represents a sequence of animations and variables that c...
module Reanimate.Scene.Core where import Control.Monad.Fix (MonadFix (..)) import Control.Monad.ST (ST, runST) import Data.List (sortOn) import Reanimate.Animation (Animation, Duration, SVG, Time, mkAnimation) import Reanimat...
8d99201d6478cc68b0e88573db9b9129b684c0451fd026eae00efdf57452f449
Spivoxity/obc-3
dict.ml
* dict.ml * * This file is part of the Oxford Oberon-2 compiler * Copyright ( c ) 2006 - -2016 J. M. Spivey * All rights reserved * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided that the following conditions are met : * * 1 . ...
null
https://raw.githubusercontent.com/Spivoxity/obc-3/9e5094df8382ac5dd25ff08768277be6bd71a4ae/compiler/dict.ml
ocaml
environment -- abstract type of environments def_kind -- kinds of definition Constant (value) String Type Variable Value parameter Const parameter Procedure Built-in primitive Imported module def -- definitions in environment Name Module Kind of object Type Whether exported Location o...
* dict.ml * * This file is part of the Oxford Oberon-2 compiler * Copyright ( c ) 2006 - -2016 J. M. Spivey * All rights reserved * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided that the following conditions are met : * * 1 . ...
690ec4b917663ddecf3c374d4c6ff5a6c3d5b9c12bf298aad0f782a62cb3cf26
oxheadalpha/TZComet
message_html.ml
open Import open Meta_html let render _ m = let module M = Message in let rec msg = function | M.Text s -> t s | M.Inline_code c -> ct c | M.Code_block b -> pre (ct b) | M.List l -> List.fold ~init:(empty ()) ~f:(fun a b -> a % msg b) l in msg m
null
https://raw.githubusercontent.com/oxheadalpha/TZComet/c77a08acf5663ba6fdd50359aae0ca100e54ab76/src/client/message_html.ml
ocaml
open Import open Meta_html let render _ m = let module M = Message in let rec msg = function | M.Text s -> t s | M.Inline_code c -> ct c | M.Code_block b -> pre (ct b) | M.List l -> List.fold ~init:(empty ()) ~f:(fun a b -> a % msg b) l in msg m
1ddd6bac5a2a88f3251fb48c3769a22f2fc3aade21265a3c925fb34e6d166271
TyOverby/mono
eval.ml
open! Core open! Import open Incr.Let_syntax let () = Incr.State.(set_max_height_allowed t 1024) let do_nothing_lifecycle : Lifecycle.t Path.Map.t Incr.t = Incr.return Lifecycle.Collection.empty ;; let raise_duplicate_path path = raise_s [%message "BUG: [Bonsai.Path.t] should be unique for all componen...
null
https://raw.githubusercontent.com/TyOverby/mono/7666c0328d194bf9a569fb65babc0486f2aaa40d/vendor/janestreet-bonsai/src/eval.ml
ocaml
It is safe to reuse the same [key_id] and [data_id] for each pair in the map, since they all start with a fresh "copy" of the outer environment. drop it on the floor !!!This is a load-bearing bind!!! If this bind isn't here, the scope that is created for the bind doesn't exist, and ...
open! Core open! Import open Incr.Let_syntax let () = Incr.State.(set_max_height_allowed t 1024) let do_nothing_lifecycle : Lifecycle.t Path.Map.t Incr.t = Incr.return Lifecycle.Collection.empty ;; let raise_duplicate_path path = raise_s [%message "BUG: [Bonsai.Path.t] should be unique for all componen...
7af259f2ac239c31b2f23365a12da6669345154a37dd1bee52745db3eba9143e
purcell/adventofcode2016
Day3.hs
module Main where import AdventOfCode import Data.List (transpose, splitAt) data Triangle = Triangle Int Int Int possible :: Triangle -> Bool possible (Triangle a b c) = all valid $ zip3 sides (drop 1 $ cycle sides) (drop 2 $ cycle sides) where sides = [a, b, c] valid (s1, s2, s3)...
null
https://raw.githubusercontent.com/purcell/adventofcode2016/081f30de4ea6b939e6c3736d83836f4dd72ab9a2/src/Day3.hs
haskell
module Main where import AdventOfCode import Data.List (transpose, splitAt) data Triangle = Triangle Int Int Int possible :: Triangle -> Bool possible (Triangle a b c) = all valid $ zip3 sides (drop 1 $ cycle sides) (drop 2 $ cycle sides) where sides = [a, b, c] valid (s1, s2, s3)...
e2ba3f98953286db684422ee956043109589ab03dc0bc0e893906d9f0796dd8b
aaronlevin/haskell-shopify
example.hs
module Main where import Control.Monad.Free (Free) import Control.Monad.Trans.Reader (runReaderT) import Data.Proxy (Proxy(Proxy)) import Data.Text (pack) import Network.API.Shopify.Client import Network.API.Shopify.Types import Network.HTTP.Client (withManager) import Network.HTTP.Client.TLS (tlsManagerSettings) impo...
null
https://raw.githubusercontent.com/aaronlevin/haskell-shopify/79be152dd7ba3a4d0561711ed9ccc4fd996a42ee/src/example.hs
haskell
module Main where import Control.Monad.Free (Free) import Control.Monad.Trans.Reader (runReaderT) import Data.Proxy (Proxy(Proxy)) import Data.Text (pack) import Network.API.Shopify.Client import Network.API.Shopify.Types import Network.HTTP.Client (withManager) import Network.HTTP.Client.TLS (tlsManagerSettings) impo...
46a78713fdd1f9b2afa6535f4cc8edd4a7e88d6f1300b63354af01881d07f040
google/rysim
agent_server.erl
%%%------------------------------------------------------------------- Copyright 2014 The RySim Authors . All rights reserved . %%% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %%% you may not use this file except in compliance with the License. %%% You may obtain a copy of the License at %...
null
https://raw.githubusercontent.com/google/rysim/afe19cea6415eb9d17e97f2f67280cf0b92eaa6e/erlang/rysim_des_actor/src/agent_server.erl
erlang
------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or im...
Copyright 2014 The RySim Authors . 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(agent_server). -include("rysim.hrl"). -behaviour(gen_server). -export([init/1, handle_call/3, handle_cast/2...
259fdc223deb5eed52e13e35d7afc84c70f8406f3f7e20ee71d20d8bfec19809
scrintal/heroicons-reagent
phone_x_mark.cljs
(ns com.scrintal.heroicons.outline.phone-x-mark) (defn render [] [:svg {:xmlns "" :fill "none" :viewBox "0 0 24 24" :strokeWidth "1.5" :stroke "currentColor" :aria-hidden "true"} [:path {:strokeLinecap "round" :strokeLinejoin "round" ...
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/outline/phone_x_mark.cljs
clojure
(ns com.scrintal.heroicons.outline.phone-x-mark) (defn render [] [:svg {:xmlns "" :fill "none" :viewBox "0 0 24 24" :strokeWidth "1.5" :stroke "currentColor" :aria-hidden "true"} [:path {:strokeLinecap "round" :strokeLinejoin "round" ...
39a098282fc81095c57739c05e2a63b9103b7e30b940718fc8789810d91a32d9
Lucsanszky/haskell-binance
Binance.hs
# LANGUAGE DuplicateRecordFields # module Binance ( module X ) where import Binance.Api as X import Binance.Type as X
null
https://raw.githubusercontent.com/Lucsanszky/haskell-binance/33d062089c1beeb8d17af944da41dbef345317ea/src/Binance.hs
haskell
# LANGUAGE DuplicateRecordFields # module Binance ( module X ) where import Binance.Api as X import Binance.Type as X
899e888d3365e908081fc0013c3641e4501f1a5941b6e2c029e04177c82918d1
tahnik/graphqlx
parse.ml
(** * Name: Parse * * The front-end for parser. Exposes necessary functions for parsing *) open Lexing open Printf open Pervasives (* For priting the position of an error *) let print_position outx lexbuf = let pos = lexbuf.lex_curr_p in fprintf outx "%s:%d:%d" pos.pos_fname pos.pos_lnum (pos.pos_cnum - po...
null
https://raw.githubusercontent.com/tahnik/graphqlx/4a3dea80891c0f8aa16a98485f5c9a3b6d0fe88c/src/language/src/parse.ml
ocaml
* * Name: Parse * * The front-end for parser. Exposes necessary functions for parsing For priting the position of an error Helper function for parsing * * The entry point for parsing. Takes a string as input and returns the AST Similar to parse but takes a input buffer instead of string
open Lexing open Printf open Pervasives let print_position outx lexbuf = let pos = lexbuf.lex_curr_p in fprintf outx "%s:%d:%d" pos.pos_fname pos.pos_lnum (pos.pos_cnum - pos.pos_bol + 1) Uses the Parser and prints error if there is any let parse_with_error lexbuf = try Parser.prog Lexer.read lexbuf wit...
4f73d87ef42c43f1d85e44b8e20cf78efb686d1fa4d7d8a46b6cc35142a0af3d
AndrasKovacs/ELTE-func-lang
Practice06_1.hs
# LANGUAGE InstanceSigs # module Practice06_1 where import Control.Monad newtype State s a = State (s -> (a,s)) instance Functor (State s) where fmap :: (a -> b) -> State s a -> State s b fmap f (State g) = State $ \s -> let (x, s') = g s in (f x, s') State $ \s - > ( f ( fst $ g s ) , snd $ g s ) instance A...
null
https://raw.githubusercontent.com/AndrasKovacs/ELTE-func-lang/88d41930999d6056bdd7bfaa85761a527cce4113/2019-20-1/szerda_gyak/Practice06_1.hs
haskell
pushM x = do s <- get let s' = push x s put s'
# LANGUAGE InstanceSigs # module Practice06_1 where import Control.Monad newtype State s a = State (s -> (a,s)) instance Functor (State s) where fmap :: (a -> b) -> State s a -> State s b fmap f (State g) = State $ \s -> let (x, s') = g s in (f x, s') State $ \s - > ( f ( fst $ g s ) , snd $ g s ) instance A...
caaa726d89aa30ec77697aa8f55545d0fadede46fad9e23f2e6456dccc879a03
baphled/chatterl
chatterl_mid_man.erl
%%%---------------------------------------------------------------- @author Yomi Colledge < > @doc Web interface for Chatterl %%% Chatterl Web Interface middleman , all communication to Chatterl %%% go via the middle man. %%% Prepares & amp ; sends messages to and manages %%% clients connected to the inter...
null
https://raw.githubusercontent.com/baphled/chatterl/5c1bfd8a5ac0c1a0ac5a765aa0c9db80a31da292/lib/chatterl/src/chatterl_mid_man.erl
erlang
---------------------------------------------------------------- go via the middle man. clients connected to the interface. @end --------------------------------------------------------------- API Client based calls Admin based calls gen_server callbacks Message handler methods used to handle our API calls ==...
@author Yomi Colledge < > @doc Web interface for Chatterl Chatterl Web Interface middleman , all communication to Chatterl Prepares & amp ; sends messages to and manages 2008 - 2009 Yomi Colledge -module(chatterl_mid_man). -behaviour(gen_server). -export([start/0, stop/0, register/2, ...
af39157ee1745139ece3c0b779bf8812218b830501270c563e5588c106067f61
thierry-martinez/stdcompat
gc.mli
type stat = { minor_words: float ; promoted_words: float ; major_words: float ; minor_collections: int ; major_collections: int ; heap_words: int ; heap_chunks: int ; live_words: int ; live_blocks: int ; free_words: int ; free_blocks: int ; largest_free: int ; fragments: int ; compactions:...
null
https://raw.githubusercontent.com/thierry-martinez/stdcompat/83d786cdb17fae0caadf5c342e283c3dcfee2279/interfaces/4.04/gc.mli
ocaml
type stat = { minor_words: float ; promoted_words: float ; major_words: float ; minor_collections: int ; major_collections: int ; heap_words: int ; heap_chunks: int ; live_words: int ; live_blocks: int ; free_words: int ; free_blocks: int ; largest_free: int ; fragments: int ; compactions:...
8eb47484abc25290f2565fc11e800e5131af976e09883b005725e91e61a72be2
CSCfi/rems
multipart.clj
(ns rems.multipart "Namespace for handling multipart requests." (:require [clojure.java.io :as io] [clojure.tools.logging :as log] [clojure.test :refer [deftest is testing]] [medley.core :refer [assoc-some]] [ring.middleware.multipart-params.temp-file]) (:import [ja...
null
https://raw.githubusercontent.com/CSCfi/rems/6a4464c8f5b4f07315b0ae6c4ed5c233f0751c4b/src/clj/rems/multipart.clj
clojure
(ns rems.multipart "Namespace for handling multipart requests." (:require [clojure.java.io :as io] [clojure.tools.logging :as log] [clojure.test :refer [deftest is testing]] [medley.core :refer [assoc-some]] [ring.middleware.multipart-params.temp-file]) (:import [ja...
42e6fb6dd73ad7cbab052124acc4212c3e546a513d476b00badc54058c2ecb68
spilgames/spapi-router
spr_app.erl
-module(spr_app). -behaviour(application). %% API -export([start/0]). %% Application callbacks -export([start/2, stop/1, config_change/3]). -include("defs.hrl"). %% =================================================================== %% API %% =================================================================== %% ...
null
https://raw.githubusercontent.com/spilgames/spapi-router/91485502538a36a0f4ee76d59faaf91f57ec88bb/src/spr_app.erl
erlang
API Application callbacks =================================================================== API =================================================================== @doc Starts the application @end =================================================================== Application callbacks =====================...
-module(spr_app). -behaviour(application). -export([start/0]). -export([start/2, stop/1, config_change/3]). -include("defs.hrl"). -spec start() -> ok | {error, any()}. start() -> lager:start(), application:start(spapi_router). @private -spec start(normal | {takeover | failover, Node::node()}, term()) ...
dd5bda28bfefa64582d4f02b7afb3993936634a5133de0e596be5091e492bb57
clash-lang/ghc-tcplugins-extra
Internal.hs
| Copyright : ( C ) 2015 - 2016 , University of Twente License : BSD2 ( see the file LICENSE ) Maintainer : < > Copyright : (C) 2015-2016, University of Twente License : BSD2 (see the file LICENSE) Maintainer : Christiaan Baaij <> -} {-# LANGUAGE CPP #-} {-# LANGUAGE LambdaCase...
null
https://raw.githubusercontent.com/clash-lang/ghc-tcplugins-extra/20a6cc71b6fef6e92bca4eda0abdb776403ceb31/src-ghc-cpp/Internal.hs
haskell
# LANGUAGE CPP # # LANGUAGE LambdaCase # # OPTIONS_HADDOCK show-extensions # * Create new constraints * Creating evidence * Report contractions * Lookup * Trace state of the plugin * Substitutions External workaround for # ANN module "HLint: ignore" # | Create a new [W]anted constraint that r...
| Copyright : ( C ) 2015 - 2016 , University of Twente License : BSD2 ( see the file LICENSE ) Maintainer : < > Copyright : (C) 2015-2016, University of Twente License : BSD2 (see the file LICENSE) Maintainer : Christiaan Baaij <> -} # LANGUAGE RecordWildCards # # LANGUAGE PatternSynonyms ...
44115d5c04ea568cdbd939827d0ce9dad65f6e656a772ec7de3ad21ff689b557
furkan3ayraktar/clojure-polylith-realworld-example-app
config.clj
(ns clojure.realworld.log.config (:require [clojure.java.io :as io] [clojure.string :as str] [clojure.realworld.env.interface :as env] [taoensso.timbre :as timbre]) (:import (java.util Calendar) (java.text SimpleDateFormat) (java.io File IOException))) (def...
null
https://raw.githubusercontent.com/furkan3ayraktar/clojure-polylith-realworld-example-app/7703ee7af93887ea600d1c05e400255303a6ed47/components/log/src/clojure/realworld/log/config.clj
clojure
(ns clojure.realworld.log.config (:require [clojure.java.io :as io] [clojure.string :as str] [clojure.realworld.env.interface :as env] [taoensso.timbre :as timbre]) (:import (java.util Calendar) (java.text SimpleDateFormat) (java.io File IOException))) (def...
1ce9549ab6c5bd08650cd29198fb13f3c2a4dfede1c2650cfe9e3878edfdb659
thephoeron/quipper-language
QuickCheckArith.hs
This file is part of Quipper . Copyright ( C ) 2011 - 2014 . Please see the -- file COPYRIGHT for a list of authors, copyright holders, licensing, -- and other details. All rights reserved. -- -- ====================================================================== -- | This module contains small examples of arith...
null
https://raw.githubusercontent.com/thephoeron/quipper-language/15e555343a15c07b9aa97aced1ada22414f04af6/QuipperLib/ClassicalOptim/QuickCheckArith.hs
haskell
file COPYRIGHT for a list of authors, copyright holders, licensing, and other details. All rights reserved. ====================================================================== | This module contains small examples of arithmetic functions, ---------------------------------------------------------------------- ...
This file is part of Quipper . Copyright ( C ) 2011 - 2014 . Please see the coded in Template Haskell , for use with " QuipperLib . ClassicalOptim . QuickCheck " . module QuipperLib.ClassicalOptim.QuickCheckArith where import qualified Test.QuickCheck as Test import Quipper import Data.List import Quipper imp...
55ae95785b0460c38377125f10b6720ee40fe6ce6a2311c4b2daa682459cc5d7
theosotr/buildfs
make_fault.ml
* Copyright ( c ) 2018 - 2020 * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation , version 3 . * * This program is distributed in the hope that it will be useful , but ...
null
https://raw.githubusercontent.com/theosotr/buildfs/3cd287da0d1184934c1bcd28d301f2545196f44b/src/build/make_fault.ml
ocaml
FIXME: Handle transitive inputs in a better way. We create a child process that is responsible for invoking strace and run 'make -pn' in parallel.
* Copyright ( c ) 2018 - 2020 * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation , version 3 . * * This program is distributed in the hope that it will be useful , but ...
4818007865e61e1b3a70feaca8f9cc4f4860601fbeffe7e6a15b5db47e4af3da
PrincetonUniversity/lucid
TofinoLinker.ml
TODO : extend the syntax , lexer , and parser to implement P4 ( or a subset of it ) open Dpt open Console open ANSITerminal open Core open P4Lexer open Lexing exception Error of string let error s = raise (Error s) let report str = Console.show_message str ANSITerminal.Green "linker" let print_position outx lexbu...
null
https://raw.githubusercontent.com/PrincetonUniversity/lucid/a2351acd5f9c08aaf59129c29895a369cf75a3c2/src/bin/TofinoLinker.ml
ocaml
TODO : extend the syntax , lexer , and parser to implement P4 ( or a subset of it ) open Dpt open Console open ANSITerminal open Core open P4Lexer open Lexing exception Error of string let error s = raise (Error s) let report str = Console.show_message str ANSITerminal.Green "linker" let print_position outx lexbu...
d48f87c5abc9432e8b6a1af9edeec75c75d3748ba2d63c850320d8616489fbe0
hjcapple/reading-sicp
exercise_3_62.scm
#lang racket P232 - [ 练习 3.62 ] (require "stream.scm") (require "infinite_stream.scm") (require "exercise_3_59.scm") ; for cosine-series、sine-series for mul - series (require "exercise_3_61.scm") ; for invert-unit-series (define (div-series s1 s2) (if (= (stream-car s2) 0) (error "constant term of s2 can...
null
https://raw.githubusercontent.com/hjcapple/reading-sicp/7051d55dde841c06cf9326dc865d33d656702ecc/chapter_3/exercise_3_62.scm
scheme
for cosine-series、sine-series for invert-unit-series
#lang racket P232 - [ 练习 3.62 ] (require "stream.scm") (require "infinite_stream.scm") for mul - series (define (div-series s1 s2) (if (= (stream-car s2) 0) (error "constant term of s2 can't be 0 -- DIV-SERIES") (mul-series s1 (invert-unit-series s2)))) (define tan-series (div-series sine-series...
0a5f4e965565fab85b1b46d78d18ffa537c83d2cfef34343e0452d82f5e8fcf8
dyzsr/ocaml-selectml
pervasives.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/stdlib/pervasives.ml
ocaml
************************************************************************ OCaml ...
, Jane Street Europe Copyright 2017 Jane Street Group LLC the GNU Lesser General Public License version 2.1 , with the * @deprecated Use { ! } external raise : exn -> 'a = "%raise" external raise_notrace : exn -> 'a = "%raise...
ff4115711f03ad9d91029585e9ec9ad12407e3a1567bf05b1a98ec52c1dd068f
bugczw/Introduction-to-Functional-Programming-in-OCaml
powerset.ml
let rec sublists = function | [] -> [ [] ] | h::r -> let rp = sublists r in rp@(List.map (function l -> h::l) rp);; sublists [1;2;3];;
null
https://raw.githubusercontent.com/bugczw/Introduction-to-Functional-Programming-in-OCaml/13c4d1f92e7479f8eb10ea5d4c43a598b6676d0f/OCaml_MOOC_W4_ALL/powerset.ml
ocaml
let rec sublists = function | [] -> [ [] ] | h::r -> let rp = sublists r in rp@(List.map (function l -> h::l) rp);; sublists [1;2;3];;
5e087f15800c19e6fa91014dca8c66b8fdc41cf749a945e7b52d5eb36b47cd01
tamarin-prover/tamarin-prover
Solver.hs
-- | Copyright : ( c ) 2010 - 2012 -- License : GPL v3 (see LICENSE) -- Maintainer : < > Portability : GHC only -- -- The public interface of the constraint solver, which implements all -- constraint reduction rules and together with a rule application heuristic. module Theory.Constraint.Solver (...
null
https://raw.githubusercontent.com/tamarin-prover/tamarin-prover/958f8b1767650c06dffe4eba63a38508c9b17a7f/lib/theory/src/Theory/Constraint/Solver.hs
haskell
| License : GPL v3 (see LICENSE) The public interface of the constraint solver, which implements all constraint reduction rules and together with a rule application heuristic. * Constraint systems , DiffProofContext(..) , pcSignature , pcRules , pcSources , pcUseInduction , pcSourceKind ...
Copyright : ( c ) 2010 - 2012 Maintainer : < > Portability : GHC only module Theory.Constraint.Solver ( module Theory.Constraint.System , ProofContext ( .. ) , InductionHint ( .. ) , Contradiction , contradictions , cdGoal , precomputeSources , refineWithSourceAsms , u...
41240923b87efa849647b4a3a42a8fc7ff1f81455182625cbfa5ce7c5c50f702
hbr/albatross
test.ml
open Fmlib open Common module Io = Fmlib_node . Node_io let _ = Io . ( let rec step ( ) = > > = function | None - > exit 1 | Some c - > putchar c > > = function | None - > return ( ) | Some ( ) - > step ( ) in execute @@ step ( ) ) ...
null
https://raw.githubusercontent.com/hbr/albatross/8f28ef97951f92f30dc69cf94c0bbe20d64fba21/ocaml/fmlib/basic/node_test/test.ml
ocaml
open Fmlib open Common module Io = Fmlib_node . Node_io let _ = Io . ( let rec step ( ) = > > = function | None - > exit 1 | Some c - > putchar c > > = function | None - > return ( ) | Some ( ) - > step ( ) in execute @@ step ( ) ) ...
5f17c482b6d156a1c35c8b432b2297a23452501a8074755a764c8cd6769657f0
camlp4/camlp4
pr_schp_main.ml
(* pa_r.cmo q_MLast.cmo pa_extfun.cmo pr_dump.cmo *) (***********************************************************************) (* *) (* Camlp4 *) (* ...
null
https://raw.githubusercontent.com/camlp4/camlp4/9b3314ea63288decb857239bd94f0c3342136844/camlp4/unmaintained/scheme/pr_schp_main.ml
ocaml
pa_r.cmo q_MLast.cmo pa_extfun.cmo pr_dump.cmo ********************************************************************* Camlp4 ...
, 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 GNU Library General Public License , with open Format; open Pcaml; open Parserify; val...
ca00995da2d0e1d9061c2d56c10b15d575e69c39fb3447fd6403fe8388455798
TOTBWF/teenytt
Parser.hs
-- | The interface to the @teenytt@ parser. module TeenyTT.Frontend.Parser ( tokenize , commands ) where import Control.Monad.IO.Class import Data.ByteString (ByteString) import TeenyTT.Frontend.Command import TeenyTT.Frontend.Parser.Monad import TeenyTT.Frontend.Parser.Token (Token) import TeenyTT.Frontend.P...
null
https://raw.githubusercontent.com/TOTBWF/teenytt/a45162254b4b3c056b1607f4759bd608fd355165/src/TeenyTT/Frontend/Parser.hs
haskell
| The interface to the @teenytt@ parser.
module TeenyTT.Frontend.Parser ( tokenize , commands ) where import Control.Monad.IO.Class import Data.ByteString (ByteString) import TeenyTT.Frontend.Command import TeenyTT.Frontend.Parser.Monad import TeenyTT.Frontend.Parser.Token (Token) import TeenyTT.Frontend.Parser.Lexer qualified as L import TeenyTT.Fr...
75b03b84e32f3b0435de2931671553b39a15eb6ce2e5e965ff2b3beeae34ef3f
liquidz/misaki
hello.cljs
(ns hello) (defn ^:export myalert [msg] (.alert js/window (str "Hello, " msg)))
null
https://raw.githubusercontent.com/liquidz/misaki/b8104e632058e3b3da4487513d10e666e5914ec9/doc/.template/cljs/hello.cljs
clojure
(ns hello) (defn ^:export myalert [msg] (.alert js/window (str "Hello, " msg)))
a2cd73443ba3ba3eac69091cb1c06fb8243a1408d072d80608c8bacdc15b23ad
graninas/GraphServer
Constants.hs
module Structure.Constants where import qualified Graphics.Rendering.OpenGL as GL import Common.GLTypes import Common.Units framedGrhsDistance, argsDistance :: GL.GLfloat framedGrhsDistance = 4 argsDistance = 1
null
https://raw.githubusercontent.com/graninas/GraphServer/088c234ae840162002f707559cfefc96bcc02bda/src/Structure/Constants.hs
haskell
module Structure.Constants where import qualified Graphics.Rendering.OpenGL as GL import Common.GLTypes import Common.Units framedGrhsDistance, argsDistance :: GL.GLfloat framedGrhsDistance = 4 argsDistance = 1
8cf4824434a634985d5802dc29620ef7a7b8a59d139691c7e2db1da523d48255
RutledgePaulV/datalogger
core.clj
(ns datalogger.core (:require [jsonista.core :as jsonista] [clojure.string :as strings] [datalogger.impl.utils :as utils] [datalogger.impl.config :as config] [datalogger.impl.context :as context] [avow.core :as avow] [clojure.test :as test] ...
null
https://raw.githubusercontent.com/RutledgePaulV/datalogger/4b99ad9c43741abbaec5282284dfab1bb094b1bb/src/datalogger/core.clj
clojure
runtime initialization attach an error handler to the logging agent so we know if there's an error in the logging system
(ns datalogger.core (:require [jsonista.core :as jsonista] [clojure.string :as strings] [datalogger.impl.utils :as utils] [datalogger.impl.config :as config] [datalogger.impl.context :as context] [avow.core :as avow] [clojure.test :as test] ...
9a073384039affa9e22d79e1bc4b97ff3f028e2a58d5e6b52b3d86003edc65cf
tachukao/ocaml-mlir
diagnostics.ml
open Ctypes module Bindings (F : FOREIGN) = struct open F (* Prints a diagnostic using the provided callback. *) let print = foreign "mlirDiagnosticPrint" (Typs.Diagnostic.t @-> Typs.string_callback @-> ptr void @-> returning void) (* Returns the location at which the diagnostic is reported....
null
https://raw.githubusercontent.com/tachukao/ocaml-mlir/0e65403c994b16c3e01a55e61b4df7f5a1728af3/src/stubs/diagnostics.ml
ocaml
Prints a diagnostic using the provided callback. Returns the location at which the diagnostic is reported. Returns the severity of the diagnostic. Returns the number of notes attached to the diagnostic. Emits an error at the given location through the diagnostics engine. Used * for testing purposes.
open Ctypes module Bindings (F : FOREIGN) = struct open F let print = foreign "mlirDiagnosticPrint" (Typs.Diagnostic.t @-> Typs.string_callback @-> ptr void @-> returning void) let location = foreign "mlirDiagnosticGetLocation" (Typs.Diagnostic.t @-> returning Typs.Location.t) let seve...
d1c3edf8a5bc92a80f0e6e07ee503648a3d3815e54e0ea59b5febc9dd626c45e
savorocks/overtone-playground
core.clj
(ns overtone-playground.core (:require [overtone.live :refer :all] [overtone.at-at :as a] [overtone.inst.synth :as sth] [overtone-playground.samples :as s] [overtone.midi :as midi])) (def global_bpm (metronome 120)) (defn play "Can be used in following ways: For playing single notes: (play 60)...
null
https://raw.githubusercontent.com/savorocks/overtone-playground/f6066740a8c6c56da5825b7b130a6c1675cef1c8/src/overtone_playground/core.clj
clojure
(if (empty? notes) nil (doseq [] (Thread/sleep sleep) (melody (rest notes) sleep)))) This is bad way to do things, since it will play sounds when whole file is evaluated. Keeping it as a way to quickly check if sound is working. (doseq [] The following lines are experimentation with comb...
(ns overtone-playground.core (:require [overtone.live :refer :all] [overtone.at-at :as a] [overtone.inst.synth :as sth] [overtone-playground.samples :as s] [overtone.midi :as midi])) (def global_bpm (metronome 120)) (defn play "Can be used in following ways: For playing single notes: (play 60)...
f1c5804a6beed2b4e6b435ee27766698727a423f4ed5f88e0cd935bf25113395
dinosaure/carton
kv.mli
module type MEMORY = sig type t type 'a fiber val map : t -> pos:int64 -> int -> Bigstringaf.t fiber val disconnect : t -> unit fiber end module type OBJECT = sig type uid type t type error = Mirage_kv.error type 'a fiber val pp_error : error Fmt.t val digest : Mirage_kv.Key.t -> (uid, error) res...
null
https://raw.githubusercontent.com/dinosaure/carton/8cb8b3685fab477594b2d83c70b2fc965d1d59b9/mirage/kv.mli
ocaml
module type MEMORY = sig type t type 'a fiber val map : t -> pos:int64 -> int -> Bigstringaf.t fiber val disconnect : t -> unit fiber end module type OBJECT = sig type uid type t type error = Mirage_kv.error type 'a fiber val pp_error : error Fmt.t val digest : Mirage_kv.Key.t -> (uid, error) res...
47d567590b231fc282dc5a7e4cc621fc50e689b6d42df9cf0cb076610d870334
facebook/duckling
Helpers.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. module Duckling.CreditCardNumber.Helpers ( otherCreditCardNumberRegex , visaCreditCardNumberRegex , am...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/CreditCardNumber/Helpers.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. ----------------------------------------------------------------- Patterns | Visa credit card regex informed by latest BIN info | Discover credit card regex informed...
Copyright ( c ) 2016 - present , Facebook , Inc. module Duckling.CreditCardNumber.Helpers ( otherCreditCardNumberRegex , visaCreditCardNumberRegex , amexCreditCardNumberRegex , discoverCreditCardNumberRegex , mastercardCreditCardNumberRegex , dinerClubCreditCardNumberRegex , isValidCreditCardNumber ...
a6576761024760aa5d7561b8865d86d05be2cdc7ae0e61e88d31bb8b4769ad5f
candera/vmt
model.cljc
(ns weathergen.model "A library for modeling weather systems." (:require [weathergen.time :as time] [weathergen.math :as math] [org.craigandera.weathergen.pattern-space :as pat])) (defn mmhg->inhg [mmhg] (-> mmhg (- 950) (/ 110) (* 3.25) (+ 28.05))) (defn inhg->...
null
https://raw.githubusercontent.com/candera/vmt/8cf450e6c34af87d748152afd7f547b92ae9b38e/src/weathergen/model.cljc
clojure
A checkerboard pattern of high and low pressure "cells" TODO: move to this more general model, in which we categorize the underlying shape via numeric parameters. Some of the order-4 random ones are much more pleasing than the one above. used to precompute them and pass them in, but that made for a confusing API....
(ns weathergen.model "A library for modeling weather systems." (:require [weathergen.time :as time] [weathergen.math :as math] [org.craigandera.weathergen.pattern-space :as pat])) (defn mmhg->inhg [mmhg] (-> mmhg (- 950) (/ 110) (* 3.25) (+ 28.05))) (defn inhg->...
50c40903cc6a21b1db293451d3c906f38bab2d83f2e7593434bf43c083ec1258
exercism/haskell
Anagram.hs
module Anagram (anagramsFor) where anagramsFor :: String -> [String] -> [String] anagramsFor xs xss = error "You need to implement this function."
null
https://raw.githubusercontent.com/exercism/haskell/2b98084efc7d5ab098975c462f7977ee19c2fd29/exercises/practice/anagram/src/Anagram.hs
haskell
module Anagram (anagramsFor) where anagramsFor :: String -> [String] -> [String] anagramsFor xs xss = error "You need to implement this function."
134dd0aace51a1098a02e9c8e2da3844671c11bce5b33abb97319f7eea0e0e61
sentenai/reinforce
State.hs
------------------------------------------------------------------------------- -- | -- Module : Spaces.State -- Copyright : (c) Sentenai 2017 -- License : BSD3 Maintainer : -- Stability : experimental -- Portability: non-portable ---------------------------------------------------------------------------...
null
https://raw.githubusercontent.com/sentenai/reinforce/03fdeea14c606f4fe2390863778c99ebe1f0a7ee/reinforce/src/Reinforce/Spaces/State.hs
haskell
----------------------------------------------------------------------------- | Module : Spaces.State Copyright : (c) Sentenai 2017 License : BSD3 Stability : experimental Portability: non-portable ----------------------------------------------------------------------------- toR :: s -> R (Size s) to...
Maintainer : # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE DataKinds # # LANGUAGE UndecidableInstances # # LANGUAGE ScopedTypeVariables # module Reinforce.Spaces.State ( StateSpace(..) , StateSpaceStatic(..) ) where import GHC.TypeLits import Data.Vector (Vector) import Control.Exc...
5d457f86e35bc149272422ab6f85f8b3ffce7cba2c975938a583d4e8ff97523b
Bogdanp/racket-http-easy
http-easy.rkt
#lang racket/base (require json net/cookies net/http-easy net/url racket/class racket/match rackunit web-server/dispatch (only-in web-server/http binding-id binding:form-value binding:file-file...
null
https://raw.githubusercontent.com/Bogdanp/racket-http-easy/e874a6198d8d8d412b9cddb6d000bd5fba070211/http-easy-test/net/http-easy/http-easy.rkt
racket
xref: racket-http-easy#18
#lang racket/base (require json net/cookies net/http-easy net/url racket/class racket/match rackunit web-server/dispatch (only-in web-server/http binding-id binding:form-value binding:file-file...
065b72f9f1402d0e40f58061e75c40139c354bf46273c89f25af19a3baf4e2d2
dgiot/dgiot
dgiot_mysql_channel.erl
%%%------------------------------------------------------------------- @author ( C ) 2020 , < COMPANY > %%% @doc %%% %%% @end Created : 23 . 四月 2020 13:34 %%%------------------------------------------------------------------- -module(dgiot_mysql_channel). -author("kenneth"). -behavior(dgiot_channelx). -define(C...
null
https://raw.githubusercontent.com/dgiot/dgiot/a6b816a094b1c9bd024ce40b8142375a0f0289d8/apps/dgiot_mysql/src/dgiot_mysql_channel.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- API 注册通道参数 先缓存定时存库 规则引擎导入 进程消息 {_Time, _} = timer:tc(fun() -> save_cache(Channel) end), ?LOG(info,"save:~p~n", [Time / 1000000]), save_to_cache(Channel, Requests),
@author ( C ) 2020 , < COMPANY > Created : 23 . 四月 2020 13:34 -module(dgiot_mysql_channel). -author("kenneth"). -behavior(dgiot_channelx). -define(CACHE(Channel), binary_to_atom(<<?TYPE/binary, Channel/binary>>, utf8)). -include_lib("dgiot_bridge/include/dgiot_bridge.hrl"). -include("dgiot_mysql.hrl"). -include...
dfe258a88783563d76f58801f669cafb2672e78ec2dec47f1022fdf36b3f2131
jeromesimeon/Galax
code_util_pattern_matcher.ml
(***********************************************************************) (* *) (* GALAX *) (* XQuery Engine *) (* ...
null
https://raw.githubusercontent.com/jeromesimeon/Galax/bc565acf782c140291911d08c1c784c9ac09b432/code_selection/code/code_util_pattern_matcher.ml
ocaml
********************************************************************* GALAX XQuery Engine ...
Copyright 2001 - 2007 . $ I d : code_util_pattern_matcher.ml , v 1.5 2007/02/01 22:08:45 simeon Exp $ Module : Code_util_pattern_matcher Description : This module contains code that performs pattern - matching over the algebra AST . This is most...
b2ed8009cc2e85fe47c44106c1134ac7f21033c1dde7938e7c2a14e999104072
paypal/seazme-sources
confluence.clj
(ns seazme.sources.confluence (:require [me.raynes.fs :as fs] [clj-time.coerce :as tr] [clj-time.format :as tf] [clojure.java.io :refer [file]]) (:use seazme.sources.confluence-api seazme.sources.scheduler seazme.common.common)) TODO this or rahter kind inall (def conf-ts-formatter (tf/formatters :da...
null
https://raw.githubusercontent.com/paypal/seazme-sources/57e5b7579f5e475a908b2318a00549dd131f7745/src/main/clojure/seazme/sources/confluence.clj
clojure
; TODO rename include space name space-id (-> s :id str) (spit (str db-path "/" space-id ".edn") (pr-str s)) e.g. #(-> % :id (= 47906817)) skip some spaces to recreate an error TODO "/rest/api -> "/rest/api and add "rest in config incremental scan Examples: 300 is to address psssible limitation in Confluence s...
(ns seazme.sources.confluence (:require [me.raynes.fs :as fs] [clj-time.coerce :as tr] [clj-time.format :as tf] [clojure.java.io :refer [file]]) (:use seazme.sources.confluence-api seazme.sources.scheduler seazme.common.common)) TODO this or rahter kind inall (def conf-ts-formatter (tf/formatters :da...
3914a83d488de9c25c06800c8994c892265b8d7759f744ceb8afcbf15e67b40c
lisp/de.setf.utility
generate.lisp
-*- Mode : lisp ; Syntax : ansi - common - lisp ; Base : 10 ; Package : de.setf.utility.implementation ; -*- (in-package :de.setf.utility.implementation) (:documentation "generative-form model navigation operators for an abstract graph model" (copyright "Copyright 2010 [james anderson](mailto:) All Rights Res...
null
https://raw.githubusercontent.com/lisp/de.setf.utility/782cd79d99ebf40deeed60c492be9873bbe42a15/graph/generate.lisp
lisp
Syntax : ansi - common - lisp ; Base : 10 ; Package : de.setf.utility.implementation ; -*-
(in-package :de.setf.utility.implementation) (:documentation "generative-form model navigation operators for an abstract graph model" (copyright "Copyright 2010 [james anderson](mailto:) All Rights Reserved" "'de.setf.utility' is free software: you can redistribute it and/or modify it under the terms of vers...
b3aad864edd59f79abd832d1630075cab2bb027d28120c2e59dc7a966c6ac54d
FrankC01/clasew
contacts.clj
(ns ^{:author "Frank V. Castellucci" :doc "Clojure AppleScriptEngine Wrapper - Apple Contacts DSL"} clasew.contacts (:require [clasew.gen-asmm :as genas] [clasew.ast-emit :as ast] [clasew.ast-utils :as astu] [clasew.identities :as ident] [clasew.ident-utils :a...
null
https://raw.githubusercontent.com/FrankC01/clasew/1e5a444bccd4f34c68a1e5d1ec2121a36fd8c959/src/clasew/contacts.clj
clojure
Consistent functional args/terms Fetch people Delete people Add new people Update people
(ns ^{:author "Frank V. Castellucci" :doc "Clojure AppleScriptEngine Wrapper - Apple Contacts DSL"} clasew.contacts (:require [clasew.gen-asmm :as genas] [clasew.ast-emit :as ast] [clasew.ast-utils :as astu] [clasew.identities :as ident] [clasew.ident-utils :a...
4f8e14c0661f0edc140ee4a699049073909b4387beecc379ad818454680f3f25
ocaml/omd
block_parser.ml
open Ast.Util module Raw = Ast_block.Raw module Pre = struct type container = | Rblockquote of t | Rlist of list_type * list_spacing * bool * int * attributes Raw.block list list * t | Rparagraph of string list | Rfenced_code of int * in...
null
https://raw.githubusercontent.com/ocaml/omd/8cc423be8d090cae230dfa1307602ad7ea1b7db8/src/block_parser.ml
ocaml
TODO: trim from the right FIXME: this will only ever get called on the very last line. Should it do the link definitions? Happens when there's nothing between the [link reference definition] and the [setext heading]. [foo]: /foo-url === [foo] I...
open Ast.Util module Raw = Ast_block.Raw module Pre = struct type container = | Rblockquote of t | Rlist of list_type * list_spacing * bool * int * attributes Raw.block list list * t | Rparagraph of string list | Rfenced_code of int * in...
fc8172dfbf9816f2fd9e409f6f2cc6414c7b71cb09774161284f0c5fd24384c0
Clojure2D/clojure2d-examples
M_2_5_01.clj
(ns GG.M.M-2-5-01 (:require [clojure2d.core :refer :all] [fastmath.core :as m] [fastmath.vector :as v] [clojure2d.color :as c])) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) (m/use-primitive-operators) (def ^:const wname "M_2_5_01") (def ^:const ^int w...
null
https://raw.githubusercontent.com/Clojure2D/clojure2d-examples/9de82f5ac0737b7e78e07a17cf03ac577d973817/src/GG/M/M_2_5_01.clj
clojure
(ns GG.M.M-2-5-01 (:require [clojure2d.core :refer :all] [fastmath.core :as m] [fastmath.vector :as v] [clojure2d.color :as c])) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) (m/use-primitive-operators) (def ^:const wname "M_2_5_01") (def ^:const ^int w...
9f480e022802b513165d11d00b410e4e208e525456911bf74e9676f370270374
jerith/chaocaml
discord.ml
open Lwt.Infix open Cohttp open Cohttp_lwt_unix open Websocket_lwt open Entities open Events let section = Lwt_log.Section.make "discord" let dlog msg = Lwt_log.debug ~section ("[D] " ^ msg) let ilog msg = Lwt_log.info ~section ("[I] " ^ msg) let handle_json_response (resp, body) = match resp |> Response.status |...
null
https://raw.githubusercontent.com/jerith/chaocaml/9489ee4386f9e97becebc5afab85cada6c5466ab/lib/discord.ml
ocaml
open Lwt.Infix open Cohttp open Cohttp_lwt_unix open Websocket_lwt open Entities open Events let section = Lwt_log.Section.make "discord" let dlog msg = Lwt_log.debug ~section ("[D] " ^ msg) let ilog msg = Lwt_log.info ~section ("[I] " ^ msg) let handle_json_response (resp, body) = match resp |> Response.status |...
bf925cce4d0047f37ea28a433f2b8c9ccf17b97b0b649a8da34a9e710c647794
muqiuhan/MLisp
basis.ml
(****************************************************************************) (* MLisp *) Copyright ( C ) 2022 Muqiu Han (* *) (* Th...
null
https://raw.githubusercontent.com/muqiuhan/MLisp/5d79cf6731910d77cde674fb77d71d3ddad38e3c/lib/primitives/basis.ml
ocaml
************************************************************************** MLisp This program is free software: you can redistribute it and/or modify (at your option) an...
Copyright ( C ) 2022 Muqiu Han 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 You should have received a copy of the GNU Affero General Public License open Mlisp_ob...
d33ab4d78610ee332b7d00b8d8016280d11c2def67ca864e87e97a90edba08ce
lispbuilder/lispbuilder
glue-cl-vectors.lisp
SDL ( Simple Media Layer ) library using CFFI for foreign function interfacing ... ( C)2006 < > Thanks to and ;; see COPYING for license This file contains some useful functions for using SDL from Common lisp ;; using sdl.lisp (the CFFI wrapper) (in-package #:lispbuilder-sdl) (defun image-put-pixel (i...
null
https://raw.githubusercontent.com/lispbuilder/lispbuilder/589b3c6d552bbec4b520f61388117d6c7b3de5ab/lispbuilder-sdl/glue-cl-vectors/glue-cl-vectors.lisp
lisp
see COPYING for license using sdl.lisp (the CFFI wrapper)
SDL ( Simple Media Layer ) library using CFFI for foreign function interfacing ... ( C)2006 < > Thanks to and This file contains some useful functions for using SDL from Common lisp (in-package #:lispbuilder-sdl) (defun image-put-pixel (image &optional (color #(0 0 0)) (opacity 1.0) (alpha-function :n...
026232605c8b99c6329e5c168d71a557355487ec7eea712ece738cf93ad2c353
mlemerre/l-lang
token.ml
Copyright 2013 . include Tokenpack.Base;; module Stream = Tokenpack.Lexer;; module Keywords = Tokenpack.Keywords;;
null
https://raw.githubusercontent.com/mlemerre/l-lang/88201e861c6cc30bb3b9510d7f55c681eded4085/src/token.ml
ocaml
Copyright 2013 . include Tokenpack.Base;; module Stream = Tokenpack.Lexer;; module Keywords = Tokenpack.Keywords;;
c173fea5ca45bdfa463d6a6f01c72d640ef6a5dac019e48e8ed8459f125a54b3
stackbuilders/inflections-hs
TitleizeSpec.hs
# LANGUAGE CPP # {-# LANGUAGE OverloadedStrings #-} module Text.Inflections.TitleizeSpec (spec) where import Test.Hspec import Text.Inflections #if !MIN_VERSION_base(4,8,0) import Control.Applicative #endif spec :: Spec spec = describe "titleize" $ do it "converts two words to title case" $ do ...
null
https://raw.githubusercontent.com/stackbuilders/inflections-hs/5f731cba9bc03cc128f7f4aa8486b09eafe2786d/test/Text/Inflections/TitleizeSpec.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE CPP # module Text.Inflections.TitleizeSpec (spec) where import Test.Hspec import Text.Inflections #if !MIN_VERSION_base(4,8,0) import Control.Applicative #endif spec :: Spec spec = describe "titleize" $ do it "converts two words to title case" $ do employee <- SomeWord <$> mkWord "Em...
d5d01e22b6933abf7a2870a34c5c948ce322d1ac2d94b9a1c7596a44faee57cb
fetburner/Coq2SML
subtac_obligations.ml
open Printf open Pp open Subtac_utils open Command open Environ open Term open Names open Libnames open Summary open Libobject open Entries open Decl_kinds open Util open Evd open Declare open Proof_type open Compat let ppwarn cmd = Pp.warn (str"Program:" ++ cmd) let pperror cmd = Util.errorlabstrm "Program" cmd let ...
null
https://raw.githubusercontent.com/fetburner/Coq2SML/322d613619edbb62edafa999bff24b1993f37612/coq-8.4pl4/plugins/subtac/subtac_obligations.ml
ocaml
true = All transparent, false = Opaque if possible true = hide obligations prod_appvect T [| a1 ; ... ; an |] -> (T a1 ... an) * Beware: if this code is dynamically loaded via dynlink after the start of Coq, then this [init] function will not be run by [Lib.init ()]. Luckily, here we can launch [init] at ...
open Printf open Pp open Subtac_utils open Command open Environ open Term open Names open Libnames open Summary open Libobject open Entries open Decl_kinds open Util open Evd open Declare open Proof_type open Compat let ppwarn cmd = Pp.warn (str"Program:" ++ cmd) let pperror cmd = Util.errorlabstrm "Program" cmd let ...
ce5e6fc5eaa5028bdd85a2e43858179874e46b350fd5821e5eb73ba3a3e29cd0
Zulu-Inuoe/seq
seq.xpath.lisp
(defpackage #:com.inuoe.seq.xpath (:use #:cl) (:import-from #:com.inuoe.seq #:col-seq #:lazy-seq #:mapcol)) (in-package #:com.inuoe.seq.xpath) (defmethod col-seq ((node-set xpath:node-set)) (lazy-seq (let ((it (xpath:make-node-set-iterator node-set))) (labels ((recurse () ...
null
https://raw.githubusercontent.com/Zulu-Inuoe/seq/504dd97594b89afcf95ebcd8f4543dc1a0519e4b/src/seq.xpath/seq.xpath.lisp
lisp
(defpackage #:com.inuoe.seq.xpath (:use #:cl) (:import-from #:com.inuoe.seq #:col-seq #:lazy-seq #:mapcol)) (in-package #:com.inuoe.seq.xpath) (defmethod col-seq ((node-set xpath:node-set)) (lazy-seq (let ((it (xpath:make-node-set-iterator node-set))) (labels ((recurse () ...
db9b4067053e6d0dd793e2a54875df9bf526110f0d8292d37bb9b603f68c8377
rtrusso/scp
statement.scm
(need sasm/parse/syntax) (need sasm/sasm-ast) (need sasm/sasm-tracing) (need sasm/parse/extern) (define (sasm-parse-statement statement) (sasm-parse-by-case statement (sasm-syntax-case :pattern (class (,symbol? class-symbol) (const (,integer? class-data-size)) ...
null
https://raw.githubusercontent.com/rtrusso/scp/2051e76df14bd36aef81aba519ffafa62b260f5c/src/sasm/parse/statement.scm
scheme
(need sasm/parse/syntax) (need sasm/sasm-ast) (need sasm/sasm-tracing) (need sasm/parse/extern) (define (sasm-parse-statement statement) (sasm-parse-by-case statement (sasm-syntax-case :pattern (class (,symbol? class-symbol) (const (,integer? class-data-size)) ...
9bdc63fe6ecfe540732f0ed61d537c47f61d59c986fda96c2ff740d0211b784e
ocaml/ocaml
pr7085.ml
(* TEST flags = " -w +A -strict-sequence " * expect *) module TypEq = struct type (_, _) t = Eq : ('a, 'a) t end module type T = sig type _ is_t = Is : ('a, 'b) TypEq.t -> 'a is_t val is_t : unit -> unit is_t option end module Make (M : T) = struct let _ = match M.is_t () with | None -> 0 ...
null
https://raw.githubusercontent.com/ocaml/ocaml/d71ea3d089ae3c338b8b6e2fb7beb08908076c7a/testsuite/tests/typing-warnings/pr7085.ml
ocaml
TEST flags = " -w +A -strict-sequence " * expect
module TypEq = struct type (_, _) t = Eq : ('a, 'a) t end module type T = sig type _ is_t = Is : ('a, 'b) TypEq.t -> 'a is_t val is_t : unit -> unit is_t option end module Make (M : T) = struct let _ = match M.is_t () with | None -> 0 | Some _ -> 0 let f () = match M.is_t () with None -...
977afe4c6f37920423a7d27db69911d9001f947a6870a5625c20997ee7ec05eb
lillo/compiler-course-unipi
parsing.ml
exception Syntax_error of Location.lexeme_pos * string (* rename the arguments as you wish *) let parse _scanner _lexbuf = failwith "TO BE IMPLEMENTED"
null
https://raw.githubusercontent.com/lillo/compiler-course-unipi/330349afbf72919f6ab0915c5f8f49507e9aca71/microc/microc-codegen/lib/parsing.ml
ocaml
rename the arguments as you wish
exception Syntax_error of Location.lexeme_pos * string let parse _scanner _lexbuf = failwith "TO BE IMPLEMENTED"
5604eb972dac81b23926a69762c78f6c3546e82a30484b7bf3b7ca10499de6ab
sellout/haskerwaul
Right.hs
# language TypeApplications , UndecidableInstances # , UndecidableInstances #-} module Haskerwaul.Extension.Kan.Right ( module Haskerwaul.Extension.Kan.Right ) where import Data.Constraint ((\\)) import Haskerwaul.Functor import Haskerwaul.Object import Haskerwaul.Semigroupoid ...
null
https://raw.githubusercontent.com/sellout/haskerwaul/cf54bd7ce5bf4f3d1fd0d9d991dc733785b66a73/src/Haskerwaul/Extension/Kan/Right.hs
haskell
| = references - [nLab](+extension) - [Wikipedia]()
# language TypeApplications , UndecidableInstances # , UndecidableInstances #-} module Haskerwaul.Extension.Kan.Right ( module Haskerwaul.Extension.Kan.Right ) where import Data.Constraint ((\\)) import Haskerwaul.Functor import Haskerwaul.Object import Haskerwaul.Semigroupoid ...
ab9c3c9196554d65255f7ef857f3f598f8404defcdeb3d97b530bc43818f3c21
pierric/neural-network
Setup.hs
import Distribution.Simple import Distribution.Simple.Setup import Distribution.Simple.LocalBuildInfo import Distribution.Simple.Program import Distribution.Simple.Program.Run import Distribution.Simple.Program.Ar import Distribution.Simple.BuildPaths import Distribution.System import Distribution.Verbosity import Dist...
null
https://raw.githubusercontent.com/pierric/neural-network/406ecaf334cde9b10c9324e1f6c4b8663eae58d7/Backend-blashs/Setup.hs
haskell
generate a ".a" archive for the executable however the library is static and doesn't include the vecmod we will then explicitly to insert it.
import Distribution.Simple import Distribution.Simple.Setup import Distribution.Simple.LocalBuildInfo import Distribution.Simple.Program import Distribution.Simple.Program.Run import Distribution.Simple.Program.Ar import Distribution.Simple.BuildPaths import Distribution.System import Distribution.Verbosity import Dist...
bceaeb04faa9f5de1f419562e037abea1da941e1fcd9261ba3ae8a052f6836ea
mlin/PhyloCSF
Code.mli
(** abstractions for nucleotides, amino acids, and codons *) (** common signature for a code *) module type S = sig type t * alphabet size ( e.g. 4 for nucleotides , 20 for amino acids ) val dim : int (** return the index of the given codeword (between 0 and dim-1) *) val index : t -> int (** return a codew...
null
https://raw.githubusercontent.com/mlin/PhyloCSF/6a26e7f7f40b43eac8b76cc1fe295a584d7d8b38/lib/CamlPaml/Code.mli
ocaml
* abstractions for nucleotides, amino acids, and codons * common signature for a code * return the index of the given codeword (between 0 and dim-1) * return a codeword from its index * @deprecated old name for Codon61
module type S = sig type t * alphabet size ( e.g. 4 for nucleotides , 20 for amino acids ) val dim : int val index : t -> int val of_index : int -> t val compare : t -> t -> int * 4 DNA nucleotides module DNA : sig type t = char val dim : int val index : t -> int val of_index : int -> t val compare ...
89d2e1e5732c9179c065438311823a7066ddc82f96ee4bcd245666e8676131b6
TomSmeets/FractalArt
ForeignFunctions.hs
# LANGUAGE ForeignFunctionInterface # module FractalArt.ForeignFunctions (setWallpaper, getScreenSize) where import Foreign.C foreign import ccall unsafe "set_wallpaper" set_wallpaper' :: CString -> IO () foreign import ccall unsafe "get_screen_size_x" get_screen_size_x' :: IO Int foreign import ccall unsafe ...
null
https://raw.githubusercontent.com/TomSmeets/FractalArt/45bb2efc7423511229744b388a8b94d265e61ab2/src/FractalArt/ForeignFunctions.hs
haskell
# LANGUAGE ForeignFunctionInterface # module FractalArt.ForeignFunctions (setWallpaper, getScreenSize) where import Foreign.C foreign import ccall unsafe "set_wallpaper" set_wallpaper' :: CString -> IO () foreign import ccall unsafe "get_screen_size_x" get_screen_size_x' :: IO Int foreign import ccall unsafe ...
b69b76dcc5af8ac41ec1c51db343797f67479495d3fb4bfe0e0bca25da844d7a
janestreet/base_quickcheck
base_quickcheck_test_helpers.ml
open! Base open Base_quickcheck open Expect_test_helpers_core include Base_quickcheck_test_helpers_intf let () = sexp_style := Sexp_style.simple_pretty let set_is_singleton set = Set.length set = 1 let arbitrary_int_gen = Generator.create (fun ~size:_ ~random -> Splittable_random.int random ~lo:Int.min_value ~h...
null
https://raw.githubusercontent.com/janestreet/base_quickcheck/b7f9c75fa9fdc8b8897880f3253ff60ec26131e7/test/helpers/base_quickcheck_test_helpers.ml
ocaml
Used in testing observers, to see which values map to distinct "buckets" by the observer's hash function. Create a partitioning of values based on a hash function. True if the partitioning maps each value to a separate bucket. True if the partitioning maps every value to the same bucket. Not passing [?cr] h...
open! Base open Base_quickcheck open Expect_test_helpers_core include Base_quickcheck_test_helpers_intf let () = sexp_style := Sexp_style.simple_pretty let set_is_singleton set = Set.length set = 1 let arbitrary_int_gen = Generator.create (fun ~size:_ ~random -> Splittable_random.int random ~lo:Int.min_value ~h...
73b4fba44f2e9a74dc4d8a6a92017f935b53ed7eb1366b02c4c5a6740ac1ae24
amnh/PCG
PhylogeneticDAG.hs
------------------------------------------------------------------------------ -- | -- Module : Bio.PhyloGraphPrime.PhylogeneticDAG Copyright : ( c ) 2015 - 2021 Ward Wheeler -- License : BSD-style -- -- Maintainer : -- Stability : provisional -- Portability : portable -- -- Containing the mast...
null
https://raw.githubusercontent.com/amnh/PCG/9341efe0ec2053302c22b4466157d0a24ed18154/lib/core/data-structures/src/Bio/Graph/PhylogeneticDAG.hs
haskell
---------------------------------------------------------------------------- | Module : Bio.PhyloGraphPrime.PhylogeneticDAG License : BSD-style Maintainer : Stability : provisional Portability : portable Containing the master command for unifying all input types: tree, metadata, and sequence ...
Copyright : ( c ) 2015 - 2021 Ward Wheeler # LANGUAGE FlexibleContexts # module Bio.Graph.PhylogeneticDAG ( PhylogeneticFreeDAG(..) , PhylogeneticDAG(..) , PostorderContextualData(..) , HasVirtualNodeMapping(..) , HasPhylogeneticForest(..) , HasColumnMetadata(..) , EdgeReference , assignOptimal...
2c857313b790daa3f1dce129f698ff6cd27c8a1405676bf7b0a1a47d8fe6544b
TempusMUD/cl-tempus
sight.lisp
(in-package #:tempus) (defun room-is-dark (room) "Returns T if the room is too dark to see unaided." (and (not (plusp (light-of room))) (or (eql (terrain-of room) +sect-elemental-ooze+) (room-flagged room +room-dark+) (and (room-in-prime-plane room) (not (room-flagged r...
null
https://raw.githubusercontent.com/TempusMUD/cl-tempus/c5008c8d782ba44373d89b77c23abaefec3aa6ff/src/utilities/sight.lisp
lisp
Mortals can't see unapproved mobs Non-tester mortal players can't see testers Holy is the light that shines on the chosen Sonic imagery and retina detects transparent creatures True seeing and detect invisibility counteract all magical invis Invis to undead Can always see self Only immortals can see utility mob...
(in-package #:tempus) (defun room-is-dark (room) "Returns T if the room is too dark to see unaided." (and (not (plusp (light-of room))) (or (eql (terrain-of room) +sect-elemental-ooze+) (room-flagged room +room-dark+) (and (room-in-prime-plane room) (not (room-flagged r...
1e84b81023f3c6c74d0933371d35af69b31e9ffcb9c02d493aa33945790ddb58
oakes/clojure-conj-2014
35-quest-quest.clj
; quests (def quests [{:title "Welcome to Quest Quest!" :body "" :reward "Falling Unlocked!"}]) ; ui (defn make-unit-frames "Initialzes the unit frames, starting information is hardcoded." [] (table [:row [(assoc (label (str "HP: " 10) (color :white)) ...
null
https://raw.githubusercontent.com/oakes/clojure-conj-2014/575e8eeced02d761f8d278b95906083f03ba9565/35-quest-quest.clj
clojure
quests ui utils Input handlers Camera controls World handlers Movement handlers FIXME near should be touching Combat handlers entities core
(def quests [{:title "Welcome to Quest Quest!" :body "" :reward "Falling Unlocked!"}]) (defn make-unit-frames "Initialzes the unit frames, starting information is hardcoded." [] (table [:row [(assoc (label (str "HP: " 10) (color :white)) :id :healt...
78724f2a37b4c2d4581c36e4715bc5ef519ae45e0a8da4e805399ec0d46d3af4
ku-fpg/haskino
LCDCounterE.hs
----------------------------------------------------------------------------- -- | Module : System . Hardware . Haskino . SamplePrograms . . LCDCounterE -- Based on System.Hardware.Arduino Copyright : ( c ) University of Kansas -- License : BSD3 -- Stability : experimental -- --...
null
https://raw.githubusercontent.com/ku-fpg/haskino/9a0709c92c2da9b9371e292b00fd076e5539eb18/legacy/Deep/LCDCounterE.hs
haskell
--------------------------------------------------------------------------- | Based on System.Hardware.Arduino License : BSD3 Stability : experimental Simple LCD counter application ----------------------------------------------------------------------------- as an example. More informatio...
Module : System . Hardware . Haskino . SamplePrograms . . LCDCounterE Copyright : ( c ) University of Kansas module System.Hardware.Haskino.SamplePrograms.Deep.LCDCounterE where import System.Hardware.Haskino import System.Hardware.Haskino.Expr import System.Hardware.Haskino.Parts.LCDE import Prelud...
611ff9ec36b0a9c6aa4c7af7d183cc72c9dd98d891b25459eafaa6be053d4dfa
sebasmonia/nordvpn-client
nmcli-wrapper.lisp
nmcli-wrapper.lisp ;;; Access nmcli to do the stuff we need: list/create/edit connections (in-package #:nmcli-wrapper) ;; This should be "nmcli", except when developing inside a toolbx container, then ;; it is "flatpak-spawn --host nmcli" (defvar *nmcli-executable* "nmcli" "How to invoke nmcli.") (defun connection...
null
https://raw.githubusercontent.com/sebasmonia/nordvpn-client/01e45479ba622652a32a43e35af09490df15e9f9/nmcli-wrapper.lisp
lisp
Access nmcli to do the stuff we need: list/create/edit connections This should be "nmcli", except when developing inside a toolbx container, then it is "flatpak-spawn --host nmcli" I used to have a prefix & concat here...not anymore...but leaving the funcion anyway. on any error, return the message on any error, ...
nmcli-wrapper.lisp (in-package #:nmcli-wrapper) (defvar *nmcli-executable* "nmcli" "How to invoke nmcli.") (defun connection-name-for-file (path) "Determines the Network Manager connection name for the file at PATH." (pathname-name path)) (defun delete-connections-by-name (target-name) "Delete any other con...
4fffda2f8b9b3bcd64142e2625dc8e8e77680f31a9e32a03220bf1cc36789211
clojure/core.async
ex-go.clj
(require '[clojure.core.async :as async :refer [<! >! <!! timeout chan alt! go]]) (defn fake-search [kind] (fn [c query] (go (<! (timeout (rand-int 100))) (>! c [kind query])))) (def web1 (fake-search :web1)) (def web2 (fake-search :web2)) (def image1 (fake-search :image1)) (def image2 (fake-search :i...
null
https://raw.githubusercontent.com/clojure/core.async/edc3e16c034106f06e861ffbf91ba0ea87107208/examples/ex-go.clj
clojure
(require '[clojure.core.async :as async :refer [<! >! <!! timeout chan alt! go]]) (defn fake-search [kind] (fn [c query] (go (<! (timeout (rand-int 100))) (>! c [kind query])))) (def web1 (fake-search :web1)) (def web2 (fake-search :web2)) (def image1 (fake-search :image1)) (def image2 (fake-search :i...
6eb6885860b8786fea412d8e526bec14cc7c20835f5bca26c67cf27a61a2a48b
rain-1/single_cream
tree.scm
(define (count-leaves x) (cond ((null? x) 0) ((not (pair? x)) 1) (else (+ (count-leaves (car x)) (count-leaves (cdr x)))))) (define (scale-tree tree factor) (cond ((null? tree) '()) ((not (pair? tree)) (* tree factor)) (else (cons (scale-tree (car tree) factor) ...
null
https://raw.githubusercontent.com/rain-1/single_cream/f8989fde4bfcffe0af7f6ed5916885446bf40124/t/sicp/tree.scm
scheme
empty set? sequence containing empty set
(define (count-leaves x) (cond ((null? x) 0) ((not (pair? x)) 1) (else (+ (count-leaves (car x)) (count-leaves (cdr x)))))) (define (scale-tree tree factor) (cond ((null? tree) '()) ((not (pair? tree)) (* tree factor)) (else (cons (scale-tree (car tree) factor) ...
0d936a0b7cbe3b90f2fec6cbe8b3e306a4237252ee913b9eb683f5dc8dca97bf
russelldb/rabl
rabl_sup.erl
%%%------------------------------------------------------------------- %% @doc rabl top level supervisor. Starts the consumer gen_servers %% @end %% %------------------------------------------------------------------- -module(rabl_sup). -behaviour(supervisor). %% API -export([start_link/0]). %% Supervisor callbacks...
null
https://raw.githubusercontent.com/russelldb/rabl/9aa140ef5ec09959393adba5a98321b6df8323e1/src/rabl_sup.erl
erlang
------------------------------------------------------------------- @doc rabl top level supervisor. Starts the consumer gen_servers @end %------------------------------------------------------------------- API Supervisor callbacks ==================================================================== API functions ...
-module(rabl_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). -define(SERVER, ?MODULE). start_link() -> supervisor:start_link({local, ?SERVER}, ?MODULE, []). Child : : { Id , StartFunc , Restart , Shutdown , Type , Modules } init([]) -> SupFlags = {one_for_one, 10, 5}, Ra...
03a72b43f485966b922f13ba9758f37a8c2692a41bddd1023f82b7c6712ead4c
BumblebeeBat/FlyingFox
sign.erl
-module(sign). -export([test/0,test2/1,test3/0,sign_tx/5,sign/2,verify_sig/3,shared_secret/2,verify/2,data/1,revealed/1,empty/1,empty/0,set_revealed/2,verify_1/2,verify_2/2, pubkey2address/1, valid_address/1, hard_new_key/0,new_key/0,pub/1,pub2/1]). -record(signed, {data="", sig="", pub = "", sig2="", pub2="", revealed...
null
https://raw.githubusercontent.com/BumblebeeBat/FlyingFox/0fa039cd2394b08b1a85559f9392086c6be47fa6/src/consensus/tree/sign.erl
erlang
to_bytes(X) -> term_to_binary(X). {Address, Pub, Priv} = hard_new_key(), %recomputing is too slow. better to write it down, and reuse it each time.
-module(sign). -export([test/0,test2/1,test3/0,sign_tx/5,sign/2,verify_sig/3,shared_secret/2,verify/2,data/1,revealed/1,empty/1,empty/0,set_revealed/2,verify_1/2,verify_2/2, pubkey2address/1, valid_address/1, hard_new_key/0,new_key/0,pub/1,pub2/1]). -record(signed, {data="", sig="", pub = "", sig2="", pub2="", revealed...
9cec056f0466546fc4e11d0eba2d3d8aea27c405721110dd3162f22eac0f24e8
LambdaCon/2015
hackney_pool_handler.erl
%%% -*- erlang -*- %%% This file is part of hackney released under the Apache 2 license . %%% See the NOTICE for more information. %%% -module(hackney_pool_handler). -include("hackney.hrl"). -type host() :: binary() | string(). -type client() :: #client{}. -ifdef(no_callback_support). -export([behaviour_info/1])....
null
https://raw.githubusercontent.com/LambdaCon/2015/0149877454b88815b9fcb9cba8ffd9b37c149026/Elixir%20love%20at%20first%20sip/src/demos/currencies_skeleton/deps/hackney/src/hackney_connect/hackney_pool_handler.erl
erlang
-*- erlang -*- See the NOTICE for more information. start a bool handler
This file is part of hackney released under the Apache 2 license . -module(hackney_pool_handler). -include("hackney.hrl"). -type host() :: binary() | string(). -type client() :: #client{}. -ifdef(no_callback_support). -export([behaviour_info/1]). -spec behaviour_info(atom()) -> [{atom(), arity()}] | undefined. b...
a0cdec71fac845b7da1e2618bf0202f7aebf747e33cbf67da7dca3d01f57e6ac
ghcjs/ghcjs
Settings.hs
{-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DeriveGeneric # module Compiler.Settings where import Gen2.Base import qualified Gen2.Object as Object import qualified Control.Exception as E import Control.Concurrent.MVar import Control.Monad import Data.Aeson import ...
null
https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/src/Compiler/Settings.hs
haskell
# LANGUAGE DeriveDataTypeable # ^ don't use incremental linking ^ load base from file ^ use this base ^ module name | we generate a runnable all.js only if we link a complete application, no incremental linking and no skipped parts ^ keep track of already compiled modules so we don't compile twice for dynamic-...
# LANGUAGE DeriveGeneric # module Compiler.Settings where import Gen2.Base import qualified Gen2.Object as Object import qualified Control.Exception as E import Control.Concurrent.MVar import Control.Monad import Data.Aeson import Data.ByteString (ByteString)...
6abcbe93c80b4faa90f645d6d2035df538852dcb8491f5808c4f3cf8b502b346
docker-in-aws/docker-in-aws
validation.cljs
(ns material.validation (:require [material.factory] [swarmpit.ip :as ip] [swarmpit.yaml :as yaml])) (.addValidationRule js/Formsy "isValidGateway" (fn [_ value] (if (empty? value) true (ip/is-valid-gate...
null
https://raw.githubusercontent.com/docker-in-aws/docker-in-aws/bfc7e82ac82ea158bfb03445da6aec167b1a14a3/ch16/swarmpit/src/cljs/material/validation.cljs
clojure
(ns material.validation (:require [material.factory] [swarmpit.ip :as ip] [swarmpit.yaml :as yaml])) (.addValidationRule js/Formsy "isValidGateway" (fn [_ value] (if (empty? value) true (ip/is-valid-gate...
50f5a14a0d82747592199141ab5c6b365ade9e05df8d77de2b8b13e90d32c349
onedata/op-worker
atm_openfaas_activity_report_handler.erl
%%%------------------------------------------------------------------- @author ( C ) 2022 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%------------------------------------------------------------------- %%% @doc Interface for a module that handles ...
null
https://raw.githubusercontent.com/onedata/op-worker/af88ede8353170b5d20f815900f0cbca20a1dc70/src/modules/automation/task/executor/platforms/openfaas/activity_feed/atm_openfaas_activity_report_handler.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- =================================================================== Callbacks ===================...
@author ( C ) 2022 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . Interface for a module that handles OpenFaaS activity reports . -module(atm_openfaas_activity_report_handler). -author("Lukasz Opiola"). -callback consume_report( atm_openfaas_activity_fee...
5851b7eda288b50b0e3f7968bdc16f8f3b03890ca4dccb9f8695a83b684afe05
bodil/clojurescript-all-the-way-down
mongo.cljs
(ns tbd.mongo (:use [tbd.yunoincore :only [clj->js]])) (def mongodb (js/require "mongodb")) (def ^:export Db (aget mongodb "Db")) (def ^:export Server (aget mongodb "Server")) (def ^:export Collection (aget mongodb "Collection")) (def ^:export ObjectID (aget mongodb "ObjectID")) (defn connect ([host port db call...
null
https://raw.githubusercontent.com/bodil/clojurescript-all-the-way-down/6b15059a16b7c194f32e62fbc8130ac09bd07350/src/server/mongo.cljs
clojure
(ns tbd.mongo (:use [tbd.yunoincore :only [clj->js]])) (def mongodb (js/require "mongodb")) (def ^:export Db (aget mongodb "Db")) (def ^:export Server (aget mongodb "Server")) (def ^:export Collection (aget mongodb "Collection")) (def ^:export ObjectID (aget mongodb "ObjectID")) (defn connect ([host port db call...
412e664b8a95641869da7e8502a8b83cbb6bdd3be803630d5628dc64deb59c0d
borkdude/bebo
core.cljs
(ns bebo.core (:require [clojure.string :as str] [goog.object :as gobject] [sci.async :as scia] [sci.core :as sci] [shadow.esm :as esm])) (defn async-load-fn [{:keys [libname opts ctx ns]}] (let [[libname suffix] (str/split libname "$")] (-> (esm/dynamic-import libname) (.then ...
null
https://raw.githubusercontent.com/borkdude/bebo/c16d4ae3e7d5d7466597956625e4c384aeaf0335/src/bebo/core.cljs
clojure
register class globally in context import class in current namespace with reference to globally registed class register sub-library globally add import to sub-library in current namespace async require override allow printing
(ns bebo.core (:require [clojure.string :as str] [goog.object :as gobject] [sci.async :as scia] [sci.core :as sci] [shadow.esm :as esm])) (defn async-load-fn [{:keys [libname opts ctx ns]}] (let [[libname suffix] (str/split libname "$")] (-> (esm/dynamic-import libname) (.then ...
d36c97d91747c47f215489be962140c643927502ab9c4ec4f69a734dd3e22f26
nasa/Common-Metadata-Repository
messages.clj
(ns cmr.ingest.services.messages (:require [clojure.string :as string] [cmr.common.util :as util] [cmr.common.validations.core :as vc])) (defn provider-does-not-exist "This is the error message when a provider does not exist on the URL parameters list." [] "Provider is a required URL parameter. Please...
null
https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/7a217ca3758f9f7b2d894f31d0e23c42819cc3e0/ingest-app/src/cmr/ingest/services/messages.clj
clojure
else
(ns cmr.ingest.services.messages (:require [clojure.string :as string] [cmr.common.util :as util] [cmr.common.validations.core :as vc])) (defn provider-does-not-exist "This is the error message when a provider does not exist on the URL parameters list." [] "Provider is a required URL parameter. Please...
ce25be3b1f9a8ca46330326744b867a7d622a02fe69738677ba4a383375a6648
jellelicht/guix
store.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2012 , 2013 , 2014 , 2015 , 2016 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; ...
null
https://raw.githubusercontent.com/jellelicht/guix/83cfc9414fca3ab57c949e18c1ceb375a179b59c/guix/store.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2012 , 2013 , 2014 , 2015 , 2016 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (guix store) #:use-module (guix utils) #:use-module (guix config) ...
834f775bd6acda5c3ad14e6de68b9d1b6c376433c84ffe3fb0a69c13d741c892
racket/gui
mred-sig.rkt
#lang racket/signature add-color<%> add-editor-keymap-functions add-pasteboard-keymap-functions add-text-keymap-functions any-control+alt-is-altgr append-editor-font-menu-items append-editor-operation-menu-items application-about-handler application-file-handler application-preferences-handler application-quit-handler...
null
https://raw.githubusercontent.com/racket/gui/d1fef7a43a482c0fdd5672be9a6e713f16d8be5c/gui-lib/mred/mred-sig.rkt
racket
#lang racket/signature add-color<%> add-editor-keymap-functions add-pasteboard-keymap-functions add-text-keymap-functions any-control+alt-is-altgr append-editor-font-menu-items append-editor-operation-menu-items application-about-handler application-file-handler application-preferences-handler application-quit-handler...
56537791ebf511357123eadc431cdb72ff6dfae66fdb4c73c59421af7dfa3684
ChristopherNeufeld/HP67-lisp
key-structs.lisp
;; Code related to the parsing and construction of keys The stack labels the bottom four entries . In order from first ;; popped to last: X, Y, Z, W ;; ;; The general format of key operator rules is this: ;; ;; X <- (sqrt (* X X) (* Y Y)) Y < - ( atan Y X ) ;; ;; However... ;; If the function produces only a sin...
null
https://raw.githubusercontent.com/ChristopherNeufeld/HP67-lisp/85daecab30cdcfc952b900289f8b471c52bbedb9/key-structs.lisp
lisp
Code related to the parsing and construction of keys popped to last: X, Y, Z, W The general format of key operator rules is this: X <- (sqrt (* X X) (* Y Y)) However... If the function produces only a single result, it can be abbreviated as: (* Y X) so, we need some code to rewrite this, when it arrives a...
The stack labels the bottom four entries . In order from first Y < - ( atan Y X ) (declaim (optimize (debug 3) (safety 3))) (in-package :HP67-INTERNALS) (defparameter *rcode* :RETCODE) (defparameter *assign* '<-) (defstruct (location) 1 - offset row number 1 - offset column number (shift :UNSHIFTED) ...
cc4645a26fdc2044e4938533c3be47cd0c6925738f8e594a6bd7badc41fafb06
jeffshrager/biobike
drag-and-drop.lisp
;;; -*- mode: Lisp; Syntax: Common-Lisp; Package: nvpl; -*- (in-package :nvpl) ;;; +=========================================================================+ | Copyright ( c ) 2006 JP Massar , | ;;; | | ;;; | ...
null
https://raw.githubusercontent.com/jeffshrager/biobike/5313ec1fe8e82c21430d645e848ecc0386436f57/BioLisp/vplcode/drag-and-drop.lisp
lisp
-*- mode: Lisp; Syntax: Common-Lisp; Package: nvpl; -*- +=========================================================================+ | | | Permission is hereby granted, free of charge, to any person obtaining | | a copy of this software and a...
(in-package :nvpl) | Copyright ( c ) 2006 JP Massar , | | " Software " ) , to deal in the Software without restriction , including | | distribute , sublicense , and/or sell copies of the Software , and to | | permit persons to whom the Software is furnished to do s...
5abcd14f2bb8abb7617f3de07d738ffb9428553c402df2cb937eca7669c2f230
graninas/Functional-Design-and-Architecture
Simulator.hs
module Andromeda.Simulator ( module X ) where import Andromeda.Simulator.SimulationModel as X import Andromeda.Simulator.Simulation as X import Andromeda.Simulator.Actions as X
null
https://raw.githubusercontent.com/graninas/Functional-Design-and-Architecture/54928412e805f2ba5fb06589b58210a7da6d5aa1/Second-Edition-Manning-Publications/BookSamples/CH06/Section6p2/src/Andromeda/Simulator.hs
haskell
module Andromeda.Simulator ( module X ) where import Andromeda.Simulator.SimulationModel as X import Andromeda.Simulator.Simulation as X import Andromeda.Simulator.Actions as X
641bbc3ef1afb30a37d570131f513899bac16fb6179741ea96c40ea5b845ba10
ocaml/oasis
OASISVersion.mli
(******************************************************************************) OASIS : architecture for building OCaml libraries and applications (* *) Copyright ( C ) 2011 - 2016 , Copyrig...
null
https://raw.githubusercontent.com/ocaml/oasis/3d1a9421db92a0882ebc58c5df219b18c1e5681d/src/oasis/OASISVersion.mli
ocaml
**************************************************************************** This library is free software; you can redistribute it and/or modify it under the t...
OASIS : architecture for building OCaml libraries and applications Copyright ( C ) 2011 - 2016 , Copyright ( C ) 2008 - 2011 , OCamlCore SARL the Free Software Foundation ; either version 2.1 of the License , or ( at You s...
b18b6a29bf888665e44b1aa117f471c80421a4ac92524029e60f21cf7daa6146
axch/integer-sequences
load.scm
This file is part of Integer Sequences , a library for recreational number theory in MIT Scheme . Copyright 2013 . ;;; Integer Sequences 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 ; eithe...
null
https://raw.githubusercontent.com/axch/integer-sequences/bda1cd1f0b3799c0a7af62a6fdbebf22c110c8be/load.scm
scheme
you can redistribute it and/or either version 3 of This code 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 General Public License for more details. if not , see </>. Loadin...
This file is part of Integer Sequences , a library for recreational number theory in MIT Scheme . Copyright 2013 . modify it under the terms of the GNU Affero General Public License the License , or ( at your option ) any later version . You should have received a copy of the GNU Affero General Public (...
3d9040752d4e5eff09773d5ac9419f62e4c3d3e7afbbbdd8f95d9787a8361547
ucsd-progsys/liquidhaskell
Solver.hs
| Correctness of sat solver as in Trellys -- | /~sweirich/papers/popl14-trellys.pdf -- | This code is terrible. -- | Should use cases and auto translate like in the paper's theory | Also , & & , not and rest logical operators are not in scope in the axioms {-@ LIQUID "--higherorder" @-} {-@ LIQUID "--exact-da...
null
https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/f8c203f8f1d4c328b24f5be456e4b9ea514bc77e/tests/benchmarks/popl18/nople/pos/Solver.hs
haskell
| /~sweirich/papers/popl14-trellys.pdf | This code is terrible. | Should use cases and auto translate like in the paper's theory @ LIQUID "--higherorder" @ @ LIQUID "--exact-data-cons" @ @ LIQUID "--pruneunsorted" @ TAG: termination | Formula | Assignment | Top-level "solver" @ solve :: f:Formula -> Maybe ...
| Correctness of sat solver as in Trellys | Also , & & , not and rest logical operators are not in scope in the axioms TAG : absref module Solver where import Data.Tuple import Data.List (nub) import Language.Haskell.Liquid.Prelude ((==>)) import Prelude hiding (map) type Var = Int data Lit = Pos Va...
691ad2e31fe18c35eec0594c5bf58ab61eedac481d8553e28c5aa6eef6f04758
transient-haskell/transient-universe
TestSuite.hs
# LANGUAGE CPP , ScopedTypeVariables # module Main where #ifndef ghcjs_HOST_OS import Control.Monad import Control.Monad.IO.Class import Control.Applicative import Data.Monoid import Transient.Base import Transient.Internals import Transi...
null
https://raw.githubusercontent.com/transient-haskell/transient-universe/7cfbbdfa8eefbea79f48ccb69bc1823ba9abc7ea/tests/TestSuite.hs
haskell
#define _UPK_(x) {-# UNPACK #-} !(x) to repeat the tests, remove the "exit" at the end remove this to repeat the test
# LANGUAGE CPP , ScopedTypeVariables # module Main where #ifndef ghcjs_HOST_OS import Control.Monad import Control.Monad.IO.Class import Control.Applicative import Data.Monoid import Transient.Base import Transient.Internals import Transi...
404b400f647563e513d140a926a8336207a3601308c0021f2862ad1d66479de8
DogLooksGood/holdem
http.cljs
(ns poker.http (:require [ajax.core :refer [POST]] [re-frame.core :as re-frame] [poker.csrf :refer [?csrf-token]])) (comment ;; usages (post! "/alive" {:a 1} nil)) (defn post! [api params callback] (let [hdlr (when-let [{:keys [success failure]} callback] (fn [data] ...
null
https://raw.githubusercontent.com/DogLooksGood/holdem/bc0f93ed65cab54890c91f78bb95fe3ba020a41f/src/cljs/poker/http.cljs
clojure
usages
(ns poker.http (:require [ajax.core :refer [POST]] [re-frame.core :as re-frame] [poker.csrf :refer [?csrf-token]])) (comment (post! "/alive" {:a 1} nil)) (defn post! [api params callback] (let [hdlr (when-let [{:keys [success failure]} callback] (fn [data] (if (...
c84498709dabfcf72ab60663a575f911e3d4c5db293f1b926bc24207a839b366
erszcz/learning
rebar3-example_app.erl
%%%------------------------------------------------------------------- %% @doc rebar3-example public API %% @end %%%------------------------------------------------------------------- -module('rebar3-example_app'). -behaviour(application). %% Application callbacks -export([start/2 ,stop/1]). %%=============...
null
https://raw.githubusercontent.com/erszcz/learning/b21c58a09598e2aa5fa8a6909a80c81dc6be1601/rebar3-example/src/rebar3-example_app.erl
erlang
------------------------------------------------------------------- @doc rebar3-example public API @end ------------------------------------------------------------------- Application callbacks ==================================================================== API =================================================...
-module('rebar3-example_app'). -behaviour(application). -export([start/2 ,stop/1]). start(_StartType, _StartArgs) -> 'rebar3-example_sup':start_link(). stop(_State) -> ok. Internal functions
ca3f49967e61f622ae121bec686b950f5da85955056b4d833bb7741faa7531a4
cbaggers/cepl
memory.lisp
(in-package :cepl.memory) (defgeneric free (object) (:method ((object null)) (declare (ignore object)) (error "CEPL: free was called on nil"))) (defgeneric initialized-p (object)) (defgeneric push-g (object destination)) (defgeneric pull-g (object)) (defgeneric pull1-g (object)) (defgeneric copy-g (source d...
null
https://raw.githubusercontent.com/cbaggers/cepl/d1a10b6c8f4cedc07493bf06aef3a56c7b6f8d5b/core/memory/memory.lisp
lisp
(in-package :cepl.memory) (defgeneric free (object) (:method ((object null)) (declare (ignore object)) (error "CEPL: free was called on nil"))) (defgeneric initialized-p (object)) (defgeneric push-g (object destination)) (defgeneric pull-g (object)) (defgeneric pull1-g (object)) (defgeneric copy-g (source d...
3bda4dbc4cdd62ab8826c5ecb648c7e6fecf0a8759cbc24c2a8d40a686f33d32
thelema/ocaml-community
int_misc.mli
(***********************************************************************) (* *) (* OCaml *) (* *) , projet Crista...
null
https://raw.githubusercontent.com/thelema/ocaml-community/ed0a2424bbf13d1b33292725e089f0d7ba94b540/otherlibs/num/int_misc.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 GNU Library General Public License , with $ Id$ val gcd_int: int -> int -> int val num_...
1ab0cd6b3d707bfbb9476c733b00a7f1a291c9d1f0bc8a39aa061eaf83db1ea6
jhjourdan/C11parser
declarator.mli
, , ( c ) 2016 - 2017 , All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : * Redistributions of source code must retain the above copyright notice , this list of con...
null
https://raw.githubusercontent.com/jhjourdan/C11parser/d2152c542f3d0c7554cca1461ccc3e9d63f6af67/declarator.mli
ocaml
This accessor returns the identifier that is being declared. A function for restoring the context that was saved in a function declarator and, on top of that, declaring the function itself as a variable.
, , ( c ) 2016 - 2017 , All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : * Redistributions of source code must retain the above copyright notice , this list of con...
e579eb199ed0482a0efa7f7d2feaaa70b5cc8f55c42cbfa2da2796aa66722570
mbutterick/quad
emoji.rkt
#lang quad/unicode/unicode-class-prep emoji? # downloaded from # -data.txt # and used under license # emoji-data.txt # Date: 2019-01-15, 12:10:05 GMT # © 2019 Unicode®, Inc. # Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the U.S. and other countries. # For terms of use, see # # Emoji Da...
null
https://raw.githubusercontent.com/mbutterick/quad/395447f35c2fb9fc7b6199ed185850906d80811d/quad/unicode/emoji.rkt
racket
<property> # <comments> Emoji ; No Emoji_Presentation ; No Emoji_Presentation # 6.0[182] (👂..📷) ear..camera Emoji_Modifier ; No No Emoji_Component ; No Extended_Pictographic ; No Extended_Pictographic# 5.1[100] (🀰..🂓) DOMINO TILE HORIZONTAL BACK..DOMINO TILE VERTICAL-06-06 Extended_Pictographic...
#lang quad/unicode/unicode-class-prep emoji? # downloaded from # -data.txt # and used under license # emoji-data.txt # Date: 2019-01-15, 12:10:05 GMT # © 2019 Unicode®, Inc. # Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the U.S. and other countries. # For terms of use, see # # Emoji Da...
e16beb78339d72b7bcd4a5d955f6cda8f92a26461d6ddf8e477559352717cfaf
ocsigen/js_of_ocaml
test_typed_array.ml
Js_of_ocaml * / * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking exception ; * either version 2.1 of the License , or ( at your option ) any later vers...
null
https://raw.githubusercontent.com/ocsigen/js_of_ocaml/58210fabc947c4839b6e71ffbbf353a4ede0dbb7/lib/tests/test_typed_array.ml
ocaml
To trigger a `false`, modify the `kind` integer hard coded in the * `caml_ba_kind_of_typed_array` stub
Js_of_ocaml * / * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking exception ; * either version 2.1 of the License , or ( at your option ) any later vers...
4013949b5b4db931d1d17c1af877927018db721106350a8994d9ccceb9062d58
esb-lwb/lwb
shell.clj
lwb Logic WorkBench -- Helper for using shell commands Copyright ( c ) 2017 , , THM . ; All rights reserved. ; The use and distribution terms for this software are covered by the Eclipse Public License 1.0 ( -1.0.php ) . ; By using this software in any fashion, you are agreeing to be bound by ; the terms of ...
null
https://raw.githubusercontent.com/esb-lwb/lwb/bba51ada7f7316341733d37b0dc4848c4891ef3a/src/lwb/util/shell.clj
clojure
All rights reserved. The use and distribution terms for this software are covered by the By using this software in any fashion, you are agreeing to be bound by the terms of this license.
lwb Logic WorkBench -- Helper for using shell commands Copyright ( c ) 2017 , , THM . Eclipse Public License 1.0 ( -1.0.php ) . (ns lwb.util.shell (:require [clojure.spec.alpha :as s] [clojure.java.shell :as shell] [clojure.string :as str])) (defn os "Get type of operating syste...
f3422be45801ef6682e05b27a98d75c89a34e38490959277ddb01ef3a9768509
foshardware/lsc
Transformer.hs
Copyright 2018 - < > SPDX - License - Identifier : GPL-3.0 - or - later # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleInstances # {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveFunctor # module LSC.Transformer where import Control.Applicative import Control.Lens import Control.DeepSeq import Control...
null
https://raw.githubusercontent.com/foshardware/lsc/006c245a89b0a0056286205917438c7d031d04b9/src/LSC/Transformer.hs
haskell
# LANGUAGE DeriveAnyClass # | Once a state thread computation is lifted it may not escape monadic context anymore.
Copyright 2018 - < > SPDX - License - Identifier : GPL-3.0 - or - later # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleInstances # # LANGUAGE DeriveFunctor # module LSC.Transformer where import Control.Applicative import Control.Lens import Control.DeepSeq import Control.Exception import Control.Monad....
5cf565f35095c362f25324612075ee1aabf488be7bdd8f381c3476ec7e40b422
project-oak/hafnium-verification
sh.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/sledge/src/symbheap/sh.mli
ocaml
* Symbolic Heap Formulas * vocabulary / variable context of formula * existentially-bound variables * congruence induced by rest of formula * conjunction of pure boolean constraints * star-conjunction of segment atomic formulas * star-conjunction of disjunctions * Construct * Empty heap formula. * Inconsistent...
* 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 ...