_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
c40f9b2c2bcec568513b5a8853a474282a97809535a234f3c1a70806f086d201
imitator-model-checker/imitator
OCamlUtilities.mli
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * IMITATOR * * Laboratoire Spécification et Vérification ( ENS Cachan & CNRS , France ) * Université Paris 13 , LIPN , CNRS , France * * Module description ...
null
https://raw.githubusercontent.com/imitator-model-checker/imitator/105408ae2bd8c3e3291f286e4d127defd492a58b/src/OCamlUtilities.mli
ocaml
********************************************************** * Useful functions on integers ********************************************************** ********************************************************** * Useful functions on float ********************************************************** ***********************...
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * IMITATOR * * Laboratoire Spécification et Vérification ( ENS Cachan & CNRS , France ) * Université Paris 13 , LIPN , CNRS , France * * Module description ...
7df21ea8aa5ccd6084b02b9c62a410b15beaf40c676c9d9a9b33e9f00b7015b1
falgon/htcc
Var.hs
| Module : Htcc . . AST.Var Description : Data types and type synonyms used during AST construction Copyright : ( c ) roki , 2019 License : MIT Maintainer : Stability : experimental Portability : POSIX Data types and type synonyms used during AST construction Module : Htcc.P...
null
https://raw.githubusercontent.com/falgon/htcc/3cef6fc362b00d4bc0ae261cba567bfd9c69b3c5/src/Htcc/Parser/AST/Var.hs
haskell
| Module : Htcc . . AST.Var Description : Data types and type synonyms used during AST construction Copyright : ( c ) roki , 2019 License : MIT Maintainer : Stability : experimental Portability : POSIX Data types and type synonyms used during AST construction Module : Htcc.P...
08d937a022f3a07c7ae6a42a190b0ec02c14e6b32a7d469272f7cddda44b8d92
ocaml-flambda/ocaml-jst
transl_list_comprehension.ml
open Lambda open Typedtree open Asttypes open Transl_comprehension_utils open Lambda_utils.Constants * List comprehensions are compiled in terms of " reversed difference lists " . A difference list in general is a function from lists to lists ; by " reversed " , we mean that these lists are stored backwa...
null
https://raw.githubusercontent.com/ocaml-flambda/ocaml-jst/7e5a626e4b4e12f1e9106564e1baba4d0ef6309a/lambda/transl_list_comprehension.ml
ocaml
= [11; 101; 33; 303] Convert the result to a normal list The body: x+y * An implementation note: Many of the functions in this file need to translate expressions from Typedtree to Lambda; to avoid strange dependency ordering, we parameterize those functions by [Translcore.transl_exp], and pass it in a...
open Lambda open Typedtree open Asttypes open Transl_comprehension_utils open Lambda_utils.Constants * List comprehensions are compiled in terms of " reversed difference lists " . A difference list in general is a function from lists to lists ; by " reversed " , we mean that these lists are stored backwa...
c569f9ec814dd35aa9b9b984d2e73c0e45562653a86494dfbf87531f4479bbf6
mojombo/yaws
wiki_plugin_backlinks.erl
%%% File : wiki_plugin_backlinks.erl Author : < > %%% Description : This plugin can show the list of backlinks inline Created : 20 Oct 2003 by %%% <> -module(wiki_plugin_backlinks). -export([run/2]). -include("yaws.hrl"). %% Needed only if you want to manipulate ...
null
https://raw.githubusercontent.com/mojombo/yaws/f75fde80f1e35a87335f21d0983e3285eb665f17/applications/wiki/src/wiki_plugin_backlinks.erl
erlang
File : wiki_plugin_backlinks.erl Description : This plugin can show the list of backlinks inline <> Needed only if you want to manipulate Yaws configuration A way to handle this cleanly is needed.
Author : < > Created : 20 Oct 2003 by -module(wiki_plugin_backlinks). -export([run/2]). run(Page, ArgList) -> TODO : This is working if there is only one virtual server . {ok, Gconf, [[Sconf|Others]]} = yaws_api:getconf(), Root = Sconf#sconf.docroot, AllRefs = wiki_utils:getallrefs(Page...
571191c069dd1a87a2782cbe096c87ea40faa6e7f0d8cbaf8558a58c4faf117b
cpsc411/cpsc411-pub
v1.rkt
#lang at-exp racket/base (require cpsc411/compiler-lib cpsc411/info-lib scribble/bettergrammar racket/contract (for-label cpsc411/compiler-lib) (for-label cpsc411/info-lib) (for-label racket/contract) "redex-gen.rkt" (submod "base.rkt" interp)) (provide (all-defined-out)) @define-grammar/pred[paren-x64-v1 ...
null
https://raw.githubusercontent.com/cpsc411/cpsc411-pub/757ececf84d54d86cfa0c2c6c84f1456c8765db9/cpsc411-lib/cpsc411/langs/v1.rkt
racket
#lang at-exp racket/base (require cpsc411/compiler-lib cpsc411/info-lib scribble/bettergrammar racket/contract (for-label cpsc411/compiler-lib) (for-label cpsc411/info-lib) (for-label racket/contract) "redex-gen.rkt" (submod "base.rkt" interp)) (provide (all-defined-out)) @define-grammar/pred[paren-x64-v1 ...
ed678679c044042159ae511fb5db12f72c4f364b458d079f7ef865a73b7923cb
unclebob/clojureOrbit
vector.clj
(ns physics.vector (:refer-clojure :exclude (vector)) (:require [physics.position :as position]) (:import physics.position.position)) (defn make ([] (position. 0 0)) ([x y] (position. x y))) (defn zero_mag? [v] (position/origin? v)) (def add position/add) (def subtract position/subtract) (defn scale...
null
https://raw.githubusercontent.com/unclebob/clojureOrbit/82d59297dc8c54fccb37b92725f0547def0d6157/src/physics/vector.clj
clojure
(ns physics.vector (:refer-clojure :exclude (vector)) (:require [physics.position :as position]) (:import physics.position.position)) (defn make ([] (position. 0 0)) ([x y] (position. x y))) (defn zero_mag? [v] (position/origin? v)) (def add position/add) (def subtract position/subtract) (defn scale...
76c0b9baf038ee0d9bea4b2f71c45b5f4be50a32ede7c92b50d2ddfac1734548
dym/movitz
vmware-vga.lisp
;;;; vmware.lisp Basic VMWare video driver based upon the one from idyllaos Martin Bealby 2007 ;;;; Currently supports changing video mode only Acceleration functions left to implement ( need ) (require :x86-pc/package) (provide :tmp/vmware) (in-package muerte.x86-pc) (defconstant +vmware-card-ids+ '((#x15...
null
https://raw.githubusercontent.com/dym/movitz/56176e1ebe3eabc15c768df92eca7df3c197cb3d/losp/tmp/vmware-vga.lisp
lisp
vmware.lisp Currently supports changing video mode only internal functions Public methods TODO: actual append to fifo buffer ;)
Basic VMWare video driver based upon the one from idyllaos Martin Bealby 2007 Acceleration functions left to implement ( need ) (require :x86-pc/package) (provide :tmp/vmware) (in-package muerte.x86-pc) (defconstant +vmware-card-ids+ '((#x15AD #x0405 "VMWare Video (v2)"))) (defconstant +vmware-magic-versi...
7f0007bdb588979faba2e6e3f377937dd40861779a8a57bded158b1fe7a8040a
McCLIM/McCLIM
xpm.lisp
;;; --------------------------------------------------------------------------- ;;; License: LGPL-2.1+ (See file 'Copyright' for details). ;;; --------------------------------------------------------------------------- ;;; ( c ) Copyright 2003 by < > ( c ) Copyright 2006 by < > ;;; ;;; -------------------...
null
https://raw.githubusercontent.com/McCLIM/McCLIM/c079691b0913f8306ceff2620b045b6e24e2f745/Extensions/bitmap-formats/xpm.lisp
lisp
--------------------------------------------------------------------------- License: LGPL-2.1+ (See file 'Copyright' for details). --------------------------------------------------------------------------- --------------------------------------------------------------------------- modified to improve perfor...
( c ) Copyright 2003 by < > ( c ) Copyright 2006 by < > (in-package #:clim-internals) Notes This is essentially a rewrite / transliteration of 's original code , with a small palette but high CPP and sparse color tokens ) the palette ( it may have thousands or millions of entries ) . ...
e28040da90f3239a1bf1f6dd65846f32250ce8c0b44e00980c8ef9a84d7a295c
jordanthayer/ocaml-search
one_offs.ml
* @author jtd7 @since 2010 - 06 - 28 Some once off scripts that will be nice to have around @author jtd7 @since 2010-06-28 Some once off scripts that will be nice to have around *) let array_to_point_arrays ar = Array.init (Array.length ar) (fun i -> Geometry.point_of_array ...
null
https://raw.githubusercontent.com/jordanthayer/ocaml-search/57cfc85417aa97ee5d8fbcdb84c333aae148175f/spt_plot/scripts/jtd7/one_offs.ml
ocaml
* @author jtd7 @since 2010 - 06 - 28 Some once off scripts that will be nice to have around @author jtd7 @since 2010-06-28 Some once off scripts that will be nice to have around *) let array_to_point_arrays ar = Array.init (Array.length ar) (fun i -> Geometry.point_of_array ...
43a618e73f03ead153c2f2b9948c5a69e28a688c8eeb934966dad500f2a0481a
LPCIC/matita
print_grammar.mli
Copyright ( C ) 2005 , HELM Team . * * This file is part of HELM , an Hypertextual , Electronic * Library of Mathematics , developed at the Computer Science * Department , University of Bologna , Italy . * * is free software ; you can redistribute it and/or * modify it under the terms of the GNU...
null
https://raw.githubusercontent.com/LPCIC/matita/794ed25e6e608b2136ce7fa2963bca4115c7e175/matita/components/grafite_parser/print_grammar.mli
ocaml
$Id: print_grammar.ml 6977 2006-10-25 12:41:21Z sacerdot $
Copyright ( C ) 2005 , HELM Team . * * This file is part of HELM , an Hypertextual , Electronic * Library of Mathematics , developed at the Computer Science * Department , University of Bologna , Italy . * * is free software ; you can redistribute it and/or * modify it under the terms of the GNU...
dbe82a55b1019274bffa3da0d7500012d2f03d39a0c1304233f0b7fda562a445
timgilbert/haunting-refrain-posh
spotify.cljs
(ns haunting-refrain.fx.spotify (:require [re-frame.core :refer [reg-event-fx reg-event-db]] [haunting-refrain.datascript.spotify :as sp] [cemerick.url :as url] [shodan.console :as console])) ;; -api/search-item/ (defn- spotify-search-url "Return the route to a foursquare API en...
null
https://raw.githubusercontent.com/timgilbert/haunting-refrain-posh/99a7daafe54c5905a3d1b0eff691b5c602ad6d8d/src/cljs/haunting_refrain/fx/spotify.cljs
clojure
-api/search-item/
(ns haunting-refrain.fx.spotify (:require [re-frame.core :refer [reg-event-fx reg-event-db]] [haunting-refrain.datascript.spotify :as sp] [cemerick.url :as url] [shodan.console :as console])) (defn- spotify-search-url "Return the route to a foursquare API endpoint" [search & [...
6e46d8a69abe9aa85db3cedad7dc23f80caeb39460b27844a31ed6ee550c9c8d
kepler16/next.cljs
app.cljs
(ns example.app (:require ["react" :as r])) (defn ^:export init [] (js/console.log "sdf"))
null
https://raw.githubusercontent.com/kepler16/next.cljs/93ba1a1e759eedc4fd98adc5b59d055f07ee3c5d/example/src/example/app.cljs
clojure
(ns example.app (:require ["react" :as r])) (defn ^:export init [] (js/console.log "sdf"))
bd71229728177a67581ea844dcc0de0f732d340d782daa128bc652c15a0c4b1c
marigold-dev/deku
eval.ml
open Values open Types open Instance open Ast open Source (* Errors *) module Link = Error.Make () module Trap = Error.Make () module Crash = Error.Make () module Exhaustion = Error.Make () exception Link = Link.Error exception Trap = Trap.Error exception Crash = Crash.Error (* failure that cannot happen in valid co...
null
https://raw.githubusercontent.com/marigold-dev/deku/a26f31e0560ad12fd86cf7fa4667bb147247c7ef/deku-c/interpreter/exec/eval.ml
ocaml
Errors failure that cannot happen in valid code to model stack overflow Evaluation * Conventions: * e : instr * v : value * es : instr list * vs : value stack * c : config d > s d > s Functions & Constants Modules
open Values open Types open Instance open Ast open Source module Link = Error.Make () module Trap = Error.Make () module Crash = Error.Make () module Exhaustion = Error.Make () exception Link = Link.Error exception Trap = Trap.Error exception Exhaustion = Exhaustion.Error let table_error at = function | Table.Bou...
d0fc61ba554bc2f5929321c1b79bfd60330a9be4ef6cd639e1e9d26c4ad0ad3b
sol/v8
Disposable.hs
{-# LANGUAGE DeriveDataTypeable #-} module Foreign.JavaScript.V8.Disposable ( Disposable (..) , AlreadyDisposed (..) , Finalizer , finalizerNew , finalizerAdd , finalize ) where import Control.Applicative import Control.Monad import Data.IORef import qualified Control.Exception as E im...
null
https://raw.githubusercontent.com/sol/v8/0ff1b23588cf3c0a8f55a4ec557971dabb104d73/src/Foreign/JavaScript/V8/Disposable.hs
haskell
# LANGUAGE DeriveDataTypeable # | Create empty finalizer. | Add action to finalizer. | Run finalizer.
module Foreign.JavaScript.V8.Disposable ( Disposable (..) , AlreadyDisposed (..) , Finalizer , finalizerNew , finalizerAdd , finalize ) where import Control.Applicative import Control.Monad import Data.IORef import qualified Control.Exception as E import Data.Typeable data A...
c739e4307e16ea22de8e0a2906aafc6f8ff6e43ae65097b324b8f1e1b5c6e58c
OCamlPro/ocp-indent
js-comment1.ml
type foo = int (* just in case *) These two should n't be indented differently , but are . type z = [ `Bar of foo (* a comment [expected to apply to `Foo as below] *) | `Foo ] type z = [ `Bar (* a comment *) | `Foo ] On second thought , I kind of like this way of think...
null
https://raw.githubusercontent.com/OCamlPro/ocp-indent/9e26c0a2699b7076cebc04ece59fb354eb84c11c/tests/passing/js-comment1.ml
ocaml
just in case a comment [expected to apply to `Foo as below] a comment Applies to "[" or `Bar. Applies to "|" or `Foo. Indented too much. Applies to "[" or `Bar. Applies to "|" or `Foo. The way we write code, that will line up more nicely. This is indented too far to the left It looks to me like we g...
These two should n't be indented differently , but are . type z = [ `Bar of foo | `Foo ] type z = [ `Bar | `Foo ] On second thought , I kind of like this way of thinking about this indentation , even though it is kind of parasyntactic : indentation, even though it is kind of parasyntactic: *) typ...
abdba7817692327d0a4ce13f139527c0ca94cc990e9944a7f0a422efc85badec
Kakadu/fp2022
relation.mli
* Copyright 2021 - 2022 , and contributors * SPDX - License - Identifier : LGPL-3.0 - or - later open Meta module Tuple : sig type t type element = | Int of int | String of string val from_string_list : string list -> table -> t val to_string_list : t -> string list val nth : int -> t -> elemen...
null
https://raw.githubusercontent.com/Kakadu/fp2022/6881f083160713ebdf4876025016ccfa6fff4492/SQL/lib/relation.mli
ocaml
* Copyright 2021 - 2022 , and contributors * SPDX - License - Identifier : LGPL-3.0 - or - later open Meta module Tuple : sig type t type element = | Int of int | String of string val from_string_list : string list -> table -> t val to_string_list : t -> string list val nth : int -> t -> elemen...
fb5b2212db003685aa7c398238aed5ec7e2347b134ca0728948969588103e851
ahrefs/atd
atdj_trans.ml
open Atd.Import open Atdj_names open Atdj_env open Atdj_util module A = Atd.Ast Calculate the JSON representation of an ATD type . * * Values of sum types t are encoded as either Strings or two - element * JSONArrays , depending upon the arity of the particular constructor . * A nullary constructor C is...
null
https://raw.githubusercontent.com/ahrefs/atd/a3964362b9632ab70a5d17df5fcf337bcac3a294/atdj/src/atdj_trans.ml
ocaml
extract_from_edgy_brackets "ab<cd<e>>f";; - : string = "cd<e>" ahem Check whether the field is optional TODO: fail if no default is provided TODO: fail if no default is provided Generate a toJsonBuffer command TODO Check that this is the correct behaviour Generate a toJsonBuffer command for a record field....
open Atd.Import open Atdj_names open Atdj_env open Atdj_util module A = Atd.Ast Calculate the JSON representation of an ATD type . * * Values of sum types t are encoded as either Strings or two - element * JSONArrays , depending upon the arity of the particular constructor . * A nullary constructor C is...
c0980ea6f4d4d79f27698f6bdf02996b6e505d56b0273813a95fc134bf87a6dc
haskell-compat/deriving-compat
Internal.hs
| Module : Data . Ix . Deriving . Internal Copyright : ( C ) 2015 - 2017 License : BSD - style ( see the file LICENSE ) Maintainer : Portability : Template Haskell Exports functions to mechanically derive ' Ix ' instances . Note : this is an internal module , and as such , the API pr...
null
https://raw.githubusercontent.com/haskell-compat/deriving-compat/23e62c003325258e925e6c2fe7e46fafdeaf199a/src/Data/Ix/Deriving/Internal.hs
haskell
* 'Ix' ----------------------------------------------------------------------------- Code generation ----------------------------------------------------------------------------- | Generates a 'Ix' instance declaration for the given data type or data family instance. | Generates a lambda expression which behaves l...
| Module : Data . Ix . Deriving . Internal Copyright : ( C ) 2015 - 2017 License : BSD - style ( see the file LICENSE ) Maintainer : Portability : Template Haskell Exports functions to mechanically derive ' Ix ' instances . Note : this is an internal module , and as such , the API pr...
8db44ef3a94f2c6686de2f195e44fc7ccde469e72af7a8a82f78d9f0e25d8757
keechma/keechma
history_router.cljs
(ns keechma.app-state.history-router (:require [keechma.app-state.core :as core :refer [IRouter]] [router.core :as router] [goog.events :as events] [goog.history.EventType :as EventType] [cljs.core.async :refer [put!]] [clojure.string :as str]) (:import go...
null
https://raw.githubusercontent.com/keechma/keechma/8996bf401495e1e0d89bbab8c3c3b9fe43f32116/src/keechma/app_state/history_router.cljs
clojure
(ns keechma.app-state.history-router (:require [keechma.app-state.core :as core :refer [IRouter]] [router.core :as router] [goog.events :as events] [goog.history.EventType :as EventType] [cljs.core.async :refer [put!]] [clojure.string :as str]) (:import go...
ccbea9d7f32deb4d0c3c2c4501b471cecf4d8465391df9f703d832aa7aefc323
unclebob/AdventOfCode2022
core_spec.clj
(ns day8-treetop-tree-house.core-spec (:require [speclj.core :refer :all] [day8-treetop-tree-house.core :refer :all])) (describe "parsing the forest file" (it "parses nothing" (should= [[]] (parse-forest ""))) (it "parses a simple forest" (should= [[1 2] [3 4]] (parse-forest "12\n34"))) ) ...
null
https://raw.githubusercontent.com/unclebob/AdventOfCode2022/f2bf8a1257a21e7b055365224a9ed193489eec7d/day8-treetop-tree-house/spec/day8_treetop_tree_house/core_spec.clj
clojure
(ns day8-treetop-tree-house.core-spec (:require [speclj.core :refer :all] [day8-treetop-tree-house.core :refer :all])) (describe "parsing the forest file" (it "parses nothing" (should= [[]] (parse-forest ""))) (it "parses a simple forest" (should= [[1 2] [3 4]] (parse-forest "12\n34"))) ) ...
3e42d42c104fd7097399e983dd27c0804775b46655a9c8d07626e631826a17e0
Octachron/codept
stdlib_408.ml
let modules= let open Module in let open Sig in Dict.of_list [("Arg",Sig ({origin=Unit {source={source=Special "stdlib"; file={name="Arg";namespace=["Stdlib"]}};path={name="Arg";namespace=["Stdlib"]}}; signature=empty})); ("Array",Sig ({origin=Unit {source={source=Special "stdlib"; file={name="Array";n...
null
https://raw.githubusercontent.com/Octachron/codept/1ecb2389a9a936dd937624e79970d4d6f112f16b/tests/bundle_refs/stdlib_408.ml
ocaml
let modules= let open Module in let open Sig in Dict.of_list [("Arg",Sig ({origin=Unit {source={source=Special "stdlib"; file={name="Arg";namespace=["Stdlib"]}};path={name="Arg";namespace=["Stdlib"]}}; signature=empty})); ("Array",Sig ({origin=Unit {source={source=Special "stdlib"; file={name="Array";n...
29ede3a751d20a91efd94fb7187c76d674d69c0505c6a481e823d6ac649cf8d1
EligiusSantori/L2Apf
gg_reply.scm
(module system racket/base (provide login-server-packet/gg-reply) (require "../../packet.scm") (define (login-server-packet/gg-reply buffer) TODO ) )
null
https://raw.githubusercontent.com/EligiusSantori/L2Apf/30ffe0828e8a401f58d39984efd862c8aeab8c30/packet/login/server/gg_reply.scm
scheme
(module system racket/base (provide login-server-packet/gg-reply) (require "../../packet.scm") (define (login-server-packet/gg-reply buffer) TODO ) )
a0bf5212f3cf338454a983c8516d899427a02597aad0b507c68513d9ec1697f1
dmitryvk/sbcl-win32-threads
entry.lisp
;;;; Code in this file handles VM-independent details of run-time ;;;; function representation that primarily concern IR2 conversion and ;;;; the dumper/loader. This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was...
null
https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/src/compiler/entry.lisp
lisp
Code in this file handles VM-independent details of run-time function representation that primarily concern IR2 conversion and the dumper/loader. more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more informat...
This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB!C") This phase runs before IR2 conversion , initializing each XEP 's (defun entry-analyze (component) (l...
1bdf603a44750e70e0fde3b5514992912c2a54859eb932ba0749d22c074415c9
shayan-najd/NativeMetaprogramming
KeepingIntermediates.hs
module Options.KeepingIntermediates where import Types keepingIntermediatesOptions :: [Flag] keepingIntermediatesOptions = [ flag { flagName = "-keep-hc-file, -keep-hc-files" , flagDescription = "Retain intermediate ``.hc`` files." , flagType = DynamicFlag } , flag { flagName = "-keep-h...
null
https://raw.githubusercontent.com/shayan-najd/NativeMetaprogramming/24e5f85990642d3f0b0044be4327b8f52fce2ba3/utils/mkUserGuidePart/Options/KeepingIntermediates.hs
haskell
module Options.KeepingIntermediates where import Types keepingIntermediatesOptions :: [Flag] keepingIntermediatesOptions = [ flag { flagName = "-keep-hc-file, -keep-hc-files" , flagDescription = "Retain intermediate ``.hc`` files." , flagType = DynamicFlag } , flag { flagName = "-keep-h...
dd41243130a8aa8f538df16018c40a9747baa51d2ff77d452a457bb6c95ca8dc
pauleve/pint
ph_machine.mli
module P2Map : Map.S with type key = Ph_types.process * Ph_types.process type env = (Ph_types.PSet.t * Ph_types.rate * Ph_types.PSet.t) list P2Map.t * Create a new execution environment from the given Process Hitting . val create_env : Ph_types.ph -> env (** Initialize random generators used by the machine *) val i...
null
https://raw.githubusercontent.com/pauleve/pint/7cf943ec60afcf285c368950925fd45f59f66f4a/phlib/ph_machine.mli
ocaml
* Initialize random generators used by the machine * Function to plot at the given time the presence of the given process. * [execute env init duration plotter] simulates the environment [env] from the initial state [init] and calls [plotter t p] each time the process [p] appears at time [t]. The simulation stops...
module P2Map : Map.S with type key = Ph_types.process * Ph_types.process type env = (Ph_types.PSet.t * Ph_types.rate * Ph_types.PSet.t) list P2Map.t * Create a new execution environment from the given Process Hitting . val create_env : Ph_types.ph -> env val init_random : unit -> unit type plotter = (float -> Ph_t...
c402fa1127c2e6899bd7fa267f8308cf0a6dbc4bfbb38fd85af9f29dc6869470
falsetru/htdp
43.1.6.scm
#lang racket (define (list-3-averages xs) (build-list (- (length xs) 2) (lambda (i) (/ (+ (list-ref xs (+ i 0)) (list-ref xs (+ i 1)) (list-ref xs (+ i 2))) 3)))) (define (vector-3-averages xs) (build-vector (- (vector-length xs) 2) (lambda (i) (/ (+ (ve...
null
https://raw.githubusercontent.com/falsetru/htdp/4cdad3b999f19b89ff4fa7561839cbcbaad274df/43/43.1.6.scm
scheme
#lang racket (define (list-3-averages xs) (build-list (- (length xs) 2) (lambda (i) (/ (+ (list-ref xs (+ i 0)) (list-ref xs (+ i 1)) (list-ref xs (+ i 2))) 3)))) (define (vector-3-averages xs) (build-vector (- (vector-length xs) 2) (lambda (i) (/ (+ (ve...
efb407bf636f9d29477e181d68e4000fcb77ebda26e259b8b930ab4c82ae57b8
GaloisInc/ivory
PublicPrivate.hs
# OPTIONS_GHC -fno - warn - orphans # # LANGUAGE DataKinds # # LANGUAGE TypeOperators # # LANGUAGE QuasiQuotes # # LANGUAGE FlexibleInstances # {-# LANGUAGE OverloadedStrings #-} -- | Example of a private struct, defined as a global memory area, with a public -- access function. module PublicPrivate where import Ivo...
null
https://raw.githubusercontent.com/GaloisInc/ivory/53a0795b4fbeb0b7da0f6cdaccdde18849a78cd6/ivory-examples/examples/PublicPrivate.hs
haskell
# LANGUAGE OverloadedStrings # | Example of a private struct, defined as a global memory area, with a public access function.
# OPTIONS_GHC -fno - warn - orphans # # LANGUAGE DataKinds # # LANGUAGE TypeOperators # # LANGUAGE QuasiQuotes # # LANGUAGE FlexibleInstances # module PublicPrivate where import Ivory.Language import Ivory.Compile.C.CmdlineFrontend [ivory| struct Foo { foo_i :: Stored Sint32 ; foo_cnt :: Stored Uint32 ...
cfdc80f60cf7cda7df70684397e45e30121c1e2fc71bddd7d89aa4a0b02b9ddf
Idorobots/spartan
rt.rkt
#lang racket ;; The runtime. (require "closures.rkt") (require "continuations.rkt") (require "delimited.rkt") (require "processes.rkt") (require "actor.rkt") (require "scheduler.rkt") (require "monitor.rkt") (require "exceptions.rkt") (require "modules.rkt") (require "bootstrap.rkt") (provide (all-from-out "closures...
null
https://raw.githubusercontent.com/Idorobots/spartan/ef3b032906655585d284f1c9a33a58f1e35cb180/src/runtime/rt.rkt
racket
The runtime. Also part of the runtime primops:
#lang racket (require "closures.rkt") (require "continuations.rkt") (require "delimited.rkt") (require "processes.rkt") (require "actor.rkt") (require "scheduler.rkt") (require "monitor.rkt") (require "exceptions.rkt") (require "modules.rkt") (require "bootstrap.rkt") (provide (all-from-out "closures.rkt")) (provide...
09e582656d146d5ee85bb196eaf7b46823035900d79b92af63c0b1a55b278e20
nbloomf/webdriver-w3c
Types.hs
| Module : Web . Api . WebDriver . Types Description : Typed arguments for WebDriver endpoints . Copyright : 2018 , Automattic , Inc. License : GPL-3 Maintainer : ( ) Stability : experimental Portability : POSIX The WebDriver protocol involves passing several different kinds of ...
null
https://raw.githubusercontent.com/nbloomf/webdriver-w3c/45628198887d221375a110857d045ed183221d63/src/Web/Api/WebDriver/Types.hs
haskell
* Stringy Types * Capabilities * Proxy * Timeout * Input and Actions * Print * Misc * Error Responses | See <-spec.html#dfn-session-id>. | See <-spec.html#dfn-web-element-reference>. | Identifier for a /browsing context/; see <-spec.html#dfn-current-browsing-context>. | Type of a /top level browsing context...
| Module : Web . Api . WebDriver . Types Description : Typed arguments for WebDriver endpoints . Copyright : 2018 , Automattic , Inc. License : GPL-3 Maintainer : ( ) Stability : experimental Portability : POSIX The WebDriver protocol involves passing several different kinds of ...
3e0d1c5872581cf6ccf0d92552564f7255ea1b2c18cc006bff67d885b473ff6f
spurious/sagittarius-scheme-mirror
peval.scm
PEVAL -- A simple partial evaluator for Scheme , written by . ;------------------------------------------------------------------------------ Utilities (define (every? pred? l) (let loop ((l l)) (or (null? l) (and (pred? (car l)) (loop (cdr l)))))) (define (some? pred? l) (let loop ((l l)) (if (nu...
null
https://raw.githubusercontent.com/spurious/sagittarius-scheme-mirror/53f104188934109227c01b1e9a9af5312f9ce997/bench/gambit-benchmarks/peval.scm
scheme
------------------------------------------------------------------------------ ------------------------------------------------------------------------------ The partial evaluator. return a copy of 'exp' where each bound var has been renamed (to prevent aliasing problems) is 'expr' a constant expression? return t...
PEVAL -- A simple partial evaluator for Scheme , written by . Utilities (define (every? pred? l) (let loop ((l l)) (or (null? l) (and (pred? (car l)) (loop (cdr l)))))) (define (some? pred? l) (let loop ((l l)) (if (null? l) #f (or (pred? (car l)) (loop (cdr l)))))) (define (map2 f l1 l2) (let ...
d41007e2a76abfeb2e3dbcc59ecf3fd8af37bc9d72cabb4d3eee2179330c4824
PacktWorkshops/The-Clojure-Workshop
examples.clj
;;; In REPL: minimal macros (defmacro minimal-macro [] '(println "I'm trapped inside a macro!")) (defn minimal-function [] (println "I'm trapped inside a function!")) (macroexpand '(minimal-function)) ;;; returns: (minimal-function) (macroexpand '(minimal-macro)) ;;; returns: (println "I'm trapped inside a macr...
null
https://raw.githubusercontent.com/PacktWorkshops/The-Clojure-Workshop/3d309bb0e46a41ce2c93737870433b47ce0ba6a2/Chapter11/Examples/examples.clj
clojure
In REPL: minimal macros returns: (minimal-function) returns: (println "I'm trapped inside a macro!") returns: nil prints: I'm trapped... somewhere! returns: nil prints: I'm trapped... somewhere! In REPL: minimal, but multiple times returns: nil prints: returns: (do In REPL: a function to help the macro r...
(defmacro minimal-macro [] '(println "I'm trapped inside a macro!")) (defn minimal-function [] (println "I'm trapped inside a function!")) (macroexpand '(minimal-function)) (macroexpand '(minimal-macro)) (defmacro mistaken-macro [] (println "I'm trapped... somewhere!")) (mistaken-macro) (macroexpand '(mista...
45ff9fa295d23fc0a2d6915803c02e28726db1ff7886cb2f74a1ff0a8820f351
kelvin-mai/clj-auth
core_test.clj
(ns auth.core-test (:require [auth.core :refer [app]] [clojure.test :refer [deftest testing is]])) (def headers {"accept" "application/edn"}) (def read-body (comp read-string slurp :body)) (deftest test-ping-route (testing "applicatio...
null
https://raw.githubusercontent.com/kelvin-mai/clj-auth/254a82d01c731bf18a5974408d3c5cf5ab159aaf/test/auth/core_test.clj
clojure
(ns auth.core-test (:require [auth.core :refer [app]] [clojure.test :refer [deftest testing is]])) (def headers {"accept" "application/edn"}) (def read-body (comp read-string slurp :body)) (deftest test-ping-route (testing "applicatio...
73dcf766a40b596c9b39cba03171539b3788541a6f9bc08e6345df68a9405326
NorfairKing/smos
OptParse.hs
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # module Smos.Query.OptParse ( module Smos.Query.OptParse, module Smos.Query.OptParse.Types, ) where import Data.Foldable import qualified Data.Map as M impor...
null
https://raw.githubusercontent.com/NorfairKing/smos/cf1669f353dce8c5d5fc2f378a89a9bc945f3f0b/smos-query/src/Smos/Query/OptParse.hs
haskell
# LANGUAGE OverloadedStrings # Note [Agenda command defaults] The default here is 'AllTime' for good reason. You may think that 'Today' is a better default because smos-calendar-import fills up your agenda too much for it to be useful. However, as a beginner you want to be able to run smos-query agenda to see yo...
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE LambdaCase # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # module Smos.Query.OptParse ( module Smos.Query.OptParse, module Smos.Query.OptParse.Types, ) where import Data.Foldable import qualified Data.Map as M import Data.Maybe import qualified Data....
3ab3590d524c22f7438271c5dea080ea7c85eca657a2a446549d56812cee0391
jrh13/hol-light
completeness.ml
(* ========================================================================= *) Proof of the modal completeness of the provability logic GL . (* *) ( c ) Copyright , , 2020 - 2022 . (* ========================...
null
https://raw.githubusercontent.com/jrh13/hol-light/ab57c07ff0105fef75a9fcdd179eda0d26854ba3/GL/completeness.ml
ocaml
========================================================================= ========================================================================= ------------------------------------------------------------------------- Iterated conjun...
Proof of the modal completeness of the provability logic GL . ( c ) Copyright , , 2020 - 2022 . let CONJLIST = new_recursive_definition list_RECURSION `CONJLIST [] = True /\ (!p X. CONJLIST (CONS p X) = if X = [] then p else p && CONJLIST X)`;; let CONJLIST_IMP_MEM = prove ...
368cda031c1a529001f8ea40d93b0b36aeb8870e1c8b27ffd33e06ea22785ea2
clojure-interop/google-cloud-clients
TextToSpeechSettings$Builder.clj
(ns com.google.cloud.texttospeech.v1beta1.TextToSpeechSettings$Builder "Builder for TextToSpeechSettings." (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.texttospeech.v1beta1 TextToSpeechSettings$Builder])) (defn get-stub-settings-builder "returns: `com.google.cloud.texttospeech.v1...
null
https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.texttospeech/src/com/google/cloud/texttospeech/v1beta1/TextToSpeechSettings%24Builder.clj
clojure
(ns com.google.cloud.texttospeech.v1beta1.TextToSpeechSettings$Builder "Builder for TextToSpeechSettings." (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.texttospeech.v1beta1 TextToSpeechSettings$Builder])) (defn get-stub-settings-builder "returns: `com.google.cloud.texttospeech.v1...
2e16cc44277b7559a7ab01b7184b58389b645e5f354c96e9c4f225117b253dfb
wireless-net/erlang-nommu
wxClipboardTextEvent.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2008 - 2013 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Publi...
null
https://raw.githubusercontent.com/wireless-net/erlang-nommu/79f32f81418e022d8ad8e0e447deaea407289926/lib/wx/src/gen/wxClipboardTextEvent.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitatio...
Copyright Ericsson AB 2008 - 2013 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(wxClipboardTextEvent). -include("...
33df9c0b4c51e43addb607cfa749935344d4fd96c9fb5061fac7cdd0813857c2
sharplispers/montezuma
segment-merger.lisp
(in-package #:montezuma) (defclass segment-merger () ((directory :initarg :directory) (segment :initarg :name) (term-index-interval :initarg :term-index-interval) (readers :initform (make-array 0 :adjustable T :fill-pointer T)) (field-infos :initform '()) (freq-output :initform nil) (prox-output :i...
null
https://raw.githubusercontent.com/sharplispers/montezuma/ee2129eece7065760de4ebbaeffaadcb27644738/src/index/segment-merger.lisp
lisp
(in-package #:montezuma) (defclass segment-merger () ((directory :initarg :directory) (segment :initarg :name) (term-index-interval :initarg :term-index-interval) (readers :initform (make-array 0 :adjustable T :fill-pointer T)) (field-infos :initform '()) (freq-output :initform nil) (prox-output :i...
7a245856778c24866102755fdc7176d3c78d5c286536d5267f31c18283c4b7b3
vmchale/apple
Main.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TupleSections # module Main (main) where import A import Control.Monad.IO.Class (liftIO) import Control.Monad.State (StateT, evalStateT, gets, modify) import Control.Monad.Trans.Class (lift) import qualified Data.ByteS...
null
https://raw.githubusercontent.com/vmchale/apple/ed41443012d6dd2a73edcff10915c0defda0e34b/run/Main.hs
haskell
# LANGUAGE OverloadedStrings # TODO: dump debug state
# LANGUAGE TupleSections # module Main (main) where import A import Control.Monad.IO.Class (liftIO) import Control.Monad.State (StateT, evalStateT, gets, modify) import Control.Monad.Trans.Class (lift) import qualified Data.ByteString.Lazy as BSL import ...
d8dc6ba39bc8686cdc9f9c97b32b7561869a2f80f3e9722648ffb594c9899de2
charlieg/Sparser
view1.lisp
;;; -*- Mode:LISP; Syntax:Common-Lisp; Package:(SPARSER LISP) -*- copyright ( c ) 1992 - 1996 -- all rights reserved ;;; ;;; File: "view" ;;; Module: "interface;workbench:edge-view:" version : 1.0 November 1995 initiated 2/10/92 v2.2 0.1 ( 1/10/94 ) redesigned from scratch for MCL2.0 as pa...
null
https://raw.githubusercontent.com/charlieg/Sparser/b9bb7d01d2e40f783f3214fc104062db3d15e608/Sparser/code/s/interface/workbench/edge-view/view1.lisp
lisp
-*- Mode:LISP; Syntax:Common-Lisp; Package:(SPARSER LISP) -*- File: "view" Module: "interface;workbench:edge-view:" Got "" around labels of literal edges. of index calculation in Select-corresponding-item-in-edges-view start-edge is leftwards of already recycled edges. Fixed it with a ...
copyright ( c ) 1992 - 1996 -- all rights reserved version : 1.0 November 1995 initiated 2/10/92 v2.2 0.1 ( 1/10/94 ) redesigned from scratch for MCL2.0 as part of the Workbench 0.2 During Feb , & March , continually tweeking to get state transitions right 0.3 ( 3/25 ) added coordination with ge...
d7cdb2630d048604706f95b8decbf79c5d9e2d1bc49da320cefa5b281c0a0b0e
Kleidukos/Intrigue
Num.hs
module Intrigue.Environment.Num where import Data.Foldable import Data.Text (unpack) import Data.Text.Display import Data.Vector (Vector) import qualified Data.Vector as V import Intrigue.Types add :: Vector AST -> EvalM AST add operands = pure $ foldl' (\acc number -> applyBinOp (+) number acc ) (Number 0) operands...
null
https://raw.githubusercontent.com/Kleidukos/Intrigue/d6cb7a0ee13c04b7ef0c8ca15ac5600da25100ff/src/Intrigue/Environment/Num.hs
haskell
module Intrigue.Environment.Num where import Data.Foldable import Data.Text (unpack) import Data.Text.Display import Data.Vector (Vector) import qualified Data.Vector as V import Intrigue.Types add :: Vector AST -> EvalM AST add operands = pure $ foldl' (\acc number -> applyBinOp (+) number acc ) (Number 0) operands...
61f503052e7b5c88c39519717c9494b9e48934a74a5d68be80d08124ac4a0068
ghcjs/ghcjs
dsrun002.hs
{- Tests let-expressions in do-statments -} module Main( main ) where foo = do putStr "a" let x = "b" in putStr x putStr "c" main = do putStr "a" foo let x = "b" in putStrLn x
null
https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/test/ghc/deSugar/dsrun002.hs
haskell
Tests let-expressions in do-statments
module Main( main ) where foo = do putStr "a" let x = "b" in putStr x putStr "c" main = do putStr "a" foo let x = "b" in putStrLn x
d95fe4ceb9cbbfbbc43730ec0d97546b074463abba2b4607cc50fed7aaa6db51
dorchard/effect-monad
Problem1.hs
{-# LANGUAGE NoMonomorphismRestriction, FlexibleContexts #-} import Control.Monad.State.Lazy appendBuffer x = do buff <- get put (buff ++ x) hello :: Monad m => StateT String (StateT String m) () hello = do name <- get lift $ appendBuffer $ "hello " ++ name incSC :: (Monad m) => State...
null
https://raw.githubusercontent.com/dorchard/effect-monad/5750ef8438f750e528002a0a4e255514cbf3150a/examples/Problem1.hs
haskell
# LANGUAGE NoMonomorphismRestriction, FlexibleContexts # prog2 :: (Monad m) => StateT Int (StateT String (StateT Int (StateT String m))) ()
import Control.Monad.State.Lazy appendBuffer x = do buff <- get put (buff ++ x) hello :: Monad m => StateT String (StateT String m) () hello = do name <- get lift $ appendBuffer $ "hello " ++ name incSC :: (Monad m) => StateT Int m () incSC = do x <- get put (x + 1) writeS...
9876222465c8da9433aca2931fc5ac9c43d5849be450910c26385b5328ad669c
anuyts/menkar
Syntax.hs
module Menkar.Basic.Syntax where import Control.DeepSeq.Redone import GHC.Generics import Data.Hashable data Opness = NonOp | Op deriving (Show, Eq, Generic, Hashable, NFData) data Name = Name {opnessName :: Opness, stringName :: String} deriving (Eq, Generic, Hashable, NFData) --deriving Show data Qualified a = Q...
null
https://raw.githubusercontent.com/anuyts/menkar/1f00e9febd1e9ed70c138ae8232b1c72a17d31da/menkar/src/Menkar/Basic/Syntax.hs
haskell
deriving Show deriving instance Show a => Show (Qualified a)
module Menkar.Basic.Syntax where import Control.DeepSeq.Redone import GHC.Generics import Data.Hashable data Opness = NonOp | Op deriving (Show, Eq, Generic, Hashable, NFData) data Qualified a = Qualified [String] a deriving (Functor, Foldable, Traversable, Eq, Generic1, NFData1) type QName = Qualified Name data...
171304fbe749b689125def8849a4ef9dba2414f50e332a4dc90a1a49dbfb69ad
y2q-actionman/with-c-syntax
case-aware-find-symbol.lisp
(in-package #:with-c-syntax.core) (defmacro define-case-aware-find-symbol (finder-function-name package-name &key (upcased-package-name (format nil "~A.~A" (string package-name) '#:UPCASED)) (docstring (format nil "Find a symbol in `~A' package having a same NAME. If not found, returns `nil'." ...
null
https://raw.githubusercontent.com/y2q-actionman/with-c-syntax/fa212ff8e570272aea6c6de247d8f03751e60843/src/case-aware-find-symbol.lisp
lisp
(in-package #:with-c-syntax.core) (defmacro define-case-aware-find-symbol (finder-function-name package-name &key (upcased-package-name (format nil "~A.~A" (string package-name) '#:UPCASED)) (docstring (format nil "Find a symbol in `~A' package having a same NAME. If not found, returns `nil'." ...
a25ae2e0d9b61399a560c203d48febf341046f851af7227c1c1cc4be313db24b
mooreryan/ocaml_python_bindgen
mkdir.ml
open! Base type file_perm = int [@@deriving of_sexp] module Mkdir : sig val mkdir : ?perm:file_perm -> string -> unit val mkdir_p : ?perm:file_perm -> string -> unit end = struct let atom x = Sexp.Atom x let list x = Sexp.List x let record l = list (List.map l ~f:(fun (name, value) -> list [ atom nam...
null
https://raw.githubusercontent.com/mooreryan/ocaml_python_bindgen/2d8439c9c7ad3ec00264644cdb62687529a2f2a2/lib/mkdir.ml
ocaml
open! Base type file_perm = int [@@deriving of_sexp] module Mkdir : sig val mkdir : ?perm:file_perm -> string -> unit val mkdir_p : ?perm:file_perm -> string -> unit end = struct let atom x = Sexp.Atom x let list x = Sexp.List x let record l = list (List.map l ~f:(fun (name, value) -> list [ atom nam...
b3f1e92ad21595d8a16fedaf999cb0d86f68b25f5dc0af0d54916aae87387440
hpyhacking/openpoker
client.erl
-module(client). -export([loop/2, send/1, send/2]). -include("openpoker.hrl"). -record(pdata, { timer = ?UNDEF, server = global:whereis_name(server), player = ?UNDEF }). loop(connected, ?UNDEF) -> #pdata{timer = erlang:start_timer(?CONNECT_TIMEOUT, self(), ?MODULE)}; loop({connected, _Timeout}, ?...
null
https://raw.githubusercontent.com/hpyhacking/openpoker/643193c94f34096cdcfcd610bdb1f18e7bf1e45e/src/client.erl
erlang
create player process by client process, client private
-module(client). -export([loop/2, send/1, send/2]). -include("openpoker.hrl"). -record(pdata, { timer = ?UNDEF, server = global:whereis_name(server), player = ?UNDEF }). loop(connected, ?UNDEF) -> #pdata{timer = erlang:start_timer(?CONNECT_TIMEOUT, self(), ?MODULE)}; loop({connected, _Timeout}, ?...
3b6c73da10aa8e991a890640986db8a50fd4bca8f387ff379819fd47d7147c03
stevebleazard/ocaml-jsonxt
extended.mli
* [ Extended ] supports parsing and writing JSON data that conforms to the { ! type : Json . Extended.json } json type . This supports non - standard JSON types including integer as well as tuples and variants introduced by [ Yojson ] . The maximim / minimum size of an integer is architecture...
null
https://raw.githubusercontent.com/stevebleazard/ocaml-jsonxt/fe982b6087dd76ca003d8fbc19ae9a519f54b828/lib/extended.mli
ocaml
* {1 Processing functions}
* [ Extended ] supports parsing and writing JSON data that conforms to the { ! type : Json . Extended.json } json type . This supports non - standard JSON types including integer as well as tuples and variants introduced by [ Yojson ] . The maximim / minimum size of an integer is architecture...
218abe56233a484c866b6262e737663dc0fa8c72afe1b7944493b7aec1aed797
dmitryvk/sbcl-win32-threads
arith.lisp
;;;; the VM definition arithmetic VOPs for HPPA This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the ;;;; public domain. The software is in the public ...
null
https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/src/compiler/hppa/arith.lisp
lisp
the VM definition arithmetic VOPs for HPPA more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. Binary fixnum operations. Shifting Multiply and Divide. fix-lav: why dont we ignore tmp ? looki...
This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB!VM") Unary operations . (define-vop (fast-safe-arith-op) (:policy :fast-safe) (:effects) (:affecte...
db65b4cd8740785a5d522b727bedf7804d291e15525dc5d8ff47f08405372252
MaskRay/OJHaskell
97.hs
powMod a 0 m = 1 powMod a n m | n `mod` 2 == 0 = ret * ret `mod` m where ret = powMod a (n `div` 2) m powMod a n m = powMod a (n-1) m * a `mod` m main = print $ (`mod` (10^10)) $ 28433 * powMod 2 7830457 (10^10) + 1
null
https://raw.githubusercontent.com/MaskRay/OJHaskell/ba24050b2480619f10daa7d37fca558182ba006c/Project%20Euler/97.hs
haskell
powMod a 0 m = 1 powMod a n m | n `mod` 2 == 0 = ret * ret `mod` m where ret = powMod a (n `div` 2) m powMod a n m = powMod a (n-1) m * a `mod` m main = print $ (`mod` (10^10)) $ 28433 * powMod 2 7830457 (10^10) + 1
476c430fa9649816eef77f63dcd28046fc61ca270af3a29ca79e193b444279ab
aitorres/firelink
OffsetSpec.hs
module OffsetSpec where import qualified FireLink.FrontEnd.SymTable as ST import Test.Hspec import qualified TestUtils as U testOffset :: String -> [(String, Int)] -> IO () testOffset = testProgram . baseProgram where baseProgram :: String -> String baseProgram s = "hello ashen one\n\...
null
https://raw.githubusercontent.com/aitorres/firelink/075d7aad1c053a54e39a27d8db7c3c719d243225/test/Semantic/OffsetSpec.hs
haskell
module OffsetSpec where import qualified FireLink.FrontEnd.SymTable as ST import Test.Hspec import qualified TestUtils as U testOffset :: String -> [(String, Int)] -> IO () testOffset = testProgram . baseProgram where baseProgram :: String -> String baseProgram s = "hello ashen one\n\...
3803eba015687c578ac9ea43f57e5e1fb3fdcaff0e45cd6d0e921e71c7b3d1c9
wdanilo/haskell-logger
Filter.hs
# LANGUAGE NoMonomorphismRestriction # # LANGUAGE UndecidableInstances # # LANGUAGE OverlappingInstances # # LANGUAGE TypeFamilies # ----------------------------------------------------------------------------- -- | -- Module : System.Log.Filter Copyright : ( C ) 2015 Flowbox -- License : Apache-2.0 ...
null
https://raw.githubusercontent.com/wdanilo/haskell-logger/bdf3b64f50c0a8e26bd44fdb882e72ffbe19fd3f/src/System/Log/Filter.hs
haskell
--------------------------------------------------------------------------- | Module : System.Log.Filter License : Apache-2.0 Stability : stable Portability : portable --------------------------------------------------------------------------- --------------------------------------------------------...
# LANGUAGE NoMonomorphismRestriction # # LANGUAGE UndecidableInstances # # LANGUAGE OverlappingInstances # # LANGUAGE TypeFamilies # Copyright : ( C ) 2015 Flowbox Maintainer : < > module System.Log.Filter where import System.Log.Log (Log) import System.Log.Data (Lvl(Lvl), Msg(Msg), LevelData(LevelD...
f928afbca94ac36da5b45fc35a767d1397985fc1de9e6a7e73eca790a0e3b6ee
hyperfiddle/electric
photon_blog2.cljc
(ns user (:require [datomic.api :as d] [hyperfiddle.photon-dom :as dom] [hyperfiddle.photon :as photon :refer [defnode]] [missionary.core :as m])) (defnode persons [db needle & [sort-order]] (sort (or sort-order <) (datomic.api/q '[:find [?e ...] :in $ ?needle :where ...
null
https://raw.githubusercontent.com/hyperfiddle/electric/1c6c3891cbf13123fef8d33e6555d300f0dac134/scratch/dustin/y2021/photon/photon_blog2.cljc
clojure
(ns user (:require [datomic.api :as d] [hyperfiddle.photon-dom :as dom] [hyperfiddle.photon :as photon :refer [defnode]] [missionary.core :as m])) (defnode persons [db needle & [sort-order]] (sort (or sort-order <) (datomic.api/q '[:find [?e ...] :in $ ?needle :where ...
7bd685d7f8b667a30987cdb5e78af2a9d2befae7b61bc7f5c82312a555af5ecc
city41/mario-review
rectangle_selection.cljs
(ns daisy.client.components.rectangle-selection (:require [om.core :as om :include-macros true] [sablono.core :as html :refer-macros [html]] [cljs.core.async :refer [put!]])) (def mouse-is-down (atom false)) (def upper-corner (atom nil)) (def lower-corner (atom nil)) (defn round [n] (.roun...
null
https://raw.githubusercontent.com/city41/mario-review/1b6ebfff88ad778a52865a062204cabb8deed0f9/cropping-app/src/client/rectangle_selection.cljs
clojure
(ns daisy.client.components.rectangle-selection (:require [om.core :as om :include-macros true] [sablono.core :as html :refer-macros [html]] [cljs.core.async :refer [put!]])) (def mouse-is-down (atom false)) (def upper-corner (atom nil)) (def lower-corner (atom nil)) (defn round [n] (.roun...
8fc9215dcc34559c074e3dcde1aaa7795c341d49c17902d7085abcb419a84d07
iu-parfunc/verified-instances
List.hs
{-@ LIQUID "--higherorder" @-} {-@ LIQUID "--exact-data-cons" @-} {-@ LIQUID "--prune-unsorted" @-} module List where import GHC.Classes . VerifiedEq import Data.VerifiedEq import Language.Haskell.Liquid.ProofCombinators {-@ data List [llen] = Nil | Cons { x :: a , xs :: List a } @-} data List a = Nil | Cons ...
null
https://raw.githubusercontent.com/iu-parfunc/verified-instances/cebfdf1e3357a693360be74c90211be18ce3c045/examples/List.hs
haskell
@ LIQUID "--higherorder" @ @ LIQUID "--exact-data-cons" @ @ LIQUID "--prune-unsorted" @ @ data List [llen] = Nil | Cons { x :: a , xs :: List a } @ @ measure llen @ @ llen :: List a -> Nat @ @ axiomatize eqList @ @ eqListRefl :: xs:List a -> {eqList xs xs} @ @ eqListSym :: xs:List a -> ys: List a -> {eqList xs ys ...
module List where import GHC.Classes . VerifiedEq import Data.VerifiedEq import Language.Haskell.Liquid.ProofCombinators data List a = Nil | Cons a (List a) llen :: List a -> Int llen Nil = 0 llen (Cons _ xs) = 1 + llen xs eqList :: Eq a => List a -> List a -> Bool eqList Nil Nil = True eqList (Cons x xs) (Cons ...
61db4fb51ebcb22f1defdd717938c2fcdecbed699f00fa1f124a6dcbf0ffd004
fulcro-legacy/semantic-ui-wrapper
ui_feed_label.cljs
(ns fulcrologic.semantic-ui.views.feed.ui-feed-label (:require [fulcrologic.semantic-ui.factory-helpers :as h] ["semantic-ui-react/dist/commonjs/views/Feed/FeedLabel" :default FeedLabel])) (def ui-feed-label "An event can contain an image or icon label. Props: - as (custom): An element type to ren...
null
https://raw.githubusercontent.com/fulcro-legacy/semantic-ui-wrapper/b0473480ddfff18496df086bf506099ac897f18f/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/views/feed/ui_feed_label.cljs
clojure
(ns fulcrologic.semantic-ui.views.feed.ui-feed-label (:require [fulcrologic.semantic-ui.factory-helpers :as h] ["semantic-ui-react/dist/commonjs/views/Feed/FeedLabel" :default FeedLabel])) (def ui-feed-label "An event can contain an image or icon label. Props: - as (custom): An element type to ren...
0b21bff632b62257998e0f6b0486c35f429b400a784a9a58363472e691d2e5d5
tek/polysemy-hasql
QueryStore.hs
module Polysemy.Hasql.Interpreter.QueryStore where import Hasql.Encoders (Params) import Polysemy.Db.Data.DbConfig (DbConfig) import Polysemy.Db.Data.DbError (DbError) import Polysemy.Db.Data.InitDbError (InitDbError) import qualified Polysemy.Db.Data.QueryStore as QueryStore import Polysemy.Db.Data.QueryStore (QueryS...
null
https://raw.githubusercontent.com/tek/polysemy-hasql/1cf195590fc3c356adf042ae3b0a1f9874591a74/packages/hasql/lib/Polysemy/Hasql/Interpreter/QueryStore.hs
haskell
# inline interpretQueryStoreDbFullWith # # inline interpretQueryStoreDbQuery #
module Polysemy.Hasql.Interpreter.QueryStore where import Hasql.Encoders (Params) import Polysemy.Db.Data.DbConfig (DbConfig) import Polysemy.Db.Data.DbError (DbError) import Polysemy.Db.Data.InitDbError (InitDbError) import qualified Polysemy.Db.Data.QueryStore as QueryStore import Polysemy.Db.Data.QueryStore (QueryS...
49ebbad3d78d79fb683d86ee7facaeed97f5b7ddaa51801fdb8bebf126ef4837
kronusaturn/lw2-viewer
config-package.lisp
(uiop:define-package #:lw2-viewer.config (:use #:cl #:lw2.sites #:lw2.backend-modules #:lw2.fonts-modules) (:export #:*lmdb-mapsize* #:*dnsbl-list* #:*html-global-resources*) (:unintern #:*site-uri* #:*graphql-uri* #:*websocket-uri* #:*backend-type* #:*secure-cookies* #:*cache-db*)) (in-package #:lw2-viewer.conf...
null
https://raw.githubusercontent.com/kronusaturn/lw2-viewer/f328105e9640be1314d166203c8706f9470054fa/src/config-package.lisp
lisp
(uiop:define-package #:lw2-viewer.config (:use #:cl #:lw2.sites #:lw2.backend-modules #:lw2.fonts-modules) (:export #:*lmdb-mapsize* #:*dnsbl-list* #:*html-global-resources*) (:unintern #:*site-uri* #:*graphql-uri* #:*websocket-uri* #:*backend-type* #:*secure-cookies* #:*cache-db*)) (in-package #:lw2-viewer.conf...
de555838234c05a3324f1d75862afa5a10e9104637b80ec7343c3eeb78f9cef9
input-output-hk/cardano-sl
Base.hs
# LANGUAGE RecordWildCards # {-# LANGUAGE TypeFamilies #-} -- | Basic functionality from Toss. module Pos.Chain.Ssc.Toss.Base ( -- * Trivial functions getCommitment , hasCommitmentToss , hasOpeningToss , hasSharesToss , hasCertificateToss -- * Basic logi...
null
https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/chain/src/Pos/Chain/Ssc/Toss/Base.hs
haskell
# LANGUAGE TypeFamilies # | Basic functionality from Toss. * Trivial functions * Basic logic * Payload processing * Helpers -------------------------------------------------------------------------- Trivial getters (proper interface of MonadTossRead) ------------------------------------------------------------...
# LANGUAGE RecordWildCards # module Pos.Chain.Ssc.Toss.Base ( getCommitment , hasCommitmentToss , hasOpeningToss , hasSharesToss , hasCertificateToss , getParticipants , computeParticipants , computeSharesDistrPure , computeSharesDistr , ...
2dec07c5c4145871276db7cde25e984a068aea72510cd02dd2d60d8a5348d4ce
kadena-io/pact
Regression.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # module Pact.PersistPactDb.Regression (DbEnv(..), initDbEnv, runRegression, regressPure) where import Control.Concurrent.MVar import Control.Exception import Control.Monad import Control.Lens hiding ((.=)) import Control.DeepSeq import Data....
null
https://raw.githubusercontent.com/kadena-io/pact/0f22b41543a9397391477fb26d1d62798aa23803/src-ghc/Pact/PersistPactDb/Regression.hs
haskell
# LANGUAGE OverloadedStrings # Reversed just to ensure inserts are not in order.
# LANGUAGE ScopedTypeVariables # module Pact.PersistPactDb.Regression (DbEnv(..), initDbEnv, runRegression, regressPure) where import Control.Concurrent.MVar import Control.Exception import Control.Monad import Control.Lens hiding ((.=)) import Control.DeepSeq import Data.Text(pack) import Data.Foldable(for...
3ecab26608e4e6f713213d56017d1855d4dfbe4bba745c15132fa0789d1ebcaf
8c6794b6/haskell-sc-scratch
PushNegI.hs
------------------------------------------------------------------------------ -- | -- Module : $Header$ CopyRight : ( c ) 8c6794b6 -- License : BSD3 Maintainer : -- Stability : unstable -- Portability : non-portable -- -- Lecture: <-final/course/PushNegI.hs> -- -- What we want to do is, change the...
null
https://raw.githubusercontent.com/8c6794b6/haskell-sc-scratch/22de2199359fa56f256b544609cd6513b5e40f43/Scratch/Oleg/TTF/PushNegI.hs
haskell
---------------------------------------------------------------------------- | Module : $Header$ License : BSD3 Stability : unstable Portability : non-portable Lecture: <-final/course/PushNegI.hs> What we want to do is, change the grammer from: > e ::= lit | neg e | add e e to: > e ::= factor ...
CopyRight : ( c ) 8c6794b6 Maintainer : module PushNegI where import Intro1 push_neg :: Exp -> Exp push_neg e = case e of Lit _ -> e Neg (Lit _) -> e Neg (Neg e') -> e' Neg (Add e1 e2) -> Add (push_neg (Neg e1)) (push_neg (Neg e2)) Add e1 e2 -> Add (push_neg e1) (push_neg e2...
acf1222cb5c69e9ad2114a4fe4ee6628fc2ebaf7f44a125a0e8074872292eea8
pablomarx/Thomas
comp-class.scm
* Copyright 1992 Digital Equipment Corporation ;* All Rights Reserved ;* ;* Permission to use, copy, and modify this software and its documentation is ;* hereby granted only under the following terms and conditions. Both the ;* above copyright notice and this permission notice mus...
null
https://raw.githubusercontent.com/pablomarx/Thomas/c8ab3f6fa92a9a39667fe37dfe060b651affb18e/kits/scc/src/comp-class.scm
scheme
* All Rights Reserved * * Permission to use, copy, and modify this software and its documentation is * hereby granted only under the following terms and conditions. Both the * above copyright notice and this permission notice must appear in all copies * of the software, derivative works or modi...
* Copyright 1992 Digital Equipment Corporation * and hereby grant back to Digital a non - exclusive , unrestricted , royalty - free * their best efforts to return to Digital any such changes , enhancements or * extensions that they make and inform Digital of noteworthy uses of this * software . Correspo...
9333c92808732ee84abef734adc2542babeaf56d1cec95d89605b92e932a5661
jhund/re-frame-and-reagent-and-slatejs
core.clj
(ns rrs.core)
null
https://raw.githubusercontent.com/jhund/re-frame-and-reagent-and-slatejs/75593b626d9a31b8069daf16eef2a23e9aa19ec7/src/clj/rrs/core.clj
clojure
(ns rrs.core)
cce2f29cb6c475f31981f3dcde0b7ae68ddfbd3a0735162b3c3aa37c64a39272
tnelson/Forge
abstractSigs.rkt
#lang forge/core (set-option! 'verbose 0) (sig Abstract #:abstract) (sig Extension1 #:extends Abstract) (sig Extension2 #:extends Abstract) (test abstractEnforced #:preds [(= Abstract (+ Extension1 Extension2))] #:expect theorem) (test extensionsAllowed #:preds [(some Extension1)] #:expect...
null
https://raw.githubusercontent.com/tnelson/Forge/1687cba0ebdb598c29c51845d43c98a459d0588f/forge/tests/forge-core/sigs/abstractSigs.rkt
racket
#lang forge/core (set-option! 'verbose 0) (sig Abstract #:abstract) (sig Extension1 #:extends Abstract) (sig Extension2 #:extends Abstract) (test abstractEnforced #:preds [(= Abstract (+ Extension1 Extension2))] #:expect theorem) (test extensionsAllowed #:preds [(some Extension1)] #:expect...
6472008e502b77826bc3b6885943871e4b60d7d7490e76ce155bd367154b73e0
tel/saltine
Password.hs
# LANGUAGE DeriveDataTypeable , , DeriveGeneric , ForeignFunctionInterface # -- | -- Module : Crypto.Saltine.Internal.Password Copyright : ( c ) 2018 2021 License : MIT -- Maintainer : -- Stability : experimental -- Portability : non-portable module Crypto.Saltine.Interna...
null
https://raw.githubusercontent.com/tel/saltine/b00e00fa8ce8bf4ee176a9d3deead57c590fc686/src/Crypto/Saltine/Internal/Password.hs
haskell
| Module : Crypto.Saltine.Internal.Password Maintainer : Stability : experimental Portability : non-portable Default algorithm constants Argon2id algorithm constants | Salt for deriving keys from passwords | Verification string for stored passwords This hash contains only printable characters, hence ...
# LANGUAGE DeriveDataTypeable , , DeriveGeneric , ForeignFunctionInterface # Copyright : ( c ) 2018 2021 License : MIT module Crypto.Saltine.Internal.Password ( c_pwhash , c_pwhash_str , c_pwhash_str_verify , c_pwhash_str_needs_rehash , pwhash_alg_argon2i13 , pwhash_a...
4e5be8ee20b237325b583b508790aed2fbe34106b78e804b68149802e7f2c5af
zeromq/chumak
chumak_command.erl
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. @doc Module responsible to decode and encode ZeroMQ commands -module(chumak_command). -include("chumak.hrl"). -export_type([command/0]). -ex...
null
https://raw.githubusercontent.com/zeromq/chumak/e705fa6db05dc3f4801f5cc71eb18b0e60f7ba35/src/chumak_command.erl
erlang
ready command ping command error command subscribe command cancel command commands used in the curveZMQ handshake: CurveZMQ payload (messages) is also encoded as commands commands available Public API @doc decode reads incoming command and generate an command 'object' @doc returns the name of a command R...
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. @doc Module responsible to decode and encode ZeroMQ commands -module(chumak_command). -include("chumak.hrl"). -export_type([command/0]). -ex...
297b8312c3e323f9d43771687e4e967b641ed5c91df1bd5b1b750f2be0e125de
aryx/xix
spinlock_.ml
open Types (* we can not put this type in concurrency/ because of mutual deps * between locks and a proc *) type t = { hold: bool ref; (* debugging and defensive programming fields *) less : opti : direct reference to Proc.t instead of pid really ' pid option ' but for init kernel code we use the pid 0 , t...
null
https://raw.githubusercontent.com/aryx/xix/60ce1bd9a3f923e0e8bb2192f8938a9aa49c739c/kernel/core/spinlock_.ml
ocaml
we can not put this type in concurrency/ because of mutual deps * between locks and a proc debugging and defensive programming fields
open Types type t = { hold: bool ref; less : opti : direct reference to Proc.t instead of pid really ' pid option ' but for init kernel code we use the pid 0 , the * one in Globals.fakeproc assigned initially to Globals.up . * one in Globals.fakeproc assigned initially to Globals.up. *) mutab...
7f42fb49d0e5771dcfb53f84a81373b1c2adb53c7dc43dc08f9627f3148a0e66
static-analysis-engineering/codehawk
bCHPowerAssemblyInstructions.mli
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Binary Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Co...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/d2e83cef7430defdc4cf30fc1495fe4ff64d9f9d/CodeHawk/CHB/bchlibpower32/bCHPowerAssemblyInstructions.mli
ocaml
bchlib bchlibpower32 length in bytes of the combined executable sections address of code base
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Binary Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Co...
89684d1d97bd3ef49733068dbeb09cd676386359e609be0db751167b8f009d6f
dfinity-side-projects/winter
Kind.hs
# LANGUAGE KindSignatures # module Wasm.Syntax.Ops.Kind where import Data.Kind (Type) data Unary :: Type data Binary :: Type data Test :: Type data Compare :: Type data Convert :: Type
null
https://raw.githubusercontent.com/dfinity-side-projects/winter/cca827ab9299146c0b3b51920e5ad63c4c6014c3/src/Wasm/Syntax/Ops/Kind.hs
haskell
# LANGUAGE KindSignatures # module Wasm.Syntax.Ops.Kind where import Data.Kind (Type) data Unary :: Type data Binary :: Type data Test :: Type data Compare :: Type data Convert :: Type
b72117fc03b9c22e27b222972cd52c1e4a6e3a00a5cef3b85037710bfc1e6aec
yetanalytics/datasim
repl.clj
(ns com.yetanalytics.datasim.onyx.repl "Cluster repl" (:require clojure.main rebel-readline.core rebel-readline.clojure.line-reader rebel-readline.clojure.service.local rebel-readline.clojure.main)) (defn repl! [] (rebel-readline.core/with-line-reader (rebel-...
null
https://raw.githubusercontent.com/yetanalytics/datasim/0047cb3123e32b72380ea31ec98a26ef85543b63/src/onyx/com/yetanalytics/datasim/onyx/repl.clj
clojure
prompt is handled by line-reader
(ns com.yetanalytics.datasim.onyx.repl "Cluster repl" (:require clojure.main rebel-readline.core rebel-readline.clojure.line-reader rebel-readline.clojure.service.local rebel-readline.clojure.main)) (defn repl! [] (rebel-readline.core/with-line-reader (rebel-...
45a0eb66b2c6fd0d7a4629ccdb8de981ffe09258500670bb763e7f6e04e9032c
vindarel/ABStock
api.lisp
(in-package :abstock) ;; ;; Routes for the API. ;; (easy-routes:defroute api-selection-route ("/api/v1/selection.json" :method :get) () (setf (hunchentoot:content-type*) "application/json") (jojo:to-json *selection*)) (easy-routes:defroute api-newly-created-route ("/api/v1/lastcreated.json" :method :get) () (s...
null
https://raw.githubusercontent.com/vindarel/ABStock/25edc5ebac5eac40378936a597300116d2a37337/src/api.lisp
lisp
Routes for the API.
(in-package :abstock) (easy-routes:defroute api-selection-route ("/api/v1/selection.json" :method :get) () (setf (hunchentoot:content-type*) "application/json") (jojo:to-json *selection*)) (easy-routes:defroute api-newly-created-route ("/api/v1/lastcreated.json" :method :get) () (setf (hunchentoot:content-type...
3ef67e184a1375f0a744bf57ecc33a9b1f06424f8ed4267cf8349f5f5bb0eed7
okeuday/erlbench
mochinum.erl
2007 Mochi Media , Inc. @author < > %% @doc Useful numeric algorithms for floats that cover some deficiencies %% in the math module. More interesting is digits/1, which implements %% the algorithm from: %% /~burger/fp/index.html See also " Printing Floating - Point Numbers Quickly and Accurately " in Proce...
null
https://raw.githubusercontent.com/okeuday/erlbench/9fc02a2e748b287b85f6e9641db6b2ca68791fa4/src/mochinum.erl
erlang
@doc Useful numeric algorithms for floats that cover some deficiencies in the math module. More interesting is digits/1, which implements the algorithm from: /~burger/fp/index.html Design and Implementation. External API @doc Returns a string that accurately represents the given integer or float using a ...
2007 Mochi Media , Inc. @author < > See also " Printing Floating - Point Numbers Quickly and Accurately " in Proceedings of the SIGPLAN ' 96 Conference on Programming Language -module(mochinum). -author("Bob Ippolito <>"). -export([digits/1, frexp/1, int_pow/2, int_ceil/1]). IEEE 754 Float exponent bia...
3584b74329be505ec36148f0d82c523dedd137ef6258781e0c6e89e10498e25a
richcarl/eunit
eunit_test.erl
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may %% not use this file except in compliance with the License. You may obtain %% a copy of the License at <-2.0> %% %% Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an " A...
null
https://raw.githubusercontent.com/richcarl/eunit/cb7eb2bc2cec01e405c717b6f6b551be7d256f06/src/eunit_test.erl
erlang
not use this file except in compliance with the License. You may obtain a copy of the License at <-2.0> Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and ...
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may distributed under the License is distributed on an " AS IS " BASIS , General Public License ( the " LGPL " ) as published by the Free Software Foundation ; either version 2.1 , or ( at your option ) any later version . either the Ap...
7cf6e873685d7bb04a1ea6e872801f6022a71c38f5a492e45a5513f2c1cf4151
rowangithub/DOrder
boolFormula.ml
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Author : * Copyright reserved * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/rowangithub/DOrder/e0d5efeb8853d2a51cc4796d7db0f8be3185d7df/learning/cdnf/boolFormula.ml
ocaml
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Author : * Copyright reserved * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
0430a00e52a3f5d7b7b3b3098465ac29f514c255a3e07aec645b1b28300e6342
plexus/cljs-test-example
main.cljs
(ns basic-shadow.main) (js/console.log "*hacker voice* I'm in")
null
https://raw.githubusercontent.com/plexus/cljs-test-example/0ad2ba200f52edd65f822b48c8be276a484ca1f8/shadow-browser/src/basic_shadow/main.cljs
clojure
(ns basic-shadow.main) (js/console.log "*hacker voice* I'm in")
a9769aa1d016cad0c5bc514450e18884724d6f560a532cd6a898938078fcacaf
technoblogy/ulisp-builder
prettyprint.lisp
;;;-*- Mode: Lisp; Package: cl-user -*- (in-package :cl-user) and tree editor (defparameter *prettyprint* '( #" // Prettyprint"# #-(or badge gfx) #" const int PPINDENT = 2; const int PPWIDTH = 80;"# #+badge #" const int PPINDENT = 2; const int PPWIDTH = 42;"# #+gfx #" const int PPINDENT = 2; const int P...
null
https://raw.githubusercontent.com/technoblogy/ulisp-builder/fbab6e2331f2d43bfb75b1a6d01fc893144b35b1/prettyprint.lisp
lisp
-*- Mode: Lisp; Package: cl-user -*- "# "# "# superprint(car(cdr(form)), lm + 1, pfun); } superprint(car(cdr(form)), lm + 1, pfun); } i<ppspecials; i++) { break; } break; } pfun ( ' ) ' ) ; return ; } } special--; } } return; i<ppspecials; i++) { break; } pfu...
(in-package :cl-user) and tree editor (defparameter *prettyprint* '( #" // Prettyprint"# #-(or badge gfx) #" #+badge #" #+gfx #" // 320 pixel wide screen #" void pcount (char c) { } /* atomwidth - calculates the character width of an atom */ uint8_t atomwidth (object *obj) { } uint8_t basewidth (...
4b4ab6730d6f3eb59a73f5c60aedb5a66957689849504de374ed0d13252e6034
dradtke/Lisp-Text-Editor
misc.lisp
(in-package :gtk-cffi) (defclass misc (widget) ()) (defcfun "gtk_misc_set_alignment" :void (misc pobject) (x :float) (y :float)) (defmethod (setf alignment) (coords (misc misc)) (gtk-misc-set-alignment misc (float (first coords)) (float (second coords)))) (def...
null
https://raw.githubusercontent.com/dradtke/Lisp-Text-Editor/b0947828eda82d7edd0df8ec2595e7491a633580/quicklisp/dists/quicklisp/software/gtk-cffi-20120208-cvs/gtk/misc.lisp
lisp
(in-package :gtk-cffi) (defclass misc (widget) ()) (defcfun "gtk_misc_set_alignment" :void (misc pobject) (x :float) (y :float)) (defmethod (setf alignment) (coords (misc misc)) (gtk-misc-set-alignment misc (float (first coords)) (float (second coords)))) (def...
4572817b68988d4a48915de96a42df1fd4021312393fef67b21505bce18bd3cb
Functional-AutoDiff/STALINGRAD
probabilistic-lambda-calculus-R-mitscheme.scm
(define (make-constant-expression value) (list 0 value)) (define (constant-expression? expression) (d= (first expression) 0)) (define (constant-expression-value expression) (second expression)) (define (make-variable-access-expression variable) (list 1 variable)) (define (variable-access-expression? expression) (d=...
null
https://raw.githubusercontent.com/Functional-AutoDiff/STALINGRAD/8a782171872d5caf414ef9f8b9b0efebaace3b51/examples/examples2009/probabilistic-lambda-calculus-R-mitscheme.scm
scheme
(define (make-constant-expression value) (list 0 value)) (define (constant-expression? expression) (d= (first expression) 0)) (define (constant-expression-value expression) (second expression)) (define (make-variable-access-expression variable) (list 1 variable)) (define (variable-access-expression? expression) (d=...
775286e3dd7292c5311b3e59e08e3e62f5fb31eea7eab7256070137d4739c99d
larcenists/larceny
case-lambda.sps
(import (tests scheme case-lambda) (tests scheme test) (scheme write)) (display "Running tests for (scheme case-lambda)\n") (run-case-lambda-tests) (report-test-results)
null
https://raw.githubusercontent.com/larcenists/larceny/fef550c7d3923deb7a5a1ccd5a628e54cf231c75/test/R7RS/Lib/tests/scheme/run/case-lambda.sps
scheme
(import (tests scheme case-lambda) (tests scheme test) (scheme write)) (display "Running tests for (scheme case-lambda)\n") (run-case-lambda-tests) (report-test-results)
f9b7812e904deaf0215b851cd9f6bf74147ce246e4de42dcc2169e8f7f23adbd
gravicappa/gambit-sdl
sdl-draw.scm
(define (sdl-draw screen sprite time) (let* ((xc (* 0.5 (sdl#surface-w screen))) (yc (* 0.5 (sdl#surface-h screen))) (x (inexact->exact (+ xc (round (* 20 (+ 1 (sin (* time 1.0)))))))) (y (inexact->exact (+ yc (round (* 50 (+ 1 (cos (* time 1.5)))))))) (xs (inexact->exact (+ yc (ro...
null
https://raw.githubusercontent.com/gravicappa/gambit-sdl/bde15600d7911e8c629e32f715bfa030000a3b09/example/sdl-draw.scm
scheme
(define (sdl-draw screen sprite time) (let* ((xc (* 0.5 (sdl#surface-w screen))) (yc (* 0.5 (sdl#surface-h screen))) (x (inexact->exact (+ xc (round (* 20 (+ 1 (sin (* time 1.0)))))))) (y (inexact->exact (+ yc (round (* 50 (+ 1 (cos (* time 1.5)))))))) (xs (inexact->exact (+ yc (ro...
f5c634c031071d94658a66529569507ea678995870ffd2a7ff1efe1ff646da3f
xapi-project/xen-api-libs-transitional
test_server.ml
open Xapi_stdext_threads.Threadext open Xapi_stdext_unix let finished = ref false let finished_m = Mutex.create () let finished_c = Condition.create () let _ = let port = ref 8080 in let use_fastpath = ref false in Arg.parse [ ("-p", Arg.Set_int port, "port to listen on") ; ("-fast", Arg.Set use...
null
https://raw.githubusercontent.com/xapi-project/xen-api-libs-transitional/656e5e750d77a98e6656ac1c37d9309be795b0b6/http-svr/test_server.ml
ocaml
open Xapi_stdext_threads.Threadext open Xapi_stdext_unix let finished = ref false let finished_m = Mutex.create () let finished_c = Condition.create () let _ = let port = ref 8080 in let use_fastpath = ref false in Arg.parse [ ("-p", Arg.Set_int port, "port to listen on") ; ("-fast", Arg.Set use...
eb6e428710de0994445765bd3d51813c89abd9d7353f582936f9271b174298c0
Flamefork/fleet
fleet_api_test.clj
(ns fleet-api-test (:use clojure.test fleet)) (def test-posts [{:body "First post."} {:body "Second post."}]) (def test-data {:title "Posts"}) (def filters [ "js" :str "html" :xml :fleet :bypass]) (fleet-ns tpl "test/resources/ns" filters) (deftest fleet-ns-test (let [initial-ns ...
null
https://raw.githubusercontent.com/Flamefork/fleet/dc4adcd84b2f92d40797789c98e71746181f1a04/test/fleet_api_test.clj
clojure
(ns fleet-api-test (:use clojure.test fleet)) (def test-posts [{:body "First post."} {:body "Second post."}]) (def test-data {:title "Posts"}) (def filters [ "js" :str "html" :xml :fleet :bypass]) (fleet-ns tpl "test/resources/ns" filters) (deftest fleet-ns-test (let [initial-ns ...
71fbf5abd999c9d9ba5043da79e98f529cea16d22bd0c01d862a66bd680d6154
MaskRay/OJHaskell
102.hs
check [x1,y1,x2,y2,x3,y3] = oab*abc >= 0 && obc*abc >= 0 && oca*abc >= 0 where o = (0,0) a = (x1,y1) b = (x2,y2) c = (x3,y3) abc = area a b c oab = area o a b obc = area o b c oca = area o c a area (x0,y0) (x1,y1) (x2,y2) = (x1-x0)*(y2-y0)-(x2-x0)*(y1-y0) p102 = length . filter ch...
null
https://raw.githubusercontent.com/MaskRay/OJHaskell/ba24050b2480619f10daa7d37fca558182ba006c/Project%20Euler/102.hs
haskell
check [x1,y1,x2,y2,x3,y3] = oab*abc >= 0 && obc*abc >= 0 && oca*abc >= 0 where o = (0,0) a = (x1,y1) b = (x2,y2) c = (x3,y3) abc = area a b c oab = area o a b obc = area o b c oca = area o c a area (x0,y0) (x1,y1) (x2,y2) = (x1-x0)*(y2-y0)-(x2-x0)*(y1-y0) p102 = length . filter ch...
cda8c1c882c7ae74670f78256356535bb6f967a2b386b75d7827991264dad13d
inconvergent/cl-veq
checks.lisp
(in-package :veq) (fvdef* f2segdst ((varg 2 va vb v)) "find distance between line, (va vb), and v. returns (values distance s) where is is the interpolation value that will yield the closest point on line." (declare #.*opt* (ff va vb v)) (let ((l2 (f2dst2 va vb))) (declare (ff l2)) (if (< l2 *eps*) ...
null
https://raw.githubusercontent.com/inconvergent/cl-veq/04386c4019e1f7a6824fc97640458232f426c32d/src/checks.lisp
lisp
line is a point, else: return nil if the lines are parallel or very short. this is just a div0 guard. it's not a good way to test. otherwise check if they intersect t if intersection, nil otherwise and set sweep line position TODO: special cases: equal x pos, vertical line if i in state, kick i out of state, e...
(in-package :veq) (fvdef* f2segdst ((varg 2 va vb v)) "find distance between line, (va vb), and v. returns (values distance s) where is is the interpolation value that will yield the closest point on line." (declare #.*opt* (ff va vb v)) (let ((l2 (f2dst2 va vb))) (declare (ff l2)) (if (< l2 *eps*) ...
58318d3b12d42353dae44e6b620acf610e06841956d48412613e714151c3f56e
thicksteadTHpp/Obvius
gl-ffi-fmclient-functions.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; fmclient-functions.lisp ;;; ;;; Font Manager Functions ;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (in-package 'gl) ;;; int fmcachelimit(); (def-exported-c-function ("fmcachelimit" (:return-type int))) void fmconcatpagematri...
null
https://raw.githubusercontent.com/thicksteadTHpp/Obvius/9a91673609def033539c9ebaf098e8f11eb0df6e/gl_ffi/gl-ffi-fmclient-functions.lisp
lisp
fmclient-functions.lisp Font Manager Functions int fmcachelimit(); void fmenumerate(); fmfonthandle fmfindfont(const char *); void fmfreefont(fmfonthandle); char *fmfontpath(); /* pass back the path */ void fmsetpath(const char *);/* pass in the path */ int fmgetcacheused(); long fmgetchrwidth(f...
(in-package 'gl) (def-exported-c-function ("fmcachelimit" (:return-type int))) (def-exported-c-function "fmconcatpagematrix" ((:array double (3 2) :row-major))) (def-exported-c-function "fmenumerate") (def-exported-c-function ("fmfindfont" (:return-type fmfonthandle)) (String)) (def-exported-c-function "fm...
51a40717891c1bba990deadaa15a40765910b9933916fef862ed64dd485213d5
stackbuilders/scalendar
Internal.hs
module SCalendarTest.Internal where import Data.List (elem) import Data.Maybe (isJust, fromMaybe) import Data.Time (UTCTime(..), toGregorian, diffUTCTime ) import SCalendarTest.Helpers (getUTCdayNum) import Time.SCalendar.Types ( Calendar(..) , Reservation(..) ,...
null
https://raw.githubusercontent.com/stackbuilders/scalendar/3778aef23f736878669613fb01dad6f4e153384d/test/SCalendarTest/Internal.hs
haskell
^ -- ^ Each intermediate interval must be included in the leftmost and rightmost ones ^ --
module SCalendarTest.Internal where import Data.List (elem) import Data.Maybe (isJust, fromMaybe) import Data.Time (UTCTime(..), toGregorian, diffUTCTime ) import SCalendarTest.Helpers (getUTCdayNum) import Time.SCalendar.Types ( Calendar(..) , Reservation(..) ,...
13a544cc3a00f13adb1c7e7fd141a60dc7b4ec7ff163da4685bfef483133ece5
amnh/poy5
addVec.ml
POY 5.1.1 . A phylogenetic analysis program using Dynamic Homologies . Copyright ( C ) 2014 , , , Ward Wheeler , and the American Museum of Natural History . (* *) (* This program is free softwa...
null
https://raw.githubusercontent.com/amnh/poy5/da563a2339d3fa9c0110ae86cc35fad576f728ab/src/addVec.ml
ocaml
This program is free software; you can redistribute it and/or modify (at your option) any later version. This progra...
POY 5.1.1 . A phylogenetic analysis program using Dynamic Homologies . Copyright ( C ) 2014 , , , Ward Wheeler , and the American Museum of Natural History . it under the terms of the GNU General Public License as published by the Free Software Foundation ; ...
7ce206ab5fbaf07646abbcc9ce7d21258b20c3565f0a15e82402c1a80efc4faf
Risto-Stevcev/bs-declaredom
Test_Html_Node.ml
open BsTape open Test open! Html ;; let _ = Jsdom.init () let (tagName, outerHTML, ofNode) = Webapi.Dom.Element.(tagName, outerHTML, ofNode) let to_element x = x |> Html_Node.to_node |> ofNode |> Js.Option.getExn;; let tag_name x = x |. Html_Node.to_node |. ofNode |. Js.Option.getExn |. Webapi.D...
null
https://raw.githubusercontent.com/Risto-Stevcev/bs-declaredom/6e2eb1f0daa32a7253caadbdd6392f3371807c88/test/html/Test_Html_Node.ml
ocaml
open BsTape open Test open! Html ;; let _ = Jsdom.init () let (tagName, outerHTML, ofNode) = Webapi.Dom.Element.(tagName, outerHTML, ofNode) let to_element x = x |> Html_Node.to_node |> ofNode |> Js.Option.getExn;; let tag_name x = x |. Html_Node.to_node |. ofNode |. Js.Option.getExn |. Webapi.D...
a3cb8646553ccd81ea122cf98d7f1f415695fd81ad34322c91e16ec9f232dc28
terry-xiaoyu/learn-erlang-in-30-mins
chat_test.erl
-module(chat_test). -compile(export_all). -include("chat_protocol.hrl"). test_startup() -> route:ensure_db(). test_client_connected(UserID) -> chat_server:start_link(UserID, fake_socket). test_msg_received_from_client(ServerID, FromUserID, ToUserID, Payload) -> ServerID ! {tcp, #msg{from_userid=FromUserID, to...
null
https://raw.githubusercontent.com/terry-xiaoyu/learn-erlang-in-30-mins/5bf4a7278ec89c264084c335c11d6f52a68ab76f/chat/chat_test.erl
erlang
-module(chat_test). -compile(export_all). -include("chat_protocol.hrl"). test_startup() -> route:ensure_db(). test_client_connected(UserID) -> chat_server:start_link(UserID, fake_socket). test_msg_received_from_client(ServerID, FromUserID, ToUserID, Payload) -> ServerID ! {tcp, #msg{from_userid=FromUserID, to...
f2cca00c67cf8369cc7d6a08c6fa01867bdc59e080e043b5f279742ac115b693
antalsz/choose-your-own-derivative
Constraints.hs
# LANGUAGE KindSignatures , PolyKinds , TypeOperators , DataKinds , TypeFamilies , GADTs , UndecidableInstances , RankNTypes , AllowAmbiguousTypes , ConstraintKinds , ScopedTypeVariables , TypeApplications , InstanceSigs , MultiParamTypeClasses , FlexibleInsta...
null
https://raw.githubusercontent.com/antalsz/choose-your-own-derivative/29897118314da416023977b317971ba4f840a5eb/src/Constraints.hs
haskell
Nats ------------------------------------------------------ ---------------------------- Singleton contexts Lists ------------------------------------- Merge Merge ----------------------------------------- Remove Type Family Add ([] ⋓ N γ) x = Add (N γ) x vs End () ⋓ u :: γ = (Just () ⋓ u) :: γ vs (Add (End...
# LANGUAGE KindSignatures , PolyKinds , TypeOperators , DataKinds , TypeFamilies , GADTs , UndecidableInstances , RankNTypes , AllowAmbiguousTypes , ConstraintKinds , ScopedTypeVariables , TypeApplications , InstanceSigs , MultiParamTypeClasses , FlexibleInsta...
5d20ac4d7d0aefd39a296cdd86e81ed3d213ad64786d8bdb367f647613a713b5
OCADml/ppx_deriving_cad
dim.ml
open! Ppxlib open! Ast_builder.Default type t = | D2 | D3 | Poly of string * string * string * string type error = | MixedDimensions | PolyCollapse | PolyMismatch | UnknownDimension let unwrap_result ~loc res = let r = Location.raise_errorf ~loc in match res with | Ok (Some dim) -> dim | Error ...
null
https://raw.githubusercontent.com/OCADml/ppx_deriving_cad/c24aab53d2fba3395bee29f3d9954ec888de4c80/src/dim.ml
ocaml
open! Ppxlib open! Ast_builder.Default type t = | D2 | D3 | Poly of string * string * string * string type error = | MixedDimensions | PolyCollapse | PolyMismatch | UnknownDimension let unwrap_result ~loc res = let r = Location.raise_errorf ~loc in match res with | Ok (Some dim) -> dim | Error ...
1788a2a2aa0b2525f0456482b632dec65c571eacb53cd81a46c2ef5d07a8322e
tjammer/raylib-ocaml
generate_ml_gui.ml
let () = Cstubs.write_ml Format.std_formatter ~prefix:Sys.argv.(1) (module Raygui_functions.Description)
null
https://raw.githubusercontent.com/tjammer/raylib-ocaml/0bf114c7102edea6d7d97fcc166204f289b60c61/src/c/stubgen/generate_ml_gui.ml
ocaml
let () = Cstubs.write_ml Format.std_formatter ~prefix:Sys.argv.(1) (module Raygui_functions.Description)
a9ce7f78ed872db89362414f274b07c2279769a656a2ab466941b044ab8eaeb4
Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library
LegalEntityCompanyVerification.hs
{-# LANGUAGE MultiWayIf #-} CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . {-# LANGUAGE OverloadedStrings #-} | Contains the types generated from the schema LegalEntityCompanyVerification module StripeAPI.Types.LegalEntityCompanyVeri...
null
https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library/ba4401f083ff054f8da68c741f762407919de42f/src/StripeAPI/Types/LegalEntityCompanyVerification.hs
haskell
# LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # # SOURCE # | Defines the object schema located at @components.schemas.legal_entity_company_verification@ in the specification. | document: | Create a new 'LegalEntityCompanyVerification' with all required fields. | 'legalEntityCompanyVerificationDocument'
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . | Contains the types generated from the schema LegalEntityCompanyVerification module StripeAPI.Types.LegalEntityCompanyVerification where import qualified Control.Monad.Fail import qual...
9f8a9856da55b6d31346d4a9879ebcba248227e24db8fa204a4d1b746a6bcd5a
fumieval/free-game
FreeGame.hs
# LANGUAGE GeneralisedNewtypeDeriving # ----------------------------------------------------------------------------- -- | -- Module : FreeGame Copyright : ( C ) 2013 -- License : BSD-style (see the file LICENSE) -- Maintainer : < > -- Stability : provisional -- Portability : ...
null
https://raw.githubusercontent.com/fumieval/free-game/6896d2b681416bead55530d4d40e6412559d65c6/FreeGame.hs
haskell
--------------------------------------------------------------------------- | Module : FreeGame License : BSD-style (see the file LICENSE) Stability : provisional Portability : non-portable -------------------------------------------------------------------------- * Game * Frame * Tran...
# LANGUAGE GeneralisedNewtypeDeriving # Copyright : ( C ) 2013 Maintainer : < > module FreeGame Game(..), runGame, runGameDefault, WindowMode(..), BoundingBox2, Box(..), isInside, delay, tick, foreverFrame, untick, untickInfinite, Fr...
7b35a9678d625eedb12d4bfa5c5d84dd077cebd96c98995b07f99c4d95602fac
nuvla/api-server
credential_template_infrastructure_service_minio.clj
(ns sixsq.nuvla.server.resources.credential-template-infrastructure-service-minio " Allows credentials for Minio S3 services to be stored. " (:require [sixsq.nuvla.auth.utils.acl :as acl-utils] [sixsq.nuvla.server.resources.common.utils :as u] [sixsq.nuvla.server.resources.credential-template :as p] ...
null
https://raw.githubusercontent.com/nuvla/api-server/a64a61b227733f1a0a945003edf5abaf5150a15c/code/src/sixsq/nuvla/server/resources/credential_template_infrastructure_service_minio.clj
clojure
resource multimethods for validation initialization: register this credential-template
(ns sixsq.nuvla.server.resources.credential-template-infrastructure-service-minio " Allows credentials for Minio S3 services to be stored. " (:require [sixsq.nuvla.auth.utils.acl :as acl-utils] [sixsq.nuvla.server.resources.common.utils :as u] [sixsq.nuvla.server.resources.credential-template :as p] ...
70ba0405ecc05d1ea41577483fdb2198d6a73c8e2e5bf2d5d6744622af2a98ee
ekmett/machines
Benchmarks.hs
module Main (main) where import Control.Applicative import Data.Function ((&)) import Control.Monad (void) import Control.Monad.Identity import Criterion.Main import Data.Void import qualified Data.Conduit as C import qualified Data.Conduit.Combinators as CC import qualified Data.Conduit.List as C import qualifie...
null
https://raw.githubusercontent.com/ekmett/machines/d76bb4cf5798b495f1648c5f5075209e81e11eac/benchmarks/Benchmarks.hs
haskell
Compose multiple ops, all stages letting everything through Scaling with same operation in sequence how filtering affects the subsequent composition
module Main (main) where import Control.Applicative import Data.Function ((&)) import Control.Monad (void) import Control.Monad.Identity import Criterion.Main import Data.Void import qualified Data.Conduit as C import qualified Data.Conduit.Combinators as CC import qualified Data.Conduit.List as C import qualifie...
f4a4008d007aa4868a60acdb9556511dcd9314790777e795d5db9523a4699994
uber/NEAL
skip.ml
Copyright ( c ) 2017 Uber Technologies , Inc. (* *) (* Permission is hereby granted, free of charge, to any person obtaining a copy *) (* of this software and associated documentation files (the "Software"), to deal *) in the Software without restriction , including without limitation the rights (* to use, copy, mo...
null
https://raw.githubusercontent.com/uber/NEAL/6a382a3f957c3bb4abe3f9aba9761ffef13fa5fe/src/core/directives/skip.ml
ocaml
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished to do so, subject to the following conditions: The above copyright n...
Copyright ( c ) 2017 Uber Technologies , Inc. in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY K...
716992241beb20d7033c9268756b0a620400e368aaf6bba96449207fb510f508
tamarin-prover/tamarin-prover
Lemma.hs
-- | Copyright : ( c ) 2010 - 2012 , contributing in 2019 : , , -- License : GPL v3 (see LICENSE) -- Maintainer : < > -- Portability : portable -- -- Parsing Lemmas module Theory.Text.Parser.Lemma( lemma , lemmaAttribute , plainLemma , diffLemma ) where...
null
https://raw.githubusercontent.com/tamarin-prover/tamarin-prover/958f8b1767650c06dffe4eba63a38508c9b17a7f/lib/theory/src/Theory/Text/Parser/Lemma.hs
haskell
| License : GPL v3 (see LICENSE) Portability : portable Parsing Lemmas import Data.Monoid hiding (Last) | Parse an arbitrary type consisting of simple constructors legacy support, emits deprecation warning , symbol "typing" *> fail "Using 'typing' is retired notation, repl...
Copyright : ( c ) 2010 - 2012 , contributing in 2019 : , , Maintainer : < > module Theory.Text.Parser.Lemma( lemma , lemmaAttribute , plainLemma , diffLemma ) where import Prelude hiding (id, (.)) import Data.Foldable...
ff815983e236752d48a42c5541f1ff122b4bd63974e20363255ba02dc734e344
input-output-hk/plutus
Eq.hs
-- editorconfig-checker-disable-file | ' ' instances for core data types . # OPTIONS_GHC -fno - warn - orphans # # LANGUAGE FlexibleInstances # {-# LANGUAGE RankNTypes #-} # LANGUAGE TypeApplications # {-# LANGUAGE TypeFamilies #-} # LANGUAGE TypeOperators # # LANGUAGE Undecidabl...
null
https://raw.githubusercontent.com/input-output-hk/plutus/c8d4364d0e639fef4d5b93f7d6c0912d992b54f9/plutus-core/plutus-core/src/PlutusCore/Core/Instance/Eq.hs
haskell
editorconfig-checker-disable-file # LANGUAGE RankNTypes # # LANGUAGE TypeFamilies # c) We do not do equality ""modulo annotations". Note that we ignore the name part in case of the nameddebruijn If a user wants to ignore annotations he must prior do `void <$> term`, to throw away any annotations. ...
| ' ' instances for core data types . # OPTIONS_GHC -fno - warn - orphans # # LANGUAGE FlexibleInstances # # LANGUAGE TypeApplications # # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # module PlutusCore.Core.Instance.Eq () where import PlutusPrelude import PlutusCore.Core.Type impo...
5468b4955818f23fa4539a4e34d1f06f9609973858d5a3cd51d0a66fa1c9d523
joodie/flutter
input_fields.clj
(ns flutter.html4.input-fields (:use flutter.selected)) ;;;; ;;;; minimal input fields that provide a given name => value pair ;;;; (defn wrap-basic-input-fields "accept type :input and translate straight to a hiccup [:input] element, adding name and value in attributes (which probably should include a :type). ...
null
https://raw.githubusercontent.com/joodie/flutter/336e40386ff4e79ce9243ec8690e2a62c41f80a3/src/flutter/html4/input_fields.clj
clojure
minimal input fields that provide a given name => value pair
(ns flutter.html4.input-fields (:use flutter.selected)) (defn wrap-basic-input-fields "accept type :input and translate straight to a hiccup [:input] element, adding name and value in attributes (which probably should include a :type). ignores opts." [f] (fn [type attrs name opts value] (if (= type :inp...
7e7575a0a312355fd9c1af242a39bbaa89f165f3478fe8c1ce4370ca96a1e68f
janestreet/merlin-jst
mreader_parser.mli
{ { { COPYING * ( This file is part of Merlin , an helper for ocaml editors Copyright ( C ) 2013 - 2015 < frederic.bour(_)lakaban.net > refis.thomas(_)gmail.com > < simon.castellan(_)iuwt.fr > Permission is hereby granted , free...
null
https://raw.githubusercontent.com/janestreet/merlin-jst/0152b4e8ef1b7cd0ddee2873aa1860a971585391/src/kernel/mreader_parser.mli
ocaml
| MLL | MLY
{ { { COPYING * ( This file is part of Merlin , an helper for ocaml editors Copyright ( C ) 2013 - 2015 < frederic.bour(_)lakaban.net > refis.thomas(_)gmail.com > < simon.castellan(_)iuwt.fr > Permission is hereby granted , free...