_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 |
|---|---|---|---|---|---|---|---|---|
6a2dedd17e89b86e8c97f7b1c349cfb8b1a16f511283d0a7ceb8bb957a0b027a | bmeurer/ocamljit2 | envaux.ml | (***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
, projet Cr... | null | https://raw.githubusercontent.com/bmeurer/ocamljit2/ef06db5c688c1160acc1de1f63c29473bcd0055c/debugger/envaux.ml | ocaml | *********************************************************************
Objective Caml
... | , projet Cristal , INRIA Rocquencourt
Objective Caml port by and
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 .
... |
3383bf12e1f6add3b2d892ed9a26936b853ef1833ab3b8d488b33b55f6ef47db | cstar/ejabberd-old | node_dispatch.erl | %%% ====================================================================
` ` The contents of this file are subject to the Erlang Public License ,
Version 1.1 , ( the " License " ) ; you may not use this file except in
%%% compliance with the License. You should have received a copy of the
%%% Erlang Public License ... | null | https://raw.githubusercontent.com/cstar/ejabberd-old/559f8b6b0a935710fe93e9afacb4270d6d6ea00f/src/mod_pubsub/node_dispatch.erl | erlang | ====================================================================
compliance with the License. You should have received a copy of the
Erlang Public License along with this software. If not, it can be
retrieved via the world wide web at /.
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
th... | ` ` The contents of this file are subject to the Erlang Public License ,
Version 1.1 , ( the " License " ) ; you may not use this file except in
Software distributed under the License is distributed on an " AS IS "
The Initial Developer of the Original Code is ProcessOne .
Portions created by ProcessOne are C... |
b7c998892d5df128f3d1439c8bdae5e9ca3121b13283a2288e4369148c21883c | well-typed-lightbulbs/ocaml-esp32 | Tests.ml | (* TEST
* expect
*)
(* Subtyping is "syntactic" *)
fun (x : < x : int >) y z -> (y :> 'a), (x :> 'a), (z :> 'a);;
[%%expect{|
- : < x : int > ->
< x : int > -> < x : int > -> < x : int > * < x : int > * < x : int >
= <fun>
|}];;
(* - : (< x : int > as 'a) -> 'a -> 'a * 'a = <fun> *)
(* Quirks of class typing. ... | null | https://raw.githubusercontent.com/well-typed-lightbulbs/ocaml-esp32/c24fcbfbee0e3aa6bb71c9b467c60c6bac326cc7/testsuite/tests/typing-objects/Tests.ml | ocaml | TEST
* expect
Subtyping is "syntactic"
- : (< x : int > as 'a) -> 'a -> 'a * 'a = <fun>
Quirks of class typing.
class ['a] c : unit -> object constraint 'a = int method f : 'a c end
and ['a] d : unit -> object constraint 'a = int method f : 'a c end
'a free in class d
Create instance #c
class virtu... |
fun (x : < x : int >) y z -> (y :> 'a), (x :> 'a), (z :> 'a);;
[%%expect{|
- : < x : int > ->
< x : int > -> < x : int > -> < x : int > * < x : int > * < x : int >
= <fun>
|}];;
class ['a] c () = object
method f = (new c (): int c)
end and ['a] d () = object
inherit ['a] c ()
end;;
[%%expect{|
class ['a] c : ... |
6661649f1d25282c85aa4e741ef2bd6d72239c68f5718e8deac76fb7d9d2fc45 | cse-bristol/110-thermos-ui | user_fields.clj | This file is part of THERMOS , copyright © Centre for Sustainable Energy , 2017 - 2021
Licensed under the Reciprocal Public License v1.5 . See LICENSE for licensing details .
(ns thermos-backend.content-migrations.user-fields
(:require [thermos-specs.document :as document]
[thermos-specs.candidate :a... | null | https://raw.githubusercontent.com/cse-bristol/110-thermos-ui/e13b96329f3c95e5a10bae431e8ae9bccdb475f4/src/thermos_backend/content_migrations/user_fields.clj | clojure | This file is part of THERMOS , copyright © Centre for Sustainable Energy , 2017 - 2021
Licensed under the Reciprocal Public License v1.5 . See LICENSE for licensing details .
(ns thermos-backend.content-migrations.user-fields
(:require [thermos-specs.document :as document]
[thermos-specs.candidate :a... | |
3606be9390e111c61018bed80d193eb7b13f13e04802efdb738666ead6f124bc | mclumd/Meta-AQUA | frame-sys-def.lisp | -*- Mode : LISP ; Syntax : Common - lisp ; Package : USER ; Base : 10 -*-
(in-package :user)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;
;;;; A Frame System for conceptual construction
;;;;
Copyright ( C ) 1994 ( )
;;;;
20 May 1994
;;... | null | https://raw.githubusercontent.com/mclumd/Meta-AQUA/e4d4f83330fd07d1354aec245a49bde9e246c618/Frame/frame-sys-def.lisp | lisp | Syntax : Common - lisp ; Package : USER ; Base : 10 -*-
A Frame System for conceptual construction
File: frame-sys-def.lisp
*******************************************************
This program is free software; you can redistribute it and/or modify it
either versi... | (in-package :user)
Copyright ( C ) 1994 ( )
20 May 1994
IMPORTANT , YOU MUST CHANGE THE : DEFAULT - PATHNAME BELOW .
under the terms of the GNU General Public License as published by the Free
You should have received a copy of the GNU General Public License along
Ma... |
a5bf30a64457ff613acd0584ddddff55a4e6cbe22abd4f9192018a2615b2649f | nick8325/quickspec | Exp.hs | # LANGUAGE DeriveDataTypeable , DeriveGeneric #
# LANGUAGE EmptyDataDecls , RankNTypes , ScopedTypeVariables #
# LANGUAGE MultiParamTypeClasses , FunctionalDependencies #
# LANGUAGE StandaloneDeriving #
# LANGUAGE TypeOperators , PolyKinds #
module Main where
import Prelude hiding (sequence)
import Data.Typeable
import... | null | https://raw.githubusercontent.com/nick8325/quickspec/cb61f719d3d667674431867037ff44dec22ca4f9/examples/weird/Exp.hs | haskell | # LANGUAGE DeriveDataTypeable , DeriveGeneric #
# LANGUAGE EmptyDataDecls , RankNTypes , ScopedTypeVariables #
# LANGUAGE MultiParamTypeClasses , FunctionalDependencies #
# LANGUAGE StandaloneDeriving #
# LANGUAGE TypeOperators , PolyKinds #
module Main where
import Prelude hiding (sequence)
import Data.Typeable
import... | |
a46ad7726a2dd1979da550a05ec43ffe0e6932c26752ae055e2ef8d1c7a9ca22 | haskell-webgear/webgear | Body.hs | # OPTIONS_GHC -Wno - orphans #
| OpenApi implementation of ' Body ' trait .
module WebGear.OpenApi.Trait.Body where
import Control.Lens ((&), (.~), (?~))
import Data.Maybe (fromMaybe)
import Data.OpenApi hiding (Response)
import Data.OpenApi.Declare (runDeclare)
import Data.Proxy (Proxy (..))
import Data.Text (Text... | null | https://raw.githubusercontent.com/haskell-webgear/webgear/52e90e28d81e4ce6d7c8e63b3f9769f6629b031f/webgear-openapi/src/WebGear/OpenApi/Trait/Body.hs | haskell | # OPTIONS_GHC -Wno - orphans #
| OpenApi implementation of ' Body ' trait .
module WebGear.OpenApi.Trait.Body where
import Control.Lens ((&), (.~), (?~))
import Data.Maybe (fromMaybe)
import Data.OpenApi hiding (Response)
import Data.OpenApi.Declare (runDeclare)
import Data.Proxy (Proxy (..))
import Data.Text (Text... | |
d16571b5c7fa28326a304910e70b5924e6cb2e944fc10d3e9becdea4c51ce5b8 | haskell-effectful/effectful | ReaderTests.hs | module ReaderTests (readerTests) where
import Test.Tasty
import Test.Tasty.HUnit
import Effectful
import Effectful.Dispatch.Dynamic
import Effectful.Reader.Dynamic
import qualified Utils as U
readerTests :: TestTree
readerTests = testGroup "Reader"
[ testCase "local works in handlers (dynamic/static)" $ test_local... | null | https://raw.githubusercontent.com/haskell-effectful/effectful/0c66324baf95e5479c3b0bea4fea49f3ba41af22/effectful/tests/ReaderTests.hs | haskell | | Purely dynamic Reader for testing purposes. | module ReaderTests (readerTests) where
import Test.Tasty
import Test.Tasty.HUnit
import Effectful
import Effectful.Dispatch.Dynamic
import Effectful.Reader.Dynamic
import qualified Utils as U
readerTests :: TestTree
readerTests = testGroup "Reader"
[ testCase "local works in handlers (dynamic/static)" $ test_local... |
e8298f55c1d2fe08e15096a4796f7a2fccd4fbbe7a13b89821fddd32110c9a60 | REPROSEC/dolev-yao-star | Vale_Test_X64_Args.ml | open Prims
let (va_code_Test :
Prims.bool ->
(Vale_X64_Decls.ins, Vale_X64_Decls.ocmp) Vale_X64_Machine_s.precode)
=
fun win ->
Vale_X64_Machine_s.Block
[Vale_X64_InsMem.va_code_CreateHeaplets ();
Vale_X64_InsBasic.va_code_Mov64
(Vale_X64_Machine_s.OReg Prims.int_zero)
(Vale_X6... | null | https://raw.githubusercontent.com/REPROSEC/dolev-yao-star/d97a8dd4d07f2322437f186e4db6a1f4d5ee9230/concrete/hacl-star-snapshot/ml/Vale_Test_X64_Args.ml | ocaml | open Prims
let (va_code_Test :
Prims.bool ->
(Vale_X64_Decls.ins, Vale_X64_Decls.ocmp) Vale_X64_Machine_s.precode)
=
fun win ->
Vale_X64_Machine_s.Block
[Vale_X64_InsMem.va_code_CreateHeaplets ();
Vale_X64_InsBasic.va_code_Mov64
(Vale_X64_Machine_s.OReg Prims.int_zero)
(Vale_X6... | |
e45ad3b866b06dca4d3fd0b325d6cab4fcda852570c011b05cce6eebe1f94bc3 | herd/herdtools7 | sem.mli | (****************************************************************************)
(* the diy toolsuite *)
(* *)
, University College London , UK .
, INRIA Par... | null | https://raw.githubusercontent.com/herd/herdtools7/46024dd06bb0d2d862cba051ead2dd76a5434f60/herd/sem.mli | ocaml | **************************************************************************
the diy toolsuite
en Automatique and ... | , University College London , UK .
, INRIA Paris - Rocquencourt , France .
Copyright 2010 - present Institut National de Recherche en Informatique et
This software is governed by the CeCILL - B license under French law and
modify and/ or redistribu... |
485d3d5cf8558d68ab3e11513cab81f0abc5193824df84e42628f22677bd2763 | db48x/xe2 | asteroid.lisp | (in-package :void)
;;; An asteroid.
(defvar *asteroid-count* 0)
(defcell asteroid
(name :initform "Asteroid")
(categories :initform '(:actor :sticky :target))
(hit-points :initform (make-stat :base 1 :min 0))
(movement-cost :initform (make-stat :base 10))
(stuck-to :initform nil)
(direction :initform :no... | null | https://raw.githubusercontent.com/db48x/xe2/7896fcc69f5c6e28eaf6f6abb7966d6663370a66/void/asteroid.lisp | lisp | An asteroid.
if free, float
otherwise bounce (when free)
now move the stuck asteroids
reset direction for stuck mines
it's safe. move as a group.
put it back where it was
randomly sprinkle some fire around edges | (in-package :void)
(defvar *asteroid-count* 0)
(defcell asteroid
(name :initform "Asteroid")
(categories :initform '(:actor :sticky :target))
(hit-points :initform (make-stat :base 1 :min 0))
(movement-cost :initform (make-stat :base 10))
(stuck-to :initform nil)
(direction :initform :north)
(stepping ... |
51467afbb8031d86a0a7674c07fafbb1adcb44338257a8a084f4d19053852455 | cram2/cram | select-direction.lisp | FFT where direction is selected .
, Sat Oct 24 2009 - 12:55
Time - stamp : < 2012 - 01 - 13 12:01:30EST select-direction.lisp >
;;
Copyright 2009 , 2011 ,
Distributed under the terms of the GNU General Public License
;;
;; This program is free software: you can redistribute it and/or modify
it under ... | null | https://raw.githubusercontent.com/cram2/cram/dcb73031ee944d04215bbff9e98b9e8c210ef6c5/cram_3rdparty/gsll/src/fast-fourier-transforms/select-direction.lisp | lisp |
This program is free software: you can redistribute it and/or modify
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Publi... | FFT where direction is selected .
, Sat Oct 24 2009 - 12:55
Time - stamp : < 2012 - 01 - 13 12:01:30EST select-direction.lisp >
Copyright 2009 , 2011 ,
Distributed under the terms of the GNU General Public License
it under the terms of the GNU General Public License as published by
the Free Softwar... |
061f146c271ef7d5d141083b19bb2e1a6eefb21fd3f3acde71dac1d984614eff | Carnap/Carnap | Hardegree.hs | # LANGUAGE FlexibleContexts , FlexibleInstances , MultiParamTypeClasses #
module Carnap.Languages.ModalFirstOrder.Logic.Hardegree
(hardegreeMPLCalc,parseHardegreeMPL)
where
import Text.Parsec
import qualified Data.Map as M
import Carnap.Core.Data.Types (Form)
import Carnap.Languages.PurePropositional.Syntax
... | null | https://raw.githubusercontent.com/Carnap/Carnap/99546e377008247c5a1e8de1e294aac8e22584d7/Carnap/src/Carnap/Languages/ModalFirstOrder/Logic/Hardegree.hs | haskell | XXX: Would be nice to avoid this boilerplate, via some way of
lifting global constraints | # LANGUAGE FlexibleContexts , FlexibleInstances , MultiParamTypeClasses #
module Carnap.Languages.ModalFirstOrder.Logic.Hardegree
(hardegreeMPLCalc,parseHardegreeMPL)
where
import Text.Parsec
import qualified Data.Map as M
import Carnap.Core.Data.Types (Form)
import Carnap.Languages.PurePropositional.Syntax
... |
28af4acf16de1fb0a1b19623ba35b877ef91e021b053282b400cf8339aab0c1c | tolysz/ghcjs-stack | TempFile.hs | # LANGUAGE CPP #
{-# OPTIONS_HADDOCK hide #-}
module Distribution.Compat.Internal.TempFile (
openTempFile,
openBinaryTempFile,
openNewBinaryFile,
createTempDirectory,
) where
import Distribution.Compat.Exception
import System.FilePath ((</>))
import Foreign.C (CInt, eEXIST, getErrno, err... | null | https://raw.githubusercontent.com/tolysz/ghcjs-stack/83d5be83e87286d984e89635d5926702c55b9f29/special/cabal/Cabal/Distribution/Compat/Internal/TempFile.hs | haskell | # OPTIONS_HADDOCK hide #
------------------------------------------------------------
* temporary files
------------------------------------------------------------
TODO: This file should probably be removed.
This is a copy/paste of the openBinaryTempFile definition, but
needs to be changed to make this better.
... | # LANGUAGE CPP #
module Distribution.Compat.Internal.TempFile (
openTempFile,
openBinaryTempFile,
openNewBinaryFile,
createTempDirectory,
) where
import Distribution.Compat.Exception
import System.FilePath ((</>))
import Foreign.C (CInt, eEXIST, getErrno, errnoToIOError)
import System.I... |
e9797eaf4ffd76ec8e85736478672f93a098b97559c02f6978b164fb9b472605 | arowM/heterocephalus | Option.hs | # LANGUAGE CPP #
# LANGUAGE FlexibleContexts #
module Text.Heterocephalus.Parse.Option where
import Control.Monad.Reader (MonadReader, reader)
data ParseOptions = ParseOptions
{ parseOptionsControlPrefix :: Char
, parseOptionsVariablePrefix :: Char
}
-- | Default set of parser options.
--
-- Sets 'parseOption... | null | https://raw.githubusercontent.com/arowM/heterocephalus/91dde9280993577a2b69cb2e444ab4963bd7b164/src/Text/Heterocephalus/Parse/Option.hs | haskell | | Default set of parser options.
Sets 'parseOptionsControlPrefix' to @\'%\'@ and
^ The control prefix.
^ The variable prefix. | # LANGUAGE CPP #
# LANGUAGE FlexibleContexts #
module Text.Heterocephalus.Parse.Option where
import Control.Monad.Reader (MonadReader, reader)
data ParseOptions = ParseOptions
{ parseOptionsControlPrefix :: Char
, parseOptionsVariablePrefix :: Char
}
' parseOptionsVariablePrefix ' to @\'#\'@.
defaultParseOp... |
862bab95d032647682299173cc874370423fdc782dd218bb89f30dc107072c00 | brendanhay/terrafomo | Settings.hs | -- This module is auto-generated.
# LANGUAGE NoImplicitPrelude #
# LANGUAGE RecordWildCards #
# LANGUAGE StrictData #
# LANGUAGE UndecidableInstances #
# OPTIONS_GHC -fno - warn - unused - imports #
-- |
Module : . . Settings
Copyright : ( c ) 2017 - 2018
License : Mozill... | null | https://raw.githubusercontent.com/brendanhay/terrafomo/387a0e9341fb9cd5543ef8332dea126f50f1070e/provider/terrafomo-docker/gen/Terrafomo/Docker/Settings.hs | haskell | This module is auto-generated.
|
Stability : auto-generated
* ContainerDevices
* ContainerHost
* ContainerUpload
* ServiceBindOptions
* ServiceTaskSpec
* ServiceResources
* ServiceReservation
* ServiceGenericResources
* ServiceLimits
* ServicePlacement
* ServicePlatforms
* ServiceLogDriver
* ServiceH... |
# LANGUAGE NoImplicitPrelude #
# LANGUAGE RecordWildCards #
# LANGUAGE StrictData #
# LANGUAGE UndecidableInstances #
# OPTIONS_GHC -fno - warn - unused - imports #
Module : . . Settings
Copyright : ( c ) 2017 - 2018
License : Mozilla Public License , v. 2.0 .
Maintaine... |
4104139a4cee60e051d9eefd71478979741d5bf3ace2258a314a0af9eef4a7a9 | nsg-ethz/O4 | instantiation.rkt | #lang racket/base
Instantiation Backend
; ---------------------------------------
(provide instantiation)
; Implementation
; ---------------------------------------
(require br/macro
o4/backend/name o4/context o4/utils/util
(for-syntax racket/base))
; Instantiation
(define-macro-cases instantiati... | null | https://raw.githubusercontent.com/nsg-ethz/O4/870f6f78a6f7bb1e9e1502e29ff0048e5e1723c5/o4/backend/instantiation.rkt | racket | ---------------------------------------
Implementation
---------------------------------------
Instantiation
An extern instance can be a factory body, so we might need to replace its name.
In case the instantiation has an array type, we need to create multiple new instances.
An extern instance can be a factory b... | #lang racket/base
Instantiation Backend
(provide instantiation)
(require br/macro
o4/backend/name o4/context o4/utils/util
(for-syntax racket/base))
(define-macro-cases instantiation
[(instantiation TYPE-NAME ARGUMENT-LIST NAME)
#'(lambda (ctx)
(let*-values ([(ctx type-name-str type-n... |
fba9d8e0f2251152d9935bad98eebc27129584a007989eb4719c7f3501ff8edb | quephird/saml-test | project.clj | (defproject saml-test "0.1.0-SNAPSHOT"
:description "A demonstration project for integrating a SSO IDP using SAML into a Clojure Web application"
:url "-test"
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.9.0"]
[compojure "1.6.1"]
... | null | https://raw.githubusercontent.com/quephird/saml-test/e561e1423d8cc36264b7e4318e6e6100760f11b1/project.clj | clojure | (defproject saml-test "0.1.0-SNAPSHOT"
:description "A demonstration project for integrating a SSO IDP using SAML into a Clojure Web application"
:url "-test"
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.9.0"]
[compojure "1.6.1"]
... | |
6d079c8294118d97193d62f78b6eb4c93efc605091b8768cdd327ca695d780aa | untangled-web/untangled-client | om_plumbing_spec.cljs | (ns untangled.client.impl.om-plumbing-spec
(:require
[om.next :as om]
[untangled.client.impl.om-plumbing :as impl]
[untangled.i18n.core :as i18n]
[cljs.core.async :as async]
[untangled-spec.core :refer-macros [specification behavior assertions provided component when-mocking]]
[cljs.test :refe... | null | https://raw.githubusercontent.com/untangled-web/untangled-client/d9b350db3a5e19910692ee70281d8c156fd3a3f9/spec/untangled/client/impl/om_plumbing_spec.cljs | clojure | this one isn't in the remap, and should not be touched
singleton
singleton with no result
list
list with no results | (ns untangled.client.impl.om-plumbing-spec
(:require
[om.next :as om]
[untangled.client.impl.om-plumbing :as impl]
[untangled.i18n.core :as i18n]
[cljs.core.async :as async]
[untangled-spec.core :refer-macros [specification behavior assertions provided component when-mocking]]
[cljs.test :refe... |
8f8315a3996ec52abb076c5ba368903936c544ac75bc1279f3cb311f69cc2d6d | spechub/Hets | Id.hs | {-# LANGUAGE DeriveDataTypeable #-}
|
Module : ./Common / Id.hs
Description : positions , simple and identifiers
Copyright : ( c ) and and Uni Bremen 2002 - 2003
License : GPLv2 or higher , see LICENSE.txt
Maintainer :
Stability : provisional
Portability : portabl... | null | https://raw.githubusercontent.com/spechub/Hets/1f573bd99c9af7f8c9fc83cbd00083d928caaead/Common/Id.hs | haskell | # LANGUAGE DeriveDataTypeable #
do use in data types that derive d directly
| position lists with trivial equality
ignore all ranges in comparisons
| construct a new position
| increment the column counter
| show a position
| tokens as supplied by the scanner
| simple ids are just tokens
| construct a token wi... | |
Module : ./Common / Id.hs
Description : positions , simple and identifiers
Copyright : ( c ) and and Uni Bremen 2002 - 2003
License : GPLv2 or higher , see LICENSE.txt
Maintainer :
Stability : provisional
Portability : portable
This module supplies positions ... |
88865033c39da916566d06d6081435b855f566d4bc3cfdd47be0150a5030cea8 | charlieg/Sparser | defining-html.lisp | ;;; -*- Mode:LISP; Syntax:Common-Lisp; Package:(SPARSER LISP) -*-
copyright ( c ) 1995 -- all rights reserved
;;;
;;; File: "defining html"
;;; Module: "grammar;rules:SGML:"
version : September 1995
initiated 9/20/95 . Moved from Interface to Grammar 10/5
(in-package :sparser)
;;;---------... | null | https://raw.githubusercontent.com/charlieg/Sparser/b9bb7d01d2e40f783f3214fc104062db3d15e608/Sparser/code/s/grammar/rules/SGML/defining-html.lisp | lisp | -*- Mode:LISP; Syntax:Common-Lisp; Package:(SPARSER LISP) -*-
File: "defining html"
Module: "grammar;rules:SGML:"
-----------
----------- | copyright ( c ) 1995 -- all rights reserved
version : September 1995
initiated 9/20/95 . Moved from Interface to Grammar 10/5
(in-package :sparser)
auto - defs
(define-autodef-data 'html-markup-element
:module *sgml*
:display-string "HTML markup elements"
:not-instantiable t
:description... |
96a7bb8cabdf1e8fd506a477ade7583daf0eef94c97c029225c94d3200ea7dfe | emil0r/reverie | migrations.clj | (ns reverie.test.database.migrations
(:require [migratus.core :as migratus]
[midje.sweet :refer :all]
[reverie.test.database.sql-helpers :refer [db-spec]]))
(comment
(let [mmap {:store :database
:migration-dir "migrations/reverie/postgresql"
:migration-table-na... | null | https://raw.githubusercontent.com/emil0r/reverie/a29c223b7326e6d5a5e0874d33c37ff2fa0dfd4d/reverie-test/test/reverie/test/database/migrations.clj | clojure | (ns reverie.test.database.migrations
(:require [migratus.core :as migratus]
[midje.sweet :refer :all]
[reverie.test.database.sql-helpers :refer [db-spec]]))
(comment
(let [mmap {:store :database
:migration-dir "migrations/reverie/postgresql"
:migration-table-na... | |
ca1147dbeb645e66a897aee734e2feb21df99a89de90fe01c88147ef93fd2c6a | wilbowma/cur | Tactics-inversion.rkt | #lang cur
(require cur/stdlib/sugar
; cur/stdlib/equality
(except-in cur/stdlib/equality sym f-equal)
(only-in cur/stdlib/equality [sym sym-orig] [f-equal f-equal-orig])
cur/stdlib/equality
cur/ntac/base
cur/ntac/standard
cur/ntac/rewrite
rackunit/t... | null | https://raw.githubusercontent.com/wilbowma/cur/e039c98941b3d272c6e462387df22846e10b0128/cur-test/cur/tests/ntac/software-foundations/Tactics-inversion.rkt | racket | cur/stdlib/equality
copied from Poly-pairs.rkt
letter capital "O"
* = "full" version; as opposed to hidden-arg version
inversion tactic --------------------------------------------------
inversion infers H0 = H
check inversion-ex1 raw terms
generates False proof term for lists | #lang cur
(require cur/stdlib/sugar
(except-in cur/stdlib/equality sym f-equal)
(only-in cur/stdlib/equality [sym sym-orig] [f-equal f-equal-orig])
cur/stdlib/equality
cur/ntac/base
cur/ntac/standard
cur/ntac/rewrite
rackunit/turnstile+
"../rackuni... |
eecb1678607a8deafd700b1f16d4dd2ca9bca28e743fe790294a582d41528b96 | LexiFi/lrt | matcher_index.ml | (******************************************************************************)
Copyright ( C ) 2020 by LexiFi .
(* *)
This source file is released under the terms of the MIT license as part ... | null | https://raw.githubusercontent.com/LexiFi/lrt/038ff963bd066c9d94cffb9896b04b6b8696f136/lib/matcher_index.ml | ocaml | ****************************************************************************
of the lrt package. Details can be found in the attached LICENSE file.
****************************************************************************
* The inclus... | Copyright ( C ) 2020 by LexiFi .
This source file is released under the terms of the MIT license as part
module Id : sig
* Map to an identifying integer .
TODO : Extend stype with an integer symbol identifier to avoid all
overhead .
TODO ... |
26a25cc7c7cae5fe9f8d5732b7d0e99ff3346c1776d96f23278e85d16150a0a5 | TrustInSoft/tis-kernel | descr.ml | (**************************************************************************)
(* *)
This file is part of .
(* *)
is a fork of Frama - C. Al... | null | https://raw.githubusercontent.com/TrustInSoft/tis-kernel/748d28baba90c03c0f5f4654d2e7bb47dfbe4e7d/src/libraries/datatype/descr.ml | ocaml | ************************************************************************
... | This file is part of .
is a fork of Frama - C. All the differences are :
Copyright ( C ) 2016 - 2017
is released under GPLv2
This file is part of Frama - C.
Copyright ( C ) 2007 - 2015 ... |
5d7ccaadb1c0c54c51ff2b985e3966a37ced08e4931c27de94a6053c5f685914 | acl2/acl2 | let-bind-formals-in-calls.lisp | ; Changes all calls of a function to be on its (lambda-bound) formals
;
Copyright ( C ) 2021 Kestrel Institute
;
License : A 3 - clause BSD license . See the file books/3BSD - mod.txt .
;
Author : ( )
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(in-package "ACL2")
This... | null | https://raw.githubusercontent.com/acl2/acl2/efbeb64b2d2aa3a5403a678d070776fe4b4b5d55/books/kestrel/terms-light/let-bind-formals-in-calls.lisp | lisp | Changes all calls of a function to be on its (lambda-bound) formals
(lambda-bound as needed). Consider calling reconstruct-lets-in-term after
calling this.
it's a function call (maybe a lambda application):
test for lambda application. term is: ((lambda (formals) body) ... args ...)
apply recursively to the la... | Copyright ( C ) 2021 Kestrel Institute
License : A 3 - clause BSD license . See the file books/3BSD - mod.txt .
Author : ( )
(in-package "ACL2")
This is useful when generating C code with ATC .
(include-book "tools/flag" :dir :system)
(include-book "kestrel/utilities/non-trivial-bindings" :dir :system)
(... |
52d553a8a82dc21778bc1754f8f6238e555130430864fc597822bea670678271 | jackfirth/rebellion | definition-macro.rkt | #lang racket/base
(provide define-record-setter
define-record-type)
(require (for-syntax racket/base
racket/sequence
rebellion/collection/keyset/low-dependency
(submod rebellion/type/record/binding
private-constructor... | null | https://raw.githubusercontent.com/jackfirth/rebellion/64f8f82ac3343fe632388bfcbb9e537759ac1ac2/type/record/private/definition-macro.rkt | racket | @------------------------------------------------------------------------------ | #lang racket/base
(provide define-record-setter
define-record-type)
(require (for-syntax racket/base
racket/sequence
rebellion/collection/keyset/low-dependency
(submod rebellion/type/record/binding
private-constructor... |
9102583a3a3953889f25991b397cdd05e47e38c1965614d95410d07c25498db7 | city41/reagent-breakout | brick.cljs | (ns breakout.cmp.brick)
(def ^:private offset {"blue" 0
"orange" 1
"red" 2
"green" 3})
(defn cmp [{pos :pos color :color}]
[:div.brick {:class color
:style {:background-image "url(img/tiles.png)"
:backgr... | null | https://raw.githubusercontent.com/city41/reagent-breakout/84907d0cbc2d3cae917e30f955bc8e42fcb2d505/src/cljs/breakout/cmp/brick.cljs | clojure | (ns breakout.cmp.brick)
(def ^:private offset {"blue" 0
"orange" 1
"red" 2
"green" 3})
(defn cmp [{pos :pos color :color}]
[:div.brick {:class color
:style {:background-image "url(img/tiles.png)"
:backgr... | |
e1e84538eda13e97e528d34a5a70fe124b4d71272c3778273831a92b31424b17 | ar-nelson/schemepunk | benchmark-btree.scm | (import (scheme base)
(scheme case-lambda)
(scheme time)
(schemepunk syntax)
(schemepunk list)
(schemepunk random)
(schemepunk hash-table)
(schemepunk comparator)
(schemepunk generator)
(schemepunk btree))
(cond-expand
(chibi
(include "tests... | null | https://raw.githubusercontent.com/ar-nelson/schemepunk/e2840d3c445933528aaf0a36ec72b053ec5016ce/tests/benchmark-btree.scm | scheme | (import (scheme base)
(scheme case-lambda)
(scheme time)
(schemepunk syntax)
(schemepunk list)
(schemepunk random)
(schemepunk hash-table)
(schemepunk comparator)
(schemepunk generator)
(schemepunk btree))
(cond-expand
(chibi
(include "tests... | |
35fb98395686a00b76dddb8cd0a128a8781b020cf7339ce91009266e689c9534 | openmusic-project/openmusic | osc-events.lisp | ;=========================================================================
OpenMusic : Visual Programming Language for Music Composition
;
Copyright ( c ) 1997- ... IRCAM - Centre , Paris , France .
;
This file is part of the OpenMusic environment sources
;
OpenMusic is free software : you ... | null | https://raw.githubusercontent.com/openmusic-project/openmusic/9560c064512a1598cd57bcc9f0151c0815178e6f/OPENMUSIC/code/projects/midi/osc/osc-events.lisp | lisp | =========================================================================
(at your option) any later version.
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
======... | OpenMusic : Visual Programming Language for Music Composition
Copyright ( c ) 1997- ... IRCAM - Centre , Paris , France .
This file is part of the OpenMusic environment sources
OpenMusic is free software : you can redistribute it and/or modify
it under the terms of the GNU General Public ... |
cad51364ea7d0189a180a948d716674a92a7516ffa37785c7868208930a5a411 | eslick/cl-registry | choose-center.lisp | ;; -*- Mode:Lisp; tab-width:2; indent-tabs-mode:nil -*-
(in-package :registry)
(registry-proclamations)
(defwidget choose-center ()
())
(defun apply-to-sibling-widgets-of-types (function widget types)
(dolist (sibling (widget-children (widget-parent widget)))
(when (and (not (eq widget sibling))
... | null | https://raw.githubusercontent.com/eslick/cl-registry/d4015c400dc6abf0eeaf908ed9056aac956eee82/src/plugins/clinician-home/choose-center.lisp | lisp | -*- Mode:Lisp; tab-width:2; indent-tabs-mode:nil -*-
Somebody deleted or renamed the center |
(in-package :registry)
(registry-proclamations)
(defwidget choose-center ()
())
(defun apply-to-sibling-widgets-of-types (function widget types)
(dolist (sibling (widget-children (widget-parent widget)))
(when (and (not (eq widget sibling))
(dolist (type types)
(when (typep s... |
9cdad24763f2e70ed67b7700eb8831e5644829b1b6794f0d9366197fa1699e14 | uhc/uhc | PPrint.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/Common/PPrint.hs | haskell | ---------------------------------------------------------------------
---------------------------------------------------------------------
----------------------------------------------------------------------}
--------------------------------------------------------
"A prettier printer"
-labs.com/cm/... | 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... |
9098181d0a6fc9cd4e43e5721f77304911b122a9b2355eff7f80e1c3e3c71dbb | fission-codes/fission | Types.hs | module Fission.CLI.Key.Store.Types
( SigningKey
, ExchangeKey
) where
data SigningKey
data ExchangeKey
| null | https://raw.githubusercontent.com/fission-codes/fission/11d14b729ccebfd69499a534445fb072ac3433a3/fission-cli/library/Fission/CLI/Key/Store/Types.hs | haskell | module Fission.CLI.Key.Store.Types
( SigningKey
, ExchangeKey
) where
data SigningKey
data ExchangeKey
| |
8d4cd088ac64a98a997f1aee20d4bab3e236a1b6c606bb340c910a4df29cbbda | mirage/alcotest | config.mli | include Config_intf.Config
* @inline
| null | https://raw.githubusercontent.com/mirage/alcotest/bb3492901dea03c72b4de6b5660852a020283921/src/alcotest-engine/config.mli | ocaml | include Config_intf.Config
* @inline
| |
ca7074feb696fe92aec06e31adb67f08c7d42a63518923e8d74fd028f52b5c5d | aarkerio/ZentaurLMS | vclassrooms.clj | (ns ^:test-model zentaur.models.vclassrooms
"Business logic for the tests section"
(:require [clojure.spec.alpha :as s]
[clojure.tools.logging :as log]
[zentaur.db.core :as db]
[zentaur.libs.models.shared :as sh]))
(defn get-vclassrooms
"Get all users vclassrooms"
([user-id]... | null | https://raw.githubusercontent.com/aarkerio/ZentaurLMS/adb43fb879b88d6a35f7f556cb225f7930d524f9/src/clj/zentaur/models/vclassrooms.clj | clojure | (ns ^:test-model zentaur.models.vclassrooms
"Business logic for the tests section"
(:require [clojure.spec.alpha :as s]
[clojure.tools.logging :as log]
[zentaur.db.core :as db]
[zentaur.libs.models.shared :as sh]))
(defn get-vclassrooms
"Get all users vclassrooms"
([user-id]... | |
2118c7ebfe029adda0e44e2f1a7ac23be1fdcc654755824d94fb5273589b457f | jeffshrager/biobike | framespaces.lisp | -*- Package : aframes ; mode : lisp ; base : 10 ; Syntax : Common - Lisp ; -*-
(in-package :aframes)
;;; +=========================================================================+
| Copyright ( c ) 2002 , 2003 , 2004 JP , , |
;;; | ... | null | https://raw.githubusercontent.com/jeffshrager/biobike/5313ec1fe8e82c21430d645e848ecc0386436f57/BioLisp/Sframes/framespaces.lisp | lisp | mode : lisp ; base : 10 ; Syntax : Common - Lisp ; -*-
+=========================================================================+
| |
| Permission is hereby granted, free of charge, to any person obtaining |
| a copy of this software and as... |
(in-package :aframes)
| Copyright ( c ) 2002 , 2003 , 2004 JP , , |
| " Software " ) , to deal in the Software without restriction , including |
| distribute , sublicense , and/or sell copies of the Software , and to |
| permit persons to whom the Software is furnished to do so , subject t... |
071140609973681201cd78dfe1e36b0e0063777839a6f18793e64670ba493fd8 | ocamllabs/ocaml-effects | pr6726.ml | module ExtUnixAll = struct
external unused : unit -> unit = "caml_blit_string"
module BigEndian = struct
let get_uint8 str off = 33
end
end
module ExtUnix = struct
module All = ExtUnixAll
end
module Test = struct
open ExtUnix.All
let test_endian_string x =
let module B = BigEndian in
B.get_uint8 x ... | null | https://raw.githubusercontent.com/ocamllabs/ocaml-effects/36008b741adc201bf9b547545344507da603ae31/testsuite/tests/basic-modules/pr6726.ml | ocaml | module ExtUnixAll = struct
external unused : unit -> unit = "caml_blit_string"
module BigEndian = struct
let get_uint8 str off = 33
end
end
module ExtUnix = struct
module All = ExtUnixAll
end
module Test = struct
open ExtUnix.All
let test_endian_string x =
let module B = BigEndian in
B.get_uint8 x ... | |
163a594e5d83977547a4c83a0b383559cf9c6bc96506d9a35bc2d3744817a9b8 | Eonblast/Scalaxis | node.erl | 2007 - 2011 Zuse Institute Berlin
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
d... | null | https://raw.githubusercontent.com/Eonblast/Scalaxis/10287d11428e627dca8c41c818745763b9f7e8d4/src/node.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 gov... | 2007 - 2011 Zuse Institute Berlin
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
@author < >
-module(node).
-author('').
-vsn('$Id$').
-export([id/1, id_version/1, pidX/1, erlNode/1, yawsPort/1,
new... |
d890f60d66118f73f5b80159b2376a27e20c36d84d928512dc8c17535dd076e1 | foxhound-systems/eved | Client.hs | # LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE OverloadedStrings #
# LANGUAGE TypeFamilies #
module Web.Eved.Client
where
import Control.Monad.Reader
import qualified Data.CaseInsensitive as CI
import Data.List.NonEmpty (NonEmpty (..))
import... | null | https://raw.githubusercontent.com/foxhound-systems/eved/95116c4bdcff0b81f4c79fb550cddd3f525ed09a/src/Web/Eved/Client.hs | haskell | # LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE OverloadedStrings #
# LANGUAGE TypeFamilies #
module Web.Eved.Client
where
import Control.Monad.Reader
import qualified Data.CaseInsensitive as CI
import Data.List.NonEmpty (NonEmpty (..))
import... | |
b698094d69f91d00fd5c6bbe2fb71dfb65397dbda17e0f656b2979ac79099331 | vmchale/jacinda | Rewrite.hs | module Jacinda.Parser.Rewrite ( rewriteProgram
, rewriteD
, rewriteE
) where
import Control.Recursion (cata, embed)
import Jacinda.AST
rewriteProgram :: Program a -> Program a
rewriteProgram (Program ds e) =... | null | https://raw.githubusercontent.com/vmchale/jacinda/35cd0feaa95b1aa0ad94998079884e13da1bbae5/src/Jacinda/Parser/Rewrite.hs | haskell | module Jacinda.Parser.Rewrite ( rewriteProgram
, rewriteD
, rewriteE
) where
import Control.Recursion (cata, embed)
import Jacinda.AST
rewriteProgram :: Program a -> Program a
rewriteProgram (Program ds e) =... | |
801572a8094aa6d486f047f19c5835b8f1c768496057ad03e882d1958050431f | Teaspot-Studio/gore-and-ash | Dispense.hs | |
Module : Game . GoreAndAsh . Core . Dispense
Description : Helpers for item dispensing from collections .
Copyright : ( c ) , 2016 - 2017
License : :
Stability : experimental
Portability : POSIX
Module : Game.GoreAndAsh.Core.Dispense
Description : Helpers for item dispensin... | null | https://raw.githubusercontent.com/Teaspot-Studio/gore-and-ash/c074ff23cec4f0c02cddbc0b433b685b1b2b8507/src/Game/GoreAndAsh/Core/Dispense.hs | haskell | | Item roller contains dynamic of current element and action to switch to next
item
| Create a item chooser from given list, returns dynamic with current item
and action to change it. | |
Module : Game . GoreAndAsh . Core . Dispense
Description : Helpers for item dispensing from collections .
Copyright : ( c ) , 2016 - 2017
License : :
Stability : experimental
Portability : POSIX
Module : Game.GoreAndAsh.Core.Dispense
Description : Helpers for item dispensin... |
c93e71f41fcf6c5ae3431405e828ef8624d735755f58d6e8229ad1f928acef03 | fetburner/compelib | bfs.ml | let maze =
[|"......";
".#####";
"..#.#.";
"..##..";
"#....."|]
let d =
let d = Bigarray.Genarray.create Bigarray.int Bigarray.c_layout [| 6; 5 |] in
Bigarray.Genarray.fill d max_int;
Compelib.Bfs.shortest_path
(module struct
module Vertex = struct
type t = int array
let get_d... | null | https://raw.githubusercontent.com/fetburner/compelib/d8fc5d9acd04e676c4d4d2ca9c6a7140f1b85670/test/graph/bfs.ml | ocaml | let maze =
[|"......";
".#####";
"..#.#.";
"..##..";
"#....."|]
let d =
let d = Bigarray.Genarray.create Bigarray.int Bigarray.c_layout [| 6; 5 |] in
Bigarray.Genarray.fill d max_int;
Compelib.Bfs.shortest_path
(module struct
module Vertex = struct
type t = int array
let get_d... | |
db2f51a5c3a50673178ee2d9943bc162a3bc02d356a230c4be19022c9c4e4722 | gdevanla/haskell-lox | Char.hs | module Text.Parsec.String.Char where
Wrappers for the Text . Parsec . module with the types fixed to
' Text . Parsec . String . a ' , i.e. the stream is , no user
state , Identity monad .
Wrappers for the Text.Parsec.Char module with the types fixed to
'Text.Parsec.String.Parser a', i.e. the stream is St... | null | https://raw.githubusercontent.com/gdevanla/haskell-lox/18a26dce18d81b23bef24ce71f88734cb9ce56ca/src/Text/Parsec/String/Char.hs | haskell | module Text.Parsec.String.Char where
Wrappers for the Text . Parsec . module with the types fixed to
' Text . Parsec . String . a ' , i.e. the stream is , no user
state , Identity monad .
Wrappers for the Text.Parsec.Char module with the types fixed to
'Text.Parsec.String.Parser a', i.e. the stream is St... | |
306a9019df10ae68d715d9c040d5c0e9cd69d9ea4c81e2f4540c0d99f1e4fba5 | simmsb/calamity | Snowflake.hs | -- | The snowflake type
module Calamity.Types.Snowflake (
Snowflake (..),
HasID (..),
type HasID',
HasIDField (..),
HasIDFieldCoerce (..),
type HasIDFieldCoerce',
coerceSnowflake,
) where
import Data.Aeson
import Data.Bits
import Data.Data
import Data.Hashable
import Data.Kind
import Data.Text.Read
impor... | null | https://raw.githubusercontent.com/simmsb/calamity/be310255b446e87e7432673de1fbc67ef46de3ae/calamity/Calamity/Types/Snowflake.hs | haskell | | The snowflake type
-lib/src/Haskord/Types/Common.hs#L78
I'm pretty sure that Word64's hash just being 'fromIntegral' is a bad idea when
attempting to use it in a hashmap, so swizzle the bits a bit to give a good
distribution of bits
| A typeclass for types that contain snowflakes of type `b`
| Retrieve the ID ... | module Calamity.Types.Snowflake (
Snowflake (..),
HasID (..),
type HasID',
HasIDField (..),
HasIDFieldCoerce (..),
type HasIDFieldCoerce',
coerceSnowflake,
) where
import Data.Aeson
import Data.Bits
import Data.Data
import Data.Hashable
import Data.Kind
import Data.Text.Read
import Data.Vector.Unboxing q... |
79970f34d190da0a2b8b88419b0728e86bd06e91c8fefb9950c911b8deec6718 | squint-cljs/squint | compiler.cljc | Adapted from Scriptjure . Original copyright notice :
Copyright ( c ) , 2009 . 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 ... | null | https://raw.githubusercontent.com/squint-cljs/squint/396a27009e3276606166b9b12563f44a210ffc34/src/squint/compiler.cljc | 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.
js
prefixed to avoid conflicts
| Adapted from Scriptjure . Original copyright notice :
Copyright ( c ) , 2009 . All rights reserved . The use
and distribution terms for this software are covered by the Eclipse
(ns squint.compiler
(:require
#?(:clj [squint.resource :refer [edn-resource]])
[clojure.string :as str]
[edamame.core :a... |
0156270564ddfe6289689ed2adedffdebf0a6a6b31098d4ce89b58dbb73ae577 | hellertime/time-recurrence | ScheduleDetails.hs | # LANGUAGE GADTs , EmptyDataDecls , FlexibleInstances , FunctionalDependencies , MultiParamTypeClasses , RankNTypes , StandaloneDeriving , TypeSynonymInstances , UndecidableInstances #
module Data.Time.Recurrence.ScheduleDetails
(
* ScheduleDetails
ScheduleDetails
, eval
-- * Functional interfac... | null | https://raw.githubusercontent.com/hellertime/time-recurrence/56efaf58c48860d4547a664df9bded176a5860e9/src/Data/Time/Recurrence/ScheduleDetails.hs | haskell | * Functional interface to constructors
* Period Filters | # LANGUAGE GADTs , EmptyDataDecls , FlexibleInstances , FunctionalDependencies , MultiParamTypeClasses , RankNTypes , StandaloneDeriving , TypeSynonymInstances , UndecidableInstances #
module Data.Time.Recurrence.ScheduleDetails
(
* ScheduleDetails
ScheduleDetails
, eval
, enum
, filter
, ... |
dd5f5d6f52fa0869ef4abe855a68a3a7ccb608e16fed92f3f2de4ebc98992341 | fragnix/fragnix | System.Posix.DynamicLinker.Common.hs | {-# LANGUAGE Haskell2010 #-}
{-# LINE 1 "dist/dist-sandbox-261cd265/build/System/Posix/DynamicLinker/Common.hs" #-}
# LINE 1 " System / Posix / DynamicLinker / Common.hsc " #
# LINE 2 " System / Posix / DynamicLinker / Common.hsc " #
{-# LANGUAGE Safe #-}
# LINE 6 " System / Posix / DynamicLinker / Common.hsc " #
---... | null | https://raw.githubusercontent.com/fragnix/fragnix/b9969e9c6366e2917a782f3ac4e77cce0835448b/tests/packages/scotty/System.Posix.DynamicLinker.Common.hs | haskell | # LANGUAGE Haskell2010 #
# LINE 1 "dist/dist-sandbox-261cd265/build/System/Posix/DynamicLinker/Common.hs" #
# LANGUAGE Safe #
---------------------------------------------------------------------------
|
License : BSD-style (see the file libraries/base/LICENSE)
Stability : provisional
Portability : non-po... | # LINE 1 " System / Posix / DynamicLinker / Common.hsc " #
# LINE 2 " System / Posix / DynamicLinker / Common.hsc " #
# LINE 6 " System / Posix / DynamicLinker / Common.hsc " #
Module : System . . . Common
Copyright : ( c ) < > 2003
Maintainer :
Dynamic linker support through dlopen ( )... |
5f2291119fb24e5f8df146d7aa2160da537c2272480ed367cabe5fd67674bb5d | nyu-acsys/drift | intro-ord3.ml |
let succ (sb:int) (sf:int->unit) sx = sf (sx + 1)
let rec app3 (b:int) (f:int->unit) (a:int) (g:int->(int->unit)->unit) (k:int) =
if k > 0 then app3 b (succ b f) b g (k - 1) else g b f
let app ax (ab:int) (af:int->unit) = af ax
let check (cx:int) (cy:int) = assert (cx <= cy)
let main_p (i:int) (j:int) = app3 i (... | null | https://raw.githubusercontent.com/nyu-acsys/drift/51a3160d74b761626180da4f7dd0bb950cfe40c0/tests/benchmarks_call/DOrder/high/intro-ord3.ml | ocaml |
let succ (sb:int) (sf:int->unit) sx = sf (sx + 1)
let rec app3 (b:int) (f:int->unit) (a:int) (g:int->(int->unit)->unit) (k:int) =
if k > 0 then app3 b (succ b f) b g (k - 1) else g b f
let app ax (ab:int) (af:int->unit) = af ax
let check (cx:int) (cy:int) = assert (cx <= cy)
let main_p (i:int) (j:int) = app3 i (... | |
88c548b4427105c4612ef7ce96760dc7f1c5480d9ce54990b662ef7ed6d81a2f | haskell-streaming/streaming-bytestring | shell.hs | -- these examples are from the io-streams tutorial
{-#LANGUAGE OverloadedStrings #-}
import Streaming
import Streaming.Prelude (yield, next, each)
import qualified Streaming.Prelude as S
import qualified Data.ByteString.Char8 as B
import Data.ByteString.Streaming (ByteString)
import qualified Data.ByteString.Streaming.... | null | https://raw.githubusercontent.com/haskell-streaming/streaming-bytestring/5589a4a9d3d118e4a7c87f8a3f71a0b40b72fb16/examples/shell.hs | haskell | these examples are from the io-streams tutorial
#LANGUAGE OverloadedStrings #
catStdin :: IO ()
stream to IO.stdout
ByteString m () -- insert '\n' between bytestream layers
Stream (ByteString m) m () -- nb. "takes" is 'functor general'
Stream (ByteString m) m () -- divided into Stream layers
ByteStrin... | import Streaming
import Streaming.Prelude (yield, next, each)
import qualified Streaming.Prelude as S
import qualified Data.ByteString.Char8 as B
import Data.ByteString.Streaming (ByteString)
import qualified Data.ByteString.Streaming.Char8 as Q
import System.IO (withFile, IOMode(..))
import Control.Monad
import Contro... |
af516b7123e35214ac9e244a8b5f4fe853a334a0ba26148191393eb333364ded | tschady/advent-of-code | d02_test.clj | (ns aoc.2018.d02-test
(:require [aoc.2018.d02 :as sut]
[clojure.test :refer :all]))
(deftest part1-examples
(is (= 12 (sut/part-1 ["abcdef"
"bababc"
"abbcde"
"abcccd"
"aabcdd"
"a... | null | https://raw.githubusercontent.com/tschady/advent-of-code/1e4a95ef580c3bf635837eff52aa998b0acfc666/test/aoc/2018/d02_test.clj | clojure | (ns aoc.2018.d02-test
(:require [aoc.2018.d02 :as sut]
[clojure.test :refer :all]))
(deftest part1-examples
(is (= 12 (sut/part-1 ["abcdef"
"bababc"
"abbcde"
"abcccd"
"aabcdd"
"a... | |
571b5f9588fa07aae68204b6c1016dcacbb1da073f69c03daea227fa139a2c8e | wesdoyle/sicp-meetup | macros.scm | (define-syntax demonstrate
(syntax-rules ()
((_ form) (begin
(display 'form)
(display " => ")
(display form)
(newline)))))
(define-macro (our-let bindings . body)
`((lambda ,(map car bindings)
,@body)
,@(map cadr bindings)))
(demonstrat... | null | https://raw.githubusercontent.com/wesdoyle/sicp-meetup/62ee7fc16ccee38fdece4053e634cabc1e93f060/sicp-files/meetup_05/macros.scm | scheme | (define-syntax demonstrate
(syntax-rules ()
((_ form) (begin
(display 'form)
(display " => ")
(display form)
(newline)))))
(define-macro (our-let bindings . body)
`((lambda ,(map car bindings)
,@body)
,@(map cadr bindings)))
(demonstrat... | |
bd01d70a5caf9a6ec439f1b278d1029a13c44aa7581341ffec0322e7451b9256 | inria-parkas/sundialsml | kinsol_bbd.ml | (***********************************************************************)
(* *)
(* OCaml interface to Sundials *)
(* *)
, , an... | null | https://raw.githubusercontent.com/inria-parkas/sundialsml/0c46b0c6c067677af6ef8006260b9e697cc0562b/src/kinsol/kinsol_bbd.ml | ocaml | *********************************************************************
OCaml interface to Sundials
... | , , and
( / ENS ) ( / ENS ) ( UPMC / ENS / Inria )
Copyright 2014 Institut National de Recherche en Informatique et
en Automatique . All rights reserved . This file is distributed
open Sundials
include Kinsol_impl
include KinsolBbdType... |
116dd3c91cc13b0304a8125d56c0cb3170738b8905cdf86009077092ce58899b | cblp/crdt | Laws.hs | # OPTIONS_GHC -fno - warn - orphans #
# LANGUAGE AllowAmbiguousTypes #
# LANGUAGE FlexibleContexts #
# LANGUAGE LambdaCase #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
module CRDT.Laws
( cmrdtLaw
, cvrdtLaws
, opCommutativity
) where
import Control.Monad.State.Strict (Mo... | null | https://raw.githubusercontent.com/cblp/crdt/175d7ee7df66de1f013ee167ac31719752e0c20b/crdt-test/lib/CRDT/Laws.hs | haskell | | CmRDT law: concurrent ops commute
^ the op must be made from the intent
^ the op must be made from the intent
^ any reachable state | # OPTIONS_GHC -fno - warn - orphans #
# LANGUAGE AllowAmbiguousTypes #
# LANGUAGE FlexibleContexts #
# LANGUAGE LambdaCase #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
module CRDT.Laws
( cmrdtLaw
, cvrdtLaws
, opCommutativity
) where
import Control.Monad.State.Strict (Mo... |
7f164345194810d92926436ec85fbf97947036c1c0ff57e3ba2802325249a6a2 | amnh/PCG | Metadata.hs | -----------------------------------------------------------------------------
-- |
-- Module : Data.Normalization.Metadata
Copyright : ( c ) 2015 - 2021 Ward Wheeler
-- License : BSD-style
--
-- Maintainer :
-- Stability : provisional
-- Portability : portable
--
-- Export of parsed character
-... | null | https://raw.githubusercontent.com/amnh/PCG/9341efe0ec2053302c22b4466157d0a24ed18154/lib/data-normalization/src/Data/Normalization/Metadata.hs | haskell | ---------------------------------------------------------------------------
|
Module : Data.Normalization.Metadata
License : BSD-style
Maintainer :
Stability : provisional
Portability : portable
Export of parsed character
----------------------------------------------------------------------... | Copyright : ( c ) 2015 - 2021 Ward Wheeler
module Data.Normalization.Metadata
( NormalizedMetadata(..)
, HasNormalizedMetadata(..)
) where
import Data.Normalization.Metadata.Class
import Bio . Metadata . . Internal
|
6a9d3e89c2420ba58c2c81ff1ee8a0afc778cb9fc10aace29bd902913dad4629 | onedata/op-worker | monitoring_event_subscriptions.erl | %%%--------------------------------------------------------------------
@author
( C ) 2018 ACK CYFRONET AGH
This software is released under the MIT license
cited in ' LICENSE.txt ' .
%%% @end
%%%--------------------------------------------------------------------
%%% @doc Module containing subscriptions of m... | null | https://raw.githubusercontent.com/onedata/op-worker/b09f05b6928121cec4d6b41ce8037fe056e6b4b3/src/modules/monitoring/event/monitoring_event_subscriptions.erl | erlang | --------------------------------------------------------------------
@end
--------------------------------------------------------------------
@doc Module containing subscriptions of monitoring events.
@end
--------------------------------------------------------------------
API
====================================... | @author
( C ) 2018 ACK CYFRONET AGH
This software is released under the MIT license
cited in ' LICENSE.txt ' .
-module(monitoring_event_subscriptions).
-author("Michal Wrzeszcz").
-include("modules/events/subscriptions.hrl").
-include_lib("modules/monitoring/rrd_definitions.hrl").
-export([monitoring_subs... |
d26352cbcff5ff874549f531b5d7a9b82684ebdd666ef2e79b33664c0d71e732 | maxsnew/modal-scheme | model.rkt | #lang racket
(require redex)
(define-language fiddle
[v ::= boolean string (cons v v) nil (thunk e) (fix x e)]
[e ::= (! v)
(symbol=? v v)
(let [x e] e) (e v)
(case-lambda [() e] [(x) e])
(match v
[#t e]
[#f e]
[(cons x y) e]
[nil e]
[symbol e]
[thunk ... | null | https://raw.githubusercontent.com/maxsnew/modal-scheme/3bcda7f40e7b878049d23ed553767988d6a83324/notes/model.rkt | racket | #lang racket
(require redex)
(define-language fiddle
[v ::= boolean string (cons v v) nil (thunk e) (fix x e)]
[e ::= (! v)
(symbol=? v v)
(let [x e] e) (e v)
(case-lambda [() e] [(x) e])
(match v
[#t e]
[#f e]
[(cons x y) e]
[nil e]
[symbol e]
[thunk ... | |
598cf93a5e595c8dd03a18f6e4738ee14e26053c8d328b81db17ec5e98492cd4 | Martoon-00/toy-compiler | Execution.hs | -- | Gathers all interpreting / translation / compilation logic,
-- providing common interface for it.
module Toy.Execution
( module M
) where
import Toy.Execution.Data as M
import Toy.Execution.Exec as M
import Toy.Execution.Trans as M
| null | https://raw.githubusercontent.com/Martoon-00/toy-compiler/a325d56c367bbb673608d283197fcd51cf5960fa/src/Toy/Execution.hs | haskell | | Gathers all interpreting / translation / compilation logic,
providing common interface for it. |
module Toy.Execution
( module M
) where
import Toy.Execution.Data as M
import Toy.Execution.Exec as M
import Toy.Execution.Trans as M
|
47ae68d66d98b6ec22ba21e509ae0ff2abee57adeb61963671e0346c7437061c | heroku/sdiff | log_utils.erl | -module(log_utils).
-compile(export_all).
level(Lvl) ->
application:stop(lager),
application:load(lager),
application:set_env(lager, error_logger_hwm, 50000),
application:set_env(lager, handlers, [
{lager_console_backend, [
Lvl,
{lager_default_formatter, [
... | null | https://raw.githubusercontent.com/heroku/sdiff/15e3fb2974919b7349387288a89881c2850f3073/test/log_utils.erl | erlang | -module(log_utils).
-compile(export_all).
level(Lvl) ->
application:stop(lager),
application:load(lager),
application:set_env(lager, error_logger_hwm, 50000),
application:set_env(lager, handlers, [
{lager_console_backend, [
Lvl,
{lager_default_formatter, [
... | |
af80871b0d86ba14a0897ff32709733a7bafb6dcbbe72208545edd45a80e0120 | argp/bap | pa_labelscope.ml | pp camlp4orf
This code is in public domain . Written by .
*
* Tested with OCaml 3.11.2 .
*
* Based on pa_openin.ml written by and adapted to OCaml 3.10 by
* Till Varoquaux
*
* Tested with OCaml 3.11.2.
*
* Based on pa_openin.ml written by Alain Frisch and adapted to OCaml 3.10 by
* Till Var... | null | https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/libtracewrap/libtrace/piqi/piqi/piqi-camlp4/3.11/pa_labelscope.ml | ocaml | TODO: #-labels in record patterns | pp camlp4orf
This code is in public domain . Written by .
*
* Tested with OCaml 3.11.2 .
*
* Based on pa_openin.ml written by and adapted to OCaml 3.10 by
* Till Varoquaux
*
* Tested with OCaml 3.11.2.
*
* Based on pa_openin.ml written by Alain Frisch and adapted to OCaml 3.10 by
* Till Var... |
ac2466c8d64322fcd97094a9bc57af31250cb78c253c789915afda2c6472cf23 | inaka/cowboy-trails | trails_app.erl | %%% @hidden
-module(trails_app).
-behaviour(application).
%% Application callbacks
-export([start/2, stop/1]).
-spec start(term(), term()) -> {error, term()} | {ok, pid()}.
start(_Type, _Args) ->
trails_sup:start_link().
-spec stop(term()) -> ok.
stop(_State) ->
ok.
| null | https://raw.githubusercontent.com/inaka/cowboy-trails/572feb5ee20f174a5ff86173bc662a29c8a3b5c1/src/trails_app.erl | erlang | @hidden
Application callbacks | -module(trails_app).
-behaviour(application).
-export([start/2, stop/1]).
-spec start(term(), term()) -> {error, term()} | {ok, pid()}.
start(_Type, _Args) ->
trails_sup:start_link().
-spec stop(term()) -> ok.
stop(_State) ->
ok.
|
d70a696c2697af6ea35da88d3fd4f388dd2a1ea0357060b24e91ec4267f2a5ef | jixiuf/helloerlang | iotest.erl | -*- coding : utf-8 -*-
-module(iotest).
-export([list_dir/0,write/0,read_line/0,read_all_file/0,write_file/0,read_file_line_by_line/0,consult/0,read/0,pread/0,write_consult/0]).
-export([copy/0,fileinfo/0]).
read_line()->
{ok,Fh}= file:open("iotest.erl",read),
Line= io:get_line(Fh,''),
io:format("~p~n... | null | https://raw.githubusercontent.com/jixiuf/helloerlang/3960eb4237b026f98edf35d6064539259a816d58/io/iotest.erl | erlang | 写入整个文件
{ok,Term} = file:consult("test.dat")
test.dat 中只有一个{key1,value}. 的term ,当然也可以用多个{{},[]}之类
,
io:format("~p~n",[Term])
io:read test,注意,不是file:read
io:read 与file:consult 的不同是,前者只读取一个term ,后者全文读出
如果我们使用io:read来从标准输入读取,那么Prompt只用来提供一个提示符。
位置读取文件。
)向一个文件中写入一串erlang数据项term,标准库中没有实现,自己实现: %
file:delete("iotes... | -*- coding : utf-8 -*-
-module(iotest).
-export([list_dir/0,write/0,read_line/0,read_all_file/0,write_file/0,read_file_line_by_line/0,consult/0,read/0,pread/0,write_consult/0]).
-export([copy/0,fileinfo/0]).
read_line()->
{ok,Fh}= file:open("iotest.erl",read),
Line= io:get_line(Fh,''),
io:format("~p~n... |
04a65692ed6ac33ce707c7fbc2a9fb8a8f96c8f9fbe4672e7d00f5521382aebd | nasa/Common-Metadata-Repository | dev.clj | (ns cmr.mission-control.dev
(:require
[clojure.java.io :as io]
[clojure.pprint :refer [pprint]]
[clojure.string :as string]
[clojure.tools.namespace.repl :as repl]
[clojusc.system-manager.core :as system-api :refer :all]
[clojusc.twig :as logger]
[cmr.mission-control.components.config :as ... | null | https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/63001cf021d32d61030b1dcadd8b253e4a221662/other/cmr-exchange/mission-control/dev-resources/src/cmr/mission_control/dev.clj | clojure |
Initial Setup & Utility Functions ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
It is not always desired that a system be started up upon REPL loading.
Thus, we set the options and perform any global operations with init,
and let the user determine when then want to bring up (a potentially
computationally intensive) s... | (ns cmr.mission-control.dev
(:require
[clojure.java.io :as io]
[clojure.pprint :refer [pprint]]
[clojure.string :as string]
[clojure.tools.namespace.repl :as repl]
[clojusc.system-manager.core :as system-api :refer :all]
[clojusc.twig :as logger]
[cmr.mission-control.components.config :as ... |
b951b8ee914ecabd723d16dc81e38185fce8b277f8c192df6e75398f6a0db697 | Convex-Dev/convex-web | wallet.clj | (ns convex-web.wallet
(:require
[convex-web.session :as session]
[convex-web.convex :as convex]))
(defn account-key-pair [db {sid :convex-web.session/id
address :convex-web/address}]
(let [session (session/find-session db sid)
{wallet :convex-web.session/wallet} session]
... | null | https://raw.githubusercontent.com/Convex-Dev/convex-web/c1822a14a0459cf622143af30433d9e9544defed/src/main/clojure/convex_web/wallet.clj | clojure | (ns convex-web.wallet
(:require
[convex-web.session :as session]
[convex-web.convex :as convex]))
(defn account-key-pair [db {sid :convex-web.session/id
address :convex-web/address}]
(let [session (session/find-session db sid)
{wallet :convex-web.session/wallet} session]
... | |
88bb638833e476ab2a91c618b582332fa6b4d978ca9eff35c6057499aa5b05cc | ghc/nofib | Main.hs | -- tak benchmark program
Divide - and - conquer structure with tertiary parallelism .
-----------------------------------------------------------------------------
module Main(main) where
import System.Environment (getArgs)
import Control.Parallel
main = do [x,y,z] <- map read `fmap` getArgs
let res = pa... | null | https://raw.githubusercontent.com/ghc/nofib/f34b90b5a6ce46284693119a06d1133908b11856/parallel/partak/Main.hs | haskell | tak benchmark program
---------------------------------------------------------------------------
g = gran x y z
gran x y z = abs (z-y) + abs (y-x) + abs (z-x) | Divide - and - conquer structure with tertiary parallelism .
module Main(main) where
import System.Environment (getArgs)
import Control.Parallel
main = do [x,y,z] <- map read `fmap` getArgs
let res = partak x y z
putStrLn ("tak " ++ show x ++ " " ++ show y ++ " " ++ show z ++ " = " ++ (show res... |
61ce976131eafc55139cb9baeb9cdf61a6513b8948b7a4d76a30411258bd1e7b | eskimor/purescript-bridge | GeneratePurescript.hs | module Main where
import Control.Lens
import Data.Text (pack)
import Language.PureScript.Bridge
import Language.PureScript.Bridge.CodeGenSwitches (ForeignOptions (ForeignOptions),
genForeign,
... | null | https://raw.githubusercontent.com/eskimor/purescript-bridge/b5b71f1864e58021ed3e850559f7b82ed9916e3e/example/app/GeneratePurescript.hs | haskell | -and-greatest-haskell-purescript-serialization/1640/6 | module Main where
import Control.Lens
import Data.Text (pack)
import Language.PureScript.Bridge
import Language.PureScript.Bridge.CodeGenSwitches (ForeignOptions (ForeignOptions),
genForeign,
... |
760d7ccb92de9e474c9eacc2b20b304eddeb4e56f530c681b2124ca855b4a015 | shirok/Gauche-makiki | cgi.scm | ;;;
;;; makiki.cgi - cgi adaptor
;;;
;;;
Copyright ( c ) 2010 - 2013 < >
;;;
;;; 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 copyrig... | null | https://raw.githubusercontent.com/shirok/Gauche-makiki/9ac4d5ba9958754dd7e4fb7c8d7cc5e93858e161/makiki/cgi.scm | scheme |
makiki.cgi - cgi adaptor
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... | Copyright ( c ) 2010 - 2013 < >
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 authors nor the names of its contributors
" AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INC... |
a4d0c9ac18ac4dd3e1430674d7930eb5b2bd68cbf5b8b6773a34bb01d9a00f35 | msakai/toysolver | pigeonhole.hs | # LANGUAGE CPP #
module Main where
import qualified Data.ByteString.Builder as ByteStringBuilder
import Data.List
import qualified Data.Map as Map
import Data.Map (Map)
import System.Environment
import System.Exit
import System.IO
import Data.PseudoBoolean as PBFile
import qualified ToySolver.FileFormat as FF
import T... | null | https://raw.githubusercontent.com/msakai/toysolver/6233d130d3dcea32fa34c26feebd151f546dea85/app/pigeonhole.hs | haskell | # LANGUAGE CPP #
module Main where
import qualified Data.ByteString.Builder as ByteStringBuilder
import Data.List
import qualified Data.Map as Map
import Data.Map (Map)
import System.Environment
import System.Exit
import System.IO
import Data.PseudoBoolean as PBFile
import qualified ToySolver.FileFormat as FF
import T... | |
a45544a3b01fb50cd590191cf6c8b54a75286288a3c74b75c556f5aedc2cf4ec | nyu-acsys/drift | gcd.ml |
* Recursive implementation of the greatest common denominator
* using Euclid 's algorithm
*
* Author :
* Date : 2013 - 07 - 17
*
* Recursive implementation of the greatest common denominator
* using Euclid's algorithm
*
* Author: Jan Leike
* Date: 2013-07-17
*
*)
Compute the great... | null | https://raw.githubusercontent.com/nyu-acsys/drift/51a3160d74b761626180da4f7dd0bb950cfe40c0/tests/benchmarks_call/DOrder/first/gcd.ml | ocaml |
* Recursive implementation of the greatest common denominator
* using Euclid 's algorithm
*
* Author :
* Date : 2013 - 07 - 17
*
* Recursive implementation of the greatest common denominator
* using Euclid's algorithm
*
* Author: Jan Leike
* Date: 2013-07-17
*
*)
Compute the great... | |
eb21fcdd38f22e197d86f6933ed2770cd7568dfa1b714700deabe8a3899ba5e6 | mbenke/jnp3-haskell | dialog2.hs | import System.IO
promptLine :: String -> IO String
promptLine prompt = do
putStr prompt
getLine
main = do
hSetBuffering stdout NoBuffering
input <- promptLine "Prompt> "
putStrLn $ "Powiedziałeś: " ++ input
| null | https://raw.githubusercontent.com/mbenke/jnp3-haskell/712c5a6a24ad0efb45aee2b48e66bb91d949848e/Code/io/dialog2.hs | haskell | import System.IO
promptLine :: String -> IO String
promptLine prompt = do
putStr prompt
getLine
main = do
hSetBuffering stdout NoBuffering
input <- promptLine "Prompt> "
putStrLn $ "Powiedziałeś: " ++ input
| |
1314b10a498b948882a310b469f9f94361ac8d8ae075d6919e2890d2870f2d45 | racket/gui | const.rkt | #lang racket/base
(provide (all-defined-out))
(define CURSOR-WIDTH 2)
| null | https://raw.githubusercontent.com/racket/gui/d1fef7a43a482c0fdd5672be9a6e713f16d8be5c/gui-lib/mred/private/wxme/const.rkt | racket | #lang racket/base
(provide (all-defined-out))
(define CURSOR-WIDTH 2)
| |
928bad4cf98805b649e925e7cbfff5981a441ffb36d4e1d7ad9dedccc71de25a | Ptival/language-ocaml | StructureItemDesc.hs | # LANGUAGE FlexibleContexts #
# LANGUAGE LambdaCase #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE UndecidableInstances #
# OPTIONS_GHC -fno - warn - orphans #
module Language.OCaml.PrettyPrinter.StructureItemDesc
( structureItemDescPP,
)
where
import Language.OCaml.Definitions.Parsing.ParseTree
( Payload,
... | null | https://raw.githubusercontent.com/Ptival/language-ocaml/7b07fd3cc466bb2ad2cac4bfe3099505cb63a4f4/lib/Language/OCaml/PrettyPrinter/StructureItemDesc.hs | haskell | # LANGUAGE OverloadedStrings # | # LANGUAGE FlexibleContexts #
# LANGUAGE LambdaCase #
# LANGUAGE UndecidableInstances #
# OPTIONS_GHC -fno - warn - orphans #
module Language.OCaml.PrettyPrinter.StructureItemDesc
( structureItemDescPP,
)
where
import Language.OCaml.Definitions.Parsing.ParseTree
( Payload,
StructureItemDesc (..),
)
import... |
5da45c88036912337aa51b4ab545ebbb750a0b4bfbe655cea4ab63b248a67880 | cse-bristol/110-thermos-ui | manage_lidar.cljs | This file is part of THERMOS , copyright © Centre for Sustainable Energy , 2017 - 2021
Licensed under the Reciprocal Public License v1.5 . See LICENSE for licensing details .
(ns thermos-frontend.pages.manage-lidar
(:require [cljsjs.leaflet]
[ajax.core :refer [GET]]
[goog.object :as o]))
... | null | https://raw.githubusercontent.com/cse-bristol/110-thermos-ui/e13b96329f3c95e5a10bae431e8ae9bccdb475f4/src/thermos_frontend/pages/manage_lidar.cljs | clojure | need the type hint below to make .bindTooltip exist when minified. Urgh. | This file is part of THERMOS , copyright © Centre for Sustainable Energy , 2017 - 2021
Licensed under the Reciprocal Public License v1.5 . See LICENSE for licensing details .
(ns thermos-frontend.pages.manage-lidar
(:require [cljsjs.leaflet]
[ajax.core :refer [GET]]
[goog.object :as o]))
... |
f26a864b94a587e5590e297a29352d83852e364d5a44fffccdbaff8dfbf71df1 | tmfg/mmtis-national-access-point | own_services.cljs | (ns ote.views.own-services
(:require [clojure.string :as s]
[reagent.core :as r]
[cljs-react-material-ui.reagent :as ui]
[cljs-react-material-ui.icons :as ic]
[clojure.string :as str]
[stylefy.core :as stylefy]
[ote.db.modification :as modificati... | null | https://raw.githubusercontent.com/tmfg/mmtis-national-access-point/402c9ad4a659a048ab22dd7d4a2865d06eb5bb7e/ote/src/cljs/ote/views/own_services.cljs | clojure | Published or draft but with errors
When state in validation but no errors
When state in validation with errors
Normal case
if url contains "testi" show message -> testi.finap.fi
TRUE -> Table for transport services
No filter, back-end returns what we want
Filter away transport-operators that have no business-id... | (ns ote.views.own-services
(:require [clojure.string :as s]
[reagent.core :as r]
[cljs-react-material-ui.reagent :as ui]
[cljs-react-material-ui.icons :as ic]
[clojure.string :as str]
[stylefy.core :as stylefy]
[ote.db.modification :as modificati... |
b755370b3c123d963a43a9cd73b9be97925b3ee7273194a7853546242356931b | gravicappa/gambit-sdl | pango-cairo-draw.scm |
(load "s-pango/pango")
(load "s-pango/pango-cairo")
(define (cairo-pango-draw screen cairo pango time)
(if (and cairo pango)
(let ((c (sdl-cairo#cairo cairo)))
(sdl-cairo#clear-surface! cairo)
(cairo-set-source-rgba c 0.0 0.0 0.0 1.0)
(cairo-rectangle c 0.0 0.0 200.0 100.0)
(ca... | null | https://raw.githubusercontent.com/gravicappa/gambit-sdl/bde15600d7911e8c629e32f715bfa030000a3b09/example/pango-cairo-draw.scm | scheme |
(load "s-pango/pango")
(load "s-pango/pango-cairo")
(define (cairo-pango-draw screen cairo pango time)
(if (and cairo pango)
(let ((c (sdl-cairo#cairo cairo)))
(sdl-cairo#clear-surface! cairo)
(cairo-set-source-rgba c 0.0 0.0 0.0 1.0)
(cairo-rectangle c 0.0 0.0 200.0 100.0)
(ca... | |
58bdd06a8b2200eccd3266f58191a3e24515cd0098f20c37e342e81f7272ff3e | spinda/liquidhaskell-cabal-demo | X1.hs | module Checked.X1 (x) where
import Checked.X2
| null | https://raw.githubusercontent.com/spinda/liquidhaskell-cabal-demo/715b051f8352ddb3a81611b4b3db52ef5eb9ad50/app/Checked/X1.hs | haskell | module Checked.X1 (x) where
import Checked.X2
| |
697de05de8249ed98a149679108b67110e89a1b30591707f720878fff7d79ab8 | tonymorris/geo-osm | MaxlonL.hs | -- -- | Values with a @maxlon@ string accessor.
module Data.Geo.OSM.Lens.MaxlonL where
import Control.Lens.Lens
class MaxlonL a where
maxlonL ::
Lens' a String
| null | https://raw.githubusercontent.com/tonymorris/geo-osm/776542be2fd30a05f0f9e867128eca5ad5d66bec/src/Data/Geo/OSM/Lens/MaxlonL.hs | haskell | -- | Values with a @maxlon@ string accessor. | module Data.Geo.OSM.Lens.MaxlonL where
import Control.Lens.Lens
class MaxlonL a where
maxlonL ::
Lens' a String
|
58731867c5a0da262477911394a42bff1ae7bcd577039baeb0a5ae065f439f6a | sirherrbatka/clusters | utils.lisp | (cl:in-package #:clusters.clarans)
(defun contains (medoids medoid)
(not (null (position medoid medoids :test 'eql))))
(-> random-medoid (fixnum index-array) fixnum)
(defun random-medoid (n medoids)
(iterate
(for medoid = (random n))
(finding medoid such-that (not (contains medoids medoid)))))
(defun ... | null | https://raw.githubusercontent.com/sirherrbatka/clusters/20b8b60005ac8e27d12d05d277b26d8b5ca5c238/source/clarans/utils.lisp | lisp | (cl:in-package #:clusters.clarans)
(defun contains (medoids medoid)
(not (null (position medoid medoids :test 'eql))))
(-> random-medoid (fixnum index-array) fixnum)
(defun random-medoid (n medoids)
(iterate
(for medoid = (random n))
(finding medoid such-that (not (contains medoids medoid)))))
(defun ... | |
437279948570fb133890b257f07b81396753fe643c3c962c39f3063f70cf9865 | lokke-org/lokke | vector.scm | Copyright ( C ) 2019 < >
SPDX - License - Identifier : LGPL-2.1 - or - later OR EPL-1.0 +
(define-module (lokke scm vector)
#:use-module ((ice-9 format) #:select (format))
#:use-module ((ice-9 match) #:select (match))
#:use-module ((lokke base collection) #:select (<sequential>))
#:use-module ((lokke ha... | null | https://raw.githubusercontent.com/lokke-org/lokke/a6616b3de60b62d787bf9b98206f8ad9eeb10844/mod/lokke/scm/vector.scm | scheme | FIXME: implement a "cursor" on the C side that can be used for
traversals, including seq.
FIXME: move some bulk construction to the C side?
FIXME: make-foreign-object-type* is an ugly potentially fragile hack.
NOTE: this cannot be redefined since it's cached in the C code.
Note: this really is equal?, not clojure... | Copyright ( C ) 2019 < >
SPDX - License - Identifier : LGPL-2.1 - or - later OR EPL-1.0 +
(define-module (lokke scm vector)
#:use-module ((ice-9 format) #:select (format))
#:use-module ((ice-9 match) #:select (match))
#:use-module ((lokke base collection) #:select (<sequential>))
#:use-module ((lokke ha... |
d267c08bcbb8821118b26c1a8b6116b9468a8f83126804cf2cd42433b31e6e3c | pariyatti/kosa | collections_test.clj | (ns kuti.support.collections-test
(:require [kuti.support.collections :as sut]
[clojure.test :refer :all]))
(deftest merging-key-values
(testing "merges kvs by key, not value"
(is (= [["eng" "moon"]
["fra" "lune"]
["spa" "luna"]]
(sut/merge-kvs [["eng" "mon"]
... | null | https://raw.githubusercontent.com/pariyatti/kosa/7dd37d60ba390f06e37b9bb34ed3c069891ab24a/test/kuti/support/collections_test.clj | clojure | (ns kuti.support.collections-test
(:require [kuti.support.collections :as sut]
[clojure.test :refer :all]))
(deftest merging-key-values
(testing "merges kvs by key, not value"
(is (= [["eng" "moon"]
["fra" "lune"]
["spa" "luna"]]
(sut/merge-kvs [["eng" "mon"]
... | |
43a25a1b5202bb595378b880c98dbd43f64e4bf9320fd7bc0635bd01b9548ea1 | erlang/otp | http_request.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 2005 - 2022 . All Rights Reserved .
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% -2.0
%%
%% Unless required by applic... | null | https://raw.githubusercontent.com/erlang/otp/eccc556e79f315d1f87c10fb46f2c4af50a63f20/lib/inets/src/http_lib/http_request.erl | erlang |
%CopyrightBegin%
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific l... | Copyright Ericsson AB 2005 - 2022 . All Rights Reserved .
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(http_request).
-include("http_internal.hrl").
-export([headers/2, http_headers/1, is_absolut_uri/1, key_va... |
6d0795bb99444ee20d5f3253cacf75aba2c2dc7aa2dec8e7f7b239625bb75b7d | lassik/upscheme | printcases.scm | expand
append
bq-process
(define (syntax-environment)
(map (lambda (s) (cons s (symbol-syntax s)))
(filter symbol-syntax (environment))))
(syntax-environment)
(symbol-syntax 'try)
(map-int (lambda (x) `(a b c d e)) 90)
(list->vector (map-int (lambda (x) `(a b c d e)) 90))
'((lambda (x y) (if (< x y) x y)... | null | https://raw.githubusercontent.com/lassik/upscheme/61935bd866acb18902199bc4bc4cdd1760aa1ffc/scheme-tests/printcases.scm | scheme | expand
append
bq-process
(define (syntax-environment)
(map (lambda (s) (cons s (symbol-syntax s)))
(filter symbol-syntax (environment))))
(syntax-environment)
(symbol-syntax 'try)
(map-int (lambda (x) `(a b c d e)) 90)
(list->vector (map-int (lambda (x) `(a b c d e)) 90))
'((lambda (x y) (if (< x y) x y)... | |
ab711428d4e69651daa9f7a81da6d6cdebfb32dd44308a5106860d81ad44d5e0 | craigfe/ppx_irmin | unsupported_type_extension.ml | type t = [%typ] [@@deriving irmin]
| null | https://raw.githubusercontent.com/craigfe/ppx_irmin/06d764c6f1049131f1c4c7a3fbc59ff516c9d679/test/deriver/errors/unsupported_type_extension.ml | ocaml | type t = [%typ] [@@deriving irmin]
| |
c10b26bc88e52e844534ed61e302c4a9843e184b69d8fa32f19e66c9bb86cd6f | manuel-serrano/bigloo | util.scm | (module __crypto-util
(export (macro +fx+)
(macro -fx-)
(macro debug)
(bignum-bit-length::long b::bignum)
(inline /ceilingfx::long x::long y::long)
(inline bignum->char::char b::bignum)
(inline char->bignum::bignum c::char)
(inline char-xor::char c1::char c2::char)
(string-xor::bstrin... | null | https://raw.githubusercontent.com/manuel-serrano/bigloo/eb650ed4429155f795a32465e009706bbf1b8d74/api/crypto/src/Llib/util.scm | scheme | this is the last octet
warning, but still). try to get more random-bytes from /dev/random, and
make fallback optional.
Furthermore: /dev/urandom is faster, but probably still safe.
length is in bit.
*---------------------------------------------------------------------*/
* random-prime ... ... | (module __crypto-util
(export (macro +fx+)
(macro -fx-)
(macro debug)
(bignum-bit-length::long b::bignum)
(inline /ceilingfx::long x::long y::long)
(inline bignum->char::char b::bignum)
(inline char->bignum::bignum c::char)
(inline char-xor::char c1::char c2::char)
(string-xor::bstrin... |
b8f7401993a820d93d1f900e9e9f44dd353c345d2a05194955240960a6821d6a | dongcarl/guix | nix.scm | ;;; GNU Guix --- Functional package management for GNU
Copyright © 2019 , 2020 , 2021 < >
Copyright © 2020 >
;;;
;;; 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 F... | null | https://raw.githubusercontent.com/dongcarl/guix/d2b30db788f1743f9f8738cb1de977b77748567f/gnu/services/nix.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 © 2019 , 2020 , 2021 < >
Copyright © 2020 >
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 nix)
#:use-module (gnu packages admin)
#:... |
91261a559962b63cae1cd3dd9a9cec179ec0e6aa0c5cfca40c95e7bc0038da40 | janestreet/async_ssl | ssl.ml | open Core
open Poly
open Async
open Import
module Version = Version
module Opt = Opt
module Verify_mode = Verify_mode
module For_testing = struct
let slow_down_io_to_exhibit_truncation_bugs = ref false
end
module type Ffi = module type of Ffi__library_must_be_initialized
let ffi =
lazy
(Initialize.initialize... | null | https://raw.githubusercontent.com/janestreet/async_ssl/33f6e7fc31dc5b25b9cf4bed146d825a5fbe7787/src/ssl.ml | ocaml | from: cipherli.st
See [man SSL_CTX_set_security_level].
The reader and writer binary IO interfaces used by SSL to exchange data without
going through a file descriptor. Strangely enough, to use SSL we _read from_ wbio
and _write to_ wbio. The names are from the perspective of the SSL library.
The... | open Core
open Poly
open Async
open Import
module Version = Version
module Opt = Opt
module Verify_mode = Verify_mode
module For_testing = struct
let slow_down_io_to_exhibit_truncation_bugs = ref false
end
module type Ffi = module type of Ffi__library_must_be_initialized
let ffi =
lazy
(Initialize.initialize... |
4d6e15c68ef24d2dc29292590f44e33437c64ae0d1517d2d17bcf6b0a7bb5d22 | fredfeng/CS162 | typeinfer.mli | type ityp = IInt | IFun of ityp * ityp | IList of ityp | IVar of int
module Dsl :
sig
val i : ityp
val ( => ) : ityp -> ityp -> ityp
val l : ityp -> ityp
val v : int -> ityp
end
val ityp_of_typ : Ast.typ -> ityp
val string_of_ityp : ityp -> string
module Env :
sig
type key = String.t
type ... | null | https://raw.githubusercontent.com/fredfeng/CS162/65bd324dc8a8c1406ee45548780ca417e35d35e3/homework/hw6/typeinfer.mli | ocaml | type ityp = IInt | IFun of ityp * ityp | IList of ityp | IVar of int
module Dsl :
sig
val i : ityp
val ( => ) : ityp -> ityp -> ityp
val l : ityp -> ityp
val v : int -> ityp
end
val ityp_of_typ : Ast.typ -> ityp
val string_of_ityp : ityp -> string
module Env :
sig
type key = String.t
type ... | |
a6e08b59a714530d10e290edb90afcd1f0d81ec4b37c06db161da5577935b95b | Happstack/happstack-server | TimeoutSocket.hs | # LANGUAGE BangPatterns , ScopedTypeVariables #
{- |
-- borrowed from snap-server. Check there periodically for updates.
-}
module Happstack.Server.Internal.TimeoutSocket where
import Control.Applicative (pure)
import Control.Concurrent (threadWaitWrite)
import Contro... | null | https://raw.githubusercontent.com/Happstack/happstack-server/d9cdb9af5635b1ebd9db0801b66dbf4e58aba66b/src/Happstack/Server/Internal/TimeoutSocket.hs | haskell | |
-- borrowed from snap-server. Check there periodically for updates.
^ Connected socket
^ Data received
and this end is already disconnected before we do
'shutdown'. Ignore this exception. | # LANGUAGE BangPatterns , ScopedTypeVariables #
module Happstack.Server.Internal.TimeoutSocket where
import Control.Applicative (pure)
import Control.Concurrent (threadWaitWrite)
import Control.Exception as E (catch, throw)
import Control.Monad ... |
4f5e0a404fabb18e4c27d1493e0be2c325077d87f216e282df506400fa45f285 | inhabitedtype/ocaml-aws | describeParameters.mli | open Types
type input = DescribeParametersRequest.t
type output = DescribeParametersResult.t
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type error := error
| null | https://raw.githubusercontent.com/inhabitedtype/ocaml-aws/3bc554af7ae7ef9e2dcea44a1b72c9e687435fa9/libraries/ssm/lib/describeParameters.mli | ocaml | open Types
type input = DescribeParametersRequest.t
type output = DescribeParametersResult.t
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type error := error
| |
f5111ec0ea53f3549fd2c76708dcacb965866676084e1f0a41ae7f1c6fb79600 | haskell/ghcup-hs | Main.hs | import Test.Hspec.Runner
import qualified Spec
main :: IO ()
main =
hspecWith
defaultConfig
Spec.spec
| null | https://raw.githubusercontent.com/haskell/ghcup-hs/e1d86c77d05c3720edcbbba9e5e4cba331ce9204/test/Main.hs | haskell | import Test.Hspec.Runner
import qualified Spec
main :: IO ()
main =
hspecWith
defaultConfig
Spec.spec
| |
07aa5e0df2e7cd2c89c988d630bf91e75266b9dd96b597258c040ede8603ec58 | AndrasKovacs/setoidtt | U.hs |
module Data.Array.Dynamic.U (
empty
, Array
, clear
, push
, Data.Array.Dynamic.U.read
, Data.Array.Dynamic.U.show
, size
, unsafeRead
, unsafeWrite
, write
, unsafeLast
, Data.Array.Dynamic.U.last
, isEmpty
-- , foldl'
, foldlIx '
-- , foldr'
, foldrIx '
-- , Data.Array.Dynamic.... | null | https://raw.githubusercontent.com/AndrasKovacs/setoidtt/621aef2c4ae5a6acb418fa1153575b21e2dc48d2/setoidtt/dynamic-array/Data/Array/Dynamic/U.hs | haskell | , foldl'
, foldr'
, Data.Array.Dynamic.any
, Data.Array.Dynamic.all
, anyIx
, forM_
, forMIx_
# inline empty #
# inline read #
# inline write #
# inline push #
# inline size #
# inline isEmpty #
# inline last #
# inlinable show #
foldl' :: (b -> a -> b) -> b -> Array a -> IO b
foldl' f b = \arr -> do
s <- s... |
module Data.Array.Dynamic.U (
empty
, Array
, clear
, push
, Data.Array.Dynamic.U.read
, Data.Array.Dynamic.U.show
, size
, unsafeRead
, unsafeWrite
, write
, unsafeLast
, Data.Array.Dynamic.U.last
, isEmpty
, foldlIx '
, foldrIx '
, allIx
) where
import Data.Unlifted
import Data.... |
dcf941124da8720e0f19d4d6bbd1d3a7f3cb8d7c5a462503c17fe83b2f27c714 | RyanGlScott/text-show | Equality.hs | {-# LANGUAGE CPP #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE PolyKinds #-}
# LANGUAGE TemplateHaskell #
{-# LANGUAGE TypeOperators #-}
# OPTIONS_GHC -fno - warn - orphans #
|
Module : TextShow . Data . Type . Equality
Copyright : ( C ) 2014 - 2017
License : BSD - style ( ... | null | https://raw.githubusercontent.com/RyanGlScott/text-show/cede44e2bc357db54a7e2ad17de200708b9331cc/src/TextShow/Data/Type/Equality.hs | haskell | # LANGUAGE CPP #
# LANGUAGE GADTs #
# LANGUAGE PolyKinds #
# LANGUAGE TypeOperators #
| /Since: 3.6/
| /Since: 3.6/
| /Since: 3.6/ | # LANGUAGE TemplateHaskell #
# OPTIONS_GHC -fno - warn - orphans #
|
Module : TextShow . Data . Type . Equality
Copyright : ( C ) 2014 - 2017
License : BSD - style ( see the file LICENSE )
Maintainer :
Stability : Provisional
Portability : GHC
' TextShow ' instance for propositiona... |
ad687a74c5d9bfb36a0adf9adf1b4c00d16d2b72317cb1a0ae8cebfd80c87f46 | resttime/cl-liballegro | image-io.lisp | (in-package #:cl-liballegro)
;;; Image I/O addon
(defcfun ("al_init_image_addon" init-image-addon) :boolean)
(defcfun ("al_shutdown_image_addon" shutdown-image-addon) :void)
(defcfun ("al_get_allegro_image_version" get-allegro-image-version) :uint32)
| null | https://raw.githubusercontent.com/resttime/cl-liballegro/0f8a3a77d5c81fe14352d9a799cba20e1a3a90b4/src/ffi-functions/addons/image-io.lisp | lisp | Image I/O addon | (in-package #:cl-liballegro)
(defcfun ("al_init_image_addon" init-image-addon) :boolean)
(defcfun ("al_shutdown_image_addon" shutdown-image-addon) :void)
(defcfun ("al_get_allegro_image_version" get-allegro-image-version) :uint32)
|
ddb3cc871cc243f654d6a12c82d81a670b552efecef8bb38d53b7ed695b38b1d | hammerlab/biokepi | input_gen.ml | open Biokepi.EDSL.Library.Input
open Nonstd
module String = Sosa.Native_string
let cmd () =
let open Cmdliner in
let version = "0.0.0" in
let doc = "Generate Input.t JSON" in
let man = [
`S "Description";
`P "Given a directory and a host, generate Input.t JSON representing all";
`Noblank;
`P "t... | null | https://raw.githubusercontent.com/hammerlab/biokepi/d64eb2c891b41bda3444445cd2adf4e3251725d4/src/app/input_gen.ml | ocaml | open Biokepi.EDSL.Library.Input
open Nonstd
module String = Sosa.Native_string
let cmd () =
let open Cmdliner in
let version = "0.0.0" in
let doc = "Generate Input.t JSON" in
let man = [
`S "Description";
`P "Given a directory and a host, generate Input.t JSON representing all";
`Noblank;
`P "t... | |
c713a282ed07ed884af33fa8b391938dbd880d37418075cd6b1d5c14e64d6a92 | karamaan/karamaan-opaleye | Operators2.hs | # LANGUAGE Arrows , FlexibleContexts , MultiParamTypeClasses #
module Karamaan.Opaleye.Operators2 where
import Prelude hiding (and, or, not)
import Karamaan.Opaleye.Wire (Wire(Wire), unWire)
import Karamaan.Opaleye.OperatorsPrimatives (binrel)
import Karamaan.Opaleye.QueryArr (Query, QueryArr(QueryArr), next, tagWith... | null | https://raw.githubusercontent.com/karamaan/karamaan-opaleye/2863dc1dba9ea1e810cb0860a9b8de53f50af354/Karamaan/Opaleye/Operators2.hs | haskell | At some point I should come up with a better naming system.
using the PostgreSQL generator. The correct fix is probably to fix
TODO: is this type signature right?
Doesn't seem to work for string with postgresql-simple
because postgresql-simple seems to need a type sig on its strings
Postgres seems to need type s... | # LANGUAGE Arrows , FlexibleContexts , MultiParamTypeClasses #
module Karamaan.Opaleye.Operators2 where
import Prelude hiding (and, or, not)
import Karamaan.Opaleye.Wire (Wire(Wire), unWire)
import Karamaan.Opaleye.OperatorsPrimatives (binrel)
import Karamaan.Opaleye.QueryArr (Query, QueryArr(QueryArr), next, tagWith... |
7d7d335fa962f0933d1bdfec60d8e3f730bb415d24eaa441159e1c64959f6f70 | casperschipper/ocaml-cisp | osc_understand.ml | open OUnit
open Result
let test_udp_send_recv packet =
let open Lwt in
let open Osc_lwt.Udp in
let localhost = Unix.inet_addr_of_string "127.0.0.1" in (* local *)
let port = 4567 in
let addr = Lwt_unix.ADDR_INET (localhost, port) in (* an address *)
let buffer_length = 1024 in (* max buffer length, just an... | null | https://raw.githubusercontent.com/casperschipper/ocaml-cisp/571ffb8e508c5427d01e407ba5e91ff2a4604f40/src/osc/core/osc_understand.ml | ocaml | local
an address
max buffer length, just an int
a bracket is something that produces an object, passes it to a test, than breaks it appart
this is a thunk, that produces a client and server
creaate a Client and a Server and store them in a tuple
the mvar is used to pass a value around
this is a toplevel ... | open OUnit
open Result
let test_udp_send_recv packet =
let open Lwt in
let open Osc_lwt.Udp in
let port = 4567 in
(fun () ->
(Client.create ()
>>= (fun client -> Server.create addr buffer_length
(fun (client, server) ->
Lwt_main.run
(Lwt.async (fun () ->
Server.re... |
266cd08d1702d09415381919777b176ab810f236004c2e502ecc9f82aa68ff1b | mischief901/gen_quic | stream_balancer.erl | %%%-------------------------------------------------------------------
@author >
( C ) 2018 ,
%%% @doc
%%%
%%% @end
Created : 14 Nov 2018 by >
%%%-------------------------------------------------------------------
-module(stream_balancer).
-behaviour(gen_server).
%% API
-export([start_balancer/2]).
... | null | https://raw.githubusercontent.com/mischief901/gen_quic/9f0211a16548fff69738027e3ddcfd16a464fe40/src/stream_balancer.erl | erlang | -------------------------------------------------------------------
@doc
@end
-------------------------------------------------------------------
API
gen_server callbacks
===================================================================
API
===================================================================
Th... | @author >
( C ) 2018 ,
Created : 14 Nov 2018 by >
-module(stream_balancer).
-behaviour(gen_server).
-export([start_balancer/2]).
-export([open_stream/2, open_stream/3]).
-export([close_stream/1]).
-export([setopts/2]).
-export([getopts/2]).
-include("quic_headers.hrl").
-export([init/1, handle_cal... |
30ca200891a870c44ce8e285d369c5029394b00bbf5264f2435a376b49c326dc | sile/erl-rtmpmsg | rtmpmsg_encoder.erl | %%% @doc RTMP message encoder
%%% @end
%%%
%%%
Copyright ( c ) 2013 , < >
%%%
%%% The MIT License
%%%
%%% Permission is hereby granted, free of charge, to any person obtaining a copy
%%% of this software and associated documentation files (the "Software"), to deal
in the Software without restriction , including... | null | https://raw.githubusercontent.com/sile/erl-rtmpmsg/8ab84ef3cfe859d321f24d280b2959cd796156f2/src/rtmpmsg_encoder.erl | erlang | @doc RTMP message encoder
@end
The MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
furnished to do so, subject to t... | Copyright ( c ) 2013 , < >
in the Software without restriction , including without limitation the rights
copies of the Software , and to permit persons to whom the Software is
all copies or substantial portions of the Software .
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR... |
421d36f37bda090b6007b060d5f2f6b0b529d673ae742862c01bc69d2a7017ae | cram-code/cram_core | utils.lisp | ;;;
Copyright ( c ) 2009 , < >
;;; 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... | null | https://raw.githubusercontent.com/cram-code/cram_core/984046abe2ec9e25b63e52007ed3b857c3d9a13c/cram_language/src/utils.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 ) 2009 , < >
* Neither the name of Willow Garage , Inc. nor the names of its
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 ... |
40baa3ef36281412197bc753d0d4b2cb25afcdb21341653078712fb1548e35e8 | facebookarchive/pfff | ast_java_simple.ml | (*
* The AST in lang_java/parsing/ is actually already a simple AST
* as opposed to what we usually have in other language
* directories (e.g. lang_php/). So we just have a simple
* type alias here.
*)
type program = Ast_java.program
| null | https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/lang_java/analyze/ast_java_simple.ml | ocaml |
* The AST in lang_java/parsing/ is actually already a simple AST
* as opposed to what we usually have in other language
* directories (e.g. lang_php/). So we just have a simple
* type alias here.
| type program = Ast_java.program
|
ea42dd4eed0bd44c8caa66d395d8f73892857f1b0995129ee1b257cebfb35d87 | digikar99/numericals | n-arg-fn-tests.lisp | (numericals.common:compiler-in-package numericals.common:*compiler-package*)
(5am:in-suite nu::array)
;; FIXME: Categorize optimizable and non-optimizable tests correctly
(5am:def-test nu:+ (:suite nu::array)
(symbol-macrolet ((non-optimizable-tests
`(let ((nu:*array-element-type* 'single-f... | null | https://raw.githubusercontent.com/digikar99/numericals/69bfa08401c512772069d74ac30325d49f19b65c/src/n-arg-fn-tests.lisp | lisp | FIXME: Categorize optimizable and non-optimizable tests correctly | (numericals.common:compiler-in-package numericals.common:*compiler-package*)
(5am:in-suite nu::array)
(5am:def-test nu:+ (:suite nu::array)
(symbol-macrolet ((non-optimizable-tests
`(let ((nu:*array-element-type* 'single-float))
(5am:is (= 2 (nu:+ 2)))
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.