_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
de8094d1029b8d550deebce5d56648e45d69b2850899c054edf64005a0440732
mitsuji/mssql-simple
Only.hs
{-# OPTIONS_HADDOCK hide #-} module Database.MSSQLServer.Query.Only ( Only (..) ) where newtype Only a = Only {fromOnly::a} deriving (Show)
null
https://raw.githubusercontent.com/mitsuji/mssql-simple/3426b972a756b295b2a729571cb67b28bd9842d7/src/Database/MSSQLServer/Query/Only.hs
haskell
# OPTIONS_HADDOCK hide #
module Database.MSSQLServer.Query.Only ( Only (..) ) where newtype Only a = Only {fromOnly::a} deriving (Show)
6203a5831e134ed34e9f9b0bb5e43712355e02d45602154bf681aa2f50adee83
goldfirere/singletons
T29.hs
module Singletons.T29 where import Data.Singletons.TH import Prelude.Singletons $(singletons [d| foo :: Bool -> Bool foo x = not $ x -- test that $ works with function composition bar :: Bool -> Bool bar x = not . not . not $ x baz :: Bool -> Bool baz x = not $! x -- test that $! works with functio...
null
https://raw.githubusercontent.com/goldfirere/singletons/70d622645b960d60411ab8f31d16ffb91e69379e/singletons-base/tests/compile-and-dump/Singletons/T29.hs
haskell
test that $ works with function composition test that $! works with function composition
module Singletons.T29 where import Data.Singletons.TH import Prelude.Singletons $(singletons [d| foo :: Bool -> Bool foo x = not $ x bar :: Bool -> Bool bar x = not . not . not $ x baz :: Bool -> Bool baz x = not $! x ban :: Bool -> Bool ban x = not . not . not $! x |]) foo1a :: Proxy (Foo True)...
ce903be3377a860ada705257a7bc99cd438f5b6adf2966aede76546ba60de24f
Eduap-com/WordMat
drchek.lisp
;;; Compiled by f2cl version: ( " f2cl1.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl2.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl5.l , v 95098eb54f13 2013/04/01 00:45:16 toy $...
null
https://raw.githubusercontent.com/Eduap-com/WordMat/83c9336770067f54431cc42c7147dc6ed640a339/Windows/ExternalPrograms/maxima-5.45.1/share/maxima/5.45.1/share/odepack/src/drchek.lisp
lisp
Compiled by f2cl version: Using Lisp CMU Common Lisp snapshot-2013-11 (20E Unicode) Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t) (:coerce-assigns :as-needed) (:array-type ':array) (:array-slicing t) (:declare-common nil) (:float-format single-float))
( " f2cl1.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl2.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl5.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl6.l , v 1d5cbacbb9...
0134b0febbcb0523974ac02986ac8336c644f0f4a32892a35185f4169e99d147
soulomoon/SICP
Exercise5.25.scm
(load "/Users/soulomoon/git/SICP/material/allcode/load-eceval.scm") Exercise 5.25 : Modify the evaluator so that it uses normal - order evaluation , based on the lazy evaluator of 4.2 . that I need to steal somthing from 4.2 ;in order to use STRUCTURE like a thunk, here is what we need ;constructor: delay-it (define ...
null
https://raw.githubusercontent.com/soulomoon/SICP/1c6cbf5ecf6397eaeb990738a938d48c193af1bb/Chapter5/Exercise5.25.scm
scheme
in order to use STRUCTURE like a thunk, here is what we need constructor: delay-it predict: thunk?, evaluated-thunk? (user-print obj) (display (tagged-list? obj 'thunk)) getter operator: (force-it,actual-value) would be implement in the EXPLICIT-CONTROL machine Now it is time to implement add in the new operations now ...
(load "/Users/soulomoon/git/SICP/material/allcode/load-eceval.scm") Exercise 5.25 : Modify the evaluator so that it uses normal - order evaluation , based on the lazy evaluator of 4.2 . that I need to steal somthing from 4.2 (define (delay-it exp env) (list 'thunk exp env)) (define (thunk? obj) (tagged-list? obj ...
3d8630eebf01a3f4234b86a81b65cd0c3c2afedd0617942033694ca754712328
well-typed/large-records
JSON.hs
{-# LANGUAGE RecordWildCards #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # {-# LANGUAGE TypeOperators #-} -- | Generic conversion to/from JSON module Data.Record.Generic.JSON ( gtoJSON , gparseJSON ) where import Data.Aeson import Data.Aeson.Types import Data.Proxy import Da...
null
https://raw.githubusercontent.com/well-typed/large-records/fbc9d886094b7b40d6b89db72ff4c7fb59d5b903/large-generics/src/Data/Record/Generic/JSON.hs
haskell
# LANGUAGE RecordWildCards # # LANGUAGE TypeOperators # | Generic conversion to/from JSON
# LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module Data.Record.Generic.JSON ( gtoJSON , gparseJSON ) where import Data.Aeson import Data.Aeson.Types import Data.Proxy import Data.String import Data.Record.Generic import qualified Data.Record.Generic.Rep as Rep gtoJSON :: forall a. (Ge...
c14ecfb532341a8fa53e0b288aa1e3a05cb4872c8d7b9eab54281e50bda97ff5
opencog/opencog
r2l-atomspace7.scm
(ConceptNode "r2l-abstracted-interp") (SetLink ) (SetLink (EvaluationLink (stv 1 1) (LinkGrammarRelationshipNode "Wdc") (ListLink (WordInstanceNode "and@f078a05c-1ae1-4dde-92c9-73a78076e014") (WordInstanceNode "she@9aa88879-9bb7-4fdf-9565-955ca8672a86") ) ) (EvaluationLink (...
null
https://raw.githubusercontent.com/opencog/opencog/140ae08c4da9d9ae0d24d46a9214dba034498d37/tests/nlp/sureal/r2l-atomspace7.scm
scheme
(ConceptNode "r2l-abstracted-interp") (SetLink ) (SetLink (EvaluationLink (stv 1 1) (LinkGrammarRelationshipNode "Wdc") (ListLink (WordInstanceNode "and@f078a05c-1ae1-4dde-92c9-73a78076e014") (WordInstanceNode "she@9aa88879-9bb7-4fdf-9565-955ca8672a86") ) ) (EvaluationLink (...
f2bbc68ba33b25d421f643fd58a98d387a83930d2a9ca5bbaaef0983ecaf3536
tonyg/kali-scheme
build.scm
Copyright ( c ) 1993 , 1994 by and . Copyright ( c ) 1996 by NEC Research Institute , Inc. See file COPYING . ; Commands for writing images. ; A heap image written using ,dump or ,build can be invoked with ; s48 -i <filename> [-h <heap size>] [-a <argument>] ; For images made with ,build <exp> <filena...
null
https://raw.githubusercontent.com/tonyg/kali-scheme/79bf76b4964729b63fce99c4d2149b32cb067ac0/scheme/env/build.scm
scheme
Commands for writing images. A heap image written using ,dump or ,build can be invoked with s48 -i <filename> [-h <heap size>] [-a <argument>] For images made with ,build <exp> <filename>, <argument> is passed as a string to the procedure that is the result of <exp>. dump <filename> build <exp> <filename> bu...
Copyright ( c ) 1993 , 1994 by and . Copyright ( c ) 1996 by NEC Research Institute , Inc. See file COPYING . (define-command-syntax 'dump "<filename>" "write the current heap to an image file" '(filename &opt form)) (define (dump filename . maybe-info) (let ((info (if (null? maybe-info) "(susp...
20fda11e521eff6959bc0fd5839e36bf5fd957b7ec4f5d2431d8f0d4b77de6f1
amnh/poy5
profiles.ml
POY 5.1.1 . A phylogenetic analysis program using Dynamic Homologies . Copyright ( C ) 2014 , , , Ward Wheeler , and the American Museum of Natural History . (* *) (* This program is free softwa...
null
https://raw.githubusercontent.com/amnh/poy5/da563a2339d3fa9c0110ae86cc35fad576f728ab/src/profiles.ml
ocaml
This program is free software; you can redistribute it and/or modify (at your option) any later version. This progra...
POY 5.1.1 . A phylogenetic analysis program using Dynamic Homologies . Copyright ( C ) 2014 , , , Ward Wheeler , and the American Museum of Natural History . it under the terms of the GNU General Public License as published by the Free Software Foundation ; ...
7551870a1c3d09c5d14157b3ab8e8a465240959e1f29fde70babdfd88a75c46b
racket/db
query.rkt
#lang racket/base (require rackunit racket/class db/base) ;; ---------------------------------------- ;; group-rows (define vehicles-result (rows-result '(((name . "type")) ((name . "maker")) ((name . "model"))) `(#("car" "honda" "civic") #("car" "ford" "focus") #("car" "fo...
null
https://raw.githubusercontent.com/racket/db/0336d2522a613e76ebf60705cea3be4c237c447e/db-test/tests/db/gen/query.rkt
racket
---------------------------------------- group-rows
#lang racket/base (require rackunit racket/class db/base) (define vehicles-result (rows-result '(((name . "type")) ((name . "maker")) ((name . "model"))) `(#("car" "honda" "civic") #("car" "ford" "focus") #("car" "ford" "pinto") #("bike" "giant" "boulder") #(...
e7d9748c6fbd4ad753342f7ad046e6bba595edbc0d91ec19730570cb55198b2e
retrogradeorbit/moonhenge
project.clj
(defproject moonhenge "0.1.0-SNAPSHOT" :description "FIXME: write this!" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :min-lein-version "2.5.3" :dependencies [[org.clojure/clojure "1.7.0"] [org.clojure/clojurescript "1.7.170"] [org.clojure/...
null
https://raw.githubusercontent.com/retrogradeorbit/moonhenge/3228e2f50a90abecddf01e2aedd1d30c0a588b93/project.clj
clojure
If no code is to be run, set :figwheel true for continued automagical reloading This next build is an compressed minified build for production. You can build this with: :http-server-root "public" ;; default and assumes "resources" ; default watch and update CSS if you want to embed a ring handler into the figwhe...
(defproject moonhenge "0.1.0-SNAPSHOT" :description "FIXME: write this!" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :min-lein-version "2.5.3" :dependencies [[org.clojure/clojure "1.7.0"] [org.clojure/clojurescript "1.7.170"] [org.clojure/...
7d955481e23f565474a335e3e35b8c7a073b344867c950a58635813abffd1779
b1412/clojure-web-admin
role.clj
(ns clojure-web.routes.role (:require [clojure-web.common.crud :refer [defcrud-routes query-entity create-entity]] [clojure-web.common.fingerprint :as fingerprint] [clojure-web.db.entity :refer [role role-resource] ] [clojure-web.render :as render] [clojure.set :as set]...
null
https://raw.githubusercontent.com/b1412/clojure-web-admin/018161dcdb364cc168d6f5a56ceb798005a0701f/src/clj/clojure_web/routes/role.clj
clojure
(ns clojure-web.routes.role (:require [clojure-web.common.crud :refer [defcrud-routes query-entity create-entity]] [clojure-web.common.fingerprint :as fingerprint] [clojure-web.db.entity :refer [role role-resource] ] [clojure-web.render :as render] [clojure.set :as set]...
c1b300be314e286cc06ffc181f4021d71c984a5560b3bc112f5396fcfa8838cc
atgreen/lisp-openshift
package.lisp
(cl:defpackage :nibbles (:use :cl) ;; Basic octet vector accessors. (:export #:ub16ref/le #:ub16ref/be #:sb16ref/le #:sb16ref/be #:ub32ref/le #:ub32ref/be #:sb32ref/le #:sb32ref/be #:ub64ref/le #:ub64ref/be #:sb64ref/le #:sb64ref/be) ;; Floating-point octet vector accessors. ;; Not suppo...
null
https://raw.githubusercontent.com/atgreen/lisp-openshift/40235286bd3c6a61cab9f5af883d9ed9befba849/quicklisp/dists/quicklisp/software/nibbles-20120407-git/package.lisp
lisp
Basic octet vector accessors. Floating-point octet vector accessors. Not supported on all platforms. Stream readers. Stream readers for vectors. Non-consing variants akin to READ-SEQUENCE. Stream writers. Stream writers for vectors.
(cl:defpackage :nibbles (:use :cl) (:export #:ub16ref/le #:ub16ref/be #:sb16ref/le #:sb16ref/be #:ub32ref/le #:ub32ref/be #:sb32ref/le #:sb32ref/be #:ub64ref/le #:ub64ref/be #:sb64ref/le #:sb64ref/be) (:export #:ieee-single-ref/be #:ieee-single-ref/le #:ieee-double-ref/be #:ieee-d...
091c72d3e505daf146050cd5bc6da41340437120e392b171d0e65a0b4a011611
jackrosenthal/sdraw-racket
info.rkt
#lang info (define collection "sdraw") (define deps '("base" "pict-lib")) (define build-deps '("scribble-lib" "racket-doc" "rackunit-lib" "pict-doc")) (define scribblings '(("scribblings/sdraw.scrbl" ()))) (define pkg-desc "Draw cons-cell diagrams (box-and-pointer diagrams) using pict") (define version "0.1") (define...
null
https://raw.githubusercontent.com/jackrosenthal/sdraw-racket/b885937074fa2c8ac0db4df2f84f11ea3e52ddcf/info.rkt
racket
#lang info (define collection "sdraw") (define deps '("base" "pict-lib")) (define build-deps '("scribble-lib" "racket-doc" "rackunit-lib" "pict-doc")) (define scribblings '(("scribblings/sdraw.scrbl" ()))) (define pkg-desc "Draw cons-cell diagrams (box-and-pointer diagrams) using pict") (define version "0.1") (define...
e8c262edf2446bfc92da8c8612baf81ce6e7942c80d71fb5950332fbf99001b2
roswell/roswell
list-default.lisp
(defpackage :roswell.list.default (:use :cl)) (in-package :roswell.list.default) (defun default (&rest r) (if (null r) (progn (format *error-output* "Possible subcommands:~%") (finish-output *error-output*) (format t "~{~A~%~}" (sort (loop for x in (asdf:registered-sys...
null
https://raw.githubusercontent.com/roswell/roswell/0107dfb54393aff1a776deb79d58f67f642135cb/lisp/list-default.lisp
lisp
(defpackage :roswell.list.default (:use :cl)) (in-package :roswell.list.default) (defun default (&rest r) (if (null r) (progn (format *error-output* "Possible subcommands:~%") (finish-output *error-output*) (format t "~{~A~%~}" (sort (loop for x in (asdf:registered-sys...
be01890201351e243fe6ba1361145d12500474b667b3b069876455168510b885
esl/MongooseIM
distributed_helper.erl
-module(distributed_helper). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). -import(ejabberd_node_utils, [get_cwd/2]). -compile([export_all, nowarn_export_all]). -type rpc_spec() :: #{node := node(), cookie => atom(), timeout => non_n...
null
https://raw.githubusercontent.com/esl/MongooseIM/d6be06b4d429ae075fcd6615b903ef0e563ed188/big_tests/tests/distributed_helper.erl
erlang
This timeout is deliberately a long one. @doc Perform a remote call on a target node described by `RPCSpec'. We can define the spec once for multiple calls: ``` my_test(Config) -> ... ?dh:rpc(Spec#{timeout => timer:seconds(30), ... ''' Or inline for a quick-and-dirty hack (but beware of code revi...
-module(distributed_helper). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). -import(ejabberd_node_utils, [get_cwd/2]). -compile([export_all, nowarn_export_all]). -type rpc_spec() :: #{node := node(), cookie => atom(), timeout => non_n...
ad4115e29bf790d9774dbc06faf42da83af9d70d5e8bf779af6a2d38babcf492
clojure/tools.analyzer
uniquify.clj
Copyright ( c ) , Rich Hickey & contributors . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be b...
null
https://raw.githubusercontent.com/clojure/tools.analyzer/fd55a292ff4802bd7b7e8b78036d0d1e25f6e48b/src/main/clojure/clojure/tools/analyzer/passes/uniquify.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) , Rich Hickey & contributors . (ns clojure.tools.analyzer.passes.uniquify (:refer-clojure :exclude [update-vals]) (:require [clojure.tools.analyzer.ast :refer [update-children children]] [clojure.tools.analyzer.utils :refer [update-vals]] [clojure.tools.analyzer.env :a...
f854c49154fc796b97b8602eb926a57eb40e71a53e66ae15716163602e3de1dd
AndreaCrotti/elo
scratchbook.clj
(ns byf.scratchbook (:require [clojure.java.jdbc :as jdbc] [honeysql.core :as sql])) (def prod-db-url "postgres::5432/ddtbj3dr5jd9vf") (comment (with-redefs [db-spec (constantly prod-db-url)] (first (map (juxt :id :game_type) (load-leagues)))));; => [#uuid "f062cc50-d5a4-4494-b53c-73ff87992349" "f...
null
https://raw.githubusercontent.com/AndreaCrotti/elo/98c4b13b2c4e0605015d5d17a8be6cbb78c3f3f6/src/clj/byf/scratchbook.clj
clojure
=> [#uuid "f062cc50-d5a4-4494-b53c-73ff87992349" "fifa"]
(ns byf.scratchbook (:require [clojure.java.jdbc :as jdbc] [honeysql.core :as sql])) (def prod-db-url "postgres::5432/ddtbj3dr5jd9vf") (comment (with-redefs [db-spec (constantly prod-db-url)] (comment (with-redefs [db-spec (constantly prod-db-url)] (add-player-full! {:name "Razvan" :...
2759ab526eedf1f31b2bef0973c7f60e56c044495e53c3c47e50b3dcfe9072c8
lpeterse/koka
Parse.hs
------------------------------------------------------------------------------ Copyright 2012 Microsoft Corporation . -- -- This is free software; you can redistribute it and/or modify it under the terms of the Apache License , Version 2.0 . A copy of the License can be found in the file " license.txt " at the ro...
null
https://raw.githubusercontent.com/lpeterse/koka/43feefed258b9a533f07967d3f8867b02384df0e/src/Syntax/Parse.hs
haskell
---------------------------------------------------------------------------- This is free software; you can redistribute it and/or modify it under the --------------------------------------------------------------------------- Parse concrete syntax. --------------------------------------------------------------...
Copyright 2012 Microsoft Corporation . terms of the Apache License , Version 2.0 . A copy of the License can be found in the file " license.txt " at the root of this distribution . module Syntax.Parse( parseProgramFromFile , parseValueDef , parseTypeDef , p...
7d3d4deff2b8cea7e788c579ee1e24685d4559b034ca28764666b58dca6ff5cc
realworldocaml/book
test_ansi_sequences_in_input.ml
open! Core open! Async open Import let aansi = "\027[0;1m\n" let bansi = "\027[0;2m\n" let%expect_test "ansi escape code in input" = let%bind () = patdiff ~extra_flags:[] ~prev:aansi ~next:bansi in [%expect {| (fg:red)------ (+bold)prev/file (fg:green)++++++ (+bold)next/file (fg:black)@|(+bold)-1,...
null
https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/patdiff/test/src/test_ansi_sequences_in_input.ml
ocaml
open! Core open! Async open Import let aansi = "\027[0;1m\n" let bansi = "\027[0;2m\n" let%expect_test "ansi escape code in input" = let%bind () = patdiff ~extra_flags:[] ~prev:aansi ~next:bansi in [%expect {| (fg:red)------ (+bold)prev/file (fg:green)++++++ (+bold)next/file (fg:black)@|(+bold)-1,...
b953089bc19614ba23b745a22e58ec3e8c6fb2bb5b9a5027299d7794b9f23c09
Zilliqa/scilla-compiler
TestCodegenExpr.ml
This file is part of scilla . Copyright ( c ) 2018 - present Zilliqa Research Pvt . Ltd. scilla 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 y...
null
https://raw.githubusercontent.com/Zilliqa/scilla-compiler/20eb3240c70b2325e598f3f059dd5a6853380358/tests/codegen/expr/TestCodegenExpr.ml
ocaml
List of tests expected to fail compilation.
This file is part of scilla . Copyright ( c ) 2018 - present Zilliqa Research Pvt . Ltd. scilla 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 y...
59171d10584c8521fbc15ad3049a4fd17a8f670d210b927851d69c7c138f5dd6
clojure/clojurescript
invoke.cljs
(ns npm-deps-test.invoke (:require [react :refer [createElement]] ["react-dom/server" :as ReactDOMServer] ["lodash-es/array" :as array])) (createElement "div") (ReactDOMServer/renderToString nil) (array/findIndex #js [1 2] 2)
null
https://raw.githubusercontent.com/clojure/clojurescript/a4673b880756531ac5690f7b4721ad76c0810327/src/test/cljs_build/npm_deps_test/invoke.cljs
clojure
(ns npm-deps-test.invoke (:require [react :refer [createElement]] ["react-dom/server" :as ReactDOMServer] ["lodash-es/array" :as array])) (createElement "div") (ReactDOMServer/renderToString nil) (array/findIndex #js [1 2] 2)
a08b3665d6cba7654b344607770ccc6da979a15247c46d0aae59ef2465c4ae08
swarmpit/swarmpit
predicate.clj
(ns swarmpit.event.rules.predicate) (def task-actions #{"start" "die"}) (defn event? [type] (= "event" type)) (defn stats? [type] (= "stats" type)) (defn service-event? [event-message] (= "service" (:Type event-message))) (defn service-remove-event? [event-message] (and (service-event? event-messag...
null
https://raw.githubusercontent.com/swarmpit/swarmpit/38ffbe08e717d8620bf433c99f2e85a9e5984c32/src/clj/swarmpit/event/rules/predicate.clj
clojure
(ns swarmpit.event.rules.predicate) (def task-actions #{"start" "die"}) (defn event? [type] (= "event" type)) (defn stats? [type] (= "stats" type)) (defn service-event? [event-message] (= "service" (:Type event-message))) (defn service-remove-event? [event-message] (and (service-event? event-messag...
e12dfee568fdecf70682c71c5cfac47674094d3fb3d5ae14b4c8661b50f9a996
stuarthalloway/programming-clojure
tasklist.clj
(ns examples.test.tasklist (:use clojure.test) (:require examples.tasklist)) (deftest tasklist-main (is (= "[init compile-java compile-clojure clojure jar all clean]\n" (with-out-str (examples.tasklist/-main "data/snippets/example-build.xml")))) ) (deftest tasklist-compilation (compile 'examples...
null
https://raw.githubusercontent.com/stuarthalloway/programming-clojure/192e2f28d797fd70e50778aabd031b3ff55bd2b9/test/examples/test/tasklist.clj
clojure
(ns examples.test.tasklist (:use clojure.test) (:require examples.tasklist)) (deftest tasklist-main (is (= "[init compile-java compile-clojure clojure jar all clean]\n" (with-out-str (examples.tasklist/-main "data/snippets/example-build.xml")))) ) (deftest tasklist-compilation (compile 'examples...
6eb8575b65dc5b0766525f459ac0a3f31d1943428cdf3dddb2dd198bfcc06d99
erlang/otp
kernel_test_global_sys_monitor.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2021 - 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 appli...
null
https://raw.githubusercontent.com/erlang/otp/eb2dc6937a97ec0d70341cb2e2662b11830d721a/lib/kernel/test/kernel_test_global_sys_monitor.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 ...
Copyright Ericsson AB 2021 - 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(kernel_test_global_sys_monitor). -export([start/0, stop/0, reset_events/0, events/0, even...
1bb337cc964d73854f573727eda1403a92fb240bea529778b208983fcc0ed8a0
dvingo/dv.fulcro-template
resolvers.clj
(ns {{namespace}}.task.resolvers (:require [clojure.core.async :refer [go <! <!! >! >!! chan]] [clojure.pprint :refer [pprint]] [com.wsscode.pathom.connect :as pc] [{{namespace}}.user.model :as user] [{{namespace}}.user.db :as user.db] [{{namespace}}.task.model :as task] [{{namespace}}.tas...
null
https://raw.githubusercontent.com/dvingo/dv.fulcro-template/8f76adad941422950a3d7340455561974853932b/resources/clj/new/dv.fulcro_template/src/main/app/task/resolvers.clj
clojure
(ns {{namespace}}.task.resolvers (:require [clojure.core.async :refer [go <! <!! >! >!! chan]] [clojure.pprint :refer [pprint]] [com.wsscode.pathom.connect :as pc] [{{namespace}}.user.model :as user] [{{namespace}}.user.db :as user.db] [{{namespace}}.task.model :as task] [{{namespace}}.tas...
5dd1828d5e6c59f119ee9c2ce35de3671b2b10526fafcb4589509243eb81beb6
homebaseio/datalog-console
workspace_db_conn.cljs
(ns datalog-console.workspaces.workspace-db-conn (:require [datascript.core :as d])) (def conn (let [conn (d/create-conn {:name {:db/unique :db.unique/identity} :person/parents {:db/valueType :db.type/ref :db/cardinality :db.cardinality/many} ...
null
https://raw.githubusercontent.com/homebaseio/datalog-console/af831c85addc345cc5e1af4412821f0cfb80b808/src/dev/datalog_console/workspaces/workspace_db_conn.cljs
clojure
(ns datalog-console.workspaces.workspace-db-conn (:require [datascript.core :as d])) (def conn (let [conn (d/create-conn {:name {:db/unique :db.unique/identity} :person/parents {:db/valueType :db.type/ref :db/cardinality :db.cardinality/many} ...
679d306ffbccc82e9fe7578c96f738d622177ede03a45266da429d8c15b3eb71
myShoggoth/deckbuilder
Pretty.hs
# OPTIONS_GHC -Wno - orphans # # LANGUAGE FlexibleInstances # {-# LANGUAGE OverloadedStrings #-} module DeckBuilding.Dominion.Pretty where import Prettyprinter ( (<+>), align, hsep, vsep, indent, Pretty(pretty), viaShow, Doc ) import DeckBuilding.Dominion.Types ( BanditDeci...
null
https://raw.githubusercontent.com/myShoggoth/deckbuilder/2dc20bc2b0b96d74a1180fab0652b3302b378e3b/src/DeckBuilding/Dominion/Pretty.hs
haskell
# LANGUAGE OverloadedStrings # # OVERLAPPING # # OVERLAPPING # # OVERLAPS #
# OPTIONS_GHC -Wno - orphans # # LANGUAGE FlexibleInstances # module DeckBuilding.Dominion.Pretty where import Prettyprinter ( (<+>), align, hsep, vsep, indent, Pretty(pretty), viaShow, Doc ) import DeckBuilding.Dominion.Types ( BanditDecision(BanditDecision), Dominio...
ec9405011b81bc0786d673d62466c5a287d06132777ad549c328e5f872770224
rescript-lang/rescript-compiler
belt_MutableSet.mli
Copyright ( C ) 2017 Authors of ReScript * * 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 , either version 3 of the License , or * ( at your option ) any later version ...
null
https://raw.githubusercontent.com/rescript-lang/rescript-compiler/c3fcc430360079546a6aabd2b2770303480f8486/jscomp/others/belt_MutableSet.mli
ocaml
* Specialized when key type is `int`, more efficient than the generic type * Specialized when key type is `string`, more efficient than the generic type * `'value` is the element type `'identity` the identity of the collection * The identity needed for making a set from scratch * Creates a new set ...
Copyright ( C ) 2017 Authors of ReScript * * 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 , either version 3 of the License , or * ( at your option ) any later version ...
c8b603662ff30481ebab7903882a398d738662972ab361ccb3056a2c2b68f170
input-output-hk/marlowe-cardano
Extra.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE RankNTypes #-} {-# LANGUAGE StrictData #-} module Observe.Event.Backend.Extra ( EventRecord(..) , filterEventBackend , filterEventBackendM , proxyEventBackend ) where import Control.Concurrent.STM ( STM , TQueue , atomically , flushTQueue , modifyTVar ,...
null
https://raw.githubusercontent.com/input-output-hk/marlowe-cardano/ef671d84e5bab86c12c6770cf541ada8e8c88b43/eventuo11y-extras/src/Observe/Event/Backend/Extra.hs
haskell
# LANGUAGE RankNTypes # # LANGUAGE StrictData # | Filter incoming events and fields. | Filter incoming events and fields with a monadic action. | An aggregate summary of an event | Create an event backend that writes events to a queue for processing in a separate thread.
# LANGUAGE FlexibleContexts # module Observe.Event.Backend.Extra ( EventRecord(..) , filterEventBackend , filterEventBackendM , proxyEventBackend ) where import Control.Concurrent.STM ( STM , TQueue , atomically , flushTQueue , modifyTVar , newEmptyTMVarIO , newTQueue , newTVarIO , putTMVa...
057de8bdcdac5a072202feae1f4e632b9a3f6f68f7386dfdede80c4f1baa71b0
conjure-cp/conjure
Split.hs
module Conjure.UI.Split ( outputSplittedModels, removeUnusedDecls ) where import Conjure.Prelude import Conjure.Language.Definition import Conjure.Language.Pretty -- pipes import Pipes ( Producer, yield ) import qualified Pipes.Prelude as Pipes ( foldM ) outputSplittedModels :: (MonadIO m, MonadFail m) => F...
null
https://raw.githubusercontent.com/conjure-cp/conjure/dd5a27df138af2ccbbb970274c2b8f22ac6b26a0/src/Conjure/UI/Split.hs
haskell
pipes Right indicates "declarations", out of these only the needed ones will stay. Left indicates "other statements", subsets of these will be in the output. remove duplicates generate all subsequences
module Conjure.UI.Split ( outputSplittedModels, removeUnusedDecls ) where import Conjure.Prelude import Conjure.Language.Definition import Conjure.Language.Pretty import Pipes ( Producer, yield ) import qualified Pipes.Prelude as Pipes ( foldM ) outputSplittedModels :: (MonadIO m, MonadFail m) => FilePath ...
8625afefcf0f5193582472e93c569e761a26b01c17df7d9cb1577e2de868d488
Reisen/pixel
PostImage.hs
module API.Image.Routes.PostImage ( postImage ) where import Protolude import Control.Lens import Configuration ( configStaticLocation ) import MonadPixel ( Pixel ) import Data.ByteString as B ( readFile ) import Data.UUID.V4 ( nextRandom ) import Data.Time ( getCurrentTime...
null
https://raw.githubusercontent.com/Reisen/pixel/9096cc2c5b909049cdca6d14856ffc1fc99d81b5/src/app/API/Image/Routes/PostImage.hs
haskell
------------------------------------------------------------------------------ | Endpoint responsible for handling image uploads, it receives an image as a | request object, copies the uploaded content to our local static directory | and persists meta information to the DB.
module API.Image.Routes.PostImage ( postImage ) where import Protolude import Control.Lens import Configuration ( configStaticLocation ) import MonadPixel ( Pixel ) import Data.ByteString as B ( readFile ) import Data.UUID.V4 ( nextRandom ) import Data.Time ( getCurrentTime...
b24063a60f4c421b1d548e0c340b47f88a0196ca243f463aae0abc18922f74e6
racket/typed-racket
poly-ref.rkt
#lang typed/racket/base/optional ;; Test that type variables do not have a run-time check ;; (no need for a check, because a context cannot make assumptions about the value) (: f (All (A) (-> (Vectorof A) A))) (define (f x) (vector-ref x 0)) (f (vector 1 2 3)) (f '#(four five six))
null
https://raw.githubusercontent.com/racket/typed-racket/1dde78d165472d67ae682b68622d2b7ee3e15e1e/typed-racket-test/succeed/optional/poly-ref.rkt
racket
Test that type variables do not have a run-time check (no need for a check, because a context cannot make assumptions about the value)
#lang typed/racket/base/optional (: f (All (A) (-> (Vectorof A) A))) (define (f x) (vector-ref x 0)) (f (vector 1 2 3)) (f '#(four five six))
14713c3123410f9a31d76d5e53f1dde27ae2aab574ff5c9f154e37aae49dd192
finnishtransportagency/harja
materiaalit_test.clj
(ns harja.palvelin.palvelut.vesivaylat.materiaalit-test (:require [harja.palvelin.palvelut.vesivaylat.materiaalit :as sut] [clojure.test :as t :refer [deftest is]] [harja.testi :refer :all :as testi] [com.stuartsierra.component :as component] [harja.integraatio :as inte...
null
https://raw.githubusercontent.com/finnishtransportagency/harja/af09d60911ed31ea98634a9d5c7f4b062e63504f/test/clj/harja/palvelin/palvelut/vesivaylat/materiaalit_test.clj
clojure
Muita matskuja ei poistettu
(ns harja.palvelin.palvelut.vesivaylat.materiaalit-test (:require [harja.palvelin.palvelut.vesivaylat.materiaalit :as sut] [clojure.test :as t :refer [deftest is]] [harja.testi :refer :all :as testi] [com.stuartsierra.component :as component] [harja.integraatio :as inte...
a8d2e68b7e942a6cf2acddb1f06141ac6fd729079f149534fd3ae2c75fbe4431
kostmo/circleci-failure-tracker
Stats.hs
{-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveGeneric #-} # LANGUAGE DuplicateRecordFields # # LANGUAGE OverloadedStrings # module Sql.Read.Stats where import Control.Monad.IO.Class (liftIO) import Control.Monad.Trans.Reader (ask) import Data.Aeso...
null
https://raw.githubusercontent.com/kostmo/circleci-failure-tracker/393d10a72080bd527fdb159da6ebfea23fcd52d1/app/fetcher/src/Sql/Read/Stats.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE DeriveGeneric # | Offsets so we only obtain full weeks of data. thus, use of reverse thus, use of reverse thus, use of reverse the dates to be in ascending order | TODO head is partial | Tallies commits that suffered non-successfuly-rebuilt, non-manually-a...
# LANGUAGE DuplicateRecordFields # # LANGUAGE OverloadedStrings # module Sql.Read.Stats where import Control.Monad.IO.Class (liftIO) import Control.Monad.Trans.Reader (ask) import Data.Aeson import Data.Text (Text) import qualified Da...
f78cd7507001051e233e74ce687879dc3c1f650ea918f862a5865f93a2040b47
fp-works/2019-winter-Haskell-school
Golf.hs
module Golf where Refer to the homework of zhansongl -- need utility-ht import Data.List.HT (sieve, tails) -- need split import Data.List.Split (divvy) import Data.Map (empty, insert, adjust, (!?)) import Data.Bool (bool) -- need safe import Safe (initSafe, atDef) - tails " ABCD " -- > [ " ABCD " , " BCD " , " CD...
null
https://raw.githubusercontent.com/fp-works/2019-winter-Haskell-school/823b67f019b9e7bc0d3be36711c0cc7da4eba7d2/cis194/week3/jimfang/src/Golf.hs
haskell
need utility-ht need split need safe > [ " ABCD " , " BCD " , " CD " , " D " , " " ] > " ABCD " > " BD " > " C " > " D " > ["ABCD", "BCD", "CD", "D", ""] > "ABCD" > "BD" > "C" > "D"
module Golf where Refer to the homework of zhansongl import Data.List.HT (sieve, tails) import Data.List.Split (divvy) import Data.Map (empty, insert, adjust, (!?)) import Data.Bool (bool) import Safe (initSafe, atDef) - - sieve : : Int - > [ a ] - > [ a ] - keep every k - th value from the list - - siev...
75b6896f98148293f36ef7a5ce2fd15e2650add4ac8ff411549ef3b7c699e85c
mnasoft/math
math.lisp
package.lisp (defpackage #:math (:use #:cl) ;;#:math/core (:export mult-matr-vect)) (in-package #:math) (defun mult-matr-vect (matr vect) "Умножение матрицы Matr на вектор Vect Возвращает вектор с количеством элементов равным количеству элементов в векторе Vect Пример использования: (defparameter *m-test* ...
null
https://raw.githubusercontent.com/mnasoft/math/3737162718cdfcbf13978172908d83fe7e3b4d87/src/math/math.lisp
lisp
#:math/core
package.lisp (defpackage #:math (:export mult-matr-vect)) (in-package #:math) (defun mult-matr-vect (matr vect) "Умножение матрицы Matr на вектор Vect Возвращает вектор с количеством элементов равным количеству элементов в векторе Vect Пример использования: (defparameter *m-test* (make-array '(3 4) :...
cef066ed1885f60aab5282e94eff0468a6dc22c0b198d5a57d371c3862c32442
Novus-School/novus
user.clj
(ns user (:require [integrant.repl :as ig-repl] [integrant.core :as ig] [integrant.repl.state :as state] ; [novus.server] [datomic.client.api :as d] [clojure.edn :as edn])) (comment) ; (ig/halt!)) ;; (ig-repl/set-prep! (fn [] (let [config (-> "confi...
null
https://raw.githubusercontent.com/Novus-School/novus/03f08fff54c2aa837fc82207e5f3095dab815265/novus/src/dev/user.clj
clojure
[novus.server] (ig/halt!)) Transact novus schema + Seed Data Query: Give me list of all the students Query: Give me count of all the students DATOMIC LOG EXAMPLE
(ns user (:require [integrant.repl :as ig-repl] [integrant.core :as ig] [integrant.repl.state :as state] [datomic.client.api :as d] [clojure.edn :as edn])) (comment) (ig-repl/set-prep! (fn [] (let [config (-> "config/dev.edn" slurp ig/read-string)] (ig/load...
3e317166a0f096d5b96c7809a9d3775a67940147583cccc0f40b0353867a9c73
ZHaskell/zoovisitor
Types.hs
module ZooKeeper.Types ( I.ZHandle , I.ClientID , I.WatcherFn , I.ZooOp , I.ZooOpResult (..) , I.AclVector , I.zooOpenAclUnsafe , I.zooReadAclUnsafe , I.zooCreatorAllAcl , I.ZooAcl (..) , I.HsWatcherCtx (..) , I.VoidCompletion , I.DataCompletion (..) , I.StatCompletion (..) , I.StringC...
null
https://raw.githubusercontent.com/ZHaskell/zoovisitor/c69a99ffc7ce683ae403d8ada8e9ff35586b1a37/src/ZooKeeper/Types.hs
haskell
module ZooKeeper.Types ( I.ZHandle , I.ClientID , I.WatcherFn , I.ZooOp , I.ZooOpResult (..) , I.AclVector , I.zooOpenAclUnsafe , I.zooReadAclUnsafe , I.zooCreatorAllAcl , I.ZooAcl (..) , I.HsWatcherCtx (..) , I.VoidCompletion , I.DataCompletion (..) , I.StatCompletion (..) , I.StringC...
8fb7678621bf80b3a851e4eace5ecc36bf02a944d3c62c804837239c82e3251a
facebookincubator/hsthrift
THTest.hs
Copyright ( c ) Facebook , Inc. and its affiliates . # LANGUAGE TemplateHaskell # module THTest (main) where import Test.HUnit import TestRunner import Language.Haskell.TH import Util.MD5 tests :: Test tests = TestList [ TestLabel "th test" $ TestCase $ assertEqual "th test" (md5 "dupa") $(runQ [| md5 "du...
null
https://raw.githubusercontent.com/facebookincubator/hsthrift/d3ff75d487e9d0c2904d18327373b603456e7a01/common/util/tests/THTest.hs
haskell
Copyright ( c ) Facebook , Inc. and its affiliates . # LANGUAGE TemplateHaskell # module THTest (main) where import Test.HUnit import TestRunner import Language.Haskell.TH import Util.MD5 tests :: Test tests = TestList [ TestLabel "th test" $ TestCase $ assertEqual "th test" (md5 "dupa") $(runQ [| md5 "du...
e041809a54cf5456ac04883f2c34480202a65f6e696114e35e87d2cfccde8704
nikodemus/SBCL
list.pure.lisp
;;;; tests related to lists This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; While most of SBCL is derived from the CMU CL system , the test ;;;; files (like this one) were written from scratch after the fork from CMU CL . ;;;; ;;;; This software is in the public dom...
null
https://raw.githubusercontent.com/nikodemus/SBCL/3c11847d1e12db89b24a7887b18a137c45ed4661/tests/list.pure.lisp
lisp
tests related to lists more information. files (like this one) were written from scratch after the fork This software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. Since *another* BUTLAST problem was reported (anonymously!) on the ...
This software is part of the SBCL system . See the README file for While most of SBCL is derived from the CMU CL system , the test from CMU CL . (in-package :cl-user) SourceForge summary page magical bugs web interface 2001 - 09 - 01 , it (dolist (testcase '((:args ((1 2 3 4 5)) :result (1 2 3 4))...
e3b5a2314e2883179e0069ff7602b25656502e15cd364bbe4be16602b1af4d28
marcoheisig/adventofcode
day-05.lisp
(defpackage :adventofcode-2020-day-5 (:use :cl)) (in-package :adventofcode-2020-day-5)
null
https://raw.githubusercontent.com/marcoheisig/adventofcode/e96a0da17cd79f424af984ed2648b49ffdacb893/2020/day-05/day-05.lisp
lisp
(defpackage :adventofcode-2020-day-5 (:use :cl)) (in-package :adventofcode-2020-day-5)
8c9cf88266ed21c60d61f363223797c944d655f294679f74fcf552f4f8f4ee0b
dtqec/aether
lock.lisp
lock.lisp ;;;; ;;;; Common commands defining a broadcast locking procedure for `PROCESS'es. ;;;; ;;;; In the subordinate (i.e., general) case, locks are established by sending a ;;;; `MESSAGE-LOCK-' RPC call to the target process. Further locks are ;;;; recursively generated according to `PROCESS-LOCKABLE-TARGETS'. ...
null
https://raw.githubusercontent.com/dtqec/aether/bb1de4e9165945d143ad274a37d8bf19d68f0c1a/src/lock.lisp
lisp
Common commands defining a broadcast locking procedure for `PROCESS'es. In the subordinate (i.e., general) case, locks are established by sending a `MESSAGE-LOCK-' RPC call to the target process. Further locks are recursively generated according to `PROCESS-LOCKABLE-TARGETS'. The result of this call is a chann...
lock.lisp process commands ` BROADCAST - LOCK ' and ` BROADCAST - UNLOCK ' . The generic lock pattern follows four steps : ( 0 ) The Lock - Holder ( H ) and Client - Process ( C ) start out uninvolved . ( 1 ) H sends a request to C , which carries as a payload the private channel PH . From the perspec...
f7c6590563cef38a4d13ba141991d09467577b66202a330cb4472a52b4abcbf7
mbillingr/lisp-in-small-pieces
10-08-05-apply.scm
(define-method (->C (e Regular-Application) out) (let ((n (number-of (Regular-Application-arguments e)))) (cond ((< n 4) (format out "SCM_invoke~A" n) (between-parentheses out (->C (Regular-Application-function e) out) (->C (Regular-Application-arguments e) out))) ...
null
https://raw.githubusercontent.com/mbillingr/lisp-in-small-pieces/b2b158dfa91dc95d75af4bd7d93f8df22219047e/10-to-c/10-08-05-apply.scm
scheme
careful: parameter order changed from the book!
(define-method (->C (e Regular-Application) out) (let ((n (number-of (Regular-Application-arguments e)))) (cond ((< n 4) (format out "SCM_invoke~A" n) (between-parentheses out (->C (Regular-Application-function e) out) (->C (Regular-Application-arguments e) out))) ...
bffb49991ab6fc45390c8723e6ff92b4831ce410193e4b0de7c6f15f2649b401
ivanreese/diminished-fifth
util.cljs
(ns app.util) (defn snoop-logg [s] (js/console.log (clj->js s)) s)
null
https://raw.githubusercontent.com/ivanreese/diminished-fifth/db7f7c781809b7b2733301cdc5241b17a6fee178/src/app/util.cljs
clojure
(ns app.util) (defn snoop-logg [s] (js/console.log (clj->js s)) s)
e85c920b3e63ebbfbbc849a2b7863246f62b1532b02d9d2e4d985371fe1c469a
macourtney/Dark-Exchange
main_menu_bar.clj
(ns darkexchange.view.main.main-menu-bar (:require [darkexchange.model.terms :as terms] [seesaw.core :as seesaw-core])) (defn exit [] (seesaw-core/menu-item :id :exit-menu-item :text (terms/exit))) (defn file [] (seesaw-core/menu :text (terms/file) :items [(exit)])) (defn create [] (seesaw-core/m...
null
https://raw.githubusercontent.com/macourtney/Dark-Exchange/1654d05cda0c81585da7b8e64f9ea3e2944b27f1/src/darkexchange/view/main/main_menu_bar.clj
clojure
(ns darkexchange.view.main.main-menu-bar (:require [darkexchange.model.terms :as terms] [seesaw.core :as seesaw-core])) (defn exit [] (seesaw-core/menu-item :id :exit-menu-item :text (terms/exit))) (defn file [] (seesaw-core/menu :text (terms/file) :items [(exit)])) (defn create [] (seesaw-core/m...
81de8bf9b8b9ac39dd2102b2ac7805b74e971d3e759083988bfa59adfc91cd40
anton-k/handle-pattern-servant-app
Types.hs
-- | Domain types module Types ( Url , MessageId(..) , Tag(..) , Message(..) , module X ) where import Data.Time as X (UTCTime) import Data.Text as X (Text) import GHC.Records as X (HasField(..)) import Deriving.Aeson import Deriving.Aeson.Stock import Servant.API (FromHttpApiData) import Error as X type ...
null
https://raw.githubusercontent.com/anton-k/handle-pattern-servant-app/4a9b6a4635e5555bd3b7a2ca9de76f06491104f4/src/Types.hs
haskell
| Domain types
module Types ( Url , MessageId(..) , Tag(..) , Message(..) , module X ) where import Data.Time as X (UTCTime) import Data.Text as X (Text) import GHC.Records as X (HasField(..)) import Deriving.Aeson import Deriving.Aeson.Stock import Servant.API (FromHttpApiData) import Error as X type Url = String newt...
052c6005181b4585dbe8eead5286c8b5bac04984a63b906e631a7e3c39530a1d
pjones/playlists
Reader.hs
{-# LANGUAGE OverloadedStrings #-} This file is part of the package playlists . It is subject to the license terms in the LICENSE file found in the top - level directory of this distribution and at git . No part of playlists package , including this file , may be copied , modified , propagated , or distrib...
null
https://raw.githubusercontent.com/pjones/playlists/35e4a91e599eac4a1c6f24500d120692e709fd1f/src/Text/Playlist/M3U/Reader.hs
haskell
# LANGUAGE OverloadedStrings # ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ | Parser for a complete M3U playlist. Trailing com...
This file is part of the package playlists . It is subject to the license terms in the LICENSE file found in the top - level directory of this distribution and at git . No part of playlists package , including this file , may be copied , modified , propagated , or distributed except according to the terms ...
c3f720a97db6b576c63bd26acbd2534b6bfeccb8236e275a545d6793c71f9f7f
scicloj/metamorph.ml
to_disk_perf.clj
(ns scicloj.metamorph.to-disk-perf (:require [clojure.test :refer [deftest is]] [scicloj.metamorph.core :as morph] [scicloj.metamorph.ml :as ml] [scicloj.metamorph.ml.gridsearch :as gs] [scicloj.metamorph.ml.loss :as loss] [scicloj.ml.smile.classification] ...
null
https://raw.githubusercontent.com/scicloj/metamorph.ml/368d440adf3e38f6a77b34df83f12d47b668bd39/test/scicloj/metamorph/to_disk_perf.clj
clojure
(ns scicloj.metamorph.to-disk-perf (:require [clojure.test :refer [deftest is]] [scicloj.metamorph.core :as morph] [scicloj.metamorph.ml :as ml] [scicloj.metamorph.ml.gridsearch :as gs] [scicloj.metamorph.ml.loss :as loss] [scicloj.ml.smile.classification] ...
cfb46ef82dc3a3ac78ed59031037a4a392995bf974268495c7c3d7aeebb908cb
FreeProving/free-compiler
ScannerTests.hs
| This module contains tests for " FreeC.Frontend . IR.Scanner " . module FreeC.Frontend.IR.ScannerTests where import Test.Hspec hiding ( shouldReturn ) import FreeC.Frontend.IR.Scanner import FreeC.Frontend.IR.Token import FreeC.IR.SrcSpan import Fr...
null
https://raw.githubusercontent.com/FreeProving/free-compiler/6931b9ca652a185a92dd824373f092823aea4ea9/src/test/FreeC/Frontend/IR/ScannerTests.hs
haskell
| Tokenizes a string for testing purposes. | Sets the expectation that 'scan' produces the given token stream for the given input.
| This module contains tests for " FreeC.Frontend . IR.Scanner " . module FreeC.Frontend.IR.ScannerTests where import Test.Hspec hiding ( shouldReturn ) import FreeC.Frontend.IR.Scanner import FreeC.Frontend.IR.Token import FreeC.IR.SrcSpan import Fr...
d98376f4571b69c1bffa7f71334cc40a7d65cab0cb261403fd499b6ac0d2ed30
NicklasBoto/BruSKI
AST.hs
# LANGUAGE UnicodeSyntax # module Unlambda.AST ( Aλ (A, E) , Eλ (K, Kf, S, Sf, Sff, I, Dot, R, V, Ex, Exf, D, Df) ) where ----------------------------------------------------------------------- --------------------- ------------------------------------- --------------------------------------...
null
https://raw.githubusercontent.com/NicklasBoto/BruSKI/7ea9cee7ca36c6a18d383366c69b070c2d65de9f/src/Unlambda/AST.hs
haskell
--------------------------------------------------------------------- ------------------- ------------------------------------- --------------------------------------------------------------------- --*-_-*-_-*-_-*--- λ is beautiful Shut up ---*-_-*-_-*-_-*-- Application datatype for re...
# LANGUAGE UnicodeSyntax # module Unlambda.AST ( Aλ (A, E) , Eλ (K, Kf, S, Sf, Sff, I, Dot, R, V, Ex, Exf, D, Df) ) where data Aλ = A Aλ Aλ | E Eλ Datatype for representing the individual combinators data Eλ = K | Kf Eλ | S | Sf Eλ | Sff Eλ Eλ | I ...
6a7aeb1b40c462922a0ba6ad2f24034e72c33a0ce720378c23c8863a78f25ce2
portkey-cloud/aws-clj-sdk
_2015-07-09.clj
(ns portkey.aws.codepipeline.-2015-07-09 (:require [portkey.aws])) (def endpoints '{"ap-northeast-1" {:credential-scope {:service "codepipeline", :region "ap-northeast-1"}, :ssl-common-name "codepipeline.ap-northeast-1.amazonaws.com", :endpoint "-northeast-1.amazonaws.com", :signature-version :v4}...
null
https://raw.githubusercontent.com/portkey-cloud/aws-clj-sdk/10623a5c86bd56c8b312f56b76ae5ff52c26a945/src/portkey/aws/codepipeline/_2015-07-09.clj
clojure
(ns portkey.aws.codepipeline.-2015-07-09 (:require [portkey.aws])) (def endpoints '{"ap-northeast-1" {:credential-scope {:service "codepipeline", :region "ap-northeast-1"}, :ssl-common-name "codepipeline.ap-northeast-1.amazonaws.com", :endpoint "-northeast-1.amazonaws.com", :signature-version :v4}...
7d5fb1b532a4f07986681ebb2726a3f44a42c15ac0d0932e94bda6d355dc61c0
enragedginger/tensorflow-clj
util.clj
(ns tensorflow-clj.util) (defn slurp-binary [filename] (-> (java.nio.file.FileSystems/getDefault) (.getPath "" (into-array String [filename])) (java.nio.file.Files/readAllBytes))) (defn approx= [a b] (< (Math/abs (- a b)) 0.0001)) (defn round2 "Round a double to the given precision (number of signi...
null
https://raw.githubusercontent.com/enragedginger/tensorflow-clj/11d7478bd43a9cbe838fb79fde2f2cb1f1004da3/src/tensorflow_clj/util.clj
clojure
(ns tensorflow-clj.util) (defn slurp-binary [filename] (-> (java.nio.file.FileSystems/getDefault) (.getPath "" (into-array String [filename])) (java.nio.file.Files/readAllBytes))) (defn approx= [a b] (< (Math/abs (- a b)) 0.0001)) (defn round2 "Round a double to the given precision (number of signi...
e5023115edb2915f73e9eb7f95245ce1428cad95afed9a75062ee4306c95c941
Clozure/ccl-tests
nsubstitute.lsp
;-*- Mode: Lisp -*- Author : Created : Sat Aug 31 16:56:48 2002 ;;;; Contains: Tests for NSUBSTITUTE (in-package :cl-test) (deftest nsubstitute-list.1 (nsubstitute 'b 'a nil) nil) (deftest nsubstitute-list.2 (let ((x (copy-seq '(a b a c)))) (nsubstitute 'b 'a x) x) (b b b c)) (deftest nsubsti...
null
https://raw.githubusercontent.com/Clozure/ccl-tests/0478abddb34dbc16487a1975560d8d073a988060/ansi-tests/nsubstitute.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests for NSUBSTITUTE Tests on vectors Tests on strings Tests on bit-vectors additional tests More bit vector tests Keyword tests Error cases
Author : Created : Sat Aug 31 16:56:48 2002 (in-package :cl-test) (deftest nsubstitute-list.1 (nsubstitute 'b 'a nil) nil) (deftest nsubstitute-list.2 (let ((x (copy-seq '(a b a c)))) (nsubstitute 'b 'a x) x) (b b b c)) (deftest nsubstitute-list.3 (let ((x (copy-seq '(a b a c)))) (nsubstitute '...
9c65b2c00fd62e90d1a970fe7e17e0f426b2c938e82e17d36f24a18c9cca935f
RolfRolles/PandemicML
AVM2trait_function.mli
open AVM2Pervasives type t = { slot_id: u30; function_: u30; } val parse : prim_parser -> t
null
https://raw.githubusercontent.com/RolfRolles/PandemicML/9c31ecaf9c782dbbeb6cf502bc2a6730316d681e/Incubator/AVM2/AVM2trait_function.mli
ocaml
open AVM2Pervasives type t = { slot_id: u30; function_: u30; } val parse : prim_parser -> t
94cf26f46a0042bd66bd8101ff36a938bbf1f6cb523a5447a6b731ec31271921
twittner/cql-io
Signal.hs
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. module Database.CQL.IO.Signal ( Signal , signal , connect , emit , (|->) , ($$) ) where import Control.Applicative...
null
https://raw.githubusercontent.com/twittner/cql-io/090b436a413d961a424376c0b1dcc0c223472188/src/Database/CQL/IO/Signal.hs
haskell
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. module Database.CQL.IO.Signal ( Signal , signal , connect , emit , (|->) , ($$) ) where import Control.Applicative...
f957ff06e955f2fddbd379b4e5f2168cff859b0d908df3f6521a9aa82ad508e5
wizardpb/functional-vaadin
project.clj
(defproject com.prajnainc/functional-vaadin "0.3.0-snapshot" :description "A functional interface to Vaadin" :url "-vaadin" :license {:name "Eclipse Public License" :url "-v10.html"} :plugins [[lein-codox "0.9.5"] [lein-pprint "1.1.1"]] :dependencies [[org.clojure/clojure "1.9.0-alpha...
null
https://raw.githubusercontent.com/wizardpb/functional-vaadin/eccd121b1a4c28ec73ad452fa3d1ce3c6e78d401/project.clj
clojure
:dependencies [[com.vaadin/vaadin-server "7.7.3"] [com.vaadin/vaadin-client-compiled "7.7.3"] [com.vaadin/vaadin-themes "7.7.3"] [org.eclipse.jetty/jetty-server "9.3.8.v20160314"] [org.eclipse.jetty/jetty-servlet "9.3.8.v20160314"]
(defproject com.prajnainc/functional-vaadin "0.3.0-snapshot" :description "A functional interface to Vaadin" :url "-vaadin" :license {:name "Eclipse Public License" :url "-v10.html"} :plugins [[lein-codox "0.9.5"] [lein-pprint "1.1.1"]] :dependencies [[org.clojure/clojure "1.9.0-alpha...
10d9b171871427655640d36cdf9a35a85a05c77b3bfaa0ac64469faf357d32b1
kanatohodets/riak_core_workshop_euc2016
handoff_kv_sup.erl
-module(handoff_kv_sup). -behaviour(supervisor). %% API -export([start_link/0]). %% Supervisor callbacks -export([init/1]). %% =================================================================== %% API functions %% =================================================================== start_link() -> supervisor:s...
null
https://raw.githubusercontent.com/kanatohodets/riak_core_workshop_euc2016/a396bb5a1879ec0cb3d70bbc4b6cd39e097cd610/4_handoff_kv/erlang/apps/handoff_kv/src/handoff_kv_sup.erl
erlang
API Supervisor callbacks =================================================================== API functions =================================================================== =================================================================== Supervisor callbacks ================================================...
-module(handoff_kv_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, []). init(_Args) -> VMaster = { handoff_kv_vnode_master, {riak_core_vnode_master, start_link, [handoff_kv_vnode]}, ...
d7e0beb4c1e54d3259b8540cef85c77fbfba85c8c572f179a214a031fdd1b08d
johnwickerson/memalloy
rel.ml
MIT License Copyright ( c ) 2017 by . Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitation the rights to use , copy , modify , m...
null
https://raw.githubusercontent.com/johnwickerson/memalloy/aa15776873fe3440cb7f5dae8e174466689d4fba/src/rel.ml
ocaml
* Relations (implemented as lists of pairs) * [remove_edges r1 r2 r] returns the relation [r] but without any edges that are in [r1;r2] * [remove_transitive_edges r] returns the relation [r] but without any transitive edges. It is assumed that [r] is transitive to begin with. * Relational composition. [compose r1 r2...
MIT License Copyright ( c ) 2017 by . Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitation the rights to use , copy , modify , m...
2afec5bad123841044d45fb796531f9d38abff72ff934dc2845060d884ebce2c
ekmett/ekmett.github.com
TH.hs
{-# OPTIONS -fth #-} ----------------------------------------------------------------------------- -- | -- Module : Type.Binary.TH Copyright : ( C ) 2006 -- License : BSD-style (see the file libraries/base/LICENSE) -- Maintainer : < > -- Stability : experimental -- Portability : non-por...
null
https://raw.githubusercontent.com/ekmett/ekmett.github.com/8d3abab5b66db631e148e1d046d18909bece5893/haskell/type-int/_darcs/pristine/src/Type/Binary/TH.hs
haskell
# OPTIONS -fth # --------------------------------------------------------------------------- | Module : Type.Binary.TH License : BSD-style (see the file libraries/base/LICENSE) Stability : experimental Portability : non-portable (Template Haskell) Provides a simple way to construct type level bin...
Copyright : ( C ) 2006 Maintainer : < > $ ( binaryE 24 ) returns an undefined value with the same type as the Type . Binary with value 24 . module Type.Binary.TH ( binaryE, binaryT ) where import Type.Binary.Internals import Language.Haskell.TH f = conT $ mkName "F" t = conT $ mkName "T" o = con...
5aefddee8f185f169e159b5b20422e6a54cb4d24da183cf5d8886218919af5a7
oxidizing/sihl
storage_mariadb.ml
let services = [ Sihl.Database.register () ; Sihl.Database.Migration.MariaDb.register [] ; Sihl_storage.MariaDb.register () ] ;; module Test = Storage.Make (Sihl_storage.MariaDb) let () = Sihl.Configuration.read_string "DATABASE_URL_TEST_MARIADB" |> Option.value ~default:"mariadb:password@127.0.0.1:3306/d...
null
https://raw.githubusercontent.com/oxidizing/sihl/439d60b7af290070be0237ffe4dfb7d34aceb4e0/sihl-storage/test/storage_mariadb.ml
ocaml
let services = [ Sihl.Database.register () ; Sihl.Database.Migration.MariaDb.register [] ; Sihl_storage.MariaDb.register () ] ;; module Test = Storage.Make (Sihl_storage.MariaDb) let () = Sihl.Configuration.read_string "DATABASE_URL_TEST_MARIADB" |> Option.value ~default:"mariadb:password@127.0.0.1:3306/d...
e92a94994867b90c673029c6412c1d2b8bd6a44cd4b70f2146ef20d0760519ea
semperos/rankle
table.clj
(ns com.semperos.rankle.table (:require [clojure.pprint :refer [get-pretty-writer]] [clojure.set :as set] [clojure.string :as str] [com.semperos.rankle.util :refer [cond-table print-table] :as util])) TODO (declare ColumnMap->Table column-map) (defprotocol IAmColumnar (colu...
null
https://raw.githubusercontent.com/semperos/rankle/d898c144e33056d743848620f17564d88d87e874/src/com/semperos/rankle/table.clj
clojure
TODO Auto-fill ragged column maps/tables TODO Queries Table Queries ;; select name, line from cct TODO Handle any possible follow-on parts of the query, not just 'where Initial sketch on keyed tables In q, keyed tables are actually dictionaries built by associating a dedicated key table with your main "data" t...
(ns com.semperos.rankle.table (:require [clojure.pprint :refer [get-pretty-writer]] [clojure.set :as set] [clojure.string :as str] [com.semperos.rankle.util :refer [cond-table print-table] :as util])) TODO (declare ColumnMap->Table column-map) (defprotocol IAmColumnar (colu...
59a331931bf7125201c1a98911e1ed63556556e5c4aef1eada6bcf50716f2656
anchpop/wise_mans_haskell
goodDo2.hs
willWork = let two = (1 + 1) in do putStrLn "hello" putStrLn . show $ two
null
https://raw.githubusercontent.com/anchpop/wise_mans_haskell/021ca3f3d96ebc0ecf2daf1a802fc33d067e24cc/haskelltests/should_compile/goodDo2.hs
haskell
willWork = let two = (1 + 1) in do putStrLn "hello" putStrLn . show $ two
15ccd77e1b33690daf6ca1097dba20ce65bb8755b89bf1da2d1beb35adbeba69
OCADml/OSCADml
helices.ml
(** {0 Helical paths and extrusions} *) open OCADml open OSCADml * Draw a right - handed helical path with [ 10 ] turns , starting with a radius of [ 5 . ] , and ending with a radius of [ 10 . ] . With a [ pitch ] of [ 5 . ] , it stands [ 10 . * . 5 . = 50 . ] units tall . [5.], and ending with a radi...
null
https://raw.githubusercontent.com/OCADml/OSCADml/a1d5e9d6aa9f703e0a7eb419128593ef9c694072/examples/helices.ml
ocaml
* {0 Helical paths and extrusions} * We'll use a simple elbow shape for our sweeps so that its orientation is easily discernible along the path. * Sweep our [poly] along a left-handed helix, while halving its width, and doubling its height. This time we'll start with a wider base radius and narrow towards ...
open OCADml open OSCADml * Draw a right - handed helical path with [ 10 ] turns , starting with a radius of [ 5 . ] , and ending with a radius of [ 10 . ] . With a [ pitch ] of [ 5 . ] , it stands [ 10 . * . 5 . = 50 . ] units tall . [5.], and ending with a radius of [10.]. With a [pitch] of [5.], it ...
4271afb64c7db3c888d8fb0028543bc3e2e47e9790dfcd128d8134c14467fbac
mbattyani/cl-pdf
x11-colors.lisp
(in-package #:pdf) #-lispworks (defvar *x11-colors* '(("LightGreen" 144 238 144) ("light green" 144 238 144) ("DarkRed" 139 0 0) ("dark red" 139 0 0) ("DarkMagenta" 139 0 139) ("dark magenta" 139 0 139) ("DarkCyan" 0 139 139) ("dark cyan" 0 139 139) ("DarkBlue" 0 0 139) ("dark blu...
null
https://raw.githubusercontent.com/mbattyani/cl-pdf/dbafd62afcb2d2e9164054c72612763721297d59/x11-colors.lisp
lisp
only needed to run this once to generate the color table above
(in-package #:pdf) #-lispworks (defvar *x11-colors* '(("LightGreen" 144 238 144) ("light green" 144 238 144) ("DarkRed" 139 0 0) ("dark red" 139 0 0) ("DarkMagenta" 139 0 139) ("dark magenta" 139 0 139) ("DarkCyan" 0 139 139) ("dark cyan" 0 139 139) ("DarkBlue" 0 0 139) ("dark blu...
496f5bd9adf6a652850791afa237a40054a1da3c211708dc7a2287bf0815e154
jackfirth/lens
isomorphism.rkt
#lang reprovide lens/private/isomorphism/main
null
https://raw.githubusercontent.com/jackfirth/lens/733db7744921409b69ddc78ae5b23ffaa6b91e37/lens-unstable/unstable/lens/isomorphism.rkt
racket
#lang reprovide lens/private/isomorphism/main
8ff5f6a173f7a9f84b9286b28498911edafad128247b140f549405e2d3428962
Leonidas-from-XIV/ocaml-wiringpi
sapin_noel.ml
open WiringPiOcaml;; open ShiftReg;; let g_invert = false and g_pulse = false and g_nb_reg = 2 Ici on utilise des fonctions plus souples mais moins agréables pour les tests . Pour voir les fonctions classiques , cf anim_01 let test reg leds = lightLeds leds; (* Pour montrer la différence entre les deux modes *)...
null
https://raw.githubusercontent.com/Leonidas-from-XIV/ocaml-wiringpi/fb03eeee586f41189e3e1c6ac5f1309e8b0832b8/test/sapin_noel.ml
ocaml
Pour montrer la différence entre les deux modes S'inspirer de ce schéma pour les animations reg : pin_value = p_v, pin_shift = p_s, pin_apply = p_a En mode pulse : On initialise And a pretty animation findLedNumber reg leds
open WiringPiOcaml;; open ShiftReg;; let g_invert = false and g_pulse = false and g_nb_reg = 2 Ici on utilise des fonctions plus souples mais moins agréables pour les tests . Pour voir les fonctions classiques , cf anim_01 let test reg leds = lightLeds leds; Printf.printf "The pulse mode...\n%!"; applyRegPuls...
330572ab0ce7cff18b284028a2a3253758bd1ae78aecc9192b1114775cddcbdc
onedata/op-worker
atm_openfaas_function_pod_status_registry.erl
%%%------------------------------------------------------------------- @author ( C ) 2021 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%------------------------------------------------------------------- %%% @doc Model storing information about pods...
null
https://raw.githubusercontent.com/onedata/op-worker/cc7842f97f2a8652648f405776084fa6ea2d507e/src/modules/automation/task/executor/platforms/openfaas/activity_feed/pod_status_monitor/atm_openfaas_function_pod_status_registry.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- @doc the current status of each pod and the history of all status change reports (based on kubernetes events). The reports are kept in a form of an infinite log, NOTE: origi...
@author ( C ) 2021 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . Model storing information about pods that execute a specific OpenFaaS function ; one per each pod . -module(atm_openfaas_function_pod_status_registry). -author("Lukasz Opiola"). -behaviour(atm_...
be5bb3e767fd50a6cb6c835d8dc79a2e3279900bb61ac9f8a9460728205b74ea
MaskRay/CamlFeatherweight
ld.ml
open Emit open Error open Exe open Opcode open Syntax exception Invalid let global_tbl = Hashtbl.create 257 let global_tbl_used = ref 0 let const_tbl = Hashtbl.create 257 let prim_tbl = Hashtbl.create 257 let tag_tbl = Hashtbl.create 257 let make_slot_for_const c = try Hashtbl.find const_tbl c with Not_found...
null
https://raw.githubusercontent.com/MaskRay/CamlFeatherweight/989319a830dcf1ae30a4b4ccefb59f73bf966363/ld.ml
ocaml
global data offset global data num
open Emit open Error open Exe open Opcode open Syntax exception Invalid let global_tbl = Hashtbl.create 257 let global_tbl_used = ref 0 let const_tbl = Hashtbl.create 257 let prim_tbl = Hashtbl.create 257 let tag_tbl = Hashtbl.create 257 let make_slot_for_const c = try Hashtbl.find const_tbl c with Not_found...
2788a359d6655a0482c6bf709a68406edd0b96181a06a675facf917b442282dc
xmonad/xmonad-contrib
WindowMenu.hs
---------------------------------------------------------------------------- -- | Module : XMonad . Actions . WindowMenu -- Description : Display window management actions in the center of the focused window. Copyright : ( c ) Jan Vornberger 2009 -- License : BSD3-style (see LICENSE) -- -- Mainta...
null
https://raw.githubusercontent.com/xmonad/xmonad-contrib/28aa164abd853a237e409d0fbb9f3819f253cf56/XMonad/Actions/WindowMenu.hs
haskell
-------------------------------------------------------------------------- | Description : Display window management actions in the center of the focused window. License : BSD3-style (see LICENSE) Maintainer : Stability : unstable Portability : not portable window management in the center of the f...
Module : XMonad . Actions . WindowMenu Copyright : ( c ) Jan Vornberger 2009 Uses " XMonad . Actions . GridSelect " to display a number of actions related to to integrate " XMonad . Layout . Maximize " and " XMonad . Layout . Minimize " into your module XMonad.Actions.WindowMenu ( ...
02b4bad99fa559ebbdc0be7a0547cf1c795d79ba79c27fcedbc7cd98f2e114fd
skynet-gh/skylobby
battles_buttons_test.clj
(ns skylobby.fx.battles-buttons-test (:require [cljfx.api :as fx] [clojure.test :refer [deftest is]] [skylobby.fx.battles-buttons :as fx.battles-buttons])) (set! *warn-on-reflection* true) (deftest battles-buttons-view (is (map? (fx.battles-buttons/battles-buttons-view {:fx/context...
null
https://raw.githubusercontent.com/skynet-gh/skylobby/efc8ea6fc86a482b1c6c41d70383749b48890a49/test/clj/skylobby/fx/battles_buttons_test.clj
clojure
(ns skylobby.fx.battles-buttons-test (:require [cljfx.api :as fx] [clojure.test :refer [deftest is]] [skylobby.fx.battles-buttons :as fx.battles-buttons])) (set! *warn-on-reflection* true) (deftest battles-buttons-view (is (map? (fx.battles-buttons/battles-buttons-view {:fx/context...
f8917549944eeca02aee4942f5b5afa3d0f7ab8d2e6ef33989f236bb94b76254
OlivierSohn/hamazed
RecordDraw.hs
# LANGUAGE NoImplicitPrelude # # LANGUAGE DeriveGeneric # module Imj.Graphics.RecordDraw ( -- * Record drawing commands for later replay RecordDraw , mkZeroRecordDraw -- for use as a starting point in a morphable animation , mkRecordDraw , finalizeRecord , drawRecord ) where import ...
null
https://raw.githubusercontent.com/OlivierSohn/hamazed/c0df1bb60a8538ac75e413d2f5bf0bf050e5bc37/imj-base/src/Imj/Graphics/RecordDraw.hs
haskell
* Record drawing commands for later replay for use as a starting point in a morphable animation | Writes operations in reversed order ^ How many to draw, or a strictly negative number to draw everything ^ (How many to draw) - (How many were drawn)
# LANGUAGE NoImplicitPrelude # # LANGUAGE DeriveGeneric # module Imj.Graphics.RecordDraw RecordDraw , mkRecordDraw , finalizeRecord , drawRecord ) where import Imj.Prelude import Prelude(length) import Control.Monad.Reader.Class(asks) import Data.IORef(I...
2c45d5a8fef63bf9f11d0b906ceb6f274eec5a4ce281b63ae245ff629a8fec1f
tud-fop/vanda-haskell
Text.hs
----------------------------------------------------------------------------- -- | Copyright : ( c ) 2012 -- License : BSD-style -- Maintainer : < > -- Stability : unknown -- Portability : portable ----------------------------------------------------------------------------- {-# LANGUAGE Ban...
null
https://raw.githubusercontent.com/tud-fop/vanda-haskell/3214966361b6dbf178155950c94423eee7f9453e/library/Vanda/Grammar/Berkeley/Text.hs
haskell
--------------------------------------------------------------------------- | License : BSD-style Stability : unknown Portability : portable --------------------------------------------------------------------------- # LANGUAGE BangPatterns # ^ initial token structure ^ initial token structure ^ lexico...
Copyright : ( c ) 2012 Maintainer : < > module Vanda.Grammar.Berkeley.Text ( parseBerkeleyMap ) where import Control.Applicative ( (<|>), many ) import Control.Arrow ( first ) import Control.DeepSeq ( NFData, ($!!) ) import qualified Data.Text.Lazy as T import Text.Parsec hiding ( many, (<|>) ) imp...
7c1e0e4355d45f33edf03e7783ec519ed85f616d38e21627fa1428bd3ef67c34
LauraVoinea/protocol-reengineering-implementation
resource_expected.erl
-module(resource_expected). -behaviour(gen_statem). -define(SERVER, ?MODULE). -export([act_l/1, act_m/1, act_r/1, callback_mode/0, init/1, start_link/0, state1/3, stop/0, terminate/3]). start_link() -> gen_statem:start_link({local, ?SERVER}, ?M...
null
https://raw.githubusercontent.com/LauraVoinea/protocol-reengineering-implementation/23a8d99fe1663b249c4c46fdf03fd24cc01c060c/src/examples/resource/resource_expected.erl
erlang
assert n assert n assert n
-module(resource_expected). -behaviour(gen_statem). -define(SERVER, ?MODULE). -export([act_l/1, act_m/1, act_r/1, callback_mode/0, init/1, start_link/0, state1/3, stop/0, terminate/3]). start_link() -> gen_statem:start_link({local, ?SERVER}, ?M...
da4a099b8667bc80add65d83da518220aa345ab0570af31f44e2d75cbad57007
open-company/open-company-storage
notification.clj
(ns oc.storage.async.notification "Async publish of notification events to AWS SNS." (:require [clojure.core.async :as async :refer (<! >!!)] [defun.core :refer (defun)] [clojure.string :as cstr] [taoensso.timbre :as timbre] [cheshire.core :as json] [amazo...
null
https://raw.githubusercontent.com/open-company/open-company-storage/ae4bbe6245f8736f3c1813c3048448035aff5815/src/oc/storage/async/notification.clj
clojure
----- core.async ----- buffered channel ----- Utility functions ----- ----- Data schema ----- ----- Event handling ----- If an exception occurred write to the kinesis firehouse. ----- Event loop ----- ----- Notification triggering ----- ----- Component start/stop -----
(ns oc.storage.async.notification "Async publish of notification events to AWS SNS." (:require [clojure.core.async :as async :refer (<! >!!)] [defun.core :refer (defun)] [clojure.string :as cstr] [taoensso.timbre :as timbre] [cheshire.core :as json] [amazo...
815c4eccf6e4c07d785939234c58415879331f8ca23479c8b5fb91d8a631e697
feeley/define-library
test.scm
;; File: test.scm ;; this program should be run with the command ;; gsi -e ' ( load " define - library " ) ' github.com/feeley/digest/digest test.scm (define-library (test) (import (only (gambit) define quote pp ;; required directly in the body if not begin) ;; required by expansi...
null
https://raw.githubusercontent.com/feeley/define-library/56a6eda7ef9248751f4cada832edf98f5c6bb469/test.scm
scheme
File: test.scm this program should be run with the command required directly in the body required by expansions of when and unless should give "da39a3ee5e6b4b0d3255bfef95601890afd80709" should give "a9993e364706816aba3e25717850c26c9cd0d89d"
gsi -e ' ( load " define - library " ) ' github.com/feeley/digest/digest test.scm (define-library (test) (import (only (gambit) () (when-unless)) (begin (define skip-test #f) (unless skip-test (pp (digest-string "" 'sha-1 'hex)) (pp (digest-string "abc" 'sha-1 'hex)...
942067a6b6ba10613503c9cd763cc383ab743eb41616e681d9a759927c6cf24a
GaloisInc/semmc
MyLibTest.hs
module Main (main) where main :: IO () main = putStrLn "Test suite not yet implemented."
null
https://raw.githubusercontent.com/GaloisInc/semmc/4dc4439720b3b0de8812a68f8156dc89da76da57/semmc-learning/test/MyLibTest.hs
haskell
module Main (main) where main :: IO () main = putStrLn "Test suite not yet implemented."
a49b8b1e7150fd9e6105b6993ac5887b7bbd7bc0c0c58fa0d7b32ae6bbdbc1fd
eWert-Online/OSnap
OSnap_Browser_Target.mli
type target = { targetId : Cdp.Types.Target.TargetID.t ; sessionId : Cdp.Types.Target.SessionID.t } val make : OSnap_Browser_Types.t -> (target, [> `OSnap_CDP_Protocol_Error of string ]) Lwt_result.t
null
https://raw.githubusercontent.com/eWert-Online/OSnap/9010a45469ef069fffec2c9d992a7bc0808f04d8/lib/OSnap_Browser/OSnap_Browser_Target.mli
ocaml
type target = { targetId : Cdp.Types.Target.TargetID.t ; sessionId : Cdp.Types.Target.SessionID.t } val make : OSnap_Browser_Types.t -> (target, [> `OSnap_CDP_Protocol_Error of string ]) Lwt_result.t
12cc9f6670517696c1673948aaac5a9b3af776f4c4dd38984e9ef28c33125ab5
blockfrost/blockfrost-haskell
Network.hs
-- | Network queries module Blockfrost.Client.Cardano.Network ( getNetworkInfo , getNetworkEras ) where import Blockfrost.API import Blockfrost.Client.Types import Blockfrost.Types networkClient :: MonadBlockfrost m => Project -> NetworkAPI (AsClientT m) networkClient = fromServant . _network . cardanoClient ...
null
https://raw.githubusercontent.com/blockfrost/blockfrost-haskell/bc8149f33eef63874e9c96efaafc01223e260735/blockfrost-client/src/Blockfrost/Client/Cardano/Network.hs
haskell
| Network queries | Get detailed network information. | Get summarized information on each era in the network, including start, end, and variable era parameters.
module Blockfrost.Client.Cardano.Network ( getNetworkInfo , getNetworkEras ) where import Blockfrost.API import Blockfrost.Client.Types import Blockfrost.Types networkClient :: MonadBlockfrost m => Project -> NetworkAPI (AsClientT m) networkClient = fromServant . _network . cardanoClient getNetworkInfo_ :: M...
15c83f84071516db538d364636c6f72d4b0a2052cc9cd8822058af975d5bb3c4
schemedoc/implementation-metadata
t.scm
(title "T") (person "Jonathan Rees") (person "Olin Shivers") (person "Dan Weld") (academy "Yale University") (machine vax m68k) @article{hudak1991 t , title={T on the Cray X / MP } , author={Hudak , , ;; year={1991} ;; } ;; ;;
null
https://raw.githubusercontent.com/schemedoc/implementation-metadata/6280d9c4c73833dc5bd1c9bef9b45be6ea5beb68/schemes/t.scm
scheme
year={1991} }
(title "T") (person "Jonathan Rees") (person "Olin Shivers") (person "Dan Weld") (academy "Yale University") (machine vax m68k) @article{hudak1991 t , title={T on the Cray X / MP } , author={Hudak , ,
cc70692cb19261ae1e2f48b8922bc2c44cfa797f64710f7f081aa84ab01d8ec1
rmculpepper/gamble
mixture.rkt
Copyright ( c ) 2014 Released under the terms of the 2 - clause BSD license . ;; See the file COPYRIGHT for details. #lang racket/base (require racket/contract racket/pretty "../private/dist.rkt" "../private/dist-define.rkt" "discrete.rkt") (provide make-mixture-dist*) (defin...
null
https://raw.githubusercontent.com/rmculpepper/gamble/a5231e2eb3dc0721eedc63a77ee6d9333846323e/gamble/dist/mixture.rkt
racket
See the file COPYRIGHT for details. check all density or all mass
Copyright ( c ) 2014 Released under the terms of the 2 - clause BSD license . #lang racket/base (require racket/contract racket/pretty "../private/dist.rkt" "../private/dist-define.rkt" "discrete.rkt") (provide make-mixture-dist*) (define-dist-type mixture-dist ([mix discre...
5f4822aeea94cdf08df1b42bcb058a0ed4746dfed1eaa9e7230de1813ae1cbf5
gonzojive/parenscript
test-package.lisp
(in-package #:cl) (defpackage #:parenscript-test (:nicknames #:ps-test) (:use #:common-lisp #:parenscript #:5am) (:export #:run-tests #:interface-function))
null
https://raw.githubusercontent.com/gonzojive/parenscript/5d4772369e28c33cd3522ad46d3de357f7cacf70/t/test-package.lisp
lisp
(in-package #:cl) (defpackage #:parenscript-test (:nicknames #:ps-test) (:use #:common-lisp #:parenscript #:5am) (:export #:run-tests #:interface-function))
317d03e2e3a9af6c97dc293d93904e4c5edf4e58710cb78c3f0db31ede04772e
generateme/inferme
13_function_learning.clj
(ns probmods.13-function-learning (:require [fastmath.core :as m] [fastmath.random :as r] [fastmath.vector :as v] [fastmath.stats :as stats] [inferme.core :refer :all] [inferme.plot :as plot])) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-o...
null
https://raw.githubusercontent.com/generateme/inferme/f377f7840ab7b2257b5ec74c7704121e655c2839/notebooks/probmods/13_function_learning.clj
clojure
Fitting curves with neural nets Deep generative models skipped no option to generate random matrices
(ns probmods.13-function-learning (:require [fastmath.core :as m] [fastmath.random :as r] [fastmath.vector :as v] [fastmath.stats :as stats] [inferme.core :refer :all] [inferme.plot :as plot])) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-o...
2782012041858f2f96f3d7cc572d5a3f16f295e69eeebd622dca715676ce1d48
haskell-works/hw-kafka-conduit
Source.hs
module Kafka.Conduit.Source ( -- ** Source kafkaSource, kafkaSourceNoClose, kafkaSourceAutoClose -- ** Error handling , isFatal, isPollTimeout, isPartitionEOF , skipNonFatal, skipNonFatalExcept -- ** Utility combinators , mapFirst, mapValue, bimapValue , sequenceValueFirst, sequenceValue, bisequenceValue , trave...
null
https://raw.githubusercontent.com/haskell-works/hw-kafka-conduit/a22a3985b0d0c0dac9a1cf52d600e9ed9ee481ea/src/Kafka/Conduit/Source.hs
haskell
** Source ** Error handling ** Utility combinators | Create a `Source` for a given `KafkaConsumer`. The consumer will NOT be closed automatically when the `Source` is closed. | Create a `Source` for a given `KafkaConsumer`. The consumer will be closed automatically when the `Source` is closed. | Creates a kafka...
module Kafka.Conduit.Source kafkaSource, kafkaSourceNoClose, kafkaSourceAutoClose , isFatal, isPollTimeout, isPartitionEOF , skipNonFatal, skipNonFatalExcept , mapFirst, mapValue, bimapValue , sequenceValueFirst, sequenceValue, bisequenceValue , traverseValueFirst, traverseValue, bitraverseValue , traverseValueFirst...
b3bf41b5fc4aa4b1522585bde8f88504235272fb100152dd95bd0a9fd238e229
phillord/protege-nrepl
model.clj
The contents of this file are subject to the LGPL License , Version 3.0 . ;; Copyright ( C ) 2013 , , Newcastle University ;; ;; 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 , eith...
null
https://raw.githubusercontent.com/phillord/protege-nrepl/dcfdca55f5d9e786214d1badb6de61434aa36481/nrepl-clojure/src/protege/model.clj
clojure
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 option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT without even the implied warranty of MERCHANTABILITY or FITNESS...
The contents of this file are subject to the LGPL License , Version 3.0 . Copyright ( C ) 2013 , , Newcastle University the Free Software Foundation , either version 3 of the License , or ( at your You should have received a copy of the GNU Lesser General Public License along with this program . If not , se...
cfd5e2452f2ad7e240a01cbd33eb24203dce8b2703f370bb5db01499ee8a45b4
fukamachi/qlot
distify.lisp
(defpackage #:qlot/tests/distify (:use #:cl #:rove #:qlot/distify) (:import-from #:qlot/source #:make-source) (:import-from #:qlot/utils/tmp #:tmp-directory)) (in-package #:qlot/tests/distify) (defparameter *tmp-directory* (tmp-directory)) (setup (uiop:delete-di...
null
https://raw.githubusercontent.com/fukamachi/qlot/96c40e6e6193f4bcbc61fe23aee98916347e2d94/tests/distify.lisp
lisp
(defpackage #:qlot/tests/distify (:use #:cl #:rove #:qlot/distify) (:import-from #:qlot/source #:make-source) (:import-from #:qlot/utils/tmp #:tmp-directory)) (in-package #:qlot/tests/distify) (defparameter *tmp-directory* (tmp-directory)) (setup (uiop:delete-di...
46a2d7ea8da8c1ad603b2277363695b05288797564d2d68f5e4fd7b4fadf6f71
hbr/fmlib
fmlib_js.mli
(** Javascript wrappers. *) * { 1 Common Modules } Usable in a browser window , a worker thread in the browser and node . Usable in a browser window, a worker thread in the browser and node. *) module Base = Base module Timer = Timer module Date = Date * { 1 Common Browser Modules } Usable...
null
https://raw.githubusercontent.com/hbr/fmlib/169a1b8e53c828d24329398b6ee0a6deab41a662/src/js/fmlib_js.mli
ocaml
* Javascript wrappers.
* { 1 Common Modules } Usable in a browser window , a worker thread in the browser and node . Usable in a browser window, a worker thread in the browser and node. *) module Base = Base module Timer = Timer module Date = Date * { 1 Common Browser Modules } Usable in a browser window or in a...
d80804f4e1ccfb96f19ed135609e7a3c2b9ca19e77655e48c2f998943326ab33
maxima-project-on-github/maxima-packages
superq.lisp
superq.lisp -- " super " quoting for Maxima Copyright 2008 by I release this work under the terms of the GNU General Public License ;; Examples: ;; load (superq); ;; '(1 + 1); = > 2 ;; superq (1 + 1); ;; => superq(1 + 1) ' ( 5 ! ) ; = > 120 superq ( 5 ! ) ; ;; => superq(5!) ;; '(sin (0)); ;; => ...
null
https://raw.githubusercontent.com/maxima-project-on-github/maxima-packages/5a1bbd88a4e8b66b1ae659e2a07cdbaede1be7f7/robert-dodier/superq/superq.lisp
lisp
Examples: load (superq); '(1 + 1); superq (1 + 1); => superq(1 + 1) => superq(5!) '(sin (0)); => 0 superq (sin (0)); => superq(sin(0)) => superq('diff(x,x,1)) tex ('(1 + 1)); tex (superq (1 + 1)); tex ('(sin (0))); tex (superq (sin (0)));
superq.lisp -- " super " quoting for Maxima Copyright 2008 by I release this work under the terms of the GNU General Public License = > 2 = > 120 = > 1 = > $ $ 2$$ = > $ $ 1 + 1$$ = > $ $ 120$$ = > $ $ 5!$$ = > $ $ 0$$ = > $ $ \sin 0$$ = > $ $ 1$$ = > $ $ { { (defmspec $su...
c3e0e258e48f735d0eb6b01b991cc2a227641793a0a68bb6e3a2ffee603aa793
uncomplicate/deep-diamond
core.clj
Copyright ( c ) . All rights reserved . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) or later ;; which can be found in the file LICENSE at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be boun...
null
https://raw.githubusercontent.com/uncomplicate/deep-diamond/b3572e216f59477aa91ed61e1d1badef91e04eee/src/clojure/uncomplicate/diamond/internal/dnnl/core.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) or later which can be found in the file LICENSE at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not rem...
Copyright ( c ) . All rights reserved . (ns uncomplicate.diamond.internal.dnnl.core (:require [uncomplicate.commons [core :refer [let-release with-release wrap extract view]] [utils :refer [enc-keyword direct-buffer capacity dragan-says-ex mask]]] [uncomplicate.diamond.int...
ffc7b6a12a4efb41038c73e0d60be8a825472ebed6d4f6c226e4b3d5f90c571a
Lovesan/Reactivity
reactive-object.lisp
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*- Copyright ( C ) 2011 , < lovesan.ru at gmail.com > ;;; Permission is hereby granted, free of charge, to any person ;;; obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without ;;; restriction, inclu...
null
https://raw.githubusercontent.com/Lovesan/Reactivity/77813183f7f512d8e115c2b0a34ac1a1045c60e8/src/reactive-object.lisp
lisp
-*- Mode: lisp; indent-tabs-mode: nil -*- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies furnished to do...
Copyright ( C ) 2011 , < lovesan.ru at gmail.com > files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KI...
ffbd4b5c9728647fa008780b17bc2376753aaf8de98886c876eea2742ff06e7c
elastic/eui-cljs
format_boolean.cljs
(ns eui.services.format-boolean (:require ["@elastic/eui/lib/services/format/format_boolean.js" :as eui])) (def formatBoolean eui/formatBoolean)
null
https://raw.githubusercontent.com/elastic/eui-cljs/ad60b57470a2eb8db9bca050e02f52dd964d9f8e/src/eui/services/format_boolean.cljs
clojure
(ns eui.services.format-boolean (:require ["@elastic/eui/lib/services/format/format_boolean.js" :as eui])) (def formatBoolean eui/formatBoolean)
caa243b1b27322b709ac49b6e935d673e5ef6f5085b872b6ddada98b834ef4bc
opencog/pln
attraction-introduction.scm
;; ============================================================================= ;; Attraction introduction rule, e.g. for Subset ;; ;; Subset <STV> ;; A ;; B ;; Subset <SNTV> ;; Not ;; A ;; B ;; |- Attraction < TV > ;; A ;; B ;; ;; where TV is defined as follows ;; TV.s = pattern - of(B , A ) ;; TV...
null
https://raw.githubusercontent.com/opencog/pln/52dc099e21393892cf5529fef687a69682436b2d/opencog/pln/rules/intensional/attraction-introduction.scm
scheme
============================================================================= Attraction introduction rule, e.g. for Subset Subset <STV> A B Subset <SNTV> Not A B |- A B where TV is defined as follows TV.c = min(STV.c, SNTV.c) pattern-of(B,A) = (P(B|A)-P(B|¬A))+ where s(B) is the pr...
Attraction < TV > TV.s = pattern - of(B , A ) now the prior of B is 1 . (define subset-attraction-introduction-rule (let* ((A (Variable "$A")) (B (Variable "$B")) (CT (TypeInh "ConceptNode"))) (BindLink (VariableSet (TypedVariable A CT) (TypedVariable B CT)) (P...
750cf84540bb6fbc8f16a0435ba1e5b0272bab01f311a56a02d7d98fb7bc49aa
clojure/tools.nrepl
pr_values.clj
(ns ^{:author "Chas Emerick"} clojure.tools.nrepl.middleware.pr-values (:require [clojure.tools.nrepl.transport :as t]) (:use [clojure.tools.nrepl.middleware :only (set-descriptor!)]) (:import clojure.tools.nrepl.transport.Transport)) (defn pr-values "Middleware that returns a handler which transforms an...
null
https://raw.githubusercontent.com/clojure/tools.nrepl/d4bb14e841b453721f009f4e9e0e9b2742b4bdc2/src/main/clojure/clojure/tools/nrepl/middleware/pr_values.clj
clojure
(ns ^{:author "Chas Emerick"} clojure.tools.nrepl.middleware.pr-values (:require [clojure.tools.nrepl.transport :as t]) (:use [clojure.tools.nrepl.middleware :only (set-descriptor!)]) (:import clojure.tools.nrepl.transport.Transport)) (defn pr-values "Middleware that returns a handler which transforms an...
29d472224b7f9698158c09432fcbd96a591f8e7988ea95ad91b611ebf36034cb
melisgl/higgsml
package.lisp
(defpackage :rumcajsz-test (:use :cl #:rumcajsz) (:export #:test))
null
https://raw.githubusercontent.com/melisgl/higgsml/a49679354f1b1896ea6472a5f615e9bcdee65638/test/package.lisp
lisp
(defpackage :rumcajsz-test (:use :cl #:rumcajsz) (:export #:test))
4bbaafdcd3e3c1291b48c950706aa2441d3f28eb8d2eea3bdbb5e407635dcf7b
typelead/eta
Failure.hs
# LANGUAGE Trustworthy # # LANGUAGE NoImplicitPrelude # ----------------------------------------------------------------------------- -- | -- Module : GHC.IO.Encoding.Failure Copyright : ( c ) The University of Glasgow , 2008 - 2011 -- License : see libraries/base/LICENSE -- -- Maintainer : -- Sta...
null
https://raw.githubusercontent.com/typelead/eta/97ee2251bbc52294efbf60fa4342ce6f52c0d25c/libraries/base/GHC/IO/Encoding/Failure.hs
haskell
--------------------------------------------------------------------------- | Module : GHC.IO.Encoding.Failure License : see libraries/base/LICENSE Maintainer : Stability : internal Portability : non-portable Types for specifying how text encoding/decoding fails -----------------------------...
# LANGUAGE Trustworthy # # LANGUAGE NoImplicitPrelude # Copyright : ( c ) The University of Glasgow , 2008 - 2011 module GHC.IO.Encoding.Failure ( CodingFailureMode(..), codingFailureModeSuffix, isSurrogate, recoverDecode, recoverEncode ) where import GHC.IO import GHC.IO.Buffer import GHC.IO.Ex...
d055888d7132b1b825eb664a66d05c65945fd4b3375d166d46b754f354b8e255
bitblaze-fuzzball/fuzzball
stp.ml
* Translations to STP Translation from VinE expressions to STP . See the to_string , to_file , and print functions . @author Translation from VinE expressions to STP. See the to_string, to_file, and print functions. @author Ivan Jager *) open Vine open Printf module VH = Vine.VarHas...
null
https://raw.githubusercontent.com/bitblaze-fuzzball/fuzzball/b9a617b45e68fa732f1357fedc08a2a10f87a62c/ocaml/stp.ml
ocaml
* Visitor for printing out CVCL sytax for an expression. variables already used in this output (needed for mems) map vine var to var we are using free variable as expected v isn't allowed to shadow anything m is shadowing the old m Same sort of deal :( let t = Vine_typecheck.infer_type_fast e1 in Same...
* Translations to STP Translation from VinE expressions to STP . See the to_string , to_file , and print functions . @author Translation from VinE expressions to STP. See the to_string, to_file, and print functions. @author Ivan Jager *) open Vine open Printf module VH = Vine.VarHas...
804f64779acd2b6e3ca9aff94b8c140225842ca16c672c6ab8547ba908dd1705
cljfx/cljfx
cell.clj
(ns cljfx.fx.cell "Part of a public API" (:require [cljfx.composite :as composite] [cljfx.fx.labeled :as fx.labeled] [cljfx.lifecycle :as lifecycle] [cljfx.coerce :as coerce]) (:import [javafx.scene.control Cell])) (set! *warn-on-reflection* true) (def props (merge fx.l...
null
https://raw.githubusercontent.com/cljfx/cljfx/543f7409290051e9444771d2cd86dadeb8cdce33/src/cljfx/fx/cell.clj
clojure
overrides definitions
(ns cljfx.fx.cell "Part of a public API" (:require [cljfx.composite :as composite] [cljfx.fx.labeled :as fx.labeled] [cljfx.lifecycle :as lifecycle] [cljfx.coerce :as coerce]) (:import [javafx.scene.control Cell])) (set! *warn-on-reflection* true) (def props (merge fx.l...
323ffb888b78e66ea03ca5a3e8e100f0f5f1115466d473a26ff501dc89e53d28
msakai/toysolver
LBool.hs
----------------------------------------------------------------------------- -- | -- Module : ToySolver.Data.LBool Copyright : ( c ) 2012 -- License : BSD-style -- -- Maintainer : -- Stability : provisional -- Portability : portable -- -- Lifted boolean type. -- -----------------------------...
null
https://raw.githubusercontent.com/msakai/toysolver/6233d130d3dcea32fa34c26feebd151f546dea85/src/ToySolver/Data/LBool.hs
haskell
--------------------------------------------------------------------------- | Module : ToySolver.Data.LBool License : BSD-style Maintainer : Stability : provisional Portability : portable Lifted boolean type. --------------------------------------------------------------------------- | lift...
Copyright : ( c ) 2012 module ToySolver.Data.LBool ( LBool (..) , lTrue , lFalse , lUndef , lnot , liftBool , unliftBool ) where import Data.Int | Lifted Bool type . It has three values ' lTrue ' , ' lFalse ' , ' lUndef ' . newtype LBool = LBool Int8 deriving Eq # INLINE lTrue # lTrue :: L...
a2bf857e0b168dc9d6430c323f57ab295f0af0d7024529cdbaf1af350d8c6a55
pokepay/aws-sdk-lisp
rekognition.lisp
;; DO NOT EDIT: File is generated by AWS-SDK/GENERATOR. (uiop:define-package #:aws-sdk/services/rekognition (:use) (:use-reexport #:aws-sdk/services/rekognition/api))
null
https://raw.githubusercontent.com/pokepay/aws-sdk-lisp/836b87df520391478a19462443342dc56f4b3f2c/services/rekognition.lisp
lisp
DO NOT EDIT: File is generated by AWS-SDK/GENERATOR.
(uiop:define-package #:aws-sdk/services/rekognition (:use) (:use-reexport #:aws-sdk/services/rekognition/api))
91c7f0b00523d36809ef827f9f05d3ff111f5883ff6e622210b62af141a2aec2
haskell-mafia/mismi
Arbitrary.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # OPTIONS_GHC -fno - warn - orphans # module Test.Mismi.Arbitrary where import Network.AWS.Types import Test.Mismi.Kernel.Arbitrary () import Test.QuickCheck import Test.QuickCheck.Instances () import ...
null
https://raw.githubusercontent.com/haskell-mafia/mismi/f6df07a52c6c8b1cf195b58d20ef109e390be014/mismi-core/test/Test/Mismi/Arbitrary.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - orphans # module Test.Mismi.Arbitrary where import Network.AWS.Types import Test.Mismi.Kernel.Arbitrary () import Test.QuickCheck import Test.QuickCheck.Instances () import Data.Text.Encoding import ...
5fae86bf75d33169ee3c8c4b392d350c5af808df348878748ebbd378ca571c5e
jcrossley3/lein-modules
plugin_test.clj
(ns lein-modules.plugin-test (:use clojure.test lein-modules.plugin) (:require [leiningen.core.project :as prj])) (deftest unmerge-should-retain-versions (let [p (-> (prj/read "test-resources/lambda/project.clj") (prj/unmerge-profiles [:default]))] (are [d expected] (= expected (-> p :dep...
null
https://raw.githubusercontent.com/jcrossley3/lein-modules/8282ca9b214cd34ca0d222be670478982e1d55b5/test/lein_modules/plugin_test.clj
clojure
(ns lein-modules.plugin-test (:use clojure.test lein-modules.plugin) (:require [leiningen.core.project :as prj])) (deftest unmerge-should-retain-versions (let [p (-> (prj/read "test-resources/lambda/project.clj") (prj/unmerge-profiles [:default]))] (are [d expected] (= expected (-> p :dep...