_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 |
|---|---|---|---|---|---|---|---|---|
39ee7fd5a2c0099ceddf86be7b3b93c870b0b93edaf207af5b6882a0c93c101f | informatimago/lisp | asdf-tools.lisp | -*- mode : lisp;coding : utf-8 -*-
;;;;**************************************************************************
FILE : asdf-tools.lisp
;;;;LANGUAGE: Common-Lisp
;;;;SYSTEM: Common-Lisp
USER - INTERFACE :
;;;;DESCRIPTION
;;;;
;;;; ASDF tools.
;;;;
< PJB > < >
M... | null | https://raw.githubusercontent.com/informatimago/lisp/b163071a4f0e195a39fd3f4e31435c9d55f2b311/tools/asdf-tools.lisp | lisp | coding : utf-8 -*-
**************************************************************************
LANGUAGE: Common-Lisp
SYSTEM: Common-Lisp
DESCRIPTION
ASDF tools.
asdf-system-license in here from manifest.
LEGAL
This program is free software: you can redistribute it a... | FILE : asdf-tools.lisp
USER - INTERFACE :
< PJB > < >
MODIFICATIONS
2021 - 05 - 12 < PJB > Moved asdf - system - name and
2013 - 12 - 06 < PJB > Extracted from rc / common.lisp
AGPL3
Copyright 2013 - 2021
it under the terms of the GNU Affero General Public Lic... |
e9b420a1cef47d852958faf3b2cfdc34006489e0ae6aadf236548f99e8cb766f | erlang/otp | io_proto_SUITE.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 2009 - 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 applicab... | null | https://raw.githubusercontent.com/erlang/otp/7151c9708937474c3180eb11007386654b335716/lib/stdlib/test/io_proto_SUITE.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 lan... | Copyright Ericsson AB 2009 - 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(io_proto_SUITE).
-export([all/0, suite/0,groups/0,init_per_suite/1, end_per_suite/1,
init_per_group/2,end... |
dd207d7e95090fabfde10da627c4f5764738c6e529cad628c580c466e4c1ef74 | xh4/web-toolkit | handler-default.lisp | (in-package :http)
(define-handler default-handler ()
()
(:function (lambda (request)
(declare (ignore request))
(reply
(html:document
(html:html
(html:head
(html:title "Lisp Web Toolkit"))
(html:b... | null | https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/http/handler-default.lisp | lisp | (in-package :http)
(define-handler default-handler ()
()
(:function (lambda (request)
(declare (ignore request))
(reply
(html:document
(html:html
(html:head
(html:title "Lisp Web Toolkit"))
(html:b... | |
505715b87f1c103f833192d1f1c865eb26df7fd496da08439ba22eed39abe7df | christoff-buerger/racr | ast.scm | ; This program and the accompanying materials are made available under the
terms of the MIT license ( X11 license ) which accompanies this distribution .
Author :
#!r6rs
(library
(siple ast)
(export
specify-ast)
(import (rnrs) (racr core))
(define specify-ast
(lambda (siple-specification)
(with... | null | https://raw.githubusercontent.com/christoff-buerger/racr/ecb2a9b8bf3f333550728cf45b97607a8298532f/examples/siple/ast.scm | scheme | This program and the accompanying materials are made available under the | terms of the MIT license ( X11 license ) which accompanies this distribution .
Author :
#!r6rs
(library
(siple ast)
(export
specify-ast)
(import (rnrs) (racr core))
(define specify-ast
(lambda (siple-specification)
(with-specification
siple-specification
(ast-rule 'Compilatio... |
76c61af9f110bda56fdbdb4e3979011d3df28882ece0d55f9efa107b22f8bb1c | OpenBookStore/openbookstore | management.lisp | (defpackage bookshops.management
(:use :cl
:mito)
(:import-from :bookshops.models
:find-book
:price
:ensure-integer)
(:import-from :bookshops.utils)
(:export :parse-prices)
(:local-nicknames (:models :bookshops.models)
(:utils :booksh... | null | https://raw.githubusercontent.com/OpenBookStore/openbookstore/3036d3cef2196f4282a91c55310142b44aa50423/src/management/management.lisp | lisp | SQL query ? | (defpackage bookshops.management
(:use :cl
:mito)
(:import-from :bookshops.models
:find-book
:price
:ensure-integer)
(:import-from :bookshops.utils)
(:export :parse-prices)
(:local-nicknames (:models :bookshops.models)
(:utils :booksh... |
8a2ae699b170f73264ef270a606e5101e39472a950d51675257eb47bf79f6dab | bmeurer/ocaml-arm | genprintval.ml | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
and , projet Crist... | null | https://raw.githubusercontent.com/bmeurer/ocaml-arm/43f7689c76a349febe3d06ae7a4fc1d52984fd8b/toplevel/genprintval.ml | ocaml | *********************************************************************
OCaml
... | and , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
en Automatique . All rights reserved . This file is distributed
under the terms of the Q Public License version 1.0 .
$ Id$
open Misc
open Format
open Longident
open P... |
339cf73a1f4e9e0feab5e9cb16b5c9713767a1a1dc47b5c7287d53c7f06305d4 | well-typed/large-records | R090.hs | #if PROFILE_CORESIZE
{-# OPTIONS_GHC -ddump-to-file -ddump-ds-preopt -ddump-ds -ddump-simpl #-}
#endif
#if PROFILE_TIMING
{-# OPTIONS_GHC -ddump-to-file -ddump-timings #-}
#endif
{-# OPTIONS_GHC -fplugin=Data.Record.Anon.Plugin #-}
module Experiment.ConstructNoTypeLet.Sized.R090 where
import Data.Record.Anon.Simple ... | null | https://raw.githubusercontent.com/well-typed/large-records/78d0966e4871847e2c17a0aa821bacf38bdf96bc/large-records-benchmarks/bench/large-anon/Experiment/ConstructNoTypeLet/Sized/R090.hs | haskell | # OPTIONS_GHC -ddump-to-file -ddump-ds-preopt -ddump-ds -ddump-simpl #
# OPTIONS_GHC -ddump-to-file -ddump-timings #
# OPTIONS_GHC -fplugin=Data.Record.Anon.Plugin #
00 .. 09 | #if PROFILE_CORESIZE
#endif
#if PROFILE_TIMING
#endif
module Experiment.ConstructNoTypeLet.Sized.R090 where
import Data.Record.Anon.Simple (Record)
import Bench.Types
import Common.RowOfSize.Row090
record :: Word -> Record ExampleRow
record x = ANON {
t00 = MkT x
, t01 = MkT x
, t02 = MkT x
, t03... |
522a7f9da643c130e4b390486b158336b8d51f367318b161418be37dd0e00d43 | initc3/SaUCy | Solver.hs | # LANGUAGE GeneralizedNewtypeDeriving #
{-# LANGUAGE TypeSynonymInstances #-}
# LANGUAGE FlexibleInstances #
{-# OPTIONS_GHC -Wall #-}
--------------------------------------------------------------------------------
-- |
-- Module : Language.ILC.Infer.Solver
Copyright : (... | null | https://raw.githubusercontent.com/initc3/SaUCy/199154c1f488af4561e4bf1f7f5f3ef8876dfa6b/src/Language/ILC/Infer/Solver.hs | haskell | # LANGUAGE TypeSynonymInstances #
# OPTIONS_GHC -Wall #
------------------------------------------------------------------------------
|
Module : Language.ILC.Infer.Solver
License : BSD-style (see LICENSE)
Stability : experimental
---------------------------------------------... | # LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE FlexibleInstances #
Copyright : ( C ) 2018
Maintainer : ( )
Constraint solver
module Language.ILC.Infer.Solver (
Constraint
, Unifier
, Solve
, Subst(..)
, Substitutable(..)
, runSolve
) where
import Control.Monad.Except... |
fddc1f95f4f1a01b7ccac8ceb1fb2bed6980dd7371b79b267ef5d67f9652706b | OCamlPro/typerex-lint | project_files.ml | (**************************************************************************)
(* *)
(* OCamlPro Typerex *)
(* *)
Copyrigh... | null | https://raw.githubusercontent.com/OCamlPro/typerex-lint/6d9e994c8278fb65e1f7de91d74876531691120c/plugins/ocp-lint-plugin-files/project_files.ml | ocaml | ************************************************************************
OCamlPro Typerex
This file is distributed ... | Copyright OCamlPro 2011 - 2016 . All rights reserved .
( GNU General Public Licence version 3.0 ) .
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND ,
NONINFRINGEMENT . IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
BE LIABLE... |
9863673b54402a0bfd4773f4a811e3dc6850bd94b9e7b64b29829e97f5d1b66c | ocsigen/ocsimore | crypt.mli | crypt using libcrypt
*
* Copyright ( C ) 2008
* ( Laboratoire PPS - CNRS - Université Paris Diderot )
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation , with ... | null | https://raw.githubusercontent.com/ocsigen/ocsimore/8eeaf043ed6f1f167a96cbdc5f72a5225d9516d5/src/core/server/crypt.mli | ocaml | * [check_passwd passwd hash] checks whether [hash] is correct for [passwd] | crypt using libcrypt
*
* Copyright ( C ) 2008
* ( Laboratoire PPS - CNRS - Université Paris Diderot )
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation , with ... |
6b4b4926e1a1047c9cafe36822dc29e9d643f2888202a3ae34b54b87c949d9f3 | JeffreyBenjaminBrown/hode | TPShow.hs | {-# LANGUAGE ScopedTypeVariables
, TupleSections #-}
# OPTIONS_GHC -fno - warn - type - defaults #
module Hode.Test.PTree.TPShow where
import qualified Test.HUnit as T
import Test.HUnit hiding (Test, test)
import qualified Data.List.PointedList as P
import Hode.PTree.Initial
import Hode.PTree.Show
... | null | https://raw.githubusercontent.com/JeffreyBenjaminBrown/hode/79a54a6796fa01570cde6903b398675c42954e62/hode-test/Hode/Test/PTree/TPShow.hs | haskell | # LANGUAGE ScopedTypeVariables
, TupleSections #
if list starts with 0, no subtree | # OPTIONS_GHC -fno - warn - type - defaults #
module Hode.Test.PTree.TPShow where
import qualified Test.HUnit as T
import Test.HUnit hiding (Test, test)
import qualified Data.List.PointedList as P
import Hode.PTree.Initial
import Hode.PTree.Show
test_module_pTree_show :: T.Test
test_module_pTree_sh... |
f3353150c24244151d6eafd2d12cd53bd12bd70e578ba3dd1ccc8b2b402f1645 | erlang/otp | unknown_function.erl | -module(unknown_function).
-export([
unknown_function_on_unknown_module/0,
unknown_function_on_known_module/0
]).
-spec unknown_function_on_known_module() -> ok.
unknown_function_on_known_module() ->
unknown_function:function().
-spec unknown_function_on_unknown_module() -> ok.
unknown_function_on_unkn... | null | https://raw.githubusercontent.com/erlang/otp/1633a01279ec782273e8c100280a5d3f10ac36a8/lib/dialyzer/test/options2_SUITE_data/src/unknown_function.erl | erlang | -module(unknown_function).
-export([
unknown_function_on_unknown_module/0,
unknown_function_on_known_module/0
]).
-spec unknown_function_on_known_module() -> ok.
unknown_function_on_known_module() ->
unknown_function:function().
-spec unknown_function_on_unknown_module() -> ok.
unknown_function_on_unkn... | |
aa909506dec165db1f5e269523ceed1e3b47f6af8fedbd02e9b3de8ddaf646ce | airalab/hs-web3 | Prim.hs | -- |
-- Module : Data.Solidity.Prim
Copyright : 2016 - 2021
-- License : Apache-2.0
--
-- Maintainer :
-- Stability : experimental
-- Portability : noportable
--
-- Solidity primitive data types.
--
module Data.Solidity.Prim
(
Address
, Bytes
, BytesN
, IntN
, UIntN... | null | https://raw.githubusercontent.com/airalab/hs-web3/c03b86eb621f963886a78c39ee18bcec753f17ac/packages/solidity/src/Data/Solidity/Prim.hs | haskell | |
Module : Data.Solidity.Prim
License : Apache-2.0
Maintainer :
Stability : experimental
Portability : noportable
Solidity primitive data types.
| Copyright : 2016 - 2021
module Data.Solidity.Prim
(
Address
, Bytes
, BytesN
, IntN
, UIntN
, ListN
) where
import Data.Solidity.Prim.Address (Address)
import Data.Solidity.Prim.Bool ()
import Data.Solidity.Prim.Bytes (Bytes, BytesN)
import... |
5269fab3386ce77aefc867a1898ed40de1cbb73618b7df77c1063f60547fb109 | HealthSamurai/unit-map | registry_test.cljc | (ns unit-map.impl.registry-test
(:require [unit-map.impl.registry :as sut]
[clojure.test :as t]))
(t/deftest reguseq-regsystem
(def registry
(-> {}
(sut/reg-useq :unit :a, :useq #unit-map/useq[0 1] :next-unit :b)
(sut/reg-useq :unit :b, :useq #unit-map/useq[0 1] :next-unit :c)
... | null | https://raw.githubusercontent.com/HealthSamurai/unit-map/eb90c2c427c2fb0f48cb54e58d1565f3255ec16d/test/unit_map/impl/registry_test.cljc | clojure | (ns unit-map.impl.registry-test
(:require [unit-map.impl.registry :as sut]
[clojure.test :as t]))
(t/deftest reguseq-regsystem
(def registry
(-> {}
(sut/reg-useq :unit :a, :useq #unit-map/useq[0 1] :next-unit :b)
(sut/reg-useq :unit :b, :useq #unit-map/useq[0 1] :next-unit :c)
... | |
b35c85235a6bb30e4d9cbcdd67c44eb07e40c381ec9326a99545327eaf44c9ab | ahaym/boke-hs | example.hs | # LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE DataKinds #
{-# LANGUAGE OverloadedStrings #-}
import Graphics.BokeHS
import qualified Data.ByteString.Lazy as BS
import Control.Monad
import System.Process
import Data.Scientific
import GHC.TypeLits
myPlot :: Plot
myPlot = plt
%> addLin... | null | https://raw.githubusercontent.com/ahaym/boke-hs/f952e79616c7ffba852443b0b91315f7c48587fd/example.hs | haskell | # LANGUAGE OverloadedStrings #
Automatic deriving for record types
Or define your own: | # LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE DataKinds #
import Graphics.BokeHS
import qualified Data.ByteString.Lazy as BS
import Control.Monad
import System.Process
import Data.Scientific
import GHC.TypeLits
myPlot :: Plot
myPlot = plt
%> addLinearAxis BBelow
%> addLinearAxis... |
17dc2566cc15c9cfb0b427219a00b1e5fec49ce5cbdb792a26e0845b67d3af6d | johnlawrenceaspden/hobby-code | factorise.clj | (defn divides? [i n] (= 0 (mod n i)))
(defn factors [n]
(if (= n 1) '()
(loop [i 2]
(if (= 0 (mod n i)) (cons i (factors (/ n i)))
(recur (inc i))))))
( factors 1000 ) ( 2 2 2 5 5 5 )
3500 msec
(defn factors [n]
(loop [acc '() i 2 n n]
(cond (= n 1) acc
(= 0 (... | null | https://raw.githubusercontent.com/johnlawrenceaspden/hobby-code/48e2a89d28557994c72299962cd8e3ace6a75b2d/factorise.clj | clojure | 3900 msec
3900 msec | (defn divides? [i n] (= 0 (mod n i)))
(defn factors [n]
(if (= n 1) '()
(loop [i 2]
(if (= 0 (mod n i)) (cons i (factors (/ n i)))
(recur (inc i))))))
( factors 1000 ) ( 2 2 2 5 5 5 )
3500 msec
(defn factors [n]
(loop [acc '() i 2 n n]
(cond (= n 1) acc
(= 0 (... |
840b7bcf8df27fcb24cc255b197394dd4bc829060f88485cfc020f538d1e8148 | fendor/hsimport | SymbolTest5.hs | module Test where
import Foo.Bar
import Foo.Bar.Blub
import Ugah.Argh
import Control.Monad
f :: Int -> Int
f = (+ 3)
| null | https://raw.githubusercontent.com/fendor/hsimport/9be9918b06545cfd7282e4db08c2b88f1d8162cd/tests/inputFiles/SymbolTest5.hs | haskell | module Test where
import Foo.Bar
import Foo.Bar.Blub
import Ugah.Argh
import Control.Monad
f :: Int -> Int
f = (+ 3)
| |
e320ca1e6521485adcb75c1cf9d3dc2bbdb7034480110728c48c092cfc267dc9 | pfdietz/ansi-test | lcm.lsp | ;-*- Mode: Lisp -*-
Author :
Created : Thu Sep 4 22:03:21 2003
Contains : Tests of LCM
(deftest lcm.error.1
(check-type-error #'lcm #'integerp)
nil)
(deftest lcm.1
(lcm)
1)
(deftest lcm.2
(loop for i = (random-fixnum)
for a = (abs i)
repeat 1000
unless (and (... | null | https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/numbers/lcm.lsp | lisp | -*- Mode: Lisp -*- | Author :
Created : Thu Sep 4 22:03:21 2003
Contains : Tests of LCM
(deftest lcm.error.1
(check-type-error #'lcm #'integerp)
nil)
(deftest lcm.1
(lcm)
1)
(deftest lcm.2
(loop for i = (random-fixnum)
for a = (abs i)
repeat 1000
unless (and (eql a (lcm i))
... |
577410e7223b7801a767950f27ebdc4444e21d52b42bc37c4566865cf863ee7f | serokell/universum | Reexport.hs | # LANGUAGE Trustworthy #
| This module reexports functinons to work with list , ' NonEmpty ' and String types .
module Universum.List.Reexport
( module Data.List
, module Data.List.NonEmpty
, module GHC.Exts
) where
import Data.List (break, cycle, drop, dropWhile, filter, genericDrop, g... | null | https://raw.githubusercontent.com/serokell/universum/86b30df995c245a5778c2cff5c9bd4bd94485116/src/Universum/List/Reexport.hs | haskell | # LANGUAGE Trustworthy #
| This module reexports functinons to work with list , ' NonEmpty ' and String types .
module Universum.List.Reexport
( module Data.List
, module Data.List.NonEmpty
, module GHC.Exts
) where
import Data.List (break, cycle, drop, dropWhile, filter, genericDrop, g... | |
d8d9676fc659b0b6a4ec5e22fde5e275f9573eac7228f2f1a96f3f819b77d6e4 | ocamllabs/ocaml-effects | compile.ml | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
, projet ... | null | https://raw.githubusercontent.com/ocamllabs/ocaml-effects/36008b741adc201bf9b547545344507da603ae31/driver/compile.ml | ocaml | *********************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 2002 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 .
open Misc
open Format
open Typedtree
o... |
e9fa850d58f64400e467712708b8599e5eb50b4026d174ee46972fe9396176e4 | hellonico/origami-dnn | marcel2.clj | (ns origami-dnn.demo.marcel.marcel2
(:require [origami-dnn.net.mobilenet :refer [find-objects]]
[opencv4.utils :refer [show re-show]]
[origami-dnn.draw :as d]
[opencv4.video :refer [CAP_PROP_FRAME_HEIGHT CAP_PROP_FRAME_WIDTH new-videowriter]]
[opencv4.dnn.core :as origa... | null | https://raw.githubusercontent.com/hellonico/origami-dnn/f55a32d0d3d528fcf57aaac10cfb20c7998b380c/src/origami_dnn/demo/marcel/marcel2.clj | clojure | (ns origami-dnn.demo.marcel.marcel2
(:require [origami-dnn.net.mobilenet :refer [find-objects]]
[opencv4.utils :refer [show re-show]]
[origami-dnn.draw :as d]
[opencv4.video :refer [CAP_PROP_FRAME_HEIGHT CAP_PROP_FRAME_WIDTH new-videowriter]]
[opencv4.dnn.core :as origa... | |
aa96f3fcee12268665cdd5dd55d36523939da8425e940cca3094a5711ec702bd | Elzair/nazghul | palette.scm | (kern-mk-palette 'pal_expanded
(list
There are 110 entries in this palette
The widest glyph is 2 characters
;;
;; Note:
;; It is best if all glyphs in a palette are of the same width,
so all glyphs in this palette should be 2 characters wide ,
;; like "xx" rather than "x".
;;
;; This ... | null | https://raw.githubusercontent.com/Elzair/nazghul/8f3a45ed6289cd9f469c4ff618d39366f2fbc1d8/worlds/haxima-1.002/palette.scm | scheme |
Note:
It is best if all glyphs in a palette are of the same width,
like "xx" rather than "x".
This constraint makes it easier to edit maps via search & replace,
and makes it easier to change the palette.
NOTE: "x#" is reserved for blocking mechanisms, see block-teleporting in
naz.scm
"wall"
"deep water"... | (kern-mk-palette 'pal_expanded
(list
There are 110 entries in this palette
The widest glyph is 2 characters
so all glyphs in this palette should be 2 characters wide ,
(list "_s" t_sludge)
(list "~s" t_shallow_sludge)
(list "dd" t_dirt)
(list "gg" t_gravel)
(list "^~" t_f... |
57a648db03a0e7038db06387d196d5bc21a7f6e56965d61e6664646e43137ddf | NorfairKing/smos | WaitingSpec.hs | # LANGUAGE TypeApplications #
module Smos.Report.WaitingSpec where
import Smos.Report.Archive.Gen ()
import Smos.Report.Filter.Gen ()
import Smos.Report.ShouldPrint
import Smos.Report.TestUtils
import Smos.Report.Waiting
import Smos.Report.Waiting.Gen ()
import Test.Syd
import Test.Syd.Validity
import Test.Syd.Validi... | null | https://raw.githubusercontent.com/NorfairKing/smos/489f5b510c9a30a3c79fef0a0d1a796464705923/smos-report-gen/test/Smos/Report/WaitingSpec.hs | haskell | # LANGUAGE TypeApplications #
module Smos.Report.WaitingSpec where
import Smos.Report.Archive.Gen ()
import Smos.Report.Filter.Gen ()
import Smos.Report.ShouldPrint
import Smos.Report.TestUtils
import Smos.Report.Waiting
import Smos.Report.Waiting.Gen ()
import Test.Syd
import Test.Syd.Validity
import Test.Syd.Validi... | |
606854c3c538edc83cbe6101d7bbe70faae243a30210746da4c977e04ae0cee0 | taffybar/status-notifier-item | Service.hs | # LANGUAGE TemplateHaskell #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE FlexibleContexts #
# LANGUAGE RecordWildCards #
module StatusNotifier.Host.Service where
import Control.Applicative
import Control.Arrow
import Control.Concurrent
import Control.Concurrent.MVar
import ... | null | https://raw.githubusercontent.com/taffybar/status-notifier-item/cee86b7ac27db2ece8b01660dfa61f4d009d1bb2/src/StatusNotifier/Host/Service.hs | haskell | # LANGUAGE OverloadedStrings #
This noops when the value is not present
will succeed.
XXX: This avoids the case where the theme path is updated before the
icon name is updated when both signals are sent simultaneously
All initialization is done inside this modifyMVar to avoid race | # LANGUAGE TemplateHaskell #
# LANGUAGE FlexibleContexts #
# LANGUAGE RecordWildCards #
module StatusNotifier.Host.Service where
import Control.Applicative
import Control.Arrow
import Control.Concurrent
import Control.Concurrent.MVar
import Control.Lens
import ... |
4b1ddfd6b8182780581f3bb82979d0541ec3d0f74359dad015df6f563d7a2cbc | jiesoul/soul-talk | handler.clj | (ns soul-talk.user.handler
(:require [soul-talk.user.db :as user-db]
[soul-talk.utils :as utils]
[buddy.hashers :as hashers]
[soul-talk.user.spec :as spec]
[soul-talk.pagination :as p]
[taoensso.timbre :as log]))
(def update-user spec/update-user)
(def user... | null | https://raw.githubusercontent.com/jiesoul/soul-talk/630de08c6549b206d59023764d5f2576d97d1030/api/src/soul_talk/user/handler.clj | clojure | 用户操作 | (ns soul-talk.user.handler
(:require [soul-talk.user.db :as user-db]
[soul-talk.utils :as utils]
[buddy.hashers :as hashers]
[soul-talk.user.spec :as spec]
[soul-talk.pagination :as p]
[taoensso.timbre :as log]))
(def update-user spec/update-user)
(def user... |
586fce5442bffeadb67bf156df365ac93dd0bc48be634ddba879c2f6f05d5d38 | rescript-lang/rescript-compiler | js_analyzer.ml | Copyright ( C ) 2015 - 2016 Bloomberg Finance L.P.
* Copyright ( C ) 2016 - , Authors of ReScript
* This program is free software : you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , either version 3 of the... | null | https://raw.githubusercontent.com/rescript-lang/rescript-compiler/edbe4efc5d8b3899f126a5efa563ae437cb41406/jscomp/core/js_analyzer.ml | ocaml | a optimization to avoid walking into function again
if it's already comuted
Can be refined later
create [immutable] block,
does not really mean that this opreation itself is [pure].
the block is mutable does not mean this operation is non-pure
| Caml_block_set_tag _... | Copyright ( C ) 2015 - 2016 Bloomberg Finance L.P.
* Copyright ( C ) 2016 - , Authors of ReScript
* This program is free software : you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , either version 3 of the... |
21396e65125189dfb13513ec19b4886a185e04450183511f38a18d92b4a8d889 | dpiponi/Moodler | noteB.hs | selection >>= mapM_ (\x -> set x (-0.1*1/12))
| null | https://raw.githubusercontent.com/dpiponi/Moodler/a0c984c36abae52668d00f25eb3749e97e8936d3/Moodler/scripts/noteB.hs | haskell | selection >>= mapM_ (\x -> set x (-0.1*1/12))
| |
d2d02259799cdf7ae47a5e4d615df16cef6e67a3c4fb8c5fa169d24d5a80f8da | aib/Project-Euler | euler34-like30.hs | import Data.Digits
fact n = product [1..n]
Find the upper limit as in problem # 30
upperLimit = (fact 9 *) $ last $ takeWhile (\n -> fact 9 * n >= 10^(n-1)) [1..]
curious n = (sum . map fact . digits 10) n == n
main = print $ (sum . filter curious) [3..upperLimit]
| null | https://raw.githubusercontent.com/aib/Project-Euler/a01a142d360f3a30fcea69ab29d4d198160ee921/euler34-like30.hs | haskell | import Data.Digits
fact n = product [1..n]
Find the upper limit as in problem # 30
upperLimit = (fact 9 *) $ last $ takeWhile (\n -> fact 9 * n >= 10^(n-1)) [1..]
curious n = (sum . map fact . digits 10) n == n
main = print $ (sum . filter curious) [3..upperLimit]
| |
04869249e83302514fbce57694945a39775d70247d1c8005e380272f0f653802 | GaloisInc/semmc | TestUtils.hs | # LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
{-# LANGUAGE GADTs #-}
# LANGUAGE KindSignatures #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE TypeOperators #
module TestUtils where
import Control.Monad ( forM_, when )
import Control.Monad.IO.Class ( MonadIO, liftIO )
import Data.... | null | https://raw.githubusercontent.com/GaloisInc/semmc/a3b8b89b9e88c94aab2ec6e06f993edcc9126cea/semmc/tests/semstore/TestUtils.hs | haskell | # LANGUAGE GADTs #
# LANGUAGE OverloadedStrings #
alwaysPrint -- comment this out to disable printing
--------------------------------------------------------------------
Formulas
provides limited comparison capability). The expectation is that
similar modulo small elements like alpha-renaming and nonce values.
... | # LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
# LANGUAGE KindSignatures #
# LANGUAGE TypeOperators #
module TestUtils where
import Control.Monad ( forM_, when )
import Control.Monad.IO.Class ( MonadIO, liftIO )
import Data.Function ( on )
import qualified Data.List as L
import ... |
77d899ab67b9cb8132d7f152206e0e644afac4cf64a28047603b66c5d4516234 | darkleaf/publicator | instant.clj | (ns publicator.domain.abstractions.instant
(:require
[clojure.spec.alpha :as s])
(:import
[java.time Instant]))
(defn ^:dynamic *now* []
(Instant/now))
(s/fdef now
:ret inst?)
(defn now []
(*now*))
| null | https://raw.githubusercontent.com/darkleaf/publicator/e07eee93d8f3d9c07a15d574619d5ea59c00f87d/core/src/publicator/domain/abstractions/instant.clj | clojure | (ns publicator.domain.abstractions.instant
(:require
[clojure.spec.alpha :as s])
(:import
[java.time Instant]))
(defn ^:dynamic *now* []
(Instant/now))
(s/fdef now
:ret inst?)
(defn now []
(*now*))
| |
053cdaad827a31fdc0d023cc1ba864982c6d76bc236e36cd057566274a2aee5d | bhaskara/programmable-reinforcement-learning | value-function.lisp | (defpackage value-function
(:documentation "Package for value functions.
Types
-----
<value-fn>
<tabular-value-fn>
Constructors
------------
make-tabular-value-fn
Operations
----------
value")
(:nicknames value-fn)
(:use common-lisp)
(:export
<value-fn>
make-tabular-value-fn
val... | null | https://raw.githubusercontent.com/bhaskara/programmable-reinforcement-learning/8afc98116a8f78163b3f86076498d84b3f596217/lisp/rl-functions/value-function/value-function.lisp | lisp | (defpackage value-function
(:documentation "Package for value functions.
Types
-----
<value-fn>
<tabular-value-fn>
Constructors
------------
make-tabular-value-fn
Operations
----------
value")
(:nicknames value-fn)
(:use common-lisp)
(:export
<value-fn>
make-tabular-value-fn
val... | |
892c1460c78b845b77a77cca6961019d61dd603684919d3e332bd75e3c481bd4 | facebook/flow | packed_locs.mli |
* Copyright ( c ) Meta Platforms , Inc. and affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in t... | null | https://raw.githubusercontent.com/facebook/flow/741104e69c43057ebd32804dd6bcc1b5e97548ea/src/common/packed_locs/packed_locs.mli | ocaml | compact encoding for sorted locations with the same source file
locs need to be sorted w.r.t. this comparator |
* Copyright ( c ) Meta Platforms , Inc. and affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in t... |
27082f863c0ad26b3561f23e2d24002fc1f73f2ceffb524393aac976d4bc7ca2 | SFML-haskell/SFML | SoundStatus.hs | module SFML.Audio.SoundStatus
where
-- | Enumeration of statuses for sounds and musics
data SoundStatus
= Stopped -- ^ Sound or music is not playing
| Paused -- ^ Sound or music is paused
| Playing -- ^ Sound or music is playing
deriving (Eq, Enum, Bounded, Show)
| null | https://raw.githubusercontent.com/SFML-haskell/SFML/1d1ceee6bc782f4f194853fbd0cc4acb33b86d41/src/SFML/Audio/SoundStatus.hs | haskell | | Enumeration of statuses for sounds and musics
^ Sound or music is not playing
^ Sound or music is paused
^ Sound or music is playing | module SFML.Audio.SoundStatus
where
data SoundStatus
deriving (Eq, Enum, Bounded, Show)
|
d45df915ad3c53b0862a28aadb9f1da4e282cd1448116831ba9d2854a1950f67 | zadarnowski/postgresql-wire-protocol | Checked.hs | -- | Module: Database.PostgreSQL.Protocol.Internal.Checked
-- Description: Monad for capturing failure
Copyright : © 2015 - 2020 < >
License : BSD3
Maintainer :
-- Stability: experimental
-- Portability: portable
module Database.PostgreSQL.Protocol.Internal.Checked (
Checked, runChecked,... | null | https://raw.githubusercontent.com/zadarnowski/postgresql-wire-protocol/00c1414ffd37b4157a335d8736a771175638dd92/src/Database/PostgreSQL/Protocol/Internal/Checked.hs | haskell | | Module: Database.PostgreSQL.Protocol.Internal.Checked
Description: Monad for capturing failure
Stability: experimental
Portability: portable
| A monad transformer which captures 'fail' calls into a user-accessible
arbitrary monad such as 'Maybe' and '[]'.
| @runChecked h m@ executes the monadic action @m@... | Copyright : © 2015 - 2020 < >
License : BSD3
Maintainer :
module Database.PostgreSQL.Protocol.Internal.Checked (
Checked, runChecked, unchecked
) where
error message , effectively providing a useful ' MonadFail ' instance for an
newtype Checked m a = Checked { fromChecked :: m (Either Stri... |
4aa45644ead6a4cc7f55288a163d9a57318d10dd1655d604713fcd63eed926a5 | YouyouCong/ppl-summer-school-2022 | flip.ml | 計算を true と false
let flip () = ... ;;
テスト
let test1 =
reset (fun () -> if flip () then 1 else 0) = (1, 0) ;;
let test2 =
reset (fun () -> if flip () then "hello" else "bye") = ("hello", "bye") ;; | null | https://raw.githubusercontent.com/YouyouCong/ppl-summer-school-2022/876e70d40a1cb7f8b16fb4985fd6dccb50f48601/cong/exercise/flip.ml | ocaml | 計算を true と false
let flip () = ... ;;
テスト
let test1 =
reset (fun () -> if flip () then 1 else 0) = (1, 0) ;;
let test2 =
reset (fun () -> if flip () then "hello" else "bye") = ("hello", "bye") ;; | |
b26f5e2020043e842afa8dfcf5f1d7931e13d2c75f2124d8f89c37c57f628f2b | sbcl/sbcl | test-frlock.lisp |
;;;;
This software is part of the SBCL system . See the README file for
;;;; more information.
;;;;
This software is derived from the CMU CL system , which was
written at Carnegie Mellon University and released into the
;;;; public domain. The software is in the public domain and is
;;;; provided with absol... | null | https://raw.githubusercontent.com/sbcl/sbcl/fbd46c52ea5ea4b3ba98a14ebdd4991d35989c6d/contrib/sb-concurrency/tests/test-frlock.lisp | lisp |
more information.
public domain. The software is in the public domain and is
provided with absolutely no warranty. See the COPYING and CREDITS
files for more information.
XXX something like clock_getres(CLOCK_REALTIME, ...) would be better |
This software is part of the SBCL system . See the README file for
This software is derived from the CMU CL system , which was
written at Carnegie Mellon University and released into the
(in-package :sb-concurrency-test)
(defvar *minimum-sleep*
#+(or openbsd netbsd sunos) 0.01
#-(or openbsd netbsd sun... |
af718c838cdf34840276e1f6491aed45edd528c54a43d95e579b83c05cadd568 | lambdabot/lambdabot | Main.hs | --
| Let 's go !
--
module Main where
import Lambdabot.Main
import Lambdabot.Plugin.Haskell
import Modules (modulesInfo)
import qualified Paths_lambdabot as P
import Control.Applicative
import Control.Monad
import Control.Monad.Identity
import Data.Char
import Data.Version
import System.Console.GetOpt
import ... | null | https://raw.githubusercontent.com/lambdabot/lambdabot/de01f362c7a8fc6f85c37e604168dcccb1283a0e/lambdabot/src/Main.hs | haskell |
do argument handling
special online target for ghci use | | Let 's go !
module Main where
import Lambdabot.Main
import Lambdabot.Plugin.Haskell
import Modules (modulesInfo)
import qualified Paths_lambdabot as P
import Control.Applicative
import Control.Monad
import Control.Monad.Identity
import Data.Char
import Data.Version
import System.Console.GetOpt
import System... |
fa6638a86bd8d3585bd5123bd21e805a7184d3559385f4b43a5c345890d7f33f | bmeurer/ocaml-experimental | frx_synth.ml | (***********************************************************************)
(* *)
MLTk , Tcl / Tk interface of Objective Caml
(* *)
, , and ... | null | https://raw.githubusercontent.com/bmeurer/ocaml-experimental/fe5c10cdb0499e43af4b08f35a3248e5c1a8b541/otherlibs/labltk/frx/frx_synth.ml | ocaml | *********************************************************************
described in file LICENSE found in the... | MLTk , Tcl / Tk interface of Objective Caml
, , and
projet Cristal , INRIA Rocquencourt
, Kyoto University RIMS
Copyright 2002 Institut National de Recherche en Informatique et
en Automatique and... |
64f191e68fb4c3c3b76ce2e46d74c6361cb6cf749b467e13cf28daa591e61230 | haskell/time | Calendars.hs | module Test.Calendar.Calendars (
testCalendars,
) where
import Data.Time.Calendar
import Data.Time.Calendar.Julian
import Data.Time.Calendar.WeekDate
import Test.Calendar.CalendarsRef
import Test.Tasty
import Test.Tasty.HUnit
showers :: [(String, Day -> String)]
showers =
[ ("MJD", show . toModifiedJulianDay)... | null | https://raw.githubusercontent.com/haskell/time/dba6302b244a7b991ee7cac0d16461fddd222965/test/main/Test/Calendar/Calendars.hs | haskell | module Test.Calendar.Calendars (
testCalendars,
) where
import Data.Time.Calendar
import Data.Time.Calendar.Julian
import Data.Time.Calendar.WeekDate
import Test.Calendar.CalendarsRef
import Test.Tasty
import Test.Tasty.HUnit
showers :: [(String, Day -> String)]
showers =
[ ("MJD", show . toModifiedJulianDay)... | |
e775d404b67c07b556a897ba29c14f5131b0148854635f2a56c4ddab471aaa7e | korya/efuns | xC.ml | (***********************************************************************)
(* *)
xlib for
(* *)
Fabrice Le Fessant , projet Para / SOR , INRIA Rocq... | null | https://raw.githubusercontent.com/korya/efuns/78b21d9dff45b7eec764c63132c7a564f5367c30/xlib/xC.ml | ocaml | *********************************************************************
... | xlib for
Fabrice Le Fessant , projet Para / SOR , INRIA Rocquencourt
Copyright 1998 Institut National de Recherche en Informatique et
Automatique . Distributed only by permission .
let xc_num_glyphs = 154
let xc_x_cursor = 0
let xc_arrow =... |
36f87516e702f1f98f4f7ba1301efe5fb75ea398b790097b20785f9b398c184e | scheme-live/live | output.scm | #(0.123) | null | https://raw.githubusercontent.com/scheme-live/live/4c7c9d80f2fcf80692614e10935fa66be69e3708/live/json/data/n-number-starting-with-dot/output.scm | scheme | #(0.123) | |
acbe4ab33ffac7babddda0d7fadda17b3fe92cc3e98231a21cf1aeb6e280e41b | jaspervdj/number-six | Say.hs | -- | Handler that allows gods to say arbitrary text
--
{-# LANGUAGE OverloadedStrings #-}
module NumberSix.Handlers.Say
( handler
) where
import NumberSix.Irc
import NumberSix.Bang
import NumberSix.Util
handler :: UninitializedHandler
handler = makeHandler "Say" $ return $ onBangCommand "!say" $ onGod $
u... | null | https://raw.githubusercontent.com/jaspervdj/number-six/1aba681786bd85bd20f79406c681ea581b982cd6/src/NumberSix/Handlers/Say.hs | haskell | | Handler that allows gods to say arbitrary text
# LANGUAGE OverloadedStrings # | module NumberSix.Handlers.Say
( handler
) where
import NumberSix.Irc
import NumberSix.Bang
import NumberSix.Util
handler :: UninitializedHandler
handler = makeHandler "Say" $ return $ onBangCommand "!say" $ onGod $
uncurry writeChannel . breakWord =<< getBangCommandText
|
bcc94b38d7a8b3c33bee3b339fcf1a074dc63d6006a2d6badc8f391edc022c05 | snapframework/snap-core | Common.hs | {-# LANGUAGE FlexibleContexts #-}
# LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
{-# LANGUAGE ScopedTypeVariables #-}
# OPTIONS_GHC -fno - warn - orphans #
module Snap.Test.Common
( coverEqInstance
, coverOrdInstance
, coverReadInstance
, coverShowInstance
, coverTypeableInsta... | null | https://raw.githubusercontent.com/snapframework/snap-core/04295679ccf8316fcf4944f2eb65d1b5266587ef/test/Snap/Test/Common.hs | haskell | # LANGUAGE FlexibleContexts #
# LANGUAGE ScopedTypeVariables #
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
-------------------... | # LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
# OPTIONS_GHC -fno - warn - orphans #
module Snap.Test.Common
( coverEqInstance
, coverOrdInstance
, coverReadInstance
, coverShowInstance
, coverTypeableInstance
, forceSameType
, expectException
, expectExceptionH
, liftQ
, e... |
cfa7edabd072474832a39e6c9f16bf80ad6f2033f56ab728e8a2265873e1cf11 | blindglobe/lisp-matrix | lapack-methods.lisp | ;;; -*- mode: lisp -*-
Time - stamp : < 2009 - 06 - 24 07:52:25 tony >
Creation : < 2009 - 02 - 05 11:18:51 tony >
;;; File: lapack-methods.lisp
Author : < @ >
Maintainer : < >
Copyright : ( c)2009 - - , . BSD , LLGPL , or GPLv2 , depending
;;; on how it arrives.
;;; Pu... | null | https://raw.githubusercontent.com/blindglobe/lisp-matrix/f9c88dae132baf52884dd54612581d1331b82b40/src/lapack-methods.lisp | lisp | -*- mode: lisp -*-
File: lapack-methods.lisp
on how it arrives.
Purpose: Invocation across storage types (local/foreign; precision
/ real/complex)
What is this talk of 'release'? Klingons do not make software
'releases'. Our software 'escapes', leaving a bloody trail of
desig... |
Time - stamp : < 2009 - 06 - 24 07:52:25 tony >
Creation : < 2009 - 02 - 05 11:18:51 tony >
Author : < @ >
Maintainer : < >
Copyright : ( c)2009 - - , . BSD , LLGPL , or GPLv2 , depending
(in-package :lisp-matrix)
This file contains actual BLAS / LAPACK method invocation from Lisp .
... |
5c23c3e6eb6c6e677407732cf389966e6edf0ad43238efc6b8469e6053ce7036 | xh4/web-toolkit | font.lisp | (in-package :css)
-fonts-3
;; TODO: font-family
(define-property font-family ()
())
(define-property font-weight ()
()
(:value :normal :bold :bolder :lighter
100 200 300 400 500 600 700 800 900))
(define-property font-stretch ()
()
(:value :normal :ultra-condensed :extra-condensed
:c... | null | https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/css/font.lisp | lisp | TODO: font-family
TODO: -fonts-3/#propdef-font-size
TODO: font | (in-package :css)
-fonts-3
(define-property font-family ()
())
(define-property font-weight ()
()
(:value :normal :bold :bolder :lighter
100 200 300 400 500 600 700 800 900))
(define-property font-stretch ()
()
(:value :normal :ultra-condensed :extra-condensed
:condensed :semi-conden... |
f3da49ecced405fa7a58c1cb5000d2ff7be6795f28ac1b8f649eca4e38ed6fa6 | keithj/cl-genomic | obo-io-classes.lisp | ;;;
Copyright ( c ) 2009 - 2011 . All rights reserved .
;;;
;;; This file is part of cl-genomic.
;;;
;;; This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
;... | null | https://raw.githubusercontent.com/keithj/cl-genomic/d160199c2b369df97afd3fded16b1ade507b80dd/src/io/obo-io-classes.lisp | lisp |
This file is part of cl-genomic.
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 P... | Copyright ( c ) 2009 - 2011 . All rights reserved .
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
You should have received a copy of the GNU General Public License
(in-package :bio-sequence)
(defclass obo-parser ()
... |
6a3dc8c7c71459004b318a8367efe28f9eb15e386f45a20ea5015a033390e255 | haskell-distributed/distributed-process-platform | TestTaskQueues.hs | # LANGUAGE ScopedTypeVariables #
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE BangPatterns #-}
# LANGUAGE TemplateHaskell #
module Main where
import Control.Distributed.Process hiding (call)
import Control.Distributed.Process.Closure
import Control.Distributed.Process.Node
import Control.Distributed.... | null | https://raw.githubusercontent.com/haskell-distributed/distributed-process-platform/46d63f81910e7dd527fb1d41e654a5cfb0dbfdba/tests/TestTaskQueues.hs | haskell | # LANGUAGE DeriveDataTypeable #
# LANGUAGE BangPatterns #
utilities
SimplePool tests
proceed successfully!
we can get here *very* fast, so give the registration time to kick in
once job1 completes, we *should* be able to proceed with job2
but we allow a little time for things to catch up
liftIO $ putStr... | # LANGUAGE ScopedTypeVariables #
# LANGUAGE TemplateHaskell #
module Main where
import Control.Distributed.Process hiding (call)
import Control.Distributed.Process.Closure
import Control.Distributed.Process.Node
import Control.Distributed.Process.Platform hiding (__remoteTable, monitor,
... |
8c764f3f25966602fc913076bb269ea3f4620dc2aa558f7ec83ab2b032344243 | parenthesin/microservice-boilerplate | server.clj | (ns microservice-boilerplate.server
(:require [com.stuartsierra.component :as component]
[microservice-boilerplate.routes :as routes]
[parenthesin.components.config :as config]
[parenthesin.components.database :as database]
[parenthesin.components.http :as http]
... | null | https://raw.githubusercontent.com/parenthesin/microservice-boilerplate/9b5b74b496fffed16067c986f760e75101285a80/src/microservice_boilerplate/server.clj | clojure | (ns microservice-boilerplate.server
(:require [com.stuartsierra.component :as component]
[microservice-boilerplate.routes :as routes]
[parenthesin.components.config :as config]
[parenthesin.components.database :as database]
[parenthesin.components.http :as http]
... | |
4f2e5eebca79ebfc4b10394298b966c6e5cf636bad8760934d3ad92ef4c0de10 | screenshotbot/screenshotbot-oss | test-digests.lisp | ;;;; Copyright 2018-Present Modern Interpreters Inc.
;;;;
This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
(defpackage :util/tests/test-digests
(:use #:cl
#:fiveam
#:util/dig... | null | https://raw.githubusercontent.com/screenshotbot/screenshotbot-oss/f5d2a3688ba3952c6cfc2ffaaf37bdd6191dac15/src/util/tests/test-digests.lisp | lisp | Copyright 2018-Present Modern Interpreters Inc.
| This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
(defpackage :util/tests/test-digests
(:use #:cl
#:fiveam
#:util/digests)
(:local-nicknames (#:a #:alexandria)))
(in-package... |
f336a936f51218aac8347e9cc5c605d9edfc20e13be45df7d465ad69fa10b6f9 | jtza8/interact | event-converter-test.lisp | ; Use of this source code is governed by a BSD-style
license that can be found in the license.txt file
; in the root directory of this project.
(in-package :interact)
(defclass event-converter-test (test-case)
())
(def-test-method input-test ((test event-converter-test))
(let ((controller (make-instance 'event... | null | https://raw.githubusercontent.com/jtza8/interact/ea2121d7e900dac4fe2a085bd5f2783a640e71f8/src/tests/event-converter-test.lisp | lisp | Use of this source code is governed by a BSD-style
in the root directory of this project. | license that can be found in the license.txt file
(in-package :interact)
(defclass event-converter-test (test-case)
())
(def-test-method input-test ((test event-converter-test))
(let ((controller (make-instance 'event-converter
:mappable-events '(:jump)))
(listener (... |
e3b8ee648117db2a7b55557fc6214f6390db396b4aa7929abb012036242df7c5 | CarlWright/NGerlguten | eg_font_2.erl | -module(eg_font_2).
-export([width/1, kern/2, fontName/0, firstChar/0,lastChar/0]).
-export([index/0,ascender/0,capHeight/0,descender/0,italicAngle/0]).
-export([xHeight/0, flags/0, type/0, stemV/0,fontBBox/0,widths/0]).
-export([encoding/0]).
fontName() -> "Courier-Bold".
index() -> 2.
type() -> internal.
encoding() -... | null | https://raw.githubusercontent.com/CarlWright/NGerlguten/3c87f2e3a44ae9069f9379933b99c0feb8262d66/lib/ngerlguten/src/eg_font_2.erl | erlang | -module(eg_font_2).
-export([width/1, kern/2, fontName/0, firstChar/0,lastChar/0]).
-export([index/0,ascender/0,capHeight/0,descender/0,italicAngle/0]).
-export([xHeight/0, flags/0, type/0, stemV/0,fontBBox/0,widths/0]).
-export([encoding/0]).
fontName() -> "Courier-Bold".
index() -> 2.
type() -> internal.
encoding() -... | |
f377760b07c986fb97bcf4506ea046fd2952a3d7a26734d4c7800e46aed62b7c | sdiehl/galois-field | Galois.hs | -- |
-- An efficient implementation of Galois fields used in cryptography research.
module Data.Field.Galois
( -- * Galois fields
module Data.Field.Galois.Base,
-- ** Prime fields
module Data.Field.Galois.Prime,
-- ** Extension fields
module Data.Field.Galois.Extension,
-- ** Binary fields
... | null | https://raw.githubusercontent.com/sdiehl/galois-field/3b13705fe26ea1dc03e1a6d7dac4089085c5362d/src/Data/Field/Galois.hs | haskell | |
An efficient implementation of Galois fields used in cryptography research.
* Galois fields
** Prime fields
** Extension fields
** Binary fields
** Square roots
** Towers of fields
** Roots of unity | module Data.Field.Galois
module Data.Field.Galois.Base,
module Data.Field.Galois.Prime,
module Data.Field.Galois.Extension,
module Data.Field.Galois.Binary,
module Data.Field.Galois.Sqrt,
module Data.Field.Galois.Tower,
module Data.Field.Galois.Unity,
)
where
import Data.Field.Galoi... |
519caa1ffbdb856c183c4142cb47e003d94e3681743479fe0f6fe7ac41c20780 | sapristi/easy_logging | easy_logging_yojson.ml |
open Easy_logging_yojson_aux
module Handlers = Handlers
module Logging = Logging
module Logging_internals =
struct
module Logging_types = Logging_types
module Formatters = Easy_logging.Logging_internals.Formatters
module Logging_infra = Easy_logging.Logging_internals.Logging_infra
module Colorize = Easy_l... | null | https://raw.githubusercontent.com/sapristi/easy_logging/7d6ff676a29ff17365ae504bd9dceee5da3a4034/conf_loader_modules/yojson/easy_logging_yojson.ml | ocaml |
open Easy_logging_yojson_aux
module Handlers = Handlers
module Logging = Logging
module Logging_internals =
struct
module Logging_types = Logging_types
module Formatters = Easy_logging.Logging_internals.Formatters
module Logging_infra = Easy_logging.Logging_internals.Logging_infra
module Colorize = Easy_l... | |
0feacc4eece452b8e0f2594846b1b722504a3f2daa4258c9a8e0854dcd8bfe85 | polyfy/polylith | base.clj | (ns polylith.clj.core.creator.base
(:require [polylith.clj.core.creator.brick :as brick]))
(defn create-base [ws-dir settings base-name is-git-add]
(let [{:keys [top-namespace]} settings
bases-dir (str ws-dir "/bases/" base-name)]
(brick/create-resources-dir ws-dir "bases" base-name is-git-add)
(br... | null | https://raw.githubusercontent.com/polyfy/polylith/febea3d8a9b30a60397594dda3cb0f25154b8d8d/components/creator/src/polylith/clj/core/creator/base.clj | clojure | (ns polylith.clj.core.creator.base
(:require [polylith.clj.core.creator.brick :as brick]))
(defn create-base [ws-dir settings base-name is-git-add]
(let [{:keys [top-namespace]} settings
bases-dir (str ws-dir "/bases/" base-name)]
(brick/create-resources-dir ws-dir "bases" base-name is-git-add)
(br... | |
1662d62c57f07aba5138abbbb99d8c1b66fad464d84af5df264cf6d64b501cd7 | elastic/apm-agent-ocaml | transaction.ml | module Span_count = struct
type t = {
dropped : int option; [@yojson.option]
started : int;
}
[@@deriving yojson_of]
let make ?dropped started = { dropped; started }
let add_started t more = { t with started = t.started + more }
let add_dropped t more =
match more with
| 0 -> t
| _ ->... | null | https://raw.githubusercontent.com/elastic/apm-agent-ocaml/e702525e1332a35e6bcf2873e6ff5ad54649503c/core/transaction.ml | ocaml | module Span_count = struct
type t = {
dropped : int option; [@yojson.option]
started : int;
}
[@@deriving yojson_of]
let make ?dropped started = { dropped; started }
let add_started t more = { t with started = t.started + more }
let add_dropped t more =
match more with
| 0 -> t
| _ ->... | |
17e0f0f586f093f4841a9463fa05a56d328804649c63806cf429a50a30585e95 | ppelleti/hs-wiringPi | isr-example.hs | Example of using wiringPiISR .
Run with LED connected to wiringPi pin 1 ( GPIO 18 )
and button connected to wiringPi pin 25 ( GPIO 26 ) .
-- Lights the LED when button is pressed.
--
Compatible with the hs - wiringPi test board .
-- -wiringPi-test-board
-- You need to link this program with "-threaded", or... | null | https://raw.githubusercontent.com/ppelleti/hs-wiringPi/18b01a2b9e43dc83638297e96fc8aa6562e1961a/examples/isr-example.hs | haskell | Lights the LED when button is pressed.
-wiringPi-test-board
You need to link this program with "-threaded", or deadlock will occur.
Is button connected to GND? | Example of using wiringPiISR .
Run with LED connected to wiringPi pin 1 ( GPIO 18 )
and button connected to wiringPi pin 25 ( GPIO 26 ) .
Compatible with the hs - wiringPi test board .
import Control.Concurrent
import Control.Monad
import Data.IORef
import System.Hardware.WiringPi
led :: Pin
led = Wpi 1
but... |
cb36ace48a23ef4eb11ecc62e994253a6c659c13a8a89bd1bde33f266a507f78 | CarlWright/NGerlguten | eg_font_13.erl | -module(eg_font_13).
-export([width/1, kern/2, fontName/0, firstChar/0,lastChar/0]).
-export([index/0,ascender/0,capHeight/0,descender/0,italicAngle/0]).
-export([xHeight/0, flags/0, type/0, stemV/0,fontBBox/0,widths/0]).
-export([encoding/0]).
fontName() -> "Times-Roman".
index() -> 13.
type() -> internal.
encoding() ... | null | https://raw.githubusercontent.com/CarlWright/NGerlguten/3c87f2e3a44ae9069f9379933b99c0feb8262d66/lib/ngerlguten/src/eg_font_13.erl | erlang | -module(eg_font_13).
-export([width/1, kern/2, fontName/0, firstChar/0,lastChar/0]).
-export([index/0,ascender/0,capHeight/0,descender/0,italicAngle/0]).
-export([xHeight/0, flags/0, type/0, stemV/0,fontBBox/0,widths/0]).
-export([encoding/0]).
fontName() -> "Times-Roman".
index() -> 13.
type() -> internal.
encoding() ... | |
2f68b270e9ecd93aad854a83c5e04ac27d693810d1fd8c0a5e3b55104db07e62 | CorticalComputer/DXNN2 | tuning_duration.erl | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
This source code and work is provided and developed by . COM
%
The original release of this source code and the DXNN MK2 system was introduced and explained in my book : Handbook of Neuroevolution Through Erlang . Springer 2012 , print I... | null | https://raw.githubusercontent.com/CorticalComputer/DXNN2/d57d43a91f125f3930e06611f5fce15a0462b32f/src/tuning_duration.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 g... | This source code and work is provided and developed by . COM
The original release of this source code and the DXNN MK2 system was introduced and explained in my book : Handbook of Neuroevolution Through Erlang . Springer 2012 , print ISBN : 978 - 1 - 4614 - 4462 - 6 ebook ISBN : 978 - 1 - 4614 - 4463 - 6 .
Co... |
d62f66686b046f56f4b7fa14e8fe4f9404e065a73dba1358f1961681d29d1b07 | reflex-frp/patch | MapWithPatchingMove.hs | # LANGUAGE CPP #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE LambdaCase #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE PatternGuards #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE StandaloneDeriving #
# LANGUAGE TemplateHaskell #
# LANGUAGE TypeFamilie... | null | https://raw.githubusercontent.com/reflex-frp/patch/6d043f1c7a07aaaeda4a9af2df0eb2a10846e2ec/src/Data/Patch/MapWithPatchingMove.hs | haskell | * Node Info
* From
* To
and vice versa. There should never be any unpaired From/To keys.
| Extract the internal representation of the 'PatchMapWithPatchingMove'
| Create a 'PatchMapWithPatchingMove', validating it
| Create a 'PatchMapWithPatchingMove' that inserts everything in the given 'Map'
@
'Map.del... | # LANGUAGE CPP #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE LambdaCase #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE PatternGuards #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE StandaloneDeriving #
# LANGUAGE TemplateHaskell #
# LANGUAGE TypeFamilie... |
1d96e35d7d45f89210c1f26064c6ceaad00287288810d00962543b55116a075e | mikeplus64/Greg | Main.hs | {-# LANGUAGE OverloadedStrings #-}
import Greg
import Greg.Types
import Greg.Commands.Default
import Greg.Bot (addToQuotes)
import System.Exit (ExitCode (..))
import Control.Arrow (second)
import Data.Text as T (breakOn, drop, unpack, append, null... | null | https://raw.githubusercontent.com/mikeplus64/Greg/bb3d5af691eed895e330cb3e5425e43419b0244c/examples/GREG-WARRIOR-PRINCESS/Main.hs | haskell | # LANGUAGE OverloadedStrings # | import Greg
import Greg.Types
import Greg.Commands.Default
import Greg.Bot (addToQuotes)
import System.Exit (ExitCode (..))
import Control.Arrow (second)
import Data.Text as T (breakOn, drop, unpack, append, null, lines)
import qualified Data.Text... |
e7f2f0f7dac8e7592148cb32adcc061a1fe53d67935e3185f2a0c5d95dc2ea35 | nitrogen/NitrogenProject.com | demos_mobile_list.erl | % vim: ts=4 sw=4 et
-module (demos_mobile_list).
-include_lib ("nitrogen_core/include/wf.hrl").
-compile(export_all).
main() -> #template { file="./templates/demosmobile.html" }.
title() -> "Mobile List".
headline() -> "Mobile List".
body() ->
[
"
<p>
A mobile list is a standard way to ... | null | https://raw.githubusercontent.com/nitrogen/NitrogenProject.com/b4b3a0dbe17394608d2ee6eaa089e3ece1285075/src/demos/demos_mobile_list.erl | erlang | vim: ts=4 sw=4 et
tempid just to make sure the URL is different | -module (demos_mobile_list).
-include_lib ("nitrogen_core/include/wf.hrl").
-compile(export_all).
main() -> #template { file="./templates/demosmobile.html" }.
title() -> "Mobile List".
headline() -> "Mobile List".
body() ->
[
"
<p>
A mobile list is a standard way to present a list of th... |
448c23a74a64a1031228a6997554995fd97d5e1a0e0e23648812c2b0a2ff49be | lf-/hsfixit | Test.hs | module Test where
import Prelude
import Pointless
main = putStrLn "Hello"
| null | https://raw.githubusercontent.com/lf-/hsfixit/91a09f9153de72217eb418d7e0a11a20d458e769/hsfixit-test/src/Test.hs | haskell | module Test where
import Prelude
import Pointless
main = putStrLn "Hello"
| |
add3dd14b11bf73702e0f3a0ddaa06fa4efb04bd8d2c08f4ec0e2dab6adb0065 | lipas-liikuntapaikat/lipas | views.cljs | (ns lipas.ui.reminders.views
(:require
[lipas.ui.components :as lui]
[lipas.ui.mui :as mui]
[lipas.ui.reminders.events :as events]
[lipas.ui.reminders.subs :as subs]
[lipas.ui.utils :refer [<== ==>] :as utils]))
(defn add-button [{:keys [message]}]
(let [tr (<== [:lipas.ui.subs/translator])]
[mu... | null | https://raw.githubusercontent.com/lipas-liikuntapaikat/lipas/dfef724867bb6b7d2ccd3b6310d2a669e1fe4f03/webapp/src/cljs/lipas/ui/reminders/views.cljs | clojure | (ns lipas.ui.reminders.views
(:require
[lipas.ui.components :as lui]
[lipas.ui.mui :as mui]
[lipas.ui.reminders.events :as events]
[lipas.ui.reminders.subs :as subs]
[lipas.ui.utils :refer [<== ==>] :as utils]))
(defn add-button [{:keys [message]}]
(let [tr (<== [:lipas.ui.subs/translator])]
[mu... | |
bc90c6e6d9b7092991065a307163abfb3958d0bf770bc86952620f509aa580f3 | garrigue/labltk | intf.ml | (***********************************************************************)
(* *)
MLTk , Tcl / Tk interface of OCaml
(* *)
, , and ... | null | https://raw.githubusercontent.com/garrigue/labltk/2cbb92a8c0feacdd8ee69976f3f45a7cf81f805c/compiler/intf.ml | ocaml | *********************************************************************
described in file LICENSE found in the... | MLTk , Tcl / Tk interface of OCaml
, , and
projet Cristal , INRIA Rocquencourt
, Kyoto University RIMS
Copyright 2002 Institut National de Recherche en Informatique et
en Automatique and... |
6a9cc3b99f91c915abac606a90995ba20c7dee9065cf57624b86d6f9ea4f7fdf | ggreif/omega | Bind.hs | # LANGUAGE FlexibleInstances , UndecidableInstances , GADTs #
module Bind(Fresh(..),Freshen(..),Swap(..),Name,Perm
,Bind,bind
,swapM, swapsM, swapsMf
,M,runM
,unsafeUnBind,reset,name1,name2,name3,name4,name5,name2Int,integer2Name) where
import Control.Monad.Fix(MonadFix(..))... | null | https://raw.githubusercontent.com/ggreif/omega/016a3b48313ec2c68e8d8ad60147015bc38f2767/src/Bind.hs | haskell | -----------------------------------------------------
---------------------------------------------
--------------------------------------------
----------------------------------------------------------
------------------------------------ | # LANGUAGE FlexibleInstances , UndecidableInstances , GADTs #
module Bind(Fresh(..),Freshen(..),Swap(..),Name,Perm
,Bind,bind
,swapM, swapsM, swapsMf
,M,runM
,unsafeUnBind,reset,name1,name2,name3,name4,name5,name2Int,integer2Name) where
import Control.Monad.Fix(MonadFix(..))... |
f472a789c05fc4d9069a8dd2af6c9d47f7cb288d175cbe81be9285c5ebae670f | sig-gis/gridfire | optimization.clj | (ns gridfire.spec.optimization
(:require [clojure.spec.alpha :as s]))
(s/def ::parallel-strategy #{:within-fires :between-fires})
| null | https://raw.githubusercontent.com/sig-gis/gridfire/44aeaf56fceb01f61b21db6220d2cb562a92570b/src/gridfire/spec/optimization.clj | clojure | (ns gridfire.spec.optimization
(:require [clojure.spec.alpha :as s]))
(s/def ::parallel-strategy #{:within-fires :between-fires})
| |
b63664b8dc6e60232f1fbdb2460b9177d37b63247c024f87f311090781cdd09a | erleans/erleans | erleans_pm.erl | %%%----------------------------------------------------------------------------
Copyright 2019 . 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
%%%
%%% ... | null | https://raw.githubusercontent.com/erleans/erleans/7d640d84654b45a27399ca258406c31005d600df/src/erleans_pm.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 ... | Copyright 2019 . All Rights Reserved .
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
@doc Erleans Grain process manager .
-module(erleans_pm).
-export([register_name/2,
unregister_name/1,
unregiste... |
1e0c3adf935015cba9fb9fcbaab97c77e4280c6a1e80c077cb995547e2c0c6cf | Zulu-Inuoe/raw-bindings-sdl2 | cpuinfo.lisp | raw - bindings - sdl2 - FFI bindings to
Written in 2017 by < >
;;;
;;;To the extent possible under law, the author(s) have dedicated all copyright
;;;and related and neighboring rights to this software to the public domain
;;;worldwide. This software is distributed without any warranty.
You should have rec... | null | https://raw.githubusercontent.com/Zulu-Inuoe/raw-bindings-sdl2/fd219b896f3a0a9daef83cd1b303d806eeffa75a/src/ffi/cpuinfo.lisp | lisp |
To the extent possible under law, the author(s) have dedicated all copyright
and related and neighboring rights to this software to the public domain
worldwide. This software is distributed without any warranty.
with this software. If not, see
</>.
| raw - bindings - sdl2 - FFI bindings to
Written in 2017 by < >
You should have received a copy of the CC0 Public Domain Dedication along
(in-package #:raw-bindings-sdl2)
(defsdl2constant +sdl-cacheline-size+ 128)
(defsdl2fun ("SDL_GetCPUCount" sdl-get-cpucount) :int)
(defsdl2fun ("SDL_GetCPUCacheL... |
ae72bd572da7839b40c60965138ee63fe4668660f97f87c563d1cc11828b572d | janestreet/core_kernel | test_thread_safe_queue.ml | open! Core
module Thread = Core_thread
module Time = Time_float_unix
let%test_module "Thread_safe_queue" =
(module (
struct
let () = Debug.should_print_backtrace := false
open Thread_safe_queue
module Private = struct
module Uopt = struct
include Private.Uopt
let%test _ ... | null | https://raw.githubusercontent.com/janestreet/core_kernel/a146a6becb4937336e8099ee86d42564a87cbafa/thread_safe_queue/test/test_thread_safe_queue.ml | ocaml | invariant passes with element from pool in the queue
This signature constraint is here to remind us to add a unit test whenever the
interface to [Thread_safe_queue] changes. | open! Core
module Thread = Core_thread
module Time = Time_float_unix
let%test_module "Thread_safe_queue" =
(module (
struct
let () = Debug.should_print_backtrace := false
open Thread_safe_queue
module Private = struct
module Uopt = struct
include Private.Uopt
let%test _ ... |
73843f1c9d41f1242cd0281b3c15a8c05166c2788e6a8722bff9822248b88680 | joshuamiller/cljs-react-navigation-example | user.clj | (ns user
(:use [figwheel-sidecar.repl-api :as ra]))
This namespace is loaded automatically by nREPL
;; read project.clj to get build configs
(def profiles (->> "project.clj"
slurp
read-string
(drop-while #(not= % :profiles))
(apply hash-... | null | https://raw.githubusercontent.com/joshuamiller/cljs-react-navigation-example/45568ed191e782c3f8c0580d2d8774c6b2add52f/env/dev/user.clj | clojure | read project.clj to get build configs | (ns user
(:use [figwheel-sidecar.repl-api :as ra]))
This namespace is loaded automatically by nREPL
(def profiles (->> "project.clj"
slurp
read-string
(drop-while #(not= % :profiles))
(apply hash-map)
:profiles))
(def... |
331e29545d9767c7cd6b3aac871f82431c56ec83440c894f9b91f875fcebc269 | airalab/hs-web3 | Scale.hs | # LANGUAGE TypeFamilies #
-- |
-- Module : Codec.Scale.Class
Copyright : 2016 - 2021
-- License : Apache-2.0
--
-- Maintainer :
-- Stability : experimental
-- Portability : unportable
--
-- The SCALE (Simple Concatenated Aggregate Little-Endian) Codec is
-- a lightweight, efficient, binary s... | null | https://raw.githubusercontent.com/airalab/hs-web3/c03b86eb621f963886a78c39ee18bcec753f17ac/packages/scale/src/Codec/Scale.hs | haskell | |
Module : Codec.Scale.Class
License : Apache-2.0
Maintainer :
Stability : experimental
Portability : unportable
The SCALE (Simple Concatenated Aggregate Little-Endian) Codec is
a lightweight, efficient, binary serialization and deserialization codec.
It is designed for high-performance, c... | # LANGUAGE TypeFamilies #
Copyright : 2016 - 2021
module Codec.Scale
( encode
, decode
, encode'
, decode'
, Encode
, Decode
, Generic
, module Core
) where
import Data.ByteArray (ByteArray, ByteArrayAccess, convert)
import Data.Serialize (runGet... |
ffcd3442a13f0a16c1dcbb55a8bb513d02a82f946be6280eaa5f2d78b58efc44 | endobson/racket-grpc | client-call.rkt | #lang racket/base
(require
"ffi/byte-buffer.rkt"
"ffi/call.rkt"
"ffi/channel.rkt"
"ffi/completion-queue.rkt"
"ffi/immobile-pointers.rkt"
"ffi/metadata-array.rkt"
"ffi/slice.rkt"
"ffi/timespec.rkt"
racket/port
racket/promise
racket/match
ffi/unsafe
ffi/unsafe/atomic
(rename-in
racket/con... | null | https://raw.githubusercontent.com/endobson/racket-grpc/7f3cca4b66f71490236c8db40f0011595f890fa0/client-call.rkt | racket | #lang racket/base
(require
"ffi/byte-buffer.rkt"
"ffi/call.rkt"
"ffi/channel.rkt"
"ffi/completion-queue.rkt"
"ffi/immobile-pointers.rkt"
"ffi/metadata-array.rkt"
"ffi/slice.rkt"
"ffi/timespec.rkt"
racket/port
racket/promise
racket/match
ffi/unsafe
ffi/unsafe/atomic
(rename-in
racket/con... | |
39322fefee7398246297d14858c5298a4e466c4e85832ea17e2a1e4fec496978 | mdedwards/slippery-chicken | l-systems-examples.lsp | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; File: l-systems.lsp
;;;
Class Hierarchy : None
;;;
Version : 1.0
;;;
;;; Project: slippery chicken (algorithmic composition)
;;;
;;; Purpose: Lisp example code to accompany l-systems.html
;;... | null | https://raw.githubusercontent.com/mdedwards/slippery-chicken/c1c11fadcdb40cd869d5b29091ba5e53c5270e04/doc/examples/l-systems-examples.lsp | lisp |
File: l-systems.lsp
Project: slippery chicken (algorithmic composition)
Purpose: Lisp example code to accompany l-systems.html
****
This file is part of slippery-chicken
slippery-chicken is free software; you can redistribute it
... | Class Hierarchy : None
Version : 1.0
Author :
Creation date : 22nd August 2012
$ $ Last modified : 22:43:08 Fri May 17 2013 BST
SVN ID : $ I d : l-systems-examples.lsp 3538 2013 - 05 - 18 08:29:15Z medward2 $
Licence : Copyright ( c ) 2012
Publi... |
ed051b15d428c6d0efd8faade9996ac5aa7af7ea7460983a74fbfa4aa1befeba | owlbarn/light_actor | actor_net.ml |
* Light Actor - Parallel & Distributed Engine of Owl System
* Copyright ( c ) 2016 - 2019 < >
* Light Actor - Parallel & Distributed Engine of Owl System
* Copyright (c) 2016-2019 Liang Wang <>
*)
module type Sig = sig
type socket
val init : unit -> unit Lwt.t
val exit : unit -> unit Lwt.t
v... | null | https://raw.githubusercontent.com/owlbarn/light_actor/d5ca76db0a58c61cd0ba019be458dada3ce9c36a/src/core/actor_net.ml | ocaml |
* Light Actor - Parallel & Distributed Engine of Owl System
* Copyright ( c ) 2016 - 2019 < >
* Light Actor - Parallel & Distributed Engine of Owl System
* Copyright (c) 2016-2019 Liang Wang <>
*)
module type Sig = sig
type socket
val init : unit -> unit Lwt.t
val exit : unit -> unit Lwt.t
v... | |
e558da3d39e4dba8fa2e5ccce717a82c9309c37c45848339471566e35226b7a0 | jrh13/hol-light | aux_definitions.ml |
File : aux_definitions.ml
Description : This file defines a few useful functions
Author : ( c ) Copyright 1989 - 2008 by
Date : October 23 , 1989
Last Update : December 30 , 2007
File: aux_definitions.ml
Description: This file defines a few useful function... | null | https://raw.githubusercontent.com/jrh13/hol-light/d125b0ae73e546a63ed458a7891f4e14ae0409e2/Unity/aux_definitions.ml | ocaml | Uniform error facility
----------------------------------------------------------------------
---------------------------------------------------------------------- |
File : aux_definitions.ml
Description : This file defines a few useful functions
Author : ( c ) Copyright 1989 - 2008 by
Date : October 23 , 1989
Last Update : December 30 , 2007
File: aux_definitions.ml
Description: This file defines a few useful function... |
25cef048ba3106bd042234fc434e35e5442fc2885776a2e00d7d025c0a77c511 | larcenists/larceny | load.sps | (import (scheme base)
(scheme write)
(tests scheme load)
(tests scheme test))
(display "Running tests for (scheme load)\n")
(run-load-tests)
(report-test-results)
| null | https://raw.githubusercontent.com/larcenists/larceny/fef550c7d3923deb7a5a1ccd5a628e54cf231c75/test/R7RS/Lib/tests/scheme/run/load.sps | scheme | (import (scheme base)
(scheme write)
(tests scheme load)
(tests scheme test))
(display "Running tests for (scheme load)\n")
(run-load-tests)
(report-test-results)
| |
0079757c44d9f89a04a0ac95151ba0a2297e707336a1aefe4b8ad08056f5a819 | FPtje/glualint-web | Editor.hs | # LANGUAGE LambdaCase #
{-# LANGUAGE PackageImports #-}
# LANGUAGE QuasiQuotes #
# LANGUAGE TemplateHaskell #
{-# LANGUAGE OverloadedStrings #-}
module GLualintWeb.Editor where
import "base" Control.Monad
import "lens" Control.Lens
import "glualint-lib" GLua.AG.Toke... | null | https://raw.githubusercontent.com/FPtje/glualint-web/d97712157effb2f29e24229659857cd2c024a427/src/GLualintWeb/Editor.hs | haskell | # LANGUAGE PackageImports #
# LANGUAGE OverloadedStrings #
startLine
start column
end line
end column
severity (error or warning)
message
startLine
start column
end line
end column | # LANGUAGE LambdaCase #
# LANGUAGE QuasiQuotes #
# LANGUAGE TemplateHaskell #
module GLualintWeb.Editor where
import "base" Control.Monad
import "lens" Control.Lens
import "glualint-lib" GLua.AG.Token (Region(..))
import "glualint-lib" GLuaFixer.LintMess... |
877148f0fd16260cf0b9c2f80044eecc1226f1aded8d8e7e776fb2fcd86c21ce | lispbuilder/lispbuilder | font.lisp | ;;;; Demonstration/Test of using the SDL_gfx library
using CFFI for foreign function interfacing ...
( C)2006
;;;; see COPYING for license
(in-package #:sdl-gfx-examples)
(defvar *current-y* 0)
(defvar *prev-font-height* 0)
(defmacro display-font (font-def)
(let ((font (gensym "font-")))
`(let* ((,font (... | null | https://raw.githubusercontent.com/lispbuilder/lispbuilder/589b3c6d552bbec4b520f61388117d6c7b3de5ab/lispbuilder-sdl-gfx/examples/font.lisp | lisp | Demonstration/Test of using the SDL_gfx library
see COPYING for license | using CFFI for foreign function interfacing ...
( C)2006
(in-package #:sdl-gfx-examples)
(defvar *current-y* 0)
(defvar *prev-font-height* 0)
(defmacro display-font (font-def)
(let ((font (gensym "font-")))
`(let* ((,font (sdl:initialise-font ,font-def)))
(sdl:draw-string-solid (format nil "Hello ... |
89207973b525a4ec04aa9f6d92c08f6fa231c162df02c43a07d4cb584af9868d | metasoarous/datsys | project.clj | (defproject datsys "0.0.1-alpha3"
should this be " an " or " un " ?
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:min-lein-version "2.0.0"
:dependencies [[org.clojure/clojure "1.9.0-alpha15"]
[org.clojure/tools.reader "1.0.0-beta3"]
[org.clojur... | null | https://raw.githubusercontent.com/metasoarous/datsys/67f506525d66887737ef058c866adb0c847be925/project.clj | clojure | ; WARNING : 0.3.28 breaks ( ! ) ; 0.3.23 known - safe
Other stuff (should try to clean things up once in main project)
have to start your own transactor separately from this process as well. More instructions on how to do
that in the Wiki (I think... bug us if you can't find them).
TODO Add `+datomic-pro` toggle ... | (defproject datsys "0.0.1-alpha3"
should this be " an " or " un " ?
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:min-lein-version "2.0.0"
:dependencies [[org.clojure/clojure "1.9.0-alpha15"]
[org.clojure/tools.reader "1.0.0-beta3"]
[org.clojur... |
ebf4d04f257a7ee82e6ab70ce4979a876684679992a59c4fb663b22ef74ce8f0 | facebook/pyre-check | inlineDecorator.mli |
* Copyright ( c ) Meta Platforms , Inc. and affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in t... | null | https://raw.githubusercontent.com/facebook/pyre-check/0b7ba1b5c34455c81d7b4e6acdef387789a56163/source/analysis/inlineDecorator.mli | ocaml | * Mapping from an inlined decorator function name to its original name.
* The keys represent the decorators to skip. The values are dont-care values. |
* Copyright ( c ) Meta Platforms , Inc. and affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in t... |
b6b71b885759eea1530538fe07144134508c07630790d012a1788f1efe89d406 | zjhmale/Ntha | Paths_ntha.hs | module Paths_ntha where
getDataFileName :: FilePath -> IO FilePath
getDataFileName = return
| null | https://raw.githubusercontent.com/zjhmale/Ntha/dc47fafddf67cf821c90c5cd72566de67d996238/Paths_ntha.hs | haskell | module Paths_ntha where
getDataFileName :: FilePath -> IO FilePath
getDataFileName = return
| |
13a270bfa2009fdb36b5f509ab55188c24214f17d3749d226cadc9d4e324f3f3 | manuel-serrano/hop | hglog.scm | ;*=====================================================================*/
* serrano / prgm / project / hop/2.2.x / etc / hglog.scm * /
;* ------------------------------------------------------------- */
* Author : * /
* Creation : ... | null | https://raw.githubusercontent.com/manuel-serrano/hop/481cb10478286796addd2ec9ee29c95db27aa390/etc/hglog.scm | scheme | *=====================================================================*/
* ------------------------------------------------------------- */
* ------------------------------------------------------------- */
*=====================================================================*/
*---------------------------... | * serrano / prgm / project / hop/2.2.x / etc / hglog.scm * /
* Author : * /
* Creation : We d Nov 3 07:22:22 2010 * /
* Last change : We d Nov 3 12:09:23 2010 ( serrano ) * /
* Co... |
1b130f58b992bdf2dc4b1d8d7aff14815ad1bfaa997ebd3b28a4d9e2b90ab97e | erlyvideo/publisher | flv.erl | @author < > [ ]
2010
@doc Module to read and write FLV files
It has many functions , but you need only several of them : read_header/1 , header/1 , , encode_tag/1
%%% @reference See <a href="/" target="_top"></a> for more information
%%% @end
%%%
%%% This file is part of erlmedia.
%%%
%%... | null | https://raw.githubusercontent.com/erlyvideo/publisher/5bb2dfa6477c46160dc5fafcc030fc3f5340ec80/apps/erlmedia/src/flv.erl | erlang | @reference See <a href="/" target="_top"></a> for more information
@end
This file is part of erlmedia.
erlmedia is free software: you can redistribute it and/or modify
(at your option) any later version.
erlmedia is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the im... | @author < > [ ]
2010
@doc Module to read and write FLV files
It has many functions , but you need only several of them : read_header/1 , header/1 , , encode_tag/1
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of th... |
c7704568a077a57e3837b39e904bb9581223580e9a246f2cbbdb968798287c52 | plow-technologies/ocaml-export | Spec.hs | import OCaml.Export
import Shared.Types.Reason.Types
import Test.Hspec
main :: IO ()
main = do
mkGoldenFiles (Proxy :: Proxy SharedTypesPackage) 100 "test/golden"
hspec $ runGoldenSpec (Proxy :: Proxy SharedTypesPackage) 100 "test/golden"
| null | https://raw.githubusercontent.com/plow-technologies/ocaml-export/752167f5df37d43534d27d9f63bb512eec1e750d/example/shared-types-re/test/Spec.hs | haskell | import OCaml.Export
import Shared.Types.Reason.Types
import Test.Hspec
main :: IO ()
main = do
mkGoldenFiles (Proxy :: Proxy SharedTypesPackage) 100 "test/golden"
hspec $ runGoldenSpec (Proxy :: Proxy SharedTypesPackage) 100 "test/golden"
| |
ec44723cee6d6579e9dd03aefcf159ef69dbc6823726782f6587ffcf9378dd81 | tweag/sparkle | Main.hs | {-# LANGUAGE OverloadedStrings #-}
# LANGUAGE RecordWildCards #
# LANGUAGE StaticPointers #
# LANGUAGE TypeApplications #
# LANGUAGE DataKinds #
# LANGUAGE OverloadedLabels #
module Main where
import Control.Distributed.Spark as RDD
import Control.Monad
import qualified Data . ByteString as B
import qualified Data.... | null | https://raw.githubusercontent.com/tweag/sparkle/dfcca845a6c79fefeb4cc52a833ee40d49da0239/apps/memerr/Main.hs | haskell | # LANGUAGE OverloadedStrings #
NOTE: it would be ideal if we could just set the driver memory here
by dynamically modifying the spark config, but when run in local mode,
you have to set it through the `spark-submit` CLI
Try other type of contents
rdd <- parallelize sc $ replicate inputLength $ B.replicate inputWi... | # LANGUAGE RecordWildCards #
# LANGUAGE StaticPointers #
# LANGUAGE TypeApplications #
# LANGUAGE DataKinds #
# LANGUAGE OverloadedLabels #
module Main where
import Control.Distributed.Spark as RDD
import Control.Monad
import qualified Data . ByteString as B
import qualified Data.Text as T
import Data.Choice
impor... |
c8d64f0b29cea92c9f06e005c31f11c06938491b22328a1518a47397dcc70db8 | argp/bap | batReturn.mli |
* Return -- fast return in OCaml
* Copyright ( C ) 2008
*
* This library is free software ; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation ; either
* version 2.1 of the License , or ( at your optio... | null | https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/batteries/src/batReturn.mli | ocaml | * A label which may be used to return values of type ['a]
* [label f] creates a new label [x] and invokes
[f x]. If, during the execution of [f], [return x v]
is invoked, the execution of [f x] stops
immediately and [label f] returns [v].
Otherwise, if [f x] terminates normally and
returns [y], [lab... |
* Return -- fast return in OCaml
* Copyright ( C ) 2008
*
* This library is free software ; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation ; either
* version 2.1 of the License , or ( at your optio... |
ff5c11f3747644dfa7f84bd602ccbb8e1f33cb9b33d7fb9cd152bd048f40fca8 | ocaml-community/yojson | conversions.ml | module SB = Core_bench_internals.Simplified_benchmark
let input_results in_chan =
Sexplib.Sexp.input_sexp in_chan |> SB.Results.t_of_sexp
let metrics name value unit_name =
`Assoc
[
("name", `String name);
("value", `Float value);
("units", `String unit_name);
]
let extract full_name re... | null | https://raw.githubusercontent.com/ocaml-community/yojson/5c705859263b2bb762486439af334693bf123cf1/bench/conversions.ml | ocaml | module SB = Core_bench_internals.Simplified_benchmark
let input_results in_chan =
Sexplib.Sexp.input_sexp in_chan |> SB.Results.t_of_sexp
let metrics name value unit_name =
`Assoc
[
("name", `String name);
("value", `Float value);
("units", `String unit_name);
]
let extract full_name re... | |
9802ae132e43bb5858b58a79c1f1c49a9dfcc0698d901070a7e96b297a53aba1 | Gbury/dolmen | env.ml |
(* This file is free software, part of dolmen. See file "LICENSE" for more information *)
(* Type definitions & modules *)
(* ************************************************************************* *)
module V = Map.Make(Dolmen.Std.Expr.Term.Var)
module C = Map.Make(Dolmen.Std.Expr.Term.Const)
type t = {
model ... | null | https://raw.githubusercontent.com/Gbury/dolmen/12bf280df3d886ddc0faa110effbafb71bffef7e/src/model/env.ml | ocaml | This file is free software, part of dolmen. See file "LICENSE" for more information
Type definitions & modules
*************************************************************************
Common functions
************************************************************************* |
module V = Map.Make(Dolmen.Std.Expr.Term.Var)
module C = Map.Make(Dolmen.Std.Expr.Term.Const)
type t = {
model : Model.t;
builtins : t -> Dolmen.Std.Expr.Term.Const.t -> Value.t;
}
let mk model ~builtins =
{ model; builtins; }
let builtins t = t.builtins t
let model { model; _ } = model
let update_model... |
2adde9f9013d78f27d838d5ed6920fe01f3c557918400d1ca8e5ad25a65b2573 | unixpickle/brainfuck | core.clj | (ns brainfuck.core
(:require (brainfuck interpreter compiler))
(:gen-class))
(def usage-str "Usage: lein run [<compile|interpret>] <file> [interpreter input]")
(defn interpret
[& args]
(if (> (count args) 2)
(println usage-str)
(let [contents (slurp (first args))
input (apply str (rest... | null | https://raw.githubusercontent.com/unixpickle/brainfuck/68713ec7b4037e869e86e128f11c0da54832212f/src/brainfuck/core.clj | clojure | (ns brainfuck.core
(:require (brainfuck interpreter compiler))
(:gen-class))
(def usage-str "Usage: lein run [<compile|interpret>] <file> [interpreter input]")
(defn interpret
[& args]
(if (> (count args) 2)
(println usage-str)
(let [contents (slurp (first args))
input (apply str (rest... | |
1cfcea2a2472d958d4c4f51da4da2ad5e6497971366f4b615dc41cbe04c9dcdd | kayceesrk/Quelea | BankAccountDefs.hs | # LANGUAGE ScopedTypeVariables , TemplateHaskell , BangPatterns #
module BankAccountDefs (
BankAccount(..),
deposit, depositCtrt,
withdraw, withdrawCtrt,
getBalance, getBalanceCtrt,
saveTxnCtrt, totalBalanceTxnCtrt,
Operation(..),
summarize
) where
import Database.Cassandra.CQL as CQL
import Data.Map (M... | null | https://raw.githubusercontent.com/kayceesrk/Quelea/73db79a5d5513b9aeeb475867a67bacb6a5313d0/tests/BankAccount/BankAccountDefs.hs | haskell | trace ("W bal=" ++ show bal ++ " amt=" ++ show amt)
------------------------------------------------------------------------------ | # LANGUAGE ScopedTypeVariables , TemplateHaskell , BangPatterns #
module BankAccountDefs (
BankAccount(..),
deposit, depositCtrt,
withdraw, withdrawCtrt,
getBalance, getBalanceCtrt,
saveTxnCtrt, totalBalanceTxnCtrt,
Operation(..),
summarize
) where
import Database.Cassandra.CQL as CQL
import Data.Map (M... |
bf935c0a3c25d3f89c1d4e03ace57e6f6d4d30e2029b7946e5142b2e1ab6d7ec | MattWindsor91/travesty | monad_exts.ml | This file is part of ' travesty ' .
Copyright ( c ) 2018 , 2019 , 2020 by
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 without li... | null | https://raw.githubusercontent.com/MattWindsor91/travesty/3f4da33830cc928ad879077e690277088de1f836/src/monad_exts.ml | ocaml | This file is part of ' travesty ' .
Copyright ( c ) 2018 , 2019 , 2020 by
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 without li... | |
a6541f2e6909966889b6d8e03661f2e0d2c50275e725587d0862e6022b4f8b77 | frp-arduino/frp-arduino | Nano.hs | Copyright ( c ) 2014 - 2018 Contributors as noted in the file
--
-- This file is part of frp-arduino.
--
-- frp-arduino is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
... | null | https://raw.githubusercontent.com/frp-arduino/frp-arduino/7489ada012efc404086043ee55a9933029647121/src/Arduino/Nano.hs | haskell |
This file is part of frp-arduino.
frp-arduino is free software: you can redistribute it and/or modify
(at your option) any later version.
frp-arduino 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 PUR... | Copyright ( c ) 2014 - 2018 Contributors as noted in the file
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
You should have received a copy of the GNU General Public License
module Arduino.Nano
( module Arduino.DSL
... |
bd67b679812abe5ce51e7cf57b181d5043223c7b8b498dd9c07f8dfdaf973788 | tweag/asterius | TH.hs | {-# LANGUAGE PackageImports #-}
# LANGUAGE TemplateHaskell #
# LANGUAGE ViewPatterns #
module Asterius.NFData.TH
( genNFData,
)
where
import Control.DeepSeq
import Data.List (foldl1')
import "template-haskell" Language.Haskell.TH
genNFData :: Name -> Q [Dec]
genNFData ty = do
TyConI dec <- reify ty
case dec ... | null | https://raw.githubusercontent.com/tweag/asterius/506fa3b3b79d973db064a3ef1dd6de5d29a3bf78/asterius/src-types/Asterius/NFData/TH.hs | haskell | # LANGUAGE PackageImports # | # LANGUAGE TemplateHaskell #
# LANGUAGE ViewPatterns #
module Asterius.NFData.TH
( genNFData,
)
where
import Control.DeepSeq
import Data.List (foldl1')
import "template-haskell" Language.Haskell.TH
genNFData :: Name -> Q [Dec]
genNFData ty = do
TyConI dec <- reify ty
case dec of
DataD [] ((== ty) -> True... |
a724beb30c2d8c2b50e4aca5cec46e563ec06d43835603cd09d63303c03cf63a | facebook/infer | BxlClang.mli |
* Copyright ( c ) Facebook , Inc. and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
... | null | https://raw.githubusercontent.com/facebook/infer/ba8c1aa653155d59739f40188e791ecf94281acf/infer/src/integration/BxlClang.mli | ocaml |
* Copyright ( c ) Facebook , Inc. and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
... | |
796b451502bf2e3df42b17e0364cf6bb96a0d5420e0da783f401ca127f9fcf8e | rroohhh/guix_system | manifest_robin.scm | (packages->manifest `(,hello))
| null | https://raw.githubusercontent.com/rroohhh/guix_system/3c363db76c0a4afe5dffa69973adec959e545f3b/home/manifest_robin.scm | scheme | (packages->manifest `(,hello))
| |
054ef07b43001e6c0f7c636484a8bb2e1d9459233869785dbe73d2bcd29848d4 | froydnj/diff | package.lisp | package.lisp
(defpackage :diff
(:use :cl)
(:export #:*diff-context-lines*
#:generate-diff
#:generate-seq-diff
#:unified-diff #:context-diff
#:apply-seq-window
#:apply-seq-diff
#:apply-seq-patch
#:apply-patch
#:render-diff
... | null | https://raw.githubusercontent.com/froydnj/diff/9c84befa598d4e07c3d223242b5b3f83cd94f301/package.lisp | lisp | package.lisp
(defpackage :diff
(:use :cl)
(:export #:*diff-context-lines*
#:generate-diff
#:generate-seq-diff
#:unified-diff #:context-diff
#:apply-seq-window
#:apply-seq-diff
#:apply-seq-patch
#:apply-patch
#:render-diff
... | |
e1daf29a36a1c30c596d13a997385d15d16b20549699b99a3f6b7f879869b7f6 | dfinity/motoko | tailcall.ml | open Ir_def
open Mo_types
open Source
open Ir
open Ir_effect
open Type
open Construct
(* Optimize (self) tail calls to jumps, avoiding stack overflow
in a single linear pass *)
This is simple tail call optimizer that replaces tail calls to the current function by jumps .
It can easily be extended to non - s... | null | https://raw.githubusercontent.com/dfinity/motoko/26c229ad2b6305e15740eb718aa1caf1329f9afd/src/ir_passes/tailcall.ml | ocaml | Optimize (self) tail calls to jumps, avoiding stack overflow
in a single linear pass
is the expression in tail position
the innermost enclosing func, if any
remove shadowed func info
preserve existing, non-shadowed info
conservative, but safe
TBR
A local let bound function, this is what we are looking... | open Ir_def
open Mo_types
open Source
open Ir
open Ir_effect
open Type
open Construct
This is simple tail call optimizer that replaces tail calls to the current function by jumps .
It can easily be extended to non - self tail calls , once supported by wasm .
For each function ` f ` whose ` body [ ... ] ` ha... |
77f7095ed2d4ce53fda8b991a57b08ef784648af4f2e48c6319258cfd8258d1f | xapi-project/xen-api | debug_populate.ml |
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc.
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation ; version 2.1 only . with the special
* exception on linking describe... | null | https://raw.githubusercontent.com/xapi-project/xen-api/48cc1489fff0e344246ecf19fc1ebed6f09c7471/ocaml/xapi/debug_populate.ml | ocaml |
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc.
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation ; version 2.1 only . with the special
* exception on linking describe... | |
68ddd3a45f3079eafbfb423f333d1443f80da879bf59b24e8b64cf9e59736997 | typelead/eta | tc098.hs | -- !!! Ambiguity in local declarations
module ShouldSucceed where
type Cp a = a -> a -> Ordering
m :: Eq a => Cp a -> [a] -> a
m _ [x,y,z] = if x==y then x else z
cpPairs :: Cp [j] -> (a,[j]) -> (a,[j]) -> Ordering
cpPairs cp (_,p) (_,q) = cp p q
mp :: (Eq i,Eq j) => Cp [j] -> ... | null | https://raw.githubusercontent.com/typelead/eta/97ee2251bbc52294efbf60fa4342ce6f52c0d25c/tests/suite/typecheck/compile/tc098.hs | haskell | !!! Ambiguity in local declarations |
module ShouldSucceed where
type Cp a = a -> a -> Ordering
m :: Eq a => Cp a -> [a] -> a
m _ [x,y,z] = if x==y then x else z
cpPairs :: Cp [j] -> (a,[j]) -> (a,[j]) -> Ordering
cpPairs cp (_,p) (_,q) = cp p q
mp :: (Eq i,Eq j) => Cp [j] -> [(i,[j])] -> (i,[j])
mp ... |
c8f3b7b56425efab5afcc2d423a71c33066d0cc433efa19202872a5df699d6e5 | nuprl/gradual-typing-performance | lnm-parameters.rkt | #lang typed/racket/base
Calls to ( defparam i d ... ) expand to a ( provide i d )
(provide
defparam
)
(require
(for-syntax racket/base syntax/parse)
plot/typed/utils
)
;; -----------------------------------------------------------------------------
;; --- plumbing
(define-syntax-rule (deftype id t)
(begin... | null | https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/tools/summarize/lnm-parameters.rkt | racket | -----------------------------------------------------------------------------
--- plumbing
Should look `*LIKE-THIS*`, with asterisks on either end and capital letters or
dashes in-between.
(module+ test
(begin-for-syntax
(require rackunit)
(check-true (well-styled-param? '*YES*))
(check-true (... | #lang typed/racket/base
Calls to ( defparam i d ... ) expand to a ( provide i d )
(provide
defparam
)
(require
(for-syntax racket/base syntax/parse)
plot/typed/utils
)
(define-syntax-rule (deftype id t)
(begin (define-type id t) (provide id)))
(define-for-syntax (well-styled-param? id)
(regexp-match? #... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.