_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
e4241dbb2a35e3906afc0f01e014a98881bddce25e68e0ce7a679b423632a7de
weblocks-framework/weblocks-stores
package.lisp
(defpackage #:weblocks-stores (:use :cl :weblocks-util :metatilities :anaphora) (:documentation "Base for weblocks store drivers")) (in-package :weblocks-stores)
null
https://raw.githubusercontent.com/weblocks-framework/weblocks-stores/4231ae1f99b991b35b782c5eeeb7b775c62b9574/src/package.lisp
lisp
(defpackage #:weblocks-stores (:use :cl :weblocks-util :metatilities :anaphora) (:documentation "Base for weblocks store drivers")) (in-package :weblocks-stores)
74361edc6463f38b36ad0d292c2699323955a60e6da384aaf441eafb3e058217
logicmoo/logicmoo_nlu
cutili.lsp
miniCprolog & Mini - PrologII ; cutili.lsp ; (defmacro nloc (c) `(caar ,c)) ; number of local vars (defmacro nglob (c) `(cdar ,c)) ; number of global vars (defmacro head (c) `(cadr ,c)) ; head of a clause (defmacro tail (c) `(cddr ,c)) ; body of a clause (defmacro pred (g) `(car ,g...
null
https://raw.githubusercontent.com/logicmoo/logicmoo_nlu/c066897f55b3ff45aa9155ebcf799fda9741bf74/ext/e2c/microUt/cutili.lsp
lisp
cutili.lsp number of local vars number of global vars head of a clause body of a clause predicate symbol list of arguments functor/arity user defined predicate builtin predicate gets the subset of clauses depending on the nature of determines the associated subset according to clause indexing adds a cl...
miniCprolog & Mini - PrologII (defmacro functor (des) `(car ,des)) (defmacro arity (des) `(cadr ,des)) (defmacro var? (v) `(and (consp ,v) (numberp (cdr ,v)))) (defmacro list? (x) `(eq (functor (des ,x)) '\.)) `(get (pred ,g) 'def)) `(get (pred ,g) 'evaluable)) the first arg of goal PC (nature (...
61d2d8e6659ac68450bf144e803af0645292ca510bb911f8f7e525593429bd04
finkel-lang/finkel
p07.hs
;;; -*- mode: finkel -*- (module Main) (:: main (IO ())) (== main (putStrLn "foo"))
null
https://raw.githubusercontent.com/finkel-lang/finkel/74ce4bb779805ad2b141098e29c633523318fa3e/finkel-kernel/test/data/plugin/p07.hs
haskell
;;; -*- mode: finkel -*- (module Main) (:: main (IO ())) (== main (putStrLn "foo"))
a0035bbd77488ce72ca5320c8d82201f9ad758d3c6627ce73d304a26294aefcc
josefs/Gradualizer
generator_var_shadow.erl
-module(generator_var_shadow). -compile([export_all, nowarn_export_all]). -compile([nowarn_shadow_vars, nowarn_unused_vars]). -spec f(boolean(), [integer()]) -> [integer()]. f(X, Xs) -> [X || X <- Xs].
null
https://raw.githubusercontent.com/josefs/Gradualizer/208f5816b0157f282212fc036ba7560f0822f9fc/test/known_problems/should_pass/generator_var_shadow.erl
erlang
-module(generator_var_shadow). -compile([export_all, nowarn_export_all]). -compile([nowarn_shadow_vars, nowarn_unused_vars]). -spec f(boolean(), [integer()]) -> [integer()]. f(X, Xs) -> [X || X <- Xs].
b4dceaa9d98f8ed89d605b5fa8c7fb6869e61bf2c705ebb709c3105c2402d5fe
brendanhay/gogol
BatchGet.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # {-# LANGUAGE St...
null
https://raw.githubusercontent.com/brendanhay/gogol/77394c4e0f5bd729e6fe27119701c45f9d5e1e9a/lib/services/gogol-people/gen/Gogol/People/ContactGroups/BatchGet.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated Get a list of contact groups owned by the authenticated user by specifying a list of contact group resource names. /See:/ </ People API Reference> for @people.contactGroups.batchGet@. * Resource ** Constructing a Request | A ...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators...
d61060307ed0bd02ea67005e5f0cf21ec0d9dc76078038fe76dcfa9cd34c6826
zenhack/c-ast
cat.scm
(use-modules (compiler)) (ld "cat" (cc "cat" '(!include<> "stdio.h") '(!include<> "string.h") '(def copy (func int (in (ptr FILE)) (out (ptr FILE))) (decl c int) (while 1 (begin (= c (call fgetc in)) (if (== c...
null
https://raw.githubusercontent.com/zenhack/c-ast/5af5758ccae5e468587cda837e1fd9e685205bef/examples/cat.scm
scheme
(use-modules (compiler)) (ld "cat" (cc "cat" '(!include<> "stdio.h") '(!include<> "string.h") '(def copy (func int (in (ptr FILE)) (out (ptr FILE))) (decl c int) (while 1 (begin (= c (call fgetc in)) (if (== c...
8a2ad6a3182bc9e76bc10e43233404aefd6edbfd8572d3e6901e8b039ce58e83
maximedenes/native-coq
declarations.mli
open Errors open Util open Names open Term Bytecode type values type reloc_table type to_patch_substituted (*Retroknowledge *) type action type retroknowledge (* Engagements *) type engagement = ImpredicativeSet (* Constants *) type polymorphic_arity = { poly_param_levels : Univ.universe option list; poly_le...
null
https://raw.githubusercontent.com/maximedenes/native-coq/3623a4d9fe95c165f02f7119c0e6564a83a9f4c9/checker/declarations.mli
ocaml
Retroknowledge Engagements Constants * Inlining level of parameters at functor applications. This is ignored by the checker. * A constant can have no body (axiom/parameter), or a transparent body, or an opaque one New: younger hyp at top Primitive datas Name of the type: [Ii] Arity context of [Ii]...
open Errors open Util open Names open Term Bytecode type values type reloc_table type to_patch_substituted type action type retroknowledge type engagement = ImpredicativeSet type polymorphic_arity = { poly_param_levels : Univ.universe option list; poly_level : Univ.universe; } type constant_type = | NonPo...
fbdff57f74aa0e558036878feb878dc1cf849e5d9dcccda186799cb1c37dfb53
runexec/chp
01-add-admin.clj
(let [table (kc/create-entity "user")] (comment Assuming resources/schema/user.clj (table :user (integer :id :primary-key :auto-inc) (varchar :name 20) (varchar :password 128) (varchar :salt 128) (boolean :admin) ...
null
https://raw.githubusercontent.com/runexec/chp/9059399c46fb4106a73631c741f1e557af541a8b/resources/migrations/01-add-admin.clj
clojure
(let [table (kc/create-entity "user")] (comment Assuming resources/schema/user.clj (table :user (integer :id :primary-key :auto-inc) (varchar :name 20) (varchar :password 128) (varchar :salt 128) (boolean :admin) ...
720c295ff10e4bf3d0c778457390b142948c2bce855b67f159e5337af3e82722
nuprl/gradual-typing-performance
scope9.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname scope9) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeat...
null
https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/pre-benchmark/htdp/base/Images/scope9.rkt
racket
about the language level of this file in a form that our tools can easily process.
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname scope9) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ()))) (define f (lambda (x) (+ (* x x) 25...
5e21b78b24000986255ace46654ec04bbf38f57c5a2d74f96070f6900c03b4e4
ulisesmac/Horarios-FC-UNAM
subs.cljs
(ns horarios-fc.screens.pick-plan.subs (:require [horarios-fc.screens.pick-major.subs :as pick-major.subs] [re-frame.core :as rf])) (rf/reg-sub ::majors-by-semester :<- [:schedule] :<- [:semester-selected] (fn [[schedule semester]] (get-in schedule [semester :data]))) (rf/reg-sub ::plans-list :<- [::...
null
https://raw.githubusercontent.com/ulisesmac/Horarios-FC-UNAM/dc203e0b424346f8540bbefd99e5d30572be389f/src/horarios_fc/screens/pick_plan/subs.cljs
clojure
(ns horarios-fc.screens.pick-plan.subs (:require [horarios-fc.screens.pick-major.subs :as pick-major.subs] [re-frame.core :as rf])) (rf/reg-sub ::majors-by-semester :<- [:schedule] :<- [:semester-selected] (fn [[schedule semester]] (get-in schedule [semester :data]))) (rf/reg-sub ::plans-list :<- [::...
70deeee11d22914357d5905229b8e37468b4df122cfaa3cb178d4eb0f8046573
zkincaid/srk
test_wedge.ml
open Srk open OUnit open BatPervasives open Syntax open Test_pervasives module CS = CoordinateSystem let (pow, log) = Nonlinear.ensure_symbols srk; (get_named_symbol srk "pow", get_named_symbol srk "log") let mk_log (base : 'a arith_term) (x : 'a arith_term) = mk_app srk log [base; x] let mk_pow (base : 'a ar...
null
https://raw.githubusercontent.com/zkincaid/srk/4809f2b697c02d9e020e4de2c0b11ff4a0c59f7f/test/test_wedge.ml
ocaml
open Srk open OUnit open BatPervasives open Syntax open Test_pervasives module CS = CoordinateSystem let (pow, log) = Nonlinear.ensure_symbols srk; (get_named_symbol srk "pow", get_named_symbol srk "log") let mk_log (base : 'a arith_term) (x : 'a arith_term) = mk_app srk log [base; x] let mk_pow (base : 'a ar...
4275e3e5a5c7fc629153241c5ae8325c3ac1ade0d0191c6160a6ebd7dce5c722
cpsc411/cpsc411-book
a10-skeleton.rkt
#lang racket (require "a10-graph-lib.rkt" "a10-compiler-lib.rkt") (provide uniquify expand-macros define->letrec purify-letrec convert-assigned dox-lambdas implement-safe-primops uncover-free convert-closures optimize-known-calls hoist-lambdas implement-closures sequentialize-let implement-safe-apply ...
null
https://raw.githubusercontent.com/cpsc411/cpsc411-book/f2199857fe0b894ac5216775c5e6036f5fb0a8f2/build/share/a10-skeleton.rkt
racket
#lang racket (require "a10-graph-lib.rkt" "a10-compiler-lib.rkt") (provide uniquify expand-macros define->letrec purify-letrec convert-assigned dox-lambdas implement-safe-primops uncover-free convert-closures optimize-known-calls hoist-lambdas implement-closures sequentialize-let implement-safe-apply ...
8da06bd205419b26ade18549ec789a21002b3a082a158d6a8934d710f3afd7fd
eWert-Online/OSnap
OSnap_Config_Global.ml
open OSnap_Config_Types module YAML = struct let ( let* ) = Result.bind let parse path = let config = OSnap_Utils.get_file_contents path in let* yaml = config |> Yaml.of_string |> Result.map_error (fun _ -> `OSnap_Config_Parse_Error ("YAML could not be parsed", path)) in ...
null
https://raw.githubusercontent.com/eWert-Online/OSnap/9010a45469ef069fffec2c9d992a7bc0808f04d8/lib/OSnap_Config/OSnap_Config_Global.ml
ocaml
open OSnap_Config_Types module YAML = struct let ( let* ) = Result.bind let parse path = let config = OSnap_Utils.get_file_contents path in let* yaml = config |> Yaml.of_string |> Result.map_error (fun _ -> `OSnap_Config_Parse_Error ("YAML could not be parsed", path)) in ...
42b4a1305bbc81819f7d8bc24ca3be83934c3e9aa975c16949d0f56e8ba4da58
fulcro-legacy/fulcro3
ui_with_legacy_ui_routers.cljs
(ns fulcro-todomvc.ui-with-legacy-ui-routers (:require [com.fulcrologic.fulcro.algorithms.tempid :as tmp] [com.fulcrologic.fulcro.application :as app] [com.fulcrologic.fulcro.components :as comp :refer [defsc]] [com.fulcrologic.fulcro.dom :as dom] [com.fulcrologic.fulcro.mutations :as mut :refer [...
null
https://raw.githubusercontent.com/fulcro-legacy/fulcro3/5d1b9ab274406afd68b792192d5a783f29963314/src/todomvc/fulcro_todomvc/ui_with_legacy_ui_routers.cljs
clojure
Code adapted from React TodoMVC implementation
(ns fulcro-todomvc.ui-with-legacy-ui-routers (:require [com.fulcrologic.fulcro.algorithms.tempid :as tmp] [com.fulcrologic.fulcro.application :as app] [com.fulcrologic.fulcro.components :as comp :refer [defsc]] [com.fulcrologic.fulcro.dom :as dom] [com.fulcrologic.fulcro.mutations :as mut :refer [...
9dec658029cd10c0519288c4b6a5ff2d8b56ebc22094da4447230d051a2c8d24
fission-codes/fission
Class.hs
module Fission.Web.Server.DID.Publicize.Class (Publicize (..)) where import Servant.Server import Fission.Prelude class Monad m => Publicize m where publicize :: m (Either ServerError ())
null
https://raw.githubusercontent.com/fission-codes/fission/11d14b729ccebfd69499a534445fb072ac3433a3/fission-web-server/library/Fission/Web/Server/DID/Publicize/Class.hs
haskell
module Fission.Web.Server.DID.Publicize.Class (Publicize (..)) where import Servant.Server import Fission.Prelude class Monad m => Publicize m where publicize :: m (Either ServerError ())
5eba9b1444b45e5a9fbc7bc3377e71b2c0438d4ef1d6b8b326e77c63ad4bbd1d
BillHallahan/G2
Summary.hs
{-# LANGUAGE OverloadedStrings #-} module G2.Equiv.Summary ( SummaryMode (..) , summarize , summarizeAct , summarizeLemmaMarker , printPG , showCX , showCycle , stateMaxDepth , stateSumDepths , minMaxDepth , minSumDepth ) where import G2.Language import qualified G2.Language.ExprEnv as E im...
null
https://raw.githubusercontent.com/BillHallahan/G2/395594e30865183d813c53a4867513498b65ac1d/src/G2/Equiv/Summary.hs
haskell
# LANGUAGE OverloadedStrings # this means that the ids in func_ids are not always mapped if they are unmapped, they will not be printed for a state don't include ns names in the result here this does not remove duplicates new function for getting all of the variables right away some of the computations here are r...
module G2.Equiv.Summary ( SummaryMode (..) , summarize , summarizeAct , summarizeLemmaMarker , printPG , showCX , showCycle , stateMaxDepth , stateSumDepths , minMaxDepth , minSumDepth ) where import G2.Language import qualified G2.Language.ExprEnv as E import qualified G2.Language.Expr as ...
075101211befad9497be0ad899d31c6e5db1b78e2b027a8f1406805127bbb45f
kmi/irs
community.lisp
Community services at CINECA . ;;; {{{ download-file-goal (def-class download-file-goal (community-goal) ?goal ((has-input-role :value has-filename :value #_hasAccount) (has-input-soap-binding :value (has-filename "string") :value (#_hasAccount "string")) ...
null
https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/apps/lhdl/ontologies/lhdl-goals/community.lisp
lisp
{{{ download-file-goal }}} {{{ upload-file-goal }}} {{{ delete-file-goal }}} {{{ simpleSearchGoal }}} }}} {{{ download-file-web-service XXX This is an ugly hack. Replace with a general XML deserialisation mechanism. }}} {{{ upload-file-web-service }}} {{{ delete-file-web-service }}} }}} {{{ listSand...
Community services at CINECA . (def-class download-file-goal (community-goal) ?goal ((has-input-role :value has-filename :value #_hasAccount) (has-input-soap-binding :value (has-filename "string") :value (#_hasAccount "string")) (has-output-role :value ...
5a7f05336c7c6e76ccfc9cf4082083957f01d2e8edc096800c50548df949c67a
erlio/vmq_server
vmq_reg_sync.erl
Copyright 2014 Erlio GmbH Basel Switzerland ( ) %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicable law or agreed to in writing, sof...
null
https://raw.githubusercontent.com/erlio/vmq_server/d008c6dcc62fe985d08456caa4024750e1febf38/src/vmq_reg_sync.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing perm...
Copyright 2014 Erlio GmbH Basel Switzerland ( ) Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(vmq_reg_sync). -behaviour(gen_server). -export([start_link/0, sync/3, sync/4, async/3, async/4, ...
1b51706be599520eede85600f020e7f4e7698b56a104114f9edc1c46a763f043
babashka/babashka
embedded_pg_tests.clj
(ns embedded-pg-tests (:require [clojure.test :as t :refer [is]] [next.jdbc :as jdbc] [next.jdbc.sql :as sql])) (defn wait-for-postgres [db] (while (not (try (jdbc/execute! db ["select version()"]) (catch Exception e (prn (ex-message e)) ...
null
https://raw.githubusercontent.com/babashka/babashka/3dfc15f5a40efaec07cba991892c1207a352fab4/test-resources/babashka/embedded_pg_tests.clj
clojure
(ns embedded-pg-tests (:require [clojure.test :as t :refer [is]] [next.jdbc :as jdbc] [next.jdbc.sql :as sql])) (defn wait-for-postgres [db] (while (not (try (jdbc/execute! db ["select version()"]) (catch Exception e (prn (ex-message e)) ...
6e13d8cb06c970807ad2ae6c272e366eb359864929e21b28818049133abd3790
inaka/lsl
lsl_meta_SUITE.erl
-module(lsl_meta_SUITE). -include_lib("mixer/include/mixer.hrl"). -mixin([{ ktn_meta_SUITE , [ all/0 , xref/1 , dialyzer/1 , elvis/1 ] }]). -export([init_per_suite/1, end_per_suite/1]). -type config() :: [{atom(), term()}]. -spec init_per_suite(config()) -> co...
null
https://raw.githubusercontent.com/inaka/lsl/fdb5690fa51bc2f7fe8b50a22caca78fd9d8a7a5/test/lsl_meta_SUITE.erl
erlang
-module(lsl_meta_SUITE). -include_lib("mixer/include/mixer.hrl"). -mixin([{ ktn_meta_SUITE , [ all/0 , xref/1 , dialyzer/1 , elvis/1 ] }]). -export([init_per_suite/1, end_per_suite/1]). -type config() :: [{atom(), term()}]. -spec init_per_suite(config()) -> co...
47dcd5d6c93d7cff3b11464054ca52ebc4982bb0619d024b4b6e91747982976a
janestreet/lwt-async
lwt_unix.ml
Lightweight thread library for * Module Lwt_unix * Copyright ( C ) 2005 - 2008 * Laboratoire PPS - CNRS Université Paris Diderot * 2009 * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public Lice...
null
https://raw.githubusercontent.com/janestreet/lwt-async/c738e6202c1c7409e079e513c7bdf469f7f9984c/src/unix/lwt_unix.ml
ocaml
+-----------------------------------------------------------------+ | Configuration | +-----------------------------------------------------------------+ +-----------------------------------------------------------------+ | Notifications management ...
Lightweight thread library for * Module Lwt_unix * Copyright ( C ) 2005 - 2008 * Laboratoire PPS - CNRS Université Paris Diderot * 2009 * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public Lice...
0a14032612f685599e81ff6fdd1a8dd07dcbb864aabe0ef520dbedf09499a660
armedbear/abcl
inspect.lisp
;;; inspect.lisp ;;; Copyright ( C ) 2003 - 2005 $ Id$ ;;; ;;; This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . ...
null
https://raw.githubusercontent.com/armedbear/abcl/36a4b5994227d768882ff6458b3df9f79caac664/src/org/armedbear/lisp/inspect.lisp
lisp
inspect.lisp This program is free software; you can redistribute it and/or either version 2 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 fo...
Copyright ( C ) 2003 - 2005 $ Id$ modify it under the terms of the GNU General Public License of the License , or ( at your option ) any later version . You should have received a copy of the GNU General Public License Foundation , Inc. , 59 Temple Place - Suite 330 , Boston , MA 02111 - 1307 , USA . (...
4b8a81ab8b551aecfab2d0da7f712814dc08098ac2a4bb49065d0e6c90cd0535
facebook/pyre-check
statement.mli
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/pyre-check/019e2efe4cce64a8d52f01b1af1d34bd48039035/source/ast/statement.mli
ocaml
The class owning the method. If the define is nested, this is the name of the nesting define.
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
c9c7ad5e8824b72ec0f414a47cdc5fa651cc73e9e06743ff57e3191fdb016353
monadbobo/ocaml-core
core_int32.mli
An int of exactly 32 bits , regardless of the machine . Side note : There 's not much reason to want an int of at least 32 bits ( i.e. 32 on 32 - bit machines and 63 on 64 - bit machines ) because Int63 is basically just as efficient . Overflow issues are _ not _ generally considered and explici...
null
https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/core/lib/core_int32.mli
ocaml
An int of exactly 32 bits , regardless of the machine . Side note : There 's not much reason to want an int of at least 32 bits ( i.e. 32 on 32 - bit machines and 63 on 64 - bit machines ) because Int63 is basically just as efficient . Overflow issues are _ not _ generally considered and explici...
b480b9b0912bdad2281f31f88a550851c29ebd652ceab5482542dd862059d0e8
WorksHub/leona
custom_scalar_test.clj
(ns leona.custom-scalar-test (:require [clj-time.core :as t] [clj-time.format :as tf] [clj-time.types :as tt] [clojure.spec.alpha :as s] [clojure.string :as str] [clojure.test :refer :all] [leona.core :as leona] [leona.schema ...
null
https://raw.githubusercontent.com/WorksHub/leona/c936738c499ba742fc28487ac5ed6bd9f491eda8/test/leona/custom_scalar_test.clj
clojure
<-- Notice the use of this super special secret type symbol
(ns leona.custom-scalar-test (:require [clj-time.core :as t] [clj-time.format :as tf] [clj-time.types :as tt] [clojure.spec.alpha :as s] [clojure.string :as str] [clojure.test :refer :all] [leona.core :as leona] [leona.schema ...
b5c71937edf434f68e5f84789c6659e4fab01239580d178c9a5961ede0e82953
adetokunbo/tmp-proc
TmpProc.hs
| Copyright : ( c ) 2020 - 2021 SPDX - License - Identifier : : < > Exports all tmp - proc behaviour . @tmp - proc@ is a package that aims to simplify writing integration tests that use dockerizable services . The package has the following structure : * _ _ " System . TmpProc . Docker " :...
null
https://raw.githubusercontent.com/adetokunbo/tmp-proc/d9f5da7cd0a9954d37cc6f44b684a37f34f1216e/tmp-proc/src/System/TmpProc.hs
haskell
| Copyright : ( c ) 2020 - 2021 SPDX - License - Identifier : : < > Exports all tmp - proc behaviour . @tmp - proc@ is a package that aims to simplify writing integration tests that use dockerizable services . The package has the following structure : * _ _ " System . TmpProc . Docker " :...
ae149c90ca4302367f00c7fa65e17bff20b743ea7a0fdb6b9d1b7cfb1225b17e
mwand/eopl3
interp.scm
(module interp (lib "eopl.ss" "eopl") ;; interpreter for the CALL-BY-NEED language. (require "drscheme-init.scm") (require "lang.scm") (require "data-structures.scm") (require "environments.scm") (require "store.scm") (require "pairvals.scm") (provide value-of-program value-of instrument-newref)...
null
https://raw.githubusercontent.com/mwand/eopl3/b50e015be7f021d94c1af5f0e3a05d40dd2b0cbf/chapter4/call-by-need/interp.scm
scheme
interpreter for the CALL-BY-NEED language. exercise: add instrumentation around let and procedure calls, as in the call-by-reference language. the interpreter ;;;;;;;;;;;;;;;; value-of-operand : Exp * Env -> Ref no deref!
(module interp (lib "eopl.ss" "eopl") (require "drscheme-init.scm") (require "lang.scm") (require "data-structures.scm") (require "environments.scm") (require "store.scm") (require "pairvals.scm") (provide value-of-program value-of instrument-newref) value - of - program : Program - > ExpVal ...
65b40317e8387f0c6669260664320fc4a11b2fb3293da4d7f22d2dbdd39a5aa1
caradoc-org/caradoc
fetchcomp.mli
(*****************************************************************************) (* Caradoc: a PDF parser and validator *) Copyright ( C ) 2015 ANSSI Copyright ( C ) 2015 - 2017 (* ...
null
https://raw.githubusercontent.com/caradoc-org/caradoc/100f53bc55ef682049e10fabf24869bc019dc6ce/src/parser/relaxed/fetchcomp.mli
ocaml
*************************************************************************** Caradoc: a PDF parser and validator This program is free software; you can redistribute it and/or modify ...
Copyright ( C ) 2015 ANSSI Copyright ( C ) 2015 - 2017 it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation . You should have rece...
dadef2b7cb0319f4d8a98ab4fd8de0a34d5b3f862c5859fdd67db7319ef4740d
faylang/fay
B.hs
module Issue215.B where import Prelude f :: Int -> Maybe Int f x = Just x
null
https://raw.githubusercontent.com/faylang/fay/8455d975f9f0db2ecc922410e43e484fbd134699/tests/Issue215/B.hs
haskell
module Issue215.B where import Prelude f :: Int -> Maybe Int f x = Just x
5ee79f89b8eee78b682f55dd27cf3c432fdb301479bfa958b41902dd7b9c90a5
skanev/playground
23.scm
SICP exercise 4.23 ; does n't understand why analyze - sequence needs to be so ; complicated. All the other analysis procedures are straightforward ; transformations of the corresponding evaluation procedures (or eval clauses) in section 4.1.1 . She expected analyze - sequence to look like this : ; ; (define...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/sicp/04/23.scm
scheme
complicated. All the other analysis procedures are straightforward transformations of the corresponding evaluation procedures (or eval clauses) (define (analyze-sequence exps) (define (execute-sequence procs env) (cond ((null? (cdr procs)) ((car procs) env)) (else ((car procs) env) ...
SICP exercise 4.23 does n't understand why analyze - sequence needs to be so in section 4.1.1 . She expected analyze - sequence to look like this : explains to that the version in the text does more of the work of evaluating a sequence at analysis time . 's sequence - execution Compare the two versi...
b0d6628852001652cd04d82f5149e778f0af7b70f461beed30758e98716b67bd
andrenth/release
config_values.ml
type t = [ `Keyword of string | `Bool of bool | `Int of int | `Float of float | `Str of string | `Regexp of Re.Pcre.regexp | `List of t list ] let to_keyword = function | `Keyword l -> l | _ -> invalid_arg "keyword" let to_bool = function | `Bool b -> b | _ -> invalid_arg "bool" let to_int = ...
null
https://raw.githubusercontent.com/andrenth/release/c88b472d8b142f7f306299d0f51cfd8add4a1a58/src/config_values.ml
ocaml
type t = [ `Keyword of string | `Bool of bool | `Int of int | `Float of float | `Str of string | `Regexp of Re.Pcre.regexp | `List of t list ] let to_keyword = function | `Keyword l -> l | _ -> invalid_arg "keyword" let to_bool = function | `Bool b -> b | _ -> invalid_arg "bool" let to_int = ...
b96a36973b12f200cb0d45259f857925b30b9ff0eb0456f658b09b7d1c626018
janestreet/base_quickcheck
base_quickcheck_test_helpers_intf.ml
open! Base open Base_quickcheck module type Value = sig type t [@@deriving compare, sexp_of] end module type With_examples = sig type t [@@deriving compare, sexp_of] val examples : t list end module type Base_quickcheck_test_helpers = sig module type With_examples = With_examples (** This module provides...
null
https://raw.githubusercontent.com/janestreet/base_quickcheck/97fd86787c0dd8ddb80cd879ca1b39c8602b1cf0/test/helpers/base_quickcheck_test_helpers_intf.ml
ocaml
* This module provides rough sanity tests of generators, observers, and shrinkers based on a handful of example values for the relevant type. * default: [`exhaustive] * default: [`transparent] * default: [`compound] * Shows the approximate distribution of output values for a generator based on [config.t...
open! Base open Base_quickcheck module type Value = sig type t [@@deriving compare, sexp_of] end module type With_examples = sig type t [@@deriving compare, sexp_of] val examples : t list end module type Base_quickcheck_test_helpers = sig module type With_examples = With_examples * Tests whether the gener...
0b5f68a99566eb334ced6c09305a8ee47ccc49fb2e4b6f06c7de2b7973cfe3bc
pasberth/granjure
function.clj
(ns granjure.data.function (:refer-clojure :exclude [empty]) (:use clojure.test granjure.primitive granjure.control [granjure.control.category :exclude [id compose]] granjure.control.arrow [granjure.control.arrow.choice :exclude [left right]] granjure.control.functor ...
null
https://raw.githubusercontent.com/pasberth/granjure/b2c85b794ef7e98c91178f0b6a59f748d3af7390/src/granjure/data/function.clj
clojure
(ns granjure.data.function (:refer-clojure :exclude [empty]) (:use clojure.test granjure.primitive granjure.control [granjure.control.category :exclude [id compose]] granjure.control.arrow [granjure.control.arrow.choice :exclude [left right]] granjure.control.functor ...
105ffb5f273dc2b3cfa38eeb18736080a37e95c3d26f7ac6c94ded8d491ca216
maoe/lzma
xz-seek.hs
# LANGUAGE DataKinds # # LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # module Main where import Control.Monad import System.Environment import System.IO import Control.Monad.Trans (MonadIO(..)) import Data.ByteString.Lazy.Internal (defaultChunkSize) import Pipes.Core import qualified Data.ByteString as S impo...
null
https://raw.githubusercontent.com/maoe/lzma/f567015a2ed07ab0c5c766de7d9cee7fc40911f7/examples/xz-seek.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # module Main where import Control.Monad import System.Environment import System.IO import Control.Monad.Trans (MonadIO(..)) import Data.ByteString.Lazy.Internal (defaultChunkSize) import Pipes.Core import qualified Data.ByteString as S impo...
a9b7fd65f376f7f7a3576ca8d32b30d4de59e6ccb04b8537e16013f9dad07667
Gbury/archsat
position.mli
This file is free software , part of Archsat . See file " LICENSE " for more details . * { 2 Positions } type t (** The type of positions. *) val equal : t -> t -> bool (** Equality on positions. *) val compare : t -> t -> int * Compare two positions . val print : Format.formatter -> t -> unit (** Print position...
null
https://raw.githubusercontent.com/Gbury/archsat/322fbefa4a58023ddafb3fa1a51f8199c25cde3d/src/base/position.mli
ocaml
* The type of positions. * Equality on positions. * Print positions. * The root position. * [arg i t] returns the position obtained by inspecting the [i]-th argument of an application, and then following the path [t]. Argument numbering starts at 0, i.e. the same as for arrays @raise Invalid_argument if...
This file is free software , part of Archsat . See file " LICENSE " for more details . * { 2 Positions } type t val equal : t -> t -> bool val compare : t -> t -> int * Compare two positions . val print : Format.formatter -> t -> unit val root : t val arg : int -> t -> t val follow : t -> int -> t val path :...
870c2e1cde56193149a80316a6fa5e628c51beba1c0da7cdf419b2248d81288a
huangz1990/SICP-answers
46-fixed-point.scm
46-fixed-point.scm (load "46-iterative-improve.scm") (define (fixed-point f first-guess) (define tolerance 0.00001) (define (close-enough? v1 v2) (< (abs (- v1 v2)) tolerance)) (define (improve guess) (f guess)) ((iterative-improve close-enough? improve) first-guess))
null
https://raw.githubusercontent.com/huangz1990/SICP-answers/15e3475003ef10eb738cf93c1932277bc56bacbe/chp1/code/46-fixed-point.scm
scheme
46-fixed-point.scm (load "46-iterative-improve.scm") (define (fixed-point f first-guess) (define tolerance 0.00001) (define (close-enough? v1 v2) (< (abs (- v1 v2)) tolerance)) (define (improve guess) (f guess)) ((iterative-improve close-enough? improve) first-guess))
4efbe9e43d5fc166b70333e15987964767e6a7dc94d74d5338ba1991784d3a3f
higherkindness/mu-haskell
ProtoBuf.hs
# language AllowAmbiguousTypes # # language CPP # {-# language ConstraintKinds #-} # language DataKinds # # language FlexibleContexts # # language FlexibleInstances # # language GADTs # # language MultiParamTypeClasses # # language OverloadedStrings ...
null
https://raw.githubusercontent.com/higherkindness/mu-haskell/6c809a1adc504b87c7f06d7ea125238bbdf48d96/adapter/protobuf/src/Mu/Adapter/ProtoBuf.hs
haskell
# language ConstraintKinds # # language ScopedTypeVariables # # OPTIONS_GHC -fno-warn-orphans # * Custom annotations * Conversion using schemas * Conversion using registry | Annotations for Protocol Buffers fields. | Numeric field identifier for normal fields and whether it should be packed (only used f...
# language AllowAmbiguousTypes # # language CPP # # language DataKinds # # language FlexibleContexts # # language FlexibleInstances # # language GADTs # # language MultiParamTypeClasses # # language OverloadedStrings # # language PolyKinds ...
2cb198fcd58099584338ce7ed542fddaa6a2b0c7e0abd12f6d0a5f64d1f40f34
emqx/emqx
emqx_request_handler.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2019 - 2023 EMQ Technologies Co. , Ltd. 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 o...
null
https://raw.githubusercontent.com/emqx/emqx/dbc10c2eed3df314586c7b9ac6292083204f1f68/apps/emqx/test/emqx_request_handler.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2019 - 2023 EMQ Technologies Co. , Ltd. 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(emqx_request_handler). -export([start_link/4, stop/1]). -include_lib("emqx/include/emq...
133dbbc7a7af059c1f3e8317ebbfe9ad27131326dfb047079d05241e159a7aad
chrisnc/tangaroa
Server.hs
module Main ( main ) where import Network.Tangaroa.Spec.Simple import Data.IORef import Data.Map (Map) import qualified Data.Map as Map import Command applyCommand :: IORef (Map String String) -> CommandType -> IO ResultType applyCommand ref cmd = do case cmd of Insert k v -> runInsert ref k v Delete ...
null
https://raw.githubusercontent.com/chrisnc/tangaroa/5dc68d9de0bdc23506e58f86357576f2c4a0c178/bin/Simple/Server.hs
haskell
adds a new mapping, and fails if a mapping already exists like insert, but instead fails if a mapping doesn't exist gets the value for a key, fails if it doesn't exist removes the mapping for a key, fails if it doesn't exist
module Main ( main ) where import Network.Tangaroa.Spec.Simple import Data.IORef import Data.Map (Map) import qualified Data.Map as Map import Command applyCommand :: IORef (Map String String) -> CommandType -> IO ResultType applyCommand ref cmd = do case cmd of Insert k v -> runInsert ref k v Delete ...
b763684cbae8bf3e7270c894b9ea1ea3a702afafad2e808ca1a9bcadc2a42110
acieroid/scala-am
pcounter14.scm
(letrec ((counter 0) (thread (lambda (n) (letrec ((old counter) (new (+ old 1))) (if (cas counter old new) #t (thread n))))) (t1 (fork (thread 1))) (t2 (fork (thread 2))) (t3 (fork (thread 3)))...
null
https://raw.githubusercontent.com/acieroid/scala-am/13ef3befbfc664b77f31f56847c30d60f4ee7dfe/test/concurrentScheme/threads/variations/pcounter14.scm
scheme
(letrec ((counter 0) (thread (lambda (n) (letrec ((old counter) (new (+ old 1))) (if (cas counter old new) #t (thread n))))) (t1 (fork (thread 1))) (t2 (fork (thread 2))) (t3 (fork (thread 3)))...
f2275cc7f0459af5738dddab7104e9218a293d0b8022c7544f8f5d8c9425ae79
zarkone/stumpwm.d
numpad-layouts.lisp
;;;; numpad-layouts.lisp (in-package #:numpad-layouts) (export '(set-numpad-layout)) (defparameter *layouts* '((us . ((87 10 . 16) (88 11 . 16) (89 12 . 16) (106 61 . 16) (83 13 . 16) (84 14 . 16) (85 15 . 16) (86 21 . 17) (79 16 . 16) (80 17 . 16) (81 18 . 16) (63 17 . 17) (82 20...
null
https://raw.githubusercontent.com/zarkone/stumpwm.d/021e51c98a80783df1345826ac9390b44a7d0aae/modules/util/numpad-layouts/numpad-layouts.lisp
lisp
numpad-layouts.lisp
(in-package #:numpad-layouts) (export '(set-numpad-layout)) (defparameter *layouts* '((us . ((87 10 . 16) (88 11 . 16) (89 12 . 16) (106 61 . 16) (83 13 . 16) (84 14 . 16) (85 15 . 16) (86 21 . 17) (79 16 . 16) (80 17 . 16) (81 18 . 16) (63 17 . 17) (82 20 . 16) (104 36 . 16) (91 ...
9c6a7bb43cd316625e84b525a5283093efc1d76a2b32975bf4a8e467f140bc33
joaotavora/sly
slynk-source-file-cache.lisp
;;;; Source-file cache ;;; To robustly find source locations in CMUCL and SBCL it 's useful to ;;; have the exact source code that the loaded code was compiled from. ;;; In this source we can accurately find the right location, and from ;;; that location we can extract a "snippet" of code to show what the definitio...
null
https://raw.githubusercontent.com/joaotavora/sly/5966d68727898fa6130fb6bb02208f70aa8d5ce3/slynk/slynk-source-file-cache.lisp
lisp
Source-file cache have the exact source code that the loaded code was compiled from. In this source we can accurately find the right location, and from that location we can extract a "snippet" of code to show what the search to locate the right definition, which works well even if the buffer has been modified. ...
To robustly find source locations in CMUCL and SBCL it 's useful to definition looks like . Emacs can use this snippet in a best - match (defpackage slynk-source-file-cache (:use cl slynk-backend) (:import-from slynk-backend defimplementation buffer-first-change) (:export get-source-code *source-sni...
3b621edb06090759848ff65466a1d197fbc36bbf80a371cad12187c332248476
lspitzner/brittany
Test255.hs
# LANGUAGE QuasiQuotes # func = [blub| asd qwe |]
null
https://raw.githubusercontent.com/lspitzner/brittany/a15eed5f3608bf1fa7084fcf008c6ecb79542562/data/Test255.hs
haskell
# LANGUAGE QuasiQuotes # func = [blub| asd qwe |]
64c91f1e7bb37921456f3d13c1c06951d857f14da925f5f7ec116f9fc1b9d41f
DSTOQ/haskell-stellar-sdk
Parser.hs
module Stellar.Parser where import Data.Bifunctor (bimap) import Data.Binary (Binary) import qualified Data.Binary as Binary import qualified Data.ByteString.Base64.Lazy as B64 import Data.String (String) import Data.T...
null
https://raw.githubusercontent.com/DSTOQ/haskell-stellar-sdk/82a76c2f951a2aaabdc38092fdc89044b278c53d/client/src/Stellar/Parser.hs
haskell
module Stellar.Parser where import Data.Bifunctor (bimap) import Data.Binary (Binary) import qualified Data.Binary as Binary import qualified Data.ByteString.Base64.Lazy as B64 import Data.String (String) import Data.T...
08bc02d66cb85a56c7d5ddf18246fc61ccb3eeeca076194338635a0415693544
mmontone/cl-gradual
package.lisp
(defpackage gradual (:use :cl :cl-walker :anaphora :alexandria :mw-equiv) (:export :fun-type :var-type :return-type :defun-type :typecheck :typecheck-everything :infer-type :fun :gradual-type-error ;; Types :alist :plist))
null
https://raw.githubusercontent.com/mmontone/cl-gradual/f8c0d992e2886a3fa37e49d9de772391961f234c/package.lisp
lisp
Types
(defpackage gradual (:use :cl :cl-walker :anaphora :alexandria :mw-equiv) (:export :fun-type :var-type :return-type :defun-type :typecheck :typecheck-everything :infer-type :fun :gradual-type-error :alist :plist))
68b450fef335d94c88a1644cb1323f8f4ffe03b2bc4d0146a06877c1c55b442f
eeng/shevek
api_test.clj
(ns shevek.dashboards.api-test (:require [clojure.test :refer [deftest testing is use-fixtures]] [shevek.test-helper :refer [it wrap-unit-tests]] [shevek.dashboards.api :as api] [shevek.dashboards.repository :as r] [shevek.db :refer [db]] [shevek.makers :ref...
null
https://raw.githubusercontent.com/eeng/shevek/7783b8037303b8dd5f320f35edee3bfbb2b41c02/test/clj/shevek/dashboards/api_test.clj
clojure
(ns shevek.dashboards.api-test (:require [clojure.test :refer [deftest testing is use-fixtures]] [shevek.test-helper :refer [it wrap-unit-tests]] [shevek.dashboards.api :as api] [shevek.dashboards.repository :as r] [shevek.db :refer [db]] [shevek.makers :ref...
0981deede05c8743ed98bc9cb9871883e08a9486037c4477a3145fcf24465362
davexunit/guile-2d
gl.scm
;;; guile-2d Copyright ( C ) 2013 > ;;; ;;; Guile-2d 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. ;;; ;;; Guile-2d...
null
https://raw.githubusercontent.com/davexunit/guile-2d/83d9dfab5b04a337565cb2798847b15e4fbd7786/2d/wrappers/gl.scm
scheme
guile-2d Guile-2d is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as License, or (at your option) any later version. Guile-2d is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER...
Copyright ( C ) 2013 > published by the Free Software Foundation , either version 3 of the You should have received a copy of the GNU Lesser General Public FIGL . (define-module (2d wrappers gl) #:use-module (figl runtime) #:use-module ((figl gl low-level) #:renamer (symbol-prefix-proc '%)) #:export...
5f9682f20c3e39f6321acf7da57fab62964a7bacc104ac1af2f4f0382310f860
openmusic-project/OMChroma
smpl-a3.lisp
;****************************************************************** ; CLASS SMPL-a3 ;****************************************************************** (in-package :om) ; LISP-DEFINED CLASSES SHOULD RESIDE IN THE LIBRARY'S PACKAGE AND ; NOT IN THE USER PACKAGE, WHICH CONTAINS ALL THE CLASSES ; GRAPHICALLY ...
null
https://raw.githubusercontent.com/openmusic-project/OMChroma/5ded34f22b59a1a93ea7b87e182c9dbdfa95e047/sources/om6/cs-events/csound/classes/Advanced/smpl-a3.lisp
lisp
****************************************************************** CLASS SMPL-a3 ****************************************************************** LISP-DEFINED CLASSES SHOULD RESIDE IN THE LIBRARY'S PACKAGE AND NOT IN THE USER PACKAGE, WHICH CONTAINS ALL THE CLASSES GRAPHICALLY DEFINED INHERIT FROM CS-...
(in-package :om) (defclass! smpl-a3 ( THE METHOD BELOW TRANSFORMS THEM INTO GLOBAL SLOTS ( " SHOW " UNCHEKED ) ( source-code :initform (load-buffer-textfile (get-orc-source (get-orc "smpl-a3")) 'textfile "append") :allocation :class ...
075af7f85a71fcbf23a655553a6caabcc2f0be48a0764ee3a3c2627b54723118
armedbear/abcl
clos-tests.lisp
;;; clos-tests.lisp ;;; Copyright ( C ) 2010 ;;; ;;; This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . ;;; ;;; Thi...
null
https://raw.githubusercontent.com/armedbear/abcl/36a4b5994227d768882ff6458b3df9f79caac664/test/lisp/abcl/clos-tests.lisp
lisp
clos-tests.lisp This program is free software; you can redistribute it and/or either version 2 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...
Copyright ( C ) 2010 modify it under the terms of the GNU General Public License of the License , or ( at your option ) any later version . You should have received a copy of the GNU General Public License Foundation , Inc. , 59 Temple Place - Suite 330 , Boston , MA 02111 - 1307 , USA . (in-package #...
acecb42b3d036e688466c7f70a3713762923131e294d9158fa871eb3357994ec
naxels/youtube-channel-data
output.clj
(ns youtube-channel-data.output (:require [clojure.data.json :as json] [clojure.java.io :as io] [youtube-channel-data.utils :as u] [csv-exporter.core :as csv]) (:import [java.time.format DateTimeFormatter] [java.io File])) (set! *warn-on-reflection* true) (def suppor...
null
https://raw.githubusercontent.com/naxels/youtube-channel-data/640125c0bb243c6d233db10c037d70ba80ecca25/src/youtube_channel_data/output.clj
clojure
; Output map closure (defn output-map-builder [video-durations-map] (fn [{v :snippet}] (let [video-id (get-in v [:resourceId :videoId])] {}))) Output map Playlist-item Playlist-item Playlist-item Playlist-item Video Video
(ns youtube-channel-data.output (:require [clojure.data.json :as json] [clojure.java.io :as io] [youtube-channel-data.utils :as u] [csv-exporter.core :as csv]) (:import [java.time.format DateTimeFormatter] [java.io File])) (set! *warn-on-reflection* true) (def suppor...
68b557c3b31fcd8d9b35693228d5d6a266ba491b95abb0d124ee8e4b34d04043
roburio/webauthn
webauthn_demo.ml
open Lwt.Infix let users : (string, string * (Mirage_crypto_ec.P256.Dsa.pub * string * X509.Certificate.t option) list) Hashtbl.t = Hashtbl.create 7 let find_username username = Hashtbl.fold (fun id v r -> if String.equal (fst v) username then Some (id, v) else r) users None module KhPubHashtbl = Hashtbl.M...
null
https://raw.githubusercontent.com/roburio/webauthn/9c2e24365db05ce5a7a56129c8e48d14260b1864/bin/webauthn_demo.ml
ocaml
open Lwt.Infix let users : (string, string * (Mirage_crypto_ec.P256.Dsa.pub * string * X509.Certificate.t option) list) Hashtbl.t = Hashtbl.create 7 let find_username username = Hashtbl.fold (fun id v r -> if String.equal (fst v) username then Some (id, v) else r) users None module KhPubHashtbl = Hashtbl.M...
709611f25941292e803efe3bb2271f02558e0e4f056bec5aebccd11f65f49fbf
bellissimogiorno/nominal
AbsSpec.hs
module Language.Nominal.AbsSpec ( spec ) where import Test.Hspec import Test.QuickCheck import Language.Nominal.Properties.SpecUtilities () import Language.Nominal.Properties.AbsSpec spec :: Spec spec = do it "fuse a.x a.x' = a.(x,x')" $ property prop_fuse it "n # x => [n](x @ n) = x" $ property pr...
null
https://raw.githubusercontent.com/bellissimogiorno/nominal/ab3306ee349dc481d2e2e6d103d90ffdd14ccaa9/test/Language/Nominal/AbsSpec.hs
haskell
module Language.Nominal.AbsSpec ( spec ) where import Test.Hspec import Test.QuickCheck import Language.Nominal.Properties.SpecUtilities () import Language.Nominal.Properties.AbsSpec spec :: Spec spec = do it "fuse a.x a.x' = a.(x,x')" $ property prop_fuse it "n # x => [n](x @ n) = x" $ property pr...
8737d4f5dd6494bc19d086a8ca02ba51b10b97569677e4e1622909d74ec4cebf
tmattio/spin
dec_template.ml
open Dec_common let decoder_error ~msg sexp = Error (Decoder.Decoder_error (msg, Some sexp)) module Description = struct type t = string let decode = Decoder.string end module Base_template = struct module Errors = struct let invalid_overwite = {|The overwite does not exist. Supported overwrites are...
null
https://raw.githubusercontent.com/tmattio/spin/e9955109659d5246a492b6b1312a4c3eb001e86b/lib/spin/decoders/dec_template.ml
ocaml
open Dec_common let decoder_error ~msg sexp = Error (Decoder.Decoder_error (msg, Some sexp)) module Description = struct type t = string let decode = Decoder.string end module Base_template = struct module Errors = struct let invalid_overwite = {|The overwite does not exist. Supported overwrites are...
c8c402cd11086f773f0fb1b998f876cce0a72879d8acd5f26ab848713820d78b
LexiFi/landmarks
test.ml
let x = (2+2)[@landmark "four"] let () = begin ignore (3 + 4) end[@landmark "seven"] let () = (begin let _ = [||] in () end)[@landmark "main"] let[@landmark "unit"] () = let[@landmark] main () = () in main () let () = let open Landmark in if profiling () then begin let open Landmark.Graph i...
null
https://raw.githubusercontent.com/LexiFi/landmarks/ea90c657f39d03d14d892732ad58123711eb9457/tests/ppx-lets/test.ml
ocaml
let x = (2+2)[@landmark "four"] let () = begin ignore (3 + 4) end[@landmark "seven"] let () = (begin let _ = [||] in () end)[@landmark "main"] let[@landmark "unit"] () = let[@landmark] main () = () in main () let () = let open Landmark in if profiling () then begin let open Landmark.Graph i...
99ce2232fc71677f72a03913464db3d3663ea4e1495f4314e09abd7cbdd220b5
2600hz/kazoo
api_util.erl
%%%----------------------------------------------------------------------------- ( C ) 2012 - 2020 , 2600Hz %%% @doc Crossbar REST-related functions. @author @author @author %%% 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 distrib...
null
https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/applications/crossbar/src/api_util.erl
erlang
----------------------------------------------------------------------------- @doc Crossbar REST-related functions. @end ----------------------------------------------------------------------------- limit the whole payload/file size ------------------------------------------------------------------------------ @d...
( C ) 2012 - 2020 , 2600Hz @author @author @author 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(api_util). -export([is_cors_preflight/1 ,is_cors_request/1 ...
1c9833c4f0b2e1b1fd9ba2050b6371c53029860c030fc98d68670b06263290af
TouK/re-cms
handler.clj
(ns re-cms.handler (:require [compojure.core :refer [GET defroutes]] [ring.util.response :refer [file-response]])) (defroutes handler (GET "/" [] (file-response "index.html" {:root "resources/public"})))
null
https://raw.githubusercontent.com/TouK/re-cms/98b54e79c349b5db7f8b3a6d30348c23bbe65a2e/src/clj/re_cms/handler.clj
clojure
(ns re-cms.handler (:require [compojure.core :refer [GET defroutes]] [ring.util.response :refer [file-response]])) (defroutes handler (GET "/" [] (file-response "index.html" {:root "resources/public"})))
5308fd602e3c3dba84be7c4153292b1f2b07626b2077e3c564eefdcf95b3316f
RedPRL/redtt
Typing.mli
type value = Domain.value type cx = Cx.t module Error : sig type t exception E of t val pp : t Pp.t0 end val check_ : cx -> value -> Domain.val_sys -> Tm.tm -> unit val check : cx -> value -> Tm.tm -> unit val infer : cx -> Tm.tm Tm.cmd -> value val check_tm_sys : cx -> value -> (Tm.tm, Tm.tm) Tm.system -> un...
null
https://raw.githubusercontent.com/RedPRL/redtt/50689559ff970e33013b8cf8a3bbc8be18ec4e09/src/core/Typing.mli
ocaml
type value = Domain.value type cx = Cx.t module Error : sig type t exception E of t val pp : t Pp.t0 end val check_ : cx -> value -> Domain.val_sys -> Tm.tm -> unit val check : cx -> value -> Tm.tm -> unit val infer : cx -> Tm.tm Tm.cmd -> value val check_tm_sys : cx -> value -> (Tm.tm, Tm.tm) Tm.system -> un...
49d9dbf9a83568422d1e113605eb3ff45c037f1545f6346f60d225877d759294
vagarenko/static-tensor
Inverse.hs
# LANGUAGE TypeApplications # {-# LANGUAGE TypeInType #-} module CoreDump.Matrix.Inverse where import Data.Matrix.Static import TensorInstances () inverse_ :: Matrix 4 4 Float -> Matrix 4 4 Float inverse_ = inverse
null
https://raw.githubusercontent.com/vagarenko/static-tensor/8409d281707c23f3fe2028e926f1d4e8f7a9bc2d/tests/CoreDump/Matrix/Inverse.hs
haskell
# LANGUAGE TypeInType #
# LANGUAGE TypeApplications # module CoreDump.Matrix.Inverse where import Data.Matrix.Static import TensorInstances () inverse_ :: Matrix 4 4 Float -> Matrix 4 4 Float inverse_ = inverse
834e5c67c8f09cc8d657a8fd8f6b4f6e65ad0bcfc6972b0abf57bc9c7be6a9ac
yogthos/krueger
messages.cljs
(ns krueger.pages.messages (:require [cljsjs.semantic-ui-react :as ui] [reagent.core :as r] [re-frame.core :as rf] [kee-frame.core :as kf] [krueger.common :refer [match-route]] [krueger.terminology :refer [term]] [krueger.components.widgets :as widgets])) (rf/reg-sub ::messages (fn [d...
null
https://raw.githubusercontent.com/yogthos/krueger/782e1f8ab358867102b907c5a80e56ee6bc6ff82/src/cljs/krueger/pages/messages.cljs
clojure
todo figure out for dynamic routes (kf/path-for [:post])
(ns krueger.pages.messages (:require [cljsjs.semantic-ui-react :as ui] [reagent.core :as r] [re-frame.core :as rf] [kee-frame.core :as kf] [krueger.common :refer [match-route]] [krueger.terminology :refer [term]] [krueger.components.widgets :as widgets])) (rf/reg-sub ::messages (fn [d...
2276debe76824d75715b718bc6a1332b198b4dd4042061de7e340d32b8025eb9
cubicle-model-checker/cubicle
smt_sig.mli
(**************************************************************************) (* *) Cubicle (* *) ...
null
https://raw.githubusercontent.com/cubicle-model-checker/cubicle/00f09bb2d4bb496549775e770d7ada08bc1e4866/smt/smt_sig.mli
ocaml
************************************************************************ ...
Cubicle Copyright ( C ) 2011 - 2014 and Universite Paris - Sud 11 This file is distributed under the terms ...
c2d737701c123449da33f0f899ca3bd496c8ea8451c60a3a101fb483f90c04b8
THISISDINOSAUR/Anatomy
string.rkt
#lang racket (provide (all-defined-out)) (require "parameter.rkt" "structs/point.rkt" "structs/polygon-tree.rkt") (define indent " ") (define (point->description-string point1) (string-append "[" (~a (point-x point1)) ", " (~a (point-y point1)) ", " (~a (point-z point1)) "]")) (define (point->description-strin...
null
https://raw.githubusercontent.com/THISISDINOSAUR/Anatomy/883aa140c41cd375575a2944bda79608c660935b/string.rkt
racket
#lang racket (provide (all-defined-out)) (require "parameter.rkt" "structs/point.rkt" "structs/polygon-tree.rkt") (define indent " ") (define (point->description-string point1) (string-append "[" (~a (point-x point1)) ", " (~a (point-y point1)) ", " (~a (point-z point1)) "]")) (define (point->description-strin...
4128eafcf2585a1cf325c8b1fad746630896af37750e811786930beab6e01551
gsakkas/rite
20060323-23:27:42-7911ad31a60a0c09a7cb35ea3b402363.seminal.ml
exception Unimplemented exception AlreadyDone (*** part a ***) type move = Home | Forward of float | Turn of float | For of (int * move list) (*** part b ***) let makePoly sides len = For(sides, (Forward(len)::Turn(2.0 *. Pi /. sides))) (*** part c ***) let interpLarge (movelist : move list) : (float*flo...
null
https://raw.githubusercontent.com/gsakkas/rite/958a0ad2460e15734447bc07bd181f5d35956d3b/features/data/seminal/20060323-23%3A27%3A42-7911ad31a60a0c09a7cb35ea3b402363.seminal.ml
ocaml
** part a ** ** part b ** ** part c ** ** part d ** ** part e ** ** part f ** ** possibly helpful testing code **
exception Unimplemented exception AlreadyDone type move = Home | Forward of float | Turn of float | For of (int * move list) let makePoly sides len = For(sides, (Forward(len)::Turn(2.0 *. Pi /. sides))) let interpLarge (movelist : move list) : (float*float) list = let rec loop movelist x y dir acc = ...
e282296004c3dbce182c6ee968991799cdf81bce9dfc7bde48e9153aac2b8da4
Quid2/zm
Types.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveFunctor # # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleInstances # # LANGUAGE InstanceSigs # # LANGUAGE MultiParamTypeClasses # # LANGUAGE PatternSynonyms # {-# LANGUAGE RankNTypes #-} # LANGUAGE StandaloneDeriving # # LANGUAGE UndecidableInstances # module ZM.Parser.T...
null
https://raw.githubusercontent.com/Quid2/zm/b1ae01cdf881a29987aa5e62035c5278a78b80d3/src/ZM/Parser/Types.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE RankNTypes # hiding (Value) TODO: generalise to any textual type TODO: Convert to These l AbsRef TypeName l (Maybe AbsRef) localName (TypeName l _) = l asQualName (TypeName l Nothing) = QualName "" "" (prettyShow l) instance Pretty n => Pretty (TypeName n) where...
# LANGUAGE DeriveFunctor # # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleInstances # # LANGUAGE InstanceSigs # # LANGUAGE MultiParamTypeClasses # # LANGUAGE PatternSynonyms # # LANGUAGE StandaloneDeriving # # LANGUAGE UndecidableInstances # module ZM.Parser.Types ( Parser, ADTParts (..), asTypeName, ha...
1a8f0048a9a0dcd253ca53fbe7ba15a8492b3b36f6ecbae02c1682949523230a
cojna/iota
RangeAddRangeSumSpec.hs
# LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module Data.SegTree.RangeAddRangeSumSpec where import Data.Monoid.RangedSum import Data.Monoid.RangedSumSpec () import Data.SegTree.RangeAddRangeSum () import Data.Semigroup import Test.Prelude import Test.Prop.MonoidAction (monoidActionSpec) main :: IO ...
null
https://raw.githubusercontent.com/cojna/iota/a64e8c5e4dd4f92e5ed3fcd0413be94ef1108f9e/test/Data/SegTree/RangeAddRangeSumSpec.hs
haskell
# LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module Data.SegTree.RangeAddRangeSumSpec where import Data.Monoid.RangedSum import Data.Monoid.RangedSumSpec () import Data.SegTree.RangeAddRangeSum () import Data.Semigroup import Test.Prelude import Test.Prop.MonoidAction (monoidActionSpec) main :: IO ...
d512bc356c033a56d2aa717d184287946fe21cdbcad1e892b6de6867b2a8332e
marick/Midje
t_fakes.clj
(ns midje.parsing.2-to-lexical-maps.t-fakes (:require [midje.sweet :refer :all] [midje.test-util :refer :all] [midje.parsing.2-to-lexical-maps.fakes :refer :all] [midje.util :refer :all])) (silent-fact "check line number and file position of t_fakes errors" (f) => 0 (provided ...
null
https://raw.githubusercontent.com/marick/Midje/f4beecad69b3b20f87b66dac323ccae63723f384/test/midje/parsing/2_to_lexical_maps/t_fakes.clj
clojure
for example
(ns midje.parsing.2-to-lexical-maps.t-fakes (:require [midje.sweet :refer :all] [midje.test-util :refer :all] [midje.parsing.2-to-lexical-maps.fakes :refer :all] [midje.util :refer :all])) (silent-fact "check line number and file position of t_fakes errors" (f) => 0 (provided ...
545983d59219d27d50e566fc1c876090745073affa09bed105e24072db4b7800
pgj/mirage-kfreebsd
callback.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/pgj/mirage-kfreebsd/0ff5b2cd7ab0975e3f2ee1bd89f8e5dbf028b102/packages/mirage-stdlib/src/callback.ml
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with $ I d : callback.ml 6044 2003 - 12 - ...
1aebbd4d9c10fd425d413f4f234c1a4e5c133297ce20c7b7607fc021d661e97c
mzp/coq-ide-for-ios
gset.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/mzp/coq-ide-for-ios/4cdb389bbecd7cdd114666a8450ecf5b5f0391d3/coqlib/lib/gset.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** Sets using the generic comparison f...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * $ I d : gset.ml 13323 2010 ...
c953774913526e9f8fe6421d93033a37306db67db7285876883ee30482839f0c
erlymon/erlymon
em_converter.erl
%%%------------------------------------------------------------------- @author ( C ) 2015 , < > %%% @doc Erlymon is an open source GPS tracking system for various GPS tracking devices . %%% Copyright ( C ) 2015 , < > . %%% This file is part of Erlymon . %%% Erlymon is free software : yo...
null
https://raw.githubusercontent.com/erlymon/erlymon/2250619783d6da1e33a502911a8fa52ce016c094/apps/erlymon/src/em_converter/em_converter.erl
erlang
------------------------------------------------------------------- @doc but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the along with this program. If not, see </>. @end -------------------------------------------------------...
@author ( C ) 2015 , < > Erlymon is an open source GPS tracking system for various GPS tracking devices . Copyright ( C ) 2015 , < > . This file is part of Erlymon . Erlymon is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Publ...
2eebcb6226f29ff29113c4b65048cb994f3b4182a3dd6bfeaa1b0b2788bd33d5
eskimor/purescript-bridge
CodeGenSwitches.hs
-- | General switches for the code generation, such as generating profunctor-lenses or not module Language.PureScript.Bridge.CodeGenSwitches ( Settings (..) , ForeignOptions(..) , defaultSettings , Switch , getSettings , defaultSwitch , noLenses, genLenses , useGen, useGenRep , genFo...
null
https://raw.githubusercontent.com/eskimor/purescript-bridge/b5b71f1864e58021ed3e850559f7b82ed9916e3e/src/Language/PureScript/Bridge/CodeGenSwitches.hs
haskell
| General switches for the code generation, such as generating profunctor-lenses or not | General settings for code generation ^generate generics using purescript-generics-rep instead of purescript-generics | Settings to generate Lenses | you can `mappend` switches to control the code generation | Translate switc...
module Language.PureScript.Bridge.CodeGenSwitches ( Settings (..) , ForeignOptions(..) , defaultSettings , Switch , getSettings , defaultSwitch , noLenses, genLenses , useGen, useGenRep , genForeign, noForeign, noArgonautCodecs , genArgonautCodecs ) where import D...
d19c3eb6fbc87c754f1b382900afd5337c9fff3e4ee6c13ba73f85b76bd1a57a
nyu-acsys/drift
nested_loop.ml
(* From: SV-COMP 2020 nested-1.c -lab/sv-benchmarks/tree/master/c/loop-new *) let rec loopa (aj:int) (am:int) (ak:int) = if aj >= am then ak else loopa (aj + 1) am (ak + 1) let rec loopb (bi:int) (bn:int) (bm:int) (bk:int) = if bi >= bn then bk else let rk = loopa 0 bm bk in loopb (bi + 1) bn bm rk let ma...
null
https://raw.githubusercontent.com/nyu-acsys/drift/51a3160d74b761626180da4f7dd0bb950cfe40c0/tests/benchmarks_call/DRIFT/first/nested_loop.ml
ocaml
From: SV-COMP 2020 nested-1.c -lab/sv-benchmarks/tree/master/c/loop-new
let rec loopa (aj:int) (am:int) (ak:int) = if aj >= am then ak else loopa (aj + 1) am (ak + 1) let rec loopb (bi:int) (bn:int) (bm:int) (bk:int) = if bi >= bn then bk else let rk = loopa 0 bm bk in loopb (bi + 1) bn bm rk let main_p (n:int) (m:int) = if n < 10 || n > 10000 then () else if m < 10 || m > ...
97c46136294964e75791590e418cdc4b4f4e560cc91375ed26bc95ce7f05a37a
project-oak/hafnium-verification
control.mli
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
null
https://raw.githubusercontent.com/project-oak/hafnium-verification/6071eff162148e4d25a0fedaea003addac242ace/experiments/ownership-inference/infer/sledge/src/control.mli
ocaml
* The analysis' semantics of control flow. * Loop/recursion unrolling bound * Treat throw as unreachable * Use function summarisation
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
78901ecabfb14ccf8d8808e50a29310a81e64b4efcf4a4cc3cb4784f5f22b751
janestreet/async_unix
thread_safe_pipe.mli
(** A thread-safe pipe is a thread-safe interface to the write end of a normal [Async.Pipe]. {b All operations except for [create] must be called from threads outside Async}, while [create] can be called from inside or outside Async. For [Pipe] functions that return a [unit Deferred.t], the analog in [Thr...
null
https://raw.githubusercontent.com/janestreet/async_unix/2562a6b9316d7c6757726305482380bd7e6dba06/thread_safe_pipe/src/thread_safe_pipe.mli
ocaml
* A thread-safe pipe is a thread-safe interface to the write end of a normal [Async.Pipe]. {b All operations except for [create] must be called from threads outside Async}, while [create] can be called from inside or outside Async. For [Pipe] functions that return a [unit Deferred.t], the analog in [Threa...
open! Core open! Async_kernel open! Import type 'a t [@@deriving sexp_of] * [ create ( ) ] returns a reader end , which must be used inside Async , and a writer end , which must be used outside Async . [ create ] can be called inside or outside Async . which must be used outside Async. [create] can be c...
3bdce7c753b7979c8a66e44c99dd48b02af8b7a2b87dd161dcab90d1fea6fa5b
bobot/FetedelascienceINRIAsaclay
ida.ml
File : ida.ml Copyright ( C ) 2008 < > WWW : / This library is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2.1 or later as published by the Free Software Foundation , with the special exception on linki...
null
https://raw.githubusercontent.com/bobot/FetedelascienceINRIAsaclay/87765db9f9c7211a26a09eb93e9c92f99a49b0bc/2010/robot/examples_mindstorm_lab/rubik/ida.ml
ocaml
* Iterative deepening A* algorithm. let dir = None Return a list of possible paths (added to the already existing solutions [sols]). sol found skip move prune Local Variables: End:
File : ida.ml Copyright ( C ) 2008 < > WWW : / This library is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2.1 or later as published by the Free Software Foundation , with the special exception on linki...
3403e9233d1b16d682b11bdf23df7556d9600cbb18913d66ced928cdd7e5c3f1
samrushing/irken-compiler
t_anno2.scm
(define (thing a b) : (char int -> {a=char b=int}) {a=a b=b} ) (thing #\a 12)
null
https://raw.githubusercontent.com/samrushing/irken-compiler/690da48852d55497f873738df54f14e8e135d006/tests/t_anno2.scm
scheme
(define (thing a b) : (char int -> {a=char b=int}) {a=a b=b} ) (thing #\a 12)
35d4fe112170c526a1a5234b6bee8162aa2cc36af4f60b9027e31f231ee0cd11
seabre/inviteyoself
middleware.clj
(ns inviteyoself.middleware (:require [taoensso.timbre :as timbre] [selmer.parser :as parser] [environ.core :refer [env]] [selmer.middleware :refer [wrap-error-page]] [prone.middleware :refer [wrap-exceptions]] [noir-exception.core :refer [wrap-internal-erro...
null
https://raw.githubusercontent.com/seabre/inviteyoself/53356aa400384a0df38621a489fc2d94dfc15362/src/inviteyoself/middleware.clj
clojure
(ns inviteyoself.middleware (:require [taoensso.timbre :as timbre] [selmer.parser :as parser] [environ.core :refer [env]] [selmer.middleware :refer [wrap-error-page]] [prone.middleware :refer [wrap-exceptions]] [noir-exception.core :refer [wrap-internal-erro...
01aef2367253050f2899582c50a081f21372c9b1c11837f20c51eb902d205a1f
slipstream/SlipStreamServer
configuration_template_session_oidc.clj
(ns com.sixsq.slipstream.ssclj.resources.configuration-template-session-oidc (:require [com.sixsq.slipstream.ssclj.resources.common.utils :as u] [com.sixsq.slipstream.ssclj.resources.configuration-template :as p] [com.sixsq.slipstream.ssclj.resources.spec.configuration-template-session-oidc :as cts-oidc])...
null
https://raw.githubusercontent.com/slipstream/SlipStreamServer/3ee5c516877699746c61c48fc72779fe3d4e4652/cimi/src/com/sixsq/slipstream/ssclj/resources/configuration_template_session_oidc.clj
clojure
resource description multimethods for validation initialization: register this Configuration template
(ns com.sixsq.slipstream.ssclj.resources.configuration-template-session-oidc (:require [com.sixsq.slipstream.ssclj.resources.common.utils :as u] [com.sixsq.slipstream.ssclj.resources.configuration-template :as p] [com.sixsq.slipstream.ssclj.resources.spec.configuration-template-session-oidc :as cts-oidc])...
9be95cc9c05c86f8c4853e0b0c44d44dbddcf3b0fbd76be8b9a183d4e2d1fa6f
haskell-tls/hs-tls
DH.hs
module Network.TLS.Crypto.DH ( -- * DH types DHParams , DHPublic , DHPrivate , DHKey -- * DH methods , dhPublic , dhPrivate , dhParams , dhParamsGetP , dhParamsGetG , dhParamsGetBits , dhGenerateKeyPair , dhGetShared , dhValid , dhUnwrap , dhUnw...
null
https://raw.githubusercontent.com/haskell-tls/hs-tls/31e95f40b75b541c9817b6b56c363e74c2f3b57d/core/Network/TLS/Crypto/DH.hs
haskell
* DH types * DH methods This verification is enough when using a safe prime.
module Network.TLS.Crypto.DH ( DHParams , DHPublic , DHPrivate , DHKey , dhPublic , dhPrivate , dhParams , dhParamsGetP , dhParamsGetG , dhParamsGetBits , dhGenerateKeyPair , dhGetShared , dhValid , dhUnwrap , dhUnwrapPublic ) where import qualifie...
b2521e338d3b71c13b1fefd7ef6de70fb90d6014f4a8a3d744f004e51c55a6bb
rudymatela/extrapolate
ord.hs
import Test.Extrapolate import Data.Typeable (typeOf) main :: IO () main = do ch () ch bool ch int ch integer ch char ch ordering --ch [()] ch [bool] --chint ch [integer] --ch [char] --ch [ordering] --ch ((),int) ch (bool,char) --ch (int,(),bool) ch (ordering,char,integer) ch (mayb ()) ch (m...
null
https://raw.githubusercontent.com/rudymatela/extrapolate/0b3ca28eed0d04358b2fb033664476f8b29821a6/bench/ord.hs
haskell
ch [()] chint ch [char] ch [ordering] ch ((),int) ch (int,(),bool) see: -ci.org/rudymatela/extrapolate/jobs/263425540 For some reason, output for the following funky types is different across I don't have time to investigate now, but it might be good to check why. TODO : make the following work on GHC > = 8.2 see...
import Test.Extrapolate import Data.Typeable (typeOf) main :: IO () main = do ch () ch bool ch int ch integer ch char ch ordering ch [bool] ch [integer] ch (bool,char) ch (ordering,char,integer) ch (mayb ()) ch (mayb int) ch (eith () bool) ch (eith int char) TODO : find out why outpu...
9ab300b5bc97987f0e48ac8779098603a8fe224cc67f6859bb7c1bb8206ca342
lispunion/code-formatter
margin-comments.scm
; -bin/scheme.cgi?comment-style ; a procedure that modifies something (define (look mutator) ...) (define (factorial n) This could also be ( < N 2 ) . 1 ; Base case (* n (factorial (- n 1))))) ; Recursive case
null
https://raw.githubusercontent.com/lispunion/code-formatter/3eb95c83b9971b555f12a5f621d9121c5bfa5042/test_snippets/margin-comments.scm
scheme
-bin/scheme.cgi?comment-style a procedure that modifies something Base case Recursive case
(define (look mutator) ...) (define (factorial n) This could also be ( < N 2 ) .
f5523dc870f3056276f7f32870f13d14d4998730a0e71352f670c28069950178
mlemerre/l-lang
compilation_passes.ml
Copyright 2013 The compiler is organized into \emph{passes } . Each pass converts definitions of the language from a previous representation , performs some changes and/or optimization , and outputs definition in the newer , lower - level representation . The definitions are organized into \...
null
https://raw.githubusercontent.com/mlemerre/l-lang/88201e861c6cc30bb3b9510d7f55c681eded4085/src/compilation_passes.ml
ocaml
Prints elements in a stream each time they are requested.
Copyright 2013 The compiler is organized into \emph{passes } . Each pass converts definitions of the language from a previous representation , performs some changes and/or optimization , and outputs definition in the newer , lower - level representation . The definitions are organized into \...
7bb88568972598cd6e17b05268123f4e02170de136334d19823cb609ab5abc0a
venantius/glow
example_2.clj
(ns derp) (def y true) ; this is another example here
null
https://raw.githubusercontent.com/venantius/glow/17698a3621ba2f7d09f7c786764a21b13f90f6c3/dev-resources/test/regex/comments/example_2.clj
clojure
this is another example here
(ns derp)
bee292200ee23f163c7852401ca3f765421281426b310fe58f9a1407fadb4909
realark/vert
array-backed.lisp
(in-package :recurse.vert) (defclass array-backed (spatial-partition) ((objects :initform (make-array 1000 :adjustable t :fill-pointer 0 :element-type '(or null game-object) :initia...
null
https://raw.githubusercontent.com/realark/vert/4cb88545abc60f1fba4a8604ce85e70cbd4764a2/src/physics/array-backed.lisp
lisp
explicitly null out objects so we don't create a hard reference
(in-package :recurse.vert) (defclass array-backed (spatial-partition) ((objects :initform (make-array 1000 :adjustable t :fill-pointer 0 :element-type '(or null game-object) :initia...
17fa54a023b4801b39882797f0bdff4d7ac56178494c85851dfb9c26597f7216
AmpersandTarski/Ampersand
Prelude.hs
{-# LANGUAGE DeriveDataTypeable #-} module Ampersand.Basics.Prelude ( module RIO, readUTF8File, zipWith, openTempFile, Verbosity (..), FirstTrue (..), fromFirstTrue, reads, getChar, defaultFirstTrue, FirstFalse (..), fromFirstFalse, defaultFirstFalse, decodeUtf8, ...
null
https://raw.githubusercontent.com/AmpersandTarski/Ampersand/cb2306a09ce79d5609ccf8d3e28c0a1eb45feafe/src/Ampersand/Basics/Prelude.hs
haskell
# LANGUAGE DeriveDataTypeable # Needs to be fixed later. See we'll explain why we need this in logging Wrapper around readFileUtf8. It exits with an error: Redefine foldl to ensure that we use foldl' everywhere. But make the Haskeller aware that in fact you should use fold'. # WARNING foldl "Please do not use fold...
module Ampersand.Basics.Prelude ( module RIO, readUTF8File, zipWith, openTempFile, Verbosity (..), FirstTrue (..), fromFirstTrue, reads, getChar, defaultFirstTrue, FirstFalse (..), fromFirstFalse, defaultFirstFalse, decodeUtf8, foldl, undefined, ) where ...
8dd0891ff7dab6a2c900c7c976a8d24afd17a95c9d2ee9f70617d380070a359a
phadej/cabal-extras
Routes.hs
{-# LANGUAGE OverloadedStrings #-} module CabalHaddockServer.Routes ( Route (..), parseRoute, dispRoute, route_, ) where import Peura import Data.List (intercalate) import Distribution.Parsec (eitherParsec) import qualified Data.Text as T import qualified Lucid.Base as L -- | Routes in th...
null
https://raw.githubusercontent.com/phadej/cabal-extras/6b94e6044029566f5fee281ca5893c21db5fcae9/cabal-haddock-server/src/CabalHaddockServer/Routes.hs
haskell
# LANGUAGE OverloadedStrings # | Routes in the web application. ^ @/@ index page. ^ @/package/<pkg-id>@ ^ @/package/<pkg-id>/docs/<path>@ some file ^ @/static/a.file.css@ static files
module CabalHaddockServer.Routes ( Route (..), parseRoute, dispRoute, route_, ) where import Peura import Data.List (intercalate) import Distribution.Parsec (eitherParsec) import qualified Data.Text as T import qualified Lucid.Base as L data Route = RouteIndex | RouteSearch ^ @/...
65d0d588629bb8e6a413f5b44cf6d786348e13ea0ea9d62a064f65dcd63b7948
codinuum/cca
f_program_unit.ml
Copyright 2013 - 2018 RIKEN Copyright 2018 - 2020 Chiba Institude of Technology 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 b...
null
https://raw.githubusercontent.com/codinuum/cca/88ea07f3fe3671b78518769d804fdebabcd28e90/src/ast/analyzing/langs/fortran/parsing/src/labels/f_program_unit.ml
ocaml
Copyright 2013 - 2018 RIKEN Copyright 2018 - 2020 Chiba Institude of Technology 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 b...
17b42decbb23ae875c09df499b59530f6f9b80b2c0f6fdbc26db7186e17f0a06
input-output-hk/plutus-apps
MustUseOutputAsCollateral.hs
{-# LANGUAGE DataKinds #-} # LANGUAGE LambdaCase # {-# LANGUAGE NumericUnderscores #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # ...
null
https://raw.githubusercontent.com/input-output-hk/plutus-apps/006f4ae4461094d3e9405a445b0c9cf48727fa81/plutus-contract/test/Spec/Contract/Tx/Constraints/MustUseOutputAsCollateral.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE NumericUnderscores # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # , testGroup "cardano constraints" $ [v1Tests, v2Tests] ?? cardanoSubmitTx , v2FeaturesNotAvailableTests , v2FeaturesTests | Contract with a single transaction using mustUseOutputAsCollate...
# LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # OPTIONS_GHC -fno - warn - deprecations # module Spec.Contract.Tx.Constraints.MustUseOutputAsCollateral(tests) where import Control.Lens (to, (??),...
8e43ca967a3c95fb7e378cbc63513e1f0cf88e399365299e6ba964cf2d5923b3
links-lang/links
notfound.ml
The purpose of this module is to override all functions in the standard library that raise the almost - useless function exception Not_found with versions that raise the slightly - more - useful exception NotFound of string . Other than in this module there should be approximately n...
null
https://raw.githubusercontent.com/links-lang/links/2923893c80677b67cacc6747a25b5bcd65c4c2b6/core/notfound.ml
ocaml
Windows shell identifier names: [][A-Za-z0-9#~.,$'()*+?@_`{} -]+ Portable Unix shell identifier names: $[A-Za-z_][A-Za-z0-9_]* Expands any environmental variables in [string]
The purpose of this module is to override all functions in the standard library that raise the almost - useless function exception Not_found with versions that raise the slightly - more - useful exception NotFound of string . Other than in this module there should be approximately n...
0cff4222d7c657cdba4fcf53a6f36afef8476a4687a873de911423553ca04e44
sellout/haskerwaul
Frobenius.hs
module Haskerwaul.Monad.Frobenius ( module Haskerwaul.Monad.Frobenius , module Haskerwaul.Monoid.Frobenius ) where import Data.Functor.Compose (Compose) import Haskerwaul.Monoid.Frobenius import Haskerwaul.Transformation.Natural -- | [nLab](+monad) type FrobeniusMonad c = FrobeniusMonoid (NaturalTran...
null
https://raw.githubusercontent.com/sellout/haskerwaul/cf54bd7ce5bf4f3d1fd0d9d991dc733785b66a73/src/Haskerwaul/Monad/Frobenius.hs
haskell
| [nLab](+monad)
module Haskerwaul.Monad.Frobenius ( module Haskerwaul.Monad.Frobenius , module Haskerwaul.Monoid.Frobenius ) where import Data.Functor.Compose (Compose) import Haskerwaul.Monoid.Frobenius import Haskerwaul.Transformation.Natural type FrobeniusMonad c = FrobeniusMonoid (NaturalTransformation c c) Comp...
6d3844505fd9abcec89e942240807ba53dc420dbe79e3d455a29c2f5ef72d423
igrishaev/clj-java-book
ua.clj
(ns project.ua (:import [net.sf.uadetector.service UADetectorServiceFactory] [net.sf.uadetector UserAgent VersionNumber OperatingSystem DeviceCategory])) (def ^:private parser (UADetectorServiceFactory/getResourceModuleParser)) (defprotocol T...
null
https://raw.githubusercontent.com/igrishaev/clj-java-book/667260c7111b87950b99608d37e1175bd168a5ca/project/src/project/ua.clj
clojure
(ns project.ua (:import [net.sf.uadetector.service UADetectorServiceFactory] [net.sf.uadetector UserAgent VersionNumber OperatingSystem DeviceCategory])) (def ^:private parser (UADetectorServiceFactory/getResourceModuleParser)) (defprotocol T...
48ec3a72f0c614ae1c6d38af43b862edd64ae8fdb324ee7e5b6d183515f205dd
phadej/cabal-extras
Main.hs
module Main (main) where import CabalEnv.Main (main)
null
https://raw.githubusercontent.com/phadej/cabal-extras/378cac5495b829794d67f243b27a9317eeed0858/cabal-env/cli/Main.hs
haskell
module Main (main) where import CabalEnv.Main (main)
2e771045cd6a44c753471ffa4b69c3243dc3b6de2bfc40f32fbe2e7a6a5fdfba
wardle/pc4
results.clj
(ns com.eldrix.pc4.rsdb.results "Support for legacy rsdb integration for results." (:require [clojure.math :as math] [clojure.spec.alpha :as s] [clojure.string :as str] [clojure.tools.logging.readable :as log] [com.eldrix.pc4.rsdb.db :as db] [com.eldrix.pc...
null
https://raw.githubusercontent.com/wardle/pc4/d7c8a9513b085210b18eaac1f9fda3150bcb6fac/pc4-rsdb/src/com/eldrix/pc4/rsdb/results.clj
clojure
lesion count specifications e.g. ~2 note as this table uses legacy WO horizontal inheritance, we use t_result_seq to generate identifiers manually. note as this table uses legacy WO horizontal inheritance, we use t_annotation_seq to generate identifiers manually. sorted in ascending order these are the legacy a...
(ns com.eldrix.pc4.rsdb.results "Support for legacy rsdb integration for results." (:require [clojure.math :as math] [clojure.spec.alpha :as s] [clojure.string :as str] [clojure.tools.logging.readable :as log] [com.eldrix.pc4.rsdb.db :as db] [com.eldrix.pc...
b394f546d1ad04e7b4bd42ea1c355586a27f6cd05ba3db50feb74ec56daf7cfe
mlcfp/zenacy-html
DOM.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE LambdaCase # {-# LANGUAGE MultiWayIf #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE ViewPatterns # | Defines the HTML DOM types and functions . module Zenacy.HTML.Internal.DOM ( DOM(..) , DOMNode(..) , DOM...
null
https://raw.githubusercontent.com/mlcfp/zenacy-html/3f66757214c66b83f2f5396b144f6d9aa8e383c4/src/Zenacy/HTML/Internal/DOM.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # | Defines an ID for a node in a document. | Defines a mapping between node references and nodes. | Node is the model type for an HTML document. | An HTML element attribute type. | Identifies the type of an element. | Indentifies the ...
# LANGUAGE LambdaCase # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE ViewPatterns # | Defines the HTML DOM types and functions . module Zenacy.HTML.Internal.DOM ( DOM(..) , DOMNode(..) , DOMAttr(..) , DOMType(..) , DOMQuirks(..) , DOMPos(..) , DOMID , DOMMap , domAttrMak...
a11fd5bc3533a8bb58775eb420f79449d3ab4cfa5a483ab0e4939f0aeecba2fa
input-output-hk/cardano-ledger
Annotated.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveFunctor # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # module Cardano.Ledger.Binary.Decoding.Annot...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger/b9aa1ad1728c0ceeca62657ec94d6d099896c052/libs/cardano-ledger-binary/src/Cardano/Ledger/Binary/Decoding/Annotated.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE RankNTypes # ----------------------------------------------------------------------- ByteSpan ----------------------------------------------------------------------- Used for debugging purposes only. ----------------------------------------------------------------------- Annota...
# LANGUAGE DeriveFunctor # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # module Cardano.Ledger.Binary.Decoding.Annotated ( Annotated (..), ByteSpan (..), Decoded (..), ...
9a3eab9543e9055bedd7d477829c69f3a37156afe72a32329c1d07ac71127259
helium/blockchain-core
blockchain_txn_assert_location_v2.erl
%%%------------------------------------------------------------------- %% @doc %% == Blockchain Transaction Assert Location V2 == %% @end %%%------------------------------------------------------------------- -module(blockchain_txn_assert_location_v2). -behavior(blockchain_txn). -behavior(blockchain_json). -include("...
null
https://raw.githubusercontent.com/helium/blockchain-core/0caf2295d0576c0ef803258e834bf6ec3b3e74bc/src/transactions/v2/blockchain_txn_assert_location_v2.erl
erlang
------------------------------------------------------------------- @doc == Blockchain Transaction Assert Location V2 == @end ------------------------------------------------------------------- -------------------------------------------------------------------- @doc Calculate the txn fee Returned value is txn_by...
-module(blockchain_txn_assert_location_v2). -behavior(blockchain_txn). -behavior(blockchain_json). -include("blockchain_json.hrl"). -include("blockchain_txn_fees.hrl"). -include_lib("helium_proto/include/blockchain_txn_assert_location_v2_pb.hrl"). -include("blockchain_vars.hrl"). -include("blockchain_utils.hrl"). -e...
ca68508892b8b00645d5e9dbe32fe6a27de5ea1345c66b1f4161a50f034c6a80
ocurrent/opam-health-check
check.mli
val run : debug:bool -> cap_file:string -> on_finished:(Server_workdirs.t -> unit Lwt.t) -> conf:Server_configfile.t -> Oca_server.Cache.t -> Server_workdirs.t -> unit Lwt.t val is_running : unit -> bool val wait_current_run_to_finish : unit -> unit Lwt.t
null
https://raw.githubusercontent.com/ocurrent/opam-health-check/04a76d6e89642ed338c5895b17c96cafab9628e3/server/backend/check.mli
ocaml
val run : debug:bool -> cap_file:string -> on_finished:(Server_workdirs.t -> unit Lwt.t) -> conf:Server_configfile.t -> Oca_server.Cache.t -> Server_workdirs.t -> unit Lwt.t val is_running : unit -> bool val wait_current_run_to_finish : unit -> unit Lwt.t
9dec14cfd26c572d7c752abd2528646ac88b71116febbc0e648a85ff57c8a910
gildor478/ocaml-fileutils
FileUtilStr.ml
(******************************************************************************) (* ocaml-fileutils: files and filenames common operations *) (* *) Copyright ( C ) 2003 - 2014 , (* ...
null
https://raw.githubusercontent.com/gildor478/ocaml-fileutils/9ad8d2ee342c551391f2a9873de01982d24b36d5/src/lib/fileutils/str/FileUtilStr.ml
ocaml
**************************************************************************** ocaml-fileutils: files and filenames common operations This libra...
Copyright ( C ) 2003 - 2014 , the Free Software Foundation ; either version 2.1 of the License , or ( at You should have received a copy of the GNU Lesser General Public License along with this library ; if not , write to the Free Software Foundation , Inc. , 51 Franklin St , Fifth Floor , Bo...
19cea8f07b3e6596641f0f54551a562b43285a53fa07cbfede3d21d958280c48
nojb/ocaml-imap
parser.mli
The MIT License ( MIT ) Copyright ( c ) 2015 - 2018 < > 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 rig...
null
https://raw.githubusercontent.com/nojb/ocaml-imap/6e06e159597c3c1ea231edfe5ede53b28ae0c0ba/lib/parser.mli
ocaml
The MIT License ( MIT ) Copyright ( c ) 2015 - 2018 < > 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 rig...
1165288868e0a092736c43e5664141713c122ae56e8cae0b6b5371c3eb22ddf9
zen-lang/zen-lsp
server.clj
(ns zen-lang.lsp-server.impl.server {:no-doc true} (:require [babashka.fs :as fs] [clojure.edn :as edn] [clojure.java.io :as io] [clojure.pprint :as pprint] [clojure.string :as str] [edamame.core :as e] [rewrite-clj.parser :as p] [zen-lang.lsp-server.impl.autocomplete :as autocomplete] [z...
null
https://raw.githubusercontent.com/zen-lang/zen-lsp/c0543c37340bb3201b0502194f7504c9ddd81eda/server/src/zen_lang/lsp_server/impl/server.clj
clojure
don't use nth as to prevent index out of bounds path (:path error) TODO: more checks if it's really a zen file clear errors for next run this shouldn't throw TODO: provide path and last-valid-text to zen.core function that uses it to provide better completions store last valid edn FIXME: incorrect boundaries ...
(ns zen-lang.lsp-server.impl.server {:no-doc true} (:require [babashka.fs :as fs] [clojure.edn :as edn] [clojure.java.io :as io] [clojure.pprint :as pprint] [clojure.string :as str] [edamame.core :as e] [rewrite-clj.parser :as p] [zen-lang.lsp-server.impl.autocomplete :as autocomplete] [z...
40b839e71e2199be793227b935c076165465fa20e1a9691036a24084fac76e4f
mwotton/squealgen
DBSpec.hs
{-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DerivingStrategies #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # module Functions.DBSpec where import Data.Int import DBHelpers (runSession) import Functions.Public import qualified Generics.SOP as...
null
https://raw.githubusercontent.com/mwotton/squealgen/859ba8c8dcbd9394b1c063244a4728f4efa5465d/test/Functions/DBSpec.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE DerivingStrategies # # LANGUAGE OverloadedStrings # not currently generating set-returning functions, fixme. nb: multi-argument functions need to be called with functionN | in this test, the inputs are defined to be not-null, because strict_doubler is annotated as str...
# LANGUAGE ScopedTypeVariables # module Functions.DBSpec where import Data.Int import DBHelpers (runSession) import Functions.Public import qualified Generics.SOP as SOP import qualified GHC.Generics as GHC import Squeal.PostgreSQL import Test.Hspec ...
266b741271e3f876cae262a45d25274c5d3169714841b08ebb2450d317efca48
anwarmamat/cmsc330spring18-public
testUtils.ml
open OUnit2 open Utils open Eval open Types (* Assertion wrappers for convenience and readability *) let assert_true b = assert_equal true b let assert_false b = assert_equal false b let assert_succeed () = assert_true true (* Constants pertaining to error case tests *) let stmt_env : environment = [("x", Int_Val(1))...
null
https://raw.githubusercontent.com/anwarmamat/cmsc330spring18-public/b401e5157c05c7f47ee2d0ec1b21c7b142316031/p3b/testUtils.ml
ocaml
Assertion wrappers for convenience and readability Constants pertaining to error case tests
open OUnit2 open Utils open Eval open Types let assert_true b = assert_equal true b let assert_false b = assert_equal false b let assert_succeed () = assert_true true let stmt_env : environment = [("x", Int_Val(1)); ("p", Bool_Val(false))] let expr_env : environment = stmt_env @ [("y", Int_Val(6)); ("q", Bool_Val(tru...