_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
989d0c1ac01dec0b48dc29ab3d19213e926222a4540de5f0507fe13ae51a203f
softwarelanguageslab/maf
R5RS_various_mut-rec-4.scm
; Changes: * removed : 0 * added : 1 * swaps : 0 ; * negated predicates: 0 ; * swapped branches: 0 ; * calls to id fun: 0 (letrec ((even? (lambda (x) (<change> () odd?) (if (= x 0) #t (odd? (- x 1))))) (odd? (lambda (x) ...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_various_mut-rec-4.scm
scheme
Changes: * negated predicates: 0 * swapped branches: 0 * calls to id fun: 0
* removed : 0 * added : 1 * swaps : 0 (letrec ((even? (lambda (x) (<change> () odd?) (if (= x 0) #t (odd? (- x 1))))) (odd? (lambda (x) (if (= x 0) #f (even? (- x 1)))))) (even? 4))
4a2a8b833a4245287e98ce99250d00b6e8bb751de20e55b56811f73862ed9b28
fugue/fregot
Dump.hs
| Copyright : ( c ) 2020 Fugue , Inc. License : Apache License , version 2.0 Maintainer : Stability : experimental Portability : POSIX Utility for dumping debug information to stderr . Copyright : (c) 2020 Fugue, Inc. License : Apache License, version 2.0 Maintainer : Stability : ...
null
https://raw.githubusercontent.com/fugue/fregot/c3d87f37c43558761d5f6ac758d2f1a4117adb3e/lib/Fregot/Dump.hs
haskell
| Copyright : ( c ) 2020 Fugue , Inc. License : Apache License , version 2.0 Maintainer : Stability : experimental Portability : POSIX Utility for dumping debug information to stderr . Copyright : (c) 2020 Fugue, Inc. License : Apache License, version 2.0 Maintainer : Stability : ...
5f3159434133f586cba50e169f7c42f774e775e04af6bb36f283224d8c60c28f
racket/racket7
special-comment.rkt
#lang racket/base (provide special-comment? make-special-comment special-comment-value) (struct special-comment (value) #:authentic #:constructor-name make-special-comment)
null
https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/src/expander/read/special-comment.rkt
racket
#lang racket/base (provide special-comment? make-special-comment special-comment-value) (struct special-comment (value) #:authentic #:constructor-name make-special-comment)
3f5ec001ca6e3514325d44b91c301aeb56bf735d578492bcdac7f009a0333a9b
racket/compatibility
package-helper.rkt
(module package-helper mzscheme (require syntax/boundmap) (provide str str? str-renames str-all-renames make-str check-defn-context pre-register-package re-pre-register-package remove-dups stx-assoc mark-to-localize rebuild rebuild-cons split open protect walk-path) ;; A compile-ti...
null
https://raw.githubusercontent.com/racket/compatibility/492030dac6f095045ce8a13dca75204dd5f34e32/compatibility-lib/mzlib/private/package-helper.rkt
racket
A compile-time struct for package info: renames = renames for exports: (list (id-stx . id-stx) ...) all-renames = all internal renames (needed to determine the appropriate shadowing variable when `open' appears in a `package' body) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;...
(module package-helper mzscheme (require syntax/boundmap) (provide str str? str-renames str-all-renames make-str check-defn-context pre-register-package re-pre-register-package remove-dups stx-assoc mark-to-localize rebuild rebuild-cons split open protect walk-path) (define-struct ...
4b3c056c9fb341e8a4560146007415a56a5353170946a79fcad25e07ca8940d3
i-am-tom/world-building-in-haskell
Clustering.hs
# LANGUAGE DataKinds # # LANGUAGE TypeApplications # module Example.Clustering where import qualified Codec.Picture as Image import qualified Generator import qualified Map import qualified Render import Map ((?!)) main :: IO () main = do initial <- case Generator.uniform (Map.pos @2 80 80) of Just success -> s...
null
https://raw.githubusercontent.com/i-am-tom/world-building-in-haskell/fe7369b9069793ee6dd2a11e031a53b4af764d1a/app/Example/Clustering.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE TypeApplications # module Example.Clustering where import qualified Codec.Picture as Image import qualified Generator import qualified Map import qualified Render import Map ((?!)) main :: IO () main = do initial <- case Generator.uniform (Map.pos @2 80 80) of Just success -> s...
7bebb72c856a993e0cdd02688643cf53c8f9e74a8437f43284018ebe741414e3
FundingCircle/fc4-framework
util.clj
(ns fc4.io.util "Most of these functions don’t actually do I/O, but they are in this namespace anyway because they support *other* namespaces that *do* actually do I/O." (:require [clojure.java.io :as io :refer [copy file output-stream]] [clojure.spec.alpha :as s] [clojure.string :refer [i...
null
https://raw.githubusercontent.com/FundingCircle/fc4-framework/674af39e7edb2cbfd3e1941e6abe80fd87d93bed/src/fc4/io/util.clj
clojure
Feel free to change for development or whatever. This is an atom rather than a dynamic var because the functions in this namespace are often called from background threads (e.g. a filesystem watching thread) and it’s quite annoying to rebind it in such a situation.
(ns fc4.io.util "Most of these functions don’t actually do I/O, but they are in this namespace anyway because they support *other* namespaces that *do* actually do I/O." (:require [clojure.java.io :as io :refer [copy file output-stream]] [clojure.spec.alpha :as s] [clojure.string :refer [i...
0dd13c1703a78ef4004235892e8988fecf651d522155a53cabeb226ef0bbffb0
cunger/pythia
Core_.clj
(ns core.definitions.Core_ (:require [core.external.ner.ner :as ner] [core.nlu.context.short_term_memory :as stm] [core.data.LambdaRDF :refer :all]) (:import [core.data.LambdaRDF Term Triple Path Not And Filter Quant Sel Condition Ask Select])) Core (defn owl_Thing [x] (Triple. x rdf-t...
null
https://raw.githubusercontent.com/cunger/pythia/f58e35395968d4c46aef495fd363c26b1102003c/src/core/definitions/Core_.clj
clojure
Coordination TODO AndEntity TODO OrEntity Application and modification Determiners TODO you can do this way more elegantly! For robust parsing (defn UnknownPredicate [cn] (fn [x] (Triple. x rdf-type (sel (fn [_] (cn x)) [(Condition. :type :class)])))) (defn UnknownRelation [cn1,cn2] (fn [x,y] (Triple. x (sel...
(ns core.definitions.Core_ (:require [core.external.ner.ner :as ner] [core.nlu.context.short_term_memory :as stm] [core.data.LambdaRDF :refer :all]) (:import [core.data.LambdaRDF Term Triple Path Not And Filter Quant Sel Condition Ask Select])) Core (defn owl_Thing [x] (Triple. x rdf-t...
477ffa46375a5fa16d40d82e183cc62f3bcbdc5e011f3c423828a9c5b4a5c59a
input-output-hk/ouroboros-network
FileInfo.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # # LANGUAGE NamedFieldPuns # # LANGUAGE ScopedTypeVariables # {-# LANGUAGE StandaloneDeriving #-} # LANGUAGE TypeFamilies # -- | Information about the files stored by the volatile DB -- -- Intended for qualified import. module Ourobor...
null
https://raw.githubusercontent.com/input-output-hk/ouroboros-network/c82309f403e99d916a76bb4d96d6812fb0a9db81/ouroboros-consensus/src/Ouroboros/Consensus/Storage/VolatileDB/Impl/FileInfo.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE StandaloneDeriving # | Information about the files stored by the volatile DB Intended for qualified import. * opaque * Construction * Queries ------------------------------------------------------------------------------ Types ----------------------------------------...
# LANGUAGE DeriveGeneric # # LANGUAGE NamedFieldPuns # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # module Ouroboros.Consensus.Storage.VolatileDB.Impl.FileInfo ( FileInfo , addBlock , empty , fromParsedBlockInfos , canGC , hashes , isFull , maxSlotNo , maxSlotNoIn...
b91f74662a6a774837e0b736b6bc9233ca9455d7a1b93c59a5e5d688f219331b
symbiont-io/detsys-testkit
Assert.hs
module Assert (assert, assertM, assertMMsg, assertIO) where import Control.Exception (throw, AssertionFailed(AssertionFailed)) import GHC.Stack (HasCallStack, callStack, prettyCallStack) assert :: HasCallStack => Bool -> a -> a assert True x = x assert False _ = throw (AssertionFailed errMsg) where errMsg = con...
null
https://raw.githubusercontent.com/symbiont-io/detsys-testkit/f9476c7861634e0a3ef911dba79b57ac088871b1/src/journal/extra/assert/dorun/Assert.hs
haskell
module Assert (assert, assertM, assertMMsg, assertIO) where import Control.Exception (throw, AssertionFailed(AssertionFailed)) import GHC.Stack (HasCallStack, callStack, prettyCallStack) assert :: HasCallStack => Bool -> a -> a assert True x = x assert False _ = throw (AssertionFailed errMsg) where errMsg = con...
8af9ff320332610e96fb995af3278fd3f24d1f6ccc779b1a366127b518a16c9a
haskell-opengl/OpenGLRaw
F25.hs
{-# OPTIONS_HADDOCK hide #-} -------------------------------------------------------------------------------- -- | Module : Graphics . GL.Functions . F25 Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- -- Raw functions ...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/Functions/F25.hs
haskell
# OPTIONS_HADDOCK hide # ------------------------------------------------------------------------------ | License : BSD3 Stability : stable Portability : portable Raw functions from the </ OpenGL registry>. ------------------------------------------------------------------------------ ----------------...
Module : Graphics . GL.Functions . F25 Copyright : ( c ) 2019 Maintainer : < > module Graphics.GL.Functions.F25 ( glStencilOpValueAMD, glStencilStrokePathInstancedNV, glStencilStrokePathNV, glStencilThenCoverFillPathInstancedNV, glStencilThenCoverFillPathNV, glStencilThenCoverSt...
c10dad99fa34f9940172684f03075b2b66e4c748141c7d9503c66fd9e24792b8
RefactoringTools/wrangler
wrangler_slice.erl
Copyright ( c ) 2010 , , %% 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/RefactoringTools/wrangler/1c33ad0e923bb7bcebb6fd75347638def91e50a8/src/wrangler_slice.erl
erlang
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. %% Redi...
Copyright ( c ) 2010 , , IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE BE LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR @author < > @doc Forward and backward slicing of Erlang programs . The current implementation does @private -module(wrangl...
93b5b61c14a7bfd9644b039d021cd2a00449f5782940e286c04a78f89b858577
brendanhay/gogol
Product.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/8cbceeaaba36a3c08712b2e272606161500fbe91/lib/services/gogol-genomics/gen/Gogol/Genomics/Internal/Product.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated * Accelerator * Action * Action_Environment * Action_Labels * Action_PortMappings * CancelOperationRequest * CheckInRequest * CheckInRequest_Event * CheckInResponse * CheckInResponse_Features * ContainerKilledEvent * Con...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators...
a2edc6e81e918ed33566511e83598a769e633306bc5c7f3cf290e354febaded5
adityaathalye/clojure-by-example
ex04_api_design.clj
(ns clojure-by-example.ex04-api-design (:require [clojure-by-example.data.planets :as p])) ;; EX04: Lesson Goals: ;; - We use these conveniences for good effect in API design. ;; - See how to allow the same function to support different arities, ;; as well as a variable number of arguments ;; - See how to "de-stru...
null
https://raw.githubusercontent.com/adityaathalye/clojure-by-example/6390163ffb7f887f107c007168499cba259bd90a/src/clojure_by_example/ex04_api_design.clj
clojure
EX04: Lesson Goals: - We use these conveniences for good effect in API design. - See how to allow the same function to support different arities, as well as a variable number of arguments - See how to "de-structure" data (it's a powerful, flexible lookup mechanism) - Leverage de-structuring to design a self-doc...
(ns clojure-by-example.ex04-api-design (:require [clojure-by-example.data.planets :as p])) (defn add-upto-three-nums ([x] x) ([x y] (+ x y)) ([x y z] (+ x y z))) (add-upto-three-nums) (add-upto-three-nums 1) (add-upto-three-nums 1 2) (add-upto-three-nums 1 2 3) (defn add-any-numbers [& nums] (reduc...
c3eb568fbe864bb09a981666111a1662fb93f13018f2431580fcc6132b78f3a5
korya/efuns
image.ml
(***********************************************************************) (* *) xlib for (* *) Fabrice Le Fessant , projet Para / SOR , INRIA Rocq...
null
https://raw.githubusercontent.com/korya/efuns/78b21d9dff45b7eec764c63132c7a564f5367c30/gwml/image.ml
ocaml
********************************************************************* ...
xlib for Fabrice Le Fessant , projet Para / SOR , INRIA Rocquencourt Copyright 1999 Institut National de Recherche en Informatique et Automatique . Distributed only by permission . open Xtypes open Gwml_args open Gwml open Wob open Imager ...
c11634faf35570141eb1088c09c9c0daed9414fc93d2cfcc66c791e9bcf0444e
txyyss/Project-Euler
Euler071.hs
-- Consider the fraction, n/d, where n and d are positive integers. If nd and HCF(n , d)=1 , it is called a reduced proper fraction . If we list the set of reduced proper fractions for d < = 8 in -- ascending order of size, we get: 1/8 , 1/7 , 1/6 , 1/5 , 1/4 , 2/7 , 1/3 , 3/8 , 2/5 , 3/7 , 1/2 , 4/7 , 3/5 , ...
null
https://raw.githubusercontent.com/txyyss/Project-Euler/d2f41dad429013868445c1c9c1c270b951550ee9/Euler071.hs
haskell
Consider the fraction, n/d, where n and d are positive integers. If ascending order of size, we get: in ascending order of size, find the numerator of the fraction
nd and HCF(n , d)=1 , it is called a reduced proper fraction . If we list the set of reduced proper fractions for d < = 8 in 1/8 , 1/7 , 1/6 , 1/5 , 1/4 , 2/7 , 1/3 , 3/8 , 2/5 , 3/7 , 1/2 , 4/7 , 3/5 , 5/8 , 2/3 , 5/7 , 3/4 , 4/5 , 5/6 , 6/7 , 7/8 It can be seen that 2/5 is the fraction immediately to the...
a836c16a4b2132a3ba73beb444225ea2e4383872f2e5775c699bf080ed43c857
pmundkur/flowcaml
pole.ml
(**************************************************************************) (* *) (* *) , Projet C...
null
https://raw.githubusercontent.com/pmundkur/flowcaml/ddfa8a37e1cb60f42650bed8030036ac313e048a/src-flowcaml/utils/pole.ml
ocaml
************************************************************************ et en Automatique. All ri...
, Projet Cristal , INRIA Rocquencourt Copyright 2002 , 2003 Institut National de Recherche en Informatique under the terms of the Q Public License version 1.0 . $ I d : , v 1.2 2003/06/26 13:33:00 si...
49bafb4521b09ab84df7af29855be6130489b36af8ff03447cff7e8dd4b0c826
green-coder/minimallist
helper.cljc
(ns minimallist.helper (:refer-clojure :exclude [fn val and or set map sequence vector-of list vector cat repeat ? * + let ref]) (:require [clojure.core :as clj])) ;; ;; Some helper functions to compose hash-map based models ;; ; Modifiers, can be used with the -> macro (defn- -entry "Parses an entry from one...
null
https://raw.githubusercontent.com/green-coder/minimallist/f10ebbd3c2b93e7579295618a7ed1e870c489bc4/src/minimallist/helper.cljc
clojure
Some helper functions to compose hash-map based models Modifiers, can be used with the -> macro For any node, mostly for :fn The main functions
(ns minimallist.helper (:refer-clojure :exclude [fn val and or set map sequence vector-of list vector cat repeat ? * + let ref]) (:require [clojure.core :as clj])) (defn- -entry "Parses an entry from one of the following formats: - model - [key model] - [key options model] When specified, options...
8b0b02012c27364f6acf15ef8d743dbe958500dae8532c9ddc671d613653628c
cl-axon/shop2
depots.lisp
(in-package :shop2-user) (defun define-depot-domain () (let ((*define-silently* t) (shop2::*ignore-singleton-variables* t)) (defdomain (depot :redefine-ok t) ((:operator (!drive ?x ?y ?z) ((at ?x ?y)) ((at ?x ?z))) (:operator (!lift ?x ?y ?z ?p) ...
null
https://raw.githubusercontent.com/cl-axon/shop2/9136e51f7845b46232cc17ca3618f515ddcf2787/examples/depots/depots.lisp
lisp
Find those surfaces which do not have any goal associated with them. Find those surfaces which are in their final position and therefore don't need to be moved. Find the place each crate not in its final position is supposed to end up Decomposition Decomposition Check if ?x can be moved to its final position on ?...
(in-package :shop2-user) (defun define-depot-domain () (let ((*define-silently* t) (shop2::*ignore-singleton-variables* t)) (defdomain (depot :redefine-ok t) ((:operator (!drive ?x ?y ?z) ((at ?x ?y)) ((at ?x ?z))) (:operator (!lift ?x ?y ?z ?p) ...
4c7b35d596e1c5ad24caed38a329b5a8eb8afa1df277b97b44ed96a9187f9a76
racket/lazy
forcers.rkt
#lang racket/base (require tests/eli-tester lazy/force) (define (test-lazy/force) (test (! 1) => 1 (! (! 1)) => 1 (! (~ 1)) => 1 (! (~ (~ (~ 1)))) => 1)) (define (test-!list) (test (!list (list 1 2 3)) => '(1 2 3) (!list (~ (list 1 2 3))) => '(1 2 3) (!list (~ (cons 1 (~ (...
null
https://raw.githubusercontent.com/racket/lazy/2cc3a2434341a1a3a22a36a3fa1d1356086da274/tests/forcers.rkt
racket
works on dotted lists
#lang racket/base (require tests/eli-tester lazy/force) (define (test-lazy/force) (test (! 1) => 1 (! (! 1)) => 1 (! (~ 1)) => 1 (! (~ (~ (~ 1)))) => 1)) (define (test-!list) (test (!list (list 1 2 3)) => '(1 2 3) (!list (~ (list 1 2 3))) => '(1 2 3) (!list (~ (cons 1 (~ (...
946a908a3eba13b869c5a4dcbbd95cbc6983ce025bbddbff4c0aa2f719309c9d
facebook/flow
marshal_tools.ml
* Copyright ( c ) Meta Platforms , Inc. and 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) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/flow/593aefe39b91e9023d5941bced9a086c16cf49c6/src/hack_forked/utils/marshal_tools/marshal_tools.ml
ocaml
We want to marshal exceptions (or at least their message+stacktrace) over the wire. This type ensures that no one will attempt to pattern-match on the thing we marshal: 'Values of extensible variant types, for example exceptions (of extensible type exn), returned by the unmarhsaller should not be patt...
* Copyright ( c ) Meta Platforms , Inc. and 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) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
da07f49e28ba40ae9fee3b81baa0fb5f4dbb40afd3fa075cdb27481c634d244a
bufferswap/ViralityEngine
prefab.lisp
(in-package #:virality.prefab) (defmacro preprocess-spec (prefab-name context policy spec) (labels ((rec (data) (u:mvlet ((name components children (split-spec data))) `(list ',name ,@(mapcar #'thunk components) ,@(mapcar #'rec children)))) ...
null
https://raw.githubusercontent.com/bufferswap/ViralityEngine/df7bb4dffaecdcb6fdcbfa618031a5e1f85f4002/src/prefab/prefab.lisp
lisp
TODO: Figure out why parenting isn't working NOTE: This prefab-wide ref environment is accessible via a created for each component initarg value. We use it later to forcing the argument thunk. We COULD have made an INJECTABLE-REF-VALUE-THUNK for EACH argument value, but that would generate more garbage than this ...
(in-package #:virality.prefab) (defmacro preprocess-spec (prefab-name context policy spec) (labels ((rec (data) (u:mvlet ((name components children (split-spec data))) `(list ',name ,@(mapcar #'thunk components) ,@(mapcar #'rec children)))) ...
0959b3dfb9ab20c7d87650cac12df6945b446b7c8a467692c6a2237e72f04b82
timbertson/passe
ui.ml
open Passe open Passe_unix open Common open Lwt open Lwt_react module Log = (val Logging.log_module "ui") class password_prompt term (text:string) = object(self) inherit LTerm_read_line.read_password () inherit [Zed_string.t] LTerm_read_line.term term initializer self#set_prompt (S.const (LTerm_text.of_string (Z...
null
https://raw.githubusercontent.com/timbertson/passe/a0aa00695022657a222ea06a4796da36141aaa1a/src/client/ui.ml
ocaml
Exit when the user presses Ctrl+X Note: implicit auth types never loop, as there's nothing the * user can do to incluence their result unbind default actions we don't want XXX unclean, grows stack lookup specific domain just dump all domains
open Passe open Passe_unix open Common open Lwt open Lwt_react module Log = (val Logging.log_module "ui") class password_prompt term (text:string) = object(self) inherit LTerm_read_line.read_password () inherit [Zed_string.t] LTerm_read_line.term term initializer self#set_prompt (S.const (LTerm_text.of_string (Z...
3c34a29c69427e8a80a052332df8e6b0bef21f462d24f7401301786d74055867
blamario/language-oberon
Oberon.hs
{-# Language FlexibleContexts, RecordWildCards, TypeFamilies #-} | The programming languages and Oberon-2 module Language.Oberon (parseModule, parseAndResolveModule, parseAndResolveModuleFile, LanguageVersion(..), Options(..), NodeWrap, Placed) where import Language.Oberon.AST (Language, M...
null
https://raw.githubusercontent.com/blamario/language-oberon/6acd7ae17151a949bf8216af96879c1c1cca374b/src/Language/Oberon.hs
haskell
# Language FlexibleContexts, RecordWildCards, TypeFamilies # | choice of modes of operation | whether to fold the constants | whether to verify the types | which language version? | Parse the given text of a single module, without resolving the syntactic ambiguities. | Parse the given text of a single /definition...
| The programming languages and Oberon-2 module Language.Oberon (parseModule, parseAndResolveModule, parseAndResolveModuleFile, LanguageVersion(..), Options(..), NodeWrap, Placed) where import Language.Oberon.AST (Language, Module(..), Ident) import qualified Language.Oberon.Grammar as Gra...
acc8ce2a4be2567b760332b1a8ee8bc1c35e42bb2bd8bdf1fff1167c5c42acf2
samply/blaze
validation_test.clj
(ns blaze.db.node.validation-test (:require [blaze.db.node.validation :as validation] [blaze.db.node.validation-spec] [blaze.test-util :as tu] [clojure.spec.test.alpha :as st] [clojure.test :as test :refer [deftest is testing]] [cognitect.anomalies :as anom] [juxt.iota :refer [given]])) ...
null
https://raw.githubusercontent.com/samply/blaze/6441a0a2f988b8784ed555c1d20f634ef2df7e4a/modules/db/test/blaze/db/node/validation_test.clj
clojure
(ns blaze.db.node.validation-test (:require [blaze.db.node.validation :as validation] [blaze.db.node.validation-spec] [blaze.test-util :as tu] [clojure.spec.test.alpha :as st] [clojure.test :as test :refer [deftest is testing]] [cognitect.anomalies :as anom] [juxt.iota :refer [given]])) ...
2078c292528677eaca9ea8b7a75e744c72c82ae1e32f9af4c23dadab9b685458
uwplse/PUMPKIN-PATCH
assumptions.mli
(* Equality assumptions for substitutions in proof search *) open Constr open Environ open Evd open Stateutils type equal_assumptions type param_substitutions type swap_map val no_assumptions : equal_assumptions val no_substitutions : param_substitutions val no_swaps : swap_map (* --- Auxiliary functions on assumpt...
null
https://raw.githubusercontent.com/uwplse/PUMPKIN-PATCH/73fd77ba49388fdc72702a252a8fa8f071a8e1ea/plugin/src/representation/assumptions.mli
ocaml
Equality assumptions for substitutions in proof search --- Auxiliary functions on assumptions --- Print a list of substitutions for debugging purposes Is there an assumption about the term? Is there a substitution from the provided term? * Get the assumption about the term * Fail if has_assumption is false...
open Constr open Environ open Evd open Stateutils type equal_assumptions type param_substitutions type swap_map val no_assumptions : equal_assumptions val no_substitutions : param_substitutions val no_swaps : swap_map val substitutions_as_string : env -> param_substitutions -> string val has_assumption : equal_as...
9b57ce53924f0781030d1ecadac09a2aa519a4bff87dd3542a7d6b419f29200b
probprob/probabilisticprogramming
Metropolis.hs
{-# LANGUAGE RankNTypes, NoMonomorphismRestriction#-} # LANGUAGE GADTs , DataKinds , KindSignatures # module Metropolis where import System.Random (RandomGen, Random, StdGen, randomR, getStdGen,mkStdGen) import Control.Monad.State import qualified Data.IntMap.Strict as M import qualified Data.IntSet as Set import q...
null
https://raw.githubusercontent.com/probprob/probabilisticprogramming/59c96d9e25bf6067ff57f488d3049dbdc5b4e5dd/hakaru10/Metropolis.hs
haskell
# LANGUAGE RankNTypes, NoMonomorphismRestriction# Enable or disable debugging debug str e = TR.trace str e debugM str = debug_trace str We can sample from this distribution, and we can resample (change our choice) In principle, we can resample from the distribution. However, its sample has been observed and cann...
# LANGUAGE GADTs , DataKinds , KindSignatures # module Metropolis where import System.Random (RandomGen, Random, StdGen, randomR, getStdGen,mkStdGen) import Control.Monad.State import qualified Data.IntMap.Strict as M import qualified Data.IntSet as Set import qualified Memory as Mem import Distribution (Dist(..),...
733d7a3a2edf3c9dc8bc1033230dc1b000ce49510a4c35c74ab73600cf95509c
mfikes/fifth-postulate
ns146.cljs
(ns fifth-postulate.ns146) (defn solve-for01 [xs v] (for [ndx0 (range 0 (- (count xs) 3)) ndx1 (range (inc ndx0) (- (count xs) 2)) ndx2 (range (inc ndx1) (- (count xs) 1)) ndx3 (range (inc ndx2) (count xs)) :when (= v (+ (xs ndx0) (xs ndx1) (xs ndx2) (xs ndx3)))] (list (x...
null
https://raw.githubusercontent.com/mfikes/fifth-postulate/22cfd5f8c2b4a2dead1c15a96295bfeb4dba235e/src/fifth_postulate/ns146.cljs
clojure
(ns fifth-postulate.ns146) (defn solve-for01 [xs v] (for [ndx0 (range 0 (- (count xs) 3)) ndx1 (range (inc ndx0) (- (count xs) 2)) ndx2 (range (inc ndx1) (- (count xs) 1)) ndx3 (range (inc ndx2) (count xs)) :when (= v (+ (xs ndx0) (xs ndx1) (xs ndx2) (xs ndx3)))] (list (x...
c4d1eaffc68b19aba322134ed4ce5631b9a5f302aabc923b75d7ee1c48b02086
fjvallarino/monomer
Main.hs
| Module : Main Copyright : ( c ) 2018 License : BSD-3 - Clause ( see the LICENSE file ) Maintainer : Stability : experimental Portability : non - portable Main module for the tutorials . Module : Main Copyright : (c) 2018 Francisco Vallarino License : BSD-3-Clause (see...
null
https://raw.githubusercontent.com/fjvallarino/monomer/332529a67a121e0ffc3db64977835d717bc48e52/examples/tutorial/Main.hs
haskell
Tutorial01_Basics.main01 Tutorial03_LifeCycle.main03 Tutorial04_Tasks.main04 Tutorial06_Composite.main06 Tutorial07_CustomWidget.main07
| Module : Main Copyright : ( c ) 2018 License : BSD-3 - Clause ( see the LICENSE file ) Maintainer : Stability : experimental Portability : non - portable Main module for the tutorials . Module : Main Copyright : (c) 2018 Francisco Vallarino License : BSD-3-Clause (see...
ddde5419f50f31db98e6de0d6652e96d3dc05527510aeb83fd53390f59252b61
tek/chiasma
TmuxTest.hs
module Chiasma.Test.TmuxTest where import Polysemy.Test (UnitTest, (===)) import Chiasma.Codec.Data.Pane (Pane (Pane)) import Chiasma.Codec.Data.Window (Window (Window)) import Chiasma.Data.CodecError (CodecError) import qualified Chiasma.Data.PaneSelection as PaneSelection import qualified Chiasma.Data.Target as Tar...
null
https://raw.githubusercontent.com/tek/chiasma/51751e19a416a9afe12f7797df8a67990b266240/packages/test/integration/Chiasma/Test/TmuxTest.hs
haskell
module Chiasma.Test.TmuxTest where import Polysemy.Test (UnitTest, (===)) import Chiasma.Codec.Data.Pane (Pane (Pane)) import Chiasma.Codec.Data.Window (Window (Window)) import Chiasma.Data.CodecError (CodecError) import qualified Chiasma.Data.PaneSelection as PaneSelection import qualified Chiasma.Data.Target as Tar...
0b85d486ced93c0568ec089d5b7d42786d2e30d35ecf410bfa42bfd508d8478b
ajhc/ajhc
Main.hs
module Main(main) where import Control.Exception import Control.Monad.Identity import Data.Char import Prelude import System.Directory import System.FilePath as FP import System.IO import qualified Data.ByteString.Lazy as LBS import DataConstructors import E.Main import E.Program import E.Rules import E.Type import F...
null
https://raw.githubusercontent.com/ajhc/ajhc/8ef784a6a3b5998cfcd95d0142d627da9576f264/src_main/Main.hs
haskell
set temporary directory we are very careful to only delete cache files. dump final version of various requested things enter interactive mode
module Main(main) where import Control.Exception import Control.Monad.Identity import Data.Char import Prelude import System.Directory import System.FilePath as FP import System.IO import qualified Data.ByteString.Lazy as LBS import DataConstructors import E.Main import E.Program import E.Rules import E.Type import F...
fbddf032a931402d5e8bc41f3c2a8002677da50d8dd26fb9ce441497eaeec30c
pietervdvn/ALGT
AsSVGPt.hs
# LANGUAGE TemplateHaskell # module SyntaxHighlighting.AsSVGPt where {- Draws parsetrees as images -} import Utils.Utils import Utils.Image import TypeSystem import SyntaxHighlighting.Coloring import SyntaxHighlighting.Renderer import Text.Blaze.Svg11 ((!), stringValue) import qualified Text.Blaze.Svg11 as S impor...
null
https://raw.githubusercontent.com/pietervdvn/ALGT/43a2811931be6daf1362f37cb16f99375ca4999e/src/SyntaxHighlighting/AsSVGPt.hs
haskell
Draws parsetrees as images fontsize size between layers current running name, for unique identification (used to draw the lines)
# LANGUAGE TemplateHaskell # module SyntaxHighlighting.AsSVGPt where import Utils.Utils import Utils.Image import TypeSystem import SyntaxHighlighting.Coloring import SyntaxHighlighting.Renderer import Text.Blaze.Svg11 ((!), stringValue) import qualified Text.Blaze.Svg11 as S import qualified Text.Blaze.Svg11.Attr...
4e7741b39a4d424e189b0c5837f2fdce4bef9808d68be90d95b37d9f1ca35f5c
ekmett/haskell
Unique.hs
{-# Language MagicHash #-} # Language UnboxedTuples # {-# Language BlockArguments #-} -- | Copyright : ( c ) 2018 - 2020 License : BSD-2 - Clause OR Apache-2.0 Maintainer : < > -- Stability : experimental -- Portability: non-portable module Common.Unique ( Unique , newUnique ) where impor...
null
https://raw.githubusercontent.com/ekmett/haskell/37ad048531f5a3a13c6dfbf4772ee4325f0e4458/ulf/src/Common/Unique.hs
haskell
# Language MagicHash # # Language BlockArguments # | Stability : experimental Portability: non-portable # unpack #
# Language UnboxedTuples # Copyright : ( c ) 2018 - 2020 License : BSD-2 - Clause OR Apache-2.0 Maintainer : < > module Common.Unique ( Unique , newUnique ) where import Control.Monad.Primitive import Data.Hashable import GHC.Prim import GHC.Types instance Eq Unique where Unique _ p ==...
614477d6c45204fe3a588deb5effe86bfa95a9ac7a3c9ba7b045520297ba06be
ghosthamlet/algorithm-data-structure
hash_table_test.clj
(ns algorithm-data-structure.data-structures.hash-table-test (:require [algorithm-data-structure.data-structures.hash-table :as ht] [algorithm-data-structure.util :refer [record->map]] [clojure.test :refer :all])) (def table (ht/create 3)) (deftest create-test (is (= {:keys {} :b...
null
https://raw.githubusercontent.com/ghosthamlet/algorithm-data-structure/017f41a79d8b1d62ff5a6cceffa1b0f0ad3ead6b/test/algorithm_data_structure/data_structures/hash_table_test.clj
clojure
(ns algorithm-data-structure.data-structures.hash-table-test (:require [algorithm-data-structure.data-structures.hash-table :as ht] [algorithm-data-structure.util :refer [record->map]] [clojure.test :refer :all])) (def table (ht/create 3)) (deftest create-test (is (= {:keys {} :b...
bc1da035e8d2fd725cc9222eb37c4bc3ae763439e232c6b6188d35f5571a1fe0
drewt/scmus
default.scm
(set-option! 'color-cmdline '(default default default)) (set-option! 'color-error '(default default default)) (set-option! 'color-info '(default default default)) (set-option! 'color-statusline '(default default default)) (set-option! 'color-titleline '(default default default)) (set-option! 'color-...
null
https://raw.githubusercontent.com/drewt/scmus/5041ec376cb17db463117b8fa212b16b23fe770d/data/colors/default.scm
scheme
(set-option! 'color-cmdline '(default default default)) (set-option! 'color-error '(default default default)) (set-option! 'color-info '(default default default)) (set-option! 'color-statusline '(default default default)) (set-option! 'color-titleline '(default default default)) (set-option! 'color-...
2cc50faba35093be619b44de258d6e42099af06c2a86a70ae8152681aca995ef
discus-lang/ddc
PrimTyCon.hs
module DDC.Core.Salt.Name.PrimTyCon ( PrimTyCon (..) , pprPrimTyConStem , readPrimTyCon , readPrimTyConStem , primTyConIsIntegral , primTyConIsFloating , primTyConIsUnsigned , primTyConIsSigned , primTyConWidth) where import DDC.Core.Salt.Plat...
null
https://raw.githubusercontent.com/discus-lang/ddc/2baa1b4e2d43b6b02135257677671a83cb7384ac/src/s1/ddc-core-salt/DDC/Core/Salt/Name/PrimTyCon.hs
haskell
| Primitive type constructors. | @Void#@ the Void type has no values. | @Bool#@ unboxed booleans. | @Nat#@ natural numbers. Enough precision to count every object in the heap, but NOT necessearily enough precision to count every byte of memory. | @Int#@ signed integers. Enough precision to count every obj...
module DDC.Core.Salt.Name.PrimTyCon ( PrimTyCon (..) , pprPrimTyConStem , readPrimTyCon , readPrimTyConStem , primTyConIsIntegral , primTyConIsFloating , primTyConIsUnsigned , primTyConIsSigned , primTyConWidth) where import DDC.Core.Salt.Plat...
c3f28dcd5a8773e36522e2fca0a2a74967df28ea31035bec743e3d5800aea20b
pfdietz/ansi-test
bit-andc2.lsp
;-*- Mode: Lisp -*- Author : Created : Sun Jan 26 19:01:38 2003 ;;;; Contains: Tests of BIT-ANDC2 (deftest bit-andc2.1 (let* ((s1 (make-array nil :initial-element 0 :element-type 'bit)) (s2 (make-array nil :initial-element 0 :element-type 'bit))) (values (bit-andc2 s1 s2) s1 s2)) #0...
null
https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/arrays/bit-andc2.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests of BIT-ANDC2 Tests on bit vectors Tests on bit arrays Adjustable arrays Displaced arrays Random tests Error tests
Author : Created : Sun Jan 26 19:01:38 2003 (deftest bit-andc2.1 (let* ((s1 (make-array nil :initial-element 0 :element-type 'bit)) (s2 (make-array nil :initial-element 0 :element-type 'bit))) (values (bit-andc2 s1 s2) s1 s2)) #0a0 #0a0 #0a0) (deftest bit-andc2.2 (let* ((s1 (make...
ad3bd4fbef5b09a27643056c21b399eb5a3c7e6c146dbb02bdc6474fe4916779
penpot/penpot
test_helpers_shapes.cljs
(ns frontend-tests.test-helpers-shapes (:require [app.common.colors :as clr] [app.common.data :as d] [app.common.geom.point :as gpt] [app.common.pages.helpers :as cph] [app.main.data.workspace.libraries :as dwl] [app.test-helpers.events :as the] [app.test-helpers.libraries :as thl] [app.test-h...
null
https://raw.githubusercontent.com/penpot/penpot/c98635bca11637f73c0164199e35c695e2096729/frontend/test/frontend_tests/test_helpers_shapes.cljs
clojure
(ns frontend-tests.test-helpers-shapes (:require [app.common.colors :as clr] [app.common.data :as d] [app.common.geom.point :as gpt] [app.common.pages.helpers :as cph] [app.main.data.workspace.libraries :as dwl] [app.test-helpers.events :as the] [app.test-helpers.libraries :as thl] [app.test-h...
2b156e6a96e411da865948b8c19d87b11a63463ca55c86eabaa71ad8fc361f9e
ItsMeijers/Lambdabox
Http.hs
{-# LANGUAGE OverloadedStrings #-} module Binance.Internal.Exchange.Http ( ping , binanceTime , exchangeInfo ) where import Lambdabox.Box import Network.Wreq.Extended import Binance.Internal.Exchange.Types import Data.Aeson.Extended (Unit) -- | Pings the Binance server to check wether a connection ca...
null
https://raw.githubusercontent.com/ItsMeijers/Lambdabox/c19a8ae7d37b9f8ab5054d558fe788a5d4483092/src/Binance/Internal/Exchange/Http.hs
haskell
# LANGUAGE OverloadedStrings # | Pings the Binance server to check wether a connection can be made | Retrieves the time from the Binance server | Retrieves the echange info of Binance
module Binance.Internal.Exchange.Http ( ping , binanceTime , exchangeInfo ) where import Lambdabox.Box import Network.Wreq.Extended import Binance.Internal.Exchange.Types import Data.Aeson.Extended (Unit) ping :: Box () ping = do _ <- get "/api/v1/ping" [] :: Box Unit return () binanceTime :...
e62c4cd53f8b84b5f1e50ba357a06b7eea332c2356c0c5345aca9c4d02eaf4d9
ocaml-multicore/parafuzz
test3.ml
(* TEST *) effect E : unit exception X let () = Printf.printf "%d\n%!" @@ try Printf.printf "in handler. raising X\n%!"; raise X with | X -> 10 | effect E k -> 11
null
https://raw.githubusercontent.com/ocaml-multicore/parafuzz/6a92906f1ba03287ffcb433063bded831a644fd5/testsuite/tests/effects/test3.ml
ocaml
TEST
effect E : unit exception X let () = Printf.printf "%d\n%!" @@ try Printf.printf "in handler. raising X\n%!"; raise X with | X -> 10 | effect E k -> 11
4fcdaeddbf5f2a788127d7b4dac44e990de780cdfd568c8776987fbfd220c185
mikera/vectorz-clj
data_readers.clj
{vectorz/vector mikera.vectorz.readers/vector vectorz/matrix mikera.vectorz.readers/matrix vectorz/scalar mikera.vectorz.readers/scalar vectorz/array mikera.vectorz.readers/array}
null
https://raw.githubusercontent.com/mikera/vectorz-clj/cf98ff89c7f1d26b98eb9bc18b1b0a3e53176dca/src/main/clojure/data_readers.clj
clojure
{vectorz/vector mikera.vectorz.readers/vector vectorz/matrix mikera.vectorz.readers/matrix vectorz/scalar mikera.vectorz.readers/scalar vectorz/array mikera.vectorz.readers/array}
b9183947bd626c4c5f0736b19b35f8659f11d63f5025ce2b6ede770bbc3fb199
dradtke/Lisp-Text-Editor
tests.lisp
(in-package :cl-user) (defpackage :alexandria-tests (:use :cl :alexandria #+sbcl :sb-rt #-sbcl :rtest) (:import-from #+sbcl :sb-rt #-sbcl :rtest #:*compile-tests* #:*expected-failures*)) (in-package :alexandria-tests) (defun run-tests (&key ((:compiled *compile-tests*))) (do-tests)) ;;;; Array...
null
https://raw.githubusercontent.com/dradtke/Lisp-Text-Editor/b0947828eda82d7edd0df8ec2595e7491a633580/quicklisp/dists/quicklisp/software/alexandria-20120208-git/tests.lisp
lisp
Arrays Conditions Control flow Definitions Errors in this case. Hash tables See <>. outer list was copied. inner vector wasn't copied. Functions Lists Numbers uh Arrays Sequences test the compiler macro Symbols Type-system Bindings
(in-package :cl-user) (defpackage :alexandria-tests (:use :cl :alexandria #+sbcl :sb-rt #-sbcl :rtest) (:import-from #+sbcl :sb-rt #-sbcl :rtest #:*compile-tests* #:*expected-failures*)) (in-package :alexandria-tests) (defun run-tests (&key ((:compiled *compile-tests*))) (do-tests)) (deftest ...
0cb72b74c7ca65736dbc4cc4490ac388ecdeb83d42a17ee602c831a1de05796b
programaker-project/Programaker-Core
automate_storage_tags_tests.erl
%%% @doc Automate channel engine tests . %%% @end -module(automate_storage_tags_tests). -include_lib("eunit/include/eunit.hrl"). -define(APPLICATION, automate_storage). %% Data structures -include("../../automate_storage/src/records.hrl"). -define(TEST_NODES, [node()]). %%===========================...
null
https://raw.githubusercontent.com/programaker-project/Programaker-Core/ef10fc6d2a228b2096b121170c421f5c29f9f270/backend/apps/automate_storage/test/automate_storage_tags_tests.erl
erlang
@doc @end Data structures ==================================================================== Test API ==================================================================== @doc App infrastructure setup. @end Use a custom node name to avoid overwriting the actual databases @doc App infrastructure teard...
Automate channel engine tests . -module(automate_storage_tags_tests). -include_lib("eunit/include/eunit.hrl"). -define(APPLICATION, automate_storage). -include("../../automate_storage/src/records.hrl"). -define(TEST_NODES, [node()]). session_manager_test_() -> {setup , fun setup/0 , fu...
b1a59fdedc8df0dbbaa2efc855bd7cec73bfad2ef8c0d43a2f539ca3fc953412
alanz/ghc-exactprint
LinearTH2.hs
# LANGUAGE LinearTypes , TemplateHaskell , RankNTypes , NoMonomorphismRestriction # module LinearTH2 where x1 = [t|forall p. Int %p -> Int|]
null
https://raw.githubusercontent.com/alanz/ghc-exactprint/b6b75027811fa4c336b34122a7a7b1a8df462563/tests/examples/ghc90/LinearTH2.hs
haskell
# LANGUAGE LinearTypes , TemplateHaskell , RankNTypes , NoMonomorphismRestriction # module LinearTH2 where x1 = [t|forall p. Int %p -> Int|]
c4c35fc70528a176ecc698c24916228665906ca7530714fd2259de2357d0317e
ucsd-progsys/dsolve
normalize.mli
exception NormalizationFailure of Parsetree.expression * Location.t * string val normalize_structure : Parsetree.structure -> Parsetree.structure val desugar_forloops : Parsetree.structure -> Parsetree.structure val eliminate_anys : Parsetree.structure -> Parsetree.structure
null
https://raw.githubusercontent.com/ucsd-progsys/dsolve/bfbbb8ed9bbf352d74561e9f9127ab07b7882c0c/liquid/normalize.mli
ocaml
exception NormalizationFailure of Parsetree.expression * Location.t * string val normalize_structure : Parsetree.structure -> Parsetree.structure val desugar_forloops : Parsetree.structure -> Parsetree.structure val eliminate_anys : Parsetree.structure -> Parsetree.structure
4add482510d0cac3a568447238bc239387d2b6e25509d171bb724964ebaf4418
wireless-net/erlang-nommu
typer_SUITE.erl
` ` The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Public License along with this software. If not, it can be %% retrieved via the world wide...
null
https://raw.githubusercontent.com/wireless-net/erlang-nommu/79f32f81418e022d8ad8e0e447deaea407289926/lib/typer/test/typer_SUITE.erl
erlang
compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved via the world wide web at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations u...
` ` The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " The Initial Developer of the Original Code is Ericsson Utvecklings AB . Portions created by Eri...
a02450fdb11d495997c72a4df888c4308d0e61a1d7496e270549c06d8ab0471e
achirkin/vulkan
Lib.hs
# LANGUAGE DataKinds # {-# LANGUAGE LambdaCase #-} {-# LANGUAGE NamedFieldPuns #-} # LANGUAGE RecordWildCards # {-# LANGUAGE Strict #-} # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # module Lib ( runVulkanProgram , WhichDemo (..) ) where import Control.Monad ...
null
https://raw.githubusercontent.com/achirkin/vulkan/b2e0568c71b5135010f4bba939cd8dcf7a05c361/vulkan-triangles/src/Lib.hs
haskell
# LANGUAGE LambdaCase # # LANGUAGE NamedFieldPuns # # LANGUAGE Strict # Obviously, in real world vertices come from a separate file and not known at compile time. to render something on a screen. Setting `XN 3` here is just a handy way to statically ensure the program satisfies this requirem...
# LANGUAGE DataKinds # # LANGUAGE RecordWildCards # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # module Lib ( runVulkanProgram , WhichDemo (..) ) where import Control.Monad (forM_, when, unless) import Data.IORef import Graphics.Vulkan.Core_1_0 import Graphics.Vul...
a126b4976e095cda2fc99fd0687c35a99ef164387ab3c902c00e31d92ade4740
DSTOQ/haskell-stellar-sdk
Rest.hs
module Control.Monad.Trans.Rest ( RestT (..) , runRestT ) where import Network.HTTP.Simple import Network.HTTP.Types import Network.URI import Protolude import Control.Monad.Catch (MonadThrow) import Control.Monad.Rest (ApiBase (...
null
https://raw.githubusercontent.com/DSTOQ/haskell-stellar-sdk/82a76c2f951a2aaabdc38092fdc89044b278c53d/client/src/Control/Monad/Trans/Rest.hs
haskell
module Control.Monad.Trans.Rest ( RestT (..) , runRestT ) where import Network.HTTP.Simple import Network.HTTP.Types import Network.URI import Protolude import Control.Monad.Catch (MonadThrow) import Control.Monad.Rest (ApiBase (...
4a635c35e88e3ffeb66c6715922d372762eee17f55763de3c24df0af5fcdf137
aantron/markup.ml
text.ml
This file is part of Markup.ml , released under the MIT license . See LICENSE.md for details , or visit . LICENSE.md for details, or visit . *) open Common type t = {mutable strings : string list; buffer : Buffer.t; mutable location : location option} (* This is changed for unit testing...
null
https://raw.githubusercontent.com/aantron/markup.ml/420aaa3d38d90ed84d1d7157840f7df5f3b5b349/src/text.ml
ocaml
This is changed for unit testing. This is only used for strings that are expected to be very small, at the moment.
This file is part of Markup.ml , released under the MIT license . See LICENSE.md for details , or visit . LICENSE.md for details, or visit . *) open Common type t = {mutable strings : string list; buffer : Buffer.t; mutable location : location option} let length_limit = ref (Sys.max_str...
a694e5665bc713c2ab6c3378720ae621e621bd7393434062075e99fb3b94c536
fukamachi/supertrace
package.lisp
(defpackage #:supertrace/clock (:use #:cl #:cffi-grovel) (:export #:clock-gettime #:+clock-monotonic+ #:+clock-realtime+)) (in-package #:supertrace/clock)
null
https://raw.githubusercontent.com/fukamachi/supertrace/66d22c3ff131ecd1c8048dfced1d62ed6024ecb0/src/clock/package.lisp
lisp
(defpackage #:supertrace/clock (:use #:cl #:cffi-grovel) (:export #:clock-gettime #:+clock-monotonic+ #:+clock-realtime+)) (in-package #:supertrace/clock)
488776a5e3a089f196834185b683c5f91bbcf06657b11ab32383dc9ee2a508cc
agda/agda
Typecheck.hs
# LANGUAGE NondecreasingIndentation # module Agda.Auto.Typecheck where import Prelude hiding ((!!)) import Data.IORef import Agda.Syntax.Common (Hiding (..)) import Agda.Auto.NarrowingSearch import Agda.Auto.Syntax import Agda.Auto.SearchControl import Agda.Utils.Impossible import Agda.Utils.List import Agda.Utils...
null
https://raw.githubusercontent.com/agda/agda/26c11b629cd60bc135ca87697cbf01ee03f094c6/src/full/Agda/Auto/Typecheck.hs
haskell
--------------------------------- mpret $ Error "tcExp, type of set i unknown sort" -- OK instead? (prev __IMPOSSIBLE__) --------------------------------- dirty hack to make check of no-iota in term work ----------------------------- to know more often if iota step is possible to know more often if iota step is ...
# LANGUAGE NondecreasingIndentation # module Agda.Auto.Typecheck where import Prelude hiding ((!!)) import Data.IORef import Agda.Syntax.Common (Hiding (..)) import Agda.Auto.NarrowingSearch import Agda.Auto.Syntax import Agda.Auto.SearchControl import Agda.Utils.Impossible import Agda.Utils.List import Agda.Utils...
4783f3c6c92f49348f6ad4f681b3f69bbeaa6a73f5604d9af199b7752a536ba2
nomnom-insights/nomnom.duckula
server.clj
(ns duckula.test.server "Test HTTP server" (:require [com.stuartsierra.component :as component] [duckula.component.basic-monitoring :as monitoring] [duckula.component.http-server :as http-server] [duckula.handler] [duckula.middleware] [duckula.test.handler.echo :as handler.echo] [duckula.test.h...
null
https://raw.githubusercontent.com/nomnom-insights/nomnom.duckula/a6c8ee965da5717c5909bfbda5745be7a287d2ce/test/duckula/test/server.clj
clojure
report validation errors but don't fail requests no validation
(ns duckula.test.server "Test HTTP server" (:require [com.stuartsierra.component :as component] [duckula.component.basic-monitoring :as monitoring] [duckula.component.http-server :as http-server] [duckula.handler] [duckula.middleware] [duckula.test.handler.echo :as handler.echo] [duckula.test.h...
6966854e878535bffeab32fbda366d301ed1dc56aa141c7b03628eb0fdc983a5
re-ops/re-cipes
chrome.clj
(ns re-cipes.chrome "Google chrome" (:require [re-cipes.access :refer (permissions)] [clojure.core.strint :refer (<<)] [re-cog.resources.file :refer (file line)] [re-cog.resources.package :refer (package key-file update-)] [re-cog.resources.user :refer (group-add)] [re-cog.resources.download :refe...
null
https://raw.githubusercontent.com/re-ops/re-cipes/453126fe20fa844a00768a2400325b5b1827a424/src/re_cipes/chrome.clj
clojure
(ns re-cipes.chrome "Google chrome" (:require [re-cipes.access :refer (permissions)] [clojure.core.strint :refer (<<)] [re-cog.resources.file :refer (file line)] [re-cog.resources.package :refer (package key-file update-)] [re-cog.resources.user :refer (group-add)] [re-cog.resources.download :refe...
ed2f7fb97e8d0d51d484ce772102fb150a0ba7015ce366be7e8326a30f2f9bba
spawnfest/eep49ers
erl_internal.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1998 - 2018 . 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 required by applicab...
null
https://raw.githubusercontent.com/spawnfest/eep49ers/d1020fd625a0bbda8ab01caf0e1738eb1cf74886/lib/stdlib/src/erl_internal.erl
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 the specific lan...
Copyright Ericsson AB 1998 - 2018 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(erl_internal). NOTE : All guard_bif ( ) , arith_op ( ) , bool_op ( ) and ( ) must be the call to ...
baa8f8ad5d6e6c315285af77e7d5aa1e06b193bd7e66b056eb220a1ebfee4180
anoma/juvix
Base.hs
module Core.Compile.Base where import Asm.Compile.Base qualified as Asm import Base import Core.Eval.Base import Core.Eval.Positive qualified as Eval import Data.Text.IO qualified as TIO import Juvix.Compiler.Asm.Translation.FromCore qualified as Asm import Juvix.Compiler.Core.Pipeline import Juvix.Compiler.Core.Trans...
null
https://raw.githubusercontent.com/anoma/juvix/764c6faa8097066687cdb0431b17bf43a94adab1/test/Core/Compile/Base.hs
haskell
module Core.Compile.Base where import Asm.Compile.Base qualified as Asm import Base import Core.Eval.Base import Core.Eval.Positive qualified as Eval import Data.Text.IO qualified as TIO import Juvix.Compiler.Asm.Translation.FromCore qualified as Asm import Juvix.Compiler.Core.Pipeline import Juvix.Compiler.Core.Trans...
60731fa933e010652ed76fcec77ee7cde049bdc30f370fea4e12239c149b07ef
palletops/lein-shorthand
test_ns2.clj
(ns test-ns2) (defn f2 [] :f2) (defmacro m2 [] `(list :m2))
null
https://raw.githubusercontent.com/palletops/lein-shorthand/a29f1721772d2956865d3892da9e9e952c7b143f/test/test_ns2.clj
clojure
(ns test-ns2) (defn f2 [] :f2) (defmacro m2 [] `(list :m2))
06df07ef00734a44100540a96fb28e25fe876af124e54e516e75a1a2de5750df
fractalide/fractalide
test.rkt
#lang racket/base (require fractalide/modules/rkt/rkt-fbp/graph fractalide/modules/rkt/rkt-fbp/def) (require/edge ${guiv2.list-counter}) (require/edge ${guiv2.counter}) (define imesg (cons 'list-counter (list-counter 1 (list (counter 0 0))))) (define-graph (node "frame" ${guiv2.frame}) (node "model" $...
null
https://raw.githubusercontent.com/fractalide/fractalide/9c54ec2615fcc2a1f3363292d4eed2a0fcb9c3a5/modules/rkt/rkt-fbp/agents/guiv2/test.rkt
racket
#lang racket/base (require fractalide/modules/rkt/rkt-fbp/graph fractalide/modules/rkt/rkt-fbp/def) (require/edge ${guiv2.list-counter}) (require/edge ${guiv2.counter}) (define imesg (cons 'list-counter (list-counter 1 (list (counter 0 0))))) (define-graph (node "frame" ${guiv2.frame}) (node "model" $...
542478db58ef74886d82de5bd26f6e2ff3bbb198f472f8e526e12f684ea3da66
hopv/MoCHi
partition.ml
open Util open Combinator (** Set partitions *) let top s = [s] let bot s = List.map (fun e -> [e]) s let meet ps1 ps2 = Vector.multiply Set_.inter ps1 ps2 |> List.unique ~cmp:Set_.equiv |> List.filter ((<>) []) this may not return a correct partition [ join { { 1,2},{3,4 } } { { 2,3},{1,4 } } ] returns...
null
https://raw.githubusercontent.com/hopv/MoCHi/b0ac0d626d64b1e3c779d8e98cb232121cc3196a/fpat/partition.ml
ocaml
* Set partitions
open Util open Combinator let top s = [s] let bot s = List.map (fun e -> [e]) s let meet ps1 ps2 = Vector.multiply Set_.inter ps1 ps2 |> List.unique ~cmp:Set_.equiv |> List.filter ((<>) []) this may not return a correct partition [ join { { 1,2},{3,4 } } { { 2,3},{1,4 } } ] returns [ { { 1,2,3},{1,2...
fe45c6c32eeb0aed422878b8d7aaef98b514e8792f894a59323380da5f47fd89
tweag/ormolu
do-single-multi.hs
foo = do (bar baz)
null
https://raw.githubusercontent.com/tweag/ormolu/34bdf62429768f24b70d0f8ba7730fc4d8ae73ba/data/examples/declaration/value/function/do-single-multi.hs
haskell
foo = do (bar baz)
0f00073a487c9b86fe71bcfe12c397a296f4c4f703985299564f568ac79dfcad
sky-big/RabbitMQ
rabbit_web_dispatch_app.erl
The contents of this file are subject to the Mozilla Public License %% Version 1.1 (the "License"); you may not use this file except in %% compliance with the License. You may obtain a copy of the License %% at / %% Software distributed under the License is distributed on an " AS IS " %% basis, WITHOUT WARRANTY OF ...
null
https://raw.githubusercontent.com/sky-big/RabbitMQ/d7a773e11f93fcde4497c764c9fa185aad049ce2/plugins-src/rabbitmq-web-dispatch/src/rabbit_web_dispatch_app.erl
erlang
Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. @doc applicatio...
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is RabbitMQ . The Initial Developer of the Original Code is GoPivotal , Inc. Copyright ( c ) 2010 - 2014 GoPivotal , Inc. All rights reserved . -module...
720998273c7b8ee9566af9a4991f718a9128e2e4f6b97830304f3456f18999c7
gbwey/predicate-typed
Json.hs
# LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeApplications # # LANGUAGE DataKinds # {-# LANGUAGE GADTs #-} # LANGUAGE TypeFamilies # # LANGUAGE PolyKinds # # LANGUAGE ScopedTypeVariables # {-# L...
null
https://raw.githubusercontent.com/gbwey/predicate-typed/51f8d51f662722e1109d2ff35644aea1e0371b42/src/Predicate/Data/Json.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes # # LANGUAGE OverloadedStrings # # LANGUAGE ConstraintKinds # # LANGUAGE EmptyDataDeriving # | promoted json encoding and decoding functions ** parse ** encode $setup >>> :set -XDataKinds >>> :set -XTypeApplications >>> :set -XTypeOperators >>> :set -XOverloadedStrings ...
# LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeApplications # # LANGUAGE DataKinds # # LANGUAGE TypeFamilies # # LANGUAGE PolyKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE NoStarIsType # mo...
50810ed3a4a6977eb393058b4a228b23ffb9435f24f57b6abd26532ff6cd9b0e
tmattio/dream-livereload
server.ml
(** Main entry point for our application. *) let () = Dream.run ~error_handler:Dream.debug_error_handler @@ Dream.logger @@ Dream_livereload.inject_script () @@ Dream.router [ Dream.get "/" (fun _ -> Dream.html "Hello World!") ; Dream_livereload.route () ]
null
https://raw.githubusercontent.com/tmattio/dream-livereload/c4045ed18066a1b0501041777fb1282958a7bae5/example/server.ml
ocaml
* Main entry point for our application.
let () = Dream.run ~error_handler:Dream.debug_error_handler @@ Dream.logger @@ Dream_livereload.inject_script () @@ Dream.router [ Dream.get "/" (fun _ -> Dream.html "Hello World!") ; Dream_livereload.route () ]
9b9ce4ad799ebc7fefc974bec02e5b2f6ffd5743a20c83420a037a44c2454a2e
mcna/closer-mop
closer-scl.lisp
(in-package :closer-mop) (defgeneric add-direct-method (specializer method) (:method ((specializer standard-object) (method method)))) (defgeneric remove-direct-method (specializer method) (:method ((specializer standard-object) (method method)))) (defvar *dependents* (make-hash-table :test #'eq)) (defgeneric a...
null
https://raw.githubusercontent.com/mcna/closer-mop/f0ee095aee92743beea783dd112dc4f5682ef03b/closer-scl.lisp
lisp
(in-package :closer-mop) (defgeneric add-direct-method (specializer method) (:method ((specializer standard-object) (method method)))) (defgeneric remove-direct-method (specializer method) (:method ((specializer standard-object) (method method)))) (defvar *dependents* (make-hash-table :test #'eq)) (defgeneric a...
b3096515c2afa0e84ff5be04c122a79a4a5f4d9223a1f4cb650e39860e3714d1
cbaggers/nineveh
quad-streams.lisp
(in-package :nineveh.streams) (defvar *quad-stream-v2-data* (list (v! -1.0 1.0) (v! -1.0 -1.0) (v! 1.0 -1.0) (v! -1.0 1.0) (v! 1.0 -1.0) (v! 1.0 1.0))) (let ((stream nil)) (defun get-quad-stream-v2 () (declare (optimize (speed 3) (safety 1) (debug 1))) (...
null
https://raw.githubusercontent.com/cbaggers/nineveh/0a10a84669cd9d1c584f54b9eab062986a5f1c47/streams/quad-streams.lisp
lisp
(in-package :nineveh.streams) (defvar *quad-stream-v2-data* (list (v! -1.0 1.0) (v! -1.0 -1.0) (v! 1.0 -1.0) (v! -1.0 1.0) (v! 1.0 -1.0) (v! 1.0 1.0))) (let ((stream nil)) (defun get-quad-stream-v2 () (declare (optimize (speed 3) (safety 1) (debug 1))) (...
bd43f4f567616d1df7c03d8cb8aad2eaa05ed0f1195104f4d9f5587d2036d6be
fare/fare-stumpwm
keys.lisp
(in-package :stumpwm) ( define - key * root - map * ( " h " ) ' * help - map * ) (defparameter *top-map-keys* '(#|("M-space" . "only") ("M-S-space" . "restart-hard") ("C-Escape" . "delete") ("C-S-Escape" . "kill-window")|# ("M-Tab" . "next") ("M-S-Tab" . "prev") ("M-quoteleft" . "gnext") ...
null
https://raw.githubusercontent.com/fare/fare-stumpwm/f9b9308dfc13a57610b5f71b162f6be53d8caffb/keys.lisp
lisp
("M-space" . "only") ("M-S-space" . "restart-hard") ("C-Escape" . "delete") ("C-S-Escape" . "kill-window")
(in-package :stumpwm) ( define - key * root - map * ( " h " ) ' * help - map * ) (defparameter *top-map-keys* ("M-Tab" . "next") ("M-S-Tab" . "prev") ("M-quoteleft" . "gnext") ("M-S-quoteleft" . "gprev") ("H-F2" . "disable-touchpad") ("H-F3" . "enable-touchpad") ("H-F11" . "stop-chrome")...
24ed183c03b18c6decb6dc81c39d88b818ed87a07bd0fbe7b6b8e3d075c17a21
hodur-org/hodur-datomic-schema
core_test.clj
(ns core-test (:require [clojure.test :refer :all] [hodur-engine.core :as engine] [hodur-datomic-schema.core :as datomic])) (defn ^:private schema->datomic [s] (-> s engine/init-schema datomic/schema)) (deftest test-all (let [s (schema->datomic '[^{:datomic/tag true} ...
null
https://raw.githubusercontent.com/hodur-org/hodur-datomic-schema/ea64391ffba19eabf839cb9bc961442bee56b3ad/test/core_test.clj
clojure
contrived example
(ns core-test (:require [clojure.test :refer :all] [hodur-engine.core :as engine] [hodur-datomic-schema.core :as datomic])) (defn ^:private schema->datomic [s] (-> s engine/init-schema datomic/schema)) (deftest test-all (let [s (schema->datomic '[^{:datomic/tag true} ...
cd5d30d57b1a0e0b0dcf0b1f6376a204d454c5d48e8377983fb128d793ad4b22
mbg/hoop
Interop.hs
module Language.Hoop.CodeGen.Interop ( parseType, parseDecs, parseExp ) where import Language.Haskell.TH import Language.Haskell.TH.Syntax import qualified Language.Haskell.Exts.Syntax as Syntax import qualified Language.Haskell.Exts.Parser as Exts import Language.Haskell.Exts.Extension as HS import Langu...
null
https://raw.githubusercontent.com/mbg/hoop/98a53bb1db66b06f9b5d3e5242eed336f908ad18/src/Language/Hoop/CodeGen/Interop.hs
haskell
| Haskell language extensions we want to allow
module Language.Hoop.CodeGen.Interop ( parseType, parseDecs, parseExp ) where import Language.Haskell.TH import Language.Haskell.TH.Syntax import qualified Language.Haskell.Exts.Syntax as Syntax import qualified Language.Haskell.Exts.Parser as Exts import Language.Haskell.Exts.Extension as HS import Langu...
52175f77686f1a40f449d85eeddea2ee88d6da5d292de8caf2204cb5cf953901
talex5/ocaml-wayland
xml.ml
type t = { pos : string * Xmlm.pos; name : Xmlm.name; mutable attrs : Xmlm.attribute list; mutable children : tree list; } and tree = E of t | D of string let pp f node = let file, (line, col) = node.pos in Fmt.pf f "<%a> at %s:%d:%d" Xmlm.pp_name node.name file line col let check_empty node = node.attr...
null
https://raw.githubusercontent.com/talex5/ocaml-wayland/1f46a3b3d13260c674c3846f42ee8e636cd86516/scanner/xml.ml
ocaml
type t = { pos : string * Xmlm.pos; name : Xmlm.name; mutable attrs : Xmlm.attribute list; mutable children : tree list; } and tree = E of t | D of string let pp f node = let file, (line, col) = node.pos in Fmt.pf f "<%a> at %s:%d:%d" Xmlm.pp_name node.name file line col let check_empty node = node.attr...
f554e5137f6cbc50a21fd6c958871999c2f48a690cee500b85cf9e8912e68e23
spawngrid/htoad
rebar_test.erl
%%%------------------------------------------------------------------- @author < > ( C ) 2009 Juan Jose Comellas @doc Example file for the module . %%% @end %%% This source file is subject to the New BSD License . You should have received %%% a copy of the New BSD license with this software. If not, it ca...
null
https://raw.githubusercontent.com/spawngrid/htoad/f0c7dfbd911b29fb0c406b7c26606f553af11194/deps/getopt/examples/rebar_test.erl
erlang
------------------------------------------------------------------- @end a copy of the New BSD license with this software. If not, it can be retrieved from: -license.php -------------------------------------------------------------------
@author < > ( C ) 2009 Juan Jose Comellas @doc Example file for the module . This source file is subject to the New BSD License . You should have received -module(rebar_test). -author(''). -export([test/0, test/1, usage/0]). test() -> test("-f verbose=1 --quiet=on -j2 dummy1 dummy2"). test(CmdLine...
1aab6d6d0078794b440a00c64a7457099d05fa7caa05d7050e3685becfeb75a1
brandonbloom/metaclj
parse.clj
(ns metaclj.impl.parse) ;TODO: namespaced symbols can't be shadowed; hence eclj.env/patches ;TODO: validation conditions. ie raise error for ( var inc inc ) , ( quote x x ) , odd number bindings , etc (defprotocol Form (-parse [expr env])) (defrecord Syntax [forms env] Form (-parse [x env] x)) (defn syn...
null
https://raw.githubusercontent.com/brandonbloom/metaclj/444106fe5c1f35e4fd056f8011df0096550e7b40/src/metaclj/impl/parse.clj
clojure
TODO: namespaced symbols can't be shadowed; hence eclj.env/patches TODO: validation conditions. XXX Special cases the `..` macro, but could be others. TODO: validate signature. TODO: validate methods. syntax-quote may non-sensically qualify member symbols. TODO just :head :assign TODO: Validate location.
(ns metaclj.impl.parse) ie raise error for ( var inc inc ) , ( quote x x ) , odd number bindings , etc (defprotocol Form (-parse [expr env])) (defrecord Syntax [forms env] Form (-parse [x env] x)) (defn syntax? [x] (instance? Syntax x)) (defn head [x] (if (syntax? x) :syntax (:head x))) (d...
c4150f3897495b6c1e12d9256e3ccaf8654836d06f0fe7caaef1ea2ea4fcdbb8
dcos/lashup
lashup_hyparview_membership.erl
-module(lashup_hyparview_membership). -author("sdhillon"). -behaviour(gen_server). -include_lib("kernel/include/logger.hrl"). -include("lashup.hrl"). -ifdef(TEST). -include_lib("eunit/include/eunit.hrl"). -endif. %% API -export([ start_link/0, get_active_view/0, get_passive_view/0, do_probe/1, ping_failed/...
null
https://raw.githubusercontent.com/dcos/lashup/a0661006c38237147252ebe0b98cc2c29352c976/src/lashup_hyparview_membership.erl
erlang
API gen_server callbacks Number of times I've tried to neighbor and I've not seen an active set TODO: Make map types better defined We probably want to define a partial of the map =================================================================== API ==============================================================...
-module(lashup_hyparview_membership). -author("sdhillon"). -behaviour(gen_server). -include_lib("kernel/include/logger.hrl"). -include("lashup.hrl"). -ifdef(TEST). -include_lib("eunit/include/eunit.hrl"). -endif. -export([ start_link/0, get_active_view/0, get_passive_view/0, do_probe/1, ping_failed/1, re...
39764b09351c0cce5e6a1b6949c667d5122f4212faef557f9ac9767a1a453f55
maxigit/sql-fragment
PrettySpec.hs
-- | Lens and Labels SQLFragment integration tests. # LANGUAGE DataKinds , OverloadedStrings # # LANGUAGE NoMonomorphismRestriction # module Database.SQLFragment.PrettySpec where -- standard third - party -- import qualified Data.Tagged as T import Data . Tagged ( Tagged ) import Test.Hspec import Test.HUnit hid...
null
https://raw.githubusercontent.com/maxigit/sql-fragment/01b91ac3bdbbf437d43018b0d68fd9428d6239fd/tests/Database/SQLFragment/PrettySpec.hs
haskell
| Lens and Labels SQLFragment integration tests. standard import qualified Data.Tagged as T local * Basic DB
# LANGUAGE DataKinds , OverloadedStrings # # LANGUAGE NoMonomorphismRestriction # module Database.SQLFragment.PrettySpec where third - party import Data . Tagged ( Tagged ) import Test.Hspec import Test.HUnit hiding (Label) import Data . HList . CommonMain ( Label ( .. ) , hLens ' ) import Database.SQLFragment...
87fcf1b93929b2f4f62ece2e732045bdb4c419a4a6ae23280664ae4807447de1
dzen-dhall/dzen-dhall
Parser.hs
{-# OPTIONS -Wno-name-shadowing #-} module DzenDhall.Parser where import Data.Text import DzenDhall.Config import DzenDhall.Data import Text.Parsec.Combinator import Text.Parsec.Prim import Text.Parsec import qualified Data.HashMap.Strict as H import qualified Data.Vector as V import Lens.Micro type Parser ...
null
https://raw.githubusercontent.com/dzen-dhall/dzen-dhall/ee43b74272d6776ce57adfd7b7d85650580a6cbb/src/DzenDhall/Parser.hs
haskell
# OPTIONS -Wno-name-shadowing # | Used to tag bar elements that require a list of children. These lists of children are parsed using 'sepBy' with 'TokSeparator' as a delimiter. | Used to tag bar elements that require a single child.
module DzenDhall.Parser where import Data.Text import DzenDhall.Config import DzenDhall.Data import Text.Parsec.Combinator import Text.Parsec.Prim import Text.Parsec import qualified Data.HashMap.Strict as H import qualified Data.Vector as V import Lens.Micro type Parser a = Parsec Tokens () a type Tokens ...
34552bea16ecf8fc53617856412d65f185a26c37fb268eaff341cd7f72a3832b
AshleyYakeley/Truth
Rename.hs
module Language.Expression.Common.Rename ( module I ) where import Language.Expression.Common.Rename.NamespaceRenamable as I import Language.Expression.Common.Rename.RenameTypeSystem as I import Language.Expression.Common.Rename.VarNamespaceT as I import Language.Expression.Common.Rename.VarRenamerT as I
null
https://raw.githubusercontent.com/AshleyYakeley/Truth/d704b8baaa77dac002922eccecdd91018c4b7eef/Pinafore/typed-expression/lib/Language/Expression/Common/Rename.hs
haskell
module Language.Expression.Common.Rename ( module I ) where import Language.Expression.Common.Rename.NamespaceRenamable as I import Language.Expression.Common.Rename.RenameTypeSystem as I import Language.Expression.Common.Rename.VarNamespaceT as I import Language.Expression.Common.Rename.VarRenamerT as I
90a1de877954075748ac4c76ec311be221b8e065bb8c6518d1885f2731ff7d1a
michilu/shirasu
twitter_stream.erl
-module(twitter_stream). -author(''). -author('ENDOH takanao <>'). %% Origin: -tap-to-the-twitter-stream/ %% Copyright ( c ) 2009 , Jebu Ittiachen %% All rights reserved. %% %% Redistribution and use in source and binary forms, with or without modification, are %% permitted provided that the following conditions ar...
null
https://raw.githubusercontent.com/michilu/shirasu/2c8e3c43b93e5a3662bdb177c3c32c4846cb736d/src/twitter_stream.erl
erlang
Origin: -tap-to-the-twitter-stream/ All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: conditions and the following disclaimer. of conditions and the following disclaimer in the doc...
-module(twitter_stream). -author(''). -author('ENDOH takanao <>'). Copyright ( c ) 2009 , Jebu Ittiachen 1 . Redistributions of source code must retain the above copyright notice , this list of 2 . Redistributions in binary form must reproduce the above copyright notice , this list THIS SOFTWARE IS PROVID...
7aecd72b1c551c98d4925680fd4977a49ad9e5a017af6235719d08963dc88678
malcolmstill/cl-wayland
wayland-util.lisp
(defpackage :wayland-util (:use :common-lisp :cffi) (:export wl-message make-wl-message wl-interface make-wl-interface set-requests set-events make-wl-types offset-types)) (in-package :wayland-util) (defcstruct wl-interface) (defcstruct wl-message (name :string) (signature :string) ...
null
https://raw.githubusercontent.com/malcolmstill/cl-wayland/eebb08ff428697ce6ee8bcde16fe21e29e76d455/wayland-util.lisp
lisp
(defpackage :wayland-util (:use :common-lisp :cffi) (:export wl-message make-wl-message wl-interface make-wl-interface set-requests set-events make-wl-types offset-types)) (in-package :wayland-util) (defcstruct wl-interface) (defcstruct wl-message (name :string) (signature :string) ...
037d8d53b74e2512daa109ab40ab1687ee2505eddbe3978922da39c44633ae88
NelosG/fp-tests
Common.hs
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # module Test.Common ( allProps , compProp , genFun , genInt , idProp ) where import Control.Monad (liftM2) import HW2.T1 import Hedgehog (Gen, Property, forAll, property, (===)) import qualified Hedgehog.Gen as Gen import qualified Hedgehog.Rang...
null
https://raw.githubusercontent.com/NelosG/fp-tests/7e2af5c3c3279c2045662faaff8e5f895af6af6a/hw2/test/T1/Test/Common.hs
haskell
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # module Test.Common ( allProps , compProp , genFun , genInt , idProp ) where import Control.Monad (liftM2) import HW2.T1 import Hedgehog (Gen, Property, forAll, property, (===)) import qualified Hedgehog.Gen as Gen import qualified Hedgehog.Rang...
f0974789970c8bffc0efccaa46356bf2d7e21f0cf63541a48922e5d47359865b
karamellpelle/grid
LevelPuzzleWorld.hs
grid is a game written in Haskell Copyright ( C ) 2018 -- -- This file is part of grid. -- -- grid 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 optio...
null
https://raw.githubusercontent.com/karamellpelle/grid/56729e63ed6404fd6cfd6d11e73fa358f03c386f/designer/source/Game/LevelPuzzleMode/LevelPuzzleWorld.hs
haskell
This file is part of grid. grid is free software: you can redistribute it and/or modify (at your option) any later version. grid 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 GN...
grid is a game written in Haskell Copyright ( C ) 2018 it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License # LANGUAGE MultiParamTypeClasses # module Game.Lev...
196a61855e26cc98f6d363b53129a5f27c38e052bf5ff37771b934ba4013cf2c
lem-project/lem
lem-lisp-syntax.lisp
(uiop:define-package :lem-lisp-syntax (:use :cl) (:use-reexport :lem-lisp-syntax.indent :lem-lisp-syntax.syntax-table :lem-lisp-syntax.misc :lem-lisp-syntax.enclosing :lem-lisp-syntax.parse-for-swank-autodoc :lem-lisp-syntax.defstruct-to-defclass))
null
https://raw.githubusercontent.com/lem-project/lem/4f620f94a1fd3bdfb8b2364185e7db16efab57a1/lib/lisp-syntax/lem-lisp-syntax.lisp
lisp
(uiop:define-package :lem-lisp-syntax (:use :cl) (:use-reexport :lem-lisp-syntax.indent :lem-lisp-syntax.syntax-table :lem-lisp-syntax.misc :lem-lisp-syntax.enclosing :lem-lisp-syntax.parse-for-swank-autodoc :lem-lisp-syntax.defstruct-to-defclass))
36c4c207cede41f6b5881e691155db9f39258638eed7516353c91792c92e01d2
league/metaserv
dirUn.ml
open Printf open Unix let default_re = let r = "^[^\\.].*[^~]$" in (r, Str.regexp r) type fileinfo = { name: string; ext: string; kind: string; mtime: float; size: int; md5: string; prn: string } let cex f1 f2 = compare f1.ext f2.ext let ck f1 f2 = compare f1.kind f2.kind let cmt f1 f2 = compare f1.m...
null
https://raw.githubusercontent.com/league/metaserv/35e85832b3d6dfe4e15b8036653d4429a90644f5/server/dirUn.ml
ocaml
Printf.printf "stat %s\n" path; End of `dir.meta' column heads page ends
open Printf open Unix let default_re = let r = "^[^\\.].*[^~]$" in (r, Str.regexp r) type fileinfo = { name: string; ext: string; kind: string; mtime: float; size: int; md5: string; prn: string } let cex f1 f2 = compare f1.ext f2.ext let ck f1 f2 = compare f1.kind f2.kind let cmt f1 f2 = compare f1.m...
e8e4aad4aa36f199c5a912edaa848702a5230344aa2576575d5c90ddf24d3aed
serokell/avl-plus
AVL.hs
| High - level interface to AVL+-based blockchain storage , with capabilities to prove and verify transactions . to prove and verify transactions. -} module Data.Blockchain.Storage.AVL ( -- * Transaction wrapper Proven (..) , recordProof , recordProof_ , apply , rollback ...
null
https://raw.githubusercontent.com/serokell/avl-plus/3fb3933f4f11f282e8c498d128c3e5c79518ea9b/src/Data/Blockchain/Storage/AVL.hs
haskell
* Transaction wrapper * Cache transformer * Exceptions * Transactions * Light node * Helpers * Database interfaces to implement | Insert key/value into the blockchain state. | Delete key from the blockchain state. | Lookup key in the blockchain state. | Lookup key in the the blockchain state. | Perform a tr...
| High - level interface to AVL+-based blockchain storage , with capabilities to prove and verify transactions . to prove and verify transactions. -} module Data.Blockchain.Storage.AVL Proven (..) , recordProof , recordProof_ , apply , rollback , CacheT , insert , ...
89f84fe79f8dea6f12923cc13af344aa27295e39ba624f2ac94fd4e2de80535f
ndmitchell/catch
Firstify.hs
module Prepare.Firstify(firstify) where import Yhc.Core hiding (collectAllVars,collectFreeVars,uniqueBoundVars,replaceFreeVars) import Yhc.Core.FreeVar2 import Prepare.Firstify.Template import Prepare.Firstify.Prepare import Data.List import Data.Char import Data.Maybe import General.General import Control.Monad.S...
null
https://raw.githubusercontent.com/ndmitchell/catch/5d834416a27b4df3f7ce7830c4757d4505aaf96e/catch_1/Prepare/Firstify.hs
haskell
------------------------------------------------------------------- DRIVER the list of items which are currently under evaluation the functions which got finished those which were asked for while in active make sure that the templating is done now try and do the transformation on it if required now inline the fu...
module Prepare.Firstify(firstify) where import Yhc.Core hiding (collectAllVars,collectFreeVars,uniqueBoundVars,replaceFreeVars) import Yhc.Core.FreeVar2 import Prepare.Firstify.Template import Prepare.Firstify.Prepare import Data.List import Data.Char import Data.Maybe import General.General import Control.Monad.S...
cfb5a2fccf1f31ec58f201a86d739ce99228d114652344cc57c26db509879c14
goblint/analyzer
addressDomain.ml
open GoblintCil open IntOps module GU = Goblintutil module M = Messages module type S = sig include Lattice.S type idx type field val from_var: varinfo -> t val from_var_offset: (varinfo * (idx,field) Lval.offs) -> t val to_var_offset: t -> (varinfo * (idx,field) Lval.offs) list val to_var_may: t -> va...
null
https://raw.githubusercontent.com/goblint/analyzer/fadfdfe9ee16aaf6998cbe81dd213d346eb93e63/src/cdomains/addressDomain.ml
ocaml
short-circuit with physical equality, makes a difference at long-scale: #issuecomment-1206174751 short-circuit with physical equality, not benchmarked WTF? Returns TVoid when it is unknown and stuff??? strings add an & in front of real addresses TODO: overrides is_top, but not top?
open GoblintCil open IntOps module GU = Goblintutil module M = Messages module type S = sig include Lattice.S type idx type field val from_var: varinfo -> t val from_var_offset: (varinfo * (idx,field) Lval.offs) -> t val to_var_offset: t -> (varinfo * (idx,field) Lval.offs) list val to_var_may: t -> va...
b044f44ef55cc69eda66adc683f57adaa88769e6d42da02c7c513227df2423e8
reflectionalist/S9fES
listq.scm
Scheme 9 from Empty Space , Function Library By , 2010 ; Placed in the Public Domain ; ; (listq object ...) ==> list ; ; LISTQ is like LIST, but quotes each OBJECT passed to it. ; Rationale: (list a b c) evaluates a, b, and c ; '(a b c) makes the list immutable ; `(a b c) ...
null
https://raw.githubusercontent.com/reflectionalist/S9fES/0ade11593cf35f112e197026886fc819042058dd/lib/listq.scm
scheme
Placed in the Public Domain (listq object ...) ==> list LISTQ is like LIST, but quotes each OBJECT passed to it. Rationale: (list a b c) evaluates a, b, and c '(a b c) makes the list immutable `(a b c) may be inefficient (list 'a 'b 'c) is awkward Example: ...
Scheme 9 from Empty Space , Function Library By , 2010 (load-from-library "syntax-rules.scm") (define-syntax listq (syntax-rules () ((_ x ...) (list 'x ...))))
3035332d458f1eb261ffd1972defb3f5e58382edd75392b47124ef19705769b6
ztellman/penumbra
text.clj
Copyright ( c ) . All rights reserved . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be bound by...
null
https://raw.githubusercontent.com/ztellman/penumbra/db43d01c280305beab26d1004ae78b1777ab3fc7/src/penumbra/text.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) . All rights reserved . (ns penumbra.text (:use [penumbra.opengl] [penumbra.opengl.core :only [get-integer *view* *font-cache* *font*]] [penumbra.def :only (defvar defn-memo)]) (:import [java.awt Font] [java.awt.font TextAttribute] [org.newdawn.slick True...
c822c8cbef5ac63aef55a6e8c7e6fc7ca5e97a82593f0eb44a97f84cc097a41c
opencog/opencog
primitives.scm
; ; primitives.scm ; ; Behavior tree primitives. ; ; Defines a set of primitive behaviors from which behavior trees can be ; constructed. Mostly a collection of odds and ends that don't have a ; home somewhere else (but probably should). ; ; -------------------------------------------------------- (use-modules (openc...
null
https://raw.githubusercontent.com/opencog/opencog/53f2c2c8e26160e3321b399250afb0e3dbc64d4c/opencog/eva/behavior/primitives.scm
scheme
primitives.scm Behavior tree primitives. Defines a set of primitive behaviors from which behavior trees can be constructed. Mostly a collection of odds and ends that don't have a home somewhere else (but probably should). -------------------------------------------------------- -----------------------------...
(use-modules (opencog) (opencog exec)) (use-modules (opencog nlp)) (use-modules (opencog logger)) (use-modules (opencog eva-model)) ` ( GroundedPredicate " scm : print - msg " ) ` wo n't work . (define eva-logger (eva-get-logger)) (define-public (print-msg node) (cog-logger-info eva-logger "~a\n" (cog-name node))...
b80e14d457f5b3c322ce70bc7a4e187b0d170d35512d9de6133a12ea98306e85
ekmett/linear-haskell
Key.hs
{-# Language RoleAnnotations #-} {-# Language MagicHash #-} {-# Language KindSignatures #-} {-# Language TypeOperators #-} {-# Language BlockArguments #-} {-# Language LinearTypes #-} {-# Language UnliftedNewtypes #-} {-# Language ScopedTypeVariables #-} # Language UnboxedTuples # {-# Language RankNTypes #-} {-# Langua...
null
https://raw.githubusercontent.com/ekmett/linear-haskell/6f9e5c0e96d0c99d064ae027086db48c4fcfc63c/linear-keys/src/Linear/Key.hs
haskell
# Language RoleAnnotations # # Language MagicHash # # Language KindSignatures # # Language TypeOperators # # Language BlockArguments # # Language LinearTypes # # Language UnliftedNewtypes # # Language ScopedTypeVariables # # Language RankNTypes # # Language ImportQualifiedPost # # Language TypeApplications # # Language...
# Language UnboxedTuples # module Linear.Key ( Ref(..) , Key(..) , alloc , freeze , unique , turn ) where import GHC.Stack import GHC.Exts qualified as GHC import GHC.Prim import Control.Optics.Linear.Lens import Data.Unrestricted.Linear import Linear.Unlifted.Key (Ref#(..), Key#(..)) import Linear.Unli...
e46f5c57b15a22d68b8443aedf2cdc9cd5b62c360a346b8d1a34e9bd552fcc97
OCamlPro/digodoc
odoc.ml
(**************************************************************************) (* *) Copyright ( c ) 2020 OCamlPro SAS & Origin Labs SAS (* *) (* All right...
null
https://raw.githubusercontent.com/OCamlPro/digodoc/c7694f2624a1b432caf16998f63b4da297539048/src/digodoc_lib/odoc.ml
ocaml
************************************************************************ All rights reserved. This file is distributed u...
Copyright ( c ) 2020 OCamlPro SAS & Origin Labs SAS Public License version 2.1 , with the special exception on linking open Ez_html.V1 open EzCompat open Ez_file open Ez_file.FileString.OP open Type open Digodoc_common Note : In our first version , we were computing dependencies...
fff1a323a00f5da13752e2f5c4fdcab6db45005c5e8f6f053183886abae83215
mkloczko/derive-storable
GenericType.hs
{-#LANGUAGE GADTs #-} # LANGUAGE TypeOperators # # LANGUAGE KindSignatures # # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE InstanceSigs # # LANGUAGE PartialTypeSignatures # # LANGUAGE UndecidableInstances # # LANGUAGE DataKinds # module GenericType (...
null
https://raw.githubusercontent.com/mkloczko/derive-storable/e215ce0165e0de735189e9d55058df9f62bd8b2a/test/GenericRep/GenericType.hs
haskell
#LANGUAGE GADTs # Test modules Tested modules Test data | TestType - the basic building blocks from which GStorable instances are built. Generating random pointers. | The wrappable type class. Wraps the type in generics ----------------- | Contains the basic building blocks that generate GStorable type ...
# LANGUAGE TypeOperators # # LANGUAGE KindSignatures # # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE InstanceSigs # # LANGUAGE PartialTypeSignatures # # LANGUAGE UndecidableInstances # # LANGUAGE DataKinds # module GenericType ( BasicType(..), Generi...
0ae7a86334e3f24c348a469cc3f2beed98b065a61903cd5555ba14f6cd8fb278
bmeurer/ocaml-arm
opttopdirs.ml
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/bmeurer/ocaml-arm/43f7689c76a349febe3d06ae7a4fc1d52984fd8b/toplevel/opttopdirs.ml
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ Id$ Toplevel directives open Fo...
9f1e2c4656f4f4d96cc904eda4d9278ead69df04e9fb16e549ececd716bac0b9
exercism/babashka
project.clj
(defproject meetup "0.1.0-SNAPSHOT" :description "meetup exercise." :url "" :dependencies [[org.clojure/clojure "1.10.0"]])
null
https://raw.githubusercontent.com/exercism/babashka/707356c52e08490e66cb1b2e63e4f4439d91cf08/exercises/practice/meetup/project.clj
clojure
(defproject meetup "0.1.0-SNAPSHOT" :description "meetup exercise." :url "" :dependencies [[org.clojure/clojure "1.10.0"]])
a99dd734527da4944120855a4f20ecddd2bf8987b3c20259bd01e377238622c1
exoscale/tools.project
main.clj
(ns {{top/ns}}.{{main/ns}}) (defn foo "I don't do a whole lot." [x] (prn x "Hello, World!"))
null
https://raw.githubusercontent.com/exoscale/tools.project/4b97ccbd4a8460cdd7644cc3574a7ff6a21a5b30/resources/exoscale/project/src/main.clj
clojure
(ns {{top/ns}}.{{main/ns}}) (defn foo "I don't do a whole lot." [x] (prn x "Hello, World!"))
17b9ffa1a205b85aa9a31d274568c3acf359ae43420af2e2f0daf56db36c5dd5
tweag/lagoon
API.hs
Copyright 2020 Pfizer Inc. Licensed under the Apache License , Version 2.0 ( the " License " ) ; -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -2.0 -- Unless required by applicable law or agreed to in writing, software distributed under th...
null
https://raw.githubusercontent.com/tweag/lagoon/2ef0440db810f4f45dbed160b369daf41d92bfa4/server/src/Lagoon/Server/API.hs
haskell
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permiss...
Copyright 2020 Pfizer Inc. Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , module Lagoon.Server.API (server) where import Servant import Lagoon.Server.HandlerM import qualified Lagoon.Interface.API as API import q...
6697d8a24e8d1c41fa9450af7e721f41be353b6ce57cbbca921c000b288a2456
mmontone/cl-docweaver
package.lisp
package.lisp (defpackage #:docweaver (:use #:cl #:assoc-utils) (:export :process-weaver-command :weave-file :def-weaver-command-handler))
null
https://raw.githubusercontent.com/mmontone/cl-docweaver/491bcba8f8018389803d0107839c74b41df461ff/package.lisp
lisp
package.lisp (defpackage #:docweaver (:use #:cl #:assoc-utils) (:export :process-weaver-command :weave-file :def-weaver-command-handler))
8a7d74f6877b93aa5d42e13667f99359d80504e033b649c4433662c084bd0076
danielcompton/utrecht
utrecht.clj
(ns irresponsible.utrecht (:require [clojure.java.jdbc :as j]) (:import [java.sql Connection Savepoint])) (def isolations #{:none :read-uncommitted ; prevent dirty write :read-committed ; prevent dirty read :repeatable-read ; prevent fuzzy read :serializable}) ; prevent phantoms...
null
https://raw.githubusercontent.com/danielcompton/utrecht/f476b197028e260990f231213cc081693815a1b3/src/irresponsible/utrecht.clj
clojure
prevent dirty write prevent dirty read prevent fuzzy read prevent phantoms
(ns irresponsible.utrecht (:require [clojure.java.jdbc :as j]) (:import [java.sql Connection Savepoint])) (def isolations #{:none (defprotocol Pool (get-conn [p] "Gets a connection from the pool. Is assumed to be Closeable. args: [pool] returns: Conn throws: if we cannot obtain...
78e0e2c32c69f31c0fdc03b2f23c94c33d14b171ee13eee70f6d0cba0fa2ad77
anwarmamat/cmsc330fall17public
eval.mli
exception TypeError of string exception DeclarationError of string exception DivByZeroError val eval_expr : Types.environment -> Types.expr -> Types.value val eval_stmt : Types.environment -> Types.stmt -> Types.environment
null
https://raw.githubusercontent.com/anwarmamat/cmsc330fall17public/9a23ec1fc0cc4324e8c316f8d630c4e53af80f04/p4b/eval.mli
ocaml
exception TypeError of string exception DeclarationError of string exception DivByZeroError val eval_expr : Types.environment -> Types.expr -> Types.value val eval_stmt : Types.environment -> Types.stmt -> Types.environment
8f651230b8fa243a482940e6068fad20a5333193ef33148ca8c4cb72fbe52e52
smucclaw/dsl
Bench.hs
import qualified LS as SFL4 import Criterion.Main main :: IO () main = defaultMain [ bench "dummy benchmark" $ whnf SFL4.dumpRules undefined ]
null
https://raw.githubusercontent.com/smucclaw/dsl/b94ef68b8bee95967bbb60cafb03d9ae35894ac5/lib/haskell/natural4/benchmarks/Bench.hs
haskell
import qualified LS as SFL4 import Criterion.Main main :: IO () main = defaultMain [ bench "dummy benchmark" $ whnf SFL4.dumpRules undefined ]
8ca140a3595a575ffcc89ed3c8cb7dda5f557e08856b01d7fa90b177dd9eb751
dyzsr/ocaml-selectml
lambda.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/lambda/lambda.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Misc open Asttypes type compile_time_constant = | Big_endian | Word_size | Int_size | Max_w...
90453cd63ec24252156f1b3d296ad12cb88b4ec928fe92fa36f099b2a89fb739
kadena-io/kadenamint
Common.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE NumDecimals # {-# LANGUAGE OverloadedStrings #-} module Kadenamint.Common where import Control.Concurrent (threadDelay) import Control.Lens (_Right, (^.), (^?)) import Control.Monad.IO.Cla...
null
https://raw.githubusercontent.com/kadena-io/kadenamint/00c99eca71c4107d1ed31754e26d9e552237e3bd/src/Kadenamint/Common.hs
haskell
# LANGUAGE OverloadedStrings # Logging Text Errors Executable documentation
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE NumDecimals # module Kadenamint.Common where import Control.Concurrent (threadDelay) import Control.Lens (_Right, (^.), (^?)) import Control.Monad.IO.Class (Monad...
c39e2df00bc61f32dc69b75914a9e4f36ea69db61cef8490d79961341eccde93
biocaml/biocaml
strand.mli
* Strand names . There are various conventions for referring to the two strands of DNA . This module provides an [ of_string ] function that parses the various conventions into a canonical representation , which we define to be ' - ' or ' + ' . two strands of DNA. This module provides an [of_strin...
null
https://raw.githubusercontent.com/biocaml/biocaml/ac619539fed348747d686b8f628e80c1bb8bfc59/lib/unix/strand.mli
ocaml
* Only valid values are '-' or '+'. * Convert string to strand name if possible. * Return '-' or '+'. * Return "rev" or "fwd".
* Strand names . There are various conventions for referring to the two strands of DNA . This module provides an [ of_string ] function that parses the various conventions into a canonical representation , which we define to be ' - ' or ' + ' . two strands of DNA. This module provides an [of_strin...
f3dbb1b441582ae4b3474530cbc0f697f655c14b6e20b6bb7dc3fe71384ace15
dom8509/logseq-to-markdown
nbb.cljs
(ns logseq-to-markdown.nbb "Script that exports your local Logseq graph to (Hugo) Markdown files." (:require [nbb.core :as nbb] [logseq-to-markdown.args :as args] [logseq-to-markdown.fs :as fs] [logseq-to-markdown.config :as config] [logseq-to-markdown.graph :as g...
null
https://raw.githubusercontent.com/dom8509/logseq-to-markdown/de0988f700cb1a31207ee9167187bf690dbd8af6/src/logseq_to_markdown/nbb.cljs
clojure
(ns logseq-to-markdown.nbb "Script that exports your local Logseq graph to (Hugo) Markdown files." (:require [nbb.core :as nbb] [logseq-to-markdown.args :as args] [logseq-to-markdown.fs :as fs] [logseq-to-markdown.config :as config] [logseq-to-markdown.graph :as g...