_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
da6c4302513ebfedb8c1f78519768b947a83942cf7a5715a3773d493715f1c51
flavioc/cl-hurd
paths.lisp
(in-package :translator-test) (defconstant +translator-root+ "../foo") (defconstant +main-dir+ (concatenate-string +translator-root+ "/root"))
null
https://raw.githubusercontent.com/flavioc/cl-hurd/982232f47d1a0ff4df5fde2edad03b9df871470a/tests/paths.lisp
lisp
(in-package :translator-test) (defconstant +translator-root+ "../foo") (defconstant +main-dir+ (concatenate-string +translator-root+ "/root"))
d2f39d71eb955e9dfb50a56d08452dd509c9ac83991928727ab35f418f53572e
sile/taomp-sbcl
to-lock.lisp
(defpackage to-lock (:use :common-lisp :util) (:export make trylock unlock with-lock)) (in-package :to-lock) (defstruct node (pred nil :type (or null node))) (defvar *available* (make-node)) (defstruct lock-obj (tail nil :type (or null node)) (my-node (make-tls #'make-node)...
null
https://raw.githubusercontent.com/sile/taomp-sbcl/6216891346160e613fae3bb73491bc8c8fbad1c4/c7/to-lock.lisp
lisp
(defpackage to-lock (:use :common-lisp :util) (:export make trylock unlock with-lock)) (in-package :to-lock) (defstruct node (pred nil :type (or null node))) (defvar *available* (make-node)) (defstruct lock-obj (tail nil :type (or null node)) (my-node (make-tls #'make-node)...
04a7656cbf563f3058a617cd91ac8eb70fc15a1ef091a4726a6ad5c52c56e0f6
DerekCuevas/interview-cake-clj
project.clj
(defproject find-repeat-space-edition "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"]] :main ^:skip-aot find-repeat-space-edition.core :target-path "target/%s" :profiles {:u...
null
https://raw.githubusercontent.com/DerekCuevas/interview-cake-clj/f17d3239bb30bcc17ced473f055a9859f9d1fb8d/find-repeat-space-edition/project.clj
clojure
(defproject find-repeat-space-edition "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"]] :main ^:skip-aot find-repeat-space-edition.core :target-path "target/%s" :profiles {:u...
6ed949f93030d90c42388aa299f9535a15d08c8ad3902d1413b27ed6a25c6d40
screenshotbot/screenshotbot-oss
core.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 /. (uiop:define-package :screenshotbot/api/core (:use #:cl #:alexandria) (:import-fr...
null
https://raw.githubusercontent.com/screenshotbot/screenshotbot-oss/a7a3adb3c7ba1a2f81242e8355c47f58bf15a46e/src/screenshotbot/api/core.lisp
lisp
Copyright 2018-Present Modern Interpreters Inc. setings api
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 /. (uiop:define-package :screenshotbot/api/core (:use #:cl #:alexandria) (:import-from #:screenshotbot/server #:defhandler) ...
3c8d949ca7fecf5f6a2b754bd9ca44ef7a9e7bc845510d4949b51204599f32da
Factual/clj-helix
fsm_test.clj
(ns clj-helix.fsm-test (:require [clojure.test :refer :all] [clj-helix.fsm :refer :all])) (deftest reachable-states-test (let [graph {:states {:a {:transitions [:a]} :b {:transitions [:a]} :c {:transitions [:b]} :d {:transitions [:...
null
https://raw.githubusercontent.com/Factual/clj-helix/ab868e9f7e37878b700868c1687467ad0c75df46/test/clj_helix/fsm_test.clj
clojure
(ns clj-helix.fsm-test (:require [clojure.test :refer :all] [clj-helix.fsm :refer :all])) (deftest reachable-states-test (let [graph {:states {:a {:transitions [:a]} :b {:transitions [:a]} :c {:transitions [:b]} :d {:transitions [:...
b992cb179ff2d53f98d2b1e6b2e69d66a5cdf3eeccc70ced3c2c2fd17145ee16
imdea-software/leap
ParamInv.mli
(***********************************************************************) (* *) LEAP (* *) , IMDEA ...
null
https://raw.githubusercontent.com/imdea-software/leap/5f946163c0f80ff9162db605a75b7ce2e27926ef/src/paraminv/ParamInv.mli
ocaml
********************************************************************* ...
LEAP , IMDEA Software Institute Copyright 2011 IMDEA Software Institute Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compl...
62fc84f3e23596dbc7c6eb04681596ade069d903b6f99cb93e5b983bdd18c480
gonzojive/parenscript
namespace.lisp
(in-package #:parenscript) (defvar *obfuscated-packages* (make-hash-table)) (defun obfuscate-package (package-designator &optional (symbol-map (let ((symbol-table (make-hash-table))) (lambda (symbol) (or #...
null
https://raw.githubusercontent.com/gonzojive/parenscript/5d4772369e28c33cd3522ad46d3de357f7cacf70/src/namespace.lisp
lisp
(in-package #:parenscript) (defvar *obfuscated-packages* (make-hash-table)) (defun obfuscate-package (package-designator &optional (symbol-map (let ((symbol-table (make-hash-table))) (lambda (symbol) (or #...
6bf4154d3baff3c7a8333210ca376deddbd4b7f2ca667fb7718211983638e90a
jyh/metaprl
itt_int_base.mli
* * The integers are formalized as a @emph{ruleitive } * type in the @Nuprl type theory . * * ---------------------------------------------------------------- * * This file is part of MetaPRL , a modular , higher order * logical framework that provides a logical programming * environment for ...
null
https://raw.githubusercontent.com/jyh/metaprl/51ba0bbbf409ecb7f96f5abbeb91902fdec47a19/theories/itt/core/itt_int_base.mli
ocaml
*********************************************************************** * TERMS * *********************************************************************** Prop-int-lt definition *********************************************************************** *...
* * The integers are formalized as a @emph{ruleitive } * type in the @Nuprl type theory . * * ---------------------------------------------------------------- * * This file is part of MetaPRL , a modular , higher order * logical framework that provides a logical programming * environment for ...
7802f8d7e758b44a59b8c326d28a8cbde1a8e3f5c7c483e1e2871bd0b4dca759
imandra-ai/ocaml-opentelemetry
metrics_pb.mli
(** metrics.proto Binary Encoding *) * { 2 Protobuf Encoding } val encode_exemplar_value : Metrics_types.exemplar_value -> Pbrt.Encoder.t -> unit (** [encode_exemplar_value v encoder] encodes [v] with the given [encoder] *) val encode_exemplar : Metrics_types.exemplar -> Pbrt.Encoder.t -> unit (** [encode_exemplar ...
null
https://raw.githubusercontent.com/imandra-ai/ocaml-opentelemetry/3dc7d63c7d2c345ba13e50b67b56aff878b6d0bb/src/metrics_pb.mli
ocaml
* metrics.proto Binary Encoding * [encode_exemplar_value v encoder] encodes [v] with the given [encoder] * [encode_exemplar v encoder] encodes [v] with the given [encoder] * [encode_number_data_point_value v encoder] encodes [v] with the given [encoder] * [encode_number_data_point v encoder] encodes [v] with the gi...
* { 2 Protobuf Encoding } val encode_exemplar_value : Metrics_types.exemplar_value -> Pbrt.Encoder.t -> unit val encode_exemplar : Metrics_types.exemplar -> Pbrt.Encoder.t -> unit val encode_number_data_point_value : Metrics_types.number_data_point_value -> Pbrt.Encoder.t -> unit val encode_number_data_point : Me...
bce6053665ba22c14b9f19dd543ee0692f96e6c8892fe3f13ec6b164f3f78a8d
pigworker/Syrup
Smp.hs
------------------------------------------------------------------------------ ----- ----- ----- Smp: Sample programs to run tests on ----- ----- ----- ----...
null
https://raw.githubusercontent.com/pigworker/Syrup/d59e3a9b65274075f14f19b48746182a773bafc5/SRC/Smp.hs
haskell
---------------------------------------------------------------------------- --- ----- --- Smp: Sample programs to run tests on ----- --- ----- ------------...
module Syrup.SRC.Smp where import Syrup.SRC.Syn nand :: Def nand = Def ("nand", PVar <$> ["X", "Y"]) [Var "Z"] $ Just $ [ ([PVar "Z"] :=: [App "nand" (Var <$> ["X", "Y"])]) ] notG :: Def notG = Def ("not", [PVar "X"]) [Var "Z"] $ Just $ [ [PVar "Z"] :=: [App "nand" [Var "X", Var "X"]] ] andG :: Def andG = De...
05c0641d797ccafb3c86e204143301eb0dfa22a54600c493b1443db94199a5d7
nomasystems/nqueue
nqueue_tab.erl
Copyright 2022 Nomasystems , S.L. %% 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 distri...
null
https://raw.githubusercontent.com/nomasystems/nqueue/54de961fba296592cc39bbe1de8603b1c3d4e168/src/nqueue_tab.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing perm...
Copyright 2022 Nomasystems , S.L. Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(nqueue_tab). -export([create/1, destroy/1]). -export([in/2, out/1]). -export([info/1, is_empty/1, len/1, to_list/1, total_in/1, t...
67f9640b8922facfbad301348ed0ce259204f566961a0b65ddd6aa7647990c5c
racehub/om-bootstrap
footer.cljs
#_ (:require [om-bootstrap.panel :as p]) (p/panel {:footer "Panel footer"} "Panel content")
null
https://raw.githubusercontent.com/racehub/om-bootstrap/18fb7f67c306d208bcb012a1b765ac1641d7a00b/dev/snippets/panel/footer.cljs
clojure
#_ (:require [om-bootstrap.panel :as p]) (p/panel {:footer "Panel footer"} "Panel content")
e5314482b9916600a5563d1c22c995fab4738040f70a6008ab4d7194f7e8e98e
tarides/dune-release
distrib.ml
--------------------------------------------------------------------------- Copyright ( c ) 2016 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
null
https://raw.githubusercontent.com/tarides/dune-release/6bfed0f299b82c0931c78d4e216fd0efedff0673/lib/distrib.ml
ocaml
--------------------------------------------------------------------------- Copyright ( c ) 2016 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
051167e3e538b8e983d850d12db3d3be9c55f87a24a527f47123b703e8ed8e80
bradparker/servant-beam-realworld-example-app
Article.hs
module RealWorld.Conduit.Articles.Article ( Article(..) ) where import Data.Aeson (FromJSON(..), ToJSON(..)) import Data.Swagger (ToSchema) import Data.Time (UTCTime) import RealWorld.Conduit.Users.Profile (Profile) data Article = Article { id :: Int , slug :: Text , title :: Text , description :: Text ...
null
https://raw.githubusercontent.com/bradparker/servant-beam-realworld-example-app/d4a0d79d9dbc7e5b8987b367ac32f99ac3cc20e7/src/RealWorld/Conduit/Articles/Article.hs
haskell
module RealWorld.Conduit.Articles.Article ( Article(..) ) where import Data.Aeson (FromJSON(..), ToJSON(..)) import Data.Swagger (ToSchema) import Data.Time (UTCTime) import RealWorld.Conduit.Users.Profile (Profile) data Article = Article { id :: Int , slug :: Text , title :: Text , description :: Text ...
a895d0367f430b00c60f7b11df6e539053c6ee8ed13c5f37329fff6220a097bf
dongcarl/guix
keymap.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2018 < > 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 Foundation ; eit...
null
https://raw.githubusercontent.com/dongcarl/guix/82543e9649da2da9a5285ede4ec4f718fd740fcb/gnu/installer/keymap.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 © 2018 < > 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 installer keymap) #:use-module (guix records) #:use-module (sxml ...
507bcb6ab4358abd74b92d4b15165532e21190b51ea2234c63d0a636980b4f10
waddlaw/TAPL
Type.hs
{-# LANGUAGE OverloadedStrings #-} module Language.NB.Type (Term (..)) where import Data.Text.Prettyprint.Doc import RIO data Term = TmTrue -- constant true | TmFalse -- constant false | TmIf Term Term Term -- conditional constant zero | TmSucc Term -- successor | TmPred Term -- predecessor zero test ...
null
https://raw.githubusercontent.com/waddlaw/TAPL/94576e46821aaf7abce6d1d828fc3ce6d05a40b8/subs/arith/src/Language/NB/Type.hs
haskell
# LANGUAGE OverloadedStrings # constant true constant false conditional successor predecessor
module Language.NB.Type (Term (..)) where import Data.Text.Prettyprint.Doc import RIO data Term constant zero zero test deriving stock (Eq, Show) instance Pretty Term where pretty = \case TmTrue -> "true" TmFalse -> "false" TmIf t1 t2 t3 -> "if" <+> pretty t1 <+> "then" <+>...
788865057fb0b814e0961ed9a16c05d53210b2a117f6aaf39afb6b2fd7045d11
jiujiu1123/defensive-to-contracts
unless-one-arg.rkt
#lang plai (define (cond-one-args arg0) (unless (string? arg0) (error "must be string")) (length arg0) )
null
https://raw.githubusercontent.com/jiujiu1123/defensive-to-contracts/f64d8cb80a17fb981eb8269ef15f1fdb2f4d190b/sample-defensive/unless-one-arg.rkt
racket
#lang plai (define (cond-one-args arg0) (unless (string? arg0) (error "must be string")) (length arg0) )
d372761d29b6a1f3276d3d0113cd65b66bd8df4afbd8c321c1711c9a10cbbc1f
igorhvr/bedlam
bid.scm
; Bidding (define money (make-hashtable)) (define estimated-bids (make-hashtable)) (define (robot-money id) (hashtable/get money id 0)) (define (robot-money! id v) (hashtable/put! money id v)) (define (bid! id v) (robot-money! id (- (robot-money id) v))) (define (forceful-bid id before) ((if before + -) ...
null
https://raw.githubusercontent.com/igorhvr/bedlam/b62e0d047105bb0473bdb47c58b23f6ca0f79a4e/sisc/sisc-contrib/icfp/bid.scm
scheme
Bidding
(define money (make-hashtable)) (define estimated-bids (make-hashtable)) (define (robot-money id) (hashtable/get money id 0)) (define (robot-money! id v) (hashtable/put! money id v)) (define (bid! id v) (robot-money! id (- (robot-money id) v))) (define (forceful-bid id before) ((if before + -) (hashtab...
e39ff03f5248b746908455b4a5e0eb77bd4bf440bb0de44bfd1843a9f53a70f5
bgaster/hopencl
Module.hs
# LANGUAGE GeneralizedNewtypeDeriving # {-# OPTIONS_GHC -XMultiParamTypeClasses #-} module Module (Module(..), ModuleM(..), theKernels) where import Control.Monad.Reader import Language.OpenCL.Host data Module = Mod { context_ :: Context , kernels_ :: [Kernel] , queue_ ...
null
https://raw.githubusercontent.com/bgaster/hopencl/a5b6387cd32d3ca3338b4f433a363e3a581c0bf9/examples/Module.hs
haskell
# OPTIONS_GHC -XMultiParamTypeClasses #
# LANGUAGE GeneralizedNewtypeDeriving # module Module (Module(..), ModuleM(..), theKernels) where import Control.Monad.Reader import Language.OpenCL.Host data Module = Mod { context_ :: Context , kernels_ :: [Kernel] , queue_ :: CommandQueue } newtype ModuleM t = Modul...
d76f0b03eb01fdb557ce4b2d6318bc7c1ee2aac1a407c4d53bbdb064f850d35b
icfpcontest2021/icfpcontest2021.github.io
Json.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # # OPTIONS_GHC -fno - warn - orphans # module BrainWall.Json ( encodeProblem , decodeProblem , encodeSolution , decodeSolution , decodeFigure , decodeWith , decodeFileWith , encodeText , featuresEnabledBonuses ) ...
null
https://raw.githubusercontent.com/icfpcontest2021/icfpcontest2021.github.io/fb23fea2a8ecec7740017d3dda78d921c1df5a26/toolchain/lib/BrainWall/Json.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE RecordWildCards # # OPTIONS_GHC -fno - warn - orphans # module BrainWall.Json ( encodeProblem , decodeProblem , encodeSolution , decodeSolution , decodeFigure , decodeWith , decodeFileWith , encodeText , featuresEnabledBonuses ) where import BrainWall.D...
e43b49e6e67be02622a8e506767b4ef0b9787ca53579af9e8e37dd73d6e8198e
input-output-hk/cardano-ledger
Pool.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # #...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger/b9aa1ad1728c0ceeca62657ec94d6d099896c052/eras/shelley/impl/src/Cardano/Ledger/Shelley/Rules/Pool.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # KeyHash which cannot be retired since it is not registered Current Epoch The disallowed certificate (this case should never happen) The minimum stake pool cost listed in the protocol parameters Actual Network ID Stake Pool ID Stake Pool ID Size of the metad...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -Wno - orphans #...
9c1916de6ed66b44aecd0bf7c25f16c2c3b342b27273f00df6f3133dd0e017c6
0x6e6562/shovel
lib_shovel.erl
-module(lib_shovel). -include_lib("rabbitmq_server/include/rabbit.hrl"). -include_lib("rabbitmq_server/include/rabbit_framing.hrl"). -compile(export_all). start_connection() -> amqp_connection:start("guest", "guest"). start_connection(Host) -> amqp_connection:start("guest", "guest", Host). start_channe...
null
https://raw.githubusercontent.com/0x6e6562/shovel/d3d1cf7f5cd88b1f4a34351fcb04df0c8bade8c1/src/lib_shovel.erl
erlang
ReplyProps = #'P_basic'{correlation_id = CorrelationId}, TODO HARDCODED VALUE
-module(lib_shovel). -include_lib("rabbitmq_server/include/rabbit.hrl"). -include_lib("rabbitmq_server/include/rabbit_framing.hrl"). -compile(export_all). start_connection() -> amqp_connection:start("guest", "guest"). start_connection(Host) -> amqp_connection:start("guest", "guest", Host). start_channe...
f4068e5fbfa4878246d09681f21b8a6a51586e483b455372d019dda87ec78b26
mejgun/haskell-tdlib
GetRecoveryEmailAddress.hs
{-# LANGUAGE OverloadedStrings #-} -- | module TD.Query.GetRecoveryEmailAddress where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified Utils as U -- | Returns a 2 - step verification recovery email address that was previously set up . This method can be used to verify a pass...
null
https://raw.githubusercontent.com/mejgun/haskell-tdlib/cf563ece2c2270b2079e233c73cbc7dfd2f70281/src/TD/Query/GetRecoveryEmailAddress.hs
haskell
# LANGUAGE OverloadedStrings # | | |
module TD.Query.GetRecoveryEmailAddress where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified Utils as U Returns a 2 - step verification recovery email address that was previously set up . This method can be used to verify a password provided by the user @password The 2 - s...
81dd5633b79c878d75079026f1167addb073ac800ceb4d4971e5288ed5045ded
yuriy-chumak/ol
version-4-1.scm
OpenGL 4.1 ( 26 Jul 2010 ) GLSL 4.10 (define-library (OpenGL version-4-1) (export GL_VERSION_4_1 (exports (OpenGL version-4-0))) (import (scheme core) (OpenGL version-4-0)) (begin (define GL_VERSION_4_1 1) ))
null
https://raw.githubusercontent.com/yuriy-chumak/ol/dccf6deef72dba7cbb07dd2fda65950de017088b/libraries/OpenGL/version-4-1.scm
scheme
OpenGL 4.1 ( 26 Jul 2010 ) GLSL 4.10 (define-library (OpenGL version-4-1) (export GL_VERSION_4_1 (exports (OpenGL version-4-0))) (import (scheme core) (OpenGL version-4-0)) (begin (define GL_VERSION_4_1 1) ))
e4dca58033bd2e0bbc60c93eedf5afe9437cbd5cd98ad396768fb72f6d061118
yzh44yzh/practical_erlang
tic_tac_toe_test.erl
-module(tic_tac_toe_test). -include_lib("eunit/include/eunit.hrl"). win_test() -> ?assertEqual(no_win, tic_tac_toe:win(tic_tac_toe:new_game())), ?assertEqual(no_win, tic_tac_toe:win({{x,o,x}, {o,x,o}, {o,x,o}})), ?assertEq...
null
https://raw.githubusercontent.com/yzh44yzh/practical_erlang/c9eec8cf44e152bf50d9bc6d5cb87fee4764f609/04_pattern_matching/solution/tic_tac_toe_test.erl
erlang
-module(tic_tac_toe_test). -include_lib("eunit/include/eunit.hrl"). win_test() -> ?assertEqual(no_win, tic_tac_toe:win(tic_tac_toe:new_game())), ?assertEqual(no_win, tic_tac_toe:win({{x,o,x}, {o,x,o}, {o,x,o}})), ?assertEq...
fff260904814833ac48f0186751a8ef2e2bcd7df3713b27b95fab2b8019d2cb9
donaldsonjw/bigloo
profile.scm
(module jas_profile (import jas_lib) (export (jas-profile::pair-nil l::pair-nil) *jas-profile-mode*) (static (class _env this jstring has_clinit clinit res names lnames lines )) ) (define *jas-profile-mode* 0) ;; ;; Entry point ;; (define (jas-profile::pair-nil l::pair-nil) (if (>fx *jas-pr...
null
https://raw.githubusercontent.com/donaldsonjw/bigloo/a4d06e409d0004e159ce92b9908719510a18aed5/bde/jas/profile.scm
scheme
Entry point (pp r) Main function Declaration Code (invokestatic foreign-print) (ldc ,(string-append (integer->string cur-fnt) " -> " (integer->string i) ))
(module jas_profile (import jas_lib) (export (jas-profile::pair-nil l::pair-nil) *jas-profile-mode*) (static (class _env this jstring has_clinit clinit res names lnames lines )) ) (define *jas-profile-mode* 0) (define (jas-profile::pair-nil l::pair-nil) (if (>fx *jas-profile-mode* 0) CARE...
347958037b6926567b30960d113c2f0da83d3dfe79a78b2371a1ff96a432283b
jorinvo/googlesheets-sql-sync
auth_file.clj
(ns googlesheets-sql-sync.auth-file (:refer-clojure :exclude [get]) (:require [clojure.java.io :as io] [clojure.spec.alpha :as s] [googlesheets-sql-sync.util :as util :refer [fail]])) (s/def ::access_token ::util/str-not-empty) (s/def ::expires_in pos-int?) (s/def ::refresh_token ::util/str-not-empty) (s...
null
https://raw.githubusercontent.com/jorinvo/googlesheets-sql-sync/b9fb4c8d7fba36859d4225140778e465142be180/src/googlesheets_sql_sync/auth_file.clj
clojure
(ns googlesheets-sql-sync.auth-file (:refer-clojure :exclude [get]) (:require [clojure.java.io :as io] [clojure.spec.alpha :as s] [googlesheets-sql-sync.util :as util :refer [fail]])) (s/def ::access_token ::util/str-not-empty) (s/def ::expires_in pos-int?) (s/def ::refresh_token ::util/str-not-empty) (s...
3d0e8ebe86f7bd5b7838dbc00f549be4ee562d33e694d63fb816c70891b752e0
racket/errortrace
zo-compile.rkt
(module zo-compile racket/base (require "errortrace-lib.rkt") (provide zo-compile) (define zo-compile (let ([orig (current-compile)]) (lambda (stx immediate-eval?) (if (null? (use-compiled-file-paths)) (orig stx immediate-eval?) (orig (errortrace-annotate stx) immediate-eval?))))))
null
https://raw.githubusercontent.com/racket/errortrace/914f26aa07f97b4aaecea41f5881ac442df93a42/errortrace-lib/errortrace/zo-compile.rkt
racket
(module zo-compile racket/base (require "errortrace-lib.rkt") (provide zo-compile) (define zo-compile (let ([orig (current-compile)]) (lambda (stx immediate-eval?) (if (null? (use-compiled-file-paths)) (orig stx immediate-eval?) (orig (errortrace-annotate stx) immediate-eval?))))))
a79065c62f3bf6353e3e0bcc7d68bacccee909ae82ce6a7c4367c386d4853a75
TheLortex/mirage-monorepo
faraday_lwt.mli
open Faraday val serialize : t -> yield : (t -> unit Lwt.t) -> writev : (bigstring iovec list -> [ `Ok of int | `Closed ] Lwt.t) -> unit Lwt.t
null
https://raw.githubusercontent.com/TheLortex/mirage-monorepo/754836818dc5c861bf3b0a78029315a065a543cc/duniverse/faraday/lwt/faraday_lwt.mli
ocaml
open Faraday val serialize : t -> yield : (t -> unit Lwt.t) -> writev : (bigstring iovec list -> [ `Ok of int | `Closed ] Lwt.t) -> unit Lwt.t
3e6751400644a91f844c234aa76d5113611f85306e316205ff2f507e0397e6b0
barrel-db/barrel
common_eqc.erl
@author < > ( C ) 2017 , %%% @doc %%% %%% @end Created : 19 Jul 2017 by < > -module(common_eqc). -include_lib("eqc/include/eqc.hrl"). -compile(export_all). init_db()-> {ok, _} = application:ensure_all_started(barrel), fun delete_db/0. cleanup() -> Dbs = barrel:database_names(), [ok = ...
null
https://raw.githubusercontent.com/barrel-db/barrel/1695ca4cfe821808526f9ecb2e019bc1b8eff48e/eqc/common_eqc.erl
erlang
@doc @end [] = barrel:database_names(),
@author < > ( C ) 2017 , Created : 19 Jul 2017 by < > -module(common_eqc). -include_lib("eqc/include/eqc.hrl"). -compile(export_all). init_db()-> {ok, _} = application:ensure_all_started(barrel), fun delete_db/0. cleanup() -> Dbs = barrel:database_names(), [ok = barrel:delete_database...
6e0112b83299ab72e6d35b7c2becf1b1c047979459a35f59e1310b66c5c9a4fb
folivetti/Category4Programmers
Shape.hs
data Shape = Circle Float | Rect Float Float | Square Float deriving (Show) area :: Shape -> Float area (Circle r) = pi * r * r area (Rect d h) = d * h area (Square s) = s * s circ :: Shape -> Float circ (Circle r) = 2.0 * pi * r circ (Rect d h) = 2.0 * (d + h) circ ( Square s ) = 4.0...
null
https://raw.githubusercontent.com/folivetti/Category4Programmers/b002b7eeeddf272ca94bd2467db535e0ad268176/ADT/Shape.hs
haskell
data Shape = Circle Float | Rect Float Float | Square Float deriving (Show) area :: Shape -> Float area (Circle r) = pi * r * r area (Rect d h) = d * h area (Square s) = s * s circ :: Shape -> Float circ (Circle r) = 2.0 * pi * r circ (Rect d h) = 2.0 * (d + h) circ ( Square s ) = 4.0...
64886ace80c61111f47e2a68c37a9bea32205216089ef52c3a6e520377c7d144
aaronlevin/haskell-shopify
InventoryPolicy.hs
{-# LANGUAGE OverloadedStrings #-} module Network.API.Shopify.Types.InventoryPolicy( InventoryPolicy(..) ) where import Control.Monad (mzero) import qualified Data.Aeson as A import Data.Aeson (FromJSON(parseJSON), ToJSON(toJSON)) data InventoryPolicy = InventoryDeny --...
null
https://raw.githubusercontent.com/aaronlevin/haskell-shopify/79be152dd7ba3a4d0561711ed9ccc4fd996a42ee/src/Network/API/Shopify/Types/InventoryPolicy.hs
haskell
# LANGUAGE OverloadedStrings # ^ (default) Customers are not allowed to place orders for a product variant when it's out of stock. ^ Customers are allowed to place orders for a product variant when it's out of stock.
module Network.API.Shopify.Types.InventoryPolicy( InventoryPolicy(..) ) where import Control.Monad (mzero) import qualified Data.Aeson as A import Data.Aeson (FromJSON(parseJSON), ToJSON(toJSON)) data InventoryPolicy = InventoryDeny | InventoryContinue ...
69bd3be7dd16479535e6487fc0f256ad65ba209007701de8cfe7f38fa59d83be
opennars/Narjure
utils.clj
(ns nal.deriver.utils (:require [clojure.walk :as w])) (defn not-operator? "Checks if element is not operator" [el] (re-matches #"[akxA-Z$]" (-> el str first str))) (def operator? (complement not-operator?)) (defn postwalk-depth1 "Clojure postwalk but with depth 1 only as demanded by NAL4 rules" ([f form] ...
null
https://raw.githubusercontent.com/opennars/Narjure/cd5a72e6777fc47271d721fef8362aa2dad664ca/src/nal/deriver/utils.clj
clojure
(ns nal.deriver.utils (:require [clojure.walk :as w])) (defn not-operator? "Checks if element is not operator" [el] (re-matches #"[akxA-Z$]" (-> el str first str))) (def operator? (complement not-operator?)) (defn postwalk-depth1 "Clojure postwalk but with depth 1 only as demanded by NAL4 rules" ([f form] ...
51737a73b470cb6ca3dee24ed3813f9aacb832d894a134eb062d25dda26b2bdf
PacktWorkshops/The-Clojure-Workshop
weather_data.clj
(def temperature-by-day [18 23 24 23 27 24 22 21 21 20 32 33 30 29 35 28 25 24 28 29 30]) ;;; In REPL (map (fn [today yesterday] (cond (> today yesterday) :warmer (< today yesterday) :colder (= today yesterday) :unchanged)) (rest temperature-by-day) temperature-by-day)
null
https://raw.githubusercontent.com/PacktWorkshops/The-Clojure-Workshop/3d309bb0e46a41ce2c93737870433b47ce0ba6a2/Chapter04/Exercise4.08/weather_data.clj
clojure
In REPL
(def temperature-by-day [18 23 24 23 27 24 22 21 21 20 32 33 30 29 35 28 25 24 28 29 30]) (map (fn [today yesterday] (cond (> today yesterday) :warmer (< today yesterday) :colder (= today yesterday) :unchanged)) (rest temperature-by-day) temperature-by-day)
28e8df905f785ba6abd4b3445dcb20680ef473f756bf9fba62ebf4f18e6ddb0d
nytimes/querqy-clj
protocols.clj
(ns com.nytimes.querqy.protocols (:require [com.nytimes.querqy.context :as context]) (:import (querqy.model ExpandedQuery Query) (querqy.rewrite ContextAwareQueryRewriter RewriteChain RewriterFactory SearchEngineRequestAdapter))) (defprotocol Parser (parse ^Query [this ^String string] "Parse a strin...
null
https://raw.githubusercontent.com/nytimes/querqy-clj/bbffbff21d5fd4ee8cd7b44e18056b389c3f0b5c/src/com/nytimes/querqy/protocols.clj
clojure
---------------------------------------------------------------------- ----------------------------------------------------------------------
(ns com.nytimes.querqy.protocols (:require [com.nytimes.querqy.context :as context]) (:import (querqy.model ExpandedQuery Query) (querqy.rewrite ContextAwareQueryRewriter RewriteChain RewriterFactory SearchEngineRequestAdapter))) (defprotocol Parser (parse ^Query [this ^String string] "Parse a strin...
a678ff32013bff5c15a8936b0675c17537c1ba3d67f13e244978e462742088a5
waxeye-org/waxeye
json.rkt
;; Waxeye Parser Generator ;; www.waxeye.org Copyright ( C ) 2008 - 2010 Orlando Hill Licensed under the MIT license . See ' LICENSE ' for details . (Object "" fail "{}" (Object) "{ 1 }" fail "{ \"s\" }" fail "{ \"m\" : 1 }" (Object (Member (String #\m) (Value (Number #\1)))) "{ \"\":{}, \"\":[]}"...
null
https://raw.githubusercontent.com/waxeye-org/waxeye/723da0475fc0c8e3dd43da46665ef7c62734857b/test/grammars/json.rkt
racket
Waxeye Parser Generator www.waxeye.org
Copyright ( C ) 2008 - 2010 Orlando Hill Licensed under the MIT license . See ' LICENSE ' for details . (Object "" fail "{}" (Object) "{ 1 }" fail "{ \"s\" }" fail "{ \"m\" : 1 }" (Object (Member (String #\m) (Value (Number #\1)))) "{ \"\":{}, \"\":[]}" (Object (Member (String) (Value (Object))) ...
4637bb2d4ea267f6db040cdb85905dc78700fd868afd0b48fadec2a0fcd1ec60
pokepay/aws-sdk-lisp
assume-role.lisp
(defpackage #:aws-sdk/credentials/assume-role (:use #:cl) (:import-from #:aws-sdk/credentials/base #:provider #:retrieve #:make-credentials #:credentials-keys #:provider-expiration) (:import-from #:aws-sdk/session #:*s...
null
https://raw.githubusercontent.com/pokepay/aws-sdk-lisp/7d3d0d2050f98d95aa9bed019fde3e78d9de7cb3/credentials/assume-role.lisp
lisp
(defpackage #:aws-sdk/credentials/assume-role (:use #:cl) (:import-from #:aws-sdk/credentials/base #:provider #:retrieve #:make-credentials #:credentials-keys #:provider-expiration) (:import-from #:aws-sdk/session #:*s...
268b3ccf3dfa3cde1c27b612c2ca1a1b733f7ca2276f7bdbf292b0a69af1c005
freizl/hoauth2
Experiment.hs
# LANGUAGE DataKinds # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE RankNTypes #-} # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # -- | This module contains a new way of doing OAuth2 authorization and authentication -- in order to obtain Acces...
null
https://raw.githubusercontent.com/freizl/hoauth2/8610da5ec2565e5d70c590fbde8689c6af025b78/hoauth2/src/Network/OAuth2/Experiment.hs
haskell
# LANGUAGE RankNTypes # | This module contains a new way of doing OAuth2 authorization and authentication in order to obtain Access Token and maybe Refresh Token base on rfc6749. Each work flow will have slight different request parameters, which often time you'll see Here are supported flows then exchange the...
# LANGUAGE DataKinds # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # This module will become default in future release . ( TBD but likely 3.0 ) . The key concept / change is to introduce the ' GrantTypeFlo...
21c7fa622a09071982f57e7327eb742eaaf2dd85c600a289adce7c0be714bf40
chaoxu/fancy-walks
36.hs
import Data.List getFactor n = (\r -> if r == [] then 0 else head r) $ dropWhile (\r -> n `rem` r > 0) $ takeWhile (\r -> r * r <= n) [2..] primeFactors n = if p == 0 then [n] else (primeFactors p) ++ (primeFactors $ n `div` p) where p = getFactor n prime_factors_mult = map (\r -> (head r, length r)...
null
https://raw.githubusercontent.com/chaoxu/fancy-walks/952fcc345883181144131f839aa61e36f488998d/haskell.org/99_Problems/36.hs
haskell
import Data.List getFactor n = (\r -> if r == [] then 0 else head r) $ dropWhile (\r -> n `rem` r > 0) $ takeWhile (\r -> r * r <= n) [2..] primeFactors n = if p == 0 then [n] else (primeFactors p) ++ (primeFactors $ n `div` p) where p = getFactor n prime_factors_mult = map (\r -> (head r, length r)...
ab9c6c7ccf13ce2030d6f944347610523d9a07d591e1b11b5a1c676ade5807b0
mhuebert/maria
bottom_bar.cljs
(ns maria.views.bottom-bar (:require [chia.view :as v] [chia.db :as d] [maria.live.ns-utils :as ns-utils] [maria.util :as util])) (defn ShowVar [{:keys [name display-name display-namespace arglists meta doc] :as the-var}] (when the-var [:.ph3.pv2.flex.items-center [:.gr...
null
https://raw.githubusercontent.com/mhuebert/maria/15586564796bc9273ace3101b21662d0c66b4d22/editor/src/maria/views/bottom_bar.cljs
clojure
(ns maria.views.bottom-bar (:require [chia.view :as v] [chia.db :as d] [maria.live.ns-utils :as ns-utils] [maria.util :as util])) (defn ShowVar [{:keys [name display-name display-namespace arglists meta doc] :as the-var}] (when the-var [:.ph3.pv2.flex.items-center [:.gr...
7a6f4829c3e7c643eee1ba01ac8c9e8459b000fc2af7748b6463b00e93c0808f
ExtremaIS/ttc-haskell
Username.hs
------------------------------------------------------------------------------ -- | -- Module : Username -- Description : username data type Copyright : Copyright ( c ) 2019 - 2022 License : MIT -- This module defines a username data type , with ' TTC.Render ' and ' ' instances , as an example o...
null
https://raw.githubusercontent.com/ExtremaIS/ttc-haskell/283ca48904f7e94905cc5b2f59abf9bad75a3bff/examples/lift/Username.hs
haskell
---------------------------------------------------------------------------- | Module : Username Description : username data type The constructor for 'Username' is not exported. The 'TTC.Parse' instance serves as a "smart constructor," ensuring that all values are valid. This version of the module provid...
Copyright : Copyright ( c ) 2019 - 2022 License : MIT This module defines a username data type , with ' TTC.Render ' and ' ' instances , as an example of TTC usage . instance until version @text-1.2.4.0@. The ' Username ' data type derives ' THS.Lift ' , using the @DeriveLift@ resulting ' Strin...
3006679b9be33fe863042c7a0627321a1e33b62a9dbfb2217931774761ec5bbe
Clozure/ccl-tests
pathname-device.lsp
;-*- Mode: Lisp -*- Author : Created : Sat Dec 6 14:23:54 2003 ;;;; Contains: Tests for PATHNAME-DEVICE (in-package :cl-test) (compile-and-load "pathnames-aux.lsp") (deftest pathname-device.1 (loop for p in *pathnames* for device = (pathname-device p) unless (or (stringp device) (member dev...
null
https://raw.githubusercontent.com/Clozure/ccl-tests/0478abddb34dbc16487a1975560d8d073a988060/ansi-tests/pathname-device.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests for PATHNAME-DEVICE section 19.3.2.1
Author : Created : Sat Dec 6 14:23:54 2003 (in-package :cl-test) (compile-and-load "pathnames-aux.lsp") (deftest pathname-device.1 (loop for p in *pathnames* for device = (pathname-device p) unless (or (stringp device) (member device '(nil :wild :unspecific))) collect (list p device)) nil) ...
7f3b4d9c4374791c525d2ce3c6de5b95aa1b8bcf407752a6e40622b0015532b4
thelema/ocaml-community
printtyped.mli
(***********************************************************************) (* *) (* OCaml *) (* *) , projet...
null
https://raw.githubusercontent.com/thelema/ocaml-community/ed0a2424bbf13d1b33292725e089f0d7ba94b540/typing/printtyped.mli
ocaml
********************************************************************* OCaml ...
, projet Para , INRIA Rocquencourt Copyright 1999 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 Typedtree;; open Format;; val inter...
05344382b2db6cc16e87962116056ac5bd24ada2783a9d3fe9bcc70f3f7771ca
HachiSecurity/plc-llvm
Main.hs
module Main ( main ) where ------------------------------------------------------------------------------- import Hachi.Compiler ( compile ) import Hachi.Compiler.Config ( parseCmdLineArgs ) ------------------------------------------------------------------------------- -- | `main` is the main entry point for this...
null
https://raw.githubusercontent.com/HachiSecurity/plc-llvm/c99c8d58ec7cbbb8942604338cfde00ad23e7f13/compiler/app/Main.hs
haskell
----------------------------------------------------------------------------- ----------------------------------------------------------------------------- | `main` is the main entry point for this application. -----------------------------------------------------------------------------
module Main ( main ) where import Hachi.Compiler ( compile ) import Hachi.Compiler.Config ( parseCmdLineArgs ) main :: IO () main = do args <- parseCmdLineArgs compile args
4d3841a98dbd763a4252a300fe3ff71b38c6da4e2c57de6629c37b43b8b16686
tfausak/factory
Factory.hs
| This is the main entry point for our API . It does n't have anything to do with Servant per se . It 's mostly just Warp and WAI . This is the main entry point for our API. It doesn't have anything to do with Servant per se. It's mostly just Warp and WAI. -} module Factory where import qualifi...
null
https://raw.githubusercontent.com/tfausak/factory/27025465dc0045d43d8db1769bcc665fb55ee62e/library/Factory.hs
haskell
| Launch the web server. Use Ctrl-C to stop it.
| This is the main entry point for our API . It does n't have anything to do with Servant per se . It 's mostly just Warp and WAI . This is the main entry point for our API. It doesn't have anything to do with Servant per se. It's mostly just Warp and WAI. -} module Factory where import qualifi...
b306ab6d1add039dba8fb59404a81210f0fb267a5f8bd4d3d07d573a7491c349
SimonJF/monitored-session-erlang
monitor_tests.erl
-module(monitor_tests). -include_lib("eunit/include/eunit.hrl"). -define(SPEC_DIRECTORY, "scribble_specs/"). % Simple sending and receiving. These three tests check that both projections of the same protocol work in the expected manner , % sends and receives can only happen where they're meant to, and that both pro...
null
https://raw.githubusercontent.com/SimonJF/monitored-session-erlang/5ec76f327d3d2da4050d4c5a468ac343207f4521/tests/monitor/monitor_tests.erl
erlang
Simple sending and receiving. sends and receives can only happen where they're meant to, and that both protocols are marked as ended at the end. Choice. Need to check: * On a choice block, are both choices possible? * Do choice blocks converge properly at the end? * Do nested choice blocks work? Role1 -> Ro...
-module(monitor_tests). -include_lib("eunit/include/eunit.hrl"). -define(SPEC_DIRECTORY, "scribble_specs/"). These three tests check that both projections of the same protocol work in the expected manner , simple_send_recv_role1_test() -> Filename = ?SPEC_DIRECTORY ++ "RequestResponse_Role1.scr", ProtocolName =...
59c4c6fb59ec59e74dfaf20e10031f0312aebe985ee615da26056f9b91ea5f14
kraison/vivace-graph-v3
replication.lisp
(in-package :graph-db)
null
https://raw.githubusercontent.com/kraison/vivace-graph-v3/cf2caaf26baccec9afd4d6a79375cd9ff5fe0613/replication.lisp
lisp
(in-package :graph-db)
4734dd02252c3d3d4d7737f564074c58accae438d3a3aff4f148fc571c6ed2d5
dvingo/my-clj-utils
spec_util.cljs
(ns dv.spec-util (:require-macros [dv.spec-util :as su])) (def global-keys (su/get-global-keys))
null
https://raw.githubusercontent.com/dvingo/my-clj-utils/cccfe6419c088f9089836b6d9f2572dbf9d66a8a/src/main/dv/spec_util.cljs
clojure
(ns dv.spec-util (:require-macros [dv.spec-util :as su])) (def global-keys (su/get-global-keys))
b925791663d41b69cba85b5dfb8b77c304b1572ea35bcd046fce99a88b3f4a7f
juxt-site/site
remove_packages.clj
Copyright © 2023 , JUXT LTD . (ns remove-packages (:require [rewrite-clj.node :as n] [rewrite-clj.zip :as z] [clojure.string :as str] [clojure.java.io :as io] [clojure.pprint :refer [pprint]] [jsonista.core :as json] [clojure.walk :refer [postwalk]] [juxt.site.test-helpers.install :as pkg] ...
null
https://raw.githubusercontent.com/juxt-site/site/80803bf51b9dd5a9e571da866e69d0453f666727/dev/remove_packages.clj
clojure
(save-resource-groups)
Copyright © 2023 , JUXT LTD . (ns remove-packages (:require [rewrite-clj.node :as n] [rewrite-clj.zip :as z] [clojure.string :as str] [clojure.java.io :as io] [clojure.pprint :refer [pprint]] [jsonista.core :as json] [clojure.walk :refer [postwalk]] [juxt.site.test-helpers.install :as pkg] ...
e62bc9d7261adced2aec113a98676e21c0aed0be9d8f4f39fb4911537475cbb7
sysbio-bioinf/avatar
progress_tracker.clj
Copyright ( c ) . All rights reserved . ; The use and distribution terms for this software are covered by the Eclipse Public License 2.0 ( -v20.html ) ; which can be found in the file LICENSE at the root of this distribution. ; By using this software in any fashion, you are agreeing to be bound by ; the terms of ...
null
https://raw.githubusercontent.com/sysbio-bioinf/avatar/cbf9968485f96fb61725aaa7381dba53624d6189/src/clojure/avatar/algorithms/progress_tracker.clj
clojure
The use and distribution terms for this software are covered by the which can be found in the file LICENSE 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. done?
Copyright ( c ) . All rights reserved . Eclipse Public License 2.0 ( -v20.html ) (ns avatar.algorithms.progress-tracker (:refer-clojure :exclude [update]) (:require [avatar.util :as u])) (defprotocol ProgressTracker (start [this]) (update [this] [this, completed-steps]) (finished [this])) (def...
cde795ae6aa1d3cffe84e7ed4b27f6894d35c709300ccff5f7ef2a2aff2da213
csg-tokyo/typelevelLR
TellChain.hs
# LANGUAGE FlexibleContexts # module TellChain where import qualified Syntax as S import qualified Data.Map as Map import Control.Monad.State import Control.Monad.Writer import Utility ------------------------------------------------------------------------------- newtype TellChainEnv = TellChainEnv (Map.Map Strin...
null
https://raw.githubusercontent.com/csg-tokyo/typelevelLR/ca5853890fac7fb819a026f0fd15d8b43f7c8470/experiment/TellChain.hs
haskell
----------------------------------------------------------------------------- ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- --------...
# LANGUAGE FlexibleContexts # module TellChain where import qualified Syntax as S import qualified Data.Map as Map import Control.Monad.State import Control.Monad.Writer import Utility newtype TellChainEnv = TellChainEnv (Map.Map String [String]) tellChainEnvLookup :: (MonadState TellChainEnv m) => String -> m St...
df51f18fba4dd4a17541c26023029f24d8252d7b9d6528110f45eeeea400fd25
input-output-hk/hydra
Validator.hs
# LANGUAGE NumericUnderscores # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeApplications # # LANGUAGE ViewPatterns # | A helper module mostly wrapping the Alonzo . Tools ' -- 'evaluateTransactionExecutionUnits' with a much simpler API (just a plutus -- script). -- This is generally handy to measure the execu...
null
https://raw.githubusercontent.com/input-output-hk/hydra/a377fb1cc4881627908c25357bc9bc19a824984e/hydra-test-utils/src/Test/Plutus/Validator.hs
haskell
# LANGUAGE OverloadedStrings # 'evaluateTransactionExecutionUnits' with a much simpler API (just a plutus script). context (e.g. an implementation of a data-structure on-chain or, as here, data encoders). REVIEW: There might be better ways to name this than "wrap" We can use unsafeFromBuiltinData here as we woul...
# LANGUAGE NumericUnderscores # # LANGUAGE TypeApplications # # LANGUAGE ViewPatterns # | A helper module mostly wrapping the Alonzo . Tools ' This is generally handy to measure the execution of code outside of any module Test.Plutus.Validator ( module Test.Plutus.Validator, ExUnits (..), ) where import Hydr...
af10fd7e2a8618af576420ce04dfefde2e3c6a3195f3c1d54cef8b4c660e6406
fogfish/datum
typecast.erl
%% Copyright ( c ) 2016 , %% All Rights Reserved. %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicable law or agreed t...
null
https://raw.githubusercontent.com/fogfish/datum/f5e8f0b5deb8b74d6febe046333dbb4f38b086d8/src/typecast.erl
erlang
All Rights Reserved. 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...
Copyright ( c ) 2016 , Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(typecast). -export([ i/1, f/1, s/1, ls/1, c/1, lc/1, a/1, atom/1, x/1, t/1 ]). -define(TBASE, 1...
0cf4e17dc3a5b6c80cd58cf9897301271a1d92d793edfd46e43b6406b240f9e0
haskell-tools/haskell-tools
RecordWildCardsChecker.hs
module Language.Haskell.Tools.Refactor.Builtin.ExtensionOrganizer.Checkers.RecordWildCardsChecker where import Language.Haskell.Tools.Refactor import Language.Haskell.Tools.Refactor.Builtin.ExtensionOrganizer.ExtMonad NOTE : Here we implicitly constrained the type with ExtDomain . -- but we don't really need ...
null
https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/builtin-refactorings/Language/Haskell/Tools/Refactor/Builtin/ExtensionOrganizer/Checkers/RecordWildCardsChecker.hs
haskell
but we don't really need any contraint.
module Language.Haskell.Tools.Refactor.Builtin.ExtensionOrganizer.Checkers.RecordWildCardsChecker where import Language.Haskell.Tools.Refactor import Language.Haskell.Tools.Refactor.Builtin.ExtensionOrganizer.ExtMonad NOTE : Here we implicitly constrained the type with ExtDomain . chkRecordWildCardsPatField :: Che...
d2c95ecd4a58b62bed3ee186b513b55e97cf174901a1d05bad45b797eb3388ce
ddmcdonald/sparser
other-defs-from-reach.lisp
(in-package :sparser) (def-indiv-with-id molecule "withanolide D" "PUBCHEM:161671") ;(def-indiv-with-id molecule "voltage" "PUBCHEM:93460") ;(def-indiv-with-id molecule "vitamin K3" "PUBCHEM:4055") (def-indiv-with-id molecule "vinorelbine tartrate" "PUBCHEM:53262279") (def-indiv-with-id molecule "vanillic acid" "...
null
https://raw.githubusercontent.com/ddmcdonald/sparser/4bb59f0989152f059f7b008ca4bfd89501bae04c/Sparser/code/s/grammar/model/sl/biology/other-defs-from-reach.lisp
lisp
(def-indiv-with-id molecule "voltage" "PUBCHEM:93460") (def-indiv-with-id molecule "vitamin K3" "PUBCHEM:4055") si4+ (def-indiv-with-id cellular-process "signal transduction" "GO:0007165") (def-indiv-with-id molecule "salicylic acid" "PUBCHEM:338") (def-indiv-with-id molecule "procaine" "PUBCHEM:4914") (def-indiv...
(in-package :sparser) (def-indiv-with-id molecule "withanolide D" "PUBCHEM:161671") (def-indiv-with-id molecule "vinorelbine tartrate" "PUBCHEM:53262279") (def-indiv-with-id molecule "vanillic acid" "PUBCHEM:8468") (def-indiv-with-id molecule "uridine diphosphate N-acetylglucosamine" "PUBCHEM:445675") (def-indiv-...
45c8135c4c7a39639a2f62d63ade861777d5d087bf9e9b1c4da48993ba76fea9
backtracking/mlpost
tfm.ml
(**************************************************************************) (* *) Copyright ( C ) Johannes Kanig , , and (* *) (* This software is f...
null
https://raw.githubusercontent.com/backtracking/mlpost/bd4305289fd64d531b9f42d64dd641d72ab82fd5/src/tfm.ml
ocaml
************************************************************************ This software is free software; you can redistribute it and/or described in file LICENSE....
Copyright ( C ) Johannes Kanig , , and modify it under the terms of the GNU Library General Public License version 2.1 , with the special exception on linking open Format type file_hdr = { lf : int; lh : int; bc : int; ec : int; nw : int; nh : int; ...
5fdeed17b0e449fb4d3c1f0b922c9dad8f9dd0bce268e390bfd523b6aa571625
witan-org/witan
interval.mli
(*************************************************************************) This file is part of Witan . (* *) Copyright ( C ) 2017 CEA ( Commi...
null
https://raw.githubusercontent.com/witan-org/witan/d26f9f810fc34bf44daccb91f71ad3258eb62037/src/theories/LRA/interval.mli
ocaml
*********************************************************************** alternatives) Automatique) ...
This file is part of Witan . Copyright ( C ) 2017 CEA ( Commissariat à l'énergie atomique et aux énergies ( Institut National de Recherche en Informatique et en CNRS ( Centre nation...
0b81ab5baf4d0d65830d134bc82cdfb15fa9cc08a5d44c83c53157db36bf8e96
privet-kitty/cl-competitive
floor-sum.lisp
(defpackage :cp/floor-sum (:use :cl) (:export #:floor-sum) (:documentation "Reference: -library/blob/master/atcoder/math.hpp")) (in-package :cp/floor-sum) (defun floor-sum (n slope intercept denom) "Returns the sum of floor((slope * i + intercept)/denom) for i = 0, 1, ..., N-1." (declare ((integer 0) slop...
null
https://raw.githubusercontent.com/privet-kitty/cl-competitive/4d1c601ff42b10773a5d0c5989b1234da5bb98b6/module/floor-sum.lisp
lisp
(defpackage :cp/floor-sum (:use :cl) (:export #:floor-sum) (:documentation "Reference: -library/blob/master/atcoder/math.hpp")) (in-package :cp/floor-sum) (defun floor-sum (n slope intercept denom) "Returns the sum of floor((slope * i + intercept)/denom) for i = 0, 1, ..., N-1." (declare ((integer 0) slop...
56413b1ec8ea99b8ee0fdc04ccfaac3c58af6935553f5bef6abfdd4a9a42b2ed
finkel-lang/finkel
MainTest.hs
;;; -*- mode: finkel -*- ;;; Tests for main function (:require Finkel.Core) (defmodule MainTest (export mainTests) (import-when [:compile] (Finkel.Prelude)) (import ;; base (Control.Concurrent [forkIO killThread threadDelay]) (Control.Exception [bracket]) (Control.Monad.IO.Class [(MonadIO ..)]) ...
null
https://raw.githubusercontent.com/finkel-lang/finkel/74ce4bb779805ad2b141098e29c633523318fa3e/finkel-tool/test/MainTest.hs
haskell
help\" in help message"
;;; -*- mode: finkel -*- ;;; Tests for main function (:require Finkel.Core) (defmodule MainTest (export mainTests) (import-when [:compile] (Finkel.Prelude)) (import ;; base (Control.Concurrent [forkIO killThread threadDelay]) (Control.Exception [bracket]) (Control.Monad.IO.Class [(MonadIO ..)]) ...
a90b2cd853c489fa3c393db9f484ce53e93a533db8f11e059cc70b7b4865d1fc
hlian/linklater
SummonPainting.hs
# LANGUAGE ScopedTypeVariables # # LANGUAGE FlexibleContexts # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE NoImplicitPrelude # # LANGUAGE QuasiQuotes # # LANGUAGE RecordWildCards # module Toys.SummonPainting (summon) where import BasePrelude hiding ((&), putStrLn, lazy, words, intercalate) import ...
null
https://raw.githubusercontent.com/hlian/linklater/175eca882070b7d8a731bc825263956342686d65/examples/app/Toys/SummonPainting.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE ScopedTypeVariables # # LANGUAGE FlexibleContexts # # LANGUAGE NoImplicitPrelude # # LANGUAGE QuasiQuotes # # LANGUAGE RecordWildCards # module Toys.SummonPainting (summon) where import BasePrelude hiding ((&), putStrLn, lazy, words, intercalate) import Control.Lens hiding ((.=), re) im...
671f8e62dc904370ff72903d75a23b6ba10dcb8408b36b50508b5dcfe2aa4d87
IxpertaSolutions/freer-effects
Cut.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE NoImplicitPrelude # # LANGUAGE TypeOperators # -- | Module : Control . . Freer . Cut -- Description: An implementation of logical Cut. Copyright : ( c ) 2016 Allele Dev ; 2017 Ixperta Solutions s.r.o . -- License: BSD3 -- Maintainer: ...
null
https://raw.githubusercontent.com/IxpertaSolutions/freer-effects/39a7e62cc049d43d36ece4ac24ba19e545f0b726/src/Control/Monad/Freer/Cut.hs
haskell
| Description: An implementation of logical Cut. License: BSD3 Maintainer: Stability: broken effect. Using <> as a starting point. , call data Choose a b = Choose [a] b ( C2 ) drop jq ( F2 ) ( C1 ) ( C3 ) , ( C3 ) ( C4 ) (C2) drop jq (F2) (C1) (C3), optim (C3) (C4)
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE NoImplicitPrelude # # LANGUAGE TypeOperators # Module : Control . . Freer . Cut Copyright : ( c ) 2016 Allele Dev ; 2017 Ixperta Solutions s.r.o . Portability : GHC specific language extensions . Composable handler for logical Cut eff...
a3c703caf82c2179444b4a1e0e41b11aca3fafafca78c22ffdaf65b05387d664
ssor/erlangDemos
json_test.erl
-module(json_test). -compile(export_all). 40 > J = " { \"name\":\"zhang\",\"age\":23 } " . % "{\"name\":\"zhang\",\"age\":23}" 41 > O = rfc4627 : decode(J ) . % {ok,{obj,[{"name",<<"zhang">>},{"age",23}]},[]} 42 > { ok,{obj , List } , _ } % {ok,{obj,[{"name",<<"zhang">>},{"age",23}]},[]} 43 > List . % [{"nam...
null
https://raw.githubusercontent.com/ssor/erlangDemos/632cd905be2c4f275f1c1ae15238e711d7bb9147/demos/unit_demo/json_test.erl
erlang
"{\"name\":\"zhang\",\"age\":23}" {ok,{obj,[{"name",<<"zhang">>},{"age",23}]},[]} {ok,{obj,[{"name",<<"zhang">>},{"age",23}]},[]} [{"name",<<"zhang">>},{"age",23}] "{\"name\":\"hideto\",\"age\":23}"
-module(json_test). -compile(export_all). 40 > J = " { \"name\":\"zhang\",\"age\":23 } " . 41 > O = rfc4627 : decode(J ) . 42 > { ok,{obj , List } , _ } 43 > List . test_all() -> Obj1 = {obj, [{name, hideto}, {age, 23}]}, Json1 = rfc4627:encode(obj1), io:format("object ~p~n encoded ~p~n",[Obj1,Json1]...
9f008190ba969aad616ff65fb5eee6e2d5996e7549a1dc1cb54c4d32b80fd47e
tweag/ormolu
operator-sections-out.hs
foo = (0 +) bar = (<> "hello") baz = ( 1 * 2 + ) ( * 3 ^ 5 ) quux = (,) <$> foo <$> bar
null
https://raw.githubusercontent.com/tweag/ormolu/34bdf62429768f24b70d0f8ba7730fc4d8ae73ba/data/examples/declaration/value/function/operator-sections-out.hs
haskell
foo = (0 +) bar = (<> "hello") baz = ( 1 * 2 + ) ( * 3 ^ 5 ) quux = (,) <$> foo <$> bar
283096e05f0b931feaa73e4ce3284180baf5dcd79497e0762f68de85ecb169b0
manavpatnaik/haskell
21_logarithm.hs
logarithm :: Int -> Int -> Int logarithm base 1 = 0 logarithm base num | num >= base = 1 + logarithm base (div num base) | otherwise = 0 main = do print(logarithm 2 1024) print(logarithm 10 1000)
null
https://raw.githubusercontent.com/manavpatnaik/haskell/af45c3eb5c3461aa77cf25610dfcb3b41c7f7ef9/basic-programs/21_logarithm.hs
haskell
logarithm :: Int -> Int -> Int logarithm base 1 = 0 logarithm base num | num >= base = 1 + logarithm base (div num base) | otherwise = 0 main = do print(logarithm 2 1024) print(logarithm 10 1000)
36b1925f048603585fb47ec0bae054559953e1f33c1911a613dde705d24c4108
RefactoringTools/HaRe
AuxWindowsF.hs
module AuxWindowsF where import AllFudgets import FudExtras(staticHyperGraphicsF') import ContribFudgets(delayedAuxShellF) import ContribFudgets(menuBarF , subMenuItem , toggleItem , Transl ( .. ) ) auxGfxWindowsF maintitle = auxWindowsF windows where windows = [(tag,gfxDispShellF (show tag))|tag<-[minBound..ma...
null
https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/old/tools/pfe/Browser/AuxWindowsF.hs
haskell
loopThroughRightF auxWindowsMenuF >=^< pre pre (w,Left b) = (w,Left b) pre (w,Right i) = (w,Right i) why not this ? why not this?
module AuxWindowsF where import AllFudgets import FudExtras(staticHyperGraphicsF') import ContribFudgets(delayedAuxShellF) import ContribFudgets(menuBarF , subMenuItem , toggleItem , Transl ( .. ) ) auxGfxWindowsF maintitle = auxWindowsF windows where windows = [(tag,gfxDispShellF (show tag))|tag<-[minBound..ma...
b902e70a1f5d7348da4d911a03c5255a87a5bbd5add9f82c3ce13f5f6d51e57c
gethop-dev/payments.stripe
subscription_test.clj
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 / (ns dev.gethop.payments.stripe.subscription-test (:require [clojure.test :refer :all] [dev.gethop.payments.core :as core] ...
null
https://raw.githubusercontent.com/gethop-dev/payments.stripe/2379ba790123d7380ffc397cf4920cbe2936f840/test/dev/gethop/payments/stripe/subscription_test.clj
clojure
file, You can obtain one at / TODO: do a proper update for subscriptions (passing valid properties to update)
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 (ns dev.gethop.payments.stripe.subscription-test (:require [clojure.test :refer :all] [dev.gethop.payments.core :as core] [dev.gethop.payments.stripe] ...
bf1c956d52ea02445dc88c1fc515fb69f5d0ac63c7fadc747a8eb5156186f555
soegaard/pyffi
python-module.rkt
#lang racket/base (provide module? module-name module-pydict module-pydict-as-hash module-hash-ref module-submodules module-functions module-functions-with-signature) (require "structs.rkt" "python-c-api.rkt" "python-environment.rkt" ...
null
https://raw.githubusercontent.com/soegaard/pyffi/8d03a48b636d5a8b74e94f45ef0a4e7220cb4a08/pyffi-lib/pyffi/python-module.rkt
racket
get the name of the module as a string get the `dict` (namespace) of the module get the `dict` (namespace) of the module
#lang racket/base (provide module? module-name module-pydict module-pydict-as-hash module-hash-ref module-submodules module-functions module-functions-with-signature) (require "structs.rkt" "python-c-api.rkt" "python-environment.rkt" ...
9a0070664a1d1ebca5e5bbe669d7c9ee8a025fc7a897fe977c9bb44ab391fcb9
spechub/Hets
OMSOrigin.hs
# LANGUAGE TemplateHaskell # module Persistence.Schema.OMSOrigin where import Data.List (isPrefixOf) import Database.Persist.TH data OMSOrigin = DGEmpty | DGBasic | DGBasicSpec | DGExtension | DGLogicCoercion | DGTranslation | D...
null
https://raw.githubusercontent.com/spechub/Hets/af7b628a75aab0d510b8ae7f067a5c9bc48d0f9e/Persistence/Schema/OMSOrigin.hs
haskell
From DGFreeOrCofree From DGFreeOrCofree From DGFreeOrCofree From DGFreeOrCofree
# LANGUAGE TemplateHaskell # module Persistence.Schema.OMSOrigin where import Data.List (isPrefixOf) import Database.Persist.TH data OMSOrigin = DGEmpty | DGBasic | DGBasicSpec | DGExtension | DGLogicCoercion | DGTranslation | D...
3c7fffda8b35c6e928132061522853561fdd296783e9db52faf37339a79b2df8
huangz1990/SICP-answers
test-37-golden-ratio-using-iter-cont-frac.scm
(load "test-manager/load.scm") (load "37-golden-ratio-using-iter-cont-frac.scm") (define-each-check (>= 0.1 (abs (- 1.6 (golden-ratio 100)))) ) (run-registered-tests)
null
https://raw.githubusercontent.com/huangz1990/SICP-answers/15e3475003ef10eb738cf93c1932277bc56bacbe/chp1/code/test-37-golden-ratio-using-iter-cont-frac.scm
scheme
(load "test-manager/load.scm") (load "37-golden-ratio-using-iter-cont-frac.scm") (define-each-check (>= 0.1 (abs (- 1.6 (golden-ratio 100)))) ) (run-registered-tests)
0567d6c6aca9b37a7682a0b195251988802a935eb1b35b3e9446bd66163e0b95
janegca/htdp2e
Exercise-345-refiningXExpr.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname Exercise-345-refiningXExpr) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t c...
null
https://raw.githubusercontent.com/janegca/htdp2e/2d50378135edc2b8b1816204021f8763f8b2707b/04-Intertwined%20Data/Exercise-345-refiningXExpr.rkt
racket
about the language level of this file in a form that our tools can easily process. Refine the definition of Xexpr.v2 so that an you can represent XML elements that are plain strings. Use this refinement to represent enumerations. An Xexpr.v2 is – (cons Symbol [List-of Xexpr.v2]) – (cons Symbol (cons [List-of A...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname Exercise-345-refiningXExpr) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ()))) Exercise 345 . An is an XExpr...
44fc39eb3feb5937ca07b0cc2349b2789f07f32d7047d45aef7dde094e14534d
odis-labs/helix
Signal.mli
(** Reactive signals. *) type 'a t (** The type for signals that emit values of type ['a]. *) * { 2 Creating signals } val make : 'a -> 'a t (** [make x] is a signal with an initial value [x]. *) val emitter : ?equal:('a -> 'a -> bool) -> init:'a -> (('a -> unit) -> unit) -> 'a t * [ emitter ? equal ~init f ] is ...
null
https://raw.githubusercontent.com/odis-labs/helix/05d59aa6c13621275c31953a3515ee8843508f9e/src/signal/Signal.mli
ocaml
* Reactive signals. * The type for signals that emit values of type ['a]. * [make x] is a signal with an initial value [x]. * [reducer f init] is [(signal, dispatch)], that is, a reducer signal and a dispatch function. The signal starts with the initial accumulator value [init]. Whenever [dispatch] is called...
type 'a t * { 2 Creating signals } val make : 'a -> 'a t val emitter : ?equal:('a -> 'a -> bool) -> init:'a -> (('a -> unit) -> unit) -> 'a t * [ emitter ? equal ~init f ] is a signal with a starting value [ init ] and whose values are emitted by [ f ] . The emitted values will be deduplicated by [ eq...
14cc9400c7264fa68cb33fa0cd871d34dd6dc163ca8e8f37c11f2036c6272b9f
ocaml-attic/mirage-types
v1.mli
* Copyright ( c ) 2011 - 2013 Anil Madhavapeddy < > * Copyright ( c ) 2013 < > * Copyright ( c ) 2013 Citrix Systems Inc * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright...
null
https://raw.githubusercontent.com/ocaml-attic/mirage-types/afce06d6733ce17016d9c00b9425a03fd1f66b2a/lib/v1.mli
ocaml
* Memory allocation interface. * Type of memory blocks. * [get n] allocates and returns a memory block of [n] pages. If there is not enough memory, the unikernel will terminate. * [get_order i] is [get (1 lsl i)]. * [pages n] allocates a memory block of [n] pages and return the the list of pages allocat...
* Copyright ( c ) 2011 - 2013 Anil Madhavapeddy < > * Copyright ( c ) 2013 < > * Copyright ( c ) 2013 Citrix Systems Inc * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright...
d26a32b91531f8110d3d5791b1b9678495d211624b936cb3275d2fe06b00a57f
con-kitty/categorifier-c
Patterns.hs
# LANGUAGE DataKinds # # LANGUAGE PatternSynonyms # # LANGUAGE TypeFamilies # -- | Pattern synonyms for common applications of 'Prim'. module Categorifier.C.Prim.Patterns ( -- * Patterns for @'Prim' 'Proxy'@ (i.e. an enum of primitive types). pattern BoolType, pattern Int8Type, pattern Int16Type, pat...
null
https://raw.githubusercontent.com/con-kitty/categorifier-c/a34ff2603529b4da7ad6ffe681dad095f102d1b9/Categorifier/C/Prim/Patterns.hs
haskell
| Pattern synonyms for common applications of 'Prim'. * Patterns for @'Prim' 'Proxy'@ (i.e. an enum of primitive types).
# LANGUAGE DataKinds # # LANGUAGE PatternSynonyms # # LANGUAGE TypeFamilies # module Categorifier.C.Prim.Patterns pattern BoolType, pattern Int8Type, pattern Int16Type, pattern Int32Type, pattern Int64Type, pattern Word8Type, pattern Word16Type, pattern Word32Type, pattern Word64Typ...
a92420736b3cf4946c513fd1d39a9e7e35115e7792c4040f7777153797c3e2df
dbuenzli/brr
todomvc.ml
--------------------------------------------------------------------------- Copyright ( c ) 2018 The brr programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 2...
null
https://raw.githubusercontent.com/dbuenzli/brr/655a3d6686d7e551fead2f1aa80e25b416a35752/test/todomvc.ml
ocaml
Persisting FIXME make that versioned (like the old Brr_note_legacy.Store) and easier. Rendering & interaction Would maybe be better to do this via CSS classes
--------------------------------------------------------------------------- Copyright ( c ) 2018 The brr programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 2...
9f98213c1f063a3edbb6e9ee80518a46f3e6c8fe17213b055132963a880bc9ed
ecraven/r7rs-benchmarks
Sagittarius-postlude.scm
;; (use extras) ;; for read-line ;; (use vector-lib) ;; for vector-map ;; (define flush-output-port flush-output) ;; (define-syntax import ;; (syntax-rules () ;; ((import stuff ...) ;; (begin) ;; do nothing ;; ))) ;; (define current-jiffy current-milliseconds) ( define ( jiffies - per - second ) 1 ) ...
null
https://raw.githubusercontent.com/ecraven/r7rs-benchmarks/cd6ea87a6fa7d20424449b5d08dcd5bf990f26e4/src/Sagittarius-postlude.scm
scheme
(use extras) ;; for read-line (use vector-lib) ;; for vector-map (define flush-output-port flush-output) (define-syntax import (syntax-rules () ((import stuff ...) (begin) ;; do nothing ))) (define current-jiffy current-milliseconds) (define inexact exact->inexact) (define exact inexact->exac...
( define ( jiffies - per - second ) 1 ) ( define current - second current - seconds ) (import (srfi :112)) (define (this-scheme-implementation-name) (string-append "sagittarius-" (implementation-version)))
4f3c8b5a304b41c7d35a814ae6fac55e07e5818bdb7b80bdaeea80f1ba47586a
jaspervdj/number-six
Util.hs
-- | Utility functions {-# LANGUAGE OverloadedStrings #-} module NumberSix.Util ( sleep , forkIrc , (<>) , (==?) , toLower , breakWord , prettyList , removeNewlines , randomElement , parseJsonEither , readText , maxLineLength ) where --------------------------------...
null
https://raw.githubusercontent.com/jaspervdj/number-six/1aba681786bd85bd20f79406c681ea581b982cd6/src/NumberSix/Util.hs
haskell
| Utility functions # LANGUAGE OverloadedStrings # ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ | Sleep a while. ^ Number of ...
module NumberSix.Util ( sleep , forkIrc , (<>) , (==?) , toLower , breakWord , prettyList , removeNewlines , randomElement , parseJsonEither , readText , maxLineLength ) where import Control.Arrow (second) import Control.Concurrent (fork...
432d34a7ab6b0e640073e50f2bf26fe64276e4c3e653461e6adc3c3e5d3ea2cf
glguy/advent
01.hs
{-# Language QuasiQuotes #-} | Module : Main Description : Day 1 solution Copyright : ( c ) , 2017 License : ISC Maintainer : < > Module : Main Description : Day 1 solution Copyright : (c) Eric Mertens, 2017 License : ISC Maintainer : <> -} module Main (main) where im...
null
https://raw.githubusercontent.com/glguy/advent/7ab9f9e47208fd5720e36bac33fee2b78d4ec50b/solutions/src/2017/01.hs
haskell
# Language QuasiQuotes # | Print the solution to day 1. Input file can be overridden via the command-line. >>> parseInput "1234\n" [1,2,3,4] | Compute checksum matching against next neighbor. >>> part1 [1,2,3,4] >>> part1 [9,1,2,1,2,1,2,9] | Compute checksum matching against furthest neighbor. >>> part2 [1,...
| Module : Main Description : Day 1 solution Copyright : ( c ) , 2017 License : ISC Maintainer : < > Module : Main Description : Day 1 solution Copyright : (c) Eric Mertens, 2017 License : ISC Maintainer : <> -} module Main (main) where import Advent (format) import D...
773f7b07a050e47d35efc45edf4c67b395a0dfa8e02204d656fe14e5c8490c07
manuel-serrano/hop
allocate_names.scm
;*=====================================================================*/ * serrano / prgm / project / hop/2.5.x / scheme2js / allocate_names.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation : ...
null
https://raw.githubusercontent.com/manuel-serrano/hop/481cb10478286796addd2ec9ee29c95db27aa390/scheme2js/allocate_names.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * Set variables name */ *===========================...
* serrano / prgm / project / hop/2.5.x / scheme2js / allocate_names.scm * / * Author : * / * Creation : 2007 - 13 * / * Last change : Tue Aug 6 12:13:19 2013 ( serrano ) * / * Copy...
73edde23a900b7e5077f4e60c5ea7c64ac2a3c7a646a5c9dc07e989f6ae585f9
alt-romes/slfl
final-1-4.hs
# 0 / 1 synth goal :: !(!A -o !B) -o !(!B -o !C) -o !(!A -o C)
null
https://raw.githubusercontent.com/alt-romes/slfl/4956fcce8ff2ca7622799fe0715c118b568b74eb/STLLC/bench/final-1-4.hs
haskell
# 0 / 1 synth goal :: !(!A -o !B) -o !(!B -o !C) -o !(!A -o C)
51bdcf2afd3b70407d6ce2fc2fe0306bf3855233fbbcaee99b04638f27eb60d3
asr/apia
Name.hs
------------------------------------------------------------------------------ -- Handling of Agda abstract names ------------------------------------------------------------------------------ # LANGUAGE UnicodeSyntax # module AgdaLib.Syntax.Abstract.Name ( dropLastNameModuleName , moduleNameToFilePath ) ...
null
https://raw.githubusercontent.com/asr/apia/a66c5ddca2ab470539fd68c42c4fbd45f720d682/old/AgdaLib/Syntax/Abstract/Name.hs
haskell
---------------------------------------------------------------------------- Handling of Agda abstract names ---------------------------------------------------------------------------- Haskell imports ----------------------------------------------------------------------------
# LANGUAGE UnicodeSyntax # module AgdaLib.Syntax.Abstract.Name ( dropLastNameModuleName , moduleNameToFilePath ) where import Data.List ( intercalate ) Agda library imports import Agda.Syntax.Abstract.Name ( ModuleName(MName) , mnameToList ) Adapted from ' instance Show ModuleName ' in ...
9bcec4452c27c5305494d844db1d11f67211b68ad4c0c7ad7c324d12755af743
cdsmith/HMock
TH.hs
{-# LANGUAGE GADTs #-} # LANGUAGE LambdaCase # # LANGUAGE TemplateHaskell # module TH where import Control.Monad.Trans (liftIO) import Language.Haskell.TH import QuasiMock import Test.HMock import Test.HMock.Internal.TH (resolveInstance, unifyTypes) import Test.Hspec import Test.Predicates (anything, eq) data NotSho...
null
https://raw.githubusercontent.com/cdsmith/HMock/e49cf063db17a60a3509a82035c18fff3ce31274/test/TH.hs
haskell
# LANGUAGE GADTs #
# LANGUAGE LambdaCase # # LANGUAGE TemplateHaskell # module TH where import Control.Monad.Trans (liftIO) import Language.Haskell.TH import QuasiMock import Test.HMock import Test.HMock.Internal.TH (resolveInstance, unifyTypes) import Test.Hspec import Test.Predicates (anything, eq) data NotShowable class NoInstance...
a252fc13949a5ca086b26f2b511ca8c0395dd0cae493b2155dd473ebff2d2b62
erlang/otp
timer_simple_SUITE.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1997 - 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/fcb6abc96710b6bde88a6320ad44a2fd33c23d47/lib/stdlib/test/timer_simple_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 l...
Copyright Ericsson AB 1997 - 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(timer_simple_SUITE). This test suite matches on opaque ( ) return values from the * _ after -export([al...
0377dc3381a2c12970e492f973649e6f40942f840cfe32bf9a65afb1194e6886
bhauman/figwheel-template
core.cljs
(ns {{name}}.core (:require {{#react?}}[react] [react-dom] [sablono.core :as sab :include-macros true]{{/react?}}{{#reagent?}} [reagent.core :as reagent :refer [atom]] [reagent.dom :as rd]{{/reagent?}}{{#rum?}}[rum.core :as rum]{{/rum?}})) (enable-console-pri...
null
https://raw.githubusercontent.com/bhauman/figwheel-template/67f22f5a3515265b2ee5310ccabf05950000fdeb/src/leiningen/new/figwheel/core.cljs
clojure
define your app data so that it doesn't get over-written on reload optionally touch your app-state to force rerendering depending on your application (swap! app-state update-in [:__figwheel_counter] inc)
(ns {{name}}.core (:require {{#react?}}[react] [react-dom] [sablono.core :as sab :include-macros true]{{/react?}}{{#reagent?}} [reagent.core :as reagent :refer [atom]] [reagent.dom :as rd]{{/reagent?}}{{#rum?}}[rum.core :as rum]{{/rum?}})) (enable-console-pri...
9c2b726a87447ca12ffe92fe5862023728e90a46922179667b10ee66c7db9ad6
jgm/unicode-collation
Normalize.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE TemplateHaskell # {-# LANGUAGE OverloadedStrings #-} -- | We define our own normalization function instead of depending on -- unicode-transforms, because we need a lazy (streaming) normalization function for maximum efficiency . No point normalizing two whole ' Text 's if...
null
https://raw.githubusercontent.com/jgm/unicode-collation/8577367c3275d96e1006954cf2e90bdb4fbde258/src/Text/Collate/Normalize.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE OverloadedStrings # | We define our own normalization function instead of depending on unicode-transforms, because we need a lazy (streaming) normalization implemented here. LIndex = SIndex div NCount If TIndex = 0, then there is no trailing consonant, so map the precomposed ...
# LANGUAGE TemplateHaskell # function for maximum efficiency . No point normalizing two whole ' Text 's if we can see from the first few characters how they should be ordered . See < > for a description of the algorithm module Text.Collate.Normalize ( toNFD ) where import qualified Data.IntMap as M import...
6d6ed99a094ccb315834735b154903a651f3dfa0e0233dc43921ca32babbe3c7
exoscale/clojure-kubernetes-client
admissionregistration_v1beta1_webhook_client_config.clj
(ns clojure-kubernetes-client.specs.admissionregistration-v1beta1-webhook-client-config (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.admissionregistration-v1beta1-service-reference :refer :all] ) (:import (java.io File))) (...
null
https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/admissionregistration_v1beta1_webhook_client_config.clj
clojure
(ns clojure-kubernetes-client.specs.admissionregistration-v1beta1-webhook-client-config (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.admissionregistration-v1beta1-service-reference :refer :all] ) (:import (java.io File))) (...
86e95c56b8f02485e3dfd7a78fafa92a0b9a50af88b56cc6e2a516033b7b6f4f
racket/plai
roots-test.rkt
#lang at-exp racket (require rackunit) #| This file has tests for the mutator transformation to make sure that the right things are in the result of get-root-set. It works by setting up a collector (one that doesn't actually collect) that prints out all of the flat values in the root set at the point when a cons hap...
null
https://raw.githubusercontent.com/racket/plai/164f3b763116fcfa7bd827be511650e71fa04319/plai-lib/tests/gc2/roots-test.rkt
racket
This file has tests for the mutator transformation to make sure that the right things are in the result of get-root-set. It works by setting up a collector (one that doesn't actually collect) that prints out all of the flat values in the root set at the point when a cons happens. Then it sets up various little exp...
#lang at-exp racket (require rackunit) (define ns (make-base-namespace)) (parameterize ([current-namespace ns] [current-module-declare-name (make-resolved-module-path 'gc)]) (eval (parameterize ([read-accept-reader #t]) (read-syntax 'stuff (open-input-string @string-append{...
5d1b4d51b57a7b2996d81b27b64a3c1f661172659bd9aa5d9662cd3a1e48844f
Bubbler-4/StepULC
Main.hs
module Main where main :: IO () main = putStrLn "Nothing to see here."
null
https://raw.githubusercontent.com/Bubbler-4/StepULC/e9d7b0c75708d2b429f43a2d756eec7b6518df51/StepULC/app/Main.hs
haskell
module Main where main :: IO () main = putStrLn "Nothing to see here."
5fb74aa6c29887338740d222a357a7b623aa08b70a6c9669980df1f840021cb4
argp/bap
batGc.mli
* BatGC - Extended GC operations * Copyright ( C ) 1996 * 2008 , LIFO , Universite d'Orleans * * 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 ; ei...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/batteries/src/batGc.mli
ocaml
* Number of words allocated in the minor heap since the program was started. This number is accurate in byte-code programs, but only an approximation in programs compiled to native code. * Number of words allocated in the minor heap that survived a minor collection and were moved to th...
* BatGC - Extended GC operations * Copyright ( C ) 1996 * 2008 , LIFO , Universite d'Orleans * * 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 ; ei...
9e0da5be0ed5cdad7d987236fc9cdfcae551caa4a82176e77b8a3437e457f376
geneweb/geneweb
adef.mli
$ I d : adef.mli , v 5.6 2007 - 02 - 21 18:14:01 ddr Exp $ Copyright ( c ) 1998 - 2007 INRIA type fix (** Consanguinity rate *) val float_of_fix : fix -> float (** Returns float coefficient of consanguinity rate *) val fix_of_float : float -> fix (** Returns consanguinity rate from its float coefficient *) exte...
null
https://raw.githubusercontent.com/geneweb/geneweb/7b71f8f2f75e0e847818f821a0267938f38c9cf5/lib/def/adef.mli
ocaml
* Consanguinity rate * Returns float coefficient of consanguinity rate * Returns consanguinity rate from its float coefficient * [fix] from int * [fix] to int * No consanguinity * Date data type that can be either concrete date associated to a calendar or a textual form of the date. * Supported calendars * Conc...
$ I d : adef.mli , v 5.6 2007 - 02 - 21 18:14:01 ddr Exp $ Copyright ( c ) 1998 - 2007 INRIA type fix val float_of_fix : fix -> float val fix_of_float : float -> fix external fix : int -> fix = "%identity" external fix_repr : fix -> int = "%identity" val no_consang : fix type date = Dgreg of dmy * calendar |...
c658eada13ef37f13fa9f3efc893a340eb7e9d48f332adc88f28a5128da668ee
darkleaf/publicator
register.clj
(ns publicator.web.controllers.user.register (:require [publicator.use-cases.interactors.user.register :as interactor])) (defn initial-params [_] [interactor/initial-params]) (defn process [{:keys [transit-params]}] [interactor/process transit-params]) (def routes #{[:get "/register" #'initial-params :use...
null
https://raw.githubusercontent.com/darkleaf/publicator/e07eee93d8f3d9c07a15d574619d5ea59c00f87d/web/src/publicator/web/controllers/user/register.clj
clojure
(ns publicator.web.controllers.user.register (:require [publicator.use-cases.interactors.user.register :as interactor])) (defn initial-params [_] [interactor/initial-params]) (defn process [{:keys [transit-params]}] [interactor/process transit-params]) (def routes #{[:get "/register" #'initial-params :use...
1508eafde68314682e06568b587bfabf1f59c9c0b6c320ae4914fc005db8045e
privet-kitty/cl-competitive
treap.lisp
(defpackage :cp/treap (:use :cl) (:export #:treap #:treap-count #:treap-find #:treap-bisect-left #:treap-split #:treap-insert #:treap-push #:treap-pop #:treap-delete #:treap-merge #:treap-map #:invalid-treap-index-error #:treap-first #:treap-last)) (in-package :cp/treap) ;; No unit tests. You...
null
https://raw.githubusercontent.com/privet-kitty/cl-competitive/23c703c9d7acf1b926c76f271882f64b03268433/module/treap.lisp
lisp
No unit tests. You should use ref-able-treap instead.
(defpackage :cp/treap (:use :cl) (:export #:treap #:treap-count #:treap-find #:treap-bisect-left #:treap-split #:treap-insert #:treap-push #:treap-pop #:treap-delete #:treap-merge #:treap-map #:invalid-treap-index-error #:treap-first #:treap-last)) (in-package :cp/treap) (defstruct (treap (:...
264c930a3d5f399317b5497f957ce0ac8d94b8f29db746702365e047187d3843
tweag/asterius
T12059.hs
# LANGUAGE MagicHash # # LANGUAGE UnboxedTuples # Test the function of the isPinnedByteArray # primop import GHC.Exts import GHC.IO main :: IO () main = do Unpinned MutableByteArray r <- IO $ \s0 -> case newByteArray# 1024# s0 of (# s1, mba #) -> (# s1, isTrue# (isMutableByteArrayPin...
null
https://raw.githubusercontent.com/tweag/asterius/e7b823c87499656860f87b9b468eb0567add1de8/asterius/test/ghc-testsuite/codeGen/T12059.hs
haskell
Pinned MutableByteArray Pinned, Aligned MutableByteArray
# LANGUAGE MagicHash # # LANGUAGE UnboxedTuples # Test the function of the isPinnedByteArray # primop import GHC.Exts import GHC.IO main :: IO () main = do Unpinned MutableByteArray r <- IO $ \s0 -> case newByteArray# 1024# s0 of (# s1, mba #) -> (# s1, isTrue# (isMutableByteArrayPin...
aa71985be8c1b525962173dd9b6c5d8925b949978e1cfb668082dbc0ea0f346d
haroldcarr/plutus-pioneer-program-3
Free.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE FlexibleContexts #-} # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # # L...
null
https://raw.githubusercontent.com/haroldcarr/plutus-pioneer-program-3/b66f285d4bb5457ced740c50adb490b50aa0ed74/Lecture-05/Free.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE DeriveAnyClass # # LANGUAGE FlexibleContexts # # LANGUAGE OverloadedStrings # # LANGUAGE TypeOperators # ---------------------------------------------------------------------------- on chain # INLINABLE mkPolicy # could parameterize the policy (like can be d...
# LANGUAGE DeriveGeneric # # LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # module Week05.Free where import Control.Monad hiding (fmap) import Data.Aeson ...
6795226e4e362c23a9c23a03f41855d28e23dd1546d3f24bfb0dd47d28a19105
well-typed/visualize-cbn
Doc.hs
# LANGUAGE CPP # module CBN.Util.Doc ( Table , Doc -- opaque , doc , table , choice , style , stack , render , renderAll ) where import Data.Default import Data.Foldable (asum) import Data.List (find) import Data.Maybe (fromMaybe) import Data.Semigroup as Sem import CBN.Util.Doc.Rendered (Table,...
null
https://raw.githubusercontent.com/well-typed/visualize-cbn/499a8bc806ce03ce6d1bc12df1ea6e6df7768817/src/CBN/Util/Doc.hs
haskell
opaque ------------------------------------------------------------------------------ Documents ------------------------------------------------------------------------------ | Abstract description of a document and the type of primitive documents. | Primitive document | Align a bunch of documents like in a tab...
# LANGUAGE CPP # module CBN.Util.Doc ( Table , doc , table , choice , style , stack , render , renderAll ) where import Data.Default import Data.Foldable (asum) import Data.List (find) import Data.Maybe (fromMaybe) import Data.Semigroup as Sem import CBN.Util.Doc.Rendered (Table, Rendered) import ...
ee17d4db9c0451e2df3f11d5d583bd627b775760c7a0aba3caf3746d294e8b20
jrh13/hol-light
L2.ml
(* ========================================================================= *) (* *) Quantum optics library : single mode electromagnetic field . (* *) ...
null
https://raw.githubusercontent.com/jrh13/hol-light/d125b0ae73e546a63ed458a7891f4e14ae0409e2/Functionspaces/L2.ml
ocaml
========================================================================= Concordia University ...
Quantum optics library : single mode electromagnetic field . ( c ) Copyright , , 2012 - 2014 Hardware Verification Group , Last update : April 18 , 2016 needs "Functionspace...
5cbc691c12a36efb6bbe0713c6abc9552a7883761caeda55e1695c181f7ec22a
GillianPlatform/Gillian
gil_lifter.ml
module L = Logging module DL = Debugger_log open Lifter module Make (PC : ParserAndCompiler.S) (Verifier : Verifier.S with type annot = PC.Annot.t) (SMemory : SMemory.S) : S with type memory = SMemory.t and type tl_ast = PC.tl_ast and type memory_error = SMemory.err_t and type cmd_repo...
null
https://raw.githubusercontent.com/GillianPlatform/Gillian/c794de7417f29e3c23146f9958ead7e4ad0216ce/GillianCore/debugging/lifter/gil_lifter.ml
ocaml
module L = Logging module DL = Debugger_log open Lifter module Make (PC : ParserAndCompiler.S) (Verifier : Verifier.S with type annot = PC.Annot.t) (SMemory : SMemory.S) : S with type memory = SMemory.t and type tl_ast = PC.tl_ast and type memory_error = SMemory.err_t and type cmd_repo...
890e6b284bfeba0b45d92bbf40cb6a4e2556f7ed7d7d7bdaf22be34f4a0df345
heidihoward/ocaml-raft
rpcs.mli
open Core_kernel.Std open Common type cmd module RequestVoteArg : sig type t = { term : Index.t; cand_id : IntID.t; last_index : Index.t; last_term : Index.t; } with sexp val to_string : t -> string end module RequestVoteRes : sig type t = { term : Index.t; votegrant...
null
https://raw.githubusercontent.com/heidihoward/ocaml-raft/b1502ebf8c19be28270d11994abac68e5a6418be/lib/rpcs.mli
ocaml
open Core_kernel.Std open Common type cmd module RequestVoteArg : sig type t = { term : Index.t; cand_id : IntID.t; last_index : Index.t; last_term : Index.t; } with sexp val to_string : t -> string end module RequestVoteRes : sig type t = { term : Index.t; votegrant...
9f6cfda685dac6de0081c489fd8e26c859cc007cebc4add5aef681af9f4c8cc2
crategus/cl-cffi-gtk
gtk.progress-bar.lisp
;;; ---------------------------------------------------------------------------- ;;; gtk.progress-bar.lisp ;;; ;;; The documentation of this file is taken from the GTK 3 Reference Manual Version 3.24 and modified to document the Lisp binding to the GTK library . ;;; See <>. The API documentation of the Lisp binding i...
null
https://raw.githubusercontent.com/crategus/cl-cffi-gtk/ba198f7d29cb06de1e8965e1b8a78522d5430516/gtk/gtk.progress-bar.lisp
lisp
---------------------------------------------------------------------------- gtk.progress-bar.lisp The documentation of this file is taken from the GTK 3 Reference Manual See <>. The API documentation of the Lisp binding is This program is free software: you can redistribute it and/or modify it under the terms...
Version 3.24 and modified to document the Lisp binding to the GTK library . available from < -cffi-gtk/ > . Copyright ( C ) 2009 - 2011 Copyright ( C ) 2011 - 2021 as published by the Free Software Foundation , either version 3 of the the GNU Lesser General Public License that clarifies the terms for us...
38076707eaa5ebf4253aaf090f59a8d8d10af100f0944d51653b1a7c9c3fa670
wavewave/hxournal
Select.hs
----------------------------------------------------------------------------- -- | -- Module : Application.HXournal.ModelAction.Select Copyright : ( c ) 2011 , 2012 -- -- License : BSD3 Maintainer : < > -- Stability : experimental Portability : GHC -- ------------------------------------...
null
https://raw.githubusercontent.com/wavewave/hxournal/b8eb538a2d1a474cc74bc0b5f5c7f251dafe75b9/lib/Application/HXournal/ModelAction/Select.hs
haskell
--------------------------------------------------------------------------- | Module : Application.HXournal.ModelAction.Select License : BSD3 Stability : experimental --------------------------------------------------------------------------- | | | | modify stroke using a func...
Copyright : ( c ) 2011 , 2012 Maintainer : < > Portability : GHC module Application.HXournal.ModelAction.Select where import Application.HXournal.Accessor (bbox4AllStrokes) import Application.HXournal.Type.Enum import Application.HXournal.Type.Alias import Application.HXournal.Type.Predefined imp...
d1b9870f95e2609e0abb21c1baf0d18e62413274c2f38467cacceb39e7e31c60
gtk2hs/gtk2hs
Notebook.hs
{-# LANGUAGE OverloadedStrings #-} -- | Notebook demo (include Spinner animation). Author : Copyright : ( c ) 2010 < > module Main where import Control.Monad import Control.Monad.IO.Class import Data.Maybe import Data.Text (Text) import Data.Monoid ((<>)) import Graphics.UI.Gtk import qualifie...
null
https://raw.githubusercontent.com/gtk2hs/gtk2hs/0f90caa1dae319a0f4bbab76ed1a84f17c730adf/gtk/demo/notebook/Notebook.hs
haskell
# LANGUAGE OverloadedStrings # | Notebook demo (include Spinner animation). | Main Create window and notebook. Set window. Handle key press action. Create text view. must show before add notebook, otherwise notebook won't display child widget even have add in notebook. Create notebook tab. Add widgets in not...
Author : Copyright : ( c ) 2010 < > module Main where import Control.Monad import Control.Monad.IO.Class import Data.Maybe import Data.Text (Text) import Data.Monoid ((<>)) import Graphics.UI.Gtk import qualified Data.Text as T (unpack) data NotebookTab = NotebookTab {ntBox :: HB...