_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
467974d8ebc9815892ed6c23308ef1c8603dbea4947ce5ee71dbe2a243f297ab
chetmurthy/ensemble
socksupp.mli
(**************************************************************) (* SOCKSUPP.MLI *) Author : , 8/97 (**************************************************************) val is_unix : bool val unit : 'a -> unit val print_line : string -> unit val max_header_len : int
null
https://raw.githubusercontent.com/chetmurthy/ensemble/8266a89e68be24a4aaa5d594662e211eeaa6dc89/ensemble/server/socket/s/socksupp.mli
ocaml
************************************************************ SOCKSUPP.MLI ************************************************************
Author : , 8/97 val is_unix : bool val unit : 'a -> unit val print_line : string -> unit val max_header_len : int
37fe6c4d5661e1931727e17d730b471061021839580e015550f2376649178b7f
gonzojive/parenscript
ps-runtime-lib.lisp
(in-package #:parenscript) ;;; Script of library functions you can include with your own code to ;;; provide standard Lisp functionality. (defparameter *ps-lisp-library* '(progn (defun mapcar (fun &rest arrs) (let ((result-array (make-array))) (if (= 1 (length arrs)) (dolist (element (...
null
https://raw.githubusercontent.com/gonzojive/parenscript/5d4772369e28c33cd3522ad46d3de357f7cacf70/runtime/ps-runtime-lib.lisp
lisp
Script of library functions you can include with your own code to provide standard Lisp functionality. the use of init here is actually a bit broken wrt null
(in-package #:parenscript) (defparameter *ps-lisp-library* '(progn (defun mapcar (fun &rest arrs) (let ((result-array (make-array))) (if (= 1 (length arrs)) (dolist (element (aref arrs 0)) ((@ result-array push) (fun element))) (dotimes (i (length (aref arrs 0...
a397638edce925db0b38594ccc74f5012582ffa9d36c0c6850155f79a1e61cde
haskell/happy
test.hs
import Data.List (intercalate) import GHC.Conc (numCapabilities) import System.Process (system) import System.Exit (exitWith) main = do let jFlag = "-j" ++ show numCapabilities let cmd = ["make", jFlag, "-k", "-C", "tests", "clean", "all"] system (intercalate " " cmd) >>= exitWith
null
https://raw.githubusercontent.com/haskell/happy/934763408f8df29180c63d7a2c69be0b84030967/test.hs
haskell
import Data.List (intercalate) import GHC.Conc (numCapabilities) import System.Process (system) import System.Exit (exitWith) main = do let jFlag = "-j" ++ show numCapabilities let cmd = ["make", jFlag, "-k", "-C", "tests", "clean", "all"] system (intercalate " " cmd) >>= exitWith
de977409ccd4d9df185184faf2fc685da8102c57bd63d0dd2d20a1a17d715161
cloudfakers/amifat
handler.clj
(ns amifat.handler (:use compojure.core amifat.views) (:require [compojure.route :as route])) (defroutes app-routes (GET "/" [] (indexpage)) (route/resources "/") (route/not-found (notfound)))
null
https://raw.githubusercontent.com/cloudfakers/amifat/3c0053b631228efd0e2f560398d365b8b37ad6d4/src/amifat/handler.clj
clojure
(ns amifat.handler (:use compojure.core amifat.views) (:require [compojure.route :as route])) (defroutes app-routes (GET "/" [] (indexpage)) (route/resources "/") (route/not-found (notfound)))
66f28b332f81cc7fd867704f965f4f7460a765c3468c217fa602999a349fb02f
spurious/sagittarius-scheme-mirror
%3a124.scm
-*- mode : scheme ; coding : utf-8 ; -*- ;;; ;;; srfi/%3a124.scm - SRFI-124 Ephemerons ;;; Copyright ( c ) 2010 - 2015 < > ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: ;;; ;;; 1...
null
https://raw.githubusercontent.com/spurious/sagittarius-scheme-mirror/53f104188934109227c01b1e9a9af5312f9ce997/sitelib/srfi/%253a124.scm
scheme
coding : utf-8 ; -*- srfi/%3a124.scm - SRFI-124 Ephemerons Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of...
Copyright ( c ) 2010 - 2015 < > " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING (library (srfi :124) (export :all) (...
f7287c5c476c236db3415c928b646309928c6d718a977749ba6ed278212d8349
nikodemus/SBCL
aliencomp.lisp
transforms and other stuff used to compile ALIEN operations This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the ;;;; public domain. The software is ...
null
https://raw.githubusercontent.com/nikodemus/SBCL/3c11847d1e12db89b24a7887b18a137c45ed4661/src/compiler/aliencomp.lisp
lisp
more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. DEFKNOWNs cosmetic transforms Shouldn't be necessary. Shouldn't be necessary. support for aliens on the heap shouldn't be necessary suppo...
transforms and other stuff used to compile ALIEN operations This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB!C") (defknown %sap-alien (system-area-pointe...
a90aff3991ea68cdc1aa2ecdf88fcc1ff5c6c5d73ec2de074e37491b853a7de9
aantron/hyper
headers.ml
This file is part of Hyper , released under the MIT license . See LICENSE.md for details , or visit . Copyright 2022 for details, or visit . Copyright 2022 Anton Bachin *) module Message = Dream_pure.Message let set_host_header inner_handler request = let uri = Uri.of_string (Message.targ...
null
https://raw.githubusercontent.com/aantron/hyper/afcb009aabac9641ea889720ef0beb126bec426d/src/logic/headers.ml
ocaml
This file is part of Hyper , released under the MIT license . See LICENSE.md for details , or visit . Copyright 2022 for details, or visit . Copyright 2022 Anton Bachin *) module Message = Dream_pure.Message let set_host_header inner_handler request = let uri = Uri.of_string (Message.targ...
76325a7522b87c76256b4ec4344c0f3e9dcb96eb14c2d619279315c75e19d7b5
40ants/reblocks
templates.lisp
(uiop:define-package #:reblocks/doc/templates (:use #:cl) (:import-from #:40ants-doc #:defsection)) (in-package #:reblocks/doc/templates) (defsection @templates (:title "Templates" :ignore-words ("CLOS" "URI")) " Template were someth...
null
https://raw.githubusercontent.com/40ants/reblocks/2283d23a44252a59b5d7bef066869d9f1e950460/src/doc/templates.lisp
lisp
for example
(uiop:define-package #:reblocks/doc/templates (:use #:cl) (:import-from #:40ants-doc #:defsection)) (in-package #:reblocks/doc/templates) (defsection @templates (:title "Templates" :ignore-words ("CLOS" "URI")) " Template were someth...
68da04cc5d957db0ea71784281a56e2af09581df6894edf5d55138f4f019d675
strint/sicpAns
2025_list_pick_7.scm
(define l1 (list 1 3 (list 5 7) 9)) (define l2 (list (list 7))) (define l3 (list 1 (list 2 (list 3 (list 4 (list 5 (list 6 7))))))) (define l1_7 (car (cdr (car (cdr (cdr l1)))))) (define l2_7 (car (car l2))) (define l3_7 (car (cdr (car (cdr (car (cdr (car (cdr (car (cdr (car (cdr l3)))))))))))))
null
https://raw.githubusercontent.com/strint/sicpAns/efc4bdfaab7583117d42f2141d4b3b9e12792b79/2.2.2-2_ListTreeSet/2025_list_pick_7.scm
scheme
(define l1 (list 1 3 (list 5 7) 9)) (define l2 (list (list 7))) (define l3 (list 1 (list 2 (list 3 (list 4 (list 5 (list 6 7))))))) (define l1_7 (car (cdr (car (cdr (cdr l1)))))) (define l2_7 (car (car l2))) (define l3_7 (car (cdr (car (cdr (car (cdr (car (cdr (car (cdr (car (cdr l3)))))))))))))
a64486e4d101d55fe84a6bcda19b403f9d2fe94c5307499106bc006d339835a4
arsenm/Clutterhs
TimelineTest.hs
import Prelude import qualified Prelude as P import Graphics.UI.Clutter import System.Glib.Signals import Control.Monad import System.IO main = do clutterInit tml <- timelineNew 9001 tmlClone <- timelineClone tml --test clone cloneDur <- timelineGetDuration tmlClone cloneDel <- timelineGetDelay tmlClone ...
null
https://raw.githubusercontent.com/arsenm/Clutterhs/ad3390895264c46906b5d3d954c4b04b04d96b1d/clutter/demo/TimelineTest.hs
haskell
test clone
import Prelude import qualified Prelude as P import Graphics.UI.Clutter import System.Glib.Signals import Control.Monad import System.IO main = do clutterInit tml <- timelineNew 9001 tmlClone <- timelineClone tml cloneDur <- timelineGetDuration tmlClone cloneDel <- timelineGetDelay tmlClone putStrLn ("C...
4cf3f1a25ef7334c362fb0cc3c51358f1b28dd3fcb130281be524ebf0b122e54
pirapira/coq2rust
cbytegen.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/kernel/cbytegen.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** Compilation of variables + computin...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Author : as part of the b...
df6ad61aa8720ea4fc913eabc9aefb9cb37690ca54af7370cf98ceac568bc5c7
avh4/elm-format
Shared.hs
# LANGUAGE TypeFamilies # # LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # module ElmFormat.AST.Shared where import Control.Applicative import Data.Coapplicative import Data.Int (Int64) import GHC.Generics import Data.Text (Text) import qualified Data.Text as Text import qualified Data.Tuple as Tuple import qualified...
null
https://raw.githubusercontent.com/avh4/elm-format/3979db39e7404561fa84aab1186b6eb37a25ff73/elm-format-lib/src/ElmFormat/AST/Shared.hs
haskell
# LANGUAGE TypeFamilies # # LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # module ElmFormat.AST.Shared where import Control.Applicative import Data.Coapplicative import Data.Int (Int64) import GHC.Generics import Data.Text (Text) import qualified Data.Text as Text import qualified Data.Tuple as Tuple import qualified...
7deeb7cc1c1399192b917056c80c9105cfa31d5faf6897d5df710faec178c843
helium/miner
miner_transfer_hotspot_txn_SUITE.erl
RELOC MOVE to core -module(miner_transfer_hotspot_txn_SUITE). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). -include_lib("kernel/include/inet.hrl"). -include_lib("blockchain/include/blockchain_vars.hrl"). -include("miner_ct_macros.hrl"). -define(TIMEOUT, 15000). -export([ ...
null
https://raw.githubusercontent.com/helium/miner/74aa1acaa611372e9e4db7694c540c12b3c4d5ed/test/miner_transfer_hotspot_txn_SUITE.erl
erlang
common test callbacks VarCommitInterval = ?config(var_commit_interval, Config), rule out rewards integrate genesis block Get both consensus and non consensus miners check initial balances ensure seller owns the gateway make transfer hotspot transaction wait until all the nodes agree the payment has happened e...
RELOC MOVE to core -module(miner_transfer_hotspot_txn_SUITE). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). -include_lib("kernel/include/inet.hrl"). -include_lib("blockchain/include/blockchain_vars.hrl"). -include("miner_ct_macros.hrl"). -define(TIMEOUT, 15000). -export([ ...
df4f87403e632920380bd21275f6ab8f548366b4b6cd9d407ec1e9b5ecf8f4b9
artmsh/clj-aql
project.clj
(defproject clj-aql "0.2.0-SNAPSHOT" :description "Clojure DSL for ArangoDB query language" :url "-aql" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[cheshire "5.8.0"]] :profiles {:dev {:dependencies [[org.clojure/clojure "1.9.0"] [org...
null
https://raw.githubusercontent.com/artmsh/clj-aql/70c47a53253e4c903d4ea501dec46ed6c16a8a0e/project.clj
clojure
(defproject clj-aql "0.2.0-SNAPSHOT" :description "Clojure DSL for ArangoDB query language" :url "-aql" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[cheshire "5.8.0"]] :profiles {:dev {:dependencies [[org.clojure/clojure "1.9.0"] [org...
93d64ad273ba52d6a39a0d226f9138d1baedd94ec078177ffbd84a2048458270
elastic/eui-cljs
icon_eye.cljs
(ns eui.icon-eye (:require ["@elastic/eui/lib/components/icon/assets/eye.js" :as eui])) (def eye eui/icon)
null
https://raw.githubusercontent.com/elastic/eui-cljs/ad60b57470a2eb8db9bca050e02f52dd964d9f8e/src/eui/icon_eye.cljs
clojure
(ns eui.icon-eye (:require ["@elastic/eui/lib/components/icon/assets/eye.js" :as eui])) (def eye eui/icon)
8fd080bfe38e12a5b2b3190b0cf4343c335db75a86b5e8c32c53d0ab4065200e
sgbj/MaximaSharp
dqk61.lisp
;;; Compiled by f2cl version: ( " f2cl1.l , v 46c1f6a93b0d 2012/05/03 04:40:28 toy $ " " f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " ;;; "f2cl5.l,v 46c1f6a93b0d 2012/05/03 04:40:28 toy $...
null
https://raw.githubusercontent.com/sgbj/MaximaSharp/75067d7e045b9ed50883b5eb09803b4c8f391059/Test/bin/Debug/Maxima-5.30.0/share/maxima/5.30.0/src/numerical/slatec/dqk61.lisp
lisp
Compiled by f2cl version: "f2cl5.l,v 46c1f6a93b0d 2012/05/03 04:40:28 toy $" Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t) (:coerce-assigns :as-needed) (:array-type ':array) (:array-slicing t) (:declare-common nil) (:float-format double-float))
( " f2cl1.l , v 46c1f6a93b0d 2012/05/03 04:40:28 toy $ " " f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl6.l , v 1d5cbacbb977 2008/08/24 00:56:27 rtoy $ " " macros.l , v fceac53...
a2e467a486e985e69984d9686d98a0055abfd7ec8d772b09e16a23268960473a
restyled-io/restyled.io
RepoSearch.hs
module Restyled.Admin.RepoSearch ( SearchResults(..) , searchRepos ) where import Restyled.Prelude import qualified Data.Text as T import Restyled.Api.Repo (ApiRepo, apiRepo) import Restyled.DB import Restyled.Foundation import Restyled.Models import Restyled.Paginate import Restyled.Settings newtype Sea...
null
https://raw.githubusercontent.com/restyled-io/restyled.io/a983033d26404890ba276f585b509242653d0901/src/Restyled/Admin/RepoSearch.hs
haskell
module Restyled.Admin.RepoSearch ( SearchResults(..) , searchRepos ) where import Restyled.Prelude import qualified Data.Text as T import Restyled.Api.Repo (ApiRepo, apiRepo) import Restyled.DB import Restyled.Foundation import Restyled.Models import Restyled.Paginate import Restyled.Settings newtype Sea...
061cecf3e692996a4f26d94c0e867457448c81687b7889556c9cf56609387df0
avsm/mirage-duniverse
keepalive.ml
* Copyright ( c ) 2017 Docker Inc * * 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 PROVIDED " AS IS " AND TH...
null
https://raw.githubusercontent.com/avsm/mirage-duniverse/983e115ff5a9fb37e3176c373e227e9379f0d777/ocaml_modules/tcpip/src/tcp/keepalive.ml
ocaml
Wait until [time] has gone past we don't want to send back-to-back probes * A keep-alive timer
* Copyright ( c ) 2017 Docker Inc * * 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 PROVIDED " AS IS " AND TH...
9bcc168132490b5a81d2699eda715f0f66e5d513f8f7fe51d3d8956639255983
expipiplus1/vulkan
Framebuffer.hs
# LANGUAGE OverloadedLists # # LANGUAGE TemplateHaskell # # OPTIONS_GHC -Wno - missing - signatures # module Framebuffer ( Framebuffer.createFramebuffer , Framebuffer.createImageView ) where import AutoApply import Control.Monad.Trans.Resource import HasVulkan import Vulka...
null
https://raw.githubusercontent.com/expipiplus1/vulkan/b1e33d1031779b4740c279c68879d05aee371659/examples/lib/Framebuffer.hs
haskell
| Create a framebuffer filling the whole image. Create a framebuffer
# LANGUAGE OverloadedLists # # LANGUAGE TemplateHaskell # # OPTIONS_GHC -Wno - missing - signatures # module Framebuffer ( Framebuffer.createFramebuffer , Framebuffer.createImageView ) where import AutoApply import Control.Monad.Trans.Resource import HasVulkan import Vulka...
911dc90e9ae561d601e83455892ffb5b1a7b9e02adfc0fdbc3d5b6cba2e10243
igorhvr/bedlam
repl.scm
; "repl.scm", read-eval-print-loop for Scheme Copyright ( C ) 1993 , 2003 ; ;Permission to copy this software, to modify it, to redistribute it, ;to distribute modified versions, and to use it for any purpose is ;granted, subject to the following restrictions and understandings. ; 1 . Any copy made of this softwa...
null
https://raw.githubusercontent.com/igorhvr/bedlam/b62e0d047105bb0473bdb47c58b23f6ca0f79a4e/iasylum/slib/3b2/repl.scm
scheme
"repl.scm", read-eval-print-loop for Scheme Permission to copy this software, to modify it, to redistribute it, to distribute modified versions, and to use it for any purpose is granted, subject to the following restrictions and understandings. in full. this software will be error-free, and I am under no obligation...
Copyright ( C ) 1993 , 2003 1 . Any copy made of this software must include this copyright notice 2 . I have made no warranty or representation that the operation of 3 . In conjunction with products arising from the use of this (require 'values) (require 'dynamic-wind) (require-if 'compiling 'qp) (require-if...
5b35b0c82e8978ba39fa37cc75e4b8f857f2a8b17610c72c3a79b0166e2bf798
facebook/flow
codemod_report.ml
* 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/flow/2ea5490ad9c4f475ec9d335b50e00eca8916fc24/src/codemods/utils/codemod_report.ml
ocaml
* 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...
df7f6c924744cf645f0ad335c6938648f73eea0b8289c611dff1cf56a6e6e2ea
archaelus/erlmail
smtpd_queue.erl
%%%--------------------------------------------------------------------------------------- @author < > [ ] 2006 - 2007 Simple Enigma , Inc. All Rights Reserved . %%% @doc SMTP Outgoing Mail Queue @reference See < a href=" / modules / erlmail " target="_top">Erlang Software Framework</a > for ...
null
https://raw.githubusercontent.com/archaelus/erlmail/fe69b0e936f1512b4f349666e56c31c0af7b672c/src/smtpd_queue.erl
erlang
--------------------------------------------------------------------------------------- @doc SMTP Outgoing Mail Queue @reference See <a href="" target="_top">ErlMail Google Code Repository</a> for more information @version 0.0.6 @end Permission is hereby granted, free of charge, to any person ...
@author < > [ ] 2006 - 2007 Simple Enigma , Inc. All Rights Reserved . @reference See < a href=" / modules / erlmail " target="_top">Erlang Software Framework</a > for more information @since 0.0.6 The MIT License Copyright ( c ) 2007 , Simple Enigma , Inc. All Righs Reserved i...
1a2d094617f601a76a05a648abb4c5f8dc8afb8c7a2efe6c9be99b37a172fe7d
rizo/snowflake-os
tulip.ml
(* tulip 21140 network driver (found in virtual pc) *) open PCI module Int32Ops = struct let ( +! ) = Int32.add let ( -! ) = Int32.sub let ( *! ) = Int32.mul let ( /! ) = Int32.div let ( &! ) = Int32.logand let ( |! ) = Int32.logor let ( >>! ) = Int32.shift_right_logical let ( <<! ) = Int32.shif...
null
https://raw.githubusercontent.com/rizo/snowflake-os/51df43d9ba715532d325e8880d3b8b2c589cd075/kernel/tulip.ml
ocaml
tulip 21140 network driver (found in virtual pc) a slightly more functional eeprom_read function shift the read command bits out read the data terminate the eeprom access adjust_pci_device(pci) disable interrupts clear the missed-packet counter A serial EEPROM interface; we read now and sort it out lat...
open PCI module Int32Ops = struct let ( +! ) = Int32.add let ( -! ) = Int32.sub let ( *! ) = Int32.mul let ( /! ) = Int32.div let ( &! ) = Int32.logand let ( |! ) = Int32.logor let ( >>! ) = Int32.shift_right_logical let ( <<! ) = Int32.shift_left let ( ~! ) = Int32.lognot let ( ^! ) = Int32....
35569bef8f75b9e9ab6c5cdaafafe6e3460513bf6e9f22d692fc25a52bec8be0
MaximGB/TetrisRF
tetris_panel.cljs
(ns tetrisrf.views.tetris-panel (:require [re-frame.core :as rf] [reagent.core :as reagent] [tetrisrf.consts :refer [game-keys]] [tetrisrf.views.game-field :refer [game-field]] [tetrisrf.views.level-panel :refer [level-panel]] [tetrisrf.views.next-panel :ref...
null
https://raw.githubusercontent.com/MaximGB/TetrisRF/19a91c145a27e8819efebcc9f4e86bbfc15c8d7f/src/tetrisrf/views/tetris_panel.cljs
clojure
Game panel Floats default
(ns tetrisrf.views.tetris-panel (:require [re-frame.core :as rf] [reagent.core :as reagent] [tetrisrf.consts :refer [game-keys]] [tetrisrf.views.game-field :refer [game-field]] [tetrisrf.views.level-panel :refer [level-panel]] [tetrisrf.views.next-panel :ref...
9fa17628524ba1220d24cd92e149e0b57fb3d8d75e2d0d589328fcc0b5929ace
Spivoxity/obc-3
procio.ml
* procio.ml * * This file is part of the Oxford Oberon-2 compiler * Copyright ( c ) 2006 - -2016 J. M. Spivey * All rights reserved * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided that the following conditions are met : * * 1 ...
null
https://raw.githubusercontent.com/Spivoxity/obc-3/9e5094df8382ac5dd25ff08768277be6bd71a4ae/debugger/procio.ml
ocaml
Peeking in memory Always little-endian Initialization
* procio.ml * * This file is part of the Oxford Oberon-2 compiler * Copyright ( c ) 2006 - -2016 J. M. Spivey * All rights reserved * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided that the following conditions are met : * * 1 ...
a611d38a96ffb263d9cef6e6817a63e762745e627a50e73d1fd3c38c0c0c9806
abailly/hs-word2vec
Crawl.hs
module Crawl where import Control.Arrow ((&&&)) import Control.Monad (when) import qualified Data.ByteString.Lazy as L import Data.List (isPrefixOf, isSuffixOf) import Data.Maybe (fromJust) import Network.Browser (browse, request...
null
https://raw.githubusercontent.com/abailly/hs-word2vec/894e401325dbb7c35c45e9ed546b0914f93c900f/src/Crawl.hs
haskell
|Filter prev/next links. |Filter all href links in a page. | Collect all paper links on a page and the next/prev links, if they exist | Generate paper ID from paper link. >>> paperId "paper.jsp?r=cs/9605101&qid=13871620873749a_nCnN_-288443966&qs=%22big+data%22+OR+cloud+OR+%22machine+learning%22+OR+%22artificial+i...
module Crawl where import Control.Arrow ((&&&)) import Control.Monad (when) import qualified Data.ByteString.Lazy as L import Data.List (isPrefixOf, isSuffixOf) import Data.Maybe (fromJust) import Network.Browser (browse, request...
1ac6c9b600880d96239fcd6932927485d8318726c53211a6c242cbd7075333a4
mbutterick/aoc-racket
test1.rkt
#lang reader "main.rkt" ★ 0 3 0 1 -3
null
https://raw.githubusercontent.com/mbutterick/aoc-racket/2c6cb2f3ad876a91a82f33ce12844f7758b969d6/2017/d05/test1.rkt
racket
#lang reader "main.rkt" ★ 0 3 0 1 -3
c604ce2ef9385041195c15f602f7581ed4acab28e9514c381a067e3730ad8438
lisp/de.setf.xml
schema.lisp
;;; 20100512T202625Z00 ;;; from #<doc-node -10-4-ont #x180427A6> (common-lisp:in-package "-10-4-ont#") (de.setf.resource.schema:defclass |-3166-ont#|::|Country| (|-ont#|:|Country|) nil)
null
https://raw.githubusercontent.com/lisp/de.setf.xml/827681c969342096c3b95735d84b447befa69fa6/namespaces/www-daml-org/2001/09/countries/fips-10-4-ont/schema.lisp
lisp
20100512T202625Z00 from #<doc-node -10-4-ont #x180427A6>
(common-lisp:in-package "-10-4-ont#") (de.setf.resource.schema:defclass |-3166-ont#|::|Country| (|-ont#|:|Country|) nil)
12a4129b020df38ceb77b976449c36ede92ee081d78cf18ee047cf464a833020
ocsigen/js_of_ocaml
used_cont.ml
(* TEST *) open Effect open Effect.Deep type _ t += E : unit t let r = ref None let () = match_with (fun _ -> perform E; 42) () { retc = (fun n -> assert (n = 42)); exnc = (fun e -> raise e); effc = fun (type a) (e : a t) -> match e with | E -> Some (fun (k : (a,_) continuation) -> ...
null
https://raw.githubusercontent.com/ocsigen/js_of_ocaml/3a615d693b213140ea8e5c43d5bbe99569bc898d/compiler/tests-ocaml/lib-effects/used_cont.ml
ocaml
TEST
open Effect open Effect.Deep type _ t += E : unit t let r = ref None let () = match_with (fun _ -> perform E; 42) () { retc = (fun n -> assert (n = 42)); exnc = (fun e -> raise e); effc = fun (type a) (e : a t) -> match e with | E -> Some (fun (k : (a,_) continuation) -> continue k ...
21fa78f8ae9d5e0a93b1b521d1397cc3aad9508734dea328f648f9c68a24ad04
michilu/shirasu
shirasu_tests.erl
-module(shirasu_tests). -include_lib("eunit/include/eunit.hrl").
null
https://raw.githubusercontent.com/michilu/shirasu/2c8e3c43b93e5a3662bdb177c3c32c4846cb736d/test/shirasu_tests.erl
erlang
-module(shirasu_tests). -include_lib("eunit/include/eunit.hrl").
60c7ae2b62807ac0b69a899f800dee6e33b663bb7a2eccf7f5b2c9a41a6c4f0f
quil-lang/quilc
parser.lisp
;;;; src/quilt/parser.lisp ;;;; Author : (in-package #:cl-quil.quilt) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Tokenization ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (deftype quilt-keyword () '(member :PULSE :CAPTURE :RAW-CAPTURE :DELAY :FENCE :NONBLOCKING :DEFWAVEFORM :DEFCAL :DEFFRAME :SET-FREQUENCY :S...
null
https://raw.githubusercontent.com/quil-lang/quilc/6c9d20892cfc71d8814af0526b78b8215365b512/src/quilt/parser.lisp
lisp
src/quilt/parser.lisp Tokenization ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Objects ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Remove :LEFT-PAREN Error if we didn't find a right parenthesis. Remove right paren and stash away params. Instructions ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Definitions ;;;;;;;;;;;;;;;;;;;;...
Author : (in-package #:cl-quil.quilt) (deftype quilt-keyword () '(member :PULSE :CAPTURE :RAW-CAPTURE :DELAY :FENCE :NONBLOCKING :DEFWAVEFORM :DEFCAL :DEFFRAME :SET-FREQUENCY :SHIFT-FREQUENCY :SET-PHASE :SHIFT-PHASE :SET-SCALE :SWAP-PHASE)) (deftype quilt-token-type () '(or quilt-keyword...
a5f4bcba68e23d3b005b5d039f4974632cc4577cffc67f7481ebe110981d98fa
monpeco/UBCx-HtC1x-SimpleData
question4.rkt
;;Problem: ;;Desing a data definition for a traffic light that can either be desabled, ;; or be one of red, yellow or green. ;; Data definition: TLight is one of : ;; - false ;; - "red" ;; - "yellow" ;; - "green" ;; interp. false means the light is disabled, otherwise the color of the light (define TL1 false...
null
https://raw.githubusercontent.com/monpeco/UBCx-HtC1x-SimpleData/70b254f3f416833445f380bd19b423c0e7d32739/2-how-to-design-data/question4.rkt
racket
Problem: Desing a data definition for a traffic light that can either be desabled, or be one of red, yellow or green. Data definition: - false - "red" - "yellow" - "green" interp. false means the light is disabled, otherwise the color of the light Template rules used: - atomic distinct: false - atomic d...
TLight is one of : (define TL1 false) (define TL2 "red") (define (fn-for-tlight tl) (cond [(false? tl) (...)] [(string=? tl "red") (...)] [(string=? tl "yellow") (...)][] [(string=? tl "green") (...)])) - One of : 4 cases
2751c2cedc843b7dc913817ce63ce05c19ca9a9b29aaad06f9a7af66c2aa5b05
Kakadu/fp2022
interpret.mli
* Copyright 2021 - 2022 , * SPDX - License - Identifier : LGPL-3.0 - or - later exception NoSeparator of string val read_all_file_text : string -> string val split_string_on_spaces : string -> string list val parse' : string -> string list * string * Ast.grammar exception RejectApplyingRule exception OvershootApp...
null
https://raw.githubusercontent.com/Kakadu/fp2022/3d1e7ce3e9187194f5770bb1239a41af41c0cf97/Menhir/lib/interpret.mli
ocaml
* Copyright 2021 - 2022 , * SPDX - License - Identifier : LGPL-3.0 - or - later exception NoSeparator of string val read_all_file_text : string -> string val split_string_on_spaces : string -> string list val parse' : string -> string list * string * Ast.grammar exception RejectApplyingRule exception OvershootApp...
b5846d3fea55353374126501bf58f6c22d1060db7547a34cfba31274f50d80d1
repl-acement/repl-acement
aspec.cljs
(ns replacement.xform.aspec (:require [replacement.xform.defn :refer [add-code-body-start]])) (defn xform-prn "Print simple parameters - deal with de-structuring next" [params+body fn-name xform-meta] (let [code (->> (first params+body) (reduce (fn [form param] (co...
null
https://raw.githubusercontent.com/repl-acement/repl-acement/649046e720d413433ce9600951dd51c6b210a91a/repl-ui/replacement/xform/aspec.cljs
clojure
look up meta and remove the form look up meta and remove the form
(ns replacement.xform.aspec (:require [replacement.xform.defn :refer [add-code-body-start]])) (defn xform-prn "Print simple parameters - deal with de-structuring next" [params+body fn-name xform-meta] (let [code (->> (first params+body) (reduce (fn [form param] (co...
18f4b4204361295bb4ef744b9f52a36c5037b749b512987dcb43b8173723ca88
wingo/fibers
diagonal.scm
#!/usr/bin/env guile # -*- scheme -*- !# (use-modules (ice-9 match) (fibers) (fibers channels)) (define (make-squarer in) (let ((out (make-channel))) (spawn-fiber (lambda () (let lp () (let ((x (get-message in))) (put-messa...
null
https://raw.githubusercontent.com/wingo/fibers/44d17e64e581fb281bae1390f74c762ecf089b58/benchmarks/diagonal.scm
scheme
#!/usr/bin/env guile # -*- scheme -*- !# (use-modules (ice-9 match) (fibers) (fibers channels)) (define (make-squarer in) (let ((out (make-channel))) (spawn-fiber (lambda () (let lp () (let ((x (get-message in))) (put-messa...
f693a9e7e352ae0e9100b244c4159227ffa6b2b883107d86282851397f6252c9
ekmett/trifecta
Rat.hs
# LANGUAGE RecordWildCards , ViewPatterns , DeriveFunctor , FlexibleInstances # import Control.Applicative import Control.Monad (MonadPlus(..), guard) import Control.Monad.Fix (fix) import Data.Char (isDigit, digitToInt, isSpace) data Result d a = Pure a -- we didn't consume anything and can backtrack | ...
null
https://raw.githubusercontent.com/ekmett/trifecta/09bced0aed5ae54d22fa2caba4e3f04d1825f538/wip/Rat.hs
haskell
we didn't consume anything and can backtrack we consumed input we failed with a flag indicating if we have consumed input makeRat ''D should output:
# LANGUAGE RecordWildCards , ViewPatterns , DeriveFunctor , FlexibleInstances # import Control.Applicative import Control.Monad (MonadPlus(..), guard) import Control.Monad.Fix (fix) import Data.Char (isDigit, digitToInt, isSpace) data Result d a deriving Functor newtype Rat d a = Rat { runRat :: d -> Result d a } ...
8ccfcf440089b3142056ffc0fbf6108a38b746801adf8792e14117541c0ddf70
uw-unsat/serval
xchg.rkt
#lang racket/base (require "lib.rkt") (define tests (x86-suite "XCHG" xchg-r/m32-r32 xchg-r/m64-r64 )) (module+ test (time (run-tests tests)))
null
https://raw.githubusercontent.com/uw-unsat/serval/be11ecccf03f81b8bd0557acf8385a6a5d4f51ed/test/x86/xchg.rkt
racket
#lang racket/base (require "lib.rkt") (define tests (x86-suite "XCHG" xchg-r/m32-r32 xchg-r/m64-r64 )) (module+ test (time (run-tests tests)))
ff720b701c71ea84e1ea13d06c61cbd454765a4860aa11d2b5eced6170681d81
s3team/Amoeba
data_process.ml
open Batteries open Printf open Visit open Type open Ail_utils open Pp_print exception Data_Process_Error of string;; let rev_map f l = let rec aux f l acc = match l with | h::t -> aux f t ((f h)::acc) | [] -> acc in f l [] class datahandler_tramp (label' : (string*int) list) = object (self) va...
null
https://raw.githubusercontent.com/s3team/Amoeba/50ab9027afc2ca90fed21ecafa309a75b3e89ea2/src/data_process.ml
ocaml
begin addr, size herustic one: reference cannot go to the middle of a instruction generate trampoline section this method solve all the references in the .data .rodata sections if it is a begin addr of a function if (check_func_begin v) = false then begin ...
open Batteries open Printf open Visit open Type open Ail_utils open Pp_print exception Data_Process_Error of string;; let rev_map f l = let rec aux f l acc = match l with | h::t -> aux f t ((f h)::acc) | [] -> acc in f l [] class datahandler_tramp (label' : (string*int) list) = object (self) va...
1131f94959e3093fdc28375262ebd662b1e38211eb13768d8ba30bd6ade2ec72
rubenbarroso/EOPL
3_1.scm
(load "/Users/ruben/Dropbox/EOPL/src/interps/r5rs.scm") (load "/Users/ruben/Dropbox/EOPL/src/interps/define-datatype.scm") (define-datatype program program? (a-program (exp expression?))) (define-datatype expression expression? (lit-exp (datum nu...
null
https://raw.githubusercontent.com/rubenbarroso/EOPL/f9b3c03c2fcbaddf64694ee3243d54be95bfe31d/src/chapter3/3_1.scm
scheme
Helper
(load "/Users/ruben/Dropbox/EOPL/src/interps/r5rs.scm") (load "/Users/ruben/Dropbox/EOPL/src/interps/define-datatype.scm") (define-datatype program program? (a-program (exp expression?))) (define-datatype expression expression? (lit-exp (datum nu...
7379b9c154e42870452c3f33fd24f1fd92314ef62bb986acead3fa097a8a2715
dunaj-project/crispin
core.cljc
Copyright ( C ) 2015 , 2019 , . All rights reserved . ;; ;; The use and distribution terms for this software are covered by the Eclipse Public License 1.0 ;; (-1.0.php) which can be ;; found in the file epl-v10.html at the root of this distribution. ;; ;; By using this software in any fashion, you are agreeing to...
null
https://raw.githubusercontent.com/dunaj-project/crispin/ad250436d99906ca6ae052377106ec34873290bf/src/crispin/core.cljc
clojure
The use and distribution terms for this software are covered by the (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this...
Copyright ( C ) 2015 , 2019 , . All rights reserved . Eclipse Public License 1.0 (ns crispin.core "Managing system-wide configuration. Configuration map is assumed immutable and can be safely cached. Configuration is static. When the config changes, service should be restarted. Design choice is to have ...
2a938c2c4323f67595820f9419a24c1435800e738974e3907e20ee50349cebf8
kuribas/aeson-diff-generic
TH.hs
# LANGUAGE OverloadedStrings , RankNTypes , FlexibleContexts , ConstraintKinds , ExistentialQuantification , TemplateHaskell , PatternGuards # ExistentialQuantification, TemplateHaskell, PatternGuards #-} | This module contains functions to automatically derive ` JsonPatch ` instances . This module contai...
null
https://raw.githubusercontent.com/kuribas/aeson-diff-generic/b0c85c21a29441e6b89da4bc1ca48b9a71de2ca3/Data/Aeson/Diff/Generic/TH.hs
haskell
a lens which only works on record fields which have type Maybe same options. match against the key and the rest of the list create matches for positional fields create matches for record fields create matches for record fields create a match for a single positional field unwrapping is not done for taggedObject ...
# LANGUAGE OverloadedStrings , RankNTypes , FlexibleContexts , ConstraintKinds , ExistentialQuantification , TemplateHaskell , PatternGuards # ExistentialQuantification, TemplateHaskell, PatternGuards #-} | This module contains functions to automatically derive ` JsonPatch ` instances . This module contai...
c47e66d044c04161468049cb8847689a58e8265758cb948044fbe97fd3e35186
eugeneia/athens
restful-responder.lisp
Athens RESTful responder for use with . (in-package :athens.restful-responder) (defparameter *html-mime* '("text" "html; charset=utf-8")) (defparameter *json-mime* '("application" "json")) (defparameter *script-mime* '("text" "javascript; charset=utf-8")) (defun render-widget (widget argument) (with-output-to-v...
null
https://raw.githubusercontent.com/eugeneia/athens/cc9d456edd3891b764b0fbf0202a3e2f58865cbf/src/restful-responder.lisp
lisp
(to-json object :octets t) END defaults to now.
Athens RESTful responder for use with . (in-package :athens.restful-responder) (defparameter *html-mime* '("text" "html; charset=utf-8")) (defparameter *json-mime* '("application" "json")) (defparameter *script-mime* '("text" "javascript; charset=utf-8")) (defun render-widget (widget argument) (with-output-to-v...
f5f974160f321021c31b69ef8045f7f2543a38193a72dbb973ba488727b2ac44
eyedouble/couchdb
couchdb_tests.erl
-module(couchdb_tests). -include_lib("eunit/include/eunit.hrl"). -include ( "../src/dev.hrl" ). -include("../test_helper.hrl"). % % HELPER % init() -> {ok, _} = application:ensure_all_started(couchdb), {ok, Server} = couchdb:server_record(<<":5984">>), [ catch couchdb_databases:delete(Server, MockDb) ...
null
https://raw.githubusercontent.com/eyedouble/couchdb/39830e536e803dfb492bfdb8b3644839cdd7e356/test/sections/couchdb_tests.erl
erlang
HELPER TESTS
-module(couchdb_tests). -include_lib("eunit/include/eunit.hrl"). -include ( "../src/dev.hrl" ). -include("../test_helper.hrl"). init() -> {ok, _} = application:ensure_all_started(couchdb), {ok, Server} = couchdb:server_record(<<":5984">>), [ catch couchdb_databases:delete(Server, MockDb) || MockDb <- ?M...
52c2fab8b0cfdc4880fc1d2d9009f6c3e9aba86ec12940a2a1122b0310cfb750
okuoku/nausicaa
test-libxml.sps
-*- coding : utf-8 - unix -*- ;;; Part of : / Libxml2 ;;;Contents: mostly loading test for the high-level library Date : Fri Mar 19 , 2010 ;;; ;;;Abstract ;;; ;;; ;;; Copyright ( c ) 2010 < > ;;; ;;;This program is free software: you can redistribute it and/or modify ;;;it under the terms of the GNU General Pub...
null
https://raw.githubusercontent.com/okuoku/nausicaa/50e7b4d4141ad4d81051588608677223fe9fb715/libxml2/tests/test-libxml.sps
scheme
Contents: mostly loading test for the high-level library Abstract 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 your option) any later version. This program is distributed in the hope that it will be useful, but WITHO...
-*- coding : utf-8 - unix -*- Part of : / Libxml2 Date : Fri Mar 19 , 2010 Copyright ( c ) 2010 < > the Free Software Foundation , either version 3 of the License , or ( at General Public License for more details . You should have received a copy of the GNU General Public License (import (nausicaa) (...
9b888578856f410a33aa9e495dc5eabc663bf57f16271c778a2985ad39e8c2fb
geocaml/carbon-intensity
gb.ml
--------------------------------------------------------------------------- Copyright ( c ) 2022 Geocaml Developers Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 2022 Geocaml Developers ...
null
https://raw.githubusercontent.com/geocaml/carbon-intensity/872bc97cf1e98c55a6ea6f72f485bcaa605d19b1/src/plugins/gb.ml
ocaml
--------------------------------------------------------------------------- Copyright ( c ) 2022 Geocaml Developers Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 2022 Geocaml Developers ...
c22a2c5a123065c5527070c6c2146bf547af09948d0c6c93c92fc655638ca7c7
monadbobo/ocaml-core
net_utils.mli
* Networking utilities @author < mmottl\@janestreet.com > @author Markus Mottl <mmottl\@janestreet.com> *) open Unix (** Exception raised if a connection attempt timed out *) exception Timeout * Get hostname from sockaddr val h_name_of_sockaddr : sockaddr -> string * Get string from sockaddr val str...
null
https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/core/extended/lib/net_utils.mli
ocaml
* Exception raised if a connection attempt timed out * Get port from a socket associated with an [in_channel] * Create a standard TCP/IP-socket * Connect a socket with a connect timeout * Create a socket with timeouts * Open a connection with timeouts * Set a timeout for a socket associated with an [in_channel] ...
* Networking utilities @author < mmottl\@janestreet.com > @author Markus Mottl <mmottl\@janestreet.com> *) open Unix exception Timeout * Get hostname from sockaddr val h_name_of_sockaddr : sockaddr -> string * Get string from sockaddr val string_of_sockaddr : sockaddr -> string * Get hostname or ( ...
38488da3e23d44315956b8365638b9c1005f0d953416fc6b324d511c24bae04d
appleshan/cl-http
sysdcl.lisp
-*- Syntax : Ansi - Common - Lisp ; Package : cl - user ; Base : 10 ; Mode : lisp -*- ;;; File: sysdcl.lisp Last edited by smishra on Mon Aug 11 13:01:49 1997 ( c ) Copyright 1996 - 97 , ( ) ;;; All Rights Reserved (in-package :cl-user) #-(or LispWorks Genera MCL) (error "System definitions included he...
null
https://raw.githubusercontent.com/appleshan/cl-http/a7ec6bf51e260e9bb69d8e180a103daf49aa0ac2/html-parser/v8/sysdcl.lisp
lisp
Package : cl - user ; Base : 10 ; Mode : lisp -*- File: sysdcl.lisp All Rights Reserved ------------------------------------------------------------------- ------------------------------------------------------------------- Genera system definition ---------------------------------------------------------...
Last edited by smishra on Mon Aug 11 13:01:49 1997 ( c ) Copyright 1996 - 97 , ( ) (in-package :cl-user) #-(or LispWorks Genera MCL) (error "System definitions included here are for the following platforms: * LispWorks * Genera * MCL If you write a system definition for another setup, please send me a cop...
80e40dc778f53a65a6cb38dbcf1313b35ed2d37667d63544be7994f26db2177d
glebec/haskell-programming-allen-moronuki
Ex22_07.hs
# LANGUAGE InstanceSigs # module Ex22_07 where newtype Reader r a = Reader { runReader :: r -> a } instance Functor (Reader r) where fmap f (Reader ra) = Reader $ f . ra instance Applicative (Reader r) where pure :: a -> Reader r a pure a = Reader $ const a (<*>) :: Reader r (a -> b) -> Reader r a -...
null
https://raw.githubusercontent.com/glebec/haskell-programming-allen-moronuki/99bd232f523e426d18a5e096f1cf771228c55f52/22-reader/Ex22_07.hs
haskell
# LANGUAGE InstanceSigs # module Ex22_07 where newtype Reader r a = Reader { runReader :: r -> a } instance Functor (Reader r) where fmap f (Reader ra) = Reader $ f . ra instance Applicative (Reader r) where pure :: a -> Reader r a pure a = Reader $ const a (<*>) :: Reader r (a -> b) -> Reader r a -...
152e513b4be5a39ee240b9159f8ff8514dd9ce5df62f9f4a552c086d8d4f07eb
ekmett/hask
Store.hs
# LANGUAGE PolyKinds # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # # LANGUAGE DefaultSignatures # # LANGUAGE NoImplicitPrelude # -------------------------------------------------------------------- -- | Copyright : ( c ) 2008 - 2014 -- License : BSD3 Maintainer : < > -- Stability : experimenta...
null
https://raw.githubusercontent.com/ekmett/hask/54ea964af8e0c1673ac2699492f4c07d977cb3c8/old/src/Hask/Store.hs
haskell
------------------------------------------------------------------ | License : BSD3 Stability : experimental Portability: non-portable ------------------------------------------------------------------ more general indexing is possible. how should we explore them? indexed store
# LANGUAGE PolyKinds # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # # LANGUAGE DefaultSignatures # # LANGUAGE NoImplicitPrelude # Copyright : ( c ) 2008 - 2014 Maintainer : < > module Hask.Store where import Hask.Core type family Store :: i -> i -> i data Store0 s a = Store (s -> a) s type inst...
3b6dfbc12665f30f04305ddb09a459e0b522376288d3011d31082248eb134cac
shop-planner/shop3
misc.lisp
(in-package :shop3-user) (fiveam:def-suite misc-tests :in arity-test:all-shop3-internal-tests) (fiveam:in-suite misc-tests) (fiveam:test check-stack-overflow-fix (flet ((find-plans (problem) (find-plans problem :verbose 0))) (let ((prob-name (gentemp "PROB"))) (fiveam:is (equal ...
null
https://raw.githubusercontent.com/shop-planner/shop3/b04d12bdf83e40590fe44bb5c68952f3fd0b5b1d/shop3/tests/misc.lisp
lisp
this just checks to make sure that the domain works: it doesn't actually check the bug. To verify SHOP2 ticket:261 (:3333/trac/shop2/ticket/261) do the following:
(in-package :shop3-user) (fiveam:def-suite misc-tests :in arity-test:all-shop3-internal-tests) (fiveam:in-suite misc-tests) (fiveam:test check-stack-overflow-fix (flet ((find-plans (problem) (find-plans problem :verbose 0))) (let ((prob-name (gentemp "PROB"))) (fiveam:is (equal ...
f2bc3f7220f490f605f9cbe11711ea1f4584e29f190645fa40f6124cebb4c1ba
BranchTaken/Hemlock
test_stress.ml
open! Basis.Rudiments open! Basis open MapTest open Map let test () = (* test is n^2 time complexity, so keep n small. *) let rec test n i e map = begin match i < n with | false -> map | true -> begin let map' = remove_hlt i (test n (succ i) e (insert_hlt ~k:i ~v:(i * 100L) map)) in...
null
https://raw.githubusercontent.com/BranchTaken/Hemlock/f3604ceda4f75cf18b6ee2b1c2f3c5759ad495a5/bootstrap/test/basis/map/test_stress.ml
ocaml
test is n^2 time complexity, so keep n small.
open! Basis.Rudiments open! Basis open MapTest open Map let test () = let rec test n i e map = begin match i < n with | false -> map | true -> begin let map' = remove_hlt i (test n (succ i) e (insert_hlt ~k:i ~v:(i * 100L) map)) in assert (equal veq map map'); assert (...
3850c427ee330a6ae773046061ad81e4f681dc6eb47f126c2032a8bfec3b2b45
JunSuzukiJapan/cl-reex
take-last-test.lisp
(defpackage take-last-test (:use :cl :cl-reex :cl-reex-test.logger :prove) (:shadowing-import-from :cl-reex :skip)) (in-package :take-last-test) NOTE : To run this test file , execute ` ( asdf : test - system : cl - reex ) ' in your Lisp . (plan 2) ;; blah blah blah. (defparameter logger (make-ins...
null
https://raw.githubusercontent.com/JunSuzukiJapan/cl-reex/94928c7949c235b41902138d9e4a5654b92d67eb/tests/take-last-test.lisp
lisp
blah blah blah.
(defpackage take-last-test (:use :cl :cl-reex :cl-reex-test.logger :prove) (:shadowing-import-from :cl-reex :skip)) (in-package :take-last-test) NOTE : To run this test file , execute ` ( asdf : test - system : cl - reex ) ' in your Lisp . (plan 2) (defparameter logger (make-instance 'logger)) (d...
a0dfa8e966da4f4b70f1fe0d781f152074cb3e385fc5e173a956117450871762
ocamllabs/ocaml-modular-implicits
plugin_simple.ml
(***********************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/testsuite/tests/lib-dynlink-native/plugin_simple.ml
ocaml
********************************************************************* OCaml ...
, LexiFi Copyright 2007 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . let facts = [ (Random.int 4) ] let () =...
e97b796df1c28fcae95229b73503d85c292322b73ae11606a00f044b1081886f
slegrand45/mysql_protocol
mp_bitstring.ml
to have a 4 * 8 computed expression in order to force a Int64 type for length let compute32 = 4 * 8
null
https://raw.githubusercontent.com/slegrand45/mysql_protocol/eb28d33dfbee7b12f88a7f798c2dbb40e1fb1bb0/src/mp_bitstring.ml
ocaml
to have a 4 * 8 computed expression in order to force a Int64 type for length let compute32 = 4 * 8
22b33040d73b7448634b12b3d5c0becb9caab10e3fd1d7bab9197194d590cb76
intermine/bluegenes
subs.cljs
(ns bluegenes.pages.reportpage.subs (:require [re-frame.core :refer [reg-sub subscribe]] [imcljs.path :as im-path] [clojure.string :as string] [bluegenes.pages.reportpage.utils :as utils] [bluegenes.components.tools.subs :as tools-subs] [bluegenes.pages.temp...
null
https://raw.githubusercontent.com/intermine/bluegenes/563e886234c16ada159715cb182f33e94d606ed4/src/cljs/bluegenes/pages/reportpage/subs.cljs
clojure
This can be a string with the fasta response or :too-long For now, we only want to avoid breakage, so we pretend it doesn't have one. This merge assumes there are no identical keys across collections and references.
(ns bluegenes.pages.reportpage.subs (:require [re-frame.core :refer [reg-sub subscribe]] [imcljs.path :as im-path] [clojure.string :as string] [bluegenes.pages.reportpage.utils :as utils] [bluegenes.components.tools.subs :as tools-subs] [bluegenes.pages.temp...
08d61801cc922e25d2b9bb9db9a324ea04aa06eea41231828062c47c363386c7
openmusic-project/OMChroma
csound-parsing.lisp
(in-package :om) ;;; PARSING CSOUND INSTRUMENTS ;========================= ; GENERAL PARSING TOOLS ;========================= ;;; return T if char is a delimitator char (defun delimator-char-p (char) (or (char-equal char #\Space) (char-equal char #\Newline) (char-equal char #\Tab) (char-equal cha...
null
https://raw.githubusercontent.com/openmusic-project/OMChroma/5ded34f22b59a1a93ea7b87e182c9dbdfa95e047/sources/om6/cs-events/csound/csound-parsing.lisp
lisp
PARSING CSOUND INSTRUMENTS ========================= GENERAL PARSING TOOLS ========================= return T if char is a delimitator char (defun delete-equal (string) (when pos ------------ ------------ returns all macros (defun search-macro-lines (file) (let* ((name "#define") (rep n...
(in-package :om) (defun delimator-char-p (char) (or (char-equal char #\Space) (char-equal char #\Newline) (char-equal char #\Tab) (char-equal char #\,) (char-equal char #\() (char-equal char #\)) (char-equal char #\*) (char-equal char #\+) (char-equal char #\-) (char-equal char #\/) (char-equal...
679d34d14d6bd689a1ed336d13cac31d25e7f4aeac08884aa444ca0d6581a770
TDacik/Deadlock
load_model.mli
Initialization of concurrency model from json . * * Author : ( * * Author: Tomas Dacik ( *) val load_model : string -> unit
null
https://raw.githubusercontent.com/TDacik/Deadlock/b69d47be037d4d7f90bce63dffbe82f306498a7a/src/concurrency_model/load_model.mli
ocaml
Initialization of concurrency model from json . * * Author : ( * * Author: Tomas Dacik ( *) val load_model : string -> unit
29967ff4151a1b38d599900baee8c5bd55693ba0d337a068e3ec9a464c8d974e
Clozure/ccl
searchcoms.lisp
;;; -*- Log: hemlock.log; Package: Hemlock -*- ;;; ;;; ********************************************************************** This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . ;;; #+CMU (ext:file-comment "$Header$") ;;; ;;; ****...
null
https://raw.githubusercontent.com/Clozure/ccl/6c1a9458f7a5437b73ec227e989aa5b825f32fd3/cocoa-ide/hemlock/src/searchcoms.lisp
lisp
-*- Log: hemlock.log; Package: Hemlock -*- ********************************************************************** ********************************************************************** This file contains searching and replacing commands. Some global state. find-pattern moves point to start of match, and retu...
This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . #+CMU (ext:file-comment "$Header$") (in-package :hemlock) (defparameter *isearch-is-global* nil "True if incremental search string is not per-buffer but global.") (defvar ...
54989ac957a107363d05c3e122275836622348aa27f0552d3b70b78cbcc700fd
ucsd-progsys/nate
eqparsetree.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ( Uni...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/ocaml/tools/eqparsetree.ml
ocaml
************************************************************************ OCaml ...
( University of Pennsylvania ) Copyright 2007 Institut National de Recherche en Informatique et under the terms of the Q Public License version 1.0 . This module is mainly used to diff two parsetree , it helps to automate the test for parsing / p...
456b4f14fc7cdd5bed03be6bcdc93210311c8f36d7254aef9ab3090c89aa35bf
GaloisInc/what4
XOR.hs
| Module : What4.Utils . BVDomain . XOR Copyright : ( c ) Galois Inc , 2019 - 2020 License : : Provides an implementation of bitvector abstract domains optimized for performing XOR operations . Module : What4.Utils.BVDomain.XOR Copyright : (c) Galois Inc, 2019-2020 License : ...
null
https://raw.githubusercontent.com/GaloisInc/what4/91200aa39565c156226cec6a9409a692e4022501/what4/src/What4/Utils/BVDomain/XOR.hs
haskell
# LANGUAGE GADTs # * XOR Domains ** Operations * Correctness properties | A value of type @'BVDomain' w@ represents a set of bitvectors of width @w@. This is an alternate representation of the bitwise domain values, optimized to compute XOR operations. ^ @BVDXor mask hi unknown@ represents a set of values where...
| Module : What4.Utils . BVDomain . XOR Copyright : ( c ) Galois Inc , 2019 - 2020 License : : Provides an implementation of bitvector abstract domains optimized for performing XOR operations . Module : What4.Utils.BVDomain.XOR Copyright : (c) Galois Inc, 2019-2020 License : ...
cf10732f9a8ffbc18119e970028e6da923d6791909f6a783bc0873a514b472bb
informatimago/lisp
status.lisp
-*- mode : lisp;coding : utf-8 -*- ;;;;************************************************************************** FILE : status.lisp ;;;;LANGUAGE: Common-Lisp ;;;;SYSTEM: Common-Lisp USER - INTERFACE : ;;;;DESCRIPTION ;;;; ;;;; Implements the STATUS telnet option. RF...
null
https://raw.githubusercontent.com/informatimago/lisp/571af24c06ba466e01b4c9483f8bb7690bc46d03/common-lisp/telnet/status.lisp
lisp
coding : utf-8 -*- ************************************************************************** LANGUAGE: Common-Lisp SYSTEM: Common-Lisp DESCRIPTION Implements the STATUS telnet option. LEGAL This program is free software: you can redistribute it and/or modify (at your option) any l...
FILE : status.lisp USER - INTERFACE : RFC 859 STATUS < PJB > < > MODIFICATIONS 2012 - 04 - 23 < PJB > Created . AGPL3 Copyright 2012 - 2016 it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either v...
2f500693567c32ff76c98c7b04703b32496ba733137141d4a749049abe0136e3
autolwe/autolwe
Game.ml
(* * Cryptographic game definitions *) (* ** Imports and Abbreviations*) open Abbrevs open Util open Type open Expr open ExprUtils open Syms (** Variable, adversary, oracle, function, and oracle list symbols. *) type vs = VarSym.t type ads = AdvSym.t type os = OrclSym.t type hs = FunSym.t type ors = Olist.t (* **...
null
https://raw.githubusercontent.com/autolwe/autolwe/3452c3dae06fc8e9815d94133fdeb8f3b8315f32/src/Game/Game.ml
ocaml
* Cryptographic game definitions ** Imports and Abbreviations * Variable, adversary, oracle, function, and oracle list symbols. ** Types for oracles, games, and security * ----------------------------------------------------------------------- * (Excepted) Distributions for sampling. uniform distr. over type e...
open Abbrevs open Util open Type open Expr open ExprUtils open Syms type vs = VarSym.t type ads = AdvSym.t type os = OrclSym.t type hs = FunSym.t type ors = Olist.t with compare type lcmd = LLet(xs , e ): let ( x_1, .. ,x_k ) = e LMSet(m , es , e ): m[es ] < - e LBind(xs , h ): ( x_1, ....
cf31f15c4be8b00bfb1b3e4b2300f2f541c73a36be303796e5da9c54ad671f20
typedclojure/typedclojure
gen_doc.clj
(ns gen-doc (:require [codox.main :as codox])) (defn -main [& args] (codox/generate-docs {:language :clojure :source-uri "/{git-commit}/typed/clj.reader/{filepath}#L{line}" :output-path "target/codox"}) (shutdown-agents) (System/exit 0))
null
https://raw.githubusercontent.com/typedclojure/typedclojure/45556897356f3c9cbc7b1b6b4df263086a9d5803/typed/clj.reader/script/gen_doc.clj
clojure
(ns gen-doc (:require [codox.main :as codox])) (defn -main [& args] (codox/generate-docs {:language :clojure :source-uri "/{git-commit}/typed/clj.reader/{filepath}#L{line}" :output-path "target/codox"}) (shutdown-agents) (System/exit 0))
89524bb39a254fe4dd31c5d5a34b76f57251ce8e7ea355f5cd26fc731d618829
elaforge/karya
MSignal.hs
Copyright 2018 -- This program is distributed under the terms of the GNU General Public -- License 3.0, see COPYING or -3.0.txt | This is a piecewise - constant signal , with a subset of the TimeVector -- operations, as used by "Perform.Midi.Perform". -- -- Unlike the signals built on "Util.Segment', this signal...
null
https://raw.githubusercontent.com/elaforge/karya/471a2131f5a68b3b10b1a138e6f9ed1282980a18/Perform/Midi/MSignal.hs
haskell
This program is distributed under the terms of the GNU General Public License 3.0, see COPYING or -3.0.txt operations, as used by "Perform.Midi.Perform". Unlike the signals built on "Util.Segment', this signal shouldn't have samples with the same 'X'. * re-exports * clip_bounds suppressing adjacent samples. ...
Copyright 2018 | This is a piecewise - constant signal , with a subset of the TimeVector module Perform.Midi.MSignal ( module Perform.Midi.MSignal, module Util.TimeVector ) where import Prelude hiding (head, last) import qualified Util.Num as Num import qualified Util.TimeVector as TimeVector import Util.Tim...
8c13e2c25760d07e49e2136b4316e9d77c44ab4e41c15d8fc1d8f4c35c54aa1c
sibylfs/sibylfs_src
checkLib.ml
(****************************************************************************) Copyright ( c ) 2013 , 2014 , 2015 , , , , ( as part of the SibylFS project ) (* *) (* Permission to use, copy, modify, and/or d...
null
https://raw.githubusercontent.com/sibylfs/sibylfs_src/30675bc3b91e73f7133d0c30f18857bb1f4df8fa/fs_test/lib/checkLib.ml
ocaml
************************************************************************** Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright no...
Copyright ( c ) 2013 , 2014 , 2015 , , , , ( as part of the SibylFS project ) THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL PROFITS , WHETHER IN AN ACTION OF CONTRACT , NEGLIGENCE OR OTHER TORTIOUS ACTION , ARISING OUT OF OR IN CONNE...
a78730e6566217fbe4a8214311af9c1a908554ede4462ee2f30adc33d8ec5522
blindglobe/common-lisp-stat
fstat.lsp
(defun f-statistic (m1 m2) " Args: (m1 m2) Computes the F statistic for testing model m1 within model m2." (let ((ss1 (send m1 :sum-of-squares)) (df1 (send m1 :df)) (ss2 (send m2 :sum-of-squares)) (df2 (send m2 :df))) (/ (/ (- ss1 ss2) (- df1 df2)) (/ ss2 df2))))
null
https://raw.githubusercontent.com/blindglobe/common-lisp-stat/0c657e10a4ee7e8d4ef3737f8c2d4e62abace2d8/src/stat-models/fstat.lsp
lisp
(defun f-statistic (m1 m2) " Args: (m1 m2) Computes the F statistic for testing model m1 within model m2." (let ((ss1 (send m1 :sum-of-squares)) (df1 (send m1 :df)) (ss2 (send m2 :sum-of-squares)) (df2 (send m2 :df))) (/ (/ (- ss1 ss2) (- df1 df2)) (/ ss2 df2))))
09f24dd9e02b0d4543566f84fd8c7fd66e914fb5f06df326469de056d16e616e
chenyukang/eopl
static-data-structures.scm
(module static-data-structures (lib "eopl.ss" "eopl") (require "lang.scm") ; for expression?, type?, etc. (provide (all-defined)) ; too many things to list (define-datatype type-environment type-environment? (empty-tenv) (extend-tenv (bvar symbol?) ...
null
https://raw.githubusercontent.com/chenyukang/eopl/0406ff23b993bfe020294fa70d2597b1ce4f9b78/base/chapter8/simplemodules/static-data-structures.scm
scheme
for expression?, type?, etc. too many things to list procedures for looking things up tenvs ;;;;;;;;;;;;;;;; lookup or die variable-name->maybe-binding-in-tenv : Tenv * Sym -> Maybe(Type) assumes tenv is non-empty.
(module static-data-structures (lib "eopl.ss" "eopl") (define-datatype type-environment type-environment? (empty-tenv) (extend-tenv (bvar symbol?) (bval type?) (saved-tenv type-environment?)) (extend-tenv-with-module (name symbol?) (interface interface?) ...
c802a43e5dcea8023d6db9dea0826fd0b3816b5322ea0ba7a00b9358a1b4dce9
csabahruska/jhc-components
Order.hs
# OPTIONS_JHC -fm4 -fno - prelude -fffi # module Jhc.Order( module Jhc.Class.Ord, Bool(..), Ordering(..), Eq(..), Ord(..), (&&), (||), not, otherwise ) where import Jhc.Class.Ord import Jhc.Basics m4_include(Jhc/Order.m4) deriving instance Eq Bool deriving instance Ord Bool derivi...
null
https://raw.githubusercontent.com/csabahruska/jhc-components/a7dace481d017f5a83fbfc062bdd2d099133adf1/lib/jhc/Jhc/Order.hs
haskell
# OPTIONS_JHC -fm4 -fno - prelude -fffi # module Jhc.Order( module Jhc.Class.Ord, Bool(..), Ordering(..), Eq(..), Ord(..), (&&), (||), not, otherwise ) where import Jhc.Class.Ord import Jhc.Basics m4_include(Jhc/Order.m4) deriving instance Eq Bool deriving instance Ord Bool derivi...
44738522a30f4a15fc3a0b97c82f3b197fbf4f195da294264c9fb46510706680
orx/ocaml-orx
knight.mli
* { 1 The knight player character } val init : unit -> unit (** [init ()] initializes behavior handlers for the knight player character. This should be called once the knight has been added to the game world. In this example that happens during game engine initialization. *)
null
https://raw.githubusercontent.com/orx/ocaml-orx/14003e2014afeaf001168a0b6a9e8fe66def820c/examples/ocaml/top_down_movement/src/knight.mli
ocaml
* [init ()] initializes behavior handlers for the knight player character. This should be called once the knight has been added to the game world. In this example that happens during game engine initialization.
* { 1 The knight player character } val init : unit -> unit
2d11a31c315b5027094cf5826bbc744020d7fd71acbb54397df191d2e161e06e
thelema/ocaml-community
buffer.ml
(***********************************************************************) (* *) (* OCaml *) (* *) and , projet Cri...
null
https://raw.githubusercontent.com/thelema/ocaml-community/ed0a2424bbf13d1b33292725e089f0d7ba94b540/stdlib/buffer.ml
ocaml
********************************************************************* OCaml ...
and , projet Cristal , INRIA Rocquencourt Copyright 1999 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 type t = {mutable buffer : string; mutable po...
cd052dd6b1bf0dbaacbcd8ab00f911a125e94bf6b0298e5968a66e6d64c34b46
akhudek/fast-zip
core_bench.cljs
(ns fast-zip.core-bench (:require [fast-zip.core :as fz] [clojure.zip :as z] [cljs.nodejs :as nodejs])) (def Benchmark (nodejs/require "benchmark")) (def big-vec (vec (repeat 10 (vec (repeat 10 (vec (range 10))))))) (defn zip-walk [zipper node next end?] (loop [i 0, loc zipper] (if (end? loc) ...
null
https://raw.githubusercontent.com/akhudek/fast-zip/3cf6ca2383cf30dfbb1686b15a8fa2e60db89cf2/benchmarks/fast_zip/core_bench.cljs
clojure
Benchmark vector zip.
(ns fast-zip.core-bench (:require [fast-zip.core :as fz] [clojure.zip :as z] [cljs.nodejs :as nodejs])) (def Benchmark (nodejs/require "benchmark")) (def big-vec (vec (repeat 10 (vec (repeat 10 (vec (range 10))))))) (defn zip-walk [zipper node next end?] (loop [i 0, loc zipper] (if (end? loc) ...
15f583b81bea1a67573904afe5709bc4df63e7afae67b3ed568a4872e3f68259
G-Corp/m3u8
m3u8.erl
-module(m3u8). -include("../include/m3u8.hrl"). -export([ parse/1 , download/2 , to_binary/1 , to_file/2 , new/0 , playlist_type/2 , playlist_type/1 , version/2 , version/1 , target_duration/2 , target_duration/1 ...
null
https://raw.githubusercontent.com/G-Corp/m3u8/d018299deab940f60b76674da7494c7de5431e5e/src/m3u8.erl
erlang
MANDATORY MANDATORY OPTIONAL = <<>> OPTIONAL OPTIONAL MANDATORY = <<"NONE">> | <<"AES-128">> OPTIONAL OPTIONAL OPTIONAL OPTIONAL OPTIONAL MANDATORY OPTIONAL MANDATORY MANDATORY OPTIONAL OPTIONAL OPTIONAL OPTIONAL OPTIONAL OPTIONAL OPTIONAL MANDATORY OPTIONAL OPTIONAL OPTIONAL OPTIONAL OPTION...
-module(m3u8). -include("../include/m3u8.hrl"). -export([ parse/1 , download/2 , to_binary/1 , to_file/2 , new/0 , playlist_type/2 , playlist_type/1 , version/2 , version/1 , target_duration/2 , target_duration/1 ...
ce9f6bdf15107b13bd0eb55524daa818857cfcc45904b9ca3c885b3f0acf21ce
andrenth/ocaml-swagger
codegen_schema.mli
type t val create : reference_base:string -> reference_root:Mod.t -> Swagger_t.schema -> t val reference : t -> Swagger_t.reference option val to_type : t -> Ppxlib.Ast.core_type
null
https://raw.githubusercontent.com/andrenth/ocaml-swagger/60486bee7220a868b7e0b4507adb1edad44b98cd/lib/codegen_schema.mli
ocaml
type t val create : reference_base:string -> reference_root:Mod.t -> Swagger_t.schema -> t val reference : t -> Swagger_t.reference option val to_type : t -> Ppxlib.Ast.core_type
7e7e0b01dac6be483d93da5acd0336c6005336b395049015ed7cf8bd33d5df03
acl2/acl2
ttag.lisp
Copyright ( C ) 2021 , ForrestHunt , Inc. Written by License : A 3 - clause BSD license . See the LICENSE file distributed with ACL2 . ; This book certifies, even if the local event just below is commented out. ; But without the local event, a subsequent include-book then fails. The ; reason the local event...
null
https://raw.githubusercontent.com/acl2/acl2/4aebc091b0fcc63bda4a15de3a2cad8cdf13260b/books/system/tests/early-load-of-compiled/ttag.lisp
lisp
This book certifies, even if the local event just below is commented out. But without the local event, a subsequent include-book then fails. The reason the local event saves us is that it causes the include-book phase of certify-book to roll back the world all the way to ground-zero before including the book, and...
Copyright ( C ) 2021 , ForrestHunt , Inc. Written by License : A 3 - clause BSD license . See the LICENSE file distributed with ACL2 . * * by add - trip ( via install - for - add - trip - hcomp - build ) when ttag - f was admitted . Without that rollback , * * gets the wrong entry ( via (in...
8615dec64119c5552af6356ad0392b9175cc5ec47af0b6e649f55c993da896c6
artyom-poptsov/guile-ics
stream-context.scm
ics.scm -- Tests for ICS parser . Copyright ( C ) 2022 < > ;; ;; 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 later versio...
null
https://raw.githubusercontent.com/artyom-poptsov/guile-ics/fdfd3eeda1c544070ac16feac47fa5cf42268369/tests/stream-context.scm
scheme
This program is free software: you can redistribute it and/or modify (at your option) any later version. The 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 ...
ics.scm -- Tests for ICS parser . Copyright ( C ) 2022 < > 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 (add-to-load-path (getenv "abs_top_s...
b7bb275f6825d2b5fad5b72209d939c54943473b2e81ac1552f9cfac208c2fdf
np/hlatex
Slicer.hs
module Language.LaTeX.Slicer (marknote, mark, marker, (^$), slice) where import Control.Monad.Writer import Language.LaTeX.Types import Language.LaTeX.Builder.MonoidUtils import qualified Language.LaTeX.Builder.Internal as BI import qualified Data.Generics.Uniplate.Data as U marknote :: ParItm marknote = ParNote (M...
null
https://raw.githubusercontent.com/np/hlatex/4f2212c5db5e10dab7f6cbb9cf47a041b3320176/Language/LaTeX/Slicer.hs
haskell
Is there a mark in a subterm? drop the mark, take until the next mark
module Language.LaTeX.Slicer (marknote, mark, marker, (^$), slice) where import Control.Monad.Writer import Language.LaTeX.Types import Language.LaTeX.Builder.MonoidUtils import qualified Language.LaTeX.Builder.Internal as BI import qualified Data.Generics.Uniplate.Data as U marknote :: ParItm marknote = ParNote (M...
4646f607b13a55c8ec386c695665e821e174a40db5b836aa70ee1668e2815280
damhiya/MetaLambda
Evaluation.hs
module MetaLambda.Evaluation where import MetaLambda.Substitution import MetaLambda.Syntax -- call by name evaluation (//) :: [Term mo] -> Ctx mo -> [(Id, Term mo)] (//) s ctx = zip (map fst ctx) s splice, evaluate :: Mode mo => mo -> Term mo -> Term mo splice = \m t -> go m m t where go ::...
null
https://raw.githubusercontent.com/damhiya/MetaLambda/c9050bcaddd14075bfec39f64ce3760103a3c8a8/src/MetaLambda/Evaluation.hs
haskell
call by name evaluation
module MetaLambda.Evaluation where import MetaLambda.Substitution import MetaLambda.Syntax (//) :: [Term mo] -> Ctx mo -> [(Id, Term mo)] (//) s ctx = zip (map fst ctx) s splice, evaluate :: Mode mo => mo -> Term mo -> Term mo splice = \m t -> go m m t where go :: Mode mo => mo -> mo -> Ter...
0ba63047db58de71e0505656b59ae319267beb9d52e661cced71d1eb20440317
inhabitedtype/ocaml-aws
resetDBClusterParameterGroup.ml
open Types open Aws type input = ResetDBClusterParameterGroupMessage.t type output = DBClusterParameterGroupNameMessage.t type error = Errors_internal.t let service = "rds" let signature_version = Request.V4 let to_http service region req = let uri = Uri.add_query_params (Uri.of_string (Aws.Util.of_op...
null
https://raw.githubusercontent.com/inhabitedtype/ocaml-aws/b6d5554c5d201202b5de8d0b0253871f7b66dab6/libraries/rds/lib/resetDBClusterParameterGroup.ml
ocaml
open Types open Aws type input = ResetDBClusterParameterGroupMessage.t type output = DBClusterParameterGroupNameMessage.t type error = Errors_internal.t let service = "rds" let signature_version = Request.V4 let to_http service region req = let uri = Uri.add_query_params (Uri.of_string (Aws.Util.of_op...
fba7cb114fb99075ee4ebb0c8bab66c7302dee3807624ded68da129a2829c186
leepike/Copilot
Array.hs
-------------------------------------------------------------------------------- Copyright © 2011 National Institute of Aerospace / Galois , Inc. -------------------------------------------------------------------------------- -- | Example in sampling external arrays. # LANGUAGE RebindableSyntax # module Array ( a...
null
https://raw.githubusercontent.com/leepike/Copilot/18a71502c5c9e7262f14bb8167f3b4a09c9c6a8b/Examples/Array.hs
haskell
------------------------------------------------------------------------------ ------------------------------------------------------------------------------ | Example in sampling external arrays. ------------------------------------------------------------------------------ Throws an exception since the index is too...
Copyright © 2011 National Institute of Aerospace / Galois , Inc. # LANGUAGE RebindableSyntax # module Array ( array ) where import Language.Copilot hiding (cycle) import Data.List (cycle) import qualified Copilot . Compile . C99 as C import qualified Copilot.Compile.SBV as S extArr :: Stream Word32 extArr = ext...
c23d85461e8839997f6817ccd97556c51aea92e38e1f09195ffec272cd199c21
CSCfi/rems
test_transactions.clj
(ns ^:integration rems.db.test-transactions (:require [clojure.test :refer :all] [conman.core :as conman] [rems.config] [rems.db.core :as db] [rems.db.events :as events] [rems.db.test-data-helpers :as test-helpers] [rems.db.testing :refer [reset-...
null
https://raw.githubusercontent.com/CSCfi/rems/0475b0ddce584b0666e886b63599924b64fde5f2/test/clj/rems/db/test_transactions.clj
clojure
Currently we only test that commands are not executed concurrently for a single application. To guarantee that, we could add an app version TODO: we could finish right after all the writers have finished - one application created event per application - one saved event per application (after compaction) the last ...
(ns ^:integration rems.db.test-transactions (:require [clojure.test :refer :all] [conman.core :as conman] [rems.config] [rems.db.core :as db] [rems.db.events :as events] [rems.db.test-data-helpers :as test-helpers] [rems.db.testing :refer [reset-...
bc92fc75ce53dfc97de5e7b55e2ea79fec2a464954f21774923d18b775816e2d
remixlabs/wasicaml
t010_funcall1.ml
let add_something x = x + 15 let () = Testprint.int "x" (add_something 3)
null
https://raw.githubusercontent.com/remixlabs/wasicaml/74ff72535aa8e49ab94a05d9c32c059ce264c1bb/test/t010_funcall1.ml
ocaml
let add_something x = x + 15 let () = Testprint.int "x" (add_something 3)
cab15749340d1bd122c917ec792bd6fd6eccd48320cbec74339a6545350f959d
c4-project/c4f
early_out.ml
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
null
https://raw.githubusercontent.com/c4-project/c4f/8939477732861789abc807c8c1532a302b2848a5/lib/fir/src/early_out.ml
ocaml
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
4b12e8148f03340a00e3463c7b11161b85da00e2a1e19d95ac7a9780460f9184
fogfish/serverless
helloworld.erl
%% Copyright ( C ) 2018 %% %% This file may be modified and distributed under the terms of the MIT license . See the LICENSE file for details . %% %% -module(helloworld). -export([main/1]). %% %% main(Opts) -> serverless:spawn(fun identity/1, Opts). %% %% -spec identity(map()) -> datum:either(map()). ide...
null
https://raw.githubusercontent.com/fogfish/serverless/c804e510e9c473941b1b457ba175f537f1939f39/examples/helloworld/src/helloworld.erl
erlang
This file may be modified and distributed under the terms
Copyright ( C ) 2018 of the MIT license . See the LICENSE file for details . -module(helloworld). -export([main/1]). main(Opts) -> serverless:spawn(fun identity/1, Opts). -spec identity(map()) -> datum:either(map()). identity(Json) -> serverless:notice(#{spawn => helloworld}), serverless:notice(#{in...
71d066e40d469b6432462b1aeffef891ea4c069312f540729f8bb9bdf7412d24
scslab/hails
TCB.hs
# LANGUAGE Unsafe # # LANGUAGE GeneralizedNewtypeDeriving , MultiParamTypeClasses , StandaloneDeriving , DeriveDataTypeable , TypeSynonymInstances # MultiParamTypeClasses, StandaloneDeriving, DeriveDataTypeable, ...
null
https://raw.githubusercontent.com/scslab/hails/4d4dfe0cdfb7c8941a55ce882cba20d82c6d9cfd/Hails/Database/TCB.hs
haskell
| This module exports the basic database types and constructors. See "Hails.Database" for a description of the Hails database system. * Collection * Database * Policies * Hails DB monad ** Database system configuration ** Exception thrown by failed database actions ** Lifting "Database.MongoDB" actions Col...
# LANGUAGE Unsafe # # LANGUAGE GeneralizedNewtypeDeriving , MultiParamTypeClasses , StandaloneDeriving , DeriveDataTypeable , TypeSynonymInstances # MultiParamTypeClasses, StandaloneDeriving, DeriveDataTypeable, ...
8d308094ce09202408f26459e7f716295841df6a898537f732a19322c803856d
zytedata/sctools
layout.cljs
(ns sctools.app.layout (:require [sctools.utils.rf-utils :as rfu :refer [db-sub quick-sub defev]] [reagent.core :as r] [helix.hooks :as hooks :refer [use-effect]] [helix.core :as hx :refer [defnc $]] [helix.dom :as d] [re-frame.core :as rf])) (def dispatch ...
null
https://raw.githubusercontent.com/zytedata/sctools/b6ec122a599c5b24236b6f2de848da8ab33504f1/src/sctools/app/layout.cljs
clojure
(ns sctools.app.layout (:require [sctools.utils.rf-utils :as rfu :refer [db-sub quick-sub defev]] [reagent.core :as r] [helix.hooks :as hooks :refer [use-effect]] [helix.core :as hx :refer [defnc $]] [helix.dom :as d] [re-frame.core :as rf])) (def dispatch ...
eb3c84c7db017431569a7c1891974bfb6385212328b9c2793eaf03810a0412a5
albertoruiz/easyVision
demostereo.hs
-- tracking a blue region import EasyVision import Control.Monad((>=>),when) import Graphics.UI.GLUT hiding (Point,Matrix,matrix,Size,triangulate) import Data.List import Numeric.LinearAlgebra import Vision import Text.Printf(printf) tracker n1 n2 = withChannels >=> regionDetector n1 >=> regionTracker n2 withChannel...
null
https://raw.githubusercontent.com/albertoruiz/easyVision/26bb2efaa676c902cecb12047560a09377a969f2/projects/old/stereo/demostereo.hs
haskell
tracking a blue region
import EasyVision import Control.Monad((>=>),when) import Graphics.UI.GLUT hiding (Point,Matrix,matrix,Size,triangulate) import Data.List import Numeric.LinearAlgebra import Vision import Text.Printf(printf) tracker n1 n2 = withChannels >=> regionDetector n1 >=> regionTracker n2 withChannels = return . fmap channels...
84aa979778d8bdaad631053116fdcbe8f5e7c53ac9a4a23a271a7aeaafa91886
screenshotbot/screenshotbot-oss
diff-promoter.lisp
;;;; Copyright 2018-Present Modern Interpreters Inc. ;;;; 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 /. (uiop:define-package :screenshotbot/phabricator/diff-promoter (:use #:cl #:...
null
https://raw.githubusercontent.com/screenshotbot/screenshotbot-oss/f333b833b91f05231bc4b23bc51cf74e926cdead/src/screenshotbot/phabricator/diff-promoter.lisp
lisp
Copyright 2018-Present Modern Interpreters Inc. gets a revision ID.
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 /. (uiop:define-package :screenshotbot/phabricator/diff-promoter (:use #:cl #:alexandria #:util/phabricator/conduit #:sc...
d8651ace2098d4ef050f167fd1f68798680d61deead5e8e4eec7876bca4127db
jacekschae/learn-reagent-course-files
orders.cljs
(ns giggin.components.orders (:require [giggin.state :as state] [giggin.helpers :refer [format-price]] [giggin.components.checkout-modal :refer [checkout-modal]])) (defn total [] (->> @state/orders (map (fn [[id quant]] (if (get-in @state/gigs [id :sold-out]) ...
null
https://raw.githubusercontent.com/jacekschae/learn-reagent-course-files/bad40303c8e0a8526318a69fdf9c2d786b4240cb/increments/28-performance-url/src/components/orders.cljs
clojure
(ns giggin.components.orders (:require [giggin.state :as state] [giggin.helpers :refer [format-price]] [giggin.components.checkout-modal :refer [checkout-modal]])) (defn total [] (->> @state/orders (map (fn [[id quant]] (if (get-in @state/gigs [id :sold-out]) ...
d01ef107c2786b54786fe5c7b4c128ade3c5d30cd6e802e7877968a2dbe67a3f
fission-codes/fission
Main.hs
module Main (main) where import Fission.Test.Prelude import qualified Fission.Test as Fission main :: IO () main = do spec <- testSpecs $ parallel Fission.spec defaultMain $ testGroup "Tests" spec
null
https://raw.githubusercontent.com/fission-codes/fission/11d14b729ccebfd69499a534445fb072ac3433a3/fission-core/test/Main.hs
haskell
module Main (main) where import Fission.Test.Prelude import qualified Fission.Test as Fission main :: IO () main = do spec <- testSpecs $ parallel Fission.spec defaultMain $ testGroup "Tests" spec
f3203ac2b3d9bbe34003c317e7e51973254a7b9fefdad4cc7bf9881008b40329
xh4/web-toolkit
channel.lisp
(in-package :websocket) (defclass channel-class (standard-class) ()) (defclass channel () () (:metaclass channel-class))
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/websocket/channel.lisp
lisp
(in-package :websocket) (defclass channel-class (standard-class) ()) (defclass channel () () (:metaclass channel-class))
9fce276e9e9afe99b305b34d3541a3c1df786715bd1d37e3b4dc5ea0914d67ee
wz1000/hie-lsp
EventWriterT.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} # LANGUAGE RecursiveDo # # LANGUAGE ScopedTypeVariables # module Main where import Control.Lens import Control.Monad import Control.Monad.Fix import qualified Data.Dependent.Map as DMap import Data.Functor.Misc import qualified Data.Map...
null
https://raw.githubusercontent.com/wz1000/hie-lsp/dbb3caa97c0acbff0e4fd86fc46eeea748f65e89/reflex-0.6.1/test/EventWriterT.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE GADTs # | Test that a widget telling and event which fires at the same time it has been replaced doesn't count along with the new widget. | The equivalent of 'testMoribundTellEvent' for 'traverseDMapWithKeyWithAdjust'. | Ensures that elements which are _not_ removed can still fi...
# LANGUAGE FlexibleContexts # # LANGUAGE RecursiveDo # # LANGUAGE ScopedTypeVariables # module Main where import Control.Lens import Control.Monad import Control.Monad.Fix import qualified Data.Dependent.Map as DMap import Data.Functor.Misc import qualified Data.Map as M import Data.These import Reflex import Reflex....
1db469e200d18d130ec6b540f90f99059de9b49d5f80e56338d7d65978e58cd0
robert-strandh/SICL
setf-symbol-function-defun.lisp
(cl:in-package #:sicl-symbol) (defun (setf symbol-function) (new-function symbol) (check-type symbol symbol) (check-type new-function function) (setf (fdefinition symbol) new-function))
null
https://raw.githubusercontent.com/robert-strandh/SICL/90e9f78f2df7ec18036563a33803dd3b750aed15/Code/Symbol/setf-symbol-function-defun.lisp
lisp
(cl:in-package #:sicl-symbol) (defun (setf symbol-function) (new-function symbol) (check-type symbol symbol) (check-type new-function function) (setf (fdefinition symbol) new-function))
870f2e488af64e3aba7478139345536f49677d39450c9544008b051c2a64e52d
pine-lang/pine
postgres.clj
(ns pine.db.postgres (:require [clojure.java.jdbc :as jdbc] [pine.db.util :as u] ;; temp imports [pine.config :as c] [clojure.spec.alpha :as s] [pine.db.protocol :refer [Connection]] [clojure.spec.test.alpha :as stest])) ;; `instrument` or `uns...
null
https://raw.githubusercontent.com/pine-lang/pine/e27e3ecb921daa8009dfc3515c39aa2935d6934f/src/pine/db/postgres.clj
clojure
temp imports `instrument` or `unstrument` (columns (->> c/config :connections :?) "request" "requests") ;; local test (columns (->> c/config :connections :?) "user") ;; local test (["user" "user_id" "public"]) { "user" ["user" "user_id" "public"]}.. ) { :user [["user_id" "public"]]}..) (refs (->> c/config :c...
(ns pine.db.postgres (:require [clojure.java.jdbc :as jdbc] [pine.db.util :as u] [pine.config :as c] [clojure.spec.alpha :as s] [pine.db.protocol :refer [Connection]] [clojure.spec.test.alpha :as stest])) (stest/instrument [`references]) (defn- columns ...
17a94064b2dd41703e933a2972da552152f2a231bbef8800f6aa60c504c0094a
metaocaml/ber-metaocaml
t010-const2.ml
TEST include tool - ocaml - lib flags = " -w a " ocaml_script_as_argument = " true " * setup - ocaml - build - env * * include tool-ocaml-lib flags = "-w a" ocaml_script_as_argument = "true" * setup-ocaml-build-env ** ocaml *) 2;; * 0 CONST2 1 ATOM0 2 4 STOP * ...
null
https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/testsuite/tests/tool-ocaml/t010-const2.ml
ocaml
TEST include tool - ocaml - lib flags = " -w a " ocaml_script_as_argument = " true " * setup - ocaml - build - env * * include tool-ocaml-lib flags = "-w a" ocaml_script_as_argument = "true" * setup-ocaml-build-env ** ocaml *) 2;; * 0 CONST2 1 ATOM0 2 4 STOP * ...
ada5f5264e651d3acd42c434cdfa3661891c31b8820c19ce1aed965260df5a1c
haskell-gi/haskell-gi
Flags.hs
| Parsing of bitfields , a.k.a . flags . They are represented in the -- same way as enums, so this is a thin wrapper over that code. module Data.GI.GIR.Flags ( Flags(..) , parseFlags ) where import Data.GI.GIR.Enum (Enumeration, parseEnum) import Data.GI.GIR.Parser data Flags = Flags Enumeration der...
null
https://raw.githubusercontent.com/haskell-gi/haskell-gi/bff8f3b92bf2594ea3d6745c346a8de594fc3709/lib/Data/GI/GIR/Flags.hs
haskell
same way as enums, so this is a thin wrapper over that code.
| Parsing of bitfields , a.k.a . flags . They are represented in the module Data.GI.GIR.Flags ( Flags(..) , parseFlags ) where import Data.GI.GIR.Enum (Enumeration, parseEnum) import Data.GI.GIR.Parser data Flags = Flags Enumeration deriving Show parseFlags :: Parser (Name, Flags) parseFlags = do ...
f9dfb2d3686011166714b811c731a387b0cfd7bb3021cbb647c2de59e3816e63
ndmitchell/catch
ack.hs
data Nat = S Nat | Z inf = S inf nat0 = Z nat1 = S$Z nat2 = S$S$Z nat3 = S$S$S$Z nat4 = S$S$S$S$Z ack Z n = S n ack (S m) Z = ack m (S Z) ack (S m) (S n) = ack m (ack (S m) n) instance Show Nat where show Z = "Z" show (S x) = 'S' : show x
null
https://raw.githubusercontent.com/ndmitchell/catch/5d834416a27b4df3f7ce7830c4757d4505aaf96e/academic/plasma-presentation-termination/ack.hs
haskell
data Nat = S Nat | Z inf = S inf nat0 = Z nat1 = S$Z nat2 = S$S$Z nat3 = S$S$S$Z nat4 = S$S$S$S$Z ack Z n = S n ack (S m) Z = ack m (S Z) ack (S m) (S n) = ack m (ack (S m) n) instance Show Nat where show Z = "Z" show (S x) = 'S' : show x
7976f04c44aaaefc902af5f96b8a5c781ddcc8b920fc3314f7d97c1b16be4e71
qfpl/reflex-workshop
Item.hs
| Copyright : ( c ) 2018 , Commonwealth Scientific and Industrial Research Organisation License : : Stability : experimental Portability : non - portable Copyright : (c) 2018, Commonwealth Scientific and Industrial Research Organisation License : BSD3 Maintainer : Stability : experi...
null
https://raw.githubusercontent.com/qfpl/reflex-workshop/244ef13fb4b2e884f455eccc50072e98d1668c9e/src/Solutions/Todo/Collections/EventWriter/Removing/Item.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE GADTs #
| Copyright : ( c ) 2018 , Commonwealth Scientific and Industrial Research Organisation License : : Stability : experimental Portability : non - portable Copyright : (c) 2018, Commonwealth Scientific and Industrial Research Organisation License : BSD3 Maintainer : Stability : experi...
51694f5333f3d3f0ad91057bf8039fe224e94b9b1a26949db65ca1c638f3d139
haskell-repa/repa
IndexSpace.hs
# LANGUAGE TypeOperators , ExplicitForAll , FlexibleContexts # module Data.Array.Repa.Operators.IndexSpace ( reshape , append, (++) , transpose , extract , backpermute, unsafeBackpermute , backpermuteDft, unsafeBackpermuteDft , extend, u...
null
https://raw.githubusercontent.com/haskell-repa/repa/c867025e99fd008f094a5b18ce4dabd29bed00ba/repa/Data/Array/Repa/Operators/IndexSpace.hs
haskell
Index space transformations ------------------------------------------------ | Impose a new shape on the elements of an array. The new extent must be the same size as the original, else `error`. Transposing an array twice yields the original. | Extract a sub-range of elements from an array. ^ Starting inde...
# LANGUAGE TypeOperators , ExplicitForAll , FlexibleContexts # module Data.Array.Repa.Operators.IndexSpace ( reshape , append, (++) , transpose , extract , backpermute, unsafeBackpermute , backpermuteDft, unsafeBackpermuteDft , extend, u...
16a59374cbb196dd68ae891bab9b98e85fb430279c0e216a12ac4f965909f9fe
circuithub/rel8
Bool.hs
{-# language FlexibleContexts #-} {-# language TypeFamilies #-} # language ViewPatterns # module Rel8.Table.Bool ( bool , case_ , nullable ) where -- base import Prelude -- rel8 import Rel8.Expr ( Expr ) import Rel8.Expr.Bool ( boolExpr, caseExpr ) import Rel8.Expr.Null ( isNull, unsafeUnnullify ) import Rel...
null
https://raw.githubusercontent.com/circuithub/rel8/f47423ec17c36f441bab4c0cbb2036dc8aecacbd/src/Rel8/Table/Bool.hs
haskell
# language FlexibleContexts # # language TypeFamilies # base rel8 | An if-then-else expression on tables. @True@. # INLINABLE bool # true, the given default is returned. | Like 'maybe', but to eliminate @null@.
# language ViewPatterns # module Rel8.Table.Bool ( bool , case_ , nullable ) where import Prelude import Rel8.Expr ( Expr ) import Rel8.Expr.Bool ( boolExpr, caseExpr ) import Rel8.Expr.Null ( isNull, unsafeUnnullify ) import Rel8.Schema.HTable ( htabulate, hfield ) import Rel8.Table ( Table, fromColumns, to...
5b81ef43b2e74fb7005ad65f133fd4f183d9d037299bb9a434518388f6716b13
igrishaev/user-agent
user_agent_test.clj
(ns user-agent-test (:require [clojure.test :refer :all] [user-agent :as ua])) (def ua-desktop Intel Mac OS X 10_11_6 ) ( KHTML , like Gecko) Chrome/67.0.3396.99 Safari/537.36") (def ua-ipad "Mozilla/5.0 (iPad; CPU OS 11_0_2 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mob...
null
https://raw.githubusercontent.com/igrishaev/user-agent/671cbb2bb453375c028fa6500fa11e5bb001cbc6/test/user_agent_test.clj
clojure
(ns user-agent-test (:require [clojure.test :refer :all] [user-agent :as ua])) (def ua-desktop Intel Mac OS X 10_11_6 ) ( KHTML , like Gecko) Chrome/67.0.3396.99 Safari/537.36") (def ua-ipad "Mozilla/5.0 (iPad; CPU OS 11_0_2 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mob...