_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 |
|---|---|---|---|---|---|---|---|---|
223f5035fe94834f5b60e485de324b3174c6180f94a509fef4f77ea5674aba38 | BinaryAnalysisPlatform/bap | mips_abi.ml | open Core_kernel[@@warning "-D"]
open Bap_core_theory
open Bap_c.Std
module Arg = C.Abi.Arg
open Arg.Language
let data model = object
inherit C.Size.base model
method! real = function
| `float -> `r32
| `double | `long_double -> `r64
end
let arena t name ~from len =
Arg.Arena.create @@
List.init len ... | null | https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap/4d019ce6f26764cc39b4252eb866908094d2ca10/plugins/mips/mips_abi.ml | ocaml | open Core_kernel[@@warning "-D"]
open Bap_core_theory
open Bap_c.Std
module Arg = C.Abi.Arg
open Arg.Language
let data model = object
inherit C.Size.base model
method! real = function
| `float -> `r32
| `double | `long_double -> `r64
end
let arena t name ~from len =
Arg.Arena.create @@
List.init len ... | |
bf83fbbd6ab6f9b06bfc9c12513cabbaecf1284eecc49c6ab9fcf0af28f75472 | spl/emgm | A.hs | -----------------------------------------------------------------------------
-- |
-- Module : A
Copyright : ( c ) 2008 - 2010 Universiteit Utrecht
-- License : BSD3
--
Maintainer :
--
-- An example type representation.
---------------------------------------------------------------------------... | null | https://raw.githubusercontent.com/spl/emgm/dc16c10137487d7eb97aa851a577be66b46070a2/tests/A.hs | haskell | ---------------------------------------------------------------------------
|
Module : A
License : BSD3
An example type representation.
---------------------------------------------------------------------------
{-# OPTIONS_GHC -Wall #-}
# LANGUAGE TypeOperators #
# LANGUAGE TypeSynonymInst... | Copyright : ( c ) 2008 - 2010 Universiteit Utrecht
Maintainer :
# LANGUAGE FlexibleInstances #
# LANGUAGE FlexibleContexts #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE OverlappingInstances #
# LANGUAGE UndecidableInstances #
module A where
import Prelude hiding (Read,... |
fb4344893342ba9d9056f86a4eddb7b47b72dcdc2efbc71d4ab05077e9fd1667 | lexi-lambda/hackett | github-issue-85.rkt | #lang hackett
(class (C a)
[f : {Integer -> a}])
(instance (C Bool)
[f (λ [n] False)])
(defn g
[[n] (case (f n)
[True "yes"]
[False "no"])])
| null | https://raw.githubusercontent.com/lexi-lambda/hackett/e90ace9e4a056ec0a2a267f220cb29b756cbefce/hackett-test/tests/hackett/regression/github-issue-85.rkt | racket | #lang hackett
(class (C a)
[f : {Integer -> a}])
(instance (C Bool)
[f (λ [n] False)])
(defn g
[[n] (case (f n)
[True "yes"]
[False "no"])])
| |
0cf9a791dbaad2ab2c308a9b43e2a797881e25be8d781bd5f1795b8f67e0f3db | input-output-hk/ouroboros-network | TwoEras.hs | {-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
# LANGUAGE GADTs #
# LANGUAGE LambdaCase #
{-# LANGUAGE MultiWayIf #-}
# LANGUAGE NamedFieldPuns #
{-# LANGUAGE TypeOperators #-}
| Definitions used in ThreadNet tests that involve two eras .
module Test.ThreadNet.Infra.TwoEras (
... | null | https://raw.githubusercontent.com/input-output-hk/ouroboros-network/8ccbc43654479e9ba3d59676aeb96da533482266/ouroboros-consensus-cardano-test/src/Test/ThreadNet/Infra/TwoEras.hs | haskell | # LANGUAGE DataKinds #
# LANGUAGE DeriveGeneric #
# LANGUAGE MultiWayIf #
# LANGUAGE TypeOperators #
* Generators
* Era inspection
* Properties
| When and for how long the nodes are partitioned
of their 'CoreNodeId'.
^ the scheduled start slot and duration (which includes the start slot)
interesting ... | # LANGUAGE GADTs #
# LANGUAGE LambdaCase #
# LANGUAGE NamedFieldPuns #
| Definitions used in ThreadNet tests that involve two eras .
module Test.ThreadNet.Infra.TwoEras (
Partition (..)
, genNonce
, genPartition
, genTestConfig
, ReachesEra2 (..)
, activeSlotCoeff
, isFirstEraBlock
,... |
d477d6aa0d6a0cb7f283cdaeaa406cc2ec25cd3529579db212fbea7f66ab240a | robert-strandh/Gsharp | clim-utils.lisp | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
;;; New button types
(cl:in-package #:clim-internals)
;;; These are specialised PUSH-BUTTON implementations. PUSH-BUTTON
;;; deals with behaviour and with drawing and animating the button. In
the CLIM specs , it also has a label string which it prints . The
label is used at... | null | https://raw.githubusercontent.com/robert-strandh/Gsharp/20b4a30ebf1e211bf421563278d425b3b06607e9/clim-utils.lisp | lisp |
New button types
These are specialised PUSH-BUTTON implementations. PUSH-BUTTON
deals with behaviour and with drawing and animating the button. In
Spacing -- COMPOSE-SPACE: slightly worrying because I don't really
understand how layout works, but seems generally ok
generic function, specialised here easily en... |
(cl:in-package #:clim-internals)
the CLIM specs , it also has a label string which it prints . The
label is used at two points : space calculation and drawing .
Drawing is handled by two functions -- DRAW - LABEL * , which is a
ICON - PUSH - BUTTON
should be optionally with text . The icon must be in XPM ... |
9134ca12a9304b67830e41e7798bccb36b55d5886bea13151ac1e4096288aeb9 | ghcjs/ghcjs-boot | Syntax.hs | module Syntax where
import Data.List
------------------------------------------------------------------
-- Abstract syntax -----------------------------------------------
------------------------------------------------------------------
-- info for all primops; the totality of the info in primops.txt(.pp)
data Info... | null | https://raw.githubusercontent.com/ghcjs/ghcjs-boot/8c549931da27ba9e607f77195208ec156c840c8a/utils/genprimopcode/Syntax.hs | haskell | ----------------------------------------------------------------
Abstract syntax -----------------------------------------------
----------------------------------------------------------------
info for all primops; the totality of the info in primops.txt(.pp)
PrimOp name
name in prog text
type
category
descript... | module Syntax where
import Data.List
data Info
defaults , primops
deriving Show
info for one primop
data Entry
vector
vector
deriving Show
is_primop :: Entry -> Bool
is_primop (PrimOpSpec _ _ _ _ _ _) = True
is_primop _ = False
is_primtype :: Entry -> Bool
is_primtype (PrimTypeSpec {}) = True
i... |
eea4cad1827b4c36174a7ad2ae04090c9792b9b22648dee69c2f3c30ec1e2fdb | webyrd/miniKanren-uncourse | infer.scm | (load "../../mk-implementations/scheme/mk.scm")
;;; simple type inferencer for a Scheme-like language
from miniKanren uncourse hangout # 16 , 15 March 02105
(define lookupo
(lambda (x gamma type)
(fresh (y t rest)
(== `((,y . ,t) . ,rest) gamma)
(conde
[(== x y) (== t type)]
[(=/=... | null | https://raw.githubusercontent.com/webyrd/miniKanren-uncourse/19bc2903266197d6ba6c6b818e0a196ea620377b/hangouts-by-date/02015-03-15/infer.scm | scheme | simple type inferencer for a Scheme-like language
variable x
int -> bool
lambda
application | (load "../../mk-implementations/scheme/mk.scm")
from miniKanren uncourse hangout # 16 , 15 March 02105
(define lookupo
(lambda (x gamma type)
(fresh (y t rest)
(== `((,y . ,t) . ,rest) gamma)
(conde
[(== x y) (== t type)]
[(=/= x y)
(lookupo x rest type)]))))
(define !-
... |
161760fca774f6c14d4822f90fd51c554ffa2663f4635945d6b829904ca8781f | 0xYUANTI/eon | test_alias.erl | -module(test_alias).
-behaviour(eon_type_alias).
-export([rewrite/0, rewrite/1]).
rewrite() -> {test_prim, [max, 666]}.
rewrite(Params) -> {test_prim, Params}.
| null | https://raw.githubusercontent.com/0xYUANTI/eon/528a23513921e2be99486210dda60e8c8e069c2d/test/test_alias.erl | erlang | -module(test_alias).
-behaviour(eon_type_alias).
-export([rewrite/0, rewrite/1]).
rewrite() -> {test_prim, [max, 666]}.
rewrite(Params) -> {test_prim, Params}.
| |
31968a759d3ff95592ea6facffbe22d5a115e4968f7eb88858d38e91a00221f4 | ekmett/ad | Common.hs | {-# LANGUAGE BangPatterns #-}
# OPTIONS_GHC -fno - warn - name - shadowing #
# OPTIONS_HADDOCK not - home #
-----------------------------------------------------------------------------
-- |
Copyright : ( c ) 2010 - 2021
-- License : BSD3
-- Maintainer :
-- Stability : experimental
Portability : ... | null | https://raw.githubusercontent.com/ekmett/ad/6454d35d1aa6e2af04db9e549146c9cfe8d8bd3b/src/Numeric/AD/Internal/Sparse/Common.hs | haskell | # LANGUAGE BangPatterns #
---------------------------------------------------------------------------
|
License : BSD3
Maintainer :
Stability : experimental
Handle with care.
--------------------------------------------------------------------------- | # OPTIONS_GHC -fno - warn - name - shadowing #
# OPTIONS_HADDOCK not - home #
Copyright : ( c ) 2010 - 2021
Portability : GHC only
common guts for . Double and mode
module Numeric.AD.Internal.Sparse.Common
( Monomial(..)
, emptyMonomial
, addToMonomial
, indices
, skeleton
, terms
) where... |
79f1d5f7598c38ad76a2a42010a4fea03aba212e3928ffb9ed3aeae83cdd56e9 | haskell/time | Quarter.hs | {-# LANGUAGE Safe #-}
-- | Year quarters.
module Data.Time.Calendar.Quarter (
QuarterOfYear (..),
addQuarters,
diffQuarters,
Quarter (..),
pattern YearQuarter,
monthOfYearQuarter,
monthQuarter,
dayQuarter,
DayOfQuarter,
pattern QuarterDay,
) where
import Control.DeepSeq
import ... | null | https://raw.githubusercontent.com/haskell/time/857d8fd808548b2bf652236443adcbeae9188745/lib/Data/Time/Calendar/Quarter.hs | haskell | # LANGUAGE Safe #
| Year quarters.
| Show as @yyyy-Qn@.
| Read as @yyyy-Qn@.
| Bidirectional abstract constructor.
# COMPLETE YearQuarter #
| The 'QuarterOfYear' this 'MonthOfYear' is in.
| The 'Quarter' this 'Month' is in.
| The 'Quarter' this 'Day' is in.
| Bidirectional abstract constructor.
Invalid days of... |
module Data.Time.Calendar.Quarter (
QuarterOfYear (..),
addQuarters,
diffQuarters,
Quarter (..),
pattern YearQuarter,
monthOfYearQuarter,
monthQuarter,
dayQuarter,
DayOfQuarter,
pattern QuarterDay,
) where
import Control.DeepSeq
import Data.Data
import Data.Fixed
import Data.Ix... |
f9d9be074b2bf019d4dad0b3fefc41df58474ea4b48ddf4490ddd30e0eaa21fa | mainland/language-c-quote | ObjC.hs | -- |
-- Module : Language.C.Quote.ObjC
Copyright : ( c ) 2006 - 2011 Harvard University
( c ) 2011 - 2013
( c ) 2013 - 2014
: ( c ) 2013 - 2015 Drexel University
-- License : BSD-style
Maintainer :
# LANGUAGE FlexibleInstances #
module L... | null | https://raw.githubusercontent.com/mainland/language-c-quote/af3db8f3e3394447d2c191868d2ec9afaa38f6b4/Language/C/Quote/ObjC.hs | haskell | |
Module : Language.C.Quote.ObjC
License : BSD-style
| A wrapper for a value indicating that it should be treated as an
Objective-C literal.
| Indicates that a value should be treated as an Objective-C literal. | Copyright : ( c ) 2006 - 2011 Harvard University
( c ) 2011 - 2013
( c ) 2013 - 2014
: ( c ) 2013 - 2015 Drexel University
Maintainer :
# LANGUAGE FlexibleInstances #
module Language.C.Quote.ObjC (
ToIdent(..),
ToConst(..),
ToExp(..),
... |
de1c962b6ce9eb77e4a7bb083a64590da83c65d5bbec201b903d8709e650493b | onedata/op-worker | lfm_handles_monitor.erl | %%%--------------------------------------------------------------------
@author
( C ) 2020 ACK CYFRONET AGH
This software is released under the MIT license
cited in ' LICENSE.txt ' .
%%% @end
%%%--------------------------------------------------------------------
%%% @doc
%%% Monitors cowboy processes (gui/R... | null | https://raw.githubusercontent.com/onedata/op-worker/b0e4045090b180f28c79d40b9b334d7411ec3ca5/src/modules/logical_file_manager/lfm_handles_monitor.erl | erlang | --------------------------------------------------------------------
@end
--------------------------------------------------------------------
@doc
Monitors cowboy processes (gui/REST handlers) that open file handles
so that all handles associated with process that unexpectedly dies
(e.g. client abruptly closes co... | @author
( C ) 2020 ACK CYFRONET AGH
This software is released under the MIT license
cited in ' LICENSE.txt ' .
-module(lfm_handles_monitor).
-author("Bartosz Walkowicz").
-behaviour(gen_server).
-include("modules/datastore/transfer.hrl").
-include_lib("ctool/include/errors.hrl").
-include_lib("ctool/includ... |
ccf05898a8ecb6bb5f7eb0ce01fd2f075fe39774134e43552537629d035ad0d9 | biocaml/biocaml | lines.ml | include Biocaml_unix.Lines
include MakeIO (Future_lwt)
| null | https://raw.githubusercontent.com/biocaml/biocaml/ac619539fed348747d686b8f628e80c1bb8bfc59/lib/lwt/lines.ml | ocaml | include Biocaml_unix.Lines
include MakeIO (Future_lwt)
| |
76467dd5b827a497095f3ebc0672d80e275a78ad145665c56652fe4499aa82d6 | mishadoff/project-euler | problem011.clj | (ns project-euler.problem011)
(defn get-matrix []
(map #(Integer/parseInt (apply str %))
(partition 2 2 (remove #(or (= \newline %) (= \ %))
(seq (slurp "res/problem011.txt"))))))
(defn get-at [i j matrix]
(if (and (>= i 0) (< i 20) (>= j 0) (< j 20))
(nth matrix (+ j (* i... | null | https://raw.githubusercontent.com/mishadoff/project-euler/45642adf29626d3752227c5a342886b33c70b337/src/project_euler/problem011.clj | clojure | (ns project-euler.problem011)
(defn get-matrix []
(map #(Integer/parseInt (apply str %))
(partition 2 2 (remove #(or (= \newline %) (= \ %))
(seq (slurp "res/problem011.txt"))))))
(defn get-at [i j matrix]
(if (and (>= i 0) (< i 20) (>= j 0) (< j 20))
(nth matrix (+ j (* i... | |
d7c2c4ec2adb4fd51be809a85309eed090b7f1e3fed2de93ee873f8911ae8053 | shirok/Gauche | test.scm | (use gauche.test)
(use gauche.config)
(use gauche.ffitest)
(use util.match)
(use file.util)
(cond-expand
[gauche.os.windows (exit 0)]
[else
;; Currently we only support those platforms
(unless (#/^x86_64-.*(-linux|-darwin)/ (gauche-config "--arch"))
(exit 0))])
(test-start "ffitest")
;;====================... | null | https://raw.githubusercontent.com/shirok/Gauche/fc0c7f0d6176bbb3fbf6179139577ea28231bc82/ext/native/test.scm | scheme | Currently we only support those platforms
==========================================================================
========================================================================== | (use gauche.test)
(use gauche.config)
(use gauche.ffitest)
(use util.match)
(use file.util)
(cond-expand
[gauche.os.windows (exit 0)]
[else
(unless (#/^x86_64-.*(-linux|-darwin)/ (gauche-config "--arch"))
(exit 0))])
(test-start "ffitest")
(test-section "raw call")
(define (foreign-call dlo name args rettyp... |
2d2891709d8f9ab4f0d75d45fa74327a8a6c0b0a9a1794bd575df6b1bcfcfb5a | cojna/iota | Dijkstra.hs | # LANGUAGE LambdaCase #
# LANGUAGE RecordWildCards #
module Data.Graph.Sparse.Dijkstra where
import Control.Monad
import Data.Function
import qualified Data.Vector.Unboxed as U
import qualified Data.Vector.Unboxed.Mutable as UM
import Data.Graph.Sparse
import Data.Heap.Binary
dijkstraCSR ::
(U.Unbox w, Num w, Ord... | null | https://raw.githubusercontent.com/cojna/iota/57ab28a543a39d22d716fe2faceff4e62f53de5d/src/Data/Graph/Sparse/Dijkstra.hs | haskell | # LANGUAGE LambdaCase #
# LANGUAGE RecordWildCards #
module Data.Graph.Sparse.Dijkstra where
import Control.Monad
import Data.Function
import qualified Data.Vector.Unboxed as U
import qualified Data.Vector.Unboxed.Mutable as UM
import Data.Graph.Sparse
import Data.Heap.Binary
dijkstraCSR ::
(U.Unbox w, Num w, Ord... | |
55b6f0ea42d9e4a9671e05681594b5cf89bcaef8836900ab370ed0c54ee3b6b7 | int-index/ether | TaggedTrans.hs | The use of ImpredicativeTypes here is safe , see discussion under GitHub issue
# 35 . It 's only needed to allow the visible type application of a polytype .
{-# LANGUAGE ImpredicativeTypes #-}
module Ether.TaggedTrans
( TaggedTrans(..)
) where
import Control.Applicative
import Control.Monad (MonadPlus)
impor... | null | https://raw.githubusercontent.com/int-index/ether/84c1d560da241c8111d1a3c98d9a896f0c62087b/src/Ether/TaggedTrans.hs | haskell | # LANGUAGE ImpredicativeTypes # | The use of ImpredicativeTypes here is safe , see discussion under GitHub issue
# 35 . It 's only needed to allow the visible type application of a polytype .
module Ether.TaggedTrans
( TaggedTrans(..)
) where
import Control.Applicative
import Control.Monad (MonadPlus)
import Control.Monad.Fix (MonadFix)
impor... |
9761cff92925929582c3cd7bdc7002415fa60d83c4a2f6ea69bc227a19781ae3 | anuragsoni/h2 | serialize.ml | open Faraday
type frame_info =
{ flags : Types.frame_flags
; stream_id : Types.stream_id
; padding : Types.padding option }
let make_frame_info ~set_flag ~stream_id =
{flags = set_flag Types.default_flags; stream_id; padding = None}
let write_24 t i =
let w0 = (i lsr 16) land 0xff in
let w1 = (i lsr 8) l... | null | https://raw.githubusercontent.com/anuragsoni/h2/270d27cf54942e2b34932041827990ae49c89f85/lib/serialize.ml | ocaml | TODO: How to handle reserved bit?
TODO: This should probably be removed. We could handle unknown frames with its
own error code. Also, a server/client implementing HTTP/2 spec might never
actually need to serialize an unknown frame? | open Faraday
type frame_info =
{ flags : Types.frame_flags
; stream_id : Types.stream_id
; padding : Types.padding option }
let make_frame_info ~set_flag ~stream_id =
{flags = set_flag Types.default_flags; stream_id; padding = None}
let write_24 t i =
let w0 = (i lsr 16) land 0xff in
let w1 = (i lsr 8) l... |
27398cbd4b32594baeec0395288f60cc0563a8cd099325416e999735eebfe170 | nickzuber/lets-make-a-compiler | flatten.ml | open Ast
open Ast.Flat
exception Illegal_variable_reference of string
exception Incorrect_step of string
exception Found_unused_expression_type
let hashtbl_add_safe tbl name value =
try
let _ = Hashtbl.find tbl name in
()
with
| Not_found ->
Hashtbl.add tbl name value
let flat_unop_of_typed_standar... | null | https://raw.githubusercontent.com/nickzuber/lets-make-a-compiler/ee2337b116f07c1357f7b70bd09f1503e39fdc88/src/transformers/flatten.ml | ocaml | vars_binding @ vars_body @ [name],
vars @ [var_unexp]
tc or ta since both same type
[var_read]
vars_caller @ vars_rhs @ [var_apply]
Given a typed program, transform it into a flat program such that all forms of nesting is removed.
Since this program is in the scope of a function, we add parameters as varia... | open Ast
open Ast.Flat
exception Illegal_variable_reference of string
exception Incorrect_step of string
exception Found_unused_expression_type
let hashtbl_add_safe tbl name value =
try
let _ = Hashtbl.find tbl name in
()
with
| Not_found ->
Hashtbl.add tbl name value
let flat_unop_of_typed_standar... |
ebafccbfe325efd0a5468da651ed6e4d0615971ceca52d776a592ac0818b7e3c | sheaf/acts | MusicalIntervals.hs | # LANGUAGE
DataKinds
, , DeriveGeneric
, DerivingVia
, MultiParamTypeClasses
, PatternSynonyms
, TupleSections
, TypeApplications
, ViewPatterns
#
DataKinds
, DeriveAnyClass
, DeriveGeneric
, DerivingVia
, MultiParamTypeClasses
, PatternSynonyms
, TupleSections
, ... | null | https://raw.githubusercontent.com/sheaf/acts/ad365362867781973a962294a985ec95240198a2/examples/Acts/Examples/MusicalIntervals.hs | haskell | base
finitary
finite-typelits
groups
acts
---------------------------------------------------------------
* Musical notes
$notenames
| Musical note names.
$deriving1
| Alterations, i.e. sharps and flats.
$deriving2
For non-newtypes, one can use generics, for example:
---------------------------------... | # LANGUAGE
DataKinds
, , DeriveGeneric
, DerivingVia
, MultiParamTypeClasses
, PatternSynonyms
, TupleSections
, TypeApplications
, ViewPatterns
#
DataKinds
, DeriveAnyClass
, DeriveGeneric
, DerivingVia
, MultiParamTypeClasses
, PatternSynonyms
, TupleSections
, ... |
8abfc4911d2594af676f35d0f967182c4d9128a6c9153cf1a13c49ff4fb873de | penpot/penpot | constants.cljs | 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 /.
;;
;; Copyright (c) KALEIDOS INC
(ns app.main.constants)
(def viewport-width 4000)
(def viewport-height 4000)
(def frame-start-x 1200)
(def f... | null | https://raw.githubusercontent.com/penpot/penpot/62aa6569f258829d36bbdf7d43819fe876f6b8b2/frontend/src/app/main/constants.cljs | clojure |
Copyright (c) KALEIDOS 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 /.
(ns app.main.constants)
(def viewport-width 4000)
(def viewport-height 4000)
(def frame-start-x 1200)
(def frame-start-y 1200)
(def grid-x-a... |
961483586ca2458f59587db5b8e06e1a2f1c6c58af87f93f890b9c350b0d17cc | input-output-hk/cardano-base | Util.hs | {-# LANGUAGE BangPatterns #-}
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE NamedFieldPuns #
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
# LANGUAGE ScopedTypeVariables #
# LANGUAGE KindSignatures #
# LANGUAGE DerivingVia #
# LANGUAGE RoleAnnotations #
# LANGUAGE TupleSections #
# LANGUAGE DataKi... | null | https://raw.githubusercontent.com/input-output-hk/cardano-base/9cc0123486245a1b13e79ab7e4658488bb31790f/cardano-crypto-tests/src/Test/Crypto/Util.hs | haskell | # LANGUAGE BangPatterns #
# LANGUAGE OverloadedStrings #
# LANGUAGE RankNTypes #
* CBOR
* Test Seed
* Seeds
* test messages for signings
* Test generation and shrinker helpers
------------------------------------------------------------------------------
------------------------------------------------------------... | # LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE NamedFieldPuns #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE KindSignatures #
# LANGUAGE DerivingVia #
# LANGUAGE RoleAnnotations #
# LANGUAGE TupleSections #
# LANGUAGE DataKinds #
module Test.Crypto.Util
FromCBOR (..)
, ToCBOR (..)
, prop_cbor
, prop_cbor_... |
e9ef300bb4ae39a00534f2820d9f1b6b1476d0d55a7353ecd98c4c98a7d51be7 | PLTools/OCanren | Pair.mli | SPDX - License - Identifier : LGPL-2.1 - or - later
* OCanren .
* Copyright ( C ) 2015 - 2022
* , , ,
* St. Petersburg State University , JetBrains Research
*
* This software is free software ; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
... | null | https://raw.githubusercontent.com/PLTools/OCanren/1ead64bde16b0eb339a6bf790ea871e19bbaccd0/src/std/Pair.mli | ocaml | * Logic option
* Logic injection (for reification)
* A synonym for injected pair
* Make injected pair from ground one with injected components | SPDX - License - Identifier : LGPL-2.1 - or - later
* OCanren .
* Copyright ( C ) 2015 - 2022
* , , ,
* St. Petersburg State University , JetBrains Research
*
* This software is free software ; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
... |
40640647c8d8c7030951bfe87464d7d24f90fea951641ba0a01ed91eb229ed37 | district0x/district-voting | expandable_text.cljs | (ns district-voting.components.expandable-text
(:require [district-voting.styles :as styles]
[district0x.components.utils :refer [parse-props-children]]
[reagent.core :as r]))
(defn expandable-text []
(let [expanded? (r/atom false)]
(fn [props & children]
(let [[props children] (p... | null | https://raw.githubusercontent.com/district0x/district-voting/ef253671b00bdccec4575bcfa1b72b25e28afc22/src/cljs/district_voting/components/expandable_text.cljs | clojure | (ns district-voting.components.expandable-text
(:require [district-voting.styles :as styles]
[district0x.components.utils :refer [parse-props-children]]
[reagent.core :as r]))
(defn expandable-text []
(let [expanded? (r/atom false)]
(fn [props & children]
(let [[props children] (p... | |
dabad12bf1ea6a7819e760a5efc883e6e44fc8133aaafb3e8c4f91231f98e280 | 2600hz-archive/whistle | ctl_ex_app.erl | Copyright 2010 , Scatterbit , Inc. & Jayson Vantuyl < >
%
This file is part of erlctl .
%
Erlctl is open source . See LICENSE.txt for details .
-module(ctl_ex_app).
-behavior(application).
-export([start/2,stop/1]).
start(_Type,_Args) ->
{ok,TopPid} = ctl_ex_sup:start_link(),
{ok,TopPid,none}.
stop(_Sta... | null | https://raw.githubusercontent.com/2600hz-archive/whistle/1a256604f0d037fac409ad5a55b6b17e545dcbf9/lib/erlctl/lib/ctl_ex-0.1/src/ctl_ex_app.erl | erlang | Copyright 2010 , Scatterbit , Inc. & Jayson Vantuyl < >
This file is part of erlctl .
Erlctl is open source . See LICENSE.txt for details .
-module(ctl_ex_app).
-behavior(application).
-export([start/2,stop/1]).
start(_Type,_Args) ->
{ok,TopPid} = ctl_ex_sup:start_link(),
{ok,TopPid,none}.
stop(_State) ... | |
3db299a2a25aea94cfc3fab76bf30fc26334078e9aae338081ad1221ebc9a832 | gren-lang/compiler | Expression.hs | {-# LANGUAGE OverloadedStrings #-}
# OPTIONS_GHC -Wall #
module Optimize.Expression
( optimize,
destructArgs,
optimizePotentialTailCall,
)
where
import AST.Canonical qualified as Can
import AST.Optimized qualified as Opt
import Control.Monad (foldM)
import Data.Index qualified as Index
import Data.Name qu... | null | https://raw.githubusercontent.com/gren-lang/compiler/b2d56a2a582f2e3cf91344c840ee818d4c85cbf8/compiler/src/Optimize/Expression.hs | haskell | # LANGUAGE OverloadedStrings #
OPTIMIZE
UPDATE
DEFINITION
DESTRUCTURING
TAIL CALL
DETECT TAIL CALLS | # OPTIONS_GHC -Wall #
module Optimize.Expression
( optimize,
destructArgs,
optimizePotentialTailCall,
)
where
import AST.Canonical qualified as Can
import AST.Optimized qualified as Opt
import Control.Monad (foldM)
import Data.Index qualified as Index
import Data.Name qualified as Name
import Data.Set qua... |
9c178a6f4f5ce09d2df301fff3b5cd537b6103d571a7115abcf280286fcb9166 | biocaml/phylogenetics | mutsel.mli | (**
*)
module NSCodon = Codon.Universal_genetic_code.NS
module NSCodon_rate_matrix : module type of Rate_matrix.Make(NSCodon)
type param = {
nucleotide_rates : Rate_matrix.Nucleotide.t ;
nucleotide_stat_dist : Nucleotide.vector ;
omega : float ; (* dN/dS *)
scaled_fitness : Amino_acid.vector ;
gBGC ... | null | https://raw.githubusercontent.com/biocaml/phylogenetics/10e1f2249d834a513a740b969e0179e4d629ba04/lib/mutsel.mli | ocaml | *
dN/dS |
module NSCodon = Codon.Universal_genetic_code.NS
module NSCodon_rate_matrix : module type of Rate_matrix.Make(NSCodon)
type param = {
nucleotide_rates : Rate_matrix.Nucleotide.t ;
nucleotide_stat_dist : Nucleotide.vector ;
scaled_fitness : Amino_acid.vector ;
gBGC : float ;
persistent positive selection int... |
8e23766e2c7f8d02065226a0084e2567afa0507ac8c623edf95d441867d7f597 | robert-strandh/SICL | asdf-programming.lisp | (cl:in-package #:sicl-boot)
;;; Return a list of pathnames of all the Lisp source files
;;; of the ASDF system with the name given as an argument.
(defun source-file-path-names (asdf-system)
(loop for component in (asdf/plan:required-components asdf-system :other-systems nil)
when (typep component 'asdf/lisp... | null | https://raw.githubusercontent.com/robert-strandh/SICL/484f85c8b7270a66cb4c3b11d4f79d61629b4b61/Code/Boot/asdf-programming.lisp | lisp | Return a list of pathnames of all the Lisp source files
of the ASDF system with the name given as an argument.
Ensure that ASDF-SYSTEM is loaded into ENVIRONMENT.
LOAD-ASDF-SYSTEM-FILES is called for each Lisp file of
ASDF-SYSTEM, in the order determined by dependencies. ASDF-SYSTEM
is either an instance of ASDF... | (cl:in-package #:sicl-boot)
(defun source-file-path-names (asdf-system)
(loop for component in (asdf/plan:required-components asdf-system :other-systems nil)
when (typep component 'asdf/lisp-action:cl-source-file)
append (asdf:input-files 'asdf:compile-op component)))
(defun load-asdf-system-files... |
a5a40c7393daec742e6b1d38a37a944641dc66c0d33126f6f92bd6c539440911 | patricoferris/ocaml-multicore-monorepo | digestif.mli | type bigstring =
( char,
Bigarray_compat.int8_unsigned_elt,
Bigarray_compat.c_layout )
Bigarray_compat.Array1.t
type 'a iter = ('a -> unit) -> unit
(** A general (inner) iterator. It applies the provided function to a collection
of elements. For instance:
- [let iter_k : 'a -> 'a iter = fun x f ->... | null | https://raw.githubusercontent.com/patricoferris/ocaml-multicore-monorepo/22b441e6727bc303950b3b37c8fbc024c748fe55/duniverse/digestif/src/digestif.mli | ocaml | * A general (inner) iterator. It applies the provided function to a collection
of elements. For instance:
- [let iter_k : 'a -> 'a iter = fun x f -> f x]
- [let iter_pair : 'a * 'a -> 'a iter = fun (x, y) -> f x; f y]
- [let iter_list : 'a list -> 'a iter = fun l f -> List.iter f l]
* Size of hash res... | type bigstring =
( char,
Bigarray_compat.int8_unsigned_elt,
Bigarray_compat.c_layout )
Bigarray_compat.Array1.t
type 'a iter = ('a -> unit) -> unit
type 'a compare = 'a -> 'a -> int
type 'a equal = 'a -> 'a -> bool
type 'a pp = Format.formatter -> 'a -> unit
module type S = sig
val digest_size : int
... |
6be7bde8b3b7bc988933dd3a3f2affa79005630844d1a335771fe68f8a523e49 | Apress/practical-ocaml | ch_11.ml | let errors = [
(1,"This library cannot handle this protocol");
(2,"This operation unsupported on this protocol");
(3,"Can't chop this suffix");
(4,"This is unimplemented")]
type email = Email of string * string
type uri = File of string
| Http of string * string
| Mailto of email
... | null | https://raw.githubusercontent.com/Apress/practical-ocaml/c0f1e36283eb0e495ff8db7f2a88cadbf1a3d49e/Chapter11/ch_11.ml | ocaml | let errors = [
(1,"This library cannot handle this protocol");
(2,"This operation unsupported on this protocol");
(3,"Can't chop this suffix");
(4,"This is unimplemented")]
type email = Email of string * string
type uri = File of string
| Http of string * string
| Mailto of email
... | |
7aaa493cf785cd4ac4ba8d11863126dd9e6edab6e415191991e708d2558e2ac3 | CodyReichert/qi | parser.lisp | -*- Mode : LISP ; Syntax : COMMON - LISP ; Package : CL - PPCRE ; Base : 10 -*-
$ Header : /usr / local / cvsrep / cl - ppcre / parser.lisp , v 1.31 2009/09/17 19:17:31 edi Exp $
;;; The parser will - with the help of the lexer - parse a regex
;;; string and convert it into a "parse tree" (see docs for details
;;;... | null | https://raw.githubusercontent.com/CodyReichert/qi/9cf6d31f40e19f4a7f60891ef7c8c0381ccac66f/dependencies/cl-ppcre-master/parser.lisp | lisp | Syntax : COMMON - LISP ; Package : CL - PPCRE ; Base : 10 -*-
The parser will - with the help of the lexer - parse a regex
string and convert it into a "parse tree" (see docs for details
about the syntax of these trees). Note that the lexer might
return illegal parse trees. It is assumed that the conversion
pro... | $ Header : /usr / local / cvsrep / cl - ppcre / parser.lisp , v 1.31 2009/09/17 19:17:31 edi Exp $
Copyright ( c ) 2002 - 2009 , Dr. . All rights reserved .
DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL
INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY ,
(in-package... |
80a050bd15d7ec45e30f52877bc3479d530dce0aee7cac8b89354e6080cfde3f | inhabitedtype/ocaml-aws | deleteQueue.ml | open Types
open Aws
type input = DeleteQueueRequest.t
type output = unit
type error = Errors_internal.t
let service = "sqs"
let signature_version = Request.V4
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string (Aws.Util.of_option_exn (Endpoints.url_of service region)))
... | null | https://raw.githubusercontent.com/inhabitedtype/ocaml-aws/b6d5554c5d201202b5de8d0b0253871f7b66dab6/libraries/sqs/lib/deleteQueue.ml | ocaml | open Types
open Aws
type input = DeleteQueueRequest.t
type output = unit
type error = Errors_internal.t
let service = "sqs"
let signature_version = Request.V4
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string (Aws.Util.of_option_exn (Endpoints.url_of service region)))
... | |
b18cb9a46876eb3c027e45a03e12f1d355271c80a473e9fac372673b7c228291 | aryx/fork-efuns | edit.ml | (*s: features/edit.ml *)
(*s: copyright header2 *)
(***********************************************************************)
(* *)
xlib for
(* *)
... | null | https://raw.githubusercontent.com/aryx/fork-efuns/8f2f8f66879d45e26ecdca0033f9c92aec2b783d/features/edit.ml | ocaml | s: features/edit.ml
s: copyright header2
*********************************************************************
... | xlib for
Fabrice Le Fessant , projet Para / SOR , INRIA Rocquencourt
Copyright 1998 Institut National de Recherche en Informatique et
Automatique . Distributed only by permission .
open Efuns
open Move
let insert_string frame str =
let (_... |
56a4ffc652c3fe8f9abd79d53304a72379b8e13075da1d0650992de16ff0a3f9 | ygrek/sqlgg | gen_cxx.ml | C++ code generation
open Printf
open ExtLib
open Sqlgg
open Prelude
open Gen
open Sql
module Values = struct
let names = List.map fst
let join = String.concat ", "
let inline = join $ names
let to_string = join $ (List.map (fun (n,t) -> t ^ " " ^ n))
let inject = List.map (fun v -> v.vname, v.vtyp)
end
let rec ... | null | https://raw.githubusercontent.com/ygrek/sqlgg/487d38ccd6098e469997e0d81e7b2f5af8dfdc30/src/gen_cxx.ml | ocaml | (param_type_to_string t)
let output_schema_data index schema =
out_public ();
let name = "data" in
start_struct name;
schema |> schema_to_values |> output_value_defs;
end_struct name
if (Option.is_some schema_binder_name) then output_schema_data index stmt.schema; | C++ code generation
open Printf
open ExtLib
open Sqlgg
open Prelude
open Gen
open Sql
module Values = struct
let names = List.map fst
let join = String.concat ", "
let inline = join $ names
let to_string = join $ (List.map (fun (n,t) -> t ^ " " ^ n))
let inject = List.map (fun v -> v.vname, v.vtyp)
end
let rec ... |
d3cf7f5fb37c88570fbb65233a4dd5b3c70d6408ab57e6f258f70c1fd5e82add | hexlet-basics/exercises-racket | index.rkt | #lang racket
#| BEGIN |#
(displayln
(+ 4
(- 2
(* 3 5)
(/ 8 7))))
#| END |#
| null | https://raw.githubusercontent.com/hexlet-basics/exercises-racket/ae3a45453584de1e5082c841178d4e43dd47e08a/modules/10-basics/30-brackets/index.rkt | racket | BEGIN
END | #lang racket
(displayln
(+ 4
(- 2
(* 3 5)
(/ 8 7))))
|
b13d93c41904bf36cd6ea434f49b44b34efbaa26038ad16de194dde520f2084a | xapi-project/xen-api | gen_csharp_binding.ml | (*
* Copyright (c) Cloud Software Group, Inc.
*)
open Printf
open Datamodel
open Datamodel_types
open Datamodel_utils
open Dm_api
open CommonFunctions
module DT = Datamodel_types
module DU = Datamodel_utils
module TypeSet = Set.Make (struct
type t = DT.ty
let compare = compare
end)
let get_deprecated_attribut... | null | https://raw.githubusercontent.com/xapi-project/xen-api/e8c3575316226ac6324e94aa4f9e040a662e279a/ocaml/sdk-gen/csharp/gen_csharp_binding.ml | ocaml |
* Copyright (c) Cloud Software Group, Inc.
XXX: C# binding generates get_all_records some other way
------------------- category: relations
------------------- category: http_actions
------------------- category: classes
Don't create duplicate get_all_records call
'messages' are methods, 'contents' are f... |
open Printf
open Datamodel
open Datamodel_types
open Datamodel_utils
open Dm_api
open CommonFunctions
module DT = Datamodel_types
module DU = Datamodel_utils
module TypeSet = Set.Make (struct
type t = DT.ty
let compare = compare
end)
let get_deprecated_attribute message =
let version = message.msg_release.int... |
d376f32094564ec4c64f89a651bf05522257f8a32a2ec0054273dc6a41d4ac0e | ekmett/coda | Dyck.hs | # language MultiParamTypeClasses #
{-# language UndecidableInstances #-}
# language FlexibleInstances #
{-# language FlexibleContexts #-}
# language DeriveGeneric #
{-# language TypeFamilies #-}
# language LambdaCase #
---------------------------------------------------------------------------------
-- |
Copyright :... | null | https://raw.githubusercontent.com/ekmett/coda/bca7e36ab00036f92d94eb86298712ab1dbf9b8d/src/dyck/Dyck.hs | haskell | # language UndecidableInstances #
# language FlexibleContexts #
# language TypeFamilies #
-------------------------------------------------------------------------------
|
Stability : experimental
Portability: non-portable
-------------------------------------------------------------------------------
Dyck langua... | # language MultiParamTypeClasses #
# language FlexibleInstances #
# language DeriveGeneric #
# language LambdaCase #
Copyright : ( c ) 2017 - 2018
License : BSD-2 - Clause OR Apache-2.0
Maintainer : < >
module Dyck
(
Dyck(..)
, Opening(..)
, Closing(..)
, LocatedPair
, MismatchError(... |
da38b15fa64a9de5475d0bcc5a7a76f0003f9085ef7d6075c512cb9605b9b5dd | dyzsr/ocaml-selectml | pr7390.ml | (* TEST
* expect
*)
type empty = Empty and filled = Filled
type ('a,'fout,'fin) opt =
| N : ('a, 'f, 'f) opt
| Y : 'a -> ('a, filled, empty) opt
type 'fill either =
| Either : (string, 'fill, 'f) opt * (int, 'f, empty) opt -> 'fill either;;
[%%expect{|
type empty = Empty
and filled = Filled
type ('a, 'fout, '... | null | https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/testsuite/tests/typing-gadts/pr7390.ml | ocaml | TEST
* expect
: filled either -> string |
type empty = Empty and filled = Filled
type ('a,'fout,'fin) opt =
| N : ('a, 'f, 'f) opt
| Y : 'a -> ('a, filled, empty) opt
type 'fill either =
| Either : (string, 'fill, 'f) opt * (int, 'f, empty) opt -> 'fill either;;
[%%expect{|
type empty = Empty
and filled = Filled
type ('a, 'fout, 'fin) opt =
N : ('a,... |
3542491f002792c023e8175983c4341bf373c344a266cf1f46f6fc60b89ad809 | cl-axon/cl-aima | wumpus-grammar.lisp | -*- Mode : Lisp ; -*- Author :
;;;; A grammar for the wumpus world
(defparameter *E1*
(grammar
:lexicon
'((Noun -> stench breeze glitter nothing wumpus pit pits
gold north south east west)
(Verb -> is am are see smell shoot feel stinks go grab release
... | null | https://raw.githubusercontent.com/cl-axon/cl-aima/1e6915fa9f3e5f2c6fd75952d674ebec53558d04/language/domains/wumpus-grammar.lisp | lisp | -*- Author :
A grammar for the wumpus world
change here
change here
changes start here
changes end here
Terminals |
(defparameter *E1*
(grammar
:lexicon
'((Noun -> stench breeze glitter nothing wumpus pit pits
gold north south east west)
(Verb -> is am are see smell shoot feel stinks go grab release
carry kill turn)
(Adjective -> right left east south back smelly)
... |
ac97c934850a0cd76878f0da504fc69a8300e525149f2c3bd5bb659591f28bed | samcoy3/advent-of-code-template | Day05.hs | module Days.Day05 (runDay) where
{- ORMOLU_DISABLE -}
import Data.List
import Data.Map.Strict (Map)
import qualified Data.Map.Strict as Map
import Data.Maybe
import Data.Set (Set)
import qualified Data.Set as Set
import Data.Vector (Vector)
import qualified Data.Vector as Vec
import qualified Util.Util as U
import qu... | null | https://raw.githubusercontent.com/samcoy3/advent-of-code-template/ddc27cfd7ca36d6ebf0df2a2297347d02ee0f1a6/src/Days/Day05.hs | haskell | ORMOLU_DISABLE
---------- PARSER ------------
-------- TYPES ------------
---------- PART A ------------
---------- PART B ------------ | module Days.Day05 (runDay) where
import Data.List
import Data.Map.Strict (Map)
import qualified Data.Map.Strict as Map
import Data.Maybe
import Data.Set (Set)
import qualified Data.Set as Set
import Data.Vector (Vector)
import qualified Data.Vector as Vec
import qualified Util.Util as U
import qualified Program.RunDa... |
9b99a0b0c9595db3afe1db2eae56cea78106f71f185f740f0d1eb04239e95e79 | himura/twitter-conduit | searchSource.hs | {-# LANGUAGE OverloadedStrings #-}
module Main where
import Common
import Web.Twitter.Conduit
import Web.Twitter.Types.Lens
import Control.Lens
import Data.Conduit
import qualified Data.Conduit.List as CL
import qualified Data.Text as T
import System.Environment
main :: IO ()
main = do
[num, keyword] <- getArgs... | null | https://raw.githubusercontent.com/himura/twitter-conduit/f80058ba58fc6d71437324247eaa34b9fdd6d4d2/sample/searchSource.hs | haskell | # LANGUAGE OverloadedStrings # |
module Main where
import Common
import Web.Twitter.Conduit
import Web.Twitter.Types.Lens
import Control.Lens
import Data.Conduit
import qualified Data.Conduit.List as CL
import qualified Data.Text as T
import System.Environment
main :: IO ()
main = do
[num, keyword] <- getArgs
twInfo <- getTWInfoFromEnv
... |
e7d115f5688d2606d9688d88f2506e65ce5a685369da5cd6901aaa7ab4a9e250 | xapi-project/xen-api | xen_api.ml |
* Copyright ( C ) 2012 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 described in fi... | null | https://raw.githubusercontent.com/xapi-project/xen-api/5c2fb7b8de6b511cf17f141f3d03895c6d767b55/ocaml/xen-api-client/lib/xen_api.ml | ocaml | * HTTP-layer rejected the request. Assume permanent failure as probably
the address belonged to some other server.
* No http-level response. Assume ok to retransmit request.
for debugging --
wrong server?
wrong server?
busy? |
* Copyright ( C ) 2012 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 described in fi... |
04f29f823f9d0427f66e3c8883017c433efe2a04a9e566ff887b9d89b2510240 | Yvee1/hascard | Parser.hs | # LANGUAGE DataKinds , ExistentialQuantification , GADTs , KindSignatures , OverloadedStrings #
module Parser (parseCards) where
import Control.Arrow
import Data.Char (isSpace)
import Data.List (dropWhileEnd)
import Data.Void
import Text.Megaparsec
import Text.Megaparsec.Char
import Text.Wrap
import Data.Text (pack,... | null | https://raw.githubusercontent.com/Yvee1/hascard/1939744441839dfd04a98efe3b9a8645d252fe0f/src/Parser.hs | haskell | Type synonyms for convenience | # LANGUAGE DataKinds , ExistentialQuantification , GADTs , KindSignatures , OverloadedStrings #
module Parser (parseCards) where
import Control.Arrow
import Data.Char (isSpace)
import Data.List (dropWhileEnd)
import Data.Void
import Text.Megaparsec
import Text.Megaparsec.Char
import Text.Wrap
import Data.Text (pack,... |
0a2423e2a44a675cf6e3b7c03479893ab0e27413161f4bc673247d29a4ad9974 | coco-team/lustrec | optimize_machine.ml | (********************************************************************)
(* *)
The LustreC compiler toolset / The LustreC Development Team
Copyright 2012 - -- ONERA - CNRS - INPT
(* ... | null | https://raw.githubusercontent.com/coco-team/lustrec/b21f9820df97e661633cd4418fdab68a6c6ca67d/src/optimize_machine.ml | ocaml | ******************************************************************
LustreC is free software, distributed WITHOUT ANY WARRANTY
under the terms of the GNU Lesser General Public L... | The LustreC compiler toolset / The LustreC Development Team
Copyright 2012 - -- ONERA - CNRS - INPT
version 2.1 .
open Utils
open Lustre_types
open Machine_code_types
open Corelang
open Causality
open Machine_code_common
op... |
cc95da8e99f4d82215bb618218e34fff91fa7a26ce94e500f2e7768623b8700c | ygrek/mldonkey | list2.ml | Copyright 2001 , 2002 b8_bavard , b8_fee_carabine ,
This file is part of mldonkey .
mldonkey 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 2 of the License , or
... | null | https://raw.githubusercontent.com/ygrek/mldonkey/333868a12bb6cd25fed49391dd2c3a767741cb51/src/utils/cdk/list2.ml | ocaml | Copyright 2001 , 2002 b8_bavard , b8_fee_carabine ,
This file is part of mldonkey .
mldonkey 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 2 of the License , or
... | |
f65eda0e793e1e8ae80c8417a0e1e739c066a5dc058654b64aba60c55e63c338 | stackbuilders/sshd-lint | CheckSpec.hs | module System.SshdLint.CheckSpec (spec) where
import Test.Hspec
import System.SshdLint.Check
import qualified Data.Set as Set
import qualified Data.Map as Map
spec :: Spec
spec =
describe "normalizing and validating settings" $ do
describe "duplicatedValues" $ do
it "returns a list of keys found multi... | null | https://raw.githubusercontent.com/stackbuilders/sshd-lint/dc68894041054d1c440d336ce84f930a96efa334/spec/System/SshdLint/CheckSpec.hs | haskell | module System.SshdLint.CheckSpec (spec) where
import Test.Hspec
import System.SshdLint.Check
import qualified Data.Set as Set
import qualified Data.Map as Map
spec :: Spec
spec =
describe "normalizing and validating settings" $ do
describe "duplicatedValues" $ do
it "returns a list of keys found multi... | |
06518e0846e0b56f50bb49f50302787a2268b4fca290c67ea60d6223f56bbb6a | peruukki/nhl-score-api | param_parser_test.clj | (ns nhl-score-api.param-parser-test
(:require [clojure.test :refer :all]
[nhl-score-api.param-parser :refer :all]
[clj-time.core :as time]))
(deftest parsing-date-param
(testing "Parsing valid date"
(is (= {:values {:date (time/date-time 2021 7 30)}
:errors []}
(p... | null | https://raw.githubusercontent.com/peruukki/nhl-score-api/bdb2caf72dac235a261fafb1e3332dc59af7b6ca/test/nhl_score_api/param_parser_test.clj | clojure | (ns nhl-score-api.param-parser-test
(:require [clojure.test :refer :all]
[nhl-score-api.param-parser :refer :all]
[clj-time.core :as time]))
(deftest parsing-date-param
(testing "Parsing valid date"
(is (= {:values {:date (time/date-time 2021 7 30)}
:errors []}
(p... | |
edcb895b55079d5bc36a3e459e023e844affe3c6520af0c35763b729da8974ac | abcdw/rde | lisp.scm | ;;; rde --- Reproducible development environment.
;;;
Copyright © 2022 < >
Copyright © 2022 conses < >
;;;
;;; This file is part of rde.
;;;
;;; rde 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/abcdw/rde/9175c7b37b6861095bae4a696aa1faadf9dc572a/src/rde/serializers/lisp.scm | scheme | rde --- Reproducible development environment.
This file is part of rde.
rde is free software; you can redistribute it and/or modify it
either version 3 of the License , or ( at
your option) any later version.
rde is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the im... | Copyright © 2022 < >
Copyright © 2022 conses < >
under the terms of the GNU General Public License as published by
You should have received a copy of the GNU General Public License
(define-module (rde serializers lisp)
#:use-module (ice-9 match)
#:use-module (ice-9 format)
#:use-module (srfi srfi-1)
... |
8aca85a0059c9673309d02df8ca387bcefb7dc69aff01ab3ab99d1fabe380143 | AnyChart/export-server | logging.clj | (ns export-server.web.logging
(require [taoensso.timbre :as timbre :refer [info error]]))
(defn wrap-log-error [handler-fn result request type]
(let [error-message (if (string? result) result (:message result))
params (:form-params request)
params-str (apply str (map #(str "\n" (name (% 0)) ": " (%... | null | https://raw.githubusercontent.com/AnyChart/export-server/0ef2f084e07aaa144e38dff30e3283f686de1108/src/export_server/web/logging.clj | clojure | (ns export-server.web.logging
(require [taoensso.timbre :as timbre :refer [info error]]))
(defn wrap-log-error [handler-fn result request type]
(let [error-message (if (string? result) result (:message result))
params (:form-params request)
params-str (apply str (map #(str "\n" (name (% 0)) ": " (%... | |
74b45260477e49613272f81118aac59b58b2b826abd47714d9f2143572a3c3a0 | ajchemist/rum-mdl | loading.cljc | (ns rum.mdl.examples.loading
(:require
[rum.core :as rum]
[rum.mdl :as mdl]
[rum.mdl.demo :as demo]))
(def progress (atom 0))
(def activated (atom false))
(defn increase []
#?(:cljs
(if (< @progress 100)
(swap! progress inc)
(do
(js/clearInterval (aget js/window :interval))
... | null | https://raw.githubusercontent.com/ajchemist/rum-mdl/87376da0f73c5bcafa64bed0fa10c7b653bcf149/examples/rum/mdl/examples/loading.cljc | clojure | (ns rum.mdl.examples.loading
(:require
[rum.core :as rum]
[rum.mdl :as mdl]
[rum.mdl.demo :as demo]))
(def progress (atom 0))
(def activated (atom false))
(defn increase []
#?(:cljs
(if (< @progress 100)
(swap! progress inc)
(do
(js/clearInterval (aget js/window :interval))
... | |
d5eb91b9e034ba710206a2aaa5342a55f920cbaca93075164b7d5d7daa9e13be | helins/maestro.clj | cmd.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 helins.test.maestro.cmd
"Testing command utilities."
{:author "Adam Helinski"}
(:require [clojure.test :as T]
[... | null | https://raw.githubusercontent.com/helins/maestro.clj/994efc50744466ad6175ff6a3b4c944375102f4c/project/core/src/test/helins/test/maestro/cmd.clj | clojure | Preparation
Required aliases
Tests | 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 helins.test.maestro.cmd
"Testing command utilities."
{:author "Adam Helinski"}
(:require [clojure.test :as T]
[... |
dfa8488ca0c232284d168a1b9f2cc00583fb4d95de276eae6bc9c794a5c6faf9 | billosys/sockets | socket.clj | (ns sockets.datagram.socket
(:require
[sockets.datagram.packet :as packet])
(:refer-clojure :exclude [bound? send])
(:import
(java.net DatagramPacket
DatagramSocket)))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Protocol ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;... | null | https://raw.githubusercontent.com/billosys/sockets/21a8949c6a0ed8c52ac590753e95354dc4629777/src/sockets/datagram/socket.clj | clojure |
; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;
must be an instance or subclass of
Implementation ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Constructors ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
| (ns sockets.datagram.socket
(:require
[sockets.datagram.packet :as packet])
(:refer-clojure :exclude [bound? send])
(:import
(java.net DatagramPacket
DatagramSocket)))
(defprotocol Socket
(bind [this addr]
"Binds this `DatagramSocket` to a specific address and port.")
(close [this]... |
f51fecd44d5a4cdb3647bd9c7b67bce890fb29013db050a2ede8bf425c195a50 | shayan-najd/NativeMetaprogramming | Cpp.hs | module Options.Cpp where
import Types
cppOptions :: [Flag]
cppOptions =
[ flag { flagName = "-cpp"
, flagDescription = "Run the C pre-processor on Haskell source files"
, flagType = DynamicFlag
}
, flag { flagName = "-D⟨symbol⟩[=⟨value⟩]"
, flagDescription = "Define a symbol in... | null | https://raw.githubusercontent.com/shayan-najd/NativeMetaprogramming/24e5f85990642d3f0b0044be4327b8f52fce2ba3/utils/mkUserGuidePart/Options/Cpp.hs | haskell | module Options.Cpp where
import Types
cppOptions :: [Flag]
cppOptions =
[ flag { flagName = "-cpp"
, flagDescription = "Run the C pre-processor on Haskell source files"
, flagType = DynamicFlag
}
, flag { flagName = "-D⟨symbol⟩[=⟨value⟩]"
, flagDescription = "Define a symbol in... | |
b1e048816fe40f29ffa76745b448239bbc4420ac0297292a6064b669441d6a96 | bmeurer/ocamljit2 | t13ok.ml | (* OK *)
class type [ 'node ] extension = object method node : 'node end
class type [ 'ext ] node = object constraint 'ext = 'ext node #extension end
class x = object method node : x node = assert false end
type t = x node;;
| null | https://raw.githubusercontent.com/bmeurer/ocamljit2/ef06db5c688c1160acc1de1f63c29473bcd0055c/testsuite/tests/typing-recmod/t13ok.ml | ocaml | OK | class type [ 'node ] extension = object method node : 'node end
class type [ 'ext ] node = object constraint 'ext = 'ext node #extension end
class x = object method node : x node = assert false end
type t = x node;;
|
5beece3ce39ea293b31b1e83a1901ac972d3eebd63597a7b4723598c15540542 | scicloj/viz.clj | build.clj | (ns build (:require [clojure.tools.build.api :as b] ; for b/git-count-revs
[org.corfield.build :as bb]))
(def lib 'org.scicloj/viz.clj)
(def version "1-alpha5")
alternatively , use MAJOR.MINOR.COMMITS :
(def version (format "1.0.%s" (b/git-count-revs nil)))
(defn test "Run the tests." [opts]
(... | null | https://raw.githubusercontent.com/scicloj/viz.clj/1fb133d0427efc439782130f50ee56d0cf664121/build.clj | clojure | for b/git-count-revs | [org.corfield.build :as bb]))
(def lib 'org.scicloj/viz.clj)
(def version "1-alpha5")
alternatively , use MAJOR.MINOR.COMMITS :
(def version (format "1.0.%s" (b/git-count-revs nil)))
(defn test "Run the tests." [opts]
(bb/run-tests opts))
(defn ci "Run the CI pipeline of tests (and build the ... |
e326bb1980f1b6ba198e1998b7d90cc43f44e9b4c7389096964d20b428c21014 | weldr/bdcs | Service.hs | Copyright ( C ) 2017 Red Hat , Inc.
--
-- 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 option ) any later version .
--
-- This libr... | null | https://raw.githubusercontent.com/weldr/bdcs/cf360c3240644b4847336b9d58b2067f3aa1ec50/src/BDCS/Label/Service.hs | haskell |
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU... | Copyright ( C ) 2017 Red Hat , Inc.
License as published by the Free Software Foundation ; either
version 2.1 of the License , or ( at your option ) any later version .
You should have received a copy of the GNU Lesser General Public
module BDCS.Label.Service(matches,
mkLabel)
where
... |
7999a242c2e83d67369ca05ea934dd171fa1212b752c444535ee84f99ef648df | spell-music/csound-expression | Types.hs | {-# Language CPP #-}
module Csound.Typed.Gui.Types (
Props(..),
Prop(..), BorderType(..), Color,
Rect(..), FontType(..), Emphasis(..),
Material(..), Orient(..), LabelType(..),
ScaleFactor,
ValDiap(..), ValStep, ValScaleType(..), ValSpan(..),
linSpan, expSpan, uspan, bspan, uspanExp,
Kno... | null | https://raw.githubusercontent.com/spell-music/csound-expression/b2ebcfc7f7cf62d5e67779fea0aacefa3724db74/csound-expression-typed/src/Csound/Typed/Gui/Types.hs | haskell | # Language CPP #
| The Csound colours.
| The orientation of the widget (slider, roller). This property is
never needs to be set in practice. If this property is not set then
default orientation is calculated from the bounding box of the widget.
If the width is greater than the height then we need to use a horizont... | module Csound.Typed.Gui.Types (
Props(..),
Prop(..), BorderType(..), Color,
Rect(..), FontType(..), Emphasis(..),
Material(..), Orient(..), LabelType(..),
ScaleFactor,
ValDiap(..), ValStep, ValScaleType(..), ValSpan(..),
linSpan, expSpan, uspan, bspan, uspanExp,
KnobType(..),
Slider... |
b494942280fbae3932f20332050aef026342e5d626c1bf0b5e9d4b2eb851777d | simmone/racket-simple-qr | format-information.rkt | #lang racket
(provide (contract-out
[get-format-information (-> list?)]
))
(define (get-format-information)
'(
( (1 . 9)
(2 . 9)
... | null | https://raw.githubusercontent.com/simmone/racket-simple-qr/904f1491bc521badeafeabd0d7d7e97e3d0ee958/simple-qr/share/format-information.rkt | racket | #lang racket
(provide (contract-out
[get-format-information (-> list?)]
))
(define (get-format-information)
'(
( (1 . 9)
(2 . 9)
... | |
d6bc2d7d2d60c594ba77970e094683c668c0dc5f935977b533dbd4c9af94a5ac | braidchat/braid | core.cljs | (ns braid.quests.client.core
(:require
[clojure.spec.alpha :as s]
[re-frame.core :as re-frame]
[braid.quests.client.helpers :as helpers]
[braid.quests.client.remote-handlers]))
(defn initial-data-handler
[db data]
(helpers/set-quest-records db (data :quest-records)))
(def event-listener
(fn [e... | null | https://raw.githubusercontent.com/braidchat/braid/2e44eb6e77f1d203115f9b9c529bd865fa3d7302/src/braid/quests/client/core.cljs | clojure | (ns braid.quests.client.core
(:require
[clojure.spec.alpha :as s]
[re-frame.core :as re-frame]
[braid.quests.client.helpers :as helpers]
[braid.quests.client.remote-handlers]))
(defn initial-data-handler
[db data]
(helpers/set-quest-records db (data :quest-records)))
(def event-listener
(fn [e... | |
e73a5ee0328da0922d81a0b943f0c002ef380572e8afe4b7b57eefe8766f60bf | chaw/r7rs-libs | byte-number-test.sps | ;; Tests for byte-number taken from byte-number comments
(import (scheme base)
(scheme inexact)
(slib byte)
(slib byte-number)
(srfi 64)
(robin srfi64-utils))
(test-begin "slib-byte-number")
(test-equal 15 (bytes->integer (bytes 0 0 0 15) -4))
(test-equal 15 (bytes->int... | null | https://raw.githubusercontent.com/chaw/r7rs-libs/b8b625c36b040ff3d4b723e4346629a8a0e8d6c2/slib-tests/byte-number-test.sps | scheme | Tests for byte-number taken from byte-number comments
; TODO : Fails with 4.9e-324
; Larceny fails can not convert + inf.0
(test-assert #t))
; Larceny gives ( 255 192 0 0 )
; Larceny gives ( 255 192 0 0 ) |
(import (scheme base)
(scheme inexact)
(slib byte)
(slib byte-number)
(srfi 64)
(robin srfi64-utils))
(test-begin "slib-byte-number")
(test-equal 15 (bytes->integer (bytes 0 0 0 15) -4))
(test-equal 15 (bytes->integer (bytes 0 0 0 15) 4))
(test-equal -1 (bytes->i... |
564049b75a9c9308c139ac7447307d8bdbfcc439732fa08888f0551a90412c73 | xmonad/xmonad-contrib | Maximize.hs | # LANGUAGE FlexibleContexts , FlexibleInstances , MultiParamTypeClasses #
-----------------------------------------------------------------------------
-- |
-- Module : XMonad.Layout.Maximize
-- Description : Temporarily yank the focused window out of the layout to mostly fill the screen.
Copyright : ( c... | null | https://raw.githubusercontent.com/xmonad/xmonad-contrib/571d017b8259340971db1736eedc992a54e9022c/XMonad/Layout/Maximize.hs | haskell | ---------------------------------------------------------------------------
|
Module : XMonad.Layout.Maximize
Description : Temporarily yank the focused window out of the layout to mostly fill the screen.
License : BSD3-style (see LICENSE)
Maintainer : xmonad#jwebb,sygneca,com
Stability : unstab... | # LANGUAGE FlexibleContexts , FlexibleInstances , MultiParamTypeClasses #
Copyright : ( c ) 2007
module XMonad.Layout.Maximize (
maximize,
maximizeWithPadding,
maximizeRestore,
Maximize, MaximizeRestore,
) where
import XMonad
import qualified XMonad.StackSet as S
import X... |
da3a6f65021c2ecb4d71a3da246ca42659eac333ed5e962c56355e9f38621667 | AshleyYakeley/Truth | Open.hs | module Pinafore.Language.Type.Storable.Open
( OpenEntityType(..)
, OpenEntity(..)
, OpenEntityFamily(..)
, openStorableFamilyWitness
, openStorableGroundType
, getOpenEntityType
) where
import Data.Shim
import Language.Expression.Common
import Language.Expression.Dolan
import Pinafore.Base
... | null | https://raw.githubusercontent.com/AshleyYakeley/Truth/c1c9e70f2789ba8bd336c06fd1bdc0f41675b9c1/Pinafore/pinafore-language/lib/Pinafore/Language/Type/Storable/Open.hs | haskell | module Pinafore.Language.Type.Storable.Open
( OpenEntityType(..)
, OpenEntity(..)
, OpenEntityFamily(..)
, openStorableFamilyWitness
, openStorableGroundType
, getOpenEntityType
) where
import Data.Shim
import Language.Expression.Common
import Language.Expression.Dolan
import Pinafore.Base
... | |
5af989ece4bdb44c7faaed0642a12d6addfdf954569255904c3408e5c1b124cd | ghcjs/ghcjs-base | ST.hs | # LANGUAGE Rank2Types , UnboxedTuples , MagicHash #
module JavaScript.Array.ST
( STJSArray
, build
, create
, length
, null
, append
, fromList
, toList
, read
, write
, push
, pop
, unshift
, shift
, reverse
, take
, drop
, freeze
, unsafeFre... | null | https://raw.githubusercontent.com/ghcjs/ghcjs-base/18f31dec5d9eae1ef35ff8bbf163394942efd227/JavaScript/Array/ST.hs | haskell | # INLINE shift #
# INLINE take #
# INLINE drop # | # LANGUAGE Rank2Types , UnboxedTuples , MagicHash #
module JavaScript.Array.ST
( STJSArray
, build
, create
, length
, null
, append
, fromList
, toList
, read
, write
, push
, pop
, unshift
, shift
, reverse
, take
, drop
, freeze
, unsafeFre... |
a8afe2b6a6c64244ecff4a62ddfb73870a1b1ea9dca3ac03a8ede2424448d42c | jarvinet/scheme | apply.scm | (define (a)
(apply + '(1 2 3)))
| null | https://raw.githubusercontent.com/jarvinet/scheme/47633d7fc4d82d739a62ceec75c111f6549b1650/src/apply.scm | scheme | (define (a)
(apply + '(1 2 3)))
| |
16e3cb7460eaf884118984836a2c051f8c799afee14df63b74a69ee6c5b3488a | antono/guix-debian | plotutils.scm | ;;; GNU Guix --- Functional package management for GNU
Copyright © 2013 , 2014 < >
;;;
;;; This file is part of GNU Guix.
;;;
GNU is free software ; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 3 of t... | null | https://raw.githubusercontent.com/antono/guix-debian/85ef443788f0788a62010a942973d4f7714d10b4/gnu/packages/plotutils.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 © 2013 , 2014 < >
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 packages plotutils)
#:use-module (guix licenses)
#:use-module (guix packages)
#:u... |
5451cfc27a36fb7fbcc756893adab540bba5b515ec36b2aa6a071b195dfd4400 | zadean/xqerl | fn_months_from_duration_SUITE.erl | -module('fn_months_from_duration_SUITE').
-include_lib("common_test/include/ct.hrl").
-export([
all/0,
groups/0,
suite/0
]).
-export([
init_per_suite/1,
init_per_group/2,
end_per_group/2,
end_per_suite/1
]).
-export(['fn-months-from-duration1args-1'/1]).
-export(['fn-months-from-duration... | null | https://raw.githubusercontent.com/zadean/xqerl/1a94833e996435495922346010ce918b4b0717f2/test/fn/fn_months_from_duration_SUITE.erl | erlang | -module('fn_months_from_duration_SUITE').
-include_lib("common_test/include/ct.hrl").
-export([
all/0,
groups/0,
suite/0
]).
-export([
init_per_suite/1,
init_per_group/2,
end_per_group/2,
end_per_suite/1
]).
-export(['fn-months-from-duration1args-1'/1]).
-export(['fn-months-from-duration... | |
5eb7bcba3b61a700b7351d2298664465faf2754dcff1827851ed6f88883a30da | zshipko/ocaml-py | py_type.ml | module P = Py_base
let type_name obj =
let ptr = P.Object.to_c_ptr obj |> Ctypes.from_voidp Init._Py_object in
if Ctypes.is_null ptr
then None
else
let ob_type = Ctypes.getf (Ctypes.(!@) ptr) Init.ob_type in
if Ctypes.is_null ob_type
then None
else Some (Ctypes.getf (Ctypes.(!@) ob_type) Init.t... | null | https://raw.githubusercontent.com/zshipko/ocaml-py/c6c94d8fea0c69e34cb89df52f63ae86be837a45/src/py_type.ml | ocaml | The related cpython constants can be found in:
Floats are not handled in the same way as other basic
types so we compare the object type with the float object
type. This will not work for float subclasses.
| module P = Py_base
let type_name obj =
let ptr = P.Object.to_c_ptr obj |> Ctypes.from_voidp Init._Py_object in
if Ctypes.is_null ptr
then None
else
let ob_type = Ctypes.getf (Ctypes.(!@) ptr) Init.ob_type in
if Ctypes.is_null ob_type
then None
else Some (Ctypes.getf (Ctypes.(!@) ob_type) Init.t... |
9cc25529c1e3513d8df2520f3d24eb29bc1ddbc11de15b8fa287788a3f233dab | ChrisTitusTech/gimphelp | 210_create-new_glass-text.scm | ; 210_create-new_glass-text.scm
last modified / tested by [ gimphelp.org ]
05/11/2019 on GIMP 2.10.10
;==================================================
;
; Installation:
; This script should be placed in the user or system-wide script folder.
;
; Windows 7/10
C:\Program Files\GIMP 2\share\gimp\2.0\scripts
; o... | null | https://raw.githubusercontent.com/ChrisTitusTech/gimphelp/fdbc7e3671ce6bd74cefd83ecf7216e5ee0f1542/gimp_scripts-2.10/210_create-new_glass-text.scm | scheme | 210_create-new_glass-text.scm
==================================================
Installation:
This script should be placed in the user or system-wide script folder.
Windows 7/10
or
Linux
/home/yourname/.config/GIMP/2.10/scripts
or
Linux system-wide
/usr/share/gimp/2.0/scripts
====================... | last modified / tested by [ gimphelp.org ]
05/11/2019 on GIMP 2.10.10
C:\Program Files\GIMP 2\share\gimp\2.0\scripts
C:\Users\YOUR - NAME\AppData\Roaming\GIMP\2.10\scripts
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the Lice... |
830c0a5d042a17056dd2f72447cf07803fee0a1c8943dc87a3b87c00702995ec | sampou-org/ghc_users_guide_ja | KeepingIntermediates.hs | module Options.KeepingIntermediates where
import Types
keepingIntermediatesOptions :: [Flag]
keepingIntermediatesOptions =
[ flag { flagName = "-keep-hc-file, -keep-hc-files"
, flagDescription = "中間の ``.hc`` ファイルを保持"
, flagType = DynamicFlag
}
, flag { flagName = "-keep-hi-files"
... | null | https://raw.githubusercontent.com/sampou-org/ghc_users_guide_ja/91ac4ee4347802bbfc63686cfcbd4fc12f95a584/8.2.2/mkUserGuidePart/Options/KeepingIntermediates.hs | haskell | module Options.KeepingIntermediates where
import Types
keepingIntermediatesOptions :: [Flag]
keepingIntermediatesOptions =
[ flag { flagName = "-keep-hc-file, -keep-hc-files"
, flagDescription = "中間の ``.hc`` ファイルを保持"
, flagType = DynamicFlag
}
, flag { flagName = "-keep-hi-files"
... | |
33068df577a12f99938c5528bb96463147b79ed74e358b436625d4e173b8b951 | masaeedu/monoidal | Extra.hs | {-# LANGUAGE ImpredicativeTypes #-}
module Hedgehog.Extra where
import GHC.Exts
type Lift1 c f = (forall x. c x => c (f x) :: Constraint)
type Lift2 c t = (forall x y. (c x, c y) => c (t x y) :: Constraint)
type Testable a = (Eq a, Show a)
type Testable1 f = (Lift1 Eq f, Lift1 Show f)
type Testable2 t = (Lift2 Eq ... | null | https://raw.githubusercontent.com/masaeedu/monoidal/c48fa8745a08bad58e6d37041e59a0e88d10805d/test/Hedgehog/Extra.hs | haskell | # LANGUAGE ImpredicativeTypes # | module Hedgehog.Extra where
import GHC.Exts
type Lift1 c f = (forall x. c x => c (f x) :: Constraint)
type Lift2 c t = (forall x y. (c x, c y) => c (t x y) :: Constraint)
type Testable a = (Eq a, Show a)
type Testable1 f = (Lift1 Eq f, Lift1 Show f)
type Testable2 t = (Lift2 Eq t, Lift2 Show t)
|
0b5738f9b655f060eeada6c14945067a02a22055e2370a0c71c0acfb6979f052 | Viasat/halite | test_prop_top_concrete_schema_check.clj | Copyright ( c ) 2022 Viasat , Inc.
Licensed under the MIT license
(ns com.viasat.halite.propagate.test-prop-top-concrete-schema-check
"This namespace exists to provide a test case for propagate that runs with schema validation on."
(:require [com.viasat.halite.propagate :as propagate]
[schema.test ... | null | https://raw.githubusercontent.com/Viasat/halite/66eb18dc6e2ef9795cf48a6ee4e87887c47dbb81/test/com/viasat/halite/propagate/test_prop_top_concrete_schema_check.clj | clojure | (time (clojure.test/run-tests)) | Copyright ( c ) 2022 Viasat , Inc.
Licensed under the MIT license
(ns com.viasat.halite.propagate.test-prop-top-concrete-schema-check
"This namespace exists to provide a test case for propagate that runs with schema validation on."
(:require [com.viasat.halite.propagate :as propagate]
[schema.test ... |
008a4e121ad0e46856cc7252f759b2791c0565b9e1f6be155d6393a7b3b3f2ae | tiagodalloca/city-weather-clj | open_weather.clj | (ns city-weather-clj.api-client.open-weather
(:require [clj-http.client :as client]
[clojure.data.json :as json]))
(defprotocol OpenWeatherClient
(get-city-weather [this city]))
(defrecord RecordOpenWeatherClient [endpoint api-key]
OpenWeatherClient
(get-city-weather
[_ city]
(-> (client/g... | null | https://raw.githubusercontent.com/tiagodalloca/city-weather-clj/de41488eba926abe6b8dfeec67fdad7c718dbd8f/src/city_weather_clj/api_client/open_weather.clj | clojure | (ns city-weather-clj.api-client.open-weather
(:require [clj-http.client :as client]
[clojure.data.json :as json]))
(defprotocol OpenWeatherClient
(get-city-weather [this city]))
(defrecord RecordOpenWeatherClient [endpoint api-key]
OpenWeatherClient
(get-city-weather
[_ city]
(-> (client/g... | |
84f16bd2db0da7df9a0e6c18381a6eb40fdb11eb115dbcd234b4abaebe79fe26 | larrychristensen/orcpub | ua_race_feats.cljc | (ns orcpub.dnd.e5.templates.ua-race-feats
(:require [orcpub.dnd.e5.modifiers :as mod5e]
[orcpub.dnd.e5.options :as opt5e]
[orcpub.dnd.e5.character :as char5e]
[orcpub.dnd.e5.units :as units5e]
[orcpub.template :as t]
[orcpub.common :as common]
[r... | null | https://raw.githubusercontent.com/larrychristensen/orcpub/e83995857f7e64af1798009a45a0b03abcd3a4be/src/cljc/orcpub/dnd/e5/templates/ua_race_feats.cljc | clojure | (ns orcpub.dnd.e5.templates.ua-race-feats
(:require [orcpub.dnd.e5.modifiers :as mod5e]
[orcpub.dnd.e5.options :as opt5e]
[orcpub.dnd.e5.character :as char5e]
[orcpub.dnd.e5.units :as units5e]
[orcpub.template :as t]
[orcpub.common :as common]
[r... | |
16666e04421b0370aa25230ca77ad114bd3048b19cd83a7d545eb0b1bbfb18fc | racket/gui | test-case-box.rkt | (require
mzlib/class
mzlib/list
mred
mzlib/unitsig
drscheme/tool
mzlib/etc
mzlib/match
framework
syntax/readerr
string-constants
embedded-gui
string-constants)
(define test-case:program-editor% text%)
(define test-case-box%
(class editor-snip%
(inherit get-admin)
(init-field
... | null | https://raw.githubusercontent.com/racket/gui/d1fef7a43a482c0fdd5672be9a6e713f16d8be5c/gui-lib/embedded-gui/private/tests/test-case-box.rkt | racket | I string-append here to give space after the label
They look a lot better without something right after them.
NOTE: When you add the collapse feature, be sure that
error-reporting on collapsed test-cases highlight the
((-> void?) (-> void?) (symbols 'up 'down) . -> . snip%)
a snip which acts as a toggle button for... | (require
mzlib/class
mzlib/list
mred
mzlib/unitsig
drscheme/tool
mzlib/etc
mzlib/match
framework
syntax/readerr
string-constants
embedded-gui
string-constants)
(define test-case:program-editor% text%)
(define test-case-box%
(class editor-snip%
(inherit get-admin)
(init-field
... |
605b14910ed7e841a9f36b15f6d819fc5841b8c7e59863faf92f72cd92f2a696 | PhDP/Akarui | Fuzzy2.hs | -- | Module for type-2 fuzzy logic, where the fuzziness itself is fuzzy.
module Akarui.MVL.Fuzzy2
( Fuzzy2()
, mkFuzzyInterval
, uncertainty
) where
import Akarui.MVL.Truth
import Akarui.MVL.Fuzzy
data Fuzzy2 =
FuzzyInterval Fuzzy Fuzzy
| FuzzyFun ( Fuzzy - > Fuzzy )
instance Truth Fuzzy2 where
order _ = 2
... | null | https://raw.githubusercontent.com/PhDP/Akarui/4ad888d011f7115677e8f9ba18887865f5150746/Akarui/MVL/Fuzzy2.hs | haskell | | Module for type-2 fuzzy logic, where the fuzziness itself is fuzzy. | module Akarui.MVL.Fuzzy2
( Fuzzy2()
, mkFuzzyInterval
, uncertainty
) where
import Akarui.MVL.Truth
import Akarui.MVL.Fuzzy
data Fuzzy2 =
FuzzyInterval Fuzzy Fuzzy
| FuzzyFun ( Fuzzy - > Fuzzy )
instance Truth Fuzzy2 where
order _ = 2
isFalse (FuzzyInterval x y) = isFalse x && isFalse y
isTrue (FuzzyI... |
8c8505cd6863b430cb5ae3f3c2f2f1a455a3be7ddece69c068ca787a49adc1ff | robdockins/edison | Utils.hs | -- |
-- Module : Data.Edison.Coll.Utils
Copyright : Copyright ( c ) 1998
License : MIT ; see COPYRIGHT file for terms and conditions
--
Maintainer : robdockins AT fastmail DOT fm
-- Stability : stable
Portability : GHC , Hugs ( MPTC and FD )
--
-- This module provides ... | null | https://raw.githubusercontent.com/robdockins/edison/b70086fa2d53f7b1a34187100a802e64c37a0145/edison-api/src/Data/Edison/Coll/Utils.hs | haskell | |
Module : Data.Edison.Coll.Utils
Stability : stable
This module provides implementations of several useful operations
that are not included in the collection classes themselves. This is
usually because the operation involves transforming a collection into a
different type of collection; ... | Copyright : Copyright ( c ) 1998
License : MIT ; see COPYRIGHT file for terms and conditions
Maintainer : robdockins AT fastmail DOT fm
Portability : GHC , Hugs ( MPTC and FD )
module Data.Edison.Coll.Utils where
import Prelude hiding (map,null,foldr,foldl,foldr1,foldl1,lookup,filt... |
8dcb521da78170260b93f3be2ec100335f6f25d16d14cde9b8c15255f213c3bb | cognitect/transit-cljs | core.cljs | Copyright 2014 Cognitect . 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 to in writing, so... | null | https://raw.githubusercontent.com/cognitect/transit-cljs/9fe7e61799c0c7523ac8cdbd91c7de2f91d174d1/test/transit/roundtrip/core.cljs | clojure |
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 pe... | Copyright 2014 Cognitect . All Rights Reserved .
distributed under the License is distributed on an " AS - IS " BASIS ,
(ns transit.roundtrip.core
(:require [cognitect.transit :as t]))
(def transport (or (aget (.-argv js/process) 2) :json))
(def r (t/reader transport))
(def w (t/writer transport))
(.on (.-stdi... |
f7748a7c3cd7d00fce1531759bcdcb75733e9539f6235738f6d8ee9305177be1 | MyDataFlow/ttalk-server | mod_private_riak.erl | %%==============================================================================
Copyright 2015 Erlang Solutions Ltd.
%%
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
%%
... | null | https://raw.githubusercontent.com/MyDataFlow/ttalk-server/07a60d5d74cd86aedd1f19c922d9d3abf2ebf28d/apps/ejabberd/src/mod_private_riak.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 ex... | Copyright 2015 Erlang Solutions Ltd.
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(mod_private_riak).
-behaviour(mod_private).
-export([init/2,
multi_set_data/3,
multi_get_data/3,
remo... |
f8a18ae358eae93d2ec1123a983f727d070aed1c13af2996267ca6913111fff9 | ijvcms/chuanqi_dev | uid_mod.erl | %%%-------------------------------------------------------------------
@author zhengsiying
( C ) 2015 , < COMPANY >
%%% @doc
%%%
%%% @end
Created : 21 . 五月 2015 上午11:09
%%%-------------------------------------------------------------------
-module(uid_mod).
-include("common.hrl").
-include("uid.hrl").
-behavio... | null | https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/system/uid/uid_mod.erl | erlang | -------------------------------------------------------------------
@doc
@end
-------------------------------------------------------------------
API
gen_server callbacks
===================================================================
API
===================================================================
---... | @author zhengsiying
( C ) 2015 , < COMPANY >
Created : 21 . 五月 2015 上午11:09
-module(uid_mod).
-include("common.hrl").
-include("uid.hrl").
-behaviour(gen_server).
-export([start_link/0]).
-export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]).
-define(SERVER, ?MODULE).
-... |
c413d20220257ae1402c195ca270c593f1900226782bdabaae50644eb699a0dc | mtakuya/gauche-yahoo-jp | video-search.scm | #!/usr/bin/env gosh
(use yahoo-jp)
(define appid "YOUR-APPID")
(define yahoo-obj (make-yahoo-jp appid))
(define res
(yahoo:video-search yahoo-obj
'((query "yahoo")
(results 5)
(format "flash"))))
(for-each (lambda (lst)... | null | https://raw.githubusercontent.com/mtakuya/gauche-yahoo-jp/3abdbf3b10d3db1923329e41b3a8d8cff5796413/example/video-search.scm | scheme | #!/usr/bin/env gosh
(use yahoo-jp)
(define appid "YOUR-APPID")
(define yahoo-obj (make-yahoo-jp appid))
(define res
(yahoo:video-search yahoo-obj
'((query "yahoo")
(results 5)
(format "flash"))))
(for-each (lambda (lst)... | |
dd6d51a748a4fbd7af6c5ab01189af76e9f312df5d8d8c46d46735f9f4eeea47 | russell/cl-git | reflog.lisp | -*- Mode : Lisp ; Syntax : COMMON - LISP ; Base : 10 -*-
;; cl-git is a Common Lisp interface to git repositories.
Copyright ( C ) 2011 - 2022 < >
;;
;; 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 ... | null | https://raw.githubusercontent.com/russell/cl-git/ab58b1dcf34649899085e9df95962ef1c9d902c3/src/reflog.lisp | lisp | Syntax : COMMON - LISP ; Base : 10 -*-
cl-git is a Common Lisp interface to git repositories.
This program is free software: you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public License
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY;... |
Copyright ( C ) 2011 - 2022 < >
as published by the Free Software Foundation , either version 3 of
the License , or ( at your option ) any later version .
You should have received a copy of the GNU Lesser General Public
(in-package #:cl-git)
(define-foreign-type reflog (git-pointer)
nil
(:simple-pars... |
e2afc307f8a2392e6d7d9aee01808f788641ecb0c7309aab4d5801419839c8c8 | anmonteiro/ocaml-quic | qx509.ml | let read_file path =
let ic = open_in_bin path in
let contents = really_input_string ic (in_channel_length ic) in
close_in ic;
Cstruct.of_string contents
let private_of_pems ~cert ~priv_key =
let pem = read_file cert in
let certs =
match X509.Certificate.decode_pem_multiple pem with
| Ok cs -> cs
... | null | https://raw.githubusercontent.com/anmonteiro/ocaml-quic/72e5c5c35e4881e47eee7895c96058333ca84b08/examples/eio/qx509.ml | ocaml | (o failure @@ Printf.sprintf "Private certificates (%s): %s" cert)
(o failure @@ Printf.sprintf "Private key (%s): %s" priv_key) | let read_file path =
let ic = open_in_bin path in
let contents = really_input_string ic (in_channel_length ic) in
close_in ic;
Cstruct.of_string contents
let private_of_pems ~cert ~priv_key =
let pem = read_file cert in
let certs =
match X509.Certificate.decode_pem_multiple pem with
| Ok cs -> cs
... |
ce2fd0c055be4cf0ef4ee5e195f53a7134a15f5ed86ae7eedba40181e213213a | hemmi/coq2scala | coqide.ml | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/hemmi/coq2scala/d10f441c18146933a99bf2088116bd213ac3648d/coq-8.4pl2-old/ide/coqide.ml | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
* Have we used admit or declarative ... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
open Preferences
open Gtk_par... |
da615a05a0a5512149d9f4d0070ec21b02b8d58dfa3452555f82438e3e665b48 | finkel-lang/finkel | Setup.hs | import Distribution.Simple.Finkel
main = fnkMain
| null | https://raw.githubusercontent.com/finkel-lang/finkel/c3c7729d5228bd7e0cf76e8ff05fe2f79a0ec0a2/finkel-setup/test/data/p01/Setup.hs | haskell | import Distribution.Simple.Finkel
main = fnkMain
| |
439d772647395d8725c7e75dc9bdb2afd28e8c33f3fd29d50cd43c0a9f562950 | 8c6794b6/haskell-sc-scratch | Interpreter.hs | |
Module : $ Header$
License : : unstable
Portability : portable
Module to exporting pattern interpreters .
Module : $Header$
License : BSD3
Stability : unstable
Portability : portable
Module to exporting pattern interpreters.
-}
module Sound.SC3.Lepton.Pattern.Interpreter ( modu... | null | https://raw.githubusercontent.com/8c6794b6/haskell-sc-scratch/22de2199359fa56f256b544609cd6513b5e40f43/hsc3-lepton/src/lib/Sound/SC3/Lepton/Pattern/Interpreter.hs | haskell | |
Module : $ Header$
License : : unstable
Portability : portable
Module to exporting pattern interpreters .
Module : $Header$
License : BSD3
Stability : unstable
Portability : portable
Module to exporting pattern interpreters.
-}
module Sound.SC3.Lepton.Pattern.Interpreter ( modu... | |
4bf911bd9bbb766a2e77dd31abeb155e108f5d885290baea296c6ea05be3415c | dra27/stdlib-sync | array.mli | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/dra27/stdlib-sync/1786258982ed27bd0142b866059ad3fb158ea062/stdlib/array.mli | ocaml | ************************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
* Array operations .
The labeled version of this module can be used as described in the
{ !... |
885148897425fa2581cad362abbff103097698623f3fb220c9507833a76e5412 | MinaProtocol/mina | test_stubs.ml | open Core
module Balance = struct
include Currency.Balance
let to_int = to_nanomina_int
let of_int = of_nanomina_int_exn
end
module Account = struct
(* want bin_io, not available with Account.t *)
type t = Mina_base.Account.Stable.Latest.t
[@@deriving bin_io_unversioned, sexp, equal, compare, hash, yojs... | null | https://raw.githubusercontent.com/MinaProtocol/mina/46a32b07d3d2fa57beee34e0d73d633610ecb6cf/src/lib/merkle_ledger_tests/test_stubs.ml | ocaml | want bin_io, not available with Account.t
use Account items needed
to prevent pre-image attack,
* important impossible to create an account such that (merge a b = hash_account account)
sort by key
TODO: The name of this value should be dynamically generated per test run
TODO: Non-default tokens | open Core
module Balance = struct
include Currency.Balance
let to_int = to_nanomina_int
let of_int = of_nanomina_int_exn
end
module Account = struct
type t = Mina_base.Account.Stable.Latest.t
[@@deriving bin_io_unversioned, sexp, equal, compare, hash, yojson]
type key = Mina_base.Account.Key.Stable.Lat... |
85988435b3217b3af47558e58b9ae6df2b12c9292543779f3cc9d88f0968216c | jonatack/cl-kraken | ohlc.lisp | ;;;; cl-kraken/tests/ohlc.lisp
(defpackage #:cl-kraken/tests/ohlc
(:use #:cl #:cl-kraken #:rove)
(:import-from #:local-time
#:now
#:timestamp-to-unix)
(:import-from #:jsown
#:filter)
(:import-from #:parse-float
#:parse-float))
(in-package #:cl-kra... | null | https://raw.githubusercontent.com/jonatack/cl-kraken/e5b438eb821bf7dc3514a44ff84f15f393b4e393/tests/ohlc.lisp | lisp | cl-kraken/tests/ohlc.lisp
Test correct handling of keyword parameters to query params.
Test invalid PAIR values.
Test invalid INTERVAL values.
Test RAW parameter.
Test invalid RAW values. |
(defpackage #:cl-kraken/tests/ohlc
(:use #:cl #:cl-kraken #:rove)
(:import-from #:local-time
#:now
#:timestamp-to-unix)
(:import-from #:jsown
#:filter)
(:import-from #:parse-float
#:parse-float))
(in-package #:cl-kraken/tests/ohlc)
(deftest ohlc
... |
46773296c48c43c86beeb6d1ecd946fde7824c86ac71bdef5a52de6af9048c5e | luminus-framework/luminus-template | jetty.clj | (ns leiningen.new.jetty
(:require [leiningen.new.common :refer :all]
[leiningen.core.main :as main]))
(defn jetty-features [[assets options :as state]]
(if (some #{"+jetty"} (:features options))
(do
(let [java-version (System/getProperty "java.version")]
(when (and (= "jetty" (:server... | null | https://raw.githubusercontent.com/luminus-framework/luminus-template/f6e69331ad40cc4a76aed497930816816aa1f98d/src/leiningen/new/jetty.clj | clojure | (ns leiningen.new.jetty
(:require [leiningen.new.common :refer :all]
[leiningen.core.main :as main]))
(defn jetty-features [[assets options :as state]]
(if (some #{"+jetty"} (:features options))
(do
(let [java-version (System/getProperty "java.version")]
(when (and (= "jetty" (:server... | |
df8e1c9891bfffbc87bb5b434c88c536fc4dc0474044e63909cf4965fba0df0d | yetibot/core | logging.clj | (ns yetibot.core.test.logging
(:require [yetibot.core.logging :as l]
[yetibot.core.config :refer [get-config]]
[midje.sweet :refer [facts fact => provided anything
contains]]))
(facts
"about log-level"
(fact
"it will return a :debug log level when the :val... | null | https://raw.githubusercontent.com/yetibot/core/c4c2448bfe2ec3577452959855f8ddea2883e29f/test/yetibot/core/test/logging.clj | clojure | (ns yetibot.core.test.logging
(:require [yetibot.core.logging :as l]
[yetibot.core.config :refer [get-config]]
[midje.sweet :refer [facts fact => provided anything
contains]]))
(facts
"about log-level"
(fact
"it will return a :debug log level when the :val... | |
e76e7b8d7d323d54039ec695a2b0e45afdedba97cdee87c3e7cd0ba7f60d37fb | MinaProtocol/mina | account_balance_request.ml |
* This file has been generated by the OCamlClientCodegen generator for openapi - generator .
*
* Generated by : -generator.tech
*
* Schema Account_balance_request.t : An AccountBalanceRequest is utilized to make a balance request on the /account / balance endpoint . If the block_identifier is populated ,... | null | https://raw.githubusercontent.com/MinaProtocol/mina/a80b00221953c26ff158e7375a948b5fa9e7bd8b/src/lib/rosetta_models/account_balance_request.ml | ocaml |
* This file has been generated by the OCamlClientCodegen generator for openapi - generator .
*
* Generated by : -generator.tech
*
* Schema Account_balance_request.t : An AccountBalanceRequest is utilized to make a balance request on the /account / balance endpoint . If the block_identifier is populated ,... | |
fda1eeb4362537546768f176b217e6d1a8a71ea1a7a97c53647843e3e099d617 | hipsleek/hipsleek | cfout.ml | #include "xdebug.cppo"
this module contains funtions relating to output of
this module contains funtions relating to output of cformula
*)
open Globals
open Global_var
open VarGen
open Gen
open Exc.GTable
open VarGen
open Perm
open Label_only
open Label
open Cformula
module CP = Cpure
module MCP = Mcpure
let n_... | null | https://raw.githubusercontent.com/hipsleek/hipsleek/596f7fa7f67444c8309da2ca86ba4c47d376618c/bef_indent/cfout.ml | ocaml | (Str.global_replace reg "" id)^ "_" ^Globals.fresh_inf_number()
let cut_id = if Gen.BList.mem_eq (fun s1 s2 -> String.compare s1 s2 = 0) cut_id0 fields then
cut_id0 ^ pad
else cut_id0
in
(Str.global_replace reg "" id)^ "_" ^Globals.fresh_inf_number()
let r = (match re with
| CP.Var(sv, pos) -> sv
| _... | #include "xdebug.cppo"
this module contains funtions relating to output of
this module contains funtions relating to output of cformula
*)
open Globals
open Global_var
open VarGen
open Gen
open Exc.GTable
open VarGen
open Perm
open Label_only
open Label
open Cformula
module CP = Cpure
module MCP = Mcpure
let n_... |
a6342448282e499a85eb0f90d85767e5c4a02cddb3c1ba01b4f17b9d0af04b7c | minad/henk | TypeSystems.hs | module Henk.TypeSystems where
import Henk.HenkAS
type Specification = (Sorts, Axioms, Rules)
type Sorts = [Sort]
type Axiom = (Sort,Sort)
type Axioms = [Axiom]
type Rule = (Sort,Sort,Sort)
type Rules = [Rule]
-- lambda cube sorts
lcs :: Sorts
lcs = [Star,Box]
-- lambda cube a... | null | https://raw.githubusercontent.com/minad/henk/73135b5fd2ce2b8f03fe0082bc7be621eb432e94/Henk/TypeSystems.hs | haskell | lambda cube sorts
lambda cube axioms
lambda omega and the calc. of constructions
lambda omega and the calculus of constructions | module Henk.TypeSystems where
import Henk.HenkAS
type Specification = (Sorts, Axioms, Rules)
type Sorts = [Sort]
type Axiom = (Sort,Sort)
type Axioms = [Axiom]
type Rule = (Sort,Sort,Sort)
type Rules = [Rule]
lcs :: Sorts
lcs = [Star,Box]
lca :: Axioms
lca = [(Star,Box)]
... |
100a1530e55dbadf7413138c3075ab11d6cffa0548c18bbab27c5771491ea479 | Arnhav-Datar/EffPPL | cont_sampling.ml | open Effppl.Infer
open Effppl.Print
let f1 () =
let* x1 = beta 1. 1. in
let* x2 = (mk 2.) +. ((mk 3.) *.x1) in
x2
;;
let f2 ( ) =
let * x1 = beta 1 . 1 . in
let v1 =
if((get x1 ) > 0.5 ) then
( mk 1.0 )
else
( mk 0.0 )
in v1
; ;
let* x1 = beta 1. 1. in
let v1 =
if((get x1) > 0.5) ... | null | https://raw.githubusercontent.com/Arnhav-Datar/EffPPL/b24155dd447abb7e6303d623e139d9cc9c65b291/lib/_build/default/models/sampling/cont_sampling.ml | ocaml | open Effppl.Infer
open Effppl.Print
let f1 () =
let* x1 = beta 1. 1. in
let* x2 = (mk 2.) +. ((mk 3.) *.x1) in
x2
;;
let f2 ( ) =
let * x1 = beta 1 . 1 . in
let v1 =
if((get x1 ) > 0.5 ) then
( mk 1.0 )
else
( mk 0.0 )
in v1
; ;
let* x1 = beta 1. 1. in
let v1 =
if((get x1) > 0.5) ... | |
08cc17e91893a5926db5efe809ff432142728c3200b09d44b0291ecd31f8abce | kraison/vivace-graph | session.lisp | (in-package #:vivace-graph)
(defvar *sessions* (make-hash-table :test 'equalp :synchronized t))
(defvar *session* nil)
(defvar *thread-list* nil)
(defvar *thread-list-lock* (make-recursive-lock))
(defparameter +buflen+ 10240)
(define-condition session-error (error)
((reason :initarg :reason))
(:report (lambda (er... | null | https://raw.githubusercontent.com/kraison/vivace-graph/6b5b5eca3e2613e48846da326ecf36cd9dcd7ceb/session.lisp | lisp | (in-package #:vivace-graph)
(defvar *sessions* (make-hash-table :test 'equalp :synchronized t))
(defvar *session* nil)
(defvar *thread-list* nil)
(defvar *thread-list-lock* (make-recursive-lock))
(defparameter +buflen+ 10240)
(define-condition session-error (error)
((reason :initarg :reason))
(:report (lambda (er... | |
f3637b097f5eeadee5a51494d8938fe5a52710704fe5df47ac548a35d06900c6 | janestreet/ecaml | minibuffer.mli | * A minibuffer is a special buffer that Emacs commands use to read arguments more
complicated than the single numeric prefix argument . These arguments include file
names , buffer names , and command names ( as in [ M - x ] ) . The minibuffer is displayed on
the bottom line of the frame , in the s... | null | https://raw.githubusercontent.com/janestreet/ecaml/25a5a2972b3a94f5529a46363b37670a6c1de195/src/minibuffer.mli | ocaml | * [history] is the default history list used when reading from the minibuffer.
* [(describe-variable 'history-length)]
* [(describe-function 'read-from-minibuffer)]
[(Info-goto-node "(elisp)Text from Minibuffer")]
* [(describe-function 'read-file-name)]
[(Info-goto-node "(elisp) Reading File Names")]
* [(de... | * A minibuffer is a special buffer that Emacs commands use to read arguments more
complicated than the single numeric prefix argument . These arguments include file
names , buffer names , and command names ( as in [ M - x ] ) . The minibuffer is displayed on
the bottom line of the frame , in the s... |
88e058db7b8ed0c18c5347ee8b5b30645b646a11ad45bde4c8d9e8f4bef8128d | soenkehahn/getopt-generics | RenameOptionsSpec.hs | # LANGUAGE DeriveGeneric #
module ModifiersSpec.RenameOptionsSpec where
import Data.Char
import Data.List
import Test.Hspec
import Util
import WithCli.Pure
data Foo
= Foo {
foo :: Int,
bar :: Int
}
deriving (Eq, Show, Generic)
instance HasArguments Fo... | null | https://raw.githubusercontent.com/soenkehahn/getopt-generics/dd7223d98524d9f2e406f6691965f0dc66423b6f/test/ModifiersSpec/RenameOptionsSpec.hs | haskell | # LANGUAGE DeriveGeneric #
module ModifiersSpec.RenameOptionsSpec where
import Data.Char
import Data.List
import Test.Hspec
import Util
import WithCli.Pure
data Foo
= Foo {
foo :: Int,
bar :: Int
}
deriving (Eq, Show, Generic)
instance HasArguments Fo... | |
a9ea5cb12d7475a7ecc132aceb4db7e020568ea3230ae1a58d1afca216945119 | adrieng/pulsar | periodic.ml | This file is part of Pulsar , a temporal functional language .
* Copyright ( C ) 2017
*
* 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/adrieng/pulsar/a5b045e55d7e7620da7d6f65b204a1ad0a0ce489/warp/periodic.ml | ocaml | * Printing
* Construction and destruction
special case | This file is part of Pulsar , a temporal functional language .
* Copyright ( C ) 2017
*
* 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 ... |
ebfaa5fedc86405ebe40a2e8a9ff0f776006dfbb1cd2efdcf388931694a2410d | damn/cdq | dirtpath.clj | (ns game.tools.dirtpath
(:use data.grid2d
utils.core
engine.core
game.utils.random
mapgen.findpath
game.maps.tiledmaps
(game.tools transitiontilemaker tiledmap-grid-convert)))
(def- ground-firstgid 1)
(def- circle-tiles-firstgid 91)
(def- neighbourvalues {:topandleft ... | null | https://raw.githubusercontent.com/damn/cdq/5093dbdba91c445e403f53ce96ead05d5ed8262b/src/game/tools/neighbourvalues/dirtpath.clj | clojure | (ns game.tools.dirtpath
(:use data.grid2d
utils.core
engine.core
game.utils.random
mapgen.findpath
game.maps.tiledmaps
(game.tools transitiontilemaker tiledmap-grid-convert)))
(def- ground-firstgid 1)
(def- circle-tiles-firstgid 91)
(def- neighbourvalues {:topandleft ... | |
e3f7ac19d713e8035c6009e9bac0e78bcae74fc7c7a87241ff01457ffea5012a | mcna/alexandria | functions.lisp | (in-package :alexandria)
(declaim (inline ensure-function)) ; to propagate return type.
(declaim (ftype (function (t) (values function &optional))
ensure-function))
(defun ensure-function (function-designator)
"Returns the function designated by FUNCTION-DESIGNATOR:
if FUNCTION-DESIGNATOR is a funct... | null | https://raw.githubusercontent.com/mcna/alexandria/3eacfac87b27654f7ca9eeaf1ce40344b8136b03/functions.lisp | lisp | to propagate return type.
non-NIL value of the last predicate if all succeed.
Using M-V-C we don't need to append the arguments. | (in-package :alexandria)
(declaim (ftype (function (t) (values function &optional))
ensure-function))
(defun ensure-function (function-designator)
"Returns the function designated by FUNCTION-DESIGNATOR:
if FUNCTION-DESIGNATOR is a function, it is returned, otherwise
it must be a function name and i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.