_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
128b0d06cbc1cc4e8657dd689d5ded71ab2ef31295c9ee91d71181a9c2d0d238
mirage/irmin-server
conn.ml
open Lwt.Syntax open Lwt.Infix include Conn_intf module Codec = struct module type S = Codec.S module Bin = struct let decode t = Irmin.Type.(unstage (of_bin_string t)) [@@inline] let encode t = Irmin.Type.(unstage (to_bin_string t)) [@@inline] end module Json = struct let decode t = Irmin.Type.o...
null
https://raw.githubusercontent.com/mirage/irmin-server/80147612fe5c9273003b2efd39bbfff2d576ea4b/src/irmin-server-internal/conn.ml
ocaml
open Lwt.Syntax open Lwt.Infix include Conn_intf module Codec = struct module type S = Codec.S module Bin = struct let decode t = Irmin.Type.(unstage (of_bin_string t)) [@@inline] let encode t = Irmin.Type.(unstage (to_bin_string t)) [@@inline] end module Json = struct let decode t = Irmin.Type.o...
376a50fb2cf232e9e1827f2acefaa3cff11141f29fb829b3367f3e3f4211e6b7
dbuenzli/serialk
pkg.ml
#!/usr/bin/env ocaml #use "topfind" #require "topkg" open Topkg let () = Pkg.describe "serialk" @@ fun c -> Ok [ Pkg.mllib "src/serialk_text.mllib"; Pkg.mllib "src/serialk_json.mllib"; Pkg.mllib "src/serialk_sexp.mllib"; Pkg.test "test/test"; Pkg.bin "test/sexpsk" ]
null
https://raw.githubusercontent.com/dbuenzli/serialk/2650979af5ed3a8b55e259088acd618a61061856/pkg/pkg.ml
ocaml
#!/usr/bin/env ocaml #use "topfind" #require "topkg" open Topkg let () = Pkg.describe "serialk" @@ fun c -> Ok [ Pkg.mllib "src/serialk_text.mllib"; Pkg.mllib "src/serialk_json.mllib"; Pkg.mllib "src/serialk_sexp.mllib"; Pkg.test "test/test"; Pkg.bin "test/sexpsk" ]
b16cf2defc2d7ce24f188b8b690f7672fd739629b29d6669099e994413e3ad92
garrigue/lablgtk
gnoDruid.mli
(**************************************************************************) (* Lablgtk *) (* *) (* This program is free software; you can redistribute it *) and/or ...
null
https://raw.githubusercontent.com/garrigue/lablgtk/504fac1257e900e6044c638025a4d6c5a321284c/src-unsupported/gnoDruid.mli
ocaml
************************************************************************ Lablgtk This program is free software; you can redistribute it comes with the library. ...
and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation version 2 , with the exception described in file COPYING which GNU Library General Public License for more details . You should have r...
e906ddd04f521db6a66b33bdf59d32fb1a913e18a314e93fe73a48a706fae4f6
input-output-hk/project-icarus-importer
BaseSpec.hs
| Specification of Pos . . Toss . Base module Test.Pos.Ssc.Toss.BaseSpec ( spec ) where import Universum import Control.Lens (ix, _Wrapped) import qualified Crypto.Random as Rand import qualified Data.HashMap.Strict as HM import qualified Data.HashSet as HS import Data....
null
https://raw.githubusercontent.com/input-output-hk/project-icarus-importer/36342f277bcb7f1902e677a02d1ce93e4cf224f0/lib/test/Test/Pos/Ssc/Toss/BaseSpec.hs
haskell
The 'checkCommitmentsPayload' function will never pass without a valid As such, one from a 'GoodCommsPayload' is fetched instead since the 'Arbitrary' instance ensures validity. These fields won't be needed for anything, so they can be entirely arbitrary. The epoch used in the tests is generated separately to make...
| Specification of Pos . . Toss . Base module Test.Pos.Ssc.Toss.BaseSpec ( spec ) where import Universum import Control.Lens (ix, _Wrapped) import qualified Crypto.Random as Rand import qualified Data.HashMap.Strict as HM import qualified Data.HashSet as HS import Data....
2a6146d9266442db58db9356035ba7fa25a209bf7777e17965c95af8fb392cb2
Sheinxy/Advent2022
day_24.hs
module Main where import Data.List (transpose) import Data.Set (Set, fromList, findMin, findMax, notMember, member, insert, singleton) import qualified Data.Map as M (Map, notMember, fromList, (!)) data World = World { grid :: Set (Int, Int), cycles :: M.Map Int (Set (Int, Int)), height :: Int, width :: Int} deriving...
null
https://raw.githubusercontent.com/Sheinxy/Advent2022/0338a758613c5bd2d0abeb590ecb6cb3f622634f/Day_24/day_24.hs
haskell
module Main where import Data.List (transpose) import Data.Set (Set, fromList, findMin, findMax, notMember, member, insert, singleton) import qualified Data.Map as M (Map, notMember, fromList, (!)) data World = World { grid :: Set (Int, Int), cycles :: M.Map Int (Set (Int, Int)), height :: Int, width :: Int} deriving...
269f500ed2a1a5e91bb486ff32355ed0eb84dd25a1155b279aec1be4f32b7a9d
TakaiKinoko/Cornell_CS3110_OCaml
bst.ml
type 'a tree = | Leaf | Node of 'a * 'a tree * 'a tree (** [mem x t] is [true] iff [x] is a member of [t]. *) let rec mem x t = match t with | Leaf -> false | Node (i, l, r) -> if x = i then true else if x < i then mem x l else mem x r (** [insert x t] is [t] . *) l...
null
https://raw.githubusercontent.com/TakaiKinoko/Cornell_CS3110_OCaml/0a830bc50a5e39f010074dc289161426294cad1d/Chap8_Advanced_data_structures/05BST/bst.ml
ocaml
* [mem x t] is [true] iff [x] is a member of [t]. * [insert x t] is [t] .
type 'a tree = | Leaf | Node of 'a * 'a tree * 'a tree let rec mem x t = match t with | Leaf -> false | Node (i, l, r) -> if x = i then true else if x < i then mem x l else mem x r let rec insert x t = match t with | Leaf -> Node(x, Leaf, Leaf) | Node(i, ...
486b6665774386e7d1ced882727172908c988d5744fa1a08ffec0a5c1b8c5baa
paurkedal/inhca
inhca_public.server.mli
Copyright ( C ) 2019 < > * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later version . * * This p...
null
https://raw.githubusercontent.com/paurkedal/inhca/c2cc4abce931684fb17ac88169822178956f18e3/web/inhca_public.server.mli
ocaml
Copyright ( C ) 2019 < > * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later version . * * This p...
8ab87e90d27f5d68cc7b549ad741624ccb7c31f3326a83601b0a13053dc877f4
jaked/ocamljs
translcore.ml
* This file is part of ocamljs , OCaml to Javascript compiler * Copyright ( C ) 2007 - 9 Skydeck , Inc * Copyright ( C ) 2010 * * This program is free software released under the QPL . * See LICENSE for more details . * * The Software is provided AS IS with NO WARRANTY OF ANY KIND , * INCLU...
null
https://raw.githubusercontent.com/jaked/ocamljs/378080ff1c8033bb15ed2bd29bf1443e301d7af8/src/jscomp/patches/3.11.2/translcore.ml
ocaml
********************************************************************* Objective Caml ...
* This file is part of ocamljs , OCaml to Javascript compiler * Copyright ( C ) 2007 - 9 Skydeck , Inc * Copyright ( C ) 2010 * * This program is free software released under the QPL . * See LICENSE for more details . * * The Software is provided AS IS with NO WARRANTY OF ANY KIND , * INCLU...
5c7c58d43e3dbdcfd2f63d065599134725480ad98dc349b393e83db4ca2e4443
tiensonqin/lymchat-exp
core.cljs
(ns lymchat.core (:require [reagent.core :as r] [re-frame.core :refer [dispatch-sync]] [lymchat.handlers] [lymchat.subs] [lymchat.shared.scene.root :as root] [lymchat.shared.ui :as ui])) (def app-root #'root/app-root) (defn init [] (dispatch-sync [:initi...
null
https://raw.githubusercontent.com/tiensonqin/lymchat-exp/425a0738b11632119be08b5a59f12244f5df1575/src/lymchat/core.cljs
clojure
(ns lymchat.core (:require [reagent.core :as r] [re-frame.core :refer [dispatch-sync]] [lymchat.handlers] [lymchat.subs] [lymchat.shared.scene.root :as root] [lymchat.shared.ui :as ui])) (def app-root #'root/app-root) (defn init [] (dispatch-sync [:initi...
86c5cd9ffae5810a68b432c16b26e45a30aaac2f9b253609c218ea7f8ede02d7
astrada/ppx_bs_css
issue_11.ml
open Css let test = [%style {| padding: 1px 2px 3px 4px; padding: 1px 2px 3px; padding: 1px 2px; padding: 1px; |}] let equal = [ padding4 ~top:(px 1) ~right:(px 2) ~bottom:(px 3) ~left:(px 4); padding3 ~top:(px 1) ~h:(px 2) ~bottom:(px 3); padding2 ~v:(px 1) ~h:(px 2); padding (px 1); ] let _ = assert ...
null
https://raw.githubusercontent.com/astrada/ppx_bs_css/abfa22f932129e40af1a5e4db353ac4a6e1deaee/test_bs/issues/issue_11.ml
ocaml
open Css let test = [%style {| padding: 1px 2px 3px 4px; padding: 1px 2px 3px; padding: 1px 2px; padding: 1px; |}] let equal = [ padding4 ~top:(px 1) ~right:(px 2) ~bottom:(px 3) ~left:(px 4); padding3 ~top:(px 1) ~h:(px 2) ~bottom:(px 3); padding2 ~v:(px 1) ~h:(px 2); padding (px 1); ] let _ = assert ...
77057d1669512e88d2117ee4d0f4a3cb306e9d160cd71d5e0bbddd685f932be2
Octachron/codept
tuple.ml
let r,s,t = A.x, B.y, C.w
null
https://raw.githubusercontent.com/Octachron/codept/2d2a95fde3f67cdd0f5a1b68d8b8b47aefef9290/tests/cases/tuple.ml
ocaml
let r,s,t = A.x, B.y, C.w
817448a159802cf8f9e9ec0818e279e4a17c7bf0c491f75e80302499a2a2531f
papertrail/slack-hooks
pagerduty.clj
(ns slack-hooks.service.pagerduty (:require [slack-hooks.slack :as slack] [clojure.string :as string])) (def pagerduty-username (or (System/getenv "PAGERDUTY_USERNAME") "pagerduty")) (def pagerduty-avatar (System/getenv "PAGERDUTY_AVATAR")) (def pagerduty-slack-url (System/getenv "PAGERDU...
null
https://raw.githubusercontent.com/papertrail/slack-hooks/e9cfdbfee40e678be956416366684ee22d6cb282/src/slack_hooks/service/pagerduty.clj
clojure
(ns slack-hooks.service.pagerduty (:require [slack-hooks.slack :as slack] [clojure.string :as string])) (def pagerduty-username (or (System/getenv "PAGERDUTY_USERNAME") "pagerduty")) (def pagerduty-avatar (System/getenv "PAGERDUTY_AVATAR")) (def pagerduty-slack-url (System/getenv "PAGERDU...
c56b06a8a305acf9980b93e690944af4e571136a102c50041b8a5a7136f84709
KavehYousefi/Esoteric-programming-languages
main.lisp
Date : 2021 - 12 - 13 ;; ;; Sources: ;; -> "" ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; -- Declaration of types. -- ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (deftype nybble () "The ``nybble'' type defi...
null
https://raw.githubusercontent.com/KavehYousefi/Esoteric-programming-languages/cfad3884c05c1e6546accc6e998002cc2926ed94/niblet/niblet_001/main.lisp
lisp
Sources: -> "" -- Declaration of types. -- ;; ------------------------------------------------------- ------------------------------------------------------- ------------------------------------------------------- -- Implementation of class "Cell". ...
Date : 2021 - 12 - 13 (deftype nybble () "The ``nybble'' type defines an unsigned byte composed of four adjacent bits." '(unsigned-byte 4)) (deftype octet () "The ``octet'' type defines an unsigned byte composed of eight adjacent bits." '(unsigned-byte 8)) (deftype put-state () "The ``put-stat...
7c667744358658d11f7f437a4add7ce5e732cd11007e08a3b75108f4bccd3d5a
lrascao/simple_web_server
simple_web_server_connection_v1.erl
-module(simple_web_server_connection_v1). -behaviour(cowboy_websocket). %% cowboy websocket api -export([init/2, websocket_init/1, websocket_handle/2, websocket_info/2, terminate/3]). -record(state, { account_id :: binary(), session_pid :: pid(), sess...
null
https://raw.githubusercontent.com/lrascao/simple_web_server/d5418f3dca4c436c29223fbb518713e30fb228d0/src/simple_web_server_connection_v1.erl
erlang
cowboy websocket api Behaviour callbacks cowboy websocket api does a session for this account already exist? Public api Private
-module(simple_web_server_connection_v1). -behaviour(cowboy_websocket). -export([init/2, websocket_init/1, websocket_handle/2, websocket_info/2, terminate/3]). -record(state, { account_id :: binary(), session_pid :: pid(), session_monitor :: reference...
037486766d7d0779badaf5f9428f99fb84df0b5a8031d06c3c842e57e19c5659
viesti/cypress-clojurescript-preprocessor
cypress_cljs.cljs
(ns net.tiuhti.cypress-cljs (:require ["child_process" :as cp] ["fs" :as fs] ["path" :as path] ["chokidar" :as chokidar] ["events" :as EventEmitter] [clojure.edn :as edn] [clojure.string :as str] [meta-merge.core :as m] ["...
null
https://raw.githubusercontent.com/viesti/cypress-clojurescript-preprocessor/8b8c7e09277796dc425b02695fe7631f9568fe58/src/net/tiuhti/cypress_cljs.cljs
clojure
Start as detached to allow killing Kill whole process group, see: -child_process-node-js.html TODO: Option for compiling all tests at start Return the callback function that processes the given file
(ns net.tiuhti.cypress-cljs (:require ["child_process" :as cp] ["fs" :as fs] ["path" :as path] ["chokidar" :as chokidar] ["events" :as EventEmitter] [clojure.edn :as edn] [clojure.string :as str] [meta-merge.core :as m] ["...
68329d5ce3d7801a5a389dd21bf6efee8f2dfcdd20a7d223fc67f34e5d3add04
Zilliqa/scilla
All.ml
This file is part of scilla . Copyright ( c ) 2018 - present Zilliqa Research Pvt . Ltd. scilla is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at y...
null
https://raw.githubusercontent.com/Zilliqa/scilla/35af3814eace7c722ad966f0e2eee07d59d5a8af/tests/pm_check/All.ml
ocaml
This file is part of scilla . Copyright ( c ) 2018 - present Zilliqa Research Pvt . Ltd. scilla is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at y...
9fb5fdb86f19cd40a47e980f4f63ad8ce8e2138f81c41f8f31d5534d1dfc9926
walfie/ac-tune-maker
I18n.ml
module Lang = struct type t = | En | Fr let from_string s = match Js.String.split "-" s |. Js.Array.unsafe_get 0 with | "fr" -> Fr | _ -> En ;; let to_string = function | Fr -> "fr" | En -> "en" ;; end type t = { en : string ; fr : string } let get lang v = match lang w...
null
https://raw.githubusercontent.com/walfie/ac-tune-maker/fe98aa88ae643630a572612367411b63da60df92/src/I18n.ml
ocaml
module Lang = struct type t = | En | Fr let from_string s = match Js.String.split "-" s |. Js.Array.unsafe_get 0 with | "fr" -> Fr | _ -> En ;; let to_string = function | Fr -> "fr" | En -> "en" ;; end type t = { en : string ; fr : string } let get lang v = match lang w...
31e2a98fc8647816c735b39cd594467937c5adb864d6eec7630b7bfacae7c043
raymorgan/merl
resource.erl
-module (merl.router.resource). -author ("Ray Morgan"). -export ([resource/3]). resource(Name, Path, get) -> case Path of [Name] -> [{controller, Name}, {action, index}]; [Name, new] -> [{controller, Name}, {action, new}]; [Name, edit] -> [{controller, Name}, {action, edit}]; _ -> no_match end; ...
null
https://raw.githubusercontent.com/raymorgan/merl/f71df567bc61b7b088d534df99ce8955dbfa5407/src/router/resource.erl
erlang
-module (merl.router.resource). -author ("Ray Morgan"). -export ([resource/3]). resource(Name, Path, get) -> case Path of [Name] -> [{controller, Name}, {action, index}]; [Name, new] -> [{controller, Name}, {action, new}]; [Name, edit] -> [{controller, Name}, {action, edit}]; _ -> no_match end; ...
dac4f1bc2fbf185c21f105d096764106f81c9e7a3491ee9c914ffa2d1e22035e
benoitc/nat_upnp
nat_upnp_proto.erl
%%% -*- erlang -*- This file is part of nat_upnp released under the MIT license . %%% See the NOTICE for more information. %%% Copyright ( c ) 2013 < > %%% -module(nat_upnp_proto). -include_lib("xmerl/include/xmerl.hrl"). -export([discover/0, discover/1, status_info/1, add_port_mapp...
null
https://raw.githubusercontent.com/benoitc/nat_upnp/14db9ed131306425e50f4954eaf633361fae007a/src/nat_upnp_proto.erl
erlang
-*- erlang -*- See the NOTICE for more information. Given a xml text node, extract its text value.
This file is part of nat_upnp released under the MIT license . Copyright ( c ) 2013 < > -module(nat_upnp_proto). -include_lib("xmerl/include/xmerl.hrl"). -export([discover/0, discover/1, status_info/1, add_port_mapping/6, delete_port_mapping/3, get_external_ip_addr...
383a95dd0c83c92ff95655ebc9aef2eb0faede45efb6dc2e0218c6daefcd20a8
equill/restagraph
access-control.lisp
Copyright 2020 < > ; Licensed under the GNU General Public License - for details , see LICENSE.txt in the top - level directory ;;;; Resource-related methods (in-package #:restagraph) (declaim (optimize (compilation-speed 0) (speed 2) (safety 3) ...
null
https://raw.githubusercontent.com/equill/restagraph/9038d0a4065b87fa147553f22e50a009ab7fc0c1/src/access-control.lisp
lisp
Resource-related methods Everything fully open. readonly - good for allowing access while you investigate who broke something. write-authenticated - anybody can make GET requests, but only authenticated users authenticated-only - all unauthenticated requests are denied
Copyright 2020 < > Licensed under the GNU General Public License - for details , see LICENSE.txt in the top - level directory (in-package #:restagraph) (declaim (optimize (compilation-speed 0) (speed 2) (safety 3) (debug 3))) (defclass policy-...
0b72a7c327b6cd64f834490718a4e7958ee0bd3c051c1870222b4d9b958a2e28
ocsigen/eliom
ppx_eliom_utils.ml
module Parsetree = Ppxlib.Parsetree module Asttypes = Ppxlib.Asttypes module Longident = Ppxlib.Longident module Location = Ppxlib.Location open Ppxlib.Ast open Ppxlib.Ast_helper (** Various misc functions *) let mkloc txt loc = {txt; loc} let mkloc_opt ?(loc = !default_loc) x = mkloc x loc let unit ?loc ?attrs () =...
null
https://raw.githubusercontent.com/ocsigen/eliom/c3e0eea5bef02e0af3942b6d27585add95d01d6c/src/ppx/ppx_eliom_utils.ml
ocaml
* Various misc functions * Identifiers generation. Identifiers for the closure representing a fragment. Globaly unique ident for escaped expression It's used for type inference and as argument name for the closure representing the surrounding fragment. Inside a fragment, same ident share the global ident....
module Parsetree = Ppxlib.Parsetree module Asttypes = Ppxlib.Asttypes module Longident = Ppxlib.Longident module Location = Ppxlib.Location open Ppxlib.Ast open Ppxlib.Ast_helper let mkloc txt loc = {txt; loc} let mkloc_opt ?(loc = !default_loc) x = mkloc x loc let unit ?loc ?attrs () = Exp.construct ?loc ?attrs (...
3816afb20789c1bf92952743702c2b7a3d026afafd6b4b0a6f5198283fd4a8d4
Clojure2D/clojure2d-examples
main.clj
(ns rt4.in-one-weekend.ch06b.main (:require [fastmath.core :as m] [clojure2d.pixels :as p] [clojure2d.color :as c] [fastmath.vector :as v] [rt4.common :as common] [rt4.in-one-weekend.ch06b.ray :as ray] [rt4.in-one-weekend.ch06b.hittable :as hitta...
null
https://raw.githubusercontent.com/Clojure2D/clojure2d-examples/ead92d6f17744b91070e6308157364ad4eab8a1b/src/rt4/in_one_weekend/ch06b/main.clj
clojure
precompute camera
(ns rt4.in-one-weekend.ch06b.main (:require [fastmath.core :as m] [clojure2d.pixels :as p] [clojure2d.color :as c] [fastmath.vector :as v] [rt4.common :as common] [rt4.in-one-weekend.ch06b.ray :as ray] [rt4.in-one-weekend.ch06b.hittable :as hitta...
7b6d2cfb3736371325673c2364654b1c90b9e61a025957918e06fd360ca43894
ygmpkk/house
Posix.hs
{-# OPTIONS -optc-DSTANDALONE #-} # OPTIONS -#include < sys / types.h > # {-# OPTIONS -#include "regex.h" #-} # LINE 1 " Posix.hsc " # ----------------------------------------------------------------------------- # LINE 2 " Posix.hsc " # -- | Module : Text . Regex . Copyright : ( c ) The University of...
null
https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/libraries/base/Text/Regex/Posix.hs
haskell
# OPTIONS -optc-DSTANDALONE # # OPTIONS -#include "regex.h" # --------------------------------------------------------------------------- | License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : experimental Portability : non-portable (needs POSIX regexps) --------------...
# OPTIONS -#include < sys / types.h > # # LINE 1 " Posix.hsc " # # LINE 2 " Posix.hsc " # Module : Text . Regex . Copyright : ( c ) The University of Glasgow 2002 Interface to the POSIX regular expression library . ToDo : should have an interface using PackedStrings . module Text.Regex.Posix ( ...
a8fdd6fdf3677f8fe788aed9be1a9e2eaa0faff53623394b722306d28a6b23fd
BranchTaken/Hemlock
test_pp.ml
open! Basis.Rudiments open! Basis open U32 let test () = let rec fn = function | [] -> () | x :: xs' -> begin File.Fmt.stdout |> pp x |> Fmt.fmt " " |> fmt ~alt:true ~zpad:true ~width:8L ~radix:Radix.Hex ~pretty:true x |> Fmt.fmt "\n" |> ignore; fn xs' ...
null
https://raw.githubusercontent.com/BranchTaken/Hemlock/a07e362d66319108c1478a4cbebab765c1808b1a/bootstrap/test/basis/u32/test_pp.ml
ocaml
open! Basis.Rudiments open! Basis open U32 let test () = let rec fn = function | [] -> () | x :: xs' -> begin File.Fmt.stdout |> pp x |> Fmt.fmt " " |> fmt ~alt:true ~zpad:true ~width:8L ~radix:Radix.Hex ~pretty:true x |> Fmt.fmt "\n" |> ignore; fn xs' ...
e2e864a140a92e8e9278b1bfa04f5b2b291e302924b5785532a14b5f88b876f9
wireless-net/erlang-nommu
run_pcre_tests.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2008 - 2010 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Publi...
null
https://raw.githubusercontent.com/wireless-net/erlang-nommu/79f32f81418e022d8ad8e0e447deaea407289926/lib/stdlib/test/run_pcre_tests.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitatio...
Copyright Ericsson AB 2008 - 2010 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(run_pcre_tests). -compile(export_a...
8182d14956bbfee56b6a5e336b0a7f96485c38cbb66d5441e78ae1be2006e50c
stuartsierra/stacktrace.raw
clojure_repl.clj
(in-ns 'clojure.repl) (defn pst "Originally clojure.repl/pst, overridden by com.stuartsierra.stacktrace.raw" ([] (pst *e)) ([e-or-depth] (if (instance? Throwable e-or-depth) (pst e-or-depth nil) (pst *e nil))) ([^Throwable e _] (.printStackTrace e)))
null
https://raw.githubusercontent.com/stuartsierra/stacktrace.raw/beb6d09e62702ba90694bb1c34c55f82919f5613/src/com/stuartsierra/stacktrace/override/clojure_repl.clj
clojure
(in-ns 'clojure.repl) (defn pst "Originally clojure.repl/pst, overridden by com.stuartsierra.stacktrace.raw" ([] (pst *e)) ([e-or-depth] (if (instance? Throwable e-or-depth) (pst e-or-depth nil) (pst *e nil))) ([^Throwable e _] (.printStackTrace e)))
dd8c4f87f16d780d41cceb84109ced2f2d6618522545a48a8bbe9aeb0ceebc82
softwarelanguageslab/maf
tab.scm
; tab (ICP1) # # A. ` tab ` als special form Breid de meta - circulaire evaluator uit met ondersteuning voor zogenaamde ` tab ` expressies . ; De syntax van deze expressies is als volgt: `(tab <size-exp> <filler-exp>)` Zulk een tab een nieuwe vector . Hiertoe argument een expressie die _ eenmaal _ ...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/82df760d35e89e1a4f58c7ab43f51667c80d6493/test/changes/scheme/tab.scm
scheme
tab (ICP1) De syntax van deze expressies is als volgt: `(tab <size-exp> <filler-exp>)` per element van de vector ( van links ) . - procedure tab? toegevoegd, - procedure eval-tab toegevoegd, apply - in - underlying - scheme - > apply ( removed ) time error)) toegevoegd zie deel 1.1 p52 (...
# # A. ` tab ` als special form Breid de meta - circulaire evaluator uit met ondersteuning voor zogenaamde ` tab ` expressies . Zulk een tab een nieuwe vector . Hiertoe argument een expressie die _ eenmaal _ maken vector te bekomen . Om de elementen van de vector op te vullen , een expr...
89e1ae3e31652366dce3b29e787635cb82fa5e481b2adafc9a4a104680e27c04
Plutonomicon/Shrinker
Spec.hs
module Main (main) where import Test.Tasty (defaultMain, localOption, testGroup) import Test.Tasty.Hedgehog (HedgehogTestLimit (HedgehogTestLimit)) import Shrink.Testing.Tactics (shrinkingTactics) main :: IO () main = do defaultMain $ testGroup "shrinker tests" [ localOption (HedgehogTestLimit (Jus...
null
https://raw.githubusercontent.com/Plutonomicon/Shrinker/0aefb20707b13a0268180f6ccffc36bf7326ddb5/testing/spec/Spec.hs
haskell
module Main (main) where import Test.Tasty (defaultMain, localOption, testGroup) import Test.Tasty.Hedgehog (HedgehogTestLimit (HedgehogTestLimit)) import Shrink.Testing.Tactics (shrinkingTactics) main :: IO () main = do defaultMain $ testGroup "shrinker tests" [ localOption (HedgehogTestLimit (Jus...
12072c25563e413ba0eaa84412a318fc416ffdbb4e581d481ae3a508249d0146
PacktPublishing/HaskellCookbook
Main.hs
module Main where import Prelude hiding (reverse) reverse :: [a] -> [a] reverse xs = reverse' xs [] where reverse' :: [a] -> [a] -> [a] reverse' [] rs = rs reverse' (x:xs) rs = reverse' xs (x:rs) main :: IO () main = do let inp = [1..10] rs = reverse [1..10] putStrLn $ "Reverse of " ++ (show ...
null
https://raw.githubusercontent.com/PacktPublishing/HaskellCookbook/27e146b6d91c008a7b1d06eda4ea63fe8a8cdb04/Ch_2-Getting_Functional/reverse/src/Main.hs
haskell
module Main where import Prelude hiding (reverse) reverse :: [a] -> [a] reverse xs = reverse' xs [] where reverse' :: [a] -> [a] -> [a] reverse' [] rs = rs reverse' (x:xs) rs = reverse' xs (x:rs) main :: IO () main = do let inp = [1..10] rs = reverse [1..10] putStrLn $ "Reverse of " ++ (show ...
2b1b8d9426c467fd29fbff6b5579a60fbcc4cf04d67f580a8ab2b98ebf4a8954
Axarva/todo
Remove.hs
module Remove where import Control.Monad as M (when) import Data.Char as C (isDigit) import Data.List as L (delete, intersect, (\\)) import Data.Maybe as A (fromJust, isJust) import System.Directory as D (removeFile, renameFile) import ...
null
https://raw.githubusercontent.com/Axarva/todo/48cb3113aa81d1de07caaa2e99bfa4347bfa8098/app/Remove.hs
haskell
module Remove where import Control.Monad as M (when) import Data.Char as C (isDigit) import Data.List as L (delete, intersect, (\\)) import Data.Maybe as A (fromJust, isJust) import System.Directory as D (removeFile, renameFile) import ...
c96b20c89fe3bfa67474a5259fb096745bb1d29cc23d691d441b8cc3ecda0330
clojure-emacs/cljs-tooling
test_info.cljc
(ns cljs-tooling.test-info (:require [clojure.tools.reader.edn :as edn] [clojure.walk :as walk] [clojure.string :as s] [clojure.test :as test #?(:clj :refer :cljs :refer-macros) [deftest is testing use-fixtures]] [cljs-tooling.info :as info] [cljs-tooling.te...
null
https://raw.githubusercontent.com/clojure-emacs/cljs-tooling/b5252b65dbf67d5e5f82a544ca1a5a480ecd49b9/test/cljs_tooling/test_info.cljc
clojure
(ns cljs-tooling.test-info (:require [clojure.tools.reader.edn :as edn] [clojure.walk :as walk] [clojure.string :as s] [clojure.test :as test #?(:clj :refer :cljs :refer-macros) [deftest is testing use-fixtures]] [cljs-tooling.info :as info] [cljs-tooling.te...
bf567a430035415ab8157a1145119b46958689a45fd89488611d0f5d2b070004
HaskellForCats/HaskellForCats
ladiesWhoCodeHaskell002a.hs
module Lwch002a where
null
https://raw.githubusercontent.com/HaskellForCats/HaskellForCats/2d7a15c0cdaa262c157bbf37af6e72067bc279bc/ladiesWhoCodeHaskell/ladiesWhoCodeHaskell002a.hs
haskell
module Lwch002a where
88fa9ce7f6e9c7a68249f76770a8401bcf3e20b19991966fcee350198b987d24
Julow/ocaml-java
jthrowable.mli
(** An instance of Throwable Does not support hash and marshalling *) type t = Java.jthrowable (** Throws a throwable object Implemented by throwing an internal exception, does not return *) val throw : t -> 'a (** `throw_new cls msg` Throws a new instance of `cls` with the message `msg` *) val throw_new : Jclass....
null
https://raw.githubusercontent.com/Julow/ocaml-java/5387eb7d85b3e1bbab35b7cc2c5a927193e8d299/srcs/java/jthrowable.mli
ocaml
* An instance of Throwable Does not support hash and marshalling * Throws a throwable object Implemented by throwing an internal exception, does not return * `throw_new cls msg` Throws a new instance of `cls` with the message `msg` * Convert to an obj * Some Throwable methods * Raises `Failure` if the message i...
type t = Java.jthrowable val throw : t -> 'a val throw_new : Jclass.t -> string -> 'a val to_obj : t -> 'a Java.obj val get_localized_message : t -> string val get_message : t -> string val print_stack_trace : t -> unit
16d197bb6c2162d833793aac5c4aa70be0924595fa73f18dfa494bf7a30632c8
pveber/bistro
chipseq.ml
(** Paper: Datasets: *) open Bistro_bioinfo open Bistro_utils let treatment_id = "SRR217304" let control_id = "SRR217324" let genome = Ucsc_gb.genome_sequence `sacCer2 let bowtie_index = Bowtie.bowtie_build genome let mapped_reads srrid = let fastq = Sra_toolkit.fastq_dump (`id srrid) in Bowtie.bowtie ~v...
null
https://raw.githubusercontent.com/pveber/bistro/da0ebc969c8c5ca091905366875cbf8366622280/examples/chipseq.ml
ocaml
* Paper: Datasets:
open Bistro_bioinfo open Bistro_utils let treatment_id = "SRR217304" let control_id = "SRR217324" let genome = Ucsc_gb.genome_sequence `sacCer2 let bowtie_index = Bowtie.bowtie_build genome let mapped_reads srrid = let fastq = Sra_toolkit.fastq_dump (`id srrid) in Bowtie.bowtie ~v:1 bowtie_index (SE_or_PE.Single...
aa7cd79c0af315fb71245a370318b490407ba614fc73fb59864e4f5a71deccdd
coingaming/lnd-client
External.hs
module LndClient.Import.External ( module Import, ) where import Chronos as Import ( SubsecondPrecision (SubsecondPrecisionAuto), Timespan (..), encodeTimespan, stopwatch, ) import Control.Concurrent.Async as Import ( Async, ) import Control.Concurrent.STM as Import (check) import Control.Concu...
null
https://raw.githubusercontent.com/coingaming/lnd-client/4c9d8db4dab60513bac0ceba9e5ea98d53d7b81c/src/LndClient/Import/External.hs
haskell
module LndClient.Import.External ( module Import, ) where import Chronos as Import ( SubsecondPrecision (SubsecondPrecisionAuto), Timespan (..), encodeTimespan, stopwatch, ) import Control.Concurrent.Async as Import ( Async, ) import Control.Concurrent.STM as Import (check) import Control.Concu...
0cbd0b89ca9fb144ed8980ec9633505d313187e2a0a3e51ff4ebeaceff7cf58a
elastic/eui-cljs
contrast.cljs
(ns eui.services.contrast (:require ["@elastic/eui/lib/services/color/contrast.js" :as eui])) (def makeDisabledContrastColor eui/makeDisabledContrastColor) (def makeHighContrastColor eui/makeHighContrastColor)
null
https://raw.githubusercontent.com/elastic/eui-cljs/ad60b57470a2eb8db9bca050e02f52dd964d9f8e/src/eui/services/contrast.cljs
clojure
(ns eui.services.contrast (:require ["@elastic/eui/lib/services/color/contrast.js" :as eui])) (def makeDisabledContrastColor eui/makeDisabledContrastColor) (def makeHighContrastColor eui/makeHighContrastColor)
81e8dfd18736a58a1171a7a1089e010584c5ed993de2ea11d9698787b9cd97ea
haskell/aeson
Class.hs
# LANGUAGE CPP # {-# LANGUAGE ConstraintKinds #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # -- | -- Module: Data.Aeson.Types.Class Copyright : ( c ) 2011 - 2016 ...
null
https://raw.githubusercontent.com/haskell/aeson/4ad6b40b4d1ee7740979afa4411c4d56cd5ac4bf/src/Data/Aeson/Types/Class.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE GADTs # | Module: Data.Aeson.Types.Class Stability: experimental Portability: portable Types for working with JSON data. * Core JSON classes * Generic JSON classes * Classes and types for map keys ** Generic keys * Object key-value pairs * List functions * Ins...
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # Copyright : ( c ) 2011 - 2016 ( c ) 2011 MailRank , Inc. License : BSD3 Maintainer : < > module Data.Aeso...
09789372d23c6105bcbd6748cb501401ada1c17ec91f488635da0abc193a65ac
janestreet/universe
test_partition_map.ml
open! Core open! Import let%test_module _ = (module struct let f ~key:_ ~data = match data mod 2 = 0 with | true -> First (sprintf "N=%d" data) | false -> Second data ;; let%expect_test "manual updates" = let var = [ "a", 1; "b", 2 ] |> String.Map.of_alist_exn |> Incr.Var.create ...
null
https://raw.githubusercontent.com/janestreet/universe/b6cb56fdae83f5d55f9c809f1c2a2b50ea213126/incr_map/test/test_partition_map.ml
ocaml
open! Core open! Import let%test_module _ = (module struct let f ~key:_ ~data = match data mod 2 = 0 with | true -> First (sprintf "N=%d" data) | false -> Second data ;; let%expect_test "manual updates" = let var = [ "a", 1; "b", 2 ] |> String.Map.of_alist_exn |> Incr.Var.create ...
06fdb52126573e1db75ea0a01575a2a9df5c606cc632e590d646422ebdd6119c
greghendershott/blog
make-post-cache.rkt
#lang at-exp racket/base Copyright 2019 by . ;; Licensed under the Apache License , Version 2.0 ( the " License " ) ; ;; you may not use this file except in compliance with the License. ;; You may obtain a copy of the License at ;; ;; -2.0 ;; ;; Unless required by applicable law or agreed to in writing, softwar...
null
https://raw.githubusercontent.com/greghendershott/blog/f487bda88e4cccad3585623a7e772ffc34f5d73e/rkt/make-post-cache.rkt
racket
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permis...
#lang at-exp racket/base Copyright 2019 by . distributed under the License is distributed on an " AS IS " BASIS , (require racket/require (multi-in racket (contract file format list match path string)) (only-in markdown parse-markdown) threading (only-in srfi/1 break) ...
cb8ad88769a166ba1c551d6934143865709e448d265dc311accc229cd3566bbc
clojure-interop/aws-api
AbstractAmazonSageMakerRuntimeAsync.clj
(ns com.amazonaws.services.sagemakerruntime.AbstractAmazonSageMakerRuntimeAsync "Abstract implementation of AmazonSageMakerRuntimeAsync. Convenient method forms pass through to the corresponding overload that takes a request object and an AsyncHandler, which throws an UnsupportedOperationException." (:refer-clo...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.sagemakerruntime/src/com/amazonaws/services/sagemakerruntime/AbstractAmazonSageMakerRuntimeAsync.clj
clojure
(ns com.amazonaws.services.sagemakerruntime.AbstractAmazonSageMakerRuntimeAsync "Abstract implementation of AmazonSageMakerRuntimeAsync. Convenient method forms pass through to the corresponding overload that takes a request object and an AsyncHandler, which throws an UnsupportedOperationException." (:refer-clo...
0d495e8ab15fee1c027a85b888e44292d1e5a186116e805e78b1c77a01c1f26e
ucsd-progsys/nate
oprint.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) Proje...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/typing/oprint.ml
ocaml
********************************************************************* Objective Caml ...
Projet Cristal , INRIA Rocquencourt Copyright 2002 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : oprint.ml , v 1.24....
021f0589ee9fab897fb102d5cfb0b1519f08556a49778f5824afdf98b94dc0a6
sarabander/p2pu-sicp
3.71.scm
(define cube (λ (x) (* x x x))) (define (sum-of-cubes p) (+ (cube (first p)) (cube (second p)))) (define rama-base-pairs (weighted-pairs sum-of-cubes integers integers)) (print-n rama-base-pairs 32) ( 1 1 ) , ( 1 2 ) , ( 2 2 ) , ( 1 3 ) , ( 2 3 ) , ( 3 3 ) , ( 1 4 ) , ( 2 4 ) , ( 3 4 ) , ( 1 5 ) , ( 4 4 ) , (...
null
https://raw.githubusercontent.com/sarabander/p2pu-sicp/fbc49b67dac717da1487629fb2d7a7d86dfdbe32/3.5/3.71.scm
scheme
(define cube (λ (x) (* x x x))) (define (sum-of-cubes p) (+ (cube (first p)) (cube (second p)))) (define rama-base-pairs (weighted-pairs sum-of-cubes integers integers)) (print-n rama-base-pairs 32) ( 1 1 ) , ( 1 2 ) , ( 2 2 ) , ( 1 3 ) , ( 2 3 ) , ( 3 3 ) , ( 1 4 ) , ( 2 4 ) , ( 3 4 ) , ( 1 5 ) , ( 4 4 ) , (...
63ae0371489cc610bd60c536642d748e253eafe6cfa40d52507fc42ac8c74a93
DKurilo/hackerrank
Main.hs
module Main (main) where import Control.Monad (replicateM) import System.IO (BufferMode (NoBuffering), hSetBuffering, stdout) import qualified Text.ParserCombinators.ReadP as RP import Text.Read data Arr = Arr {aName :: String, aFirstIndex :: Int, aLastIndex :: Int, aElems :: [Int]} deriving (Show) instance Read Arr...
null
https://raw.githubusercontent.com/DKurilo/hackerrank/d86ccdcc213a236f1e9b0d047d09c10e20268b98/codingame/offset-arrays/src/Main.hs
haskell
module Main (main) where import Control.Monad (replicateM) import System.IO (BufferMode (NoBuffering), hSetBuffering, stdout) import qualified Text.ParserCombinators.ReadP as RP import Text.Read data Arr = Arr {aName :: String, aFirstIndex :: Int, aLastIndex :: Int, aElems :: [Int]} deriving (Show) instance Read Arr...
34f9be703028188872f8af952b1f4c8fec910afa2f3113d574c091a5d28c57f8
mwand/eopl3
semaphores.scm
(module semaphores (lib "eopl.ss" "eopl") (require "drscheme-init.scm") (require "store.scm") ; for store ops (require "data-structures.scm") ; for lock, a-lock (require "scheduler.scm") ; for os calls (require "queues.scm") (provide (all-defined-out)) ;; impl...
null
https://raw.githubusercontent.com/mwand/eopl3/b50e015be7f021d94c1af5f0e3a05d40dd2b0cbf/chapter5/thread-lang/semaphores.scm
scheme
for store ops for lock, a-lock for os calls implements binary semaphores (mutexes). wait queue, initially empty wait-for-mutex : Mutex * Thread -> FinalAnswer waits for mutex to be open, then closes it. signal-mutex : Mutex * Thread -> FinalAnswer
(module semaphores (lib "eopl.ss" "eopl") (require "drscheme-init.scm") (require "queues.scm") (provide (all-defined-out)) (define instrument-mutexes (make-parameter #f)) new - mutex ( ) - > Mutex Page : 188 (define new-mutex (lambda () (a-mutex (newref #f) ...
fb03977ae1b34b06a2965c870b0f58c8064b537945778437e50f5ab5a3710c26
dmitryvk/sbcl-win32-threads
show.lisp
;;;; temporary printing utilities and similar noise This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the ;;;; public domain. The software is in the pub...
null
https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/src/compiler/mips/show.lisp
lisp
temporary printing utilities and similar noise more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information.
This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB!VM") (define-vop (print) (:args (object :scs (descriptor-reg any-reg) :target nl0)) (:results (result :...
b5e36d954efb3af63168c002b0963d5b8f046210a1a578d29898d374b17c5df1
eudoxia0/crane
table.lisp
(in-package :crane-test.sqlite3) (test create-basic-tables (finishes (deftable sq-table-a () (field-a :type integer :nullp t))) (finishes (deftable sq-table-b (sq-table-a) (field-b :type text)))) (test creating-related-tables (finishes (deftable sq-parent-table () (something :type ...
null
https://raw.githubusercontent.com/eudoxia0/crane/1a85295d7ea0d13d74822dd835d8abfada4b1685/t/sqlite3/table.lisp
lisp
(in-package :crane-test.sqlite3) (test create-basic-tables (finishes (deftable sq-table-a () (field-a :type integer :nullp t))) (finishes (deftable sq-table-b (sq-table-a) (field-b :type text)))) (test creating-related-tables (finishes (deftable sq-parent-table () (something :type ...
6cdb5a8fa9450c1e91331b4b28cc0621b81475c21696cf9eb23aaa439fe79ccb
lopec/LoPEC
web_view_job.erl
-module(web_view_job). -include_lib ("nitrogen/include/wf.inc"). -compile(export_all). main() -> case common_web:have_role([role_user, role_admin]) of true -> []; _ -> wf:redirect("/web/index") end, common_web:main(). title() -> common_web:title(). footer() -> common_web:footer()...
null
https://raw.githubusercontent.com/lopec/LoPEC/29a3989c48a60e5990615dea17bad9d24d770f7b/trunk/lib/master/src/pages/web_view_job.erl
erlang
LOL @ background-size is parsed out :((((((( We get the jobid from state We get the values from database Sum the values
-module(web_view_job). -include_lib ("nitrogen/include/wf.inc"). -compile(export_all). main() -> case common_web:have_role([role_user, role_admin]) of true -> []; _ -> wf:redirect("/web/index") end, common_web:main(). title() -> common_web:title(). footer() -> common_web:footer()...
37167793d5ce7c712864bab6782893a32a7921baee28784aab23aef1a3c9e0b3
kendroe/CoqRewriter
derive.ml
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * REWRITELIB * * derive.ml * *...
null
https://raw.githubusercontent.com/kendroe/CoqRewriter/ddf5dc2ea51105d5a2dc87c99f0d364cf2b8ebf5/plugin/src/derive.ml
ocaml
require "list.sml" ; require "exp.sml" ; require "env.sml" ; require "derive-s.sml" ; require "context.sml" ; require "type.sml" ; require "match.sml" ; require "expint.sml" ; require "disc.sml" ; require "subst.sml" ; require "cache.sml" ; open CONTEXTimpl ; open EXP_INTERNimpl ; |...
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * REWRITELIB * * derive.ml * *...
198f86457a8e1088ec9d0dd55958200fece2fb8991f0b7bf3e5170936d54a719
priestjim/gen_rpc
gen_rpc_dispatcher.erl
-*-mode : erlang;coding : utf-8;tab - width:4;c - basic - offset:4;indent - tabs - mode:()-*- ex : set utf-8 sts=4 ts=4 sw=4 et : %%% Copyright 2015 . All Rights Reserved . %%% Dispatcher is a serialization trick to prevent starting up multiple children for one connection -module(gen_rpc_dispatcher). ...
null
https://raw.githubusercontent.com/priestjim/gen_rpc/6e17cac4e886f36ecb35bbda91e6bb3293aaa723/src/gen_rpc_dispatcher.erl
erlang
Behaviour Include this library's name macro Include helpful guard macros Include helpful guard macros Supervisor functions Server functions Behaviour callbacks =================================================== Public API =================================================== ================================...
-*-mode : erlang;coding : utf-8;tab - width:4;c - basic - offset:4;indent - tabs - mode:()-*- ex : set utf-8 sts=4 ts=4 sw=4 et : Copyright 2015 . All Rights Reserved . Dispatcher is a serialization trick to prevent starting up multiple children for one connection -module(gen_rpc_dispatcher). -behavi...
2e89907c6adb940914c2990acd81fb0a2779e8248a9754146b074d7c40b80fba
2600hz-archive/whistle
rebar_eunit.erl
-*- erlang - indent - level : 4;indent - tabs - mode : nil -*- %% ex: ts=4 sw=4 et %% ------------------------------------------------------------------- %% rebar : Erlang Build Tools %% Copyright ( c ) 2009 , 2010 ( ) %% %% Permission is hereby granted, free of charge, to any person obtaining a copy %% of thi...
null
https://raw.githubusercontent.com/2600hz-archive/whistle/1a256604f0d037fac409ad5a55b6b17e545dcbf9/utils/rebar/src/rebar_eunit.erl
erlang
ex: ts=4 sw=4 et ------------------------------------------------------------------- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sel...
-*- erlang - indent - level : 4;indent - tabs - mode : nil -*- rebar : Erlang Build Tools Copyright ( c ) 2009 , 2010 ( ) in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions...
6041d885988c1ae99ac0d45978acb3eaf021d3f9adc3d47fb35bc5afe4c823f1
graphqlize/graphqlize
query.clj
(ns graphqlize.lacinia.query (:require [honeyeql.meta-data :as heql-md] [graphqlize.lacinia.arg :as l-arg] [clojure.string :as string] [inflections.core :as inf])) (defn- primary-key-attrs->query-name [entity-ident-in-camel-case primary-key-attrs] (->> (map (comp inf/camel-case ...
null
https://raw.githubusercontent.com/graphqlize/graphqlize/d82ca3b169331ae9b1dcd256281e9f35b8361e17/src/graphqlize/lacinia/query.clj
clojure
(ns graphqlize.lacinia.query (:require [honeyeql.meta-data :as heql-md] [graphqlize.lacinia.arg :as l-arg] [clojure.string :as string] [inflections.core :as inf])) (defn- primary-key-attrs->query-name [entity-ident-in-camel-case primary-key-attrs] (->> (map (comp inf/camel-case ...
134af1f81352693e278a10a9b5c2e6050bf33571d0cd60628b84ae62536ce627
purescript/pursuit
PackageBadges.hs
module Handler.PackageBadges where import Import import Data.Version import qualified Text.Blaze as Blaze import qualified Text.Blaze.Svg11 as S import Text.Blaze.Svg.Renderer.Text (renderSvg) import qualified Graphics.Badge.Barrier as Badge import Handler.Database (getLatestVersionFor) import Handler.Caching (cache...
null
https://raw.githubusercontent.com/purescript/pursuit/12863d56e1aed35e19b8ddbf036d833ae3334072/src/Handler/PackageBadges.hs
haskell
module Handler.PackageBadges where import Import import Data.Version import qualified Text.Blaze as Blaze import qualified Text.Blaze.Svg11 as S import Text.Blaze.Svg.Renderer.Text (renderSvg) import qualified Graphics.Badge.Barrier as Badge import Handler.Database (getLatestVersionFor) import Handler.Caching (cache...
f5ad6a48bc9092318dab4a037eb9422db24ef85242ea720cd51c70b51451323e
TrustInSoft/tis-kernel
debug_manager.mli
(**************************************************************************) (* *) This file is part of . (* *) is a fork of Frama - C. Al...
null
https://raw.githubusercontent.com/TrustInSoft/tis-kernel/748d28baba90c03c0f5f4654d2e7bb47dfbe4e7d/src/plugins/gui/debug_manager.mli
ocaml
************************************************************************ ...
This file is part of . is a fork of Frama - C. All the differences are : Copyright ( C ) 2016 - 2017 is released under GPLv2 This file is part of Frama - C. Copyright ( C ) 2007 - 2015 ...
2fd479b13905b155e83beb570005e96bf87c26c1bbb46ef7de05e8a0a9151b8a
vincenthz/hs-gauge
Types.hs
# LANGUAGE CPP # # LANGUAGE ScopedTypeVariables # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # # LANGUAGE FlexibleContexts # # LANGUAGE DeriveDataTypeable , DeriveGeneric # -- | -- Module : Statistics.Types Copyright : ( c ) 2009 -- License : BSD3 -- -- Maintainer : -- Stability : experimen...
null
https://raw.githubusercontent.com/vincenthz/hs-gauge/303a6b611804c85b9a6bc1cea5de4e6ce3429d24/statistics/Statistics/Types.hs
haskell
| Module : Statistics.Types License : BSD3 Maintainer : Stability : experimental Portability : portable Data types common used in statistics * Confidence level ** Accessors ** Constructors ** Constants and conversion to nσ * Estimates and upper/lower limits ** Constructors , estimateNormErr **...
# LANGUAGE CPP # # LANGUAGE ScopedTypeVariables # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # # LANGUAGE FlexibleContexts # # LANGUAGE DeriveDataTypeable , DeriveGeneric # Copyright : ( c ) 2009 module Statistics.Types ( CL , confidenceLevel , significanceLevel , mkCL , cl...
d60f3807145eba42e9889f4d6a5679b889b6ea1cec3dcd1aa4400aa00b77c833
huangjs/cl
support.lisp
;;; support.lisp --- performance benchmarks for Common Lisp implementations ;; Author : < > Time - stamp : < 2004 - 08 - 01 emarsden > ;; ;; ;; The benchmarks consist of ;; - the benchmarks - some mathematical operations ( factorial , , CRC ) ;; - some bignum-intensive operations ;; - hashtable a...
null
https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/other-code/cl-bench/support.lisp
lisp
support.lisp --- performance benchmarks for Common Lisp implementations The benchmarks consist of - some bignum-intensive operations - hashtable and READ-LINE tests - CLOS tests - array, string and bitvector exercises (compile nil `(lambda () (dotimes (i ,(benchmark...
Author : < > Time - stamp : < 2004 - 08 - 01 emarsden > - the benchmarks - some mathematical operations ( factorial , , CRC ) (in-package :cl-bench) (defvar *version* "20040801") (defvar *benchmarks* '()) (defvar *benchmark-results* '()) (defvar +implementation+ (concatenate 'string ...
91adb0e9f5771a6ada4287e97d6ad209e780f6abf0c92f0382cb4db7d6b95996
jeapostrophe/exp
interface-in.rkt
#lang racket (require "interface.rkt" "interface-def.rkt" (interface-in listy! "interface-out.rkt") rackunit) (check-false (kons? 1)) (define x (kons 1 2)) (check-true (kons? x)) (check-equal? (kar x) 1) (check-equal? (kdr x) 2)
null
https://raw.githubusercontent.com/jeapostrophe/exp/43615110fd0439d2ef940c42629fcdc054c370f9/interface/interface-in.rkt
racket
#lang racket (require "interface.rkt" "interface-def.rkt" (interface-in listy! "interface-out.rkt") rackunit) (check-false (kons? 1)) (define x (kons 1 2)) (check-true (kons? x)) (check-equal? (kar x) 1) (check-equal? (kdr x) 2)
9c26f606948d9a455609105c5c53cf0a0fcc8ab47709c9d4262e56d69e2c825c
S8A/htdp-exercises
ex181.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-beginner-abbr-reader.ss" "lang")((modname ex181) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp") (lib "univers...
null
https://raw.githubusercontent.com/S8A/htdp-exercises/578e49834a9513f29ef81b7589b28081c5e0b69f/ex181.rkt
racket
about the language level of this file in a form that our tools can easily process.
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-abbr-reader.ss" "lang")((modname ex181) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp") (lib "universe.rkt" "teachpack" "2htdp") (lib "batch-io.rkt" "teachpack" "2htdp"))) (htdp-settings ...
4ae50798538dfa75b6f770ef67b7f0538fa33e9865e0f954d0cba231be855a7f
boxer-project/boxer-sunrise
stepper-eval.lisp
;;;; Copyright 1985 - 2022 Andrea A. diSessa and the Estate of Edward H. Lay ;;;; Portions of this code may be copyright 1982 - 1985 Massachusetts Institute of Technology . Those portions may be used for any purpose , including commercial ones , providing that notice of MIT copyright is ret...
null
https://raw.githubusercontent.com/boxer-project/boxer-sunrise/08f587068f882ed0cf57a87b2b24608f541c6263/src/stepper/stepper-eval.lisp
lisp
+------+ This file is part of the |Boxer | System +-Data-+
Copyright 1985 - 2022 Andrea A. diSessa and the Estate of Edward H. Lay Portions of this code may be copyright 1982 - 1985 Massachusetts Institute of Technology . Those portions may be used for any purpose , including commercial ones , providing that notice of MIT copyright is retained . ...
8a89ecdc7f78c4098729d7da040c254dd91f7cca5117200134117ae04c33a082
racket/plai
test-harness.rkt
#lang plai (require (prefix-in eli: tests/eli-tester) "util.rkt") (define-type WAE [binop (p procedure?) (lhs WAE?) (rhs WAE?)] [num (n number?)] [id (s symbol?)]) (define-syntax-rule (->string e) (regexp-replace "line [0-9]+" (with-both-output-to-string (λ () e)) "line ??")) (define-syntax-rule (->e...
null
https://raw.githubusercontent.com/racket/plai/164f3b763116fcfa7bd827be511650e71fa04319/plai-lib/tests/test-harness.rkt
racket
#lang plai (require (prefix-in eli: tests/eli-tester) "util.rkt") (define-type WAE [binop (p procedure?) (lhs WAE?) (rhs WAE?)] [num (n number?)] [id (s symbol?)]) (define-syntax-rule (->string e) (regexp-replace "line [0-9]+" (with-both-output-to-string (λ () e)) "line ??")) (define-syntax-rule (->e...
8b8c5c75ec6139db9b595c0e380b3a0a698f527c8816a541dc5133965dba8bf4
unisonweb/unison
Metadata.hs
module Unison.Codebase.Metadata where import qualified Data.Map as Map import qualified Data.Set as Set import Unison.Prelude import Unison.Reference (Reference) import qualified Unison.Util.List as List import Unison.Util.Relation (Relation) import qualified Unison.Util.Relation as R import Unison.Util.Relation4 (Rel...
null
https://raw.githubusercontent.com/unisonweb/unison/cf278f9fb66ccb9436bf8a2eb4ab03fc7a92021d/parser-typechecker/src/Unison/Codebase/Metadata.hs
haskell
keys can be terms or types `a` is generally the type of references or hashes `n` is generally the the type of name associated with the references `Type` is the type of metadata. Duplicate info to speed up certain queries. `(Type, Value)` is the metadata value itself along with its type. if (ty,v) is the last meta...
module Unison.Codebase.Metadata where import qualified Data.Map as Map import qualified Data.Set as Set import Unison.Prelude import Unison.Reference (Reference) import qualified Unison.Util.List as List import Unison.Util.Relation (Relation) import qualified Unison.Util.Relation as R import Unison.Util.Relation4 (Rel...
27f13947855ef30685bc07b3e843dcedb12ddfbffab440a32f88269dbda69bd6
gwkkwg/log5
tests.lisp
(in-package #:log5-test) (deftestsuite test-stream-sender (log5-test) ()) #+(or) (deftestsuite test-stream-sender-with-stream (test-stream-sender) ((sender-name (gensym)) (string-stream (make-string-output-stream)) (sender nil)) (:teardown (stop-sender-fn sender-name :warn-if-not-found-p nil)) :equality...
null
https://raw.githubusercontent.com/gwkkwg/log5/42bfaf48506f134db7dd5583c8cf2f7db79a4cdd/unit-tests/tests.lisp
lisp
(deftestsuite test-debugging (log5-test) () (:equality-test #'string=)) (addtest (test-debugging) captures (ensure-same (with-debugging-captured-to-string (info) (log-for info "ji")) (let ((*debug-io* (make-string-output-stream))) (format *debug-io* "he") (get-output-stream-string *debug-i...
(in-package #:log5-test) (deftestsuite test-stream-sender (log5-test) ()) #+(or) (deftestsuite test-stream-sender-with-stream (test-stream-sender) ((sender-name (gensym)) (string-stream (make-string-output-stream)) (sender nil)) (:teardown (stop-sender-fn sender-name :warn-if-not-found-p nil)) :equality...
65092d6c5ef41b22478f1f48d623b7fede454c8f9cd7d82b87ffa274c1b6d7a1
darkling/lagra
model_SUITE.erl
-module(model_SUITE). -include_lib("common_test/include/ct.hrl"). -compile(export_all). all() -> [create_literal_01, create_literal_02, create_literal_03, create_literal_04, create_literal_05, create_literal_06, create_literal_07, create_literal_08, create_literal_09, extract_literal_09]. create_li...
null
https://raw.githubusercontent.com/darkling/lagra/6827ea20db86aeb4c139db45bd3133ffccfddb7d/ct/model_SUITE.erl
erlang
-module(model_SUITE). -include_lib("common_test/include/ct.hrl"). -compile(export_all). all() -> [create_literal_01, create_literal_02, create_literal_03, create_literal_04, create_literal_05, create_literal_06, create_literal_07, create_literal_08, create_literal_09, extract_literal_09]. create_li...
c7e0db39e4ebb78adbb18fd3111f494aced7a57d32e0c7db8db94a49702c2406
cxxxr/apispec
media-type.lisp
(defpackage #:apispec/tests/classes/media-type (:use #:cl #:rove #:apispec/classes/media-type) (:import-from #:apispec/classes/schema #:schema #:binary #:object) (:import-from #:apispec/classes/header #:header) (:import-from #:apisp...
null
https://raw.githubusercontent.com/cxxxr/apispec/4bdd238f6b5effed305d284e0e6b7cef214e94a2/tests/classes/media-type.lisp
lisp
(defpackage #:apispec/tests/classes/media-type (:use #:cl #:rove #:apispec/classes/media-type) (:import-from #:apispec/classes/schema #:schema #:binary #:object) (:import-from #:apispec/classes/header #:header) (:import-from #:apisp...
a511162f6a28c7c9d699730439c76748fab5a969d930aafa295e9268237374c1
jacobstanley/hadoop-tools
ProtocolInfo.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # module Data.Hadoop.Protobuf.ProtocolInfo where import Data.ProtocolBuffers import Data.Text (Text) import Data.Word (Word32, Word64) import GHC.Generics (Generic) ------------------------------------------------------------------------ -- | Request to get protocol v...
null
https://raw.githubusercontent.com/jacobstanley/hadoop-tools/8adc178a599d28f4ee3baedd34397e566f7b3fa6/hadoop-rpc/src/Data/Hadoop/Protobuf/ProtocolInfo.hs
haskell
---------------------------------------------------------------------- | Request to get protocol versions for all supported rpc kinds. | Protocol version with corresponding RPC kind. ^ RPC kind | Get protocol version response. ---------------------------------------------------------------------- | Get protocol si...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # module Data.Hadoop.Protobuf.ProtocolInfo where import Data.ProtocolBuffers import Data.Text (Text) import Data.Word (Word32, Word64) import GHC.Generics (Generic) data GetProtocolVersionsRequest = GetProtocolVersionsRequest ^ Protocol name } deriving (Generic,...
53617fd82586e74145483e1dd371bfd7663ee7f8d37db04f0572eb930dd66a52
hsyl20/haskus-system
Main.hs
{-# LANGUAGE OverloadedStrings #-} module Main where import Haskus.System.Input import Haskus.System.Event import Haskus.System.Sys import Haskus.System.Terminal import Haskus.System.Process import Haskus.System.Linux.Handle import Haskus.System.Linux.FileSystem import Haskus.Utils.Flow import qualified Haskus.Format...
null
https://raw.githubusercontent.com/hsyl20/haskus-system/2f389c6ecae5b0180b464ddef51e36f6e567d690/haskus-system-tools/src/keys/Main.hs
haskell
# LANGUAGE OverloadedStrings #
module Main where import Haskus.System.Input import Haskus.System.Event import Haskus.System.Sys import Haskus.System.Terminal import Haskus.System.Process import Haskus.System.Linux.Handle import Haskus.System.Linux.FileSystem import Haskus.Utils.Flow import qualified Haskus.Format.Binary.BitSet as BitSet import Sy...
30f9060681018878c50721a72bb8d705bf05ca5dd877e175e969a78bae2ffbdc
bryal/carth
SrcPos.hs
module Front.SrcPos where import Text.Megaparsec.Pos data SrcPos = SrcPos { srcName :: FilePath , srcLine :: Word , srcColumn :: Word , inExpansion :: Maybe SrcPos } deriving (Show, Eq, Ord) data WithPos a = WithPos SrcPos a class HasPos a where getPos :: a -> SrcPos instance Show a =...
null
https://raw.githubusercontent.com/bryal/carth/6630301bf8baca5dcda086d7353ef776def31625/src/Front/SrcPos.hs
haskell
module Front.SrcPos where import Text.Megaparsec.Pos data SrcPos = SrcPos { srcName :: FilePath , srcLine :: Word , srcColumn :: Word , inExpansion :: Maybe SrcPos } deriving (Show, Eq, Ord) data WithPos a = WithPos SrcPos a class HasPos a where getPos :: a -> SrcPos instance Show a =...
632fc89e6f2e3bb3785547c39bc2335b4f028a028303ef59f19638ef99cc6165
typedclojure/typedclojure
child.clj
(ns clojure.core.typed.test.ann-qualify.child (:require [typed.clojure :as t] [clojure.core.typed.test.ann-qualify.parent :as p])) (t/ann p/a t/Int) (inc p/a)
null
https://raw.githubusercontent.com/typedclojure/typedclojure/1b3c9ef6786a792ae991c438ea8dca31175aa4a7/typed/clj.checker/test/clojure/core/typed/test/ann_qualify/child.clj
clojure
(ns clojure.core.typed.test.ann-qualify.child (:require [typed.clojure :as t] [clojure.core.typed.test.ann-qualify.parent :as p])) (t/ann p/a t/Int) (inc p/a)
9e23e79c0e0b51090fb686ba7485cc43ebfec01f157bc4994ead047de00b4d38
bijoutrouvaille/fireward
OptionParser.hs
module OptionParser ( Options (..) , options , startOptions , getOptions ) where import System.Console.GetOpt ( OptDescr (Option) , ArgOrder (RequireOrder) , ArgDescr (NoArg, ReqArg) , getOpt , usageInfo ) import Control.Monad (when) import System.Environment (getArgs, getProgName) import System...
null
https://raw.githubusercontent.com/bijoutrouvaille/fireward/61b8284845ea243e67ec0d852123c33f64ea2317/src/OptionParser.hs
haskell
Here we thread startOptions through all supplied option actions
module OptionParser ( Options (..) , options , startOptions , getOptions ) where import System.Console.GetOpt ( OptDescr (Option) , ArgOrder (RequireOrder) , ArgDescr (NoArg, ReqArg) , getOpt , usageInfo ) import Control.Monad (when) import System.Environment (getArgs, getProgName) import System...
60b2303ce4a5c52a01cc6d2a6761bd720b1d882d1081d47545e6ff17c55d730e
code-iai/ros_emacs_utils
lispworks.lisp
;;; -*- indent-tabs-mode: nil -*- ;;; swank-lispworks.lisp --- LispWorks specific code for SLIME . ;;; Created 2003 , ;;; ;;; This code has been placed in the Public Domain. All warranties ;;; are disclaimed. ;;; (defpackage swank/lispworks (:use cl swank/backend)) (in-package swank/lispworks) (eval-when (:...
null
https://raw.githubusercontent.com/code-iai/ros_emacs_utils/ab5cea686d582020c75881583beca7402fa9e7b8/slime_wrapper/slime/swank/lispworks.lisp
lisp
-*- indent-tabs-mode: nil -*- This code has been placed in the Public Domain. All warranties are disclaimed. lispworks doesn't have the eql-specializer class, it represents UTF8 TCP server Coding Systems ((:euc-jp) "euc-jp") ((:ascii) "us-ascii") Unix signals Documentation Debugging no frame found! if ...
swank-lispworks.lisp --- LispWorks specific code for SLIME . Created 2003 , (defpackage swank/lispworks (:use cl swank/backend)) (in-package swank/lispworks) (eval-when (:compile-toplevel :load-toplevel :execute) (require "comm")) (defimplementation gray-package-name () "STREAM") (import-swank-mop-symb...
bd0ce94078c7399786badc9fd7b547f798eae6a591db369a7d0a889efc9a42e6
onedata/op-worker
sd_utils.erl
%%%-------------------------------------------------------------------- @author ( C ) 2017 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%-------------------------------------------------------------------- %%% @doc %%% Utility functions for storage fi...
null
https://raw.githubusercontent.com/onedata/op-worker/a1970e588b702b959c379e21d89139445a56235c/src/modules/storage/driver/sd_utils.erl
erlang
-------------------------------------------------------------------- @end -------------------------------------------------------------------- @doc Utility functions for storage file manager module. ATTENTION!!! Functions in this module should not operate on share guids and file contexts associated with share gu...
@author ( C ) 2017 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . -module(sd_utils). -author("Tomasz Lichon"). -include("global_definitions.hrl"). -include("modules/datastore/datastore_models.hrl"). -include("modules/fslogic/acl.hrl"). -include("modules/fslogic/f...
80c5021daddc0469fb055d6dd9c69b64b11b21c678e4bab3355d395fb59fc85a
binsec/haunted
trace_postprocessing.ml
(**************************************************************************) This file is part of BINSEC . (* *) Copyright ( C ) 2016 - 2019 CEA ( Co...
null
https://raw.githubusercontent.com/binsec/haunted/7ffc5f4072950fe138f53fe953ace98fff181c73/src/dynamic/trace/trace_postprocessing.ml
ocaml
************************************************************************ alternatives) you can redistribute it an...
This file is part of BINSEC . Copyright ( C ) 2016 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , ve...
7c0bddf4340d6fa26218232d86b28464fd371db513b44bee6e66a46071245180
Clozure/ccl-tests
position-if.lsp
;-*- Mode: Lisp -*- Author : Created : Fri Aug 23 22:08:57 2002 ;;;; Contains: Tests for POSITION-IF (in-package :cl-test) (deftest position-if-list.1 (position-if #'evenp '(1 3 1 4 3 2 1 8 9)) 3) (deftest position-if-list.2 (position-if 'evenp '(1 3 1 4 3 2 1 8 9)) 3) (deftest position-if-li...
null
https://raw.githubusercontent.com/Clozure/ccl-tests/0478abddb34dbc16487a1975560d8d073a988060/ansi-tests/position-if.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests for POSITION-IF Vector tests Bit vector tests string tests Keyword tests Error tests
Author : Created : Fri Aug 23 22:08:57 2002 (in-package :cl-test) (deftest position-if-list.1 (position-if #'evenp '(1 3 1 4 3 2 1 8 9)) 3) (deftest position-if-list.2 (position-if 'evenp '(1 3 1 4 3 2 1 8 9)) 3) (deftest position-if-list.3 (position-if #'evenp '(1 3 1 4 3 2 1 8 9) :start 4) ...
d5e030b444f49a59b8d0d1cc5f99633fdea2a42bd757115d88c32a2bc7a8907b
learnuidev/reagent-reposh-realworld
api.cljs
(ns app.api) (defonce api-uri "") (defn error-handler [{:keys [status status-text]}] (.log js/console (str "something bad happened: " status " " status-text))) (defn get-token [] (.getItem js/localStorage "auth-user-token")) (defn get-auth-header [] (let [token (get-token)] [:Authorization (str "Token " t...
null
https://raw.githubusercontent.com/learnuidev/reagent-reposh-realworld/a9bd7203a2a984c30debbcadb49201f74697a1cc/src/app/api.cljs
clojure
(ns app.api) (defonce api-uri "") (defn error-handler [{:keys [status status-text]}] (.log js/console (str "something bad happened: " status " " status-text))) (defn get-token [] (.getItem js/localStorage "auth-user-token")) (defn get-auth-header [] (let [token (get-token)] [:Authorization (str "Token " t...
0ecb5f7efa8abb4dcfe8a752e58fbc6f0e758a56bf58db5349b7e3db6fe58338
distrap/gcodehs
Translate.hs
import Data.GCode import Pipes import Pipes.Attoparsec as PA import qualified Pipes.Prelude as P import qualified Pipes.ByteString as B import Pipes.Safe import qualified System.IO as IO import qualified System.Environment as E import GHC.Base bufsize = 1024 translate X asix coordinates by +10 , y -100 main :: I...
null
https://raw.githubusercontent.com/distrap/gcodehs/8a8dbc66445cff4ce832bb56f42ef03b3215e235/examples/Translate.hs
haskell
import Data.GCode import Pipes import Pipes.Attoparsec as PA import qualified Pipes.Prelude as P import qualified Pipes.ByteString as B import Pipes.Safe import qualified System.IO as IO import qualified System.Environment as E import GHC.Base bufsize = 1024 translate X asix coordinates by +10 , y -100 main :: I...
a05a94612306e73d32c900d983355a33c89869477cafab2ec48e284a929e5e04
GillianPlatform/Gillian
branchReasoning.ml
let makeFormater format pp fmt e = Fmt.pf fmt "%s" (format (Fmt.str "%a" pp e)) type branches = ExactlyOne | AllOfThem | AtLeastOne * Builds a message explaining the reason of failure when the ` AllOfThem ` is used . In this case , it explained every case that did n't match the expected patternd In this cas...
null
https://raw.githubusercontent.com/GillianPlatform/Gillian/b8af7b80fbd3c8efabc3d3b63528851432db3f27/GillianCore/BulkTesting/branchReasoning.ml
ocaml
That function returns true if the result is what is expected, and false with a message
let makeFormater format pp fmt e = Fmt.pf fmt "%s" (format (Fmt.str "%a" pp e)) type branches = ExactlyOne | AllOfThem | AtLeastOne * Builds a message explaining the reason of failure when the ` AllOfThem ` is used . In this case , it explained every case that did n't match the expected patternd In this cas...
e74faea42b0b6cab0568cb388bfbd056582bb79df57a23c38f7bfab56437640b
unsplash/intlc
CLI.hs
# LANGUAGE TemplateHaskell # module CLI (Opts (..), getOpts, ICUModifiers (..)) where import GitHash (giTag, tGitInfoCwd) import qualified Intlc.Backend.JSON.Compiler as JSON import Intlc.Core (Locale (..)) import Intlc.Linter (LintRule...
null
https://raw.githubusercontent.com/unsplash/intlc/84b8cbceaa27abfd753abb647c3686231a24a495/cli/CLI.hs
haskell
# LANGUAGE TemplateHaskell # module CLI (Opts (..), getOpts, ICUModifiers (..)) where import GitHash (giTag, tGitInfoCwd) import qualified Intlc.Backend.JSON.Compiler as JSON import Intlc.Core (Locale (..)) import Intlc.Linter (LintRule...
fee9809a1023383313c888ca0cbc83d6b5f49e6a139c37be8693ebb9e47e6985
plumatic/grab-bag
math_test.clj
(ns flop.math-test (:use clojure.test) (:require [flop.math :as dm] [plumbing.repl :as ru]) (:import java.util.Random)) (defmacro is-double-approx-= [expr val rel-err abs-err] `(do (is (= ~(ru/expression-info expr) {:class Double/TYPE :primitive? true})) (let [v# ~expr] (when-not (z...
null
https://raw.githubusercontent.com/plumatic/grab-bag/a15e943322fbbf6f00790ce5614ba6f90de1a9b5/lib/flop/test/flop/math_test.clj
clojure
(ns flop.math-test (:use clojure.test) (:require [flop.math :as dm] [plumbing.repl :as ru]) (:import java.util.Random)) (defmacro is-double-approx-= [expr val rel-err abs-err] `(do (is (= ~(ru/expression-info expr) {:class Double/TYPE :primitive? true})) (let [v# ~expr] (when-not (z...
5494ce64ce0cd468d70b9365140294d564fd344567a4523a9154eb15c885974d
mput/sicp-solutions
x_xx.test.rkt
#lang racket (require rackunit rackunit/text-ui) (require (only-in "../solutions/{{ exc }}.rkt")) (define tests (test-suite "Test for exercise {{ exc }}" (check-equal? solutions 1 "") (test-case "Case here" (check-equal? solutions 0 "")))) (run-tests tests 'verbose)
null
https://raw.githubusercontent.com/mput/sicp-solutions/fe12ad2b6f17c99978c8fe04b2495005986b8496/templates/files/x_xx.test.rkt
racket
#lang racket (require rackunit rackunit/text-ui) (require (only-in "../solutions/{{ exc }}.rkt")) (define tests (test-suite "Test for exercise {{ exc }}" (check-equal? solutions 1 "") (test-case "Case here" (check-equal? solutions 0 "")))) (run-tests tests 'verbose)
d66dec8d37c4330602cdda29a3ba5f8fb45117217423084a76cc91791b54b340
extend/ex_fcgi
ex_fcgi.erl
Copyright ( c ) 2011 , < > %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above %% copyright notice and this permission notice appear in all copies. %% THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS A...
null
https://raw.githubusercontent.com/extend/ex_fcgi/c819e82ef3f411e19018292be457f8711fba2295/src/ex_fcgi.erl
erlang
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVE...
Copyright ( c ) 2011 , < > THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL WARRANTIES ANY SPECIAL , DIRECT , INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE , DATA OR PROFITS , WHETHER IN AN -module(ex_fcgi). -author('Anthony Ramine <>'). -type sho...
8883701320dd7c7ce754c8f060fb53f99c96fb05cc140a17aa8cb14817bb492e
rhaberkorn/ermacs
em_erlang.erl
%%%---------------------------------------------------------------------- File : em_erlang.erl Author : < > %%% Purpose : Erlang "Major Mode" Created : 10 Mar 2001 by < > %%%---------------------------------------------------------------------- -module(em_erlang). -author(''). -include_lib("ermacs/i...
null
https://raw.githubusercontent.com/rhaberkorn/ermacs/35c8f9b83ae85e25c646882be6ea6d340a88b05b/mods/src/em_erlang.erl
erlang
---------------------------------------------------------------------- Purpose : Erlang "Major Mode" ---------------------------------------------------------------------- Called by the editor when this module is load/require'd + indent_cur_line_adjust(B)), ---------------------------------------------------------...
File : em_erlang.erl Author : < > Created : 10 Mar 2001 by < > -module(em_erlang). -author(''). -include_lib("ermacs/include/edit.hrl"). -import(edit_lib, [buffer/1]). -export([mod_init/0, erlang_mode/1, reindent_cmd/1]). -define(keymap, erlang_mode_map). NB : may be called several times due to ...
45bcc0e314b1fee650ad1684a8aaa6024368fe3eedf6f655f9d9f651d17abb12
covid-db/covid-scrapers
Michigan.hs
{-# LANGUAGE OverloadedStrings #-} module Covid19.USA.Michigan where ------------------------------------------------------------------------------ import Control.Lens import qualified Data.ByteString.Lazy as BL import qualified Data.Csv as C import Data.Maybe import Data.Text (Text) imp...
null
https://raw.githubusercontent.com/covid-db/covid-scrapers/145b11ba97b2b9f3a1e5ece116270992c056b88f/haskell/covid-scrape/lib/Covid19/USA/Michigan.hs
haskell
# LANGUAGE OverloadedStrings # ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ----------------------------------------------------------------------------
module Covid19.USA.Michigan where import Control.Lens import qualified Data.ByteString.Lazy as BL import qualified Data.Csv as C import Data.Maybe import Data.Text (Text) import qualified Data.Text as T import Data.Text.Encoding import Data.Time import Netwo...
169370283fc39e0c83a4d31c5763af4b63befc85af31a136951a0b9af821169c
mvr/at
Pi4S3.hs
module Pi4S3 where import System.IO import Math.Topology.SSet import Math.Topology.SSet.Effective import Math.Topology.SSet.Sphere import Math.Topology.SSet.TwistedProduct import Math.Topology.SGrp.Wbar import Math.Topology.SGrp.KGn s3 = Sphere 3 kz2 = Wbar kz1 kz3 = Wbar (Wbar kz1) classifying :: Morphism Sphere (...
null
https://raw.githubusercontent.com/mvr/at/06ad6b0fb12b685290e73e01115b2301bab1de4d/examples/Pi4S3.hs
haskell
module Pi4S3 where import System.IO import Math.Topology.SSet import Math.Topology.SSet.Effective import Math.Topology.SSet.Sphere import Math.Topology.SSet.TwistedProduct import Math.Topology.SGrp.Wbar import Math.Topology.SGrp.KGn s3 = Sphere 3 kz2 = Wbar kz1 kz3 = Wbar (Wbar kz1) classifying :: Morphism Sphere (...
cdb4bcf33670a5d93686ef23cc729b81f04049ca0d225a96c9a2f5fd9c58e6b4
brownplt/TeJaS
sb_strPat.mli
include Sig.PAT
null
https://raw.githubusercontent.com/brownplt/TeJaS/a8ad7e5e9ad938db205074469bbde6a688ec913e/src/patterns/sb_strPat.mli
ocaml
include Sig.PAT
3ee390d94cf135e3d72c0cc1872eaa390abfd5bc515f90f284eb77013467f9c7
aistrate/Okasaki
Ex05_08.hs
# LANGUAGE FlexibleInstances , MultiParamTypeClasses # module Ex05_08 (module Heap, BinTree, toBinary) where import Heap import PairingHeap data BinTree a = E' | T' a (BinTree a) (BinTree a) deriving (Eq, Show) toBinary :: PairingHeap a -> BinTree a toBinary E = E' toBinary h = toBin...
null
https://raw.githubusercontent.com/aistrate/Okasaki/cc1473c81d053483bb5e327409346da7fda10fb4/MyCode/Ch05/Ex05_08.hs
haskell
# LANGUAGE FlexibleInstances , MultiParamTypeClasses # module Ex05_08 (module Heap, BinTree, toBinary) where import Heap import PairingHeap data BinTree a = E' | T' a (BinTree a) (BinTree a) deriving (Eq, Show) toBinary :: PairingHeap a -> BinTree a toBinary E = E' toBinary h = toBin...
8164b1d3c27830e4e89b0ee519bef14e21cad408f416c54645992b60bc16f39a
ekmett/ekmett.github.com
Strong.hs
{-# OPTIONS_GHC -fglasgow-exts -fallow-undecidable-instances #-} ------------------------------------------------------------------------------------------- -- | -- Module : Control.Functor.Strong Copyright : 2008 -- License : BSD -- Maintainer : < > -- Stability : experimental -- Portability : non-portabl...
null
https://raw.githubusercontent.com/ekmett/ekmett.github.com/8d3abab5b66db631e148e1d046d18909bece5893/haskell/category-extras/src/Control/Functor/Strong.hs
haskell
# OPTIONS_GHC -fglasgow-exts -fallow-undecidable-instances # ----------------------------------------------------------------------------------------- | Module : Control.Functor.Strong License : BSD Stability : experimental Portability : non-portable (functional-dependencies) ------------------------------------...
Copyright : 2008 Maintainer : < > module Control.Functor.Strong where import Prelude hiding (sequence,Either) import Data.Traversable import Control.Monad.Either (Either(..)) strength :: Functor f => a -> f b -> f (a,b) strength = fmap . (,) costrength :: Traversable f => f (Either a b) -> Either a (f ...
eab693aa02e863b88355e2fa05ce9d88c3c0071374b119a4b5d79f61eb536d49
realworldocaml/mdx
compat_top.ml
let lookup_type typ env = #if OCAML_VERSION >= (4, 10, 0) Env.find_type_by_name typ env |> fst #else Env.lookup_type typ env #endif let lookup_value v env = #if OCAML_VERSION >= (4, 10, 0) Env.find_value_by_name v env #else Env.lookup_value v env #endif let find_value env loc id = #if OCAML_VERSION >= (4, 10,...
null
https://raw.githubusercontent.com/realworldocaml/mdx/cdcc3442484a37dac2cf836692228393ed0a0d56/lib/top/compat_top.ml
ocaml
port of Topdirs.action_on_suberror On the other hand, [load_rec] can be patched because the curried [true] is the only difference between these directives OCaml 4.13 exposes [Topeval.load_file] which allows us to patch [#load] too
let lookup_type typ env = #if OCAML_VERSION >= (4, 10, 0) Env.find_type_by_name typ env |> fst #else Env.lookup_type typ env #endif let lookup_value v env = #if OCAML_VERSION >= (4, 10, 0) Env.find_value_by_name v env #else Env.lookup_value v env #endif let find_value env loc id = #if OCAML_VERSION >= (4, 10,...
d86c95a353dc40729f9f1b3e771815c411b512bb1fc15a2a6d4a97f0ec75fe0b
bcc32/projecteuler-ocaml
test_algebra.ml
open! Core open! Import let%test_unit "quadratic_formula" = let gen = let open Quickcheck.Let_syntax in let reasonable_ranges = let%map_open () = return () and magnitude = Float.gen_incl (-5.) 5. and sign = of_list [ -1.; 0.; 1. ] in Float.copysign (exp magnitude) sign in let%...
null
https://raw.githubusercontent.com/bcc32/projecteuler-ocaml/712f85902c70adc1ec13dcbbee456c8bfa8450b2/test/test_algebra.ml
ocaml
open! Core open! Import let%test_unit "quadratic_formula" = let gen = let open Quickcheck.Let_syntax in let reasonable_ranges = let%map_open () = return () and magnitude = Float.gen_incl (-5.) 5. and sign = of_list [ -1.; 0.; 1. ] in Float.copysign (exp magnitude) sign in let%...
85ca60422e214a2f1501048bdf9aa645c8fba71333f31d6c2e4ada47cd045ce1
KirinDave/fuzed
status_responder.erl
-module(status_responder). -include("yaws_api.hrl"). -export([out/1, mochiweb_handler/1]). %% START Yaws Specific Stuff out(Arg) -> get_status(extract_path_info(Arg#arg.appmoddata)). %% END Yaws Specific Stuff %% START Mochiweb Specific Stuff mochiweb_handler(Req) -> "/status" ++ RestPath = Req:get(path), [{sta...
null
https://raw.githubusercontent.com/KirinDave/fuzed/56098d9e4c139613845289bdd5acebdfe608981a/elibs/responders/status_responder.erl
erlang
START Yaws Specific Stuff END Yaws Specific Stuff START Mochiweb Specific Stuff
-module(status_responder). -include("yaws_api.hrl"). -export([out/1, mochiweb_handler/1]). out(Arg) -> get_status(extract_path_info(Arg#arg.appmoddata)). mochiweb_handler(Req) -> "/status" ++ RestPath = Req:get(path), [{status, Status}, {html, Message}] = get_status(extract_path_info(RestPath)), Req:respond({...
53a04fa3355f714dda2d96cc4755d831b60d5e8c845bd5c7a2b90e21007b336e
dmitryvk/sbcl-win32-threads
thread.lisp
;;;; support for threads needed at cross-compile time This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the ;;;; public domain. The software is in the p...
null
https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/src/code/thread.lisp
lisp
support for threads needed at cross-compile time more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. This is about the only use for which a stale value of owner is sufficient. closes over GOT-...
This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB!THREAD") (def!type thread-name () 'simple-string) (def!struct (thread (:constructor %make-thread)) #!+s...
cd7eb85a7d0ac4edd13de9db81be765a402fdb2ae6d73132c0c38d184716817e
MyDataFlow/ttalk-server
proper_orddict.erl
Copyright 2010 - 2013 < > , < > and < > %%% This file is part of PropEr . %%% %%% PropEr is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 o...
null
https://raw.githubusercontent.com/MyDataFlow/ttalk-server/07a60d5d74cd86aedd1f19c922d9d3abf2ebf28d/deps/proper/src/proper_orddict.erl
erlang
PropEr is free software: you can redistribute it and/or modify (at your option) any later version. PropEr is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License fo...
Copyright 2010 - 2013 < > , < > and < > This file is part of PropEr . it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Pub...
de062d8316499e4f7dfcfdf35983cee5b90129bf2dd03d1e52bd78e6d8f923bd
jacius/lispbuilder
image.lisp
SDL_image v1.2.10 CFFI lisp wrapper (in-package #:lispbuilder-sdl-image-cffi) (defctype image-return-val-0+1 (:wrapper :int :from-c return-val-0+1)) (defctype image-type (:wrapper :string :to-c convert-image-type)) (defctype free-src :boolean) (defconstant SDL-IMAGE-MAJOR-VERSION 1) (defconstant SDL-IMAGE-MINOR-VE...
null
https://raw.githubusercontent.com/jacius/lispbuilder/e693651b95f6818e3cab70f0074af9f9511584c3/lispbuilder-sdl-image/cffi/image.lisp
lisp
it should NOT be used to fill a version structure, instead you should use the SDL_IMAGE_VERSION() macro. colorkey for the surface. You can enable RLE acceleration on the surface afterwards by calling: SDL_SetColorKey(image, SDL_RLEACCEL, image->format->colorkey); Convenience functions Functions to detec...
SDL_image v1.2.10 CFFI lisp wrapper (in-package #:lispbuilder-sdl-image-cffi) (defctype image-return-val-0+1 (:wrapper :int :from-c return-val-0+1)) (defctype image-type (:wrapper :string :to-c convert-image-type)) (defctype free-src :boolean) (defconstant SDL-IMAGE-MAJOR-VERSION 1) (defconstant SDL-IMAGE-MINOR-VE...
e681ed4cc86eb3eb6bc24fa192fe674d155c429ef4337cf996a3da67fc7db27d
auser/beehive
users_controller_test.erl
-module (users_controller_test). -include_lib("eunit/include/eunit.hrl"). -include ("beehive.hrl"). setup() -> bh_test_util:dummy_user(), % rest_server:start_link(), timer:sleep(100), ok. teardown(_X) -> beehive_db_srv:delete_all(user), beehive_db_srv:delete_all(user_app), beehive_db...
null
https://raw.githubusercontent.com/auser/beehive/dfe257701b21c56a50af73c8203ecac60ed21991/lib/erlang/apps/beehive/test/bh_rest/users_controller_test.erl
erlang
-module (users_controller_test). -include_lib("eunit/include/eunit.hrl"). -include ("beehive.hrl"). setup() -> rest_server:start_link(), timer:sleep(100), ok. teardown(_X) -> beehive_db_srv:delete_all(user), beehive_db_srv:delete_all(user_app), beehive_db_srv:delete_all(app), ok. starting_test_() -> ...
aa3b53d85fac83b80ac7c5529f143168151a29ae68775113dc359e062d4d4ba5
froggey/Mezzano
kill-temps.lisp
;;;; Removal of unnecessary temporary variables. (in-package :mezzano.compiler) ;;; Attempt to eliminate temporary variables (bound, never assigned, used once). Bound forms are pushed forward through the IR until their one use point ;;; is found, then it is replaced and the original binding removed. ( let ( ( foo...
null
https://raw.githubusercontent.com/froggey/Mezzano/f0eeb2a3f032098b394e31e3dfd32800f8a51122/compiler/kill-temps.lisp
lisp
Removal of unnecessary temporary variables. Attempt to eliminate temporary variables (bound, never assigned, used once). is found, then it is replaced and the original binding removed. them is fairly important. VALUES prevents additional values from leaking without any impact on the generated code. Don't skip ov...
(in-package :mezzano.compiler) Bound forms are pushed forward through the IR until their one use point ( let ( ( foo ( bar ) ) ) ( baz foo ) ) = > ( baz ( values ( bar ) ) ) The codegen does n't deal with explicit temporaries very well , so eliminating (defun kill-temporaries (lambda architecture) (declare (...
62ed6b1d49697427e8717f2f3c26da51c301171edd9f99e37a78167f2538d27d
hidaris/thinking-dumps
2-21.rkt
#lang eopl ;;; A data-structure representation of environments ;;; Env = (empty-env) | (extend-env Var SchemeVal Env) ;;; Var = Sym (define-datatype env env? (empty-env) (extend-env (svar var?) (sval val?) (senv env?))) (define var? symbol?) (define val? (lambda (v) #t)) ;;; has-binding? : Env x...
null
https://raw.githubusercontent.com/hidaris/thinking-dumps/3fceaf9e6195ab99c8315749814a7377ef8baf86/eopl-solutions/chap2/2-21.rkt
racket
A data-structure representation of environments Env = (empty-env) | (extend-env Var SchemeVal Env) Var = Sym has-binding? : Env x Var -> Bool apply-env : Env x Var -> SchemeVal
#lang eopl (define-datatype env env? (empty-env) (extend-env (svar var?) (sval val?) (senv env?))) (define var? symbol?) (define val? (lambda (v) #t)) (define has-binding? (lambda (environment s) (cases env environment (empty-env () #f) (extend-env (svar sval senv) ...
6a21ba27212fe527b5dbab503c9c490e9cfae8ccf83bf3c5e399ebfa8660bf2a
hugoduncan/oldmj
init.clj
(ns makejack.tools.init "Initialise project" (:require [makejack.api.filesystem :as filesystem] [makejack.api.path :as path] [makejack.api.tool :as tool])) (def default-mj (tagged-literal 'mj {:targets (tagged-literal 'default-targets :all)})) (defn init "Initialise a project for use w...
null
https://raw.githubusercontent.com/hugoduncan/oldmj/0a97488be7457baed01d2d9dd0ea6df4383832ab/tools/src/makejack/tools/init.clj
clojure
(ns makejack.tools.init "Initialise project" (:require [makejack.api.filesystem :as filesystem] [makejack.api.path :as path] [makejack.api.tool :as tool])) (def default-mj (tagged-literal 'mj {:targets (tagged-literal 'default-targets :all)})) (defn init "Initialise a project for use w...
c0ea4f55130e1d8bcefc38d09f429cb740f809562c450cd9b0c9566feecdc255
picty/parsifal
picodig.ml
open Parsifal open Dns open Getopt type action = All | Dig let action = ref Dig let verbose = ref false let enrich_style = ref DefaultEnrich let set_enrich_level l = if l > 0 then begin enrich_style := EnrichLevel l; ActionDone end else ShowUsage (Some "enrich level should be a positive number.") let upda...
null
https://raw.githubusercontent.com/picty/parsifal/767a1d558ea6da23ada46d8d96a057514b0aa2a8/tools/picodig.ml
ocaml
TODO: Check the length! TODO: Use the future lwt_wrapper?
open Parsifal open Dns open Getopt type action = All | Dig let action = ref Dig let verbose = ref false let enrich_style = ref DefaultEnrich let set_enrich_level l = if l > 0 then begin enrich_style := EnrichLevel l; ActionDone end else ShowUsage (Some "enrich level should be a positive number.") let upda...
78ff86c6428c5e2a3307ef581f37b8035113d77bb2d20d698feb7e29e50bed2e
ocsigen/ojwidgets
ojw_dom.ml
external nothing : 'a -> 'a = "%identity" module T : Ojw_dom_sigs.T with type 'a elt = Dom_html.element Js.t and type element = Dom_html.element = struct type 'a elt = Dom_html.element Js.t type element = Dom_html.element let to_dom_elt = nothing let of_dom_elt = nothing end module Parent : Ojw_dom...
null
https://raw.githubusercontent.com/ocsigen/ojwidgets/4be2233980bdd1cae187c749bd27ddbfff389880/src/experimental/ojw_dom.ml
ocaml
external nothing : 'a -> 'a = "%identity" module T : Ojw_dom_sigs.T with type 'a elt = Dom_html.element Js.t and type element = Dom_html.element = struct type 'a elt = Dom_html.element Js.t type element = Dom_html.element let to_dom_elt = nothing let of_dom_elt = nothing end module Parent : Ojw_dom...
b8f36baa79ca37445e841a1e287b927042025586c0156936be73d9bfe86dfefd
jeromesimeon/Galax
code_binding.mli
(***********************************************************************) (* *) (* GALAX *) (* XQuery Engine *) (* ...
null
https://raw.githubusercontent.com/jeromesimeon/Galax/bc565acf782c140291911d08c1c784c9ac09b432/code_selection/code/code_binding.mli
ocaml
********************************************************************* GALAX XQuery Engine ...
Copyright 2001 - 2007 . $ I d : code_binding.mli , v 1.5 2007/02/01 22:08:45 simeon Exp $ Selects the _ smallest _ physical xml type for the binding according to current command - line switches , variable use counts , independent input signature and ty...
6dd3289709723c020372e0a9a66b3ed77cd3ebea3b241055b7440b64690e94fb
gpetiot/Frama-C-StaDy
states.ml
(* input, concrete output, symbolic output *) module Var_state = Datatype.Triple (Datatype.String) (Datatype.String) (Datatype.String) module Var_states = Datatype.String.Hashtbl.Make (Var_state) module NC_counter_examples = State_builder.Hashtbl (Property.Hashtbl) (Datatype.String.Hashtbl.Make (* f...
null
https://raw.githubusercontent.com/gpetiot/Frama-C-StaDy/48d8677c0c145d730d7f94e37b7b3e3a80fd1a27/states.ml
ocaml
input, concrete output, symbolic output file msg file msg statements whose contract is too weak
module Var_state = Datatype.Triple (Datatype.String) (Datatype.String) (Datatype.String) module Var_states = Datatype.String.Hashtbl.Make (Var_state) module NC_counter_examples = State_builder.Hashtbl (Property.Hashtbl) (Datatype.String.Hashtbl.Make (struct let name = "NC_counter_examples" ...
e24966e7c5bc1f7e7674e47e04b28d0f754a3085272379680dec24d3a700f4fe
ryszard/clsql
postgresql-loader.lisp
-*- Mode : LISP ; Syntax : ANSI - Common - Lisp ; Base : 10 -*- ;;;; ************************************************************************* ;;;; FILE IDENTIFICATION ;;;; ;;;; Name: postgresql-loader.sql Purpose : PostgreSQL library loader using UFFI Programmer : Date Started : Feb 20...
null
https://raw.githubusercontent.com/ryszard/clsql/9aafcb72bd7ca1d7e908938b6a5319753b3371d9/db-postgresql/postgresql-loader.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 -*- ************************************************************************* FILE IDENTIFICATION Name: postgresql-loader.sql (), also known as the LLGPL. *************************************************************************
Purpose : PostgreSQL library loader using UFFI Programmer : Date Started : Feb 2002 $ Id$ This file , part of CLSQL , is Copyright ( c ) 2002 by CLSQL users are granted the rights to distribute and use this software as governed by the terms of the Lisp Lesser GNU Public License (in-pac...