_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
332c5327f35bd0d49d7411b0600a238588e7a912447df22f1c58ca967d285784
ubf/ubf
ubf_client.erl
%%% The MIT License %%% Copyright ( C ) 2011 - 2016 by < > Copyright ( C ) 2002 by %%% %%% 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 li...
null
https://raw.githubusercontent.com/ubf/ubf/c876f684fbd4959548ace1eb1cfc91941f93d377/src/ubf_client.erl
erlang
The MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished to do so, subject to the following conditions: The above...
Copyright ( C ) 2011 - 2016 by < > Copyright ( C ) 2002 by in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITH...
976ac3e64e3d5770e9b4186767a1848f9392cac71a070a6e604667d795b9c03b
RefactoringTools/HaRe
PFE_Rewrite.hs
{-# OPTIONS -fglasgow-exts #-} # LANGUAGE MultiParamTypeClasses , OverlappingInstances , UndecidableInstances , FunctionalDependencies , NoMonomorphismRestriction # {-+ Sometimes we need to apply some rewrites before type checking, but we need to record what rewrite was applied so that cached results with different rew...
null
https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/old/tools/pfe/PFE_Rewrite.hs
haskell
# OPTIONS -fglasgow-exts # + Sometimes we need to apply some rewrites before type checking, but we need to record what rewrite was applied so that cached results with different rewrites can be kept apart. Rewrites are therefore paired with names that uniquely identify them. Note: composing with idRw doesn't change th...
# LANGUAGE MultiParamTypeClasses , OverlappingInstances , UndecidableInstances , FunctionalDependencies , NoMonomorphismRestriction # module PFE_Rewrite where import MUtils type RewriteName = String data Rewrite m ds = Rewrite {rwName::RewriteName, rwFun::m (ds->ds)} idRw = Rewrite "" (return id) compRw (Rewrite n1 m...
c3571fa244cd3a1a44e273c195557db3bfc7814b410f6f74aef946232031d410
felipereigosa/mock-mechanics
property-mode.clj
(ns mockmechanics.core (:require [mockmechanics.library.vector :as vector])) (defn get-properties [world] (if-let [part-name (:selected-part world)] (let [part (get-in world [:parts part-name]) properties (get-in world [:info (:type part) :properties])] (map (fn [property] (let [va...
null
https://raw.githubusercontent.com/felipereigosa/mock-mechanics/93070a789f5b24a7b34643bc11f47f8cf6112f8d/src/mockmechanics/property-mode.clj
clojure
(ns mockmechanics.core (:require [mockmechanics.library.vector :as vector])) (defn get-properties [world] (if-let [part-name (:selected-part world)] (let [part (get-in world [:parts part-name]) properties (get-in world [:info (:type part) :properties])] (map (fn [property] (let [va...
3672b62d324aea21919c608b38b59dbdcb8a3f460d72454f4c3c73aa1822fd7c
Opetushallitus/ataru
valinnaiset_kielet_readonly.cljs
(ns ataru.hakija.arvosanat.components.valinnaiset-kielet-readonly (:require [ataru.hakija.arvosanat.components.oppiaineen-arvosana-rivi :as oar] [ataru.hakija.arvosanat.components.valinnainen-kieli-label :as vkl] [ataru.hakija.arvosanat.components.valinnainen-kieli-oppimaara :as vko] ...
null
https://raw.githubusercontent.com/Opetushallitus/ataru/499f053cf3491f4f219acb1c30d289c12c4ea1ae/src/cljs/ataru/hakija/arvosanat/components/valinnaiset_kielet_readonly.cljs
clojure
(ns ataru.hakija.arvosanat.components.valinnaiset-kielet-readonly (:require [ataru.hakija.arvosanat.components.oppiaineen-arvosana-rivi :as oar] [ataru.hakija.arvosanat.components.valinnainen-kieli-label :as vkl] [ataru.hakija.arvosanat.components.valinnainen-kieli-oppimaara :as vko] ...
a85931bfbb9934ae82553057a57bd89556df9252ddede97e3ba2ef1d013d079e
re-ops/re-core
facts.clj
(ns re-mote.zero.facts "Stats metadata etc.." (:require [com.rpl.specter :refer (transform ALL)] [taoensso.timbre :refer (refer-timbre)] [re-mote.zero.pipeline :refer (run-hosts)] [re-share.oshi :refer (hardware operating-system)] re-mote.repl.base) (:import [re_mote.repl.base Hosts])) (refer-tim...
null
https://raw.githubusercontent.com/re-ops/re-core/93596efd4f3068d57e8140106da60011a6569310/src/re_mote/zero/facts.clj
clojure
(ns re-mote.zero.facts "Stats metadata etc.." (:require [com.rpl.specter :refer (transform ALL)] [taoensso.timbre :refer (refer-timbre)] [re-mote.zero.pipeline :refer (run-hosts)] [re-share.oshi :refer (hardware operating-system)] re-mote.repl.base) (:import [re_mote.repl.base Hosts])) (refer-tim...
6c9d6440277edaf80d7fe5c87671c5f3496acc7740aae3d198ee3a13caab5a02
baryluk/ex11
swLabel.erl
-module(swLabel). Copyright ( C ) 2004 by ( ) %% All rights reserved. %% The copyright holder hereby grants the rights of usage, distribution %% and modification of this software to everyone and for any purpose, as %% long as this license and the copyright notice above are preserved and %% not modified. There is ...
null
https://raw.githubusercontent.com/baryluk/ex11/be8abc64ab9fb50611f93d6631fc33ffdee08fdb/widgets/swLabel.erl
erlang
All rights reserved. The copyright holder hereby grants the rights of usage, distribution and modification of this software to everyone and for any purpose, as long as this license and the copyright notice above are preserved and not modified. There is no warranty for this software. Now we call the generic operat...
-module(swLabel). Copyright ( C ) 2004 by ( ) -export([make/8]). -include("sw.hrl"). -import(ex11_lib, [ePolyText8/5, rpc/2, sleep/1, xClearArea/1, xDo/2, xFlush/1, xVar/2]). make(Parent, X, Y, Width, Ht, Border, Color, Str) -> spawn_link(fun() -> init(Parent, X, Y, Width, Ht, Border, Co...
023002d937175d193a840ec01c7fdb808480861ab98c64c90eb52843a6994545
freizl/dive-into-haskell
EitherT.hs
{-# LANGUAGE OverloadedStrings #-} -- | module EitherT where import Test.QuickCheck import Test.QuickCheck.Checkers import Test.QuickCheck.Classes import Control.Monad.Trans.Class newtype EitherT e m a = EitherT {runEitherT :: m (Either e a)} instance Show ( EitherT e m a ) where -- show _ = "EitherT (no idea h...
null
https://raw.githubusercontent.com/freizl/dive-into-haskell/b18a6bfe212db6c3a5d707b4a640170b8bcf9330/readings/haskell-book/26/EitherT.hs
haskell
# LANGUAGE OverloadedStrings # | show _ = "EitherT (no idea how to write show instance)" a == b = True <*> :: f (a->b) -> f a -> f b (\(x::Either e (a->b)) (y::Either e a) -> x <*> y) m (Either e (a->b)) m (Either e a) (EitherT v) >>= f = EitherT $ do a <- v case a of Left e -> return (Left e...
module EitherT where import Test.QuickCheck import Test.QuickCheck.Checkers import Test.QuickCheck.Classes import Control.Monad.Trans.Class newtype EitherT e m a = EitherT {runEitherT :: m (Either e a)} instance Show ( EitherT e m a ) where do nt know how to write instance instance Eq ( EitherT e m a ) wher...
845b9f5ebf86d4bf478650f4bd6b10ab6b83d20be1f681eb398724d501525456
steffan-westcott/clj-otel
http.clj
(ns steffan-westcott.clj-otel.api.trace.http "Support for creating and populating HTTP client and server spans. This namespace includes Ring middleware and Pedestal interceptors for working with HTTP server spans. Support is provided for working either with or without the OpenTelemetry instrumentation agent, a...
null
https://raw.githubusercontent.com/steffan-westcott/clj-otel/ed5c20a468fb2b8b3f4674382f57e031609f20a6/clj-otel-api/src/steffan_westcott/clj_otel/api/trace/http.clj
clojure
always merge extracted context with current context `route` is a string that may contain Ring middleware this is only appropriate if all requests are to be
(ns steffan-westcott.clj-otel.api.trace.http "Support for creating and populating HTTP client and server spans. This namespace includes Ring middleware and Pedestal interceptors for working with HTTP server spans. Support is provided for working either with or without the OpenTelemetry instrumentation agent, a...
b30f952e1cb69f0cb1869e49cbd9573891bc59c6c19cfb5d6357ee2b0b651fd0
ostinelli/misultin
misultin_access_log.erl
% ========================================================================================================== MISULTIN - Example : Access Log . % % >-|-|-(°> % Copyright ( C ) 2011 , < > % All rights reserved. % % BSD License % % Redistribution and use in source and binary forms, with or without modification, a...
null
https://raw.githubusercontent.com/ostinelli/misultin/b9fe3125cf17f4415a6d7fc60642b670f5e18eb8/examples/misultin_access_log.erl
erlang
========================================================================================================== >-|-|-(°> All rights reserved. BSD License Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistribu...
MISULTIN - Example : Access Log . Copyright ( C ) 2011 , < > THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " AND ANY EXPRESS OR PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT HOLDER OR FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR C...
7c627046be6d9803706332c2db43b25656f6bda00bc8cd73f1cf727c148c9aa4
haskell/aeson
AesonFoldable.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} module AesonFoldable (benchmark) where import Prelude.Compat import Bench import Data.Foldable (toList) import qualified Data.Aeson as A import qualified Data.Sequence as S import qualified Data.Vector as V import qualified Data.Vector.Unboxed as U -...
null
https://raw.githubusercontent.com/haskell/aeson/78c2338c20d31ba5dd46036d10d6c4815c12185d/benchmarks/bench/AesonFoldable.hs
haskell
# LANGUAGE OverloadedStrings # ----------------------------------------------------------------------------- List ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- Foldable ---------------------------------------...
# LANGUAGE NoImplicitPrelude # module AesonFoldable (benchmark) where import Prelude.Compat import Bench import Data.Foldable (toList) import qualified Data.Aeson as A import qualified Data.Sequence as S import qualified Data.Vector as V import qualified Data.Vector.Unboxed as U newtype L f = L { getL :: f Int } ...
3b173ad1b57393987ebe42f66b646a9cc50d936a9c064681b18f0da927fff9f8
namenu/advent-of-code
day21.clj
--- Day 21 : --- (ns aoc.year2019.day21 (:require [aoc.util :refer [input]] [aoc.year2019.intcode :refer :all] [clojure.string :as str])) (defn walk-or-run [robot cmd] (let [opts {:ascii true} robot (-> robot (add-input cmd opts) (run)) output (:output robot)] (if...
null
https://raw.githubusercontent.com/namenu/advent-of-code/83f8cf05931f814dab76696bf46fec1bb1276fac/2019/clojure/src/aoc/year2019/day21.clj
clojure
--- Day 21 : --- (ns aoc.year2019.day21 (:require [aoc.util :refer [input]] [aoc.year2019.intcode :refer :all] [clojure.string :as str])) (defn walk-or-run [robot cmd] (let [opts {:ascii true} robot (-> robot (add-input cmd opts) (run)) output (:output robot)] (if...
5df563ba121bf6f4acdbc50a8b8ee9c7620ccf3a7216da2d1cd16e388d63f326
wesen/ruinwesen
time.lisp
;;; -*- Mode: Lisp -*- ;;; $ Header : /home / gene / library / website / docsrc / pdl / RCS / time.lisp , v 395.1 2008/04/20 17:25:47 gene Exp $ ;;; Copyright ( c ) 2004 , 2006 . All rights reserved . ;;; ;;; This program is free software; you can redistribute it and/or modify ;;; it under the terms of the GNU...
null
https://raw.githubusercontent.com/wesen/ruinwesen/9f3ccea85425cf46b57e76144b3114ca342bad0f/ruinwesen/src/time.lisp
lisp
-*- Mode: Lisp -*- This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as either version 2.1 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WAR...
$ Header : /home / gene / library / website / docsrc / pdl / RCS / time.lisp , v 395.1 2008/04/20 17:25:47 gene Exp $ Copyright ( c ) 2004 , 2006 . All rights reserved . You should have received a copy of the GNU Lesser General Public Foundation , Inc. , 59 Temple Place , Suite 330 , Boston , MA 02111 - 13...
0def72298109cd62aa524c42c5f5b3815a281717ffbc75d2af1095b2b573bd2d
tweag/inline-js
Utils.hs
# LANGUAGE MagicHash # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # # LANGUAGE UnboxedTuples # # LANGUAGE ViewPatterns # module Language.JavaScript.Inline.Core.Utils where import Data.Binary.Get import Data.Binary.Get.Internal import qualified Data.ByteString as BS impor...
null
https://raw.githubusercontent.com/tweag/inline-js/ef675745e84d23d51c50660d40acf9e684fbb2d6/inline-js-core/src/Language/JavaScript/Inline/Core/Utils.hs
haskell
| 'embedFile' takes a file path, and generates a 'BS.ByteString' at compile-time containing the file content. The file path is relative to the package root directory, and should be included as a part of @data-files@ at runtime, so that standalone executables using this package should still work fine if the build ...
# LANGUAGE MagicHash # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # # LANGUAGE UnboxedTuples # # LANGUAGE ViewPatterns # module Language.JavaScript.Inline.Core.Utils where import Data.Binary.Get import Data.Binary.Get.Internal import qualified Data.ByteString as BS impor...
47ef4d280289ba5ea6c965bd075b597a5a681d7e564a4e125c567e62bdee14f7
2600hz/kazoo
kz_maps_tests.erl
%%%----------------------------------------------------------------------------- ( C ) 2010 - 2016 , 2600Hz %%% @doc Test utilities for manipulating maps This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obta...
null
https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/core/kazoo_stdlib/test/kz_maps_tests.erl
erlang
----------------------------------------------------------------------------- @doc Test utilities for manipulating maps @end -----------------------------------------------------------------------------
( C ) 2010 - 2016 , 2600Hz This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. -module(kz_maps_tests). -include_lib("eunit/include/eunit.hrl"). -define(M1, #{a => #{b => #{c1 => 5, c2 => 6}}}...
ccc2a2758fd714be92cd246586dc358c14aaea12ddc2a255788c3741a2b2847b
phadej/cabal-extras
GHC.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE CPP # # LANGUAGE RankNTypes # {-# OPTIONS -Wno-missing-fields #-} module CabalIfaceQuery.GHC ( -- * DynFlags getDynFlags, -- * Other easyReadBinIface, makeNameCacheUpdater, ghcShow, ghcShowIfaceClsInst, ) where import Peura import Cabal...
null
https://raw.githubusercontent.com/phadej/cabal-extras/378cac5495b829794d67f243b27a9317eeed0858/cabal-iface-query/src/CabalIfaceQuery/GHC.hs
haskell
# LANGUAGE BangPatterns # # OPTIONS -Wno-missing-fields # * DynFlags * Other ----------------------------------------------------------------------------- "Easy" interface ----------------------------------------------------------------------------- -------------------------------------------------------------------...
# LANGUAGE CPP # # LANGUAGE RankNTypes # module CabalIfaceQuery.GHC ( getDynFlags, easyReadBinIface, makeNameCacheUpdater, ghcShow, ghcShowIfaceClsInst, ) where import Peura import CabalIfaceQuery.GHC.DynFlags import CabalIfaceQuery.GHC.Show import CabalIfaceQuery.GHC.NameCacheUpdater...
111cb2c5a5d70e5fe8bc836890d05ca75812daa437f66f72114de33b7ec699fb
ggeoffrey/cljs-gravity
graph_tools.cljs
(ns gravity.view.graph-tools "Contain tools like selection animation, lights, background, etc…" (:require [gravity.tools :refer [log]])) (defn fill-window! "Resize a canvas to make it fill the window" [canvas] (set! (-> canvas .-style .-width) "100%") (set! (-> canvas .-style .-height) "100%") (let [w...
null
https://raw.githubusercontent.com/ggeoffrey/cljs-gravity/21f15aa08e88d747bc6dbe356a31c7d4d35d0bb9/src/gravity/view/graph_tools.cljs
clojure
close circle
(ns gravity.view.graph-tools "Contain tools like selection animation, lights, background, etc…" (:require [gravity.tools :refer [log]])) (defn fill-window! "Resize a canvas to make it fill the window" [canvas] (set! (-> canvas .-style .-width) "100%") (set! (-> canvas .-style .-height) "100%") (let [w...
1d106816899f903b4f0d25227108ba2bf4212ee72b9a1191305080b4b600009f
8c6794b6/guile-tjit
t-tail-call-05c.scm
;;; Almost same as t-tail-call-05.scm, but with number of iterations in ;;; `f2' inlined and different. (define (f1 n acc) (if (= n 0) acc (f1 (- n 1) (+ acc n)))) (define (f2 n) (let lp ((n n) (acc 0)) (if (= n 0) acc (lp (- n 1) (f1 n (f1 n acc)))))) (list (f2 100) (f2 100...
null
https://raw.githubusercontent.com/8c6794b6/guile-tjit/9566e480af2ff695e524984992626426f393414f/test-suite/tjit/t-tail-call-05c.scm
scheme
Almost same as t-tail-call-05.scm, but with number of iterations in `f2' inlined and different.
(define (f1 n acc) (if (= n 0) acc (f1 (- n 1) (+ acc n)))) (define (f2 n) (let lp ((n n) (acc 0)) (if (= n 0) acc (lp (- n 1) (f1 n (f1 n acc)))))) (list (f2 100) (f2 100) (f2 100) (f2 100) (f2 100))
9756ccdb0d3cc60983654179194ca655a9a8d816ff475a200f38678361679e03
elliottt/dang
Name.hs
# LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # module Dang.ModuleSystem.Name ( ModInfo(..), ParamSource(..), NameSort(..), Name(), nameSort, nameIdent, nameUnique, mkModName, mkBinding, mkParam, mkUnknown, ppNameOrigin, ) where import Dang.Syntax.AST (PName(...
null
https://raw.githubusercontent.com/elliottt/dang/490170c0ec674c4ce479108425e759dd4fd5a34b/src/Dang/ModuleSystem/Name.hs
haskell
^ Externally visible, comes from this module ^ Type/function parameter to this declaration. ^ A module, declared in this module. # UNPACK # ^ The unique number assigned to this name for this run of the compiler. ^ What kind of name this is. # UNPACK # ^ The actual name. ^ Where this name is defined. # INLINE (/...
# LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # module Dang.ModuleSystem.Name ( ModInfo(..), ParamSource(..), NameSort(..), Name(), nameSort, nameIdent, nameUnique, mkModName, mkBinding, mkParam, mkUnknown, ppNameOrigin, ) where import Dang.Syntax.AST (PName(...
77dc491b3b1ba02b17946842b9d0220e099e8b1a0f0dd47a62000aea9046fd46
deobald/jok
hammertimes.clj
(ns jukebox-web.views.hammertimes (:require [jukebox-web.views.layout :as layout] [jukebox-web.models.library :as library]) (:use [hiccup core form page] [jukebox-web.util.file :only (relative-uri)] [jukebox-web.views.forms])) (defn- form-fields [hammertime errors] [:div (labeled-f...
null
https://raw.githubusercontent.com/deobald/jok/e1b9373603ad7fcc3dbc7304cb8b88b8163e73bc/src/jukebox_web/views/hammertimes.clj
clojure
(ns jukebox-web.views.hammertimes (:require [jukebox-web.views.layout :as layout] [jukebox-web.models.library :as library]) (:use [hiccup core form page] [jukebox-web.util.file :only (relative-uri)] [jukebox-web.views.forms])) (defn- form-fields [hammertime errors] [:div (labeled-f...
271a138db2504ea6c6ab163ffaf87f9ae4dda3d85aca60f119ec0a102141e69b
IndianRoboticsOrganization/ArimaTTS
phrasyn.scm
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # Language Technologies Institute # # # # ...
null
https://raw.githubusercontent.com/IndianRoboticsOrganization/ArimaTTS/7377dca466306e2e6b90a063427273142cd50616/festvox/src/phrasyn/phrasyn.scm
scheme
## distribute, sublicense, and/or sell copies of this work, and to ## ## the following conditions: ## ## Email: ## (format ofd "%s " (item.feat w "phr_pos")) (format ofd "%s " (item.feat w "pos")) (format ofd "%s " (item....
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # Language Technologies Institute # # # # ...
8515c3d212ab37f7277a41da549473b5990f72033ecdad85385a748c942564d9
philnguyen/soft-contract
tetris.rkt
#lang racket (module data racket (struct posn (x y)) (struct block (x y color)) (struct tetra (center blocks)) (struct world (tetra blocks)) (define COLOR/C symbol?) (define POSN/C (struct/c posn real? real?)) (define BLOCK/C (struct/c block real? real? COLOR/C)) (define BSET/C (listof BLOCK/C)) ...
null
https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/benchmark-contract-overhead/tetris.rkt
racket
block=? : Block Block -> Boolean block-move : Number Number Block -> Block block-rotate-ccw : Posn Block -> Block block-rotate-cw : Posn Block -> Block block=? : Block Block -> Boolean block-move : Number Number Block -> Block block-rotate-ccw : Posn Block -> Block block-rotate-cw : Posn Block -> Block Determi...
#lang racket (module data racket (struct posn (x y)) (struct block (x y color)) (struct tetra (center blocks)) (struct world (tetra blocks)) (define COLOR/C symbol?) (define POSN/C (struct/c posn real? real?)) (define BLOCK/C (struct/c block real? real? COLOR/C)) (define BSET/C (listof BLOCK/C)) ...
3cef7c08264e1a01ec42ccf75e7229d672088e4aa5d5abd34cbe879b2862fdd0
kyleburton/clj-etl-utils
cache_utils.clj
;; # Caching Utilities ;; ;; Basic memoization produces a function with a cache wrapped around it. ;; This type of cache will have unbounded growth. The functions ;; in this module are for maintaining similar behavior while allowing ;; caches to have various flushing policies associated with them. ;; (ns clj-etl-utils...
null
https://raw.githubusercontent.com/kyleburton/clj-etl-utils/bcc927b3e05464ecac15cf33540c8a99cdd431a8/src/clj_etl_utils/cache_utils.clj
clojure
# Caching Utilities Basic memoization produces a function with a cache wrapped around it. This type of cache will have unbounded growth. The functions in this module are for maintaining similar behavior while allowing caches to have various flushing policies associated with them. The intent is for static cach...
(ns clj-etl-utils.cache-utils (:require [clojure.tools.logging :as log]) (:use [clj-etl-utils.lang-utils :only [raise aprog1]]) (:import [org.joda.time DateTime])) # # Cache Registry (defonce *cache-registry* (atom {})) # # # Cache Tags The first supported type for this module is : standard ...
729fcba440b230ed88e69a050eda6e3a2d926f8c5aac19ade78bba09700f4633
frenetic-lang/netcore-1.0
NetCore.hs
|Everything necessary to build a controller atop NetCore , using Nettle as -- a backend. module Frenetic.NetCore ( -- * OpenFlow Controllers controller , dynController , controllerProgram , consistentController , debugController , debugDynController -- * Policies , Program (..) , Policy (..)...
null
https://raw.githubusercontent.com/frenetic-lang/netcore-1.0/976b08b740027e8ed19f2d55b1e77f663bee6f02/src/Frenetic/NetCore.hs
haskell
a backend. * OpenFlow Controllers * Policies * Predicates * Actions ** Constructors ** Modifications * Network Elements * Packets * Packet modifications * Channels * Slices ** Topology constructors ** Slice constructors ** Compilation
|Everything necessary to build a controller atop NetCore , using Nettle as module Frenetic.NetCore controller , dynController , controllerProgram , consistentController , debugController , debugDynController , Program (..) , Policy (..) , (==>) , (<%>) , (<+>) , Predicate (..) , exactM...
793775f49ddc78ac878f6327731afd2fe4f7eb62ede7ed9fec9ffcd619c369b2
armedbear/abcl
revappend.lisp
;;; revappend.lisp ;;; Copyright ( C ) 2003 - 2007 $ Id$ ;;; ;;; This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version ...
null
https://raw.githubusercontent.com/armedbear/abcl/36a4b5994227d768882ff6458b3df9f79caac664/src/org/armedbear/lisp/revappend.lisp
lisp
revappend.lisp This program is free software; you can redistribute it and/or either version 2 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ...
Copyright ( C ) 2003 - 2007 $ 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 . (...
1986f43cd251767d870178401d1625a501cdf4149ee18862b386244953d8b817
yminer/libml
corpus.mli
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * [ LibML - Machine Learning Library ] Copyright ( C ) 2002 - 2003 LAGACHERIE This program is free software ; you can redistribute it and/or modify it under the te...
null
https://raw.githubusercontent.com/yminer/libml/1475dd87c2c16983366fab62124e8bbfbbf2161b/src/nn/misc/corpus.mli
ocaml
* The patterns list. * The learning position (the cuurent posistion in the corpus during learning phase). * A get*. @return the patterns list. * A get*. @return the nth pattern stored in the object. * A get*. @return how many patterns are stored in the object. * Adds a...
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * [ LibML - Machine Learning Library ] Copyright ( C ) 2002 - 2003 LAGACHERIE This program is free software ; you can redistribute it and/or modify it under the te...
279388159d9c3f763194592afb5b569ea9f3ca53f0071ac3882ec68a38f00256
shop-planner/shop3
p02.lisp
(in-package :shop-openstacks) #.(make-problem 'OS-SEQUENCEDSTRIPS-P5_2 'OPENSTACKS-SEQUENCEDSTRIPS-ADL-INCLUDED '((NEXT-COUNT N0 N1) ...
null
https://raw.githubusercontent.com/shop-planner/shop3/ba429cf91a575e88f28b7f0e89065de7b4d666a6/shop3/examples/openstacks-adl/p02.lisp
lisp
(in-package :shop-openstacks) #.(make-problem 'OS-SEQUENCEDSTRIPS-P5_2 'OPENSTACKS-SEQUENCEDSTRIPS-ADL-INCLUDED '((NEXT-COUNT N0 N1) ...
9bb41b2cabbaeb57350f01c2290c65af608f6d26cee4ff2bd4ee3bf506f5f091
hslua/hslua
Peek.hs
# LANGUAGE CPP # {-# LANGUAGE DeriveTraversable #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # | Module : HsLua . Marshalling . : © 2020 - 2023 : MIT Maintainer : < tarleb+ > Stability : beta Portability : Portable Types for unmarshall...
null
https://raw.githubusercontent.com/hslua/hslua/178c225f3da193f09fc27877a5a30e66eef069fb/hslua-marshalling/src/HsLua/Marshalling/Peek.hs
haskell
# LANGUAGE DeriveTraversable # # LANGUAGE OverloadedStrings # * Lua peek monad | Record to keep track of failure contexts while retrieving objects ^ Error message and stack of contexts # INLINE (<*>) # # INLINE empty # # INLINE (<|>) # | Lua operation with an additional failure mode that can stack errors fro...
# LANGUAGE CPP # # LANGUAGE ScopedTypeVariables # | Module : HsLua . Marshalling . : © 2020 - 2023 : MIT Maintainer : < tarleb+ > Stability : beta Portability : Portable Types for unmarshalling of values from Lua . Module : HsLua.Marshalling.Peek Copyright ...
eb61977b9ad6e1a6079bc9efeb14d915b6409a645e6e9edeb4c2502384a145ea
aiya000/haskell-examples
generic-lens.hs
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleContexts # # LANGUAGE NoMonomorphismRestriction # # LANGUAGE TypeApplications # import Control.Lens ((^.), (^?), (.~), (&), (#)) import Data.Functor.Identity (Identity) import Data.G...
null
https://raw.githubusercontent.com/aiya000/haskell-examples/a337ba0e86be8bb1333e7eea852ba5fa1d177d8a/Data/Generic/generic-lens.hs
haskell
Fields Sum types Not able to print $ toriel ^. field @"aggressive" Positional Not able to Typical Not able to print $ toriel ^. typed @() print $ point ^. typed @Int Constraints I'm Sans. Sans the skeleton ;E Constructors Typical Not able to print $ toriel ^? _Typed @() Constructors, or typical {output} ...
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleContexts # # LANGUAGE NoMonomorphismRestriction # # LANGUAGE TypeApplications # import Control.Lens ((^.), (^?), (.~), (&), (#)) import Data.Functor.Identity (Identity) import Data.G...
9abeb3c7463c9bd02ed74806cf73683414a82062624cb1aebec90175c87f88e7
AdRoll/rebar3_format
truncate_strings.erl
-module(truncate_strings). -format #{truncate_strings => true}. -compile([export_all]). simple() -> "simple". multi() -> "mul" "ti". rows() -> "row1" "row2". newline() -> "new line". newlines() -> "new line1 with\ninside" "new line2". char() -> "\x61a". chars() ->...
null
https://raw.githubusercontent.com/AdRoll/rebar3_format/5ffb11341796173317ae094d4e165b85fad6aa19/test_app/after/src/strings/truncate_strings.erl
erlang
-module(truncate_strings). -format #{truncate_strings => true}. -compile([export_all]). simple() -> "simple". multi() -> "mul" "ti". rows() -> "row1" "row2". newline() -> "new line". newlines() -> "new line1 with\ninside" "new line2". char() -> "\x61a". chars() ->...
00f2ccf85939561efd22fd90ed7af4b189792dcddf0da8a5a026df6450626b26
mbj/stratosphere
HttpNamespace.hs
module Stratosphere.ServiceDiscovery.HttpNamespace ( HttpNamespace(..), mkHttpNamespace ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Tag import Stratosphere.Value data Http...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/servicediscovery/gen/Stratosphere/ServiceDiscovery/HttpNamespace.hs
haskell
module Stratosphere.ServiceDiscovery.HttpNamespace ( HttpNamespace(..), mkHttpNamespace ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Tag import Stratosphere.Value data Http...
31238e869a122cdbe11535874a06de6589cc3ce5cbf467c1a07ec061a543bb5c
robert-strandh/SICL
destructuring-bind-defmacro.lisp
(cl:in-package #:sicl-data-and-control-flow) (defmacro destructuring-bind (lambda-list form &body body) (cleavir-code-utilities:parse-destructuring-bind lambda-list form body))
null
https://raw.githubusercontent.com/robert-strandh/SICL/767714c87b209da69cb866188f218b7193ae280c/Code/Data-and-control-flow/destructuring-bind-defmacro.lisp
lisp
(cl:in-package #:sicl-data-and-control-flow) (defmacro destructuring-bind (lambda-list form &body body) (cleavir-code-utilities:parse-destructuring-bind lambda-list form body))
63d0d41526c0b467f5d9c102563f68194d53ceb7fceb66021972f1c1782505bf
lichenscript/lichenscript
encoding.ml
* Copyright 2022 * * Licensed under the Apache License , Version 2.0 ( the " License " ) ; * you may not use this file except in compliance with the License . * You may obtain a copy of the License at * * -2.0 * * Unless required by applicable law or agreed to in writing , software ...
null
https://raw.githubusercontent.com/lichenscript/lichenscript/813f48438682a9c434baaaf2f6306bbdf0cdb8e5/lib/lex/encoding.ml
ocaml
* Copyright 2022 * * Licensed under the Apache License , Version 2.0 ( the " License " ) ; * you may not use this file except in compliance with the License . * You may obtain a copy of the License at * * -2.0 * * Unless required by applicable law or agreed to in writing , software ...
4ea274a08fb879ad57d8927cf955f186ee4fb6db77ee8d6dc3110d0521ae1576
bitemyapp/esqueleto
Main.hs
# OPTIONS_GHC -fno - warn - unused - top - binds # module Main where import Control.Monad.IO.Class (MonadIO) import Database.Esqueleto (SqlExpr, SqlQuery, from, insertSelect, val, (<#), ...
null
https://raw.githubusercontent.com/bitemyapp/esqueleto/9fba3e33e479f35356bfd0c8b5178bea442430d5/test/expected-compile-failures/write-read-role/Main.hs
haskell
# OPTIONS_GHC -fno - warn - unused - top - binds # module Main where import Control.Monad.IO.Class (MonadIO) import Database.Esqueleto (SqlExpr, SqlQuery, from, insertSelect, val, (<#), ...
413988ed26375bdacf6793765f95409f69e0f8d2cfcec710ad2a900938fdabea
xsc/thrift-clj
exception_test.clj
(ns ^{ :doc "Testing Exception Transfer" :author "Yannick Scherer" } thrift-clj.rpc.exception-test (:require [thrift-clj.core :as thrift]) (:use midje.sweet thrift-clj.rpc.fixtures)) (thrift/import (:types [thriftclj.structs Person] [thriftclj.exceptions StorageError]) (:clients [thr...
null
https://raw.githubusercontent.com/xsc/thrift-clj/cc6cf181540cd516c293c448ba07d8b3c023f04e/test-thrift/clj/thrift_clj/rpc/exception_test.clj
clojure
(ns ^{ :doc "Testing Exception Transfer" :author "Yannick Scherer" } thrift-clj.rpc.exception-test (:require [thrift-clj.core :as thrift]) (:use midje.sweet thrift-clj.rpc.fixtures)) (thrift/import (:types [thriftclj.structs Person] [thriftclj.exceptions StorageError]) (:clients [thr...
76827a4267bb6e39b2bba3ca4fbf0410498ac68db5c5768e70ca5d2f14e32fad
cldwalker/bb-clis
cli.clj
(ns cldwalker.bb-clis.cli "Common fns for babashka/clojure CLIs" (:require [clojure.string :as str] [clojure.java.io :as io] [clojure.tools.cli :as cli])) (defn error "Print error message(s) and exit" [& msgs] (apply println "Error:" msgs) (System/exit 1)) (defn print-summary "Pr...
null
https://raw.githubusercontent.com/cldwalker/bb-clis/e1b54f9a40e6524579f360a8602b846a9fdb8d75/src/cldwalker/bb_clis/cli.clj
clojure
(ns cldwalker.bb-clis.cli "Common fns for babashka/clojure CLIs" (:require [clojure.string :as str] [clojure.java.io :as io] [clojure.tools.cli :as cli])) (defn error "Print error message(s) and exit" [& msgs] (apply println "Error:" msgs) (System/exit 1)) (defn print-summary "Pr...
286f1e49107305f91f96536c6b5d361bb13f96f032e5ea917d124cdb9859ec67
uw-unsat/leanette-popl22-artifact
training-set.rkt
(lst ((str line-transition ((str line ((lst ((lit 1))) (lst ((lit e))))) (lst ((lit #t))))) (str line-transition ((str line ((lst ()) (lst ((lit e))))) (lst ((lit #f)))))))
null
https://raw.githubusercontent.com/uw-unsat/leanette-popl22-artifact/80fea2519e61b45a283fbf7903acdf6d5528dbe7/rosette-benchmarks-3/nonograms/puzzle/out.toy/training-set.rkt
racket
(lst ((str line-transition ((str line ((lst ((lit 1))) (lst ((lit e))))) (lst ((lit #t))))) (str line-transition ((str line ((lst ()) (lst ((lit e))))) (lst ((lit #f)))))))
5cab5e3b905db0c4c2e76f915a2e6277be769d534cc3d48997a57ff90e059fcc
manuel-serrano/bigloo
apply.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / / comptime / Ast / apply.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation : ...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/fdeac39af72d5119d01818815b0f395f2907d6da/comptime/Ast/apply.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * Last change : Thu Jul 8 11:26:41 2021 (serrano) */ * ------------------------------------------------------------- */ * The apply compilation ...
* serrano / prgm / project / bigloo / / comptime / Ast / apply.scm * / * Author : * / * Creation : Fri Jun 21 09:34:48 1996 * / (module ast_apply (include "Ast/node.sch") (import engine_param tools_error ...
8cf92d6ac880e45e124758019860602fcbb39f89427f2b12493dac1bf531fd83
takikawa/racket-ppa
info.rkt
(module info setup/infotab (#%module-begin (define collection "typed") (define test-responsibles (quote ((all jay)))) (define deps (quote ("racket-index" "rackunit-gui" "rackunit-lib" "typed-racket-lib" "base" "testing-util-lib"))) (define pkg-desc "Typed Racket types for RackUnit") (define pkg-authors (quote (samth st...
null
https://raw.githubusercontent.com/takikawa/racket-ppa/26d6ae74a1b19258c9789b7c14c074d867a4b56b/share/pkgs/rackunit-typed/info.rkt
racket
(module info setup/infotab (#%module-begin (define collection "typed") (define test-responsibles (quote ((all jay)))) (define deps (quote ("racket-index" "rackunit-gui" "rackunit-lib" "typed-racket-lib" "base" "testing-util-lib"))) (define pkg-desc "Typed Racket types for RackUnit") (define pkg-authors (quote (samth st...
82255a6159408b007ca66467cfd2a5a96dd842c629def1dc780edd587df1b97c
nasa/Common-Metadata-Repository
stac_results_handler.clj
(ns cmr.search.results-handlers.stac-results-handler "Handles the STAC results format and related functions" (:require [cheshire.core :as json] [clojure.string :as string] [cmr.common-app.services.search :as qs] [cmr.common-app.services.search.elastic-results-to-query-results :as er-to-qr] [cmr.commo...
null
https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/efde9b58740089c2abf718ddebf7a8f7da7ec843/search-app/src/cmr/search/results_handlers/stac_results_handler.clj
clojure
otherwise deduce from the URL suffix." remove entries with nil value cloud-cover requires the eo extension remove entries with nil value
(ns cmr.search.results-handlers.stac-results-handler "Handles the STAC results format and related functions" (:require [cheshire.core :as json] [clojure.string :as string] [cmr.common-app.services.search :as qs] [cmr.common-app.services.search.elastic-results-to-query-results :as er-to-qr] [cmr.commo...
db209eebea8939ec9d5b8770fad54d1c6fe673dd8527ecb479b42592dc8a4ff0
exercism/babashka
leap.clj
(ns leap) (defn leap-year? [year] (let [[p c s] (map #(= 0 (rem year %1)) [4 100 400])] (or (and p (not c)) (and c s))))
null
https://raw.githubusercontent.com/exercism/babashka/707356c52e08490e66cb1b2e63e4f4439d91cf08/exercises/practice/leap/src/leap.clj
clojure
(ns leap) (defn leap-year? [year] (let [[p c s] (map #(= 0 (rem year %1)) [4 100 400])] (or (and p (not c)) (and c s))))
4e5575ce89aa0d500d6315248316043d11076bdc6d1783ceb1036e01b8ad3bbc
chrovis/cljam
region.clj
(ns cljam.util.region "Utility functions for manipulating chromosomal regions." (:require [clojure.string :as cstr] [proton.core :as proton])) ;;; region predicates ;;; ---------- (defn overlapped-regions? "Returns true if two regions are overlapped with each other." [x y] (and (= (:chr x) (:chr...
null
https://raw.githubusercontent.com/chrovis/cljam/2b8e7386765be8efdbbbb4f18dbc52447f4a08af/src/cljam/util/region.clj
clojure
region predicates ---------- region conversion ---------- validation ---------- region <=> string ----------
(ns cljam.util.region "Utility functions for manipulating chromosomal regions." (:require [clojure.string :as cstr] [proton.core :as proton])) (defn overlapped-regions? "Returns true if two regions are overlapped with each other." [x y] (and (= (:chr x) (:chr y)) (<= (:start y) (:end x)) ...
89871232da9b1a14e7d9e06fbed090e82e03b213c981c1a8e33022d50f1e21c1
eudoxia0/rock
website.lisp
(in-package :cl-user) (defpackage rock-web (:use :cl :cl-markup) (:export :index)) (in-package :rock-web) ;;; Templates (defun head () (markup (:head (:meta :charset "utf-8") (:meta :http-equiv "X-UA-Compatible" :content "IE=edge") (:meta :name "viewport" :content "width=device-width, initial-sca...
null
https://raw.githubusercontent.com/eudoxia0/rock/3223ac31dd3f783ffd978b45d3b8bcc38bf37abc/web/website.lisp
lisp
Templates Available assets Pages
(in-package :cl-user) (defpackage rock-web (:use :cl :cl-markup) (:export :index)) (in-package :rock-web) (defun head () (markup (:head (:meta :charset "utf-8") (:meta :http-equiv "X-UA-Compatible" :content "IE=edge") (:meta :name "viewport" :content "width=device-width, initial-scale=1") (:t...
43422f357fb6c5a36f289134a28ede601ed0862a73a3ec8d6fa15f910b31c835
monadbobo/ocaml-core
sexp.ml
include Pre_sexp
null
https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/sexplib/lib/sexp.ml
ocaml
include Pre_sexp
4292d308004f00af58d7215de6e4b47f28c2bb3b4f0d131ed718d18648202060
tidalcycles/tidal-midi
VolcaKick.hs
module Sound.Tidal.MIDI.VolcaKick where import Sound.Tidal.Params import Sound.Tidal.MIDI.Control volcakickController :: ControllerShape volcakickController = ControllerShape { controls = [ mCC pulsecolour_p 40 , mCC pulselevel_p 41 , mCC ampattack_p 42 , mCC ampdecay_p 43 ...
null
https://raw.githubusercontent.com/tidalcycles/tidal-midi/0f806c31daee46bb54053dc3407349001a0e00b8/Sound/Tidal/MIDI/VolcaKick.hs
haskell
module Sound.Tidal.MIDI.VolcaKick where import Sound.Tidal.Params import Sound.Tidal.MIDI.Control volcakickController :: ControllerShape volcakickController = ControllerShape { controls = [ mCC pulsecolour_p 40 , mCC pulselevel_p 41 , mCC ampattack_p 42 , mCC ampdecay_p 43 ...
d71891072f0a77022b5a95095465ef8bcd14e715aa1765e4e4c8187057a267e2
xvw/muhokama
router.ml
let static = Dream.( router [ get "/css/**" @@ static "assets/css" ; get "/js/**" @@ static "assets/js" ]) ;; let choose_service next_handler request = let uri = Dream.target request and method_ = Dream.method_ request in Lib_service.Service.choose method_ uri [ Services.User....
null
https://raw.githubusercontent.com/xvw/muhokama/fc0879ec44e7bbb99f140950191e2a883fe60597/app/router.ml
ocaml
let static = Dream.( router [ get "/css/**" @@ static "assets/css" ; get "/js/**" @@ static "assets/js" ]) ;; let choose_service next_handler request = let uri = Dream.target request and method_ = Dream.method_ request in Lib_service.Service.choose method_ uri [ Services.User....
4df4547050c695ecba47175df849671bb0061b1b0015b1531ff7f6b7716d8851
wtfleming/clojurescript-examples
core.cljs
(ns ajax-core-async.core (:require-macros [cljs.core.async.macros :refer [go]]) (:require [goog.events :as events] [goog.events.EventType :as EventType] [goog.dom :as dom] [cljs.core.async :refer [<! put! chan]]) (:import goog.History goog.Uri goog.net.Jso...
null
https://raw.githubusercontent.com/wtfleming/clojurescript-examples/6f878f431a2cba405b6ae715199f776a19dda6f7/ajax-core-async/src/cljs/ajax_core_async/core.cljs
clojure
(ns ajax-core-async.core (:require-macros [cljs.core.async.macros :refer [go]]) (:require [goog.events :as events] [goog.events.EventType :as EventType] [goog.dom :as dom] [cljs.core.async :refer [<! put! chan]]) (:import goog.History goog.Uri goog.net.Jso...
b42ba4928ea0f21d9518bd4cbe004105ac9aab749c0ed58a84c3faf5d34a8e6c
clojusc/ltest
sample6.clj
(ns ltest.group2.samples.sample6 (:require [clojure.test :refer [are deftest is testing]] [ltest.core :refer [run-test run-tests run-suite run-suites]])) (deftest multiple-pass-test (is true) (is true)) (deftest some-fail-test (is true) (is false) (is true) (is true) (is false) (is false)) ...
null
https://raw.githubusercontent.com/clojusc/ltest/e82073d830e0e66018bbd6c98f49b0617cd2fa88/ltest/resources/sample-tests/src/ltest/group2/samples/sample6.clj
clojure
(ns ltest.group2.samples.sample6 (:require [clojure.test :refer [are deftest is testing]] [ltest.core :refer [run-test run-tests run-suite run-suites]])) (deftest multiple-pass-test (is true) (is true)) (deftest some-fail-test (is true) (is false) (is true) (is true) (is false) (is false)) ...
930f3c97ac2ad58d388837ace9e8ddedaf7ae5cde797befd41fe18c4ee5cfd18
naveensundarg/prover
feature-vector.lisp
;;; -*- Mode: Lisp; Syntax: Common-Lisp; Package: snark -*- ;;; File: feature-vector.lisp The contents of this file are subject to the Mozilla Public License ;;; Version 1.1 (the "License"); you may not use this file except in ;;; compliance with the License. You may obtain a copy of the License at ;;; / ;;; Softwa...
null
https://raw.githubusercontent.com/naveensundarg/prover/812baf098d8bf77e4d634cef4d12de94dcd1e113/snark-20120808r02/src/feature-vector.lisp
lisp
-*- Mode: Lisp; Syntax: Common-Lisp; Package: snark -*- File: feature-vector.lisp Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specif...
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is SNARK . The Initial Developer of the Original Code is SRI International . Portions created by the Initial Developer are Copyright ( C ) 1981 - 2012 . ...
4b7c62d21256f4cf5bc74557dc4aa2e0c5928e101bd4848d691b632028829610
clojure-interop/aws-api
AmazonSageMakerAsyncClientBuilder.clj
(ns com.amazonaws.services.sagemaker.AmazonSageMakerAsyncClientBuilder "Fluent builder for AmazonSageMakerAsync. Use of the builder is preferred over using constructors of the client class." (:refer-clojure :only [require comment defn ->]) (:import [com.amazonaws.services.sagemaker AmazonSageMakerAsyncClientBui...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.sagemaker/src/com/amazonaws/services/sagemaker/AmazonSageMakerAsyncClientBuilder.clj
clojure
(ns com.amazonaws.services.sagemaker.AmazonSageMakerAsyncClientBuilder "Fluent builder for AmazonSageMakerAsync. Use of the builder is preferred over using constructors of the client class." (:refer-clojure :only [require comment defn ->]) (:import [com.amazonaws.services.sagemaker AmazonSageMakerAsyncClientBui...
3a58a6db1a5286de6682beb0353cdfef29ed947ae114978de7813d15323fde10
dschrempf/elynx
AminoAcidI.hs
# LANGUAGE MultiParamTypeClasses # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # -- | -- Module : ELynx.AminoAcid -- Description : Amino acid related types and functions Copyright : 2021 License : GPL-3.0 - or - later -- -- Maintainer : -- Stability : unstable -- Portability : ...
null
https://raw.githubusercontent.com/dschrempf/elynx/f73f4474c61c22c6a9e54c56bdc34b37eff09687/elynx-seq/src/ELynx/Character/AminoAcidI.hs
haskell
| Module : ELynx.AminoAcid Description : Amino acid related types and functions Maintainer : Stability : unstable Portability : portable Amino acid IUPAC code. See also or . Remarks: sequence is printed/exported, @-@s will be used @ ---------------- ------------------ ----------- ...
# LANGUAGE MultiParamTypeClasses # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # Copyright : 2021 License : GPL-3.0 - or - later Creation date : Thu Oct 4 18:26:35 2018 . See header of ' ELynx . Alphabet . Alphabet ' . - Question marks ( @?@ ) are interpreted as unknowns ( same as )...
11bb0e04634bd802d1f9c1e01776f7fffa63d0b6e66ea5674a84c71b295f33f4
josefs/Gradualizer
mfa.erl
-module(mfa). -compile([export_all]). mfa() -> epp:parse_forms("mfa.erl",[]).
null
https://raw.githubusercontent.com/josefs/Gradualizer/208f5816b0157f282212fc036ba7560f0822f9fc/test/misc/mfa.erl
erlang
-module(mfa). -compile([export_all]). mfa() -> epp:parse_forms("mfa.erl",[]).
3c79ca7eb7e16b7682d1368fcefc696e99241037aa46d5c512d705da47ed9215
yakaz/yamerl
ex_7.19_single_pair_flow_mappings.erl
-module('ex_7.19_single_pair_flow_mappings'). -include_lib("eunit/include/eunit.hrl"). -define(FILENAME, "test/parsing/" ?MODULE_STRING ".yaml"). single_test_() -> ?_assertMatch( {yamerl_parser, {file,?FILENAME}, [], <<>>, 13, true, [], 0, 14,...
null
https://raw.githubusercontent.com/yakaz/yamerl/0032607a7b27fa2b548fc9a02d7ae6b53469c0c5/test/parsing/ex_7.19_single_pair_flow_mappings.erl
erlang
-module('ex_7.19_single_pair_flow_mappings'). -include_lib("eunit/include/eunit.hrl"). -define(FILENAME, "test/parsing/" ?MODULE_STRING ".yaml"). single_test_() -> ?_assertMatch( {yamerl_parser, {file,?FILENAME}, [], <<>>, 13, true, [], 0, 14,...
c4f1aaf9d293685714c1616fdd58c7c473eb9bad3e84cb558bb6b05d826e96c8
pfdietz/ansi-test
hash-table.lsp
;-*- Mode: Lisp -*- Author : Created : Sun Jan 26 21:30:42 2003 ;;;; Contains: Tests of HASH-TABLE and related interface (deftest hash-table.1 (notnot-mv (find-class 'hash-table)) t) (deftest hash-table.2 (loop for e in '(nil t 1 10.0 (a b c) #(a b c) #*1011 #0aNIL #2a((a...
null
https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/hash-tables/hash-table.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests of HASH-TABLE and related interface
Author : Created : Sun Jan 26 21:30:42 2003 (deftest hash-table.1 (notnot-mv (find-class 'hash-table)) t) (deftest hash-table.2 (loop for e in '(nil t 1 10.0 (a b c) #(a b c) #*1011 #0aNIL #2a((a b)(c d)) #p"foo" "bar" #\a 3/5 #c(1.0 2.0)) when ...
3ed4a486dcc19a012289c50abce416f25fe2e0571ee59e59c0c7c759ff63a877
LaurentRDC/pandoc-plot
Plotsjl.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE QuasiQuotes # # LANGUAGE RecordWildCards # # LANGUAGE NoImplicitPrelude # -- | -- Module : $header$ Copyright : ( c ) , 2019 - present License : GNU GPL , version 2 or above -- Maintainer : -- Stability : internal -- Portability : portable -- -- R...
null
https://raw.githubusercontent.com/LaurentRDC/pandoc-plot/933daba593196bf3b1ae1f2022d17389552f275c/src/Text/Pandoc/Filter/Plot/Renderers/Plotsjl.hs
haskell
# LANGUAGE OverloadedStrings # | Module : $header$ Maintainer : Stability : internal Portability : portable Rendering Julia/Plots.jl code blocks Save formats support by most backends /#Supported-output-file-formats-1 "#{oScriptPath}"|]
# LANGUAGE QuasiQuotes # # LANGUAGE RecordWildCards # # LANGUAGE NoImplicitPrelude # Copyright : ( c ) , 2019 - present License : GNU GPL , version 2 or above module Text.Pandoc.Filter.Plot.Renderers.Plotsjl ( plotsjl, plotsjlSupportedSaveFormats, ) where import Text.Pandoc.Filter.Plot.Render...
beb8b865cc299bf9ea048aa8a7e98cc41bce85934ecc5776754d0f55bc71d447
amosr/folderol
TopQ3U.hs
-- needs to be a separate file because of stage restriction. -- a bit of a shame. # LANGUAGE TemplateHaskell # module Bench.Correlation.TopQ3U where import Bench.Correlation.Queries import Bench.Plumbing.Folderol import Folderol.Splice q3'unfused :: Int -> (FilePath,FilePath) -> IO (Double,Double,Double) q3'unfused...
null
https://raw.githubusercontent.com/amosr/folderol/9b8c0cd30cfb798dadaa404cc66404765b1fc4fe/bench/Bench/Correlation/TopQ3U.hs
haskell
needs to be a separate file because of stage restriction. a bit of a shame.
# LANGUAGE TemplateHaskell # module Bench.Correlation.TopQ3U where import Bench.Correlation.Queries import Bench.Plumbing.Folderol import Folderol.Splice q3'unfused :: Int -> (FilePath,FilePath) -> IO (Double,Double,Double) q3'unfused chunkSize (fpStock,fpMarket) = do (c1,(c2,(c3,()))) <- scalarIO $ \snkC1 -> sca...
fa8ba8d6a5615ac07ea8d41f707bb3225214bd59299efdc07a8d3507d176c0a9
ucsd-progsys/liquid-sf
Base.hs
{-@ LIQUID "--exact-data-con" @-} {-@ LIQUID "--higherorder" @-} {-@ LIQUID "--totality" @-} {-@ LIQUID "--automatic-instances=liquidinstances" @-} {- LIQUID "--diff" @-} module Base where import Language.Haskell.L...
null
https://raw.githubusercontent.com/ucsd-progsys/liquid-sf/10f864e0521ef5920bb35af40a14c086f94370dd/Base.hs
haskell
@ LIQUID "--exact-data-con" @ @ LIQUID "--higherorder" @ @ LIQUID "--totality" @ @ LIQUID "--automatic-instances=liquidinstances" @ LIQUID "--diff" @ ------------------------------------------------------------------...
module Base where import Language.Haskell.Liquid.ProofCombinators @ data [ toNat ] = O | S Peano @ data Peano = O | S Peano toNat :: Peano -> Int toNat O = 0 toNat (S n) = 1 Prelude.+ toNat n plus :: Peano -> Peano -> Peano plus O n = n plus (S m) n = S (plus m n) data Pair a b = Pair a b @ measure ...
8058769e0332163a067926fa1bc99d7b835c5dc8559c94f8b76e7c63e1b50560
Smoltbob/Caml-Est-Belle
tuple1.ml
let rec f x = let (a,b)= x in if a<b then print_int a else print_int b in f(1,2,3)
null
https://raw.githubusercontent.com/Smoltbob/Caml-Est-Belle/3d6f53d4e8e01bbae57a0a402b7c0f02f4ed767c/tests/typechecking/invalid/tuple1.ml
ocaml
let rec f x = let (a,b)= x in if a<b then print_int a else print_int b in f(1,2,3)
2d3c2ecae8890ffc975bdee8f8c68a9e25094c29aea1ff05dcc4e02a175fb922
huangz1990/SICP-answers
42-empty-board.scm
42-empty-board.scm (define empty-board '())
null
https://raw.githubusercontent.com/huangz1990/SICP-answers/15e3475003ef10eb738cf93c1932277bc56bacbe/chp2/code/42-empty-board.scm
scheme
42-empty-board.scm (define empty-board '())
8c50af963b5c22b05d8b8e8a9138f8e622cb44b47e67ba2cdfae29023b6b8107
schlepfilter/frp
window.cljs
(ns frp.window (:refer-clojure :exclude [drop]) (:require [frp.browser :as browser])) (browser/defevent blur browser/convert-object) (browser/defevent click browser/convert-object) (browser/defevent contextmenu browser/convert-object) (browser/defevent copy browser/convert-object) (browser/defevent cut...
null
https://raw.githubusercontent.com/schlepfilter/frp/4a889f0aefd3aa17371fe1f0cdfabdad01fece8f/src/frp/window.cljs
clojure
convert) The following definition gives an error. (browser/defevent resize (browser/make-convert-merge js/window)) @resize
(ns frp.window (:refer-clojure :exclude [drop]) (:require [frp.browser :as browser])) (browser/defevent blur browser/convert-object) (browser/defevent click browser/convert-object) (browser/defevent contextmenu browser/convert-object) (browser/defevent copy browser/convert-object) (browser/defevent cut...
1f78cf4dd31af7eee3797aab5ae6712dc5a0c4b339fd9738d721b5c3cc9c3255
rjnw/sham
rkt.rkt
#lang racket (require "ast.rkt") (provide (all-defined-out)) (define-ast rkt-value (any))
null
https://raw.githubusercontent.com/rjnw/sham/6e0524b1eb01bcda83ae7a5be6339da4257c6781/sham-sam/sham/sam/rkt.rkt
racket
#lang racket (require "ast.rkt") (provide (all-defined-out)) (define-ast rkt-value (any))
ecfa17ad7fde99d4aa6384b152793e2fe88cf986938a9fd8673a1cd3aac72698
finkel-lang/finkel
FinkelExecutable.hs
;;; -*- mode: finkel -*- ;;;; Test codes for "finkel-executable.rst". (defmodule Doc.FinkelExecutable (export spec) (import ;; base (System.Info [os]) ;; filepath (System.FilePath [</>]) ;; hspc (Test.Hspec [(Spec) before_ describe]) ;; Internal (Doc.TestAux))) (defn (:: spec Spec) (l...
null
https://raw.githubusercontent.com/finkel-lang/finkel/74ce4bb779805ad2b141098e29c633523318fa3e/doc/test/Doc/FinkelExecutable.hs
haskell
;;; -*- mode: finkel -*- ;;;; Test codes for "finkel-executable.rst". (defmodule Doc.FinkelExecutable (export spec) (import ;; base (System.Info [os]) ;; filepath (System.FilePath [</>]) ;; hspc (Test.Hspec [(Spec) before_ describe]) ;; Internal (Doc.TestAux))) (defn (:: spec Spec) (l...
2b2c9a0106a7fb836e27a9e8bca5f4fec67f26d8b1756e666f252c9e9b857886
kevinlynx/dhtcrawler
torrent_file.erl
%% %% torrent_file.erl %% 06.12.2013 %% parse torrent torrent_file, it's dependent on bencode module. %% -module(torrent_file). -export([parse_from_file/1, parse/1, size_brief/1, size_string/1]). parse_from_file(File) -> {ok, Data} = file:read_file(File), parse(Data). % Format: % {single, {name, le...
null
https://raw.githubusercontent.com/kevinlynx/dhtcrawler/b8a486dbebb57f9672a773a6901d59ddae97a278/src/torrent/torrent_file.erl
erlang
torrent_file.erl 06.12.2013 parse torrent torrent_file, it's dependent on bencode module. Format: {single, {name, length}} {multi, {root, [{path, length}, {path, length}]}}
-module(torrent_file). -export([parse_from_file/1, parse/1, size_brief/1, size_string/1]). parse_from_file(File) -> {ok, Data} = file:read_file(File), parse(Data). parse(Content) -> {ok, {dict, TD}} = bencode:decode(Content), {ok, {dict, Info}} = dict:find(<<"info">>, TD), case type(Info) of si...
56e9b564040948f9c3c885f2d2fab65237e6a04959c25774f2270469bf9cae9c
melisgl/mgl
feature.lisp
(in-package :mgl-core) (named-readtables:in-readtable pythonic-string-reader:pythonic-string-syntax) (defsection @mgl-features (:title "Features") (@mgl-feature-selection section) (@mgl-feature-encoding section)) (defsection @mgl-feature-selection (:title "Feature Selection") "The following _scoring function...
null
https://raw.githubusercontent.com/melisgl/mgl/27a2552632a6a9330c1a133e519e676d9c6ca714/src/feature.lisp
lisp
Not exported currently.
(in-package :mgl-core) (named-readtables:in-readtable pythonic-string-reader:pythonic-string-syntax) (defsection @mgl-features (:title "Features") (@mgl-feature-selection section) (@mgl-feature-encoding section)) (defsection @mgl-feature-selection (:title "Feature Selection") "The following _scoring function...
8c1b20485f34ca732d05b18013bfe6cc9c6fe32929cf074527cafd8e5a58deda
nervous-systems/eulalie
project.clj
(defproject io.nervous/eulalie "0.6.10" :description "Asynchronous, pure-Clojure AWS client" :url "-systems/eulalie" :license {:name "Unlicense" :url ""} :scm {:name "git" :url "-systems/eulalie"} :source-paths ["src"] :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/clojurescript "1.8...
null
https://raw.githubusercontent.com/nervous-systems/eulalie/ee435987278f5ed628f576700b716d9d0bc17c61/project.clj
clojure
(defproject io.nervous/eulalie "0.6.10" :description "Asynchronous, pure-Clojure AWS client" :url "-systems/eulalie" :license {:name "Unlicense" :url ""} :scm {:name "git" :url "-systems/eulalie"} :source-paths ["src"] :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/clojurescript "1.8...
7e340c52862900dbbe86648c8dffb3bdef006eb747966efd53d4296ee1f16435
donaldsonjw/bigloo
impuse.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / comptime / Module / impuse.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation ...
null
https://raw.githubusercontent.com/donaldsonjw/bigloo/a4d06e409d0004e159ce92b9908719510a18aed5/comptime/Module/impuse.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * The compilation of import/use/from clauses */ *===========================...
* serrano / prgm / project / bigloo / comptime / Module / impuse.scm * / * Author : * / * Creation : Tue Jun 4 12:25:53 1996 * / * Last change : We d Oct 14 12:26:40 2015 ( serrano ) * / * Co...
7fefe633fc8124bff2e9628b00dd6599ac6866ff1ddc45ca0b8305b37ffaa339
binaryage/chromex
marshalling.clj
(ns chromex.marshalling) (defn marshall-to-chrome [config _id type param] (case type "runtime.Port" `(chromex.marshalling/to-native-chrome-port ~config ~param) "storage.StorageArea" `(chromex.marshalling/to-native-chrome-storage-area ~config ~param) "contentSettings.ContentSetting" `(chromex.marshalling/...
null
https://raw.githubusercontent.com/binaryage/chromex/33834ba5dd4f4238a3c51f99caa0416f30c308c5/src/lib/chromex/marshalling.clj
clojure
(ns chromex.marshalling) (defn marshall-to-chrome [config _id type param] (case type "runtime.Port" `(chromex.marshalling/to-native-chrome-port ~config ~param) "storage.StorageArea" `(chromex.marshalling/to-native-chrome-storage-area ~config ~param) "contentSettings.ContentSetting" `(chromex.marshalling/...
c6b31a354102b99537b28ab3225b980fa9d742803f28eed962b2adf097235968
tarides/dune-release
check.mli
val dune_checks : dry_run:bool -> skip_build:bool -> skip_tests:bool -> pkg_names:string list -> Fpath.t -> (int, [ `Msg of string ]) result * Checks if the packages in [ dir ] build and pass their tests . It returns an error if any of the checks could n't be performed . Otherwise , it returns [...
null
https://raw.githubusercontent.com/tarides/dune-release/6bfed0f299b82c0931c78d4e216fd0efedff0673/lib/check.mli
ocaml
val dune_checks : dry_run:bool -> skip_build:bool -> skip_tests:bool -> pkg_names:string list -> Fpath.t -> (int, [ `Msg of string ]) result * Checks if the packages in [ dir ] build and pass their tests . It returns an error if any of the checks could n't be performed . Otherwise , it returns [...
5ef8dca523408a56c2d80b44e989e2b6b157ad29721b3212d30418f44c66400d
GrammaticalFramework/gf-core
Macros.hs
---------------------------------------------------------------------- -- | -- Module : Macros -- Maintainer : AR -- Stability : (stable) -- Portability : (portable) -- > CVS $ Date : 2005/11/11 16:38:00 $ -- > CVS $Author: bringert $ > CVS $ Revision : 1.24 $ -- Macros for constructing and analysing sour...
null
https://raw.githubusercontent.com/GrammaticalFramework/gf-core/4e8859aa752c65e8445cd54cb6ca80089492fd31/src/compiler/GF/Grammar/Macros.hs
haskell
-------------------------------------------------------------------- | Module : Macros Maintainer : AR Stability : (stable) Portability : (portable) > CVS $Author: bringert $ operations on terms and types not involving lookup in or reference to grammars 4\/6\/2001 -----------------------------------...
> CVS $ Date : 2005/11/11 16:38:00 $ > CVS $ Revision : 1.24 $ Macros for constructing and analysing source code terms . module GF.Grammar.Macros where import GF.Data.Operations import GF.Data.Str import GF.Infra.Ident import GF.Grammar.Grammar import GF.Grammar.Predef import GF.Grammar.Printer import Control....
ba360497168659c5260f32cd1d45790dba9187b4d223580b4dddb800e1f429c4
haskell-tools/haskell-tools
Main.hs
module Main where import Language.Haskell.Tools.Debug (demoRefactor) import System.Environment (getProgName, getArgs) main :: IO () main = do args <- getArgs if length args < 3 then do progName <- getProgName putStrLn (progName ++ " <command/-> <workingdir> <modulename> ...
null
https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/debug/exe/Main.hs
haskell
module Main where import Language.Haskell.Tools.Debug (demoRefactor) import System.Environment (getProgName, getArgs) main :: IO () main = do args <- getArgs if length args < 3 then do progName <- getProgName putStrLn (progName ++ " <command/-> <workingdir> <modulename> ...
7aa282147e05740c5130f59dc7bb6e2174f6eacb6c63b257049fa3ab1c88b3f1
herbertjones/my-stumpwm-config
mode-line.lisp
(in-package :cl-user) (defpackage hfj.mode-line (:use :cl :hfj :stumpwm)) (in-package :hfj.mode-line) (ql:quickload "clx-truetype") (setf *mode-line-position* :bottom) ;; (load-module "app-menu") (load-module "battery-portable") (load-module "cpu") (load-module "mem") (load-module "net") (load-module "wifi") (load...
null
https://raw.githubusercontent.com/herbertjones/my-stumpwm-config/e2f259895835e9f39250ea3546b24ec13fbd093c/mode-line.lisp
lisp
(load-module "app-menu")
(in-package :cl-user) (defpackage hfj.mode-line (:use :cl :hfj :stumpwm)) (in-package :hfj.mode-line) (ql:quickload "clx-truetype") (setf *mode-line-position* :bottom) (load-module "battery-portable") (load-module "cpu") (load-module "mem") (load-module "net") (load-module "wifi") (load-module "stumptray") (load-m...
2416c3a1cf88bad1f56cc5fa98499dc0c55bd5292dd1f267d6a887838224404a
emqx/emqx
emqx_coap_frame.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2017 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy o...
null
https://raw.githubusercontent.com/emqx/emqx/dbc10c2eed3df314586c7b9ac6292083204f1f68/apps/emqx_gateway/src/coap/emqx_coap_frame.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2017 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(emqx_coap_frame). -behaviour(emqx_gateway_frame). -export([ initial_parse_state/1,...
4a67fe579e0f83f4b518274143a10357dc70c208ae6b9bbde62a08de6ef4eea1
guicho271828/bit-ops
macros.lisp
(in-package :bit-ops) (define-bitwise-operation nand (&rest args) "This is a commutative version of NAND, in contrast to 2-arg NAND compiled into primitive BIT-NAND. Take the conjunction of arguments and invert the results." `(not (and ,@args))) (define-bitwise-operation nor (&rest args) "This is a commutative...
null
https://raw.githubusercontent.com/guicho271828/bit-ops/db91ca76a63b6b59dfa5bb99531e9a1dbf9ba22f/src/macros.lisp
lisp
(define-bitwise-operation adder (a b prefetch) "Perform full addition of a and b. The end carry bit is ignored. " multi-digit adder... carry lookahead ... subtraction...
(in-package :bit-ops) (define-bitwise-operation nand (&rest args) "This is a commutative version of NAND, in contrast to 2-arg NAND compiled into primitive BIT-NAND. Take the conjunction of arguments and invert the results." `(not (and ,@args))) (define-bitwise-operation nor (&rest args) "This is a commutative...
ec6aedb984003f95d90f175736f74bdc7e8c623c920060c761eda375234d4a14
exoscale/clojure-kubernetes-client
v1_role_binding.clj
(ns clojure-kubernetes-client.specs.v1-role-binding (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1-object-meta :refer :all] [clojure-kubernetes-client.specs.v1-role-ref :refer :all] [clojure-kubernetes-client.specs...
null
https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/v1_role_binding.clj
clojure
(ns clojure-kubernetes-client.specs.v1-role-binding (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1-object-meta :refer :all] [clojure-kubernetes-client.specs.v1-role-ref :refer :all] [clojure-kubernetes-client.specs...
279272f14fc5f14e60ee16a48835188ca1743a2ab3f449255398c270943c9a2e
sgbj/MaximaSharp
nisimp.lisp
-*- Mode : Lisp ; Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; The data in this file contains enhancments. ;;;;; ;;; ;;;;; ...
null
https://raw.githubusercontent.com/sgbj/MaximaSharp/75067d7e045b9ed50883b5eb09803b4c8f391059/Test/bin/Debug/Maxima-5.30.0/share/maxima/5.30.0/src/nisimp.lisp
lisp
Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; The data in this file contains enhancments. ;;;;; ;;;;; ; ; ; ; All rights reserved ;;;;; ; ; property list ...
(in-package :maxima) (macsyma-module nisimp) programs for the LET LETSIMP LETRULES and commands these programs use the names and on the except for the top level programs all program names have the prefix NIS (declare-top (special nistree nisrules nisflag $ratexpand varlist $ratfac)) (defmvar $letvarsimp nil) ...
8db67b4ab3524124a6a7824bf9b6aa03b5f1f5a31fcc7619be782a2b3b968fa0
Ericson2314/lighthouse
IO.hs
# OPTIONS_GHC -fno - implicit - prelude # ----------------------------------------------------------------------------- -- | -- Module : System.IO Copyright : ( c ) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : -- Stability : stab...
null
https://raw.githubusercontent.com/Ericson2314/lighthouse/210078b846ebd6c43b89b5f0f735362a01a9af02/ghc-6.8.2/libraries/base/System/IO.hs
haskell
--------------------------------------------------------------------------- | Module : System.IO License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : stable Portability : portable --------------------------------------------------------------------------- :: (a...
# OPTIONS_GHC -fno - implicit - prelude # Copyright : ( c ) The University of Glasgow 2001 The standard IO library . module System.IO ( * The IO monad instance MonadFix #ifndef house_HOST_OS withFile, IOMode(ReadMode,WriteMode,AppendMode,ReadWriteMode), | These functions are also e...
83de3c488f712321c9baa920bc5980161e25f1a00fe7336e5a33f78faf59246c
igorhvr/bedlam
sxpath-impl.scm
$ I d : sxpath - impl.scm , v 1.2 2007/04/12 03:51:18 acolomba Exp $ Highghest level SXPath ;; Refactored from sxml-tools.scm and sxpathlib.scm ;============================================================================== ; Abbreviated SXPath Evaluate an abbreviated SXPath ; sxpath:: AbbrPath -> Converter, or...
null
https://raw.githubusercontent.com/igorhvr/bedlam/b62e0d047105bb0473bdb47c58b23f6ca0f79a4e/siscweb/siscweb-src-0.5/opt/sxml/scm/sxpath/sxpath-impl.scm
scheme
Refactored from sxml-tools.scm and sxpathlib.scm ============================================================================== Abbreviated SXPath sxpath:: AbbrPath -> Converter, or to the following rewriting rules (sxpath '()) -> (node-join) (sxpath '(path-component ...)) -> ...
$ I d : sxpath - impl.scm , v 1.2 2007/04/12 03:51:18 acolomba Exp $ Highghest level SXPath Evaluate an abbreviated SXPath sxpath : : AbbrPath - > Node|Nodeset - > Nodeset AbbrPath is a list . It is translated to the full SXPath according ( node - join ( sxpath1 path - component ) ( sxpath ' ( ... ) ) ) ...
575c5dc8760bc6ba395bd3490803c68b181c428ca571b67312a0d7af22bf6de5
lpeterse/haskell-ssh
Algorithms.hs
{-# LANGUAGE OverloadedStrings #-} module Spec.Algorithms ( tests ) where import Test.Tasty import Test.Tasty.HUnit import Network.SSH.Algorithms import Network.SSH.Name tests :: TestTree tests = testGroup "Network.SSH.Algorithms" [ testGroup "HostKeyAlgorithm" ...
null
https://raw.githubusercontent.com/lpeterse/haskell-ssh/d1a614b6bf30c4932ee5a66efcae6e71680b4819/test/Spec/Algorithms.hs
haskell
# LANGUAGE OverloadedStrings #
module Spec.Algorithms ( tests ) where import Test.Tasty import Test.Tasty.HUnit import Network.SSH.Algorithms import Network.SSH.Name tests :: TestTree tests = testGroup "Network.SSH.Algorithms" [ testGroup "HostKeyAlgorithm" [ testHostKeyAlgorithm01 , tes...
36db3cc028cea775c220c4549646fec641811fd94b66b13d5087d507fc660109
owlbarn/light_actor
actor_param_client.ml
* Light Actor - Parallel & Distributed Engine of Owl System * Copyright ( c ) 2016 - 2019 < > * Light Actor - Parallel & Distributed Engine of Owl System * Copyright (c) 2016-2019 Liang Wang <> *) module Make (Net : Actor_net.Sig) (Sys : Actor_sys.Sig) (Impl : Actor_param_impl.Sig) = struct ...
null
https://raw.githubusercontent.com/owlbarn/light_actor/d5ca76db0a58c61cd0ba019be458dada3ce9c36a/src/core/actor_param_client.ml
ocaml
register client to server start client service clean up when client exits
* Light Actor - Parallel & Distributed Engine of Owl System * Copyright ( c ) 2016 - 2019 < > * Light Actor - Parallel & Distributed Engine of Owl System * Copyright (c) 2016-2019 Liang Wang <> *) module Make (Net : Actor_net.Sig) (Sys : Actor_sys.Sig) (Impl : Actor_param_impl.Sig) = struct ...
e071afafc2fb4718e8a6d1d2e868bea9185c75f00a20efd5163c8e5cbeceeaad
alanb2718/wallingford
quadrilateral-with-constraint-in-when.rkt
#lang s-exp rosette ; quadrilateral demo, using 'when' and 'while' constraints for selecting a point to move and dragging ; this version uses a constraint in the body of the 'when' to identify the selected point (require racket/gui/base) (require "../core/wallingford.rkt") (require "../applications/geothings.rkt") (r...
null
https://raw.githubusercontent.com/alanb2718/wallingford/9dd436c29f737d210c5b87dc1b86b2924c0c5970/reactive/quadrilateral-with-constraint-in-when.rkt
racket
quadrilateral demo, using 'when' and 'while' constraints for selecting a point to move and dragging this version uses a constraint in the body of the 'when' to identify the selected point connect everything up use explicit stays so that we can provide unambiguous behavior initialize the locations of the sides (th...
#lang s-exp rosette (require racket/gui/base) (require "../core/wallingford.rkt") (require "../applications/geothings.rkt") (require "reactive.rkt") (require "reactive-thing.rkt") (define quadrilateral% (class reactive-thing% (inherit button-going-down? button-going-up? button-pressed? mouse-position image seco...
8dfd36b75e12c6e3c377edff7ee944b0f522288a819cd9a4f5cdad3cda559429
brendanhay/amazonka
Translate.hs
-- | -- Module : Test.Amazonka.Translate 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.Translate ( tests, fixtures, ) where ...
null
https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-translate/test/Test/Amazonka/Translate.hs
haskell
| Module : Test.Amazonka.Translate Stability : auto-generated
Copyright : ( c ) 2013 - 2023 License : Mozilla Public License , v. 2.0 . Maintainer : < brendan.g.hay+ > Portability : non - portable ( GHC extensions ) module Test.Amazonka.Translate ( tests, fixtures, ) where import Test.Tasty (TestTree) tests :: [TestTree] tests = [] fixtures :: [Te...
2064ff353fb6658345f3028b7efde35b2ebb17af36705f5ea9a979156a2f097e
ferd/tend
tend_compile_module.erl
-module(tend_compile_module). -export([compile/2]). @doc Compiles a source module to an Ebin . Errors and Warnings are %% printed out. -spec compile(file:name(), file:name()) -> {ok, module()} | error. compile(SrcMod, Ebin) -> case compile:file(SrcMod, [debug_info, return, {outdir, Ebin}]) of {err...
null
https://raw.githubusercontent.com/ferd/tend/1cecf0480ff41b97eff95e3732b02244c0619e83/src/tend_compile_module.erl
erlang
printed out.
-module(tend_compile_module). -export([compile/2]). @doc Compiles a source module to an Ebin . Errors and Warnings are -spec compile(file:name(), file:name()) -> {ok, module()} | error. compile(SrcMod, Ebin) -> case compile:file(SrcMod, [debug_info, return, {outdir, Ebin}]) of {error, Errors, Warnings}...
2bce4c091277a889a0804af27945e63db92c22bca9751532bbff22aa60f74b9a
waxeye-org/waxeye
javascript.rkt
;; Waxeye Parser Generator ;; www.waxeye.org Copyright ( C ) 2008 - 2010 Orlando Hill Licensed under the MIT license . See ' LICENSE ' for details . #lang racket/base (require (only-in racket/list add-between) waxeye/ast waxeye/fa "code.rkt" "dfa.rkt" "gen.rkt") (provide gen-javascript g...
null
https://raw.githubusercontent.com/waxeye-org/waxeye/723da0475fc0c8e3dd43da46665ef7c62734857b/src/waxeye/javascript.rkt
racket
Waxeye Parser Generator www.waxeye.org use -1 for wild card Simulate string-join with string-append . add-between,
Copyright ( C ) 2008 - 2010 Orlando Hill Licensed under the MIT license . See ' LICENSE ' for details . #lang racket/base (require (only-in racket/list add-between) waxeye/ast waxeye/fa "code.rkt" "dfa.rkt" "gen.rkt") (provide gen-javascript gen-javascript-parser gen-typescript ...
b4024caa80bfc8d9d7fdd4d2d8695134fedb32be89d02ca53714bbd785a30e55
anoma/juvix-circuits
term-op.lisp
(in-package :alu.spec.term-op) (defun add (&rest arguments) (spc:make-application :function (spc:make-reference :name :+) :arguments arguments)) (defun times (&rest arguments) (spc:make-application :function (spc:make-reference :name :*) :arguments arguments)) (defun = (&rest arguments) (spc:make-...
null
https://raw.githubusercontent.com/anoma/juvix-circuits/51f8ea2db5b1200c400ff1bc6d5f51249afc0073/src/spec/term-op.lisp
lisp
(in-package :alu.spec.term-op) (defun add (&rest arguments) (spc:make-application :function (spc:make-reference :name :+) :arguments arguments)) (defun times (&rest arguments) (spc:make-application :function (spc:make-reference :name :*) :arguments arguments)) (defun = (&rest arguments) (spc:make-...
1e07ef32a487ba9655e7aae714cbd046952ae78b18de55d4240ee6be1008ddcb
eneroth/fulcro-template-aleph
aleph_driver.clj
(ns poc.api.aleph-driver (:require [aleph.http :as client] [clojure.core.async :as async] [clojure.spec.alpha :as s] [com.wsscode.pathom.diplomat.http :as http] [com.wsscode.pathom.misc :as p.misc])) ;; TODO: ::http/debug? (defn build-request-map [{::http/keys [url c...
null
https://raw.githubusercontent.com/eneroth/fulcro-template-aleph/ed614f192cee63ee56fcbb325d92ea24a3a95a1f/src/poc/api/aleph_driver.clj
clojure
TODO: ::http/debug?
(ns poc.api.aleph-driver (:require [aleph.http :as client] [clojure.core.async :as async] [clojure.spec.alpha :as s] [com.wsscode.pathom.diplomat.http :as http] [com.wsscode.pathom.misc :as p.misc])) (defn build-request-map [{::http/keys [url content-type accept as b...
87f6072a8e6818853887bc2aa650692e6cfd9bfeb9aaf8b1e25836577749255e
sionescu/iolib
config.lisp
;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*- ;;; ;;; --- Special variable definitions. ;;; (in-package :iolib/sockets) (defvar *ipv6* nil "Specifies the default behaviour with respect to IPv6: - nil : Only IPv4 addresses are used. - :ipv6 : Only IPv6 addresses are used. - t : If both IPv4 and IPv6 addresses...
null
https://raw.githubusercontent.com/sionescu/iolib/dac715c81db55704db623d8b2cfc399ebcf6175f/src/sockets/config.lisp
lisp
-*- Mode: Lisp; indent-tabs-mode: nil -*- --- Special variable definitions.
(in-package :iolib/sockets) (defvar *ipv6* nil "Specifies the default behaviour with respect to IPv6: - nil : Only IPv4 addresses are used. - :ipv6 : Only IPv6 addresses are used. - t : If both IPv4 and IPv6 addresses are found they are returned in the best order possible (see RFC 3484). Default value is NIL....
0447a5ab9762e558bccf13efdd92e04747867ae4978508803b9d441dbf98c6c2
lenn0x/Event-Notifier
thrift_base64_transport.erl
%% Licensed to the Apache Software Foundation ( ASF ) under one %% or more contributor license agreements. See the NOTICE file %% distributed with this work for additional information %% regarding copyright ownership. The ASF licenses this file to you under the Apache License , Version 2.0 ( the %% "License"); you ...
null
https://raw.githubusercontent.com/lenn0x/Event-Notifier/5b370624578f4610b4af71c989c13068c2cbbf58/thrift-erl/src/thrift_base64_transport.erl
erlang
or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless require...
Licensed to the Apache Software Foundation ( ASF ) under one to you under the Apache License , Version 2.0 ( the software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(thrift_base64_transport). -behaviour(thrift_transport). -export([new/1...
daf35efaf958caac8ece2e496f027e9d59c974fda51e23328a922f77ac7534c4
elastic/eui-cljs
icon_token_constant.cljs
(ns eui.icon-token-constant (:require ["@elastic/eui/lib/components/icon/assets/tokenConstant.js" :as eui])) (def tokenConstant eui/icon)
null
https://raw.githubusercontent.com/elastic/eui-cljs/ad60b57470a2eb8db9bca050e02f52dd964d9f8e/src/eui/icon_token_constant.cljs
clojure
(ns eui.icon-token-constant (:require ["@elastic/eui/lib/components/icon/assets/tokenConstant.js" :as eui])) (def tokenConstant eui/icon)
6e888c011777bc732e95fc59932181dece236511eab5e4caa498bd15065b7c68
quek/paiprolog
prologcp.lisp
;;;; -*- Mode: Lisp; Syntax: Common-Lisp -*- Code from Paradigms of AI Programming Copyright ( c ) 1991 ;;;; File prologcp.lisp: Primitives for the prolog compiler ;;;; needed to actually run some functions. Bug fix by , . Trivia : Farquhar is 's cousin . (in-package "PAIPROLOG") (defun fail/0 (cont...
null
https://raw.githubusercontent.com/quek/paiprolog/012d6bb255d8af7f1c8b1d061dcd8a474fb3b57a/prologcp.lisp
lisp
-*- Mode: Lisp; Syntax: Common-Lisp -*- File prologcp.lisp: Primitives for the prolog compiler needed to actually run some functions. FIXME: this use of a temporary predicate name is ugly, non-threadsafe and basically evil bad and wrong. treat them specially. in ISO Prolog , this is expressed as (or (if if the...
Code from Paradigms of AI Programming Copyright ( c ) 1991 Bug fix by , . Trivia : Farquhar is 's cousin . (in-package "PAIPROLOG") (defun fail/0 (cont) "7.8.1" (declare (cl:ignore cont)) nil) (defun true/0 (cont) "7.8.2" (funcall cont)) (defun call/1 (?g cont) "7.8.3: Try to prove goal...
de9d3c50cde451c40b824ae62415a63ebe9186ee6203d4706e40edd99d759672
johnwhitington/ocamli
example04.ml
let nothing = None let number = Some 50 let numbers = [Some 12; None; None; Some 2] let word = Some ['c'; 'a'; 'k'; 'e']
null
https://raw.githubusercontent.com/johnwhitington/ocamli/28da5d87478a51583a6cb792bf3a8ee44b990e9f/OCaml%20from%20the%20Very%20Beginning/Chapter%2010/example04.ml
ocaml
let nothing = None let number = Some 50 let numbers = [Some 12; None; None; Some 2] let word = Some ['c'; 'a'; 'k'; 'e']
42d5f28ca066c0e24e715396b061452496c001a0e385fc55fb9ffb7bf6a57646
rescript-lang/rescript-compiler
lam_pass_deep_flatten.ml
Copyright ( C ) 2015- , Authors of ReScript * * 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 ) any later vers...
null
https://raw.githubusercontent.com/rescript-lang/rescript-compiler/e60482c6f6a69994907b9bd56e58ce87052e3659/jscomp/core/lam_pass_deep_flatten.ml
ocaml
type eliminate = | Not_eliminatable | it is okay to have duplicates [groups] are in reverse order * FIXME: It should be alias and alias will be optimized away in later optmizations, however, this means if we don't optimize {[ let u/a = v in ..]} the output would be wron...
Copyright ( C ) 2015- , Authors of ReScript * * 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 ) any later vers...
918d94f277d3573c65de12d3b60e00d75e8cbbb8bebe96d21062fc9a30d11048
GNOME/gimp-tiny-fu
chalk.scm
; GIMP - The GNU Image Manipulation Program Copyright ( C ) 1995 and ; ; This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 3 of the License , or ; (at your option) any later ve...
null
https://raw.githubusercontent.com/GNOME/gimp-tiny-fu/a64d85eec23b997e535488d67f55b44395ba3f2e/scripts/chalk.scm
scheme
GIMP - The GNU Image Manipulation Program This program is free software: you can redistribute it and/or modify either version 3 of the License , or (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 ...
Copyright ( C ) 1995 and it under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License chalk.scm version 0.11 10/10/97 Copyright ( C ) 1997 < > (define (apply-chalk-logo-effect img logo-layer ...
1b8b44205d24b158b70154c1a116a68af1b305d66561bca0cda1046959d03e06
josephwilk/midje-junit-formatter
core.clj
(ns ^{:doc "JUnit formatter for Midje output"} midje-junit-formatter.core (:import java.io.File) (:use midje.emission.util) (:require [midje.data.fact :as fact] [midje.config :as config] [midje.emission.state :as state] [midje.emission.plugins.util :as util] [midj...
null
https://raw.githubusercontent.com/josephwilk/midje-junit-formatter/df5814d2abecd4d46a0a5bf458bae18485b32af5/src/midje_junit_formatter/core.clj
clojure
"
(ns ^{:doc "JUnit formatter for Midje output"} midje-junit-formatter.core (:import java.io.File) (:use midje.emission.util) (:require [midje.data.fact :as fact] [midje.config :as config] [midje.emission.state :as state] [midje.emission.plugins.util :as util] [midj...
3efa3149648a30ded961ffdc94086bd74a7ea1e2996a03fa30d8b488644a9aa1
tmattio/spin
decoder.ml
(* This module is heavily inspired by -decoders/ *) open Sexplib0 type error = | Decoder_error of string * Sexp.t option | Decoder_errors of error list | Decoder_tag of string * error type 'a t = Sexp.t -> ('a, error) Result.t (* Error handling *) let pp_sexp fmt value = Format.fprintf fmt "@[%a@]" Sexp.p...
null
https://raw.githubusercontent.com/tmattio/spin/092ab5979d4f1d01f538743443b70465a2d5ed23/lib/spin/decoder.ml
ocaml
This module is heavily inspired by -decoders/ Error handling Loading s-expressions Decoding primitives Helpers Decoding lists Decoding records Inconsistent structure
open Sexplib0 type error = | Decoder_error of string * Sexp.t option | Decoder_errors of error list | Decoder_tag of string * error type 'a t = Sexp.t -> ('a, error) Result.t let pp_sexp fmt value = Format.fprintf fmt "@[%a@]" Sexp.pp_hum value let rec pp_error fmt = function | Decoder_error (msg, Some t)...
1588a25de3f3309ae274ff4d29b3715d332d71021ae2fa9a45b5eac64b7941a5
koto-bank/lbge
texture.lisp
(in-package :lbge.render.texture) (defclass texture () ((image :accessor texture-image :initarg :image :documentation "An instance of lbge.image - raw data to be loaded") (target :documentation "Texutre target (currently can be only :texture-2d)" :initarg :target) (format :access...
null
https://raw.githubusercontent.com/koto-bank/lbge/6be4b3212ea87288b1ee2a655e9a1bb30a74dd27/src/render/texture.lisp
lisp
(in-package :lbge.render.texture) (defclass texture () ((image :accessor texture-image :initarg :image :documentation "An instance of lbge.image - raw data to be loaded") (target :documentation "Texutre target (currently can be only :texture-2d)" :initarg :target) (format :access...
05662d4ce0949e3c9758727e885ec742cb6752983b0e9211cc4a732cf4a66459
kowainik/colourista
IO.hs
# LANGUAGE CPP # | Copyright : ( c ) 2020 - 2022 Kowainik SPDX - License - Identifier : MPL-2.0 Maintainer : < > Functions to output formatted ' T.Text ' directly to terminal . Copyright: (c) 2020-2022 Kowainik SPDX-License-Identifier: MPL-2.0 Maintainer: Kowainik <> Functions to output formatted 'T.Te...
null
https://raw.githubusercontent.com/kowainik/colourista/c7b06816ab85c27439fa7afbe6d5eed0506dd884/src/Colourista/IO.hs
haskell
* Colour ** Direct ** Aliases with unicode indicators * Emphasis * General purpose -------------------------------------------------------------------------- -------------------------------------------------------------------------- | Print 'Text' coloured in 'Colourista.red'. | Print 'Text' coloured in 'Colouri...
# LANGUAGE CPP # | Copyright : ( c ) 2020 - 2022 Kowainik SPDX - License - Identifier : MPL-2.0 Maintainer : < > Functions to output formatted ' T.Text ' directly to terminal . Copyright: (c) 2020-2022 Kowainik SPDX-License-Identifier: MPL-2.0 Maintainer: Kowainik <> Functions to output formatted 'T.Te...
8799cebc3fc80303f591b292122157434373e0c0bce6e080738ca918aacd34c5
frodwith/cl-urbit
tests.lisp
(defpackage #:urbit/tests (:use #:cl #:fiveam) (:export #:test-urbit #:all-tests)) (in-package #:urbit/tests) (def-suite all-tests :description "all of cl-urbit's tests") (in-suite all-tests) (defun test-urbit () (run! 'all-tests))
null
https://raw.githubusercontent.com/frodwith/cl-urbit/65af924ee58c4c974056f369158bbc1401308fea/t/tests.lisp
lisp
(defpackage #:urbit/tests (:use #:cl #:fiveam) (:export #:test-urbit #:all-tests)) (in-package #:urbit/tests) (def-suite all-tests :description "all of cl-urbit's tests") (in-suite all-tests) (defun test-urbit () (run! 'all-tests))
0ddea7ae85aa5ea6deb1512d95ac40b519eca2f5ba7c030faf29e70265210f86
ryanpbrewster/haskell
P062.hs
module Problems.P062 ( solve , solveProblem ) where - The cube , 41063625 ( 345 ^ 3 ) , can be permuted to produce two other cubes : - 56623104 ( 384 ^ 3 ) and 66430125 ( 405 ^ 3 ) . In fact , 41063625 is the smallest - cube which has exactly three permutations of its digits which are also cube . - ...
null
https://raw.githubusercontent.com/ryanpbrewster/haskell/6edd0afe234008a48b4871032dedfd143ca6e412/project-euler/src/Problems/P062.hs
haskell
module Problems.P062 ( solve , solveProblem ) where - The cube , 41063625 ( 345 ^ 3 ) , can be permuted to produce two other cubes : - 56623104 ( 384 ^ 3 ) and 66430125 ( 405 ^ 3 ) . In fact , 41063625 is the smallest - cube which has exactly three permutations of its digits which are also cube . - ...
928dbdc2621513e941dc901613cc4283b45726af0ff31f1ffce13fb71d7c7122
pablo-meier/ScrabbleCheat
game_parser_tests.erl
-module(game_parser_tests). -include("gameinfo.hrl"). -include_lib("eunit/include/eunit.hrl"). -define(SCRABBLE_LETTER_DIST, make_dict([{$E,12},{$F,2},{$L,4},{$H,2},{$T,6},{$A,9}])). -define(LEXULOUS_LETTER_DIST, make_dict([{$E,12},{$F,2},{$L,4},{$H,2},{$T,6},{$A,9}])). -define(WWF_LETTER_DIST, make_dict([{$E,13},{$F,...
null
https://raw.githubusercontent.com/pablo-meier/ScrabbleCheat/718cb768a910f2ba7ca6cd1d2aae0e342849bf0a/code/server/test/eunit/game_parser_tests.erl
erlang
compare_dicts :: Dict -> Dict -> Bool compare_boards :: Array(Array(Tile)) -> Array(Array(Tile)) -> Bool
-module(game_parser_tests). -include("gameinfo.hrl"). -include_lib("eunit/include/eunit.hrl"). -define(SCRABBLE_LETTER_DIST, make_dict([{$E,12},{$F,2},{$L,4},{$H,2},{$T,6},{$A,9}])). -define(LEXULOUS_LETTER_DIST, make_dict([{$E,12},{$F,2},{$L,4},{$H,2},{$T,6},{$A,9}])). -define(WWF_LETTER_DIST, make_dict([{$E,13},{$F,...
160714c689c0e5f3baaf63b9ba65b2a8f44bbbd1cac212944289b391480f37ad
lmj/lparallel
pdotimes.lisp
Copyright ( c ) 2011 - 2012 , . All rights reserved . ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: ;;; ;;; * Redistributions of source code must retain the above copyright ;;; notice, this li...
null
https://raw.githubusercontent.com/lmj/lparallel/9c11f40018155a472c540b63684049acc9b36e15/src/cognate/pdotimes.lisp
lisp
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary...
Copyright ( c ) 2011 - 2012 , . All rights reserved . " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT HOLDER OR FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT THEORY OF LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY...
7037f5264aec9069fc8b17c50d0845f3584e622401a3a3e014abcf25fc7b3f2c
icicle-lang/p-ambiata
List.hs
# LANGUAGE LambdaCase # # LANGUAGE NoImplicitPrelude # module P.List ( count , ordNub , ordNubBy , sortNub , lastMaybe ) where import Data.Bool (Bool) import Data.Eq (Eq(..)) import Data.Function ((.)) import Data.Int (Int) import Data.List (reverse, leng...
null
https://raw.githubusercontent.com/icicle-lang/p-ambiata/3098e411c9d521321e866b2f9637113223ef41d1/src/P/List.hs
haskell
order is identical to the input order. See 'sortNub' for `nub` behaviour with sorted output. > ordNub "foo bar baz" == "fo barz" > List.take 3 (ordNub [4,5,6,undefined]) == [4,5,6] comparison function. sorted order. > sortNub [3,2,1,2,1] == [1,2,3] > sortNub xs == List.sort (List.nub xs) ...
# LANGUAGE LambdaCase # # LANGUAGE NoImplicitPrelude # module P.List ( count , ordNub , ordNubBy , sortNub , lastMaybe ) where import Data.Bool (Bool) import Data.Eq (Eq(..)) import Data.Function ((.)) import Data.Int (Int) import Data.List (reverse, leng...