_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 |
|---|---|---|---|---|---|---|---|---|
aaf8050da6bef5a8ea2bc73cfd68b59737721a7539d8e3cc9db5f2b4ce00264e | nixeagle/nisp | safe-package.lisp | (in-package :nisp-safe)
utilities first
;;; implentation
(defparameter *prepared-safe-packages*
'(:safe-arithmetic
:safe-arithmetic-trig
:safe-arithmetic-comparision
:safe-arithmetic-type-manipulation
:safe-arithmetic-boole
:safe-arithmetic-implentation-constants
:safe-arithmetic-random... | null | https://raw.githubusercontent.com/nixeagle/nisp/680b40b3b9ea4c33db0455ac73cbe3756afdbb1e/safe/safe-package.lisp | lisp | implentation
previous behavior that tried to make a new safe package.
Do not specialize on import-from here.
This is pretty ineffeciant if given a safe-package, however its not
something done fairly rarely.
It is critical that the old symbol be shadowed. | (in-package :nisp-safe)
utilities first
(defparameter *prepared-safe-packages*
'(:safe-arithmetic
:safe-arithmetic-trig
:safe-arithmetic-comparision
:safe-arithmetic-type-manipulation
:safe-arithmetic-boole
:safe-arithmetic-implentation-constants
:safe-arithmetic-random
:nisp-safe-i... |
a8b29cfc777b61a48c5220d0e28ae48486f79dddb717f70047b8898a7f5e271f | ygmpkk/house | Components.hs | module Components where
import GadgetsPrelude
import Display
class ComponentClass s where
rx :: [Guarded s] -> Process s -> Process s
rx ps = primRx (concat ps)
from :: In m -> (m -> Process s) -> Guarded s
from p c = [primFrom (const p) c]
froms :: [(In m,b)] -> (m -> b -> Process s) -> Guarded s
... | null | https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/kernel/Gadgets/lib/Components.hs | haskell | claim (In p) c = typeout ("claim "++show p++"\n") $ primClaim (In p) c
disown (In p) c = typeout ("disown "++show p++"\n") $ primDisown (In p) c
getGadgetWires :: (GadgetWires -> Process s) -> Process s
typeout (show mcs++" "++show mps++"\n") $
typeout (show mcs++" "++show mps++"\n") $
getGadgetWires c = readState ... | module Components where
import GadgetsPrelude
import Display
class ComponentClass s where
rx :: [Guarded s] -> Process s -> Process s
rx ps = primRx (concat ps)
from :: In m -> (m -> Process s) -> Guarded s
from p c = [primFrom (const p) c]
froms :: [(In m,b)] -> (m -> b -> Process s) -> Guarded s
... |
c9d66be47a6e4fd23ccb886dec433e3e4dc09244731fb41ad20f858ec87277dc | janestreet/universe | ml_bundle.mli | open! Core
open! Async
type t [@@deriving sexp, compare]
* The argument is a list of absolute paths ( with or without extensions ) to ml and mli
files . The order is such that it is stable regarding the first file found in the input
list regardless if it is an ml or mli , or without extension .
files.... | null | https://raw.githubusercontent.com/janestreet/universe/b6cb56fdae83f5d55f9c809f1c2a2b50ea213126/ocaml_plugin/src/ml_bundle.mli | ocaml | The string parameters in the result are absolute paths. | open! Core
open! Async
type t [@@deriving sexp, compare]
* The argument is a list of absolute paths ( with or without extensions ) to ml and mli
files . The order is such that it is stable regarding the first file found in the input
list regardless if it is an ml or mli , or without extension .
files.... |
e790bfc89a037587e14bd9ba1db0821889f29c3e36cccd4a3721cbfe3d4e5488 | madvas/cljs-react-material-ui-example | figwheel.clj | (ns cljs-react-material-ui-example.figwheel
(:require [figwheel-sidecar.repl-api :as ra]
[cljs.build.api :as b]))
(def opts
{:main 'cljs-react-material-ui-example.core
:asset-path "/js"
:output-to "resources/public/js/app.js"
:output-dir "resources/public/js"
:parall... | null | https://raw.githubusercontent.com/madvas/cljs-react-material-ui-example/55a1ecda8f0ff2348f9d424a2c758bf24fef531c/env/dev/clj/cljs_react_material_ui_example/figwheel.clj | clojure | (ns cljs-react-material-ui-example.figwheel
(:require [figwheel-sidecar.repl-api :as ra]
[cljs.build.api :as b]))
(def opts
{:main 'cljs-react-material-ui-example.core
:asset-path "/js"
:output-to "resources/public/js/app.js"
:output-dir "resources/public/js"
:parall... | |
0c9dbeb21c3d59a2ec3ef63618625ae9b2d99e1b40ee9c5a40dbee224622af8c | jordwalke/rehp | specialize_js.mli | Js_of_ocaml compiler
* /
* Copyright ( C ) 2010
* Laboratoire PPS - CNRS Université Paris Diderot
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , with linking... | null | https://raw.githubusercontent.com/jordwalke/rehp/f122b94f0a3f06410ddba59e3c9c603b33aadabf/compiler/lib/specialize_js.mli | ocaml | Js_of_ocaml compiler
* /
* Copyright ( C ) 2010
* Laboratoire PPS - CNRS Université Paris Diderot
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , with linking... | |
3017ac176baedded436e8e0c56b51e58e5155552d0890b1aacd24a97abd72a5f | ucsd-progsys/nate | searchid.mli | (*************************************************************************)
(* *)
(* Objective Caml LablTk library *)
(* *)
,... | null | https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/otherlibs/labltk/browser/searchid.mli | ocaml | ***********************************************************************
Objective Caml LablTk library
... | , Kyoto University RIMS
Copyright 1999 Institut National de Recherche en Informatique et
en Automatique and Kyoto University . All rights reserved .
This file is distributed under the terms of the GNU Library
$ I d : searchid.mli , v 1.6 2002/07... |
28b99ff7a3ef52636be5b4e4aa71fe3e9e1781dc66b03c141573e33a4bb19659 | r0man/geo-clj | json.clj | (ns geo.json
(:require [cheshire.core :refer [generate-string parse-string]]
[cheshire.generate :refer [JSONable encode-map to-json]]
[clojure.data.json :refer [JSONWriter json-str -write write]]
[geo.core :refer [coordinates srid]])
(:import (com.fasterxml.jackson.core JsonGener... | null | https://raw.githubusercontent.com/r0man/geo-clj/a0e8658aa4b7861a60d9d55c98034797e1e0a55b/src/geo/json.clj | clojure | (ns geo.json
(:require [cheshire.core :refer [generate-string parse-string]]
[cheshire.generate :refer [JSONable encode-map to-json]]
[clojure.data.json :refer [JSONWriter json-str -write write]]
[geo.core :refer [coordinates srid]])
(:import (com.fasterxml.jackson.core JsonGener... | |
335f119c2809c1082b73cd2636d7aeab60e712e1da4be93c23b70e4215507438 | kazu-yamamoto/http2 | HPACKEncode.hs | {-# LANGUAGE OverloadedStrings #-}
module HPACKEncode (
run
, EncodeStrategy(..)
, defaultEncodeStrategy
, CompressionAlgo(..)
) where
import Control.Monad (when)
import Data.ByteString (ByteString)
import qualified Data.ByteString.Base16 as B16
import qualified Data.ByteString.Char8 as C8
import Data.Cha... | null | https://raw.githubusercontent.com/kazu-yamamoto/http2/3c29763be147a3d482eff28f427ad80f1d4df706/test-hpack/HPACKEncode.hs | haskell | # LANGUAGE OverloadedStrings # |
module HPACKEncode (
run
, EncodeStrategy(..)
, defaultEncodeStrategy
, CompressionAlgo(..)
) where
import Control.Monad (when)
import Data.ByteString (ByteString)
import qualified Data.ByteString.Base16 as B16
import qualified Data.ByteString.Char8 as C8
import Data.Char
import Data.Maybe (fromMaybe)
imp... |
3e90bcc2ad2c2e616e67d67f1c03d30e1d218baa3bc65d9f1d230edcb34dcb48 | JacquesCarette/Drasil | Precedence.hs | -- | Defines operator precedence.
module Language.Drasil.ModelExpr.Precedence where
import Language.Drasil.ModelExpr.Lang
These precedences are inspired from Haskell / F #
-- as documented at
They are all multiplied by 10 , to leave room to weave things in between
-- | prec2Arith - precedence for arithmetic-re... | null | https://raw.githubusercontent.com/JacquesCarette/Drasil/c3316498746c96290af39b7403f631d8032f18b1/code/drasil-lang/lib/Language/Drasil/ModelExpr/Precedence.hs | haskell | | Defines operator precedence.
as documented at
| prec2Arith - precedence for arithmetic-related binary operations.
| prec2Eq - precedence for equality-related binary operations.
| prec2LA - precedence for access-related binary operations.
| prec2Ord - precedence for order-related binary operations.
| prec2VVN ... | module Language.Drasil.ModelExpr.Precedence where
import Language.Drasil.ModelExpr.Lang
These precedences are inspired from Haskell / F #
They are all multiplied by 10 , to leave room to weave things in between
prec2Arith :: ArithBinOp -> Int
prec2Arith Frac = 190
prec2Arith Pow = 200
prec2Arith Subt = 180
... |
b719cb0a1846e7306904e9d883a1c4bb1cc39655d6804a85e73224cf0e6c8859 | Innf107/polaris | jsonrpc.mli |
val send_notification : string -> Yojson.Safe.t -> unit
val run : in_channel
-> out_channel
-> handler:(request_method:string -> Yojson.Safe.t -> Yojson.Safe.t)
-> notification_handler:(notification_method:string -> Yojson.Safe.t -> unit)
-> unit
val unsupported_method : unit -> 'a
... | null | https://raw.githubusercontent.com/Innf107/polaris/58aa63581da4c3c7b72c9eac18074366f907b64a/polarislsp/jsonrpc.mli | ocaml |
val send_notification : string -> Yojson.Safe.t -> unit
val run : in_channel
-> out_channel
-> handler:(request_method:string -> Yojson.Safe.t -> Yojson.Safe.t)
-> notification_handler:(notification_method:string -> Yojson.Safe.t -> unit)
-> unit
val unsupported_method : unit -> 'a
... | |
943fe3db447adc1e3bb915f3bf03d88490b217badac68d9ed065c552c701a659 | emqx/emqx | emqx_dashboard_monitor.erl | %%--------------------------------------------------------------------
Copyright ( c ) 2020 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved .
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy o... | null | https://raw.githubusercontent.com/emqx/emqx/dbc10c2eed3df314586c7b9ac6292083204f1f68/apps/emqx_dashboard/src/emqx_dashboard_monitor.erl | erlang | --------------------------------------------------------------------
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ... | Copyright ( c ) 2020 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved .
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(emqx_dashboard_monitor).
-include("emqx_dashboard.hrl").
-include_lib("emqx/include/lo... |
34866c7195fa6ed48890e52d4a0769574af9400d9234a0bfbba7ac7a6b66e324 | exercism/babashka | project.clj | (defproject complex-numbers "0.1.0-SNAPSHOT"
:description "complex-numbers exercise"
:url "-numbers"
:dependencies [[org.clojure/clojure "1.10.0"]])
| null | https://raw.githubusercontent.com/exercism/babashka/707356c52e08490e66cb1b2e63e4f4439d91cf08/exercises/practice/complex-numbers/project.clj | clojure | (defproject complex-numbers "0.1.0-SNAPSHOT"
:description "complex-numbers exercise"
:url "-numbers"
:dependencies [[org.clojure/clojure "1.10.0"]])
| |
93457227ad42711cdec0ed9ce7f18e2ac4a5af799dd2546777814697833f857f | liquidz/jubot | brain_test.clj | (ns jubot.brain-test
(:require
[jubot.brain :as brain]
[jubot.system :refer :all]
[jubot.system-test :refer [with-mocked-system]]
[clojure.test :refer :all]))
(deftest test-create-brain
(testing "redis brain"
(is (= jubot.brain.redis.RedisBrain
(type (brain/create-bra... | null | https://raw.githubusercontent.com/liquidz/jubot/0a2d7b18db801c3fe72f7ff216e8381df9b40815/test/jubot/brain_test.clj | clojure | (ns jubot.brain-test
(:require
[jubot.brain :as brain]
[jubot.system :refer :all]
[jubot.system-test :refer [with-mocked-system]]
[clojure.test :refer :all]))
(deftest test-create-brain
(testing "redis brain"
(is (= jubot.brain.redis.RedisBrain
(type (brain/create-bra... | |
9c98dbb098388e4419d8ac1e5ef92787bf4935cc7bf2ee2a6dccb07ab122fe6d | ylgrgyq/resilience-for-clojure | breaker.clj | (ns resilience.breaker
(:refer-clojure :exclude [name reset!])
(:require [resilience.util :as u]
[resilience.spec :as s])
(:import (io.github.resilience4j.circuitbreaker CircuitBreakerConfig CircuitBreakerConfig$Builder
CircuitBreakerRegistry CircuitBreaker CircuitBreaker$StateTra... | null | https://raw.githubusercontent.com/ylgrgyq/resilience-for-clojure/7b0532d1c72d416020402c15eb5699143be4b7bf/src/resilience/breaker.clj | clojure | (ns resilience.breaker
(:refer-clojure :exclude [name reset!])
(:require [resilience.util :as u]
[resilience.spec :as s])
(:import (io.github.resilience4j.circuitbreaker CircuitBreakerConfig CircuitBreakerConfig$Builder
CircuitBreakerRegistry CircuitBreaker CircuitBreaker$StateTra... | |
555b5c9dc86ea755cd1c0da7ee12b7341fee5075314f1d184148d3342fade0ba | softwarelanguageslab/maf | R5RS_ad_list-2.scm | ; Changes:
* removed : 0
* added : 0
* swaps : 1
; * negated predicates: 0
; * swapped branches: 0
* calls to i d fun : 2
(letrec ((create-list (lambda size
(let* ((list-size (if (null? size) 10 (car size)))
(content (make-vector list-size 0))
... | null | https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_ad_list-2.scm | scheme | Changes:
* negated predicates: 0
* swapped branches: 0 | * removed : 0
* added : 0
* swaps : 1
* calls to i d fun : 2
(letrec ((create-list (lambda size
(let* ((list-size (if (null? size) 10 (car size)))
(content (make-vector list-size 0))
(first 0)
(l... |
fe00ad278051c35ac6005468804334ffdab22e883ecdcfce06d03ce5766712a2 | metaocaml/ber-metaocaml | unused_recmodule.ml | (* TEST
* expect
*)
[@@@ocaml.warning "+a"]
module M : sig end = struct
module rec Foo : sig
type t
val create : Bar.t -> t
end = struct
type t = unit
let create _ = ()
end
and Bar : sig
type t
end = struct
type t = unit
end
let _ = Foo.create
end;;
[%%expect{|
Line 14, cha... | null | https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/testsuite/tests/typing-warnings/unused_recmodule.ml | ocaml | TEST
* expect
|
[@@@ocaml.warning "+a"]
module M : sig end = struct
module rec Foo : sig
type t
val create : Bar.t -> t
end = struct
type t = unit
let create _ = ()
end
and Bar : sig
type t
end = struct
type t = unit
end
let _ = Foo.create
end;;
[%%expect{|
Line 14, characters 4-10:
14 | ... |
bdd550f4f1a98491341770d065e22e7da071dfc71ae72cc7fc3ee1f8605220c4 | kupl/LearnML | original.ml | type aexp =
| Const of int
| Var of string
| Power of (string * int)
| Times of aexp list
| Sum of aexp list
let rec diff ((aexp : aexp), (x : string)) : aexp =
match aexp with
| Power (a, b) -> Times [ Const b; Var a ]
| Const n -> Const 0
| Var n -> Var n
| Times hd :: tl ->
Sum [ Times (di... | null | https://raw.githubusercontent.com/kupl/LearnML/c98ef2b95ef67e657b8158a2c504330e9cfb7700/result/cafe2/diff/sub51/original.ml | ocaml | type aexp =
| Const of int
| Var of string
| Power of (string * int)
| Times of aexp list
| Sum of aexp list
let rec diff ((aexp : aexp), (x : string)) : aexp =
match aexp with
| Power (a, b) -> Times [ Const b; Var a ]
| Const n -> Const 0
| Var n -> Var n
| Times hd :: tl ->
Sum [ Times (di... | |
50a0a2e6f8181edf62ea5fe546836bc1751ab4da0f3c4618f18ff0ea332d0b5c | openvstorage/alba | checksum_deser.ml |
Copyright ( C ) iNuron -
This file is part of Open vStorage . For license information , see < LICENSE.txt >
Copyright (C) iNuron -
This file is part of Open vStorage. For license information, see <LICENSE.txt>
*)
open! Prelude
open Checksum.Checksum
let to_buffer' buf =
let module Llio = Llio2.Write... | null | https://raw.githubusercontent.com/openvstorage/alba/459bd459335138d6b282d332fcff53a1b4300c29/ocaml/src/model/checksum_deser.ml | ocaml |
Copyright ( C ) iNuron -
This file is part of Open vStorage . For license information , see < LICENSE.txt >
Copyright (C) iNuron -
This file is part of Open vStorage. For license information, see <LICENSE.txt>
*)
open! Prelude
open Checksum.Checksum
let to_buffer' buf =
let module Llio = Llio2.Write... | |
68bec3f012016693f36562e4120c707068adb6f17ca47b979c2783c60fe419d7 | elaforge/karya | Just_test.hs | Copyright 2018
-- This program is distributed under the terms of the GNU General Public
-- License 3.0, see COPYING or -3.0.txt
module Derive.Scale.Just_test where
import qualified Data.Text as Text
import qualified Derive.DeriveTest as DeriveTest
import qualified Derive.Score as Score
import qualified Perform.NN... | null | https://raw.githubusercontent.com/elaforge/karya/8ea15e6a5fb57e2f15f8c19836751e315f9c09f2/Derive/Scale/Just_test.hs | haskell | This program is distributed under the terms of the GNU General Public
License 3.0, see COPYING or -3.0.txt | Copyright 2018
module Derive.Scale.Just_test where
import qualified Data.Text as Text
import qualified Derive.DeriveTest as DeriveTest
import qualified Derive.Score as Score
import qualified Perform.NN as NN
import qualified Perform.Pitch as Pitch
import qualified Ui.UiTest as UiTest
import Util.Test
... |
78fb36456d8276cb3ebb436873829314bf896833e41943ba5c535766f7e52286 | ua-parser/uap-clj | common.clj | (ns uap-clj.common
"Common functions for field matching"
(:require [clj-yaml.core :refer [parse-string]]
[clojure.java.io :as io :refer [resource]]
[clojure.string :as s :refer [join trim]]))
(def regexes-all (parse-string (slurp (io/resource "regexes.yaml"))))
(defn match-with-context
"... | null | https://raw.githubusercontent.com/ua-parser/uap-clj/62ce2aeca0c33444537a5d357a3a24ecce69d0ba/src/uap_clj/common.clj | clojure | (ns uap-clj.common
"Common functions for field matching"
(:require [clj-yaml.core :refer [parse-string]]
[clojure.java.io :as io :refer [resource]]
[clojure.string :as s :refer [join trim]]))
(def regexes-all (parse-string (slurp (io/resource "regexes.yaml"))))
(defn match-with-context
"... | |
d2636eb05474d7a52735c0277c5d8258749c3b60451d68cbb0a15cbac519ad57 | ghcjs/ghcjs | t13435.hs | # Language FlexibleInstances , TypeFamilies ,
DataKinds , PolyKinds , MagicHash #
DataKinds, PolyKinds, MagicHash #-}
module Main where
import Data.Kind
import GHC.Exts
class Shw (a :: TYPE rep) where
shw :: a -> String
instance Int# ~ a => Shw (a :: TYPE IntRep) where
shw a = "I#" +... | null | https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/test/ghc/typecheck/t13435.hs | haskell | # Language FlexibleInstances , TypeFamilies ,
DataKinds , PolyKinds , MagicHash #
DataKinds, PolyKinds, MagicHash #-}
module Main where
import Data.Kind
import GHC.Exts
class Shw (a :: TYPE rep) where
shw :: a -> String
instance Int# ~ a => Shw (a :: TYPE IntRep) where
shw a = "I#" +... | |
0b4d5fbf3b7fdc6b3fe811637614c1840e2285a0a55142d7739519f94641b526 | alex-hhh/ActivityLog2 | toplevel.rkt | #lang racket/base
;; toplevel.rkt -- toplevel form for the application
;;
;; This file is part of ActivityLog2, an fitness activity tracker
Copyright ( C ) 2015 , 2018 , 2019 , 2020 , 2021 , 2022 , 2023 < >
;;
;; This program is free software: you can redistribute it and/or modify it
under the terms of the GNU G... | null | https://raw.githubusercontent.com/alex-hhh/ActivityLog2/05e7422f43835c2d1b6a0d0d72e9e99adf94ae66/rkt/toplevel.rkt | racket | toplevel.rkt -- toplevel form for the application
This file is part of ActivityLog2, an fitness activity tracker
This program is free software: you can redistribute it and/or modify it
any later version.
This program is distributed in the hope that it will be useful, but WITHOUT
without even the implied warran... | #lang racket/base
Copyright ( C ) 2015 , 2018 , 2019 , 2020 , 2021 , 2022 , 2023 < >
under the terms of the GNU General Public License as published by the Free
Software Foundation , either version 3 of the License , or ( at your option )
(require db/base
framework/splash
geoid
map-w... |
14072a913c9e1b07a62e1ef9a3ca522980eefc18686e59f1cfd7ee143dccc6b1 | bristolpl/intensional-datatys | Sequence.hs |
-----------------------------------------------------------------------------
-- |
-- Module : Data.Sequence
Copyright : ( c ) 2005
-- License : BSD-style
-- Maintainer :
-- Stability : experimental
-- Portability : portable
--
-- General purpose finite sequences.
-- Apart from being finite... | null | https://raw.githubusercontent.com/bristolpl/intensional-datatys/ce6e7f5069530ea21a3e19c8e9e17fc23dc8e66c/test/Sequence.hs | haskell | ---------------------------------------------------------------------------
|
Module : Data.Sequence
License : BSD-style
Maintainer :
Stability : experimental
Portability : portable
General purpose finite sequences.
Apart from being finite and having strict operations, sequences
also differ ... |
Copyright : ( c ) 2005
The implementation uses 2 - 3 finger trees annotated with sizes ,
as described in section 4.2 of
* and ,
\"Finger trees : a simple general - purpose data structure\ " ,
/Journal of Functional Programming/ 16:2 ( 2006 ) pp 197 - 217 .
operations on lists in the " Prel... |
23fed7a966711fd29c288ce432bd89d346b1ca901de12654c720bd0570bfc934 | webyrd/n-grams-for-synthesis | syntactic-record-explicit.scm | ; Implementation of explicit-naming syntactic layer for Records SRFI
Copyright ( C ) ( 2005 ) . All Rights Reserved .
;
; Permission is hereby granted, free of charge, to any person
; obtaining a copy of this software and associated documentation files
( the " Software " ) , to deal in the Software without rest... | null | https://raw.githubusercontent.com/webyrd/n-grams-for-synthesis/b53b071e53445337d3fe20db0249363aeb9f3e51/datasets/srfi/srfi-76/implementation/records-reference/syntactic-record-explicit.scm | scheme | Implementation of explicit-naming syntactic layer for Records SRFI
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation files
including without limitation the rights to use, copy, modify, merge,
subject to the following conditions:
The abov... |
Copyright ( C ) ( 2005 ) . All Rights Reserved .
( the " Software " ) , to deal in the Software without restriction ,
publish , distribute , sublicense , and/or sell copies of the Software ,
and to permit persons to whom the Software is furnished to do so ,
included in all copies or substantial portions of... |
034778fac4b9a11418aada41516a55a587ed5fdc5785cbdb6dc9fb789025bf9a | syntheorem/thexa | ParserSpec.hs | module Thexa.Regex.ParserSpec where
import Data.Map ((!))
import Test.Hspec
import Test.Hspec.Megaparsec
import Thexa.Internal.CharSet.AST (CharSetAST)
import Thexa.Internal.CharSet.AST qualified as CS
import Thexa.Internal.Regex.AST (RegexAST)
import Thexa.Internal.Regex.AST qualified as RE
import Thexa.Internal.Reg... | null | https://raw.githubusercontent.com/syntheorem/thexa/e599efd97c0cb49dc3acb9a5da911e20608a210b/spec/Thexa/Regex/ParserSpec.hs | haskell | module Thexa.Regex.ParserSpec where
import Data.Map ((!))
import Test.Hspec
import Test.Hspec.Megaparsec
import Thexa.Internal.CharSet.AST (CharSetAST)
import Thexa.Internal.CharSet.AST qualified as CS
import Thexa.Internal.Regex.AST (RegexAST)
import Thexa.Internal.Regex.AST qualified as RE
import Thexa.Internal.Reg... | |
3cf609cd2317ef52f3e1068b917241ca5d260360db77aebc616d6e4dd876a092 | K2InformaticsGmbH/dderl | dderloci_utils.erl | -module(dderloci_utils).
-export([oranumber_decode/1, oranumber_encode/1, ora_to_dderltime/1,
dderltime_to_ora/1, apply_scale/2, clean_dynamic_prec/1, to_ora/2,
ora_to_dderlts/1, dderlts_to_ora/1, ora_to_dderltstz/1, dderltstz_to_ora/1]).
-spec to_ora(atom(), any()) -> any().
to_ora('SQLT_INT', <<>>... | null | https://raw.githubusercontent.com/K2InformaticsGmbH/dderl/84697547fe8009db7964baa4eceb876fd78512a0/src/dderloci_utils.erl | erlang | positive numbers
negative numbers | -module(dderloci_utils).
-export([oranumber_decode/1, oranumber_encode/1, ora_to_dderltime/1,
dderltime_to_ora/1, apply_scale/2, clean_dynamic_prec/1, to_ora/2,
ora_to_dderlts/1, dderlts_to_ora/1, ora_to_dderltstz/1, dderltstz_to_ora/1]).
-spec to_ora(atom(), any()) -> any().
to_ora('SQLT_INT', <<>>... |
eef4efab8dc9337578943f7ccfd5315026a38dc9c1a5e14e1c1eccfa9e6a23ad | DaveWM/reagent-material-ui | project.clj | (defproject reagent-material-ui "0.2.5"
:description "Material UI components for reagent"
:url "-material-ui"
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.9.671"]
[reagent "0.7.... | null | https://raw.githubusercontent.com/DaveWM/reagent-material-ui/7d0efd8c17199022a310ce73d713dc12d49cf7a3/project.clj | clojure | (defproject reagent-material-ui "0.2.5"
:description "Material UI components for reagent"
:url "-material-ui"
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.9.671"]
[reagent "0.7.... | |
3f1b1c92743de80c8e4849a10690b7736c77667bd63f17a105d1898a2e8489a4 | onyx-platform/onyx-kafka | partition_assignment.clj | (ns onyx.plugin.partition-assignment)
;; Given a number of partitions, a number of peers, and slow for a single
;; peer, calculcates which partitions this slot should be assigned.
;; Disperses the peers over the partitions such that
;; the assignments are as evenly distributed as possible.
;;
First , we calculate th... | null | https://raw.githubusercontent.com/onyx-platform/onyx-kafka/8353ed5ff1a9f41da836a0069cdf6ba6da91f613/src/onyx/plugin/partition_assignment.clj | clojure | Given a number of partitions, a number of peers, and slow for a single
peer, calculcates which partitions this slot should be assigned.
Disperses the peers over the partitions such that
the assignments are as evenly distributed as possible.
all peers will receive by doing division and flooring the answer.
the di... | (ns onyx.plugin.partition-assignment)
First , we calculate the minimum number of partitions that
Next , we take the mod of the partitions the peers , because flooring
partition . If a peer 's slot , which is a zero - based index , is less than
1 to receive one of the extras - otherwise the count remains the sa... |
8f1304b76731810a4da7aec0bccd48833b9a09887cc86ccb2c005026fcf56132 | Naupio/pical | ta_hook_sup.erl | %%%-------------------------------------------------------------------
%% @doc ta_hook top level supervisor.
%% @end
%%%-------------------------------------------------------------------
-module(ta_hook_sup).
-behaviour(supervisor).
%% API
-export([start_link/0]).
%% Supervisor callbacks
-export([init/1]).
-defin... | null | https://raw.githubusercontent.com/Naupio/pical/8d1ea236645493e8a546bc66051c16649888bbbe/apps/rdd/src/ta_hook/src/ta_hook_sup.erl | erlang | -------------------------------------------------------------------
@doc ta_hook top level supervisor.
@end
-------------------------------------------------------------------
API
Supervisor callbacks
====================================================================
API functions
===============================... |
-module(ta_hook_sup).
-behaviour(supervisor).
-export([start_link/0]).
-export([init/1]).
-define(SERVER, ?MODULE).
-define(HOOK_MOD, ta_hook).
-define(HOOK_STOP_TIME, 30000).
start_link() ->
supervisor:start_link({local, ?SERVER}, ?MODULE, []).
Before OTP 18 tuples must be used to specify a child . e.... |
8f04db05eb4e634fd2c6f7d179c1e4b34cd796b22a056c7bd0867a08e0ce973c | flora-pm/flora-server | Types.hs | module Flora.Import.Types where
import Control.Exception
import Data.Text (Text)
import Flora.Model.Package
data ImportError
= InvalidPackageName Text
| NoSourceRepoFound PackageName
| RequirementNotFound (Namespace, PackageName)
| CabalFileNotFound FilePath
| CabalFileCouldNotBeParsed FilePath
deriving s... | null | https://raw.githubusercontent.com/flora-pm/flora-server/c214c0b5d5db71a8330eb69326284be5a4d5e858/src/core/Flora/Import/Types.hs | haskell | module Flora.Import.Types where
import Control.Exception
import Data.Text (Text)
import Flora.Model.Package
data ImportError
= InvalidPackageName Text
| NoSourceRepoFound PackageName
| RequirementNotFound (Namespace, PackageName)
| CabalFileNotFound FilePath
| CabalFileCouldNotBeParsed FilePath
deriving s... | |
f609af9d130e35b422147366fc351e661759b0a3be5121acaf6677f0d72a53a9 | reifyhealth/lein-git-down | git_wagon.clj | (ns lein-git-down.git-wagon
(:require [clojure.edn :as edn]
[clojure.java.io :as io]
[clojure.set :as set]
[clojure.string :as string]
[lein-git-down.impl.git :as git]
[lein-git-down.impl.pom :as pom]
[leiningen.core.eval :as leval]
[... | null | https://raw.githubusercontent.com/reifyhealth/lein-git-down/6560f9f10d3aef8697ae024d59c7da27750939b4/src/lein_git_down/git_wagon.clj | clojure | Since these ns's are dynamically loaded when a task is run, it
can cause race conditions with the wagon threads loading jars.
To avoid this, we are requiring them here.
spreading to other builds when there are multiple git deps
Helpers
Resolve POM
in our path will be the repository root directory (named for ... | (ns lein-git-down.git-wagon
(:require [clojure.edn :as edn]
[clojure.java.io :as io]
[clojure.set :as set]
[clojure.string :as string]
[lein-git-down.impl.git :as git]
[lein-git-down.impl.pom :as pom]
[leiningen.core.eval :as leval]
[... |
ce24df23c19d7be3da120d85b7cd0a1d0127d3fddd754cb482f6dadf2b26fa62 | BillHallahan/G2 | Simple.hs | module Simple where
@ f : : { b : | b } @
f :: Bool
f = g
@ g : : { b : | b } @
g :: Bool
g = True
| null | https://raw.githubusercontent.com/BillHallahan/G2/21c648d38c380041a9036d0e375ec1d54120f6b4/tests_lh/Liquid/Simple.hs | haskell | module Simple where
@ f : : { b : | b } @
f :: Bool
f = g
@ g : : { b : | b } @
g :: Bool
g = True
| |
326e149c801be37d478976b79124d4ccd3b780a77a967b0ba97c54d20af633ed | alanz/ghc-exactprint | GADT.hs | {-# LANGUAGE RankNTypes #-}
data Empty
data NonEmpty
data SafeList x y where
Nil :: SafeList x Empty
Cons:: Eq x => x -> SafeList x y -> SafeList x NonEmpty
One :: Eq x => x -> SafeList x Empty -> SafeList x NonEmpty
safeHead :: SafeList x NonEmpty -> x
safeHead (Cons x _) = x
foo = Cons 3 (Cons 6 (... | null | https://raw.githubusercontent.com/alanz/ghc-exactprint/b6b75027811fa4c336b34122a7a7b1a8df462563/tests/examples/ghc86/GADT.hs | haskell | # LANGUAGE RankNTypes # |
data Empty
data NonEmpty
data SafeList x y where
Nil :: SafeList x Empty
Cons:: Eq x => x -> SafeList x y -> SafeList x NonEmpty
One :: Eq x => x -> SafeList x Empty -> SafeList x NonEmpty
safeHead :: SafeList x NonEmpty -> x
safeHead (Cons x _) = x
foo = Cons 3 (Cons 6 (Cons 9 Nil))
data Dict x w... |
9a642cbdcd72741cd64c76e93dc11909b454f034cebb2eebe0adb415c5ec1ff7 | ajkavanagh/pacman | Main.hs | module Main where
import qualified UI (main)
main :: IO ()
main = UI.main
| null | https://raw.githubusercontent.com/ajkavanagh/pacman/b72468ed0519858288f35f1ae1b2cfb91516df4f/app/Main.hs | haskell | module Main where
import qualified UI (main)
main :: IO ()
main = UI.main
| |
a000117488ba8bf18cdf0ada4d70c184a0ef48c14280748af59a9ec249736b05 | jordwalke/rehp | typed_array.mli | Js_of_ocaml library
* /
* Copyright ( C ) 2012
* Laboratoire PPS - CNRS Université Paris Diderot
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , with linking ... | null | https://raw.githubusercontent.com/jordwalke/rehp/f122b94f0a3f06410ddba59e3c9c603b33aadabf/lib/js_of_ocaml/typed_array.mli | ocaml | * Typed Array binding | Js_of_ocaml library
* /
* Copyright ( C ) 2012
* Laboratoire PPS - CNRS Université Paris Diderot
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , with linking ... |
6af0c3847143c4176f850b9e44fd6c1e1036622864e6930fcd14362d7ccf43eb | samply/blaze | string_spec.clj | (ns blaze.db.impl.search-param.string-spec
(:require
[blaze.db.impl.index.compartment.search-param-value-resource-spec]
[blaze.db.impl.index.resource-search-param-value-spec]
[blaze.db.impl.index.search-param-value-resource-spec]))
| null | https://raw.githubusercontent.com/samply/blaze/e84c106b5ca235600c20ba74fe8a2295eb18f350/modules/db/test/blaze/db/impl/search_param/string_spec.clj | clojure | (ns blaze.db.impl.search-param.string-spec
(:require
[blaze.db.impl.index.compartment.search-param-value-resource-spec]
[blaze.db.impl.index.resource-search-param-value-spec]
[blaze.db.impl.index.search-param-value-resource-spec]))
| |
f852541f22084da09836cbf21c3f5259eb6ceb508565b18b3637cd571799904e | cedlemo/OCaml-GI-ctypes-bindings-generator | Recent_filter_flags.mli | open Ctypes
type t = Uri | Display_name | Mime_type | Application | Group | Age
type t_list = t list
val of_value:
Unsigned.uint32 -> t
val to_value:
t -> Unsigned.uint32
val list_of_value:
Unsigned.uint32 -> t_list
val list_to_value:
t_list -> Unsigned.uint32
val t_list_view : t_list typ
| null | https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Recent_filter_flags.mli | ocaml | open Ctypes
type t = Uri | Display_name | Mime_type | Application | Group | Age
type t_list = t list
val of_value:
Unsigned.uint32 -> t
val to_value:
t -> Unsigned.uint32
val list_of_value:
Unsigned.uint32 -> t_list
val list_to_value:
t_list -> Unsigned.uint32
val t_list_view : t_list typ
| |
50846163a711c480a61b979a30e40a4e7bd3817e3676ab7cc7a066b3b5149a78 | webyrd/n-grams-for-synthesis | 1.scm | ;;; SRFI-1 list-processing library -*- Scheme -*-
;;; Reference implementation
;;;
Copyright ( c ) 1998 , 1999 by . You may do as you please with
;;; this code as long as you do not remove this copyright notice or
;;; hold me liable for its use. Please send bug reports to .
;;; -Olin
;;; This is a library o... | null | https://raw.githubusercontent.com/webyrd/n-grams-for-synthesis/b53b071e53445337d3fe20db0249363aeb9f3e51/datasets/srfi/srfi-146/srfi/1.scm | scheme | SRFI-1 list-processing library -*- Scheme -*-
Reference implementation
this code as long as you do not remove this copyright notice or
hold me liable for its use. Please send bug reports to .
-Olin
This is a library of list- and pair-processing functions. I wrote it after
carefully considering the functi... | Copyright ( c ) 1998 , 1999 by . You may do as you please with
R4RS / R5RS Scheme , MIT Scheme , Gambit , RScheme , MzScheme , slib , Common
Lisp , Bigloo , guile , T , APL and the SML standard basis . It is a pretty
zip
lset - union lset - intersection lset - difference lset - xor lset - di... |
5720c38bbd4e63f30da8d5c821c60a1f437e435f4738e5fcf425efb417aff3ba | bluddy/rails | player.ml | open Containers
type t = {
x1000
track_length: int;
}
[@@deriving yojson]
let default = {
money = 1000;
track_length = 0;
}
let get_money v = v.money
let track_length v = v.track_length
let add_track ~length v = {v with track_length = v.track_length + length}
| null | https://raw.githubusercontent.com/bluddy/rails/b2a8dd700fdcbdf36984ba50eb148000c1f0b32f/bin/backend/player.ml | ocaml | open Containers
type t = {
x1000
track_length: int;
}
[@@deriving yojson]
let default = {
money = 1000;
track_length = 0;
}
let get_money v = v.money
let track_length v = v.track_length
let add_track ~length v = {v with track_length = v.track_length + length}
| |
f1de59b97d890b02451fcdb381df8a417fdee348635e0a512dc5561b12603730 | lem-project/lem | errors.lisp | (defpackage :lem-scheme-mode.errors
(:use :cl)
(:export :disconnected
:change-connection))
(in-package :lem-scheme-mode.errors)
(define-condition disconnected (simple-condition)
())
(define-condition change-connection (simple-condition)
())
| null | https://raw.githubusercontent.com/lem-project/lem/4f620f94a1fd3bdfb8b2364185e7db16efab57a1/modes/scheme-mode/errors.lisp | lisp | (defpackage :lem-scheme-mode.errors
(:use :cl)
(:export :disconnected
:change-connection))
(in-package :lem-scheme-mode.errors)
(define-condition disconnected (simple-condition)
())
(define-condition change-connection (simple-condition)
())
| |
0fcc476c6f1e76435c453fe5f0ceab19d2f748a246337dbeda839958b697fe12 | avsm/melange | conf.ml | open Config_t
let network_port = "network.port"
let network_ip = "network.ip"
let zones_file = "zones.file"
let cache_mode = "cache.mode"
let vt = [
{ t_name = network_port; t_atom=T_int (0,65535);
t_descr=Some "IPv4 port to listen on";
t_default=Some (V_int 53); t_short=Some 'p'; t_long=Some "port" }... | null | https://raw.githubusercontent.com/avsm/melange/e92240e6dc8a440cafa91488a1fc367e2ba57de1/apps/deens/conf.ml | ocaml | open Config_t
let network_port = "network.port"
let network_ip = "network.ip"
let zones_file = "zones.file"
let cache_mode = "cache.mode"
let vt = [
{ t_name = network_port; t_atom=T_int (0,65535);
t_descr=Some "IPv4 port to listen on";
t_default=Some (V_int 53); t_short=Some 'p'; t_long=Some "port" }... | |
7fea3009aa3c8554479783e242e6f209a435c61cde4ebd5506a9019f31e13a72 | master/ejabberd | ejd2odbc.erl | %%%----------------------------------------------------------------------
%%% File : ejd2odbc.erl
Author : < >
%%% Purpose : Export some mnesia tables to SQL DB
Created : 22 Aug 2005 by < >
%%%
%%%
ejabberd , Copyright ( C ) 2002 - 2012 ProcessOne
%%%
%%% This program is free software; you can redis... | null | https://raw.githubusercontent.com/master/ejabberd/9c31874d5a9d1852ece1b8ae70dd4b7e5eef7cf7/src/ejd2odbc.erl | erlang | ----------------------------------------------------------------------
File : ejd2odbc.erl
Purpose : Export some mnesia tables to SQL DB
This program is free software; you can redistribute it and/or
License, or (at your option) any later version.
This program is distributed in the hope that it will be usefu... | Author : < >
Created : 22 Aug 2005 by < >
ejabberd , Copyright ( C ) 2002 - 2012 ProcessOne
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation ; either version 2 of the
You should have received a copy of the GNU General Public License
Founda... |
d4741e4cfd305002850432aaef0f40fd1d9b14e2927b09a48cef4ba2b31dc7e4 | mmontone/cl-forms | url.lisp | (in-package :forms)
(defclass url-form-field (form-field)
()
(:documentation "An url input field"))
(defmethod validate-form-field ((form-field url-form-field))
(and
(funcall (clavier:valid-url (or (field-invalid-message form-field)
"The url is not valid"))
(fie... | null | https://raw.githubusercontent.com/mmontone/cl-forms/af252b8646b7545ac778c9aa881903efcc311f2d/src/fields/url.lisp | lisp | (in-package :forms)
(defclass url-form-field (form-field)
()
(:documentation "An url input field"))
(defmethod validate-form-field ((form-field url-form-field))
(and
(funcall (clavier:valid-url (or (field-invalid-message form-field)
"The url is not valid"))
(fie... | |
f63ec80ba91eae42bd68fe2081c4228dfad8a2ab65afb4bacd30a53d5974becf | bkirwi/ethereum-haskell | MapDB.hs | # LANGUAGE GeneralizedNewtypeDeriving #
module Ethereum.Trie.MapDB (
MapDB, runMapDB
) where
import Control.Monad.State
import qualified Data.Map as Map
import Ethereum.Prelude
type MapDB k v a = StateT (Map k v) Maybe a
runMapDB :: Ord k => DB k v a -> MapDB k v a
runMapDB = runDB putDB getDB
where
getD... | null | https://raw.githubusercontent.com/bkirwi/ethereum-haskell/ee995281bad4eed488c174bd8982ed174cfe26af/src/Ethereum/Trie/MapDB.hs | haskell | # LANGUAGE GeneralizedNewtypeDeriving #
module Ethereum.Trie.MapDB (
MapDB, runMapDB
) where
import Control.Monad.State
import qualified Data.Map as Map
import Ethereum.Prelude
type MapDB k v a = StateT (Map k v) Maybe a
runMapDB :: Ord k => DB k v a -> MapDB k v a
runMapDB = runDB putDB getDB
where
getD... | |
25a19c7de1332ef53b74930a4b7dc098c8af11ca327d1bff55108b433b18fa21 | camlspotter/ocaml-zippy-tutorial-in-japanese | w20.ml | let f () =
let g () = raise Exit in
g () 1
| null | https://raw.githubusercontent.com/camlspotter/ocaml-zippy-tutorial-in-japanese/c6aeabc08b6e2289a0e66c5b94a89c6723d88a6a/t/warnings/w20.ml | ocaml | let f () =
let g () = raise Exit in
g () 1
| |
cd877f7e59bcbec244c879a67722b51e2f558a1f0e37abc50e4fb031ecc3d1a1 | matsen/pplacer | test_like.ml | open Ppatteries
open OUnit
open Test_util
open Gmix_model
let add_zero_root_bl = Newick_gtree.add_zero_root_bl
module Glv = Model.Glv
module Like_stree = Like_stree.Make(Model)
type like_test_info = {
dir_name: string;
fasta_fname: string;
tree_fname: string;
correct_like: float;
}
let like_test info () =
l... | null | https://raw.githubusercontent.com/matsen/pplacer/f40a363e962cca7131f1f2d372262e0081ff1190/tests/pplacer/test_like.ml | ocaml | open Ppatteries
open OUnit
open Test_util
open Gmix_model
let add_zero_root_bl = Newick_gtree.add_zero_root_bl
module Glv = Model.Glv
module Like_stree = Like_stree.Make(Model)
type like_test_info = {
dir_name: string;
fasta_fname: string;
tree_fname: string;
correct_like: float;
}
let like_test info () =
l... | |
bd80b7d75b5477b5d8856bea19848cb374db7ef42aefab26ef45964f468eccac | aria42/infer | neighbors.clj | (ns infer.neighbors
(:use infer.measures)
(:use infer.core)
(:use infer.features)
(:use clojure.contrib.math)
(:use [clojure.set :only (union intersection difference)])
(:import [java.util Random])
(:use [infer.random-variate :only (random-normal)]))
TODO : is motthing really the right name for this lib ? ... | null | https://raw.githubusercontent.com/aria42/infer/9849325a27770794b91415592a8706fd90777469/src/infer/neighbors.clj | clojure |
TODO: point-space queries don't include distance in the y dimension.
nearest neighbors fitlers points for k-nn, within-region filters points based a region query; a hyper rectangle or a radius for kernels.
-nearest_neighbor_algorithm
naive impl
here we assume that there is y.
inverse is a common nn weighing funct... | (ns infer.neighbors
(:use infer.measures)
(:use infer.core)
(:use infer.features)
(:use clojure.contrib.math)
(:use [clojure.set :only (union intersection difference)])
(:import [java.util Random])
(:use [infer.random-variate :only (random-normal)]))
TODO : is motthing really the right name for this lib ? ... |
7180438d0d506ff2b34075ae11bca05789bdf052253ea8276711a468b2af22e5 | spechub/Hets | XMLKeywords.hs | |
Module : ./OWL2 / XMLKeywords.hs
Copyright : ( c ) : GPLv2 or higher , see LICENSE.txt
Maintainer :
Stability : provisional
Portability : portable
used for XML conversions
Module : ./OWL2/XMLKeywords.hs
Copyright : (c) Felix Gabriel Mance
License : ... | null | https://raw.githubusercontent.com/spechub/Hets/4aa2fe207927302592e35ab3304d5a8aecf39b0f/OWL2/XMLKeywords.hs | haskell | |
Module : ./OWL2 / XMLKeywords.hs
Copyright : ( c ) : GPLv2 or higher , see LICENSE.txt
Maintainer :
Stability : provisional
Portability : portable
used for XML conversions
Module : ./OWL2/XMLKeywords.hs
Copyright : (c) Felix Gabriel Mance
License : ... | |
b796ef1dc942d619e3ed03d1269eef0b0cd566f631f2c7cbeca41793be385938 | dyzsr/ocaml-selectml | env.mli | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/typing/env.mli | ocaml | ************************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
open Types
open Misc
val register_uid : Uid.t -> Location.t -> unit
val get_uid_to_loc_tbl : unit -> L... |
a12b849e46dd168a80ad5ec666aa2fe5a4c23c8c51a7bbf69845e8249f53c988 | MinaProtocol/mina | wrap_proof.mli | type dlog_opening =
( Backend.Tock.Curve.Affine.t
, Backend.Tock.Field.t )
Import.Types.Step.Bulletproof.t
module Constant : sig
(* Out-of-circuit type for wrap proofs *)
type t =
{ messages :
Backend.Tock.Curve.Affine.t Pickles_types.Plonk_types.Messages.t
; opening : dlog_opening
}
[@... | null | https://raw.githubusercontent.com/MinaProtocol/mina/b19a220d87caa129ed5dcffc94f89204ae874661/src/lib/pickles/wrap_proof.mli | ocaml | Out-of-circuit type for wrap proofs
In-circuit type for wrap proofs | type dlog_opening =
( Backend.Tock.Curve.Affine.t
, Backend.Tock.Field.t )
Import.Types.Step.Bulletproof.t
module Constant : sig
type t =
{ messages :
Backend.Tock.Curve.Affine.t Pickles_types.Plonk_types.Messages.t
; opening : dlog_opening
}
[@@deriving hlist]
end
module Checked : sig
... |
f367a55a1d5a8b0ca5ad305da5d22eadad2bb21ac39b1a39d9ecb9074a6b5408 | fstamour/breeze | snippets.lisp | ;;; Snippets
;;; N.B. They are more like templates/skeletons.
;;;
;;; - The macro "define-snippet" generate a function and register the
;;; snippet
- Snippets always takes a stream - designator as a first argument
;;;
;;; Major things that could be improved:
;;; - The snippet's lambda-list
;;; - The snippet's n... | null | https://raw.githubusercontent.com/fstamour/breeze/e76ce087980fdb30a4124c77177d06748ad5c73e/scratch-files/snippets.lisp | lisp | Snippets
N.B. They are more like templates/skeletons.
- The macro "define-snippet" generate a function and register the
snippet
Major things that could be improved:
- The snippet's lambda-list
- The snippet's name (currently "snippet/the-name")
- Ability to ask the user for input
#:snippet-inputs
Sh... | - Snippets always takes a stream - designator as a first argument
(in-package #:common-lisp-user)
(defpackage breeze.snippets
(:use :cl)
(:import-from #:alexandria
#:ensure-car
#:symbolicate)
(:export #:find-snippet
#:snippet-lambda-list
#:snippet-function))
(in-package #:breeze.snippets)
(ql:q... |
8bc0560b96dbf152f1d8a028d066c032b3b363805f92febd21af7f400635c1a8 | snowdriftcoop/snowdrift | Pledge.hs | module Handler.Pledge
( postPledgeSnowdriftR
, deletePledgeSnowdriftR
, pledgeDeleteForm
, pledgeForm
) where
import Import
import Alerts
import Handler.Util
import Crowdmatch
postPledgeSnowdriftR :: Handler Html
postPledgeSnowdriftR = handleDelete' $ do
Entity uid _ <- re... | null | https://raw.githubusercontent.com/snowdriftcoop/snowdrift/91fd1b84fea5d9c4aa2c419d91d790d886b3d100/website/src/Handler/Pledge.hs | haskell | Nothing == "no problem" in this case
project to pledge to. | module Handler.Pledge
( postPledgeSnowdriftR
, deletePledgeSnowdriftR
, pledgeDeleteForm
, pledgeForm
) where
import Import
import Alerts
import Handler.Util
import Crowdmatch
postPledgeSnowdriftR :: Handler Html
postPledgeSnowdriftR = handleDelete' $ do
Entity uid _ <- re... |
7cf1efcb61a615745697b16310e513305f63139aea3b7ba77ca76f4f1c2411f4 | input-output-hk/cardano-sl | Parse.hs | {-# LANGUAGE OverloadedStrings #-}
module Pos.Util.Json.Parse
( tryParseString
, wrapConstructor
)
where
import Universum
import Data.Typeable ( typeRep )
import Text.JSON.Canonical ( JSValue(..)
, JS... | null | https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/util/src/Pos/Util/Json/Parse.hs | haskell | # LANGUAGE OverloadedStrings # | module Pos.Util.Json.Parse
( tryParseString
, wrapConstructor
)
where
import Universum
import Data.Typeable ( typeRep )
import Text.JSON.Canonical ( JSValue(..)
, JSString
... |
75060ce5003c2f6cdec007b00bb100f2381aaa2f96c88a2e4fc89ca40d76994b | clojure/core.typed | pomegranate.clj | (ns clojure.core.typed.test.pomegranate
(:import (clojure.lang Named))
(:require [clojure.core.typed :as t]))
#_(t/non-nil-return java.lang.Class/getDeclaredMethod :all)
#_(t/nilable-param java.lang.reflect.Method/invoke {2 #{0}})
(t/ann call-method [Class Named (t/Vec Class) (t/U nil Object) (t/U nil Object) * -... | null | https://raw.githubusercontent.com/clojure/core.typed/f5b7d00bbb29d09000d7fef7cca5b40416c9fa91/typed/checker.jvm/test/clojure/core/typed/test/pomegranate.clj | clojure | (ns clojure.core.typed.test.pomegranate
(:import (clojure.lang Named))
(:require [clojure.core.typed :as t]))
#_(t/non-nil-return java.lang.Class/getDeclaredMethod :all)
#_(t/nilable-param java.lang.reflect.Method/invoke {2 #{0}})
(t/ann call-method [Class Named (t/Vec Class) (t/U nil Object) (t/U nil Object) * -... | |
0f2ba7a40d835bed713ad1a12903c15c30d191e43d71ab44f1bb699ce7174b1e | chicken-mobile/chicken-sdl2-android-builder | macro-helpers.scm | ;;
chicken - sdl2 : CHICKEN Scheme bindings to Simple DirectMedia Layer 2
;;
Copyright © 2013 , 2015 - 2016 .
;; All rights reserved.
;;
;; Redistribution and use in source and binary forms, with or without
;; modification, are permitted provided that the following conditions
;; are met:
;;
;; - Redistributions... | null | https://raw.githubusercontent.com/chicken-mobile/chicken-sdl2-android-builder/90ef1f0ff667737736f1932e204d29ae615a00c4/eggs/sdl2/lib/shared/macro-helpers.scm | scheme |
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
- Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
- Redistributio... | chicken - sdl2 : CHICKEN Scheme bindings to Simple DirectMedia Layer 2
Copyright © 2013 , 2015 - 2016 .
" AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT
COPYRIGHT HOLDER OR FOR ANY DIRECT ,
INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES
( INCLUDING , BUT N... |
878011fd6d5d4d7bc513aaf82523066178b2b617ce4155ca74fd383c621743bd | nstack/segmentio | Segment.hs | {-# LANGUAGE OverloadedStrings #-}
module Network.Segment (WriteKey,
sendEvent,
module Network.Segment.Context,
module Network.Segment.Reified,
module Network.Segment.Types) where
import Control.Lens -- fro... | null | https://raw.githubusercontent.com/nstack/segmentio/93776460011dac6746bd030cea4a43a5c375f025/src/Network/Segment.hs | haskell | # LANGUAGE OverloadedStrings #
from: lens
from: aeson
from: lens-aeson
from: text
from: lens
from: wreq | module Network.Segment (WriteKey,
sendEvent,
module Network.Segment.Context,
module Network.Segment.Reified,
module Network.Segment.Types) where
import Data.Monoid
import Network.Segment.Context
import Network.Segment.Reifi... |
9299e9cd9a110b2b3aa713b16c166d5b60813c8ebc8b86f1bacdac10be886bd1 | dnaeon/cl-jingle | cli-package.lisp | Copyright ( c ) 2022 Nikolov < >
;; All rights reserved.
;;
;; Redistribution and use in source and binary forms, with or without
;; modification, are permitted provided that the following conditions
;; are met:
;;
1 . Redistributions of source code must retain the above copyright
;; notice, this list of co... | null | https://raw.githubusercontent.com/dnaeon/cl-jingle/b8edf9a9caccffa599262caf6a77a7b3f542bd6f/demo/src/cli-package.lisp | lisp | All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
notice, this list of conditions and the following disclaimer
in this position and unchanged.
notice, this list of conditions and the fo... | Copyright ( c ) 2022 Nikolov < >
1 . Redistributions of source code must retain the above copyright
2 . Redistributions in binary form must reproduce the above copyright
THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S ) ` ` AS IS '' AND ANY EXPRESS OR
INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES... |
a6723aa8af4ab51bd348525e9cab8438a6b1a686654cbe8f3e27acacae5f4370 | a9032676/Codewars-Haskell | RegExpParser_PCV.hs | module RegExpParser_PCV
( RegExp(..)
, parseRegExp
) where
import Prelude hiding (any, or, seq)
import Text.ParserCombinators.Parsec hiding ((<|>), many)
import Control.Applicative
import Control.Monad
data RegExp = Normal Char -- ^ A character that is not in "()*|."
| Any ... | null | https://raw.githubusercontent.com/a9032676/Codewars-Haskell/6eccd81e9b6ae31b5c0a28ecc16b933f3abae1a5/src/RegExpParser_PCV.hs | haskell | ^ A character that is not in "()*|."
^ Any charater | module RegExpParser_PCV
( RegExp(..)
, parseRegExp
) where
import Prelude hiding (any, or, seq)
import Text.ParserCombinators.Parsec hiding ((<|>), many)
import Control.Applicative
import Control.Monad
^ Zero or more occurances of the same regexp
^ A choice between 2 regexps
^ A sequence of regexps... |
3ea33383413d9337a12711ea91ce1d7d36d40d827734a48f86b1d3d13c406e60 | tych0/haggis | RSS.hs | module Text.Haggis.RSS where
import Data.Maybe
import Data.Time.Clock
import Network.URI
import Text.Haggis.Config
import Text.Haggis.Types
import Text.Haggis.Utils
import Text.RSS
import System.FilePath
generateRSS :: HaggisConfig -> [Page] -> FilePath -> IO ()
generateRSS conf ps target = fromMaybe (return ()) $... | null | https://raw.githubusercontent.com/tych0/haggis/4258a7451f0e661bf184792a8ebf81eab68aefcb/src/Text/Haggis/RSS.hs | haskell | module Text.Haggis.RSS where
import Data.Maybe
import Data.Time.Clock
import Network.URI
import Text.Haggis.Config
import Text.Haggis.Types
import Text.Haggis.Utils
import Text.RSS
import System.FilePath
generateRSS :: HaggisConfig -> [Page] -> FilePath -> IO ()
generateRSS conf ps target = fromMaybe (return ()) $... | |
2ceb4d1c5e1c7490ac68d4606f4d6929fcd7b68603393232946a65ca9ba06833 | oofp/Beseder | Composite.hs | module Beseder.Resources.Composite
( module Beseder.Resources.Composite.CompositeRes
, module Beseder.Resources.Composite.CompositeDataRes
)
where
import Beseder.Resources.Composite.CompositeRes
import Beseder.Resources.Composite.CompositeDataRes | null | https://raw.githubusercontent.com/oofp/Beseder/a0f5c5e3138938b6fa18811d646535ee6df1a4f4/src/Beseder/Resources/Composite.hs | haskell | module Beseder.Resources.Composite
( module Beseder.Resources.Composite.CompositeRes
, module Beseder.Resources.Composite.CompositeDataRes
)
where
import Beseder.Resources.Composite.CompositeRes
import Beseder.Resources.Composite.CompositeDataRes | |
1b181517ecde71477297e8748fa0267fbe7353a7c2cc4e71ed76d8335bd8e0f9 | gsakkas/rite | 3577.ml |
let rec sepConcat sep sl =
match sl with
| [] -> ""
| h::t ->
let f a x = sep ^ x in
let base = (^) h in let l = t in List.fold_left f base l;;
(* fix
let rec sepConcat sep sl =
match sl with
| [] -> ""
| h::t ->
let f a x = a ^ (sep ^ x) in
let base = h in let l = t in List.fold... | null | https://raw.githubusercontent.com/gsakkas/rite/958a0ad2460e15734447bc07bd181f5d35956d3b/data/sp14/3577.ml | ocaml | fix
let rec sepConcat sep sl =
match sl with
| [] -> ""
| h::t ->
let f a x = a ^ (sep ^ x) in
let base = h in let l = t in List.fold_left f base l;;
|
let rec sepConcat sep sl =
match sl with
| [] -> ""
| h::t ->
let f a x = sep ^ x in
let base = (^) h in let l = t in List.fold_left f base l;;
changed spans
( 6,19)-(6,22 )
a
VarG
( 6,25)-(6,26 )
sep ^ x
AppG [ VarG , VarG ]
( 7,18)-(7,23 )
h
VarG
(6,19)-(6,22)
a
VarG
(6... |
770a9e97e3bcc7a8928c9740643d277cc77ccb07e0e7c3b0cf4b949632b638c7 | glondu/belenios | trustees.mli | (**************************************************************************)
(* BELENIOS *)
(* *)
Copyright © 2012 - 2021
(* ... | null | https://raw.githubusercontent.com/glondu/belenios/d0512c5b300159d20f21865739890710f28d283d/src/lib/shell/trustees.mli | ocaml | ************************************************************************
BELENIOS
This program is free softw... | Copyright © 2012 - 2021
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation , either version 3 of the
exemption that compiling , linking , and/or using OpenSSL is allowed .
You should have rece... |
c0bb4642b526642f6d48199e1d1da0cee2c47ac0dcfdc78fa79ad881aac6a39f | xapi-project/xen-api | readln.ml | (* Read newline-delimited strings from a file descriptor *)
type result = Ok of string list | Error of string | EOF
let input = Hashtbl.create 100 (* holds unconsumed input per fd *)
let free fd = Hashtbl.remove input fd
let read fd =
let buffer_size = 4096 in
let buffer = Bytes.make buffer_size '\000' in
mat... | null | https://raw.githubusercontent.com/xapi-project/xen-api/698369174b5ab384297fd67ecab86d19face433c/ocaml/xenopsd/xc/readln.ml | ocaml | Read newline-delimited strings from a file descriptor
holds unconsumed input per fd
never fails
reset input
store msg |
type result = Ok of string list | Error of string | EOF
let free fd = Hashtbl.remove input fd
let read fd =
let buffer_size = 4096 in
let buffer = Bytes.make buffer_size '\000' in
match Unix.read fd buffer 0 buffer_size with
| 0 ->
let pending = try Hashtbl.find input fd with Not_found -> Bytes.empty ... |
b247ce371e1842560a104362dee9f96e42ab3f0456206126d2094a909f4bde57 | inaka/sumo_rest | sr_json_SUITE.erl | -module(sr_json_SUITE).
-export([all/0]).
-export([ jsons/1
, dates/1
, nulls/1
, types/1
]).
-spec all() -> [atom()].
all() -> sr_test_utils:all(?MODULE).
-spec jsons(sr_test_utils:config()) -> {comment, string()}.
jsons(_Config) ->
WorksWith =
fun(Json) ->
ct:comment("Wo... | null | https://raw.githubusercontent.com/inaka/sumo_rest/19a3685ab477222738ac27b72e39346cbad9463d/test/sr_json_SUITE.erl | erlang | -module(sr_json_SUITE).
-export([all/0]).
-export([ jsons/1
, dates/1
, nulls/1
, types/1
]).
-spec all() -> [atom()].
all() -> sr_test_utils:all(?MODULE).
-spec jsons(sr_test_utils:config()) -> {comment, string()}.
jsons(_Config) ->
WorksWith =
fun(Json) ->
ct:comment("Wo... | |
12326244cc32f3623221eed0ec830ef26ef15555887ae4ab5a84526db6e30aaa | atzedijkstra/logict-state | LogicState.hs | # LANGUAGE UndecidableInstances , Rank2Types , FlexibleInstances , FlexibleContexts , GADTs , ScopedTypeVariables , FunctionalDependencies #
-------------------------------------------------------------------------
-- |
Module : Control . . LogicState
Copyright : ( c )
-- License : BSD3
--
Mainta... | null | https://raw.githubusercontent.com/atzedijkstra/logict-state/dd0bc32bce3ff1d9a3605a1f4dda5b0fe16213c7/src/Control/Monad/LogicState.hs | haskell | -----------------------------------------------------------------------
|
License : BSD3
Portability : non-portable
A backtracking, logic programming monad partially derived and on top of logict, adding backtrackable state.
LogicT (and thus this library as well) is adapted from the paper
/Backtrackin... | # LANGUAGE UndecidableInstances , Rank2Types , FlexibleInstances , FlexibleContexts , GADTs , ScopedTypeVariables , FunctionalDependencies #
Module : Control . . LogicState
Copyright : ( c )
Maintainer :
Stability : experimental , ( as of 20160218 ) under development
Transformers/ ,... |
9547a4abb1d98d575bc05c29ffba1bbc76ce2d48fcdb63ae5a0a917e0a5f75e6 | korya/efuns | xbanner.ml | open Xtypes
open Xlib
let xbanner_font = "-bitstream-charter-bold-i-normal--125-*-*-*-*-*-iso8859-1"
let xbanner_x = 100
let xbanner_y = 100
let xbanner_delay = 0.5
let delay time =
try ignore (Unix.select [] [] [] time) with _ -> ()
let xbanner dpy s =
try
let screen = defaultScreen dpy in
let root = ... | null | https://raw.githubusercontent.com/korya/efuns/78b21d9dff45b7eec764c63132c7a564f5367c30/xlib/examples/xbanner.ml | ocaml | open Xtypes
open Xlib
let xbanner_font = "-bitstream-charter-bold-i-normal--125-*-*-*-*-*-iso8859-1"
let xbanner_x = 100
let xbanner_y = 100
let xbanner_delay = 0.5
let delay time =
try ignore (Unix.select [] [] [] time) with _ -> ()
let xbanner dpy s =
try
let screen = defaultScreen dpy in
let root = ... | |
ef818e0a767e0b86cf5a6c59011adafec4c42df3a54436109d70c3f01ad641de | anishathalye/knox | spec-lang.rkt | #lang rosette/safe
(require
(only-in rosutil/addressable-struct addressable-struct)
"../result.rkt"
"../spec.rkt"
(for-syntax racket/base racket/syntax syntax/parse))
(provide
(except-out (all-from-out rosette/safe) struct #%module-begin)
(rename-out [addressable-struct struct]
[$#%module-begin #%m... | null | https://raw.githubusercontent.com/anishathalye/knox/161cda3e5274cc69012830f477749954ddcf736d/knox/spec/spec-lang.rkt | racket | fallback, useful in e.g. submodules (like a test module) | #lang rosette/safe
(require
(only-in rosutil/addressable-struct addressable-struct)
"../result.rkt"
"../spec.rkt"
(for-syntax racket/base racket/syntax syntax/parse))
(provide
(except-out (all-from-out rosette/safe) struct #%module-begin)
(rename-out [addressable-struct struct]
[$#%module-begin #%m... |
565a2c12b64125c711bd6c2c6330efdfb141a1f887f982e832891066274a3861 | vinted/kafka-elasticsearch-tool | es_to_stdout.clj | (ns ops.es-to-stdout
(:require [sink :as sink]
[source :as source]))
(def default-opts
{:max_docs nil
:source {:implementation :elasticsearch
:remote {:host ":9200"}
:index "*"
:query {:sort ["_doc"]
... | null | https://raw.githubusercontent.com/vinted/kafka-elasticsearch-tool/d7edb0a064a20d636bdfdaae4a6c32c23f360b99/src/ops/es_to_stdout.clj | clojure | (ns ops.es-to-stdout
(:require [sink :as sink]
[source :as source]))
(def default-opts
{:max_docs nil
:source {:implementation :elasticsearch
:remote {:host ":9200"}
:index "*"
:query {:sort ["_doc"]
... | |
c9696acabd68d6478cf269ade4ef653d84e4d517d50374b95e37b6569bc55678 | ageneau/ecl-android | android.lisp | -*- Mode : Lisp ; Syntax : ANSI - Common - Lisp ; Base : 10 -*-
(in-package :cl-android)
(defun my-getenv (name &optional default)
#+CMU
(let ((x (assoc name ext:*environment-list*
:test #'string=)))
(if x (cdr x) default))
#-CMU
(or
#+Allegro (sys:getenv name)
#+(or CLISP ECL) (ext:getenv name... | null | https://raw.githubusercontent.com/ageneau/ecl-android/324180b7701eaa24228d8602fafe7c040c976867/android/sl4a/android.lisp | lisp | Syntax : ANSI - Common - Lisp ; Base : 10 -*-
(setq *host* "localhost")
(json:set-decoder-simple-clos-semantics) | (in-package :cl-android)
(defun my-getenv (name &optional default)
#+CMU
(let ((x (assoc name ext:*environment-list*
:test #'string=)))
(if x (cdr x) default))
#-CMU
(or
#+Allegro (sys:getenv name)
#+(or CLISP ECL) (ext:getenv name)
#+SBCL (sb-unix::posix-getenv name)
#+LISPWORKS (lispworks... |
3a4e955f6900268c67109738930916879ee54edda849e8c720e124637aa5d37f | tezos/tezos-mirror | operation_pool.ml | (*****************************************************************************)
(* *)
(* Open Source License *)
Copyright ( c ) 2021 Nomadic Labs < >
(* ... | null | https://raw.githubusercontent.com/tezos/tezos-mirror/e1f517827f35601dcb9c1aeeb34fa040b56f4693/src/proto_alpha/lib_delegate/operation_pool.ml | ocaml | ***************************************************************************
Open Source License
Permission is h... | Copyright ( c ) 2021 Nomadic Labs < >
to deal in the Software without restriction , including without limitation
and/or sell copies of the Software , and to permit persons to whom the
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR
LIABILITY , WHETHER IN AN... |
2708ff28975a3c59a956e38bebb8fdb79de50f65f65e3d963dbd09b88958f392 | jrh13/hol-light | wo.ml | (* ========================================================================= *)
(* Some general material about ordered sets of various kinds including WQOs. *)
Proof of some useful AC equivalents like wellordering and 's Lemma .
(* ========================================================================= *)
let ... | null | https://raw.githubusercontent.com/jrh13/hol-light/d125b0ae73e546a63ed458a7891f4e14ae0409e2/Library/wo.ml | ocaml | =========================================================================
Some general material about ordered sets of various kinds including WQOs.
=========================================================================
========================================================================
================... | Proof of some useful AC equivalents like wellordering and 's Lemma .
let PBETA_TAC = CONV_TAC(ONCE_DEPTH_CONV GEN_BETA_CONV);;
let SUBSET_PRED = prove
(`!P Q. P SUBSET Q <=> !x. P x ==> Q x`,
REWRITE_TAC[SUBSET; IN]);;
let UNIONS_PRED = prove
(`UNIONS P = \x. ?p. P p /\ p x`,
REWRITE_TAC[UNIONS; FUN_EQ_T... |
a772e8324121adb375d89cc10bf671e0bcecdd0f00023c5f45ecd6bc351fb229 | bmeurer/ocamljit2 | configuration.ml | (***********************************************************************)
(* ocamlbuild *)
(* *)
, , projet Gallium , INRIA Rocquencourt
(* ... | null | https://raw.githubusercontent.com/bmeurer/ocamljit2/ef06db5c688c1160acc1de1f63c29473bcd0055c/ocamlbuild/configuration.ml | ocaml | *********************************************************************
ocamlbuild
... | , , projet Gallium , INRIA Rocquencourt
Copyright 2007 Institut National de Recherche en Informatique et
en Automatique . All rights reserved . This file is distributed
under the terms of the Q Public License version 1.0 .
Original author :
open My_std
open Log
open Lexer... |
c5a2b57835922a0295e000bb59147328c619c431d010c90d0382870c7f3546bb | kriyative/cynojure | aws.clj | aws.clj -- amazon aws helper functions
;; Ram Krishnan, /
Copyright ( c ) , 2009 . All rights reserved . The use and
distribution terms for this software are covered by the Eclipse
;; Public License 1.0 (-1.0.php)
;; which can be found in the file epl-v10.html at the root of this
;; distribution. By using ... | null | https://raw.githubusercontent.com/kriyative/cynojure/7254beebdd43b61823dfce876b1ff76a87e250e6/src/cynojure/aws.clj | clojure | Ram Krishnan, /
Public License 1.0 (-1.0.php)
which can be found in the file epl-v10.html at the root of this
distribution. By using this software in any fashion, you are
agreeing to be bound by the terms of this license. You must not
remove this notice, or any other, from this software.
(/) java libraries. It... | aws.clj -- amazon aws helper functions
Copyright ( c ) , 2009 . All rights reserved . The use and
distribution terms for this software are covered by the Eclipse
this package essentially wraps the t
( / ) and typica
which in turn has some additional requirements under Java 5 . The
following code h... |
d2d39f6751bfd794a7f31040e33cd07e2771bca2b0bdcb4eecde221fa59370cc | lthms/chain | Console.hs | {-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
# LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
{-# LANGUAGE ScopedTypeVariables #-}
# LANGUAGE TypeApplications #
{-# LANGUAGE TypeOperators #-}
module Control.Monad.Chain.Console
( echo
, log
, ... | null | https://raw.githubusercontent.com/lthms/chain/6b709756a84f118950337e5aae7d6b6caa3f3df9/chain-fs/src/Control/Monad/Chain/Console.hs | haskell | # LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeOperators #
| Write 'Text' to stdout.
| Write 'Text' to stderr. | # LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE TypeApplications #
module Control.Monad.Chain.Console
( echo
, log
, scan
, ConsoleError(..)
) where
import Control.Monad.Chain
import qualified Control.Monad.Chain.Fs as Fs
import Control.Monad.IO.Cl... |
8fed00d4bba33b4f1a18a781b3d61811a864a6d6ffd61e9acee3fc1b4f84a0e8 | dhess/hpio | GPIO.hs | |
Module : System . GPIO
Description : Top - level re - exports for writing GPIO programs
Copyright : ( c ) 2019 ,
License : : < >
Stability : experimental
Portability : non - portable
Top - level re - exports for writing GPIO programs .
Module : System.GPIO
Description... | null | https://raw.githubusercontent.com/dhess/hpio/27004ef379db5d35e240222d6ba4cf91da9ec14d/src/System/GPIO.hs | haskell | # LANGUAGE Safe # | |
Module : System . GPIO
Description : Top - level re - exports for writing GPIO programs
Copyright : ( c ) 2019 ,
License : : < >
Stability : experimental
Portability : non - portable
Top - level re - exports for writing GPIO programs .
Module : System.GPIO
Description... |
b9865835d6036bfad4361c1b4500c518d3798ddc06bdb60afffe849396508f55 | bsaleil/lc | etape2-string-set.scm | (define a (make-string 5))
(string-set! a 0 #\b)
(string-set! a 1 #\a)
(println (char->integer (string-ref a 0)))
(println (char->integer (string-ref a 1)))
98
97
| null | https://raw.githubusercontent.com/bsaleil/lc/ee7867fd2bdbbe88924300e10b14ea717ee6434b/unit-tests/IFT3065/2/etape2-string-set.scm | scheme | (define a (make-string 5))
(string-set! a 0 #\b)
(string-set! a 1 #\a)
(println (char->integer (string-ref a 0)))
(println (char->integer (string-ref a 1)))
98
97
| |
cb51c269d4a70bf920ad6ea4b27b6b167b491a3583d0ee748a8962448ed58bda | zotonic/template_compiler | filter_template_compiler_test_set.erl | @author < >
2022
%% @doc Filter used in testing the template compiler. Sets a process dict value
%% to trace execution or expressions.
Copyright 2022
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may o... | null | https://raw.githubusercontent.com/zotonic/template_compiler/bdece7959de25fcd718f605fd0d0a54ab7d6ccdb/src/filter_template_compiler_test_set.erl | erlang | @doc Filter used in testing the template compiler. Sets a process dict value
to trace execution or expressions.
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 WARRAN... | @author < >
2022
Copyright 2022
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(filter_template_compiler_test_set).
-export([
template_compiler_test_set/4
]).
template_compiler_test_set(Expr,... |
158bb3242b72eb741bdd0e1588f88806855b7d6d91be91c1880a0abe3454cee3 | kallisti-dev/hs-webdriver | Types.hs | # OPTIONS_HADDOCK not - home #
module Test.WebDriver.Types
* WebDriver sessions
WD(..), WDSession(..), SessionId(..), SessionHistory
* WebDriver configuration
, WDConfig(..), defaultConfig, SessionHistoryConfig
-- * Capabilities
, Capabilities(..), defaultCaps, allCaps
, Platf... | null | https://raw.githubusercontent.com/kallisti-dev/hs-webdriver/ea594ce8720c9e11f053b2567f250079f0eac33b/src/Test/WebDriver/Types.hs | haskell | * Capabilities
** Browser-specific capabilities
** Default settings for browsers
* Exceptions | # OPTIONS_HADDOCK not - home #
module Test.WebDriver.Types
* WebDriver sessions
WD(..), WDSession(..), SessionId(..), SessionHistory
* WebDriver configuration
, WDConfig(..), defaultConfig, SessionHistoryConfig
, Capabilities(..), defaultCaps, allCaps
, Platform(..), ProxyType(..), Une... |
5031e76b4ba336aac54c70df8df890f284d6d20c2197152dc748cba170f6fd55 | dyzsr/ocaml-selectml | string.ml | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/stdlib/string.ml | ocaml | ************************************************************************
OCaml
... | , projet Gallium , INRIA Rocquencourt
Copyright 2014 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
external length : string -> int = "%string_length"
external get : string -> int -> char = "%string_safe_g... |
8ccf2a83a4d67977a00d46c32f91ddf38009e91c3f2c59dc384c53e81e8fbff6 | tweag/haskell-training | AnswerSetRepository.hs | {-# LANGUAGE RankNTypes #-}
module Domain.AnswerSetRepository where
import Domain.Answer
import Domain.Id
import Domain.Questionnaire
data AnswerSetRepository m = AnswerSetRepository
{ record :: [AnswerData] -> m (Id AnswerSet)
, allForQuestionnaire :: Id Questionnaire -> m [Id AnswerSet]
}
h... | null | https://raw.githubusercontent.com/tweag/haskell-training/89d930f7854075d692dfb127d2c54e953dbf1519/src/Domain/AnswerSetRepository.hs | haskell | # LANGUAGE RankNTypes # |
module Domain.AnswerSetRepository where
import Domain.Answer
import Domain.Id
import Domain.Questionnaire
data AnswerSetRepository m = AnswerSetRepository
{ record :: [AnswerData] -> m (Id AnswerSet)
, allForQuestionnaire :: Id Questionnaire -> m [Id AnswerSet]
}
hoist :: (forall a. m a -> n ... |
b8329f089fd0c45aa0cfc107aa749f4af4d545dee742aa47d4636271c02e6d8b | realworldocaml/book | cram_test.ml | open Import
type t =
| File of Path.Source.t
| Dir of
{ file : Path.Source.t
; dir : Path.Source.t
}
let is_cram_suffix = String.is_suffix ~suffix:".t"
let dyn_of_t =
let open Dyn in
function
| File f -> variant "File" [ Path.Source.to_dyn f ]
| Dir { file; dir } ->
variant "Dir"
... | null | https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/dune_/src/dune_engine/cram_test.ml | ocaml | open Import
type t =
| File of Path.Source.t
| Dir of
{ file : Path.Source.t
; dir : Path.Source.t
}
let is_cram_suffix = String.is_suffix ~suffix:".t"
let dyn_of_t =
let open Dyn in
function
| File f -> variant "File" [ Path.Source.to_dyn f ]
| Dir { file; dir } ->
variant "Dir"
... | |
a51d4cd88b1376cf2d3e6478edc3d7a44f460192ff5cc96a91c62202fd0a890c | thekafkaf/brolang | JIT.hs | --------------------------------------------------------------------
-- |
-- Module : JIT
Copyright : ( c ) 2013
License : MIT
-- Maintainer:
-- Stability : experimental
-- Portability: non-portable
--
--------------------------------------------------------------------
module JIT where
import Dat... | null | https://raw.githubusercontent.com/thekafkaf/brolang/2d27f7f8270c4f94f4e94f4ba86f993dd94a841e/src/JIT.hs | haskell | ------------------------------------------------------------------
|
Module : JIT
Maintainer:
Stability : experimental
Portability: non-portable
------------------------------------------------------------------
optimization level
code model ( Default )
frame pointer elimination
fast instruction select... | Copyright : ( c ) 2013
License : MIT
module JIT where
import Data.Int
import Data.Word
import Foreign.Ptr ( FunPtr, castFunPtr )
import Control.Monad.Except
import LLVM.General.Target
import LLVM.General.Context
import LLVM.General.CodeModel
import LLVM.General.Module as Mod
import qualified LLVM.Gener... |
9bda9766146cfa803b0d202b9864d3febad0523407f20fa90d4039a97368bdd8 | dyzsr/ocaml-selectml | open_arg.ml | (* TEST
flags = "-dshape"
* expect
*)
module type Make = functor (I : sig end) -> sig
open I
end
;;
[%%expect{|
{
"Make"[module type] -> <.1>;
}
module type Make = functor (I : sig end) -> sig end
|}]
module Make (I : sig end) : sig
open I
end = struct end
;;
[%%expect{|
{
"Make"[module] -> Abs<.3>(I/2... | null | https://raw.githubusercontent.com/dyzsr/ocaml-selectml/3495de07186fd9e5e1c6b5802ede00199fb1900a/testsuite/tests/shapes/open_arg.ml | ocaml | TEST
flags = "-dshape"
* expect
|
module type Make = functor (I : sig end) -> sig
open I
end
;;
[%%expect{|
{
"Make"[module type] -> <.1>;
}
module type Make = functor (I : sig end) -> sig end
|}]
module Make (I : sig end) : sig
open I
end = struct end
;;
[%%expect{|
{
"Make"[module] -> Abs<.3>(I/293, {
});... |
8113ef9bc8abe5579d2324be52d55abe087e827317334476a5c6e0546befffef | alexandergunnarson/quantum | prettier.cljc | (ns quantum.core.print.prettier
(:require
[fipp.edn]
[fipp.visit]
[fipp.ednize]
[quantum.core.fn :as fn
:refer [rcomp]]
[quantum.core.print :as pr]
[quantum.core.ns :as ns]
[quantum.untyped.core.convert :as uconv]
[quantum.untyped.core.qualify ... | null | https://raw.githubusercontent.com/alexandergunnarson/quantum/0c655af439734709566110949f9f2f482e468509/src/quantum/core/print/prettier.cljc | clojure | TODO ->vec for this
TODO ->vec for this | (ns quantum.core.print.prettier
(:require
[fipp.edn]
[fipp.visit]
[fipp.ednize]
[quantum.core.fn :as fn
:refer [rcomp]]
[quantum.core.print :as pr]
[quantum.core.ns :as ns]
[quantum.untyped.core.convert :as uconv]
[quantum.untyped.core.qualify ... |
6cd0f1d015d16e713d812ffb827b567470aff54925585fb97a0a7d9227e68802 | bmeurer/ocamljit2 | pr4766_ok.ml | class virtual ['a] c =
object (s : 'a)
method virtual m : 'b
end
let o =
object (s :'a)
inherit ['a] c
method m = 42
end
| null | https://raw.githubusercontent.com/bmeurer/ocamljit2/ef06db5c688c1160acc1de1f63c29473bcd0055c/testsuite/tests/typing-objects-bugs/pr4766_ok.ml | ocaml | class virtual ['a] c =
object (s : 'a)
method virtual m : 'b
end
let o =
object (s :'a)
inherit ['a] c
method m = 42
end
| |
c5d241c5dbace016b2d7c16900d26687c4ebd0c6d6281d67830f359bf2962312 | jkoppel/ecta | Type.hs | module Application.TermSearch.Type
( TypeSkeleton(..)
, Benchmark(..)
, Argument
, Mode(..)
, AblationType(..)
) where
import Data.Data ( Data )
import Data.Hashable ( Hashable )
import Data.Text ( Text )
import ... | null | https://raw.githubusercontent.com/jkoppel/ecta/865cf95fea1c875c2732991db6415d963c5d6189/src/Application/TermSearch/Type.hs | haskell | module Application.TermSearch.Type
( TypeSkeleton(..)
, Benchmark(..)
, Argument
, Mode(..)
, AblationType(..)
) where
import Data.Data ( Data )
import Data.Hashable ( Hashable )
import Data.Text ( Text )
import ... | |
69f4569577c05bdb1aed2943fa93feeb2c2a621cd84bb1bd4d4d2cd0035f2222 | inventi/jenkins-rabbitz | tts.clj | (ns karotz.tts
(:require [clojure.java.io :as io]
[clojure.data.json :as json]
[clojure.string :as st])
(:import
(javax.sound.sampled AudioSystem AudioFormat AudioFormat$Encoding AudioFileFormat$Type AudioInputStream)
(java.io SequenceInputStream ByteArrayOutputStream)
(com.amazo... | null | https://raw.githubusercontent.com/inventi/jenkins-rabbitz/2a15a7df842ef9794df4a2932850867683d918d8/src/main/clojure/karotz/tts.clj | clojure | Thus we have to add extra pause. | (ns karotz.tts
(:require [clojure.java.io :as io]
[clojure.data.json :as json]
[clojure.string :as st])
(:import
(javax.sound.sampled AudioSystem AudioFormat AudioFormat$Encoding AudioFileFormat$Type AudioInputStream)
(java.io SequenceInputStream ByteArrayOutputStream)
(com.amazo... |
881fbd19709352a89ce0c35f28717aa0e23b4220b8d17e7074bd7dfa5c2a5ecb | hypernumbers/hypernumbers | make_palette.erl | %%% makes colour palettes
-module(make_palette).
-export([make/1]).
make(FileName) ->
File = parse_csv:parse_file(FileName),
Sets = sort(File),
Background = [make_bg(X) || X <- Sets],
Text = [flip(X) || X <- Background],
io:format("Background is ~p~nText is ~p~n", [Background, Text]),
ok.
fli... | null | https://raw.githubusercontent.com/hypernumbers/hypernumbers/281319f60c0ac60fb009ee6d1e4826f4f2d51c4e/src/make_palette.erl | erlang | makes colour palettes
-color-contrast-for-legible-text/ | -module(make_palette).
-export([make/1]).
make(FileName) ->
File = parse_csv:parse_file(FileName),
Sets = sort(File),
Background = [make_bg(X) || X <- Sets],
Text = [flip(X) || X <- Background],
io:format("Background is ~p~nText is ~p~n", [Background, Text]),
ok.
flip([Auth, Title, Colours]) ... |
2d34ff930d067f76781bbc72303c7c5c78dca383bc5c628ba7b30f68fc6d41ad | ocsigen/eliom | eliom_extension_template.server.ml | Ocsigen
*
* Module extensiontemplate.ml
* Copyright ( C ) 2007
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , with linking exception ;
* either version 2... | null | https://raw.githubusercontent.com/ocsigen/eliom/c3e0eea5bef02e0af3942b6d27585add95d01d6c/src/lib/eliom_extension_template.server.ml | ocaml | ***************************************************************************
***************************************************************************
This is an example of extension for Ocsigen
***************************************************************************
****************... | Ocsigen
*
* Module extensiontemplate.ml
* Copyright ( C ) 2007
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , with linking exception ;
* either version 2... |
7245f80056873129692fa4e3df30b162ffb14a510d9dc19dec81859decee04da | unison-code/uni-instr-sel | MakeCPModel.hs | |
Copyright : Copyright ( c ) 2012 - 2017 , < >
License : BSD3 ( see the LICENSE file )
Maintainer :
Copyright : Copyright (c) 2012-2017, Gabriel Hjort Blindell <>
License : BSD3 (see the LICENSE file)
Maintainer :
-}
Main authors :
< >
Main authors:
Gabriel Hjort ... | null | https://raw.githubusercontent.com/unison-code/uni-instr-sel/2edb2f3399ea43e75f33706261bd6b93bedc6762/uni-is/UniIS/Drivers/MakeCPModel.hs | haskell | -----------
Functions
-----------
| Function for executing this driver. | |
Copyright : Copyright ( c ) 2012 - 2017 , < >
License : BSD3 ( see the LICENSE file )
Maintainer :
Copyright : Copyright (c) 2012-2017, Gabriel Hjort Blindell <>
License : BSD3 (see the LICENSE file)
Maintainer :
-}
Main authors :
< >
Main authors:
Gabriel Hjort ... |
69df08c51a880a1335934940804ed3e04b0a92dae3e16136914a3c2709a29d61 | DavidAlphaFox/RabbitMQ | sockjs_app.erl | -module(sockjs_app).
-behaviour(application).
-export([start/2, stop/1]).
%% -spec start(_, _) -> {ok, pid()}.
start(_StartType, _StartArgs) ->
sockjs_session:init(),
sockjs_session_sup:start_link().
%% -spec stop(_) -> ok.
stop(_State) ->
ok.
| null | https://raw.githubusercontent.com/DavidAlphaFox/RabbitMQ/0a64e6f0464a9a4ce85c6baa52fb1c584689f49a/plugins-src/sockjs-erlang-wrapper/sockjs-erlang-git/src/sockjs_app.erl | erlang | -spec start(_, _) -> {ok, pid()}.
-spec stop(_) -> ok. | -module(sockjs_app).
-behaviour(application).
-export([start/2, stop/1]).
start(_StartType, _StartArgs) ->
sockjs_session:init(),
sockjs_session_sup:start_link().
stop(_State) ->
ok.
|
60a8bb443d4e12a47fc7184de46589a3b19b67c4ff77143efe15061a074a5551 | jordwalke/rehp | ppx_js_internal.ml | Js_of_ocaml library
* /
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , with linking exception ;
* either version 2.1 of the License , or ( at your option ) any la... | null | https://raw.githubusercontent.com/jordwalke/rehp/f122b94f0a3f06410ddba59e3c9c603b33aadabf/ppx/ppx_js/lib_internal/ppx_js_internal.ml | ocaml | For implicit optional argument elimination. Annoying with Ast_helper.
* Check if an expression is an identifier and returns it.
Raise a Location.error if it's not.
uplift : type of the unused value - ties all types together
downlift : types of individual components (arguments and result)
Build the main... | Js_of_ocaml library
* /
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , with linking exception ;
* either version 2.1 of the License , or ( at your option ) any la... |
e4b2949c3ef3cbbf8e9ddecdab926d749338b69791c969b630081d44da05f4d8 | polyfy/polylith | component.clj | (ns polylith.clj.core.workspace.component
(:require [polylith.clj.core.deps.interface :as deps]
[polylith.clj.core.workspace.loc :as loc]
[polylith.clj.core.workspace.lib-imports :as lib-imp]))
(defn enrich [suffixed-top-ns interface-names {:keys [namespaces] :as component}]
(let [interface... | null | https://raw.githubusercontent.com/polyfy/polylith/febea3d8a9b30a60397594dda3cb0f25154b8d8d/components/workspace/src/polylith/clj/core/workspace/component.clj | clojure | (ns polylith.clj.core.workspace.component
(:require [polylith.clj.core.deps.interface :as deps]
[polylith.clj.core.workspace.loc :as loc]
[polylith.clj.core.workspace.lib-imports :as lib-imp]))
(defn enrich [suffixed-top-ns interface-names {:keys [namespaces] :as component}]
(let [interface... | |
2ed03833bd29379c43f4ef5e8a19c13f7151c47894673d778f8054cb1f2180b0 | rmculpepper/crypto | misc.rkt | #lang racket/base
(require rackunit
crypto/private/common/common)
(check-equal? (version->list #f)
#f)
(check-equal? (version->list "123")
'(123))
(check-equal? (version->list "1.2.3.4.5.6")
'(1 2 3 4 5 6))
(check-equal? (version->list "1.10.1-unknown")
... | null | https://raw.githubusercontent.com/rmculpepper/crypto/1b7cf5d731b502fa30370c16c19df1856b5b35ee/crypto-test/tests/misc.rkt | racket | #lang racket/base
(require rackunit
crypto/private/common/common)
(check-equal? (version->list #f)
#f)
(check-equal? (version->list "123")
'(123))
(check-equal? (version->list "1.2.3.4.5.6")
'(1 2 3 4 5 6))
(check-equal? (version->list "1.10.1-unknown")
... | |
9268a62ec1e9fa4f0416248ae968d10a66afb6cc08331e1da3a94fbe00a9678c | mbutterick/aoc-racket | 23.rkt | #lang br
(require racket/file rackunit racket/async-channel)
(define (string->ints str) (map string->number (string-split str #px",\\s*")))
(define (string->regs str) (list->vector (string->ints str)))
(define ((binarize proc) x y) (if (proc x y) 1 0))
(define (make-runner program inch ouch)
(thread (λ ()
... | null | https://raw.githubusercontent.com/mbutterick/aoc-racket/2c6cb2f3ad876a91a82f33ce12844f7758b969d6/2019/23.rkt | racket | position
immediate
relative | #lang br
(require racket/file rackunit racket/async-channel)
(define (string->ints str) (map string->number (string-split str #px",\\s*")))
(define (string->regs str) (list->vector (string->ints str)))
(define ((binarize proc) x y) (if (proc x y) 1 0))
(define (make-runner program inch ouch)
(thread (λ ()
... |
73847a92028f87ff762e3d0cad2566b724deb61cc2eff2d6dc447cfb913a687d | OCamlPro/typerex-lldb | LLDBOCaml.ml | (**************************************************************************)
(* *)
(* OCamlPro TypeRex *)
(* *)
Copyrigh... | null | https://raw.githubusercontent.com/OCamlPro/typerex-lldb/3be12b69f30127bbf8a5dd483a6bfbbd6045ba0e/libs/ocplib-lldb/LLDBOCaml.ml | ocaml | ************************************************************************
OCamlPro TypeRex
This file is distributed ... | Copyright OCamlPro 2011 - 2016 . All rights reserved .
( GNU Public Licence version 3.0 ) .
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND ,
NONINFRINGEMENT . IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
BE LIABLE... |
800722536e9bec7f582df5394d02390ee7ae33591ed314a52cdd9508a2a89a1c | cljfx/cljfx | e39_web_view_extensions.clj | (ns e39-web-view-extensions
(:require [cljfx.api :as fx]
[cljfx.ext.web-view :as fx.ext.web-view])
(:import [javafx.scene.web WebEvent]))
;; this example shows how to use web view extensions that provide access to
WebEngine object that is used for obtaining web page information and
;; controlling it
... | null | https://raw.githubusercontent.com/cljfx/cljfx/ec3c34e619b2408026b9f2e2ff8665bebf70bf56/examples/e39_web_view_extensions.clj | clojure | this example shows how to use web view extensions that provide access to
controlling it | (ns e39-web-view-extensions
(:require [cljfx.api :as fx]
[cljfx.ext.web-view :as fx.ext.web-view])
(:import [javafx.scene.web WebEvent]))
WebEngine object that is used for obtaining web page information and
(def *state
(atom
{:title nil
:status nil}))
(defn view [{:keys [title status]}]
... |
329e0ecbbd79e33853b8cf35c38a5311117ac508dc7e3fe4f7ee373987c05a80 | stuartsierra/lazytest | find.clj | (ns lazytest.find
(:use lazytest.suite
lazytest.test-case))
(defn- find-var-test-value [this-var]
{:pre [(var? this-var)]
:post [(or (nil? %) (suite? %) (test-case? %))]}
(when (bound? this-var)
(let [value (var-get this-var)]
(when (or (suite? value) (test-case? value))
value))))
(defn- test-seq... | null | https://raw.githubusercontent.com/stuartsierra/lazytest/3b0f419ce3d6f259d2ab3cfde475fa491a4db23e/modules/lazytest/src/main/clojure/lazytest/find.clj | clojure | (ns lazytest.find
(:use lazytest.suite
lazytest.test-case))
(defn- find-var-test-value [this-var]
{:pre [(var? this-var)]
:post [(or (nil? %) (suite? %) (test-case? %))]}
(when (bound? this-var)
(let [value (var-get this-var)]
(when (or (suite? value) (test-case? value))
value))))
(defn- test-seq... | |
c4645f642bca6f57de4f2e2e76e05c4e6afe7ae9a5b36b9b1e24ee7fcae81bf1 | weblocks-framework/weblocks | address.lisp |
(in-package :employer-employee)
;;; Address
(defclass address ()
((street :initform nil
:accessor address-street
:initarg :street)
(city :initform nil
:accessor address-city
:initarg :city)
(state :initform nil
:accessor address-state
:type (or us-st... | null | https://raw.githubusercontent.com/weblocks-framework/weblocks/fe96152458c8eb54d74751b3201db42dafe1708b/contrib/yarek/examples/employer-employee/src/model/address.lisp | lisp | Address
Form View |
(in-package :employer-employee)
(defclass address ()
((street :initform nil
:accessor address-street
:initarg :street)
(city :initform nil
:accessor address-city
:initarg :city)
(state :initform nil
:accessor address-state
:type (or us-state null)
... |
b0aac5c57aa73e914de480c18947ae63405dc76964b43c1df185f27c6627b03a | Noeda/dfterm3 | ConfiguredDefaults.hs | -- | The purpose of this module is to expose configuration that is set at
-- compile-time.
--
# LANGUAGE CPP #
module ConfiguredDefaults
( defaultStorageDirectory )
where
import System.Directory
#ifndef DEFAULT_STORAGE_DIRECTORY
#define DEFAULT_STORAGE_DIRECTORY getAppUserDataDirectory "dfterm3"
#endif
|... | null | https://raw.githubusercontent.com/Noeda/dfterm3/6b33c9b4712da486bb84356f6c9f48abb8074faf/main/ConfiguredDefaults.hs | haskell | | The purpose of this module is to expose configuration that is set at
compile-time.
|
# LANGUAGE CPP #
module ConfiguredDefaults
( defaultStorageDirectory )
where
import System.Directory
#ifndef DEFAULT_STORAGE_DIRECTORY
#define DEFAULT_STORAGE_DIRECTORY getAppUserDataDirectory "dfterm3"
#endif
| Which directory Dfterm3 will try to use by default for storing its data .
defaultStorageDirec... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.