_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
2073f1e5fe8b3b7b584bcc059cf1432ea3a8da3450ca87199b6ccea784803440
miraj-project/miraj
predicates.cljs
(ns miraj.http.predicates) (defn informational? "Check whether the response type is Informational (status code is between 100 and 199)." [response] {:pre (map? response)} (<= 100 (:status response) 199)) (defn success? "Check whether the response type is Success (status code is between 200 and 299)." ...
null
https://raw.githubusercontent.com/miraj-project/miraj/bf6f7d4d1c383ac9294dcdef2ad48b3863b6d84f/src/protocol_engine/http/predicates.cljs
clojure
(ns miraj.http.predicates) (defn informational? "Check whether the response type is Informational (status code is between 100 and 199)." [response] {:pre (map? response)} (<= 100 (:status response) 199)) (defn success? "Check whether the response type is Success (status code is between 200 and 299)." ...
d9bf7c871f9c75492775126f9317cee0d7ecadc296c5cff4e7e72fbfd1f09827
nick8325/quickspec
Bools.hs
-- Testing functions on booleans. "not x" is used as a condition. import QuickSpec main = quickSpec [ predicate "not" not, con "True" True, con "False" False, con "||" (||), con "&&" (&&) ]
null
https://raw.githubusercontent.com/nick8325/quickspec/cb61f719d3d667674431867037ff44dec22ca4f9/examples/Bools.hs
haskell
Testing functions on booleans. "not x" is used as a condition.
import QuickSpec main = quickSpec [ predicate "not" not, con "True" True, con "False" False, con "||" (||), con "&&" (&&) ]
6754cc5b70418171196e8950c1453725e27b0bb24c945fb4a92cf68b495aa0ee
patrickgombert/erlang-koans
about_dicts_test.erl
-module(about_dicts_test). -include_lib("eunit/include/eunit.hrl"). dictionaries_give_the_definition_of_a_key_test() -> ?assert(about_dicts:dictionaries_give_the_definition_of_a_key()). append_assumes_something_test() -> ?assert(about_dicts:append_assumes_something()). fetching_what_is_not_available_is_troub...
null
https://raw.githubusercontent.com/patrickgombert/erlang-koans/d80032d99b6ee3537e585ea02b743fe681fad8cf/test/about_dicts_test.erl
erlang
-module(about_dicts_test). -include_lib("eunit/include/eunit.hrl"). dictionaries_give_the_definition_of_a_key_test() -> ?assert(about_dicts:dictionaries_give_the_definition_of_a_key()). append_assumes_something_test() -> ?assert(about_dicts:append_assumes_something()). fetching_what_is_not_available_is_troub...
761825308ec6d8c8e06981a37754ecd4725cc105ace31849b3f6bb4936f6cdc0
dyoo/whalesong
compile-time.rkt
#lang s-exp "../lang/kernel.rkt" Macros for recording the definition of resources in a program . (require (for-syntax racket/base racket/path racket/port syntax/parse "coerse-content-bytes.rkt" "munge-path.rkt" ...
null
https://raw.githubusercontent.com/dyoo/whalesong/636e0b4e399e4523136ab45ef4cd1f5a84e88cdc/whalesong/resource/compile-time.rkt
racket
file-resource: Compile time code: Run time code
#lang s-exp "../lang/kernel.rkt" Macros for recording the definition of resources in a program . (require (for-syntax racket/base racket/path racket/port syntax/parse "coerse-content-bytes.rkt" "munge-path.rkt" ...
1d54b10921830f237c6aefa0a64ef809f6a99f681b019381b34bb3fdc4cd5026
JustusAdam/language-haskell
QuasiQuotes.hs
SYNTAX TEST " source.haskell " " Quasi quotes " [e| A + B + C |] ^ ^ keyword.operator.quasi-quotation.begin.haskell -- ^ entity.name.quasi-quoter.haskell -- ^ ^ ^ constant.other.haskell -- ^ ^ keyword.operator.infix.haskell -- ^^ keyword.operator.quasi-quotation.end.haskell...
null
https://raw.githubusercontent.com/JustusAdam/language-haskell/2363b56239e4aed70833606c8a4ddb90da79c00a/test/tests/QuasiQuotes.hs
haskell
^ entity.name.quasi-quoter.haskell ^ ^ ^ constant.other.haskell ^ ^ keyword.operator.infix.haskell ^^ keyword.operator.quasi-quotation.end.haskell ^ ^ ^ constant.other.haskell ^ ^ keyword.operator.infix.haskell ^^^ keyword.operator.quasi-quotati...
SYNTAX TEST " source.haskell " " Quasi quotes " [e| A + B + C |] ^ ^ keyword.operator.quasi-quotation.begin.haskell ^^^^^^^^^^^^^^^^ meta.quasi-quotation.haskell [|| A + B + C ||] ^^^ keyword.operator.quasi-quotation.begin.haskell ^^^^^^^^^^^^^^^^^ meta.quasi-quotation.haskell [p| A |] ...
72ca11a0e22075aac2fc0e503e5c9c2af4c5a279c0313f625f114500d8bbadef
softwarelanguageslab/maf
R5RS_scp1_cashdesk-counter-4.scm
; Changes: * removed : 1 * added : 1 * swaps : 1 ; * negated predicates: 0 ; * swapped branches: 0 ; * calls to id fun: 0 (letrec ((maak-teller (lambda () (let ((result 0)) (letrec ((toets (lambda (bedrag) (set! result...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_scp1_cashdesk-counter-4.scm
scheme
Changes: * negated predicates: 0 * swapped branches: 0 * calls to id fun: 0
* removed : 1 * added : 1 * swaps : 1 (letrec ((maak-teller (lambda () (let ((result 0)) (letrec ((toets (lambda (bedrag) (set! result (+ result bedrag)))) (reset (lambda () ...
499dce6216a4755b015dd468e9ec0a6c246f824053fb1fd8c62eb2b990498c3b
wdebeaum/step
unused.lisp
;;;; ;;;; W::UNUSED ;;;; (define-words :pos W::adj :templ CENTRAL-ADJ-TEMPL :words ( (W::UNUSED (SENSES ((meta-data :origin trips :entry-date 20060824 :change-date nil :comments nil :wn ("unused%5:00:00:inactive:03")) (EXAMPLE "the box is unused") (lf-parent ont::not-usable-val) (TEMPL central...
null
https://raw.githubusercontent.com/wdebeaum/step/f38c07d9cd3a58d0e0183159d4445de9a0eafe26/src/LexiconManager/Data/new/unused.lisp
lisp
W::UNUSED
(define-words :pos W::adj :templ CENTRAL-ADJ-TEMPL :words ( (W::UNUSED (SENSES ((meta-data :origin trips :entry-date 20060824 :change-date nil :comments nil :wn ("unused%5:00:00:inactive:03")) (EXAMPLE "the box is unused") (lf-parent ont::not-usable-val) (TEMPL central-ADJ-TEMPL) ) ) ...
5a10cd08a1185cd357cf7d0bef94879ac445e19c486ad6568c4bbb23b0fbae03
mitchellwrosen/dohaskell
Collection.hs
module Model.Collection where import Import import Model.Resource -- | Get all Collections. fetchAllCollectionsDB :: YesodDB App [Entity Collection] fetchAllCollectionsDB = selectList [] [] | Get a map of CollectionId to the number of Resources in that Collection fetchCollectionResourceCountsDB :: YesodDB App (Ma...
null
https://raw.githubusercontent.com/mitchellwrosen/dohaskell/69aea7a42112557ac3e835b9dbdb9bf60a81f780/src/Model/Collection.hs
haskell
| Get all Collections. | Get the year range of all Resources of with a specific Tag. If none of the Resources with that Tag have any published year, then the Tag will not exist in the returned map.
module Model.Collection where import Import import Model.Resource fetchAllCollectionsDB :: YesodDB App [Entity Collection] fetchAllCollectionsDB = selectList [] [] | Get a map of CollectionId to the number of Resources in that Collection fetchCollectionResourceCountsDB :: YesodDB App (Map CollectionId Int) fetchC...
87939f730503804064876ef59931aec9e9b5020bbcf55ca33e9c499c939a5694
chrislloyd/kepler
coordinate.clj
(ns kepler.systems.coordinate "The coordinate system makes sure that x & y positions are wrapped around the circumferences of the mass (planet or asteroid). The mass' radius (in meters) can be configured. I should note a slight scientific inaccuracy. A defining feature of a planet is that it is spherical. Dependin...
null
https://raw.githubusercontent.com/chrislloyd/kepler/bd6f30c20ff9e5ad6749bab0d3589d9ccce6f14f/src/kepler/systems/coordinate.clj
clojure
(ns kepler.systems.coordinate "The coordinate system makes sure that x & y positions are wrapped around the circumferences of the mass (planet or asteroid). The mass' radius (in meters) can be configured. I should note a slight scientific inaccuracy. A defining feature of a planet is that it is spherical. Dependin...
2500da341e06df99e0af005927d2d2e2dcb7267020e5fb78545a67d893b68c5b
kupl/LearnML
patch.ml
type aexp = | Const of int | Var of string | Power of (string * int) | Times of aexp list | Sum of aexp list let rec diff ((aexp : aexp), (str : string)) : aexp = match aexp with | Const n -> Const 0 | Var x -> if x != str then Const 0 else Const 1 | Power (x, n) -> if x != str then Const 0 els...
null
https://raw.githubusercontent.com/kupl/LearnML/c98ef2b95ef67e657b8158a2c504330e9cfb7700/result/cafe2/diff/sub55/patch.ml
ocaml
type aexp = | Const of int | Var of string | Power of (string * int) | Times of aexp list | Sum of aexp list let rec diff ((aexp : aexp), (str : string)) : aexp = match aexp with | Const n -> Const 0 | Var x -> if x != str then Const 0 else Const 1 | Power (x, n) -> if x != str then Const 0 els...
36ecd9fba7aa6779761610e8eca4fef59209af637ff2967e6a9dcdc7368b1326
L7R7/gitlab-ci-build-statuses
OverallStatus.hs
module Core.OverallStatus ( isRunning, overallStatus, OverallStatus (..), ) where import Core.BuildStatuses (BuildStatus, BuildStatuses (..), Result (buildStatus)) import Core.BuildStatuses qualified as B (BuildStatus (..)) import Relude data OverallStatus = Successful | SuccessfulRunning | FailedRu...
null
https://raw.githubusercontent.com/L7R7/gitlab-ci-build-statuses/87664dff508a2feb49ba4f2c42b691c1b53eff09/src/Core/OverallStatus.hs
haskell
module Core.OverallStatus ( isRunning, overallStatus, OverallStatus (..), ) where import Core.BuildStatuses (BuildStatus, BuildStatuses (..), Result (buildStatus)) import Core.BuildStatuses qualified as B (BuildStatus (..)) import Relude data OverallStatus = Successful | SuccessfulRunning | FailedRu...
b99106bcb5a62a42d313824211e675adb232f4c0675fd0a7937b11980e40e83f
input-output-hk/project-icarus-importer
Util.hs
-- | Module for command-line utilites, parsers and convenient handlers. module Pos.Client.CLI.Util ( printFlags , printInfoOnStart , attackTypeParser , attackTargetParser , defaultLoggerConfig , readLoggerConfig , stakeholderIdParser , dumpGenesisData , du...
null
https://raw.githubusercontent.com/input-output-hk/project-icarus-importer/36342f277bcb7f1902e677a02d1ce93e4cf224f0/lib/src/Pos/Client/CLI/Util.hs
haskell
| Module for command-line utilites, parsers and convenient handlers. | Default logger config. Will be used if `--log-config` argument is not passed. | Reads logger config from given path. By default returns 'defaultLoggerConfig'. | Dump our configuration into stdout and exit.
module Pos.Client.CLI.Util ( printFlags , printInfoOnStart , attackTypeParser , attackTargetParser , defaultLoggerConfig , readLoggerConfig , stakeholderIdParser , dumpGenesisData , dumpConfiguration ) where import Universum import quali...
9615ebf08152e2b67f0d8966b82dc2c7c700096379c444f565b8fddae7cfce4b
johnridesabike/acutis
cli.ml
(**************************************************************************) (* *) Copyright ( c ) 2022 . (* *) This Source Code For...
null
https://raw.githubusercontent.com/johnridesabike/acutis/b55920f59b1c23c516b083ae87bbff614096f6b2/bin/cli.ml
ocaml
************************************************************************ ****************************...
Copyright ( c ) 2022 . 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 /. open Acutis module Render = Render.Make (Sync) (Acutis...
1851857b2ae5b2f7f4fbffea0360ea0ff697eedbb4ed6ff0af7f5fd192e71691
DavidAlphaFox/RabbitMQ
rabbit_amqqueue_process.erl
The contents of this file are subject to the Mozilla Public License %% Version 1.1 (the "License"); you may not use this file except in %% compliance with the License. You may obtain a copy of the License %% at / %% Software distributed under the License is distributed on an " AS IS " %% basis, WITHOUT WARRANTY OF ...
null
https://raw.githubusercontent.com/DavidAlphaFox/RabbitMQ/0a64e6f0464a9a4ce85c6baa52fb1c584689f49a/src/rabbit_amqqueue_process.erl
erlang
Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. milliseconds f...
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is RabbitMQ . The Initial Developer of the Original Code is GoPivotal , Inc. Copyright ( c ) 2007 - 2014 GoPivotal , Inc. All rights reserved . -module...
ae4dbca04fa274ac51c408f0c3ba22767e957a305dd091f5d8a61303614fc941
onedata/op-worker
dbsync_state.erl
%%%------------------------------------------------------------------- @author ( C ) 2017 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%------------------------------------------------------------------- %%% @doc Persistent state of DBSync worker . ...
null
https://raw.githubusercontent.com/onedata/op-worker/751962177fcd41ec9b9abd38a64338fd93f1ae0b/src/modules/dbsync/dbsync_state.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- @doc provider to a sequence number of the beginning of expected changes range. @end ------------------------------------------------------------------- API datastore_model c...
@author ( C ) 2017 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . Persistent state of DBSync worker . For each space it holds mapping from -module(dbsync_state). -author("Krzysztof Trzepla"). -include("modules/dbsync/dbsync.hrl"). -include("modules/datastore/da...
6776fac8a49637caabd90f18fac8619fc4108eddb3fcdcb48c02c48a0596be1d
bobzhang/fan
macrotest.mli
(* DEFINE A; *) (* DEFINE B; *) (* IFDEF A THEN *) val a_should_be_present : int; ENDIF ; IFNDEF C THEN (* let b_should_be_present : int; *) ENDIF ; IFNDEF C THEN (* let c_should_be_present : int; *) (* ELSE *) (* let a_should_NOT_be_present : int; *) (* END; *) (* IFDEF C THEN *) (* let b_should_NO...
null
https://raw.githubusercontent.com/bobzhang/fan/7ed527d96c5a006da43d3813f32ad8a5baa31b7f/src/todoml/testr/macrotest.mli
ocaml
DEFINE A; DEFINE B; IFDEF A THEN let b_should_be_present : int; let c_should_be_present : int; ELSE let a_should_NOT_be_present : int; END; IFDEF C THEN let b_should_NOT_be_present : int; ELSE let d_should_be_present : int; let e_should_be_present : int;
val a_should_be_present : int; ENDIF ; IFNDEF C THEN ENDIF ; IFNDEF C THEN ENDIF ; val a_should_be_present : int;
8d1d38ea93204698bd40a7924ab552aa1407d6f3a07873d30944c01ba61d73d2
wilkerlucio/pathom
union_query.cljs
(ns com.wsscode.pathom.workspaces.connect.union-query (:require [com.wsscode.pathom.connect :as pc] [com.wsscode.pathom.core :as p] [com.wsscode.pathom.profile :as pp] [fulcro.client.localized-dom :as dom] [fulcro.client.primitives :as fp] [nubank.workspaces...
null
https://raw.githubusercontent.com/wilkerlucio/pathom/4ec25055d3d156241e9174d68ec438c93c971b9b/workspaces/src/com/wsscode/pathom/workspaces/connect/union_query.cljs
clojure
union helpers parser ui
(ns com.wsscode.pathom.workspaces.connect.union-query (:require [com.wsscode.pathom.connect :as pc] [com.wsscode.pathom.core :as p] [com.wsscode.pathom.profile :as pp] [fulcro.client.localized-dom :as dom] [fulcro.client.primitives :as fp] [nubank.workspaces...
1283cbf4d82fa09a285de6f108f0a53f19b9822b8f6b3fbacd9d11bf2a9a75fc
stumpwm/paulownia
debug.lisp
(in-package :paulownia) (export '(*debug-level* *debug-expose-events* *debug-stream* dformat)) (defvar *debug-level* 0 "Set this variable to a number > 0 to turn on debugging. The greater the number the more debugging output.") (defvar *debug-expose-events* nil "Set this variable for a visual indicatio...
null
https://raw.githubusercontent.com/stumpwm/paulownia/310b0d174ff389aa3d7f5b1dfcb41b807d918391/base/debug.lisp
lisp
strip out non base-char chars quick-n-dirty like
(in-package :paulownia) (export '(*debug-level* *debug-expose-events* *debug-stream* dformat)) (defvar *debug-level* 0 "Set this variable to a number > 0 to turn on debugging. The greater the number the more debugging output.") (defvar *debug-expose-events* nil "Set this variable for a visual indicatio...
4ca3cf89a94ea272a6c7966fde22ba7af727bafd13fef2168d9cb5dfcfaefb17
cardmagic/lucash
generate-constants.scm
, open srfi-13 (define (pretty-print-constant str) (string-map (lambda (c) (if (char=? c #\_) #\- c)) (string-downcase str))) (define (generate-print-func-dec c-name scheme-name type) (format (current-output-port) "printf(\"(define ~A %d)\\n\", ~A);~%" scheme-name c-name)) (define (generate-print...
null
https://raw.githubusercontent.com/cardmagic/lucash/0452d410430d12140c14948f7f583624f819cdad/reference/scsh-0.6.6/scsh/odbc/generate-constants.scm
scheme
("SQL_CP_OF" #f dec)
, open srfi-13 (define (pretty-print-constant str) (string-map (lambda (c) (if (char=? c #\_) #\- c)) (string-downcase str))) (define (generate-print-func-dec c-name scheme-name type) (format (current-output-port) "printf(\"(define ~A %d)\\n\", ~A);~%" scheme-name c-name)) (define (generate-print...
fc67c49ec0f74d70f5d51bb5c90bfd6964bc21412900c82a14ca6b2c2acf25f4
fetburner/Coq2SML
typing.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/fetburner/Coq2SML/322d613619edbb62edafa999bff24b1993f37612/coq-8.4pl4/pretyping/typing.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** The typing machine without informat...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Util open Names open Ter...
08ba9f34a15967015a8c28fa3558af6a639f3f3b0ffb03cfc91a8e2fd53c31d1
typeable/octopod
Deployments.hs
-- | --Module : Page.Deployments --Description : Deployments table page. -- --This module contains the definition of the deployments table page. module Page.Deployments (deploymentsPage) where import Control.Lens import Control.Lens.Extras import Control.Monad import Control.Monad.IO.Class import Data.Generics.Pr...
null
https://raw.githubusercontent.com/typeable/octopod/857a4ee74b12cc061a45ca1e033f230cbbccce99/octopod-frontend/src/Page/Deployments.hs
haskell
| Module : Page.Deployments Description : Deployments table page. This module contains the definition of the deployments table page. | The root widget of the deployments list page. It requests data of all deployments. If a request fails it shows an error, otherwise it calls 'deploymentsWidget', passing a rec...
module Page.Deployments (deploymentsPage) where import Control.Lens import Control.Lens.Extras import Control.Monad import Control.Monad.IO.Class import Data.Generics.Product (field) import Data.Generics.Sum (_Ctor) import qualified Data.List as L import Data.Text (Text) import Data.Time (diffUTCTime, getCurrentTime) ...
6c5de2e89289c4e0e8d620c68537d1d3d92ccaec53d544c81c37769e6fa5156f
mfikes/fifth-postulate
ns113.cljs
(ns fifth-postulate.ns113) (defn solve-for01 [xs v] (for [ndx0 (range 0 (- (count xs) 3)) ndx1 (range (inc ndx0) (- (count xs) 2)) ndx2 (range (inc ndx1) (- (count xs) 1)) ndx3 (range (inc ndx2) (count xs)) :when (= v (+ (xs ndx0) (xs ndx1) (xs ndx2) (xs ndx3)))] (list (x...
null
https://raw.githubusercontent.com/mfikes/fifth-postulate/22cfd5f8c2b4a2dead1c15a96295bfeb4dba235e/src/fifth_postulate/ns113.cljs
clojure
(ns fifth-postulate.ns113) (defn solve-for01 [xs v] (for [ndx0 (range 0 (- (count xs) 3)) ndx1 (range (inc ndx0) (- (count xs) 2)) ndx2 (range (inc ndx1) (- (count xs) 1)) ndx3 (range (inc ndx2) (count xs)) :when (= v (+ (xs ndx0) (xs ndx1) (xs ndx2) (xs ndx3)))] (list (x...
689e9e987dea530e446d32d336573f96625c77e150aaeadc137aec79ad8a67c8
CodeforSouth/fbi-api
macros.clj
(ns fbi-api.macros)
null
https://raw.githubusercontent.com/CodeforSouth/fbi-api/ddc1f1c45269bd9a0401c5047d0c5ab1dbe299ba/src/fbi_api/macros.clj
clojure
(ns fbi-api.macros)
e39376310ea9d0d9cba172c0c03aee516d43667774d1b2852878e541398c67f9
bmeurer/ocamljit2
ocamlmktop.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/bmeurer/ocamljit2/ef06db5c688c1160acc1de1f63c29473bcd0055c/tools/ocamlmktop.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 . $ Id$ let _ = let args = Ccomp.quo...
f0783fec6b52f3a4918a59396cd83269315812826b2000f379d361ca2fb74e90
synduce/Synduce
check_mem_included.ml
let xi_0 a b c x = (a > x) && (c > b) let xi_11 y z = y || z let xi_12 w = w let xi_2 u v a b1 c1 x1 = (c1 || x1) || ((u > a) && (b1 > v)) let rec g = function Leaf(a, b) -> xi_0 hi lo a b | Node(a, b, l, r) -> b > hi ? a > lo ? xi_11 (g r) (g l) : xi_12 (g r) : xi_2 hi lo b a (g l) (...
null
https://raw.githubusercontent.com/synduce/Synduce/289888afb1c312adfd631ce8d90df2134de827b8/extras/solutions/constraints/bst/check_mem_included.ml
ocaml
let xi_0 a b c x = (a > x) && (c > b) let xi_11 y z = y || z let xi_12 w = w let xi_2 u v a b1 c1 x1 = (c1 || x1) || ((u > a) && (b1 > v)) let rec g = function Leaf(a, b) -> xi_0 hi lo a b | Node(a, b, l, r) -> b > hi ? a > lo ? xi_11 (g r) (g l) : xi_12 (g r) : xi_2 hi lo b a (g l) (...
bc6bab68556df98f4074cd320efa34b284a6d346fad527adbe053b25873a2eaa
monadbobo/ocaml-core
string_zipper.mli
open Core.Std type t val contents : t -> string val left_contents : t -> string val right_contents : t -> string val insert_before : t -> char -> t val insert_after : t -> char -> t val drop_before : t -> (char * t) option val drop_after : t -> (char * t) option val drop_all_before : t -> (char lis...
null
https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/core/extended/lib/string_zipper.mli
ocaml
open Core.Std type t val contents : t -> string val left_contents : t -> string val right_contents : t -> string val insert_before : t -> char -> t val insert_after : t -> char -> t val drop_before : t -> (char * t) option val drop_after : t -> (char * t) option val drop_all_before : t -> (char lis...
e3750824797fa688bb56b69cefb95d66f10599c3e0044da105404f288c6ad26f
jayrbolton/coursework
Nullary.hs
{-# LANGUAGE EmptyDataDecls , ExistentialQuantification , ScopedTypeVariables , NoMonomorphismRestriction #-} module MAlonzo.Relation.Nullary where import qualified Unsafe.Coerce import qualified MAlonzo.Data.Product import qualified MAlonzo.Level import qualified MAlonzo.Relation.Nul...
null
https://raw.githubusercontent.com/jayrbolton/coursework/f0da276527d42a6751fb8d29c76de35ce358fe65/computability_and_formal_languages/project__/agda/MAlonzo/Relation/Nullary.hs
haskell
# LANGUAGE EmptyDataDecls , ExistentialQuantification , ScopedTypeVariables , NoMonomorphismRestriction #
module MAlonzo.Relation.Nullary where import qualified Unsafe.Coerce import qualified MAlonzo.Data.Product import qualified MAlonzo.Level import qualified MAlonzo.Relation.Nullary.Core name4 = ("Relation.Nullary._\8660_") d4 v0 v1 v2 v3 = ((Unsafe.Coerce.unsafeCoerce) (((((MAlonzo.Data.Product.d38) ...
f2fca1ca8d45642e31fa18541e429266b0c7eb3df07c08b204e42032dc8c1b59
dgiot/dgiot
dgiot_router.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 - 2021 DGIOT Technologies Co. , Ltd. All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy...
null
https://raw.githubusercontent.com/dgiot/dgiot/a6b816a094b1c9bd024ce40b8142375a0f0289d8/apps/dgiot_api/src/rest/dgiot_router.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2020 - 2021 DGIOT Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(dgiot_router). -author("johnliu"). -include("dgiot_api.hrl"). -include_lib("dgiot/incl...
40f49910bbd2913287dad533ec38118c8b481aec3b27aef4c9f2c8828483153f
BIMSBbioinfo/guix-bimsb-nonfree
tools.scm
;; GNU Guix --- Functional package management for GNU Copyright © 2018 < > ;;; ;;; This file is NOT part of GNU Guix, but is supposed to be used with GNU ;;; Guix and thus has the same license. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public Licens...
null
https://raw.githubusercontent.com/BIMSBbioinfo/guix-bimsb-nonfree/e074e01e011f44067af1d703c63382f06c02ecda/non-free/tools.scm
scheme
GNU Guix --- Functional package management for GNU This file is NOT part of GNU Guix, but is supposed to be used with GNU Guix and thus has the same license. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope t...
Copyright © 2018 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (non-free tools) #:use-module ((guix licenses) #:prefix license:) #:use-module ((guix licenses-...
510fba21dcc03a0ca1d91249a70ee8af5aef6cdf6e1bfa765662723f31c1792f
jkoppel/ecta
HashTableBased.hs
# LANGUAGE CPP # module Data.Interned.Extended.HashTableBased ( Id , Cache(..) , freshCache , cacheSize , resetCache #ifdef PROFILE_CACHES , getMetrics #endif , Interned(..) , intern ) where import Data.Hashable import qualified Data.HashTable.IO as HT import Data.IORef import GHC.IO ( unsafeDupab...
null
https://raw.githubusercontent.com/jkoppel/ecta/865cf95fea1c875c2732991db6415d963c5d6189/src/Data/Interned/Extended/HashTableBased.hs
haskell
-------------------------------------------------------------------------------------------------------- ------------------ ----- Caches ------------------ ( see ), but it was slower ------------------ ----- Interning ------------------
# LANGUAGE CPP # module Data.Interned.Extended.HashTableBased ( Id , Cache(..) , freshCache , cacheSize , resetCache #ifdef PROFILE_CACHES , getMetrics #endif , Interned(..) , intern ) where import Data.Hashable import qualified Data.HashTable.IO as HT import Data.IORef import GHC.IO ( unsafeDupab...
ed1208783f8ab3c1eb28254fa021937b9566e496e2811a44588373024c26f561
deadpendency/deadpendency
PublishComponentResultRetC.hs
module Common.Effect.PublishComponentResult.Carrier.PublishComponentResultRetC ( runPublishComponentResultRet, ) where import Common.Effect.PublishComponentResult.Model.ComponentResult import Common.Effect.PublishComponentResult.PublishComponentResult (PublishComponentResult (..)) import Control.Algebra (Algebra (...
null
https://raw.githubusercontent.com/deadpendency/deadpendency/170d6689658f81842168b90aa3d9e235d416c8bd/apps/common/src/Common/Effect/PublishComponentResult/Carrier/PublishComponentResultRetC.hs
haskell
module Common.Effect.PublishComponentResult.Carrier.PublishComponentResultRetC ( runPublishComponentResultRet, ) where import Common.Effect.PublishComponentResult.Model.ComponentResult import Common.Effect.PublishComponentResult.PublishComponentResult (PublishComponentResult (..)) import Control.Algebra (Algebra (...
35379868976f9e6cb6a66c767b4b30de62669dee382a169bd9f62ccee9c17b17
ghc/nofib
Main.hs
module Main (main) where import EffBench import Control.Exception.Base n :: Int n = 10000000 main = do putStrLn "CSD" evaluate $ (cstimes :: Int -> (Int -> ((), Int))) n (0 :: Int)
null
https://raw.githubusercontent.com/ghc/nofib/f34b90b5a6ce46284693119a06d1133908b11856/real/eff/CSD/Main.hs
haskell
module Main (main) where import EffBench import Control.Exception.Base n :: Int n = 10000000 main = do putStrLn "CSD" evaluate $ (cstimes :: Int -> (Int -> ((), Int))) n (0 :: Int)
2aa8181faa20f6449638ce88152ec37be52e945a74cfae9083b35828e20a27c3
haskell-tls/hs-tls
Measurement.hs
-- | -- Module : Network.TLS.Measurement -- License : BSD-style Maintainer : < > -- Stability : experimental -- Portability : unknown -- module Network.TLS.Measurement ( Measurement(..) , newMeasurement , addBytesReceived , addBytesSent , resetBytesCounters ...
null
https://raw.githubusercontent.com/haskell-tls/hs-tls/31e95f40b75b541c9817b6b56c363e74c2f3b57d/core/Network/TLS/Measurement.hs
haskell
| Module : Network.TLS.Measurement License : BSD-style Stability : experimental Portability : unknown | record some data about this connection. ^ number of handshakes on this context ^ bytes received since last handshake ^ bytes sent since last handshake
Maintainer : < > module Network.TLS.Measurement ( Measurement(..) , newMeasurement , addBytesReceived , addBytesSent , resetBytesCounters , incrementNbHandshakes ) where import Network.TLS.Imports data Measurement = Measurement } deriving (Show,Eq...
9e0dc0cc199e8404004955373226000931db44049029a74ad42f003ac8ca8a33
chriskiehl/MyBlog
storage.clj
(ns myblog.storage (:require [environ.core :refer [env]] [amazonica.aws.s3 :as s3] [myblog.types :as t] [environ.core :refer [env]]) (:import (java.io InputStream))) (def creds {:access-key (:aws-access-key env) :secret-key (:aws-secret-key env) :endpoint (:aws-endpoint...
null
https://raw.githubusercontent.com/chriskiehl/MyBlog/e35c6ac3521b0ef489633af28db7135504940b11/src/clj/myblog/storage.clj
clojure
(ns myblog.storage (:require [environ.core :refer [env]] [amazonica.aws.s3 :as s3] [myblog.types :as t] [environ.core :refer [env]]) (:import (java.io InputStream))) (def creds {:access-key (:aws-access-key env) :secret-key (:aws-secret-key env) :endpoint (:aws-endpoint...
89cb8f807e7ff4dadee24710c7b716802dce1de41282c6212cb8bcccfa29cfcc
SNePS/SNePS2
do-one.lisp
-*- Mode : Lisp ; Syntax : Common - Lisp ; Package : SNIP ; Base : 10 -*- Copyright ( C ) 1993 - -2013 Research Foundation of State University of New York Version : $ I d : do - one.lisp , v 1.2 2013/08/28 19:07:27 shapiro Exp $ ;; This file is part of SNePS. $ BEGIN LICENSE$ The contents of this file ...
null
https://raw.githubusercontent.com/SNePS/SNePS2/d3862108609b1879f2c546112072ad4caefc050d/snip/fns/do-one.lisp
lisp
Syntax : Common - Lisp ; Package : SNIP ; Base : 10 -*- This file is part of SNePS. you may not use this file except in compliance with the License. You may obtain a copy of the License at . edu/sneps/Downloads/ubpl.pdf. or implied. See the License for the specific language gov erning rights and limitations ...
Copyright ( C ) 1993 - -2013 Research Foundation of State University of New York Version : $ I d : do - one.lisp , v 1.2 2013/08/28 19:07:27 shapiro Exp $ $ BEGIN LICENSE$ The contents of this file are subject to the University at Software distributed under the License is distributed on an " AS IS " ...
40e19f463e3a4a53dc89062b59626e196870205635374d549685c16de7b2db8d
duo-lang/duo-lang
Run.hs
module Run (runRun, desugarEnv) where import Control.Monad.IO.Class (liftIO) import Data.Map qualified as M import Driver.Definition import TypeInference.Environment import Driver.Driver ( runCompilationModule ) import Eval.Definition (EvalEnv) import Eval.Eval (eval) import Syntax.CST.Names import Syntax.CST.Kinds i...
null
https://raw.githubusercontent.com/duo-lang/duo-lang/3048f57eb3026fe97ad8c254b30a5bc213c18109/app/Run.hs
haskell
Run program
module Run (runRun, desugarEnv) where import Control.Monad.IO.Class (liftIO) import Data.Map qualified as M import Driver.Definition import TypeInference.Environment import Driver.Driver ( runCompilationModule ) import Eval.Definition (EvalEnv) import Eval.Eval (eval) import Syntax.CST.Names import Syntax.CST.Kinds i...
95e920c81d8d8c7754852be99f7b804e2748492dd89aa4d9606858eecc06b78f
aerolang/aero
aero_codegen.erl
Generates code from Core Aero . -module(aero_codegen). -export([generate/1, generate_entry_point/1]). %% ----------------------------------------------------------------------------- %% Public API %% ----------------------------------------------------------------------------- Generate BEAM files from Core Ae...
null
https://raw.githubusercontent.com/aerolang/aero/c6bf662cbfc4f2af2910ddef47aec7484e3aa522/src/aero_codegen.erl
erlang
----------------------------------------------------------------------------- Public API ----------------------------------------------------------------------------- Create an escript entry point for the root. ----------------------------------------------------------------------------- Helper Functions -------...
Generates code from Core Aero . -module(aero_codegen). -export([generate/1, generate_entry_point/1]). Generate BEAM files from Core Aero . -spec generate(aero_core:c_pkg()) -> {ok, [{atom(), binary()}]} | {error, term()}. generate({c_pkg, _, Name, Modules}) -> generate(Name, Modules, []). -spec generate_en...
d89d3235ca4e748ef44a7ba97cb0b26344f4d9d86070dc38973dc319a6b5e8ad
re-ops/re-core
provider.clj
(ns digital.provider "Digital ocean provider" (:require [digital.validations :refer (provider-validation)] [clojure.core.strint :refer (<<)] [re-core.model :refer (translate vconstruct hypervisor*)] [re-core.provider :refer (mappings transform selections os->template wait-for-ssh wait-for-start wait-for...
null
https://raw.githubusercontent.com/re-ops/re-core/e13490aedd6d34ff01f11b28adf359beb5c0bb5b/src/digital/provider.clj
clojure
(ns digital.provider "Digital ocean provider" (:require [digital.validations :refer (provider-validation)] [clojure.core.strint :refer (<<)] [re-core.model :refer (translate vconstruct hypervisor*)] [re-core.provider :refer (mappings transform selections os->template wait-for-ssh wait-for-start wait-for...
af37ee3c5594b6d16dac4beedde54d5106743a774e1c4013205594a2b7010c65
matsen/pplacer
power_iteration.ml
(* Implements power iteration to get the absolute value of the largest * eigenvalue (in absolute value) of a symmetric matrix. * * *) open Linear_utils open Bigarray type eig = { v: Gsl_vector.vector; l: float; } let scale_by_l2 v = Gsl_vector.scale v (1. /. (Gsl_blas.nrm2 v)) let big_entry_ratio v1...
null
https://raw.githubusercontent.com/matsen/pplacer/f40a363e962cca7131f1f2d372262e0081ff1190/common_src/power_iteration.ml
ocaml
Implements power iteration to get the absolute value of the largest * eigenvalue (in absolute value) of a symmetric matrix. * * this function returns true if the l-infinity difference between (v * w[i]/v[i]) and w * is less than some tolerance, where i is the index of the maximal entry of v. * Find the top e...
open Linear_utils open Bigarray type eig = { v: Gsl_vector.vector; l: float; } let scale_by_l2 v = Gsl_vector.scale v (1. /. (Gsl_blas.nrm2 v)) let big_entry_ratio v1 v2 = let i = vec_fmax_index abs_float v2 in v1.{i} /. v2.{i} let stop_time tol v w = let pseudo_eval = big_entry_ratio w v in tr...
e75b5d740767109383db3f2dcf542d34e3f4c7b399f49082295daeda1befbde1
fetburner/Coq2SML
closure.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/fetburner/Coq2SML/322d613619edbb62edafa999bff24b1993f37612/coq-8.4pl4/kernel/closure.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * Flags for profiling reductions. *...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Pp open Names open Term ...
3c757254e52fc15768def0cc89c7d8f933e6959d28439c1236920270118be74e
schibsted/spid-tech-docs
endpoints_test.clj
(ns spid-docs.cultivate.endpoints-test (:require [midje.sweet :refer :all] [spid-docs.cultivate.content-shells :as cs] [spid-docs.cultivate.endpoints :refer :all])) (def relevant-endpoints-example " GET /path/to/{id} POST /path/to/other/page ") (def raw-content "Test data with relevant r...
null
https://raw.githubusercontent.com/schibsted/spid-tech-docs/ee6a4394e9732572e97fc3a55506b2d6b9a9fe2b/test/spid_docs/cultivate/endpoints_test.clj
clojure
these dummy endpoint descriptions are not relevant to the test, but required, since cultivate complains about missing description files:
(ns spid-docs.cultivate.endpoints-test (:require [midje.sweet :refer :all] [spid-docs.cultivate.content-shells :as cs] [spid-docs.cultivate.endpoints :refer :all])) (def relevant-endpoints-example " GET /path/to/{id} POST /path/to/other/page ") (def raw-content "Test data with relevant r...
581296e8959e86585f6c75c756bc2f1f37cfa897539db7e83acc57d128a62622
amnh/PCG
Class.hs
------------------------------------------------------------------------------ -- | -- Module : Data.Graph.Sequence.Class Copyright : ( c ) 2015 - 2021 Ward Wheeler -- License : BSD-style -- -- Maintainer : -- Stability : provisional -- Portability : portable -- --------------------------------...
null
https://raw.githubusercontent.com/amnh/PCG/9341efe0ec2053302c22b4466157d0a24ed18154/lib/graph/src/Data/Graph/Sequence/Class.hs
haskell
---------------------------------------------------------------------------- | Module : Data.Graph.Sequence.Class License : BSD-style Maintainer : Stability : provisional Portability : portable --------------------------------------------------------------------------- # LANGUAGE TypeFamilies ...
Copyright : ( c ) 2015 - 2021 Ward Wheeler # LANGUAGE FunctionalDependencies # # LANGUAGE MultiParamTypeClasses # module Data.Graph.Sequence.Class ( CharacterSequence , FinalDecoration , HasCharacterSequence(..) , MetricSpace(..) , MedianSpace(..) , ) where import Control.Lens.Type (Lens') imp...
a35f223ea04f48ad0be41462c4ddb2dc2509ff943e840c5c4a22a4cb0463fc24
SchornacklabSLCU/amfinder
imgDraw.ml
AMFinder - img / imgDraw.ml * * MIT License * Copyright ( c ) 2021 * * Permission is hereby granted , free of charge , to any person obtaining a copy * of this software and associated documentation files ( the " Software " ) , to * deal in the Software without restriction , including without li...
null
https://raw.githubusercontent.com/SchornacklabSLCU/amfinder/1053045b431b9e9e85a7bcebea2e38cda92a8dcd/amfbrowser/sources/img/imgDraw.ml
ocaml
TODO: Is None a possible case? Draws annotations. (a) Shows all annotation types. (b) Shows a single annotation type. (c) Removes probability, if any, given that the cell has annotation. (d) Ignore cells without annotation at the given level. (e) Shows annotation corresponding to t...
AMFinder - img / imgDraw.ml * * MIT License * Copyright ( c ) 2021 * * Permission is hereby granted , free of charge , to any person obtaining a copy * of this software and associated documentation files ( the " Software " ) , to * deal in the Software without restriction , including without li...
e0686ceeeea5b299ce907de90f91c84661a09d054ecc811b962b1a166bd31538
pflanze/chj-schemelib
oo-util-lazy.scm
Copyright 2017 - 2020 by < > ;;; This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License ( GPL ) as published by the Free Software Foundation , either version 2 of the License , or ;;; (at your option) any later version. (require eas...
null
https://raw.githubusercontent.com/pflanze/chj-schemelib/59ff8476e39f207c2f1d807cfc9670581c8cedd3/oo-util-lazy.scm
scheme
This file is free software; you can redistribute it and/or modify (at your option) any later version. included in easy? oo-util ;; ? (only optionally? (lazily? well.)) (ah well, more dependencies) and then many methods and list function aliases ... Types: don't want to use list?, as that's inefficient and...
Copyright 2017 - 2020 by < > it under the terms of the GNU General Public License ( GPL ) as published by the Free Software Foundation , either version 2 of the License , or (require easy-1 (cj-source-quasiquote quasiquote-source) seq list-util-1 (template template-map) (oo-vector-lib...
9dab56468b0c7a4409267e641c263ab35beb07cd347de0f029818a76e50dac65
RobYang1024/OCaMOSS
hello.ml
print_endline "Does this change something"
null
https://raw.githubusercontent.com/RobYang1024/OCaMOSS/090d31e8c4498ac3b9b74768fe011b924b2105ab/tests/test10/hello.ml
ocaml
print_endline "Does this change something"
26227b9a1baaacaea6641cf72d6f42a6fdaa3f78a246bcec9d2538e4dcf82939
haskell-tools/haskell-tools
LangPragmas.hs
# LANGUAGE LambdaCase # # LANGUAGE LambdaCase # # LANGUAGE LambdaCase # module Module.LangPragmas where
null
https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/refactor/examples/Module/LangPragmas.hs
haskell
# LANGUAGE LambdaCase # # LANGUAGE LambdaCase # # LANGUAGE LambdaCase # module Module.LangPragmas where
d933839ebc09910d9ff9f62119aadcaedf6155c64633400813cb1380cee99b95
tolysz/prepare-ghcjs
Class.hs
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # {-# LANGUAGE TypeSynonymInstances #-} -- | -- Module: Data.Aeson.Types.Class Copyright : ( c ) 2011 - 2016 ( c ) 2011 MailR...
null
https://raw.githubusercontent.com/tolysz/prepare-ghcjs/8499e14e27854a366e98f89fab0af355056cf055/spec-lts8/aeson/Data/Aeson/Types/Class.hs
haskell
# LANGUAGE GADTs # # LANGUAGE TypeSynonymInstances # | Module: Data.Aeson.Types.Class Stability: experimental Portability: portable Types for working with JSON data. * Core JSON classes * Generic JSON classes * Classes and types for map keys * Object key-value pairs * List functions * Inspecting @'Va...
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # Copyright : ( c ) 2011 - 2016 ( c ) 2011 MailRank , Inc. License : BSD3 Maintainer : < > module Data.Aeson.Types.Class ( FromJ...
e08f21b470e2bb76e595f3843f79bb34a003c683d23c706bf007ed1666648e13
redstarssystems/apptemplate
apptemplate_test.clj
(ns org.rssys.apptemplate-test (:require [clojure.edn :as edn] [clojure.java.io :as io] [clojure.spec.alpha :as s] [clojure.test :refer [deftest testing is]] [org.corfield.new] for the Specs [org.rssys.apptemplate])) (deftest valid-template-test (testing "template.edn is valid." (let...
null
https://raw.githubusercontent.com/redstarssystems/apptemplate/62d106c5b272eedb6b93ce56730d98e7e1ac6de7/test/org/rssys/apptemplate_test.clj
clojure
(ns org.rssys.apptemplate-test (:require [clojure.edn :as edn] [clojure.java.io :as io] [clojure.spec.alpha :as s] [clojure.test :refer [deftest testing is]] [org.corfield.new] for the Specs [org.rssys.apptemplate])) (deftest valid-template-test (testing "template.edn is valid." (let...
febc1485b45eec1bdc9f675f4cc3062d07cb9b89a07dc9efb63c4ff6c916104d
KavehYousefi/Esoteric-programming-languages
main.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; This program implements an interpreter for the esoteric programming language " Goedelang " , invented by the Esolang user " TJC games " , being a derivative of the esoteric language " brainfuck " by Urban Mueller . ;; ;; Concepts ;; ==...
null
https://raw.githubusercontent.com/KavehYousefi/Esoteric-programming-languages/4258edb8d8c1877f69b359f62fa527f02686205a/Goedelang/Goedelang_001/main.lisp
lisp
This program implements an interpreter for the esoteric programming Concepts ======== numbers raised to certain exponents that, being nonnegative integers, constitute the language's instructions. An abridged duction shall be the forthcoming sections' cynosure, and a humble warkloom for inchoate comprehens...
language " Goedelang " , invented by the Esolang user " TJC games " , being a derivative of the esoteric language " brainfuck " by Urban Mueller . Goedelang 's dioristic approach designates a program as a single Goedel number , the prime factorization of which generates prime 40 = 1 * 40 = 40 * 1 = 2...
02f62eb889e346f5c0501b22e66a2020e013957340f2753004941d7eec2ae81c
tcsprojects/pgsolver
succinctsmallprogress.ml
Copyright 2017 * This file is released under the BSD licence . For details see . * * This is a ( completely imperative ) implementation of Jurdzinski / Lazic 's * Succinct small progress measure algorithm : . * This file is released under the BSD licence. For details see -3-Clause. * * This is a...
null
https://raw.githubusercontent.com/tcsprojects/pgsolver/b0c31a8b367c405baed961385ad645d52f648325/src/solvers/succinctsmallprogress.ml
ocaml
------------- AUXILIARY FUNCTIONS -------------------------------------- define local logging functions find the largest index <= start in an array such that the corresponding element satisfies the given predicate This renders a Paritygame.nodeset as e.g. as "{1,2,3,4}". * We'll use it when logging the succe...
Copyright 2017 * This file is released under the BSD licence . For details see . * * This is a ( completely imperative ) implementation of Jurdzinski / Lazic 's * Succinct small progress measure algorithm : . * This file is released under the BSD licence. For details see -3-Clause. * * This is a...
93f3d3274ea36f2b1dfa04dc515a6b1e8cf23471a6c44fe9ee9e23dc854ab154
bmeurer/ocamljit2
match.ml
let x = match y with | A z -> z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z | B l -> (match l with | [] -> () | x::xs -> p x; self xs) | C -> () in x
null
https://raw.githubusercontent.com/bmeurer/ocamljit2/ef06db5c688c1160acc1de1f63c29473bcd0055c/camlp4/test/fixtures/match.ml
ocaml
let x = match y with | A z -> z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z | B l -> (match l with | [] -> () | x::xs -> p x; self xs) | C -> () in x
cdeb1cd3d7a979f39578a706281200e3dba8fd6a59388712ab96342c496b5ab0
yzh44yzh/practical_erlang
chat_room_manager.erl
-module(chat_room_manager). -export([start/0, create_room/2, remove_room/2, get_rooms/1, add_user/3, remove_user/3, get_users_list/2, send_message/4, get_messages_history/2]). -export([loop/1, handle_call/2]). -type(server() :: pid()). -type(room_id() :: reference()). -type(name() :: binar...
null
https://raw.githubusercontent.com/yzh44yzh/practical_erlang/c9eec8cf44e152bf50d9bc6d5cb87fee4764f609/09_gen_server/solution/chat_room_manager.erl
erlang
-module(chat_room_manager). -export([start/0, create_room/2, remove_room/2, get_rooms/1, add_user/3, remove_user/3, get_users_list/2, send_message/4, get_messages_history/2]). -export([loop/1, handle_call/2]). -type(server() :: pid()). -type(room_id() :: reference()). -type(name() :: binar...
f8c6686a0d7f577624696ab478cf34d1188bcfe6dcaef59989df41a161f601f4
OCamlPro/ocp-build
buildOasis.ml
(**************************************************************************) (* *) (* Typerex Tools *) (* *) Copyrigh...
null
https://raw.githubusercontent.com/OCamlPro/ocp-build/56aff560bb438c12b2929feaf8379bc6f31b9840/tools/ocp-build/ocaml/buildOasis.ml
ocaml
************************************************************************ Typerex Tools ...
Copyright 2011 - 2017 OCamlPro SAS the GNU General Public License version 3 described in the file open OcpCompat open BuildOCPTypes open BuildValue.TYPES let find_indent line = let rec find_indent line i len = if i < len then match line.[i] with ...
54b24c349530bb558d9ac4866d27379bee5bf253b45be6644571c973cfb23f03
easyuc/EasyUC
ucParseFile.mli
UcParseFile module interface Parse a DSL specification open EcSymbols open EcLocation open UcSpec type file_or_id = (* file name, interpreted relative to working directory, if not fully qualified *) | FOID_File of string root name of .uc file , initial letter capitalized , and without " .uc " ...
null
https://raw.githubusercontent.com/easyuc/EasyUC/0ee14ef8b024a8e7acde1035d06afecbdcaec990/uc-dsl/ucdsl-proj/src/ucParseFile.mli
ocaml
file name, interpreted relative to working directory, if not fully qualified
UcParseFile module interface Parse a DSL specification open EcSymbols open EcLocation open UcSpec type file_or_id = | FOID_File of string root name of .uc file , initial letter capitalized , and without " .uc " and without " /"s , normally located in file that was lexed ".uc" and without "/"s, no...
7f477a12c937591942bad2e7bb0e4ad2051b377149a125c7172fe97a7dd55ae5
Liqwid-Labs/liqwid-libs
Precompiled.hs
{-# LANGUAGE RankNTypes #-} # LANGUAGE RecordWildCards # # LANGUAGE TemplateHaskell # # LANGUAGE UndecidableInstances # | Module : Plutarch . Test . Precompiled Copyright : ( C ) Liqwid Labs 2022 Maintainer : Seungheon Oh < > Portability : GHC only Stability : Experimental A ' TestTree ' whose tests...
null
https://raw.githubusercontent.com/Liqwid-Labs/liqwid-libs/8165d3a33daa5deb377db854b9c7b62aab9c2897/plutarch-unit/src/Plutarch/Test/Precompiled.hs
haskell
# LANGUAGE RankNTypes # | @since 1.1.0 | @since 1.1.0 | Holds necessary information for each test cases. @since 1.1.0 @since 1.2.0 | Allows monadically defining a 'TestTree' whose tests all use the same precompiled script. @since 1.1.0 | @since 1.1.0 | @since 1.1.0 | @since 1.1.0 | @since 1.1.0 | @since...
# LANGUAGE RecordWildCards # # LANGUAGE TemplateHaskell # # LANGUAGE UndecidableInstances # | Module : Plutarch . Test . Precompiled Copyright : ( C ) Liqwid Labs 2022 Maintainer : Seungheon Oh < > Portability : GHC only Stability : Experimental A ' TestTree ' whose tests make use of a shared precom...
3b141609e050cd7167759291ea36881d810392c58c67df495f5a9bbe1606b385
hanshuebner/vlm
usagedatarpt.lisp
-*- Package : CL - USER ; Base : 10 -*- (declare (special *iusedata* *itotalused*)) (defun report-on-usage-data (&optional (path "usagereport.text")) (with-open-file (report path :direction :output) (let ((sorteddata (setq *iusedata* (cl:sort *iusedata* #'> :key #'cadr)))) (dolist (item sorteddata) (...
null
https://raw.githubusercontent.com/hanshuebner/vlm/20510ddc98b52252a406012a50a4d3bbd1b75dd0/emulator/usagedatarpt.lisp
lisp
Base : 10 -*-
(declare (special *iusedata* *itotalused*)) (defun report-on-usage-data (&optional (path "usagereport.text")) (with-open-file (report path :direction :output) (let ((sorteddata (setq *iusedata* (cl:sort *iusedata* #'> :key #'cadr)))) (dolist (item sorteddata) (destructuring-bind (name usage) item (f...
eb9adb01186b2016f64a5a13e4e1c35fff5a00dabd0ebe0be48f04199e4ac025
simmone/racket-simple-xlsx
docprops-app.rkt
#lang racket (require simple-xml) (require "../xlsx/xlsx.rkt") (require "../sheet/sheet.rkt") (provide (contract-out [to-docprops-app (-> list?)] [from-docprops-app (-> path-string? void?)] [write-docprops-app (->* () (path-string?) void?)] [read-docprops-app (->* () (path-str...
null
https://raw.githubusercontent.com/simmone/racket-simple-xlsx/b6b1598aa493c2a625b9e4afe6b343480a62b816/simple-xlsx/docProps/docprops-app.rkt
racket
#lang racket (require simple-xml) (require "../xlsx/xlsx.rkt") (require "../sheet/sheet.rkt") (provide (contract-out [to-docprops-app (-> list?)] [from-docprops-app (-> path-string? void?)] [write-docprops-app (->* () (path-string?) void?)] [read-docprops-app (->* () (path-str...
6ec4e9a46d254cfcf8533db032a30503c6177f050a35e726e9f3ed4563126e69
ocaml/oasis
Version.ml
(******************************************************************************) OASIS : architecture for building OCaml libraries and applications (* *) Copyright ( C ) 2011 - 2016 , Copyrig...
null
https://raw.githubusercontent.com/ocaml/oasis/3d1a9421db92a0882ebc58c5df219b18c1e5681d/src/cli/Version.ml
ocaml
**************************************************************************** This library is free software; you can redistribute it and/or modify it under the t...
OASIS : architecture for building OCaml libraries and applications Copyright ( C ) 2011 - 2016 , Copyright ( C ) 2008 - 2011 , OCamlCore SARL the Free Software Foundation ; either version 2.1 of the License , or ( at You s...
dfa5fb0271710f6a97a5f656ea83f1a01d74de217ed87e0b38bdb5840dde65b6
tgutu/clunit
test-case-functions.lisp
(in-package :clunit) (defun run-test (test &key use-debugger (report-progress t) stop-on-fail) "Executes a test case called TEST. If REPORT-PROGRESS is non-NIL, the test progress is reported. If USE-DEBUGGER is non-NIL, the debugger is invoked whenever an assertion fails. If STOP-ON-FAIL is non-NIL, the rest of the ...
null
https://raw.githubusercontent.com/tgutu/clunit/6f6d72873f0e1207f037470105969384f8380628/src/functions/test-case-functions.lisp
lisp
EXECUTE-TEST-CASE Algorithm: a. If a test we depend on failed or was skipped, skip this test. b. If a test we depend on hasn't run, queue this test. If test case has no dependencies return :RUN Check if reference is stale. If test report was not found it means test has not yet been run. Test we depend on ...
(in-package :clunit) (defun run-test (test &key use-debugger (report-progress t) stop-on-fail) "Executes a test case called TEST. If REPORT-PROGRESS is non-NIL, the test progress is reported. If USE-DEBUGGER is non-NIL, the debugger is invoked whenever an assertion fails. If STOP-ON-FAIL is non-NIL, the rest of the ...
10a13eeb42338652119e29d30a3e4eefe185db53917b1c8bbd5c62c1e9287467
helium/erlang-multiaddr
multiaddr.erl
Copyright 2017 < > Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% -2.0 %% Unless required by applicable law or agreed to in writing, software distributed under the Lic...
null
https://raw.githubusercontent.com/helium/erlang-multiaddr/9bf236917a336800f953150568291f192603446c/src/multiaddr.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permiss...
Copyright 2017 < > Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(multiaddr). -include("maddr_protocol.hrl"). -type multiaddr() :: binary(). -type protocol() :: {string(), string() | undefined}. -export_t...
5614994cb71c7ada1ebe34aebaa2697210224226c5bb25ed7ebe6de6169fc619
portkey-cloud/aws-clj-sdk
application_autoscaling.clj
(ns portkey.aws.application-autoscaling (:require [portkey.aws])) (def endpoints '{"ap-northeast-1" {:credential-scope {:service "application-autoscaling", :region "ap-northeast-1"}, :ssl-common-name "autoscaling.ap-northeast-1.amazonaws.com", :endpoint "-northeast-1.amazonaws.com", :signature-ver...
null
https://raw.githubusercontent.com/portkey-cloud/aws-clj-sdk/10623a5c86bd56c8b312f56b76ae5ff52c26a945/src/portkey/aws/application_autoscaling.clj
clojure
(ns portkey.aws.application-autoscaling (:require [portkey.aws])) (def endpoints '{"ap-northeast-1" {:credential-scope {:service "application-autoscaling", :region "ap-northeast-1"}, :ssl-common-name "autoscaling.ap-northeast-1.amazonaws.com", :endpoint "-northeast-1.amazonaws.com", :signature-ver...
f02ca23b65ffe71794cfc82c9f3893cafabcd9525c90448ca3951887f9a222c5
fizruk/free-agent
ABT.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE RankNTypes #-} --------------------------------------------------------------------------- -- | -- Module : Control.Agent.Free.Algorithms.ABT Copyright : ( c ) 2013 -- License : BSD-style (see the file LICENSE) -- -- Maintainer : -- Stability : exper...
null
https://raw.githubusercontent.com/fizruk/free-agent/50830431211399383c2ad1dc23882e7c4091adc3/src/Control/Agent/Free/Algorithms/ABT.hs
haskell
# LANGUAGE RankNTypes # ------------------------------------------------------------------------- | Module : Control.Agent.Free.Algorithms.ABT License : BSD-style (see the file LICENSE) Maintainer : Stability : experimental <>. ------------------------------------------------------------------...
# LANGUAGE FlexibleContexts # Copyright : ( c ) 2013 Portability : ghc Family of ABT algorithms . Based on « The Asynchronous Backtracking Family » module Control.Agent.Free.Algorithms.ABT ( module Control.Agent.Free.Interfaces.SendRecv , A , abtKernel , ABTKernelF , sendOk , sendBacktrack ...
3c99f25d86daf1dbe115710263706ea9c9879f33791c7d5091bae9b6b0387dd0
jwiegley/notes
Simpson2.hs
module Simpson2 where f :: (forall a. Maybe a) -> Maybe b f = undefined g :: Maybe a -> Maybe b g = undefined h :: (forall a. Maybe a) -> Maybe b -- h x = g (f x) h = g . f
null
https://raw.githubusercontent.com/jwiegley/notes/24574b02bfd869845faa1521854f90e4e8bf5e9a/gists/9bddd5c9b44c2e188540/Simpson2.hs
haskell
h x = g (f x)
module Simpson2 where f :: (forall a. Maybe a) -> Maybe b f = undefined g :: Maybe a -> Maybe b g = undefined h :: (forall a. Maybe a) -> Maybe b h = g . f
b3508c21a239e043893b9defa6e318ea6b8bfaf4c80b518a367f02fa4ff23c60
nuvla/api-server
utils_test.clj
(ns sixsq.nuvla.server.resources.callback.utils-test (:require [clojure.test :refer [are deftest]] [sixsq.nuvla.server.resources.callback.utils :as t] [sixsq.nuvla.server.util.time :as time])) (deftest check-executable? (let [future (time/to-str (time/from-now 2 :weeks)) past (time/to-str (t...
null
https://raw.githubusercontent.com/nuvla/api-server/a64a61b227733f1a0a945003edf5abaf5150a15c/code/test/sixsq/nuvla/server/resources/callback/utils_test.clj
clojure
(ns sixsq.nuvla.server.resources.callback.utils-test (:require [clojure.test :refer [are deftest]] [sixsq.nuvla.server.resources.callback.utils :as t] [sixsq.nuvla.server.util.time :as time])) (deftest check-executable? (let [future (time/to-str (time/from-now 2 :weeks)) past (time/to-str (t...
65a50c6ad0dd28736f2871d45b956e2b8738f53c61dd91d91ddff8665bf84a12
sigscale/5g-ngap
ngap_association_sup.erl
%%% ngap_association_sup.erl %%% vim: ts=3 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2020 SigScale Global Inc. %%% @end 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...
null
https://raw.githubusercontent.com/sigscale/5g-ngap/e4de7891a757d9587314d02f9e5598d51f8e7f5a/src/ngap_association_sup.erl
erlang
ngap_association_sup.erl vim: ts=3 @end 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 Licen...
2020 SigScale Global Inc. Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(ngap_association_sup). -copyright('Copyright (c) 2020 SigScale Global Inc.'). -behaviour(supervisor). -export([init/1]). -spec init(Args...
bb70935a28854866f1fa48dc69c68a43de1604f4e2100a2fbdebae1bf90cf343
BardurArantsson/cqrs
StorageBackend.hs
module Data.CQRS.Memory.Internal.StorageBackend ( newStorageBackend ) where import qualified Data.CQRS.Memory.Internal.EventStore as ES import qualified Data.CQRS.Memory.Internal.EventStream as EST import Data.CQRS.Memory.Internal.Storage (Storage) import qualified Data.CQRS.Memory.Internal.SnapshotStore...
null
https://raw.githubusercontent.com/BardurArantsson/cqrs/2491d83e2bcd68c883aaea33cdce6c5ea8c0cd1a/cqrs-memory/src/Data/CQRS/Memory/Internal/StorageBackend.hs
haskell
module Data.CQRS.Memory.Internal.StorageBackend ( newStorageBackend ) where import qualified Data.CQRS.Memory.Internal.EventStore as ES import qualified Data.CQRS.Memory.Internal.EventStream as EST import Data.CQRS.Memory.Internal.Storage (Storage) import qualified Data.CQRS.Memory.Internal.SnapshotStore...
1edb8a47abb686f371941369438409087b7951cd67fcbcd408f87be22c263fb4
Yuppiechef/cqrs-server
simple_async_test.clj
(ns cqrs-server.simple-async-test (:require [clojure.core.async :as a] [schema.core :as s] [cqrs-server.simple :as simple] [cqrs-server.async :as async] [cqrs-server.cqrs :as cqrs] [clojure.test :refer :all] [clojure.tools.logging :as log])) ;; This test uses the simple mode that emulates onyx,...
null
https://raw.githubusercontent.com/Yuppiechef/cqrs-server/57621f52e8f4a9de9f2e06fff16b4b918a81228a/test/cqrs_server/simple_async_test.clj
clojure
This test uses the simple mode that emulates onyx, but is completely non-distributed. Our super lightweight 'database' :user/create
(ns cqrs-server.simple-async-test (:require [clojure.core.async :as a] [schema.core :as s] [cqrs-server.simple :as simple] [cqrs-server.async :as async] [cqrs-server.cqrs :as cqrs] [clojure.test :refer :all] [clojure.tools.logging :as log])) First , lets define the most basic module (defn s...
58a5a208b92457f43e6e83bc8f177af802692ed0906d6e3b108e384e5c05980f
agda/agda-ocaml
CompilerTest.hs
module CompilerTest where TODO : Emacs keeps complaining that Test . Tasty . Discover is a member -- of a hidden package and keeps prompting me to add it to the .cabal-file. Solution M - x haskell - session - change - target - > agda - ocaml : test import qualified Agda.Syntax.Common as C import qu...
null
https://raw.githubusercontent.com/agda/agda-ocaml/e38b699870ba638221828b07b12948d70a1bdaec/test/agda-ocaml/CompilerTest.hs
haskell
of a hidden package and keeps prompting me to add it to the .cabal-file. ns (Map.unions (map mkMap cons)) TODO: Add this test-case: Agda: f = \ x -> g x g = f Tests that the deBruijn index references the *closest* binding. as anything in malfunction. E.g. the function `f : ⊥ -> a` will never be applied t...
module CompilerTest where TODO : Emacs keeps complaining that Test . Tasty . Discover is a member Solution M - x haskell - session - change - target - > agda - ocaml : test import qualified Agda.Syntax.Common as C import qualified Agda.Syntax.Concrete.Name as C import Agda.Syntax...
95b9d9d2b3f27b2df040349c657b736185a236541dbd4c94e08ea27481f4e32f
SimulaVR/godot-haskell
PhysicsShapeQueryParameters.hs
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.PhysicsShapeQueryParameters (Godot.Core.PhysicsShape...
null
https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/src/Godot/Core/PhysicsShapeQueryParameters.hs
haskell
| The list of objects or object @RID@s that will be excluded from collisions. | The list of objects or object @RID@s that will be excluded from collisions. | The collision margin for the shape. | The collision margin for the shape. | The queried shape's @RID@. See also @method set_shape@. | The queried shape's @R...
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.PhysicsShapeQueryParameters (Godot.Core.PhysicsShape...
befa5e4e85693351c8f832b3e88d8636a03809333a45f2b10c8d8022625c905b
parapluu/Concuerror
receive_exit.erl
-module(receive_exit). -export([test/0, test1/0, test2/0, test3/0]). -export([scenarios/0]). -concuerror_options_forced([{instant_delivery, true}]). scenarios() -> [{T, inf, dpor} || T <- [test, test1, test2, test3]]. Minimal version of a bug reported by in issue # 75 . The problem %%% is that a 'receive' ...
null
https://raw.githubusercontent.com/parapluu/Concuerror/152a5ccee0b6e97d8c3329c2167166435329d261/tests/suites/basic_tests/src/receive_exit.erl
erlang
is that a 'receive' event was not properly detected as racing with an exit signal that lead to an abnormal exit, leaving the process that sent the signal sleeping after the reversal.
-module(receive_exit). -export([test/0, test1/0, test2/0, test3/0]). -export([scenarios/0]). -concuerror_options_forced([{instant_delivery, true}]). scenarios() -> [{T, inf, dpor} || T <- [test, test1, test2, test3]]. Minimal version of a bug reported by in issue # 75 . The problem test() -> Fun = f...
b31a6d4c02b48224b95e5b362e1b9fcf6ae0386c2154a571b4ea1d23f2751703
ocurrent/ocaml-multicore-ci
backend.ml
open Capnp_rpc_lwt open Lwt.Infix let retry_delay = Time to wait after a failed connection before retrying . module Metrics = struct open Prometheus let namespace = "ocamlci" let subsystem = "web" let backend_down = let help = "Whether the connection to the backend is down" in Gauge.v ~help ~names...
null
https://raw.githubusercontent.com/ocurrent/ocaml-multicore-ci/d46eecaf7269283a4b95ee40d2a9d6c7ec34a7bf/web-ui/backend.ml
ocaml
(just in case) Connected OK - now watch for failure. Failed to connect.
open Capnp_rpc_lwt open Lwt.Infix let retry_delay = Time to wait after a failed connection before retrying . module Metrics = struct open Prometheus let namespace = "ocamlci" let subsystem = "web" let backend_down = let help = "Whether the connection to the backend is down" in Gauge.v ~help ~names...
a9bce1a32441b4ae7df9f1bf04ac830cac0a63865e3ecc990eb2e44a47bce6c1
goodell/cppmem
escape.mli
* Copyright ( c ) 2010 - 2012 , * Copyright (c) 2010-2012, Mark Batty Jean Pichon Susmit Sarkar Peter Sewell *) * * Copyright ( c ) 2003 , * < > * All rights reserved . * * Redistribution and use in source and binary forms , with or without * ...
null
https://raw.githubusercontent.com/goodell/cppmem/eb3ce19b607a5d6ec81138cd8cacd236f9388e87/cil-parser/escape.mli
ocaml
* Character and string escaping utilities * OCaml types used to represent wide characters and strings * escape various constructs in accordance with C lexical rules
* Copyright ( c ) 2010 - 2012 , * Copyright (c) 2010-2012, Mark Batty Jean Pichon Susmit Sarkar Peter Sewell *) * * Copyright ( c ) 2003 , * < > * All rights reserved . * * Redistribution and use in source and binary forms , with or without * ...
918f753d2606bdda7156261d41b326ab8bcfe5b3295925ffef96a6d6598aaf6c
gordonguthrie/pometo
pometo_compiler.erl
-module(pometo_compiler). -export([ compile/3 ]). -include("parser_records.hrl"). -include("errors.hrl"). -include_lib("eunit/include/eunit.hrl"). -include_lib("syntax_tools/include/merl.hrl"). % print_src is super useful but also not normally used, so... -compile([{nowarn_unused_function, [{print_src, 1}]...
null
https://raw.githubusercontent.com/gordonguthrie/pometo/efd072af557b817f930f0046f884c8c3b5014487/src/pometo_compiler.erl
erlang
print_src is super useful but also not normally used, so... copy from uncomment for debugging print_src(AST), This function is partially implemented because it will need to get tested with run time errors to be useful and we can't yet trigger run time errors we are about to add an extra line so bump the line n...
-module(pometo_compiler). -export([ compile/3 ]). -include("parser_records.hrl"). -include("errors.hrl"). -include_lib("eunit/include/eunit.hrl"). -include_lib("syntax_tools/include/merl.hrl"). -compile([{nowarn_unused_function, [{print_src, 1}]}]). -record(sourcemap, { pometo_line_no = none, ...
af49ec04fdcf9d41f9442c073678fd9b34ee084c2fe26e601a0a50bacd519021
hoelzl/Snark
constants.lisp
;;; -*- Mode: Lisp; Syntax: Common-Lisp; Package: snark -*- ;;; File: constants.lisp The contents of this file are subject to the Mozilla Public License ;;; Version 1.1 (the "License"); you may not use this file except in ;;; compliance with the License. You may obtain a copy of the License at ;;; / ;;; Software di...
null
https://raw.githubusercontent.com/hoelzl/Snark/06f86a31f476b2e4c28519765ab1e1519a4cc932/src/constants.lisp
lisp
-*- Mode: Lisp; Syntax: Common-Lisp; Package: snark -*- File: constants.lisp Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific la...
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is SNARK . The Initial Developer of the Original Code is SRI International . Portions created by the Initial Developer are Copyright ( C ) 1981 - 2011 . ...
9cbae851dfac9213a6958f357428be192d4f1b6c040e886a80a2ed69f789c118
OCamlPro/ocp-build
file_test.ml
(**************************************************************************) (* *) (* Typerex Libraries *) (* *) Copyrigh...
null
https://raw.githubusercontent.com/OCamlPro/ocp-build/56aff560bb438c12b2929feaf8379bc6f31b9840/libs/ocplib-system/file_test.ml
ocaml
************************************************************************ Typerex Libraries ...
Copyright 2011 - 2017 OCamlPro SAS the GNU Lesser General Public License version 2.1 , with the open File open Test let f1 = ".ml" let f2 = "foo.ml" let f3 = "fooml" let strs = [ "hello"; "world! "; ""; "it is such "; "a nice day!"; ] let str = String....
10bc82a4f14fb68d3d49332c87e2a7de4bcefa8a9e51d09a9fc173cc3c7d87dc
ahrefs/devkit
test_httpev.ml
* Bare - bones httpev server example open Printf open Devkit let log = Httpev.Hidden.log let http_handle _st req k_http = let module Arg = Httpev.Args(struct let req = req end) in match req.Httpev.path with | "/hello" -> let name = Option.default "world" (Arg.get "name") in k_http @@ Httpev.serve_text ...
null
https://raw.githubusercontent.com/ahrefs/devkit/559c2df8f6eacb091e0eac38f508c45b6567bdd8/test_httpev.ml
ocaml
* Bare - bones httpev server example open Printf open Devkit let log = Httpev.Hidden.log let http_handle _st req k_http = let module Arg = Httpev.Args(struct let req = req end) in match req.Httpev.path with | "/hello" -> let name = Option.default "world" (Arg.get "name") in k_http @@ Httpev.serve_text ...
146da0db47c89b505976b574c3a6b250e878a6ff8e3c4c1fe83582750309bb3a
clojerl/clojerl
erlang.io.StringReader.erl
-module('erlang.io.StringReader'). -include("clojerl.hrl"). -behavior('erlang.io.ICloseable'). -behavior('clojerl.IStringable'). -behavior('erlang.io.IReader'). -export([?CONSTRUCTOR/1]). -export([ start_link/1 , init/1 , loop/1 , skip/3 ]). -export([close/1]). -export([ read/1 ...
null
https://raw.githubusercontent.com/clojerl/clojerl/506000465581d6349659898dd5025fa259d5cf28/src/erl/erlang/erlang.io.StringReader.erl
erlang
------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Implementation of a subset of the io protocol in order to only support writing o...
-module('erlang.io.StringReader'). -include("clojerl.hrl"). -behavior('erlang.io.ICloseable'). -behavior('clojerl.IStringable'). -behavior('erlang.io.IReader'). -export([?CONSTRUCTOR/1]). -export([ start_link/1 , init/1 , loop/1 , skip/3 ]). -export([close/1]). -export([ read/1 ...
0a69c1f6f2dbf1787b1185e9c5877dd52bee9efa412db88301f4f9f423b3d975
radian628/lispsmos
main-BACKUP2.lisp
; Configure procedural/action code (procedureConfig (desmosEntryPoint main) (pointerStack ps) (programCounter pc) ) (folder ((title "PLY Stuff")) (defineFindAndReplace PLYGet fileVar elementType propertyType (concatTokens fileVar ELEM elementType PROP propertyType) ) (importPLY ":8080/airplane.ply" Air...
null
https://raw.githubusercontent.com/radian628/lispsmos/d876f7e81129c1990ea1007dadb04cf5d1641d9d/test/internal/old/main-BACKUP2.lisp
lisp
Configure procedural/action code Define starting viewport Define rotated version of lists Matrix multiplication 3D Component Interface translating vertex buffers Ray-triangle intersection for collision detection cull faces if needed Indexed Triangles Add a slight triangle overlap to prevent strange lines Tra...
(procedureConfig (desmosEntryPoint main) (pointerStack ps) (programCounter pc) ) (folder ((title "PLY Stuff")) (defineFindAndReplace PLYGet fileVar elementType propertyType (concatTokens fileVar ELEM elementType PROP propertyType) ) (importPLY ":8080/airplane.ply" Airplane) (importPLY ":8080/canyon.p...
e8dab4fa772f61601996c7971c08213357d5c083f4df2ef896a7741226177b25
MaybeJustJames/zephyr
Eval.hs
# LANGUAGE NoImplicitPrelude # | Evaluation of PureScript 's expressions used in dead call elimnation . -- module Language.PureScript.DCE.Eval ( evaluate ) where import Prelude hiding (mod) import Control.Applicative ((<|>)) import Control.Exception (Exception (..), throw) import Control.Monad import Control.Mon...
null
https://raw.githubusercontent.com/MaybeJustJames/zephyr/30b6d25813592123dd4dadc34b4df4eb0d150a0b/src/Language/PureScript/DCE/Eval.hs
haskell
^ an expression has not yet been evaluated ^ an expression has been evaluated | Errors thrown by the evaluation. ^ qualified expression not found in the list of modules ^ out of bound array index ^ record field not found | Evaluate expressions in a module: * Object accessors the ones that are comming from ...
# LANGUAGE NoImplicitPrelude # | Evaluation of PureScript 's expressions used in dead call elimnation . module Language.PureScript.DCE.Eval ( evaluate ) where import Prelude hiding (mod) import Control.Applicative ((<|>)) import Control.Exception (Exception (..), throw) import Control.Monad import Control.Monad....
ecea3b15cad28ac4e481022f4d7e2bac1791635bdb50034f01bf8ef099208a97
mhuebert/maria
prose.cljs
(ns maria.blocks.prose (:require [prosemirror.core :as pm] [maria.util :as util] [maria.blocks.blocks :as Block] [prosemirror.markdown :as markdown] [maria.editors.prose :refer [ProseRow]] [lark.editor :as Editor] [lark.tree.emit :as emit] ...
null
https://raw.githubusercontent.com/mhuebert/maria/15586564796bc9273ace3101b21662d0c66b4d22/editor/src/maria/blocks/prose.cljs
clojure
Removals NOTE if 'before' block was merged with 'after' block, 'after' is nil. replacing 'A' has side-effect of joining with B and C. in the real world, prose blocks will always be joined. Commands ===================== select word split prose into prose/code/prose split code into code/prose/code Stru...
(ns maria.blocks.prose (:require [prosemirror.core :as pm] [maria.util :as util] [maria.blocks.blocks :as Block] [prosemirror.markdown :as markdown] [maria.editors.prose :refer [ProseRow]] [lark.editor :as Editor] [lark.tree.emit :as emit] ...
46e47651af7fc5058a84069ee369df9324ac95518b3281967bda30a3cd2dffa3
isovector/thinking-with-types
Constraints.hs
-- # pragmas {-# LANGUAGE GADTs #-} # LANGUAGE UndecidableInstances # {-# OPTIONS_GHC -Wno-unused-imports #-} module Constraints where -- # imports import Data.Kind (Constraint) five :: Int five = 5 five_ :: (a ~ Int) => a five_ = 5 type ShowAndNum a = (Show a, Num a) # class (Show a, Num ...
null
https://raw.githubusercontent.com/isovector/thinking-with-types/edec92fcc8b28f602f615fea0b160ede9168a41d/code/Constraints.hs
haskell
# pragmas # LANGUAGE GADTs # # OPTIONS_GHC -Wno-unused-imports # # imports
# LANGUAGE UndecidableInstances # module Constraints where import Data.Kind (Constraint) five :: Int five = 5 five_ :: (a ~ Int) => a five_ = 5 type ShowAndNum a = (Show a, Num a) # class (Show a, Num a) => ShowNum a instance (Show a, Num a) => ShowNum a
a50528703cd2a7a741bd33994320944cae8f6acaa666216f0d3060efd4cd5990
heraldry/heraldicon
form.cljs
(ns heraldicon.frontend.component.form (:require [heraldicon.context :as c] [heraldicon.frontend.component.core :as component] [heraldicon.frontend.component.tree :as tree] [heraldicon.frontend.language :refer [tr]] [re-frame.core :as rf])) (defn- form [context] (let [{:keys [title]} (tree/node-data...
null
https://raw.githubusercontent.com/heraldry/heraldicon/7bf4dd4149e1f69c9e4f9a0b6b826f73f532a01d/src/heraldicon/frontend/component/form.cljs
clojure
(ns heraldicon.frontend.component.form (:require [heraldicon.context :as c] [heraldicon.frontend.component.core :as component] [heraldicon.frontend.component.tree :as tree] [heraldicon.frontend.language :refer [tr]] [re-frame.core :as rf])) (defn- form [context] (let [{:keys [title]} (tree/node-data...
2057175252975076052b21eea2e08c24b1266322b28226f6be19ec4541cabd16
yzhs/ocamlllvm
maps.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/yzhs/ocamlllvm/45cbf449d81f2ef9d234968e49a4305aaa39ace2/tests/basic/maps.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 : maps.ml 10713 2010 - 10 - 08 ...
2e29c8ea57db32c593550ad968d31719e3712612d75fea993148b8158a648709
ghcjs/ghcjs-boot
unicode001.hs
! ! ! Tests the various character classifiactions for a selection of Unicode -- characters. module Main where import Data.Char main = do putStrLn (" " ++ concat (map (++" ") strs)) mapM putStrLn (map do_char chars) where do_char char = s ++ (take (12-length s) (repeat ' ')) ++ concat (map f bs) ...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-boot/8c549931da27ba9e607f77195208ec156c840c8a/boot/base/tests/unicode001.hs
haskell
characters.
! ! ! Tests the various character classifiactions for a selection of Unicode module Main where import Data.Char main = do putStrLn (" " ++ concat (map (++" ") strs)) mapM putStrLn (map do_char chars) where do_char char = s ++ (take (12-length s) (repeat ' ')) ++ concat (map f bs) where ...
2e8c6350395db24ca61f69a9fd7878a2b9f48600de0dfd8e807f6161d5e0969e
holyjak/fulcro-intro-wshop
app.cljs
(ns fulcro-todomvc.app (:require [com.fulcrologic.fulcro.application :as app] [com.fulcrologic.fulcro.networking.http-remote :as http])) (defonce remote #_(fws/fulcro-websocket-remote {:auto-retry? true :request-timeout-ms 10000}) (http/fulcro-http-remot...
null
https://raw.githubusercontent.com/holyjak/fulcro-intro-wshop/45f0e7bdd768bf60ba8e7d35875b94d1b5bb396e/src/fulcro_todomvc/app.cljs
clojure
(ns fulcro-todomvc.app (:require [com.fulcrologic.fulcro.application :as app] [com.fulcrologic.fulcro.networking.http-remote :as http])) (defonce remote #_(fws/fulcro-websocket-remote {:auto-retry? true :request-timeout-ms 10000}) (http/fulcro-http-remot...
cdeda786b3b9cd702c32a1142627e55ffce74b43a65d5e825c699e8707bf3ea2
Decentralized-Pictures/T4L3NT
test_consensus_heuristic.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2020 Nomadic Labs < > (* ...
null
https://raw.githubusercontent.com/Decentralized-Pictures/T4L3NT/6d4d3edb2d73575384282ad5a633518cba3d29e3/src/lib_shell/test/test_consensus_heuristic.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2020 Nomadic Labs < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN AN...
5f514a1214e2ffd2da67d4a8f1aafea1c0e37824047fbd042f00db33696935a6
ocaml-ppx/ppx_view
generator_source.mli
(* source file parsing/printing *) val parse_signature : string -> Ppx_view_common.Ast_utils.Fixed_ast.Parsetree.signature val parse_structure : string -> Ppx_view_common.Ast_utils.Fixed_ast.Parsetree.structure val print_signature : Format.formatter -> Ppx_view_common.Ast_utils.Fixed_ast.Parsetree.sig...
null
https://raw.githubusercontent.com/ocaml-ppx/ppx_view/ffc7ecc3aa21af798a315ddd27538333e31080c5/generator/generator_source.mli
ocaml
source file parsing/printing
val parse_signature : string -> Ppx_view_common.Ast_utils.Fixed_ast.Parsetree.signature val parse_structure : string -> Ppx_view_common.Ast_utils.Fixed_ast.Parsetree.structure val print_signature : Format.formatter -> Ppx_view_common.Ast_utils.Fixed_ast.Parsetree.signature -> unit val print_structu...
47156a562318dc839fc93f65e097f516a0ce8fe419fdaa3cebc00b46fc471164
suhdonghwi/nuri
StmtSpec.hs
# LANGUAGE OverloadedLists # module Nuri.Spec.Parse.StmtSpec where import NeatInterpolation import Nuri.Expr import Nuri.Parse.Stmt import Nuri.Spec.Parse.Util import Nuri.Spec.Util import Nuri.Stmt import Test.Hspec spec :: Spec spec = do describe "선언문 파싱" $ do describe "함수 선언문 파싱" $ do it "인자가 한 개인 함수"...
null
https://raw.githubusercontent.com/suhdonghwi/nuri/337550e3d50c290144df905ea3f189e9af6123c2/test/Nuri/Spec/Parse/StmtSpec.hs
haskell
# LANGUAGE OverloadedLists # module Nuri.Spec.Parse.StmtSpec where import NeatInterpolation import Nuri.Expr import Nuri.Parse.Stmt import Nuri.Spec.Parse.Util import Nuri.Spec.Util import Nuri.Stmt import Test.Hspec spec :: Spec spec = do describe "선언문 파싱" $ do describe "함수 선언문 파싱" $ do it "인자가 한 개인 함수"...
bfeede97a594c602704228b0a6fcf3f9ef49240e1605de951b614f1410e46349
muoncore/photon
project.clj
(defproject muoncore/photon "0.9.6" :description "Simple, lightweight high-performant eventstore with hot and cold streaming especially tailored for microservice architectures. Provides interfaces for muon and HTTP." :url "" :license {:name "GNU Affero General Public License Versio...
null
https://raw.githubusercontent.com/muoncore/photon/622e664f8712de32b9a3c6f3ce2d5e445f31d8b4/project.clj
clojure
photon plugins http-kit
(defproject muoncore/photon "0.9.6" :description "Simple, lightweight high-performant eventstore with hot and cold streaming especially tailored for microservice architectures. Provides interfaces for muon and HTTP." :url "" :license {:name "GNU Affero General Public License Versio...
70cbea9582ae97082e4d2104344549f63a53b7e972535b5949cc3d95efb7c746
nvim-treesitter/nvim-treesitter
indents.scm
[ (brace_list) (paren_list) (special) (pipe) (call) "|>" "if" "else" "while" "repeat" "for" ] @indent ((binary operator: (special)) @indent) [ "}" ")" ] @branch ((formal_parameters (identifier)) @aligned_indent (#set! "delimiter" "()")) [ ")" "}" ] @indent_end [ (comment) ] @ignore...
null
https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/161576dde2a2172c6036e25600185e9497e71a24/queries/r/indents.scm
scheme
[ (brace_list) (paren_list) (special) (pipe) (call) "|>" "if" "else" "while" "repeat" "for" ] @indent ((binary operator: (special)) @indent) [ "}" ")" ] @branch ((formal_parameters (identifier)) @aligned_indent (#set! "delimiter" "()")) [ ")" "}" ] @indent_end [ (comment) ] @ignore...
1aaf1bd7fd2f232898515791aa146bb540d278ce3479781c7f05a1044770db1d
qfpl/reflex-workshop
Exercise.hs
| Copyright : ( c ) 2018 , Commonwealth Scientific and Industrial Research Organisation License : : Stability : experimental Portability : non - portable Copyright : (c) 2018, Commonwealth Scientific and Industrial Research Organisation License : BSD3 Maintainer : Stability : experi...
null
https://raw.githubusercontent.com/qfpl/reflex-workshop/244ef13fb4b2e884f455eccc50072e98d1668c9e/src/State/Exercise.hs
haskell
| Copyright : ( c ) 2018 , Commonwealth Scientific and Industrial Research Organisation License : : Stability : experimental Portability : non - portable Copyright : (c) 2018, Commonwealth Scientific and Industrial Research Organisation License : BSD3 Maintainer : Stability : experi...
43e2d7d6e8d5a8bc62bf7884287d731f68d552289dd60034f28bf4348936918b
RyanGlScott/ghc-software-foundations
IndPrinciples.hs
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE DataKinds # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # module SF.LF.IndPrinciples where import Data.Eliminator import Data.Eliminator.TH import Data.Kind import Data.Nat import Data.Singletons.TH import Prelude.Singletons import ...
null
https://raw.githubusercontent.com/RyanGlScott/ghc-software-foundations/ce7b8958e0aed4fb2c8611d71e7e0f1a2ef83222/logical-foundations/src/SF/LF/IndPrinciples.hs
haskell
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE DataKinds # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # module SF.LF.IndPrinciples where import Data.Eliminator import Data.Eliminator.TH import Data.Kind import Data.Nat import Data.Singletons.TH import Prelude.Singletons import ...
8c394a6e632a134cc2f1749d98fd2a7a23ea2eab10cda8ce0af9462aa1bad732
samply/blaze
verify_test.clj
(ns blaze.db.node.tx-indexer.verify-test (:require [blaze.db.api :as d] [blaze.db.impl.codec :as codec] [blaze.db.impl.index.resource-as-of-test-util :as rao-tu] [blaze.db.impl.index.system-as-of-test-util :as sao-tu] [blaze.db.impl.index.system-stats-test-util :as ss-tu] [blaze.db.impl.index....
null
https://raw.githubusercontent.com/samply/blaze/c4120e944bdf0ffbbe7d5bc4e0378c49278e31fe/modules/db/test/blaze/db/node/tx_indexer/verify_test.clj
clojure
(ns blaze.db.node.tx-indexer.verify-test (:require [blaze.db.api :as d] [blaze.db.impl.codec :as codec] [blaze.db.impl.index.resource-as-of-test-util :as rao-tu] [blaze.db.impl.index.system-as-of-test-util :as sao-tu] [blaze.db.impl.index.system-stats-test-util :as ss-tu] [blaze.db.impl.index....
867a01c4ef2f1cf91f4004cd3a353254a93fe3425e0aac9b4807ecdb69401a5b
synduce/Synduce
poly.ml
let odot (x1280, x1281) (x1290, x1291) = ((x1290 × x1281) + x1280, x1281 × x1291) let s0 = (0, 1) let f0 x124 x125 = (x125, x124) let rec h = function CNil -> s0 | Single(a) -> f0 x a | Concat(y, z) -> odot (h y) (h z)
null
https://raw.githubusercontent.com/synduce/Synduce/d453b04cfb507395908a270b1906f5ac34298d29/extras/solutions/lifting/poly.ml
ocaml
let odot (x1280, x1281) (x1290, x1291) = ((x1290 × x1281) + x1280, x1281 × x1291) let s0 = (0, 1) let f0 x124 x125 = (x125, x124) let rec h = function CNil -> s0 | Single(a) -> f0 x a | Concat(y, z) -> odot (h y) (h z)
73253e2c2750f6c03a2528800bf78c97ab67217684d55f461487d4afa44fd8e4
racket/typed-racket
shallow-contract.rkt
#lang racket/base ;; Test shallow contract utils (module+ test (require rackunit typed-racket/utils/shallow-contract) (test-case "procedure-arity-includes-keywords?:no-kws" (for ((f (in-list (list (lambda () (void)) (lambda args (void)))))) (check-true (procedure-...
null
https://raw.githubusercontent.com/racket/typed-racket/1dde78d165472d67ae682b68622d2b7ee3e15e1e/typed-racket-test/succeed/shallow/shallow-contract.rkt
racket
Test shallow contract utils
#lang racket/base (module+ test (require rackunit typed-racket/utils/shallow-contract) (test-case "procedure-arity-includes-keywords?:no-kws" (for ((f (in-list (list (lambda () (void)) (lambda args (void)))))) (check-true (procedure-arity-includes-keywords? f '() ...
2a435e94ac5cdbae097dca22c6a5d169b64db33966e9e597dccb945fffa0eb8b
phadej/cabal-extras
Located.hs
{-# LANGUAGE DeriveFoldable #-} {-# LANGUAGE DeriveFunctor #-} {-# LANGUAGE DeriveTraversable #-} module CabalDocspec.Located where import Peura import Language.Haskell.Lexer (Pos, line, column) type Located = GenLocated Pos data GenLocated l e = L l e deriving (Eq, Show, Functor, Foldable, Traversable) u...
null
https://raw.githubusercontent.com/phadej/cabal-extras/378cac5495b829794d67f243b27a9317eeed0858/cabal-docspec/src/CabalDocspec/Located.hs
haskell
# LANGUAGE DeriveFoldable # # LANGUAGE DeriveFunctor # # LANGUAGE DeriveTraversable #
module CabalDocspec.Located where import Peura import Language.Haskell.Lexer (Pos, line, column) type Located = GenLocated Pos data GenLocated l e = L l e deriving (Eq, Show, Functor, Foldable, Traversable) unLoc :: GenLocated l e -> e unLoc (L _ e) = e prettyPos :: Pos -> String prettyPos pos = "in comment at...
ced347951cf76035ad5bca0d617afdfdeeb9e3f45ab8e90769a0ab869c519637
i-am-tom/papers
Main.hs
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE BlockArguments # # LANGUAGE DefaultSignatures # {-# LANGUAGE DeriveTraversable #-} # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # # LANGUAGE GeneralisedNewtypeDeriving # # LANGUAGE ImportQualifiedPost # # LANGUAGE LambdaCase...
null
https://raw.githubusercontent.com/i-am-tom/papers/a19458ef72cceb2a3d906906eaf546884d4fe475/applicative-programming-with-effects/Main.hs
haskell
# LANGUAGE DeriveTraversable # -------------------------------------------------------------------- -am-tom/learn-me-a-haskell/blob/master/src/Utils/Lift.hs -------------------------------------------------------------------- ... and again K S -------------------------------------------------------------------- di...
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE BlockArguments # # LANGUAGE DefaultSignatures # # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # # LANGUAGE GeneralisedNewtypeDeriving # # LANGUAGE ImportQualifiedPost # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables #...
5471ad8669f49986dc007bd6122b0f4974342e6af214f6dad6f45ff941fd3b96
Kakadu/fp2022
Parser.mli
* Copyright 2021 - 2022 , Startsev Matvey * SPDX - License - Identifier : LGPL-3.0 - or - later open Ast type 'a parse_rez = Parsed of 'a | Failed of string val parse : string -> (ast, string) result val eval : string -> ast parse_rez
null
https://raw.githubusercontent.com/Kakadu/fp2022/5c1af410ae16b3bd68dc171412d99ce670f7f127/asm/lib/Parser.mli
ocaml
* Copyright 2021 - 2022 , Startsev Matvey * SPDX - License - Identifier : LGPL-3.0 - or - later open Ast type 'a parse_rez = Parsed of 'a | Failed of string val parse : string -> (ast, string) result val eval : string -> ast parse_rez
12c511eb83986dd3e6c7b30f55664e9675489d584c02272d3f8c8396231addb1
kind2-mc/kind2
lustreNode.mli
This file is part of the Kind 2 model checker . Copyright ( c ) 2015 by the Board of Trustees of the University of Iowa 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 a...
null
https://raw.githubusercontent.com/kind2-mc/kind2/f353437dc4f4f9f0055861916e5cbb6e564cfc65/src/lustre/lustreNode.mli
ocaml
* {1 Types} * Call condition: activate or restart * A call to a node Calls are uniquely identified by the position, no two calls may share the same position, therefore the [call_pos] must not be a dummy position. * Position of node call in input file * Identifier of the called node * Boolean activati...
This file is part of the Kind 2 model checker . Copyright ( c ) 2015 by the Board of Trustees of the University of Iowa 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 a...
92042118c2d634d4fdb90279168859fe41a3dd5b20d2e248dd2fd2e0e58542c1
ExternalReality/SednaDBXML
Setup.hs
#!/usr/bin/env runhaskell module Main (main) where import Distribution.Simple main = defaultMain
null
https://raw.githubusercontent.com/ExternalReality/SednaDBXML/1e9537274e67a498545ebc84073eb59c18bb0ffb/Setup.hs
haskell
#!/usr/bin/env runhaskell module Main (main) where import Distribution.Simple main = defaultMain