_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
37b81a4f6848cc770459344a96d1dc4cd7385fb10485552c073856b486e1ee83
plandes/cisql
read.clj
(ns ^{:doc "Process query at the command line from user input." :author "Paul Landes"} zensols.cisql.read (:import [java.util.regex Matcher]) (:require [clojure.tools.logging :as log] [clojure.string :as s] [instaparse.core :as insta] [zensols.cisql.conf :as conf])) (d...
null
https://raw.githubusercontent.com/plandes/cisql/8001864f1596d191386a3787b49e8a640705fee2/src/clojure/zensols/cisql/read.clj
clojure
lifted directly from `clojure.string`
(ns ^{:doc "Process query at the command line from user input." :author "Paul Landes"} zensols.cisql.read (:import [java.util.regex Matcher]) (:require [clojure.tools.logging :as log] [clojure.string :as s] [instaparse.core :as insta] [zensols.cisql.conf :as conf])) (d...
3379e938263bc4bf285a6fc53cf08f199a8a16ae34ac8ad96812da8f3ed62891
tali713/mit-scheme
plotter.scm
;;; -*- Scheme -*- (declare (usual-integrations)) ;;;; Plotting Package for Scheme Widget Application Toolkit ;;; Working from the Scheme Prompt ;;;(PLOTTER) ;;; Creates a new plotter. ;;; ;;; Example: (define p (plotter)) ;;; ( PLOT plotter . options ) The options list sequentially describes one or more ...
null
https://raw.githubusercontent.com/tali713/mit-scheme/6c703a838081fe2418bc0dbfe003bdb429d8c479/src/swat/scheme/other/plotter.scm
scheme
-*- Scheme -*- Plotting Package for Scheme Widget Application Toolkit Working from the Scheme Prompt (PLOTTER) Creates a new plotter. Example: (define p (plotter)) plotted, in the following manner: first curve second curve ... ...) function. Curve-specific options affect only...
(declare (usual-integrations)) ( PLOT plotter . options ) The options list sequentially describes one or more curves to be ( PLOT plotter Returns a single curve if only one function is specified , and a list of curves if more than one function is supplied . Example : ( define c0 ( plot p sin ' x...
cb04cc44eeb45a0db9f80eb54a96f8f739d9e1157a39bd1e3838887afdb3eca2
pascal-knodel/haskell-craft
Factorial.hs
-- Factorial. module Factorial where factorial :: Integer -> Integer factorial factor | factor < 0 = error "Negative factor." | otherwise = factorial' factor where factorial' :: Integer -> Integer factorial' 0 = 1 factorial' 1 = 1 factorial' factor = factor * factorial' (factor - 1) ...
null
https://raw.githubusercontent.com/pascal-knodel/haskell-craft/c03d6eb857abd8b4785b6de075b094ec3653c968/Examples/%C2%B7%C2%A0Recursion/%C2%B7%20Primitive%20Recursion/Calculations/Factorial.hs
haskell
Factorial. *** Exception: Negative factor.
module Factorial where factorial :: Integer -> Integer factorial factor | factor < 0 = error "Negative factor." | otherwise = factorial' factor where factorial' :: Integer -> Integer factorial' 0 = 1 factorial' 1 = 1 factorial' factor = factor * factorial' (factor - 1) GHCi > ...
02736fafdbc5d40d95536ff7fe10645683dbef9698c30bdc2fe9c2219da26fdf
sjl/cl-blt
particles.lisp
(ql:quickload '(:cl-blt :losh :iterate)) (defpackage :cl-blt.examples.particles (:use :cl :losh :iterate)) (in-package :cl-blt.examples.particles) ;;;; Data --------------------------------------------------------------------- (defparameter *running* nil) (defparameter *mspf* 0) (defparameter *mouse* nil) (defpara...
null
https://raw.githubusercontent.com/sjl/cl-blt/ee69ac7bfb473e9cdd8c2d50d45ef288ef315ff3/examples/particles.lisp
lisp
Data --------------------------------------------------------------------- Utils -------------------------------------------------------------------- Drawing ------------------------------------------------------------------ Config ------------------------------------------------------------------- Input ---------...
(ql:quickload '(:cl-blt :losh :iterate)) (defpackage :cl-blt.examples.particles (:use :cl :losh :iterate)) (in-package :cl-blt.examples.particles) (defparameter *running* nil) (defparameter *mspf* 0) (defparameter *mouse* nil) (defparameter *particles* nil) (defun noop (particle ms n) (declare (ignore particle...
db9be0e3f4eb3805205f9c7cfd6d42320e5df765d10d94d48ec73b2d9a8f0dd5
conormcd/clj-honeycomb
project.clj
(def libhoney-version "1.0.6") (defproject conormcd/clj-honeycomb (str libhoney-version (or (some->> "CIRCLE_BUILD_NUM" System/getenv (str ".")) "-dev")) :description "A Clojure interface to Honeycomb.io, built on libhoney-java." :...
null
https://raw.githubusercontent.com/conormcd/clj-honeycomb/f309bf3b85af2239f4172189fcd934076306240b/project.clj
clojure
(def libhoney-version "1.0.6") (defproject conormcd/clj-honeycomb (str libhoney-version (or (some->> "CIRCLE_BUILD_NUM" System/getenv (str ".")) "-dev")) :description "A Clojure interface to Honeycomb.io, built on libhoney-java." :...
9d53cec6c3df0fb7b2680c09a4a2c4eaa28aee1ce564dab244e1579139e52225
basho/riak_test
verify_job_enable_rc.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2016 - 2017 Basho Technologies , Inc. %% This file is provided to you 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...
null
https://raw.githubusercontent.com/basho/riak_test/8170137b283061ba94bc85bf42575021e26c929d/tests/verify_job_enable_rc.erl
erlang
------------------------------------------------------------------- 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 permissio...
Copyright ( c ) 2016 - 2017 Basho Technologies , Inc. 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 distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(verify_job_enabl...
846a633bbcbac6c7cf179c59d28ec5559a2040ed0b98c68d85e9b49632569a42
semerdzhiev/fp-2020-21
squares-solution2.rkt
; accumulate -- the version from the lecture slides (define (accumulate op term init a next b) (define (loop i) (if (<= i b) (op (term i) (loop (next i)) ) init )) (loop a) ) (define (squares n) The # < void > value . If not using R5RS , simply define v to be ( void ) (define v (...
null
https://raw.githubusercontent.com/semerdzhiev/fp-2020-21/64fa00c4f940f75a28cc5980275b124ca21244bc/homework/1/squares-solution2.rkt
racket
accumulate -- the version from the lecture slides identity increment Display pre, then display elem n-times and then display post corner-left and corner-right when printing the corners of a square
(define (accumulate op term init a next b) (define (loop i) (if (<= i b) (op (term i) (loop (next i)) ) init )) (loop a) ) (define (squares n) The # < void > value . If not using R5RS , simply define v to be ( void ) (define v (display "")) (define (id x) x) (define (1+ n)...
2f3410892ea0ee36ccd132b3efd6be63a574a6c91acdc8c3e386c8143bbe9080
mariachris/Concuerror
sync_start.erl
-module(sync_start). -export([sync_start/0, sync_start/1]). -export([scenarios/0]). scenarios() -> [{?MODULE, inf, dpor}]. sync_start() -> sync_start(2). sync_start(N) -> Parent = self(), Pids = [spawn(fun() -> worker(I, Parent) end) || I <- lists:seq(1,N)], ets:new(table, [named_table, public]), ...
null
https://raw.githubusercontent.com/mariachris/Concuerror/87e63f10ac615bf2eeac5b0916ef54d11a933e0b/testsuite/suites/dpor/src/sync_start.erl
erlang
-module(sync_start). -export([sync_start/0, sync_start/1]). -export([scenarios/0]). scenarios() -> [{?MODULE, inf, dpor}]. sync_start() -> sync_start(2). sync_start(N) -> Parent = self(), Pids = [spawn(fun() -> worker(I, Parent) end) || I <- lists:seq(1,N)], ets:new(table, [named_table, public]), ...
a212673ac7bd0c1bf2f5fd6a7c4b538a7e840bf7362374f60b86972e3b015d04
comby-tools/comby
vangstrom_unix.mli
---------------------------------------------------------------------------- Copyright ( c ) 2016 Inhabited Type LLC . All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : ...
null
https://raw.githubusercontent.com/comby-tools/comby/e98363256dcc391ce132b3713e230cdaae497172/lib/kernel/vendored/vangstrom/unix/vangstrom_unix.mli
ocaml
---------------------------------------------------------------------------- Copyright ( c ) 2016 Inhabited Type LLC . All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : ...
0343d3104ac7fb4174370a5b2d60ccf5cbc5d0250e58b348aeeed20c5aea5bac
EasyCrypt/easycrypt
ecBigIntCore.ml
(* -------------------------------------------------------------------- *) module type TheInterface = sig type zint exception Overflow exception InvalidString val compare : zint -> zint -> int val equal : zint -> zint -> bool val sign : zint -> int val hash : zint -> int val le : zint -> zint...
null
https://raw.githubusercontent.com/EasyCrypt/easycrypt/f87695472e70c313ef2966e20979b1afcc2e543e/src/ecBigIntCore.ml
ocaml
--------------------------------------------------------------------
module type TheInterface = sig type zint exception Overflow exception InvalidString val compare : zint -> zint -> int val equal : zint -> zint -> bool val sign : zint -> int val hash : zint -> int val le : zint -> zint -> bool val lt : zint -> zint -> bool val ge : zint -> zint -> bool ...
d6fad09962c3e0d7ab789f8a4c4217a6c4cd47deda3abf358c1c08aab1e44997
xtdb/xtdb
checkpoint_test.clj
(ns xtdb.s3.checkpoint-test (:require [clojure.test :as t] [xtdb.fixtures.checkpoint-store :as fix.cp-store] [xtdb.s3-test :as s3t] [xtdb.s3.checkpoint :as s3c] [xtdb.s3.checkpoint-transfer-manager :as s3ctm] [xtdb.system :as sys]) (:import xtdb.s3.S3Confi...
null
https://raw.githubusercontent.com/xtdb/xtdb/b21c8eb091e32b10fc2a533bd3ecfd3e59c0a7d3/modules/s3/test/xtdb/s3/checkpoint_test.clj
clojure
(ns xtdb.s3.checkpoint-test (:require [clojure.test :as t] [xtdb.fixtures.checkpoint-store :as fix.cp-store] [xtdb.s3-test :as s3t] [xtdb.s3.checkpoint :as s3c] [xtdb.s3.checkpoint-transfer-manager :as s3ctm] [xtdb.system :as sys]) (:import xtdb.s3.S3Confi...
7f9197bc205b881559cca853582a8aaf1edca08ebbf7ceae55f906ac5ef1b4d0
cbiffle/cfm
StrSpec.hs
# LANGUAGE NoImplicitPrelude # module RTL.StrSpec where import RTL.Str import RTL.TestUtil spec = genspec datapath
null
https://raw.githubusercontent.com/cbiffle/cfm/4d35a5055c1313172089d0e57ff56bc058f1759d/rtl/test/RTL/StrSpec.hs
haskell
# LANGUAGE NoImplicitPrelude # module RTL.StrSpec where import RTL.Str import RTL.TestUtil spec = genspec datapath
cb46046fa26b120f3e73a02ca3c0beacf3d46bbfafbcd3e446e1822c54de2bc1
stan-dev/stanc3
run_js_on_args.ml
open Core_kernel module Unix = Caml_unix let run_capturing_output cmd = let noflags = Array.create ~len:0 "" in let stdout, stdin, stderr = Unix.open_process_full cmd noflags in let chns = [stdout; stderr] in let out = List.map ~f:In_channel.input_lines chns in ignore (Unix.close_process_full (stdout, stdin,...
null
https://raw.githubusercontent.com/stan-dev/stanc3/2e5562c16c7567ddf7fedc988902f9e38e390136/test/stancjs/run_js_on_args.ml
ocaml
open Core_kernel module Unix = Caml_unix let run_capturing_output cmd = let noflags = Array.create ~len:0 "" in let stdout, stdin, stderr = Unix.open_process_full cmd noflags in let chns = [stdout; stderr] in let out = List.map ~f:In_channel.input_lines chns in ignore (Unix.close_process_full (stdout, stdin,...
514b61ed7391080a5c62a14f84c42f646ce9f96ef48972aee72860f251e41cd8
JPMoresmau/dbIDE
Modules.hs
{-# LANGUAGE RecordWildCards, OverloadedStrings #-} module Language.Haskell.ASBrowser.Operations.Modules where import Control.Arrow ((***)) import Control.Monad.Reader import Control.Monad.State import Data.Acid import Data.IxSet.Typed import qualified Data.Map as DM import qualified Data.Text as T import Language.H...
null
https://raw.githubusercontent.com/JPMoresmau/dbIDE/dae37edf67fbe55660e7e22c9c5356d0ada47c61/as-browser/src/Language/Haskell/ASBrowser/Operations/Modules.hs
haskell
# LANGUAGE RecordWildCards, OverloadedStrings #
module Language.Haskell.ASBrowser.Operations.Modules where import Control.Arrow ((***)) import Control.Monad.Reader import Control.Monad.State import Data.Acid import Data.IxSet.Typed import qualified Data.Map as DM import qualified Data.Text as T import Language.Haskell.ASBrowser.Types import Language.Haskell.ASBro...
5ac7241673de65cf716b6b86b566649771c1beb071a002249ada41b1ffae2aff
AdRoll/rebar3_hank
unused_callbacks_SUITE.erl
-module(unused_callbacks_SUITE). -export([all/0, init_per_testcase/2, end_per_testcase/2]). -export([with_warnings/1, with_macros/1, without_warnings/1, ignore/1, ignore_config/1]). all() -> [with_warnings, with_macros, without_warnings, ignore, ignore_config]. init_per_testcase(_, Config) -> hank_test_utils...
null
https://raw.githubusercontent.com/AdRoll/rebar3_hank/7a854eb4b8bdc205eca4ceaa797f64435db83808/test/unused_callbacks_SUITE.erl
erlang
@doc No warnings since rebar.config specifically states that all of them should be ignored.
-module(unused_callbacks_SUITE). -export([all/0, init_per_testcase/2, end_per_testcase/2]). -export([with_warnings/1, with_macros/1, without_warnings/1, ignore/1, ignore_config/1]). all() -> [with_warnings, with_macros, without_warnings, ignore, ignore_config]. init_per_testcase(_, Config) -> hank_test_utils...
3534fc24eeac22a8aadfb0cfda1c4d2a663fd42df603203ca5b0eb0ad3354dc8
manuel-serrano/bigloo
unit.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / comptime / Prof / unit.scm * / ;* ------------------------------------------------------------- */ * Author : * / ;* Creation :...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/eb650ed4429155f795a32465e009706bbf1b8d74/comptime/Prof/unit.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * Creation : Wed Apr 8 17:21:15 1998 */ * ------------------------------------------------------------- */ * The debugging informati...
* serrano / prgm / project / bigloo / comptime / Prof / unit.scm * / * Author : * / * Last change : Thu Sep 18 12:00:46 2008 ( serrano ) * / * Copyright : 1998 - 2008 , see LICENSE file * / (module prof_walk ...
84ca64fe4c584c2dd128db2798d95239c63e94b0f392f09491a0ab4f13078b91
ocaml-explore/explore
test_utils.ml
open Explore let test_code_to_html () = let md = "<!-- $MDX file=examples/lib -->\n```ocaml\nlet () = ()\n```" in let test = Utils.code_to_html "my-file" (Omd.of_string md) in let correct : Omd.block list = [{ bl_desc = Omd.Html_block "<div><div><p class=\"toolbar\"><a href=\"-explore/explore/tree/trunk/content/...
null
https://raw.githubusercontent.com/ocaml-explore/explore/117768b378959f18a8d818f37779a750e90f3438/explore/tests/test_utils.ml
ocaml
open Explore let test_code_to_html () = let md = "<!-- $MDX file=examples/lib -->\n```ocaml\nlet () = ()\n```" in let test = Utils.code_to_html "my-file" (Omd.of_string md) in let correct : Omd.block list = [{ bl_desc = Omd.Html_block "<div><div><p class=\"toolbar\"><a href=\"-explore/explore/tree/trunk/content/...
a5b4093dab96d4531bbf027e5b2d490e84bef6b14fcb78602e1491d5e3e1c3c7
BitGameEN/bitgamex
lager.erl
Copyright ( c ) 2011 - 2012 Basho Technologies , 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 with the License . You may obtain %% a copy of the License at %% %% -2.0 %% %% Unless required...
null
https://raw.githubusercontent.com/BitGameEN/bitgamex/151ba70a481615379f9648581a5d459b503abe19/src/deps/lager/src/lager.erl
erlang
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. @doc The lager logging framewo...
Copyright ( c ) 2011 - 2012 Basho Technologies , 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 distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY ...
8ad5611945a69d9bc9a8461fcb94346331b8c00a2af4cf073563c516d431fa32
buildsome/buildsome
Process.hs
# LANGUAGE TupleSections # | Low level wrapping over System . Process module Lib.Process (getOutputs, Env, CmdSpec(..)) where import Control.Concurrent.Async import Control.Exception (uninterruptibleMask) import Control.Monad import qualified Data.ByteString.Char8 as BS import ...
null
https://raw.githubusercontent.com/buildsome/buildsome/479b92bb74a474a5f0c3292b79202cc850bd8653/src/Lib/Process.hs
haskell
| Create a process, and terminate it when leaving the given code section | Get the outputs of a process with a given environment spec MUST be true so that interruptProcessGroupOf works Read both stdout and stderr concurrently to prevent deadlock - e.g. if we read them sequentially (stdout then stderr) and the chil...
# LANGUAGE TupleSections # | Low level wrapping over System . Process module Lib.Process (getOutputs, Env, CmdSpec(..)) where import Control.Concurrent.Async import Control.Exception (uninterruptibleMask) import Control.Monad import qualified Data.ByteString.Char8 as BS import ...
8b6a69cd956c519847630137cf8b3d7a3c01abb45e0de163b6d7a0817e11a4ed
djnym/erlang-pool-research
pt_sup.erl
-module (pt_sup). -behaviour (supervisor). %% API -export ([ start_link/1 ]). %% supervisor callbacks -export ([init/1]). %%==================================================================== %% API functions %%==================================================================== start_link (Mods) -> supervisor:s...
null
https://raw.githubusercontent.com/djnym/erlang-pool-research/3e41f46e40a2d346d984bb016d871b6234a2a50d/src/pt_sup.erl
erlang
API supervisor callbacks ==================================================================== API functions ==================================================================== ==================================================================== supervisor callbacks =================================================...
-module (pt_sup). -behaviour (supervisor). -export ([ start_link/1 ]). -export ([init/1]). start_link (Mods) -> supervisor:start_link ({local, ?MODULE}, ?MODULE, [Mods]). init ([Mods]) -> MinPool = 20, MaxPool = 20, { ok, { {one_for_one, 10, 10}, lists:flatten ([ { pt_vmstats, {...
f3a6e657765c1c3e00fe33bc6ad95511f5bda2cbf95eb2290e1d775f0296be4a
mbutterick/beautiful-racket
main.rkt
#lang racket (provide (all-from-out racket)) (module reader syntax/module-reader passthrough-demo)
null
https://raw.githubusercontent.com/mbutterick/beautiful-racket/f0e2cb5b325733b3f9cbd554cc7d2bb236af9ee9/beautiful-racket-demo/passthrough-demo/main.rkt
racket
#lang racket (provide (all-from-out racket)) (module reader syntax/module-reader passthrough-demo)
67a886932b3781cc0bee53b550dccb12e3363a72cfd8400d23db7b4e7a38b52c
sol/v8
V8Spec.hs
{-# LANGUAGE OverloadedStrings #-} module Language.JavaScript.V8Spec (main, spec) where import Test.Hspec import System.IO.Silently import Language.JavaScript.V8 import Data.String.Builder import Control.Exception (throwIO, ErrorCall(..)) import Control.Mon...
null
https://raw.githubusercontent.com/sol/v8/0ff1b23588cf3c0a8f55a4ec557971dabb104d73/test/Language/JavaScript/V8Spec.hs
haskell
# LANGUAGE OverloadedStrings #
module Language.JavaScript.V8Spec (main, spec) where import Test.Hspec import System.IO.Silently import Language.JavaScript.V8 import Data.String.Builder import Control.Exception (throwIO, ErrorCall(..)) import Control.Monad.Trans.State import Dat...
37cc3bb1da770a2fb723c2d3c7349301f19d659d8fb0e2b05b7dd80efc2e08a4
fractalide/fractalide
loader.rkt
#lang racket/base (provide dynamic-require-agent load-agent load-graph) (define (dynamic-require-agent agt provided (fail-thunk #f)) (define (try-dynamic-require mod provided fail-thunk fallback) (with-handlers ([exn:fail:filesystem:missing-module? fallback]) (if fail-thunk (dynami...
null
https://raw.githubusercontent.com/fractalide/fractalide/9c54ec2615fcc2a1f3363292d4eed2a0fcb9c3a5/modules/rkt/rkt-fbp/loader.rkt
racket
#lang racket/base (provide dynamic-require-agent load-agent load-graph) (define (dynamic-require-agent agt provided (fail-thunk #f)) (define (try-dynamic-require mod provided fail-thunk fallback) (with-handlers ([exn:fail:filesystem:missing-module? fallback]) (if fail-thunk (dynami...
448d4cefdb8ac9678fac17b902aa624aef216b0d35d68c3db13f8d5517f885b8
facebook/duckling
NB.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. {-# LANGUAGE GADTs #-} module Duckling.Rules.NB ( defaultRules , langRules , localeRules ) where ...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/Rules/NB.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. # LANGUAGE GADTs #
Copyright ( c ) 2016 - present , Facebook , Inc. module Duckling.Rules.NB ( defaultRules , langRules , localeRules ) where import Duckling.Dimensions.Types import Duckling.Locale import Duckling.Types import qualified Duckling.AmountOfMoney.NB.Rules as AmountOfMoney import qualified Duckling.Duration.NB....
1e89270dfcafb5397e36f754b1081e4a49a41f1239fd1ea7e063b5c0eccb21b5
hcarty/ocaml-gdal
geo_transform.ml
open Ctypes exception Geo_transform_error let err = T.err Geo_transform_error type t = (float, Bigarray.float64_elt, Bigarray.c_layout) Bigarray.Array1.t let allocate_gt () = Bigarray.(Array1.create float64 c_layout 6) let to_ptr gt = bigarray_start array1 gt let get = Lib.c "GDALGetGeoTransform" (Data_se...
null
https://raw.githubusercontent.com/hcarty/ocaml-gdal/9c225c1e3f8002ec7614b3c1657e5f05e4e0e821/src/geo_transform.ml
ocaml
open Ctypes exception Geo_transform_error let err = T.err Geo_transform_error type t = (float, Bigarray.float64_elt, Bigarray.c_layout) Bigarray.Array1.t let allocate_gt () = Bigarray.(Array1.create float64 c_layout 6) let to_ptr gt = bigarray_start array1 gt let get = Lib.c "GDALGetGeoTransform" (Data_se...
b32417f8264b4cd0cc8248f938be5b94671e7cd60920e1020d456d44b8a8fdb0
jeffshrager/biobike
tests.lisp
(in-package :com.gigamonkeys.test) (deftest pass () (multiple-value-bind (ok passes failures) ;; ignore-results keeps results of (test pass) being recorded as ;; part of this test function. But TEST still returns the ;; results accumulated by running the test function. (ignore-results (test c...
null
https://raw.githubusercontent.com/jeffshrager/biobike/5313ec1fe8e82c21430d645e848ecc0386436f57/BioLisp/ThirdParty/monkeylib/test-framework/tests.lisp
lisp
ignore-results keeps results of (test pass) being recorded as part of this test function. But TEST still returns the results accumulated by running the test function.
(in-package :com.gigamonkeys.test) (deftest pass () (multiple-value-bind (ok passes failures) (ignore-results (test com.gigamonkeys.test-tests::always-pass)) (check ok (= passes 1) (= failures 0)))) (deftest fail () (multiple-value-bind (ok passes failures) (ignore-results (test com.gigamonkeys.te...
85a0ba2dd3974b7bf69d7e14a3c3a92f6a70df9a239465ddfc75928896fefaa7
glguy/config-schema
Docs.hs
# Language RecursiveDo , OverloadedStrings , GADTs , GeneralizedNewtypeDeriving , CPP # | Module : Config . Schema . Docs Description : Documentation generation for config schemas Copyright : ( c ) , 2017 License : ISC Maintainer : This module generates a simple textual documentation fo...
null
https://raw.githubusercontent.com/glguy/config-schema/764ecf3da9db2279f221cca3034a846107d37bef/src/Config/Schema/Docs.hs
haskell
Top - level configuration file fields : username : REQUIRED text Name used to login attempts : integer Number of login attempts Top-level configuration file fields: username: REQUIRED text Name used to login attempts: integer Number of login attempts | Def...
# Language RecursiveDo , OverloadedStrings , GADTs , GeneralizedNewtypeDeriving , CPP # | Module : Config . Schema . Docs Description : Documentation generation for config schemas Copyright : ( c ) , 2017 License : ISC Maintainer : This module generates a simple textual documentation fo...
901f3eb33612fd5e02615c37ce05b1e99d2230bf4a8408f6c18ad847fd559ed1
jeffshrager/biobike
mfold.lisp
-*- mode : Lisp ; Syntax : Common - Lisp ; Package : ; -*- (in-package :bio) ;;; +=========================================================================+ | Copyright ( c ) 2006 by The BioBike Team s | ;;; | ...
null
https://raw.githubusercontent.com/jeffshrager/biobike/5313ec1fe8e82c21430d645e848ecc0386436f57/BioLisp/Lib/mfold.lisp
lisp
Syntax : Common - Lisp ; Package : ; -*- +=========================================================================+ | | | Permission is hereby granted, free of charge, to any person obtaining | | a copy of this software and associated docu...
(in-package :bio) | Copyright ( c ) 2006 by The BioBike Team s | | " Software " ) , to deal in the Software without restriction , including | | distribute , sublicense , and/or sell copies of the Software , and to | | permit persons to whom the Software is furnished...
305ed26218b700535d019f0b027fffdfe7de5590843d9b20ac7f9435ea4ef745
smuenzel/opile
ctype.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/smuenzel/opile/190ca86df6440550d0fddf0222e16ba2e52bca64/raw-compiler/ctype.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the Operations on core types open Asttypes open Types module Unification_trace: sig type position = Fi...
90f94cc4b276ad48e26d5ed5b6a4e19e56898c371566a108f66ce6e05767d1c8
originrose/think.image
io.clj
(ns think.image.io (:import [java.awt.image BufferedImage] [javax.imageio ImageIO ImageWriter IIOImage] [javax.imageio.plugins.jpeg JPEGImageWriteParam] [java.io OutputStream])) (defn get-image-writer ^ImageWriter [format-name] (let [iter (ImageIO/getImageWritersByFormatName for...
null
https://raw.githubusercontent.com/originrose/think.image/0179d104d5fa74977890942858b44e1349457514/src/clj/think/image/io.clj
clojure
(ns think.image.io (:import [java.awt.image BufferedImage] [javax.imageio ImageIO ImageWriter IIOImage] [javax.imageio.plugins.jpeg JPEGImageWriteParam] [java.io OutputStream])) (defn get-image-writer ^ImageWriter [format-name] (let [iter (ImageIO/getImageWritersByFormatName for...
cc325c30912d91daf5557f92921b9952316af0d2a9797383a89fb253b1f13dbc
yariv/twoorl
twoorl_por_br.erl
This file is part of Twoorl . %% %% Twoorl 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. %% %% Twoorl is distributed in the ho...
null
https://raw.githubusercontent.com/yariv/twoorl/77b6bea2e29283d09a95d8db131b916e16d2960b/src/bundles/twoorl_por_br.erl
erlang
Twoorl is free software: you can redistribute it and/or modify (at your option) any later version. Twoorl 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 f...
This file is part of Twoorl . 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 Public License along with . If not , see < / > . -module(twoorl_por_br). -export([bundle...
6e9d16df89abf56af408b59f3ed14cd02f895f4588fd9f2468b3b79e060c60c2
cabol/tcp_client
tcp_client_app.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2015 , 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 with the License . You may obtain %% a copy of ...
null
https://raw.githubusercontent.com/cabol/tcp_client/cc6a3a5814175218d9249ea8f1b7c3636c52cba4/src/tcp_client_app.erl
erlang
------------------------------------------------------------------- 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 permissio...
Copyright ( c ) 2015 , 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 distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY @author < > ( C...
85e3174ac4f8c1fce5978a22e1cadeef9cb1bfb8606bcfbc2b18c4c2f99d43ce
Bogdanp/marionette
marionette.rkt
#lang racket/base (require (for-syntax racket/base racket/format racket/syntax syntax/parse) json racket/contract racket/format racket/list racket/match racket/port racket/string racke...
null
https://raw.githubusercontent.com/Bogdanp/marionette/e537fbe6876337921c9340574ffea4fd5520c575/marionette-lib/private/marionette.rkt
racket
errors ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; impl ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; commands ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Supported commands can be found here: -central/source/testing/marionette/driver.js#3570
#lang racket/base (require (for-syntax racket/base racket/format racket/syntax syntax/parse) json racket/contract racket/format racket/list racket/match racket/port racket/string racke...
003e7ec93236e0795e2590b6d6d2f92abcee90fd1e7705ee87a0776ea2b50b62
realworldocaml/examples
non_principal.ml
type s = { foo: int; bar: unit } type t = { foo: int } let f x = x.bar; x.foo
null
https://raw.githubusercontent.com/realworldocaml/examples/32ea926861a0b728813a29b0e4cf20dd15eb486e/code/front-end/non_principal.ml
ocaml
type s = { foo: int; bar: unit } type t = { foo: int } let f x = x.bar; x.foo
be5976a91ad8aa2f566933799ed69d9c1c805f95cca8120200b48b75ea7956b4
mjambon/dune-deps
Disambiguate.ml
Unit tests for the Disambiguate module . Unit tests for the Disambiguate module. *) open Printf open Dune_deps let map paths = printf "-- Input paths:\n"; List.iter (fun path -> printf " %s\n" path) paths; flush stdout; let names = Disambiguate.map paths in printf "-- Output names:\n"; List.ite...
null
https://raw.githubusercontent.com/mjambon/dune-deps/48897a338bcbf91b57fccbed883497f050870b92/src/test/Disambiguate.ml
ocaml
Unit tests for the Disambiguate module . Unit tests for the Disambiguate module. *) open Printf open Dune_deps let map paths = printf "-- Input paths:\n"; List.iter (fun path -> printf " %s\n" path) paths; flush stdout; let names = Disambiguate.map paths in printf "-- Output names:\n"; List.ite...
878f3ad1c7e2d3857fb9ebd65c4619242a1b7435b22f65c3662a11fb539f28a1
abailly/dojo-nantes
TennisTest.hs
import Test.HUnit import Tennis tata = toto `par` tata premier_coup_de_A = joueur_A_marque nouvellePartie quand_la_partie_demarre_le_score_est_zero_zero = score nouvellePartie ~?= (Zero,Zero) quand_le_joueur_A_marque = score (premier_coup_de_A) ~?= (Quinze,Zero) quand_le_joueur_A_marque_2_fois = TestList...
null
https://raw.githubusercontent.com/abailly/dojo-nantes/31600a7c74d540cb0c7d4b0c5cbe239f9a2104ac/2013-11-07/TennisTest.hs
haskell
import Test.HUnit import Tennis tata = toto `par` tata premier_coup_de_A = joueur_A_marque nouvellePartie quand_la_partie_demarre_le_score_est_zero_zero = score nouvellePartie ~?= (Zero,Zero) quand_le_joueur_A_marque = score (premier_coup_de_A) ~?= (Quinze,Zero) quand_le_joueur_A_marque_2_fois = TestList...
20365624f095640ee220b85e8d833dc3c7c46cdf08a10efd4ea58df83c6fd7f5
mark-watson/loving-common-lisp
coref.lisp
coref.lisp (in-package #:coref) ;; (ql:quickload :do-urlencode) (defvar base-url ":8000?text=") (defun coref-client (query) (let ((the-bytes (drakma:http-request (concatenate 'string base-url (do-urlencode:urlencode query) "&no_detail=1") :content-type "application/text"))) ...
null
https://raw.githubusercontent.com/mark-watson/loving-common-lisp/32f6abf3d2e500baeffd15c085a502b03399a074/src/coref_web_client/coref.lisp
lisp
(ql:quickload :do-urlencode) secret sauce: get the file path of this file:
coref.lisp (in-package #:coref) (defvar base-url ":8000?text=") (defun coref-client (query) (let ((the-bytes (drakma:http-request (concatenate 'string base-url (do-urlencode:urlencode query) "&no_detail=1") :content-type "application/text"))) (flexi-streams:octets-to-stri...
5a217a2de6c29f8315a6f67ec9a366549b15177894248ca75faeb30c48cb7cd0
janestreet/core_bench
analysis_result.ml
open Core module Ci95 = struct 95 % confidence interval , stored as ( left endpoint , right endpoint ) type t = { left_endpoint : float ; right_endpoint : float } [@@deriving fields, sexp] let create ~left_endpoint ~right_endpoint = { left_endpoint; right_endpoint } 95 % confidence interval exp...
null
https://raw.githubusercontent.com/janestreet/core_bench/746d2440aa10795f1ef286df64be46e7d4ff768c/internals/analysis_result.ml
ocaml
open Core module Ci95 = struct 95 % confidence interval , stored as ( left endpoint , right endpoint ) type t = { left_endpoint : float ; right_endpoint : float } [@@deriving fields, sexp] let create ~left_endpoint ~right_endpoint = { left_endpoint; right_endpoint } 95 % confidence interval exp...
773d290f9245baeb614667305b3e0376fe733beae28aeb3b93d2b43fd7f22c3d
cryptosense/pkcs11
p11_version.ml
type t = { major : int ; minor : int } [@@deriving eq, ord, show, yojson] let to_string version = Printf.sprintf "%i.%i" version.major version.minor
null
https://raw.githubusercontent.com/cryptosense/pkcs11/93c39c7a31c87f68f0beabf75ef90d85a782a983/lib/p11_version.ml
ocaml
type t = { major : int ; minor : int } [@@deriving eq, ord, show, yojson] let to_string version = Printf.sprintf "%i.%i" version.major version.minor
c0ca8eecc35e73ff9106b1bf4d6ae72acfaedc5c8d2d142c3beead9262b7919b
jfecher/algorithm-j
j.ml
(* * This implementation follows the type inference rules given at * #Algorithm_J * * The algorithm itself uses most of the names from the above link, with * a few changed for ease of typing: * Γ (gamma) => env * ⊢ⱼ (perpendicular symbol with j subscript, a.k.a. algorithm J) => infer * Γ¯ ...
null
https://raw.githubusercontent.com/jfecher/algorithm-j/0ece7219351b3e3b0b24a37d82ed1d4436fa6ae3/j.ml
ocaml
* This implementation follows the type inference rules given at * #Algorithm_J * * The algorithm itself uses most of the names from the above link, with * a few changed for ease of typing: * Γ (gamma) => env * ⊢ⱼ (perpendicular symbol with j subscript, a.k.a. algorithm J) => infer * Γ¯ (g...
type typevar_id = int type level = int type typ = TUnit | TVar of typevar ref e.g. \a b c.c is automatically translated to \a.\b.\c.c Currying is also automatic | Fn of typ * typ and typevar = Bound of typ | Unbound of typevar_id * level type polytype = PolyType of typevar_id list ...
20745419dd80f2cf377fbeffe0ad60ffd16fdedb2664dad45e579b528b4a0bca
cyverse-archive/DiscoveryEnvironmentBackend
paging.clj
(ns clj-jargon.paging (:import [org.irods.jargon.core.pub.io FileIOOperations FileIOOperations$SeekWhenceType IRODSRandomAccessFile IRODSFileFactory])) (def SEEK-CURRENT (FileIOOperations$SeekWh...
null
https://raw.githubusercontent.com/cyverse-archive/DiscoveryEnvironmentBackend/7f6177078c1a1cb6d11e62f12cfe2e22d669635b/libs/clj-jargon/src/clj_jargon/paging.clj
clojure
(ns clj-jargon.paging (:import [org.irods.jargon.core.pub.io FileIOOperations FileIOOperations$SeekWhenceType IRODSRandomAccessFile IRODSFileFactory])) (def SEEK-CURRENT (FileIOOperations$SeekWh...
8d3aa7591cdd5f19a6c030b5cf719dd942fb67aff1083cf02a93bfc7e3d4ead7
restyled-io/restyled.io
AccessTokens.hs
module GitHub.Endpoints.Installations.AccessTokens ( accessTokenForR ) where import Prelude import GitHub.Data import GitHub.Data.AccessTokens import GitHub.Data.Installations import GitHub.Request.Preview accessTokenForR :: Id Installation -> PreviewRequest 'RW AccessToken accessTokenForR installationId = C...
null
https://raw.githubusercontent.com/restyled-io/restyled.io/2486edb6c9b352118d36f8f7cb06432be7fd7c4c/src/GitHub/Endpoints/Installations/AccessTokens.hs
haskell
module GitHub.Endpoints.Installations.AccessTokens ( accessTokenForR ) where import Prelude import GitHub.Data import GitHub.Data.AccessTokens import GitHub.Data.Installations import GitHub.Request.Preview accessTokenForR :: Id Installation -> PreviewRequest 'RW AccessToken accessTokenForR installationId = C...
6573dbdefd398c2149dac9a334ee9d344c2a6bd6f475962fac9d5713b71d8cac
philnguyen/soft-contract
ho-disjunct.rkt
#lang racket (define c1 (cons/c 'x (integer? . -> . integer?))) (define c2 (cons/c 'y (string? . -> . string?))) (define c (or/c c1 c2)) (define f (list (cons 'x add1) (cons 'y string-append))) (provide (contract-out [f (listof c)]))
null
https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/test/programs/safe/issues/ho-disjunct.rkt
racket
#lang racket (define c1 (cons/c 'x (integer? . -> . integer?))) (define c2 (cons/c 'y (string? . -> . string?))) (define c (or/c c1 c2)) (define f (list (cons 'x add1) (cons 'y string-append))) (provide (contract-out [f (listof c)]))
9b1f9c82dc1f47a76bbc27f6aa7c3c8d660c4b8bc070542884be1feebc4b3b89
groupoid/alonzo
alonzo.ml
open Error module ENV = Map.Make (String) let decls : (Expr.exp ENV.t) ref = ref ENV.empty let abbrs : (Expr.typexp ENV.t) ref = ref ENV.empty let rec unabbr (texp: Expr.typexp) : Expr.typexp = match texp with | TVar n -> Option.value (ENV.find_opt n !abbrs) ~default:texp | TFun (t1, t2) -> TFun (unabbr t1, u...
null
https://raw.githubusercontent.com/groupoid/alonzo/b929feb92f0c7867f34b924e7efcca431bdacd8b/src/alonzo.ml
ocaml
open Error module ENV = Map.Make (String) let decls : (Expr.exp ENV.t) ref = ref ENV.empty let abbrs : (Expr.typexp ENV.t) ref = ref ENV.empty let rec unabbr (texp: Expr.typexp) : Expr.typexp = match texp with | TVar n -> Option.value (ENV.find_opt n !abbrs) ~default:texp | TFun (t1, t2) -> TFun (unabbr t1, u...
3df1d1fb81abb319aa082000dec7cd5ed423ee62754822385fb8fd0a325b92d2
arttuka/reagent-material-ui
date_time_field_pro.cljs
(ns reagent-mui.x.date-time-field-pro "Imports @mui/x-date-pickers-pro/DateTimeField as a Reagent component. Original documentation is at -pickers/date-time-field/ ." (:require [reagent.core :as r] ["@mui/x-date-pickers-pro/DateTimeField" :as MuiDateTimeField])) (def date-time-field (r/adapt-react-c...
null
https://raw.githubusercontent.com/arttuka/reagent-material-ui/4fc4b44891919d2b84160eb411d52227dd89e0a5/src/x/reagent_mui/x/date_time_field_pro.cljs
clojure
(ns reagent-mui.x.date-time-field-pro "Imports @mui/x-date-pickers-pro/DateTimeField as a Reagent component. Original documentation is at -pickers/date-time-field/ ." (:require [reagent.core :as r] ["@mui/x-date-pickers-pro/DateTimeField" :as MuiDateTimeField])) (def date-time-field (r/adapt-react-c...
d3f4715a38702b00b4a4b58b952db8117ee1f623ac3341140d94c10246d27c61
ftovagliari/ocamleditor
plugin_diff.ml
OCamlEditor Copyright ( C ) 2010 - 2014 This file is part of OCamlEditor . OCamlEditor 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/ftovagliari/ocamleditor/53284253cf7603b96051e7425e85a731f09abcd1/src/plugin_diff.ml
ocaml
* init Printf.printf "----> %f, %f\n%!" x y; * create_label_tooltip * create_tooltip * wave_line height / ww * paint_diffs width - wtri true || * paint_gutter ~process_err:Spawn.redirect_to_stderr Printf.printf "%s\n%!" (Odiff.string_of_diffs diffs); * to_buffer * Initialization
OCamlEditor Copyright ( C ) 2010 - 2014 This file is part of OCamlEditor . OCamlEditor 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...
c1f18a9c689faa88027f84d784dddddd4151ce50ba6d8eafdc1137957ef6b536
xvw/planet
binding.ml
open Js_of_ocaml open Bedrock open Util open Error open Paperwork.Timetable module Ajax = Js_of_ocaml_lwt.XmlHttpRequest let map_list f x = Js.to_array x |> Array.to_seq |> Seq.map f |> List.of_seq let string_list x = map_list Js.to_string x module Project = struct class type short_js = object method name...
null
https://raw.githubusercontent.com/xvw/planet/b4bf682a47a9d2c858681950f2a40251f7eeda37/src/facade/binding.ml
ocaml
open Js_of_ocaml open Bedrock open Util open Error open Paperwork.Timetable module Ajax = Js_of_ocaml_lwt.XmlHttpRequest let map_list f x = Js.to_array x |> Array.to_seq |> Seq.map f |> List.of_seq let string_list x = map_list Js.to_string x module Project = struct class type short_js = object method name...
990d6159d745b97fcb53b675737712848e31da513754c5328ef50e2159996183
cjdev/cloud-seeder
Main.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # module Network.CloudSeeder.Main ( AppM , cli , cliIO ) where import Control.Lens import Control.Monad.Base (MonadBase) import Control.Monad.Catch (MonadCatch, MonadThrow) import Control.Monad.Except (MonadError(..),...
null
https://raw.githubusercontent.com/cjdev/cloud-seeder/242a3826a0cef58e1c390b51177e025781aecc66/library/Network/CloudSeeder/Main.hs
haskell
# LANGUAGE OverloadedStrings # ------------------------------------------------------------------------------ IO wiring ------------------------------------------------------------------------------
# LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # module Network.CloudSeeder.Main ( AppM , cli , cliIO ) where import Control.Lens import Control.Monad.Base (MonadBase) import Control.Monad.Catch (MonadCatch, MonadThrow) import Control.Monad.Except (MonadError(..), ExceptT, runExceptT) import Contro...
d952ff70579e9ad586aa27db8d9baa505650b1c096956227c9cb03f1efa6a6f3
tlaplus/tlapm
ext_focal.mli
Copyright 2008 INRIA (* This file left blank intentionally. *)
null
https://raw.githubusercontent.com/tlaplus/tlapm/b82e2fd049c5bc1b14508ae16890666c6928975f/zenon/ext_focal.mli
ocaml
This file left blank intentionally.
Copyright 2008 INRIA
30adcc7832cf3c4c213513bb506a66698b99058d806cab4f37dfa7fff01aeef3
mmontone/cl-xul
panel.lisp
(in-package :xul) (define-xul-element panel (container-element) (backdrag (close* :attribute-name "close") consumeoutsideclicks fade flip ignorekeys label left level noautofocus noautohide norestorefocus onpopuphidden onpopuphiding onpopupshowing onpopupshown (position* :attribute-name "position") titlebar top (typ...
null
https://raw.githubusercontent.com/mmontone/cl-xul/049c8664bb58d177c71d93ac5b5e1a2ba9b9469b/src/controls/panel.lisp
lisp
(in-package :xul) (define-xul-element panel (container-element) (backdrag (close* :attribute-name "close") consumeoutsideclicks fade flip ignorekeys label left level noautofocus noautohide norestorefocus onpopuphidden onpopuphiding onpopupshowing onpopupshown (position* :attribute-name "position") titlebar top (typ...
bb1541dd8b1f11218e8c44c1cfb7a61d73af3f1a613a32c073f8973884a89c06
Bogdanp/racket-kafka
describe-configs.rkt
#lang racket/base (require racket/contract "core.rkt") (define resource-type/c (or/c 'unknown 'any 'topic 'group 'broker 'cluster 'transaction-id 'delegation-token 'user)) (define-record DescribeResource ([type resource-type/c] [name string?] [(keys null) (listof string?)])) (define-record Resour...
null
https://raw.githubusercontent.com/Bogdanp/racket-kafka/2044f80efe49b5ce0ff903357e1dd44a11b61992/kafka-lib/private/serde/describe-configs.rkt
racket
#lang racket/base (require racket/contract "core.rkt") (define resource-type/c (or/c 'unknown 'any 'topic 'group 'broker 'cluster 'transaction-id 'delegation-token 'user)) (define-record DescribeResource ([type resource-type/c] [name string?] [(keys null) (listof string?)])) (define-record Resour...
3029d443078702e37ba6bf8af3dd9fe1c5753cc531970ec2e4a2b88549a085fb
fcracker79/aws-lambda-haskell-url-shortener
Main.hs
# LANGUAGE TemplateHaskell # # LANGUAGE ScopedTypeVariables # {-# LANGUAGE DeriveAnyClass #-} module Main where import Aws.Lambda import Aws.Lambda.Runtime.Common( LambdaError(..) ) import Control.Exception.Base import qualified Lib import Data.Text import GHC.Exception.Type (SomeException) -- This action is run on ...
null
https://raw.githubusercontent.com/fcracker79/aws-lambda-haskell-url-shortener/3c1692a10ab5f92bfd31070c15ac663edd88fa2a/app/Main.hs
haskell
# LANGUAGE DeriveAnyClass # This action is run on each cold start, and the context returned is kept alive while the lambda is run, you can access it in your handler. generateLambdaDispatcher UseWithAPIGateway defaultDispatcherOptions
# LANGUAGE TemplateHaskell # # LANGUAGE ScopedTypeVariables # module Main where import Aws.Lambda import Aws.Lambda.Runtime.Common( LambdaError(..) ) import Control.Exception.Base import qualified Lib import Data.Text import GHC.Exception.Type (SomeException) initializeContext :: IO () initializeContext = return () ...
0c29fa6befe5c05853d6e76330c43f5fc90b6b1638e94843013732cbc668fa3d
fons/cl-mongo
bson-binary.lisp
(in-package :cl-mongo) (defconstant +bson-binary-generic+ #x00 "binary/generic") (defconstant +bson-binary-function+ #x01 "function") (defconstant +bson-binary+ #x02 "ordinary binary") (defconstant +bson-binary-uuid+ #x03 "uuid") (defconstant +bson-binary-md5+ #x05 "md5") (defconstant +bson-binary-u...
null
https://raw.githubusercontent.com/fons/cl-mongo/141518d34fddc9ba42d3813362abae12b368f059/src/bson-binary.lisp
lisp
either one of
(in-package :cl-mongo) (defconstant +bson-binary-generic+ #x00 "binary/generic") (defconstant +bson-binary-function+ #x01 "function") (defconstant +bson-binary+ #x02 "ordinary binary") (defconstant +bson-binary-uuid+ #x03 "uuid") (defconstant +bson-binary-md5+ #x05 "md5") (defconstant +bson-binary-u...
13194dc9314769e1ba93a411810dd446b3b53f67ce5ab7f95283001eabb04b6a
exercism/ocaml
example.ml
open Base let digit_to_int c = match c with | '0'..'9' -> Some (Char.to_int(c) - 48) | 'a'..'f' -> Some (Char.to_int(c) - 97 + 10) | 'A'..'F' -> Some (Char.to_int(c) - 97 + 10) | _ -> None let to_int hex_str = let rec go acc = function | [] -> acc | c::cs -> match digit_to_int c with ...
null
https://raw.githubusercontent.com/exercism/ocaml/914e58d48e58a96fe7635fe4b06cc103af4ed683/exercises/practice/hexadecimal/.meta/example.ml
ocaml
open Base let digit_to_int c = match c with | '0'..'9' -> Some (Char.to_int(c) - 48) | 'a'..'f' -> Some (Char.to_int(c) - 97 + 10) | 'A'..'F' -> Some (Char.to_int(c) - 97 + 10) | _ -> None let to_int hex_str = let rec go acc = function | [] -> acc | c::cs -> match digit_to_int c with ...
abc97ffb379e9ef9531e469c4cbdf404c31660dc8c6807aadcf0be41bcadba42
danilkolikov/dfl
Ast.hs
| Module : Compiler . Prettify . Desugaring . Ast Description : Prettifying of desugared ast Copyright : ( c ) , 2019 License : MIT Functions for pretty printing of desugared ast Module : Compiler.Prettify.Desugaring.Ast Description : Prettifying of desugared ast Copyright ...
null
https://raw.githubusercontent.com/danilkolikov/dfl/698a8f32e23b381afe803fc0e353293a3bf644ba/src/Compiler/Prettify/Desugaring/Ast.hs
haskell
| Module : Compiler . Prettify . Desugaring . Ast Description : Prettifying of desugared ast Copyright : ( c ) , 2019 License : MIT Functions for pretty printing of desugared ast Module : Compiler.Prettify.Desugaring.Ast Description : Prettifying of desugared ast Copyright ...
77660845fccf4c900f8ba93b2d109493a926cefcd896160075ca794c13a6a408
mlcfp/zenacy-html
Token.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE LambdaCase # {-# LANGUAGE MultiWayIf #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # -- | Defines a token type used by the lexer. module Zenacy.HTML.Internal.Token ( Token(..) , TokenBuffer(..) , TAttr(..) , tokenAttr...
null
https://raw.githubusercontent.com/mlcfp/zenacy-html/b4af86fecc6fbbe1c7501e2fa75e6aa28206ebcb/src/Zenacy/HTML/Internal/Token.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # | Defines a token type used by the lexer. | Defines the token type. The token type is used for testing and debugging only. | An HTML element attribute type. | A type of buffer used to hold tokens. | Makes an attribute. | Determines ...
# LANGUAGE LambdaCase # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # module Zenacy.HTML.Internal.Token ( Token(..) , TokenBuffer(..) , TAttr(..) , tokenAttr , tokenHasAttr , tokenGetAttr , tokenGetAttrVal , tokenBuffer , tokenCapacity , tokenReset , tokenTail , tokenFirst , t...
9609cb2556a60ff8cd12a904b67a84618555e829111f21488982781c1f824fb2
racket/htdp
info.rkt
#lang info (define test-omit-paths '("jpr-bug.rkt" "mouse-evt.rkt" "mp.rkt" "perform-whack.rkt" "profile-robby.rkt" "dir.rkt" "matrix-client.rkt" "matrix-example.rkt" "jump-to-ui-test.rkt" "on-release-no-key.rkt" "pad1.rkt" "universe-receive.rkt" "world-dies-while-rece...
null
https://raw.githubusercontent.com/racket/htdp/aa78794fa1788358d6abd11dad54b3c9f4f5a80b/htdp-test/2htdp/tests/info.rkt
racket
#lang info (define test-omit-paths '("jpr-bug.rkt" "mouse-evt.rkt" "mp.rkt" "perform-whack.rkt" "profile-robby.rkt" "dir.rkt" "matrix-client.rkt" "matrix-example.rkt" "jump-to-ui-test.rkt" "on-release-no-key.rkt" "pad1.rkt" "universe-receive.rkt" "world-dies-while-rece...
b24177260a8b17ed9a0fad9c55922b2a71472b0d2daa1755abc31c6564d99ede
leptonyu/boots
App.hs
module Boots.App( module Boots.App.Internal -- ** Utilities , natA , delay , produceA ) where import Boots.App.Internal import Control.Monad.Factory -- | Nature transform from `AppT` @env@ @m@ to @m@. natA :: MonadMask m => Factory (AppT env m) env component -> Factory m env componen...
null
https://raw.githubusercontent.com/leptonyu/boots/335d58baafb1e0700b1a7dbe595a7264bd4d83ba/boots-app/src/Boots/App.hs
haskell
** Utilities | Nature transform from `AppT` @env@ @m@ to @m@. | Add a delayed action into the factory. | Produce @res@ under environment @env@.
module Boots.App( module Boots.App.Internal , natA , delay , produceA ) where import Boots.App.Internal import Control.Monad.Factory natA :: MonadMask m => Factory (AppT env m) env component -> Factory m env component natA fenc = do env <- getEnv natTrans (runAppT env) lift fenc # ...
f97db6f114ac1014ac65691298dbcb2b6eabfd73c8b780bc1165be94c83bc668
flora-pm/flora-server
Admin.hs
module FloraWeb.Server.Pages.Admin where import Control.Concurrent (forkIO) import Control.Concurrent.Async qualified as Async import Control.Monad.IO.Class import Data.Proxy (Proxy (..)) import Database.PostgreSQL.Entity.DBT import Lucid import Network.HTTP.Types.Status (notFound404) import OddJobs.Endpoints qualifie...
null
https://raw.githubusercontent.com/flora-pm/flora-server/94d9f3feec577a4f3e4cb394739d61f619458b53/src/web/FloraWeb/Server/Pages/Admin.hs
haskell
, withPackage = withPackageHandler withPackageHandler packageId = WithPackageAdminRoutes' { showPackage = showPackageHandler packageId } showPackageHandler :: PackageId -> FloraAdmin (Html ()) showPackageHandler packageId = do session <- getSession FloraEnv{pool} <- liftIO $! fetchFloraEnv (session.webE...
module FloraWeb.Server.Pages.Admin where import Control.Concurrent (forkIO) import Control.Concurrent.Async qualified as Async import Control.Monad.IO.Class import Data.Proxy (Proxy (..)) import Database.PostgreSQL.Entity.DBT import Lucid import Network.HTTP.Types.Status (notFound404) import OddJobs.Endpoints qualifie...
2c1c0c0bdbf6f54597701d0cd441f03ffecf45f1045169e2fd836c3daf0c83ee
bobby/redisconf19-demo
service.clj
(ns redis-streams-clj.storefront.api.service (:require [com.stuartsierra.component :as component] [io.pedestal.log :as log] [io.pedestal.interceptor :as interceptor] [io.pedestal.http :as http] [io.pedestal.http.route :as route] [io.pedestal.http.ring-middle...
null
https://raw.githubusercontent.com/bobby/redisconf19-demo/0191ed1cf6a7cdf47037de3e4dd187a5c6a33a36/storefront/src/redis_streams_clj/storefront/api/service.clj
clojure
(ns redis-streams-clj.storefront.api.service (:require [com.stuartsierra.component :as component] [io.pedestal.log :as log] [io.pedestal.interceptor :as interceptor] [io.pedestal.http :as http] [io.pedestal.http.route :as route] [io.pedestal.http.ring-middle...
0e9a7888f23bd97fe5569af32ec038f2cc7de3fe951f2bc0d06fb901acbab357
huangz1990/SICP-answers
mit-scheme-tests.scm
;;; ---------------------------------------------------------------------- Copyright 2007 - 2009 . ;;; ---------------------------------------------------------------------- ;;; This file is part of Test Manager. ;;; ;;; Test Manager is free software; you can redistribute it and/or modify it under the terms of t...
null
https://raw.githubusercontent.com/huangz1990/SICP-answers/15e3475003ef10eb738cf93c1932277bc56bacbe/chp2/code/test-manager/mit-scheme-tests.scm
scheme
---------------------------------------------------------------------- ---------------------------------------------------------------------- This file is part of Test Manager. Test Manager is free software; you can redistribute it and/or modify (at your option) any later version. Test Manager is distributed ...
Copyright 2007 - 2009 . 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 Public License
1fe81decc8d29a1cb670971543090a8c8e2c6c1f6414d2991cfe022a7979519a
rowangithub/DOrder
166_18_nec.ml
* Adapted from ex17.c in NECLA test suite * Adapted from ex17.c in NECLA test suite *) let rec loop flag b j = if b < 100 then let j = if flag > 0 then j+1 else j in let b = b + 1 in loop flag b j else j let main flag = let j = 0 in let res = loop flag 0 j in if (flag > 0) then assert (res...
null
https://raw.githubusercontent.com/rowangithub/DOrder/e0d5efeb8853d2a51cc4796d7db0f8be3185d7df/tests/mochi2/benchs/166_18_nec.ml
ocaml
* Adapted from ex17.c in NECLA test suite * Adapted from ex17.c in NECLA test suite *) let rec loop flag b j = if b < 100 then let j = if flag > 0 then j+1 else j in let b = b + 1 in loop flag b j else j let main flag = let j = 0 in let res = loop flag 0 j in if (flag > 0) then assert (res...
ab429e8c81d1bcbecba22dc059880891704c757b2329721bd0fe755f91667bfb
pixlsus/registry.gimp.org_static
dodge-and-burn-layer_0.scm
(define (script-fu-dodgeburnlayer image) (gimp-context-push); (gimp-image-undo-group-start image); (let* ( (width (car (gimp-image-width image))) (height (car (gimp-image-height image))) (dblayer (car (gimp-layer-new image width height 0 "Dodge & Burn" 100 5))) ) (gimp-context-set-foregr...
null
https://raw.githubusercontent.com/pixlsus/registry.gimp.org_static/ffcde7400f402728373ff6579947c6ffe87d1a5e/registry.gimp.org/files/dodge-and-burn-layer_0.scm
scheme
(define (script-fu-dodgeburnlayer image) (let* ( (width (car (gimp-image-width image))) (height (car (gimp-image-height image))) (dblayer (car (gimp-layer-new image width height 0 "Dodge & Burn" 100 5))) ) (gimp-context-set-foreground '(192 192 192)) (gimp-image-add-layer image dblayer 0...
3b58e7b2f60af31981dfed94e817ca64c1b3739337c05824c5c198d7c4842113
mitchellwrosen/riak2
Context.hs
module Riak.Context ( Context , emptyContext , unsafeMakeContext ) where import RiakContext
null
https://raw.githubusercontent.com/mitchellwrosen/riak2/d3c4ef4389012c70e72623cdf9a4caec0a07e568/riak2/public/Riak/Context.hs
haskell
module Riak.Context ( Context , emptyContext , unsafeMakeContext ) where import RiakContext
db92dfe4ccacb4745ff8f7305086291302b0b9888e2585e4a843a602ab52c594
dschrempf/elynx
BipartitionSpec.hs
{-# LANGUAGE OverloadedStrings #-} -- | -- Module : ELynx.Tree.BipartitionSpec Copyright : 2021 License : GPL-3.0 - or - later -- -- Maintainer : -- Stability : unstable -- Portability : portable -- Creation date : Fri Aug 30 09:38:50 2019 . module ELynx.Tree.BipartitionSpec ( spec, ...
null
https://raw.githubusercontent.com/dschrempf/elynx/f73f4474c61c22c6a9e54c56bdc34b37eff09687/elynx-tree/test/ELynx/Tree/BipartitionSpec.hs
haskell
# LANGUAGE OverloadedStrings # | Module : ELynx.Tree.BipartitionSpec Maintainer : Stability : unstable Portability : portable
Copyright : 2021 License : GPL-3.0 - or - later Creation date : Fri Aug 30 09:38:50 2019 . module ELynx.Tree.BipartitionSpec ( spec, ) where import Data.Map (Map) import qualified Data.Map as M import Data.Set (Set) import qualified Data.Set as S import ELynx.Tools.InputOutput import ELynx.Tre...
9b8a993d05ebff077df5c156298556fb394634a3d960c7342a08dfc308adc252
ttuegel/sparse-linear
LinearAlgebra.hs
# LANGUAGE FlexibleInstances # # LANGUAGE RecordWildCards # # OPTIONS_GHC -fno - warn - orphans # module Test.LinearAlgebra where import Data.Traversable import qualified Data.Vector.Generic as V import Data.Vector.Unboxed (Vector, Unbox) import Test.Hspec import Test.QuickCheck import Data.Matrix.Sparse import qual...
null
https://raw.githubusercontent.com/ttuegel/sparse-linear/e10453c04e0fa13ba3e943122a7d5902279fa70d/suitesparse/tests/Test/LinearAlgebra.hs
haskell
# LANGUAGE FlexibleInstances # # LANGUAGE RecordWildCards # # OPTIONS_GHC -fno - warn - orphans # module Test.LinearAlgebra where import Data.Traversable import qualified Data.Vector.Generic as V import Data.Vector.Unboxed (Vector, Unbox) import Test.Hspec import Test.QuickCheck import Data.Matrix.Sparse import qual...
24309eec5c1b2e83aed0924c7ed72075c8d13837b8675699ecb6cf3ba1973467
lehins/primal
Unsafe.hs
# LANGUAGE FlexibleContexts # # LANGUAGE MagicHash # # LANGUAGE ScopedTypeVariables # # LANGUAGE UnboxedTuples # -- | -- Module : Primal.Exception.Unsafe Copyright : ( c ) 2021 - 2022 -- License : BSD3 Maintainer : < > -- Stability : experimental -- Portability : non-portable -- module Primal.E...
null
https://raw.githubusercontent.com/lehins/primal/c620bfd4f2a6475f1c12183fbe8138cf29ab1dad/primal/src/Primal/Exception/Unsafe.hs
haskell
| Module : Primal.Exception.Unsafe License : BSD3 Stability : experimental Portability : non-portable | Version of `maskAsyncExceptions` that works with any state token. Very unsafe. | Version of `maskAsyncExceptions` that works with any state token. Very unsafe. | Version of `maskUninterruptible` t...
# LANGUAGE FlexibleContexts # # LANGUAGE MagicHash # # LANGUAGE ScopedTypeVariables # # LANGUAGE UnboxedTuples # Copyright : ( c ) 2021 - 2022 Maintainer : < > module Primal.Exception.Unsafe ( maskAsyncExceptions , maskUninterruptible , unmaskAsyncExceptions , maskAsyncExceptionsInternal# , mask...
bd6499443a64c23308c9a3ae90b08fba950d3e434c5f243cd55989a6d2fe784a
kadena-io/chainweaver
main.hs
import qualified Backend main :: IO () main = Backend.main
null
https://raw.githubusercontent.com/kadena-io/chainweaver/3ea0bb317c07ddf954d4ebf24b33d1be7d5f9c45/backend/src-bin/main.hs
haskell
import qualified Backend main :: IO () main = Backend.main
54be1bb40ce0d3bcfcc00aa30c27ccc1282b115545751a9130bb7ae33bc996bc
rixed/ramen
RamenFieldMaskLib.ml
(* Recursive fieldmasks. * * When serializing a function output a parent pass only the fields that are * actually required by its children. Therefore, the out_ref files need to * specify, for each target, which fields to copy and which to pass. As any * field can itself be composed of several subfields, this field...
null
https://raw.githubusercontent.com/rixed/ramen/9606882b5a62d4f89a944d6579cd9daf25ebfaa7/src/RamenFieldMaskLib.ml
ocaml
Recursive fieldmasks. * * When serializing a function output a parent pass only the fields that are * actually required by its children. Therefore, the out_ref files need to * specify, for each target, which fields to copy and which to pass. As any * field can itself be composed of several subfields, this field-m...
open Batteries open Stdint open RamenHelpersNoLog open RamenLog open RamenLang module DM = DessserMasks module DT = DessserTypes module E = RamenExpr module N = RamenName module O = RamenOperation module T = RamenTypes module Variable = RamenVariable shared with codegen lib open Raql_path_comp.DessserGen The exp...
c30bfdf11abc00b02d822a27d5ab474e37eb9c2c3614b6592136245b1873f7aa
screenshotbot/screenshotbot-oss
android.lisp
;; Copyright 2018-Present Modern Interpreters Inc. ;; 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 /. (uiop:define-package :screenshotbot/sdk/android (:use #:cl #:screenshotbot/sdk/...
null
https://raw.githubusercontent.com/screenshotbot/screenshotbot-oss/0db5b88b5f933efcc5206bcf9a673c0052fe2bbb/src/screenshotbot/sdk/android.lisp
lisp
Copyright 2018-Present Modern Interpreters Inc. We're allowing a list of metadata files
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 /. (uiop:define-package :screenshotbot/sdk/android (:use #:cl #:screenshotbot/sdk/flags #:alexandria) (:import-from #:screensh...
e9f7c1b19af0e739253e89b571d1d66bbafb028eac6f1e57c8264698ef857ea0
ryanpbrewster/haskell
overlapping_rectangles.hs
-- overlapping_rectangles.hs - Given two axis aligned rectangles A and B , determine if the two overlap . - Input sample : - - Your program should accept as its first argument a path to a filename . Each - line in this file contains 8 comma separated co - ordinates . The co - ordinates - are upper lef...
null
https://raw.githubusercontent.com/ryanpbrewster/haskell/6edd0afe234008a48b4871032dedfd143ca6e412/CodeEval/overlapping_rectangles.hs
haskell
overlapping_rectangles.hs
- Given two axis aligned rectangles A and B , determine if the two overlap . - Input sample : - - Your program should accept as its first argument a path to a filename . Each - line in this file contains 8 comma separated co - ordinates . The co - ordinates - are upper left x of A , upper left y of A ...
97d42051bca356029c1343371eed5894a4f14e688c7d4abd923c8b0ad67be61e
liyang/thyme
Internal.hs
# LANGUAGE CPP # # LANGUAGE ViewPatterns # {-# OPTIONS_HADDOCK hide #-} #if HLINT #include "cabal_macros.h" #endif module Data.Thyme.Format.Internal where import Prelude import Control.Applicative import Data.Attoparsec.ByteString.Char8 (Parser, Result, IResult (..)) import qualified Data.Attoparsec.ByteString.Char8...
null
https://raw.githubusercontent.com/liyang/thyme/c0dcc251ff4f843672987c80b73ec4808bc009e4/src/Data/Thyme/Format/Internal.hs
haskell
# OPTIONS_HADDOCK hide # ---------------------------------------------------------------------- # ANN shows_2 "HLint: ignore Use camelCase" # ---------------------------------------------------------------------- We can't easily perform upper/lower case conversion on the input, so | Number may be prefixed with '-' ...
# LANGUAGE CPP # # LANGUAGE ViewPatterns # #if HLINT #include "cabal_macros.h" #endif module Data.Thyme.Format.Internal where import Prelude import Control.Applicative import Data.Attoparsec.ByteString.Char8 (Parser, Result, IResult (..)) import qualified Data.Attoparsec.ByteString.Char8 as P import qualified Data.B...
6ee3f608510820976ed5efb462812095736c7284839534f07e80de898c539ce3
re-ops/re-core
validations.clj
(ns kvm.validations "KVM validations" (:require [re-core.model :refer (check-validity)] [clojure.core.strint :refer (<<)] [subs.core :as subs :refer (validate! combine every-v every-kv validation when-not-nil)])) (def machine-entity {:machine {:hostname #{:required :String} :domain #{:required :String} ...
null
https://raw.githubusercontent.com/re-ops/re-core/93596efd4f3068d57e8140106da60011a6569310/src/kvm/validations.clj
clojure
(ns kvm.validations "KVM validations" (:require [re-core.model :refer (check-validity)] [clojure.core.strint :refer (<<)] [subs.core :as subs :refer (validate! combine every-v every-kv validation when-not-nil)])) (def machine-entity {:machine {:hostname #{:required :String} :domain #{:required :String} ...
87ed362cfe9dece6585db933e7239d81c918c206a459c47aff99f52050fb574e
apwheele/ResearchDesign
MACRO_RCS.sps
*MACRO TO CREATE restricted cubic splines. *EITHER TAKES input of knot locations or a number of knots (and defaults to calc them at particular quantiles). *For restricted cubic splines, you need a minimum of 3 knot locations. *RETURNS VARIABLES that are spline basis, splinex1, splinex2 etc. (will always be 2 less the n...
null
https://raw.githubusercontent.com/apwheele/ResearchDesign/b2071e749edf042276010d66b837755c8c7f5f64/Week04_GenLin_NonLinear/MACRO_RCS.sps
scheme
*MACRO TO CREATE restricted cubic splines. *EITHER TAKES input of knot locations or a number of knots (and defaults to calc them at particular quantiles). *For restricted cubic splines, you need a minimum of 3 knot locations. *RETURNS VARIABLES that are spline basis, splinex1, splinex2 etc. (will always be 2 less the n...
83251820e8c52ec8bb4e58f9e20d5433c46d2911aa52eee44144cbcce5388c71
ml4tp/tcoq
unionfind.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/ml4tp/tcoq/7a78c31df480fba721648f277ab0783229c8bece/lib/unionfind.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * An imperative implementation of pa...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Paths are compressed imper...
a4e177507ac5173cd24cc8ef9e0b33690c2326781739136812c2d95292b996c0
ThoughtWorksInc/stonecutter
upload_photo.cljs
(ns stonecutter.test.integration.upload-photo (:require [cemerick.cljs.test] [stonecutter.js.app :as app] [stonecutter.test.test-utils :as tu] [stonecutter.js.dom.upload-photo :as ulp] [stonecutter.js.dom.common :as dom] [stonecutter.validation :as v]) (:r...
null
https://raw.githubusercontent.com/ThoughtWorksInc/stonecutter/37ed22dd276ac652176c4d880e0f1b0c1e27abfe/test-cljs/stonecutter/test/integration/upload_photo.cljs
clojure
?file ?file-size ?file-type ?translation-key
(ns stonecutter.test.integration.upload-photo (:require [cemerick.cljs.test] [stonecutter.js.app :as app] [stonecutter.test.test-utils :as tu] [stonecutter.js.dom.upload-photo :as ulp] [stonecutter.js.dom.common :as dom] [stonecutter.validation :as v]) (:r...
43832ae7436404364be153155946aa8091966f0aa48b90da326c47a95052f356
karamellpelle/grid
Output.hs
grid is a game written in Haskell Copyright ( C ) 2018 -- -- This file is part of grid. -- -- grid 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 optio...
null
https://raw.githubusercontent.com/karamellpelle/grid/56729e63ed6404fd6cfd6d11e73fa358f03c386f/designer/source/Game/LevelPuzzleMode/Output.hs
haskell
This file is part of grid. grid is free software: you can redistribute it and/or modify (at your option) any later version. grid 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 GN...
grid is a game written in Haskell Copyright ( C ) 2018 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 Public License module Game.LevelPuzzleMode.Output ( #ifdef GRID...
79067e94fcf84a8d86cd69a72ca6bc83c52155bef58ed183c4fe9c808247ec53
TatriX/cl-selenium-webdriver
utils.lisp
(in-package :cl-selenium-utils) (defparameter *timeout* 30) (defparameter *default-element-func* #'active-element) (defun find-elem (selector) (handler-case (find-element selector) (no-such-element-error () nil))) (defun wait-for (selector &key (timeout *timeout*)) (loop for i from 0 for elem = (fi...
null
https://raw.githubusercontent.com/TatriX/cl-selenium-webdriver/51a4b6833731281353ae6585e404dc934ad8df33/src/utils.lisp
lisp
(in-package :cl-selenium-utils) (defparameter *timeout* 30) (defparameter *default-element-func* #'active-element) (defun find-elem (selector) (handler-case (find-element selector) (no-such-element-error () nil))) (defun wait-for (selector &key (timeout *timeout*)) (loop for i from 0 for elem = (fi...
30c23119373f014204e7b8cc13cf0d0b8dc4432798b4aadbca8842e6a146f78f
portkey-cloud/edn-to-cfn
guard_duty.clj
(ns portkey.cloudformation.guard-duty "AUTOGENERATED clojure.spec definitions" (:require [clojure.spec.alpha] [portkey.cloudformation])) (do (clojure.core/defmethod portkey.cloudformation/resource-type-spec :portkey.cloudformation.guard-duty/member [___19567__auto__] (clojure.spec.alpha/keys ...
null
https://raw.githubusercontent.com/portkey-cloud/edn-to-cfn/7a3d247d35b7c4988c9b55634d03a008b87a2449/src/portkey/cloudformation/guard_duty.clj
clojure
(ns portkey.cloudformation.guard-duty "AUTOGENERATED clojure.spec definitions" (:require [clojure.spec.alpha] [portkey.cloudformation])) (do (clojure.core/defmethod portkey.cloudformation/resource-type-spec :portkey.cloudformation.guard-duty/member [___19567__auto__] (clojure.spec.alpha/keys ...
f6a6ca92001c7aaac11b0a59c0c8e2a7f0404f9368d55e7d094691a16495a360
ndmitchell/catch
Simplify.hs
module General.Simplify(Rule(..), simplifyList, simplifySet, factor, makeAssoc) where import List import Maybe data Rule a = Rule (a -> a -> Maybe a) | RuleAssoc (a -> a -> Maybe a) | RuleOne (a -> Maybe a) | RuleDel ( a - > Bool ) too dangerous for the moment , removing might...
null
https://raw.githubusercontent.com/ndmitchell/catch/5d834416a27b4df3f7ce7830c4757d4505aaf96e/src/General/Simplify.hs
haskell
[x | RuleDel x <- rul] :: [a] -> [a] -> ([a], ([a], [a]))
module General.Simplify(Rule(..), simplifyList, simplifySet, factor, makeAssoc) where import List import Maybe data Rule a = Rule (a -> a -> Maybe a) | RuleAssoc (a -> a -> Maybe a) | RuleOne (a -> Maybe a) | RuleDel ( a - > Bool ) too dangerous for the moment , removing might...
ff60c340de50135f3fa28fa0a22f949ab7ab8bc092e2dd5e1103b64f96e07071
igorhvr/bedlam
reorder.scm
Reorders top - level s - expressions in a file to obey module rules of SISC and other scheme environments : pure definitions go first , all expressions go after ;; Arguments: input and output file names ;; Test case (save to a file, perhaps pasting to ;; "cut -c4- >test.scm") ;; (define (f x) x) ( define g ( f ...
null
https://raw.githubusercontent.com/igorhvr/bedlam/b62e0d047105bb0473bdb47c58b23f6ca0f79a4e/siscweb/siscweb-src-0.5/opt/sxml/scm/ssax/reorder.scm
scheme
Arguments: input and output file names Test case (save to a file, perhaps pasting to "cut -c4- >test.scm") (define (f x) x) g (define (u x) 0)
Reorders top - level s - expressions in a file to obey module rules of SISC and other scheme environments : pure definitions go first , all expressions go after ( define g ( f 3 ) ) ( define - macro ( m 1 ) 1 ) ( set ! g ( f 4 ) ) (define (module-order iname oname) (let ((output (lambda (x o) ...
dff80e45606bd0d27572cc4b35d7eff1b27be180ec07aea93adf83b6029796a6
gogins/csound-extended-nudruz
document-nudruz.lisp
;;; This file is intended to automatically generate reference documentation ;;; for the nudruz system from declarations and docstrings. It must be run in the nudruz directory . I have tried a number of tools as documented herein . ;;; Nothing really works so far . The problems seem to be caused first by ;;; nudru...
null
https://raw.githubusercontent.com/gogins/csound-extended-nudruz/4551d54890f4adbadc5db8f46cc24af8e92fb9e9/document-nudruz.lisp
lisp
This file is intended to automatically generate reference documentation for the nudruz system from declarations and docstrings. It must be run in nudruz being a system but not a package, i.e. defining all symbols in the helambdap seems to be more flexible than the others, is crashing out on missing stuff but ...
the nudruz directory . I have tried a number of tools as documented herein . Nothing really works so far . The problems seem to be caused first by : cm package , and second by not exporting any of those symbols . (require :asdf) (require :cm2) (require :nudruz) This program does not document Common Music itsel...
13b53e571fba21f1a0bc02bc1c707f06fddb6e1ad31a79d43acb9b85c01f70d4
aconchillo/guile-oauth
reddit.scm
#!/usr/bin/env guile -s !# ;;; Guile OAuth client example. Copyright ( C ) 2013 - 2022 Aleix Conchillo Flaque < > ;; ;; This file is part of guile-oauth. ;; ;; guile-oauth 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 Softw...
null
https://raw.githubusercontent.com/aconchillo/guile-oauth/49a4314499596d390052d6931dca6338f2f0621f/examples/oauth2/reddit.scm
scheme
Guile OAuth client example. This file is part of guile-oauth. guile-oauth is free software: you can redistribute it and/or modify either version 3 of the License , or (at your option) any later version. guile-oauth is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the i...
#!/usr/bin/env guile -s !# Copyright ( C ) 2013 - 2022 Aleix Conchillo Flaque < > it under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License OAuth Reddit client example . (use-modules (json) (oauth oauth2) ...
239cfd2287cb5338b75cc0d6e1103247e58ecbedc4477824c4dd4053401c41f5
ocaml/dune
bool.mli
type t = bool val compare : t -> t -> Ordering.t include Comparator.OPS with type t := t val to_string : t -> string val of_string : string -> t option val to_dyn : t -> Dyn.t val hash : t -> int
null
https://raw.githubusercontent.com/ocaml/dune/714626f4d408e5c71c24ba91d0d520588702ec52/otherlibs/stdune/src/bool.mli
ocaml
type t = bool val compare : t -> t -> Ordering.t include Comparator.OPS with type t := t val to_string : t -> string val of_string : string -> t option val to_dyn : t -> Dyn.t val hash : t -> int
4e38a16e5949a2a8b653adecaabae2dbb226201b3d10ae749d70efc8c2d25f06
javalib-team/javalib
jBasicsLow.ml
* This file is part of Javalib * Copyright ( c)2004 * Copyright ( c)2007 , 2008 ( Université de Rennes 1 ) * Copyright ( c)2007 , 2008 ( CNRS ) * * This software is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version...
null
https://raw.githubusercontent.com/javalib-team/javalib/0699f904dbb17e87ec0ad6ed0c258a1737e60329/src/jBasicsLow.ml
ocaml
Usefull functions ******************* Constant pool ***************
* This file is part of Javalib * Copyright ( c)2004 * Copyright ( c)2007 , 2008 ( Université de Rennes 1 ) * Copyright ( c)2007 , 2008 ( CNRS ) * * This software is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version...
940cfeabd85ebb9dd55c3ad556fb5a59853370593393a57b8bbde79d0087d545
formal-land/coq-of-ocaml
local_vs_global_name.ml
module M = struct let b = false let n = 12 end let n = M.n + 2
null
https://raw.githubusercontent.com/formal-land/coq-of-ocaml/c9c86b08eb19d7fd023f48029cc5f9bf53f6a11c/tests/local_vs_global_name.ml
ocaml
module M = struct let b = false let n = 12 end let n = M.n + 2
d3819f131f6b4440decce2b51102a445f9751906f76679636a8d68ff98136c91
rems-project/cerberus
string_core_run.ml
let string_of_core_state st = List.fold_left (fun acc (tid, (_, th_st)) -> acc ^ Printf.sprintf "Thread %s:\n" (string_of_int tid) ^ Printf.sprintf " arena= %s\n" (String_core.string_of_expr th_st.Core_run.arena) (*^ Printf.sprintf " stack= %s\n" (String_core.string_of_stack th_st.Core_run.stack) *...
null
https://raw.githubusercontent.com/rems-project/cerberus/124c93f10cb4c235f6396adec82ebf9563daeb7e/ocaml_frontend/pprinters/string_core_run.ml
ocaml
^ Printf.sprintf " stack= %s\n" (String_core.string_of_stack th_st.Core_run.stack)
let string_of_core_state st = List.fold_left (fun acc (tid, (_, th_st)) -> acc ^ Printf.sprintf "Thread %s:\n" (string_of_int tid) ^ ) "" st.Core_run.thread_states
c5940fc9d8eabad7ae2bd0f40fc7add97b8e2a83e1bd0944e8078ce928d66248
oker1/websocket-chat
chat_state.erl
-module(chat_state). -export([initial/1, add_connecting_user/2, remove_user/2, history/1, set_history/2, assign_color_to_user/3, user_color/2, user_connected/2, connected_user/2, client_list/1, append_history/2, reserve_color/1, master/1]). -record(state, {clients, colorCounter, history, master}). initial(Master...
null
https://raw.githubusercontent.com/oker1/websocket-chat/8dfbd7357b2e37615d1d055f8cbb70777e5d82c8/src/chat_state.erl
erlang
-module(chat_state). -export([initial/1, add_connecting_user/2, remove_user/2, history/1, set_history/2, assign_color_to_user/3, user_color/2, user_connected/2, connected_user/2, client_list/1, append_history/2, reserve_color/1, master/1]). -record(state, {clients, colorCounter, history, master}). initial(Master...
5ef91dbb9a97edd6bb76702a242dc558e325a813262acbba57a4914b49000a6f
helium/blockchain-core
blockchain_txn_bundle_v1.erl
%%%------------------------------------------------------------------- %% @doc %% == Blockchain Transaction Bundle == %% @end %%%------------------------------------------------------------------- -module(blockchain_txn_bundle_v1). -behavior(blockchain_txn). -behavior(blockchain_json). -include("blockchain_json.hrl")...
null
https://raw.githubusercontent.com/helium/blockchain-core/0caf2295d0576c0ef803258e834bf6ec3b3e74bc/src/transactions/v1/blockchain_txn_bundle_v1.erl
erlang
------------------------------------------------------------------- @doc == Blockchain Transaction Bundle == @end ------------------------------------------------------------------- bundles are not signed check that the bundle size doesn't exceed allowed max_bundle_size var check that there are no bundles in the ...
-module(blockchain_txn_bundle_v1). -behavior(blockchain_txn). -behavior(blockchain_json). -include("blockchain_json.hrl"). -include("blockchain_vars.hrl"). -include_lib("helium_proto/include/blockchain_txn_pb.hrl"). -define(MAX_BUNDLE_SIZE, 5). -export([ new/1, hash/1, absorb/2, sign/2, fee/1, ...
9722bbd5acb936973d52657532b0be818e5f6e92324c804c3bebde39110f24b1
jordanthayer/ocaml-search
memtest.ml
(* Returns a little function that when called returns true if the major major heap is smaller than main memory, false if it is bigger. *) let memcheck () = (*finds out how much memory there is*) let bits_per_word = float_of_int (Sys.word_size / 8) in let total_memory = ref 0. in Scanf.sscanf (Wrs...
null
https://raw.githubusercontent.com/jordanthayer/ocaml-search/57cfc85417aa97ee5d8fbcdb84c333aae148175f/wrutils/memtest.ml
ocaml
Returns a little function that when called returns true if the major major heap is smaller than main memory, false if it is bigger. finds out how much memory there is function that compares the major heap's size to the total amount of memory finds out how much memory there is
let memcheck () = let bits_per_word = float_of_int (Sys.word_size / 8) in let total_memory = ref 0. in Scanf.sscanf (Wrsys.shell_output "free -b") " %s %s %s %s %s %s %s %d %d %f " (fun _ _ _ _ _ _ _ _ _ n -> total_memory := (n /. bits_per_word)); ( fun () -> let gcs = Gc.quick_st...
3075196045f600f07305281e148b7905dd34517cf8194dbfe60f4d4a06fc97d3
ekmett/discrimination
Sorting.hs
# LANGUAGE CPP # {-# LANGUAGE RankNTypes #-} # LANGUAGE RoleAnnotations # # LANGUAGE FlexibleContexts # # LANGUAGE DefaultSignatures # # LANGUAGE ScopedTypeVariables # # LANGUAGE MonoLocalBinds # # OPTIONS_GHC -fno - cse -fno - full - laziness # module Data.Discrimination.Sorting ( Sort(..) -- * Sorting , Sorting...
null
https://raw.githubusercontent.com/ekmett/discrimination/06c0ac404cddbb77043556f4b3633dce786c194b/src/Data/Discrimination/Sorting.hs
haskell
# LANGUAGE RankNTypes # * Sorting * Combinators $common * Container Construction * Internals $setup >>> import qualified Data.Map as Map ------------------------------------------------------------------------------ * Common ------------------------------------------------------------------------------ | Stabl...
# LANGUAGE CPP # # LANGUAGE RoleAnnotations # # LANGUAGE FlexibleContexts # # LANGUAGE DefaultSignatures # # LANGUAGE ScopedTypeVariables # # LANGUAGE MonoLocalBinds # # OPTIONS_GHC -fno - cse -fno - full - laziness # module Data.Discrimination.Sorting ( Sort(..) , Sorting(..) , Sorting1(..) , sort, sortWith, d...
eadb6c469cd32a1fb42e90734f77b63a964d804356766f69bc507576543837d6
ericclack/clojure-wiki
config.clj
(ns clojure-wiki.config (:require [cprop.core :refer [load-config]] [cprop.source :as source] [mount.core :refer [args defstate]])) (defstate env :start (load-config :merge [(args) (source/from-system-props) ...
null
https://raw.githubusercontent.com/ericclack/clojure-wiki/61986386492338d139a233ee41a21a5bda5327d9/src/clj/clojure_wiki/config.clj
clojure
(ns clojure-wiki.config (:require [cprop.core :refer [load-config]] [cprop.source :as source] [mount.core :refer [args defstate]])) (defstate env :start (load-config :merge [(args) (source/from-system-props) ...
2f6f293ee67af2ca05fc3a9dc44b655b49f37e89a46e03958b7fa6d9ad628e37
GaloisInc/macaw
ElfX64Linux.hs
{-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE DataKinds # module ElfX64Linux ( SaveMacaw(..) , elfX64LinuxTests ) where import Control.Lens ( (^.) ) import Control.Monad ( unless, when ) import qualified Contr...
null
https://raw.githubusercontent.com/GaloisInc/macaw/6a4f406c680dc0438799ef5c95c94311e07e722a/x86/tests/ElfX64Linux.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE GADTs # # LANGUAGE RankNTypes # | ^ An address is a region index and offset | The type of expected results for test cases of the function. The list is a list of the addresses of the size of the block ^ This is a list of discovered blocks to ignore. This is basically j...
# LANGUAGE FlexibleContexts # # LANGUAGE DataKinds # module ElfX64Linux ( SaveMacaw(..) , elfX64LinuxTests ) where import Control.Lens ( (^.) ) import Control.Monad ( unless, when ) import qualified Control.Monad.Catch as C import qualified Data.ByteString as B import qualified Data.ByteStr...
accc68efdf307d6bbd009c8f973ab23d960f9ef03726a0dc70a9b0c4a14254e6
ejgallego/coq-lsp
version.ml
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * INRIA , CNRS and contributors - Copyright 1999 - 2018 (* <O___,, * (see CREDITS file for the list of authors) *) \VV/ * * * *...
null
https://raw.githubusercontent.com/ejgallego/coq-lsp/1307f280951ff6d4419106d588fe0c39d0a88c8f/controller/version.ml
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team <O___,, * (see CREDITS file for the list of authors) // * This file is distributed under the terms of the * (see LICENSE file for...
v * INRIA , CNRS and contributors - Copyright 1999 - 2018 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser General Public License Version 2.1 type t = string let server = "0.1.7...
529acdece461ece73e1360801e334313bca5f6b23f2487697cf34353fe5613f4
nspin/hs-arm
Assembly.hs
# LANGUAGE DataKinds # # LANGUAGE MagicHash # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # module Harm.Tables.Assembly where import Harm.Types import Prelude hiding (takeWhile, EQ, LT, GT) import GHC.Prim import GHC.TypeLits import Data.Attoparsec.ByteString.Char8 hiding (Number(..), take) imp...
null
https://raw.githubusercontent.com/nspin/hs-arm/8f10870a4afbbba010e78bd98e452ba67adc34e0/nix-results/harm.harm-tables-src/src/Harm/Tables/Assembly.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE DataKinds # # LANGUAGE MagicHash # # LANGUAGE ScopedTypeVariables # module Harm.Tables.Assembly where import Harm.Types import Prelude hiding (takeWhile, EQ, LT, GT) import GHC.Prim import GHC.TypeLits import Data.Attoparsec.ByteString.Char8 hiding (Number(..), take) import Data.Bits import Data.Char impo...
5b41976a442f760f06f7e3becc9f90ca13707714aca106081476535e07abfff5
vikram/lisplibraries
swank-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. ;;; (in-package :swank-backend) (eval-when (:compile-toplevel :load-toplevel :execute) (require "com...
null
https://raw.githubusercontent.com/vikram/lisplibraries/105e3ef2d165275eb78f36f5090c9e2cdd0754dd/site/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 TCP server Coding Systems Unix signals Documentation Debugging nil no frame found! if we can't find a invoke-debugger frame, take...
swank-lispworks.lisp --- LispWorks specific code for SLIME . Created 2003 , (in-package :swank-backend) (eval-when (:compile-toplevel :load-toplevel :execute) (require "comm") (import-from :stream *gray-stream-symbols* :swank-backend)) (import-swank-mop-symbols :clos '(:slot-definition-documentation ...
442402c20e6a7a994c0d2712e4930da9a80bd2ce1f559e12bd64ef3057fc0ed9
EligiusSantori/L2Apf
use_skill.scm
; l2j/gameserver/clientpackets/RequestMagicSkillUse.java (module system racket/base (require "../../packet.scm") (provide game-client-packet/use-skill) (define (game-client-packet/use-skill skill-id control? shift?) (let ((s (open-output-bytes))) (begin (write-byte #x2f s) (write-int32 skill-i...
null
https://raw.githubusercontent.com/EligiusSantori/L2Apf/30ffe0828e8a401f58d39984efd862c8aeab8c30/packet/game/client/use_skill.scm
scheme
l2j/gameserver/clientpackets/RequestMagicSkillUse.java
(module system racket/base (require "../../packet.scm") (provide game-client-packet/use-skill) (define (game-client-packet/use-skill skill-id control? shift?) (let ((s (open-output-bytes))) (begin (write-byte #x2f s) (write-int32 skill-id #f s) (write-int32 (if control? 1 0) #f s) (wr...
db98e81921ecc47c28f04113f724f227a2b6e18a3db4d1d5734d059e71bdeb5d
DanielG/kvm-in-a-box
Iface.hs
module Iface (interfaceResource) where import Control.Monad import Control.Applicative import Control.Monad.Trans.Writer import Control.Exception import Data.Char import Data.Bool import Data.Maybe import Data.IP import System.Directory import System.Process hiding (system, rawSystem) import System.FilePath import Sys...
null
https://raw.githubusercontent.com/DanielG/kvm-in-a-box/3c433eb5a473ac86bfec0c4926fc84643b77942c/src/Iface.hs
haskell
static because downstream interfaces could hijack address by running a dhcp server themselves
module Iface (interfaceResource) where import Control.Monad import Control.Applicative import Control.Monad.Trans.Writer import Control.Exception import Data.Char import Data.Bool import Data.Maybe import Data.IP import System.Directory import System.Process hiding (system, rawSystem) import System.FilePath import Sys...
328769aeb9571cf826eec57338e60e735cae14b47be8c142ef13d0bd234f9a40
unisonweb/unison
Serialize.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # module Unison.Runtime.MCode.Serialize ( putComb, getComb, ) where import Data.Bytes.Get import Data.Bytes.Put import Data.Bytes.Serial import Data.Bytes.VarInt import Data.Primitive.PrimArray import Data.Word (Word64) import GH...
null
https://raw.githubusercontent.com/unisonweb/unison/cf278f9fb66ccb9436bf8a2eb4ab03fc7a92021d/parser-typechecker/src/Unison/Runtime/MCode/Serialize.hs
haskell
# LANGUAGE BangPatterns #
# LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # module Unison.Runtime.MCode.Serialize ( putComb, getComb, ) where import Data.Bytes.Get import Data.Bytes.Put import Data.Bytes.Serial import Data.Bytes.VarInt import Data.Primitive.PrimArray import Data.Word (Word64) import GHC.Exts (IsList (..)) import Un...
b2a137994ab303f6293ea86edcccbb3223a62cb1b03838f38df1c8a079182eee
ThoughtWorksInc/clj-http-s3
s3.clj
(ns clj-http-s3.test.s3 (:require [clojure.test :refer :all] [clj-http-s3.s3 :refer :all])) (deftest s3-test (let [example-headers {"x-amz-magic" "abracadabra" "x-amz-meta-author" "" "Content-Md5" "c8fdb181845a4ca6b8fec737b3581d76" "Content-Type" "text...
null
https://raw.githubusercontent.com/ThoughtWorksInc/clj-http-s3/d5523b9448d3910978f09c709697adc167c9496c/test/clj_http_s3/test/s3.clj
clojure
(ns clj-http-s3.test.s3 (:require [clojure.test :refer :all] [clj-http-s3.s3 :refer :all])) (deftest s3-test (let [example-headers {"x-amz-magic" "abracadabra" "x-amz-meta-author" "" "Content-Md5" "c8fdb181845a4ca6b8fec737b3581d76" "Content-Type" "text...