_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
98d12cf65b979185ad8d5c27b69d5fc919948f85c30a80e7d5ce4c491fb8a0b7
ocaml-ppx/ocamlformat
attributes.ml
open MenhirSdk.Cmly_api open Utils Attributes guide the recovery . Some information can be passed to Menhir - recover via attributes . These are pieces of string that are ignored by Menhir itself and are transmitted to Menhir - recover . The attributes that are relevant to Menhir - recover are ...
null
https://raw.githubusercontent.com/ocaml-ppx/ocamlformat/9324ea439a77b4f3a31e9302b97ce1812cf8f17d/vendor/parser-recovery/menhir-recover/attributes.ml
ocaml
* Specification of attributes that are meaningful for recovery * Cost of a grammar symbol * Penalty (added cost) for shifting an item * Cost of reducing a production * An optional ocaml expression that should evaluate to a semantic value valid for this terminal. * An optional ocaml expression that should eva...
open MenhirSdk.Cmly_api open Utils Attributes guide the recovery . Some information can be passed to Menhir - recover via attributes . These are pieces of string that are ignored by Menhir itself and are transmitted to Menhir - recover . The attributes that are relevant to Menhir - recover are ...
61cacab2fccbb6c141b83679232140812ce80910678b66ed5467a7b728bb4a4f
RolfRolles/PandemicML
X86Disasm.mli
(** Functions for converting X86 instruction parts into strings. These functions are pure, and their names are self-explanatory. *) * { 6 X86 - parts - to - strings functions } val string_of_x86mnem : X86.x86mnem -> string val string_of_x86_reg32 : X86.x86_reg32 -> string val string_of_x86_debug_reg : X86.x86_d...
null
https://raw.githubusercontent.com/RolfRolles/PandemicML/9c31ecaf9c782dbbeb6cf502bc2a6730316d681e/X86/X86Disasm.mli
ocaml
* Functions for converting X86 instruction parts into strings. These functions are pure, and their names are self-explanatory.
* { 6 X86 - parts - to - strings functions } val string_of_x86mnem : X86.x86mnem -> string val string_of_x86_reg32 : X86.x86_reg32 -> string val string_of_x86_debug_reg : X86.x86_debug_reg -> string val string_of_x86_control_reg : X86.x86_control_reg -> string val string_of_x86_reg16 : X86.x86_reg16 -> string val str...
8315cb02c7ea18cbeb7a073be76a59f2f385e05ade486683b7febad501815bb8
vouillon/osm
display.ml
OSM tools * Copyright ( C ) 2013 * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking exception ; * either version 2.1 of the License , or ( at your opti...
null
https://raw.githubusercontent.com/vouillon/osm/a42d1bcc82a4ad73c26c81ac7a75f9f1c7470344/osm/display.ml
ocaml
** display#misc#set_double_buffered false; ignore (display#event#connect#configure (fun ev -> false)); ignore (display#event#connect#map (fun ev -> false)); display#event#add [`STRUCTURE]; Format.eprintf "EXPOSE %d %d %d %d@." x y width height; Format.eprintf "MOVE@.";
OSM tools * Copyright ( C ) 2013 * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking exception ; * either version 2.1 of the License , or ( at your opti...
5b5c9874e5487ab6187d93de0e001151d32765eb8db4ee424eb5a3aae192a0ca
ocamllabs/ocaml-modular-implicits
pr5673_bad.ml
module Classdef = struct class virtual ['a, 'b, 'c] cl0 = object constraint 'c = < m : 'a -> 'b -> int; .. > end class virtual ['a, 'b] cl1 = object method virtual raise_trouble : int -> 'a method virtual m : 'a -> 'b -> int end class virtual ['a, 'b] cl2 = object m...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/testsuite/tests/typing-poly-bugs/pr5673_bad.ml
ocaml
Actually this should succeed ...
module Classdef = struct class virtual ['a, 'b, 'c] cl0 = object constraint 'c = < m : 'a -> 'b -> int; .. > end class virtual ['a, 'b] cl1 = object method virtual raise_trouble : int -> 'a method virtual m : 'a -> 'b -> int end class virtual ['a, 'b] cl2 = object m...
89f786864696c11e4da78f845b0c76e1cfee8f267d91c112eb1800a7222d776c
huangjs/cl
isamax.lisp
;;; Compiled by f2cl version: ( " f2cl1.l , v 1.215 2009/04/07 22:05:21 rtoy Exp $ " " f2cl2.l , v 1.37 2008/02/22 22:19:33 rtoy Exp $ " " f2cl3.l , v 1.6 2008/02/22 22:19:33 rtoy Exp $ " " f2cl4.l , v 1.7 2008/02/22 22:19:34 rtoy Exp $ " " f2cl5.l , v 1.200 2009/01/19 02:38:17 rtoy Exp $ " " f2cl6.l ,...
null
https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/maxima/share/lapack/blas/isamax.lisp
lisp
Compiled by f2cl version: Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t) (:coerce-assigns :as-needed) (:array-type ':array) (:array-slicing t) (:declare-common nil) (:float-format double-float))
( " f2cl1.l , v 1.215 2009/04/07 22:05:21 rtoy Exp $ " " f2cl2.l , v 1.37 2008/02/22 22:19:33 rtoy Exp $ " " f2cl3.l , v 1.6 2008/02/22 22:19:33 rtoy Exp $ " " f2cl4.l , v 1.7 2008/02/22 22:19:34 rtoy Exp $ " " f2cl5.l , v 1.200 2009/01/19 02:38:17 rtoy Exp $ " " f2cl6.l , v 1.48 2008/08/24 00:56:27 rt...
b673fc226bdbeb0491df464675ad80e5ed54b2543a4c36bef98c508179ea6708
BinaryAnalysisPlatform/bap
regular_seq.ml
open Core_kernel[@@warning "-D"] open Sequence let of_array arr = init (Array.length arr) ~f:Array.(unsafe_get arr) let sexp_of_seq sexp_of_elt t = [%sexp_of:list] sexp_of_elt (to_list t) let seq_of_sexp elt_of_sexp t = of_list ([%of_sexp:list] elt_of_sexp t) let t_of_sexp = seq_of_sexp let sexp_of_t = sexp_...
null
https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap/253afc171bbfd0fe1b34f6442795dbf4b1798348/lib/regular/regular_seq.ml
ocaml
honestly stolen from newer core_kernel, to get compatibility with older library versions
open Core_kernel[@@warning "-D"] open Sequence let of_array arr = init (Array.length arr) ~f:Array.(unsafe_get arr) let sexp_of_seq sexp_of_elt t = [%sexp_of:list] sexp_of_elt (to_list t) let seq_of_sexp elt_of_sexp t = of_list ([%of_sexp:list] elt_of_sexp t) let t_of_sexp = seq_of_sexp let sexp_of_t = sexp_...
fcb25d19b2362645ac264acf54a34c21286645d794160872a904f78a75c01d73
Clozure/dpf
build.lisp
(in-package "CL-USER") #+32-bit-target (error "use a 64-bit lisp") (setq ccl:*save-source-locations* nil) (defparameter *source-dir* (make-pathname :name nil :type nil :defaults *load-truename*)) (defparameter *build-dir* (merge-pathnames "build/" *source-dir*)) (defparameter *dpf-files* '("application" "pac...
null
https://raw.githubusercontent.com/Clozure/dpf/174ae4ed065b66329df34b8bc1ba28ae7f48c806/build.lisp
lisp
(in-package "CL-USER") #+32-bit-target (error "use a 64-bit lisp") (setq ccl:*save-source-locations* nil) (defparameter *source-dir* (make-pathname :name nil :type nil :defaults *load-truename*)) (defparameter *build-dir* (merge-pathnames "build/" *source-dir*)) (defparameter *dpf-files* '("application" "pac...
744f14dd76727296b98f8d08b46fc62a8ec4eb7bf9135bc25519950e1b608419
brendanhay/amazonka
ImportClientBranding.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # {-# LANGUAGE StrictData #-} # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - binds # # OPTIONS_GHC -fno - warn - unused -...
null
https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-workspaces/gen/Amazonka/WorkSpaces/ImportClientBranding.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Module : Amazonka.WorkSpaces.ImportClientBranding Stability : auto-generated Imports client branding. Client branding allows you to customize your company logo, the support email address, support link, link to reset password, and a custom message fo...
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - binds # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - unused - matches # De...
73233889486b5e0d2cd2fcfb294dc4a7322372b7ac70cab6cfb7d3b0bb4d4207
stevenvar/OMicroB
simul.ml
(* Tools *) let int_of_hex1 c = match c with | '0' .. '9' -> int_of_char c - int_of_char '0' | 'a' .. 'f' -> int_of_char c - int_of_char 'a' + 10 | 'A' .. 'F' -> int_of_char c - int_of_char 'A' + 10 | _ -> invalid_arg "Simul.int_of_hex1" let int_of_hex2 c1 c0 = (int_of_hex1 c1 lsl 4) lor int_of_hex1 c0 ;;...
null
https://raw.githubusercontent.com/stevenvar/OMicroB/6f412973e924aebc9fe845ef1bf3d260dcfecdbf/src/simulators/simul.ml
ocaml
Tools * * * * * * let s = Printf.sprintf "register %s = %d" (string_of_register register) new_value in * *
let int_of_hex1 c = match c with | '0' .. '9' -> int_of_char c - int_of_char '0' | 'a' .. 'f' -> int_of_char c - int_of_char 'a' + 10 | 'A' .. 'F' -> int_of_char c - int_of_char 'A' + 10 | _ -> invalid_arg "Simul.int_of_hex1" let int_of_hex2 c1 c0 = (int_of_hex1 c1 lsl 4) lor int_of_hex1 c0 ;; let int_of...
d7151f73e96ceea758dc2debe0470d82da15c45e16962b0b1a2264dab9dacc91
VMatthijs/CHAD
Examples.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # -- | Examples of programs in the source languages. The testsuite checks that AD -- on these programs does the right thing. module Examples where import GHC.TypeNats import qualified Data.Vector.Unboxed.Sized as V...
null
https://raw.githubusercontent.com/VMatthijs/CHAD/755fc47e1f8d1c3d91455f123338f44a353fc265/src/Examples.hs
haskell
| Examples of programs in the source languages. The testsuite checks that AD on these programs does the right thing. > map2 f xs = map1 (f x) with x from xs y z w v Simplified: sin (x1 * x4 * x3 + 2 * x2 * x3 + x4) y z w v Simplified, this program is equivalent to: map (\z -> x * z + 1) (replicate x)...
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # module Examples where import GHC.TypeNats import qualified Data.Vector.Unboxed.Sized as V import Env import Operation import SourceLanguage import Types bin :: (a ~ Df1 a, b ~ Df1 b, c ~ Df1 c, a ~ Dr1 a, b ~ ...
158f6a583391f253dc29d3636dc1519f74084e8aa44d3af542ce6eda6cf305f8
mirage/ocaml-dns
tsig.ml
( c ) 2017 , all rights reserved let cs = let module M = struct type t = Cstruct.t let pp = Cstruct.hexdump_pp let equal = Cstruct.equal end in (module M: Alcotest.TESTABLE with type t = M.t) let msg = let module M = struct type t = [ `Msg of string ] let pp ppf = function `Msg str -> ...
null
https://raw.githubusercontent.com/mirage/ocaml-dns/29168a8c464796fda77b50d721176f122ee724ae/test/tsig.ml
ocaml
( c ) 2017 , all rights reserved let cs = let module M = struct type t = Cstruct.t let pp = Cstruct.hexdump_pp let equal = Cstruct.equal end in (module M: Alcotest.TESTABLE with type t = M.t) let msg = let module M = struct type t = [ `Msg of string ] let pp ppf = function `Msg str -> ...
3ebee98c328780ba09450bfa06b49c77607c4b161cbf34b80a565c2a40834cbc
novalabsxyz/libp2p-peerbook
peerbook_SUITE.erl
-module(peerbook_SUITE). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). -export([all/0, init_per_testcase/2, end_per_testcase/2]). all() -> [ listen_addr_test, session_test, nat_type_test, get_put_test, blacklist_test, heartbeat_test, notif...
null
https://raw.githubusercontent.com/novalabsxyz/libp2p-peerbook/210d73b3fc74d949dc360913f10e31a76987bb5f/test/peerbook_SUITE.erl
erlang
have the peer refresh itself quickly and send out notifications quick only send out notifications quickly Set stale time to something short register a listen address confirm it's stored unregister the listen address confirm it's cleared register a session key.. just reuse the one we already have And register ...
-module(peerbook_SUITE). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). -export([all/0, init_per_testcase/2, end_per_testcase/2]). all() -> [ listen_addr_test, session_test, nat_type_test, get_put_test, blacklist_test, heartbeat_test, notif...
b606aa3f09052e4dc921c47ee3ec47450f2b5ed321d236ccd8d451fcd476bfcb
mvoidex/hsdev
Compat.hs
# LANGUAGE CPP # module HsDev.Project.Compat ( showVer, componentName, testSuiteEnabled, flattenCondTree, parsePackageDesc ) where import Data.Maybe (maybeToList) import Data.Text (Text, pack) import qualified Distribution.PackageDescription as PD import Distribution.Version (Version) import Distribution.Text (di...
null
https://raw.githubusercontent.com/mvoidex/hsdev/016646080a6859e4d9b4a1935fc1d732e388db1a/src/HsDev/Project/Compat.hs
haskell
# LANGUAGE CPP # module HsDev.Project.Compat ( showVer, componentName, testSuiteEnabled, flattenCondTree, parsePackageDesc ) where import Data.Maybe (maybeToList) import Data.Text (Text, pack) import qualified Distribution.PackageDescription as PD import Distribution.Version (Version) import Distribution.Text (di...
9a0aa30c56e31cbd27d55f9647651871c02e2ebe707813dd4660586b7e4041ec
tenpureto/tenpureto
MergeOptimizer.hs
# LANGUAGE DeriveFunctor # module Tenpureto.MergeOptimizer ( MergedBranchInformation(..) , MergedBranchDescriptor(..) , MergeBranchesResult(..) , descriptorToTemplateYaml , mergeBranchesGraph , mergeGraph , propagateBranchesGraph ) where import Control.Monad import ...
null
https://raw.githubusercontent.com/tenpureto/tenpureto/886df860200e1a6f44ce07c24a5e7597009f71ef/src/Tenpureto/MergeOptimizer.hs
haskell
# LANGUAGE DeriveFunctor # module Tenpureto.MergeOptimizer ( MergedBranchInformation(..) , MergedBranchDescriptor(..) , MergeBranchesResult(..) , descriptorToTemplateYaml , mergeBranchesGraph , mergeGraph , propagateBranchesGraph ) where import Control.Monad import ...
f193cb19301699f00cca63f91f3b02479cab11e56ad10a2c2ef7b3d7df2380e3
bobbae/gosling-emacs
mh-keymap.ml
; This file, when loaded, creates the mh keymap. Explicitly loaded from the ; root. (progn loop (save-excursion (temp-use-buffer "+inbox") (define-keymap "&mh-keymap") (define-keymap "&mh-x-keymap") (use-local-map "&mh-keymap") (setq loop 0) (while (<= loop 127) (local-bind-to-key ...
null
https://raw.githubusercontent.com/bobbae/gosling-emacs/8fdda532abbffb0c952251a0b5a4857e0f27495a/lib/maclib/stanford/mh-keymap.ml
ocaml
; This file, when loaded, creates the mh keymap. Explicitly loaded from the ; root. (progn loop (save-excursion (temp-use-buffer "+inbox") (define-keymap "&mh-keymap") (define-keymap "&mh-x-keymap") (use-local-map "&mh-keymap") (setq loop 0) (while (<= loop 127) (local-bind-to-key ...
cad488cc02ca1dcd1d8df5b2ea7227d4018125971222034c33015d997d2c4998
JHU-PL-Lab/jaylang
jay.ml
open Core open Jay let usage_msg = "jay -i <file>" let source_file = ref "" let anon_fun _ = failwith "No anonymous argument allowed!" let run_program source = let program = File_util.read_source source in try Interpreter.eval program with _ -> failwith "TBI!" (* | Interpreter.Terminate v -> Format.printf "%a" Ja...
null
https://raw.githubusercontent.com/JHU-PL-Lab/jaylang/484b3876986a515fb57b11768a1b3b50418cde0c/src/bin/jay.ml
ocaml
| Interpreter.Terminate v -> Format.printf "%a" Jayil.Ast_pp.pp_value v | ex -> raise ex
open Core open Jay let usage_msg = "jay -i <file>" let source_file = ref "" let anon_fun _ = failwith "No anonymous argument allowed!" let run_program source = let program = File_util.read_source source in try Interpreter.eval program with _ -> failwith "TBI!" let () = Arg.parse [ ("-i", Arg.Set_string sou...
d7728257b517a8a916b479c50ebec08072c8e315b6556b96a3c66592a222dc30
wmannis/cl-svg
format-xml.lisp
;;; -*- Mode: LISP; Syntax: Common-lisp; Package: cl-svg; Lowercase: Yes -*- $ Id$ ;;; Copyright ( c ) 2008 . All rights reserved . ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: 1 . Redistribution...
null
https://raw.githubusercontent.com/wmannis/cl-svg/1e988ebd2d6e2ee7be4744208828ef1b59e5dcdc/format-xml.lisp
lisp
-*- Mode: LISP; Syntax: Common-lisp; Package: cl-svg; Lowercase: Yes -*- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: notice, this list of conditions and the following disclaimer. notice, this list of conditi...
$ Id$ Copyright ( c ) 2008 . All rights reserved . 1 . Redistributions of source code must retain the above copyright 2 . Redistributions in binary form must reproduce the above copyright THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ` ` AS IS '' AND IMPLIED WARRANTIES OF MERCHANTABILITY AND...
d8c91b5ebcea1bbce6083d689668a7568c5add491a8064a5ff6694d8d32fed16
aliter/aliter
aliter.erl
-module(aliter). -behaviour(application). -include("include/records.hrl"). -export([ start/2, shutdown/0, stop/1, path/1, install/0, uninstall/0, reinstall/0]). start(_Type, StartArgs) -> aliter_sup:start_link(StartArgs). shutdown() -> application:stop(aliter). stop(_State) -> ok. path(A) ...
null
https://raw.githubusercontent.com/aliter/aliter/03c7d395d5812887aecdca20b16369f8a8abd278/src/aliter.erl
erlang
-module(aliter). -behaviour(application). -include("include/records.hrl"). -export([ start/2, shutdown/0, stop/1, path/1, install/0, uninstall/0, reinstall/0]). start(_Type, StartArgs) -> aliter_sup:start_link(StartArgs). shutdown() -> application:stop(aliter). stop(_State) -> ok. path(A) ...
9786db35d12540757ce6d1f29504ff752d9fc76f8a2d1ffa749ff64dbab594b3
mbj/stratosphere
Server.hs
module Stratosphere.Transfer.Server ( module Exports, Server(..), mkServer ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.Transfer.Server.EndpointDetailsProperty as Exports import {-# SOURCE #-} Str...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/transfer/gen/Stratosphere/Transfer/Server.hs
haskell
# SOURCE # # SOURCE # # SOURCE # # SOURCE # # SOURCE #
module Stratosphere.Transfer.Server ( module Exports, Server(..), mkServer ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Tag import Stratosphere.Value data Server = Server...
3d45633cd07b28efb61cdb8c6d50e0f13c889f311e54df83b1e3b9080775d077
melisgl/higgsml
config.lisp
(in-package :higgs-boson) (defun parse-config-line (string) (let ((position (position #\= string))) (assert position) (cons (subseq string 0 position) (let ((*read-eval* nil)) (read-from-string (subseq string (1+ position))))))) (defun parse-config (stream) (loop for line = (read-lin...
null
https://raw.githubusercontent.com/melisgl/higgsml/a49679354f1b1896ea6472a5f615e9bcdee65638/src/config.lisp
lisp
(in-package :higgs-boson) (defun parse-config-line (string) (let ((position (position #\= string))) (assert position) (cons (subseq string 0 position) (let ((*read-eval* nil)) (read-from-string (subseq string (1+ position))))))) (defun parse-config (stream) (loop for line = (read-lin...
6a55bc2f4a8ef706a58afed217153f7b6e1f1754152f6b6651279db569eceaa9
cbaggers/varjo
type-spec.lisp
(in-package :varjo.internals) (in-readtable :fn.reader) ;;------------------------------------------------------------ (defun register-type-name (name) (assert (symbolp name)) (setf (gethash name *registered-types*) t)) (defun type-name-known (name) (gethash name *registered-types*)) (defun vtype-existsp (typ...
null
https://raw.githubusercontent.com/cbaggers/varjo/9e77f30220053155d2ef8870ceba157f75e538d4/src/varjo.internals/types/type-spec.lisp
lisp
------------------------------------------------------------ ------------------------------------------------------------
(in-package :varjo.internals) (in-readtable :fn.reader) (defun register-type-name (name) (assert (symbolp name)) (setf (gethash name *registered-types*) t)) (defun type-name-known (name) (gethash name *registered-types*)) (defun vtype-existsp (type-name) (let ((type-name (resolve-name-from-alternative type-...
41f5262a5a17bfd6a32a53ccbc5e0c82982c80fb4da23899ff10c81ba233081f
ideas-edu/ideas
Run.hs
----------------------------------------------------------------------------- Copyright 2019 , Ideas project team . This file is distributed under the terms of the Apache License 2.0 . For more information , see the files " LICENSE.txt " and " NOTICE.txt " , which are included in the distribution . -------...
null
https://raw.githubusercontent.com/ideas-edu/ideas/f84907f92a8c407b7313f99e65a08d2646dc1565/src/Ideas/Service/FeedbackScript/Run.hs
haskell
--------------------------------------------------------------------------- --------------------------------------------------------------------------- | Maintainer : Stability : provisional Run a feedbackscript --------------------------------------------------------------------------- equality w...
Copyright 2019 , Ideas project team . This file is distributed under the terms of the Apache License 2.0 . For more information , see the files " LICENSE.txt " and " NOTICE.txt " , which are included in the distribution . Portability : portable ( depends on ghc ) module Ideas.Service.FeedbackScript....
0a1323d72fb6013e8ba3337175c2dfcf201a754f481fa705fa9fe25e5488ca26
sol/doctest
Fib.hs
module Fib where | Calculate Fibonacci number of given ' ' . -- -- >>> import System.IO -- >>> hPutStrLn stderr "foobar" -- foobar fib :: (Num t, Num t1) => t -> t1 fib _ = undefined
null
https://raw.githubusercontent.com/sol/doctest/ec6498542986b659f50e961b02144923f6f41eba/test/integration/bugfixOutputToStdErr/Fib.hs
haskell
>>> import System.IO >>> hPutStrLn stderr "foobar" foobar
module Fib where | Calculate Fibonacci number of given ' ' . fib :: (Num t, Num t1) => t -> t1 fib _ = undefined
c97886dd99c6714b88b087f2bdb81fbef606c477e27402e55f9433f860fee3dd
aistrate/Okasaki
Deque.hs
module Deque (Deque(..), list2Front, list2Rear, front2List, rear2List) where import Prelude hiding (head, tail, last, init) class Deque q where empty :: q a isEmpty :: q a -> Bool cons :: a -> q a -> q a head :: q a -> a tail :: q a -> q a snoc :: q a -> a -> q a last :: q a -> a...
null
https://raw.githubusercontent.com/aistrate/Okasaki/cc1473c81d053483bb5e327409346da7fda10fb4/MyCode/Ch05/Deque.hs
haskell
module Deque (Deque(..), list2Front, list2Rear, front2List, rear2List) where import Prelude hiding (head, tail, last, init) class Deque q where empty :: q a isEmpty :: q a -> Bool cons :: a -> q a -> q a head :: q a -> a tail :: q a -> q a snoc :: q a -> a -> q a last :: q a -> a...
64d805547baee13659d3dec3cd7aab947050691478bb2b46237f927736e9021a
gedge-platform/gedge-platform
rabbit_mgmt_wm_user.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 /. %% Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved . %% -module(rabbit_mgmt_wm_user). -export([init/2, r...
null
https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/rabbitmq_management/src/rabbit_mgmt_wm_user.erl
erlang
-------------------------------------------------------------------- --------------------------------------------------------------------
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved . -module(rabbit_mgmt_wm_user). -export([init/2, resourc...
6dc97564d351fcee81b41d86bdc1ddf14013854541817a20a85376ddcda0c9b7
mtnygard/simulant-example
main.clj
(ns simtest.main) (defmulti run-command (fn [command & _] command)) (def output (agent 0)) (defn prflush [s v] (do (print v) (flush) v)) (defn dot [a] (send-off output prflush (cond (< 25 (count a)) \* (< 15 (count a)) \# (< 10 (count a) 16) \+ ...
null
https://raw.githubusercontent.com/mtnygard/simulant-example/dcb76b2eda47dfb6be10a2077ade319873eacce1/simtest/src/simtest/main.clj
clojure
(ns simtest.main) (defmulti run-command (fn [command & _] command)) (def output (agent 0)) (defn prflush [s v] (do (print v) (flush) v)) (defn dot [a] (send-off output prflush (cond (< 25 (count a)) \* (< 15 (count a)) \# (< 10 (count a) 16) \+ ...
87260e60f00b3d12413887212119745ec440f27f9d850b4b6c857d2799de2241
robert-strandh/SICL
nsubst-defun.lisp
(cl:in-package #:sicl-cons) (defun |nsubst key=identity test=eq| (new old tree) (labels ((traverse (tree) (cond ((eq (car tree) old) (setf (car tree) new)) ((atom (car tree)) nil) (t (traverse (car tree))))...
null
https://raw.githubusercontent.com/robert-strandh/SICL/32d995c4f8e7d228e9c0cda6f670b2fa53ad0287/Code/Cons/nsubst-defun.lisp
lisp
As with subst, we do not provide special versions for a :test-not
(cl:in-package #:sicl-cons) (defun |nsubst key=identity test=eq| (new old tree) (labels ((traverse (tree) (cond ((eq (car tree) old) (setf (car tree) new)) ((atom (car tree)) nil) (t (traverse (car tree))))...
58c08823aaa70d4522f3cc17c778041c2107009130fe6c4c9c6dae2f4d07435e
unison-code/uni-instr-sel
Base.hs
| Copyright : Copyright ( c ) 2012 - 2017 , < > License : BSD3 ( see the LICENSE file ) Maintainer : Copyright : Copyright (c) 2012-2017, Gabriel Hjort Blindell <> License : BSD3 (see the LICENSE file) Maintainer : -} Main authors : < > Main authors: Gabriel Hjort ...
null
https://raw.githubusercontent.com/unison-code/uni-instr-sel/2edb2f3399ea43e75f33706261bd6b93bedc6762/hlib/instr-sel/Language/InstrSel/Graphs/Base.hs
haskell
------------ Data types ------------ | Alias for the internal graph representation. | The outer-most data type which contains the graph itself. It also caches all nodes in a map with node IDs as keys for efficient access. | Represents a distinct node. | A synonym for indicating the source node of an edge. | A sy...
| Copyright : Copyright ( c ) 2012 - 2017 , < > License : BSD3 ( see the LICENSE file ) Maintainer : Copyright : Copyright (c) 2012-2017, Gabriel Hjort Blindell <> License : BSD3 (see the LICENSE file) Maintainer : -} Main authors : < > Main authors: Gabriel Hjort ...
1cd4afc036ca25ccd559f9e56b7f1f600c39d579576898953438b2f8f42879d5
mikpe/pdp10-tools
ld_input.erl
-*- erlang - indent - level : 2 -*- %%% input processing for pdp10 - elf ld Copyright ( C ) 2020 %%% This file is part of pdp10 - tools . %%% pdp10 - tools is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Fo...
null
https://raw.githubusercontent.com/mikpe/pdp10-tools/99216b63317fe5b5ac18f1a0d3c81b464f8b8f40/erlang/apps/ld/src/ld_input.erl
erlang
(at your option) any later version. but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. error reasons Input Processing ============================================================ Error Form...
-*- erlang - indent - level : 2 -*- input processing for pdp10 - elf ld Copyright ( C ) 2020 This file is part of pdp10 - tools . pdp10 - tools is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , e...
6fbe70f23036710df2a23269bac5818f2f88f6f766e3fa3c6b5ffa744d54c27d
williamleferrand/aws
eC2.mli
val describe_regions : ?expires_minutes:int -> Creds.t -> (string * string) list Lwt.t (* return a list of region identifiers and their associated api url *) type instance_type = [ | `m1_small | `m1_large | `m1_xlarge | `c1_medium | `c1_xlarge | `m2_xlarge | `m2_2xlarge | `m2_4xlarge | `cc1_4xlarge | `cg1_4xlarg...
null
https://raw.githubusercontent.com/williamleferrand/aws/d591ef0a2b89082caac6ddd6850b2d8b7824e577/src/sig/eC2.mli
ocaml
return a list of region identifiers and their associated api url [describe_spot_instance_requests region ~return creds ids] returns a description of the spot instance requests associated with each of the id's in [ids]; when [ids] is an empty list, all the spot instance request descriptions are returned. * ...
val describe_regions : ?expires_minutes:int -> Creds.t -> (string * string) list Lwt.t type instance_type = [ | `m1_small | `m1_large | `m1_xlarge | `c1_medium | `c1_xlarge | `m2_xlarge | `m2_2xlarge | `m2_4xlarge | `cc1_4xlarge | `cg1_4xlarge | `t1_micro ] val string_of_instance_type : instance_type -> string v...
b7c62162952acd704b61152e60e9b0c12b709446eef96b6abed10a76519876ab
mirage/ocaml-matrix
room_listing.ml
open Json_encoding open Matrix_common module Get_visibility = struct module Query = Empty.Query module Response = struct type t = {visibility: Room.Visibility.t} [@@deriving accessor] let encoding = let to_tuple t = t.visibility in let of_tuple v = let visibility = v in {visib...
null
https://raw.githubusercontent.com/mirage/ocaml-matrix/2a58d3d41c43404741f2dfdaf1d2d0f3757b2b69/lib/matrix-ctos/room_listing.ml
ocaml
What ? I was supposed to follow the documentation ? - field present when calling synapse but not in the documentation
open Json_encoding open Matrix_common module Get_visibility = struct module Query = Empty.Query module Response = struct type t = {visibility: Room.Visibility.t} [@@deriving accessor] let encoding = let to_tuple t = t.visibility in let of_tuple v = let visibility = v in {visib...
eb8089ed8f02057c98446afb5ce54802c2510249837a285846fc486897a6470d
8c6794b6/haskell-sc-scratch
SbHeap.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE NoImplicitPrelude # | Module : $ Header$ CopyRight : ( c ) 8c6794b6 License : : Stability : unstable Portability : non - portable Scratch written while reading /Purely Functional Fata Structure/ , by . This codes contains skew binomial he...
null
https://raw.githubusercontent.com/8c6794b6/haskell-sc-scratch/22de2199359fa56f256b544609cd6513b5e40f43/Scratch/Data/bsb-heap/Data/BsbHeap/SbHeap.hs
haskell
# LANGUAGE BangPatterns # ---------------------------------------------------------------------------- * Tree for skew binomial heap. # UNPACK # ---------------------------------------------------------------------------- * Functions for heap # INLINE empty #
# LANGUAGE NoImplicitPrelude # | Module : $ Header$ CopyRight : ( c ) 8c6794b6 License : : Stability : unstable Portability : non - portable Scratch written while reading /Purely Functional Fata Structure/ , by . This codes contains skew binomial heap , shown in figure 6.10 . ...
26a42d48c93d5503bf0eca23306be8c9f692699f193787965a5142c4adc29ea7
herbelin/coq-hh
ccalgo.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/herbelin/coq-hh/296d03d5049fea661e8bdbaf305ed4bf6d2001d2/plugins/cc/ccalgo.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** This file implements the basic cong...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Downey , and Tarjan . ope...
3f01c4fb924b246af460df3e31c5f7f13787ddf53a220e47cb446908f2609054
softwarelanguageslab/maf
R5RS_ad_all-4.scm
; Changes: * removed : 1 * added : 1 * swaps : 1 ; * negated predicates: 0 ; * swapped branches: 0 * calls to i d fun : 3 (letrec ((bubble-sort (lambda (vector) (letrec ((swap (lambda (vector index1 index2) (let ((temp (vector-ref vector index1)))...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_ad_all-4.scm
scheme
Changes: * negated predicates: 0 * swapped branches: 0
* removed : 1 * added : 1 * swaps : 1 * calls to i d fun : 3 (letrec ((bubble-sort (lambda (vector) (letrec ((swap (lambda (vector index1 index2) (let ((temp (vector-ref vector index1))) (<change> ...
493df54374a30f4dba1ebb87d4eee8b3ce50ef46f60834a0efdc11f39ac5b353
informatimago/lisp
missing.lisp
-*- mode : lisp;coding : utf-8 -*- ;;;;************************************************************************** FILE : missing.lisp ;;;;LANGUAGE: Common-Lisp ;;;;SYSTEM: Common-Lisp USER - INTERFACE : ;;;;DESCRIPTION ;;;; Implements CL standard operators missing from ...
null
https://raw.githubusercontent.com/informatimago/lisp/571af24c06ba466e01b4c9483f8bb7690bc46d03/mocl/kludges/missing.lisp
lisp
coding : utf-8 -*- ************************************************************************** LANGUAGE: Common-Lisp SYSTEM: Common-Lisp DESCRIPTION !!!! NOTICE THE LICENSE OF THIS FILE !!!! LEGAL This program is free software: you can redistribute it and/or modify (at your option)...
FILE : missing.lisp USER - INTERFACE : Implements CL standard operators missing from MoCL . < PJB > < > MODIFICATIONS 2015 - 03 - 01 < PJB > Created . AGPL3 Copyright 2015 - 2016 it under the terms of the GNU Affero General Public License as published by ...
5ce4cb4e1bbd7012aab0f63e1931a8007bfb340279f2d5879e5922a6dd83d0a0
larcenists/larceny
srfi-25-test.sps
;;; array test 2001 ;;; $ Id$ (import (rnrs base) (rnrs io simple) (srfi :25 multi-dimensional-arrays)) (define (writeln . xs) (for-each display xs) (newline)) (define (fail token . more) (writeln "Error: test failed: " token) #f) (define past (let ((stones '())) (lambda stone ...
null
https://raw.githubusercontent.com/larcenists/larceny/fef550c7d3923deb7a5a1ccd5a628e54cf231c75/lib/SRFI/test/srfi-25-test.sps
scheme
array test Simple tests Share and change: Check that arrays copy the shape specification Check that index arrays work even when they share Check that shape arrays work even when they share 2 10 11 12 13 1 10 11 1 11 13 1 11 12 1 12 12 2 12 16 ...
2001 $ Id$ (import (rnrs base) (rnrs io simple) (srfi :25 multi-dimensional-arrays)) (define (writeln . xs) (for-each display xs) (newline)) (define (fail token . more) (writeln "Error: test failed: " token) #f) (define past (let ((stones '())) (lambda stone (if (null? ston...
1ab6f9659a9266cdc045958fc71c0d87cd1aaf684b6bf81548b703843845fc26
nebogeo/weavingcodes
wwloomsim.scm
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; weavecoding raspberry pi installation ( scale 0.6 ) (rotate (vector 0 -45 0)) (define weft (build-jellyfish 4096)) (define warp (build-jellyfish 4096)) (define weave-scale (vector 0.2 -0.2 0.2)) (with-primitive weft (program-jelly 30 pr...
null
https://raw.githubusercontent.com/nebogeo/weavingcodes/e305a28a38ef745ca31de3074c8aec3953a72aa2/pattern-matrix/wwloomsim.scm
scheme
weavecoding raspberry pi installation top corner vertical connection bottom corner top corner vertical connection bottom corner selvedge time? weave section top shed bottom shed back section like weft but don't need to take account of direction
( scale 0.6 ) (rotate (vector 0 -45 0)) (define weft (build-jellyfish 4096)) (define warp (build-jellyfish 4096)) (define weave-scale (vector 0.2 -0.2 0.2)) (with-primitive weft (program-jelly 30 prim-triangles '(let ((vertex positions-start) (t 0) (v 0) (weft-direction (vector 2 0 0)...
a54e866afb6a1cd0c122c4893107fa21084838146e4514da7a602f3f49d126bf
bvaugon/ocamlpp
ocamlpp.ml
(*************************************************************************) (* *) (* OCamlPP *) (* *) ...
null
https://raw.githubusercontent.com/bvaugon/ocamlpp/ee8dbf90b2012cb20bb2a9730524e12bc59dc1f2/src/ocamlpp.ml
ocaml
*********************************************************************** OCamlPP ...
This file is distributed under the terms of the CeCILL license . let error msg = Printf.eprintf "Error: %s\n" msg; exit 1; ;; let usage () = Printf.eprintf "Usage: %s [ -version ] (<file.cmo> | <file.byte>)\n" Sys.argv.(0); exit 1; ;; ...
4bd16da9df63d7a924e095d5047ff19c141d6ffdc0653a69c05daca1b1b63af0
ananthakumaran/eopl
37.clj
(ns eopl.chap-5.37 (:use eopl.core.exception-lang) (:use clojure.test)) ;; Modify the defined language to raise an exception when a procedure ;; is called with the wrong number of arguments (deftest wrong-number-of-args (is (= (with-out-str (result "let f = proc(x) x in (f 5 5...
null
https://raw.githubusercontent.com/ananthakumaran/eopl/876d6c2e44865e2c89a05a683d99a289c71f1487/src/eopl/chap_5/37.clj
clojure
Modify the defined language to raise an exception when a procedure is called with the wrong number of arguments
(ns eopl.chap-5.37 (:use eopl.core.exception-lang) (:use clojure.test)) (deftest wrong-number-of-args (is (= (with-out-str (result "let f = proc(x) x in (f 5 5)")) "unhandled exception Wrong number of arguments expected 1 actual 2")))
65f0414898bd439829cc19badbf09f45347bab8ef44d9c0e46691a704edd1fb8
dyoo/ragg
simple-arithmetic-grammar.rkt
#lang ragg expr : term ('+' term)* term : factor ('*' factor)* factor : INT
null
https://raw.githubusercontent.com/dyoo/ragg/9cc648e045f7195702599b88e6b8db9364f88302/ragg/examples/simple-arithmetic-grammar.rkt
racket
#lang ragg expr : term ('+' term)* term : factor ('*' factor)* factor : INT
fd3de4e03f4dfc93d4ba57c8ebe1072138a237f03cf166e59ca7d0d4bea3efd9
tel/saltine
Sign.hs
-- | -- Module : Crypto.Saltine.Core.Sign Copyright : ( c ) 2013 License : MIT -- Maintainer : -- Stability : experimental -- Portability : non-portable -- -- Signatures: "Crypto.Saltine.Core.Sign" -- The ' newKeypair ' function randomly generates a secret key and a -- corresponding public ...
null
https://raw.githubusercontent.com/tel/saltine/3a02e9f988a15249afd3f0a0a8ce6bf0bbc97fb1/src/Crypto/Saltine/Core/Sign.hs
haskell
| Module : Crypto.Saltine.Core.Sign Stability : experimental Portability : non-portable Signatures: "Crypto.Saltine.Core.Sign" corresponding public key. The 'sign' function signs a message resulting signed message. The 'signOpen' function verifies the signature in a signed message using the signer's p...
Copyright : ( c ) 2013 License : MIT Maintainer : The ' newKeypair ' function randomly generates a secret key and a ' ByteString ' using the signer 's secret key and returns the " Crypto . Saltine . Core . Sign " is an EdDSA signature using elliptic - curve ( see : < / > ) . See also , \"...
885c86b7067ed26529cf055046b774c56e8fd07c4c16dd9dee89963eb7746bb7
CSCfi/rems
test_workflow.clj
(ns ^:integration rems.service.test-workflow (:require [clojure.test :refer :all] [rems.service.workflow :as workflow] [rems.db.test-data-helpers :as test-helpers] [rems.db.testing :refer [reset-caches-fixture rollback-db-fixture test-db-fixture]] [rems.testing-util :re...
null
https://raw.githubusercontent.com/CSCfi/rems/490087c4d58339c908da792111029fbaf817a26f/test/clj/rems/service/test_workflow.clj
clojure
(ns ^:integration rems.service.test-workflow (:require [clojure.test :refer :all] [rems.service.workflow :as workflow] [rems.db.test-data-helpers :as test-helpers] [rems.db.testing :refer [reset-caches-fixture rollback-db-fixture test-db-fixture]] [rems.testing-util :re...
32e6c4c186e9b5e5df15fe97b5b9dd86f2c2eb4c93a1f75923b60d8074315975
thelema/ocaml-community
builtin_text.ml
(* Not a string as such, more like a symbol *) (* type *) type textMark = string;; /type (* type *) type textTag = string;; /type ##ifdef CAMLTK (* type *) type textModifier = tk keyword : + /- | LineOffset of int (* tk keyword: +/- Xlines *) | LineStart (* tk keyword: linesta...
null
https://raw.githubusercontent.com/thelema/ocaml-community/ed0a2424bbf13d1b33292725e089f0d7ba94b540/otherlibs/labltk/builtin/builtin_text.ml
ocaml
Not a string as such, more like a symbol type type type tk keyword: +/- Xlines tk keyword: linestart tk keyword: lineend tk keyword: wordend type type tk keyword: +/- Xlines tk keyword: linestart tk keyword: lineend tk keyword: wordend type
type textMark = string;; /type type textTag = string;; /type ##ifdef CAMLTK type textModifier = tk keyword : + /- tk keyword : wordstart ;; /type type textIndex = | TextIndex of index * textModifier list | TextIndexNone ;; /type ##else type textModifier = [ tk keyword : + /- tk keyword : wo...
66693fcfe954435345b6fc9a398f38dc70adaa3a5b1b66056bbd7514f01fae10
calvis/cKanren
neq.rkt
#lang racket (require "../tester.rkt" "../ck.rkt" "../tree-unify.rkt" "../neq.rkt" "../matche.rkt" "../src/operators.rkt") (provide distincto rembero test-neq test-neq-long) (defmatche (distincto l) [[()]] [[(,a)]] [[(,a ,ad . ,dd)] (=/= a ad) (distincto `(,a . ,dd)) (distincto `(,ad . ,dd))]) ...
null
https://raw.githubusercontent.com/calvis/cKanren/8714bdd442ca03dbf5b1d6250904cbc5fd275e68/cKanren/tests/neq.rkt
racket
SIMPLE MEDIUM these test reification this tests the constraint-interaction HARD
#lang racket (require "../tester.rkt" "../ck.rkt" "../tree-unify.rkt" "../neq.rkt" "../matche.rkt" "../src/operators.rkt") (provide distincto rembero test-neq test-neq-long) (defmatche (distincto l) [[()]] [[(,a)]] [[(,a ,ad . ,dd)] (=/= a ad) (distincto `(,a . ,dd)) (distincto `(,ad . ,dd))]) ...
70b6583d2b2a4df016cf62dd178a2f2546d8a67710b3b09b8ab2f2c2d30f6562
pepeiborra/narradar
Test-Gen.hs
#!/usr/bin/env runhaskell # LANGUAGE TypeFamilies # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE TypeSynonymInstances #-} # LANGUAGE OverlappingInstances # # LANGUAGE UndecidableInstances # # LANGUAGE NoMonomorphismRestriction # import Control.Monad import Data.Maybe import qualified ...
null
https://raw.githubusercontent.com/pepeiborra/narradar/bc53dcad9aee480ab3424a75239bac67e4794456/test/Test-Gen.hs
haskell
# LANGUAGE TypeSynonymInstances # Missing dispatcher cases Prolog dispatch = apply SKTransformInfinitary > = > dispatch Prolog dispatch = apply SKTransformInfinitary >=> dispatch Rewriting Narrowing Goal Initial Goal Relative
#!/usr/bin/env runhaskell # LANGUAGE TypeFamilies # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverlappingInstances # # LANGUAGE UndecidableInstances # # LANGUAGE NoMonomorphismRestriction # import Control.Monad import Data.Maybe import qualified Language.Prolog.Syntax as Prolog impor...
3e153c4c3ed5975c42b0e2f2a4b0983fd1e3929278c8263a2229b9b06bba63c0
DATX02-17-26/DATX02-17-26
VarDecl.hs
DATX02 - 17 - 26 , automated assessment of imperative programs . - Copyright , 2017 , see AUTHORS.md . - - This program is free software ; you can redistribute it and/or - modify it under the terms of the GNU General Public License - as published by the Free Software Foundation ; either version 2 - ...
null
https://raw.githubusercontent.com/DATX02-17-26/DATX02-17-26/f5eeec0b2034d5b1adcc66071f8cb5cd1b089acb/libsrc/Norm/VarDecl.hs
haskell
| Normalizers for variable declarations. * Normalizers * The executor functions: ALLOCATE TODO ------------------------------------------------------------------------------ Exported Rules: ------------------------------------------------------------------------------ | Moves the variable declarations (+ any init...
DATX02 - 17 - 26 , automated assessment of imperative programs . - Copyright , 2017 , see AUTHORS.md . - - This program is free software ; you can redistribute it and/or - modify it under the terms of the GNU General Public License - as published by the Free Software Foundation ; either version 2 - ...
9b2c39c6e7b0a2de090b88da84d47030e1f3bf5b329e9d9ca7a5f8fca1724bac
samrushing/irken-compiler
t8.scm
(include "lib/core.scm") (let ((x 7) (y 3)) (+ x y))
null
https://raw.githubusercontent.com/samrushing/irken-compiler/690da48852d55497f873738df54f14e8e135d006/vm/tests/t8.scm
scheme
(include "lib/core.scm") (let ((x 7) (y 3)) (+ x y))
91f82dd96cb7493f6a3416b4f0589aeaa64431980fc2324b7448856a57b95a46
crategus/cl-cffi-gtk
gtk.menu-item.lisp
;;; ---------------------------------------------------------------------------- ;;; gtk.menu-item.lisp ;;; ;;; The documentation of this file is taken from the GTK 3 Reference Manual Version 3.24 and modified to document the Lisp binding to the GTK library . ;;; See <>. The API documentation of the Lisp binding is ...
null
https://raw.githubusercontent.com/crategus/cl-cffi-gtk/ba198f7d29cb06de1e8965e1b8a78522d5430516/gtk/gtk.menu-item.lisp
lisp
---------------------------------------------------------------------------- gtk.menu-item.lisp The documentation of this file is taken from the GTK 3 Reference Manual See <>. The API documentation of the Lisp binding is This program is free software: you can redistribute it and/or modify it under the terms of...
Version 3.24 and modified to document the Lisp binding to the GTK library . available from < -cffi-gtk/ > . Copyright ( C ) 2009 - 2011 Copyright ( C ) 2011 - 2021 as published by the Free Software Foundation , either version 3 of the the GNU Lesser General Public License that clarifies the terms for us...
0975a79aa819a18ab6b888f96a5399b7bda7eb04a346b2bb312811b335ce128b
mbenke/zpf2013
arr2.hs
add1 :: Monad m => m Int -> m Int -> m Int add1 mx my = mx >>= \x-> my >>= \y -> return $ x+y -- liftM2 (+) (?) = undefined addInt :: Int -> Int -> Int addInt = (+) -- infixr 5 <+> infixr 3 *** infixr 3 &&& infixr 2 + + + infixr 2 ||| infixr 1 ^ > > , > > ^ infixr 1 ^ < < , < < ^ infixr 1 >>>, <<< class ...
null
https://raw.githubusercontent.com/mbenke/zpf2013/85f32747e17f07a74e1c3cb064b1d6acaca3f2f0/Slides/12Arrow/arr2.hs
haskell
liftM2 (+) infixr 5 <+> uncurry (+)
add1 :: Monad m => m Int -> m Int -> m Int add1 mx my = mx >>= \x-> my >>= \y -> return $ x+y (?) = undefined addInt :: Int -> Int -> Int addInt = (+) infixr 3 *** infixr 3 &&& infixr 2 + + + infixr 2 ||| infixr 1 ^ > > , > > ^ infixr 1 ^ < < , < < ^ infixr 1 >>>, <<< class Arrow a where arr :: (b-...
1dab9609e6b44ebe3b685e2368612a679711155399cd7df4dfad34a889833079
serioga/webapp-clojure-2020
app_config.clj
(ns app.system.service.app-config (:require [clojure.edn :as edn] [clojure.string :as string] [integrant.core :as ig] [lib.config.props :as props] [lib.util.secret :as secret])) (set! *warn-on-reflection* true) •••••••••••••••••••••••••••••••••••••••••••••••••••••••••...
null
https://raw.githubusercontent.com/serioga/webapp-clojure-2020/91a7170a1be287bbfa5b9279d697208f7f806f9b/src/app/system/service/app_config.clj
clojure
(ns app.system.service.app-config (:require [clojure.edn :as edn] [clojure.string :as string] [integrant.core :as ig] [lib.config.props :as props] [lib.util.secret :as secret])) (set! *warn-on-reflection* true) •••••••••••••••••••••••••••••••••••••••••••••••••••••••••...
731fc7c70d4800ac9737c42af8ddf98a1a518b14d25501db3fce9f7bbbb903e4
sgbj/MaximaSharp
powers.lisp
Maxima code for extracting powers , finding leading and trailing ;; coefficients, and finding the degree of polynomials. Author , University of Nebraska at Kearney ( aka UNK ) December 2001 , December 2002 ;; License: GPL ;; The user of this code assumes all risk for its use. It has no warranty. ;; If you don...
null
https://raw.githubusercontent.com/sgbj/MaximaSharp/75067d7e045b9ed50883b5eb09803b4c8f391059/Test/bin/Debug/Maxima-5.30.0/share/maxima/5.30.0/share/contrib/powers.lisp
lisp
coefficients, and finding the degree of polynomials. License: GPL The user of this code assumes all risk for its use. It has no warranty. If you don't know the meaning of "no warranty," don't use this code. :) also wrote user documentation and a test routine. posintp(x) returns true iff x is a positive integer o...
Maxima code for extracting powers , finding leading and trailing Author , University of Nebraska at Kearney ( aka UNK ) December 2001 , December 2002 (in-package :maxima) ($put '$powers 1 '$version) Acknowledgement : helped find and correct bugs . He to be an integer and has been assumed to be grea...
b1ceebcb5379bae7a08278fc9b7d7ae308579c1e3d69a000378a5fffdc2434d9
roman01la/minimax
shadow.clj
(ns fg.passes.shadow (:require [bgfx.core :as bgfx] [fg.state :as state] [minimax.object :as obj] [minimax.objects.camera :as camera] [minimax.passes :as passes] [minimax.renderer.frame-buffer :as fb] [minimax.renderer.view :as view]) (:import (org.joml Matrix4f Vector3f) (org.lwjgl....
null
https://raw.githubusercontent.com/roman01la/minimax/f371c199d55a2a219ed7cf5f2dd2e079be99f963/src/fg/passes/shadow.clj
clojure
TODO: Maybe make it dependant on `:shadow-map-size` if the value is dynamic TODO: Maybe make it dependant on `shadow-map-fb`
(ns fg.passes.shadow (:require [bgfx.core :as bgfx] [fg.state :as state] [minimax.object :as obj] [minimax.objects.camera :as camera] [minimax.passes :as passes] [minimax.renderer.frame-buffer :as fb] [minimax.renderer.view :as view]) (:import (org.joml Matrix4f Vector3f) (org.lwjgl....
85fac5fd1b037aa06c2ef9c5664cb3a612b82e4d042bf0503b8e04c021ce6ad2
janestreet/vcaml
serialize_small.ml
(* tests automatically generated from a subset of -msgpack-python/blob/master/test_umsgpack.py *) open Core open Msgpack let print_hex = String.iter ~f:(fun c -> printf "\\x%02x" (Char.to_int c)) let%expect_test "nil" = let obj = Nil in let s = string_of_t_exn obj in print_hex s; [%expect {| \xc0 |}] ;; ...
null
https://raw.githubusercontent.com/janestreet/vcaml/b02fc56c48746fa18a6bc9a0f8fb85776db76977/msgpack/protocol/test/serialize_small.ml
ocaml
tests automatically generated from a subset of -msgpack-python/blob/master/test_umsgpack.py
open Core open Msgpack let print_hex = String.iter ~f:(fun c -> printf "\\x%02x" (Char.to_int c)) let%expect_test "nil" = let obj = Nil in let s = string_of_t_exn obj in print_hex s; [%expect {| \xc0 |}] ;; let%expect_test "bool false" = let obj = Boolean false in let s = string_of_t_exn obj in print...
940aa11b17e22e97d8550b0e40833b3b1aebafbd4e27b90b990a2ac85548d2b0
bobzhang/fan
test_fan_lang_include.ml
open Format open Fan_lang_include
null
https://raw.githubusercontent.com/bobzhang/fan/7ed527d96c5a006da43d3813f32ad8a5baa31b7f/src/todoml/test/test_fan_lang_include.ml
ocaml
open Format open Fan_lang_include
5f4a1d9a5ef204786b389905d75884d3290a0191a8c35f5e2569c40298fc6f86
d-cent/objective8
storage_test.clj
(ns objective8.unit.storage.storage_test (:require [midje.sweet :refer :all] [korma.core :as korma] [objective8.back-end.storage.storage :as s] [objective8.back-end.storage.mappings :as m])) (fact "attempts to store an object by looking up the entity mapping" (let [some-map ...
null
https://raw.githubusercontent.com/d-cent/objective8/db8344ba4425ca0b38a31c99a3b282d7c8ddaef0/test/objective8/unit/storage/storage_test.clj
clojure
(ns objective8.unit.storage.storage_test (:require [midje.sweet :refer :all] [korma.core :as korma] [objective8.back-end.storage.storage :as s] [objective8.back-end.storage.mappings :as m])) (fact "attempts to store an object by looking up the entity mapping" (let [some-map ...
d97f4d06097b290785ceeb3e0140ebe9367bbef040712bd0a60816455034350d
lispnik/cl-http
dtd.lisp
;;; -*- mode: LISP; package: "XML-PARSER"; -*- ;;; " <DOCUMENTATION> <DESCRIPTION> support for document type definitions. these comprise the declarations for elements, attributes, entities, and notations. the early versions (< 0.42) collected the definitions established as part of a given definition and encap...
null
https://raw.githubusercontent.com/lispnik/cl-http/84391892d88c505aed705762a153eb65befb6409/contrib/janderson/xml-1999-05-03/dtd.lisp
lisp
-*- mode: LISP; package: "XML-PARSER"; -*- if that fails if that fails,
" <DOCUMENTATION> <DESCRIPTION> support for document type definitions. these comprise the declarations for elements, attributes, entities, and notations. the early versions (< 0.42) collected the definitions established as part of a given definition and encapsulated then in a DTD object. later versions rely o...
d6afdf9ec0f202cbee099024e590b70b7a7fef9edd2da2cb914201a47650ead9
TyOverby/mono
focus.ml
open! Core open! Bonsai_web open! Bonsai.Let_syntax module Collated = Incr_map_collate.Collated module By_row = struct type 'k t = { focused : 'k option ; unfocus : unit Effect.t ; focus_up : unit Effect.t ; focus_down : unit Effect.t ; page_up : unit Effect.t ; page_down : unit Effect.t ...
null
https://raw.githubusercontent.com/TyOverby/mono/7666c0328d194bf9a569fb65babc0486f2aaa40d/vendor/janestreet-bonsai/web_ui/partial_render_table/src/focus.ml
ocaml
* This type is pretty integral to the row selection state-machine. A value of this type is stored as the "currently selected row" and also as the result for "next row down" queries. * [current] is the currently selected row. [shadow] is the previously selected row. Shadow is usef...
open! Core open! Bonsai_web open! Bonsai.Let_syntax module Collated = Incr_map_collate.Collated module By_row = struct type 'k t = { focused : 'k option ; unfocus : unit Effect.t ; focus_up : unit Effect.t ; focus_down : unit Effect.t ; page_up : unit Effect.t ; page_down : unit Effect.t ...
f03298869518601c5679df1f05e6d0f46706904dc828c423756721d46c563ea4
kind2-mc/kind2
lustreInput.mli
This file is part of the Kind 2 model checker . Copyright ( c ) 2015 by the Board of Trustees of the University of Iowa 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 a...
null
https://raw.githubusercontent.com/kind2-mc/kind2/d34694b4461323322fdcc291aa3c3d9c453fc098/src/lustre/lustreInput.mli
ocaml
This file is part of the Kind 2 model checker . Copyright ( c ) 2015 by the Board of Trustees of the University of Iowa 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 a...
52f4bd24d53ca0e15676e138f46baaae19398a22c11dfcd856002117b08ae6ef
IagoAbal/haskell-z3
Spec.hs
module Z3.Monad.Spec ( spec ) where import Test.Hspec import qualified Z3.Monad as Z3 import Control.Monad.IO.Class (liftIO) import Example.Monad.IntList ( mkIntListDatatype ) assertFuncName :: Z3.FuncDecl -> String -> Z3.Z3 () assertFuncName f expected = do actual <- Z3.getDeclName f >>= Z3.getSymbolString ...
null
https://raw.githubusercontent.com/IagoAbal/haskell-z3/ba5c2907c06a7844a78cf1fb87dae60f9b6ee6df/test/Z3/Monad/Spec.hs
haskell
Build the list-equiv function Both lists are nil lists are nil or cons and equivalent Define the body of the function equiv not equiv equiv not equiv equiv not equiv not equiv equiv
module Z3.Monad.Spec ( spec ) where import Test.Hspec import qualified Z3.Monad as Z3 import Control.Monad.IO.Class (liftIO) import Example.Monad.IntList ( mkIntListDatatype ) assertFuncName :: Z3.FuncDecl -> String -> Z3.Z3 () assertFuncName f expected = do actual <- Z3.getDeclName f >>= Z3.getSymbolString ...
9da044f61aa2f9f18dcd73b18a93e790a9b50f2a5f25c5e047d3e62a9d36d27f
mewa/clojure-k8s
policy.clj
(ns kubernetes.api.policy (:require [kubernetes.core :refer [call-api check-required-params with-collection-format]]) (:import (java.io File))) (defn get-policy-api-group-with-http-info " get information of a group" [] (call-api "/apis/policy/" :get {:path-params {} :header-param...
null
https://raw.githubusercontent.com/mewa/clojure-k8s/a7e8d82f0e0bc47e5678c72d7d9b8216080ccffc/src/kubernetes/api/policy.clj
clojure
(ns kubernetes.api.policy (:require [kubernetes.core :refer [call-api check-required-params with-collection-format]]) (:import (java.io File))) (defn get-policy-api-group-with-http-info " get information of a group" [] (call-api "/apis/policy/" :get {:path-params {} :header-param...
05a8f6311d3c15a6204bdc13fdaa96e50ddf6ff9dc1a6cfac625358abf270cb6
bpanthi977/nlopt
package.lisp
package.lisp (defpackage #:nlopt.cffi (:use #:cl)) (defpackage #:nlopt (:use #:cl) (:local-nicknames (:c :nlopt.cffi)) (:export #:copy #:algorithm #:dimensions #:algorithms #:algorithm-name #:create #:set-min-objective #:set-max-o...
null
https://raw.githubusercontent.com/bpanthi977/nlopt/675b4862cd3b3f54c91801f0a8e27b7ba32afbb5/package.lisp
lisp
package.lisp (defpackage #:nlopt.cffi (:use #:cl)) (defpackage #:nlopt (:use #:cl) (:local-nicknames (:c :nlopt.cffi)) (:export #:copy #:algorithm #:dimensions #:algorithms #:algorithm-name #:create #:set-min-objective #:set-max-o...
4c2379cb196cffd9dc6e9b92ca2ad88e0cdd54fec5da9ea568e3d7135fe3ed50
input-output-hk/plutus
Lib.hs
-- editorconfig-checker-disable-file {-# LANGUAGE DerivingStrategies #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE TypeApplications # {-# LANGUAGE TypeOperators #-} # LANGUAGE Undecidab...
null
https://raw.githubusercontent.com/input-output-hk/plutus/bb9b5a18c26476fbf6b2f446ab267706426fec3a/plutus-tx-plugin/test/Lib.hs
haskell
editorconfig-checker-disable-file # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeOperators #
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeApplications # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -Wno - orphans # module Lib where import Control.Exception import Control.Lens import Control.Monad.Except import Data.Either.Extras import Data.Maybe (fromJus...
5157070d8c3e20482f85335451421e89af69050e30a459efc86c71d4f8221723
let-def/lrgrep
Tabulate.ml
(******************************************************************************) (* *) (* Fix *) (* ...
null
https://raw.githubusercontent.com/let-def/lrgrep/29e64174dc9617bcd1871fd2e4fd712269568324/lib/fix/Tabulate.ml
ocaml
**************************************************************************** Fix ...
, Paris . All rights reserved . This file is distributed under the terms of the GNU Library General Public License version 2 , with a open Sigs module Make (F : FINITE_TYPE) (M : MINIMAL_IMPERATIVE_MAPS with type key = F.t) = struct type key...
49deb8020778bd619be27de265f50cd3cd3365f2e0517d6d9a198f74fcb7b198
phoe-trash/gateway
standard-kernel.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;; GATEWAY " phoe " Herda 2017 ;;;; classes/standard-kernel.lisp (in-package :gateway/impl) (in-readtable protest) (defclass standard-kernel (kernel) ((%kernel :accessor %kernel) (%channel :accessor channel) (%cleaner :acc...
null
https://raw.githubusercontent.com/phoe-trash/gateway/a8d579ccbafcaee8678caf59d365ec2eab0b1a7e/impl/standard-kernel.lisp
lisp
GATEWAY classes/standard-kernel.lisp REST is ignored ~ TESTS
" phoe " Herda 2017 (in-package :gateway/impl) (in-readtable protest) (defclass standard-kernel (kernel) ((%kernel :accessor %kernel) (%channel :accessor channel) (%cleaner :accessor cleaner) (%handler :accessor handler :initarg :handler :initform (error "Must provide a handl...
54d6ac719fd4f44ff560592d0a0bfdfad85b74a4e6bb8bdba1373d0e87d8ba23
reborg/clojure-essential-reference
1.clj
(foldcat [coll]) (cat ([]) ([ctor]) ([left right])) (append! [acc el])
null
https://raw.githubusercontent.com/reborg/clojure-essential-reference/c37fa19d45dd52b2995a191e3e96f0ebdc3f6d69/ReducersandTransducers/Reducers/foldcat%2Ccatandappend!/1.clj
clojure
(foldcat [coll]) (cat ([]) ([ctor]) ([left right])) (append! [acc el])
f210f38574b323464a932b13cb68df5ed2c029e8c5913e3bad09d12064654f5e
bishboria/learnyouahaskell
15_zipping_lists.hs
type ListZipper a = ([a],[a]) goForward :: ListZipper a -> ListZipper a goForward (x:xs, bs) = (xs, x:bs) goBack :: ListZipper a -> ListZipper a goBack (xs, b:bs) = (b:xs, bs) xs = [1,2,3,4] a = goForward (xs, []) b = goForward ([2,3,4], [1]) c = goForward ([3,4],[2,1]) d = goBack ([4],[3,2,1])
null
https://raw.githubusercontent.com/bishboria/learnyouahaskell/d8c7b41398e9672db18c1b1360372fc4a4adefa8/15/15_zipping_lists.hs
haskell
type ListZipper a = ([a],[a]) goForward :: ListZipper a -> ListZipper a goForward (x:xs, bs) = (xs, x:bs) goBack :: ListZipper a -> ListZipper a goBack (xs, b:bs) = (b:xs, bs) xs = [1,2,3,4] a = goForward (xs, []) b = goForward ([2,3,4], [1]) c = goForward ([3,4],[2,1]) d = goBack ([4],[3,2,1])
8e885f6e3060fd2999fd9ba5dda45b99f4435acf42a5546efd0a234d90fc8efd
rizo/snowflake-os
fonts.ml
module BDF = struct type bbox = { width : int; height : int; x_offset : int; y_offset : int; } type glyph = { dwidth : int * int; bbox : bbox; data : bool array array; } type weight = Normal | Bold type slant = Regular | Italic type font = { family : string; weight : weight; slant ...
null
https://raw.githubusercontent.com/rizo/snowflake-os/51df43d9ba715532d325e8880d3b8b2c589cd075/kernel/fonts.ml
ocaml
some reason, the slant field is always Regular, so hack around to fix it draws the specified character from given font at [px,py] with [colour], and returns the position to use for drawing the next character
module BDF = struct type bbox = { width : int; height : int; x_offset : int; y_offset : int; } type glyph = { dwidth : int * int; bbox : bbox; data : bool array array; } type weight = Normal | Bold type slant = Regular | Italic type font = { family : string; weight : weight; slant ...
de95aec952114953e3ff81a7b2b93a0562b0fff80c49fcb30c23b9767b215d84
ostinelli/misultin
misultin_cookies_example.erl
% ========================================================================================================== MISULTIN - Example : Show how to set / retrieve cookies . % % >-|-|-(°> % Copyright ( C ) 2011 , < > % All rights reserved. % % BSD License % % Redistribution and use in source and binary forms, with or...
null
https://raw.githubusercontent.com/ostinelli/misultin/b9fe3125cf17f4415a6d7fc60642b670f5e18eb8/examples/misultin_cookies_example.erl
erlang
========================================================================================================== >-|-|-(°> All rights reserved. BSD License Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistribu...
MISULTIN - Example : Show how to set / retrieve cookies . Copyright ( C ) 2011 , < > THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " AND ANY EXPRESS OR PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT HOLDER OR FOR ANY DIRECT , INDIRECT , INCIDENTAL , SP...
9538e8b51f5476083f4b2822de1441854518dc4c6d770333dc2705f0aa8863e0
KaroshiBee/weevil
dap_commands.mli
(* NOTE autogenerated, do not manually edit *) type 'a t type disassemble type writeMemory type readMemory type exceptionInfo type completions type gotoTargets type stepInTargets type setExpression type evaluate type loadedSources type modules type terminateThreads type threads type source type setVariable type variab...
null
https://raw.githubusercontent.com/KaroshiBee/weevil/1b166ba053062498c1ec05c885e04fba4ae7d831/lib/dapper/dap_commands.mli
ocaml
NOTE autogenerated, do not manually edit
type 'a t type disassemble type writeMemory type readMemory type exceptionInfo type completions type gotoTargets type stepInTargets type setExpression type evaluate type loadedSources type modules type terminateThreads type threads type source type setVariable type variables type scopes type stackTrace type pause type...
57513b4af99110b543094ab191d7f0c2d24177280008d16899968595dd8b968f
sordina/Deadpan-DDP
EJson.hs
| Description : Internal definitions for EJson functionality Currently EJson functionality is built on top of the ` Data . Aeson . Value ` type . Functions are written to convert back and forth between ` Data . EJson . EJsonValue ` and ` Data . Aeson . Value ` . The conversion functions from...
null
https://raw.githubusercontent.com/sordina/Deadpan-DDP/d0f115cbc7132a87cababc587064d8f851165e85/src/Data/EJson/EJson.hs
haskell
# LANGUAGE RankNTypes # # LANGUAGE TemplateHaskell # # LANGUAGE OverloadedStrings # # LANGUAGE TypeSynonymInstances # Conversion functions Instances follow! | A helpful prism that looks up values of type EJ{"foo" : "bar", ...} with a Text key "foo" and returns Just "bar", or Nothing. Used fr...
| Description : Internal definitions for EJson functionality Currently EJson functionality is built on top of the ` Data . Aeson . Value ` type . Functions are written to convert back and forth between ` Data . EJson . EJsonValue ` and ` Data . Aeson . Value ` . The conversion functions from...
fa06743e6b8dd2a43a67169f1617b166699c6fadc658e37498585316eacdf38d
typelead/eta
tc229.hs
{ - # OPTIONS_GHC -Wno - simplifiable - class - constraints # - } -- -Wno-redundant-constraints trac # 1406 : Constraint does n't reduce in the presence of quantified -- type variables # LANGUAGE FlexibleInstances , UndecidableInstances , RankNTypes , MultiParamTypeClasses , FunctionalD...
null
https://raw.githubusercontent.com/typelead/eta/97ee2251bbc52294efbf60fa4342ce6f52c0d25c/tests/suite/typecheck/compile/tc229.hs
haskell
-Wno-redundant-constraints type variables ... but this doesn't work...?
{ - # OPTIONS_GHC -Wno - simplifiable - class - constraints # - } trac # 1406 : Constraint does n't reduce in the presence of quantified # LANGUAGE FlexibleInstances , UndecidableInstances , RankNTypes , MultiParamTypeClasses , FunctionalDependencies # MultiParamTypeClasses, Functional...
a2f1a6b0d9c94a6bd6e78a2a862bcc136ae3950351f522f48dc5b7b2d4e68e4f
ygrek/ocaml-extlib
util.ml
* ExtLib Testing Suite * Copyright ( C ) 2004 * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation ; either * version 2.1 of the License , or ( at your option ) any la...
null
https://raw.githubusercontent.com/ygrek/ocaml-extlib/0779f7a881c76f9aca3d5445e2f063ba38a76167/test/util.ml
ocaml
For counting the success ratio
* ExtLib Testing Suite * Copyright ( C ) 2004 * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation ; either * version 2.1 of the License , or ( at your option ) any la...
3d391c2c1af60f7d659a1080f4a1ae966902f0d34dc0967f4cf8c9f791cc74c9
craigfe/ppx_effects
invalid_payload_type_in_match.ml
let () = match () with [%effect ()] -> ()
null
https://raw.githubusercontent.com/craigfe/ppx_effects/ea1b5b940ff9619cc242f974db9d31e51e4d89a5/test/errors/invalid_payload_type_in_match.ml
ocaml
let () = match () with [%effect ()] -> ()
a824d75b5e9d609ac4b49383110422523971861e58c6a3521f26bd59eff06e47
vodori/schema-forms
core_test.clj
(ns schema-forms.core-test (:require [clojure.test :refer :all] [schema-forms.core :refer :all] [schema.core :as s] [schema-forms.helpers :refer :all])) (s/defschema RecursivePerson {:firstName s/Str :friends [(s/recursive #'RecursivePerson)]}) (deftest prismatic->json-sc...
null
https://raw.githubusercontent.com/vodori/schema-forms/876e13710f922c152a184c4cbe7bfd3c18990cce/test/schema_forms/core_test.clj
clojure
(ns schema-forms.core-test (:require [clojure.test :refer :all] [schema-forms.core :refer :all] [schema.core :as s] [schema-forms.helpers :refer :all])) (s/defschema RecursivePerson {:firstName s/Str :friends [(s/recursive #'RecursivePerson)]}) (deftest prismatic->json-sc...
abe06a26d774e6c5f0fd455c8d7aa9da6f159945c5d38f6b64883bf31349067c
Gabriella439/Haskell-Succinct-Vector-Library
Primitives.hs
module Succinct.Vector.Primitives where import Control.Monad.Primitive (PrimMonad, PrimState) import Control.Monad.ST (ST) import Data.Primitive.Types (Prim) import qualified Data.Vector.Primitive import qualified Data.Vector.Primitive.Mutable {-@ measure plen :: Data.Vector.Primitive.Vector a -> Int @-} @ assume...
null
https://raw.githubusercontent.com/Gabriella439/Haskell-Succinct-Vector-Library/9538eb47a34905136fad79497f9539ffc1db3239/src/Succinct/Vector/Primitives.hs
haskell
@ measure plen :: Data.Vector.Primitive.Vector a -> Int @
module Succinct.Vector.Primitives where import Control.Monad.Primitive (PrimMonad, PrimState) import Control.Monad.ST (ST) import Data.Primitive.Types (Prim) import qualified Data.Vector.Primitive import qualified Data.Vector.Primitive.Mutable @ assume Data.Vector.Primitive.length : : Prim a = > v : D...
225b37fd60b96e6e3c4233dfb6b14210ae9e5bd8818e9ff93bf725cda4ce5479
luciodale/fork
datepicker.cljs
(ns examples.datepicker (:require ;; for CSS use: ;; -dates@16.3.2/lib/css/_datepicker.css [cljsjs.react-dates] [cljs.pprint :as pprint] [fork.reagent :as fork])) (defn react-dates-single-date-picker [k {:keys [values state set-values]}] [:> js/ReactDates.SingleDatePicker {:date (get values k) ...
null
https://raw.githubusercontent.com/luciodale/fork/3c7a47abcd400406752c1f0c7391b6610008cfab/examples/datepicker.cljs
clojure
for CSS use: -dates@16.3.2/lib/css/_datepicker.css
(ns examples.datepicker (:require [cljsjs.react-dates] [cljs.pprint :as pprint] [fork.reagent :as fork])) (defn react-dates-single-date-picker [k {:keys [values state set-values]}] [:> js/ReactDates.SingleDatePicker {:date (get values k) :display-format "DD MMM YYYY" :on-focus-change (fn [e] ...
43b9706880344c8f5bf3255090bc9b74000155827f803cfcceb544278f7c35c4
wilbowma/cur
sugar.rkt
#lang cur (require cur/stdlib/sugar rackunit/turnstile+) (define-datatype Nat : Type [Z : Nat] [S : (→ Nat Nat)]) (define/rec/match plus : Nat [n : Nat] -> Nat [Z => n] [(S x) => (S (plus x n))]) (define/rec/match minus : Nat Nat -> Nat [Z _ => Z] [(S n-1) z => (S n-1)] [(S n-1) (S m-1) => (minus n-1...
null
https://raw.githubusercontent.com/wilbowma/cur/e039c98941b3d272c6e462387df22846e10b0128/cur-test/cur/tests/stdlib/sugar.rkt
racket
TODO: Missing tests for match, others check that raises decent syntax error the following tests that typecheck-relation properly restored (even after err);
#lang cur (require cur/stdlib/sugar rackunit/turnstile+) (define-datatype Nat : Type [Z : Nat] [S : (→ Nat Nat)]) (define/rec/match plus : Nat [n : Nat] -> Nat [Z => n] [(S x) => (S (plus x n))]) (define/rec/match minus : Nat Nat -> Nat [Z _ => Z] [(S n-1) z => (S n-1)] [(S n-1) (S m-1) => (minus n-1...
af896bfa999f4db6a2fb8a5678ab44c48094130ac18f72b33de71d6b2ed9bf33
craff/pacomb
lex.ml
let default : 'a -> 'a option -> 'a = fun d o -> match o with | None -> d | Some e -> e type buf = Input.buffer type idx = Input.idx (** Exception to be raised when the input is rejected *) exception NoParse exception Give_up of string (** [give_up ()] rejects parsing from a corresponding semantic action. *...
null
https://raw.githubusercontent.com/craff/pacomb/a83ac9ccae510008e64a77418c41760245aec967/lib/lex.ml
ocaml
* Exception to be raised when the input is rejected * [give_up ()] rejects parsing from a corresponding semantic action. * Terminal: same as blank with a value returned * name * the terminal itself * the set of characters accepted at the beginning of input for eof to passe ...
let default : 'a -> 'a option -> 'a = fun d o -> match o with | None -> d | Some e -> e type buf = Input.buffer type idx = Input.idx exception NoParse exception Give_up of string let give_up : ?msg:string -> unit -> 'a = fun ?msg () -> match msg with None -> raise NoParse | Some s -> raise ...
23f6bf34688d72d60f1adafa1e1b4e120567bd6bcf98adada749dac93e81c753
Tim-ats-d/Suricate
handler.mli
(** Handler are used to make the link with logger. *) (** {1 Handlers} *) * { 2 Handler module type } (** API used to describle a handler. *) module type HANDLER = sig (** The formatter used by handler to log message. *) val formatter : Formatter.t (** The function which called by [Logger] when it log *) va...
null
https://raw.githubusercontent.com/Tim-ats-d/Suricate/bef2bbc8f3cd4420213e6263e3e15a0fe90edb29/lib/handler.mli
ocaml
* Handler are used to make the link with logger. * {1 Handlers} * API used to describle a handler. * The formatter used by handler to log message. * The function which called by [Logger] when it log * Full API used to describe a handler with its own log level. * The handler's log level
* { 2 Handler module type } module type HANDLER = sig val formatter : Formatter.t val emit : string -> unit end module type LEVELED_HANDLER = sig include HANDLER val level : Log_level.t end * { 2 API } * [ Handler.create level ~formatter ~emit ] produces a fresh [ LEVELED_HANDLER ] . It is a shorc...
5e9132adb1511ffbd199506fc1e8d6c0572ceaf86db77c9fc7692699c4569d4c
flotsfacetieux/sorcery-es
sorcery.lisp
(in-package :sorcery-es) (load-stencils) (defun canvas-x () (setf *canvas-x* (aref (sdl:video-dimensions) 0))) (defun canvas-middle-x () (setf *canvas-middle-x* (/ *canvas-x* 2))) (defun canvas-origin-x () (setf *origin-x* (/ (- *canvas-x* *area-width*) 2))) (defun load-graphics () (setf *bg-sheet* (m...
null
https://raw.githubusercontent.com/flotsfacetieux/sorcery-es/9780a31fa2b61451d294cc23775b30098fcd3b4d/sorcery.lisp
lisp
(make-instance 'sdl:fps-fixed)
(in-package :sorcery-es) (load-stencils) (defun canvas-x () (setf *canvas-x* (aref (sdl:video-dimensions) 0))) (defun canvas-middle-x () (setf *canvas-middle-x* (/ *canvas-x* 2))) (defun canvas-origin-x () (setf *origin-x* (/ (- *canvas-x* *area-width*) 2))) (defun load-graphics () (setf *bg-sheet* (m...
330233c21e671c3c7417cd999d3d03ae59c6a87066db06d2510d11b25653465c
BrunoBonacci/mulog
your_ns.clj
(ns your-ns (:require [com.brunobonacci.mulog :as μ])) (comment (μ/log ::hello :to "New World!") (μ/start-publisher! {:type :console}) (μ/log ::event-name, :key1 "value1", :key2 :value2, :keyN "valueN") (μ/log ::system-started :version "0.1.0") (μ/log ::user-logged :user-id "1234567" :remote-ip "1.2...
null
https://raw.githubusercontent.com/BrunoBonacci/mulog/e31f84ccf6d62d43c1c620ef5584722886e0d8a5/mulog-core/dev/your_ns.clj
clojure
:app-name "mulog-demo", :env "local", :app-name "mulog-demo", :env "local", :item-id "sku-123", :order "abc123", :app-name "mulog-demo", :env "local", :item-id "sku-123", :order "abc123", :transaction-id "tx-098765", ... do something ... do something :app-name "mulog-demo", :env "local", :...
(ns your-ns (:require [com.brunobonacci.mulog :as μ])) (comment (μ/log ::hello :to "New World!") (μ/start-publisher! {:type :console}) (μ/log ::event-name, :key1 "value1", :key2 :value2, :keyN "valueN") (μ/log ::system-started :version "0.1.0") (μ/log ::user-logged :user-id "1234567" :remote-ip "1.2...
898aa945968c861c360b035757943e355c53420381362ec23c70f15918b913dc
Rober-t/apxr_run
experiment_mgr_sup.erl
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright ( C ) 2018 ApproximateReality %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%---------------------------------------------------------------------------- @doc ExperimentMgr top supervisor ....
null
https://raw.githubusercontent.com/Rober-t/apxr_run/9c62ab028af7ff3768ffe3f27b8eef1799540f05/src/experiment_mgr/experiment_mgr_sup.erl
erlang
---------------------------------------------------------------------------- @end ---------------------------------------------------------------------------- Supervisor callbacks ============================================================================ Types ====================================================...
Copyright ( C ) 2018 ApproximateReality @doc ExperimentMgr top supervisor . -module(experiment_mgr_sup). -behaviour(supervisor). Start / Stop -export([ start_link/0 ]). -export([ init/1 ]). Xref -ignore_xref([ start_link/0 ]). -type sup_flags() :: #{ intensity => non_neg_integer(), period => po...
d6ddd63e9303444c830ad5738e27aadd46e349aadb33cd8f1582ab29e203a724
austinhaas/goalie
stacktrace.clj
(ns pettomato.goalie.stacktrace (:require [pettomato.goalie.graph :refer (path)])) ;; I don't know the proper format for these fields; I just tried to ;; mimic what I saw in other stacktraces. (defn stackelement [node] (let [{:keys [name ns file line]} (meta (:gvar node)) decl-class (str (ns-name ns) "$...
null
https://raw.githubusercontent.com/austinhaas/goalie/6166dd05c27f5abdf5c760687d6efc110846abf1/src/com/pettomato/goalie/stacktrace.clj
clojure
I don't know the proper format for these fields; I just tried to mimic what I saw in other stacktraces.
(ns pettomato.goalie.stacktrace (:require [pettomato.goalie.graph :refer (path)])) (defn stackelement [node] (let [{:keys [name ns file line]} (meta (:gvar node)) decl-class (str (ns-name ns) "$" name) method-name "invoke"] (StackTraceElement. decl-class method-name file line))) (defn stack...
18ced3c1a80d8c502b514d932adfcf97cdfd021bb29b7ca72552d69671fffa8e
hjcapple/reading-sicp
exercise_3_37.scm
#lang racket P205 - [ 练习 3.37 ] (#%require "constraints.scm") (define (c+ x y) (let ((z (make-connector))) (adder x y z) z)) (define (c* x y) (let ((z (make-connector))) (multiplier x y z) z)) (define (c/ x y) (let ((z (make-connector))) (multiplier z y x) z)) (define (cv x) (let...
null
https://raw.githubusercontent.com/hjcapple/reading-sicp/7051d55dde841c06cf9326dc865d33d656702ecc/chapter_3/exercise_3_37.scm
scheme
#lang racket P205 - [ 练习 3.37 ] (#%require "constraints.scm") (define (c+ x y) (let ((z (make-connector))) (adder x y z) z)) (define (c* x y) (let ((z (make-connector))) (multiplier x y z) z)) (define (c/ x y) (let ((z (make-connector))) (multiplier z y x) z)) (define (cv x) (let...
edd4a40627d74b261e64a66bfac1969968fff0245d404e88fdd57b781628c203
mbj/stratosphere
AWSManagedRulesBotControlRuleSetProperty.hs
module Stratosphere.WAFv2.WebACL.AWSManagedRulesBotControlRuleSetProperty ( AWSManagedRulesBotControlRuleSetProperty(..), mkAWSManagedRulesBotControlRuleSetProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Strato...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/wafv2/gen/Stratosphere/WAFv2/WebACL/AWSManagedRulesBotControlRuleSetProperty.hs
haskell
module Stratosphere.WAFv2.WebACL.AWSManagedRulesBotControlRuleSetProperty ( AWSManagedRulesBotControlRuleSetProperty(..), mkAWSManagedRulesBotControlRuleSetProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Strato...
edb9b888e3d920350b8802368d334e91140ccb0625bcc2ae0a845710612507d9
jtdaugherty/vty
Classify.hs
{-# OPTIONS_HADDOCK hide #-} -- This makes a kind of trie. Has space efficiency issues with large -- input blocks. Likely building a parser and just applying that would -- be better. module Graphics.Vty.Input.Classify ( classify , KClass(..) , ClassifierState(..) ) where import Graphics.Vty.Input.Events import...
null
https://raw.githubusercontent.com/jtdaugherty/vty/1f4926369eac21657888aaf64cad20006d6c68d6/src/Graphics/Vty/Input/Classify.hs
haskell
# OPTIONS_HADDOCK hide # This makes a kind of trie. Has space efficiency issues with large input blocks. Likely building a parser and just applying that would be better. | Whether the classifier is currently processing a chunked format. Currently, only bracketed pastes use this. ^ Not processing a chunked format....
module Graphics.Vty.Input.Classify ( classify , KClass(..) , ClassifierState(..) ) where import Graphics.Vty.Input.Events import Graphics.Vty.Input.Mouse import Graphics.Vty.Input.Focus import Graphics.Vty.Input.Paste import Graphics.Vty.Input.Classify.Types import Codec.Binary.UTF8.Generic (decode) import C...
7093a69c069dc09aa4a05aa4556da0753f78f2cdd15a5ed0b7a9416a36fa8134
Dept24c/vivo
client.cljc
(ns com.dept24c.vivo.client (:require [clojure.core.async :as ca] [com.dept24c.vivo.bristlecone.block-ids :as block-ids] [com.dept24c.vivo.client.topic-subscriptions :as topic-subscriptions] [com.dept24c.vivo.client.state-subscriptions :as state-subscriptions] [com.dept24c.vivo.commands :as commands] ...
null
https://raw.githubusercontent.com/Dept24c/vivo/19938827c92ff1d3d7f64ae0432b75fa2f8fc303/src/com/dept24c/vivo/client.cljc
clojure
Use i->v map to preserve original command order TODO: Handle failed sys update (offline data may obviate this need) Do this explicitly in case we aren't connected Don't need to request a :db-changed msg here because :log-out will generate one if we are connected. If we aren't connected, the request would fail any...
(ns com.dept24c.vivo.client (:require [clojure.core.async :as ca] [com.dept24c.vivo.bristlecone.block-ids :as block-ids] [com.dept24c.vivo.client.topic-subscriptions :as topic-subscriptions] [com.dept24c.vivo.client.state-subscriptions :as state-subscriptions] [com.dept24c.vivo.commands :as commands] ...
524b108f2c66106cc0ea4c514ef9f643c86ddc68e65f498efeea678b8eed3c29
kuchma19/hi
Main.hs
# LANGUAGE BlockArguments # module Main where import Control.Monad.Cont (liftIO) import Control.Monad.Trans.Class (lift) import GHC.Exts (fromList) import HW3.Action import HW3.Evaluator (eval) import HW3.Parser (parse) import HW3.Pretty (prettyValue, showError) import Prettyprinter.Internal (line, pretty) import Pre...
null
https://raw.githubusercontent.com/kuchma19/hi/7d4d06acbd73deb625c48a91de269bebe9c2a3fb/hw3/app/Main.hs
haskell
# LANGUAGE BlockArguments # module Main where import Control.Monad.Cont (liftIO) import Control.Monad.Trans.Class (lift) import GHC.Exts (fromList) import HW3.Action import HW3.Evaluator (eval) import HW3.Parser (parse) import HW3.Pretty (prettyValue, showError) import Prettyprinter.Internal (line, pretty) import Pre...
952f3e865fa9dc10494833ec2b1125147f833496bf448941db1ed6849ed6bc27
danieljharvey/mimsa
ModuleHash.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # module Language.Mimsa.Core.Types.Module.ModuleHash where import qualified Data.Aeson as JSON import Data.Hashable import Data.OpenApi import Data.Text (Text) import qualified Data.Text as T import...
null
https://raw.githubusercontent.com/danieljharvey/mimsa/d6a5d1933b82268458b1489c1d087e96b0d8e8fc/core/src/Language/Mimsa/Core/Types/Module/ModuleHash.hs
haskell
because of the size of the ints we JSON encode these as strings
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # module Language.Mimsa.Core.Types.Module.ModuleHash where import qualified Data.Aeson as JSON import Data.Hashable import Data.OpenApi import Data.Text (Text) import qualified Data.Text as T import...
65e2c61163b294264f11a0792f7a8bca3c20ec379613faed506e0264aea0fd98
tarides/opam-monorepo
test_git.ml
module Testable = struct include Testable let commit_pointed_by_error = let equal err err' = match (err, err') with | `No_such_ref, `No_such_ref -> true | `Multiple_such_refs, `Multiple_such_refs -> true | `Msg s, `Msg s' -> String.equal s s' | _ -> false in let pp fmt = f...
null
https://raw.githubusercontent.com/tarides/opam-monorepo/9262e7f71d749520b7e046fbd90a4732a43866e9/test/lib/test_git.ml
ocaml
module Testable = struct include Testable let commit_pointed_by_error = let equal err err' = match (err, err') with | `No_such_ref, `No_such_ref -> true | `Multiple_such_refs, `Multiple_such_refs -> true | `Msg s, `Msg s' -> String.equal s s' | _ -> false in let pp fmt = f...
1b51930b060d24834a105e8bd40913b4fb06c5922bc32a4a46963c96e666c907
logicblocks/cartus
project.clj
(defproject io.logicblocks/cartus.test "0.1.18-RC4" :description "A test backend for cartus." :plugins [[lein-modules "0.3.11"]] :dependencies [[org.clojure/math.combinatorics "_"] [nubank/matcher-combinators "_"] [io.logicblocks/cartus.core :version]])
null
https://raw.githubusercontent.com/logicblocks/cartus/e8052399ec6e47aad52d3251ce7dd74a72d350ab/test/project.clj
clojure
(defproject io.logicblocks/cartus.test "0.1.18-RC4" :description "A test backend for cartus." :plugins [[lein-modules "0.3.11"]] :dependencies [[org.clojure/math.combinatorics "_"] [nubank/matcher-combinators "_"] [io.logicblocks/cartus.core :version]])
0dbbfd0980e2f021b0b72d51ca3875187b7323adf26bc430302fac82a38f8738
unclechu/xlib-keys-hack
KeysActions.hs
Author : License : -keys-hack/master/LICENSE {-# LANGUAGE ScopedTypeVariables, DataKinds #-} module Process.KeysActions ( processKeysActions ) where import "base" Data.Proxy (Proxy (Proxy)) import "base" Control.Concurrent.Chan (readChan) import "base" Control.Monad (unless, forever) import "X11" Graphi...
null
https://raw.githubusercontent.com/unclechu/xlib-keys-hack/33b49a9b1fc4bc87bdb95e2bb632a312ec2ebad0/src/Process/KeysActions.hs
haskell
# LANGUAGE ScopedTypeVariables, DataKinds # local imports TODO NonEmpty
Author : License : -keys-hack/master/LICENSE module Process.KeysActions ( processKeysActions ) where import "base" Data.Proxy (Proxy (Proxy)) import "base" Control.Concurrent.Chan (readChan) import "base" Control.Monad (unless, forever) import "X11" Graphics.X11.Types (type KeyCode) import "X11" Graphic...
2122be3712a3aa3a110e510439bfd93cd373abbcbddf5850a430fcdb5992566d
dnaeon/cl-jingle
cli-create-command.lisp
Copyright ( c ) 2022 Nikolov < > ;; All rights reserved. ;; ;; Redistribution and use in source and binary forms, with or without ;; modification, are permitted provided that the following conditions ;; are met: ;; 1 . Redistributions of source code must retain the above copyright ;; notice, this list of co...
null
https://raw.githubusercontent.com/dnaeon/cl-jingle/b8edf9a9caccffa599262caf6a77a7b3f542bd6f/demo/src/cli-create-command.lisp
lisp
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: notice, this list of conditions and the following disclaimer in this position and unchanged. notice, this list of conditions and the fo...
Copyright ( c ) 2022 Nikolov < > 1 . Redistributions of source code must retain the above copyright 2 . Redistributions in binary form must reproduce the above copyright THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S ) ` ` AS IS '' AND ANY EXPRESS OR INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES...
5a0c50e808ba013268325faff887108623bd018427a5090ab157fcd21bfe66d6
chef/chef-server
chef_objects_test_utils.erl
-*- erlang - indent - level : 4;indent - tabs - mode : nil ; fill - column : 92-*- %% ex: ts=4 sw=4 et @author < > Copyright Chef Software , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance w...
null
https://raw.githubusercontent.com/chef/chef-server/6d31841ecd73d984d819244add7ad6ebac284323/src/oc_erchef/apps/chef_objects/test/chef_objects_test_utils.erl
erlang
ex: ts=4 sw=4 et Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. helper func...
-*- erlang - indent - level : 4;indent - tabs - mode : nil ; fill - column : 92-*- @author < > Copyright Chef Software , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is di...
0ee48b2ff73bfcffc5e9d2ef168641f9907197cc628c8b234bface9ef996ccbe
juhp/koji-tool
Builds.hs
# LANGUAGE BangPatterns , CPP # SPDX - License - Identifier : BSD-3 - Clause module Builds ( BuildReq(..), Details(..), buildsCmd, parseBuildState, fedoraKojiHub, kojiBuildTypes, latestCmd ) where import Control.Monad.Extra import Data.Char (isDigit, toUpper) import Data.List.Extra import Data.May...
null
https://raw.githubusercontent.com/juhp/koji-tool/1878b6558546c19120d5eae077d6bf4580250074/src/Builds.hs
haskell
install FIXME better output including user make time refer to past not future buildContainer has no task_id
# LANGUAGE BangPatterns , CPP # SPDX - License - Identifier : BSD-3 - Clause module Builds ( BuildReq(..), Details(..), buildsCmd, parseBuildState, fedoraKojiHub, kojiBuildTypes, latestCmd ) where import Control.Monad.Extra import Data.Char (isDigit, toUpper) import Data.List.Extra import Data.May...
83e0486ba26bc77a6510f3540a85bf221eb02536da3230c10088ed86672a3eeb
galdor/tungsten
pbkdf2.lisp
(in-package :openssl) (defun pbkdf2 (password salt digest-algorithm nb-iterations key-length) (declare (type core:octet-vector password salt) (type symbol digest-algorithm) (type (integer 1) nb-iterations)) (let* ((digest-name (digest-algorithm-name digest-algorithm)) (%kdf (evp-kdf-...
null
https://raw.githubusercontent.com/galdor/tungsten/5d6e71fb89af32ab3994c5b2daf8b902a5447447/tungsten-openssl/src/pbkdf2.lisp
lisp
The context keeps a reference to the key derivation function object, we can (and must) free it no matter what.
(in-package :openssl) (defun pbkdf2 (password salt digest-algorithm nb-iterations key-length) (declare (type core:octet-vector password salt) (type symbol digest-algorithm) (type (integer 1) nb-iterations)) (let* ((digest-name (digest-algorithm-name digest-algorithm)) (%kdf (evp-kdf-...
8227c6fbe5c88e6f5326b2d45e6298bffe136eea05039ee400f60534d88982af
weavejester/ataraxy
project.clj
(defproject ataraxy "0.4.3" :description "A data-driven Ring routing and destructuring library" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.9.0"] [ring/ring-core "1.6.1"]] :profiles {:dev {:dependencies [[criterium "0...
null
https://raw.githubusercontent.com/weavejester/ataraxy/efadd2eaefa5a732811f4dc2885bad4d50c8d806/project.clj
clojure
(defproject ataraxy "0.4.3" :description "A data-driven Ring routing and destructuring library" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.9.0"] [ring/ring-core "1.6.1"]] :profiles {:dev {:dependencies [[criterium "0...
5542cd36c36afb8ea829a2d140ba40dcec972de3eed162ed7c97ea7c232a3bcd
smallhadroncollider/ascii-runner
Types.hs
# LANGUAGE TemplateHaskell # module Types ( UI , Tick(..) , Direction(..) , State(..) , Player , Obstacles , Name , create , reset , position , dimensions , player , obstacles , state , speed ) where import ClassyPrelude import Control.Lens ((&), (^.), (.~), makeLenses) import Window ...
null
https://raw.githubusercontent.com/smallhadroncollider/ascii-runner/42eb674b4a997241a384c43f64e668e379519d97/src/Types.hs
haskell
# LANGUAGE TemplateHaskell # module Types ( UI , Tick(..) , Direction(..) , State(..) , Player , Obstacles , Name , create , reset , position , dimensions , player , obstacles , state , speed ) where import ClassyPrelude import Control.Lens ((&), (^.), (.~), makeLenses) import Window ...
7975747c99361f3d932f046a55165debf21b586023bca9d6d939ba8e41920f8a
footprintanalytics/footprint-web
default.clj
(ns metabase.query-processor.context.default (:require [clojure.core.async :as a] [clojure.tools.logging :as log] [metabase.config :as config] [metabase.driver :as driver] [metabase.query-processor.context :as qp.context] [metabase.query-processor.error-type...
null
https://raw.githubusercontent.com/footprintanalytics/footprint-web/790fdff545e2ed74097328102675df3bd56b83d1/src/metabase/query_processor/context/default.clj
clojure
I don't know if these numbers make sense, but my thinking is we want to enable (somewhat) long-running queries on code if the result is a clojure.lang.Reduced, unwrap it so we always get back the standard-format map Data processing for cache async query error Data processing for cache async query error
(ns metabase.query-processor.context.default (:require [clojure.core.async :as a] [clojure.tools.logging :as log] [metabase.config :as config] [metabase.driver :as driver] [metabase.query-processor.context :as qp.context] [metabase.query-processor.error-type...
28d6e34c78c4bdf9e3189981bf0e15d2e39950ee3f4decdadd716daffc4b4895
puppetlabs/trapperkeeper-metrics
metrics_service_test.clj
(ns puppetlabs.trapperkeeper.services.metrics.metrics-service-test (:import (com.codahale.metrics MetricRegistry JmxReporter) (clojure.lang ExceptionInfo) (com.puppetlabs.trapperkeeper.metrics GraphiteReporter)) (:require [clojure.test :refer :all] [cheshire.core :as json] ...
null
https://raw.githubusercontent.com/puppetlabs/trapperkeeper-metrics/47f1534ebb75339eeb42e0de33fab0ec2f6cacdc/test/puppetlabs/trapperkeeper/services/metrics/metrics_service_test.clj
clojure
NOTE: Some memory pools intentionally don't in an error being thrown when those attributes are read and is expected. status code is in the JSON payload that makes up the body. shouldn't matter whether `get-metrics-registry` or
(ns puppetlabs.trapperkeeper.services.metrics.metrics-service-test (:import (com.codahale.metrics MetricRegistry JmxReporter) (clojure.lang ExceptionInfo) (com.puppetlabs.trapperkeeper.metrics GraphiteReporter)) (:require [clojure.test :refer :all] [cheshire.core :as json] ...