_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
178aebdb8e3762e2403dc2ac91120f3c2c12629eb76d3b0d9c6c88331b0b3d53
paramander/mollie-api-haskell
Types.hs
# LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE TypeOperators #-} module Mollie.API.Types where import qualified Cont...
null
https://raw.githubusercontent.com/paramander/mollie-api-haskell/4bd8386a7682abd5007b291fe72649e4cf41a7b0/src/Mollie/API/Types.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE TemplateHaskell # # LANGUAGE TypeOperators # | In v2 endpoints, an amount object is always represented as follows: For more information see: -data-types#amount-object ^A string containing the exact amount you want to charge in the given currency. Mak...
# LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # # LANGUAGE MultiParamTypeClasses # # LANGUAGE RecordWildCards # module Mollie.API.Types where import qualified Control.Lens as Lens import Control.Lens.TH () import Data.Aeson ((.!=), (.:), (.:?)...
4b8e711a19fa5c0c45c002a42d98d4302c687d31fa34370144612564a1e162af
LexiFi/menhir
codeBits.ml
(******************************************************************************) (* *) (* *) ...
null
https://raw.githubusercontent.com/LexiFi/menhir/794e64e7997d4d3f91d36dd49aaecc942ea858b7/src/codeBits.ml
ocaml
**************************************************************************** file LICEN...
, Paris , PPS , Université Paris Diderot . All rights reserved . This file is distributed under the terms of the GNU General Public License version 2 , as...
244976513fd5912ac16b146a36ca41537ca079a36945369d56d14a707e703600
ndmitchell/extra
Extra.hs
| This module extends " Data . Typeable " with extra functions available in later GHC versions . -- The package also exports the existing "Data.Typeable" functions. -- -- Currently this module has no functionality beyond "Data.Typeable". # DEPRECATED " Use Data . directly " # module Data.Typeable ) wher...
null
https://raw.githubusercontent.com/ndmitchell/extra/dffea9e28d7adf9f4dd59236220d0c26f7d28ee4/src/Data/Typeable/Extra.hs
haskell
The package also exports the existing "Data.Typeable" functions. Currently this module has no functionality beyond "Data.Typeable".
| This module extends " Data . Typeable " with extra functions available in later GHC versions . # DEPRECATED " Use Data . directly " # module Data.Typeable ) where import Data.Typeable
cbdfa8db043b92ece54b6ea8dac5e4700a99dad8a0c210a014bafd462baf24de
koka-lang/koka
Runtime.hs
------------------------------------------------------------------------------ Copyright 2012 - 2021 , Microsoft Research , . -- -- This is free software; you can redistribute it and/or modify it under the terms of the Apache License , Version 2.0 . A copy of the License can be -- found in the LICENSE file at the...
null
https://raw.githubusercontent.com/koka-lang/koka/2909df715aebf57966fbdd4afdc7a477f55f239e/src/Platform/haddock/Platform/Runtime.hs
haskell
---------------------------------------------------------------------------- This is free software; you can redistribute it and/or modify it under the found in the LICENSE file at the root of this distribution. --------------------------------------------------------------------------- Module that exports non-s...
Copyright 2012 - 2021 , Microsoft Research , . terms of the Apache License , Version 2.0 . A copy of the License can be module Platform.Runtime( exCatch , unsafePerformIO , finally , copyBinaryFile ) where import IO ( ioe...
279a9da95ea77e1e354ea43e2421c19f9a68a2b5b01db8ed7a5207cff09acfc7
atolab/zenoh
zenoh_toplevel.ml
* Copyright ( c ) 2017 , 2020 ADLINK Technology Inc. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * -2.0 , or the Apache License , Version 2.0 * which is available at -2.0 . * * SPDX - License - Ident...
null
https://raw.githubusercontent.com/atolab/zenoh/32e311aae6be93c001fd725b4d918b2fb4e9713d/src/zenoh-ocaml/zenoh_toplevel.ml
ocaml
* Copyright ( c ) 2017 , 2020 ADLINK Technology Inc. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * -2.0 , or the Apache License , Version 2.0 * which is available at -2.0 . * * SPDX - License - Ident...
8ffe1c9dc357916d8d63de4716e76ad7bc0e5385998e644e8667f6277f9c9a1b
kumarshantanu/lein-servlet
tomcat.clj
(ns leiningen.servlet.engine.tomcat "See URL: /~markt/presentations/2010-11-04-Embedding-Tomcat.pdf" (:import (java.io File) (javax.servlet.http HttpServlet) (org.apache.catalina Context Wrapper) (org.apache.catalina.connector Connector) (org.apache.c...
null
https://raw.githubusercontent.com/kumarshantanu/lein-servlet/2be06155a677eba1c5a812d28499cd5b23535414/adapter-tomcat7/src/leiningen/servlet/engine/tomcat.clj
clojure
set servlet init params if specified set additional SSL connector is specified in configuration start server
(ns leiningen.servlet.engine.tomcat "See URL: /~markt/presentations/2010-11-04-Embedding-Tomcat.pdf" (:import (java.io File) (javax.servlet.http HttpServlet) (org.apache.catalina Context Wrapper) (org.apache.catalina.connector Connector) (org.apache.c...
e8c514630669b7453e5ec11dad131c56bb27f65b4cd98fd05aa3bd607811a13b
tommaisey/aeon
status.help.scm
; /status Query the status ; No arguments. ; Replies to sender with the following message. ; /status.reply ; int - 1. unused. ; int - number of unit generators. ; int - number of synths. ; int - number of groups. ; int - number of loaded synth definitions. ; float - average percent CPU usage for sign...
null
https://raw.githubusercontent.com/tommaisey/aeon/80744a7235425c47a061ec8324d923c53ebedf15/libs/third-party/sc3/rsc3/help/server-command/status.help.scm
scheme
/status Query the status No arguments. Replies to sender with the following message. /status.reply int - 1. unused. int - number of unit generators. int - number of synths. int - number of groups. int - number of loaded synth definitions. float - average percent CPU usage for signal processing...
fc4c0c6aff80dc1155c403e7d70e8324f6127fd53aa448db499d95671363f85a
cedlemo/OCaml-GI-ctypes-bindings-generator
Pad_action_entry.mli
open Ctypes type t val t_typ : t structure typ val f_type: (Pad_action_type.t, t structure) field val f_index: (int32, t structure) field val f_mode: (int32, t structure) field val f_label: (string, t structure) field val f_action_name: (string, t structure) field
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Pad_action_entry.mli
ocaml
open Ctypes type t val t_typ : t structure typ val f_type: (Pad_action_type.t, t structure) field val f_index: (int32, t structure) field val f_mode: (int32, t structure) field val f_label: (string, t structure) field val f_action_name: (string, t structure) field
ef10cd0205a886b19d65f8219b4d0f36a5f36051b83ab6f8785ab7bb1f61f441
mejgun/haskell-tdlib
DeleteChatMessagesByDate.hs
{-# LANGUAGE OverloadedStrings #-} -- | module TD.Query.DeleteChatMessagesByDate where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified Utils as U -- | Deletes all messages between the specified dates in a chat . Supported only for private chats and basic groups . Messages s...
null
https://raw.githubusercontent.com/mejgun/haskell-tdlib/dc380d18d49eaadc386a81dc98af2ce00f8797c2/src/TD/Query/DeleteChatMessagesByDate.hs
haskell
# LANGUAGE OverloadedStrings # | | | Pass true to delete chat messages for all users; private chats only | The maximum date of the messages to delete | The minimum date of the messages to delete | Chat identifier
module TD.Query.DeleteChatMessagesByDate where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified Utils as U Deletes all messages between the specified dates in a chat . Supported only for private chats and basic groups . Messages sent in the last 30 seconds will not be delete...
0d9e8fa7ca35bc6f9ff67ac44351f09636a1994e9ffcb512af0b2bf94f5e4d02
dyzsr/ocaml-selectml
w60.ml
(* TEST flags = "-w +A-67" * setup-ocamlc.byte-build-env ** ocamlc.byte compile_only = "true" *** check-ocamlc.byte-output *) (* PR#7314 *) module type Comparable = sig val id: int end module Make_graph (P:sig module Id:Comparable end) = struct let foo = P.Id.id end module Fold_ordered(P: sig module Id:Compa...
null
https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/testsuite/tests/warnings/w60.ml
ocaml
TEST flags = "-w +A-67" * setup-ocamlc.byte-build-env ** ocamlc.byte compile_only = "true" *** check-ocamlc.byte-output PR#7314 PR#7314 *************
module type Comparable = sig val id: int end module Make_graph (P:sig module Id:Comparable end) = struct let foo = P.Id.id end module Fold_ordered(P: sig module Id:Comparable end) = struct include Make_graph(struct module Id = P.Id end) end module M = struct module N = struct end end module O = M.N le...
3a1430fafb586e7d3b98389bd6b58ce4f0d0fd9a6adda18a769c5aa487815f7e
vincenthz/hs-libgit
Git.hs
| Module : Git Copyright : Copyright ( C ) 2009 - 2010 License : < > Stability : alpha Portabily : have n't tested This module provide Git functionality exec'ing the git binary . give simple access to commit , tree , tag , blob objects . Module : ...
null
https://raw.githubusercontent.com/vincenthz/hs-libgit/e0eaba751cd2c6612291d2f1b82c6d00acab0103/Lib/Git.hs
haskell
return a list of tags in this repository initialize a new repository database commit change to the repository with optional filepaths checkout the index to some commit id creating potentially a branch [] (: []) rev does the repository has modification in its index
| Module : Git Copyright : Copyright ( C ) 2009 - 2010 License : < > Stability : alpha Portabily : have n't tested This module provide Git functionality exec'ing the git binary . give simple access to commit , tree , tag , blob objects . Module : ...
dda412e0977a96e7b23a1d0d5c3ced9444476db4a2dac4b00b55745f101b2a85
nominolo/scion
Test001.hs
{-# OPTIONS_GHC -fglasgow-exts #-} module Main where import Data.Maybe ( fromMaybe ) main = print (fromMaybe 0 (Just 3)) data Foo = Foo0 | Foo2 instance Show Foo where show Foo0 = " * " show ( Foo2 f1 f2 ) = " ( " + + show f1 + + " - " + + show f2 + + " ) " f x ys = [ ( x , y ) ...
null
https://raw.githubusercontent.com/nominolo/scion/99b4589175665687181a932cd836850205625f71/tests/Test001.hs
haskell
# OPTIONS_GHC -fglasgow-exts #
module Main where import Data.Maybe ( fromMaybe ) main = print (fromMaybe 0 (Just 3)) data Foo = Foo0 | Foo2 instance Show Foo where show Foo0 = " * " show ( Foo2 f1 f2 ) = " ( " + + show f1 + + " - " + + show f2 + + " ) " f x ys = [ ( x , y ) | Just y < - ys , le...
df6c9d0fdd77f0bf1a1b00a39f57bd4dc03deabbff189dd0026993d14ffa86f1
Kappa-Dev/KappaTools
counting_print.ml
* * counting_print.ml * openkappa * , projet Abstraction , INRIA Paris - Rocquencourt * * Creation : 07/10/2010 * Last modification : Time - stamp : < Aug 05 2016 > * * * Printing primitives * * Copyright 2010 Institut National de Recherche en Informatique e...
null
https://raw.githubusercontent.com/Kappa-Dev/KappaTools/eef2337e8688018eda47ccc838aea809cae68de7/core/KaSa_rep/counting_enumerating_species/counting_print.ml
ocaml
* * counting_print.ml * openkappa * , projet Abstraction , INRIA Paris - Rocquencourt * * Creation : 07/10/2010 * Last modification : Time - stamp : < Aug 05 2016 > * * * Printing primitives * * Copyright 2010 Institut National de Recherche en Informatique e...
02467e9690ded1c6e3e77effd29d7dcb04093708afd8f55eb2fcc8a04a17983e
dramforever/clash-with-stack
Uart.hs
module PlayClash.Uart where import Clash.Prelude import PlayClash.Utils () import PlayClash.Utils.Intel50M type Byte = BitVector 8 type Counter = Unsigned 9 counterMax :: Counter counterMax = 433 data UartState = Idle | Send Counter Byte SendState deriving (Eq, Show, Generic, NFDataX, ShowX) data Send...
null
https://raw.githubusercontent.com/dramforever/clash-with-stack/e67e82dfa9c44c39e0962ee8542387c119e05285/src/PlayClash/Uart.hs
haskell
^ The byte to send ^ The /valid/ flag of the byte to send ^ Output, /ready/ flag
module PlayClash.Uart where import Clash.Prelude import PlayClash.Utils () import PlayClash.Utils.Intel50M type Byte = BitVector 8 type Counter = Unsigned 9 counterMax :: Counter counterMax = 433 data UartState = Idle | Send Counter Byte SendState deriving (Eq, Show, Generic, NFDataX, ShowX) data Send...
7f50617dd156835936e28620de490721a72700cf7fbfb99e726db4266506eb04
argp/bap
batOptParse.mli
* optParse - Functions for parsing command line arguments . * Copyright ( C ) 2004 * * Heavily influenced by the optparse.py module from the Python * standard library , but with lots of adaptation to the ' Ocaml Way ' * * * This library is free software ; you can redistribute it and/or * mo...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/batteries/src/batOptParse.mli
ocaml
* This module contains the basic functions and types for defining new option types and accessing the values of options. * [No_value] gets raised by {!OptParse.Opt.get} when an option value is not available. * When an option wants to display a usage message, this exception may be raised. It can never ...
* optParse - Functions for parsing command line arguments . * Copyright ( C ) 2004 * * Heavily influenced by the optparse.py module from the Python * standard library , but with lots of adaptation to the ' Ocaml Way ' * * * This library is free software ; you can redistribute it and/or * mo...
6110134cbf29235166ceb3f02764a544d544c08e6c8b68e38da8c87e6fd0d707
erlang/otp
beam_utils.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2007 - 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/compiler/src/beam_utils.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 2007 - 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(beam_utils). -export([replace_labels/4,split_even/1]). -export_type([code_index/0,module_code/0,instruction...
0fc6b664734d33587aa15d5d87d6fe37b3b0a4214de90118b0223fe4d4033953
mbutterick/fontland
directory.rkt
#lang racket/base (require xenomorph "tables.rkt" racket/dict racket/class racket/match sugar/unstable/dict racket/string) (provide (all-defined-out)) #| |# (define table-entry (x:struct 'tag (x:symbol #:length 4) 'checkSu...
null
https://raw.githubusercontent.com/mbutterick/fontland/e50e4c82f58e2014d64e87a14c1d29b546fb393b/fontland/directory.rkt
racket
for stupid tags like 'cvt ' (module+ test
#lang racket/base (require xenomorph "tables.rkt" racket/dict racket/class racket/match sugar/unstable/dict racket/string) (provide (all-defined-out)) (define table-entry (x:struct 'tag (x:symbol #:length 4) 'checkSum uint3...
a20e108445722b587706d6629685e948f5dc9ec3eeb62c2ea1eb28caed3e7774
patricoferris/ocaml-multicore-monorepo
live_reload.ml
let live_reload_script = {js| var socketUrl = "ws://" + location.host + "/_live-reload" var socket = new WebSocket(socketUrl); socket.onclose = function(event) { const intervalMs = 100; const attempts = 100; let attempt = 0; function reload() { ++attempt; if(attempt > attempts) { console.error...
null
https://raw.githubusercontent.com/patricoferris/ocaml-multicore-monorepo/22b441e6727bc303950b3b37c8fbc024c748fe55/duniverse/dream/example/w-live-reload/live_reload.ml
ocaml
let live_reload_script = {js| var socketUrl = "ws://" + location.host + "/_live-reload" var socket = new WebSocket(socketUrl); socket.onclose = function(event) { const intervalMs = 100; const attempts = 100; let attempt = 0; function reload() { ++attempt; if(attempt > attempts) { console.error...
f311a9cf11d182c1e06291d3dd2bbb4f50d41f0a3fc690bb61dcea73bbe8fd33
kovisoft/slimv
swank-asdf.lisp
;;; swank-asdf.lisp -- ASDF support ;; Authors : < > < > < > < > ;; and others ;; License: Public Domain ;; (in-package :swank) (eval-when (:compile-toplevel :load-toplevel :execute) ;;; The best way to load ASDF is from an init file of an ;;; implementation. ...
null
https://raw.githubusercontent.com/kovisoft/slimv/cf8334cb7d71bf9793cb5588497b4fe15e501626/slime/contrib/swank-asdf.lisp
lisp
swank-asdf.lisp -- ASDF support and others License: Public Domain The best way to load ASDF is from an init file of an implementation. If ASDF is not loaded at the time swank-asdf is doesn't help and *asdf-path* is set, it will be loaded from that file. To set *asdf-path* put the following into ~/.s...
Authors : < > < > < > < > (in-package :swank) (eval-when (:compile-toplevel :load-toplevel :execute) loaded , it will be tried first with ( require " asdf " ) , if that ( * # p"/path / to / asdf / asdf.lisp " ) (defvar *asdf-path* nil "Path to asdf.lisp f...
8fac815f1399bd753d320ddfc80bc91038b25f874805670d97412c64e3f1db31
samrushing/irken-compiler
t_map.scm
;; -*- Mode: Irken -*- (include "lib/core.scm") (include "lib/pair.scm") (printn (map (lambda (x) (binary+ 1 x)) '(0 1 2 3 4))) (printn (map2 binary+ '(1 2 3) '(4 5 6)))
null
https://raw.githubusercontent.com/samrushing/irken-compiler/690da48852d55497f873738df54f14e8e135d006/tests/t_map.scm
scheme
-*- Mode: Irken -*-
(include "lib/core.scm") (include "lib/pair.scm") (printn (map (lambda (x) (binary+ 1 x)) '(0 1 2 3 4))) (printn (map2 binary+ '(1 2 3) '(4 5 6)))
fe3f2a882d9f3715eece558c91c15eed5df3364193d90a064cfe70d71482b11f
anton-k/reader-pattern-servant-app
Setup.hs
-- | Setup and update configs and initialization params module DI.Setup ( Setup(..) , HasSetup , askSetup ) where import Types -- | Setup app configs data Setup = Setup { toggleLogs :: IO () -- ^ toggle log verbosity } type HasSetup env = HasField "setup" env Setup askSetup :: HasSetup env => App env S...
null
https://raw.githubusercontent.com/anton-k/reader-pattern-servant-app/49018349f80e5ee8abdfc8776343464c0428369a/src/DI/Setup.hs
haskell
| Setup and update configs and initialization params | Setup app configs ^ toggle log verbosity
module DI.Setup ( Setup(..) , HasSetup , askSetup ) where import Types data Setup = Setup } type HasSetup env = HasField "setup" env Setup askSetup :: HasSetup env => App env Setup askSetup = asks (.setup)
e38ff3c5f24cfdb797f05fbda09f011d57a23feb768aeadf9d6e24971ce66fe1
pink-gorilla/webly
woo.clj
(ns rest.woo (:require [clojure.pprint :refer [print-table]] [taoensso.timbre :as timbre :refer [debug info warn error]] [martian.core :as martian] [modular.rest.martian.woo :refer [martian-woo]])) ;:method :post ;:body-schema {:pet {:id s/Int ; :name s/Str}}} (defn woo [] (let [m ...
null
https://raw.githubusercontent.com/pink-gorilla/webly/957785f98a096772439a022417a751a429638274/demo-rest/src/rest/woo.clj
clojure
:method :post :body-schema {:pet {:id s/Int :name s/Str}}}
(ns rest.woo (:require [clojure.pprint :refer [print-table]] [taoensso.timbre :as timbre :refer [debug info warn error]] [martian.core :as martian] [modular.rest.martian.woo :refer [martian-woo]])) (defn woo [] (let [m (martian-woo) r0 (-> (martian/response-for m :orders {}) :body) _ ...
3c147f1b2411175f712df5826fcd4560fcefb20e5c481e648f80b274ad7a65cc
quil-lang/quilc
wavefunctions.lisp
wavefunctions.lisp ;;;; Author : ;;;; ;;;; This file supports compressor.lisp by providing mechanisms for simulating ;;;; partial quantum states, used for the state preparation routines. (in-package #:cl-quil) ;;; first, some utilities ;; NOTE: these break some MAGICL abstractions and really belongs in that pa...
null
https://raw.githubusercontent.com/quil-lang/quilc/3f3260aaa65cdde25a4f9c0027959e37ceef9d64/src/compressor/wavefunctions.lisp
lisp
This file supports compressor.lisp by providing mechanisms for simulating partial quantum states, used for the state preparation routines. first, some utilities NOTE: these break some MAGICL abstractions and really belongs in that package before we do anything, see if we touch any dead zones we hit a dead zone....
wavefunctions.lisp Author : (in-package #:cl-quil) (defun nondestructively-apply-matrix-to-vector (matrix vector) "Takes a column VECTOR, specified as an array of complex doubles, and applies a MAGICL MATRIX to it on the left, producing a new column vector, also specified as a fresh array of complex doubles....
b1489cfa6b1e276fd5f29719a5ee644b7c417a30ca529f6844fbaa1a488e271d
vonzhou/LearnYouHaskellForGreatGood
Car.hs
data Car = Car { company :: String, model :: String, year :: Int } deriving (Show) data Car2 a b c = Car2 { company2 :: a, model2 :: b, year2 :: c } deriving (Show) tellCar :: Car -> String tellCar (Car {company=c, model=m,year=y}) = "This " ++ c ++ " " ++ m++" was made in " ++ show y tellCar2:: Show a...
null
https://raw.githubusercontent.com/vonzhou/LearnYouHaskellForGreatGood/439d848deac53ef6da6df433078b7f1dcf54d18d/chapter7/Car.hs
haskell
data Car = Car { company :: String, model :: String, year :: Int } deriving (Show) data Car2 a b c = Car2 { company2 :: a, model2 :: b, year2 :: c } deriving (Show) tellCar :: Car -> String tellCar (Car {company=c, model=m,year=y}) = "This " ++ c ++ " " ++ m++" was made in " ++ show y tellCar2:: Show a...
28abcceb4b57f071e6f4f34bbe008a7d28c3a7d83c4afb44dfaad62274c0d12f
hellonico/origami
utils.clj
(ns opencv4.utils (:require [opencv4.core :as cv] [opencv4.filter :as f] [opencv4.video :as vid]) (:import [org.opencv.core Size CvType Core Mat MatOfByte] [org.opencv.imgcodecs Imgcodecs] [org.opencv.videoio VideoCapture] [org.opencv.imgproc Imgproc] [java.net ...
null
https://raw.githubusercontent.com/hellonico/origami/3f5d73e28b25fb43969777cff7ed41878d01168d/src/opencv4/utils.clj
clojure
CLEAN (javax.imageio.ImageIO/write bi "jpg" (clojure.java.io/file "target/debug.jpg")) points CONTOURS (println ">" nb-sides) SIZING SWING ([window mat] (toggle-fs window) (cv/resize! mat (cv/new-size (.getWidth (.getSize window)) (.getHeight (.getSize window))))) (componentResized [even...
(ns opencv4.utils (:require [opencv4.core :as cv] [opencv4.filter :as f] [opencv4.video :as vid]) (:import [org.opencv.core Size CvType Core Mat MatOfByte] [org.opencv.imgcodecs Imgcodecs] [org.opencv.videoio VideoCapture] [org.opencv.imgproc Imgproc] [java.net ...
dc1472c34a71d45b8efae4cb020e98dbfddceec2af239a89fb2f360600594384
ollef/sixty
Domain.hs
{-# LANGUAGE GADTs #-} module ClosureConverted.Domain where import qualified ClosureConverted.Syntax as Syntax import Data.Tsil (Tsil) import qualified Data.Tsil as Tsil import qualified Environment import Index import Literal (Literal) import Monad import Name (Name) import qualified Name import Protolude hiding (Ty...
null
https://raw.githubusercontent.com/ollef/sixty/4ae98851db43ea5d9ae6aaf93b3eff6bf949f12e/src/ClosureConverted/Domain.hs
haskell
# LANGUAGE GADTs # ----------------------------------------------------------------------------- * Elimination spines
module ClosureConverted.Domain where import qualified ClosureConverted.Syntax as Syntax import Data.Tsil (Tsil) import qualified Data.Tsil as Tsil import qualified Environment import Index import Literal (Literal) import Monad import Name (Name) import qualified Name import Protolude hiding (Type, evaluate) import Te...
ae0e1af3c8056096ab0318e09c97f4f33ce7d69d3a371a547d985640761a6a83
OCamlPro/alt-ergo
timers.ml
(******************************************************************************) (* *) (* The Alt-Ergo theorem prover *) Copyright ( C ) 2006 - 2013 ...
null
https://raw.githubusercontent.com/OCamlPro/alt-ergo/291523151417f4cd112744d740b58ab1e8a630b4/src/lib/util/timers.ml
ocaml
**************************************************************************** The Alt-Ergo theorem prover ...
Copyright ( C ) 2006 - 2013 ...
019bc46350e52ffb668b9dd2fac543d90d08d3afe48b3525c1b9e7f135c313ec
lambdaisland/npmdemo
build.clj
(require 'cljs.build.api) (cljs.build.api/build "src" '{:main npmdemo.core :npm-deps {:express "4.16.2"} :install-deps true :infer-externs true :target :nodejs :output-to "npmde...
null
https://raw.githubusercontent.com/lambdaisland/npmdemo/d8bb320bc80be8a7f66f39843634d35b15d434d7/build.clj
clojure
(require 'cljs.build.api) (cljs.build.api/build "src" '{:main npmdemo.core :npm-deps {:express "4.16.2"} :install-deps true :infer-externs true :target :nodejs :output-to "npmde...
f355a054248d57bc40a299a0d432a9179c1e1eb00eb5f9f3e81343157098c72f
valpackett/sweetroll
Endpoint.hs
# LANGUAGE NoImplicitPrelude , OverloadedStrings , UnicodeSyntax , TypeOperators , DataKinds , GADTs # module Sweetroll.Microsub.Endpoint where import Sweetroll.Prelude import Web.JWT hiding (header, decode) import Servant import Data.Microformats2.Jf2 import qualified Data.Has...
null
https://raw.githubusercontent.com/valpackett/sweetroll/f91501da72fd5bb40743b21b66a9da791f5991a2/sweetroll-be/library/Sweetroll/Microsub/Endpoint.hs
haskell
TODO getMicrosub token host (Just "timeline") (Just "notifications") after before = do XXX: Only way to return custom HTTP response codes
# LANGUAGE NoImplicitPrelude , OverloadedStrings , UnicodeSyntax , TypeOperators , DataKinds , GADTs # module Sweetroll.Microsub.Endpoint where import Sweetroll.Prelude import Web.JWT hiding (header, decode) import Servant import Data.Microformats2.Jf2 import qualified Data.Has...
8bf6c7796cde8b58a51ffacf7674fd4c79e96384f3bc953d42b226dd0c6093d5
JHU-PL-Lab/jaylang
toChurch05.ml
let rec bot _ = bot () let fail _ = assert false let rec c10_COEFFICIENT_1129 = 0 let rec c9_COEFFICIENT_1128 = 0 let rec c8_COEFFICIENT_1127 = 0 let rec c7_COEFFICIENT_1125 = 0 let rec c6_COEFFICIENT_1124 = 0 let rec c5_COEFFICIENT_1123 = 0 let rec c4_COEFFICIENT_1122 = 0 let rec c3_COEFFICIE...
null
https://raw.githubusercontent.com/JHU-PL-Lab/jaylang/484b3876986a515fb57b11768a1b3b50418cde0c/benchmark/cases/mochi_origin/termination/toChurch05.ml
ocaml
let rec bot _ = bot () let fail _ = assert false let rec c10_COEFFICIENT_1129 = 0 let rec c9_COEFFICIENT_1128 = 0 let rec c8_COEFFICIENT_1127 = 0 let rec c7_COEFFICIENT_1125 = 0 let rec c6_COEFFICIENT_1124 = 0 let rec c5_COEFFICIENT_1123 = 0 let rec c4_COEFFICIENT_1122 = 0 let rec c3_COEFFICIE...
0f4a8df47110c1a947b2bbd16c8eaa41d99f888ca8ed9087c4ff6cc13c3b4147
mbutterick/brag
test-cutter-another.rkt
#lang racket/base (require brag/examples/cutter-another brag/support rackunit) (check-equal? (parse-tree "w") '(top (w))) (check-equal? (parse-tree "x") '(top (x))) (check-equal? (parse-tree "yy") '(top (y))) (check-equal? (parse-tree "z") '(top (z))) (check-equal? (parse-tree "a") '(top (a))) (check...
null
https://raw.githubusercontent.com/mbutterick/brag/6c161ae31df9b4ae7f55a14f754c0b216b60c9a6/brag-lib/brag/test/test-cutter-another.rkt
racket
#lang racket/base (require brag/examples/cutter-another brag/support rackunit) (check-equal? (parse-tree "w") '(top (w))) (check-equal? (parse-tree "x") '(top (x))) (check-equal? (parse-tree "yy") '(top (y))) (check-equal? (parse-tree "z") '(top (z))) (check-equal? (parse-tree "a") '(top (a))) (check...
3667a6b65fd52f93a8634987ed3fe4d93631ec8bfee40ff126b3a1fecc133853
Cmdv/Haskell-Interview-Tests
Series.hs
module Series (Error(..), largestProduct) where import Data.Char (isDigit, digitToInt) data Error = InvalidSpan | InvalidDigit Char deriving (Show, Eq) largestProduct :: Int -> String -> Either Error Integer largestProduct size digits | size > l || size < 0 = Left InvalidSpan | otherwise = do let dInts = (...
null
https://raw.githubusercontent.com/Cmdv/Haskell-Interview-Tests/787bf5e07fdfd37f9eeb8c5a3570b99840d00d4c/src/Exercism/largest-series-product/Series.hs
haskell
module Series (Error(..), largestProduct) where import Data.Char (isDigit, digitToInt) data Error = InvalidSpan | InvalidDigit Char deriving (Show, Eq) largestProduct :: Int -> String -> Either Error Integer largestProduct size digits | size > l || size < 0 = Left InvalidSpan | otherwise = do let dInts = (...
b811919204a94d1840ae836f4dc81f1bfb4c099b7407988e80d01c2603281c68
andrewvc/engulf
control.clj
(ns engulf.control (:require [engulf.comm.node-manager :as nmgr] [engulf.relay :as relay] [lamina.core :as lc] [clojure.tools.logging :as log]) (:use [clojure.walk :only [keywordize-keys]])) (def ^:dynamic receiver (lc/channel* :grounded? true :permanent? true)) (def ^:dynamic e...
null
https://raw.githubusercontent.com/andrewvc/engulf/31c71c1e0b304a6c99189d0448105299ef05619c/src/engulf/control.clj
clojure
(ns engulf.control (:require [engulf.comm.node-manager :as nmgr] [engulf.relay :as relay] [lamina.core :as lc] [clojure.tools.logging :as log]) (:use [clojure.walk :only [keywordize-keys]])) (def ^:dynamic receiver (lc/channel* :grounded? true :permanent? true)) (def ^:dynamic e...
63be92066c6e470ded9a7c8393d0bfeae23e215be513a66463fb10fbfb60ac98
verystable/warframe-autobuilder
CriticalMultiplierMods.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} -- | -- Module : Builder.Mods.RifleMods.CriticalMultiplierMods -- Maintainer : -- Stability : experimental -- -- Contains function that modify critical multiplier, applicable on primary (rifle) weapons. module Builder.Mods.RifleMods.CriticalM...
null
https://raw.githubusercontent.com/verystable/warframe-autobuilder/015e0bb6812711ea27071816d054cbaa1c65770b/src/Builder/Mods/RifleMods/CriticalMultiplierMods.hs
haskell
# LANGUAGE OverloadedStrings # | Module : Builder.Mods.RifleMods.CriticalMultiplierMods Maintainer : Stability : experimental Contains function that modify critical multiplier, applicable on primary (rifle) weapons. | Vital Sense [+120% Critical Multiplier] | Bladed Rounds [+120% Critical Multiplier, o...
# LANGUAGE NoImplicitPrelude # module Builder.Mods.RifleMods.CriticalMultiplierMods where import ClassyPrelude import Control.Lens ( (^.) ) import GenericFunctions.GenericFunctions import Types.GenericWeapon vitalSense :: GenericWeapon -> (GenericWeapon, ...
16c015f357189522a329f13bd7c8c6906be59cd482837dc8240f891768817cc5
mythical-linux/rktfetch
kernel.rkt
#!/usr/bin/env racket #lang racket/base (require "helpers/cmd.rkt" (only-in "helpers/grep.rkt" first-line) (only-in "helpers/is.rkt" file-is?) ) (provide get-kernel) (define (get-kernel-unix) (cond [(file-is? "/proc/sys/kernel/osrelease") => first-line] [(cmd->flat-str "uname -r")] [else "N/A (c...
null
https://raw.githubusercontent.com/mythical-linux/rktfetch/554271825643cf853f30cca14ae1ee17bc055b30/rktfetch/private/get/kernel.rkt
racket
#!/usr/bin/env racket #lang racket/base (require "helpers/cmd.rkt" (only-in "helpers/grep.rkt" first-line) (only-in "helpers/is.rkt" file-is?) ) (provide get-kernel) (define (get-kernel-unix) (cond [(file-is? "/proc/sys/kernel/osrelease") => first-line] [(cmd->flat-str "uname -r")] [else "N/A (c...
d3ee4f9c80e42e3b7762a7432ba61ea21c38f92992f856863d3afef69b25bb1a
Clozure/ccl-tests
pathnamep.lsp
;-*- Mode: Lisp -*- Author : Created : Sat Dec 6 10:26:45 2003 Contains : Tests of PATHNAMEP (in-package :cl-test) (deftest pathnamep.1 (check-type-predicate #'pathnamep 'pathname) nil) (deftest pathnamep.2 (check-predicate #'(lambda (x) (eql (length (multiple-value-list (pathnamep x))) 1)))...
null
https://raw.githubusercontent.com/Clozure/ccl-tests/0478abddb34dbc16487a1975560d8d073a988060/ansi-tests/pathnamep.lsp
lisp
-*- Mode: Lisp -*-
Author : Created : Sat Dec 6 10:26:45 2003 Contains : Tests of PATHNAMEP (in-package :cl-test) (deftest pathnamep.1 (check-type-predicate #'pathnamep 'pathname) nil) (deftest pathnamep.2 (check-predicate #'(lambda (x) (eql (length (multiple-value-list (pathnamep x))) 1))) nil) (deftest pathna...
c6e5cfc6de6582a94cd139dc15d5d9cc4cf9a9c6fa9400ec3834e31c06a7b96c
milankinen/cuic
todomvc_smoke_tests.clj
(ns cuic.todomvc-smoke-tests (:require [clojure.test :refer :all] [clojure.string :as string] [cuic.core :as c] [cuic.test :refer [deftest* is* browser-test-fixture]] [test-common :refer [todos-url]])) (use-fixtures :each (browser-test-fixture)) (defn todos [] (...
null
https://raw.githubusercontent.com/milankinen/cuic/94718c0580da2aa127d967207f163c7a546b6fb1/test/cuic/todomvc_smoke_tests.clj
clojure
(ns cuic.todomvc-smoke-tests (:require [clojure.test :refer :all] [clojure.string :as string] [cuic.core :as c] [cuic.test :refer [deftest* is* browser-test-fixture]] [test-common :refer [todos-url]])) (use-fixtures :each (browser-test-fixture)) (defn todos [] (...
b12411663a5efe140f869cec9762fb531f820487538d19b2f62562f807c774ab
manuel-serrano/bigloo
c.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / / comptime / BackEnd / c.scm * / ;* ------------------------------------------------------------- */ * Author : * / ;* Creation : Mo...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/fdeac39af72d5119d01818815b0f395f2907d6da/comptime/BackEnd/c.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * Creation : Mon Aug 4 14:10:06 2003 */ * ------------------------------------------------------------- */ * The C back-end ...
* serrano / prgm / project / bigloo / / comptime / BackEnd / c.scm * / * Author : * / * Last change : Sun Jun 20 09:24:33 2021 ( serrano ) * / * Copyright : 2003 - 21 * / (module backend_c ...
46a9a0395ec4d3f8bfa50fadc0f67c9d6f57cfde819448cc131c6fff8a57bfe4
bmeurer/ocamljit2
takc.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/bmeurer/ocamljit2/ef06db5c688c1160acc1de1f63c29473bcd0055c/testsuite/tests/misc/takc.ml
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ Id$ let rec tak x y z = if x > y...
ced221fce7c720530aa18f158c5091085605c1c3bf00627c325f77436886674f
nvim-treesitter/nvim-treesitter
folds.scm
[ (style_element) (script_element) (element) (if_statement) (else_statement) (each_statement) (await_statement) ] @fold
null
https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/ddc0f1b606472b6a1ab85ee9becfd4877507627d/queries/svelte/folds.scm
scheme
[ (style_element) (script_element) (element) (if_statement) (else_statement) (each_statement) (await_statement) ] @fold
3d5b8ee4378cbfdd6cbf14672eaa7bb18f5de26da52f812ddafe2f67ee9520c3
opencog/opencog
interrogative.scm
; A more accurate interrogative detector , based on LG link types . ; (define interrogative (BindLink (VariableList (var-decl "$interp" "InterpretationNode") (var-decl "$parse" "ParseNode") (var-decl "$wall-inst" "WordInstanceNode") (var-decl "$wh-word-inst" "WordInstanceNode") ) (AndLink (inter...
null
https://raw.githubusercontent.com/opencog/opencog/53f2c2c8e26160e3321b399250afb0e3dbc64d4c/opencog/nlp/relex2logic/rules/interrogative.scm
scheme
Mark this as a question.
A more accurate interrogative detector , based on LG link types . (define interrogative (BindLink (VariableList (var-decl "$interp" "InterpretationNode") (var-decl "$parse" "ParseNode") (var-decl "$wall-inst" "WordInstanceNode") (var-decl "$wh-word-inst" "WordInstanceNode") ) (AndLink (interp-of...
f86926154c8e1a6df642325d3e2c25c1bf397d90c6e4263f52c855a5785d5ae6
tek/ribosome
NvimMenuTest.hs
module Ribosome.Menu.Test.NvimMenuTest where import Exon (exon) import Lens.Micro.Mtl (view) import Polysemy.Test (UnitTest, assertEq, runTestAuto, unitTest, (===)) import qualified Streamly.Internal.Data.Stream.IsStream as Stream import Streamly.Prelude (SerialT) import Test.Tasty (TestTree, testGroup) import Riboso...
null
https://raw.githubusercontent.com/tek/ribosome/97b126617ab7f266c7b10e5900efb07c3a12f22b/packages/menu/test/Ribosome/Menu/Test/NvimMenuTest.hs
haskell
module Ribosome.Menu.Test.NvimMenuTest where import Exon (exon) import Lens.Micro.Mtl (view) import Polysemy.Test (UnitTest, assertEq, runTestAuto, unitTest, (===)) import qualified Streamly.Internal.Data.Stream.IsStream as Stream import Streamly.Prelude (SerialT) import Test.Tasty (TestTree, testGroup) import Riboso...
1c0527fb6aa1436ce05152b6445411615fb94fcde3d01ddafcffd53671e029d0
earl-ducaine/cl-garnet
arrow-illus.lisp
;;; -*- Mode: Lisp; Package: ARROW -*- ;;; ;;; Illustration of the components of an arrowhead. ;;; START : ( arrow : do - go ) ;;; QUIT: (arrow:do-stop) ;;; Designed by Written by (in-package "ARROW" :use '("KR" "LISP")) (export '(Do-Go Do-Stop)) (when (boundp 'vp) (opal:destroy vp)) (defparameter ...
null
https://raw.githubusercontent.com/earl-ducaine/cl-garnet/f0095848513ba69c370ed1dc51ee01f0bb4dd108/doc/previous-version/src/opal/garnet-code/arrow-illus.lisp
lisp
-*- Mode: Lisp; Package: ARROW -*- Illustration of the components of an arrowhead. QUIT: (arrow:do-stop) (:cross-bar ,cross-bar-agg) (:length-bar ,length-agg) (:thick-bar ,thickness-agg) (:from ,from-agg) (:connect ,connect-agg) ** STOP **
START : ( arrow : do - go ) Designed by Written by (in-package "ARROW" :use '("KR" "LISP")) (export '(Do-Go Do-Stop)) (when (boundp 'vp) (opal:destroy vp)) (defparameter top-agg NIL) (defparameter *FONT* (create-instance NIL opal:font (:size :small))) (defparameter *LINE-STYLE* (create-insta...
a8adba2c9f567eb08be6595febf4958c8e52630c1b6e9ace48c61a952db388bb
robrix/starlight
Radar.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingVia # # LANGUAGE DisambiguateRecordFields # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE StandaloneDeriving # # LANGUAGE TypeA...
null
https://raw.githubusercontent.com/robrix/starlight/ad80ab74dc2eedbb52a75ac8ce507661d32f488e/src/Starlight/Draw/Radar.hs
haskell
# LANGUAGE OverloadedStrings # FIXME: this is a lot of poorly motivated faffing about to get the units lined up just so we can multiply the magnitude by the scale FIXME: skip blips for extremely distant objects FIXME: fade colour with distance location of object radius of object
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingVia # # LANGUAGE DisambiguateRecordFields # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE NamedFieldPuns # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeApplications # # LANGUAGE TypeOperat...
540e7c7ede98985dd0c72aa13692a563e52a84757642d2b1e730bd141f713cae
whitequark/pry.ml
fact.ml
external ( > ) : 'a -> 'a -> bool = "%greaterthan" external ( * ) : int -> int -> int = "%mulint" external ( - ) : int -> int -> int = "%subint" let rec fact n = if n > 1 then n * fact (n - 1) else n let _ = fact 5
null
https://raw.githubusercontent.com/whitequark/pry.ml/ff8d8e9861ddd67f68994c468f199643416c5f42/data/fact.ml
ocaml
external ( > ) : 'a -> 'a -> bool = "%greaterthan" external ( * ) : int -> int -> int = "%mulint" external ( - ) : int -> int -> int = "%subint" let rec fact n = if n > 1 then n * fact (n - 1) else n let _ = fact 5
cb3266104cfc5d14ebb7377843c8d5ee637ed62f5923bed9da2671a833b7237f
macourtney/Dark-Exchange
update_trades.clj
(ns darkexchange.model.calls.update-trades (:require [clojure.contrib.logging :as logging] [darkexchange.interchange-map-util :as interchange-map-util] [darkexchange.model.actions.action-keys :as action-keys] [darkexchange.model.identity :as identity-model] [darkexchang...
null
https://raw.githubusercontent.com/macourtney/Dark-Exchange/1654d05cda0c81585da7b8e64f9ea3e2944b27f1/src/darkexchange/model/calls/update_trades.clj
clojure
(ns darkexchange.model.calls.update-trades (:require [clojure.contrib.logging :as logging] [darkexchange.interchange-map-util :as interchange-map-util] [darkexchange.model.actions.action-keys :as action-keys] [darkexchange.model.identity :as identity-model] [darkexchang...
5387faadb7eef1b74399b2104bda64ed199e29dd1e59b922bbb0881be670b807
informatimago/lisp
packages.lisp
-*- mode : lisp;coding : utf-8 -*- ;;;;************************************************************************** FILE : packages.lisp ;;;;LANGUAGE: Common-Lisp ;;;;SYSTEM: Common-Lisp USER - INTERFACE : ;;;;DESCRIPTION ;;;; Define the package . ;;;; < PJB > <...
null
https://raw.githubusercontent.com/informatimago/lisp/571af24c06ba466e01b4c9483f8bb7690bc46d03/rdp/packages.lisp
lisp
coding : utf-8 -*- ************************************************************************** LANGUAGE: Common-Lisp SYSTEM: Common-Lisp DESCRIPTION LEGAL This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distri...
FILE : packages.lisp USER - INTERFACE : Define the package . < PJB > < > MODIFICATIONS 2013 - 06 - 16 < PJB > Extracted defpackage form . AGPL3 Copyright 2013 - 2016 it under the terms of the GNU Affero General Public License as published by the Free Sof...
7d35626b88092098386678cc82e06a00bf6fd9ff47b0ef792fe7ac76243ca5a8
Metaxal/quickscript-extra
reverse-selection.rkt
#lang racket/base (require quickscript) (script-help-string "(Example) The simplest script example: reverse the selected string.") (define-script reverse-selection #:label "Reverse selection" #:menu-path ("E&xamples") (λ (selection) (list->string (reverse (string->list selection)))))
null
https://raw.githubusercontent.com/Metaxal/quickscript-extra/526b2eccd9f73ea30bbc013741fdd77f4e2724cf/scripts/reverse-selection.rkt
racket
#lang racket/base (require quickscript) (script-help-string "(Example) The simplest script example: reverse the selected string.") (define-script reverse-selection #:label "Reverse selection" #:menu-path ("E&xamples") (λ (selection) (list->string (reverse (string->list selection)))))
ab364acbead0a05889a20fa2736bd0c650f4beadf5ec3cf3c9247f571a6ac5b3
atemerev/erlang_ngondro
orderbook.erl
-module(orderbook). -author("atemerev"). -include("../include/state.hrl"). -export([new_book/1, insert/2, delete/3, update/5, best/1, trim/2]). new_book(Symbol) -> #orderbook{symbol = Symbol, bids = [], offers = []}. insert(Book = #orderbook{}, Entry = #order_entry{side = Side, price = Price}) -> Line = get_line(...
null
https://raw.githubusercontent.com/atemerev/erlang_ngondro/5cf9449fdd012c4f090686c2c7f2d0bd295d58c8/src/orderbook.erl
erlang
-module(orderbook). -author("atemerev"). -include("../include/state.hrl"). -export([new_book/1, insert/2, delete/3, update/5, best/1, trim/2]). new_book(Symbol) -> #orderbook{symbol = Symbol, bids = [], offers = []}. insert(Book = #orderbook{}, Entry = #order_entry{side = Side, price = Price}) -> Line = get_line(...
45c00204dc58b42a1c7ce7a434214b18ae0d483b76416e719dfb9236ff19f208
dparis/gen-phzr
physics.cljs
(ns phzr.impl.accessors.physics) (def physics-constants {:arcade "ARCADE" :box-2d "BOX2D" :chipmunk "CHIPMUNK" :matterjs "MATTERJS" :ninja "NINJA" :p2-js "P2JS"}) (def physics-get-properties {:arcade "arcade" :box-2d "box2d" :chipmunk "chipmunk" :config "config" :game "game" :matter ...
null
https://raw.githubusercontent.com/dparis/gen-phzr/e4c7b272e225ac343718dc15fc84f5f0dce68023/out/impl/accessors/physics.cljs
clojure
(ns phzr.impl.accessors.physics) (def physics-constants {:arcade "ARCADE" :box-2d "BOX2D" :chipmunk "CHIPMUNK" :matterjs "MATTERJS" :ninja "NINJA" :p2-js "P2JS"}) (def physics-get-properties {:arcade "arcade" :box-2d "box2d" :chipmunk "chipmunk" :config "config" :game "game" :matter ...
fdaca48e303dddee0bd2f39ad8ff887e105339d9af9f0be42362e23422e6b99a
kpblc2000/KpblcLispLib
_kpblc-odbx-close.lsp
(defun _kpblc-odbx-close (conn) ;| * Çàêðûòèå ôàéëà, îòêðûòîãî ðàíåå ÷åðåç _kpblc-odbx-*. Ñ ïîïûòêîé ñîõðàíåíèÿ * Ïàðàìåòðû âûçîâà: ñîåäèíåíèå ñ ObjectDBX , ÷åðåç ( ) ëèáî ñïèñîê : '(("conn" . <ObjectDBXConnection>) ; òî æå ñàìîå ñîõðàíÿòü èëè íåò èçìåíåíèÿ èìÿ ,...
null
https://raw.githubusercontent.com/kpblc2000/KpblcLispLib/49d1d9d29078b4167cc65dc881bea61b706c620d/lsp/odbx/_kpblc-odbx-close.lsp
lisp
| òî æå ñàìîå _ end of cond _ end of cond _ end of vl-filename-directory _ end of _kpblc-dir-path-and-splash _ end of cond _ end of vl-filename-base _ end of strcat _ end of cond _ end of vla-get-name _ end of cond _ end of vlax-invoke _ end of if _ end of cond _ end of if _ end of vlax-release-objec...
(defun _kpblc-odbx-close (conn) * Çàêðûòèå ôàéëà, îòêðûòîãî ðàíåå ÷åðåç _kpblc-odbx-*. Ñ ïîïûòêîé ñîõðàíåíèÿ * Ïàðàìåòðû âûçîâà: ñîåäèíåíèå ñ ObjectDBX , ÷åðåç ( ) ëèáî ñïèñîê : ñîõðàíÿòü èëè íåò èçìåíåíèÿ èìÿ , . nil - > èñïîëüçîâàòü òåêóùåå ) * Ïðèìåð âûçîâà: (setq doc (_kpblc...
c68bba6b46b48e13d8051476861b1ca13d2d359463ef5e1ce7a8c6e88bc69b47
sunng87/cljts
geom.clj
(ns cljts.geom (:refer-clojure :exclude [empty?]) (:import [com.vividsolutions.jts.geom GeometryFactory PrecisionModel PrecisionModel$Type Coordinate LinearRing Point Polygon Geometry])) (defn c "create a coordinate o...
null
https://raw.githubusercontent.com/sunng87/cljts/b4360aa79fe8cad278bb5bc552f487832a4908b9/src/cljts/geom.clj
clojure
(ns cljts.geom (:refer-clojure :exclude [empty?]) (:import [com.vividsolutions.jts.geom GeometryFactory PrecisionModel PrecisionModel$Type Coordinate LinearRing Point Polygon Geometry])) (defn c "create a coordinate o...
a9020cfc4658c768deddabdfb4755b94e06a62c0db99c48437a2d94735c2c08d
jserot/fsml
test.ml
#use "topfind";; #require "yojson";; #require "ppx_deriving.runtime";; #require "ppx_deriving_yojson.runtime";; #directory "../../_build/default/src";; #directory "../../_build/default/src/.fsml.objs/byte";; #load "fsml.cma";; open Fsml open Fsm let f = Parse.fsm " name: pgcd; states: Idle, Comp; input...
null
https://raw.githubusercontent.com/jserot/fsml/9e3e04acbbb1cb1700fa9d4a0497f35ad4f70796/test/typing/test.ml
ocaml
#use "topfind";; #require "yojson";; #require "ppx_deriving.runtime";; #require "ppx_deriving_yojson.runtime";; #directory "../../_build/default/src";; #directory "../../_build/default/src/.fsml.objs/byte";; #load "fsml.cma";; open Fsml open Fsm let f = Parse.fsm " name: pgcd; states: Idle, Comp; input...
627127f5b867f5b8720f96b5bc4c9de286c643b28662ad6ac4d4f9e39f6a1b86
fukamachi/clozure-cl
ffi-linuxppc32.lisp
-*- Mode : Lisp ; Package : CCL -*- ;;; Copyright ( C ) 2007 - 2009 Clozure Associates and contributors This file is part of Clozure CL . ;;; Clozure CL is licensed under the terms of the Lisp Lesser GNU Public License , known as the LLGPL and distributed with Clozure CL as the ;;; file "LICENSE". ...
null
https://raw.githubusercontent.com/fukamachi/clozure-cl/4b0c69452386ae57b08984ed815d9b50b4bcc8a2/lib/ffi-linuxppc32.lisp
lisp
Package : CCL -*- file "LICENSE". The LLGPL consists of a preamble and the LGPL, conflict, the preamble takes precedence. Clozure CL is referenced in the preamble as the "LIBRARY." The LLGPL is also available online at LinuxPPC32: Structures are never actually passed by value; the caller inst...
Copyright ( C ) 2007 - 2009 Clozure Associates and contributors This file is part of Clozure CL . Clozure CL is licensed under the terms of the Lisp Lesser GNU Public License , known as the LLGPL and distributed with Clozure CL as the which is distributed with Clozure CL as the file " LGPL " . W...
7f5163a9a549543df7cc9601cf081421f6dd57d4a222060f83500048125558fe
reactiveml/rml
misc.ml
(* Graphics and events *) let init_sdl () = let open Sdlvideo in let open Sdl in init [`VIDEO]; at_exit quit; let screen = set_video_mode 800 800 [`DOUBLEBUF; `RESIZABLE] in fill_rect ~rect:(rect 0 0 800 800) screen (map_RGB screen red); screen let draw_brush image w h screen x old_x y old_y = let open...
null
https://raw.githubusercontent.com/reactiveml/rml/d178d49ed923290fa7eee642541bdff3ee90b3b4/examples-extra/rml_peintres/misc.ml
ocaml
Graphics and events behaviour
let init_sdl () = let open Sdlvideo in let open Sdl in init [`VIDEO]; at_exit quit; let screen = set_video_mode 800 800 [`DOUBLEBUF; `RESIZABLE] in fill_rect ~rect:(rect 0 0 800 800) screen (map_RGB screen red); screen let draw_brush image w h screen x old_x y old_y = let open Sdlvideo in fill_rect ~...
0a77cc2ee864deeaa5c5aa59cc579eaa4e873275c708fd946dc02d85839d6500
khibino/haskell-relational-record
Projectable.hs
# LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} -- | Module : Database . Relational . Copyright : 2013 - 2019 -- License : BSD3 -- -- Maintainer : -- Stability : experimental -- Portability : unknown -- -- This m...
null
https://raw.githubusercontent.com/khibino/haskell-relational-record/759b3d7cea207e64d2bd1cf195125182f73d2a52/relational-query/src/Database/Relational/Projectable.hs
haskell
# LANGUAGE OverloadedStrings # | License : BSD3 Maintainer : Stability : experimental Portability : unknown This module defines operators on various projected records. * Records of values * Placeholders * Operators * Terms for Window function types * Zipping projections * 'Maybe' type projecitoins...
# LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE MultiParamTypeClasses # Module : Database . Relational . Copyright : 2013 - 2019 module Database.Relational.Projectable ( * from SQL strings SqlContext (unsafeProjectSqlTerms), unsafeProjectSql', unsafeProjectSql, value, ...
bd2f9a88452bb88fe908bef0be71ac5833cd1116cc5b8b466e13dd29043d1bf1
justinmeiners/exercises
3_45.scm
(define (transfer from-account to-account amount) ((from-account 'withdraw) amount) ((to-account 'deposit) amount)) ; the sync mechanisms are separate ; withdraw and deposit could happen simulataneously because they are not in the same serialization set but that would actually be ok , since the amounts deposit...
null
https://raw.githubusercontent.com/justinmeiners/exercises/9491bc16925eae12e048ccd3f424b870ebdc73aa/sicp/3/3_45.scm
scheme
the sync mechanisms are separate withdraw and deposit could happen simulataneously because they are not in the same serialization set same as
(define (transfer from-account to-account amount) ((from-account 'withdraw) amount) ((to-account 'deposit) amount)) but that would actually be ok , since the amounts deposited and withdrawn are already known , so the two operations are independant from : - 10 to : + 10 to : + 10 from : - 10
005d013eac544e115c84f712791f1df2c5313659fdc17dfe35c66f25180fea4b
ucsd-progsys/dsolve
mc91-e.ml
DSOLVE -bare -dontminemlq let rec m x = if x > 100 then x - 10 else m (m (x + 11)) let n = read_int () let _ = if n <= 102 then assert (m n = 91) else ()
null
https://raw.githubusercontent.com/ucsd-progsys/dsolve/bfbbb8ed9bbf352d74561e9f9127ab07b7882c0c/tests/POPL2010/mc91-e.ml
ocaml
DSOLVE -bare -dontminemlq let rec m x = if x > 100 then x - 10 else m (m (x + 11)) let n = read_int () let _ = if n <= 102 then assert (m n = 91) else ()
a9767c5e384c0c61905c47af3fcaf837f4bf226ba7ca027282c347ac13f46b47
dustin/mqttd
SubTree.hs
# OPTIONS_GHC -Wno - orphans # # LANGUAGE TypeApplications # module SubTree where import Test.QuickCheck.Checkers import Test.QuickCheck.Classes import Test.Tasty import Test.Tasty.HUnit import Test.Tasty.QuickCheck as QC import Control.Applicative ...
null
https://raw.githubusercontent.com/dustin/mqttd/764c94224c5a6e5425accfdc2b83b8ada82d1242/test/SubTree.hs
haskell
# OPTIONS_GHC -Wno - orphans # # LANGUAGE TypeApplications # module SubTree where import Test.QuickCheck.Checkers import Test.QuickCheck.Classes import Test.Tasty import Test.Tasty.HUnit import Test.Tasty.QuickCheck as QC import Control.Applicative ...
9d5c0a5d131c9ba5434adcff5fa90c4fec265bcf87531c44fd0c017bb9ecd3c2
nasa/PRECiSA
PVS2CTest.hs
-- Notices: -- Copyright 2020 United States Government as represented by the Administrator of the National Aeronautics and Space Administration . All Rights Reserved . -- Disclaimers No Warranty : THE SUBJECT SOFTWARE IS PROVIDED " AS IS " WITHOUT ANY WARRANTY OF ANY KIND , EITHER EXPRESSED , IMPLIED , OR STATUTO...
null
https://raw.githubusercontent.com/nasa/PRECiSA/4b116d23222336e6f23b412e17cb15b603934f37/PRECiSA/tests/FramaC/PVS2CTest.hs
haskell
Notices: Disclaimers
Copyright 2020 United States Government as represented by the Administrator of the National Aeronautics and Space Administration . All Rights Reserved . No Warranty : THE SUBJECT SOFTWARE IS PROVIDED " AS IS " WITHOUT ANY WARRANTY OF ANY KIND , EITHER EXPRESSED , IMPLIED , OR STATUTORY , INCLUDING , BUT NOT LIMIT...
d59d168a9ef195554dd571368c4d28f75bfbe58cb137321745ae963832bc398b
janestreet/file_path
completion.ml
(* Our implementation of command-line completion simulates bash's tab-completion as closely as we can, restricting output based on the relevant [File_path] type. We are not as concerned with low-level performance in this module as in [Path_string], since the cost of fork/exec and i/o likely dominates the cost...
null
https://raw.githubusercontent.com/janestreet/file_path/68b5f15c886d03254ea8a95ced2d5cc64f696d2d/src/completion.ml
ocaml
Our implementation of command-line completion simulates bash's tab-completion as closely as we can, restricting output based on the relevant [File_path] type. We are not as concerned with low-level performance in this module as in [Path_string], since the cost of fork/exec and i/o likely dominates the cost o...
open! Core include Completion_intf module Sys = struct let getenv = Sys.getenv open struct let rooted path = if String.is_prefix path ~prefix:"/" then ( match getenv "ROOT_FOR_FILE_PATH_TESTING" with | Some root -> root ^ path | None -> path) else path ;; end ...
1c57cbcd59aa6fe6e95123313a9c312368236cb220416c65040d322c31083fa8
whamtet/dogfort
http.cljs
(ns dogfort.http (:require-macros [cljs.node-macros :as n]) (:require [cljs.node :as node] [redlobster.events :as e] [redlobster.stream :as s] [redlobster.promise :as p] [dogfort.util.response :as response])) (n/require "http" http) (n/require "url" url) (n/require "...
null
https://raw.githubusercontent.com/whamtet/dogfort/75c2908355cc18bf350a5b761d2906e013ee9f94/src/dogfort/http.cljs
clojure
(ns dogfort.http (:require-macros [cljs.node-macros :as n]) (:require [cljs.node :as node] [redlobster.events :as e] [redlobster.stream :as s] [redlobster.promise :as p] [dogfort.util.response :as response])) (n/require "http" http) (n/require "url" url) (n/require "...
bd3104311237f49f00b5cd1a84287cb67b6d2c11ababd8ffa8e20a8398e6bb4a
ragkousism/Guix-on-Hurd
xiph.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2013 , 2014 < > Copyright © 2013 < > Copyright © 2013 < > Copyright © 2014 Sree < > Copyright © 2014 < > Copyright © 2015 < > Copyright © 2015 , 2016 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free sof...
null
https://raw.githubusercontent.com/ragkousism/Guix-on-Hurd/e951bb2c0c4961dc6ac2bda8f331b9c4cee0da95/gnu/packages/xiph.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2013 , 2014 < > Copyright © 2013 < > Copyright © 2013 < > Copyright © 2014 Sree < > Copyright © 2014 < > Copyright © 2015 < > Copyright © 2015 , 2016 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU Gen...
b93031014526d8cd1a561b2f08e621ca1e8b789bf69c59074abfcb9238ea8df6
well-typed/generics-sop
SOPBench.hs
# LANGUAGE DataKinds # module Main where import Criterion.Main import SOPBench.Type import SOPBench.Roundtrip main :: IO () main = defaultMainWith defaultConfig [ bgroup "Roundtrip" [ bgroup "S2" [ bench "GHCGeneric" $ nf roundtrip (s2 :: S2 'GHCGeneric) , bench "SOPGGP" $ nf r...
null
https://raw.githubusercontent.com/well-typed/generics-sop/39a3badb10e11efc4f907db557f998412ffc1b2a/generics-sop/bench/SOPBench.hs
haskell
# LANGUAGE DataKinds # module Main where import Criterion.Main import SOPBench.Type import SOPBench.Roundtrip main :: IO () main = defaultMainWith defaultConfig [ bgroup "Roundtrip" [ bgroup "S2" [ bench "GHCGeneric" $ nf roundtrip (s2 :: S2 'GHCGeneric) , bench "SOPGGP" $ nf r...
e6094195662374e8176a38aad26312666772396246a8e12e7151b14d1f037c2b
melisgl/mgl-mat
convolve.lisp
(in-package :mgl-mat) (define-lisp-kernel (lisp-convolve-2d) ((x :mat :input) (start-x index) (x-height index) (x-width index) (w :mat :input) (start-w index) (w-height index) (w-width index) (y :mat :io) (start-y index) (y-height index) (y-width index) (start-0 index) (start-1 index) (stride-0...
null
https://raw.githubusercontent.com/melisgl/mgl-mat/550369aaac5aeafe563b6dc8e3cc6bf4b74a1cc5/src/convolve.lisp
lisp
Loop over the rows of Y and rows of the anchor points in X. Calculate the start index of the row into X and Y, taking into account the displacement and the batch index. These are incremented by the inner loop so that they point to the index of the current element. Loop over the columns of Y and columns of the an...
(in-package :mgl-mat) (define-lisp-kernel (lisp-convolve-2d) ((x :mat :input) (start-x index) (x-height index) (x-width index) (w :mat :input) (start-w index) (w-height index) (w-width index) (y :mat :io) (start-y index) (y-height index) (y-width index) (start-0 index) (start-1 index) (stride-0...
3bbcec9a9729a2d429637be32dd28481a6b4f103b801fd9502a01d2a8f1f7b3e
rururu/rete4frames
grid4x4-p4.clj
((size value 4) (possible row 1 column 1 value 16 group 1 id 1) (possible row 1 column 2 value any group 1 id 2) (possible row 1 column 3 value any group 1 id 3) (possible row 1 column 4 value any group 1 id 4) (possible row 2 column 1 value any group 1 id 5) (possible row 2 column 2 value any group 1 id 6) (possible...
null
https://raw.githubusercontent.com/rururu/rete4frames/b4c19af125db0918c1cf57240b1dafd768ffc52a/examples/sudoku/grid4x4-p4.clj
clojure
((size value 4) (possible row 1 column 1 value 16 group 1 id 1) (possible row 1 column 2 value any group 1 id 2) (possible row 1 column 3 value any group 1 id 3) (possible row 1 column 4 value any group 1 id 4) (possible row 2 column 1 value any group 1 id 5) (possible row 2 column 2 value any group 1 id 6) (possible...
7012d7c7b2d68218984a1b80f79114e8111a137ab873f14d454a9aa23a0c779a
dakk/yallo-lang
ttype.ml
type iden = string [@@deriving show {with_path = false}] type ttype = | TAny | TUnit | TAddress | TInt | TChainId | TNat | TMutez | TTimestamp | TBool | TSignature | TKeyHash | TKey | TString | TBytes | TOperation | TLambda of ttype * ttype | TEnum of string list | TList of ttype ...
null
https://raw.githubusercontent.com/dakk/yallo-lang/55a1b379306c9f113bd707e78b6e0c1be81bb7be/lib/intermediate/2_ast/ttype.ml
ocaml
custom abstract types internal types
type iden = string [@@deriving show {with_path = false}] type ttype = | TAny | TUnit | TAddress | TInt | TChainId | TNat | TMutez | TTimestamp | TBool | TSignature | TKeyHash | TKey | TString | TBytes | TOperation | TLambda of ttype * ttype | TEnum of string list | TList of ttype ...
d49915419e3eeee096be0579fb3f58cba01a5351979277ff28b55700fad69f2d
serefayar/ayatori
interface.clj
(ns ayatori.app-state.interface (:require [ayatori.app-state.core :as app-state])) (defn create [config] (app-state/make-appstate config))
null
https://raw.githubusercontent.com/serefayar/ayatori/808b31f0ee9f00dd884311cd4dbcc4c5199a8b9d/components/app_state/src/ayatori/app_state/interface.clj
clojure
(ns ayatori.app-state.interface (:require [ayatori.app-state.core :as app-state])) (defn create [config] (app-state/make-appstate config))
14248f8886f9fd6d79bf5a046b7851992125fc3d8e19a00e64d9ce2686a5ff4a
fourmolu/fourmolu
invalid-haddock-1-four-out.hs
test = undefined where a :: -- \** foo Int -> -- \| misplaced Int -- \|misplaced a = undefined
null
https://raw.githubusercontent.com/fourmolu/fourmolu/1f8903a92c8d5001dc1ec8ecfd4a04a3b61c3283/data/examples/other/invalid-haddock-1-four-out.hs
haskell
\** foo \| misplaced \|misplaced
test = undefined where a :: Int -> Int a = undefined
c6001e362dc70d665bf30550dfd475903e08afba4552c42b41b3800febeaf612
ollef/rock
Core.hs
{-# language CPP #-} {-# language DefaultSignatures #-} {-# language FlexibleContexts #-} # language FlexibleInstances # # language FunctionalDependencies # # language GADTs # # language GeneralizedNewtypeDeriving # # language RankNTypes # {-# language ScopedTypeVariables #-} {-# language TupleSections #-} {-# language...
null
https://raw.githubusercontent.com/ollef/rock/4b4f97c60d23af43f45c2187fc71aed8b2618fac/src/Rock/Core.hs
haskell
# language CPP # # language DefaultSignatures # # language FlexibleContexts # # language ScopedTypeVariables # # language TupleSections # # language TypeFamilies # # language UndecidableInstances # ----------------------------------------------------------------------------- * Types queries to compute its result. qu...
# language FlexibleInstances # # language FunctionalDependencies # # language GADTs # # language GeneralizedNewtypeDeriving # # language RankNTypes # module Rock.Core where import Control.Concurrent.Lifted import Control.Exception.Lifted import Data.IORef.Lifted import Control.Monad.Base import Control.Monad.Cont impo...
a33c0d3d5fc7a5bbb0c8c11467113e31ef31a3a4532c3ebff2570dea0238188e
kuberlog/holon
i.lisp
(load "holon.lisp") (load "human.lisp") (in-package :holon) (defun init-I () ; create a new I if one can't be loaded (if (not (boundp 'I)) (progn (defvar I (new-human 'Collin)) (setf (slot-value I 'superior-holons) (concatenate 'list '(USA NYC) ...
null
https://raw.githubusercontent.com/kuberlog/holon/42a50a06aaa39e608b0d8f155d982e7de0b295a2/lisp/i.lisp
lisp
create a new I if one can't be loaded run this if on a new system (init-i)
(load "holon.lisp") (load "human.lisp") (in-package :holon) (defun init-I () (if (not (boundp 'I)) (progn (defvar I (new-human 'Collin)) (setf (slot-value I 'superior-holons) (concatenate 'list '(USA NYC) (slot-value I 'superio...
e4351bc990b64d7982f19f9cfc3f5a56a66319aac0b0dbdcfddef1e196e62815
vbmithr/ocaml-coinbasepro
depth2.ml
open Core open Async open Coinbasepro open Coinbasepro_ws let src = Logs.Src.create "coinbasepro.depth2" ~doc:"Coinbasepro API - depth2 test application" let main symbols = let module Encoding = Json_encoding.Make(Json_repr.Yojson) in let buf = Bi_outbuf.create 4096 in let of_string s = Encoding.destru...
null
https://raw.githubusercontent.com/vbmithr/ocaml-coinbasepro/f4eec5c08f8c4e6ea6be76492ce4b228da282221/test/depth2.ml
ocaml
open Core open Async open Coinbasepro open Coinbasepro_ws let src = Logs.Src.create "coinbasepro.depth2" ~doc:"Coinbasepro API - depth2 test application" let main symbols = let module Encoding = Json_encoding.Make(Json_repr.Yojson) in let buf = Bi_outbuf.create 4096 in let of_string s = Encoding.destru...
90211ec4168a42a876c60835c92604a0eea00995a63d1d5c16e412207be1d4c5
nervous-systems/eulalie
lambda.cljc
(ns eulalie.test.lambda (:require [eulalie.lambda :as l] [eulalie.test.common :refer [creds]] [eulalie.test.common #?(:clj :refer :cljs :refer-macros) [deftest is]] [eulalie.core :as e] [clojure.string :as str] [camel-snake-kebab.core :as csk] [c...
null
https://raw.githubusercontent.com/nervous-systems/eulalie/ee435987278f5ed628f576700b716d9d0bc17c61/test/eulalie/test/lambda.cljc
clojure
(ns eulalie.test.lambda (:require [eulalie.lambda :as l] [eulalie.test.common :refer [creds]] [eulalie.test.common #?(:clj :refer :cljs :refer-macros) [deftest is]] [eulalie.core :as e] [clojure.string :as str] [camel-snake-kebab.core :as csk] [c...
a9bc164475748ba0adbe6801a8492ea39207e561c4ee152a4ca9a5f39b226501
kelamg/HtDP2e-workthrough
ex410.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex410) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-...
null
https://raw.githubusercontent.com/kelamg/HtDP2e-workthrough/ec05818d8b667a3c119bea8d1d22e31e72e0a958/HtDP/Intertwined-Data/ex410.rkt
racket
about the language level of this file in a form that our tools can easily process. A DB is a structure: (make-db Schema Content) A Schema is a [List-of Spec] A Label is a String A Predicate is a [Any -> Boolean] A (piece of) Content is a [List-of Row] A Row is a [List-of Cell] A Cell is Any constraint cells...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex410) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (define-struct db [schema content]) A Spec is a [ ...
a18aa51c0dd6df0be719cac8590c56ae9ad1f68b1322cb444382c35506f92626
buntine/Simply-Scheme-Exercises
17-11.scm
Write before - in - list ? , which takes a list and two elements of the list . It should return # t if the second argument appears in the list argument before the third ; argument: ; ; > (before-in-list? ’(back in the ussr) ’in ’ussr) ; #T ; ; > (before-in-list? ’(back in the ussr) ’the ’back) ; #F ; ; The procedur...
null
https://raw.githubusercontent.com/buntine/Simply-Scheme-Exercises/c6cbf0bd60d6385b506b8df94c348ac5edc7f646/17-lists/17-11.scm
scheme
argument: > (before-in-list? ’(back in the ussr) ’in ’ussr) #T > (before-in-list? ’(back in the ussr) ’the ’back) #F The procedure should also return #f if either of the supposed elements doesn’t appear at all.
Write before - in - list ? , which takes a list and two elements of the list . It should return # t if the second argument appears in the list argument before the third (define (before-in-list? lst a b) (cond ((null? lst) #f) ((equal? (car lst) a) (member? b (cdr lst))) ((equal? (car lst) b) #f) ...
ba834cb9854774f9f812eef53911430a21e03565e93e5f1e488e83b792529faf
replikativ/chat42app
core_test.clj
(ns chat42app.core-test (:require [clojure.test :refer :all] [chat42app.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
null
https://raw.githubusercontent.com/replikativ/chat42app/5d2caedf6509043823b946c44ceda51b078324b3/test/chat42app/core_test.clj
clojure
(ns chat42app.core-test (:require [clojure.test :refer :all] [chat42app.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
e9286b57b42c7bdb227b16ea23d08a6eb50bb43a2c226a9a7165e6b3f61ca0da
day8/re-frame-10x
events.cljs
(ns day8.re-frame-10x.events (:require [re-frame.core] [re-frame.db] [re-frame.trace] [re-frame.interop] [day8.re-frame-10x.inlined-deps.re-frame.v1v1v2.re-frame.core :as rf] [day8.re-frame-10x.fx.local-storage :as local-storage] [day8.re-frame-10x.navigation.even...
null
https://raw.githubusercontent.com/day8/re-frame-10x/bedaf58f1f682b2a0954cbb33ad3d31d574f6078/src/day8/re_frame_10x/events.cljs
clojure
Important that window dimensions are set before we open an external window. Global
(ns day8.re-frame-10x.events (:require [re-frame.core] [re-frame.db] [re-frame.trace] [re-frame.interop] [day8.re-frame-10x.inlined-deps.re-frame.v1v1v2.re-frame.core :as rf] [day8.re-frame-10x.fx.local-storage :as local-storage] [day8.re-frame-10x.navigation.even...
14b2bca5dd00f7d4b6829eba75d9c80deb7d35e21dd44cbdbab58487e35b4f99
clj-commons/useful
exception.clj
(ns flatland.useful.exception (:use [clojure.stacktrace :only [print-cause-trace]] [clojure.string :only [split-lines trim]])) (defmacro rescue "Evaluate form, returning error-form on any Exception." [form error-form] `(try ~form (catch Exception e# ~error-form))) (defn cause-trace "Return an Except...
null
https://raw.githubusercontent.com/clj-commons/useful/dc5cdebf8983a2e2ea24ec8951fbb4dfb037da45/src/flatland/useful/exception.clj
clojure
(ns flatland.useful.exception (:use [clojure.stacktrace :only [print-cause-trace]] [clojure.string :only [split-lines trim]])) (defmacro rescue "Evaluate form, returning error-form on any Exception." [form error-form] `(try ~form (catch Exception e# ~error-form))) (defn cause-trace "Return an Except...
d28c1281fd19b9725c4efbe4195658bf606c8b992b48db0884ebcbeefa64919c
logseq/logseq
list_test.cljs
(ns frontend.util.list-test (:require [cljs.test :refer [deftest is testing]] [frontend.util.list :as list-util])) (deftest test-re-order-items (testing "Single list" (is (= (list-util/re-order-items ["2. x" "3. x"] 2) "3. x\n4. x")) (is (= (list-...
null
https://raw.githubusercontent.com/logseq/logseq/cb9fde5b12cfad0066b9063f6c71b34a8c65fe90/src/test/frontend/util/list_test.cljs
clojure
(ns frontend.util.list-test (:require [cljs.test :refer [deftest is testing]] [frontend.util.list :as list-util])) (deftest test-re-order-items (testing "Single list" (is (= (list-util/re-order-items ["2. x" "3. x"] 2) "3. x\n4. x")) (is (= (list-...
4a31b56f00b49c25018480336687ebe01ecb82c74be932fc3432c3318919427d
verystable/warframe-autobuilder
RifleModsMapper.hs
# LANGUAGE NoImplicitPrelude # -- | Module : ArgInterface . ModsMapper . PistolModsMapper -- Maintainer : -- Stability : experimental -- -- This module contains functions that filter mods according -- to the primary weapon given by the user. -- So only the mods that can be applied to that perticular weapon...
null
https://raw.githubusercontent.com/verystable/warframe-autobuilder/015e0bb6812711ea27071816d054cbaa1c65770b/src/ArgInterface/ModsMapper/RifleModsMapper.hs
haskell
| Maintainer : Stability : experimental This module contains functions that filter mods according to the primary weapon given by the user. So only the mods that can be applied to that perticular weapon type will be returned. | A generic best-matcher. Matches a given mod name to corrected mod's name. | ...
# LANGUAGE NoImplicitPrelude # Module : ArgInterface . ModsMapper . PistolModsMapper module ArgInterface.ModsMapper.RifleModsMapper where import ClassyPrelude import Data.FuzzySet as F import Builder.Mods.RifleModsMetaList import Types.GenericWeapon ...
774e58c67a1e5648856b6f47593e4a10d496cddfb482a2f0302d1a44b6245a31
BinaryAnalysisPlatform/bap-veri
veri_out.ml
open Core_kernel[@@warning "-D"] open Text_block module Abs = Veri_stat.Abs module Rel = Veri_stat.Rel let make_iota max = let rec make acc n = if n < 0 then acc else make (n :: acc) (n - 1) in make [] (max - 1) let make_col title to_string vals = vcat ~align:`Center (text title :: List.map ~f:(fun x -...
null
https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap-veri/1368edaa32c11079b610ba61558ddcd091c1e774/plugin/veri_out.ml
ocaml
open Core_kernel[@@warning "-D"] open Text_block module Abs = Veri_stat.Abs module Rel = Veri_stat.Rel let make_iota max = let rec make acc n = if n < 0 then acc else make (n :: acc) (n - 1) in make [] (max - 1) let make_col title to_string vals = vcat ~align:`Center (text title :: List.map ~f:(fun x -...
912065dc314b36f21f33dfcc26bfbc5d3f8366ce31338b0393ee1a4a5993f557
cojna/iota
RangeAddRangeSum.hs
# LANGUAGE MultiParamTypeClasses # # OPTIONS_GHC -Wno - orphans # module Data.SegTree.RangeAddRangeSum where import Data.Monoid.RangedSum import Data.SegTree import Data.Semigroup instance (Num a) => MonoidAction (Sum a) (RangedSum a) where appMonoid (Sum x) (RangedSum len y) = RangedSum len (x * len + y) # INLINE...
null
https://raw.githubusercontent.com/cojna/iota/a64e8c5e4dd4f92e5ed3fcd0413be94ef1108f9e/src/Data/SegTree/RangeAddRangeSum.hs
haskell
# LANGUAGE MultiParamTypeClasses # # OPTIONS_GHC -Wno - orphans # module Data.SegTree.RangeAddRangeSum where import Data.Monoid.RangedSum import Data.SegTree import Data.Semigroup instance (Num a) => MonoidAction (Sum a) (RangedSum a) where appMonoid (Sum x) (RangedSum len y) = RangedSum len (x * len + y) # INLINE...
c937505e0cf6e77f2a57173a3b4c913974029f270c964b880c910a42c20a5b6c
kmi/irs
publisher-server.lisp
(in-package cl-user) (defun start-publisher-server () (setf *irs-host* "localhost") (http::start-tcp-services '(http:*http-port* 3001)))
null
https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/publisher/publisher-server.lisp
lisp
(in-package cl-user) (defun start-publisher-server () (setf *irs-host* "localhost") (http::start-tcp-services '(http:*http-port* 3001)))
6fd964791b0e39382ac72593399b9257b7bbaf824bc8307e31f274cdc1d4f06a
dakrone/lein-bikeshed
core_test.clj
(ns bikeshed.core-test (:use clojure.test bikeshed.core)) (deftest a-test (testing "FIXME, I fail, and I have trailing whitespace!" (is (= 0 1)))) (deftest another-test (with-redefs [get get] (is (= 2 2)))) (def this-thing-is-over-eighty-characters-long "yep, it certainly is over eighty cha...
null
https://raw.githubusercontent.com/dakrone/lein-bikeshed/cc0cdb65dfe8905b0b0d60fd52d41dd2f491cb46/test/bikeshed/core_test.clj
clojure
lot's of extra newlines:
(ns bikeshed.core-test (:use clojure.test bikeshed.core)) (deftest a-test (testing "FIXME, I fail, and I have trailing whitespace!" (is (= 0 1)))) (deftest another-test (with-redefs [get get] (is (= 2 2)))) (def this-thing-is-over-eighty-characters-long "yep, it certainly is over eighty cha...
8e31d2cfe054e21657526bb3ebe34635014c891f0f8c505e988f201ff99b8ec7
Ashe/HSRogue
CharacterActions.hs
# LANGUAGE ScopedTypeVariables # module CharacterActions ( getReaction , getNameColor , attack , spendEnergy , shareTargetTo ) where import Apecs import SDL.Vect import SDL.Font import System.Random import Control.Monad(when) import Data.HashMap.Strict as HM import Common import Components import Characters -- Det...
null
https://raw.githubusercontent.com/Ashe/HSRogue/ced7b7631a3dd4f0e6919ae98bda1c4316c8be38/src/CharacterActions.hs
haskell
Determines how the target will react against the character Get the name colour based on relationship with player The attacker incurs energy cost no matter what Shares the target to the other character Deal simple damage to enemy health Make a character spend energy
# LANGUAGE ScopedTypeVariables # module CharacterActions ( getReaction , getNameColor , attack , spendEnergy , shareTargetTo ) where import Apecs import SDL.Vect import SDL.Font import System.Random import Control.Monad(when) import Data.HashMap.Strict as HM import Common import Components import Characters getRea...
cd6d810262ec1c0beb952f73c96d32bb3bc824fbcb8645083a42d25426064d99
fragnix/fragnix
Data.Typeable.Internal.hs
{-# LINE 1 "Data.Typeable.Internal.hs" #-} # LANGUAGE Trustworthy # {-# LANGUAGE BangPatterns #-} # LANGUAGE CPP # {-# LANGUAGE ConstraintKinds #-} # LANGUAGE DataKinds # # LANGUAGE FlexibleInstances # # LANGUAGE MagicHash # # LANGUAGE NoImplicitPrelude # # LANGUAGE PolyKinds #...
null
https://raw.githubusercontent.com/fragnix/fragnix/b9969e9c6366e2917a782f3ac4e77cce0835448b/builtins/base/Data.Typeable.Internal.hs
haskell
# LINE 1 "Data.Typeable.Internal.hs" # # LANGUAGE BangPatterns # # LANGUAGE ConstraintKinds # --------------------------------------------------------------------------- | Module : Data.Typeable.Internal License : BSD-style (see the file libraries/base/LICENSE) ------------------------------------------...
# LANGUAGE Trustworthy # # LANGUAGE CPP # # LANGUAGE DataKinds # # LANGUAGE FlexibleInstances # # LANGUAGE MagicHash # # LANGUAGE NoImplicitPrelude # # LANGUAGE PolyKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE UndecidableInstances # # LANG...
2d12b1e519aa5c297a72860baec38327ccb0ac5c56891bf7bc205d50420dfd6e
ocsigen/ocaml-eliom
parsecmmaux.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocsigen/ocaml-eliom/497c6707f477cb3086dc6d8124384e74a8c379ae/testsuite/tests/asmcomp/parsecmmaux.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the type error = Unbound of string exception Error of error let tbl_ident = (Hashtbl.create 57 : (stri...
9854e5073c9ef64f47ec5968d6d5c3e8fcfdff9c48eee09070a9e0bdf7973405
tolitius/inquery
core.cljc
(ns inquery.core #?(:clj (:require [clojure.java.io :as io] [clojure.string :as s] [inquery.pred :as pred]) :cljs (:require [cljs.nodejs :as node] [clojure.string :as s] [inquery.pred :as pred]))) #?(:cljs (defn read-query [pa...
null
https://raw.githubusercontent.com/tolitius/inquery/9361a2d739e7bc8254e366afeef6e852b7b8f755/src/inquery/core.cljc
clojure
TODO: later if more opts check validate all: (#{:as :foo :bar} op) TODO: maybe later when returning a sqlvec "no escape" xs or with \"where\":
(ns inquery.core #?(:clj (:require [clojure.java.io :as io] [clojure.string :as s] [inquery.pred :as pred]) :cljs (:require [cljs.nodejs :as node] [clojure.string :as s] [inquery.pred :as pred]))) #?(:cljs (defn read-query [pa...
7a68a94f44d187dce454eb65a3a51994e9cfcf8da9849c6f39326990cd9b4518
acl2/acl2
pfield-lib-ext@useless-runes.lsp
(PFCS::TRUE-LISTP-WHEN-FE-LISTP (4 4 (:REWRITE DEFAULT-CDR)) (4 2 (:DEFINITION TRUE-LISTP)) (3 3 (:REWRITE PFIELD::FEP-WHEN-FE-LISTP-AND-MEMBER-EQUAL)) (3 3 (:REWRITE PFIELD::FEP-WHEN-CONSTANT)) (3 3 (:REWRITE DEFAULT-CAR)) ) (PFCS::NAT-LISTP-WHEN-FE-LISTP (18 18 (:REWRITE DEFAULT-CAR)) (8 8 (:REWRITE PFIELD::F...
null
https://raw.githubusercontent.com/acl2/acl2/f64742cc6d41c35f9d3f94e154cd5fd409105d34/books/kestrel/crypto/pfcs/.sys/pfield-lib-ext%40useless-runes.lsp
lisp
(PFCS::TRUE-LISTP-WHEN-FE-LISTP (4 4 (:REWRITE DEFAULT-CDR)) (4 2 (:DEFINITION TRUE-LISTP)) (3 3 (:REWRITE PFIELD::FEP-WHEN-FE-LISTP-AND-MEMBER-EQUAL)) (3 3 (:REWRITE PFIELD::FEP-WHEN-CONSTANT)) (3 3 (:REWRITE DEFAULT-CAR)) ) (PFCS::NAT-LISTP-WHEN-FE-LISTP (18 18 (:REWRITE DEFAULT-CAR)) (8 8 (:REWRITE PFIELD::F...
aecbeb093c91702f651371ec574d1ec3bb08d9ca74d87d82b816c64c12c65819
RealyUniqueName/Coro
coro_plugin.ml
open Globals open EvalValue open EvalContext open EvalEncode open Common open MacroApi open Ast open Type type sec_fields = { sec_finished : int; sec_interrupted : int; } let state_exit_code = { sec_finished = -1; sec_interrupted = -2; } * Terminates compiler process and prints user - friendly instructions ab...
null
https://raw.githubusercontent.com/RealyUniqueName/Coro/45ad2c61271d6302aaf502ed2df741ceb0ce8dc6/src/ml/coro_plugin.ml
ocaml
* Returns human-readable string representation of specified type * Check if the list is empty * Check if metadata contains `@:suspend` meta * Check if provided `callee` expression being called will suspend execution of a coroutine. without resumeValue with resumeValue * Search `coroutines` for a croroutine...
open Globals open EvalValue open EvalContext open EvalEncode open Common open MacroApi open Ast open Type type sec_fields = { sec_finished : int; sec_interrupted : int; } let state_exit_code = { sec_finished = -1; sec_interrupted = -2; } * Terminates compiler process and prints user - friendly instructions ab...
4b01a8b30df9731b7ccc35318263d2cc6704523d3c9f516484e784ac40aaeb8f
arcfide/oleg
xtest-lib.scm
; This software is in Public Domain. IT IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND . ; ; Please send bug reports and comments to: ;============================================================================== ; Test generator doesn't not use any external code for its own purpose in order ; to...
null
https://raw.githubusercontent.com/arcfide/oleg/c6826870436925fd4c873c01d7fcc24a7a7f95dc/sxml-tools/tests/xtest-lib.scm
scheme
This software is in Public Domain. Please send bug reports and comments to: ============================================================================== Test generator doesn't not use any external code for its own purpose in order to avoid any interference with tested code. Some service functions provided in th...
IT IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND . NOTE ! ! ! ! Exceptions : cout , cerr , nl , pp @license Copyright ( c ) 1998 , 1999 by . You may do as you please with (define (xtest-filter pred lis) (let recur ((lis lis)) (if (not (pair? lis)) lis (let ((head (car lis)) ...
b2e6e807ff86a993a10fb2ba06aa96dda6fd367ca2ad2c5ee26f2b6fc5d84b08
faber-lang/faber
Desugar.hs
module Desugar where import Data.Bifunctor (bimap) import qualified Operators as Op import Parse (TypeExpr (..), TypeScheme (..)) import qualified Parse as P data Pattern = PVar String | PWildcard | PInt Int | PCtor String Pattern | PTuple [Pattern] deriving (Show, Eq) data Expr = In...
null
https://raw.githubusercontent.com/faber-lang/faber/d022f52b22f209f1f10609949495b689e886c75f/src/Desugar.hs
haskell
module Desugar where import Data.Bifunctor (bimap) import qualified Operators as Op import Parse (TypeExpr (..), TypeScheme (..)) import qualified Parse as P data Pattern = PVar String | PWildcard | PInt Int | PCtor String Pattern | PTuple [Pattern] deriving (Show, Eq) data Expr = In...
58ec5e330007f00fea28a8f39de5b894c56bbc0c2ca13cc6b28f00dd477643ca
mk270/archipelago
weather.ml
Archipelago , a multi - user dungeon ( MUD ) server , by ( C ) 2009 - 2012 This programme is free software ; you may redistribute and/or modify it under the terms of the GNU Affero General Public Licence as published by the Free Software Foundation , either version 3 of said Licence , or ( ...
null
https://raw.githubusercontent.com/mk270/archipelago/4241bdc994da6d846637bcc079051405ee905c9b/src/model/weather.ml
ocaml
value must be < phase_segments value must be < moon_phases FIXME: apparently this assertion can fail!
Archipelago , a multi - user dungeon ( MUD ) server , by ( C ) 2009 - 2012 This programme is free software ; you may redistribute and/or modify it under the terms of the GNU Affero General Public Licence as published by the Free Software Foundation , either version 3 of said Licence , or ( ...
46d8ac313e18178e1fd0e1e36cf35fdde253870e6199eda169afa00ffa8ce0a2
Guest0x0/normalization-bench
Subst.ml
open Common.Syntax let rec shift (base, dist) tm = match tm with | Idx idx -> if idx < base then Idx idx else Idx(idx + dist) | Lam tm' -> Lam(shift (base + 1, dist) tm') | App(tf, ta) -> App(shift (base, dist) tf, shift (base, dist) ta) let rec subst (level, t...
null
https://raw.githubusercontent.com/Guest0x0/normalization-bench/1bee9a029671cb307a1ff3c423d2a1bc7352ffaa/Normalizers/Subst.ml
ocaml
open Common.Syntax let rec shift (base, dist) tm = match tm with | Idx idx -> if idx < base then Idx idx else Idx(idx + dist) | Lam tm' -> Lam(shift (base + 1, dist) tm') | App(tf, ta) -> App(shift (base, dist) tf, shift (base, dist) ta) let rec subst (level, t...
23a5356691e2647e7ea357527e57fea692e69bcc0c86fadbf8f67b709d58023a
facebook/pyre-check
artifactsTest.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/pyre-check/10c375bea52db5d10b71cb5206fac7da9549eb0c/source/buck/test/artifactsTest.ml
ocaml
Create aliases to private modules so we could test their internal APIs. Notice that the build map may point some artifacts to a nonexistent source file -- `populate` will NOT fail when that happens and we do rely on this behavior downstream. These tests make sure that `Delete` is idempotent. These tests mak...
* 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...
6281e6571918cdb9045c110d6cfda31c1845d345b66146d106a8da9f3bf817da
pink-gorilla/pinkie
unknown.cljc
(ns viz.unknown) (defn no-renderer "ui component for unknown tags - so that we don't need to catch react errors Currently not yet used (see resolve function)" [tag] (fn [& _] [:span.unknown-tag {:style {:background-color "red"}} (str "Unknown Tag: " tag)]))
null
https://raw.githubusercontent.com/pink-gorilla/pinkie/a0d26fdc6e6b8499dd957c8ad5f16493a35b4bc3/src/viz/unknown.cljc
clojure
(ns viz.unknown) (defn no-renderer "ui component for unknown tags - so that we don't need to catch react errors Currently not yet used (see resolve function)" [tag] (fn [& _] [:span.unknown-tag {:style {:background-color "red"}} (str "Unknown Tag: " tag)]))
ac5fb41b5fe57386a32ad211845826d217299530e211329d83e44751670dcfc3
craigfe/ppx_irmin
unsupported_type_package.ml
module type S = sig val x : unit end type t = (module S) [@@deriving irmin]
null
https://raw.githubusercontent.com/craigfe/ppx_irmin/06d764c6f1049131f1c4c7a3fbc59ff516c9d679/test/deriver/errors/unsupported_type_package.ml
ocaml
module type S = sig val x : unit end type t = (module S) [@@deriving irmin]
87fff73ec449783686efda5d87dcf8ab19832d0aae2fdec200a5290e745db049
fredfeng/CS162
relabel.mli
type 'a tree = Leaf of 'a | Node of 'a * 'a tree * 'a tree val relabel : 'a tree -> int tree
null
https://raw.githubusercontent.com/fredfeng/CS162/957e7f55a6afa55081c532652b5169faec2e3a42/homework/hw1/relabel.mli
ocaml
type 'a tree = Leaf of 'a | Node of 'a * 'a tree * 'a tree val relabel : 'a tree -> int tree
806f4513d23c7e8d11f39c47db9822c890e1b32bd9ece1ca7c249f8091b5cf07
slyrus/mcclim-old
input-editing.lisp
;;; -*- Mode: Lisp; Package: CLIM-INTERNALS -*- ( c ) copyright 2001 by ( ) ( c ) copyright 2006 - 2008 by ( ) ;;; This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software...
null
https://raw.githubusercontent.com/slyrus/mcclim-old/354cdf73c1a4c70e619ccd7d390cb2f416b21c1a/input-editing.lisp
lisp
-*- Mode: Lisp; Package: CLIM-INTERNALS -*- This library is free software; you can redistribute it and/or either This library 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 Licen...
( c ) copyright 2001 by ( ) ( c ) copyright 2006 - 2008 by ( ) modify it under the terms of the GNU Library General Public version 2 of the License , or ( at your option ) any later version . Library General Public License for more details . You should have received a copy ...
a02b36f93ab1fd7613baf8805bad59ba7f0b37eafdc2a67c70d3f22043ff8cd4
dwincort/AdaptiveFuzz
interpreter.mli
file name : interpreter.mli created by : Last modified : 12/15/2015 Description : This file contains code for interpreting terms . created by: Daniel Winograd-Cort Last modified: 12/15/2015 Description: This file contains code for interpreting SFuzz terms. *) open Types ...
null
https://raw.githubusercontent.com/dwincort/AdaptiveFuzz/ec937e1ea028e17216928dbdd029a5b9b04a0533/src/interpreter.mli
ocaml
Failing should never happen. It is always due to either a type problem, which means the type checker has failed, or a primitive problem.
file name : interpreter.mli created by : Last modified : 12/15/2015 Description : This file contains code for interpreting terms . created by: Daniel Winograd-Cort Last modified: 12/15/2015 Description: This file contains code for interpreting SFuzz terms. *) open Types ...