_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
4e04e8da6b5ec00e3f873dcb33bcd4cc1fa1cdc1fe9505c0a8a21f387bf53823
susanemcg/pandoc-tufteLaTeX2GitBook
Helpers.hs
{-# LANGUAGE TypeSynonymInstances, FlexibleInstances #-} -- Utility functions for the test suite. module Tests.Helpers ( test , (=?>) , property , ToString(..) , ToPandoc(..) ) where import Te...
null
https://raw.githubusercontent.com/susanemcg/pandoc-tufteLaTeX2GitBook/00c34b4299dd89c4e339e1cde006061918b559ab/pandoc-1.12.4.2/tests/Tests/Helpers.hs
haskell
# LANGUAGE TypeSynonymInstances, FlexibleInstances # Utility functions for the test suite. ^ function to test ^ name of test case ^ (input, expected value)
module Tests.Helpers ( test , (=?>) , property , ToString(..) , ToPandoc(..) ) where import Text.Pandoc.Definition import Text.Pandoc.Builder (Inlines, Blocks, doc, plain) import Test.Framewor...
146ae74d667cad4e93b34307d9e2592eb2a32d5e115bab557560d95fe0a3c2bf
jtza8/interact
animation-sprite.lisp
; Use of this source code is governed by a BSD-style license that can be found in the license.txt file ; in the root directory of this project. (in-package :interact) (defclass animation-sprite (sprite) ((fps :initarg :fps :initform (error "must specify fps") :accessor fps) (sprite-vector :init...
null
https://raw.githubusercontent.com/jtza8/interact/ea2121d7e900dac4fe2a085bd5f2783a640e71f8/src/animation-sprite.lisp
lisp
Use of this source code is governed by a BSD-style in the root directory of this project.
license that can be found in the license.txt file (in-package :interact) (defclass animation-sprite (sprite) ((fps :initarg :fps :initform (error "must specify fps") :accessor fps) (sprite-vector :initarg :sprite-vector :initform (error "must specify sprite vector")) (watch...
04482fda06a3e0d1be29b16ed024721dde35d2f5bcd07ad06799d90f1470d7c7
logseq/logseq
header.cljs
(ns frontend.components.header (:require [cljs-bean.core :as bean] [frontend.components.export :as export] [frontend.components.page-menu :as page-menu] [frontend.components.plugins :as plugins] [frontend.components.server :as server] [frontend.components.ri...
null
https://raw.githubusercontent.com/logseq/logseq/c83c9733386705127f2fed740e6f9840bbb14157/src/main/frontend/components/header.cljs
clojure
back button for mobile search button for non-mobile
(ns frontend.components.header (:require [cljs-bean.core :as bean] [frontend.components.export :as export] [frontend.components.page-menu :as page-menu] [frontend.components.plugins :as plugins] [frontend.components.server :as server] [frontend.components.ri...
5b1ebf09e7f0037b5c504629d3f02283f669d056720b489206196e8fcc7e3619
lemmaandrew/CodingBatHaskell
stringMatch.hs
From Given 2 strings , a and b , return the number of the positions where they contain the same length 2 substring . So \"xxcaazz\ " and \"xxbaaz\ " yields 3 , since the \"xx\ " , \"aa\ " , and \"az\ " substrings appear in the same place in both strings . Given 2 strings, a and b, return the number of the po...
null
https://raw.githubusercontent.com/lemmaandrew/CodingBatHaskell/d839118be02e1867504206657a0664fd79d04736/CodingBat/Warmup-2/stringMatch.hs
haskell
From Given 2 strings , a and b , return the number of the positions where they contain the same length 2 substring . So \"xxcaazz\ " and \"xxbaaz\ " yields 3 , since the \"xx\ " , \"aa\ " , and \"az\ " substrings appear in the same place in both strings . Given 2 strings, a and b, return the number of the po...
3a2b17ed413cf6c960c835d143b49aa3a2125bc6a3b824cd0b73f1d55db57291
WormBase/wormbase_rest
overview.clj
(ns rest-api.classes.structure-data.widgets.overview (:require [datomic.api :as d] [rest-api.classes.generic-fields :as generic] [rest-api.db.main :refer [datomic-homology-conn]] [rest-api.formatters.object :as obj :refer [pack-obj]])) (defn sequence-field [s] {:data (when-let [protein (:structure-data...
null
https://raw.githubusercontent.com/WormBase/wormbase_rest/e51026f35b87d96260b62ddb5458a81ee911bf3a/src/rest_api/classes/structure_data/widgets/overview.clj
clojure
:homology_data homology-data
(ns rest-api.classes.structure-data.widgets.overview (:require [datomic.api :as d] [rest-api.classes.generic-fields :as generic] [rest-api.db.main :refer [datomic-homology-conn]] [rest-api.formatters.object :as obj :refer [pack-obj]])) (defn sequence-field [s] {:data (when-let [protein (:structure-data...
93b5b1ebd7ec5f6108af96c929a35b1650362a29ed12483fcfde3ba5fbe3dbd4
tqtezos/stablecoin
StablecoinPath.hs
SPDX - FileCopyrightText : 2020 SPDX - License - Identifier : MIT | This module contains only the paths to the compiled LIGO contracts . -- Due to GHC stage restriction , they have to be in their own module in order to be used inside TemplateHaskell splices . module Lorentz.Contracts.StablecoinPath ( met...
null
https://raw.githubusercontent.com/tqtezos/stablecoin/e3e1d8694f27842b1a0ffe985f6d4a9d3e80b70f/haskell/src/Lorentz/Contracts/StablecoinPath.hs
haskell
| The path to the compiled stablecoin contract. | The path to the compiled stablecoin FA1.2 contract. | The path to the compiled metadata registry.
SPDX - FileCopyrightText : 2020 SPDX - License - Identifier : MIT | This module contains only the paths to the compiled LIGO contracts . Due to GHC stage restriction , they have to be in their own module in order to be used inside TemplateHaskell splices . module Lorentz.Contracts.StablecoinPath ( metada...
ca53fa747e3af5be9035bc0aaed95fc79ec3850334721bb3b0fb332b4c59508b
tnelson/Forge
orderOfOpsExprs.rkt
#lang forge option run_sterling off option verbose 0 option problem_type temporal var sig Node { var edges : set Node, var fruit : set Node } test expect { tildeTighterThanPrimeSat : { always ~edges' = (~edges)' } is sat tildeTighterThanPrimeTheorem : { always ~edges' = (~edges)' } is theorem tranisitiveClosu...
null
https://raw.githubusercontent.com/tnelson/Forge/a7187ef110f46493c1d45011035b05646b9ccd22/forge/tests/forge/expressions/orderOfOpsExprs.rkt
racket
#lang forge option run_sterling off option verbose 0 option problem_type temporal var sig Node { var edges : set Node, var fruit : set Node } test expect { tildeTighterThanPrimeSat : { always ~edges' = (~edges)' } is sat tildeTighterThanPrimeTheorem : { always ~edges' = (~edges)' } is theorem tranisitiveClosu...
941ec67081d0d2d00b7906fe12236f0e3b48e1630b650e50189cbecf06f94cbf
fission-codes/fission
Environment.hs
module Fission.CLI.App.Environment ( create , read , readFrom , absPath , relPath , ignoreDefault , module Fission.CLI.App.Environment.Types ) where import qualified Data.Yaml as YAML import RIO.Directory import RIO.FilePath import qualified RIO.Text ...
null
https://raw.githubusercontent.com/fission-codes/fission/11d14b729ccebfd69499a534445fb072ac3433a3/fission-cli/library/Fission/CLI/App/Environment.hs
haskell
module Fission.CLI.App.Environment ( create , read , readFrom , absPath , relPath , ignoreDefault , module Fission.CLI.App.Environment.Types ) where import qualified Data.Yaml as YAML import RIO.Directory import RIO.FilePath import qualified RIO.Text ...
ad982e9ce1b56bac5118b7157268d0e29e027f95371e708441aa9572c0ec195f
pkamenarsky/synchron
SVG.hs
# LANGUAGE FlexibleContexts # # LANGUAGE DeriveFunctor # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PartialTypeSignatures # # LANGUAGE TupleSections # module Syn.SVG where import Control.Monad (void) import Control.Monad.Free import Data.List (intersperse) import Data.Maybe (fromMaybe) import Data.Text (Text) imp...
null
https://raw.githubusercontent.com/pkamenarsky/synchron/8fa21f586b974da830c202b58a46a652176a6933/src/Syn/SVG.hs
haskell
# LANGUAGE OverloadedStrings # zipWith (<>) (drawG p) (drawG q) returned W >= passed W showG (TDone (w, _)) = (L w 1 "D", Nothing) showG (TAwait (w, _) e next) = (L w 1 ("A"), Just next) only adjust height if no header drawn ([["v" <> ss (w - 1)]] <> t, w) go a b | trace (show (a, b)) False = undefined ------...
# LANGUAGE FlexibleContexts # # LANGUAGE DeriveFunctor # # LANGUAGE PartialTypeSignatures # # LANGUAGE TupleSections # module Syn.SVG where import Control.Monad (void) import Control.Monad.Free import Data.List (intersperse) import Data.Maybe (fromMaybe) import Data.Text (Text) import qualified Data.Map as M import ...
a7a47db9f758934314961f74e547c3b3f0d31100f4f499ee95710ddaf1540098
levand/quiescent
project.clj
(defproject quiescent.examples.composite-components "0.1.0" :plugins [[lein-cljsbuild "1.1.2"]] :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/clojurescript "1.7.228"] [quiescent/quiescent "0.3.0"] [cljsjs/react-bootstrap "0.28.1-0" :exclusions [[cljsjs/...
null
https://raw.githubusercontent.com/levand/quiescent/2063ebcaffb2c62e48a177c894a10f9066b7f2cc/examples/composite-components/project.clj
clojure
(defproject quiescent.examples.composite-components "0.1.0" :plugins [[lein-cljsbuild "1.1.2"]] :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/clojurescript "1.7.228"] [quiescent/quiescent "0.3.0"] [cljsjs/react-bootstrap "0.28.1-0" :exclusions [[cljsjs/...
27a8c56b86afa303391194bd2979262365224ed2880d2ddc1f5c509dcee7e44f
wireapp/wire-server
One2One.hs
-- This file is part of the Wire Server implementation. -- Copyright ( C ) 2022 Wire Swiss GmbH < > -- -- This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License...
null
https://raw.githubusercontent.com/wireapp/wire-server/e03f7219210019ae5be50739f594dc667e669168/libs/galley-types/src/Galley/Types/Conversations/One2One.hs
haskell
This file is part of the Wire Server implementation. This program is free software: you can redistribute it and/or modify it under later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTI...
Copyright ( C ) 2022 Wire Swiss GmbH < > the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any You should have received a copy of the GNU Affero General Public License along module Galley.Types.Conversation...
352b45438ca3c5e4b86e3cfcb46a7d0ac45b4edc09825b589bcb3a32430f3fe0
skanev/playground
13.scm
SICP exercise 3.13 ; ; Consider the following make-cycle procedure, which uses the last-pair procedure defined in exercise 3.12 : ; ; (define (make-cycle x) ; (set-cdr! (last-pair x) x) ; x) ; ; Draw a box-and-pointer diagram that shows the structure z created by ; ; (define z (make-cycle (list 'a 'b 'c...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/sicp/03/13.scm
scheme
Consider the following make-cycle procedure, which uses the last-pair (define (make-cycle x) (set-cdr! (last-pair x) x) x) Draw a box-and-pointer diagram that shows the structure z created by (define z (make-cycle (list 'a 'b 'c))) What happens if we try to compute (last-pair z)? Here's the dia...
SICP exercise 3.13 procedure defined in exercise 3.12 :
f8b416e07db11d87eda0c28b83e2026c75625f6d1274aed7c0bf43b7f6399610
portkey-cloud/aws-clj-sdk
mturk_requester.clj
(ns portkey.aws.mturk-requester (:require [portkey.aws])) (def endpoints '{"sandbox" {:credential-scope {:service "mturk-requester", :region "sandbox"}, :ssl-common-name "mturk-requester-sandbox.us-east-1.amazonaws.com", :endpoint "-requester-sandbox.us-east-1.amazonaws.com", :signature-version :v...
null
https://raw.githubusercontent.com/portkey-cloud/aws-clj-sdk/10623a5c86bd56c8b312f56b76ae5ff52c26a945/src/portkey/aws/mturk_requester.clj
clojure
(ns portkey.aws.mturk-requester (:require [portkey.aws])) (def endpoints '{"sandbox" {:credential-scope {:service "mturk-requester", :region "sandbox"}, :ssl-common-name "mturk-requester-sandbox.us-east-1.amazonaws.com", :endpoint "-requester-sandbox.us-east-1.amazonaws.com", :signature-version :v...
048ee6f24bb31fd67b586200ca48db4b2f9357b0f3f83a81409b99f948270237
racket/typed-racket
fx-filter.rkt
#lang typed/racket ;; test filters on fx primitives that tell us that if the function ;; returns at all, its arguments were fixnums ;; currently only works if the fx operation is used in test position, ;; due to the way filters are used. this should be improved in the ;; future (require racket/fixnum) (: f : Integer...
null
https://raw.githubusercontent.com/racket/typed-racket/0236151e3b95d6d39276353cb5005197843e16e4/typed-racket-test/succeed/fx-filter.rkt
racket
test filters on fx primitives that tell us that if the function returns at all, its arguments were fixnums currently only works if the fx operation is used in test position, due to the way filters are used. this should be improved in the future
#lang typed/racket (require racket/fixnum) (: f : Integer -> Fixnum) (define (f x) (if (fx+ x 4) x x)) (: g : Integer -> Fixnum) (define (g x) (if (fxnot x) x x))
066474322d3ed9a67c556f6e1a127220ecde6bbb0dfdaa46b7f8c8097d4401f4
lmj/lfarm
cognate.lisp
Copyright ( c ) 2013 , . 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 c...
null
https://raw.githubusercontent.com/lmj/lfarm/f7ba49f1ec01fb99a7aeb8f18e245a44411c361b/lfarm-client/cognate.lisp
lisp
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary...
Copyright ( c ) 2013 , . All rights reserved . " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT HOLDER OR FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT THEORY OF LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR T...
478036578b62b95b610c5e229c93e3c249a348025692670297071e0b9467cbb8
qfpl/reflex-workshop
Item.hs
| Copyright : ( c ) 2018 , Commonwealth Scientific and Industrial Research Organisation License : : Stability : experimental Portability : non - portable Copyright : (c) 2018, Commonwealth Scientific and Industrial Research Organisation License : BSD3 Maintainer : Stability : experi...
null
https://raw.githubusercontent.com/qfpl/reflex-workshop/244ef13fb4b2e884f455eccc50072e98d1668c9e/src/Exercises/Todo/Item.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE GADTs #
| Copyright : ( c ) 2018 , Commonwealth Scientific and Industrial Research Organisation License : : Stability : experimental Portability : non - portable Copyright : (c) 2018, Commonwealth Scientific and Industrial Research Organisation License : BSD3 Maintainer : Stability : experi...
468eda7e1ed4321a481ac4e467dc2363314064557507861bd48bc23dbd20cfde
CryptoKami/cryptokami-core
Util.hs
# LANGUAGE AllowAmbiguousTypes # {-# LANGUAGE DataKinds #-} -- | Some utility functions necessary to implement block processing logic. module Pos.Block.Logic.Util ( -- * Common/Utils lcaWithMainChain , calcChainQuality , calcChainQualityM , calcOverallChainQuali...
null
https://raw.githubusercontent.com/CryptoKami/cryptokami-core/12ca60a9ad167b6327397b3b2f928c19436ae114/block/src/Pos/Block/Logic/Util.hs
haskell
# LANGUAGE DataKinds # | Some utility functions necessary to implement block processing logic. * Common/Utils by traversing from older to newer. | Find LCA of headers list and main chain, including oldest first header that's in main chain. O(n). | Calculate chain quality using slot of the block which ha...
# LANGUAGE AllowAmbiguousTypes # module Pos.Block.Logic.Util ( lcaWithMainChain , calcChainQuality , calcChainQualityM , calcOverallChainQuality , calcChainQualityFixedTime ) where import Universum import Control.Lens (_Wrapped) import ...
0aceb0ca4fde62b14a80350feb26bf8fe9efb68b46d22f49ebdeb024e43ff0b7
kmi/irs
old.lisp
Mode : Lisp ; Package : Author : The Open University (in-package "OCML") (in-ontology uk-location-ontology) (def-class uk-village (village)) (def-class uk-city (city)) (def-class uk-town (town)) (def-class english-city (uk-city)) (def-class scotish-city (uk-city)) (def-class welsh-city (uk-city)) (d...
null
https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/ontologies/domains/uk-location-ontology/old.lisp
lisp
Package :
Author : The Open University (in-package "OCML") (in-ontology uk-location-ontology) (def-class uk-village (village)) (def-class uk-city (city)) (def-class uk-town (town)) (def-class english-city (uk-city)) (def-class scotish-city (uk-city)) (def-class welsh-city (uk-city)) (def-class irish-city (uk-cit...
b8322c0d4046a0c70e84fd57889939557cb737c0e931e6055b62c584970c5bd3
nshepperd/funn
RNNChar.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} # LANGUAGE PolyKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # {-# OPTIONS_GHC -fplugin GHC.TypeLits.Normalise #-} # OPTIONS_GHC -fplugin GHC.TypeLits . KnownNat . Solv...
null
https://raw.githubusercontent.com/nshepperd/funn/23138fc44cfda90afd49927c39b122ed78945293/AI/Funn/Models/RNNChar.hs
haskell
# LANGUAGE GADTs # # OPTIONS_GHC -fplugin GHC.TypeLits.Normalise # # OPTIONS_GHC -fconstraint-solver-iterations=20 #
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE PolyKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # # OPTIONS_GHC -fplugin GHC.TypeLits . KnownNat . Solver # module AI.Funn.Models.RNNChar (Model, ModelPars, ParsWrapped, buildMod...
968cd40a08a57f288b7a4016e696918ade47b179e0d6eba50cb0e03baaa2ea2e
project-oak/hafnium-verification
utils.mli
* Copyright ( c ) 2014 - present , Facebook , Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) 2014-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE ...
null
https://raw.githubusercontent.com/project-oak/hafnium-verification/6071eff162148e4d25a0fedaea003addac242ace/experiments/ownership-inference/infer/facebook-clang-plugins/clang-ocaml/utils.mli
ocaml
* Copyright ( c ) 2014 - present , Facebook , Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) 2014-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE ...
43c597cac1b22ea86a35f4d3d34b6cd0123dff3ddfcc10d21c7860771933a11b
tweag/asterius
ado-optimal.hs
{-# LANGUAGE ScopedTypeVariables, ExistentialQuantification, ApplicativeDo #-} {-# OPTIONS_GHC -foptimal-applicative-do #-} module Main where import Control.Applicative import Text.PrettyPrint as PP (a:b:c:d:e:f:g:h:_) = map (\c -> doc [c]) ['a'..] -- This one requires -foptimal-applicative-do to find the best solut...
null
https://raw.githubusercontent.com/tweag/asterius/e7b823c87499656860f87b9b468eb0567add1de8/asterius/test/ghc-testsuite/ado/ado-optimal.hs
haskell
# LANGUAGE ScopedTypeVariables, ExistentialQuantification, ApplicativeDo # # OPTIONS_GHC -foptimal-applicative-do # This one requires -foptimal-applicative-do to find the best solution ((a; b) | (c; d)); e (a | c); (b | d); e Testing code, prints out the structure of a monad/applicative expression
module Main where import Control.Applicative import Text.PrettyPrint as PP (a:b:c:d:e:f:g:h:_) = map (\c -> doc [c]) ['a'..] test1 :: M () test1 = do x1 <- a x2 <- const b x1 x3 <- c x4 <- const d x3 x5 <- const e (x1,x4) return (const () x5) test2 :: M () test2 = do x1 <- a x3 <- c x2 <- const b ...
067866228076385dac8ceac23ec6d9cb759afa9d65543529c6b90fbd8136b51a
penrose/geometric-queries
main.hs
# LANGUAGE OverloadedStrings , DeriveGeneric # module Main where import qualified Data.Text as T import qualified Data.ByteString.Lazy.Char8 as B import qualified Control.Monad.IO.Class as IO import GHC.Generics import Data.Aeson import Web.Scotty as S import PointsAndLines import Polygons import Gradients import Deb...
null
https://raw.githubusercontent.com/penrose/geometric-queries/79676192b2740e7bed39535611db8949b7846e14/main.hs
haskell
below: query functions to test below: for test in js
# LANGUAGE OverloadedStrings , DeriveGeneric # module Main where import qualified Data.Text as T import qualified Data.ByteString.Lazy.Char8 as B import qualified Control.Monad.IO.Class as IO import GHC.Generics import Data.Aeson import Web.Scotty as S import PointsAndLines import Polygons import Gradients import Deb...
9cd37b5b88d3b04ec8e6c515264598c550f0d1d286afcdfaf00ac97b4cb5340b
DogLooksGood/holdem
handler.clj
(ns poker.web.handler (:require [hiccup.core :as html] [ring.util.response :as resp] [hiccup.page :as page] [hiccup.util :as html-util] [ring.middleware.anti-forgery] [poker.account :as account] [poker.lobby :as lobby] [poker.game :...
null
https://raw.githubusercontent.com/DogLooksGood/holdem/76791c1b51eda0f439778f1018753af95583773f/src/clj/poker/web/handler.clj
clojure
This page should not be cached. Old session contains CSRF token Leave game or websocket disconnect
(ns poker.web.handler (:require [hiccup.core :as html] [ring.util.response :as resp] [hiccup.page :as page] [hiccup.util :as html-util] [ring.middleware.anti-forgery] [poker.account :as account] [poker.lobby :as lobby] [poker.game :...
47728053fa8af28d45bdc208aba74c3ef6a0820a0e5efa9d578992dae003f60b
SamB/coq
inductive.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/SamB/coq/8f84aba9ae83a4dc43ea6e804227ae8cae8086b1/kernel/inductive.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** i $Id$ i i i s Extracting an inducti...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Names open Univ open ...
18c93cd66e6c7ff1efb8f9040a4d6237a7fbd35e149b81bc0bd9a04d296a113d
AccelerateHS/accelerate-examples
Main.hs
module Main where import Config import FFT import HighPass import Prelude as P import Data.Label import System.Exit import System.Environment import System.FilePath import Data.Array.Accelerate as A import Data.Array.Accelerate.IO.Codec.BMP ...
null
https://raw.githubusercontent.com/AccelerateHS/accelerate-examples/a973ee423b5eadda6ef2e2504d2383f625e49821/examples/fft/src-acc/Main.hs
haskell
Main routine ---------------------------------------------------------------- Read in the image file Set up the operations Write out the images to file
module Main where import Config import FFT import HighPass import Prelude as P import Data.Label import System.Exit import System.Environment import System.FilePath import Data.Array.Accelerate as A import Data.Array.Accelerate.IO.Codec.BMP ...
b549dceb6fdad27ab477fe3daa53ed7c49b1e692cae8c6bd5e84592a9dc06800
pepe/two-in-shadows
routes.cljs
(ns two-in-shadows.server.routes "Routes for the server" (:require ["koa-router" :as Router] ["koa-body" :as body] [two-in-shadows.utils :as utils] [two-in-shadows.server.events :as events])) (defn ^:private greeting "Renders document with greeting" [ctx next] (utils/set-...
null
https://raw.githubusercontent.com/pepe/two-in-shadows/b49a484cf1cc1a9a2e0a5ffb358acfe0f56d895c/src/two_in_shadows/server/routes.cljs
clojure
(ns two-in-shadows.server.routes "Routes for the server" (:require ["koa-router" :as Router] ["koa-body" :as body] [two-in-shadows.utils :as utils] [two-in-shadows.server.events :as events])) (defn ^:private greeting "Renders document with greeting" [ctx next] (utils/set-...
6c42964bf72607d4a9024d89a2f365a32677c385596c1f0174d7a95b5b6869a0
duo-lang/duo-lang
TypeAutomata.hs
module Pretty.TypeAutomata ( typeAutToDot ) where import Data.Graph.Inductive.Graph import Data.GraphViz.Attributes.Complete (Attribute(Style), StyleName(Dashed,Dotted), StyleItem(SItem)) import Data.GraphViz import Data.Maybe (catMaybes) import Data.Set qualified as S import Data.Map qualified as M import Data.Text.L...
null
https://raw.githubusercontent.com/duo-lang/duo-lang/320625ac68446c9b8fb50f4b2181c97a95ff1b8f/src/Pretty/TypeAutomata.hs
haskell
------------------------------------------------------------------------------- Prettyprinting of Type Automata -------------------------------------------------------------------------------
module Pretty.TypeAutomata ( typeAutToDot ) where import Data.Graph.Inductive.Graph import Data.GraphViz.Attributes.Complete (Attribute(Style), StyleName(Dashed,Dotted), StyleItem(SItem)) import Data.GraphViz import Data.Maybe (catMaybes) import Data.Set qualified as S import Data.Map qualified as M import Data.Text.L...
28b666cd9d9b57e084e59bb90c1990d9fe18a54461c01ba406652220febcd30f
ocaml/ocaml
pr6416.ml
(* TEST flags="-no-alias-deps -w +40" * expect *) module M = struct type t = A module M : sig val f : t -> unit end = struct type t = B let f B = () end end;; [%%expect{| Lines 5-8, characters 8-5: 5 | ........struct 6 | type t = B 7 | let f B = () 8 | end Error: Signature mismatch: ...
null
https://raw.githubusercontent.com/ocaml/ocaml/d71ea3d089ae3c338b8b6e2fb7beb08908076c7a/testsuite/tests/typing-misc/pr6416.ml
ocaml
TEST flags="-no-alias-deps -w +40" * expect * Multiple redefinition of t * Check interaction with no-alias-deps * Check type-directed disambiguation
module M = struct type t = A module M : sig val f : t -> unit end = struct type t = B let f B = () end end;; [%%expect{| Lines 5-8, characters 8-5: 5 | ........struct 6 | type t = B 7 | let f B = () 8 | end Error: Signature mismatch: Modules do not match: sig type t = B val...
970a34bbfe56d66075a48c0587862573210dd60e617a361c734fe3231ba39f7f
softwarelanguageslab/maf
R5RS_various_letrec-begin-4.scm
; Changes: * removed : 0 * added : 0 * swaps : 1 ; * negated predicates: 0 ; * swapped branches: 0 * calls to i d fun : 1 (letrec ((h (lambda () (<change> () ((lambda (x) x) ())))) (i 1) (res (begin (<change> (h...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_various_letrec-begin-4.scm
scheme
Changes: * negated predicates: 0 * swapped branches: 0
* removed : 0 * added : 0 * swaps : 1 * calls to i d fun : 1 (letrec ((h (lambda () (<change> () ((lambda (x) x) ())))) (i 1) (res (begin (<change> (h) i) (<change> ...
4233d20043316ff93fb74c1a035bd9cb180b11e11576085e2d87f66c68d79c58
tweag/asterius
T11607.hs
# LANGUAGE ApplicativeDo # # LANGUAGE GeneralizedNewtypeDeriving # newtype MaybeA a = MaybeA (Maybe a) deriving (Show, Functor, Applicative) main :: IO () main = print $ do x <- MaybeA $ Just 42 pure x
null
https://raw.githubusercontent.com/tweag/asterius/e7b823c87499656860f87b9b468eb0567add1de8/asterius/test/ghc-testsuite/ado/T11607.hs
haskell
# LANGUAGE ApplicativeDo # # LANGUAGE GeneralizedNewtypeDeriving # newtype MaybeA a = MaybeA (Maybe a) deriving (Show, Functor, Applicative) main :: IO () main = print $ do x <- MaybeA $ Just 42 pure x
9407b40a8c531ebd1f2bb373458c345e5cb42ca2b56b55d425f2eee9e23ebd34
gordonpace/contractLarva
Parsing.hs
Copyright 2017 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 distributed under...
null
https://raw.githubusercontent.com/gordonpace/contractLarva/5a2febd1c9ba4763b30def3a96bb07f2fef8a9dc/src/DEA/Parsing.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 perm...
Copyright 2017 and Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , module DEA.Parsing ( module Parseable, module DEA.DEA ) where import Data.List import Control.Monad hiding (guard) import Text.Parsec hiding (State...
649e8e062f20083e5698218e840088a09c7f567439ed818694ced6780d8ea519
themetaschemer/malt
A-scalar-ops.rkt
#lang racket (require (only-in "../tensors.rkt" ext1-ρ ext2-ρ)) (require "../autodiff.rkt") (define +-0-0 (prim2 + (λ (a b z) (values z z)))) (define --0-0 (prim2 - (λ (a b z) (values z (- z))))) (define *-0-0 (prim2 * (λ (a b z) (values (* b z) (* a...
null
https://raw.githubusercontent.com/themetaschemer/malt/c5adcf5022677cf109e96f93b574d6f107f367bb/flat-tensors/ext-ops/A-scalar-ops.rkt
racket
------------------------------------ differentiable extended functions. ------------------------------------ ------------------------------------ non-differentiable extended functions. ------------------------------------
#lang racket (require (only-in "../tensors.rkt" ext1-ρ ext2-ρ)) (require "../autodiff.rkt") (define +-0-0 (prim2 + (λ (a b z) (values z z)))) (define --0-0 (prim2 - (λ (a b z) (values z (- z))))) (define *-0-0 (prim2 * (λ (a b z) (values (* b z) (* a...
759a2c50f207d8d395e8c3c29aeaa7436782e3e545be6a349f0b4bd1c8b59be5
mneedham/ranking-algorithms
glicko.clj
(ns ranking-algorithms.glicko (:require [clojure.math.numeric-tower :as math])) (defn as-glicko-opposition [{ goals-for :for goals-against :against ranking :points rd :rd}] {:opponent-ranking ranking :opponent-ranking-rd rd :score (cond (> goals-for goals-against) 1 (< goals-for goals-against) 0 :else 0.5)...
null
https://raw.githubusercontent.com/mneedham/ranking-algorithms/30d300170f60f24663c3d377ce68565427a42cb4/src/ranking_algorithms/glicko.clj
clojure
(ns ranking-algorithms.glicko (:require [clojure.math.numeric-tower :as math])) (defn as-glicko-opposition [{ goals-for :for goals-against :against ranking :points rd :rd}] {:opponent-ranking ranking :opponent-ranking-rd rd :score (cond (> goals-for goals-against) 1 (< goals-for goals-against) 0 :else 0.5)...
77ae72889e963a4c8768cae6e287e46b529fc9e93ad7563902569b2bb5fa3994
korya/efuns
bytegen.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/korya/efuns/78b21d9dff45b7eec764c63132c7a564f5367c30/ocamlsrc/compat/2.04/include/bytegen.mli
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : bytegen.mli , v 1.1 2000/05/2...
f48abd3ac5c3cb57c2d9e3da5d66aa025deaf5484244090cf4a95d4430406440
simingwang/emqx-plugin-kafkav5
dtls_connection.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2013 - 2022 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/simingwang/emqx-plugin-kafkav5/bbf919e56dbc8fd2d4c1c541084532f844a11cbc/_build/default/rel/emqx_plugin_kafka/lib/ssl-10.7/src/dtls_connection.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 2013 - 2022 . 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(dtls_connection). For UDP transport the following flights are used as retransmission units ClientHel...
8cb85ad5dceaec1d1fa03cf1879603246346d923a889e120f7cfad58feb93b12
L7R7/gitlab-ci-build-statuses
Jobs.hs
# LANGUAGE DataKinds # {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE GADTs #-} # LANGUAGE TemplateHaskell # module Core.Jobs ( Job (..), JobsApi (..), getJobsWithStatuses, ) where import Core.BuildStatuses (BuildStatus, Project) import Core.Shared import Polysemy (makeSem) import Relude data Job = Job {...
null
https://raw.githubusercontent.com/L7R7/gitlab-ci-build-statuses/7701ef41dad6a7015703b6e7ec26897f44fa0e6a/src/Core/Jobs.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE GADTs #
# LANGUAGE DataKinds # # LANGUAGE TemplateHaskell # module Core.Jobs ( Job (..), JobsApi (..), getJobsWithStatuses, ) where import Core.BuildStatuses (BuildStatus, Project) import Core.Shared import Polysemy (makeSem) import Relude data Job = Job { jobId :: Id Job, jobStatus :: BuildStatus } dat...
d963dff12487284f3388e587782249119c5092702e931f6efacc96ad13612228
ocaml-omake/omake
omake_ir_semant.ml
(* * Operations: * 1. Check that all return/export operations are in legal * places. * 2. Add final operations to sequences that don't already * have them. * 3. Add return handlers to functions that have nontrivial * return statements. *) include Omake_pos.Make (struct let name = "Om...
null
https://raw.githubusercontent.com/ocaml-omake/omake/08b2a83fb558f6eb6847566cbe1a562230da2b14/src/env/omake_ir_semant.ml
ocaml
* Operations: * 1. Check that all return/export operations are in legal * places. * 2. Add final operations to sequences that don't already * have them. * 3. Add return handlers to functions that have nontrivial * return statements. * Synthesized attributes. * renv_has_return ...
include Omake_pos.Make (struct let name = "Omake_ir_semant" end) type renv = { renv_has_return : bool; renv_is_final : bool; renv_is_value : bool } type env = { env_warnings : Lm_location.t option ref; env_in_function : Omake_ir.return_id option; env_in_cond : bool; ...
2658edfafa8bd5d0f75808356e6fa3d005fa4e1d55f2e30ab0fe3a01bdbde5e0
garrigue/lablgtk
xml.ml
(**************************************************************************) Lablgtk - Camlirc (* *) (* * You are free to do anything you want with this code as long *) (* as it i...
null
https://raw.githubusercontent.com/garrigue/lablgtk/504fac1257e900e6044c638025a4d6c5a321284c/applications/camlirc/xml.ml
ocaml
************************************************************************ * You are free to do anything you want with this code as long as it is for personal use. ...
Lablgtk - Camlirc < > < > $ Id$ open Xml_lexer type element = { elt_desc: element_desc; elt_start: int; elt_end: int} and element_desc = | Node of string * (string * string) list * element li...
eb4a17f7f1c7e4a8ad9ded9fe34f3f3e2f085d7c0d53efadb3435121e1707e21
exercism/babashka
project.clj
(defproject word-count "0.1.0-SNAPSHOT" :description "wordy exercise." :url "" :dependencies [[org.clojure/clojure "1.10.0"]])
null
https://raw.githubusercontent.com/exercism/babashka/707356c52e08490e66cb1b2e63e4f4439d91cf08/exercises/practice/wordy/project.clj
clojure
(defproject word-count "0.1.0-SNAPSHOT" :description "wordy exercise." :url "" :dependencies [[org.clojure/clojure "1.10.0"]])
c668c09b2f562a8db29d631b39f9089a9f47b26a3a0ebf4dcb0f400cc885ffdf
TomLisankie/static-roam
database.clj
(ns static-roam.database (:require [static-roam.parser :as parser] [static-roam.utils :as utils] [clojure.string :as str-utils] [datascript.core :as ds] [clojure.pprint :as pprint])) (defn- get-block-id [block-json] (if (:title block-json) (:title block-json) ...
null
https://raw.githubusercontent.com/TomLisankie/static-roam/f8f63825f0e8b7f5b53e3400025aa97a2c5c8061/src/static_roam/database.clj
clojure
what I need to happen here is have it so if the block has children, it creates pairs for those as well forget what I already implemented, I optimized too early. sometimes people put references to other page titles inside of the title of another page. So pairs of brackets inside of other brackets when they reference ...
(ns static-roam.database (:require [static-roam.parser :as parser] [static-roam.utils :as utils] [clojure.string :as str-utils] [datascript.core :as ds] [clojure.pprint :as pprint])) (defn- get-block-id [block-json] (if (:title block-json) (:title block-json) ...
1e08ab99a08595773356a8ecf9dddaddef81a490130a343930c70813031ff23f
aryx/ocamltarzan
builtins.ml
type 'a ref = { (* mutable *) contents: 'a } (* with tarzan *) type 'a option = | None | Some of 'a (* with tarzan *)
null
https://raw.githubusercontent.com/aryx/ocamltarzan/4140f5102cee83a2ca7be996ca2d92e9cb035f9c/tests/builtins.ml
ocaml
mutable with tarzan with tarzan
type 'a option = | None | Some of 'a
640da0d4fffbba5faab9642086614c10a414d3c19ae68ce8fdfe3250d29508fb
nedap/formatting-stack
git_diff.clj
(ns formatting-stack.strategies.impl.git-diff "Functions for `git diff --name-status` parsing. Note that commands such as `git status`, `git ls-files` do not share its output format." (:require [clojure.string :as string] [nedap.speced.def :as speced])) (speced/defn deletion? [^string? s] (-> s (string/...
null
https://raw.githubusercontent.com/nedap/formatting-stack/c43e74d5409e9338f208457bb8928ce437381a3f/src/formatting_stack/strategies/impl/git_diff.clj
clojure
See: `git diff --help`, `diff-filter` section
(ns formatting-stack.strategies.impl.git-diff "Functions for `git diff --name-status` parsing. Note that commands such as `git status`, `git ls-files` do not share its output format." (:require [clojure.string :as string] [nedap.speced.def :as speced])) (speced/defn deletion? [^string? s] (-> s (string/...
c356bf4a95ad0e6510ea664c509daedaf958777e1ca8333cc88cb1fca03d6168
ghcjs/ghcjs
t10962.hs
# LANGUAGE MagicHash # # LANGUAGE UnboxedTuples # module Main (main) where import GHC.Base unW# :: Word -> Word# unW# (W# w) = w type WordOpC = Word# -> Word# -> (# Word#, Int# #) check :: WordOpC -> Word# -> Word# -> IO () check op a b = do let (# w, c #) = op a b print (W# w, I# c) checkSubInlNoInl :: ...
null
https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/test/ghc/numeric/t10962.hs
haskell
constant folding lowering of PrimOp Overflow. No overflow.
# LANGUAGE MagicHash # # LANGUAGE UnboxedTuples # module Main (main) where import GHC.Base unW# :: Word -> Word# unW# (W# w) = w type WordOpC = Word# -> Word# -> (# Word#, Int# #) check :: WordOpC -> Word# -> Word# -> IO () check op a b = do let (# w, c #) = op a b print (W# w, I# c) checkSubInlNoInl :: ...
b6871ccb7c4dfc3d37aa16d535251c7385776df29c85bf6b02f5b32e85e0a631
zclj/replication-packages
handler.clj
(ns graphql-toy.test.handler (:require [clojure.test :refer :all] [ring.mock.request :refer :all] [graphql-toy.handler :refer :all] [graphql-toy.middleware.formats :as formats] [muuntaja.core :as m] [mount.core :as mount])) (defn parse-json [body] (m/decode formats/instance "application/jso...
null
https://raw.githubusercontent.com/zclj/replication-packages/8a5cb02e4fdda74107b5dcc34cbfa5cb5ae34dcf/GraphQL/graphql-toy/test/clj/graphql_toy/test/handler.clj
clojure
(ns graphql-toy.test.handler (:require [clojure.test :refer :all] [ring.mock.request :refer :all] [graphql-toy.handler :refer :all] [graphql-toy.middleware.formats :as formats] [muuntaja.core :as m] [mount.core :as mount])) (defn parse-json [body] (m/decode formats/instance "application/jso...
6eaf7a24a8f0931b39576b09b72fd986b086cdb6b6388f591f6c5dbe190349a8
arnihermann/osxmonad
Keys.hs
module OSXMonad.Keys where import XMonad From HIToolbox / Events.h osxKeyToX11 :: Int -> KeySym osxKeyToX11 0x00 = xK_a osxKeyToX11 0x01 = xK_s osxKeyToX11 0x02 = xK_d osxKeyToX11 0x03 = xK_f osxKeyToX11 0x04 = xK_h osxKeyToX11 0x05 = xK_g osxKeyToX11 0x06 = xK_z osxKeyToX11 0x07 = xK_x osxKeyToX11 0x08 = xK_c osx...
null
https://raw.githubusercontent.com/arnihermann/osxmonad/b15cf78ef25456b7c0e759a531343ba01a84919b/OSXMonad/Keys.hs
haskell
TODO: 0x49
module OSXMonad.Keys where import XMonad From HIToolbox / Events.h osxKeyToX11 :: Int -> KeySym osxKeyToX11 0x00 = xK_a osxKeyToX11 0x01 = xK_s osxKeyToX11 0x02 = xK_d osxKeyToX11 0x03 = xK_f osxKeyToX11 0x04 = xK_h osxKeyToX11 0x05 = xK_g osxKeyToX11 0x06 = xK_z osxKeyToX11 0x07 = xK_x osxKeyToX11 0x08 = xK_c osx...
122649d3ce8c6538a2d13660b1fef5e240a844b4bb949943182787448b15f42e
SimulaVR/godot-haskell
RichTextLabel.hs
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.RichTextLabel (Godot.Core.RichTextLabel._ITEM_UNDERL...
null
https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/src/Godot/Core/RichTextLabel.hs
haskell
| Triggered when the user clicks on content between meta tags. If the meta is defined in text, e.g. @@url={"data"="hi"}@hi@/url@@, then the parameter for this signal will be a @String@ type. If a particular type or an object is desired, the @method push_meta@ method must be used to manually insert the data into the ta...
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.RichTextLabel (Godot.Core.RichTextLabel._ITEM_UNDERL...
cbdc9729e29c6b9ff6f8aa9540dc87dcfb514c1b721f5eea33c4ca9b193163ee
hidaris/thinking-dumps
2-31.rkt
#lang eopl (require "base.ss") (define-datatype prefix-list prefix-list? (a-prefix-list (exp prefix-exp?) (rest (list-of prefix-exp?)))) (define-datatype prefix-exp prefix-exp? (const-exp (num integer?)) (diff-exp (operand1 prefix-exp?) (operand2 prefix-exp?))) ;; ; (- - 3 2 - 4 - 12 7) (define...
null
https://raw.githubusercontent.com/hidaris/thinking-dumps/3fceaf9e6195ab99c8315749814a7377ef8baf86/eopl-solutions/chap2/2-31.rkt
racket
; (- - 3 2 - 4 - 12 7)
#lang eopl (require "base.ss") (define-datatype prefix-list prefix-list? (a-prefix-list (exp prefix-exp?) (rest (list-of prefix-exp?)))) (define-datatype prefix-exp prefix-exp? (const-exp (num integer?)) (diff-exp (operand1 prefix-exp?) (operand2 prefix-exp?))) (define parse-pexp (lambda (pex...
fea86ee346c8281016a32765f9a32a064846d3ecf28a6dd5f9386c724e70bc22
suprematic/zipkin-clj
core_test.clj
(ns zipkin-clj.core-test (:require [clojure.core.match :refer [match]] [clojure.test :refer [deftest is]] [zipkin-clj.core :as zipkin])) ;; ==================================================================== Internal ;; ==================================================================== ...
null
https://raw.githubusercontent.com/suprematic/zipkin-clj/fb7cb0b08e970312e6de71611a48cdefd4e40bc0/test/zipkin_clj/core_test.clj
clojure
==================================================================== ==================================================================== ==================================================================== Tests ====================================================================
(ns zipkin-clj.core-test (:require [clojure.core.match :refer [match]] [clojure.test :refer [deftest is]] [zipkin-clj.core :as zipkin])) Internal (defn- collecting-sender [collect-to-atom spans] (swap! collect-to-atom concat spans)) (defmacro ^:private find-matches [match-spec coll...
16ac9af3f5630f6890e9697ccb6f2680f4b7fc3eaeb8d3e4ba2ffc65da3642eb
jumper149/go
Main.hs
module Main ( main ) where import qualified Test.Board.Default main :: IO () main = Test.Board.Default.runTests
null
https://raw.githubusercontent.com/jumper149/go/603e61f64e8e7c890bbc914fef6033b5ed7dd005/test/Main.hs
haskell
module Main ( main ) where import qualified Test.Board.Default main :: IO () main = Test.Board.Default.runTests
f136537e8b3dce6a70544c91751c73716913bc33771ac81e8cc50d088b8f3489
ahmed-abdelmotey/AutoCAD-LISP
Match Block Orientation.lsp
(princ "Author: Ahmed Abd-elmotey - NOV 2015 - ") (defun c:MZBO () (setq ss (ssget) i 0 j 0) (while (< i (sslength ss)) (progn (setq ro (* 180.0 (/ (vla-get-rotation (vlax-ename->vla-object (ssname ss i))) pi))) (if (/= 0 ro) (setq rott ro)) (setq i (1+ i)) ) ) (while rott (progn (vla-put-rotation (vlax-ename->vla-obje...
null
https://raw.githubusercontent.com/ahmed-abdelmotey/AutoCAD-LISP/32b59bb5dd7e67727d81faefd93dbca70c3efcde/3-%20Match%20Block%20orientation/Match%20Block%20Orientation.lsp
lisp
(princ "Author: Ahmed Abd-elmotey - NOV 2015 - ") (defun c:MZBO () (setq ss (ssget) i 0 j 0) (while (< i (sslength ss)) (progn (setq ro (* 180.0 (/ (vla-get-rotation (vlax-ename->vla-object (ssname ss i))) pi))) (if (/= 0 ro) (setq rott ro)) (setq i (1+ i)) ) ) (while rott (progn (vla-put-rotation (vlax-ename->vla-obje...
c0d4f3632284ad459d3576bc398d257020dfbca954413153d716f5d161a160a7
Yuras/bindings-gobject
GObject.hs
module Bindings.GObject ( module Bindings.GObject.BaseObjectType, module Bindings.GObject.BoxedTypes, module Bindings.GObject.Closures, module Bindings.GObject.EnumerationAndFlagTypes, module Bindings.GObject.GenericValues, module Bindings.GObject.GParamSpec, module Bindings.GObject.GTypeModule, ...
null
https://raw.githubusercontent.com/Yuras/bindings-gobject/330747ad08cb16bc3f77509f356ec431aa12d05e/src/Bindings/GObject.hs
haskell
module Bindings.GObject ( module Bindings.GObject.BaseObjectType, module Bindings.GObject.BoxedTypes, module Bindings.GObject.Closures, module Bindings.GObject.EnumerationAndFlagTypes, module Bindings.GObject.GenericValues, module Bindings.GObject.GParamSpec, module Bindings.GObject.GTypeModule, ...
a7a63dc229f038c42a023cf043386076fd9714754648ca079f0da12e3c1b57cc
dmjio/miso
Event.hs
# LANGUAGE FlexibleInstances # # LANGUAGE TypeFamilies # {-# LANGUAGE DataKinds #-} # LANGUAGE OverloadedStrings # # LANGUAGE MultiParamTypeClasses # ----------------------------------------------------------------------------- -- | -- Module : Miso.Svg.Events Copyright : ( ...
null
https://raw.githubusercontent.com/dmjio/miso/339505587fd8576c7f89484d3a4244732a9f00e6/src/Miso/Svg/Event.hs
haskell
# LANGUAGE DataKinds # --------------------------------------------------------------------------- | Module : Miso.Svg.Events License : BSD3-style (see the file LICENSE) Stability : experimental Portability : non-portable ------------------------------------------------------------------...
# LANGUAGE FlexibleInstances # # LANGUAGE TypeFamilies # # LANGUAGE OverloadedStrings # # LANGUAGE MultiParamTypeClasses # Copyright : ( C ) 2016 - 2018 Maintainer : < > module Miso.Svg.Event onBegin , onEnd , onRepeat , onAbort , onError , onResize , onScroll ,...
6405d1625b8bb924c4a08b1d27f8c0fabc0a70031f9d0c63a5c53636841b9f15
cdepillabout/servant-static-th
HelperFuncSpec.hs
# LANGUAGE OverloadedLists # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE NoMonomorphismRestriction # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # module Spec.HelperFuncSpec where import System.FilePath ((</>)) import Test.Tasty (TestTree, testGroup) import Test.Tasty.HUnit ((@?=), testCase) import Se...
null
https://raw.githubusercontent.com/cdepillabout/servant-static-th/5ec0027ed2faa6f8c42a2259a963f52e6b30edad/test/Spec/HelperFuncSpec.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE OverloadedLists # # LANGUAGE NoMonomorphismRestriction # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # module Spec.HelperFuncSpec where import System.FilePath ((</>)) import Test.Tasty (TestTree, testGroup) import Test.Tasty.HUnit ((@?=), testCase) import Servant.Static.TH.Internal (Fi...
b121eca96182288ccc769a7b533887ae97837f60c057c26afb27cd15929f4696
trystan/voronoi-diagram
project.clj
(defproject trystan/voronoi-diagram "1.0.1" :description "Create a Voronoi diagram from a collection of points." :url "-diagram" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.7.0"] [trystan/delaunay-triangulation "1.0.2"]])
null
https://raw.githubusercontent.com/trystan/voronoi-diagram/e89a3753cf4974b472303f751ef73f8481d06fe0/project.clj
clojure
(defproject trystan/voronoi-diagram "1.0.1" :description "Create a Voronoi diagram from a collection of points." :url "-diagram" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.7.0"] [trystan/delaunay-triangulation "1.0.2"]])
443437d204a720f154045c7d4e9954d1d81bb435772fa039ef58820473026f61
racket/gui
test.rkt
#lang at-exp racket/base (require racket/class racket/contract/base racket/gui/base scribble/srcdoc (for-syntax racket/base) (prefix-in :: framework/private/focus-table)) (generate-delayed-documents) ; enables for-doc--for-label import of `framework' (require/doc scheme/bas...
null
https://raw.githubusercontent.com/racket/gui/d1fef7a43a482c0fdd5672be9a6e713f16d8be5c/gui-lib/framework/test.rkt
racket
enables for-doc--for-label import of `framework' milliseconds The minimum time an action is allowed to run before returning from mred:test:action. Controls the rate at which actions are started, and gives some slack time for real events to complete (eg, update). Make-parameter doesn't do what we need across th...
#lang at-exp racket/base (require racket/class racket/contract/base racket/gui/base scribble/srcdoc (for-syntax racket/base) (prefix-in :: framework/private/focus-table)) (require/doc scheme/base scribble/manual (for-label framework)) (define (test:top-level-f...
6131c57623c8f61a7f27341a6523442ff230496f1e8abae0707dd12aa3c5c76e
diagrams/geometry
Trace.hs
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeFamilies # {-# LANGUAGE UndecidableInstances #-} ------------------------------...
null
https://raw.githubusercontent.com/diagrams/geometry/945c8c36b22e71d0c0e4427f23de6614f4e7594a/src/Geometry/Trace.hs
haskell
# LANGUAGE UndecidableInstances # --------------------------------------------------------------------------- | Module : Geometry.Trace License : BSD-style (see LICENSE) Maintainer : \"traces\", aka functional boundaries, essentially corresponding to a raytracer. ----------------------------...
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeFamilies # Copyright : ( c ) 2012 - 2017 diagrams team ( see LICENSE ) The @...
abbe8e8b878160937bb29e8e5727e7094032322cfcc41a7d0e820c2f11168632
disteph/cdsat
terms.ml
open Format open General open Basic open Interfaces_basic open Variables type _ free = private Free type bound_prim = private Bound type bound = BoundVar.t*bound_prim type (_,_) xterm = | V : 'l -> (_, 'l*_) xterm | C : Symbols.t * ('a list) -> ('a,_) xterm | ...
null
https://raw.githubusercontent.com/disteph/cdsat/1b569f3eae59802148f4274186746a9ed3e667ed/src/kernel/kernel.mld/top.mld/terms.ml
ocaml
Displays a formula **************************** Terms with bound variables **************************** **************************** Terms with bound variables ****************************
open Format open General open Basic open Interfaces_basic open Variables type _ free = private Free type bound_prim = private Bound type bound = BoundVar.t*bound_prim type (_,_) xterm = | V : 'l -> (_, 'l*_) xterm | C : Symbols.t * ('a list) -> ('a,_) xterm | ...
b629a5889eb1a4733aef0737f05472a5857d2882da3dd33caac5bb69764effad
someteam/acha
achievement_static.clj
(ns acha.achievement-static) (def ^:private -table [ {:description "Delete a file that has been added in the initial commit (and at least a year has passed)", :key :all-things-die, :name "All Things Die"} {:description "Commit time is 1 month or more after the author time", :key :alzheimers, :name "Alzheim...
null
https://raw.githubusercontent.com/someteam/acha/6b957f6cb6773f4fc184d094b40de79039bb58cc/src-clj/acha/achievement_static.clj
clojure
(ns acha.achievement-static) (def ^:private -table [ {:description "Delete a file that has been added in the initial commit (and at least a year has passed)", :key :all-things-die, :name "All Things Die"} {:description "Commit time is 1 month or more after the author time", :key :alzheimers, :name "Alzheim...
85034a7c1aedfa51a834e410708dc66b49b0b372b80cb03e52e5c8eb46e1dd4c
zchn/ethereum-analyzer
BytecodeVisMain.hs
# LANGUAGE OverloadedStrings , TemplateHaskell , FlexibleContexts # #-} # LANGUAGE NoImplicitPrelude # -- | Dump all contracts. module Main ( main ) where import Control.Monad.Logger import Ethereum.Executable.BytecodeVisMain (bytecodeVisMain) import HFlags import Protolude defineFlag "bytecode" ("" ::...
null
https://raw.githubusercontent.com/zchn/ethereum-analyzer/f2a60d8b451358971f1e3b1a61658f5741c4c099/ethereum-analyzer-cli/exec_src/BytecodeVisMain.hs
haskell
| Dump all contracts.
# LANGUAGE OverloadedStrings , TemplateHaskell , FlexibleContexts # #-} # LANGUAGE NoImplicitPrelude # module Main ( main ) where import Control.Monad.Logger import Ethereum.Executable.BytecodeVisMain (bytecodeVisMain) import HFlags import Protolude defineFlag "bytecode" ("" :: Text) "The bytecode. W...
4002e8df6f69be404d0d4ed88e3884f7b07e696ccf74bc64f032590a8ac59fb8
geostarling/guix-packages
emacs-xyz.scm
;;; Copyright © 2022 < > ;;;;;; The Work is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 3 of the License , or ( at ;;; your option) any later version. ;;; ;;; The Work is distributed i...
null
https://raw.githubusercontent.com/geostarling/guix-packages/765e0c14fd49c1c04e9af17176f93a30f829b6e8/personal/packages/emacs-xyz.scm
scheme
you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. The Work is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Genera...
Copyright © 2022 < > 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 The Work . If not , see < / > . (define-module (personal packages emacs-xyz) #:use-module ((guix licenses) #:prefix license:) #:use-module...
13599c2644b1061f7965dabc00c254fdc731a41e3ee944404343ca1bbaaea32f
MailOnline/s-metric
padded_hamming.clj
(ns s-metric.padded-hamming (:require [s-metric.protocols :as p])) (defn pad [s size] "Fill s with filler up to size." (let [padded (str "%-" size "s")] (format padded s))) (defn make-same-size [x y] (cond (= (count x) (count y)) [x y] (> (count x) (count y)) [x (pad y (count x))] (< (count x)...
null
https://raw.githubusercontent.com/MailOnline/s-metric/991c84f3cc1c8c3ac55981f7eb1788385927fba0/src/s_metric/padded_hamming.clj
clojure
(ns s-metric.padded-hamming (:require [s-metric.protocols :as p])) (defn pad [s size] "Fill s with filler up to size." (let [padded (str "%-" size "s")] (format padded s))) (defn make-same-size [x y] (cond (= (count x) (count y)) [x y] (> (count x) (count y)) [x (pad y (count x))] (< (count x)...
63f6eb9dece403c3cbd0d92df66267a855a9260d8077ca2731be070d7a4b16a5
jarvinet/scheme
let.scm
(let ((a 1) (b 2)) (+ a b)) ; The above let is converted into this: ( ( lambda ( a b ) ( + a b ) ) 1 2 )
null
https://raw.githubusercontent.com/jarvinet/scheme/47633d7fc4d82d739a62ceec75c111f6549b1650/bin/test/let.scm
scheme
The above let is converted into this:
(let ((a 1) (b 2)) (+ a b)) ( ( lambda ( a b ) ( + a b ) ) 1 2 )
f3d1d6bd446f8f0ca6454547018e05cc5b0516b5bb3080908cb41eb1a4d6dd29
Kappa-Dev/KappaTools
wrapped_modules.mli
module ParanoCharSet : Map_wrapper.Set_with_logs with type elt = char module ParanoCharMap : Map_wrapper.Map_with_logs with type elt = char module ParanoStringSet : Map_wrapper.Set_with_logs with type elt = string module ParanoStringMap : Map_wrapper.Map_with_logs with type elt = string module ParanoIntSet : Map_wrappe...
null
https://raw.githubusercontent.com/Kappa-Dev/KappaTools/5e756eb3529db9976cf0a0884a22676925985978/core/KaSa_rep/more_datastructures/wrapped_modules.mli
ocaml
module ParanoCharSet : Map_wrapper.Set_with_logs with type elt = char module ParanoCharMap : Map_wrapper.Map_with_logs with type elt = char module ParanoStringSet : Map_wrapper.Set_with_logs with type elt = string module ParanoStringMap : Map_wrapper.Map_with_logs with type elt = string module ParanoIntSet : Map_wrappe...
322711d7aa3a6aaf8859f1894c8c9b48f552e4f8f89e192188d73f7597391b86
jphmrst/bps
ATMSTrun.hs
module ATMSTrun where import Control.Monad.State import Data.TMS.Formatters import Data.TMS.ATMS.ATMST -- Corresponds to Lisp function `book-1` in src/main/lisp/atms/atest.lisp runATMS1 :: IO (Either AtmsErr ()) runATMS1 = do runATMST $ do do atms <- createATMS "Ex1" setInformantStringViaString atms...
null
https://raw.githubusercontent.com/jphmrst/bps/2bfa66c6a4b6dfdf17e71bae1c1fa4bcfe283a20/src/main/haskell/app/ATMSTrun.hs
haskell
Corresponds to Lisp function `book-1` in src/main/lisp/atms/atest.lisp
module ATMSTrun where import Control.Monad.State import Data.TMS.Formatters import Data.TMS.ATMS.ATMST runATMS1 :: IO (Either AtmsErr ()) runATMS1 = do runATMST $ do do atms <- createATMS "Ex1" setInformantStringViaString atms setDatumStringViaString atms debugAtms " Created " atms na ...
1a1309656d53a5d03a90f975b917a9687681e239856a7856b567fc5ab84f4423
con-kitty/categorifier-c
Main.hs
{-# LANGUAGE OverloadedStrings #-} module Main (main) where import Categorifier.C.Generate (writeCFiles) import F (fCategorified) -- This generates /tmp/sum_types.c main :: IO () main = writeCFiles "/tmp" "sum_types" fCategorified
null
https://raw.githubusercontent.com/con-kitty/categorifier-c/40b673c955dc5212fc18015ab44378a58e68c1c6/examples/sum-types/Main.hs
haskell
# LANGUAGE OverloadedStrings # This generates /tmp/sum_types.c
module Main (main) where import Categorifier.C.Generate (writeCFiles) import F (fCategorified) main :: IO () main = writeCFiles "/tmp" "sum_types" fCategorified
1602fca6a418c5244b795dea9f4174919f307ad9bef321e185099c03737a0de7
haskell-servant/servant
Docs.hs
# OPTIONS_GHC -fno - warn - orphans # module Servant.Auth.Docs ( -- | The purpose of this package is provide the instance for 'servant-auth' -- combinators needed for 'servant-docs' documentation generation. -- > > > type API = Auth ' [ JWT , Cookie , BasicAuth ] Int :> Get ' [ JSON ] Int > > > putStr $ mar...
null
https://raw.githubusercontent.com/haskell-servant/servant/bd9e4b10900d04bb5a24bcbb8ab2f7246fcd15c7/servant-auth/servant-auth-docs/src/Servant/Auth/Docs.hs
haskell
| The purpose of this package is provide the instance for 'servant-auth' combinators needed for 'servant-docs' documentation generation. ... ... Authentication ... This part of the API is protected by the following authentication mechanisms: ... * JSON Web Tokens ([JWTs]()) * [Cookies]() * [Basic Authenti...
# OPTIONS_GHC -fno - warn - orphans # module Servant.Auth.Docs ( > > > type API = Auth ' [ JWT , Cookie , BasicAuth ] Int :> Get ' [ JSON ] Int > > > putStr $ markdown $ docs ( Proxy : : Proxy API ) # # GET / One of the following : JWT , BasicAuth , Cookie , Auth ) where import Control.Lens ...
b2e4b624b60b7667b6c1701fe30945c9845061567839cf850f16bac6dfea2d59
janestreet/patdiff
ascii_output.mli
open! Core open! Import include Output.S
null
https://raw.githubusercontent.com/janestreet/patdiff/ffbf5d785addb18fec3df454f256b4978bb5d9df/kernel/src/ascii_output.mli
ocaml
open! Core open! Import include Output.S
8a28226993cd4931cbb155a8286a22d820af5b8c24477ef93af12c95f64372f5
techascent/tech.io
url.clj
(ns tech.v3.io.url (:require [clojure.string :as s]) (:import [java.net URL] [java.io File])) (set! *warn-on-reflection* true) (defn maybe-url [^String url] (re-find #"[A-Za-z0-9]+:\/\/" url) ;;Leaving here to make a point. The below fails for any url that does n't have a scheme registered with ...
null
https://raw.githubusercontent.com/techascent/tech.io/3bb251ff299c239e768c27c0d8ce29f132f7d2a9/src/tech/v3/io/url.clj
clojure
Leaving here to make a point. The below fails for any url
(ns tech.v3.io.url (:require [clojure.string :as s]) (:import [java.net URL] [java.io File])) (set! *warn-on-reflection* true) (defn maybe-url [^String url] (re-find #"[A-Za-z0-9]+:\/\/" url) that does n't have a scheme registered with the central java url system - such as s3 or azb . #_(try (jav...
cf0aa0d6926196c4c1edc08ad8d502bedce0f9b1835631e776bbb4bf1ffba3a1
luceracloud/tachyon-aggregator
tachyon_c.erl
-module(tachyon_c). -export([c/2]). < < _ HostSize:32 / integer , _ / binary , %% _UuidSize:32/integer, _Uuid:_UuidSize/binary, %% _SnapTime:64/integer, _ NameSize:32 / integer , _ Name:_NameSize / binary , %% _ModuleSize:32/integer, _Module:_ModuleSize/binary, %% _ClassSize:32/integer, _Clas...
null
https://raw.githubusercontent.com/luceracloud/tachyon-aggregator/1da71c902d974e0d9abb21a3825a9a07f5c0b8da/apps/tachyon/src/tachyon_c.erl
erlang
_UuidSize:32/integer, _Uuid:_UuidSize/binary, _SnapTime:64/integer, _ModuleSize:32/integer, _Module:_ModuleSize/binary, _ClassSize:32/integer, _Class:_ClassSize/binary, _Instance:64/integer,
-module(tachyon_c). -export([c/2]). < < _ HostSize:32 / integer , _ / binary , _ NameSize:32 / integer , _ Name:_NameSize / binary , _ / integer , Key:_KeySize / binary _ Type , V:64 / intege > > c(Module, File) -> case file:read_file(File) of {ok, Content} -> case tl...
163464176fb539b05dadcd13f91e5dacd0746d0c763c5d7545f1a5922d5b9577
kupl/LearnML
original.ml
type aexp = | Const of int | Var of string | Power of (string * int) | Times of aexp list | Sum of aexp list let rec reverse (lst : 'b list) : 'a list = match lst with [] -> lst | hd :: tl -> reverse tl @ [ hd ] let rec diff ((exp : aexp), (x : string)) : aexp = match exp with | Const a -> Const 0 ...
null
https://raw.githubusercontent.com/kupl/LearnML/c98ef2b95ef67e657b8158a2c504330e9cfb7700/result/cafe2/diff/sub156/original.ml
ocaml
type aexp = | Const of int | Var of string | Power of (string * int) | Times of aexp list | Sum of aexp list let rec reverse (lst : 'b list) : 'a list = match lst with [] -> lst | hd :: tl -> reverse tl @ [ hd ] let rec diff ((exp : aexp), (x : string)) : aexp = match exp with | Const a -> Const 0 ...
a956182f7d32ef34e4e849ac745a0bf37e6a439f404ed70c33b4d42df4ef33ab
somnusand/Poker
metrics_dummy.erl
%%% -*- erlang -*- %%% This file is part of metrics released under the BSD license . %%% See the LICENSE for more information. %%% %%% @doc dummy metric module %%% -module(metrics_dummy). -export([ new/2, delete/1, increment_counter/1, increment_counter/2, decrement_counter/1, decrement_coun...
null
https://raw.githubusercontent.com/somnusand/Poker/4934582a4a37f28c53108a6f6e09b55d21925ffa/server/deps/metrics/src/metrics_dummy.erl
erlang
-*- erlang -*- See the LICENSE for more information. @doc dummy metric module
This file is part of metrics released under the BSD license . -module(metrics_dummy). -export([ new/2, delete/1, increment_counter/1, increment_counter/2, decrement_counter/1, decrement_counter/2, update_histogram/2, update_gauge/2, update_meter/2]). new(_, _) -> ok. delet...
beba0259f8269a5964c65b906b2549bc9a409a5a110b9841f623172f8ddc29b1
erszcz/learning
elixir_libs_qwe_mod.erl
-module(elixir_libs_qwe_mod). -compile([export_all]). f() -> ok.
null
https://raw.githubusercontent.com/erszcz/learning/b21c58a09598e2aa5fa8a6909a80c81dc6be1601/erlang-elixir-libs/src/qwe/elixir_libs_qwe_mod.erl
erlang
-module(elixir_libs_qwe_mod). -compile([export_all]). f() -> ok.
eb8cc2e35ff098fee62f3797b8fd634cbf725c149a1aa8364734ea835ab5dcd5
ahrefs/atd
biniou.mli
(** Biniou-specific options derived from ATD annotations. *) type biniou_int = [ `Svint | `Uvint | `Int8 | `Int16 | `Int32 | `Int64 ] type biniou_float = [ `Float32 | `Float64 ] type biniou_list = [ `Array | `Table ] type biniou_field = { biniou_unwrapped : bool } (** Biniou-specific options that decorate each...
null
https://raw.githubusercontent.com/ahrefs/atd/d225acd3d0f6c2acda7c103286874b2541470eb1/atdgen/src/biniou.mli
ocaml
* Biniou-specific options derived from ATD annotations. * Biniou-specific options that decorate each kind of ATD AST node.
type biniou_int = [ `Svint | `Uvint | `Int8 | `Int16 | `Int32 | `Int64 ] type biniou_float = [ `Float32 | `Float64 ] type biniou_list = [ `Array | `Table ] type biniou_field = { biniou_unwrapped : bool } type biniou_repr = | Unit | Bool | Int of biniou_int | Float of biniou_float | String | Sum ...
82562a75c6845ad97f6d11f86725fdcdc35371e06a4645ecea9de509906becfa
labra/Haws
TestSemantics.hs
module Haws.ShEx.TestSemantics where import Haws.ShEx.Shape import Haws.ShEx.Result import Haws.ShEx.Semantics import Haws.ShEx.Context import Haws.ShEx.Typing hiding (main,tests) import Haws.ShEx.RDFModel import qualified Test.HUnit as Test import Data.Set (Set) import qualified Data.Set as Set import Haws.Monads.Bac...
null
https://raw.githubusercontent.com/labra/Haws/2417adc37522994e2bbb8e9e397481a1f6f4f038/src/Haws/ShEx/TestSemantics.hs
haskell
Rules rab a,b a|b a?b a?b? (ab)?c+ Some instances raob r_ab_qcp (ab)?c+ Testing references l1 { <a> xsd:string, <b> @<l2> } l2 { <c> xsd:string } -------------------------------------------------- -
module Haws.ShEx.TestSemantics where import Haws.ShEx.Shape import Haws.ShEx.Result import Haws.ShEx.Semantics import Haws.ShEx.Context import Haws.ShEx.Typing hiding (main,tests) import Haws.ShEx.RDFModel import qualified Test.HUnit as Test import Data.Set (Set) import qualified Data.Set as Set import Haws.Monads.Bac...
630988ca44b32b58ad60d8b86fe1515614ab9a1e819820a53232d45c255de9e0
imdea-software/leap
ParamInv.ml
(***********************************************************************) (* *) LEAP (* *) , IMDEA ...
null
https://raw.githubusercontent.com/imdea-software/leap/5f946163c0f80ff9162db605a75b7ce2e27926ef/src/paraminv/ParamInv.ml
ocaml
********************************************************************* ...
LEAP , IMDEA Software Institute Copyright 2011 IMDEA Software Institute Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compl...
1c35a47ead435762a6977f40eb84fa6600bc18d9a65be0ebd1925e9b7d419f78
kaznum/programming_in_ocaml_exercise
sample.ml
let rec sum_list = function [] -> 0 | n :: rest -> n + (sum_list rest);; sum_list [1; 2; 3];; sum_list (1::2::3::[]);; let rec length = function [] -> 0 | _ :: rest -> 1 + length rest;; length [1; 2; 3];; let rec append l1 l2 = match l1 with [] -> l2 | v :: l1' -> v :: (append l1' l2);; append [1;2;3...
null
https://raw.githubusercontent.com/kaznum/programming_in_ocaml_exercise/6f6a5d62a7a87a1c93561db88f08ae4e445b7d4e/ch5/sample.ml
ocaml
the following definition is not effective the following definition is more effective then reverse above the sorting
let rec sum_list = function [] -> 0 | n :: rest -> n + (sum_list rest);; sum_list [1; 2; 3];; sum_list (1::2::3::[]);; let rec length = function [] -> 0 | _ :: rest -> 1 + length rest;; length [1; 2; 3];; let rec append l1 l2 = match l1 with [] -> l2 | v :: l1' -> v :: (append l1' l2);; append [1;2;3...
1a55738717c3393c82349b2e8045f18b64f97c10e68930a5b9eee8d6f7b8177a
mbg/hoop
CodeGen.hs
module Language.Hoop.CodeGen ( module Language.Hoop.CodeGen.Decls, module Language.Hoop.CodeGen.New ) where import Language.Hoop.CodeGen.Decls import Language.Hoop.CodeGen.New
null
https://raw.githubusercontent.com/mbg/hoop/98a53bb1db66b06f9b5d3e5242eed336f908ad18/src/Language/Hoop/CodeGen.hs
haskell
module Language.Hoop.CodeGen ( module Language.Hoop.CodeGen.Decls, module Language.Hoop.CodeGen.New ) where import Language.Hoop.CodeGen.Decls import Language.Hoop.CodeGen.New
0e41cf60e15e29c862a48714e21c16110d28d1ee223d7ce81297a710d4446934
lazamar/easy-deploy
Lib.hs
module Lib (main) where import Cli (Arguments (_commands, _ports, _target, _volumes), Port (Port), Volume (Volume)) import qualified Cli import Command (Command, run, safeIO) import Control.Concurrent (threadDelay) import ...
null
https://raw.githubusercontent.com/lazamar/easy-deploy/7750f007be4e609a9fd7165c1011a221b23f486a/src/Lib.hs
haskell
Constants This wait allows some time for the server running in the new image to kick up and be ready to answer to requests SMOKE TESTS GO HERE ========================== PROXY ========================== This will run the proxy if it isn't running and do nothing if it already is. ...
module Lib (main) where import Cli (Arguments (_commands, _ports, _target, _volumes), Port (Port), Volume (Volume)) import qualified Cli import Command (Command, run, safeIO) import Control.Concurrent (threadDelay) import ...
a19905bf95d993f0c4816b8bea11ea525d29579e76138308eff560eea123527e
ryanpbrewster/haskell
079.hs
079.hs - A common security method used for online banking is to ask the user for - three random characters from a passcode . For example , if the passcode was - 531278 , they may ask for the 2nd , 3rd , and 5th characters ; the expected - reply would be : 317 . - - The text file 079.in contains fift...
null
https://raw.githubusercontent.com/ryanpbrewster/haskell/6edd0afe234008a48b4871032dedfd143ca6e412/project-euler/src/Old/079.hs
haskell
- In order to solve this, I'm going to assume that the passcode does not - have repeated digits. isSubsequence big small
079.hs - A common security method used for online banking is to ask the user for - three random characters from a passcode . For example , if the passcode was - 531278 , they may ask for the 2nd , 3rd , and 5th characters ; the expected - reply would be : 317 . - - The text file 079.in contains fift...
7861faf823692ebcbd4e5c3248202c100f04cfe41e85cd4120bc106333300b5b
imrehg/ypsilon
r6rs-aux.scm
Ypsilon Scheme System Copyright ( c ) 2004 - 2009 Y.FUJITA / LittleWing Company Limited . See license.txt for terms and conditions of use . (define max (lambda args (cond ((null? args) (assertion-violation 'max "required at least 1, but 0 argument given")) ((real-valued? (car args)) ...
null
https://raw.githubusercontent.com/imrehg/ypsilon/e57a06ef5c66c1a88905b2be2fa791fa29848514/heap/boot/r6rs-aux.scm
scheme
Ypsilon Scheme System Copyright ( c ) 2004 - 2009 Y.FUJITA / LittleWing Company Limited . See license.txt for terms and conditions of use . (define max (lambda args (cond ((null? args) (assertion-violation 'max "required at least 1, but 0 argument given")) ((real-valued? (car args)) ...
63a42a083b221528f5d6e799e3e264ec1948752951c63a85d762d2627cbd6b34
IvanIvanov/fp2013
lab6.scm
(define matr (list (list 1 2 3) (list 4 5 6) (list 7 8 9))) (define E (list (list 1 0 0) (list 0 1 0) (list 0 0 1))) (define (nth l index) (define (nth-iter l index elem-so-far) (cond ( (= index 0) elem-so-far) (else (nth-iter (cdr l) (- index 1) (car l))))) (nth-ite...
null
https://raw.githubusercontent.com/IvanIvanov/fp2013/2ac1bb1102cb65e0ecbfa8d2fb3ca69953ae4ecf/lab2-and-3/lab6.scm
scheme
връща колоната с даден index връща главния диагонал на квадратната матрица M транспониране на матрица
(define matr (list (list 1 2 3) (list 4 5 6) (list 7 8 9))) (define E (list (list 1 0 0) (list 0 1 0) (list 0 0 1))) (define (nth l index) (define (nth-iter l index elem-so-far) (cond ( (= index 0) elem-so-far) (else (nth-iter (cdr l) (- index 1) (car l))))) (nth-ite...
fcf4d1d2c14dd4d5ff8f683674656922925dce9d67d32bc1b6b3fa4371abf05c
rbkmoney/hellgate
hg_dummy_inspector.erl
-module(hg_dummy_inspector). -behaviour(hg_woody_wrapper). -export([handle_function/3]). -behaviour(hg_test_proxy). -export([get_service_spec/0]). -include_lib("damsel/include/dmsl_proxy_inspector_thrift.hrl"). -include_lib("hellgate/include/invoice_events.hrl"). -spec get_service_spec() -> hg_proto:service_spec(...
null
https://raw.githubusercontent.com/rbkmoney/hellgate/c3e7413db06296a72fb64268eca98e63379d2ef5/apps/hellgate/test/hg_dummy_inspector.erl
erlang
-module(hg_dummy_inspector). -behaviour(hg_woody_wrapper). -export([handle_function/3]). -behaviour(hg_test_proxy). -export([get_service_spec/0]). -include_lib("damsel/include/dmsl_proxy_inspector_thrift.hrl"). -include_lib("hellgate/include/invoice_events.hrl"). -spec get_service_spec() -> hg_proto:service_spec(...
7878ac5c5dab380a7756abecc97074e9189312e5e447a52edb631272838ca94a
erlang/erlide_kernel
erlide_open.erl
%% Author: jakob Created : Mar 23 , 2006 %% Description: -module(erlide_open). -author(''). %% %% Exported Functions %% -export([open/3, find_first_var/2, get_source_from_module/2, get_external_modules/2, get_external_module/2, get_external_module_tree/1, get_ext...
null
https://raw.githubusercontent.com/erlang/erlide_kernel/763a7fe47213f374b59862fd5a17d5dcc2811c7b/ide/apps/erlide_ide/src/erlide_open.erl
erlang
Author: jakob Description: Exported Functions TODO (JC) there are some code duplication in external modules (and includes) handling Include files API Functions Local Functions add new items, e.g. gen_server calls ?D(R), ?D(lists:flatten(io_lib:format(">> ~p~n", [L]))),
Created : Mar 23 , 2006 -module(erlide_open). -author(''). -export([open/3, find_first_var/2, get_source_from_module/2, get_external_modules/2, get_external_module/2, get_external_module_tree/1, get_external_include/2, get_external_1/3, get_otp_...
de32218e13d538c69322296fc1424e6263fe102c427339ed43bc693b9bb7b9c7
Zulu-Inuoe/clution
os.lisp
;;;; --------------------------------------------------------------------------- ;;;; Access to the Operating System (uiop/package:define-package :uiop/os (:use :uiop/common-lisp :uiop/package :uiop/utility) (:export #:featurep #:os-unix-p #:os-macosx-p #:os-windows-p #:os-genera-p #:detect-os ;; features #:...
null
https://raw.githubusercontent.com/Zulu-Inuoe/clution/b72f7afe5f770ff68a066184a389c23551863f7f/cl-clution/qlfile-libs/uiop-3.3.1/os.lisp
lisp
--------------------------------------------------------------------------- Access to the Operating System features environment variables implementation identifier Windows shortcut support Features You may bind *features* with a copy of what your target system offers to test its properties. OS-MACOSX is not mu...
(uiop/package:define-package :uiop/os (:use :uiop/common-lisp :uiop/package :uiop/utility) (:export #:os-cond #:implementation-type #:*implementation-type* #:operating-system #:architecture #:lisp-version-string #:hostname #:getcwd #:chdir #:read-null-terminated-string #:read-little-endian #:pars...
e87dad4a7ba91bdfe55f50ed4ed390f5b0ee0215baae41c8d43245b44eb26ad5
schemedoc/ffi-cookbook
cpuid-gambit.scm
(define (writeln x) (write x) (newline)) (define %cpuid (c-lambda (int) scheme-object #<<c-lambda-end unsigned int abcd[4]; asm("cpuid;" "mov %%eax, (%0);" "mov %%ebx, 4(%0);" "mov %%ecx, 8(%0);" "mov %%edx, 12(%0);" ...
null
https://raw.githubusercontent.com/schemedoc/ffi-cookbook/75d3594135b5a4c5deea9a064a1aef5a95312f85/assembly/cpuid-gambit.scm
scheme
i++ ) {
(define (writeln x) (write x) (newline)) (define %cpuid (c-lambda (int) scheme-object #<<c-lambda-end asm("cpuid;" "mov %%eax, (%0);" "mov %%ebx, 4(%0);" "mov %%ecx, 8(%0);" "mov %%edx, 12(%0);" : : "D"(abcd),...
9259715db3b842961ff83727230855dd162a4f1ca51444949501536a9d64b576
jessealama/laramie
characters.rkt
#lang racket/base (require racket/require (multi-in ".." ("types.rkt" "tokenize.rkt" "tokens.rkt" "characters.rkt"))) (module+ test (require rackunit racket/format syntax/parse/define)) (module+ test (de...
null
https://raw.githubusercontent.com/jessealama/laramie/89dee24f6977d668ee1e1ae958c5644d1d15be2c/laramie-lib/laramie/tokenizer/tests/characters.rkt
racket
))))) ))) ) )) )) ))) ))) ))) )) )) ))) ) . #\�)))) ))))) ))))) ))))) ))))
#lang racket/base (require racket/require (multi-in ".." ("types.rkt" "tokenize.rkt" "tokens.rkt" "characters.rkt"))) (module+ test (require rackunit racket/format syntax/parse/define)) (module+ test (de...
9233e60702284dc4bddae3a1da59b515c97b693042786d9f7abf20ed56b393eb
shirok/Gauche
primsyn.scm
;;; ;;; primitive syntax test ;;; (use gauche.test) (test-start "primitive syntax") ;; We use prim-test instead of test, for error-handler is not tested yet. NB : errsyn.scm has tests for invalid syntax . It is run after ;; error-handler and macro tests. ;;-------------------------------------------------------...
null
https://raw.githubusercontent.com/shirok/Gauche/b2fc4010b46d67809cf0e66b25f326ff4a3c92d7/test/primsyn.scm
scheme
primitive syntax test We use prim-test instead of test, for error-handler is not tested yet. error-handler and macro tests. ---------------------------------------------------------------- ---------------------------------------------------------------- -------------------------------------------------------------...
(use gauche.test) (test-start "primitive syntax") NB : errsyn.scm has tests for invalid syntax . It is run after (test-section "conditionals") (prim-test "if" 5 (lambda () (if #f 2 5))) (prim-test "if" 2 (lambda () (if (not #f) 2 5))) (prim-test "and" #t (lambda () (and))) (prim-test "and" 5 (lambda () (...
0aac1a30cf9d25aa214086ba06ab1853874742b53a360e5a17aca8534ac41f4b
Risto-Stevcev/bastet
Test_JsDefault.ml
open BsMocha.Mocha module TestDefault = Test.Default (MochaI.Test) (JsVerifyI.Quickcheck) ;; describe "Default" (fun () -> MochaI.run TestDefault.suites)
null
https://raw.githubusercontent.com/Risto-Stevcev/bastet/030db286f57d2e316897f0600d40b34777eabba6/bastet_js/test/Test_JsDefault.ml
ocaml
open BsMocha.Mocha module TestDefault = Test.Default (MochaI.Test) (JsVerifyI.Quickcheck) ;; describe "Default" (fun () -> MochaI.run TestDefault.suites)
8ecb2dc42e4a21b345c5460e08254b68d71c7ac61d9f8c62d140b96910a0d167
flavioc/cl-hurd
file-exec.lisp
(in-package :hurd-translator) (defcfun ("do_exec_exec" %do-exec-exec) pid-t (execserver port) (file port) (file-type msg-type-name) (oldtask task) (flags exec-flags) (argv :pointer) (argvlen msg-type-number) (envp :pointer) (envplen msg-type-number) (dtable :pointer) (dtable-type msg-type-name...
null
https://raw.githubusercontent.com/flavioc/cl-hurd/982232f47d1a0ff4df5fde2edad03b9df871470a/translator/interfaces/file-exec.lisp
lisp
(in-package :hurd-translator) (defcfun ("do_exec_exec" %do-exec-exec) pid-t (execserver port) (file port) (file-type msg-type-name) (oldtask task) (flags exec-flags) (argv :pointer) (argvlen msg-type-number) (envp :pointer) (envplen msg-type-number) (dtable :pointer) (dtable-type msg-type-name...
a903a526234a392e66dac76377aa20cb310db8aba2738c42db3edac87975928c
ocaml-multicore/parafuzz
predef.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-multicore/parafuzz/6a92906f1ba03287ffcb433063bded831a644fd5/typing/predef.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Types val type_int: type_expr val type_char: type_expr val type_string: type_expr val type_bytes: ...
3da6720057616704ca5b7c3f693613c8e598d2638f8c993baa6a4f9eea3ba353
theodormoroianu/SecondYearCourses
LambdaChurch_20210415164352.hs
module LambdaChurch where import Data.Char (isLetter) import Data.List ( nub ) class ShowNice a where showNice :: a -> String class ReadNice a where readNice :: String -> (a, String) data Variable = Variable { name :: String , count :: Int } deriving (Show, Eq, Ord) var :: String -> Variable var ...
null
https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/5e359e6a7cf588a527d27209bf53b4ce6b8d5e83/FLP/Laboratoare/Lab%209/.history/LambdaChurch_20210415164352.hs
haskell
alpha-equivalence subst u x t defines [u/x]t, i.e., substituting u for x in t This substitution avoids variable captures so it is safe to be used when reducing terms with free variables (e.g., if evaluating inside lambda abstractions) ^ substitution term ^ variable to be substitutes ^ term in which the substit...
module LambdaChurch where import Data.Char (isLetter) import Data.List ( nub ) class ShowNice a where showNice :: a -> String class ReadNice a where readNice :: String -> (a, String) data Variable = Variable { name :: String , count :: Int } deriving (Show, Eq, Ord) var :: String -> Variable var ...
2e96f2b67a067f2d0cad7ca7af9f180b5d6c6783cfe4521ed3803f34e2a2180f
resttime/cl-liballegro
fullscreen-modes.lisp
(in-package #:cl-liballegro) Fullscreen modes (defcfun ("al_get_display_mode" get-display-mode) :pointer (index :int) (mode :pointer)) (defcfun ("al_get_num_display_modes" get-num-display-modes) :int)
null
https://raw.githubusercontent.com/resttime/cl-liballegro/0f8a3a77d5c81fe14352d9a799cba20e1a3a90b4/src/ffi-functions/fullscreen-modes.lisp
lisp
(in-package #:cl-liballegro) Fullscreen modes (defcfun ("al_get_display_mode" get-display-mode) :pointer (index :int) (mode :pointer)) (defcfun ("al_get_num_display_modes" get-num-display-modes) :int)
2fea79b74409f79c84c5deeb6c59e16a9e36cc0d65c531a2e24abaca950cb6bb
kiranshila/Doplarr
state.clj
(ns doplarr.state (:require [clojure.core.cache.wrapped :as cache])) (def cache (cache/ttl-cache-factory {} :ttl 900000)) (def discord (atom nil)) (def config (atom nil))
null
https://raw.githubusercontent.com/kiranshila/Doplarr/6e8da5dde51ce8d92d18b7971383ec0b588ff426/src/doplarr/state.clj
clojure
(ns doplarr.state (:require [clojure.core.cache.wrapped :as cache])) (def cache (cache/ttl-cache-factory {} :ttl 900000)) (def discord (atom nil)) (def config (atom nil))
495014e437286cd554cb6df1fe48f0e6490b07a6b56f9f2e337b8262d4de32c1
racket/typed-racket
json-hash.rkt
#lang typed/racket/base (require typed/json) (: jsx JSExpr) (define jsx #hasheq((a . "val1") (b . "val2") (c . "val3")))
null
https://raw.githubusercontent.com/racket/typed-racket/0236151e3b95d6d39276353cb5005197843e16e4/typed-racket-test/succeed/json-hash.rkt
racket
#lang typed/racket/base (require typed/json) (: jsx JSExpr) (define jsx #hasheq((a . "val1") (b . "val2") (c . "val3")))
d88d753d6a4521f860373bdc10abc1920c4a22261f0b89936a22d9376a815765
awslabs/s2n-bignum
bignum_sqr_4_8.ml
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved . * SPDX - License - Identifier : Apache-2.0 OR ISC * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 OR ISC *) (* =================================================================...
null
https://raw.githubusercontent.com/awslabs/s2n-bignum/824c15f908d7a343af1b2f378cfedd36e880bdde/x86/proofs/bignum_sqr_4_8.ml
ocaml
========================================================================= ========================================================================= *** print_literal_from_elf "x86/fastmul/bignum_sqr_4_8.o";; *** PUSH (% rbp) PUSH (% r12) PUSH (% r13) ADCX (% r9) (% rax) ADCX (% r10) (% rax) ADCX (% r11)...
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved . * SPDX - License - Identifier : Apache-2.0 OR ISC * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 OR ISC *) MULX - based 4x4->8 squaring . ...
cced512b4de08820ce9ecd1ce0b970d82b5e4a147dfa1b47eb669aff6cba683e
McCLIM/McCLIM
creating-assoc.lisp
(in-package #:creating-assoc) (defmacro creating-assoc (item alist &environment env) "assoc that creates the requested alist item on-the-fly if not yet existing" (multiple-value-bind (dummies vals new setter getter) (get-setf-expansion alist env) (let ((object (gensym "object-"))) ...
null
https://raw.githubusercontent.com/McCLIM/McCLIM/c079691b0913f8306ceff2620b045b6e24e2f745/Extensions/conditional-commands/creating-assoc.lisp
lisp
Example: (list (assoc 'foo list) (assoc 'baz list) (creating-assoc 'baz list) (assoc 'baz list) list)) NIL (creating-assoc 'baz list) expands to: (OR (ASSOC #:|object-15058| #:G15057) (FIRST (...
(in-package #:creating-assoc) (defmacro creating-assoc (item alist &environment env) "assoc that creates the requested alist item on-the-fly if not yet existing" (multiple-value-bind (dummies vals new setter getter) (get-setf-expansion alist env) (let ((object (gensym "object-"))) ...
9079a3b41d2a413312500554273a521839834adbb399c9b3089e5e1fea0058a3
manuel-serrano/bigloo
gstobject.scm
;*=====================================================================*/ ;* .../prgm/project/bigloo/api/gstreamer/src/Llib/gstobject.scm */ ;* ------------------------------------------------------------- */ * Author : * / * Creation : Sun Dec 30...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/eb650ed4429155f795a32465e009706bbf1b8d74/api/gstreamer/src/Llib/gstobject.scm
scheme
*=====================================================================*/ * .../prgm/project/bigloo/api/gstreamer/src/Llib/gstobject.scm */ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ *===========================...
* Author : * / * Creation : Sun Dec 30 16:06:35 2007 * / * Last change : Sun Nov 18 15:02:12 2012 ( serrano ) * / * Copyright : 2007 - 12 * / * GstObject wrapper ...
ba36836a2ee3ebd6f4b39d082471f7c071bdeb24995c59546f7e23b9b271f2d5
FlowForwarding/lincx
linc_max_table_features.erl
%%------------------------------------------------------------------------------ Copyright 2012 FlowForwarding.org %% 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 %%...
null
https://raw.githubusercontent.com/FlowForwarding/lincx/7795923b51fa1e680511669f4a27404b2ed1f1dc/apps/linc_max/src/linc_max_table_features.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, eithe...
Copyright 2012 FlowForwarding.org Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author Erlang Solutions Ltd. < > @author Cloudozer LLP < > 2012 FlowForwarding.org -module(linc_max_table_features). -export([han...
a2f90f8683efc7d553d0e671c2553a01819baea17a5c7c09a9d71e4087908220
cl21/cl21
cons.lisp
(in-package :cl-user) (defpackage cl21.core.cons (:use :cl) (:shadow :member :member-if :nth :nthcdr) (:import-from :cl21.core.sequence :abstract-sequence :abstract-list :drop-while :make-sequence-like ...
null
https://raw.githubusercontent.com/cl21/cl21/c36644f3b6ea4975174c8ce72de43a4524dd0696/src/core/cons.lisp
lisp
Abstract List Abstract List Function: member, member-if Generic Function: abstract-member, abstract-member-if Function: flatten Generic Function: abstract-flatten Function: last-cons Generic Function: abstract-last-cons
(in-package :cl-user) (defpackage cl21.core.cons (:use :cl) (:shadow :member :member-if :nth :nthcdr) (:import-from :cl21.core.sequence :abstract-sequence :abstract-list :drop-while :make-sequence-like ...
90f61b5a34eb37a7a2a1f03243f66be06f6bf6e367c4ba425ffa75fa11cf0d44
Tyruiop/syncretism
time.clj
(ns syncretism.time (:require [java-time :as jt]) (:import [java.sql Timestamp] [java.time ZoneId])) (defn cur-ny-time "Utility function to get the current time in NYC." [] (-> (System/currentTimeMillis) (Timestamp.) .toLocalDateTime (.atZone (ZoneId/systemDefault)) (jt/with-...
null
https://raw.githubusercontent.com/Tyruiop/syncretism/805961af501121d3f79cd5395ae31811757f7cbf/syncretism/src/syncretism/time.clj
clojure
(ns syncretism.time (:require [java-time :as jt]) (:import [java.sql Timestamp] [java.time ZoneId])) (defn cur-ny-time "Utility function to get the current time in NYC." [] (-> (System/currentTimeMillis) (Timestamp.) .toLocalDateTime (.atZone (ZoneId/systemDefault)) (jt/with-...