_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
08d9b225706175edb298a6a6f1b19f4bc42bd1bd221b2c435380a19baad4bc01
abtv/tech-radar
state.cljs
(ns tech-radar.state) (def app-state (atom {:settings {:menu-items {:trends {:href "#/trends" :name "Trends"} :jobs {:href "#/topic/jobs" :nam...
null
https://raw.githubusercontent.com/abtv/tech-radar/167c1c66ff2cf7140fe1de247d67a7134b0b1748/src/cljs/tech-radar/state.cljs
clojure
(ns tech-radar.state) (def app-state (atom {:settings {:menu-items {:trends {:href "#/trends" :name "Trends"} :jobs {:href "#/topic/jobs" :nam...
83c5d2028f21d63cd199c9bce8b76d97b939e7cd3b9380a15ff4585f9e26524c
OlivierSohn/hamazed
Score.hs
# LANGUAGE NoImplicitPrelude # # LANGUAGE DeriveGeneric # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE FlexibleContexts # {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DeriveFunctor # module Imj.Music.Score ( Score(..) , mkScore , merg...
null
https://raw.githubusercontent.com/OlivierSohn/hamazed/c0df1bb60a8538ac75e413d2f5bf0bf050e5bc37/imj-audio/src/Imj/Music/Score.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE DeriveDataTypeable # | A 'Score' is a list of 'Voice's must be issued for the same Voice | Contains the instructions to play a voice ('Instrument' and 'Instruction's) Index (in 'voiceInstructions') of the 'Instruction' that will be executed during the next time quantum. ^...
# LANGUAGE NoImplicitPrelude # # LANGUAGE DeriveGeneric # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE FlexibleContexts # # LANGUAGE DeriveFunctor # module Imj.Music.Score ( Score(..) , mkScore , mergeScores , scoreLength , VoiceId(..) , Voice(..) ...
ceb9e45b34f61d56fcd3d159323761f02a675a114217a833b6dacd10af7156ce
digital-asset/ghc
DsMeta.hs
# LANGUAGE CPP , TypeFamilies # # LANGUAGE FlexibleContexts # # LANGUAGE ViewPatterns # ----------------------------------------------------------------------------- -- ( c ) The University of Glasgow 2006 -- The purpose of this module is to transform an HsExpr into a CoreExpr which when evaluated , returns a ( ...
null
https://raw.githubusercontent.com/digital-asset/ghc/b20bf6924c8dac0dc59f12c921579029b8ee514e/compiler/deSugar/DsMeta.hs
haskell
--------------------------------------------------------------------------- It also defines a bunch of knownKeyNames, in the same way as is done in prelude/PrelNames. It's much more convenient to do it here, because a Royal Pain (triggers other recompilation). ----------------------------------------------------...
# LANGUAGE CPP , TypeFamilies # # LANGUAGE FlexibleContexts # # LANGUAGE ViewPatterns # ( c ) The University of Glasgow 2006 The purpose of this module is to transform an HsExpr into a CoreExpr which when evaluated , returns a ( Meta . Q Meta . Exp ) computation analogous to the input HsExpr . We do this in th...
a62b0ca484e77c969788b5a90322edd1dd1992a7dc1d2c334646bd17aa111007
xapi-project/xenopsd
softaffinity.ml
* Copyright ( C ) 2019 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 described in fi...
null
https://raw.githubusercontent.com/xapi-project/xenopsd/837d1ce49f2bb68092298a3d0a3dbaeb82c10058/lib/softaffinity.ml
ocaml
let host = NUMA.apply_mask host vm.NUMAResource.affinity in [vm] doesn't fit on these nodes
* Copyright ( C ) 2019 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 described in fi...
79f0f85664310173094d16c5d13d6bb7c6d98ecca36aab2b312d13ee20949355
tsloughter/kuberl
kuberl_v1_resource_quota.erl
-module(kuberl_v1_resource_quota). -export([encode/1]). -export_type([kuberl_v1_resource_quota/0]). -type kuberl_v1_resource_quota() :: #{ 'apiVersion' => binary(), 'kind' => binary(), 'metadata' => kuberl_v1_object_meta:kuberl_v1_object_meta(), 'spec' => kuberl_v1_resource_quota_spec:kuberl...
null
https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_v1_resource_quota.erl
erlang
-module(kuberl_v1_resource_quota). -export([encode/1]). -export_type([kuberl_v1_resource_quota/0]). -type kuberl_v1_resource_quota() :: #{ 'apiVersion' => binary(), 'kind' => binary(), 'metadata' => kuberl_v1_object_meta:kuberl_v1_object_meta(), 'spec' => kuberl_v1_resource_quota_spec:kuberl...
82673576ca114b4b41875f7ac40d0076f1e80d8cd1e65fcbf2f391da57231c68
HaskellCNOrg/snaplet-oauth
Site.hs
{-# LANGUAGE OverloadedStrings #-} ------------------------------------------------------------------------------ -- | This module is where all the routes and handlers are defined for your -- site. The 'app' function is the initializer that combines everything -- together and is exported by this module. module Site ...
null
https://raw.githubusercontent.com/HaskellCNOrg/snaplet-oauth/17318ef528512370b892b6cb91de7c5e6e1d7814/example/src/Site.hs
haskell
# LANGUAGE OverloadedStrings # ---------------------------------------------------------------------------- | This module is where all the routes and handlers are defined for your site. The 'app' function is the initializer that combines everything together and is exported by this module. ---------------------------...
module Site ( app ) where import Control.Applicative import Data.ByteString (ByteString) import qualified Data.HashMap.Strict as M import Data.Maybe import qualified Data.Text as T import ...
aa9df1df58d1c58002f924b912aa48def9eaf69aaf429dfc01726220ef6ae0a2
RichiH/git-annex
Network.hs
network functions - - Copyright 2012 < > - - License : BSD-2 - clause - - Copyright 2012 Joey Hess <> - - License: BSD-2-clause -} # OPTIONS_GHC -fno - warn - tabs # module Utility.Network where import Utility.Process import Utility.Exception import Control.Applicative import Prelude {- Ha...
null
https://raw.githubusercontent.com/RichiH/git-annex/bbcad2b0af8cd9264d0cb86e6ca126ae626171f3/Utility/Network.hs
haskell
Haskell lacks uname(2) bindings, except in the - Bindings.Uname addon. Rather than depend on that, - use uname -n when available.
network functions - - Copyright 2012 < > - - License : BSD-2 - clause - - Copyright 2012 Joey Hess <> - - License: BSD-2-clause -} # OPTIONS_GHC -fno - warn - tabs # module Utility.Network where import Utility.Process import Utility.Exception import Control.Applicative import Prelude getHo...
50a565a1c7a9efd554900e6d05ec2bf15df4da92b4c5eab09244dac7450e922a
Novus-School/novus
recipe_tests.clj
(ns novus.recipe-tests (:require [clojure.test :refer :all] [novus.server :refer :all] [novus.test-system :as ts])) (defn recipe-fixture [f] (ts/create-auth0-test-user {:connection "Username-Password-Authentication" :email "" :password "s#m3R4nd0m-pass"}) (reset! ts...
null
https://raw.githubusercontent.com/Novus-School/novus/c65b37a654173df52084253651edc87033409f4b/novus/src/test/novus/recipe_tests.clj
clojure
(ns novus.recipe-tests (:require [clojure.test :refer :all] [novus.server :refer :all] [novus.test-system :as ts])) (defn recipe-fixture [f] (ts/create-auth0-test-user {:connection "Username-Password-Authentication" :email "" :password "s#m3R4nd0m-pass"}) (reset! ts...
7a303d62b1876ce114a1f704b6af0a2841870290bd71ce2c2970939d62240d60
mhaemmerle/excel-to-json
cli.clj
(ns excel-to-json.cli (:gen-class) (:require [clojure.string :as string] [excel-to-json.core :as core] [clojure.tools.cli :as tools.cli]) (:import java.io.File)) (def cli-options [[nil "--disable-watching" "Disable watching" :default false] ["-w" "--wrapper WRAPPER" "Wrap list in...
null
https://raw.githubusercontent.com/mhaemmerle/excel-to-json/1ddbe9e48519cdeb095b849f6bc74499262f2694/src/excel_to_json/cli.clj
clojure
;; An option with a required argument [["-p" "--port PORT" "Port number" ;; A non-idempotent option ["-v" nil "Verbosity level" :id :verbosity ;; A boolean option defaulting to nil ["-h" "--help"]]) Handle help and error conditions Execute program with options
(ns excel-to-json.cli (:gen-class) (:require [clojure.string :as string] [excel-to-json.core :as core] [clojure.tools.cli :as tools.cli]) (:import java.io.File)) (def cli-options [[nil "--disable-watching" "Disable watching" :default false] ["-w" "--wrapper WRAPPER" "Wrap list in...
abdb91c32cb2d1b0197586bf1281855f7b9ab442c1eebc61fce03b77101bbd5b
softwarelanguageslab/maf
R5RS_scp1_university-3.scm
; Changes: * removed : 0 * added : 3 * swaps : 0 * negated predicates : 1 ; * swapped branches: 0 ; * calls to id fun: 0 (letrec ((result ()) (display2 (lambda (i) (<change> () result) (set! result (cons i result)...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_scp1_university-3.scm
scheme
Changes: * swapped branches: 0 * calls to id fun: 0
* removed : 0 * added : 3 * swaps : 0 * negated predicates : 1 (letrec ((result ()) (display2 (lambda (i) (<change> () result) (set! result (cons i result)))) (newline2 (lambda () (se...
c81c59f5b474a7c1316190521e6016b44ebfa2d86148dad2aa87e42acb934ad8
brendanhay/gogol
Product.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/8cbceeaaba36a3c08712b2e272606161500fbe91/lib/services/gogol-poly/gen/Gogol/Poly/Internal/Product.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated * Asset * AssetImportMessage * File * Format * FormatComplexity * ImageError * ListLikedAssetsResponse * ListUserAssetsResponse * ObjParseError * PresentationParams * Quaternion * RemixInfo * StartAssetImportResponse *...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators...
20583d0a52ec30dfb75585d9c68e76778b811c3f88f73b3138b9a06bbce6653d
cyverse-archive/DiscoveryEnvironmentBackend
notifications.clj
(ns notification-agent.notifications (:use [notification-agent.common :only [parse-body parse-uuid string->long valid-email-addr]] [notification-agent.config] [notification-agent.messages] [notification-agent.time]) (:require [clojure.string :as string])) (defn- validate-long "Validates a...
null
https://raw.githubusercontent.com/cyverse-archive/DiscoveryEnvironmentBackend/7f6177078c1a1cb6d11e62f12cfe2e22d669635b/services/NotificationAgent/src/notification_agent/notifications.clj
clojure
(ns notification-agent.notifications (:use [notification-agent.common :only [parse-body parse-uuid string->long valid-email-addr]] [notification-agent.config] [notification-agent.messages] [notification-agent.time]) (:require [clojure.string :as string])) (defn- validate-long "Validates a...
97abbf15f5a0999701bacc9878ea7647341d72c7e820c071d82a5d9d15753eea
leonidas/lambda-webdev
Message.hs
# LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE DeriveGeneric # # LANGUAGE TypeOperators # # LANGUAGE DefaultSignatures # # LANGUAGE OverlappingInstances # module Network.WebSockets.Messaging.Message (Message(..)) where import Control.Monad (guard) import Con...
null
https://raw.githubusercontent.com/leonidas/lambda-webdev/0213745e6d2cd071007a158b1dc7a83f238bdc00/lib/Network/WebSockets/Messaging/Message.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE DeriveGeneric # # LANGUAGE TypeOperators # # LANGUAGE DefaultSignatures # # LANGUAGE OverlappingInstances # module Network.WebSockets.Messaging.Message (Message(..)) where import Control.Monad (guard) import Control.Applicative ((<|>)) import GHC...
c4a1e2c18716385b73988b3351326a14ed500d09c0ee88de87729f8e4bfd9ac0
3b/ci-example
code.lisp
(defpackage #:ci-example (:use #:cl) (:export #:run)) (in-package #:ci-example) (defun run (x) (+ 1 x))
null
https://raw.githubusercontent.com/3b/ci-example/b2312656fe9ccaced296474b08f0090376685196/code.lisp
lisp
(defpackage #:ci-example (:use #:cl) (:export #:run)) (in-package #:ci-example) (defun run (x) (+ 1 x))
58f011a12552054b92aa6c9f42b8408153cac954331d13dfb08b685e69b0b449
mgmillani/pictikz
Elements.hs
Copyright 2017 - 2018 This file is part of pictikz . pictikz 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. pi...
null
https://raw.githubusercontent.com/mgmillani/pictikz/3bae9db14a8563f5b2c97bb5d9d30ba54f75b62f/src/Pictikz/Elements.hs
haskell
(at your option) any later version. but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. along with pictikz. If not, see </>.
Copyright 2017 - 2018 This file is part of pictikz . pictikz 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 pictikz is distributed in the hope that it...
67c29752a37ecf9aa70307dea9b141662bbc99ced5ce3fd706350177a7dc7d27
zonotope/zanmi
authentication.clj
(ns zanmi.middleware.authentication (:require [zanmi.boundary.database :as db] [zanmi.boundary.signer :as signer] [zanmi.data.profile :as profile] [buddy.core.codecs :refer [bytes->str]] [buddy.core.codecs.base64 :as base64] [clojure.string :as string])) ;;...
null
https://raw.githubusercontent.com/zonotope/zanmi/26e448db2dfb1b5edb3cb6ca9e49d6ff8cac607c/src/zanmi/middleware/authentication.clj
clojure
header parsing ;; application authentication ;; user credential authentication ;; user reset token authentication ;;
(ns zanmi.middleware.authentication (:require [zanmi.boundary.database :as db] [zanmi.boundary.signer :as signer] [zanmi.data.profile :as profile] [buddy.core.codecs :refer [bytes->str]] [buddy.core.codecs.base64 :as base64] [clojure.string :as string])) (...
c616d75b70108d5a6957bd2e1340941f17dee4cd31d390c1043bdf33af916ff1
qitab/qmynd
basic-types.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Free Software published under an MIT - like license . See LICENSE ; ; ; ;;; ;;; Copyright ( c ) 2012 -...
null
https://raw.githubusercontent.com/qitab/qmynd/7e56daf73f0ed5f49a931c01af75fb874bcf3445/tests/basic-types.lisp
lisp
;;; ; ; ;;; ; ; ;;; ; ; ;;; prepare a stream with a...
(in-package :qmynd-test) (defmacro with-packet-input ((stream sequence) &body body) `(call-with-packet-input ,sequence (lambda (,stream) ,@body))) (defun call-with-packet-input (sequence fun) (funcall fun (qmynd-impl::make-my-packet-stream :source (flexi-streams:make-in-memory-input-stream...
9f6ba0ef16bd91d22b3d9fefc252dc95bd3f68773c288f5846fd7adaf131cf1a
mdedwards/slippery-chicken
second-law.lsp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; File: second-law.lsp ;;; Class Hierarchy : None ;;; Version : 1.0 ;;; ;;; Project: slippery chicken (algorithmic composition) ;;; ;;; Purpose: This file contains the data associated with the...
null
https://raw.githubusercontent.com/mdedwards/slippery-chicken/c1c11fadcdb40cd869d5b29091ba5e53c5270e04/doc/examples/second-law.lsp
lisp
File: second-law.lsp Project: slippery chicken (algorithmic composition) Purpose: This file contains the data associated with the slippery chicken User Guide tutorial for Intra-Phrasal Looping. **** This file is part of slippery-chicken ...
Class Hierarchy : None Version : 1.0 Author : Creation date : 23rd November 2011 $ $ Last modified : 16:24:45 Tue Mar 15 2016 GMT SVN ID : $ I d : second-law.lsp 5627 2016 - 03 - 23 14:37:22Z medward2 $ Licence : Copyright ( c ) 2010 Public Lice...
bc56aa2085f6421071de79d85ad69e7516abf5eb2558ff6ec6cf7793bdf856ae
valis/hoq
Parser.hs
module Syntax.Parser ( pDefs, pExpr , fixFixity, fixFixityDef ) where import Data.Maybe import Control.Monad.State import qualified Data.ByteString as B import Syntax import Syntax.ErrorDoc import Syntax.Parser.Lexer import qualified Syntax.Parser.Parser as P import TypeChecking.Monad.Warn import TypeChec...
null
https://raw.githubusercontent.com/valis/hoq/9d2d2f5dee367ca5a609199856ca5964499bf33a/src/Syntax/Parser.hs
haskell
module Syntax.Parser ( pDefs, pExpr , fixFixity, fixFixityDef ) where import Data.Maybe import Control.Monad.State import qualified Data.ByteString as B import Syntax import Syntax.ErrorDoc import Syntax.Parser.Lexer import qualified Syntax.Parser.Parser as P import TypeChecking.Monad.Warn import TypeChec...
0c396b4614f6fe56b19cdf1bf9924621c0729b6ec1f6a3471447fad495beb6eb
mokus0/splines
DegreeElevation.hs
# LANGUAGE ParallelListComp # module Math.Spline.BSpline.DegreeElevation where import Math.Spline.BSpline import Math.Spline.Class import Math.Spline.Knots import Control.Monad (guard) import Data.List (tails, zipWith5) import Data.VectorSpace clampLeft spline = do (t, _) <- splineDomain spline (_, clamped) ...
null
https://raw.githubusercontent.com/mokus0/splines/2c1b370d7602a2287017811e9e4a2ec4b5ec1491/experiments/DegreeElevation.hs
haskell
inputs: knots and modifiedDifCoeffs output format, reversed, with known values lifted by 'Just' and unknown or uninteresting values indicated by 'Nothing'
# LANGUAGE ParallelListComp # module Math.Spline.BSpline.DegreeElevation where import Math.Spline.BSpline import Math.Spline.Class import Math.Spline.Knots import Control.Monad (guard) import Data.List (tails, zipWith5) import Data.VectorSpace clampLeft spline = do (t, _) <- splineDomain spline (_, clamped) ...
8b40e65296f4b4e3432a344d21c1f6e0e118750d7a8911205bbea3c676a51187
motiejus/erlualib_examples
crutas_calc2_test.erl
-module(crutas_calc2_test). -include_lib("eunit/include/eunit.hrl"). add_test_() -> [ ?_assertEqual({ok, 4}, crutas_calc2:add(2, 2)), ?_assertEqual({ok, 0}, crutas_calc2:add(-1, 1)) ]. sin_test_() -> [ ?_assertEqual({ok, 0}, crutas_calc2:sin(0)), ?_assertEqual({ok, 1}, crutas_calc...
null
https://raw.githubusercontent.com/motiejus/erlualib_examples/15c78c560f1d405bb5d022866562a6c6fe56f673/test/crutas_calc2_test.erl
erlang
-module(crutas_calc2_test). -include_lib("eunit/include/eunit.hrl"). add_test_() -> [ ?_assertEqual({ok, 4}, crutas_calc2:add(2, 2)), ?_assertEqual({ok, 0}, crutas_calc2:add(-1, 1)) ]. sin_test_() -> [ ?_assertEqual({ok, 0}, crutas_calc2:sin(0)), ?_assertEqual({ok, 1}, crutas_calc...
a78845efb07d7ab727054b2261fda364e968b9f8903f662d25f7232b30f3568b
htmfilho/minimily
category.clj
(ns minimily.accounting.web.ui.category (:require [hiccup.form :refer [form-to label submit-button hidden-field text-field text-area radio-button]] [minimily.web.ui.layout :refer [layout]] [min...
null
https://raw.githubusercontent.com/htmfilho/minimily/ac27231b4b0e63a0dba747aa4dd972f39bb23ecd/src/minimily/accounting/web/ui/category.clj
clojure
(ns minimily.accounting.web.ui.category (:require [hiccup.form :refer [form-to label submit-button hidden-field text-field text-area radio-button]] [minimily.web.ui.layout :refer [layout]] [min...
0442c6e87f4f4ea1ce5ec89170cf1bfbb1ad1ca315d277479afff777e7fe8aa7
tfausak/patrol
Breadcrumbs.hs
module Patrol.Type.Breadcrumbs where import qualified Data.Aeson as Aeson import qualified Patrol.Extra.Aeson as Aeson import qualified Patrol.Type.Breadcrumb as Breadcrumb -- | <-payloads/types/#breadcrumbs> newtype Breadcrumbs = Breadcrumbs { values :: [Breadcrumb.Breadcrumb] } deriving (Eq, Show) instance A...
null
https://raw.githubusercontent.com/tfausak/patrol/1cae55b3840b328cda7de85ea424333fcab434cb/source/library/Patrol/Type/Breadcrumbs.hs
haskell
| <-payloads/types/#breadcrumbs>
module Patrol.Type.Breadcrumbs where import qualified Data.Aeson as Aeson import qualified Patrol.Extra.Aeson as Aeson import qualified Patrol.Type.Breadcrumb as Breadcrumb newtype Breadcrumbs = Breadcrumbs { values :: [Breadcrumb.Breadcrumb] } deriving (Eq, Show) instance Aeson.ToJSON Breadcrumbs where toJS...
369b36215f7e6ecf77e579f92a66f39b5539ce76f90077c299642059762ab590
ocaml-gospel/gospel
t32.mli
(**************************************************************************) (* *) GOSPEL -- A Specification Language for OCaml (* *) Copyright ( ...
null
https://raw.githubusercontent.com/ocaml-gospel/gospel/79841c510baeb396d9a695ae33b290899188380b/test/negative/t32.mli
ocaml
************************************************************************ (as described in file LICE...
GOSPEL -- A Specification Language for OCaml Copyright ( c ) 2018- The VOCaL Project This software is free software , distributed under the MIT license exception E of (int * int * int) val f : 'a -> 'a @ x = f y raises E ( x , y ) - > int...
b280cb678d572864171153d799e8c1d4293bd7e493f84eeea02b6d78c167cc5e
Haskell-OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator
DeleteUser.hs
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE ExplicitForAll #-} {-# LANGUAGE MultiWayIf #-} -- | Contains the different functions to run the operation deleteUser module OpenAPI.Operati...
null
https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator/d3e9c7db4d8b15de9136007a9b9519a7bd8e2199/example/generatedCode/src/OpenAPI/Operations/DeleteUser.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE ExplicitForAll # # LANGUAGE MultiWayIf # | Contains the different functions to run the operation deleteUser | > DELETE /user/{username} This can only be done by the logged in user. ^ username: The name that needs to be deleted | Represents a response of the operation 'de...
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . module OpenAPI.Operations.DeleteUser where import qualified Prelude as GHC.Integer.Type import qualified Prelude as GHC.Maybe import qualified Control.Monad.Fail import qualified Control...
3387f1b9e6a18b8d1c83ac7dd7b467b3d17a4a5baf945cd6721dd708ee919440
evturn/haskellbook
08.02-exercise.hs
applyTimes :: (Eq a, Num a) => a -> (b -> b) -> b -> b applyTimes 0 f b = b applyTimes n f b = f . applyTimes (n -1) f $ b at :: Int at = applyTimes 5 (+1) 5 at' :: Int at' = (+1) $ (+1) $ (+1) $ (+1) $ (+1) $ 5 -- Evaluates as follows: -- ( +1 ) ( applyTimes ( 5 - 1 ) ( +1 ) 5 ) ( +1 ) ( ( +1 ) ( applyTimes ( 4...
null
https://raw.githubusercontent.com/evturn/haskellbook/3d310d0ddd4221ffc5b9fd7ec6476b2a0731274a/08/08.02-exercise.hs
haskell
Evaluates as follows:
applyTimes :: (Eq a, Num a) => a -> (b -> b) -> b -> b applyTimes 0 f b = b applyTimes n f b = f . applyTimes (n -1) f $ b at :: Int at = applyTimes 5 (+1) 5 at' :: Int at' = (+1) $ (+1) $ (+1) $ (+1) $ (+1) $ 5 ( +1 ) ( applyTimes ( 5 - 1 ) ( +1 ) 5 ) ( +1 ) ( ( +1 ) ( applyTimes ( 4 - 1 ) ( +1 ) 5 ) ) ( +1 )...
108f88772bbc53e103fd84a91fa29899d3da7ee2bc17d6754966ddc13abd9624
jafingerhut/clojure-benchmarks
nbody.clj-3.clj
Author : ( ) Date : Aug 1 , 2009 (ns nbody (:gen-class) ;; (:use [clojure.contrib.seq-utils :only (flatten)]) (:use [clojure.contrib.pprint :only (pprint)])) (set! *warn-on-reflection* true) (defn vec-add [v1 v2] {:x (+ (:x v1) (:x v2)), :y (+ (:y v1) (:y v2)), :z (+ (:z v1) (:z v2))}) (defn v...
null
https://raw.githubusercontent.com/jafingerhut/clojure-benchmarks/474a8a4823727dd371f1baa9809517f9e0b508d4/nbody/nbody.clj-3.clj
clojure
(:use [clojure.contrib.seq-utils :only (flatten)]) (printf "bodies-new-velocities: (class bodies)='%s' delta-t=%.3f\n" (class bodies) delta-t) (printf "%d %.9f\n" i (energy bodies)) (pprint bodies) (printf "%d\n" i))
Author : ( ) Date : Aug 1 , 2009 (ns nbody (:gen-class) (:use [clojure.contrib.pprint :only (pprint)])) (set! *warn-on-reflection* true) (defn vec-add [v1 v2] {:x (+ (:x v1) (:x v2)), :y (+ (:y v1) (:y v2)), :z (+ (:z v1) (:z v2))}) (defn vec-sub [v1 v2] {:x (- (:x v1) (:x v2)), :y (- (:y ...
359625f40a4195b9c0a89d5125ed063058248ff7e5e332ef5c8defff59b92367
manuel-serrano/hop
_hop.scm
;*=====================================================================*/ * serrano / prgm / project / hop / hop / nodejs/_hop.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation : ...
null
https://raw.githubusercontent.com/manuel-serrano/hop/3cc884546e2a374b91931db25e1a91ddea521c18/nodejs/_hop.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * Hop binding */ *===========================...
* serrano / prgm / project / hop / hop / nodejs/_hop.scm * / * Author : * / * Creation : Fri Apr 18 06:41:05 2014 * / * Last change : Tue Jan 3 17:07:21 2023 ( serrano ) * / * Copyr...
a68897d682155c4d677484d3cabadb13c99aae1106cbf0605833989ac8e043f9
clj-clapps/clj-clapps
single_cmd_test.clj
(ns clj-clapps.single-cmd-test (:require [clj-clapps.core :as cl :refer [defcmd defopt]] [clojure.string :as str] [clojure.test :refer :all]) (:import java.time.LocalDate)) (defopt user "the service username" :short "-u" :env "USER") (defopt pass "the service password" :short "-p" :env "PAS...
null
https://raw.githubusercontent.com/clj-clapps/clj-clapps/cd428461315388b4bcd1a0e8b3c52eb8cbab2732/test/clj_clapps/single_cmd_test.clj
clojure
(ns clj-clapps.single-cmd-test (:require [clj-clapps.core :as cl :refer [defcmd defopt]] [clojure.string :as str] [clojure.test :refer :all]) (:import java.time.LocalDate)) (defopt user "the service username" :short "-u" :env "USER") (defopt pass "the service password" :short "-p" :env "PAS...
b0cc4072d053679da7a860061420f677749a90c816c990964d3437cb7abe5090
hyperfiddle/electric
missionary3.cljc
(ns dustin.missionary3 (:require [minitest :refer [tests]] [missionary.core :as m :refer [? ?? ?! ?= sp ap join latest aggregate enumerate]])) (tests "continuous hello-world" (def r (atom 0)) (def >a (m/watch r)) (def >b (ap (inc (?? >a)))) (def b! (>b #(println :ready) #(println :done))) ...
null
https://raw.githubusercontent.com/hyperfiddle/electric/1c6c3891cbf13123fef8d33e6555d300f0dac134/scratch/dustin/y2021/missionary/missionary3.cljc
clojure
ready ready done you can mix continuous and discrete, but the discrete parts will be run eagerly you can only be fully lazy if you have continuous operators all the way down, watch latest signal!, ie the good old spreadsheet model you can mix continuous and discrete, but the discrete parts will be run eagerly yo...
(ns dustin.missionary3 (:require [minitest :refer [tests]] [missionary.core :as m :refer [? ?? ?! ?= sp ap join latest aggregate enumerate]])) (tests "continuous hello-world" (def r (atom 0)) (def >a (m/watch r)) (def >b (ap (inc (?? >a)))) (def b! (>b #(println :ready) #(println :done))) ...
ba7379549568182129491c06245f075bd8cb6b333beea2213b6d7c7a728d94a5
hiroshi-unno/coar
regressor.ml
open Core open Common.Util open Ast.LogicOld module Config = struct type t = DT of DT_Regressor.Config.t [@@deriving yojson] module type ConfigType = sig val config: t end let instantiate_ext_files = function | DT cfg -> let open Or_error in DT_Regressor.Config.instantiate_ext_files cfg >>= fun...
null
https://raw.githubusercontent.com/hiroshi-unno/coar/90a23a09332c68f380efd4115b3f6fdc825f413d/lib/PCSat/regression/regressor.ml
ocaml
open Core open Common.Util open Ast.LogicOld module Config = struct type t = DT of DT_Regressor.Config.t [@@deriving yojson] module type ConfigType = sig val config: t end let instantiate_ext_files = function | DT cfg -> let open Or_error in DT_Regressor.Config.instantiate_ext_files cfg >>= fun...
fa4b47c98c4570d4054eb975746667af2e1e3510a3bb4195027ddb38e459f0b7
camlspotter/ocamloscope.2
humpext.ml
open Spotlib.Spot open Utils open List open Types open Outcometree open Hump let test = ref false (** Test mode permits unresolved persistent idents *) module Make(A : sig val top_path : out_ident option val ambiguous_docstrings : Ocamldoc.DocSet.t end) = struct let noname_ESignature_cntr = ref (-1) ...
null
https://raw.githubusercontent.com/camlspotter/ocamloscope.2/49b5977a283cdd373021d41cb3620222351a2efe/humpext.ml
ocaml
* Test mode permits unresolved persistent idents cached! reduce the memory size in earlier stages val path : Sig.k -> Path.t -> Hump.expr XXX We are not interested in mty but vs It is for include when rec_status i = None || rec_status i = Some Trec_not XXX too early? and value_description _vd = SVal...
open Spotlib.Spot open Utils open List open Types open Outcometree open Hump let test = ref false module Make(A : sig val top_path : out_ident option val ambiguous_docstrings : Ocamldoc.DocSet.t end) = struct let noname_ESignature_cntr = ref (-1) * Obtain source file MD5 digest from Location.t let l...
ec123ab36ceb400c3783240b6f0bf93eda726ae0fdf8c2e1239225e637f91441
steffan-westcott/clj-otel
build.clj
! { : style [: respect - nl ] } (ns build "Build scripts for clj-otel-* libraries, examples and tutorials. For example, to lint all clj-otel-* libraries: clojure -T:build lint To see a description of all build scripts: clojure -A:deps -T:build help/doc " (:require [clojure.java.io :as io] ...
null
https://raw.githubusercontent.com/steffan-westcott/clj-otel/54374150e97a6fd4fb86984287c56bb7c709e2fe/build.clj
clojure
Later artifacts in this vector may depend on earlier artifacts
! { : style [: respect - nl ] } (ns build "Build scripts for clj-otel-* libraries, examples and tutorials. For example, to lint all clj-otel-* libraries: clojure -T:build lint To see a description of all build scripts: clojure -A:deps -T:build help/doc " (:require [clojure.java.io :as io] ...
1ea0d2014453264b6116c1160ca112c0aa1b5324759b321914eb58ebe964ae86
facebookarchive/duckling_old
numbers.clj
( ; Context map {} "0" "null" (number 0) "1" "eins" (number 1) "3" "drei" (number 3) "30" "dreissig" (number 30) "33" "drei und dreissig" "dreiunddreissig" "0033" (number 33) "14" "vierzehn" (number 14) "16" "sechzehn" (number 16) "17" "siebzehn" (numb...
null
https://raw.githubusercontent.com/facebookarchive/duckling_old/bf5bb9758c36313b56e136a28ba401696eeff10b/resources/languages/de/corpus/numbers.clj
clojure
Context map "ein und zwanzing tausend drei hundert elf"
( {} "0" "null" (number 0) "1" "eins" (number 1) "3" "drei" (number 3) "30" "dreissig" (number 30) "33" "drei und dreissig" "dreiunddreissig" "0033" (number 33) "14" "vierzehn" (number 14) "16" "sechzehn" (number 16) "17" "siebzehn" (number 17) "18" ...
16d17509c334d2807c55cb3c3e252296198da511834c827d6a9502e4b20a30ed
huangjs/cl
repetition-closures.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : CL - PPCRE ; Base : 10 -*- $ Header : /usr / local / cvsrep / cl - ppcre / repetition - closures.lisp , v 1.1.1.1 2002/12/20 10:10:44 edi Exp $ ;;; This is actually a part of closures.lisp which we put into a ;;; separate file because it is rather complex. We on...
null
https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/other-code/cl-bench/files/cl-ppcre/repetition-closures.lisp
lisp
Syntax : COMMON - LISP ; Package : CL - PPCRE ; Base : 10 -*- This is actually a part of closures.lisp which we put into a separate file because it is rather complex. We only deal with REPETITIONs here. Note that this part of the code contains some rather crazy micro-optimizations which were introduced to be as c...
$ Header : /usr / local / cvsrep / cl - ppcre / repetition - closures.lisp , v 1.1.1.1 2002/12/20 10:10:44 edi Exp $ Copyright ( c ) 2002 , Dr. . All rights reserved . DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , ...
c94b046256939357618950c38ca0c6fc2f1acdc5b9f585dfdd418c41730fad34
melisgl/try
rerun.lisp
(in-package :try) (defsection @try/rerun (:title "Rerunning Trials") "When a TRIAL is `FUNCALL`ed or passed to TRY, the same tests that instantiated TRIAL are executed. - If the trial was created by calling a DEFTEST function, then the test currently associated with that symbol naming the function is ca...
null
https://raw.githubusercontent.com/melisgl/try/a37c61f8b81d4bdf38f559bca54eef3868bb87a1/src/rerun.lisp
lisp
children of TRIAL-BEING-RERUN which have not been skipped nor run, yet. If N-RETRIES > 0, then we have already decided when TRIAL-START with N-RETRIES = 0 was handled here that this trial shall be rerun. Ignoring the dynamic environment, do these trials call the same function? Heuristically accept WITH-TESTs as...
(in-package :try) (defsection @try/rerun (:title "Rerunning Trials") "When a TRIAL is `FUNCALL`ed or passed to TRY, the same tests that instantiated TRIAL are executed. - If the trial was created by calling a DEFTEST function, then the test currently associated with that symbol naming the function is ca...
f4dad392fe0e1930652d4f967e70e4cdf39780ef867756bbc67d344185364931
iambrj/imin
functions_test_1.rkt
(define (id [x : Integer]) : Integer x) (id 42)
null
https://raw.githubusercontent.com/iambrj/imin/f350276a35bff309e17fb03e41996dd2e550b789/tests/functions_test_1.rkt
racket
(define (id [x : Integer]) : Integer x) (id 42)
b77cea97d73c0c5b489c107142494e3a3fee374624bf5e3ce5b5152ebc3dac28
onyx-platform/onyx-template
core.clj
(ns {{app-name}}.core (:gen-class) (:require [aero.core :refer [read-config]] [clojure.java.io :as io] [clojure.tools.cli :refer [parse-opts]] [lib-onyx.peer :as peer] [onyx.job] [onyx.api] [onyx.test-helper] ;; Load plugin classes ...
null
https://raw.githubusercontent.com/onyx-platform/onyx-template/950f4d92b70d1b313fac1b148048230ea551b13e/src/leiningen/new/onyx_app/src/onyx_app/core.clj
clojure
Load plugin classes on peer start Load our tasks Load our jobs
(ns {{app-name}}.core (:gen-class) (:require [aero.core :refer [read-config]] [clojure.java.io :as io] [clojure.tools.cli :refer [parse-opts]] [lib-onyx.peer :as peer] [onyx.job] [onyx.api] [onyx.test-helper] [onyx.plugin [core-asyn...
a15c9e39c54ae812b4f20e1e1ebae08778466bc5bcb41efcc60d9d1c6e4407a5
clojournal/clojournal
core.cljc
(ns com.clojournal.alpha.core (:require [com.clojournal.alpha :as eledger] ;[clojure.spec.alpha :as s] [com.clojournal.alpha.journal :as journal] [clojure.test.check.generators :as gen] [clojure.java.shell :as sh] [clojure.string :as str])) (defn balance ...
null
https://raw.githubusercontent.com/clojournal/clojournal/483619cbd9a1dc544c9930cf135d10a3de91337b/src/main/com/clojournal/alpha/core.cljc
clojure
[clojure.spec.alpha :as s] (s/fdef balance :args (s/cat :transactions ::eledger/transactions) :ret (s/keys :req-un [::exit]))
(ns com.clojournal.alpha.core (:require [com.clojournal.alpha :as eledger] [com.clojournal.alpha.journal :as journal] [clojure.test.check.generators :as gen] [clojure.java.shell :as sh] [clojure.string :as str])) (defn balance [txs] (let [sample (journal/anti-corru...
ec89ecac7a595d331e599605199f1e8d3b4ba2477446960bcfa27b792b1b6479
frank-lang/frank
DesugarSyntax.hs
-- Transform all type variables to unique rigid type variables. module DesugarSyntax where import Control.Monad.State import Control.Monad.Identity import qualified Data.Map.Strict as M import BwdFwd import Syntax import FreshNames import Shonky.Renaming type Desugar = StateT DState (FreshMT Identity) type IdTVMap...
null
https://raw.githubusercontent.com/frank-lang/frank/1df9644b57551232fdde5a43acabaf790e86cb17/DesugarSyntax.hs
haskell
Transform all type variables to unique rigid type variables. purge mappings from previous context. no explicit refinements explicit refinements: + type variables get fresh ids id val & eff ty vars constructors generate fresh ids for ty vars map old value type variables to fresh ones map old effect type variabl...
module DesugarSyntax where import Control.Monad.State import Control.Monad.Identity import qualified Data.Map.Strict as M import BwdFwd import Syntax import FreshNames import Shonky.Renaming type Desugar = StateT DState (FreshMT Identity) type IdTVMap = M.Map Id (VType Desugared) type IdAbModMap = M.Map Id (AbMod...
fa2b77531622511b9e3b906658547af9df40f3f84031b95abf8409a5d8a1503d
mirage/irmin
gc_worker.ml
* Copyright ( c ) 2022 - 2022 Tarides < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS...
null
https://raw.githubusercontent.com/mirage/irmin/101dccffc33a72c97691dc2301ac6b844a7fbfea/src/irmin-pack/unix/gc_worker.ml
ocaml
Include the commit parents in the reachable file. The parent(s) of [commit] must be included in the iteration because, when decoding the [Commit_value.t] at [commit], the parents will have to be read in order to produce a key for them. Dangling_parent_commit are the parents of the gced commit. T...
* Copyright ( c ) 2022 - 2022 Tarides < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS...
928c59d60b95147d6e8388fd9fa4a90202e16d7ef91d14ba27cf8a5421917360
mbj/stratosphere
ReplicaRegionProperty.hs
module Stratosphere.SecretsManager.Secret.ReplicaRegionProperty ( ReplicaRegionProperty(..), mkReplicaRegionProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/secretsmanager/gen/Stratosphere/SecretsManager/Secret/ReplicaRegionProperty.hs
haskell
module Stratosphere.SecretsManager.Secret.ReplicaRegionProperty ( ReplicaRegionProperty(..), mkReplicaRegionProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data...
99b7dbf2e1f3cad71bf2353306c4c98d94148c52151304afb70a2f3b6543afdb
alexandergunnarson/quantum
classes.cljc
(ns quantum.untyped.core.classes #?(:clj (:import java.lang.reflect.Modifier))) #?(:clj (defn final? [x] (and (class? x) (Modifier/isFinal (.getModifiers ^Class x))))) #?(:clj (defn interface? [x] (and (class? x) (.isInterface ^Class x)))) #?(:clj (defn static? [x] (and (class? x) (Modifier/isStatic (.get...
null
https://raw.githubusercontent.com/alexandergunnarson/quantum/0c655af439734709566110949f9f2f482e468509/src-untyped/quantum/untyped/core/classes.cljc
clojure
(ns quantum.untyped.core.classes #?(:clj (:import java.lang.reflect.Modifier))) #?(:clj (defn final? [x] (and (class? x) (Modifier/isFinal (.getModifiers ^Class x))))) #?(:clj (defn interface? [x] (and (class? x) (.isInterface ^Class x)))) #?(:clj (defn static? [x] (and (class? x) (Modifier/isStatic (.get...
e1013dcc417cdb6455f48277d55dea739ffe73e98189a09a4d3993508ffb4366
dmitryvk/sbcl-win32-threads
seqtran.lisp
;;;; optimizers for list and sequence functions This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the ;;;; public domain. The software is in the public ...
null
https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/src/compiler/seqtran.lisp
lisp
optimizers for list and sequence functions more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. mapping onto lists: the MAPFOO functions for ONCE-ONLY-ish purposes mapping onto sequences: the M...
This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB!C") (defun mapfoo-transform (fn arglists accumulate take-car) (collect ((do-clauses) (args-t...
98ca6cd3cefb6bc24ac341f4edd047ae0d29da91310ed5c96dcc962af1f83985
kingcons/cl-store
custom-xml.lisp
-*- Mode : LISP ; Syntax : ANSI - Common - Lisp ; Base : 10 -*- ;; See the file LICENCE for licence information. (in-package :cl-store-xml) (defstore-xml (obj structure-object stream) (with-tag ("STRUCTURE-OBJECT" stream) (princ-and-store "CLASS" (type-of obj) stream) (let ((slots (structure:structure-cla...
null
https://raw.githubusercontent.com/kingcons/cl-store/e9328632cd6bf51cb79adeb5d40c6ee5c6f805b4/lispworks/custom-xml.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 -*- See the file LICENCE for licence information.
(in-package :cl-store-xml) (defstore-xml (obj structure-object stream) (with-tag ("STRUCTURE-OBJECT" stream) (princ-and-store "CLASS" (type-of obj) stream) (let ((slots (structure:structure-class-slot-names (class-of obj)))) (with-tag ("SLOTS" stream) (dolist (slot-name slots) (with-...
4f6326e082d5a071df0fd6e68ffd9341eb000d941ac03633cd149e7aaff3ef32
huangz1990/SICP-answers
35-golden-ratio.scm
35-golden-ratio.scm (load "p46-fixed-point.scm") (define golden-ratio (fixed-point (lambda (x) (+ 1 (/ 1 x))) 1.0))
null
https://raw.githubusercontent.com/huangz1990/SICP-answers/15e3475003ef10eb738cf93c1932277bc56bacbe/chp1/code/35-golden-ratio.scm
scheme
35-golden-ratio.scm (load "p46-fixed-point.scm") (define golden-ratio (fixed-point (lambda (x) (+ 1 (/ 1 x))) 1.0))
9e210c82db36cfaab5c1333f66ca0a8e983b9ed00192dd75ea8e30b8a9209f3f
sol/doctest
Info.hs
# LANGUAGE CPP # module Info ( versionInfo , info #ifdef TEST , formatInfo #endif ) where import Data.List.Compat import System.Process import System.IO.Unsafe #if __GLASGOW_HASKELL__ < 900 import Config as GHC #else import GHC.Settings.Config as GHC #endif import ...
null
https://raw.githubusercontent.com/sol/doctest/8d594a8751cfd26cef7ccf813c8eea08b3ef23f2/src/Info.hs
haskell
# LANGUAGE CPP # module Info ( versionInfo , info #ifdef TEST , formatInfo #endif ) where import Data.List.Compat import System.Process import System.IO.Unsafe #if __GLASGOW_HASKELL__ < 900 import Config as GHC #else import GHC.Settings.Config as GHC #endif import ...
df7b81ce22369931ce97dd5121fff9daf8b44bbeb34fe275c9dda47e78632713
pedestal/pedestal
service.clj
(ns io.pedestal.niotooling.service (:require [io.pedestal.http :as bootstrap] [io.pedestal.http.route :as route] [io.pedestal.http.body-params :as body-params] [io.pedestal.interceptor.helpers :as interceptor] [ring.util.response :as ring-resp] [clojure.core...
null
https://raw.githubusercontent.com/pedestal/pedestal/53bfe70143a22cdfd2f0d183023334a199c9e9a2/tests/bench/io/pedestal/niotooling/service.clj
clojure
I could also just use the protocol below I could also just use the protocol below Set default interceptors for /about and any other paths under / Consumed by niotooling.server/create-server See bootstrap/default-interceptors for additional options you can configure You can bring your own non-default interceptors....
(ns io.pedestal.niotooling.service (:require [io.pedestal.http :as bootstrap] [io.pedestal.http.route :as route] [io.pedestal.http.body-params :as body-params] [io.pedestal.interceptor.helpers :as interceptor] [ring.util.response :as ring-resp] [clojure.core...
74f2fd0aca5c47857479601f10f1a73979cff51fd244a08a765b672306b54354
emqx/emqx
emqx_lwm2m_session.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2017 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy o...
null
https://raw.githubusercontent.com/emqx/emqx/dbc10c2eed3df314586c7b9ac6292083204f1f68/apps/emqx_gateway/src/lwm2m/emqx_lwm2m_session.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2017 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(emqx_lwm2m_session). -include_lib("emqx/include/logger.hrl"). -include_lib("emqx/include...
1079da86de025ce1f0978470fbb8b8c8401add8b291f31820c9f39c59afe3144
xh4/web-toolkit
fndb.lisp
;;;; -*- mode: lisp; indent-tabs-mode: nil -*- #+sbcl (in-package :sb-c) #+(and sbcl ironclad-assembly) (progn (defknown (ironclad::fill-block-ub8-le ironclad::fill-block-ub8-be) ((simple-array (unsigned-byte 32) (*)) (simple-array (unsigned-byte 8) (*)) (integer 0 #.(- array-dimension-limit 64))) (values) ...
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/vendor/ironclad-v0.47/src/opt/sbcl/fndb.lisp
lisp
-*- mode: lisp; indent-tabs-mode: nil -*-
#+sbcl (in-package :sb-c) #+(and sbcl ironclad-assembly) (progn (defknown (ironclad::fill-block-ub8-le ironclad::fill-block-ub8-be) ((simple-array (unsigned-byte 32) (*)) (simple-array (unsigned-byte 8) (*)) (integer 0 #.(- array-dimension-limit 64))) (values) (any) :overwrite-fndb-silently t) #+x86-64 (de...
bd205aa5b526dadee13502fc964a95a6e8e456efec132bda7298693ca7341e7a
jaked/ocamljs
oo_funobj.ml
open OUnit class functional_point y = object val x = y method get_x = x method move d = {< x = x + d >} end let tests = "Oo_funobj" >:: begin fun () -> let p = new functional_point 7 in assert_equal p#get_x 7; assert_equal (p#move 3)#get_x 10; assert_equal p#get_x 7; end
null
https://raw.githubusercontent.com/jaked/ocamljs/378080ff1c8033bb15ed2bd29bf1443e301d7af8/test/ocamljs/oo_funobj.ml
ocaml
open OUnit class functional_point y = object val x = y method get_x = x method move d = {< x = x + d >} end let tests = "Oo_funobj" >:: begin fun () -> let p = new functional_point 7 in assert_equal p#get_x 7; assert_equal (p#move 3)#get_x 10; assert_equal p#get_x 7; end
8543ffa070c0edb486e9d7b1749028b98fa477fa004b7ed036cb58dcb4c12f9f
Cantido/clj-bittorrent
handshake.clj
(ns clj-bittorrent.message.handshake (:require [clj-bittorrent.math.binary :as bin] [clojure.java.io :as io]) (:import (java.nio.charset StandardCharsets) (java.io Writer Reader) (java.net Socket))) (def ^:private pstr "string identifier of the protocol." (-> "BitTorrent proto...
null
https://raw.githubusercontent.com/Cantido/clj-bittorrent/5fea93e318f9d07e4bbee6aced12e10ae0f46f2a/src/clj_bittorrent/message/handshake.clj
clojure
(ns clj-bittorrent.message.handshake (:require [clj-bittorrent.math.binary :as bin] [clojure.java.io :as io]) (:import (java.nio.charset StandardCharsets) (java.io Writer Reader) (java.net Socket))) (def ^:private pstr "string identifier of the protocol." (-> "BitTorrent proto...
c53e279ac93ef2762ab429672e89064058503f0634fe11564f3ba908d59f304e
technomancy/leiningen
clj.clj
(ns nom.nom.clj)
null
https://raw.githubusercontent.com/technomancy/leiningen/24fb93936133bd7fc30c393c127e9e69bb5f2392/test_projects/sample-reader-cond/src/nom/nom/clj.clj
clojure
(ns nom.nom.clj)
714aa5515f9cd25dd6f599db441e87cd9cb762ee6cb4a70da8a14ebb7da7269c
AlexCharlton/Hypergiant
alpha.scm
;;;; alpha.scm ;;;; This example illustrates alpha sorting. ;;;; NOTE: ;;;; If this file is compiled, since it uses glls-render, it must also be linked with OpenGL ;;;; E.g.: csc -lGL alpha.scm ;;;; Use arrow keys (and shift) to rotate, zoom camera. (import chicken scheme) (use hypergiant) (define scene (make-pa...
null
https://raw.githubusercontent.com/AlexCharlton/Hypergiant/5f1ae8c209715980b2bb061d3eb4d93132e34305/examples/alpha.scm
scheme
alpha.scm This example illustrates alpha sorting. NOTE: If this file is compiled, since it uses glls-render, it must also be linked with OpenGL E.g.: Use arrow keys (and shift) to rotate, zoom camera.
csc -lGL alpha.scm (import chicken scheme) (use hypergiant) (define scene (make-parameter #f)) (define camera (make-parameter #f)) (define pan (make-parameter 0)) (define tilt (make-parameter 0)) (define zoom (make-parameter 0)) (define c-roll (make-parameter 0)) (define cube (cube-mesh 1 color: (lambda (_) '(0....
58918cf8b16b855b09f4d8ec992194ee4a97f82b45ee935d6248334362cef595
rizo/streams-bench
Push_fold_thunk.ml
Model based on skyb0rg 's implementation . See : - -libs/blob/master/streaming/push.sml - / FIXME : results in stack overflow Model based on skyb0rg's implementation. See: - -libs/blob/master/streaming/push.sml - / FIXME: results in stack overflow *) let ( = ) : int -> int -...
null
https://raw.githubusercontent.com/rizo/streams-bench/87baf838971c84613b801ab32b6473d397bcc23f/src/Push_fold_thunk.ml
ocaml
Model based on skyb0rg 's implementation . See : - -libs/blob/master/streaming/push.sml - / FIXME : results in stack overflow Model based on skyb0rg's implementation. See: - -libs/blob/master/streaming/push.sml - / FIXME: results in stack overflow *) let ( = ) : int -> int -...
ac839093143b0cdbbe0dd498af5f3493042889c77878d7a8077ae500fbce3607
sealchain-project/sealchain
MerklePatriciaMixMem.hs
# LANGUAGE RecordWildCards # {-# LANGUAGE OverloadedStrings #-} module Sealchain.Mpt.MerklePatriciaMixMem ( MPKey, MPVal, MPPtr, MPDB (..), KVPersister (..), StateRoot(..), MMModifier, putKeyValMixMem, getKeyValMixMem, getAllKeyValsMixMem, deleteKeyMixMem, keyExistsMixMem, initializeBla...
null
https://raw.githubusercontent.com/sealchain-project/sealchain/e97b4bac865fb147979cb14723a12c716a62e51e/mpt/src/Sealchain/Mpt/MerklePatriciaMixMem.hs
haskell
# LANGUAGE OverloadedStrings # ^ The object containing the current stateRoot.
# LANGUAGE RecordWildCards # module Sealchain.Mpt.MerklePatriciaMixMem ( MPKey, MPVal, MPPtr, MPDB (..), KVPersister (..), StateRoot(..), MMModifier, putKeyValMixMem, getKeyValMixMem, getAllKeyValsMixMem, deleteKeyMixMem, keyExistsMixMem, initializeBlankMixMem, justRight, emptyTrieP...
c8976601608a79eb155388bdf95ec7bc6926f85b00b3a2b80e12d190cb606084
dvanhorn/oaam
store-passing.rkt
#lang racket (require "do.rkt" "env.rkt" "notation.rkt" "primitives.rkt" racket/splicing racket/stxparam "fix.rkt" "handle-limits.rkt" "ast.rkt" "graph.rkt" racket/stxparam racket/trace (for-syntax racket/syntax syntax/parse)) (provide bind-join-whole bind-join*-whole (for-s...
null
https://raw.githubusercontent.com/dvanhorn/oaam/79bc68ecb79fef45474a948deec1de90d255f307/code/store-passing.rkt
racket
common helper Add new states to accumulator and construct graph Stuck states are the same as input. Remove stuck states from the count XXX: Remove for performant version. This is just for statistics. Add new states to accumulator and construct graph filter the final results added for compiled filter the final ...
#lang racket (require "do.rkt" "env.rkt" "notation.rkt" "primitives.rkt" racket/splicing racket/stxparam "fix.rkt" "handle-limits.rkt" "ast.rkt" "graph.rkt" racket/stxparam racket/trace (for-syntax racket/syntax syntax/parse)) (provide bind-join-whole bind-join*-whole wide-s...
16dd088349a08c8e5fe23bac014392c4f92cae521385c05303628ba3194c2184
ucsd-progsys/nate
ocaml_utils.ml
(***********************************************************************) (* ocamlbuild *) (* *) , , projet Gallium , INRIA Rocquencourt (* ...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/ocamlbuild/ocaml_utils.ml
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 . Original author : open My_std open Format open Log...
f8a64f3ee4f51b73be04dde956a209e38218b6f54e007202ddb4f4f39a07b986
fulcrologic/fulcro-rad
deps.cljs
{:npm-deps {"@js-joda/core" "3.2.0" "@js-joda/timezone" "2.8.0" "big.js" "6.1.1"}}
null
https://raw.githubusercontent.com/fulcrologic/fulcro-rad/d2a40fdd7ca6ee0ec5fdb3897d5764bb6c5f7800/src/main/deps.cljs
clojure
{:npm-deps {"@js-joda/core" "3.2.0" "@js-joda/timezone" "2.8.0" "big.js" "6.1.1"}}
e2b6b658f9ffee7cc5fe1ad8e2670f61382e4022f305b51b88a1841f2510fa3f
johnmn3/cljs-thread
home_panel.cljs
(ns dashboard.views.home-panel (:require [cljs-thread.re-frame :refer [subscribe]] [dashboard.footer :refer [copyright]] ["react-chartjs-2" :refer [Line]] [comp.el :as c])) ;; Components (defn drawer-icon [] [c/home]) (def data-6-hours (clj->js {:labels ["9:00" "10:00" "11:00" "12:00" "1:00" "2:...
null
https://raw.githubusercontent.com/johnmn3/cljs-thread/e98edc26ae71d1e17cea96a1f0e978df41b34d3f/shadow_dashboard/src/screen/dashboard/views/home_panel.cljs
clojure
Components :class (.-depositContext classes)
(ns dashboard.views.home-panel (:require [cljs-thread.re-frame :refer [subscribe]] [dashboard.footer :refer [copyright]] ["react-chartjs-2" :refer [Line]] [comp.el :as c])) (defn drawer-icon [] [c/home]) (def data-6-hours (clj->js {:labels ["9:00" "10:00" "11:00" "12:00" "1:00" "2:00" "3:00"] ...
66de73aeda44899dea38a14cd144c5e085b271ec4acdb5876a6348b876c43202
AndrasKovacs/elaboration-zoo
Value.hs
module Value where import Common import Syntax type Env = [Val] type Spine = [(Val, Icit)] data Closure = Closure Env Tm type VTy = Val data Val = VFlex MetaVar Spine | VRigid Lvl Spine | VLam Name Icit {-# unpack #-} Closure | VPi Name Icit ~VTy {-# unpack #-} Closure | VU pattern VVar :: Lvl ...
null
https://raw.githubusercontent.com/AndrasKovacs/elaboration-zoo/9599e7ecca77262b6d11a363647e833aaa5cb4c7/04-implicit-args/Value.hs
haskell
# unpack # # unpack #
module Value where import Common import Syntax type Env = [Val] type Spine = [(Val, Icit)] data Closure = Closure Env Tm type VTy = Val data Val = VFlex MetaVar Spine | VRigid Lvl Spine | VU pattern VVar :: Lvl -> Val pattern VVar x = VRigid x [] pattern VMeta :: MetaVar -> Val pattern VMeta m = V...
ec1bae6769c4266a369cb02bdfbed2a7d449003ad973ac587eae455c7fadaefe
Holmusk/elm-street
Types.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DerivingVia # # LANGUAGE DerivingStrategies # | Haskell types used for testing ` elm - street ` generated Elm types . -} module Types ( Types , OneType (..) , defaultOneType -- * All test type...
null
https://raw.githubusercontent.com/Holmusk/elm-street/9ddab3441f037a308aa69851d817658666e2bfce/types/Types.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE DeriveAnyClass # * All test types | For name clashes testing. | Type level list of all test types.
# LANGUAGE DerivingVia # # LANGUAGE DerivingStrategies # | Haskell types used for testing ` elm - street ` generated Elm types . -} module Types ( Types , OneType (..) , defaultOneType , Prims (..) , Id (..) , Age (..) , Newtype (..) , NewtypeList (...
48fd2c557c3637de09e93232ebc02d7e672a045b40e182f0ccaccbdcac0b7865
wdebeaum/step
usb.lisp
;;;; ;;;; W::USB ;;;; (define-words :pos W::n :templ COUNT-PRED-TEMPL :words ( ;; universal serial bus (W::USB (SENSES ((LF-PARENT ONT::device) (TEMPL COUNT-PRED-TEMPL) (META-DATA :ORIGIN CALO :ENTRY-DATE 20040204 :CHANGE-DATE NIL :COMMENTS HTML-PURCHASING-CORPUS)))) ))
null
https://raw.githubusercontent.com/wdebeaum/step/f38c07d9cd3a58d0e0183159d4445de9a0eafe26/src/LexiconManager/Data/new/usb.lisp
lisp
W::USB universal serial bus
(define-words :pos W::n :templ COUNT-PRED-TEMPL :words ( (W::USB (SENSES ((LF-PARENT ONT::device) (TEMPL COUNT-PRED-TEMPL) (META-DATA :ORIGIN CALO :ENTRY-DATE 20040204 :CHANGE-DATE NIL :COMMENTS HTML-PURCHASING-CORPUS)))) ))
8327edb18e3d760f7adfe01d50d4e9712dee0858626f91e2fcb97c1732bdde4b
rodaebel/fileprocessing
serial.erl
%% $ erlc serial.erl %% $ erl -noshell -run serial start <PATH> -module(serial). -export([start/1]). %% @doc Start function. ) - > void ( ) start(Path) -> erlang:statistics(wall_clock), Open file {ok, File} = file:open(Path, [raw, binary, read_ahead]), %% Scan file Count = scan_file(File, 0)...
null
https://raw.githubusercontent.com/rodaebel/fileprocessing/7b5d73714f4ea3ec6a6c34269dd3441fc2fa8e93/serial.erl
erlang
$ erlc serial.erl $ erl -noshell -run serial start <PATH> @doc Start function. Scan file Print result @doc Scans a file.
-module(serial). -export([start/1]). ) - > void ( ) start(Path) -> erlang:statistics(wall_clock), Open file {ok, File} = file:open(Path, [raw, binary, read_ahead]), Count = scan_file(File, 0), io:format("~B~n", [Count]), {_, Delta} = erlang:statistics(wall_clock), error_logger:info...
a69b3020e489575c769d321d46dd6480db498695ad4c4441043d55e06ea62417
gtk2hs/gtk2hs
Fonts.hs
-- Example of an drawing graphics onto a canvas. import Graphics.UI.Gtk import Data.List ( intersperse ) main = do initGUI fm <- cairoFontMapGetDefault ffs <- pangoFontMapListFamilies fm mapM_ (\ff -> do putStrLn (show ff++": ") fcs <- pangoFontFamilyListFaces ff mapM_ (\fc -> do sizes <- pan...
null
https://raw.githubusercontent.com/gtk2hs/gtk2hs/0f90caa1dae319a0f4bbab76ed1a84f17c730adf/gtk/demo/fonts/Fonts.hs
haskell
Example of an drawing graphics onto a canvas.
import Graphics.UI.Gtk import Data.List ( intersperse ) main = do initGUI fm <- cairoFontMapGetDefault ffs <- pangoFontMapListFamilies fm mapM_ (\ff -> do putStrLn (show ff++": ") fcs <- pangoFontFamilyListFaces ff mapM_ (\fc -> do sizes <- pangoFontFaceListSizes fc let showSize Nothing...
04cad1afe62e671c12419826ada27850876102cbb09af47d59e2d5811c6eddeb
inaka/erlang-github
egithub.erl
@doc Main module that implements the functions to interact with the GitHub 's %% API. %% @end -module(egithub). -behavior(application). -export([ start/0, start/2, stop/1 ]). -export([ %% Credentials basic_auth/2, oauth/1, %% Pull Requests ...
null
https://raw.githubusercontent.com/inaka/erlang-github/90592ab381e9a5c8486305a08090ad71673735d0/src/egithub.erl
erlang
API. @end Credentials Pull Requests Issues Users Teams Hooks Collaborators Statuses Languages Releases Branches Tags Files Types "username/reponame" Public API @hidden Application Behavior @hidden @hidden Credentials @doc Takes a username and a password. Returns a value that can be used ...
@doc Main module that implements the functions to interact with the GitHub 's -module(egithub). -behavior(application). -export([ start/0, start/2, stop/1 ]). -export([ basic_auth/2, oauth/1, pull_reqs/3, pull_req/3, pull_req_files/3, ...
61666cce6b6508e0012c6c89ed598c4324dac8fcecb67e45a9157a1cd6ea5a3c
rizo/snowflake-os
spill.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/rizo/snowflake-os/51df43d9ba715532d325e8880d3b8b2c589cd075/plugins/ocamlopt.opt/asmcomp/spill.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 . $ Id$ val fundecl: Mach.fundecl -> ...
cf85376010136b17e1d901c9f5924fefdb262702c54a2313dae138711e359cb1
l04m33/parenscript-react-examples
package.lisp
(in-package #:cl-user) (defpackage #:react-examples/transitions (:use #:cl #:parenscript #:psx))
null
https://raw.githubusercontent.com/l04m33/parenscript-react-examples/104063d1b73ef4ed41c04817d8b9bae9a1e0948f/examples/transitions/package.lisp
lisp
(in-package #:cl-user) (defpackage #:react-examples/transitions (:use #:cl #:parenscript #:psx))
b92f5bf472ce186061e6e55c1f5899e266bd695753baafb301f653c70500ab80
wilkerlucio/pathom
connect.cljc
(ns com.wsscode.pathom.connect (:require [clojure.core.async :as async :refer [<! >! go]] [clojure.set :as set] [clojure.spec.alpha :as s] [clojure.spec.gen.alpha :as gen] [com.fulcrologic.guardrails.core :refer [>def >defn >fdef => | <- ?]] [#?(:clj com.wsscode.async.async-clj :cljs ...
null
https://raw.githubusercontent.com/wilkerlucio/pathom/4ec25055d3d156241e9174d68ec438c93c971b9b/src/com/wsscode/pathom/connect.cljc
clojure
inputs combinations provides leaf / branches blank index single resolver single mutation sequence of resolvers/mutations nested sequences all mixed resolve plan that's because some of the attributes might require other attributes readers region reader3 endregion endregion => [{:my.entity/id 1 ...
(ns com.wsscode.pathom.connect (:require [clojure.core.async :as async :refer [<! >! go]] [clojure.set :as set] [clojure.spec.alpha :as s] [clojure.spec.gen.alpha :as gen] [com.fulcrologic.guardrails.core :refer [>def >defn >fdef => | <- ?]] [#?(:clj com.wsscode.async.async-clj :cljs ...
d30dc21ba4d63ee1c97c54825cfe2141b27c6a53c3f2c36d1a37f86b8b6afd64
shamazmazum/wavelet-audio
metadata.lisp
(in-package :wavelet-audio) (defmethod write-metadata-header (stream (metadata wavelet-audio-metadata)) (write-bits (metadata-type metadata) 7 stream) (write-bit (if (metadata-last-p metadata) 1 0) stream) (write-bits (metadata-size metadata) 32 stream) metadata) (defmethod read-metadata-header (stream (metad...
null
https://raw.githubusercontent.com/shamazmazum/wavelet-audio/199d78a5bce86e1cbf098e7d47627e0b676b049d/src/metadata.lisp
lisp
(in-package :wavelet-audio) (defmethod write-metadata-header (stream (metadata wavelet-audio-metadata)) (write-bits (metadata-type metadata) 7 stream) (write-bit (if (metadata-last-p metadata) 1 0) stream) (write-bits (metadata-size metadata) 32 stream) metadata) (defmethod read-metadata-header (stream (metad...
dffd95e90d81ac081982f6721359017baf9ad54371782cb7224b9ec0a6c47573
LambdaHack/LambdaHack
PlaceKind.hs
-- | Definitions of place kinds. Every room in the game is an instantiated -- place kind. module Content.PlaceKind ( -- * Group name patterns pattern ROGUE, pattern LABORATORY, pattern ZOO, pattern BRAWL, pattern SHOOTOUT, pattern ARENA, pattern FLIGHT, pattern AMBUSH, pattern BATTLE, pattern NOISE, pattern MINE,...
null
https://raw.githubusercontent.com/LambdaHack/LambdaHack/207878028a2142bcb9eedac808014e9372a0bd6c/GameDefinition/Content/PlaceKind.hs
haskell
| Definitions of place kinds. Every room in the game is an instantiated place kind. * Group name patterns * Content * Group name patterns TODO: if we stick to the current system of generating extra kinds and their group names, let's also add the generated group names to @groupNames@. This is a rotten compromise...
module Content.PlaceKind pattern ROGUE, pattern LABORATORY, pattern ZOO, pattern BRAWL, pattern SHOOTOUT, pattern ARENA, pattern FLIGHT, pattern AMBUSH, pattern BATTLE, pattern NOISE, pattern MINE, pattern EMPTY , pattern INDOOR_ESCAPE_DOWN, pattern INDOOR_ESCAPE_UP, pattern OUTDOOR_ESCAPE_DOWN, pattern TINY_STAI...
6e8a45392fe6add0fff0d8b069cd810dad24b82085fd2a2751a791d791658383
databrary/databrary
Token.hs
# LANGUAGE OverloadedStrings , module Model.Token ( module Model.Token.Types , loginTokenId , lookupLoginToken , createLoginToken , removeLoginToken , lookupSession , createSession , removeSession , lookupUpload , createUpload , removeUpload , cleanTokens ) where import Control.Monad (when,...
null
https://raw.githubusercontent.com/databrary/databrary/685f3c625b960268f5d9b04e3d7c6146bea5afda/src/Model/Token.hs
haskell
so that the user can view the password entry form as well as perform the password update. Retrieve the site auth with access deduced from inherited authorizations. | Guts of loading a user and its authorizations during each request, when receiving a logged in session token. Find the active session in the sessions t...
# LANGUAGE OverloadedStrings , module Model.Token ( module Model.Token.Types , loginTokenId , lookupLoginToken , createLoginToken , removeLoginToken , lookupSession , createSession , removeSession , lookupUpload , createUpload , removeUpload , cleanTokens ) where import Control.Monad (when,...
9f316a12157faecc68bfd7e702b60fc220e819ee10f48a513ff6049d5c8bb690
dada-lang/dada-model
clone.rkt
#lang racket (require redex "../util.rkt" "lang.rkt" "heap.rkt") (provide clone-value) (define-metafunction Dada ;; clone-value ;; ;; Given a value that is to be cloned, return the new value ;; that should be stored both in the old and new places. This ;; may require adjusting ref-...
null
https://raw.githubusercontent.com/dada-lang/dada-model/a3e8b262654a98979a7ff8dc04460c4a43f22cf6/racket/opsem/clone.rkt
racket
clone-value Given a value that is to be cloned, return the new value that should be stored both in the old and new places. This may require adjusting ref-counts. Cloning a uniquely owned value is not possible.
#lang racket (require redex "../util.rkt" "lang.rkt" "heap.rkt") (provide clone-value) (define-metafunction Dada clone-value : Store Value -> Store [(clone-value Store ((shared _) box Address)) Store] [(clone-value Store number) Store] [(clone-value Store (our box Address)) (st...
c25bd13d438f9b9e123ecbf5025c7dbeea6725a2792d4c01114d17887c2a1a02
ncalca/principles-of-programming-languages
es3.rkt
#lang racket ( cartesian - product ' ( a b ) ' ( 1 2 ) ) ( ( a 1 ) ( a 2 ) ( b 1 ) ( b 2 ) ) (define (listify x) (if (list? x) x (list x))) (define (cartesian-product x y) (let ([val '()]) (for-each (lambda (a) (for-each ; seconda lista (lambda (b) (set! val ...
null
https://raw.githubusercontent.com/ncalca/principles-of-programming-languages/34d0aa2d62af9faaefae8761deab503cc532cf6f/es3/es3.rkt
racket
seconda lista (for x in '(1 2 3) (display x)(newline)) (define-syntax id (syntax-rules (literal-id ...) [pattern template] ...)) (list/co (* x x) from x '(1 2 3))
#lang racket ( cartesian - product ' ( a b ) ' ( 1 2 ) ) ( ( a 1 ) ( a 2 ) ( b 1 ) ( b 2 ) ) (define (listify x) (if (list? x) x (list x))) (define (cartesian-product x y) (let ([val '()]) (for-each (lambda (a) (lambda (b) (set! val (append val ...
534885f6ac069929452d64448d17db19ad9ce19afdde94163856d5be0cda66d2
kansetsu7/awesome_name
subs.cljs
(ns awesome-name.subs (:require [awesome-name.util :as u] [clojure.set :as cset] [clojure.string :as cs] [re-frame.core :as rf])) (rf/reg-sub ::combinations-page (fn [db [_ & fields]] (-> db (get-in (into [:form :combinations] fields))))) (rf/reg-sub ::eva...
null
https://raw.githubusercontent.com/kansetsu7/awesome_name/32d6d0f4c9a957d4739bb79d584d6298b4f6364e/src/awesome_name/subs.cljs
clojure
errors
(ns awesome-name.subs (:require [awesome-name.util :as u] [clojure.set :as cset] [clojure.string :as cs] [re-frame.core :as rf])) (rf/reg-sub ::combinations-page (fn [db [_ & fields]] (-> db (get-in (into [:form :combinations] fields))))) (rf/reg-sub ::eva...
1b3e343f7df61b32dafd5a5a1caa2e2f9f66a6aedacbc8876f0b392d7846782f
ku-fpg/blank-canvas
Main.hs
{-# LANGUAGE OverloadedStrings #-} module Main where import Control.Concurrent import Data.Text (Text) import Graphics.Blank main :: IO () main = blankCanvas 3000 { events = ["mousedown"] } $ go type Ball a = ((Double, Double), Double, a) type Color = String epoch :: [Ball ()] epoch = [] type State = ([Ball Color...
null
https://raw.githubusercontent.com/ku-fpg/blank-canvas/39915c17561106ce06e1e3dcef85cc2e956626e6/examples/bounce/Main.hs
haskell
# LANGUAGE OverloadedStrings #
module Main where import Control.Concurrent import Data.Text (Text) import Graphics.Blank main :: IO () main = blankCanvas 3000 { events = ["mousedown"] } $ go type Ball a = ((Double, Double), Double, a) type Color = String epoch :: [Ball ()] epoch = [] type State = ([Ball Color]) showBall :: (Double, Double) ->...
54e0c4f489031d68fcaa7a397a74b9ba190ccaa156025e072d9a92c2dfc8201e
larcenists/larceny
fibc.scm
FIBC -- FIB using first - class continuations , written by (import (scheme base) (scheme read) (scheme write) (scheme time)) (define (succ n) (+ n 1)) (define (pred n) (- n 1)) fib with peano arithmetic ( using numbers ) with call / cc (define (addc x y k) (if (zero? y) (k x) ...
null
https://raw.githubusercontent.com/larcenists/larceny/fef550c7d3923deb7a5a1ccd5a628e54cf231c75/test/Benchmarking/R7RS/src/fibc.scm
scheme
FIBC -- FIB using first - class continuations , written by (import (scheme base) (scheme read) (scheme write) (scheme time)) (define (succ n) (+ n 1)) (define (pred n) (- n 1)) fib with peano arithmetic ( using numbers ) with call / cc (define (addc x y k) (if (zero? y) (k x) ...
660c1189a62fe917e2b1d2bbe7bed84a457793c32969edba4ca5f4162f7dd087
informatimago/lisp
prompter-test.lisp
(defpackage "COM.INFORMATIMAGO.SMALL-CL-PGMS.PROMPTER.TEST" (:use "COMMON-LISP" "COM.INFORMATIMAGO.SMALL-CL-PGMS.PROMPTER")) (in-package "COM.INFORMATIMAGO.SMALL-CL-PGMS.PROMPTER.TEST") (defun date (&optional (date (get-universal-time))) "Prints the date." (format t "~&~{~5*~4,'0D-~2:*~2,'0D-~2:*~2,'0D ~...
null
https://raw.githubusercontent.com/informatimago/lisp/571af24c06ba466e01b4c9483f8bb7690bc46d03/small-cl-pgms/irclog-prompter/prompter-test.lisp
lisp
THE END ;;;;
(defpackage "COM.INFORMATIMAGO.SMALL-CL-PGMS.PROMPTER.TEST" (:use "COMMON-LISP" "COM.INFORMATIMAGO.SMALL-CL-PGMS.PROMPTER")) (in-package "COM.INFORMATIMAGO.SMALL-CL-PGMS.PROMPTER.TEST") (defun date (&optional (date (get-universal-time))) "Prints the date." (format t "~&~{~5*~4,'0D-~2:*~2,'0D-~2:*~2,'0D ~...
f796279ab33925f779ba9517ab5e5279ed483317f81294f4d6eb7a40ac2fcd93
mirage/irmin
types.mli
* Copyright ( c ) 2018 - 2022 Tarides < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS...
null
https://raw.githubusercontent.com/mirage/irmin/abeee121a6db7b085b3c68af50ef24a8d8f9ed05/src/libirmin/types.mli
ocaml
* Copyright ( c ) 2018 - 2022 Tarides < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS...
3f75dd930d3d830eaf37513b68f1030e8f7b5e283089b79df4b15d7a90ef48ff
yuanqing/code-problems
test.ml
open OUnit2 open Sum_of_list_plus_one let () = run_test_tt_main ("sum_of_list_plus_one xx" >::: [ "empty list" >:: (fun _ -> assert_equal 0 (sum_of_list_plus_one []) ); "non-empty list" >:: (fun _ -> assert_equal 14 (sum_of_list_plus_one [1; 2; 3; 4]) ); ])
null
https://raw.githubusercontent.com/yuanqing/code-problems/30eb34ad616146306cddc50594a47deff111f341/src/sum_of_list_plus_one/test.ml
ocaml
open OUnit2 open Sum_of_list_plus_one let () = run_test_tt_main ("sum_of_list_plus_one xx" >::: [ "empty list" >:: (fun _ -> assert_equal 0 (sum_of_list_plus_one []) ); "non-empty list" >:: (fun _ -> assert_equal 14 (sum_of_list_plus_one [1; 2; 3; 4]) ); ])
6dc2d51d1944317db8bf99858049f69e094393d2505fdf559f7d619c4fc47712
bazurbat/chicken-scheme
c-platform.scm
c-platform.scm - Platform specific parameters and definitions ; Copyright ( c ) 2008 - 2016 , The CHICKEN Team Copyright ( c ) 2000 - 2007 , ; All rights reserved. ; ; Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following ; conditions are met...
null
https://raw.githubusercontent.com/bazurbat/chicken-scheme/f0c9d1fd8b68eb322e320e65ec40b0bf7d1b41dc/c-platform.scm
scheme
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 conditions and the following disclaimer. Redistributio...
c-platform.scm - Platform specific parameters and definitions Copyright ( c ) 2008 - 2016 , The CHICKEN Team Copyright ( c ) 2000 - 2007 , THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " AND ANY EXPRESS CONTRIBUTORS BE LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , ...
c8d9d0077fa881f4ac6fad43b7563a6110002c9a11ea7e6535e7f0e753c3a963
skynet-gh/skylobby
tests.clj
(ns tests (:require [com.jakemccrary.test-refresh :refer [monitor-project]] hashp.core [pjstadig.humane-test-output])) (defn -main [] (pjstadig.humane-test-output/activate!) (monitor-project ["test/clj"] {:nses-and-selectors [:ignore [[(constantly true)]]] :do-not-monitor-keystrokes tru...
null
https://raw.githubusercontent.com/skynet-gh/skylobby/914db874625aa9c275b9d8986cb8b40f07ea3604/dev/clj/test/tests.clj
clojure
(ns tests (:require [com.jakemccrary.test-refresh :refer [monitor-project]] hashp.core [pjstadig.humane-test-output])) (defn -main [] (pjstadig.humane-test-output/activate!) (monitor-project ["test/clj"] {:nses-and-selectors [:ignore [[(constantly true)]]] :do-not-monitor-keystrokes tru...
3b5cdce3372b13201faccc3d5d918fe91ed239402fe882dd1365ee5c69c09692
fizruk/miso-aframe
Box.hs
# LANGUAGE DeriveGeneric # {-# LANGUAGE OverloadedStrings #-} module Miso.AFrame.Core.Primitives.Box where import Data.Aeson (ToJSON(..), Value) import GHC.Generics (Generic) import Miso.AFrame.Core.Types import Miso.AFrame.Core.Internal.Utils data BoxAttrs = BoxAttrs { boxAmbientOcclusionMap :: Maybe V...
null
https://raw.githubusercontent.com/fizruk/miso-aframe/eb608e86fd71f01b397cde04124ff3a949e843be/src/Miso/AFrame/Core/Primitives/Box.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE DeriveGeneric # module Miso.AFrame.Core.Primitives.Box where import Data.Aeson (ToJSON(..), Value) import GHC.Generics (Generic) import Miso.AFrame.Core.Types import Miso.AFrame.Core.Internal.Utils data BoxAttrs = BoxAttrs { boxAmbientOcclusionMap :: Maybe Value , boxAmbientOcclusionMapInte...
0d5af6308b98a48d189691752f79b37ad3084c44c73bc2bc01866449541a66fb
Yomguithereal/clj-fuzzy
dice.cljc
;; ------------------------------------------------------------------- clj - fuzzy Sorensen - Dice Coefficient ;; ------------------------------------------------------------------- ;; ;; Author : ( Yomguithereal ) Version : 0.1 ;; Explanation: ;; –Dice_coefficient ;; (ns clj-fuzzy.dice (:require cl...
null
https://raw.githubusercontent.com/Yomguithereal/clj-fuzzy/ce7c57dfb14f6ddc99bf4d9ab74c778128438d8b/src/clj_fuzzy/dice.cljc
clojure
------------------------------------------------------------------- ------------------------------------------------------------------- Explanation: –Dice_coefficient Main functions
clj - fuzzy Sorensen - Dice Coefficient Author : ( Yomguithereal ) Version : 0.1 (ns clj-fuzzy.dice (:require clojure.string clojure.set) (:use [clj-fuzzy.helpers :only [n-grams]])) Utilities (defn- letter-sets [n string] (set (n-grams n (-> (clojure.string/replace string #"\s+" "") ...
19c6274ec2dc40eaee8fd52c804e3a502b69b4da569cf7427c5faf25993879ae
Zulu-Inuoe/clution
proc-parse.lisp
(in-package :cl-user) (defpackage proc-parse (:use :cl) #+(or sbcl openmcl cmu allegro lispworks) (:import-from #+sbcl :sb-cltl2 #+openmcl :ccl #+cmu :ext #+allegro :sys #+lispworks :hcl :variable-information) (:import-from :alexand...
null
https://raw.githubusercontent.com/Zulu-Inuoe/clution/b72f7afe5f770ff68a066184a389c23551863f7f/cl-clution/qlfile-libs/proc-parse-20160318-git/src/proc-parse.lisp
lisp
(in-package :cl-user) (defpackage proc-parse (:use :cl) #+(or sbcl openmcl cmu allegro lispworks) (:import-from #+sbcl :sb-cltl2 #+openmcl :ccl #+cmu :ext #+allegro :sys #+lispworks :hcl :variable-information) (:import-from :alexand...
b4f82b3c24b16bef4d1f1b3f0f01b72d050dfab6d366847f49bce68ea0247656
agilecreativity/gh-utils
core_test.clj
(ns gh_utils.core-test (:require [clojure.test :refer :all] [com.agilecreativity.gh_utils.core :as ghu])) (deftest simple-test-example (testing "Simple test place holder" (is (= 6 (+ 2 4))))) ;; To run the test (run-tests)
null
https://raw.githubusercontent.com/agilecreativity/gh-utils/dadf5e3bcf9cda65336888c1beaefc32d35ebf57/src/test/clj/gh_utils/core_test.clj
clojure
To run the test
(ns gh_utils.core-test (:require [clojure.test :refer :all] [com.agilecreativity.gh_utils.core :as ghu])) (deftest simple-test-example (testing "Simple test place holder" (is (= 6 (+ 2 4))))) (run-tests)
2be31fb8b5f7a590e6f3f94f14d29d960181b851da9749463272c6af61c6a700
uw-unsat/leanette-popl22-artifact
float.rkt
(define (float x) (let ([ret (object FLOAT_ID x)]) (begin (set-object-value! ret x) (return ret)))) Comparison Operators (define (Float_inst_== x y) (if (or (not (object? y)) (not (object? x))) (return (eq? x y)) (let* ([val1 (object-value x)] [val2 (object-value y)] ...
null
https://raw.githubusercontent.com/uw-unsat/leanette-popl22-artifact/80fea2519e61b45a283fbf7903acdf6d5528dbe7/rosette-benchmarks-4/rtr/verif_libraries/float.rkt
racket
Arithmetic Operators
(define (float x) (let ([ret (object FLOAT_ID x)]) (begin (set-object-value! ret x) (return ret)))) Comparison Operators (define (Float_inst_== x y) (if (or (not (object? y)) (not (object? x))) (return (eq? x y)) (let* ([val1 (object-value x)] [val2 (object-value y)] ...
02f1d2ff3b6c81aede6f224e800abab1316d526ad21aebf336f6f016d2df00fd
takikawa/racket-ppa
dict.rkt
#lang racket/base (require racket/contract/base "private/dict.rkt" "private/keyword-apply-dict.rkt" "private/custom-hash.rkt") (define (dict-implements/c . syms) (if (null? syms) dict? (flat-named-contract `(dict-implements/c . ,syms) (lambda (x) (and ...
null
https://raw.githubusercontent.com/takikawa/racket-ppa/5f2031309f6359c61a8dfd1fec0b77bbf9fb78df/collects/racket/dict.rkt
racket
---------------------------------------- ---------------------------------------- ---------------------------------------- ---------------------------------------- because default can be multi-valued procedure ---------------------------------------- use if/c ? use if/c use if/c ?
#lang racket/base (require racket/contract/base "private/dict.rkt" "private/keyword-apply-dict.rkt" "private/custom-hash.rkt") (define (dict-implements/c . syms) (if (null? syms) dict? (flat-named-contract `(dict-implements/c . ,syms) (lambda (x) (and ...
98efb2c13bdef960cfd51a459e20e5613d91f615c9d8b475c32b74f74e200a64
haskell/cabal
Main.hs
module Main where main :: IO () main = putStrLn "This should remain as is!"
null
https://raw.githubusercontent.com/haskell/cabal/c21dbcd2a9d54962eb39f598dfce2d012ff7fd1c/cabal-testsuite/PackageTests/Init/app/Main.hs
haskell
module Main where main :: IO () main = putStrLn "This should remain as is!"
b29d10fd760af7f060052d69f346768d0314a90ea31d922acc17125a17d6c881
rotatef/json-streams
pass2.lisp
() (:begin-array :begin-array :begin-array :begin-array :begin-array :begin-array :begin-array :begin-array :begin-array :begin-array :begin-array :begin-array :begin-array :begin-array :begin-array :begin-array :begin-array :begin-array :begin-array "Not too deep" :end-array :end-array :end-arr...
null
https://raw.githubusercontent.com/rotatef/json-streams/5da012e8133affbf75024e7500feb37394690752/tests/json.org/pass2.lisp
lisp
() (:begin-array :begin-array :begin-array :begin-array :begin-array :begin-array :begin-array :begin-array :begin-array :begin-array :begin-array :begin-array :begin-array :begin-array :begin-array :begin-array :begin-array :begin-array :begin-array "Not too deep" :end-array :end-array :end-arr...
5f88c7939e068b573260a52f33060c6005b1d06bc51e13917c70c3e3eea73e84
squirrel-prover/squirrel-prover
nameOccs.ml
Generic functions to search illegal occurrences of names , and generate the appropriate proof obligations . Building upon Iter and Match . For use when writing tactics , eg gdh , fresh . and generate the appropriate proof obligations. Building upon Iter and Match. For use when writing tactics,...
null
https://raw.githubusercontent.com/squirrel-prover/squirrel-prover/12424c7a975a54953428866908071bdf9765f398/src/nameOccs.ml
ocaml
------------------------------------------------------------------ taken directly from the old fresh.ml * Exception raised when a forbidden occurrence of a message variable is found. Functions to find all timestamps occurring in a term type of a timestamp occurrence for now, positions are not allowed here. ...
Generic functions to search illegal occurrences of names , and generate the appropriate proof obligations . Building upon Iter and Match . For use when writing tactics , eg gdh , fresh . and generate the appropriate proof obligations. Building upon Iter and Match. For use when writing tactics,...
68b29461e971fc0db5a29285a796ccd5ffaf72622cb7b484b0302765b618c572
leonoel/missionary
mbx_test.cljc
(ns missionary.mbx-test (:require [lolcat.core :as lc] [lolcat.lib :as l] [missionary.core :as m] [clojure.test :as t]) (:import [missionary Cancelled])) (lc/defword post [id v & events] [v (l/over) (l/change id) (apply lc/call 1 events) (l/lose)]) (lc/defword fetch [id task-id ...
null
https://raw.githubusercontent.com/leonoel/missionary/73096500db42195bcdbcf7830ca8aa995d15f005/test/missionary/mbx_test.cljc
clojure
this case is non-deterministic for now
(ns missionary.mbx-test (:require [lolcat.core :as lc] [lolcat.lib :as l] [missionary.core :as m] [clojure.test :as t]) (:import [missionary Cancelled])) (lc/defword post [id v & events] [v (l/over) (l/change id) (apply lc/call 1 events) (l/lose)]) (lc/defword fetch [id task-id ...
1e8aa29f74466a0a64a8aae39dc1c3c2b701cb9cdae987ad31bb24020b89471e
picty/parsifal
libpgp.ml
open Parsifal open BasePTypes open PTypes type 'a safe_parse_container = SafeParsed of 'a | SafeUnparsed of binstring*string let parse_safe_parse_container _name parse_fun input = let saved_offset = input.cur_offset and saved_bitstate = input.cur_bitstate in try let res = SafeParsed (parse_fun inp...
null
https://raw.githubusercontent.com/picty/parsifal/767a1d558ea6da23ada46d8d96a057514b0aa2a8/openpgp/libpgp.ml
ocaml
§3.5 §9.1 Reserved only Reserved only Reserved only, X9.42 §9.1 Reserved only Reserved only §9.1 Reserved only, X9.42 §9.1 §9.1 Reserved only Reserved only §9.1 Reserved only, X9.42 §9.2 Must implement Should implement Should implement RFC5581 §3 RFC5581 §3 RFC5581 §3 §9.3...
open Parsifal open BasePTypes open PTypes type 'a safe_parse_container = SafeParsed of 'a | SafeUnparsed of binstring*string let parse_safe_parse_container _name parse_fun input = let saved_offset = input.cur_offset and saved_bitstate = input.cur_bitstate in try let res = SafeParsed (parse_fun inp...
79d09138cac936dc7db170b0f99ba60520b9be5ddd576e4c2b3b378943100a06
AshleyMoni/QuadTree
QuadTree.hs
{-# OPTIONS_HADDOCK show-extensions #-} {-# LANGUAGE Safe #-} {-# LANGUAGE Rank2Types #-} # LANGUAGE ScopedTypeVariables # | Module : Data . QuadTree Description : Region quadtrees with lens support . Copyright : ( c ) , 2015 License : : < > Stability : Stable The purpose of t...
null
https://raw.githubusercontent.com/AshleyMoni/QuadTree/0ff9c30ad2f047172f75b728374de8c1f82155f3/Data/QuadTree.hs
haskell
# OPTIONS_HADDOCK show-extensions # # LANGUAGE Safe # # LANGUAGE Rank2Types # * Data Type & Constructor * Index access $locations * Functor * Foldable ** Tiles $tiles ** Tile functions $tileuse * Printers * Miscellaneous helpers $locations with an O(log n) lookup and insertion speed. This is both faster a...
# LANGUAGE ScopedTypeVariables # | Module : Data . QuadTree Description : Region quadtrees with lens support . Copyright : ( c ) , 2015 License : : < > Stability : Stable The purpose of this module is to provide discrete region quadtrees that can be used as simple functional...
1f0b0b3959d041ef60c60776f4da2d53af6607a13a89b67d317143e796786edb
pedestal/pedestal
dev.clj
Copyright 2013 Relevance , Inc. Copyright 2014 - 2022 Cognitect , Inc. ; The use and distribution terms for this software are covered by the Eclipse Public License 1.0 ( ) ; 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 ...
null
https://raw.githubusercontent.com/pedestal/pedestal/53bfe70143a22cdfd2f0d183023334a199c9e9a2/service-tools/src/io/pedestal/service_tools/dev.clj
clojure
The use and distribution terms for this software are covered by the which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software.
Copyright 2013 Relevance , Inc. Copyright 2014 - 2022 Cognitect , Inc. Eclipse Public License 1.0 ( ) (ns io.pedestal.service-tools.dev (:require [io.pedestal.http :as bootstrap] [ns-tracker.core :as tracker])) (defn- ns-reload [track] (try (doseq [ns-sym (track)] (require ns-sym :reloa...
34e63c36f331151bdd2361c2e21b095c6269104e7ae47fc480d002d2af45793c
coq/coq
lib.ml
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * *...
null
https://raw.githubusercontent.com/coq/coq/29e1b3766875e0ba33a00f8ea42b85cb361609f5/library/lib.ml
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team // * This file is distributed under the terms of the * (see LICENSE file for the text of the license) ************************************...
v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser Gener...
b3a6add21425834bcb1cb87296ea7fc6c2dfa25fe8f83e5daf5c846aa80e82dd
oxidizing/sihl
postgresql.ml
let services = [ Sihl.Database.register () ; Sihl.Database.Migration.PostgreSql.register [] ; Sihl_cache.PostgreSql.register () ] ;; module Test = Cache.Make (Sihl_cache.PostgreSql) let () = Sihl.Configuration.read_string "DATABASE_URL_TEST_POSTGRESQL" |> Option.value ~default:"postgres:password@127.0.0.1...
null
https://raw.githubusercontent.com/oxidizing/sihl/3f23bb9e6d163278e10bac719cd434194f50baaf/sihl-cache/test/postgresql.ml
ocaml
let services = [ Sihl.Database.register () ; Sihl.Database.Migration.PostgreSql.register [] ; Sihl_cache.PostgreSql.register () ] ;; module Test = Cache.Make (Sihl_cache.PostgreSql) let () = Sihl.Configuration.read_string "DATABASE_URL_TEST_POSTGRESQL" |> Option.value ~default:"postgres:password@127.0.0.1...
99b5a8376e2c24f87b33f6438b8920ca6e93b7b9ae6c7419291793353b8f11bb
dmitryvk/sbcl-win32-threads
array.lisp
;;;; functions to implement arrays This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the ;;;; public domain. The software is in the public domain and is...
null
https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/src/code/array.lisp
lisp
functions to implement arrays more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. miscellaneous accessor functions These functions are only needed by the interpreter, 'cause the MAKE-ARRAY Th...
This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB!IMPL") #!-sb-fluid (declaim (inline adjustable-array-p array-displacement)) compiler i...
f587bd8f7c2a58793cad4b85a39bbc6193cecc6828d1f8c22975b61a215b8dd5
replikativ/datahike
transact_test.cljc
(ns datahike.test.attribute-refs.transact-test (:require #?(:cljs [cljs.test :as t :refer-macros [is deftest testing]] :clj [clojure.test :as t :refer [is deftest testing use-fixtures]]) [datahike.api :as d] [datahike.test.attribute-refs.utils :refer [ref-db ref-e0 ...
null
https://raw.githubusercontent.com/replikativ/datahike/408cb0f538a837267e44b098df895fa00348fe10/test/datahike/test/attribute_refs/transact_test.cljc
clojure
(ns datahike.test.attribute-refs.transact-test (:require #?(:cljs [cljs.test :as t :refer-macros [is deftest testing]] :clj [clojure.test :as t :refer [is deftest testing use-fixtures]]) [datahike.api :as d] [datahike.test.attribute-refs.utils :refer [ref-db ref-e0 ...
fbbb832888c9e3368e1db3cac5abc3275e0197a9cb31334ba1d5ffc477711c95
luminus-framework/lein-uberwar
project.clj
(defproject lein-uberwar "0.2.3" :description "a Leiningen plugin for packaging WAR archives" :url "-uberwar" :license {:name "Eclipse Public License" :url "-v10.html"} :global-vars {*warn-on-reflection* true} :dependencies [[org.clojure/data.xml "0.0.8"] [leinjacker "0.4.3"]])
null
https://raw.githubusercontent.com/luminus-framework/lein-uberwar/10ed28231f1f694c91e487d4a3bfcede0fc52dde/project.clj
clojure
(defproject lein-uberwar "0.2.3" :description "a Leiningen plugin for packaging WAR archives" :url "-uberwar" :license {:name "Eclipse Public License" :url "-v10.html"} :global-vars {*warn-on-reflection* true} :dependencies [[org.clojure/data.xml "0.0.8"] [leinjacker "0.4.3"]])