_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
0bc86e84dcfb2cf9bfaa84bad816a7164b96b0c4eec8518ae39b641b87b6d5da
gsakkas/rite
20060302-19:14:56-24471d7711961e7e9bd5c4e991485f01.seminal.ml
let rec reverseHelp place str = let revStr = Char.escaped str.[place] in if place > 0 then let currPlace = place - 1 in revStr ^ reverseHelp currPlace (str ^ Char.escaped str.[place]) let reverse str = let currChar = str.[0] in str let testVal = "fast" let strLen = String.length testV...
null
https://raw.githubusercontent.com/gsakkas/rite/958a0ad2460e15734447bc07bd181f5d35956d3b/features/data/seminal/20060302-19%3A14%3A56-24471d7711961e7e9bd5c4e991485f01.seminal.ml
ocaml
let rec reverseHelp place str = let revStr = Char.escaped str.[place] in if place > 0 then let currPlace = place - 1 in revStr ^ reverseHelp currPlace (str ^ Char.escaped str.[place]) let reverse str = let currChar = str.[0] in str let testVal = "fast" let strLen = String.length testV...
e9a53c25e4b88152197078760135dc03a7c31333c299104f76e572632c505689
yogthos/memory-hole
routes.cljs
(ns memory-hole.routes (:require [re-frame.core :refer [dispatch dispatch-sync subscribe]] [goog.events :as events] [goog.history.EventType :as HistoryEventType] [secretary.core :as secretary] [accountant.core :as accountant]) (:import goog.History)) (defn logged-in?...
null
https://raw.githubusercontent.com/yogthos/memory-hole/925e399b0002d59998d10bd6f54ff3464a4b4ddb/src/cljs/memory_hole/routes.cljs
clojure
Why do you need to scrollTo on these events? ------------------------- Routes Consider adding a group-detail page for batch removing/adding users to groups ------------------------- History must be called after routes have been defined
(ns memory-hole.routes (:require [re-frame.core :refer [dispatch dispatch-sync subscribe]] [goog.events :as events] [goog.history.EventType :as HistoryEventType] [secretary.core :as secretary] [accountant.core :as accountant]) (:import goog.History)) (defn logged-in?...
1548a4c8b5233af460da0bea576ba9409b9d5cd38337e7d1087c08ec8267fa19
jgrodziski/scenari
atm_steps.clj
(ns scenari.atm-steps (:require [scenari.core :refer :all] [clojure.test :refer [is]])) (defrecord Card [number balance holder]) (defrecord Withdrawal [amount atm-id card-number]) (defn withdraw [withdrawal] (prn "withdraw " withdrawal) (conj withdrawal {:result :success})) (defgiven #"the card ...
null
https://raw.githubusercontent.com/jgrodziski/scenari/c2dd94e093232e908739d5ac27f6bbbc51f58774/test/scenari/atm_steps.clj
clojure
(ns scenari.atm-steps (:require [scenari.core :refer :all] [clojure.test :refer [is]])) (defrecord Card [number balance holder]) (defrecord Withdrawal [amount atm-id card-number]) (defn withdraw [withdrawal] (prn "withdraw " withdrawal) (conj withdrawal {:result :success})) (defgiven #"the card ...
789e6972c5472b1ffe1c9482210298b754acff631cb7db5eab2070706ba38244
scarvalhojr/haskellbook
section26.9.hs
# LANGUAGE InstanceSigs # import Control.Monad.Trans.Class (MonadTrans, lift) import Control.Monad (liftM) 1 . newtype IdentityT f a = IdentityT { runIdentityT :: f a } deriving (Eq, Show) instance MonadTrans IdentityT where lift :: Monad m => m a -> IdentityT m a lift = IdentityT 2 . newty...
null
https://raw.githubusercontent.com/scarvalhojr/haskellbook/6016a5a78da3fc4a29f5ea68b239563895c448d5/chapter26/section26.9.hs
haskell
# LANGUAGE InstanceSigs # import Control.Monad.Trans.Class (MonadTrans, lift) import Control.Monad (liftM) 1 . newtype IdentityT f a = IdentityT { runIdentityT :: f a } deriving (Eq, Show) instance MonadTrans IdentityT where lift :: Monad m => m a -> IdentityT m a lift = IdentityT 2 . newty...
85062690c0c7f1affdb7302064d8c249484e29ab043c19d88e26bc6896250029
input-output-hk/cardano-base
ToCBOR.hs
{-# LANGUAGE CPP #-} # LANGUAGE ConstrainedClassMethods # # LANGUAGE DeriveFunctor # # LANGUAGE ExistentialQuantification # # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # {-# LANGUAGE MultiWayIf #-} # LANGUAGE NumDecimals ...
null
https://raw.githubusercontent.com/input-output-hk/cardano-base/7e64caa79e0f751f1333ccbce4a64cb48752ae69/cardano-binary/src/Cardano/Binary/ToCBOR.hs
haskell
# LANGUAGE CPP # # LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # # LANGUAGE Rank2Types # # LANGUAGE ScopedTypeVariables # * Size of expressions | Default size expression for a list type. ----------------------------------------------------------...
# LANGUAGE ConstrainedClassMethods # # LANGUAGE DeriveFunctor # # LANGUAGE ExistentialQuantification # # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE NumDecimals # # LANGUAGE TypeApplications # module Cardano.Binary.ToCBOR ( ToCBOR(...
1b69b99ea646840e004f3a8ff91b8a179b92ad9f5d8e9d36f41c3d1d653d3ac4
furkan3ayraktar/clojure-polylith-realworld-example-app
store.clj
(ns clojure.realworld.comment.store (:require [clojure.java.jdbc :as jdbc] [clojure.realworld.database.interface :as database] [honey.sql :as sql])) (defn comments [article-id] (let [query {:select [:*] :from [:comment] :where [:= :articleId article-id]}] ...
null
https://raw.githubusercontent.com/furkan3ayraktar/clojure-polylith-realworld-example-app/7703ee7af93887ea600d1c05e400255303a6ed47/components/comment/src/clojure/realworld/comment/store.clj
clojure
(ns clojure.realworld.comment.store (:require [clojure.java.jdbc :as jdbc] [clojure.realworld.database.interface :as database] [honey.sql :as sql])) (defn comments [article-id] (let [query {:select [:*] :from [:comment] :where [:= :articleId article-id]}] ...
3d59ceac0d12ff1b2f3faaab67ade9629df843e2d6370b988cf31745a64f6fe4
facebookarchive/duckling_old
measure.clj
( ;; Distance ;; NEED TO PUSH THE NORMALIZATION IN THE HELPER + CREATE Function to combine distance " two distance tokens in a row " [ ( dim : distance # ( not (: latent % ) ) ) ( dim : distance # ( not (: latent % ) ) ) ] ; sequence of two tokens with a distance dimension ( combine - distance % 1 % 2 ) ...
null
https://raw.githubusercontent.com/facebookarchive/duckling_old/bf5bb9758c36313b56e136a28ba401696eeff10b/resources/languages/ro/rules/measure.clj
clojure
Distance NEED TO PUSH THE NORMALIZATION IN THE HELPER + CREATE Function to combine distance sequence of two tokens with a distance dimension same thing , with " and " in between like " 3 feets and 2 inches " sequence of two tokens with a time fn latent distance temporary hack "<latent dist> feet and <latent dist>...
( " two distance tokens in a row " ( combine - distance % 1 % 2 ) " two distance tokens separated by and " ( combine - distance % 1 % 3 ) "number as distance" (dim :number) {:dim :distance :latent true :value (:value %1)} "<latent dist> km" [(dim :distance) #"(?i)(kilometr[iu]|km)"] (-> %1 ...
cf5b9b945d671610764930d7b6299db29a7b4e3407c9dcef2b946fc7c3a90db2
ktakashi/sagittarius-scheme
rsa.scm
-*- mode : scheme ; coding : utf-8 ; -*- ;;; ;;; sagittarius/crypto/ciphers/asymmeteric/rsa.scm - RSA cipher ;;; Copyright ( c ) 2022 < > ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met:...
null
https://raw.githubusercontent.com/ktakashi/sagittarius-scheme/ed1d5e34e3df5e6f1c1240b190ab959de5041455/ext/crypto/sagittarius/crypto/ciphers/asymmetric/rsa.scm
scheme
coding : utf-8 ; -*- sagittarius/crypto/ciphers/asymmeteric/rsa.scm - RSA cipher 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 ...
Copyright ( c ) 2022 < > " 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 #!nounbound (library (sagittarius crypto ciphers as...
bd2c0999b19eca026b25b52848a62ba6111538b2ec7db1bcc382b44bfae445e5
avsm/platform
error.mli
type t val make : ?suggestion:string -> ('a, unit, string, Location_.span -> t) format4 -> 'a val filename_only : string -> string -> t val to_string : t -> string val raise_exception : t -> _ val to_exception : ('a, t) Result.result -> 'a val catch : (unit -> 'a) -> ('a, t) Result.result type 'a with_warnings = ...
null
https://raw.githubusercontent.com/avsm/platform/b254e3c6b60f3c0c09dfdcde92eb1abdc267fa1c/duniverse/odoc.1.4.2/src/model/error.mli
ocaml
type t val make : ?suggestion:string -> ('a, unit, string, Location_.span -> t) format4 -> 'a val filename_only : string -> string -> t val to_string : t -> string val raise_exception : t -> _ val to_exception : ('a, t) Result.result -> 'a val catch : (unit -> 'a) -> ('a, t) Result.result type 'a with_warnings = ...
0d474a9d914e845d7a012c1a93deb44501aa6f17f172c5cf9dede6229e05812c
bolt12/laop
Internal.hs
{-# LANGUAGE StrictData #-} # LANGUAGE TypeFamilyDependencies # {-# LANGUAGE ConstraintKinds #-} # LANGUAGE AllowAmbiguousTypes # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE InstanceSigs # # LANGUAGE MultiParamTypeClasses # # LANGUAGE NoStarIsTyp...
null
https://raw.githubusercontent.com/bolt12/laop/54968c9e92e9243a731320758da7d59b98e903da/src/LAoP/Matrix/Internal.hs
haskell
# LANGUAGE StrictData # # LANGUAGE ConstraintKinds # # LANGUAGE GADTs # --------------------------------------------------------------------------- | Maintainer : Stability : experimental The LAoP discipline generalises relations and functions treating them as Boolean matrices and in turn consider these as arro...
# LANGUAGE TypeFamilyDependencies # # LANGUAGE AllowAmbiguousTypes # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE InstanceSigs # # LANGUAGE MultiParamTypeClasses # # LANGUAGE NoStarIsType # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE Type...
409fb5e1a8d6e8f2e9428483250c8176334401793a68ca391a3e6ad0ee1c021d
returntocorp/semgrep
Parse_c_tree_sitter.ml
* * Copyright ( C ) 2020 r2c * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation , with the * special exception on linking described in file LICENSE . ...
null
https://raw.githubusercontent.com/returntocorp/semgrep/6848073c6220aaffeb9b41f4f1657cb6d84a1311/languages/c/tree-sitter/Parse_c_tree_sitter.ml
ocaml
*************************************************************************** Prelude *************************************************************************** *************************************************************************** Helpers ************************************************************************...
* * Copyright ( C ) 2020 r2c * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation , with the * special exception on linking described in file LICENSE . ...
d34e5b516bc877fc94fa72128ec6e6fbbb428dbdd2c872db243091f5a7424caf
daypack-dev/daypack-lib
ranges_small.ml
let normalize (type a) ?(skip_filter_invalid = false) ?(skip_filter_empty = false) ?(skip_sort = false) ~(modulo : int option) ~(to_int : a -> int) ~(of_int : int -> a) (s : a Range.range Seq.t) : a Range.range Seq.t = let modulo = Option.map Int64.of_int modulo in let to_int64 = Misc_utils.convert_to_int...
null
https://raw.githubusercontent.com/daypack-dev/daypack-lib/63fa5d85007eca73aa6c51874a839636dd0403d3/src/ranges_small.ml
ocaml
let normalize (type a) ?(skip_filter_invalid = false) ?(skip_filter_empty = false) ?(skip_sort = false) ~(modulo : int option) ~(to_int : a -> int) ~(of_int : int -> a) (s : a Range.range Seq.t) : a Range.range Seq.t = let modulo = Option.map Int64.of_int modulo in let to_int64 = Misc_utils.convert_to_int...
22b09612fbabb1dff8e77501d39871a780b4db34a0a41737a3b25235dc17ec93
nodew/haskell-realworld-example
ArticleTag.hs
# LANGUAGE DerivingStrategies # # LANGUAGE StandaloneDeriving # # LANGUAGE DeriveGeneric # {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE TypeFamilies # # LANGUAGE DuplicateRecordFields # module Conduit.Db.Schema.ArticleTag where import RIO import Rel8 import Conduit.Core.Article data ArticleTagEntity f = ArticleTagEnti...
null
https://raw.githubusercontent.com/nodew/haskell-realworld-example/8fd5939105044239ca70ce2081ca4fa99710ac5f/src/Conduit/Db/Schema/ArticleTag.hs
haskell
# LANGUAGE DeriveAnyClass #
# LANGUAGE DerivingStrategies # # LANGUAGE StandaloneDeriving # # LANGUAGE DeriveGeneric # # LANGUAGE TypeFamilies # # LANGUAGE DuplicateRecordFields # module Conduit.Db.Schema.ArticleTag where import RIO import Rel8 import Conduit.Core.Article data ArticleTagEntity f = ArticleTagEntity { tgdArticleId :: Column ...
bbadb5fdd7cb02859b156597baf0181b65488e1f5621ae783732247a4a153047
aws-beam/aws-erlang
aws_backupstorage.erl
%% WARNING: DO NOT EDIT, AUTO-GENERATED CODE! See -beam/aws-codegen for more details . @doc The frontend service for Cryo Storage . -module(aws_backupstorage). -export([delete_object/4, delete_object/5, get_chunk/3, get_chunk/5, get_chunk/6, get_object_metadata/3, ...
null
https://raw.githubusercontent.com/aws-beam/aws-erlang/699287cee7dfc9dc8c08ced5f090dcc192c9cba8/src/aws_backupstorage.erl
erlang
WARNING: DO NOT EDIT, AUTO-GENERATED CODE! ==================================================================== API ==================================================================== @doc Gets the specified object's chunk. @doc Get metadata associated with an Object. @doc List chunks in a given Object @doc List...
See -beam/aws-codegen for more details . @doc The frontend service for Cryo Storage . -module(aws_backupstorage). -export([delete_object/4, delete_object/5, get_chunk/3, get_chunk/5, get_chunk/6, get_object_metadata/3, get_object_metadata/5, get_objec...
802136f3306a254d48519d92d7ec9a8d843bed7260f38000f61d17278c5a407f
arttuka/reagent-material-ui
data_grid_pro.cljs
(ns reagent-mui.x.data-grid-pro "Imports @mui/x-data-grid-pro as a Reagent component. Original documentation is at -grid/data-grid-pro/ ." (:require-macros [reagent-mui.util :refer [with-unchanged-js-props]]) (:require [reagent.core :as r] ["@mui/x-data-grid-pro" :as MuiDataGridPro])) (def data-gr...
null
https://raw.githubusercontent.com/arttuka/reagent-material-ui/14103a696c41c0eb67fc07fc67cd8799efd88cb9/src/x/reagent_mui/x/data_grid_pro.cljs
clojure
(ns reagent-mui.x.data-grid-pro "Imports @mui/x-data-grid-pro as a Reagent component. Original documentation is at -grid/data-grid-pro/ ." (:require-macros [reagent-mui.util :refer [with-unchanged-js-props]]) (:require [reagent.core :as r] ["@mui/x-data-grid-pro" :as MuiDataGridPro])) (def data-gr...
c5682f8fea2f06261a4c476728a5b04310e388e1d80f67fc59ce8ae0b0bbabd9
dzer6/cljfmt-graalvm
project.clj
(defproject cljfmt-graalvm "0.1.0-SNAPSHOT" :description "Clojure formatter using cljfmt built with GraalVM" :url "-graalvm" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.9.0"] [org.clojure/tools.cli "0.3.7"] [clj...
null
https://raw.githubusercontent.com/dzer6/cljfmt-graalvm/043039341b0c459b73a8f2e5419ceb13733dc1e7/project.clj
clojure
(defproject cljfmt-graalvm "0.1.0-SNAPSHOT" :description "Clojure formatter using cljfmt built with GraalVM" :url "-graalvm" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.9.0"] [org.clojure/tools.cli "0.3.7"] [clj...
2ef0946b159f8162320300ab88203bb13de9a93163d0830dd3a39db24d0064a3
AdaCore/why3
expr.mli
(********************************************************************) (* *) The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2022 -- Inria - CNRS - Paris - Saclay University (* ...
null
https://raw.githubusercontent.com/AdaCore/why3/03f27e383b7191f9df0c7df84016a6450603f864/src/mlw/expr.mli
ocaml
****************************************************************** This software is distributed under the terms of the GNU Lesser on linking described in file LICENSE. ...
The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2022 -- Inria - CNRS - Paris - Saclay University General Public License version 2.1 , with the special exception * { 1 WhyML program expressions } open Wstdlib open Ident open Term open Ity * { 2 Routine symbols } typ...
a4f026dd4537276880e4c286b0a8b4349ea21df026aea5ab1950403ec4d7675b
evincarofautumn/kitten
DataConstructor.hs
| Module : Kitten . DataConstructor Description : Constructors of data types Copyright : ( c ) , 2016 License : MIT Maintainer : Stability : experimental Portability : GHC Module : Kitten.DataConstructor Description : Constructors of data types Copyright : (c) Jon Purdy, 201...
null
https://raw.githubusercontent.com/evincarofautumn/kitten/a5301fe24dbb9ea91974abee73ad544156ee4722/lib/Kitten/DataConstructor.hs
haskell
# LANGUAGE OverloadedStrings # FIXME: Support fields.
| Module : Kitten . DataConstructor Description : Constructors of data types Copyright : ( c ) , 2016 License : MIT Maintainer : Stability : experimental Portability : GHC Module : Kitten.DataConstructor Description : Constructors of data types Copyright : (c) Jon Purdy, 201...
cac261f50ffc312b076aa091fc34277af7935347f78b5f3275e99f95d63479a9
Decentralized-Pictures/T4L3NT
operation_pool.mli
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2021 Nomadic Labs < > (* ...
null
https://raw.githubusercontent.com/Decentralized-Pictures/T4L3NT/6d4d3edb2d73575384282ad5a633518cba3d29e3/src/proto_012_Psithaca/lib_delegate/operation_pool.mli
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2021 Nomadic Labs < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN AN...
762f40716fee80c3c53f3b726a3c0a1bb6363785812b24403d12cc425ea245f9
amnh/poy5
gBSeq.ml
POY 5.1.1 . A phylogenetic analysis program using Dynamic Homologies . Copyright ( C ) 2011 , , , Ward Wheeler and the American Museum of Natural History . (* *) (* This program is free softwa...
null
https://raw.githubusercontent.com/amnh/poy5/da563a2339d3fa9c0110ae86cc35fad576f728ab/src/parser/gBSeq.ml
ocaml
This program is free software; you can redistribute it and/or modify (at your option) any later version. This progra...
POY 5.1.1 . A phylogenetic analysis program using Dynamic Homologies . Copyright ( C ) 2011 , , , Ward Wheeler and the American Museum of Natural History . it under the terms of the GNU General Public License as published by the Free Software Foundation ; ...
0affa84886ae89edbd60c6e15f1a6978e8e348f55aced358b11da617a80794d4
ocsigen/js_of_ocaml
gen.ml
open StdLabels let is_implem x = if String.equal (Filename.extension x) ".ml" then let fname = Filename.chop_extension x in try String.iter fname ~f:(function | 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' -> () | _ -> raise Exit); true with Exit -> false else false let...
null
https://raw.githubusercontent.com/ocsigen/js_of_ocaml/e874f265472f3083357a2104130c0ae41a26515d/lib/tests/gen-rules/gen.ml
ocaml
normalizatio for windows
open StdLabels let is_implem x = if String.equal (Filename.extension x) ".ml" then let fname = Filename.chop_extension x in try String.iter fname ~f:(function | 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' -> () | _ -> raise Exit); true with Exit -> false else false let...
143feeb3233b6cd0e78ca1cf01409bcdbcd3b77305cf775ded0d22cff137feb7
realworldocaml/book
actions_attribute.ml
open! Base module V1 = struct type t = { mn : bool ; mr : t ; kn : bool ; kr : t ; an : bool ; ar : t option ; sn : bool ; sr : t option } end module V2 = struct type t = { mn : bool ; mr : t * t ; kn : bool ; kr : t ; rn : bool ; rr : t ; sn : bool ...
null
https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/ppx_stable/tests/actions_attribute.ml
ocaml
open! Base module V1 = struct type t = { mn : bool ; mr : t ; kn : bool ; kr : t ; an : bool ; ar : t option ; sn : bool ; sr : t option } end module V2 = struct type t = { mn : bool ; mr : t * t ; kn : bool ; kr : t ; rn : bool ; rr : t ; sn : bool ...
aba3ae2261d59a965057ee90cf1ac5afd332ac93042f3da72529dc51cd79d6c3
modular-macros/ocaml-macros
cast.ml
By using two types we can have a recursive constraint type 'a class_name = .. constraint 'a = < cast: 'a. 'a name -> 'a; ..> and 'a name = Class : 'a class_name -> (< cast: 'a. 'a name -> 'a; ..> as 'a) name ;; exception Bad_cast ;; class type castable = object method cast: 'a.'a name -> 'a end ;; (* Lets cre...
null
https://raw.githubusercontent.com/modular-macros/ocaml-macros/05372c7248b5a7b1aa507b3c581f710380f17fcd/testsuite/tests/typing-extensions/cast.ml
ocaml
Lets create a castable class with a name Now we can create a subclass of foo Now lets create a mutable list of castable objects We can add foos and bars to this list, and retrive them We can also downcast these values to foos and bars Ok Ok Ok Ok
By using two types we can have a recursive constraint type 'a class_name = .. constraint 'a = < cast: 'a. 'a name -> 'a; ..> and 'a name = Class : 'a class_name -> (< cast: 'a. 'a name -> 'a; ..> as 'a) name ;; exception Bad_cast ;; class type castable = object method cast: 'a.'a name -> 'a end ;; class type...
6923704052615ddca6e745aec232d8ec83435128fb45ac7e41805ca227b1d8d3
RDTK/generator
schema.lisp
;;;; schema.lisp --- Schema for non-aspect variables. ;;;; Copyright ( C ) 2014 - 2019 Jan Moringen ;;;; Author : < > (cl:in-package #:build-generator.model) Utilities (defun dependency-specification? (thing) (when (proper-list-p thing) (or (typep thing '(cons (cons keyword string) null)) (let...
null
https://raw.githubusercontent.com/RDTK/generator/8d9e6e47776f2ccb7b5ed934337d2db50ecbe2f5/src/model/schema.lisp
lisp
schema.lisp --- Schema for non-aspect variables. General variables Project variables Job variables Orchestration variables View variables
Copyright ( C ) 2014 - 2019 Jan Moringen Author : < > (cl:in-package #:build-generator.model) Utilities (defun dependency-specification? (thing) (when (proper-list-p thing) (or (typep thing '(cons (cons keyword string) null)) (let ((nature? nil) (target? nil) (ver...
f4cc8cb7f664864148d4acf76719ea51831356b3fcac493093a4e375f57a78b9
ucsd-progsys/dsolve
conjunct.ml
if true && false then () else if true || false then () else ();;
null
https://raw.githubusercontent.com/ucsd-progsys/dsolve/bfbbb8ed9bbf352d74561e9f9127ab07b7882c0c/tests/POPL2008/conjunct.ml
ocaml
if true && false then () else if true || false then () else ();;
d14f599ed190da5a750ad1a493ed2036cb116a9d4b34cc386af7492f1b56641d
richhickey/clojure-contrib
test_softstrat.clj
Copyright ( c ) . All rights reserved . The use and ;; distribution terms for this software are covered by the Eclipse Public ;; License 1.0 (-1.0.php) 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 t...
null
https://raw.githubusercontent.com/richhickey/clojure-contrib/40b960bba41ba02811ef0e2c632d721eb199649f/src/test/clojure/clojure/contrib/datalog/tests/test_softstrat.clj
clojure
distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or an...
Copyright ( c ) . All rights reserved . The use and A Clojure implementation of Datalog -- Soft Stratification Tests straszheimjeffrey ( gmail ) Created 28 Feburary 2009 (ns clojure.contrib.datalog.tests.test-softstrat (:use clojure.test) (:use clojure.contrib.datalog.softstrat clojure.cont...
98881201fef45ca8e9ee36bedaf6e3afff3bbd2c0639c77ba2edc27b362b1e4b
ghcjs/ghcjs
conc009.hs
module Main where import Control.Concurrent import Control.Exception main = do id <- myThreadId throwTo id (ErrorCall "hello")
null
https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/test/ghc/concurrent/conc009.hs
haskell
module Main where import Control.Concurrent import Control.Exception main = do id <- myThreadId throwTo id (ErrorCall "hello")
006f86f7656deff91cf47e1ee19cfd1e0d6cc5ed746273f4577200c98d91ce16
ChrisPenner/advent-of-code-haskell
Day05.hs
module Y2020.Day05 where import Data.List ( sort ) import Control.Lens ( (&), (.@~), taking ) import Data.Bits.Lens ( bits ) import qualified Data.Set as S main :: IO () main = do passes <- fmap toNumber . lines <$> readFile "./day05.txt" part 1 print . maximum $ passes part 2 print . findMissing' $ p...
null
https://raw.githubusercontent.com/ChrisPenner/advent-of-code-haskell/da10d53b3e98b67c9cb499dd8b2ddadd121c932e/src/Y2020/Day05.hs
haskell
toNumber :: String -> Int toNumber = foldl go 0 . zip [0..] . reverse where go n (i,'F') = clearBit n i go n (i,'B') = setBit n i go n (i,'L') = clearBit n i go n (i,'R') = setBit n i go _ c = error (show c)
module Y2020.Day05 where import Data.List ( sort ) import Control.Lens ( (&), (.@~), taking ) import Data.Bits.Lens ( bits ) import qualified Data.Set as S main :: IO () main = do passes <- fmap toNumber . lines <$> readFile "./day05.txt" part 1 print . maximum $ passes part 2 print . findMissing' $ p...
6ae6fca9e81514f533b0cf63474f3277eafa33e49d0035bb0cd7ff3c27533c6e
input-output-hk/cardano-wallet
Arbitrary.hs
# LANGUAGE AllowAmbiguousTypes # {-# LANGUAGE ConstraintKinds #-} # LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # #...
null
https://raw.githubusercontent.com/input-output-hk/cardano-wallet/1a8514a8fa64c13e37001098e94d7fd6c4849e82/lib/wallet/test/unit/Cardano/Wallet/DB/Arbitrary.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE RankNTypes # ------------------------------------------------------------------------------ Modifiers ------------------------------------------------------------------------------ | Convenient constraint alias for generating address discovery st...
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE NumericUnderscores # # ...
748cef14606426ddec0b27a5ba467ce1f7bdd80aa58432871c5409ab91a9f7b2
L7R7/gitlab-ci-build-statuses
GetStatusForProjectSpec.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # # OPTIONS_GHC -fplugin = Polysemy . Plugin # module GetStatusForProjectSpec where import Core.BuildStatuses import Core.Shared import Data.Map qualified as M import Network.URI.Static import Path import Polysemy import Polysemy.Reader qualified as R impo...
null
https://raw.githubusercontent.com/L7R7/gitlab-ci-build-statuses/87664dff508a2feb49ba4f2c42b691c1b53eff09/test/GetStatusForProjectSpec.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE TemplateHaskell # # OPTIONS_GHC -fplugin = Polysemy . Plugin # module GetStatusForProjectSpec where import Core.BuildStatuses import Core.Shared import Data.Map qualified as M import Network.URI.Static import Path import Polysemy import Polysemy.Reader qualified as R import Ports.Outbound.Gitlab.Projects (...
08e63fa84bccdb3172dfaca75025d5980470e4ee48565943a3e77854209d5423
ariesteam/aries
gssm_interface.clj
Copyright 2009 ;;; ;;; This file is part of CLJ-DISTRICT. ;;; ;;; CLJ-DISTRICT 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 version ....
null
https://raw.githubusercontent.com/ariesteam/aries/b3fafd4640f4e7950fff3791bc4ea4c06ee4dcdf/plugins/org.integratedmodelling.aries.core/bindings/clojure/district/gssm_interface.clj
clojure
This file is part of CLJ-DISTRICT. CLJ-DISTRICT is free software: you can redistribute it CLJ-DISTRICT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for m...
Copyright 2009 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 version . You should have received a copy of the GNU General Public License (ns district.gssm-interface (:refe...
fb9b6e4f94c645155a9e7e905bb5d91de6b6b7780e0bbfbed799ad6d51c18b14
serokell/foundry
Morte.hs
# LANGUAGE MonoLocalBinds # # LANGUAGE OverloadedLists # {-# LANGUAGE OverloadedStrings #-} module Source.Language.Morte where import Data.HashMap.Strict (HashMap) import Data.Primitive.Array (Array) import Sdam.Core import Source.Plugin mortePlugin :: Plugin mortePlugin = Plugin { pluginSchema = morteSchema, ...
null
https://raw.githubusercontent.com/serokell/foundry/dd5b9744a88f441559d254f868792956dc552037/src/lang/morte/Source/Language/Morte.hs
haskell
# LANGUAGE OverloadedStrings # strings only strings only ------------------------------------------------------------------------------ -- Helpers ------------------------------------------------------------------------------
# LANGUAGE MonoLocalBinds # # LANGUAGE OverloadedLists # module Source.Language.Morte where import Data.HashMap.Strict (HashMap) import Data.Primitive.Array (Array) import Sdam.Core import Source.Plugin mortePlugin :: Plugin mortePlugin = Plugin { pluginSchema = morteSchema, pluginPrecInfo = mortePrecInf...
593568ca645d74f39dcf6f0bd377ad781f999f6be2018808aa1534fddaf56e90
armedbear/abcl
dribble.lisp
;;; dribble.lisp ;;; Copyright ( C ) 2004 $ Id$ ;;; ;;; This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . ;;; ;;;...
null
https://raw.githubusercontent.com/armedbear/abcl/0631ea551523bb93c06263e772fbe849008e2f68/src/org/armedbear/lisp/dribble.lisp
lisp
dribble.lisp This program is free software; you can redistribute it and/or either version 2 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License fo...
Copyright ( C ) 2004 $ Id$ modify it under the terms of the GNU General Public License of the License , or ( at your option ) any later version . You should have received a copy of the GNU General Public License Foundation , Inc. , 59 Temple Place - Suite 330 , Boston , MA 02111 - 1307 , USA . From...
2f6804f5c43e2c1c66fe065077f3897819a0b276bf3d0671d9362fe1b795654e
duo-lang/duo-lang
Desugarer.hs
module Errors.Desugarer where import Data.Text (Text) import Loc data DesugaringError where UnknownDesugaringError :: Loc -> Text -> DesugaringError deriving instance Show DesugaringError instance HasLoc DesugaringError where getLoc :: DesugaringError -> Loc getLoc (UnknownDesugaringError loc _) = loc inst...
null
https://raw.githubusercontent.com/duo-lang/duo-lang/767780162bf61ed308c87abd6244198cbd179db6/duo-lang-desugaring/src/Errors/Desugarer.hs
haskell
module Errors.Desugarer where import Data.Text (Text) import Loc data DesugaringError where UnknownDesugaringError :: Loc -> Text -> DesugaringError deriving instance Show DesugaringError instance HasLoc DesugaringError where getLoc :: DesugaringError -> Loc getLoc (UnknownDesugaringError loc _) = loc inst...
5a57e4cf079e9643914b046f800fe6efeda70cbb912601fc77f3efce1409dc63
dalaing/little-languages
Term.hs
# LANGUAGE TemplateHaskell # module Term where import Control.Lens.TH data Term = TmInt Int | TmAdd Term Term | TmSub Term Term | TmMul Term Term | TmExp Term Term deriving (Eq, Ord, Show) makeClassyPrisms ''Term size :: Term -> Int size (TmInt _) = 1 size (TmAdd t1 t2) = 1 + size t1 + size t2 size (...
null
https://raw.githubusercontent.com/dalaing/little-languages/9f089f646a5344b8f7178700455a36a755d29b1f/code/old/unityped/i/src/Term.hs
haskell
# LANGUAGE TemplateHaskell # module Term where import Control.Lens.TH data Term = TmInt Int | TmAdd Term Term | TmSub Term Term | TmMul Term Term | TmExp Term Term deriving (Eq, Ord, Show) makeClassyPrisms ''Term size :: Term -> Int size (TmInt _) = 1 size (TmAdd t1 t2) = 1 + size t1 + size t2 size (...
3b853bc9d476141053b3ac9f3954f74a58dccc9d45e980b33583b8eb7a0d039b
SahilKang/cl-rdkafka
package.lisp
Copyright ( C ) 2018 - 2020 < > ;;; ;;; This file is part of cl-rdkafka. ;;; ;;; cl-rdkafka is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ;;; (at your option) any l...
null
https://raw.githubusercontent.com/SahilKang/cl-rdkafka/4d0b6f7f9b102769cb91a020e4e192a2ea066e0b/src/low-level/package.lisp
lisp
This file is part of cl-rdkafka. cl-rdkafka is free software: you can redistribute it and/or modify (at your option) any later version. cl-rdkafka 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 PURPOS...
Copyright ( C ) 2018 - 2020 < > 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 (in-package #:cl-user) export the librdkafka-grovel.lisp symbols here ...
505fd31c308e9a1e9aa12fe2fa6403a9c36ce6a2712eacb36cc051e64d48ffa7
ucsd-progsys/dsolve
constsort.ml
let show x = x let g x = let x1 = x + 1 in let x2 = x + 2 in let x3 = x + 3 in let x4 = x + 4 in let xs = [] in let xs = x4::[] in let xs = x3::xs in let xs = x2::xs in let xs = x1::xs in let _ = match xs with x1::t -> (match t with x2::t' -> assert (x1 < x2)) in xs let rec f1 x = if read_...
null
https://raw.githubusercontent.com/ucsd-progsys/dsolve/bfbbb8ed9bbf352d74561e9f9127ab07b7882c0c/tests/POPL2008/constsort.ml
ocaml
| y::ys' -> let _ = show ys' in let _ = List.iter (fun p -> assert ((show p) != y)) ys' in ()
let show x = x let g x = let x1 = x + 1 in let x2 = x + 2 in let x3 = x + 3 in let x4 = x + 4 in let xs = [] in let xs = x4::[] in let xs = x3::xs in let xs = x2::xs in let xs = x1::xs in let _ = match xs with x1::t -> (match t with x2::t' -> assert (x1 < x2)) in xs let rec f1 x = if read_...
4a6dd75d35d48892483cfdcdddfcff3dda4473f739903fe4be406918dc1d8f19
elastic/es2unix
project.clj
(defproject org.elasticsearch/es (try (-> "etc/version.txt" slurp .trim) (catch java.io.FileNotFoundException _ "0.0.1")) :description "es2unix" :resource-paths ["etc" "resources"] :url "/" :license {:name "Apache License, Version 2.0" :url "-2.0.html"} :dependencies [[org.clojure/clojure...
null
https://raw.githubusercontent.com/elastic/es2unix/87cd8d17faa07f964ac85505b744b6a4dfe813d4/project.clj
clojure
(defproject org.elasticsearch/es (try (-> "etc/version.txt" slurp .trim) (catch java.io.FileNotFoundException _ "0.0.1")) :description "es2unix" :resource-paths ["etc" "resources"] :url "/" :license {:name "Apache License, Version 2.0" :url "-2.0.html"} :dependencies [[org.clojure/clojure...
5c6a0b4c5e41cbd220335d6a79c6da521a3afe72784308d63b07e9853557a192
tfausak/rattletrap
Cache.hs
module Rattletrap.Type.Cache where import qualified Rattletrap.ByteGet as ByteGet import qualified Rattletrap.BytePut as BytePut import qualified Rattletrap.Schema as Schema import qualified Rattletrap.Type.AttributeMapping as AttributeMapping import qualified Rattletrap.Type.List as List import qualified Rattletrap.T...
null
https://raw.githubusercontent.com/tfausak/rattletrap/cc6d6aba923d840f23de7673cab9a043096d3099/src/lib/Rattletrap/Type/Cache.hs
haskell
module Rattletrap.Type.Cache where import qualified Rattletrap.ByteGet as ByteGet import qualified Rattletrap.BytePut as BytePut import qualified Rattletrap.Schema as Schema import qualified Rattletrap.Type.AttributeMapping as AttributeMapping import qualified Rattletrap.Type.List as List import qualified Rattletrap.T...
98657e98948c6dc344b1cfda71854d00d1441c9edbff43586914a0ab5fc36526
michaelw/regex
optimize.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : REGEX ; Base : 10 -*- (in-package "REGEX") ;;; ;;; Pass 3 - Canonicalization/tree rewrites/simplification ;;; ( class " c " ) -- > # \c ; (seq <char> <char> ... <non-char> ...) --> (seq <str> <non-char> ...) ; (seq a b (seq c d) e f) --> (seq...
null
https://raw.githubusercontent.com/michaelw/regex/fbc9a9f313b9edc1788f33d4b23a29151635ae22/optimize.lisp
lisp
Syntax : COMMON - LISP ; Package : REGEX ; Base : 10 -*- Pass 3 - Canonicalization/tree rewrites/simplification (seq <char> <char> ... <non-char> ...) --> (seq <str> <non-char> ...) (seq a b (seq c d) e f) --> (seq a b c d e f) (alt a b (alt c d) e f) --> (alt a b c d e f) (reg n <expr>) --> (seq (rstar...
(in-package "REGEX") ( class " c " ) -- > # \c (defun optimize-regex-tree (tree) (let* ((canonical (canonicalize tree)) (better (improve canonical)) (even-better (split-alts better)) (simple (simplify even-better))) simple)) (defun canonicalize (tree) (wh...
3fbcb6b698c7d881ea0108cf8e943030002cf882d374a60c4fbbff355b8f1de8
joaopaulomoraes/7-days-of-clojure
hello-world.clj
(ns seven-days-of-clojure.hello) (println "Hello, world!")
null
https://raw.githubusercontent.com/joaopaulomoraes/7-days-of-clojure/ef26ca84f6e149ea44bdac13ef2e391e735b8347/day1/hello-world.clj
clojure
(ns seven-days-of-clojure.hello) (println "Hello, world!")
4a12826ca1f0263147810e557a2237e7d32023836f8bffa74957914e4f2a7392
ocamllabs/ocaml-modular-implicits
listLabels.mli
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/stdlib/listLabels.mli
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with * List operations . Some function...
43792bb0b3dfc8b21b70cc9990a62b5e6b5054de9077a7ab1a36a2c486e027b5
clojure-emacs/refactor-nrepl
cljsns_cleaned.cljs
(ns cljsns (:require ["@react-native-async-storage/async-storage" :as AsyncStorage] ["react" :as react] ["underscore$default" :as underscore] [cljs.pprint :as pprint] [cljs.test :refer-macros [deftest is]] [cljsjs.js-yaml] [clojure.set :as set] ...
null
https://raw.githubusercontent.com/clojure-emacs/refactor-nrepl/e2eb88b1dda169f33a19da3ecf49226ce7055cdc/test-resources/cljsns_cleaned.cljs
clojure
(ns cljsns (:require ["@react-native-async-storage/async-storage" :as AsyncStorage] ["react" :as react] ["underscore$default" :as underscore] [cljs.pprint :as pprint] [cljs.test :refer-macros [deftest is]] [cljsjs.js-yaml] [clojure.set :as set] ...
d63b7f1cf4e5d98a3b2841fccb12b58706c942c1e6d2a2a05e8038f39dc071d0
Cumulus/Cumulus
db_table.mli
Copyright ( c ) 2012 Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitation the rights to use , copy , modify , merge , publish , dis...
null
https://raw.githubusercontent.com/Cumulus/Cumulus/3b6de05d76c57d528e052aa382f98e40354cf581/src/base/db/db_table.mli
ocaml
Copyright ( c ) 2012 Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitation the rights to use , copy , modify , merge , publish , dis...
6aa034276b40e94be5ac978db3ed978d4b69b8bfbb8e8caa295be7f5255c34ed
francescoc/scalabilitywitherlangotp
mutex2.erl
-module(mutex2). -export([start_link/1, start_link/2, init/3, stop/1]). -export([wait/1, signal/1]). wait(Name) -> Name ! {wait,self()}, Mutex = whereis(Name), receive {Mutex,ok} -> ok end. signal(Name) -> Name ! {signal,self()}, ok. start_link(Name) -> start_link(Name, []). start...
null
https://raw.githubusercontent.com/francescoc/scalabilitywitherlangotp/961de968f034e55eba22eea9a368fe9f47c608cc/ch10/mutex2.erl
erlang
-module(mutex2). -export([start_link/1, start_link/2, init/3, stop/1]). -export([wait/1, signal/1]). wait(Name) -> Name ! {wait,self()}, Mutex = whereis(Name), receive {Mutex,ok} -> ok end. signal(Name) -> Name ! {signal,self()}, ok. start_link(Name) -> start_link(Name, []). start...
8c3959cea6f5c5a9c86b869a7b6712a7ba322e3adfdbd26e6ccadf48c9b3f088
mfoemmel/erlang-otp
wxStdDialogButtonSizer.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2008 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/wx/src/gen/wxStdDialogButtonSizer.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 2008 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(wxStdDialogButtonSizer). -include...
d2dd2362185e63750581b0551f6e1018ef83ba788ed001a87bb9352cbe6f5dd5
amnh/PCG
Internal.hs
------------------------------------------------------------------------------ -- | -- Module : Bio.Graph.PhylogeneticDAG.Internal Copyright : ( c ) 2015 - 2021 Ward Wheeler -- License : BSD-style -- -- Maintainer : -- Stability : provisional -- Portability : portable -- -- Containing the maste...
null
https://raw.githubusercontent.com/amnh/PCG/9341efe0ec2053302c22b4466157d0a24ed18154/lib/core/data-structures/src/Bio/Graph/PhylogeneticDAG/Internal.hs
haskell
---------------------------------------------------------------------------- | Module : Bio.Graph.PhylogeneticDAG.Internal License : BSD-style Maintainer : Stability : provisional Portability : portable Containing the master command for unifying all input types: tree, metadata, and sequence ...
Copyright : ( c ) 2015 - 2021 Ward Wheeler # LANGUAGE DeriveFoldable # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # # LANGUAGE LambdaCase # # LANGUAGE MonoLocalBinds # # LANGUAGE ...
6ddfceb92369520a133b879233c36c28fa5f1b230043bf66b6a4cb17aea60b8e
wavejumper/rehook-dom
dom_test.clj
(ns dom-test (:require [clojure.test :refer :all] [rehook.dom :as dom] [rehook.util :as util] [rehook.dom.server :as server])) (dom/defui test-component [ctx props $] (dom/html $ [:div {:ctx ctx :props props} [:div {} "Hello world!"]])) (deftest defui-symbol-as-c...
null
https://raw.githubusercontent.com/wavejumper/rehook-dom/f41e8585182bf9a9337d8122abd8d30e8536b8b4/test/dom_test.clj
clojure
(ns dom-test (:require [clojure.test :refer :all] [rehook.dom :as dom] [rehook.util :as util] [rehook.dom.server :as server])) (dom/defui test-component [ctx props $] (dom/html $ [:div {:ctx ctx :props props} [:div {} "Hello world!"]])) (deftest defui-symbol-as-c...
6be70336a52fcbd5c508f2f675289b14d65c44a4e2bfe0bd2c0db9e6170d6268
autotaker/smopeck
Desugar.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE GADTs #-} # LANGUAGE LambdaCase # module Smopeck.Spec.Desugar where import Data.List import qualified Data.Map as M import Smopeck.Mock.Location import Smopeck.Spec.Exp import Smopeck.Spec.Lattice import qualified Smopec...
null
https://raw.githubusercontent.com/autotaker/smopeck/7e4ab8bf716125783ccaaf84076c992c2bca5c7f/src/Smopeck/Spec/Desugar.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE GADTs #
# LANGUAGE LambdaCase # module Smopeck.Spec.Desugar where import Data.List import qualified Data.Map as M import Smopeck.Mock.Location import Smopeck.Spec.Exp import Smopeck.Spec.Lattice import qualified Smopeck.Spec.Lexer as Lexer import qualified Smopeck.Spec.P...
1abd738b2c60cab36c8c5091f925a99ca6bfb44d8c164932bd86c2f9770fa623
HunterYIboHu/htdp2-solution
ex443-no-use-strategy.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 ex443-no-use-strategy) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constr...
null
https://raw.githubusercontent.com/HunterYIboHu/htdp2-solution/6182b4c2ef650ac7059f3c143f639d09cd708516/Chapter5/Section26-design-algorithm/ex443-no-use-strategy.rkt
racket
about the language level of this file in a form that our tools can easily process. (define (gcd-structural n m) (cond [(and (= n 1) (= m 1)) ...] [(and (> n 1) (= m 1)) ...] [(and (= n 1) (> m 1)) ...] [else ... (gcd-structural (sub1 n) m) ... Questions Q1: Why is it impossible to find a divi...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex443-no-use-strategy) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) ( ... ( gcd - structural ( sub1 n...
7f098170da6e13ad5df5c5ad45a9bc1786a6a1f51f36d6a33b99cb320be52581
khibino/haskell-relational-record
Record.hs
# LANGUAGE FlexibleContexts # -- | -- Module : Database.Relational.Record Copyright : 2013 - 2019 -- License : BSD3 -- -- Maintainer : -- Stability : experimental -- Portability : unknown -- -- This module defines interfaces of projected record type. module Database.Relational.Record ( -- * Recor...
null
https://raw.githubusercontent.com/khibino/haskell-relational-record/759b3d7cea207e64d2bd1cf195125182f73d2a52/relational-query/src/Database/Relational/Record.hs
haskell
| Module : Database.Relational.Record License : BSD3 Maintainer : Stability : experimental Portability : unknown This module defines interfaces of projected record type. * Record * Projections * List of Record * Deprecated required from deprecated definitions required from deprecated definit...
# LANGUAGE FlexibleContexts # Copyright : 2013 - 2019 module Database.Relational.Record ( Record, Predicate, PI, recordColumns, pi, piMaybe, piMaybe', wpi, unsafeStringSqlNotNullMaybe, RecordList, list, width, columns, untype, unsafeFromSqlTerms, unsafeFromQualifiedSubQuery, unsafeFromS...
f8e93418a5f05fa571988fac4649d4cc3475e9fe24f514b9c8e68586d1df74d7
tochicool/bitcoin-dca
Driver.hs
# OPTIONS_GHC -F -pgmF tasty - discover -optF --tree - display #
null
https://raw.githubusercontent.com/tochicool/bitcoin-dca/642016f54595194127fcbd24ff11e0d7b358b011/test/Driver.hs
haskell
tree - display #
786b391a5170191ce365c50136800ea7d67c335f9573f0c8d66f78615bfde988
cosmicoptima/dictator
Constants.hs
module Constants where import Data.Text ( Text ) emojiEverything :: [Text] emojiEverything = [ "🔦" , "🇯" , "😗" , "🍮" , "🐼" , "🌑" , "🎖" , "⬆" , "🔜" , "🅾" , "👔" , "🌧" , "🕝" , "🎇" , "®" , "🤶" , "⛱" , "✳"...
null
https://raw.githubusercontent.com/cosmicoptima/dictator/b5eb340e9beef05604750b43a6a7b7046f7f0210/src/Constants.hs
haskell
module Constants where import Data.Text ( Text ) emojiEverything :: [Text] emojiEverything = [ "🔦" , "🇯" , "😗" , "🍮" , "🐼" , "🌑" , "🎖" , "⬆" , "🔜" , "🅾" , "👔" , "🌧" , "🕝" , "🎇" , "®" , "🤶" , "⛱" , "✳"...
e8ab0115a1aa5980f6a8fa9bbf7d670664ef8289296caebdd502e793ce07ca64
killme2008/defun
core.cljc
(ns ^{:author "dennis <>" :doc "A macro to define clojure functions with parameter pattern matching just like erlang or elixir based on core.match. Please see "} defun.core (:require #?(:clj [clojure.core.match] :cljs [cljs.core.match :include-macros true]) ...
null
https://raw.githubusercontent.com/killme2008/defun/5f6ac2e70c0ff42ac7ae41d924b993472cf89ed3/src/defun/core.cljc
clojure
Assume single arity syntax Assume single arity syntax
(ns ^{:author "dennis <>" :doc "A macro to define clojure functions with parameter pattern matching just like erlang or elixir based on core.match. Please see "} defun.core (:require #?(:clj [clojure.core.match] :cljs [cljs.core.match :include-macros true]) ...
28617b30ace0c8857f98b91178f7ff0bf53a681147e05e9da2394d3f76d890d7
chaoxu/mgccl-haskell
trie.hs
import System.IO import Data.Tree import Data.List import Control.Arrow hiding (loop) main :: IO () main = loop [] loop xs = do end <- isEOF if end then putStr $ unlines $ stringTries 1 (tries '_' xs) else do c <- getLine loop (c:xs) tries c xs = Nod...
null
https://raw.githubusercontent.com/chaoxu/mgccl-haskell/bb03e39ae43f410bd2a673ac2b438929ab8ef7a1/rosalind/trie.hs
haskell
import System.IO import Data.Tree import Data.List import Control.Arrow hiding (loop) main :: IO () main = loop [] loop xs = do end <- isEOF if end then putStr $ unlines $ stringTries 1 (tries '_' xs) else do c <- getLine loop (c:xs) tries c xs = Nod...
dbab59328b8e7011ec002db69b8e7986b4ecbd0745c76517a5385046c0ad8bc3
agda/agda
Alex.hs
| This module defines the things required by and some other Alex related things . Alex related things. -} module Agda.Syntax.Parser.Alex * requirements AlexInput(..) , lensLexInput , alexInputPrevChar , alexGetChar, alexGetByte * actions , LexAction(..), LexPredicate , (.&&....
null
https://raw.githubusercontent.com/agda/agda/1bac8797a5987e07ec28284807f57e0cddeb2ba9/src/full/Agda/Syntax/Parser/Alex.hs
haskell
| This is what the lexer manipulates. ^ File. ^ Current position. ^ Current input. ^ Previously read character. to be defined to handle \"patterns with a left-context\". return non-ASCII characters. the following way: translated to \' \'. * Other non-ASCII printable characters are translated to \'+\'. ...
| This module defines the things required by and some other Alex related things . Alex related things. -} module Agda.Syntax.Parser.Alex * requirements AlexInput(..) , lensLexInput , alexInputPrevChar , alexGetChar, alexGetByte * actions , LexAction(..), LexPredicate , (.&&....
6ea879ff50d419fce25cd3bf36bc32acd0d75baa5c7e9cad312afaddd2c4e5cd
tweag/ormolu
shifted.hs
# LANGUAGE CPP # sinkData h compression = do (uncompressedSize, crc32, compressedSize) <- case compression of Store -> withCompression dataSink Deflate -> withCompression $ Z.compress 9 (Z.WindowBits (-15)) .| dataSink #ifdef ENABLE_BZIP2 BZip2 -> withCompression $ B...
null
https://raw.githubusercontent.com/tweag/ormolu/2967133753d2a0d98905d42eecb55d3463a85b1e/data/examples/other/cpp/shifted.hs
haskell
# LANGUAGE CPP # sinkData h compression = do (uncompressedSize, crc32, compressedSize) <- case compression of Store -> withCompression dataSink Deflate -> withCompression $ Z.compress 9 (Z.WindowBits (-15)) .| dataSink #ifdef ENABLE_BZIP2 BZip2 -> withCompression $ B...
b5c0da04ad3a2df9ae3fce1905b76ed7b0aa7d77e18cacf20359103c4ea9b608
serokell/qtah
Flags.hs
This file is part of Qtah . -- Copyright 2015 - 2018 The Qtah Authors . -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation , either version 3 of the License , or -- (at your option) ...
null
https://raw.githubusercontent.com/serokell/qtah/abb4932248c82dc5c662a20d8f177acbc7cfa722/qtah-generator/src/Graphics/UI/Qtah/Generator/Flags.hs
haskell
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER...
This file is part of Qtah . Copyright 2015 - 2018 The Qtah Authors . the Free Software Foundation , either version 3 of the License , or GNU Lesser General Public License for more details . You should have received a copy of the GNU Lesser General Public License | Haskell definitions for preprocessor flags...
8f48240f63cdec59ff8329fc332a39f16dd5a9c54642435fe8244c8f6c9870bb
MedeaMelana/Zwaluw
Regular.hs
# LANGUAGE TypeFamilies # # LANGUAGE FlexibleInstances , FlexibleContexts # # LANGUAGE TypeOperators # {-# LANGUAGE RankNTypes #-} # LANGUAGE UndecidableInstances # module Web.Zwaluw.Regular ( mkRouters , Routers , RouterList(..) * Re - exported from Generics . Regular , deriveAll , PF ) where impor...
null
https://raw.githubusercontent.com/MedeaMelana/Zwaluw/cbbdfe0ef40d599ecefdd221a478aef5e1255e5c/Web/Zwaluw/Regular.hs
haskell
# LANGUAGE RankNTypes #
# LANGUAGE TypeFamilies # # LANGUAGE FlexibleInstances , FlexibleContexts # # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # module Web.Zwaluw.Regular ( mkRouters , Routers , RouterList(..) * Re - exported from Generics . Regular , deriveAll , PF ) where import Web.Zwaluw.Core import Gen...
a8a5250993aad8631b3dac1b48f875a0168596b1503acd5aaec99981763eed6a
facebook/duckling
Corpus.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. {-# LANGUAGE OverloadedStrings #-} module Duckling.Numeral.ET.Corpus ( corpus ) where import Prelude imp...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/Numeral/ET/Corpus.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. # LANGUAGE OverloadedStrings #
Copyright ( c ) 2016 - present , Facebook , Inc. module Duckling.Numeral.ET.Corpus ( corpus ) where import Prelude import Data.String import Duckling.Locale import Duckling.Numeral.Types import Duckling.Resolve import Duckling.Testing.Types corpus :: Corpus corpus = (testContext {locale = makeLocale ET Nothin...
bf512bdd1e587b2d02818c6270b20defcaeea3334f0473158af7e497f511d2b9
naoto-ogawa/h-xproto-mysql
FieldType.hs
# LANGUAGE BangPatterns , DeriveDataTypeable , DeriveGeneric , FlexibleInstances , MultiParamTypeClasses # # OPTIONS_GHC -fno - warn - unused - imports # module Com.Mysql.Cj.Mysqlx.Protobuf.ColumnMetaData.FieldType (FieldType(..)) where import Prelude ((+), (/), (.)) import qualified Prelude as Prelude' import qualif...
null
https://raw.githubusercontent.com/naoto-ogawa/h-xproto-mysql/1eacd6486c99b849016bf088788cb8d8b166f964/src/Com/Mysql/Cj/Mysqlx/Protobuf/ColumnMetaData/FieldType.hs
haskell
# LANGUAGE BangPatterns , DeriveDataTypeable , DeriveGeneric , FlexibleInstances , MultiParamTypeClasses # # OPTIONS_GHC -fno - warn - unused - imports # module Com.Mysql.Cj.Mysqlx.Protobuf.ColumnMetaData.FieldType (FieldType(..)) where import Prelude ((+), (/), (.)) import qualified Prelude as Prelude' import qualif...
99cdbb5d4da6500d27707b15ac72f48a01fe5b87f0df987eac06e9e78ac52d6e
alt-romes/ghengin
Frame.hs
module Ghengin.Vulkan.Frame where import Control.Monad.IO.Class import qualified Vulkan as Vk import Ghengin.Vulkan.Synchronization data VulkanFrameData = VulkanFrameData { _renderFence :: Vk.Fence , _renderSemaphore :: Vk.Semaphore ...
null
https://raw.githubusercontent.com/alt-romes/ghengin/df5107791d40b65ad0ab50c6ce4f158d90865a8d/src/Ghengin/Vulkan/Frame.hs
haskell
module Ghengin.Vulkan.Frame where import Control.Monad.IO.Class import qualified Vulkan as Vk import Ghengin.Vulkan.Synchronization data VulkanFrameData = VulkanFrameData { _renderFence :: Vk.Fence , _renderSemaphore :: Vk.Semaphore ...
4f0f279dc39d9d1cf446e69fbeef7ac547f6740ed65ebc9864674aba35d07eb7
cbaggers/varjo
string-generation.lisp
(in-package :varjo.internals) (in-readtable :fn.reader) ;;------------------------------------------------------------ (defun gen-number-string (number type) (typecase type (v-double (format nil "~flf" number)) (v-float (format nil "~ff" number)) (v-uint (format nil "~au" number)) (otherwise (format...
null
https://raw.githubusercontent.com/cbaggers/varjo/9e77f30220053155d2ef8870ceba157f75e538d4/src/varjo.internals/glsl-generation/string-generation.lisp
lisp
------------------------------------------------------------ This will include ephemeral types if passed. It is the responsibility of the calling code to handle this {TODO} what logic do we want here? We rely on end-line to create the semicolons that seperate the clauses in the for statement {TODO} --------------...
(in-package :varjo.internals) (in-readtable :fn.reader) (defun gen-number-string (number type) (typecase type (v-double (format nil "~flf" number)) (v-float (format nil "~ff" number)) (v-uint (format nil "~au" number)) (otherwise (format nil "~a" number)))) (defun gen-variable-string (var-name v-va...
8fdfb8b1362121ca7dbd633077b6fff321ee1dd289511976fafa910d9be68a9e
spechub/Hets
ModalSystems.hs
| Module : ./Modal / ModalSystems.hs Copyright : DFKI GmbH 2011 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : portable Module : ./Modal/ModalSystems.hs Copyright : DFKI GmbH 2011 License : GPLv2 or higher, s...
null
https://raw.githubusercontent.com/spechub/Hets/af7b628a75aab0d510b8ae7f067a5c9bc48d0f9e/Modal/ModalSystems.hs
haskell
CASL ModalCASL matches: [](p=>q) => []p => []q matches: []p => <>p matches: []p => p matches: []p => [][]p matches: p => []<>p matches: <>p => []<>p
| Module : ./Modal / ModalSystems.hs Copyright : DFKI GmbH 2011 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : portable Module : ./Modal/ModalSystems.hs Copyright : DFKI GmbH 2011 License : GPLv2 or higher, s...
0d3433e9cba4d8f7bb5160ca636cf2c9ef1e42c8f18cf511845dae5f137ed1cc
mhwombat/creatur
Database.hs
------------------------------------------------------------------------ -- | Module : ALife . . Database Copyright : ( c ) 2012 - 2022 -- License : BSD-style -- Maintainer : -- Stability : experimental -- Portability : portable -- Database interface for the Créatúr framework . -- ---...
null
https://raw.githubusercontent.com/mhwombat/creatur/c715f4de16d29b646b27f3185d1d073df0fc9cb6/src/ALife/Creatur/Database.hs
haskell
---------------------------------------------------------------------- | License : BSD-style Maintainer : Stability : experimental Portability : portable ---------------------------------------------------------------------- | A database offering storage and retrieval for records. | Get a list of a...
Module : ALife . . Database Copyright : ( c ) 2012 - 2022 Database interface for the Créatúr framework . # LANGUAGE TypeFamilies , FlexibleContexts , ConstrainedClassMethods # module ALife.Creatur.Database ( Database(..), Record(..), SizedRecord(..) ) where import Prelude hiding (...
c70625a04c6976af05322ccc2007ea3a14ff260ba2505674c41e9b8372171047
bobbae/gosling-emacs
scribe-bib.ml
; Emacs Scribe bibliography entry package - John A. Nestor March 1982 ; ; The following functions expedite the entry of the various bibliography ; types supported by Scribe. (defun (get-keypair field ; construct an "attribute=value" line (setq field (get-tty-string (concat (arg 1 "bogus1") ":")) ...
null
https://raw.githubusercontent.com/bobbae/gosling-emacs/8fdda532abbffb0c952251a0b5a4857e0f27495a/lib/maclib/utah/std/scribe-bib.ml
ocaml
; Emacs Scribe bibliography entry package - John A. Nestor March 1982 ; ; The following functions expedite the entry of the various bibliography ; types supported by Scribe. (defun (get-keypair field ; construct an "attribute=value" line (setq field (get-tty-string (concat (arg 1 "bogus1") ":")) ...
2d2e14598ae5b7d74d1440c16c85de7a6f29c082a4590e3167df2ac2c81968f0
acl2/acl2
abstract-syntax.lisp
C Library ; Copyright ( C ) 2023 Kestrel Institute ( ) Copyright ( C ) 2023 Kestrel Technology LLC ( ) ; License : A 3 - clause BSD license . See the LICENSE file distributed with ACL2 . ; Author : ( ) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (in-package "C") (i...
null
https://raw.githubusercontent.com/acl2/acl2/44f76f208004466a9e6cdf3a07dac98b3799817d/books/kestrel/c/atc/abstract-syntax.lisp
lisp
C Library Copyright ( C ) 2023 Kestrel Institute ( ) Copyright ( C ) 2023 Kestrel Technology LLC ( ) License : A 3 - clause BSD license . See the LICENSE file distributed with ACL2 . Author : ( ) (in-package "C") (include-book "../language/abstract-syntax") (include-book "kestrel/std/util/defirreleva...
8c0b76fe6a5a34e9aaabe060f360be51b95b9da1685130c936ac2004ddb79f50
jiangpengnju/htdp2e
ex35.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-beginner-reader.ss" "lang")((modname ex35) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #...
null
https://raw.githubusercontent.com/jiangpengnju/htdp2e/d41555519fbb378330f75c88141f72b00a9ab1d3/fixed-size-data/how-to-design-programs/ex35.rkt
racket
about the language level of this file in a form that our tools can easily process. A: a problem for both digital (computer-related) and non-digital documentation and data storage situations that resulted from the Companies and organizations worldwide checked, fixed, and upgraded their computer systems. #Programmi...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-reader.ss" "lang")((modname ex35) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) Research the " year 2000 " problem and what it meant for programm...
5da81c1e550e62720a23b0c08b6ed17a4e60d6a1ae9f1e8f18815274ce10fff7
skynet-gh/skylobby
core.clj
(ns skylobby.core (:require [chime.core :as chime] [clojure.core.async :as async] [clojure.core.cache :as cache] [clojure.edn :as edn] [clojure.java.io :as io] [clojure.pprint :refer [pprint]] [clojure.string :as string] java-time [skylobby.auto-resources :as auto-resources] [s...
null
https://raw.githubusercontent.com/skynet-gh/skylobby/e25c88d149c298326ec8a32306a86485c2324fd8/graal/clj/skylobby/core.clj
clojure
#custom-types-v21 disable rapid data load, use sql now :use-db-for-downloadables false :use-db-for-importables false for overriding in dev short circuit if no task of this kind (add-watch state-atom :fix-missing-resource fix-missing-resource-watcher) (add-watch state-atom :filter-replays filter-replays-watcher) (...
(ns skylobby.core (:require [chime.core :as chime] [clojure.core.async :as async] [clojure.core.cache :as cache] [clojure.edn :as edn] [clojure.java.io :as io] [clojure.pprint :refer [pprint]] [clojure.string :as string] java-time [skylobby.auto-resources :as auto-resources] [s...
3888c1c467800a7145ff9b0bb2a57161860de080e5c198eddfb9882dc6ac7026
aimyskk/competitive-haskell
SplayHeap.hs
: Purely Functional Data Structure module Heap.SplayHeap ( SplayHeap, empty, isEmpty, singleton, fromList, insert, merge, findMin, deleteMin, deleteFindMin ) where import Class data SplayHeap a = E | T (SplayHeap a) a (SplayHeap a) partition :: Ord a => a -> SplayHeap a -> (SplayHeap a, Spla...
null
https://raw.githubusercontent.com/aimyskk/competitive-haskell/703f78e29060459d8d857d785e473e9696e2d67f/Heap/SplayHeap.hs
haskell
: Purely Functional Data Structure module Heap.SplayHeap ( SplayHeap, empty, isEmpty, singleton, fromList, insert, merge, findMin, deleteMin, deleteFindMin ) where import Class data SplayHeap a = E | T (SplayHeap a) a (SplayHeap a) partition :: Ord a => a -> SplayHeap a -> (SplayHeap a, Spla...
873d4611473eb2b70a115a782765daa994f699def71995504906e407c8cbfa5f
Soyn/sicp
Ex2.19.rkt
#lang racket ;take changes (define (no-more? items) (null? items)) (define (except-first-denomination items) (cdr items)) (define (first-denomination items) (car items)) (define (cc amount coin-values) (cond ((= amount 0)1) ((or (< amount 0) (no-more? coin-values))0) (else (+ (cc...
null
https://raw.githubusercontent.com/Soyn/sicp/d2aa6e3b053f6d4c8150ab1b033a18f61fca7e1b/CH2/CH2.2/Ex2.19.rkt
racket
take changes test usage
#lang racket (define (no-more? items) (null? items)) (define (except-first-denomination items) (cdr items)) (define (first-denomination items) (car items)) (define (cc amount coin-values) (cond ((= amount 0)1) ((or (< amount 0) (no-more? coin-values))0) (else (+ (cc amount ...
ba5b4ffcc1b61dd4611603c65965b8fc23d0ff8e5fba2f4ac13dfe015354d02f
filonenko-mikhail/clx-xkeyboard
simple-key-event-viewer.lisp
(declaim (optimize (speed 0) (safety 3) (debug 3) (compilation-speed 0))) ;;;; Open an X-window and emit detail for key-events to the console Button2 ( usually middle mouse butten ) closes window and ends ;;;; application. (defpackage xkb-test (:use cl) (:export simple-key-event-viewer)) (in-package :xkb-test)...
null
https://raw.githubusercontent.com/filonenko-mikhail/clx-xkeyboard/11455d36283ef31c498bd58ffebf48c0f6b86ea6/test/simple-key-event-viewer.lisp
lisp
Open an X-window and emit detail for key-events to the console application.
(declaim (optimize (speed 0) (safety 3) (debug 3) (compilation-speed 0))) Button2 ( usually middle mouse butten ) closes window and ends (defpackage xkb-test (:use cl) (:export simple-key-event-viewer)) (in-package :xkb-test) (defun print-key-list (&rest args) (fresh-line) (format t "~{ ~a: ~a~%~}" args...
e5cd82665285cb28d0dd53fabd58e36c5ac57fdf098c59122e83068f58be9128
seckcoder/iu_c311
store.rkt
#lang eopl ; another impl modeling store based on scheme's own store (require "../racket/base/utils.rkt") (provide (all-defined-out)) (define empty-store (lambda () '())) (define the-store 'uninitialized) (define initialize-store! (lambda () (set! the-store (empty-store)))) (define get-store (lambda...
null
https://raw.githubusercontent.com/seckcoder/iu_c311/a1215983b6ab08df32058ef1e089cb294419e567/lisp/store.rkt
racket
another impl modeling store based on scheme's own store
#lang eopl (require "../racket/base/utils.rkt") (provide (all-defined-out)) (define empty-store (lambda () '())) (define the-store 'uninitialized) (define initialize-store! (lambda () (set! the-store (empty-store)))) (define get-store (lambda () the-store)) (define reference? (lambda (ref) ...
b7b49f941c01330cf929e92402ad1246c023dfb88f388b11d2c1ed0bcc5c25d9
sdanzan/erlang-systools
shell_utils_tests.erl
-module(shell_utils_tests). -include_lib("eunit/include/eunit.hrl"). quote_test_() -> [ { "quote / single", ?_assertEqual("\\'", shell_utils:quote("'")) } , { "quote / none", ?_assertEqual("x", shell_utils:quote("x")) } , { "quote / multiple", ?_assertEqual("abcdef\\'h\\'...
null
https://raw.githubusercontent.com/sdanzan/erlang-systools/ced3faf1c807d36c528e53cbb366d69f464ff4e5/test/shell_utils_tests.erl
erlang
-module(shell_utils_tests). -include_lib("eunit/include/eunit.hrl"). quote_test_() -> [ { "quote / single", ?_assertEqual("\\'", shell_utils:quote("'")) } , { "quote / none", ?_assertEqual("x", shell_utils:quote("x")) } , { "quote / multiple", ?_assertEqual("abcdef\\'h\\'...
f49a1fadb07ad07105bd2f7d151ff4f916b36c7d79c66cf18e89313cc404f2dc
dmitryvk/sbcl-win32-threads
early-array.lisp
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 in the public domain and is ;;;; provided with absolutely no wa...
null
https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/src/code/early-array.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. - 2 to leave space for the array header
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!IMPL") (def!constant sb!xc:array-rank-limit 65529 #!+sb-doc "the exclusive upper bound on the rank of an ...
f0d78b660dc65248c5f48d6a205b60ace55cf2df4ead998cb7852ac440c2ca00
plapadoo/matrix-bot
ConfigOptions.hs
{-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveGeneric #-} module Web.Matrix.Bot.ConfigOptions( ConfigOptions(..) , readConfigOptions , coListenPort , coListenHost , coMatrix , coMatrixUserName , coMatrixPassword , coMatrixBasePath) where import Control.Lens (Getter, to) import ...
null
https://raw.githubusercontent.com/plapadoo/matrix-bot/01ea062116200d407632b93743ef0dbc11a63715/src/Web/Matrix/Bot/ConfigOptions.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE DeriveGeneric #
module Web.Matrix.Bot.ConfigOptions( ConfigOptions(..) , readConfigOptions , coListenPort , coListenHost , coMatrix , coMatrixUserName , coMatrixPassword , coMatrixBasePath) where import Control.Lens (Getter, to) import Data.Function ((.)) import Data.Functor ((<$>)...
920e8c9f1fe8c507790a6700795921eb3c0b7ef5bdf49f44f694a33bc88a938d
cooldaemon/ermlia
ermlia_node_pipe_SUITE.erl
@author < > [ / ] @copyright 2008 %% @doc This module is test suite for node pipe. Copyright 2008 %% 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 %% %% Unles...
null
https://raw.githubusercontent.com/cooldaemon/ermlia/fa5f8acf5965893b33f405de048e6d570d4aba53/test/ermlia_node_pipe_SUITE.erl
erlang
@doc This module is test suite for node pipe. 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 Licen...
@author < > [ / ] @copyright 2008 Copyright 2008 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(ermlia_node_pipe_SUITE). -compile(export_all). -include("ct.hrl"). -include("ermlia_test.hrl"). -define...
1d01abc963419f9cf00403edd619b82dca5d1a6037314f1ae8c8fdbc0aa8073a
realworldocaml/book
atd.ml
let massive_json = `List [ `Assoc [("r1", `String "testing")]; `Assoc [("r2", `List [`String "Some"; `Int 2])]; `Assoc [("r2", `String "None")]; `Assoc [("r3", `List [`String "Some"; `Int 3])]; `Assoc []; `Assoc [("r4", `Bool true) ]; `Assoc [("r5", `List [`String "Some"; `Int 5])]; `A...
null
https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/yojson/test/pretty/atd.ml
ocaml
let massive_json = `List [ `Assoc [("r1", `String "testing")]; `Assoc [("r2", `List [`String "Some"; `Int 2])]; `Assoc [("r2", `String "None")]; `Assoc [("r3", `List [`String "Some"; `Int 3])]; `Assoc []; `Assoc [("r4", `Bool true) ]; `Assoc [("r5", `List [`String "Some"; `Int 5])]; `A...
f98695e2e78196729b1c30ac5806e399f80a6f3c0b4008d36e942169c0eb3cc5
WormBase/wormbase_rest
clone.clj
(ns rest-api.classes.clone (:require [rest-api.classes.gene.widgets.external-links :as external-links] [rest-api.classes.clone.widgets.overview :as overview] [rest-api.classes.clone.widgets.location :as location] [rest-api.classes.clone.widgets.sequences :as sequences] [rest-api.classes.clone.widg...
null
https://raw.githubusercontent.com/WormBase/wormbase_rest/e51026f35b87d96260b62ddb5458a81ee911bf3a/src/rest_api/classes/clone.clj
clojure
(ns rest-api.classes.clone (:require [rest-api.classes.gene.widgets.external-links :as external-links] [rest-api.classes.clone.widgets.overview :as overview] [rest-api.classes.clone.widgets.location :as location] [rest-api.classes.clone.widgets.sequences :as sequences] [rest-api.classes.clone.widg...
e78c2dcbf2c2175480228fa8fd76fda8cb957d52eb96d51abd0b4cd058c31b77
kind2-mc/kind2
cooperQE.mli
This file is part of the Kind 2 model checker . Copyright ( c ) 2015 by the Board of Trustees of the University of Iowa 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 a...
null
https://raw.githubusercontent.com/kind2-mc/kind2/c601470eb68af9bd3b88828b04dbcdbd6bd6bbf5/src/qe/cooperQE.mli
ocaml
* Print a model * Eliminate quantifiers of a list of variables in a formula
This file is part of the Kind 2 model checker . Copyright ( c ) 2015 by the Board of Trustees of the University of Iowa 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 a...
54e0e280299bad607abd786c4b85c917d93a6aa7b4b964058a1f82f36d2a0391
input-output-hk/cardano-ledger
Drop.hs
| /DEPRECATED/ - This module is deprecated and used in era exclusively . For newer -- implementation of this functionality use `Cardano.Ledger.Binary.Decoding.DecCBOR.dropCBOR` -- -- A 'Dropper s' is a 'Decoder s ()', that is a decoder that returns nothing -- -- We use 'Dropper's when we don't care about the resul...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger/49a84725c4c2ecabc80f6dac215881bc23920962/libs/cardano-ledger-binary/src/Cardano/Ledger/Binary/Decoding/Drop.hs
haskell
implementation of this functionality use `Cardano.Ledger.Binary.Decoding.DecCBOR.dropCBOR` A 'Dropper s' is a 'Decoder s ()', that is a decoder that returns nothing We use 'Dropper's when we don't care about the result of decoding, for example when we have deprecated some part of the serialised blockchain, bu...
| /DEPRECATED/ - This module is deprecated and used in era exclusively . For newer module Cardano.Ledger.Binary.Decoding.Drop ( Dropper, dropBytes, dropInt32, dropList, dropMap, dropSet, dropTuple, dropTriple, dropWord8, dropWord64, ) where import Cardano.Ledger.Binary.Decoding.Decoder import Co...
0a9c01c28aff8bdd1a7486f4d53b4fe20819d08460792dbd7e12c6f805194850
tezos/tezos-mirror
sc_rollup_inbox_merkelized_payload_hashes_repr.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2022 Nomadic Labs < > (* Permission is hereby...
null
https://raw.githubusercontent.com/tezos/tezos-mirror/6cce98810919826c01005f2ffbd02a2302aa91bb/src/proto_alpha/lib_protocol/sc_rollup_inbox_merkelized_payload_hashes_repr.ml
ocaml
*************************************************************************** Open Source License Permission is hereby granted, free of charge, to any person obtaining a copy of this so...
Copyright ( c ) 2022 Nomadic Labs < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN AN...
721837fd640b364dba18bfd113ccb6d85bac37ae58cb8d8d27b01888876bd53b
semerdzhiev/fp-2020-21
07-streams.rkt
#lang racket (define (nats-after n) (stream-cons n (nats-after (+ 1 n)))) (define (nats-between a b) (if (> a b) (stream) (stream-cons a (nats-between (+ 1 a) b)))) (define nats (nats-after 0)) (define (take n l) (if (<= n 0) (list) (if (stream-empty? l) (list) (c...
null
https://raw.githubusercontent.com/semerdzhiev/fp-2020-21/64fa00c4f940f75a28cc5980275b124ca21244bc/group-f/exercise-code/07-streams.rkt
racket
#lang racket (define (nats-after n) (stream-cons n (nats-after (+ 1 n)))) (define (nats-between a b) (if (> a b) (stream) (stream-cons a (nats-between (+ 1 a) b)))) (define nats (nats-after 0)) (define (take n l) (if (<= n 0) (list) (if (stream-empty? l) (list) (c...
7f9c38e2085d2f688cd2203813f66f56f08aea84f21b4a1d817a72c2285a505f
clj-commons/cljss
border.clj
(ns cljss.css.props.border (:require [clojure.spec.alpha :as s] [cljss.css.units :as units] [cljss.css.colors :as colors])) (s/def ::keyword-width #{:thin :medium :thick}) (s/def ::width (s/or :keyword ::keyword-width :length ::units/length)) (s/def ::style #{:none :hidden :do...
null
https://raw.githubusercontent.com/clj-commons/cljss/d2856688cf650babe518c798cf20e6bdb4227bb7/src/cljss/css/props/border.clj
clojure
(ns cljss.css.props.border (:require [clojure.spec.alpha :as s] [cljss.css.units :as units] [cljss.css.colors :as colors])) (s/def ::keyword-width #{:thin :medium :thick}) (s/def ::width (s/or :keyword ::keyword-width :length ::units/length)) (s/def ::style #{:none :hidden :do...
cd87b5307155e11512e6b800041d7011b6f701b6413d59f0f038a8e5057486e7
ucsd-progsys/mist
paginationTokens.hs
undefined as rforall a. a undefined = 0 done as Int done = undefined startTok as Int startTok = undefined ---------------------------------------------------------------------------- -- | The ST Monad ---------------------------------------------------------- ---------------------------------------------------------...
null
https://raw.githubusercontent.com/ucsd-progsys/mist/0a9345e73dc53ff8e8adb8bed78d0e3e0cdc6af0/tests/Tests/Integration/neg/paginationTokens.hs
haskell
-------------------------------------------------------------------------- | The ST Monad ---------------------------------------------------------- -------------------------------------------------------------------------- -------------------------------------------------------------------------- | The Token API ---...
undefined as rforall a. a undefined = 0 done as Int done = undefined startTok as Int startTok = undefined bind :: rforall a, b, p, q, r, s, t, u. ST <p >q >a -> (x:a -> ST <q >r >b) -> ST <p >r >b bind = undefined pure :: rforall a, p, q, s, t. x:a -> ST <p >q >a pure = undefined thenn :: rforall a, b, p, q,...
b01865393f50b5f807a26dc6a715581d7302a507ecb80c358cf16abb3dd8753c
mbj/stratosphere
QuietTimeProperty.hs
module Stratosphere.Pinpoint.Campaign.QuietTimeProperty ( QuietTimeProperty(..), mkQuietTimeProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data QuietTimeProper...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/pinpoint/gen/Stratosphere/Pinpoint/Campaign/QuietTimeProperty.hs
haskell
module Stratosphere.Pinpoint.Campaign.QuietTimeProperty ( QuietTimeProperty(..), mkQuietTimeProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data QuietTimeProper...
1f0dd15cc1d93d0e5b590aa6285306d0ddfcd63d5356d0fd31fac22e7487f1f5
andy128k/cl-gobject-introspection
baseinfo.lisp
(in-package :gir) (defclass base-info () ((ptr :initarg :ptr :reader info-ptr))) (defclass type-info (base-info) ()) (defclass callable-info (base-info) ()) (defclass function-info (callable-info) ()) (defclass callback-info (callable-info) ()) (defclass signal-info (callable-info) ()) (defclass vfunc-info (callab...
null
https://raw.githubusercontent.com/andy128k/cl-gobject-introspection/95a13d97cbbb4d6f5b4d6ad23df37034e0d4c90c/src/baseinfo.lisp
lisp
!!! foreign-string-to-lisp
(in-package :gir) (defclass base-info () ((ptr :initarg :ptr :reader info-ptr))) (defclass type-info (base-info) ()) (defclass callable-info (base-info) ()) (defclass function-info (callable-info) ()) (defclass callback-info (callable-info) ()) (defclass signal-info (callable-info) ()) (defclass vfunc-info (callab...
339b9476dfa1626c6a5d5b6a1fe98b4114cad8b6c19fe3f7e9ef7cd88aba2e5c
gwern/archiver-bot
Archiver.hs
module Network.URL.Archiver (checkArchive) where import Control.Monad (when, unless, void) import Data.Char (isAlphaNum, isAscii) import Data.List (isInfixOf, isPrefixOf) import Data.Maybe (fromJust) import Network.Browser (browse, formToRequest, request, Form(..)) import Network.HTTP (getRequest, simpleHTTP, RequestM...
null
https://raw.githubusercontent.com/gwern/archiver-bot/c1a73baf461a9a68c2f808aa65aa594d18419740/Network/URL/Archiver.hs
haskell
| Open a URL ^ URL to archive | Request a URL through Internet Archive's on-demand archiving URL. This also does a backup archive attempt through the live Internet mirror; this is completely speculative and may result in no archiving. This method is a guess based on my use of their mirror and a banner that is so...
module Network.URL.Archiver (checkArchive) where import Control.Monad (when, unless, void) import Data.Char (isAlphaNum, isAscii) import Data.List (isInfixOf, isPrefixOf) import Data.Maybe (fromJust) import Network.Browser (browse, formToRequest, request, Form(..)) import Network.HTTP (getRequest, simpleHTTP, RequestM...
d2f6640bb8fc9545bf081d6ce9a246c3eb2cfb4de9d53d1aeba17b7d474d1803
racket/libs
info.rkt
#lang setup/infotab SPDX - License - Identifier : ( Apache-2.0 OR MIT ) (define install-platform "x86_64-macosx") (define copy-foreign-libs '("libssl.1.0.0.dylib" "libcrypto.1.0.0.dylib"))
null
https://raw.githubusercontent.com/racket/libs/ebcea119197dc0cb86be1ccbbfbe5806f7280976/racket-x86_64-macosx-2/racket/info.rkt
racket
#lang setup/infotab SPDX - License - Identifier : ( Apache-2.0 OR MIT ) (define install-platform "x86_64-macosx") (define copy-foreign-libs '("libssl.1.0.0.dylib" "libcrypto.1.0.0.dylib"))
b3cfb71150a6a273372d99daf381a72de4d8d59b1e6121286c8face2afde2f11
brendanhay/amazonka
Internal.hs
-- | Module : Test . Amazonka . . Internal Copyright : ( c ) 2013 - 2023 License : Mozilla Public License , v. 2.0 . Maintainer : < brendan.g.hay+ > -- Stability : auto-generated Portability : non - portable ( GHC extensions ) module Test.Amazonka.XRay.Internal where
null
https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-xray/test/Test/Amazonka/XRay/Internal.hs
haskell
| Stability : auto-generated
Module : Test . Amazonka . . Internal Copyright : ( c ) 2013 - 2023 License : Mozilla Public License , v. 2.0 . Maintainer : < brendan.g.hay+ > Portability : non - portable ( GHC extensions ) module Test.Amazonka.XRay.Internal where
1e3087d0bd601c2935793950deb831da5c63e665cea7feec2e14c3531113d0ca
scarf-sh/tie
Request.hs
{-# LANGUAGE OverloadedStrings #-} module Tie.Codegen.Request (codegenRequestAuxFile) where import qualified Data.ByteString as ByteString import qualified Data.Text as Text import Paths_tie (getDataFileName) import Prettyprinter (Doc, hsep, vsep) import qualified Prettyprinter.Util as Prettyprinter import System.IO....
null
https://raw.githubusercontent.com/scarf-sh/tie/e6421c3c0d9012519429d90a8fce2d24e2daff37/src/Tie/Codegen/Request.hs
haskell
# LANGUAGE OverloadedStrings # | Module name
module Tie.Codegen.Request (codegenRequestAuxFile) where import qualified Data.ByteString as ByteString import qualified Data.Text as Text import Paths_tie (getDataFileName) import Prettyprinter (Doc, hsep, vsep) import qualified Prettyprinter.Util as Prettyprinter import System.IO.Unsafe (unsafePerformIO) import Tie...
50148b4a479fd771d494f88d0d191a5fa8df3979a663a826c992f48ff4f1a723
andersfugmann/ppx_protocol_conv
test_sig.ml
open Sexplib.Std module Make(Driver: Testable.Driver) = struct module M = Testable.Make(Driver) module Signature : M.Testable = struct module Test_sig : sig type ('a, 'b, 'c, 'd, 'e) w = 'a * 'b * 'c * 'd * 'e and 'a u = A of ('a, int, int, 'a, int) w | B | C of 'a u and 'a v = { x : 'a u } ...
null
https://raw.githubusercontent.com/andersfugmann/ppx_protocol_conv/e93eb01ca8ba8c7dd734070316cd281a199dee0d/test/test_sig.ml
ocaml
open Sexplib.Std module Make(Driver: Testable.Driver) = struct module M = Testable.Make(Driver) module Signature : M.Testable = struct module Test_sig : sig type ('a, 'b, 'c, 'd, 'e) w = 'a * 'b * 'c * 'd * 'e and 'a u = A of ('a, int, int, 'a, int) w | B | C of 'a u and 'a v = { x : 'a u } ...
e072816a43e8840138207ca221b9d9b8332dd6a1f21df986822d5aff7a593cb3
airbus-seclab/bincat
register.mli
This file is part of BinCAT . Copyright 2014 - 2017 - Airbus Group BinCAT is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your ...
null
https://raw.githubusercontent.com/airbus-seclab/bincat/493a03890b3b472fd198ce58c7e9280abd0f9f93/ocaml/src/data-struct/register.mli
ocaml
* Module for registers * type of a register * returns the set of current used registers * creates a stack pointer register from the given string and size * returns a fresh register name * remove the given register from the set of used registers * returns the name of the given register * equality * comparison *...
This file is part of BinCAT . Copyright 2014 - 2017 - Airbus Group BinCAT is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your ...
043088ae71fe860b4adc444bcd2ea12ae6dea7ab579b3b7136ba048d46d33684
exoscale/clojure-kubernetes-client
v1_watch_event.clj
(ns clojure-kubernetes-client.specs.v1-watch-event (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.runtime-raw-extension :refer :all] ) (:import (java.io File))) (declare v1-watch-event-data v1-watch-event) (def v1-watch-event...
null
https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/v1_watch_event.clj
clojure
(ns clojure-kubernetes-client.specs.v1-watch-event (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.runtime-raw-extension :refer :all] ) (:import (java.io File))) (declare v1-watch-event-data v1-watch-event) (def v1-watch-event...
a9afd76a20ff3dcd15f01d5b93ccbfab3c13452a3a229c205cdc2eedb0cec443
kanaka/instacheck
grammar_test.clj
(ns instacheck.grammar-test (:require [clojure.test :refer [deftest testing is]] [clojure.string :as string] [instaparse.core :as instaparse] [instacheck.core :as c] [instacheck.weights :as w] [instacheck.grammar :as g])) (def ebnf1 " start = 'qux' | foobar...
null
https://raw.githubusercontent.com/kanaka/instacheck/ba2095f9b9691812342c54100cd7de83a5b9a74d/test/instacheck/grammar_test.clj
clojure
") ") grammar loading/conversion grammar functions TODO: more get-descendants tests TODO: more get-ancestors and get-weighted-ancestors tests TODO: test combine-strings trek functions Skip g5 since comments are not roundtripped
(ns instacheck.grammar-test (:require [clojure.test :refer [deftest testing is]] [clojure.string :as string] [instaparse.core :as instaparse] [instacheck.core :as c] [instacheck.weights :as w] [instacheck.grammar :as g])) (def ebnf1 " (def ebnf2 " ep = ''"...
13bbe1bbe93d0c0e5f82d9a6108b44b753d19e8bcb3b453b9f1ef6f855d83ffb
ocurrent/solver-service
main.ml
open Solver_service open Lwt.Syntax module Service = Service.Make (Opam_repository) let pp_timestamp f x = let open Unix in let tm = localtime x in Fmt.pf f "%04d-%02d-%02d %02d:%02d.%02d" (tm.tm_year + 1900) (tm.tm_mon + 1) tm.tm_mday tm.tm_hour tm.tm_min tm.tm_sec let reporter = let report src level ~ov...
null
https://raw.githubusercontent.com/ocurrent/solver-service/ee8455f2f85578c35562670a6f3e0bcab56fcfca/service/main.ml
ocaml
Disable tls.tracing when logs are set to debug List.iter (fun src -> match Logs.Src.name src with "tls.tracing" -> Logs.Src.set_level src (Some Info) | _ -> ()) @@ Logs.Src.list (); Run with a capnp address as the endpoint Run locally reading from socket Command-line parsing
open Solver_service open Lwt.Syntax module Service = Service.Make (Opam_repository) let pp_timestamp f x = let open Unix in let tm = localtime x in Fmt.pf f "%04d-%02d-%02d %02d:%02d.%02d" (tm.tm_year + 1900) (tm.tm_mon + 1) tm.tm_mday tm.tm_hour tm.tm_min tm.tm_sec let reporter = let report src level ~ov...
ac13572ff9c12e6ddeb34607ddd62f9258e6fd3ca78aeb799ef4575a8857d61b
GaloisInc/daedalus
DFAStep.hs
{-# Language GADTs #-} module Daedalus.ParserGen.LL.DFAStep ( SourceCfg, DFAEntry(..), getInfoEntry, DFARegistry, showDFARegistry, IteratorDFARegistry, initIteratorDFARegistry, nextIteratorDFARegistry, isEmptyIteratorDFARegistry, partitionDFARegistry, DetChoice(..), DFASta...
null
https://raw.githubusercontent.com/GaloisInc/daedalus/d2f2dd804b15c95776daa1f5aa49fb6efa407f58/src/Daedalus/ParserGen/LL/DFAStep.hs
haskell
# Language GADTs # import Debug.Trace starting from a source to its destination. A generic iterator datatype. Note the type of data is the same of the generic type it is the result of a factorization of a class operation or any operation that interrupts a lockstep move. this function takes a tree representing a ...
module Daedalus.ParserGen.LL.DFAStep ( SourceCfg, DFAEntry(..), getInfoEntry, DFARegistry, showDFARegistry, IteratorDFARegistry, initIteratorDFARegistry, nextIteratorDFARegistry, isEmptyIteratorDFARegistry, partitionDFARegistry, DetChoice(..), DFAState(..), showDFAStat...
5c00047dc7d08405034e827f36ac024910356d8e74c4ae065f5d286bf047c6d3
NelosG/fp-tests
Main.hs
module Main ( main ) where --import HW3.Base () import HW3.Evaluator import HW3.Parser --import HW3.Pretty import System . Console . Haskeline main :: IO () main = putStr "Lol"
null
https://raw.githubusercontent.com/NelosG/fp-tests/d85a33821f1d9c1a6335efcea53e01faa0186026/hw3/app/Main.hs
haskell
import HW3.Base () import HW3.Pretty
module Main ( main ) where import HW3.Evaluator import HW3.Parser import System . Console . Haskeline main :: IO () main = putStr "Lol"
cd15548fb7bae198b1dc692e056d70a4760b9331cb573c6ceed0a9db5afcd6aa
privet-kitty/dufy
read-hiltunen-dat.script.lisp
-*- coding : utf-8 -*- ;; This script file compares the XYZ values of Munsell renotation data ( 1943 ) and Joensuu 's spectral data ( Munsell Book 1976 , matt chip , ;; spectralphotometer). ;; ;; Usage: $ sbcl --load read-hiltunen-dat.lisp ( Quicklisp is necessary . Clozure CL also works . ) (eval-when (:...
null
https://raw.githubusercontent.com/privet-kitty/dufy/c6ad03a9fca16a759c1c52449ac88420a536feca/src/examples/read-hiltunen-dat.script.lisp
lisp
spectralphotometer). Usage: download utilities main
-*- coding : utf-8 -*- This script file compares the XYZ values of Munsell renotation data ( 1943 ) and Joensuu 's spectral data ( Munsell Book 1976 , matt chip , $ sbcl --load read-hiltunen-dat.lisp ( Quicklisp is necessary . Clozure CL also works . ) (eval-when (:compile-toplevel :load-toplevel :execute...
05d7a270e43cf9db48100a20c414575d3730588f125d3161082dd3c6776b22df
sacerdot/ocaml-http
http_threaded_tcp_server.ml
OCaml HTTP - do it yourself ( fully OCaml ) HTTP daemon Copyright ( C ) < 2002 > < > This program is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ...
null
https://raw.githubusercontent.com/sacerdot/ocaml-http/c13be78ad0fa4b2427feaf3777e20be4863115b9/mt/http_threaded_tcp_server.ml
ocaml
OCaml HTTP - do it yourself ( fully OCaml ) HTTP daemon Copyright ( C ) < 2002 > < > This program is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ...