_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
ce9b4087619b6979ef6573bd24dcc8d1ba8da284677df5681a87831582413207
zadean/xqerl
prod_FLWORExpr_static_typing_SUITE.erl
-module('prod_FLWORExpr_static_typing_SUITE'). -include_lib("common_test/include/ct.hrl"). -export([ all/0, groups/0, suite/0 ]). -export([ init_per_suite/1, init_per_group/2, end_per_group/2, end_per_suite/1 ]). -export(['statictyping-21'/1]). -export(['statictyping-22'/1]). -export(['s...
null
https://raw.githubusercontent.com/zadean/xqerl/1a94833e996435495922346010ce918b4b0717f2/test/prod/prod_FLWORExpr_static_typing_SUITE.erl
erlang
-module('prod_FLWORExpr_static_typing_SUITE'). -include_lib("common_test/include/ct.hrl"). -export([ all/0, groups/0, suite/0 ]). -export([ init_per_suite/1, init_per_group/2, end_per_group/2, end_per_suite/1 ]). -export(['statictyping-21'/1]). -export(['statictyping-22'/1]). -export(['s...
209a5c66845735118775839fda40dac8ed021fd16e70400ac36b613f61b1bc02
statusfailed/cartographer-string-diagrammatic-reasoning
Rewriting.hs
module Data.Hypergraph.Test.Rewriting where import Test.Tasty import Test.Tasty.QuickCheck as QC import Data.Hypergraph import Data.Hypergraph.Test.Arbitrary import Data.List (sort) import Data.Bimap (Bimap) import qualified Data.Bimap as Bimap import qualified Data.Map.Strict as Map import Debug.Trace -----------...
null
https://raw.githubusercontent.com/statusfailed/cartographer-string-diagrammatic-reasoning/7559db3f6de17dfa2dc13a6bf29f95c9cebcf7c4/cartographer-core/tests/Data/Hypergraph/Test/Rewriting.hs
haskell
----------------------------- Tests Take integers (k, n) and an OpenHypergraph of size (k', n'), and return a new hypergraph of size (k, n) by prepending and appending generators of size (k, k') and (n', n), respectively. ----------------------------- Properties | Given an arbitrary k → n graph, attach a 1 → k ge...
module Data.Hypergraph.Test.Rewriting where import Test.Tasty import Test.Tasty.QuickCheck as QC import Data.Hypergraph import Data.Hypergraph.Test.Arbitrary import Data.List (sort) import Data.Bimap (Bimap) import qualified Data.Bimap as Bimap import qualified Data.Map.Strict as Map import Debug.Trace tests = te...
6fbecc1c8c487adc91e598b486b7289e80ba0bfcd4330fbe03a43f33c49df168
Deducteam/Dedukti
version.ml
let version = "devel"
null
https://raw.githubusercontent.com/Deducteam/Dedukti/039691659fc7ad58d5c4e766af3af6ebe4a7aad3/kernel/version.ml
ocaml
let version = "devel"
85acce159308fce2165b52a41cda47cb48e4e54638839fe80e7c66e300b2f4ae
rudenoise/mirage-dashboard
events.mli
val get_events_per_user : Github_wrapper.repo_with_token -> Yojson.json Lwt.t
null
https://raw.githubusercontent.com/rudenoise/mirage-dashboard/f109ad96d68701addd2ac7cc0be87d706f7eab50/src/events.mli
ocaml
val get_events_per_user : Github_wrapper.repo_with_token -> Yojson.json Lwt.t
e23a313dcf2bc7799d5d6d4a7bd86582b450fea2255be3710f9b831388c6dec6
zenspider/schemers
exercise.1.05.scm
#lang racket/base * Exercise 1.5 :* has invented a test to determine whether the ;; interpreter he is faced with is using applicative-order evaluation or normal - order evaluation . He defines the following two ;; procedures: (define (p) (p)) (define (test x y) (if (= x 0) 0 y)) ;; Then he ev...
null
https://raw.githubusercontent.com/zenspider/schemers/2939ca553ac79013a4c3aaaec812c1bad3933b16/sicp/ch_1/exercise.1.05.scm
scheme
interpreter he is faced with is using applicative-order evaluation procedures: Then he evaluates the expression applicative-order evaluation? What behavior will he observe with an interpreter that uses normal-order evaluation? Explain your answer. (Assume that the evaluation rule for the special form `if' is the ...
#lang racket/base * Exercise 1.5 :* has invented a test to determine whether the or normal - order evaluation . He defines the following two (define (p) (p)) (define (test x y) (if (= x 0) 0 y)) ( test 0 ( p ) ) What behavior will observe with an interpreter that uses The predicate e...
1d525f721eff84faf77f2b1f016e577ba073140e5d7e9f5cfa39fb2fdd6b8c1c
audreyt/openafp
NOP.hs
module OpenAFP.Records.AFP.NOP where import OpenAFP.Types import OpenAFP.Internals data NOP = NOP { nop_Type :: !N3 ,nop_ :: !N3 ,nop :: !NStr } deriving (Show, Typeable)
null
https://raw.githubusercontent.com/audreyt/openafp/178e0dd427479ac7b8b461e05c263e52dd614b73/src/OpenAFP/Records/AFP/NOP.hs
haskell
module OpenAFP.Records.AFP.NOP where import OpenAFP.Types import OpenAFP.Internals data NOP = NOP { nop_Type :: !N3 ,nop_ :: !N3 ,nop :: !NStr } deriving (Show, Typeable)
bb2193bddc6bde7fb4ad21c73e7621c5f14fd6cc871ebad09763e66014b49368
minad/intro
test.hs
{-# LANGUAGE ExplicitForAll #-} # LANGUAGE FlexibleContexts # # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # module Main where import BaseCompat () import Data.ByteString.Short (ShortByteString) import Intro import LensCompat () import OpticsCompat () import Test.Qui...
null
https://raw.githubusercontent.com/minad/intro/45a0bbcfebae747c77e39d30f7ed9c7bb52ac098/test/test.hs
haskell
# LANGUAGE ExplicitForAll # # LANGUAGE OverloadedStrings #
# LANGUAGE FlexibleContexts # # LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # module Main where import BaseCompat () import Data.ByteString.Short (ShortByteString) import Intro import LensCompat () import OpticsCompat () import Test.QuickCheck import qualified Data.ByteString as B import qualified Data...
c61a94d4b1bb19621b0c6df6d928a49bca5e7629521b2e14b0b360392768a09e
pixlsus/registry.gimp.org_static
script-fu-saturation-layer.scm
(define (saturation-layer-extract image layer) (gimp-image-undo-group-start image) (let* ((saturation-image 0) (saturation-layer 0) ) ; Applique un tatouage au calque (gimp-drawable-set-tattoo layer 1234) ; Récupère le canal saturation du calque courant dans une image (set! satura...
null
https://raw.githubusercontent.com/pixlsus/registry.gimp.org_static/ffcde7400f402728373ff6579947c6ffe87d1a5e/registry.gimp.org/files/script-fu-saturation-layer.scm
scheme
Applique un tatouage au calque Récupère le canal saturation du calque courant dans une image Force la mise à jour de l'affichage calque courant CS =calque de saturation à appliquer création d'une image ID de CD avec plug-in-decompose Récupère une image contenant la saturation Récupère une image contenant les val...
(define (saturation-layer-extract image layer) (gimp-image-undo-group-start image) (let* ((saturation-image 0) (saturation-layer 0) ) (gimp-drawable-set-tattoo layer 1234) (set! saturation-image (car (plug-in-decompose RUN-NONINTERACTIVE image layer "Saturation" -1))) Duplique le calqu...
ef5a4d2bb0fa75a86b6b243a833865f05fa6e95c378c6beedfc7c887edd79354
CSCfi/rems
spinner.cljs
(ns rems.spinner (:require [re-frame.core :as rf] [rems.guide-util :refer [component-info example]] [rems.text :refer [text]])) (defn big "Big spinner for indicating loading or in-progress state." [] (let [theme @(rf/subscribe [:theme])] [:div.text-center [:i {:style {:display ...
null
https://raw.githubusercontent.com/CSCfi/rems/644ef6df4518b8e382cdfeadd7719e29508a26f0/src/cljs/rems/spinner.cljs
clojure
(ns rems.spinner (:require [re-frame.core :as rf] [rems.guide-util :refer [component-info example]] [rems.text :refer [text]])) (defn big "Big spinner for indicating loading or in-progress state." [] (let [theme @(rf/subscribe [:theme])] [:div.text-center [:i {:style {:display ...
520c720a55ca8bd72f8f971420121bb176138a3bcb209bd1e9c2c2ccd9ceb27b
nunchaku-inria/nunchaku
Smbc.mli
(* This file is free software, part of nunchaku. See file "license" for more details. *) * { 1 Backend for SMBC } open Nunchaku_core type term = Term.t type ty = term type problem = (term,ty) Problem.t type env = (term,ty) Env.t val is_available : unit -> bool (** test whether the solver is available *) val call ...
null
https://raw.githubusercontent.com/nunchaku-inria/nunchaku/16f33db3f5e92beecfb679a13329063b194f753d/src/backends/Smbc.mli
ocaml
This file is free software, part of nunchaku. See file "license" for more details. * test whether the solver is available * Transformation corresponding to calling smbc on the problem
* { 1 Backend for SMBC } open Nunchaku_core type term = Term.t type ty = term type problem = (term,ty) Problem.t type env = (term,ty) Env.t val is_available : unit -> bool val call : ?print_model:bool -> ?prio:int -> print:bool -> dump:string option -> problem -> (term, ty) Problem.Res.t Scheduling.Ta...
d3483a150000929be5d1b7eae17957f42352524387fde635537478a20e4db968
boxer-project/boxer-sunrise
region.lisp
;;;; -*- Mode:LISP; Syntax: Common-Lisp; Package:BOXER ;-*- ;;;; ;;;; Boxer Copyright 1985 - 2022 Andrea A. diSessa and the Estate of Edward H. Lay ;;;; Portions of this code may be copyright 1982 - 1985 Massachusetts Institute of Technology . Those portions may be used for any purpose , inclu...
null
https://raw.githubusercontent.com/boxer-project/boxer-sunrise/31fc8aa23c4bdc7b9100c7e9433ea0ffd14b5742/src/editor-high/region.lisp
lisp
-*- Mode:LISP; Syntax: Common-Lisp; Package:BOXER ;-*- Boxer Licensed under the 3-Clause BSD license. You may not use this file except in compliance with this license. -3-Clause +-Data--+ This file is part of the | BOXER | system ...
Copyright 1985 - 2022 Andrea A. diSessa and the Estate of Edward H. Lay Portions of this code may be copyright 1982 - 1985 Massachusetts Institute of Technology . Those portions may be used for any purpose , including commercial ones , providing that notice of MIT copyright is retained . This f...
1b287ed83588007e755d2f9a93e2e67391853e23d5f9a0c78621f66287282077
inhabitedtype/ocaml-aws
describeEventCategories.mli
open Types type input = DescribeEventCategoriesMessage.t type output = EventCategoriesMessage.t type error = Errors_internal.t include Aws.Call with type input := input and type output := output and type error := error
null
https://raw.githubusercontent.com/inhabitedtype/ocaml-aws/b6d5554c5d201202b5de8d0b0253871f7b66dab6/libraries/rds/lib/describeEventCategories.mli
ocaml
open Types type input = DescribeEventCategoriesMessage.t type output = EventCategoriesMessage.t type error = Errors_internal.t include Aws.Call with type input := input and type output := output and type error := error
5f9f9e2dae3a0bd097524942c7732f127c87f1db5c301b24ab334f4395dd8472
xh4/web-toolkit
eax.lisp
;;;; -*- mode: lisp; indent-tabs-mode: nil -*- ;;;; eax.lisp -- Encrypt then authenticate then translate (in-package :crypto) (defclass eax (aead-mode) ((cipher :accessor eax-cipher :initform nil) (mac-n :accessor eax-mac-n :initform nil) (mac-h :accessor eax-mac-h :initform ni...
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/vendor/ironclad-v0.47/src/aead/eax.lisp
lisp
-*- mode: lisp; indent-tabs-mode: nil -*- eax.lisp -- Encrypt then authenticate then translate
(in-package :crypto) (defclass eax (aead-mode) ((cipher :accessor eax-cipher :initform nil) (mac-n :accessor eax-mac-n :initform nil) (mac-h :accessor eax-mac-h :initform nil) (mac-c :accessor eax-mac-c :initform nil))) (defmethod shared-initialize :after ((mode e...
96702dd2bfc44064ab7998166a92f8b0203859ae6557bcd99e0841f807bb5563
monadfix/ormolu-live
CodeGen.Platform.hs
import CmmExpr #if !(defined(MACHREGS_i386) || defined(MACHREGS_x86_64) \ || defined(MACHREGS_sparc) || defined(MACHREGS_powerpc)) import PlainPanic #endif import Reg #include "stg/MachRegs.h" #if defined(MACHREGS_i386) || defined(MACHREGS_x86_64) # if defined(MACHREGS_i386) # define eax 0 # define ebx 1 # d...
null
https://raw.githubusercontent.com/monadfix/ormolu-live/d8ae72ef168b98a8d179d642f70352c88b3ac226/ghc-lib-parser-8.10.1.20200412/includes/CodeGen.Platform.hs
haskell
being assigned the same RegNos. Since it's only used to check 'isJust', the actual values don't matter, thus I'm not sure if these are the correct numberings. See note above. These aren't actually used for anything except satisfying the compiler for globalRegMaybe | Returns 'Nothing' if this global register is no...
import CmmExpr #if !(defined(MACHREGS_i386) || defined(MACHREGS_x86_64) \ || defined(MACHREGS_sparc) || defined(MACHREGS_powerpc)) import PlainPanic #endif import Reg #include "stg/MachRegs.h" #if defined(MACHREGS_i386) || defined(MACHREGS_x86_64) # if defined(MACHREGS_i386) # define eax 0 # define ebx 1 # d...
ca392d76c3cb4b7a1980250686c4eb4103c8534f269f75e3fcb5091071d4f554
Feuerlabs/kvdb
kvdb_lib_proper.erl
-module(kvdb_lib_proper). -ifdef(PROPER). -export([q_raw_keyed/0, q_raw_keyed_sorts/0, escape_unescape/0, escape_sorts/0]). -include_lib("proper/include/proper.hrl"). -type raw_key() :: binary(). q_raw_keyed() -> T = {keyed,fifo}, ?FORALL(Key, raw_key(), begin {Raw,QK} = kvdb_lib:actual...
null
https://raw.githubusercontent.com/Feuerlabs/kvdb/c8c71bf5422a8fa2e58c608c65629be7a58e27f3/test/kvdb_lib_proper.erl
erlang
PROPER
-module(kvdb_lib_proper). -ifdef(PROPER). -export([q_raw_keyed/0, q_raw_keyed_sorts/0, escape_unescape/0, escape_sorts/0]). -include_lib("proper/include/proper.hrl"). -type raw_key() :: binary(). q_raw_keyed() -> T = {keyed,fifo}, ?FORALL(Key, raw_key(), begin {Raw,QK} = kvdb_lib:actual...
f183a11e0cc4750a4319262439e640432bdad3fe28a201d300f82a21baf8908d
broom-lang/broom
Name.mli
include Id.S val freshen : t -> t (* FIXME: naming (of_string takes basename, parse is the reverse of to_string: *) val of_string : string -> t val parse : string -> t option val basename : t -> string option val basename_iso : (string, t) PIso.t module Map : Map.S with type key = t
null
https://raw.githubusercontent.com/broom-lang/broom/36d4d9ae234a16bc4da287eef751e9447705ee58/compiler/lib/IRCommon/Name.mli
ocaml
FIXME: naming (of_string takes basename, parse is the reverse of to_string:
include Id.S val freshen : t -> t val of_string : string -> t val parse : string -> t option val basename : t -> string option val basename_iso : (string, t) PIso.t module Map : Map.S with type key = t
bc76e48a3ff63336a1f825565ebe930b60118a8ccbcf6f23c074fe8ce9b52e50
realworldocaml/book
sexp_conv.ml
(* Utility Module for S-expression Conversions *) open StdLabels open MoreLabels open Printf open Sexp (* Conversion of OCaml-values to S-expressions *) external format_float : string -> float -> string = "caml_format_float" ' % is guaranteed to be round - trippable . ' % .15 g ' will be round - trippable...
null
https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/sexplib0/src/sexp_conv.ml
ocaml
Utility Module for S-expression Conversions Conversion of OCaml-values to S-expressions These exception registration functions assume that context-switches cannot happen unless there is an allocation. It is reasonable to expect that this will remain true for the foreseeable future. That way we avo...
open StdLabels open MoreLabels open Printf open Sexp external format_float : string -> float -> string = "caml_format_float" ' % is guaranteed to be round - trippable . ' % .15 g ' will be round - trippable and not have noise at the last digit or two for a float which was converted from a decimal ( s...
7c1af43f4e87872f2485a11fdad2c30fccd2f3d14917b3852c269a3534fee803
picrin-scheme/picrin
pretty-print.scm
(define-library (picrin pretty-print) (import (scheme base) (scheme write)) ; (reverse-string-append l) = (apply string-append (reverse l)) (define (reverse-string-append l) (define (rev-string-append l i) (if (pair? l) (let* ((str (car l)) (len (string-length str...
null
https://raw.githubusercontent.com/picrin-scheme/picrin/2af16bc88fbfca2efafd27ca9e5006d73c06f6fb/contrib/30.pretty-print/pretty-print.scm
scheme
(reverse-string-append l) = (apply string-append (reverse l)) We define a pretty printer for Scheme S-expressions (sexp). While Petite Scheme supports that by its own, mzscheme does not. If you get a sexp (like from proof-to-expr) prefix it with a call to spp and the output is nicely formated to fit into pp-width ...
(define-library (picrin pretty-print) (import (scheme base) (scheme write)) (define (reverse-string-append l) (define (rev-string-append l i) (if (pair? l) (let* ((str (car l)) (len (string-length str)) (result (rev-string-append (cdr l) (+ i len)))...
41f386a53043a424f7907dd13444ca9f0710c72e4c08a2820e8f3730c1fb2de6
txyyss/Project-Euler
Euler043.hs
The number , 1406357289 , is a 0 to 9 pandigital number because it is made up of each of the digits 0 to 9 in some order , but it also has -- a rather interesting sub-string divisibility property. Let d1 be the 1st digit , d2 be the 2nd digit , and so on . In this -- way, we note the following: d2d3d4=406 is ...
null
https://raw.githubusercontent.com/txyyss/Project-Euler/d2f41dad429013868445c1c9c1c270b951550ee9/Euler043.hs
haskell
a rather interesting sub-string divisibility property. way, we note the following:
The number , 1406357289 , is a 0 to 9 pandigital number because it is made up of each of the digits 0 to 9 in some order , but it also has Let d1 be the 1st digit , d2 be the 2nd digit , and so on . In this d2d3d4=406 is divisible by 2 d3d4d5=063 is divisible by 3 d4d5d6=635 is divisible by 5 d5d6d7=357...
9d5b99a74d8c2bd3fcbecfadd19405818791988ee1e6fbaf254074b0ad3b3bc5
janestreet/incr_dom
app.mli
open! Core module Model : sig type t [@@deriving sexp] include Incr_dom.App_intf.Model with type t := t end module Action : sig type t = | New_counter | Update of { pos : int ; diff : int } [@@deriving sexp_of] end val initial_model_exn : (int * int) list -> Model.t include ...
null
https://raw.githubusercontent.com/janestreet/incr_dom/56c04e44d6a8f1cc9b2b841495ec448de4bf61a1/example/incr_decr/lib/app.mli
ocaml
open! Core module Model : sig type t [@@deriving sexp] include Incr_dom.App_intf.Model with type t := t end module Action : sig type t = | New_counter | Update of { pos : int ; diff : int } [@@deriving sexp_of] end val initial_model_exn : (int * int) list -> Model.t include ...
7e95f88c12f4ca4627374c2892b8c4c30d802069b86426c48c62109a048471b2
jimrthy/frereth
login_demo.cljs
(ns frereth.apps.roadblocks.login-demo "Provide an 'Attract' animation/demo And also a login mechanism so we can start the real thing That really conflats too very different ideas/states, but doesn't seem terrible as a starting point for proving the concept as a pre-auth demo" (:require [cljs.core.asyn...
null
https://raw.githubusercontent.com/jimrthy/frereth/e1c4a5c031355ff1ff3bb60741eb03dff2377e1d/apps/racing/roadblocks/src/cljs/frereth/apps/roadblocks/login_demo.cljs
clojure
FIXME: Surely I have a spec for this somewhere. This bypasses all the networking hoops to send messages to that. This is currently set up in a very similar manner to HTTP request handlers. The `body` is a map that should have :path-info, :request-method, and :body keys. maps. The real thing would increment the...
(ns frereth.apps.roadblocks.login-demo "Provide an 'Attract' animation/demo And also a login mechanism so we can start the real thing That really conflats too very different ideas/states, but doesn't seem terrible as a starting point for proving the concept as a pre-auth demo" (:require [cljs.core.asyn...
9992eceeeba951dbbb1a880888caa1bd5df1a09c9d48486a5d0e953aca5ed2de
MinaProtocol/mina
at_most.ml
type ('a, _) t = | [] : ('a, 'n) t | ( :: ) : 'a * ('a, 'n) t -> ('a, 'n Nat.s) t let rec to_list : type a n. (a, n) t -> a list = function | [] -> [] | x :: xs -> x :: to_list xs let rec _length : type a n. (a, n) t -> int = function | [] -> 0 | _ :: xs -> 1 + _length xs let rec ...
null
https://raw.githubusercontent.com/MinaProtocol/mina/a4c6100f332e2ef25057e0e9bd7af5a83b235ccb/src/lib/pickles_types/at_most.ml
ocaml
type ('a, _) t = | [] : ('a, 'n) t | ( :: ) : 'a * ('a, 'n) t -> ('a, 'n Nat.s) t let rec to_list : type a n. (a, n) t -> a list = function | [] -> [] | x :: xs -> x :: to_list xs let rec _length : type a n. (a, n) t -> int = function | [] -> 0 | _ :: xs -> 1 + _length xs let rec ...
c3005c2e361b8f93f3789c8bbff96f9b94e291cc2949fa24f56fc145492d3455
SimonJF/monitored-session-erlang
conversation_runtime_sup.erl
% Conversation runtime process. -module(conversation_runtime_sup). -define(RUNTIME_PROC_NAME, conv_runtime_sup). -compile(export_all). -behaviour(supervisor). init([SpecDir, Config]) -> ProtocolMappings = protocol_loader:load_protocol_files(SpecDir), ProtocolRegProc = {protocol_registry, {protocol_registry, ...
null
https://raw.githubusercontent.com/SimonJF/monitored-session-erlang/5ec76f327d3d2da4050d4c5a468ac343207f4521/src/conversation/conversation_runtime_sup.erl
erlang
Conversation runtime process.
-module(conversation_runtime_sup). -define(RUNTIME_PROC_NAME, conv_runtime_sup). -compile(export_all). -behaviour(supervisor). init([SpecDir, Config]) -> ProtocolMappings = protocol_loader:load_protocol_files(SpecDir), ProtocolRegProc = {protocol_registry, {protocol_registry, ...
d6dff7c2c702d4eb269ffe7fd7d374e58c47104cd9763548b48382feacf22ffe
mejgun/haskell-tdlib
AccountTtl.hs
{-# LANGUAGE OverloadedStrings #-} -- | module TD.Data.AccountTtl where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified Utils as U -- | | Contains information about the period of inactivity after which the current user 's account will automatically be deleted @days Number o...
null
https://raw.githubusercontent.com/mejgun/haskell-tdlib/ddcb47043c7a339b4e5995355e5d5a228e21ccb0/src/TD/Data/AccountTtl.hs
haskell
# LANGUAGE OverloadedStrings # | | |
module TD.Data.AccountTtl where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified Utils as U | Contains information about the period of inactivity after which the current user 's account will automatically be deleted @days Number of days of inactivity before the account will ...
05df992d692c6f983ae9c934e7ddc68f7bfc7946a762f8b9571d3d4af9b3b5da
wdebeaum/step
lf-munging.lisp
(in-package :domiknows) ;;;; ;;;; lf-munging.lisp - various manipulations of lf-terms and lf-graphs to make ;;;; them better fit into graphs and queries ;;;; ;;; ;;; non-node values -> nodes ;;; (defun add-terms-for-values (lf-terms) "Given a list of lf-terms, return a copy that has extra terms replacing argume...
null
https://raw.githubusercontent.com/wdebeaum/step/f38c07d9cd3a58d0e0183159d4445de9a0eafe26/src/Domiknows/lf-munging.lisp
lisp
lf-munging.lisp - various manipulations of lf-terms and lf-graphs to make them better fit into graphs and queries non-node values -> nodes TODO? other args if old-val is a nonempty list of term IDs split the role remove final S if any, e.g. :MODS -> :MOD normal role, don't split AND/OR operators -> lf-gra...
(in-package :domiknows) (defun add-terms-for-values (lf-terms) "Given a list of lf-terms, return a copy that has extra terms replacing argument values that were previously inline in other terms, particularly :scale." (loop for old-term in lf-terms append (if scale-pos (let ((id (gentemp "V" :ont...
d65635b802ec1655d3e04e1c098d21bac54c16a9330c00c649bbf4e0e16acc17
shop-planner/shop3
nst-umt.lisp
(in-package :shop-user) (nst:def-fixtures umt-domain () (dummy (define-umt-domain))) (nst:def-test-group umt-tests (umt-domain) (nst:def-test umt-1 (:primary-result-plan ((!!ASSERT ((GOAL (CLEAR)) (GOAL (DELIVERED PACKAGE2 LOCATION5)) (GOAL (DELIVERED PACKAGE1 LOCATION4)) (GOAL (DELIVERED ...
null
https://raw.githubusercontent.com/shop-planner/shop3/ba429cf91a575e88f28b7f0e89065de7b4d666a6/shop3/examples/UMT2/nst-umt.lisp
lisp
(in-package :shop-user) (nst:def-fixtures umt-domain () (dummy (define-umt-domain))) (nst:def-test-group umt-tests (umt-domain) (nst:def-test umt-1 (:primary-result-plan ((!!ASSERT ((GOAL (CLEAR)) (GOAL (DELIVERED PACKAGE2 LOCATION5)) (GOAL (DELIVERED PACKAGE1 LOCATION4)) (GOAL (DELIVERED ...
2eff16cf538ddc1c95d242bd1a917c0c9c852406773d903ecdebe085ffcb278b
OCamlPro/OCamlPro-OCaml-Branch
taku.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/OCamlPro/OCamlPro-OCaml-Branch/3a522985649389f89dac73e655d562c54f0456a5/inline-more/testsuite/tests/misc/taku.ml
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : taku.ml 7017 2005 - 08 - 12 0...
a134f289e9af69ef0064ac7b91b173f909236df47e286056b1663eee4f44c833
chrisdone/prana
CString.hs
# LANGUAGE MagicHash , NoImplicitPrelude , BangPatterns # ----------------------------------------------------------------------------- -- | -- Module : GHC.CString Copyright : ( c ) The University of Glasgow 2011 License : see libraries / ghc - prim / LICENSE -- -- Maintainer : -- Stability ...
null
https://raw.githubusercontent.com/chrisdone/prana/f2e45538937d326aff562b6d49296eaedd015662/prana-boot/packages/ghc-prim-0.5.2.0/GHC/CString.hs
haskell
--------------------------------------------------------------------------- | Module : GHC.CString Maintainer : Stability : internal Use GHC.Exts from the base package instead of importing this module directly. --------------------------------------------------------------------------- ------------...
# LANGUAGE MagicHash , NoImplicitPrelude , BangPatterns # Copyright : ( c ) The University of Glasgow 2011 License : see libraries / ghc - prim / LICENSE Portability : non - portable ( GHC Extensions ) GHC C strings definitions ( previously in ) . module GHC.CString ( unpackCString#, unp...
016c217cd6186a9018004852b916b6e11f8709d8f0047c38445a73abf94ecc29
haskell/haskell-language-server
MultiSigFirst.expected.hs
bar :: Bool -> Int foo :: Bool -> _ -> Int bar = const 1 foo True new_def = new_def [True] foo False new_def = 1
null
https://raw.githubusercontent.com/haskell/haskell-language-server/68d353f1ed42f3643bdb6043244b491030cc3e99/plugins/hls-refactor-plugin/test/data/golden/add-arg/MultiSigFirst.expected.hs
haskell
bar :: Bool -> Int foo :: Bool -> _ -> Int bar = const 1 foo True new_def = new_def [True] foo False new_def = 1
6a506b4249a6d2d2b8f987c67eee8f435ce7706cd7662e9857a3356cec03c7c6
veikman/dmote-keycap
core.clj
;;; A CLI application for generating 3D models. (ns dmote-keycap.core (:require [clojure.edn :as edn] [clojure.spec.alpha :as spec] [clojure.string :refer [join split]] [clojure.tools.cli :refer [parse-opts]] [environ.core :refer [env]] [scad-app.core :as a...
null
https://raw.githubusercontent.com/veikman/dmote-keycap/f0014d57323ae30cc1b022d68ff0ce29da4ef333/src/dmote_keycap/core.clj
clojure
A CLI application for generating 3D models. At this point, all work is complete. A call to shutdown-agents here stops a thread pool that is no longer used. Such a pool will have been created if a subprocess ran via clojure.java.shell/sh, e.g. Inkscape processing keycap legends.
(ns dmote-keycap.core (:require [clojure.edn :as edn] [clojure.spec.alpha :as spec] [clojure.string :refer [join split]] [clojure.tools.cli :refer [parse-opts]] [environ.core :refer [env]] [scad-app.core :as app-core] [scad-app.schema :as app-sc...
defb09ffcd17c9592d7a072da3da27056757f1d82ed4efeb0aecba8781f279c8
schell/odin
Physics.hs
# LANGUAGE LambdaCase # # LANGUAGE RecordWildCards # # LANGUAGE TupleSections # # LANGUAGE FlexibleContexts # # LANGUAGE TemplateHaskell # {-# LANGUAGE TypeSynonymInstances #-} # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # module Demos.Physics ( PhysicsDemo(..) , allocDemo , renderDemo , fre...
null
https://raw.githubusercontent.com/schell/odin/97ae1610a7abd19aa150bc7dfc132082d88ca9ea/app/Demos/Physics.hs
haskell
# LANGUAGE TypeSynonymInstances # A function to draw each actor. Used to alloc all our renderers. Transform the renderings by the bodys' position and rotation Get the bodies out of our scene Render them
# LANGUAGE LambdaCase # # LANGUAGE RecordWildCards # # LANGUAGE TupleSections # # LANGUAGE FlexibleContexts # # LANGUAGE TemplateHaskell # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # module Demos.Physics ( PhysicsDemo(..) , allocDemo , renderDemo , freeDemo ) where import Control.Lens h...
a18edd68cf1fae07d42b757996c446cc8b311d60db0866c894745ff88a741d12
bgusach/exercises-htdp2e
ex-185.rkt
#lang htdp/bsl+ (require test-engine/racket-tests) (check-expect (first (list 1 2 3)) 1 ) (check-expect (rest (list 1 2 3)) (list 2 3) ) (check-expect (second (list 1 2 3)) 2 ) (test)
null
https://raw.githubusercontent.com/bgusach/exercises-htdp2e/c4fd33f28fb0427862a2777a1fde8bf6432a7690/2-arbitrarily-large-data/ex-185.rkt
racket
#lang htdp/bsl+ (require test-engine/racket-tests) (check-expect (first (list 1 2 3)) 1 ) (check-expect (rest (list 1 2 3)) (list 2 3) ) (check-expect (second (list 1 2 3)) 2 ) (test)
c336bc8de6173f8143d3020f2a8f168883fdcaa36ee606d054bce29e1d4e0b98
PeterDWhite/Osker
MonadUtilities.hs
Copyright ( C ) , 2003 Copyright ( c ) OHSU , 2003 module MonadUtilities ( listM -- Convert list of actions into a single action , listMUnit -- Like listM, specialized to () , listMaybe -- List of (Maybe a) into single action [a] , repeatM -- Repeat ...
null
https://raw.githubusercontent.com/PeterDWhite/Osker/301e1185f7c08c62c2929171cc0469a159ea802f/Utilities/MonadUtilities.hs
haskell
Convert list of actions into a single action Like listM, specialized to () List of (Maybe a) into single action [a] Repeat an action n times in sequence Generate list of actions and do them Same as map, but propagate Nothing returns Propagate a state through seq of braid actions Propagate a state through seq o...
Copyright ( C ) , 2003 Copyright ( c ) OHSU , 2003 module MonadUtilities Fold with specified combinator Return a null value as the second component Pair two monad utilities ) where import Null listM :: (Monad m) => [m a] -> m [a] listM mss = foldr conM nilM mss where nilM = return [] conM m...
ba9db11461a0133168172f1009e7e0159da0cbd3e449c86bb0d975f9f42fb60f
prg-titech/baccaml
mincaml-mtj.ml
(* simple compiler and bytecode interpreter *) (* abstract syntax tree for a simple functional language *) type var = string type exp = | Int of int | Var of var | Add of exp * exp | Mul of exp * exp | LT of exp * exp (* less than *) | If of exp * exp * exp | Call of var * exp list | Let of var * exp ...
null
https://raw.githubusercontent.com/prg-titech/baccaml/a3b95e996a995b5004ca897a4b6419edfee590aa/etc/mincaml-mtj.ml
ocaml
simple compiler and bytecode interpreter abstract syntax tree for a simple functional language less than tail call --- internal only sample programs simple interpreter as a reference implementation variable environment : var -> value the core interpreter test virtual machine instruction set: a stac...
type var = string type exp = | Int of int | Var of var | Add of exp * exp | Mul of exp * exp | If of exp * exp * exp | Call of var * exp list | Let of var * exp * exp | TCall of var * exp list type fundef = { name : var ; args : var list ; body : exp } let fact = { name = "fact" ; args ...
6a9412ed903b411245f31ea1f0eb3a04f8c115dafddf1d52af627b73d2f7ef8e
avsm/mirage-duniverse
x509_encoding.ml
let cs_of_cert = X509_certificate.cs_of_cert let cs_of_distinguished_name = Asn_grammars.Name.name_to_cstruct let parse = X509_certificate.parse_certificate let parse_signing_request = X509_ca.parse_signing_request let cs_of_signing_request = X509_ca.cs_of_signing_request let pkcs1_digest_info_of_cstruct : Cstruc...
null
https://raw.githubusercontent.com/avsm/mirage-duniverse/983e115ff5a9fb37e3176c373e227e9379f0d777/ocaml_modules/x509/lib/x509_encoding.ml
ocaml
let cs_of_cert = X509_certificate.cs_of_cert let cs_of_distinguished_name = Asn_grammars.Name.name_to_cstruct let parse = X509_certificate.parse_certificate let parse_signing_request = X509_ca.parse_signing_request let cs_of_signing_request = X509_ca.cs_of_signing_request let pkcs1_digest_info_of_cstruct : Cstruc...
bb946df40f60cdec4792f3b354086c3a692d9180933df8bb07679ca8e9207df5
gheber/kenzo
cs-twisted-products-test.lisp
-*- Mode : Lisp ; Syntax : ANSI - Common - Lisp ; Base : 10 - * (in-package :kenzo-test-9) (in-suite :kenzo-9)
null
https://raw.githubusercontent.com/gheber/kenzo/48e2ea398b80f39d3b5954157a7df57e07a362d7/test/kenzo-9/cs-twisted-products-test.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 - *
(in-package :kenzo-test-9) (in-suite :kenzo-9)
1511274d4c7d0f6225ecdb64672e21c87a55621ef886969a475c8cb1b0e03849
magnusjonsson/tidder-icfpc-2008
fifo-mark-cache.scm
#lang scheme (provide insert! make ref set!) (define-struct cache (max (i #:mutable) values marks hash) #:transparent) ;Helpers (define (hash-exists? h key) (let/ec k (hash-ref h key (lambda () (k #f))) #t)) (define (next-i c i) (let ((next (add1 i))) (if (= next (cache-max c)) 0 next))) (define (add-mark!...
null
https://raw.githubusercontent.com/magnusjonsson/tidder-icfpc-2008/84d68fd9ac358c38e7eff99117d9cdfa86c1864a/submission/icfp08/src/scheme/libraries/cache/fifo-mark-cache.scm
scheme
Helpers Create a key/value pair in the cache Deletes another pair if it's over the size limit Try to find an unmarked spot When we found a spot Make a cache of size max Wrap hash-ref Change or create a key/value pair in the cache Deletes another pair if it's over the size limit
#lang scheme (provide insert! make ref set!) (define-struct cache (max (i #:mutable) values marks hash) #:transparent) (define (hash-exists? h key) (let/ec k (hash-ref h key (lambda () (k #f))) #t)) (define (next-i c i) (let ((next (add1 i))) (if (= next (cache-max c)) 0 next))) (define (add-mark! m key x)...
fd27fee68a2a5111763eb789e39c6d12ac79ebbdeff5067d667c6e970b2b91e4
gregwebs/Shelly.hs
Directory.hs
{-# OPTIONS -Wall #-} module Shelly.Directory where import System.IO.Error (modifyIOError, ioeSetLocation, ioeGetLocation) import qualified System.PosixCompat as Posix createFileLink :: String -> String -> IO () createFileLink target link = (`ioeAddLocation` "createFileLink") `modifyIOError` do Posix.createSym...
null
https://raw.githubusercontent.com/gregwebs/Shelly.hs/5f93588097f475473367a5a85a6c29a5751e5f30/src/Shelly/Directory.hs
haskell
# OPTIONS -Wall #
module Shelly.Directory where import System.IO.Error (modifyIOError, ioeSetLocation, ioeGetLocation) import qualified System.PosixCompat as Posix createFileLink :: String -> String -> IO () createFileLink target link = (`ioeAddLocation` "createFileLink") `modifyIOError` do Posix.createSymbolicLink target link ...
c494d4cb95870acbffacd54b1dfbc471800e3a94a6f5fe72d439c56e11b0a2da
Holworth/SICP_Solutions
exercise3-4.rkt
#lang sicp (define (make-account balance passwd) (let ((fail 0)) (define (call-the-cops) "call the cops!!!") (define (safe-withdraw input amount) (cond ((eq? input passwd) (begin (set! balance (- balance amount)) (set! fail 0) balance)) ...
null
https://raw.githubusercontent.com/Holworth/SICP_Solutions/91ee366cfa4a107aa5f6ad435c8ec9019b416e04/solutions/chap3/code/exercise3-4.rkt
racket
#lang sicp (define (make-account balance passwd) (let ((fail 0)) (define (call-the-cops) "call the cops!!!") (define (safe-withdraw input amount) (cond ((eq? input passwd) (begin (set! balance (- balance amount)) (set! fail 0) balance)) ...
04033322bf7f3b7c056375657cf9281ba5b4b6b3c324e359ff552e6e17ffc042
hasura/graphql-parser-hs
Parser.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE OverloadedStrings #-} | Description : text into GraphQL ASTs module Language.GraphQL.Draft.Parser ( executableDocument, parseExecutableDoc, schemaDocument, parseTypeSystemDefinitions, parseSchemaDocument, Variable (..), value, PossibleTypes (....
null
https://raw.githubusercontent.com/hasura/graphql-parser-hs/0c561cca5e3b0c875501710a63e9fb3d01ac79ec/src/Language/GraphQL/Draft/Parser.hs
haskell
# LANGUAGE OverloadedStrings # ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- * Document | Parser for a schema document. * Fragments TODO: Make sure it fails when `... on`. See /#FragmentSpread * Values N...
# LANGUAGE FlexibleContexts # | Description : text into GraphQL ASTs module Language.GraphQL.Draft.Parser ( executableDocument, parseExecutableDoc, schemaDocument, parseTypeSystemDefinitions, parseSchemaDocument, Variable (..), value, PossibleTypes (..), nameParser, graphQLType...
25c1a74454e27df6e42873a9deee94af319af40cd48b5472c13ffb1106ad5810
tolitius/verter
core.clj
(ns verter.core (:require [inquery.core :as q] [taoensso.nippy :as nippy] [clojure.edn :as edn] [verter.tools :as vt])) (defprotocol Identity (facts [this id] [this id opts] "find all the facts about the identity until now or with options") (add-facts [this facts...
null
https://raw.githubusercontent.com/tolitius/verter/506c23051630a185328c8c5d10ed0ad158ec3bb4/src/verter/core.clj
clojure
(ns verter.core (:require [inquery.core :as q] [taoensso.nippy :as nippy] [clojure.edn :as edn] [verter.tools :as vt])) (defprotocol Identity (facts [this id] [this id opts] "find all the facts about the identity until now or with options") (add-facts [this facts...
d0a655b7181abf8c6b65176182d886233b481193040974390f08a68097acc67a
antifuchs/sbcl
slam.lisp
;;;; crude selective re-cross-compilation of the target system, like ;;;; Unix make(1), but much flakier because we don't keep track of the ;;;; (many!) dependencies between files This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL...
null
https://raw.githubusercontent.com/antifuchs/sbcl/789bf105edca031aff991ad16a5fd207812336a0/src/cold/slam.lisp
lisp
crude selective re-cross-compilation of the target system, like Unix make(1), but much flakier because we don't keep track of the (many!) dependencies between files more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS file...
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-cold) we do n't need to LOAD any machinery ( e.g. " src / cold / shared.lisp " ) basic test for up - to...
1239819e67c8c8fabbf4ba3a9cc5e39c24a39b1670fccdf4d7a8f62919b466a4
fpco/schoolofhaskell.com
Media.hs
module Handler.Media where import Import import qualified FP.Store.Blob as Blob import Blaze.ByteString.Builder (fromByteString) getMediaR :: Blob.MediaUUIDType -> Handler () getMediaR sut@(Blob.MediaUUIDType _ mtype) = do let mime = Blob.mediaTypeMime mtype rsrc <- getFileSourceBlob $ Blob.Media sut (src...
null
https://raw.githubusercontent.com/fpco/schoolofhaskell.com/15ec1a03cb9d593ee9c0d167dc522afe45ba4f8e/src/Handler/Media.hs
haskell
module Handler.Media where import Import import qualified FP.Store.Blob as Blob import Blaze.ByteString.Builder (fromByteString) getMediaR :: Blob.MediaUUIDType -> Handler () getMediaR sut@(Blob.MediaUUIDType _ mtype) = do let mime = Blob.mediaTypeMime mtype rsrc <- getFileSourceBlob $ Blob.Media sut (src...
1a457bce2cbba0734f760141c0047243e8217089e8a481ad834fc0433779e0d3
otakup0pe/magicbeam
magicbeam.erl
@author < > ( c ) 2012 ExactTarget %% @doc %% This callback must export four functions . %% State = term ( ) %% %% Mod:init() -> {ok, State} %% This function is called when the application is starting . %% %% Mod:terminate(State) -> ok %% This function is called when the application is stopping . %% ...
null
https://raw.githubusercontent.com/otakup0pe/magicbeam/e8907b0c3ed1afa96c4e635e4f6b345aacdb88ee/src/magicbeam.erl
erlang
@doc Mod:init() -> {ok, State} Mod:terminate(State) -> ok This function is called when a configuration value is requested during a configuration rehash. It may return a new value / state combo or undefined in which case the application environment will be used. {shellbeam, processed, [Token::term()...
@author < > ( c ) 2012 ExactTarget This callback must export four functions . State = term ( ) This function is called when the application is starting . This function is called when the application is stopping . Mod : config(Key::atom ( ) , Default::term ( ) , State ) - > undefined | { ok , Val::te...
dc715018efa4e9c68d8c29c8d18e2366358edd61e1f1c2b503a6994aadeca3d2
CloudI/CloudI
cloudi_service_http_client_SUITE.erl
-*-Mode : erlang;coding : utf-8;tab - width:4;c - basic - offset:4;indent - tabs - mode:()-*- ex : set utf-8 sts=4 ts=4 sw=4 et nomod : -module(cloudi_service_http_client_SUITE). %% CT callbacks -export([all/0, groups/0, suite/0, init_per_suite/1, end_per_suite/1, gr...
null
https://raw.githubusercontent.com/CloudI/CloudI/52ac6922429e49a321207d8bf20e1c9a4cbf0c26/src/lib/cloudi_service_http_client/test_ct/cloudi_service_http_client_SUITE.erl
erlang
CT callbacks test callbacks seconds ------------------------------------------------------------------------ Callback functions from CT ------------------------------------------------------------------------ ------------------------------------------------------------------------ test cases ----------------------...
-*-Mode : erlang;coding : utf-8;tab - width:4;c - basic - offset:4;indent - tabs - mode:()-*- ex : set utf-8 sts=4 ts=4 sw=4 et nomod : -module(cloudi_service_http_client_SUITE). -export([all/0, groups/0, suite/0, init_per_suite/1, end_per_suite/1, group/1, ...
659ce15ee3823f905980286f544e1f0bcf6e46a71673987d03ed4110b2dbdb4b
input-output-hk/cardano-benchmarking
RevFromGit.hs
module Cardano.Config.Git.RevFromGit ( gitRevFromGit ) where import Cardano.Prelude import Prelude (String) import qualified Language.Haskell.TH as TH import System.IO.Error (ioeGetErrorType, isDoesNotExistErrorType) import System.Process (readProcessWithExitCode) --...
null
https://raw.githubusercontent.com/input-output-hk/cardano-benchmarking/af05b42df27e2cc7305475cf5c4efa81e7f97540/locli/src/Cardano/Config/Git/RevFromGit.hs
haskell
| Git revision found by running git rev-parse. If git could not be executed, then this will be an empty string.
module Cardano.Config.Git.RevFromGit ( gitRevFromGit ) where import Cardano.Prelude import Prelude (String) import qualified Language.Haskell.TH as TH import System.IO.Error (ioeGetErrorType, isDoesNotExistErrorType) import System.Process (readProcessWithExitCode) gi...
2cd3669b3798d212d5916bd63e2ed4f6d6cdfd5f12977ce399044eb9a7ef6394
Drezil/pioneers
GUIOverlay.hs
module UI.GUIOverlay where import Data.Int import Graphics.UI.SDL.Surface import Graphics.UI.SDL.Color import Graphics.UI.SDL.Rect import Graphics.UI.SDL.Types import UI.UITypes --createRGBSurface :: Int32 -> Int32 -> Int32 -> Word32 -> Word32 -> Word32 -> Word32 -> IO Surface -- width height ...
null
https://raw.githubusercontent.com/Drezil/pioneers/2a9de00213144cfa870e9b71255a92a905dec3a9/src/UI/GUIOverlay.hs
haskell
createRGBSurface :: Int32 -> Int32 -> Int32 -> Word32 -> Word32 -> Word32 -> Word32 -> IO Surface width height depth rFilter gFilter bFilter aFilter createTextureFromSurface :: Renderer -> Surface -> IO Texture createSoftwareRenderer :: Surface -> IO Renderer
module UI.GUIOverlay where import Data.Int import Graphics.UI.SDL.Surface import Graphics.UI.SDL.Color import Graphics.UI.SDL.Rect import Graphics.UI.SDL.Types import UI.UITypes createRGBSurface width height 32 0xFF000000 0x00FF0000 0x0000FF00 0x000000FF updateGUI :: Int32 -> Int32 -> IO Surface updateGUI width he...
13b8538736e35fda7a47f44e9c2f7d659dde8a3c76216d81113d0872c7f319ae
ngless-toolkit/ngless
Vector.hs
Copyright 2015 - 2019 NGLess Authors - License : MIT - License: MIT -} module Utils.Vector ( unsafeIncrement , unsafeIncrement' , binarySearch , binarySearchBy , binarySearchByRange , binarySearchByExact , binaryFindBy , sortParallel , withVector ) where import Control.Monad (guard) ...
null
https://raw.githubusercontent.com/ngless-toolkit/ngless/6522017c229fa3796d3abbee85547b76b6c4f41d/NGLess/Utils/Vector.hs
haskell
| increment by given value sort a vector in parallel threads ^ nr of threads ^ vector
Copyright 2015 - 2019 NGLess Authors - License : MIT - License: MIT -} module Utils.Vector ( unsafeIncrement , unsafeIncrement' , binarySearch , binarySearchBy , binarySearchByRange , binarySearchByExact , binaryFindBy , sortParallel , withVector ) where import Control.Monad (guard) ...
deaef3814be25f314c26fc73a18d3a03e2f55e719d33da4a81c059ad2fbd30e1
Helium4Haskell/helium
DerivingShow.hs
module DerivingShow where data Listt a = Cons a (Listt a) | Nil data A = A [Int] data B a = B (Int -> Int) (Int, Char) A (IO ()) () a (Q Int Bool) (Maybe Int) [[Int]] type Q a b = (b, a) main = b b :: B Int b = B id (3, 'b') a (putStr "hello") () 3 (True, 5) (Just 42) [[1, 2], [3,4]] a = A [1,2,3]
null
https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/correct/DerivingShow.hs
haskell
module DerivingShow where data Listt a = Cons a (Listt a) | Nil data A = A [Int] data B a = B (Int -> Int) (Int, Char) A (IO ()) () a (Q Int Bool) (Maybe Int) [[Int]] type Q a b = (b, a) main = b b :: B Int b = B id (3, 'b') a (putStr "hello") () 3 (True, 5) (Just 42) [[1, 2], [3,4]] a = A [1,2,3]
e47733a2e51100f223d6370ae6f57774c78f09f3f8c5c5ef4405b892d2e19984
illbexyz/advent-of-code-2020
advent_of_code.ml
open Base open Stdio let runners = Map.of_alist_exn (module String) [ ("day01", Day01.run); ("day02", Day02.run); ("day03", Day03.run); ("day04", Day04.run); ("day05", Day05.run); ("day06", Day06.run); ("day07", Day07.run); ("day08", Day08.run); ("day09",...
null
https://raw.githubusercontent.com/illbexyz/advent-of-code-2020/dfb7cad0fa1eddf875967ed1f11a9ab6e6cf3cc1/advent_of_code.ml
ocaml
open Base open Stdio let runners = Map.of_alist_exn (module String) [ ("day01", Day01.run); ("day02", Day02.run); ("day03", Day03.run); ("day04", Day04.run); ("day05", Day05.run); ("day06", Day06.run); ("day07", Day07.run); ("day08", Day08.run); ("day09",...
0d65f60948f55d1acd9c6880a07c23a896f99015c24959a76da7a855e662944f
schemeorg-community/index.scheme.org
rnrs.arithmetic.fixnum.6.scm
(((name . "fixnum?") (signature lambda (obj) boolean?) (tags pure predicate) (desc . "Returns #t if obj is an exact integer object within the fixnum range, #f otherwise.")) ((name . "fixnum-width") (signature lambda () fixnum?) (tags pure) (desc . "Fixnum type size in bits")) ((name . "least-fixnum") (...
null
https://raw.githubusercontent.com/schemeorg-community/index.scheme.org/f93e4454ec03885829fa449b7ec9edc9789afa61/types/rnrs.arithmetic.fixnum.6.scm
scheme
(((name . "fixnum?") (signature lambda (obj) boolean?) (tags pure predicate) (desc . "Returns #t if obj is an exact integer object within the fixnum range, #f otherwise.")) ((name . "fixnum-width") (signature lambda () fixnum?) (tags pure) (desc . "Fixnum type size in bits")) ((name . "least-fixnum") (...
ccb9aa850f281da1178cfe6827bfe622492c0815324d932b792dcd637f2958f2
ktakashi/sagittarius-scheme
x509.scm
-*- mode : scheme ; coding : utf-8 ; -*- ;;; sagittarius / crypto / x509.scm - X.509 aggregation library ;;; Copyright ( c ) 2022 < > ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: ;;; ;;...
null
https://raw.githubusercontent.com/ktakashi/sagittarius-scheme/d287d45dae1b0f354d94849cf7305a13b7a9c9bd/ext/crypto/sagittarius/crypto/x509.scm
scheme
coding : utf-8 ; -*- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2...
sagittarius / crypto / x509.scm - X.509 aggregation library Copyright ( c ) 2022 < > " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( ...
334bc7aa98162614764d1e01cdf58076d97701ae78e90aa02672c2449bec9baa
hypernumbers/hypernumbers
curie_test.erl
@author ( C ) 2011 - 2014 , Hypernumbers Ltd %%% @doc %%% Test suite for curie.erl %%% Use test_me/8 to simulate subbmition of user_defined_fn wizard. %%% @end Created : 21 Jul 2011 %%%------------------------------------------------------------------- %%% %%% LICENSE %%% %%% This program is free sof...
null
https://raw.githubusercontent.com/hypernumbers/hypernumbers/281319f60c0ac60fb009ee6d1e4826f4f2d51c4e/lib/hypernumbers-1.0/src/curie_test.erl
erlang
@doc Test suite for curie.erl Use test_me/8 to simulate subbmition of user_defined_fn wizard. @end ------------------------------------------------------------------- LICENSE This program is free software: you can redistribute it and/or modify This program is distributed in the hope that it will be useful, ...
@author ( C ) 2011 - 2014 , Hypernumbers Ltd Created : 21 Jul 2011 it under the terms of the GNU Affero General Public License as published by the Free Software Foundation version 3 You should have received a copy of the GNU Affero General Public License -module(curie_test). -export([ ...
7984da37460ba4ef7a4cde016b5ad898e512c14ad957e6f438983b8501a92d07
earl-ducaine/cl-garnet
motif-load-gadget.lisp
-*- Mode : LISP ; Syntax : Common - Lisp ; Package : GARNET - GADGETS ; Base : 10 -*- ;;; The Garnet User Interface Development Environment . ;;; This code was written as part of the Garnet project at Carnegie Mellon University , and has been placed in the public domain . If you are using this code or any p...
null
https://raw.githubusercontent.com/earl-ducaine/cl-garnet/f0095848513ba69c370ed1dc51ee01f0bb4dd108/src/gadgets/motif-load-gadget.lisp
lisp
Syntax : Common - Lisp ; Package : GARNET - GADGETS ; Base : 10 -*- to be put on the mailing list. This file contains the load gadget. The functions for this gadget can be found in the save-load-functions.lisp file. Slots for window customization Slots for dir-input customization Slots for message customiz...
The Garnet User Interface Development Environment . This code was written as part of the Garnet project at Carnegie Mellon University , and has been placed in the public domain . If you are using this code or any part of Garnet , please contact Designed and Implemented by (in-package :garnet-gadgets) (e...
7ba549fb27fe1e942ae567488823b697eb1264e9b7e6ba7bbc0739f75fefb04b
xanxys/hs2bf
Util.hs
# LANGUAGE FlexibleInstances , OverlappingInstances # -- | Modular error reporting and common functions -- note for future me : vs. Monad -- Suppose each process can return either error or result. -- Parallel execution of such processes can be written as: ( a - > m b ) - > [ a ] - > m [ b ] : form -- ...
null
https://raw.githubusercontent.com/xanxys/hs2bf/fd8ef0fd42490779a7f082bc778afdfac77a7a9c/Util.hs
haskell
| Modular error reporting and common functions Suppose each process can return either error or result. Parallel execution of such processes can be written as: w a b -> w [a] [b] : Arrow form How to decide on one? ErrorT Identity is used for future use. (cf. ErrorT Writer) | A detailed compile error ...
# LANGUAGE FlexibleInstances , OverlappingInstances # note for future me : vs. Monad ( a - > m b ) - > [ a ] - > m [ b ] : form If you can write [ m b ] - > m [ b ] , then use Monad . Otherwise use Arrow . module Util(module Util,throwError) where import Control.Arrow import Control.Monad.Error impo...
070414ea0824d85907f1bd14510b2d449642131f529ac863c3718fa024e37303
Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library
SourceOrderItem.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 SourceOrderItem module StripeAPI.Types.SourceOrderItem where import qualif...
null
https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library/ba4401f083ff054f8da68c741f762407919de42f/src/StripeAPI/Types/SourceOrderItem.hs
haskell
# LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # | Contains the types generated from the schema SourceOrderItem | Defines the object schema located at @components.schemas.source_order_item@ in the specification. | amount: The amount (price) for this order item. | currency: This currency of this order item. Re...
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . module StripeAPI.Types.SourceOrderItem where import qualified Control.Monad.Fail import qualified Data.Aeson import qualified Data.Aeson as Data.Aeson.Encoding.Internal import qualified D...
27755e4624e331e01e8ea403174fc2a18ef2a175482ada027a6bad245c5787c2
job-streamer/job-streamer-control-bus
system.clj
(ns job-streamer.control-bus.system (:require [com.stuartsierra.component :as component] [duct.component.endpoint :refer [endpoint-component]] [duct.component.handler :refer [handler-component]] [duct.middleware.not-found :refer [wrap-not-found]] [meta-merge.core :refer...
null
https://raw.githubusercontent.com/job-streamer/job-streamer-control-bus/af38bc8838366c230e4f53f08b447eecc3e794b7/src/clj/job_streamer/control_bus/system.clj
clojure
Pre-flight request
(ns job-streamer.control-bus.system (:require [com.stuartsierra.component :as component] [duct.component.endpoint :refer [endpoint-component]] [duct.component.handler :refer [handler-component]] [duct.middleware.not-found :refer [wrap-not-found]] [meta-merge.core :refer...
a2acb62e043dbe7f8ffcfc889d02f31a5cecff3d7a7c833695bde0cea0b187bc
ciste/ciste
debug.clj
(ns ciste.debug "The ciste.debug namespace contains only a single macro: spy. Spy will log the code it wraps as well as a pretty-printed version of it's value. That value will then be returned. This allows you to easily monitor any bit of code by simply wrapping it with spy." (:require [clojure.pprint :refer ...
null
https://raw.githubusercontent.com/ciste/ciste/fac15456f9f00867c0073b7e55e5e8b5cd4a902d/src/ciste/debug.clj
clojure
(ns ciste.debug "The ciste.debug namespace contains only a single macro: spy. Spy will log the code it wraps as well as a pretty-printed version of it's value. That value will then be returned. This allows you to easily monitor any bit of code by simply wrapping it with spy." (:require [clojure.pprint :refer ...
d468c4d12d680f10eddff8cf0d7414fae12b914b90eeca0234d533b4ffba2b10
stassats/lisp-bots
variable.lisp
;;;; See the LICENSE file for licensing information. ;;; This is the main file to edit to customize lisppaste to your ;;; site. In particular, the main variables are at the top, which ;;; define how lisppaste knows which site it is running on, and how to generate links to itself . There are two ways to run lisppaste...
null
https://raw.githubusercontent.com/stassats/lisp-bots/09bfce724afd20c91a08acde8816be6faf5f54b2/variable.lisp
lisp
See the LICENSE file for licensing information. This is the main file to edit to customize lisppaste to your site. In particular, the main variables are at the top, which define how lisppaste knows which site it is running on, and how to naked, and behind a proxying apache. When running naked, you can leave much ...
generate links to itself . There are two ways to run lisppaste : it will listen for requests from Apache , but set * external - http - port * to 80 . Set * paste - site - name * to a hostname (in-package :lisppaste) (defparameter *internal-http-port* 8081 "Port lisppaste's araneida will listen on for reque...
bd880b02b97030727acf7ee9c917ed1ddb3c529d268019d6e924319b1f5ec869
melange-re/melange
inline_const.mli
val x : bool val f : string [@@bs.inline "hello"] val f1 : string [@@bs.inline {j|a|j}] val f2 : string [@@bs.inline {j|中文|j}] module N : sig val f3 : string [@@bs.inline {j|中文|j} ] end module N1 : functor () -> sig val f4 : string [@@bs.inline {j|中文|j}] val xx : float [@@bs.inline 3e...
null
https://raw.githubusercontent.com/melange-re/melange/246e6df78fe3b6cc124cb48e5a37fdffd99379ed/jscomp/test/inline_const.mli
ocaml
val f7 : bool [@@bs.inline 1L]
val x : bool val f : string [@@bs.inline "hello"] val f1 : string [@@bs.inline {j|a|j}] val f2 : string [@@bs.inline {j|中文|j}] module N : sig val f3 : string [@@bs.inline {j|中文|j} ] end module N1 : functor () -> sig val f4 : string [@@bs.inline {j|中文|j}] val xx : float [@@bs.inline 3e...
7dd3939790ed73c7620413dc234c8bf75c18a0caa0ea9052fd2d09fbeb4bbdf6
camsaul/toucan2
debug.clj
(ns toucan2.tools.debug (:require [toucan2.log :as log] [toucan2.pipeline :as pipeline])) (defn- print-result [message result] (log/pprint-doc (log/->Doc [(log/->Text message) result])) result) (defn -debug [thunk] (binding [pipeline/*build* (comp (partial print-result "\nBuilt:") ...
null
https://raw.githubusercontent.com/camsaul/toucan2/24834ca8fc79b0444529405c9c8ce60f0bb59804/src/toucan2/tools/debug.clj
clojure
(ns toucan2.tools.debug (:require [toucan2.log :as log] [toucan2.pipeline :as pipeline])) (defn- print-result [message result] (log/pprint-doc (log/->Doc [(log/->Text message) result])) result) (defn -debug [thunk] (binding [pipeline/*build* (comp (partial print-result "\nBuilt:") ...
7d340828d06499b938b34b8c99af1a2a5845fbb488abdaf5009a28bcb1a465bf
melhadad/fuf
test7.lisp
;;; -*- Mode:Lisp; Syntax:Common-Lisp; Package: FUG5 -*- ;;; ----------------------------------------------------------------------- ;;; File: test7.l ;;; Description: Test the ^~ notation to escape from a list and ~n notation. Author : Created : 9 Jun 1993 ;;; Modified: Package : ...
null
https://raw.githubusercontent.com/melhadad/fuf/57bd0e31afc6aaa03b85f45f4c7195af701508b8/examples/test7.lisp
lisp
-*- Mode:Lisp; Syntax:Common-Lisp; Package: FUG5 -*- ----------------------------------------------------------------------- File: test7.l Description: Test the ^~ notation to escape from a list and ~n notation. Modified: ----------------------------------------------------------------------- This ...
Author : Created : 9 Jun 1993 Package : FUG5 (in-package "FUG5") An fd extracted from Basketball domain . (defun input () (setf input '((cat gen-rule) (ents ~(((concept player) (name malone)) ((concept stat) (value 28pts)) ((concept player) (name stockton)) ((concep...
3ddc0214ed11179098cd75f085f2eb2d6ec5ce79a7c0f9372ef7312274f26db8
thheller/shadow-cljsjs
gd.cljs
(ns cljsjs.moment.locale.gd (:require ["moment/locale/gd"]))
null
https://raw.githubusercontent.com/thheller/shadow-cljsjs/eaf350d29d45adb85c0753dff77e276e7925a744/src/main/cljsjs/moment/locale/gd.cljs
clojure
(ns cljsjs.moment.locale.gd (:require ["moment/locale/gd"]))
628007e6048d48016eed869b0b3285ef062c62e47ab3b6e8003dea84242cd824
bobzhang/ocaml-book
scanner_ulex.ml
(********************************************************************************) Scanner.ml Copyright ( c ) 2010 ( ) This software is distributed under the terms of the GNU GPL version 2 . See LICENSE file for full license text . Copyright (c) 2010 Dario Teixeira () This software is distributed unde...
null
https://raw.githubusercontent.com/bobzhang/ocaml-book/09a575b0d1fedfce565ecb9a0ae9cf0df37fdc75/code/menhir/_build/scanner_ulex.ml
ocaml
****************************************************************************** ****************************************************************************** ****************************************************************************** * {2 Selectors} ***********************************************************...
Scanner.ml Copyright ( c ) 2010 ( ) This software is distributed under the terms of the GNU GPL version 2 . See LICENSE file for full license text . Copyright (c) 2010 Dario Teixeira () This software is distributed under the terms of the GNU GPL version 2. See LICENSE file for full license text. *) ...
9e324b855d1a9e387a1900acb7afae159805b74d501289f102ad9fa595ce91ed
saner/fun-os
ParserExec.hs
module Main where import System.Environment import Parser main :: IO() main = do args <- getArgs putStrLn (readBody (args !! 0))
null
https://raw.githubusercontent.com/saner/fun-os/4f0bf0d536401613717b312c67cb43c298dbdf9d/compiler/ParserExec.hs
haskell
module Main where import System.Environment import Parser main :: IO() main = do args <- getArgs putStrLn (readBody (args !! 0))
cb89f1aaa3bc9167c058cba984b0cd628588e80220e4d85740d1d2ebe48c3788
15Galan/asignatura-204
PriorityQueueFIFO.hs
------------------------------------------------------------------------------- -- Priority queue with FIFO behavior for equal priorities -- : cada cola SIFO - LIFO encapsula una cola SIFO , cuyos elementos se " enriquecen " con Un contador " global " es -- Data Structures . en Informática . UMA . ...
null
https://raw.githubusercontent.com/15Galan/asignatura-204/894f33ff8e0f52a75d8f9ff15155c656f1a8f771/Recursos/data.structures/haskell/DataStructures/PriorityQueue/PriorityQueueFIFO.hs
haskell
----------------------------------------------------------------------------- Priority queue with FIFO behavior for equal priorities ----------------------------------------------------------------------------- Showing a priority queue sifo-fifo priority queue sifo-fifo equality
: cada cola SIFO - LIFO encapsula una cola SIFO , cuyos elementos se " enriquecen " con Un contador " global " es Data Structures . en Informática . UMA . , , 2012 module DataStructures.PriorityQueue.PriorityQueueFIFO ( PQueue , Cont(..) , empty , isEmpty , first , dequeue , enq...
1ee00275a97b638836642f4ca22013b116ecc74ecc0c1a28dd079bba145c30ae
JiaeK/dream-dashboard
my_metrics.mli
type cpu_times = { user : int; nice : int; sys : int; idle : int; irq : int; total : int; } type loadavg = { avg_1 : float; avg_5 : float; avg_15 : float } type memory = { free : int; total : int } val init_metrics : ?interval:float -> unit -> unit (** Initialize the metrics reporting. The metrics wi...
null
https://raw.githubusercontent.com/JiaeK/dream-dashboard/ab28db52122503e713a0cd2b6390737f873a9b48/src/my_metrics.mli
ocaml
* Initialize the metrics reporting. The metrics will be periodically collected every [interval] seconds. * [loadavg_report ()] is the list of loadavg data points collected at the interval passed to [init_metrics]. * [memory_report ()] is the list of memory data points collected at the interval passed to ...
type cpu_times = { user : int; nice : int; sys : int; idle : int; irq : int; total : int; } type loadavg = { avg_1 : float; avg_5 : float; avg_15 : float } type memory = { free : int; total : int } val init_metrics : ?interval:float -> unit -> unit val loadavg_report : unit -> loadavg list val memory_re...
1036bede994cc70d2e05773cb942884462673128e325b86d84dcdde296fc62d3
SanderSpies/ocaml-gist
sturgeon_stub.ml
type t = Server type shell = Shell let start _ = Server let stop Server = () type flag = [ `Editable | `Clicked | `Clickable | `Invisible ] type cursor = Cursor let null = Cursor module Cursor = struct let text Cursor _ = () let printf Cursor = Printf.ksprintf ignore let is_closed Cursor = true let link Curs...
null
https://raw.githubusercontent.com/SanderSpies/ocaml-gist/7dc229aebdf51310e8c7dae12df0cb55b5de5a32/ocaml_webworker/merlin_lite/src/sturgeon_null/sturgeon_stub.ml
ocaml
type t = Server type shell = Shell let start _ = Server let stop Server = () type flag = [ `Editable | `Clicked | `Clickable | `Invisible ] type cursor = Cursor let null = Cursor module Cursor = struct let text Cursor _ = () let printf Cursor = Printf.ksprintf ignore let is_closed Cursor = true let link Curs...
65edcbbda1568fd541021fa0aa21596677b5deddc1798f07ece3130fd55689c3
ocsigen/ocaml-eliom
plugin_high_arity.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocsigen/ocaml-eliom/497c6707f477cb3086dc6d8124384e74a8c379ae/testsuite/tests/lib-dynlink-native/plugin_high_arity.ml
ocaml
************************************************************************ OCaml ...
, LexiFi Copyright 2007 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the let f x x x x x x x x x x x x x = () let g x = f x x x x x x x x let () = Api.reg_mod "HA"
8f9ed6ab77ebb63d722169bfc88193ff64e2cd802fd796482628350781ca8874
mwand/eopl3
interp.scm
(module interp (lib "eopl.ss" "eopl") ;; interpreter for the MUTABLE-PAIRS language (require "drscheme-init.scm") (require "lang.scm") (require "data-structures.scm") (require "environments.scm") (require "store.scm") (require "pairvals.scm") (provide value-of-program value-of instrument-let instr...
null
https://raw.githubusercontent.com/mwand/eopl3/b50e015be7f021d94c1af5f0e3a05d40dd2b0cbf/chapter4/mutable-pairs/interp.scm
scheme
interpreter for the MUTABLE-PAIRS language switches for instrument-let ;;;;;;;;;;;;;;;; say (instrument-let #t) to turn instrumentation on. (instrument-let #f) to turn it off again. the interpreter ;;;;;;;;;;;;;;;; (let-exp (id rhs body) (value-of body (extend-env id...
(module interp (lib "eopl.ss" "eopl") (require "drscheme-init.scm") (require "lang.scm") (require "data-structures.scm") (require "environments.scm") (require "store.scm") (require "pairvals.scm") (provide value-of-program value-of instrument-let instrument-newref) (define instrument-let (make-p...
5d02013e912b74059d861b9600f82a8c535d2100ae42ad59c207bf33e1c73331
onedata/op-worker
detached_datasets.erl
%%%------------------------------------------------------------------- @author ( C ) 2021 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%------------------------------------------------------------------- %%% @doc %%% Module which implements datasets s...
null
https://raw.githubusercontent.com/onedata/op-worker/b906c994c1bfefa28696399db15b3e9a3263c0f7/src/modules/datastore/models/dataset/detached_datasets.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- @doc Module which implements datasets structure for storing detached dataset entries. Under the hood it uses datasets_structure module. @end --------------------------------...
@author ( C ) 2021 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . -module(detached_datasets). -author("Jakub Kudzia"). -include("modules/dataset/dataset.hrl"). -include("modules/fslogic/fslogic_common.hrl"). -include_lib("ctool/include/errors.hrl"). -export([add...
ee812d2be70e59b2a74c5f45dd670fca10c1f94f6ddc9471d6d80fa3a5feb6f2
clash-lang/clash-compiler
Resize3.hs
module Resize3 where import Clash.Prelude import Clash.Explicit.Testbench topEntity :: Signed 8 topEntity = unpack (resize (pack (-2 :: Signed 4))) {-# NOINLINE topEntity #-} testBench :: Signal System Bool testBench = done where expectedOutput = outputVerifier' clk rst ( 14 ...
null
https://raw.githubusercontent.com/clash-lang/clash-compiler/8e461a910f2f37c900705a0847a9b533bce4d2ea/tests/shouldwork/Numbers/Resize3.hs
haskell
# NOINLINE topEntity #
module Resize3 where import Clash.Prelude import Clash.Explicit.Testbench topEntity :: Signed 8 topEntity = unpack (resize (pack (-2 :: Signed 4))) testBench :: Signal System Bool testBench = done where expectedOutput = outputVerifier' clk rst ( 14 :> $(lift (unpack (...
8e6802da0cd4a91178ddd4557bc037d17541b6f31a3569796adbd956dbb557c7
MaartenFaddegon/Hoed
Value.hs
# LANGUAGE DeriveGeneric # module Value(Value(..), Op1(..), Op2(..), uno, duo) where import Debug.Hoed.Pure import Test.QuickCheck import Control.Monad(liftM) data Value = Num Int | Log Bool | Wrong deriving (Eq, Show,Generic) instance Observable Value instance Arbitrary Value where arbitrary = oneof [lift...
null
https://raw.githubusercontent.com/MaartenFaddegon/Hoed/8769d69e309928aab439b22bc3f3dbf5452acc77/examples/afp02Exercises/Compiler__with_properties/Value.hs
haskell
# LANGUAGE DeriveGeneric # module Value(Value(..), Op1(..), Op2(..), uno, duo) where import Debug.Hoed.Pure import Test.QuickCheck import Control.Monad(liftM) data Value = Num Int | Log Bool | Wrong deriving (Eq, Show,Generic) instance Observable Value instance Arbitrary Value where arbitrary = oneof [lift...
982e1e260db430390301ec5d4aa312ce3054c36c52383e9ed25c6bb743732b1b
fulcrologic/fulcro-garden-css
localized_dom.clj
(ns com.fulcrologic.fulcro-css.localized-dom (:refer-clojure :exclude [map meta time use set symbol filter]) (:require [com.fulcrologic.fulcro.dom :as adom] com.fulcrologic.fulcro.dom-common com.fulcrologic.fulcro-css.localized-dom-common [com.fulcrologic.fulcro.algorithms.do-not-use :as util] [...
null
https://raw.githubusercontent.com/fulcrologic/fulcro-garden-css/92c34218d2d1fc2c575978d8d52e31e6dde615aa/src/main/com/fulcrologic/fulcro_css/localized_dom.clj
clojure
attrs omitted == nil also used for MISSING props pure children
(ns com.fulcrologic.fulcro-css.localized-dom (:refer-clojure :exclude [map meta time use set symbol filter]) (:require [com.fulcrologic.fulcro.dom :as adom] com.fulcrologic.fulcro.dom-common com.fulcrologic.fulcro-css.localized-dom-common [com.fulcrologic.fulcro.algorithms.do-not-use :as util] [...
42b44e0cf96e837628e389c1cf06996f8fc0a0aa0cfbd825069b2cc543909ba3
xh4/web-toolkit
example-sexp.lisp
S - Expression parser from “ esrap / example - sexp.lisp ” ported to MaxPC . (defpackage maxpc.example-sexp (:use :cl :maxpc :maxpc.char :maxpc.digit) (:export :=sexp)) (in-package :maxpc.example-sexp) ;;; A semantic predicate for filtering out double quotes. (defun not-doublequote (char) (not (eql #\" char...
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/vendor/maxpc-20171130-git/example-sexp.lisp
lisp
A semantic predicate for filtering out double quotes. Utility rules. Here we go: an S-expression is either a list or an atom, with possibly leading whitespace. STRING, we know can accept all sequences of alphanumerics -- we already know it isn't an integer. Recursive parsers hack.
S - Expression parser from “ esrap / example - sexp.lisp ” ported to MaxPC . (defpackage maxpc.example-sexp (:use :cl :maxpc :maxpc.char :maxpc.digit) (:export :=sexp)) (in-package :maxpc.example-sexp) (defun not-doublequote (char) (not (eql #\" char))) (defun not-integer (string) (when (find-if-not #'di...
56a34d8c9e3161f9b2e3f151d83bfe8e5221ef0ff3c99c4bcce5c3065a91e592
gafiatulin/codewars
Sudoku.hs
-- Sudoku Solver -- module Sudoku where import Data.List.Split (chunksOf) itop :: Int -> (Int, Int) itop i = (i - 9 * (i `div` 9), i `div` 9) ptoi :: (Int, Int) -> Int ptoi (x, y) = x + y * 9 columnAt :: [Int] -> Int -> [Int] columnAt s = (\x -> map (\y -> s !! ptoi (x, y)) [0..8]) . fst . itop rowAt :: [Int] ->...
null
https://raw.githubusercontent.com/gafiatulin/codewars/535db608333e854be93ecfc165686a2162264fef/src/3%20kyu/Sudoku.hs
haskell
Sudoku Solver
module Sudoku where import Data.List.Split (chunksOf) itop :: Int -> (Int, Int) itop i = (i - 9 * (i `div` 9), i `div` 9) ptoi :: (Int, Int) -> Int ptoi (x, y) = x + y * 9 columnAt :: [Int] -> Int -> [Int] columnAt s = (\x -> map (\y -> s !! ptoi (x, y)) [0..8]) . fst . itop rowAt :: [Int] -> Int -> [Int] rowAt s...
7013fda2ad4f1b1f60d095ef9d698829b29747bf0f7c4333efcc8ae984b1005a
nodename/edge-algebra
time_machine.cljs
(ns view.time-machine (:require [edge-algebra.state.app-state :refer [app-state initial-state]] [cljs.core.async :refer [<!]]) (:require-macros [cljs.core.async.macros :refer [go]])) Mostly copied from goya . ;; ============================================================================= Credits to...
null
https://raw.githubusercontent.com/nodename/edge-algebra/26ad60f4b7a1f4b6979456437433f797054168d8/src/cljs/view/time_machine.cljs
clojure
============================================================================= ============================================================================= When starting up at the end of a run, step forward: I have a next state to continue to; keep going: otherwise, request the clock to stop, swallow a final cl...
(ns view.time-machine (:require [edge-algebra.state.app-state :refer [app-state initial-state]] [cljs.core.async :refer [<!]]) (:require-macros [cljs.core.async.macros :refer [go]])) Mostly copied from goya . Credits to Time Travel blog post . (def app-history (atom [@app-state])) (def app-futur...
d2a64f24e4bb2a4ea29d86674e7a39ac4911964ccb4ebe2cacb364e388f1a66a
cpeikert/Lol
TestLolRepaMain.hs
| Module : TestLolRepaMain Description : Main driver for lol tests with RT . Copyright : ( c ) , 2011 - 2017 , 2011 - 2017 License : GPL-3 Maintainer : Stability : experimental Portability : POSIX Main driver for lol tests with RT . Module : TestLolRep...
null
https://raw.githubusercontent.com/cpeikert/Lol/4416ac4f03b0bff08cb1115c72a45eed1fa48ec3/lol-repa/tests/TestLolRepaMain.hs
haskell
| Module : TestLolRepaMain Description : Main driver for lol tests with RT . Copyright : ( c ) , 2011 - 2017 , 2011 - 2017 License : GPL-3 Maintainer : Stability : experimental Portability : POSIX Main driver for lol tests with RT . Module : TestLolRep...
79a174bd7c919c1a0452ba5ce235f4f59ada9ab641d12c31f80c1e988fcd8ce3
manuel-serrano/bigloo
char.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / runtime / Ieee / char.scm * / ;* */ * Author : * / * Creation ...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/eb650ed4429155f795a32465e009706bbf1b8d74/runtime/Ieee/char.scm
scheme
*=====================================================================*/ * */ * ------------------------------------------------------------- */ *=====================================================================*/ *---------------------------...
* serrano / prgm / project / bigloo / runtime / Ieee / char.scm * / * Author : * / * Creation : Tue Jul 21 10:09:50 1992 * / * Last change : Fri Mar 11 17:38:53 2016 ( serrano ) * / * 6.6 ...
87ff2abb7b60a6daf8662df38e8bd32486145fad71784b75f4a7094208ca6495
penpot/penpot
v1_6.cljs
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. ;; ;; Copyright (c) KALEIDOS INC (ns app.main.ui.releases.v1-6 (:require [app.main.ui.releases.common :as c] [rumext.v2 :as mf])) (def...
null
https://raw.githubusercontent.com/penpot/penpot/7303d311d5f23d515fa3fcdc6cd13cf7f429d1fe/frontend/src/app/main/ui/releases/v1_6.cljs
clojure
Copyright (c) KALEIDOS INC
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. (ns app.main.ui.releases.v1-6 (:require [app.main.ui.releases.common :as c] [rumext.v2 :as mf])) (defmethod c/render-release-notes "1....
376a943ed2e64845c70d5afb825327270acd876ca6d85736578ee3bf6c7c2a0d
gogins/csound-extended-nudruz
tonnetz.lisp
;; TONNETZ.LISP building parsimonious tonnetz for use with Common Music see ( JMT 41:1 ) etc . , 2004 ;; ;; www.wordecho.org ; (load "nudruz.lisp") (in-package :cm) ;;(use-package :screamer) ;; SOME BASIC UTILITIES May 2005 : " inverse - idx " moved to nudruz.lisp April 2007 : " SIS " moved to nudruz....
null
https://raw.githubusercontent.com/gogins/csound-extended-nudruz/4551d54890f4adbadc5db8f46cc24af8e92fb9e9/sources/tonnetz.lisp
lisp
TONNETZ.LISP www.wordecho.org (load "nudruz.lisp") (use-package :screamer) SOME BASIC UTILITIES [note: pitches are expected & returned in the 'correct order'] [note: pitches are expected & returned in the 'correct order'] [note: pitches are expected & returned in the 'correct order'] [note: pitches are expect...
building parsimonious tonnetz for use with Common Music see ( JMT 41:1 ) etc . , 2004 (in-package :cm) May 2005 : " inverse - idx " moved to nudruz.lisp April 2007 : " SIS " moved to nudruz.lisp TZWORTHY -- tests whether tz can apply to a chord at all (defun tzworthy (chd) (eql 3 (length (...
9a9e31efe12dbba75812c4f1fe02f2d01a1be045d958c5193019945b01da2d01
JHU-PL-Lab/jaylang
global_config.ml
(* this module provide shared utilities by commandline and testing *) open Core exception GenComplete type ddpa_c_stk = C_0ddpa | C_1ddpa | C_2ddpa | C_kddpa of int and engine = E_dbmc | E_ddse and mode = Dbmc_search | Dbmc_check of int option list | Sato and t = { (* basic *) target : Id.t; filename : Filenam...
null
https://raw.githubusercontent.com/JHU-PL-Lab/jaylang/4bdb74ebeb207e5cea4368bc8d4aa27f03c49cf7/src/dj-common/global_config.ml
ocaml
this module provide shared utilities by commandline and testing basic mode analysis tuning testing logger debug
open Core exception GenComplete type ddpa_c_stk = C_0ddpa | C_1ddpa | C_2ddpa | C_kddpa of int and engine = E_dbmc | E_ddse and mode = Dbmc_search | Dbmc_check of int option list | Sato and t = { target : Id.t; filename : Filename.t; [@printer String.pp] engine : engine; is_instrumented : bool; mode : mode...
e3e5b61a5093f776acfc7fb510a37540df49799227ae43752cace86936c7bb90
mukul-rathi/bolt
bad_inheritance.ml
open Core open Print_typed_ast let%expect_test "Class inheriting from non-existent superclass" = print_typed_ast " class Foo extends Baz { capability linear Bar; var int f : Bar; } void main(){} " ; [%expect {| Type error: superclass Baz for class Foo doesn't exist |}] let%ex...
null
https://raw.githubusercontent.com/mukul-rathi/bolt/1faf19d698852fdb6af2ee005a5f036ee1c76503/tests/frontend/expect/typing/bad_inheritance.ml
ocaml
open Core open Print_typed_ast let%expect_test "Class inheriting from non-existent superclass" = print_typed_ast " class Foo extends Baz { capability linear Bar; var int f : Bar; } void main(){} " ; [%expect {| Type error: superclass Baz for class Foo doesn't exist |}] let%ex...
f7b5e3ac07b1bc04c0f4d2ca3523a37fbe4df26fccbcc5fdcebc09a7cc4abe01
jjtolton/libapl-clj
ops.clj
(ns libapl-clj.impl.ops (:require tech.v3.datatype.jna [tech.v3.datatype :as dtype] [tech.v3.tensor :as tensor] [libapl-clj.impl.jna :as jna :reload true] [libapl-clj.impl.api :as api] [libapl-clj.impl.pointer :as p] libapl-clj.impl.protocols ...
null
https://raw.githubusercontent.com/jjtolton/libapl-clj/01e2bf7e0d20abd9f8f36c2d9fc829dd4082d455/src/libapl_clj/impl/ops.clj
clojure
todo -- reflection, gross. This could benefit from a protocol and type extension needs to have reflection removed char pointer, probably a vector or char-vector todo CELLREF -- never encountered this, not sure what it is int float, double, or real part of complex number complex number todo -- remove reflecti...
(ns libapl-clj.impl.ops (:require tech.v3.datatype.jna [tech.v3.datatype :as dtype] [tech.v3.tensor :as tensor] [libapl-clj.impl.jna :as jna :reload true] [libapl-clj.impl.api :as api] [libapl-clj.impl.pointer :as p] libapl-clj.impl.protocols ...
7461d4e5cd5d95ec08fc78a615222bb3443d4401aac0e3cd8850e31c4150f781
mirage/mirage
argv.mli
* Copyright ( c ) 2013 - 2020 < > * Copyright ( c ) 2013 - 2020 Anil Madhavapeddy < > * Copyright ( c ) 2015 - 2020 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice an...
null
https://raw.githubusercontent.com/mirage/mirage/7e36d793ad8bd34beb51bbba62a39aa035f7e297/lib/functoria/argv.mli
ocaml
* Device representing the command line. * The type for command-line arguments, similar to the usual [Sys.argv]. * [argv] is a value representing {!argv} module types. * [sys_argv] is a device providing command-line arguments by using {!Sys.argv}.
* Copyright ( c ) 2013 - 2020 < > * Copyright ( c ) 2013 - 2020 Anil Madhavapeddy < > * Copyright ( c ) 2015 - 2020 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice an...
2b7ea04b9b7adabb35a98696efe251524e88147dbfd04e78d18469b1f63f1d19
typelead/etlas
Variable.hs
module Distribution.Solver.Types.Variable where import Distribution.Solver.Types.OptionalStanza import Distribution.PackageDescription (FlagName) -- | Variables used by the dependency solver. This type is similar to the internal ' Var ' type , except that flags and stanzas are associated with -- package names inst...
null
https://raw.githubusercontent.com/typelead/etlas/bbd7c558169e1fda086e759e1a6f8c8ca2807583/etlas/Distribution/Solver/Types/Variable.hs
haskell
| Variables used by the dependency solver. This type is similar to the package names instead of package instances.
module Distribution.Solver.Types.Variable where import Distribution.Solver.Types.OptionalStanza import Distribution.PackageDescription (FlagName) internal ' Var ' type , except that flags and stanzas are associated with data Variable qpn = PackageVar qpn | FlagVar qpn FlagName | StanzaVar qpn OptionalStanz...
9ee667cf67e1ae12a272c7806ee0cb1f521099954d3c5aaceea2283c4a638fca
strojure/ring-undertow
ring_request.clj
(ns benchmark.ring-request (:require [immutant.web.internal.ring :as immutant] [immutant.web.internal.undertow] [java-http-clj.core :as http] [ring.adapter.undertow.request :as luminus] [strojure.ring-undertow.impl.request :as impl] [strojure.undertow.api.ty...
null
https://raw.githubusercontent.com/strojure/ring-undertow/42b3c7b76369cd7ab239cfac9c576283f4fe5d19/doc/benchmark/ring_request.clj
clojure
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, Immutant is fast but it returns java.util.Map which is converted on change. ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,...
(ns benchmark.ring-request (:require [immutant.web.internal.ring :as immutant] [immutant.web.internal.undertow] [java-http-clj.core :as http] [ring.adapter.undertow.request :as luminus] [strojure.ring-undertow.impl.request :as impl] [strojure.undertow.api.ty...
c35a8b337c70aeb8ee48bd897c986141d63f09e0bf9bb7d6c9861fce3b20ef1d
kronkltd/jiksnu
access_token_transforms.clj
(ns jiksnu.transforms.access-token-transforms (:require [jiksnu.util :as util])) (defn set-_id [params] (if (:_id params) params (let [token (util/generate-token 16)] (assoc params :_id token))))
null
https://raw.githubusercontent.com/kronkltd/jiksnu/8c91e9b1fddcc0224b028e573f7c3ca2f227e516/src/jiksnu/transforms/access_token_transforms.clj
clojure
(ns jiksnu.transforms.access-token-transforms (:require [jiksnu.util :as util])) (defn set-_id [params] (if (:_id params) params (let [token (util/generate-token 16)] (assoc params :_id token))))
cd5e924882211069c62cca1d46aa0ae4b42cafaf1556714506744ff0f27972a9
janestreet/bonsai
selection_status.mli
open! Core type t = | Selected | Unselected [@@deriving compare, sexp, equal] val toggle : t -> t
null
https://raw.githubusercontent.com/janestreet/bonsai/782fecd000a1f97b143a3f24b76efec96e36a398/web_ui/multi_select/src/selection_status.mli
ocaml
open! Core type t = | Selected | Unselected [@@deriving compare, sexp, equal] val toggle : t -> t
688037eab24323fcd8c9122714fdbad2ce5aeb6ac197e6347316b1975916ac28
spechub/Hets
BoolBasic.hs
| Module : ./CSL / BoolBasic.hs Description : Some basic types for simple boolean representations Copyright : ( c ) , DFKI Bremen 2010 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : experimental Portability : portable This module defines some...
null
https://raw.githubusercontent.com/spechub/Hets/af7b628a75aab0d510b8ae7f067a5c9bc48d0f9e/CSL/BoolBasic.hs
haskell
-------------------------------------------------------------------- -------------------------------------------------------------------- -------------------------------------------------------------------- -} -------------------------------------------------------------------- ---------------------------------------...
| Module : ./CSL / BoolBasic.hs Description : Some basic types for simple boolean representations Copyright : ( c ) , DFKI Bremen 2010 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : experimental Portability : portable This module defines some...
543131865092305eae56d17c01976a142dbad980a4293f6056019478e1da56c0
avh4/elm-format
BinaryOperatorPrecedenceTest.hs
# OPTIONS_GHC -Wno - type - defaults # # LANGUAGE FlexibleContexts # module ElmFormat.AST.BinaryOperatorPrecedenceTest where import Prelude hiding (or) import Test.Hspec import qualified ElmFormat.AST.BinaryOperatorPrecedence as BinaryOperatorPrecedence import ElmFormat.AST.BinaryOperatorPrecedence (Tree(..), Preceden...
null
https://raw.githubusercontent.com/avh4/elm-format/c255a9fb400e8553930f5f08ab9c473712ffe63f/elm-format-lib/test/ElmFormat/AST/BinaryOperatorPrecedenceTest.hs
haskell
For testing
# OPTIONS_GHC -Wno - type - defaults # # LANGUAGE FlexibleContexts # module ElmFormat.AST.BinaryOperatorPrecedenceTest where import Prelude hiding (or) import Test.Hspec import qualified ElmFormat.AST.BinaryOperatorPrecedence as BinaryOperatorPrecedence import ElmFormat.AST.BinaryOperatorPrecedence (Tree(..), Preceden...
f64cd3dc05f886ec289ee2c961c37260bd7e4946388bba8bf13de3cb3dc2fbef
dgiot/dgiot
emqx_access_control_SUITE.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2019 - 2022 EMQ Technologies Co. , Ltd. All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy o...
null
https://raw.githubusercontent.com/dgiot/dgiot/c601555e45f38d02aafc308b18a9e28c543b6f2c/test/emqx_access_control_SUITE.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2019 - 2022 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(emqx_access_control_SUITE). -compile(export_all). -compile(nowarn_export_all). -includ...
f3b5fc082585c3ac1c80ace79f32612ceb6f6574ac766a4599d054c9d6f948bf
mishun/tangles
Test.hs
{-# LANGUAGE RankNTypes #-} module Math.Topology.KnotTh.Tabulation.Test ( test ) where import Control.Arrow ((&&&)) import Control.Monad (when) import Test.Framework (Test, testGroup) import Test.Framework.Providers.HUnit (testCase) import Math.Topology.KnotTh.Algebra.Dihedral.Dn import Math.Topology.KnotTh.Ta...
null
https://raw.githubusercontent.com/mishun/tangles/9af39dd48e3dcc5e3944f8d060c8769ff3d81d02/test/Math/Topology/KnotTh/Tabulation/Test.hs
haskell
# LANGUAGE RankNTypes #
module Math.Topology.KnotTh.Tabulation.Test ( test ) where import Control.Arrow ((&&&)) import Control.Monad (when) import Test.Framework (Test, testGroup) import Test.Framework.Providers.HUnit (testCase) import Math.Topology.KnotTh.Algebra.Dihedral.Dn import Math.Topology.KnotTh.Tangle import Math.Topology.Kn...
ba41111ce20fd4da00d92ed0908d1df1a565b5b79c10e704347b78e5c766ab14
transient-haskell/transient-universe
api.hs
#!/usr/bin/env execthirdlinedocker.sh info : use sed -i ' s/\r//g ' file if report " /usr / bin / env : ‘ execthirdlinedocker.sh\r ’ : No such file or directory " -- runghc -i../transient/src -i../transient-universe/src -i../axiom/src tests/api.hs -p start/localhost/8000 {- execute as ./tests/api.hs -p star...
null
https://raw.githubusercontent.com/transient-haskell/transient-universe/7cfbbdfa8eefbea79f48ccb69bc1823ba9abc7ea/tests/api.hs
haskell
runghc -i../transient/src -i../transient-universe/src -i../axiom/src tests/api.hs -p start/localhost/8000 execute as ./tests/api.hs -p start/<docker ip>/<port> invoque: curl http://<docker ip>:<port>/api to get some examples
#!/usr/bin/env execthirdlinedocker.sh info : use sed -i ' s/\r//g ' file if report " /usr / bin / env : ‘ execthirdlinedocker.sh\r ’ : No such file or directory " import Transient.Internals import Transient.Move import Transient.Move.Utils import Transient.Indeterminism import Control.Applicative import Transient...
675057822cec3ff40e8f63803c9a7b7525f3dc84e33c2f38a1c15c4c8c98ec76
OCamlPro/ocamlexc
rootwindow.ml
(***********************************************************************) (* *) (* Ocamlexc *) (* *) , projet Cris...
null
https://raw.githubusercontent.com/OCamlPro/ocamlexc/a9ddcfff6f376f5dd6c5fcc3211b8f89e36f79fe/interface/rootwindow.ml
ocaml
********************************************************************* Ocamlexc ...
, projet Cristal , INRIA Rocquencourt Copyright 1998 Institut National de Recherche en Informatique et Automatique . Distributed only by permission . open Tk ;; open Format ;; let search_string_bnd text_w = let requester_w = Toplevel.create text_w [] in Wm.t...
838dffef82962ca935283518de36180951a762a388e78ea049a67231fa63e236
montyly/gueb
graph.ml
open Absenvgenerique open Ir open Stubfunc open Program_piqi open Uafgenerique module My_Graph (Absenv_v : AbsEnvGenerique) (Ir_a : IR) (Stubfunc_a : Stubfunc) (Uaf_a : UafGenerique ) = struct exception NOT_RET of (Absenv_v.absenv)*bool;; exception NOT_RET_NOT_LEAF;; exception Timeout_unloop;; except...
null
https://raw.githubusercontent.com/montyly/gueb/45f496a5a1e8e908e562928762ece304c2408c3a/src/graph.ml
ocaml
use when copy during unrolling node value analysis done used to know if is leaf do not decrease inside states do not increase other states * Function for loop manipulation * Printf.printf "No entry\n" ; * Kosaraju * Remove path from stack Dfs see -sort-in-ocaml TODO : boom if lenght=-1!! create stack df...
open Absenvgenerique open Ir open Stubfunc open Program_piqi open Uafgenerique module My_Graph (Absenv_v : AbsEnvGenerique) (Ir_a : IR) (Stubfunc_a : Stubfunc) (Uaf_a : UafGenerique ) = struct exception NOT_RET of (Absenv_v.absenv)*bool;; exception NOT_RET_NOT_LEAF;; exception Timeout_unloop;; except...
870910fba02522a4e7f083fbfe30424894f7b49cffeaf7da567d47f9560101f1
metaphorm/international-scheme
template.scm
Copyright 2020 Metaphorm Solutions , Inc. ;;; 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, softwar...
null
https://raw.githubusercontent.com/metaphorm/international-scheme/e4e30e65533731e6c417c43454090733d07851e3/template.scm
scheme
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permiss...
Copyright 2020 Metaphorm Solutions , Inc. distributed under the License is distributed on an " AS IS " BASIS , (load "international.scm") (translate-syntax-names and todo assert todo begin todo buffer-mode todo buffer-mode? todo case todo (else todo) case-lambda todo cond todo (else todo) defin...
5aa9aeecf06e96d019c980f1c2372486a98c51ae61ffc3a1e79abce6c313949c
ardumont/haskell-lab
SimpleIO.hs
module SimpleIO where import System.IO import Control.Concurrent sequentialIO :: IO () sequentialIO = do mapM_ (hPutStr stdout) ["hello", " this", " will", " be", " outputed", " sequentially.\n"] hPutStr stdout "Good bye!\n" -- *SimpleIO> sequentialIO -- hello this will be outputed sequentially. concurrentI...
null
https://raw.githubusercontent.com/ardumont/haskell-lab/6d1f130300f33dc982c9a6b5d0b6a63af2c2666d/src/concurrency/SimpleIO.hs
haskell
*SimpleIO> sequentialIO hello this will be outputed sequentially. *SimpleIO> concurrentIO
module SimpleIO where import System.IO import Control.Concurrent sequentialIO :: IO () sequentialIO = do mapM_ (hPutStr stdout) ["hello", " this", " will", " be", " outputed", " sequentially.\n"] hPutStr stdout "Good bye!\n" concurrentIO :: IO () concurrentIO = do forkIO sequentialIO hPutStr stdout "...
61b731d6893aa6e1a8975d1b2dc509aa8f4217ddc433835e95d3a5fcc9f26ca2
nikita-volkov/postgresql-binary
BuilderPrim.hs
module PostgreSQL.Binary.BuilderPrim where import qualified Data.ByteString.Builder.Prim as A import PostgreSQL.Binary.Prelude # INLINE nullByteIgnoringBoundedPrim # nullByteIgnoringBoundedPrim :: A.BoundedPrim Word8 nullByteIgnoringBoundedPrim = A.condB (== 0) A.emptyB (A.liftFixedToBounded A.word8)
null
https://raw.githubusercontent.com/nikita-volkov/postgresql-binary/406cb9a69890eaa92f5aa69092c93e95fc1e0c89/library/PostgreSQL/Binary/BuilderPrim.hs
haskell
module PostgreSQL.Binary.BuilderPrim where import qualified Data.ByteString.Builder.Prim as A import PostgreSQL.Binary.Prelude # INLINE nullByteIgnoringBoundedPrim # nullByteIgnoringBoundedPrim :: A.BoundedPrim Word8 nullByteIgnoringBoundedPrim = A.condB (== 0) A.emptyB (A.liftFixedToBounded A.word8)
a51c96456909ce7a29624ab9f35ed710be453552bd1693a5516d2530ae674998
Tim-ats-d/Basic
errKind.mli
type t = | IllegalConstant | IllegalLineNumber | IllegalVariable | EndIsNotLast | NoEndInstruction | NoData | UndefinedNumber | ProgramTooLong | TooMuchData | TooMuchLabels | SyntaxError exception Parse_error of t val to_result : t -> ('a, t) result val show : t -> string
null
https://raw.githubusercontent.com/Tim-ats-d/Basic/4163675dede7409306c34f1d5639280a1aac471c/src/errKind.mli
ocaml
type t = | IllegalConstant | IllegalLineNumber | IllegalVariable | EndIsNotLast | NoEndInstruction | NoData | UndefinedNumber | ProgramTooLong | TooMuchData | TooMuchLabels | SyntaxError exception Parse_error of t val to_result : t -> ('a, t) result val show : t -> string