_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
010ac73c3b4c7c15e14921033335ec8ea8d3ed0ad3c80ae9783d7648e9d721a8
Clozure/ccl
x86-error-signal.lisp
;;; Copyright 2005 - 2009 Clozure Associates ;;; 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, ...
null
https://raw.githubusercontent.com/Clozure/ccl/6c1a9458f7a5437b73ec227e989aa5b825f32fd3/level-1/x86-error-signal.lisp
lisp
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 pe...
Copyright 2005 - 2009 Clozure Associates distributed under the License is distributed on an " AS IS " BASIS , (in-package "CCL") #+x8664-target (defun xp-argument-count (xp) (ldb (byte (- 16 x8664::fixnumshift) 0) (encoded-gpr-lisp xp x8664::nargs.q))) #+x8632-target (defun xp-argument-cou...
851b6cd87e11298dd12685e34ec3bbcf8cfb37f2667c6c902e81f07bab5dd249
hbr/albatross
list.mli
* A thin wrapper around [ . List ] which avoids throwing exceptions and with some additional monadic functions . with some additional monadic functions. *) open Module_types * { 1 List Monad } (** A list of values of type ['a]. *) type 'a t = 'a list (** [return a] makes a singleton list with the element [a...
null
https://raw.githubusercontent.com/hbr/albatross/8f28ef97951f92f30dc69cf94c0bbe20d64fba21/ocaml/fmlib/basic/list.mli
ocaml
* A list of values of type ['a]. * [return a] makes a singleton list with the element [a]. * [l >>= f] applies the function [f] to all elements of the list [l] and concatenates all lists. * [flst <*> lst] is equivalent to [flst >>= fun f -> map f lst] i.e. it maps all functions contained in [flst] over the lis...
* A thin wrapper around [ . List ] which avoids throwing exceptions and with some additional monadic functions . with some additional monadic functions. *) open Module_types * { 1 List Monad } type 'a t = 'a list val return: 'a -> 'a t val (>>=): 'a t -> ('a -> 'b t) -> 'b t * [ f > = > g ] composes the...
165b16b5a912b40f40c8781330632d8077c83bb112e4878fb31894bd057ffb65
facebook/flow
lintSettings.ml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/flow/51c84b797c57d0807a5b6dbbb4a10733913e9ec3/src/common/lints/lintSettings.ml
ocaml
The default value associated with a lint if the lint kind isn't found in the map Iterate over all lint kinds with an explicit value Map over all lint kinds with an explicit value SEVERITY-SPECIFIC FUNCTIONS Artificially locate the lines to detect unused lines Remove the artificial locations before returning ...
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
f7931fc6b0c8bcff39f1997e15e3fe2fb83c4e30fbda8118cc02f2d141ab8997
2600hz/kazoo
kazoo_endpoint_maintenance.erl
%%%----------------------------------------------------------------------------- ( C ) 2010 - 2020 , 2600Hz %%% @doc This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %%% %%% @end %%%--------...
null
https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/core/kazoo_endpoint/src/kazoo_endpoint_maintenance.erl
erlang
----------------------------------------------------------------------------- @doc @end -----------------------------------------------------------------------------
( C ) 2010 - 2020 , 2600Hz This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. -module(kazoo_endpoint_maintenance). -export([flush/0]). -include("kazoo_endpoint.hrl"). -spec flush() -> 'ok'....
a3fae72dc11d420e81c6fa6964f4adf7d1e76756cd8d0f4c468e3eb4c4d8d907
GaloisInc/cryptol
Unlit.hs
-- | Module : Cryptol . . Copyright : ( c ) 2013 - 2016 Galois , Inc. -- License : BSD3 -- Maintainer : -- Stability : provisional -- Portability : portable -- -- Convert a literate source file into an ordinary source file. {-# LANGUAGE OverloadedStrings, Safe, PatternGuards #-} module C...
null
https://raw.githubusercontent.com/GaloisInc/cryptol/fd05e16022acd13e4659f0c65194e2480cc088a3/src/Cryptol/Parser/Unlit.hs
haskell
| License : BSD3 Maintainer : Stability : provisional Portability : portable Convert a literate source file into an ordinary source file. # LANGUAGE OverloadedStrings, Safe, PatternGuards # | The preprocessor for `markdown` XXX should this be an error? | The preprocessor for `latex`
Module : Cryptol . . Copyright : ( c ) 2013 - 2016 Galois , Inc. module Cryptol.Parser.Unlit ( unLit, PreProc(..), guessPreProc, knownExts ) where import Data.Text(Text) import qualified Data.Text as Text import Data.Char(isSpace) import System.FilePath(takeExtensi...
9c82ccfd3baa064520a6218b1c49a89674d6d739b01fb40372b4ad0a240f33af
jtdaugherty/vty
Debug.hs
Copyright 2009 - 2010 module Graphics.Vty.Debug ( MockWindow(..) , regionForWindow , allSpansHaveWidth , spanOpsAffectedColumns , spanOpsAffectedRows ) where import Graphics.Vty.Attributes import Graphics.Vty.Image (DisplayRegion) import Graphics.Vty.Span import qualified Data.Vector as Vector rowOps...
null
https://raw.githubusercontent.com/jtdaugherty/vty/2f8c92b8af5cd82d0746d6cf90bb32f97e564fd2/src/Graphics/Vty/Debug.hs
haskell
Copyright 2009 - 2010 module Graphics.Vty.Debug ( MockWindow(..) , regionForWindow , allSpansHaveWidth , spanOpsAffectedColumns , spanOpsAffectedRows ) where import Graphics.Vty.Attributes import Graphics.Vty.Image (DisplayRegion) import Graphics.Vty.Span import qualified Data.Vector as Vector rowOps...
4a9fdb2e6f6ada804d5a8fbb29d0809ebd4281664a031c080409eb2bb72f39c8
samaaron/arnold
grumbles.clj
(ns arnold.grumbles (:use [overtone.live])) Inspired by an example in an early chapter of the SuperCollider book (definst grumble [speed 6 freq-mul 1] (let [snd (mix (map #(* (sin-osc (* % freq-mul 100)) (max 0 (+ (lf-noise1:kr speed) (line:kr 1 -1 3...
null
https://raw.githubusercontent.com/samaaron/arnold/e8daa3ba14dc0d654740750d6cf02ef42cd0fc2e/src/arnold/grumbles.clj
clojure
(ns arnold.grumbles (:use [overtone.live])) Inspired by an example in an early chapter of the SuperCollider book (definst grumble [speed 6 freq-mul 1] (let [snd (mix (map #(* (sin-osc (* % freq-mul 100)) (max 0 (+ (lf-noise1:kr speed) (line:kr 1 -1 3...
2df8c473bd8d4b38eb1c6d66f18bdeb20296613f7784ab07674023d68b84cfd3
rowangithub/DOrder
mtype.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/rowangithub/DOrder/e0d5efeb8853d2a51cc4796d7db0f8be3185d7df/typing/mtype.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 : mtype.mli 6196 2004 - 04 - 09...
be9502714e559bd7b77ab080081dfa5f25de2806ba78ae8c1e9a235d9e5538a7
brendanhay/gogol
Types.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # {-# LANGUAGE St...
null
https://raw.githubusercontent.com/brendanhay/gogol/fffd4d98a1996d0ffd4cf64545c5e8af9c976cda/lib/services/gogol-translate/gen/Gogol/Translate/Types.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated * Configuration * Types ** Xgafv ** BatchDocumentOutputConfig ** BatchTranslateDocumentRequest ** BatchTranslateDocumentRequest_FormatConversions ** BatchTranslateDocumentRequest_Glossaries ** BatchTranslateTextRequest ** B...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators...
550378a5ab81106d83330035ddf20783099f9a88de39132bbaa3ab593e60aeee
fp-works/2019-winter-Haskell-school
Exercise02Spec.hs
module CIS194.Homework05.Exercise02Spec where import CIS194.Homework05.Exercise02 import Test.Tasty.Hspec spec_evalStr :: Spec spec_evalStr = it "evaluates the value correctly" $ do evalStr "(2+3)*4" `shouldBe` Just 20 evalStr "2+3*4" `shouldBe` Just 14 evalStr "2+3*" `shouldBe` Nothing evalStr ""...
null
https://raw.githubusercontent.com/fp-works/2019-winter-Haskell-school/823b67f019b9e7bc0d3be36711c0cc7da4eba7d2/cis194/week5/daniel-deng/test/Exercise02Spec.hs
haskell
module CIS194.Homework05.Exercise02Spec where import CIS194.Homework05.Exercise02 import Test.Tasty.Hspec spec_evalStr :: Spec spec_evalStr = it "evaluates the value correctly" $ do evalStr "(2+3)*4" `shouldBe` Just 20 evalStr "2+3*4" `shouldBe` Just 14 evalStr "2+3*" `shouldBe` Nothing evalStr ""...
781e108fe8a9080bea34b5200cbb3df6a11d481adb8a65ddb6f957499affd22a
OCamlPro/directories
directories.mli
module Base_dirs () : sig val home_dir : string option val cache_dir : string option val config_dir : string option val data_dir : string option val data_local_dir : string option val preference_dir : string option val runtime_dir : string option val state_dir : string option val executable_dir : stri...
null
https://raw.githubusercontent.com/OCamlPro/directories/1cf7211f918fa909e5f77c0dfbb059c74071e99b/src/directories.mli
ocaml
module Base_dirs () : sig val home_dir : string option val cache_dir : string option val config_dir : string option val data_dir : string option val data_local_dir : string option val preference_dir : string option val runtime_dir : string option val state_dir : string option val executable_dir : stri...
577dbb0b7fdf1c1e5721aa454b40c897362e50e20fc91376f78790fc097a34a3
denisidoro/rosebud
core.clj
(ns fundo.logic.core (:require [clj-time.format :as time.format] [quark.beta.math.point :as point] [quark.beta.time :as time])) (def ^:private formatter (time.format/formatter "yyyyMMdd")) (defn ^:private fundo-entry->point [{:keys [c d p q]}] (point/new (time/date-str->millis (str d)...
null
https://raw.githubusercontent.com/denisidoro/rosebud/90385528d9a75a0e17803df487a4f6cfb87e981c/server/src/fundo/logic/core.clj
clojure
(ns fundo.logic.core (:require [clj-time.format :as time.format] [quark.beta.math.point :as point] [quark.beta.time :as time])) (def ^:private formatter (time.format/formatter "yyyyMMdd")) (defn ^:private fundo-entry->point [{:keys [c d p q]}] (point/new (time/date-str->millis (str d)...
10792c6d1604ad5439b5c83e7516a895d2c7ed4cbcce7872347f44495c0f56f4
dalaing/little-languages
Value.hs
module Components.Term.Nat.Eval.Value ( nv , valueInput ) where import Data.Foldable (asum) import Control.Lens (preview, review) import Control.Monad.Reader (ReaderT(..)) import Common.Recursion (Step(..)) import Common.Term.Eval.Value (ValueInput(..)) import Components.Term.Nat.Data valueTmZero :: WithNa...
null
https://raw.githubusercontent.com/dalaing/little-languages/9f089f646a5344b8f7178700455a36a755d29b1f/code/old/multityped/nb-modular/src/Components/Term/Nat/Eval/Value.hs
haskell
this is the strict version
module Components.Term.Nat.Eval.Value ( nv , valueInput ) where import Data.Foldable (asum) import Control.Lens (preview, review) import Control.Monad.Reader (ReaderT(..)) import Common.Recursion (Step(..)) import Common.Term.Eval.Value (ValueInput(..)) import Components.Term.Nat.Data valueTmZero :: WithNa...
52fced23b09c95c9ed64194b2572afdbca1ef5fec235745c05dcb7e001c1cc16
practicalli/clojure-through-code
01_basics.clj
namespaces are similar to packages in Java , in that they are a grouping of data and behaviour namespaces allow you to structure your Clojure code into logical groupings namesaces help you use functions defined in one namespace in a different namespace ;; using the (use) function in clojure. (ns clojure-through-...
null
https://raw.githubusercontent.com/practicalli/clojure-through-code/e65842363c328fb251c88a0c6a377ed2a42d152a/src/clojure_through_code/01_basics.clj
clojure
using the (use) function in clojure. (:require 'clojure.repl) (:require [clojure.repl] :refer :all) no need for lots of ; , and other silly things... and the remaining elements being arguments to that function. What is my environment Symbols can be evaluated outside of a list structure, functions (the behavio...
namespaces are similar to packages in Java , in that they are a grouping of data and behaviour namespaces allow you to structure your Clojure code into logical groupings namesaces help you use functions defined in one namespace in a different namespace (ns clojure-through-code.01-basics (:require [clojure.stri...
e22cf5a4671acc80357915fac90aaf4f7d35a40f74aabbecf80fc95a09451d7c
txyyss/Project-Euler
Euler138.hs
-- Special isosceles triangles module Euler138 where -- Detailed analysis can be found in -- -euler-138-special-isosceles-triangles/ result138 = sum $ map (abs . snd) $ tail $ take 13 $ iterate helper (0,1) where helper (x,y) = (- 9 * x - 4 * y - 4, - 20 * x - 9 * y - 8)
null
https://raw.githubusercontent.com/txyyss/Project-Euler/d2f41dad429013868445c1c9c1c270b951550ee9/Euler138.hs
haskell
Special isosceles triangles Detailed analysis can be found in -euler-138-special-isosceles-triangles/
module Euler138 where result138 = sum $ map (abs . snd) $ tail $ take 13 $ iterate helper (0,1) where helper (x,y) = (- 9 * x - 4 * y - 4, - 20 * x - 9 * y - 8)
e5a57475aa4138879435ee54983d0b819f6cf916590e35dd785c4b98ddf43cd4
mtakuya/gauche-yahoo-jp
news-topicslog.scm
#!/usr/bin/env gosh (use yahoo-jp) (define appid "YOUR-APPID") (define yahoo-obj (make-yahoo-jp appid)) (define res (yahoo:news-topicslog yahoo-obj '((category "computer") (startdate "20100301") (results "5")))) (...
null
https://raw.githubusercontent.com/mtakuya/gauche-yahoo-jp/3abdbf3b10d3db1923329e41b3a8d8cff5796413/example/news-topicslog.scm
scheme
#!/usr/bin/env gosh (use yahoo-jp) (define appid "YOUR-APPID") (define yahoo-obj (make-yahoo-jp appid)) (define res (yahoo:news-topicslog yahoo-obj '((category "computer") (startdate "20100301") (results "5")))) (...
f03273f6b0091444699a9ccb96f5b133ab01a6d3fbe5c10210ecf73761a2bf61
NorfairKing/sydtest
Webdriver.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE NumericUnderscores # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # -- Beca...
null
https://raw.githubusercontent.com/NorfairKing/sydtest/74fc91867dca88c0d22faae1a0bfcd027d74e4b8/sydtest-webdriver/src/Test/Syd/Webdriver.hs
haskell
# LANGUAGE OverloadedStrings # Because of webdriver using dangerous constructors For the undefined trick * Defining webdriver tests * Writing webdriver tests * Running a selenium server | Type synonym for webdriver tests | A monad for webdriver tests. | The base url of the app we test, so that we can test exter...
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE NumericUnderscores # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -fno - warn - incomplete - r...
89453334e21bd8c4bd95bfdd858b3527260186ad52994c5d73ef486aad1abc58
Opetushallitus/ataru
liitepyynto_information_request_handlers.cljs
(ns ataru.virkailija.application.attachments.liitepyynto-information-request-handlers (:require [ataru.application-common.fx :refer [http]] [cljs-time.core :as c] [cljs-time.format :as f] [re-frame.core :as re-frame])) (def iso-formatter (f/formatter "yyyy-MM-dd'T'HH:mm:ss.SSSZZ")...
null
https://raw.githubusercontent.com/Opetushallitus/ataru/2d8ef1d3f972621e301a3818567d4e11219d2e82/src/cljs/ataru/virkailija/application/attachments/liitepyynto_information_request_handlers.cljs
clojure
(ns ataru.virkailija.application.attachments.liitepyynto-information-request-handlers (:require [ataru.application-common.fx :refer [http]] [cljs-time.core :as c] [cljs-time.format :as f] [re-frame.core :as re-frame])) (def iso-formatter (f/formatter "yyyy-MM-dd'T'HH:mm:ss.SSSZZ")...
c1cefb528d6ba4ec1fe505700e5a06b7dca0e734457b072ef8d52d0e483a6c90
jdreaver/eventful
Projection.hs
# LANGUAGE QuasiQuotes # # LANGUAGE TemplateHaskell # module Eventful.TH.Projection ( mkProjection ) where import Data.Char (toLower) import Language.Haskell.TH import SumTypes.TH import Eventful.Projection -- | Creates a 'Projection' for a given type and a list of events. The user of -- this function also need...
null
https://raw.githubusercontent.com/jdreaver/eventful/3f0c604e5bb2dcf5bacf0a2e01edf6a5e9c5e22e/eventful-core/src/Eventful/TH/Projection.hs
haskell
| Creates a 'Projection' for a given type and a list of events. The user of this function also needs to provide event handlers for each event. For example: @ @ This will produce the following: @ type MyStateProjection = Projection MyState MyStateEvent myStateProjection :: MyStateProjection @ ...
# LANGUAGE QuasiQuotes # # LANGUAGE TemplateHaskell # module Eventful.TH.Projection ( mkProjection ) where import Data.Char (toLower) import Language.Haskell.TH import SumTypes.TH import Eventful.Projection data EventA = EventA data EventB = EventB data = myStateDefault : : myStateD...
ebb84146d112379eeeaa8d25872bf27e97292451e8a8e8191d804829943e5017
LambdaScientist/CLaSH-by-example
TestSimpleDFlop.hs
# LANGUAGE NoImplicitPrelude # # LANGUAGE RecordWildCards # # LANGUAGE DeriveGeneric # {-# LANGUAGE DeriveAnyClass #-} module ClocksAndRegisters.TestSimpleDFlop where import CLaSH.Prelude import SAFE.TestingTools import SAFE.CommonClash import ClocksAndRegisters.Models.SimpleDFlop import Text.PrettyPrint.Hughes...
null
https://raw.githubusercontent.com/LambdaScientist/CLaSH-by-example/e783cd2f2408e67baf7f36c10398c27036a78ef3/ConvertedClashExamples/src/ClocksAndRegisters/TestSimpleDFlop.hs
haskell
# LANGUAGE DeriveAnyClass # -TESTING
# LANGUAGE NoImplicitPrelude # # LANGUAGE RecordWildCards # # LANGUAGE DeriveGeneric # module ClocksAndRegisters.TestSimpleDFlop where import CLaSH.Prelude import SAFE.TestingTools import SAFE.CommonClash import ClocksAndRegisters.Models.SimpleDFlop import Text.PrettyPrint.HughesPJClass import GHC.Generics (Gen...
64c42355d3225bc220b20aeffe4f876828f612b4ba19d6045bf6e1eba14d4acc
opennars/Narjure
set_functions.clj
(ns nal.deriver.set-functions (:require [clojure.set :as set])) ;todo performance (defn difference "Set difference precondition operation application code" [[op & set1] [_ & set2]] (into [op] (sort-by hash (set/difference (set set1) (set set2))))) (defn union [[op & set1] [_ & set2]] "Set union precondition...
null
https://raw.githubusercontent.com/opennars/Narjure/cd5a72e6777fc47271d721fef8362aa2dad664ca/src/nal/deriver/set_functions.clj
clojure
todo performance
(ns nal.deriver.set-functions (:require [clojure.set :as set])) (defn difference "Set difference precondition operation application code" [[op & set1] [_ & set2]] (into [op] (sort-by hash (set/difference (set set1) (set set2))))) (defn union [[op & set1] [_ & set2]] "Set union precondition operation applica...
d052b6dd73994ee19910d5503ab04cead2005197323ce4a24e719bb117097ece
UBTECH-Walker/WalkerSimulationFor2020WAIC
HeadPanCommand.lisp
; Auto-generated. Do not edit! (cl:in-package ubt_core_msgs-msg) ;//! \htmlinclude HeadPanCommand.msg.html (cl:defclass <HeadPanCommand> (roslisp-msg-protocol:ros-message) ((target :reader target :initarg :target :type cl:float :initform 0.0) (speed_ratio :reader speed_ratio :initarg :...
null
https://raw.githubusercontent.com/UBTECH-Walker/WalkerSimulationFor2020WAIC/7cdb21dabb8423994ba3f6021bc7934290d5faa9/walker_WAIC_18.04_v1.2_20200616/walker_install/share/common-lisp/ros/ubt_core_msgs/msg/HeadPanCommand.lisp
lisp
Auto-generated. Do not edit! //! \htmlinclude HeadPanCommand.msg.html
(cl:in-package ubt_core_msgs-msg) (cl:defclass <HeadPanCommand> (roslisp-msg-protocol:ros-message) ((target :reader target :initarg :target :type cl:float :initform 0.0) (speed_ratio :reader speed_ratio :initarg :speed_ratio :type cl:float :initform 0.0) (enable_pan_request ...
41dbca589f225c6e4c7105fb3b59988735eaf2595da132b6836a91fae4f19143
practicalli/four-clojure
project.clj
(defproject four-clojure "0.1.0-SNAPSHOT" :description "Discussions on the solutions to the 4Clojure.com challenges" :url "-clojure" :license {:name "Creative Commons Attribution Share-Alike 4.0 International" :url ""} :dependencies [[org.clojure/clojure "1.9.0"]])
null
https://raw.githubusercontent.com/practicalli/four-clojure/9812b63769a06f9b0bfd63e5ffce380b67e5468b/project.clj
clojure
(defproject four-clojure "0.1.0-SNAPSHOT" :description "Discussions on the solutions to the 4Clojure.com challenges" :url "-clojure" :license {:name "Creative Commons Attribution Share-Alike 4.0 International" :url ""} :dependencies [[org.clojure/clojure "1.9.0"]])
f74ce5df45a8c123f57723208f7be51af6933fb710798bd741baf87038cf96df
pink-gorilla/webly
files.clj
(ns modular.webserver.handler.files (:require ; [taoensso.timbre :refer [debug info warn error]] [bidi.bidi :as bidi :refer [url-decode]] [clojure.java.io :as io] [ring.util.response :refer [file-response resource-response]] [ring.middleware.content-type :refer [wrap-content-type]] [ring.middleware....
null
https://raw.githubusercontent.com/pink-gorilla/webly/d449a506e6101afc16d384300cdebb7425e3a7f3/webserver/src/modular/webserver/handler/files.clj
clojure
[taoensso.timbre :refer [debug info warn error]] (warn "file-maybe: " filename) (warn "file found: " filename) copied from bidi. but bidi forgot to wrap not modified (warn "res: " path) awb99 hack
(ns modular.webserver.handler.files (:require [bidi.bidi :as bidi :refer [url-decode]] [clojure.java.io :as io] [ring.util.response :refer [file-response resource-response]] [ring.middleware.content-type :refer [wrap-content-type]] [ring.middleware.not-modified :refer [wrap-not-modified]])) (defrecord...
0697f52c89f243a8197fc93491ef5a72824312739425cf50eaa5dee08b40c0a4
yogthos/reagent-dnd
core.cljs
(ns react-dnd-test.core (:require [reagent.core :as r] [reagent-dnd.core :as dnd]) (:require-macros [reagent.ratom :refer [reaction]])) (defonce state (r/atom {:knight-position [0 0]})) (defn knight-at? [position] (reaction (= (:knight-position @state) position))) (defn can-move-knight? [position] ...
null
https://raw.githubusercontent.com/yogthos/reagent-dnd/9830e240b5f2e372c40a633432d0593288ec6682/env/dev/cljs/react_dnd_test/core.cljs
clojure
(ns react-dnd-test.core (:require [reagent.core :as r] [reagent-dnd.core :as dnd]) (:require-macros [reagent.ratom :refer [reaction]])) (defonce state (r/atom {:knight-position [0 0]})) (defn knight-at? [position] (reaction (= (:knight-position @state) position))) (defn can-move-knight? [position] ...
14408538c1293144f87f071f2349b7ffa5538dfe1f43a6daefa4550ff075ce96
bmeurer/ocamljit2
testsieve.ml
let sieve primes= Event.sync (Event.send primes 0); Event.sync (Event.send primes 1); Event.sync (Event.send primes 2); let integers = Event.new_channel () in let rec enumerate n= Event.sync (Event.send integers n); enumerate (n + 2) and filter inpout = let n = Event.sync (Event.receive inpout) ...
null
https://raw.githubusercontent.com/bmeurer/ocamljit2/ef06db5c688c1160acc1de1f63c29473bcd0055c/testsuite/tests/lib-threads/testsieve.ml
ocaml
let sieve primes= Event.sync (Event.send primes 0); Event.sync (Event.send primes 1); Event.sync (Event.send primes 2); let integers = Event.new_channel () in let rec enumerate n= Event.sync (Event.send integers n); enumerate (n + 2) and filter inpout = let n = Event.sync (Event.receive inpout) ...
d40d557adfb64acef47f285c7dca9be9b2abf7e95abc64e356a1ddb22b5e58a9
deadtrickster/cl-events
package.lisp
(in-package :cl-user) (defpackage :cl-events.test (:use :cl :alexandria :iterate :prove :cl-events)) (in-package :cl-events.test)
null
https://raw.githubusercontent.com/deadtrickster/cl-events/2fdec2dbdef8ba2144139b27a7350d4cedc011a1/t/package.lisp
lisp
(in-package :cl-user) (defpackage :cl-events.test (:use :cl :alexandria :iterate :prove :cl-events)) (in-package :cl-events.test)
c866510a9c91716451948ac03822116e799f5ac33af07914e2828934c75e91fc
expipiplus1/vulkan
VK_KHR_portability_enumeration.hs
{-# language CPP #-} -- | = Name -- VK_KHR_portability_enumeration - instance extension -- = = VK_KHR_portability_enumeration -- -- [__Name String__] -- @VK_KHR_portability_enumeration@ -- -- [__Extension Type__] -- Instance extension -- -- [__Registered Extension Number__] 395 -- -- [__Revision__] ...
null
https://raw.githubusercontent.com/expipiplus1/vulkan/b1e33d1031779b4740c279c68879d05aee371659/src/Vulkan/Extensions/VK_KHR_portability_enumeration.hs
haskell
# language CPP # | = Name [__Name String__] @VK_KHR_portability_enumeration@ [__Extension Type__] Instance extension [__Registered Extension Number__] [__Revision__] [__Extension and Version Dependencies__] [__Contact__] == Other Extension Metadata [__Last Modified Date__] [__IP Status_...
VK_KHR_portability_enumeration - instance extension = = VK_KHR_portability_enumeration 395 1 - Requires support for Vulkan 1.0 - < -Docs/issues/new?body=[VK_KHR_portability_enumeration ] @charles - lunarg%0A*Here describe the issue or question you have about the VK_KHR_port...
a203c2ec4aa546de3204280a973690656702dd8e001fc340656ffb3a6bdecb3d
lambdamikel/DLMAPS
load-race.lisp
;;;-*- Mode: Lisp; Package: COMMON-LISP-USER -*- ;;; This is the RACE Loader for ACL / LINUX Version (in-package :cl-user) (let ((excl::*redefinition-warnings* nil)) (let ((*enable-package-locked-errors* nil)) (defun excl::check-for-duplicate-definitions-in-file (fspec type when &optional icsp) ...
null
https://raw.githubusercontent.com/lambdamikel/DLMAPS/7f8dbb9432069d41e6a7d9c13dc5b25602ad35dc/src/prover/dl-benchmark-suite/race-1-1/race-1-1-acl5-linux/load-race.lisp
lisp
-*- Mode: Lisp; Package: COMMON-LISP-USER -*- This is the RACE Loader for ACL / LINUX Version
(in-package :cl-user) (let ((excl::*redefinition-warnings* nil)) (let ((*enable-package-locked-errors* nil)) (defun excl::check-for-duplicate-definitions-in-file (fspec type when &optional icsp) (declare (ignore fspec type when icsp))))) (let* ((load-pathname (concatenate 'string (direct...
ffacef1defb29aff8b9a6007a0c644198aa10c09c0134a905629098b12300715
puppetlabs/trapperkeeper
bootstrap_test.clj
(ns puppetlabs.trapperkeeper.bootstrap-test (:import (java.io StringReader)) (:require [clojure.test :refer :all] [clojure.java.io :refer [file] :as io] [slingshot.slingshot :refer [try+]] [puppetlabs.kitchensink.core :refer [without-ns]] [puppetlabs.kitchensink.class...
null
https://raw.githubusercontent.com/puppetlabs/trapperkeeper/3e5e7e286287d75e7fdf7eb1dabb2fa534091329/test/puppetlabs/trapperkeeper/bootstrap_test.clj
clojure
This test used to set the user.dir property to the dev-resources dir above, We can't know what order it will find the files on disk, so just just test that this bootstrap config file can be read successfully (ie, this does not throw an exception) Load a bootstrap with a bad service graph to generate an error List...
(ns puppetlabs.trapperkeeper.bootstrap-test (:import (java.io StringReader)) (:require [clojure.test :refer :all] [clojure.java.io :refer [file] :as io] [slingshot.slingshot :refer [try+]] [puppetlabs.kitchensink.core :refer [without-ns]] [puppetlabs.kitchensink.class...
490f67b805d092f8eb8539f8461d6c8cd750cb4137767e800d85c76254088e24
fpco/ide-backend
SrcDist.hs
----------------------------------------------------------------------------- -- | -- Module : Distribution.Simple.SrcDist Copyright : 2004 -- -- Maintainer : -- Portability : portable -- -- This handles the @sdist@ command. The module exports an 'sdist' action but -- also some of the phases that mak...
null
https://raw.githubusercontent.com/fpco/ide-backend/860636f2d0e872e9481569236bce690637e0016e/ide-backend/TestSuite/inputs/Cabal-1.14.0/Distribution/Simple/SrcDist.hs
haskell
--------------------------------------------------------------------------- | Module : Distribution.Simple.SrcDist Maintainer : Portability : portable This handles the @sdist@ command. The module exports an 'sdist' action but also some of the phases that make it up so that other tools can use just the...
Copyright : 2004 The ' createArchive ' action uses the external @tar@ program and assumes that it accepts the @-z@ flag . Neither of these assumptions are valid on Windows . Copyright ( c ) 2003 - 2004 , All rights reserved . Redistribution and use in source and binary forms , with or without m...
92636a746e28884bc5e8c59990a56453cad6533344f7748789a5156355218480
crategus/cl-cffi-gtk
gtk.assistant.lisp
;;; ---------------------------------------------------------------------------- ;;; gtk.assistant.lisp ;;; ;;; The documentation of this file is taken from the GTK 3 Reference Manual Version 3.24 and modified to document the Lisp binding to the GTK library . ;;; See <>. The API documentation of the Lisp binding is ...
null
https://raw.githubusercontent.com/crategus/cl-cffi-gtk/ba198f7d29cb06de1e8965e1b8a78522d5430516/gtk/gtk.assistant.lisp
lisp
---------------------------------------------------------------------------- gtk.assistant.lisp The documentation of this file is taken from the GTK 3 Reference Manual See <>. The API documentation of the Lisp binding is This program is free software: you can redistribute it and/or modify it under the terms of...
Version 3.24 and modified to document the Lisp binding to the GTK library . available from < -cffi-gtk/ > . Copyright ( C ) 2009 - 2011 Copyright ( C ) 2011 - 2021 as published by the Free Software Foundation , either version 3 of the the GNU Lesser General Public License that clarifies the terms for us...
c4b679b55652a8f146cfc7fcc19de7c496421c9572e375c76dfd6bde5f36ca65
EFanZh/EOPL-Exercises
exercise-6.8-inlined.rkt
#lang eopl Exercise 6.8 [ ★ ★ ★ ] Rewrite the interpreter of section 5.4 using a procedural and inlined representation . This is challenging because we effectively have two observers , apply - cont and apply - handler . As a hint , consider modifying the recipe on page 6.1 so that we add to each procedure two ex...
null
https://raw.githubusercontent.com/EFanZh/EOPL-Exercises/11667f1e84a1a3e300c2182630b56db3e3d9246a/solutions/exercise-6.8-inlined.rkt
racket
Grammar. Data structures. Interpreter.
#lang eopl Exercise 6.8 [ ★ ★ ★ ] Rewrite the interpreter of section 5.4 using a procedural and inlined representation . This is challenging because we effectively have two observers , apply - cont and apply - handler . As a hint , consider modifying the recipe on page 6.1 so that we add to each procedure two ex...
8e5f601f65879c3252a1772c06d14502d9fea1e7b02a2e9c8da8b9aef1b5e848
prg-titech/baccaml
opt_mem.mli
open MinCaml open Asm open Opt_lib val remove_rw : int M.t -> string M'.t -> t -> t val find_remove_candidate : int M.t -> (string * exp) M'.t -> exp M.t -> t -> exp M.t val remove_unread_write : exp M.t -> t -> t val const_fold_rw : t -> t
null
https://raw.githubusercontent.com/prg-titech/baccaml/a3b95e996a995b5004ca897a4b6419edfee590aa/opt/opt_mem.mli
ocaml
open MinCaml open Asm open Opt_lib val remove_rw : int M.t -> string M'.t -> t -> t val find_remove_candidate : int M.t -> (string * exp) M'.t -> exp M.t -> t -> exp M.t val remove_unread_write : exp M.t -> t -> t val const_fold_rw : t -> t
f25e5e6c506fc868e82fe7600eccdde02baa21661e90d4990733ded8048ad646
clash-lang/clash-compiler
NameInstance.hs
module NameInstance where import qualified Prelude as P import Data.List (isInfixOf) import System.Environment (getArgs) import System.FilePath ((</>), takeDirectory) import Clash.Prelude topEntity :: Bool -> Bool -> (Bool,Bool) topEntity = suffixName @"after" $ setName @"foo" $ prefixName @"before" f f :: Bool -> ...
null
https://raw.githubusercontent.com/clash-lang/clash-compiler/8e461a910f2f37c900705a0847a9b533bce4d2ea/tests/shouldwork/Basic/NameInstance.hs
haskell
File content test
module NameInstance where import qualified Prelude as P import Data.List (isInfixOf) import System.Environment (getArgs) import System.FilePath ((</>), takeDirectory) import Clash.Prelude topEntity :: Bool -> Bool -> (Bool,Bool) topEntity = suffixName @"after" $ setName @"foo" $ prefixName @"before" f f :: Bool -> ...
bdd048e14d2f2c007f1a5ffc983fbd06c11d86d473698b60451534346cd0eb35
achirkin/vulkan
VK_AMD_buffer_marker.hs
# OPTIONS_GHC -fno - warn - orphans # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_HADDOCK not - home # {-# LANGUAGE CPP #-} {-# LANGUAGE DataKinds #-} # LANGUAGE FlexibleInstances # # LANGUAGE ForeignFunctionInterface # {-# LANGUAGE MagicHash #-} {...
null
https://raw.githubusercontent.com/achirkin/vulkan/b2e0568c71b5135010f4bba939cd8dcf7a05c361/vulkan-api/src-gen/Graphics/Vulkan/Ext/VK_AMD_buffer_marker.hs
haskell
# LANGUAGE CPP # # LANGUAGE DataKinds # # LANGUAGE MagicHash # # LANGUAGE PatternSynonyms # # LANGUAGE Strict # # LANGUAGE TypeFamilies # # LANGUAGE ViewPatterns # | supported: @vulkan@ contact: @Daniel Rakos @dra...
# OPTIONS_GHC -fno - warn - orphans # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_HADDOCK not - home # # LANGUAGE FlexibleInstances # # LANGUAGE ForeignFunctionInterface # module Graphics.Vulkan.Ext.VK_AMD_buffer_marker * Vulkan extension : @VK_AMD_buffer_marker@ author : VkCmdWriteBuf...
5052d39033037b3ba19cbc20347366cf1682ac9f152a1e123b6eec4d43abc54a
d-cent/mooncake
feed.clj
(ns mooncake.test.controller.feed (:require [midje.sweet :refer :all] [mooncake.controller.feed :as fc] [mooncake.activity :as a] [mooncake.test.test-helpers.enlive :as eh] [mooncake.test.test-helpers.db :as dbh] [mooncake.db.user :as user] [moon...
null
https://raw.githubusercontent.com/d-cent/mooncake/eb16b7239e7580a73b98f7cdacb324ab4e301f9c/test/mooncake/test/controller/feed.clj
clojure
(ns mooncake.test.controller.feed (:require [midje.sweet :refer :all] [mooncake.controller.feed :as fc] [mooncake.activity :as a] [mooncake.test.test-helpers.enlive :as eh] [mooncake.test.test-helpers.db :as dbh] [mooncake.db.user :as user] [moon...
5a9ca64508f2d7bd334ea9546529d39d5c8d6563b7a98873233a20c2320cac37
spawngrid/htoad
htoad_htoad.erl
-module(htoad_htoad). -include_lib("htoad/include/htoad.hrl"). -include_lib("htoad/include/toadie.hrl"). -include_lib("htoad/include/stdlib.hrl"). -rules([init]). init(Engine, #init{}) -> Engine1 = htoad:assert(Engine, #htoad{ version = vsn() }), lager:...
null
https://raw.githubusercontent.com/spawngrid/htoad/f0c7dfbd911b29fb0c406b7c26606f553af11194/apps/htoad/src/htoad_htoad.erl
erlang
private
-module(htoad_htoad). -include_lib("htoad/include/htoad.hrl"). -include_lib("htoad/include/toadie.hrl"). -include_lib("htoad/include/stdlib.hrl"). -rules([init]). init(Engine, #init{}) -> Engine1 = htoad:assert(Engine, #htoad{ version = vsn() }), lager:...
3a9a8cb2842d2bf8be671fa6e0ac221785809b63db1aeb8bdc4d59f51f214484
djs55/vhd-tool
xenstore.ml
* Copyright ( C ) 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 file LI...
null
https://raw.githubusercontent.com/djs55/vhd-tool/ef051aae1b52888c6158a54bacdbaa2bf190679d/src/xenstore.ml
ocaml
debug: string list -> string; readv : string -> string list -> string list;
* Copyright ( C ) 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 file LI...
0158e80cd6451aabd434157922a5d73f7c11e14da3ff12d8db4d7fe11d4bcd7d
erikd/vector-algorithms
Combinators.hs
{-# LANGUAGE Rank2Types, TypeOperators #-} -- --------------------------------------------------------------------------- -- | -- Module : Data.Vector.Algorithms.Combinators Copyright : ( c ) 2008 - 2010 Maintainer : < > -- Stability : Experimental -- Portability : Non-portable (rank-2 types) -- -...
null
https://raw.githubusercontent.com/erikd/vector-algorithms/d25f05648ebf419a96755eeba7352df6b7f7dd3f/src/Data/Vector/Algorithms/Combinators.hs
haskell
# LANGUAGE Rank2Types, TypeOperators # --------------------------------------------------------------------------- | Module : Data.Vector.Algorithms.Combinators Stability : Experimental Portability : Non-portable (rank-2 types) The purpose of this module is to supply various combinators for commonly used...
Copyright : ( c ) 2008 - 2010 Maintainer : < > module Data.Vector.Algorithms.Combinators ( ) where import Prelude hiding (length) import Control.Monad.ST import Data.Ord import Data.Vector.Generic import qualified Data.Vector.Generic.Mutable as M import qualified Data.Vector.Generic.N...
f0c3f07ef8dc498d6937937cf7bb191f2f10ef539cb3525bb7b49ab280380f98
nilenso/time-tracker
routes.clj
(ns time-tracker.clients.routes (:require [time-tracker.clients.handlers :as handlers] [time-tracker.web.middleware :refer [with-rest-middleware]])) (defn routes [] {"" (with-rest-middleware {:get handlers/list-all :post handlers/create}) [:id "/"] (with-rest-m...
null
https://raw.githubusercontent.com/nilenso/time-tracker/054d0dc6d6b89a4ed234d8f0b0a260b6deeef9e3/src/clj/time_tracker/clients/routes.clj
clojure
(ns time-tracker.clients.routes (:require [time-tracker.clients.handlers :as handlers] [time-tracker.web.middleware :refer [with-rest-middleware]])) (defn routes [] {"" (with-rest-middleware {:get handlers/list-all :post handlers/create}) [:id "/"] (with-rest-m...
a5898f309f398d7b46eec481231cb034de8997304a28627623034e78161d46f1
magnusjonsson/opti
expr.ml
type unop = | Unop_neg | Unop_abs type binop = | Binop_add | Binop_sub | Binop_mul | Binop_div | Binop_min | Binop_max | Binop_le | Binop_ge | Binop_lt | Binop_gt type expr = | Expr_const of float | Expr_ref of string * string list | Expr_unop of unop * expr | Expr_binop of binop * exp...
null
https://raw.githubusercontent.com/magnusjonsson/opti/dffb7b86b81c8059276b038313ddd88d2e9ff67e/lib/expr.ml
ocaml
type unop = | Unop_neg | Unop_abs type binop = | Binop_add | Binop_sub | Binop_mul | Binop_div | Binop_min | Binop_max | Binop_le | Binop_ge | Binop_lt | Binop_gt type expr = | Expr_const of float | Expr_ref of string * string list | Expr_unop of unop * expr | Expr_binop of binop * exp...
88b339c6556ba7304bd0e88b7c5d4934bf36743b4ba8b2f26a10f4375fe0b798
grapesmoker/cl-sfml
shape.lisp
(in-package :sfml) SFML implements shapes in a really bizarre way . It asks for you ;; to pass it a callback which it can call upon initialization ;; to get the number of points, followed by a callback which can ;; get a specific point, followed by the actual data of the points. ;; So for now I'm not going to implem...
null
https://raw.githubusercontent.com/grapesmoker/cl-sfml/3e587b431bbdd23dde2d0031f979d859ac436bca/graphics/shape.lisp
lisp
to pass it a callback which it can call upon initialization to get the number of points, followed by a callback which can get a specific point, followed by the actual data of the points. So for now I'm not going to implement the interface to drawing arbitrary shapes, which are likely of limited utility anyway. St...
(in-package :sfml) SFML implements shapes in a really bizarre way . It asks for you (defclass shape (entity) ((pointer :initarg :pointer :initform nil :accessor shape-pointer) (changed-slots :initform '() :accessor shape-changed-slots) (type :initarg :type :initform nil :accessor shape-type) (origin :a...
b5cf97eacecebc4d7e8867b941cda7c82b6f32c73ec47c26e73840ee6fac3c9a
joshvera/effects
Resumable.hs
# LANGUAGE DataKinds , FlexibleContexts , GADTs , LambdaCase , KindSignatures , Rank2Types , TypeOperators # module Control.Monad.Effect.Resumable ( Resumable(..) , SomeExc(..) , throwResumable , runResumable , runResumableWith ) where import Control.DeepSeq import Control.Monad.Effect.Internal import Data...
null
https://raw.githubusercontent.com/joshvera/effects/b2693454131dc7c00d2cf45bea69c17b986f0ea5/src/Control/Monad/Effect/Resumable.hs
haskell
# LANGUAGE DataKinds , FlexibleContexts , GADTs , LambdaCase , KindSignatures , Rank2Types , TypeOperators # module Control.Monad.Effect.Resumable ( Resumable(..) , SomeExc(..) , throwResumable , runResumable , runResumableWith ) where import Control.DeepSeq import Control.Monad.Effect.Internal import Data...
b2b0df5147827026e934720ef05f06933accb195885fff1cda61007bb5c3fb22
parapluu/Concuerror
system_instant_delivery.erl
-module(system_instant_delivery). -compile(export_all). -concuerror_options_forced([{instant_delivery, true}]). %%------------------------------------------------------------------------------ scenarios() -> [ test ]. %%------------------------------------------------------------------------------ %% This tes...
null
https://raw.githubusercontent.com/parapluu/Concuerror/152a5ccee0b6e97d8c3329c2167166435329d261/tests/suites/basic_tests/src/system_instant_delivery.erl
erlang
------------------------------------------------------------------------------ ------------------------------------------------------------------------------ This test checks that replies from io server can be instant.
-module(system_instant_delivery). -compile(export_all). -concuerror_options_forced([{instant_delivery, true}]). scenarios() -> [ test ]. test() -> Fun = fun() -> User = erlang:group_leader(), M = erlang:monitor(process, User), P = self(), Command = {put_chars, unicode, i...
1b299e1b4ea81ecb07f7df3e38058187bd3d7ff51ab6f24dc5a2790c0758075b
mvaldesdeleon/aoc18
Day25.hs
# LANGUAGE TemplateHaskell # module Day25 ( day25 ) where import Control.Lens import Data.List ((\\)) import qualified Data.Map.Strict as M import Data.Maybe (fromMaybe) import qualified Data.Set as S import Paths_aoc18 (getDataFileName) import ...
null
https://raw.githubusercontent.com/mvaldesdeleon/aoc18/1a6f6de7c482e5de264360e36f97a3c7487e2457/src/Day25.hs
haskell
# LANGUAGE TemplateHaskell # module Day25 ( day25 ) where import Control.Lens import Data.List ((\\)) import qualified Data.Map.Strict as M import Data.Maybe (fromMaybe) import qualified Data.Set as S import Paths_aoc18 (getDataFileName) import ...
44539d6edf2192a1e41783a486f545a46f4726c2468fbd95cbdfd2df339b0bed
pavlobaron/ErlangOTPBookSamples
strict.erl
-module(strict). -export([strict_eval/1, print/0]). print() -> io:format("I have been called, but what for?.."). strict_eval(X) -> 5.
null
https://raw.githubusercontent.com/pavlobaron/ErlangOTPBookSamples/50094964ad814932760174914490e49618b2b8c2/sprache/strict.erl
erlang
-module(strict). -export([strict_eval/1, print/0]). print() -> io:format("I have been called, but what for?.."). strict_eval(X) -> 5.
87283845a6aa94d706bff027c20de7d717ed1a49a3883606573dc4a52e8e03df
swarmpit/swarmpit
outbound.clj
(ns swarmpit.docker.engine.mapper.outbound "Map swarmpit domain to docker domain" (:require [clojure.string :as str] [swarmpit.docker.engine.mapper.inbound :as mi] [swarmpit.utils :refer [name-value->map ->nano as-bytes]])) (defn ->auth-config "Pass registry or dockeruser entity" [auth-...
null
https://raw.githubusercontent.com/swarmpit/swarmpit/38ffbe08e717d8620bf433c99f2e85a9e5984c32/src/clj/swarmpit/docker/engine/mapper/outbound.clj
clojure
(ns swarmpit.docker.engine.mapper.outbound "Map swarmpit domain to docker domain" (:require [clojure.string :as str] [swarmpit.docker.engine.mapper.inbound :as mi] [swarmpit.utils :refer [name-value->map ->nano as-bytes]])) (defn ->auth-config "Pass registry or dockeruser entity" [auth-...
635e62b081aac3059ab58e2665dfa2ff68b9659c510fcd072363dd250cf67677
cxphoe/SICP-solutions
3.7.rkt
(define (make-account balance password) (define (withdraw amount) (if (>= balance amount) (begin (set! balance (- balance amount)) balance) "Insufficient funds")) (define (deposit amount) (set! balance (+ balance amount))) (define (dispatch pw m) (if (eq? pw password) ...
null
https://raw.githubusercontent.com/cxphoe/SICP-solutions/d35bb688db0320f6efb3b3bde1a14ce21da319bd/Chapter%203-Modeling%20with%20Mutable%20Data/1.Assignment%20and%20Local%20state/3.7.rkt
racket
(define (make-account balance password) (define (withdraw amount) (if (>= balance amount) (begin (set! balance (- balance amount)) balance) "Insufficient funds")) (define (deposit amount) (set! balance (+ balance amount))) (define (dispatch pw m) (if (eq? pw password) ...
63df0b843a76e28a8084d05b61ac4628c88d2256d47ee3d58c3fc9bd4880f279
mxmxyz/tidal-guiot
Boot.hs
module Sound.Tidal.Guiot.Boot (module B) where import Sound.Tidal.Guiot.Control as B import Sound.Tidal.Guiot.Functions as B import Sound.Tidal.Guiot.Rhythm as B import Sound.Tidal.Guiot.Scales as B import Sound.Tidal.Guiot.Utils as B
null
https://raw.githubusercontent.com/mxmxyz/tidal-guiot/eccea30a5cbef37cf0c4b1978fe65b99cce71bf7/src/Sound/Tidal/Guiot/Boot.hs
haskell
module Sound.Tidal.Guiot.Boot (module B) where import Sound.Tidal.Guiot.Control as B import Sound.Tidal.Guiot.Functions as B import Sound.Tidal.Guiot.Rhythm as B import Sound.Tidal.Guiot.Scales as B import Sound.Tidal.Guiot.Utils as B
1e5b72d658a2b00361f9e6bea3af3d6cf663b4906b42b9159d53d19b205c06ee
nyampass/conceit
csv.clj
(ns conceit.commons.test.csv (use conceit.commons.csv conceit.commons.test clojure.test)) (deftest* csv-value-test (= "\"foo\"" (csv-value "foo")) (= "\"abc\"" (csv-value :abc)) (= "\"HOGE\"" (csv-value 'HOGE)) (= "\"100\"" (csv-value 100)) (= "\"hello \"\"world\"\"!\"" (csv-value "hello \"wo...
null
https://raw.githubusercontent.com/nyampass/conceit/2b8ba8cc3d732fe2f58d320e2aa4ecdd6f3f3be5/conceit-commons/test/conceit/commons/test/csv.clj
clojure
(run-tests)
(ns conceit.commons.test.csv (use conceit.commons.csv conceit.commons.test clojure.test)) (deftest* csv-value-test (= "\"foo\"" (csv-value "foo")) (= "\"abc\"" (csv-value :abc)) (= "\"HOGE\"" (csv-value 'HOGE)) (= "\"100\"" (csv-value 100)) (= "\"hello \"\"world\"\"!\"" (csv-value "hello \"wo...
510b9d99e52fe4b2e438e9d62ae495e4d4a7f7cf5fd69467031f74ddf62ea3c9
nomnom-insights/nomnom.lockjaw
util.clj
(ns lockjaw.util (:import (java.util.zip CRC32))) (defn name-to-id "Converts a string to an int" [name] (let [bytes (.getBytes ^String name "UTF-8") crc (new CRC32)] (.update ^CRC32 crc bytes) (.getValue ^CRC32 crc)))
null
https://raw.githubusercontent.com/nomnom-insights/nomnom.lockjaw/2adc9d39d1b565c639248101114beac2bc2faa94/src/lockjaw/util.clj
clojure
(ns lockjaw.util (:import (java.util.zip CRC32))) (defn name-to-id "Converts a string to an int" [name] (let [bytes (.getBytes ^String name "UTF-8") crc (new CRC32)] (.update ^CRC32 crc bytes) (.getValue ^CRC32 crc)))
b02494ae8e877e031a72beced9119ebc6fd7ece272821623b84920cfdee1b856
google/codeworld
prediction.hs
Copyright 2020 The CodeWorld Authors . 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 applicable law or agreed to ...
null
https://raw.githubusercontent.com/google/codeworld/77b0863075be12e3bc5f182a53fcc38b038c3e16/codeworld-prediction/tests/prediction.hs
haskell
Fake state and handle functions Global constant decimal display Generation of random schedules The actual check: Exhaustively search the order in which these events could happen Ensure that all possible ways reach the same conclusion. wow! The quickcheck test, with reporting The main entry point. more gets t...
Copyright 2020 The CodeWorld Authors . 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 applicable law or agreed to ...
25e046ae1e923dd0b5dce88a4f61c366282151cc70b45d51ecb5d33168a3dcc7
isovector/type-errors
Errors.hs
# LANGUAGE CPP # ------------------------------------------------------------------------------ -- | This module provides useful tools for writing better type-errors. For -- a quickstart guide to the underlying 'GHC.TypeLits.TypeError' machinery, check out excellent blog post -- <-errors A story told by Type Erro...
null
https://raw.githubusercontent.com/isovector/type-errors/81fd8e2e48f65b83a228cc1ba7db890fcc11cbd7/src/Type/Errors.hs
haskell
---------------------------------------------------------------------------- | This module provides useful tools for writing better type-errors. For a quickstart guide to the underlying 'GHC.TypeLits.TypeError' machinery, <-errors A story told by Type Errors>. * Generating Error Messages * Emitting Error Messages ...
# LANGUAGE CPP # check out excellent blog post module Type.Errors ErrorMessage (..) , PrettyPrintList , ShowTypeQuoted , TypeError , DelayError , DelayErrorFcf , NoError , NoErrorFcf , IfStuck , WhenStuck , UnlessStuck , te , PHANTOM , UnlessPhantom , Subst , VAR , SubstVa...
79c53baa6e8edafcbc96efff9ee12e9301c3e4e7d5334bbb821cdd9acef9b75e
freizl/dive-into-haskell
Sentence.hs
-- | module Sentence where type Subject = String type Verb = String type Object = String data Sentence = Sentence Subject Verb Object deriving (Eq, Show) s1 = Sentence "dogs" "drool" s2 = Sentence "Julie" "loves" "dogs"
null
https://raw.githubusercontent.com/freizl/dive-into-haskell/b18a6bfe212db6c3a5d707b4a640170b8bcf9330/readings/haskell-book/06/Sentence.hs
haskell
|
module Sentence where type Subject = String type Verb = String type Object = String data Sentence = Sentence Subject Verb Object deriving (Eq, Show) s1 = Sentence "dogs" "drool" s2 = Sentence "Julie" "loves" "dogs"
3bfb15a3d60e78c309f0e9d5aacfe8918ca5fe908e61e7a742021600a485971f
ryanpbrewster/haskell
GC.hs
-- GC.hs - Problem - - The GC - content of a DNA string is given by the percentage of symbols in the - string that are ' C ' or ' G ' . For example , the GC - content of " AGCTATAG " is - 37.5 % . Note that the reverse complement of any DNA string has the same - GC - content . - - DNA strings mu...
null
https://raw.githubusercontent.com/ryanpbrewster/haskell/6edd0afe234008a48b4871032dedfd143ca6e412/Rosalind/GC.hs
haskell
GC.hs
- Problem - - The GC - content of a DNA string is given by the percentage of symbols in the - string that are ' C ' or ' G ' . For example , the GC - content of " AGCTATAG " is - 37.5 % . Note that the reverse complement of any DNA string has the same - GC - content . - - DNA strings must be lab...
80137ced9d07ecab47caabee51642109f460655c3f467f8767512d687f4e6f83
theodormoroianu/SecondYearCourses
HaskellChurch_20210415163944.hs
{-# LANGUAGE RankNTypes #-} module HaskellChurch where A boolean is any way to choose between two alternatives newtype CBool = CBool {cIf :: forall t. t -> t -> t} An instance to show as regular Booleans instance Show CBool where show b = "cBool " <> show (cIf b True False) The boolean constant true always ...
null
https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/5e359e6a7cf588a527d27209bf53b4ce6b8d5e83/FLP/Laboratoare/Lab%209/.history/HaskellChurch_20210415163944.hs
haskell
# LANGUAGE RankNTypes # The boolean negation switches the alternatives The boolean conjunction can be built as a conditional The boolean disjunction can be built as a conditional a pair is a way to compute something based on the values contained within the pair. a function to be applied on the values, it will apply i...
module HaskellChurch where A boolean is any way to choose between two alternatives newtype CBool = CBool {cIf :: forall t. t -> t -> t} An instance to show as regular Booleans instance Show CBool where show b = "cBool " <> show (cIf b True False) The boolean constant true always chooses the first alternativ...
f2b6a033086b133b8834a9fd1143779fec282c7600a63af56b685252d8500c68
siers/zn
TLS.hs
#file-fetch-url-hs-L27 -- stack -v runghc --package connection --package http-client --package http-client-tls --package tls --package data-default {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ViewPatterns # # OPTIONS_GHC -fno - warn - deprecations # module Zn.TLS (mkHttpManager) where import qualified Network.Con...
null
https://raw.githubusercontent.com/siers/zn/b78692910fc5c4c725b3133cb91f5e1e3da94808/src/Zn/TLS.hs
haskell
stack -v runghc --package connection --package http-client --package http-client-tls --package tls --package data-default # LANGUAGE OverloadedStrings # | Create an HTTP 'Manager' for running a 'Test' ^ validate ssl
#file-fetch-url-hs-L27 # LANGUAGE ViewPatterns # # OPTIONS_GHC -fno - warn - deprecations # module Zn.TLS (mkHttpManager) where import qualified Network.Connection as NC import qualified Network.HTTP.Client as Http import qualified Network.HTTP.Client.TLS as Http import qualified Network.TLS as...
3f7010936ec07bc382bacd368a6be7e57edf8dfa7f4255315f28fbbd6815dd3a
GaloisInc/flexdis86
Flexdis86.hs
| Module : $ Header$ Copyright : ( c ) Galois , Inc , 2016 Maintainer : Top - level module for . Module : $Header$ Copyright : (c) Galois, Inc, 2016 Maintainer : Top-level module for Flexdis. -} module Flexdis86 ( module Flexdis86.InstructionSet , module Flexdis86.Prefixes , mo...
null
https://raw.githubusercontent.com/GaloisInc/flexdis86/9bd6fc6a9480d2ea0cd22d04fd5a5e4ae532504a/src/Flexdis86.hs
haskell
* Assembler | Try disassemble returns the numbers of bytes read and an instruction instance. ^ Buffer to decompose ^ Mnemonic ^ Arguments
| Module : $ Header$ Copyright : ( c ) Galois , Inc , 2016 Maintainer : Top - level module for . Module : $Header$ Copyright : (c) Galois, Inc, 2016 Maintainer : Top-level module for Flexdis. -} module Flexdis86 ( module Flexdis86.InstructionSet , module Flexdis86.Prefixes , mo...
5d9022d90ecf7e040abe2c73a33ae1de66a0cd7d7c01fb2c6349e938fafc9c72
dancrossnyc/multics
e_interact_.lisp
;;; *********************************************************** ;;; * * * Copyright , ( C ) Honeywell Bull Inc. , 1988 * ;;; * * * Copyright , ( C ) Honeywell Information Systems Inc. , 19...
null
https://raw.githubusercontent.com/dancrossnyc/multics/dc291689edf955c660e57236da694630e2217151/library_dir_dir/system_library_unbundled/source/bound_multics_emacs_.s.archive/e_interact_.lisp
lisp
*********************************************************** * * * * * * * * **************...
* Copyright , ( C ) Honeywell Bull Inc. , 1988 * * Copyright , ( C ) Honeywell Information Systems Inc. , 1982 * * Copyright ( c ) 1978 by Massachusetts Institute of * * Technology and Honeywell Information Systems , Inc. * 1 ) change(84 - 01 - 30,Margolin ) , approve ( ) , a...
fd8db4ce33861c13c5e3e302f6d0f3ba287390f2a1fe16678c87c4b43b7fce91
dbuenzli/remat
remat.ml
--------------------------------------------------------------------------- Copyright 2012 . All rights reserved . Distributed under the BSD3 license , see license at the end of the file . % % NAME%% release % % --------------------------------------------------------------------------- Copyright...
null
https://raw.githubusercontent.com/dbuenzli/remat/28d572e77bbd1ad46bbfde87c0ba8bd0ab99ed28/src-remat/remat.ml
ocaml
--------------------------------------------------------------------------- Copyright 2012 . All rights reserved . Distributed under the BSD3 license , see license at the end of the file . % % NAME%% release % % --------------------------------------------------------------------------- Copyright...
dbfcb5455b01b168a539376a311e6a2722034f016b866a219481ddf20af31892
rjnw/sham
arith-stx.rkt
#lang racket (require syntax/parse) (require sham/sam/transform) (require "../ast/basic-math.rkt") #;(define-ast math (expr [neg ('- e)] [div ('/ n d)] [add ('+ e ...)] [sub ('- e1 e2 ...)] [mul ('* e ...)]) #:with struct-helpers sexp-printer #:format (#f - #f - -)) (define-transform (parse-ma...
null
https://raw.githubusercontent.com/rjnw/sham/6e0524b1eb01bcda83ae7a5be6339da4257c6781/sham-sam/sham/sam/test/transform/arith-stx.rkt
racket
(define-ast math
#lang racket (require syntax/parse) (require sham/sam/transform) (require "../ast/basic-math.rkt") (expr [neg ('- e)] [div ('/ n d)] [add ('+ e ...)] [sub ('- e1 e2 ...)] [mul ('* e ...)]) #:with struct-helpers sexp-printer #:format (#f - #f - -)) (define-transform (parse-math) (rkt-syntax -...
e1c1bc29f1b966a1eb079e3dddf7a118b0d444e89b7d19fb535320baca02c129
scrintal/heroicons-reagent
archive_box.cljs
(ns com.scrintal.heroicons.outline.archive-box) (defn render [] [:svg {:xmlns "" :fill "none" :viewBox "0 0 24 24" :strokeWidth "1.5" :stroke "currentColor" :aria-hidden "true"} [:path {:strokeLinecap "round" :strokeLinejoin "round" ...
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/outline/archive_box.cljs
clojure
(ns com.scrintal.heroicons.outline.archive-box) (defn render [] [:svg {:xmlns "" :fill "none" :viewBox "0 0 24 24" :strokeWidth "1.5" :stroke "currentColor" :aria-hidden "true"} [:path {:strokeLinecap "round" :strokeLinejoin "round" ...
45629757a3989becd0502f844da05972633455d5c0580769a7855ed0bf46416e
mdsebald/link_blox_app
lblx_sample_hold.erl
%%% @doc BLOCKTYPE %%% Sample and Hold input values %%% DESCRIPTION %%% Output values will equal corresponding input values as long as hold input is false %%% When hold input value is true, outputs will be held at the last value %%% regardless of the input values. %%% LINKS %%% @end -module(lblx_sample_hold). ...
null
https://raw.githubusercontent.com/mdsebald/link_blox_app/64034fa5854759ad16625b93e3dde65a9c65f615/src/block_types/lblx_sample_hold.erl
erlang
@doc Sample and Hold input values DESCRIPTION Output values will equal corresponding input values as long as hold input is false When hold input value is true, outputs will be held at the last value regardless of the input values. LINKS @end ===================================================================...
BLOCKTYPE -module(lblx_sample_hold). -author("Mark Sebald"). -include("../block_state.hrl"). -export([groups/0, version/0]). -export([create/2, create/4, create/5, upgrade/1, initialize/1, execute/2, delete/1]). groups() -> [control]. version() -> "0.1.0". -spec default_configs(BlockName :: block_nam...
a28eb8dedd600167acdcb323f6f2cc533092fe8c7c4ac59e48beae61e7f5eb01
well-typed/large-records
R030.hs
{-# LANGUAGE RankNTypes #-} #if PROFILE_CORESIZE {-# OPTIONS_GHC -ddump-to-file -ddump-ds-preopt -ddump-ds -ddump-simpl #-} #endif #if PROFILE_TIMING {-# OPTIONS_GHC -ddump-to-file -ddump-timings #-} #endif module Experiment.Applicative.Sized.R030 where import Bench.Types import Experiment.SimpleRecord.Sized.R030 ...
null
https://raw.githubusercontent.com/well-typed/large-records/c6c2b51af11e90f30822543d7ce4d1cb28cee294/large-records-benchmarks/bench/experiments/Experiment/Applicative/Sized/R030.hs
haskell
# LANGUAGE RankNTypes # # OPTIONS_GHC -ddump-to-file -ddump-ds-preopt -ddump-ds -ddump-simpl # # OPTIONS_GHC -ddump-to-file -ddump-timings #
#if PROFILE_CORESIZE #endif #if PROFILE_TIMING #endif module Experiment.Applicative.Sized.R030 where import Bench.Types import Experiment.SimpleRecord.Sized.R030 zipRecordWith :: Applicative f => (forall n. T n -> T n -> f (T n)) -> R -> R -> f R zipRecordWith f r r' = pure MkR 1 .. 10 <*> f...
d4878527f655d0c5a5e46992bee879085c91f5f5057c6fe04723a65530cdd1a1
cffi/cffi
bindings.lisp
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*- ;;; ;;; libtest.lisp --- Setup CFFI bindings for libtest. ;;; Copyright ( C ) 2005 - 2007 , loliveira(@)common - lisp.net > ;;; ;;; Permission is hereby granted, free of charge, to any person ;;; obtaining a copy of this software and associated documentation files ...
null
https://raw.githubusercontent.com/cffi/cffi/384d96bdf83959adf62249e0690acda4b7011ea6/tests/bindings.lisp
lisp
-*- Mode: lisp; indent-tabs-mode: nil -*- libtest.lisp --- Setup CFFI bindings for libtest. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distr...
Copyright ( C ) 2005 - 2007 , loliveira(@)common - lisp.net > files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY ...
838029224f14fd13a07735807e4da68b743d22df4414168653b14d3f5f609ef7
jrm-code-project/LISP-Machine
storage.lisp
-*- Mode : LISP ; Package : SYSTEM - INTERNALS ; Cold - Load : T ; : CL ; Base:8 -*- ( c ) Copyright 1985 , Lisp Machine Incorporated ( LMI ) . ;;; This is a cold-load file. See also STORAGE-DEFS. ; forwarded to a-mem (defvar-resettable %inhibit-read-only nil nil "Bind this to T to do nasty horrible things b...
null
https://raw.githubusercontent.com/jrm-code-project/LISP-Machine/0a448d27f40761fafabe5775ffc550637be537b2/lambda/sys/storage.lisp
lisp
Package : SYSTEM - INTERNALS ; Cold - Load : T ; : CL ; Base:8 -*- This is a cold-load file. See also STORAGE-DEFS. forwarded to a-mem (%p-contents-offset (%region-origin region-free-pointer) region) (%p-store-contents-offset value (%region-origin region-free-pointer) region) (defun %reset-temporary-area (area &op...
( c ) Copyright 1985 , Lisp Machine Incorporated ( LMI ) . (defvar-resettable %inhibit-read-only nil nil "Bind this to T to do nasty horrible things behind the virtual memory system's back.") (defvar *area-list* :unbound "Call (CURRENT-AREA-LIST) for list of active areas.") (defun %region-free-pointer (regio...
66bb0ed077a54d6792776d7afa836b5372d4d6e5af927f97db44b9be20cca183
flipstone/orville
RowValues.hs
# LANGUAGE GeneralizedNewtypeDeriving # | Module : Orville . PostgreSQL.Internal . Expr . Insert . RowValues Copyright : Flipstone Technology Partners 2016 - 2021 License : MIT Module : Orville.PostgreSQL.Internal.Expr.Insert.RowValues Copyright : Flipstone Technology Partners 2016-2021 License :...
null
https://raw.githubusercontent.com/flipstone/orville/d68cc4a85bf84269e4883d232cf7bf91a626662b/orville-postgresql-libpq/src/Orville/PostgreSQL/Internal/Expr/Insert/RowValues.hs
haskell
# LANGUAGE GeneralizedNewtypeDeriving # | Module : Orville . PostgreSQL.Internal . Expr . Insert . RowValues Copyright : Flipstone Technology Partners 2016 - 2021 License : MIT Module : Orville.PostgreSQL.Internal.Expr.Insert.RowValues Copyright : Flipstone Technology Partners 2016-2021 License :...
092dffca0b50acea69076c92a55c540584f975496a421c3e33e63f55d4f05bac
static-analysis-engineering/codehawk
bCHStructTables.mli
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Binary Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Co...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/f3ca3a16d7f42e4e08ca3efe6dc66810548408c6/CodeHawk/CHB/bchlib/bCHStructTables.mli
ocaml
bchlib
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Binary Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Co...
7ce2771bfbeef4ef8994d18ce53233b345fa05e9c82036798432792138559754
rtoal/ple
another_mystery.hs
mystery (x, y) z = (y / 2.0, z, [x, x, x])
null
https://raw.githubusercontent.com/rtoal/ple/b24cab4de2beca6970833a09d05af6ef96ec3921/haskell/another_mystery.hs
haskell
mystery (x, y) z = (y / 2.0, z, [x, x, x])
4ce7da949ed1f4f7d67524c863bba37b67f247c2a3e82ef9fd5166cc17a81015
aelve/guide
Error.hs
# LANGUAGE FlexibleInstances # module Guide.Api.Error ( ErrorResponse, ) where import Imports import Data.Swagger import GHC.TypeLits import Servant import Servant.Swagger Taken from -servant/servant-swagger/issues/59 data ErrorResponse (code :: Nat) (description :: Symbol) instance ( HasSwagger api ...
null
https://raw.githubusercontent.com/aelve/guide/96a338d61976344d2405a16b11567e5464820a9e/back/src/Guide/Api/Error.hs
haskell
# LANGUAGE FlexibleInstances # module Guide.Api.Error ( ErrorResponse, ) where import Imports import Data.Swagger import GHC.TypeLits import Servant import Servant.Swagger Taken from -servant/servant-swagger/issues/59 data ErrorResponse (code :: Nat) (description :: Symbol) instance ( HasSwagger api ...
2863e19688c7e255ace8375247765ea0515568e1662c3bf7525a5a51b1d750d0
kowainik/membrain
Constructors.hs
| Copyright : ( c ) 2018 - 2020 Kowainik SPDX - License - Identifier : MPL-2.0 Maintainer : < > This module implements smart constructors for creating values of type ' Memory ' . Copyright: (c) 2018-2020 Kowainik SPDX-License-Identifier: MPL-2.0 Maintainer: Kowainik <> This module implements smart con...
null
https://raw.githubusercontent.com/kowainik/membrain/c7c3e9ad9b56fbe48677a7a7f5b2e2146cbd8bb1/src/Membrain/Constructors.hs
haskell
* Smart constructors
| Copyright : ( c ) 2018 - 2020 Kowainik SPDX - License - Identifier : MPL-2.0 Maintainer : < > This module implements smart constructors for creating values of type ' Memory ' . Copyright: (c) 2018-2020 Kowainik SPDX-License-Identifier: MPL-2.0 Maintainer: Kowainik <> This module implements smart con...
8e99d7781d3e79252b25b48e801807d3423414edabf69f0a95a31148c517424f
unisonweb/unison
Desugar.hs
module Unison.PatternMatchCoverage.Desugar ( desugarMatch, ) where import Data.List.NonEmpty (NonEmpty (..)) import qualified U.Core.ABT as ABT import Unison.Pattern import qualified Unison.Pattern as Pattern import Unison.PatternMatchCoverage.Class import Unison.PatternMatchCoverage.Fix import Unison.PatternMatch...
null
https://raw.githubusercontent.com/unisonweb/unison/61b65bfe5b16df10d2ba9ba05afecfaffc016d0b/parser-typechecker/src/Unison/PatternMatchCoverage/Desugar.hs
haskell
| loc of match | scrutinee type | scrutinee variable | match cases as-patterns are not handled properly here, which is fine while we only have boolean guards, but this needs to be fixed if we introduce pattern guards
module Unison.PatternMatchCoverage.Desugar ( desugarMatch, ) where import Data.List.NonEmpty (NonEmpty (..)) import qualified U.Core.ABT as ABT import Unison.Pattern import qualified Unison.Pattern as Pattern import Unison.PatternMatchCoverage.Class import Unison.PatternMatchCoverage.Fix import Unison.PatternMatch...
240b1d71c8e344b85ad43e6aeb20e3dcfa95237b13f83b6d89f93b5a2feda9a1
plum-umd/fundamentals
zip.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname zip) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-de...
null
https://raw.githubusercontent.com/plum-umd/fundamentals/eb01ac528d42855be53649991a17d19c025a97ad/2/www/lectures/4/zip.rkt
racket
about the language level of this file in a form that our tools can easily process. Session ID: 887722 - '() - '() Zip together the given lists into a list of pairs Stops zipping at end of the shortest list
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname zip) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) A ListofInt is one of : - ( cons Integer ListofInt )...
dbac1e188be88f0adcb4b9284a5821536b224eaf5430e95b8800a7bd04cf6a6a
Paczesiowa/virthualenv
Skeletons.hs
# LANGUAGE TemplateHaskell # module Skeletons where import Data.FileEmbed (embedFile) import Data.ByteString.Char8 (unpack) import System.FilePath ((</>)) activateSkel :: String activateSkel = unpack $(embedFile $ "skeletons" </> "activate") cabalWrapperSkel :: String cabalWrapperSkel = unpack $(embedFile $ "skelet...
null
https://raw.githubusercontent.com/Paczesiowa/virthualenv/aab89dad9de7dac5268472eaa50c11eb40b02380/src/Skeletons.hs
haskell
# LANGUAGE TemplateHaskell # module Skeletons where import Data.FileEmbed (embedFile) import Data.ByteString.Char8 (unpack) import System.FilePath ((</>)) activateSkel :: String activateSkel = unpack $(embedFile $ "skeletons" </> "activate") cabalWrapperSkel :: String cabalWrapperSkel = unpack $(embedFile $ "skelet...
131f2ed5beb6e87d918e79fa89ab4c117c43b3bcb05c907a13a336a5d0996cb2
pat227/ocaml-db-model
date_time_extended.mli
module Date_time_extended : sig (*type t = Core.Time.t*) include (module type of Core.Time) val show : ?zoneoffset:int -> t -> Ppx_deriving_runtime.string val to_string : ?zoneoffset:int -> t -> string (*of_string internally supports parsing date time values without time zone offsets since mysql does ...
null
https://raw.githubusercontent.com/pat227/ocaml-db-model/d117aabcaee88a309ce3af3e11dec031edd3bed4/src/lib/date_time_extended.mli
ocaml
type t = Core.Time.t of_string internally supports parsing date time values without time zone offsets since mysql does not display time zone offsets even if a time zone offset was supplied when inserting the value.
module Date_time_extended : sig include (module type of Core.Time) val show : ?zoneoffset:int -> t -> Ppx_deriving_runtime.string val to_string : ?zoneoffset:int -> t -> string val of_string : ?zoneoffset:int -> string -> t val compare : t -> t -> Ppx_deriving_runtime.int val equal : t -> t -> Ppx_d...
8f347658d668d82da9ff8899ceb54a2420677b17540e0b20aad19959d35afce8
herbie-fp/regraph
precompute.rkt
#lang racket code extracted and simplified from v1.4 master April 25 2020 (require math/flonum math/base math/special-functions math/bigfloat racket/hash) (provide eval-application) (define (cbrt x) (expt x (/ 1 3))) (define (exp2 x) (expt 2 x)) (define (log10 x) (log x 10)) (define (copysign x y) (if (>= y 0) (a...
null
https://raw.githubusercontent.com/herbie-fp/regraph/1725355df2cd1ffef7e0c8f01cde848d0f3dcfbf/infra/precompute.rkt
racket
#lang racket code extracted and simplified from v1.4 master April 25 2020 (require math/flonum math/base math/special-functions math/bigfloat racket/hash) (provide eval-application) (define (cbrt x) (expt x (/ 1 3))) (define (exp2 x) (expt 2 x)) (define (log10 x) (log x 10)) (define (copysign x y) (if (>= y 0) (a...
964991f73ff6fd1599ca16ad75ea46c9ccaffd3f7d24d33034fe74f0e8115944
billstclair/trubanc-lisp
length.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : FLEXI - STREAMS ; Base : 10 -*- $ Header : /usr / local / cvsrep / flexi - streams / length.lisp , v 1.6 2008/05/29 10:25:14 edi Exp $ Copyright ( c ) 2005 - 2008 , Dr. . All rights reserved . ;;; Redistribution and use in source and binary forms, with or...
null
https://raw.githubusercontent.com/billstclair/trubanc-lisp/5436d2eca5b1ed10bc47eec7080f6cb90f98ca65/systems/flexi-streams-1.0.7/length.lisp
lisp
Syntax : COMMON - LISP ; Package : FLEXI - STREAMS ; Base : 10 -*- 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 a...
$ Header : /usr / local / cvsrep / flexi - streams / length.lisp , v 1.6 2008/05/29 10:25:14 edi Exp $ Copyright ( c ) 2005 - 2008 , Dr. . All rights reserved . DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , (in-pa...
8d5aca731ffd760f8b6e48d84cf85f8623963377e8f9df66e9864223935e7130
clojure-interop/google-cloud-clients
core.clj
(ns com.google.cloud.vision.v1p3beta1.core (:refer-clojure :only [require comment defn ->]) (:import )) (require '[com.google.cloud.vision.v1p3beta1.ImageAnnotatorClient]) (require '[com.google.cloud.vision.v1p3beta1.ImageAnnotatorSettings$Builder]) (require '[com.google.cloud.vision.v1p3beta1.ImageAnnotatorSettin...
null
https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.vision/src/com/google/cloud/vision/v1p3beta1/core.clj
clojure
(ns com.google.cloud.vision.v1p3beta1.core (:refer-clojure :only [require comment defn ->]) (:import )) (require '[com.google.cloud.vision.v1p3beta1.ImageAnnotatorClient]) (require '[com.google.cloud.vision.v1p3beta1.ImageAnnotatorSettings$Builder]) (require '[com.google.cloud.vision.v1p3beta1.ImageAnnotatorSettin...
83518376c5efd1a15355a5fb078b9037ade0ea067400d1a14a405dd68295a39f
appleshan/cl-http
translations.lisp
-*- Syntax : Ansi - Common - Lisp ; Base : 10 ; Mode : lisp ; Package : common - lisp - user -*- ;;; Copyright , 1994 - 1995 ;;; All rights reserved. ;;; Tried to make MAC - TRANSLATIONS.LISP more portable - OBC Copyright ( C ) 1995 , OBC for non MCL Genera ports . ;;; ;;;;;;---------------------------------...
null
https://raw.githubusercontent.com/appleshan/cl-http/a7ec6bf51e260e9bb69d8e180a103daf49aa0ac2/scl/translations.lisp
lisp
Base : 10 ; Mode : lisp ; Package : common - lisp - user -*- All rights reserved. ------------------------------------------------------------------- LOGICAL PATHNAME HOST FOR HTTP (format nil "~A.~~*~~" wild-bit))
Copyright , 1994 - 1995 Tried to make MAC - TRANSLATIONS.LISP more portable - OBC Copyright ( C ) 1995 , OBC for non MCL Genera ports . (defun http-pathname (&rest dirnames) (merge-pathnames (make-pathname :directory (append '(:relative) dirnames)) *cl-http-directory*)) (defun rooted-pathname (&res...
e205bf7b1229600201837bdce2d9bf67be61a9db8865db01b5e4b8a481331458
takikawa/racket-ppa
semaphore.rkt
#lang racket/base (require racket/unsafe/ops "check.rkt" "../common/queue.rkt" "internal-error.rkt" "host.rkt" "atomic.rkt" "parameter.rkt" "waiter.rkt" "evt.rkt" "pre-poll.rkt" "error.rkt") (provide make-semaphore semap...
null
https://raw.githubusercontent.com/takikawa/racket-ppa/caff086a1cd48208815cec2a22645a3091c11d4c/src/thread/semaphore.rkt
racket
-1 => non-empty queue allow evt chaperone used with `unsafe-struct*-cas!` ---------------------------------------- In atomic mode: Don't consume a post for a peek waiter In atomic mode In atomic mode: ---------------------------------------- On break/kill/suspend: This callback is used if the thread receives...
#lang racket/base (require racket/unsafe/ops "check.rkt" "../common/queue.rkt" "internal-error.rkt" "host.rkt" "atomic.rkt" "parameter.rkt" "waiter.rkt" "evt.rkt" "pre-poll.rkt" "error.rkt") (provide make-semaphore semap...
0cf95eb45e69cad19559d56e556008cc29a54a61ba0f734e561de37dadbf1efe
solita/mnt-teet
admin_commands_test.clj
(ns ^:db teet.admin.admin-commands-test (:require [clojure.test :refer :all] teet.admin.admin-commands [teet.util.datomic :as du] [teet.test.utils :as tu] [teet.user.user-db :as user-db] [datomic.client.api :as d])) (use-fixtures :each tu/with-environment (...
null
https://raw.githubusercontent.com/solita/mnt-teet/0e6b16acbc13d22b1a42b8ef0b174a4c88c864ee/app/backend/test/teet/admin/admin_commands_test.clj
clojure
Can't add the same global role multiple times Can add multiple global roles
(ns ^:db teet.admin.admin-commands-test (:require [clojure.test :refer :all] teet.admin.admin-commands [teet.util.datomic :as du] [teet.test.utils :as tu] [teet.user.user-db :as user-db] [datomic.client.api :as d])) (use-fixtures :each tu/with-environment (...
da48e6d0341ae8725fe7767462c14ed5336664bf97f1d3d3398894277410143d
bluelisp/hemlock
qt.lisp
;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*- (in-package :hemlock.qt) (pushnew :qt hi::*available-backends*) (eval-when (:compile-toplevel :load-toplevel :execute) (unless (named-readtables:find-readtable :hemlock.qt) (named-readtables:defreadtable :hemlock.qt (:merge :qt) (:dispatch-macro-char #...
null
https://raw.githubusercontent.com/bluelisp/hemlock/47e16ba731a0cf4ffd7fb2110e17c764ae757170/src/qt.lisp
lisp
-*- Mode: Lisp; indent-tabs-mode: nil -*- (#_toString ...) fails on those pre-unmarshalled strings. But and we need to call (#_toString) after all. This doesn't seem ideal... Rather than have this separately in each hunk-widget method, do it centrally here: interceptor, we can steal them in time. (redisplay...
(in-package :hemlock.qt) (pushnew :qt hi::*available-backends*) (eval-when (:compile-toplevel :load-toplevel :execute) (unless (named-readtables:find-readtable :hemlock.qt) (named-readtables:defreadtable :hemlock.qt (:merge :qt) (:dispatch-macro-char #\# #\k 'hemlock-ext::parse-key-fun)))) (named-...
9afba6151966eb15a1cbfd80c912a979bf83dcaa2bc9391e03b2333af4e2ac3b
tsloughter/kuberl
kuberl_v1beta1_supplemental_groups_strategy_options.erl
-module(kuberl_v1beta1_supplemental_groups_strategy_options). -export([encode/1]). -export_type([kuberl_v1beta1_supplemental_groups_strategy_options/0]). -type kuberl_v1beta1_supplemental_groups_strategy_options() :: #{ 'ranges' => list(), 'rule' => binary() }. encode(#{ 'ranges' := Ranges, ...
null
https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_v1beta1_supplemental_groups_strategy_options.erl
erlang
-module(kuberl_v1beta1_supplemental_groups_strategy_options). -export([encode/1]). -export_type([kuberl_v1beta1_supplemental_groups_strategy_options/0]). -type kuberl_v1beta1_supplemental_groups_strategy_options() :: #{ 'ranges' => list(), 'rule' => binary() }. encode(#{ 'ranges' := Ranges, ...
b8e98a3fd943cfbb44179a214096180d9ec3644b70f4422557dc685b9e76a361
LambdaHack/LambdaHack
SessionUIUnitTests.hs
module SessionUIUnitTests (macroTests) where import Prelude () import Game.LambdaHack.Core.Prelude import qualified Data.Map.Strict as M import Test.Tasty import Test.Tasty.HUnit import Test.Tasty.QuickCheck import qualified Game.LambdaHack.Client.UI.Content.Input as IC import qualifie...
null
https://raw.githubusercontent.com/LambdaHack/LambdaHack/5b3773967479dd031eff440e7ca7132a6c795df2/test/SessionUIUnitTests.hs
haskell
quickcheck - verbose@ to verify that quickcheck properties are not too often satisfied voidly. because @a@ repeated; good! may not loop may loop The macros may still loop due to mutual recursion, even though direct recursion is ruled out by filtering.
module SessionUIUnitTests (macroTests) where import Prelude () import Game.LambdaHack.Core.Prelude import qualified Data.Map.Strict as M import Test.Tasty import Test.Tasty.HUnit import Test.Tasty.QuickCheck import qualified Game.LambdaHack.Client.UI.Content.Input as IC import qualifie...
1a3b74d67962ad0bca5ea8c5a967a67a1046c21017b75d5a2e8f91608ff798c0
wilbowma/cur
info.rkt
#lang info (define collection 'multi) (define deps '("cur-lib" "cur-doc" "cur-test")) (define implies '("cur-lib" "cur-doc" "cur-test")) (define pkg-desc "Dependent types with parenthesis and meta-programming.") (define pkg-authors '(wilbowma))
null
https://raw.githubusercontent.com/wilbowma/cur/e039c98941b3d272c6e462387df22846e10b0128/cur/info.rkt
racket
#lang info (define collection 'multi) (define deps '("cur-lib" "cur-doc" "cur-test")) (define implies '("cur-lib" "cur-doc" "cur-test")) (define pkg-desc "Dependent types with parenthesis and meta-programming.") (define pkg-authors '(wilbowma))
f9f80c4d9a2160bf9d9b3f6e21add70e1b4c90b1801700701ed2188990819860
magnolia-lang/magnolia-lang
PPrint.hs
# LANGUAGE FlexibleInstances # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # OPTIONS_GHC -Wno - orphans # module Magnolia.PPrint (pprint, pprintList, pshow, render) where import Control.Monad (join) import qualified Data.List.NonEmpty as NE import qualified Data.Map as M import qualified Data...
null
https://raw.githubusercontent.com/magnolia-lang/magnolia-lang/ff29126a72c9f7bec7d098c25e74606fef5464e5/src/lib/Magnolia/PPrint.hs
haskell
# LANGUAGE OverloadedStrings # The below pprinting and error-handling related utils are directly inspired TODO: Text.Lazy -> Text.Strict (renderLazy -> renderStrict) TODO: change error to have error types
# LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # # OPTIONS_GHC -Wno - orphans # module Magnolia.PPrint (pprint, pprintList, pshow, render) where import Control.Monad (join) import qualified Data.List.NonEmpty as NE import qualified Data.Map as M import qualified Data.Text.Lazy as T import qualified Da...
d8615b679641d2d2118fd4ba915f061839274d782d75fc107d095cae0b6edf2f
tsloughter/kuberl
kuberl_policy_v1beta1_allowed_flex_volume.erl
-module(kuberl_policy_v1beta1_allowed_flex_volume). -export([encode/1]). -export_type([kuberl_policy_v1beta1_allowed_flex_volume/0]). -type kuberl_policy_v1beta1_allowed_flex_volume() :: #{ 'driver' := binary() }. encode(#{ 'driver' := Driver }) -> #{ 'driver' => Driver }.
null
https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_policy_v1beta1_allowed_flex_volume.erl
erlang
-module(kuberl_policy_v1beta1_allowed_flex_volume). -export([encode/1]). -export_type([kuberl_policy_v1beta1_allowed_flex_volume/0]). -type kuberl_policy_v1beta1_allowed_flex_volume() :: #{ 'driver' := binary() }. encode(#{ 'driver' := Driver }) -> #{ 'driver' => Driver }.
479d8595150481c1443a7ed6af426a0e496978785d02c837c414592870d4662c
alexprut/earth-defender
monitor_mesh.erl
-module(monitor_mesh). %% External exports -export([start_monitor_mesh/0]). %% Internal exports -export([monitor_mesh/0]). %%% --------------------------------------------------- %%% %%% Monitor all mesh nodes. %%% %%% --------------------------------------------------- start_monitor_mesh() -> spawn(?MODULE, monit...
null
https://raw.githubusercontent.com/alexprut/earth-defender/5d4d8f0832fc74882a701d6a0dedee23fd494648/server/src/monitor_mesh.erl
erlang
External exports Internal exports --------------------------------------------------- Monitor all mesh nodes. --------------------------------------------------- Master died, election algorithm (Bully algorithm modified version) A slave died
-module(monitor_mesh). -export([start_monitor_mesh/0]). -export([monitor_mesh/0]). start_monitor_mesh() -> spawn(?MODULE, monitor_mesh, []). monitor_mesh() -> net_kernel:monitor_nodes(true), utils:log("Monitoring mesh nodes. ~n", []), monitor_mesh_loop(). monitor_mesh_loop() -> receive {nodeup, Node}...
253a734a1aa829ff1b4e49b43cbd207dea10d9b69a7836c2011181da63420c21
icicle-lang/disorder.hs-ambiata
test.hs
import Control.Monad import qualified Test.Disorder.Corpus import System.Exit import System.IO main :: IO () main = hSetBuffering stdout LineBuffering >> mapM id [ Test.Disorder.Corpus.tests ] >>= \rs -> when (not . all id $ rs) exitFailure
null
https://raw.githubusercontent.com/icicle-lang/disorder.hs-ambiata/0068d9a0dd9aea45e772fb664cf4e7e71636dbe5/disorder-corpus/test/test.hs
haskell
import Control.Monad import qualified Test.Disorder.Corpus import System.Exit import System.IO main :: IO () main = hSetBuffering stdout LineBuffering >> mapM id [ Test.Disorder.Corpus.tests ] >>= \rs -> when (not . all id $ rs) exitFailure
f96f1e4180749812f370fa3ecf8d77bbe52fd21fd1480b179068355c17155be2
emotiq/emotiq
lazy.lisp
;; Lazy.lisp -- class for lazy evaluation and memoization of results ;; DM / MCFA 10/01 DM / RAL 12/08 -- more efficient implementation ;; ----------------------------------------------------------- (in-package "LAZY") (defclass lazy-form () ((expr-fn :reader expr-fn :initarg :expr-fn))) (defcla...
null
https://raw.githubusercontent.com/emotiq/emotiq/9af78023f670777895a3dac29a2bbe98e19b6249/src/useful-macros/old-code/lazy.lisp
lisp
Lazy.lisp -- class for lazy evaluation and memoization of results -----------------------------------------------------------
DM / MCFA 10/01 DM / RAL 12/08 -- more efficient implementation (in-package "LAZY") (defclass lazy-form () ((expr-fn :reader expr-fn :initarg :expr-fn))) (defclass memoized-lazy-evaluation () ((expr :reader force :initarg :forced))) (defmacro lazy (expr) `(make-instance 'lazy-form :ex...
b544aad19c50bf366bf0f30f8916a6408eac56476e9488e1e7a1821caa018e9b
tweag/linear-base
Linear.hs
{-# LANGUAGE LinearTypes #-} # LANGUAGE NoImplicitPrelude # TODO : Disabled while we still support GHC 9.2 to enable -- the import of the empty TypeEq module there. # OPTIONS_GHC -Wno - dodgy - exports -Wno - unused - imports # | This module provides a replacement for ' Prelude ' with -- support for linear program...
null
https://raw.githubusercontent.com/tweag/linear-base/6869779b4f8a675125784063ddd2a89e49f61b38/src/Prelude/Linear.hs
haskell
# LANGUAGE LinearTypes # the import of the empty TypeEq module there. support for linear programming via linear versions of standard data types, functions and type classes. A simple example: >>> :set -XLinearTypes >>> :set -XNoImplicitPrelude >>> :{ boolToInt :: Bool %1-> Int :} >>> :{ makeInt :: Eith...
# LANGUAGE NoImplicitPrelude # TODO : Disabled while we still support GHC 9.2 to enable # OPTIONS_GHC -Wno - dodgy - exports -Wno - unused - imports # | This module provides a replacement for ' Prelude ' with > > > import Prelude . Linear boolToInt False = 0 boolToInt True = 1 module Prelude.Linear ...
7517518169ba9f07f4f8690b05a9138b4131369e1c87ff61a19fdbbf1193afab
fission-codes/fission
Class.hs
| Database mutations for ' LoosePin 's module Fission.Web.Server.LoosePin.Destroyer.Class (Destroyer (..)) where import Database.Esqueleto.Legacy import Network.IPFS.CID.Types as IPFS.CID import Fission.Prelude import Fission.Web.Server.Models import Fiss...
null
https://raw.githubusercontent.com/fission-codes/fission/ae177407dccc20be67948a901956b99f40d37ac8/fission-web-server/library/Fission/Web/Server/LoosePin/Destroyer/Class.hs
haskell
| Actions for destroying @LoosePin@s | Destroy a specific @LoosePin@ | Destroy several @LoosePin@s by they primary keys
| Database mutations for ' LoosePin 's module Fission.Web.Server.LoosePin.Destroyer.Class (Destroyer (..)) where import Database.Esqueleto.Legacy import Network.IPFS.CID.Types as IPFS.CID import Fission.Prelude import Fission.Web.Server.Models import Fiss...
83d18938a2789506c17a3709e06dadabb1833b5297aa0e95fb0dab6c2823cdcf
zachsully/dl
FreeVars.hs
module DL.Utils.FreeVars where import Data.Set import DL.General.Variable -------------------------------------------------------------------------------- Free Variable -- -------------------------------------------------------------------------------- class FV a where fvs :: a -> Set ...
null
https://raw.githubusercontent.com/zachsully/dl/c99cdfa8a3b59b1977a34876f397c467518091b6/haskell/DL/Utils/FreeVars.hs
haskell
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
module DL.Utils.FreeVars where import Data.Set import DL.General.Variable class FV a where fvs :: a -> Set Variable
6ca57b6f953cc75ad90367759c436c5839a3d025aaa7dba27b512d50bd2e9310
may-liu/qtalk
adhoc.erl
%%%---------------------------------------------------------------------- %%% File : adhoc.erl Author : < > Purpose : Provide helper functions for ad - hoc commands ( XEP-0050 ) Created : 31 Oct 2005 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2014 ProcessOne %%% %%% This program is free soft...
null
https://raw.githubusercontent.com/may-liu/qtalk/f5431e5a7123975e9656e7ab239e674ce33713cd/qtalk_opensource/src/adhoc.erl
erlang
---------------------------------------------------------------------- File : adhoc.erl This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the imp...
Author : < > Purpose : Provide helper functions for ad - hoc commands ( XEP-0050 ) Created : 31 Oct 2005 by < > ejabberd , Copyright ( C ) 2002 - 2014 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the Yo...
7e2b4647b3cb9f4a6548cf20402d6a2683461008638b671b06eab161f879b285
mfp/obigstore
obs_data_model.mli
* Copyright ( C ) 2011 - 2013 < > * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation ; either * version 2.1 of the License , or ( at your option ) any later version , ...
null
https://raw.githubusercontent.com/mfp/obigstore/1b078eeb21e11c8de986717150c7108a94778095/src/core/obs_data_model.mli
ocaml
* column name * Exception raised when a watched key/column has been modified while a write * transaction is being performed. * Exception raised by the {!lock} operation if a deadlock is detected. * Operation denied owning to insufficient permissions or invalid * credentials. * Name of last column in the followin...
* Copyright ( C ) 2011 - 2013 < > * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation ; either * version 2.1 of the License , or ( at your option ) any later version , ...
88e78424740a27a550dec1966b98709e7da26417a2de2fc9c545702bc44c6b98
evrim/core-server
filesystem.lisp
Core Server : Web Application Server Copyright ( C ) 2006 - 2008 , Aycan iRiCAN ;; This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ;; (at your opti...
null
https://raw.githubusercontent.com/evrim/core-server/200ea8151d2f8d81b593d605b183a9cddae1e82d/src/services/filesystem.lisp
lisp
This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public L...
Core Server : Web Application Server Copyright ( C ) 2006 - 2008 , Aycan iRiCAN it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License (in-package :tr.g...
6ccdd483578e22af4afd1c97ecd92566c2d1d8dbbb480864af4cff1f9c221170
Kappa-Dev/KappaTools
dynamicArray.mli
module DynArray: functor (_:GenArray.GenArray) -> GenArray.GenArray
null
https://raw.githubusercontent.com/Kappa-Dev/KappaTools/5e756eb3529db9976cf0a0884a22676925985978/core/dataStructures/dynamicArray.mli
ocaml
module DynArray: functor (_:GenArray.GenArray) -> GenArray.GenArray
dc2437e68a7bcd911633f0604bb9110feaeb148c816c70ccec6492ca2f0fc0b0
mirage/colombe
domain.mli
type t = | IPv4 of Ipaddr.V4.t | IPv6 of Ipaddr.V6.t | Extension of string * string | Domain of string list val compare : t -> t -> int val equal : t -> t -> bool val pp : t Fmt.t module Decoder : sig val ( or ) : ('a -> bool) -> ('a -> bool) -> 'a -> bool val is_alpha : char -> bool val is_digit : char...
null
https://raw.githubusercontent.com/mirage/colombe/bbecbb17b581fa1db70a61de14efb51a66f30451/src/domain.mli
ocaml
type t = | IPv4 of Ipaddr.V4.t | IPv6 of Ipaddr.V6.t | Extension of string * string | Domain of string list val compare : t -> t -> int val equal : t -> t -> bool val pp : t Fmt.t module Decoder : sig val ( or ) : ('a -> bool) -> ('a -> bool) -> 'a -> bool val is_alpha : char -> bool val is_digit : char...
a299e1a785ea2dd32edfc2be66108fb07288c909d5aa8a04eb4be20cbfa0aa31
wangsix/VMO_repeated_themes_discovery
converter.lisp
;(in-package :common-lisp-user) (load (merge-pathnames (make-pathname :directory '(:relative "File conversion") :name "csv-files" :type "lisp") *lisp-code-root*)) (load (merge-pathnames (make-pathname :directory '(:relative "File conversion") :name "humdrum-by-col" :type "lisp") *lisp-code...
null
https://raw.githubusercontent.com/wangsix/VMO_repeated_themes_discovery/0082b3c55e64ed447c8b68bcb705fd6da8e3541f/JKUPDD-Aug2013/groundTruth/mozartK282Mvt2/monophonic/repeatedPatterns/schoenberg/E/script/converter.lisp
lisp
(in-package :common-lisp-user)
(load (merge-pathnames (make-pathname :directory '(:relative "File conversion") :name "csv-files" :type "lisp") *lisp-code-root*)) (load (merge-pathnames (make-pathname :directory '(:relative "File conversion") :name "humdrum-by-col" :type "lisp") *lisp-code-root*)) (load (merge-pathnames...