_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
c9f915e9a0759f5ecb8bd7f347e16b3b8753d198ad3cc5fb3b9166c78278597f
ChicagoBoss/ChicagoBoss
boss_session_adapter_pgsql.erl
%%------------------------------------------------------------------- @author ChicagoBoss Team and contributors , see file in root directory %% @end This file is part of ChicagoBoss project . See file in root directory %% for license information, see LICENSE file in root directory %% @end %...
null
https://raw.githubusercontent.com/ChicagoBoss/ChicagoBoss/113bac70c2f835c1e99c757170fd38abf09f5da2/src/boss/session_adapters/boss_session_adapter_pgsql.erl
erlang
------------------------------------------------------------------- @end for license information, see LICENSE file in root directory @end @doc ------------------------------------------------------------------- Do we have a session table? If not, create it. This never gets called with actual data. If that c...
@author ChicagoBoss Team and contributors , see file in root directory This file is part of ChicagoBoss project . See file in root directory -module(boss_session_adapter_pgsql). -behaviour(boss_session_adapter). -export([start/0, start/1, stop/1, init/1]). -export([session_exists/2, create_se...
1ef18ec3099418145fd4da761ff53cae9ac25f68b97ff9a50da81f9bba1ce051
simmone/racket-simple-xlsx
write-drawing-rels-test.rkt
#lang racket (require simple-xml) (require rackunit/text-ui rackunit) (require "../../../../lib/lib.rkt") (require "../../../../xlsx/xlsx.rkt") (require "../../../../sheet/sheet.rkt") (require"../../../../xl/drawings/_rels/drawing-rels.rkt") (require racket/runtime-path) (define-runtime-path drawing1_rels_file "dr...
null
https://raw.githubusercontent.com/simmone/racket-simple-xlsx/e0ac3190b6700b0ee1dd80ed91a8f4318533d012/simple-xlsx/tests/xl/drawings/_rels/write-drawing-rels-test.rkt
racket
#lang racket (require simple-xml) (require rackunit/text-ui rackunit) (require "../../../../lib/lib.rkt") (require "../../../../xlsx/xlsx.rkt") (require "../../../../sheet/sheet.rkt") (require"../../../../xl/drawings/_rels/drawing-rels.rkt") (require racket/runtime-path) (define-runtime-path drawing1_rels_file "dr...
11222fc1682e13e32eeeddeace666e03bdcbc4b711e15684c19f1a7f41bfd722
disteph/cdsat
basic.ml
(*****************) (* Basic modules *) (*****************) open Format open Interfaces_basic open General open Patricia open Patricia_tools module IntSort = struct module M = struct type 'a t = int*bool*Sorts.t [@@deriving eq, hash] let name = "IntSort" end module H = HCons.Make(M) module HMade =...
null
https://raw.githubusercontent.com/disteph/cdsat/1b569f3eae59802148f4274186746a9ed3e667ed/src/kernel/kernel.mld/top.mld/basic.ml
ocaml
*************** Basic modules ***************
open Format open Interfaces_basic open General open Patricia open Patricia_tools module IntSort = struct module M = struct type 'a t = int*bool*Sorts.t [@@deriving eq, hash] let name = "IntSort" end module H = HCons.Make(M) module HMade = H.Init(HCons.NoBackIndex) include (HMade: sig type t = un...
d0a14f68dd4a04d3a18464beb3158f4c2b0a2cd338ca5285067a6c931fbe09dc
gas2serra/cldk
image.lisp
(in-package :cldk-driver-sdl2) (deftype octet () '(unsigned-byte 8)) (deftype sdl2-basic-image-pixels () 'cffi-sys:foreign-pointer) (defclass sdl2-image (cldki::shared-image) ()) (defclass sdl2-basic-image (sdl2-image) ((svector) (pixels :type sdl2-basic-image-pixels))) (defmethod initialize-instance :aft...
null
https://raw.githubusercontent.com/gas2serra/cldk/63c8322aedac44249ff8f28cd4f5f59a48ab1441/Drivers/SDL2/image.lisp
lisp
(in-package :cldk-driver-sdl2) (deftype octet () '(unsigned-byte 8)) (deftype sdl2-basic-image-pixels () 'cffi-sys:foreign-pointer) (defclass sdl2-image (cldki::shared-image) ()) (defclass sdl2-basic-image (sdl2-image) ((svector) (pixels :type sdl2-basic-image-pixels))) (defmethod initialize-instance :aft...
453c05facfadcf767f26b903c5fffd69bb7d3bfc11cd275795482236b01c0e57
Gbury/dolmen
arrays.mli
(** Ae array builtins *) module Ae : sig module Tff (Type : Tff_intf.S) (Ty : Dolmen.Intf.Ty.Ae_Array with type t := Type.Ty.t) (T : Dolmen.Intf.Term.Ae_Array with type t := Type.T.t) : sig type _ Type.err += | Bad_farray_arity : Dolmen.Std.Term.t Type.err * Raised when an array is para...
null
https://raw.githubusercontent.com/Gbury/dolmen/12bf280df3d886ddc0faa110effbafb71bffef7e/src/typecheck/arrays.mli
ocaml
* Ae array builtins * Errors for array type-checking. * Smtlib array builtins * The difference type of array restrictions that can be imposed by logics. * Raised when a restriction on the sort of arrays is breached. * Errors for array type-checking. * Raised when an id belonging to an extension of the arra...
module Ae : sig module Tff (Type : Tff_intf.S) (Ty : Dolmen.Intf.Ty.Ae_Array with type t := Type.Ty.t) (T : Dolmen.Intf.Term.Ae_Array with type t := Type.T.t) : sig type _ Type.err += | Bad_farray_arity : Dolmen.Std.Term.t Type.err * Raised when an array is parametrized with...
d95195b40874acec1c9979f445e28b808531450d95fa2eeb119ae8c0a2bf2a42
ocsigen/obrowser
printf.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) and , projet Cris...
null
https://raw.githubusercontent.com/ocsigen/obrowser/977c09029ea1e4fde4fb0bf92b4d893835bd9504/rt/caml/printf.ml
ocaml
********************************************************************* Objective Caml ...
and , projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with $ I d : printf.ml 9412 2009 - 11 - 09 11:42:39Z...
6ddc0d1978d9ea85c886fcb7be578b31c575211684ad08ebde0980c600b9cbc7
Incubaid/arakoon
key.ml
Copyright ( 2010 - 2014 ) INCUBAID BVBA 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 distribut...
null
https://raw.githubusercontent.com/Incubaid/arakoon/43a8d0b26e4876ef91d9657149f105c7e57e0cb0/src/node/key.ml
ocaml
Copyright ( 2010 - 2014 ) INCUBAID BVBA 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 distribut...
7c6fd25ef6c05b2df41bfa4b008d55cc812894c6cc0e4ac17f882b4288bd1da5
kcaze/hgba
Imperative.hs
module Imperative where import Control.Applicative import Data.Bits import Data.Int import Data.Word class Gettable t where get :: (t s a) -> (s -> a) fromFunction :: (s -> a) -> (t s a) -- Instances for functions instance Gettable (->) where get = id fromFunction = id instance (Num a) => Num (s -> a) where...
null
https://raw.githubusercontent.com/kcaze/hgba/1e3beb07e54ec20b1991f30bcc009a9cba977cc1/src/Imperative.hs
haskell
Instances for functions Generic Value type and instances Various lifted operators "then" operator "else" operator Note: Most implementations here are naive and could be more efficient for specific instances. Optimize later if necessary.
module Imperative where import Control.Applicative import Data.Bits import Data.Int import Data.Word class Gettable t where get :: (t s a) -> (s -> a) fromFunction :: (s -> a) -> (t s a) instance Gettable (->) where get = id fromFunction = id instance (Num a) => Num (s -> a) where (+) = liftA2 (+) (*) =...
43621e5a45c14698841b89e9bbecfa08bf433f954ac912964a2147cf3a9762ab
smallhadroncollider/taskell
Actions.hs
module Taskell.Events.Actions ( event , generateActions , ActionSets ) where import ClassyPrelude import Control.Lens ((^.)) import Graphics.Vty.Input.Events (Event (..)) import Taskell.Events.State.Types (State, Stateful, mode) import Taskell.Events.State.Types.Mode (DetailMode (..), ModalType...
null
https://raw.githubusercontent.com/smallhadroncollider/taskell/fb7feee61a4538869b76060651cf5c3bc2fcf3fd/src/Taskell/Events/Actions.hs
haskell
takes an event and returns a Maybe State for other events pass through to relevant modules returns new state if successful
module Taskell.Events.Actions ( event , generateActions , ActionSets ) where import ClassyPrelude import Control.Lens ((^.)) import Graphics.Vty.Input.Events (Event (..)) import Taskell.Events.State.Types (State, Stateful, mode) import Taskell.Events.State.Types.Mode (DetailMode (..), ModalType...
7c50c3ecece2c938b9d963802ccebff6aad2729dab35b156ea7eee9f84bfb1c1
sky-big/RabbitMQ
partitions.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-test/test/src/partitions.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. passes... Make...
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is RabbitMQ . The Initial Developer of the Original Code is GoPivotal , Inc. Copyright ( c ) 2007 - 2014 GoPivotal , Inc. All rights reserved . -module(...
4388537122ef300bc2ff7546a4f6a9027b896860a7a96c5dc82a9614b1a405f2
MondayMorningHaskell/haskellings
Types2Orig.hs
module Types2 where -- I AM NOT DONE aTuple :: ??? aTuple = (True, 5, "Hello") -- What's wrong with this? aList :: [Int] aList = [2.3, 4.5, 6.2]
null
https://raw.githubusercontent.com/MondayMorningHaskell/haskellings/fafadd5bbb722b54c1b7b114e34dc9b96bb7ca4d/tests/exercises/watcher_types/Types2Orig.hs
haskell
I AM NOT DONE What's wrong with this?
module Types2 where aTuple :: ??? aTuple = (True, 5, "Hello") aList :: [Int] aList = [2.3, 4.5, 6.2]
020744a0be87934ebd9444121658f80a56b433c8fda2998f665eadff762dbcfc
simonmichael/hledger
docshelltest.hs
#!/usr/bin/env stack stack script --resolver nightly-2021 - 12 - 16 --compile -} -- add this to see packages being installed instead of a long silence: -- --verbosity=info --package base-prelude --package directory --package extra --package process --package regex --package safe --package sha...
null
https://raw.githubusercontent.com/simonmichael/hledger/09009cbb1c03137786f77f69822ad9b03f767d1d/tools/docshelltest.hs
haskell
resolver nightly-2021 - 12 - 16 --compile add this to see packages being installed instead of a long silence: --verbosity=info package base-prelude package directory package extra package process package regex package safe package shake package time extract doctests from haskell source code extract haddock liter...
#!/usr/bin/env stack -} | Extract ( shell ) tests from haddock comments in code , run them and verify expected output . Like , but tests shell commands instead of GHCI commands . A docshelltest is a haddock literal block whose first line begins with a $ ( leading whitespace ignored ) , the rest of the ...
e9224b4e7f657db7e29f64a559b5c0f501c24a754bffadf2a1ef5699a679d925
kappelmann/engaging-large-scale-functional-programming
Exercise03.hs
# LANGUAGE FlexibleContexts # module Exercise03 where import Data.List primeMayor :: Integer -> Integer primeMayor n | isPrime n = 1 | even n || isPrime (n-2) = 2 | otherwise = 3 powMod' :: Integer -> Integer -> Integer -> Integer {- (a^k) `mod` n -} powMod' a 1 n = a `mod` n powMod' a k n | odd k = (a * powMo...
null
https://raw.githubusercontent.com/kappelmann/engaging-large-scale-functional-programming/8ed2c056fbd611f1531230648497cb5436d489e4/resources/contest/example_data/03/uploads/turtlemasters/Exercise03.hs
haskell
(a^k) `mod` n
# LANGUAGE FlexibleContexts # module Exercise03 where import Data.List primeMayor :: Integer -> Integer primeMayor n | isPrime n = 1 | even n || isPrime (n-2) = 2 | otherwise = 3 powMod' :: Integer -> Integer -> Integer -> Integer powMod' a 1 n = a `mod` n powMod' a k n | odd k = (a * powMod' a (k-1) n) `mod` ...
ba6bc7802153f5b6d49c8d42199a86997427a84e5aa6067f7115fa28df69418b
clojurewerkz/archimedes
edge.clj
(ns clojurewerkz.archimedes.edge (:refer-clojure :exclude [keys vals assoc! dissoc! get]) (:import (com.tinkerpop.blueprints Vertex Edge Direction Graph) (com.tinkerpop.blueprints.impls.tg TinkerGraph)) (:require [clojurewerkz.archimedes.vertex :as v] [clojurewerkz.archimedes.graph :refer (...
null
https://raw.githubusercontent.com/clojurewerkz/archimedes/f3300d3d71d35534acf7cc6f010e3fa503be0fba/src/clojure/clojurewerkz/archimedes/edge.clj
clojure
Transaction management Removal methods Information getters Source for these edge queries: =#!topic/gremlin-users/R2RJxJc1BHI Creation methods
(ns clojurewerkz.archimedes.edge (:refer-clojure :exclude [keys vals assoc! dissoc! get]) (:import (com.tinkerpop.blueprints Vertex Edge Direction Graph) (com.tinkerpop.blueprints.impls.tg TinkerGraph)) (:require [clojurewerkz.archimedes.vertex :as v] [clojurewerkz.archimedes.graph :refer (...
cddf983ee7ee318c4d2c47eb3465004f0da1bc41a2e3d4bcdd1a6d1865c504ee
yzhs/ocamlllvm
weak.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/yzhs/ocamlllvm/45cbf449d81f2ef9d234968e49a4305aaa39ace2/src/stdlib/weak.ml
ocaml
********************************************************************* Objective Caml ...
, projet Para , INRIA Rocquencourt Copyright 1997 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with $ Id$ type 'a t;; external create: i...
36b0cd0a5b7dc41aac0ac20fc623332b3d205a6d6e140956b672a44ace8f100a
jfeser/castor
codegen.ml
open Core module V = Visitors open Collections open Llvm_analysis open Llvm_target open Llvm_ext (* Turn on some llvm error handling. *) let () = enable_pretty_stacktrace (); install_fatal_error_handler (fun err -> let ocaml_trace = Backtrace.get () in print_endline (Backtrace.to_string ocaml_trace); ...
null
https://raw.githubusercontent.com/jfeser/castor/e9f394e9c0984300f71dc77b5a457ae4e4faa226/lib/codegen.ml
ocaml
Turn on some llvm error handling. Variables are either stored in the parameter struct or stored locally on the stack. Values that are stored in the parameter struct are also stored locally, but they are stored back to the parameter struct whenever the iterator returns to the caller. Look up a name i...
open Core module V = Visitors open Collections open Llvm_analysis open Llvm_target open Llvm_ext let () = enable_pretty_stacktrace (); install_fatal_error_handler (fun err -> let ocaml_trace = Backtrace.get () in print_endline (Backtrace.to_string ocaml_trace); print_endline ""; print_endli...
b772c7aebb1dfe6996610c73f869e500fe303f1c58d4430ad4062d5c1b26bc2f
robert-strandh/Cluffer
internal-protocol.lisp
(cl:in-package #:cluffer-internal) ;;; This class is the base class for all classes representing points ;;; in a buffer structure where lines are attached. (defclass dock () ((%line :initarg :line :reader line))) ;;; This generic function removes all the items to the right of POSITION in LINE , and returns a seco...
null
https://raw.githubusercontent.com/robert-strandh/Cluffer/4aad29c276a58a593064e79972ee4d77cae0af4a/Base/internal-protocol.lisp
lisp
This class is the base class for all classes representing points in a buffer structure where lines are attached. This generic function removes all the items to the right of have been inserted. Cursors that are located at positions strictly greater than POSITION are moved to the new line. Cursors that are locate...
(cl:in-package #:cluffer-internal) (defclass dock () ((%line :initarg :line :reader line))) POSITION in LINE , and returns a second line in which those items of those cursors . The STANDARD - LINE implementation provides two (defgeneric line-split-line (line position)) This generic function attaches all of...
02abed09609006af5910e198ac502838f639fa4309f042b4c61512a7b3722556
mzp/coq-ide-for-ios
tacticals.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/mzp/coq-ide-for-ios/4cdb389bbecd7cdd114666a8450ecf5b5f0391d3/coqlib/tactics/tacticals.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** ************************************...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * $ I d : tacticals.ml 13323 ...
1eff6e9aeae6f62cb2b162886a22930f7f093fbb2c885cc20db2eb9b02f982aa
ChrisPenner/proton
Remember.hs
module Data.Profunctor.Remember where import Data.Profunctor -- This is just Tagged + Closed, so it doesn't add anything new. newtype Remember r a b = Remember (r -> b) deriving Functor instance Profunctor (Remember r) where dimap _ g (Remember x) = Remember (g . x) instance Choice (Remember r) where left' (R...
null
https://raw.githubusercontent.com/ChrisPenner/proton/4ce22d473ce5bece8322c841bd2cf7f18673d57d/src/Data/Profunctor/Remember.hs
haskell
This is just Tagged + Closed, so it doesn't add anything new.
module Data.Profunctor.Remember where import Data.Profunctor newtype Remember r a b = Remember (r -> b) deriving Functor instance Profunctor (Remember r) where dimap _ g (Remember x) = Remember (g . x) instance Choice (Remember r) where left' (Remember x) = Remember (Left . x) instance Closed (Remember r) wh...
6d38d8e68f36501f1ee63a98bc8121ae6611a024c86df845366a8cab2179791e
yuriy-chumak/ol
stack.scm
; #Ol (define stack #null) (print "stack is: " stack) (print "is stack empty: " (eq? stack #null)) (print "* pushing 1") (define stack (cons 1 stack)) (print "stack is: " stack) (print "is stack empty: " (eq? stack #null)) (print "* pushing 2") (define stack (cons 2 stack)) (print "stack is: " stack) (print "is stac...
null
https://raw.githubusercontent.com/yuriy-chumak/ol/e6e02f6a3024fec87c88d563be6889b96a2e6f84/tests/rosettacode/stack.scm
scheme
#Ol '(1 2 3 4 5)
(define stack #null) (print "stack is: " stack) (print "is stack empty: " (eq? stack #null)) (print "* pushing 1") (define stack (cons 1 stack)) (print "stack is: " stack) (print "is stack empty: " (eq? stack #null)) (print "* pushing 2") (define stack (cons 2 stack)) (print "stack is: " stack) (print "is stack empt...
1be8a1a5a5c18a292461355b4ccad1220e8f6e661d646a7250982f912d21c114
MyDataFlow/ttalk-server
cowboy_http.erl
Copyright ( c ) 2011 - 2014 , < > Copyright ( c ) 2011 , < > %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above %% copyright notice and this permission notice appear in all copies. %% THE SOFTWARE IS PROVID...
null
https://raw.githubusercontent.com/MyDataFlow/ttalk-server/07a60d5d74cd86aedd1f19c922d9d3abf2ebf28d/deps/cowboy/src/cowboy_http.erl
erlang
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVE...
Copyright ( c ) 2011 - 2014 , < > Copyright ( c ) 2011 , < > THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL WARRANTIES ANY SPECIAL , DIRECT , INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE , DATA OR PROFITS , WHETHER IN AN -module(cowboy_http)....
4e864ebb67afd92bed0a5c2cbe36c6ac75f3137139a3417391863ee76c3ba2a0
ekmett/free
Class.hs
# LANGUAGE CPP # # LANGUAGE DefaultSignatures # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FunctionalDependencies # # LANGUAGE FlexibleInstances # {-# LANGUAGE Safe #-} # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # #if !(MIN_VERSION_transformers(0,6,0)) # OPTIONS_GHC -Wno - d...
null
https://raw.githubusercontent.com/ekmett/free/29b5d2c2811f74f6566835b5cfbdc7f745e57557/src/Control/Monad/Free/Class.hs
haskell
# LANGUAGE Safe # --------------------------------------------------------------------------- | License : BSD-style (see the file LICENSE) Stability : experimental Portability : non-portable (fundeps, MPTCs) Monads for free. -------------------------------------------------------------------------- | ...
# LANGUAGE CPP # # LANGUAGE DefaultSignatures # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FunctionalDependencies # # LANGUAGE FlexibleInstances # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # #if !(MIN_VERSION_transformers(0,6,0)) # OPTIONS_GHC -Wno - deprecations # #endif ...
c8459e6b53d3b5ecceaf3dfc94226e6cabb929f65b1a962cef51035228e0bf82
CoNarrative/precept
listeners.cljc
(ns precept.listeners (:require [clara.rules.engine :as eng] [precept.util :as util] [precept.serialize.dto :as dto] [clara.rules.listener :as l] [clojure.core.async :as async])) (declare append-trace) (declare to-transient-fact-listener) (declare to-transient-session-...
null
https://raw.githubusercontent.com/CoNarrative/precept/6078286cae641b924a2bffca4ecba19dcc304dde/src/cljc/precept/listeners.cljc
clojure
(check-retract-facts-logical-failure facts) no-ops no-ops
(ns precept.listeners (:require [clara.rules.engine :as eng] [precept.util :as util] [precept.serialize.dto :as dto] [clara.rules.listener :as l] [clojure.core.async :as async])) (declare append-trace) (declare to-transient-fact-listener) (declare to-transient-session-...
d1daf98ce990bb59cf857f4c8052da587b8aa01fc0ae2ff0ad62a50a261e2f87
haskell-opengl/GLUT
Polys.hs
Polys.hs ( adapted from polys.c which is ( c ) Silicon Graphics , Inc ) Copyright ( c ) 2002 - 2018 < > This file is part of HOpenGL and distributed under a BSD - style license See the file libraries / GLUT / LICENSE This program demonstrates polygon stippling . Polys.hs (adapted from ...
null
https://raw.githubusercontent.com/haskell-opengl/GLUT/36207fa51e4c1ea1e5512aeaa373198a4a56cad0/examples/RedBook4/Polys.hs
haskell
resolve overloading, not needed in "real" programs
Polys.hs ( adapted from polys.c which is ( c ) Silicon Graphics , Inc ) Copyright ( c ) 2002 - 2018 < > This file is part of HOpenGL and distributed under a BSD - style license See the file libraries / GLUT / LICENSE This program demonstrates polygon stippling . Polys.hs (adapted from ...
272c5dd54665187b931727a3e306e8ea9ae942a9882b9e1f0a0f211f58990254
syocy/a-tour-of-go-in-haskell
SyncMutex.hs
module A_Tour_of_Go.Concurrency.SyncMutex where import Control.Concurrent (threadDelay) import Control.Concurrent.Async (async) import Control.Concurrent.STM (atomically, TVar, newTVar, modifyTVar', readTVar) import Control.Monad (forM_) import Data.Map.Strict (Map) import qualified Data.Map.Strict as Map data Safe...
null
https://raw.githubusercontent.com/syocy/a-tour-of-go-in-haskell/9bd6eb1d40098369b37329bc8d48ac2f27a6e7e2/src/A_Tour_of_Go/Concurrency/SyncMutex.hs
haskell
| >>> main
module A_Tour_of_Go.Concurrency.SyncMutex where import Control.Concurrent (threadDelay) import Control.Concurrent.Async (async) import Control.Concurrent.STM (atomically, TVar, newTVar, modifyTVar', readTVar) import Control.Monad (forM_) import Data.Map.Strict (Map) import qualified Data.Map.Strict as Map data Safe...
970d08245e10f74537cd57827b4bacd7292c6e7e307caa90c39dc49b6d629dbd
JohnLato/iteratee
Interact.hs
module Data.Iteratee.IO.Interact ( ioIter ) where import Control.Monad.IO.Class import Data.Iteratee -- | Use an IO function to choose what iteratee to run. -- -- Typically this function handles user interaction and -- -- returns with a simple iteratee such as 'head' or 'seek'. -- -- -- The IO function takes a va...
null
https://raw.githubusercontent.com/JohnLato/iteratee/83852cebab1051999d70d2abce86f5ab88c6d7ec/src/Data/Iteratee/IO/Interact.hs
haskell
| Use an IO function to choose what iteratee to run. -- Typically this function handles user interaction and -- returns with a simple iteratee such as 'head' or 'seek'. -- The IO function takes a value of type ' a ' as input , and should return ' Right a ' to continue , or ' Left b ' -- to terminate. Upon termin...
module Data.Iteratee.IO.Interact ( ioIter ) where import Control.Monad.IO.Class import Data.Iteratee ioIter :: (MonadIO m) => (a -> IO (Either b (Iteratee s m a))) -> a -> Iteratee s m b ioIter f a = either return (>>= ioIter f) =<< liftIO (f a) # INLINE ioIter #
0d1444430d7ddff779ce05f8811493583ab7e1cdef98bcb01de677993f6ee24e
nasa/Common-Metadata-Repository
site.clj
(ns cmr.opendap.app.routes.site "This namespace defines the REST routes provided by this service. Upon idnetifying a particular request as matching a given route, work is then handed off to the relevant request handler function." (:require [cmr.http.kit.app.handler :as base-handler] [cmr.http.kit.site.pa...
null
https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/63001cf021d32d61030b1dcadd8b253e4a221662/other/cmr-exchange/service-bridge/src/cmr/opendap/app/routes/site.clj
clojure
; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; the rest are supplied ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; Assembled Routes ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(ns cmr.opendap.app.routes.site "This namespace defines the REST routes provided by this service. Upon idnetifying a particular request as matching a given route, work is then handed off to the relevant request handler function." (:require [cmr.http.kit.app.handler :as base-handler] [cmr.http.kit.site.pa...
9c880223ad37e452b2058c31af70bc07f75b14bdd6c658a3935bee8342d9133b
ocamllabs/vscode-ocaml-platform
opam.ml
open Import type t = { bin : Cmd.spawn ; root : Path.t } let opam_binary = Path.of_string "opam" let make ?root () = let open Promise.Syntax in let* use_ocaml_env = Ocaml_windows.use_ocaml_env () in let spawn = if use_ocaml_env then Ocaml_windows.spawn_ocaml_env [ "opam" ] else { Cmd.bin = opam_b...
null
https://raw.githubusercontent.com/ocamllabs/vscode-ocaml-platform/e7838963a8c4ec292a2e509c4a884cd02e047b9f/src/opam.ml
ocaml
* if switch name is directory name where it's stored * if switch is stored in ~/.opam * may return [None] if, for example, the switch is empty, i.e., created with {[ opam switch create sw -- empty ]} The package path is never the root, so it's safe to use [value_exn]
open Import type t = { bin : Cmd.spawn ; root : Path.t } let opam_binary = Path.of_string "opam" let make ?root () = let open Promise.Syntax in let* use_ocaml_env = Ocaml_windows.use_ocaml_env () in let spawn = if use_ocaml_env then Ocaml_windows.spawn_ocaml_env [ "opam" ] else { Cmd.bin = opam_b...
705ad685eaac51a63cb520bb69636efd01cd26ec6c872499f88e352157876aa1
webyrd/n-grams-for-synthesis
154.chibi.scm
Copyright ( C ) ( 2017 ) . All Rights Reserved . ;; Permission is hereby granted, free of charge, to any person ;; obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without ;; restriction, including without limitation the rights to use, copy, ...
null
https://raw.githubusercontent.com/webyrd/n-grams-for-synthesis/b53b071e53445337d3fe20db0249363aeb9f3e51/datasets/srfi/srfi-154/srfi/154.chibi.scm
scheme
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies furnished to do so, subject to the following conditions: ...
Copyright ( C ) ( 2017 ) . All Rights Reserved . files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY K...
f2e2389eda32fd7360184ca90758cff6390c122024a73992c86aa034313c50bd
2600hz/kazoo
notify_sup.erl
%%%----------------------------------------------------------------------------- ( C ) 2011 - 2020 , 2600Hz %%% @doc @author @author %%% This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at...
null
https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/applications/notify/src/notify_sup.erl
erlang
----------------------------------------------------------------------------- @doc @end ----------------------------------------------------------------------------- API Supervisor callbacks Helper macro for declaring children of supervisor ========================================================================...
( C ) 2011 - 2020 , 2600Hz @author @author This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. -module(notify_sup). -behaviour(supervisor). -include_lib("kazoo_stdlib/include/kz_types...
dd2e967b0c8e6ae3f790c5e824cd4ea65c41a74be36ada7943ea963207fa915c
TheLortex/mirage-monorepo
ctypes_foreign_basis.ml
* Copyright ( c ) 2013 . * * This file is distributed under the terms of the MIT License . * See the file LICENSE for details . * Copyright (c) 2013 Jeremy Yallop. * * This file is distributed under the terms of the MIT License. * See the file LICENSE for details. *) module Make(Closure_propertie...
null
https://raw.githubusercontent.com/TheLortex/mirage-monorepo/b557005dfe5a51fc50f0597d82c450291cfe8a2a/duniverse/ocaml-ctypes/src/ctypes-foreign/ctypes_foreign_basis.ml
ocaml
* Copyright ( c ) 2013 . * * This file is distributed under the terms of the MIT License . * See the file LICENSE for details . * Copyright (c) 2013 Jeremy Yallop. * * This file is distributed under the terms of the MIT License. * See the file LICENSE for details. *) module Make(Closure_propertie...
7fc27450b8669e3e1fca70d65cfaa36871ee7642f295b5a71932975448a3b0ee
camfort/fortran-src
SecondParameter.hs
| A convenience class for retrieving the first field of any constructor in a datatype . The primary usage for this class is generic derivation : data D a = D a ( ) String deriving Generic instance ( D a ) ( ) Note that _ the deriver does not check you are requesting a valid / safe instance . _ ...
null
https://raw.githubusercontent.com/camfort/fortran-src/e15ba963637c0f4f883a00c0052102c0a7503d11/src/Language/Fortran/Util/SecondParameter.hs
haskell
# OVERLAPPING # # OVERLAPPABLE #
| A convenience class for retrieving the first field of any constructor in a datatype . The primary usage for this class is generic derivation : data D a = D a ( ) String deriving Generic instance ( D a ) ( ) Note that _ the deriver does not check you are requesting a valid / safe instance . _ ...
c48caf8f6f557736ee6e10e19ab3354afea4c869b1d5629c7ee6e774ecf50144
chessai/string
Typeclasses.hs
# language ImportQualifiedPost , , , TemplateHaskell , ViewPatterns # ImportQualifiedPost , NumericUnderscores , PackageImports , TemplateHaskell , ViewPatterns #-} module Typeclasses ( tests ) where import "hedgehog" Hedgehog import "hedgehog" Hedgehog.Gen qualified as Gen impor...
null
https://raw.githubusercontent.com/chessai/string/8bb679618130d9c520123d259f2bbd970df2e10a/test/Typeclasses.hs
haskell
# language ImportQualifiedPost , , , TemplateHaskell , ViewPatterns # ImportQualifiedPost , NumericUnderscores , PackageImports , TemplateHaskell , ViewPatterns #-} module Typeclasses ( tests ) where import "hedgehog" Hedgehog import "hedgehog" Hedgehog.Gen qualified as Gen impor...
7976281194bfed8a8018d759d305f0d04a865be79751b2f2c94f370a758a0778
facebook/duckling
Rules.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. {-# LANGUAGE GADTs #-} # LANGUAGE NoRebindableSyntax # {-# LANGUAGE OverloadedStrings #-} module Duckling.Ph...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/PhoneNumber/AR/Rules.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. # LANGUAGE GADTs # # LANGUAGE OverloadedStrings # [\1632-\1641] to make the code easier to read and maintain. The unicode area code nums extension
Copyright ( c ) 2016 - present , Facebook , Inc. # LANGUAGE NoRebindableSyntax # module Duckling.PhoneNumber.AR.Rules (rules) where import Duckling.Dimensions.Types import Duckling.Numeral.AR.Helpers ( parseArabicIntAsText , parseArabicIntegerFromText ) import Duckling.PhoneNumber.Types (PhoneNumberData(..))...
978c870f634171b4758355fc57bd6bcc48258b56c97df141b0212b166e9b5c1a
koka-lang/koka
nqueens.hs
data List a = Nil | Cons !a !(List a) len xs = len' xs 0 len' xs acc = case xs of Nil -> acc Cons _ t -> len' t $! (acc+1) safe queen diag xs = case xs of Nil -> True Cons q t -> queen /= q && queen /= q + diag && queen /= q - diag && safe queen (diag + 1) t appendS...
null
https://raw.githubusercontent.com/koka-lang/koka/df177d5663dcaefb4c087458e6b6e6f5ae9e2a31/test/bench/haskell/nqueens.hs
haskell
fst_solution n = head (find_solutions n n)
data List a = Nil | Cons !a !(List a) len xs = len' xs 0 len' xs acc = case xs of Nil -> acc Cons _ t -> len' t $! (acc+1) safe queen diag xs = case xs of Nil -> True Cons q t -> queen /= q && queen /= q + diag && queen /= q - diag && safe queen (diag + 1) t appendS...
0f6d2023f3589822ba5ac5c169d50a5f4b20365972812a03444aa84001825d2c
samrushing/irken-compiler
t_endian.scm
;; -*- Mode: Irken -*- (include "lib/basis.scm") (include "lib/map.scm") (define big-endian? (let ((val0* (halloc u32 1)) (val1* (%c-cast (array u8) val0*))) (define (get n) (c-get-int (c-aref val1* n))) (c-set-int (c-aref val0* 0) #xf00fda) (match (get 0) (get 1) (get 2) with #xda #...
null
https://raw.githubusercontent.com/samrushing/irken-compiler/690da48852d55497f873738df54f14e8e135d006/tests/t_endian.scm
scheme
-*- Mode: Irken -*-
(include "lib/basis.scm") (include "lib/map.scm") (define big-endian? (let ((val0* (halloc u32 1)) (val1* (%c-cast (array u8) val0*))) (define (get n) (c-get-int (c-aref val1* n))) (c-set-int (c-aref val0* 0) #xf00fda) (match (get 0) (get 1) (get 2) with #xda #x0f #xf0 -> #f #x...
b5b0e0a8611342dc71c25a16b0738e5a59e6b18255bdcb9f4485dfc5265fe8b1
dong50252409/behavior3erl
blackboard.erl
-module(blackboard). -compile([inline]). %%-------------------------------------------------------------------- %% include %%-------------------------------------------------------------------- -include("behavior3.hrl"). %%-------------------------------------------------------------------- %% export API %%---------...
null
https://raw.githubusercontent.com/dong50252409/behavior3erl/b4f1f040656f97519c89ea35109f37406e8c7d12/src/core/blackboard.erl
erlang
-------------------------------------------------------------------- include -------------------------------------------------------------------- -------------------------------------------------------------------- export API -------------------------------------------------------------------- -----------------------...
-module(blackboard). -compile([inline]). -include("behavior3.hrl"). -export([init_blackboard/2]). -export([set/4, get/3, get/4, remove/3]). -export([get_tree_mod/1, get_root_node_id/1, erase_node/2, erase_tree_nodes/1, get_global_maps/1, set_io/2, get_io/1]). -spec init_blackboard(TreeMod :: module(), Title :: stri...
5e349913dc0a526fd8d5518ce455102fd564cae196c39865c82063f0843193b3
TorXakis/TorXakis
TypeDefs.hs
TorXakis - Model Based Testing Copyright ( c ) 2015 - 2017 TNO and Radboud University See LICENSE at root directory of this repository . TorXakis - Model Based Testing Copyright (c) 2015-2017 TNO and Radboud University See LICENSE at root directory of this repository. -} ----------------------------------------...
null
https://raw.githubusercontent.com/TorXakis/TorXakis/038463824b3d358df6b6b3ff08732335b7dbdb53/sys/txs-compiler/src/TorXakis/Parser/TypeDefs.hs
haskell
------------------------------------------------------------------------------ | Stability : experimental Portability : portable ------------------------------------------------------------------------------ | Parser for Sorts. | Parser of a list of identifiers declarations, with an associated sort. The lis...
TorXakis - Model Based Testing Copyright ( c ) 2015 - 2017 TNO and Radboud University See LICENSE at root directory of this repository . TorXakis - Model Based Testing Copyright (c) 2015-2017 TNO and Radboud University See LICENSE at root directory of this repository. -} Module : TorXakis . . TypeDef...
cfb1a7faa193f348fec2e2359925754828810c55cf5b35153bc62afebd7907c6
mzp/coq-ruby
rawterm_to_relation.mli
[ funnames funargs returned_types bodies ] constructs and saves the graphs of the functions [ funnames ] taking [ funargs ] as arguments and returning [ returned_types ] using bodies [ bodies ] [build_inductive parametrize funnames funargs returned_types bodies] constructs and saves the graphs o...
null
https://raw.githubusercontent.com/mzp/coq-ruby/99b9f87c4397f705d1210702416176b13f8769c1/contrib/funind/rawterm_to_relation.mli
ocaml
The list of function name The list of function args The list of function returned type the list of body
[ funnames funargs returned_types bodies ] constructs and saves the graphs of the functions [ funnames ] taking [ funargs ] as arguments and returning [ returned_types ] using bodies [ bodies ] [build_inductive parametrize funnames funargs returned_types bodies] constructs and saves the graphs o...
14006fa225fc980b66cc0c428ce1d896fa6a2759be12dc6275e7cf55ca6c21e1
ksk/Rho
bexpr.ml
open Format let failwithf fmt = ksprintf (fun s () -> failwith s) fmt module type Expr = sig type t val compare: t -> t -> int val equal: t -> t -> bool val hash: t -> int val copy: t -> t val rev_list_of_expr: t -> int list val list_of_expr: t -> int list val expr_of_list: int list -> t val apply: ...
null
https://raw.githubusercontent.com/ksk/Rho/5025fd186d30b67b4acc93a45a85106be41c03af/bexpr.ml
ocaml
n-iteration of f identity funciton for non-increasing and non-empty lists unsafe_get written by a $!! i decreasing polynomial representation in string n-th character denotes the number of 'n' in the list representation insert height i bar into expr[1..-1] and decrement all insert height i bar into expr ...
open Format let failwithf fmt = ksprintf (fun s () -> failwith s) fmt module type Expr = sig type t val compare: t -> t -> int val equal: t -> t -> bool val hash: t -> int val copy: t -> t val rev_list_of_expr: t -> int list val list_of_expr: t -> int list val expr_of_list: int list -> t val apply: ...
704eaa272e48deba2fc735c47a0210c80bb240cbb21ba58166253fd898f0a4f3
racket/racklog
is.rkt
#lang racket (require racklog racket/stxparam tests/eli-tester) (define-syntax-parameter Y (λ (stx) (raise-syntax-error stx 'Y "not allowed outside test-%is"))) (define-syntax (test-%is stx) (syntax-case stx () [(_ e) (with-syntax ([the-y #'y]) #`(test #:failure-prefix (forma...
null
https://raw.githubusercontent.com/racket/racklog/89e983ec7d2df0ed919e6630403b0f4d0393728e/tests/is.rkt
racket
=> `([x . ,#'1]) => `([x . ,#'y]) (test
#lang racket (require racklog racket/stxparam tests/eli-tester) (define-syntax-parameter Y (λ (stx) (raise-syntax-error stx 'Y "not allowed outside test-%is"))) (define-syntax (test-%is stx) (syntax-case stx () [(_ e) (with-syntax ([the-y #'y]) #`(test #:failure-prefix (forma...
9b6b8440fcc160631c04c890c4c7490f8f576ddf887cd561a64eb5fc1d69dc51
xmonad/xmonad-contrib
Stoppable.hs
# LANGUAGE MultiParamTypeClasses , TypeSynonymInstances # # LANGUAGE PatternGuards # ----------------------------------------------------------------------------- -- | -- Module : XMonad.Layout.Stoppable -- Description : A layout modifier to stop all non-visible processes. Copyright : ( c ) < > 2014 ...
null
https://raw.githubusercontent.com/xmonad/xmonad-contrib/571d017b8259340971db1736eedc992a54e9022c/XMonad/Layout/Stoppable.hs
haskell
--------------------------------------------------------------------------- | Module : XMonad.Layout.Stoppable Description : A layout modifier to stop all non-visible processes. Stability : unstable Portability : unportable This module implements a special kind of layout modifier, which when applied...
# LANGUAGE MultiParamTypeClasses , TypeSynonymInstances # # LANGUAGE PatternGuards # Copyright : ( c ) < > 2014 License : BSD - style ( as xmonad ) Maintainer : < > sequence . By default , the delay equals to 15 seconds , it is configurable via ' Stoppable ' constructor . your own mark...
fdaee111bf71d823805a87df376b124690282d93371299e639b455ffc3c340ba
ryantm/repology-api
Main.hs
{-# LANGUAGE OverloadedStrings #-} module Main where import Control.Category ((>>>)) import Control.Error import Control.Monad import Control.Monad.IO.Class import Data.Function ((&)) import Data.HashMap.Strict import Data.List import Data.Maybe import Data.Monoid import Data.Text (Text) import qualified Data.Text.IO...
null
https://raw.githubusercontent.com/ryantm/repology-api/19da3d4386ee191b4a13e9843b21c24dfd45addd/src/Main.hs
haskell
# LANGUAGE OverloadedStrings #
module Main where import Control.Category ((>>>)) import Control.Error import Control.Monad import Control.Monad.IO.Class import Data.Function ((&)) import Data.HashMap.Strict import Data.List import Data.Maybe import Data.Monoid import Data.Text (Text) import qualified Data.Text.IO import Data.Vector (Vector) import...
7aa25c4884e79e1e1748e4738c7985443f883de07f7962a8fd6cb3351769c186
hiroshi-unno/coar
intFunctionFlex.ml
open Core open Common open Common.Ext open Common.Util open Ast open Ast.LogicOld open Function module Config = struct type t = { verbose: bool; shape: int list; upper_bound_expr_coeff: int option; upper_bound_expr_const: int option; expr_seeds: int list option; upper_bound_cond_coeff: int ...
null
https://raw.githubusercontent.com/hiroshi-unno/coar/90a23a09332c68f380efd4115b3f6fdc825f413d/lib/PCSat/template/intFunctionFlex.ml
ocaml
- template shape : int list - coeff_upper_bound : Z.t - const_upper_bound : Z.t - const seed of_template : Z.t Set.Poly.t - coeff_upper_bound_for_cond : Z.t - const_upper_bound_for_cond : Z.t - const seed of_cond : Z.t Set.Poly.t TODO: generate quals and terms * TODO z3 may unexpectedly time...
open Core open Common open Common.Ext open Common.Util open Ast open Ast.LogicOld open Function module Config = struct type t = { verbose: bool; shape: int list; upper_bound_expr_coeff: int option; upper_bound_expr_const: int option; expr_seeds: int list option; upper_bound_cond_coeff: int ...
4bd0a6fccc17eb6a5d6664cb8e1beb2fce0a1aa3216e8e2710d57e62cea3cb15
trandi/thermal-printer-photo-booth
Spec.hs
import Test.QuickCheck import Test.HUnit.Text import PrinterTests import ImageProcessingTests main :: IO () main = do runTestTT imageProcessingTests quickCheck prop_imageToStripes quickCheck prop_generateNlNh_size quickCheck prop_generateNlNh_value quickCheck prop_stripeBytesToPrinterString ...
null
https://raw.githubusercontent.com/trandi/thermal-printer-photo-booth/0df7fa2af91b03fa9e8f784ebc1a550015e4b23b/test/Spec.hs
haskell
import Test.QuickCheck import Test.HUnit.Text import PrinterTests import ImageProcessingTests main :: IO () main = do runTestTT imageProcessingTests quickCheck prop_imageToStripes quickCheck prop_generateNlNh_size quickCheck prop_generateNlNh_value quickCheck prop_stripeBytesToPrinterString ...
6d08cb57d599026488445ecc5fda1580f30db9214564a3e5badf670f751e73c7
galdor/tungsten
systems.lisp
(in-package :asdf-utils) (defun list-systems () "Return a list of all available ASDF systems sorted by name. ASDF:REGISTERED-SYSTEMS returns a list of loaded systems, so we need to inspect the source registry to find all available systems. Once done, we can use ASDF:REGISTERED-SYSTEMS which will also contains secon...
null
https://raw.githubusercontent.com/galdor/tungsten/5d6e71fb89af32ab3994c5b2daf8b902a5447447/tungsten-asdf-utils/src/systems.lisp
lisp
(in-package :asdf-utils) (defun list-systems () "Return a list of all available ASDF systems sorted by name. ASDF:REGISTERED-SYSTEMS returns a list of loaded systems, so we need to inspect the source registry to find all available systems. Once done, we can use ASDF:REGISTERED-SYSTEMS which will also contains secon...
11a40ac9d3934b704ecae5d5abe1cb05a30671bdad12eae2ab01d5ca9affedb1
JavaPLT/haskell-course
GlossUI.hs
module GlossUI where import Data.Map (Map) import qualified Data.Map as Map import Control.Monad import Control.Monad.State import Control.Applicative import Graphics.Gloss import Graphics.Gloss.Interface.Pure.Game import Debug.Trace import Board import Position ------------------------------------------------------...
null
https://raw.githubusercontent.com/JavaPLT/haskell-course/e493ad33b6e95402ecac63894cf71f4a6cb8d615/tictactoe/src/GlossUI.hs
haskell
------------------------------------------------------------------------------ - Game State ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ----------------------------------------------------------------------...
module GlossUI where import Data.Map (Map) import qualified Data.Map as Map import Control.Monad import Control.Monad.State import Control.Applicative import Graphics.Gloss import Graphics.Gloss.Interface.Pure.Game import Debug.Trace import Board import Position data GameState = GameState { pos :: Position ...
98b7cc5d2a131a39bfc6a802e5bef7a88c081d55728aafb60572fee50e581abf
soulomoon/haskell-katas
Isomorphism.hs
module Kyu3.Isomorphism where import Data.Void import Data.Tuple import Data.Maybe -- A type of `Void` have no value. -- So it is impossible to construct `Void`, unless using undefined , error , unsafeCoerce , infinite recursion , etc -- And there is a function -- absurd :: Void -> a -- That get any value out of `Vo...
null
https://raw.githubusercontent.com/soulomoon/haskell-katas/0861338e945e5cbaadf98138cf8f5f24a6ca8bb3/src/Kyu3/Isomorphism.hs
haskell
A type of `Void` have no value. So it is impossible to construct `Void`, And there is a function absurd :: Void -> a That get any value out of `Void` We can do this becuase we can never have void in the zeroth place. a definition might be, it is possible to go from `a` to `b`, and from `b` to `a`. This is call...
module Kyu3.Isomorphism where import Data.Void import Data.Tuple import Data.Maybe unless using undefined , error , unsafeCoerce , infinite recursion , etc so , when are two type , ` a ` and ` b ` , considered equal ? Going a roundway trip should leave you the same value . Unfortunately it is virtually imposs...
f06216e5ecc6efc66946121a4a9d1d45d2dbf78056340ecec6a6ec655cee9114
mransan/ocaml-protoc
test04_ml.ml
module T = Test04_types module Pb = Test04_pb module Pp = Test04_pp let decode_ref_data () = { T.j = 456l } let () = let mode = Test_util.parse_args () in match mode with | Test_util.Decode -> Test_util.decode "test03.c2ml.data" Pb.decode_test Pp.pp_test (decode_ref_data ()) | Test_util.Encode -> ...
null
https://raw.githubusercontent.com/mransan/ocaml-protoc/e43b509b9c4a06e419edba92a0d3f8e26b0a89ba/src/tests/integration-tests/test04_ml.ml
ocaml
module T = Test04_types module Pb = Test04_pb module Pp = Test04_pp let decode_ref_data () = { T.j = 456l } let () = let mode = Test_util.parse_args () in match mode with | Test_util.Decode -> Test_util.decode "test03.c2ml.data" Pb.decode_test Pp.pp_test (decode_ref_data ()) | Test_util.Encode -> ...
5afedca4e42f700e0f4aaf5a7654f1178cdd26b1e765def155e355b1fdc8be43
nikita-volkov/rerebase
Class.hs
module Data.Functor.Bind.Class ( module Rebase.Data.Functor.Bind.Class ) where import Rebase.Data.Functor.Bind.Class
null
https://raw.githubusercontent.com/nikita-volkov/rerebase/25895e6d8b0c515c912c509ad8dd8868780a74b6/library/Data/Functor/Bind/Class.hs
haskell
module Data.Functor.Bind.Class ( module Rebase.Data.Functor.Bind.Class ) where import Rebase.Data.Functor.Bind.Class
7a2100db04ee095a1c3f427cfc4619c60c291aa4e42d6a2339d7bf216f348022
awakesecurity/language-ninja
Env.hs
-*- coding : utf-8 ; mode : ; -*- -- File: library/Language/Ninja/AST/Env.hs -- -- License: Copyright 2011 - 2017 . -- Copyright Awake Security 2017 -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that...
null
https://raw.githubusercontent.com/awakesecurity/language-ninja/e7badf49b45d9c28b558376be3152d51f5d2d437/library/Language/Ninja/AST/Env.hs
haskell
File: library/Language/Ninja/AST/Env.hs License: Copyright Awake Security 2017 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 ...
-*- coding : utf-8 ; mode : ; -*- Copyright 2011 - 2017 . * Neither the name of nor the names of other " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED TO , PROCUREMENT OF SUBSTI...
b591429edad80b70fb036bec6b9a7ec61c70bd3fe954bbc1e62192738652ad56
liquidz/antq
github_action.clj
(ns antq.dep.github-action (:require [antq.constant.github-action :as const.gh-action] [antq.dep.github-action.matrix :as d.gha.matrix] [antq.dep.github-action.third-party :as d.gha.third-party] [antq.dep.github-action.uses :as d.gha.uses] [antq.record :as r] [antq.util.dep :as u.dep] [clj-yaml.c...
null
https://raw.githubusercontent.com/liquidz/antq/51b257d94761a4642c6d35e65774a060248624b7/src/antq/dep/github_action.clj
clojure
(ns antq.dep.github-action (:require [antq.constant.github-action :as const.gh-action] [antq.dep.github-action.matrix :as d.gha.matrix] [antq.dep.github-action.third-party :as d.gha.third-party] [antq.dep.github-action.uses :as d.gha.uses] [antq.record :as r] [antq.util.dep :as u.dep] [clj-yaml.c...
80a3cbcd6d7fb3afb0849edd70fc34c91ec47075bf0283a46f8821710a30293e
mukul-rathi/bolt
bad_constructor.ml
open Core open Print_typed_ast let%expect_test "Class not defined" = print_typed_ast " void main() { let x = new Foo() ; // Foo not defined! x } " ; [%expect {| Line:3 Position:15 Type error - Class Foo not defined in environment |}] let%expect_test "Incorrect constructor field ar...
null
https://raw.githubusercontent.com/mukul-rathi/bolt/1faf19d698852fdb6af2ee005a5f036ee1c76503/tests/frontend/expect/typing/bad_constructor.ml
ocaml
open Core open Print_typed_ast let%expect_test "Class not defined" = print_typed_ast " void main() { let x = new Foo() ; // Foo not defined! x } " ; [%expect {| Line:3 Position:15 Type error - Class Foo not defined in environment |}] let%expect_test "Incorrect constructor field ar...
d2a4629eccfc3160d973e3a74b99e9f261967c7906dfeac01ac131bfb83cd278
backtracking/ocamlgraph
color.ml
(**************************************************************************) (* *) : a generic graph library for OCaml Copyright ( C ) 2004 - 2007 , and (* ...
null
https://raw.githubusercontent.com/backtracking/ocamlgraph/1c028af097339ca8bc379436f7bd9477fa3a49cd/examples/color.ml
ocaml
************************************************************************ This software is free software; you can redistribute it and/or described in file LICENSE....
: a generic graph library for OCaml Copyright ( C ) 2004 - 2007 , and modify it under the terms of the GNU Library General Public License version 2 , with the special exception on linking 4 - col...
a88e20b9209ad59d8fef08268e73c943200c53a59347e490962635552559e0d0
GrammaticalFramework/gf-core
JSON.hs
module SimpleEditor.JSON where import Text.JSON import SimpleEditor.Syntax instance JSON Grammar where showJSON (Grammar name extends abstract concretes) = makeObj ["basename".=name, "extends".=extends, "abstract".=abstract, "concretes".=concretes] readJSON = error "Grammar.readJSON intentional...
null
https://raw.githubusercontent.com/GrammaticalFramework/gf-core/6efbd23c5cf450f3702e628225872650a619270f/src/compiler/SimpleEditor/JSON.hs
haskell
module SimpleEditor.JSON where import Text.JSON import SimpleEditor.Syntax instance JSON Grammar where showJSON (Grammar name extends abstract concretes) = makeObj ["basename".=name, "extends".=extends, "abstract".=abstract, "concretes".=concretes] readJSON = error "Grammar.readJSON intentional...
0373be0755700960506ab9b0fd5b1c63be4683217af50bfef1f5f4f127ae38e9
triffon/fp-2022-23
class-start.04.rkt
#lang racket ; дефиниция на списък ; сходство с индукция ; сглобяване vs разглобяване ; шаблон с let дефиниции ; ; хетерогенни ; ; аналог на типовете ; list? ; null? ; ; всичко в Scheme е списък по - подразбиране всичко се оценява ( и се прилагат функции ) , с ' и quote ; ; eq?, eqv?, equal? - when in doubt use equ...
null
https://raw.githubusercontent.com/triffon/fp-2022-23/59674a87d39d7e5efaaf26d1b5ad662b1377fe25/exercises/cs2/04.scheme.lists/class-start.04.rkt
racket
дефиниция на списък сходство с индукция сглобяване vs разглобяване шаблон с let дефиниции хетерогенни аналог на типовете list? null? всичко в Scheme е списък eq?, eqv?, equal? - when in doubt use equal? map & filter - bread and butter
#lang racket по - подразбиране всичко се оценява ( и се прилагат функции ) , с ' и quote memq , memv , member
95ca823bc997c7a6d49937b4846626c8310d8bf4dab4d1650769f5bcede1ecbf
ghc/nofib
Pic.hs
-- Los Alamos National Laboratory 1990 August -- Copyright , 1990 , The Regents of the University of California . This software was produced under a U.S. Government contract ( W-7405 - ENG-36 ) by the Los Alamos National Laboratory , which is operated by the University of California for t...
null
https://raw.githubusercontent.com/ghc/nofib/f34b90b5a6ce46284693119a06d1133908b11856/real/pic/Pic.hs
haskell
granted to the public to copy and use this software without charge, provided that this notice and any statement of authorship are reproduced on all express or implied, or assumes any liability for the use of this software. PIC, particle in cell, a basic electrodynamics application Given an initial configuration ...
Los Alamos National Laboratory 1990 August Copyright , 1990 , The Regents of the University of California . This software was produced under a U.S. Government contract ( W-7405 - ENG-36 ) by the Los Alamos National Laboratory , which is operated by the University of California for the U.S...
8d10943f64cb46d9af20f9cbccb5fb517039fd9138b08a65362a1859ec95b38c
lspitzner/brittany
Test354.hs
brittany { lconfig_indentAmount : 4 , lconfig_indentPolicy : IndentPolicyMultiple } func = mweroiuxlskdfjlksjdflkjsdfljksldkjflkjsdflkj + mweroiuxlskdfjlksjdflkjsdfljksldkjflkjsdflkj
null
https://raw.githubusercontent.com/lspitzner/brittany/a15eed5f3608bf1fa7084fcf008c6ecb79542562/data/Test354.hs
haskell
brittany { lconfig_indentAmount : 4 , lconfig_indentPolicy : IndentPolicyMultiple } func = mweroiuxlskdfjlksjdflkjsdfljksldkjflkjsdflkj + mweroiuxlskdfjlksjdflkjsdfljksldkjflkjsdflkj
27dae6c5bcbd55173fc43cff9ac2fa34e48f34ed00601c2ecd5c9bf9ee0aaafb
onyx-platform/onyx-starter
sample_workflow.clj
(ns onyx-starter.workflows.sample-workflow) The workflow of an Onyx job describes the graph of all possible ;;; tasks that data can flow between. (def workflow [[:in :split-by-spaces] [:split-by-spaces :mixed-case] [:mixed-case :loud] [:mixed-case :question] [:loud :loud-output] [:question :questio...
null
https://raw.githubusercontent.com/onyx-platform/onyx-starter/d9f0cf5095e7b4089c1e3b708b7691d8184cb36b/src/onyx_starter/workflows/sample_workflow.clj
clojure
tasks that data can flow between.
(ns onyx-starter.workflows.sample-workflow) The workflow of an Onyx job describes the graph of all possible (def workflow [[:in :split-by-spaces] [:split-by-spaces :mixed-case] [:mixed-case :loud] [:mixed-case :question] [:loud :loud-output] [:question :question-output]])
4a9c04b317bdf95dd35c314d39e3e498857158dd4c08c1120acdf313e749c4c9
racketscript/racketscript
eq-basic.rkt
#lang racket/base (define h1 #hasheq((1 . 2) (3 . 4))) (define h2 #hasheq((color . red) (shape . circle))) (define h3 #hasheq(((a b c) . d) (g . (e f g)))) (define h4 #hasheq(("name" . "Vishesh") ("location" . "Boston"))) (displayln (hasheq 1 2 3 4)) (displayln "equality") (list? h1) (hash? h1) (hash? h2) (hash? h...
null
https://raw.githubusercontent.com/racketscript/racketscript/f94006d11338a674ae10f6bd83fc53e6806d07d8/tests/hash/eq-basic.rkt
racket
make-weak-hashX is not Racket weak hash check eq-ness Racket documentation promises `eq?` for characters with so skip the test see: -users/c/LFFV-xNq1SU/m/s6eoC35qAgAJ
#lang racket/base (define h1 #hasheq((1 . 2) (3 . 4))) (define h2 #hasheq((color . red) (shape . circle))) (define h3 #hasheq(((a b c) . d) (g . (e f g)))) (define h4 #hasheq(("name" . "Vishesh") ("location" . "Boston"))) (displayln (hasheq 1 2 3 4)) (displayln "equality") (list? h1) (hash? h1) (hash? h2) (hash? h...
37a68f60ac036aa24ce8b5f0027181039a32a4e24ac0cc5e9a6e418f0b864826
fogus/thneed
debug.clj
(ns fogus.debug "Debug utilities." (:require fogus.maps)) (defn build-system-info-map ([] (build-system-info-map {})) ([base] (fogus.maps/assoc-iff base :user/name (System/getProperty "user.name") :user/language (System/getProperty "user.language") :user/country (Sys...
null
https://raw.githubusercontent.com/fogus/thneed/0d791418b7b20a1249c52c925eac0f1254756eff/src/fogus/debug.clj
clojure
(ns fogus.debug "Debug utilities." (:require fogus.maps)) (defn build-system-info-map ([] (build-system-info-map {})) ([base] (fogus.maps/assoc-iff base :user/name (System/getProperty "user.name") :user/language (System/getProperty "user.language") :user/country (Sys...
8ee9342b41266c2405028a4e94d48a1d95d887c6d6c3228e511a4cd8db89412f
hstreamdb/hstream
Distinct.hs
{-# LANGUAGE OverloadedStrings #-} module Main where import Control.Concurrent import Control.Concurrent.MVar import Control.Monad import Data.Aeson (Value (..)) import Data.Word import DiffFlow.Graph import DiffFlow.Shard import ...
null
https://raw.githubusercontent.com/hstreamdb/hstream/59250c9b8e02a15ef5ed0107f67fb2677fd9eb60/hstream-diffflow/example/Distinct.hs
haskell
# LANGUAGE OverloadedStrings #
module Main where import Control.Concurrent import Control.Concurrent.MVar import Control.Monad import Data.Aeson (Value (..)) import Data.Word import DiffFlow.Graph import DiffFlow.Shard import DiffFlow.Types import qualifi...
a4b1328ba6945fbbc5672f32d6e479847ee0f43bbe33eccb8c249e60aff7861a
foreverbell/project-euler-solutions
80.hs
import Data.List ((\\)) import Data.Char (digitToInt) import Common.Utils (isqrt) go :: Integer -> Int go number = sumOfDigit100 decimial where root = isqrt number target = number * 10^200 bsearch :: Integer -> Integer -> Integer bsearch l r = if l == r then l else case compare (mid*mi...
null
https://raw.githubusercontent.com/foreverbell/project-euler-solutions/c0bf2746aafce9be510892814e2d03e20738bf2b/src/80.hs
haskell
import Data.List ((\\)) import Data.Char (digitToInt) import Common.Utils (isqrt) go :: Integer -> Int go number = sumOfDigit100 decimial where root = isqrt number target = number * 10^200 bsearch :: Integer -> Integer -> Integer bsearch l r = if l == r then l else case compare (mid*mi...
5227d31ae06aa9097226c14c6a7ae322e9c84596255d002454cad86686f69b9d
fossas/fossa-cli
Container.hs
module App.Fossa.Config.Container ( mkSubCommand, ImageText (..), TestOutputFormat (..), ContainerCommand, ContainerScanConfig (..), ContainerAnalyzeConfig (..), ContainerTestConfig (..), ) where import App.Fossa.Config.Common ( CommonOpts (..), ) import App.Fossa.Config.ConfigFile ( ConfigFile, r...
null
https://raw.githubusercontent.com/fossas/fossa-cli/139cc4d2106a676f8babf577b85d6c8a159de437/src/App/Fossa/Config/Container.hs
haskell
Only parse config file if we're running analyze or test We only use the config file for analyze and test
module App.Fossa.Config.Container ( mkSubCommand, ImageText (..), TestOutputFormat (..), ContainerCommand, ContainerScanConfig (..), ContainerAnalyzeConfig (..), ContainerTestConfig (..), ) where import App.Fossa.Config.Common ( CommonOpts (..), ) import App.Fossa.Config.ConfigFile ( ConfigFile, r...
770b983f07938ebcc11ec426720e0bfe4c36b6eff7e830a372f03b9c58bb6bae
untangled-web/sql-datomic
retract_command.clj
(ns sql-datomic.retract-command (:require [sql-datomic.datomic :as dat] [sql-datomic.util :as util :refer [squawk -debug-display-entities]] [datomic.api :as d] [clojure.pprint :as pp])) (defn -run-harness [{:keys [conn db ir options ids]}] (let [{:keys [debug preten...
null
https://raw.githubusercontent.com/untangled-web/sql-datomic/8a025fa66498ab683bd62ac6f689a8e10dc302da/src/sql_datomic/retract_command.clj
clojure
{:type :retract, [{:table "product", :column "category"} {:table "product", :column "uuid"}]}
(ns sql-datomic.retract-command (:require [sql-datomic.datomic :as dat] [sql-datomic.util :as util :refer [squawk -debug-display-entities]] [datomic.api :as d] [clojure.pprint :as pp])) (defn -run-harness [{:keys [conn db ir options ids]}] (let [{:keys [debug preten...
cbde102227bb2fe9049ccc129f3550707d5f03ff34229d6776aea58c649f2f3f
kupl/FixML
sub21.ml
type aexp = | Const of int | Var of string | Power of string * int | Times of aexp list | Sum of aexp list let rec diff (aexp, x) = match aexp with Const (a) -> Const 0 | Var (s) -> if s=x then Const 1 else Const 0 | Power (s,a) -> if a=1 then Const 1 else Times [Const a; ...
null
https://raw.githubusercontent.com/kupl/FixML/0a032a733d68cd8ccc8b1034d2908cd43b241fce/benchmarks/differentiate/diff1/submissions/sub21.ml
ocaml
type aexp = | Const of int | Var of string | Power of string * int | Times of aexp list | Sum of aexp list let rec diff (aexp, x) = match aexp with Const (a) -> Const 0 | Var (s) -> if s=x then Const 1 else Const 0 | Power (s,a) -> if a=1 then Const 1 else Times [Const a; ...
bf124f515fee05af6f2b2c1d3245aebc48285bb75d86c529c8d0f0e34c0edb8e
Simre1/haskell-game
Split.hs
import Control.Monad.IO.Class (MonadIO, liftIO) import Control.Concurrent (threadDelay) import Graphics.GPipe import qualified Graphics.GPipe.Context.GLFW as GLFW import qualified Test.Common as C main :: IO () main = do putStrLn "== Split thread" putStrLn "\tUse shared contexts to load resources on one thread...
null
https://raw.githubusercontent.com/Simre1/haskell-game/272a0674157aedc7b0e0ee00da8d3a464903dc67/GPipe-GLFW/Smoketests/src/Split.hs
haskell
in main thread, make buffers
import Control.Monad.IO.Class (MonadIO, liftIO) import Control.Concurrent (threadDelay) import Graphics.GPipe import qualified Graphics.GPipe.Context.GLFW as GLFW import qualified Test.Common as C main :: IO () main = do putStrLn "== Split thread" putStrLn "\tUse shared contexts to load resources on one thread...
601c49a5576e4244ab198d8e1066b55ed033b87db7eaa09add7a799b2cc6c325
Innf107/cobble-compiler
Instances.hs
# OPTIONS_GHC -Wno - orphans # # LANGUAGE TemplateHaskell , UndecidableInstances # module Cobble.Syntax.Instances where import Cobble.Prelude import Cobble.Syntax.AST import Cobble.Syntax.TH deriveInstanceReqs
null
https://raw.githubusercontent.com/Innf107/cobble-compiler/d6b0b65dad0fd6f1d593f7f859b1cc832e01e21f/src/Cobble/Syntax/Instances.hs
haskell
# OPTIONS_GHC -Wno - orphans # # LANGUAGE TemplateHaskell , UndecidableInstances # module Cobble.Syntax.Instances where import Cobble.Prelude import Cobble.Syntax.AST import Cobble.Syntax.TH deriveInstanceReqs
dcca6b6cdc38cab82908fbf8dfc02bc9034266cbf0c163b8528dd6b6b37f6b05
hammerlab/ketrew
eval_condition.mli
(**************************************************************************) Copyright 2014 , 2015 : < > , < > , Arun < > , < > ...
null
https://raw.githubusercontent.com/hammerlab/ketrew/8940d48fbe174709f076b7130974ecd0ed831d58/src/lib/eval_condition.mli
ocaml
************************************************************************ you may not use this file except in compliance with the License. You may obtain a copy of the License at ...
Copyright 2014 , 2015 : < > , < > , Arun < > , < > Licensed under the Apache License , Version 2.0 ( the " Licen...
e05704785c4b44a1aaf9f21d3c257c4c49c60f88e533704dc33ee21c027513e6
justinethier/nugget
apply.scm
(write (apply length '((#t #f)))) (write (apply cons '(#t #f))) (apply cadr (list (list 1 2 3 4))) (write (apply null? (list '()))) ( write ( apply + ' ( 10 20 ) ) ) ; may need to change representation of symbols to make this work (define (list . objs) objs) (define (list2 a b . objs) objs) (write (list 42 1)) (wr...
null
https://raw.githubusercontent.com/justinethier/nugget/0c4e3e9944684ea83191671d58b5c8c342f64343/cyclone/tests/apply.scm
scheme
may need to change representation of symbols to make this work
(write (apply length '((#t #f)))) (write (apply cons '(#t #f))) (apply cadr (list (list 1 2 3 4))) (write (apply null? (list '()))) (define (list . objs) objs) (define (list2 a b . objs) objs) (write (list 42 1)) (write (list 42 1 2)) (write (list2 42 1)) (write (list2 42 1 2))
6956e00050a8f0d7b464051a705684f00766562621bf7847125ffa77114d2c7c
TheClimateCorporation/mandoline
utils.clj
(ns io.mandoline.test.utils (:require [clojure.tools.logging :as log] [io.mandoline :as db] [io.mandoline.backend.mem :as mem] [io.mandoline [impl :as impl] [slab :as slab] [slice :as slice] [utils :as utils]] [io.mandoline.impl.protocol :as proto]) (:import [java.util UU...
null
https://raw.githubusercontent.com/TheClimateCorporation/mandoline/fa26162ef0349ecb71be9d27a46652206f5c1b99/src/io/mandoline/test/utils.clj
clojure
(ns io.mandoline.test.utils (:require [clojure.tools.logging :as log] [io.mandoline :as db] [io.mandoline.backend.mem :as mem] [io.mandoline [impl :as impl] [slab :as slab] [slice :as slice] [utils :as utils]] [io.mandoline.impl.protocol :as proto]) (:import [java.util UU...
3cfc0869b420ad34b09e1a37caaf7adffa67a8ed3222f201d74182bb2afa3a61
ds26gte/tex2page
cyclone-tex2page.rkt
last change : 2023 - 01 - 01 (scmxlate-uncall define-namespace-anchor require ) (scmxlate-ignoredef *tex2page-namespace* ) (define *scheme-version* "Cyclone")
null
https://raw.githubusercontent.com/ds26gte/tex2page/f0d280d689e9b6ab8dfff1e34e9cdfabdb60cb2f/dialects/cyclone-tex2page.rkt
racket
last change : 2023 - 01 - 01 (scmxlate-uncall define-namespace-anchor require ) (scmxlate-ignoredef *tex2page-namespace* ) (define *scheme-version* "Cyclone")
a5844d200c80080b85a23a0855306c07ec60e7aacd5fffbe4939bdc6ecca1270
polytypic/f-omega-mu
Loc.mli
include module type of StdlibPlus.Loc open FomPPrint val pp : t -> document val to_string : t -> string
null
https://raw.githubusercontent.com/polytypic/f-omega-mu/5e1c6595d371ea2bd31bc6c1991f55e9bdcbd677/src/main/FomSource/Loc.mli
ocaml
include module type of StdlibPlus.Loc open FomPPrint val pp : t -> document val to_string : t -> string
1b9eb0ae07a9181a1752d72a35c24a7bbbfd2865595a4ea6e1e2f05856052852
rossberg/1ml
lambda.ml
* ( c ) 2014 * (c) 2014 Andreas Rossberg *) (* Syntax *) type var = string type lab = string module Env = Map.Make(String) type env = value Env.t and exp = | VarE of var | PrimE of Prim.const | IfE of exp * exp * exp | LamE of var * exp | AppE of exp * exp | TupE of exp list | DotE of exp * ...
null
https://raw.githubusercontent.com/rossberg/1ml/028859a6a687d874981f440bdc5be5f8daa4a777/lambda.ml
ocaml
Syntax String conversion Evaluation
* ( c ) 2014 * (c) 2014 Andreas Rossberg *) type var = string type lab = string module Env = Map.Make(String) type env = value Env.t and exp = | VarE of var | PrimE of Prim.const | IfE of exp * exp * exp | LamE of var * exp | AppE of exp * exp | TupE of exp list | DotE of exp * int | RecE ...
35e3b67597166c2cbb1c9203cfd751c7d2d25f6e49ed177ea2fd0d1a0174a3a7
abyala/advent-2022-clojure
day25_test.clj
(ns advent-2022-clojure.day25-test (:require [clojure.test :refer :all] [advent-2022-clojure.day25 :refer :all])) (def test-data (slurp "resources/day25-test.txt")) (def puzzle-data (slurp "resources/day25-puzzle.txt")) (deftest part1-test (are [expected input] (= expected (part1 input)) ...
null
https://raw.githubusercontent.com/abyala/advent-2022-clojure/ebd784d0c4ce87ec44e6c3c481b922088b6816ef/test/advent_2022_clojure/day25_test.clj
clojure
(ns advent-2022-clojure.day25-test (:require [clojure.test :refer :all] [advent-2022-clojure.day25 :refer :all])) (def test-data (slurp "resources/day25-test.txt")) (def puzzle-data (slurp "resources/day25-puzzle.txt")) (deftest part1-test (are [expected input] (= expected (part1 input)) ...
db40027d34c5fe86871b50abd69de63832295d7bf45e65245cd38e938236cdf7
ChristopherBiscardi/snap-for-beginners
Application.hs
# LANGUAGE TemplateHaskell # ------------------------------------------------------------------------------ -- | This module defines our application's state type and an alias for its -- handler monad. module Application where ------------------------------------------------------------------------------ import Contro...
null
https://raw.githubusercontent.com/ChristopherBiscardi/snap-for-beginners/d35a4bbdd0a459983e2f37400fbc2bf8c8bf6239/code/postgres-app/src/Application.hs
haskell
---------------------------------------------------------------------------- | This module defines our application's state type and an alias for its handler monad. ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ...
# LANGUAGE TemplateHaskell # module Application where import Control.Lens import Snap.Snaplet import Snap.Snaplet.Heist import Snap.Snaplet.Auth import Snap.Snaplet.Session import Snap.Snaplet.PostgresqlSimple data App = App { _heist :: Snaplet (Heist App) , _sess :: Snaplet SessionManager , _db :: Snapl...
0ee12040ad01a914f5a978f6fb426d08fbbbbc3ed2a3c3f533c6863678a7c5ff
inhabitedtype/ocaml-aws
deleteGlobalReplicationGroup.ml
open Types open Aws type input = DeleteGlobalReplicationGroupMessage.t type output = DeleteGlobalReplicationGroupResult.t type error = Errors_internal.t let service = "elasticache" let signature_version = Request.V4 let to_http service region req = let uri = Uri.add_query_params (Uri.of_string (Aws.Ut...
null
https://raw.githubusercontent.com/inhabitedtype/ocaml-aws/b6d5554c5d201202b5de8d0b0253871f7b66dab6/libraries/elasticache/lib/deleteGlobalReplicationGroup.ml
ocaml
open Types open Aws type input = DeleteGlobalReplicationGroupMessage.t type output = DeleteGlobalReplicationGroupResult.t type error = Errors_internal.t let service = "elasticache" let signature_version = Request.V4 let to_http service region req = let uri = Uri.add_query_params (Uri.of_string (Aws.Ut...
821f52b2cfc460c05197c8b39c9461a34f72bef79576a6413483a364727a4a94
codereport/SICP-2020
conor_hoekstra_solutions.rkt
Exercise 3.1 ( page 303 - 4 ) (require rackunit) (define (make-accumulator init) (let ((sum init)) (λ (val) (begin (set! sum (+ sum val)) sum)))) (define A (make-accumulator 5)) (check-equal? (A 10) 15) (check-equal? (A 10) 25) Exercise 3.2 ( page 304 ) only works for one parameter funct...
null
https://raw.githubusercontent.com/codereport/SICP-2020/2d1e60048db89678830d93fcc558a846b7f57b76/Chapter%203.1%20Solutions/conor_hoekstra_solutions.rkt
racket
works for variadic number of parameters original from book modified generate, sum "PI estimate"
Exercise 3.1 ( page 303 - 4 ) (require rackunit) (define (make-accumulator init) (let ((sum init)) (λ (val) (begin (set! sum (+ sum val)) sum)))) (define A (make-accumulator 5)) (check-equal? (A 10) 15) (check-equal? (A 10) 25) Exercise 3.2 ( page 304 ) only works for one parameter funct...
b02c480b0bad00e2887129be4cbd499bfdb42a3445da304266b711801aa4d012
danehuang/augurv2
RwCore.hs
- Copyright 2017 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...
null
https://raw.githubusercontent.com/danehuang/augurv2/480459bcc2eff898370a4e1b4f92b08ea3ab3f7b/compiler/augur/src/Core/RwCore.hs
haskell
-------------------------------------------------------------------- = RwCore Description | [Note] Transformations on Density functions. --------------------------------- == Partition function --------------------------------- == Normalizing products --------------------------------- == Unfactor ----------------...
- Copyright 2017 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...
2e7368ac185a19101814e619fb05e29b2a242799d9aa0e21b284657983fbe2fd
naproche/naproche
Prover.hs
-- | Authors : ( 2001 - 2008 ) , ( 2017 - 2018 ) , ( 2018 , 2021 ) -- -- Prover interface: export a proof task to an external prover. {-# LANGUAGE OverloadedStrings #-} module SAD.Export.Prover ( Cache, init_cache, prune_cache, export ) where import Control.Monad (when) import ...
null
https://raw.githubusercontent.com/naproche/naproche/6284a64b4b84eaa53dd0eb7ecb39737fb9135a0d/src/SAD/Export/Prover.hs
haskell
| Prover interface: export a proof task to an external prover. # LANGUAGE OverloadedStrings #
Authors : ( 2001 - 2008 ) , ( 2017 - 2018 ) , ( 2018 , 2021 ) module SAD.Export.Prover ( Cache, init_cache, prune_cache, export ) where import Control.Monad (when) import Control.Exception (SomeException, try, throw) import Data.Maybe (fromJust, isNothing) import SAD.Data.Inst...
8c72f6f0b486c2a3037665ce30441b3bcfbbc2b259717064a9e315645da436d0
ijvcms/chuanqi_dev
dp_lib.erl
%%%------------------------------------------------------------------- %%% @author qhb ( C ) 2016 , < COMPANY > %%% @doc %%% 数据独立线程处理模块 %%% @end Created : 31 . 五月 2016 下午4:08 %%%------------------------------------------------------------------- -module(dp_lib). -include("common.hrl"). %% API -export([ add/0, a...
null
https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/system/dp/dp_lib.erl
erlang
------------------------------------------------------------------- @author qhb @doc 数据独立线程处理模块 @end ------------------------------------------------------------------- API 添加默认的一组数据处理,应用启用时初始化 添加其它的数据处理,应用启用时初始化 ?INFO("dp_lib:cast ~p",[ModName]),
( C ) 2016 , < COMPANY > Created : 31 . 五月 2016 下午4:08 -module(dp_lib). -include("common.hrl"). -export([ add/0, add/2, cast/1, cast/2, cast/3, get_name/1, get_name/2 ]). add() -> [dp_sup:start_child([{dp, Index}]) || Index <- lists:seq(1, erlang:system_info(schedulers))], ok. add(Type, Num) -> [dp_su...
a87fa0b97cab1ba40e87c7d11875fa6c8ba917b7d82e1db41b88dbbc33453249
notogawa/yesod-websocket-sample
Foundation.hs
module Foundation ( App (..) , Route (..) , AppMessage (..) , resourcesApp , Handler , Widget , Form , maybeAuth , requireAuth , module Settings , module Model ) where import Prelude import Yesod import Yesod.Static import Yesod.Auth import Yesod.Auth.BrowserId import Ye...
null
https://raw.githubusercontent.com/notogawa/yesod-websocket-sample/aa3eb38339830753a26ec68e130053ea01a80ff2/Foundation.hs
haskell
| The site argument for your application. This can be a good place to keep settings and values requiring initialization before your application starts running, such as database connections. Every handler will have access to the data present here. ^ Settings for static file serving. ^ Database connection pool. Se...
module Foundation ( App (..) , Route (..) , AppMessage (..) , resourcesApp , Handler , Widget , Form , maybeAuth , requireAuth , module Settings , module Model ) where import Prelude import Yesod import Yesod.Static import Yesod.Auth import Yesod.Auth.BrowserId import Ye...
5054071ec195e4c920c55993db1f175bc0a4eb516e22206217447be358c142f5
guriguri/cauca
crawler_test.clj
(ns cauca.component.crawler-test (:use [clojure test] ) (:require [cauca.factory :as f] [cauca.component.crawler :as crawler] [cauca.log :as log] [cauca.config :as config] ) ) (deftest add-courtauctions-test (log/configure-logback "/cauca-logback.x...
null
https://raw.githubusercontent.com/guriguri/cauca/38ba3ee7200d2369a1a4f7ae58e286bd09dd16f3/test/clj/cauca/component/crawler_test.clj
clojure
(ns cauca.component.crawler-test (:use [clojure test] ) (:require [cauca.factory :as f] [cauca.component.crawler :as crawler] [cauca.log :as log] [cauca.config :as config] ) ) (deftest add-courtauctions-test (log/configure-logback "/cauca-logback.x...
498096fed5ffbc2a70336116cdd20c793af22507aec3abc727364b7f6ae969f2
dterei/SafeHaskellExamples
ImpSafe.hs
{-# LANGUAGE Safe #-} # LANGUAGE NoImplicitPrelude # module ImpSafe ( MyWord ) where -- Data.Word is safe so shouldn't requrie base be trusted. -- (No wrong as while Data.Word is safe it imports trustworthy -- modules in base, hence base needs to be trusted). -- Note: Worthwhile giving out better error messages for c...
null
https://raw.githubusercontent.com/dterei/SafeHaskellExamples/0f7bbb53cf1cbb8419ce3a4aa4258b84be30ffcc/pkgs/ImpSafe.hs
haskell
# LANGUAGE Safe # Data.Word is safe so shouldn't requrie base be trusted. (No wrong as while Data.Word is safe it imports trustworthy modules in base, hence base needs to be trusted). Note: Worthwhile giving out better error messages for cases like this if I can.
# LANGUAGE NoImplicitPrelude # module ImpSafe ( MyWord ) where import Data.Word type MyWord = Word
57481a2bcdba2f6c4587e424daafe768244928a9269d51d67f11eb94bddef9a6
csabahruska/jhc-components
LambdaLift.hs
module E.LambdaLift(lambdaLift,staticArgumentTransform) where import Control.Monad.Reader import Control.Monad.Writer import Data.IORef import Data.Maybe import Text.Printf import Doc.PPrint import E.Annotate import E.E import E.Inline import E.Program import E.Subst import E.Traverse import E.TypeCheck import E.Val...
null
https://raw.githubusercontent.com/csabahruska/jhc-components/a7dace481d017f5a83fbfc062bdd2d099133adf1/jhc-core/src/E/LambdaLift.hs
haskell
| transform simple recursive functions into non-recursive variants this is exactly the opposite of lambda lifting, but is a big win if the function ends up inlined and is conducive to other optimizations in particular, the type arguments can almost always be transformed away from the recursive inner function thi...
module E.LambdaLift(lambdaLift,staticArgumentTransform) where import Control.Monad.Reader import Control.Monad.Writer import Data.IORef import Data.Maybe import Text.Printf import Doc.PPrint import E.Annotate import E.E import E.Inline import E.Program import E.Subst import E.Traverse import E.TypeCheck import E.Val...
7805aac89921d74f26d44c1c08fe19abd3dd4b8ab362b74597c2d9a2422f8e45
metosin/kekkonen
midje.clj
(ns kekkonen.midje (:require [midje.util.exceptions :as e] [kekkonen.core :as k] [schema.core :as s] [cheshire.core :as c] [plumbing.core :as p])) (defn throws? ([] (throws? {})) ([m] (fn [x] (let [data (ex-data (e/throwable x)) mdata (if data...
null
https://raw.githubusercontent.com/metosin/kekkonen/5a38c52af34a0eb0f19d87e9f549e93e6d87885f/test/kekkonen/midje.clj
clojure
(ns kekkonen.midje (:require [midje.util.exceptions :as e] [kekkonen.core :as k] [schema.core :as s] [cheshire.core :as c] [plumbing.core :as p])) (defn throws? ([] (throws? {})) ([m] (fn [x] (let [data (ex-data (e/throwable x)) mdata (if data...
61218db5712830f6e6a5ceef52208b285587a43cce4363b90c37c67d337591e2
yogthos/memory-hole
user.clj
(ns user (:require [mount.core :as mount] [memory-hole.figwheel :refer [start-fw stop-fw cljs]] memory-hole.core)) (defn start [] (mount/start-without #'memory-hole.core/repl-server)) (defn stop [] (mount/stop-except #'memory-hole.core/repl-server)) (defn restart [] (stop) (start)) ...
null
https://raw.githubusercontent.com/yogthos/memory-hole/925e399b0002d59998d10bd6f54ff3464a4b4ddb/env/dev/clj/user.clj
clojure
(ns user (:require [mount.core :as mount] [memory-hole.figwheel :refer [start-fw stop-fw cljs]] memory-hole.core)) (defn start [] (mount/start-without #'memory-hole.core/repl-server)) (defn stop [] (mount/stop-except #'memory-hole.core/repl-server)) (defn restart [] (stop) (start)) ...
667919e960cb8de5c2f1c35c1cf516053244d1386acea97cbefdf5f731d6d067
ghc/packages-dph
USegd.hs
{-# OPTIONS -Wall -fno-warn-orphans -fno-warn-missing-signatures #-} # LANGUAGE CPP # #include "fusion-phases.h" -- | Distribution of Segment Descriptors module Data.Array.Parallel.Unlifted.Distributed.Data.USegd ( mkDUSegdD , lengthD , takeLengthsD , takeIndicesD , takeElement...
null
https://raw.githubusercontent.com/ghc/packages-dph/64eca669f13f4d216af9024474a3fc73ce101793/dph-prim-par/Data/Array/Parallel/Unlifted/Distributed/Data/USegd.hs
haskell
# OPTIONS -Wall -fno-warn-orphans -fno-warn-missing-signatures # | Distribution of Segment Descriptors
# LANGUAGE CPP # #include "fusion-phases.h" module Data.Array.Parallel.Unlifted.Distributed.Data.USegd ( mkDUSegdD , lengthD , takeLengthsD , takeIndicesD , takeElementsD , splitSegdOnSegsD , splitSegdOnElemsD , splitSD , joinSegdD , glue...
822ed57a09f59392c3f852bc9a2a7824902554af4356a3af1866d888a4eb578e
plum-umd/adapton.ocaml
articulated.ml
module type S = sig type name include Data.S module Art : Art.S with type data = t and type name = name end module Make(ArtLib : ArtLib.S)(N : Name.S)(D : Data.S) : S with type t = D.t and type name = N.t and type Art.data = D.t and type Art.name = N.t = s...
null
https://raw.githubusercontent.com/plum-umd/adapton.ocaml/a8e642ac1cc113b33e1837da960940c2dfcfa772/src/core/articulated.ml
ocaml
projections, monadic:
module type S = sig type name include Data.S module Art : Art.S with type data = t and type name = name end module Make(ArtLib : ArtLib.S)(N : Name.S)(D : Data.S) : S with type t = D.t and type name = N.t and type Art.data = D.t and type Art.name = N.t = s...
c5303b8b9ee9fe34938dbc170a0da33dbc38d8629906276a3a04b049b9e4e27c
benashford/redis-async
test_helpers.clj
(ns redis-async.test-helpers (:require [clojure.test :refer :all] [redis-async.core :as core] [redis-async.client :as client])) (def ^:dynamic *redis-pool* nil) (defmacro is-ok [expr] `(is (= "OK" ~expr))) (defn- load-seed-data "A bare-bones set of data for testing, most tests load thei...
null
https://raw.githubusercontent.com/benashford/redis-async/06487ae8352870e2c9120958aa89d02f356fb357/test/redis_async/test_helpers.clj
clojure
(ns redis-async.test-helpers (:require [clojure.test :refer :all] [redis-async.core :as core] [redis-async.client :as client])) (def ^:dynamic *redis-pool* nil) (defmacro is-ok [expr] `(is (= "OK" ~expr))) (defn- load-seed-data "A bare-bones set of data for testing, most tests load thei...
c82ab6b2e6c371cee39a494e140431d19c89fdea8afa561338423d0d8a33cc90
DSLsofMath/DSLsofMath
W05_code.hs
{-# LANGUAGE TypeSynonymInstances #-} # LANGUAGE RebindableSyntax # module DSLsofMath.W05 where import Prelude hiding (Num(..),(/),(^)) import DSLsofMath.Algebra type REAL = Double evalL :: [REAL] -> (REAL -> REAL) evalL [] = const 0 evalL (a:as) = const a + id * evalL as newtype Poly a = Poly [a] deriving (S...
null
https://raw.githubusercontent.com/DSLsofMath/DSLsofMath/0ec0bff400ab1431d9bd2116b755ef277599e6b7/L/05/W05_code.hs
haskell
# LANGUAGE TypeSynonymInstances # |0+bs == bs| |as+0 == as| |0*bs == 0| |as*0 == 0| finite and infinite lists case |p/c| |ps2 == Poly [-1,1,0]|
# LANGUAGE RebindableSyntax # module DSLsofMath.W05 where import Prelude hiding (Num(..),(/),(^)) import DSLsofMath.Algebra type REAL = Double evalL :: [REAL] -> (REAL -> REAL) evalL [] = const 0 evalL (a:as) = const a + id * evalL as newtype Poly a = Poly [a] deriving (Show,Eq) evalPoly :: Ring a => Poly a ...
bd67c407aecc7d931332e73bc452a7d318ab921d4d7eb209826b1830721d59cc
journeyman-cc/smeagol
configuration.clj
(ns ^{:doc "Read and make available configuration." :author "Simon Brooke"} smeagol.configuration (:require [clojure.pprint :refer [pprint]] [clojure.string :as s] [environ.core :refer [env]] [noir.io :as io] [taoensso.timbre :as log])) ;;;;;;;;;;;;;;;;;;;;;;;;...
null
https://raw.githubusercontent.com/journeyman-cc/smeagol/a775ef7b831a2fbcf9c98380367edc16d39c4c6c/src/smeagol/configuration.clj
clojure
Smeagol: a very simple Wiki engine. This program is free software; you can redistribute it and/or either version 2 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU G...
(ns ^{:doc "Read and make available configuration." :author "Simon Brooke"} smeagol.configuration (:require [clojure.pprint :refer [pprint]] [clojure.string :as s] [environ.core :refer [env]] [noir.io :as io] [taoensso.timbre :as log])) modify it under the te...
006906f0d34838e3afd6539c3406b686dc4c3692b38a99a0a67da90a48afe9ef
project-oak/hafnium-verification
ast_expressions.ml
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
null
https://raw.githubusercontent.com/project-oak/hafnium-verification/6071eff162148e4d25a0fedaea003addac242ace/experiments/ownership-inference/infer/infer/src/clang/ast_expressions.ml
ocaml
* This module creates extra ast constructs that are needed for the translation We translate an expression with a conditional x <=> x?1:0 We translate the logical negation of an expression with a conditional !x <=> x?0:1
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
953d32ba654c01a0d59785a3ae9459a21d1e0eb513fdaf2e88d967163d2a2280
clash-lang/clash-protocols
Avalon.hs
# LANGUAGE FlexibleContexts # # LANGUAGE NumericUnderscores # # LANGUAGE RecordWildCards # module Tests.Protocols.Avalon where -- base import Prelude -- clash-prelude import qualified Clash.Prelude as C -- extra import Data.Proxy (Proxy(..)) -- hedgehog import Hedgehog import qualified Hedgehog.Gen as Gen -- tast...
null
https://raw.githubusercontent.com/clash-lang/clash-protocols/6026ee92f1b656c78acce15184d34fcf93ab4ec9/tests/Tests/Protocols/Avalon.hs
haskell
base clash-prelude extra hedgehog tasty clash-protocols (me!) tests ------------------------------------------------------------- -------------------------- TESTS ---------------------------- ------------------------------------------------------------- feed ReadImpt's to a manager-to-subordinate converter, and...
# LANGUAGE FlexibleContexts # # LANGUAGE NumericUnderscores # # LANGUAGE RecordWildCards # module Tests.Protocols.Avalon where import Prelude import qualified Clash.Prelude as C import Data.Proxy (Proxy(..)) import Hedgehog import qualified Hedgehog.Gen as Gen import Test.Tasty import Test.Tasty.Hedgehog (Hedgeho...
ca1e226f0c510649d750511878c840abb5967d24893f3d698dd59127b0bddf29
macchiato-framework/examples
auth.cljs
(ns cljsbin.auth "Auth related middleware." (:require [goog.crypt.base64 :as base64] [cljs.nodejs :as node] [clojure.string :as string] [macchiato.middleware.node-middleware :refer [wrap-node-middleware]] [macchiato.util.response :as r])) (defn- parse-basic "Decode Authorization header value ...
null
https://raw.githubusercontent.com/macchiato-framework/examples/946bdf1a04f5ef787fc83affdcbf6603bbf29b5c/cljsbin/src/cljsbin/auth.cljs
clojure
hack: use the function reference as the strategy name so no more than one strategy is registered in passport for the same function
(ns cljsbin.auth "Auth related middleware." (:require [goog.crypt.base64 :as base64] [cljs.nodejs :as node] [clojure.string :as string] [macchiato.middleware.node-middleware :refer [wrap-node-middleware]] [macchiato.util.response :as r])) (defn- parse-basic "Decode Authorization header value ...
76fa997c32609225bc36ac903794f4ddc217fb855864000a1e944e6e4bc0a577
xapix-io/axel-f
exceptions_test.cljc
(ns axel-f.exceptions-test (:require [axel-f.excel :as af] #?(:clj [clojure.test :as t] :cljs [cljs.test :as t :include-macros true])) #?(:clj (:import [clojure.lang ExceptionInfo]))) (t/deftest no-expression-inside-round-block (t/is (thrown-with-msg? ExceptionInfo #...
null
https://raw.githubusercontent.com/xapix-io/axel-f/ec8fca880033e0ae78a8d9f42538d4a71fba29bd/test/axel_f/exceptions_test.cljc
clojure
(ns axel-f.exceptions-test (:require [axel-f.excel :as af] #?(:clj [clojure.test :as t] :cljs [cljs.test :as t :include-macros true])) #?(:clj (:import [clojure.lang ExceptionInfo]))) (t/deftest no-expression-inside-round-block (t/is (thrown-with-msg? ExceptionInfo #...
d77d89132818d12573812db129e996c36ad42e56c9edabf9aab03ec9583c2f33
inconvergent/cl-veq
veq-ops.lisp
(in-package :veq) (defparameter *errmsg* "~%-------------~% error in ~a:~&~a~%-------------~%") (declaim (list *symbols-map* *docstring-map*)) (defvar *symbols-map* (list)) (defun map-symbol (pair) (declare #.*opt* (list pair)) "add pair macrolet pair. see macro.lisp." (export (the symbol (car pair))) (setf...
null
https://raw.githubusercontent.com/inconvergent/cl-veq/04386c4019e1f7a6824fc97640458232f426c32d/src/veq-ops.lisp
lisp
(in-package :veq) (defparameter *errmsg* "~%-------------~% error in ~a:~&~a~%-------------~%") (declaim (list *symbols-map* *docstring-map*)) (defvar *symbols-map* (list)) (defun map-symbol (pair) (declare #.*opt* (list pair)) "add pair macrolet pair. see macro.lisp." (export (the symbol (car pair))) (setf...
adb4af3a2bb3f01ca47d76525afd8541ffb8cfa6e8439b7c533cd30eb24c1642
Eventuria/demonstration-gsd
StreamRepository.hs
{-# LANGUAGE Rank2Types #-} # LANGUAGE ExistentialQuantification # module Eventuria.Libraries.CQRS.Read.StreamRepository where import Control.Exception import Streamly hiding (Streaming) import Eventuria.Libraries.PersistedStreamEngine.Interface.PersistedItem import Eventuria.Libraries.CQRS.Write.Aggregate.Ids.Aggre...
null
https://raw.githubusercontent.com/Eventuria/demonstration-gsd/5c7692b310086bc172d3fd4e1eaf09ae51ea468f/src/Eventuria/Libraries/CQRS/Read/StreamRepository.hs
haskell
# LANGUAGE Rank2Types #
# LANGUAGE ExistentialQuantification # module Eventuria.Libraries.CQRS.Read.StreamRepository where import Control.Exception import Streamly hiding (Streaming) import Eventuria.Libraries.PersistedStreamEngine.Interface.PersistedItem import Eventuria.Libraries.CQRS.Write.Aggregate.Ids.AggregateId type GetStreamAll i...
497389cc8c73fa90aa7f0c0b746a6a3e333dbcdb00ace033e147344a084323c0
thosmos/riverdb
server.clj
(ns riverdb.server for -main method in uberjar (:require [clojure-csv.core :refer [write-csv]] [clojure.tools.logging :refer [debug]] [com.walmartlabs.lacinia.pedestal :as lacinia] [com.walmartlabs.lacinia.schema :as schema] [com.walmartlabs.lacinia.util :as util] ...
null
https://raw.githubusercontent.com/thosmos/riverdb/243426e15be96ec5e8571d911485ea58c28a13f9/src/server/riverdb/server.clj
clojure
cookies-response (sch/load-all-schemas) (debug "cookies: " (str (get-in context [:request :cookies]))) _ (when token? (debug "authorization bearer token: " token?))] (assoc-in [:response :body :data :auth :token] token?))) (tu/ppstr (keys (get-in context [:response :body :data]))) ;(tu/ppstr context) ...
(ns riverdb.server for -main method in uberjar (:require [clojure-csv.core :refer [write-csv]] [clojure.tools.logging :refer [debug]] [com.walmartlabs.lacinia.pedestal :as lacinia] [com.walmartlabs.lacinia.schema :as schema] [com.walmartlabs.lacinia.util :as util] ...
72cdb1561609fd88d618b3ef2a289a2e67a901057e50030589a56af0a58147a8
Pedro-V/naves-codeworld
batalhaEspaco.hs
PEDRO VINÍCIUS DE ARAUJO BARRETO : LUCAS GAMA VIEIRA DE MATOS : {-# LANGUAGE OverloadedStrings #-} import CodeWorld import CodeWorld.Sketches type Linha = (Point, Point) type Poligono = [Point] main = activityOf navesInicial update visualization data Nave = Nave {pos, vel :: Point, ...
null
https://raw.githubusercontent.com/Pedro-V/naves-codeworld/cbd6489912b8e996950520dbad6e4c75aa3ae728/batalhaEspaco.hs
haskell
# LANGUAGE OverloadedStrings # Nave 1 Nave 2 ********** GIRO DOS ASTEROIDES *********** *********** EXPLOSOES ********** *********** CONFERE IMPACTO ********** ****** PROJETEIS ******** Questão 1 (rx + x, rx + y) ou (rx+x, r...
PEDRO VINÍCIUS DE ARAUJO BARRETO : LUCAS GAMA VIEIRA DE MATOS : import CodeWorld import CodeWorld.Sketches type Linha = (Point, Point) type Poligono = [Point] main = activityOf navesInicial update visualization data Nave = Nave {pos, vel :: Point, giro, res :: Int, ...