_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 |
|---|---|---|---|---|---|---|---|---|
9a7d089c15f872cf3fc7c7811bbfe2e8ab1f8895fc79e31187245bf5505bc2ad | Decentralized-Pictures/T4L3NT | script_tc_errors.ml | (*****************************************************************************)
(* *)
(* Open Source License *)
Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < >
(* ... | null | https://raw.githubusercontent.com/Decentralized-Pictures/T4L3NT/6d4d3edb2d73575384282ad5a633518cba3d29e3/src/proto_alpha/lib_protocol/script_tc_errors.ml | ocaml | ***************************************************************************
Open Source License
Permission is h... | Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < >
to deal in the Software without restriction , including without limitation
and/or sell copies of the Software , and to permit persons to whom the
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR
LIABILITY , WHETH... |
ccf80732f5415ac5f035f619e2c25f83ea48391358087f943a3d2d600570b2cb | janestreet/base_quickcheck | export.ml | open! Base
let quickcheck_generator_unit = Generator.unit
let quickcheck_generator_bool = Generator.bool
let quickcheck_generator_char = Generator.char
let quickcheck_generator_string = Generator.string
let quickcheck_generator_bytes = Generator.bytes
let quickcheck_generator_int = Generator.int
let quickcheck_generat... | null | https://raw.githubusercontent.com/janestreet/base_quickcheck/b3dc5bda5084253f62362293977e451a6c4257de/src/export.ml | ocaml | open! Base
let quickcheck_generator_unit = Generator.unit
let quickcheck_generator_bool = Generator.bool
let quickcheck_generator_char = Generator.char
let quickcheck_generator_string = Generator.string
let quickcheck_generator_bytes = Generator.bytes
let quickcheck_generator_int = Generator.int
let quickcheck_generat... | |
a9d0f416375b99fa07246877ea5b216f3f916aa9f5ce0796654e97989e6d4a14 | jaspervdj/blaze-markup | html-minimalist.hs | | BigTable benchmark using the html - minimalist package from hackage .
--
import Text.HTML.Light hiding (map)
import Criterion.Main
bigTable :: [[Int]] -> String
bigTable t =
renderXHTML xhtml_1_0_strict $ html [] $ return $ table [] $ map row t
where
row r = tr [] $ map (td [] . return . cdata . show) r
... | null | https://raw.githubusercontent.com/jaspervdj/blaze-markup/214b4110b925378f5e5e5a1e9c2d66120b6889d1/benchmarks/bigtable/html-minimalist.hs | haskell | | BigTable benchmark using the html - minimalist package from hackage .
import Text.HTML.Light hiding (map)
import Criterion.Main
bigTable :: [[Int]] -> String
bigTable t =
renderXHTML xhtml_1_0_strict $ html [] $ return $ table [] $ map row t
where
row r = tr [] $ map (td [] . return . cdata . show) r
ma... | |
db07c6c51df3ab9a82801d2325d1af5a66df7e0fb769a33f628655066b93b6c8 | HugoPeters1024/hs-sleuth | th-tests.hs | -- | Provides a simple main function which runs all the tests
--
module Main
( main
) where
import Test.Framework (defaultMain)
import qualified Lift
main :: IO ()
main = defaultMain [Lift.tests]
| null | https://raw.githubusercontent.com/HugoPeters1024/hs-sleuth/385655e62031959a14a3bac5e9ccd1c42c045f0c/test-project/text-1.2.4.0/th-tests/tests/th-tests.hs | haskell | | Provides a simple main function which runs all the tests
| module Main
( main
) where
import Test.Framework (defaultMain)
import qualified Lift
main :: IO ()
main = defaultMain [Lift.tests]
|
9c3293cf9e864bdda28e66148c0f696c4a06ebadbafa0679d3c8c4c674e3971a | denistakeda/re-posh | effects.cljc | (ns re-posh.effects
(:require
[re-frame.core :as r]
[re-posh.db :refer [store]]
[posh.reagent :as p]))
(r/reg-fx
:transact
(fn [datoms]
(p/transact! @store datoms)))
| null | https://raw.githubusercontent.com/denistakeda/re-posh/f17ed7b05e930af97dd39ea0555915edac836177/src/re_posh/effects.cljc | clojure | (ns re-posh.effects
(:require
[re-frame.core :as r]
[re-posh.db :refer [store]]
[posh.reagent :as p]))
(r/reg-fx
:transact
(fn [datoms]
(p/transact! @store datoms)))
| |
4bb118a780313588517e256bbca3d8bd19318ffda75d8dad79ea4c91736e1ca6 | ucsd-progsys/nate | ezyErrorReportUtils.ml | open EzyUtils
open EzyAst
open EzyOcamlmodules
exception InternalMaskError of string
let magic_filter : ?f:('a -> 'b) -> ?p:('b -> 'b -> bool) -> 'a list -> 'b list =
fun ?f ?p al ->
List.fold_right
(fun a bl ->
let b = (match f with None -> a | Some f -> f a ) in
match b... | null | https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/easyocaml/ezyErrorReportUtils.ml | ocaml |
and create_sliced_core_type : core_type -> LocationSet.t -> core_type =
fun ct lset ->
match ct.ptyp_desc with
| Ptyp_any
| Ptyp_var of string
| Ptyp_arrow of label * core_type * core_type
| Ptyp_tuple of core_type list
| Ptyp_constr of Longident.t * core_type list
| Ptyp_obje... | open EzyUtils
open EzyAst
open EzyOcamlmodules
exception InternalMaskError of string
let magic_filter : ?f:('a -> 'b) -> ?p:('b -> 'b -> bool) -> 'a list -> 'b list =
fun ?f ?p al ->
List.fold_right
(fun a bl ->
let b = (match f with None -> a | Some f -> f a ) in
match b... |
cb1ee98293de448adad85834ff24e99f0e01a700d9ce6236580fd5f6a2e57c9a | philnguyen/soft-contract | issue-62.rkt | #lang racket
(raise-user-error 'example)
| null | https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/test/programs/safe/issues/issue-62.rkt | racket | #lang racket
(raise-user-error 'example)
| |
37ce5f4c2012bf6b54f3e85962f63764256d9c07d620d1fce4cb77c827cb9e37 | SamB/coq | ground.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/contrib/firstorder/ground.mli | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
********************************************************************** | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
$ Id$
val ground_tac: ... |
5d48995a0c2341ecead745c8e71c046360b86a8ca7c1815342f4ac1931746981 | 12urenloop/cvc | Tests.hs | --------------------------------------------------------------------------------
{-# LANGUAGE OverloadedStrings #-}
module CountVonCount.Sensor.Filter.Tests
( tests
) where
--------------------------------------------------------------------------------
import Test.Framework (Test, t... | null | https://raw.githubusercontent.com/12urenloop/cvc/f8a0d57775fc6b50f18f96b9a17cb8baf4a1f1ee/count-von-count/tests/CountVonCount/Sensor/Filter/Tests.hs | haskell | ------------------------------------------------------------------------------
# LANGUAGE OverloadedStrings #
------------------------------------------------------------------------------
------------------------------------------------------------------------------
----------------------------------------------------... | module CountVonCount.Sensor.Filter.Tests
( tests
) where
import Test.Framework (Test, testGroup)
import Test.Framework.Providers.HUnit (testCase)
import Test.HUnit ((@=?))
import CountVonCount.Persistence
import CountVonCo... |
586849bc70e626e958fc5cdf2271dcb21cc80ca717709c346ede39c020a6ce93 | ghilesZ/picasso | drawer.ml | module Make (D : Manager.T) = struct
(* Initialization and Backend setting *)
let x_min = ref 0.
let x_max = ref 0.
let y_min = ref 0.
let y_max = ref 0.
let nb_graduation =
10. (* target number of graduation, the actual will differ slightly *)
let square ((a, b) as bl) ((c, d) as tr) = [bl; (c,... | null | https://raw.githubusercontent.com/ghilesZ/picasso/76a607aabe0c6b267892a8df62de4f42354155f1/src/drawer.ml | ocaml | Initialization and Backend setting
target number of graduation, the actual will differ slightly
screen as a polygon
few constants colors
redefining drawing utilities
Filled, black-outlined polygon
horizontal minibars and coordinates
vertical minibar coordinates
main drawing function | module Make (D : Manager.T) = struct
let x_min = ref 0.
let x_max = ref 0.
let y_min = ref 0.
let y_max = ref 0.
let nb_graduation =
let square ((a, b) as bl) ((c, d) as tr) = [bl; (c, b); tr; (a, d)]
let screen () = square (0., 0.) (D.width (), D.height ())
let to_backend_coord (x, y) =
D.n... |
ef12debf99ddaaa9e1c1b293feba44684ac3ebd7605930c35811848109978b88 | maximedenes/native-coq | coqinit.mli | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/maximedenes/native-coq/3623a4d9fe95c165f02f7119c0e6564a83a9f4c9/toplevel/coqinit.mli | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
* Initialization. | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
val set_debug : unit -> unit... |
87ec589ffea8f7f155e74bd95de1f517ecebbd2a6d243ab7004c36ee8149498b | KeenS/zenekindarl | util.lisp | (in-package :cl-user)
(defpackage zenekindarl.util
(:use :cl)
(:export :octets))
(in-package :zenekindarl.util)
(deftype octets ()
'(simple-array (unsigned-byte 8) (*)))
(defun octets (&rest contents)
(make-array (length contents)
:element-type '(unsigned-byte 8)
:initial-contents ... | null | https://raw.githubusercontent.com/KeenS/zenekindarl/ea8cfa8b6e6039043f1a1495b6978224e940bc1b/src/util.lisp | lisp | (in-package :cl-user)
(defpackage zenekindarl.util
(:use :cl)
(:export :octets))
(in-package :zenekindarl.util)
(deftype octets ()
'(simple-array (unsigned-byte 8) (*)))
(defun octets (&rest contents)
(make-array (length contents)
:element-type '(unsigned-byte 8)
:initial-contents ... | |
85d191f0c7f8cd45bfb947f2df766cc02c54786895981841369fc061994a98b4 | tlaitinen/yesod-dsl | Routes.hs | # LANGUAGE FlexibleInstances #
# LANGUAGE TemplateHaskell #
{-# LANGUAGE OverloadedStrings #-}
module YesodDsl.Generator.Routes where
import YesodDsl.AST
import Data.Maybe
import qualified Data.Text as T
import Data.List
import Text.Shakespeare.Text hiding (toText)
import Data.Char
routeModuleName :: Route -> String
ro... | null | https://raw.githubusercontent.com/tlaitinen/yesod-dsl/e248471bc708542dd050d96ac9fde627e9e349ae/YesodDsl/Generator/Routes.hs | haskell | # LANGUAGE OverloadedStrings # | # LANGUAGE FlexibleInstances #
# LANGUAGE TemplateHaskell #
module YesodDsl.Generator.Routes where
import YesodDsl.AST
import Data.Maybe
import qualified Data.Text as T
import Data.List
import Text.Shakespeare.Text hiding (toText)
import Data.Char
routeModuleName :: Route -> String
routeModuleName r = "Route" ++ (conca... |
db4d574b9d0b5eddc6617b8155de87f9a276e139f30c131ad32db7daa5c67307 | EveryTian/Haskell-Codewars | SecretHandshake.hs | module SecretHandshake (handshake) where
import Data.Bits (bit, (.&.))
handshake :: Int -> [String]
handshake n = let s = ["wink", "double blink", "close your eyes", "jump"]
in (if bit 4 .&. n == 0 then id else reverse)
[s !! i | i <- [0..3], bit i .&. n /= 0]
| null | https://raw.githubusercontent.com/EveryTian/Haskell-Codewars/dc48d95c676ce1a59f697d07672acb6d4722893b/exercism/secret-handshake/src/SecretHandshake.hs | haskell | module SecretHandshake (handshake) where
import Data.Bits (bit, (.&.))
handshake :: Int -> [String]
handshake n = let s = ["wink", "double blink", "close your eyes", "jump"]
in (if bit 4 .&. n == 0 then id else reverse)
[s !! i | i <- [0..3], bit i .&. n /= 0]
| |
e087c2ec630c56d430f3cc4bcc06bbd1fc90a968e6ff0fe41cc369815d9f2f4a | s3team/Amoeba | disassemble_validator.ml | open Batteries
open Visit
open Type
open Ail_utils
class stack_of_loc =
object (self)
val mutable the_list : loc list = []
method push x =
the_list <- x :: the_list
method pop =
let result = List.hd the_list in
the_list <- List.tl the_list;
result
method pe... | null | https://raw.githubusercontent.com/s3team/Amoeba/50ab9027afc2ca90fed21ecafa309a75b3e89ea2/src/disassemble_validator.ml | ocaml | S_0x8040240
self#trim_results;
error decode locating
found indirect control flow destination, match last error
this is wired, I don't believe
situations like this could happen | open Batteries
open Visit
open Type
open Ail_utils
class stack_of_loc =
object (self)
val mutable the_list : loc list = []
method push x =
the_list <- x :: the_list
method pop =
let result = List.hd the_list in
the_list <- List.tl the_list;
result
method pe... |
3892b6a1f5efcf683c9e080e4285fac6d014e58ff2efd945ef7acb3d47bf3658 | OCamlPro/digodoc | requests.ml | (**************************************************************************)
(* *)
Copyright ( c ) 2021 OCamlPro SAS & Origin Labs SAS
(* *)
(* All right... | null | https://raw.githubusercontent.com/OCamlPro/digodoc/9d8f33981ba518e38f3b96aa35847258d8d6e154/src/frontend/requests.ml | ocaml | ************************************************************************
All rights reserved.
This file is distributed u... | Copyright ( c ) 2021 OCamlPro SAS & Origin Labs SAS
Public License version 2.1 , with the special exception on linking
open Js_of_ocaml
open Data_types
open Lwt.Infix
open Globals
type 'res response = ('res, server_error_type) result
let handle_error err =
Lwt.return @@
matc... |
f11b79fae02f218b42e6fa4e3159e6d0557ec3f37bdb28e5c9ad9d5016ff95e5 | hidaris/thinking-dumps | 2-12.rkt | #lang eopl
;;; (empty-stack) = []
;;; (push v [v1 v2 v3 ...]) = [v v1 v2 v3 ...]
;;; (pop v [v v1 v2 v3 ...]) = [v1 v2 v3]
;;; (top [v1 v2 v3 ...]) = v
;;; (empty-stack? stack) = #t if stack = [], else #f
;;; constructors : empty-stack push
;;; observers : pop, top, empty-stack?
(define empty-stack
(lambda ()
(c... | null | https://raw.githubusercontent.com/hidaris/thinking-dumps/3fceaf9e6195ab99c8315749814a7377ef8baf86/eopl-solutions/chap2/2-12.rkt | racket | (empty-stack) = []
(push v [v1 v2 v3 ...]) = [v v1 v2 v3 ...]
(pop v [v v1 v2 v3 ...]) = [v1 v2 v3]
(top [v1 v2 v3 ...]) = v
(empty-stack? stack) = #t if stack = [], else #f
constructors : empty-stack push
observers : pop, top, empty-stack? | #lang eopl
(define empty-stack
(lambda ()
(cons
(lambda (op)
(cond
((eqv? op 'pop)
(eopl:error 'pop
"stack is empty"))
((eqv? op 'top)
(eopl:error 'top
"stack is empty"))
(else
(eopl:error `,op
... |
5850e6435e9c59f6251c6e7a1739bba2136dcce87365d13e467f846e64d356c6 | FranklinChen/hugs98-plus-Sep2006 | AnsiDemo.hs | -- This program is a simple example of the kind of thing that you can do with
-- ANSI escape character sequences. But, of course, it will only work on
-- machines that support those character sequences (xterms and PCs with
-- ansi.sys installed, for example).
--
-- Type `interact program' to run the program.
module A... | null | https://raw.githubusercontent.com/FranklinChen/hugs98-plus-Sep2006/54ab69bd6313adbbed1d790b46aca2a0305ea67e/demos/AnsiDemo.hs | haskell | This program is a simple example of the kind of thing that you can do with
ANSI escape character sequences. But, of course, it will only work on
machines that support those character sequences (xterms and PCs with
ansi.sys installed, for example).
Type `interact program' to run the program. |
module AnsiDemo( program ) where
import AnsiInteract
writes = writeStr . concat
program = writes [ cls,
at (17,5) (highlight "Demonstration program"),
at (48,5) "Version 1.0",
at (17,7) "This program illustrates a simple approach",
at (17... |
74719f32ed48f51d0b7d9f40cbaf0e9c422822eb527fdaff8ecb8abd8d293693 | fragnix/fragnix | Data.ByteString.Search.KMP.hs | # LANGUAGE Haskell98 , BangPatterns #
# LINE 1 " Data / ByteString / Search / KMP.hs " #
-- |
-- Module : Data.ByteString.Search.KMP
Copyright :
-- Licence : BSD3
Maintainer : < >
-- Stability : Provisional
Portability : non - porta... | null | https://raw.githubusercontent.com/fragnix/fragnix/b9969e9c6366e2917a782f3ac4e77cce0835448b/tests/packages/scotty/Data.ByteString.Search.KMP.hs | haskell | |
Module : Data.ByteString.Search.KMP
Licence : BSD3
Stability : Provisional
Fast search of strict 'S.ByteString' values using the
A description of the algorithm can be found at
<-Morris-Pratt_algorithm>.
* Overview
$overview
** Complexity and Performance
$complexity
** Partial applic... | # LANGUAGE Haskell98 , BangPatterns #
# LINE 1 " Data / ByteString / Search / KMP.hs " #
Copyright :
Maintainer : < >
Portability : non - portable ( BangPatterns )
Knuth - Morris - Pratt algorithm .
Original authors : ( jgbailey at gmail.com ) an... |
9344d17d7a5b77242d6c6d56ba09220e75bc1ed81a95c11c7ac7cfafe2c522ab | plum-umd/c-strider | partial.ml | (* See copyright notice at the end of the file *)
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Partial Evaluation & Constant Folding
*
* Soundness Assumptions :
* ( 1 ) Whole program analysis . You m... | null | https://raw.githubusercontent.com/plum-umd/c-strider/3d3a3743bc28456eb6d50e01805ce484ab3c04e6/tools/cil-1.3.7/src/ext/partial.ml | ocaml | See copyright notice at the end of the file
****************************************************************************
* A generic signature for Alias Analysis information. Used to compute the
* call graph and do symbolic execution.
***************************************************************************
all... | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Partial Evaluation & Constant Folding
*
* Soundness Assumptions :
* ( 1 ) Whole program analysis . You may call functions that are not defined
* (... |
bb065835b26250b395457a40ed18563eb99a2ca6943680be0543a9dab7898feb | vernemq/vernemq | vmq_ssl_psk.erl | 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
distributed under the License is distributed o... | null | https://raw.githubusercontent.com/vernemq/vernemq/bfa6191bfc8219752d77f94af0ea60d2ac056b17/apps/vmq_server/src/vmq_ssl_psk.erl | erlang | you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permi... | Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(vmq_ssl_psk).
-export([
init/1,
opts/1,
psk_lookup/3,
psk_support_enabled/1,
ciphers/1
]).
-define(TABLE, ?MODULE).
psk_support_enabled(Opts) ->
... |
42f9acbe1ea3b6027f688ca76e4cc041df33d1f2530b48bc203e49de405970af | hanshuebner/vlm | imacfext.lisp | ;;; -*- Package: ALPHA-HACKS; Syntax: Common-Lisp; Mode: LISP -*-
(in-package "ALPHA-AXP-INTERNALS")
Macros in support of field extraction .
(defmacro ldb-shift (value position result)
(let ((noshift (gensym)))
`((BEQ ,position ,noshift "No shifting needed when byte position is zero")
(SLL ,value ,posi... | null | https://raw.githubusercontent.com/hanshuebner/vlm/20510ddc98b52252a406012a50a4d3bbd1b75dd0/alpha-emulator/imacfext.lisp | lisp | -*- Package: ALPHA-HACKS; Syntax: Common-Lisp; Mode: LISP -*- |
(in-package "ALPHA-AXP-INTERNALS")
Macros in support of field extraction .
(defmacro ldb-shift (value position result)
(let ((noshift (gensym)))
`((BEQ ,position ,noshift "No shifting needed when byte position is zero")
(SLL ,value ,position ,result)
(SRL ,result 32 ,result "t4 is the shifted fie... |
f3235169e59d7cac9f65d5b381afe975c6a65342fb7426496b83ef0df014e26b | typelead/eta | arr012.hs | -- !!! Array map operations
--
--
module Main(main) where
import Data.Array
import Data.Char
main =
let
a1 = array (0,10) (zip [0..10] ['a'..'z'])
in
print a1 >>
print (fmap (toUpper) a1) >>
print (ixmap (3,8) (+1) a1)
| null | https://raw.githubusercontent.com/typelead/eta/97ee2251bbc52294efbf60fa4342ce6f52c0d25c/tests/suite/array/run/arr012.hs | haskell | !!! Array map operations
| module Main(main) where
import Data.Array
import Data.Char
main =
let
a1 = array (0,10) (zip [0..10] ['a'..'z'])
in
print a1 >>
print (fmap (toUpper) a1) >>
print (ixmap (3,8) (+1) a1)
|
5f817d65672af24ba3913bde5576f2f0e252912bfafb4f19605503426382a8c3 | austral/austral | Identifier.mli |
Part of the Austral project , under the Apache License v2.0 with LLVM Exceptions .
See LICENSE file for details .
SPDX - License - Identifier : Apache-2.0 WITH LLVM - exception
Part of the Austral project, under the Apache License v2.0 with LLVM Exceptions.
See LICENSE file for details.
SPDX... | null | https://raw.githubusercontent.com/austral/austral/69b6f7de36cc9576483acd1ac4a31bf52074dbd1/lib/Identifier.mli | ocaml | * Create an identifier from a string.
TODO: Verify the identifier satisfies the regex.
* Return the string representation of an identifier.
* Create a module name from a string.
TODO: Check the string satisfies the regex.
* The string representation of a module name.
* A sourced identifier is a module nam... |
Part of the Austral project , under the Apache License v2.0 with LLVM Exceptions .
See LICENSE file for details .
SPDX - License - Identifier : Apache-2.0 WITH LLVM - exception
Part of the Austral project, under the Apache License v2.0 with LLVM Exceptions.
See LICENSE file for details.
SPDX... |
7bd9e054143408b1a5a490516af93d99a0f8c982b0b1c4eabb0244d926f5e17f | synduce/Synduce | playground.ml | * @synduce --no - lifting -NB -n 20 -I incomplete / bst / bst.ml
This skeleton has erros and is unrealizable , but allowing for different configuations
allows to find solutions that are variations of the configuration given here .
This skeleton has 262144 possible configurations .
allows to find solution... | null | https://raw.githubusercontent.com/synduce/Synduce/42d970faa863365f10531b19945cbb5cfb70f134/benchmarks/playground.ml | ocaml | * @synduce --no - lifting -NB -n 20 -I incomplete / bst / bst.ml
This skeleton has erros and is unrealizable , but allowing for different configuations
allows to find solutions that are variations of the configuration given here .
This skeleton has 262144 possible configurations .
allows to find solution... | |
35121eabc38a2234d45a09ea9a38a87487dadf1e1253886f4d30aead1cba15d7 | mdedwards/slippery-chicken | chop-examples.lsp | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
File : chop-examples.lsp
;;;
Class Hierarchy : None
;;;
Version : 1.0
;;;
;;; Project: slippery chicken (algorithmic composition)
;;;
;;; Purpose: Lisp-code examples to accompany chop.html
;;... | null | https://raw.githubusercontent.com/mdedwards/slippery-chicken/c1c11fadcdb40cd869d5b29091ba5e53c5270e04/doc/examples/chop-examples.lsp | lisp |
Project: slippery chicken (algorithmic composition)
Purpose: Lisp-code examples to accompany chop.html
Creation date: 13th July 2012
****
This file is part of slippery-chicken
slippery-chicken is free software; you can redistribute it
... | File : chop-examples.lsp
Class Hierarchy : None
Version : 1.0
Author :
$ $ Last modified : 22:41:11 Fri May 17 2013 BST
SVN ID : $ I d : chop-examples.lsp 3538 2013 - 05 - 18 08:29:15Z medward2 $
Licence : Copyright ( c ) 2012
Public Li... |
9c4c12c10f09269489958c3e3ef2c67ac0766cc80879aae53931323e68c1e03a | kwanghoon/polyrpc | Type.hs | # LANGUAGE DeriveDataTypeable , DeriveGeneric #
module Type where
import Common
import Prim
import Data.Char
import Data.Set(Set)
import qualified Data.Set as S
-- For aeson
import
import Data . Aeson
import Text.JSON.Generic
import Naming
import Pretty hiding (pretty)
import Location
import Data.Text.Prettypr... | null | https://raw.githubusercontent.com/kwanghoon/polyrpc/49ba773bd3f1b22dce1ad64cda44683553d27c89/app/ast/Type.hs | haskell | For aeson
For aeson
Names
???
???
loc1 and loc2 ??
universal types and locations ???
Pretty
| typeSubst A α B = [A/α]B
| The free type variables in a type
| The free location variables in a type | # LANGUAGE DeriveDataTypeable , DeriveGeneric #
module Type where
import Common
import Prim
import Data.Char
import Data.Set(Set)
import qualified Data.Set as S
import
import Data . Aeson
import Text.JSON.Generic
import Naming
import Pretty hiding (pretty)
import Location
import Data.Text.Prettyprint.Doc hidin... |
5ab48efbc014c47cc77195bb264380dc76a4e903c3799175aabd46abc3defcdf | roosta/herb | anon.cljs | (ns site.snippets.anon
(:require [herb.core :refer [<class]]))
(defn link []
[:a {:href "/"
:class (<class (fn []
^{:pseudo {:hover {:text-decoration "underline"}}}
{:text-decoration "none"
:color "#09f"}))}
"Go to clojurescript.org... | null | https://raw.githubusercontent.com/roosta/herb/64afb133a7bf51d7171a3c5260584c09dbe4e504/site/src/site/snippets/anon.cljs | clojure | (ns site.snippets.anon
(:require [herb.core :refer [<class]]))
(defn link []
[:a {:href "/"
:class (<class (fn []
^{:pseudo {:hover {:text-decoration "underline"}}}
{:text-decoration "none"
:color "#09f"}))}
"Go to clojurescript.org... | |
213c73bdeed34821c66c15bab95b594028a36dd6490fdfb53cba9ff211ce55bf | exoscale/clojure-kubernetes-client | v1_iscsi_volume_source.clj | (ns clojure-kubernetes-client.specs.v1-iscsi-volume-source
(:require [clojure.spec.alpha :as s]
[spec-tools.data-spec :as ds]
[clojure-kubernetes-client.specs.v1-local-object-reference :refer :all]
)
(:import (java.io File)))
(declare v1-iscsi-volume-source-data v1-iscsi-volume... | null | https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/v1_iscsi_volume_source.clj | clojure | (ns clojure-kubernetes-client.specs.v1-iscsi-volume-source
(:require [clojure.spec.alpha :as s]
[spec-tools.data-spec :as ds]
[clojure-kubernetes-client.specs.v1-local-object-reference :refer :all]
)
(:import (java.io File)))
(declare v1-iscsi-volume-source-data v1-iscsi-volume... | |
1d6dd1b6990faadb017210f6d1432457f5cf66365c606d2c2798ea09466e1b28 | gerlion/secure-e-voting-with-coq | lib.ml |
type __ = Obj.t
* negb : bool - > bool *
let negb = function
| true -> false
| false -> true
(** val fst : ('a1 * 'a2) -> 'a1 **)
let fst = function
| (x, _) -> x
* snd : ( ' a1 * ' a2 ) - > ' a2 *
let snd = function
| (_, y) -> y
type comparison =
| Eq
| Lt
| Gt
type 'a sig0 = 'a
(* singleton inductive, w... | null | https://raw.githubusercontent.com/gerlion/secure-e-voting-with-coq/c85f58f5759b960cc9d90a96fe7970e038523a9a/ElectionGuard/OCaml/lib.ml | ocaml | * val fst : ('a1 * 'a2) -> 'a1 *
singleton inductive, whose constructor was exist
* val succ_double_mask : mask -> mask *
* val sub_mask_carry : Big.big_int -> Big.big_int -> mask *
* val compare_cont :
comparison -> Big.big_int -> Big.big_int -> comparison *
* val compare : Big.big_int -> Big.big_int -> compar... |
type __ = Obj.t
* negb : bool - > bool *
let negb = function
| true -> false
| false -> true
let fst = function
| (x, _) -> x
* snd : ( ' a1 * ' a2 ) - > ' a2 *
let snd = function
| (_, y) -> y
type comparison =
| Eq
| Lt
| Gt
type 'a sig0 = 'a
module Pos =
struct
type mask =
| IsNul
| IsPos of Big.b... |
3c780d02c882e589c29b3c91d6cb144aa2950068dca1ebde78f1d7278e814794 | 223kazuki/clj-graphql-server | datomic.clj | (ns duct.migrator.datomic
(:require [integrant.core :as ig]
[datomic.api :as d]))
(defmethod ig/init-key ::transactions [_ {:keys [up down] :as options}]
options)
(defmethod ig/init-key :duct.migrator/datomic [_ {:keys [database schema migrations]
:as ... | null | https://raw.githubusercontent.com/223kazuki/clj-graphql-server/0994d2bb98cd483dcb1c02a8175766e4fd35c861/src/duct/migrator/datomic.clj | clojure | (ns duct.migrator.datomic
(:require [integrant.core :as ig]
[datomic.api :as d]))
(defmethod ig/init-key ::transactions [_ {:keys [up down] :as options}]
options)
(defmethod ig/init-key :duct.migrator/datomic [_ {:keys [database schema migrations]
:as ... | |
3127e9fb2f3bbec0aaec570125938f03efdd7788de7ff7d779278e132e59a5df | bobzhang/fan | control.ml | let rec token: Lexing.lexbuf -> Tokenf.t =
function
| (lexbuf : Lexing.lexbuf) ->
let rec __ocaml_lex_next_char =
function
| () ->
if lexbuf.lex_curr_pos >= lexbuf.lex_buffer_len
then
(if lexbuf.lex_eof_reached
then 256
else (... | null | https://raw.githubusercontent.com/bobzhang/fan/7ed527d96c5a006da43d3813f32ad8a5baa31b7f/tests/asts/failed_parse/control.ml | ocaml | let rec token: Lexing.lexbuf -> Tokenf.t =
function
| (lexbuf : Lexing.lexbuf) ->
let rec __ocaml_lex_next_char =
function
| () ->
if lexbuf.lex_curr_pos >= lexbuf.lex_buffer_len
then
(if lexbuf.lex_eof_reached
then 256
else (... | |
b31e3363ff1bf0ee5413e98ef55747e78a3db5694cbab9377d8bd000cebfaa47 | kadena-io/pact | Parse.hs | # LANGUAGE FlexibleInstances #
# LANGUAGE DeriveGeneric #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TupleSections #
# LANGUAGE FlexibleContexts #
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE Rank2Types #-}
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE MultiParamTypeClasses #
-- |
-- Module : Pact.Compi... | null | https://raw.githubusercontent.com/kadena-io/pact/ed546f5f569cfeb59b40f12df65d4cba50e4daa8/src/Pact/Parse.hs | haskell | # LANGUAGE OverloadedStrings #
# LANGUAGE Rank2Types #
|
Module : Pact.Compile
License : BSD-style (see the file LICENSE)
| Main parser for Pact expressions.
parser because we want to disallow whitespace following the negative sign
consider this an expression rather than a literal.
| Parse one or mo... | # LANGUAGE FlexibleInstances #
# LANGUAGE DeriveGeneric #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TupleSections #
# LANGUAGE FlexibleContexts #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE MultiParamTypeClasses #
Copyright : ( C ) 2016
Maintainer : < >
Parser to ' Exp 's .
module Pact.Pa... |
d3237cb464bfc73792c276d4b62d7d37692a7500514f24115363142d7c3ea892 | ocsigen/obrowser | syntax_ocaml.ml | open Js ;;
open Html ;;
open Syntax_common ;;
(* syntax colouring parameters *)
let sty_uppercase = "color:darkgreen"
and sty_lowercase = "color:#00A; font-weight: bold;"
and sty_string = "color:darkcyan"
and sty_numeric = "color:darkcyan"
and sty_comments = "color:#808000; font-style:italic;"
and sty_brackets =... | null | https://raw.githubusercontent.com/ocsigen/obrowser/977c09029ea1e4fde4fb0bf92b4d893835bd9504/tutorial/syntax_ocaml.ml | ocaml | syntax colouring parameters
too much ')'
** (** (* SELF TEST | open Js ;;
open Html ;;
open Syntax_common ;;
let sty_uppercase = "color:darkgreen"
and sty_lowercase = "color:#00A; font-weight: bold;"
and sty_string = "color:darkcyan"
and sty_numeric = "color:darkcyan"
and sty_comments = "color:#808000; font-style:italic;"
and sty_brackets = "color:darkviolet"
and sty_infix... |
4a98989b8751b615a3da4d0b0a9cf5e8d22f8b61795dbdd7b0391daf9c951d0c | tengstrand/lein-polylith | settings.clj | (ns leiningen.polylith.cmd.help.settings)
(defn help []
(println " Show project settings with various information.")
(println)
(println " examples:")
(println " lein polylith settings"))
| null | https://raw.githubusercontent.com/tengstrand/lein-polylith/27bf508a7b4806e4d2dfac01787e99edf2c1c306/src/leiningen/polylith/cmd/help/settings.clj | clojure | (ns leiningen.polylith.cmd.help.settings)
(defn help []
(println " Show project settings with various information.")
(println)
(println " examples:")
(println " lein polylith settings"))
| |
07a705574da3dc706c24e731225cc0ade8eb36a29cbc133a08bcab4936aa5a28 | yetanalytics/dl4clj | fine_tune.clj | (ns dl4clj.nn.api.fine-tune
(:import [org.deeplearning4j.nn.transferlearning
FineTuneConfiguration TransferLearningHelper]
[org.nd4j.linalg.api.ndarray INDArray])
(:require [clojure.core.match :refer [match]]
[dl4clj.utils :refer [array-of obj-or-code? eval-if-code]]
[... | null | https://raw.githubusercontent.com/yetanalytics/dl4clj/9ef055b2a460f1a6246733713136b981fd322510/src/dl4clj/nn/api/fine_tune.clj | clojure |
fine tune helpers
| (ns dl4clj.nn.api.fine-tune
(:import [org.deeplearning4j.nn.transferlearning
FineTuneConfiguration TransferLearningHelper]
[org.nd4j.linalg.api.ndarray INDArray])
(:require [clojure.core.match :refer [match]]
[dl4clj.utils :refer [array-of obj-or-code? eval-if-code]]
[... |
e880a389f0a617283e8242edc95d46d24881b88d1e7a000bd86d369309802420 | cartazio/tlaps | deque.ml |
* deque.ml --- Persistent functional double - ended queues
*
*
* Copyright ( C ) 2008 - 2010 INRIA and Microsoft Corporation
* deque.ml --- Persistent functional double-ended queues
*
*
* Copyright (C) 2008-2010 INRIA and Microsoft Corporation
*)
Revision.f "$Rev: 28687 $";;
open Ext
type 'a d... | null | https://raw.githubusercontent.com/cartazio/tlaps/562a34c066b636da7b921ae30fc5eacf83608280/src/util/deque.ml | ocaml |
* deque.ml --- Persistent functional double - ended queues
*
*
* Copyright ( C ) 2008 - 2010 INRIA and Microsoft Corporation
* deque.ml --- Persistent functional double-ended queues
*
*
* Copyright (C) 2008-2010 INRIA and Microsoft Corporation
*)
Revision.f "$Rev: 28687 $";;
open Ext
type 'a d... | |
edec01b20563fcdae46097cf6c7c6ae52d241178957b0140324d66f5c562bcb9 | soupi/rfc | Todo.hs | module Todo where
main :: IO ()
main = do
putStrLn "TODO app"
interactWithUser []
putStrLn "Thanks for using this app."
type Item = String
type Items = [Item]
data Command
= Quit
| DisplayItems
| AddItem String
| Done Int
| Help
parseCommand :: String -> Either String Command
parseCommand line = c... | null | https://raw.githubusercontent.com/soupi/rfc/c3b09d42dbe2b00925cd328ef700e2d111b14c63/Todo.hs | haskell | module Todo where
main :: IO ()
main = do
putStrLn "TODO app"
interactWithUser []
putStrLn "Thanks for using this app."
type Item = String
type Items = [Item]
data Command
= Quit
| DisplayItems
| AddItem String
| Done Int
| Help
parseCommand :: String -> Either String Command
parseCommand line = c... | |
e47c30da095d40500c77eb591af96b304cee03ffd057bda87065950c1f5f4eb6 | bmeurer/ocaml-arm | gc.ml | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
, projet ... | null | https://raw.githubusercontent.com/bmeurer/ocaml-arm/43f7689c76a349febe3d06ae7a4fc1d52984fd8b/stdlib/gc.ml | ocaml | *********************************************************************
OCaml
... | , projet Para , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
en Automatique . All rights reserved . This file is distributed
under the terms of the GNU Library General Public License , with
$ Id$
type stat = {
minor_words : fl... |
00e8a6659363b4580c1f74ea38712697c667b214725ab0f5122bc2a52460ba14 | conal/Fran | Main8.hs | module Main where
import qualified Editor8 as Editor
main = Editor.main | null | https://raw.githubusercontent.com/conal/Fran/a113693cfab23f9ac9704cfee9c610c5edc13d9d/demos/CurveEditor/Main8.hs | haskell | module Main where
import qualified Editor8 as Editor
main = Editor.main | |
cd091d3609d5bf37502c47c73d9c9d7cc00f53e9a22ecb45c501639e8fa67412 | w3ntao/programming-in-haskell | Exercise_6_8_4.hs | # OPTIONS_GHC -Wall #
module Exercise_6_8_4 where
euclid :: Int -> Int -> Int
euclid x y = if x == y
then x
else euclid smaller (larger - smaller)
where (smaller, larger) = if x > y
then (y, x)
... | null | https://raw.githubusercontent.com/w3ntao/programming-in-haskell/c2769fa19d8507aad209818c83f67e82c3698f07/Chapter-6/Exercise_6_8_4.hs | haskell | # OPTIONS_GHC -Wall #
module Exercise_6_8_4 where
euclid :: Int -> Int -> Int
euclid x y = if x == y
then x
else euclid smaller (larger - smaller)
where (smaller, larger) = if x > y
then (y, x)
... | |
5aeb94bb33a0bc15f7b80eb0811725a7874b2b92f112e86d1c72f27c169c8799 | untangled-web/untangled | system.clj | (ns app.system
(:require
[untangled.server.core :as core]
[app.api :as api]
[om.next.server :as om]
[taoensso.timbre :as timbre]))
;; IMPORTANT: Remember to load all multi-method namespaces to ensure all of the methods are defined in your parser!
(defn logging-mutate [env k params]
(timbre/info "M... | null | https://raw.githubusercontent.com/untangled-web/untangled/705220539ff00b1e487ae387def11daad8638206/src/server/app/system.clj | clojure | IMPORTANT: Remember to load all multi-method namespaces to ensure all of the methods are defined in your parser!
build the server
where you want to store your override config file
The keyword names of any components you want auto-injected into the parser env (e.g. databases)
Additional components you want added to... | (ns app.system
(:require
[untangled.server.core :as core]
[app.api :as api]
[om.next.server :as om]
[taoensso.timbre :as timbre]))
(defn logging-mutate [env k params]
(timbre/info "Mutation Request: " k)
(api/apimutate env k params))
(defn make-system []
(core/make-untangled-server
:confi... |
2a4a24b02fe0588bf29cea849ad6f0c623c92f691ae4a7f92ea9d209b55836cd | mirage/conan | arithmetic.ml | let invalid_arg fmt = Format.kasprintf invalid_arg fmt
type 'a t =
| Invert of 'a t
| Add of 'a
| Sub of 'a
| Mul of 'a
| Div of 'a
| Mod of 'a
| Bitwise_and of 'a
| Bitwise_xor of 'a
| Bitwise_or of 'a
let rec serialize pp ppf = function
| Invert t ->
Format.fprintf ppf "Conan.Arithmetic.In... | null | https://raw.githubusercontent.com/mirage/conan/fb144c7785ff0aa4ec6d8c87e58ca2a0c2d328db/src/arithmetic.ml | ocaml | let invalid_arg fmt = Format.kasprintf invalid_arg fmt
type 'a t =
| Invert of 'a t
| Add of 'a
| Sub of 'a
| Mul of 'a
| Div of 'a
| Mod of 'a
| Bitwise_and of 'a
| Bitwise_xor of 'a
| Bitwise_or of 'a
let rec serialize pp ppf = function
| Invert t ->
Format.fprintf ppf "Conan.Arithmetic.In... | |
b9bbcbdd5c2ea14267e1a18b048cec7c6927720c246caa23bef3fa95bad6d22d | input-output-hk/plutus-apps | Emulator.hs | module Plutus.ChainIndex.Emulator(
module Export
) where
import Plutus.ChainIndex.ChainIndexError as Export
import Plutus.ChainIndex.ChainIndexLog as Export
import Plutus.ChainIndex.Effects as Export
import Plutus.ChainIndex.Emulator.DiskState as Export hiding (fromTx)
import Plutus.ChainIndex.Emulator.Handler... | null | https://raw.githubusercontent.com/input-output-hk/plutus-apps/d637b1916522e4ec20b719487a8a2e066937aceb/plutus-chain-index-core/src/Plutus/ChainIndex/Emulator.hs | haskell | module Plutus.ChainIndex.Emulator(
module Export
) where
import Plutus.ChainIndex.ChainIndexError as Export
import Plutus.ChainIndex.ChainIndexLog as Export
import Plutus.ChainIndex.Effects as Export
import Plutus.ChainIndex.Emulator.DiskState as Export hiding (fromTx)
import Plutus.ChainIndex.Emulator.Handler... | |
631e980cfaffb2800d111a7034599f3418c1aec3a3413c25392e811ea6e472a8 | rumuki/rumuki-server | Extension.hs | -- | Some tools for handlers
module Handler.Extension
( requireJsonEntity
, parseJsonEntity
, noWhitelist
, whitelist
, fromMaybeM
, emptyResponse
) where
import Data.Aeson as A
import Data.Aeson.Parser as AP
import Data.... | null | https://raw.githubusercontent.com/rumuki/rumuki-server/59798656e9eb440a2344223850dbd1f9f77060ca/src/Handler/Extension.hs | haskell | | Some tools for handlers
| Syntatic sugar, alias for @Just@
| Syntatic sugar, alias for @Nothing@
| Retrieve an entity from the request body.
^ Default values injected into the JSON
^ A whitelist of allowed keys
| Given a JSON @Value@, parse it and try to create the appropiate type that
conforms to @FromJSON... | module Handler.Extension
( requireJsonEntity
, parseJsonEntity
, noWhitelist
, whitelist
, fromMaybeM
, emptyResponse
) where
import Data.Aeson as A
import Data.Aeson.Parser as AP
import Data.Aeson.Types (Pair)
imp... |
e3f4e266447ee89122778d536bcaddf56f75e8496fa2b4c974dcf49609355fb4 | yogthos/memory-hole | views.cljs | (ns memory-hole.views
(:require [reagent.core :as r]
[re-frame.core :refer [subscribe dispatch]]
[memory-hole.bootstrap :as bs]
[memory-hole.routes :refer [context-url href navigate!]]
[memory-hole.pages.common :refer [loading-throbber error-modal]]
[memory-... | null | https://raw.githubusercontent.com/yogthos/memory-hole/925e399b0002d59998d10bd6f54ff3464a4b4ddb/src/cljs/memory_hole/views.cljs | clojure | (ns memory-hole.views
(:require [reagent.core :as r]
[re-frame.core :refer [subscribe dispatch]]
[memory-hole.bootstrap :as bs]
[memory-hole.routes :refer [context-url href navigate!]]
[memory-hole.pages.common :refer [loading-throbber error-modal]]
[memory-... | |
abce382a0014f3780ee4054b1fc3e746cbaecda0d0ddce7d79bd5b2b1552b72b | fossas/fossa-cli | GemfileLockSpec.hs | module Ruby.GemfileLockSpec (
spec,
) where
import Data.Map.Strict qualified as Map
import Data.Text.IO qualified as TIO
import DepTypes
import GraphUtil
import Strategy.Ruby.GemfileLock
import Test.Hspec qualified as T
import Text.Megaparsec
dependencyOne :: Dependency
dependencyOne =
Dependency
{ dependency... | null | https://raw.githubusercontent.com/fossas/fossa-cli/efc29b4f9c874e338f0b5a7d1c5b13cb9543156f/test/Ruby/GemfileLockSpec.hs | haskell | module Ruby.GemfileLockSpec (
spec,
) where
import Data.Map.Strict qualified as Map
import Data.Text.IO qualified as TIO
import DepTypes
import GraphUtil
import Strategy.Ruby.GemfileLock
import Test.Hspec qualified as T
import Text.Megaparsec
dependencyOne :: Dependency
dependencyOne =
Dependency
{ dependency... | |
0176328d8397fbb66220c5201bc2e22becb24df89d953e2f92351a8df373b3af | htmfilho/minimily | user_account.clj | (ns minimily.auth.model.user-account
(:require [clojure.string :as string]
[hugsql.core :as hugsql]
[buddy.hashers :as hashers]
[selmer.parser :as selmer]
[minimily.utils.database :as db]
[minimily.utils.messenge... | null | https://raw.githubusercontent.com/htmfilho/minimily/b317b6b67bc79773163f1a6f7c3b46db795ef979/src/minimily/auth/model/user_account.clj | clojure | (ns minimily.auth.model.user-account
(:require [clojure.string :as string]
[hugsql.core :as hugsql]
[buddy.hashers :as hashers]
[selmer.parser :as selmer]
[minimily.utils.database :as db]
[minimily.utils.messenge... | |
be4382351497ed9874e89c7cccd6014c3321a4219896d128eeb17c35446f70fd | inaka/shotgun | http_sse_handler.erl | -module(http_sse_handler).
-behavior(lasse_handler).
-dialyzer(no_undefined_callbacks).
-export([
init/3,
handle_notify/2,
handle_info/2,
handle_error/3,
terminate/3
]).
init(_InitArgs, _LastEventId, Req) ->
shotgun_test_utils:auto_send(ping),
CountBin = cowbo... | null | https://raw.githubusercontent.com/inaka/shotgun/2fa6c86e7cc7c0d437c624aa72956a8f6e82f360/test/http_server/http_sse_handler.erl | erlang | -module(http_sse_handler).
-behavior(lasse_handler).
-dialyzer(no_undefined_callbacks).
-export([
init/3,
handle_notify/2,
handle_info/2,
handle_error/3,
terminate/3
]).
init(_InitArgs, _LastEventId, Req) ->
shotgun_test_utils:auto_send(ping),
CountBin = cowbo... | |
cc5c14a179a5e084fb194a1e66ae142c48f028a395240ddce78b9c2078b3d123 | lsrcz/mini-prover | Main.hs | {-# LANGUAGE DeriveDataTypeable #-}
# OPTIONS_GHC -fno - cse #
module Main where
import MiniProver.TopLevel.TopLoop
import MiniProver.Utils.ContextForTesting
import System.IO
import System.Console.CmdArgs
newtype VerboseLevel = VerboseLevel {verbose :: Int}
deriving (Show, Data, Typeable)
defaultV... | null | https://raw.githubusercontent.com/lsrcz/mini-prover/0aa4cdf3b495ddf6707f27dcbee810d519b43177/app/Main.hs | haskell | # LANGUAGE DeriveDataTypeable # | # OPTIONS_GHC -fno - cse #
module Main where
import MiniProver.TopLevel.TopLoop
import MiniProver.Utils.ContextForTesting
import System.IO
import System.Console.CmdArgs
newtype VerboseLevel = VerboseLevel {verbose :: Int}
deriving (Show, Data, Typeable)
defaultVerbose = VerboseLevel {verbose=0 &= ... |
db14234be9c5a04b5a1eeff8270fd3a8fcd43e63cc11309a3c93bdf5f93c5e2b | quchen/stgi | ToStg.hs | # LANGUAGE OverloadedLists #
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
| Convert Haskell values to STG values .
module Stg.Marshal.ToStg (
ToStg(..),
) where
import Control.Applicative
import Control.Monad.Trans.Class
import Control.Monad.Trans.Writ... | null | https://raw.githubusercontent.com/quchen/stgi/dacd45cb0247f73889713dc92a911aaa835afd19/src/Stg/Marshal/ToStg.hs | haskell | # LANGUAGE OverloadedStrings #
# LANGUAGE QuasiQuotes #
$setup
>>> :set -XOverloadedStrings
>>> import Stg.Language.Prettyprint
| Prefix for all generated variables
(up to forcing the generated thunks).
This class contains a helper function, 'toStgWithGlobals', this is hidden
from the outside. If you wan... | # LANGUAGE OverloadedLists #
| Convert Haskell values to STG values .
module Stg.Marshal.ToStg (
ToStg(..),
) where
import Control.Applicative
import Control.Monad.Trans.Class
import Control.Monad.Trans.Writer
import Data.List.NonEmpty (NonEmpty (..))
import ... |
f28e422e4a29cc137c81ac9f5b69eff4c0ee9c71b11d8f72261690cfebc97668 | pepeiborra/arrowp | Notation.hs | # LANGUAGE MultiParamTypeClasses #
# LANGUAGE OverloadedLists #
{-# LANGUAGE ScopedTypeVariables #-}
# OPTIONS_GHC -fno - warn - name - shadowing #
module Control.Arrow.Notation
( translateModule
, translateExp
) where
import Data.Generics.Uniplate.Data
import Language.Haskell.Exts ... | null | https://raw.githubusercontent.com/pepeiborra/arrowp/34ce776d4116468c250f20b85f7967f1856384e5/src/Control/Arrow/Notation.hs | haskell | # LANGUAGE ScopedTypeVariables # | # LANGUAGE MultiParamTypeClasses #
# LANGUAGE OverloadedLists #
# OPTIONS_GHC -fno - warn - name - shadowing #
module Control.Arrow.Notation
( translateModule
, translateExp
) where
import Data.Generics.Uniplate.Data
import Language.Haskell.Exts as H hiding (Tuple)
import ... |
3ee2c25d63c7afa835765d1cf70fae66043af358102452c49314890fc976ae34 | AbstractMachinesLab/caramel | Loc_tree.ml | (**************************************************************************)
(* *)
(* OCamlFormat *)
(* *)
... | null | https://raw.githubusercontent.com/AbstractMachinesLab/caramel/7d4e505d6032e22a630d2e3bd7085b77d0efbb0c/vendor/ocamlformat-0.17.0/lib/Loc_tree.ml | ocaml | ************************************************************************
OCamlFormat
... | Copyright ( c ) Facebook , Inc. and its affiliates .
This source code is licensed under the MIT license found in
open Migrate_ast
open Parsetree
include Non_overlapping_interval_tree.Make (Location)
let fold src =
object
inherit [Location.t list] Ppxlib.Ast_traverse.fold a... |
a23435605729a9dba02c131908f623e5fd734b34a45caa59b9601625c93ead75 | nuprl/gradual-typing-performance | array-utils.rkt | #lang racket/base
(require
(only-in racket/performance-hint begin-encourage-inline)
(for-syntax racket/base)
(only-in racket/fixnum fx* fx+)
)
(provide
array-shape-size
check-array-shape
check-array-shape-size
make-thread-local-indexes
next-indexes!
unsafe-array-index->value-index... | null | https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/experimental/postmortem/experiments/adaptor/many-adaptor/synth/foobar/array-utils.rkt | racket | (: array-shape-size (Indexes -> Integer))
(: check-array-shape-size (Symbol Indexes -> Integer))
(: unsafe-array-index->value-index (Indexes Indexes -> Integer))
begin-encourage-inline
(: raise-array-index-error (Symbol Indexes In-Indexes -> Nothing))
(: array-index->value-index (Symbol Indexes In-Indexes -> Integer))... | #lang racket/base
(require
(only-in racket/performance-hint begin-encourage-inline)
(for-syntax racket/base)
(only-in racket/fixnum fx* fx+)
)
(provide
array-shape-size
check-array-shape
check-array-shape-size
make-thread-local-indexes
next-indexes!
unsafe-array-index->value-index... |
b840e4c83f672fb77d03e0be07658508047dcb09158def3deef4cd11d0fa4a2e | haskell-tools/haskell-tools | InExportList.hs | module Refactor.InlineBinding.InExportList (a) where
b = a
a = () | null | https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/builtin-refactorings/examples/Refactor/InlineBinding/InExportList.hs | haskell | module Refactor.InlineBinding.InExportList (a) where
b = a
a = () | |
0e0336a338db83dc6b7d7da452c1f50d1ee1fd3ae6e816b533cdb4f8c7b4dbee | appleshan/cl-http | cl-http-70-144.lisp | -*- Mode : LISP ; Syntax : Common - Lisp ; Package : USER ; Base : 10 ; Patch - File : t -*-
Patch file for CL - HTTP version 70.144
;;; Reason: DEFINE-CONDITION HTTP:BAD-SYNTAX-PROVIDED: all close connection when bad syntax encountered.
Written by JCMa , 8/20/01 21:03:04
while running on FUJI - VLM from FUJI:... | null | https://raw.githubusercontent.com/appleshan/cl-http/a7ec6bf51e260e9bb69d8e180a103daf49aa0ac2/lispm/server/patch/cl-http-70/cl-http-70-144.lisp | lisp | Syntax : Common - Lisp ; Package : USER ; Base : 10 ; Patch - File : t -*-
Reason: DEFINE-CONDITION HTTP:BAD-SYNTAX-PROVIDED: all close connection when bad syntax encountered.
DOMAIN - FIXES.LISP.33 ) ,
MAILBOX - FORMAT.LISP.24 ) ,
MAILER - FIXES.LISP.15 ) ,
Patch TCP hang on close when client drops connection. (fr... | Patch file for CL - HTTP version 70.144
Written by JCMa , 8/20/01 21:03:04
while running on FUJI - VLM from FUJI:/usr / lib / symbolics / ComLink-39 - 8 - F - MIT-8 - 5.vlod
with Open Genera 2.0 , Genera 8.5 , Lock Simple 437.0 , Version Control 405.0 ,
Compare Merge 404.0 , VC Documentation 401.0 ,
Logical... |
65ccc7d050bba06cc8cb2e0118e9971fe47861dd44c0016e25b52e7d327a319c | DavidAlphaFox/RabbitMQ | cowboy_dispatcher.erl | Copyright ( c ) 2011 , < >
Copyright ( c ) 2011 , < >
%%
%% Permission to use, copy, modify, and/or distribute this software for any
%% purpose with or without fee is hereby granted, provided that the above
%% copyright notice and this permission notice appear in all copies.
%%
THE SOFTWARE IS PROVIDED " AS... | null | https://raw.githubusercontent.com/DavidAlphaFox/RabbitMQ/0a64e6f0464a9a4ce85c6baa52fb1c584689f49a/plugins-src/cowboy-wrapper/cowboy-git/src/cowboy_dispatcher.erl | erlang |
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVE... | Copyright ( c ) 2011 , < >
Copyright ( c ) 2011 , < >
THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL WARRANTIES
ANY SPECIAL , DIRECT , INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE , DATA OR PROFITS , WHETHER IN AN
-module(cowboy_dispatcher).
... |
e3225886d0fe7b841b8ed372f3e6676996690a2721d7815b5e99360fdfca563f | skogsbaer/HTF | TestInterface.hs | {-# LANGUAGE DeriveDataTypeable #-}
# LANGUAGE FlexibleContexts #
# LANGUAGE ScopedTypeVariables #
--
Copyright ( c ) 2009 - 2022 -
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Founda... | null | https://raw.githubusercontent.com/skogsbaer/HTF/a42450c89b7a3a3a50e381f36de3ac28faab2a16/Test/Framework/TestInterface.hs | haskell | # LANGUAGE DeriveDataTypeable #
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A... | # LANGUAGE FlexibleContexts #
# LANGUAGE ScopedTypeVariables #
Copyright ( c ) 2009 - 2022 -
License as published by the Free Software Foundation ; either
version 2.1 of the License , or ( at your option ) any later version .
You should have received a copy of the GNU Lesser General Public
Foundation , ... |
61c4f3a0d054e60216e9642e469f936aedd4c3bb188899a20a7017392cf3c533 | pascal-knodel/haskell-craft | E'11'13.hs | --
--
--
------------------
Exercise 11.13 .
------------------
--
--
--
module E'11'13 where
mapFuns' :: [a -> b] -> a -> [b]
mapFuns' functionList input
= map ($ input) functionList -- Note: Because "($)" is not associative, it is not possible
-- to write "(input $)" i... | null | https://raw.githubusercontent.com/pascal-knodel/haskell-craft/c03d6eb857abd8b4785b6de075b094ec3653c968/Chapter%C2%A011/E'11'13.hs | haskell |
----------------
----------------
Note: Because "($)" is not associative, it is not possible
to write "(input $)" instead of "($ input)".
($) is right associative.
GHCi>
mapFuns' [ (+1) , (+2) ] 0
Other solution for "mapFuns": | Exercise 11.13 .
module E'11'13 where
mapFuns' :: [a -> b] -> a -> [b]
mapFuns' functionList input
[ 1 , 2 ]
mapFuns'' :: [a -> b] -> a -> [b]
mapFuns'' functionList input
= ($ input) `map` functionList
|
4a4bca00aa2f4b94a9630d5c3f5a902ecc7f9bc293de79967a9cd7a67be7436c | esl/escalus | escalus_auth.erl | %%%===================================================================
( C ) 2012 , Erlang Solutions Ltd.
%%% @doc Module supporting various authentication mechanisms
%%% @end
%%%===================================================================
-module(escalus_auth).
%% Public APi
-export([auth_plain/2,
... | null | https://raw.githubusercontent.com/esl/escalus/ac5e813ac96c0cdb5d5ac738d63d992f5f948585/src/escalus_auth.erl | erlang | ===================================================================
@doc Module supporting various authentication mechanisms
@end
===================================================================
Public APi
Useful helpers for writing own mechanisms
Some shorthands
------------------------------------------------... | ( C ) 2012 , Erlang Solutions Ltd.
-module(escalus_auth).
-export([auth_plain/2,
auth_digest_md5/2,
auth_sasl_anon/2,
auth_sasl_external/2,
auth_sasl_scram_sha1/2,
auth_sasl_scram_sha224/2,
auth_sasl_scram_sha256/2,
auth_sasl_scram_sha384/2,
au... |
1f1e1d42d50f11653fd07d4254892d335e99b7a39fb3b8939bed44354a8fd9d2 | fortytools/holumbus | Crunch.hs | -- ----------------------------------------------------------------------------
|
Module : Holumbus . Data . Crunch
Copyright : Copyright ( C ) 2008
License : MIT
Maintainer : ( )
Stability : experimental
Portability : portable
Version : 0.1
This module p... | null | https://raw.githubusercontent.com/fortytools/holumbus/4b2f7b832feab2715a4d48be0b07dca018eaa8e8/searchengine/source/Holumbus/Data/Crunch.hs | haskell | ----------------------------------------------------------------------------
----------------------------------------------------------------------------
# OPTIONS -fno-warn-type-defaults #
* Compression
* Decompression
| Increase performance by avoiding the calculation of maximum values.
| Increase performance b... |
|
Module : Holumbus . Data . Crunch
Copyright : Copyright ( C ) 2008
License : MIT
Maintainer : ( )
Stability : experimental
Portability : portable
Version : 0.1
This module provides compression for streams of 32 - bit words . Because of
some internal... |
1b6888e0c59424f278e3fdf4357047782e0187f34fa3dbec0d592492b1bf3faf | csabahruska/jhc-components | Exit.hs | # OPTIONS_JHC -fffi #
module System.Exit (
ExitCode(ExitSuccess,ExitFailure),
exitWith, exitFailure, exitSuccess
) where
import Jhc.IO(exitFailure)
data ExitCode = ExitSuccess | ExitFailure !Int
deriving (Eq, Ord, Read, Show)
-- exitFailure :: IO a
exitSuccess :: IO a
exitSuccess = exitWith E... | null | https://raw.githubusercontent.com/csabahruska/jhc-components/a7dace481d017f5a83fbfc062bdd2d099133adf1/lib/haskell-extras/System/Exit.hs | haskell | exitFailure :: IO a | # OPTIONS_JHC -fffi #
module System.Exit (
ExitCode(ExitSuccess,ExitFailure),
exitWith, exitFailure, exitSuccess
) where
import Jhc.IO(exitFailure)
data ExitCode = ExitSuccess | ExitFailure !Int
deriving (Eq, Ord, Read, Show)
exitSuccess :: IO a
exitSuccess = exitWith ExitSuccess
exitWith ... |
a5cb7149d717258f66ce46bf920de915336867e00fe2b78a1b9666c95e196871 | Liqwid-Labs/plutus-extra | Natural.hs | # LANGUAGE Trustworthy #
|
Module : PlutusTx . AssocMap . Natural
Copyright : ( C ) MLabs 2021
License : Apache 2.0
Maintainer : < >
Portability : GHC only
Stability : Experimental
AssocMap functions that works with the ' Natural ' type .
Module: PlutusTx.AssocMap.Natural
Copyright: (C) M... | null | https://raw.githubusercontent.com/Liqwid-Labs/plutus-extra/c36555e35289c7aaabf62af8dccac65d9ab52c11/plutus-collection/src/PlutusTx/AssocMap/Natural.hs | haskell | # LANGUAGE Trustworthy #
|
Module : PlutusTx . AssocMap . Natural
Copyright : ( C ) MLabs 2021
License : Apache 2.0
Maintainer : < >
Portability : GHC only
Stability : Experimental
AssocMap functions that works with the ' Natural ' type .
Module: PlutusTx.AssocMap.Natural
Copyright: (C) M... | |
e888055942c68e3a475115562277ead4d2c0351f675d082932a0aa73b8689090 | tonyg/kali-scheme | eval.scm | Copyright ( c ) 1993 , 1994 by and .
Copyright ( c ) 1996 by NEC Research Institute , Inc. See file COPYING .
; This file contains things that tie together the compiler and the
; run-time system.
EVAL
(define (eval form package)
(compile-and-run (list form) package #f #f))
; LOAD-INTO - load file i... | null | https://raw.githubusercontent.com/tonyg/kali-scheme/79bf76b4964729b63fce99c4d2149b32cb067ac0/scheme/rts/eval.scm | scheme | This file contains things that tie together the compiler and the
run-time system.
LOAD-INTO - load file into package.
Evaluate forms as if they came from the given file.
LOAD
----------------
just to make the output nice
READ-FORMS prints the filename | Copyright ( c ) 1993 , 1994 by and .
Copyright ( c ) 1996 by NEC Research Institute , Inc. See file COPYING .
EVAL
(define (eval form package)
(compile-and-run (list form) package #f #f))
(define (load-into filename package)
(really-load-into filename package #f))
(define (eval-from-file for... |
ddb11d88a24049b3b52a824d8daf5f3a080dd0ebf1b62bbfcc3c5469f8f86a05 | ermine/sulci | find_url.ml |
* ( c ) 2005 - 2010
*
* Searches potentional url in text and replace it into hyperlink
*
* TODO : validate query
* (c) 2005-2010 Anastasia Gornostaeva
*
* Searches potentional url in text and replace it into hyperlink
*
* TODO: validate query
*)
let regexp alpha = ['a'-'z' 'A'-'Z']
let re... | null | https://raw.githubusercontent.com/ermine/sulci/3ee4bd609b01e2093a6d37bf74579728d0a93b70/src/find_url.ml | ocaml |
* ( c ) 2005 - 2010
*
* Searches potentional url in text and replace it into hyperlink
*
* TODO : validate query
* (c) 2005-2010 Anastasia Gornostaeva
*
* Searches potentional url in text and replace it into hyperlink
*
* TODO: validate query
*)
let regexp alpha = ['a'-'z' 'A'-'Z']
let re... | |
535f65d3c89fb2f315f645a58684a18a2a33ad9befa044a3c49cf9131fec83e2 | GaloisInc/golang | Rec.hs | |
Module : Language . Go . Rec
Description : Golang recursion schemes
Maintainer :
Stability : experimental
Recursion scheme combinators for Go abstract syntax .
Module : Language.Go.Rec
Description : Golang recursion schemes
Maintainer :
Stability : experimental
Recursion scheme comb... | null | https://raw.githubusercontent.com/GaloisInc/golang/e665586885af8ec93a3d7767c82c0aeaca6645df/src/Language/Go/Rec.hs | haskell | # LANGUAGE RankNTypes #
--------------------------------------------------------------------
Utility functions | |
Module : Language . Go . Rec
Description : Golang recursion schemes
Maintainer :
Stability : experimental
Recursion scheme combinators for Go abstract syntax .
Module : Language.Go.Rec
Description : Golang recursion schemes
Maintainer :
Stability : experimental
Recursion scheme comb... |
3b51e0aec4ac649a860546ee83b6f4bfc8a442bf73f2e8d05b76c95c124b6294 | TheAlgorithms/OCaml | quicksort.ml | (* Quicksort
* *)
partitions list into two lists :
* elements that are less than or equal to the pivot , and
* elements that are greater than the pivot
* elements that are less than or equal to the pivot, and
* elements that are greater than the pivot *)
let rec partition : 'a * 'a list * 'a list * 'a list... | null | https://raw.githubusercontent.com/TheAlgorithms/OCaml/e932c9b03857316092f9db897500d0cc23736980/Sorts/quicksort.ml | ocaml | Quicksort
*
for simplicity, always choosing the leftmost element as pivot
testing the quicksort function |
partitions list into two lists :
* elements that are less than or equal to the pivot , and
* elements that are greater than the pivot
* elements that are less than or equal to the pivot, and
* elements that are greater than the pivot *)
let rec partition : 'a * 'a list * 'a list * 'a list -> 'a list * 'a lis... |
519f999deb1d67092c34cc99b0bbb345e64e4d23b89741e92fbd7c6102c995a9 | g-andrade/quack | quack_sup.erl | -module(quack_sup).
-behaviour(supervisor).
%% API
-export([start_link/0]).
%% Supervisor callbacks
-export([init/1]).
%% Helper macro for declaring children of supervisor
-define(CHILD(I, Type), {I, {I, start_link, []}, permanent, 5000, Type, [I]}).
%% =============================================================... | null | https://raw.githubusercontent.com/g-andrade/quack/b6decb23674dd97f6918d8ac637ede2ef7bcc507/src/quack_sup.erl | erlang | API
Supervisor callbacks
Helper macro for declaring children of supervisor
===================================================================
API functions
===================================================================
===================================================================
Supervisor callback... | -module(quack_sup).
-behaviour(supervisor).
-export([start_link/0]).
-export([init/1]).
-define(CHILD(I, Type), {I, {I, start_link, []}, permanent, 5000, Type, [I]}).
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
init([]) ->
{ok, { {one_for_one, 5, 10}, [?CHILD(quic_connection_su... |
537f242394468777ee70e20d5c2505fc38e90f821b43f4e5b730e38d12b13647 | rowangithub/DOrder | bind_expands_vars2.ml | let rec loop mc_i (n1:int) n2 cp1_off maxdata =
if mc_i < n2 then
(assert (cp1_off+mc_i < maxdata * 2);
loop (mc_i+1) n1 n2 cp1_off maxdata)
else ()
let main n1 n2 cp1_off maxdata =
if (maxdata > 0 && n1 <= maxdata * 2 && cp1_off <= n1 &&
n2 <= maxdata*2 - n1) then
loop 0 n1 n2 cp1_off maxdata ... | null | https://raw.githubusercontent.com/rowangithub/DOrder/e0d5efeb8853d2a51cc4796d7db0f8be3185d7df/tests/folprograms/invgen/bind_expands_vars2.ml | ocaml | let rec loop mc_i (n1:int) n2 cp1_off maxdata =
if mc_i < n2 then
(assert (cp1_off+mc_i < maxdata * 2);
loop (mc_i+1) n1 n2 cp1_off maxdata)
else ()
let main n1 n2 cp1_off maxdata =
if (maxdata > 0 && n1 <= maxdata * 2 && cp1_off <= n1 &&
n2 <= maxdata*2 - n1) then
loop 0 n1 n2 cp1_off maxdata ... | |
cba1943b4051b1ba10ad211751e69d5edd2cbfb228d5481311b19f3f57d67397 | alexozer/flitter | big.ml | open Core_kernel
open Notty
let big_font_map =
let font = [
"00000111112222233333444445555566666777778888899999 !!::..";
".^^. .| .^^. .^^. . | |^^^ .^^ ^^^| .^^. .^^. | ";
"| | | .^ .^ |..| |.. |.. ][ ^..^ ^..| | ^ ";
"| | | .^ . | | | | | | | | | ^ ... | null | https://raw.githubusercontent.com/alexozer/flitter/666c5483bc93efa6d01e0b7a927461269f8e14de/src/big.ml | ocaml | open Core_kernel
open Notty
let big_font_map =
let font = [
"00000111112222233333444445555566666777778888899999 !!::..";
".^^. .| .^^. .^^. . | |^^^ .^^ ^^^| .^^. .^^. | ";
"| | | .^ .^ |..| |.. |.. ][ ^..^ ^..| | ^ ";
"| | | .^ . | | | | | | | | | ^ ... | |
8457bc9481b001171dfb2e12b1a4bed8f7c8d27a62ae9cc34b57d3e81d1b3efb | artyom-poptsov/guile-deck | matrix-event.scm | (use-modules (srfi srfi-64)
(srfi srfi-26)
(oop goops)
(deck core types matrix-event)
(deck core types matrix-id))
(test-begin "matrix-event")
(test-assert "matrix-event?"
(and (matrix-event? (make <matrix-event>))
(not (matrix-event? "not an event"))))
... | null | https://raw.githubusercontent.com/artyom-poptsov/guile-deck/efbeeaf6a5fe4063cf8885147433837ebca65f66/tests/matrix-event.scm | scheme | (use-modules (srfi srfi-64)
(srfi srfi-26)
(oop goops)
(deck core types matrix-event)
(deck core types matrix-id))
(test-begin "matrix-event")
(test-assert "matrix-event?"
(and (matrix-event? (make <matrix-event>))
(not (matrix-event? "not an event"))))
... | |
b407432b6f701b3693d8814fc2833f4c1a150f61f04cc92bc4f8ad1c3d4ac3ad | bufferswap/ViralityEngine | vec4.lisp | (in-package #:vorigin.test)
(define-test v4/copy
(let ((v (v4:vec 1f0 2f0 3f0 4f0))
(o (v4:zero)))
(is v4:= (v4:copy! o v) v)
(is v4:= o v)
(is v4:= (v4:copy v) v)
(isnt eq v (v4:copy v))))
(define-test v4/sign
(let ((o (v4:zero)))
(is v4:= (v4:sign (v4:zero)) (v4:zero))
(is v4:= (... | null | https://raw.githubusercontent.com/bufferswap/ViralityEngine/df7bb4dffaecdcb6fdcbfa618031a5e1f85f4002/support/vorigin/test/vec4.lisp | lisp | (in-package #:vorigin.test)
(define-test v4/copy
(let ((v (v4:vec 1f0 2f0 3f0 4f0))
(o (v4:zero)))
(is v4:= (v4:copy! o v) v)
(is v4:= o v)
(is v4:= (v4:copy v) v)
(isnt eq v (v4:copy v))))
(define-test v4/sign
(let ((o (v4:zero)))
(is v4:= (v4:sign (v4:zero)) (v4:zero))
(is v4:= (... | |
35ee1d15b6ef10f36430c5009502f366808411906c480849ad2d33dec18a8397 | parapluu/Concuerror | load_before_start.erl | -module(load_before_start).
-export([scenarios/0]).
-export([test/0]).
scenarios() ->
[{test, inf, dpor}].
test() ->
spawn(ets,new,[table,[named_table]]),
spawn(ets,lookup,[table,key]).
| null | https://raw.githubusercontent.com/parapluu/Concuerror/152a5ccee0b6e97d8c3329c2167166435329d261/tests/suites/basic_tests/src/load_before_start.erl | erlang | -module(load_before_start).
-export([scenarios/0]).
-export([test/0]).
scenarios() ->
[{test, inf, dpor}].
test() ->
spawn(ets,new,[table,[named_table]]),
spawn(ets,lookup,[table,key]).
| |
f364fb7579194636a6734fac312cec5d39c0d19a873d6abd25e1c2d990671d84 | vernemq/vernemq | vmq_diversity_cockroachdb.erl | Copyright 2019 Octavo Labs AG Zurich Switzerland ( )
%%
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... | null | https://raw.githubusercontent.com/vernemq/vernemq/234d253250cb5371b97ebb588622076fdabc6a5f/apps/vmq_diversity/src/vmq_diversity_cockroachdb.erl | erlang |
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing perm... | Copyright 2019 Octavo Labs AG Zurich Switzerland ( )
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(vmq_diversity_cockroachdb).
-include_lib("luerl/include/luerl.hrl").
-export([
install/1,
squery/2,
... |
62283f7803c7a7f6ed4ed76e868cd1b1d56f992ef1e62ced9ca6cb8e57fd7dad | zshipko/libirmin | commit.ml | module Make (I : Cstubs_inverted.INTERNAL) = struct
open Util.Make (I)
let () =
fn "commit_info"
(repo @-> commit @-> returning info)
(fun (type repo) repo commit ->
with_repo' repo info
(fun (module Store : Irmin.Generic_key.S with type repo = repo) _ ->
let commit = ... | null | https://raw.githubusercontent.com/zshipko/libirmin/958262695be6a7f88dec3de6027a17770a3d74b0/src/commit.ml | ocaml | module Make (I : Cstubs_inverted.INTERNAL) = struct
open Util.Make (I)
let () =
fn "commit_info"
(repo @-> commit @-> returning info)
(fun (type repo) repo commit ->
with_repo' repo info
(fun (module Store : Irmin.Generic_key.S with type repo = repo) _ ->
let commit = ... | |
9cedd291ccb92808122ee1337d3f38b39f201c4b9a9788bf051deece0a7ea8de | binaryage/cljs-oops | helpers.cljs | (ns oops.helpers
"Various helpers to be available to our code at runtime."
(:require-macros [oops.helpers :refer [unchecked-aget]]
[oops.debug :refer [debug-assert]]))
(defn is-prototype? [o]
(identical? (.-prototype (.-constructor o)) o))
(defn get-constructor [o]
(unchecked-aget o "constr... | null | https://raw.githubusercontent.com/binaryage/cljs-oops/a2b48d59047c28decb0d6334e2debbf21848e29c/src/lib/oops/helpers.cljs | clojure | [14:05:00] dnolen: this property is unlikely to change - still it's probably not something anything anyone should use w/o a really good reason
see
see
note: items is either a seq or nil
nice to have for cljs-devtools and debug printing
this gets a bit more tricky...
only data descriptors have writable flag pr... | (ns oops.helpers
"Various helpers to be available to our code at runtime."
(:require-macros [oops.helpers :refer [unchecked-aget]]
[oops.debug :refer [debug-assert]]))
(defn is-prototype? [o]
(identical? (.-prototype (.-constructor o)) o))
(defn get-constructor [o]
(unchecked-aget o "constr... |
a444ca813fb63e0ba4138392468180524a2528340ec38ca248511f096762f584 | ocaml-multicore/kcas | tx_linked_queue.ml | module Loc = Kcas.Loc
module Tx = Kcas.Tx
type 'a t = { front : 'a node Loc.t; back : 'a node Loc.t }
and 'a node = Nil | Node of 'a node Loc.t * 'a
let create () = { front = Loc.make Nil; back = Loc.make Nil }
let is_empty queue = queue.front |> Tx.get_as @@ ( == ) Nil
let push_front queue value =
Tx.(
delay ... | null | https://raw.githubusercontent.com/ocaml-multicore/kcas/ecf1658e905cacae567ecd03a79011a32a9932e6/test/tx_linked_queue.ml | ocaml | module Loc = Kcas.Loc
module Tx = Kcas.Tx
type 'a t = { front : 'a node Loc.t; back : 'a node Loc.t }
and 'a node = Nil | Node of 'a node Loc.t * 'a
let create () = { front = Loc.make Nil; back = Loc.make Nil }
let is_empty queue = queue.front |> Tx.get_as @@ ( == ) Nil
let push_front queue value =
Tx.(
delay ... | |
cb7e451823f64fce226a5d81cc614d8d8c89f5d08a5fb2eb91cce78919ffccc0 | awslabs/s2n-bignum | bignum_mod_n521_9_alt.ml |
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved .
* SPDX - License - Identifier : Apache-2.0 OR ISC
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0 OR ISC
*)
(* =================================================================... | null | https://raw.githubusercontent.com/awslabs/s2n-bignum/824c15f908d7a343af1b2f378cfedd36e880bdde/x86/proofs/bignum_mod_n521_9_alt.ml | ocaml | =========================================================================
=========================================================================
*** print_literal_from_elf "x86/p521/bignum_mod_n521_9_alt.o";;
***
OR (% rax) (% rcx)
XOR (% r10) (% r10)
ADD (% r9) (% rax)
ADC (% r10) (% rdx)
XOR (% r11) ... |
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved .
* SPDX - License - Identifier : Apache-2.0 OR ISC
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0 OR ISC
*)
Reduction modulo n_521 , the order of the NIST curve ... |
9d7b336f881ec71b286521090b19518b1942f367a18b2b27a846373e40bd617e | eponai/sulolive | checkout.cljc | (ns eponai.web.ui.checkout
(:require
[om.next :as om :refer [defui]]
[eponai.common.ui.router :as router]
[eponai.common.ui.common :as common]
[eponai.common.ui.dom :as dom]
[taoensso.timbre :refer [debug]]
[eponai.common.ui.elements.callout :as callout]
[eponai.common.ui.elements.menu :as... | null | https://raw.githubusercontent.com/eponai/sulolive/7a70701bbd3df6bbb92682679dcedb53f8822c18/src/eponai/web/ui/checkout.cljc | clojure | Check response for creating a new card on the customer
(this will only happen if the user added a new card when checking out)
Response success if the card is valid and added to the customer's list of cards
If we had a pending payment already, that means we've already added a new card and tried
to charge it by plac... | (ns eponai.web.ui.checkout
(:require
[om.next :as om :refer [defui]]
[eponai.common.ui.router :as router]
[eponai.common.ui.common :as common]
[eponai.common.ui.dom :as dom]
[taoensso.timbre :refer [debug]]
[eponai.common.ui.elements.callout :as callout]
[eponai.common.ui.elements.menu :as... |
981f08d5d1f5bb92941d26b7cc1a5cdcaec69b43c0d2b88c435ea91231b481bd | hammerlab/sosa | list_of.mli | (** A functor to create strings that are lists of characters.*)
module Make (Char : Api.BASIC_CHARACTER) :
Api.BASIC_STRING with type character = Char.t
| null | https://raw.githubusercontent.com/hammerlab/sosa/7a043a10a8dd065c9d1211209ecf57eebd0f8b09/src/lib/list_of.mli | ocaml | * A functor to create strings that are lists of characters. |
module Make (Char : Api.BASIC_CHARACTER) :
Api.BASIC_STRING with type character = Char.t
|
393c4befd27ea5cfa5ec56ef7153ec050881ca3621dfafbef8a13d333a8a78c0 | rohitjha/ProjectEuler | PE005.hs |
Author :
File : PE005.hs
July 7 , 2013
Problem 5 :
2520 is the smallest number that can be divided by each of the numbers from
1 to 10 without any remainder .
What is the smallest positive number that is evenly divisible by all of the
numbers from 1 to 20 ?
Author: Rohit Jha
File: PE005.hs
July... | null | https://raw.githubusercontent.com/rohitjha/ProjectEuler/2f0a46bb1547b06a373c30966bba7a001b932bf4/Haskell/PE005.hs | haskell |
Author :
File : PE005.hs
July 7 , 2013
Problem 5 :
2520 is the smallest number that can be divided by each of the numbers from
1 to 10 without any remainder .
What is the smallest positive number that is evenly divisible by all of the
numbers from 1 to 20 ?
Author: Rohit Jha
File: PE005.hs
July... | |
68dc99ca04a950e05fb4d2db16cd81010caaaec956320de417e2aaef5c6828db | drsk0/fasths | Encoder.hs | -- |
-- Module : Codec.Fast.Parser
Copyright : 2011
-- License : BSD3
--
Maintainer :
-- Stability : experimental
-- Portability : unknown
--
# LANGUAGE TypeSynonymInstances , FlexibleContexts , FlexibleInstances #
module Codec.Fast.Encoder
(
_initEnv,
_segment',
)
where
import Cod... | null | https://raw.githubusercontent.com/drsk0/fasths/06b144bddb38c805ef9c5abf21dcad8b4adeb357/src/Codec/Fast/Encoder.hs | haskell | |
Module : Codec.Fast.Parser
License : BSD3
Stability : experimental
Portability : unknown
| The environment of the encoder.
|All known templates.
| Createst the initial environment based on the templates and a function that maps templates to identifiers.
| Encodes the presence map.
| Maps a... | Copyright : 2011
Maintainer :
# LANGUAGE TypeSynonymInstances , FlexibleContexts , FlexibleInstances #
module Codec.Fast.Encoder
(
_initEnv,
_segment',
)
where
import Codec.Fast.Data
import qualified Data.Map as M
import Data.Word
import Data.Int
import Data.Monoid
import Control.Monad.Reader
impo... |
027a515d144ce700998913eba2e616ea910396c2196f3ed1f53ad83db3bab0fe | tari3x/csec-modex | pitransl.mli | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
* Cryptographic protocol verifier *
* *
... | null | https://raw.githubusercontent.com/tari3x/csec-modex/5ab2aa18ef308b4d18ac479e5ab14476328a6a50/deps/proverif1.84/src/pitransl.mli | ocaml | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
* Cryptographic protocol verifier *
* *
... | |
323e6901b653867d256c9b6a868e15767fac1a5232d9f76f3bb9279113d9edcc | stassats/lisp-bots | coloring-css.lisp | coloring-css.lisp
(in-package :colorize)
(defparameter *coloring-css*
background - color : transparent ; border : 0px ; margin : 0px ; }
background - color : transparent ; text - decoration : none ; border : 0px ; margin : 0px ; }
background - color : transparent ; text - decoration : none ; border : 0px ; ma... | null | https://raw.githubusercontent.com/stassats/lisp-bots/09bfce724afd20c91a08acde8816be6faf5f54b2/coloring-css.lisp | lisp | border : 0px ; margin : 0px ; }
text - decoration : none ; border : 0px ; margin : 0px ; }
text - decoration : none ; border : 0px ; margin : 0px ; }
text - decoration : none ; border : 0px ; margin : 0px ; }
text - decoration : none ; border : 0px ; margin : 0px ; }
text - decoration : underline ; border : 0px ;... | coloring-css.lisp
(in-package :colorize)
(defparameter *coloring-css*
")
(defvar *css-background-class* "")
(defun for-css (thing)
(if (symbolp thing) (string-downcase (symbol-name thing))
thing))
(defun make-background-css (color &key (class *css-background-class*) (extra nil))
class color
... |
63e70fbfd5a3aa3b0b6f7a55cf475a37fb6c470f9bcc722a4194b89174f3644f | faylang/fay | List.hs | module List where
import FFI
import Prelude hiding (take)
main :: Fay ()
main = putStrLn (showList (take 5 (let ns = 1 : map' (\x -> x + 1) ns in ns)))
take :: Int -> [a] -> [a]
take 0 _ = []
take n (x:xs) = x : take (n - 1) xs
map' :: (a -> b) -> [a] -> [b]
map' f [] = []
map' f (x:xs... | null | https://raw.githubusercontent.com/faylang/fay/8455d975f9f0db2ecc922410e43e484fbd134699/tests/List.hs | haskell | module List where
import FFI
import Prelude hiding (take)
main :: Fay ()
main = putStrLn (showList (take 5 (let ns = 1 : map' (\x -> x + 1) ns in ns)))
take :: Int -> [a] -> [a]
take 0 _ = []
take n (x:xs) = x : take (n - 1) xs
map' :: (a -> b) -> [a] -> [b]
map' f [] = []
map' f (x:xs... | |
2a7b4d0c9a28816e0239c592df64a1f5b77d3faf469ce6cf68a93a8b84089faa | erlware/erlcron | ecrn_test.erl | , LLC . All Rights Reserved .
%%% vim:ts=4:ts=4:et
%%%
This file is provided to you under the BSD License ; you may not use
%%% this file except in compliance with the License.
-module(ecrn_test).
-compile(export_all).
-compile(nowarn_export_all).
-import(ecrn_startup_test, [disable_sasl_logger/0, enable_sasl_lo... | null | https://raw.githubusercontent.com/erlware/erlcron/1c6876dfcd125763342b3968cfc38d2d6aaa3027/test/ecrn_test.erl | erlang | vim:ts=4:ts=4:et
this file except in compliance with the License.
===================================================================
Types
===================================================================
The alarm should trigger this nearly immediately.
The alarm should trigger this 1 second later.
The alarm... | , LLC . All Rights Reserved .
This file is provided to you under the BSD License ; you may not use
-module(ecrn_test).
-compile(export_all).
-compile(nowarn_export_all).
-import(ecrn_startup_test, [disable_sasl_logger/0, enable_sasl_logger/0]).
-include_lib("eunit/include/eunit.hrl").
-define(FuncTest(A), {ato... |
61cf83c2905438bac73d3f7acb0ba36a2e872ea780f5a05566b14a71327a5131 | squest/clojure-tutorial | dbase.clj | (ns sscom.dbase
(:require
[couchbase-clj.client :as couch]
[com.stuartsierra.component :as component]))
(defrecord Database [uris bucket]
component/Lifecycle
(start [this]
(assoc this
:connection
(couch/create-client {:uris uris :bucket bucket})))
(stop [this]
(couch/shutdown (:conn... | null | https://raw.githubusercontent.com/squest/clojure-tutorial/5cf97832cb226928f63f043a56328c9a79c4a321/sscom/src/sscom/dbase.clj | clojure | (ns sscom.dbase
(:require
[couchbase-clj.client :as couch]
[com.stuartsierra.component :as component]))
(defrecord Database [uris bucket]
component/Lifecycle
(start [this]
(assoc this
:connection
(couch/create-client {:uris uris :bucket bucket})))
(stop [this]
(couch/shutdown (:conn... | |
1f05687afc797b44fe05a96c27cc5e03b9c78760597aa2b4c2b10798334e9bec | nilenso/mailgun | project.clj | (defproject nilenso/mailgun "0.2.3"
:description "Mailgun API in clojure"
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.8.0"]
[clj-http "2.1.0"]
[cheshire "5.6.1"]])
| null | https://raw.githubusercontent.com/nilenso/mailgun/1267f4c8d1a4b3106b6760e2612aeec80c92767f/project.clj | clojure | (defproject nilenso/mailgun "0.2.3"
:description "Mailgun API in clojure"
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.8.0"]
[clj-http "2.1.0"]
[cheshire "5.6.1"]])
| |
cb7bc166875a4f761141dea4db16a54bdcf01438187de6ad0184e714a45221da | zsol/hlogster | ExampleConfig.hs | # LANGUAGE TemplateHaskell #
module Config (config) where
import ConfigBase
config :: [Config]
config =
[ EventCounter {name = "presentations_delete", category = "usage", event = "presentations_delete"}
, EventCounter {name = "feature.label_zoom", category = "feature", event = "label_zoom"}
, FieldCounter {nam... | null | https://raw.githubusercontent.com/zsol/hlogster/54879f5d8522d9685e4c607834931448cff5e92e/examples/ExampleConfig.hs | haskell | # LANGUAGE TemplateHaskell #
module Config (config) where
import ConfigBase
config :: [Config]
config =
[ EventCounter {name = "presentations_delete", category = "usage", event = "presentations_delete"}
, EventCounter {name = "feature.label_zoom", category = "feature", event = "label_zoom"}
, FieldCounter {nam... | |
b652ba5cb1e5ae0bbc32f860c132bc0bf69322ef3c9be14838154462edbbde38 | melange-re/melange | ext_list.ml | Copyright ( C ) 2015 - 2016 Bloomberg Finance L.P.
*
* This program is free software : you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , either version 3 of the License , or
* ( at your option ) any later... | null | https://raw.githubusercontent.com/melange-re/melange/2293d9a3afff15b1853571a5fb2d15eb296437ed/jscomp/ext/ext_list.ml | ocaml | make sure that tail is not empty
single element is common
*
can not do loop unroll due to state combination
idea: rec f us vs instead?
* It is not worth loop unrolling,
it is already tail-call, and we need to be careful
about evaluation order when unroll
*
{[length xs = length ys + n ]}
cannot b... | Copyright ( C ) 2015 - 2016 Bloomberg Finance L.P.
*
* This program is free software : you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , either version 3 of the License , or
* ( at your option ) any later... |
152dc96f158ece5a2353b4b05d9c104f20362bfc6726a47dbfc2c21152f15b47 | dongcarl/guix | pciutils.scm | ;;; GNU Guix --- Functional package management for GNU
Copyright © 2014 , 2015 , 2017 , 2020 < >
Copyright © 2016 < >
Copyright © 2018 < >
Copyright © 2019 < >
Copyright © 2020 Jan ( janneke ) Nieuwenhuizen < >
;;;
;;; This file is part of GNU Guix.
;;;
GNU is free software ; you can redistr... | null | https://raw.githubusercontent.com/dongcarl/guix/82543e9649da2da9a5285ede4ec4f718fd740fcb/gnu/packages/pciutils.scm | scheme | GNU Guix --- Functional package management for GNU
This file is part of GNU Guix.
you can redistribute it and/or modify it
either version 3 of the License , or ( at
your option) any later version.
GNU Guix is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied wa... | Copyright © 2014 , 2015 , 2017 , 2020 < >
Copyright © 2016 < >
Copyright © 2018 < >
Copyright © 2019 < >
Copyright © 2020 Jan ( janneke ) Nieuwenhuizen < >
under the terms of the GNU General Public License as published by
You should have received a copy of the GNU General Public License
a... |
f3f8855b4f20bc2a0d3be6ac7e5d86c502a39fb1e0ca4dae859a333b3278da8b | goldfirere/thesis | Mutable.hs | # LANGUAGE MultiParamTypeClasses , BangPatterns , ScopedTypeVariables ,
TypeFamilies #
TypeFamilies #-}
-- |
-- Module : Data.Vector.Generic.Mutable
Copyright : ( c ) Roman Leshchinskiy 2008 - 2010
-- License : BSD-style
--
Maintainer : < >
-- Stability : experimental
... | null | https://raw.githubusercontent.com/goldfirere/thesis/22f066bc26b1147530525aabb3df686416b3e4aa/cab/vector-0.10.12.3/Data/Vector/Generic/Mutable.hs | haskell | |
Module : Data.Vector.Generic.Mutable
License : BSD-style
Stability : experimental
Portability : non-portable
* Class of mutable vector types
* Accessors
** Length information
** Extracting subvectors
** Overlapping
* Construction
** Initialisation
** Growing
** Restricting memory usage
*... | # LANGUAGE MultiParamTypeClasses , BangPatterns , ScopedTypeVariables ,
TypeFamilies #
TypeFamilies #-}
Copyright : ( c ) Roman Leshchinskiy 2008 - 2010
Maintainer : < >
Generic interface to mutable vectors
module Data.Vector.Generic.Mutable (
MVector(..),
length, null,
... |
7b6b1b0af1574143198b2cc97e60e563fa4b712af0638fee054798e80264bdc5 | korya/efuns | wX_scale.mli | (***********************************************************************)
(* *)
(* ____ *)
(* *)
Fabrice Le Fessa... | null | https://raw.githubusercontent.com/korya/efuns/78b21d9dff45b7eec764c63132c7a564f5367c30/toolkit/wX_scale.mli | ocaml | *********************************************************************
____
... | Fabrice Le Fessant , projet Para / SOR , INRIA Rocquencourt
Copyright 1999 Institut National de Recherche en Informatique et
Automatique . Distributed only by permission .
class t :
WX_types.container ->
WX_types.bar_desc ->
WX_adjust.t ->
WX_types.base_attributes... |
de8c491b9da1c55f52b38e65f86a11ef0c68403ba5a5e6e95bba0b7b39d1fd9f | fogfish/serverless | ec2_SUITE.erl | %%
Copyright ( C ) 2018
%%
%% This file may be modified and distributed under the terms
of the MIT license . See the LICENSE file for details .
%%
%%
-module(ec2_SUITE).
-export([all/0]).
-export([ec2/1]).
all() ->
[Test || {Test, NAry} <- ?MODULE:module_info(exports),
Test =/= module_info,
T... | null | https://raw.githubusercontent.com/fogfish/serverless/c804e510e9c473941b1b457ba175f537f1939f39/examples/ec2/test/ec2_SUITE.erl | erlang |
This file may be modified and distributed under the terms
| Copyright ( C ) 2018
of the MIT license . See the LICENSE file for details .
-module(ec2_SUITE).
-export([all/0]).
-export([ec2/1]).
all() ->
[Test || {Test, NAry} <- ?MODULE:module_info(exports),
Test =/= module_info,
Test =/= init_per_suite,
Test =/= end_per_suite,
NAry =:= 1
... |
6eb4794858a35f8858db4780a80970bf6b7036395c20cabac01fc113dce5290b | REPROSEC/dolev-yao-star | Spec_SecretBox.ml | open Prims
let (size_key : Prims.int) = (Prims.of_int (32))
let (size_nonce : Prims.int) = (Prims.of_int (24))
let (size_block : Prims.int) = (Prims.of_int (64))
let (size_tag : Prims.int) = (Prims.of_int (16))
type key = (FStar_UInt8.t, unit) Lib_Sequence.lseq
type aekey = (FStar_UInt8.t, unit) Lib_Sequence.lseq
type ... | null | https://raw.githubusercontent.com/REPROSEC/dolev-yao-star/d97a8dd4d07f2322437f186e4db6a1f4d5ee9230/concrete/hacl-star-snapshot/ml/Spec_SecretBox.ml | ocaml | open Prims
let (size_key : Prims.int) = (Prims.of_int (32))
let (size_nonce : Prims.int) = (Prims.of_int (24))
let (size_block : Prims.int) = (Prims.of_int (64))
let (size_tag : Prims.int) = (Prims.of_int (16))
type key = (FStar_UInt8.t, unit) Lib_Sequence.lseq
type aekey = (FStar_UInt8.t, unit) Lib_Sequence.lseq
type ... | |
b79ade2d3e4a24b267b2d11a0f05ce0e1b7bd9caf880d33c02768d2414410a6e | trandi/thermal-printer-photo-booth | ImageProcessingTests.hs | module ImageProcessingTests where
import ImageProcessing
import Codec.Picture
import Test.HUnit.Base
import Test.QuickCheck.Modifiers
testImage = generateImage (\x y -> fromIntegral (x*y)) 5 4 :: Image Pixel8
testImageBW = generateImage (\x y -> if x*y < 3 then 0 else 255) 5 4 :: Image Pixel8
imageProcessingTests = ... | null | https://raw.githubusercontent.com/trandi/thermal-printer-photo-booth/0df7fa2af91b03fa9e8f784ebc1a550015e4b23b/test/ImageProcessingTests.hs | haskell | module ImageProcessingTests where
import ImageProcessing
import Codec.Picture
import Test.HUnit.Base
import Test.QuickCheck.Modifiers
testImage = generateImage (\x y -> fromIntegral (x*y)) 5 4 :: Image Pixel8
testImageBW = generateImage (\x y -> if x*y < 3 then 0 else 255) 5 4 :: Image Pixel8
imageProcessingTests = ... | |
cbfaef352f6d9d95e40272ee663857f2241dee5a3db8fa8d4ef67ed846fb268a | bobzhang/fan | fanTop.ml | let parse_toplevel_phrase_old = Toploop.parse_toplevel_phrase.contents
let use_file_old = Toploop.parse_use_file.contents
let normal () =
Toploop.parse_toplevel_phrase := parse_toplevel_phrase_old;
Toploop.parse_use_file := use_file_old
let fan () =
Toploop.parse_toplevel_phrase :=
(Mktop.wrap Mktop.toplevel_... | null | https://raw.githubusercontent.com/bobzhang/fan/7ed527d96c5a006da43d3813f32ad8a5baa31b7f/tests/asts/failed_parse/fanTop.ml | ocaml | let parse_toplevel_phrase_old = Toploop.parse_toplevel_phrase.contents
let use_file_old = Toploop.parse_use_file.contents
let normal () =
Toploop.parse_toplevel_phrase := parse_toplevel_phrase_old;
Toploop.parse_use_file := use_file_old
let fan () =
Toploop.parse_toplevel_phrase :=
(Mktop.wrap Mktop.toplevel_... | |
198c8473e8e91e543b8a20384578363a07f09bdeb9979c2982a2cae4fd917c11 | xsc/claro | adapter.cljc | (ns claro.engine.adapter
"Adapters can be used to remove asynchronous execution boilerplate or mediate
between differen deferred implementations."
(:require [claro.runtime.impl :as impl]))
(defn default-adapter
"This adapter expects `Resolvable` values to already return a deferrable
value."
[_ f]
(f))
... | null | https://raw.githubusercontent.com/xsc/claro/16db75b7a775a14f3b656362e8ee4f65dd8b0d49/src/claro/engine/adapter.cljc | clojure | (ns claro.engine.adapter
"Adapters can be used to remove asynchronous execution boilerplate or mediate
between differen deferred implementations."
(:require [claro.runtime.impl :as impl]))
(defn default-adapter
"This adapter expects `Resolvable` values to already return a deferrable
value."
[_ f]
(f))
... | |
6ba2140110e0cb0eb54a04b76abddb119160f21a577cbc37958bf20863361a14 | restyled-io/restyled.io | Plans.hs | module Restyled.Handlers.Admin.Marketplace.Plans
( getAdminMarketplacePlansR
) where
import Restyled.Prelude
import Restyled.DB
import Restyled.Foundation
import Restyled.Models
import Restyled.Yesod
newtype MarketplacePlansQuery = MarketplacePlansQuery
{ mpqGitHubId :: Int
}
queryForm :: FormInput ... | null | https://raw.githubusercontent.com/restyled-io/restyled.io/e3208b62dfea0916b9760cf8dd73abc7c5f080bb/src/Restyled/Handlers/Admin/Marketplace/Plans.hs | haskell | Pass githubId=-1 to query for non-GH Plans | module Restyled.Handlers.Admin.Marketplace.Plans
( getAdminMarketplacePlansR
) where
import Restyled.Prelude
import Restyled.DB
import Restyled.Foundation
import Restyled.Models
import Restyled.Yesod
newtype MarketplacePlansQuery = MarketplacePlansQuery
{ mpqGitHubId :: Int
}
queryForm :: FormInput ... |
72533ae9711caaa0d0747f59e0d77b2508d446be2744e099a9f705688dcc9fc4 | avsm/mirage-duniverse | sexplib_num_conv.mli | open Sexplib
val sexp_of_big_int : Big_int.big_int -> Sexp.t
* [ sexp_of_big_int n ] converts the value [ n ] of type [ Big_int.big_int ]
to an S - expression .
to an S-expression. *)
val sexp_of_nat : Nat.nat -> Sexp.t
* [ sexp_of_nat n ] converts the value [ n ] of type [ Nat.nat ] to an
S - express... | null | https://raw.githubusercontent.com/avsm/mirage-duniverse/983e115ff5a9fb37e3176c373e227e9379f0d777/ocaml_modules/sexplib/num/lib/sexplib_num_conv.mli | ocaml | * [sexp_of_ratio n] converts the value [n] of type [Ratio.ratio] to an
S-expression.
* [ratio_of_sexp sexp] converts S-expression [sexp] to a value
of type [Nat.ratio]. | open Sexplib
val sexp_of_big_int : Big_int.big_int -> Sexp.t
* [ sexp_of_big_int n ] converts the value [ n ] of type [ Big_int.big_int ]
to an S - expression .
to an S-expression. *)
val sexp_of_nat : Nat.nat -> Sexp.t
* [ sexp_of_nat n ] converts the value [ n ] of type [ Nat.nat ] to an
S - express... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.