_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
9441a03d79157853eebb0c937989c8d7408d75c6acd4f8381067913114efecd3
pbrisbin/friendly-time
Human.hs
# LANGUAGE RecordWildCards # ------------------------------------------------------------------------------- -- | -- Print a @'UTCTime'@ as " a few seconds ago " or " 3 days ago " and similar . -- ------------------------------------------------------------------------------- module Data.Time.Format.Human ( human...
null
https://raw.githubusercontent.com/pbrisbin/friendly-time/ab2de54308fb23f74c416912c19db5a56148f805/src/Data/Time/Format/Human.hs
haskell
----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- formatted with `dayOfWeekFmt`. | Time format used with `at` member. See @Data.Time.Format@ for details on formatting sequences. to `onYear`. format...
# LANGUAGE RecordWildCards # Print a @'UTCTime'@ as " a few seconds ago " or " 3 days ago " and similar . module Data.Time.Format.Human ( humanReadableTime , humanReadableTime' , humanReadableTimeI18N , humanReadableTimeI18N' , HumanTimeLocale(..) , defaultHumanTimeLocale ) where import D...
732620449dddf25ef377f993947502362efedfa8ae39f20b0439af84f4a45379
alavrik/piqi-erlang
piqic_erlang.erl
Copyright 2009 , 2010 , 2011 , 2012 , 2013 , 2014 %% 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, ...
null
https://raw.githubusercontent.com/alavrik/piqi-erlang/063ecc4f8fd54543acf01953b0a63b2b7ebf17a9/src/piqic_erlang.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing perm...
Copyright 2009 , 2010 , 2011 , 2012 , 2013 , 2014 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , Piqi compiler for Erlang : top - level module and entry point ( see -module(piqic_erlang). -compile([export_all, nowar...
acf0e07b7dd4e1cbf818e141b30c12b965fdd634c8f480c685a07e286fb05fa4
ewilderj/coin-tosser
core.cljs
(ns tosser.core (:require [clojure.string :as string])) (defn coin-toss "Tosses a fair coin and returns true for heads, false for tails" [] (= 1 (rand-int 2))) (defn toss-score "Win $1 for heads, lose $1 for tails" [toss] (if toss 1 -1)) (defn count-winnings "Figure out the net result for a sequence ...
null
https://raw.githubusercontent.com/ewilderj/coin-tosser/dbb78efed32eefb23f2ef00659c8187e642cad77/clojurescript/src/tosser/core.cljs
clojure
define an auxiliary function that registers a score into a map holding all the score tallies
(ns tosser.core (:require [clojure.string :as string])) (defn coin-toss "Tosses a fair coin and returns true for heads, false for tails" [] (= 1 (rand-int 2))) (defn toss-score "Win $1 for heads, lose $1 for tails" [toss] (if toss 1 -1)) (defn count-winnings "Figure out the net result for a sequence ...
640e66d010533d4ae57cd8fc5656d61f7f18b9d77d145a47b2bf66c8d4f90ba3
haskell-opengl/GLUT
Clip.hs
Clip.hs ( adapted from clip.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 arbitrary clipping planes . Clip.hs (adapted...
null
https://raw.githubusercontent.com/haskell-opengl/GLUT/36207fa51e4c1ea1e5512aeaa373198a4a56cad0/examples/RedBook4/Clip.hs
haskell
resolve overloading, not needed in "real" programs y < 0 x < 0
Clip.hs ( adapted from clip.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 arbitrary clipping planes . Clip.hs (adapted...
119555a687b9bc371c335d2d23740f119d0e3a0d63abd3bf72a0b00e0cb3b045
xtdb/xtdb
postgres.clj
(ns xtdb.corda.postgres (:require [xtdb.api :as xt] [xtdb.corda :as xt.corda] [juxt.clojars-mirrors.nextjdbc.v1v2v674.next.jdbc :as jdbc]) (:import (java.util Date) (java.sql Timestamp))) (defn ->dialect [_] (reify xt.corda/SQLDialect (db-type [_] :postgres) (setup-tx-...
null
https://raw.githubusercontent.com/xtdb/xtdb/e2f51ed99fc2716faa8ad254c0b18166c937b134/labs/corda/xtdb-corda/src/main/clojure/xtdb/corda/postgres.clj
clojure
(ns xtdb.corda.postgres (:require [xtdb.api :as xt] [xtdb.corda :as xt.corda] [juxt.clojars-mirrors.nextjdbc.v1v2v674.next.jdbc :as jdbc]) (:import (java.util Date) (java.sql Timestamp))) (defn ->dialect [_] (reify xt.corda/SQLDialect (db-type [_] :postgres) (setup-tx-...
5081ceb215687e1d473411ed65b23901c2458b958c802fc1fc270680bdf8133f
RKlompUU/FPSheet
Types.hs
module Sheet.Frontend.Types where import Sheet.Backend.Standard import Brick.BChan import Brick.Widgets.Edit import qualified Data.Map as M -- | 'UISheet' defines the spreadsheet type. The functions in this UI -- submodule pass a value of this datatype along in a statewise matter. data UISheet = UISheet { act...
null
https://raw.githubusercontent.com/RKlompUU/FPSheet/fb382ea209e81a49e4c2079f8a17a2dbcaba35a7/exe/Sheet/Frontend/Types.hs
haskell
| 'UISheet' defines the spreadsheet type. The functions in this UI submodule pass a value of this datatype along in a statewise matter. in milliseconds
module Sheet.Frontend.Types where import Sheet.Backend.Standard import Brick.BChan import Brick.Widgets.Edit import qualified Data.Map as M data UISheet = UISheet { activeFile :: Maybe String, sheetCells :: S, sheetCursor :: Pos, sheetOffset :: Pos, uiCols :: Int, uiRows :: Int, cWi...
025e39e3d15ace205b0912d8a192ac46766941b9c1a16dee5c22e70b53d84f0b
rtoy/cmucl
transport.lisp
;;;; -*- Mode: Lisp ; Package: Toolkit-Internals -*- ;;; ;;; ********************************************************************** This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . ;;; (ext:file-comment "$Header: src/motif/lisp...
null
https://raw.githubusercontent.com/rtoy/cmucl/9b1abca53598f03a5b39ded4185471a5b8777dea/src/motif/lisp/transport.lisp
lisp
-*- Mode: Lisp ; Package: Toolkit-Internals -*- ********************************************************************** ********************************************************************** Code for transporting packets and messages between the C toolkit server and the Lisp client. Data structures NOTE: ...
This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . (ext:file-comment "$Header: src/motif/lisp/transport.lisp $") Written by (in-package "TOOLKIT-INTERNALS") (defconstant *header-size* 12) (defstruct (packet (:prin...
ddc72a4681bc04787a4abbc1c5b28d9ea598f863a53c0523dff4fe3351e8f274
thi-ng/cljs-log
core_test.cljs
(ns cljs-log.core-test (:require-macros [cljs-log.core :refer [debug info warn severe]])) (defn ^:export -main [] (let [a {:a 23}] (debug :foo a) (info :foo a) (warn :foo a) (severe :foo a)))
null
https://raw.githubusercontent.com/thi-ng/cljs-log/01b5173112480e8df1b1fde7cc9916133b6c87ce/test/cljs_log/core_test.cljs
clojure
(ns cljs-log.core-test (:require-macros [cljs-log.core :refer [debug info warn severe]])) (defn ^:export -main [] (let [a {:a 23}] (debug :foo a) (info :foo a) (warn :foo a) (severe :foo a)))
4a348865777979bd6a316954f7975a50f050f0fe273d9fec678d10675f6698ad
microsoft/hash-modulo-alpha
Merge.hs
module Merge where import Data.Map.Strict (Map) import qualified Data.Map.Merge.Strict as Merge -- A slightly nicer API for merging maps data MergeMaps l r = LeftOnly l | Both l r | RightOnly r mergeMaps :: Ord k => (MergeMaps l r -> a) -> Map k l -> Map k r -> Map k a mergeMaps...
null
https://raw.githubusercontent.com/microsoft/hash-modulo-alpha/7ff12dbee25595a141e197a4c0a3666c416abc4e/src/Merge.hs
haskell
A slightly nicer API for merging maps
module Merge where import Data.Map.Strict (Map) import qualified Data.Map.Merge.Strict as Merge data MergeMaps l r = LeftOnly l | Both l r | RightOnly r mergeMaps :: Ord k => (MergeMaps l r -> a) -> Map k l -> Map k r -> Map k a mergeMaps f = Merge.merge (Merge.mapMissing (\_ l ...
dbedb42f7831e107d6b160110c2e1517b515469f38b1d34ef3260f28b22a3699
mirage/ocaml-github
rwo.ml
* Copyright ( c ) 2012 Anil Madhavapeddy < > * * 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...
null
https://raw.githubusercontent.com/mirage/ocaml-github/429b8751c45d958644bf0e64452bf9b0460955ba/lib_test/rwo.ml
ocaml
respond with an error internal error dynamic response index page dispatch non-file URLs main callback function normalize path to strip out ../. and such
* Copyright ( c ) 2012 Anil Madhavapeddy < > * * 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...
a2a993f4e1b52d73890c1bf56a872c8c9531dc575a9c9fb7965e75a0adad64e0
1Computer1/myriad
Docker.hs
module Myriad.Docker ( EvalResult(..) , buildImage , buildAllImages , startCleanup , setupContainer , killContainer , killContainers , evalCode ) where import Control.Monad.Reader import qualified Data.ByteString.Lazy as BL import qualified Data.Map.Strict as M import Dat...
null
https://raw.githubusercontent.com/1Computer1/myriad/e54e191f1b074b0a598d6334a2e27ddee9d4491e/src/Myriad/Docker.hs
haskell
If string is empty that means the image does not yet exist Takes time in microseconds User 1000 will be for setting up the environment The `eval` directory is where all the eval work is done For keeping track of if the evaluation is done, i.e. succeeded or timed out. `race` could not have been used here since som...
module Myriad.Docker ( EvalResult(..) , buildImage , buildAllImages , startCleanup , setupContainer , killContainer , killContainers , evalCode ) where import Control.Monad.Reader import qualified Data.ByteString.Lazy as BL import qualified Data.Map.Strict as M import Dat...
cf6d8b641ab73114940bb619e1a7da144cff43d8b72b0294911b1bb95c590b30
janestreet/bonsai
room_list_panel.mli
open! Core open! Bonsai_web open Bonsai_chat_open_source_common val component : room_list:Room.t list Value.t -> refresh_rooms:unit Effect.t -> change_room:(Room.t -> unit Effect.t) -> Vdom.Node.t Computation.t
null
https://raw.githubusercontent.com/janestreet/bonsai/761d04847d5f947318b64c0a46dffa17ad413536/examples/open_source/rpc_chat/client/room_list_panel.mli
ocaml
open! Core open! Bonsai_web open Bonsai_chat_open_source_common val component : room_list:Room.t list Value.t -> refresh_rooms:unit Effect.t -> change_room:(Room.t -> unit Effect.t) -> Vdom.Node.t Computation.t
b528bdbe45e02fabebd2d6341e0554bebf1ef886767e1d77d5e757d484b48d9c
jordanthayer/ocaml-search
playerc_test.ml
* Tests the Playerc module . @author eaburns @since 2010 - 01 - 28 @author eaburns @since 2010-01-28 *) open Printf open Playerc open Playerc.Common type dev = | Position2d of Position2d.t | Laser of Laser.t let connect_client () = (** [connect_client ()] connects the client and return...
null
https://raw.githubusercontent.com/jordanthayer/ocaml-search/57cfc85417aa97ee5d8fbcdb84c333aae148175f/libplayerc_caml/test/playerc_test.ml
ocaml
* [connect_client ()] connects the client and returns it. * [disconnect_client client] disconnect from the player server. * [deinit_pos2d pos2d] cleans up a position2d. * [deinit_laser laser] * [display_pos2d x y pos] draws the pose and velosity from the odometry. Get the pose and velocity of the robot. G...
* Tests the Playerc module . @author eaburns @since 2010 - 01 - 28 @author eaburns @since 2010-01-28 *) open Printf open Playerc open Playerc.Common type dev = | Position2d of Position2d.t | Laser of Laser.t let connect_client () = let client = Client.create None "localhost" 6665 in ...
ffb9fe659ca43c77f132a00485931f9a2d7dc14cf7765e62ea15e3ef82c90924
BoeingX/haskell-programming-from-first-principles
IntermissionExercises.hs
module Lists.ListComprehensions.IntermissionExercises where mySqr = [x^2 | x <- [1..5]] myCube = [y^3 | y <- [1..5]] Question 1 mySqrCube = [(x, y) | x <- mySqr, y <- myCube] Question 2 mySqrCube' = [(x, y) | x <- mySqr, y <- myCube, x <= 50, y<= 50] Question 3 len = length mySqrCube'
null
https://raw.githubusercontent.com/BoeingX/haskell-programming-from-first-principles/ffb637f536597f552a4e4567fee848ed27f3ba74/src/Lists/ListComprehensions/IntermissionExercises.hs
haskell
module Lists.ListComprehensions.IntermissionExercises where mySqr = [x^2 | x <- [1..5]] myCube = [y^3 | y <- [1..5]] Question 1 mySqrCube = [(x, y) | x <- mySqr, y <- myCube] Question 2 mySqrCube' = [(x, y) | x <- mySqr, y <- myCube, x <= 50, y<= 50] Question 3 len = length mySqrCube'
45396f09d4c1508491e681151ffdc18a7f703d5e339536df5973063d99728c28
riak-core-lite/riak_core_lite_util
riak_core_quorum_statem.erl
-module(riak_core_quorum_statem). -behaviour(gen_statem). -export([start_link/1, run/1, quorum_request/6]). -export([init/1, callback_mode/0, terminate/3]). -export([waiting/3]). start_link(Opts) -> gen_statem:start_link(?MODULE, Opts, []). run(Opts) -> {ok, Pid} = start_link(Opts), gen_statem:cast(Pid,...
null
https://raw.githubusercontent.com/riak-core-lite/riak_core_lite_util/c294504eeb5f4320cf4e3b73a37157056d0b0f07/src/riak_core_quorum_statem.erl
erlang
-module(riak_core_quorum_statem). -behaviour(gen_statem). -export([start_link/1, run/1, quorum_request/6]). -export([init/1, callback_mode/0, terminate/3]). -export([waiting/3]). start_link(Opts) -> gen_statem:start_link(?MODULE, Opts, []). run(Opts) -> {ok, Pid} = start_link(Opts), gen_statem:cast(Pid,...
e3316e362a7cf6da2ac778e29559f756dc6cca81b7d320bbcd31fd32e6db1df1
anoma/juvix
Parameters.hs
module Juvix.Compiler.Core.Extra.Recursors.Parameters where import Juvix.Prelude data CollectorIni = NoIni | Ini data Ctx = CtxBinderList | CtxBinderNum | CtxNone data Monadic = Monadic | NonMonadic data Ret = RetRecur | RetSimple data Direction = TopDown | BottomUp $(genSingletons [''Colle...
null
https://raw.githubusercontent.com/anoma/juvix/81a9aea451dbf9e194dc7a6c6a1267b793458c13/src/Juvix/Compiler/Core/Extra/Recursors/Parameters.hs
haskell
module Juvix.Compiler.Core.Extra.Recursors.Parameters where import Juvix.Prelude data CollectorIni = NoIni | Ini data Ctx = CtxBinderList | CtxBinderNum | CtxNone data Monadic = Monadic | NonMonadic data Ret = RetRecur | RetSimple data Direction = TopDown | BottomUp $(genSingletons [''Colle...
eded72af2d366a937cbf751f19ac0dd5a777e26d900dbe215e21dba9cff920bf
zjhmale/Ntha
Prelude.hs
module Ntha.Core.Prelude where import Ntha.Core.Ast import Ntha.Runtime.Value import Ntha.State import Ntha.Type.Type import Ntha.Type.TypeScope import Debug.Trace import qualified Data.Map as M mkTCon :: TypeConstructor -> Expr -> Type mkTCon (T...
null
https://raw.githubusercontent.com/zjhmale/Ntha/dc47fafddf67cf821c90c5cd72566de67d996238/src/Ntha/Core/Prelude.hs
haskell
module Ntha.Core.Prelude where import Ntha.Core.Ast import Ntha.Runtime.Value import Ntha.State import Ntha.Type.Type import Ntha.Type.TypeScope import Debug.Trace import qualified Data.Map as M mkTCon :: TypeConstructor -> Expr -> Type mkTCon (T...
5ba4a4da939baa6b5fb43afc758a24fb8867ac62dcb4e8559a5cfcd190125d76
cloudfakers/amifat
views.clj
(ns amifat.views (:use [hiccup core page])) ; html layout (defn exuberantlayout [message] (html5 [:head [:title "Am I fat?"] (include-css "/css/basic.css")] [:body [:div#exuberant [:h1#exuberant (if (instance? clojure.lang.PersistentVector message) ...
null
https://raw.githubusercontent.com/cloudfakers/amifat/3c0053b631228efd0e2f560398d365b8b37ad6d4/src/amifat/views.clj
clojure
html layout
(ns amifat.views (:use [hiccup core page])) (defn exuberantlayout [message] (html5 [:head [:title "Am I fat?"] (include-css "/css/basic.css")] [:body [:div#exuberant [:h1#exuberant (if (instance? clojure.lang.PersistentVector message) (first me...
34757f11b8f10994f8a01b72e6d7384695739e165d9dc77398065cf2fb0f34d1
stchang/parsack
csv-parser-sepBy-tests.rkt
#lang racket (require parsack tests/parsack/test-utils (rename-in parsack/examples/csv-parser-sepBy [$cell $cellContent] [$line $cells]) rackunit racket/runtime-path) (define $line (parser-one (~> $cells) $eol) #;(>>= $cells (λ (res) (>> $eol (return res)))))...
null
https://raw.githubusercontent.com/stchang/parsack/57b21873e8e3eb7ffbdfa253251c3c27a66723b1/parsack-test/tests/parsack/example-tests/csv-parser-sepBy-tests.rkt
racket
(>>= $cells (λ (res) (>> $eol (return res))))) all Real World Haskell tests
#lang racket (require parsack tests/parsack/test-utils (rename-in parsack/examples/csv-parser-sepBy [$cell $cellContent] [$line $cells]) rackunit racket/runtime-path) (define $line (parser-one (~> $cells) $eol) (define $remainingCells (<or> (>> (char #\,) $cell...
503810ad152a71758c6d2612306aee397329147667eb8d90403e1e06deeb9035
datodev/datodomvc
utils.cljs
(ns datodomvc.client.utils (:require [clojure.string :as string] [goog.dom.DomHelper :as gdomh] [goog.Uri]) (:import [goog.Uri])) (defn map-vals "Create a new map from m by calling function f on each value to get a new value." [m f & args] (when m (into {} (for [[k v] m]...
null
https://raw.githubusercontent.com/datodev/datodomvc/f6d65b61e2fe135a27e870f9a9613f204ded09a9/src/cljs/datodomvc/client/utils.cljs
clojure
Use this if you need to do any fn-based changes, e.g. split on a uri param
(ns datodomvc.client.utils (:require [clojure.string :as string] [goog.dom.DomHelper :as gdomh] [goog.Uri]) (:import [goog.Uri])) (defn map-vals "Create a new map from m by calling function f on each value to get a new value." [m f & args] (when m (into {} (for [[k v] m]...
61338a3e45555eeecdc227ca41a6f6eb83aa2cf49b3342f70d8b9945e950b364
avsm/platform
uucp_alpha.ml
--------------------------------------------------------------------------- Copyright ( c ) 2014 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
null
https://raw.githubusercontent.com/avsm/platform/b254e3c6b60f3c0c09dfdcde92eb1abdc267fa1c/duniverse/uucp.12.0.0%2Bdune/src/uucp_alpha.ml
ocaml
--------------------------------------------------------------------------- Copyright ( c ) 2014 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
eb8ed8ec371206e3dcfb46bd5990d1a883c7b87512a9fc0e525b40478fc14609
emina/rosette
operators.rkt
#lang rosette (require (for-syntax "types.rkt" "errors.rkt" (only-in racket/syntax with-syntax*)) "types.rkt" (prefix-in model/ "../model/operators.rkt")) (provide ?: + - * / pow sqrt abs real-operators % & $ ^ ~ << >> int-operators ! && || bool-op...
null
https://raw.githubusercontent.com/emina/rosette/a64e2bccfe5876c5daaf4a17c5a28a49e2fbd501/sdsl/synthcl/lang/operators.rkt
racket
#lang rosette (require (for-syntax "types.rkt" "errors.rkt" (only-in racket/syntax with-syntax*)) "types.rkt" (prefix-in model/ "../model/operators.rkt")) (provide ?: + - * / pow sqrt abs real-operators % & $ ^ ~ << >> int-operators ! && || bool-op...
ec02f965fecdb1b3e6dd1eb576228be0d44b433c6f657d5234445abf67ee416d
instedd/planwise
db.cljs
(ns planwise.client.projects2.db (:require [schema.core :as s] [planwise.client.asdf :as asdf])) (def initial-db {:current-project nil :list nil :open-dialog nil :source-types #{"raster" "points"}})
null
https://raw.githubusercontent.com/instedd/planwise/21d28bf55216df3986e4f1b6cbb5fa86bb9f30ad/client/src/planwise/client/projects2/db.cljs
clojure
(ns planwise.client.projects2.db (:require [schema.core :as s] [planwise.client.asdf :as asdf])) (def initial-db {:current-project nil :list nil :open-dialog nil :source-types #{"raster" "points"}})
5c84a07c048da507845e87399db352ec03f94e527e68c2e2286704c765942b30
kmi/irs
transform-profilepart-cformdef.lisp
(in-package "OCML") (setf (logical-pathname-translations "transform") '(("ROOT;*" "C:\\users\\jbd2\\code\\ocml\\library\\v5-0\\domains\\profile\\transform\\"))) (load "transform:root;transform.lisp") (load "transform:root;help-xml-gen.lisp") ;(load "transform:root;transform-genonto-xsd.lisp") (defvar...
null
https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/ontologies/domains/profile/transform/transform-profilepart-cformdef.lisp
lisp
(load "transform:root;transform-genonto-xsd.lisp") (ocml::in-ontology ocml::profile) (defun foo () (with-ocml-thread-safety () (ocml::select-ontology 'ocml::profile) (md-get-value '(cls-path)) (mddb-type-get 'domicile) (mddb-type-get 'toto) (util-remove-ontology-prefix-from-slot 'has-county) we don't want fields ...
(in-package "OCML") (setf (logical-pathname-translations "transform") '(("ROOT;*" "C:\\users\\jbd2\\code\\ocml\\library\\v5-0\\domains\\profile\\transform\\"))) (load "transform:root;transform.lisp") (load "transform:root;help-xml-gen.lisp") (defvar *current-class* nil "current class being parsed (...
a1c3c47b82e580c88ea45c7896223a1b1d23f9c0c22803b2d1dc36a2ed553e29
dgtized/shimmers
cube.cljs
(ns shimmers.sketches.cube (:require [quil.core :as q :include-macros true] [quil.middleware :as m] [shimmers.algorithm.hand-drawn :as hand-drawn] [shimmers.common.framerate :as framerate] [shimmers.common.sequence :as cs] [shimmers.common.ui.controls :as ctrl] [shimmers.math.vector :as v] [sh...
null
https://raw.githubusercontent.com/dgtized/shimmers/f096c20d7ebcb9796c7830efcd7e3f24767a46db/src/shimmers/sketches/cube.cljs
clojure
From -to-render-3d-in-2d-canvas From transformation A in translate relative and rotate rotate and then translate relative TODO: support edge occlusion if the view would be blocked by another face? Add other projections like orthographic or isometric ?
(ns shimmers.sketches.cube (:require [quil.core :as q :include-macros true] [quil.middleware :as m] [shimmers.algorithm.hand-drawn :as hand-drawn] [shimmers.common.framerate :as framerate] [shimmers.common.sequence :as cs] [shimmers.common.ui.controls :as ctrl] [shimmers.math.vector :as v] [sh...
7dfcc1f46d51348d39ed0fba9ece07344df26578029cec488a9171e553037b63
tek/ribosome
Modify.hs
|Modify ' RpcCall ' constructors that contain calls to @nvim_command@. -- See @:h : command - modifiers@. module Ribosome.Host.Modify where import Data.MessagePack (Object (ObjectString)) import Exon (exon) import Ribosome.Host.Api.Data (Buffer, Window) import Ribosome.Host.Api.Data ( nvimBufGetNumber, nvimGe...
null
https://raw.githubusercontent.com/tek/ribosome/2e5e0dfbb2ac1a4995b483a389bd6137aa36fdc8/packages/host/lib/Ribosome/Host/Modify.hs
haskell
|Modify ' RpcCall ' constructors that contain calls to @nvim_command@. See @:h : command - modifiers@. module Ribosome.Host.Modify where import Data.MessagePack (Object (ObjectString)) import Exon (exon) import Ribosome.Host.Api.Data (Buffer, Window) import Ribosome.Host.Api.Data ( nvimBufGetNumber, nvimGetCu...
f58dec5d99d3ce029a147fe59b7d66ceabc158106979ddfd364761566c0cd2c8
mrkkrp/megaparsec
Stream.hs
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # {-# LANGUAGE MultiWayIf #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE RecordWildCards # {-# LANGUAGE Safe #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # -- | Module : Text . . ...
null
https://raw.githubusercontent.com/mrkkrp/megaparsec/69d4c46e36732df5072782903610e0bee5df34e8/Text/Megaparsec/Stream.hs
haskell
# LANGUAGE MultiWayIf # # LANGUAGE RankNTypes # # LANGUAGE Safe # | License : FreeBSD Stability : experimental Portability : portable You probably do not want to import this module directly because | Type class for inputs that can be consumed by the library. Note that the 'Stream' instances for 'Te...
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # Module : Text . . Stream Copyright : © 2015 – present contributors Maintainer : < > ...
e0422a4f140834e3af1ae3a473a3ef526b83f605da3f86957cd7d5a51b922ff2
wireapp/wire-server
Native.hs
-- This file is part of the Wire Server implementation. -- Copyright ( C ) 2022 Wire Swiss GmbH < > -- -- This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License...
null
https://raw.githubusercontent.com/wireapp/wire-server/72a03a776d4a8607b0a9c3e622003467be914894/services/gundeck/src/Gundeck/Push/Native.hs
haskell
This file is part of the Wire Server implementation. This program is free software: you can redistribute it and/or modify it under 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 FITNESS FOR A PARTI...
Copyright ( C ) 2022 Wire Swiss GmbH < > the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any You should have received a copy of the GNU Affero General Public License along module Gundeck.Push.Native ( p...
522733593f5a09e6b6341b26f649ecb2f9f9e0f1e11bde29972b37fc82309fdf
rurban/clisp
dbi.lisp
Copyright ( C ) 2003 - 2008 , 2010 , 2012 by This is Free Software , distributed under the GNU GPL v2 + ;;; See <> (defpackage "BDB" (:use "COMMON-LISP" "EXT") (:nicknames "BERKELEY-DB" "BERKDB") (:shadowing-import-from "EXPORTING" #:defstruct #:define-condition) (:export #:db-version #:bdb-ha...
null
https://raw.githubusercontent.com/rurban/clisp/75ed2995ff8f5364bcc18727cde9438cca4e7c2c/modules/berkeley-db/dbi.lisp
lisp
See <> objects parents cannot be closed until this is closed cannot close this until all dependents are closed Empty hash buckets found. Number of pages freed. Number of pages examine. Number of levels removed. Number of deadlocks. Pages truncated to OS. The last allocated locker ID. The current maximum unu...
Copyright ( C ) 2003 - 2008 , 2010 , 2012 by This is Free Software , distributed under the GNU GPL v2 + (defpackage "BDB" (:use "COMMON-LISP" "EXT") (:nicknames "BERKELEY-DB" "BERKDB") (:shadowing-import-from "EXPORTING" #:defstruct #:define-condition) (:export #:db-version #:bdb-handle #:bdb-...
86ff2a7f26438cc17f4ac638efa89110521c1ffd234219de5ec1e48cbafc9ccc
scicloj/tablecloth.time
rolling_window_test.clj
(ns tablecloth.time.api.rolling-window-test (:require [tablecloth.api :as tablecloth] [tablecloth.time.api :refer [index-by]] [tablecloth.time.api.rolling-window :refer [rolling-window]] [time-literals.data-readers] [clojure.test :refer [deftest testing is]])) ;; TODO:...
null
https://raw.githubusercontent.com/scicloj/tablecloth.time/a5161c1b2bf67c04e3476f56551ca1998894825c/test/tablecloth/time/api/rolling_window_test.clj
clojure
TODO: add tests to validate specific row level behaviors rolling window dataset validations rolling window dataset validations of time based indices
(ns tablecloth.time.api.rolling-window-test (:require [tablecloth.api :as tablecloth] [tablecloth.time.api :refer [index-by]] [tablecloth.time.api.rolling-window :refer [rolling-window]] [time-literals.data-readers] [clojure.test :refer [deftest testing is]])) (deftes...
63ffef0063c7f9d4fcfb479a237dcbe197b0e8fc1b1aae8bc2096802146d9cb7
inhabitedtype/ocaml-aws
resetCacheParameterGroup.mli
open Types type input = ResetCacheParameterGroupMessage.t type output = CacheParameterGroupNameMessage.t type error = Errors_internal.t include Aws.Call with type input := input and type output := output and type error := error
null
https://raw.githubusercontent.com/inhabitedtype/ocaml-aws/b6d5554c5d201202b5de8d0b0253871f7b66dab6/libraries/elasticache/lib/resetCacheParameterGroup.mli
ocaml
open Types type input = ResetCacheParameterGroupMessage.t type output = CacheParameterGroupNameMessage.t type error = Errors_internal.t include Aws.Call with type input := input and type output := output and type error := error
538ff58ee230bf2939aca2be5a06cf7a82ee6f90a5518c14cc0fd9458e0feca9
binghe/cl-net-snmp
cmucl.lisp
;;;; -*- Mode: Lisp -*- $ Id$ (in-package :snmp) (def-scalar-variable "sysObjectID" (agent) (oid "clNetSnmpAgentCMUCL"))
null
https://raw.githubusercontent.com/binghe/cl-net-snmp/3cf053bce75734097f0d7e2245a53fa0c45f5e05/server/cmucl.lisp
lisp
-*- Mode: Lisp -*-
$ Id$ (in-package :snmp) (def-scalar-variable "sysObjectID" (agent) (oid "clNetSnmpAgentCMUCL"))
af02d783dfde486b7f6b2bcedbe80b0bdac86edcffdae1ca52bbfb78b2776af2
mariachris/Concuerror
ets_insert_objects.erl
-module(ets_insert_objects). -export([ets_insert_objects/0]). -export([scenarios/0]). scenarios() -> [{?MODULE, inf, dpor}]. ets_insert_objects() -> T = ets:new(table, [public, named_table]), P1 = spawn(fun() -> X = ets:lookup(T, x), Y = ets:lookup(T, y), ...
null
https://raw.githubusercontent.com/mariachris/Concuerror/87e63f10ac615bf2eeac5b0916ef54d11a933e0b/testsuite/suites/dpor/src/ets_insert_objects.erl
erlang
-module(ets_insert_objects). -export([ets_insert_objects/0]). -export([scenarios/0]). scenarios() -> [{?MODULE, inf, dpor}]. ets_insert_objects() -> T = ets:new(table, [public, named_table]), P1 = spawn(fun() -> X = ets:lookup(T, x), Y = ets:lookup(T, y), ...
3c0a5ffb3697ad1e6667c6685895fa3092eee8e9285d6fa68fd77338b7035988
eeng/shevek
timeseries.clj
(ns shevek.engine.druid-native.solver.timeseries (:require [shevek.driver.druid :refer [send-query]] [shevek.engine.druid-native.solver.common :refer [add-common-fields]] [shevek.engine.utils :refer [time-zone]])) (defn to-druid-query [{:keys [cube dimension] :as q}] (-> {:queryType "timese...
null
https://raw.githubusercontent.com/eeng/shevek/7783b8037303b8dd5f320f35edee3bfbb2b41c02/src/clj/shevek/engine/druid_native/solver/timeseries.clj
clojure
(ns shevek.engine.druid-native.solver.timeseries (:require [shevek.driver.druid :refer [send-query]] [shevek.engine.druid-native.solver.common :refer [add-common-fields]] [shevek.engine.utils :refer [time-zone]])) (defn to-druid-query [{:keys [cube dimension] :as q}] (-> {:queryType "timese...
77fd7af4c466236b940fb4fdea04cc4d5d2ef115c513560f2252504cbe0408c1
raviksharma/bartosz-basics-of-haskell
elem.hs
isDigit :: Char -> Bool isDigit c = elem c "0123456789" main = print $ isDigit '3'
null
https://raw.githubusercontent.com/raviksharma/bartosz-basics-of-haskell/86d40d831f61415ef0022bff7fe7060ae6a23701/06-tokenizer-function-types/elem.hs
haskell
isDigit :: Char -> Bool isDigit c = elem c "0123456789" main = print $ isDigit '3'
816f1b98b242ae55d134bf5d88935fd491741030202aaef98def65efa136d096
monadbobo/ocaml-core
events.ml
open Core.Std open Import module Event = struct type 'a t = { at : Time.t; value : 'a; mutable heap_element : 'a t Heap.heap_el sexp_opaque option; } with fields, sexp_of let compare t1 t2 = Time.compare t1.at t2.at end type 'a t = { events : 'a Event.t Heap.t sexp_opaque; mutable now...
null
https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/async/core/lib/events.ml
ocaml
open Core.Std open Import module Event = struct type 'a t = { at : Time.t; value : 'a; mutable heap_element : 'a t Heap.heap_el sexp_opaque option; } with fields, sexp_of let compare t1 t2 = Time.compare t1.at t2.at end type 'a t = { events : 'a Event.t Heap.t sexp_opaque; mutable now...
bf206159bf03c2584eaba0831c505f8a0c9b376d20d19e1ac75d3593b9946d9c
racketscript/racketscript
properties.rkt
#lang racket (define (square x) (* x x)) (define-values (prop:p p? p-ref) (make-struct-type-property 'p)) (define-values (struct:a make-a a? a-ref a-set!) (make-struct-type 'a #f 2 1 'uninitialized (list (cons prop:p 8)))) (p? struct:a) (p? 13) (define an-a (make-a 'x ...
null
https://raw.githubusercontent.com/racketscript/racketscript/f94006d11338a674ae10f6bd83fc53e6806d07d8/tests/struct/properties.rkt
racket
#lang racket (define (square x) (* x x)) (define-values (prop:p p? p-ref) (make-struct-type-property 'p)) (define-values (struct:a make-a a? a-ref a-set!) (make-struct-type 'a #f 2 1 'uninitialized (list (cons prop:p 8)))) (p? struct:a) (p? 13) (define an-a (make-a 'x ...
813282b7dba3c766e988e7d984a02c01e7233001c4bacac2cef7ceffeb290493
lilyball/projecteuler-ocaml
prob12.ml
The sequence of triangle numbers is generated by adding the natural numbers . So the 7th triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28 . The first ten terms would be : 1 , 3 , 6 , 10 , 15 , 21 , 28 , 36 , 45 , 55 , ... Let us list the factors of the first seven triangle numbers : ...
null
https://raw.githubusercontent.com/lilyball/projecteuler-ocaml/a88ed8355b565ad0726cfcac4916d2b80512da7a/prob12.ml
ocaml
The sequence of triangle numbers is generated by adding the natural numbers . So the 7th triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28 . The first ten terms would be : 1 , 3 , 6 , 10 , 15 , 21 , 28 , 36 , 45 , 55 , ... Let us list the factors of the first seven triangle numbers : ...
551e95c59a73962ffb237ae66c589bf358e0ed73d1e9bdae7fbb5a9e5d2a884a
pixlsus/registry.gimp.org_static
patdavid - check layer_0.scm
Blue - Channel skin " Check Layer " Created by < > ; No adjustment layers in GIMP , so add some solid color layers , ; subtract them from the image to isolate the blue channel ; automatically adjust the contrast to match the blue channel exactly. ; ; Then work on healing/cloning in the base layer, an...
null
https://raw.githubusercontent.com/pixlsus/registry.gimp.org_static/ffcde7400f402728373ff6579947c6ffe87d1a5e/registry.gimp.org/files/patdavid%20-%20check%20layer_0.scm
scheme
subtract them from the image to isolate the blue channel automatically adjust the contrast to match the blue channel exactly. Then work on healing/cloning in the base layer, and the results will instantly show up in your "check layer"! define vars (gimp-layer-set-mode Red SUBTRACT-MODE) (gimp-layer-set-...
Blue - Channel skin " Check Layer " Created by < > No adjustment layers in GIMP , so add some solid color layers , (define (script-fu-patdavid-check-layer Image Drawable) (let* (Red (car (gimp-layer-new-from-drawable Drawable Image))) (Green (car (gimp-layer-new-from-drawab...
9360e8c1f94595e533b3bc6c63e1b91b3cbd4cadfc89bbb5abe9290339325a82
threatgrid/ctia
summarize-tests.clj
#! /usr/bin/env bb (require '[clojure.pprint :as pp]) (import '[java.io File] '[java.time Duration]) (defn summarize [] (let [timing-for-prefix (fn [file-prefix] (->> (file-seq (File. "target/test-results")) (filter (fn [^File f] ...
null
https://raw.githubusercontent.com/threatgrid/ctia/3ea1f63147a9fa85156fd35a869de6b126e9fd8c/scripts/summarize-tests.clj
clojure
#! /usr/bin/env bb (require '[clojure.pprint :as pp]) (import '[java.io File] '[java.time Duration]) (defn summarize [] (let [timing-for-prefix (fn [file-prefix] (->> (file-seq (File. "target/test-results")) (filter (fn [^File f] ...
83a6ba54e1940a0b5e02d195bd033cac31a73a1d01611a12dd9239fe94abf080
jaspervdj/blaze-html
Attributes.hs
-- WARNING: The next block of code was automatically generated by -- src/Util/GenerateHtmlCombinators.hs:93 -- -- | This module exports combinators that provide you with the -- ability to set attributes on HTML elements. -- {-# LANGUAGE OverloadedStrings #-} module Text.Blaze.XHtml1.Strict.Attributes ( abbr , a...
null
https://raw.githubusercontent.com/jaspervdj/blaze-html/1c76db3cf02712569fd22b021fb0a367df028eb4/src/Text/Blaze/XHtml1/Strict/Attributes.hs
haskell
WARNING: The next block of code was automatically generated by src/Util/GenerateHtmlCombinators.hs:93 | This module exports combinators that provide you with the ability to set attributes on HTML elements. # LANGUAGE OverloadedStrings # WARNING: The next block of code was automatically generated by src/Util/Gen...
module Text.Blaze.XHtml1.Strict.Attributes ( abbr , accept , accesskey , action , align , alt , archive , axis , border , cellpadding , cellspacing , char , charoff , charset , checked , cite , class_ , classid , codebase , codetype , c...
8b61d297aff3ac662cd9446b7163ea624770da95dc7aa0399272ef1708391d50
hjcapple/reading-sicp
logic_as_programs.scm
#lang sicp P313 - [ ] (#%require "queryeval.scm") (initialize-data-base '( (rule (append-to-form () ?y ?y)) (rule (append-to-form (?u . ?v) ?y (?u . ?z)) (append-to-form ?v ?y ?z)) )) (easy-qeval '(append-to-form (a b) (c d) ?z)) (easy-qeval '(append-to-form (a b) ?y (a b c d))) (easy-qe...
null
https://raw.githubusercontent.com/hjcapple/reading-sicp/7051d55dde841c06cf9326dc865d33d656702ecc/chapter_4/logic_as_programs.scm
scheme
#lang sicp P313 - [ ] (#%require "queryeval.scm") (initialize-data-base '( (rule (append-to-form () ?y ?y)) (rule (append-to-form (?u . ?v) ?y (?u . ?z)) (append-to-form ?v ?y ?z)) )) (easy-qeval '(append-to-form (a b) (c d) ?z)) (easy-qeval '(append-to-form (a b) ?y (a b c d))) (easy-qe...
4b931eff3ca5afd1e71697973e585216ba66828c2f94c87e3032dd1e3d9c97b1
nikita-volkov/acc
NeAcc.hs
module Acc.NeAcc ( NeAcc, ) where import Acc.NeAcc.Def import Acc.Prelude
null
https://raw.githubusercontent.com/nikita-volkov/acc/851385c67db93570165a159280471da00f0d7f47/library/Acc/NeAcc.hs
haskell
module Acc.NeAcc ( NeAcc, ) where import Acc.NeAcc.Def import Acc.Prelude
e597ce204f792a805c70ae907787d1c87dcc31d222a7b81a5f8be265780f2a66
cyverse-archive/DiscoveryEnvironmentBackend
c195_2015011401.clj
(ns facepalm.c195-2015011401 (:use [korma.core])) (def ^:private version "The destination database version." "1.9.5:20150114.01") (defn- add-not-empty-constraint [table-name column-name] (let [check-name (str table-name "_" column-name "_check")] (exec-raw (str "ALTER TABLE " table-name " ADD CONSTRAINT...
null
https://raw.githubusercontent.com/cyverse-archive/DiscoveryEnvironmentBackend/7f6177078c1a1cb6d11e62f12cfe2e22d669635b/databases/de-database-schema/src/main/conversions/v1.9.5/c195_2015011401.clj
clojure
(ns facepalm.c195-2015011401 (:use [korma.core])) (def ^:private version "The destination database version." "1.9.5:20150114.01") (defn- add-not-empty-constraint [table-name column-name] (let [check-name (str table-name "_" column-name "_check")] (exec-raw (str "ALTER TABLE " table-name " ADD CONSTRAINT...
ab3e7621fca94553c2a0f281e01a55495e3b82dc72cc5537cde075c700bd42fc
BranchTaken/Hemlock
test_empty_t_of_state.ml
open! Basis.Rudiments open! Basis open Hash let test () = File.Fmt.stdout |> Fmt.fmt "hash=" |> pp (t_of_state State.empty) |> Fmt.fmt "\n" |> Fmt.fmt "state=" |> State.pp State.empty |> Fmt.fmt "\n" |> ignore let _ = test ()
null
https://raw.githubusercontent.com/BranchTaken/Hemlock/f3604ceda4f75cf18b6ee2b1c2f3c5759ad495a5/bootstrap/test/basis/hash/test_empty_t_of_state.ml
ocaml
open! Basis.Rudiments open! Basis open Hash let test () = File.Fmt.stdout |> Fmt.fmt "hash=" |> pp (t_of_state State.empty) |> Fmt.fmt "\n" |> Fmt.fmt "state=" |> State.pp State.empty |> Fmt.fmt "\n" |> ignore let _ = test ()
4f78bdffd800ae2a0a731ee8a6ee3bf242e3878cd8dcefc53f6d185f19563ed6
ghcjs/ghcjs-boot
StaticPtr.hs
{-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE MagicHash # # LANGUAGE UnboxedTuples # # LANGUAGE ExistentialQuantification # ----------------------------------------------------------------------------- -- | -- Module : GHC.StaticPtr Copyright : ( C ) 2014 I / O Tweag -...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-boot/8c549931da27ba9e607f77195208ec156c840c8a/boot/base/GHC/StaticPtr.hs
haskell
# LANGUAGE DeriveDataTypeable # --------------------------------------------------------------------------- | Module : GHC.StaticPtr License : see libraries/base/LICENSE Maintainer : Stability : internal Symbolic references to values. References to values are usually implemented with m...
# LANGUAGE MagicHash # # LANGUAGE UnboxedTuples # # LANGUAGE ExistentialQuantification # Copyright : ( C ) 2014 I / O Tweag Portability : non - portable ( GHC Extensions ) table is known as the Static Pointer Table . The reference can then be module GHC.StaticPtr ( StaticPt...
a0000b9327db54d4f364d3a9c42f4edf8ef97dd563e0ff04a892e633c86f5bd9
icicle-lang/icicle-ambiata
Pretty.hs
# LANGUAGE LambdaCase # # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} module Icicle.Sorbet.Concrete.Pretty ( Layout(..) , DocAnn(..) , sgrOfDocAnn , ppRepl , ppExtra , ppDecl , ppType , ppTypeSimple , ppExp , ppTail , ppAtom , ppContext , ppLatestSize , ppElse , ppA...
null
https://raw.githubusercontent.com/icicle-lang/icicle-ambiata/9b9cc45a75f66603007e4db7e5f3ba908cae2df2/icicle-source/src/Icicle/Sorbet/Concrete/Pretty.hs
haskell
# LANGUAGE OverloadedStrings # switch to braces.
# LANGUAGE LambdaCase # # LANGUAGE NoImplicitPrelude # module Icicle.Sorbet.Concrete.Pretty ( Layout(..) , DocAnn(..) , sgrOfDocAnn , ppRepl , ppExtra , ppDecl , ppType , ppTypeSimple , ppExp , ppTail , ppAtom , ppContext , ppLatestSize , ppElse , ppAlt , ppAltRhs , ppAltIf , ppA...
88197084e3f6a102dae6a05f35ce415656ebdba8bfc1d355ccf01ae71fb3c825
db48x/xe2
bay.lisp
(in-package :void) ;;; The instantaneous-fire laser weapon (defcell ray-caster (name :initform "Ray caster") (categories :initform '(:item :weapon :equipment)) (tile :initform "ray-caster") (attack-power :initform (make-stat :base 5)) (attack-cost :initform (make-stat :base 6)) (accuracy :initform (make-s...
null
https://raw.githubusercontent.com/db48x/xe2/7896fcc69f5c6e28eaf6f6abb7966d6663370a66/void/bay.lisp
lisp
The instantaneous-fire laser weapon Bases that manufacture said robots at high speed The laser drone robots that just keep coming. drop something
(in-package :void) (defcell ray-caster (name :initform "Ray caster") (categories :initform '(:item :weapon :equipment)) (tile :initform "ray-caster") (attack-power :initform (make-stat :base 5)) (attack-cost :initform (make-stat :base 6)) (accuracy :initform (make-stat :base 90)) (weight :initform 3000)...
e83c94471c7f7b9493fa03116ef7f254eb6751bf055e33adba18ecb12c3d79b8
ad-si/TaskLite
Lib.hs
{-| Functions to create, update, and delete tasks / tags / notes -} module Lib where import Protolude as P ( Applicative (liftA2, pure), Bool (..), Char, Double, Down (Down), Either, Eq (..), FilePath, Float, Floating (logBase), Foldable (foldMap, length, maximum, null), Fractional ((/)), Fun...
null
https://raw.githubusercontent.com/ad-si/TaskLite/e36e1cb7998ff35185d86b7b3c988cb062622db5/tasklite-core/source/Lib.hs
haskell
| Functions to create, update, and delete tasks / tags / notes | For use with `runBeamSqliteDebug` | Tuple is (Maybe createdUtc, noteBody) | Parses the body of the tasks and extracts all meta data | Returns a tuple (body, tags, dueUtcMb, createdUtcMb) TODO: Replace with parsec implementation Handle case when wor...
module Lib where import Protolude as P ( Applicative (liftA2, pure), Bool (..), Char, Double, Down (Down), Either, Eq (..), FilePath, Float, Floating (logBase), Foldable (foldMap, length, maximum, null), Fractional ((/)), Functor (fmap), Generic, IO, Int, Int64, Integer, Integral ...
833c8870aca5313ea0d7ad6c58c1b6b731ad3b8b96f9565c384cbf30b0eb27dd
ocamllabs/ocaml-modular-implicits
command_line.mli
(***********************************************************************) (* *) (* OCaml *) (* *) , projet Cr...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/debugger/command_line.mli
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt OCaml port by and Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . open Le...
1bdc63202bfe0b84ee0a047e566f2460eb891a5937dd2f309528f8787d01bf05
MastodonC/kixi.hecuba
batch_checks.clj
(ns kixi.hecuba.data.batch-checks "Batch validation jobs scheduled using quartz scheduler." (:require [clj-time.core :as t] [com.stuartsierra.frequencies :as freq] [kixi.hecuba.storage.db :as db] [qbits.hayt :as hayt] [kixi.hecuba.data :as data] [kixi.hecu...
null
https://raw.githubusercontent.com/MastodonC/kixi.hecuba/467400bbe670e74420a2711f7d49e869ab2b3e21/src/clj/kixi/hecuba/data/batch_checks.clj
clojure
Check for mislabelled sensors ;;; Batch check for spiked measurements ;;;;;;;;; Batch median calculation ;;;;;;;;;;;;;;;;;
(ns kixi.hecuba.data.batch-checks "Batch validation jobs scheduled using quartz scheduler." (:require [clj-time.core :as t] [com.stuartsierra.frequencies :as freq] [kixi.hecuba.storage.db :as db] [qbits.hayt :as hayt] [kixi.hecuba.data :as data] [kixi.hecu...
47957f3feb312cb4d0bc1dcd542e6822cd76b772d49aaa810735000abd4172db
dmitryvk/sbcl-win32-threads
destructure.impure.lisp
;;;; tests, with side effects, of DESTRUCTURING-BIND-ish functionality This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; While most of SBCL is derived from the CMU CL system , the test ;;;; files (like this one) were written from scratch after the fork from CMU CL . ;...
null
https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/tests/destructure.impure.lisp
lisp
tests, with side effects, of DESTRUCTURING-BIND-ish functionality more information. files (like this one) were written from scratch after the fork This software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. (DESTRUCTURING-BIND (.....
This software is part of the SBCL system . See the README file for While most of SBCL is derived from the CMU CL system , the test from CMU CL . In sbcl-1.0.7.8 , the printer for the ERROR condition signalled from (defun frob-1-0-7-8 (x) (destructuring-bind (y . z) x (print y) (print z))) (multiple-...
ff7f693ad1fa81331340451150ae82eee5e364a3cf8526aae71dbc81babec61a
clojupyter/clojupyter
state.clj
(ns clojupyter.state (:require [clojupyter.kernel.comm-global-state :as comm-global-state] [clojupyter.kernel.history :as his] [clojupyter.protocol.mime-convertible :as mc] [clojupyter.util-actions :as u!] [clojupyter.zmq-util :as zutil] [io.simplect.compose...
null
https://raw.githubusercontent.com/clojupyter/clojupyter/b54b30b5efa115937b7a85e708a7402bd9efa0ab/src/clojupyter/state.clj
clojure
a single context for the entire lifetime of the (OS) process ------------------------------------------------------------------------------------------------------------------------ EXECUTE-COUNT ------------------------------------------------------------------------------------------------------------------------...
(ns clojupyter.state (:require [clojupyter.kernel.comm-global-state :as comm-global-state] [clojupyter.kernel.history :as his] [clojupyter.protocol.mime-convertible :as mc] [clojupyter.util-actions :as u!] [clojupyter.zmq-util :as zutil] [io.simplect.compose...
fea740a90361caea104129d0fea8f62de9324053aeaae3147720f0049ba84af8
puppetlabs/structured-logging
protocols.clj
(ns puppetlabs.structured-logging.protocols) (defprotocol MarkerLogger (write-with-marker! [^org.slf4j.Logger logger level ^Throwable e msg marker]))
null
https://raw.githubusercontent.com/puppetlabs/structured-logging/a0bc6096d3c921c380aa08a41439144f1ee035fb/src/puppetlabs/structured_logging/protocols.clj
clojure
(ns puppetlabs.structured-logging.protocols) (defprotocol MarkerLogger (write-with-marker! [^org.slf4j.Logger logger level ^Throwable e msg marker]))
7fa4d55640e80229b73a2c3aef7ff52373e885824ba33a23d6ca4d9815e5aa78
abdulapopoola/SICPBook
Ex2.04.scm
#lang planet neil/sicp (define (cons x y) (lambda (m) (m x y))) (define (car z) (z (lambda (p q) p))) (define (cdr z) (z (lambda (p q) q))) (car (cons 1 2)) (cdr (cons 1 2))
null
https://raw.githubusercontent.com/abdulapopoola/SICPBook/c8a0228ebf66d9c1ddc5ef1fcc1d05d8684f090a/Chapter%202/2.1/Ex2.04.scm
scheme
#lang planet neil/sicp (define (cons x y) (lambda (m) (m x y))) (define (car z) (z (lambda (p q) p))) (define (cdr z) (z (lambda (p q) q))) (car (cons 1 2)) (cdr (cons 1 2))
e39efbd1a794f16888eedd88b871082732b993423443870e89d6edb6f8170b87
larcenists/larceny
iter1.scm
(text (iter (seq (nop) (alt z! a!) (nop)))) 00000000 90 nop 00000001 7402 jz 0x5 00000003 7603 jna 0x8 00000005 90 nop 00000006 EBF8 jmp short 0x0
null
https://raw.githubusercontent.com/larcenists/larceny/fef550c7d3923deb7a5a1ccd5a628e54cf231c75/src/Lib/Sassy/tests/prims/iter1.scm
scheme
(text (iter (seq (nop) (alt z! a!) (nop)))) 00000000 90 nop 00000001 7402 jz 0x5 00000003 7603 jna 0x8 00000005 90 nop 00000006 EBF8 jmp short 0x0
e1be9d82c6998c1f14a2893eefebb21c09e0018539ac790ca3781562fce7abc5
camlp4/camlp4
Camlp4NullDumper.ml
(****************************************************************************) (* *) (* OCaml *) (* *) (* ...
null
https://raw.githubusercontent.com/camlp4/camlp4/9b3314ea63288decb857239bd94f0c3342136844/camlp4/Camlp4Printers/Camlp4NullDumper.ml
ocaml
************************************************************************** OCaml ...
Copyright 2006 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 the special Authors : * - : initial version * - Nicolas Pouillard: initial version ...
fd730fb4a9537342e78d3f5eff540b2779062a508617e37e38b860bb0d8f3280
janegca/htdp2e
EX-Arrangements.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-intermediate-lambda-reader.ss" "lang")((modname EX-Arrangements) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor ...
null
https://raw.githubusercontent.com/janegca/htdp2e/2d50378135edc2b8b1816204021f8763f8b2707b/03-Intermezzo-Scope/EX-Arrangements.rkt
racket
about the language level of this file in a form that our tools can easily process. [List-of X] -> [List-of [List-of X]] creates a list of all rearrangements of the items in w test: [List-of X] -> Boolean
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname EX-Arrangements) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ()))) (require 2htdp/abstraction) (define (arrangemen...
f9763065d2c14e31b61fb0a3da43a2fac4f084b728e8d19c010915e36407417b
ocaml-ppx/ppx_tools_versioned
ppx_tools_402.ml
module Ast_convenience = Ast_convenience_402 module Ast_mapper_class = Ast_mapper_class_402
null
https://raw.githubusercontent.com/ocaml-ppx/ppx_tools_versioned/00a0150cdabfa7f0dad2c5e0e6b32230d22295ca/ppx_tools_402.ml
ocaml
module Ast_convenience = Ast_convenience_402 module Ast_mapper_class = Ast_mapper_class_402
efbfbea82071838598b354f4dd3707a5912e8e949785cbfaccc9f19237dbb4aa
xtendo-org/rawfilepath
RawFilePath.hs
----------------------------------------------------------------------------- -- | -- Module : RawFilePath Copyright : ( C ) XT et al . 2017 -- License : BSD-style (see the file LICENSE) -- -- Maintainer : -- Stability : stable -- Portability : POSIX -- Welcome to @RawFilePath@ , a small part...
null
https://raw.githubusercontent.com/xtendo-org/rawfilepath/3b06a3283e77b1b17d6eb415a242ab688c61141e/src/RawFilePath.hs
haskell
--------------------------------------------------------------------------- | Module : RawFilePath License : BSD-style (see the file LICENSE) Maintainer : Stability : stable Portability : POSIX purge 'String' for the Greater Good. With this package, you can interact with the Unix system wit...
Copyright : ( C ) XT et al . 2017 Welcome to @RawFilePath@ , a small part of the community 's effort to path encoding issue or the ' String ' ' ByteString ' conversion overhead . * 24 bytes ( three words ) required for one character ( the List constructor , the actual value , and the pointer to the next...
89990c27ce440f87134380eb769d97bbf937fabfceafc99e46a416fc15fa2475
footprintanalytics/footprint-web
persisted_info_test.clj
(ns metabase.events.persisted-info-test (:require [clojure.test :refer [deftest is]] [metabase.events.persisted-info :as events.persisted-info] [metabase.models :refer [Card Database PersistedInfo]] [metabase.test :as mt] [metabase.util :as u] [toucan.db :as...
null
https://raw.githubusercontent.com/footprintanalytics/footprint-web/d3090d943dd9fcea493c236f79e7ef8a36ae17fc/test/metabase/events/persisted_info_test.clj
clojure
(ns metabase.events.persisted-info-test (:require [clojure.test :refer [deftest is]] [metabase.events.persisted-info :as events.persisted-info] [metabase.models :refer [Card Database PersistedInfo]] [metabase.test :as mt] [metabase.util :as u] [toucan.db :as...
85bf0da1e6f290dc368e17f01a8221deec2046b80cdabd7266ca576dab5b90a2
arttuka/reagent-material-ui
broadcast_on_home_sharp.cljs
(ns reagent-mui.icons.broadcast-on-home-sharp "Imports @mui/icons-material/BroadcastOnHomeSharp as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def broadcast-on...
null
https://raw.githubusercontent.com/arttuka/reagent-material-ui/14103a696c41c0eb67fc07fc67cd8799efd88cb9/src/icons/reagent_mui/icons/broadcast_on_home_sharp.cljs
clojure
(ns reagent-mui.icons.broadcast-on-home-sharp "Imports @mui/icons-material/BroadcastOnHomeSharp as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def broadcast-on...
18a90ab92dc60edd6488a895faca1943ce8e4f417e3893581a15b177575cefa6
ygrek/mldonkey
donkeyOvernet.ml
Copyright 2001 , 2002 b8_bavard , b8_fee_carabine , This file is part of mldonkey . mldonkey is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ...
null
https://raw.githubusercontent.com/ygrek/mldonkey/333868a12bb6cd25fed49391dd2c3a767741cb51/src/networks/donkey/donkeyOvernet.ml
ocaml
* Store published files. KADEMLIA_BOOTSTRAP_RES KADEMLIA_HELLO_REQ KADEMLIA_REQ 2 is OK for most searches, number of replies? searched file or keyword Our UID KADEMLIA_RES target type min max KADEMLIA_SEARCH_RES query results KADEMLIA_SEARCH_RES KADEMLIA_PUBLISH_REQ keyword or file md...
Copyright 2001 , 2002 b8_bavard , b8_fee_carabine , This file is part of mldonkey . mldonkey is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ...
1e19ff3957437c678cedaa488b499dc4bc9f9f549401bd8b556140abb6afdd1a
zachgk/catln
Passes.hs
-------------------------------------------------------------------- -- | -- Module : Syntax.Ct.Desugarf.Passes Copyright : ( c ) 2020 License : MIT -- Maintainer: -- Stability : experimental -- Portability: non-portable -- -- This module contains various passes run over the program after -- it has ...
null
https://raw.githubusercontent.com/zachgk/catln/43429f5e85af22a7eefe97699f80dfe831f2798e/src/Syntax/Ct/Desugarf/Passes.hs
haskell
------------------------------------------------------------------ | Module : Syntax.Ct.Desugarf.Passes Maintainer: Stability : experimental Portability: non-portable This module contains various passes run over the program after it has finished desugaring. They apply various corrections to the program ...
Copyright : ( c ) 2020 License : MIT # LANGUAGE NamedFieldPuns # module Syntax.Ct.Desugarf.Passes where import qualified Data.HashMap.Strict as H import Data.Graph import Data.List (nub) import MapMeta import Semantics import Semantics....
f91043215b1f1d1a02779477b7ea60f1668ed0eefb3325939c6c25e3cddf86f8
rtoal/ple
basics.hs
import Control.Monad (guard) import Data.Char (ord, chr) main = do guard $ 3 * 8 + 5 ^ 2 == 49 guard $ 19 / 5 == 3.8 guard $ div 19 5 == 3 guard $ mod 19 5 == 4 guard $ 2 ^ 128 == 340282366920938463463374607431768211456 guard $ 2 ** 128 == 3.402823669209385e38 guard $ ord '¢' == 162 && chr ...
null
https://raw.githubusercontent.com/rtoal/ple/b24cab4de2beca6970833a09d05af6ef96ec3921/haskell/basics.hs
haskell
import Control.Monad (guard) import Data.Char (ord, chr) main = do guard $ 3 * 8 + 5 ^ 2 == 49 guard $ 19 / 5 == 3.8 guard $ div 19 5 == 3 guard $ mod 19 5 == 4 guard $ 2 ^ 128 == 340282366920938463463374607431768211456 guard $ 2 ** 128 == 3.402823669209385e38 guard $ ord '¢' == 162 && chr ...
82da89a99ffe68370b02ddcbf4e8bfab6533bbcf29f23707382421ae7c10261a
keithfancher/kept
Kept.hs
module Kept ( KeptOptions (..), exportNotes, exportNoteToFile, exportNoteToStdOut, ) where import Data.Text qualified as T import Data.Text.IO qualified as TIO import Data.Time (UTCTime) import File (expandDirectories, getUniqueFileName) import Markdown (MarkdownOpts (..), noteToMarkdownSystemTZ) impor...
null
https://raw.githubusercontent.com/keithfancher/kept/f283372a12b70a75d292f4299b254194c1055c16/src/Kept.hs
haskell
Simple container for text that lives at some filepath. Given a set of options and a list of filenames for the JSON input files, produce markdown output. Either to files or printed to stdout. markdown, and writes a new file. Same thing, but just writes path and contents to STDOUT instead of a file. This function d...
module Kept ( KeptOptions (..), exportNotes, exportNoteToFile, exportNoteToStdOut, ) where import Data.Text qualified as T import Data.Text.IO qualified as TIO import Data.Time (UTCTime) import File (expandDirectories, getUniqueFileName) import Markdown (MarkdownOpts (..), noteToMarkdownSystemTZ) impor...
95c6b7fb07afbab81c7f8fc4188f99e1dfdee4bc1edae8564fd966248735b6e2
glutamate/bugpan
SimAdaExpIf.hs
module Main where import QueryRun hiding (uniform,oneOf) import HaskSyntaxUntyped import Expr import EvalM import Numbers import System.Environment import Data.Char import Data.List import TNUtils import Query import Control.Monad import Math.Probably.Sampler import Control.Monad.Trans import QueryUtils import QueryT...
null
https://raw.githubusercontent.com/glutamate/bugpan/d0983152f5afce306049262cba296df00e52264b/SimAdaExpIf.hs
haskell
io $ print intfire determineS intfire [("rate", return 0)]
module Main where import QueryRun hiding (uniform,oneOf) import HaskSyntaxUntyped import Expr import EvalM import Numbers import System.Environment import Data.Char import Data.List import TNUtils import Query import Control.Monad import Math.Probably.Sampler import Control.Monad.Trans import QueryUtils import QueryT...
e7d4324256fa361d19cec8cfcddfb283db87d2ebad9408ebb6ecca250e93e81a
mfelleisen/Acquire
remote-actor.rkt
#lang racket ;; --------------------------------------------------------------------------------------------------- ;; basic remote connectivity functionality, including a base class for remote proxy classes (require "remote-actor-intf.rkt") (remote-connectivity& class/remote signup-parser signup-writer voi...
null
https://raw.githubusercontent.com/mfelleisen/Acquire/5b39df6c757c7c1cafd7ff198641c99d30072b91/remote-actor.rkt
racket
--------------------------------------------------------------------------------------------------- basic remote connectivity functionality, including a base class for remote proxy classes --------------------------------------------------------------------------------------------------- IMPLEMENTATION ----------...
#lang racket (require "remote-actor-intf.rkt") (remote-connectivity& class/remote signup-parser signup-writer void-parser void-writer tile-parser tile-writer turn-parser turn-writer state-parser state-writer turn-plain-parser turn-plain-writer turn-merge-parser turn-merge-writer placement-parser placem...
6625f3d0ed2c7b6ecbc84109ff911af65cc1d94b6465fbb065b600d5f86d48b6
takikawa/racket-ppa
utils.rkt
#lang racket/base (require racket/contract racket/class racket/draw racket/math file/convertible racket/gui/dynamic racket/match "convertible.rkt" "pict.rkt") (provide cons-colorized-picture color-frame round-fram...
null
https://raw.githubusercontent.com/takikawa/racket-ppa/d336bb10e3e0ec3a20020e9ade9e77d2f6f80b6d/share/pkgs/pict-lib/pict/private/utils.rkt
racket
#f to hide whiskers #f for no border #f to hide whiskers #f for no border FIXME: abstract common part of color-frame, etc. otherwise, leave pen as is Stem ---------------------------------------- Body ---------------------------------------- Smile ---------------------------------------- Eyes ----------------...
#lang racket/base (require racket/contract racket/class racket/draw racket/math file/convertible racket/gui/dynamic racket/match "convertible.rkt" "pict.rkt") (provide cons-colorized-picture color-frame round-fram...
f09d8c9f364ad29ccddd72829f7337f4c0eb111d09ad1660249ca141d873b342
ryukzak/nitta
Tests.hs
| Module : NITTA.Intermediate . Simulation . Tests Description : Copyright : ( c ) , 2020 License : : Stability : experimental Module : NITTA.Intermediate.Simulation.Tests Description : Copyright : (c) Aleksandr Penskoi, 2020 License : BSD3 Maintainer : Stability : ...
null
https://raw.githubusercontent.com/ryukzak/nitta/6d5cab0465ff5bcccfe419b8d8553266c530f7b7/test/NITTA/Intermediate/Simulation/Tests.hs
haskell
| Module : NITTA.Intermediate . Simulation . Tests Description : Copyright : ( c ) , 2020 License : : Stability : experimental Module : NITTA.Intermediate.Simulation.Tests Description : Copyright : (c) Aleksandr Penskoi, 2020 License : BSD3 Maintainer : Stability : ...
e01f87f72368d2dd5a7f8459afb1af4d052d387d22220d34a58214320da64c13
expez/superstring
project.clj
(defproject superstring "3.2.0-SNAPSHOT" :description "String manipulation library for clojure and clojurescript" :url "" :license {:name "Eclipse Public License 1.0" :url "-v10.html" :year 2023 :key "epl-1.0"} :plugins [[codox "0.8.11"]] :codox {:src-dir-uri "/" ...
null
https://raw.githubusercontent.com/expez/superstring/869c7e211d3806aa647a634c69075df735154883/project.clj
clojure
(defproject superstring "3.2.0-SNAPSHOT" :description "String manipulation library for clojure and clojurescript" :url "" :license {:name "Eclipse Public License 1.0" :url "-v10.html" :year 2023 :key "epl-1.0"} :plugins [[codox "0.8.11"]] :codox {:src-dir-uri "/" ...
79aa09da4ad38876507a5a41ec6c630b76818e045aced16bc8455157190b0d2c
kim/leveldb-haskell
comparator.hs
{-# LANGUAGE OverloadedStrings #-} -- | Demo custom comparator module Main where import Control.Monad.IO.Class (liftIO) import Data.Default import Database.LevelDB import qualified Database.LevelDB.Streaming as S customComparator :: Comparator customComparator = Comparator compare...
null
https://raw.githubusercontent.com/kim/leveldb-haskell/71538084a74d0ad44f3b455902c2dd0f75959307/examples/comparator.hs
haskell
# LANGUAGE OverloadedStrings # | Demo custom comparator
module Main where import Control.Monad.IO.Class (liftIO) import Data.Default import Database.LevelDB import qualified Database.LevelDB.Streaming as S customComparator :: Comparator customComparator = Comparator compare main :: IO () main = runResourceT $ do db <- open "/tmp/l...
c42562df30fac215671c5048ca4a1cd58095ab661a8e37d056142f642aacadb2
ComputerAidedLL/click-and-collect
permutations.ml
open Sequent open Proof let rec build_exchange sequent perm p = if perm = List.init (List.length perm) (fun n -> n) then p else merge_exchange (Exchange_proof (sequent, perm, perm, p)) and merge_exchange = function | Exchange_proof (_s, _dperm, perm, Exchange_proof (s', _dperm', perm', p)) -> ...
null
https://raw.githubusercontent.com/ComputerAidedLL/click-and-collect/c1e882a496aaec054a05164ada6fc1056dd8ec18/permutations.ml
ocaml
HEAD / TAIL PERMUTE PROOF
open Sequent open Proof let rec build_exchange sequent perm p = if perm = List.init (List.length perm) (fun n -> n) then p else merge_exchange (Exchange_proof (sequent, perm, perm, p)) and merge_exchange = function | Exchange_proof (_s, _dperm, perm, Exchange_proof (s', _dperm', perm', p)) -> ...
cb5a4fc9300bbefa2e2e6b2c79c15f51299a0f6c8fad9a8da3ba310f38be910f
Gbury/dolmen
dolmen_line.mli
(* This file is free software, part of dolmen. See file "LICENSE" for more information *) val consume : newline:(Lexing.lexbuf -> unit) -> sync:(Lexing.lexbuf -> unit) -> Lexing.lexbuf -> unit (** Consumes all characters on the current line. *)
null
https://raw.githubusercontent.com/Gbury/dolmen/24b4659d799133a227ceb4c7f8a1c781e664dcc6/src/languages/line/dolmen_line.mli
ocaml
This file is free software, part of dolmen. See file "LICENSE" for more information * Consumes all characters on the current line.
val consume : newline:(Lexing.lexbuf -> unit) -> sync:(Lexing.lexbuf -> unit) -> Lexing.lexbuf -> unit
656813db2a8023d9f89d5b36a87627b974f0631cb20b8a1a41d4d9d0b3b7621d
mirage/ocaml-matrix
report.ml
open Json_encoding open Matrix_common module Query = Empty.Query module Request = struct type t = {score: int; reason: string} [@@deriving accessor] let encoding = let to_tuple t = t.score, t.reason in let of_tuple v = let score, reason = v in {score; reason} in let with_tuple = obj2 (req ...
null
https://raw.githubusercontent.com/mirage/ocaml-matrix/2a58d3d41c43404741f2dfdaf1d2d0f3757b2b69/lib/matrix-ctos/report.ml
ocaml
open Json_encoding open Matrix_common module Query = Empty.Query module Request = struct type t = {score: int; reason: string} [@@deriving accessor] let encoding = let to_tuple t = t.score, t.reason in let of_tuple v = let score, reason = v in {score; reason} in let with_tuple = obj2 (req ...
c0953f93cb25155962964b7eba92bb27f77c96b9173b71bbae4c05b00df07aec
aligusnet/astro
Star.hs
| Module : Data . Astro . Star Description : Stars Copyright : , 2017 Stars . = Examples = = /Location/ @ import Data . Astro . Time . JulianDate import Data . Astro . Coordinate import Data . Astro . Types import Data . Astro . Star ro : : GeographicCoordinates ro = GeoC ( fromDMS 51 ...
null
https://raw.githubusercontent.com/aligusnet/astro/a8c951885061ccef98299af053fdc1a1cc808f17/src/Data/Astro/Star.hs
haskell
Calculate location of Betelgeuse EC1 { e1Declination = DD 7.407064 , e1RightAscension = DH 5.919529 } HC { hAltitude = DD 38.30483892505852 , hAzimuth = DD 136.75755644642248 } Calculate location of Betelgeuse DD 0.5660098245614035 RiseSet ( 2017 - 06 - 25 06:38:18.4713 +1.0,DD 102.51249855335433 ) ( 2017 - ...
| Module : Data . Astro . Star Description : Stars Copyright : , 2017 Stars . = Examples = = /Location/ @ import Data . Astro . Time . JulianDate import Data . Astro . Coordinate import Data . Astro . Types import Data . Astro . Star ro : : GeographicCoordinates ro = GeoC ( fromDMS 51 ...
8d0e7be3241e9ecd062e1ba363aa7f17bd0f886d97ebf99df72eec44838b477d
dparis/gen-phzr
tilemap.cljs
(ns phzr.tilemap (:require [phzr.impl.utils.core :refer [clj->phaser phaser->clj]] [phzr.impl.extend :as ex] [cljsjs.phaser]) (:refer-clojure :exclude [replace shuffle])) (defn ->Tilemap "Creates a new Phaser.Tilemap object. The map can either be populated with data from a Tiled JSON file...
null
https://raw.githubusercontent.com/dparis/gen-phzr/e4c7b272e225ac343718dc15fc84f5f0dce68023/out/tilemap.cljs
clojure
(ns phzr.tilemap (:require [phzr.impl.utils.core :refer [clj->phaser phaser->clj]] [phzr.impl.extend :as ex] [cljsjs.phaser]) (:refer-clojure :exclude [replace shuffle])) (defn ->Tilemap "Creates a new Phaser.Tilemap object. The map can either be populated with data from a Tiled JSON file...
b8e380056d52bbc1d91c537a6b402fd25bbd38b62756e29c463300143be3ada2
clj-commons/citrus
test_runner.cljs
(ns citrus.test-runner (:require [doo.runner :refer-macros [doo-tests]] [citrus.core-test] [citrus.custom-handler-test])) (doo-tests 'citrus.core-test 'citrus.custom-handler-test)
null
https://raw.githubusercontent.com/clj-commons/citrus/9c0b1441ab466237415fc8ec2b03307d3541694e/test/citrus/test_runner.cljs
clojure
(ns citrus.test-runner (:require [doo.runner :refer-macros [doo-tests]] [citrus.core-test] [citrus.custom-handler-test])) (doo-tests 'citrus.core-test 'citrus.custom-handler-test)
4dab7da461acc16a99b9b78ccdf279449040548407b51808b431c40243270824
tomgr/libcspm
FreeVars.hs
# LANGUAGE FlexibleInstances # module CSPM.Syntax.FreeVars ( BoundNames(..), FreeVars(..) ) where import Data.List import qualified Data.Map as M import CSPM.Syntax.AST import CSPM.Syntax.Names import Util.Annotated import Util.Exception class BoundNames a where boundNames :: a -> [Name] instance BoundNames...
null
https://raw.githubusercontent.com/tomgr/libcspm/24d1b41954191a16e3b5e388e35f5ba0915d671e/src/CSPM/Syntax/FreeVars.hs
haskell
A variable is free iff it is a data constructor, as in all other cases it indicates that a new variable should be created, thus by definition it is not free. Processes The ties may depend on variables bound by stmts too For example, consider <x | x <- ..., f(x)>. Therefore we do a foldr to correctly consider cas...
# LANGUAGE FlexibleInstances # module CSPM.Syntax.FreeVars ( BoundNames(..), FreeVars(..) ) where import Data.List import qualified Data.Map as M import CSPM.Syntax.AST import CSPM.Syntax.Names import Util.Annotated import Util.Exception class BoundNames a where boundNames :: a -> [Name] instance BoundNames...
11bc3e6f15f71d417281721e36467d82118175e9b7afb9578e28878f493ee0d6
SquidDev/urn
inline.lisp
(import test ()) (import tests/compiler/analysis/optimise/optimise-helpers ()) (import tests/compiler/compiler-helpers (create-compiler wrap-node)) (import urn/analysis/optimise/inline (score-node score-nodes inline)) (import urn/resolve/loop resolve) (defun affirm-score (input-nodes expected) "Affirm that INPUT-NO...
null
https://raw.githubusercontent.com/SquidDev/urn/6e6717cf1376b0950e569e3771cb7e287aed291d/tests/compiler/analysis/optimise/inline.lisp
lisp
(import test ()) (import tests/compiler/analysis/optimise/optimise-helpers ()) (import tests/compiler/compiler-helpers (create-compiler wrap-node)) (import urn/analysis/optimise/inline (score-node score-nodes inline)) (import urn/resolve/loop resolve) (defun affirm-score (input-nodes expected) "Affirm that INPUT-NO...
73499558401fa3c28ded04453c580c5b228d305fb0fea2aad55fcbf600247d8a
tmattio/js-bindings
vscode_test_index.mli
[@@@ocaml.warning "-7-11-32-33-39"] [@@@js.implem [@@@ocaml.warning "-7-11-32-33-39"]] open Es5 export { downloadAndUnzipVSCode } from ' ./download ' ; (* export { runTests } from './runTest'; *) (* export { resolveCliPathFromVSCodeExecutablePath } from './util'; *)
null
https://raw.githubusercontent.com/tmattio/js-bindings/f1d36bba378e4ecd5310542a0244dce9258b6496/lib/vscode-test/vscode_test_index.mli
ocaml
export { runTests } from './runTest'; export { resolveCliPathFromVSCodeExecutablePath } from './util';
[@@@ocaml.warning "-7-11-32-33-39"] [@@@js.implem [@@@ocaml.warning "-7-11-32-33-39"]] open Es5 export { downloadAndUnzipVSCode } from ' ./download ' ;
71eeeb4babb0fe282d5af08a90b4755ecc2d413703ae8e610c38c350f89c8a77
kiselgra/c-mera
c.misc.02.usevar.lisp
;; after use-variables the symbol no longer maps to itself, but to the symbol i. (include <stdio.h>) (use-variables FOO) (function main ((int argc) (char **argv)) -> int (decl ((int FOO = 1)) (decl ((int i = 2)) (printf "%d\\n" FOO) (return 0)))) # # 1
null
https://raw.githubusercontent.com/kiselgra/c-mera/d06ed96d50a40a3fefe188202c8c535d6784f392/tests/c.misc.02.usevar.lisp
lisp
after use-variables the symbol no longer maps to itself, but to the symbol i.
(include <stdio.h>) (use-variables FOO) (function main ((int argc) (char **argv)) -> int (decl ((int FOO = 1)) (decl ((int i = 2)) (printf "%d\\n" FOO) (return 0)))) # # 1
fe0c60da84e0082a6e20ba06f72273e6f96ff29c82b33108693c9b012b9eb859
tomjridge/imp_fs
util.ml
(** Utils; probably move elsewhere *) module type Deriving_sexp = sig type t[@@deriving sexp] end type 'a deriving_sexp = (module Deriving_sexp with type t = 'a) let split_at n xs = Base.List.split_n xs n let take n xs = Base.List.take xs n let write_string_to_file ~fn s = . . (** f l .. f (h-1) *) le...
null
https://raw.githubusercontent.com/tomjridge/imp_fs/b72d0a09108269f657281fc6e90cd0e8c6e9eb91/src_v3/sqlite/util.ml
ocaml
* Utils; probably move elsewhere * f l .. f (h-1)
module type Deriving_sexp = sig type t[@@deriving sexp] end type 'a deriving_sexp = (module Deriving_sexp with type t = 'a) let split_at n xs = Base.List.split_n xs n let take n xs = Base.List.take xs n let write_string_to_file ~fn s = . . let rec map_range ~f l h = if l >= h then [] else (f l)::(m...
6a264598972708437bb9cedc58a36c9e61e8604de8e89dece7b6d2b10bd23038
wimvanderbauwhede/tytra
TytraParallel.hs
module TytraParallel where import qualified AST import qualified Cost import Data.Set import Data.Generics.Uniplate.Data {- This module parallelizez an appplication naively -} -- maxCost = MkRawCost { } --parallelize ::
null
https://raw.githubusercontent.com/wimvanderbauwhede/tytra/6787f845a878e0b008bf966015ad6faca6cf0ec7/TyTra-CL/src/TytraParallel.hs
haskell
This module parallelizez an appplication naively maxCost = MkRawCost { } parallelize ::
module TytraParallel where import qualified AST import qualified Cost import Data.Set import Data.Generics.Uniplate.Data
b5da3f05c1650062ac36bbd67e9e7ebff44629cd34b7c034a609a324aa05b6ea
docker-in-aws/docker-in-aws
page_login.cljs
(ns swarmpit.component.page-login (:require [material.component :as comp] [material.icon :as icon] [swarmpit.component.state :as state] [swarmpit.url :refer [dispatch!]] [swarmpit.storage :as storage] [swarmpit.ajax :as ajax] [swarmpit.token :as ...
null
https://raw.githubusercontent.com/docker-in-aws/docker-in-aws/bfc7e82ac82ea158bfb03445da6aec167b1a14a3/ch16/swarmpit/src/cljs/swarmpit/component/page_login.cljs
clojure
(ns swarmpit.component.page-login (:require [material.component :as comp] [material.icon :as icon] [swarmpit.component.state :as state] [swarmpit.url :refer [dispatch!]] [swarmpit.storage :as storage] [swarmpit.ajax :as ajax] [swarmpit.token :as ...
da945ef067a84b3a523e35a8f9b2940ea916cfe6ed592d936c85a524a97613d4
rtoy/cmucl
unix.lisp
;;; -*- Package: UNIX -*- ;;; ;;; ********************************************************************** This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . ;;; This contains extra functionality for the UNIX package that is not ...
null
https://raw.githubusercontent.com/rtoy/cmucl/8b9a14fc3a2c684a538e68af86b3ea970de4261b/src/contrib/unix/unix.lisp
lisp
-*- Package: UNIX -*- ********************************************************************** ********************************************************************** Common machine independent structures. the functions actually exist as functions. So instead of calling There are also some new structures for...
This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . This contains extra functionality for the UNIX package that is not needed by CMUCL core . (ext:file-comment "$Header: src/contrib/unix/unix.lisp $") This file contains the ...
6889ec2be70d78d4b5d30188c8cffdc24ae75871ae133288fcd3f1e6dfeba148
wargrey/w3s
schema.rkt
#lang typed/racket/base (provide (all-defined-out)) (require "compact.rkt") ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (define-type RNG-Grammar-Content (U RNG-Element RNG-Foreign-Element RNG-Grammar)) (define-type RNG-Definitions (Immutable-HashTable Symbol RN...
null
https://raw.githubusercontent.com/wargrey/w3s/8283bc69bbcde2c935e632e420147f0f65e8c89e/sgml/digitama/relaxng/schema.rkt
racket
#lang typed/racket/base (provide (all-defined-out)) (require "compact.rkt") (define-type RNG-Grammar-Content (U RNG-Element RNG-Foreign-Element RNG-Grammar)) (define-type RNG-Definitions (Immutable-HashTable Symbol RNG-Element)) (struct rng-element ([name : (U Keyword Name-Class)] [attributes : (Listof (Pairof...
b7670123a08d2cb72b94d242350cd8ceae608069cd249710d3182cc0f0fdf64a
pyr/himpy
Storage.hs
module System.Himpy.Recipes.Storage where import System.Himpy.Recipes.Utils import System.Himpy.Mib import System.Himpy.Types import System.Himpy.Logger import System.Himpy.Output.Riemann import Data.List import Control.Concurrent.STM.TChan (TChan) import Network.Protocol.NetSNMP sanitize :: String -> String sanitize ...
null
https://raw.githubusercontent.com/pyr/himpy/0412592b879b7ebce24c6bbef88373b253140025/System/Himpy/Recipes/Storage.hs
haskell
-- not needed anymore allocs <- snmp_walk_num host comm hrStorageAllocationUnits
module System.Himpy.Recipes.Storage where import System.Himpy.Recipes.Utils import System.Himpy.Mib import System.Himpy.Types import System.Himpy.Logger import System.Himpy.Output.Riemann import Data.List import Control.Concurrent.STM.TChan (TChan) import Network.Protocol.NetSNMP sanitize :: String -> String sanitize ...
64dbfd4ac13e7970d3f70e95ddb83add33dc800d870772523c4e385bbbdd8c2f
ku-fpg/haskino
LCDCounter.hs
----------------------------------------------------------------------------- -- | -- Module : System.Hardware.Haskino.SamplePrograms.Strong.LCDCounter -- Based on System.Hardware.Arduino Copyright : ( c ) University of Kansas -- License : BSD3 -- Stability : experimental -- -- Simpl...
null
https://raw.githubusercontent.com/ku-fpg/haskino/9a0709c92c2da9b9371e292b00fd076e5539eb18/legacy/Shallow/LCDCounter.hs
haskell
--------------------------------------------------------------------------- | Module : System.Hardware.Haskino.SamplePrograms.Strong.LCDCounter Based on System.Hardware.Arduino License : BSD3 Stability : experimental Simple LCD counter application -----------------------------------...
Copyright : ( c ) University of Kansas module System.Hardware.Haskino.SamplePrograms.Strong.LCDCounter where import System.Hardware.Haskino import System.Hardware.Haskino.Parts.LCD import Control.Monad.State (liftIO) import Data.IORef import Data.Word | The OSepp LCD Shield is a 16x2 LCD using a Hitachi Co...
223645bf2246463518ec1e71c289146d0d262e8c1218b0658edaf62abecc7482
ghc/nofib
Op.hs
module Op (opName, opName1, opPrec, opPrec1, toOp, toOp1, opAssoc) where opPrec1 :: String -> Int opPrec1 "-" = 1 opPrec1 _ = 0 opPrec :: String -> Int opPrec "==" = 5 opPrec ">=" = 5 opPrec "<=" = 5 opPrec "/=" = 5 opPrec ">" = 5 opPrec "<" = 5 opPrec "+" = 4 opPrec "-" = 4 opPrec "*" = 3 opPrec "/" = 3 opPre...
null
https://raw.githubusercontent.com/ghc/nofib/f34b90b5a6ce46284693119a06d1133908b11856/real/symalg/Op.hs
haskell
module Op (opName, opName1, opPrec, opPrec1, toOp, toOp1, opAssoc) where opPrec1 :: String -> Int opPrec1 "-" = 1 opPrec1 _ = 0 opPrec :: String -> Int opPrec "==" = 5 opPrec ">=" = 5 opPrec "<=" = 5 opPrec "/=" = 5 opPrec ">" = 5 opPrec "<" = 5 opPrec "+" = 4 opPrec "-" = 4 opPrec "*" = 3 opPrec "/" = 3 opPre...
bd0c4775c8eb9449dad9f2ac90f4230c3a6202ea4d61c4e2ae39eec9186d2212
inria-parkas/sundialsml
kinRoboKin_dns.ml
* ----------------------------------------------------------------- * $ Revision : 1.2 $ * $ Date : 2010/12/01 23:08:49 $ * ----------------------------------------------------------------- * Programmer(s ): @ LLNL * ----------------------------------------------------------------- * OCaml port :...
null
https://raw.githubusercontent.com/inria-parkas/sundialsml/a1848318cac2e340c32ddfd42671bef07b1390db/examples/kinsol/serial/kinRoboKin_dns.ml
ocaml
Problem Constants variables equations + bounds function tolerance step tolerance System function Nonlinear equations Lower bounds ( l_i = 1 + x_i >= 0) Upper bounds ( u_i = 1 - x_i >= 0) Nonlinear equations - 0.1238*x1 + x7 - 0.001637*x2 - 0.9338*x4 + 0.004731*x1*x3 - 0.3578*x2*x3 - 0.3571 ...
* ----------------------------------------------------------------- * $ Revision : 1.2 $ * $ Date : 2010/12/01 23:08:49 $ * ----------------------------------------------------------------- * Programmer(s ): @ LLNL * ----------------------------------------------------------------- * OCaml port :...
7086686082ca4c7fff60fd8ddf327dcb6d04157ee3c6d4862211bdf6dc80a4e5
FranklinChen/hugs98-plus-Sep2006
Parallel.hs
----------------------------------------------------------------------------- -- | -- Module : Control.Parallel Copyright : ( c ) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : -- Stability : experimental -- Portability : non-port...
null
https://raw.githubusercontent.com/FranklinChen/hugs98-plus-Sep2006/54ab69bd6313adbbed1d790b46aca2a0305ea67e/packages/base/Control/Parallel.hs
haskell
--------------------------------------------------------------------------- | Module : Control.Parallel License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : experimental Portability : non-portable -----------------------------------------------------------------...
Copyright : ( c ) The University of Glasgow 2001 Parallel Constructs module Control.Parallel ( #if defined(__GRANSIM__) , parGlobal, parLocal, parAt, parAtAbs, parAtRel, parAtForNow #endif ) where import Prelude #ifdef __GLASGOW_HASKELL__ import qualified GHC.Conc ( par ) #endif #if defined(__GRA...
04e4a4d661ec686584a210ab93a120c0bd4044bdf3fa5d081a3dbfd1cfafdc4a
afiniate/aws_async
ddb_test_server.ml
Functions to manage the Dynamodb test server open Core.Std open Async.Std exception Timeout let manage cmd = Async_shell.run_full "/opt/dynamodb/bin/dynamodb-test-server" [cmd] let ignore_output _ = return () (* The local dynamodb server doesn't check the credentials as long as they are the same all the tim...
null
https://raw.githubusercontent.com/afiniate/aws_async/44c27bf9f18f76e9e6405c2252098c4aa3d9a8bc/lib/dynamodb/ddb_test_server.ml
ocaml
The local dynamodb server doesn't check the credentials as long as they are the same all the time, thus we just make them obviously fake and export them so that all the usages are coherent Send an arbitrary command to verify the server is up and running waiting until status running is not enough as the serve...
Functions to manage the Dynamodb test server open Core.Std open Async.Std exception Timeout let manage cmd = Async_shell.run_full "/opt/dynamodb/bin/dynamodb-test-server" [cmd] let ignore_output _ = return () let url = ":53321" let access_id = "fake access id" let secret_key = "fake secret key" let region = "f...
810c1d576d5b834cdf3eee4b4fe50dbfbc80215425e214005879e67838f02e81
glondu/belenios
tool_tkeygen.mli
module type PARAMS = sig val group : string val version : int end module type S = sig type keypair = { id : string; priv : string; pub : string } val trustee_keygen : unit -> keypair end module Make (P : PARAMS) (M : Belenios_core.Signatures.RANDOM) () : S
null
https://raw.githubusercontent.com/glondu/belenios/a1f9e4cc8c9aa823f3d0f9ba1e21b8c700cd5522/src/common/tool/tool_tkeygen.mli
ocaml
module type PARAMS = sig val group : string val version : int end module type S = sig type keypair = { id : string; priv : string; pub : string } val trustee_keygen : unit -> keypair end module Make (P : PARAMS) (M : Belenios_core.Signatures.RANDOM) () : S
b1f17a8ac5e0dc73105df9056f77793bb7e38509f34b1c191bd58330764e27ff
LPCIC/matita
pa_unicode_macro.ml
Copyright ( C ) 2004 , HELM Team . * * This file is part of HELM , an Hypertextual , Electronic * Library of Mathematics , developed at the Computer Science * Department , University of Bologna , Italy . * * is free software ; you can redistribute it and/or * modify it under the terms of the GNU...
null
https://raw.githubusercontent.com/LPCIC/matita/794ed25e6e608b2136ce7fa2963bca4115c7e175/matita/components/syntax_extensions/pa_unicode_macro.ml
ocaml
Copyright ( C ) 2004 , HELM Team . * * This file is part of HELM , an Hypertextual , Electronic * Library of Mathematics , developed at the Computer Science * Department , University of Bologna , Italy . * * is free software ; you can redistribute it and/or * modify it under the terms of the GNU...
5dbaf2d9e136e236dd6a3f88d0a5d02399bfd0b5100cf00558af1a1b5243d998
janestreet/async_kernel
mvar.ml
open! Core open! Import open! Deferred_std type ('a, 'phantom) t = { current_value : 'a Moption.t ; taken : (unit, read_write) Bvar.t ; mutable value_available : unit Ivar.t } [@@deriving fields, sexp_of] let value_available t = Ivar.read t.value_available let is_empty t = Moption.is_none t.current_value let...
null
https://raw.githubusercontent.com/janestreet/async_kernel/9575c63faac6c2d6af20f0f21ec535401f310296/src/mvar.ml
ocaml
open! Core open! Import open! Deferred_std type ('a, 'phantom) t = { current_value : 'a Moption.t ; taken : (unit, read_write) Bvar.t ; mutable value_available : unit Ivar.t } [@@deriving fields, sexp_of] let value_available t = Ivar.read t.value_available let is_empty t = Moption.is_none t.current_value let...
1e60e3c058d33a2ff7a8ed88d9095ca4dd5c47f2668bfb14d4e6d6e3301b283d
bmeurer/ocaml-experimental
timer.ml
(***********************************************************************) (* *) MLTk , Tcl / Tk interface of Objective Caml (* *) , , and ...
null
https://raw.githubusercontent.com/bmeurer/ocaml-experimental/fe5c10cdb0499e43af4b08f35a3248e5c1a8b541/otherlibs/labltk/support/timer.ml
ocaml
********************************************************************* described in file LICENSE found in the...
MLTk , Tcl / Tk interface of Objective Caml , , and projet Cristal , INRIA Rocquencourt , Kyoto University RIMS Copyright 2002 Institut National de Recherche en Informatique et en Automatique and...
3d5842e6879698e6170e880916bf01643154ac9d2f5d94c0c54651e5581bae75
io-tupelo/clj-template
project.clj
(defproject demo "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [ [org.clojure/clojure "1.11.1"] [prismatic/schema "1.2.1"] [tupelo "22.05.24b"] ...
null
https://raw.githubusercontent.com/io-tupelo/clj-template/f892d2b429f79b5d01955aec4d3b240238054f71/project.clj
clojure
(defproject demo "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [ [org.clojure/clojure "1.11.1"] [prismatic/schema "1.2.1"] [tupelo "22.05.24b"] ...
bca2de5c662b693ea965cbbc1496fa2acdbbe01a02d4c22a0558ab31637b7629
wenkokke/fgg-gen
Size.hs
{-# LANGUAGE RankNTypes #-} # LANGUAGE TypeFamilies # module Language.FGG.DeBruijn.Size where import Language.FGG.Common import Language.FGG.DeBruijn.Base class Sized a where size :: a -> Int instance Sized a => Sized (Vec a n) where size = vfoldr (\x y -> size x + y) 0 instance (Sized a,...
null
https://raw.githubusercontent.com/wenkokke/fgg-gen/2beadebaf7d46b947c1deb7b6e4b2c0084251343/src/Language/FGG/DeBruijn/Size.hs
haskell
# LANGUAGE RankNTypes #
# LANGUAGE TypeFamilies # module Language.FGG.DeBruijn.Size where import Language.FGG.Common import Language.FGG.DeBruijn.Base class Sized a where size :: a -> Int instance Sized a => Sized (Vec a n) where size = vfoldr (\x y -> size x + y) 0 instance (Sized a, Sized b) => Sized (a, b) where size ...
2c01daacac2f7ee91807d85bff11d460e3466775810b948e89450b763a32e81f
emanjavacas/cosycat
project.clj
(defproject cosycat "0.2.5-alpha" :description "Corpus query interface plus annotations" :license {:name "GNU v3.0"} :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/clojurescript "1.7.170"] [org.clojure/core.async "0.2.374"] [org.clojure/core.match "0.3...
null
https://raw.githubusercontent.com/emanjavacas/cosycat/a7186363d3c0bdc7b714af126feb565f98793a6e/project.clj
clojure
deactivate MongoDB logging
(defproject cosycat "0.2.5-alpha" :description "Corpus query interface plus annotations" :license {:name "GNU v3.0"} :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/clojurescript "1.7.170"] [org.clojure/core.async "0.2.374"] [org.clojure/core.match "0.3...