_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
cab8e764cc9400f7bf09703ca76d9c2ace352b6622ad53fa8b1242e20ac90a8f
scalaris-team/scalaris
lb_active_directories.erl
2014 - 2015 Zuse Institute Berlin 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, software d...
null
https://raw.githubusercontent.com/scalaris-team/scalaris/feb894d54e642bb3530e709e730156b0ecc1635f/src/lb_active_directories.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 gov...
2014 - 2015 Zuse Institute Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author < > , , , , and Performance Evaluation , vol . 63 , no . 3 , pp . 217 - 240 , 2006 . -module(l...
76f39cde0d889c61d6d86b2dfdbc0262bd1bf7e3cedd59da93ff52afa677f40c
openweb-nl/open-bank-mark
postgres_db.clj
(ns nl.openweb.graphql-endpoint.postgres-db (:require [com.stuartsierra.component :as component] [hikari-cp.core :as h] [nl.openweb.topology.clients :as clients])) (def db-port (read-string (or (System/getenv "DB_PORT") "5432"))) (def db-hostname (or (System/getenv "DB_HOSTNAME") "localhost")...
null
https://raw.githubusercontent.com/openweb-nl/open-bank-mark/786c940dafb39c36fdbcae736fe893af9c00ef17/graphql-endpoint/src/nl/openweb/graphql_endpoint/postgres_db.clj
clojure
(ns nl.openweb.graphql-endpoint.postgres-db (:require [com.stuartsierra.component :as component] [hikari-cp.core :as h] [nl.openweb.topology.clients :as clients])) (def db-port (read-string (or (System/getenv "DB_PORT") "5432"))) (def db-hostname (or (System/getenv "DB_HOSTNAME") "localhost")...
1cbecf8c060cb626066afb9c0d11154a3e066fe0c23d4d6fcb018d7725b6b499
ghc/ghc
Decls.hs
{-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # in module Language . Haskell . Syntax . Extension # OPTIONS_GHC...
null
https://raw.githubusercontent.com/ghc/ghc/178c1fd830c78377ef5d338406a41e1d8eb5f0da/compiler/GHC/Hs/Decls.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE DeriveDataTypeable # | Abstract syntax of global declarations. Definitions for: @SynDecl@ and @ConDecl@, @ClassDecl@, @InstDecl@, @DefaultDecl@ and @ForeignDecl@. ** Class or type declarations ** Instance declarations ** Standalone deriving declarations ** Deriving strate...
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # in module Language . Haskell . Syntax . Extension # OPTIONS_GHC -Wno - orphans # ( c ) The University of Glasgow 2006 ( c ) The...
e80069dca2d80a954b6362e3e9edf0aa1240b3332f4bb23c5d964ddab66e1b09
morphismtech/squeal
Parameter.hs
| Module : Squeal . PostgreSQL.Expression . Parameter Description : out - of - line parameters Copyright : ( c ) , 2019 Maintainer : Stability : experimental out - of - line parameters Module: Squeal.PostgreSQL.Expression.Parameter Description: out-of-line parameters Copyright: (c) Eitan Chatav, 2019 ...
null
https://raw.githubusercontent.com/morphismtech/squeal/599ebb9a0036ac7e5627be980a2a8de1a38ea4f0/squeal-postgresql/src/Squeal/PostgreSQL/Expression/Parameter.hs
haskell
* Parameter * Parameter Internals $setup >>> import Squeal.PostgreSQL >>> printSQL (parameter @1 int4) # OVERLAPS # # OVERLAPS # include the full parameter list in our errors. # OVERLAPS # having a separate 'y' type variable is required for 'ParamTypeMismatchError' # OVERLAPS # | @ParamOutOfBoundsError@ report...
| Module : Squeal . PostgreSQL.Expression . Parameter Description : out - of - line parameters Copyright : ( c ) , 2019 Maintainer : Stability : experimental out - of - line parameters Module: Squeal.PostgreSQL.Expression.Parameter Description: out-of-line parameters Copyright: (c) Eitan Chatav, 2019 ...
04d71ae14b69c30aef46937610bd1adebf62818673a40d2e6b46211eeae4577d
ghc/packages-Cabal
setup.test.hs
import Test.Cabal.Prelude main = setupAndCabalTest $ do skipUnless =<< ghcVersionIs (>= mkVersion [8,1]) setup "configure" [] setup "build" []
null
https://raw.githubusercontent.com/ghc/packages-Cabal/6f22f2a789fa23edb210a2591d74ea6a5f767872/cabal-testsuite/PackageTests/Backpack/T5634/setup.test.hs
haskell
import Test.Cabal.Prelude main = setupAndCabalTest $ do skipUnless =<< ghcVersionIs (>= mkVersion [8,1]) setup "configure" [] setup "build" []
73b043148391f5c92b94c52e006e5002095a4e23b2f1f25325215b0669810bcb
tezos/tezos-mirror
test_scenario.ml
open Mockup_simulator let bootstrap1 = Tezos_crypto.Signature.V0.Public_key.hash bootstrap1 let bootstrap2 = Tezos_crypto.Signature.V0.Public_key.hash bootstrap2 let bootstrap3 = Tezos_crypto.Signature.V0.Public_key.hash bootstrap3 let bootstrap4 = Tezos_crypto.Signature.V0.Public_key.hash bootstrap4 let bootstrap...
null
https://raw.githubusercontent.com/tezos/tezos-mirror/b1f694dc625868bfb6cd1a24b0cf86aeb7a51da6/src/proto_015_PtLimaPt/lib_delegate/test/test_scenario.ml
ocaml
Stop the node as soon as we receive a proposal with a level higher than [level_to_reach]. Here we use custom hooks to make each node/baker behave according to its role in the scenario. If any of the checks fails the whole scenario will fail. Node A stops immediately. Stop as soon as B has pro...
open Mockup_simulator let bootstrap1 = Tezos_crypto.Signature.V0.Public_key.hash bootstrap1 let bootstrap2 = Tezos_crypto.Signature.V0.Public_key.hash bootstrap2 let bootstrap3 = Tezos_crypto.Signature.V0.Public_key.hash bootstrap3 let bootstrap4 = Tezos_crypto.Signature.V0.Public_key.hash bootstrap4 let bootstrap...
d1593ba5a6606d28c6c8b1dcc770759e060fed5acd894ba2b455b8077a37ef92
haskell/containers
DeprecatedDebug.hs
# LANGUAGE CPP , FlexibleContexts , DataKinds , MonoLocalBinds # module Data.IntMap.Internal.DeprecatedDebug where import Data.IntMap.Internal (IntMap) import Utils.Containers.Internal.TypeError | ' showTree ' has moved to ' Data . IntMap . Internal . Debug.showTree ' showTree :: Whoops "Data.IntMap.showTree has ...
null
https://raw.githubusercontent.com/haskell/containers/7fb91ca53b1aca7c077b36a0c1f8f785d177da34/containers/src/Data/IntMap/Internal/DeprecatedDebug.hs
haskell
# LANGUAGE CPP , FlexibleContexts , DataKinds , MonoLocalBinds # module Data.IntMap.Internal.DeprecatedDebug where import Data.IntMap.Internal (IntMap) import Utils.Containers.Internal.TypeError | ' showTree ' has moved to ' Data . IntMap . Internal . Debug.showTree ' showTree :: Whoops "Data.IntMap.showTree has ...
e995a86252846ebb09ff0053c7d580ba47bfbd4a8e83e979579af60f75f5dd32
Frama-C/Frama-C-snapshot
empty.ml
An empty ml file in order to test dynamic module
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/tests/dynamic/empty.ml
ocaml
An empty ml file in order to test dynamic module
00a2e285df237bef91e72164abbfe2f336f8995debb58f72fb2073abfad561e2
andersfugmann/amqp-client
gen_spec.ml
open Printf module List = ListLabels let indent = ref 0 let emit_location = ref true let option_map ~f = function | Some v -> f v | None -> None let option_iter ~f = function | Some v -> f v | None -> () let emit_loc loc = match !emit_location with | true -> let indent = String.make (!indent * 2) ' '...
null
https://raw.githubusercontent.com/andersfugmann/amqp-client/e6e92225b91742fa8777a02ad9b59a1dde45e752/spec/gen_spec.ml
ocaml
Get last location Only look at the attributes All field nodes goes into content Remove domains Alter the tree Reorder modules based on dependencies emit_printer tree; Argument parsing
open Printf module List = ListLabels let indent = ref 0 let emit_location = ref true let option_map ~f = function | Some v -> f v | None -> None let option_iter ~f = function | Some v -> f v | None -> () let emit_loc loc = match !emit_location with | true -> let indent = String.make (!indent * 2) ' '...
781f4a95f4c67eaaeb1652609aadc5c2f03ec2e7bcaacc382eb9e9f870eb9942
septract/jstar-old
load_logic.ml
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This file is part of jStar src / parsing / load_logic.ml Release $ Release$ Version $ Rev$ $ Copyright$ jStar is distributed under a BSD license , see ,...
null
https://raw.githubusercontent.com/septract/jstar-old/c3b4fc6c1efc098efcdb864edbf0c666130f5fe5/src/parsing/load_logic.ml
ocaml
File to read a logic file and its imports.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This file is part of jStar src / parsing / load_logic.ml Release $ Release$ Version $ Rev$ $ Copyright$ jStar is distributed under a BSD license , see ,...
f892384dd4780399cd5c45928dd05a4f61d27608e32a51d6b80b7f329fb462b2
kdltr/chicken-core
environment-tests.scm
;;;; environment-tests.scm (import (chicken load)) (load-relative "test.scm") (test-begin "evaluation environment tests") (test-equal (eval 123) 123) (test-equal (eval 123 (interaction-environment)) 123) (test-equal (eval 'car (interaction-environment)) car) (test-error (eval 'foo (interaction-environment))) (test...
null
https://raw.githubusercontent.com/kdltr/chicken-core/b2e6c5243dd469064bec947cb3b49dafaa1514e5/tests/environment-tests.scm
scheme
environment-tests.scm
(import (chicken load)) (load-relative "test.scm") (test-begin "evaluation environment tests") (test-equal (eval 123) 123) (test-equal (eval 123 (interaction-environment)) 123) (test-equal (eval 'car (interaction-environment)) car) (test-error (eval 'foo (interaction-environment))) (test-equal (eval '(begin (set! ...
df9a97f909864c4c00be1d80c8ab164bd16115896fcde2e1e832039ff30e39c5
nextjournal/clerk
ssr.cljs
(ns ssr "Dev helper to run server-side-rendering using Node. Use this to iterate on it, then make sure the advanced bundle works in Graal via `nextjournal.clerk.ssr`." (:require ["./../public/js/viewer.js" :as viewer] the above is the dev build , the one below the relase ( generate it via ` bb release : js `...
null
https://raw.githubusercontent.com/nextjournal/clerk/2b192241c686a351f542f15462e5af7cb9632ed5/ui_tests/ssr.cljs
clojure
(ns ssr "Dev helper to run server-side-rendering using Node. Use this to iterate on it, then make sure the advanced bundle works in Graal via `nextjournal.clerk.ssr`." (:require ["./../public/js/viewer.js" :as viewer] the above is the dev build , the one below the relase ( generate it via ` bb release : js `...
809d1f50e4399c7dc9c7cc5eacbaad5652babc4351a680ce53e85b14cdb85788
privet-kitty/cl-competitive
eratosthenes.lisp
(defpackage :cp/eratosthenes (:use :cl) (:export #:make-prime-table #:make-prime-sequence #:prime-data #:make-prime-data #:prime-data-seq #:prime-data-table #:prime-data-p #:factorize #:make-omega-table)) (in-package :cp/eratosthenes) (eval-when (:compile-toplevel :load-toplevel :execute) (...
null
https://raw.githubusercontent.com/privet-kitty/cl-competitive/876b3be1c42480deec735ad845604af1e0af4469/module/eratosthenes.lisp
lisp
(defpackage :cp/eratosthenes (:use :cl) (:export #:make-prime-table #:make-prime-sequence #:prime-data #:make-prime-data #:prime-data-seq #:prime-data-table #:prime-data-p #:factorize #:make-omega-table)) (in-package :cp/eratosthenes) (eval-when (:compile-toplevel :load-toplevel :execute) (...
1fe0d706a91d5785fee04cb5c02bf7b3e02b51435577ee2d60467062221a439b
lemaetech/reparse
json.ml
* Implement JSON parser as defined at . Assumes UTF-8 character encoding . However , it does n't do any validation . Note : It is unknown if the parser fully conforms to RFC 8259 as no testing , validation is done . The RFC is used mainly as a guidance and the sample is meant to demonstrate p...
null
https://raw.githubusercontent.com/lemaetech/reparse/0b9096cf3e4779813f8b82d5a0ba5d82035cca0e/examples/json.ml
ocaml
* Implement JSON parser as defined at . Assumes UTF-8 character encoding . However , it does n't do any validation . Note : It is unknown if the parser fully conforms to RFC 8259 as no testing , validation is done . The RFC is used mainly as a guidance and the sample is meant to demonstrate p...
f81b90cc78228364e80bd9e688827b27394dca66193989efdd12d81032089cb8
Workiva/eva
data_readers.clj
Copyright 2015 - 2019 Workiva Inc. ;; ;; Licensed under the Eclipse Public License 1.0 (the "License"); ;; you may not use this file except in compliance with the License. ;; You may obtain a copy of the License at ;; ;; -1.0.php ;; ;; Unless required by applicable law or agreed to in writing, software dist...
null
https://raw.githubusercontent.com/Workiva/eva/b7b8a6a5215cccb507a92aa67e0168dc777ffeac/core/resources/data_readers.clj
clojure
Licensed under the Eclipse Public License 1.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at -1.0.php Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expre...
Copyright 2015 - 2019 Workiva Inc. distributed under the License is distributed on an " AS IS " BASIS , {db/id eva.readers/read-db-id db/fn eva.readers/read-db-fn}
598c3e628a4448f33948bdf70b8f357076b44c73e438672bbd718fdfe3a77432
timothyrenner/turbine
routes_test.clj
(ns turbine.routes-test (:require [clojure.core.async :refer [<!! >!! chan]] [turbine.routes :refer :all] [turbine.core :refer :all] [clojure.test :refer :all])) (deftest xform-aliases-test (testing "Properly extracts aliases from a fan-out route specifier." (is (= {:out1 :xform1 :out2 :xform2} ...
null
https://raw.githubusercontent.com/timothyrenner/turbine/cabe7f3aa156878218cab621ebb85adad47afe0f/test/turbine/routes_test.clj
clojure
(ns turbine.routes-test (:require [clojure.core.async :refer [<!! >!! chan]] [turbine.routes :refer :all] [turbine.core :refer :all] [clojure.test :refer :all])) (deftest xform-aliases-test (testing "Properly extracts aliases from a fan-out route specifier." (is (= {:out1 :xform1 :out2 :xform2} ...
92cd97b1870e706fbd8414b60a699aca03ab28d650df574d7298db50a234b77a
AntidoteDB/antidote
antidote_crdt_counter_b.erl
%% ------------------------------------------------------------------- %% Copyright < 2013 - 2018 > < Technische Universität Kaiserslautern , Germany , France Universidade NOVA de Lisboa , Portugal Université catholique de Louvain ( UCL ) , Belgique , Portugal %% > %% This file is provided...
null
https://raw.githubusercontent.com/AntidoteDB/antidote/32a89d42be644d3ba616ebf705fce4fa43e781ab/apps/antidote_crdt/src/antidote_crdt_counter_b.erl
erlang
------------------------------------------------------------------- > Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either expressed or implied. See the License for the specific language governing perm...
Copyright < 2013 - 2018 > < Technische Universität Kaiserslautern , Germany , France Universidade NOVA de Lisboa , Portugal Université catholique de Louvain ( UCL ) , Belgique , Portugal This file is provided to you under the Apache License , except in compliance with the License . You...
f4cdbb3f871222e531aac47c7b9b380683506992b209190b000d44477ad31f58
davidlazar/ocaml-semantics
match-or05.ml
match (4,2) with ((a,b) | (b,a)) -> b / a | _ -> 1
null
https://raw.githubusercontent.com/davidlazar/ocaml-semantics/6f302c6b9cced0407d501d70ad25c2d2aefbb77d/tests/unit/match-or05.ml
ocaml
match (4,2) with ((a,b) | (b,a)) -> b / a | _ -> 1
eeee21de8cf2c031a56a2598918f18d819c08e7b5436f73007bd7afb3cedf717
elastic/eui-cljs
use_mouse_move.cljs
(ns eui.services.use-mouse-move (:require ["@elastic/eui/lib/services/hooks/useMouseMove.js" :as eui])) (def useMouseMove eui/useMouseMove) (def isMouseEvent eui/isMouseEvent)
null
https://raw.githubusercontent.com/elastic/eui-cljs/ad60b57470a2eb8db9bca050e02f52dd964d9f8e/src/eui/services/use_mouse_move.cljs
clojure
(ns eui.services.use-mouse-move (:require ["@elastic/eui/lib/services/hooks/useMouseMove.js" :as eui])) (def useMouseMove eui/useMouseMove) (def isMouseEvent eui/isMouseEvent)
6270e5e89e37e94ddc6d092c25a761a4dd4bff9e667826e13cd6c6a2095bf43f
dtgoitia/civil-autolisp
SelectAlongPolyline.lsp
; (defun c:xx () ; ; Trigger ( DT : AutoLoadFileFromCivilTemp " SelectAlongPolyline.lsp " ) ( c : ) ; ; v0.0 - 2017.08.16 - First issue ; Author : ; Last revision : 2017.08.16 ; ) (defun c:SelectAlongPolyline ( / ename entList ) Command version of DT : (if (setq ename (car (entsel "\nSelec...
null
https://raw.githubusercontent.com/dtgoitia/civil-autolisp/72d68139d372c84014d160f8e4918f062356349f/Dump%20folder/SelectAlongPolyline.lsp
lisp
(defun c:xx () ; Trigger v0.0 - 2017.08.16 - First issue Author : Last revision : 2017.08.16 ) END progn END if Select objects along ename polyline (using "F" mode selection) Remove objects crossed by ename END if END if END progn END if
( DT : AutoLoadFileFromCivilTemp " SelectAlongPolyline.lsp " ) ( c : ) (defun c:SelectAlongPolyline ( / ename entList ) Command version of DT : (if (setq ename (car (entsel "\nSelect polyline of reference: "))) (progn (DT:SelectAlongPolyline ename) v0.0 - 2017.08.16 - First issue Author : ...
584ec866b9a9d383c4fa100c5c5437c59f08c549631ba09ef928edd85560abea
JoelSanchez/ventas
crud_table.cljs
(ns ventas.components.crud-table "Implementation of ventas.components.table for the most common and boring use of it." (:require [re-frame.core :as rf] [ventas.i18n :refer [i18n]] [ventas.components.base :as base] [ventas.server.api.admin :as api.admin] [ventas.routes :as routes] [ventas.compon...
null
https://raw.githubusercontent.com/JoelSanchez/ventas/dc8fc8ff9f63dfc8558ecdaacfc4983903b8e9a1/src/cljs/ventas/components/crud_table.cljs
clojure
(ns ventas.components.crud-table "Implementation of ventas.components.table for the most common and boring use of it." (:require [re-frame.core :as rf] [ventas.i18n :refer [i18n]] [ventas.components.base :as base] [ventas.server.api.admin :as api.admin] [ventas.routes :as routes] [ventas.compon...
1c98bee1c5a28ab6456b82efa27b41db97664385bb23ea86aa79e90d01476e30
ds-wizard/engine-backend
Api.hs
module Registry.Api.Handler.Package.Api where import Servant import Registry.Api.Handler.Package.Detail_Bundle_GET import Registry.Api.Handler.Package.Detail_GET import Registry.Api.Handler.Package.List_Bundle_POST import Registry.Api.Handler.Package.List_GET import Registry.Model.Context.BaseContext type PackageAPI...
null
https://raw.githubusercontent.com/ds-wizard/engine-backend/a76d04c3dc5e0a3cb52303c90272f8deb24d28ae/engine-registry/src/Registry/Api/Handler/Package/Api.hs
haskell
module Registry.Api.Handler.Package.Api where import Servant import Registry.Api.Handler.Package.Detail_Bundle_GET import Registry.Api.Handler.Package.Detail_GET import Registry.Api.Handler.Package.List_Bundle_POST import Registry.Api.Handler.Package.List_GET import Registry.Model.Context.BaseContext type PackageAPI...
45199d991f553703556b271c92ccd347fef202c3b9a94e4faf859d4e450c7abc
ericclack/overtone-loops
sticks1.clj
(ns overtone-loops.music.sticks1 (:use [overtone.live] [overtone.inst.synth] [overtone-loops.loops] [overtone-loops.samples])) (set-up) ;; 1 e & a 2 e & a 3 e & a 4 e & a (defloop sticks 1/4 stick [8 _ _ _ 6 _ _ 6 _ _ 6 _ _ 6 _ _ ]) (defloop kicks 1 kick [8 ...
null
https://raw.githubusercontent.com/ericclack/overtone-loops/54b0c230c1e6bd3d378583af982db4e9ae4bda69/src/overtone_loops/music/sticks1.clj
clojure
1 e & a 2 e & a 3 e & a 4 e & a --------------------------------------------- all play for only a few phrases Play these with Ctrl-X Ctrl-E (stop)
(ns overtone-loops.music.sticks1 (:use [overtone.live] [overtone.inst.synth] [overtone-loops.loops] [overtone-loops.samples])) (set-up) (defloop sticks 1/4 stick [8 _ _ _ 6 _ _ 6 _ _ 6 _ _ 6 _ _ ]) (defloop kicks 1 kick [8 8 8 8 ]) (defloop clicks 1/4 finger [_...
e36be852d370a2aaec8bb4af3be95273351cbbf40c9f24d7a54013eacc18a0bf
witan-org/witan
interp.ml
(*************************************************************************) This file is part of Witan . (* *) Copyright ( C ) 2017 CEA ( Commi...
null
https://raw.githubusercontent.com/witan-org/witan/d26f9f810fc34bf44daccb91f71ad3258eb62037/src/core/interp.ml
ocaml
*********************************************************************** alternatives) Automatique) ...
This file is part of Witan . Copyright ( C ) 2017 CEA ( Commissariat à l'énergie atomique et aux énergies ( Institut National de Recherche en Informatique et en CNRS ( Centre nation...
ea8dbe5859c3a40332dc1094dc05ccdf07f88d8b290b62c769918e98504d0377
Rainist/kubeletter
redis_store_test.clj
(ns kubeletter.stores.redis-store-test (:require [kubeletter.stores.redis-store :as redis] [clojure.test :refer :all])) (def ^:private samples {:simple-key "test-redis-key" :simple-val "test-redis-val" :obj-key "test-redis-obj-key" :obj-val {:hash {:a 1} :vector [:a 1] ...
null
https://raw.githubusercontent.com/Rainist/kubeletter/da326a067147f45b069a49d22730ea07675f9e16/kubeletter/test/kubeletter/stores/redis_store_test.clj
clojure
(ns kubeletter.stores.redis-store-test (:require [kubeletter.stores.redis-store :as redis] [clojure.test :refer :all])) (def ^:private samples {:simple-key "test-redis-key" :simple-val "test-redis-val" :obj-key "test-redis-obj-key" :obj-val {:hash {:a 1} :vector [:a 1] ...
006f92605c7ea61a1494f7a7fae1c8b3d0938481678a004f24fc220ba66c4e7b
robert-strandh/SICL
enable-defclass.lisp
(cl:in-package #:sicl-boot-phase-3) (defun define-ensure-class-using-class (e1 e2 e3) (let ((client (env:client e3))) (setf (env:fdefinition client e2 'sicl-clos:ensure-class-using-class) (lambda (class-or-nil class-name &rest keys &ke...
null
https://raw.githubusercontent.com/robert-strandh/SICL/4189e85e231f12cdbd8a9a4b3f0bd1d69a2c5afe/Code/Boot/Phase-3/enable-defclass.lisp
lisp
(cl:in-package #:sicl-boot-phase-3) (defun define-ensure-class-using-class (e1 e2 e3) (let ((client (env:client e3))) (setf (env:fdefinition client e2 'sicl-clos:ensure-class-using-class) (lambda (class-or-nil class-name &rest keys &ke...
ae4b16bccbbeafefd359499623ee9c2f73550573439b09066ed7cd933f5f909d
denisshevchenko/circlehs
Main.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE LambdaCase # module Main where import Network.CircleCI main :: IO () main = putStrLn "Test will be implemented soon!"
null
https://raw.githubusercontent.com/denisshevchenko/circlehs/0c01693723a234bb46ff8d1e6e114cce91dfa032/test/Main.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE LambdaCase # module Main where import Network.CircleCI main :: IO () main = putStrLn "Test will be implemented soon!"
99fb88a89727150e3f41393a2e7944c9264b98b7025daa84fb9b0186176f92d7
antoniogarrote/egearmand-server
rfc4627_jsonrpc_sup.erl
@author < > @author LShift Ltd. < > 2007 , 2008 and LShift Ltd. @license %% %% 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...
null
https://raw.githubusercontent.com/antoniogarrote/egearmand-server/45296fb40e3ddb77f71225121188545a371d2237/contrib/erlang-rfc4627/dist/src/rfc4627_jsonrpc_sup.erl
erlang
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 so, subject to the following conditions: ...
@author < > @author LShift Ltd. < > 2007 , 2008 and LShift Ltd. @license 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 ...
d27591db8e91a1c3f147fd2d484f994a81d9828eaa2fb7a43e2da9035663fae2
kappamodeler/kappa
network.ml
(**Implementation of non interleaving semantics of computation traces*) open Mods2 type eid = int type node = (eid*Rule.modif_type) kind:= 0 : intro 1 : classic 2 : obs type event = {r:Rule.t;label:string;s_depth:int;g_depth:int ;kind:int;nodes:Rule.modif_type list PortMap.t} let empty_event = {r=Rule.empty;label...
null
https://raw.githubusercontent.com/kappamodeler/kappa/de63d1857898b1fc3b7f112f1027768b851ce14d/simplx_rep/src/stories/network.ml
ocaml
*Implementation of non interleaving semantics of computation traces e.nodes : wire_id -> modif_type (or Not_found) if wire is empty, plugging always succeeds if !Data.sanity_check then else Error.warning remove action is always compatible if wire is empty, plugging always fails Error.runtime remove action is always co...
open Mods2 type eid = int type node = (eid*Rule.modif_type) kind:= 0 : intro 1 : classic 2 : obs type event = {r:Rule.t;label:string;s_depth:int;g_depth:int ;kind:int;nodes:Rule.modif_type list PortMap.t} let empty_event = {r=Rule.empty;label="";s_depth=(-1); g_depth=(-1); kind=(-1);nodes=PortMap.empty} let is_em...
b3b6aa8f4f5fce606c76151041bdf37cb11ccd4f6d46a7c8ce1fbf79884bdd50
abakst/Brisk
Plugin.hs
module Plugin (plugin) where import GhcPlugins import IfaceEnv import Finder import OccName import TcEnv import TcRnMonad plugin = briskPlugin briskPlugin :: Plugin briskPlugin = defaultPlugin { installCoreToDos = installBrisk } installBrisk :: [CommandLineOption] -> [CoreToDo] -> CoreM [CoreToDo] inst...
null
https://raw.githubusercontent.com/abakst/Brisk/3e4ce790a742d3e3b786dba45d36f715ea0e61ef/src/Plugin.hs
haskell
module Plugin (plugin) where import GhcPlugins import IfaceEnv import Finder import OccName import TcEnv import TcRnMonad plugin = briskPlugin briskPlugin :: Plugin briskPlugin = defaultPlugin { installCoreToDos = installBrisk } installBrisk :: [CommandLineOption] -> [CoreToDo] -> CoreM [CoreToDo] inst...
4927f51a070ac7c050b0e943678b520b3f82dd80773d4edb51ce3a0b556b08e8
shirok/Gauche
type.scm
;; Tests for typeutil (use gauche.test) (test-start "typeutil") (use gauche.typeutil) (test-module 'gauche.typeutil) (test-section "type constuctor memoization") ;; This tests the constructed types from the same arguments gets eq?, ;; because of the memoization. (define-syntax t-equality (syntax-rules () [(_...
null
https://raw.githubusercontent.com/shirok/Gauche/db8d3884a8057f1b980aaea08bb651649638abbd/test/type.scm
scheme
Tests for typeutil This tests the constructed types from the same arguments gets eq?, because of the memoization. (#/abc/ . #t) ; applicable objects are not supported yet This tests gf's type is recomputed after method addition
(use gauche.test) (test-start "typeutil") (use gauche.typeutil) (test-module 'gauche.typeutil) (test-section "type constuctor memoization") (define-syntax t-equality (syntax-rules () [(_ expect a b) (test* (list 'a 'b) expect (eq? a b))])) (t-equality #t (<?> <integer>) (<?> <integer>)) (t-equality #t ...
b96b75f4c20984748b99bcf4fd52b775a776aa7588516c6b41f9d519808e0926
anmonteiro/ocaml-mongodb
mongo.mli
* { b This is a major client - faced module , for the high level usage . } This module includes a series of APIs that client can use directly to communicate with MongoDB . The most important functions are for insert , udpate , delete , query , get_more . They are the essential interactions that a ...
null
https://raw.githubusercontent.com/anmonteiro/ocaml-mongodb/f491384652eaf24e423204ae79f590bb90fb6506/src/mongo.mli
ocaml
* the exception will be raised if anything is wrong, with a string message * change instance collection * {6 Update} * counts the number of documents in a collection * option for index. See {b /#db.collection.ensureIndex} for more info * return a list of all indexes * ensure an index * ensur...
* { b This is a major client - faced module , for the high level usage . } This module includes a series of APIs that client can use directly to communicate with MongoDB . The most important functions are for insert , udpate , delete , query , get_more . They are the essential interactions that a ...
0365de9a90a7ea4da59b2941ee14016ff5da1155e00a9075f997b729839e1308
lispbuilder/lispbuilder
font-definition.lisp
(in-package #:lispbuilder-sdl) (defclass font-definition () ((filename :accessor filename :initform nil :initarg :filename) (loader :accessor loader :initform #'load-image :initarg :loader) (char-size :reader char-size :initform nil :initarg :size)))
null
https://raw.githubusercontent.com/lispbuilder/lispbuilder/589b3c6d552bbec4b520f61388117d6c7b3de5ab/lispbuilder-sdl/sdl/font-definition.lisp
lisp
(in-package #:lispbuilder-sdl) (defclass font-definition () ((filename :accessor filename :initform nil :initarg :filename) (loader :accessor loader :initform #'load-image :initarg :loader) (char-size :reader char-size :initform nil :initarg :size)))
b8e554787c1c95b5bddb3cf26c2ea78b8e37aaaf9063ac97a28f44bf0c83d696
mhuebert/re-db
memo.cljc
(ns re-db.memo "Subscriptions: named reactive computations cached globally for deduplication of effort" (:refer-clojure :exclude [memoize fn defn]) (:require [clojure.core :as c] [clojure.string :as str] [re-db.reactive :as r :refer [add-on-dispose!]]) #?(:cljs (:require-macros re-db.mem...
null
https://raw.githubusercontent.com/mhuebert/re-db/9072c5ec6f6398da5c088517d676b7ffd5cdb838/src/main/re_db/memo.cljc
clojure
memoize, but with reference counting (& lifecycle) deref: activates swap: recomputes clear: disposes adds watches (removes old watches)
(ns re-db.memo "Subscriptions: named reactive computations cached globally for deduplication of effort" (:refer-clojure :exclude [memoize fn defn]) (:require [clojure.core :as c] [clojure.string :as str] [re-db.reactive :as r :refer [add-on-dispose!]]) #?(:cljs (:require-macros re-db.mem...
b8490035f01346be6766f0a2a39630dce22671947f0cc84e2cc8a37b27568a41
carl-eastlund/dracula
lang.rkt
#lang scheme (require scheme "scheme.ss") (provide (all-from-out scheme "scheme.ss"))
null
https://raw.githubusercontent.com/carl-eastlund/dracula/a937f4b40463779246e3544e4021c53744a33847/private/scheme/lang.rkt
racket
#lang scheme (require scheme "scheme.ss") (provide (all-from-out scheme "scheme.ss"))
fecea2f0eb3278095759373912f7f9c294765b9c1739cce0851e9dedfb8da7ee
tonyg/kali-scheme
write-image.scm
Copyright ( c ) 1993 , 1994 by and . Copyright ( c ) 1996 by NEC Research Institute , Inc. See file COPYING . Writing out a Scheme 48 image ; From vm/heap.scm ( % write - string " This is a Scheme 48 heap image file . " port ) ; (%newline port) ; (%write-page port) ; (%newline port) ; (%write-s...
null
https://raw.githubusercontent.com/tonyg/kali-scheme/79bf76b4964729b63fce99c4d2149b32cb067ac0/scheme/link/write-image.scm
scheme
From vm/heap.scm (%newline port) (%write-page port) (%newline port) (%write-string level port) (%write-number bytes-per-cell port) (%write-number (a-units->cells *newspace-begin*) port) (%write-number (a-units->cells *hp*) port) (%write-number restart-proc port) (%write-pa...
Copyright ( c ) 1993 , 1994 by and . Copyright ( c ) 1996 by NEC Research Institute , Inc. See file COPYING . Writing out a Scheme 48 image ( % write - string " This is a Scheme 48 heap image file . " port ) (define (write-image file start-proc id-string) (if (not (= 0 (remainder bits-per-cell b...
068f2c46e6533678f470745a1e8d02a25b88020b6c37c31f841ad1f7a1520f8f
zotonic/zotonic
mod_video.erl
@author < > 2014 @doc Video support for Zotonic . Converts all video files to mp4 and extracts a previes image . Copyright 2014 %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the ...
null
https://raw.githubusercontent.com/zotonic/zotonic/852f627c28adf6e5212e8ad5383d4af3a2f25e3f/apps/zotonic_mod_video/src/mod_video.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...
@author < > 2014 @doc Video support for Zotonic . Converts all video files to mp4 and extracts a previes image . Copyright 2014 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(mod_video). -author("M...
fd89ba9c046a7991cb3d34ab6a9746bba085861edac71ee6de5216defa105b1a
rescript-lang/rescript-editor-support
semantics.mli
val ast_to_comment : permissive:bool -> sections_allowed:Ast.sections_allowed -> parent_of_sections:Paths.Identifier.label_parent -> Ast.docs -> ((Comment.docs, Error.t) Error.result) Error.with_warnings
null
https://raw.githubusercontent.com/rescript-lang/rescript-editor-support/f6afacf93194036fafcff050cdaff150a85ccbe0/src/vendor/odoc_parser/semantics.mli
ocaml
val ast_to_comment : permissive:bool -> sections_allowed:Ast.sections_allowed -> parent_of_sections:Paths.Identifier.label_parent -> Ast.docs -> ((Comment.docs, Error.t) Error.result) Error.with_warnings
20df1e3aee4415d165b7a235a6d183d63f467cffd84c7f514a80a50e7043f451
ddmcdonald/sparser
pathogen.lisp
;;; -*- Mode:LISP; Syntax:Common-Lisp; Package:(SPARSER COMMON-LISP) -*- Copyright ( c ) 2007 BBNT Solutions LLC . All Rights Reserved copyright ( c ) 2013 - 2014 -- all rights reserved ;;; ;;; File: "pathogen" ;;; Module: "sl;disease:" version : June 2014 ;;category to represent named di...
null
https://raw.githubusercontent.com/ddmcdonald/sparser/304bd02d0cf7337ca25c8f1d44b1d7912759460f/Sparser/code/s/grammar/model/sl/disease/pathogen.lisp
lisp
-*- Mode:LISP; Syntax:Common-Lisp; Package:(SPARSER COMMON-LISP) -*- File: "pathogen" Module: "sl;disease:" category to represent named dieases, like bird flu. I conspicuously decide not to name this file disease in order to avoid confusion with the sl directory name we can use this category to build up...
Copyright ( c ) 2007 BBNT Solutions LLC . All Rights Reserved copyright ( c ) 2013 - 2014 -- all rights reserved version : June 2014 6/14/14 Turned off the HxNy generator . Better to analyze that as a category (in-package :sparser) (define-category pathogen :specializes physical-agent :mixin...
6ebcc12eb553b05baeb33532f77ce38bd999c004ab815712d0a2abb3cc62d368
pink-gorilla/goldly
test.cljs
(ns test (:require [adder] ;[funny] )) (adder/add 9 9) ;(funny/joke)
null
https://raw.githubusercontent.com/pink-gorilla/goldly/6f298355dbc99ce403763369bbe2a679655a3442/goldly-test/src/demo/notebook/test.cljs
clojure
[funny] (funny/joke)
(ns test (:require [adder] )) (adder/add 9 9)
37e4cb46646260aec8e2d3837e914480aaccd3602d5dfc64e473ddc384bcf287
danieljharvey/mimsa
Compilation.hs
{-# LANGUAGE OverloadedStrings #-} module Test.Utils.Compilation ( testProjectCompile, testModuleCompile, testWholeProjectCompile, ) where import Control.Monad.Except import Data.Foldable import Data.Hashable import qualified Data.Map.Strict as M import qualified Data.Text as T import qualified Data.Text....
null
https://raw.githubusercontent.com/danieljharvey/mimsa/e6b177dd2c38e8a67d6e27063ca600406b3e6b56/compiler/test/Test/Utils/Compilation.hs
haskell
# LANGUAGE OverloadedStrings # | evaluate an expression, then compile into a temp folder and return the main filename | compile a module into a temp folder and return the main filename parse a module from text | compile a project into a temp folder and return the main filename clean up old rubbish re-create path...
module Test.Utils.Compilation ( testProjectCompile, testModuleCompile, testWholeProjectCompile, ) where import Control.Monad.Except import Data.Foldable import Data.Hashable import qualified Data.Map.Strict as M import qualified Data.Text as T import qualified Data.Text.IO as T import qualified Language.M...
1eb6989ce08414cb222bdf40940d84781a44c3f524af2ce70fd9052e876f94ba
nuprl/gradual-typing-performance
typed-racket.rkt
#lang racket/base ;; Supporting code for `typed-racket.scrbl` ;; - Render & organize benchmarks ;; - Make L-N/M figures (provide ;; TEMPORARY ALOT MAX-OVERHEAD new-untyped-bars ) (provide benchmark->tex-file count-benchmarks count-new-oo-benchmarks bits ;; (-> String Any) ;; Use to format bitstring...
null
https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/paper/jfp-2016/typed-racket.rkt
racket
Supporting code for `typed-racket.scrbl` - Render & organize benchmarks - Make L-N/M figures TEMPORARY (-> String Any) Use to format bitstrings (-> String Any) Use to format benchmark names. Asserts that its argument is a correctly-spelled benchmark name. Count Anderson-Darling savings. (-> Natural) (-> Ben...
#lang racket/base ALOT MAX-OVERHEAD new-untyped-bars ) (provide benchmark->tex-file count-benchmarks count-new-oo-benchmarks bits bm count-savings ( - > ( ) ( Values Natural Natural ) ) i.e. the number of data rows with 10 values rather than 30 count-all-configurations get-lnm-table-d...
7c5de9c8fcd5ae4f9041f4e1452d0572f267f378d5801e36234599f7fdf95840
ruhler/smten
AST.hs
# LANGUAGE MultiParamTypeClasses # {-# LANGUAGE TypeSynonymInstances #-} module Smten.Runtime.Yices2.AST (Yices2(..), YTerm) where import Foreign import Foreign.C.String import Data.Char import Data.Functor import Data.Maybe import qualified Data.HashTable.IO as H import Numeric import Smten.Runtime.Bit import Sm...
null
https://raw.githubusercontent.com/ruhler/smten/16dd37fb0ee3809408803d4be20401211b6c4027/smten-lib/Smten/Runtime/Yices2/AST.hs
haskell
# LANGUAGE TypeSynonymInstances # -1 means we don't care, so just return the equivalent of False.
# LANGUAGE MultiParamTypeClasses # module Smten.Runtime.Yices2.AST (Yices2(..), YTerm) where import Foreign import Foreign.C.String import Data.Char import Data.Functor import Data.Maybe import qualified Data.HashTable.IO as H import Numeric import Smten.Runtime.Bit import Smten.Runtime.Yices2.FFI import Smten.Ru...
9df59ef64e40589668326a54026f09ab3b5b42b0eb99da756426638ba9f7058d
tmattio/spin
{{ project_snake }}.mli
(** {{ project_description }} *) val greet : string -> string * Returns a greeting message . { 4 Examples } { [ print_endline @@ greet " " ] } {4 Examples} {[ print_endline @@ greet "Jane" ]} *)
null
https://raw.githubusercontent.com/tmattio/spin/e9955109659d5246a492b6b1312a4c3eb001e86b/template/bin/template/lib/%7B%7B%20project_snake%20%7D%7D.mli
ocaml
* {{ project_description }}
val greet : string -> string * Returns a greeting message . { 4 Examples } { [ print_endline @@ greet " " ] } {4 Examples} {[ print_endline @@ greet "Jane" ]} *)
91f670448901c746154fd8213662d64b869e9ad9bff8f6f903ccd1f64b695b21
bhaskara/programmable-reinforcement-learning
crlm.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; concurrent-alisp/crlm.lisp ;; Contains the main code that defines what it means to execute an calisp program ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (in-package calisp) ;;;;;;;;;;;;;;;...
null
https://raw.githubusercontent.com/bhaskara/programmable-reinforcement-learning/8afc98116a8f78163b3f86076498d84b3f596217/lisp/concurrent-alisp/crlm.lisp
lisp
concurrent-alisp/crlm.lisp Contains the main code that defines what it means to execute an calisp program definitions the main components parameters of current run local state while executing thread-related bookkeeping actions and effectors choices lock...
(in-package calisp) (defclass <crlm> () ( (env :type env-user:<env> :reader env :initarg :env) (partial-program :type <calisp-program> :reader part-prog :initarg :part-prog) (observers :reader observers :writer set-observers :initarg ...
e1b8b8538738badfecd9e7217480eab4aa18eac00c3fbc6d5a7b786796ada3f0
mbj/mhs
Bounded.hs
module Data.Bounded (module Exports) where import Data.Bounded.Integral as Exports import Data.Bounded.Text as Exports import Data.Bounded.TypeLevel as Exports import Data.Conversions as Exports import Data.Conversions.FromType as Exports
null
https://raw.githubusercontent.com/mbj/mhs/3c0fe9e28c24ba633ed51ccbeeb154d6f2f82292/bounded/src/Data/Bounded.hs
haskell
module Data.Bounded (module Exports) where import Data.Bounded.Integral as Exports import Data.Bounded.Text as Exports import Data.Bounded.TypeLevel as Exports import Data.Conversions as Exports import Data.Conversions.FromType as Exports
9b8f99f8fd9af7d8a9591babf607f743f1db760f823d60ce04448774f9a77747
robert-strandh/Second-Climacs
buffer.lisp
(cl:in-package #:second-climacs-syntax-common-lisp-test) (defun buffer-from-string (string) (let* ((line (make-instance 'cluffer-standard-line:open-line)) (buffer (make-instance 'cluffer-standard-buffer:buffer :initial-line line))) (loop with line-number = 0 with item-number = 0 for char across stri...
null
https://raw.githubusercontent.com/robert-strandh/Second-Climacs/1d1bc30f4431d8ea7893aea58a63464e216377a4/Code/Syntax/Common-Lisp/Test/buffer.lisp
lisp
Mark a buffer line as modified without really modifying it by deleting that item again. Given a buffer, return a random line in that buffer.
(cl:in-package #:second-climacs-syntax-common-lisp-test) (defun buffer-from-string (string) (let* ((line (make-instance 'cluffer-standard-line:open-line)) (buffer (make-instance 'cluffer-standard-buffer:buffer :initial-line line))) (loop with line-number = 0 with item-number = 0 for char across stri...
a5033cc3558d3fcd5b4e2656447f98c08504165c8ace43b4d82dfb1e10eba0a8
jmbr/cl-buchberger
ring-element.lisp
(in-package :com.superadditive.cl-buchberger) Copyright ( C ) 2007 < > ;; ;; 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 3 of the License , or ;; (at your option) any l...
null
https://raw.githubusercontent.com/jmbr/cl-buchberger/4503216b4f2e3372daf4c9cca7b2e978cbc8256b/ring-element.lisp
lisp
This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public...
(in-package :com.superadditive.cl-buchberger) Copyright ( C ) 2007 < > it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License (defclass ring-element () (ba...
eff4dd9aa137387579a4a094021c42c87dae3ee89d7920153212cc1b66b29e57
chetmurthy/ensemble
util.mli
(**************************************************************) (* UTIL.MLI *) Author : , 4/95 (**************************************************************) open Trans (**************************************************************) type ('a,'b,'c) fun2arg = 'a -> 'b -> 'c type ('a,'b,'c,'d) fun3arg = 'a -> 'b ...
null
https://raw.githubusercontent.com/chetmurthy/ensemble/8266a89e68be24a4aaa5d594662e211eeaa6dc89/ensemble/server/util/util.mli
ocaml
************************************************************ UTIL.MLI ************************************************************ ************************************************************ ************************************************************ ************************************************************ Rea...
Author : , 4/95 open Trans type ('a,'b,'c) fun2arg = 'a -> 'b -> 'c type ('a,'b,'c,'d) fun3arg = 'a -> 'b -> 'c -> 'd external : ( ' a,'b,'c ) fun2arg - > ( ' a,'b,'c ) fun2arg = " % arity2 " external arity3 : ( ' a,'b,'c,'d ) fun3arg - > ( ' a,'b,'c,'d ) fun3arg = " % arity3 " external arity2 : ('a,'b,'c) ...
b2eefe00dcf338be3d782f5ecd5d68d39db0c4e42e43c2fde181f161d2540eaa
kindista/kindista
utilities.lisp
Copyright 2012 - 2021 CommonGoods Network , Inc. ;;; This file is part of Kindista . ;;; Kindista is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ;;; (at you...
null
https://raw.githubusercontent.com/kindista/kindista/b67cd5975247f633c74a9299539de7b66d202011/src/analytics/utilities.lisp
lisp
(at your option) any later version. without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. number of active users (&key date location distance) number of offers (&key date location distance) number of requests (&k...
Copyright 2012 - 2021 CommonGoods Network , Inc. This file is part of Kindista . Kindista is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or Kindista is distr...
9627897d40ead996d3c312d3c8c4fdd02c534770d4da1efb26016ece2d241578
pfdietz/ansi-test
revappend.lsp
;-*- Mode: Lisp -*- Author : Created : Sat Apr 19 22:37:43 2003 ;;;; Contains: Tests of REVAPPEND (deftest revappend.1 (let* ((x (list 'a 'b 'c)) (y (list 'd 'e 'f)) (xcopy (make-scaffold-copy x)) (ycopy (make-scaffold-copy y)) ) (let ((result (r...
null
https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/cons/revappend.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests of REVAPPEND Error tests
Author : Created : Sat Apr 19 22:37:43 2003 (deftest revappend.1 (let* ((x (list 'a 'b 'c)) (y (list 'd 'e 'f)) (xcopy (make-scaffold-copy x)) (ycopy (make-scaffold-copy y)) ) (let ((result (revappend x y))) (and (check-scaffold-copy...
bd1c73f97c9d51c7612bbbcdd93cd6a39b027433b38485f34d152e10e85e34b4
argp/bap
sequence.ml
(* ocamlbuild benchsuite/sequence.native -- snoc_front | tee >(./plot) *) module type SIG = sig type 'a t val empty : 'a t val cons : 'a t -> 'a -> 'a t val front : 'a t -> ('a t * 'a) option val map : ('a -> 'b) -> 'a t -> 'b t val snoc : 'a t -> 'a -> 'a t val rear : 'a t -> ('a t * 'a) option val of...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/batteries/benchsuite/sequence.ml
ocaml
ocamlbuild benchsuite/sequence.native -- snoc_front | tee >(./plot) take, drop copy pasted from core lib suboptimal when the measure does not depend on 'a optimized gc gc not benching the construction time, just the mapping time
module type SIG = sig type 'a t val empty : 'a t val cons : 'a t -> 'a -> 'a t val front : 'a t -> ('a t * 'a) option val map : ('a -> 'b) -> 'a t -> 'b t val snoc : 'a t -> 'a -> 'a t val rear : 'a t -> ('a t * 'a) option val of_enum : 'a BatEnum.t -> 'a t val enum : 'a t -> 'a BatEnum.t val of_ba...
a9b6f7d75bfa5ed9ab46f2f088c63786cf6a54a9f88df00969d429437451503d
zxymike93/SICP
340.rkt
(define x 10) (parallel-execute (lambda () (set! x (* x x))) (lambda () (set! x (* x x x)))) ;; 所有可能的结果为 ( * 10 10 ) - > ( set ! x 100 ) - > ( * 100 100 100 ) - > ( set ! x 1000000 ) - > 1000000 ( * 10 10 ) - > ( * 10 10 10 ) - > ( set ! x 100 ) - > ( set ! x 1000 ) - > 1000 ( * 10 10 ) - > ( * 10 10 10 ) -...
null
https://raw.githubusercontent.com/zxymike93/SICP/9d8e84d6a185bf4d7f28c414fc3359741384beb5/chapter3/340.rkt
racket
所有可能的结果为 所有的可能为
(define x 10) (parallel-execute (lambda () (set! x (* x x))) (lambda () (set! x (* x x x)))) ( * 10 10 ) - > ( set ! x 100 ) - > ( * 100 100 100 ) - > ( set ! x 1000000 ) - > 1000000 ( * 10 10 ) - > ( * 10 10 10 ) - > ( set ! x 100 ) - > ( set ! x 1000 ) - > 1000 ( * 10 10 ) - > ( * 10 10 10 ) - > ( set ! x...
c4a8930d1f89a8392e12869b0bb25303aa3b141479e91d1b4c0b9ce61ab481ae
solita/mnt-teet
navigation_logo.cljs
(ns teet.navigation.navigation-logo (:require [teet.navigation.navigation-style :as navigation-style] [herb.core :as herb :refer [<class]])) (defn logo-shield [{:keys [width height] :or {width "100%" height "100%"}}] [:svg#Layer_1 {:class (<class navigation-style/logo-shield-style) ...
null
https://raw.githubusercontent.com/solita/mnt-teet/2142692d3b91e9f2fc70bd9047cc62d6431536ed/app/frontend/src/cljs/teet/navigation/navigation_logo.cljs
clojure
(ns teet.navigation.navigation-logo (:require [teet.navigation.navigation-style :as navigation-style] [herb.core :as herb :refer [<class]])) (defn logo-shield [{:keys [width height] :or {width "100%" height "100%"}}] [:svg#Layer_1 {:class (<class navigation-style/logo-shield-style) ...
dd13a4740f238459fee04e210a173876126ab1a8aa1efbdd779472bcb161ef4c
wedesoft/aiscm
harris_stephens.scm
(use-modules (aiscm magick) (aiscm image) (aiscm core) (aiscm filters)) (define img (from-image (convert-image (to-image (read-image "star-ferry.jpg")) 'GRAY))) (define result (harris-stephens img 1.0 0.05)) (write-image (to-type <ubyte> (major (minor (+ (/ result 1000) 127) 255) 0)) "harris-stephens.jpg")
null
https://raw.githubusercontent.com/wedesoft/aiscm/2c3db8d00cad6e042150714ada85da19cf4338ad/tests/integration/harris_stephens.scm
scheme
(use-modules (aiscm magick) (aiscm image) (aiscm core) (aiscm filters)) (define img (from-image (convert-image (to-image (read-image "star-ferry.jpg")) 'GRAY))) (define result (harris-stephens img 1.0 0.05)) (write-image (to-type <ubyte> (major (minor (+ (/ result 1000) 127) 255) 0)) "harris-stephens.jpg")
03c4752b6b2bb6eb854dd4bdb72a2c600be9c753613d43555fa0c8ade820cc1a
ferd/erlang-history
group.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1996 - 2013 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Publi...
null
https://raw.githubusercontent.com/ferd/erlang-history/3d74dbc36f942dec3981e44a39454257ada71d37/src/3.1/group.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitatio...
Copyright Ericsson AB 1996 - 2013 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(group). -export([start/2, start/3...
b37fea595a7f21e24017b2250e3438270570735a4b494e5542cba198f4f450a9
myuon/claire
FOLTest.hs
module ClaireTest.FOLTest where import Test.Tasty.HUnit import Claire test_pFormula = [ testCase "Var a" $ pFormula "a" @?= Const "a" , testCase "a /\\ b" $ pFormula "a /\\ b" @?= Const "a" :/\: Const "b" , testCase "Top" $ pFormula "Top" @?= Top , testCase "Bottom" $ pFormula "Bottom" @?= Bottom , testCase...
null
https://raw.githubusercontent.com/myuon/claire/e14268ced1bbab2f099a93feb0f2a129cf8b6a8b/test/ClaireTest/FOLTest.hs
haskell
module ClaireTest.FOLTest where import Test.Tasty.HUnit import Claire test_pFormula = [ testCase "Var a" $ pFormula "a" @?= Const "a" , testCase "a /\\ b" $ pFormula "a /\\ b" @?= Const "a" :/\: Const "b" , testCase "Top" $ pFormula "Top" @?= Top , testCase "Bottom" $ pFormula "Bottom" @?= Bottom , testCase...
fca521d3c6a195ac6e2862da5fc9a95f5c39024f724c06f0fda7d3e57fbd109f
DHSProgram/DHS-Indicators-SPSS
HK_BHV_YNG_MR.sps
* Encoding: windows-1252. ***************************************************************************************************** Program: HK_BHV_YNG_MR.sps Purpose: Code for sexual behaviors among young people Data inputs: MR dataset Data outputs: coded variables Author: Shireen Assaf and translated to SPSS ...
null
https://raw.githubusercontent.com/DHSProgram/DHS-Indicators-SPSS/578e6d40eff9edebda7cf0db0d9a0a52a537d98c/Chap13_HK/HK_BHV_YNG_MR.sps
scheme
* Encoding: windows-1252. ***************************************************************************************************** Program: HK_BHV_YNG_MR.sps Purpose: Code for sexual behaviors among young people Data inputs: MR dataset Data outputs: coded variables Author: Shireen Assaf and translated to SPSS ...
b11d984d3304881c2076a59af77a211834a5abdf71dca795338e559a205f0aec
haroldcarr/learn-haskell-coq-ml-etc
FuelLevel.hs
# LANGUAGE FlexibleInstances # {-# LANGUAGE DataKinds #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TypeSynonymInstances #-} module FuelLevel wher...
null
https://raw.githubusercontent.com/haroldcarr/learn-haskell-coq-ml-etc/b4e83ec7c7af730de688b7376497b9f49dc24a0e/haskell/playpen/2020-07-07-harold-carr-phantom-existential-scratchpad/src/FuelLevel.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE NoImplicitPrelude # # LANGUAGE OverloadedStrings # # LANGUAGE TypeSynonymInstances # ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ------...
# LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # module FuelLevel where import Protolude import Refined import Test.Hspec newtype FuelLevel0 = FuelLevel0 { getFuelLevel0 :: Int } deriving (Eq, Ord, Num, Show) ...
759e4e34193f572aef7e855ca752d26bdab21d94fbd5cb9ec4b9b31fea09d8aa
juspay/atlas
Search.hs
# LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE QuasiQuotes # # LANGUAGE StandaloneDeriving # # LANGUAGE TemplateHaskell # # OPTIONS_GHC -Wno - orphans # | Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you m...
null
https://raw.githubusercontent.com/juspay/atlas/e64b227dc17887fb01c2554db21c08284d18a806/app/public-transport-bap/src/Storage/Tabular/Search.hs
haskell
# LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE QuasiQuotes # # LANGUAGE StandaloneDeriving # # LANGUAGE TemplateHaskell # # OPTIONS_GHC -Wno - orphans # | Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you m...
cb04eb618acf0b9a8e9947e270f0b8744bc651d65366de6f161dce83e7914721
pirapira/coq2rust
reduction.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/pirapira/coq2rust/22e8aaefc723bfb324ca2001b2b8e51fcc923543/checker/reduction.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** Compute the lift to be performed on...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Errors open Util open Ci...
5fc8fe1b55117188c32610cd935243d9e5d6b1c3c6debdace3da7ad1e1393201
inria-parkas/sundialsml
idasAkzoNob_dns.ml
* ----------------------------------------------------------------- * $ Revision : 1.2 $ * $ Date : 2009/09/30 23:33:29 $ * ----------------------------------------------------------------- * Programmer(s ): and @ LLNL * ----------------------------------------------------------------- * OCaml ...
null
https://raw.githubusercontent.com/inria-parkas/sundialsml/a1848318cac2e340c32ddfd42671bef07b1390db/examples/idas/serial/idasAkzoNob_dns.ml
ocaml
Problem Constants Final time. Total number of outputs. Fill user's data with the appropriate values for coefficients. Allocate N-vectors. Consistent IC for y, y'. Get y' = - res(t0, y, 0) Set tolerances and error control for quadratures. Print initial states FORWARD run. Check environment variable...
* ----------------------------------------------------------------- * $ Revision : 1.2 $ * $ Date : 2009/09/30 23:33:29 $ * ----------------------------------------------------------------- * Programmer(s ): and @ LLNL * ----------------------------------------------------------------- * OCaml ...
f50e6bbb5c6d0cb7abc80c32ce8461626e027d87631698f97be8a11ff8b9a5df
softwarelanguageslab/maf
R5RS_WeiChenRompf2019_the-little-schemer_ch2-5.scm
; Changes: * removed : 0 * added : 1 * swaps : 1 ; * negated predicates: 0 ; * swapped branches: 0 * calls to i d fun : 2 (letrec ((atom? (lambda (x) (if (not (pair? x)) (not (null? x)) #f))) (lat? (lambda (l) (<change> () atom?...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_WeiChenRompf2019_the-little-schemer_ch2-5.scm
scheme
Changes: * negated predicates: 0 * swapped branches: 0
* removed : 0 * added : 1 * swaps : 1 * calls to i d fun : 2 (letrec ((atom? (lambda (x) (if (not (pair? x)) (not (null? x)) #f))) (lat? (lambda (l) (<change> () atom?) (<change> (if (null? l...
16de0f94731376595dad92bfe5769fc968fa335574d3ab0eb8bbb9a23c04ce44
tlaplus/tlapm
isabelle_keywords.mli
Keywords of Isabelle . The implementation file ( ` .ml ` ) that corresponds to this interface file ( ` .mli ` ) is automatically generated . Copyright ( C ) 2012 INRIA and Microsoft Corporation The implementation file (`.ml`) that corresponds to this interface file (`.mli`) is automatically generated. C...
null
https://raw.githubusercontent.com/tlaplus/tlapm/158386319f5b6cd299f95385a216ade2b85c9f72/src/isabelle_keywords.mli
ocaml
Keywords of Isabelle . The implementation file ( ` .ml ` ) that corresponds to this interface file ( ` .mli ` ) is automatically generated . Copyright ( C ) 2012 INRIA and Microsoft Corporation The implementation file (`.ml`) that corresponds to this interface file (`.mli`) is automatically generated. C...
1d0605612897ec8c69f077b4988c2d9a2705b5d29541e75c8e75e67ac12ec781
erlang/otp
standard_error.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2009 - 2023 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/erlang/otp/2b397d7e5580480dc32fa9751db95f4b89ff029e/lib/kernel/src/standard_error.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 2009 - 2023 . 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(standard_error). -behaviour(supervisor_bridge). -export([start_link/0, init/1, terminate/2]). -define(NAME,...
3aad17cd5ead10b56cf6263ce108acb6727e5e6c311a48af95fcd93744383dc4
cbaggers/trivial-macroexpand-all
package.lisp
package.lisp (defpackage #:trivial-macroexpand-all (:use #:cl) (:export :macroexpand-all))
null
https://raw.githubusercontent.com/cbaggers/trivial-macroexpand-all/933270ac7107477de1bc92c1fd641fe646a7a8a9/package.lisp
lisp
package.lisp (defpackage #:trivial-macroexpand-all (:use #:cl) (:export :macroexpand-all))
61c345c948e166f7f5632d2f5054bf3d0bf4da7adfbaf06bcaa1f855b85b2906
nasa/Common-Metadata-Repository
index_set_generics.clj
(ns cmr.indexer.data.index-set-generics (:refer-clojure :exclude [update]) (:require [cheshire.core :as json] [clojure.java.io :as io] [clojure.string :as string] [cmr.common.config :as cfg :refer [defconfig]] [cmr.common.log :as log :refer (error)] [cmr.elastic-utils.index-util :as m] [cmr.ind...
null
https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/e740c38151ed3c045192eb55545212ce883c5855/indexer-app/src/cmr/indexer/data/index_set_generics.clj
clojure
By default, these are the indexes that all generics will have, these are mostly from the database table These are the types which are allowed to be expressed in the Index config file A changed environment variable takes precedence, then the config file, then the default. If the the environment variable = default v...
(ns cmr.indexer.data.index-set-generics (:refer-clojure :exclude [update]) (:require [cheshire.core :as json] [clojure.java.io :as io] [clojure.string :as string] [cmr.common.config :as cfg :refer [defconfig]] [cmr.common.log :as log :refer (error)] [cmr.elastic-utils.index-util :as m] [cmr.ind...
832994079b6436e49784c3736c7f968d46d9b3d1e298b78f03d36e67d7c6852e
balint99/sfpl
Pretty.hs
# LANGUAGE LambdaCase # -- | Pretty-printing elements of the core syntax. module SFPL.Syntax.Core.Pretty where import Prelude hiding ((<>)) import Control.Arrow (first, second) import Control.Monad.State import Data.Array.IArray hiding (Ix) import Data.Char (showLitChar) import Data.List (foldl') import SFPL.Base im...
null
https://raw.githubusercontent.com/balint99/sfpl/7cf8924e6f436704f578927ce2904e45caa76725/app/SFPL/Syntax/Core/Pretty.hs
haskell
| Pretty-printing elements of the core syntax. -------------------------------------- Printing types | Information context for printing types: The names of bound type variables, metavariables and defined types. @since 1.0.0 | Create an information context for types from the given list of type variable names, me...
# LANGUAGE LambdaCase # module SFPL.Syntax.Core.Pretty where import Prelude hiding ((<>)) import Control.Arrow (first, second) import Control.Monad.State import Data.Array.IArray hiding (Ix) import Data.Char (showLitChar) import Data.List (foldl') import SFPL.Base import SFPL.Syntax.Core.Types import qualified SFPL....
88e8bad9869e4e29e137b5907a862c3f94ca27e7b8531a098916f138620ed554
dianjin/cljs-agar
constants.cljc
(ns cljsagar.constants) ; ~~~~~~~~~~~~~~~~~~~~~~~~ ; Server ; ~~~~~~~~~~~~~~~~~~~~~~~~ (def tick-interval 50) ; ~~~~~~~~~~~~~~~~~~~~~~~~ ; Game physics ; ~~~~~~~~~~~~~~~~~~~~~~~~ (def min-x -750) (def min-y -750) (def max-x 750) (def max-y 750) (def target-edibles 60) (def cell-size 50) (def radius-boost 0.5) (def ...
null
https://raw.githubusercontent.com/dianjin/cljs-agar/e6d4bbb8fb76fd185e640c26fa2660c22da6a4f0/src/cljsagar/constants.cljc
clojure
~~~~~~~~~~~~~~~~~~~~~~~~ Server ~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ Game physics ~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ Colors ~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ Player constants ~~~~~~~~~~~~~~~~~~~~~~~~
(ns cljsagar.constants) (def tick-interval 50) (def min-x -750) (def min-y -750) (def max-x 750) (def max-y 750) (def target-edibles 60) (def cell-size 50) (def radius-boost 0.5) (def inverse-radius-speed-factor 3.88) (def player-colors [ "#4EB3DE" "#8DE0A6" "#FEDD30" "#f8875f" "#ff79b2" ]) (def num-c...
a74f8f4d4b7d188bbb244036c64a086b811bc4d761b545458921df5d25a43755
xhtmlboi/yocaml
log.mli
(** Describing log-level. *) type level = | Trace | Debug | Info | Warning | Alert
null
https://raw.githubusercontent.com/xhtmlboi/yocaml/8b67d643da565993c2adf6530ea98149774445bd/lib/yocaml/log.mli
ocaml
* Describing log-level.
type level = | Trace | Debug | Info | Warning | Alert
2c019d9872c24a4395f5fa9ea34be05f95860a13f91c3f12eca2a966488e7527
jonase/eastwood
red.clj
(ns testcases.refer-clojure-exclude.red (:require [clojure.test :refer [deftest is]])) (defn sut [x] (* x 2)) (deftest uses-update (update {} :f inc) (is (= 42 (sut 21))))
null
https://raw.githubusercontent.com/jonase/eastwood/605ab4a1d169270701200005792fa37b4c025405/cases/testcases/refer_clojure_exclude/red.clj
clojure
(ns testcases.refer-clojure-exclude.red (:require [clojure.test :refer [deftest is]])) (defn sut [x] (* x 2)) (deftest uses-update (update {} :f inc) (is (= 42 (sut 21))))
a006b76ceed0faf961053b218f93a0bebdbf98a171e8b56dd80b1d15302a6f53
JeffreyBenjaminBrown/hode
Window.hs
# LANGUAGE ScopedTypeVariables # module Hode.UI.Window ( hideReassurance -- ^ St -> St , showError, showReassurance -- ^ String -> St -> St , emptyLangCmdWindow -- ^ St -> St , replaceLangCmd -- ^ St -> St ) where import qualified Da...
null
https://raw.githubusercontent.com/JeffreyBenjaminBrown/hode/79a54a6796fa01570cde6903b398675c42954e62/hode-ui/Hode/UI/Window.hs
haskell
^ St -> St ^ String -> St -> St ^ St -> St ^ St -> St the last successful search run from this `Buffer`. Cannot be called from the `Cycles` `Buffer`, only from an ordinary search results `Buffer`.
# LANGUAGE ScopedTypeVariables # module Hode.UI.Window ( ) where import qualified Data.Set as S import Lens.Micro import qualified Data.Text.Zipper.Generic as TxZ import qualified Brick.Widgets.Edit as B import Hode.UI.Types.Names import Hode.UI.Types.State import Hode.UI.Types.Vie...
368811cbc1bd713d6d8ee6b5c0ce3ced3289021ab9d227fc2caa78c2ec4e543d
eeng/shevek
designer_test.clj
(ns shevek.acceptance.designer-test (:require [clojure.test :refer [deftest use-fixtures is]] [shevek.acceptance.test-helper :refer [wrap-acceptance-tests click click-text has-css? it has-title? has-text? login visit click-tid fill wait-exists refresh element-value has-no-text?]] [shevek.suppo...
null
https://raw.githubusercontent.com/eeng/shevek/7783b8037303b8dd5f320f35edee3bfbb2b41c02/test/clj/shevek/acceptance/designer_test.clj
clojure
This saves should open the Save As dialog again
(ns shevek.acceptance.designer-test (:require [clojure.test :refer [deftest use-fixtures is]] [shevek.acceptance.test-helper :refer [wrap-acceptance-tests click click-text has-css? it has-title? has-text? login visit click-tid fill wait-exists refresh element-value has-no-text?]] [shevek.suppo...
3c986362dd6f22449f6974defb06528d32f01888f1c1386edbe94154b545de6d
softwarelanguageslab/maf
R5RS_rosetta_quadratic-5.scm
; Changes: * removed : 0 * added : 1 * swaps : 0 * negated predicates : 1 ; * swapped branches: 0 ; * calls to id fun: 0 (letrec ((quadratic (lambda (a b c) (if (= a 0) (if (= b 0) 'fail (- (/ c b))) (let ((delta (- (* b b) (* 4 a c)))) ...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_rosetta_quadratic-5.scm
scheme
Changes: * swapped branches: 0 * calls to id fun: 0
* removed : 0 * added : 1 * swaps : 0 * negated predicates : 1 (letrec ((quadratic (lambda (a b c) (if (= a 0) (if (= b 0) 'fail (- (/ c b))) (let ((delta (- (* b b) (* 4 a c)))) (<change> ...
701b6a4a8d12a8c03d20f13acd9c9d536850592fb884454650152cd4c7ceb963
hidaris/thinking-dumps
lang.rkt
(module lang (lib "eopl.ss" "eopl") ;; language for EXPLICIT-REFS (require "drscheme-init.rkt") (provide (all-defined-out)) ;;;;;;;;;;;;;;;; grammatical specification ;;;;;;;;;;;;;;;; (define the-lexical-spec '((whitespace (whitespace) skip) (comment ("%" (arbno (not #\newline))) skip) (i...
null
https://raw.githubusercontent.com/hidaris/thinking-dumps/3fceaf9e6195ab99c8315749814a7377ef8baf86/eopl-solutions/chap4/4-12/store-passing/lang.rkt
racket
language for EXPLICIT-REFS grammatical specification ;;;;;;;;;;;;;;;; new for explicit-refs sllgen boilerplate ;;;;;;;;;;;;;;;;
(module lang (lib "eopl.ss" "eopl") (require "drscheme-init.rkt") (provide (all-defined-out)) (define the-lexical-spec '((whitespace (whitespace) skip) (comment ("%" (arbno (not #\newline))) skip) (identifier (letter (arbno (or letter digit "_" "-" "?"))) symbol) (number (...
2a7d9ffabdd9603b726b624164f636845ba70188d0ef3e35cd8e24eb15ffaef4
mirage/ocaml-git
traverse_bfs.mli
* Copyright ( c ) 2013 - 2017 < > * and < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVID...
null
https://raw.githubusercontent.com/mirage/ocaml-git/37c9ef41944b5b19117c34eee83ca672bb63f482/src/git/traverse_bfs.mli
ocaml
* Copyright ( c ) 2013 - 2017 < > * and < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVID...
bcf5688ce30be8c0a19ae09f3c845b09c371eb679900ac437803109d987f24ba
antalsz/choose-your-own-derivative
NFI.hs
# LANGUAGE KindSignatures , TypeOperators , PolyKinds , DataKinds , GADTs , TypeInType , TypeFamilies , UndecidableInstances , RankNTypes , ScopedTypeVariables , AllowAmbiguousTypes , TypeApplications , LambdaCase # TypeInType, TypeFamilies, UndecidableInstanc...
null
https://raw.githubusercontent.com/antalsz/choose-your-own-derivative/29897118314da416023977b317971ba4f840a5eb/src/NFI.hs
haskell
# OPTIONS_GHC -Wno-unused-matches # {-# OPTIONS_GHC -fno-warn-unused-variables #-} WARNING "Turn off -fno-warn-unused-variables" 'Mu z (DSubst w t y ('Mu y t) ('Var z))
# LANGUAGE KindSignatures , TypeOperators , PolyKinds , DataKinds , GADTs , TypeInType , TypeFamilies , UndecidableInstances , RankNTypes , ScopedTypeVariables , AllowAmbiguousTypes , TypeApplications , LambdaCase # TypeInType, TypeFamilies, UndecidableInstanc...
fdfe3f3a3b37d4d85459aff48b84b43e7c12e41bbaac9467348df00efac94e6f
mmontone/erudite
factorial.lisp
;; @code-indexing nil ;; This is the factorial function: (defun factorial (n) (if (<= n 1) ;; @chunk base-case 1 ;; @end chunk ;; @chunk recursive-case (* n (factorial (1- n))) ;; @end chunk )) ;; The base case is simple, just check for @verb{n=1} less: ;; @insert-chunk base...
null
https://raw.githubusercontent.com/mmontone/erudite/d421f4ed27faa636d5d4d768c4b64274023d63b2/test/factorial.lisp
lisp
@code-indexing nil This is the factorial function: @chunk base-case @end chunk @chunk recursive-case @end chunk The base case is simple, just check for @verb{n=1} less: @insert-chunk base-case @insert-chunk recursive-case
(defun factorial (n) (if (<= n 1) 1 (* n (factorial (1- n))) )) The recursive step is @verb{n x n - 1 } :
0305756f3c721e06358dbf9f9a3525a6509c5c05b8d07d908baf5d1fbd718c41
LexiFi/gen_js_api
main.ml
(* To run as a standalone binary, run the registered drivers *) let () = Ppxlib.Driver.standalone ()
null
https://raw.githubusercontent.com/LexiFi/gen_js_api/bee3b595898fdaf7db0366a9b1a009db9a6c6026/ppx-test/ppx/main.ml
ocaml
To run as a standalone binary, run the registered drivers
let () = Ppxlib.Driver.standalone ()
217d8a88880152ab410149f75eb711298c95e2197ca3e747b3ecb2fc982e7467
shayan-najd/NativeMetaprogramming
T8832.hs
# LANGUAGE CPP # I 'm concerned that the -ddump - simpl output may differ on 32 and 64 - bit platforms . So far I 've only put in output for 64 - bit platforms . module T8832 where import Data.Bits import Data.Int import Data.Word #define T(s,T) \ s :: T ; \ s = clearBit (bit 0) 0 ; \ T(i,Int) T(i8,Int8) T(i...
null
https://raw.githubusercontent.com/shayan-najd/NativeMetaprogramming/24e5f85990642d3f0b0044be4327b8f52fce2ba3/testsuite/tests/simplCore/should_compile/T8832.hs
haskell
# LANGUAGE CPP # I 'm concerned that the -ddump - simpl output may differ on 32 and 64 - bit platforms . So far I 've only put in output for 64 - bit platforms . module T8832 where import Data.Bits import Data.Int import Data.Word #define T(s,T) \ s :: T ; \ s = clearBit (bit 0) 0 ; \ T(i,Int) T(i8,Int8) T(i...
6afe3b5d008862b6a1a4b63ba1810874bd256d26ec705c2cc5f1d40fc2394574
fukamachi/psychiq
redis.lisp
(in-package :cl-user) (defpackage psychiq.util.redis (:use #:cl) (:import-from #:psychiq.specials #:*psychiq-namespace*) (:import-from #:alexandria #:with-gensyms #:starts-with-subseq) (:export #:with-redis-transaction #:*psychiq-namespace* ...
null
https://raw.githubusercontent.com/fukamachi/psychiq/602fbb51d4c871de5909ec0c5a159652f4ae9ad3/src/util/redis.lisp
lisp
(in-package :cl-user) (defpackage psychiq.util.redis (:use #:cl) (:import-from #:psychiq.specials #:*psychiq-namespace*) (:import-from #:alexandria #:with-gensyms #:starts-with-subseq) (:export #:with-redis-transaction #:*psychiq-namespace* ...
a5b00beec5f1eacc25654c1a2bb65cffb2ce8e2a0bdad9f644f5e89368aaf5ec
kupl/FixML
sub11.ml
type exp = V of var | P of var * exp | C of exp * exp and var = string let rec check : exp -> bool =fun e -> checking (e, makelist (e,[])) and makelist : exp * var list -> var list = fun (e, l) -> match (e,l) with | ((V v), l) -> l | ((P (v,e)), l)-> v::(makelist (e,l)) | ((C...
null
https://raw.githubusercontent.com/kupl/FixML/0a032a733d68cd8ccc8b1034d2908cd43b241fce/benchmarks/wellformedness/wellformedness/submissions/sub11.ml
ocaml
type exp = V of var | P of var * exp | C of exp * exp and var = string let rec check : exp -> bool =fun e -> checking (e, makelist (e,[])) and makelist : exp * var list -> var list = fun (e, l) -> match (e,l) with | ((V v), l) -> l | ((P (v,e)), l)-> v::(makelist (e,l)) | ((C...
2f3793e9db2967ae9b7d98f4d1889e745c199ff1013e87036a8bd0fc8110d06f
clj-kondo/clj-kondo
no_errors.clj
(ns corpus.no-errors) (defn foo [] 1) (foo)
null
https://raw.githubusercontent.com/clj-kondo/clj-kondo/626978461cbf113c376634cdf034d7262deb429f/corpus/no_errors.clj
clojure
(ns corpus.no-errors) (defn foo [] 1) (foo)
49cb6030db2e592748b7d2f655f484ecdd15687bef4d88ba7fdffc3e1314c16c
jrh13/hol-light
rqe_lib.ml
(* ---------------------------------------------------------------------- *) (* Refs *) (* ---------------------------------------------------------------------- *) let (+=) a b = a := !a + b;; let (+.=) a b = a := !a +. b;; (* ------------------------...
null
https://raw.githubusercontent.com/jrh13/hol-light/ea44a4cacd238d7fa5a397f043f3e3321eb66543/Rqe/rqe_lib.ml
ocaml
---------------------------------------------------------------------- Refs ---------------------------------------------------------------------- ---------------------------------------------------------------------- Timing ...
let (+=) a b = a := !a + b;; let (+.=) a b = a := !a +. b;; let ptime f x = let start_time = Sys.time() in try let result = f x in let finish_time = Sys.time() in let total_time = finish_time -. start_time in (result,total_time) with e -> let finish_time = Sys.time() in let total_...
c7bd4e3b9963ce3075ff249985236222b4da7cf3c0b4192ba549dd08849d4411
bgamari/ghc-dump
Reconstruct.hs
# LANGUAGE RecordWildCards # module GhcDump.Reconstruct (reconModule) where import Data.Foldable import Data.Bifunctor import Prelude hiding (readFile) import Data.Hashable import qualified Data.HashMap.Lazy as HM import GhcDump.Ast newtype BinderMap = BinderMap (HM.HashMap BinderId Binder) instance Hashable Binde...
null
https://raw.githubusercontent.com/bgamari/ghc-dump/0d69ff20c2d5dea7aa2422749bb1cfc8986787ea/ghc-dump-util/src/GhcDump/Reconstruct.hs
haskell
"recon" == "reconstruct"
# LANGUAGE RecordWildCards # module GhcDump.Reconstruct (reconModule) where import Data.Foldable import Data.Bifunctor import Prelude hiding (readFile) import Data.Hashable import qualified Data.HashMap.Lazy as HM import GhcDump.Ast newtype BinderMap = BinderMap (HM.HashMap BinderId Binder) instance Hashable Binde...
b6436a84563a19b73f859926ff831ba0bf128d3bfd0047efc381d57ffd044434
haskell/cabal
Benchmark.hs
# LANGUAGE CPP # {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # {-# LANGUAGE RankNTypes #-} ----------------------------------------------------------------------------- -- | -- Module : Distribution.Simple.Benchmark Copyright : 2003 - 2004 ...
null
https://raw.githubusercontent.com/haskell/cabal/ab24689731e9fb45efa6277f290624622a6c214f/Cabal/src/Distribution/Simple/Setup/Benchmark.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE RankNTypes # --------------------------------------------------------------------------- | Module : Distribution.Simple.Benchmark License : BSD3 Maintainer : Portability : portable Definition of the benchmarking command-line options. See: @Distribution....
# LANGUAGE CPP # # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # Copyright : 2003 - 2004 2007 module Distribution.Simple.Setup.Benchmark ( BenchmarkFlags(..), emptyBenchmarkFlags, defaultBenchmarkFlags, benchmarkCommand, benchmarkOptions' ) where import Prelude () import ...
292f7faa2fe13039e31265e90ecb70c472803119b578ddec980e01e7f76c8625
pirapira/bamboo
ethereum.mli
val word_bits : int val signature_bits : int type interface_typ = | InterfaceUint of int | InterfaceBytes of int | InterfaceAddress | InterfaceBool (** size of values of the interface type in bytes *) val interface_typ_size : interface_typ -> int type interface_arg = string * interface_typ * [ interpret_int...
null
https://raw.githubusercontent.com/pirapira/bamboo/1cca98e0b6d2579fe32885e66aafd0f5e25d9eb5/src/ast/ethereum.mli
ocaml
* size of values of the interface type in bytes * [case_heaer_signature_string h] returns the * signature of a fucntion as used for creating the * function hash. Like "pay(address)" * TODO: cite some document here.
val word_bits : int val signature_bits : int type interface_typ = | InterfaceUint of int | InterfaceBytes of int | InterfaceAddress | InterfaceBool val interface_typ_size : interface_typ -> int type interface_arg = string * interface_typ * [ interpret_interface_type ] parses " uint " into InterfaceUint 256 ...
faa8c98bec99be08cfe4f303ad25e615aa22d843a82a2b63246d716a6474f5b3
Bogdanp/koyo
user.rkt
#lang racket/base (require component db deta gregor koyo/database koyo/hasher koyo/profiler koyo/random racket/contract racket/string threading) ;; user ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (provide ...
null
https://raw.githubusercontent.com/Bogdanp/koyo/9fac1c0430e34030b430b82b2e6228819642b448/koyo-lib/blueprints/standard/app-name-here/components/user.rkt
racket
user ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; password reset ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; user-manager ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
#lang racket/base (require component db deta gregor koyo/database koyo/hasher koyo/profiler koyo/random racket/contract racket/string threading) (provide (schema-out user)) (define-schema user ([id id/f #:primary-key #:auto...
d140ff7242c4f6618b35efb47cf3a7b64c343ee0bfa59c25a4c45dd50452e979
pouriya/cfg
cfg_filter.erl
%%% ---------------------------------------------------------------------------- @author < > %%% @hidden %% ----------------------------------------------------------------------------- -module(cfg_filter). -author(''). %% ----------------------------------------------------------------------------- %% Exports: %%...
null
https://raw.githubusercontent.com/pouriya/cfg/b03eb73549e2fa11b88f91db73f700d7e6ef4617/src/cfg_filter.erl
erlang
---------------------------------------------------------------------------- @hidden ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- Exports: API -----------------------------------------------------------...
@author < > -module(cfg_filter). -author(''). -export( [ do/2, get_module_filters/1, get_application_filters/1 ] ). -callback config_filters() -> Filters when Filters :: [] | [Filter], Filter :: {Key :: atom(), KeyFilter, DefaultValue :: term()} | {Key :: atom...
26217e27bcba8d33315d57e957587d1ed6390c94fa04a79eb66352510dddba92
tezos/tezos-mirror
proof_helpers.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2023 Nomadic Labs , < > (* ...
null
https://raw.githubusercontent.com/tezos/tezos-mirror/adb9ff09cb5f0a9cae8c8d8924efee6c4764399a/src/proto_alpha/lib_sc_rollup/proof_helpers.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2023 Nomadic Labs , < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN A...
327a473ed817b2792e7c229a4e8044c0dca327f6323954caeb8c2498c45e6562
mariorz/covid19-mx-time-series
sinave.clj
(ns covid19-mx-time-series.sinave (:require [clj-http.client :as http] [clojure.data.json :as json] [clj-time.core :as t] [clj-time.format :as f] [clj-time.local :as l])) (defn fetch-daily-states [] (let [map-url "" headers {:headers {"Co...
null
https://raw.githubusercontent.com/mariorz/covid19-mx-time-series/dde1183e8be502a85f7d1abf3aff25abdb176156/src/covid19_mx_time_series/sinave.clj
clojure
(ns covid19-mx-time-series.sinave (:require [clj-http.client :as http] [clojure.data.json :as json] [clj-time.core :as t] [clj-time.format :as f] [clj-time.local :as l])) (defn fetch-daily-states [] (let [map-url "" headers {:headers {"Co...
874d1c2d29840a168b2115623af2736db43cf3e8ddd8c40bc407160cde508e40
tezos/tezos-mirror
sampler.ml
open G * { 2 Core type definitions } (** ['kind cfg] is the type of the configuration of the network sampler, parametric over node ['kind]. *) type 'kind cfg = { bounds : vertex -> int * int; (** [bounds v] is the inclusive interval in which the degree of [v] should be. *) kind : vertex -> 'kind; (** [...
null
https://raw.githubusercontent.com/tezos/tezos-mirror/bbca5502eb430d3915ad697259d3bffc62c2d01d/devtools/simdal/lib/sampler.ml
ocaml
* ['kind cfg] is the type of the configuration of the network sampler, parametric over node ['kind]. * [bounds v] is the inclusive interval in which the degree of [v] should be. * [kind v] is the kind of [v]. * [compat k1 k2] is a symmetric and reflexive relation on kinds. It does not need to be tr...
open G * { 2 Core type definitions } type 'kind cfg = { bounds : vertex -> int * int; compat : 'kind -> 'kind -> bool; edges : Edge.t array; } type state = | State : { degrees : int Vertex_map.t; error : float; cfg : 'kind cfg; } -> state let graph (State {graph; _}) = graph le...
d3424fdf97e8df932c4a051315f5615442a88eeffb55f69f477de702a4a058ac
kiselgra/chipotle
night.lisp
(require :chipotle) (in-package :chipotle) (lisp (defun atrous (filter n) (flet ((blow-up-row (row) (let ((x (list (first row)))) (loop for y in (rest row) do (setf x (append x (make-list (1- (expt 2 n)) :initial-element 0) (list y)))) (list x))) (empty-row () (make-list (1...
null
https://raw.githubusercontent.com/kiselgra/chipotle/392525f14433c334f817ba71c7090fda05e41ef7/examples/src/night.lisp
lisp
(require :chipotle) (in-package :chipotle) (lisp (defun atrous (filter n) (flet ((blow-up-row (row) (let ((x (list (first row)))) (loop for y in (rest row) do (setf x (append x (make-list (1- (expt 2 n)) :initial-element 0) (list y)))) (list x))) (empty-row () (make-list (1...
641bf94a3846ba632d13727f7db320f59a03931b711c8b48ba8ca6d928541c27
rajasegar/cl-djula-tailwind
tailwind-colors.lisp
(defpackage cl-djula-tailwind.colors (:use :cl) (:export :*slate-colors* :*gray-colors* :*zinc-colors* :*neutral-colors* :*stone-colors* :*red-colors* :*orange-colors* :*amber-colors* :*yellow-colors* :*lime-colors* :*green-colors* :*emerald-colors* ...
null
https://raw.githubusercontent.com/rajasegar/cl-djula-tailwind/eeef6e3239d55848c76fa2cfeac8a7eead854480/src/tailwind-colors.lisp
lisp
(defpackage cl-djula-tailwind.colors (:use :cl) (:export :*slate-colors* :*gray-colors* :*zinc-colors* :*neutral-colors* :*stone-colors* :*red-colors* :*orange-colors* :*amber-colors* :*yellow-colors* :*lime-colors* :*green-colors* :*emerald-colors* ...
c32a87eefd753a3535ab959abee5a019883c9cecff152a93a0eb36d8bdc9f5ac
aharisu/Gauche-CV
contour-scanner.scm
(use cv) (let* ([src (cv-load-image "data/image/lenna.png")] [gray (make-image (ref src 'width) (ref src 'height) IPL_DEPTH_8U 1)] [canny (make-image (ref src 'width) (ref src 'height) IPL_DEPTH_8U 1)] [result (cv-clone-image src)]) (cv-cvt-color src gray CV_BGR2GRAY) (cv-canny gray canny 50 2...
null
https://raw.githubusercontent.com/aharisu/Gauche-CV/5e4c51501431c72270765121ea4d92693f11d60b/sample/contour-scanner.scm
scheme
(use cv) (let* ([src (cv-load-image "data/image/lenna.png")] [gray (make-image (ref src 'width) (ref src 'height) IPL_DEPTH_8U 1)] [canny (make-image (ref src 'width) (ref src 'height) IPL_DEPTH_8U 1)] [result (cv-clone-image src)]) (cv-cvt-color src gray CV_BGR2GRAY) (cv-canny gray canny 50 2...
ec572497c14c075a0b9dfe1067b374b288b696cf1de04aa9df32147def96e9fe
WhatsApp/eqwalizer
app_a_test_helpers.erl
Copyright ( c ) Meta Platforms , Inc. and affiliates . All rights reserved . %%% This source code is licensed under the Apache 2.0 license found in %%% the LICENSE file in the root directory of this source tree. -module(app_a_test_helpers). -typing([eqwalizer]). -compile([export_all, nowarn_export_all]). -spec fa...
null
https://raw.githubusercontent.com/WhatsApp/eqwalizer/9935940d71ef65c7bf7a9dfad77d89c0006c288e/mini-elp/test_projects/standard/app_a/test/app_a_test_helpers.erl
erlang
the LICENSE file in the root directory of this source tree.
Copyright ( c ) Meta Platforms , Inc. and affiliates . All rights reserved . This source code is licensed under the Apache 2.0 license found in -module(app_a_test_helpers). -typing([eqwalizer]). -compile([export_all, nowarn_export_all]). -spec fail() -> error. fail() -> wrong_ret. -spec ok() -> ok. ok() -> ok.
0eafb4835209127f6825c4ed9a72ec61840294058a10f9fffa855b4d4af1fda5
AccelerateHS/accelerate-llvm
InlineAssembly.hs
# LANGUAGE FlexibleInstances # # LANGUAGE GADTs # # LANGUAGE MultiParamTypeClasses # {-# OPTIONS_HADDOCK hide #-} -- | Module : . InlineAssembly Copyright : [ 2015 .. 2020 ] The Accelerate Team -- License : BSD3 -- Maintainer : < > -- Stability : experimental Portabil...
null
https://raw.githubusercontent.com/AccelerateHS/accelerate-llvm/cf081587fecec23a19f68bfbd31334166868405e/accelerate-llvm/src/LLVM/AST/Type/InlineAssembly.hs
haskell
# OPTIONS_HADDOCK hide # | License : BSD3 Stability : experimental | The 'call' instruction might be a label or inline assembly assembly constraints has side effects? align stack?
# LANGUAGE FlexibleInstances # # LANGUAGE GADTs # # LANGUAGE MultiParamTypeClasses # Module : . InlineAssembly Copyright : [ 2015 .. 2020 ] The Accelerate Team Maintainer : < > Portability : non - portable ( GHC extensions ) module LLVM.AST.Type.InlineAssembly ( module ...
728343fdedf501f769ad17311444b41d737b7ea4f0e6bfa994a052a6eb5ea38d
archimag/cliki2
auth-core.lisp
;;;; auth-core.lisp (in-package #:cliki2) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;; core ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (defun pack-auth-cookie (name password &key (version 1) (date (...
null
https://raw.githubusercontent.com/archimag/cliki2/f0b6910f040907c70fd842ed76472af2d645c984/src/auth-core.lisp
lisp
auth-core.lisp core get-auth-cookie
(in-package #:cliki2) (defun pack-auth-cookie (name password &key (version 1) (date (get-universal-time))) (format nil "~A|~A|~A|~A" version name password date)) (defun encrypt-auth-cookie (name password &key (version 1) (date (get-universal-time))) (let ((result (ironclad:ascii-string-to-byte-array ...
2d5710e3dba3277182dbe02aaa6bedf69bafac9b648b87c605c15bd1ffb6d732
realworldocaml/book
typerepable.ml
open Std_internal module type S = sig type t val typerep_of_t : t Typerep.t val typename_of_t : t Typename.t end module type S1 = sig type 'a t val typerep_of_t : 'a Typerep.t -> 'a t Typerep.t val typename_of_t : 'a Typename.t -> 'a t Typename.t end module type S2 = sig type ('a, 'b) t val typere...
null
https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/typerep/lib/typerepable.ml
ocaml
open Std_internal module type S = sig type t val typerep_of_t : t Typerep.t val typename_of_t : t Typename.t end module type S1 = sig type 'a t val typerep_of_t : 'a Typerep.t -> 'a t Typerep.t val typename_of_t : 'a Typename.t -> 'a t Typename.t end module type S2 = sig type ('a, 'b) t val typere...
2d997f54dc8c60843edf69b805e855ef879310a9be872624ae17cb3eb9cca16b
glguy/intcode
doctests.hs
import Test.DocTest main :: IO () main = doctest ["-isrc", "Intcode", "Intcode.Machine", "Intcode.Opcode", "Intcode.Parse"]
null
https://raw.githubusercontent.com/glguy/intcode/4dddd6cc4d412fe63dcbb1bd1c703aecadc12b42/doctests.hs
haskell
import Test.DocTest main :: IO () main = doctest ["-isrc", "Intcode", "Intcode.Machine", "Intcode.Opcode", "Intcode.Parse"]