_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
e8fe7f9d49468cfbbc4c13c18137a9dbe523b68f6216a8926d96946fdabe5cb4
SquircleSpace/shcl
lisp-repl.lisp
Copyright 2017 ;; Licensed under the Apache License , Version 2.0 ( the " License " ) ; ;; you may not use this file except in compliance with the License. ;; You may obtain a copy of the License at ;; ;; -2.0 ;; ;; Unless required by applicable law or agreed to in writing, software distributed under the Li...
null
https://raw.githubusercontent.com/SquircleSpace/shcl/cc8d3c841b8b64b6715bf8f238fb19cd6093a793/shell/lisp-repl.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 per...
Copyright 2017 distributed under the License is distributed on an " AS IS " BASIS , (defpackage :shcl/shell/lisp-repl (:use :common-lisp :shcl/core/command :shcl/core/utility) (:import-from :shcl/shell/prompt #:with-history #:history-set-size #:history-enter #:make-editline-stream) (:import-from :shcl/s...
c719e8ce388a5e3f0dd32172e0a56e018206baa64fc879f0ca5ae7212810932c
goldfirere/video-resources
Linear2.hs
# LANGUAGE LinearTypes , GADTSyntax # module Linear2 where import Text.Read ( readMaybe ) import System.Exit ( exitFailure ) -- general utility data Ur a where Ur :: a -> Ur a (&) :: a %1-> (a %1-> b) %1-> b x & f = f x ------------------------------------------ -- logically separate module data Bank whe...
null
https://raw.githubusercontent.com/goldfirere/video-resources/8bc06dd701f308564c13ac1b802f8812158636d0/2020-11-23-linear-money/Linear2.hs
haskell
general utility ---------------------------------------- logically separate module constructor not exported constructor not exported Linearity ensures that the resulting Int equals the input Int (but not with a sneaky 'view' function) ------------------------------------------
# LANGUAGE LinearTypes , GADTSyntax # module Linear2 where import Text.Read ( readMaybe ) import System.Exit ( exitFailure ) data Ur a where Ur :: a -> Ur a (&) :: a %1-> (a %1-> b) %1-> b x & f = f x data Bank where data Cents where withCents :: Int -> (Bank %1-> Cents %1-> (r, Bank)) -> (r, Int) with...
a97ddcba838a3ed6ac5b35b649c527caab40a870ed63fe52e5220019b4af9c1b
electric-sql/vaxine
time_utils.erl
%% ------------------------------------------------------------------- %% Copyright < 2013 - 2018 > < Technische Universität Kaiserslautern , Germany , France Universidade NOVA de Lisboa , Portugal Université catholique de Louvain ( UCL ) , Belgique , Portugal %% > %% This file is provided...
null
https://raw.githubusercontent.com/electric-sql/vaxine/872a83ea8d4935a52c7b850bb17ab099ee9c346b/apps/antidote/test/utils/time_utils.erl
erlang
------------------------------------------------------------------- > Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either expressed or implied. See the License for the specific language governing perm...
Copyright < 2013 - 2018 > < Technische Universität Kaiserslautern , Germany , France Universidade NOVA de Lisboa , Portugal Université catholique de Louvain ( UCL ) , Belgique , Portugal This file is provided to you under the Apache License , except in compliance with the License . You...
f35996d890b104bfcad64ba72a6e612aa77780ca7de21af5254bd391c2229559
mhkoji/Senn
win-server-named-pipe-engine.lisp
(defpackage :senn.bin.win-server (:use :cl) (:export :run)) (in-package :senn.bin.win-server) (defun run () (let ((kkc (senn.im.kkc.engine:make-kkc-and-run (senn.im.kkc.engine:make-engine-runner :program (merge-pathnames ".senn/kkc-engine.exe" ...
null
https://raw.githubusercontent.com/mhkoji/Senn/5304b003be3333957f5556ab29d5500ecb25de9a/senn/src/bin/win-server-named-pipe-engine.lisp
lisp
(defpackage :senn.bin.win-server (:use :cl) (:export :run)) (in-package :senn.bin.win-server) (defun run () (let ((kkc (senn.im.kkc.engine:make-kkc-and-run (senn.im.kkc.engine:make-engine-runner :program (merge-pathnames ".senn/kkc-engine.exe" ...
03461d3a08b8d4dc8a11801256933f027531e484426e3fbad4cd340f52d81bd7
samply/blaze
registry.clj
(ns blaze.metrics.registry (:require [blaze.metrics.core :as metrics] [blaze.metrics.spec] [clojure.spec.alpha :as s] [integrant.core :as ig] [taoensso.timbre :as log]) (:import [io.prometheus.client CollectorRegistry] [io.prometheus.client.hotspot StandardExports MemoryPoolsExports...
null
https://raw.githubusercontent.com/samply/blaze/fd535063fd32429db69dd23c53c0eae6de6b6f5a/modules/metrics/src/blaze/metrics/registry.clj
clojure
(ns blaze.metrics.registry (:require [blaze.metrics.core :as metrics] [blaze.metrics.spec] [clojure.spec.alpha :as s] [integrant.core :as ig] [taoensso.timbre :as log]) (:import [io.prometheus.client CollectorRegistry] [io.prometheus.client.hotspot StandardExports MemoryPoolsExports...
7c9b77665bbd8874f087bf7a7c12aea4d704117bcc24dff3d4975c8ebc953ee9
haskell-repa/repa
Unzip.hs
module Data.Array.Repa.Vector.Operators.Unzip ( Unzip(..) , unzip3) where import Data.Array.Repa.Vector.Base import Data.Array.Repa.Vector.Operators.Map as R import Data.Array.Repa.Vector.Repr.Delayed import Data.Array.Repa.Vector.Repr.Unboxed import Prelude hiding (unzip, unzip3) class Unzi...
null
https://raw.githubusercontent.com/haskell-repa/repa/c867025e99fd008f094a5b18ce4dabd29bed00ba/icebox/abandoned/repa-vector/Data/Array/Repa/Vector/Operators/Unzip.hs
haskell
| Convert an array of pairs into a pair of arrays. ------------------------------------------------------------------
module Data.Array.Repa.Vector.Operators.Unzip ( Unzip(..) , unzip3) where import Data.Array.Repa.Vector.Base import Data.Array.Repa.Vector.Operators.Map as R import Data.Array.Repa.Vector.Repr.Delayed import Data.Array.Repa.Vector.Repr.Unboxed import Prelude hiding (unzip, unzip3) class Unzi...
796a4352d46acdc64f96b44d01fb0e3c9777c2ac2dc4546e6da197e8f8c84dde
dwayne/eopl3
parser.rkt
#lang eopl ;; Program ::= Expression ;; ;; Expression ::= Number ;; ;; ::= Identifier ;; ;; ::= -(Expression, Expression) ;; ;; ::= minus(Expression) ;; ;; ::= zero?(Expression) ;; ;; ::= if Expression then Expression else Expression ;; ;; ::= let Id...
null
https://raw.githubusercontent.com/dwayne/eopl3/9d5fdb2a8dafac3bc48852d49cda8b83e7a825cf/solutions/03-ch3/interpreters/racket/LET-3.6/parser.rkt
racket
Program ::= Expression Expression ::= Number ::= Identifier ::= -(Expression, Expression) ::= minus(Expression) ::= zero?(Expression) ::= if Expression then Expression else Expression ::= let Identifier = Expression in Expression
#lang eopl (provide AST program a-program expression const-exp var-exp diff-exp minus-exp zero?-exp if-exp let-exp Parser parse) (define scanner-spec '((number (digit (arbno digit)) number) (identifier (letter (arbno letter)) symbol) (ws ((arbno whitespace)) skip))) (define grammar '((...
36cefbe3eb7c03e541b4f199a6d6fb4bfb538638f390c9837c080056cb12da3c
mzp/coq-ide-for-ios
syntax_def.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/mzp/coq-ide-for-ios/4cdb389bbecd7cdd114666a8450ecf5b5f0391d3/coqlib/interp/syntax_def.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** i i
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * i $ I d : syntax_def.mli 1332...
9755bbf1656ccc87cb39726279cf03b800e36f924254b5927b735b97c11465bf
jordillonch/eggs
eggs_command.erl
%% eggs (Erlang Generic Game Server) %% Copyright ( C ) 2012 - 2013 < llonch.jordi at gmail dot com > %% %% This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the %%...
null
https://raw.githubusercontent.com/jordillonch/eggs/e20ccd5093952ec967458bb2d50d5acf82e69063/apps/eggs_example_game/deps/eggs/src/eggs_command.erl
erlang
eggs (Erlang Generic Game Server) This program is free software: you can redistribute it and/or modify License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A ...
Copyright ( C ) 2012 - 2013 < llonch.jordi at gmail dot com > it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the You should have received a copy of the GNU Affero General Public License -module(eggs_command). -export([behaviou...
f5503c575d0a87f7014775894b9889dbe5eca9ff54b181b7138ae115a1e6e32b
agda/agda2hs
Where.hs
module Where where import Numeric.Natural (Natural) bool2nat :: Bool -> Natural bool2nat = error "postulate: Bool -> Natural" ex1 :: Natural ex1 = mult num + bool2nat True where num :: Natural num = 42 mult :: Natural -> Natural mult = (* 100) ex2 :: Natural ex2 = mult num + bool2nat True where ...
null
https://raw.githubusercontent.com/agda/agda2hs/d0bd87ab502bf01d02445a503820c43e619a1245/test/golden/Where.hs
haskell
module Where where import Numeric.Natural (Natural) bool2nat :: Bool -> Natural bool2nat = error "postulate: Bool -> Natural" ex1 :: Natural ex1 = mult num + bool2nat True where num :: Natural num = 42 mult :: Natural -> Natural mult = (* 100) ex2 :: Natural ex2 = mult num + bool2nat True where ...
65def7dcfebce00ecc2a28930da0fa0f6b58ba155b77f81f624d564c80fcd2cc
bldl/magnolisp
test-sum2-4.rkt
#lang magnolisp (require magnolisp/std/list) (primitives [#:type Elem] [#:function (add x y) :: (-> Elem Elem Elem)]) (define-syntax-rule (if-let-car [x v] e t) (let ([lst v]) (if (empty? lst) e (let ([x (head lst)]) t)))) (define (sum-2 lst) #:: (export) (if-let-car [e0 lst] 0...
null
https://raw.githubusercontent.com/bldl/magnolisp/191d529486e688e5dda2be677ad8fe3b654e0d4f/tests/test-sum2-4.rkt
racket
#lang magnolisp (require magnolisp/std/list) (primitives [#:type Elem] [#:function (add x y) :: (-> Elem Elem Elem)]) (define-syntax-rule (if-let-car [x v] e t) (let ([lst v]) (if (empty? lst) e (let ([x (head lst)]) t)))) (define (sum-2 lst) #:: (export) (if-let-car [e0 lst] 0...
a2b6b7f5d61aa22174295829c431db5aaef11ddcda8250c18687cf87d5763e40
xhtmlboi/yocaml
languages.ml
module ISO639 = struct type t = | Af | Sq | Eu | Be | Bg | Ca | Zh_cn | Zh_tw | Hr | Cs | Da | Nl | Nl_be | Nl_nl | En | En_au | En_bz | En_ca | En_ie | En_jm | En_nz | En_ph | En_za | En_tt | En_gb | En_us | E...
null
https://raw.githubusercontent.com/xhtmlboi/yocaml/4d207700a94b1b78bf256d11243d7fcab603d7db/lib/yocaml/languages.ml
ocaml
module ISO639 = struct type t = | Af | Sq | Eu | Be | Bg | Ca | Zh_cn | Zh_tw | Hr | Cs | Da | Nl | Nl_be | Nl_nl | En | En_au | En_bz | En_ca | En_ie | En_jm | En_nz | En_ph | En_za | En_tt | En_gb | En_us | E...
573adab3a610f8168abbca87cb3070cdeda8273a14167a01c3173a6ff6ec190d
bobzhang/fan
private_row.ml
module type Ops = sig type expr val eval : expr -> int end ;; module Plus = struct type 'a expr0 = [`Num of int | `Plus of 'a * 'a ] module F(X : Ops with type expr = private ([> 'a expr0] as 'a)) = struct type expr = X.expr expr0 let eval : expr -> int = function ...
null
https://raw.githubusercontent.com/bobzhang/fan/7ed527d96c5a006da43d3813f32ad8a5baa31b7f/src/todoml/test/fixtures/private_row.ml
ocaml
module type Ops = sig type expr val eval : expr -> int end ;; module Plus = struct type 'a expr0 = [`Num of int | `Plus of 'a * 'a ] module F(X : Ops with type expr = private ([> 'a expr0] as 'a)) = struct type expr = X.expr expr0 let eval : expr -> int = function ...
37d520dab4cdf2c02ab8aa1ddbc1a6787a2a5ecb975daeb6ce42da133373bc84
AndrasKovacs/ELTE-func-lang
Gy13_post.hs
# LANGUAGE DeriveFunctor # {-# OPTIONS_GHC -Wincomplete-patterns #-} module Gy13 where import Control.Applicative import Control.Monad import Data.Char -------------------------------------------------------------------------------- Kisfeladat -----------------------------------------------------------------------...
null
https://raw.githubusercontent.com/AndrasKovacs/ELTE-func-lang/5534db06399168f17aca6dc56a378fa1a575f93e/2021-22-2/gyak_3/Gy13_post.hs
haskell
# OPTIONS_GHC -Wincomplete-patterns # ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ fmap f (Con3 x Nothing bs) = Con3 x Nothing (fmap f bs) Tests: ∙ fmap (+10) (Con2 False 7) == Con2 False ...
# LANGUAGE DeriveFunctor # module Gy13 where import Control.Applicative import Control.Monad import Data.Char Kisfeladat data D a b = Con1 Int a | Con2 Bool b | Con3 Bool (Maybe b) [b] deriving (Eq, Show) Task # 1 : Impelement a Functor instance for the type given above ! instance Functor (D a) where fma...
446fdf45564b216f68bd65d878e2a1fa255b3a94e10f1487c455fad245b7a45d
cjohansen/gadget-inspector
dev_renderer.cljs
(ns gadget.dev-renderer (:require [cljs-data-browser.ui :as ui] [gadget.core :as g])) (defmethod g/render-data :default [data-fn] (ui/render (data-fn)))
null
https://raw.githubusercontent.com/cjohansen/gadget-inspector/c7b8ed79fbba7218bb214955342ed19d5cc57bfd/lib/dev/gadget/dev_renderer.cljs
clojure
(ns gadget.dev-renderer (:require [cljs-data-browser.ui :as ui] [gadget.core :as g])) (defmethod g/render-data :default [data-fn] (ui/render (data-fn)))
1323796dec1b0d3f99f0c6c8057ad5691b30d90bbbf99103ab1e11641886e623
Tehnix/Cminusminus-compiler
Spec.hs
module Main where import qualified Parser.LexerTest import qualified Parser.ParserTest main :: IO () main = do Parser.LexerTest.main Parser.ParserTest.main
null
https://raw.githubusercontent.com/Tehnix/Cminusminus-compiler/4bf4cff03ce6f8decb676a28348d6d51d9e2513d/test/Spec.hs
haskell
module Main where import qualified Parser.LexerTest import qualified Parser.ParserTest main :: IO () main = do Parser.LexerTest.main Parser.ParserTest.main
6d10991a6f56ef700aa9857604cc4db049dbb86ec5ecd213f48a3d58bed2a3a6
well-typed/gp-zurihac-2020
Section_2_5.hs
module Section_2_5 where import Data.Kind import Data.Proxy import GHC.TypeLits data Tree a = Leaf a | Node (Tree a) (Tree a) deriving Show data Colour = Red | Green | Blue deriving Show data SumRepresentation = Sum SumRepresentation SumRepresentation | Constructor Symbol ProductRepresentation data Produ...
null
https://raw.githubusercontent.com/well-typed/gp-zurihac-2020/c7b3026fc8df1c33e54cedcf6714d2f7b42998f5/Section_2_5.hs
haskell
module Section_2_5 where import Data.Kind import Data.Proxy import GHC.TypeLits data Tree a = Leaf a | Node (Tree a) (Tree a) deriving Show data Colour = Red | Green | Blue deriving Show data SumRepresentation = Sum SumRepresentation SumRepresentation | Constructor Symbol ProductRepresentation data Produ...
0f3a79b7fbbe9e1513518867cee55a94f53eb3fdb7e1ab1a359e10a11232566b
dongcarl/guix
svn-download.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2014 , 2015 , 2016 , 2019 < > Copyright © 2014 Sree < > Copyright © 2017 , 2019 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public ...
null
https://raw.githubusercontent.com/dongcarl/guix/82543e9649da2da9a5285ede4ec4f718fd740fcb/guix/svn-download.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2014 , 2015 , 2016 , 2019 < > Copyright © 2014 Sree < > Copyright © 2017 , 2019 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (guix svn-down...
85b7d0a3b11ef85b966ecfe4537b8c9e64ae1edd3b09ce0387dfcbc5e6a88660
lokedhs/cl-gdata
picasa.lisp
(in-package :cl-gdata-picasa) (defvar *allowed-image-mime-types* '("image/bmp" "image/gif" "image/jpeg" "image/png") "A list of MIME types that are allowed when uploading photos") (defclass album (atom-feed-entry) ((summary :type (or null string) :reader album-summary :node "atom:summary/t...
null
https://raw.githubusercontent.com/lokedhs/cl-gdata/3ca1ed63e358ccb4bfbbaa5f09755cc8ef980db6/src/picasa.lisp
lisp
Media tags Set up tags
(in-package :cl-gdata-picasa) (defvar *allowed-image-mime-types* '("image/bmp" "image/gif" "image/jpeg" "image/png") "A list of MIME types that are allowed when uploading photos") (defclass album (atom-feed-entry) ((summary :type (or null string) :reader album-summary :node "atom:summary/t...
722e275144882efc940e6590a319593e31debf5945621c405340f083ecfd8e60
crategus/cl-cffi-gtk
rtest-gtk-text-tag-table.lisp
(def-suite gtk-text-tag-table :in gtk-suite) (in-suite gtk-text-tag-table) (defparameter *verbose-gtk-text-tag-table* nil) ;;; --- Types and Values ------------------------------------------------------- ;;; GtkTextTagTable (test gtk-text-tag-table-class ;; Type check (is (g-type-is-object "GtkTextTagTable"...
null
https://raw.githubusercontent.com/crategus/cl-cffi-gtk/7f5a09f78d8004a71efa82794265f2587fff98ab/test/rtest-gtk-text-tag-table.lisp
lisp
--- Types and Values ------------------------------------------------------- GtkTextTagTable Type check Check the registered name Check the type initializer Check the parent Check the children Check the interfaces Check the class properties Check the class definition --- Functions -----------------------...
(def-suite gtk-text-tag-table :in gtk-suite) (in-suite gtk-text-tag-table) (defparameter *verbose-gtk-text-tag-table* nil) (test gtk-text-tag-table-class (is (g-type-is-object "GtkTextTagTable")) (is (eq 'gtk-text-tag-table (registered-object-type-by-name "GtkTextTagTable"))) (is (eq (gtype"GtkTextT...
cd22353190db6c236a8efdaaf7bd38b2a94cd04536c254efedfa13db6efe2872
TorXakis/TorXakis
TestDataReset.hs
TorXakis - Model Based Testing Copyright ( c ) 2015 - 2017 TNO and Radboud University See LICENSE at root directory of this repository . TorXakis - Model Based Testing Copyright (c) 2015-2017 TNO and Radboud University See LICENSE at root directory of this repository. -} {-# OPTIONS_GHC -Wno-unused-top-bi...
null
https://raw.githubusercontent.com/TorXakis/TorXakis/038463824b3d358df6b6b3ff08732335b7dbdb53/sys/lpeops/test/TestDataReset.hs
haskell
# OPTIONS_GHC -Wno-unused-top-binds # # ANN module "HLint: ignore Reduce duplication" # A ? z [x==0] >-> P(1, z) A ? z [x==2] >-> P(3, y) A ? z [x==3] >-> P(0, y) A ? y [x==0] >-> P(1, y) A ? z [x==2] >-> P(3, ANY int) A ? z [x==3] >-> P(0, ANY int) testDataResetBasic --------------------------------------------...
TorXakis - Model Based Testing Copyright ( c ) 2015 - 2017 TNO and Radboud University See LICENSE at root directory of this repository . TorXakis - Model Based Testing Copyright (c) 2015-2017 TNO and Radboud University See LICENSE at root directory of this repository. -} module TestDataReset ( testDataRe...
4556414130e06df256990a8da09ecc1d358965ceafbb088a3d991c6e428413a6
DKurilo/hackerrank
testgenerator.hs
# LANGUAGE FlexibleInstances , UndecidableInstances , DuplicateRecordFields # module Main where import Control.Monad import qualified Data.List as DL import Data.List.Split import qualified Data.Set as DS import System.Environment import System.IO import qualified Data.Map.Strict as DM import System.Random import D...
null
https://raw.githubusercontent.com/DKurilo/hackerrank/37063170567b397b25a2b7123bc9c1299d34814a/torque-and-development/testgenerator.hs
haskell
# LANGUAGE FlexibleInstances , UndecidableInstances , DuplicateRecordFields # module Main where import Control.Monad import qualified Data.List as DL import Data.List.Split import qualified Data.Set as DS import System.Environment import System.IO import qualified Data.Map.Strict as DM import System.Random import D...
58599d67bdee6914651b0d60d6aabcc2a67a0cccfadc415cf68303a6538e9bc8
sarabander/p2pu-sicp
3.18.scm
(define (cyclic? lst) (let ((pair-count (count-pairs lst))) (define (step-through steps lst) (cond ((and (zero? steps) (null? lst)) #f) ((zero? steps) #t) (else (step-through (- steps 1) (cdr lst))))) (step-through pair-count lst))) (cyclic? '()) ; #f (cyclic? '(m)) ; #f (cycli...
null
https://raw.githubusercontent.com/sarabander/p2pu-sicp/fbc49b67dac717da1487629fb2d7a7d86dfdbe32/3.3/3.18.scm
scheme
#f #f #f #t
(define (cyclic? lst) (let ((pair-count (count-pairs lst))) (define (step-through steps lst) (cond ((and (zero? steps) (null? lst)) #f) ((zero? steps) #t) (else (step-through (- steps 1) (cdr lst))))) (step-through pair-count lst)))
571eb930f36cfcf5a667f90774c01aca217cdcf423833a378b7bdf58b4e8278e
osstotalsoft/functional-guy
01.SemiGroup.hs
{-# LANGUAGE GADTs #-} instance Semigroup Integer - Not very helpful ! instance Semigroup Integer where (<>) x y = x + y oneComposedWithTwo :: Integer oneComposedWithTwo = 1 <> 2 ValidationResult Semigroup data ValidationResult = ValidationResult {isValid :: Bool, errors :: [String]} deriving (Show) merge :: Va...
null
https://raw.githubusercontent.com/osstotalsoft/functional-guy/c02a8b22026c261a9722551f3641228dc02619ba/Chapter3.%20Haskell's%20Type%20System/Exercises/05.%20Algebraic%20structures/01.SemiGroup.hs
haskell
# LANGUAGE GADTs # Min a Semigroup constraint polymorphic fn
instance Semigroup Integer - Not very helpful ! instance Semigroup Integer where (<>) x y = x + y oneComposedWithTwo :: Integer oneComposedWithTwo = 1 <> 2 ValidationResult Semigroup data ValidationResult = ValidationResult {isValid :: Bool, errors :: [String]} deriving (Show) merge :: ValidationResult -> Valid...
74b71efa709ee726d6c0bc52fc61783ba5134fbe2a70e687c0ac48298101462b
nyu-acsys/drift
zip00.ml
(* Assertion error *) let rec zip_without_checking_1077 x_DO_NOT_CARE_1083 x_DO_NOT_CARE_1084 x_DO_NOT_CARE_1085 xs_10311 set_flag_zip_1063 s_zip_xs_1058 s_zip_ys_1059 ys_10322 = let set_flag_zip_1063_r = true in let s_zip_ys_1059_r = ys_10322 in let s_zip_xs_1058_r = xs_10311 in if xs_10311 <= 0 then 0 ...
null
https://raw.githubusercontent.com/nyu-acsys/drift/51a3160d74b761626180da4f7dd0bb950cfe40c0/tests/benchmarks/DRIFT/negative/zip00.ml
ocaml
Assertion error -:{v:Int | true} -:{v:Int | true}
let rec zip_without_checking_1077 x_DO_NOT_CARE_1083 x_DO_NOT_CARE_1084 x_DO_NOT_CARE_1085 xs_10311 set_flag_zip_1063 s_zip_xs_1058 s_zip_ys_1059 ys_10322 = let set_flag_zip_1063_r = true in let s_zip_ys_1059_r = ys_10322 in let s_zip_xs_1058_r = xs_10311 in if xs_10311 <= 0 then 0 else let xsp_1033 ...
13c2a2f632e4fcf1010c1c61caa73bbfd16a08e49c2445297e49a823486b39f4
vagarenko/static-tensor
Normalize.hs
# LANGUAGE TypeApplications # {-# LANGUAGE TypeInType #-} module CoreDump.Vector.Normalize where import Data.Vector.Static import TensorInstances () normalize_ :: Vector 4 Float -> NormalizedVector 4 Float normalize_ = normalize
null
https://raw.githubusercontent.com/vagarenko/static-tensor/8409d281707c23f3fe2028e926f1d4e8f7a9bc2d/tests/CoreDump/Vector/Normalize.hs
haskell
# LANGUAGE TypeInType #
# LANGUAGE TypeApplications # module CoreDump.Vector.Normalize where import Data.Vector.Static import TensorInstances () normalize_ :: Vector 4 Float -> NormalizedVector 4 Float normalize_ = normalize
ef17525f72e630508702feb0f89ef820f3e72eabe8ac5f86484ce3dd3a72f30f
wh5a/thih
HaskellThih.hs
Automatically generated typing assumptions for Thih module HaskellThih where import Testbed import StaticThih defnsHaskellThih = ["enumId" :>: Forall [] ([] :=> (tInt `fn` TAp tList tChar)), "tUnit" :>: Forall [] ([] :=> tType), "tChar" :>: Forall [] ...
null
https://raw.githubusercontent.com/wh5a/thih/dc5cb16ba4e998097135beb0c7b0b416cac7bfae/src/HaskellThih.hs
haskell
Automatically generated typing assumptions for Thih module HaskellThih where import Testbed import StaticThih defnsHaskellThih = ["enumId" :>: Forall [] ([] :=> (tInt `fn` TAp tList tChar)), "tUnit" :>: Forall [] ([] :=> tType), "tChar" :>: Forall [] ...
7c505b8ca3c42f8264eb5470a01ea5ae834f20f182a9daacba112dd5e4c3666f
spectrum-finance/cardano-dex-backend
Config.hs
module Spectrum.Executor.Backlog.Persistence.Config ( BacklogStoreConfig(..) ) where import GHC.Generics ( Generic ) import Dhall ( FromDhall ) data BacklogStoreConfig = BacklogStoreConfig { storePath :: !FilePath , createIfMissing :: !Bool } deriving (Generic, FromDhall)
null
https://raw.githubusercontent.com/spectrum-finance/cardano-dex-backend/47528f6a43124ab4f6849521d61dbb3fad476c19/amm-executor/src/Spectrum/Executor/Backlog/Persistence/Config.hs
haskell
module Spectrum.Executor.Backlog.Persistence.Config ( BacklogStoreConfig(..) ) where import GHC.Generics ( Generic ) import Dhall ( FromDhall ) data BacklogStoreConfig = BacklogStoreConfig { storePath :: !FilePath , createIfMissing :: !Bool } deriving (Generic, FromDhall)
d6488fb2a6199a59067d0743912bb7dbd8b2ca7684ba8b079692263ce023954d
HaskellZhangSong/Introduction_to_Haskell_2ed_source
chapter05.hs
import Prelude hiding (even,odd) factorial :: Integer -> Integer factorial n = if n < 0 then error "n is less than 0" else if n==0 then 1 else n * factorial (n-1) mygcd :: Int -> Int -> Int mygcd x y = if y == 0 then x else mygcd y (mod x y) power :: Int -> Int -> Int power 0 0 = error ...
null
https://raw.githubusercontent.com/HaskellZhangSong/Introduction_to_Haskell_2ed_source/140c50fdccfe608fe499ecf2d8a3732f531173f5/C05/chapter05.hs
haskell
import Prelude hiding (even,odd) factorial :: Integer -> Integer factorial n = if n < 0 then error "n is less than 0" else if n==0 then 1 else n * factorial (n-1) mygcd :: Int -> Int -> Int mygcd x y = if y == 0 then x else mygcd y (mod x y) power :: Int -> Int -> Int power 0 0 = error ...
720989f50e4671f458384d994f9301bc820a228fe39f261277a3712a12919fe9
discord-haskell/discord-haskell
Types.hs
| Re - export ALL the internal type modules . Hiding is in Discord . Types module Discord.Internal.Types ( module Discord.Internal.Types.Prelude, module Discord.Internal.Types.Channel, module Discord.Internal.Types.Color, module Discord.Internal.Types.Events, module Discord.Internal.Types.Gateway, ...
null
https://raw.githubusercontent.com/discord-haskell/discord-haskell/8a82208cbb59e1ab24176a90de8b0706c08ddb31/src/Discord/Internal/Types.hs
haskell
| Converts an internal event to its user facing counterpart
| Re - export ALL the internal type modules . Hiding is in Discord . Types module Discord.Internal.Types ( module Discord.Internal.Types.Prelude, module Discord.Internal.Types.Channel, module Discord.Internal.Types.Color, module Discord.Internal.Types.Events, module Discord.Internal.Types.Gateway, ...
595a636717560871a10d5075a39bb1a76c1e5f670a1de9bd2b25d2af435a005d
garrigue/lablgl
var2def.ml
open StdLabels Compile a list of variant tags into CPP defines (* hash_variant, from ctype.ml *) let hash_variant s = let accu = ref 0 in for i = 0 to String.length s - 1 do accu := 223 * !accu + Char.code s.[i] done; reduce to 31 bits accu := !accu land (1 lsl 31 - 1); make it signed for 64 bits a...
null
https://raw.githubusercontent.com/garrigue/lablgl/d76e4ac834b6d803e7a6c07c3b71bff0e534614f/src/var2def.ml
ocaml
hash_variant, from ctype.ml
open StdLabels Compile a list of variant tags into CPP defines let hash_variant s = let accu = ref 0 in for i = 0 to String.length s - 1 do accu := 223 * !accu + Char.code s.[i] done; reduce to 31 bits accu := !accu land (1 lsl 31 - 1); make it signed for 64 bits architectures if !accu > 0x3FFFFF...
fc301b5b8fbc869d07787dd8cacb853751caf14489b6dad723dca21760aae10c
janestreet/hardcaml_of_verilog
circuit_to_json.mli
* Takes in a Hardcaml circuit and transforms it to a json file that can be read and rendered by netlistsvg . rendered by netlistsvg. *) open Base val convert : ?debug:bool -> Hardcaml.Circuit.t -> Yosys_netlist.t
null
https://raw.githubusercontent.com/janestreet/hardcaml_of_verilog/c1d4e5abe18a1b15e8858151a43aa69efcbbe07b/src/circuit_to_json.mli
ocaml
* Takes in a Hardcaml circuit and transforms it to a json file that can be read and rendered by netlistsvg . rendered by netlistsvg. *) open Base val convert : ?debug:bool -> Hardcaml.Circuit.t -> Yosys_netlist.t
95903bd4c5c0c16e440ccb72ef2066631fdd8c1d65bb40d602e01e14b0153578
byteally/dbrecord
Postgres.hs
# OPTIONS_GHC -Wno - orphans # # LANGUAGE DeriveGeneric , GeneralizedNewtypeDeriving , StandaloneDeriving # module DBRecord.Postgres ( module DBRecord.Postgres.Internal.Query , module Database.PostgreSQL.Simple , module Database.PostgreSQL.Simple.FromField ) where import Data.Aeson import ...
null
https://raw.githubusercontent.com/byteally/dbrecord/991efe9a293532ee9242b3e9a26434cf16f5b2a0/dbrecord-postgres-simple/src/DBRecord/Postgres.hs
haskell
# OPTIONS_GHC -Wno - orphans # # LANGUAGE DeriveGeneric , GeneralizedNewtypeDeriving , StandaloneDeriving # module DBRecord.Postgres ( module DBRecord.Postgres.Internal.Query , module Database.PostgreSQL.Simple , module Database.PostgreSQL.Simple.FromField ) where import Data.Aeson import ...
16276a997591d83ed81ff9341c9177a76c03478b1acecc79c34355e239f6f736
clojupyter/clojupyter
build_actions.clj
(ns clojupyter.install.conda.build-actions (:require [clojupyter.install.conda.conda-specs :as csp] [clojupyter.install.filemap :as fm] [clojupyter.plan :as pl] [clojupyter.util-actions :as u!] [clojure.java.io :as io] [clojure.java.shell :as sh] ...
null
https://raw.githubusercontent.com/clojupyter/clojupyter/b54b30b5efa115937b7a85e708a7402bd9efa0ab/src/clojupyter/install/conda/build_actions.clj
clojure
---------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------
(ns clojupyter.install.conda.build-actions (:require [clojupyter.install.conda.conda-specs :as csp] [clojupyter.install.filemap :as fm] [clojupyter.plan :as pl] [clojupyter.util-actions :as u!] [clojure.java.io :as io] [clojure.java.shell :as sh] ...
de74d6d5317c1e981eaffd52842e61faef5d2a4c82c42abd180eaea1c37e9417
RaminHAL9001/Dao
Dao.hs
| This is the main module to import into your project when you want to make use of the database kernel . It exports all of " Language . Interpreter . Dao . Kernel " along with serveral -- functions for defining databases. -- -- The database parser is defined in this module, although it mostly just parses the heade...
null
https://raw.githubusercontent.com/RaminHAL9001/Dao/33a59c5dbb08346d8bda218be467b26d30c94fd0/src/Language/Interpreter/Dao.hs
haskell
functions for defining databases. The database parser is defined in this module, although it mostly just parses the header before
| This is the main module to import into your project when you want to make use of the database kernel . It exports all of " Language . Interpreter . Dao . Kernel " along with serveral launching into a loop that parses as many ' Language . Interpreter . . Kernel . DBEntry 's . module Language.Interpreter.Dao ...
39872536a848ead323fa5cafdcad02014031f18aba9ed2610ff6ea3d94bb2f37
zadean/xqerl
app_UseCaseJSON_SUITE.erl
-module('app_UseCaseJSON_SUITE'). -include_lib("common_test/include/ct.hrl"). -export([ all/0, groups/0, suite/0 ]). -export([ init_per_suite/1, init_per_group/2, end_per_group/2, end_per_suite/1 ]). -export(['UseCaseJSON-001'/1]). -export(['UseCaseJSON-002'/1]). -export(['UseCaseJSON-00...
null
https://raw.githubusercontent.com/zadean/xqerl/1a94833e996435495922346010ce918b4b0717f2/test/app/app_UseCaseJSON_SUITE.erl
erlang
-module('app_UseCaseJSON_SUITE'). -include_lib("common_test/include/ct.hrl"). -export([ all/0, groups/0, suite/0 ]). -export([ init_per_suite/1, init_per_group/2, end_per_group/2, end_per_suite/1 ]). -export(['UseCaseJSON-001'/1]). -export(['UseCaseJSON-002'/1]). -export(['UseCaseJSON-00...
8a31c24d79e93e64a9324431445a1650bc4e8d6544ec0a5816c45c26b73d4fff
souenzzo/souenzzo.github.io
core.clj
(ns stackfriend.core (:require [clojure.java.io :as io] [clojure.string :as string] [com.rpl.specter :as sp] [edamame.core :as eda]) (:import (java.nio.file Paths) (java.io File))) (defn relative-path [^File f] (let [d (Paths/get (.getAbsolutePath (io/file ".")) ...
null
https://raw.githubusercontent.com/souenzzo/souenzzo.github.io/30a811c4e5633ad07bba1d58d19eb091dac222e9/stackfriend/src/stackfriend/core.clj
clojure
(ns stackfriend.core (:require [clojure.java.io :as io] [clojure.string :as string] [com.rpl.specter :as sp] [edamame.core :as eda]) (:import (java.nio.file Paths) (java.io File))) (defn relative-path [^File f] (let [d (Paths/get (.getAbsolutePath (io/file ".")) ...
d6e4d4dc2eec47fd88e26679abfde24cbe7cd3e554a2652552a5b6fe55775582
vydd/easing
easing.lisp
;;;; easing.lisp (in-package #:easing) (defmacro defeasing (name args &body body) (let ((x (or (car args) 'x))) `(progn (defun ,(alexandria:symbolicate 'in- name) ,args (cond ((>= 0 ,x) 0) ((<= 1 ,x) 1) (t ,@body))) (defun ,(alexandria:symbolicate 'out- name) ,args (cond ((>= 0...
null
https://raw.githubusercontent.com/vydd/easing/1601a5f7413ba92c355d95a7d5200b648ddcdf35/src/easing.lisp
lisp
easing.lisp
(in-package #:easing) (defmacro defeasing (name args &body body) (let ((x (or (car args) 'x))) `(progn (defun ,(alexandria:symbolicate 'in- name) ,args (cond ((>= 0 ,x) 0) ((<= 1 ,x) 1) (t ,@body))) (defun ,(alexandria:symbolicate 'out- name) ,args (cond ((>= 0 ,x) 0) (...
9381486cbd19c6603c539285791a363953d53cf25a2a76df834fd99e63c18a02
SimulaVR/godot-haskell
InputEventGesture.hs
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.InputEventGesture (Godot.Core.InputEventGesture.get_...
null
https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/src/Godot/Core/InputEventGesture.hs
haskell
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.InputEventGesture (Godot.Core.InputEventGesture.get_...
d573b09538f11054f7dd255afb5ee422892f579df4085ed06b92506c04ff407f
angavrilov/cl-walker
lexenv-sbcl.lisp
;;; -*- mode: Lisp; Syntax: Common-Lisp; -*- ;;; Copyright ( c ) 2008 by the authors . ;;; ;;; See COPYING for details. (in-package :cl-walker) ;;; SBCL ;;; (defun make-empty-lexical-environment () (sb-kernel:make-null-lexenv)) ;;; ;;; iteration ;;; (defun iterate-variables-in-lexenv (visitor lexenv &key inclu...
null
https://raw.githubusercontent.com/angavrilov/cl-walker/a400b91280a401d2d6780fb7e3242892058c6e4a/src/lexenv-sbcl.lisp
lisp
-*- mode: Lisp; Syntax: Common-Lisp; -*- See COPYING for details. iteration augmentation
Copyright ( c ) 2008 by the authors . (in-package :cl-walker) SBCL (defun make-empty-lexical-environment () (sb-kernel:make-null-lexenv)) (defun iterate-variables-in-lexenv (visitor lexenv &key include-ignored? include-specials?) (loop :for entry :in (sb-c::lexenv-vars lexenv) :for name = (first en...
3eba7c89fa9d21bae447866191fc587f68f65fa031471c0e971b958a305b9b72
iand675/hs-opentelemetry
main.hs
{-# LANGUAGE OverloadedStrings #-} # OPTIONS_GHC -Wno - orphans # import Control.DeepSeq (NFData) import qualified Criterion.Main as C import qualified Data.ByteString.Short as SB import OpenTelemetry.Propagator.Datadog.Internal import OpenTelemetry.Trace.Id (TraceId) import qualified String main :: IO () main = C...
null
https://raw.githubusercontent.com/iand675/hs-opentelemetry/1f0328eb59fec2a97aec7ef98fe4f1e0d5c8f2ac/propagators/datadog/benchmark/header-codec/main.hs
haskell
# LANGUAGE OverloadedStrings #
# OPTIONS_GHC -Wno - orphans # import Control.DeepSeq (NFData) import qualified Criterion.Main as C import qualified Data.ByteString.Short as SB import OpenTelemetry.Propagator.Datadog.Internal import OpenTelemetry.Trace.Id (TraceId) import qualified String main :: IO () main = C.defaultMain [ C.bgroup ...
db5d991f87b954058e55661c6e2d80ef3a90742012c3386de4a486e803fdc1e9
census-instrumentation/opencensus-erlang
oc_propagation_binary.erl
%%%------------------------------------------------------------------------- Copyright 2017 , OpenCensus Authors 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 %% %% Unles...
null
https://raw.githubusercontent.com/census-instrumentation/opencensus-erlang/7fb276ff73d677c00458922c9180df634f45e018/src/oc_propagation_binary.erl
erlang
------------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright 2017 , OpenCensus Authors Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(oc_propagation_binary). -export([encode/1, decode/1]). -include("opencensus.hrl"). -define(VERSION, 0). -define(TRACE_...
cdea8be1a78396108f9c1b98b7338adbae5d520bf9e795ef6f50412225e7084b
bhauman/advent-of-clojure
day03.clj
(ns advent-2015.day03 (:require [clojure.java.io :as io])) (def prob3 (slurp (io/resource "2015/prob3"))) (defn positions-visited [data] (set (reductions #(map + %1 %2) [0 0] (map {\^ [0 1] \v [0 -1] \> [1 0] \< [-1 0]} data)))) part 1 #_(count (positions-vi...
null
https://raw.githubusercontent.com/bhauman/advent-of-clojure/856763baf45bf7bf452ffd304dc1b89f9bc879a6/src/advent-2015/day03.clj
clojure
(ns advent-2015.day03 (:require [clojure.java.io :as io])) (def prob3 (slurp (io/resource "2015/prob3"))) (defn positions-visited [data] (set (reductions #(map + %1 %2) [0 0] (map {\^ [0 1] \v [0 -1] \> [1 0] \< [-1 0]} data)))) part 1 #_(count (positions-vi...
36c5c3c662cbfdbd8847427f4e6997658efb59e28a3741da3f2c14a1eb9d7004
WorksHub/client
iconsset.cljc
(ns wh.styles.iconsset) (def page "iconsset__page--lEJEc") (def icon "iconsset__icon--1iWKc") (def icon__wrapper "iconsset__icon__wrapper--1sPM9")
null
https://raw.githubusercontent.com/WorksHub/client/a51729585c2b9d7692e57b3edcd5217c228cf47c/common/src/wh/styles/iconsset.cljc
clojure
(ns wh.styles.iconsset) (def page "iconsset__page--lEJEc") (def icon "iconsset__icon--1iWKc") (def icon__wrapper "iconsset__icon__wrapper--1sPM9")
96c278fee69ed4c3a7f5158d1135bf9d2bec4ab2d0344d7f573cd695136ec3b9
jonase/cljcsv
csv.clj
Copyright ( c ) . All rights reserved . The use and distribution terms for this software are covered by the Eclipse ;; Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this ;; distribution. By using this software in any fashion, you are ;; agreeing to be bound by the ...
null
https://raw.githubusercontent.com/jonase/cljcsv/0310bb5a0ccea50c600c5aaf541f36ec2a5ab7de/src/main/clojure/com/github/jonase/csv.clj
clojure
Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software. Reading Writing
Copyright ( c ) . All rights reserved . The use and distribution terms for this software are covered by the Eclipse (ns ^{:author "Jonas Enlund" :doc "Reading and writing comma separated values."} com.github.jonase.csv (:require (clojure [string :as str])) (:import (java.io Reader Writer StringRead...
f7dcf080a91ee56970d9a4fe7fabf3cbef6db1af9a35a3b8b9cec3d4bda07abc
lucasdicioccio/deptrack
Service.hs
# LANGUAGE FlexibleInstances # # LANGUAGE RecordWildCards # -- | A Service monitoring. -- -- Here we do merely use deptrack to record service dependencies for some -- internet hosts that I own. module Service where import Prelude hiding (lookup) import Deptrack.Graph import Deptrack.Monadic import Data.Traversable (s...
null
https://raw.githubusercontent.com/lucasdicioccio/deptrack/52a9e42d2c99edba7b3c0535903aea74f60b0bbc/examples/Service.hs
haskell
| A Service monitoring. Here we do merely use deptrack to record service dependencies for some internet hosts that I own. | A representation of our dependency | runs a dependency check if its result is not already known from the cache XXX here we run the check, we should atomically catch errors and do something...
# LANGUAGE FlexibleInstances # # LANGUAGE RecordWildCards # module Service where import Prelude hiding (lookup) import Deptrack.Graph import Deptrack.Monadic import Data.Traversable (sequenceA, traverse) import Text.Dot (showDot) import Data.Map.Strict import qualified Data.Map.Strict as M import Data.Tree import qua...
b0204af06171c568116243c6ae09328aec670433783c05135e3053f563934998
MaskRay/OJHaskell
99.hs
import Data.List main = do contents <- readFile "base_exp.txt" let a = map (\x -> read ("["++x++"]") :: [Double] ) $ lines contents let Just d = (`elemIndex` a) (maximumBy (\ [x1,y1] [x2,y2] -> (y1*log x1) `compare` (y2*log x2)) a) print (d+1)
null
https://raw.githubusercontent.com/MaskRay/OJHaskell/ba24050b2480619f10daa7d37fca558182ba006c/Project%20Euler/99.hs
haskell
import Data.List main = do contents <- readFile "base_exp.txt" let a = map (\x -> read ("["++x++"]") :: [Double] ) $ lines contents let Just d = (`elemIndex` a) (maximumBy (\ [x1,y1] [x2,y2] -> (y1*log x1) `compare` (y2*log x2)) a) print (d+1)
cce8305ef8671e849367ea9ddae5b17d58bc232757f147ae4eed2987af463c21
snmsts/cl-langserver
channels.lisp
(in-package :langserver-base) ;;; Channels (defmacro channels () `(connection-channels *client-connection*)) (defmacro channel-counter () `(connection-channel-counter *client-connection*)) (defclass channel () ((id :initform (incf (channel-counter)) :reader channel-id) (thread :initarg :thread :i...
null
https://raw.githubusercontent.com/snmsts/cl-langserver/3b1246a5d0bd58459e7a64708f820bf718cf7175/src/channels.lisp
lisp
Channels FIXME: slightly fugly, but I need this to be able to name the thread according to the channel's id. FIXME: perhaps this should incorporate most behaviour from it's :after spec currently in slynk-mrepl.lisp) eventually calls CLOSE-CHANNEL
(in-package :langserver-base) (defmacro channels () `(connection-channels *client-connection*)) (defmacro channel-counter () `(connection-channel-counter *client-connection*)) (defclass channel () ((id :initform (incf (channel-counter)) :reader channel-id) (thread :initarg :thread :initform (curr...
f17cf7d70564269386f6b179204fa4473ecd3401f9ab07f1d5f5d50e14343b0d
MinaProtocol/mina
pickles_intf.ml
module type S = sig module Scalar_challenge = Scalar_challenge module Endo = Endo open Core_kernel open Async_kernel open Pickles_types open Hlist module Tick_field_sponge = Tick_field_sponge module Util = Util module Step_main_inputs = Step_main_inputs module Backend = Backend module Sponge_input...
null
https://raw.githubusercontent.com/MinaProtocol/mina/8403887a428f56e91bfdf4187c6b8dc260e5424a/src/lib/pickles/pickles_intf.ml
ocaml
combinator generated by `deriving fields` in implementation * This type relates the types of the input and output types of an inductive rule's [main] function to the type of the public input to the resulting circuit. * The input type of an inductive rule's main function. * The publicly-exposed i...
module type S = sig module Scalar_challenge = Scalar_challenge module Endo = Endo open Core_kernel open Async_kernel open Pickles_types open Hlist module Tick_field_sponge = Tick_field_sponge module Util = Util module Step_main_inputs = Step_main_inputs module Backend = Backend module Sponge_input...
a5370e242e8864af9dfe78394724baa84c63bcd3783e3700b5b4e512f32ccdf2
TeMPOraL/alice
package-tracking.lisp
(in-package #:alice) (defparameter *gdziepaczka-token* "") (defparameter *tracking-number-regexp* "([A-Z]{2}[0-9]+[A-Z]{2})") (register-matcher :track-package (list (match-score (lambda (input) (and (directedp input) ...
null
https://raw.githubusercontent.com/TeMPOraL/alice/4621a53ccd459bebf0b34c531dab49f7b42f35c7/grimoire/package-tracking.lisp
lisp
(in-package #:alice) (defparameter *gdziepaczka-token* "") (defparameter *tracking-number-regexp* "([A-Z]{2}[0-9]+[A-Z]{2})") (register-matcher :track-package (list (match-score (lambda (input) (and (directedp input) ...
58eb8b5a7809d90fcf377e570624729559f0b00736bdcee8723b03f0fab911db
bdeket/rktsicm
Routhian.rkt
#lang s-exp "../../main.rkt" (require rackunit "../helper.rkt") (rename-part 'derivative 'D) (define the-tests (test-suite "mechanics/Routhian" (test-case "Lag" (define ((Lag mx kx my ky) s) (let ((t (time s)) (q (coordinate s)) (v (velocity s))) (let ((...
null
https://raw.githubusercontent.com/bdeket/rktsicm/9a6177d98040f058214add392bd791f5259b83b5/rktsicm/sicm/tests/mechanics/Routhian.rkt
racket
#lang s-exp "../../main.rkt" (require rackunit "../helper.rkt") (rename-part 'derivative 'D) (define the-tests (test-suite "mechanics/Routhian" (test-case "Lag" (define ((Lag mx kx my ky) s) (let ((t (time s)) (q (coordinate s)) (v (velocity s))) (let ((...
c08fff4716cf0de3e999e3eb11fd2985970eabc8cd2f8ec567238acdd6c6d270
OCamlPro/ocp-build
fileChannel.mli
(**************************************************************************) (* *) (* Typerex Libraries *) (* *) Copyrigh...
null
https://raw.githubusercontent.com/OCamlPro/ocp-build/56aff560bb438c12b2929feaf8379bc6f31b9840/libs/ocplib-file/fileChannel.mli
ocaml
************************************************************************ Typerex Libraries ...
Copyright 2011 - 2017 OCamlPro SAS the GNU Lesser General Public License version 2.1 , with the open OcpCompat include (FileSig.CONTENT_OPERATIONS with type in_file := in_channel and type out_file = out_channel) val output_line : out_channel...
973c0a62fa8654c091e3a159513e8433121c7468d5fc55145b5d4de3d0351669
footprintanalytics/footprint-web
impl_test.clj
(ns metabase.query-processor.middleware.cache.impl-test (:require [clojure.test :refer :all] [metabase.query-processor.middleware.cache.impl :as impl] [potemkin.types :as p.types]) (:import java.io.ByteArrayInputStream)) ;; `defrecord+` because if this gets redefined it confuses the test ru...
null
https://raw.githubusercontent.com/footprintanalytics/footprint-web/d3090d943dd9fcea493c236f79e7ef8a36ae17fc/test/metabase/query_processor/middleware/cache/impl_test.clj
clojure
`defrecord+` because if this gets redefined it confuses the test runner
(ns metabase.query-processor.middleware.cache.impl-test (:require [clojure.test :refer :all] [metabase.query-processor.middleware.cache.impl :as impl] [potemkin.types :as p.types]) (:import java.io.ByteArrayInputStream)) (p.types/defrecord+ ^:private Z [n]) (def ^:private objects [{:metada...
97d98baf57eda6d31b86dfa0a102aedd8312cbc791a8d36747701d1b205b6f31
ScottBrooks/Erlcraft
erlcraft.erl
@author author < > YYYY author . %% @doc TEMPLATE. -module(erlcraft). -author('author <>'). -export([start/0, stop/0]). ensure_started(App) -> case application:start(App) of ok -> ok; {error, {already_started, App}} -> ok end. @spec start ( ) - > ok %% @doc St...
null
https://raw.githubusercontent.com/ScottBrooks/Erlcraft/ed336eb8da4d83e937687ce34feecb76b4128288/src/erlcraft.erl
erlang
@doc TEMPLATE. @doc Start the erlcraft server. @doc Stop the erlcraft server.
@author author < > YYYY author . -module(erlcraft). -author('author <>'). -export([start/0, stop/0]). ensure_started(App) -> case application:start(App) of ok -> ok; {error, {already_started, App}} -> ok end. @spec start ( ) - > ok start() -> erlcraft_deps...
375fab165868122bfaae62a8c6c06bd97ddf613d45afb2a11fc3149076a74e4a
janestreet/krb
enctype.mli
open! Core (** supported encryption algorithms *) type t [@@deriving sexp_of] include Comparable.S with type t := t include Stringable.S with type t := t * AES-128 CTS mode with 96 - bit SHA-1 HMAC val aes128_cts_hmac_sha1_96 : t * AES-256 CTS mode with 96 - bit SHA-1 HMAC val aes256_cts_hmac_sha1_96 : t * RC4 wit...
null
https://raw.githubusercontent.com/janestreet/krb/1105ba1e8b836f80f09e663bc1b4233cf2607e7b/internal/enctype.mli
ocaml
* supported encryption algorithms * [of_int] raises if the encyption type is not one of the supported types above
open! Core type t [@@deriving sexp_of] include Comparable.S with type t := t include Stringable.S with type t := t * AES-128 CTS mode with 96 - bit SHA-1 HMAC val aes128_cts_hmac_sha1_96 : t * AES-256 CTS mode with 96 - bit SHA-1 HMAC val aes256_cts_hmac_sha1_96 : t * RC4 with HMAC val arcfour_hmac : t val of_int...
a50fe1a111d5a44b1628fb3536dd61115009dbc1670fcf12cd9b3255b38d54c9
finkel-lang/finkel
Finkel.hs
# LANGUAGE CPP # | Module re - exporting runtime dependency for kernel programs . -- This module exports types and functions for writing kernel -- programs, with quotes, quasi-quotes, unquotes, unquote-splicings, and -- macros. -- module Language.Finkel ( -- * Form Atom(..) , Form(..) , LForm(..) ...
null
https://raw.githubusercontent.com/finkel-lang/finkel/dd4f25f30dd02f90707b2d2332eb2fb5be4e5bdd/finkel-kernel/src/Language/Finkel.hs
haskell
programs, with quotes, quasi-quotes, unquotes, unquote-splicings, and macros. * Form * Macro * Exceptions
# LANGUAGE CPP # | Module re - exporting runtime dependency for kernel programs . This module exports types and functions for writing kernel module Language.Finkel ( Atom(..) , Form(..) , LForm(..) , Code , unCode , Homoiconic(..) , fromCode , QuoteFn , qSymbol , qChar , qString , qI...
12dbf8dad0ca2cfbc349a53ac7bb8bce423407cf3021991d9be30bd9588e9c34
fission-codes/fission
Error.hs
module Web.UCAN.Proof.Error (Error (..)) where import RIO import qualified Web.UCAN.Resolver as JWT.Resolver data Error = InvalidSignatureChain | ScopeOutOfBounds | PotencyEscelation | TimeNotSubset | MissingExpectedFact | ResolverError JWT.Resolver.Error deriving (Show, Eq, Exception) insta...
null
https://raw.githubusercontent.com/fission-codes/fission/ae177407dccc20be67948a901956b99f40d37ac8/hs-ucan/library/Web/UCAN/Proof/Error.hs
haskell
module Web.UCAN.Proof.Error (Error (..)) where import RIO import qualified Web.UCAN.Resolver as JWT.Resolver data Error = InvalidSignatureChain | ScopeOutOfBounds | PotencyEscelation | TimeNotSubset | MissingExpectedFact | ResolverError JWT.Resolver.Error deriving (Show, Eq, Exception) insta...
37f93f6a251d3557e68bed4832c7a67839cb0c8c141635891277d369d78a9c23
theodormoroianu/SecondYearCourses
HaskellChurch_20210415103113.hs
{-# LANGUAGE RankNTypes #-} module HaskellChurch where newtype CBool = CBool {cIf :: forall t. t -> t -> t} instance Show CBool where show b = show $ cIf b True False
null
https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/5e359e6a7cf588a527d27209bf53b4ce6b8d5e83/FLP/Laboratoare/Lab%209/.history/HaskellChurch_20210415103113.hs
haskell
# LANGUAGE RankNTypes #
module HaskellChurch where newtype CBool = CBool {cIf :: forall t. t -> t -> t} instance Show CBool where show b = show $ cIf b True False
583764b646f7570c93fb470ae76bb11a4831b7a342b414a14b580b4b159b10dc
lambdaisland/kaocha
random.clj
(ns kaocha.random) (defn rng [seed] (let [rng (java.util.Random. seed)] (fn [& _] (.nextInt rng)))) (defn randomize-tests [seed ns->tests] (let [next-int (rng seed) ns->tests' (->> ns->tests (map (fn [[k v]] [k (sort-by str v)])) (sort-by first))] (-...
null
https://raw.githubusercontent.com/lambdaisland/kaocha/8f18babb732b21e7fb2231e44be4d972c7ab22bc/src/kaocha/random.clj
clojure
(ns kaocha.random) (defn rng [seed] (let [rng (java.util.Random. seed)] (fn [& _] (.nextInt rng)))) (defn randomize-tests [seed ns->tests] (let [next-int (rng seed) ns->tests' (->> ns->tests (map (fn [[k v]] [k (sort-by str v)])) (sort-by first))] (-...
ce96bce3f7af66d5160ac4573553b5de47b1409845ca8dab7736a0debb9c74a6
tweag/ormolu
complete.hs
# A , B , C : : Foo # #-} {-# COMPLETE A , B #-} # ComPlETE A , B , C : : Foo # A , B, C :: Foo#-}
null
https://raw.githubusercontent.com/tweag/ormolu/34bdf62429768f24b70d0f8ba7730fc4d8ae73ba/data/examples/declaration/signature/complete/complete.hs
haskell
# COMPLETE A , B #
# A , B , C : : Foo # #-} # ComPlETE A , B , C : : Foo # A , B, C :: Foo#-}
74a2f1a2c6b5adec7f6127082ded62e32f98d45ed2a0361a6715746641595e50
ianmbloom/gudni
Angle.hs
# LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # ----------------------------------------------------------------------------- -- | -- Module : Graphics.Gudni.Figure.Angle Copyright : ( c ) 2019 -- License : BSD-style (see the file libraries/base/LICENSE) -- Maintainer : -- St...
null
https://raw.githubusercontent.com/ianmbloom/gudni/fa69f1bf08c194effca05753afe5455ebae51234/src/Graphics/Gudni/Figure/Angle.hs
haskell
--------------------------------------------------------------------------- | Module : Graphics.Gudni.Figure.Angle License : BSD-style (see the file libraries/base/LICENSE) Stability : experimental Portability : portable ----------------------------------------------------------------------------...
# LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # Copyright : ( c ) 2019 Maintainer : Mainly a wrapper around Diagrams . Angle with some additional functions . module Graphics.Gudni.Figure.Angle ( Angle , cosA , sinA , tanA , (@@) , deg , rad , turn , fullTurn , hal...
aeb0c96e7be599436419e681846c34c639377eaf6f2f101414a6ad38e1bd0cd0
OCADml/OSCADml
resampled_path.ml
(** {0 Path resampling and scaling/twisting sweeps} *) open OCADml open OSCADml * Oftentimes , we would just like to define our paths without colinear points , such that it only consists of corners . However , some applications call for more fine sampling , and in those times we can reach for { { ! OCADml...
null
https://raw.githubusercontent.com/OCADml/OSCADml/a1d5e9d6aa9f703e0a7eb419128593ef9c694072/examples/resampled_path.ml
ocaml
* {0 Path resampling and scaling/twisting sweeps}
open OCADml open OSCADml * Oftentimes , we would just like to define our paths without colinear points , such that it only consists of corners . However , some applications call for more fine sampling , and in those times we can reach for { { ! OCADml.Path3.resample } [ Path3.resample ] } or { { ! ...
f5e5c36fcc0ff7943aabdf642c27ef91e4fe2723e7aff0fe3c6e8f8e82bd7450
Ericson2314/hasnip
ServerList.hs
module HaSnip.ServerList (run) where import Prelude hiding (concat) import Control.Monad import Data.List (foldl') import Data.Maybe import Data.Aeson import Data.Aeson.Types import Data.Foldable (concat) import Network.URI import Network.HTTP import HaSnip.ServerList.Parse getBnS :: AoSVersion -> URI getBnS gam...
null
https://raw.githubusercontent.com/Ericson2314/hasnip/bf85ae6dec4790067e9be0a998461b9950e7a521/src/HaSnip/ServerList.hs
haskell
module HaSnip.ServerList (run) where import Prelude hiding (concat) import Control.Monad import Data.List (foldl') import Data.Maybe import Data.Aeson import Data.Aeson.Types import Data.Foldable (concat) import Network.URI import Network.HTTP import HaSnip.ServerList.Parse getBnS :: AoSVersion -> URI getBnS gam...
39c1876e6d9851c0c63962bc4a5645f04f58b86e4f24a1b0391a8ddf7295c923
greghendershott/markdown
parsack.rkt
Copyright ( c ) 2013 - 2022 by . SPDX - License - Identifier : BSD-2 - Clause #lang racket/base (require (for-syntax racket/base) racket/format racket/function racket/list racket/match (only-in parsack [parser-compose pdo] ;; More concise, less inde...
null
https://raw.githubusercontent.com/greghendershott/markdown/34ada7458fad51d3a5e0516352f8bd399c517140/markdown/parsack.rkt
racket
More concise, less indent " "
Copyright ( c ) 2013 - 2022 by . SPDX - License - Identifier : BSD-2 - Clause #lang racket/base (require (for-syntax racket/base) racket/format racket/function racket/list racket/match (only-in parsack >>= >> <or> try <?> choice $e...
5974bbb21445d6c0b7b7911a4487bdfc004be0619e45dab45783d63cc170e8a8
haskell/haskell-language-server
AutoPatSynUse.hs
# LANGUAGE PatternSynonyms # pattern JustSingleton :: a -> Maybe [a] pattern JustSingleton a <- Just [a] amIASingleton :: Maybe [a] -> Maybe a amIASingleton (JustSingleton a) = _
null
https://raw.githubusercontent.com/haskell/haskell-language-server/f3ad27ba1634871b2240b8cd7de9f31b91a2e502/plugins/hls-tactics-plugin/new/test/golden/AutoPatSynUse.hs
haskell
# LANGUAGE PatternSynonyms # pattern JustSingleton :: a -> Maybe [a] pattern JustSingleton a <- Just [a] amIASingleton :: Maybe [a] -> Maybe a amIASingleton (JustSingleton a) = _
e962d74271d3e0fa02eee7175c7bab10eaa39413252637bdcd4a611a2f514b1e
JustusAdam/language-haskell
BlockComments.hs
SYNTAX TEST " source.haskell " " Intervening block comments should n't affect highlighting " data A ^ storage.type.haskell {- comment line not gobbled up by the preprocessor over multiple lines -} -- <~~---------------------- comment.block.haskell = A -- ^ constant.other.haskell data B = ^...
null
https://raw.githubusercontent.com/JustusAdam/language-haskell/c9ee1b3ee166c44db9ce350920ba502fcc868245/test/tests/BlockComments.hs
haskell
comment line not gobbled up by the preprocessor over multiple lines <~~---------------------- comment.block.haskell ^ constant.other.haskell comment line not gobbled up by the preprocessor <~~----------------------------------------------------- comment.block.haskell ^ constant.other.haskell comment line...
SYNTAX TEST " source.haskell " " Intervening block comments should n't affect highlighting " data A ^ storage.type.haskell = A data B = ^ storage.type.haskell B newtype A = ^ storage.type.haskell A newtype B = ^ storage.type.haskell B data Foo where ...
4f753e9d044c702104a05503ee00a59346303ee4492367a5aa8336f22877b04f
jacquev6/General
ToStandardNumbers.ml
#include "../Generated/Traits/ToStandardNumbers.ml" module Tests = struct include Tests_ module MakeExamples(M: Testable.S0)(E: Examples.S0 with type t := M.t) = E module MakeTests(M: Testable.S0)(E: Examples.S0 with type t := M.t) = struct let tests = [] end include MakeMakers(MakeExamples)(MakeTests...
null
https://raw.githubusercontent.com/jacquev6/General/5237123668e939c0cb83aa3e1c4756473336bc7e/src/Traits/ToStandardNumbers.ml
ocaml
#include "../Generated/Traits/ToStandardNumbers.ml" module Tests = struct include Tests_ module MakeExamples(M: Testable.S0)(E: Examples.S0 with type t := M.t) = E module MakeTests(M: Testable.S0)(E: Examples.S0 with type t := M.t) = struct let tests = [] end include MakeMakers(MakeExamples)(MakeTests...
01d5a815bb39f5b537df4e4c35ee7f05a70fb8e1a318dc89f084a145f303e921
rtrusso/scp
linkage.scm
(define (link-register) '(reg link)) (define (env-register) '(reg this)) (define (scheme-preserved-registers) (append (target-modifies (link-register)) (target-modifies (env-register)))) (define (scheme-continue-linkage n-args) `(continue ,n-args)) (define (scheme-continue-lin...
null
https://raw.githubusercontent.com/rtrusso/scp/2051e76df14bd36aef81aba519ffafa62b260f5c/src/scheme/compiler/linkage.scm
scheme
(define (link-register) '(reg link)) (define (env-register) '(reg this)) (define (scheme-preserved-registers) (append (target-modifies (link-register)) (target-modifies (env-register)))) (define (scheme-continue-linkage n-args) `(continue ,n-args)) (define (scheme-continue-lin...
26021672e0e7b627ee492a3d180941e68f6d6fa7662149b566e9fcdc8c1cd653
tqtezos/stablecoin
AsRPC.hs
SPDX - FileCopyrightText : 2022 Oxhead Alpha SPDX - License - Identifier : MIT # OPTIONS_GHC -Wno - orphans # module Lorentz.Contracts.Test.AsRPC () where import Lorentz.Contracts.Spec.FA2Interface (BalanceResponseItem, FA2OwnerHook) import Test.Cleveland (HasRPCRepr(..)) instance HasRPCRepr BalanceResponseI...
null
https://raw.githubusercontent.com/tqtezos/stablecoin/0780ec8f3784c107742b266fcd11ee8ee5442ff6/haskell/test/Lorentz/Contracts/Test/AsRPC.hs
haskell
SPDX - FileCopyrightText : 2022 Oxhead Alpha SPDX - License - Identifier : MIT # OPTIONS_GHC -Wno - orphans # module Lorentz.Contracts.Test.AsRPC () where import Lorentz.Contracts.Spec.FA2Interface (BalanceResponseItem, FA2OwnerHook) import Test.Cleveland (HasRPCRepr(..)) instance HasRPCRepr BalanceResponseI...
b8f319efd36a96b6c51501e9e82bbbea34e94cbffff6749ae04dd793b7b92ce9
tonyfloatersu/solution-haskell-craft-of-FP
Chapter_17_my_note.hs
module Chapter_17_my_note where import Data.List ( (\\) ) import SetADT import Relation import Data.Char pairs :: [a] -> [b] -> [(a, b)] pairs xs ys = [(x, y) | x <- xs, y <- ys] triangle :: Int -> [(Int, Int)] triangle n = [(x, y) | x <- [1 .. n], y <- [1 .. x]] pyTrip...
null
https://raw.githubusercontent.com/tonyfloatersu/solution-haskell-craft-of-FP/0d4090ef28417c82a7b01e4a764f657641cb83f3/Chapter_17_my_note.hs
haskell
= [([], [x]), ([x], [])] .... if the p2 rem1 is void [], then the result is []
module Chapter_17_my_note where import Data.List ( (\\) ) import SetADT import Relation import Data.Char pairs :: [a] -> [b] -> [(a, b)] pairs xs ys = [(x, y) | x <- xs, y <- ys] triangle :: Int -> [(Int, Int)] triangle n = [(x, y) | x <- [1 .. n], y <- [1 .. x]] pyTrip...
7913fffdbfc277efd54bc653cc147a27406e46072827b6ad9877aaae417a0330
FlowerWrong/mblog
interact1.erl
%% --- Excerpted from " Programming Erlang , Second Edition " , published by The Pragmatic Bookshelf . %% Copyrights apply to this code. It may not be used to create training material, %% courses, books, articles, and the like. Contact us if you are in doubt. %% We make no guarantees that this code is fit for...
null
https://raw.githubusercontent.com/FlowerWrong/mblog/3233ede938d2019a7b57391405197ac19c805b27/categories/erlang/demo/jaerlang2_code/websockets/interact1.erl
erlang
--- Copyrights apply to this code. It may not be used to create training material, courses, books, articles, and the like. Contact us if you are in doubt. We make no guarantees that this code is fit for any purpose. Visit for more book information. ---
Excerpted from " Programming Erlang , Second Edition " , published by The Pragmatic Bookshelf . -module(interact1). -export([start/1]). start(Browser) -> running(Browser). running(Browser) -> receive {Browser, #{entry => <<"input">>, txt => Bin} } Time = clock1:current_time(), Browser ! #{cmd => ...
0c1241f6b841ee55bf6ad90854ac35d7a2b7c827aaedf1f1cb37d2dbe1c39c36
dariusf/ppx_polyprint
myocamlbuild.ml
open Ocamlbuild_plugin let () = dispatch ( function | After_rules -> flag ["ocaml"; "compile"; "ppx_native"] & S [A "-ppx"; A "src/ppx_polyprint.native"] | _ -> ())
null
https://raw.githubusercontent.com/dariusf/ppx_polyprint/6cd87e948a27888d251f851424ad8bd5545989ad/myocamlbuild.ml
ocaml
open Ocamlbuild_plugin let () = dispatch ( function | After_rules -> flag ["ocaml"; "compile"; "ppx_native"] & S [A "-ppx"; A "src/ppx_polyprint.native"] | _ -> ())
70188f2bb6732382c5f659f617ce1334d4b41148251e12c4ecb361e78dcd86d6
eugeneia/athens
order.lisp
(in-package #:jpl-util) (defmacro lesser? ((value1 value2 least-possible-value) &body body) "Evaluates to whether VALUE1 is less than VALUE2 when there is the possibility that either are EQ to LEAST-POSSIBLE-VALUE. One value is always less than the other when it is EQ to LEAST-POSSIBLE-VALUE and the other is not. ...
null
https://raw.githubusercontent.com/eugeneia/athens/cc9d456edd3891b764b0fbf0202a3e2f58865cbf/quicklisp/dists/quicklisp/software/cl-jpl-util-20151031-git/order.lisp
lisp
OTHERWISE-BODY Avoid an unnecessary call to the test function. ~]less than Y ~ ~]less than X."
(in-package #:jpl-util) (defmacro lesser? ((value1 value2 least-possible-value) &body body) "Evaluates to whether VALUE1 is less than VALUE2 when there is the possibility that either are EQ to LEAST-POSSIBLE-VALUE. One value is always less than the other when it is EQ to LEAST-POSSIBLE-VALUE and the other is not. ...
3afbcfb693d9bea6af5e0acecdc2905089f178a3147fa0fdc636f07a6cac0eaa
MastodonC/kixi.hecuba
datasets.cljs
(ns kixi.hecuba.tabs.hierarchy.datasets (:require-macros [cljs.core.async.macros :refer [go go-loop]]) (:require [cljs.core.async :refer [<! >! chan put!]] [om.core :as om :include-macros true] [sablono.core :as html :refer-macros [html]] [kixi.hecuba.bootstrap :refer (static-tex...
null
https://raw.githubusercontent.com/MastodonC/kixi.hecuba/467400bbe670e74420a2711f7d49e869ab2b3e21/src/cljs/kixi/hecuba/tabs/hierarchy/datasets.cljs
clojure
; HELPERS ;; DROPDOWNS ;; Edit dataset deselect and clear edited cursor Add dataset Display existing datasets Entire datasets tab view Buttons Add...
(ns kixi.hecuba.tabs.hierarchy.datasets (:require-macros [cljs.core.async.macros :refer [go go-loop]]) (:require [cljs.core.async :refer [<! >! chan put!]] [om.core :as om :include-macros true] [sablono.core :as html :refer-macros [html]] [kixi.hecuba.bootstrap :refer (static-tex...
7c398b66a3e5b04dd61caeb1996b4eeb4b06ee1dc53c4cc7fa72f9b2bf02c35a
gafiatulin/codewars
SleighAuthentication.hs
-- Sleigh Authentication module SleighAuthentication where authenticate :: String -> String -> Bool authenticate "Santa Claus" "Ho Ho Ho!" = True authenticate _ _ = False
null
https://raw.githubusercontent.com/gafiatulin/codewars/535db608333e854be93ecfc165686a2162264fef/src/8%20kyu/SleighAuthentication.hs
haskell
Sleigh Authentication
module SleighAuthentication where authenticate :: String -> String -> Bool authenticate "Santa Claus" "Ho Ho Ho!" = True authenticate _ _ = False
f4d1493b294e096a2e80fea670725997187ed90ad0c8c082155fa965994a791a
gojek/ziggurat
consumer_test.clj
(ns ziggurat.kafka-consumer.consumer-test (:require [clojure.test :refer [deftest is testing use-fixtures]]) (:require [ziggurat.config :refer [ziggurat-config]] [ziggurat.fixtures :as fix] [ziggurat.kafka-consumer.consumer :refer [create-consumer]]) (:import (org.apache.kafka.clients.cons...
null
https://raw.githubusercontent.com/gojek/ziggurat/1ccb2f064007928911a244d2c71f8df274a54fa7/test/ziggurat/kafka_consumer/consumer_test.clj
clojure
(ns ziggurat.kafka-consumer.consumer-test (:require [clojure.test :refer [deftest is testing use-fixtures]]) (:require [ziggurat.config :refer [ziggurat-config]] [ziggurat.fixtures :as fix] [ziggurat.kafka-consumer.consumer :refer [create-consumer]]) (:import (org.apache.kafka.clients.cons...
096948cd8d4069be1d6a06ed484ca7aa393ab9962cf94c7e759ce8daacb90cdf
fulcro-legacy/fulcro-incubator
project.clj
(defproject fulcrologic/fulcro-incubator "0.0.39" :description "Tools for Fulcro apps" :url "-legacy/fulcro-incubator" :license {:name "MIT" :url ""} :plugins [[lein-tools-deps "0.4.3"]] :middleware [lein-tools-deps.plugin/resolve-dependencies-with-deps-edn] :lein-tools-deps/config {:config-files [:install...
null
https://raw.githubusercontent.com/fulcro-legacy/fulcro-incubator/72885fcc944e16bf98aa42b5d1e518c0ce4574db/project.clj
clojure
(defproject fulcrologic/fulcro-incubator "0.0.39" :description "Tools for Fulcro apps" :url "-legacy/fulcro-incubator" :license {:name "MIT" :url ""} :plugins [[lein-tools-deps "0.4.3"]] :middleware [lein-tools-deps.plugin/resolve-dependencies-with-deps-edn] :lein-tools-deps/config {:config-files [:install...
00673dfafe892c3a88fe039c2392ffe42e76944303dc89c680647f285fe084d0
karamellpelle/grid
State.hs
grid is a game written in Haskell Copyright ( C ) 2018 -- -- This file is part of grid. -- -- grid 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 optio...
null
https://raw.githubusercontent.com/karamellpelle/grid/56729e63ed6404fd6cfd6d11e73fa358f03c386f/designer/source/Game/LevelPuzzleMode/Iteration/State.hs
haskell
This file is part of grid. grid is free software: you can redistribute it and/or modify (at your option) any later version. grid 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 GN...
grid is a game written in Haskell Copyright ( C ) 2018 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 module Game.LevelPuzzleMode.Iteration.State ( ...
aa98be4405286a6b9c578b14a915380d1a1c2ea661d71a303e09f3e4e4c2b37e
uhc/uhc
CoreLift.hs
----------------------------------------------------------------------- The Core Assembler . Copyright 2001 , . All rights reserved . This file is distributed under the terms of the GHC license . For more information , see the file " license.txt " , which is included in the distribution . ...
null
https://raw.githubusercontent.com/uhc/uhc/8eb6914df3ba2ba43916a1a4956c6f25aa0e07c5/EHC/src/lvm/Core/CoreLift.hs
haskell
--------------------------------------------------------------------- --------------------------------------------------------------------- ----------------------------------------------------------------------} -------------------------------------------------------------- After this pass, each binding has either...
The Core Assembler . Copyright 2001 , . All rights reserved . This file is distributed under the terms of the GHC license . For more information , see the file " license.txt " , which is included in the distribution . The Core Assembler. Copyright 2001, Daan Leijen. All rights reserv...
580e0175a1822574b9049d5b6cef146dc9e02a25b0e512a84a490aef70fa40fa
facebook/duckling
Corpus.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. {-# LANGUAGE OverloadedStrings #-} # LANGUAGE NumericUnderscores # module Duckling.Numeral.ES.Corpus (corpus...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/Numeral/ES/Corpus.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. # LANGUAGE OverloadedStrings #
Copyright ( c ) 2016 - present , Facebook , Inc. # LANGUAGE NumericUnderscores # module Duckling.Numeral.ES.Corpus (corpus) where import Data.String import Prelude import Duckling.Locale import Duckling.Numeral.Types import Duckling.Resolve import Duckling.Testing.Types corpus :: Corpus corpus = (testContext {...
8ccbf8257d5cc01235841d194e06d3d3dde8045a62124601908473510cce6452
SKA-ScienceDataProcessor/RC
Setup.hs
-- | A custom build script for CUDA support. -- Copyright ( C ) 2014 Braam Research , LLC . module Main(main) where import Control.Applicative import Control.Monad import Distribution.Simple import Distribution.Simple.BuildPaths (exeExtension) import Distribution.Simple.Configure (configure) import Distribution.Si...
null
https://raw.githubusercontent.com/SKA-ScienceDataProcessor/RC/1b5e25baf9204a9f7ef40ed8ee94a86cc6c674af/MS5/Setup.hs
haskell
| A custom build script for CUDA support. options from the command line. The syntax is slightly non-obious: $ cabal configure -- --with-nvcc=[...] --nvcc-options=[...] Note the extra "--". Irrespectively of whether there are actual CUDA sources or not, found by the linker. We simply assume that it sits at a ...
Copyright ( C ) 2014 Braam Research , LLC . module Main(main) where import Control.Applicative import Control.Monad import Distribution.Simple import Distribution.Simple.BuildPaths (exeExtension) import Distribution.Simple.Configure (configure) import Distribution.Simple.Setup import Distribution.Simple.LocalBuild...
c71287e54c97d5e609efb87b902b449a7db07f638daccf339d9697ace202c93a
clj-commons/cljss
background.clj
(ns cljss.css.props.background (:require [clojure.spec.alpha :as s] [cljss.css.units :as units] [cljss.css.colors :as colors])) (s/def ::color (s/or :value ::colors/color :keyword #{:inherit :transparent})) (s/def ::image (s/or :value string? :keyword #{:inherit :none})) ...
null
https://raw.githubusercontent.com/clj-commons/cljss/d2856688cf650babe518c798cf20e6bdb4227bb7/src/cljss/css/props/background.clj
clojure
(ns cljss.css.props.background (:require [clojure.spec.alpha :as s] [cljss.css.units :as units] [cljss.css.colors :as colors])) (s/def ::color (s/or :value ::colors/color :keyword #{:inherit :transparent})) (s/def ::image (s/or :value string? :keyword #{:inherit :none})) ...
3f3296bd315d4a6460f1025c49b02f3bab51c32fe2e4fc7f9d4f87f9d7f346d0
richhickey/clojure-contrib
zip_filter.clj
Copyright ( c ) , April 2008 . All rights reserved . ; The use and distribution terms for this software are covered by the ; Eclipse Public License 1.0 (-1.0.php) ; which can be found in the file epl-v10.html at the root of this distribution. ; By using this software in any fashion, you are agreeing to be...
null
https://raw.githubusercontent.com/richhickey/clojure-contrib/40b960bba41ba02811ef0e2c632d721eb199649f/src/main/clojure/clojure/contrib/zip_filter.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) , April 2008 . All rights reserved . (ns #^{:author "Chris Houser", :doc "System for filtering trees and nodes generated by zip.clj in general, and xml trees in particular. "} clojure.contrib.zip-filter (:refer-clojure :exclude (descendants ancestors)) (:require [clojure.zip :as zi...
d482f8f87867b2be259773d3978acd9eeaec2095df7271f4f751c67e875982c9
Novus-School/novus
solar_system.clj
(ns novus.samples.solar-system (:require [datomic.client.api :as d])) Step 1 : Create a client for the Datomic System ) using the d / client function (def client (d/client {:server-type :dev-local :system "datomic-samples"})) ;; Aside (def dbs (d/list-databases client {})) Step 2 : Conn...
null
https://raw.githubusercontent.com/Novus-School/novus/c65b37a654173df52084253651edc87033409f4b/novus/src/main/novus/samples/solar_system.clj
clojure
Aside This will be used to communicate with database when making transactions and queries Aside: Play around Looks like nothing exists yet lets add some data -labs/day-of-datomic-cloud/blob/master/datasets/solar-system.repl Step 3 - Define solar system schema Give me all the list of object that has the attribute...
(ns novus.samples.solar-system (:require [datomic.client.api :as d])) Step 1 : Create a client for the Datomic System ) using the d / client function (def client (d/client {:server-type :dev-local :system "datomic-samples"})) (def dbs (d/list-databases client {})) Step 2 : Connect to a ...
61962bc950c643b32cd6f55224157f2f0b007ec85fa13f3bc8da453962f1d88f
cedlemo/OCaml-GI-ctypes-bindings-generator
Level_bar_mode.ml
open Ctypes open Foreign type t = Continuous | Discrete let of_value v = if v = Unsigned.UInt32.of_int 0 then Continuous else if v = Unsigned.UInt32.of_int 1 then Discrete else raise (Invalid_argument "Unexpected Level_bar_mode value") let to_value = function | Continuous -> Unsigned.UInt32.of_int 0 | Disc...
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Level_bar_mode.ml
ocaml
open Ctypes open Foreign type t = Continuous | Discrete let of_value v = if v = Unsigned.UInt32.of_int 0 then Continuous else if v = Unsigned.UInt32.of_int 1 then Discrete else raise (Invalid_argument "Unexpected Level_bar_mode value") let to_value = function | Continuous -> Unsigned.UInt32.of_int 0 | Disc...
6131566614729fbfa4ad0248dc6e685a0cd856a59067a8c558e083676349a939
shoreleave/shoreleave-pubsub
simple.cljs
(ns shoreleave.pubsubs.simple "An extended pub/sub implementation built on Google's PubSub Object" (:require [goog.pubsub.PubSub :as pubsub] [shoreleave.pubsubs.protocols :as ps-protocols])) Below is an implementation of IMessageBrokerBus built upon Google Closure 's [ PubSub object]( - library.goo...
null
https://raw.githubusercontent.com/shoreleave/shoreleave-pubsub/8ee8c778e1e806b0197c2eb1490c9e6775a06121/src/shoreleave/pubsubs/simple.cljs
clojure
(ns shoreleave.pubsubs.simple "An extended pub/sub implementation built on Google's PubSub Object" (:require [goog.pubsub.PubSub :as pubsub] [shoreleave.pubsubs.protocols :as ps-protocols])) Below is an implementation of IMessageBrokerBus built upon Google Closure 's [ PubSub object]( - library.goo...
da171d698cc8058fb3123782841322708b35e2e71d3f8e5e0e23e033c761498c
input-output-hk/cardano-addresses
CborSpec.hs
# LANGUAGE DataKinds # # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE RecordWildCards # # LANGUAGE TypeApplications # # OPTIONS_GHC -fno - warn - orphans # # O...
null
https://raw.githubusercontent.com/input-output-hk/cardano-addresses/984b07911ebd0b56c2ce4c60c6db81221287074c/core/test/Cardano/Codec/CborSpec.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # ------------------------------------------------------------------------------ Golden tests for Address derivation path ------------------------------------------------------------------------------ An aribtrary mnemonic sentence for the tests ...
# LANGUAGE DataKinds # # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE RecordWildCards # # LANGUAGE TypeApplications # # OPTIONS_GHC -fno - warn - orphans # # OPTIONS_GHC -fno - warn - deprecations # module Cardano.Codec.C...
84c01ec6709c6447a02b68605184f709f65927df98007f65efda93d51b4cc431
mrnugget/scheme_x86
test-heap-allocation.scm
(add-tests-with-string-output "pairs" [(prim-apply cons 1 2) => "(1 . 2)\n"] [(prim-apply cons () ()) => "(())\n"] [(prim-apply cons 1 (prim-apply cons 2 3)) => "(1 2 . 3)\n"] [(prim-apply cons 1 (prim-apply cons 2 (prim-apply cons 3 4))) => "(1 2 3 . 4)\n"] [(prim-apply car (prim-apply cons 1 2)) => "1\n"] ...
null
https://raw.githubusercontent.com/mrnugget/scheme_x86/2a02cde1e482bc4be73ad460c97d643a4ea0e2e0/src/tests/test-heap-allocation.scm
scheme
(add-tests-with-string-output "pairs" [(prim-apply cons 1 2) => "(1 . 2)\n"] [(prim-apply cons () ()) => "(())\n"] [(prim-apply cons 1 (prim-apply cons 2 3)) => "(1 2 . 3)\n"] [(prim-apply cons 1 (prim-apply cons 2 (prim-apply cons 3 4))) => "(1 2 3 . 4)\n"] [(prim-apply car (prim-apply cons 1 2)) => "1\n"] ...
91e655ed72c2f9e5be4c05a98cb6e83130eebf5a302d58cccf9c2af52c12b469
fossas/fossa-cli
PomFile.hs
# LANGUAGE RecordWildCards # module Strategy.Maven.Pom.PomFile -- TODO: sort ( Pom (..), RawDependency (..), RawParent (..), RawPom (..), MavenCoordinate (..), MvnDepBody (..), PomLicense (..), Group, Artifact, validatePom, ) where import Control.Applicative (optional, (<|>)) import Data.Aeson (...
null
https://raw.githubusercontent.com/fossas/fossa-cli/219bdc6f38d401df2bdb7991114c54083a75f56b/src/Strategy/Maven/Pom/PomFile.hs
haskell
TODO: sort - Validating POM files TODO: validation errors? Build a full coordinate from a pom, falling back to the group/version from the parent From the docs: "although, groupId and version need not be explicitly defined if they are inherited from a parent" #Maven_Coordinates TODO: newtypes? left-biased, sim...
# LANGUAGE RecordWildCards # module Strategy.Maven.Pom.PomFile ( Pom (..), RawDependency (..), RawParent (..), RawPom (..), MavenCoordinate (..), MvnDepBody (..), PomLicense (..), Group, Artifact, validatePom, ) where import Control.Applicative (optional, (<|>)) import Data.Aeson (ToJSON, ToJSON...
5c4e085545b36d4ae74f8aee8de4064333d3618406c06a2ba64234b998439b31
adamwalker/dynamic-graph
RenderCairo.hs
| Render Cairo drawings with OpenGL . Useful for drawing axes . -} module Graphics.DynamicGraph.RenderCairo ( renderCairo ) where import Foreign.Storable import Foreign.Marshal.Array import Graphics.Rendering.OpenGL import Graphics.GLUtil import Graphics.Rendering.Cairo hiding (height, width) import Paths...
null
https://raw.githubusercontent.com/adamwalker/dynamic-graph/7ca6bbedbeeb8fbd2b24a007f4ebad01687747c4/Graphics/DynamicGraph/RenderCairo.hs
haskell
^ X resolution ^ Y resolution Load the shaders Set stuff
| Render Cairo drawings with OpenGL . Useful for drawing axes . -} module Graphics.DynamicGraph.RenderCairo ( renderCairo ) where import Foreign.Storable import Foreign.Marshal.Array import Graphics.Rendering.OpenGL import Graphics.GLUtil import Graphics.Rendering.Cairo hiding (height, width) import Paths...
307ba495df00bf45d3ebd307346554b6e410d309428ee861007ee404a35bdbd1
mmottl/gsl-ocaml
discover.ml
module Option = struct include Option let value_map ~default ~f = function | Some x -> f x | None -> default end (* Option *) module List = struct include List let find_map t ~f = let rec loop = function | [] -> None | x :: l -> match f x with | None -> loop l ...
null
https://raw.githubusercontent.com/mmottl/gsl-ocaml/76f8d93cccc1f23084f4a33d3e0a8f1289450580/src/config/discover.ml
ocaml
Option List
module Option = struct include Option let value_map ~default ~f = function | Some x -> f x | None -> default module List = struct include List let find_map t ~f = let rec loop = function | [] -> None | x :: l -> match f x with | None -> loop l | Some _ as...
225d6c48e6cfaee37749ad230f54505b961d7ae8d630377926e72c857f3a1a18
hstreamdb/hstream
Internal.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # # LANGUAGE StrictData # module HStream.Processing.Stream.Internal ( InternalStreamBuilder (..), Stream (..), mkStream, mkInternalStreamBuilder, mkInternalProcessorName, mkInternalStoreName, ...
null
https://raw.githubusercontent.com/hstreamdb/hstream/35b2284d122202a6ad7efc98e6c6304b68a0e49d/hstream-processing/src/HStream/Processing/Stream/Internal.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE NoImplicitPrelude # # LANGUAGE RecordWildCards # # LANGUAGE StrictData # module HStream.Processing.Stream.Internal ( InternalStreamBuilder (..), Stream (..), mkStream, mkInternalStreamBuilder, mkInternalProcessorName, mkInternalStoreName, addSourceInternal, addProces...
3c354a0b4d89ac3a758cfc8775a51244bcf6f758dca81aeb48d573e9c317013c
blindglobe/clocc
sbcl.lisp
;;; -*- Mode: Lisp -*- ;;; sbcl.lisp -- SBCL implementation dependencies . Copyright ( c ) 2000 - 2005 , all rights reserved . ;;; This software is released under the terms of the GNU Lesser General ;;; Public License (LGPL, see file COPYING for details). (in-package "CL.ENV") ;;; Directory utilities (defmet...
null
https://raw.githubusercontent.com/blindglobe/clocc/a50bb75edb01039b282cf320e4505122a59c59a7/src/port/environment/impl-dependent/sbcl.lisp
lisp
-*- Mode: Lisp -*- sbcl.lisp -- This software is released under the terms of the GNU Lesser General Public License (LGPL, see file COPYING for details). Directory utilities end of file -- sbcl.lisp --
SBCL implementation dependencies . Copyright ( c ) 2000 - 2005 , all rights reserved . (in-package "CL.ENV") (defmethod current-directory-pathname ((cl-implementation cl.env:sbcl)) (pathname (ext:default-directory))) (defmethod change-current-directory ((cl-implementation cl.env:sbcl) (new-dir s...
ff1fb14a1e61c24f91c3ca59ed7203314fc89d6e95d81c9b23ca23b3ababb61d
broadinstitute/wfl
bigquery_test.clj
(ns wfl.unit.google.bigquery-test (:require [clojure.test :refer [deftest is]] [clojure.data.csv :as csv] [wfl.service.google.bigquery :as bigquery])) ;; mock output from bigquery/query-sync (def ^:private dr-view-content {:schema {:fields [{:name "test-name_id" :t...
null
https://raw.githubusercontent.com/broadinstitute/wfl/f6fc34e1a7bbb9588570d36c96f0d88e5e014a3d/api/test/wfl/unit/google/bigquery_test.clj
clojure
mock output from bigquery/query-sync
(ns wfl.unit.google.bigquery-test (:require [clojure.test :refer [deftest is]] [clojure.data.csv :as csv] [wfl.service.google.bigquery :as bigquery])) (def ^:private dr-view-content {:schema {:fields [{:name "test-name_id" :type "STRING" :mode "NULLABLE"} ...
027b094dbb0fafddc78971b5812574652d3e534a2ddd7575240f72bd7eafdaef
jjmrocha/kill-bill
kb_resource_sup.erl
%% Copyright 2013 %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicable law or agreed to in writing, software distributed under the ...
null
https://raw.githubusercontent.com/jjmrocha/kill-bill/1ba409c39524f2b47ff1338214bc9b4de3f2659e/src/kb_resource_sup.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing perm...
Copyright 2013 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(kb_resource_sup). -behaviour(supervisor). -export([init/1]). -export([start_link/0, start_resource_server/1]). -define(SERVER, {local, ?MODULE}). ...
6b2d53b397f787734208ba321a68c0cc584b273d76e97a3d7e122f1ef0080706
onedata/op-worker
file_local_blocks.erl
%%%------------------------------------------------------------------- @author ( C ) 2018 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%------------------------------------------------------------------- %%% @doc %%% Model for holding files' blocks. %...
null
https://raw.githubusercontent.com/onedata/op-worker/9e94ef0b27a79e32c1baf4c4650b04c1dcc89c21/src/modules/datastore/models/file/location/file_local_blocks.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- @doc Model for holding files' blocks. TODO VFS-6273 internal implementation (doc or links) should be hidden inside this module. @end -----------------------------------------...
@author ( C ) 2018 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . -module(file_local_blocks). -author("Michał Wrzeszcz"). -include("modules/datastore/datastore_models.hrl"). -include("modules/datastore/datastore_runner.hrl"). -include("proto/oneclient/common_mess...
fb69dd00a833457139b6b9fba122b891c683248d193d78386f11d5696df1433d
awslabs/s2n-bignum
secp256k1_jmixadd.ml
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved . * SPDX - License - Identifier : Apache-2.0 OR ISC * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 OR ISC *) (* =================================================================...
null
https://raw.githubusercontent.com/awslabs/s2n-bignum/824c15f908d7a343af1b2f378cfedd36e880bdde/arm/proofs/secp256k1_jmixadd.ml
ocaml
========================================================================= ========================================================================= *** print_literal_from_elf "arm/secp256k1/secp256k1_jmixadd.o";; *** arm_ADDS X9 X9 X9 arm_ADCS X11 X11 X11 arm_ADCS X11 X11 X14 arm_ADDS X13 X13 X11 arm_ADDS...
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved . * SPDX - License - Identifier : Apache-2.0 OR ISC * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 OR ISC *) Mixed addition in Jacobian coordinates for SECG secp256k1 curve . ...
c90dbfb457fd17b22d7b8725c03ffd20435536e0a8566967a9f3163f07b0b3af
hipsleek/hipsleek
cfsolver.ml
#include "xdebug.cppo" open VarGen open Globals open Gen module DD = Debug module CF = Cformula module CP = Cpure module MCP = Mcpure module C = Cast module I = Iast let get_equations_sets_x (f0 : CP.formula) (interest_vars:Cpure.spec_var list): (CP.b_formula list) = let rec helper f =match f with | CP.And (f1, f...
null
https://raw.githubusercontent.com/hipsleek/hipsleek/596f7fa7f67444c8309da2ca86ba4c47d376618c/bef_indent/cfsolver.ml
ocaml
Error.error_loc = no_pos; Error.error_text ="malfunction:get_equations_sets must return only bvars, inequalities and equalities"} Error.error_loc = no_pos;
#include "xdebug.cppo" open VarGen open Globals open Gen module DD = Debug module CF = Cformula module CP = Cpure module MCP = Mcpure module C = Cast module I = Iast let get_equations_sets_x (f0 : CP.formula) (interest_vars:Cpure.spec_var list): (CP.b_formula list) = let rec helper f =match f with | CP.And (f1, f...
e2e27ed1c87176d9b447cdbe4759be193cc233b6698693b9f9ba9fc88e857c08
lanl/APPFL
ST.hs
# LANGUAGE Unsafe # # LANGUAGE NoImplicitPrelude , MagicHash , UnboxedTuples , RankNTypes # {-# OPTIONS_HADDOCK hide #-} ----------------------------------------------------------------------------- -- | -- Module : GHC.ST Copyright : ( c ) The University of Glasgow , 1992 - 2002 -- License : see lib...
null
https://raw.githubusercontent.com/lanl/APPFL/0f29f390d4735e863904348711a48b8f38ca5d03/prelude/APPFL/ST.hs
haskell
# OPTIONS_HADDOCK hide # --------------------------------------------------------------------------- | Module : GHC.ST License : see libraries/base/LICENSE Maintainer : Stability : internal --------------------------------------------------------------------------- * Unsafe functions The stat...
# LANGUAGE Unsafe # # LANGUAGE NoImplicitPrelude , MagicHash , UnboxedTuples , RankNTypes # Copyright : ( c ) The University of Glasgow , 1992 - 2002 Portability : non - portable ( GHC Extensions ) The ' ST ' Monad . module APPFL.ST ( ST(..), STret(..), STRep, fixST, runST, runSTRep, ...
ee7e9af897afd0d71ec41a7be8d04cf1c73a8e7c83dc8c0e4049d3f72fe8ecac
typelead/etlas
Bench.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE RankNTypes #-} ----------------------------------------------------------------------------- -- | -- Module : Distribution.Simple.Bench Copyright : 2011 -- License : BSD3 -- -- Maintainer : -- Portability : portable -- -- This is the entry point into r...
null
https://raw.githubusercontent.com/typelead/etlas/bbd7c558169e1fda086e759e1a6f8c8ca2807583/etlas-cabal/Distribution/Simple/Bench.hs
haskell
# LANGUAGE RankNTypes # --------------------------------------------------------------------------- | Module : Distribution.Simple.Bench License : BSD3 Maintainer : Portability : portable This is the entry point into running the benchmarks in a built package. It performs the \"@.\/setup bench@\"...
# LANGUAGE FlexibleContexts # Copyright : 2011 module Distribution.Simple.Bench ( bench ) where import Prelude () import Distribution.Compat.Prelude import Distribution.Types.UnqualComponentName import qualified Distribution.PackageDescription as PD import Distribution.Simple.BuildPaths import Dist...