_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
3656a8f974f583c432d1325fef973a57874be84725a36364450758404f26298b
AccelerationNet/a-cl-logger
log.lisp
;; -*- lisp -*- (in-package :a-cl-logger) (cl-interpol:enable-interpol-syntax) (define-condition missing-logger (error) ((name :accessor name :initarg :name :initform nil)) (:report (lambda (c s) (format s "~&Error: no logger defined named :~S" (name c))))) (define-condition log-argument-evaluation-...
null
https://raw.githubusercontent.com/AccelerationNet/a-cl-logger/cf2b586e9fae0ae2f11ec132a45d69ff8f82d2d5/log.lisp
lisp
-*- lisp -*- loggers have to have non-keyword names potential race condition ** Loggers we change the one on the condition that is passing through all the handlers make sure that all changed messages are visible a dot followed by lookahead: no more dots till the end of the string TODO: Do we want this error her...
(in-package :a-cl-logger) (cl-interpol:enable-interpol-syntax) (define-condition missing-logger (error) ((name :accessor name :initarg :name :initform nil)) (:report (lambda (c s) (format s "~&Error: no logger defined named :~S" (name c))))) (define-condition log-argument-evaluation-error (error) ...
0e02a112c9ae2d7cd920e071bccce8d78eb1836b9ff87ba01a4f09adb4ffda48
tweag/ormolu
preserve-trailing-whitespace-out.hs
foo = 2 {- ORMOLU_DISABLE -} bar = 3 ORMOLU_ENABLE
null
https://raw.githubusercontent.com/tweag/ormolu/897e6736ec17d7e359091abe3c24f4abfec015c4/data/examples/other/disabling/preserve-trailing-whitespace-out.hs
haskell
ORMOLU_DISABLE
foo = 2 bar = 3 ORMOLU_ENABLE
d659f8bc092c658fa636a24a987bf74321ec68ebfcaee7c7b4f33e276e7bbd6f
GumTreeDiff/cgum
type_c.mli
* Copyright 2014 , INRIA * * This file is part of Cgen . Much of it comes from Coccinelle , which is * also available under the GPLv2 license * * Cgen 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 So...
null
https://raw.githubusercontent.com/GumTreeDiff/cgum/8521aa80fcf4873a19e60ce8c846c886aaefb41b/parsing_c/type_c.mli
ocaml
lookup typing rules helpers return normalize types ? builders helpers bis
* Copyright 2014 , INRIA * * This file is part of Cgen . Much of it comes from Coccinelle , which is * also available under the GPLv2 license * * Cgen 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 So...
387cc77a4cc05f1c48e97d56a1cc32f46a47d2f80011c9c0833243b47b6383e3
v-kolesnikov/sicp
2_67.clj
(ns sicp.chapter02.2-67 (:require [sicp.common :refer [error]])) (defn make-leaf [sym weight] (list 'leaf sym weight)) (defn leaf? [node] (= 'leaf (first node))) (defn symbol-leaf [leaf] (-> leaf rest first)) (defn weight-leaf [leaf] (-> leaf rest rest first)) (defn left-branch [[l _ _ _]] l) (d...
null
https://raw.githubusercontent.com/v-kolesnikov/sicp/4298de6083440a75898e97aad658025a8cecb631/src/sicp/chapter02/2_67.clj
clojure
(ns sicp.chapter02.2-67 (:require [sicp.common :refer [error]])) (defn make-leaf [sym weight] (list 'leaf sym weight)) (defn leaf? [node] (= 'leaf (first node))) (defn symbol-leaf [leaf] (-> leaf rest first)) (defn weight-leaf [leaf] (-> leaf rest rest first)) (defn left-branch [[l _ _ _]] l) (d...
0d856bd8c617fe10786daef8877cdcc0929f7325440958a75e7e30137884ebff
gator1/jepsen
document_cas.clj
(ns jepsen.mongodb.document-cas "Compare-and-set against a single document." (:refer-clojure :exclude [test]) (:require [clojure [pprint :refer :all] [string :as str]] [clojure.java.io :as io] [clojure.tools.logging :refer [debug info warn]] [jepsen [core ...
null
https://raw.githubusercontent.com/gator1/jepsen/1932cbd72cbc1f6c2a27abe0fe347ea989f0cfbb/mongodb/src/jepsen/mongodb/document_cas.clj
clojure
Reads are idempotent; we can treat their failure as an info. Normal read storage engine, if you perform a write the same as the current value. Check how many documents we actually modified. Generators
(ns jepsen.mongodb.document-cas "Compare-and-set against a single document." (:refer-clojure :exclude [test]) (:require [clojure [pprint :refer :all] [string :as str]] [clojure.java.io :as io] [clojure.tools.logging :refer [debug info warn]] [jepsen [core ...
c4598b346cfc9f5d1ce2254cf4359b5af4933c3b35469573acf810491065dff7
aarkerio/ZentaurLMS
error_page.clj
(ns zentaur.middleware.error-page (:require [clojure.tools.logging :as log] [zentaur.controllers.company-controller :as ccon])) (defn wrap-exception [handler] (fn [request] (try (handler request) (catch Exception ex ( ccon / display - error {:status 500 :title "500 - Exceptio...
null
https://raw.githubusercontent.com/aarkerio/ZentaurLMS/adb43fb879b88d6a35f7f556cb225f7930d524f9/src/clj/zentaur/middleware/error_page.clj
clojure
)
(ns zentaur.middleware.error-page (:require [clojure.tools.logging :as log] [zentaur.controllers.company-controller :as ccon])) (defn wrap-exception [handler] (fn [request] (try (handler request) (catch Exception ex ( ccon / display - error {:status 500 :title "500 - Exceptio...
df380020388044fdaf2eb296869e795456509c85dbdef63c371f37a57991240a
quephird/fun-with-quil
project.clj
(defproject fun-with-quil "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[quil "2.4.0"]])
null
https://raw.githubusercontent.com/quephird/fun-with-quil/3b3a6885771f5a1a4cffeb8379f05a28048a1616/project.clj
clojure
(defproject fun-with-quil "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[quil "2.4.0"]])
b193c83f3d8d6c423c827802d1ecf98c1848260ea1904cbeb7a28ba15d208268
monadbobo/ocaml-core
iter.mli
(** Astract iterators. *) Abstract iterator - a source of objects * Common use cases : * = = run on each line in FILE and collect results in a list : * read_wrap FILE ~f:(fun ic - > to_list ( of_channel ic ) ~f : ) * = = map objects in array into a list without an intermediate list / array * ...
null
https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/core/extended/lib/iter.mli
ocaml
* Astract iterators. * get the next element of the iterator * iterate over the iterator: call f on each element * concatenate a list of iterators * fold over the iterator: call f on each element and return the accumulator * transform the iterator * fold is the same as reduce * find an element that satisfies the ...
Abstract iterator - a source of objects * Common use cases : * = = run on each line in FILE and collect results in a list : * read_wrap FILE ~f:(fun ic - > to_list ( of_channel ic ) ~f : ) * = = map objects in array into a list without an intermediate list / array * to_list ~f ( of_array a )...
7d72438e1da1176a5968853354bd9c71d9c96ceaa08d6b593e037bb5c2a5478c
Kappa-Dev/KappaTools
build_graph.mli
* * build_graph.mli * openkappa * , projet Abstraction / Antique , INRIA Paris - Rocquencourt * * Creation : November , the 12th of 2017 * Last modification : Time - stamp : < Jun 07 2018 > * * * Primitives to build site graph in Cckappa * * Copyright 2010,2011,2012,2013,2014 I...
null
https://raw.githubusercontent.com/Kappa-Dev/KappaTools/eef2337e8688018eda47ccc838aea809cae68de7/core/KaSa_rep/frontend/build_graph.mli
ocaml
* * build_graph.mli * openkappa * , projet Abstraction / Antique , INRIA Paris - Rocquencourt * * Creation : November , the 12th of 2017 * Last modification : Time - stamp : < Jun 07 2018 > * * * Primitives to build site graph in Cckappa * * Copyright 2010,2011,2012,2013,2014 I...
78a884bf74a1d6418f63ec902d68125d512ddcec9fdcd6f10fea68ef08188118
wilbowma/cur
IndProp.rkt
#lang cur (require cur/stdlib/sugar cur/stdlib/equality cur/stdlib/prop cur/ntac/base cur/ntac/standard cur/ntac/rewrite rackunit/turnstile+ "../rackunit-ntac.rkt") examples from Software Foundations IndProp.v (data bool : 0 Type (true : bool) ...
null
https://raw.githubusercontent.com/wilbowma/cur/e039c98941b3d272c6e462387df22846e10b0128/cur-test/cur/tests/ntac/software-foundations/IndProp.rkt
racket
letter capital "O" TODO: this wrong version, with param instead of index, should have better err msg ev-double, raw term ev-minus2 raw term: or at least, support (by-rewrite ... #:in H) le-trans raw term
#lang cur (require cur/stdlib/sugar cur/stdlib/equality cur/stdlib/prop cur/ntac/base cur/ntac/standard cur/ntac/rewrite rackunit/turnstile+ "../rackunit-ntac.rkt") examples from Software Foundations IndProp.v (data bool : 0 Type (true : bool) ...
471559fe1e3f327922854c5d63f1720186e445f7237b64f38c61e40700fc4df8
unison-code/unison
Normalize.hs
| Copyright : Copyright ( c ) 2016 , RISE SICS AB License : BSD3 ( see the LICENSE file ) Maintainer : Copyright : Copyright (c) 2016, RISE SICS AB License : BSD3 (see the LICENSE file) Maintainer : -} Main authors : < > This file is part of Unison , see -code.github.io ...
null
https://raw.githubusercontent.com/unison-code/unison/9f8caf78230f956a57b50a327f8d1dca5839bf64/src/unison/src/Unison/Tools/Normalize.hs
haskell
# LANGUAGE DeriveDataTypeable, RecordWildCards #
| Copyright : Copyright ( c ) 2016 , RISE SICS AB License : BSD3 ( see the LICENSE file ) Maintainer : Copyright : Copyright (c) 2016, RISE SICS AB License : BSD3 (see the LICENSE file) Maintainer : -} Main authors : < > This file is part of Unison , see -code.github.io ...
c0a4b65b368dfb47c5f8ed68de6711e0727800ede1c1a3c7b527e7c8387af9d0
joinr/structural
project.clj
(defproject structural "0.2.0-SNAPSHOT" :description "A little library for defining hinted destructuring operations." :url "" :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0" :url "-2.0/"} :dependencies [[org.clojure/clojure "1.10.1"] [org.clojure/tools.mac...
null
https://raw.githubusercontent.com/joinr/structural/80fa1cf4eb402823f8d62654f032644f207cbee1/project.clj
clojure
(defproject structural "0.2.0-SNAPSHOT" :description "A little library for defining hinted destructuring operations." :url "" :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0" :url "-2.0/"} :dependencies [[org.clojure/clojure "1.10.1"] [org.clojure/tools.mac...
0ad827c2d1216cf40e6f485472873e40cb85e1f65ae37bb75d6afcd9a1f87bd4
nuvla/ui
events.cljs
(ns sixsq.nuvla.ui.clouds.events (:require [cljs.spec.alpha :as s] [re-frame.core :refer [dispatch reg-event-db reg-event-fx]] [sixsq.nuvla.ui.cimi-api.effects :as cimi-api-fx] [sixsq.nuvla.ui.cimi-detail.events :as cimi-detail-events] [sixsq.nuvla.ui.clouds.spec :as sp...
null
https://raw.githubusercontent.com/nuvla/ui/c10704eabd339489722fa53bc99f11f21103c070/code/src/cljs/sixsq/nuvla/ui/clouds/events.cljs
clojure
Perform form validation if validate-form? is true. SSH keys
(ns sixsq.nuvla.ui.clouds.events (:require [cljs.spec.alpha :as s] [re-frame.core :refer [dispatch reg-event-db reg-event-fx]] [sixsq.nuvla.ui.cimi-api.effects :as cimi-api-fx] [sixsq.nuvla.ui.cimi-detail.events :as cimi-detail-events] [sixsq.nuvla.ui.clouds.spec :as sp...
3fd806bc54ca6684b04954b665e43140be786db490a055ec539be1ac6a3ab801
coco-team/lustrec
pathConditions.ml
open Lustre_types open Corelang open Log open Format module IdSet = Set.Make (struct type t = expr * int let compare = compare end) let inout_vars = ref [] This was used to add inout variables in the final signature . May have to be reactivated later reactivated later *) (* let print_tautology_var fmt...
null
https://raw.githubusercontent.com/coco-team/lustrec/b21f9820df97e661633cd4418fdab68a6c6ca67d/src/pathConditions.ml
ocaml
let print_tautology_var fmt v = match (Types.repr v.var_type).Types.tdesc with | Types.Tbool -> Format.fprintf fmt "(%s or not %s)" v.var_id v.var_id | _ -> Format.fprintf fmt "(true)" let print_path arg = match !inout_vars with | [] -> Format.printf "%t@." arg In a previous version, the printer ...
open Lustre_types open Corelang open Log open Format module IdSet = Set.Make (struct type t = expr * int let compare = compare end) let inout_vars = ref [] This was used to add inout variables in the final signature . May have to be reactivated later reactivated later *) | Types . Tint - > Format....
4508fba59218240e58b07a9a7367400b7876b3cc788369875ba57b61ba7b8ee5
dbuenzli/brr
brr_note_legacy.mli
--------------------------------------------------------------------------- Copyright ( c ) 2018 The brr programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 2...
null
https://raw.githubusercontent.com/dbuenzli/brr/e216444cdd6625a461a527e1a6e4a83ce7f3a74b/src/note/brr_note_legacy.mli
ocaml
* Legacy functionality. Needed for transitional reasons. Will disappear when a suitable replacement is provided. Do not use. * {1 Storage scope} * The storage scope. * {1 Keys} * The type for keys whose lookup value is 'a * [key ~ns ()] is a new storage key in namespace [ns]. If [ns] is unspecified,...
--------------------------------------------------------------------------- Copyright ( c ) 2018 The brr programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 2...
afe95107ae5864bd23840f6a9ba2e67b10a17c257ed2a250f6d47e6a64c4a1ba
camllight/camllight
eq.mli
Generic comparisons value prefix = : 'a -> 'a -> bool = 2 "equal" [ e1 = e2 ] tests for structural equality of [ e1 ] and [ e2 ] . Mutable structures ( e.g. references and arrays ) are equal if and only if their current contents are structurally equal , even if the two mutabl...
null
https://raw.githubusercontent.com/camllight/camllight/0cc537de0846393322058dbb26449427bfc76786/sources/src/lib/eq.mli
ocaml
Negation of [prefix =]. [compare x y] returns [0] if [x=y], a negative integer if [x<y], and a positive integer if [x>y]. The same restrictions as for [=] apply. [compare] can be used as the comparison function required by the [set] and [map] modules. [e1 == e2] tests for physical ...
Generic comparisons value prefix = : 'a -> 'a -> bool = 2 "equal" [ e1 = e2 ] tests for structural equality of [ e1 ] and [ e2 ] . Mutable structures ( e.g. references and arrays ) are equal if and only if their current contents are structurally equal , even if the two mutabl...
3af56c078e5e3ec9bfe70e5f61352b446e876af71ecc685ddc8d4f28d47aea13
wargrey/w3s
dimension.rkt
#lang typed/racket/base (provide (all-defined-out)) ;;; -values/#absolute-lengths ;;; -values/#relative-lengths ;;; -egg/#astro-units -egg/#traditional-time (require racket/math) (require digimon/dimension) (require "digicore.rkt") (require "misc.rkt") (require (for-syntax racket/base)) (require (for-syntax rac...
null
https://raw.githubusercontent.com/wargrey/w3s/ea6653189b25040dc5d3807502dad835bc170416/css/digitama/syntax/dimension.rkt
racket
-values/#absolute-lengths -values/#relative-lengths -egg/#astro-units
#lang typed/racket/base (provide (all-defined-out)) -egg/#traditional-time (require racket/math) (require digimon/dimension) (require "digicore.rkt") (require "misc.rkt") (require (for-syntax racket/base)) (require (for-syntax racket/string)) (require (for-syntax racket/symbol)) (require (for-syntax racket/synt...
d129e73cd9300bf1e1f371287979983a40ccda580e8b53054e3bdc01f2730920
lehins/scheduler
Setup.hs
module Main (main) where import Distribution.Simple main :: IO () main = defaultMain
null
https://raw.githubusercontent.com/lehins/scheduler/362ef8c8a6b94fa0b0448afff62d771ca1c69510/scheduler/Setup.hs
haskell
module Main (main) where import Distribution.Simple main :: IO () main = defaultMain
d2dcd8831a129eab716de2602049dd8d9d373a552ce31c9d101ed406a5574475
LexiFi/dead_code_analyzer
ref-fn.ml
let f ?a ?b ?c () = 312 let () = RefFn.r := f ~c:0 let g = f ~c:0 let () = let a = f ~c:1 () in RefFn.r := g; print_int (a - (!RefFn.r ~b:1 ()))
null
https://raw.githubusercontent.com/LexiFi/dead_code_analyzer/c44dc2ea5ccb13df2145e9316e21c39f09dad506/examples/dir/ref-fn.ml
ocaml
let f ?a ?b ?c () = 312 let () = RefFn.r := f ~c:0 let g = f ~c:0 let () = let a = f ~c:1 () in RefFn.r := g; print_int (a - (!RefFn.r ~b:1 ()))
53743524c6ff9847e3469bf5811e49209c8c399f7a9b842eb285d262c0c4ff5b
TDacik/Deadlock
exit_points.mli
module CFA = Interpreted_automata val is_exit_point : Cil_types.stmt -> bool
null
https://raw.githubusercontent.com/TDacik/Deadlock/4f6d39062f727983f6f6d52659c291731b3064b4/src/cfa_analysis/exit_points.mli
ocaml
module CFA = Interpreted_automata val is_exit_point : Cil_types.stmt -> bool
278088073b5f40abc3b9520ed7f05e72b6d9e1ae042babbca85e76f94882f18a
footprintanalytics/footprint-web
fix_bad_references.clj
(ns metabase.query-processor.middleware.fix-bad-references (:require [clojure.tools.logging :as log] [clojure.walk :as walk] [metabase.mbql.util :as mbql.u] [metabase.query-processor.store :as qp.store] [metabase.util :as u] [metabase.util.i18n :refer [trs]]...
null
https://raw.githubusercontent.com/footprintanalytics/footprint-web/d3090d943dd9fcea493c236f79e7ef8a36ae17fc/src/metabase/query_processor/middleware/fix_bad_references.clj
clojure
don't replace anything inside source metadata. if we have entered a join map and don't have `join-source` info yet, determine that and recurse. :source-table]` path that do not have `:join-alias` info
(ns metabase.query-processor.middleware.fix-bad-references (:require [clojure.tools.logging :as log] [clojure.walk :as walk] [metabase.mbql.util :as mbql.u] [metabase.query-processor.store :as qp.store] [metabase.util :as u] [metabase.util.i18n :refer [trs]]...
21c2eebf6a8a97fccc81a7d63a0490a917938841c2d5decd95dd88c9b39199a1
aigarashi/copl-tools
keywords.ml
open Parser let v = [ (* game-specific keywords *) ("evalto", EVALTO); ("minus", MINUS); ("times", MULT); ("plus", PLUS); ("is", IS); ("less", LESS); ("than", THAN); ("not", NOT); (* ML1 expressions *) ("true", TRUE); ("false", FALSE); ("if", IF); ("then", THEN); ("else", ELSE); ...
null
https://raw.githubusercontent.com/aigarashi/copl-tools/3c4da117083a0870334c8eef270206b11060514e/checker/EvalML6/keywords.ml
ocaml
game-specific keywords ML1 expressions ML3 expressions ML4 expressions ML5 expressions
open Parser let v = [ ("evalto", EVALTO); ("minus", MINUS); ("times", MULT); ("plus", PLUS); ("is", IS); ("less", LESS); ("than", THAN); ("not", NOT); ("true", TRUE); ("false", FALSE); ("if", IF); ("then", THEN); ("else", ELSE); ("*", AST); ("+", CROSS); ("-", HYPHEN); ("<", LT...
afa26eaa6d8a0da333735672521efe0c7bd514fa8c71962be4e6390043e1915a
shimmering-void/sketches
cellular.cljs
(ns sketches.cellular (:require [quil.core :as q] [quil.middleware :as middleware] [sketches.palette :as pal] [util.files :as f])) (println "Perlin flow hellooooo!") (def body (.-body js/document)) (def w (.-clientWidth body)) (def h (.-clientHeight body)) (def palette pal/flowe...
null
https://raw.githubusercontent.com/shimmering-void/sketches/84d29636a798720e8db3379c21814fe9f92686fd/src/sketches/cellular.cljs
clojure
; rule 30 ; rule 45 (println rules window (get rules (neighbourhood->rule window)))
(ns sketches.cellular (:require [quil.core :as q] [quil.middleware :as middleware] [sketches.palette :as pal] [util.files :as f])) (println "Perlin flow hellooooo!") (def body (.-body js/document)) (def w (.-clientWidth body)) (def h (.-clientHeight body)) (def palette pal/flowe...
21fa0bed81704194303a46113a4c4ed67357ec89cc3f19f3a37004a0382a0f57
c4-project/c4f
atomic_load.ml
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
null
https://raw.githubusercontent.com/c4-project/c4f/8939477732861789abc807c8c1532a302b2848a5/lib/fir/src/atomic_load.ml
ocaml
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
8de5ef598977cf35ce2a3ed3537aaa78cc92d4555acdb9046932404907660975
resttime/cl-liballegro
audio.lisp
(in-package #:cl-liballegro) ;;; Audio addon ;; Basic audio (defcfun ("al_install_audio" install-audio) :boolean) (defcfun ("al_uninstall_audio" uninstall-audio) :void) (defcfun ("al_is_audio_installed" is-audio-installed) :boolean) (defcfun ("al_reserve_samples" reserve-samples) :boolean (reserve-samples :int)) (defc...
null
https://raw.githubusercontent.com/resttime/cl-liballegro/c526b920c9f5062c3cd332c3f89c42c9223dc877/src/ffi-functions/addons/audio.lisp
lisp
Audio addon Basic audio Samples Sample instances Audio streams Audio recording Audio devices Voices Miscellaneous
(in-package #:cl-liballegro) (defcfun ("al_install_audio" install-audio) :boolean) (defcfun ("al_uninstall_audio" uninstall-audio) :void) (defcfun ("al_is_audio_installed" is-audio-installed) :boolean) (defcfun ("al_reserve_samples" reserve-samples) :boolean (reserve-samples :int)) (defcfun ("al_play_sample" play-samp...
f593c80d9690c5cbbb8959a873f8537da217d0ed0dc9a079b102b5006e69a50c
pokepay/aws-sdk-lisp
api.lisp
;; DO NOT EDIT: File is generated by AWS-SDK/GENERATOR. (common-lisp:defpackage #:aws-sdk/services/monitoring/api (:use) (:nicknames #:aws/monitoring) (:import-from #:aws-sdk/generator/shape) (:import-from #:aws-sdk/generator/operation) (:import-from #:aws-sdk/api) (:import-from #:aws-sdk/request) (:impo...
null
https://raw.githubusercontent.com/pokepay/aws-sdk-lisp/ad9a8f9294a9799cef5f4d85e0cd34eca418be24/services/monitoring/api.lisp
lisp
DO NOT EDIT: File is generated by AWS-SDK/GENERATOR.
(common-lisp:defpackage #:aws-sdk/services/monitoring/api (:use) (:nicknames #:aws/monitoring) (:import-from #:aws-sdk/generator/shape) (:import-from #:aws-sdk/generator/operation) (:import-from #:aws-sdk/api) (:import-from #:aws-sdk/request) (:import-from #:aws-sdk/error)) (common-lisp:in-package #:aws-...
fd5b5e2f68b762f47e88d54c94341cb2dbd3513cce910ad38e6e3310e020b6dc
disteph/cdsat
qhashed.mli
type t = Q.t [@@deriving eq,ord,hash,show]
null
https://raw.githubusercontent.com/disteph/cdsat/1b569f3eae59802148f4274186746a9ed3e667ed/src/kernel/kernel.mld/top.mld/qhashed.mli
ocaml
type t = Q.t [@@deriving eq,ord,hash,show]
e00af7e909dfbc1514acc87dca89264165d43a67019eb1c1c1c9caf90655a933
ageldama/cl-state-machine
compute-last-state.lisp
(in-package :cl-state-machine-test) (in-suite test-suite) (test compute-last-state (let ((sm (state-machine-example-01))) (multiple-value-bind (ok? state-trail event-steps-trail) (compute-last-state sm '(:home->work :work->home ...
null
https://raw.githubusercontent.com/ageldama/cl-state-machine/eb5d59f7a864c2fc38822fc258162f9cda56adb4/test/compute-last-state.lisp
lisp
(in-package :cl-state-machine-test) (in-suite test-suite) (test compute-last-state (let ((sm (state-machine-example-01))) (multiple-value-bind (ok? state-trail event-steps-trail) (compute-last-state sm '(:home->work :work->home ...
27a35c3b1d983e2537db575001f68c954d32842b3b3a2b0c0b02639098a28493
sshirokov/CLSQL
mysql-package.lisp
-*- Mode : LISP ; Syntax : ANSI - Common - Lisp ; Base : 10 -*- ;;;; ************************************************************************* ;;;; FILE IDENTIFICATION ;;;; ;;;; Name: mysql-package.cl ;;;; Purpose: Package definition for low-level MySQL interface Programmers : Date Started : ...
null
https://raw.githubusercontent.com/sshirokov/CLSQL/c680432aea0177677ae2ee7b810a7404f7a05cab/db-mysql/mysql-package.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 -*- ************************************************************************* FILE IDENTIFICATION Name: mysql-package.cl Purpose: Package definition for low-level MySQL interface (), also known as the LLGPL. *********************************************...
Programmers : Date Started : Feb 2002 This file , part of CLSQL , is Copyright ( c ) 2002 by CLSQL users are granted the rights to distribute and use this software as governed by the terms of the Lisp Lesser GNU Public License (in-package #:cl-user) (defpackage #:mysql (:use #:common-lisp #:c...
3ee4f24b3047c0946b11f7dec2d5e12f00dcb30b2a12824e712beb482568d361
pstephens/kingjames.bible
serve.cljs
Copyright 2015 . All Rights Reserved . ;;;; Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . ;;;; You may obtain a copy of the License at ;;;; ;;;; -2.0 ;;;; ;;;; Unless required by applicable law o...
null
https://raw.githubusercontent.com/pstephens/kingjames.bible/a2c2a7324176a829df6ebf50976d81c65c35eb02/src/biblecli/commands/serve.cljs
clojure
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 permissions and limitations under the License....
Copyright 2015 . All Rights Reserved . you may not use this file except in compliance with the License . distributed under the License is distributed on an " AS IS " BASIS , (ns biblecli.commands.serve (:require [biblecli.main.utility :refer [get-root-path]] [common.asset.bible :as bi...
9ac6acd2f8135f452d00cb656e1c94fcfdbec3dd52c84e4c7ed3a36eb7b81aae
ih/ikarus.dev
prefix-chicken.scm
;INSERTCODE ;------------------------------------------------------------------------------ (define (time* thunk) (let* ((start (receive (u s) (cpu-time) (+ u s))) (start-real (current-milliseconds))) (let ((result (thunk))) (let* ((end (receive (u s) (cpu-time) (+ u s))) (end-re...
null
https://raw.githubusercontent.com/ih/ikarus.dev/8bb0c8e4d1122cf0f9aeb675cb51bc7df178959b/benchmarks.larceny/prefix/prefix-chicken.scm
scheme
INSERTCODE ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ This code should be used when f64vectors are available. (def-macro (FLOATmake-vector n . init) `(make-f64vector ,n ,@init)) (def-macro (FLOATvector-re...
(define (time* thunk) (let* ((start (receive (u s) (cpu-time) (+ u s))) (start-real (current-milliseconds))) (let ((result (thunk))) (let* ((end (receive (u s) (cpu-time) (+ u s))) (end-real (current-milliseconds))) (let ((cpu (- end start)) (real (- end-r...
7b0cc8e91aed9220e76d5a3f25d4977ca70577af0fe291324b4de0c2d89f9252
caisah/sicp-exercises-and-examples
set.scm
(define x (list '(a b) 'c 'd)) (define y (list 'e 'f)) (set-car! x y) ;; used only for side effects (define z (cons y (cdr x))) ;; (define (cons x y) ;; (let ((new (get-new-pair))) ;; (set-car! new x) ;; (set-cdr! new y)))
null
https://raw.githubusercontent.com/caisah/sicp-exercises-and-examples/605c698d7495aa3474c2b6edcd1312cb16c5b5cb/3.3.1-mutable_list_structure/set.scm
scheme
used only for side effects (define (cons x y) (let ((new (get-new-pair))) (set-car! new x) (set-cdr! new y)))
(define x (list '(a b) 'c 'd)) (define y (list 'e 'f)) (define z (cons y (cdr x)))
6bd958ea800ae3b1d5d1381e8f8ea09edd7c8b28a24df7fd38f15e5c6a0b4868
herd/herdtools7
arch.ml
(****************************************************************************) (* the diy toolsuite *) (* *) , University College London , UK . , INRIA Par...
null
https://raw.githubusercontent.com/herd/herdtools7/3e2e3e3680887cbf27e78810326ecb877d0faf1f/jingle/arch.ml
ocaml
************************************************************************** the diy toolsuite en Automatique and ...
, University College London , UK . , INRIA Paris - Rocquencourt , France . Copyright 2015 - present Institut National de Recherche en Informatique et This software is governed by the CeCILL - B license under French law and modify and/ or redistribu...
ae21ef6147b33fe006e516238ae44d46d691d13f2e58d5e7f9d41b58cc2744d5
finnishtransportagency/harja
muut_materiaalit.cljs
(ns harja.views.urakka.toteumat.muut-materiaalit (:require [harja.views.urakka.valinnat :as valinnat] [reagent.core :refer [atom wrap]] [harja.loki :refer [log]] [harja.ui.lomake :refer [lomake] :as lomake] [harja.ui.yleiset :refer [ajax-loader]] [harja.pvm ...
null
https://raw.githubusercontent.com/finnishtransportagency/harja/004fe49738720b68df4f2d109d050b3cb8b1d4a9/src/cljs/harja/views/urakka/toteumat/muut_materiaalit.cljs
clojure
(ns harja.views.urakka.toteumat.muut-materiaalit (:require [harja.views.urakka.valinnat :as valinnat] [reagent.core :refer [atom wrap]] [harja.loki :refer [log]] [harja.ui.lomake :refer [lomake] :as lomake] [harja.ui.yleiset :refer [ajax-loader]] [harja.pvm ...
b710d04e8db8e1f5cde503ed4449e08496885beb6f86cd8e2a7702c8e5667bab
bennn/dissertation
reader.rkt
(module reader syntax/module-reader #:read read-inside #:read-syntax read-syntax-inside #:whole-body-readers? #t #:language 'greenman-thesis/include (require greenman-thesis (only-in scribble/reader read-inside read-syntax-inside)))
null
https://raw.githubusercontent.com/bennn/dissertation/779bfe6f8fee19092849b7e2cfc476df33e9357b/dissertation/scrbl/include/lang/reader.rkt
racket
(module reader syntax/module-reader #:read read-inside #:read-syntax read-syntax-inside #:whole-body-readers? #t #:language 'greenman-thesis/include (require greenman-thesis (only-in scribble/reader read-inside read-syntax-inside)))
047d6e762a7c476d55102a80f309ab55924012697d04692df55687e9337a3be0
wireapp/wire-server
Search.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # -- 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...
null
https://raw.githubusercontent.com/wireapp/wire-server/72a03a776d4a8607b0a9c3e622003467be914894/libs/api-client/src/Network/Wire/Client/API/Search.hs
haskell
# LANGUAGE OverloadedStrings # 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 MERCHANT...
# LANGUAGE RecordWildCards # 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 mo...
0aad8c5b01a7d7e9367c1a110b531d694fa8a53ab2be45a28a4aadd67da68422
bdeket/rktsicm
expand-nary.rkt
#lang racket/base (require rackunit "../../simplify/expand-nary.rkt" "../helper.rkt") (define the-tests (test-suite "simplify/expand-nary" (check-equal? (expand-nary '(+ a b c d e f)) bdk ; ; original was ( + f ( + e ( + d ( + c ( + b a ) ) ) ) ) bdk ; ; but what if + or ...
null
https://raw.githubusercontent.com/bdeket/rktsicm/9a6177d98040f058214add392bd791f5259b83b5/rktsicm/sicm/tests/simplify/expand-nary.rkt
racket
; original was ( + f ( + e ( + d ( + c ( + b a ) ) ) ) ) ; but what if + or * is not commutative ?
#lang racket/base (require rackunit "../../simplify/expand-nary.rkt" "../helper.rkt") (define the-tests (test-suite "simplify/expand-nary" (check-equal? (expand-nary '(+ a b c d e f)) '(+ (+ (+ (+ (+ a b) c) d) e) f)) (check-equal? (expand-nary ...
e341efe26bbe25e233e9c3abc7e8b8c7aebc6aba4467e7521c4633f6928240b5
coccinelle/coccinelle
pretty_print_popl.ml
* This file is part of Coccinelle , licensed under the terms of the GPL v2 . * See copyright.txt in the Coccinelle source code for more information . * The Coccinelle source code can be obtained at * This file is part of Coccinelle, licensed under the terms of the GPL v2. * See copyright.txt in the Cocci...
null
https://raw.githubusercontent.com/coccinelle/coccinelle/57cbff0c5768e22bb2d8c20e8dae74294515c6b3/popl09/pretty_print_popl.ml
ocaml
--------------------------------------------------------------------- --------------------------------------------------------------------- ---------------------------------------------------------------------
* This file is part of Coccinelle , licensed under the terms of the GPL v2 . * See copyright.txt in the Coccinelle source code for more information . * The Coccinelle source code can be obtained at * This file is part of Coccinelle, licensed under the terms of the GPL v2. * See copyright.txt in the Cocci...
959d9c97d104c55a2f28c1ac3c3a8eefe09ecee3013abd97c50fa8eb7bb69806
RyanHope/ACT-R
multiple-models-multiple-windows.lisp
;;; Simple example of multiple window AGI use. This file defines two models and each one ;;; will be interacting with its own window ;;; titled test. ;;; To run the example call the function run-it ;;; providing the optional parameter as t to use ;;; visible windows. (clear-all) (defvar *count*) (defun run-it ...
null
https://raw.githubusercontent.com/RyanHope/ACT-R/c65f3fe7057da0476281ad869c7963c84c0ad735/examples/agi/multiple-models-multiple-windows.lisp
lisp
Simple example of multiple window AGI use. will be interacting with its own window titled test. To run the example call the function run-it providing the optional parameter as t to use visible windows. in the context of the named mode Open a window titled test Add the text of a number to that window. Notice...
This file defines two models and each one (clear-all) (defvar *count*) (defun run-it (&optional (visible nil)) (reset) (setf *count* 0) (set-up 'model-1 visible) (set-up 'model-2 visible) (run 1 :real-time visible)) (defun set-up (model visible) (with-model-eval model (let ((w1 (open-exp-window...
2774427e69fa6a4608e1b13463e19e858bda361e8685439d71a3c0eaea077bb3
ucsd-progsys/dsolve
unbounded.ml
let rec unb1 arr2 m n i j = let k = n - 1 in if j < k then if Bigarray.Array2.get arr2 0 j < 0 then let z = i + 1 in unb2 arr2 m n z j else let w = j + 1 in unb1 arr2 m n 0 w else false and unb2 arr2 m n i j = if i < m then if Bigarray.Array2.get arr2 i j < 0 then l...
null
https://raw.githubusercontent.com/ucsd-progsys/dsolve/bfbbb8ed9bbf352d74561e9f9127ab07b7882c0c/tests/PLDI2008/unbounded.ml
ocaml
let rec unb1 arr2 m n i j = let k = n - 1 in if j < k then if Bigarray.Array2.get arr2 0 j < 0 then let z = i + 1 in unb2 arr2 m n z j else let w = j + 1 in unb1 arr2 m n 0 w else false and unb2 arr2 m n i j = if i < m then if Bigarray.Array2.get arr2 i j < 0 then l...
bbab6312e343b7a481c2fcfa2b3b90fda1f4ff246abfbbf571235770537c927a
aliter/aliter
login.erl
-module(login). -behaviour(supervisor). -include("include/records.hrl"). -export([ start_link/1, install/0, uninstall/0, stop/0]). -export([init/1]). start_link(Conf) -> {host, {Host, Name}} = config:find(server.host, Conf), {aliter, Aliter} = config:find(server.aliter, Conf), {ok, Node} = s...
null
https://raw.githubusercontent.com/aliter/aliter/03c7d395d5812887aecdca20b16369f8a8abd278/src/login/login.erl
erlang
-module(login). -behaviour(supervisor). -include("include/records.hrl"). -export([ start_link/1, install/0, uninstall/0, stop/0]). -export([init/1]). start_link(Conf) -> {host, {Host, Name}} = config:find(server.host, Conf), {aliter, Aliter} = config:find(server.aliter, Conf), {ok, Node} = s...
a7f09c6d681780b37b4185ffae65916e6a1e3e60216f088636fc61adf04120c3
squaresLab/SynthLift
synth_partial.mli
open Bap.Std module Hole = Synth_hole type hole = Hole.t type t = (hole -> hole -> hole -> hole -> hole -> hole -> hole -> exp) * Pick a positional argument in the partial function ( hole ) . Kind will be a ' kind ' hint when filling the closure will be a 'kind' hint when filling the closure *) val pick :...
null
https://raw.githubusercontent.com/squaresLab/SynthLift/6831b23db539bfacfcf59acb97d6de04522719db/lib/synth_partial.mli
ocaml
* just a default closure * Maximum supported size of closure
open Bap.Std module Hole = Synth_hole type hole = Hole.t type t = (hole -> hole -> hole -> hole -> hole -> hole -> hole -> exp) * Pick a positional argument in the partial function ( hole ) . Kind will be a ' kind ' hint when filling the closure will be a 'kind' hint when filling the closure *) val pick :...
d7b042a12ae9d00e09ecdadb2cfe2fcbfedc664b43e7719040bfc265c5564984
slipstream/SlipStreamServer
user_template_self_registration_lifecycle_test.clj
(ns com.sixsq.slipstream.ssclj.resources.user-template-self-registration-lifecycle-test (:require [clojure.data.json :as json] [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-heade...
null
https://raw.githubusercontent.com/slipstream/SlipStreamServer/3ee5c516877699746c61c48fc72779fe3d4e4652/cimi/test/com/sixsq/slipstream/ssclj/resources/user_template_self_registration_lifecycle_test.clj
clojure
create the self-registration user template this is no longer added automatically to the database user collection query should succeed but be empty for all users create a new user; fails without reference create with invalid template fails create with bad parameters fails create user with redirect recreating the...
(ns com.sixsq.slipstream.ssclj.resources.user-template-self-registration-lifecycle-test (:require [clojure.data.json :as json] [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-heade...
8c5bd45e016a3752d43aef2b18b8c91869f3e0aa29936ef29dbcbb332af0f4fd
elli-lib/elli
elli_middleware_compress.erl
@doc Response compression as middleware . -module(elli_middleware_compress). -export([postprocess/3]). -include("elli_util.hrl"). %% %% Postprocess handler %% @doc all requests and compress bodies larger than %%% `compress_byte_size' (`1024' by default). -spec postprocess(Req, Result, Config) -> Result when ...
null
https://raw.githubusercontent.com/elli-lib/elli/2f2fafb77c67244ba6237ca6b3c7238ff886c478/src/elli_middleware_compress.erl
erlang
Postprocess handler `compress_byte_size' (`1024' by default). NOTE: Algorithm is either `<<"gzip">>' or `<<"deflate">>'.
@doc Response compression as middleware . -module(elli_middleware_compress). -export([postprocess/3]). -include("elli_util.hrl"). @doc all requests and compress bodies larger than -spec postprocess(Req, Result, Config) -> Result when Req :: elli:req(), Result :: elli_handler:result(), Confi...
8bf6d9548e9b3b662b5767adfeedba7c1f8fecd9992582853a9046d29792cd3f
shirok/Gauche
load.scm
;; This is a cushion module to use ( scheme load ) from Gauche ;; (define-module scheme.load (use r7rs-setup))
null
https://raw.githubusercontent.com/shirok/Gauche/ecaf82f72e2e946f62d99ed8febe0df8960d20c4/lib/scheme/load.scm
scheme
This is a cushion module to use ( scheme load ) from Gauche (define-module scheme.load (use r7rs-setup))
afed01a7da98c337aa2a64ab27c25ff8a5a3e37f5ae772ba2d8a4d4bf82b50f6
TomSmeets/FractalArt
Main.hs
module Main where import System.Environment (getArgs) import System.Random (randomIO) import System.Random.MWC (Gen, initialize, uniformR) import System.Directory (getHomeDirectory, createDirectoryIfMissing) import System.FilePath ((</>)) import Control.Monad ...
null
https://raw.githubusercontent.com/TomSmeets/FractalArt/45bb2efc7423511229744b388a8b94d265e61ab2/src/Main.hs
haskell
Generate and force evaluation Create an immutable copy of the grid | Create an image from a vector of colors | Generate the wallpaper sat <- uniform gen
module Main where import System.Environment (getArgs) import System.Random (randomIO) import System.Random.MWC (Gen, initialize, uniformR) import System.Directory (getHomeDirectory, createDirectoryIfMissing) import System.FilePath ((</>)) import Control.Monad ...
ebd18ce8867ae4c884727f213cbf05a3fa81379051f28c9883954ef1145b9be1
pixlsus/registry.gimp.org_static
script-fu-cheap-hdr.scm
Cheap HDR , V1.0 ; AUTHOR : ( ) , ( c ) 2009 ; This script was tested with GIMP 2.6.7 ; ; This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License Version 3 as published by the Free Software Foundation . ; ; This program is dis...
null
https://raw.githubusercontent.com/pixlsus/registry.gimp.org_static/ffcde7400f402728373ff6579947c6ffe87d1a5e/registry.gimp.org/files/script-fu-cheap-hdr.scm
scheme
This program is free software; you can redistribute it and/or modify This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License at for more ...
Cheap HDR , V1.0 AUTHOR : ( ) , ( c ) 2009 This script was tested with GIMP 2.6.7 it under the terms of the GNU General Public License Version 3 as published by the Free Software Foundation . FarcryDesign.com notes that it is also described at Luminous Landscape experience is that this flatt...
1d4930f3bafcd05ddc09f2b9464306debbeaf8ce2165f91654c82e7370ee8e39
Gadjib/ocamlhomeworks
p1.ml
Паталогическая сортировка type color = White of int*int | Grey of int*int | Black of int*int;; let l = [White (1,4);White (3,2);White (4,2);White (4,3)];; let top_sort l =
null
https://raw.githubusercontent.com/Gadjib/ocamlhomeworks/d5568d4830d4306ea56749f17af355bc35001eff/9%20%D0%BA%D0%BB%D0%B0%D1%81%D1%81/2%20%D1%87%D0%B5%D1%82%D0%B2%D0%B5%D1%80%D1%82%D1%8C/CW%202019-12-11/p1.ml
ocaml
Паталогическая сортировка type color = White of int*int | Grey of int*int | Black of int*int;; let l = [White (1,4);White (3,2);White (4,2);White (4,3)];; let top_sort l =
efc9db4e420a76d5229a8b188c87ef1d1ddf3de7e8f8d4d9b5b16b4d5b61fa83
GaloisInc/grift
Priv.hs
This file is part of GRIFT ( ) . GRIFT is free software : you can redistribute it and/or modify it under the terms of the GNU Affero Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any later version . GRIFT is distributed in the ...
null
https://raw.githubusercontent.com/GaloisInc/grift/cb9084387fb919b33c852caeb2b796ca83c2e5cc/grift/src/GRIFT/InstructionSet/Priv.hs
haskell
# LANGUAGE TypeOperators # | Instruction set for machine-mode privileged architecture. TODO: Need to add the rest of the behavior here. Doesn't do anything yet.
This file is part of GRIFT ( ) . GRIFT is free software : you can redistribute it and/or modify it under the terms of the GNU Affero Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any later version . GRIFT is distributed in the ...
31b127bf8f495a10809e2354df4df28751c1d8294acbdad155cb536a31995c88
mhayashi1120/Gauche-net-twitter
block.scm
(define-module net.twitter.block (extend net.twitter.base) (use net.twitter.core) (export ids/json list/json create/json destroy/json exists? ids )) (select-module net.twitter.block) ;;; ;;; JSON api ;;; ;; ;; Block methods ;; (define (list/json cred :key (include-entities #f) ...
null
https://raw.githubusercontent.com/mhayashi1120/Gauche-net-twitter/b9f4be3ca8459fc662f9c79481411aac03b51133/src/net/twitter/block.scm
scheme
JSON api Block methods
(define-module net.twitter.block (extend net.twitter.base) (use net.twitter.core) (export ids/json list/json create/json destroy/json exists? ids )) (select-module net.twitter.block) (define (list/json cred :key (include-entities #f) (skip-status #f) (cursor #f) ...
394a282e3e25eb386385811eeab00a6826671fb7711142429eee9e9e7ba0ae25
amal029/st
stc.ml
module List = Batteries.List module Hashtbl = Batteries.Hashtbl module MyString = Batteries.String module SS = Sexplib.Sexp module SSL = Sexplib.Std module PL = PropositionalLogic open TableauBuchiAutomataGeneration let (|>) x f = f x let usage_msg = "Usage: stc <filename>\nsee -help for more options" in let file_...
null
https://raw.githubusercontent.com/amal029/st/b519ea0bcc9ffcd4c2a593f4b93ce6d643416061/stc.ml
ocaml
Close the input channel
module List = Batteries.List module Hashtbl = Batteries.Hashtbl module MyString = Batteries.String module SS = Sexplib.Sexp module SSL = Sexplib.Std module PL = PropositionalLogic open TableauBuchiAutomataGeneration let (|>) x f = f x let usage_msg = "Usage: stc <filename>\nsee -help for more options" in let file_...
f28f3788212ee4839c0bbbdd73f54b6618492e3abea68cabada1239267c32652
jimmyrcom/HTML5-Canvas-Old-School-RPG-Map-with-Erlang-Websockets-Chat
say.erl
-module(say). -export([say/3]). -define(FLOOD, 2000). -include("user.hrl"). Created by under GPL 2.0 Copyright ( C ) 2010 ( @JimmyRcom , Youtube : JimmyRcom , Gmail : JimmyRuska ) This program is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as publi...
null
https://raw.githubusercontent.com/jimmyrcom/HTML5-Canvas-Old-School-RPG-Map-with-Erlang-Websockets-Chat/1c68c63e51eea76d475ce39baf6da5c807d6dbe5/say.erl
erlang
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. u:trace("Flood Test",Test),
-module(say). -export([say/3]). -define(FLOOD, 2000). -include("user.hrl"). Created by under GPL 2.0 Copyright ( C ) 2010 ( @JimmyRcom , Youtube : JimmyRcom , Gmail : JimmyRuska ) This program is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as publi...
29bd6ed50091ef6a3abc01c1323c533cad11b08ea5a35ed6dc05b774ee45f2b4
eholk/harlan
M6.scm
(library (harlan middle languages M6) (export M6 unparse-M6) (import (rnrs) (nanopass) (harlan middle languages M5)) ;; After make-kernel-dimensions-explicit (define-language M6 (extends M5) (entry Module) (Expr (e) (- (kernel t r (((x0 t0) (e1 t1)) ...) e) ...
null
https://raw.githubusercontent.com/eholk/harlan/3afd95b1c3ad02a354481774585e866857a687b8/harlan/middle/languages/M6.scm
scheme
After make-kernel-dimensions-explicit
(library (harlan middle languages M6) (export M6 unparse-M6) (import (rnrs) (nanopass) (harlan middle languages M5)) (define-language M6 (extends M5) (entry Module) (Expr (e) (- (kernel t r (((x0 t0) (e1 t1)) ...) e) (iota-r r e)) (+ (kernel t r i ...
c77fd1c9acc8d2c3b398aff598497b22d5beb300e17e591675befe51d2324c27
jhgarner/Xest-Window-Manager
Sized.hs
# LANGUAGE TemplateHaskell # module Tiler.Sized where import Data.Eq.Deriving import Standard import Text.Show.Deriving -- | The sized datatype stores some element a and its -- size relative to something external. data Sized a = Sized {getSize :: Double, getItem :: a} deriving stock (Show, Functor, Foldable, Trav...
null
https://raw.githubusercontent.com/jhgarner/Xest-Window-Manager/d1e7640b70fea662508f99778535069e9c639517/src/Tiler/Sized.hs
haskell
| The sized datatype stores some element a and its size relative to something external. | The size is irrelevant when checking for equality.
# LANGUAGE TemplateHaskell # module Tiler.Sized where import Data.Eq.Deriving import Standard import Text.Show.Deriving data Sized a = Sized {getSize :: Double, getItem :: a} deriving stock (Show, Functor, Foldable, Traversable, Generic) deriveShow1 ''Sized deriveEq1 ''Sized instance Applicative Sized where p...
f06324a2038ba93102c4cc6f09b62bb72b0975463ba09b2b5c8ff0536634224e
the-lambda-church/dmlenu
draw.mli
module Color : sig type t val of_string : string -> t option val of_string_exn : string -> t end * { 2 } Low - level drawing primitives . Used internally by the [ Ui ] module . type state val init : font:string -> topbar:bool -> state val render : state -> height:int -> (unit -> unit) -> unit val terminate : s...
null
https://raw.githubusercontent.com/the-lambda-church/dmlenu/dd986164ad284040c5caad24e8563ef250132a99/lib/draw.mli
ocaml
module Color : sig type t val of_string : string -> t option val of_string_exn : string -> t end * { 2 } Low - level drawing primitives . Used internally by the [ Ui ] module . type state val init : font:string -> topbar:bool -> state val render : state -> height:int -> (unit -> unit) -> unit val terminate : s...
1cad9cb1493d989dbf5db20592b55e654553c7eccc2a0d40dde29fe39f791b47
kraison/graph-utils
parsers.lisp
(in-package #:graph-utils) (declaim (optimize (speed 3) (space 2))) (defun snip (s) (subseq s 1 (1- (length s)))) (defun un-squote (s) (regex-replace-all "''" (snip s) "'")) (defun un-dquote (s) (regex-replace-all "\"\"" (snip s) "\"")) (defun strip-whitespace (s) (regex-replace-all "(^\\s+|\\s+$)" s "")) (deflexer ...
null
https://raw.githubusercontent.com/kraison/graph-utils/ffc2864825a4771ea9a5d68857e0c86b6a2f239c/parsers.lisp
lisp
(format t "Doing vertices~%")
(in-package #:graph-utils) (declaim (optimize (speed 3) (space 2))) (defun snip (s) (subseq s 1 (1- (length s)))) (defun un-squote (s) (regex-replace-all "''" (snip s) "'")) (defun un-dquote (s) (regex-replace-all "\"\"" (snip s) "\"")) (defun strip-whitespace (s) (regex-replace-all "(^\\s+|\\s+$)" s "")) (deflexer ...
c64aefb81bec81ae0b8576d3f460c940a14696593daebf56e4b597fa087c445b
juji-io/datalevin
datafy.cljc
(ns datalevin.test.datafy (:require [datalevin.test.core :as tdc :refer [db-fixture]] [clojure.test :refer [deftest testing is use-fixtures]] [datalevin.datafy :as datafy] [datalevin.util :as u] [datalevin.core :as d] [clojure.core.protocols :as cp] [datalevin.entity :as e])) (use-fixtures :each...
null
https://raw.githubusercontent.com/juji-io/datalevin/3a1fccc3cb40531901d51719216fdce3b1aa3483/test/datalevin/test/datafy.cljc
clojure
(ns datalevin.test.datafy (:require [datalevin.test.core :as tdc :refer [db-fixture]] [clojure.test :refer [deftest testing is use-fixtures]] [datalevin.datafy :as datafy] [datalevin.util :as u] [datalevin.core :as d] [clojure.core.protocols :as cp] [datalevin.entity :as e])) (use-fixtures :each...
9e53853c3e06f1c608febf8bd3a8e7b6f6f5118a4ee53cf93a6971decacf850d
TrustInSoft/tis-kernel
trace.mli
(**************************************************************************) (* *) This file is part of . (* *) is a fork of Frama - C. Al...
null
https://raw.githubusercontent.com/TrustInSoft/tis-kernel/748d28baba90c03c0f5f4654d2e7bb47dfbe4e7d/src/kernel_services/abstract_interp/trace.mli
ocaml
************************************************************************ ...
This file is part of . is a fork of Frama - C. All the differences are : Copyright ( C ) 2016 - 2017 is released under GPLv2 This file is part of Frama - C. Copyright ( C ) 2007 - 2015 ...
888aebd8f0144bf38dfa66f42db377cef56bdb356acea06473bdb53fc243577f
TorXakis/TorXakis
LPEBlindSubst.hs
TorXakis - Model Based Testing Copyright ( c ) 2015 - 2017 TNO and University of Twente See LICENSE at root directory of this repository . TorXakis - Model Based Testing Copyright (c) 2015-2017 TNO and University of Twente See LICENSE at root directory of this repository. -} -----------------------------------...
null
https://raw.githubusercontent.com/TorXakis/TorXakis/038463824b3d358df6b6b3ff08732335b7dbdb53/sys/lpeops/src/core/LPEBlindSubst.hs
haskell
--------------------------------------------------------------------------- | Module : LPEBlindSubst License : BSD3 Maintainer : Stability : experimental --------------------------------------------------------------------------- doBlindParamEqSubst doBlindParamEqsSubst Applies a substitution ...
TorXakis - Model Based Testing Copyright ( c ) 2015 - 2017 TNO and University of Twente See LICENSE at root directory of this repository . TorXakis - Model Based Testing Copyright (c) 2015-2017 TNO and University of Twente See LICENSE at root directory of this repository. -} Copyright : TNO and Universi...
cb7c42935719269462bd9262bc5801d4ae4b72efdc49450fcbd196a3c75ece2f
alexkazik/qrcode
Base.hs
| Export everything needed from base in addition to the Prelude # LANGUAGE CPP # # LANGUAGE NoImplicitPrelude # module Codec.QRCode.Base ( module X ) where import Control.Applicative as X (Alternative (..)) import Control.Monad as X (forM, guard, unless, void, when) import C...
null
https://raw.githubusercontent.com/alexkazik/qrcode/7ee12de893c856a968dc1397602a7f81f8ea2c68/qrcode-core/src/Codec/QRCode/Base.hs
haskell
| Export everything needed from base in addition to the Prelude # LANGUAGE CPP # # LANGUAGE NoImplicitPrelude # module Codec.QRCode.Base ( module X ) where import Control.Applicative as X (Alternative (..)) import Control.Monad as X (forM, guard, unless, void, when) import C...
790fe1c1f27a4d354289293d087ea96f37c0217aa862d6915232a12f4e0083ca
zwizwa/erl_tools
stubhub.erl
-module(stubhub). -export([start_link/1, pid/2, pids/1, %% Some high level calls info/2, find_uid/2, uids/1, ping/1, call/3, parse_syslog_ttyACM/1, tag_u32/1, tag_u32/2, tag_u32/3, command/1, load_bin_file/3, lo...
null
https://raw.githubusercontent.com/zwizwa/erl_tools/07645992e968c1456c9d0212f380afd1ffce4c1f/src/stubhub.erl
erlang
Some high level calls Relative to absolute path. DB contains relative paths. code. - stubhub board gets enumerated on some host - hosts's udev config connects to exo_notify - stubhub hub gets an 'add_tty' message - dev_start/1 will start a process for this device - the server supports multiple connections See...
-module(stubhub). -export([start_link/1, pid/2, pids/1, info/2, find_uid/2, uids/1, ping/1, call/3, parse_syslog_ttyACM/1, tag_u32/1, tag_u32/2, tag_u32/3, command/1, load_bin_file/3, load_bin_file/4, load_bin/4, load_bi...
2f135d2e0501077cdb0ccd41458cfba2223982793c1d9d0f7563194d8483eee3
haskell-tools/haskell-tools
InTupSecElem.hs
# LANGUAGE LambdaCase , TupleSections # TupleSections #-} module InTupSecElem where * LambdaCase , TupleSections *
null
https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/builtin-refactorings/test/ExtensionOrganizerTest/LambdaCaseTest/InTupSecElem.hs
haskell
# LANGUAGE LambdaCase , TupleSections # TupleSections #-} module InTupSecElem where * LambdaCase , TupleSections *
faccd4e22c43527cb9534d788bb28a8756c5c75ba63ff5ae561c30cb6a8d4af8
probprog/bopp
opt.clj
gorilla-repl.fileformat = 1 ;; ** ;;; # Optimization Benchmarks ;; ** ;; @@ (ns worksheets.opt (:require [gorilla-plot.core :as plot] [clojure.core.matrix :as mat] [bopp.core :refer :all]) (:use [anglican runtime emit])) ;; @@ ;; => ;;; {"type":"html","content":"<span class='clj-nil'>nil...
null
https://raw.githubusercontent.com/probprog/bopp/cfb93c22cd7f97ec303eb47b6748b6124b9b5914/worksheets/opt.clj
clojure
** # Optimization Benchmarks ** @@ @@ => {"type":"html","content":"<span class='clj-nil'>nil</span>","value":"nil"} <= ** ** @@ @@ => <= ** ** ** @@f(x) = -\left(x\_2-\frac{5.1}{4\pi^2}x\_1^2+\frac{5}{\pi}x\_1-6\right)^2-10(1-\frac{1}{8\pi}\cos(x\_1))-10@@ ** ** ** @@ @@ => <= ** Now we c...
gorilla-repl.fileformat = 1 (ns worksheets.opt (:require [gorilla-plot.core :as plot] [clojure.core.matrix :as mat] [bopp.core :refer :all]) (:use [anglican runtime emit])) In this worksheet we consider simply using BOPP as an optimizer on some classic Bayesian optimization benchmark ...
0b66d35cc7541d3ffe523282c65a7e29cdaec7bd6bc2b3acf530d15ce6e3e20d
magomimmo/cljs-start
test.cljs
;;; This namespace is used for testing purpose. It use the ;;; clojurescript.test lib. (ns {{namespace}}-test (:require-macros [cemerick.cljs.test :as m :refer (deftest testing are)]) (:require [cemerick.cljs.test :as t] [{{namespace}} :refer (foo)])) (deftest foo-test (testing "I don't do a lot\n" ...
null
https://raw.githubusercontent.com/magomimmo/cljs-start/8e2eebf7e1f793f2da55e0de5c30469260639699/src/leiningen/new/cljs_start/test.cljs
clojure
This namespace is used for testing purpose. It use the clojurescript.test lib.
(ns {{namespace}}-test (:require-macros [cemerick.cljs.test :as m :refer (deftest testing are)]) (:require [cemerick.cljs.test :as t] [{{namespace}} :refer (foo)])) (deftest foo-test (testing "I don't do a lot\n" (testing "Edge cases\n" (testing "(foo str)" (are [expected actual] (=...
aaf34551028ec4e9025c434ff3585870ef74e53aac0e31398aad2155bf32d54c
let-def/lrgrep
Indexing.mli
(******************************************************************************) (* *) (* Fix *) (* ...
null
https://raw.githubusercontent.com/let-def/lrgrep/29e64174dc9617bcd1871fd2e4fd712269568324/lib/fix/Indexing.mli
ocaml
**************************************************************************** Fix ...
, Paris . All rights reserved . This file is distributed under the terms of the GNU Library General Public License version 2 , with a * This module offers { b a safe API for manipulating indices into fixed - size arrays } . It provides su...
2f1a5eb1add36dfb3410fbf6c81d57270d31f4d5a086befdb2967db8b16e0322
GaloisInc/SpreadsheetML
Types.hs
module Text.XML.SpreadsheetML.Types where {- See -us/library/aa140066%28office.10%29.aspx -} import Data.Word ( Word64 ) -- | Only implement what we need data Workbook = Workbook { workbookDocumentProperties :: Maybe DocumentProperties , workbookWorksheets :: [Worksheet] } deriving (Read, Show) dat...
null
https://raw.githubusercontent.com/GaloisInc/SpreadsheetML/b2d05f01276e5f232c4d404800a4a18057484f7f/src/Text/XML/SpreadsheetML/Types.hs
haskell
See -us/library/aa140066%28office.10%29.aspx | Only implement what we need ^ Actually, this should be a date time elements Attributes | TODO: Currently just a string, but we could model excel formulas and use that type here instead. | Attribute for hidden things | For now this is just a string, but we could m...
module Text.XML.SpreadsheetML.Types where import Data.Word ( Word64 ) data Workbook = Workbook { workbookDocumentProperties :: Maybe DocumentProperties , workbookWorksheets :: [Worksheet] } deriving (Read, Show) data DocumentProperties = DocumentProperties { documentPropertiesTitle :: Maybe...
62c3c076efb440952a6ce845a52d8f417f7e81b069150b224bddd257d55ce21c
huangz1990/SICP-answers
19-fib-in-log-time.scm
19-fib-in-log-time.scm (define (fib n) (fib-iter 1 0 0 1 n)) (define (fib-iter a b p q n) (cond ((= n 0) b) ((even? n) (fib-iter a b (+ (square p) (square q)) ; 计算 p' (+ (* 2 p q) (square q)) ; 计算 q...
null
https://raw.githubusercontent.com/huangz1990/SICP-answers/15e3475003ef10eb738cf93c1932277bc56bacbe/chp1/code/19-fib-in-log-time.scm
scheme
计算 p' 计算 q'
19-fib-in-log-time.scm (define (fib n) (fib-iter 1 0 0 1 n)) (define (fib-iter a b p q n) (cond ((= n 0) b) ((even? n) (fib-iter a b (/ n 2))) (else (fib-iter (+ (* b q) (* a q) (* a p)) ...
4bc68fb3e4a92e0874f405943b3a87938b226292a94356d68e9b60d57836ba9a
Zulu-Inuoe/clution
network.lisp
;;; ;;; Low-level networking implementations ;;; (in-package #:ql-network) (definterface host-address (host) (:implementation t host) (:implementation sbcl (ql-sbcl:host-ent-address (ql-sbcl:get-host-by-name host)))) (definterface open-connection (host port) (:documentation "Open and return a network c...
null
https://raw.githubusercontent.com/Zulu-Inuoe/clution/b72f7afe5f770ff68a066184a389c23551863f7f/cl-clution/systems/cl-clution/quicklisp/quicklisp/network.lisp
lisp
Low-level networking implementations
(in-package #:ql-network) (definterface host-address (host) (:implementation t host) (:implementation sbcl (ql-sbcl:host-ent-address (ql-sbcl:get-host-by-name host)))) (definterface open-connection (host port) (:documentation "Open and return a network connection to HOST on the given PORT.") (:impl...
9d01587f91f66bd0972241883a5fd4680a2010960ef79be9b99bd973561ed6c2
abakst/Brisk
Test00.hs
# LANGUAGE ScopedTypeVariables # {-# OPTIONS_GHC -fplugin Brisk.Plugin #-} # OPTIONS_GHC -fplugin - opt Brisk . Plugin : expectSend # module Scratch where import Control.Distributed.Process getPid :: Process (Maybe ProcessId) getPid = expect expectSend :: Process () expectSend = do p <- getPid n <- ex...
null
https://raw.githubusercontent.com/abakst/Brisk/3e4ce790a742d3e3b786dba45d36f715ea0e61ef/examples/Test00.hs
haskell
# OPTIONS_GHC -fplugin Brisk.Plugin #
# LANGUAGE ScopedTypeVariables # # OPTIONS_GHC -fplugin - opt Brisk . Plugin : expectSend # module Scratch where import Control.Distributed.Process getPid :: Process (Maybe ProcessId) getPid = expect expectSend :: Process () expectSend = do p <- getPid n <- expect case p of ...
52f94bfb7121ff0c8a4f3a0937a42baf97ccc41311dda741a1d7db68eb4e0953
soulomoon/haskell-katas
MicroLens.hs
module Katas.MicroLens where import Prelude hiding (sum) import Kyu1.MicroLens import Data.Monoid import Test.Hspec main :: IO () main = hspec spec spec :: Spec spec = do describe "Basic lensing" $ do it "should view _1" $ shouldBe (view _1 (1,2)) 1 it "should view _2" $ shouldBe (view _2 (1,2)) 2 it ...
null
https://raw.githubusercontent.com/soulomoon/haskell-katas/0861338e945e5cbaadf98138cf8f5f24a6ca8bb3/test/Katas/MicroLens.hs
haskell
describe "Use of modules" $ do hidden [ Module "Control.Lens" , Module "Control.Lens.Action" , Module "Control.Lens.At" , Module "Control.Lens.Combinators" , Module "Control.Lens.Cons" , Module "Control.Lens.Each" , Module "Control.Lens.Empty" , ...
module Katas.MicroLens where import Prelude hiding (sum) import Kyu1.MicroLens import Data.Monoid import Test.Hspec main :: IO () main = hspec spec spec :: Spec spec = do describe "Basic lensing" $ do it "should view _1" $ shouldBe (view _1 (1,2)) 1 it "should view _2" $ shouldBe (view _2 (1,2)) 2 it ...
6ee60010f5fa9477a91d8d226acde7015d5714fc6769d0c22788664111c56b79
Dasudian/DSDIN
wormhole_offchain_tx.erl
-module(wormhole_offchain_tx). -include("channel_txs.hrl"). -behaviour(aetx). %% Behavior API -export([new/1, type/0, fee/1, ttl/1, nonce/1, origin/1, check/5, process/5, accounts/1, signers/2, serialization_template/1, ...
null
https://raw.githubusercontent.com/Dasudian/DSDIN/b27a437d8deecae68613604fffcbb9804a6f1729/apps/wormhole/src/wormhole_offchain_tx.erl
erlang
Behavior API Getters =================================================================== Types =================================================================== off-chain =================================================================== Behaviour API ============================================================...
-module(wormhole_offchain_tx). -include("channel_txs.hrl"). -behaviour(aetx). -export([new/1, type/0, fee/1, ttl/1, nonce/1, origin/1, check/5, process/5, accounts/1, signers/2, serialization_template/1, serialize/1,...
0ed5630d21540e51bd286fe02d07aa4f96298e30bc39c97123ba6cc4331cf6d6
ad-si/TaskLite
TaskToTag.hs
module TaskToTag where import Protolude as P ( Generic, Identity, Show, Text, decodeUtf8, (.), ) import Data.Text as T (dropEnd) import Data.Yaml as Yaml (ToJSON, encode) import Database.Beam ( Beamable, Columnar, Table (..), ) import Prettyprinter (Pretty (pretty)) import Task (TaskT) -- | Reco...
null
https://raw.githubusercontent.com/ad-si/TaskLite/e36e1cb7998ff35185d86b7b3c988cb062622db5/tasklite-core/source/TaskToTag.hs
haskell
| Record for storing entries of the `task_to_tag` table Ulid For conversion to JSON Drop trailing newline to maybe add it later
module TaskToTag where import Protolude as P ( Generic, Identity, Show, Text, decodeUtf8, (.), ) import Data.Text as T (dropEnd) import Data.Yaml as Yaml (ToJSON, encode) import Database.Beam ( Beamable, Columnar, Table (..), ) import Prettyprinter (Pretty (pretty)) import Task (TaskT) data Task...
9052b44590b2251d7ef9a05a1d6f7ae44e8b0ad6969fb06f9dec238bc55517b5
wardle/pc4
dates.clj
(ns com.eldrix.pc4.dates (:require [cognitect.transit :as transit]) (:import (java.time LocalDate LocalDateTime ZonedDateTime Period) (java.time.format DateTimeFormatter) (java.time.temporal ChronoUnit TemporalAccessor))) (defn in-range? "Is the date in the range specified, or is the range ...
null
https://raw.githubusercontent.com/wardle/pc4/0b38fb7648965232b1ef90fcb4d3f3affc22adf1/pc4-server/src/clj/com/eldrix/pc4/dates.clj
clojure
special handling of infants
(ns com.eldrix.pc4.dates (:require [cognitect.transit :as transit]) (:import (java.time LocalDate LocalDateTime ZonedDateTime Period) (java.time.format DateTimeFormatter) (java.time.temporal ChronoUnit TemporalAccessor))) (defn in-range? "Is the date in the range specified, or is the range ...
961544889c981f256c7e036f7b21fcdc313e410555496f2adc340364de31b2d9
pveber/col
myocamlbuild.ml
OASIS_START DO NOT EDIT ( digest : 7e58898896f522b4f2766c843991516e ) module OASISGettext = struct # 21 "/home/gildor/programmation/oasis/src/oasis/OASISGettext.ml" let ns_ str = str let s_ str = str let f_ (str : ('a, 'b, 'c, 'd) format4) = str let fn_ fmt1 fmt2 n = if n = 1 t...
null
https://raw.githubusercontent.com/pveber/col/96cabc39b3e7d465f4bfde593027f59d3db7fb11/myocamlbuild.ml
ocaml
these functions are not really officially exported this lists all supported packages this is supposed to list available syntaxes, but I don't know how to do it. ocamlfind command by using Before_options one let command line options have an higher priority on the contrary using After_options will guarantee to...
OASIS_START DO NOT EDIT ( digest : 7e58898896f522b4f2766c843991516e ) module OASISGettext = struct # 21 "/home/gildor/programmation/oasis/src/oasis/OASISGettext.ml" let ns_ str = str let s_ str = str let f_ (str : ('a, 'b, 'c, 'd) format4) = str let fn_ fmt1 fmt2 n = if n = 1 t...
0b81e339bc986c8eb5f9f913f8fbbabcdc21141477035c88cb7b89d05071d07b
lasp-lang/partisan
oc_statem.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2017 - 2022 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/lasp-lang/partisan/e37ca042f82f4a9d91747dcd8ecd0d3da17667ec/test/otp/oc_statem.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 2017 - 2022 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(oc_statem). -behaviour(partisan_gen_statem). -export([start/1]). -export([init/1, callback_mode/0, handle_...
bab95b56447ded12d6c7a6c84caa42d8511a9be6c6a988ca9b6c212b5f557852
FranklinChen/hugs98-plus-Sep2006
Colors.hs
-------------------------------------------------------------------------------- -- | -- Module : Graphics.Rendering.OpenGL.GL.Colors Copyright : ( c ) 2002 - 2005 -- License : BSD-style (see the file libraries/OpenGL/LICENSE) -- -- Maintainer : -- Stability : provisional -- Portability : po...
null
https://raw.githubusercontent.com/FranklinChen/hugs98-plus-Sep2006/54ab69bd6313adbbed1d790b46aca2a0305ea67e/packages/OpenGL/Graphics/Rendering/OpenGL/GL/Colors.hs
haskell
------------------------------------------------------------------------------ | Module : Graphics.Rendering.OpenGL.GL.Colors License : BSD-style (see the file libraries/OpenGL/LICENSE) Maintainer : Stability : provisional Portability : portable OpenGL 1.5 specs. ---------------------------...
Copyright : ( c ) 2002 - 2005 This module corresponds to section 2.14 ( Colors and Coloring ) of the module Graphics.Rendering.OpenGL.GL.Colors ( lighting, Light(..), light, maxLights, FrontFaceDirection(..), frontFace, Face(..), materialAmbient, materialDiffuse, materialAmbientAndDiffuse, m...
b79c6e8295077509818643376da4854d33be0896b7aaafaf279395e8e123da60
racket/redex
preprocess-pat.rkt
#lang racket/base (require racket/match racket/set racket/hash "env.rkt" "error.rkt" "match-a-pattern.rkt") (provide preprocess (struct-out ann-pat)) preprocess : pat - > ( env pat ) (define (preprocess pat) (build-env (remove-names pat))) ;; This functi...
null
https://raw.githubusercontent.com/racket/redex/4c2dc96d90cedeb08ec1850575079b952c5ad396/redex-lib/redex/private/preprocess-pat.rkt
racket
This function returns an env containing all top-level name references, i.e., the ones that need to be enumerated doing anything (Map[A] -O> Bool) A ... -> Map[A] -O> Bool (Map[A] -O> Bool) (Map[A] -O> Bool) -> Map[A] -O> Bool Patterns annotated with variable/name/repeat information
#lang racket/base (require racket/match racket/set racket/hash "env.rkt" "error.rkt" "match-a-pattern.rkt") (provide preprocess (struct-out ann-pat)) preprocess : pat - > ( env pat ) (define (preprocess pat) (build-env (remove-names pat))) (define (build...
9d37fa3f72a2f607102772a7ef25a50699751bbb30869215b19671cdfd55f586
ghc/nofib
Tags.hs
module Tags where import Parse import Build_Tm import Unparse import Build_itrm import Token import Type_defs import Kernel import Core_datatype import Vtslib type Tag_table = [ Tag ] tgL = ( [ ("reflex" , [ Term_Arg ] , [ Thm_Fn reflex_fn ] ) , ("\226" , [ Deriv_Arg , Int_Arg ] , [ Thm_Fn b...
null
https://raw.githubusercontent.com/ghc/nofib/f34b90b5a6ce46284693119a06d1133908b11856/real/veritas/Tags.hs
haskell
module Tags where import Parse import Build_Tm import Unparse import Build_itrm import Token import Type_defs import Kernel import Core_datatype import Vtslib type Tag_table = [ Tag ] tgL = ( [ ("reflex" , [ Term_Arg ] , [ Thm_Fn reflex_fn ] ) , ("\226" , [ Deriv_Arg , Int_Arg ] , [ Thm_Fn b...
6a445808e980a643932585ca44a77e6a68f578f093397edc38c0ddd4511ff4ae
botsunit/bucs
bucfile_tests.erl
-module(bucfile_tests). -include_lib("eunit/include/eunit.hrl"). bucfile_test_() -> {setup, fun setup/0, fun teardown/1, [ ?_test(t_realpath()) , ?_test(t_realtive_from()) , ?_test(t_match()) ]}. setup() -> ok. teardown(_) -> ok. t_realpath() -> case os:type() of win32 -> ...
null
https://raw.githubusercontent.com/botsunit/bucs/792437befd259042efaf95e301dec019a5dd6ea4/test/bucfile_tests.erl
erlang
-module(bucfile_tests). -include_lib("eunit/include/eunit.hrl"). bucfile_test_() -> {setup, fun setup/0, fun teardown/1, [ ?_test(t_realpath()) , ?_test(t_realtive_from()) , ?_test(t_match()) ]}. setup() -> ok. teardown(_) -> ok. t_realpath() -> case os:type() of win32 -> ...
447d12ccb343aa9d1b27fa3b27828eacd51ac48f720fcbabb66d3ba8e5b39d71
skanev/playground
44-tests.scm
(require rackunit rackunit/text-ui) (load "../44.scm") (define sicp-1.44-tests (test-suite "Tests for SICP exercise 1.44" ; A rather flaky way of testing it (check-not-equal? ((smoothed abs) 0) 0) (check-= ((smoothed abs) 0) 0 0.00001) (check-not-equal? ((n-fold-smoothed abs 4) 0) 0) (check...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/sicp/01/tests/44-tests.scm
scheme
A rather flaky way of testing it
(require rackunit rackunit/text-ui) (load "../44.scm") (define sicp-1.44-tests (test-suite "Tests for SICP exercise 1.44" (check-not-equal? ((smoothed abs) 0) 0) (check-= ((smoothed abs) 0) 0 0.00001) (check-not-equal? ((n-fold-smoothed abs 4) 0) 0) (check-= ((n-fold-smoothed abs 4) 0) 0 0.0000...
64e93ca3d3ccedf0c73ea6b73060ce668532f5b33d8becd99efe9f55a9697dd8
haskell/time
Julian.hs
{-# LANGUAGE Safe #-} module Data.Time.Calendar.Julian ( Year, MonthOfYear, pattern January, pattern February, pattern March, pattern April, pattern May, pattern June, pattern July, pattern August, pattern September, pattern October, pattern November, pattern Dec...
null
https://raw.githubusercontent.com/haskell/time/a0f8ed7475c10783b574ef20a0b2e9e11e9338dc/lib/Data/Time/Calendar/Julian.hs
haskell
# LANGUAGE Safe # calendrical arithmetic # COMPLETE JulianYearMonthDay # | Calendrical difference, with as many whole months as possible | Calendrical difference, with as many whole months as possible.
module Data.Time.Calendar.Julian ( Year, MonthOfYear, pattern January, pattern February, pattern March, pattern April, pattern May, pattern June, pattern July, pattern August, pattern September, pattern October, pattern November, pattern December, DayOfMonth,...
919d6d566fa9d2110f4c6e8f52199d9decc08fc6af219580d7078ade5286e984
marcoheisig/adventofcode
day-22.lisp
(defpackage :adventofcode-2020-day-22 (:use :cl)) (in-package :adventofcode-2020-day-22)
null
https://raw.githubusercontent.com/marcoheisig/adventofcode/e96a0da17cd79f424af984ed2648b49ffdacb893/2020/day-22/day-22.lisp
lisp
(defpackage :adventofcode-2020-day-22 (:use :cl)) (in-package :adventofcode-2020-day-22)
3b3dc5d69174a3795318db0a8fc3fd61285f2eec2eddc242b71eae79c4c74784
pol-is/polisMath
index_hash_test.clj
Copyright ( C ) 2012 - present , The Authors . This program is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License , version 3 , as published by the Free Software Foundation . This program is distributed in the hope that it will be useful , but WITHOUT A...
null
https://raw.githubusercontent.com/pol-is/polisMath/dfe233e8c9207c2ce11e1379286ad0cf0f732067/test/index_hash_test.clj
clojure
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the GNU Affero General Public License for more details . You should have received a copy of the GNU Affero General Public License along with this program . If not , see < / > . XXX - should really go through here and cl...
(ns index-hash-test (:require [clojure.test :refer :all] [polismath.math.named-matrix :refer :all])) (defn ih-equals [ih1 ih2] (letfn [(hash-rep [h] (sort (into [] h))) (hash-equal [h1 h2] (= (hash-rep h1) (hash-rep h2)))] (and (= (get-names ih1) (get-names ih2)) (= (hash-equal (....
34e8e34d40f6bb8401e12280d34685244c3eef946098f5a369506238fb8e25ed
kmi/irs
irs.lisp
Mode : Lisp ; Package : Author : The Open University (in-package "OCML") (in-ontology wsmo) goals and web services which implement IRS III ;; (def-class mediate-input-role-values-goal (goal) "This goal transforms the inputs of a goal to the inputs of a web service." ((has-input-soap-binding :val...
null
https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/ontologies/domains/wsmo/irs.lisp
lisp
Package :
Author : The Open University (in-package "OCML") (in-ontology wsmo) goals and web services which implement IRS III (def-class mediate-input-role-values-goal (goal) "This goal transforms the inputs of a goal to the inputs of a web service." ((has-input-soap-binding :value (has-target-goal "sexpr") ...
6585072ac90ad1880b914629a69b3956677711a3b3c17814356358898a2fee55
kblake/erlang-chat-demo
element_inplace_textarea.erl
Nitrogen Web Framework for Erlang Copyright ( c ) 2008 - 2010 See MIT - LICENSE for licensing information . -module (element_inplace_textarea). -include_lib ("wf.hrl"). -compile(export_all). reflect() -> record_info(fields, inplace_textarea). render_element(Record) -> % Get vars... OKButtonID = wf:t...
null
https://raw.githubusercontent.com/kblake/erlang-chat-demo/6fd2fce12f2e059e25a24c9a84169b088710edaf/apps/nitrogen/src/elements/forms/element_inplace_textarea.erl
erlang
Get vars... Set up the events... Create the view...
Nitrogen Web Framework for Erlang Copyright ( c ) 2008 - 2010 See MIT - LICENSE for licensing information . -module (element_inplace_textarea). -include_lib ("wf.hrl"). -compile(export_all). reflect() -> record_info(fields, inplace_textarea). render_element(Record) -> OKButtonID = wf:temp_id(), Canc...
15e9cd37da7cc0b8dbc2fd15f8e371650774a16ffc941dad2f9c3bd85e61c184
GlideAngle/flare-timing
Types.hs
module Flight.Path.Types ( IxTask(..) , DotFolder(..) , AltDot(..) , FileType(..) , FileShape(..) , CompDir(..) , TaskDir(..) , UnpackTrackDir(..) , AlignTimeDir(..) , DiscardFurtherDir(..) , AreaStepDir(..) , PegThenDiscardDir(..) , CompInputFile(..) , TaskInpu...
null
https://raw.githubusercontent.com/GlideAngle/flare-timing/27bd34c1943496987382091441a1c2516c169263/lang-haskell/comp/library/Flight/Path/Types.hs
haskell
| 1-based indices of a task in a competition. ^ Root is the same folder as the *.fsdb. ^ The dot folder for flare-timing, .flare-timing. ^ The dot folder for airScore, .air-score. | Alternative dot folders than .flare-timing and root. ^ An XML comp file, cleaned of personal details. ^ An XML comp file trimmed do...
module Flight.Path.Types ( IxTask(..) , DotFolder(..) , AltDot(..) , FileType(..) , FileShape(..) , CompDir(..) , TaskDir(..) , UnpackTrackDir(..) , AlignTimeDir(..) , DiscardFurtherDir(..) , AreaStepDir(..) , PegThenDiscardDir(..) , CompInputFile(..) , TaskInpu...
36f1a58e7837ca624beea19cbbd3e4cf3bf1c09dc5fab9fe04385d5ab46033d6
ocaml/merlin
completion.ml
{ { { COPYING * ( This file is part of Merlin , an helper for ocaml editors Copyright ( C ) 2013 - 2015 < frederic.bour(_)lakaban.net > refis.thomas(_)gmail.com > < simon.castellan(_)iuwt.fr > < jer...
null
https://raw.githubusercontent.com/ocaml/merlin/5b51083134524857db7759029ed089b0f94e5bfc/src/analysis/completion.ml
ocaml
this is not correct: the ident is not persistent, the printing of some polymorphic variant type could (perhaps) be incorrect because of this (though I haven't tried to add a test). But it would be incorrect with any ident with synthesize at this point anyway. And create_persistent i...
{ { { COPYING * ( This file is part of Merlin , an helper for ocaml editors Copyright ( C ) 2013 - 2015 < frederic.bour(_)lakaban.net > refis.thomas(_)gmail.com > < simon.castellan(_)iuwt.fr > < jer...
b1a906c2c328dad32e4ce6c4d3bb6d7aab4e48104c36ce4c8c5a50a60f4af783
openworkload/swm-core
wm_entity.erl
-module(wm_entity). -behaviour(json_rec_model). -include_lib("wm_entity.hrl"). -include("wm_log.hrl"). -export([new/1, rec/1, pretty/1, get/2, set/2, get_type/2, get_names/1, get_fields/1, extract_json_field_info/1, get_incomparible_fields/1, descriptions_to_recs/1]). % -define(ENTITIES, [global,...
null
https://raw.githubusercontent.com/openworkload/swm-core/250facc707739010715cd9f1605b0dda817ab05c/src/lib/wm_entity.erl
erlang
@doc get all record field names @doc get an attribute by name @doc set an attribute by name @doc The function returns table of properties that can be different on different nodes and this is expected, so we treat such entities as identical
-module(wm_entity). -behaviour(json_rec_model). -include_lib("wm_entity.hrl"). -include("wm_log.hrl"). -export([new/1, rec/1, pretty/1, get/2, set/2, get_type/2, get_names/1, get_fields/1, extract_json_field_info/1, get_incomparible_fields/1, descriptions_to_recs/1]). -define(ENTITIES, [global, ex...
e740a1dca4d1bb219f1785037ddec7532e4a6e1aeb73bd8f1162468a5d8b323d
clojure-emacs/clj-suitable
main.clj
(ns suitable.figwheel.main (:require figwheel.main ;; requiring this will override the rebel-readline completion ;; service suitable.hijack-rebel-readline-complete)) (def extra-figwheel-args ["--compile-opts" "{:preloads [suitable.js-introspection]}"]) (defn -main [& args] (app...
null
https://raw.githubusercontent.com/clojure-emacs/clj-suitable/b472be03a44b2898a07663d62ccb68f8bff24e14/src/main/suitable/figwheel/main.clj
clojure
requiring this will override the rebel-readline completion service
(ns suitable.figwheel.main (:require figwheel.main suitable.hijack-rebel-readline-complete)) (def extra-figwheel-args ["--compile-opts" "{:preloads [suitable.js-introspection]}"]) (defn -main [& args] (apply figwheel.main/-main (concat extra-figwheel-args args)))
a489602cac92ef1d6b326b0c5371fead53e02c84176e625c345745ae302c4f3e
ghcjs/jsaddle-dom
MessageEvent.hs
# LANGUAGE PatternSynonyms # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.MessageEvent (newMessageEvent, initMessageEvent, getOrigin, getLastEventId, getSource, getSourceUnsafe, get...
null
https://raw.githubusercontent.com/ghcjs/jsaddle-dom/5f5094277d4b11f3dc3e2df6bb437b75712d268f/src/JSDOM/Generated/MessageEvent.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures # | <-US/docs/Web/API/MessageEvent Mozilla MessageEvent documentation> | <-US/docs/Web/API/MessageEvent.data Mozilla MessageEvent.data documentation>
# LANGUAGE PatternSynonyms # # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.MessageEvent (newMessageEvent, initMessageEvent, getOrigin, getLastEventId, getSource, getSourceUnsafe, getSourceUnchecked, getData, getPorts, MessageEvent(..), gTypeMessageEvent) where impor...
046dc3a323e89f76a9d3f701083216bdc3fe808eafaeaabc1fc547cf2a53d94d
gfredericks/clj-usage-graph
clj_usage_graph.clj
(ns com.gfredericks.clj-usage-graph "Entry point." (:refer-clojure :exclude [munge]) (:require [clojure.java.io :as io] [clojure.string :as s] [clojure.tools.namespace.parse :as ctnp] [com.gfredericks.clj-usage-graph.usages :refer [all-internal-usages]])) (defn munge "Transf...
null
https://raw.githubusercontent.com/gfredericks/clj-usage-graph/92a1e9d8516887c8fc213078532c66942df9d391/src/com/gfredericks/clj_usage_graph.clj
clojure
(ns com.gfredericks.clj-usage-graph "Entry point." (:refer-clojure :exclude [munge]) (:require [clojure.java.io :as io] [clojure.string :as s] [clojure.tools.namespace.parse :as ctnp] [com.gfredericks.clj-usage-graph.usages :refer [all-internal-usages]])) (defn munge "Transf...
f387732e4e0672118cbc7e4a4e0e13d1cde0cb5ff32e9230d8059815198b7088
tommaisey/aeon
b-close.help.scm
; /b_close ; int - buffer number ; After using a buffer with DiskOut, close the soundfile and write ; header information.
null
https://raw.githubusercontent.com/tommaisey/aeon/80744a7235425c47a061ec8324d923c53ebedf15/libs/third-party/sc3/rsc3/help/server-command/b-close.help.scm
scheme
/b_close int - buffer number After using a buffer with DiskOut, close the soundfile and write header information.
82fcf5f9e9c3efd321ad87ae6f8afd047529a22adb8f92cee4035ff24f72ef26
michaelpotter0207/gifcurry_gstreamer
GuiTextOverlays.hs
( C ) 2018 lettier.com Gifcurry (C) 2018 David Lettier lettier.com -} # LANGUAGE OverloadedStrings , NamedFieldPuns , BangPatterns , DuplicateRecordFields # OverloadedStrings , NamedFieldPuns , BangPatterns , DuplicateRecordFields #-} module GuiTextOverlays where imp...
null
https://raw.githubusercontent.com/michaelpotter0207/gifcurry_gstreamer/fda94bc73c201bb828ed82b9cb56cdd0f536d591/src/gui/GuiTextOverlays.hs
haskell
Some font weights, like 860, are not supported by the library. TODO Fix. This: pangoContext <- GI.Pango.contextNew GI.Pango.layoutSetFontDescription pangoLayout (Just fontDescription) GI.Pango.layoutSetText (Data.Text.pack textOverlayText) (intToInt32 $ length textOverlayText) let yAdjust = (int32ToDouble t...
( C ) 2018 lettier.com Gifcurry (C) 2018 David Lettier lettier.com -} # LANGUAGE OverloadedStrings , NamedFieldPuns , BangPatterns , DuplicateRecordFields # OverloadedStrings , NamedFieldPuns , BangPatterns , DuplicateRecordFields #-} module GuiTextOverlays where imp...
db3b2db54744ff7e9bfbfe6bf3b762438f1c7784c0f2f0b62a8f319607e956e8
jiangpengnju/htdp2e
ex19.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-advanced-reader.ss" "lang")((modname ex19) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #t #...
null
https://raw.githubusercontent.com/jiangpengnju/htdp2e/d41555519fbb378330f75c88141f72b00a9ab1d3/fixed-size-data/functions-and-programs/ex19.rkt
racket
about the language level of this file in a form that our tools can easily process. Define the function image-classify, which comsumes an image and produces "tall" if the image is taller than it is wide, "wide" if it is wider than it is taller, "tall" "wide" "square"
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-advanced-reader.ss" "lang")((modname ex19) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #t #t none #f () #f))) or " square " if its width and height are the same . see excercis...
6b47cdae62ad68642d9ab32c1789230c59105e41cc46fb067f75bc5070c0ec5e
tnelson/FlowLog
placeholder.ml
Service listens for events and prints them out in stdout . Service listens for Flowlog events and prints them out in stdout. *) open Arg open Thrift open Flowlog_rpc_types open Thread open Printf open Unix let listen_port = 20000;; " Die , Bart , Die ! " is German for " The , Bart , The ! " . -- Sideshow ...
null
https://raw.githubusercontent.com/tnelson/FlowLog/8be5051a4b3fa05c6299cdfa70f6a3def3893cf1/interpreter/thrift/placeholder.ml
ocaml
The ~ denotes a keyword argument ****************************************************************************** Listen in a separate thread. returns handle to new thread. ignore to avoid warning
Service listens for events and prints them out in stdout . Service listens for Flowlog events and prints them out in stdout. *) open Arg open Thrift open Flowlog_rpc_types open Thread open Printf open Unix let listen_port = 20000;; " Die , Bart , Die ! " is German for " The , Bart , The ! " . -- Sideshow ...
a2a9d696976785ddf865c8fa8edc5931b8e8400bbe6f7fd696bcd6d4d72f490e
connerirwin/musfix
Program.hs
# LANGUAGE TemplateHaskell , DeriveFunctor # -- | Executable programs module Language.Synquid.Program where import Language.SMT.Syntax import Language.Synquid.Logic import Language.Synquid.Type as Type import Language.Synquid.Tokens import Language.Synquid.Util import Language.Synquid.Error import Data.Ma...
null
https://raw.githubusercontent.com/connerirwin/musfix/97edf67693d6ee3ea7dc234b20db560af92d95c3/src/Language/Synquid/Program.hs
haskell
| Executable programs | One case inside a pattern match expression ^ Constructor name ^ Bindings for constructor arguments ^ Result of the match in this case | Program skeletons parametrized by information stored symbols, conditionals, and by node types ^ Symbol (variable or constant) ^ Function applicat...
# LANGUAGE TemplateHaskell , DeriveFunctor # module Language.Synquid.Program where import Language.SMT.Syntax import Language.Synquid.Logic import Language.Synquid.Type as Type import Language.Synquid.Tokens import Language.Synquid.Util import Language.Synquid.Error import Data.Maybe import Data.Either i...
ca5f872f99c1e398f7b34e1eb76095671f56b61bc83e5fa4a448ef71a9a185b1
freckle/yesod-auth-oauth2
AzureAD.hs
{-# LANGUAGE OverloadedStrings #-} -- | -- -- OAuth2 plugin for Azure AD. -- -- * Authenticates against Azure AD -- * Uses email as credentials identifier -- module Yesod.Auth.OAuth2.AzureAD ( oauth2AzureAD , oauth2AzureADScoped ) where import Prelude import Yesod.Auth.OAuth2.Prelude newtype User = User Text i...
null
https://raw.githubusercontent.com/freckle/yesod-auth-oauth2/8976e193e94ab4f0c38bea446a77d30b694780f4/src/Yesod/Auth/OAuth2/AzureAD.hs
haskell
# LANGUAGE OverloadedStrings # | OAuth2 plugin for Azure AD. * Authenticates against Azure AD * Uses email as credentials identifier
module Yesod.Auth.OAuth2.AzureAD ( oauth2AzureAD , oauth2AzureADScoped ) where import Prelude import Yesod.Auth.OAuth2.Prelude newtype User = User Text instance FromJSON User where parseJSON = withObject "User" $ \o -> User <$> o .: "mail" pluginName :: Text pluginName = "azuread" defaultScopes :: [Text] d...
28206c2b396539bf8f8f2608b46fe21ec60eb95e64c98a3ca74e09c65b754add
clj-commons/rewrite-clj
options.cljc
(ns ^:no-doc rewrite-clj.zip.options (:require [rewrite-clj.node.protocols :as protocols])) #?(:clj (set! *warn-on-reflection* true)) (def default-zipper-opts {:track-position? false :auto-resolve protocols/default-auto-resolve}) (defn get-opts [zloc] (:rewrite-clj.zip/opts (meta zloc))) (defn set-opts [zl...
null
https://raw.githubusercontent.com/clj-commons/rewrite-clj/1e1d1dfbf43ec80c2442c2050673adfc6677ca6b/src/rewrite_clj/zip/options.cljc
clojure
(ns ^:no-doc rewrite-clj.zip.options (:require [rewrite-clj.node.protocols :as protocols])) #?(:clj (set! *warn-on-reflection* true)) (def default-zipper-opts {:track-position? false :auto-resolve protocols/default-auto-resolve}) (defn get-opts [zloc] (:rewrite-clj.zip/opts (meta zloc))) (defn set-opts [zl...
701734f4a78a02ea6252793cfaa4f947c2abef0ba804d00ddfb9e90f69293f93
dnaeon/clingon
conditions.lisp
Copyright ( c ) 2021 Nikolov < > ;; 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 co...
null
https://raw.githubusercontent.com/dnaeon/clingon/2b1fd889d364061c0d0fe35700004382608f9603/src/conditions.lisp
lisp
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: notice, this list of conditions and the following disclaimer in this position and unchanged. notice, this list of conditions and the fo...
Copyright ( c ) 2021 Nikolov < > 1 . Redistributions of source code must retain the above copyright 2 . Redistributions in binary form must reproduce the above copyright THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S ) ` ` AS IS '' AND ANY EXPRESS OR INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES...
e0d6e5fe1858858de72ff6e4cba063e5c981b485ace0080df4bf9c6089836595
mbj/stratosphere
VdmOptionsProperty.hs
module Stratosphere.SES.ConfigurationSet.VdmOptionsProperty ( module Exports, VdmOptionsProperty(..), mkVdmOptionsProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.SES.ConfigurationSet.Dashboa...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/ses/gen/Stratosphere/SES/ConfigurationSet/VdmOptionsProperty.hs
haskell
# SOURCE # # SOURCE #
module Stratosphere.SES.ConfigurationSet.VdmOptionsProperty ( module Exports, VdmOptionsProperty(..), mkVdmOptionsProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties data VdmOptionsProperty ...