_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
63ea7735814d1c1328dd29d4a4e984cd277ab37a3ed4cd2af36850ec4768fe57
sealchain-project/sealchain
Context.hs
# LANGUAGE ExistentialQuantification # {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators #-} {-# OPTIONS -fno-warn-unused-top-binds #-} -- for lenses -- | Runtime context of node. module Pos.Context.Context ( HasNodeContext(..) , HasSscContext(..) , NodeContext (.....
null
https://raw.githubusercontent.com/sealchain-project/sealchain/e97b4bac865fb147979cb14723a12c716a62e51e/lib/src/Pos/Context/Context.hs
haskell
# LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # # OPTIONS -fno-warn-unused-top-binds # for lenses | Runtime context of node. -------------------------------------------------------------------------- -------------------------------------------------------------------------- ^ Context ne...
# LANGUAGE ExistentialQuantification # module Pos.Context.Context ( HasNodeContext(..) , HasSscContext(..) , NodeContext (..) , NodeParams(..) , BaseParams(..) , TxpGlobalSettings , StartTime(..) , BlockRetrievalQueueTag , BlockRetrievalQueue , C...
b63a7b44a0fe0e98044f24d33c5528261e4507ad6370ccc3d31175527490715a
clojure-interop/aws-api
AbstractAWSWAF.clj
(ns com.amazonaws.services.waf.AbstractAWSWAF "Abstract implementation of AWSWAF. Convenient method forms pass through to the corresponding overload that takes a request object, which throws an UnsupportedOperationException." (:refer-clojure :only [require comment defn ->]) (:import [com.amazonaws.services.waf ...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.waf/src/com/amazonaws/services/waf/AbstractAWSWAF.clj
clojure
(ns com.amazonaws.services.waf.AbstractAWSWAF "Abstract implementation of AWSWAF. Convenient method forms pass through to the corresponding overload that takes a request object, which throws an UnsupportedOperationException." (:refer-clojure :only [require comment defn ->]) (:import [com.amazonaws.services.waf ...
a2ef12bc00a8c71fa51df889404724c17c7fae73460969d637affe7e0f271d82
rowangithub/DOrder
parser.mli
type token = | AMPERAMPER | AMPERSAND | AND | AS | ASSERT | BACKQUOTE | BANG | BAR | BARBAR | BARRBRACKET | BEGIN | CHAR of (char) | CLASS | COLON | COLONCOLON | COLONEQUAL | COLONGREATER | COMMA | CONSTRAINT | DO | DONE | DOT | DOTDOT | DOWNTO | ELSE | END | EOF ...
null
https://raw.githubusercontent.com/rowangithub/DOrder/e0d5efeb8853d2a51cc4796d7db0f8be3185d7df/parsing/parser.mli
ocaml
type token = | AMPERAMPER | AMPERSAND | AND | AS | ASSERT | BACKQUOTE | BANG | BAR | BARBAR | BARRBRACKET | BEGIN | CHAR of (char) | CLASS | COLON | COLONCOLON | COLONEQUAL | COLONGREATER | COMMA | CONSTRAINT | DO | DONE | DOT | DOTDOT | DOWNTO | ELSE | END | EOF ...
bff123c9c77bedc26bdead603e31c3ece4d385337355e25ca59d352de8a6c1eb
marijnh/Postmodern
test-return-types.lisp
-*- Mode : LISP ; Syntax : Ansi - Common - Lisp ; Base : 10 ; Package : POSTMODERN - TESTS ; -*- (in-package :postmodern-tests) (def-suite :postmodern-return-types :description "Return types" :in :postmodern) (in-suite :postmodern-return-types) (defun return-types-fixture () (when (table-exists-p 'test-data)...
null
https://raw.githubusercontent.com/marijnh/Postmodern/d54e494000e1915a7046e8d825cb635555957e85/postmodern/tests/test-return-types.lisp
lisp
Syntax : Ansi - Common - Lisp ; Base : 10 ; Package : POSTMODERN - TESTS ; -*-
(in-package :postmodern-tests) (def-suite :postmodern-return-types :description "Return types" :in :postmodern) (in-suite :postmodern-return-types) (defun return-types-fixture () (when (table-exists-p 'test-data) (query (:drop-table :if-exists 'test-data :cascade))) (execute (:create-table test-data ((id...
4409019e26d07744151f60b5f029c7f931776533aba7a597e9a5b6f079cc0776
tweag/asterius
ByteString.hs
module Asterius.ByteString ( byteStringFromJSUint8Array, byteStringToJSUint8Array, unsafeByteStringToJSUint8Array, lazyByteStringToJSUint8Array, ) where import Asterius.Magic import Asterius.Types import Control.Exception import qualified Data.ByteString as BS import Data.ByteString.Internal (ByteStrin...
null
https://raw.githubusercontent.com/tweag/asterius/e7b823c87499656860f87b9b468eb0567add1de8/ghc-toolkit/boot-libs/asterius-prelude/src/Asterius/ByteString.hs
haskell
# INLINEABLE unsafeByteStringToJSUint8Array # # INLINEABLE lazyByteStringToJSUint8Array #
module Asterius.ByteString ( byteStringFromJSUint8Array, byteStringToJSUint8Array, unsafeByteStringToJSUint8Array, lazyByteStringToJSUint8Array, ) where import Asterius.Magic import Asterius.Types import Control.Exception import qualified Data.ByteString as BS import Data.ByteString.Internal (ByteStrin...
c65b3f379312b939615abd80a0d70ce150b3340e0fc2667a6fa39ac7b6004419
emina/rosette
synthesize.rkt
#lang rosette (require rackunit rackunit/text-ui rosette/lib/roseunit) (define-symbolic a b c boolean?) (define-symbolic xi yi zi integer?) (define-symbolic xr yr zr real?) (define-symbolic xb yb zb (bitvector 4)) (define basic-tests (test-suite+ "Basic synthesis tests." (current-bitwidth #f) (check-u...
null
https://raw.githubusercontent.com/emina/rosette/a64e2bccfe5876c5daaf4a17c5a28a49e2fbd501/test/query/synthesize.rkt
racket
#lang rosette (require rackunit rackunit/text-ui rosette/lib/roseunit) (define-symbolic a b c boolean?) (define-symbolic xi yi zi integer?) (define-symbolic xr yr zr real?) (define-symbolic xb yb zb (bitvector 4)) (define basic-tests (test-suite+ "Basic synthesis tests." (current-bitwidth #f) (check-u...
3ac0d290f3255ee2368703c74964594fd881a9f23b0871bfd44258b9f2331119
ktakashi/sagittarius-scheme
rsa.scm
-*- mode : scheme ; coding : utf-8 ; -*- ;;; ;;; sagittarius/crypto/signatures/rsa.scm - RSA signature ;;; Copyright ( c ) 2022 < > ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: ;;; ...
null
https://raw.githubusercontent.com/ktakashi/sagittarius-scheme/8d3be98032133507b87d6c0466d60f982ebf9b15/ext/crypto/sagittarius/crypto/signatures/rsa.scm
scheme
coding : utf-8 ; -*- sagittarius/crypto/signatures/rsa.scm - RSA signature Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright noti...
Copyright ( c ) 2022 < > " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING #!nounbound (library (sagittarius crypto signatures...
0e7af8e4e6413bf342ba3e8b293ea4b51700263a77902b9974f79e835c689cbf
nwf/dyna
TTerm.hs
--------------------------------------------------------------------------- -- | Very, very basic (Trivial, even) representation of terms. -- -- XXX This isn't going to be sufficient when we start doing more -- complicated things, but it suffices for now? -- Header material ...
null
https://raw.githubusercontent.com/nwf/dyna/74bdc852b906b902b53ca07dab0c8e0639ace8ba/src/Dyna/Term/TTerm.hs
haskell
------------------------------------------------------------------------- | Very, very basic (Trivial, even) representation of terms. XXX This isn't going to be sufficient when we start doing more complicated things, but it suffices for now? Header material {{{ ...
# LANGUAGE DeriveFoldable # # LANGUAGE DeriveFunctor # # LANGUAGE FlexibleContexts # # LANGUAGE KindSignatures # module Dyna.Term.TTerm ( Annotation(..), TBase(..), TBaseSkolem(..), DRule ( .. ) , UTerm ( .. ) ) where import qualified Data.ByteString as B import qualified Data.Data ...
161c8dae39cdf1d4c25396f7c825a8ff893966139c1b3edd5cead3a47e26eabb
agda/agda-ocaml
Instances.hs
{-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE FlexibleInstances # {-# LANGUAGE StandaloneDeriving #-} {-# LANGUAGE TypeSynonymInstances #-} # OPTIONS_GHC -fno - warn - orphans # module Agda.Compiler.Malfunction.Instances where import Agda.Syntax.Common import qualified Agda.Syntax.Concrete as...
null
https://raw.githubusercontent.com/agda/agda-ocaml/e38b699870ba638221828b07b12948d70a1bdaec/src/full/Agda/Compiler/Malfunction/Instances.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeSynonymInstances #
# LANGUAGE FlexibleInstances # # OPTIONS_GHC -fno - warn - orphans # module Agda.Compiler.Malfunction.Instances where import Agda.Syntax.Common import qualified Agda.Syntax.Concrete as C import qualified Agda.Syntax.Fixity as F import Agda.Syntax.Literal import Agda.Sy...
2f0ca87b8b09a71f66274e8135040d14c843beca001e3f850677c034dae91440
tjknoth/resyn
Synthesizer.hs
-- | Top-level synthesizer interface module Synquid.Synthesis.Synthesizer ( synthesize ) where import Synquid.Util import Synquid.Logic import Synquid.Type hiding (set) import Synquid.Program import Synquid.Z3 import Synquid.Resolver import Synquid.Synthesis.TypeChecker import Synquid.Synthesis.Util imp...
null
https://raw.githubusercontent.com/tjknoth/resyn/54ff304c635f26b4b498b82be267923a65e0662d/src/Synquid/Synthesis/Synthesizer.hs
haskell
| Top-level synthesizer interface | 'synthesize' @templGenParam consGenParams solverParams env typ templ cq tq@ : synthesize a program that has a type @typ@ using conditional qualifiers @cquals@ and type qualifiers @tquals@, with parameters for template generation, constraint generation, and constraint solving @...
module Synquid.Synthesis.Synthesizer ( synthesize ) where import Synquid.Util import Synquid.Logic import Synquid.Type hiding (set) import Synquid.Program import Synquid.Z3 import Synquid.Resolver import Synquid.Synthesis.TypeChecker import Synquid.Synthesis.Util import Synquid.Solver.Monad import Synqu...
657995892c8345551e178ecb4e7bf99fda48832f757b23d16951df67d6ee205b
exercism/clojurescript
example.cljs
(ns isbn-verifier) (defn- error-checker-fn "Check the ISBN data structure against any invalidate status and if it is, do not call the function. Some kinda high order fail-safe function. For Forward-Reading, look at Railway oriented programming." [f {validation :validation :as isbn}] (if validation (f isbn...
null
https://raw.githubusercontent.com/exercism/clojurescript/7700a33e17a798f6320aad01fb59a637bd21e12b/exercises/practice/isbn-verifier/.meta/src/example.cljs
clojure
(ns isbn-verifier) (defn- error-checker-fn "Check the ISBN data structure against any invalidate status and if it is, do not call the function. Some kinda high order fail-safe function. For Forward-Reading, look at Railway oriented programming." [f {validation :validation :as isbn}] (if validation (f isbn...
9338c82c9c878ee1897b67392c5006641bb623a3434d56bc2f4f3f4ac32fb75f
jixiuf/helloerlang
mochiweb_test_sup.erl
@author Mochi Media < > @copyright 2010 Mochi Media < > %% @doc Supervisor for the mochiweb_test application. -module(mochiweb_test_sup). -author("Mochi Media <>"). -behaviour(supervisor). %% External exports -export([start_link/0, upgrade/0]). %% supervisor callbacks -export([init/1]). ( ) - > ServerRe...
null
https://raw.githubusercontent.com/jixiuf/helloerlang/3960eb4237b026f98edf35d6064539259a816d58/mochiweb_test/src/mochiweb_test_sup.erl
erlang
@doc Supervisor for the mochiweb_test application. External exports supervisor callbacks @doc API for starting the supervisor. @doc Add processes if necessary. @doc supervisor callback.
@author Mochi Media < > @copyright 2010 Mochi Media < > -module(mochiweb_test_sup). -author("Mochi Media <>"). -behaviour(supervisor). -export([start_link/0, upgrade/0]). -export([init/1]). ( ) - > ServerRet start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, []). @spec upgrade ( ) -...
63b265ad3d9114415ee50aacdd4bd4cb0bbd6cae35e8e75eb2a2b0a2a7c9322f
kelamg/HtDP2e-workthrough
ex475.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 ex475) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-...
null
https://raw.githubusercontent.com/kelamg/HtDP2e-workthrough/ec05818d8b667a3c119bea8d1d22e31e72e0a958/HtDP/Generative-Recursion/ex475.rkt
racket
about the language level of this file in a form that our tools can easily process. A Node is a Symbol. A Path is a [List-of Node]. interpretation The list of nodes specifies a sequence Node on the list to the last one. finds a path from origination to destination in G if there is no path, the function produces #...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex475) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (require 2htdp/abstraction) A DestinationNode is a...
2a9096c557b527078f263ad9f968459fd65073690aabc33b7355acb3224585ad
footprintanalytics/footprint-web
name_test.clj
(ns metabase.sync.analyze.classifiers.name-test (:require [clojure.test :refer :all] [metabase.models.field :refer [Field]] [metabase.models.interface :as mi] [metabase.models.table :as table :refer [Table]] [metabase.sync.analyze.classifiers.name :as classifiers.name] ...
null
https://raw.githubusercontent.com/footprintanalytics/footprint-web/d3090d943dd9fcea493c236f79e7ef8a36ae17fc/test/metabase/sync/analyze/classifiers/name_test.clj
clojure
other pattern matches based on type/regex (remember, base_type matters in matching!) not exhausting but a place for edge cases in the future
(ns metabase.sync.analyze.classifiers.name-test (:require [clojure.test :refer :all] [metabase.models.field :refer [Field]] [metabase.models.interface :as mi] [metabase.models.table :as table :refer [Table]] [metabase.sync.analyze.classifiers.name :as classifiers.name] ...
a79f389fead32a9052a4f18bf3d6ab550cbb0ae9c661bd61a24bb0eff7889a0c
theobat/massalia
MorpheusTypes.hs
# OPTIONS_GHC -fno - warn - orphans # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # # LANGUAGE DerivingVia # # LANGUAGE UndecidableInstances # # LANGUAGE FlexibleInstances # -- | Module : . MorpheusTypes Description : A reexport of the handy functions and types ...
null
https://raw.githubusercontent.com/theobat/massalia/25129187add0e3724deeb9cb473f2145b09c51dc/src/Massalia/MorpheusTypes.hs
haskell
# LANGUAGE OverloadedStrings # |
# OPTIONS_GHC -fno - warn - orphans # # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # # LANGUAGE DerivingVia # # LANGUAGE UndecidableInstances # # LANGUAGE FlexibleInstances # Module : . MorpheusTypes Description : A reexport of the handy functions and types from " " . And their orphan instances...
15c680e905b951631cdc33a12fd88a3fb28af1027b1207ffb974ddd2c97be1d3
nuvla/api-server
infrastructure_service_template_test.clj
(ns sixsq.nuvla.server.resources.infrastructure-service-template-test (:require [clojure.test :refer [deftest use-fixtures]] [peridot.core :refer [content-type header request session]] [sixsq.nuvla.server.app.params :as p] [sixsq.nuvla.server.middleware.authn-info :refer [authn-info-header]] [sixs...
null
https://raw.githubusercontent.com/nuvla/api-server/272c1b8f7a5cd306d01464cf801d6174df146f71/code/test/sixsq/nuvla/server/resources/infrastructure_service_template_test.clj
clojure
anonymous access to template must fail admin and user access must succeed
(ns sixsq.nuvla.server.resources.infrastructure-service-template-test (:require [clojure.test :refer [deftest use-fixtures]] [peridot.core :refer [content-type header request session]] [sixsq.nuvla.server.app.params :as p] [sixsq.nuvla.server.middleware.authn-info :refer [authn-info-header]] [sixs...
ebdd741d611d2207cd414dec238bebe4c272608423cacb7cacc7e7b015aff2e9
albertoruiz/easyVision
stand1.hs
import Vision.GUI import Image main = runIt win win = standalone (Size 100 400) "click to change" x0 updts [] sh where x0 = 7 sh = text (Point 0 0) . show updts = [(key (MouseButton LeftButton), \_droi _pt -> (+1)) ]
null
https://raw.githubusercontent.com/albertoruiz/easyVision/26bb2efaa676c902cecb12047560a09377a969f2/projects/tour/stand1.hs
haskell
import Vision.GUI import Image main = runIt win win = standalone (Size 100 400) "click to change" x0 updts [] sh where x0 = 7 sh = text (Point 0 0) . show updts = [(key (MouseButton LeftButton), \_droi _pt -> (+1)) ]
6e91a1a0e6922f34bc64092dc3c0b971b8a52b8a26315887248616b121d9b590
pjotrp/guix
ssh.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2014 , 2015 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 3 of t...
null
https://raw.githubusercontent.com/pjotrp/guix/96250294012c2f1520b67f12ea80bfd6b98075a2/gnu/services/ssh.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 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (gnu services ssh) #:use-module (guix gexp) #:use-module (guix records) #:use-module (...
0410e0f0efcc29e6a99ea4245499a15734c7dd905598c01a72e246b0e02f0614
jonaprieto/online-atps
Yaml.hs
-- | Yaml.hs module process .online-atps files. {-# LANGUAGE OverloadedStrings #-} # LANGUAGE UnicodeSyntax # module OnlineATPs.Utils.Yaml ( module YAP -- #hide , (.:.) , (.?.) , (.@.) , hypen , loadYAML , lower , underscore , upper ) where import Control.Applicative ( (<|>) ) import Data....
null
https://raw.githubusercontent.com/jonaprieto/online-atps/be0faf1f750ec4a4973feb20af3646ddd47ca70d/src/OnlineATPs/Utils/Yaml.hs
haskell
| Yaml.hs module process .online-atps files. # LANGUAGE OverloadedStrings # #hide | This function 'underscore' translate a field string from | This function 'underscore' translate a field string from | This function 'lower' transforms the text to lower case. | This function 'upper' transforms the text to upper ca...
# LANGUAGE UnicodeSyntax # module OnlineATPs.Utils.Yaml , (.:.) , (.?.) , (.@.) , hypen , loadYAML , lower , underscore , upper ) where import Control.Applicative ( (<|>) ) import Data.Aeson as YAP ( withObject ) import Data.Aeson.Types as YAP ( camelTo2 ) import qualified Data....
3ffbcc9ed90690324f936bca0b0e0668fd2804144c022ed754d5a64ce3a02b7c
hopbit/sonic-pi-snippets
panie_janie.sps
# key: panie janie # point_line: 0 # point_index: 0 # -- # WRUG 20 ----------------------------------------- # Panie Janie! use_bpm 140 notes = ( # Panie Janie! x2 [:f4, 1, :g4, 1, :a4, 1, :f4, 1] * 2 + # Rano wstań x2 [:a4, 1, :bb4, 1, :c5, 2] * 2 + # Wszystkie dzwony biją! x2 [:c5, 0.5, :d5, 0.5, :c5,...
null
https://raw.githubusercontent.com/hopbit/sonic-pi-snippets/2232854ac9587fc2f9f684ba04d7476e2dbaa288/tunes/panie_janie.sps
scheme
# key: panie janie # point_line: 0 # point_index: 0 # -- # WRUG 20 ----------------------------------------- # Panie Janie! use_bpm 140 notes = ( # Panie Janie! x2 [:f4, 1, :g4, 1, :a4, 1, :f4, 1] * 2 + # Rano wstań x2 [:a4, 1, :bb4, 1, :c5, 2] * 2 + # Wszystkie dzwony biją! x2 [:c5, 0.5, :d5, 0.5, :c5,...
1a9a4804ac22620f805b2c790f86b74b8ba48da10bf4b34ab94a8597fb0af6b1
mario-goulart/spock
srfi-25.scm
srfi-25.scm - array library (define array:array-tag (list 'array)) (define (array:make vec ind shp) (vector array:array-tag vec ind shp)) (define (array:array? x) (and (vector? x) (eq? (vector-ref x 0) array:array-tag))) (define (array:vector a) (vector-ref a 1)) (define (array:index a) (vector-ref a 2)) (defin...
null
https://raw.githubusercontent.com/mario-goulart/spock/b88f08f8bc689babc433ad8288559ce5c28c52d5/tests/srfi-25.scm
scheme
array --- Intro --- version in SLIB). This is a complete rewrite, to be consistent with the rest of Scheme and to make arrays independent of lists. (array? obj) (make-array shape [obj]) changed arguments (shape bound ...) new (array shape obj ...) new (array-rank a...
srfi-25.scm - array library (define array:array-tag (list 'array)) (define (array:make vec ind shp) (vector array:array-tag vec ind shp)) (define (array:array? x) (and (vector? x) (eq? (vector-ref x 0) array:array-tag))) (define (array:vector a) (vector-ref a 1)) (define (array:index a) (vector-ref a 2)) (defin...
ebaf53ea8fec25b2e2ca4341878021d27941c90b740b33af652c88451e8555bc
lambdamikel/DLMAPS
strategy.lisp
;;; -*- Mode: LISP; Syntax: Common-Lisp; Package: PROVER -*- (in-package :PROVER) ;;; ;;; ;;; (eval-when (:compile-toplevel :load-toplevel :execute) (defmacro with-strategy ((strat) &body body) `(let ((*strategy* ,strat)) (establish-context-for *strategy* #'(lambda () ...
null
https://raw.githubusercontent.com/lambdamikel/DLMAPS/7f8dbb9432069d41e6a7d9c13dc5b25602ad35dc/src/prover/strategy.lisp
lisp
-*- Mode: LISP; Syntax: Common-Lisp; Package: PROVER -*-
(in-package :PROVER) (eval-when (:compile-toplevel :load-toplevel :execute) (defmacro with-strategy ((strat) &body body) `(let ((*strategy* ,strat)) (establish-context-for *strategy* #'(lambda () ,@body)))) (defpersistentclass strategy ...
250c2295f7902566c7bf524fe260ae80c9708c3910ed83c26d2cc023fb69f806
quil-lang/magicl
lapack-bindings.lisp
;;;; lapack-bindings.lisp ;;;; Author : (in-package #:magicl-lapack) (macrolet ((def-all-lapack () "Define the lapack bindings for all lapack types" `(progn ,@(loop :for type :in '(single-float double-float (complex single-float) (complex double-float)) ...
null
https://raw.githubusercontent.com/quil-lang/magicl/9541b63b3913b2722ac9ed6463cce5cef13b3edc/src/extensions/lapack/lapack-bindings.lisp
lisp
lapack-bindings.lisp
Author : (in-package #:magicl-lapack) (macrolet ((def-all-lapack () "Define the lapack bindings for all lapack types" `(progn ,@(loop :for type :in '(single-float double-float (complex single-float) (complex double-float)) :for real-type :in (list ...
b8fded2e07d4db6f895ac2c3e2ea9d3b06a6783431a3b20abc5073023d8f7a87
puffnfresh/sonic2
Player.hs
{-# LANGUAGE FlexibleContexts #-} # LANGUAGE MultiParamTypeClasses # module Game.Sega.Sonic.Player ( Player(..) , HasPlayer(..) , Statuses(..) , MdAir(..) , MdRoll(..) , HasPosition(..) , PlayerRoutine(..) , mdAir , mdRoll , playerRoutine , playerVelocity , playerRadius , playerTopSpeed , playerAcceleration , p...
null
https://raw.githubusercontent.com/puffnfresh/sonic2/0abc3e109a847582c2e16edb13e83e611419fc8a/src/Game/Sega/Sonic/Player.hs
haskell
# LANGUAGE FlexibleContexts # let angle = 0 cosine = sine = 0 let x = y = v = V2 (fromIntegral x) (fromIntegral y) playerVelocity .= v
# LANGUAGE MultiParamTypeClasses # module Game.Sega.Sonic.Player ( Player(..) , HasPlayer(..) , Statuses(..) , MdAir(..) , MdRoll(..) , HasPosition(..) , PlayerRoutine(..) , mdAir , mdRoll , playerRoutine , playerVelocity , playerRadius , playerTopSpeed , playerAcceleration , playerDeceleration , playerInertia , pla...
7c1a20d8caf290446df745e191941c441feb5e17ca0a446a9f847efe1b1b962a
icfpcontest2021/icfpcontest2021.github.io
Polygon.hs
module BrainWall.Polygon ( Polygon , unPolygon , mkPolygon , polygonSimplify , polygonVertices , polygonEdges , polygonCorners , polygonSplitEdge , clockwise ) where import BrainWall.Polygon.Internal
null
https://raw.githubusercontent.com/icfpcontest2021/icfpcontest2021.github.io/fb23fea2a8ecec7740017d3dda78d921c1df5a26/toolchain/lib/BrainWall/Polygon.hs
haskell
module BrainWall.Polygon ( Polygon , unPolygon , mkPolygon , polygonSimplify , polygonVertices , polygonEdges , polygonCorners , polygonSplitEdge , clockwise ) where import BrainWall.Polygon.Internal
30f3c610805e4554773d49d092a6e3e494ee9304d01fbcf33a4d9f900dde7476
cstar/ejabberd-old
ejabberd_rdbms.erl
%%%---------------------------------------------------------------------- %%% File : ejabberd_rdbms.erl Author : < > %%% Purpose : Manage the start of the database modules when needed Created : 31 Jan 2003 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2010 ProcessOne %%% %%% This program is free ...
null
https://raw.githubusercontent.com/cstar/ejabberd-old/559f8b6b0a935710fe93e9afacb4270d6d6ea00f/src/ejabberd_rdbms.erl
erlang
---------------------------------------------------------------------- File : ejabberd_rdbms.erl Purpose : Manage the start of the database modules when needed 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 hop...
Author : < > Created : 31 Jan 2003 by < > ejabberd , Copyright ( C ) 2002 - 2010 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a copy of the GNU General Public License Founda...
bf0cf3f1e43a931b2f3d1946b136ceb793b8bd322d16e01e42ab73de86e60e73
blynn/compiler
party.hs
-- Modules. module Main where import Base import Map import Ast import RTS import Typer import Kiselyov import System hide_prelude_here' = hide_prelude_here' dumpWith dumper s = case untangle s of Left err -> err Right tab -> foldr ($) [] $ map (\(name, mod) -> ("module "++) . (name++) . ('\n':) . (foldr (.) id $...
null
https://raw.githubusercontent.com/blynn/compiler/b9fe455ad4ee4fbabe77f2f5c3c9aaa53cffa85b/inn/party.hs
haskell
Modules.
module Main where import Base import Map import Ast import RTS import Typer import Kiselyov import System hide_prelude_here' = hide_prelude_here' dumpWith dumper s = case untangle s of Left err -> err Right tab -> foldr ($) [] $ map (\(name, mod) -> ("module "++) . (name++) . ('\n':) . (foldr (.) id $ dumper mod)...
db3f680e76fa6798aca2bc6d9e002e7e38602971495734529aeeeef769359013
wedesoft/aiscm
virtual_arrays.scm
(use-modules (oop goops) (aiscm core)) (define f (jit (list (rgb <int>) (llvmarray <int> 1)) +)) (f (rgb 1 2 3) (arr <int> 4 5 6)) # < multiarray < int<32,signed>,1 > > : ( ( rgb 5 6 7 ) ( rgb 6 7 8) ( rgb 7 8 9 ) )
null
https://raw.githubusercontent.com/wedesoft/aiscm/2c3db8d00cad6e042150714ada85da19cf4338ad/tests/integration/virtual_arrays.scm
scheme
(use-modules (oop goops) (aiscm core)) (define f (jit (list (rgb <int>) (llvmarray <int> 1)) +)) (f (rgb 1 2 3) (arr <int> 4 5 6)) # < multiarray < int<32,signed>,1 > > : ( ( rgb 5 6 7 ) ( rgb 6 7 8) ( rgb 7 8 9 ) )
01c5ff8d564e8fe2d1fe3e8759e1b80192d575eb7592f60adc19a8acee76122e
rems-project/cerberus
pp_prelude.mli
module P = PPrint val (!^): string -> P.document val (^^): P.document -> P.document -> P.document val (^/^): P.document -> P.document -> P.document val (^//^): P.document -> P.document -> P.document val (^^^): P.document -> P.document -> P.document val comma_list: ('a -> P.document) -> 'a list -> P.document val semi_...
null
https://raw.githubusercontent.com/rems-project/cerberus/dbfab2643ce6cedb54d2a52cbcb3673e03bfd161/util/pp_prelude.mli
ocaml
module P = PPrint val (!^): string -> P.document val (^^): P.document -> P.document -> P.document val (^/^): P.document -> P.document -> P.document val (^//^): P.document -> P.document -> P.document val (^^^): P.document -> P.document -> P.document val comma_list: ('a -> P.document) -> 'a list -> P.document val semi_...
55a758c7bf0717253e906b91f7bff144daf281ad7c6617d34961d3b2e2d381ea
MedeaMelana/Magic
Engine.hs
# LANGUAGE TypeOperators # # LANGUAGE TupleSections # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE DoAndIfThenElse #-} {-# LANGUAGE GADTs #-} # LANGUAGE DataKinds # module Magic.Engine (newWorld, fullGame, Engine(..)) where import Magic.Core import Magic.Events hiding (executeEffect, executeEffects) import qualifi...
null
https://raw.githubusercontent.com/MedeaMelana/Magic/7bd87e4e1d54a7c5e5f81661196cafb87682c62a/Magic/src/Magic/Engine.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE DoAndIfThenElse # # LANGUAGE GADTs # | Moves to the next step. Returns the new step, and whether a new turn has begun. Execution of steps [508.1b] declare which player or planeswalker each attacker attacks TODO Offer attacking planeswalkers TODO Check summoning sickness T...
# LANGUAGE TypeOperators # # LANGUAGE TupleSections # # LANGUAGE DataKinds # module Magic.Engine (newWorld, fullGame, Engine(..)) where import Magic.Core import Magic.Events hiding (executeEffect, executeEffects) import qualified Magic.IdList as IdList import Magic.Labels import Magic.ObjectTypes import Magic.Predica...
a16d00e3c7eae41b408bf21601c2278f69874ac44a7fe055071000ae9a92ca85
xapi-project/xcp-rrd
rrd_unix.ml
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking describe...
null
https://raw.githubusercontent.com/xapi-project/xcp-rrd/496ed07c4989be7a86087c4778350b53a937b8a1/unix/rrd_unix.ml
ocaml
* * @group Performance Monitoring
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking describe...
95dad40138c0562d13436873470e147f6b242c6890e04bf42a0f3948d77a7333
serokell/qtah
Internal.hs
This file is part of Qtah . -- Copyright 2015 - 2018 The Qtah Authors . -- -- 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 , either version 3 of the License , or -- (at your option) ...
null
https://raw.githubusercontent.com/serokell/qtah/abb4932248c82dc5c662a20d8f177acbc7cfa722/qtah-generator/src/Graphics/UI/Qtah/Generator/Interface/Internal.hs
haskell
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 (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 MER...
This file is part of Qtah . Copyright 2015 - 2018 The Qtah Authors . the Free Software Foundation , either version 3 of the License , or GNU Lesser General Public License for more details . You should have received a copy of the GNU Lesser General Public License module Graphics.UI.Qtah.Generator.Interface.In...
1c9a8d1e2bff82473a61773fb72bd7493590cb99adbb658494cca54ea91de7a6
shirok/Gauche
96.scm
;;; SRFI-96 is not really meant to be ' use'-ed ; it basically defines ;;; required adaptor to support slib. We have it in slib.scm. ;;; (define-module srfi.96 (extend slib))
null
https://raw.githubusercontent.com/shirok/Gauche/e606bfe5a94b100d5807bca9c2bb95df94f60aa6/lib/srfi/96.scm
scheme
it basically defines required adaptor to support slib. We have it in slib.scm.
(define-module srfi.96 (extend slib))
abe7635863fea499dce5cfe2ce2133b96f7859335ef5834f2be4606a923b5be6
ocaml-ppx/ocamlformat
parsetree.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-ppx/ocamlformat/c490e5b7c4b5f5e5848a5cbdb1e669588dfeaae3/vendor/parser-standard/parsetree.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Asttypes type constant = | Pconst_integer of string * char option * Integer constants such as [ ...
30f91c7f4542a6d53b9b5e790aa2cd2aca9f83969209ead62b9aa9b139e6929e
spell-music/amsterdam
Decay.hs
| This instrument is derived from Risset 's Linear and Exponential Decay Experiments . The object of the comparison here are two types of decay and four different durations : middle ( 2 sec ) , long ( 4 sec ) , short ( 1 sec ) and shorter ( .5 sec ) . Linear decay seems to occur slowly at first and then sudden...
null
https://raw.githubusercontent.com/spell-music/amsterdam/ab491022c7826c74eab557ecd11794268f5a5ae0/01-basic-instruments/Decay.hs
haskell
| This instrument is derived from Risset 's Linear and Exponential Decay Experiments . The object of the comparison here are two types of decay and four different durations : middle ( 2 sec ) , long ( 4 sec ) , short ( 1 sec ) and shorter ( .5 sec ) . Linear decay seems to occur slowly at first and then sudden...
5e30bbdc6faca48d9843f3d51e5e3e07d5cd335adf084f30ed8ea17a735e3a72
ekmett/intern
IntSet.hs
# LANGUAGE MagicHash , TypeFamilies , FlexibleInstances , BangPatterns , CPP # ----------------------------------------------------------------------------- -- | -- Module : Data.Interned.IntSet Copyright : ( c ) 2002 ( c ) 2011 -- License : BSD-style -- Maintainer : -- Stabili...
null
https://raw.githubusercontent.com/ekmett/intern/1c78fbec0d46f27307092ce08019d76c22eee1b4/Data/Interned/IntSet.hs
haskell
--------------------------------------------------------------------------- | Module : Data.Interned.IntSet License : BSD-style Maintainer : Stability : provisional An efficient implementation of integer sets. Since many function names (but not the type name) clash with The implementation i...
# LANGUAGE MagicHash , TypeFamilies , FlexibleInstances , BangPatterns , CPP # Copyright : ( c ) 2002 ( c ) 2011 Portability : non - portable ( TypeFamilies , MagicHash ) " Prelude " names , this module is usually imported @qualified@ , e.g. > import Data . IntSet ( ) > import...
e526945a4b3f87e09cace99f38d3ece774dd113024427a13b389c8021c2b0151
vyorkin/tiger
trace.ml
open Core_kernel module S = Symbol module L = Location module T = Type type target = | Stdout | File of string [@@deriving eq, show] type source = | Symbol of target list | Semant of target list [@@deriving eq, show] (* Note that in the [logs] lib terminology "source" defines a named unit of logging whos...
null
https://raw.githubusercontent.com/vyorkin/tiger/54dd179c1cd291df42f7894abce3ee9064e18def/chapter5/lib/trace.ml
ocaml
Note that in the [logs] lib terminology "source" defines a named unit of logging whose reporting level can be set independently TODO: Report only enabled sources
open Core_kernel module S = Symbol module L = Location module T = Type type target = | Stdout | File of string [@@deriving eq, show] type source = | Symbol of target list | Semant of target list [@@deriving eq, show] module Symbol = struct let src = Logs.Src.create "tig.symbol" ~doc:"Symbol table" let ...
a2ffb76e99eb16d1795e4ce3986e3aaa0303de4668710f2725b7c6a485030dae
NorfairKing/intray
Persistence.hs
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE StandaloneDeriving # # OPTIONS_GHC -fno - warn - orphans # module Intray.Web.Server.Persistence where import Database.Persist.Sql import Servant.Auth.Client (Token (..)) deriving instance PersistField Token deriving instance PersistFieldSql Token
null
https://raw.githubusercontent.com/NorfairKing/intray/f8ed32c79d8b3159a4c82cd8cc5c5aeeb92c2c90/intray-web-server/src/Intray/Web/Server/Persistence.hs
haskell
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE StandaloneDeriving # # OPTIONS_GHC -fno - warn - orphans # module Intray.Web.Server.Persistence where import Database.Persist.Sql import Servant.Auth.Client (Token (..)) deriving instance PersistField Token deriving instance PersistFieldSql Token
5f297a5422df8e7ebc16830c4dca02663ce3dc55cb9b250e4418d2e99d40041f
igarnier/ocaml-geth
rpc.ml
open CCFun open Geth open Types let debug_flag = ref false let switch_debug () = debug_flag := not !debug_flag let print_debug s = if !debug_flag then Lwt_log.debug_f "Ocaml_geth.Rpc: %s" s else Lwt.return_unit let rpc_call url method_name (params : Yojson.Safe.t) = let json : Yojson.Safe.t = `Assoc ...
null
https://raw.githubusercontent.com/igarnier/ocaml-geth/e87ca9f86f79190aff108a14aaae6e925aed5641/lib_lwt/rpc.ml
ocaml
module Net = struct * let version ~url = rpc_call url "net_version" `Null * let listening ~url = rpc_call url "net_listening" `Null * let peer_count ~url = rpc_call url "net_peerCount" `Null * end eth_getUncleCountByBlockHash, eth_getUncleCountByBlockNumber TODO: it would be nice to parse it back to byte...
open CCFun open Geth open Types let debug_flag = ref false let switch_debug () = debug_flag := not !debug_flag let print_debug s = if !debug_flag then Lwt_log.debug_f "Ocaml_geth.Rpc: %s" s else Lwt.return_unit let rpc_call url method_name (params : Yojson.Safe.t) = let json : Yojson.Safe.t = `Assoc ...
948605c2bf500cd7dfdce7632ba3494e4f5b0cafd91439f23422002d5357bde2
johnwhitington/ocamli
tinyexternal.mli
val to_ocaml_value : Tinyocaml.t -> 'a val of_ocaml_value : Tinyocaml.env -> 'a -> string -> Tinyocaml.t type untyped_ocaml_value = UInt of int | UBlock of int * untyped_ocaml_value array | UString of string | UDouble of float | UDoubleArray of float array val untyped_of_ocaml_value : 'a -> untyped_ocaml_value
null
https://raw.githubusercontent.com/johnwhitington/ocamli/28da5d87478a51583a6cb792bf3a8ee44b990e9f/tinyexternal.mli
ocaml
val to_ocaml_value : Tinyocaml.t -> 'a val of_ocaml_value : Tinyocaml.env -> 'a -> string -> Tinyocaml.t type untyped_ocaml_value = UInt of int | UBlock of int * untyped_ocaml_value array | UString of string | UDouble of float | UDoubleArray of float array val untyped_of_ocaml_value : 'a -> untyped_ocaml_value
59afa8ed71e492cc6aaf60e61f78bbf03fdf655b3015e6a433f1807afa3d3aa6
cram2/cram
package.lisp
;;; Copyright ( c ) 2017 , < > ;;; All rights reserved. ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions are met: 2;;; ;;; * Redistributions of source code must retain the above copyright ;;; notice, this lis...
null
https://raw.githubusercontent.com/cram2/cram/dcb73031ee944d04215bbff9e98b9e8c210ef6c5/cram_common/cram_common_failures/src/package.lisp
lisp
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redi...
Copyright ( c ) 2017 , < > * Neither the name of the Institute for Artificial Intelligence/ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT OWNER OR ...
18344f1c3293a0dadfc6a83573979df02bad7913b16fdec6949fe388c63ffdee
ocaml-multicore/parafuzz
minor_major_force.ml
(* TEST ocamlopt_flags += " -O3 " *) (* - create a record with a mutable field that has a lazy value in it - force a minor_gc to make sure that record is on the heap - update the lazy value to be a minor heap value - force the lazy value to be a forward to an item in the minor heap - call minor_gc and wat...
null
https://raw.githubusercontent.com/ocaml-multicore/parafuzz/6a92906f1ba03287ffcb433063bded831a644fd5/testsuite/tests/lazy/minor_major_force.ml
ocaml
TEST ocamlopt_flags += " -O3 " - create a record with a mutable field that has a lazy value in it - force a minor_gc to make sure that record is on the heap - update the lazy value to be a minor heap value - force the lazy value to be a forward to an item in the minor heap - call minor_gc and watch it f...
type test_record = { mutable lzy_str: string Lazy.t; mutable lzy_int: int Lazy.t; } let is_shared x = Obj.is_shared (Obj.repr x) let glbl_int = ref 0 let glbl_string = ref "init" let get_random_int () = Random.int 256 let get_random_string () = Printf.sprintf "%f" (Random.float 1.) let get_lazy_status f...
04722fff0acf1bcdac70a9b023c6178f5a036c190dbbfcb3153054e6f4e70b78
multunus/dashboard-clj
project.clj
(defproject com.multunus/dashboard-clj "0.1.0-SNAPSHOT" :description "Library to create dashboards" :url "-clj" :license {:name "MIT LICENSE" :url ""} :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/clojurescript "1.8.40" :scope "provided"] [ring "1.4.0"...
null
https://raw.githubusercontent.com/multunus/dashboard-clj/14ec30d6eb4a2fdbaadfec52beb572f250b0c781/project.clj
clojure
watch and update CSS
(defproject com.multunus/dashboard-clj "0.1.0-SNAPSHOT" :description "Library to create dashboards" :url "-clj" :license {:name "MIT LICENSE" :url ""} :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/clojurescript "1.8.40" :scope "provided"] [ring "1.4.0"...
18f6a1cff8771bc5a42a7e088e424495a9aaac1e3027bf34b252166e018020ca
kronkltd/jiksnu
webfinger_test.clj
(ns jiksnu.modules.core.model.webfinger-test (:require [clj-factory.core :refer [factory fseq]] [ciste.model :as cm] [hiccup.core :as hiccup] [jiksnu.modules.core.model.webfinger :refer :all] [jiksnu.namespace :as ns] [jiksnu.test-helper :as th] ...
null
https://raw.githubusercontent.com/kronkltd/jiksnu/8c91e9b1fddcc0224b028e573f7c3ca2f227e516/test/jiksnu/modules/core/model/webfinger_test.clj
clojure
(ns jiksnu.modules.core.model.webfinger-test (:require [clj-factory.core :refer [factory fseq]] [ciste.model :as cm] [hiccup.core :as hiccup] [jiksnu.modules.core.model.webfinger :refer :all] [jiksnu.namespace :as ns] [jiksnu.test-helper :as th] ...
d036d93deb7a908214bee2f7496ddfca06874e3c940794076a92bcc6fd2bc6ba
ekmett/succinct-binary
Put.hs
{-# language DeriveFunctor #-} {-# language DefaultSignatures #-} {-# language FlexibleContexts #-} # language BangPatterns # # language EmptyCase # # language GADTs # # language TypeOperators # # language RankNTypes # # language TypeApplications # {-# language ScopedTypeVariables #-} # options_ghc -funbox - strict - f...
null
https://raw.githubusercontent.com/ekmett/succinct-binary/c8731ba6617e83ab416faffde95a118c4a3eef38/src/Data/Binary/Succinct/Put.hs
haskell
# language DeriveFunctor # # language DefaultSignatures # # language FlexibleContexts # # language ScopedTypeVariables # .Internal guts # UNPACK # # UNPACK # ------------------------------------------------------------------------------ * Puttable --------------------------------------------------------------------...
# language BangPatterns # # language EmptyCase # # language GADTs # # language TypeOperators # # language RankNTypes # # language TypeApplications # # options_ghc -funbox - strict - fields # ( Put(..) , meta, metas, paren, parens, content , State(..) , W(..) , Result(..) , put8 , Puttable(..) , putN ,...
1324fe8136c07e26044292ba004e3a2742cbaf8127a3c53c9f987cf3a8e0fabb
valderman/haste-compiler
Gregorian.hs
{-# OPTIONS -fno-warn-orphans #-} -- #hide module Data.Time.Calendar.Gregorian ( -- * Gregorian calendar toGregorian,fromGregorian,fromGregorianValid,showGregorian,gregorianMonthLength, -- calendrical arithmetic e.g. " one month after March 31st " addGregorianMonthsClip,addGregorianMonthsRollOver, addGregorian...
null
https://raw.githubusercontent.com/valderman/haste-compiler/47d942521570eb4b8b6828b0aa38e1f6b9c3e8a8/libraries/time/lib/Data/Time/Calendar/Gregorian.hs
haskell
# OPTIONS -fno-warn-orphans # #hide * Gregorian calendar calendrical arithmetic orphan instance
module Data.Time.Calendar.Gregorian ( toGregorian,fromGregorian,fromGregorianValid,showGregorian,gregorianMonthLength, e.g. " one month after March 31st " addGregorianMonthsClip,addGregorianMonthsRollOver, addGregorianYearsClip,addGregorianYearsRollOver, re - exported from OrdinalDate isLeapYear ) where imp...
cdcbadcbbc5f52bb015e42abce5b0c00197a4aff07ee404dca078c55960dfd69
Apress/practical-ocaml
ch_04.ml
let a = 5;; let b = 10;; a + b;; let myfunc () = 1 + 1;; myfunc ();; let myfunc = (fun () -> 1 + 1);; myfunc ();; let myfunc x y = let someval = x + y in Printf.printf "Hello internal value: %i\n" someval;; myfunc 10 20;; let errorprone x = try while !x < 10 do incr x done with _ -> "Failed";; ...
null
https://raw.githubusercontent.com/Apress/practical-ocaml/c0f1e36283eb0e495ff8db7f2a88cadbf1a3d49e/Chapter04/ch_04.ml
ocaml
let a = 5;; let b = 10;; a + b;; let myfunc () = 1 + 1;; myfunc ();; let myfunc = (fun () -> 1 + 1);; myfunc ();; let myfunc x y = let someval = x + y in Printf.printf "Hello internal value: %i\n" someval;; myfunc 10 20;; let errorprone x = try while !x < 10 do incr x done with _ -> "Failed";; ...
a25e0a67d0c5050cbf5ca24f27f927cc313520b9b4d29bad64eb3a68a1bcd835
camfort/fortran-src
ParserUtils.hs
# LANGUAGE CPP # {-| Utils for various parsers (beyond token level). We can sometimes work around there being free-form and fixed-form versions of the @LexAction@ monad by requesting the underlying instances instances. We place such utilities that match that form here. -} module Language.Fortran.Parser.ParserUtils w...
null
https://raw.githubusercontent.com/camfort/fortran-src/9a333f0b01abf830ab269fa021555be263e0ccaa/src/Language/Fortran/Parser/ParserUtils.hs
haskell
| Utils for various parsers (beyond token level). We can sometimes work around there being free-form and fixed-form versions of the @LexAction@ monad by requesting the underlying instances instances. We place such utilities that match that form here. and if so , push it into a ' ComplexPart ' constructor . This may...
# LANGUAGE CPP # module Language.Fortran.Parser.ParserUtils where import Language.Fortran.AST import Language.Fortran.AST.Literal.Real import Language.Fortran.AST.Literal.Complex import Language.Fortran.Util.Position #if !MIN_VERSION_base(4,13,0) Control . Monad . Fail import is redundant since GHC 8.8.1 import Co...
8ada5f34efdd0957b7a9e2dd881396a4fd78dcf3cefb9d0975705d553abdbe56
hiratara/Haskell-Nyumon-Sample
chap02-samples-2-5-sample3.hs
-- sample3.hs main :: IO () main = do putStrLn "Hello, world!" putStrLn "from first hs file."
null
https://raw.githubusercontent.com/hiratara/Haskell-Nyumon-Sample/ac52b741e3b96722f6fc104cfa84078e39f7a241/chap02-samples/chap02-samples-2-5-sample3.hs
haskell
sample3.hs
main :: IO () main = do putStrLn "Hello, world!" putStrLn "from first hs file."
ea5cec5902dfc8d3dcf6fee63d682be8e013f15b61afcc7b69043e8a8fafddf7
cirodrig/triolet
LocalCPSAnn.hs
| Annotated IR used for the local continuation - passing transformation . The LCPS transformation reorganizes local functions in a way that increases the number of functions that can be translated to local procedures , which execute more efficiently than hoisted functions . To perform the transformation , @le...
null
https://raw.githubusercontent.com/cirodrig/triolet/e515a1dc0d6b3e546320eac7b71fb36cea5b53d0/src/program/LowLevel/Closure/LocalCPSAnn.hs
haskell
----------------------------------------------------------------------------- | A LCPS Statement. This is like 'Stm' except that let-expressions are annotated with a variable. The variable stands for the body of the let-expression; if the body is turned into a function, then that variable becomes the functi...
| Annotated IR used for the local continuation - passing transformation . The LCPS transformation reorganizes local functions in a way that increases the number of functions that can be translated to local procedures , which execute more efficiently than hoisted functions . To perform the transformation , @le...
f474782a92dd457123a29fec792db7519d7fefebce329eb8a477296e3ef01f8b
psandeepunni/cowboy-automatic-route-dispatcher
cards_access_policy.erl
-module(cards_access_policy). -callback execute(Req) -> {ok, Req, list()} | {error, Req, list()} when Req::cowboy_req:req().
null
https://raw.githubusercontent.com/psandeepunni/cowboy-automatic-route-dispatcher/f72560f847d00de0bf88b52a26a15fed24cef890/src/cards_access_policy.erl
erlang
-module(cards_access_policy). -callback execute(Req) -> {ok, Req, list()} | {error, Req, list()} when Req::cowboy_req:req().
33b04f30c05248c0c10fd82059c9f08d45f9b9d4a93897a1be92af98692f51c5
mauke/data-default
Class.hs
Copyright ( c ) 2013 All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : * Redistributions of source code must retain the above copyright notice , this list of conditions and the follo...
null
https://raw.githubusercontent.com/mauke/data-default/b1a08788ca3d6a714319726e3768cf93df92458e/data-default-class/Data/Default/Class.hs
haskell
| This module defines a class for types with a default value. It also defines 'Default' instances for the types 'Int', 'Int8', 'IO', 'Maybe', '()', '[]', 'Ordering', 'Any', 'All', 'Last', 'First', 'Sum', 'Product', 'Endo', 'Dual', and tuples. | A class for types with a default value. | The default value for this ...
Copyright ( c ) 2013 All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : * Redistributions of source code must retain the above copyright notice , this list of conditions and the follo...
602cca1862a8c3926cd380962b91e93d0ee25498d2b8b6d2af429570b09a32fc
typedclojure/typedclojure
register_malli_extensions.cljc
;; this namespace is implicitly loaded via `src/typedclojure_config.cljc` by the type checker (ns typed-example.register-malli-extensions (:require [typed.malli.schema-to-type :refer [register-malli->type-extension]])) (register-malli->type-extension :typed-example.malli-extensible/over [m opts] Do whatever you wa...
null
https://raw.githubusercontent.com/typedclojure/typedclojure/d57fa8d7aba7e035071c0ce3093d08997f51697d/example-projects/malli-type-providers/src/typed_example/register_malli_extensions.cljc
clojure
this namespace is implicitly loaded via `src/typedclojure_config.cljc` by the type checker Mostly, you'd just want to return a type. More involved ideas include guessing the type by generating values until `:pred` succeeds. If the type is different based on platform, use impl/impl-case to dispatch (used here just ...
(ns typed-example.register-malli-extensions (:require [typed.malli.schema-to-type :refer [register-malli->type-extension]])) (register-malli->type-extension :typed-example.malli-extensible/over [m opts] Do whatever you want to convert the schema to Typed Clojure syntax . #?(:clj `t/AnyInteger :cljs `t/AnyIn...
8fab30ae90dc92d6258f5bddbd5252bccc2dd88fb6f882436802360b319512f4
TyGuS/hoogle_plus
CodeFormer.hs
# LANGUAGE FlexibleContexts # module HooglePlus.CodeFormer( generateProgram , FormerState(..) , CodePieces ) where import Types.Common import Types.Encoder import Types.Abstract import Synquid.Util import Control.Monad.State import Data.Set (Set) import qualified Data.Set as Set import Data.HashMap...
null
https://raw.githubusercontent.com/TyGuS/hoogle_plus/d02a1466d98f872e78ddb2fb612cb67d4bd0ca18/src/HooglePlus/CodeFormer.hs
haskell
update typedTerms | generate the program from the signatures appeared in selected transitions these signatures are sorted by their timestamps, i.e. they may only use symbols appearing before them signatures used to generate program argument types in the query argument names return types relevancy toggle prepa...
# LANGUAGE FlexibleContexts # module HooglePlus.CodeFormer( generateProgram , FormerState(..) , CodePieces ) where import Types.Common import Types.Encoder import Types.Abstract import Synquid.Util import Control.Monad.State import Data.Set (Set) import qualified Data.Set as Set import Data.HashMap...
3bd1436500e1be195b61706545017f4fefc823ea8bfb06cf6a364c3d50d35e36
ucsd-progsys/nate
opterrors.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/driver/opterrors.ml
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 : opterrors.ml , v 1.19 2006/04...
cc16e8a1b8657a0dc1f73ce46b871a715e519c682a7f9df0e604f348267774d0
agda/agda
Monad.hs
# LANGUAGE NondecreasingIndentation # {-| The scope monad with operations. -} module Agda.Syntax.Scope.Monad where import Prelude hiding (null) import Control.Arrow ((***)) import Control.Monad import Control.Monad.Except import Control.Monad.State import Data.Either ( partitionEithers ) import Data.Foldable (all,...
null
https://raw.githubusercontent.com/agda/agda/bf1a531d6a579c7b8016179b361920d3d0c69458/src/full/Agda/Syntax/Scope/Monad.hs
haskell
| The scope monad with operations. TODO: move the relevant warnings out of there ------------------------------------------------------------------------- * The scope checking monad ------------------------------------------------------------------------- | To simplify interaction between scope checking and type ch...
# LANGUAGE NondecreasingIndentation # module Agda.Syntax.Scope.Monad where import Prelude hiding (null) import Control.Arrow ((***)) import Control.Monad import Control.Monad.Except import Control.Monad.State import Data.Either ( partitionEithers ) import Data.Foldable (all, traverse_) import qualified Data.List a...
8c0cf66b1f74f4e77c35a09e49d0bf312ecd163ab84bfe0503cb7ddd1b7e9bb5
ocaml-community/calendar
time_Zone.ml
(**************************************************************************) (* *) (* This file is part of Calendar. *) (* *) Copyright...
null
https://raw.githubusercontent.com/ocaml-community/calendar/f119658010cc9045e1866eddadc4a776adbcc146/src/time_Zone.ml
ocaml
************************************************************************ This file is part of Calendar. ...
Copyright ( C ) 2003 - 2011 Lesser General Public License version 2.1 as published by the Free Software Foundation , with a special linking exception ( usual See the GNU Lesser General Public Licence version 2.1 for more type t = | UTC | Local | UTC_Plus of int let tz = ref ...
b3a72d54cc012e5759035c071b3fe3d620ff4cd4c20c8c8b4589d67d3808b6e3
alasconnect/azure-demo
App.hs
# LANGUAGE FlexibleContexts # module App where -------------------------------------------------------------------------------- import Control.Lens import Control.Monad (unless) import Data.Pool import Data.Proxy import Data.Text (pack, unpack) import Dhall import Database.Beam.Postgres import Network.Wai import qual...
null
https://raw.githubusercontent.com/alasconnect/azure-demo/5d16db775ccf3b753f4ef078bad8e9437b844d76/backend/src/App.hs
haskell
------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ We defer running our code in a particular monad transformer stack until later at ...
# LANGUAGE FlexibleContexts # module App where import Control.Lens import Control.Monad (unless) import Data.Pool import Data.Proxy import Data.Text (pack, unpack) import Dhall import Database.Beam.Postgres import Network.Wai import qualified Network.Wai.Handler.Warp as W import Servant import Api import Opts import ...
73ae4743a6ffec61b4e274115a25403760f9d5f6b22603e909b5eb53ada05169
zadean/xqerl
prod_Annotation_SUITE.erl
-module('prod_Annotation_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(['annotation-1'/1]). -export(['annotation-2'/1]). -export(['annotation-3'/1]). -...
null
https://raw.githubusercontent.com/zadean/xqerl/1a94833e996435495922346010ce918b4b0717f2/test/prod/prod_Annotation_SUITE.erl
erlang
-module('prod_Annotation_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(['annotation-1'/1]). -export(['annotation-2'/1]). -export(['annotation-3'/1]). -...
7ce1a21d8ee9a79a4974f77adabc0b8728f05c4ed08f95deaeb7efa2907c313e
awakesecurity/proto3-wire
Types.hs
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DeriveLift #-} # LANGUAGE GeneralizedNewtypeDeriving # Copyright 2016 Awake Networks Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except i...
null
https://raw.githubusercontent.com/awakesecurity/proto3-wire/5ffc23c39345e075ae118af789c28d4febb58544/src/Proto3/Wire/Types.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE DeriveGeneric # # LANGUAGE DeriveLift # | This module defines types which are shared by the encoding and decoding modules. * Message Structure | A 'FieldNumber' identifies a field inside a protobufs message. This library makes no atte...
# LANGUAGE GeneralizedNewtypeDeriving # Copyright 2016 Awake Networks 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 ...
8309b17f17868cfd823eb5ac8a0f0116b4134e184772d00087774831e4a93d5e
janestreet/bonsai
var.mli
open! Core open! Import (* $MDX part-begin=var_module_signature *) type 'a t (** Creates a var with an initial value. *) val create : 'a -> 'a t (** Runs a function over the current value and updates it to the result. *) val update : 'a t -> f:('a -> 'a) -> unit (** Change the current value. *) val set : 'a t -> 'a...
null
https://raw.githubusercontent.com/janestreet/bonsai/33e9a58fc55ec12095959dc5ef4fd681021c1083/src/var.mli
ocaml
$MDX part-begin=var_module_signature * Creates a var with an initial value. * Runs a function over the current value and updates it to the result. * Change the current value. * Retrieve the current value. * Get a value that tracks the current value, for use in a computation. $MDX part-end
open! Core open! Import type 'a t val create : 'a -> 'a t val update : 'a t -> f:('a -> 'a) -> unit val set : 'a t -> 'a -> unit val get : 'a t -> 'a val value : 'a t -> 'a Value.t
e1d6e6af7fb35c8ef7abcf1ebc3c7d3a9eb8c75ae60d0abbadd810126842b3b7
MaskRay/OJHaskell
34.hs
import Data.Char factorial = scanl (*) 1 [1..9] main = print . sum $ [x | x <- [10..999999], (sum . map (product . enumFromTo 1 . digitToInt) . show $ x) == x]
null
https://raw.githubusercontent.com/MaskRay/OJHaskell/ba24050b2480619f10daa7d37fca558182ba006c/Project%20Euler/34.hs
haskell
import Data.Char factorial = scanl (*) 1 [1..9] main = print . sum $ [x | x <- [10..999999], (sum . map (product . enumFromTo 1 . digitToInt) . show $ x) == x]
ab0e4894465db2d458c1dcb3514f77e9b8ecf7b9eeec3bee12f96dceb265a5ce
fpco/wai-middleware-auth
OAuth2.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # # LANGUAGE TemplateHaskell # # LANGUAGE TupleSections # module Network.Wai.Middleware.Auth.OAuth2 ( OAuth2(..) , oAuth2Parser , URIParseException(..) , parseAbsoluteURI , getAccessToken ) where import Control.Monad.Catch i...
null
https://raw.githubusercontent.com/fpco/wai-middleware-auth/0ae5ebb7f0cc3255927a81b78c0d4f5ed66befd0/src/Network/Wai/Middleware/Auth/OAuth2.hs
haskell
# LANGUAGE OverloadedStrings # | Used for validating proper url structure. Can be thrown by `parseAbsoluteURI` and consequently by `handleLogin` for `OAuth2` `Provider` instance. @since 0.1.2.0 @since 0.1.2.0 | Aeson parser for `OAuth2` provider. Setting callback endpoint to `Nothing` below is a lie. We do h...
# LANGUAGE RecordWildCards # # LANGUAGE TemplateHaskell # # LANGUAGE TupleSections # module Network.Wai.Middleware.Auth.OAuth2 ( OAuth2(..) , oAuth2Parser , URIParseException(..) , parseAbsoluteURI , getAccessToken ) where import Control.Monad.Catch import Data.Aeson.TH ...
0e7865cb3015986953c3a1e89c009e4bf49f34372be482fd48382fc8cb1498a9
clojure/core.typed
tc_equiv.clj
Copyright ( c ) , contributors . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be bound by ;...
null
https://raw.githubusercontent.com/clojure/core.typed/f5b7d00bbb29d09000d7fef7cca5b40416c9fa91/typed/checker.jvm/src/clojure/core/typed/checker/jvm/tc_equiv.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 ) , contributors . (ns clojure.core.typed.checker.jvm.tc-equiv (:require [clojure.core.typed.checker.type-rep :as r] [clojure.core.typed.checker.type-ctors :as c] [clojure.core.typed.checker.filter-rep :as fl] [clojure.core.typed.checker.filter-ops :as fo]...
bab8b443b1483c79057c9cf3994913d1e5aad6bd2b1e51e991344f148cf5110b
borodust/claw
packages.lisp
(cl:defpackage :claw (:use :claw.util :claw.wrapper :claw.cffi.c) (:export #:defwrapper #:include #:load-wrapper #:generate-wrapper #:build-adapter #:initialize-adapter))
null
https://raw.githubusercontent.com/borodust/claw/04dcac64a72921430997a7b9105d18493feeaf7a/src/packages.lisp
lisp
(cl:defpackage :claw (:use :claw.util :claw.wrapper :claw.cffi.c) (:export #:defwrapper #:include #:load-wrapper #:generate-wrapper #:build-adapter #:initialize-adapter))
633d2ab081041a6c1b11b8de5c4692e9c19b7dfac0a7d778a3b2aa9b63e438b2
ocaml/merlin
test_use.ml
open Foo
null
https://raw.githubusercontent.com/ocaml/merlin/e576bc75f11323ec8489d2e58a701264f5a7fe0e/tests/test-dirs/no-escape.t/test_use.ml
ocaml
open Foo
a72bdf66ea633b8db81b5e8efec40a2f94e43b80fa4c7ab73504763d7469492d
ocaml-flambda/ocaml-jst
ocamlcmt.ml
(**************************************************************************) (* *) (* OCaml *) (* *) (* ...
null
https://raw.githubusercontent.com/ocaml-flambda/ocaml-jst/7e5a626e4b4e12f1e9106564e1baba4d0ef6309a/tools/ocamlcmt.ml
ocaml
************************************************************************ OCaml Fabrice L...
Copyright 2012 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the let gen_annot = ref false let gen_ml = ref false let print_info_arg = ref false let target_filename = ref None let save_cmt_info = ref false let arg_list = Arg.align [ ...
f20c30d14a17fa828d7af388e00051f082e0134bfae43be2da8aabc34aa2ac54
relevance/labrepl
ref_cache_test.clj
(ns solutions.ref-cache-test (:use clojure.test) (:require [solutions.ref-cache :as cache])) (deftest test-ref-version (let [cache (cache/create {1 2})] (is (nil? (cache/get cache :foo))) (is (= {:foo :bar 1 2} (cache/put cache :foo :bar))) (is (= {:foo :zap 1 2} (cache/put cache {:foo :zap} ))) ...
null
https://raw.githubusercontent.com/relevance/labrepl/51909dcb3eeb9f148eeae109316f7d73cc81512a/test/solutions/ref_cache_test.clj
clojure
(ns solutions.ref-cache-test (:use clojure.test) (:require [solutions.ref-cache :as cache])) (deftest test-ref-version (let [cache (cache/create {1 2})] (is (nil? (cache/get cache :foo))) (is (= {:foo :bar 1 2} (cache/put cache :foo :bar))) (is (= {:foo :zap 1 2} (cache/put cache {:foo :zap} ))) ...
780034e7598ff9f66e23cabb34ae9ea99c9e3c22b41a0921aedf89732ea2bcb7
korya/efuns
demo_complex.ml
(***********************************************************************) (* *) (* ____ *) (* *) Fabrice Le Fessa...
null
https://raw.githubusercontent.com/korya/efuns/78b21d9dff45b7eec764c63132c7a564f5367c30/toolkit/examples/demo_complex.ml
ocaml
********************************************************************* ____ ...
Fabrice Le Fessant , projet Para / SOR , INRIA Rocquencourt Copyright 1999 Institut National de Recherche en Informatique et Automatique . Distributed only by permission . open WX_types let display = new WX_display.t "" let root = new WX_root.t display 0 let appli = ...
b9f1a9a31b213a962a5a2b587427dfb7d11d6613c76789252d26644fb379b4d8
lem-project/lem
visual.lisp
(defpackage :lem-vi-mode.visual (:use :cl :lem :lem-vi-mode.core) (:export :vi-visual-end :vi-visual-char :vi-visual-line :vi-visual-block :visual-p :visual-char-p :visual-line-p :visual-block-p :apply-visual-ran...
null
https://raw.githubusercontent.com/lem-project/lem/4f620f94a1fd3bdfb8b2364185e7db16efab57a1/modes/vi-mode/visual.lisp
lisp
(defpackage :lem-vi-mode.visual (:use :cl :lem :lem-vi-mode.core) (:export :vi-visual-end :vi-visual-char :vi-visual-line :vi-visual-block :visual-p :visual-char-p :visual-line-p :visual-block-p :apply-visual-ran...
4e5ff7ee06601ec311b8be3bb2c3988f66d4848655aa2d66f53210ea52981f1d
headwinds/reagent-reframe-material-ui
protocols.cljc
(ns ajax.protocols) (defprotocol AjaxImpl "An abstraction for a javascript class that implements Ajax calls." (-js-ajax-request [this request handler] "Makes an actual ajax request. All parameters except opts are in JS format. Should return an AjaxRequest.")) (defprotocol AjaxRequest "An abstracti...
null
https://raw.githubusercontent.com/headwinds/reagent-reframe-material-ui/8a6fba82a026cfedca38491becac85751be9a9d4/resources/public/js/out/ajax/protocols.cljc
clojure
(ns ajax.protocols) (defprotocol AjaxImpl "An abstraction for a javascript class that implements Ajax calls." (-js-ajax-request [this request handler] "Makes an actual ajax request. All parameters except opts are in JS format. Should return an AjaxRequest.")) (defprotocol AjaxRequest "An abstracti...
5b9fc902ac462f42a5d022d4a5809bba1b3e17f70285cbb1ad793b51359058ae
anton-k/reader-pattern-servant-app
Api.hs
-- | API for the service. -- For simplicity it is in single module, but will be split on parts -- by methods in real project. module Api ( Api , SaveRequest(..) , SaveResponse(..) ) where import Deriving.Aeson import Deriving.Aeson.Stock import Servant.API import Types type Api = "api" :> "v1" :> ( SaveM...
null
https://raw.githubusercontent.com/anton-k/reader-pattern-servant-app/64fcb93cc92a6e30511e5ecf77a2bf21ada47bc2/src/Api.hs
haskell
| API for the service. For simplicity it is in single module, but will be split on parts by methods in real project. ------------------------------------------------------------------------ save ------------------------------------------------------------------------ get by id -------------------------------------...
module Api ( Api , SaveRequest(..) , SaveResponse(..) ) where import Deriving.Aeson import Deriving.Aeson.Stock import Servant.API import Types type Api = "api" :> "v1" :> ( SaveMessage :<|> GetById :<|> GetByTag :<|> ToggleLog ) type SaveMessage = "save" :> ReqBody '[JSON] SaveRequest :> Post...
e6d2c44f0bf0c0f035f80c9234b99a2bc13c2f426921d37102c35c51a655acb2
sunng87/rigui
impl_test.clj
(ns rigui.impl-test (:require [rigui.impl :refer :all] [rigui.timer.platform :refer [*dry-run*]] [rigui.units :refer :all] [rigui.math :as math] [rigui.utils :refer [now]] [clojure.test :refer :all]) (:import [clojure.lang ExceptionInfo])) (deftest test-l...
null
https://raw.githubusercontent.com/sunng87/rigui/1c695b8259dc8dd4a527298e8dbb9e0f738e517c/test/rigui/impl_test.clj
clojure
computed trigger time
(ns rigui.impl-test (:require [rigui.impl :refer :all] [rigui.timer.platform :refer [*dry-run*]] [rigui.units :refer :all] [rigui.math :as math] [rigui.utils :refer [now]] [clojure.test :refer :all]) (:import [clojure.lang ExceptionInfo])) (deftest test-l...
a8424592df266f0a73b05cefc625a62b3bd162d9b8441dae15b79f7e0e42faf5
thi-ng/geom
fx_pipeline.clj
(ns thi.ng.geom.examples.jogl.fx-pipeline (:import [com.jogamp.opengl GL3 GLAutoDrawable] [com.jogamp.newt.event MouseEvent KeyEvent]) (:require [thi.ng.math.core :as m] [thi.ng.color.core :as col] [thi.ng.dstruct.core :as d] [thi.ng.geom.core :as g] [thi.ng.geom.utils :as gu] [thi.ng.geom.r...
null
https://raw.githubusercontent.com/thi-ng/geom/85783a1f87670c5821473298fa0b491bd40c3028/examples/jogl/fx_pipeline.clj
clojure
(ns thi.ng.geom.examples.jogl.fx-pipeline (:import [com.jogamp.opengl GL3 GLAutoDrawable] [com.jogamp.newt.event MouseEvent KeyEvent]) (:require [thi.ng.math.core :as m] [thi.ng.color.core :as col] [thi.ng.dstruct.core :as d] [thi.ng.geom.core :as g] [thi.ng.geom.utils :as gu] [thi.ng.geom.r...
da0137925e264295ffc751e22ae94d75f4858e19d076665e08279909fb08b337
jrm-code-project/LISP-Machine
mouse.lisp
-*- Mode : LISP ; Package : ; -*- (defobclass mouseable-rect (window-rect)) (defobclass inverting-rect (window-rect) inverted-p) (defobfun (invert inverting-rect) () (send window :draw-rectangle width height x y tv:alu-xor) (setq inverted-p (not inverted-p))) (defobfun (erase inverting-rect) () (if inve...
null
https://raw.githubusercontent.com/jrm-code-project/LISP-Machine/0a448d27f40761fafabe5775ffc550637be537b2/lambda/window/sliders/mouse.lisp
lisp
Package : ; -*- Special hack for images sort of a hack Temp, for demo Tell the mouse process to switch "modes" and wait for it to do so this version can be called from mouse process (no-op) system version is broken
(defobclass mouseable-rect (window-rect)) (defobclass inverting-rect (window-rect) inverted-p) (defobfun (invert inverting-rect) () (send window :draw-rectangle width height x y tv:alu-xor) (setq inverted-p (not inverted-p))) (defobfun (erase inverting-rect) () (if inverted-p (invert)) (shadowed-erase)) ...
e9b98e5f6bfdb74ca2eb56f35d094c1603f472e2f6a9c4661bc7fc87e04d05df
astrada/ocaml-extjs
ext_grid_column_Column.mli
* This class specifies the definition for a column i ... { % < p > This class specifies the definition for a column inside a < a href="#!/api / Ext.grid . Panel " rel="Ext.grid . Panel " class="docClass">Ext.grid . Panel</a > . It encompasses both the grid header configuration as well as displaying data within...
null
https://raw.githubusercontent.com/astrada/ocaml-extjs/77df630a75fb84667ee953f218c9ce375b3e7484/lib/ext_grid_column_Column.mli
ocaml
* {% <p>Allows addition of behavior after rendering is complete. At this stage the Component’s Element will have been styled according to the configuration, will have had any configured CSS class names added, and will be in the configured visibility and the configured enable state.</p> %} * {% <p>When defined this...
* This class specifies the definition for a column i ... { % < p > This class specifies the definition for a column inside a < a href="#!/api / Ext.grid . Panel " rel="Ext.grid . Panel " class="docClass">Ext.grid . Panel</a > . It encompasses both the grid header configuration as well as displaying data within...
9666d49ccf8257a644e11ed397c163051f482432dae6377042f9e89c30d8367e
janestreet/core_unix
daemon.mli
* This module provides support for daemonizing a process . It provides flexibility as to where the standard file descriptors ( stdin , stdout and stderr ) are connected after daemonization has occurred . where the standard file descriptors (stdin, stdout and stderr) are connected after daemonizati...
null
https://raw.githubusercontent.com/janestreet/core_unix/6c86f49d213b2876d512da158d15339e97dbcb8a/daemon/src/daemon.mli
ocaml
* Redirect to /dev/null unless already redirected to a regular file. * permission to pass to [openfile] when using [`File_append] or [`File_truncate] * defaults to use existing umask * defaults to false * default `Dev_null_skip_regular_files * default `De...
* This module provides support for daemonizing a process . It provides flexibility as to where the standard file descriptors ( stdin , stdout and stderr ) are connected after daemonization has occurred . where the standard file descriptors (stdin, stdout and stderr) are connected after daemonizati...
401026981c64b27df0b97d3b80002ba007bcfe8caadefcddd749372ccedab596
haskell/lsp
WorkspaceEditSpec.hs
{-# LANGUAGE OverloadedStrings #-} module WorkspaceEditSpec where import Test.Hspec import Language.LSP.Types spec :: Spec spec = do describe "applyTextEdit" $ do it "inserts text" $ let te = TextEdit (Range (Position 1 2) (Position 1 2)) "foo" in applyTextEdit te "lorem\nipsum\ndolor" `shouldBe` ...
null
https://raw.githubusercontent.com/haskell/lsp/0a518f78a32439fb59dc878ff3a7698dedf212d9/lsp-types/test/WorkspaceEditSpec.hs
haskell
# LANGUAGE OverloadedStrings #
module WorkspaceEditSpec where import Test.Hspec import Language.LSP.Types spec :: Spec spec = do describe "applyTextEdit" $ do it "inserts text" $ let te = TextEdit (Range (Position 1 2) (Position 1 2)) "foo" in applyTextEdit te "lorem\nipsum\ndolor" `shouldBe` "lorem\nipfoosum\ndolor" it "de...
e9202949d6d3ad4326812e8f72f2359718eb7e66e4dee12992cdb56877550654
umutgokbayrak/ozlusozler
util.clj
(ns ozlusozler.util (:require [noir.io :as io] [markdown.core :as md] [clj-time.local :as l] [clj-time.coerce :as c] [digest :as digest])) (defn md->html "reads a markdown file from public/md and returns an HTML string" [filename] (md/md-to-html-string (io/slurp-...
null
https://raw.githubusercontent.com/umutgokbayrak/ozlusozler/9c2a20aaf0b66ec033efae20c35ba620b4dde9c4/src/ozlusozler/util.clj
clojure
(ns ozlusozler.util (:require [noir.io :as io] [markdown.core :as md] [clj-time.local :as l] [clj-time.coerce :as c] [digest :as digest])) (defn md->html "reads a markdown file from public/md and returns an HTML string" [filename] (md/md-to-html-string (io/slurp-...
7133eb77bdbe73238e5ba2def466d406f0e2989e3f4c964b84858e33a43e5027
goolord/atrophy
LongMultiplication.hs
# LANGUAGE TypeApplications , ScopedTypeVariables , LambdaCase # TypeApplications , ScopedTypeVariables , LambdaCase #-} module Atrophy.LongMultiplication where import Data.WideWord.Word128 import Data.Word import qualified Data.Primitive.Contiguous as Contiguous import Data.Primitive.Contiguo...
null
https://raw.githubusercontent.com/goolord/atrophy/3b115dc5b0369d78f39e8c42b976706106a51096/src/Atrophy/LongMultiplication.hs
haskell
Break a and b into little-endian 64-bit chunks Multiply each of the digits in a by b, adding them into the 'prod' value. compute prod += a * b
# LANGUAGE TypeApplications , ScopedTypeVariables , LambdaCase # TypeApplications , ScopedTypeVariables , LambdaCase #-} module Atrophy.LongMultiplication where import Data.WideWord.Word128 import Data.Word import qualified Data.Primitive.Contiguous as Contiguous import Data.Primitive.Contiguo...
18327452813d641c1871c0bd22c1adcc4786b3d3ecbb88b0cc67f2a7013cec2d
mrphlip/aoc
Vector.hs
# OPTIONS_GHC -Wno - tabs # module Vector (Vector(..), Vector2(Vector2), Vector3(Vector3), crossProduct, tupleVec2, tupleVec3, vecTuple2, vecTuple3, vecSum) where import Data.List data Vector2 a = Vector2 a a deriving (Eq, Ord) data Vector3 a = Vector3 a a a deriving (Eq, Ord) instance Read a => Read (Vector2 a) whe...
null
https://raw.githubusercontent.com/mrphlip/aoc/06395681eb6b50b838cd4561b2e0aa772aca570a/Vector.hs
haskell
# OPTIONS_GHC -Wno - tabs # module Vector (Vector(..), Vector2(Vector2), Vector3(Vector3), crossProduct, tupleVec2, tupleVec3, vecTuple2, vecTuple3, vecSum) where import Data.List data Vector2 a = Vector2 a a deriving (Eq, Ord) data Vector3 a = Vector3 a a a deriving (Eq, Ord) instance Read a => Read (Vector2 a) whe...
5df36ce0a982e804c16cd33ea59acbc90128578c80fe25c47212469d44117f04
chetmurthy/ensemble
cryptokit_int.ml
(**************************************************************) CRYPTOKIT_INT Author : Ohad Rodeh , 3/2004 (**************************************************************) (* Pseudo-random number generator *) open Cryptokit open Printf (**************************************************************) module Prng...
null
https://raw.githubusercontent.com/chetmurthy/ensemble/8266a89e68be24a4aaa5d594662e211eeaa6dc89/ensemble/server/crypto/real/cryptokit_int.ml
ocaml
************************************************************ ************************************************************ Pseudo-random number generator ************************************************************ ************************************************************ *******************************************...
CRYPTOKIT_INT Author : Ohad Rodeh , 3/2004 open Cryptokit open Printf module Prng = struct let prng = ref None let init seed = if String.length seed < 4 then failwith "seed too short"; prng := Some (Random.pseudo_rng (seed ^ seed ^ seed ^ seed)) let rand len = match !prng ...
14bd7ccc99f76b2a1d314631e62018750bc87cc0ef9b6eb7fe546f90bae1ab29
hugoduncan/oldmj
run.clj
(ns makejack.impl.run (:require [makejack.api.core :as makejack] [makejack.impl.resolve :as resolve])) (defn run-command [cmd args options] (let [config (makejack/load-config {:profile (:profile options) :dir (:dir options)}) target-kw (keyword cm...
null
https://raw.githubusercontent.com/hugoduncan/oldmj/0a97488be7457baed01d2d9dd0ea6df4383832ab/cli/src/makejack/impl/run.clj
clojure
(ns makejack.impl.run (:require [makejack.api.core :as makejack] [makejack.impl.resolve :as resolve])) (defn run-command [cmd args options] (let [config (makejack/load-config {:profile (:profile options) :dir (:dir options)}) target-kw (keyword cm...
dd08fca909bbc91d8d5c390ab59cf1795037b7f1a3b3da4198d737df09720bb9
gedge-platform/gedge-platform
jose_jwa_poly1305.erl
-*- mode : erlang ; tab - width : 4 ; indent - tabs - mode : 1 ; st - rulers : [ 70 ] -*- %% vim: ts=4 sw=4 ft=erlang noet %%%------------------------------------------------------------------- @author < > 2014 - 2016 , @doc ChaCha20 and for IETF Protocols %%% See %%% @end Created : 31 May 2016 by ...
null
https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/jose/src/jwa/jose_jwa_poly1305.erl
erlang
vim: ts=4 sw=4 ft=erlang noet ------------------------------------------------------------------- See @end ------------------------------------------------------------------- API ==================================================================== API functions ====================================================...
-*- mode : erlang ; tab - width : 4 ; indent - tabs - mode : 1 ; st - rulers : [ 70 ] -*- @author < > 2014 - 2016 , @doc ChaCha20 and for IETF Protocols Created : 31 May 2016 by < > -module(jose_jwa_poly1305). -export([mac/2]). -export([mac_init/1]). -export([mac_update/2]). -export([mac_final/1]...
89dcea7bc7dab637e26e49292e3354a44b8848c278af158f1aea4965850721f9
jwiegley/gitlib
Doctest.hs
module Main where import Test.DocTest import System.Directory import System.FilePath import Control.Applicative import Control.Monad import Data.List main :: IO () main = getSources >>= \sources -> doctest $ "-isrc" : "-idist/build/autogen" : "-optP-include" : "-optPdist/build/autogen/cabal_macros.h" : so...
null
https://raw.githubusercontent.com/jwiegley/gitlib/7d7ee1a62de723e3ebbbcaf7c262d6b43936329c/gitlib/test/Doctest.hs
haskell
module Main where import Test.DocTest import System.Directory import System.FilePath import Control.Applicative import Control.Monad import Data.List main :: IO () main = getSources >>= \sources -> doctest $ "-isrc" : "-idist/build/autogen" : "-optP-include" : "-optPdist/build/autogen/cabal_macros.h" : so...
5aebfd9d016e24ddf7cf0bc1ab7e018b4ea51b62d1a86a9e874ce870adb23187
SnootyMonkey/Falkland-CMS
taxonomy_create.clj
(ns fcms.unit.resources.taxonomy.taxonomy-create)
null
https://raw.githubusercontent.com/SnootyMonkey/Falkland-CMS/bd653c23dd458609b652dfac3f0f2f11526f00d1/test/fcms/unit/resources/taxonomy/taxonomy_create.clj
clojure
(ns fcms.unit.resources.taxonomy.taxonomy-create)
6945c8443571b18827c30e2459978deb85719b7322f9ee9495036343e8503968
thoughtbot/typebot
Types.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE GeneralizedNewtypeDeriving # module Types where import Control.Monad.IO.Class (MonadIO) import Control.Monad.Reader (MonadReader, ReaderT) import Data.Aeson (Object, FromJSON(parseJSON), withObject, (.:), (.:?)) import Data.Aeson.Ty...
null
https://raw.githubusercontent.com/thoughtbot/typebot/b9b53e4e90835928e302ae8bf3112f334c718ab2/src/Types.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE GeneralizedNewtypeDeriving # module Types where import Control.Monad.IO.Class (MonadIO) import Control.Monad.Reader (MonadReader, ReaderT) import Data.Aeson (Object, FromJSON(parseJSON), withObject, (.:), (.:?)) import Data.Aeson.Types (Parser) import Data....
525b43ad0a8fbc5a6388fc97e7885392f7d2fd807401e29a3d955e8519b046a2
haskell/hie-bios
cabal.hs
module Main (main) where import Data.Maybe (fromMaybe) import System.Directory (getCurrentDirectory) import System.Environment (getArgs, getEnv, lookupEnv) import System.Exit (exitWith) import System.Process (spawnProcess, waitForProcess) import System.IO (openFile, hClose, hPutStrLn, IOMode(..)) main :: IO () main =...
null
https://raw.githubusercontent.com/haskell/hie-bios/ef0e4f5301fbd9483a6b5b6d3adf41517b4dd2fa/wrappers/cabal.hs
haskell
module Main (main) where import Data.Maybe (fromMaybe) import System.Directory (getCurrentDirectory) import System.Environment (getArgs, getEnv, lookupEnv) import System.Exit (exitWith) import System.Process (spawnProcess, waitForProcess) import System.IO (openFile, hClose, hPutStrLn, IOMode(..)) main :: IO () main =...
510dc86c3e860ec7f40a89ab764b35ebb9cbc3c0b3bedf5fb9c4cc4896c9218f
hyperfiddle/electric
photon_macroexpansion.cljc
(ns dustin.scratch (:require [hyperfiddle.rcf :as rcf :refer [tests ! % with]] [hyperfiddle.photon :as p] [hyperfiddle.photon-dom :as dom] [missionary.core :as m]) #?(:cljs (:require-macros dustin.scratch))) (hyperfiddle.rcf/enable!) (tests (macroexpand '(p/def db (inc 42))) ...
null
https://raw.githubusercontent.com/hyperfiddle/electric/1c6c3891cbf13123fef8d33e6555d300f0dac134/scratch/dustin/y2022/photon/photon_macroexpansion.cljc
clojure
macroexpands to nothing
(ns dustin.scratch (:require [hyperfiddle.rcf :as rcf :refer [tests ! % with]] [hyperfiddle.photon :as p] [hyperfiddle.photon-dom :as dom] [missionary.core :as m]) #?(:cljs (:require-macros dustin.scratch))) (hyperfiddle.rcf/enable!) (tests (macroexpand '(p/def db (inc 42))) ...
c72ea40d1490f81b05a21fc63d85af97ffff4f48806b79fe43861f818245db51
larcenists/larceny
16seq2.scm
(bits 16) (text (seq (nop) (nop) (seq (nop) (nop) z! (nop) (inv z!) (nop)) (seq (nop)))) 00000000 90 nop 00000001 90 nop 00000002 90 nop 00000003 90 nop 00000004 7505 jnz 0xb 0000...
null
https://raw.githubusercontent.com/larcenists/larceny/fef550c7d3923deb7a5a1ccd5a628e54cf231c75/src/Lib/Sassy/tests/prims16/16seq2.scm
scheme
(bits 16) (text (seq (nop) (nop) (seq (nop) (nop) z! (nop) (inv z!) (nop)) (seq (nop)))) 00000000 90 nop 00000001 90 nop 00000002 90 nop 00000003 90 nop 00000004 7505 jnz 0xb 0000...
ad0ee146912b8b3af446692f68780ebe436c5887c0822e3dab2ac295f445f4f1
AbstractMachinesLab/caramel
token_latest.ml
type token = Parser.token = | WITH | WHILE | WHEN | VIRTUAL | VAL | UNDERSCORE | UIDENT of string | TYPE | TRY | TRUE | TO | TILDE | THEN | STRUCT | STRING of (string * Location.t * string option) | STAR | SIG | SEMISEMI | SEMI | RPAREN | REC | RBRACKET | RBRACE | QUOTED_...
null
https://raw.githubusercontent.com/AbstractMachinesLab/caramel/7d4e505d6032e22a630d2e3bd7085b77d0efbb0c/vendor/ocamlformat-0.17.0/vendor/token-latest/411/token_latest.ml
ocaml
type token = Parser.token = | WITH | WHILE | WHEN | VIRTUAL | VAL | UNDERSCORE | UIDENT of string | TYPE | TRY | TRUE | TO | TILDE | THEN | STRUCT | STRING of (string * Location.t * string option) | STAR | SIG | SEMISEMI | SEMI | RPAREN | REC | RBRACKET | RBRACE | QUOTED_...
d4089136f4bfd52a9e07f9aac22b06fa4d5545c8f4c12cf20656ac1073ad80b2
emc2/clash-riscv
Opcode16.hs
Copyright ( c ) 2017 . All rights reserved . -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions -- are met: 1 . Redistributions of source code must retain the above copyright -- notice, this list of conditions and the...
null
https://raw.githubusercontent.com/emc2/clash-riscv/e7404e5f9ff6b1eb22274bf7daa34bbd2768f2a3/src/RISCV/ISA/Opcodes/Opcode16.hs
haskell
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: notice, this list of conditions and the following disclaimer. notice, this list of conditions and the following disclaimer in the documentation and/or other mate...
Copyright ( c ) 2017 . All rights reserved . 1 . Redistributions of source code must retain the above copyright 2 . Redistributions in binary form must reproduce the above copyright 3 . Neither the name of the author nor the names of any contributors THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTO...
1dfc6824862a28e5d948bed48699fa9d361da446cc37d7021a1d8cc984048d9a
schemedoc/ffi-cookbook
uname-chibi.scm
(import (scheme base) (scheme write) (uname-chibi)) (define (displayln x) (display x) (newline)) (vector-for-each displayln (uname))
null
https://raw.githubusercontent.com/schemedoc/ffi-cookbook/75d3594135b5a4c5deea9a064a1aef5a95312f85/unix-syscall/uname-chibi.scm
scheme
(import (scheme base) (scheme write) (uname-chibi)) (define (displayln x) (display x) (newline)) (vector-for-each displayln (uname))
005700dc1736c08111017466be40badd0fd8e01b103e3e04bc151b74432096bc
jonase/eastwood
red.clj
(ns testcases.unused-fn-args.multimethods.red) (defn foo [] (fn [a b c] ;; all args unintentionally unused (rand)))
null
https://raw.githubusercontent.com/jonase/eastwood/1f0bbf4397a95f7ae326edd990de621e9949a2e5/cases/testcases/unused_fn_args/multimethods/red.clj
clojure
all args unintentionally unused
(ns testcases.unused-fn-args.multimethods.red) (defn foo [] (fn [a b c] (rand)))
d7b3acc7169eb362b488032e72a36d85221d386fbffcddc65808a1dc736ec876
dgiot/dgiot
dgiot_factory_calendar.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 - 2021 DGIOT Technologies Co. , Ltd. All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy...
null
https://raw.githubusercontent.com/dgiot/dgiot/641ebb51a2ed75ab4d04ca1addf126000a362040/apps/dgiot_factory/src/dgiot_factory_calendar.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2020 - 2021 DGIOT Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(dgiot_factory_calendar). -author("jonhl"). -include_lib("dgiot/include/logger.hrl"). -...
8f84f79b3306220208efa3f9e735030adebd1b758d9fa52f582e34ccb9404fc6
shop-planner/shop3
p19.lisp
(IN-PACKAGE :SHOP2-ROVERS) (DEFPROBLEM ROVERPROB19 ROVER ((OBJECTIVE OBJECTIVE7) (OBJECTIVE OBJECTIVE6) (OBJECTIVE OBJECTIVE5) (OBJECTIVE OBJECTIVE4) (OBJECTIVE OBJECTIVE3) (OBJECTIVE OBJECTIVE2) (OBJECTIVE OBJECTIVE1) (OBJECTIVE OBJECTIVE0) (CAMERA CAME...
null
https://raw.githubusercontent.com/shop-planner/shop3/b04d12bdf83e40590fe44bb5c68952f3fd0b5b1d/shop3/examples/rovers/strips/p19.lisp
lisp
(IN-PACKAGE :SHOP2-ROVERS) (DEFPROBLEM ROVERPROB19 ROVER ((OBJECTIVE OBJECTIVE7) (OBJECTIVE OBJECTIVE6) (OBJECTIVE OBJECTIVE5) (OBJECTIVE OBJECTIVE4) (OBJECTIVE OBJECTIVE3) (OBJECTIVE OBJECTIVE2) (OBJECTIVE OBJECTIVE1) (OBJECTIVE OBJECTIVE0) (CAMERA CAME...
74fc8036936b4365aec658f85ec70f9d576aa72e4257ed69b425d8cbb71966e8
resttime/cl-liballegro
keyboard.lisp
(in-package :cl-liballegro) Keycodes (defcenum keycodes (:a 1) (:b 2) (:c 3) (:d 4) (:e 5) (:f 6) (:g 7) (:h 8) (:i 9) (:j 10) (:k 11) (:l 12) (:m 13) (:n 14) (:o 15) (:p 16) (:q 17) (:r 18) (:s 19) (:t 20) (:u 21) (:v 22) (:w 23) (:x 24) (:y 25) (:z 26) (:0 27)...
null
https://raw.githubusercontent.com/resttime/cl-liballegro/0f8a3a77d5c81fe14352d9a799cba20e1a3a90b4/src/constants/keyboard.lisp
lisp
Keyboard modifier flags
(in-package :cl-liballegro) Keycodes (defcenum keycodes (:a 1) (:b 2) (:c 3) (:d 4) (:e 5) (:f 6) (:g 7) (:h 8) (:i 9) (:j 10) (:k 11) (:l 12) (:m 13) (:n 14) (:o 15) (:p 16) (:q 17) (:r 18) (:s 19) (:t 20) (:u 21) (:v 22) (:w 23) (:x 24) (:y 25) (:z 26) (:0 27)...
ebd9a390665435af37e5e83a09e1bdbcbd1ba97b46514082faab48c3759d80aa
oden-lang/oden
InferDefinitionSpec.hs
module Oden.Infer.InferDefinitionSpec where import Test.Hspec import qualified Data.Set as Set import Oden.Core.Typed as Typed import Oden.Core.Untyped as Untyped import Oden.Core.Expr import Oden.QualifiedName import Oden.Environment import ...
null
https://raw.githubusercontent.com/oden-lang/oden/10c99b59c8b77c4db51ade9a4d8f9573db7f4d14/test/Oden/Infer/InferDefinitionSpec.hs
haskell
module Oden.Infer.InferDefinitionSpec where import Test.Hspec import qualified Data.Set as Set import Oden.Core.Typed as Typed import Oden.Core.Untyped as Untyped import Oden.Core.Expr import Oden.QualifiedName import Oden.Environment import ...
c9968eb29f522d0d2aa5f46fa7030953b3e6a812695181b925ce5fe764d91c28
defaultxr/cl-patterns
patterns.lisp
;;;; patterns.lisp - basic pattern functionality (`defpattern', etc) and a variety of basic patterns implemented with it. (in-package #:cl-patterns) ;;; pattern glue (defun make-default-event () "Get `*event*' if it's not nil, or get a fresh empty event." (or *event* (event))) (defvar *patterns* (list) "List ...
null
https://raw.githubusercontent.com/defaultxr/cl-patterns/d7ee3a64b031240149dcac676ac11df594cff371/src/patterns/patterns.lisp
lisp
patterns.lisp - basic pattern functionality (`defpattern', etc) and a variety of basic patterns implemented with it. pattern glue FIX: don't show arguments that are set to the defaults? pattern pstream FIX: can we avoid making this inherit from pattern? FIX: rename to this-index ? = > 1 = > 1 fallback method;...
(in-package #:cl-patterns) (defun make-default-event () "Get `*event*' if it's not nil, or get a fresh empty event." (or *event* (event))) (defvar *patterns* (list) "List of the names of all defined pattern types.") (defmacro defpattern (name superclasses slots &key documentation defun) "Define a pattern. ...
9a4874410da48a3b18bf8472193a164b9e67f6f117b3d85f69764089d550d41c
mdesharnais/mini-ml
TypeSubstitution.hs
module TypeSubstitution where import qualified Data.List as List import qualified Data.Maybe as Maybe import Type import TypeContext(Context) type TySubst = [(TyVar, Type)] type AnSubst = [(AnVar, AnVar)] type Subst = (TySubst, AnSubst) empty :: Subst empty = ([], []) addTy :: (TyVar, Type) -> Subst -> Subst addTy...
null
https://raw.githubusercontent.com/mdesharnais/mini-ml/304017aab02c04ed4fbd9420405d3a0483dcba37/src/TypeSubstitution.hs
haskell
module TypeSubstitution where import qualified Data.List as List import qualified Data.Maybe as Maybe import Type import TypeContext(Context) type TySubst = [(TyVar, Type)] type AnSubst = [(AnVar, AnVar)] type Subst = (TySubst, AnSubst) empty :: Subst empty = ([], []) addTy :: (TyVar, Type) -> Subst -> Subst addTy...