_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
5fa87cfadf777a12a15a8a4045c5d12882c6437ad1f3c597b29872993a9d6948
jfaure/Irie-lang
Infer.hs
: see " Algebraic subtyping " by /~nr/cs257/archive/stephen-dolan/thesis.pdf module Infer (judgeModule) where import Prim ( PrimInstr(MkPAp) ) import BiUnify ( bisub ) import qualified ParseSyntax as P import CoreSyn as C import CoreUtils import TTCalculus ( ttApp ) import Scope import Errors import TypeCheck ( che...
null
https://raw.githubusercontent.com/jfaure/Irie-lang/2f30b70a70a58e72edfa7bf9ded47435c68e8ffe/compiler/3_Core/Infer.hs
haskell
open required infer >> generalise >> check annotation This stacks inference of forward references and let-binds Mutuals: wait for end of mutual block to generalise learn which binds had to be inferred as dependencies minimum (bindINm : ms) /= bindINm <* clearBiSubs 0 reference to inference stack (forward ref | ...
: see " Algebraic subtyping " by /~nr/cs257/archive/stephen-dolan/thesis.pdf module Infer (judgeModule) where import Prim ( PrimInstr(MkPAp) ) import BiUnify ( bisub ) import qualified ParseSyntax as P import CoreSyn as C import CoreUtils import TTCalculus ( ttApp ) import Scope import Errors import TypeCheck ( che...
c4a70a145872b007d2ad3605b1315efa01cf9e5d9e43d94798f1db0072baf3e3
ocaml-ppx/ocaml-syntax-shims
shims.402.ml
let nolabel = "" let error_of_exn = Location.error_of_exn
null
https://raw.githubusercontent.com/ocaml-ppx/ocaml-syntax-shims/38a6dd23543d9c4c3678fc6741962832fd539877/src/shims.402.ml
ocaml
let nolabel = "" let error_of_exn = Location.error_of_exn
eb2239f48419cb7f42a19d6f99735a9305992182b274a079632282ebf49ac34d
armon/teles
teles_acceptor_sup.erl
-module(teles_acceptor_sup). -behaviour(supervisor). -export([start_link/2, init/1]). start_link(Port, PoolSize) -> supervisor:start_link({local, ?MODULE}, ?MODULE, [Port, PoolSize]). init([Port, PoolSize]) -> % Try to start listening {ok, Listen} = gen_tcp:listen(Port, [binary, ...
null
https://raw.githubusercontent.com/armon/teles/d65db29e69e5bcb83ac0e7adae6c56ad42fd323c/src/teles_acceptor_sup.erl
erlang
Try to start listening Get a pool of acceptors
-module(teles_acceptor_sup). -behaviour(supervisor). -export([start_link/2, init/1]). start_link(Port, PoolSize) -> supervisor:start_link({local, ?MODULE}, ?MODULE, [Port, PoolSize]). init([Port, PoolSize]) -> {ok, Listen} = gen_tcp:listen(Port, [binary, {reuseaddr,t...
3fdc18f7173c91ff6a4aaf1bb8a89a9e427687fb905a5bcd90e8700954243764
ndmitchell/neil
Darcs.hs
module Darcs(run) where import Control.Monad import Data.Char import Data.List import System.Directory import System.Exit import System.FilePath import Util import Arguments import Control.Exception as E import Control.Concurrent import Data.Maybe --------------------------------------------------------------------...
null
https://raw.githubusercontent.com/ndmitchell/neil/b06624fe697c23375222856d538cb974e96da048/src/Darcs.hs
haskell
------------------------------------------------------------------- Find all the repos. Look down searching for a _darcs, if you find any, return them. If you don't find any, look up. Run over each repo ------------------------------------------------------------------- RAW COMMANDS --------------------------------...
module Darcs(run) where import Control.Monad import Data.Char import Data.List import System.Directory import System.Exit import System.FilePath import Util import Arguments import Control.Exception as E import Control.Concurrent import Data.Maybe UTILITIES findRepos :: FilePath -> IO [FilePath] findRepos x = do...
4e24c411ccb5c5bdbe53b09c885a9750d9b9b4baac8ec7a8c86a6db54163d787
srid/neuron
Impulse.hs
# LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE QuasiQuotes # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE TupleSections # # LANGUAGE TypeApplications # # LANGUAGE ViewPatterns # # LANGUAGE NoImplicitPrelude # module Neuron.Frontend.Impuls...
null
https://raw.githubusercontent.com/srid/neuron/1f127b8343dbe05e057688988b289066df1cdedb/src/Neuron/Frontend/Impulse.hs
haskell
# LANGUAGE OverloadedStrings # TODO: Create SearchQuery.hs, and make a note of sharing it with CLI search. | Tree's root matches the query. | Tree's root does not match. themeDyn indexZettel impulseLDyn = do TODO: Use dynamic throughout instead of defaulting the theme Return the value for given query key (eg: ?q=...
# LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE QuasiQuotes # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE TupleSections # # LANGUAGE TypeApplications # # LANGUAGE ViewPatterns # # LANGUAGE NoImplicitPrelude # module Neuron.Frontend.Impulse ( renderImpulse, style, )...
e044df00fab7a5ef632012935acb2efd9dfa6bf9ab1ffae6a90a8dd692a8a321
shirok/Gauche
18.scm
;; ;; SRFI-18 - multithreading support In Gauche , SRFI-18 is covered by gauche.threads ;; (define-module srfi.18 (use gauche.threads) (export current-thread thread? make-thread thread-name thread-specific-set! thread-specific thread-start! thread-yield! thread-sleep! thread-join! ...
null
https://raw.githubusercontent.com/shirok/Gauche/e606bfe5a94b100d5807bca9c2bb95df94f60aa6/lib/srfi/18.scm
scheme
SRFI-18 - multithreading support re-export from built-in ditto ditto
In Gauche , SRFI-18 is covered by gauche.threads (define-module srfi.18 (use gauche.threads) (export current-thread thread? make-thread thread-name thread-specific-set! thread-specific thread-start! thread-yield! thread-sleep! thread-join! thread-terminate! mutex? make-m...
484d70a4148dbb667bfa591a7be201f57815c932aeaeabedf673ccc9ae75ba84
kupl/LearnML
original.ml
type formula = | True | False | Not of formula | AndAlso of (formula * formula) | OrElse of (formula * formula) | Imply of (formula * formula) | Equal of (exp * exp) and exp = Num of int | Plus of (exp * exp) | Minus of (exp * exp) let rec eval (f : formula) : bool = match f with | True -> true | ...
null
https://raw.githubusercontent.com/kupl/LearnML/c98ef2b95ef67e657b8158a2c504330e9cfb7700/result/cafe2/formula/sub101/original.ml
ocaml
type formula = | True | False | Not of formula | AndAlso of (formula * formula) | OrElse of (formula * formula) | Imply of (formula * formula) | Equal of (exp * exp) and exp = Num of int | Plus of (exp * exp) | Minus of (exp * exp) let rec eval (f : formula) : bool = match f with | True -> true | ...
da1d41881588a3c6c373e8261e86138047e091819f7e162d551b9e034ea0e720
janestreet/learn-ocaml-workshop
problem.mli
open! Base val modulo : dividend:int -> divisor:int -> int
null
https://raw.githubusercontent.com/janestreet/learn-ocaml-workshop/1ba9576b48b48a892644eb20c201c2c4aa643c32/02-exercises/11-labeled_arguments/problem.mli
ocaml
open! Base val modulo : dividend:int -> divisor:int -> int
f5930bded871a334aed3006f85093a2fe406f165a2250dd641cc8467a94bfc21
LuisThiamNye/chic
debugger.clj
(ns chic.debug.debugger (:require [clojure.string :as str] [chic.ui :as cui] [chic.debug.live-debugger :as live-debugger] [chic.style :as style] [chic.error.stacktrace :as error.stacktrace] [chic.debug :as debug] [chic.ui.error :as cui.error] [chic.ui.event :as uievt] [clojure.reflect :as r...
null
https://raw.githubusercontent.com/LuisThiamNye/chic/813633a689f9080731613f788a295604d4d9a510/src/chic/debug/debugger.clj
clojure
(def *errors (atom {})) id (new-error-id)
(ns chic.debug.debugger (:require [clojure.string :as str] [chic.ui :as cui] [chic.debug.live-debugger :as live-debugger] [chic.style :as style] [chic.error.stacktrace :as error.stacktrace] [chic.debug :as debug] [chic.ui.error :as cui.error] [chic.ui.event :as uievt] [clojure.reflect :as r...
729d609758b49cef384b751e9b5d9e738f0e3d5ef6d113002829876d92df0750
relevance/labrepl
looping.clj
(ns solutions.looping) (defn zipm-1 [keys vals] (loop [m {} ks (seq keys) vs (seq vals)] (if (and ks vs) (recur (assoc m (first ks) (first vs)) (next ks) (next vs)) m))) (defn zipm-2 [keys vals] (loop [m {} [k & ks :as keys] (seq keys) ...
null
https://raw.githubusercontent.com/relevance/labrepl/51909dcb3eeb9f148eeae109316f7d73cc81512a/src/solutions/looping.clj
clojure
(ns solutions.looping) (defn zipm-1 [keys vals] (loop [m {} ks (seq keys) vs (seq vals)] (if (and ks vs) (recur (assoc m (first ks) (first vs)) (next ks) (next vs)) m))) (defn zipm-2 [keys vals] (loop [m {} [k & ks :as keys] (seq keys) ...
18a2f509fdc609624d751adbd624a3570fc815223e756cb360b075310cb5db61
herbelin/coq-hh
z_syntax.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/herbelin/coq-hh/296d03d5049fea661e8bdbaf305ed4bf6d2001d2/plugins/syntax/z_syntax.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/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Pcoq open Pp open Util o...
093d07fdcbaf54ea4a7eed292ad6238cd207aa4cd4b777678924c1d2f453e9de
marijnh/cl-tk
base.lisp
(in-package :cl-tk) (define-condition tcl-error (simple-error) ()) (defun tcl-error (control &rest args) (error 'tcl-error :format-control control :format-arguments args)) (defvar *tk*) (defclass tk () ((event-table :initform (make-hash-table :test 'eql) :reader @table) (next-id :initform 0 :accessor @next-id...
null
https://raw.githubusercontent.com/marijnh/cl-tk/c9e25704c33b31effddb5ea9192bd562a12ba748/base.lisp
lisp
Event callback registration Methods on tk objects Tcl commands Running a Tk instance
(in-package :cl-tk) (define-condition tcl-error (simple-error) ()) (defun tcl-error (control &rest args) (error 'tcl-error :format-control control :format-arguments args)) (defvar *tk*) (defclass tk () ((event-table :initform (make-hash-table :test 'eql) :reader @table) (next-id :initform 0 :accessor @next-id...
d26f7c79267cbb4fffd5f72ecaacb1af08cdd31c887e494a399a5f5d57eebdaa
incanter/incanter
symbolic.clj
(ns ^{:doc "A library for performing symbolic math, a port from SICP (/)." :author "Bryce Nyeggen, with modifications by David Edgar Liebke"} incanter.symbolic (:use [incanter.core :only (pow)])) ;functions of multiple arguments (def fn-list #{ '+ '- '* '/ 'pow '** 'exp}) functions of one argument (def ch...
null
https://raw.githubusercontent.com/incanter/incanter/e0a03aac237fcc60587278a36bd2e76266fc6356/modules/incanter-core/src/incanter/symbolic.clj
clojure
functions of multiple arguments their combination exp can also kind of be chainrulized below, it makes sense not to though since multiply by inverse of denominator is same as numerator/denominator should not happen as chainable? refers to a list that we should completely specify here some kind of error here, return a d...
(ns ^{:doc "A library for performing symbolic math, a port from SICP (/)." :author "Bryce Nyeggen, with modifications by David Edgar Liebke"} incanter.symbolic (:use [incanter.core :only (pow)])) (def fn-list #{ '+ '- '* '/ 'pow '** 'exp}) functions of one argument (def chain-list #{'exp 'log 'sin 'cos 't...
4ec010dfe10ead23fc0d483b0657a42013c01489e1a497f257b3ab377deedef0
pirapira/coq2rust
coq.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/pirapira/coq2rust/22e8aaefc723bfb324ca2001b2b8e51fcc923543/ide/coq.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * Return the impertative computation...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Coq : Interaction with the ...
3a181af405f45d2a16b1ccd73834f131cd33dba2d183a63ce140cde194869b30
cedlemo/OCaml-GI-ctypes-bindings-generator
Frame_private.ml
open Ctypes open Foreign type t let t_typ : t structure typ = structure "Frame_private"
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Frame_private.ml
ocaml
open Ctypes open Foreign type t let t_typ : t structure typ = structure "Frame_private"
2fc6b541d16baeb58207e58f9479c70cff4154ff7db653037b7aba7b3a85a307
polytypic/f-omega-mu
FomEnv.ml
open FomAnnot open FomChecker open FomElab open FomToJsC module Env = struct class ['R, 'D, 't] empty ?(annot = Annot.empty ()) ?(exp_imports = ExpImports.create ()) ?(mod_in_js = ModInJs.create ()) ?(mod_simplified = ModSimplified.create ()) ?(typ_imports = TypImports.create ()) ?(typ_includes = Typ...
null
https://raw.githubusercontent.com/polytypic/f-omega-mu/4db7d626a6ce99393ee123d8444206a178fe73a4/src/main/FomEnv/FomEnv.ml
ocaml
open FomAnnot open FomChecker open FomElab open FomToJsC module Env = struct class ['R, 'D, 't] empty ?(annot = Annot.empty ()) ?(exp_imports = ExpImports.create ()) ?(mod_in_js = ModInJs.create ()) ?(mod_simplified = ModSimplified.create ()) ?(typ_imports = TypImports.create ()) ?(typ_includes = Typ...
4f45832f037f78c79196644b9f49c1b5e7f60d1d0d404e4cdccc1e87716e11ef
heshrobe/joshua-dist
erase-output-record.lisp
-*- Mode : LISP ; Syntax : Common - Lisp ; Package : clim - internals ; Base : 10 ; Patch - File : T -*- ;;; CLOS:METHOD CLIM:ERASE-OUTPUT-RECORD (T CLIM-INTERNALS::OUTPUT-RECORDING-MIXIN)): ;;; Calculate the region before deleting the parent. In the current ;;; version, the deleted record is used as the replay r...
null
https://raw.githubusercontent.com/heshrobe/joshua-dist/f59f06303f9fabef3e945a920cf9a26d9c2fd55e/clim-fixes/erase-output-record.lisp
lisp
Syntax : Common - Lisp ; Package : clim - internals ; Base : 10 ; Patch - File : T -*- CLOS:METHOD CLIM:ERASE-OUTPUT-RECORD (T CLIM-INTERNALS::OUTPUT-RECORDING-MIXIN)): Calculate the region before deleting the parent. In the current version, the deleted record is used as the replay region, but its region is re...
Written by HES , 9/15/98 10:24:22 (in-package :clim-internals) #-allegro (defmethod erase-output-record (record (stream output-recording-mixin) &optional (errorp t) (x-offset 0) (y-offset 0)) (if (listp record) (erase-output-records record stream errorp) (let ((parent (output-record-pare...
6dfcc36a7565278d868f125e5b1d95683829a9b12012161cf285752017fb6e28
camlp5/camlp5
diff.mli
(* camlp5r *) (* diff.mli,v *) Copyright ( c ) INRIA 2007 - 2017 * Differences between two arrays . value f : array 'a -> array 'a -> (array bool * array bool); * [ Diff.f a1 a2 ] returns a couple of two arrays of booleans [ ( d1 , d2 ) ] . [ d1 ] has the same size as [ a1 ] . [ d2 ] has the same si...
null
https://raw.githubusercontent.com/camlp5/camlp5/15e03f56f55b2856dafe7dd3ca232799069f5dda/lib/diff.mli
ocaml
camlp5r diff.mli,v
Copyright ( c ) INRIA 2007 - 2017 * Differences between two arrays . value f : array 'a -> array 'a -> (array bool * array bool); * [ Diff.f a1 a2 ] returns a couple of two arrays of booleans [ ( d1 , d2 ) ] . [ d1 ] has the same size as [ a1 ] . [ d2 ] has the same size as [ a2 ] . [ d1.(i ...
b77d8f54e7e6dec79c8df7e099e269a0b8cffb454377b1201e98bbb5bab96553
tommaisey/aeon
pv-max.help.scm
;; (pv-max bufferA bufferB)
null
https://raw.githubusercontent.com/tommaisey/aeon/80744a7235425c47a061ec8324d923c53ebedf15/libs/third-party/sc3/rsc3/help/ugen/fft/pv-max.help.scm
scheme
(pv-max bufferA bufferB)
ed1cbe31b7e0005e17d68745ffb1458883ab7966a17cdc4df273bd5858f34f40
CloudI/CloudI
examples_SUITE.erl
Copyright ( c ) 2016 - 2017 , < > %% %% 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 PROVIDED " AS IS " AND THE AUTHOR DISC...
null
https://raw.githubusercontent.com/CloudI/CloudI/3e45031c7ee3e974ead2612ea7dd06c9edf973c9/src/external/cloudi_x_cowboy/test/examples_SUITE.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 ) 2016 - 2017 , < > 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(examples_SUITE). -compile(export_all). -compi...
a9f6dbcf71725ea2c0d1475d48f1de26067b404730c92a90a02bb55c7ab6b4fb
Octachron/phantom_algebra
type_functions.ml
* Type - level functions Skim through this section when reading the documentation for the first ( second , third and … ) time Skim through this section when reading the documentation for the first (second, third and …) time *) * { 2 Small integer type representation } type 'a z = [`zero of 'a]...
null
https://raw.githubusercontent.com/Octachron/phantom_algebra/9733dad74e010642bdd500afe987440558d5608b/src/type_functions.ml
ocaml
scalar * scalar ⇒ scalar scalar * matrix('dim) ⇒ matrix('dim) matrix('dim) * scalar⇒ matrix('dim) matrix('dim) * vector('dim)⇒ vector('dim) matrix('dim) * matrix('dim)⇒ matrix('dim) scalar broadcasting * (x,y,z,_ ) div computes the rank of x * y and put the result inside z * (x,y,z,_ ) diff computes th...
* Type - level functions Skim through this section when reading the documentation for the first ( second , third and … ) time Skim through this section when reading the documentation for the first (second, third and …) time *) * { 2 Small integer type representation } type 'a z = [`zero of 'a]...
40de3d0341a4c1eab675fa3142d08aa04fe1716501b1c73bd72418989c6ea359
tanakh/ICFP2011
SittingDuck.hs
{-# OPTIONS -Wall #-} import Control.Monad import LTG import System.Environment skip :: IO () skip = do _ <- getLine _ <- getLine _ <- getLine return () main :: IO () main = do side <- fmap (read . head) getArgs when (side == (1::Int)) skip play play :: IO () play = do I $> 0 skip play
null
https://raw.githubusercontent.com/tanakh/ICFP2011/db0d670cdbe12e9cef4242d6ab202a98c254412e/nushio/SittingDuck.hs
haskell
# OPTIONS -Wall #
import Control.Monad import LTG import System.Environment skip :: IO () skip = do _ <- getLine _ <- getLine _ <- getLine return () main :: IO () main = do side <- fmap (read . head) getArgs when (side == (1::Int)) skip play play :: IO () play = do I $> 0 skip play
78e5bfbccad039174dafa237d05729786313b9cc2a38ccef0a143dd8bf7ab0bd
flavioc/cl-hurd
io-set-some-openmodes.lisp
(in-package :hurd-translator) (def-io-interface :io-set-some-openmodes ((port port) (new-flags open-flags)) (with-lookup protid port (setf (flags (open-node protid)) (enable-flags (flags (open-node protid)) (only-flags new-flags +honore...
null
https://raw.githubusercontent.com/flavioc/cl-hurd/982232f47d1a0ff4df5fde2edad03b9df871470a/translator/interfaces/io-set-some-openmodes.lisp
lisp
(in-package :hurd-translator) (def-io-interface :io-set-some-openmodes ((port port) (new-flags open-flags)) (with-lookup protid port (setf (flags (open-node protid)) (enable-flags (flags (open-node protid)) (only-flags new-flags +honore...
99ece3dd58bac364db0b9ab282e7811e68660fcd2bfee32c5d7405436b8d63d3
edsko/tracetree
Assoc.hs
# LANGUAGE CPP # -- | Association lists -- -- Intended to be double imported: -- -- > import Debug.Trace.Tree.Assoc > import qualified Debug . Trace . Tree . Assoc as Assoc module Debug.Trace.Tree.Assoc ( Assoc(..) , pattern Singleton ) where import Data.Bifunctor import Data.Functor.Compose {-------------...
null
https://raw.githubusercontent.com/edsko/tracetree/e2cfbd5b48e5dccf82fd98993bf348268eb01004/src/Debug/Trace/Tree/Assoc.hs
haskell
| Association lists Intended to be double imported: > import Debug.Trace.Tree.Assoc ------------------------------------------------------------------------------ Main datatype ------------------------------------------------------------------------------ ---------------------------------------------------------...
# LANGUAGE CPP # > import qualified Debug . Trace . Tree . Assoc as Assoc module Debug.Trace.Tree.Assoc ( Assoc(..) , pattern Singleton ) where import Data.Bifunctor import Data.Functor.Compose newtype Assoc k v = Assoc { assocList :: [(k, v)] } deriving (Show, Eq) pattern Singleton :: k -> v -> Assoc ...
c1d9bb64554613be469483e3274165abc7c093a40f0341711ab147c09a924480
mogenslund/liq2
spacemacs_mode.cljc
(ns liq2.modes.spacemacs-mode (:require [clojure.string :as str] [liq2.editor :as editor :refer [apply-to-buffer switch-to-buffer get-buffer]] [liq2.buffer :as buffer] [liq2.util :as util])) ;; (defn add-description [keys description] (swap! editor/state assoc-in...
null
https://raw.githubusercontent.com/mogenslund/liq2/66a323a75804154ea51c3ff9d3c23cbd26c9d24d/src/liq2/modes/spacemacs_mode.cljc
clojure
(ns liq2.modes.spacemacs-mode (:require [clojure.string :as str] [liq2.editor :as editor :refer [apply-to-buffer switch-to-buffer get-buffer]] [liq2.buffer :as buffer] [liq2.util :as util])) (defn add-description [keys description] (swap! editor/state assoc-in ...
045c98a830c3e27d30630850bfe522d92345990c7d431db3c4076da528b88a55
aloiscochard/sarsi
Client.hs
module NVIM.Client where import Control.Concurrent.Async (Async, async, wait) import Control.Concurrent.STM (STM, atomically) import Control.Concurrent.STM.TBQueue (TBQueue, readTBQueue, writeTBQueue) import Control.Concurrent.STM.TMVar (newEmptyTMVarIO, putTMVar, takeTMVar) import Control.Concurrent.STM.TVar (modifyT...
null
https://raw.githubusercontent.com/aloiscochard/sarsi/2dbdee73c528426111cbc5e96e9e645b15494a82/sarsi-nvim/NVIM/Client.hs
haskell
Asynchronous client Helpers to run a command synchronously
module NVIM.Client where import Control.Concurrent.Async (Async, async, wait) import Control.Concurrent.STM (STM, atomically) import Control.Concurrent.STM.TBQueue (TBQueue, readTBQueue, writeTBQueue) import Control.Concurrent.STM.TMVar (newEmptyTMVarIO, putTMVar, takeTMVar) import Control.Concurrent.STM.TVar (modifyT...
ed535f016b2a9caa5105cd6e126511c742061e2f6529ce8cfc544268314e095c
commercialhaskell/stack
Main.hs
import Control.Monad (when, unless) import StackTest import System.Directory (getCurrentDirectory) import Data.List (isPrefixOf) main :: IO () main = if isWindows then do pure () else do stackCheckStdout ["ls", "dependencies", "tree"] $ \stdOut -> do let expected = unlines [ "Packages" ...
null
https://raw.githubusercontent.com/commercialhaskell/stack/dafb4cdace8603837abe9d7c344a40c04fc7824c/test/integration/tests/4101-dependency-tree/Main.hs
haskell
import Control.Monad (when, unless) import StackTest import System.Directory (getCurrentDirectory) import Data.List (isPrefixOf) main :: IO () main = if isWindows then do pure () else do stackCheckStdout ["ls", "dependencies", "tree"] $ \stdOut -> do let expected = unlines [ "Packages" ...
0ba17293b399b41cb8cdcd3d6450e961e5b37717180e1c4a811c54fba9333611
kupl/LearnML
original.ml
type formula = | True | False | Not of formula | AndAlso of (formula * formula) | OrElse of (formula * formula) | Imply of (formula * formula) | Equal of (exp * exp) and exp = Num of int | Plus of (exp * exp) | Minus of (exp * exp) let rec calc (e : exp) : int = match e with | Num n -> n | Plus (n...
null
https://raw.githubusercontent.com/kupl/LearnML/c98ef2b95ef67e657b8158a2c504330e9cfb7700/result/cafe2/formula/sub90/original.ml
ocaml
type formula = | True | False | Not of formula | AndAlso of (formula * formula) | OrElse of (formula * formula) | Imply of (formula * formula) | Equal of (exp * exp) and exp = Num of int | Plus of (exp * exp) | Minus of (exp * exp) let rec calc (e : exp) : int = match e with | Num n -> n | Plus (n...
b73b4cf66dbea0c1fd5aa4cc21ba665f2954437c20c8c5085fb30dfb1b10a180
choener/ADPfusion
Palindrome.hs
# LANGUAGE TemplateHaskell # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeOperators # {-# LANGUAGE BangPatterns #-} # LANGUAGE NoMonomorphismRestriction # # LANGUAGE RecordWildCards # module ADP.Fusion.Examples.Palindrome where import Data.Vector.Fusion.Stream.Monadic (Stream (..))...
null
https://raw.githubusercontent.com/choener/ADPfusion/fcbbf05d0f438883928077e3d8a7f1cbf8c2e58d/src/Palindrome.hs
haskell
# LANGUAGE BangPatterns # makeAlgebraProduct ''SignatureT gPalindrome : : Signature m x - > Empty - > Char - > tbl - > ( tbl , Subword - > m x ) gPalindrome :: Signature m x -> Empty -> Char -> tbl -> (tbl, Subword -> m x) # INLINE gPalindrome # # INLINE (<**) # hsnd <- h y phfs # INLINE (***) #
# LANGUAGE TemplateHaskell # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeOperators # # LANGUAGE NoMonomorphismRestriction # # LANGUAGE RecordWildCards # module ADP.Fusion.Examples.Palindrome where import Data.Vector.Fusion.Stream.Monadic (Stream (..)) import qualified Data.Vector....
fedc5f842dcc0b77345e066f56ee6e67b83ef7e321f47e1dbaaca7d55d6a7748
evincarofautumn/Ward
Types.hs
# LANGUAGE DeriveFoldable # # LANGUAGE DeriveFunctor # # LANGUAGE DeriveGeneric # {-# LANGUAGE DeriveTraversable #-} # LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} module Types where import Algebra.Algebra import Control.Concurrent.Ch...
null
https://raw.githubusercontent.com/evincarofautumn/Ward/a2ebe86cbcf05d98e59eafe0b9695cd0e10fec60/src/Types.hs
haskell
# LANGUAGE DeriveTraversable # # LANGUAGE OverloadedStrings # * ------------------------------------------------------------------------------ Permissions ------------------------------------------------------------------------------ | A permission is a label on a function describing the operations it's allowed to ...
# LANGUAGE DeriveFoldable # # LANGUAGE DeriveFunctor # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # module Types where import Algebra.Algebra import Control.Concurrent.Chan (Chan, writeChan) import Control.Monad.IO.Class (MonadIO(..)) impor...
3546b528139a0e6ed9d0eb557bb4cbec0771b27f7221b6e428d6682d2a31168d
cbiffle/ruckus
radial-repeat.rkt
#lang ruckus (radial-repeat 9 (translate '[300 0 0] (sphere 50)))
null
https://raw.githubusercontent.com/cbiffle/ruckus/62cd4a00837783a88a007c2d5979909a4e86ca0f/ex/radial-repeat.rkt
racket
#lang ruckus (radial-repeat 9 (translate '[300 0 0] (sphere 50)))
13fdbae00ee5cee3dd340ed8bec9e4d44481f628ea9159d727414e23385b83bf
soegaard/sketching
mouse-functions.rkt
#lang sketching ; -docs/blob/master/content/examples/Basics/Input/MouseFunctions/MouseFunctions.pde ; Mouse Functions. ; Click on the box and drag it across the screen. (define bx 0) ; center of box (define by 0) (define box-size 75) ; box radius (define locked? #f) (define x-offset 0) ; mouse...
null
https://raw.githubusercontent.com/soegaard/sketching/94e114ac6e92ede3b85481df755b673be24b226e/sketching-doc/sketching-doc/manual-examples/basics/input/mouse-functions.rkt
racket
-docs/blob/master/content/examples/Basics/Input/MouseFunctions/MouseFunctions.pde Mouse Functions. Click on the box and drag it across the screen. center of box box radius mouse position relative to center of box
#lang sketching (define by 0) (define locked? #f) (define y-offset 0) (define (setup) (size 640 360) (:= bx (/ width 2.)) (:= by (/ width 2.)) (rect-mode 'radius)) (define (in-the-box? x y) (and (< (- bx box-size) x (+ bx box-size)) (< (- by box-size) y (+ by box-size)))) (def...
db47a53ea5a8cdb68f2c8358edabd90fbcc5d2f9e639925fae0b24ebf1520b1c
mfelleisen/RacketSchool
shared.rkt
#lang at-exp racket (provide goals ;; bulletize goals ntt ;; nested tt common ;; where are the common definitions? resource ;; pull along a file/directory (for-label (all-from-out redex)) (for-label (all-from-out racket)) (all-from-out "Exercise/ex.rkt" scribble/eval racket/sandbox ...
null
https://raw.githubusercontent.com/mfelleisen/RacketSchool/ada599f31d548a538a37d998b32d80aa881d699a/Plan/shared.rkt
racket
bulletize goals nested tt where are the common definitions? pull along a file/directory ----------------------------------------------------------------------------- @list[@itemlist[ x ... ]]]]}) % %
#lang at-exp racket (provide (for-label (all-from-out redex)) (for-label (all-from-out racket)) (all-from-out "Exercise/ex.rkt" scribble/eval racket/sandbox scribble/core scriblib/figure)) (require "Exercise/ex.rkt" (for-label redex) (for-label racket) scribble/manual scribble/core...
f06055c45f571176d0445099ca5f7bad05493233af45c908ec13e96821a183bf
weavejester/flupot
dom.cljs
(ns flupot.dom (:refer-clojure :exclude [map meta time]) (:require-macros [flupot.dom :as dom]) (:require cljsjs.react [clojure.string :as str] [flupot.core :as flupot])) (def ^:private attr-opts (dom/generate-attr-opts)) (defn- fix-class [v] (if (sequential? v) (str/join " " (cl...
null
https://raw.githubusercontent.com/weavejester/flupot/59f96a563436589d1f41fe74192bbbb0f1d25a5e/src/flupot/dom.cljs
clojure
(ns flupot.dom (:refer-clojure :exclude [map meta time]) (:require-macros [flupot.dom :as dom]) (:require cljsjs.react [clojure.string :as str] [flupot.core :as flupot])) (def ^:private attr-opts (dom/generate-attr-opts)) (defn- fix-class [v] (if (sequential? v) (str/join " " (cl...
d02905d5e61ee3048bb5e6b9c049a5d939ce816e42fa429f62e94b936011e842
input-output-hk/marlowe-cardano
Server.hs
# LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE RankNTypes #-} # LANGUAGE ViewPatterns # # OPTIONS_GHC -Wno - orphans # # LANGUAGE TypeFamilies # module Language.Marlowe.Runtime.Transaction.Server w...
null
https://raw.githubusercontent.com/input-output-hk/marlowe-cardano/bc9a0325f13b886e90ea05196ffb70a46c2ab095/marlowe-runtime/tx/Language/Marlowe/Runtime/Transaction/Server.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes # Run the job in a new thread
# LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ViewPatterns # # OPTIONS_GHC -Wno - orphans # # LANGUAGE TypeFamilies # module Language.Marlowe.Runtime.Transaction.Server where import Cardano.Api ( AddressInEra(..) , A...
bcaa406a85bb697e743f53ac9ceeb8e0e57cbab5bb3c2fc986e486d42df83b70
Helium4Haskell/helium
NoTypeDef.hs
module NoTypeDef where toplevel = 3 f :: Int f = let local = 5 in local g :: a -> a g x = let monomorph = x in x h :: Int h = inWhere where inWhere = 4
null
https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/staticwarnings/NoTypeDef.hs
haskell
module NoTypeDef where toplevel = 3 f :: Int f = let local = 5 in local g :: a -> a g x = let monomorph = x in x h :: Int h = inWhere where inWhere = 4
119e5f55cb655bba169c2b6544328d7c621890d9380c4b23a306043e15d9fdf4
rossberg/1ml
compile.mli
* ( c ) 2014 * (c) 2014 Andreas Rossberg *) val compile : Fomega.env -> Fomega.exp -> Lambda.exp
null
https://raw.githubusercontent.com/rossberg/1ml/028859a6a687d874981f440bdc5be5f8daa4a777/compile.mli
ocaml
* ( c ) 2014 * (c) 2014 Andreas Rossberg *) val compile : Fomega.env -> Fomega.exp -> Lambda.exp
9a524a2e709c30278cf923dd8ed3dd2f403e7d40637909f5ea8e9daccf13c92c
flavioc/cl-hurd
seek.lisp
(in-package :hurd-common) (defcenum seek-type "Possible arguments to lseek/fseek/io-seek." (:seek-set 0) (:seek-cur 1) (:seek-end 2))
null
https://raw.githubusercontent.com/flavioc/cl-hurd/982232f47d1a0ff4df5fde2edad03b9df871470a/common/seek.lisp
lisp
(in-package :hurd-common) (defcenum seek-type "Possible arguments to lseek/fseek/io-seek." (:seek-set 0) (:seek-cur 1) (:seek-end 2))
64f695f58a2c444ef1921ac8c4a25c5056fd470ec3e84481c09944f2995dc290
tiensonqin/lymchat
util.clj
(ns api.schema.util (:require [api.util :refer [strip-id]] [clojure.string :as str] [schema.core :as s])) (defn optional [schema] (some->> schema (map (fn [[k v]] [(s/optional-key k) v]) ) (into {}))) (defn part "When schema used for update, we o...
null
https://raw.githubusercontent.com/tiensonqin/lymchat/824026607d30c12bc50afb06f677d1fa95ff1f2f/api/src/api/schema/util.clj
clojure
(ns api.schema.util (:require [api.util :refer [strip-id]] [clojure.string :as str] [schema.core :as s])) (defn optional [schema] (some->> schema (map (fn [[k v]] [(s/optional-key k) v]) ) (into {}))) (defn part "When schema used for update, we o...
425772dde4108fdec1ec616826a46bc7e526512fe58bb8753804a17e5f008fc7
jumarko/clojure-experiments
case.clj
(ns clojure-experiments.case "Various experiments with `clojure.core/case`. It's a macro that can be surprising, since the test expressions are supposed to be compile-time literals.") ;; clojure pills screencast (case 1 (inc 0) "1" (dec 1) "0" :default) ;; this doesn't give you what you think! (def one 1) (cas...
null
https://raw.githubusercontent.com/jumarko/clojure-experiments/6dc84abe392862854a42ff860807557efa6d2c8e/src/clojure_experiments/case.clj
clojure
clojure pills screencast this doesn't give you what you think! => :not-one it doesn't work even if you make the def a constant? LiSP slack: => :else => :else => :else => :else this is explained in the docstring: Note that since lists are used to group multiple constants that map to the same expres...
(ns clojure-experiments.case "Various experiments with `clojure.core/case`. It's a macro that can be surprising, since the test expressions are supposed to be compile-time literals.") (case 1 (inc 0) "1" (dec 1) "0" :default) (def one 1) (case 1 one :one :not-one) (case 'one one :one :not-one) = > :...
cb4acd9caef9a1eb26ff788729629b06cb3eac7f08a9c388e82e063c924ba090
serokell/importify
Pretty.hs
-- | This module contains functions to print imports -- preserving original formatting. module Importify.Pretty ( printLovelyImports ) where import Universum import Control.Arrow ((&&&)) import Data.Text (strip) import Language.Haskell.Exts (Comment (..), ImportDecl (..), SrcSpan (..), SrcSpanInfo (..)...
null
https://raw.githubusercontent.com/serokell/importify/09f31d851b2152ae6ce880b81abc3554ade29f37/src/Importify/Pretty.hs
haskell
| This module contains functions to print imports preserving original formatting. | This function takes range of origin text for import and import declarations into list of lines that should be printed. index of starting line to lines of text find empty and single comment lines add empty and single comment lines...
module Importify.Pretty ( printLovelyImports ) where import Universum import Control.Arrow ((&&&)) import Data.Text (strip) import Language.Haskell.Exts (Comment (..), ImportDecl (..), SrcSpan (..), SrcSpanInfo (..), exactPrint, startLine) import Language.Haskell.Exts.Synt...
c42ea5764e4729eb71d0efea136d7485784c0e224d142ec19806481cebfd97d8
nfrisby/coxswain
T1.hs
-- An empty row can never equal a non-empty row. import Coxswain f :: (Row0 ~ (Row0 .& () .= ())) => () f = () main :: IO () main = return f
null
https://raw.githubusercontent.com/nfrisby/coxswain/bfd5777964a5b4ba64e1bcc4cf18df1c9d8fc558/coxswain/test/ill-typed/T1.hs
haskell
An empty row can never equal a non-empty row.
import Coxswain f :: (Row0 ~ (Row0 .& () .= ())) => () f = () main :: IO () main = return f
2fbe1e0465279b5e8931f773896c13fbd3914f506bd40c1b7631d1bc20737ed4
thieman/sandbox-in-docker
docker.clj
(ns sandbox.docker (:require [clojure.string :as string] [clojure.java.io :as io] [clojure.tools.logging :refer [debug info warn]] [clojure.java.shell :as shell] [clojure.core.async :refer [go go-loop chan sliding-buffer <! >! timeout alts!]] [com.keminglabs...
null
https://raw.githubusercontent.com/thieman/sandbox-in-docker/5f2e7534aa6b723d4ffcf0963c31fb52a7380b82/src/sandbox/docker.clj
clojure
(ns sandbox.docker (:require [clojure.string :as string] [clojure.java.io :as io] [clojure.tools.logging :refer [debug info warn]] [clojure.java.shell :as shell] [clojure.core.async :refer [go go-loop chan sliding-buffer <! >! timeout alts!]] [com.keminglabs...
ad7b6961e90d87ba84781f122b516475ead50b8eb9b9b286a34e268fc4792b84
zotonic/zotonic
filter_append.erl
@author < > 2010 @doc ' append ' filter , concatenate two values as lists . Copyright 2010 %% 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 %% %% Unles...
null
https://raw.githubusercontent.com/zotonic/zotonic/852f627c28adf6e5212e8ad5383d4af3a2f25e3f/apps/zotonic_mod_base/src/filters/filter_append.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing perm...
@author < > 2010 @doc ' append ' filter , concatenate two values as lists . Copyright 2010 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(filter_append). -export([append/3]). append(Input, undefin...
36590b6e5c552def2d7b26e4d26cdbbdc074dc6503fd2e06ca410f11613fbac1
TorXakis/TorXakis
SolveDefs.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/solve/src/SolveDefs.hs
haskell
----------------------------------------------------------------------------------------- -- Module SolveDefs : Some Definitions for Solving ----------------------------------------------------------------------------------------- -- -----------------------------------------------------------------------------...
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. -} # LANGUAGE FlexibleInstances # modul...
1a349660ff72f4c85f42f0e68f80a4baad25a1ea28ddb29e7dd5b2345fb75049
xtdb/xtdb
common.cljs
(ns xtdb.ui.common (:require [goog.string :as gstring] [goog.string.format] [cljs.reader :as reader] [clojure.pprint :as pprint] [clojure.string :as string] [xtdb.ui.navigation :as navigation] [reitit.frontend :as reitit] [reitit.frontend.easy :as rfe] [tick.alpha.api :as t] [tick.format...
null
https://raw.githubusercontent.com/xtdb/xtdb/e2f51ed99fc2716faa8ad254c0b18166c937b134/modules/http-server/src-cljs/xtdb/ui/common.cljs
clojure
(ns xtdb.ui.common (:require [goog.string :as gstring] [goog.string.format] [cljs.reader :as reader] [clojure.pprint :as pprint] [clojure.string :as string] [xtdb.ui.navigation :as navigation] [reitit.frontend :as reitit] [reitit.frontend.easy :as rfe] [tick.alpha.api :as t] [tick.format...
87bdac5aa799f3dbca69d3d08c4bec4cdfbb09555e7b9fbb37a3e9d2a0e998f8
schuster/racket-irc
disconnect-test.rkt
#lang racket ;; Connects, joins a channel, and disconnects soon after to check for any errors on disconnecting (require irc racket/async-channel) (define-values (conn ready) (irc-connect "irc.libera.chat" 6667 "rackbot" "rbot" "Racket Bot" #:return-eof #t)) (sync ready) (irc-join-channel conn "##racketi...
null
https://raw.githubusercontent.com/schuster/racket-irc/ba160652e59b57e132ff9155509295484abe656b/irc/examples/disconnect-test.rkt
racket
Connects, joins a channel, and disconnects soon after to check for any errors on disconnecting
#lang racket (require irc racket/async-channel) (define-values (conn ready) (irc-connect "irc.libera.chat" 6667 "rackbot" "rbot" "Racket Bot" #:return-eof #t)) (sync ready) (irc-join-channel conn "##racketirctest") (define incoming (irc-connection-incoming conn)) (thread (lambda () (sleep 15) (irc-qui...
dfd3454d798414d2a0b870a9c9858ef947b6fba9fb1cabf051b95de71de31e03
tsloughter/kuberl
kuberl_v1_topology_selector_label_requirement.erl
-module(kuberl_v1_topology_selector_label_requirement). -export([encode/1]). -export_type([kuberl_v1_topology_selector_label_requirement/0]). -type kuberl_v1_topology_selector_label_requirement() :: #{ 'key' := binary(), 'values' := list() }. encode(#{ 'key' := Key, 'values' := Values ...
null
https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_v1_topology_selector_label_requirement.erl
erlang
-module(kuberl_v1_topology_selector_label_requirement). -export([encode/1]). -export_type([kuberl_v1_topology_selector_label_requirement/0]). -type kuberl_v1_topology_selector_label_requirement() :: #{ 'key' := binary(), 'values' := list() }. encode(#{ 'key' := Key, 'values' := Values ...
1df9415418bc9e264efc12b4e17350f06f033270fa19d0000c2c7cece0c7e150
anoma/juvix
Keywords.hs
module Juvix.Compiler.Core.Keywords ( module Juvix.Compiler.Core.Keywords, module Juvix.Data.Keyword, module Juvix.Data.Keyword.All, ) where import Juvix.Data.Keyword import Juvix.Data.Keyword.All ( kwAny, kwAssign, kwBind, kwBuiltin, kwCase, kwColon, kwComma, kwConstr, kw...
null
https://raw.githubusercontent.com/anoma/juvix/fab40c6c9932cc12592fbacc54fac1ddcd3b2228/src/Juvix/Compiler/Core/Keywords.hs
haskell
module Juvix.Compiler.Core.Keywords ( module Juvix.Compiler.Core.Keywords, module Juvix.Data.Keyword, module Juvix.Data.Keyword.All, ) where import Juvix.Data.Keyword import Juvix.Data.Keyword.All ( kwAny, kwAssign, kwBind, kwBuiltin, kwCase, kwColon, kwComma, kwConstr, kw...
a8bf2c652356675dffa7a5739aee6c485a2647e34aaccda73a27d87e3dddfc64
exoscale/clojure-kubernetes-client
v2beta1_object_metric_status.clj
(ns clojure-kubernetes-client.specs.v2beta1-object-metric-status (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1-label-selector :refer :all] [clojure-kubernetes-client.specs.v2beta1-cross-version-object-reference :refer :all] ...
null
https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/v2beta1_object_metric_status.clj
clojure
(ns clojure-kubernetes-client.specs.v2beta1-object-metric-status (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1-label-selector :refer :all] [clojure-kubernetes-client.specs.v2beta1-cross-version-object-reference :refer :all] ...
53a6693754edc9326304a386d4ddf6446f384523ffacc6044d49b5250ea578e1
mzp/msgpack-ocaml
main.ml
let _ = OUnit.(run_test_tt_main ("conv" >::: [ "conv.ml" >::: ConvTest.tests; ]))
null
https://raw.githubusercontent.com/mzp/msgpack-ocaml/acfbfcbcc62a4f69f9fd024e28e42086048a9f16/test/conv/main.ml
ocaml
let _ = OUnit.(run_test_tt_main ("conv" >::: [ "conv.ml" >::: ConvTest.tests; ]))
93bedc862a4d22951bfac69bc97e37c69765691de50f510bcb1972cf044acacd
McCLIM/McCLIM
rectangle.lisp
;;; --------------------------------------------------------------------------- ;;; License: LGPL-2.1+ (See file 'Copyright' for details). ;;; --------------------------------------------------------------------------- ;;; ( c ) copyright 2006 - 2008 < > ;;; ;;; -------------------------------------------------...
null
https://raw.githubusercontent.com/McCLIM/McCLIM/7c890f1ac79f0c6f36866c47af89398e2f05b343/Libraries/Drei/rectangle.lisp
lisp
--------------------------------------------------------------------------- License: LGPL-2.1+ (See file 'Copyright' for details). --------------------------------------------------------------------------- --------------------------------------------------------------------------- Implementation of rectangle...
( c ) copyright 2006 - 2008 < > (in-package #:drei-core) (defvar *killed-rectangle* nil "The killed rectangle as a list of lines.") (defun map-rectangle-lines (view function start end) "Map over lines in rectangle, calling `function' for each line. The rectangle is defined by the marks `start' and `end'. ...
0bd570a5dac7af2d04814a4b22c46e71e0eb2eef8cb155c37cfc237b5522c55d
c4-project/c4f
param_map.ml
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
null
https://raw.githubusercontent.com/c4-project/c4f/8939477732861789abc807c8c1532a302b2848a5/lib/fuzz/test/param_map.ml
ocaml
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
a96d7ceb9a3dff57b17a6c61674a97211f09d7f40f483732c76522b2a96b0930
cl-axon/cl-aima
cltl2.lisp
;;; File: cltl2.lisp -*- Mode: Lisp; Syntax: Common-Lisp; -*- Compatibility package for ' Common Lisp the Language : 2nd edition ' Functions and macros in CLtL2 that are not in the first edition of the book , and thus not in some old implementations of Common Lisp . ;; Removed allegro package-lock override cod...
null
https://raw.githubusercontent.com/cl-axon/cl-aima/1e6915fa9f3e5f2c6fd75952d674ebec53558d04/utilities/cltl2.lisp
lisp
File: cltl2.lisp -*- Mode: Lisp; Syntax: Common-Lisp; -*- Removed allegro package-lock override code that was here. This implementation does not do the defmacro extensions, Except that it does handle a trailing dot: (x y . z) end define-if-undefined some other types) but not classes. Note that you can still do ...
Compatibility package for ' Common Lisp the Language : 2nd edition ' Functions and macros in CLtL2 that are not in the first edition of the book , and thus not in some old implementations of Common Lisp . (define-if-undefined (defmacro with-simple-restart (restart &rest body) "Like PROGN, except provides...
6ae67ea32bc62e10ce7dbf513f95f0f3338df89ef0437e9e8b23078010aa1a8e
Eduap-com/WordMat
fft-core.lisp
;; -*- Lisp -*- (in-package :maxima-fft) (use-package :maxima) (defun mgetarray (marg) "Return the lisp array which is somehow attached to MARG." (or (and (symbolp marg) (symbol-array (mget marg 'maxima::array))) (and ($listp marg) (make-array ($length marg) :initial-contents (rest marg))) (and (arrayp...
null
https://raw.githubusercontent.com/Eduap-com/WordMat/83c9336770067f54431cc42c7147dc6ed640a339/Windows/ExternalPrograms/maxima-5.45.1/share/maxima/5.45.1/share/numeric/fft-core.lisp
lisp
-*- Lisp -*- I don't check here if this is really a floating point array. For maxima arrays which are symbols this would be no problem since the type is on the property list. On the other hand, for "fast" arrays (i.e. lisp arrays), using ARRAY-ELEMENT-TYPE might not be too useful. This doesn't.) period. (forma...
(in-package :maxima-fft) (use-package :maxima) (defun mgetarray (marg) "Return the lisp array which is somehow attached to MARG." (or (and (symbolp marg) (symbol-array (mget marg 'maxima::array))) (and ($listp marg) (make-array ($length marg) :initial-contents (rest marg))) (and (arrayp marg) marg))) ...
0fc1732ff64679900fd7cb5f4a60d28ad13ba184bacd7824e97c1a56065cfb6c
richmit/mjrcalc
pre-qmci.lisp
;; -*- Mode:Lisp; Syntax:ANSI-Common-LISP; Coding:us-ascii-unix; fill-column:158 -*- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;; @file use-qmci.lisp @author < > ;; @brief Quasi-M...
null
https://raw.githubusercontent.com/richmit/mjrcalc/96f66d030034754e7d3421688ff201f4f1db4833/pre-qmci.lisp
lisp
-*- Mode:Lisp; Syntax:ANSI-Common-LISP; Coding:us-ascii-unix; fill-column:158 -*- @file use-qmci.lisp @brief Quasi-Monte Carlo Integration.@EOL @std Common Lisp Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions a...
@author < > @keywords quasi - monte carlo integration @parblock Copyright ( c ) 2015,2016 , < > All rights reserved . 1 . Redistributions of source code must retain the above copyright notice , this list of conditions , and the following disclaimer . 2 . Redistributions in binary form mu...
3b009c8e72bfb034279cc337e199604d83eac6895dfe39ab44129c43872c50d6
ucsd-progsys/dsolve
matmult-bad.ml
let sub2 data i j = Bigarray.Array2.get data i j let update2 data i j x = Bigarray.Array2.set data i j x let fillar arr2 fill = let d1 = Bigarray.Array2.dim1 arr2 in let d2 = Bigarray.Array2.dim2 arr2 in let rec loop i = let i' = i + 1 in if i < d1 then let rec loopi j = ...
null
https://raw.githubusercontent.com/ucsd-progsys/dsolve/bfbbb8ed9bbf352d74561e9f9127ab07b7882c0c/tests/POPL2008/matmult-bad.ml
ocaml
let sub2 data i j = Bigarray.Array2.get data i j let update2 data i j x = Bigarray.Array2.set data i j x let fillar arr2 fill = let d1 = Bigarray.Array2.dim1 arr2 in let d2 = Bigarray.Array2.dim2 arr2 in let rec loop i = let i' = i + 1 in if i < d1 then let rec loopi j = ...
9a46bb63e4d99414f849124237f5da5d99436773c0570d42b8e30a4288cb17bb
ivanperez-keera/haskanoid
Collisions.hs
-- | A trivial collision subsystem. -- -- Based on the physics module, it determines the side of collision -- between shapes. module Physics.TwoDimensions.Collisions where import Data.VectorSpace import Physics.TwoDimensions.Physics -- * Collision sides -- | Collision side of a rectangle data Side = TopSide | Bottom...
null
https://raw.githubusercontent.com/ivanperez-keera/haskanoid/cb50205bd8e1ec92eae3b689c1e4f3f2c260367d/src/Physics/TwoDimensions/Collisions.hs
haskell
| A trivial collision subsystem. Based on the physics module, it determines the side of collision between shapes. * Collision sides | Collision side of a rectangle | Opposite side during a collision. If A collides with B, the collision sides on A and B are always opposite. | Calculates the collision side of ...
module Physics.TwoDimensions.Collisions where import Data.VectorSpace import Physics.TwoDimensions.Physics data Side = TopSide | BottomSide | LeftSide | RightSide deriving (Eq,Show) oppositeSide :: Side -> Side oppositeSide TopSide = BottomSide oppositeSide BottomSide = TopSide oppositeSide LeftSide = RightS...
85c3c391b250017658ba11f4c6144ba01544d6e28a7796b24adea8a7d4c95239
elaforge/karya
Lily.hs
Copyright 2013 -- This program is distributed under the terms of the GNU General Public -- License 3.0, see COPYING or -3.0.txt -- | Calls that create code events for the lilypond backend. module Derive.C.Lily (library) where import qualified Util.Doc as Doc import qualified Derive.Args as Args import qualified De...
null
https://raw.githubusercontent.com/elaforge/karya/471a2131f5a68b3b10b1a138e6f9ed1282980a18/Derive/C/Lily.hs
haskell
This program is distributed under the terms of the GNU General Public License 3.0, see COPYING or -3.0.txt | Calls that create code events for the lilypond backend. a barline. TODO maybe this should use attach, so it can go on a single note and automatically extend to the end. Lilypond likes to put it above, but...
Copyright 2013 module Derive.C.Lily (library) where import qualified Util.Doc as Doc import qualified Derive.Args as Args import qualified Derive.Call as Call import qualified Derive.Call.Ly as Ly import qualified Derive.Call.Make as Make import qualified Derive.Call.Module as Module import qualified Derive.Call.S...
241c010b9a24101528d7b463dd9e23f3dff74b79800a15018660324410ed06f7
acieroid/scala-am
satOther2-2.scm
(define (phi x1 x2 x3 x4) (and (or x1 (not x2) (not x4)) (or (not x1) (not x2)) (and x4 x2))) (define (try f) (or (f #t) (f #f))) (define (sat-solve-4 pred) (try (lambda (n1) (try (lambda (n2) (try (lambda (n3) (try (lambda (n4) ...
null
https://raw.githubusercontent.com/acieroid/scala-am/13ef3befbfc664b77f31f56847c30d60f4ee7dfe/test/changesBenevolPaper/sat/satOther2-2.scm
scheme
(define (phi x1 x2 x3 x4) (and (or x1 (not x2) (not x4)) (or (not x1) (not x2)) (and x4 x2))) (define (try f) (or (f #t) (f #f))) (define (sat-solve-4 pred) (try (lambda (n1) (try (lambda (n2) (try (lambda (n3) (try (lambda (n4) ...
ac9c86212ed7d335f05f2757a8f995d8981367489772a5a537b600aeebe81fe1
SamB/coq
evar_refiner.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/SamB/coq/8f84aba9ae83a4dc43ea6e804227ae8cae8086b1/proofs/evar_refiner.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** i $Id$ i i i Refinement of existent...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Names open Term open ...
57fa22788d5ba42ec2510c93161091f3e3570ca65fbfcb71133a3f00bd8c2f5b
mirage/irmin
control_file_intf.ml
* Copyright ( c ) 2022 - 2022 Tarides < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS...
null
https://raw.githubusercontent.com/mirage/irmin/ce09bb715c4e9f2b66eb78dec3c38c1de60a5bff/src/irmin-pack/unix/control_file_intf.ml
ocaml
must be last to allow extensions must be last to allow extensions must be last to allow extensions * The same as {!V4.t}, with the following modifications: New fields - [volume_num] stores the number of volumes in the lower layer. Changed fields - Replaced [upgraded_fro...
* Copyright ( c ) 2022 - 2022 Tarides < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS...
ba7c8fe091347301e5d9bc0bd1245adf83c6c78d9cccc34a4a3645aed4400127
haskellfoundation/error-message-index
TupleConstraint.hs
{-# LANGUAGE ConstraintKinds #-} module TupleConstraint where addFromString :: ((Read a, Show a), Num a) => String -> a -> String addFromString x y = show (read x + y)
null
https://raw.githubusercontent.com/haskellfoundation/error-message-index/7dcad9cd5d7b51de61621d6a6eeb0ece68dea539/message-index/messages/GHC-77539/tuple-constraint/after/TupleConstraint.hs
haskell
# LANGUAGE ConstraintKinds #
module TupleConstraint where addFromString :: ((Read a, Show a), Num a) => String -> a -> String addFromString x y = show (read x + y)
9a51e435e7f2084a88ff416a41d57b6e2e2cc5c5a38bfe31e8fc760f6f249114
simongray/sino.study
core.cljs
(ns sinostudy.core (:require [reagent.core :as reagent] [re-frame.core :as rf] [day8.re-frame.http-fx] [secretary.core :as secretary] [sinostudy.navigation.routes :as routes] [sinostudy.events.core :as events] [sinostudy.events.actions :as action...
null
https://raw.githubusercontent.com/simongray/sino.study/b1b2954011841bc96449a1aa61eb51656930aee5/src/sinostudy/core.cljs
clojure
Start the CLJS app from current page in the address bar. The routing mostly takes place on the frontend, so the app needs to orient itself on hard page loads. The input bar needs to have immediate focus on page load. Intercepts all key presses in the document. Only defers from normal operation in the action-choos...
(ns sinostudy.core (:require [reagent.core :as reagent] [re-frame.core :as rf] [day8.re-frame.http-fx] [secretary.core :as secretary] [sinostudy.navigation.routes :as routes] [sinostudy.events.core :as events] [sinostudy.events.actions :as action...
22d0b271cf962cd6e5bc5dda021992426f0b8f457ba66128e666fb62da6c6b72
racket/gui
switchable-button.rkt
#lang racket/base (require racket/gui/base racket/class "private/panel-wob.rkt") (provide switchable-button%) (define gap 4) ;; space between the text and the icon (define margin 2) (define w-circle-space 6) (define h-circle-space 6) ;; extra space outside the bitmap, ;; but inside the mouse highlig...
null
https://raw.githubusercontent.com/racket/gui/3025166115abdd519290447f9a9d47c048be6c10/gui-lib/mrlib/switchable-button.rkt
racket
space between the text and the icon extra space outside the bitmap, but inside the mouse highlighting (on the right) position the floating window Draw background. Use alpha blending if it can work, otherwise fall back to a suitable color. button with a callback that enables and disables like the debugger's step...
#lang racket/base (require racket/gui/base racket/class "private/panel-wob.rkt") (provide switchable-button%) (define margin 2) (define w-circle-space 6) (define h-circle-space 6) (define rhs-pad 2) (define half-gray (make-object color% 127 127 127)) (define one-fifth-gray (make-object color% 200 2...
881520574a8829060af383a36cac5bcd6e647225518726c248ec91c5e4f351ac
richmit/mjrcalc
use-pwf.lisp
;; -*- Mode:Lisp; Syntax:ANSI-Common-LISP; Coding:us-ascii-unix; fill-column:158 -*- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;; @file use-pwf.lisp @author < > @brief PieceWis...
null
https://raw.githubusercontent.com/richmit/mjrcalc/0c5bf50a8fe3d9bc6e2636d6629138271b99c1ae/use-pwf.lisp
lisp
-*- Mode:Lisp; Syntax:ANSI-Common-LISP; Coding:us-ascii-unix; fill-column:158 -*- @file use-pwf.lisp @std Common Lisp @see Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: and/or other materia...
@author < > @brief PieceWise Function stuff.@EOL @keywords @parblock Copyright ( c ) 2016 , < > All rights reserved . 1 . Redistributions of source code must retain the above copyright notice , this list of conditions , and the following disclaimer . 2 . Redistributions in binary ...
991a0ed203697d16726a8c7f14eadc630ab4a7c6f4a0c6d8f52f221c757401a1
EFanZh/EOPL-Exercises
exercise-4.27.rkt
#lang eopl Exercise 4.27 [ ★ ★ ] Extend the language of the preceding exercise to include subroutines . In our usage a subroutine ;; is like a procedure, except that it does not return a value and its body is a statement, rather than an expression. ;; Also, add subroutine calls as a new kind of statement and extend ...
null
https://raw.githubusercontent.com/EFanZh/EOPL-Exercises/11667f1e84a1a3e300c2182630b56db3e3d9246a/solutions/exercise-4.27.rkt
racket
is like a procedure, except that it does not return a value and its body is a statement, rather than an expression. Also, add subroutine calls as a new kind of statement and extend the syntax of blocks so that they may be used to declare both procedures and subroutines. How does this affect the denoted and expressed...
#lang eopl Exercise 4.27 [ ★ ★ ] Extend the language of the preceding exercise to include subroutines . In our usage a subroutine (define the-lexical-spec '([whitespace (whitespace) skip] [comment ("%" (arbno (not #\newline))) skip] [identifier (letter (arbno (or letter digit "_" "-" "?"))) symbol] [...
63bafc7f86c1fcd7b88dddc4c7b60f6b0eeb83017239395792a3eb1b7c393657
SNePS/SNePS2
svarset.lisp
-*- Mode : Lisp ; Syntax : Common - Lisp ; Package : SNEPS ; Base : 10 -*- Copyright ( C ) 1984 - -2013 Research Foundation of ;; State University of New York Version : $ I d : svarset.lisp , v 1.2 2013/08/28 19:07:25 shapiro Exp $ ;; This file is part of SNePS. $ BEGIN LICENSE$ ...
null
https://raw.githubusercontent.com/SNePS/SNePS2/d3862108609b1879f2c546112072ad4caefc050d/sneps/ds/svarset.lisp
lisp
Syntax : Common - Lisp ; Package : SNEPS ; Base : 10 -*- State University of New York This file is part of SNePS. you may not use this file except in compliance with the License. You may obtain a copy of the License at . edu/sneps/Downloads/ubpl.pdf. or implied. See the License for t...
Copyright ( C ) 1984 - -2013 Research Foundation of Version : $ I d : svarset.lisp , v 1.2 2013/08/28 19:07:25 shapiro Exp $ $ BEGIN LICENSE$ The contents of this file are subject to the University at Software distributed under the License is distributed on an " AS IS " basis , WITHOUT WARRANTY OF ANY ...
22581ac44fb0a5a156fb8acca21de7d85a04d3bc427e37a88de5b6744157b3e4
plum-umd/fundamentals
lon.rkt
#lang class/0 ;; A LoN implements: ;; - length : -> Number ;; Compute the length of this list of numbers ;; - map : [Number -> Number] -> LoN ;; Apply the given function to each element of this list of numbers ;; A (new empty-lon%) implements LoN (define-class empty-lon% ;; length : -> Number ;; Compute the l...
null
https://raw.githubusercontent.com/plum-umd/fundamentals/eb01ac528d42855be53649991a17d19c025a97ad/2/www/lectures/4/lon.rkt
racket
A LoN implements: - length : -> Number Compute the length of this list of numbers - map : [Number -> Number] -> LoN Apply the given function to each element of this list of numbers A (new empty-lon%) implements LoN length : -> Number Compute the length of this empty list of numbers map : [Number -> Number]...
#lang class/0 (define-class empty-lon% (check-expect (send (new empty-lon%) length) 0) (define (length) 0) (check-expect (send (new empty-lon%) map add1) (new empty-lon%)) (define (map f) this)) (define-class cons-lon% (fields first rest) (define (cons-lon-template) ...)) (check-expect ...
ef151d520b73ebac8604cec6344922734f8a4c07cee0eb4bcdf828eaeb09451e
bufferswap/ViralityEngine
dmat4.lisp
(in-package #:cl-user) (defpackage #:vorigin.dmat4 (:local-nicknames (#:com #:vorigin.common) (#:dm2 #:vorigin.dmat2) (#:dm3 #:vorigin.dmat3) (#:dv3 #:vorigin.dvec3) (#:dv4 #:vorigin.dvec4) (#:m4 #:vorigin.mat4) (#:u #:vutils)) (:use #:cl) (:shadow #:= #:+ #:- #:* #:random ...
null
https://raw.githubusercontent.com/bufferswap/ViralityEngine/df7bb4dffaecdcb6fdcbfa618031a5e1f85f4002/support/vorigin/src/types/dmat4.lisp
lisp
Constants
(in-package #:cl-user) (defpackage #:vorigin.dmat4 (:local-nicknames (#:com #:vorigin.common) (#:dm2 #:vorigin.dmat2) (#:dm3 #:vorigin.dmat3) (#:dv3 #:vorigin.dvec3) (#:dv4 #:vorigin.dvec4) (#:m4 #:vorigin.mat4) (#:u #:vutils)) (:use #:cl) (:shadow #:= #:+ #:- #:* #:random ...
b803d08303c9b5f2bba0a5feea92347a163c0fea065967b72b0e96bed1a00c77
samrushing/irken-tdfa
set.scm
;; -*- Mode: Irken -*- ;; create a set interface for the red-black tree. ;; XXX put this in lib/ (define (set/empty) (tree:empty) ) (define set/empty? s -> (eq? s (set/empty)) ) (define (set/size s) (tree/size s)) (define (set/addv s cmp k v) (match (tree/member s cmp k) with (maybe:no) -> (tree...
null
https://raw.githubusercontent.com/samrushing/irken-tdfa/ff56945e371ba7afec884f98a17f291cab083637/set.scm
scheme
-*- Mode: Irken -*- create a set interface for the red-black tree. XXX put this in lib/ remove x, then add a ... make this one nary as well? real-world use of same-fringe! this function 'lifts' a 'cmp' function to a 'set-cmp' function. could avoid the reverse if tree/range went backward, but that would be co...
(define (set/empty) (tree:empty) ) (define set/empty? s -> (eq? s (set/empty)) ) (define (set/size s) (tree/size s)) (define (set/addv s cmp k v) (match (tree/member s cmp k) with (maybe:no) -> (tree/insert s cmp k v) (maybe:yes _) -> s )) (define (set/add s cmp k) (set/addv s cmp k #...
82d8d5e8750a97a658189b18083d376869647b4eca0225923cd5c6fca4861b4f
deepfire/reflex-glfw
Instances.hs
| Module : Reflex . GLFW.Instances Description : A GLFW - b adapter for the Haskell Reflex FRP implementation . Rogue instances , import at your peril . Copyright : ( c ) , 2017 License : BSD-3 Maintainer : _ ( temporarily defunct ) Stability : experimental Portability : Unspecifie...
null
https://raw.githubusercontent.com/deepfire/reflex-glfw/fea5bba609757735aaf8453ae088d954e3a21309/src/Reflex/GLFW/Instances.hs
haskell
# LANGUAGE PackageImports #
| Module : Reflex . GLFW.Instances Description : A GLFW - b adapter for the Haskell Reflex FRP implementation . Rogue instances , import at your peril . Copyright : ( c ) , 2017 License : BSD-3 Maintainer : _ ( temporarily defunct ) Stability : experimental Portability : Unspecifie...
41a543e23b0ad8b219477f61b88bfce0fb71e2a3f1b033cec075322ea347bfdf
pavankumarbn/DroneGUIROS
vector31.lisp
; Auto-generated. Do not edit! (cl:in-package ardrone_autonomy-msg) ;//! \htmlinclude vector31.msg.html (cl:defclass <vector31> (roslisp-msg-protocol:ros-message) ((x :reader x :initarg :x :type cl:float :initform 0.0) (y :reader y :initarg :y :type cl:float :initform 0.0) (...
null
https://raw.githubusercontent.com/pavankumarbn/DroneGUIROS/745320d73035bc50ac4fea2699e22586e10be800/devel/share/common-lisp/ros/ardrone_autonomy/msg/vector31.lisp
lisp
Auto-generated. Do not edit! //! \htmlinclude vector31.msg.html
(cl:in-package ardrone_autonomy-msg) (cl:defclass <vector31> (roslisp-msg-protocol:ros-message) ((x :reader x :initarg :x :type cl:float :initform 0.0) (y :reader y :initarg :y :type cl:float :initform 0.0) (z :reader z :initarg :z :type cl:float :initform 0....
5f48383ff7b29dda3833c5b8f30df2b74e8d33043d0fe7f89373af8b933b67d8
adventuring/tootsville.net
new-commands-20.lisp
new-commands-20.lisp is part of ;;; Copyright © 2008 - 2017 , ; Copyright © 2009,2010 Res Interactive LLC ; Copyright © 2018 - 2021 , the Corporation for Inter - World Tourism and Adventuring ( ciwta.org ) . ;;; This program is Free Software : you can redistribute it and/or modify it u...
null
https://raw.githubusercontent.com/adventuring/tootsville.net/985c11a91dd1a21b77d7378362d86cf1c031b22c/src/infinity/new-commands-20.lisp
lisp
Copyright © 2009,2010 Copyright © 2018 - 2021 , the Corporation for either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or ...
new-commands-20.lisp is part of Inter - World Tourism and Adventuring ( ciwta.org ) . This program is Free Software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as You should have received a copy of the GNU Affero General Public PO ...
1ee56e6a59ce7233abd6be7ceb72c01454a8239dcafaf9b3bd9df1646f7fe77c
BenjaminVanRyseghem/great-things-done
pixabay.cljs
Copyright ( c ) 2015 , . All rights reserved . ; The use and distribution terms for this software are covered by the Eclipse Public License 1.0 ( -1.0.php ) ; which can be found in the file epl-v10.html at the root of this distribution. ; By using this software in any fashion, you are agreeing to be bound by ; t...
null
https://raw.githubusercontent.com/BenjaminVanRyseghem/great-things-done/1db9adc871556a347426df842a4f5ea6b3a1b7e0/src/front/utils/pixabay.cljs
clojure
The use and distribution terms for this software are covered by the which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software.
Copyright ( c ) 2015 , . All rights reserved . Eclipse Public License 1.0 ( -1.0.php ) (ns utils.pixabay (:require [ajax.core :refer [GET POST]] [utils.core :as utils])) (def ^:private api-url "/") (def ^:private empty-inbox-image-size 300) (defn- get-photo-handler [data index on-success] (l...
fd4586ada0e06074c83f4aec74f9e0ba2656e9a8e4ceb84f31f88fc280a2e9ac
HunterYIboHu/htdp2-solution
ex216-render-final.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-beginner-abbr-reader.ss" "lang")((modname ex216-render-final) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor rep...
null
https://raw.githubusercontent.com/HunterYIboHu/htdp2-solution/6182b4c2ef650ac7059f3c143f639d09cd708516/Chapter2/Section13-project-list/ex216-render-final.rkt
racket
about the language level of this file in a form that our tools can easily process. data difinitions (make-worm p d) p represents the current position, and d is a Direction which represent the current moving direction. Direction is (list Number Number) (list h v) h represent the moving speed in horizenal, negative...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-abbr-reader.ss" "lang")((modname ex216-render-final) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (require 2htdp/universe) (require 2htdp/image) ...
aac16edab310c2e4e77e05de87c8c571dd6a6329690586dd0ac1110efb3b244d
nikita-volkov/rebase
Lazy.hs
module Rebase.Control.Monad.Trans.Writer.Lazy ( module Control.Monad.Trans.Writer.Lazy ) where import Control.Monad.Trans.Writer.Lazy
null
https://raw.githubusercontent.com/nikita-volkov/rebase/7c77a0443e80bdffd4488a4239628177cac0761b/library/Rebase/Control/Monad/Trans/Writer/Lazy.hs
haskell
module Rebase.Control.Monad.Trans.Writer.Lazy ( module Control.Monad.Trans.Writer.Lazy ) where import Control.Monad.Trans.Writer.Lazy
883f8693de24762c87df56346acabfff30e525e31a738819d81ba651d81e1d7f
potapenko/playphraseme-site
refresh_token.clj
(ns playphraseme.api.routes.refresh-token (:require [playphraseme.api.middleware.cors :refer [cors-mw]] [playphraseme.api.route-functions.refresh-token.delete-refresh-token :refer [remove-refresh-token-response]] [playphraseme.api.route-functions.refresh-token.gen-new-token :refer [gen-new-tok...
null
https://raw.githubusercontent.com/potapenko/playphraseme-site/d50a62a6bc8f463e08365dca96b3a6e5dde4fb12/src/clj/playphraseme/api/routes/refresh_token.clj
clojure
(ns playphraseme.api.routes.refresh-token (:require [playphraseme.api.middleware.cors :refer [cors-mw]] [playphraseme.api.route-functions.refresh-token.delete-refresh-token :refer [remove-refresh-token-response]] [playphraseme.api.route-functions.refresh-token.gen-new-token :refer [gen-new-tok...
9ad4ec01d20c3c8214504f6f617c483a599d025ab1fb49322bb9fcfcdc0c6853
fourmolu/fourmolu
operator-comments-2-four-out.hs
x = y ++ f g -- commentA -- commentB -- commentC
null
https://raw.githubusercontent.com/fourmolu/fourmolu/1f8903a92c8d5001dc1ec8ecfd4a04a3b61c3283/data/examples/declaration/value/function/operator-comments-2-four-out.hs
haskell
commentA commentB commentC
x = y
3b90097fac39811d41499e9040dd1f6cafc850d3d8705e5a48d9316fcfb23403
waymonad/waymonad
Tall.hs
waymonad A wayland compositor in the spirit of xmonad Copyright ( C ) 2017 This library is free software ; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either version 2.1 of the License , or ( at your op...
null
https://raw.githubusercontent.com/waymonad/waymonad/18ab493710dd54c330fb4d122ed35bc3a59585df/src/Waymonad/Layout/Tall.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE TypeSynonymInstances #
waymonad A wayland compositor in the spirit of xmonad Copyright ( C ) 2017 This library is free software ; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either version 2.1 of the License , or ( at your op...
c5a526dd772d41c90bdb9b17fa023a974243107015214aaf47caa8e04ec405eb
TrustInSoft/tis-interpreter
wutil.ml
Modified by TrustInSoft (**************************************************************************) (* *) This file is part of Frama - C. (* ...
null
https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/plugins/gui/wutil.ml
ocaml
************************************************************************ alternatives) ...
Modified by TrustInSoft This file is part of Frama - C. Copyright ( C ) 2007 - 2015 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Softwa...
c1146a641f50ba1d38f65c0128713b281ebcb281845f61615c86e3d86682e971
ndmitchell/weeder
Library2.hs
# LANGUAGE QuasiQuotes # module Dir.Library2(usedFunction1, reexport1, bob, MyClass3(..), myClass1, foo, (=~=), coerced) where import Dir.Reexport import Dir.QuasiQuoter import Data.Coerce import Dir.CoerceType import Dir.CoerceValue bob = reexport2 `seq` usedFunction1 class MyClass1 a where myClass1 :: a class MyC...
null
https://raw.githubusercontent.com/ndmitchell/weeder/3bc7ee09de6faf34cd60a0f4554aa1baf36f25e8/test/foo/src/Dir/Library2.hs
haskell
# LANGUAGE QuasiQuotes # module Dir.Library2(usedFunction1, reexport1, bob, MyClass3(..), myClass1, foo, (=~=), coerced) where import Dir.Reexport import Dir.QuasiQuoter import Data.Coerce import Dir.CoerceType import Dir.CoerceValue bob = reexport2 `seq` usedFunction1 class MyClass1 a where myClass1 :: a class MyC...
3d181c159cec9ae21c330baf3dc36ac4979d806878e9dc76f5db8ea6b1ac8007
rixed/ramen
fq_name.ml
(* Manually written impostor to fq_name_wire, converting to N.fq. *) open DessserOCamlBackEndHelpers module N = RamenName module Wire = Fq_name_wire.DessserGen module DessserGen = struct type t = N.fq let to_row_binary_with_mask m t p = Wire.to_row_binary_with_mask m (t : N.fq :> string) p let to_row_bina...
null
https://raw.githubusercontent.com/rixed/ramen/95209a2da25f2e985bd1912b32b127dc858f0e0b/src/fq_name.ml
ocaml
Manually written impostor to fq_name_wire, converting to N.fq. Same as above but taking and returning normal pointer instead of * "augmented" pointers:
open DessserOCamlBackEndHelpers module N = RamenName module Wire = Fq_name_wire.DessserGen module DessserGen = struct type t = N.fq let to_row_binary_with_mask m t p = Wire.to_row_binary_with_mask m (t : N.fq :> string) p let to_row_binary t p = Wire.to_row_binary (t : N.fq :> string) p let sersize...
3f2c31c5dba2d4f5498842ec5ab389fb1c901ff942bbaf225bef3373f6430a5a
MrEbbinghaus/fulcro-material-ui-wrapper
lab.cljc
(ns mui.lab (:require [com.fulcrologic.fulcro.algorithms.react-interop :as interop] [mui.x.date-pickers :as date-pickers] ["react" :as react] #?@(:cljs [[com.fulcrologic.fulcro.dom :as dom] ["@mui/material/Autocomplete" :default Autocomplete]]))) (def ^:deprecated localization-provid...
null
https://raw.githubusercontent.com/MrEbbinghaus/fulcro-material-ui-wrapper/841bd024bd336363091dd6c49c6f003f29c44788/src/mui/lab.cljc
clojure
(ns mui.lab (:require [com.fulcrologic.fulcro.algorithms.react-interop :as interop] [mui.x.date-pickers :as date-pickers] ["react" :as react] #?@(:cljs [[com.fulcrologic.fulcro.dom :as dom] ["@mui/material/Autocomplete" :default Autocomplete]]))) (def ^:deprecated localization-provid...
7a501b8de9b26844e3ad54b28940f5990e5bafb2ee9bb265593f09125e783c84
clojure-interop/aws-api
core.clj
(ns core (:refer-clojure :only [require comment defn ->]) (:import )) (require '[com.amazonaws.services.redshift.core])
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.redshift/src/core.clj
clojure
(ns core (:refer-clojure :only [require comment defn ->]) (:import )) (require '[com.amazonaws.services.redshift.core])
bd08021235e4b4816ddf02bb57e0e7accdd53e23395fdb5a227660b4a0de1488
locusmath/locus
morphism_system.clj
(ns locus.algebra.category.system.morphism-system (:require [locus.set.logic.core.set :refer :all] [locus.set.logic.limit.product :refer :all] [locus.set.logic.sequence.object :refer :all] [locus.set.quiver.relation.binary.product :refer :all] [locus.set.mapping.general...
null
https://raw.githubusercontent.com/locusmath/locus/b232579217be4e39458410893827a84d744168e4/src/clojure/locus/algebra/category/system/morphism_system.clj
clojure
for example in homological algebra we use chains of morphisms such as exact sequences and chain common output morphism systems to define coverings of sites which generalize sheaves, and so on. A complete ontology of category theory must include an ontology of morphism systems.
(ns locus.algebra.category.system.morphism-system (:require [locus.set.logic.core.set :refer :all] [locus.set.logic.limit.product :refer :all] [locus.set.logic.sequence.object :refer :all] [locus.set.quiver.relation.binary.product :refer :all] [locus.set.mapping.general...
70bd41e6e9ace5f06b676d8d5f7ae3b6d7b4ac696b25b07a338e75e2abe2dcb9
jrh13/hol-light
rol.ml
(* ---------------------------------------------------------------------- *) (* Util *) (* ---------------------------------------------------------------------- *) (* ---------------------------------------------------------------------- *) (* Real Or...
null
https://raw.githubusercontent.com/jrh13/hol-light/d125b0ae73e546a63ed458a7891f4e14ae0409e2/Rqe/rol.ml
ocaml
---------------------------------------------------------------------- Util ---------------------------------------------------------------------- ---------------------------------------------------------------------- Real Ordered Lists ...
let real_ordered_list = new_recursive_definition list_RECURSION `(real_ordered_list [] <=> T) /\ (real_ordered_list (CONS h t) <=> real_ordered_list t /\ ((t = []) \/ (h < HD t)))`;; let ROL_EMPTY = EQT_ELIM (CONJUNCT1 real_ordered_list);; let ROL_SING = prove_by_refinement( `!x. real_ordered_lis...
cf64bc2d8e79001d45684c715f095de7fb2d307d61dc7f7ee1a14af1ae5259b1
Helium4Haskell/helium
Missing6.hs
main :: String -> () main "hello" = ()
null
https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/staticwarnings/Missing6.hs
haskell
main :: String -> () main "hello" = ()
eafd1fc881001a8ab58167a391411333ef86d9c3648051d961a9867d66ad0ea0
michaelzenz/jecci
table.clj
(ns jecci.utils.dbms.table "A test for table creation" (:refer-clojure :exclude [test]) (:require [clojure.string :as str] [jepsen [client :as client] [generator :as gen] [checker :as checker]] [clojure.core.reducers :as r] [jecci.utils.db...
null
https://raw.githubusercontent.com/michaelzenz/jecci/81ee068601c31a14fe642f93d30223c2a8ced04d/src/jecci/utils/dbms/table.clj
clojure
(ns jecci.utils.dbms.table "A test for table creation" (:refer-clojure :exclude [test]) (:require [clojure.string :as str] [jepsen [client :as client] [generator :as gen] [checker :as checker]] [clojure.core.reducers :as r] [jecci.utils.db...
6bfba8140bdfea84ff946b391ebbda05de661f25525898fd0ce88a20d300f8a1
alanzplus/EOPL
common-test.rkt
#lang eopl (require rackunit "common.rkt") (require rackunit/text-ui) (define common-test (test-suite "list utilities test" (check-equal? (index-of '(a b c) 'a) 0) (check-equal? (index-of '(a b c) 'b) 1) (check-equal? (index-of '(a b c) 'c) 2) (check-equal? (index-of '(a ...
null
https://raw.githubusercontent.com/alanzplus/EOPL/d7b06392d26d93df851d0ca66d9edc681a06693c/EOPL/libs/common-test.rkt
racket
#lang eopl (require rackunit "common.rkt") (require rackunit/text-ui) (define common-test (test-suite "list utilities test" (check-equal? (index-of '(a b c) 'a) 0) (check-equal? (index-of '(a b c) 'b) 1) (check-equal? (index-of '(a b c) 'c) 2) (check-equal? (index-of '(a ...
976388762b3e5de002580860cafbd7e4203be1f39bc4429433fe0396d2b36c35
routineco/ocaml-nanoid
nanoid.mli
* Implementation of { { : } Nano ID } , a tiny , secure , URL - friendly , unique string ID generator popular in the javascript ecosystem . The interface mimics the Javascript interface as closely as possible with a single { ! } entrypoint . Custom alphabets are not yet supported . Bot...
null
https://raw.githubusercontent.com/routineco/ocaml-nanoid/a62cf334afadc6389bdd079a3645e3491e4d99bb/lib/src/nanoid.mli
ocaml
* Implementation of { { : } Nano ID } , a tiny , secure , URL - friendly , unique string ID generator popular in the javascript ecosystem . The interface mimics the Javascript interface as closely as possible with a single { ! } entrypoint . Custom alphabets are not yet supported . Bot...
02ae62a01ad42873170ce5f7a6941b410f27f10a28400ecb6c32e3321aed8769
sneeuwballen/zipperposition
Var.ml
This file is free software , part of Logtk . See file " license " for more details . (** {1 Variable} *) type +'a t = { id: ID.t; ty: 'a; } type 'a var = 'a t let make ~ty id = {ty; id; } let of_string ~ty name = {ty; id=ID.make name; } let makef ~ty msg = CCFormat.ksprintf msg ~f:(of_string ~ty) let gensy...
null
https://raw.githubusercontent.com/sneeuwballen/zipperposition/7f1455fbe2e7509907f927649c288141b1a3a247/src/core/Var.ml
ocaml
* {1 Variable}
This file is free software , part of Logtk . See file " license " for more details . type +'a t = { id: ID.t; ty: 'a; } type 'a var = 'a t let make ~ty id = {ty; id; } let of_string ~ty name = {ty; id=ID.make name; } let makef ~ty msg = CCFormat.ksprintf msg ~f:(of_string ~ty) let gensym ~ty () = {ty; id=I...
0ddedda64d1341af190a3404dc205641850d5347d4e8a3954b95df486ad6a1c3
ipfs-shipyard/cube
cli.clj
(ns cube.cli (:require [com.stuartsierra.component :as c] [cube.system :refer [create-system]] [cube.gui :as gui] [clojure.tools.trace :as trace]) (:gen-class)) (def running-system (atom nil)) (defn get-port "Returns the value of the env var PORT or defaults to port 0" [] ...
null
https://raw.githubusercontent.com/ipfs-shipyard/cube/bd835a35a5273c744cbc415425ffbdb0990901e6/src/cube/cli.clj
clojure
(setup/get-password (:db @live-system)) (setup/completed? (:db @live-system)) Trying to be clever and get all namespaces dynamically but trace-ns is trying to trace the symbol as the actual namespace, instead of the value of the symbol (which is the namespace to trace) (doseq [n (get-cube-namespaces)] (tra...
(ns cube.cli (:require [com.stuartsierra.component :as c] [cube.system :refer [create-system]] [cube.gui :as gui] [clojure.tools.trace :as trace]) (:gen-class)) (def running-system (atom nil)) (defn get-port "Returns the value of the env var PORT or defaults to port 0" [] ...
f8c435e24d4e871f059e16e394b44900bbfe1834da675a7c618214de0b7ab660
nick8325/quickspec
QuickSpec.hs
| The main QuickSpec module . Everything you need to run lives here . -- To run QuickSpec , you need to tell it which functions to test . We call the -- list of functions the /signature/. Here is an example signature, which tells QuickSpec to test the @++@ , @reverse@ and @[]@ functions : -- -- @ -- sig = [ -- ...
null
https://raw.githubusercontent.com/nick8325/quickspec/4cd5f17ef02a9552f9ccaf07e15c140135faca14/src/QuickSpec.hs
haskell
list of functions the /signature/. Here is an example signature, which tells @ sig = [ `con` "++" ((++) :: [`A`] -> [`A`] -> [`A`]), `con` "reverse" (reverse :: [`A`] -> [`A`]), `con` "[]" ([] :: [`A`]) ] @ The `con` function, used above, adds a function to the signature, given its name and ...
| The main QuickSpec module . Everything you need to run lives here . To run QuickSpec , you need to tell it which functions to test . We call the QuickSpec to test the @++@ , @reverse@ and @[]@ functions : You must also declare those instances to QuickSpec , by including them in the You can also use QuickSp...
03e3077cd1c990d4ed1f4da2af5048346c330a6f733a7821effc0a019b8f1565
gwright83/Wheeler
Replacer.hs
-- Replacer.hs -- -- Replace a subexpression with a different one. -- , 18 September 2012 -- module Math.Symbolic.Wheeler.Replacer where import qualified Data.DList as DList import qualified Data.Map as Map import Data.Maybe import Math.Symbolic.Wheeler.Canonicalize import Math.Symbolic.Wheeler.Common import...
null
https://raw.githubusercontent.com/gwright83/Wheeler/cfc8c66f019de92f087cc8157f2a9be22ae26cf7/src/Math/Symbolic/Wheeler/Replacer.hs
haskell
Replace a subexpression with a different one. the use the environment to insert the expression repl into the to expression subj. Take an expression an replace all of the patterns with their values from the match environment. XXX FIXME XXX Doesn't replace all of the patterns. A convenience function to de...
Replacer.hs , 18 September 2012 module Math.Symbolic.Wheeler.Replacer where import qualified Data.DList as DList import qualified Data.Map as Map import Data.Maybe import Math.Symbolic.Wheeler.Canonicalize import Math.Symbolic.Wheeler.Common import Math.Symbolic.Wheeler.Expr import Math.Symbolic.Wheeler.Matc...
f2467e0416f150fbf01bce715670531a3806264fffdf8f2a3feaac798fef3514
dzhus/static-text
doctest-driver.hs
# OPTIONS_GHC -F -pgmF doctest - driver - gen -optF src #
null
https://raw.githubusercontent.com/dzhus/static-text/cd5cbdc8a871c8637e2e7835401552fddb099e20/tests/doctest-driver.hs
haskell
# OPTIONS_GHC -F -pgmF doctest - driver - gen -optF src #
562c99aaac0cf92f035f50e2434f5e1c8a34e5de2804c5a50f18cdf386c6795e
SneakyPeet/p5js-cljs-starter
frame_rate.cljs
(ns p5.components.frame-rate) (defonce *frame-rate-element (atom nil)) (def *refresh? (atom true)) (def refresh-rate 500) (defn- create-frame-rate-element [] (let [e (-> (js/createP "") (.style "font-size" "40px") (.style "position" "fixed") (.style "top" "0px") ...
null
https://raw.githubusercontent.com/SneakyPeet/p5js-cljs-starter/e734f880d2f1b12750fce091290ad02bc68cf201/src/p5/components/frame_rate.cljs
clojure
(ns p5.components.frame-rate) (defonce *frame-rate-element (atom nil)) (def *refresh? (atom true)) (def refresh-rate 500) (defn- create-frame-rate-element [] (let [e (-> (js/createP "") (.style "font-size" "40px") (.style "position" "fixed") (.style "top" "0px") ...
bf75a0ac7e00f3e4db7495ad879aa0623eccac7a1bfc98d758456eea7d621fb2
nyu-acsys/drift
a-split.ml
let make_array (n:int) (i:int) = assert (0 <= i && i < n); 0 let update (i:int) (n:int) a (x:int) = a i; let ap j = assert (0 <= i && i < n); if i = j then x else a j in ap let rec copy cai can cbi cbn (ca:int -> int) (cb:int -> int) = if cai < can && cbi < cbn then (let cbp = update cbi cbn cb (ca cai) in ...
null
https://raw.githubusercontent.com/nyu-acsys/drift/51a3160d74b761626180da4f7dd0bb950cfe40c0/tests/benchmarks/r_type/array/a-split.ml
ocaml
let make_array (n:int) (i:int) = assert (0 <= i && i < n); 0 let update (i:int) (n:int) a (x:int) = a i; let ap j = assert (0 <= i && i < n); if i = j then x else a j in ap let rec copy cai can cbi cbn (ca:int -> int) (cb:int -> int) = if cai < can && cbi < cbn then (let cbp = update cbi cbn cb (ca cai) in ...
b35f1445688398e25887d28709344bcdc511a0df11440a09812cf8ad361fa7f4
zcaudate/hara
common.clj
(ns hara.module.artifact.common (:require [hara.string :as string]) (:import (clojure.lang Symbol))) (defonce ^:dynamic *sep* (System/getProperty "file.separator")) (defonce ^:dynamic *local-repo* (-> (System/getProperty "user.home") (str *sep* ".m2" *sep* "repository"))) (defonce ^:dynamic *java-class...
null
https://raw.githubusercontent.com/zcaudate/hara/481316c1f5c2aeba5be6e01ae673dffc46a63ec9/src/hara/module/artifact/common.clj
clojure
(ns hara.module.artifact.common (:require [hara.string :as string]) (:import (clojure.lang Symbol))) (defonce ^:dynamic *sep* (System/getProperty "file.separator")) (defonce ^:dynamic *local-repo* (-> (System/getProperty "user.home") (str *sep* ".m2" *sep* "repository"))) (defonce ^:dynamic *java-class...
e2f6fecda524d7bd44d34b0dd14d17e549205e0088bf7adea841b739bd5e3553
tweag/asterius
NonMain.hs
{-# LANGUAGE OverloadedStrings #-} module Asterius.JSRun.NonMain ( distNonMain, ) where import Asterius.Main (ahcDistMain) import Asterius.Main.Task import Asterius.Resolve import Asterius.Types ( EntitySymbol, Module, ) import System.FilePath distNonMain :: FilePath -> [EntitySymbol] -> (Module, LinkR...
null
https://raw.githubusercontent.com/tweag/asterius/e4791671dcfe3baae97a3f5f6bc582e0f9d7d292/asterius/src/Asterius/JSRun/NonMain.hs
haskell
# LANGUAGE OverloadedStrings #
module Asterius.JSRun.NonMain ( distNonMain, ) where import Asterius.Main (ahcDistMain) import Asterius.Main.Task import Asterius.Resolve import Asterius.Types ( EntitySymbol, Module, ) import System.FilePath distNonMain :: FilePath -> [EntitySymbol] -> (Module, LinkReport) -> IO () distNonMain p extra...