_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
9475ecdb9f0cf957f5134c0be2448c17fb69e799fb5e26cd5903909a412fe7f0
discord-haskell/discord-haskell
Channel.hs
{-# LANGUAGE GADTs #-} # LANGUAGE DataKinds # # LANGUAGE RecordWildCards # {-# LANGUAGE OverloadedStrings #-} | Provides actions for Channel API interactions module Discord.Internal.Rest.Channel ( ChannelRequest(..) , MessageDetailedOpts(..) , AllowedMentions(..) , ReactionTiming(..) , MessageTiming(..) ...
null
https://raw.githubusercontent.com/discord-haskell/discord-haskell/92bf25a9acb657605d0f95adcae56ddbbfe86e19/src/Discord/Internal/Rest/Channel.hs
haskell
# LANGUAGE GADTs # # LANGUAGE OverloadedStrings # | Data constructor for requests. See </ API> | Gets a channel by its id. | Edits channels options. | Deletes a channel if its id doesn't equal to the id of guild. | Gets a message in a channel by its id. | Sends a message to a channel. | Sends a message with gran...
# LANGUAGE DataKinds # # LANGUAGE RecordWildCards # | Provides actions for Channel API interactions module Discord.Internal.Rest.Channel ( ChannelRequest(..) , MessageDetailedOpts(..) , AllowedMentions(..) , ReactionTiming(..) , MessageTiming(..) , ChannelInviteOpts(..) , ModifyChannelOpts(..) , Chan...
c40faaebb61ff175e2023e9c62c680c61e2ac15856990ac39eea6387ec8f1b7a
carotene/carotene
api_presence_handler.erl
-module(api_presence_handler). -export([init/3]). -export([terminate/3]). -export([allowed_methods/2]). -export([content_types_provided/2]). -export([resource_exists/2]). -export([presence_to_json/2]). init(_Type, Req, _Opts) -> {{IP, _Port}, _} = cowboy_req:peer(Req), case carotene_api_authorization:authori...
null
https://raw.githubusercontent.com/carotene/carotene/963ecad344ec1c318c173ad828a5af3c000ddbfc/src/api_presence_handler.erl
erlang
-module(api_presence_handler). -export([init/3]). -export([terminate/3]). -export([allowed_methods/2]). -export([content_types_provided/2]). -export([resource_exists/2]). -export([presence_to_json/2]). init(_Type, Req, _Opts) -> {{IP, _Port}, _} = cowboy_req:peer(Req), case carotene_api_authorization:authori...
734c32205adcc3437cc43381e167456df9f6ed3cb821d06ba2daf3c6a9df6ad2
ghalestrilo/seg
app.cljs
(ns segue.app (:require [re-frame.core :as rf] [reagent.core :as r] [segue.core :refer [render screen]] [segue.debug.views :as debug] [segue.demo.views :refer [home]] [segue.main :as main])) (defn ui "Basic wrapper to show the home and the debug view half height. Returns hiccup vector." [_] ...
null
https://raw.githubusercontent.com/ghalestrilo/seg/1fad7f310a1652adffd16729ab16c5f457ac1860/env/dev/segue/app.cljs
clojure
"Basic wrapper to show the demo app and the debug view half height. Returns hiccup vector." [_] [:terminal :cursor "line" :screenKeys false :label " multiplex.js " :left 0 :right 0 :border "line" :style {:fg "default" :bg "default" :focus {:border {:fg "green"...
(ns segue.app (:require [re-frame.core :as rf] [reagent.core :as r] [segue.core :refer [render screen]] [segue.debug.views :as debug] [segue.demo.views :refer [home]] [segue.main :as main])) (defn ui "Basic wrapper to show the home and the debug view half height. Returns hiccup vector." [_] ...
cd63fa26cbd9ce96ab47ec3896e1385485a73f217392d5acafd364b71b68710c
mfikes/fifth-postulate
ns132.cljs
(ns fifth-postulate.ns132) (defn solve-for01 [xs v] (for [ndx0 (range 0 (- (count xs) 3)) ndx1 (range (inc ndx0) (- (count xs) 2)) ndx2 (range (inc ndx1) (- (count xs) 1)) ndx3 (range (inc ndx2) (count xs)) :when (= v (+ (xs ndx0) (xs ndx1) (xs ndx2) (xs ndx3)))] (list (x...
null
https://raw.githubusercontent.com/mfikes/fifth-postulate/22cfd5f8c2b4a2dead1c15a96295bfeb4dba235e/src/fifth_postulate/ns132.cljs
clojure
(ns fifth-postulate.ns132) (defn solve-for01 [xs v] (for [ndx0 (range 0 (- (count xs) 3)) ndx1 (range (inc ndx0) (- (count xs) 2)) ndx2 (range (inc ndx1) (- (count xs) 1)) ndx3 (range (inc ndx2) (count xs)) :when (= v (+ (xs ndx0) (xs ndx1) (xs ndx2) (xs ndx3)))] (list (x...
ccf1fbf7a8b57b2c46ba40825fbc00c5b540d3b00ca12d4b2d9032194c90ad6c
philipcmonk/phlisped
paste.rkt
#lang racket (require "../core/common.rkt") (require "../core/commands-common.rkt") (require "../core/extractdata.rkt") (require "../core/gnode.rkt") (require "../core/disp.rkt") (provide data handle-paste) (define (paste event) (enter-paste-mode)) (define (handle-paste event (char '())) (with ((let ((c (if (nu...
null
https://raw.githubusercontent.com/philipcmonk/phlisped/ded1be5d9e7206cd3c71db49ccd250fa4381cf99/commands/paste.rkt
racket
#lang racket (require "../core/common.rkt") (require "../core/commands-common.rkt") (require "../core/extractdata.rkt") (require "../core/gnode.rkt") (require "../core/disp.rkt") (provide data handle-paste) (define (paste event) (enter-paste-mode)) (define (handle-paste event (char '())) (with ((let ((c (if (nu...
69cbf7fadd80dec28fd3eda836390d25cfcf058f30900693e254fb4f6c66e255
danilkolikov/dfl
InferenceDebugOutput.hs
| Module : Compiler . Prettify . InferenceDebugOutput Description : Prettifying of InferenceDebugOutput Copyright : ( c ) , 2019 License : MIT Functions for pretty printing of InferenceDebugOutput Module : Compiler.Prettify.InferenceDebugOutput Description : Prettifying of ...
null
https://raw.githubusercontent.com/danilkolikov/dfl/698a8f32e23b381afe803fc0e353293a3bf644ba/src/Compiler/Prettify/InferenceDebugOutput.hs
haskell
| Module : Compiler . Prettify . InferenceDebugOutput Description : Prettifying of InferenceDebugOutput Copyright : ( c ) , 2019 License : MIT Functions for pretty printing of InferenceDebugOutput Module : Compiler.Prettify.InferenceDebugOutput Description : Prettifying of ...
2e415109c0f9210ab8aeaf1f894baa83c66729632ed033601d70e97d6304697c
faithanalog/pagerenc
Transmission.hs
# LANGUAGE DeriveFunctor # module Data.Transmission ( MessageType(..) , Message(..) , messageBaudRate , pcmEncodeMessage , POCSAGBaudRate(..) , pocsagBaudRate , Transmission(..) , TransmissionM , transmit , noise , randDelayTime , encode ) where import Control.Monad.Free.Church import Data.By...
null
https://raw.githubusercontent.com/faithanalog/pagerenc/aecf80035a157f2e09f508f5edc9b855f687d34a/src/Data/Transmission.hs
haskell
# LANGUAGE DeriveFunctor # module Data.Transmission ( MessageType(..) , Message(..) , messageBaudRate , pcmEncodeMessage , POCSAGBaudRate(..) , pocsagBaudRate , Transmission(..) , TransmissionM , transmit , noise , randDelayTime , encode ) where import Control.Monad.Free.Church import Data.By...
e98dd9f2ba80cf45fc345c1bb99f9b0c970116bbd573d3d3f07d0a222ca949a0
fused-effects/fused-effects
Lift.hs
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # -- | A carrier for 'Lift' allowing monadic actions to be lifted from an outer context into an inner one with 'sendM', and for an inner context to run actions in an outer one with 'liftWith'. -- @since 1.0.0.0 module Control.Carrier.Lift ( -- ...
null
https://raw.githubusercontent.com/fused-effects/fused-effects/9790ed4fb2cbaaf8933ce0eb42d7c55bc38f12ac/src/Control/Carrier/Lift.hs
haskell
| A carrier for 'Lift' allowing monadic actions to be lifted from an outer context into an inner one with 'sendM', and for an inner context to run actions in an outer one with 'liftWith'. * Lift carrier * Lift effect | Extract a 'Lift'ed 'Monad'ic action from an effectful computation.
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # @since 1.0.0.0 module Control.Carrier.Lift runM , LiftC(..) , module Control.Effect.Lift ) where import Control.Algebra import Control.Applicative (Alternative) import Control.Effect.Lift import Control.Monad (MonadPlus) import Control.Mon...
1f9ac06776fcbde8fd53e92f8c6c6b6beeb2572573ca0f4419e91d8bd3b1fb12
facebook/duckling
Tests.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. module Duckling.AmountOfMoney.BG.Tests ( tests ) where import Data.String import Prelude import Test.Tast...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/tests/Duckling/AmountOfMoney/BG/Tests.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.
Copyright ( c ) 2016 - present , Facebook , Inc. module Duckling.AmountOfMoney.BG.Tests ( tests ) where import Data.String import Prelude import Test.Tasty import Duckling.AmountOfMoney.BG.Corpus import Duckling.Dimensions.Types import Duckling.Testing.Asserts tests :: TestTree tests = testGroup "BG Tests" [...
e94d7afd433dfac32918889f8e4433d6252552d393c5eabff742144dfb839b2a
racket/rhombus-prototype
bytes.rkt
#lang racket/base (require (for-syntax racket/base) "provide.rkt" "name-root.rkt" "dot-parse.rkt" (submod "dot.rkt" for-dot-provider) "static-info.rkt" "define-arity.rkt" (submod "annotation.rkt" for-class)) (provide (for-spaces (rhombus/annot ...
null
https://raw.githubusercontent.com/racket/rhombus-prototype/cc091ab2cb42d0c2b92a80a4ddc7f23946f2fe54/rhombus/private/bytes.rkt
racket
#lang racket/base (require (for-syntax racket/base) "provide.rkt" "name-root.rkt" "dot-parse.rkt" (submod "dot.rkt" for-dot-provider) "static-info.rkt" "define-arity.rkt" (submod "annotation.rkt" for-class)) (provide (for-spaces (rhombus/annot ...
61487c7a5bc3377e48b3ccec112b510f25010036c25ed7292cfb85a40c616a3a
pelzlpj/orpie
rpc_calc.ml
Orpie -- a fullscreen RPN calculator for the console * Copyright ( C ) 2003 - 2004 , 2005 , 2006 - 2007 , 2010 , 2018 * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License , Version 3 , * as published by the Free Soft...
null
https://raw.githubusercontent.com/pelzlpj/orpie/8b3bb833cedad0125aa9e9cb01d253156993e20b/src/orpie/rpc_calc.ml
ocaml
all calc functions will need to have arguments checked * and a backup performed, so we handle it with a little wrapper function Warning: dup() creates multiple references to the same object. * Therefore all operations need to leave the original stack elements * unaltered. element-by-element co...
Orpie -- a fullscreen RPN calculator for the console * Copyright ( C ) 2003 - 2004 , 2005 , 2006 - 2007 , 2010 , 2018 * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License , Version 3 , * as published by the Free Soft...
dbc2f776e130bd134ae1eaa3df6e4f2a4c6b8a098fe35cd1f5e7ddefd1efd0af
AshleyYakeley/Truth
LensAttribute.hs
module Pinafore.Base.Model.LensAttribute ( StorageLensAttribute(..) , slaRead , identityStorageLensAttribute , composeStorageLensAttribute , pairStorageLensAttribute , eitherStorageLensAttribute , funcStorageLensAttribute , lensFunctionAttribute , storageLensPutEditBA , storageLe...
null
https://raw.githubusercontent.com/AshleyYakeley/Truth/f567d19253bb471cbd8c39095fb414229b27706a/Pinafore/pinafore-base/lib/Pinafore/Base/Model/LensAttribute.hs
haskell
can't delete
module Pinafore.Base.Model.LensAttribute ( StorageLensAttribute(..) , slaRead , identityStorageLensAttribute , composeStorageLensAttribute , pairStorageLensAttribute , eitherStorageLensAttribute , funcStorageLensAttribute , lensFunctionAttribute , storageLensPutEditBA , storageLe...
9ffb0b7f2ab0532d8298252ca2257253fe1463bf684b868965155e3c59c8a65d
samoht/camloo
labels.scm
;; Le module (module __caml_labels (library camloo-runtime) (import __caml_misc __caml_instruct __caml_buffcode) (export label_table_246@labels (reset_label_table_229@labels x1) (extend_label_table_197@labels x1) (define_label_232@labels x1) (out_label_with_orig_230@labels x1) ...
null
https://raw.githubusercontent.com/samoht/camloo/29a578a152fa23a3125a2a5b23e325b6d45d3abd/src/camloo/Llib.bootstrap/labels.scm
scheme
Le module Les variables globales Les expressions globales
(module __caml_labels (library camloo-runtime) (import __caml_misc __caml_instruct __caml_buffcode) (export label_table_246@labels (reset_label_table_229@labels x1) (extend_label_table_197@labels x1) (define_label_232@labels x1) (out_label_with_orig_230@labels x1) (2-131-out_...
cfb7f1295bd08bc52073834318dc0f2c3f0278328e5954e91316ea2563143eaf
privet-kitty/cl-competitive
z-algorithm.lisp
(defpackage :cp/z-algorithm (:use :cl) (:export #:make-z-array) (:documentation "Provides Z-algorithm.")) (in-package :cp/z-algorithm) (declaim (inline make-z-array)) (defun make-z-array (vector &key (test #'eql) end) "Returns a vector Z of the same length as VECTOR. Z[i] equals to the length of the longest su...
null
https://raw.githubusercontent.com/privet-kitty/cl-competitive/2c4d4e82af2a1672eef334a0a229c67d4fb37188/module/z-algorithm.lisp
lisp
(defpackage :cp/z-algorithm (:use :cl) (:export #:make-z-array) (:documentation "Provides Z-algorithm.")) (in-package :cp/z-algorithm) (declaim (inline make-z-array)) (defun make-z-array (vector &key (test #'eql) end) "Returns a vector Z of the same length as VECTOR. Z[i] equals to the length of the longest su...
dff3f860da492e93c386647a125e5351c23692100b74f89f438dbb06c9233a1e
docker-in-aws/docker-in-aws
slt.clj
(ns swarmpit.slt (:require [clojure.core.cache :as cache] [swarmpit.uuid :refer [uuid]] [swarmpit.base64 :as base64])) (def cache (atom (cache/ttl-cache-factory {} :ttl 10000))) (defn- generate [] (->> (uuid) (base64/encode))) (defn create [] (let [slt (generate)] (swap! ...
null
https://raw.githubusercontent.com/docker-in-aws/docker-in-aws/bfc7e82ac82ea158bfb03445da6aec167b1a14a3/ch16/swarmpit/src/clj/swarmpit/slt.clj
clojure
(ns swarmpit.slt (:require [clojure.core.cache :as cache] [swarmpit.uuid :refer [uuid]] [swarmpit.base64 :as base64])) (def cache (atom (cache/ttl-cache-factory {} :ttl 10000))) (defn- generate [] (->> (uuid) (base64/encode))) (defn create [] (let [slt (generate)] (swap! ...
465de9edab72d9573bc0311eac3dbd3416627a67379d74fe2b2dfd2aaf54d2a8
Tener/deeplearning-thesis
AgentGenericHeuristic.hs
# LANGUAGE MultiParamTypeClasses , OverlappingInstances , FlexibleInstances , FlexibleContexts # module AgentGenericHeuristic where data AgentHeuristic heurFilter = AgentHeuristic heurFilter instance (HeuristicFilter hf) => Agent2 (AgentHeuristic hf) where type AgentParams (AgentHeuristic hf) = hf mkAgent hf...
null
https://raw.githubusercontent.com/Tener/deeplearning-thesis/c56866bf6f48db3185b4b62348d292bf39a7a2af/lib/AgentGenericHeuristic.hs
haskell
| filter states, leaving only good ones - -
# LANGUAGE MultiParamTypeClasses , OverlappingInstances , FlexibleInstances , FlexibleContexts # module AgentGenericHeuristic where data AgentHeuristic heurFilter = AgentHeuristic heurFilter instance (HeuristicFilter hf) => Agent2 (AgentHeuristic hf) where type AgentParams (AgentHeuristic hf) = hf mkAgent hf...
115d89b71b5aebb7f3956d2f1af15bdcdba0ed1edb59ea22f568bfed153e1aaa
nikita-volkov/deque
State.hs
-- | Strict Deque API lifted to a State monad , \"mtl\"-style . module Deque.Strict.State where import Deque.Prelude hiding (dropWhile, head, init, last, null, reverse, tail, takeWhile) import qualified Deque.Prelude as Prelude import Deque.Strict (Deque) import qualified Deque.Strict as Deque -- | -- \(\mathcal{O}...
null
https://raw.githubusercontent.com/nikita-volkov/deque/d502228de73bd6e68b0ead258a27be4d0db3812c/library/Deque/Strict/State.hs
haskell
| | \(\mathcal{O}(n)\). Modify each element of the queue. | \(\mathcal{O}(n)\). Add elements to the begginning. | \(\mathcal{O}(n)\). Add elements to the ending. | \(\mathcal{O}(1)\). Add element in the beginning. | \(\mathcal{O}(1)\). Add element in the ending. | \(\mathcal{O}(1)\). Reverse the dequ...
Strict Deque API lifted to a State monad , \"mtl\"-style . module Deque.Strict.State where import Deque.Prelude hiding (dropWhile, head, init, last, null, reverse, tail, takeWhile) import qualified Deque.Prelude as Prelude import Deque.Strict (Deque) import qualified Deque.Strict as Deque map :: MonadState (Deque a...
7829766a1f93bfc95ce11eb7cc2eeb7d2c6fb7bc314ceff0d877e58d02244dfd
strymonas/strymonas-ocaml
simple.ml
The first , simplest and commonest examples of using , with detailed explanations These examples are meant to be executed ( that is , # used ) from the top - level BER MetaOCaml . with detailed explanations These examples are meant to be executed (that is, #used) from the top-level BER M...
null
https://raw.githubusercontent.com/strymonas/strymonas-ocaml/b45ab87c62e5bb845ff4a989064f30ed6b468f6d/examples/TryFirst/simple.ml
ocaml
This is how this file is meant to be used #use "simple.ml";; Add the directory with interface files and load the library Select the MetaOCaml backend, to generate OCaml code Open the strymonas library: higher-level interface, which see ../../lib/stream_cooked.mli val ex1 : int cstream = <abstr> The follow...
The first , simplest and commonest examples of using , with detailed explanations These examples are meant to be executed ( that is , # used ) from the top - level BER MetaOCaml . with detailed explanations These examples are meant to be executed (that is, #used) from the top-level BER M...
2ce913e9b28901167af05d2cb1f05c71194ca541e32496a9943ce5d4c7e91f96
nasser/magic
dispatch.clj
dispatch.clj -- part of the pretty printer for Clojure 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 so...
null
https://raw.githubusercontent.com/nasser/magic/7a46f773bc7785c82d9527d52c1a8c28ac16e195/src/stdlib/clojure/pprint/dispatch.clj
clojure
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 the terms of this license. You must not remove ...
dispatch.clj -- part of the pretty printer for Clojure Copyright ( c ) . All rights reserved . Author : April 3 , 2009 (in-ns 'clojure.pprint) (defn- use-method "Installs a function as a new method of multimethod associated with dispatch-value. " [^clojure.lang.MultiFn multifn dispatch-val func]...
bd3fa56a77982b2ab131eeb38ff18058eb55c1da9d1bb15b4615cd0591476d09
axellang/axel
FileSystem.hs
# LANGUAGE TemplateHaskell # module Axel.Eff.FileSystem where import Axel.Prelude import Axel.Utils.FilePath ((</>)) import Control.Monad (forM) import qualified Data.Text as T import qualified Data.Text.IO as T import Effectful ((:>)) import qualified Effectful as Eff import qualified Effectful.Dispatch.Dynamic ...
null
https://raw.githubusercontent.com/axellang/axel/8da784ae24406d4328e111b3db13f64dc943f738/src/Axel/Eff/FileSystem.hs
haskell
Adapted from -case-study-a-library-for-searching-the-filesystem.html.
# LANGUAGE TemplateHaskell # module Axel.Eff.FileSystem where import Axel.Prelude import Axel.Utils.FilePath ((</>)) import Control.Monad (forM) import qualified Data.Text as T import qualified Data.Text.IO as T import Effectful ((:>)) import qualified Effectful as Eff import qualified Effectful.Dispatch.Dynamic ...
f399f851e3380c351d669a275b4f56287d8a03e9ed8dd87f6fc803c537fbb41d
futurice/haskell-mega-repo
Common.hs
{-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TupleSections # -- | Common integrations requests. module Futurice.Integrations.Common ( -- * Date beginningOfCurrMonth, beginningOfPrevMonth, endOfPrevMonth, beginningOfPrev2Month, previousFriday, -- * FUM...
null
https://raw.githubusercontent.com/futurice/haskell-mega-repo/95fe8e33ad6426eb6e52a9c23db4aeffd443b3e5/futurice-integrations/src/Futurice/Integrations/Common.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE OverloadedStrings # | Common integrations requests. * Date * FUM * PlanMill * Okta * Classy lenses | | | | | | Get all members of the organisation. detailed planmill users workaround for some data is present in users output but not in per-user | Get in...
# LANGUAGE TupleSections # module Futurice.Integrations.Common ( beginningOfCurrMonth, beginningOfPrevMonth, endOfPrevMonth, beginningOfPrev2Month, previousFriday, fumEmployeeList, githubOrganisationMembers, personioPlanmillMap, personioPlanmillMap', planmillEmployee, pl...
0c8e7261a9daaa1db78dfd3abe6e66569997b770fee5eb67d5a4e04c56a9dfce
kronkltd/jiksnu
feed_subscription.clj
(ns jiksnu.modules.core.model.feed-subscription (:require [jiksnu.modules.core.db :as db] [jiksnu.modules.core.model :as model] [jiksnu.modules.core.templates.model :as templates.model] [jiksnu.modules.core.validators :as vc] [monger.collection :as mc] [vali...
null
https://raw.githubusercontent.com/kronkltd/jiksnu/8c91e9b1fddcc0224b028e573f7c3ca2f227e516/src/jiksnu/modules/core/model/feed_subscription.clj
clojure
(ns jiksnu.modules.core.model.feed-subscription (:require [jiksnu.modules.core.db :as db] [jiksnu.modules.core.model :as model] [jiksnu.modules.core.templates.model :as templates.model] [jiksnu.modules.core.validators :as vc] [monger.collection :as mc] [vali...
cb14c77dd81cf87f0daad9696f820b928cbf2edf4776cc809bc6170ee7ff481f
xldenis/MGC
Internal.hs
module MGC.Parser.Internal where import MGC.Parser.Type import MGC.Parser.Expression
null
https://raw.githubusercontent.com/xldenis/MGC/caeb2d72d16fbbefeb5104d7133c537fea66ba21/src/MGC/Parser/Internal.hs
haskell
module MGC.Parser.Internal where import MGC.Parser.Type import MGC.Parser.Expression
8270be737f68fde452c743d514b7ecc5f9ea7a4888793642c11f0445a0402dc2
jacekschae/learn-reitit-course-files
server.clj
(ns cheffy.server (:require [reitit.ring :as ring] [ring.adapter.jetty :as jetty] [integrant.core :as ig] [environ.core :refer [env]] [cheffy.router :as router] [next.jdbc :as jdbc] [next.jdbc.connection :as njc]) (:import (com.zaxxer.hikari Hi...
null
https://raw.githubusercontent.com/jacekschae/learn-reitit-course-files/c13a8eb622a371ad719d3d9023f1b4eff9392e4c/increments/59-deploy/src/cheffy/server.clj
clojure
(ns cheffy.server (:require [reitit.ring :as ring] [ring.adapter.jetty :as jetty] [integrant.core :as ig] [environ.core :refer [env]] [cheffy.router :as router] [next.jdbc :as jdbc] [next.jdbc.connection :as njc]) (:import (com.zaxxer.hikari Hi...
753628609ad4075f6b3b6541143e9c6a34a84a8e625c6287076a9d24905bdfb3
mpickering/apply-refact
Naming2.hs
data No = a :::: b
null
https://raw.githubusercontent.com/mpickering/apply-refact/a4343ea0f4f9d8c2e16d6b16b9068f321ba4f272/tests/examples/Naming2.hs
haskell
data No = a :::: b
69bf6cfcc20ea181243636f5865929e6a8537741805642c6e00d92050aaa1c4f
Decentralized-Pictures/T4L3NT
client_proto_programs_commands.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > Copyright ( c...
null
https://raw.githubusercontent.com/Decentralized-Pictures/T4L3NT/6d4d3edb2d73575384282ad5a633518cba3d29e3/src/proto_008_PtEdo2Zk/lib_client_commands/client_proto_programs_commands.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > Copyright ( c ) 2019 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 " , WITH...
30c1daefd7af982c920ac6a8e24e1eb239c0aa221b3469310012822cd4931df6
mariaschett/ppltr
main.ml
Copyright 2020 and 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 distr...
null
https://raw.githubusercontent.com/mariaschett/ppltr/67f45f9e329800e6c39094d7c3c3af8d168638da/main.ml
ocaml
Copyright 2020 and 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 distr...
c00fd1aa202a2ae45b74d8685a38c312452341d2830a1c6d6033f6218686dd48
emqx/emqx
emqx_statsd_api.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 - 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/969cbecf91cd71f3f4a0d83f6fa4a9f45329645e/apps/emqx_statsd/src/emqx_statsd_api.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 ) 2020 - 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_statsd_api). -behaviour(minirest_api). -include("emqx_statsd.hrl"). -include_lib...
18c037fa89d11be998929834099df6749143c729b5219fa4a4ba73088a39941c
urv/fixhs
FIX40.hs
-- Module : Data.FIX.Spec.FIX40 -- License : LGPL-2.1 module Data.FIX.Spec.FIX40 ( fix40 ) where import qualified Data.ByteString.Char8 as C import qualified Data.LookupTable as LT ( new, insert ) import Data.FIX.Message import Data.FIX.Parser import Data.Functor ( (<$>) ) import Data.FIX.Arbitrary import Test.Quic...
null
https://raw.githubusercontent.com/urv/fixhs/31e47a50377f382d3e8de694e454c2c949117779/src/Data/FIX/Spec/FIX40.hs
haskell
Module : Data.FIX.Spec.FIX40 License : LGPL-2.1
module Data.FIX.Spec.FIX40 ( fix40 ) where import qualified Data.ByteString.Char8 as C import qualified Data.LookupTable as LT ( new, insert ) import Data.FIX.Message import Data.FIX.Parser import Data.Functor ( (<$>) ) import Data.FIX.Arbitrary import Test.QuickCheck ( arbitrary ) tAccount :: FIXTag tAccount = FIX...
d1f6bfc486dfbfd8ab6d7a13fbf5f6ac94d8fcfa585fa9d1b1af24ad9e5f0669
gchrupala/morfette
IntModel.hs
module GramLab.Perceptron.IntModel ( IntModel , train , evalAll , TrainSettings(..) ) where import qualified Data.IntSet as IntSet import qualified Data.IntMap as IntMap import qu...
null
https://raw.githubusercontent.com/gchrupala/morfette/be40676c975d660bbb893953d354168506069862/src/GramLab/Perceptron/IntModel.hs
haskell
module GramLab.Perceptron.IntModel ( IntModel , train , evalAll , TrainSettings(..) ) where import qualified Data.IntSet as IntSet import qualified Data.IntMap as IntMap import qu...
720ce5c1924978472d604f86dc50e9cfe430e3423f18385dd6b0f01d4f468e5c
Liqwid-Labs/agora
PrivilegeEscalate.hs
module Sample.Proposal.PrivilegeEscalate ( Operation (..), privilegeEscalate, Validity (..), mkTestTree, ) where import Agora.Proposal ( ProposalDatum (..), ProposalId (ProposalId), ProposalRedeemer (UnlockStake, Vote), ProposalStatus (VotingReady), ProposalVotes (ProposalVotes), ResultTag (ResultT...
null
https://raw.githubusercontent.com/Liqwid-Labs/agora/00c10198e86800aa59c107043e7961ee32d987a2/agora-specs/Sample/Proposal/PrivilegeEscalate.hs
haskell
doesn't matter - -
module Sample.Proposal.PrivilegeEscalate ( Operation (..), privilegeEscalate, Validity (..), mkTestTree, ) where import Agora.Proposal ( ProposalDatum (..), ProposalId (ProposalId), ProposalRedeemer (UnlockStake, Vote), ProposalStatus (VotingReady), ProposalVotes (ProposalVotes), ResultTag (ResultT...
953c093ce1ff0b0c5c1e27f552bbbfebf9f7c4e369dc820e4692220e97a80792
ghc/ghc
T22471.hs
# OPTIONS_GHC -Wno - inline - rule - shadowing # -- Otherwise we get stuff about (+) may inline, which is -- true enough, but not the point of this test module T22471 where foo :: (forall a. [a] -> Int) -> Int foo len = len [1,2,3] + len "abc" # RULES " foo " forall ( f : : forall a. [ a ] - > Int ) . ...
null
https://raw.githubusercontent.com/ghc/ghc/e8f2b80da6429af05d5e8ef1a0937aae8c22f819/testsuite/tests/simplCore/should_compile/T22471.hs
haskell
Otherwise we get stuff about (+) may inline, which is true enough, but not the point of this test
# OPTIONS_GHC -Wno - inline - rule - shadowing # module T22471 where foo :: (forall a. [a] -> Int) -> Int foo len = len [1,2,3] + len "abc" # RULES " foo " forall ( f : : forall a. [ a ] - > Int ) . foo ( \xs - > 1 + f xs ) = 2 + foo f # foo (\xs -> 1 + f xs) = 2 + foo f #-}
9ef70f3c6fb430f0068454ab4eee451411cf0f46f51957f37ad198209f808f2d
ragkousism/Guix-on-Hurd
install.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2013 , 2014 , 2015 , 2016 < > Copyright © 2016 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU 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 Sof...
null
https://raw.githubusercontent.com/ragkousism/Guix-on-Hurd/e951bb2c0c4961dc6ac2bda8f331b9c4cee0da95/gnu/build/install.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2013 , 2014 , 2015 , 2016 < > Copyright © 2016 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (gnu build install) #:use-module (guix build utils...
ed5de95e4c196289e54b1252dfadb1e3f21970833827c17d0b297e0bba02ed52
haskell/play-haskell
Utils.hs
# LANGUAGE LambdaCase # module Snap.Server.Utils where import qualified Data.Aeson as J import Data.ByteString (ByteString) import qualified Data.ByteString as BS import qualified Data.ByteString.Char8 as Char8 import Data.String (fromString) import Snap.Core hiding (path) import System.FilePath ((</>)) import System....
null
https://raw.githubusercontent.com/haskell/play-haskell/a8ae8e62f9b6867b72ea94b47c837408b9a867f7/snap-server-utils/src/Snap/Server/Utils.hs
haskell
| Suggestion: overload this to `staticFile` in your local project by partially applying this to the path of your static files directory. If the request body is greater than `sizelimit`, early-exits with HTTP code | Same as `getRequestBodyEarlyExit`, except the body is also JSON-decoded.
# LANGUAGE LambdaCase # module Snap.Server.Utils where import qualified Data.Aeson as J import Data.ByteString (ByteString) import qualified Data.ByteString as BS import qualified Data.ByteString.Char8 as Char8 import Data.String (fromString) import Snap.Core hiding (path) import System.FilePath ((</>)) import System....
fb0d7ec3b953b954dae2292ec13fc1b3b0c3f954a6838dbb6d1f77edbeff3b50
bwo/monads
core.clj
(ns monads.core (:require [monads.mdo :as mdo] [monads.types :as types] [clojure.algo.generic.functor :as f] [clojure.set :as s]) (:use [monads.types :only [if-instance]]) (:import [monads.types Return Returned Bind Pair Mplus])) (set! *warn-on-reflection* true) (defn return ...
null
https://raw.githubusercontent.com/bwo/monads/a3fdfa1414dc6efae39ea289022f14449119da89/src/monads/core.clj
clojure
the above could also have been: monadplus monadfail monadtrans monadstate monadwriter monaderror
(ns monads.core (:require [monads.mdo :as mdo] [monads.types :as types] [clojure.algo.generic.functor :as f] [clojure.set :as s]) (:use [monads.types :only [if-instance]]) (:import [monads.types Return Returned Bind Pair Mplus])) (set! *warn-on-reflection* true) (defn return ...
cef6361a6aff483ff34914f3a6db3f8dd8b59c73323280e0bd7dea6fa739fafd
evrim/core-server
oauth-v1.lisp
;; ------------------------------------------------------------------------- ;; OAuth 1.0 Protocol Implementation aka RFC 5849 ;; ------------------------------------------------------------------------- ;; Date : Aug 2012 Author : > (in-package :core-server) ;; OAuth 1.0 Flow: ;; -auth-flow.html ;; Similar t...
null
https://raw.githubusercontent.com/evrim/core-server/200ea8151d2f8d81b593d605b183a9cddae1e82d/src/clients/oauth-v1.lisp
lisp
------------------------------------------------------------------------- OAuth 1.0 Protocol Implementation aka RFC 5849 ------------------------------------------------------------------------- OAuth 1.0 Flow: -auth-flow.html Similar to openID spec with signatures, assumed to be CCA-2 compliant. -------------...
Date : Aug 2012 Author : > (in-package :core-server) (defclass+ <oauth1:request-token () ((token :host local :initform (error "Provide :token") :accessor <oauth1:request-token.token) (token-secret :host local :initform (error "Provide :token-secret") :accessor <oauth1:request-token.token-secret) ...
fdc315ead83870dab9096d82421b0fc10fdd7f67d29753dbd5435ecfcd41c263
tweag/lagoon
FriendlyException.hs
Copyright 2020 Pfizer Inc. 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 distributed under th...
null
https://raw.githubusercontent.com/tweag/lagoon/2ef0440db810f4f45dbed160b369daf41d92bfa4/src/interface/src/Lagoon/Interface/FriendlyException.hs
haskell
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permiss...
Copyright 2020 Pfizer Inc. Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , # LANGUAGE UndecidableInstances # module Lagoon.Interface.FriendlyException (FriendlyException(..)) where import Control.Exception ( non - Ha...
ea2b5b896a970161076bfc68b5c8c7deedc2695c44ce32963cbe410c4612c36d
alt-romes/slfl
list2.hs
data List a = Nil | Cons (a * List a); synth insert :: (a -o List a -o List a);
null
https://raw.githubusercontent.com/alt-romes/slfl/4956fcce8ff2ca7622799fe0715c118b568b74eb/STLLC/bench/list2.hs
haskell
data List a = Nil | Cons (a * List a); synth insert :: (a -o List a -o List a);
d7878b1d47529a610041593f2d099bc262d693adf40431048112747736ea15b1
gsakkas/rite
20060321-15:34:36-8c2ed57505ebdb3c66f90b66ae3e8b87.seminal.ml
type exp = Int of int | Var of string | Plus of exp * exp | Times of exp * exp type stmt = Skip | Assign of string * exp | Seq of stmt * stmt | If of exp * stmt * stmt | While of exp * stmt type heap = heap_elt list # # # # # # # # # # # # # # # # # # # # # # # # # # # # #...
null
https://raw.githubusercontent.com/gsakkas/rite/958a0ad2460e15734447bc07bd181f5d35956d3b/features/data/seminal/20060321-15%3A34%3A36-8c2ed57505ebdb3c66f90b66ae3e8b87.seminal.ml
ocaml
type exp = Int of int | Var of string | Plus of exp * exp | Times of exp * exp type stmt = Skip | Assign of string * exp | Seq of stmt * stmt | If of exp * stmt * stmt | While of exp * stmt type heap = heap_elt list # # # # # # # # # # # # # # # # # # # # # # # # # # # # #...
143ab3ea69b8abfefe23f5012899ab80b49082e27188ed8dc2ae016485cdc07c
xmonad/xmonad-contrib
ResizableTile.hs
# LANGUAGE FlexibleInstances , MultiParamTypeClasses , TupleSections # ----------------------------------------------------------------------------- -- | -- Module : XMonad.Layout.ResizableTile -- Description : More useful tiled layout that allows you to change a width\/height of window. Copyright : ( c ...
null
https://raw.githubusercontent.com/xmonad/xmonad-contrib/571d017b8259340971db1736eedc992a54e9022c/XMonad/Layout/ResizableTile.hs
haskell
--------------------------------------------------------------------------- | Module : XMonad.Layout.ResizableTile Description : More useful tiled layout that allows you to change a width\/height of window. License : BSD-style (see LICENSE) Stability : unstable Portability : unportable More use...
# LANGUAGE FlexibleInstances , MultiParamTypeClasses , TupleSections # Copyright : ( c ) < > Maintainer : < > module XMonad.Layout.ResizableTile ( ResizableTall(..), MirrorResize(..) ) where import XMonad hiding (tile, splitVer...
41a2cb4de50ec933b6130e8d615a0d8db065a1f2bc0f6d2d3c61cad1a5e96053
laurencer/confluence-sync
IsolatedBenchmark.hs
-- -- Benchmark isolated code fragments -- Copyright © 2012 - 2014 Operational Dynamics Consulting , Pty Ltd -- -- The code in this file, and the program it is a part of, is made -- available to you by its authors as open source software: you can redistribute it and/or modify it under a BSD licence . -- {-# LANGUA...
null
https://raw.githubusercontent.com/laurencer/confluence-sync/442fdbc84fe07471f323af80d2d4580026f8d9e8/vendor/http-streams/tests/IsolatedBenchmark.hs
haskell
Benchmark isolated code fragments The code in this file, and the program it is a part of, is made available to you by its authors as open source software: you can # LANGUAGE OverloadedStrings # # OPTIONS -fno-warn-unused-do-bind # # OPTIONS -fno-warn-unused-imports # Otherwise redundent imports, but useful for...
Copyright © 2012 - 2014 Operational Dynamics Consulting , Pty Ltd redistribute it and/or modify it under a BSD licence . import qualified Blaze.ByteString.Builder as Builder (copyByteString, copyByteString, ...
6016e5836a02a6018ef250092c29d93c32b2c69b3105ecc1e22a5f9a7ae82ce3
patrikja/AFPcourse
DSL.hs
{-# LANGUAGE GADTs #-} module DSL where -- data C -- To be defined -- Primitive operations inverter ( ` ` not''-gate ) ` ` and''-gate with zero or more inputs and one output delay the output one step -- Derived operations ` ` or''-gate with zero or more inputs and one output xor :: C -> C -> C -- binary `...
null
https://raw.githubusercontent.com/patrikja/AFPcourse/1a079ae80ba2dbb36f3f79f0fc96a502c0f670b6/exam/2014-03/DSL.hs
haskell
# LANGUAGE GADTs # data C -- To be defined Primitive operations Derived operations binary ``xor''-gate Run functions show :: C -> String -- Not asked for, but could be derived. Here is a selection of the properties it should satisfy: abstract. toggle = delay (xor true toggle) ---------------------------------...
module DSL where inverter ( ` ` not''-gate ) ` ` and''-gate with zero or more inputs and one output delay the output one step ` ` or''-gate with zero or more inputs and one output false, true, toggle :: C run :: C -> [Bool] prop_inv i c = run (inv c) !! i /= run c !! i prop_delay0 c = not (run...
0de2ad1da0de2a519d788cc159dc29dffe702b8484cb62b0ebdac3feb8241c86
tonymorris/geo-osm
BoundsL.hs
| Values with a @bounds@ accessor which is either empty , a @Bound@ or a @Bounds@. module Data.Geo.OSM.Lens.BoundsL where import Control.Lens.Lens import Data.Geo.OSM.BoundOption class BoundsL a where boundsL :: Lens' a BoundOption
null
https://raw.githubusercontent.com/tonymorris/geo-osm/776542be2fd30a05f0f9e867128eca5ad5d66bec/src/Data/Geo/OSM/Lens/BoundsL.hs
haskell
| Values with a @bounds@ accessor which is either empty , a @Bound@ or a @Bounds@. module Data.Geo.OSM.Lens.BoundsL where import Control.Lens.Lens import Data.Geo.OSM.BoundOption class BoundsL a where boundsL :: Lens' a BoundOption
7d26a2838a926e7289d5dda2011c7ffd42007876dba158f49b39423dffe07504
haskell/cabal
cabal.test.hs
import Test.Cabal.Prelude ` default - extensions ` need ≥1.10 . main = cabalTest $ fails $ cabal "check" []
null
https://raw.githubusercontent.com/haskell/cabal/1cfe7c4c7257aa7ae450209d34b4a359e6703a10/cabal-testsuite/PackageTests/Check/ConfiguredPackage/CabalVersion/DefaultExtension/cabal.test.hs
haskell
import Test.Cabal.Prelude ` default - extensions ` need ≥1.10 . main = cabalTest $ fails $ cabal "check" []
9d8308a18709ad18557ea4ecca20fdc6bff5720aae012be774dfad912683a977
brendanhay/gogol
List.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # {-# LANGUAGE St...
null
https://raw.githubusercontent.com/brendanhay/gogol/fffd4d98a1996d0ffd4cf64545c5e8af9c976cda/lib/services/gogol-storage/gen/Gogol/Storage/Objects/List.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated Retrieves a list of objects matching the criteria. /See:/ </ Cloud Storage JSON API Reference> for @storage.objects.list@. * Resource ** Constructing a Request 'StorageObjectsList' request conforms to. | Retrieves a list of ...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators...
dc69c5278aa030f13e60aecfc1e06026b75ee52884e550e59634b93109165985
jkk/cantata
protocols.clj
(ns cantata.protocols "Protocols and implementations for data type parsing and marshalling" (:require [clojure.instant :as instant]) (:import org.joda.time.DateTimeZone org.joda.time.LocalDate org.joda.time.LocalTime org.joda.time.DateTime)) (set! *warn-on-reflection* true) (def...
null
https://raw.githubusercontent.com/jkk/cantata/12e66b9d839674cc45a04a1ebed34a91a2e50e44/src/cantata/protocols.clj
clojure
NOT using str here byte arrays byte arrays NOT using str here byte arrays byte arrays For data-source-wide marshalling/unmarshalling. Implemented as protocols for performance
(ns cantata.protocols "Protocols and implementations for data type parsing and marshalling" (:require [clojure.instant :as instant]) (:import org.joda.time.DateTimeZone org.joda.time.LocalDate org.joda.time.LocalTime org.joda.time.DateTime)) (set! *warn-on-reflection* true) (def...
c1e59662e0057371139137699aa5c3671fba2a6aeb3f5fca44332aed783fe7e5
dinosaure/cri
ttls.ml
include Tls_mirage.Make (Socket) type endpoint = Tls.Config.client * [ `host ] Domain_name.t option * Unix.sockaddr let pp_sockaddr ppf = function | Unix.ADDR_UNIX v -> Fmt.pf ppf "<unix:%s>" v | Unix.ADDR_INET (v, p) -> Fmt.pf ppf "%s:%d" (Unix.string_of_inet_addr v) p let connect (tls, host, sockaddr) = let ...
null
https://raw.githubusercontent.com/dinosaure/cri/4ae4bc6e50ce4d4771b758b34aa4e55d7b0a36d7/bin/ttls.ml
ocaml
include Tls_mirage.Make (Socket) type endpoint = Tls.Config.client * [ `host ] Domain_name.t option * Unix.sockaddr let pp_sockaddr ppf = function | Unix.ADDR_UNIX v -> Fmt.pf ppf "<unix:%s>" v | Unix.ADDR_INET (v, p) -> Fmt.pf ppf "%s:%d" (Unix.string_of_inet_addr v) p let connect (tls, host, sockaddr) = let ...
78662c44494dc38be1c272507b4f4779858bb745c5b3fb3011aa3cf037b3bfb6
arcadia-unity/catcon
core_deftype.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 ; ...
null
https://raw.githubusercontent.com/arcadia-unity/catcon/6c69f424d3c14639ff11a3ea7d9da6aa81328f8a/Arcadia/Internal/clojure/core_deftype.clj
clojure
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 the terms of this license. You must not remove ...
Copyright ( c ) . All rights reserved . (in-ns 'clojure.core) (defn namespace-munge "Convert a Clojure namespace name to a legal Java package name." {:added "1.2"} [ns] (defmacro definterface "Creates a new Java interface with the given name and method sigs. The method return types and parameter t...
184cdebcaba0d8163fc5f98531e692081fe71697ed33214a99b30bb9a91ecc0b
sweirich/pi-forall
Syntax.hs
{- pi-forall language -} -- | The abstract syntax of the simple dependently typed language See comment at the top of ' Parser ' for the concrete syntax of this language module Syntax where import Data.Maybe (fromMaybe) import Data.Set (Set) import Data.Set qualified as Set import Data.Typeable (Typeable) import GHC...
null
https://raw.githubusercontent.com/sweirich/pi-forall/69419e84d0495336ca133c1c1298b88b57cd62fa/version2/src/Syntax.hs
haskell
pi-forall language | The abstract syntax of the simple dependently typed language --------------------------------------- * Names --------------------------------------- automatically generate free variable, substitution, and alpha-equality function. | module names --------------------------------------- * Core...
See comment at the top of ' Parser ' for the concrete syntax of this language module Syntax where import Data.Maybe (fromMaybe) import Data.Set (Set) import Data.Set qualified as Set import Data.Typeable (Typeable) import GHC.Generics (Generic,from) import Text.ParserCombinators.Parsec.Pos (SourcePos, initialPos, n...
64f8fff2f9453f32ff93a156b376bdc00df7098143727776869d916c97f982bf
Practical-Formal-Methods/adiff
TypeCheck.hs
module Main where import Data.List import Language.C import Language.C.Analysis.AstAnalysis import Language.C.Analysis.TravMonad import Language.C.System.GCC import System.Environment import System.IO import System.Exit processFile :: CLanguage -> [String] -> FilePath -> IO () processFile lang cppOpts file = do hPu...
null
https://raw.githubusercontent.com/Practical-Formal-Methods/adiff/c18872faf3e31572437686d766f9972e00274588/language-c-extensible/examples/TypeCheck.hs
haskell
module Main where import Data.List import Language.C import Language.C.Analysis.AstAnalysis import Language.C.Analysis.TravMonad import Language.C.System.GCC import System.Environment import System.IO import System.Exit processFile :: CLanguage -> [String] -> FilePath -> IO () processFile lang cppOpts file = do hPu...
dbcea5164c7df9b80f74ac0051d9c4a010b17dae2637b5f2dd356da0675befbf
olivermg/owlisp
sequences.lisp
(in-package :owlisp) (export '(duplicate-elements interleave-lists lookup-alist-value make-keyvalue-map insert-into-keyvalue-map lookup-in-keyvalue-map update-in-keyvalue-map delete-from-keyvalue-map flatten)) (defun duplicate-elements (sequence) (reduce (lambda (sum e) (append sum...
null
https://raw.githubusercontent.com/olivermg/owlisp/dbf6d1d9e813f16124c170a0e1bfe155752e017b/src/helper/sequences.lisp
lisp
(in-package :owlisp) (export '(duplicate-elements interleave-lists lookup-alist-value make-keyvalue-map insert-into-keyvalue-map lookup-in-keyvalue-map update-in-keyvalue-map delete-from-keyvalue-map flatten)) (defun duplicate-elements (sequence) (reduce (lambda (sum e) (append sum...
b85ec8582ebff9b8317f944ce1d0bea789471a07ede659e0b2cddf4c18b30959
andrei-dubovik/centrality
socks.lisp
Copyright ( c ) 2020 < > SOCKS5 interface (in-package :centrality) ;; Define SOCKS errors (define-condition socks-general-error (error) ()) (define-condition socks-auth-error (error) ()) (define-condition socks-not-allowed (error) ()) (define-condition socks-network-unreachable (error) ()) (define-condition s...
null
https://raw.githubusercontent.com/andrei-dubovik/centrality/b2f86bc045fe3712b543ae28843127781ffee80f/src/socks.lisp
lisp
Define SOCKS errors encryption.lisp, but those utility functions could be be improved TODO: add support for IPv6 addresses (here and elsewhere) Negotiate authentication method (clear and username/password authentication are supported) Request connection
Copyright ( c ) 2020 < > SOCKS5 interface (in-package :centrality) (define-condition socks-general-error (error) ()) (define-condition socks-auth-error (error) ()) (define-condition socks-not-allowed (error) ()) (define-condition socks-network-unreachable (error) ()) (define-condition socks-host-unreachable (...
c6d78565b638f224947aa36d596a3e4e4573cd978659dbe7f2f78a2375b7076f
xapi-project/xen-api
cli_util.ml
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * 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 ; version 2.1 only . with the special * exception on linking describe...
null
https://raw.githubusercontent.com/xapi-project/xen-api/5ca8c6c4a18af8d8434f8dd1f6198f34ad196921/ocaml/xapi-cli-server/cli_util.ml
ocaml
* * @group Command-Line Interface (CLI) * call [callback task_record] on every update to the task, until it completes or fails Need to check once after registering to avoid a race * Use the event system to wait for a specific task to complete (succeed, failed or be cancelled) Need to associate the operation with...
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * 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 ; version 2.1 only . with the special * exception on linking describe...
a41c2dc3be7729325999a6d2c5ba2ea39d7e35b2746425f01cc123a07a09e8a3
tokiwoousaka/takahashi
Util.hs
{-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # module Control.Monad.Takahashi.Util where import Control.Monad.State import Control.Monad.Skeleton import Data.List(isPrefixOf) stateSandbox :: MonadState s m => m a -> m a stateSandbox f = do tmp <- get res <- f put tmp return res sub :: Eq a => [...
null
https://raw.githubusercontent.com/tokiwoousaka/takahashi/7c7bd5fcb1fad26c83f225199a29138f6f3cde94/src/Control/Monad/Takahashi/Util.hs
haskell
# LANGUAGE RankNTypes #
# LANGUAGE ScopedTypeVariables # module Control.Monad.Takahashi.Util where import Control.Monad.State import Control.Monad.Skeleton import Data.List(isPrefixOf) stateSandbox :: MonadState s m => m a -> m a stateSandbox f = do tmp <- get res <- f put tmp return res sub :: Eq a => [a] -> [a] -> [a] -> [a] sub ...
d2f1340e0f67e87c1dbaa11ce448775da790101053f231c8192a5b512359a83f
lalzy/Lazyfoo-CL-SDL2
main.lisp
Tutorial 15 : Rotation and Flipping (defpackage #:tutorial-15 (:use #:cl #:iterate) (:export :main)) (in-package #:tutorial-15) (defun file-path (path file) (let ((path-end (aref path (1- (length path))))) (if (or (string-equal path-end #\\) (string-equal path-end #\/)) (concatenate 'string path file) ...
null
https://raw.githubusercontent.com/lalzy/Lazyfoo-CL-SDL2/7bf0d255112e354672686d8ad3d6772ebde34c51/tutorial-15/main.lisp
lisp
Prevent slime from hanging if crashing
Tutorial 15 : Rotation and Flipping (defpackage #:tutorial-15 (:use #:cl #:iterate) (:export :main)) (in-package #:tutorial-15) (defun file-path (path file) (let ((path-end (aref path (1- (length path))))) (if (or (string-equal path-end #\\) (string-equal path-end #\/)) (concatenate 'string path file) ...
dd1955c7a02b99fbbb8bb64c429e55021aee42cde3b12c7cd7b7f2a59fb12443
ahushh/monaba
Config.hs
module Handler.Admin.Config where import Import import Handler.Admin.Modlog (addModlogEntry) import qualified Data.Text as T (intercalate, splitOn) ------------------------------------------------------------------------------------------------------------- -- Configuration -----------------------...
null
https://raw.githubusercontent.com/ahushh/monaba/9fbfffcc970da0ebaf2d5df716c3bb075b1c761a/monaba/src/Handler/Admin/Config.hs
haskell
----------------------------------------------------------------------------------------------------------- Configuration ----------------------------------------------------------------------------------------------------------- ^ Reply delay ^ New thread delay ^ Board categories separated by comma ^ Board for ne...
module Handler.Admin.Config where import Import import Handler.Admin.Modlog (addModlogEntry) import qualified Data.Text as T (intercalate, splitOn) configForm :: Config -> Html -> ^ ^ entries per page ) , Widg...
cd0abad6b20e18115a51972d001cb635287d8aac6b31d81af178f3c5bd150fc4
facebook/pyre-check
serverCommand.ml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/pyre-check/b01273d38792dc2b92ea6b2aa37668c4e86651fb/source/command/serverCommand.ml
ocaml
TODO(T132410158) Add a module-level doc comment. An empty message signals that server socket has been created. Show start up notification.
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
2fa7dc2d5b933a3ebc08b98b9031f66f328fd9f9a2f9dc27b90da954092eaf35
cqerl/cqerl
cqerl_auth_plain_handler.erl
-module(cqerl_auth_plain_handler). -behaviour(cqerl_auth_handler). -define(SASL_PASSWORD_AUTH, <<"org.apache.cassandra.auth.PasswordAuthenticator">>). -export([auth_init/3, auth_handle_challenge/2, auth_handle_success/2, auth_handle_error/2]). -export([encode_plain_credentials/1]). @doc Encodes a proplist structur...
null
https://raw.githubusercontent.com/cqerl/cqerl/8ae26d764fda006d32c0851540fc565c31f25eed/src/cqerl_auth_plain_handler.erl
erlang
-module(cqerl_auth_plain_handler). -behaviour(cqerl_auth_handler). -define(SASL_PASSWORD_AUTH, <<"org.apache.cassandra.auth.PasswordAuthenticator">>). -export([auth_init/3, auth_handle_challenge/2, auth_handle_success/2, auth_handle_error/2]). -export([encode_plain_credentials/1]). @doc Encodes a proplist structur...
4c1f76f9dbb1c1d38e7906858ffafb178c280b86a72bc02379119597204f12b4
hsyl20/haskus-system
Reboot.hs
-- | Linux 'reboot' syscall module Haskus.System.Linux.Internals.Reboot ( PowerCommand(..) , powerCommandNumber ) where import Haskus.Format.Binary.Word (Word64) -- ============================================================= From linux / include / uapi / linux / -- ===================================...
null
https://raw.githubusercontent.com/hsyl20/haskus-system/2f389c6ecae5b0180b464ddef51e36f6e567d690/haskus-system/src/lib/Haskus/System/Linux/Internals/Reboot.hs
haskell
| Linux 'reboot' syscall ============================================================= ============================================================= | Commands supported by the reboot syscall ^ Stop OS and give system control to ROM monitor, if any. ^ Restart system using a previously loaded Linux kernel ^ Stop ...
module Haskus.System.Linux.Internals.Reboot ( PowerCommand(..) , powerCommandNumber ) where import Haskus.Format.Binary.Word (Word64) From linux / include / uapi / linux / data PowerCommand ^ Ctrl - Alt - Del sequence sends SIGINT to init task . ^ Ctrl - Alt - Del sequence causes RESTART command ....
72469af0dc8ace9db17bf279eb27b8f61821ec870234d54a97ad029b1f63434c
tanders/cluster-engine
export.lisp
(in-package :cluster-engine) Cluster Engine ClusterEngine Rules->Cluster ;; domain, debug and more metric-domain R-predefine-meter Stop-rule-time Stop-rule-index CLUSTERdebug preferences rules one engine R-rhythms-one-voice R-index-rhythms-one-voice R-pitches-one-voice R-index-pitches-one-voice R-time-...
null
https://raw.githubusercontent.com/tanders/cluster-engine/064ad4fd107f8d9a3dfcaf260524c2ab034c6d3f/sources/export.lisp
lisp
domain, debug and more utilities
(in-package :cluster-engine) Cluster Engine ClusterEngine Rules->Cluster metric-domain R-predefine-meter Stop-rule-time Stop-rule-index CLUSTERdebug preferences rules one engine R-rhythms-one-voice R-index-rhythms-one-voice R-pitches-one-voice R-index-pitches-one-voice R-time-signatures R-index-time-signa...
7f0dabbf5a4855c1045e47676eb4503be7948d488f9112829c97de78c5c74647
owickstrom/gi-gtk-declarative
CSS.hs
{-# LANGUAGE OverloadedLabels #-} # LANGUAGE OverloadedLists # {-# LANGUAGE OverloadedStrings #-} module CSS where import Control.Concurrent.Async ( async ) import Control.Monad ( void ) import Data.ByteString ( ByteString ) import Data...
null
https://raw.githubusercontent.com/owickstrom/gi-gtk-declarative/205351a54698be7b583dd34d189a89470ee2b11b/examples/CSS.hs
haskell
# LANGUAGE OverloadedLabels # # LANGUAGE OverloadedStrings # Specific color classes: Set up screen and CSS provider Start main loop
# LANGUAGE OverloadedLists # module CSS where import Control.Concurrent.Async ( async ) import Control.Monad ( void ) import Data.ByteString ( ByteString ) import Data.Functor ( (<&>) ) import Data.Text ...
1e28af52a0b259f7d0336c600b5cd44e9928d9bee0862fc9fdfc8bb542cc15d7
racket/typed-racket
generalize-vectors.rkt
#lang typed/scheme should generalize to ( ) even though it only contains Nonnegative - Floats (vector-set! x 0 -2.0) (define y (make-vector 2 1.0)) (vector-set! y 0 -2.0) (define z #(1.0 2.0)) (ann z (Vectorof Float)) (define w (build-vector 3 (lambda: ((x : Integer)) (add1 x)))) (vector-set! w 0 -2)
null
https://raw.githubusercontent.com/racket/typed-racket/0236151e3b95d6d39276353cb5005197843e16e4/typed-racket-test/succeed/generalize-vectors.rkt
racket
#lang typed/scheme should generalize to ( ) even though it only contains Nonnegative - Floats (vector-set! x 0 -2.0) (define y (make-vector 2 1.0)) (vector-set! y 0 -2.0) (define z #(1.0 2.0)) (ann z (Vectorof Float)) (define w (build-vector 3 (lambda: ((x : Integer)) (add1 x)))) (vector-set! w 0 -2)
e67e099d5735bbc4b39c5484c21b99540ab5429da73d364711d20a372dd24f80
jeromesimeon/Galax
top_wsdl2xquery.mli
(***********************************************************************) (* *) (* GALAX *) (* XQuery Engine *) (* ...
null
https://raw.githubusercontent.com/jeromesimeon/Galax/bc565acf782c140291911d08c1c784c9ac09b432/toplevel/top_wsdl2xquery.mli
ocaml
********************************************************************* GALAX XQuery Engine ...
Copyright 2001 - 2007 . $ Id$ val go: Top_args.gargs -> unit
7511f6d87e39951aee61727206ebce6eda5359208490f201e81fc2b1e92c93aa
plumatic/grab-bag
middleware.clj
(ns web.middleware "Some default middlewares that are common to multiple services" (:use plumbing.core) (:require [clojure.java.io :as io] [ring.middleware.params :as params] [plumbing.auth :as auth] [plumbing.json :as json] [plumbing.logging :as log] [plumbing.timing :as timing] [web.client ...
null
https://raw.githubusercontent.com/plumatic/grab-bag/a15e943322fbbf6f00790ce5614ba6f90de1a9b5/lib/web/src/web/middleware.clj
clojure
Error handling middleware Supporting head requests Admin middleware Simple json middleware handle null properly Outermost middlewares to parse body, catch errors
(ns web.middleware "Some default middlewares that are common to multiple services" (:use plumbing.core) (:require [clojure.java.io :as io] [ring.middleware.params :as params] [plumbing.auth :as auth] [plumbing.json :as json] [plumbing.logging :as log] [plumbing.timing :as timing] [web.client ...
7e6175e35c0eed3b7cce3335fa40f6ab482fd015a2b8b4b97fcc69f93aff28d9
xtdb/xtdb
jdbc.clj
(ns xtdb.jdbc (:require [clojure.java.data :as jd] [clojure.spec.alpha :as s] [clojure.string :as str] [juxt.clojars-mirrors.nextjdbc.v1v2v674.next.jdbc :as jdbc] [juxt.clojars-mirrors.nextjdbc.v1v2v674.next.jdbc.connection :as jdbcc] [juxt.clojars-mirrors.n...
null
https://raw.githubusercontent.com/xtdb/xtdb/d29ff33d2433b5b72a75bffa2d3ac7ffad5bb6ea/modules/jdbc/src/xtdb/jdbc.clj
clojure
see #1603/#1707 T-SQL requires variables and stuff to parameterize the TOP, for simplicity fixing it.
(ns xtdb.jdbc (:require [clojure.java.data :as jd] [clojure.spec.alpha :as s] [clojure.string :as str] [juxt.clojars-mirrors.nextjdbc.v1v2v674.next.jdbc :as jdbc] [juxt.clojars-mirrors.nextjdbc.v1v2v674.next.jdbc.connection :as jdbcc] [juxt.clojars-mirrors.n...
28dcef00cf63960088e5f5819aaf9154d0f20967231468cb6383b8e2d85f08c8
RolfRolles/PandemicML
BitVector.ml
type specified = int type maximum = int exception BVIndexOutOfBounds of string * specified * maximum exception BVZeroSized of string let pzero = PL.Constant(PL.False) let pone = PL.Constant(PL.True) type t = { name: string; bits: PL.prop array; real: bool; } let tzero = { name = "@zero"; bits = [|pzero|]; r...
null
https://raw.githubusercontent.com/RolfRolles/PandemicML/9c31ecaf9c782dbbeb6cf502bc2a6730316d681e/SMT/Propositional%20Logic/BitVector.ml
ocaml
breal: true if it corresponds to a user-declared bitvector, false if it is the result of evaluating an anonymous subexpression
type specified = int type maximum = int exception BVIndexOutOfBounds of string * specified * maximum exception BVZeroSized of string let pzero = PL.Constant(PL.False) let pone = PL.Constant(PL.True) type t = { name: string; bits: PL.prop array; real: bool; } let tzero = { name = "@zero"; bits = [|pzero|]; r...
6224bead72ea5fd9e59eea95c10878927a9004c954351cad96a476249856f4cf
reanimate/reanimate
counter.hs
#!/usr/bin/env stack -- stack runghc --package reanimate module Main (main) where import Reanimate main :: IO () main = reanimate $ mkAnimation dur $ mkCircle . fromToS 0 (dur*60-1) where dur = 2
null
https://raw.githubusercontent.com/reanimate/reanimate/5ea023980ff7f488934d40593cc5069f5fd038b0/examples/counter.hs
haskell
stack runghc --package reanimate
#!/usr/bin/env stack module Main (main) where import Reanimate main :: IO () main = reanimate $ mkAnimation dur $ mkCircle . fromToS 0 (dur*60-1) where dur = 2
6f14a653ac530eb3053c985504b0eeb7786f45ada410ecb1d2d92b3371667e94
geophf/1HaskellADay
Exercise.hs
module Y2018.M05.D08.Exercise where - Okay , now that we have the new articles downloaded from the REST endpoint and the ArticleMetaData context from the database , let 's do some triage ! So , just like with the ArticleMetaData , we have to generalize the Article- TriageInformation type from the specific Pac...
null
https://raw.githubusercontent.com/geophf/1HaskellADay/514792071226cd1e2ba7640af942667b85601006/exercises/HAD/Y2018/M05/D08/Exercise.hs
haskell
} import Y2018.M01.D30.Exercise -- template for our ArticleTriageInformation for Packet type for articles from the rest endpoint for article context from the database in logic analyses. - The output from our analysis of the article context from the database (the ArticleMetadata set) and the articles downloaded fro...
module Y2018.M05.D08.Exercise where - Okay , now that we have the new articles downloaded from the REST endpoint and the ArticleMetaData context from the database , let 's do some triage ! So , just like with the ArticleMetaData , we have to generalize the Article- TriageInformation type from the specific Pac...
960e6b0838a0047e388ff6a131ead9e0a2de93c91920d0f06c2549eb987b950d
flipstone/orville
Operation.hs
{-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # module Orville.PostgreSQL.Plan.Operation ( Operation (..), AssertionFailed, mkAssertionFailed, WherePlanner (..), byField, byFieldTuple, findOne, findOneWhere, findAll, findAllWhere, findSelect, askParam, ass...
null
https://raw.githubusercontent.com/flipstone/orville/8412df37d1bd1468da3b30196bdba0e577b28e85/orville-postgresql-libpq/src/Orville/PostgreSQL/Plan/Operation.hs
haskell
# LANGUAGE RankNTypes # | 'executeOperationOne' will be called when an plan is executed with a single input parameter | 'executeOperationMany' will be called when an plan is executed with multiple input parameters (via 'planMany'). | 'explainOperationOne' will be called when producing an explanation empty explana...
# LANGUAGE ScopedTypeVariables # module Orville.PostgreSQL.Plan.Operation ( Operation (..), AssertionFailed, mkAssertionFailed, WherePlanner (..), byField, byFieldTuple, findOne, findOneWhere, findAll, findAllWhere, findSelect, askParam, assertRight, SelectOperatio...
5b584d9c55fa63cf9e9c4fa6ae9e6dd9c770b97fcbdb7876e3ff94c4d4c90f45
jlongster/gambit-iphone-example
ffi#.scm
(define-macro (with-alloc expr . rest) `(let (,expr) (let ((ret (begin ,@rest))) (free ,(car expr)) ret)))
null
https://raw.githubusercontent.com/jlongster/gambit-iphone-example/e55d915180cb6c57312cbb683d81823ea455e14f/lib/ffi/ffi%23.scm
scheme
(define-macro (with-alloc expr . rest) `(let (,expr) (let ((ret (begin ,@rest))) (free ,(car expr)) ret)))
6d486963d604819d387aa069f964361e5454d046318741ef7f00d82ac4417d3d
vikram/lisplibraries
utils.lisp
-*- Mode : LISP ; Syntax : ANSI - Common - Lisp ; Base : 10 -*- ;; See the file LICENCE for licence information. (in-package #:cl-l10n) (deflogger l10n-logger () :level +info+ :appender (make-instance 'brief-stream-log-appender :stream t)) (defun l10n-logger.level () (log.level (get-logger 'l10n-logger))) (d...
null
https://raw.githubusercontent.com/vikram/lisplibraries/105e3ef2d165275eb78f36f5090c9e2cdd0754dd/site/ucw-boxset/dependencies/cl-l10n/utils.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 -*- See the file LICENCE for licence information. dont worry it's nothing like if* Functions B b p (and tc1 tc2) B b p mode. I wonder if we should cater for non-normal? (and tc1 tc2) running out of letters here
(in-package #:cl-l10n) (deflogger l10n-logger () :level +info+ :appender (make-instance 'brief-stream-log-appender :stream t)) (defun l10n-logger.level () (log.level (get-logger 'l10n-logger))) (defun (setf l10n-logger.level) (level) (setf (log.level (get-logger 'l10n-logger.level)) level)) Macros (defm...
9b4a2eb049e101e9d76c2f226a3c396926a4ed8f47cc7e971e36fc3b54126a34
techascent/tech.queue
sqs_test.clj
(ns tech.queue.sqs-test (:require [clojure.test :refer :all] [tech.queue.protocols :as q] [tech.queue.worker-test :as worker-test] [com.stuartsierra.component :as c] [tech.queue.sqs :as sqs] [tech.queue.auth :as auth] [tech.io.uuid :as uuid] ...
null
https://raw.githubusercontent.com/techascent/tech.queue/117d054de71fa3c3d93e718eb0c4ac209e62ff33/test/tech/queue/sqs_test.clj
clojure
(ns tech.queue.sqs-test (:require [clojure.test :refer :all] [tech.queue.protocols :as q] [tech.queue.worker-test :as worker-test] [com.stuartsierra.component :as c] [tech.queue.sqs :as sqs] [tech.queue.auth :as auth] [tech.io.uuid :as uuid] ...
adee774c8605a5833ab4d917173345211a536c458da9e6b0b5a3711ddfb5a135
rabbitmq/rabbitmq-clusterer
rabbit_clusterer_transitioner.erl
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 %% / %% Software distributed under the License is distributed on an " AS IS " %% basis, WITHOUT WARRANTY ...
null
https://raw.githubusercontent.com/rabbitmq/rabbitmq-clusterer/f08c59ada2d62ef66ff1c02e2ffc404d5c210185/src/rabbit_clusterer_transitioner.erl
erlang
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 specific language governing rights and limitations under the License. Concerns f...
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 RabbitMQ . The Initial Developer of the Original Code is Pivotal Software , Inc. Portions created by the Initial Developer are Copyright ( C ) 2013 - 2...
b8b93ffa938bd7a451ae684d6f39163f51c6d5612616475beaaa394aeba9351a
slyrus/clem
defmatrix-mult.lisp
;;; -*- Mode: lisp; outline-regexp: ";;;;;*"; indent-tabs-mode: nil -*-;;; ;;; ;;; file: defmatrix-mult.cl author : harmon ;;; (in-package :clem) #+sbcl (defun displace-to-1d-array (matrix) (sb-kernel:%array-data (clem::matrix-vals matrix))) (defgeneric mat-mult3 (m n p)) (defmacro def-matrix-mult (type-1 ty...
null
https://raw.githubusercontent.com/slyrus/clem/a2a9a7699dcfba25a857c11b81291d1edef00c1f/src/typed-ops/defmatrix-mult.lisp
lisp
-*- Mode: lisp; outline-regexp: ";;;;;*"; indent-tabs-mode: nil -*-;;; file: defmatrix-mult.cl need to think about which mat-mult type combinations are needed here. add more as apporpriate.
author : harmon (in-package :clem) #+sbcl (defun displace-to-1d-array (matrix) (sb-kernel:%array-data (clem::matrix-vals matrix))) (defgeneric mat-mult3 (m n p)) (defmacro def-matrix-mult (type-1 type-2 accumulator-type &key suffix) (let ((element-type-1 (element-type (find-class `,type-1))) (element-type...
e2596146d184a9222478c35d52e35594b97330e67a45c362ee348555f6f2d076
cardano-foundation/dab
Lens.hs
module ChainWatcher.Lens where import Control.Lens (makeFields, makePrisms) import ChainWatcher.Types makePrisms ''Event makeFields ''EventDetail makePrisms ''Request makeFields ''RequestDetail
null
https://raw.githubusercontent.com/cardano-foundation/dab/b650c175254dc9d013ebe970aecb4f9124d6d2e2/chain-watcher/src/ChainWatcher/Lens.hs
haskell
module ChainWatcher.Lens where import Control.Lens (makeFields, makePrisms) import ChainWatcher.Types makePrisms ''Event makeFields ''EventDetail makePrisms ''Request makeFields ''RequestDetail
dd0e05d89487ba1d01466bfc0e1196e700dce659092269b9f89ae38407767bc1
B-Lang-org/bsc
Util.hs
{-# LANGUAGE TypeSynonymInstances, FlexibleInstances #-} module Util where import Data.Char(intToDigit) import Data.Word(Word32,Word64) import Data.Bits import Data.List(sort, sortBy, group, groupBy, nubBy, union, foldl') import Control.Monad(foldM) import Debug.Trace(trace) import qualified Data.Set as S import quali...
null
https://raw.githubusercontent.com/B-Lang-org/bsc/bd141b505394edc5a4bdd3db442a9b0a8c101f0f/src/comp/Util.hs
haskell
# LANGUAGE TypeSynonymInstances, FlexibleInstances # Note: They could be consolidated with this file. ===== Not-to-be-checked-in trace functions ===== Common trace functions used in other modules lets you peek at the answer to a computation ===== Configurable traces (currently only used in Id and XRef) ===...
module Util where import Data.Char(intToDigit) import Data.Word(Word32,Word64) import Data.Bits import Data.List(sort, sortBy, group, groupBy, nubBy, union, foldl') import Control.Monad(foldM) import Debug.Trace(trace) import qualified Data.Set as S import qualified Data.Map as M import Numeric(showHex ) import Err...
67c66de5d4fede11e9a0f919154ae115386f704bf84b11c3611bf6a697adff4b
metaocaml/ber-metaocaml
C.ml
open Lib let h x = A.f x + B.g x
null
https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/testsuite/tests/tool-ocamldep-modalias/C.ml
ocaml
open Lib let h x = A.f x + B.g x
12f8ca69656a39ca86bb71618428d709bd12a470296d56f4ffd084e4978630aa
kmi/irs
transform.lisp
(in-package ocml) ;;;;IMPORTANT, JOHN'S SOLUTION FOR MAPPING ;;;; (def-rule family-name-mapping-rule ;;;; ((has-family-name ?inst ?x) if ;;;; (haslastname ?inst ?x))) ;;;; (def-rule full-name-mapping-rule ;;;; ((has-full-name ?inst ?full-name) if ;;;; (haslastname ?inst ?x) ;;;; (hasfirstname ?inst ...
null
https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/ontologies/domains/profile/transform/transform.lisp
lisp
IMPORTANT, JOHN'S SOLUTION FOR MAPPING (def-rule family-name-mapping-rule ((has-family-name ?inst ?x) if (haslastname ?inst ?x))) (def-rule full-name-mapping-rule ((has-full-name ?inst ?full-name) if (haslastname ?inst ?x) (hasfirstname ?inst ?y) (= ?full-name)) metadata database access fu...
(in-package ocml) (import 'ocml::*md-db*) (defun *md-db*-access-get (rll &optional (db *md-db*)) "basic access" (let ((res db) (get-f #'(lambda (k l) (second (assoc k l))))) (dolist (r rll res) ( format t " ~a~% " l ) (setf res (funcall get-f r res))) )) (defun *md-db*-access-get-value ...
ad922f1b97791acd0775d3662f205748fbb6e3cd2ddb170da3d9090a997eaa42
nyu-acsys/drift
app-succ.ml
let succ (sb:int) (sf:int->unit) sx = sf (sx + 1) let rec app (b:int) (f:int->unit) x (k:int) = if k > 0 then app (b - 1) (succ (b - 1) f) (x - 1) (k - 1) else f x let check (cx:int) (cy:int) = assert (cx <= cy) let main (n:int(*-:{v:Int | true}*)) (m:int(*-:{v:Int | true}*)) = app n (check n) n m
null
https://raw.githubusercontent.com/nyu-acsys/drift/51a3160d74b761626180da4f7dd0bb950cfe40c0/tests/benchmarks/DOrder/high/app-succ.ml
ocaml
-:{v:Int | true} -:{v:Int | true}
let succ (sb:int) (sf:int->unit) sx = sf (sx + 1) let rec app (b:int) (f:int->unit) x (k:int) = if k > 0 then app (b - 1) (succ (b - 1) f) (x - 1) (k - 1) else f x let check (cx:int) (cy:int) = assert (cx <= cy)
f2afabb6d9b63009d2da43182e2327a6b9771749247289fa18a36b6d4d3057bf
cloojure/tupelo
dev.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 th...
null
https://raw.githubusercontent.com/cloojure/tupelo/dbb4b12fd6f379803a74a6bdcf54726597ec0fdf/test/clj/tst/tupelo/dev.clj
clojure
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 the terms of this license. You must not remove th...
Copyright ( c ) . All rights reserved . (ns tst.tupelo.dev (:use tupelo.dev tupelo.core tupelo.test) (:require [clojure.string :as str] )) (is= {0 :a 1 :b 2 :c} (sequential->idx-map [:a :b :c])) (is= {0 :x 1 :y 2 :z} (sequential->idx-map [:x :y :z])) (is= 'a (char->sym \a)) (is= '? (char->sym ...
8f57690244db8eacbb8ff4ca2a846f5bfb21c127325ae89e057414d308db7912
SjVer/Som-Lang
name_resolution.ml
open Parse.Ast let use_of_unbound_error what ident span : unit = let open Report.Error in let ident' = Ident.to_string ident in let e = Type_error (Use_of_unbound (what, ident')) in Report.report (Report.make_error e (Some span)); (* TODO: error is not fatal now? *) raise Not_found let rec resolve_type ct...
null
https://raw.githubusercontent.com/SjVer/Som-Lang/c4a606c745d04746cdbf839dddd2603738d217e4/somc/lib/analysis/name_resolution.ml
ocaml
TODO: error is not fatal now? | EX_Constraint (e, t) -> EX_Constraint (go e, canon_type ctx t) not using a new context bc shadowing TODO: `let foo; mod sub { ... }; use sub::foo` works In other words, bindings from parent module get duplicated print_endline ("FINISHED RESOLVING " ^ Ident.to_string ctx''.Cont...
open Parse.Ast let use_of_unbound_error what ident span : unit = let open Report.Error in let ident' = Ident.to_string ident in let e = Type_error (Use_of_unbound (what, ident')) in Report.report (Report.make_error e (Some span)); raise Not_found let rec resolve_type ctx typ = let go = resolve_type ctx in...
cb65f200436ba0a72357a078bf13958393c0437ecb774fb2bb1d9364da4f74ae
aroemers/mount-lite
test_state_2_extra.clj
(ns mount.lite-test.test-state-2-extra (:require [mount.lite :refer (defstate)] [mount.lite-test.test-state-1 :refer (state-1)])) (defstate state-2-a :start (str @state-1 " + state-2-a") :dependencies [#'state-1]) (defstate state-2-b :start (str @state-2-a " + state-2-b") :dependencies [#'state-...
null
https://raw.githubusercontent.com/aroemers/mount-lite/f75a4592c256e1d97b79458a342acc9754270622/test/mount/lite_test/test_state_2_extra.clj
clojure
(ns mount.lite-test.test-state-2-extra (:require [mount.lite :refer (defstate)] [mount.lite-test.test-state-1 :refer (state-1)])) (defstate state-2-a :start (str @state-1 " + state-2-a") :dependencies [#'state-1]) (defstate state-2-b :start (str @state-2-a " + state-2-b") :dependencies [#'state-...
5c3b2607a1a276a918a486aac6da6d8df03208b8257a250c5fe65ea7501143cd
imartayan/KerLang
kl_pass.ml
type report = (int * string) exception AbortPass of report type reporters = { ko : int -> string -> unit; ok : string -> unit; info : string -> unit; } let _std_ko_reporter i msg = Printf.eprintf "Error (at line %d) : %s\n" i msg; raise (AbortPass (i, msg)) let _std_ok_reporter msg = Printf.eprintf "Ok ...
null
https://raw.githubusercontent.com/imartayan/KerLang/d55f09cec389671c753b6b24186ed9a465623594/src/kl_pass.ml
ocaml
type report = (int * string) exception AbortPass of report type reporters = { ko : int -> string -> unit; ok : string -> unit; info : string -> unit; } let _std_ko_reporter i msg = Printf.eprintf "Error (at line %d) : %s\n" i msg; raise (AbortPass (i, msg)) let _std_ok_reporter msg = Printf.eprintf "Ok ...
f317b7fc37e36f7f9ac5dfc4ddcef4135772868922ab4558114ac42733e2cada
dktr0/estuary
Hint.hs
TODO : this should be moved / renamed as Estuary . Client . Hint module Estuary.Types.Hint where import Data.Text (Text,pack) import Data.Maybe (mapMaybe) import TextShow import Estuary.Types.Tempo import Estuary.Utility import Estuary.Types.Definition import Estuary.Types.TranslatableText import Estuary.Client.Se...
null
https://raw.githubusercontent.com/dktr0/estuary/6d46fff1b34b05772bc2a1fcd2e87dcd88a8e7ae/client/src/Estuary/Types/Hint.hs
haskell
directly issue a Request
TODO : this should be moved / renamed as Estuary . Client . Hint module Estuary.Types.Hint where import Data.Text (Text,pack) import Data.Maybe (mapMaybe) import TextShow import Estuary.Types.Tempo import Estuary.Utility import Estuary.Types.Definition import Estuary.Types.TranslatableText import Estuary.Client.Se...
147f4f9929930960a9ded4d819bfa5f956267edaffb3259e68bb209c5fd7689d
LdBeth/star-lisp
defstruct-output.lisp
-*- Mode : LISP ; Syntax : Common - lisp ; Package : ( * SIM - I COMMON - LISP - GLOBAL ) ; Base : 10 -*- (in-package :*sim-i) ;;;> *+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+ ;;;> ;;;> The Thinking Machines *Lisp Simulator is in the public domain. ;;;> You are free to ...
null
https://raw.githubusercontent.com/LdBeth/star-lisp/034fb97fe8780d6e9fbff7c1d8c4a6b8c331797b/source/defstruct-output.lisp
lisp
Syntax : Common - lisp ; Package : ( * SIM - I COMMON - LISP - GLOBAL ) ; Base : 10 -*- > *+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+ > > The Thinking Machines *Lisp Simulator is in the public domain. > You are free to do whatever you like with it, including but > not limi...
(in-package :*sim-i) Functions that generate code for * macroexpansion . (defun generate-front-end-defstruct-code (ds) `(defstruct (,(*defstruct-name ds) (:conc-name ,(*defstruct-slot-accessor-prefix-name ds)) (:constructor ,(*defstruct-constructor-name ds)) (:copier ,(*defstruct-copi...
2fafe642c993a557c62dbcfe3fd3a74fd29999cf1d6cd552dc725fccf883bc81
PEZ/rich4clojure
problem_042.clj
(ns rich4clojure.easy.problem-042 (:require [hyperfiddle.rcf :refer [tests]])) ;; = Factorial Fun = ;; By 4Clojure user: amalloy ;; Difficulty: Easy ;; Tags: [math] ;; ;; Write a function which calculates factorials. (def __ :tests-will-fail) (comment ) (tests (__ 1) := 1 (__ 3) := 6 (__ 5) := 120 (...
null
https://raw.githubusercontent.com/PEZ/rich4clojure/28ea575ede8677f3a97437a646cdb3376a28ebc9/src/rich4clojure/easy/problem_042.clj
clojure
= Factorial Fun = By 4Clojure user: amalloy Difficulty: Easy Tags: [math] Write a function which calculates factorials. Share your solution, and/or check how others did it:
(ns rich4clojure.easy.problem-042 (:require [hyperfiddle.rcf :refer [tests]])) (def __ :tests-will-fail) (comment ) (tests (__ 1) := 1 (__ 3) := 6 (__ 5) := 120 (__ 8) := 40320)
cf49f173bd44101bf34493db80dd68c9b877d8a5ad5aae56c81ff10cb0811bd3
qkrgud55/ocamlmulti
mixin.ml
$ I d : mixin.ml 11123 2011 - 07 - 20 09:17:07Z doligez $ open StdLabels open MoreLabels (* Use maps for substitutions and sets for free variables *) module Subst = Map.Make(struct type t = string let compare = compare end) module Names = Set.Make(struct type t = string let compare = compare end) (* Variables ar...
null
https://raw.githubusercontent.com/qkrgud55/ocamlmulti/74fe84df0ce7be5ee03fb4ac0520fb3e9f4b6d1f/testsuite/tests/typing-labels/mixin.ml
ocaml
Use maps for substitutions and sets for free variables Variables are common to lambda and expr The lambda language: free variables, substitutions, and evaluation The expr language of arithmetic expressions Here map_expr helps a lot The lexpr language, reunion of lambda and expr
$ I d : mixin.ml 11123 2011 - 07 - 20 09:17:07Z doligez $ open StdLabels open MoreLabels module Subst = Map.Make(struct type t = string let compare = compare end) module Names = Set.Make(struct type t = string let compare = compare end) type var = [`Var of string] let subst_var ~subst : var -> _ = function `...
c98c1cd463f0502ca8606419e17419645e5ec8f7a7f083f7dd4c3a44f7e19f7a
JunSuzukiJapan/cl-reex
observer.lisp
(in-package :cl-user) (defpackage cl-reex.observer (:use :cl) (:export :observer :make-observer :do-nothing-no-arg :do-nothing-one-arg :on-next :on-error :on-completed :set-on-next :set-on-error :set-on-completed )) (...
null
https://raw.githubusercontent.com/JunSuzukiJapan/cl-reex/94928c7949c235b41902138d9e4a5654b92d67eb/src/observer/observer.lisp
lisp
body
(in-package :cl-user) (defpackage cl-reex.observer (:use :cl) (:export :observer :make-observer :do-nothing-no-arg :do-nothing-one-arg :on-next :on-error :on-completed :set-on-next :set-on-error :set-on-completed )) (...
eba02db3d4153f4443a39c3a0d14f6f0846dae13bb78ec33499a5c58fa4b26c2
TrustInSoft/tis-interpreter
Sparecode.mli
Modified by TrustInSoft (**************************************************************************) (* *) This file is part of Frama - C. (* ...
null
https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/plugins/sparecode/Sparecode.mli
ocaml
************************************************************************ alternatives) ...
Modified by TrustInSoft This file is part of Frama - C. Copyright ( C ) 2007 - 2015 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Softwa...
014684540b86ae5ead495bb70288aa617b65af4482fc4626a270f6d286b4f597
bsansouci/bsb-native
tyty.mli
(***********************************************************************) (* *) (* ocamlbuild *) (* *) , , projet Galliu...
null
https://raw.githubusercontent.com/bsansouci/bsb-native/9a89457783d6e80deb0fba9ca7372c10a768a9ea/vendor/ocaml/ocamlbuild/test/test2/tyty.mli
ocaml
********************************************************************* ocamlbuild ...
, , projet Gallium , INRIA Rocquencourt Copyright 2007 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . type t = int
cd1fef8ee57fbd06977adada3207534777ce81a6af2a6b39a89626a2087399a2
inaimathi/cl-css
cl-css.lisp
(in-package :cl-css) (defmethod format-selector ((s symbol)) (symbol->d-string s)) (defmethod format-selector ((s string)) s) (defmethod format-declaration (property (value number)) (format nil "~(~a~): ~a;" property value)) (defmethod format-declaration (property (value string)) (concatenate 'string (symbol->d-s...
null
https://raw.githubusercontent.com/inaimathi/cl-css/8fe654c8f0cf95b300718101cce4feb517f78e2f/cl-css.lisp
lisp
generators unit helpers
(in-package :cl-css) (defmethod format-selector ((s symbol)) (symbol->d-string s)) (defmethod format-selector ((s string)) s) (defmethod format-declaration (property (value number)) (format nil "~(~a~): ~a;" property value)) (defmethod format-declaration (property (value string)) (concatenate 'string (symbol->d-s...
7a65e5165440871c20efaf9185f206609d3cc17f1f9e82bc6f8381caca1f3ced
twosigma/Cook
controller.clj
(ns cook.test.kubernetes.controller (:require [clj-time.core :as t] [clojure.test :refer :all] [cook.cached-queries :as cached-queries] [cook.compute-cluster :as cc] [cook.config :as config] [cook.kubernetes.api :as api] [cook.kubernetes.controll...
null
https://raw.githubusercontent.com/twosigma/Cook/7be558f182761e64680b5bc93fa5687102e90ab6/scheduler/test/cook/test/kubernetes/controller.clj
clojure
We just want a function that does nothing here to test that the value is set/removed appropriately controller/process is implicitly run by update-cook-expected-state. Now the kill arrives. controller/process is implicitly run by update-cook-expected-state. The resulting expected state should be nil; we have opport...
(ns cook.test.kubernetes.controller (:require [clj-time.core :as t] [clojure.test :refer :all] [cook.cached-queries :as cached-queries] [cook.compute-cluster :as cc] [cook.config :as config] [cook.kubernetes.api :as api] [cook.kubernetes.controll...
17ce101bae7ff89099d9ee61431c6c318ba54886428ef046b74a49927e9d7e3c
quchen/prettyprinter
Leijen.hs
# LANGUAGE CPP # #include "version-compatibility-macros.h" module Text.PrettyPrint.Annotated.Leijen {-# DEPRECATED "Compatibility module for users of annotated-wl-pprint - use \"Prettyprinter\" instead" #-} ( Doc, SimpleDoc, SpanList, putDoc, hPutDoc, empty, char, text, (<>), nest, line, linebreak, group, so...
null
https://raw.githubusercontent.com/quchen/prettyprinter/11e8bf12aed2f698e619c3a8c07eca3af4da1aed/prettyprinter-compat-annotated-wl-pprint/src/Text/PrettyPrint/Annotated/Leijen.hs
haskell
# DEPRECATED "Compatibility module for users of annotated-wl-pprint - use \"Prettyprinter\" instead" # malformed documents malformed documents
# LANGUAGE CPP # #include "version-compatibility-macros.h" Doc, SimpleDoc, SpanList, putDoc, hPutDoc, empty, char, text, (<>), nest, line, linebreak, group, softline, softbreak, align, hang, indent, encloseSep, list, tupled, semiBraces, (<+>), (<$>), (</>), (<$$>), (<//>), hsep, vsep, fillSep, sep, h...
dbd75492175585142c8c2e64483d510d20e8904169b114edbb954cba5968ae9a
facebookarchive/pfff
alias_type_function.ml
type 'a gen = unit -> 'a let (ig: int gen) = fun () -> 1 let foo x = ig () type expr = Expr type any = Any type visitor_in = { kexpr : expr vin ; } and ' a vin = ( ' a - > ' a ) * visitor_out - > ' a - > ' a and visitor_out = any - > any let call_continuation = ( fun ( k , _ ) x - > k x ) ...
null
https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/tests/ml/cmt/alias_type_function.ml
ocaml
type 'a gen = unit -> 'a let (ig: int gen) = fun () -> 1 let foo x = ig () type expr = Expr type any = Any type visitor_in = { kexpr : expr vin ; } and ' a vin = ( ' a - > ' a ) * visitor_out - > ' a - > ' a and visitor_out = any - > any let call_continuation = ( fun ( k , _ ) x - > k x ) ...
ace95288ab67e97431ad06a0556c2506318284fa12f90a38d8f5f02612577d05
csabahruska/jhc-components
Tuple.hs
module Jhc.Prim.Tuple where data () = () data (,) a b = (,) a b data (,,) a b c = (,,) a b c data (,,,) a b c d = (,,,) a b c d data (,,,,) a b c d e = (,,,,) a b c d e data (,,,,,) a b c d e f = (,,,,,) a b c d e f data (,,,,,,) a b c d e f g = (,,,,,,) a b c d e f g data (,,,,,,,) a b c d e f g h = (,,,,,,,) a b c d...
null
https://raw.githubusercontent.com/csabahruska/jhc-components/a7dace481d017f5a83fbfc062bdd2d099133adf1/lib/jhc-prim/Jhc/Prim/Tuple.hs
haskell
module Jhc.Prim.Tuple where data () = () data (,) a b = (,) a b data (,,) a b c = (,,) a b c data (,,,) a b c d = (,,,) a b c d data (,,,,) a b c d e = (,,,,) a b c d e data (,,,,,) a b c d e f = (,,,,,) a b c d e f data (,,,,,,) a b c d e f g = (,,,,,,) a b c d e f g data (,,,,,,,) a b c d e f g h = (,,,,,,,) a b c d...
357d8e043fa23c941f5032ee0a9efffc0b8a253c29f8604ecfcd872e9270355c
juliangamble/clojure-ants-simulation
ants.clj
(ns ants) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ant sim ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Copyright ( c ) . All rights reserved . ; The use and distribution terms for this software are covered by the ; Common Public License 1.0 () ; which can be found in the file CPL.TXT at the root of this distribution. ; ...
null
https://raw.githubusercontent.com/juliangamble/clojure-ants-simulation/9fa218b55e52e4de1fd294a88fff48791c8279c0/src/ants.clj
clojure
ant sim ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; The use and distribution terms for this software are covered by the Common Public License 1.0 () which can be found in the file CPL.TXT at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this li...
(ns ants) Copyright ( c ) . All rights reserved . (def dim 80) (def nants-sqrt 7) (def food-places 35) (def food-range 100) (def pher-scale 20.0) (def food-scale 30.0) (def evap-rate 0.99) (def animation-sleep-ms 100) (def ant-sleep-ms 40) (def evap-sleep-ms 1000) (def running true) (def world (apply ...
2580a3c4b0d886cac6d1bd40a198bcc8d938fd584401f3fc0fb47e838dd50a30
rwmjones/guestfs-tools
sysprep_operation_net_hwaddr.ml
virt - sysprep * Copyright ( C ) 2012 Red Hat Inc. * * 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 ver...
null
https://raw.githubusercontent.com/rwmjones/guestfs-tools/57423d907270526ea664ff15601cce956353820e/sysprep/sysprep_operation_net_hwaddr.ml
ocaml
Replace HWADDR=... entry.
virt - sysprep * Copyright ( C ) 2012 Red Hat Inc. * * 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 ver...
6e358174123f5df347bfed8c1266dc5a5cbdf5acdf29f83c884d3ece7468d504
ha-mo-we/Racer
reasoners.lisp
-*- Mode : Lisp ; Syntax : Ansi - Common - Lisp ; Package : OWLAPI ; Base : 10 -*- Copyright ( c ) 1998 - 2014 , , , . ;;; All rights reserved. Racer is distributed under the following BSD 3 - clause license ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are ...
null
https://raw.githubusercontent.com/ha-mo-we/Racer/d690841d10015c7a75b1ded393fcf0a33092c4de/source/reasoners.lisp
lisp
Syntax : Ansi - Common - Lisp ; Package : OWLAPI ; Base : 10 -*- 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 list of ...
Copyright ( c ) 1998 - 2014 , , , . Racer is distributed under the following BSD 3 - clause license Neither the name Racer nor the names of its contributors may be used CONTRIBUTORS " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , VOLKER HAARSLEV , RALF MOELLER , NOR FOR ANY ...
e5eab93db6a9e14708395b98f8a2e1c0f9fbb031e41dc9ed3755da164fe59455
tianyicui/golio
prim_func.mli
(** Primitive functions *) open Type val apply : value list -> value (* TODO: refactor this type *) ;; (** association list of all primitive functions. The key of the list is the name * of the function. *) val prim_functions : (string * (value list -> value)) list ;;
null
https://raw.githubusercontent.com/tianyicui/golio/2f03a0ddb451ff8389125477e1214839973eaa1f/src/prim_func.mli
ocaml
* Primitive functions TODO: refactor this type * association list of all primitive functions. The key of the list is the name * of the function.
open Type val apply : ;; val prim_functions : (string * (value list -> value)) list ;;
f7de3a2f9b3dc0d23d902245c4f2ad8c4d16a629644291dc109d253ed986f524
ar-nelson/schemepunk
146.scm
Copyright ( C ) ( 2016 , 2017 ) . All Rights ;; Reserved. ;; 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 us...
null
https://raw.githubusercontent.com/ar-nelson/schemepunk/e2840d3c445933528aaf0a36ec72b053ec5016ce/tests/old-mapping/146.scm
scheme
Reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies furnished to do so, subject to the following co...
Copyright ( C ) ( 2016 , 2017 ) . All Rights files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND ...