_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 |
|---|---|---|---|---|---|---|---|---|
11cb43cf6c556b7c64f48bbf582c0616295ff4048fe18c9d22044fbf1389d248 | Viasat/halite | md_spec.clj | Copyright ( c ) 2022 Viasat , Inc.
Licensed under the MIT license
(ns com.viasat.halite.doc.md-spec
(:require [clojure.string :as string]
[com.viasat.halite.doc.md-basic :as md-basic]
[com.viasat.halite.doc.utils :as utils]))
(set! *warn-on-reflection* true)
(defn spec-md [{:keys [gener... | null | https://raw.githubusercontent.com/Viasat/halite/5a434fa2276f5f2654c4d91045595ae5bbc6580e/src/com/viasat/halite/doc/md_spec.clj | clojure | Copyright ( c ) 2022 Viasat , Inc.
Licensed under the MIT license
(ns com.viasat.halite.doc.md-spec
(:require [clojure.string :as string]
[com.viasat.halite.doc.md-basic :as md-basic]
[com.viasat.halite.doc.utils :as utils]))
(set! *warn-on-reflection* true)
(defn spec-md [{:keys [gener... | |
d4ab713ed9fb19f4aeba062c90ab7ee8b56471a6a70a06e1179536babee599d9 | Tim-ats-d/Indigobi | header.mli | type t = { status : Status.t; meta : string }
val parse : string -> (t, Common.Err.header) result
| null | https://raw.githubusercontent.com/Tim-ats-d/Indigobi/428119c9e9d430665a4abfb16771260a7414716c/src/gemini/header.mli | ocaml | type t = { status : Status.t; meta : string }
val parse : string -> (t, Common.Err.header) result
| |
ac95ff28a528f301fe60acca4dcfed1266e8540f8944e9dc705dff81636395f2 | UBTECH-Walker/WalkerSimulationFor2020WAIC | msg_controler_arm.lisp | ; Auto-generated. Do not edit!
(cl:in-package cruiser_msgs-msg)
// ! \htmlinclude
(cl:defclass <msg_controler_arm> (roslisp-msg-protocol:ros-message)
((header
:reader header
:initarg :header
:type std_msgs-msg:Header
:initform (cl:make-instance 'std_msgs-msg:Header))
(datapacket
:reader d... | null | https://raw.githubusercontent.com/UBTECH-Walker/WalkerSimulationFor2020WAIC/7cdb21dabb8423994ba3f6021bc7934290d5faa9/walker_WAIC_16.04_v1.2_20200616/walker_install/share/common-lisp/ros/cruiser_msgs/msg/msg_controler_arm.lisp | lisp | Auto-generated. Do not edit! |
(cl:in-package cruiser_msgs-msg)
// ! \htmlinclude
(cl:defclass <msg_controler_arm> (roslisp-msg-protocol:ros-message)
((header
:reader header
:initarg :header
:type std_msgs-msg:Header
:initform (cl:make-instance 'std_msgs-msg:Header))
(datapacket
:reader datapacket
:initarg :datapac... |
f7a537cef0d789f58692b443ccac64776c2d58956884406d872c0090f0847925 | ruhler/smten | Ord.hs |
# LANGUAGE NoImplicitPrelude #
# LANGUAGE MagicHash #
# LANGUAGE PatternGuards #
module Smten.Data.Ord (
Ord(..),
Ordering(..),
comparing,
) where
import Prelude(Ord(..), Ordering(..))
comparing :: (Ord a) => (b -> a) -> b -> b -> Ordering
comparing p x y = compare (p x) (p y)
| null | https://raw.githubusercontent.com/ruhler/smten/16dd37fb0ee3809408803d4be20401211b6c4027/smten-base/Smten/Data/Ord.hs | haskell |
# LANGUAGE NoImplicitPrelude #
# LANGUAGE MagicHash #
# LANGUAGE PatternGuards #
module Smten.Data.Ord (
Ord(..),
Ordering(..),
comparing,
) where
import Prelude(Ord(..), Ordering(..))
comparing :: (Ord a) => (b -> a) -> b -> b -> Ordering
comparing p x y = compare (p x) (p y)
| |
69b72d130e7d8575521f215ef0b17e72345d1837bf290df3a92620f215459bce | brandonbloom/wabt-clj | encode.clj | (ns wabt-clj.encode
(:use [wabt-clj.util])
(:require [wabt-clj.values :refer [u32?]]
[wabt-clj.inst :as inst]
[wabt-clj.io :as io])
(:import [java.nio ByteBuffer ByteOrder]))
;;;; See <>.
(def ^:dynamic *w*)
(defn pos ^long []
(io/position *w*))
;;; Scalars.
(defn write-byte [^long ... | null | https://raw.githubusercontent.com/brandonbloom/wabt-clj/45b80fb05fc49d52ab117a699e9c56582a7078b3/src/wabt_clj/encode.clj | clojure | See <>.
Scalars.
Composites.
Instructions.
Types.
Imports.
Functions.
Tables.
Memory.
Globals.
Exports.
Start.
Elements.
Code.
Data.
Modules.
TODO: custom sections interleaved throughout. | (ns wabt-clj.encode
(:use [wabt-clj.util])
(:require [wabt-clj.values :refer [u32?]]
[wabt-clj.inst :as inst]
[wabt-clj.io :as io])
(:import [java.nio ByteBuffer ByteOrder]))
(def ^:dynamic *w*)
(defn pos ^long []
(io/position *w*))
(defn write-byte [^long b]
(io/write-byte *w* b)... |
a1a40c3dbc398f7dab1e93f66396c53ec3ffaa24cfc1280ced4f025d93847572 | abdulapopoola/SICPBook | 4.56.scm | #lang racket
the names of all people who are supervised by ,
; together with their addresses;
(and (supervisor ?person (Bitdiddle Ben))
(address ?person ?where))
all people whose salary is less than , together
with their salary and salary ;
(and (salary ?person ?amount)
(salary (Ben Bitdiddle)... | null | https://raw.githubusercontent.com/abdulapopoola/SICPBook/c8a0228ebf66d9c1ddc5ef1fcc1d05d8684f090a/Chapter%204/4.4/4.56.scm | scheme | together with their addresses;
all people who are supervised by someone who is not in the
computer division, together with the supervisor’s name and job. | #lang racket
the names of all people who are supervised by ,
(and (supervisor ?person (Bitdiddle Ben))
(address ?person ?where))
all people whose salary is less than , together
(and (salary ?person ?amount)
(salary (Ben Bitdiddle) val)
(lisp-value < ?amount val))
(and (supervisor ?person ?su... |
1b7db43002bf2ea410f30eaf7c5feeb686ec3abd4134aad2fbc5b1e3a2abf375 | Kappa-Dev/KappaTools | tutorial.figs.ml | open Config
open Geometry
let show_binding_type = false
let config =
{
config
with
site_width = 0.25*.config.site_width;
site_height = 0.25 *. config.site_height;
state_height = 0.7 *. config.state_height;
state_width = 0.7 *. config.state_width;
free_width = 0.6 *. config.free_width ;
... | null | https://raw.githubusercontent.com/Kappa-Dev/KappaTools/eef2337e8688018eda47ccc838aea809cae68de7/man/gkappa_sources/tutorial.figs.ml | ocaml | open Config
open Geometry
let show_binding_type = false
let config =
{
config
with
site_width = 0.25*.config.site_width;
site_height = 0.25 *. config.site_height;
state_height = 0.7 *. config.state_height;
state_width = 0.7 *. config.state_width;
free_width = 0.6 *. config.free_width ;
... | |
3b74d8faf79f4d64645f7ab6288fd161d2599281fe70f97364f9c1f1549ff668 | postspectacular/devart-codefactory | log.cljs | (ns thi.ng.cljs.log)
(enable-console-print!)
(def ^:export log-level 1)
(defn log
[prefix msg]
(.log js/console (js/Date.) (apply str (interpose " " (cons prefix msg)))))
(defn debug
[& msg] (if (<= log-level 1) (log "DEBUG:" msg)))
(defn info
[& msg] (if (<= log-level 2) (log "INFO:" msg)))
(defn warn
... | null | https://raw.githubusercontent.com/postspectacular/devart-codefactory/9bccdc10e58fa4861a69767e9ae4be0bb8d7f650/src-cljs/thi/ng/cljs/log.cljs | clojure | (ns thi.ng.cljs.log)
(enable-console-print!)
(def ^:export log-level 1)
(defn log
[prefix msg]
(.log js/console (js/Date.) (apply str (interpose " " (cons prefix msg)))))
(defn debug
[& msg] (if (<= log-level 1) (log "DEBUG:" msg)))
(defn info
[& msg] (if (<= log-level 2) (log "INFO:" msg)))
(defn warn
... | |
ec1fdc5a699cbdc88bdc97dd586b24318dcfe5643904bf0a9af7d40513aa1994 | hlprmnky/serverless-ish | core.cljs | (ns mobile-client.android.core
(:require [reagent.core :as r :refer [atom]]
[re-frame.core :refer [subscribe dispatch dispatch-sync]]
[mobile-client.events]
[mobile-client.subs]))
(def ReactNative (js/require "react-native"))
(def app-registry (.-AppRegistry ReactNative))
(def te... | null | https://raw.githubusercontent.com/hlprmnky/serverless-ish/bb5b89d68f7209311c16c454dfbe3c548efff0c0/mobile-client/src/mobile_client/android/core.cljs | clojure | (ns mobile-client.android.core
(:require [reagent.core :as r :refer [atom]]
[re-frame.core :refer [subscribe dispatch dispatch-sync]]
[mobile-client.events]
[mobile-client.subs]))
(def ReactNative (js/require "react-native"))
(def app-registry (.-AppRegistry ReactNative))
(def te... | |
10425305bdebad614a602a288a2d8490d8c2bb6c303f8149413af8b0765ed7d6 | mhjort/huutopussi | translation.cljs | (ns huutopussi-client.translation)
(def suits-fi
{"diamonds" "ruutu"
"hearts" "hertta"
"spades" "pata"
"clubs" "risti"})
(def card-text-genitive-fi
{"J" "jätkän"
"A" "ässän"
"K" "kuninkaan"
"Q" "rouvan"
"10" "kympin"
"9" "ysin"
"8" "kasin"
"7" "seiskan"
"6" "kutosen"})
(def card-... | null | https://raw.githubusercontent.com/mhjort/huutopussi/bf5f7b64d599dcb9c04840f3639e88fe30daa541/client/src/huutopussi_client/translation.cljs | clojure | (ns huutopussi-client.translation)
(def suits-fi
{"diamonds" "ruutu"
"hearts" "hertta"
"spades" "pata"
"clubs" "risti"})
(def card-text-genitive-fi
{"J" "jätkän"
"A" "ässän"
"K" "kuninkaan"
"Q" "rouvan"
"10" "kympin"
"9" "ysin"
"8" "kasin"
"7" "seiskan"
"6" "kutosen"})
(def card-... | |
820f49c162dfa32a21fb53f41598eeaed32913eae992943c2b365509e2c36336 | FarmLogs/geojson | generators.clj | (ns geojson.test.generators
(:require [clojure.test :refer :all]
[clojure.test.check.generators :as gen]
[geojson.validate :as validate]
[geojson.generators :as geojson-gen]))
(deftest test-geojson-generators
(are [g] (every? validate/valid? (gen/sample g))
geojson-gen/mu... | null | https://raw.githubusercontent.com/FarmLogs/geojson/a21338f24ca2b16128c24ff1d163b69ca207c77f/test/geojson/test/generators.clj | clojure | (ns geojson.test.generators
(:require [clojure.test :refer :all]
[clojure.test.check.generators :as gen]
[geojson.validate :as validate]
[geojson.generators :as geojson-gen]))
(deftest test-geojson-generators
(are [g] (every? validate/valid? (gen/sample g))
geojson-gen/mu... | |
ea5de718f37826d6417ff03f9cafc475b37128e98bf721cba90c19c72fbb797f | schemeorg-community/index.scheme.org | srfi.35.scm | (((name . "make-condition-type")
(signature
lambda
((symbol? id) (condition-type? parent) (list? field-names))
condition-type?)
(tags pure))
((name . "condition-type?")
(signature lambda (obj) boolean?)
(tags pure predicate))
((name . "make-condition")
(signature
lambda
((condition-type? type... | null | https://raw.githubusercontent.com/schemeorg-community/index.scheme.org/32e1afcfe423a158ac8ce014f5c0b8399d12a1ea/types/srfi.35.scm | scheme | (((name . "make-condition-type")
(signature
lambda
((symbol? id) (condition-type? parent) (list? field-names))
condition-type?)
(tags pure))
((name . "condition-type?")
(signature lambda (obj) boolean?)
(tags pure predicate))
((name . "make-condition")
(signature
lambda
((condition-type? type... | |
f7ea878b0575cfb57711387fd58f96de8952f5ce4da60ca5ab75517f7d14bc9c | avras/nsime | nsime_simulator.erl | %%
Copyright ( C ) 2012 < >
%%
%% This file is part of nsime.
%%
nsime is free software : you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
%% (at your option) any later version.... | null | https://raw.githubusercontent.com/avras/nsime/fc5c164272aa649541bb3895d9f4bea34f45beec/src/nsime_simulator.erl | erlang |
This file is part of nsime.
(at your option) any later version.
nsime is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
along with... | Copyright ( C ) 2012 < >
nsime is free software : you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
You should have received a copy of the GNU General Public License
Author :... |
1d979a53ce810e0912fed0572c1be6f5210a79e983273e4f5e876f46419c1eaf | RefactoringTools/HaRe | PropSyntax.hs |
module PropSyntax (module P) where
import PropSyntaxStruct as P
import PropSyntaxRec as P
| null | https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/old/tools/property/syntax/PropSyntax.hs | haskell |
module PropSyntax (module P) where
import PropSyntaxStruct as P
import PropSyntaxRec as P
| |
b095cca47be6c970778f869f1e67c5c3308f5e16896e8605af27b576806fcc82 | dcos/dcos-net | dcos_overlay_poller_SUITE.erl | -module(dcos_overlay_poller_SUITE).
-export([
all/0,
init_per_testcase/2,
end_per_testcase/2,
init_per_suite/1,
end_per_suite/1
]).
-export([
unique_iprules_test/1
]).
-include_lib("common_test/include/ct.hrl").
-include_lib("gen_netlink/include/netlink.hrl").
init_per_suite(Config) ->
c... | null | https://raw.githubusercontent.com/dcos/dcos-net/7bd01ac237ff4b9a12a020ed443e71c45f7063f4/apps/dcos_overlay/test/dcos_overlay_poller_SUITE.erl | erlang | -module(dcos_overlay_poller_SUITE).
-export([
all/0,
init_per_testcase/2,
end_per_testcase/2,
init_per_suite/1,
end_per_suite/1
]).
-export([
unique_iprules_test/1
]).
-include_lib("common_test/include/ct.hrl").
-include_lib("gen_netlink/include/netlink.hrl").
init_per_suite(Config) ->
c... | |
383d847423373852c96f6fdca24364c48451bb86e1fe2e01008873f5f379684e | ivanjovanovic/sicp | e-2.35.scm | Exercise 2.35 .
;
; Redefine count-leaves from section 2.2.2 as an accumulation:
; (define (count-leaves t)
; (accumulate <??> <??> (map <??> <??>)))
; --------------------------------------------------------
(load "../common.scm")
(load "../helpers.scm")
(load "2.2.scm")
(define (count-leaves tree)
(accumulat... | null | https://raw.githubusercontent.com/ivanjovanovic/sicp/a3bfbae0a0bda414b042e16bbb39bf39cd3c38f8/2.2/e-2.35.scm | scheme |
Redefine count-leaves from section 2.2.2 as an accumulation:
(define (count-leaves t)
(accumulate <??> <??> (map <??> <??>)))
--------------------------------------------------------
for every element just return binary existence
enumerate all the leaves | Exercise 2.35 .
(load "../common.scm")
(load "../helpers.scm")
(load "2.2.scm")
(define (count-leaves tree)
(accumulate
+ 0
(map
this gives 9 as expected
(output (count-leaves (list 1 2 (list 3 4 5) 4 5 (list 1 (list 3)))))
|
53e114f881bbc5bb0247ed4a03fc6c5a0b6fd11444a6248d41cf7fa993355c47 | mainland/nikola | Implementation.hs | module American.Nikola.Implementation (
finalPut,
prevPut
) where
import Prelude hiding (drop, init, map, max, min, tail, take, zipWith)
import Data.Int
import Data.Array.Nikola.Backend.CUDA
--
This code is adapted from implementation of pricing for
American options available at < -options > .
--
... | null | https://raw.githubusercontent.com/mainland/nikola/d86398888c0a76f8ad1556a269a708de9dd92644/examples/american/American/Nikola/Implementation.hs | haskell |
standard econ parameters | module American.Nikola.Implementation (
finalPut,
prevPut
) where
import Prelude hiding (drop, init, map, max, min, tail, take, zipWith)
import Data.Int
import Data.Array.Nikola.Backend.CUDA
This code is adapted from implementation of pricing for
American options available at < -options > .
type ... |
a853fb984d18ba1019aa997a532480317c3969d8a5bb4f59e456cf5ecb239c24 | eugeneia/athens | router.lisp | ;;;; HTTP router
(defpackage httpd0.router
(:use :cl :httpd0.responses)
(:export :define-router))
(in-package :httpd0.router)
(defun compile-route-predicate (resource)
(if (wild-pathname-p resource)
`(pathname-match-p resource ,resource)
`(equal resource ,resource)))
(defun compile-route-arguments... | null | https://raw.githubusercontent.com/eugeneia/athens/cc9d456edd3891b764b0fbf0202a3e2f58865cbf/lib/httpd0/router.lisp | lisp | HTTP router |
(defpackage httpd0.router
(:use :cl :httpd0.responses)
(:export :define-router))
(in-package :httpd0.router)
(defun compile-route-predicate (resource)
(if (wild-pathname-p resource)
`(pathname-match-p resource ,resource)
`(equal resource ,resource)))
(defun compile-route-arguments (resource parame... |
8fcad2e93ce25c51622f77841de667bb57339aa45e9a8208b92e0b1b12935235 | exercism/babashka | diamond.clj | (ns diamond)
(def alphabet (map char (range (int \A) (inc (int \Z)))))
(defn- pad [x]
(apply str (repeat x " ")))
(defn- one-row [letter [inner-padding outer-padding]]
(if (= inner-padding 0)
(str (pad outer-padding) letter (pad outer-padding))
(str (pad outer-padding) letter (pad inner-padding) letter (... | null | https://raw.githubusercontent.com/exercism/babashka/707356c52e08490e66cb1b2e63e4f4439d91cf08/exercises/practice/diamond/src/diamond.clj | clojure | (ns diamond)
(def alphabet (map char (range (int \A) (inc (int \Z)))))
(defn- pad [x]
(apply str (repeat x " ")))
(defn- one-row [letter [inner-padding outer-padding]]
(if (= inner-padding 0)
(str (pad outer-padding) letter (pad outer-padding))
(str (pad outer-padding) letter (pad inner-padding) letter (... | |
dc1e08fb5b669d23714999bc4fd99445dcf979f86c88b9daf9cbec05990435cb | avsm/mirage-duniverse | unikernel.ml | open Lwt
open Printf
module VX = Vchan_xen
module Info = struct
let get_my_domid xs =
OS.Xs.(immediate xs (fun h -> read h "domid"))
let register_me xs myname =
get_my_domid xs >>= fun domid ->
OS.Xs.(immediate xs (fun h -> write h ("/conduit/" ^ myname) domid))
let get_domid_for xs name =
OS... | null | https://raw.githubusercontent.com/avsm/mirage-duniverse/983e115ff5a9fb37e3176c373e227e9379f0d777/ocaml_modules/vchan/lib_test/mirage/unikernel.ml | ocaml | open Lwt
open Printf
module VX = Vchan_xen
module Info = struct
let get_my_domid xs =
OS.Xs.(immediate xs (fun h -> read h "domid"))
let register_me xs myname =
get_my_domid xs >>= fun domid ->
OS.Xs.(immediate xs (fun h -> write h ("/conduit/" ^ myname) domid))
let get_domid_for xs name =
OS... | |
bb70d0c23cc89f2bc5a10ab4c5a601a9f67aa2ecc881731b817f8350be277890 | pa-ba/compdata | Term.hs | {-# LANGUAGE EmptyDataDecls #-}
# LANGUAGE FlexibleInstances #
{-# LANGUAGE GADTs #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE Rank2Types #-}
{-# LANGUAGE TypeSynonymInstances #-}
--------------------------------------------------------------------------------
-- |
-- Module... | null | https://raw.githubusercontent.com/pa-ba/compdata/5783d0e11129097e045cabba61643114b154e3f2/src/Data/Comp/Term.hs | haskell | # LANGUAGE EmptyDataDecls #
# LANGUAGE GADTs #
# LANGUAGE KindSignatures #
# LANGUAGE Rank2Types #
# LANGUAGE TypeSynonymInstances #
------------------------------------------------------------------------------
|
Module : Data.Comp.Term
License : BSD3
Stability : ... | # LANGUAGE FlexibleInstances #
Copyright : ( c ) 2010 - 2011 ,
Maintainer : < >
Portability : non - portable ( GHC Extensions )
module Data.Comp.Term
(Cxt (..),
Hole,
NoHole,
Context,
Term,
PTerm,
Const,
unTerm,
simpCxt,
toCxt,
constTerm... |
8f2f7016741de1919cdf5b937b24c622940886dfcc7b164793bd249f7973dbd2 | ryukzak/nitta | ConstantFolding.hs | {-# LANGUAGE GADTs #-}
# LANGUAGE NoMonomorphismRestriction #
{-# OPTIONS -fno-warn-orphans #-}
|
Module : NITTA.Synthesis . Steps . ConstantFolding
Description :
Copyright : ( c ) , 2021
License : :
Stability : experimental
Module : NITTA.Synthesis.Steps.ConstantFolding
De... | null | https://raw.githubusercontent.com/ryukzak/nitta/b6c55b3820695090558a037dc8eca36f90e891a7/src/NITTA/Synthesis/Steps/ConstantFolding.hs | haskell | # LANGUAGE GADTs #
# OPTIONS -fno-warn-orphans # | # LANGUAGE NoMonomorphismRestriction #
|
Module : NITTA.Synthesis . Steps . ConstantFolding
Description :
Copyright : ( c ) , 2021
License : :
Stability : experimental
Module : NITTA.Synthesis.Steps.ConstantFolding
Description :
Copyright : (c) Daniil Prohorov, 2021
Licen... |
10d90f9330afb583971f8695f5b1d231c888be7907a77e73768dc6583e198f0c | Michaelt293/isotope | Ion.hs | |
Module : Isotope . Ion
Description : Provides support for ions .
Copyright : : GPL-3
Maintainer : < >
Stability : Experimental
This module allows the mass - to - charge ratio and polarity of ions to be
calculated .
Module : Isotope.Ion
Description : Provides support for... | null | https://raw.githubusercontent.com/Michaelt293/isotope/61d2bba5cb98ef5e85cf9fc4cc6f0e88aa5c3368/src/Isotope/Ion.hs | haskell | | The polarity of a charge. A charge can be either `Positive` or `Negative`.
| The mass-to-charge ratio of an ion.
| `doublyProtonated` takes a type and returns a doubly `Protonated` ion.
| `Deprotonated` represents a deprotonated ion.
| `doublyDeprotonated` takes a type and returns a doubly `Deprotonated` ion. | |
Module : Isotope . Ion
Description : Provides support for ions .
Copyright : : GPL-3
Maintainer : < >
Stability : Experimental
This module allows the mass - to - charge ratio and polarity of ions to be
calculated .
Module : Isotope.Ion
Description : Provides support for... |
38b0a5b1f1ef3ce3e17602fecc8f256e5b406136dab52476cca581fe584da81b | appliedfm/vstyle-tools | style.mli | type node_ty =
| NodeTy_Doc
| NodeTy_Body
| NodeTy_Component
| NodeTy_Vernac
type element = {
ty: node_ty;
cls: string list;
id: string option;
}
class virtual node :
element ->
object
val el : element
method get_el : element
method load_style : style:Css.Types.Stylesheet.t -> ctx:node... | null | https://raw.githubusercontent.com/appliedfm/vstyle-tools/c639e5acff3fd1dfae6af423d7ce9bce9433f140/src/style.mli | ocaml | type node_ty =
| NodeTy_Doc
| NodeTy_Body
| NodeTy_Component
| NodeTy_Vernac
type element = {
ty: node_ty;
cls: string list;
id: string option;
}
class virtual node :
element ->
object
val el : element
method get_el : element
method load_style : style:Css.Types.Stylesheet.t -> ctx:node... | |
1df00feb300fda8c1769d54a472745feacbc5f40a200d3ff8e77bcfb2cb0c3c5 | evturn/haskellbook | 09.07-comprehend-thy-lists.hs | mySqr :: [Integer]
mySqr = [x^2 | x <- [1..10]]
pairOfIntegers :: [(Integer, Integer)]
pairOfIntegers = [(x, y) | x <- mySqr,
y <- mySqr,
x < 50,
y > 50]
pairOfIntegers' :: [(Integer, Integer)]
pairOfIntegers' = take 5 [(x, y) | x <- myS... | null | https://raw.githubusercontent.com/evturn/haskellbook/3d310d0ddd4221ffc5b9fd7ec6476b2a0731274a/09/09.07-comprehend-thy-lists.hs | haskell | mySqr :: [Integer]
mySqr = [x^2 | x <- [1..10]]
pairOfIntegers :: [(Integer, Integer)]
pairOfIntegers = [(x, y) | x <- mySqr,
y <- mySqr,
x < 50,
y > 50]
pairOfIntegers' :: [(Integer, Integer)]
pairOfIntegers' = take 5 [(x, y) | x <- myS... | |
8d045f55d126566c851927f3ad3532f56f5cc049820293e510fe7ba0380a9fa0 | aaronc/fx-clj | enlive.clj | (ns ^:no-doc fx-clj.enlive
(:require
[fx-clj.core.extensibility :refer [do-transform]]
[fx-clj.core.pset :as pset]
[fx-clj.core.run :as run]
[fx-clj.core.transforms]))
(defmethod do-transform clojure.lang.PersistentArrayMap
[node prop-map]
(pset/do-pset!* node prop-map nil nil))
(defn- ... | null | https://raw.githubusercontent.com/aaronc/fx-clj/29639356d8d1253438ecf61e123caacefa9269ec/src/fx_clj/enlive.clj | clojure | (ns ^:no-doc fx-clj.enlive
(:require
[fx-clj.core.extensibility :refer [do-transform]]
[fx-clj.core.pset :as pset]
[fx-clj.core.run :as run]
[fx-clj.core.transforms]))
(defmethod do-transform clojure.lang.PersistentArrayMap
[node prop-map]
(pset/do-pset!* node prop-map nil nil))
(defn- ... | |
44f020fc8153cc93f5cbf7c4a71a3119c84225ef62f6531383e4fefdfe13f398 | yetanalytics/flint | triple.cljc | (ns com.yetanalytics.flint.spec.triple
(:require [clojure.spec.alpha :as s]
[com.yetanalytics.flint.spec.axiom :as ax]
[com.yetanalytics.flint.spec.path :as ps])
#?(:cljs (:require-macros [com.yetanalytics.flint.spec.triple
:refer [make-obj-spec
... | null | https://raw.githubusercontent.com/yetanalytics/flint/b0a2530582e04f5592869b0152b846864c283d77/src/main/com/yetanalytics/flint/spec/triple.cljc | clojure |
Just paths banned in
- CONSTRUCT
- DELETE WHERE
- DELETE DATA
- DELETE
Variables (and paths) banned in
- DELETE DATA
- INSERT DATA
Subjects
Predicates
Objects
single-branch `s/or`s are used to conform values
Object
Predicate Object
Subject Predicate Object
Triple Vectors | (ns com.yetanalytics.flint.spec.triple
(:require [clojure.spec.alpha :as s]
[com.yetanalytics.flint.spec.axiom :as ax]
[com.yetanalytics.flint.spec.path :as ps])
#?(:cljs (:require-macros [com.yetanalytics.flint.spec.triple
:refer [make-obj-spec
... |
2072a54c9528a503bd607a290bcd146b995bb08d755e92e646fa7f7275601fd0 | robert-strandh/Cluffer | classes.lisp | (cl:in-package #:cluffer-simple-line)
;;;; All lines are represented the same way, namely as a vector of
;;;; objects for the contents and a list of cursors.
(defclass line (cluffer:line)
((%contents :initarg :contents
:initform (make-array 0)
:accessor contents)
(%cursors :initarg :cursors
... | null | https://raw.githubusercontent.com/robert-strandh/Cluffer/4aad29c276a58a593064e79972ee4d77cae0af4a/Simple-line/classes.lisp | lisp | All lines are represented the same way, namely as a vector of
objects for the contents and a list of cursors. | (cl:in-package #:cluffer-simple-line)
(defclass line (cluffer:line)
((%contents :initarg :contents
:initform (make-array 0)
:accessor contents)
(%cursors :initarg :cursors
:initform '()
:accessor cursors)))
(defclass cursor (cluffer:cursor)
((%line
:initform nil
:initar... |
540f687718f62b6f098e153b43da2f683b1df3182c76eb8a4396bb26b124e514 | ucsd-progsys/dsolve | camlinternalMod.mli | (***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
, projet Cri... | null | https://raw.githubusercontent.com/ucsd-progsys/dsolve/bfbbb8ed9bbf352d74561e9f9127ab07b7882c0c/stdlib/camlinternalMod.mli | ocaml | *********************************************************************
Objective Caml
... | , projet Cristal , INRIA Rocquencourt
Copyright 2004 Institut National de Recherche en Informatique et
en Automatique . All rights reserved . This file is distributed
under the terms of the GNU Library General Public License , with
$ I d : camlinternalMod.mli , v 1.1 2... |
c24b164d10af51d44c0640fc7ce7e85ba79fc31c1891d16320d53db86f56ff0a | grin-compiler/grin | Instance.hs | # OPTIONS_GHC -Wall #
# LANGUAGE InstanceSigs #
# LANGUAGE LambdaCase #
{-# LANGUAGE RankNTypes #-}
# LANGUAGE TypeFamilies #
module Reducer.Interpreter.Definitional.Instance where
import Control.Monad.Fail
import Control.Monad.Reader (MonadReader(..))
import Control.Monad.State (MonadState(..))
import Control.Monad.... | null | https://raw.githubusercontent.com/grin-compiler/grin/44ac2958810ecee969c8028d2d2a082d47fba51b/grin/src/Reducer/Interpreter/Definitional/Instance.hs | haskell | # LANGUAGE RankNTypes #
* Definitional Interpreter | # OPTIONS_GHC -Wall #
# LANGUAGE InstanceSigs #
# LANGUAGE LambdaCase #
# LANGUAGE TypeFamilies #
module Reducer.Interpreter.Definitional.Instance where
import Control.Monad.Fail
import Control.Monad.Reader (MonadReader(..))
import Control.Monad.State (MonadState(..))
import Control.Monad.Trans (MonadIO, lift)
import... |
a2f7a1caf3ce2ec4a1656331e2aae42508d65aac78d1f3d1668b538b6fb0828d | nobrakal/asak | parse_structure.ml | This file is part of asak .
*
* Copyright ( C ) 2019 IRIF / OCaml Software Foundation .
*
* asak is distributed under the terms of the MIT license . See the
* included LICENSE file for details .
*
* Copyright (C) 2019 IRIF / OCaml Software Foundation.
*
* asak is distributed under the terms of the ... | null | https://raw.githubusercontent.com/nobrakal/asak/47cc9eef652d8bcf4af7ee2f27b73fb0f98b3e40/src/parse_structure.ml | ocaml | This file is part of asak .
*
* Copyright ( C ) 2019 IRIF / OCaml Software Foundation .
*
* asak is distributed under the terms of the MIT license . See the
* included LICENSE file for details .
*
* Copyright (C) 2019 IRIF / OCaml Software Foundation.
*
* asak is distributed under the terms of the ... | |
742227b49cbc6299fd6108d91e68015becc3ac83397d534494f0c0957a42b6ff | vaibhavsagar/experiments | Byte.hs | module Dotnet.System.Byte where
import Dotnet
import qualified Dotnet.System.Object
data Byte_ a
type Byte a = Dotnet.System.Object.Object (Byte_ a)
| null | https://raw.githubusercontent.com/vaibhavsagar/experiments/378d7ba97eabfc7bbeaa4116380369ea6612bfeb/hugs/dotnet/lib/Dotnet/System/Byte.hs | haskell | module Dotnet.System.Byte where
import Dotnet
import qualified Dotnet.System.Object
data Byte_ a
type Byte a = Dotnet.System.Object.Object (Byte_ a)
| |
d6ff3cdef455f0c836788a89e998b53d7714bf8c07c6c15c0103e96cd7181f6a | erlang-ls/erlang_ls | els_unused_record_fields_diagnostics.erl | %%==============================================================================
%% Unused Includes diagnostics
%%==============================================================================
-module(els_unused_record_fields_diagnostics).
%%=============================================================================... | null | https://raw.githubusercontent.com/erlang-ls/erlang_ls/d19557a4018cde392006202be8407e4a983d5237/apps/els_lsp/src/els_unused_record_fields_diagnostics.erl | erlang | ==============================================================================
Unused Includes diagnostics
==============================================================================
==============================================================================
Behaviours
==========================================... | -module(els_unused_record_fields_diagnostics).
-behaviour(els_diagnostics).
-export([
is_default/0,
run/1,
source/0
]).
-include("els_lsp.hrl").
-spec is_default() -> boolean().
is_default() ->
true.
-spec run(uri()) -> [els_diagnostics:diagnostic()].
run(Uri) ->
case filename:extension(Uri) o... |
dc201e96a9cd1259bb20df0ffe9588f05bbbe78c68af4628d4224c7ae2fc7ad8 | racket/racket7 | inline.rkt | #lang racket/base
(require (for-syntax racket/base))
(provide define-inline)
(define-syntax (define-inline stx)
(syntax-case stx ()
[(_ (proc-id arg ...) body ...)
(with-syntax ([(arg-id ...)
(for/list ([arg (in-list (syntax->list #'(arg ...)))])
(syntax-case arg (... | null | https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/src/expander/common/inline.rkt | racket | #lang racket/base
(require (for-syntax racket/base))
(provide define-inline)
(define-syntax (define-inline stx)
(syntax-case stx ()
[(_ (proc-id arg ...) body ...)
(with-syntax ([(arg-id ...)
(for/list ([arg (in-list (syntax->list #'(arg ...)))])
(syntax-case arg (... | |
2473bd5bc5390bd028f599e850acee018c94183bcf3d5127010b2a00f1a00208 | rescript-lang/rescript-compiler | ModuleResolver.ml | open GenTypeCommon
module ModuleNameMap = Map.Make (ModuleName)
let ( +++ ) = Filename.concat
(** Read all the dirs from a library in node_modules *)
let readBsDependenciesDirs ~root =
let dirs = ref [] in
let rec findSubDirs dir =
let absDir =
match dir = "" with
| true -> root
| false -> r... | null | https://raw.githubusercontent.com/rescript-lang/rescript-compiler/6c4514c4c80f440a9f7f9cf4ae7721bdac315b57/jscomp/gentype/ModuleResolver.ml | ocaml | * Read all the dirs from a library in node_modules
* Read the project's .sourcedirs.json file if it exists
and build a map of the files with the given extension
back to the directory where they belong.
e.g. src if we're generating src/File.bs.js
Check if the module is in the same directory as the file being ... | open GenTypeCommon
module ModuleNameMap = Map.Make (ModuleName)
let ( +++ ) = Filename.concat
let readBsDependenciesDirs ~root =
let dirs = ref [] in
let rec findSubDirs dir =
let absDir =
match dir = "" with
| true -> root
| false -> root +++ dir
in
if Sys.file_exists absDir && Sys.... |
8d36c9123ad08c709628c850980f1676abe74449070089652ac624ac8aa29ce3 | ocsigen/js_of_ocaml | test_marshal.ml | Js_of_ocaml tests
* /
* Copyright ( C ) 2019
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , with linking exception ;
* either version 2.1 of the License , or... | null | https://raw.githubusercontent.com/ocsigen/js_of_ocaml/7eb388a125afc5c8af73a8fa7cd5f3ad50be4d12/compiler/tests-jsoo/test_marshal.ml | ocaml |
shared | Js_of_ocaml tests
* /
* Copyright ( C ) 2019
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , with linking exception ;
* either version 2.1 of the License , or... |
62d47b7c7123794ccf894b694355c5b74ce9af662c5b5b871f95a1f8b85301ec | phoe-trash/gateway | functions.lisp | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; GATEWAY
" phoe " Herda 2017
;;;; utils/functions.lisp
(in-package #:gateway/utils)
;; (defun count-digits (integer)
" Returns the number of digits in an integer , sans any sign . "
;; (if (= 0 integer)
1
( ... | null | https://raw.githubusercontent.com/phoe-trash/gateway/a8d579ccbafcaee8678caf59d365ec2eab0b1a7e/utils/functions.lisp | lisp |
GATEWAY
utils/functions.lisp
(defun count-digits (integer)
(if (= 0 integer)
(apply #'concatenate 'string strings))
them."
(let ((strings (loop for cons on strings collect (car cons)
when (cdr cons) collect #.(format nil "~%"))))
(apply #'concatenate 'string strings)))
(defun... | " phoe " Herda 2017
(in-package #:gateway/utils)
" Returns the number of digits in an integer , sans any sign . "
1
( values ( ceiling ( log ( abs integer ) 10 ) ) ) ) )
( defun cat ( & rest strings )
" Concatenates targets into a string . "
( defun catn ( & rest strings )
" Conc... |
e05f462686cd9c79375f23637eb0d8ef3744b970fdd32692908a780558dcd290 | camsaul/toucan2 | disallow.clj | (ns toucan2.tools.disallow
(:require
[methodical.core :as m]
[toucan2.pipeline :as pipeline]))
(m/defmethod pipeline/build [#_query-type :toucan.query-type/select.*
#_model ::select
#_resolved-query :default]
"Throw an Exception when tryi... | null | https://raw.githubusercontent.com/camsaul/toucan2/d42e86f201b464a4322aa9e456feb3c9ee10512c/src/toucan2/tools/disallow.clj | clojure | (ns toucan2.tools.disallow
(:require
[methodical.core :as m]
[toucan2.pipeline :as pipeline]))
(m/defmethod pipeline/build [#_query-type :toucan.query-type/select.*
#_model ::select
#_resolved-query :default]
"Throw an Exception when tryi... | |
584dccbd02c2559d79a6b63d0e9546a245042296f78a1609d2486ff5f9461a90 | 40ants/reblocks | current-app.lisp | (defpackage #:reblocks/current-app
(:use #:cl)
(:import-from #:reblocks/app
#:*current-app*
#:get-prefix)
(:export
#:make-uri
#:get-prefix))
(in-package #:reblocks/current-app)
(defun get-prefix ()
"Returns the URL prefix of the application."
(get-prefix *current-app*))... | null | https://raw.githubusercontent.com/40ants/reblocks/2283d23a44252a59b5d7bef066869d9f1e950460/src/current-app.lisp | lisp | (defpackage #:reblocks/current-app
(:use #:cl)
(:import-from #:reblocks/app
#:*current-app*
#:get-prefix)
(:export
#:make-uri
#:get-prefix))
(in-package #:reblocks/current-app)
(defun get-prefix ()
"Returns the URL prefix of the application."
(get-prefix *current-app*))... | |
db02426bd6da7ab2c29a1073b6c4a6a11907284530f0d14176b1fc4a7fbe8398 | onedata/op-worker | lfm_dirs.erl | %%%-------------------------------------------------------------------
@author
( C ) 2015 ACK CYFRONET AGH
This software is released under the MIT license
cited in ' LICENSE.txt ' .
%%% @end
%%%-------------------------------------------------------------------
%%% @doc
%%% This module performs directory-rel... | null | https://raw.githubusercontent.com/onedata/op-worker/71d2ac527f4d20ca40b8f5ae28b8107b68ca90e9/src/modules/logical_file_manager/lfm_submodules/lfm_dirs.erl | erlang | -------------------------------------------------------------------
@end
-------------------------------------------------------------------
@doc
This module performs directory-related operations of lfm_submodules.
@end
-------------------------------------------------------------------
API
=======================... | @author
( C ) 2015 ACK CYFRONET AGH
This software is released under the MIT license
cited in ' LICENSE.txt ' .
-module(lfm_dirs).
-include("global_definitions.hrl").
-include("modules/logical_file_manager/lfm.hrl").
-include("proto/oneclient/fuse_messages.hrl").
-include("proto/oneprovider/provider_messages... |
22662a572b93a9e5866232f3b781715e95c3be2deafb2431d1ab7761fd0bd71e | bootstrapworld/curr | reader.rkt | #lang s-exp scribble/base/reader
curr/lib/lang
#:wrapper1 (lambda (t) (cons 'doc (t)))
| null | https://raw.githubusercontent.com/bootstrapworld/curr/443015255eacc1c902a29978df0e3e8e8f3b9430/lib/lang/reader.rkt | racket | #lang s-exp scribble/base/reader
curr/lib/lang
#:wrapper1 (lambda (t) (cons 'doc (t)))
| |
45191d3ca45a5db3b5f09e4119883c5e122380f29bc862e3c9df54f6eb46050f | motoshira/lib_for_competitive_programming | implicit-treap.lisp | (ql:quickload '(:rove :sb-sprof) :slient t)
(defpackage :test/implicit-treap
(:use #:cl #:implicit-treap)
(:shadowing-import-from #:implicit-treap #:merge #:remove)
(:import-from #:rove #:deftest #:testing #:ok)
(:export #:run-bench
#:run-and-profile))
(in-package :test/implicit-treap)
#+swank
(de... | null | https://raw.githubusercontent.com/motoshira/lib_for_competitive_programming/c92546ba6f8b511ec7440b5e8e37db6f225ea602/test/implicit-treap.lisp | lisp | (ql:quickload '(:rove :sb-sprof) :slient t)
(defpackage :test/implicit-treap
(:use #:cl #:implicit-treap)
(:shadowing-import-from #:implicit-treap #:merge #:remove)
(:import-from #:rove #:deftest #:testing #:ok)
(:export #:run-bench
#:run-and-profile))
(in-package :test/implicit-treap)
#+swank
(de... | |
0ac96b2c341e5a8013a95c959bea98985fa7b2daa21b96cf9d6b445cc735a82b | conscell/hugs-android | GenericPrint.hs | ----------------------------------------------------------------
A " generic " ( or " polymorphic " ) print function in Haskell
This is very heavily based on the code in printer.c
-- (Together with the decompiler and error catching primitives,
-- this might make a good base on which to build a debugger?)
--
NB Th... | null | https://raw.githubusercontent.com/conscell/hugs-android/31e5861bc1a1dd9931e6b2471a9f45c14e3c6c7e/hugs/lib/hugs/packages/hugsbase/Hugs/GenericPrint.hs | haskell | --------------------------------------------------------------
(Together with the decompiler and error catching primitives,
this might make a good base on which to build a debugger?)
removed in future versions of Hugs.
"--enable-internal--prims" flag.
---------------------------------------------------------... | A " generic " ( or " polymorphic " ) print function in Haskell
This is very heavily based on the code in printer.c
NB This library is an _ experimental _ feature which may be
It can only be used if Hugs was configured with the
module Hugs.GenericPrint(
printError,
outputString,
pri... |
4a42047b4d655e22309fdec9ce1e1c15e525c89704aba3c4311391002d76795f | hiroshi-unno/coar | problem.mli | open Core
open Common.Ext
open Ast
open Ast.Logic
open Common.Messenger
type t
type solution = Sat of term_subst_map | Unsat | Unknown | OutSpace of Ident.tvar list
type oracle = CandSolOld.t option
type bounds = (Ident.tvar, int * (sort_env_map * term)) Map.Poly.t
type info +=
| CandidateSolution of
(term_s... | null | https://raw.githubusercontent.com/hiroshi-unno/coar/90a23a09332c68f380efd4115b3f6fdc825f413d/lib/pCSP/problem.mli | ocaml | * all non-predicate function variables
* all predicate variables including well-founded, functional, and non-empty ones | open Core
open Common.Ext
open Ast
open Ast.Logic
open Common.Messenger
type t
type solution = Sat of term_subst_map | Unsat | Unknown | OutSpace of Ident.tvar list
type oracle = CandSolOld.t option
type bounds = (Ident.tvar, int * (sort_env_map * term)) Map.Poly.t
type info +=
| CandidateSolution of
(term_s... |
0cf0b2307f1339a2ef0af654734e685d4396cc83f5b8d90be9b5c8999f6253c7 | nuvla/ui | spec.cljs | (ns sixsq.nuvla.ui.intercom.spec
(:require [clojure.spec.alpha :as s]))
(s/def ::events any?)
(def defaults {::events {}})
| null | https://raw.githubusercontent.com/nuvla/ui/c10704eabd339489722fa53bc99f11f21103c070/code/src/cljs/sixsq/nuvla/ui/intercom/spec.cljs | clojure | (ns sixsq.nuvla.ui.intercom.spec
(:require [clojure.spec.alpha :as s]))
(s/def ::events any?)
(def defaults {::events {}})
| |
60de17f0d4917af097721721f40759c562ec4329140c9a3c5191eff5728c833c | markwoodhall/clova | user.clj | (ns user
(:require
[clojure.tools.namespace.repl :refer :all]))
(when (System/getProperty "clova.load_nrepl")
(require 'nrepl))
| null | https://raw.githubusercontent.com/markwoodhall/clova/25b2e7eb06a9de91096695bf509bb32328a9c4fb/dev/user.clj | clojure | (ns user
(:require
[clojure.tools.namespace.repl :refer :all]))
(when (System/getProperty "clova.load_nrepl")
(require 'nrepl))
| |
1a138f772d0dffa9e05ca4e34ad0646e73d01c208007a60a2a1f70a0afd767ec | ocsigen/ojwidgets | ojw_hookjs.mli |
Hook
Version : 1.1
Author : , ,
Copyright ( c ) 2013 - Hook . All rights reserved .
Hook
Version: 1.1
Author: Jordan Singer, Brandon Jacoby, Adam Girton
Copyright (c) 2013 - Hook. All rights reserved.
*)
(* TODOC The licence is weird, to say the least. *)
(** Bind... | null | https://raw.githubusercontent.com/ocsigen/ojwidgets/4be2233980bdd1cae187c749bd27ddbfff389880/src/ojw_hookjs.mli | ocaml | TODOC The licence is weird, to say the least.
* Binding for hook.js.
@see < > Hook.js
Who is the author of the binding ?
* Add a hook to your page. Return the element to be included in your page and the object to initiliaze. |
Hook
Version : 1.1
Author : , ,
Copyright ( c ) 2013 - Hook . All rights reserved .
Hook
Version: 1.1
Author: Jordan Singer, Brandon Jacoby, Adam Girton
Copyright (c) 2013 - Hook. All rights reserved.
*)
type t
class type options =
object
method reloadPage : b... |
b277aee21231a02521d32e05c4dbdab40d22da798b9672009a46d79a1fd44e73 | li-clutter-org/http2-test | PushPullType.hs |
module Rede.MainLoop.PushPullType (
PushAction
,PullAction
,Attendant
,CloseAction
) where
import qualified Data.ByteString as B
import qualified Data.ByteString.Lazy as LB
type PushAction = LB.ByteString -> IO ()
type PullAction = IO B.ByteString
type CloseAction = IO ()
| A ... | null | https://raw.githubusercontent.com/li-clutter-org/http2-test/38d6706511f93af875273f7702fa0ea8582d5d8e/hs-src/Rede/MainLoop/PushPullType.hs | haskell | to receive data on said socket. |
module Rede.MainLoop.PushPullType (
PushAction
,PullAction
,Attendant
,CloseAction
) where
import qualified Data.ByteString as B
import qualified Data.ByteString.Lazy as LB
type PushAction = LB.ByteString -> IO ()
type PullAction = IO B.ByteString
type CloseAction = IO ()
| A ... |
862b24fc2fa43d45736a5a9e95e7b5afd9726422ef35f7c5d63be1b8ec290696 | chrovis/cljam | util.clj | (ns cljam.io.util
"I/O utilities."
(:require [cljam.io.protocols :as protocols]
cljam.io.sam.reader
cljam.io.sam.writer
cljam.io.bam.reader
cljam.io.bam.writer
cljam.io.vcf.reader
cljam.io.vcf.writer
cljam.io.bcf.reader
... | null | https://raw.githubusercontent.com/chrovis/cljam/2b8e7386765be8efdbbbb4f18dbc52447f4a08af/src/cljam/io/util.clj | clojure | (ns cljam.io.util
"I/O utilities."
(:require [cljam.io.protocols :as protocols]
cljam.io.sam.reader
cljam.io.sam.writer
cljam.io.bam.reader
cljam.io.bam.writer
cljam.io.vcf.reader
cljam.io.vcf.writer
cljam.io.bcf.reader
... | |
1e711cc31036e8cb43be80e3f73c8633da48a918f9a78a838ac5a36ceab21a28 | Opetushallitus/aipal | koulutustoimijoiden_tutkinnot.clj | Copyright ( c ) 2013 The Finnish National Board of Education - Opetushallitus
;;
This program is free software : Licensed under the EUPL , Version 1.1 or - as
soon as they will be approved by the European Commission - subsequent versions
of the EUPL ( the " Licence " ) ;
;;
;; You may not use this work except... | null | https://raw.githubusercontent.com/Opetushallitus/aipal/767bd14ec7153dc97fdf688443b9687cdb70082f/aipal/src/clj/aipal/infra/eraajo/koulutustoimijoiden_tutkinnot.clj | clojure |
You may not use this work except in compliance with the Licence.
You may obtain a copy of the Licence at: /
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | Copyright ( c ) 2013 The Finnish National Board of Education - Opetushallitus
This program is free software : Licensed under the EUPL , Version 1.1 or - as
soon as they will be approved by the European Commission - subsequent versions
European Union Public Licence for more details .
(ns aipal.infra.eraajo.ko... |
30773dc171eff53de310616dbf1b137b05ca99feb32aabc6d8b634a94d2fc6bf | expipiplus1/vulkan | VK_EXT_buffer_device_address.hs | {-# language CPP #-}
-- | = Name
--
VK_EXT_buffer_device_address - device extension
--
-- == VK_EXT_buffer_device_address
--
-- [__Name String__]
@VK_EXT_buffer_device_address@
--
-- [__Extension Type__]
-- Device extension
--
-- [__Registered Extension Number__]
245
--
-- [__Revision__]
2
--
--... | null | https://raw.githubusercontent.com/expipiplus1/vulkan/ebc0dde0bcd9cf251f18538de6524eb4f2ab3e9d/src/Vulkan/Extensions/VK_EXT_buffer_device_address.hs | haskell | # language CPP #
| = Name
== VK_EXT_buffer_device_address
[__Name String__]
[__Extension Type__]
Device extension
[__Registered Extension Number__]
[__Revision__]
[__Extension and Version Dependencies__]
- Requires @VK_KHR_get_physical_device_properties2@ to be enabled
for any devic... | VK_EXT_buffer_device_address - device extension
@VK_EXT_buffer_device_address@
245
2
- Requires support for Vulkan 1.0
- /Deprecated/ by @VK_KHR_buffer_device_address@ extension
-
< -Docs/issues/new?body=[VK_EXT_buffer_device_address ] @jeffbolznv%0A*Here descr... |
85e0ed709203d6598a0a35c048ac52f1391d424c40c9bc556050a2cc5156e721 | marcoheisig/Petalisp | queue.lisp | © 2016 - 2023 - license : GNU AGPLv3 -*- coding : utf-8 -*-
(in-package #:petalisp.utilities)
;;; This file contains an implementation of a simple, thread-safe queue.
It uses the two - lock concurrent queue algorithm by and
;;; ().
(defstruct (queue
(:copier nil)
(:predicate ... | null | https://raw.githubusercontent.com/marcoheisig/Petalisp/a1c85cf71da445ef9c7913cd9ddb5149373211a7/code/utilities/queue.lisp | lisp | This file contains an implementation of a simple, thread-safe queue.
().
Invariants:
- HEAD and TAIL are cons cells.
- HEAD is a cons whose CAR is NIL and whose CDR is the list of items
in the queue.
the queue is empty | © 2016 - 2023 - license : GNU AGPLv3 -*- coding : utf-8 -*-
(in-package #:petalisp.utilities)
It uses the two - lock concurrent queue algorithm by and
(defstruct (queue
(:copier nil)
(:predicate queuep)
(:constructor make-queue (&aux (head (list nil)) (tail head))... |
7a6ed10a6010f087fb95a33cba367c33b94ad75b42e1e8a4ccf9f1a1b5efe0dd | janestreet/hardcaml_circuits | import.ml | include Base
include Hardcaml
include Hardcaml_circuits
let rec num_bits bits =
if bits < 0 then raise_s [%message "arg to [num_bits] must be >= 0" (bits : int)];
match bits with 0 | 1 -> 1 | _ -> 1 + (num_bits (bits / 2))
| null | https://raw.githubusercontent.com/janestreet/hardcaml_circuits/a2c2d1ea3e6957c3cda4767d519e94c20f1172b2/bench/import.ml | ocaml | include Base
include Hardcaml
include Hardcaml_circuits
let rec num_bits bits =
if bits < 0 then raise_s [%message "arg to [num_bits] must be >= 0" (bits : int)];
match bits with 0 | 1 -> 1 | _ -> 1 + (num_bits (bits / 2))
| |
b6b5bc141722c43781543f90d867f64d1f2ecbe21e1dfa885d8c57818c90dd5f | commercialhaskell/stack | Main.hs | import StackTest
main :: IO ()
main = stack ["build"]
| null | https://raw.githubusercontent.com/commercialhaskell/stack/255cd830627870cdef34b5e54d670ef07882523e/test/integration/tests/111-custom-snapshot/Main.hs | haskell | import StackTest
main :: IO ()
main = stack ["build"]
| |
3b736889c869429911b30d3175248be1cd21f6ccf6538c850c2e2679fb73695f | zcaudate-me/lein-repack | analyser_test.clj | (ns leiningen.repack.analyser-test
(:require [leiningen.repack.analyser :refer :all]
[midje.sweet :refer :all]))
| null | https://raw.githubusercontent.com/zcaudate-me/lein-repack/1eb542d66a77f55c4b5625783027c31fd2dddfe5/test/leiningen/repack/analyser_test.clj | clojure | (ns leiningen.repack.analyser-test
(:require [leiningen.repack.analyser :refer :all]
[midje.sweet :refer :all]))
| |
49a53e38171dde85ed94411f2d355ff234d9604afe58b07000f541425cc6da78 | thheller/shadow-cljs | js_inspector_test.clj | (ns shadow.build.js-inspector-test
(:require
[clojure.test :as ct :refer (deftest is)]
[clojure.java.io :as io]
[shadow.build.data :as data]
[shadow.build.closure :as closure]
[shadow.build.classpath :as classpath])
(:import
[shadow.build.closure JsInspector]))
(deftest dummy-inspect
(l... | null | https://raw.githubusercontent.com/thheller/shadow-cljs/ba0a02aec050c6bc8db1932916009400f99d3cce/src/repl/shadow/build/js_inspector_test.clj | clojure | (ns shadow.build.js-inspector-test
(:require
[clojure.test :as ct :refer (deftest is)]
[clojure.java.io :as io]
[shadow.build.data :as data]
[shadow.build.closure :as closure]
[shadow.build.classpath :as classpath])
(:import
[shadow.build.closure JsInspector]))
(deftest dummy-inspect
(l... | |
6e89797b5a57b3e2eeb53286b4552f611fa58c5921322cb692bf9940c8e6f95a | geophf/1HaskellADay | TimeSeries.hs | # LANGUAGE TupleSections #
module Data.Time.TimeSeries where
import Data.Map (Map)
import qualified Data.Map as Map
import Data.Set (Set)
import qualified Data.Set as Set
import Data.Time
-
We represent days as a mapping from Day - > whatever . Given that , what is the
last entry ? What is ' yesterday 's ' ent... | null | https://raw.githubusercontent.com/geophf/1HaskellADay/514792071226cd1e2ba7640af942667b85601006/exercises/HAD/Data/Time/TimeSeries.hs | haskell | } | # LANGUAGE TupleSections #
module Data.Time.TimeSeries where
import Data.Map (Map)
import qualified Data.Map as Map
import Data.Set (Set)
import qualified Data.Set as Set
import Data.Time
-
We represent days as a mapping from Day - > whatever . Given that , what is the
last entry ? What is ' yesterday 's ' ent... |
aaf20019f8e06e759ac33436d7bcaaab230e2c077449b7e60d25d38353935ef2 | dmrd/ebbinghaus | project.clj | (defproject ebbinghaus "0.1.0-SNAPSHOT"
:description "Spaced repetition on a concept graph"
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.9.671" :scope "provided"]
[com.... | null | https://raw.githubusercontent.com/dmrd/ebbinghaus/573389a5a07a44d7bcfe817a8fd9fd8397862913/project.clj | clojure | Use `lein run` if you just want to start a HTTP server, without figwheel
because that's where our development helper functions like (go) and
(browser-repl) live.
merging. So don't put a :figwheel section under the :dev profile, it will
not be picked up, instead configure figwheel here on the top level.
:http-serv... | (defproject ebbinghaus "0.1.0-SNAPSHOT"
:description "Spaced repetition on a concept graph"
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.9.671" :scope "provided"]
[com.... |
9d529f5c63534dd67694d339db6c135ee6911b3f817c7daddf71fe9289a4d90b | OCADml/OCADml | affine3.ml | Float record implementation ( replacing the private float array arrays used
previously ) inspired by dbuenzli 's gg library [ ] .
previously) inspired by dbuenzli's gg library []. *)
open V
type row = float * float * float * float
type t = Gg.m4
let[@inline] v e00 e01 e02 e03 e10 e11 e12 e13 e20 e21 e22... | null | https://raw.githubusercontent.com/OCADml/OCADml/f8cd87da86cd5ea4c31ec169c796640ffdc6bdee/lib/affine3.ml | ocaml | Float record implementation ( replacing the private float array arrays used
previously ) inspired by dbuenzli 's gg library [ ] .
previously) inspired by dbuenzli's gg library []. *)
open V
type row = float * float * float * float
type t = Gg.m4
let[@inline] v e00 e01 e02 e03 e10 e11 e12 e13 e20 e21 e22... | |
9666614f3aca6cbd8991eb1537054f8b151466f94c2de7af757cc183cfacf962 | aeternity/aeternity | aens_test_utils.erl | %%%=============================================================================
( C ) 2018 , Aeternity Anstalt
%%% @doc
Test utils for Naming System
%%% @end
%%%=============================================================================
-module(aens_test_utils).
%% API
-export([new_state/0,
trees/... | null | https://raw.githubusercontent.com/aeternity/aeternity/59e05a04ea9be29a65f8a2f65f36a9f2f984e1a4/apps/aens/test/aens_test_utils.erl | erlang | =============================================================================
@doc
@end
=============================================================================
API
===================================================================
Test state
===================================================================... | ( C ) 2018 , Aeternity Anstalt
Test utils for Naming System
-module(aens_test_utils).
-export([new_state/0,
trees/1,
set_trees/2,
priv_key/2,
setup_new_account/1,
set_account_balance/3,
revoke_name/2,
preclaim_tx_spec/3,
preclaim_tx_spec/... |
4bb04e8b1b92500b8eabe92ed76d5b419ec0ed3c6b6bfd893cdbbb7c33f2216d | exercism/common-lisp | prime-factors-test.lisp | ;; Ensures that prime-factors.lisp and the testing library are always loaded
(eval-when (:compile-toplevel :load-toplevel :execute)
(load "prime-factors")
(quicklisp-client:quickload :fiveam))
;; Defines the testing package with symbols from prime-factors and FiveAM in scope
;; The `run-tests` function is exported... | null | https://raw.githubusercontent.com/exercism/common-lisp/27ac02d81e7ed684efeecfa0bc52486abb320317/exercises/practice/prime-factors/prime-factors-test.lisp | lisp | Ensures that prime-factors.lisp and the testing library are always loaded
Defines the testing package with symbols from prime-factors and FiveAM in scope
The `run-tests` function is exported for use by both the user and test-runner
Enter the testing package
Define and enter a new FiveAM test-suite | (eval-when (:compile-toplevel :load-toplevel :execute)
(load "prime-factors")
(quicklisp-client:quickload :fiveam))
(defpackage :prime-factors-test
(:use :cl :fiveam)
(:export :run-tests))
(in-package :prime-factors-test)
(def-suite* prime-factors-suite)
(test no-factors
(is (equal '() (prime-factors:fact... |
97a8ca94b26deef03c8fd67397b4571291f1dd6489e2400055f544f38ac4dab5 | softwarelanguageslab/maf | R5RS_gambit_lattice-1.scm | ; Changes:
* removed : 0
* added : 1
* swaps : 1
* negated predicates : 1
* swapped branches : 2
* calls to i d fun : 2
(letrec ((apply-append (lambda (args)
(if (null? args)
()
(if (null? (cdr args))
... | null | https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_gambit_lattice-1.scm | scheme | Changes: | * removed : 0
* added : 1
* swaps : 1
* negated predicates : 1
* swapped branches : 2
* calls to i d fun : 2
(letrec ((apply-append (lambda (args)
(if (null? args)
()
(if (null? (cdr args))
(car a... |
d4bfb160084077c8646f42b01ad1c87bb479532b99881d168eb93bb2ba049f84 | triffon/fp-2021-22 | 06.prime-acc.rkt | #lang racket
(require rackunit)
(require rackunit/text-ui)
(require "common.03.rkt")
# # # Зад 6
Имплементирайте ` prime ? ` чрез ` accumulate ` или ` accumulate - i ` .
(define (prime?-acc n)
(define (term i)
(not (= 0 (remainder n i))))
(if (< n 2)
#f
(accumulate (lambda (m l) (and m l)) #t 2 ... | null | https://raw.githubusercontent.com/triffon/fp-2021-22/63733648cf49c333ca41365abc86c208545059f9/exercises/6/03-higher-order--accumulate/solutions/06.prime-acc.rkt | racket | #lang racket
(require rackunit)
(require rackunit/text-ui)
(require "common.03.rkt")
# # # Зад 6
Имплементирайте ` prime ? ` чрез ` accumulate ` или ` accumulate - i ` .
(define (prime?-acc n)
(define (term i)
(not (= 0 (remainder n i))))
(if (< n 2)
#f
(accumulate (lambda (m l) (and m l)) #t 2 ... | |
02b929ec9376a49f3c7678b0e9c0040e79cb9288099e7ba92b1aae901404f4a8 | pikatchu/LinearML | istOfStast.ml |
Copyright ( c ) 2011 ,
All rights reserved .
Redistribution and use in source and binary forms , with or without
modification , are permitted provided that the following conditions are
met :
1 . Redistributions of source code must retain the above copyright
notice , this list of conditions and the foll... | null | https://raw.githubusercontent.com/pikatchu/LinearML/76da04134b9eb3a9ca4252e9cb41d412b50a072a/compiler/istOfStast.ml | ocaml |
Copyright ( c ) 2011 ,
All rights reserved .
Redistribution and use in source and binary forms , with or without
modification , are permitted provided that the following conditions are
met :
1 . Redistributions of source code must retain the above copyright
notice , this list of conditions and the foll... | |
239a61f82257fc2aa2321f51d4d3de5996169b2787ddb618b53bd67423498ad3 | miraj-project/miraj | async.clj | (ns miraj.protocol-engine.async
(:refer-clojure :exclude [partition-by])
(:require [clojure.core.async :as async :refer :all :exclude [into map merge partition reduce take]]
[clojure.pprint :as pp]
[clojure.string :as str]
[clojure.tools.logging :as log :only [trace debug error i... | null | https://raw.githubusercontent.com/miraj-project/miraj/bf6f7d4d1c383ac9294dcdef2ad48b3863b6d84f/src/protocol_engine/async.clj | clojure | (log/trace "loading")
dispatch-map takes URIs to input channels
TODO: support config of base path
(log/trace "launching default chan")
FIXME: only include polymer stuff on demand
js-chan (chan)]
FIXME: regex syntax
css-chan (chan)]
:styles.* #(resource-request % "/")
FIXME : validation . count of plain args mus... | (ns miraj.protocol-engine.async
(:refer-clojure :exclude [partition-by])
(:require [clojure.core.async :as async :refer :all :exclude [into map merge partition reduce take]]
[clojure.pprint :as pp]
[clojure.string :as str]
[clojure.tools.logging :as log :only [trace debug error i... |
8692ac00a5dd3abc483167e9c9956737f1c255684db77578413fb75111a08d65 | mbj/mhs | Amazonka.hs | {-# OPTIONS -Wno-orphans #-}
module MRIO.Amazonka
( Env
, HasResourceMap(..)
, ResourceMap
, paginate
, paginateEither
, send
, sendEither
, withResourceMap
)
where
import Control.Monad ((=<<))
import Control.Monad.IO.Unlift (MonadUnliftIO, liftIO, withRunInIO)
import Control.Monad.Reader (asks)
imp... | null | https://raw.githubusercontent.com/mbj/mhs/6d4bfab73d7d0ea59203656080b0f9d389f823e9/mrio-amazonka/src/MRIO/Amazonka.hs | haskell | # OPTIONS -Wno-orphans # |
module MRIO.Amazonka
( Env
, HasResourceMap(..)
, ResourceMap
, paginate
, paginateEither
, send
, sendEither
, withResourceMap
)
where
import Control.Monad ((=<<))
import Control.Monad.IO.Unlift (MonadUnliftIO, liftIO, withRunInIO)
import Control.Monad.Reader (asks)
import Control.Monad.Trans.Resou... |
4c76d0aca001dbde3aa6faf2907b948a4231098e887e4ed160d7ef5a7f5ac451 | parapluu/Concuerror | nonexistent_module.erl | -module(nonexistent_module).
-export([test/0]).
-export([scenarios/0]).
-export([exceptional/0]).
-concuerror_options_forced([]).
%%------------------------------------------------------------------------------
scenarios() -> [{test, inf, optimal}].
exceptional() ->
fun(_Expected, Actual) ->
Cmd = "grep \... | null | https://raw.githubusercontent.com/parapluu/Concuerror/152a5ccee0b6e97d8c3329c2167166435329d261/tests/suites/basic_tests/src/nonexistent_module.erl | erlang | ------------------------------------------------------------------------------
------------------------------------------------------------------------------ | -module(nonexistent_module).
-export([test/0]).
-export([scenarios/0]).
-export([exceptional/0]).
-concuerror_options_forced([]).
scenarios() -> [{test, inf, optimal}].
exceptional() ->
fun(_Expected, Actual) ->
Cmd = "grep \"Could not load module 'nonexistent_module_42'\" ",
[_,_,_|_] = os:cmd(Cmd ... |
504373c9e7699fc07890c13dc01a616292bc9c050466f0442703d51943c6ddb6 | lambdamikel/VISCO | sqd-transformer.lisp | -*- Mode : Lisp ; Syntax : Ansi - Common - Lisp ; Package : SQD ; Base : 10 -*-
(in-package sqd)
(defvar *line*)
(defvar *obj*)
(defvar *erg*)
(defun transform (liste)
(mapcar #'(lambda (obj)
(let ((master (first obj))
(rest (rest obj)))
(setf *obj* obj)
(construct maste... | null | https://raw.githubusercontent.com/lambdamikel/VISCO/836d325b5c6037517470835c635b3063446d3d8a/src/SQD/sqd-transformer.lisp | lisp | Syntax : Ansi - Common - Lisp ; Package : SQD ; Base : 10 -*-
( (master (.....) = rest ) )
transform-sqd-...
implementiert werden!
|
(in-package sqd)
(defvar *line*)
(defvar *obj*)
(defvar *erg*)
(defun transform (liste)
(mapcar #'(lambda (obj)
(let ((master (first obj))
(rest (rest obj)))
(setf *obj* obj)
liste))
Vom benutzenden Modul ( Client ) die Funktionen
Zudem : set - client - bb ( , ymin... |
49b9096b58ff06bfb116f95729b788f7798b39f13fc0d7f654505b95e6db6416 | exoscale/clojure-kubernetes-client | batch_v1beta1.clj | (ns clojure-kubernetes-client.api.batch-v1beta1
(:require [clojure-kubernetes-client.core :refer [call-api check-required-params with-collection-format *api-context*]]
[clojure.spec.alpha :as s]
[spec-tools.core :as st]
[orchestra.core :refer [defn-spec]]
[clojure-kuber... | null | https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/api/batch_v1beta1.clj | clojure | (ns clojure-kubernetes-client.api.batch-v1beta1
(:require [clojure-kubernetes-client.core :refer [call-api check-required-params with-collection-format *api-context*]]
[clojure.spec.alpha :as s]
[spec-tools.core :as st]
[orchestra.core :refer [defn-spec]]
[clojure-kuber... | |
5bb628bf02b2fa61665b2178002fbb4af362feed04af233d48b9c275547c7843 | fulcrologic/semantic-ui-wrapper | ui_menu.cljc | (ns com.fulcrologic.semantic-ui.collections.menu.ui-menu
(:require
[com.fulcrologic.semantic-ui.factory-helpers :as h]
#?(:cljs ["semantic-ui-react$Menu" :as Menu])))
(def ui-menu
"A menu displays grouped navigation actions.
Props:
- activeIndex (number|string): Index of the currently active item.... | null | https://raw.githubusercontent.com/fulcrologic/semantic-ui-wrapper/7bd53f445bc4ca7e052c69596dc089282671df6c/src/main/com/fulcrologic/semantic_ui/collections/menu/ui_menu.cljc | clojure | (ns com.fulcrologic.semantic-ui.collections.menu.ui-menu
(:require
[com.fulcrologic.semantic-ui.factory-helpers :as h]
#?(:cljs ["semantic-ui-react$Menu" :as Menu])))
(def ui-menu
"A menu displays grouped navigation actions.
Props:
- activeIndex (number|string): Index of the currently active item.... | |
ba1fd0726a05944581ea86c74a889dd0cc8f568f7fa5efd0137ebf1e27e0dece | ucsd-progsys/liquidhaskell | IrregularData.hs | {-@ LIQUID "--expect-error-containing=is not a subtype of the required type" @-}
{-@ LIQUID "--reflection" @-}
module IrregularData where
import Language.Haskell.Liquid.ProofCombinators (Proof, (***), QED(..), (===))
-- import Demo.Lib
---------------------------------
-- Copy pasted from containers --
-----------... | null | https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/f46dbafd6ce1f61af5b56f31924c21639c982a8a/tests/errors/IrregularData.hs | haskell | @ LIQUID "--expect-error-containing=is not a subtype of the required type" @
@ LIQUID "--reflection" @
import Demo.Lib
-------------------------------
Copy pasted from containers --
-------------------------------
@ reflect consTree @
-----------------------
Complexity analysis --
-----------------------
@ reflect ... |
module IrregularData where
import Language.Haskell.Liquid.ProofCombinators (Proof, (***), QED(..), (===))
data FingerTree a
= EmptyT
| Single a
| Deep !(Digit a) (FingerTree (Node a)) !(Digit a)
data Node a
= Node2 a a
| Node3 a a a
data Digit a
= One a
| Two a a
| Three a a a
... |
1e76f062dc75218bbb0601bbead8d5ffd6af4eb52f2d107d6c258ce60bcd1e27 | clj-easy/graalvm-clojure | project.clj | (defproject clara-rules "0.1.0-SNAPSHOT"
:dependencies [[org.clojure/clojure "1.10.3"]
[com.cerner/clara-rules "0.21.0"]]
:main simple.main
:uberjar-name "simple-main.jar"
:profiles {:uberjar {:aot :all}
:dev {:plugins [[lein-shell "0.5.0"]]}}
:aliases
{"native"
["shell... | null | https://raw.githubusercontent.com/clj-easy/graalvm-clojure/5de155ad4f95d5dac97aac1ab3d118400e7d186f/clara-rules/project.clj | clojure | (defproject clara-rules "0.1.0-SNAPSHOT"
:dependencies [[org.clojure/clojure "1.10.3"]
[com.cerner/clara-rules "0.21.0"]]
:main simple.main
:uberjar-name "simple-main.jar"
:profiles {:uberjar {:aot :all}
:dev {:plugins [[lein-shell "0.5.0"]]}}
:aliases
{"native"
["shell... | |
6b0653550a86f28810fe45807616d00441ea446182afe51b1d0816367f7325a1 | mumuki/mulang | JavaScript.hs | module Language.Mulang.Normalizers.JavaScript (javaScriptNormalizationOptions) where
import Language.Mulang.Transform.Normalizer (unnormalized, NormalizationOptions(..), SequenceSortMode(..))
javaScriptNormalizationOptions :: NormalizationOptions
javaScriptNormalizationOptions = unnormalized {
convertObjectVariable... | null | https://raw.githubusercontent.com/mumuki/mulang/92684f687566b2adafb331eae5b5916e2d90709e/src/Language/Mulang/Normalizers/JavaScript.hs | haskell | module Language.Mulang.Normalizers.JavaScript (javaScriptNormalizationOptions) where
import Language.Mulang.Transform.Normalizer (unnormalized, NormalizationOptions(..), SequenceSortMode(..))
javaScriptNormalizationOptions :: NormalizationOptions
javaScriptNormalizationOptions = unnormalized {
convertObjectVariable... | |
148b46f29c5bda0c76359d67f171a84aa5446cc6240d030a1efa72c6acc0d28d | binaryage/chromex | chrome_port_state.cljs | (ns chromex.protocols.chrome-port-state)
(defprotocol IChromePortState
(set-connected! [this val])
(put-message! [this message])
(close-resources! [this]))
| null | https://raw.githubusercontent.com/binaryage/chromex/33834ba5dd4f4238a3c51f99caa0416f30c308c5/src/lib/chromex/protocols/chrome_port_state.cljs | clojure | (ns chromex.protocols.chrome-port-state)
(defprotocol IChromePortState
(set-connected! [this val])
(put-message! [this message])
(close-resources! [this]))
| |
9ac3a34a948c4bbf229d6e0e9f86702c466ab6b2d8332af1fb6bef827456994b | cjohansen/pharmacist | cache_test.cljc | (ns pharmacist.cache-test
(:refer-clojure :exclude [get])
(:require [pharmacist.cache :as sut]
[pharmacist.data-source :as data-source]
#?(:clj [pharmacist.clojure-test-helper :refer [defscenario]])
#?(:clj [clojure.test :refer [deftest testing is]]
:cljs [cljs.tes... | null | https://raw.githubusercontent.com/cjohansen/pharmacist/ecbba7d72aadeb16a42f427ac87afd7b9daa4c22/test/pharmacist/cache_test.cljc | clojure | (ns pharmacist.cache-test
(:refer-clojure :exclude [get])
(:require [pharmacist.cache :as sut]
[pharmacist.data-source :as data-source]
#?(:clj [pharmacist.clojure-test-helper :refer [defscenario]])
#?(:clj [clojure.test :refer [deftest testing is]]
:cljs [cljs.tes... | |
56e46b488830d681ce79e5335fe1042f80c432be3924d8b67468786b06938a45 | clojure-interop/google-cloud-clients | BlobInfo$CustomerEncryption.clj | (ns com.google.cloud.storage.BlobInfo$CustomerEncryption
"Objects of this class hold information on the customer-supplied encryption key, if the blob is
encrypted using such a key."
(:refer-clojure :only [require comment defn ->])
(:import [com.google.cloud.storage BlobInfo$CustomerEncryption]))
(defn get-encr... | null | https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.storage/src/com/google/cloud/storage/BlobInfo%24CustomerEncryption.clj | clojure | (ns com.google.cloud.storage.BlobInfo$CustomerEncryption
"Objects of this class hold information on the customer-supplied encryption key, if the blob is
encrypted using such a key."
(:refer-clojure :only [require comment defn ->])
(:import [com.google.cloud.storage BlobInfo$CustomerEncryption]))
(defn get-encr... | |
89b8a4cbc046bf37cc86c6940039bc0691689b8995bcf007ae76929986360d66 | multiformats/clj-multistream | codec_test.clj | (ns multistream.codec-test
(:require
[clojure.string :as str]
[clojure.test :refer :all]
[multistream.codec :as codec]
[multistream.codec.bin :refer [bin-codec]]
[multistream.codec.compress :refer [gzip-codec]]
[multistream.codec.transform :refer [transform-codec]]
[multistream.codec.text ... | null | https://raw.githubusercontent.com/multiformats/clj-multistream/c66d61a28bc9d54beb04a45f76b40a101a1f0a32/test/multistream/codec_test.clj | clojure | (ns multistream.codec-test
(:require
[clojure.string :as str]
[clojure.test :refer :all]
[multistream.codec :as codec]
[multistream.codec.bin :refer [bin-codec]]
[multistream.codec.compress :refer [gzip-codec]]
[multistream.codec.transform :refer [transform-codec]]
[multistream.codec.text ... | |
7e2a01c09b0d6c2087f6aa99005cbe8aa6636cc863aca3d5fc063c975461a1e4 | mhwombat/grid | Square.hs | ------------------------------------------------------------------------
-- |
Module : Math . Geometry . SquareGrid
Copyright : ( c ) 2012 - 2022
-- License : BSD-style
-- Maintainer :
-- Stability : experimental
-- Portability : portable
--
-- A regular arrangement of square tiles.
-- T... | null | https://raw.githubusercontent.com/mhwombat/grid/b8c4a928733494f4a410127d6ae007857de921f9/src/Math/Geometry/Grid/Square.hs | haskell | ----------------------------------------------------------------------
|
License : BSD-style
Maintainer :
Stability : experimental
Portability : portable
A regular arrangement of square tiles.
The userguide, with illustrations, is available at
<>.
Also see @Math.Geometry.Grid@ for examples of how ... | Module : Math . Geometry . SquareGrid
Copyright : ( c ) 2012 - 2022
# LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
module Math.Geometry.Grid.Square
(
UnboundedSquareGrid(..),
RectSquareGrid(..),
rectSquareGrid,
TorSquareGrid(..),
torSquareGrid
) where... |
58251e13d17c5cd6734da3badad52d4cc6dc6da4b5cee1580543811b94cbcd85 | xapi-project/ocaml-xen-lowlevel-libs | xentoollog.mli |
* AUTO - GENERATED FILE DO NOT EDIT
* Generated from xentoollog.mli.in and _ xtl_levels.mli.in
* AUTO-GENERATED FILE DO NOT EDIT
* Generated from xentoollog.mli.in and _xtl_levels.mli.in
*)
* Copyright ( C ) 2012 Citrix Ltd.
* Author < >
*
* This program is free software ; you can redi... | null | https://raw.githubusercontent.com/xapi-project/ocaml-xen-lowlevel-libs/ef9df16b5655180e7d8ebc2dca919c8bdacd963a/xentoollog-4.9/xentoollog.mli | ocaml | @@XTL_LEVELS@@
AUTO-GENERATED FILE DO NOT EDIT
autogenerated by
genlevels.py _xtl_levels.mli.in _xtl_levels.ml.in _xtl_levels.inc
END OF AUTO-GENERATED CODE
destroy : handle -> unit |
* AUTO - GENERATED FILE DO NOT EDIT
* Generated from xentoollog.mli.in and _ xtl_levels.mli.in
* AUTO-GENERATED FILE DO NOT EDIT
* Generated from xentoollog.mli.in and _xtl_levels.mli.in
*)
* Copyright ( C ) 2012 Citrix Ltd.
* Author < >
*
* This program is free software ; you can redi... |
1bbaecfc62274e7852b6b8e8e97d0e6814da78ca1647e4f4b6bb2ce5cb13a503 | slipstream/SlipStreamServer | job_lifecycle_test.clj | (ns com.sixsq.slipstream.ssclj.resources.job-lifecycle-test
(:require
[clojure.data.json :as json]
[clojure.string :as s]
[clojure.test :refer [deftest is use-fixtures]]
[com.sixsq.slipstream.ssclj.app.params :as p]
[com.sixsq.slipstream.ssclj.middleware.authn-info-header :refer [authn-info-header... | null | https://raw.githubusercontent.com/slipstream/SlipStreamServer/3ee5c516877699746c61c48fc72779fe3d4e4652/cimi-resources/test/com/sixsq/slipstream/ssclj/resources/job_lifecycle_test.clj | clojure | anonymous create should fail
user create should fail | (ns com.sixsq.slipstream.ssclj.resources.job-lifecycle-test
(:require
[clojure.data.json :as json]
[clojure.string :as s]
[clojure.test :refer [deftest is use-fixtures]]
[com.sixsq.slipstream.ssclj.app.params :as p]
[com.sixsq.slipstream.ssclj.middleware.authn-info-header :refer [authn-info-header... |
0b7005769a82263ea1a9d98bb8682a157ceb9f012dce68df606c39acab8b67d2 | fyquah/hardcaml_zprize | squarer.ml | open Base
open Hardcaml
open Signal
open Reg_with_enable
module Config = struct
module Level = Karatsuba_ofman_mult.Config.Level
type t =
{ levels : Level.t list
; ground_multiplier : Ground_multiplier.Config.t
}
let latency { levels; ground_multiplier } =
match levels with
| [] -> Ground_m... | null | https://raw.githubusercontent.com/fyquah/hardcaml_zprize/553b1be10ae9b977decbca850df6ee2d0595e7ff/libs/field_ops/src/squarer.ml | ocaml | open Base
open Hardcaml
open Signal
open Reg_with_enable
module Config = struct
module Level = Karatsuba_ofman_mult.Config.Level
type t =
{ levels : Level.t list
; ground_multiplier : Ground_multiplier.Config.t
}
let latency { levels; ground_multiplier } =
match levels with
| [] -> Ground_m... | |
2fa8c3d9f658d27bfd6836751eb56846acb1ba749f3323c1026ad5a4ca3716d6 | Denommus/monadic | composition.ml | module ComposeFunctor (F1 : Monad.FUNCTOR) (F2 : Monad.FUNCTOR) = struct
module ComposeFunctor = struct
type 'a t = 'a F2.t F1.t
let map f x = F1.map (F2.map f) x [@@inline]
end
include ComposeFunctor
module Infix = Monad.FunctorInfix (ComposeFunctor)
include Infix
end
module ComposeApplicative (A1... | null | https://raw.githubusercontent.com/Denommus/monadic/7cbf9b309800303665a6712a9b57c1d9c66e75b8/library/composition.ml | ocaml | module ComposeFunctor (F1 : Monad.FUNCTOR) (F2 : Monad.FUNCTOR) = struct
module ComposeFunctor = struct
type 'a t = 'a F2.t F1.t
let map f x = F1.map (F2.map f) x [@@inline]
end
include ComposeFunctor
module Infix = Monad.FunctorInfix (ComposeFunctor)
include Infix
end
module ComposeApplicative (A1... | |
d6aa13b2f20a59d27e24c1e4ad49d9b56a2d4457319c1e3710036ea2ecd42682 | joneshf/open-source | Format.hs | # LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
{-# LANGUAGE PackageImports #-}
# LANGUAGE TypeApplications #
module Shake.Go.Format (rules) where
import "mtl" Control.Monad.Reader (ReaderT, asks, lift)
import "shake" Development.Shake
( Rules
, cmd_
, copyFileChanged
, need
, needed
... | null | https://raw.githubusercontent.com/joneshf/open-source/e3412fc68c654d89a8d3af4e12ac19c70e3055ec/Shake/Go/Format.hs | haskell | # LANGUAGE PackageImports # | # LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
# LANGUAGE TypeApplications #
module Shake.Go.Format (rules) where
import "mtl" Control.Monad.Reader (ReaderT, asks, lift)
import "shake" Development.Shake
( Rules
, cmd_
, copyFileChanged
, need
, needed
, (%>)
, (<//>)
)
imp... |
eda3537296820fb40213ef649dcde8ee96fa5eeb4b2b89106f4f2df826e54c66 | spurious/chibi-scheme-mirror | stty.scm | Copyright ( c ) 2011 . All rights reserved .
;; BSD-style license:
> A high - level interface to stty and ioctl .
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; symbolic representation of attributes
(define stty-lookup (make-hash-table eq?))
(for-each
(lambda (c)
(let ((type ... | null | https://raw.githubusercontent.com/spurious/chibi-scheme-mirror/49168ab073f64a95c834b5f584a9aaea3469594d/lib/chibi/stty.scm | scheme | BSD-style license:
symbolic representation of attributes
available on most systems
characters
will send a terminal stop signal
CHAR will end the line
CHAR will erase the last character typed
CHAR will send an interrupt signal
CHAR will erase the current line
CHAR will enter the next character quoted
CHAR ... | Copyright ( c ) 2011 . All rights reserved .
> A high - level interface to stty and ioctl .
(define stty-lookup (make-hash-table eq?))
(for-each
(lambda (c)
(let ((type (cadr c))
(value (car (cddr c))))
(hash-table-set! stty-lookup (car c) (cdr c))))
ripped from the stty man page , then t... |
d78ea9696971f69b084aa763f24f37880c25ef7ba27f4ab9ef57b8fcccfb8325 | nuprl/gradual-typing-performance | main.rkt | #lang racket/base
(require
"date.rkt"
"time.rkt"
"datetime.rkt"
"moment-base.rkt"
)
(require "moment.rkt"
)
(require "clock.rkt"
)
(require "difference.rkt"
)
;; =============================================================================
(: - DATES ( - > ( ) ) )
(define (HISTORIC-DATES)
(list
( dateti... | null | https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/experimental/postmortem/experiments/adaptor/many-adaptor/gregor/untyped/main.rkt | racket | =============================================================================
9/11 part I
Taft
Jackson
Lunar landing
-- tests
(: test-clock (-> Void))
-- current-time
-- now
-- "moment"
-- test-case "current-time"
-- test-case "now"
-- test-case "now/moment"
(: main (-> Natural Boolean Void))
134ms
(require... | #lang racket/base
(require
"date.rkt"
"time.rkt"
"datetime.rkt"
"moment-base.rkt"
)
(require "moment.rkt"
)
(require "clock.rkt"
)
(require "difference.rkt"
)
(: - DATES ( - > ( ) ) )
(define (HISTORIC-DATES)
(list
( datetime YEAR MONTH DAY HOUR MINUTE SECOND NANOSECOND )
9/11 part II
D - Day
(d... |
850d8f0ad0c46eddd6fd27a22724bdfbaaf0514fa45dba5203483a0e6946fa33 | grin-compiler/ghc-wpc-sample-programs | CommonMark.hs | {-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ViewPatterns #-}
|
Module : Text . Pandoc . Readers . CommonMark
Copyright : Copyright ( C ) 2015 - 2020
License : GNU GPL , version 2 or above
Maintainer : < >
Stability : alpha
Portability : portable
Conve... | null | https://raw.githubusercontent.com/grin-compiler/ghc-wpc-sample-programs/0e3a9b8b7cc3fa0da7c77fb7588dd4830fb087f7/pandoc-11df2a3c0f2b1b8e351ad8caaa7cdf583e1b3b2e/src/Text/Pandoc/Readers/CommonMark.hs | haskell | # LANGUAGE OverloadedStrings #
# LANGUAGE ViewPatterns #
shouldn't happen
Note: the cmark parser will never generate CUSTOM_BLOCK,
so we don't need to handle it:
handled in TABLE
handled in TABLE
Note: the cmark parser will never generate CUSTOM_BLOCK,
so we don't need to handle it: | |
Module : Text . Pandoc . Readers . CommonMark
Copyright : Copyright ( C ) 2015 - 2020
License : GNU GPL , version 2 or above
Maintainer : < >
Stability : alpha
Portability : portable
Conversion of CommonMark - formatted plain text to ' Pandoc ' document .
... |
7655ce53f10ce004ac596e254cdea0b8bcf1cf80703cac2169bd486a297ed2de | blynn/compiler | douady.hs | infixr 9 .;
infixl 7 * , /;
infixl 6 + , -;
infixr 5 ++;
infix 4 == , <= , <;
infixr 0 $;
data Bool = True | False;
ife a b c = case a of { True -> b ; False -> c };
($) f x = f x;
(.) f g x = f (g x);
flip f x y = f y x;
fpair p = \f -> case p of { (,) x y -> f x y };
flst xs n c = case xs of { [] -> n; (:) h t -> c h... | null | https://raw.githubusercontent.com/blynn/compiler/b9fe455ad4ee4fbabe77f2f5c3c9aaa53cffa85b/wasm/douady.hs | haskell | Arithmetic right shift. | infixr 9 .;
infixl 7 * , /;
infixl 6 + , -;
infixr 5 ++;
infix 4 == , <= , <;
infixr 0 $;
data Bool = True | False;
ife a b c = case a of { True -> b ; False -> c };
($) f x = f x;
(.) f g x = f (g x);
flip f x y = f y x;
fpair p = \f -> case p of { (,) x y -> f x y };
flst xs n c = case xs of { [] -> n; (:) h t -> c h... |
b54a55fd238dde42ee6cba6e01a1edc1dc8691b3c981972ac9fdd8d27ba9d499 | zcaudate/hara | analyser_test.clj | (ns hara.deploy.analyser-test
(:use hara.test)
(:require [hara.deploy.analyser :refer :all]
[hara.deploy.common :as common]
[hara.io.project :as project]))
^{:refer hara.deploy.analyser/create-lookups :added "3.0"}
(fact "creates a series of code lookup maps"
(create-lookups (project/pro... | null | https://raw.githubusercontent.com/zcaudate/hara/481316c1f5c2aeba5be6e01ae673dffc46a63ec9/test/hara/deploy/analyser_test.clj | clojure | (ns hara.deploy.analyser-test
(:use hara.test)
(:require [hara.deploy.analyser :refer :all]
[hara.deploy.common :as common]
[hara.io.project :as project]))
^{:refer hara.deploy.analyser/create-lookups :added "3.0"}
(fact "creates a series of code lookup maps"
(create-lookups (project/pro... | |
7ebf7397b00e0b28da684ff66c0b4cc49a92b36894b3421f0d14ebed9649dc3b | typedbyte/effet | Strict.hs | # LANGUAGE TemplateHaskell #
-----------------------------------------------------------------------------
-- |
-- Module : Control.Effect.State.Strict
Copyright : ( c ) , 2020
-- License : BSD3 (see the file LICENSE)
-- Maintainer :
-- Stability : stable
-- Portability : portable
--
-- Stric... | null | https://raw.githubusercontent.com/typedbyte/effet/b1e0e2188ae59f0c079b83be6d59f016c5e4baf5/src/Control/Effect/State/Strict.hs | haskell | ---------------------------------------------------------------------------
|
Module : Control.Effect.State.Strict
License : BSD3 (see the file LICENSE)
Maintainer :
Stability : stable
Portability : portable
Strict interpretations of the 'State'' effect.
If you don't require disambiguation o... | # LANGUAGE TemplateHaskell #
Copyright : ( c ) , 2020
( i.e. , you only have one state effect in your monadic context ) ,
module Control.Effect.State.Strict
evalState'
, execState'
, runState'
, evalState
, execState
, runState
) where
import Data.Tuple (swap)
import Control.Monad.Trans.Sta... |
aff09c3335cb129924a4fcb59d987ee851c920fda929f51e8ce66d0e54c82673 | haroldcarr/learn-haskell-coq-ml-etc | X01.hs | # LANGUAGE NoImplicitPrelude #
module X01 where
import Data.Void
import Protolude
import Test.Hspec
-- /#phantom-types
newtype Foo tag a = Foo a deriving (Eq, Show)
combine :: Num a => Foo tag a -> Foo tag a -> Foo tag a
combine (Foo a) (Foo b) = Foo (a + b)
{-
Notice the type variab... | null | https://raw.githubusercontent.com/haroldcarr/learn-haskell-coq-ml-etc/b4e83ec7c7af730de688b7376497b9f49dc24a0e/haskell/topic/phantoms/hc-phantom/src/X01.hs | haskell | /#phantom-types
Notice the type variable tag does not appear in the right hand side of the declaration.
Enables expressing invariants at type-level that need not manifest at value-level.
This adds extra information at the type-level.
All identical at the value level, but differ at the type level.
------------------... | # LANGUAGE NoImplicitPrelude #
module X01 where
import Data.Void
import Protolude
import Test.Hspec
newtype Foo tag a = Foo a deriving (Eq, Show)
combine :: Num a => Foo tag a -> Foo tag a -> Foo tag a
combine (Foo a) (Foo b) = Foo (a + b)
aa :: Foo () Int
aa = Foo 1
bb :: Foo t I... |
48d64e0ed138cd6a62d05e28b7143a4df37019d5dc0785d74270b012888b6332 | metabase/metabase | timezone.clj | (ns metabase.test.util.timezone
(:require
[clojure.test :as t]
[hawk.parallel]
[metabase.driver :as driver]
[metabase.test.initialize :as initialize])
(:import
(java.util TimeZone)))
(set! *warn-on-reflection* true)
(defn do-with-system-timezone-id [^String timezone-id thunk]
;; skip all the prop... | null | https://raw.githubusercontent.com/metabase/metabase/7e3048bf73f6cb7527579446166d054292166163/test/metabase/test/util/timezone.clj | clojure | skip all the property changes if the system timezone doesn't need to be changed.
only if the app DB is already set up, we need to make sure plugins are loaded and kill any connection pools that
might exist | (ns metabase.test.util.timezone
(:require
[clojure.test :as t]
[hawk.parallel]
[metabase.driver :as driver]
[metabase.test.initialize :as initialize])
(:import
(java.util TimeZone)))
(set! *warn-on-reflection* true)
(defn do-with-system-timezone-id [^String timezone-id thunk]
(let [original-timez... |
badd858851c746bdec2943e3c603f8329a052e00ca8f787d7e5d60b7258d7892 | elastic/eui-cljs | header_section_item.cljs | (ns eui.header-section-item
(:require ["@elastic/eui/lib/components/header/header_section/header_section_item.js" :as eui]))
(def EuiHeaderSectionItem eui/EuiHeaderSectionItem)
| null | https://raw.githubusercontent.com/elastic/eui-cljs/ad60b57470a2eb8db9bca050e02f52dd964d9f8e/src/eui/header_section_item.cljs | clojure | (ns eui.header-section-item
(:require ["@elastic/eui/lib/components/header/header_section/header_section_item.js" :as eui]))
(def EuiHeaderSectionItem eui/EuiHeaderSectionItem)
| |
321bfa006bf20b1555a9ffa49e7d4fbb365a0ec8a20d430c758a58a1c91cffd9 | FranklinChen/hugs98-plus-Sep2006 | Queries.hs | module Queries where
import Database.HSQL
createTables :: Connection -> IO ()
createTables c = do
execute c "create table Test(id integer not null, name varchar(255) not null)"
dropTables :: Connection -> IO ()
dropTables c = do
execute c "drop table Test"
insertRecords :: Connection -> IO ()
insert... | null | https://raw.githubusercontent.com/FranklinChen/hugs98-plus-Sep2006/54ab69bd6313adbbed1d790b46aca2a0305ea67e/packages/Cabal/tests/HSQL/examples/Queries.hs | haskell | module Queries where
import Database.HSQL
createTables :: Connection -> IO ()
createTables c = do
execute c "create table Test(id integer not null, name varchar(255) not null)"
dropTables :: Connection -> IO ()
dropTables c = do
execute c "drop table Test"
insertRecords :: Connection -> IO ()
insert... | |
d923d6f0220093b4ec90aedd8a4e6fb1d1971c26326e61f6781aacd104c9d432 | multunus/dashboard-clj | webserver.clj | (ns dashboard-clj.components.webserver
(:require [com.stuartsierra.component :as component]
[org.httpkit.server :refer [run-server]]))
(defrecord WebServer [server ->http-handler options websocket]
component/Lifecycle
(start [component]
(let [ring-ajax-post (get websocket :ring-aja... | null | https://raw.githubusercontent.com/multunus/dashboard-clj/14ec30d6eb4a2fdbaadfec52beb572f250b0c781/src/clj/dashboard_clj/components/webserver.clj | clojure | (ns dashboard-clj.components.webserver
(:require [com.stuartsierra.component :as component]
[org.httpkit.server :refer [run-server]]))
(defrecord WebServer [server ->http-handler options websocket]
component/Lifecycle
(start [component]
(let [ring-ajax-post (get websocket :ring-aja... | |
295c28d097624344b92a50e2ded0f772b1e9366a494eb3d5d4c5cdd1ebf9e739 | vilmibm/murepl | common.clj | (ns murepl.common)
(def directions [:north :south :west :east :up :down])
(defn valid-direction? [direction]
(some #{direction} directions))
(defn opposite-dir [direction]
(case direction
:north :south
:south :north
:east :west
:west :east
:up :down
:down :up))
(defn pretty-came-from [di... | null | https://raw.githubusercontent.com/vilmibm/murepl/74ee5979ef2f09301103d0281b35a7e226bc1997/src/murepl/common.clj | clojure | (ns murepl.common)
(def directions [:north :south :west :east :up :down])
(defn valid-direction? [direction]
(some #{direction} directions))
(defn opposite-dir [direction]
(case direction
:north :south
:south :north
:east :west
:west :east
:up :down
:down :up))
(defn pretty-came-from [di... | |
a8fc3f85554dc3315f8614d086b788f3beeaca353a4c43d1064374510999a8cf | nandor/llir-ocaml | callstacks.ml | (* TEST
flags = "-g -w -5"
compare_programs = "false"
* flat-float-array
reference = "${test_source_directory}/callstacks.flat-float-array.reference"
** not-llir
*** native
*** bytecode
* no-flat-float-array
reference = "${test_source_directory}/callstacks.no-flat-float-array.reference"... | null | https://raw.githubusercontent.com/nandor/llir-ocaml/9c019f15c444e30c825b1673cbe827e0497868fe/testsuite/tests/statmemprof/callstacks.ml | ocaml | TEST
flags = "-g -w -5"
compare_programs = "false"
* flat-float-array
reference = "${test_source_directory}/callstacks.flat-float-array.reference"
** not-llir
*** native
*** bytecode
* no-flat-float-array
reference = "${test_source_directory}/callstacks.no-flat-float-array.reference"
... |
open Gc.Memprof
let alloc_list_literal () =
ignore (Sys.opaque_identity [Sys.opaque_identity 1])
let alloc_pair () =
ignore (Sys.opaque_identity (Sys.opaque_identity 1, Sys.opaque_identity 2))
type record = { a : int; b : int }
let alloc_record () =
ignore (Sys.opaque_identity
{a = Sys.opaque_iden... |
bafea8a2903ef54f169c1d60ce86ad73fe4f8570b5ab1d595729cd16c3766153 | geophf/1HaskellADay | Query.hs | {-# LANGUAGE OverloadedStrings #-}
module Graph.Query where
import Data.Aeson
import Data.Foldable (toList)
import qualified Data.ByteString.Lazy.Char8 as BL
import Network .
import Network.HTTP
import System.Environment
below imports available via 1HaskellADay git repository
import Graph.JSON.Cypher
import ... | null | https://raw.githubusercontent.com/geophf/1HaskellADay/514792071226cd1e2ba7640af942667b85601006/exercises/HAD/Graph/Query.hs | haskell | # LANGUAGE OverloadedStrings #
}
ref : Analytics . Trading . Web . Upload . Cypher --
ref: Analytics.Trading.Web.Upload.Cypher --
}
}
} |
module Graph.Query where
import Data.Aeson
import Data.Foldable (toList)
import qualified Data.ByteString.Lazy.Char8 as BL
import Network .
import Network.HTTP
import System.Environment
below imports available via 1HaskellADay git repository
import Graph.JSON.Cypher
import Data.Relation
- A solution to the ... |
385ab844f50b390267cf383cbee2052ce120e9bc688217801f42db28f660f535 | elaforge/karya | Tag.hs | Copyright 2013
-- This program is distributed under the terms of the GNU General Public
-- License 3.0, see COPYING or -3.0.txt
-- | Tags are used to index patches. They're just strings and their meaning
-- is convention, but there are some with standardized meanings.
--
-- Any attribute of a patch that should be... | null | https://raw.githubusercontent.com/elaforge/karya/471a2131f5a68b3b10b1a138e6f9ed1282980a18/Instrument/Tag.hs | haskell | This program is distributed under the terms of the GNU General Public
License 3.0, see COPYING or -3.0.txt
| Tags are used to index patches. They're just strings and their meaning
is convention, but there are some with standardized meanings.
Any attribute of a patch that should be searchable should be given a ta... | Copyright 2013
module Instrument.Tag where
import Data.Text (Text)
type Tag = (Key, Value)
type Key = Text
type Value = Text
backend :: Key
backend = "backend"
category :: Key
category = "category"
control :: Key
control = "control"
file :: Key
file = "file"
name :: Key
name = "name"
synth :: Key
synth = "... |
f9319bd86e65038e5aad3d1fc4617650f6ea2c1051b62d44933f5b1e56d09127 | Eduap-com/WordMat | matcom.lisp | -*- Mode : Lisp ; Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; The data in this file contains enhancments. ;;;;;
;;; ;;;;;
... | null | https://raw.githubusercontent.com/Eduap-com/WordMat/83c9336770067f54431cc42c7147dc6ed640a339/Windows/ExternalPrograms/maxima-5.45.1/share/maxima/5.45.1/src/matcom.lisp | lisp | Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ;
The data in this file contains enhancments. ;;;;;
;;;;;
; ; ; ;
All rights reserved ;;;;;
; ;
This is the M... |
(in-package :maxima)
(macsyma-module matcom)
(declare-top (special $rules $props boundlist reflist topreflist program))
(defmvar $announce_rules_firing nil)
(defmspec $matchdeclare (form)
(let ((meta-prop-p nil))
(proc-$matchdeclare (cdr form))))
(defun proc-$matchdeclare (x)
(if (oddp (length x))
... |
c90a63a8dce05256990dcf8152ceb625f29b52e599e602f3a3d5fa3bbf5269cb | fetburner/compelib | bfs.mli | module type DirectedGraph = sig
module Vertex : sig
type t
(* 現在の頂点までの経路長を取得する *)
val get_distance : t -> int
(* 頂点までの経路長を上書きする *)
val set_distance : t -> int -> unit
(* 最短経路を求めたいグラフの,ある頂点から伸びる辺に対してのイテレータ *)
val iter_adjacencies : t -> (t -> unit) -> unit
end
end
BFSにより,重みのないグラフの最短経路長... | null | https://raw.githubusercontent.com/fetburner/compelib/d8fc5d9acd04e676c4d4d2ca9c6a7140f1b85670/lib/graph/bfs.mli | ocaml | 現在の頂点までの経路長を取得する
頂点までの経路長を上書きする
最短経路を求めたいグラフの,ある頂点から伸びる辺に対してのイテレータ
グラフに含まれる頂点への経路長は全て無限大で初期化されている必要がある
始点 | module type DirectedGraph = sig
module Vertex : sig
type t
val get_distance : t -> int
val set_distance : t -> int -> unit
val iter_adjacencies : t -> (t -> unit) -> unit
end
end
BFSにより,重みのないグラフの最短経路長を求める
val shortest_path :
(module DirectedGraph with type Vertex.t = 'vertex) ->
'vertex ->
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.