_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 |
|---|---|---|---|---|---|---|---|---|
fd1e4c25dacf2d614e6e79a27984999c3676c3f9abc503623ce6925142f4dda3 | jhgarner/Xest-Window-Manager | Executor.hs | # LANGUAGE TemplateHaskell #
module Base.Executor where
import Config
import Graphics.X11.Xlib.Types
import Standard
import System.Process
-- | Actions that modify the world outside of X11 go here
data Executor a where
-- | Run a command
Execute :: Text -> Executor ()
-- | Toggle logging
ToggleLogs :: Execu... | null | https://raw.githubusercontent.com/jhgarner/Xest-Window-Manager/d1e7640b70fea662508f99778535069e9c639517/src/Base/Executor.hs | haskell | | Actions that modify the world outside of X11 go here
| Run a command
| Toggle logging
| Prints in a controlled way
| Do it in IO
Empty the last run of logging | # LANGUAGE TemplateHaskell #
module Base.Executor where
import Config
import Graphics.X11.Xlib.Types
import Standard
import System.Process
data Executor a where
Execute :: Text -> Executor ()
ToggleLogs :: Executor ()
ReloadConf :: Executor ()
makeEffect ''Executor
runExecutor :: Members [IO, State Bool, St... |
3646e937f26dfa7303a6743b8428d8d0d73f5aa8cbc7205b2cbf35c3726ee014 | sebastiw/otc | otc_tcap_codec_tests.erl | -module(otc_tcap_codec_tests).
-include_lib("eunit/include/eunit.hrl").
decode_empty_begin_empty_user_info_test() ->
Asymetric test due to user - information exist in AARQ , but set
%% to empty.
Dialogue = <<16#60,16#0F,16#80,16#02,16#07,16#80,16#A1,16#09,
16#06,16#07,16#04,16#00,16#00,16#0... | null | https://raw.githubusercontent.com/sebastiw/otc/929ffbe7a03429b833745236262c444a2ea6e571/test/otc_tcap_codec_tests.erl | erlang | to empty. | -module(otc_tcap_codec_tests).
-include_lib("eunit/include/eunit.hrl").
decode_empty_begin_empty_user_info_test() ->
Asymetric test due to user - information exist in AARQ , but set
Dialogue = <<16#60,16#0F,16#80,16#02,16#07,16#80,16#A1,16#09,
16#06,16#07,16#04,16#00,16#00,16#01,16#00,16#15,
... |
6d2ace407585f9244ff51582dd5f306d42c3477dc8c0bc5e4ab417f85b7883c8 | tip-org/tools | Convert.hs | {-# LANGUAGE OverloadedStrings #-}
module Tip.Parser.Convert where
import Prelude hiding ((<>))
import Tip.Parser.AbsTIP as A -- from A ...
import Tip.Core as T -- ... to T
import Tip.Pretty
import Tip.Pretty.SMT()
import Text.PrettyPrint
import Control.Monad.State
import Control.Monad.Except
import Tip.Sco... | null | https://raw.githubusercontent.com/tip-org/tools/6b9ce833146b6e259abc7629357518e667420ba8/tip-lib/src/Tip/Parser/Convert.hs | haskell | # LANGUAGE OverloadedStrings #
from A ...
... to T
| Identifiers from parsed Tip syntax
^ A source position of the identifier, if available
++ "_" ++ show u
add their types, abstractly
add their correct types, abstractly
adds to the symbol map
adds to the symbol map and to the local scope | module Tip.Parser.Convert where
import Prelude hiding ((<>))
import Tip.Pretty
import Tip.Pretty.SMT()
import Text.PrettyPrint
import Control.Monad.State
import Control.Monad.Except
import Tip.Scope
import Tip.Fresh
import Data.List
import Data.Function
import Data.Map (Map)
import qualified Data.Map as M
data Id... |
58f34a7d03feb3da3342727ca27476de21b757f1be0acfbb437879d86022f9ad | expipiplus1/vulkan | CommandBufferResetFlagBits.hs | {-# language CPP #-}
-- No documentation found for Chapter "CommandBufferResetFlagBits"
module Vulkan.Core10.Enums.CommandBufferResetFlagBits ( CommandBufferResetFlags
, CommandBufferResetFlagBits( COMMAND_BUFFER_RESET_RELEASE_RESOURCES_BIT
... | null | https://raw.githubusercontent.com/expipiplus1/vulkan/70d8cca16893f8de76c0eb89e79e73f5a455db76/src/Vulkan/Core10/Enums/CommandBufferResetFlagBits.hs | haskell | # language CPP #
No documentation found for Chapter "CommandBufferResetFlagBits"
| VkCommandBufferResetFlagBits - Bitmask controlling behavior of a command
buffer reset
= See Also
<-extensions/html/vkspec.html#VK_VERSION_1_0 VK_VERSION_1_0>,
'CommandBufferResetFlags'
| 'COMMAND_BUFFER_RESET_RELEASE_RESOURCES_B... | module Vulkan.Core10.Enums.CommandBufferResetFlagBits ( CommandBufferResetFlags
, CommandBufferResetFlagBits( COMMAND_BUFFER_RESET_RELEASE_RESOURCES_BIT
, ..
... |
6dac80002c6d04d355a4b381e8f2e3a817c35b9e3a7bf70d3646897d0f37813c | mark-watson/haskell_tutorial_cookbook_examples | JsonTest.hs | {-# LANGUAGE OverloadedStrings #-}
import Data.Aeson (Value)
import qualified Data.ByteString.Char8 as S8
import qualified Data.Yaml as Yaml
import Network.HTTP.Simple
import Data.Typeable(typeOf) -- for debugging
import Control.Monad.Trans(lift) -- experiment only
main :: I... | null | https://raw.githubusercontent.com/mark-watson/haskell_tutorial_cookbook_examples/b4ddfc7cc0290f4f1617fca9c363260f43ab66cf/SparqlClient/JsonTest.hs | haskell | # LANGUAGE OverloadedStrings #
for debugging
experiment only
rb <- lift $ (getResponseBody response) -- :: Value) | import Data.Aeson (Value)
import qualified Data.ByteString.Char8 as S8
import qualified Data.Yaml as Yaml
import Network.HTTP.Simple
main :: IO ()
main = do
response <- httpJSON " * where {?s ?p ?o} limit 2"
print $ typeOf response
putStrLn $ "The status code wa... |
eb98b7f3959af9062b5fa3aaa8af2dbb3f410cb6cb6bdd24da820c851614a799 | yminsky/experiment-with-ocaml-5 | bench.ml | open! Core
module Benchmark_id = struct
module Seq_or_par = struct
type t =
| Seq
| Par
[@@deriving sexp]
end
module T = struct
type t =
| Dist of Seq_or_par.t * string * string
| Memo_dist of Seq_or_par.t * int
| Fib of Seq_or_par.t * int
[@@deriving sexp]
end
... | null | https://raw.githubusercontent.com/yminsky/experiment-with-ocaml-5/db5df4bf536e4ecce2bd15293eb0460fc43872f4/bench/bench.ml | ocaml | parallel scheduler takes a single domain automatically | open! Core
module Benchmark_id = struct
module Seq_or_par = struct
type t =
| Seq
| Par
[@@deriving sexp]
end
module T = struct
type t =
| Dist of Seq_or_par.t * string * string
| Memo_dist of Seq_or_par.t * int
| Fib of Seq_or_par.t * int
[@@deriving sexp]
end
... |
213ee69af56f9f77c671507caece13bf5d04812638d90658f17f33ecf5ae8d2d | slipstream/SlipStreamServer | ssconfig.clj | (ns com.sixsq.slipstream.tools.cli.ssconfig
(:require
[clojure.set :as set]
[clojure.string :as str]
[clojure.tools.cli :as cli]
[com.sixsq.slipstream.db.loader :as db-loader]
[com.sixsq.slipstream.db.serializers.service-config-impl :as sci]
[com.sixsq.slipstream.db.serializers.utils :as su]
... | null | https://raw.githubusercontent.com/slipstream/SlipStreamServer/3ee5c516877699746c61c48fc72779fe3d4e4652/cimi-tools/src/com/sixsq/slipstream/tools/cli/ssconfig.clj | clojure |
Helper functions.
Common functions.
Service configuration.
adding may fail because template hasn't been registered yet.
Connectors.
adding may fail because template hasn't been registered yet.
Command line options processing.
for all actions below | (ns com.sixsq.slipstream.tools.cli.ssconfig
(:require
[clojure.set :as set]
[clojure.string :as str]
[clojure.tools.cli :as cli]
[com.sixsq.slipstream.db.loader :as db-loader]
[com.sixsq.slipstream.db.serializers.service-config-impl :as sci]
[com.sixsq.slipstream.db.serializers.utils :as su]
... |
b32de8e1482e6c6ba569644f8eea7e4e6c4727a908fbd62d95bf41433f8b44d6 | synduce/Synduce | sumgt.ml |
let s0 = 0
let f0 x0 x1 = x1 > x0 ? x1 : 0
let odot x2 x3 x4 = x3 + x4
let rec h =
function CNil -> s0 | Single(a) -> f0 c a
| Concat(x, y) -> odot c (h x) (h y)
| null | https://raw.githubusercontent.com/synduce/Synduce/d453b04cfb507395908a270b1906f5ac34298d29/extras/solutions/list/sumgt.ml | ocaml |
let s0 = 0
let f0 x0 x1 = x1 > x0 ? x1 : 0
let odot x2 x3 x4 = x3 + x4
let rec h =
function CNil -> s0 | Single(a) -> f0 c a
| Concat(x, y) -> odot c (h x) (h y)
| |
acc5c2800ff1dca0ab747abd63c07b34544130b2473f29d9bbc723e1a1a79b39 | ddssff/refact-global-hse | A.hs | # LANGUAGE CPP #
module A where
import Data.String
#if 0
x = "This is inside #if 0"
#else
x = "This is inside the #else"
#endif
y = "This is outside the #if"
| null | https://raw.githubusercontent.com/ddssff/refact-global-hse/519a017009cae8aa1a3db1b46eb560d76bd9895d/tests/input/cpp/A.hs | haskell | # LANGUAGE CPP #
module A where
import Data.String
#if 0
x = "This is inside #if 0"
#else
x = "This is inside the #else"
#endif
y = "This is outside the #if"
| |
78da474f408c9711c3da5d80283dd54f31481f440534c8d9ca0b390fb5f3cec2 | ChristopherBiscardi/snap-for-beginners | Site.hs | {-# LANGUAGE OverloadedStrings #-}
------------------------------------------------------------------------------
-- | This module is where all the routes and handlers are defined for your
-- site. The 'app' function is the initializer that combines everything
-- together and is exported by this module.
module Site
... | null | https://raw.githubusercontent.com/ChristopherBiscardi/snap-for-beginners/d35a4bbdd0a459983e2f37400fbc2bf8c8bf6239/code/routing-app/src/Site.hs | haskell | # LANGUAGE OverloadedStrings #
----------------------------------------------------------------------------
| This module is where all the routes and handlers are defined for your
site. The 'app' function is the initializer that combines everything
together and is exported by this module.
---------------------------... |
module Site
( app
) where
import Control.Applicative
import Data.Aeson
import Data.ByteString (ByteString)
import qualified Data.Text as T
import Heist
import qualified Heist.Interpreted ... |
eeb208fe91eaa12ae579655f4b08c4074f0d9e016dd84b85d9f0d656d25de036 | system-f/fp-course | ContravariantTest.hs | # OPTIONS_GHC -fno - warn - type - defaults #
# LANGUAGE NoImplicitPrelude #
module Test.ContravariantTest (
-- * Tests
test_Contravariant
, predicateTest
, comparisonTest
, swappedArrowTest
, ignoreTest
-- * Runner
, test
) where
import Test.Framework (TestTree, testCase, testGroup, t... | null | https://raw.githubusercontent.com/system-f/fp-course/831b390eb01d80b9d53e288b030b55decfe47ed8/src/Test/ContravariantTest.hs | haskell | * Tests
* Runner | # OPTIONS_GHC -fno - warn - type - defaults #
# LANGUAGE NoImplicitPrelude #
module Test.ContravariantTest (
test_Contravariant
, predicateTest
, comparisonTest
, swappedArrowTest
, ignoreTest
, test
) where
import Test.Framework (TestTree, testCase, testGroup, test, (@?=), testProperty)
... |
ee6af73fa5e1d1466c1efb47af8692073c99754296110f853b3e6b2706469467 | usds/apis.gov | catalog.ml | open Lwt
open Cohttp_lwt_unix
let list_unique l =
let starting_state = Hashtbl.create (List.length l) in
let rec aux acc rest state =
match rest with
| x::xs ->
begin
try begin
let _ = Hashtbl.find state x in
aux acc xs state
end with Not_found -> begin
... | null | https://raw.githubusercontent.com/usds/apis.gov/3f676bf44fb7912fb43d2075c984e001836a053b/catalog/catalog.ml | ocaml | * TODO: Change to /api.json | open Lwt
open Cohttp_lwt_unix
let list_unique l =
let starting_state = Hashtbl.create (List.length l) in
let rec aux acc rest state =
match rest with
| x::xs ->
begin
try begin
let _ = Hashtbl.find state x in
aux acc xs state
end with Not_found -> begin
... |
e2597227ba23ff136feccf2604231ef66a10a53748c3c208593fbf1dc51cd5c8 | LaurentMazare/ocaml-torch | scalar.mli | include module type of Torch_core.Wrapper.Scalar
val f : float -> float t
val i : int -> int t
| null | https://raw.githubusercontent.com/LaurentMazare/ocaml-torch/a82b906a22c7c23138af16fab497a08e5167d249/src/torch/scalar.mli | ocaml | include module type of Torch_core.Wrapper.Scalar
val f : float -> float t
val i : int -> int t
| |
f28cc9b9a85df2e21098d005eabbc70c162d4494de11f928433355707ea176f5 | thelema/ocaml-community | cmt_format.mli | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
, ... | null | https://raw.githubusercontent.com/thelema/ocaml-community/ed0a2424bbf13d1b33292725e089f0d7ba94b540/typing/cmt_format.mli | ocaml | *********************************************************************
OCaml
... | , INRIA Saclay
Copyright 2012 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 .
* cmt and cmti files format .
* The layout o... |
5ddc25f527877bab5761b79ddb39c3d1782cbd18bd159f1ed4540f282ef1f9aa | haskell-game/sdl2-image | Image.hs | |
Module : SDL.Image
Copyright : ( c ) 2015
License : MIT
Maintainer :
Stability : experimental
Bindings to the @SDL2_image@ library . These should allow you to load various
types of images as @SDL@ ' Surface 's , as well as detect image formats .
You can safely assume that any ... | null | https://raw.githubusercontent.com/haskell-game/sdl2-image/382395c763b473032721c71921b5c9241142178f/src/SDL/Image.hs | haskell | # LANGUAGE DeriveGeneric #
# LANGUAGE LambdaCase #
* Loading images
data.
If you have @TGA@-formatted data, you might wish to use the functions from
the <#tga following section> instead.
| #tga# Since @TGA@ images don't contain a specific unique signature, the
following functions might succe... | |
Module : SDL.Image
Copyright : ( c ) 2015
License : MIT
Maintainer :
Stability : experimental
Bindings to the @SDL2_image@ library . These should allow you to load various
types of images as @SDL@ ' Surface 's , as well as detect image formats .
You can safely assume that any ... |
7b40ef96cdb41ccfb5da5a6da2534acd8c791c78060a8733d7d9fe50465a4e95 | nyu-acsys/drift | a-sub.ml |
let make_array (n:int) (i:int) = assert (0 <= i && i < n); 0
let update (i:int) (n:int) a (x:int) =
a i;
let ap j = assert (0 <= i && i < n); if i = j then x else a j in ap
let rec sub_helper hi hstart hn hlen ha hb =
if (hlen > 0 && hi < hlen) then
(let hbp = update hi hlen hb (ha hstart) in
sub_helper (h... | null | https://raw.githubusercontent.com/nyu-acsys/drift/51a3160d74b761626180da4f7dd0bb950cfe40c0/tests/benchmarks_call/r_type/array/a-sub.ml | ocaml |
let make_array (n:int) (i:int) = assert (0 <= i && i < n); 0
let update (i:int) (n:int) a (x:int) =
a i;
let ap j = assert (0 <= i && i < n); if i = j then x else a j in ap
let rec sub_helper hi hstart hn hlen ha hb =
if (hlen > 0 && hi < hlen) then
(let hbp = update hi hlen hb (ha hstart) in
sub_helper (h... | |
7123f3f0e1b5928db1155790518e6564dd38d4d310670ef0231b9354f9fe3ffc | korya/efuns | interp_term.ml | (***********************************************************************)
(* *)
(* Interp.ml *)
(* *)
Fabrice Le Fessa... | null | https://raw.githubusercontent.com/korya/efuns/78b21d9dff45b7eec764c63132c7a564f5367c30/dynlink/other/interp_term.ml | ocaml | *********************************************************************
Interp.ml
... | Fabrice Le Fessant , projet Para / SOR , INRIA Rocquencourt
Copyright 1998 Institut National de Recherche en Informatique et
Automatique . Distributed only by permission .
This module implement an interpretor for OCAML bytecode . The bytecode is
supposed to be lin... |
f5aadd7fec58fa5bae8b18824df250105ee461773025156549c3c8f32c9421d2 | PLTools/GT | test010.ml | let rec to_string = function
| `Var s -> s
| `Abs (s, x) -> "(\\" ^ s ^ " -> " ^ to_string x ^ ")"
| `App (x, y) -> "(" ^ to_string x ^ " " ^ to_string y ^ ")"
| `Num i -> string_of_int i
| `Add (x, y) -> "(" ^ to_string x ^ " + " ^ to_string y ^ ")"
| `Mult (x, y) -> "(" ^ to_string x ^ " * " ^ to_strin... | null | https://raw.githubusercontent.com/PLTools/GT/62d1a424a3336f2317ba67e447a9ff09d179b583/regression/test010.ml | ocaml | Why we don't extend old env here
let (_: _ -> int) = new lambda_eval | let rec to_string = function
| `Var s -> s
| `Abs (s, x) -> "(\\" ^ s ^ " -> " ^ to_string x ^ ")"
| `App (x, y) -> "(" ^ to_string x ^ " " ^ to_string y ^ ")"
| `Num i -> string_of_int i
| `Add (x, y) -> "(" ^ to_string x ^ " + " ^ to_string y ^ ")"
| `Mult (x, y) -> "(" ^ to_string x ^ " * " ^ to_strin... |
03fb914b917abd22bdcecaffe1f946bc879cda8cac91e2205506b7755967d8e4 | mokus0/misfortune | FortuneFile.hs | {-# LANGUAGE BangPatterns #-}
# LANGUAGE CPP #
# LANGUAGE RecordWildCards #
module Data.Fortune.FortuneFile
( FortuneFile
, fortuneFilePath
, fortuneIndexPath
, openFortuneFile
, closeFortuneFile
, getIndex
, rebuildIndex
, getFortune
, getFortunes
, getNumFortunes
... | null | https://raw.githubusercontent.com/mokus0/misfortune/8d92614246c8e59137aba8250720aed97b6abbf8/src/Data/Fortune/FortuneFile.hs | haskell | # LANGUAGE BangPatterns #
|A handle to an open fortune database.
|Get the path of the text part of an open fortune database.
|Get the path of the index part of an open fortune database.
|Close a fortune file. Subsequent accesses will fail.
if read-only, create an in-memory index if the real one exists but can't be... | # LANGUAGE CPP #
# LANGUAGE RecordWildCards #
module Data.Fortune.FortuneFile
( FortuneFile
, fortuneFilePath
, fortuneIndexPath
, openFortuneFile
, closeFortuneFile
, getIndex
, rebuildIndex
, getFortune
, getFortunes
, getNumFortunes
, appendFortune
) where
... |
972057534c605d07a70d1acc8aba700e6d259096599811d5b04b2a4d211a4b1c | GavinMendelGleason/Cocktail | Utils.hs | module Utils where
ith :: Int -> [a] -> Maybe a
ith i [] = Nothing
ith i (h:t) = if i == 0
then Just h
else ith (i-1) t
| null | https://raw.githubusercontent.com/GavinMendelGleason/Cocktail/5828a3269d8f59b3af549f1a6998f32bf7d15b65/Utils.hs | haskell | module Utils where
ith :: Int -> [a] -> Maybe a
ith i [] = Nothing
ith i (h:t) = if i == 0
then Just h
else ith (i-1) t
| |
8bfe191fa4b1a6c290bb6b84e24c2ec4c830336dc521d63e5c5a6d52ced2c669 | 8c6794b6/guile-tjit | srfi-35.scm | srfi-35.scm --- Conditions -*- coding : utf-8 -*-
Copyright ( C ) 2007 , 2008 , 2009 , 2010 , 2011 Free Software Foundation , 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 So... | null | https://raw.githubusercontent.com/8c6794b6/guile-tjit/9566e480af2ff695e524984992626426f393414f/module/srfi/srfi-35.scm | scheme |
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
either
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... | srfi-35.scm --- Conditions -*- coding : utf-8 -*-
Copyright ( C ) 2007 , 2008 , 2009 , 2010 , 2011 Free Software Foundation , Inc.
version 3 of the License , or ( at your option ) any later version .
You should have received a copy of the GNU Lesser General Public
Foundation , Inc. , 51 Fran... |
39ae1c09c21ef9bca8667e065810bcbda6da7165fcee1ffb7ff964309b3869e7 | orbitz/ocaml-protobuf | protocol.mli | open Core.Std
module Value : sig
type t =
| Varint of Int64.t
| Fixed64 of Int64.t
| Fixed32 of Int32.t
| Sequence of Bitstring.bitstring
end
module Field : sig
type t
val create : int -> Value.t -> t
val tag : t -> int
val value : t -> Value.t
end
type error = [ `Incomplete | `Ove... | null | https://raw.githubusercontent.com/orbitz/ocaml-protobuf/66228bbde1aba144b5b6b4b016df0d48e8092744/lib/protobuf/protocol.mli | ocaml | open Core.Std
module Value : sig
type t =
| Varint of Int64.t
| Fixed64 of Int64.t
| Fixed32 of Int32.t
| Sequence of Bitstring.bitstring
end
module Field : sig
type t
val create : int -> Value.t -> t
val tag : t -> int
val value : t -> Value.t
end
type error = [ `Incomplete | `Ove... | |
9df4e04653cb5c34a4a474d7857f2484bedd4cbb59cd2cd46bf185ee17857bed | borgeby/clj-json-pointer | unit_test.cljc | (ns clj-json-pointer.unit-test
(:require [clojure.test :refer [deftest is testing]]
[clj-json-pointer.core :refer [patch]])
#?(:clj (:import (clojure.lang ExceptionInfo))))
(deftest patch-add-test
(testing "simple add"
(is (= (patch {"a" 1} [{"op" "add" "path" "/b" "value" 2}]) {"a" 1 "b" 2})))
... | null | https://raw.githubusercontent.com/borgeby/clj-json-pointer/f04e47c8f23fe4cf01f9d20b869508471d7b6518/test/clj_json_pointer/unit_test.cljc | clojure | (ns clj-json-pointer.unit-test
(:require [clojure.test :refer [deftest is testing]]
[clj-json-pointer.core :refer [patch]])
#?(:clj (:import (clojure.lang ExceptionInfo))))
(deftest patch-add-test
(testing "simple add"
(is (= (patch {"a" 1} [{"op" "add" "path" "/b" "value" 2}]) {"a" 1 "b" 2})))
... | |
ff966ab539f2783df944e3f023747d4c39cf30a04d6032c9ed6d91a83d6bec36 | melange-re/melange | uncurry_method.ml |
let obj = object [@bs]
method hi a b = a + b
method say a b = a - b
method xx a b = a - b
end
let f x (a:int) (b:int) = x##hi a b
let h = obj##hi
;; f obj 3 4 |. Js.log
let x h = h##raw ~x:0 ~y:0
class type pro = object [@bs]
method exit : code:int -> unit
end
let f1 (u : pro Js.t) = u##exit ~code:2... | null | https://raw.githubusercontent.com/melange-re/melange/246e6df78fe3b6cc124cb48e5a37fdffd99379ed/jscomp/test/uncurry_method.ml | ocaml | TODO: not supported yet
|
let obj = object [@bs]
method hi a b = a + b
method say a b = a - b
method xx a b = a - b
end
let f x (a:int) (b:int) = x##hi a b
let h = obj##hi
;; f obj 3 4 |. Js.log
let x h = h##raw ~x:0 ~y:0
class type pro = object [@bs]
method exit : code:int -> unit
end
let f1 (u : pro Js.t) = u##exit ~code:2... |
13ff73137d7ae052b15875bac98dbce5ddd7d8644f596326020485434298d2c7 | mangpo/greenthumb | complexA.rkt | #lang racket
(require "../main.rkt" "../GA-parser.rkt")
(define parser (new GA-parser%))
;; complexA
(optimize (send parser ast-from-string
"drop pop a 3 b! !b 0 b! !b 3 b! @b up b! !b 0 b! @b 2* 2* up b! @b 3 and +")
... | null | https://raw.githubusercontent.com/mangpo/greenthumb/7a8626205879af8c788f9927eeff643f4ddc5cde/GA/programs/complexA.rkt | racket | complexA | #lang racket
(require "../main.rkt" "../GA-parser.rkt")
(define parser (new GA-parser%))
(optimize (send parser ast-from-string
"drop pop a 3 b! !b 0 b! !b 3 b! @b up b! !b 0 b! @b 2* 2* up b! @b 3 and +")
'((data . 2))
#t #f #:cores 4 #:time-limit 3600
#:input-file "dat... |
48c49bf3163224430a2cab6528256a689c5517132da40acc236ddc4a1756ff2b | sol/hspec-tutorial | Main.hs | module Main (main) where
import App
import Network.Wai.Handler.Warp
main :: IO ()
main = do
putStrLn ":3000"
app >>= run 3000
| null | https://raw.githubusercontent.com/sol/hspec-tutorial/92ced065e0bfdd688f6e18bda74da53d270d8cda/driver/Main.hs | haskell | module Main (main) where
import App
import Network.Wai.Handler.Warp
main :: IO ()
main = do
putStrLn ":3000"
app >>= run 3000
| |
ddedc44c6ee5f3b12c7981566437caf11dd7f661c0b76c7d99d6454ca6c0cccc | SquidDev/urn | composition.lisp | (import test ())
(import tests/compiler/analysis/optimise/optimise-helpers ())
(import urn/analysis/optimise/simple optimise)
(import urn/analysis/optimise/usage optimise)
(describe "The optimiser"
(it "has a lambda folder and expression folder which work together"
(affirm-transform-optimise (list optimise/expr... | null | https://raw.githubusercontent.com/SquidDev/urn/6e6717cf1376b0950e569e3771cb7e287aed291d/tests/compiler/analysis/optimise/composition.lisp | lisp | (import test ())
(import tests/compiler/analysis/optimise/optimise-helpers ())
(import urn/analysis/optimise/simple optimise)
(import urn/analysis/optimise/usage optimise)
(describe "The optimiser"
(it "has a lambda folder and expression folder which work together"
(affirm-transform-optimise (list optimise/expr... | |
35ad947997f33a588e85b633bb269b2d6dc16563a9022c563f74704c2434b29a | oxidizing/sihl | contract_migration.ml | type step =
{ label : string
; statement : string
; check_fk : bool
}
[@@deriving eq, show]
type steps = step list [@@deriving eq, show]
type t = string * steps [@@deriving eq, show]
let name = "migration"
exception Exception of string
exception Dirty_migration
module type Sig = sig
(** [register_migratio... | null | https://raw.githubusercontent.com/oxidizing/sihl/1870d7c9fba19a883a9ccc5f07e9f9f76bf22e35/sihl/src/contract_migration.ml | ocaml | * [register_migration migration] registers a migration [migration] with the
migration service so it can be executed with `run_all`.
* [register_migrations migrations] registers migrations [migrations] with
the migration service so it can be executed with `run_all`.
* [execute ?ctx migrations] runs all mig... | type step =
{ label : string
; statement : string
; check_fk : bool
}
[@@deriving eq, show]
type steps = step list [@@deriving eq, show]
type t = string * steps [@@deriving eq, show]
let name = "migration"
exception Exception of string
exception Dirty_migration
module type Sig = sig
val register_migration... |
819a15bb908fef4d2289e937135a2c7414bbd60243db9ee5a88a1100522608af | jimcrayne/jhc | Applicative.hs | -----------------------------------------------------------------------------
-- |
-- Module : Control.Applicative
Copyright : and 2005
-- License : BSD-style (see the LICENSE file in the distribution)
--
-- Maintainer :
-- Stability : experimental
-- Portability : portable
--
-- This modul... | null | https://raw.githubusercontent.com/jimcrayne/jhc/1ff035af3d697f9175f8761c8d08edbffde03b4e/lib/applicative/Control/Applicative.hs | haskell | ---------------------------------------------------------------------------
|
Module : Control.Applicative
License : BSD-style (see the LICENSE file in the distribution)
Maintainer :
Stability : experimental
Portability : portable
This module describes a structure intermediate between a funct... | Copyright : and 2005
/Applicative Programming with Effects/ ,
by and , online at
This interface was introduced for parsers by , because
mostly based on recent parsing work by .
' Data . . ' class .
module Control.Applicative (
Applicative(..),
Alternative(..),
Con... |
99e6433716677fbe3c2d1dbed3a975018e8aee012cd317ef06fde98738a75bd6 | bugra/knn | distance_test.clj | (ns knn.distance-test
(:require [clojure.test :refer :all]
[knn.distance :refer :all]
[knn.op :as op]))
; Tests are adapted from:
;
(def first-vector [4. 5. 6. 7.])
(def second-vector [3. 9. 8. 1.])
(def third-vector [1. 2. 1. 3. 2. 1.])
(def fourth-vector [1. 3. 0. 2. 2. 0.])
(defn round... | null | https://raw.githubusercontent.com/bugra/knn/676054ed625696ee1dab9332411363bf8e6868dd/test/knn/distance_test.clj | clojure | Tests are adapted from:
| (ns knn.distance-test
(:require [clojure.test :refer :all]
[knn.distance :refer :all]
[knn.op :as op]))
(def first-vector [4. 5. 6. 7.])
(def second-vector [3. 9. 8. 1.])
(def third-vector [1. 2. 1. 3. 2. 1.])
(def fourth-vector [1. 3. 0. 2. 2. 0.])
(defn round
"Round double/float number... |
a03e5a3efaa84b6edcd5d6c5a7b7c5ccba8dce4a03a699cab05ff4eee887647e | ijvcms/chuanqi_dev | scene_activity_base_lib.erl | %%%-------------------------------------------------------------------
@author zhengsiying
( C ) 2015 , < COMPANY >
%%% @doc
%%%
%%% @end
Created : 18 . 十二月 2015 上午11:33
%%%-------------------------------------------------------------------
-module(scene_activity_base_lib).
-include("common.hrl").
-include("rec... | null | https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/business/scene/activity/scene_activity_base_lib.erl | erlang | -------------------------------------------------------------------
@doc
@end
-------------------------------------------------------------------
API
====================================================================
API functions
====================================================================
检查场景活动,初始话... | @author zhengsiying
( C ) 2015 , < COMPANY >
Created : 18 . 十二月 2015 上午11:33
-module(scene_activity_base_lib).
-include("common.hrl").
-include("record.hrl").
-include("config.hrl").
-export([
init/2,
on_timer/1,
on_obj_die/3,
is_activity_time/1,
init_time/1
]).
init(SceneState, Args) ->
场景定时器
on_timer... |
3541ab62587d884862d3f5ed252687681eaa8c21b405fd5740c4779f2470a58b | heyarne/airsonic-ui | tabs.cljs | (ns bulma.tabs)
(defn tabs [{:keys [items]}]
[:div.tabs.is-boxed
[:ul
(for [[idx {:keys [href label active?]}] (map-indexed vector items)]
^{:key idx} [:li (when active? {:class "is-active"})
[:a {:href href} label]])]])
| null | https://raw.githubusercontent.com/heyarne/airsonic-ui/7adb03d6e2ba0ff764796a57b7e87f62b242c9b7/src/cljs/bulma/tabs.cljs | clojure | (ns bulma.tabs)
(defn tabs [{:keys [items]}]
[:div.tabs.is-boxed
[:ul
(for [[idx {:keys [href label active?]}] (map-indexed vector items)]
^{:key idx} [:li (when active? {:class "is-active"})
[:a {:href href} label]])]])
| |
d5c073267030672c1290479b3bcc76aa9b777418c2a31a2f741be6df99218d46 | tweag/inline-java | Classes.hs | {-# LANGUAGE LinearTypes #-}
{-# LANGUAGE RankNTypes #-}
module Directory.Server.Monad.Classes where
import qualified Control.Functor.Linear as Linear
class MonadFileSystem m where
doesDirectoryExist :: FilePath -> m Bool
listDirectory :: FilePath -> m [FilePath]
canonicalizePath :: FilePath -> m FilePath
cla... | null | https://raw.githubusercontent.com/tweag/inline-java/a2daaa3cfc5cb172b6334bf5904d1a57025e709a/examples/directory-server/src/Directory/Server/Monad/Classes.hs | haskell | # LANGUAGE LinearTypes #
# LANGUAGE RankNTypes # | module Directory.Server.Monad.Classes where
import qualified Control.Functor.Linear as Linear
class MonadFileSystem m where
doesDirectoryExist :: FilePath -> m Bool
listDirectory :: FilePath -> m [FilePath]
canonicalizePath :: FilePath -> m FilePath
class Linear.Monad m => MonadFinally m where
finally :: m ... |
8e25cd02096694f31a80ec6a3d00316e1b9a7ce88e73d1b67cca3921b7159362 | rainyt/ocaml-haxe | ereg.ml | exception STRING of string
type t_string =
| Nil
| VALUE of string
type t_str_regexp =
| Nil
| VALUE of Str.regexp
type ereg_this={
mutable ocamlEreg:t_str_regexp;
mutable mode:t_string;
}
let create_this a1 b1 = let this = {
ocamlEreg=Nil;
mode=Nil;
} in
(Printf.printf "%s%s%s%s\n" ("create Ereg:") (!a1) (",") (!b1... | null | https://raw.githubusercontent.com/rainyt/ocaml-haxe/56baf6d818238dcbf1d28bfa263694f8ec29f06b/bin/ereg.ml | ocaml | exception STRING of string
type t_string =
| Nil
| VALUE of string
type t_str_regexp =
| Nil
| VALUE of Str.regexp
type ereg_this={
mutable ocamlEreg:t_str_regexp;
mutable mode:t_string;
}
let create_this a1 b1 = let this = {
ocamlEreg=Nil;
mode=Nil;
} in
(Printf.printf "%s%s%s%s\n" ("create Ereg:") (!a1) (",") (!b1... | |
cae159da0229529a35b94011019976ce511fe125718d293be0e077861e08f8f5 | binsec/binsec | simulation.ml | (**************************************************************************)
This file is part of BINSEC .
(* *)
Copyright ( C ) 2016 - 2022
CEA ( Co... | null | https://raw.githubusercontent.com/binsec/binsec/8ed9991d36451a3ae7487b966c4b38acca21a5b3/src/static/interpreter/simulation.ml | ocaml | ************************************************************************
alternatives)
you can redistribute it an... | This file is part of BINSEC .
Copyright ( C ) 2016 - 2022
CEA ( Commissariat à l'énergie atomique et aux énergies
Lesser General Public License as published by the Free Software
Foundation , ve... |
ed7a40c6b7d55c67ff275540b75300749ce8e9d927ce93e39492800a0ac2c9ec | well-typed-lightbulbs/rpi | AUX.ml | module Reg = Rpi.AUX.Reg
external irq_enable : unit -> unit = "irq_enable"
let stream, push = Lwt_stream.create ()
let read () = Lwt_stream.next stream
let state = Ke.Rke.create ~capacity:1024 Bigarray.Char
let handler _ =
Mem.dmb ();
while Reg.Mu_Iir.(read () && rx_fifo_not_empty) do
let c = Reg.Mu_Io.(read... | null | https://raw.githubusercontent.com/well-typed-lightbulbs/rpi/9bedf5735277c66009dffb0c70489ca0f88d84fc/src/drivers/AUX.irq/AUX.ml | ocaml | module Reg = Rpi.AUX.Reg
external irq_enable : unit -> unit = "irq_enable"
let stream, push = Lwt_stream.create ()
let read () = Lwt_stream.next stream
let state = Ke.Rke.create ~capacity:1024 Bigarray.Char
let handler _ =
Mem.dmb ();
while Reg.Mu_Iir.(read () && rx_fifo_not_empty) do
let c = Reg.Mu_Io.(read... | |
db6d3d64db91f8889a96bcd3252e502f53350b6a96a341f2fa7b9e0d0bda4e22 | jrm-code-project/LISP-Machine | pht.lisp | -*- Mode : LISP ; Package : SYSTEM - INTERNALS ; Base:8 ; : ZL -*-
(defvar *ppd* (make-wireable-array (floor (%region-length physical-page-data) page-size)
'art-32b
nil))
(defvar *pht* (make-wireable-array (floor (%region-length page-table-area)... | null | https://raw.githubusercontent.com/jrm-code-project/LISP-Machine/0a448d27f40761fafabe5775ffc550637be537b2/lambda/pace/hacks/pht.lisp | lisp | Package : SYSTEM - INTERNALS ; Base:8 ; : ZL -*-
SAME AS VMA
%PHT-DUMMY-VIRTUAL-ADDRESS 377777 ;ALL ONES MEANS THIS IS DUMMY ENTRY
%PHT-SWAP-STATUS-NORMAL 1 ;ORDINARY PAGE
SAFELY REUSABLE TO SWAP PAGES INTO
;MAY NEED TO BE WRITTEN TO ... |
(defvar *ppd* (make-wireable-array (floor (%region-length physical-page-data) page-size)
'art-32b
nil))
(defvar *pht* (make-wireable-array (floor (%region-length page-table-area) page-size)
'art-32b
... |
2f17a97e6cfdff1302cb366111b1f9c5659b15eeb5063bfd70347fb9235095e9 | BillHallahan/G2 | Length.hs | {-@ LIQUID "--short-names" @-}
{-@ LIQUID "--no-termination" @-}
{-@ LIQUID "--prune-unsorted" @-}
# LANGUAGE DeriveGeneric #
module List ( List, size ) where
import Prelude hiding (length, replicate, foldr, foldr1, map, concat, zipWith)
infixr 9 :+:
@ type TRUE = { v : | v } @
data List = Emp
| (:+:) ... | null | https://raw.githubusercontent.com/BillHallahan/G2/21c648d38c380041a9036d0e375ec1d54120f6b4/tests_lh/Liquid/Length.hs | haskell | @ LIQUID "--short-names" @
@ LIQUID "--no-termination" @
@ LIQUID "--prune-unsorted" @
@ measure size @
@ invariant {v:List | 0 <= size v} @
@ prop_size :: TRUE @
@ l0 :: List @ |
# LANGUAGE DeriveGeneric #
module List ( List, size ) where
import Prelude hiding (length, replicate, foldr, foldr1, map, concat, zipWith)
infixr 9 :+:
@ type TRUE = { v : | v } @
data List = Emp
| (:+:) Int List
deriving (Eq, Ord, Show)
size :: List -> Int
size (Emp) = 0
size ((:+:) ... |
51c7dbc5a7f7a5cdad52e48ee474464830fd23cb0cc2e6cb63b522381b1a0fe4 | rleonid/oml | mnist_test.ml |
# require " dsfo " ; ;
-- or --
ocamlbuild -pkgs dsfo , lacaml , ocephes , lbfgs -I src / scripts/ -I src / lib/ mnist_test.native
expected results :
train 0.934 correct
test 0.926 correct
#require "dsfo";;
-- or --
ocamlbuild -use-ocamlfind -pkgs dsfo,lacaml,ocephes,lbfgs -I src/... | null | https://raw.githubusercontent.com/rleonid/oml/a857d67708827ed00df3f175a942044601ca50cf/scripts/mnist_test.ml | ocaml | ***** DID YOU REQUIRE #DSFO ?!?
#require "dsfo"
****
Gives identical results... so not that useful?
*** QDA **
This will *fail* since the determinant calculation to normalize
the multivariate normal pdf will underflow -> denumerator = 0
Mathematically this is problematic, but it 'works'. |
# require " dsfo " ; ;
-- or --
ocamlbuild -pkgs dsfo , lacaml , ocephes , lbfgs -I src / scripts/ -I src / lib/ mnist_test.native
expected results :
train 0.934 correct
test 0.926 correct
#require "dsfo";;
-- or --
ocamlbuild -use-ocamlfind -pkgs dsfo,lacaml,ocephes,lbfgs -I src/... |
076ec77f269688fc624355606bc8a7e565155f1e1491016ba34f8eada51b3f70 | OCamlPro/OCamlPro-OCaml-Branch | bug.ml | let () = try raise (Invalid_argument "X") with Invalid_argument s ->
raise (Invalid_argument (s ^ s))
| null | https://raw.githubusercontent.com/OCamlPro/OCamlPro-OCaml-Branch/3a522985649389f89dac73e655d562c54f0456a5/inline-more/testsuite/tests/lib-dynlink-native/bug.ml | ocaml | let () = try raise (Invalid_argument "X") with Invalid_argument s ->
raise (Invalid_argument (s ^ s))
| |
5e7f3cb2c64848370333a51cc513ba2ab9d445c6d29213df068fc88d25db6637 | whoek/scrumdog | scrumdog.ml | 80 width
open Printf
let show_status = true
let status txt =
if show_status then begin
let t = Unix.localtime @@ Unix.time () in
printf "%d-%02d-%02d %02d:%02d:%02d - %s\n%!"
(t.tm_year + 1900) (t.tm_mon + 1) t.tm_mday t.tm_ho... | null | https://raw.githubusercontent.com/whoek/scrumdog/f6c98f6e1541bb9cf58a4596552d741d10f13ddc/bin/scrumdog.ml | ocaml | string -> string -> string -> string
string -> string -> unit
string -> string
string array -> ()
exclude directories
no need to end above with \n
==========================================================================
string -> string -> int
end is lowest next number
string -> string list list... | 80 width
open Printf
let show_status = true
let status txt =
if show_status then begin
let t = Unix.localtime @@ Unix.time () in
printf "%d-%02d-%02d %02d:%02d:%02d - %s\n%!"
(t.tm_year + 1900) (t.tm_mon + 1) t.tm_mday t.tm_ho... |
5d8393ca2cd848ce164f6319c75a17baa54807a8a0109db5092eb4d39bdbf2b2 | masatoi/cl-zerodl | 3-neural-networks-mgl.lisp | (defparameter ma (make-mat '(2 2) :initial-contents '((1 -2) (-3 4))))
(defparameter mb (make-mat '(2 2) :initial-contents '((5 6) (7 8))))
(defparameter mc (make-mat '(2 2) :initial-element 0.0))
;; mc = 1.0 * ma * mb + 0.0 * mc
= > # < MAT 2x2 AF # 2A((19.0 22.0 ) ( 43.0 50.0 ) ) >
= > # < MAT 2x2 AF # 2A((19.0 ... | null | https://raw.githubusercontent.com/masatoi/cl-zerodl/5ba334423b5e5411fd0fff59af5f0cda16f67646/book/3-neural-networks-mgl.lisp | lisp | mc = 1.0 * ma * mb + 0.0 * mc
When use CUDA
Evaluation took:
0 bytes consed
Evaluation took:
0 bytes consed
vb = 1.0 * va + vb
calc z1
Evaluation took:
0.000 seconds of real time
0 bytes consed | (defparameter ma (make-mat '(2 2) :initial-contents '((1 -2) (-3 4))))
(defparameter mb (make-mat '(2 2) :initial-contents '((5 6) (7 8))))
(defparameter mc (make-mat '(2 2) :initial-element 0.0))
= > # < MAT 2x2 AF # 2A((19.0 22.0 ) ( 43.0 50.0 ) ) >
= > # < MAT 2x2 AF # 2A((19.0 22.0 ) ( 43.0 50.0 ) ) >
(setf *... |
22217a1365174b91a15acf5cd3a6e2753545c594f5fc4f9c50d40cb7b76b8b01 | tweag/ormolu | simple.hs | import Data.Text
import Data.Text
import qualified Data.Text as T
import qualified Data.Text (a, c, b)
import Data.Text (a, b, c)
import Data.Text hiding (c, b, a)
import Data.Text (a, b, c, b, a)
import Data.Text hiding (c, b, a, b, c)
| null | https://raw.githubusercontent.com/tweag/ormolu/34bdf62429768f24b70d0f8ba7730fc4d8ae73ba/data/examples/import/simple.hs | haskell | import Data.Text
import Data.Text
import qualified Data.Text as T
import qualified Data.Text (a, c, b)
import Data.Text (a, b, c)
import Data.Text hiding (c, b, a)
import Data.Text (a, b, c, b, a)
import Data.Text hiding (c, b, a, b, c)
| |
fa027dea9018831fb31958b7a6ffb4405133ff9343bb0d58d292ccd34305af2e | savonet/ocaml-mm | video.ml |
* Copyright 2011 The Savonet Team
*
* This file is part of ocaml - mm .
*
* 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 of the License , or
* ( at your ... | null | https://raw.githubusercontent.com/savonet/ocaml-mm/f931d881512cf3a74399c261aa5877fb69bfe524/src/video.ml | ocaml | open Mm_image
* Images from which are made videos.
TODO: improve this!
Audio in 16LE
let audio b = make "01wb" b
reserved
flags (interleaved)
number of frames
initial frame
number of streams
suggested buffer size
width
height
reserved
reserved
reserved
reserved
flags
priority
langu... |
* Copyright 2011 The Savonet Team
*
* This file is part of ocaml - mm .
*
* 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 of the License , or
* ( at your ... |
b1d899f70b985dee00f1635e16a420db4f3001e1d24501eec10794c59ffc44f5 | bufferswap/ViralityEngine | oriented-rect.lisp | (in-package #:cl-user)
;;;; A 2D oriented rectangle primitive. The oriented rectangle is represented as a center origin
point , and half - extents .
(defpackage #:vorigin.geometry.oriented-rect
(:local-nicknames
(#:m2 #:vorigin.mat2)
(#:point2d #:vorigin.geometry.point2d)
(#:rect #:vorigin.geometry.rect)... | null | https://raw.githubusercontent.com/bufferswap/ViralityEngine/df7bb4dffaecdcb6fdcbfa618031a5e1f85f4002/support/vorigin/src/geometry/shapes/oriented-rect.lisp | lisp | A 2D oriented rectangle primitive. The oriented rectangle is represented as a center origin | (in-package #:cl-user)
point , and half - extents .
(defpackage #:vorigin.geometry.oriented-rect
(:local-nicknames
(#:m2 #:vorigin.mat2)
(#:point2d #:vorigin.geometry.point2d)
(#:rect #:vorigin.geometry.rect)
(#:u #:vutils)
(#:v2 #:vorigin.vec2))
(:use #:cl)
(:export
#:angle
#:half-extent... |
97e11d6f023e9ec48c648e79c7300ca8bcef7025f1da0676b95bdc152c8a417a | sadiqj/ocaml-esp32 | tast_mapper.ml | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/sadiqj/ocaml-esp32/33aad4ca2becb9701eb90d779c1b1183aefeb578/typing/tast_mapper.ml | ocaml | ************************************************************************
OCaml
... | , LexiFi
Copyright 2015 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
open Asttypes
open Typedtree
type mapper =
{
case: mapper -> case -> case;
cases: mapper -> ca... |
55deba2706eefe0232d32ca02b32f4e3c7a6b72e9f638d9218b8310164bae8cc | cl-axon/shop2 | pfile9.lisp | (in-package :shop2-user)
(defproblem pfile9 DEPOT
(
;;;
;;; facts
;;;
(DEPOT DEPOT0)
(DEPOT DEPOT1)
(DEPOT DEPOT2)
(DEPOT DEPOT3)
(DEPOT DEPOT4)
(DEPOT DEPOT5)
(DEPOT DEPOT6)
(DEPOT DEPOT7)
(DEPOT DEPOT8)
(DEPOT DEPOT9)
(DISTRIBUTOR DISTRIBUTOR0)
(DISTRIBUT... | null | https://raw.githubusercontent.com/cl-axon/shop2/9136e51f7845b46232cc17ca3618f515ddcf2787/examples/depots/pfile9.lisp | lisp |
facts
initial states
goals
| (in-package :shop2-user)
(defproblem pfile9 DEPOT
(
(DEPOT DEPOT0)
(DEPOT DEPOT1)
(DEPOT DEPOT2)
(DEPOT DEPOT3)
(DEPOT DEPOT4)
(DEPOT DEPOT5)
(DEPOT DEPOT6)
(DEPOT DEPOT7)
(DEPOT DEPOT8)
(DEPOT DEPOT9)
(DISTRIBUTOR DISTRIBUTOR0)
(DISTRIBUTOR DISTRIBUTOR1)
(DISTRIBUT... |
4b9c55324365013ca0cee5498cf59d667a6c1c45d467a078d1bd7e7b5b76f24f | acl2/acl2 | update-nth@useless-runes.lsp | (UPDATE-NTH-OF-UPDATE-NTH-SAME
(73 22 (:REWRITE DEFAULT-CDR))
(60 15 (:REWRITE DEFAULT-CAR))
(8 8 (:REWRITE ZP-OPEN))
(7 7 (:REWRITE DEFAULT-+-2))
(7 7 (:REWRITE DEFAULT-+-1))
)
(CAR-OF-UPDATE-NTH
(9 9 (:REWRITE DEFAULT-CDR))
(6 6 (:REWRITE DEFAULT-+-2))
(6 6 (:REWRITE DEFAULT-+-1))
(1 1 (:REWRITE DEFAULT-<-2... | null | https://raw.githubusercontent.com/acl2/acl2/f64742cc6d41c35f9d3f94e154cd5fd409105d34/books/kestrel/lists-light/.sys/update-nth%40useless-runes.lsp | lisp | (UPDATE-NTH-OF-UPDATE-NTH-SAME
(73 22 (:REWRITE DEFAULT-CDR))
(60 15 (:REWRITE DEFAULT-CAR))
(8 8 (:REWRITE ZP-OPEN))
(7 7 (:REWRITE DEFAULT-+-2))
(7 7 (:REWRITE DEFAULT-+-1))
)
(CAR-OF-UPDATE-NTH
(9 9 (:REWRITE DEFAULT-CDR))
(6 6 (:REWRITE DEFAULT-+-2))
(6 6 (:REWRITE DEFAULT-+-1))
(1 1 (:REWRITE DEFAULT-<-2... | |
6e16586e570fbc83c00389096624971704aa0ce3a799423034aaf0e82648f2f1 | helvm/helma | FreeIO.hs | # LANGUAGE DeriveFunctor #
module HelVM.HelMA.Automaton.IO.FreeIO (
interpretFreeIOToBusinessIO,
logInput,
logOutput,
FreeIO,
) where
import HelVM.HelMA.Automaton.IO.BusinessIO
import HelVM.HelIO.Control.Control
import HelVM.HelIO.Control.Safe
import Control.Monad.Free... | null | https://raw.githubusercontent.com/helvm/helma/6110b3dcf9615f2b75153be03fecb27473b558cf/hs/src/HelVM/HelMA/Automaton/IO/FreeIO.hs | haskell | --
--
| Instances
| Low level functions
| Types | # LANGUAGE DeriveFunctor #
module HelVM.HelMA.Automaton.IO.FreeIO (
interpretFreeIOToBusinessIO,
logInput,
logOutput,
FreeIO,
) where
import HelVM.HelMA.Automaton.IO.BusinessIO
import HelVM.HelIO.Control.Control
import HelVM.HelIO.Control.Safe
import Control.Monad.Free... |
d003cbec1172f6f84fc86f521c5774d9e184cba84ff0d82199576783378b740d | esoeylemez/netwire | Time.hs | -- |
-- Module: Control.Wire.Time
Copyright : ( c ) 2013
-- License: BSD3
Maintainer : < >
module Control.Wire.Time
( -- * Time wires
time,
timeF,
timeFrom
)
where
import Control.Wire.Core
import Control.Wire.Session
| Local time starting from zero .
time :: (HasTi... | null | https://raw.githubusercontent.com/esoeylemez/netwire/612daf7440e903ecc94231141145d80cf452513a/Control/Wire/Time.hs | haskell | |
Module: Control.Wire.Time
License: BSD3
* Time wires
fractional type.
| Local time starting from the given value. | Copyright : ( c ) 2013
Maintainer : < >
module Control.Wire.Time
time,
timeF,
timeFrom
)
where
import Control.Wire.Core
import Control.Wire.Session
| Local time starting from zero .
time :: (HasTime t s) => Wire s e m a t
time = timeFrom 0
| Local time starting from zero ... |
538b52cda109d706e26dd2f966cf0cfab0fd3e139d4b8a81df68edf393973f8b | njordhov/mclide | mclide.lisp | MCLIDE 2 FOR CLOZURE
#-clozure
(error "For Clozure CL only")
(defpackage mclide
(:export #:register-implementation-type))
(in-package :mclide)
Same as in autostart from mclide1 , so create shared module ?
(defparameter *implementation-types* nil)
(defun register-implementation-type (name command &rest arg... | null | https://raw.githubusercontent.com/njordhov/mclide/fab77f3b3c856ef211bbaf1158127669759f6fff/mclide/src/ccl-frontend/mclide.lisp | lisp |
avoid that internal errors outside a connection to mclide ends up in the *debugger-hook* with potentially disasterous consequences...
## should use findfolder equivalent
## rename to enable-logging
mclide may call it out of the context of a view, which causes failure
## should provide a better place for feedback... | MCLIDE 2 FOR CLOZURE
#-clozure
(error "For Clozure CL only")
(defpackage mclide
(:export #:register-implementation-type))
(in-package :mclide)
Same as in autostart from mclide1 , so create shared module ?
(defparameter *implementation-types* nil)
(defun register-implementation-type (name command &rest arg... |
aedec64513623e6d32218253befe20d3ea4aacc809339b5e26d591d38a329da7 | fulcrologic/fulcro-spec | async.cljc | (ns fulcro-spec.async
(:require
[#?(:cljs cljs.pprint :clj clojure.pprint) :refer [pprint]]))
(defprotocol IAsyncQueue
(current-time [this] "Returns the current time on the simulated clock, in ms")
(peek-event [this] "Returns the first event on the queue")
(advance-clock [this ms]
"Move the clock forwa... | null | https://raw.githubusercontent.com/fulcrologic/fulcro-spec/ef3fece4a2562590547fe12f27f135148fda65cf/src/main/fulcro_spec/async.cljc | clojure | (ns fulcro-spec.async
(:require
[#?(:cljs cljs.pprint :clj clojure.pprint) :refer [pprint]]))
(defprotocol IAsyncQueue
(current-time [this] "Returns the current time on the simulated clock, in ms")
(peek-event [this] "Returns the first event on the queue")
(advance-clock [this ms]
"Move the clock forwa... | |
1d2f30661fff7cb8a6b04fd69bb04bfb4ec452f1a3d32f330339cd498c8656c5 | nikita-volkov/rebase | Failure.hs | module Rebase.GHC.IO.Encoding.Failure
(
module GHC.IO.Encoding.Failure
)
where
import GHC.IO.Encoding.Failure
| null | https://raw.githubusercontent.com/nikita-volkov/rebase/7c77a0443e80bdffd4488a4239628177cac0761b/library/Rebase/GHC/IO/Encoding/Failure.hs | haskell | module Rebase.GHC.IO.Encoding.Failure
(
module GHC.IO.Encoding.Failure
)
where
import GHC.IO.Encoding.Failure
| |
20ecec9769deb42928713a39ccf41aaece79cea205c18bef8846d3fb067a6e4b | gsakkas/rite | 3574.ml |
let pipe fs =
let f a x = a x in let base x y = x y in List.fold_left f base fs;;
fix
let pipe fs =
let f a x y = a ( x y ) in let base x = x in List.fold_left f base fs ; ;
let pipe fs =
let f a x y = a (x y) in let base x = x in List.fold_left f base fs;;
*)
changed spans
( 3,15)-(3,18 )
f... | null | https://raw.githubusercontent.com/gsakkas/rite/958a0ad2460e15734447bc07bd181f5d35956d3b/data/sp14/3574.ml | ocaml |
let pipe fs =
let f a x = a x in let base x y = x y in List.fold_left f base fs;;
fix
let pipe fs =
let f a x y = a ( x y ) in let base x = x in List.fold_left f base fs ; ;
let pipe fs =
let f a x y = a (x y) in let base x = x in List.fold_left f base fs;;
*)
changed spans
( 3,15)-(3,18 )
f... | |
3fddb8864e0d26d1d96d8be60a29446ba9954fadf8858e5cfb886ae13703ffa1 | donaldsonjw/bigloo | access.scm | ;*=====================================================================*/
* serrano / prgm / project / bigloo / comptime / Read / access.scm * /
;* ------------------------------------------------------------- */
* Author : * /
;* Creation :... | null | https://raw.githubusercontent.com/donaldsonjw/bigloo/a4d06e409d0004e159ce92b9908719510a18aed5/comptime/Read/access.scm | scheme | *=====================================================================*/
* ------------------------------------------------------------- */
* Creation : Wed Mar 17 11:33:41 1993 */
* ------------------------------------------------------------- */
* The module which handle... | * serrano / prgm / project / bigloo / comptime / Read / access.scm * /
* Author : * /
* Last change : Thu Mar 26 07:22:24 2009 ( serrano ) * /
* Copyright : 1993 - 2009 , see LICENSE file * /
(module read_access... |
db415b911405379509428afaf87bd1b15081cb9c4683672a933a7c8734132287 | CodyReichert/qi | hash-tables.lisp | (in-package :alexandria)
(defun copy-hash-table (table &key key test size
rehash-size rehash-threshold)
"Returns a copy of hash table TABLE, with the same keys and values
as the TABLE. The copy has the same properties as the original, unless
overridden by the keyword arguments.
Be... | null | https://raw.githubusercontent.com/CodyReichert/qi/9cf6d31f40e19f4a7f60891ef7c8c0381ccac66f/dependencies/alexandria-latest/hash-tables.lisp | lisp | (in-package :alexandria)
(defun copy-hash-table (table &key key test size
rehash-size rehash-threshold)
"Returns a copy of hash table TABLE, with the same keys and values
as the TABLE. The copy has the same properties as the original, unless
overridden by the keyword arguments.
Be... | |
84138be5048569870532c7d051f03922965ae5205c8418ab5cd388a93dff69e9 | softwarelanguageslab/maf | R5RS_various_rsa-4.scm | ; Changes:
* removed : 0
* added : 0
* swaps : 0
* negated predicates : 1
; * swapped branches: 0
; * calls to id fun: 0
(letrec ((extended-gcd (lambda (a b)
(if (<change> (= (modulo a b) 0) (not (= (modulo a b) 0)))
(cons 0 1)
(le... | null | https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_various_rsa-4.scm | scheme | Changes:
* swapped branches: 0
* calls to id fun: 0 | * removed : 0
* added : 0
* swaps : 0
* negated predicates : 1
(letrec ((extended-gcd (lambda (a b)
(if (<change> (= (modulo a b) 0) (not (= (modulo a b) 0)))
(cons 0 1)
(let* ((x:y (extended-gcd b (modulo a b)))
... |
38fae8d58e4918df8adebf643fda3122cdf4c86ca5f9307bb37b29b8b4c80ce2 | UBTECH-Walker/WalkerSimulationFor2020WAIC | CloseCamera.lisp | ; Auto-generated. Do not edit!
(cl:in-package baxter_core_msgs-srv)
;//! \htmlinclude CloseCamera-request.msg.html
(cl:defclass <CloseCamera-request> (roslisp-msg-protocol:ros-message)
((name
:reader name
:initarg :name
:type cl:string
:initform ""))
)
(cl:defclass CloseCamera-request (<CloseCam... | null | https://raw.githubusercontent.com/UBTECH-Walker/WalkerSimulationFor2020WAIC/7cdb21dabb8423994ba3f6021bc7934290d5faa9/walker_WAIC_18.04_v1.2_20200616/walker_install/share/common-lisp/ros/baxter_core_msgs/srv/CloseCamera.lisp | lisp | Auto-generated. Do not edit!
//! \htmlinclude CloseCamera-request.msg.html
//! \htmlinclude CloseCamera-response.msg.html |
(cl:in-package baxter_core_msgs-srv)
(cl:defclass <CloseCamera-request> (roslisp-msg-protocol:ros-message)
((name
:reader name
:initarg :name
:type cl:string
:initform ""))
)
(cl:defclass CloseCamera-request (<CloseCamera-request>)
())
(cl:defmethod cl:initialize-instance :after ((m <CloseCam... |
0d1b9271b8875037c499367f565a2341c09e9a04f2d6174089b0e94034bfbc73 | wtfleming/clojurescript-examples | core.cljs | (ns om-todo-list-undo-html5-storage.core
(:require [goog.dom :as gdom]
[hodgepodge.core :refer [local-storage]]
[om.core :as om :include-macros true]
[sablono.core :as html :refer-macros [html]]))
(enable-console-print!)
(def tasklist-state (atom {:entries []}))
(def undo-state (... | null | https://raw.githubusercontent.com/wtfleming/clojurescript-examples/6f878f431a2cba405b6ae715199f776a19dda6f7/om-todo-list-undo-html5-storage/src/cljs/om_todo_list_undo_html5_storage/core.cljs | clojure | Get the persisted state, and if it exists
restore it on tasklist and undo states.
Watch tasklist-state changes and
persists them in local storege.
Set the input to empty value
Append the previously defined task
to the task list entries on global
state atom.
Remove the last snapshot from the undo list.
Restore... | (ns om-todo-list-undo-html5-storage.core
(:require [goog.dom :as gdom]
[hodgepodge.core :refer [local-storage]]
[om.core :as om :include-macros true]
[sablono.core :as html :refer-macros [html]]))
(enable-console-print!)
(def tasklist-state (atom {:entries []}))
(def undo-state (... |
976698e65448323969b98a391cbc7561208a6e619d2254a1a9cb710ae951441a | williamleferrand/accretio | children_schoolbus_tools.ml |
* Accretio is an API , a sandbox and a runtime for social playbooks
*
* Copyright ( C ) 2015
*
* This program is free software : you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation , either version 3 o... | null | https://raw.githubusercontent.com/williamleferrand/accretio/394f855e9c2a6a18f0c2da35058d5a01aacf6586/playbooks/children_schoolbus_tools.ml | ocaml |
* Accretio is an API , a sandbox and a runtime for social playbooks
*
* Copyright ( C ) 2015
*
* This program is free software : you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation , either version 3 o... | |
2ce5bc8aaff8ef6ce9a11917e7279ebe9e6a56e6397150ebb6a5772df8c0a184 | cloojure/tupelo-datomic | functionality.clj | (ns tst.tupelo-datomic.functionality
(:use tupelo.core tupelo.test)
(:require
[datomic.api :as d]
[schema.core :as s]
[tupelo-datomic.core :as td]
[tupelo.schema :as ts]
))
the URI for our test db
(def ^:dynamic *conn*) ; dynamic var to hold the db connection
;----------------... | null | https://raw.githubusercontent.com/cloojure/tupelo-datomic/95d0f044b5dad4a9cdc986cbd150eea2660fb4d0/test/tst/tupelo_datomic/functionality.clj | clojure | dynamic var to hold the db connection
---------------------------------------------------------------------------------------------------
clojure.test fixture: setup & teardown for each test
perform setup, execution, & teardown for each test
setup ----------------------------------------------------------
create t... | (ns tst.tupelo-datomic.functionality
(:use tupelo.core tupelo.test)
(:require
[datomic.api :as d]
[schema.core :as s]
[tupelo-datomic.core :as td]
[tupelo.schema :as ts]
))
the URI for our test db
(use-fixtures :each
[tst-fn]
(try
(tst-fn))
(finally
(d/delete-data... |
ee759964225eb7bc19f201b5f6ea652288e411c43202c72c624a2189edc2df1d | nodename/edge-algebra | matrix33_test.clj | (ns edge-algebra.utils.matrix33-test
(:require [clojure.test :refer :all]
[delaunay.utils.matrix33 :refer [matrix33]]))
(deftest sanity
(let [m (matrix33 2 4 6
3 1 9
12 9 3)]
(is (= (.determinant m) 330.0))))
| null | https://raw.githubusercontent.com/nodename/edge-algebra/26ad60f4b7a1f4b6979456437433f797054168d8/test/edge_algebra/utils/matrix33_test.clj | clojure | (ns edge-algebra.utils.matrix33-test
(:require [clojure.test :refer :all]
[delaunay.utils.matrix33 :refer [matrix33]]))
(deftest sanity
(let [m (matrix33 2 4 6
3 1 9
12 9 3)]
(is (= (.determinant m) 330.0))))
| |
0416b463bac83969f3942727cef747f66b7bd0f39576f67822ad80719cd5f078 | eltex-ecss/chronica | chronica_status.erl | %%%-------------------------------------------------------------------
-*- coding : utf-8 -*-
@author
( C ) 2015 , Eltex , Novosibirsk , Russia
%%% @doc
%%%
%%% @end
%%%-------------------------------------------------------------------
-module(chronica_status).
-include_lib("pt_scripts/include/pt_recompilabl... | null | https://raw.githubusercontent.com/eltex-ecss/chronica/bdc9f37797cd74215a02aabedf03b09005e9b21f/src/chronica_status.erl | erlang | -------------------------------------------------------------------
@doc
@end
------------------------------------------------------------------- | -*- coding : utf-8 -*-
@author
( C ) 2015 , Eltex , Novosibirsk , Russia
-module(chronica_status).
-include_lib("pt_scripts/include/pt_recompilable.hrl").
-export([
configured/0
]).
-spec configured() -> boolean().
NOTE : changes when processed with parsetransform
configured() -> false. |
9f35a8e94ee1238b3a38e55ae8f5fd7a3d368c42c4ad980c569669c39426eb39 | discord-haskell/discord-haskell | Gateway.hs | {-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
# LANGUAGE RecordWildCards #
-- | Data structures needed for interfacing with the Websocket
Gateway
module Discord.Internal.Types.Gateway where
import System.Info
import qualified Data.Text as T
import Data.Time (UTCTime)
import Data.Time.Clock.POSIX... | null | https://raw.githubusercontent.com/discord-haskell/discord-haskell/f98f5935a0b4b30288d5fc40bdb04da428ed03ca/src/Discord/Internal/Types/Gateway.hs | haskell | # LANGUAGE OverloadedStrings #
# LANGUAGE StrictData #
| Data structures needed for interfacing with the Websocket
| Messages that can be sent by gateway to the library
| Sent to gateway by our library
Details of which intent englobs what data is avalilable at
false
false
| Sent to gateway by a user
| Options... | # LANGUAGE RecordWildCards #
Gateway
module Discord.Internal.Types.Gateway where
import System.Info
import qualified Data.Text as T
import Data.Time (UTCTime)
import Data.Time.Clock.POSIX (utcTimeToPOSIXSeconds)
import Data.Aeson
import Data.Aeson.Types
import Data.Default (Default, def)
import Data.Maybe (fromM... |
df4802617a633b72fab7e4152b799fd13b81fcf60cd255455f4e10a06cd43b96 | dongweiming/lisp-koans-answer | arrays.lsp | Copyright 2013 Google Inc.
;;
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; -2.0
;;
;; Unless required by applicable law or agreed to in writing, software
... | null | https://raw.githubusercontent.com/dongweiming/lisp-koans-answer/33eb6e38c7179c677db0df0a31cadd49617ae8db/koans/arrays.lsp | lisp |
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language g... | Copyright 2013 Google Inc.
distributed under the License is distributed on an " AS IS " BASIS ,
(define-test test-basic-array-stuff
" the first block of code defines an 8x8 array, then fills
the elements with a checkerboard pattern"
(let ((chess-board))
(setf chess-board (make-array '(8 8)))
... |
b4f2b82272ee045b922e9beee0e2aabf2f12d83a65579df685189c644d90984e | lisp-mirror/airship-scheme | package.lisp | ;;;; -*- mode: common-lisp; -*-
(cl:defpackage #:airship-scheme
(:use #:cl
#:zr-utils)
;; Uses a fast, implementation-specific version if available and
;; otherwise uses the slow, portable version
(:export #:read-scheme)
(:local-nicknames (:a :alexandria)
(:f :float-features)))
| null | https://raw.githubusercontent.com/lisp-mirror/airship-scheme/1862db81dfa67729444916c361f39f9f1c5a2ccd/package.lisp | lisp | -*- mode: common-lisp; -*-
Uses a fast, implementation-specific version if available and
otherwise uses the slow, portable version |
(cl:defpackage #:airship-scheme
(:use #:cl
#:zr-utils)
(:export #:read-scheme)
(:local-nicknames (:a :alexandria)
(:f :float-features)))
|
c80b60c6c633b94c2e2e51e442476a87c8b47244e9feacc77b5444089fde1eb9 | jaapb/opaline | opaline.ml | open OpamParserTypes.FullPos
exception No_install_file
exception No_package_name
exception File_nonexistent of string
exception Install_error of int * string
let files = ref [];;
let pkg_name = ref "";;
let destdir = ref "";;
let prefix = ref "";;
let libdir = ref "";;
let bindir = ref "";;
let sbindir = ref "";;
let... | null | https://raw.githubusercontent.com/jaapb/opaline/b71373599c615cc6b9e40f5946f83a453b08b084/opaline.ml | ocaml | List of *.install files in current directory | open OpamParserTypes.FullPos
exception No_install_file
exception No_package_name
exception File_nonexistent of string
exception Install_error of int * string
let files = ref [];;
let pkg_name = ref "";;
let destdir = ref "";;
let prefix = ref "";;
let libdir = ref "";;
let bindir = ref "";;
let sbindir = ref "";;
let... |
0d1be2ca46bbad408c93337c912c6e1d1dbeed89567561381fe3b76c7c2ffde0 | argp/bap | conv.ml | (*
Convert encodings.
Everything received from the standard input is converted and written onto the standard output,
using the encodings specified on the command-line.
Usage:
./conv ASCII UTF-8 < README
*)
open CharEncodings, Sys, IO
try
V1 : Convert output :
copy stdin ( ( transcode_out ( as_encoded s... | null | https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/batteries/examples/tools/conv.ml | ocaml |
Convert encodings.
Everything received from the standard input is converted and written onto the standard output,
using the encodings specified on the command-line.
Usage:
./conv ASCII UTF-8 < README
| open CharEncodings, Sys, IO
try
V1 : Convert output :
copy stdin ( ( transcode_out ( as_encoded stdout ( ` named argv.(1 ) ) ) ( ` named argv.(2 ) ) ) )
copy stdin (encoded_as (transcode_out (as_encoded stdout (`named argv.(1))) (`named argv.(2))))*)
V2 : Convert input
copy (encoded_as **> transcode_in (as_e... |
417510450e561109c2a490b36deabeac58412cde0ffd23b009eff2dae00a7490 | TristeFigure/shuriken | dsl.clj | (ns shuriken.byte-buddy.dsl
;; IMPORTANT: take note of the excluded core vars
(:use clojure.pprint shuriken.macro)
(:refer-clojure :exclude [require name merge not load resolve])
(:require [clojure.core :as clj]
[clojure.set :as set]
[camel-snake-kebab.core :refer [->kebab-case-symbol]]
... | null | https://raw.githubusercontent.com/TristeFigure/shuriken/cd36dd2a4005c85260125d89d5a3f475d248e6e4/src/shuriken/byte_buddy/dsl.clj | clojure | IMPORTANT: take note of the excluded core vars
idempotent, see doc | (ns shuriken.byte-buddy.dsl
(:use clojure.pprint shuriken.macro)
(:refer-clojure :exclude [require name merge not load resolve])
(:require [clojure.core :as clj]
[clojure.set :as set]
[camel-snake-kebab.core :refer [->kebab-case-symbol]]
[shuriken.reflection :refer [instance-me... |
c0eadaa24e80ae9458cb6bafd3583ead1b4269626660d09862c9b897fc687c8c | albertoruiz/easyVision | IPP.hs | -----------------------------------------------------------------------------
|
Module : Image . Processing . IPP
Copyright : ( c ) 2006 - 13
License : GPL
Maintainer : ( aruiz at um dot es )
Stability : provisional
Portability : requires IPP
Module : Image.Pro... | null | https://raw.githubusercontent.com/albertoruiz/easyVision/26bb2efaa676c902cecb12047560a09377a969f2/packages/ip/ipp/src/Image/Processing/IPP.hs | haskell | ---------------------------------------------------------------------------
--------------------------------------------------------------------------- | |
Module : Image . Processing . IPP
Copyright : ( c ) 2006 - 13
License : GPL
Maintainer : ( aruiz at um dot es )
Stability : provisional
Portability : requires IPP
Module : Image.Processing.IPP
Copyright : (c) Alberto Ruiz 2006-13
License : GPL
Mainta... |
0547ac3859263e15f5eeccfb483e21df703062999028c3aebb99e17e2c332f26 | AntidoteDB/antidote_aql | utils.erl | %%%-------------------------------------------------------------------
@author ,
%%% @doc Utilities for AQL.
%%% @end
%%%-------------------------------------------------------------------
-module(utils).
-ifdef(TEST).
-include_lib("eunit/include/eunit.hrl").
-endif.
-export([to_atom/1, to_list/1, to_binary/1,... | null | https://raw.githubusercontent.com/AntidoteDB/antidote_aql/e7ef4913d233c2fee8ebff582d91fe3e2e95786c/src/utils.erl | erlang | -------------------------------------------------------------------
@doc Utilities for AQL.
@end
-------------------------------------------------------------------
====================================================================
==================================================================== | @author ,
-module(utils).
-ifdef(TEST).
-include_lib("eunit/include/eunit.hrl").
-endif.
-export([to_atom/1, to_list/1, to_binary/1, to_term/1,
assert_same_size/3,
seek_and_destroy/2,
proplists_values/1, proplists_upsert/3,
to_hash/1]).
to_atom(Term) when is_list(Term) ->
list_to_atom(Term);
to_atom... |
e337b3fc992cd26936d81d4f6fe4c525dc5a9ef07c1542ee235190389dcabcdd | nikodemus/raylisp | box.lisp | (in-package :raylisp)
(defclass box (scene-object)
((min :initform (vec -1.0 -1.0 -1.0) :initarg :min :reader min-of)
(max :initform (vec 1.0 1.0 1.0) :initarg :max :reader max-of)))
(defun box-matrix (box)
(let* ((co1 (min-of box))
(co2 (max-of box))
(min (vec-min co1 co2))
(max (ve... | null | https://raw.githubusercontent.com/nikodemus/raylisp/f79f61c6df283baad265dfdc207d798b63ca19a9/objects/box.lisp | lisp | (in-package :raylisp)
(defclass box (scene-object)
((min :initform (vec -1.0 -1.0 -1.0) :initarg :min :reader min-of)
(max :initform (vec 1.0 1.0 1.0) :initarg :max :reader max-of)))
(defun box-matrix (box)
(let* ((co1 (min-of box))
(co2 (max-of box))
(min (vec-min co1 co2))
(max (ve... | |
cef822c2a2b3c730e7cfd4994be014cbb6cd88179b8f80140e8245fedbc6d4d2 | lispnik/cl-http | xml-node.lisp | ;;; -*- package: "XML-PARSER"; -*-
;;;
(in-package "XML-PARSER")
"
<DOCUMENTATION>
<COPYRIGHT HREF='defsystem.lisp|root().descendant(COPYRIGHT)'/>
<DESCRIPTION>
definitions for
<UL>
<LI><CODE>XML-NODE</CODE>,
<LI><CODE>XML-ATTRIBUTE-CONTEXT</CODE>
<LI><CODE>XML-NAMED-NODE</CODE>
<LI><CODE>XML-REFERE... | null | https://raw.githubusercontent.com/lispnik/cl-http/84391892d88c505aed705762a153eb65befb6409/contrib/janderson/xml-1999-05-03/xml-node.lisp | lisp | -*- package: "XML-PARSER"; -*-
when a string then as a url.</DATE>
metaclasses for qualified instantiation
if a default class is specified, use it instead of the abstract class
note that the subclasses SHOULD NOT be of the same metaclass unless
continued specialization is desired...
use the class-specific key... |
(in-package "XML-PARSER")
"
<DOCUMENTATION>
<COPYRIGHT HREF='defsystem.lisp|root().descendant(COPYRIGHT)'/>
<DESCRIPTION>
definitions for
<UL>
<LI><CODE>XML-NODE</CODE>,
<LI><CODE>XML-ATTRIBUTE-CONTEXT</CODE>
<LI><CODE>XML-NAMED-NODE</CODE>
<LI><CODE>XML-REFERENCE-NODE</CODE> and
<LI><CODE>XML-EX... |
bb295c372db559e4895974a3f2423fef40143eca27f8fce92b3a0001eeaeed2b | ygmpkk/house | StdTimerDef.hs | -----------------------------------------------------------------------------
-- |
Module :
Copyright : ( c ) 2002
-- License : BSD-style
--
-- Maintainer :
-- Stability : provisional
-- Portability : portable
--
StdTimerDef contains the types to define the standard set of timers .
--... | null | https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/libraries/ObjectIO/Graphics/UI/ObjectIO/StdTimerDef.hs | haskell | ---------------------------------------------------------------------------
|
License : BSD-style
Maintainer :
Stability : provisional
Portability : portable
---------------------------------------------------------------------------
* Definitions
* A visible modules
| Standard timer definition ... | Module :
Copyright : ( c ) 2002
StdTimerDef contains the types to define the standard set of timers .
module Graphics.UI.ObjectIO.StdTimerDef
(
module Graphics.UI.ObjectIO.StdTimerDef,
module Graphics.UI.ObjectIO.StdIOCommon
, module Graphics.UI.ObjectIO.StdGUI
) where
import Grap... |
ca4d1360f063ae6d34fbbd800479d5f1063183b375f643e39d5605ee625a9622 | qfpl/hedgehog-fn | Internal.hs | # language GADTs , RankNTypes #
# language FlexibleContexts , DefaultSignatures #
# language TypeOperators #
# language LambdaCase #
# language EmptyCase #
module Hedgehog.Function.Internal where
import Control.Monad.Trans.Maybe (MaybeT(..))
import Data.Bifunctor (first)
import Data.Functor.Contravariant (Contravarian... | null | https://raw.githubusercontent.com/qfpl/hedgehog-fn/2621548943ffa46c98f430cca6beeb9025ea3127/src/Hedgehog/Function/Internal.hs | haskell | | Shrinkable, showable functions
| Tabulate the function
| Reify a function whose domain has an instance of 'Generic'
| 'Vary' provides a canonical co-generator for a type.
While technically there are many possible co-generators for a given type, we don't get any
benefit from caring.
| Build a co-generator for... | # language GADTs , RankNTypes #
# language FlexibleContexts , DefaultSignatures #
# language TypeOperators #
# language LambdaCase #
# language EmptyCase #
module Hedgehog.Function.Internal where
import Control.Monad.Trans.Maybe (MaybeT(..))
import Data.Bifunctor (first)
import Data.Functor.Contravariant (Contravarian... |
c4861d7600650febc7407bce782d7419d467d7cbd1d2b54b77d49cd8bc0e3466 | kronkltd/jiksnu | steps.clj | (require '[jiksnu.helpers.features :as helpers.features])
(require '[jiksnu.helpers.navigation :as helpers.navigation])
(Before [] (helpers.features/before-hook))
(After [] (helpers.features/after-hook))
(When #"^I go to the \"([^\"]*)\" page$" [page-name]
(helpers.navigation/go-to-the-page page-name))
| null | https://raw.githubusercontent.com/kronkltd/jiksnu/8c91e9b1fddcc0224b028e573f7c3ca2f227e516/specs/steps.clj | clojure | (require '[jiksnu.helpers.features :as helpers.features])
(require '[jiksnu.helpers.navigation :as helpers.navigation])
(Before [] (helpers.features/before-hook))
(After [] (helpers.features/after-hook))
(When #"^I go to the \"([^\"]*)\" page$" [page-name]
(helpers.navigation/go-to-the-page page-name))
| |
00c0904d057d1ac0bc10dd3b638eb1462196e0b801af3d2e00ccb1ce5b0c74d6 | maxsnew/modal-scheme | Parse.rkt | #lang fiddle
(require fiddle/prelude)
(require fiddle/stdlib/CoList)
(provide parse-num upper-case? lower-case? letter? UPPERS digit<-char
slurp-satisfying)
(define UPPERS "ABCDEFGHIJKLMNOPQRSTUVWXYZ")
(define DOWNERS "abcdefghijklmnopqrstuvwxyz")
(define LETTERS "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQR... | null | https://raw.githubusercontent.com/maxsnew/modal-scheme/3bcda7f40e7b878049d23ed553767988d6a83324/examples/Parse.rkt | racket |
Parses a list of characters into a natural number | #lang fiddle
(require fiddle/prelude)
(require fiddle/stdlib/CoList)
(provide parse-num upper-case? lower-case? letter? UPPERS digit<-char
slurp-satisfying)
(define UPPERS "ABCDEFGHIJKLMNOPQRSTUVWXYZ")
(define DOWNERS "abcdefghijklmnopqrstuvwxyz")
(define LETTERS "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQR... |
3d074684e1867f620c098ffa980f4fca9e83554e3864fa19dad59f71848f45ac | master/ejabberd | stringprep.erl | %%%----------------------------------------------------------------------
%%% File : stringprep.erl
Author : < >
%%% Purpose : Interface to stringprep_drv
Created : 16 Feb 2003 by < >
%%%
%%%
ejabberd , Copyright ( C ) 2002 - 2012 ProcessOne
%%%
%%% This program is free software; you can redistribut... | null | https://raw.githubusercontent.com/master/ejabberd/9c31874d5a9d1852ece1b8ae70dd4b7e5eef7cf7/src/stringprep/stringprep.erl | erlang | ----------------------------------------------------------------------
File : stringprep.erl
Purpose : Interface to stringprep_drv
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 useful,
bu... | Author : < >
Created : 16 Feb 2003 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... |
fd6e765784fb58980fae9d1d8d79f9c68472b1d6a330330341f0e5f722285789 | davebryson/beepbeep | erlydtl_scanner.erl | %%%-------------------------------------------------------------------
%%% File: erlydtl_scanner.erl
@author < > [ ]
@author < >
2008 ,
%%% @doc
%%% Template language scanner
%%% @end
%%%
%%% The MIT License
%%%
Copyright ( c ) 2007 ,
%%%
%%% Permission is hereby granted, free of... | null | https://raw.githubusercontent.com/davebryson/beepbeep/62db46d268c6cb6ad86345562b3c77f8ff070b27/deps/erlydtl/src/erlydtl_scanner.erl | erlang | -------------------------------------------------------------------
File: erlydtl_scanner.erl
@doc
Template language scanner
@end
The MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
... | @author < > [ ]
@author < >
2008 ,
Copyright ( c ) 2007 ,
in the Software without restriction , including without limitation the rights
copies of the Software , and to permit persons to whom the Software is
all copies or substantial portions of the Software .
THE SOFTWARE IS PROV... |
5d745a1293790b16b55d89128052596ea6b2076f550c49c511d56372fcf81865 | SamB/coq | sign.mli | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/SamB/coq/8f84aba9ae83a4dc43ea6e804227ae8cae8086b1/kernel/sign.mli | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
i $Id$ i
i
i
s Signatures of ordered... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
open Names
open Term
typ... |
62c01401a593b93c0103193e8417ba77762d5368a7b3d51e7a91c033dca985c7 | mauricioszabo/clover | aux.clj | (ns clover.aux)
(defmacro add-disposable! [command]
`(add-disposable* (fn [] ~command)))
(defmacro add-transient! [command]
`(add-transient-disposable* (fn [] ~command)))
| null | https://raw.githubusercontent.com/mauricioszabo/clover/abaaebfda55d8ba017df011ea975afdac7caec0e/src/clover/aux.clj | clojure | (ns clover.aux)
(defmacro add-disposable! [command]
`(add-disposable* (fn [] ~command)))
(defmacro add-transient! [command]
`(add-transient-disposable* (fn [] ~command)))
| |
f51b5edd8bed0eb063051f0f3ccb25580c939bb2c96205e5887254f8f236726d | golems/motion-grammar-kit | LL-star.lisp | ;;;; -*- Lisp -*-
;;;;
Copyright ( c ) 2013 - 2013 , Georgia Tech Research Corporation
;;;; All rights reserved.
;;;;
Author(s ): < >
Georgia Tech Humanoid Robotics Lab
;;;;
;;;; This file is provided under the following "BSD-style" License:
;;;;
;;;; Redistribution and use in source and binary forms, with o... | null | https://raw.githubusercontent.com/golems/motion-grammar-kit/42e8e19e25c4333f76cba4b3c4e589b24f98d660/src/LL-star.lisp | lisp | -*- Lisp -*-
All rights reserved.
This file is provided under the following "BSD-style" License:
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
c... | Copyright ( c ) 2013 - 2013 , Georgia Tech Research Corporation
Author(s ): < >
Georgia Tech Humanoid Robotics Lab
CONTRIBUTORS " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES ,
DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT
... |
7083d2db4c2689c0f746a20f27547a706642a476e2905fa800c547d0eac627be | d-cent/objective8 | add_draft.clj | (ns objective8.front-end.templates.add-draft
(:require [net.cgrand.enlive-html :as html]
[net.cgrand.jsoup :as jsoup]
[objective8.front-end.templates.page-furniture :as pf]
[objective8.front-end.templates.template-functions :as tf]
[objective8.utils :as utils]))
(def a... | null | https://raw.githubusercontent.com/d-cent/objective8/db8344ba4425ca0b38a31c99a3b282d7c8ddaef0/src/objective8/front_end/templates/add_draft.clj | clojure | (ns objective8.front-end.templates.add-draft
(:require [net.cgrand.enlive-html :as html]
[net.cgrand.jsoup :as jsoup]
[objective8.front-end.templates.page-furniture :as pf]
[objective8.front-end.templates.template-functions :as tf]
[objective8.utils :as utils]))
(def a... | |
22878806329f60345a600015c68ba02dedf569bb13f58ba89bf11a92a7b846dc | generateme/fastmath | vector_examples.clj | (ns fastmath.vector-examples
(:refer-clojure :exclude [abs])
(:require [fastmath.vector :refer :all]
[metadoc.examples :refer :all]
[fastmath.core :as m]))
(add-examples vec2
(example-session "Usage" (vec2 0.5 -0.5) (vec2))
(example "Destructuring"
(let [[^double x ^double y] (vec2 ... | null | https://raw.githubusercontent.com/generateme/fastmath/19c2a6e9a734c815cc55594fc1b5bb58a5993910/metadoc/fastmath/vector_examples.clj | clojure | (ns fastmath.vector-examples
(:refer-clojure :exclude [abs])
(:require [fastmath.vector :refer :all]
[metadoc.examples :refer :all]
[fastmath.core :as m]))
(add-examples vec2
(example-session "Usage" (vec2 0.5 -0.5) (vec2))
(example "Destructuring"
(let [[^double x ^double y] (vec2 ... | |
c258f88455605ab1262504882da8691aae783cfc47dacfe6555dae25d3edeb43 | gedge-platform/gedge-platform | rabbit_peer_discovery_aws.erl | 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 /.
%%
The Initial Developer of the Original Code is AWeber Communications .
Copyright ( c ) 2015 - 2016 AWeber Communications
Copyright ( c )... | null | https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/rabbitmq_peer_discovery_aws/src/rabbit_peer_discovery_aws.erl | erlang |
API
we cannot start this plugin yet since it depends on the rabbit app,
which is in the process of being started by the time this function is called
Don't try to acquire the global lock when our own node is not discoverable by peers.
We shouldn't run into this branch because our node is running and should have... | 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 /.
The Initial Developer of the Original Code is AWeber Communications .
Copyright ( c ) 2015 - 2016 AWeber Communications
Copyright ( c ) 20... |
0e053b1c605c16ad5f1009ef10d208413209208a01bfb3986c974fc31863b565 | t-sin/niko | webhook.lisp | (defpackage #:niko/webhook
(:use #:cl)
(:import-from #:niko/db/models
#:to-plist
#:all-users
#:add-user)
(:import-from #:niko/lib/slack
#:api/channel-id
#:api/user-ids
#:api/post-message)
(:import-from #:niko/db/mode... | null | https://raw.githubusercontent.com/t-sin/niko/53cbb4c31ad80379144b839b252d6067f134698a/webhook.lisp | lisp | (defpackage #:niko/webhook
(:use #:cl)
(:import-from #:niko/db/models
#:to-plist
#:all-users
#:add-user)
(:import-from #:niko/lib/slack
#:api/channel-id
#:api/user-ids
#:api/post-message)
(:import-from #:niko/db/mode... | |
e2d4a4f47bcd28d8d28b7e3b300df606f99c4fc9c39d1808bae3fbd835f22e57 | AbstractMachinesLab/caramel | staged.mli | type +'a t
val unstage : 'a t -> 'a
val stage : 'a -> 'a t
| null | https://raw.githubusercontent.com/AbstractMachinesLab/caramel/7d4e505d6032e22a630d2e3bd7085b77d0efbb0c/vendor/ocaml-lsp-1.4.0/vendor/stdune/staged.mli | ocaml | type +'a t
val unstage : 'a t -> 'a
val stage : 'a -> 'a t
| |
6933e412e1dd95725cedb18515eb6ae6f0f626a1725b208a36f2c78f3029698e | vereis/jarlang | io_lib_fread.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 1996 - 2017 . All Rights Reserved .
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% -2.0
%%
%% Unless required by applicab... | null | https://raw.githubusercontent.com/vereis/jarlang/72105b79c1861aa6c4f51c3b50ba695338aafba4/src/erl/lib/stdlib/io_lib_fread.erl | erlang |
%CopyrightBegin%
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific lan... | Copyright Ericsson AB 1996 - 2017 . All Rights Reserved .
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(io_lib_fread).
-export([fread/2,fread/3]).
-import(lists, [reverse/1]).
-define(is_whitespace(C),
((C) =... |
23b4f88e79f8e4e1c890f94d6123a5434b63ae11283bf756bd8a0ea989f315c6 | michiakig/sicp | ex-2.50-flip-horiz.scm | ;;;; Structure and Interpretation of Computer Programs
Chapter 2 Section 2 Hierarchical Data and the Closure Property
Exercise 2.50
#lang scheme
(require (planet "sicp.ss" ("soegaard" "sicp.plt" 2 1)))
(define (my-flip-horiz painter)
(my-transform-painter painter (make-vect 1.0 0.0)
(make-vect 0.0 0.0)
... | null | https://raw.githubusercontent.com/michiakig/sicp/1aa445f00b7895dbfaa29cf6984b825b4e5af492/ch2/2.2-hierarchical-data/picture-language/ex-2.50-flip-horiz.scm | scheme | Structure and Interpretation of Computer Programs
defined for us:
(define make-vect cons) | Chapter 2 Section 2 Hierarchical Data and the Closure Property
Exercise 2.50
#lang scheme
(require (planet "sicp.ss" ("soegaard" "sicp.plt" 2 1)))
(define (my-flip-horiz painter)
(my-transform-painter painter (make-vect 1.0 0.0)
(make-vect 0.0 0.0)
(make-vect 1.0 1.0)))
(d... |
36e4d7579dc83c916bc7af34383a504211dec95c4738e4406602484fd9923c37 | SimulaVR/godot-haskell | VSlider.hs | # LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving ,
TypeFamilies , TypeOperators , FlexibleContexts , DataKinds ,
MultiParamTypeClasses #
TypeFamilies, TypeOperators, FlexibleContexts, DataKinds,
MultiParamTypeClasses #-}
module Godot.Core.VSlider () where
import Data.Coerce
import Foreign.C
import... | null | https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/src/Godot/Core/VSlider.hs | haskell | # LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving ,
TypeFamilies , TypeOperators , FlexibleContexts , DataKinds ,
MultiParamTypeClasses #
TypeFamilies, TypeOperators, FlexibleContexts, DataKinds,
MultiParamTypeClasses #-}
module Godot.Core.VSlider () where
import Data.Coerce
import Foreign.C
import... | |
f8801346428634e812f79cb1e62edd9d1522c4da5b4f2d492b9ece867b305e02 | lowasser/TrieMap | Key.hs | # LANGUAGE TypeFamilies , CPP , FlexibleInstances , FlexibleContexts , NamedFieldPuns , RecordWildCards , UndecidableInstances #
# LANGUAGE MultiParamTypeClasses , UnboxedTuples , StandaloneDeriving , TypeSynonymInstances #
{-# OPTIONS -funbox-strict-fields #-}
module Data.TrieMap.Key () where
import Data.TrieMap.Clas... | null | https://raw.githubusercontent.com/lowasser/TrieMap/1ab52b8d83469974a629f2aa577a85de3f9e867a/Data/TrieMap/Key.hs | haskell | # OPTIONS -funbox-strict-fields #
| @'TrieMap' ('Key' k) a@ is a wrapper around a @TrieMap (Rep k) a@. | # LANGUAGE TypeFamilies , CPP , FlexibleInstances , FlexibleContexts , NamedFieldPuns , RecordWildCards , UndecidableInstances #
# LANGUAGE MultiParamTypeClasses , UnboxedTuples , StandaloneDeriving , TypeSynonymInstances #
module Data.TrieMap.Key () where
import Data.TrieMap.Class
import Data.TrieMap.TrieKey
import D... |
fe614290f587758b0db0ef8f473a805cffa93170766097f30902757ad7c1ecc8 | ghadishayban/squee | statements.clj | (ns squee.impl.statements
(:import [java.sql Connection Statement PreparedStatement ResultSet])
(:require [squee.impl.protocols :as p]
[squee.impl.resultset :as rs]))
(extend-protocol p/ISQLValue
Object
(sql-value [v] v)
nil
(sql-value [_] nil))
(extend-protocol p/ISQLParameter
Object
(se... | null | https://raw.githubusercontent.com/ghadishayban/squee/cf51ca427b2967bdd87527766ed342c2642fcd1a/src/squee/impl/statements.clj | clojure | ripped from c.j.j | (ns squee.impl.statements
(:import [java.sql Connection Statement PreparedStatement ResultSet])
(:require [squee.impl.protocols :as p]
[squee.impl.resultset :as rs]))
(extend-protocol p/ISQLValue
Object
(sql-value [v] v)
nil
(sql-value [_] nil))
(extend-protocol p/ISQLParameter
Object
(se... |
75c9bf77e36f04b17a7b1d3830eb1eb4eeed19395f8e184c222b2ffd6a5d9c86 | dbuenzli/fut | futu.ml | ---------------------------------------------------------------------------
Copyright ( c ) 2014 . All rights reserved .
Distributed under the ISC license , see terms at the end of the file .
% % NAME%% % % ---------------------------------------------------------------------------
Copyright (c) ... | null | https://raw.githubusercontent.com/dbuenzli/fut/907de63df12815f2df2cb796baa7fa37ac2758d4/src/futu.ml | ocaml | Unix results and errors
Signals
File descritpors
IO
Sockets | ---------------------------------------------------------------------------
Copyright ( c ) 2014 . All rights reserved .
Distributed under the ISC license , see terms at the end of the file .
% % NAME%% % % ---------------------------------------------------------------------------
Copyright (c) ... |
e553fe21cbfa4b964e92cf795e64f7994e645c4dd392f196e01fd117cb48e7c0 | plundering/plunder-reference | Serv.hs | # LANGUAGE OverloadedRecordDot #
{-# LANGUAGE RecursiveDo #-}
{-# LANGUAGE NoFieldSelectors #-}
{-# OPTIONS_GHC -Wall #-}
# OPTIONS_GHC -Werror #
-- TODO Cancelation Flows
-- TODO Implement SERV requests.
-- TODO Better testing flow (interation is too slow atm)
-- TODO Test multiple SER... | null | https://raw.githubusercontent.com/plundering/plunder-reference/4cac3717ed5baf7b0b5fd41837a504f6fd33eab2/lib/Server/Hardware/Serv.hs | haskell | # LANGUAGE RecursiveDo #
# LANGUAGE NoFieldSelectors #
# OPTIONS_GHC -Wall #
TODO Cancelation Flows
TODO Implement SERV requests.
TODO Better testing flow (interation is too slow atm)
TODO Test multiple SERV requests.
TODO Restrict incoming request to localhost-only.
Localhost Static HTTP
... | # LANGUAGE OverloadedRecordDot #
# OPTIONS_GHC -Werror #
TODO Open any old http port ( not 8888 ) and write out a .ports file .
|
There are two requests :
` ` `
SERV : : ( Cord , Bar ) - > IO ReturnCode
OPEN : : Cord - > IO Handle
` ` `
Requests are encoded as ` ( ... |
83f8c4e776ed5bbf961afb5f57a440574a92f3ca54068a1feec4651807116c3f | ml4tp/tcoq | typing.ml | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/ml4tp/tcoq/7a78c31df480fba721648f277ab0783229c8bece/pretyping/typing.ml | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
FIXME: might depend on the level of... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
open Pp
open CErrors
open Uti... |
1d6066fc32eac773f3b2c6d67c370fcb43220376ff31c28f135a9a104d3361a9 | CloudI/CloudI | emysql_app.erl | Copyright ( c ) 2009
< >
< >
%%
%% Permission is hereby granted, free of charge, to any person
%% obtaining a copy of this software and associated documentation
files ( the " Software " ) , to deal in the Software without
%% restriction, including without limitation the rights to use,
%% copy, modify, mer... | null | https://raw.githubusercontent.com/CloudI/CloudI/3e45031c7ee3e974ead2612ea7dd06c9edf973c9/src/external/cloudi_x_emysql/src/emysql_app.erl | erlang |
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
Software is furnished to do so, subject to the following
condit... | Copyright ( c ) 2009
< >
< >
files ( the " Software " ) , to deal in the Software without
copies of the Software , and to permit persons to whom the
included in all copies or substantial portions of the Software .
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND ,
-module(emysql_app... |
60737120d30126d09f58760a1609599639c9fff9d1610ee0976281b534a495ae | wavewave/fficxx | Main.hs | main :: IO ()
main = putStrLn "dummy-fficxx-multipkg-test-binary"
| null | https://raw.githubusercontent.com/wavewave/fficxx/6a648ee3cd0c4adc1da512403196bee98259a6b3/fficxx-multipkg-test/app/Main.hs | haskell | main :: IO ()
main = putStrLn "dummy-fficxx-multipkg-test-binary"
| |
a377805dfdb6d797d47a2ffa198d1ece43b2e761c5ccfc76c32f6f8995a06c48 | pigworker/Syrup | Expt.hs | ------------------------------------------------------------------------------
----- -----
--- : Experiments on Syrup Programs -----
----- -----
-------... | null | https://raw.githubusercontent.com/pigworker/Syrup/12bc8d0ef0a41fdc3f012d49d60538aa3233dc86/SRC/Expt.hs | haskell | ----------------------------------------------------------------------------
--- -----
- : Experiments on Syrup Programs -----
--- -----
---------------... |
# LANGUAGE PatternGuards #
module Syrup.SRC.Expt where
import Data.List
import Data.Monoid
import Data.Traversable
import Control.Monad.Identity
import Control.Monad.State
import Data.Function
import Control.Arrow
import Data.Maybe
import Data.Void
import Syrup.SRC.BigArray
import Syrup.SRC.Syn
import Syrup.SRC.Ty
... |
0f1508448fc7af94a77912984b14197592ce9f0d259662f719c6ce96ea86e3ef | cerner/clara-rules | listener.cljc | (ns clara.rules.listener
"Event listeners for analyzing the flow through Clara. This is for primarily for use by
tooling, but advanced users may use this to analyze sessions.")
(defprotocol IPersistentEventListener
(to-transient [listener]))
;; TODO: Handle add-accum-reduced
(defprotocol ITransientEventListene... | null | https://raw.githubusercontent.com/cerner/clara-rules/8107a5ab7fdb475e323c0bcb39084a83454deb1c/src/main/clojure/clara/rules/listener.cljc | clojure | TODO: Handle add-accum-reduced
A listener that does nothing.
A listener that simply delegates to others
Default listener. | (ns clara.rules.listener
"Event listeners for analyzing the flow through Clara. This is for primarily for use by
tooling, but advanced users may use this to analyze sessions.")
(defprotocol IPersistentEventListener
(to-transient [listener]))
(defprotocol ITransientEventListener
(left-activate! [listener node... |
b0f13e031a1100ae245377f50c916c372177519b81b6505919bf818188779446 | LambdaCon/2015 | hackney_ssl_transport.erl | %%% -*- erlang -*-
%%%
This file is part of hackney released under the Apache 2 license .
%%% See the NOTICE for more information.
%%%
Copyright ( c ) 2011 - 2012 , < >
-module(hackney_ssl_transport).
-export([messages/1,
connect/3, connect/4,
recv/3, recv/2,
send/2,
setopts/... | null | https://raw.githubusercontent.com/LambdaCon/2015/0149877454b88815b9fcb9cba8ffd9b37c149026/Elixir%20love%20at%20first%20sip/src/demos/currencies_skeleton/deps/hackney/src/hackney_connect/hackney_ssl_transport.erl | erlang | -*- erlang -*-
See the NOTICE for more information.
@doc Atoms used to identify messages in {active, once | true} mode.
filter options
connect
@doc Receive a packet from a socket in passive mode.
@see ssl:recv/3
@doc Send a packet on a socket.
@see ssl:send/2
@see ssl:setopts/2
@doc Assign a new controllin... | This file is part of hackney released under the Apache 2 license .
Copyright ( c ) 2011 - 2012 , < >
-module(hackney_ssl_transport).
-export([messages/1,
connect/3, connect/4,
recv/3, recv/2,
send/2,
setopts/2,
controlling_process/2,
peername/1,
clo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.