_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
fe80e74b8f19f886b8de6fe80c10930f611eb0b839880ee988c1e747234ba2f2
Mathnerd314/stroscot
system_f_fail.hs
I = λx.x K = λx.λy.x ω = test = ( λzy.y(zI)(zK ) ) ω I = λx.x K = λx.λy.x ω = λx.x x test = (λzy.y(zI)(zK)) ω -} data X a = X { unX :: X a -> a } i :: p -> p i = \x -> x k :: p1 -> p2 -> p1 k = \x y -> x ω :: X a -> a ω = \x -> unX x x test = (\z y -> y (z (X i)) (z (X k))) ω test2 :: ((a -> a) -> (d -> c...
null
https://raw.githubusercontent.com/Mathnerd314/stroscot/f0fe28f7a41fc4b87d6b19bb2f35c9b5b16f8c78/tests/system_f_fail.hs
haskell
λ y . y (λ x . x) (λ y . λ x . λ y . x)
I = λx.x K = λx.λy.x ω = test = ( λzy.y(zI)(zK ) ) ω I = λx.x K = λx.λy.x ω = λx.x x test = (λzy.y(zI)(zK)) ω -} data X a = X { unX :: X a -> a } i :: p -> p i = \x -> x k :: p1 -> p2 -> p1 k = \x y -> x ω :: X a -> a ω = \x -> unX x x test = (\z y -> y (z (X i)) (z (X k))) ω test2 :: ((a -> a) -> (d -> c...
b0a8cfc2e1ebf43c262361d45ed604f34d7fff1dd5940148abfa0e878fd51adb
dradtke/Lisp-Text-Editor
struct.lisp
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*- ;;; ;;; struct.lisp --- CFFI wrapper for structs. We need to save on lisp ;;; side only values of struct field, not pointer on ;;; the struct to be able to garbage collect it ;;; Copyright ( C ) 2011 , < > ;;; (in-package :cffi-object)...
null
https://raw.githubusercontent.com/dradtke/Lisp-Text-Editor/b0947828eda82d7edd0df8ec2595e7491a633580/quicklisp/dists/quicklisp/software/gtk-cffi-20120208-cvs/cffi/struct.lisp
lisp
-*- Mode: lisp; indent-tabs-mode: nil -*- struct.lisp --- CFFI wrapper for structs. We need to save on lisp side only values of struct field, not pointer on the struct to be able to garbage collect it (eval-when (:compile-toplevel :load-toplevel :execute) (format t "Alloca...
Copyright ( C ) 2011 , < > (in-package :cffi-object) (defclass struct (object) ((value :documentation "Assoc list (field-name . field-value)*")) (:documentation "If value bound, use it, else use pointer. Struct may be used in OBJECT cffi-type or STRUCT cffi-type")) (defmethod gconstructor ((struct struct) &...
844153cbab3adae1028f01405b07c39cdb7d04cabc331cf061c8267599dc76c5
kronkltd/jiksnu
pubsub_actions_test.clj
(ns jiksnu.modules.core.actions.pubsub-actions-test (:require [jiksnu.modules.core.actions.feed-subscription-actions :as actions.feed-subscription] [jiksnu.modules.core.actions.pubsub-actions :as actions.pubsub] [jiksnu.test-helper :as th] [midje.sweet :refer :all])) (th/module-te...
null
https://raw.githubusercontent.com/kronkltd/jiksnu/8c91e9b1fddcc0224b028e573f7c3ca2f227e516/test/jiksnu/modules/core/actions/pubsub_actions_test.clj
clojure
(ns jiksnu.modules.core.actions.pubsub-actions-test (:require [jiksnu.modules.core.actions.feed-subscription-actions :as actions.feed-subscription] [jiksnu.modules.core.actions.pubsub-actions :as actions.pubsub] [jiksnu.test-helper :as th] [midje.sweet :refer :all])) (th/module-te...
260fd4863e9fcc9bdc22236a57e5ad3c1dc8efaeccca63ad20a9a2784d0c0027
clojurewerkz/statistiker
k_nearest_neighbours.clj
(ns clojurewerkz.statistiker.classification.k-nearest-neighbours (:require [clojurewerkz.statistiker.distance :as distance] [clojurewerkz.statistiker.utils :refer [map-groups select-keys-order-dependent]])) (defn make-model [data] (->> data (map (fn [[label items]] (mapv #(vector...
null
https://raw.githubusercontent.com/clojurewerkz/statistiker/f056f68c975cf3d6e0f1c8212aef9114d4eb657c/src/clj/clojurewerkz/statistiker/classification/k_nearest_neighbours.clj
clojure
(ns clojurewerkz.statistiker.classification.k-nearest-neighbours (:require [clojurewerkz.statistiker.distance :as distance] [clojurewerkz.statistiker.utils :refer [map-groups select-keys-order-dependent]])) (defn make-model [data] (->> data (map (fn [[label items]] (mapv #(vector...
0624481dc02af1ff4fdd2a23a6144128a9677eecf648a0e1df75b5210f4f629a
rururu/rete4frames
manners_f128.clj
((Guest name 1 sex m hobby h2) (Guest name 1 sex m hobby h3) (Guest name 1 sex m hobby h1) (Guest name 1 sex m hobby h4) (Guest name 1 sex m hobby h5) (Guest name 2 sex f hobby h3) (Guest name 2 sex f hobby h2) (Guest name 2 sex f hobby h1) (Guest name 2 sex f hobby h4) (Guest name 2 sex f hobby h5) (Guest na...
null
https://raw.githubusercontent.com/rururu/rete4frames/b4c19af125db0918c1cf57240b1dafd768ffc52a/examples/manners_f128.clj
clojure
((Guest name 1 sex m hobby h2) (Guest name 1 sex m hobby h3) (Guest name 1 sex m hobby h1) (Guest name 1 sex m hobby h4) (Guest name 1 sex m hobby h5) (Guest name 2 sex f hobby h3) (Guest name 2 sex f hobby h2) (Guest name 2 sex f hobby h1) (Guest name 2 sex f hobby h4) (Guest name 2 sex f hobby h5) (Guest na...
29c0f25eed3847b38e7e39db8aa696fe47742f31ee719cfc7b7f59b2fc1ae8a9
Ucombinator/parsing-with-zippers
pwZ_WorklistWithLookahead_Help.ml
open PwZ_WorklistWithLookahead let concat_map (f : 'a -> 'b list) (l : 'a list) : 'b list = List.concat (List.map f l) let plug (p : pos) ((e, c) : zipper) : exp list = let rec up (e : exp') (m : mem) : exp list = let e' = { m = m_0; e = e; first = [| |] } in m.end_ <- p; m.result <- e'; concat_ma...
null
https://raw.githubusercontent.com/Ucombinator/parsing-with-zippers/168252c3598f7e704b8484bb469b37aa1a9b0313/pwZ_WorklistWithLookahead_Help.ml
ocaml
open PwZ_WorklistWithLookahead let concat_map (f : 'a -> 'b list) (l : 'a list) : 'b list = List.concat (List.map f l) let plug (p : pos) ((e, c) : zipper) : exp list = let rec up (e : exp') (m : mem) : exp list = let e' = { m = m_0; e = e; first = [| |] } in m.end_ <- p; m.result <- e'; concat_ma...
33e3124a5476c07176af4be4c84497e8fe08d1c1d8abea1cfcbe3dc9f0144606
learnuidev/grok
decks_test.clj
(ns grok.db.decks-test (:require [clojure.test :refer [is deftest testing use-fixtures]] [datomic.api :as d] [clojure.spec.alpha :as s] [clojure.test.check.generators :as gen] [grok.db.decks :as SUT] [grok.db.with-db :refer [with-db *conn*]])) (use-fixtures...
null
https://raw.githubusercontent.com/learnuidev/grok/533bcdf2a27fe85e48a5cd477f71cbb5d1799034/test/grok/db/decks_test.clj
clojure
(ns grok.db.decks-test (:require [clojure.test :refer [is deftest testing use-fixtures]] [datomic.api :as d] [clojure.spec.alpha :as s] [clojure.test.check.generators :as gen] [grok.db.decks :as SUT] [grok.db.with-db :refer [with-db *conn*]])) (use-fixtures...
236ca39b87ceee18dc874c167392b50ebe595763f5d7e31941a38a5b5f68cb30
lamdu/lamdu
Language.hs
-- | Language definitions {-# OPTIONS -O0 #-} # LANGUAGE TemplateHaskell , FlexibleInstances , TypeFamilies # # LANGUAGE MultiParamTypeClasses , UndecidableInstances , ConstraintKinds # module Lamdu.I18N.Language ( Language(..), lFonts, lTitle, lCasing ) where import qualified Control.Lens as Lens import quali...
null
https://raw.githubusercontent.com/lamdu/lamdu/e2130b878559fd2032e53c8787a2855bbc19ee99/src/Lamdu/I18N/Language.hs
haskell
| Language definitions # OPTIONS -O0 # Whether the language supports capitalization (i.e has upper-case and lower-case)
# LANGUAGE TemplateHaskell , FlexibleInstances , TypeFamilies # # LANGUAGE MultiParamTypeClasses , UndecidableInstances , ConstraintKinds # module Lamdu.I18N.Language ( Language(..), lFonts, lTitle, lCasing ) where import qualified Control.Lens as Lens import qualified Data.Aeson.TH.Extended as JsonTH import q...
e6426f208e7ded75cc24e7d9ba8c3715cbcb162d0ea4a787e38e14ad927feb4d
cedlemo/OCaml-GI-ctypes-bindings-generator
Separator_menu_item.ml
open Ctypes open Foreign type t = unit ptr let t_typ : t typ = ptr void let create = foreign "gtk_separator_menu_item_new" (void @-> returning (ptr Widget.t_typ))
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Separator_menu_item.ml
ocaml
open Ctypes open Foreign type t = unit ptr let t_typ : t typ = ptr void let create = foreign "gtk_separator_menu_item_new" (void @-> returning (ptr Widget.t_typ))
07cacc630e64d8168350e7bb1f49b70486bffc0c87a2336c794b3b78a1a49bdd
ocaml/merlin
from_application.ml
module Make(X : sig type t end) = struct type t = X.t list end module A = struct type t = int end type a = A module M1 = Make(A) module M2 = Make(struct type indir = a let _noise = () type t = indir end)
null
https://raw.githubusercontent.com/ocaml/merlin/e576bc75f11323ec8489d2e58a701264f5a7fe0e/tests/test-dirs/locate/functors/f-from_application.t/from_application.ml
ocaml
module Make(X : sig type t end) = struct type t = X.t list end module A = struct type t = int end type a = A module M1 = Make(A) module M2 = Make(struct type indir = a let _noise = () type t = indir end)
228202d8e67a15a231b28f1645e30314cdc883fbc0dbc733ceb885ac22edfd30
michaelballantyne/ee-lib
splicing.rkt
#lang racket/base (require ee-lib/define (for-syntax racket/base racket/pretty syntax/parse ee-lib syntax/stx racket/match)) (define-literal-forms spl "cannot be used in Racket" (spl-block spl-define spl-define-syntax spl-begin spl-splicing-let)) (begin-for-syntax (define spl-def-bind! (m...
null
https://raw.githubusercontent.com/michaelballantyne/ee-lib/1fd1f14ca84165055c3e4991543db19cb0a3176a/test/splicing.rkt
racket
(pretty-print (syntax-debug-info (flip-intro-scope #'x))) Definitions should splice out of spl-splicing-let Abstractions over definitions should work, including through begin Expansions of macros defined in the splicing context should apply use-site scopes. The frame-id optimization should avoid use-site scopes in...
#lang racket/base (require ee-lib/define (for-syntax racket/base racket/pretty syntax/parse ee-lib syntax/stx racket/match)) (define-literal-forms spl "cannot be used in Racket" (spl-block spl-define spl-define-syntax spl-begin spl-splicing-let)) (begin-for-syntax (define spl-def-bind! (m...
803de89f76ce0f1900adeea8d5c046e4a0d8a7052a4f99db023db32f0b326173
soegaard/little-helper
generic-bag.scm
generic-bag.scm -- 5th November 2005 -- ;;; Bags implemented on top of sets. ;; This module exports (eventually) a macro, that implements a bag using on top a given set (require (lib "67.ss" "srfi") (lib "42.ss" "srfi") (only (lib "list.ss") foldl)) ;;; REPRESENTATION...
null
https://raw.githubusercontent.com/soegaard/little-helper/26249c688e5adf1e2535c405c6289030eff561b4/planet/galore.plt/2/2/private/generic-bag.scm
scheme
Bags implemented on top of sets. This module exports (eventually) a macro, that implements a bag using REPRESENTATION A bag is represented a set of element/number-of pairs. (define (bag cmp . xs) (insert* xs (empty cmp))) f : elm alpha -> alpha TODO: Eliminate temporary list f : elm no alpha -> a...
generic-bag.scm -- 5th November 2005 -- on top a given set (require (lib "67.ss" "srfi") (lib "42.ss" "srfi") (only (lib "list.ss") foldl)) (define-struct bag (compare set-of-element/number-pairs)) (define elm car) (define no cdr) (define elms bag-set-o...
740a607337920ca2e40690a6c3a4d7a2fd6f039bc127ac3107ac12e67d2fb1d9
wardle/pc4
projects.clj
(ns com.eldrix.pc4.rsdb.projects "Support for rsdb projects. These represent logical clinical services or clinical research projects. They are fundamental in supporting the finely-grained security model; linked to patients by virtue of an 'episode' and linked to professionals by virtue of user registration. ...
null
https://raw.githubusercontent.com/wardle/pc4/f0defd8872ed2864e201317a6e9453887688ff69/pc4-rsdb/src/com/eldrix/pc4/rsdb/projects.clj
clojure
linked to patients by virtue of an 'episode' a user is active if any of their roles for this project are active the salt must match the secret TODO: put into a transaction it is simply that a patient should not have already registered? -> simply return that episode has a pending referral for this project? -> reg...
(ns com.eldrix.pc4.rsdb.projects "Support for rsdb projects. These represent logical clinical services or clinical research projects. They are fundamental in supporting the and linked to professionals by virtue of user registration. t_patient <<->> t_episode <<-> t_project <<-> t_project_user <-> t_user ...
b313587b6dd1b192cd6b1e42713d7c19772c0399615210175b5a1f90ed3e3c64
abdulapopoola/SICPBook
3.04.scm
#lang planet neil/sicp (define (make-monitored proc) (let ((counter 0)) (define (dispatch m) (cond ((eq? m 'how-many-calls?) counter) ((eq? m 'reset) (set! counter 0)) (else (set! counter (+ counter 1)) (proc m)))) disp...
null
https://raw.githubusercontent.com/abdulapopoola/SICPBook/c8a0228ebf66d9c1ddc5ef1fcc1d05d8684f090a/Chapter%203/3.1/3.04.scm
scheme
#lang planet neil/sicp (define (make-monitored proc) (let ((counter 0)) (define (dispatch m) (cond ((eq? m 'how-many-calls?) counter) ((eq? m 'reset) (set! counter 0)) (else (set! counter (+ counter 1)) (proc m)))) disp...
2097e1eac6edf72f77627caae57da0804f706a198a8988a10c7197ed4e12ba22
spartango/CS153
compile.ml
(* Compile Fish AST to MIPS AST *) open Mips open Ast open Optimize exception IMPLEMENT_ME type result = { code : Mips.inst list; data : Mips.label list } (* generate fresh labels *) let label_counter = ref 0 let new_int() = (label_counter := (!label_counter) + 1; !label_counter) let new_label() = ...
null
https://raw.githubusercontent.com/spartango/CS153/16faf133889f1b287cb95c1ea1245d76c1d8db49/ps2/compile.ml
ocaml
Compile Fish AST to MIPS AST generate fresh labels sets of variables -- Ocaml Set and Set.S a table of variables that we need for the code segment generate a fresh temporary variable and store it in the variables set. make sure we don't already have a variable with the same name! reset internal state fin...
open Mips open Ast open Optimize exception IMPLEMENT_ME type result = { code : Mips.inst list; data : Mips.label list } let label_counter = ref 0 let new_int() = (label_counter := (!label_counter) + 1; !label_counter) let new_label() = "L" ^ (string_of_int (new_int())) module VarSet = Set.Make(str...
4a1001331b0fdcbdc94395466bad8eeda1d2a22a84c1ad27e9b47a19d945fce7
geophf/1HaskellADay
Exercise.hs
module Y2017.M12.D14.Exercise where - The problem with yesterday 's problem / solution is n't so much a ' problem , ' per se , as it is a sense of dissatisfaction on my part . I mean , okay , there are 66 composable dates in 2017 , but weekends , too ? Who works on the weekend ? I mean , besides me and the oth...
null
https://raw.githubusercontent.com/geophf/1HaskellADay/514792071226cd1e2ba7640af942667b85601006/exercises/HAD/Y2017/M12/D14/Exercise.hs
haskell
} for some reason. With the definition of vacuous, above, answer the following question: How many composable dates are there that are not weekends? What is the diff? That is to say? How many composable dates are there that
module Y2017.M12.D14.Exercise where - The problem with yesterday 's problem / solution is n't so much a ' problem , ' per se , as it is a sense of dissatisfaction on my part . I mean , okay , there are 66 composable dates in 2017 , but weekends , too ? Who works on the weekend ? I mean , besides me and the oth...
66fc9f890dde78a29a82b587ab593a49d669b66970c3d75b5f6526c03bf586bf
vydd/easing
package-demo.lisp
;;;; package-demo.lisp (defpackage #:easing-demo (:use #:cl #:sketch) (:export :demo))
null
https://raw.githubusercontent.com/vydd/easing/1601a5f7413ba92c355d95a7d5200b648ddcdf35/demo/package-demo.lisp
lisp
package-demo.lisp
(defpackage #:easing-demo (:use #:cl #:sketch) (:export :demo))
dea2084a1b14f6db4ba8b684071621d57e2f7292588c7542e13b6e9728165df3
chetmurthy/pa_ppx
pa_import.ml
(* camlp5r *) (* pa_import.ml,v *) Copyright ( c ) INRIA 2007 - 2017 #load "pa_extend.cmo"; #load "q_MLast.cmo"; #load "pa_macro.cmo"; #load "pa_macro_gram.cmo"; #load "pa_extfun.cmo"; open Asttools; open MLast; open Pa_ppx_utils ; open Pa_ppx_base ; open Pa_passthru ; open Ppxutil ; value debug = Pa_passthru.debu...
null
https://raw.githubusercontent.com/chetmurthy/pa_ppx/7c662fcf4897c978ae8a5ea230af0e8b2fa5858b/pa_import/pa_import.ml
ocaml
camlp5r pa_import.ml,v calls lazy_init() so we're sure of being inited
Copyright ( c ) INRIA 2007 - 2017 #load "pa_extend.cmo"; #load "q_MLast.cmo"; #load "pa_macro.cmo"; #load "pa_macro_gram.cmo"; #load "pa_extfun.cmo"; open Asttools; open MLast; open Pa_ppx_utils ; open Pa_ppx_base ; open Pa_passthru ; open Ppxutil ; value debug = Pa_passthru.debug ; value mli_only = ref False ; v...
d6a6b4d183c764fb29ce53a5c15568630d95e513a239f073625cb3fb891a30fa
yav/hobbit
DFS.hs
module Depend.DFS(Graph,buildGraph,scc,SCC(..),compDefs) where from " Structuring Depth - First Search Algorithms in Haskell " by and import Array import Data.Array.ST -- hiding (HasBounds(bounds),indices) import Control.Monad.ST type Graph vertex = Array vertex [vertex] vertices ...
null
https://raw.githubusercontent.com/yav/hobbit/31414ba1188f4b39620c2553b45b9e4d4aa40169/src/Depend/DFS.hs
haskell
hiding (HasBounds(bounds),indices)
module Depend.DFS(Graph,buildGraph,scc,SCC(..),compDefs) where from " Structuring Depth - First Search Algorithms in Haskell " by and import Array import Control.Monad.ST type Graph vertex = Array vertex [vertex] vertices :: Ix vertex => Graph vertex -> [vertex] vertices ...
f86c59d4026d49cbf9825a12a978360b0d73540e24b5d644e70d7670f42d082e
Sergeileduc/Edit-comics-GIMP
script-clean-zone.scm
(define (script-fu-clean-zone image drawable) ;Prep (gimp-context-push) (gimp-image-undo-group-start image) ( 2 par défaut ) si vous voulez un script avec plus tolérant (gimp-context-set-sample-threshold-int 2) ;Context (gimp-context-set-paint-mode LAYER-MODE-NORMAL) (gimp-context-set-opacity 100...
null
https://raw.githubusercontent.com/Sergeileduc/Edit-comics-GIMP/0bc1a89784fadbaf2118251dccb297ff76d0712e/scripts/script-clean-zone.scm
scheme
Prep Context test la sélection utilisateur est vide ACTIONS DU SCRIPT end let end if couleur si non, message "pas de selection" end if selection utilisateur end define Gimp register Gimp menu register
(define (script-fu-clean-zone image drawable) (gimp-context-push) (gimp-image-undo-group-start image) ( 2 par défaut ) si vous voulez un script avec plus tolérant (gimp-context-set-sample-threshold-int 2) (gimp-context-set-paint-mode LAYER-MODE-NORMAL) (gimp-context-set-opacity 100) selection utili...
cfba59d75acc6711de0c7c8264532d24b5b7d0adbd6d5927f79ca3295be9703d
schell/odin
Picture.hs
# LANGUAGE FlexibleContexts # # LANGUAGE TupleSections # module Odin.Engine.GUI.Picture where import Control.Monad.IO.Class (MonadIO (..)) import Odin.Engine import Odin.Engine.Slots slotPicture :: (MonadIO m, MonadSafe m) => OdinRenderer v -> Picture GLuint v a -> m (a, Slot ...
null
https://raw.githubusercontent.com/schell/odin/97ae1610a7abd19aa150bc7dfc132082d88ca9ea/odin-engine/src/Odin/Engine/GUI/Picture.hs
haskell
# LANGUAGE FlexibleContexts # # LANGUAGE TupleSections # module Odin.Engine.GUI.Picture where import Control.Monad.IO.Class (MonadIO (..)) import Odin.Engine import Odin.Engine.Slots slotPicture :: (MonadIO m, MonadSafe m) => OdinRenderer v -> Picture GLuint v a -> m (a, Slot ...
20c0282b62fb5ef7ff54293f4dfac5acd3ce60e571519d4366b5cc1e4584e41f
iconnect/api-tools
CBOR.hs
# LANGUAGE CPP # {-# LANGUAGE TemplateHaskell #-} module Data.API.Tools.CBOR ( cborTool ) where import Data.API.TH import Data.API.Tools.Combinators import Data.API.Tools.Datatypes import Data.API.Tools.Enum import Data.API.T...
null
https://raw.githubusercontent.com/iconnect/api-tools/3d7b4dfadf82c7cb859b515d033447bd1d8ef6c6/src/Data/API/Tools/CBOR.hs
haskell
# LANGUAGE TemplateHaskell # 'datatypesTool'. This depends on 'enumTool'. to Word Micro-optimization: we use the statically known @len@ value instead of creating a list of thunks from the argument of @encodeRecordFields@ and dynamically calculating it's length, long before the list is fully forced. an...
# LANGUAGE CPP # module Data.API.Tools.CBOR ( cborTool ) where import Data.API.TH import Data.API.Tools.Combinators import Data.API.Tools.Datatypes import Data.API.Tools.Enum import Data.API.Types import Control.Applicative i...
5e39f60836bdbbe209bd02d6d66a1259c9ea560680fa7471e9a08de54bcdc11f
namin/metamk
prooftree-tests.scm
(load "mk.scm") (load "utils.scm") (load "prooftree.scm") (load "meta.scm") (load "matche.scm") (load "ex-peano.scm") (load "ex-stlc.scm") (load "test-check.scm") (test-check "pluso-prooftree" (run 3 (q) (fresh (a b c proof) (== q `((,a ,b ,c) ,proof)) ((prooftree pluso-clause-case) `(pluso ,a...
null
https://raw.githubusercontent.com/namin/metamk/8a6084888c87444a84f18cf6e470456837b75cfc/prooftree-tests.scm
scheme
(load "mk.scm") (load "utils.scm") (load "prooftree.scm") (load "meta.scm") (load "matche.scm") (load "ex-peano.scm") (load "ex-stlc.scm") (load "test-check.scm") (test-check "pluso-prooftree" (run 3 (q) (fresh (a b c proof) (== q `((,a ,b ,c) ,proof)) ((prooftree pluso-clause-case) `(pluso ,a...
96a14fded3ff9f6cdb181883fcd0619da815742c6fe52ea308a33641be521ab8
Andromedans/andromeda
error.ml
(** Error reporting. *) (** Exception [Error (err, msg)] indicates an error of type [err] with error message [msg]. *) exception Error of (Position.t * string * string) (** [error ~loc err_type msg] raises an error of type [err_type], and a message [msg]. The [kfprintf] magic allows one to write [msg] using ...
null
https://raw.githubusercontent.com/Andromedans/andromeda/a5c678450e6c6d4a7cd5eee1196bde558541b994/archive/old-andromeda/error.ml
ocaml
* Error reporting. * Exception [Error (err, msg)] indicates an error of type [err] with error message [msg]. * [error ~loc err_type msg] raises an error of type [err_type], and a message [msg]. The [kfprintf] magic allows one to write [msg] using a format string. Varieties of fatal errors
exception Error of (Position.t * string * string) let error ~loc err_type = let k _ = let _ = Format.pp_close_box Format.str_formatter () in let msg = Format.flush_str_formatter () in raise (Error (loc, err_type, msg)) in Format.pp_open_hovbox Format.str_formatter 2; Format.fprintf Format.s...
301e4c2d4c5ee509649c89ed8a7e1245a814314256e9d2fa5dc30fd7f55cef16
mbutterick/beautiful-racket
funstacker-test.rkt
#lang reader "funstacker.rkt" 4 8 + 3 *
null
https://raw.githubusercontent.com/mbutterick/beautiful-racket/f0e2cb5b325733b3f9cbd554cc7d2bb236af9ee9/beautiful-racket-demo/funstacker-demo/funstacker-test.rkt
racket
#lang reader "funstacker.rkt" 4 8 + 3 *
49199b2cc74644faaecd3f8c163e0544ee4e2e1a69e56b1e9844fedab1d15edb
AbstractMachinesLab/caramel
Normalize.ml
(**************************************************************************) (* *) (* OCamlFormat *) (* *) ...
null
https://raw.githubusercontent.com/AbstractMachinesLab/caramel/7d4e505d6032e22a630d2e3bd7085b77d0efbb0c/vendor/ocamlformat-0.17.0/lib/Normalize.ml
ocaml
************************************************************************ OCamlFormat ...
Copyright ( c ) Facebook , Inc. and its affiliates . This source code is licensed under the MIT license found in open Migrate_ast open Asttypes open Parsetree open Ast_helper type conf = { conf: Conf.t ; normalize_code: Migrate_ast.Parsetree.structure -> Migrate_ast.P...
68bce241a153daff2358ddd5db1a37c460f66df3d3224d4321fc7e2d86827e19
clash-lang/clash-compiler
Monad.hs
# LANGUAGE CPP , FlexibleInstances , DeriveFunctor , DerivingVia # # OPTIONS_GHC -fno - warn - orphans # {-# OPTIONS_GHC -Wno-name-shadowing #-} ----------------------------------------------------------------------------- -- Monadery code used in InteractiveUI -- ( c ) The GHC Team 2005 - 2006 -- ----------------...
null
https://raw.githubusercontent.com/clash-lang/clash-compiler/8e461a910f2f37c900705a0847a9b533bce4d2ea/clash-ghc/src-bin-9.0/Clash/GHCi/UI/Monad.hs
haskell
# OPTIONS_GHC -Wno-name-shadowing # --------------------------------------------------------------------------- --------------------------------------------------------------------------- --------------------------------------------------------------------------- GHCi monad ^ of type @IO a -> IO a@ ^ input line ...
# LANGUAGE CPP , FlexibleInstances , DeriveFunctor , DerivingVia # # OPTIONS_GHC -fno - warn - orphans # Monadery code used in InteractiveUI ( c ) The GHC Team 2005 - 2006 module Clash.GHCi.UI.Monad ( GHCi(..), startGHCi, GHCiState(..), GhciMonad(..), GHCiOption(..), isOptionSet, setOption...
2788d8cc798194368f7881227c99e9775baeb9a2c12808c5b34f1d3db355c808
vernemq/vernemq
vmq_passwd.erl
Copyright 2018 Erlio GmbH Basel Switzerland ( ) %% 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, sof...
null
https://raw.githubusercontent.com/vernemq/vernemq/234d253250cb5371b97ebb588622076fdabc6a5f/apps/vmq_passwd/src/vmq_passwd.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 perm...
Copyright 2018 Erlio GmbH Basel Switzerland ( ) Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(vmq_passwd). -behaviour(auth_on_register_hook). -behaviour(auth_on_register_m5_hook). -behaviour(on_config_change_hoo...
f15f58c2badea2c970bb745f10f7b7a56fd06a45a0ed612505eacb6225810e8a
jaspervdj/hakyll
CompressCss.hs
-------------------------------------------------------------------------------- -- | Module used for CSS compression. The compression is currently in a simple state , but would typically reduce the number of bytes by about 25 % . module Hakyll.Web.CompressCss ( compressCssCompiler , compressCss ) where ...
null
https://raw.githubusercontent.com/jaspervdj/hakyll/af9e29b5456c105dc948bc46c93e989a650b5ed1/lib/Hakyll/Web/CompressCss.hs
haskell
------------------------------------------------------------------------------ | Module used for CSS compression. The compression is currently in a simple ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ------...
state , but would typically reduce the number of bytes by about 25 % . module Hakyll.Web.CompressCss ( compressCssCompiler , compressCss ) where import Data.Char (isSpace) import Data.List (dropWhileEnd, isPrefixOf) import Hakyll.Core.Compiler ...
3c09b20d2b71163ce8b8e07f449e458f18dc91b507439469df9fa547a883f3bf
kupl/LearnML
original.ml
type formula = | True | False | Not of formula | AndAlso of (formula * formula) | OrElse of (formula * formula) | Imply of (formula * formula) | Equal of (exp * exp) and exp = Num of int | Plus of (exp * exp) | Minus of (exp * exp) let rec eval (f : formula) : bool = let rec exp (f : exp) : int = ...
null
https://raw.githubusercontent.com/kupl/LearnML/c98ef2b95ef67e657b8158a2c504330e9cfb7700/result/cafe2/formula/sub94/original.ml
ocaml
type formula = | True | False | Not of formula | AndAlso of (formula * formula) | OrElse of (formula * formula) | Imply of (formula * formula) | Equal of (exp * exp) and exp = Num of int | Plus of (exp * exp) | Minus of (exp * exp) let rec eval (f : formula) : bool = let rec exp (f : exp) : int = ...
72dbef7bbf3713ffd12bcdd36d59bc34b321db2b3db99610d2e4bdd7a3e7fba7
javalib-team/sawja
jCFAOptions.ml
* This file is part of SAWJA * Copyright ( c)2013 ( INRIA ) * * This program is free software : you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation , either version 3 of * the License , or ( at your option ) a...
null
https://raw.githubusercontent.com/javalib-team/sawja/da39f9c1c4fc52a1a1a6350be0e39789812b6c00/src/jCFAOptions.ml
ocaml
Analyse unsound when set to true
* This file is part of SAWJA * Copyright ( c)2013 ( INRIA ) * * This program is free software : you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation , either version 3 of * the License , or ( at your option ) a...
9cff1e3751e613eb0ef669cd6048e6f5b51f8e5b20a86266d582a27e68ed7973
clojure-interop/aws-api
core.clj
(ns com.amazonaws.services.snowball.core (:refer-clojure :only [require comment defn ->]) (:import )) (require '[com.amazonaws.services.snowball.AbstractAmazonSnowball]) (require '[com.amazonaws.services.snowball.AbstractAmazonSnowballAsync]) (require '[com.amazonaws.services.snowball.AmazonSnowball]) (require '[c...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.snowball/src/com/amazonaws/services/snowball/core.clj
clojure
(ns com.amazonaws.services.snowball.core (:refer-clojure :only [require comment defn ->]) (:import )) (require '[com.amazonaws.services.snowball.AbstractAmazonSnowball]) (require '[com.amazonaws.services.snowball.AbstractAmazonSnowballAsync]) (require '[com.amazonaws.services.snowball.AmazonSnowball]) (require '[c...
d96c6f0e6901ae3150833846c22c3646b95a0f8a037552a61a80e86f2e844791
processone/ejabberd
stundisco_tests.erl
%%%------------------------------------------------------------------- Author : < > Created : 22 Apr 2020 by < > %%% %%% ejabberd , Copyright ( C ) 2020 - 2023 ProcessOne %%% %%% This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License ...
null
https://raw.githubusercontent.com/processone/ejabberd/c103182bc7e5b8a8ab123ce02d1959a54e939480/test/stundisco_tests.erl
erlang
------------------------------------------------------------------- This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHA...
Author : < > Created : 22 Apr 2020 by < > ejabberd , Copyright ( C ) 2020 - 2023 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a copy of the GNU General Public License along ...
5fc5d8ad55f2cc62123d2106b93ed3148e8ccb57cd62c5369b5c5d38e3e6283c
40ants/teddy
plot.lisp
(uiop:define-package teddy/plot (:use #:cl) (:import-from #:eazy-gnuplot) (:import-from #:hu.dwim.def #:def #:function #:method #:generic) (:import-from #:teddy/data-frame #:get-column #:get-columns #...
null
https://raw.githubusercontent.com/40ants/teddy/8e46ed3a29d528bc460d9f6fb568ce8fd21c9da7/src/plot.lisp
lisp
(uiop:define-package teddy/plot (:use #:cl) (:import-from #:eazy-gnuplot) (:import-from #:hu.dwim.def #:def #:function #:method #:generic) (:import-from #:teddy/data-frame #:get-column #:get-columns #...
9008f9ce5f027e0fe96bafc10acf607cbdc0397990b392b4af9607ff9c4b0601
hemmi/coq2scala
coq_config.ml
(* DO NOT EDIT THIS FILE: automatically generated by ../configure *) let local = false let coqrunbyteflags = "-dllib -lcoqrun -dllpath '/usr/local/lib/coq'" let coqlib = Some "/usr/local/lib/coq" let configdir = None let datadir = None let docdir = "/usr/local/share/doc/coq" let ocaml = "ocaml" let ocamlc = "ocamlc" l...
null
https://raw.githubusercontent.com/hemmi/coq2scala/d10f441c18146933a99bf2088116bd213ac3648d/coq-8.4pl2/config/coq_config.ml
ocaml
DO NOT EDIT THIS FILE: automatically generated by ../configure
let local = false let coqrunbyteflags = "-dllib -lcoqrun -dllpath '/usr/local/lib/coq'" let coqlib = Some "/usr/local/lib/coq" let configdir = None let datadir = None let docdir = "/usr/local/share/doc/coq" let ocaml = "ocaml" let ocamlc = "ocamlc" let ocamlopt = "ocamlopt" let ocamlmklib = "ocamlmklib" let ocamldep =...
e66078a4b8f8014bd3238714d4a2fea5afb882b18a5de2b4cd6e8f9abe7639ea
ferzcam/tropical-geometry
ConvexHull3.hs
# LANGUAGE FlexibleInstances # module Geometry.ConvexHull3 ( -- * Data types Point3D, Vertex(..), Edge(..), Facet(..), ConvexHull(..), ConflictGraph, -- * Convex hull convexHull3, fromConvexHull, -- * Computations of geometrical objects computeSegment, computeTria...
null
https://raw.githubusercontent.com/ferzcam/tropical-geometry/de366949f28530ac1008c7423122d37488b3b049/library/Geometry/ConvexHull3.hs
haskell
* Data types * Convex hull * Computations of geometrical objects * Operations with points * Testing | Edge as a pair of vertices. When constructing the initial tetrahedron, the order of the vertices must be counterclockwise. | The convex hull of a set is the collection of all the facets that conform that polyhed...
# LANGUAGE FlexibleInstances # module Geometry.ConvexHull3 ( Point3D, Vertex(..), Edge(..), Facet(..), ConvexHull(..), ConflictGraph, convexHull3, fromConvexHull, computeSegment, computeTriangle, computeTetrahedron, fromVertices, isBetween3D, mergePoints, ...
307eb1fe8d713c45d2e06a808a2237e1feaed83805b604941049cab150455842
leo-project/leofs
leo_sync_local_cluster_tests.erl
%%==================================================================== %% LeoStorage %% Copyright ( c ) 2012 - 2018 Rakuten , Inc. %% This file is provided to you 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 co...
null
https://raw.githubusercontent.com/leo-project/leofs/4ff701e0f4a4cf39a968dbe078b9c2412a22f995/apps/leo_storage/test/leo_sync_local_cluster_tests.erl
erlang
==================================================================== Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissi...
LeoStorage Copyright ( c ) 2012 - 2018 Rakuten , Inc. This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(leo_sync_local_...
152f38ccaddb0b834665ec449d1c7124daa4497f2e7de02c6a694d3ffd1b20ba
titola/incudine
error.lisp
Copyright ( c ) 2013 - 2018 ;;; ;;; This library is free software; you can redistribute it and/or ;;; modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either version 2.1 of the License , or ( at your option ) any later version . ;;; ;;; This libra...
null
https://raw.githubusercontent.com/titola/incudine/325174a54a540f4daa67bcbb29780073c35b7b80/contrib/cl-lilv/error.lisp
lisp
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public either This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See...
Copyright ( c ) 2013 - 2018 version 2.1 of the License , or ( at your option ) any later version . You should have received a copy of the GNU Lesser General Public Foundation , Inc. , 51 Franklin Street , Fifth Floor , Boston , MA 02110 - 1301 USA (in-package :lilv) (define-condition lilv-error (simple-...
1ff6e9a5a6ef43f8f4580ed1449950b0ac9141c19ebf72867c156b7941ab0de7
ivanperez-keera/SpaceInvaders
PhysicalDimensions.hs
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * I N V A D E R S * * ...
null
https://raw.githubusercontent.com/ivanperez-keera/SpaceInvaders/0a481947bb7d264f231a20d1edbaf6f050824abe/src/PhysicalDimensions.hs
haskell
:: Angle -> Angle :: Heading -> Heading :: Bearing -> Heading :: Heading -> Bearing Many of the physical dimensions below are related to time, and variables of these types can thus be expected to occur in numerical expressions along with variables of type time. To facilitate things, they should thus share ------...
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * I N V A D E R S * * ...
1fbc7705869f72a9ce95cc70e15174a15c82705c26f60ab532af740371e6b344
gfngfn/SATySFi
fontInfo.ml
open MyUtil open LengthInterface open HorzBox open CharBasis open Types exception InvalidFontAbbrev of font_abbrev exception InvalidMathFontAbbrev of math_font_abbrev exception NotASingleFont of font_abbrev * abs_path exception NotATTCElement of font_abbrev * abs_path * int exception NotASingleMath...
null
https://raw.githubusercontent.com/gfngfn/SATySFi/9f4b68ec5d267f57c8fd73df484a836971412cec/src/frontend/fontInfo.ml
ocaml
-- ignores unused fonts -- temporary -- if the font file is a TrueTypeCollection -- temporary for debug temporary -- ignores unused math fonts -- -- ignores unused math fonts -- temporary -- if the font file does not have a MATH table or is a TrueType Collection -- temporary -- if the font does n...
open MyUtil open LengthInterface open HorzBox open CharBasis open Types exception InvalidFontAbbrev of font_abbrev exception InvalidMathFontAbbrev of math_font_abbrev exception NotASingleFont of font_abbrev * abs_path exception NotATTCElement of font_abbrev * abs_path * int exception NotASingleMath...
4a3dc7bd55dea6cbf64e29690676829e575ab8e86c26d4edacd3d1c412ffd478
SamB/coq
mod_subst.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/SamB/coq/8f84aba9ae83a4dc43ea6e804227ae8cae8086b1/kernel/mod_subst.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** i $Id$ i s [Mod_subst] i debugging ...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Names open Term typ...
8882ed9d200048de7b3a6e154050bb21689d0f89acbbc9c605a848c8922f171d
gcv/appengine-magic
core.clj
(ns appengine-magic.core (:import com.google.apphosting.api.ApiProxy)) (declare appengine-environment-type) (defn open-resource-stream [resource-name] (-> (clojure.lang.RT/baseLoader) (.getResourceAsStream resource-name))) (defn resource-url [resource-name] (-> (clojure.lang.RT/baseLoader) (.getResource res...
null
https://raw.githubusercontent.com/gcv/appengine-magic/facc9fe4945b3becd772d6b053844e572dcc1c73/src/appengine_magic/core.clj
clojure
(ns appengine-magic.core (:import com.google.apphosting.api.ApiProxy)) (declare appengine-environment-type) (defn open-resource-stream [resource-name] (-> (clojure.lang.RT/baseLoader) (.getResourceAsStream resource-name))) (defn resource-url [resource-name] (-> (clojure.lang.RT/baseLoader) (.getResource res...
6158098975108325a7f02360b3b150b8669bba926fbe047cf98ef01e2ba5b024
sol/tinc
RecentCheck.hs
# LANGUAGE LambdaCase # # LANGUAGE RecordWildCards # module Tinc.RecentCheck ( isRecent , markRecent , tincEnvCreationTime ) where import Data.Maybe import Data.Time import System.Directory import System.FilePath import Tinc.Facts import Tinc.Nix import ...
null
https://raw.githubusercontent.com/sol/tinc/427df659df20d548bbe4c7bd0ea76cc13de40238/src/Tinc/RecentCheck.hs
haskell
# LANGUAGE LambdaCase # # LANGUAGE RecordWildCards # module Tinc.RecentCheck ( isRecent , markRecent , tincEnvCreationTime ) where import Data.Maybe import Data.Time import System.Directory import System.FilePath import Tinc.Facts import Tinc.Nix import ...
d4e4c6bdc24f58f79b13dc78c488eb0d57d5a4b1c7078f359fa2864d3a4847ad
input-output-hk/cardano-sl
Graph.hs
# LANGUAGE LambdaCase # module Statistics.Graph ( graphF , writeGraph ) where import Universum hiding (unlines) import Control.Foldl (Fold (..)) import Data.Graph.Inductive.Graph (Graph (mkGraph)) import Data.Graph.Inductive.PatriciaTree (Gr) import Data.G...
null
https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/tools/post-mortem/src/Statistics/Graph.hs
haskell
# LANGUAGE LambdaCase # module Statistics.Graph ( graphF , writeGraph ) where import Universum hiding (unlines) import Control.Foldl (Fold (..)) import Data.Graph.Inductive.Graph (Graph (mkGraph)) import Data.Graph.Inductive.PatriciaTree (Gr) import Data.G...
3ae72751a7dcfadf90b426f3e11b57a43086f13f0656794f081415d3e3c56f49
janestreet/ecaml
test_timer.ml
open! Core open! Async_kernel open! Import open! Timer let test f = let continue = ref true in run_after_i [%here] (sec_ns 0.) ~name:(Symbol.gensym ()) ~docstring:"<docstring>" ~f:(fun () -> print_s [%message "ran"]; continue := false); while_ (fun () -> !continue) ~do_:(fun () ->...
null
https://raw.githubusercontent.com/janestreet/ecaml/25a5a2972b3a94f5529a46363b37670a6c1de195/test/test_timer.ml
ocaml
open! Core open! Async_kernel open! Import open! Timer let test f = let continue = ref true in run_after_i [%here] (sec_ns 0.) ~name:(Symbol.gensym ()) ~docstring:"<docstring>" ~f:(fun () -> print_s [%message "ran"]; continue := false); while_ (fun () -> !continue) ~do_:(fun () ->...
49667a10f14f58d77d82c3bb0c063c003f3924351a1c1eb49c15904e62d446e9
SKA-ScienceDataProcessor/RC
File.hs
# LANGUAGE DeriveDataTypeable , DeriveGeneric , BangPatterns # module DNA.Channel.File ( itemSize , readData, readDataMMap, roundUpDiv , chunkOffset, chunkSize ) where import Data.Vector.Binary () import qualified Data.Vector.Storable as S import qualified Data.Vector.Storable.Mutab...
null
https://raw.githubusercontent.com/SKA-ScienceDataProcessor/RC/1b5e25baf9204a9f7ef40ed8ee94a86cc6c674af/MS2/lib/DNA/Channel/File.hs
haskell
divide up a file in chunkCount chunks functions to read chunkSize * itemSize from a file at offset chunkSize * itemSize read a buffer from a file into pinned memory arguments: size (num of elements of double type), offset, path Unmap buffer fir the vector and blindly cast pointer NOTE: pointer with length is fre...
# LANGUAGE DeriveDataTypeable , DeriveGeneric , BangPatterns # module DNA.Channel.File ( itemSize , readData, readDataMMap, roundUpDiv , chunkOffset, chunkSize ) where import Data.Vector.Binary () import qualified Data.Vector.Storable as S import qualified Data.Vector.Storable.Mutab...
c09892b2316c2e5802cee6ea814fc1e4ff0b9267e9167129261a6ea46bc30ae3
jpmonettas/flow-storm-debugger
remote_websocket_client.clj
(ns flow-storm.remote-websocket-client (:refer-clojure :exclude [send]) (:require [flow-storm.json-serializer :as serializer] [flow-storm.utils :refer [log log-error] :as utils] [flow-storm.runtime.events :as rt-events]) (:import [org.java_websocket.client WebSocketClient] [java...
null
https://raw.githubusercontent.com/jpmonettas/flow-storm-debugger/c7af52464cb70a04582f175d644435ca7cca95db/src-inst/flow_storm/remote_websocket_client.clj
clojure
websocket library isn't clear about thread safty of send lets synchronize just in case send all pending events the debugger that just connected is ready to start processing events
(ns flow-storm.remote-websocket-client (:refer-clojure :exclude [send]) (:require [flow-storm.json-serializer :as serializer] [flow-storm.utils :refer [log log-error] :as utils] [flow-storm.runtime.events :as rt-events]) (:import [org.java_websocket.client WebSocketClient] [java...
03273dd83e3b87290833573cabc6549ba3901e4f710807876ceb8a16c7bc8d57
mzp/coq-for-ipad
extract_crc.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/mzp/coq-for-ipad/4fb3711723e2581a170ffd734e936f210086396e/src/ocaml-3.12.0/otherlibs/dynlink/extract_crc.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 GNU Library General Public License , with $ I d : extract_crc.ml 9547 2010 - 01...
cbf72b08296ae21fa40dd0b8225a4dbc9f43d2166aa231911a63c80590ab1ff7
erlang/otp
docgen_xml_to_chunk.erl
%% -*- erlang -*- %% %CopyrightBegin% %% Copyright Ericsson AB 2020 - 2022 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless requi...
null
https://raw.githubusercontent.com/erlang/otp/d95d79d1e363879462d9775316896c02b59771ee/lib/erl_docgen/src/docgen_xml_to_chunk.erl
erlang
-*- erlang -*- %CopyrightBegin% 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 t...
Copyright Ericsson AB 2020 - 2022 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , Created : 1 Nov 2018 by < uabkeld@elxa31hr002 > Does translation of Erlang XML docs to EEP-48 doc chunks . -mod...
353f84bd4210744f090797d67964e84a4b82d97b242e5ee2dec2183f6ee50c62
grin-compiler/ghc-wpc-sample-programs
RegexLike.hs
# LANGUAGE MultiParamTypeClasses , FunctionalDependencies , FlexibleInstances , TypeSynonymInstances # ----------------------------------------------------------------------------- -- | -- Module : Text.Regex.Base.RegexLike Copyright : ( c ) 2006 SPDX - License - Identifier : BSD-3 - Clause -- -- Maint...
null
https://raw.githubusercontent.com/grin-compiler/ghc-wpc-sample-programs/0e3a9b8b7cc3fa0da7c77fb7588dd4830fb087f7/regex-base-0.94.0.0/src/Text/Regex/Base/RegexLike.hs
haskell
--------------------------------------------------------------------------- | Module : Text.Regex.Base.RegexLike Maintainer : Stability : experimental All the classes are declared here, and some common type aliases, and and 'Extract' 'ST.Text'. There are no data values. The 'RegexContext' instan...
# LANGUAGE MultiParamTypeClasses , FunctionalDependencies , FlexibleInstances , TypeSynonymInstances # Copyright : ( c ) 2006 SPDX - License - Identifier : BSD-3 - Clause Portability : non - portable ( MPTC+FD ) Classes and instances for Regex matching . the MatchResult data type . The only instanc...
a296ab3d93f6a4786880afc34f60b041303e2861c191b732fe062a4adee75674
achirkin/qua-view
Events.hs
# LANGUAGE TemplateHaskell # {-# LANGUAGE GADTs #-} # LANGUAGE FlexibleContexts # # LANGUAGE TypeFamilies # {-# LANGUAGE Strict #-} -- | Keep all global events to be registered in qua-view module Commons.NoReflex.Events ( -- * Tagging events QEventType (..), QEventTag -- * Event types , UserAc...
null
https://raw.githubusercontent.com/achirkin/qua-view/62626ead828889a1c7ef1fdba4d84324eb5420b3/src/Commons/NoReflex/Events.hs
haskell
# LANGUAGE GADTs # # LANGUAGE Strict # | Keep all global events to be registered in qua-view * Tagging events * Event types | All possible global events in qua-view (those, which are passed between components only). | Some type of user action - interaction with UI. Note, the geometry is loaded, but no...
# LANGUAGE TemplateHaskell # # LANGUAGE FlexibleContexts # # LANGUAGE TypeFamilies # module Commons.NoReflex.Events QEventType (..), QEventTag , UserAction , WorkerMessage , SmallGLInput , ScenarioUpdate * TH helpers , deriveEvent ) where import Data.GADT.Compare (GEq, GCompare) import...
77e8e1295eba0fac63532bd001a6cf2d7abdadcdf373a3a64a00687b46c06eb0
elnewfie/lslforge
Language.hs
----------------------------------------------------------------------------- -- | Module : Text . ParserCombinators . . Language Copyright : ( c ) 1999 - 2001 ( c ) 2008 -- License : BSD-style (see the file libraries/parsec/LICENSE) -- -- Maintainer : -- Stability : pr...
null
https://raw.githubusercontent.com/elnewfie/lslforge/27eb84231c53fffba6bdb0db67bde81c1c12dbb9/lslforge/haskell/src/Text/ParserCombinators/ParsecExtras/Language.hs
haskell
--------------------------------------------------------------------------- | License : BSD-style (see the file libraries/parsec/LICENSE) Maintainer : Stability : provisional A helper module that defines some language definitions that can be used The 'extras' version exists purely to provide better c...
Module : Text . ParserCombinators . . Language Copyright : ( c ) 1999 - 2001 ( c ) 2008 Portability : non - portable ( uses non - portable module Text . ParserCombinators . . ) to instantiate a token parser ( see " Text . ParserCombinators . Parsec . Token " ) . It is ne...
920558310dc2cd0111febfbb6ed3134f70aa25f2736bd5af18beb87f6300a349
jhidding/lyonesse
primitive.scm
Copyright ( C ) ( 2007 ) . All Rights Reserved . ;;; Permission is hereby granted, free of charge, to any person ;;; obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , ;;; including without limitation the rights to use, copy, ...
null
https://raw.githubusercontent.com/jhidding/lyonesse/9d9624e3141ea3acaa670526cbe52c2d6546beef/lyonesse/streams/primitive.scm
scheme
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files including without limitation the rights to use, copy, modify, merge, subject to the following conditions: The above copyright notice and this permission notice shall be EXPRESS OR I...
Copyright ( C ) ( 2007 ) . All Rights Reserved . ( the " Software " ) , to deal in the Software without restriction , publish , distribute , sublicense , and/or sell copies of the Software , and to permit persons to whom the Software is furnished to do so , included in all copies or substantial portions of...
99ebce714f5653c9179a001e3c322dab7bfc8746d2214e91d36f044bb3a65305
marcoheisig/Typo
cmpx.lisp
(in-package #:typo.vm) (defmacro cmpx (name) (flet ((mkname (type) (intern (format nil "~:@(two-arg-~S~S~)" type name) #.*package*))) `(progn (define-fnrecord ,name (real &rest more-reals) (:properties :foldable :movable) (:specializer (if (null more-reals) ...
null
https://raw.githubusercontent.com/marcoheisig/Typo/ab83f62329b3f55846e6649ac9d8027e297f8c7b/code/vm/cmpx.lisp
lisp
(in-package #:typo.vm) (defmacro cmpx (name) (flet ((mkname (type) (intern (format nil "~:@(two-arg-~S~S~)" type name) #.*package*))) `(progn (define-fnrecord ,name (real &rest more-reals) (:properties :foldable :movable) (:specializer (if (null more-reals) ...
0098665e203588a029a5f2400a77916b8bbce331cd5d3b7d0baa5774eb7cd0be
docker-in-aws/docker-in-aws
create.cljs
(ns swarmpit.component.user.create (:require [material.icon :as icon] [material.component :as comp] [material.component.form :as form] [material.component.panel :as panel] [swarmpit.component.mixin :as mixin] [swarmpit.component.state :as state] ...
null
https://raw.githubusercontent.com/docker-in-aws/docker-in-aws/bfc7e82ac82ea158bfb03445da6aec167b1a14a3/ch16/swarmpit/src/cljs/swarmpit/component/user/create.cljs
clojure
(ns swarmpit.component.user.create (:require [material.icon :as icon] [material.component :as comp] [material.component.form :as form] [material.component.panel :as panel] [swarmpit.component.mixin :as mixin] [swarmpit.component.state :as state] ...
badee911edeb425d4b609399cf42347f12fb731f8c2232c40807bd0711c9632d
SOwens/example-compiler
unnestExp.mli
* Example compiler * Copyright ( C ) 2015 - 2016 * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any ...
null
https://raw.githubusercontent.com/SOwens/example-compiler/b155e89c7d9d0ae6ec671ae9cb4356c78dda7ab7/src/unnestExp.mli
ocaml
* Example compiler * Copyright ( C ) 2015 - 2016 * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any ...
e586fa27255459c8e1ed72cd1889b6e479dd2cfaa23cb2ad7531487c0f6c36fc
pfdietz/ansi-test
multiple-value-call.lsp
;-*- Mode: Lisp -*- Author : Created : Fri Oct 18 23:35:07 2002 Contains : Tests of MULTIPLE - VALUE - CALL , MULTIPLE - VALUE - LIST (deftest multiple-value-call.1 (multiple-value-call #'+ (values 1 2) (values) 3 (values 4 5 6)) 21) (deftest multiple-value-call.2 (multiple-value-call 'list) ...
null
https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/data-and-control-flow/multiple-value-call.lsp
lisp
-*- Mode: Lisp -*-
Author : Created : Fri Oct 18 23:35:07 2002 Contains : Tests of MULTIPLE - VALUE - CALL , MULTIPLE - VALUE - LIST (deftest multiple-value-call.1 (multiple-value-call #'+ (values 1 2) (values) 3 (values 4 5 6)) 21) (deftest multiple-value-call.2 (multiple-value-call 'list) nil) (deftest multipl...
546be7dfe9d25bc45122cfb2f0accd6787377860fbf1941bb7880671f45d4067
ashinn/chibi-scheme
diff.scm
;; utility for lcs-with-positions (define (max-seq . o) (if (null? o) (list 0 '()) (let loop ((a (car o)) (ls (cdr o))) (if (null? ls) a (let ((b (car ls))) (if (>= (car a) (car b)) (loop a (cdr ls)) (loop b (cdr ls))))))))...
null
https://raw.githubusercontent.com/ashinn/chibi-scheme/b4471ad6fdb6dd2b7eaf323db6a1bc5476320c03/lib/chibi/diff.scm
scheme
utility for lcs-with-positions > Finds the Longest Common Subsequence between \var{a-ls} and > \var{b-ls}, comparing elements with \var{eq} (default > \scheme{equal?}. Returns this sequence as a list, using the > elements from \var{a-ls}. Uses quadratic time and space. > Variant of \scheme{lcs} which returns the ann...
(define (max-seq . o) (if (null? o) (list 0 '()) (let loop ((a (car o)) (ls (cdr o))) (if (null? ls) a (let ((b (car ls))) (if (>= (car a) (car b)) (loop a (cdr ls)) (loop b (cdr ls)))))))) (define (lcs a-ls b-ls . o) (l...
7d9099f94b9cd4558673c34bfaab3d5288bf3f68f186267053f5760ee875dfbc
caribou/caribou-core
constructors.clj
(ns caribou.field.constructors (:require [caribou.field.id :as id-field] [caribou.field.integer :as integer-field] [caribou.field.decimal :as decimal-field] [caribou.field.string :as string-field] [caribou.field.password :as password-field] [caribou.field.te...
null
https://raw.githubusercontent.com/caribou/caribou-core/6ebd9db4e14cddb1d6b4e152e771e016fa9c55f6/src/caribou/field/constructors.clj
clojure
(ns caribou.field.constructors (:require [caribou.field.id :as id-field] [caribou.field.integer :as integer-field] [caribou.field.decimal :as decimal-field] [caribou.field.string :as string-field] [caribou.field.password :as password-field] [caribou.field.te...
4f9867a0b0a8d9da183d81759f80a1ee15d0266e8d5ca3f480a2deff17cc5861
paurkedal/ocaml-prime
test_accretion_map.ml
Copyright ( C ) 2015 - -2022 Petter A. Urkedal < > * * This library is free software ; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or ( at your * option ) any la...
null
https://raw.githubusercontent.com/paurkedal/ocaml-prime/42efa85317069d726e8e3989e51c24ba03c56b47/tests/test_accretion_map.ml
ocaml
Copyright ( C ) 2015 - -2022 Petter A. Urkedal < > * * This library is free software ; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or ( at your * option ) any la...
eb2ba8d07cd6d1d09eaa9a28858861aa0d5b5b8c4579d885a2134c51d031927f
xsc/invariant
all_test.clj
(ns invariant.core.all-test (:require [clojure.test :refer :all] [invariant.core :as invariant] [invariant.core.protocols :as p] [com.rpl.specter :refer :all])) (deftest t-all-invariant (let [invariant (-> (invariant/on [:elements ALL :name]) (invariant/all...
null
https://raw.githubusercontent.com/xsc/invariant/45425bcc69d0bc896efd5307a640dbdb06b61797/test/invariant/core/all_test.clj
clojure
(ns invariant.core.all-test (:require [clojure.test :refer :all] [invariant.core :as invariant] [invariant.core.protocols :as p] [com.rpl.specter :refer :all])) (deftest t-all-invariant (let [invariant (-> (invariant/on [:elements ALL :name]) (invariant/all...
56200892dab2eea57ea9ab3406dba80ea56b1719dfe43cb283c1afda67473ce3
gwkkwg/cl-containers
Temp.lisp
(in-package #:few) #+Ignore suck site up and output as LML (mapc (lambda (file) (let ((html (net.html.parser:parse-html file))) (setf html (remove-if (lambda (x) (and (consp x) (member (first x) '(:!doctype)))) html))...
null
https://raw.githubusercontent.com/gwkkwg/cl-containers/3d1df53c22403121bffb5d553cf7acb1503850e7/website/stuff/Temp.lisp
lisp
(in-package #:few) #+Ignore suck site up and output as LML (mapc (lambda (file) (let ((html (net.html.parser:parse-html file))) (setf html (remove-if (lambda (x) (and (consp x) (member (first x) '(:!doctype)))) html))...
8d5132ef0614e1a178e2f356a5ea720e975690683014099aedbe98a1580e0abc
ocsigen/tyxml
xml_sigs.mli
TyXML * * Copyright ( C ) 2004 < > * Copyright ( C ) 2011 , * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking exception ; * either version...
null
https://raw.githubusercontent.com/ocsigen/tyxml/8551b673857fdc1defebe7c502ffcb920f04009e/lib/xml_sigs.mli
ocaml
* XML Signatures.
TyXML * * Copyright ( C ) 2004 < > * Copyright ( C ) 2011 , * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking exception ; * either version...
ea9a68e9a6f19ec3b6d7ef0a9d0aa63c630a7e0c2ae9b6c3508edcd42b24eebe
xtdb/xtdb
system_test.clj
(ns xtdb.system-test (:require [xtdb.system :as sys] [clojure.test :as t] [juxt.clojars-mirrors.dependency.v1v0v0.com.stuartsierra.dependency :as dep])) (t/deftest simplest-prep (let [{:keys [start-fn]} (-> (sys/prep-system {:foo (fn [opts] ...
null
https://raw.githubusercontent.com/xtdb/xtdb/e2f51ed99fc2716faa8ad254c0b18166c937b134/test/test/xtdb/system_test.clj
clojure
virtual component for the reference
(ns xtdb.system-test (:require [xtdb.system :as sys] [clojure.test :as t] [juxt.clojars-mirrors.dependency.v1v0v0.com.stuartsierra.dependency :as dep])) (t/deftest simplest-prep (let [{:keys [start-fn]} (-> (sys/prep-system {:foo (fn [opts] ...
9f788a273ede9ebb2bcfbb6486dc2ea959f982cd1922a18cffe3f02d90ff481d
agda/agda
AbstractToConcrete.hs
# LANGUAGE CPP # { - # OPTIONS -fwarn - unused - binds # - } | The translation of abstract syntax to concrete syntax has two purposes . First it allows us to pretty print abstract syntax values without having to write a dedicated pretty printer , and second it serves as a sanity check fo...
null
https://raw.githubusercontent.com/agda/agda/6c7d9d08417d74b99a29af24ac787f979bae4f16/src/full/Agda/Syntax/Translation/AbstractToConcrete.hs
haskell
# SOURCE # Environment ------------------------------------------------------------ ^ Abstract names currently in scope. Unlike the arguments inserted by the system. ^ Concrete names of all definitions in scope ^ Certain builtins (like `fromNat`) have special printing ^ Preserve interaction point ids pick conc...
# LANGUAGE CPP # { - # OPTIONS -fwarn - unused - binds # - } | The translation of abstract syntax to concrete syntax has two purposes . First it allows us to pretty print abstract syntax values without having to write a dedicated pretty printer , and second it serves as a sanity check fo...
28d453528d1636a3192ccd02c114ab3cbe6a4a37e3296df3a40865a5ddd75705
stylewarning/cl-algebraic-data-type
match.lisp
;;;; match.lisp Copyright ( c ) 2013 (in-package #:cl-algebraic-data-type) (defun duplicates (sequence &key (test 'eql)) (let ((table (make-hash-table :test test)) (dupes nil)) (map nil (lambda (item) (if (gethash item table) (pushnew item dupes :test test) ...
null
https://raw.githubusercontent.com/stylewarning/cl-algebraic-data-type/b2568428193a512d141d6b615772d50ceb5f9bca/match.lisp
lisp
match.lisp TODO: Optimize ETYPECASE to be a jump table. Check for duplicate matches. Check for match exhaustiveness. Generate the matching code.
Copyright ( c ) 2013 (in-package #:cl-algebraic-data-type) (defun duplicates (sequence &key (test 'eql)) (let ((table (make-hash-table :test test)) (dupes nil)) (map nil (lambda (item) (if (gethash item table) (pushnew item dupes :test test) (setf...
aa43bc37de6c56fea9087c56864944c6aabaac72f3dd44d333408bee7ece051b
clojure-emacs/refactor-nrepl
other.clj
(ns foo.other)
null
https://raw.githubusercontent.com/clojure-emacs/refactor-nrepl/0306180b932f8363204d5196955565810a0ff48a/.circleci/integration-testing/foo/src/foo/other.clj
clojure
(ns foo.other)
e2a1480a3f6bc4a78d08e1722b2b2df9a379ce0c162c420e31eb636ec78d889d
esl/erlang-web
wpart_db.erl
The contents of this file are subject to the Erlang Web Public License , Version 1.0 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the Erlang Web Public License along with this software . If not , it can be %% retrieved via the world...
null
https://raw.githubusercontent.com/esl/erlang-web/2e5c2c9725465fc5b522250c305a9d553b3b8243/lib/wpart-1.4.1/src/wpart_db.erl
erlang
compliance with the License. You should have received a copy of the retrieved via the world wide web at -consulting.com/. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. ---------------------------------...
The contents of this file are subject to the Erlang Web Public License , Version 1.0 , ( the " License " ) ; you may not use this file except in Erlang Web Public License along with this software . If not , it can be Software distributed under the License is distributed on an " AS IS " The Initial Developer o...
f5fe1cfc89be735e487368c8621fd8fa9d5eef4abdc26cbbfa3cb1cea7bacb6f
yesodweb/persistent
EntityEmbedTest.hs
# LANGUAGE UndecidableInstances # module EntityEmbedTest where -- because we are using a type alias we need to declare in a separate module this is used in EmbedTest import Init mkPersist persistSettings { mpsGeneric = True } [persistUpperCase| ARecord name Text deriving Show Eq Read Ord |] type AnEntity...
null
https://raw.githubusercontent.com/yesodweb/persistent/bf4c3ae430d7e7ec0351a768783d73e6bd265890/persistent-test/src/EntityEmbedTest.hs
haskell
because we are using a type alias we need to declare in a separate module
# LANGUAGE UndecidableInstances # module EntityEmbedTest where this is used in EmbedTest import Init mkPersist persistSettings { mpsGeneric = True } [persistUpperCase| ARecord name Text deriving Show Eq Read Ord |] type AnEntity = Entity ARecord
8b8d8aecb17678d2cd5f8053048efbb41085a3f20ba3c86ada9242488ec3e2a9
okuoku/r7rs-bridge
ack.sps
ACK -- One of the and benchmarks . (import (scheme base) (scheme write) (scheme read)) (define (ack m n) (cond ((= m 0) (+ n 1)) ((= n 0) (ack (- m 1) 1)) (else (ack (- m 1) (ack m (- n 1)))))) (define (main) (let* ((count (read)) (input1 (read)) (input2 (re...
null
https://raw.githubusercontent.com/okuoku/r7rs-bridge/845ac2ef01e2d9626e453ec92fa9b0dcd41473c0/tests/benchmarks/larceny-R6RS/scripts/ack.sps
scheme
r7b: Asset-path procedure The following code is appended to all benchmarks. Given an integer and an object, returns the object without making it too easy for compilers to tell the object will be returned. Given the name of a benchmark, the number of times it should be executed, a thunk that runs the benchmark o...
ACK -- One of the and benchmarks . (import (scheme base) (scheme write) (scheme read)) (define (ack m n) (cond ((= m 0) (+ n 1)) ((= n 0) (ack (- m 1) 1)) (else (ack (- m 1) (ack m (- n 1)))))) (define (main) (let* ((count (read)) (input1 (read)) (input2 (re...
e5e8330ea550ac0e8f715f0f4433c895b5054f491a91807338f70e1ad863d408
CarlosMChica/HaskellBook
StrictTest.hs
{-# LANGUAGE Strict #-} module StrictTest where blah x = 1 main = print (blah undefined) willForce x = 1 willNotForce ~x = 1 data List a = Cons a (List a) | Nil deriving Show sTake :: Int -> List a -> List a sTake n _ | n <= 0 = Nil sTake n Nil = Nil sTake n (Cons x xs) = Cons x (sTake (n - 1) xs) tw...
null
https://raw.githubusercontent.com/CarlosMChica/HaskellBook/86f82cf36cd00003b1a1aebf264e4b5d606ddfad/chapter27/StrictTest.hs
haskell
# LANGUAGE Strict #
module StrictTest where blah x = 1 main = print (blah undefined) willForce x = 1 willNotForce ~x = 1 data List a = Cons a (List a) | Nil deriving Show sTake :: Int -> List a -> List a sTake n _ | n <= 0 = Nil sTake n Nil = Nil sTake n (Cons x xs) = Cons x (sTake (n - 1) xs) twoEls = Cons 1 (Cons unde...
83d521a9c110a41c384cd128359ef7c25941ac1600cf8082b7a06538d8585685
orionsbelt-battlegrounds/obb-rules
state.cljs
(ns obb-demo.state (:require [reagent.core :as reagent])) (defonce app-state (reagent/atom {})) (defn set-page! "Sets the current page to be displayed" [page] (swap! app-state assoc :page page)) (defn current-page "Gets the current page" [] (:page @app-state)) (defn set-page-data! "Sets data for t...
null
https://raw.githubusercontent.com/orionsbelt-battlegrounds/obb-rules/97fad6506eb81142f74f4722aca58b80d618bf45/src/obb_demo/state.cljs
clojure
(ns obb-demo.state (:require [reagent.core :as reagent])) (defonce app-state (reagent/atom {})) (defn set-page! "Sets the current page to be displayed" [page] (swap! app-state assoc :page page)) (defn current-page "Gets the current page" [] (:page @app-state)) (defn set-page-data! "Sets data for t...
03e3afac83a7516f3e87466609e09e38081173e2575dfff8dae409f5cea5b0bf
rems-project/cerberus
symRel.ml
module SymPair = struct type t = Sym.t * Sym.t let compare a b = Lem_basic_classes.pairCompare Sym.compare Sym.compare a b end include Pset type t = SymPair.t Pset.set let empty = Pset.empty SymPair.compare let transitiveClosure = Pset.tc SymPair.compare
null
https://raw.githubusercontent.com/rems-project/cerberus/124c93f10cb4c235f6396adec82ebf9563daeb7e/backend/cn/symRel.ml
ocaml
module SymPair = struct type t = Sym.t * Sym.t let compare a b = Lem_basic_classes.pairCompare Sym.compare Sym.compare a b end include Pset type t = SymPair.t Pset.set let empty = Pset.empty SymPair.compare let transitiveClosure = Pset.tc SymPair.compare
f7f9cdda75ead06c124ece0f768f69108d02c488aaaf45fe77273fed4cacb803
sigrlami/http-trace
Trace.hs
# LANGUAGE QuasiQuotes # module Http.Trace ( traceRedirects , traceRedirectsTLD , isReachable ) where import Control.Monad.IO.Class import qualified System.IO as IO import System.IO.Unsafe import Control.Applicative import qualified Data.Text as T import ...
null
https://raw.githubusercontent.com/sigrlami/http-trace/fadcca2eb5108f755b14fb5568c07386f7b4f8fd/src/Http/Trace.hs
haskell
------------------------------------------------------------------------------ | Regex for getting web links from text | Regex for getting top-level web link from text | Function to get all redirects for provided url in form of full link Search throught LOCATION meta, head and body tags ^ Starting url ...
# LANGUAGE QuasiQuotes # module Http.Trace ( traceRedirects , traceRedirectsTLD , isReachable ) where import Control.Monad.IO.Class import qualified System.IO as IO import System.IO.Unsafe import Control.Applicative import qualified Data.Text as T import ...
3abc68f0ec5f11d17f4e2b4b9d16429a052610cb4ec700306dc4b5c6d6bfca8b
lisp/de.setf.amqp
test.lisp
;;; -*- Package: de.setf.amqp.implementation; -*- (in-package :de.setf.amqp.implementation) (:documentation "This file defines codec tests for 0.9r1 components of the 'de.setf.amqp' library." (copyright "Copyright 2010 [james anderson](mailto:)" "'de.setf.amqp' is free software: you can redistribute it and/or mo...
null
https://raw.githubusercontent.com/lisp/de.setf.amqp/03181135ddf15cb3866fbf4285c8b6d3eeeb660e/test/amqp-1-1-0-9-1/test.lisp
lisp
-*- Package: de.setf.amqp.implementation; -*- without even the test elementary class/method instantiation, classes w/ initargs, direct encode/decode, and request/response loop-back loopback tests simple loopbacks simple declarations then request then request then request [prefetch-size prefetch-count glo...
(in-package :de.setf.amqp.implementation) (:documentation "This file defines codec tests for 0.9r1 components of the 'de.setf.amqp' library." (copyright "Copyright 2010 [james anderson](mailto:)" "'de.setf.amqp' is free software: you can redistribute it and/or modify it under the terms of version 3 of the GNU ...
fdbbd95ac6f45692c3cb072cf13e4fb4ec4e0fbb3429b7783c9f9404eefdaf1b
mwand/eopl3
data-structures.scm
(module data-structures (lib "eopl.ss" "eopl") ;; data structures for let-lang. (provide (all-defined-out)) ; too many things to list ;;;;;;;;;;;;;;;; expressed values ;;;;;;;;;;;;;;;; ;;; an expressed value is either a number, a boolean or a procval. (define-datatype expval expval? (num-va...
null
https://raw.githubusercontent.com/mwand/eopl3/b50e015be7f021d94c1af5f0e3a05d40dd2b0cbf/chapter3/let-lang/data-structures.scm
scheme
data structures for let-lang. too many things to list expressed values ;;;;;;;;;;;;;;;; an expressed value is either a number, a boolean or a procval. extractors: expval->num : ExpVal -> Int expval->bool : ExpVal -> Bool environment structures ;;;;;;;;;;;;;;;; example of a data type built without define-dataty...
(module data-structures (lib "eopl.ss" "eopl") (define-datatype expval expval? (num-val (value number?)) (bool-val (boolean boolean?))) Page : 70 (define expval->num (lambda (v) (cases expval v (num-val (num) num) (else (expval-extractor-error 'num v))))) Page : 70 (def...
27395ef2254084290243c5054d2f8152f0328e165d32262391c690924edacac7
brendanhay/gogol
DetectLanguage.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # {-# LANGUAGE St...
null
https://raw.githubusercontent.com/brendanhay/gogol/fffd4d98a1996d0ffd4cf64545c5e8af9c976cda/lib/services/gogol-translate/gen/Gogol/Translate/Projects/Locations/DetectLanguage.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated Detects the language of text within a request. /See:/ < Cloud Translation API Reference> for @translate.projects.locations.detectLanguage@. * Resource ** Constructing a Request | A resource alias for @translate.projects.locat...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators...
d3644c46d8c3f358619c9a937beddc3c0b0002a125afac805c86617409ffb6da
funcool/catacumba
helpers.clj
Copyright ( c ) 2015 - 2016 < > ;; All rights reserved. ;; ;; Redistribution and use in source and binary forms, with or without ;; modification, are permitted provided that the following conditions are met: ;; ;; * Redistributions of source code must retain the above copyright notice, this ;; list of conditions...
null
https://raw.githubusercontent.com/funcool/catacumba/a493843176ee8defa2f3c6afa23c720f495d9341/src/clojure/catacumba/impl/helpers.clj
clojure
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions ...
Copyright ( c ) 2015 - 2016 < > THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT HOLDER OR LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXE...
2c276ddc90b5ca6ea3b005d58750c526e0fcb2dbc294c20f9b0169a73e5dcbdb
haskell-tools/haskell-tools
QualImportAlso.hs
module Refactor.RenameDefinition.QualImportAlso where import qualified Data.List (intercalate) import Data.List (intercalate) g = () f = g
null
https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/builtin-refactorings/examples/Refactor/RenameDefinition/QualImportAlso.hs
haskell
module Refactor.RenameDefinition.QualImportAlso where import qualified Data.List (intercalate) import Data.List (intercalate) g = () f = g
2d76710e2abafe619693782c3367005a6673e2b064107dd993371ed2d81897b1
sru-systems/protobuf-simple
Fixed32OptMsg.hs
-- Generated by protobuf-simple. DO NOT EDIT! module Types.Fixed32OptMsg where import Control.Applicative ((<$>)) import Prelude () import qualified Data.ProtoBufInt as PB newtype Fixed32OptMsg = Fixed32OptMsg { value :: PB.Maybe PB.Word32 } deriving (PB.Show, PB.Eq, PB.Ord) instance PB.Default Fixed32OptMsg whe...
null
https://raw.githubusercontent.com/sru-systems/protobuf-simple/ee0f26b6a8588ed9f105bc9ee72c38943133ed4d/test/Types/Fixed32OptMsg.hs
haskell
Generated by protobuf-simple. DO NOT EDIT!
module Types.Fixed32OptMsg where import Control.Applicative ((<$>)) import Prelude () import qualified Data.ProtoBufInt as PB newtype Fixed32OptMsg = Fixed32OptMsg { value :: PB.Maybe PB.Word32 } deriving (PB.Show, PB.Eq, PB.Ord) instance PB.Default Fixed32OptMsg where defaultVal = Fixed32OptMsg { value = ...
f9640ea891584f1a69bd8b7fb7156e639ab2ebd83c35bd298586027919f40af2
rzetterberg/orgmode-sql
Heading.hs
{-| CRUD functionality for 'Heading's. -} module Database.OrgMode.Internal.Query.Heading where import Database.Esqueleto import qualified Database.Persist as P import Database.OrgMode.Internal.Import import Database.OrgMode.Internal.Types import qualified Database.OrgMode.Internal.Query....
null
https://raw.githubusercontent.com/rzetterberg/orgmode-sql/98cf35b96e6ce63f60ce11ace18be55e5770352e/lib/Database/OrgMode/Internal/Query/Heading.hs
haskell
| CRUD functionality for 'Heading's. ----------------------------------------------------------------------------- * Creation | Inserts the given 'Heading' into the database and returns the given ID. ----------------------------------------------------------------------------- * Retrieval | Retrieves all 'Heading's...
module Database.OrgMode.Internal.Query.Heading where import Database.Esqueleto import qualified Database.Persist as P import Database.OrgMode.Internal.Import import Database.OrgMode.Internal.Types import qualified Database.OrgMode.Internal.Query.Clock as ClockQ import qualified Database....
70df9aa5e78b48120528267e5a8277298397f615061cf75abb2800c4a40ec6b6
ndpar/erlang
stats_handler.erl
%% Erlang Programming , p.138 . %% Exercise 5-4: Event Statistics %% 1 > event_manager : start(alarm , [ { stats_handler , [ ] } ] ) . %% ok 2 > event_manager : , { event , 156 , link_up } ) . %% ok 3 > event_manager : , { raise_alarm , 10 , cabinet_open } ) . %% ok 4 > event_manager : , { clear_alarm , 10...
null
https://raw.githubusercontent.com/ndpar/erlang/e215841a1d370e0fc5eb6b9ff40ea7ae78fc8763/src/stats_handler.erl
erlang
Exercise 5-4: Event Statistics ok ok ok ok ok {data,[{{clear_alarm,10},1}, {{raise_alarm,10},1}, {{event,156},2}]}
Erlang Programming , p.138 . 1 > event_manager : start(alarm , [ { stats_handler , [ ] } ] ) . 2 > event_manager : , { event , 156 , link_up } ) . 3 > event_manager : , { raise_alarm , 10 , cabinet_open } ) . 4 > event_manager : , { clear_alarm , 10 , cabinet_open } ) . 5 > event_manager : , { event , 1...
33aa9868524e86f0bc92eaaea688fc9e0df1cd1b2a22a518140dd87b9474a296
ocaml-community/obus
utils.mli
* utils.mli * --------- * Copyright : ( c ) 2010 , < > * Licence : BSD3 * * This file is a part of obus , an ocaml implementation of D - Bus . * utils.mli * --------- * Copyright : (c) 2010, Jeremie Dimino <> * Licence : BSD3 * * This file is a part of obus, an ocaml implementation of...
null
https://raw.githubusercontent.com/ocaml-community/obus/8d38ee6750587ae6519644630b75d53a0a011acd/tools/tools_util/utils.mli
ocaml
* Utilities for tools * Set of interfaces * [parse_xml file_name] parses [file_name] as an XML introspection file * [parse_xml file_name] parses [file_name] as an obus IDL file * [parse_file file_name] parses [file_name] as an XML introspection file or as an IDL file (according to the file name ex...
* utils.mli * --------- * Copyright : ( c ) 2010 , < > * Licence : BSD3 * * This file is a part of obus , an ocaml implementation of D - Bus . * utils.mli * --------- * Copyright : (c) 2010, Jeremie Dimino <> * Licence : BSD3 * * This file is a part of obus, an ocaml implementation of...
7c85e03695b599ed882734a53e829923d2d92a087d94cfe46852b4631f365d71
samoht/camloo
handle.scm
* Copyright ( C ) 1994 - 2010 INRIA ;* ;* This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation ; version 2 of the License . ;* ;* This program is distributed in the hope that it will be useful, ;* but W...
null
https://raw.githubusercontent.com/samoht/camloo/29a578a152fa23a3125a2a5b23e325b6d45d3abd/src/runtime/Llib/handle.scm
scheme
* * This program is free software; you can redistribute it and/or modify version 2 of the License . * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public L...
* Copyright ( C ) 1994 - 2010 INRIA * it under the terms of the GNU General Public License as published by (module __caml_handle (import __caml_constr) (extern (include "Clib/caml-bigloo.h") (macro get-the-continuation::obj (::obj) "GET_THE_CONTINUATION") (macro invoke-continuation::obj (::obj) "INVOKE_CO...
1facb58f1e42dba4346ab3d6ca0349166936561b7991035531e14b91458835e7
yurug/ocaml4.04.0-copatterns
socketsbuf.ml
open Printf (* Threads, sockets, and buffered I/O channels *) Serves as a regression test for PR#5578 let serve_connection s = let ic = Unix.in_channel_of_descr s and oc = Unix.out_channel_of_descr s in let l = input_line ic in fprintf oc ">>%s\n" l; close_out oc let server sock = while true do let...
null
https://raw.githubusercontent.com/yurug/ocaml4.04.0-copatterns/b3ec6a3cc203bd2cde3b618546d29e10f1102323/testsuite/tests/lib-threads/socketsbuf.ml
ocaml
Threads, sockets, and buffered I/O channels
open Printf Serves as a regression test for PR#5578 let serve_connection s = let ic = Unix.in_channel_of_descr s and oc = Unix.out_channel_of_descr s in let l = input_line ic in fprintf oc ">>%s\n" l; close_out oc let server sock = while true do let (s, _) = Unix.accept sock in ignore(Thread.cr...
cff8758e4132f5e79d2608fe47df7562aee3b171c36f311295586d8c1ffca998
haskell-opengl/OpenGLRaw
TextureCoordinateClamp.hs
# LANGUAGE PatternSynonyms # -------------------------------------------------------------------------------- -- | -- Module : Graphics.GL.SGIX.TextureCoordinateClamp Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- --------...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/SGIX/TextureCoordinateClamp.hs
haskell
------------------------------------------------------------------------------ | Module : Graphics.GL.SGIX.TextureCoordinateClamp License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ * Extension Support * Enums
# LANGUAGE PatternSynonyms # Copyright : ( c ) 2019 Maintainer : < > module Graphics.GL.SGIX.TextureCoordinateClamp ( glGetSGIXTextureCoordinateClamp, gl_SGIX_texture_coordinate_clamp, pattern GL_TEXTURE_MAX_CLAMP_R_SGIX, pattern GL_TEXTURE_MAX_CLAMP_S_SGIX, pattern GL_TEXTURE_MAX_CLAMP_T_S...
e85bfd3d9bf5fd0734ece3d18528b4a6bc884b8754ed1e4b070b6713617d8db7
vim-erlang/vim-erlang
mylib_sup.erl
%%%------------------------------------------------------------------- %% @doc mylib top level supervisor. %% @end %%%------------------------------------------------------------------- -module(mylib_sup). -behaviour(supervisor). -define(MY_MACRO_ERL, 1). -record(my_rec_erl, {}). -type my_rec_erl() :: #my_rec_erl{}...
null
https://raw.githubusercontent.com/vim-erlang/vim-erlang/84d245af205302406c764980aecc9638069769c8/test/fixture/rebar3_app/mylib/src/mylib_sup.erl
erlang
------------------------------------------------------------------- @doc mylib top level supervisor. @end ------------------------------------------------------------------- sup_flags() = #{strategy => strategy(), % optional intensity => non_neg_integer(), % optional optional child_spec() ...
-module(mylib_sup). -behaviour(supervisor). -define(MY_MACRO_ERL, 1). -record(my_rec_erl, {}). -type my_rec_erl() :: #my_rec_erl{}. -export([start_link/0]). -export([init/1]). -define(SERVER, ?MODULE). start_link() -> supervisor:start_link({local, ?SERVER}, ?MODULE, []). init([]) -> f(?MY_MACRO_ERL), ...
53bf2687dfd03e18bf831897e9ac61304bb89b427897d6061afe3e14d2e15e99
debug-ito/wild-bind
Seq.hs
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} -- | -- Module: WildBind.Seq -- Description: Support for binding sequence of input events. Maintainer : < > -- -- This module defines convenient functions to build 'Binding's that -- bind actions to key sequences. -- -- For example, see -- [Wild...
null
https://raw.githubusercontent.com/debug-ito/wild-bind/ef65370ded4f9687fed554107df4cc58247943de/wild-bind/src/WildBind/Seq.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # | Module: WildBind.Seq Description: Support for binding sequence of input events. This module defines convenient functions to build 'Binding's that bind actions to key sequences. For example, see [WildBind.Task.X11.Seq.Example in wild-bind-task-x11]...
Maintainer : < > module WildBind.Seq prefix , SeqBinding , toSeq , fromSeq , withPrefix , withCancel , reviseSeq ) where import Control.Monad.Trans.State (State) import qualified Control.Monad.Trans.State as State import Data.Monoid (Monoid (..)...
b67429620c68ec7f0318b6bcb170ddbf07d0559ee9bd339f5b04ed9a348ab709
hasktorch/hasktorch
RandomSpec.hs
# LANGUAGE ScopedTypeVariables # module RandomSpec (spec) where import Control.Exception.Safe import Test.Hspec import Torch.Device import Torch.Random import Torch.Tensor import Torch.TensorOptions spec :: Spec spec = do it "pure functional random with seed" $ do generator <- mkGenerator (Device CPU 0) 0 ...
null
https://raw.githubusercontent.com/hasktorch/hasktorch/c34996b0a401a5b1b98b5774e892fde88adaa079/hasktorch/test/RandomSpec.hs
haskell
# LANGUAGE ScopedTypeVariables # module RandomSpec (spec) where import Control.Exception.Safe import Test.Hspec import Torch.Device import Torch.Random import Torch.Tensor import Torch.TensorOptions spec :: Spec spec = do it "pure functional random with seed" $ do generator <- mkGenerator (Device CPU 0) 0 ...
08d61686342821cb2c8a75f957889e39c85e6d31bdd83b380060d373a697b0c9
Simre1/yampa-sdl2
Parse.hs
module YampaSDL2.Internal.SDL.Parse ( parseInput ) where import FRP.Yampa import qualified SDL import SDL.Vect import YampaSDL2.Internal.AppInput (AppInput(..), initAppInput) parseInput :: SF (Event SDL.EventPayload) AppInput parseInput = accumHoldBy onSDLInput initAppInput onSDLInput :: AppInput -> SDL.EventPa...
null
https://raw.githubusercontent.com/Simre1/yampa-sdl2/c0ad94b9ba50d545f842eaf0916c1acf093514c3/src/YampaSDL2/Internal/SDL/Parse.hs
haskell
module YampaSDL2.Internal.SDL.Parse ( parseInput ) where import FRP.Yampa import qualified SDL import SDL.Vect import YampaSDL2.Internal.AppInput (AppInput(..), initAppInput) parseInput :: SF (Event SDL.EventPayload) AppInput parseInput = accumHoldBy onSDLInput initAppInput onSDLInput :: AppInput -> SDL.EventPa...
e5c7004c03943c79003737033a31f2f6477ffb3fb152a672883e584deb58cadf
expipiplus1/vulkan
XR_EXT_view_configuration_depth_range.hs
{-# language CPP #-} -- | = Name -- XR_EXT_view_configuration_depth_range - instance extension -- -- = Specification -- -- See -- <#XR_EXT_view_configuration_depth_range XR_EXT_view_configuration_depth_range> -- in the main specification for complete information. -- -- = Registered Extension Number -- 47 -- -- = R...
null
https://raw.githubusercontent.com/expipiplus1/vulkan/ebc0dde0bcd9cf251f18538de6524eb4f2ab3e9d/openxr/src/OpenXR/Extensions/XR_EXT_view_configuration_depth_range.hs
haskell
# language CPP # | = Name = Specification See <#XR_EXT_view_configuration_depth_range XR_EXT_view_configuration_depth_range> in the main specification for complete information. = Registered Extension Number = Revision = Extension and Version Dependencies = See Also 'ViewConfigurationDepthRangeEXT'...
XR_EXT_view_configuration_depth_range - instance extension 47 1 - Requires OpenXR 1.0 module OpenXR.Extensions.XR_EXT_view_configuration_depth_range ( ViewConfigurationDepthRangeEXT(..) , EXT_view_configuration_depth_range_SPEC_VERSION ...
0f0c59d7cb828487861150988e9ad8140bc0d14d10a5409157f20118656a7b9a
Frechmatz/cl-synthesizer
packages.lisp
(defpackage :cl-synthesizer-monitor-wave-file-agent (:use :cl) (:export :make-backend))
null
https://raw.githubusercontent.com/Frechmatz/cl-synthesizer/cdb88c65be366a1341e4554ff5e50902aa594594/src/monitor/wave-file/packages.lisp
lisp
(defpackage :cl-synthesizer-monitor-wave-file-agent (:use :cl) (:export :make-backend))
3c16873f5a9c15ee80795011a6db190b782847caa775533fab7365c25afcd7be
why-not-try-calmer/feedo
MarkdownChecker.hs
{-# LANGUAGE StrictData #-} {-# LANGUAGE OverloadedStrings #-} module MarkdownChecker where import qualified Data.Text as T import Data.Maybe (fromMaybe) import Data.Foldable {- Entities -} singles :: [Char] singles = ['_', '*', '~', '`', '|', '>', '#', '+', '-', '=', '.', '!'] doubles :: [Char] doubles = ['[', '(...
null
https://raw.githubusercontent.com/why-not-try-calmer/feedo/734057b3750eaa863b6ca0c072b5d185aebdd5ca/src/MarkdownChecker.hs
haskell
# LANGUAGE StrictData # # LANGUAGE OverloadedStrings # Entities Entities Either fails on an error or maybe return a new determined entity Parsing
module MarkdownChecker where import qualified Data.Text as T import Data.Maybe (fromMaybe) import Data.Foldable singles :: [Char] singles = ['_', '*', '~', '`', '|', '>', '#', '+', '-', '=', '.', '!'] doubles :: [Char] doubles = ['[', '(', '{', '}', ')', ']'] openingDouble :: [Char] openingDouble = take 3 doubles...
4f350c256664ded3190e090aa88fa6ba4d7b45b8d79a276c3926cb27e516db38
fare/acmart
info.rkt
#lang info (define collection "scribble") (define deps '("base" "scribble-lib" "at-exp-lib")) (define build-deps '("racket-doc" "scribble-doc")) (define pkg-desc "Port of the acmart 2016 style to Scribble") (define pkg-authors '(fare)) (define scribblings '(("acmart-fare.scrbl" () ("Scribble Libraries")))) (define ve...
null
https://raw.githubusercontent.com/fare/acmart/ce6738818e79515e57e2d554b801806b8b2833ae/acmart-fare/info.rkt
racket
#lang info (define collection "scribble") (define deps '("base" "scribble-lib" "at-exp-lib")) (define build-deps '("racket-doc" "scribble-doc")) (define pkg-desc "Port of the acmart 2016 style to Scribble") (define pkg-authors '(fare)) (define scribblings '(("acmart-fare.scrbl" () ("Scribble Libraries")))) (define ve...
d4095ed1f18a0ca7d9722881a74ba982825a293f3427f8c511091b90672f9c21
wereHamster/haskell-css-syntax
Benchmark.hs
{-# LANGUAGE OverloadedStrings #-} module Main where import Control.Monad import Criterion.Main import System.Directory import qualified Data.Text as T import qualified Data.Text.IO as T import Data.CSS.Syntax.Tokens import Control.DeepSeq We 're benchmarking speed...
null
https://raw.githubusercontent.com/wereHamster/haskell-css-syntax/6ba44adae51854ae2bbabfe35daff9e2558f409e/benchmark/Benchmark.hs
haskell
# LANGUAGE OverloadedStrings #
module Main where import Control.Monad import Criterion.Main import System.Directory import qualified Data.Text as T import qualified Data.Text.IO as T import Data.CSS.Syntax.Tokens import Control.DeepSeq We 're benchmarking speed of processing of 1 MB input . So...
e1d6ff406e97122970a8d39ea3da26fa2cf4faafcd8e3c6928d1d8afcfa10bd3
project-oak/hafnium-verification
typeCheck.ml
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
null
https://raw.githubusercontent.com/project-oak/hafnium-verification/6071eff162148e4d25a0fedaea003addac242ace/experiments/ownership-inference/infer/infer/src/nullsafe/typeCheck.ml
ocaml
* Module for type checking. * Module to treat selected complex expressions as constants. * Recognize *all* the procedures treated specially in conditionals Convert an expression to a unique string. Arbitrary function parameters and field access are allowed when the relevant options are active. front-end varia...
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
d510066754190a30288cd0899f29f89a7bbe06a82211178804f2b20c61edf45c
bjorng/wings
wpc_lwo.erl
%% %% wpc_lwo.erl -- %% LightWave Object File Format ( * .lwo ) Import / Export %% Copyright ( c ) 2003 - 2011 %% %% See the file "license.terms" for information on usage and redistribution %% of this file, and for a DISCLAIMER OF ALL WARRANTIES. %% %% $Id$ %% -module(wpc_lwo). -export([init/0, menu/...
null
https://raw.githubusercontent.com/bjorng/wings/dec64a500220359dbc552600af486be47c45d301/plugins_src/import_export/wpc_lwo.erl
erlang
wpc_lwo.erl -- See the file "license.terms" for information on usage and redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. $Id$ =============================== =============================== Reversed Wings can't have both at the same time layer number flags pivot name =====...
LightWave Object File Format ( * .lwo ) Import / Export Copyright ( c ) 2003 - 2011 -module(wpc_lwo). -export([init/0, menu/2, command/2, export/1]). -include_lib("wings/e3d/e3d.hrl"). init() -> true. menu({file, import}, Menu) -> menu_entry(Menu); menu({file, export}, Menu) -> menu_entry(Menu...
0ae1619ac5f8d1e703cdffa2e4e31f8fc73ad2aabbc51fd7128257a00ffe77b7
philnguyen/soft-contract
zo-shell.rkt
#lang racket/base ;; Command-line UI for exploring decompiled bytecode. ;; (Use `raco make` to generate bytecode) (provide ( - > ( string ? ) void ? ) Start a REPL using command - line arguments init) (require (only-in compiler/zo-parse zo? zo-parse) (only-in racket/string string-split string-join) ...
null
https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/test/gradual-typing-benchmarks/zordoz.6.2/zo-shell.rkt
racket
Command-line UI for exploring decompiled bytecode. (Use `raco make` to generate bytecode) ----------------------------------------------------------------------------- --- constants & contracts when set, print extra debugging information For aesthetic purposes (define history? (listof context?)) --- API functio...
#lang racket/base (provide ( - > ( string ? ) void ? ) Start a REPL using command - line arguments init) (require (only-in compiler/zo-parse zo? zo-parse) (only-in racket/string string-split string-join) (only-in "zo-find.rkt" zo-find result result? result-z result-path) (only-in "zo...
59bb8dacc290349d4140a4cf2b1d824b450f258cb630f20a811eb6ec05da0494
srdqty/talc-3.0
syntax.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/srdqty/talc-3.0/df83dd5ff0e2b189b13280ddae233d8277199350/apps/cyclone/tools/lex/syntax.mli
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 : syntax.mli , v 1.1 2000/09/13...
4f7eac1d576fc47a0f3058a5cd278f2aeaa54898c7f1058348b6ffa6ad83ea7a
matchwood/acid-world
CacheState.hs
# LANGUAGE UndecidableInstances # # OPTIONS_GHC -fno - warn - orphans # module Acid.Core.CacheState where import RIO import qualified RIO.HashMap as HM import qualified RIO.ByteString.Lazy as BL import qualified RIO.ByteString as BS import qualified RIO.Text as T import Database.LMDB.Simple import qualified Control.C...
null
https://raw.githubusercontent.com/matchwood/acid-world/04a3aa39b585a477a68639d81fc27ae04b9e5e35/src/Acid/Core/CacheState.hs
haskell
cacheable single values @todo in the absence of a maintenance db to check on whether this is a restore or an initialisation it is not possible to implement this properly cacheable hashmaps cacheable IxSets restrict to index keys restrict to value keys the cache state itself
# LANGUAGE UndecidableInstances # # OPTIONS_GHC -fno - warn - orphans # module Acid.Core.CacheState where import RIO import qualified RIO.HashMap as HM import qualified RIO.ByteString.Lazy as BL import qualified RIO.ByteString as BS import qualified RIO.Text as T import Database.LMDB.Simple import qualified Control.C...