_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
a202fb53d77a40a0306c8486afaf5d8358eea2c0ca8d537e501a46ae24c4483b
mejgun/haskell-tdlib
SendMessage.hs
{-# LANGUAGE OverloadedStrings #-} -- | module TD.Query.SendMessage where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.InputMessageContent as InputMessageContent import qualified TD.Data.MessageSendOptions as MessageSendOptions import qualified TD.Data.ReplyMarkup a...
null
https://raw.githubusercontent.com/mejgun/haskell-tdlib/81516bd04c25c7371d4a9a5c972499791111c407/src/TD/Query/SendMessage.hs
haskell
# LANGUAGE OverloadedStrings # | | Sends a message. Returns the sent message | The content of the message to be sent | Options to be used to send the message; pass null to use default options | Identifier of the replied message; 0 if none | If not 0, a message thread identifier in which the message will be sent ...
module TD.Query.SendMessage where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.InputMessageContent as InputMessageContent import qualified TD.Data.MessageSendOptions as MessageSendOptions import qualified TD.Data.ReplyMarkup as ReplyMarkup import qualified Utils as ...
17a14477131d7e696495e0519fbfad7e5a2b08226631205eac05f5125d1ded91
clojure-interop/google-cloud-clients
SpeechStubSettings$Builder.clj
(ns com.google.cloud.speech.v1.stub.SpeechStubSettings$Builder "Builder for SpeechStubSettings." (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.speech.v1.stub SpeechStubSettings$Builder])) (defn apply-to-all-unary-methods "Applies the given settings updater function to all of the u...
null
https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.speech/src/com/google/cloud/speech/v1/stub/SpeechStubSettings%24Builder.clj
clojure
(ns com.google.cloud.speech.v1.stub.SpeechStubSettings$Builder "Builder for SpeechStubSettings." (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.speech.v1.stub SpeechStubSettings$Builder])) (defn apply-to-all-unary-methods "Applies the given settings updater function to all of the u...
0f5772d1d67b775390e51b48702956473558a8f0ef6ab39d538de2f397cfa84e
2600hz/kazoo
kzd_domains_tests.erl
%%%----------------------------------------------------------------------------- ( C ) 2010 - 2020 , 2600Hz %%% @doc Account document @author %%% 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 o...
null
https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/core/kazoo_documents/test/kzd_domains_tests.erl
erlang
----------------------------------------------------------------------------- @doc Account document @end -----------------------------------------------------------------------------
( C ) 2010 - 2020 , 2600Hz @author 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 /. -module(kzd_domains_tests). -include_lib("eunit/include/eunit.hrl"). -include_lib("kazoo_stdlib/inclu...
d09b92b14b3c080ae742e6e7d97e55f2843a2c966386e782054d345edbb27ee4
gas2serra/cldk
image-ops.lisp
(in-package :cldk-render-internals) (defmethod set-image ((image image-mixin) design &key x y width height) (declare (type fixnum x y width height)) (let ((set-fn (%image-set-fn image)) (image-type (image-type image))) (let ((src-fn (pixeled-design-rgba-get-fn design))) (declare (type pixeled-des...
null
https://raw.githubusercontent.com/gas2serra/cldk/63c8322aedac44249ff8f28cd4f5f59a48ab1441/mcclim/render/image-ops.lisp
lisp
(in-package :cldk-render-internals) (defmethod set-image ((image image-mixin) design &key x y width height) (declare (type fixnum x y width height)) (let ((set-fn (%image-set-fn image)) (image-type (image-type image))) (let ((src-fn (pixeled-design-rgba-get-fn design))) (declare (type pixeled-des...
676407030008bcc21e881d759ca3465877b7cd6a8ef50ed0c83b6b41f9216447
icfpcontest2021/icfpcontest2021.github.io
ConvexHull.hs
# LANGUAGE ScopedTypeVariables # -- | module BrainWall.Polygon.ConvexHull where import BrainWall.Polygon.Internal import BrainWall.V2 import Data.Maybe import Data.Ord import qualified Data.Vector as V convexHull :: forall a. (Real a, Ord a) => V.Vector (V2 a) -> Polygon a convexHull points = fromJust $ mkPolygon hu...
null
https://raw.githubusercontent.com/icfpcontest2021/icfpcontest2021.github.io/fb23fea2a8ecec7740017d3dda78d921c1df5a26/toolchain/lib/BrainWall/Polygon/ConvexHull.hs
haskell
|
# LANGUAGE ScopedTypeVariables # module BrainWall.Polygon.ConvexHull where import BrainWall.Polygon.Internal import BrainWall.V2 import Data.Maybe import Data.Ord import qualified Data.Vector as V convexHull :: forall a. (Real a, Ord a) => V.Vector (V2 a) -> Polygon a convexHull points = fromJust $ mkPolygon hullPoi...
645bcddd21639194ed9a1503048ac10f5ad09da5bc89d3762fb203cc78b07766
donaldsonjw/bigloo
jvm.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / comptime / BackEnd / jvm.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation ...
null
https://raw.githubusercontent.com/donaldsonjw/bigloo/a4d06e409d0004e159ce92b9908719510a18aed5/comptime/BackEnd/jvm.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ *=====================================================================*/ *---------------------------...
* serrano / prgm / project / bigloo / comptime / BackEnd / jvm.scm * / * Author : * / * Creation : Sun Nov 18 08:31:55 2012 * / * Last change : Sun Jul 21 11:34:37 2013 ( serrano ) * / * Copy...
99cf1d2855fd35a054ace49c519b1c3902576c953be83072168dac52827d3bf2
basho/machi
machi_admin_util.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2007 - 2015 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...
null
https://raw.githubusercontent.com/basho/machi/e87bd59a9777d805b00f9e9981467eb28e28390c/src/machi_admin_util.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 ) 2007 - 2015 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 ...
7e41466b1a3d8cef03ed6237671f06d27e0a26ae1a61ab88a68a64bb82573b11
roblaing/erlang-webapp-howto
unit3_app.erl
%%%------------------------------------------------------------------- @doc unit3 public API %% @end %%%------------------------------------------------------------------- -module(unit3_app). -behaviour(application). -export([start/2, stop/1]). start(_StartType, _StartArgs) -> Dispatch = cowboy_router:compile([...
null
https://raw.githubusercontent.com/roblaing/erlang-webapp-howto/e1731dfc4e2cfdfee88e982d67155b83acd5cc04/unit3/apps/unit3/src/unit3_app.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- Set Host to any internal functions
@doc unit3 public API -module(unit3_app). -behaviour(application). -export([start/2, stop/1]). start(_StartType, _StartArgs) -> [ {"/" , cowboy_static, {priv_file, unit3, "index.html"}} , {"/images/[...]" , cowboy_static, {priv_dir, unit3, "images"}} , {"/styles/[...]" , cowboy_static, {p...
28bfb2a30218be68e1ac6ea5aacaaf3974924de70cc5887318274c524683f23d
kakao/hbase-region-inspector
core_test.clj
(ns hbase-region-inspector.core-test (:require [clojure.test :refer :all] [hbase-region-inspector.core :refer :all :as c])) (deftest test-format-val (is (= ["Memstore" "100 MB"] (format-val :memstore-size-mb 100))) (is (= ["Memstore" "1 MB"] (format-val :memstore-size-mb 1.2))) (is (= ["Data size" ...
null
https://raw.githubusercontent.com/kakao/hbase-region-inspector/333c4bddd4ed85cdc8b3d90138f2d1d0f32e275d/test/hbase_region_inspector/core_test.clj
clojure
Tables are sorted by their names Tables are sorted by their names Tables are, again, sorted by their names
(ns hbase-region-inspector.core-test (:require [clojure.test :refer :all] [hbase-region-inspector.core :refer :all :as c])) (deftest test-format-val (is (= ["Memstore" "100 MB"] (format-val :memstore-size-mb 100))) (is (= ["Memstore" "1 MB"] (format-val :memstore-size-mb 1.2))) (is (= ["Data size" ...
11b6353527d8a51fb4755578f34fcd1932e0d81da397d19f6d56fca0f2b025cc
fragnix/fragnix
Web.Scotty.Util.hs
{-# LANGUAGE Haskell2010 #-} {-# LINE 1 "Web/Scotty/Util.hs" #-} # LANGUAGE CPP # module Web.Scotty.Util ( lazyTextToStrictByteString , strictByteStringToLazyText , setContent , setHeaderWith , set...
null
https://raw.githubusercontent.com/fragnix/fragnix/b9969e9c6366e2917a782f3ac4e77cce0835448b/tests/packages/scotty/Web.Scotty.Util.hs
haskell
# LANGUAGE Haskell2010 # # LINE 1 "Web/Scotty/Util.hs" # Note: we currently don't support responseRaw, which may be useful is incompatible with responseRaw responses. Note: we assume headers are not sensitive to order here (RFC 2616 specifies they are not)
# LANGUAGE CPP # module Web.Scotty.Util ( lazyTextToStrictByteString , strictByteStringToLazyText , setContent , setHeaderWith , setStatus , mkResponse , replace , add , addIfNotPre...
9487f3dd061111ab13924213006837b71073db247cd6292fc21b1ef5e127e3e5
Factual/eliza
register.clj
(ns eliza.register) (def responders (atom {})) (defn wrap-confidence-responder [confidence-fn response-fn] (fn [input-map] {:response-ref (future (response-fn input-map)) :confidence (confidence-fn input-map)})) (defn register-responder! [k confidence-fn response-fn] (let [responder (wrap-confidence...
null
https://raw.githubusercontent.com/Factual/eliza/2b87c362322ceb9f2cf53f2866763e9c65d98a26/src/eliza/register.clj
clojure
(ns eliza.register) (def responders (atom {})) (defn wrap-confidence-responder [confidence-fn response-fn] (fn [input-map] {:response-ref (future (response-fn input-map)) :confidence (confidence-fn input-map)})) (defn register-responder! [k confidence-fn response-fn] (let [responder (wrap-confidence...
126981cee3a8242984d39e46f6caaa97680c3467918d4e93aa5ddeced6a8b61b
exercism/racket
scrabble-score.rkt
#lang racket (provide score) (define (score word) (error "Not implemented yet"))
null
https://raw.githubusercontent.com/exercism/racket/9aee694e8eeff14cd453502c1a2946745da60fb5/exercises/practice/scrabble-score/scrabble-score.rkt
racket
#lang racket (provide score) (define (score word) (error "Not implemented yet"))
5a1b0df38ae0f234929d76cf691ce81d120ae6fc9954c95b4933f981d52bf49d
aigarashi/copl-tools
pp.ml
open Format open Core let g = "CompareNati" let pr = fprintf let rec print_nat ppf = function Z -> pr ppf "Z" | S n -> pr ppf "S(%a)" print_nat n let print_judgment ppf = function Lt (n1, n2) -> pr ppf "%a is less than %a" print_nat n1 print_nat n2 let print_pjudgment ppf = function In_Lt (n1, n2) ->...
null
https://raw.githubusercontent.com/aigarashi/copl-tools/3c4da117083a0870334c8eef270206b11060514e/checker/CompareNat1/pp.ml
ocaml
open Format open Core let g = "CompareNati" let pr = fprintf let rec print_nat ppf = function Z -> pr ppf "Z" | S n -> pr ppf "S(%a)" print_nat n let print_judgment ppf = function Lt (n1, n2) -> pr ppf "%a is less than %a" print_nat n1 print_nat n2 let print_pjudgment ppf = function In_Lt (n1, n2) ->...
7e0ef935809759719df9a4b14564153b68fa5e8f20dd1489d36944ff03b504a9
ghcjs/jsaddle-dom
Enums.hs
module JSDOM.Enums ( module JSDOM.Generated.Enums ) where import JSDOM.Generated.Enums
null
https://raw.githubusercontent.com/ghcjs/jsaddle-dom/5f5094277d4b11f3dc3e2df6bb437b75712d268f/src/JSDOM/Enums.hs
haskell
module JSDOM.Enums ( module JSDOM.Generated.Enums ) where import JSDOM.Generated.Enums
c4a4912203cd96b0b81fac539a8342df543c0d72cdcfd6a76b221954900d0d81
ArseniyBorezkiy/arda_compiler_collection
acc_dispatcher.erl
%% Users' requests dispatcher. @author < > , 2016 -module (acc_dispatcher). -behaviour (gen_server). % % api % -export ([ % management start_link/1, fatal_error/0, % payload compile/3, % internal callbacks process/3 ]). % % gen...
null
https://raw.githubusercontent.com/ArseniyBorezkiy/arda_compiler_collection/78f99c744ba14a3b2fc3863e429e3abe0becb302/src/interface/acc_dispatcher.erl
erlang
Users' requests dispatcher. api management payload internal callbacks gen server callbacks headers basic types ============================================================================= API ============================================================================= management payload ====...
@author < > , 2016 -module (acc_dispatcher). -behaviour (gen_server). -export ([ start_link/1, fatal_error/0, compile/3, process/3 ]). -export ([ init/1, handle_call/3, handle_cast/2, handle_info/2, termina...
0995aaaf8a10b665d82711eec6bab0e60628d22acee12d2b585f5eb54af1cdb3
janestreet/lwt-async
lwt_mvar.ml
(******************************************************************************) Lightweight thread library for * Interface Lwt_mon * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright ( c ...
null
https://raw.githubusercontent.com/janestreet/lwt-async/c738e6202c1c7409e079e513c7bdf469f7f9984c/src/core/lwt_mvar.ml
ocaml
**************************************************************************** Current contents Threads waiting to put a value Threads waiting for a value
Lightweight thread library for * Interface Lwt_mon * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright ( c ) 2009 , Metaweb Technologies , Inc. * All rights reserved . * * Redistr...
0c524771fd61a118fd58e487c231b6fc1261a84e573f9c6827918d42910ef079
careercup/CtCI-6th-Edition-Haskell
is-palindrome.hs
isPalindrome :: Eq a => [a] -> Bool isPalindrome xs = xs == reverse xs
null
https://raw.githubusercontent.com/careercup/CtCI-6th-Edition-Haskell/46da3bca5a7f2c9bc999b8922b6c4f2eeff9a48b/src/chapter-2/is-palindrome.hs
haskell
isPalindrome :: Eq a => [a] -> Bool isPalindrome xs = xs == reverse xs
fbf6708872e2afd1b2c446e6eba75e9b22bfb5dd4cce6ce3914cd22831a42046
TrustInSoft/tis-kernel
file.mli
(**************************************************************************) (* *) This file is part of . (* *) is a fork of Frama - C. Al...
null
https://raw.githubusercontent.com/TrustInSoft/tis-kernel/748d28baba90c03c0f5f4654d2e7bb47dfbe4e7d/src/kernel_services/ast_queries/file.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 ...
2a3902ff7cacc71cf49277e480aabbdaaea397627fafddff07af6a8234875208
tadam-framework/tadam-core
templates_test.clj
(ns tadam.templates-test (:require [clojure.test :refer :all] [tadam.templates :as templates] [clojure.java.io :refer [resource]])) (deftest render-template (testing "Simple" (is (= (templates/render-template (resource "html/simple.html") {}) "<html><body><h1>Title</h1><p>Tadam is Aweso...
null
https://raw.githubusercontent.com/tadam-framework/tadam-core/325380097f9d887530c3371ec5e394e6ef941f58/test/tadam/templates_test.clj
clojure
(ns tadam.templates-test (:require [clojure.test :refer :all] [tadam.templates :as templates] [clojure.java.io :refer [resource]])) (deftest render-template (testing "Simple" (is (= (templates/render-template (resource "html/simple.html") {}) "<html><body><h1>Title</h1><p>Tadam is Aweso...
51399b2dc2b0681d5e16212e6266605ebf637b90b03803abab0548f11345c773
mikera/orculje
test_core.clj
(ns mikera.orculje.test-core (:use [mikera.orculje core]) (:use [clojure test])) (set! *warn-on-reflection* true) (set! *unchecked-math* true) (deftest test-thing (testing "Thing construction" (let [game (empty-game) t (thing {:id 1 :name 'bob})] (is (= 'bob (? t :name))) (is (= 1 (? t...
null
https://raw.githubusercontent.com/mikera/orculje/4c7f9af78f9a8744e1ab3aef3ded151306883083/src/test/clojure/mikera/orculje/test_core.clj
clojure
calculation should error if evaluated _ (println game) refresh t1 with correct children (println game) (println (str (into {} t1))) (println (str (into {} t2))) (println t1) (println game) (println game) not on same z-plane
(ns mikera.orculje.test-core (:use [mikera.orculje core]) (:use [clojure test])) (set! *warn-on-reflection* true) (set! *unchecked-math* true) (deftest test-thing (testing "Thing construction" (let [game (empty-game) t (thing {:id 1 :name 'bob})] (is (= 'bob (? t :name))) (is (= 1 (? t...
b75b0a7156ae1e62e3b70f4fb4868e86efa534bede3a16a1412b3b609739093f
archhaskell/cblrepo
Translation.hs
# LANGUAGE FlexibleContexts # # LANGUAGE RecordWildCards # - Copyright 2011 Per - - 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 re...
null
https://raw.githubusercontent.com/archhaskell/cblrepo/83316afca397b1e5e526a69d360efd9cb260921b/src/Util/Translation.hs
haskell
shell bits this is a trick to make sure that the user's setting for integrity checking in makepkg.conf isn't used, as long as this array contains something non-empty it will overrule TODO: • translation of extraLibDepends-libs to Arch packages same db has been used to finalise the package so it's all right to u...
# LANGUAGE FlexibleContexts # # LANGUAGE RecordWildCards # - Copyright 2011 Per - - 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 re...
f578a62922a43f8c8dc290201c3b4c3b3af05f12e9859e745aaff4c8b7fc94ad
bi7s/CVEs
poc.ml
񔾾
null
https://raw.githubusercontent.com/bi7s/CVEs/bff6f4aa5a09d38c2d2baeede6954d038621dce6/CVE-2019-16294/poc.ml
ocaml
񔾾
4a0f9a82b206daa7068b6c8c83055529f71cb3fb5b056603cf9d9253df1f1208
fetburner/Coq2SML
type_errors.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/fetburner/Coq2SML/322d613619edbb62edafa999bff24b1993f37612/coq-8.4pl4/kernel/type_errors.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** Type errors. Fixpoints CoFixpoi...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Names open Term open Sig...
a36e7f4805c4d8621bbca7ef2ac72fc879833bfb22bcc8c9921b693b35f1c764
steshaw/PLAR
lcfprop.ml
(* ========================================================================= *) Propositional reasoning by derived rules atop the LCF core . (* *) Copyright ( c ) 2003 - 2007 , . ( See " LICENSE.txt " for details . ) (* ===...
null
https://raw.githubusercontent.com/steshaw/PLAR/c143b097d1028963f4c1d24f45a1a56c8b65b838/lcfprop.ml
ocaml
========================================================================= ========================================================================= ------------------------------------------------------------------------- ---------------...
Propositional reasoning by derived rules atop the LCF core . Copyright ( c ) 2003 - 2007 , . ( See " LICENSE.txt " for details . ) |- p = = > let imp_refl p = modusponens (modusponens (axiom_distribimp p (Imp(p,p)) p) (axiom_addimp p (Imp(p,p)))) (...
c93c65d9bd3e2bd97fbd964578a682fd4d18ee5e936ffe87c95a2b94f1a2ef77
awslabs/s2n-bignum
bignum_mul_p25519.ml
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved . * SPDX - License - Identifier : Apache-2.0 OR ISC * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 OR ISC *) (* =================================================================...
null
https://raw.githubusercontent.com/awslabs/s2n-bignum/824c15f908d7a343af1b2f378cfedd36e880bdde/arm/proofs/bignum_mul_p25519.ml
ocaml
========================================================================= ========================================================================= arm_ADDS X13 X13 X12 arm_ADDS X12 X11 X13 arm_CSETM X9 Condition_CC arm_ADDS X15 X15 X17 arm_ADCS X11 X15 X11 arm_CMN X10 X10 -----------------------------...
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved . * SPDX - License - Identifier : Apache-2.0 OR ISC * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 OR ISC *) Multiplication modulo p_25519 , the field characteristic for . ...
963bf6f60be2c52a84dd4cd3dd6d7df06ecfef899e01b422b1270f342e1dcf6b
hellonico/origami-fun
hand.clj
(ns opencv4.hand (:require [opencv4.core :refer :all] [opencv4.video :refer :all] [opencv4.utils :as u])) (def detector (new-cascadeclassifier "resources/lbpcascade_frontalface.xml")) (defn draw-rect [mat rect _color] (rectangle mat (new-point (.-x rect) (.-y rect)) (new-point (+ (.-wi...
null
https://raw.githubusercontent.com/hellonico/origami-fun/80117788530d942eaa9a80e2995b37409fa24889/test/opencv4/video/hand.clj
clojure
(doseq [rect (.toArray rects)] (draw-rect mat rect opencv4.colors.rgb/pink))
(ns opencv4.hand (:require [opencv4.core :refer :all] [opencv4.video :refer :all] [opencv4.utils :as u])) (def detector (new-cascadeclassifier "resources/lbpcascade_frontalface.xml")) (defn draw-rect [mat rect _color] (rectangle mat (new-point (.-x rect) (.-y rect)) (new-point (+ (.-wi...
2f43c56fd13648e8cd746d37cdce3930edb8af5541a164c60c3c3a39b8ce45dd
travelping/hello
hello_msgpack.erl
-module(hello_msgpack). -behaviour(hello_decoder). -export([decode/1, encode/1, signature/0]). decode(Binary) -> {ok, Unpacked} = msgpack:unpack(Binary, [{format, map}]), Unpacked. encode(Json) -> msgpack:pack(Json, [{format, jsx}, {allow_atom, pack}]). signature() -> <<16#AA, 16#FD>>.
null
https://raw.githubusercontent.com/travelping/hello/b2697428efe777e8be657d31ca22d80378041d7c/src/decoders/hello_msgpack.erl
erlang
-module(hello_msgpack). -behaviour(hello_decoder). -export([decode/1, encode/1, signature/0]). decode(Binary) -> {ok, Unpacked} = msgpack:unpack(Binary, [{format, map}]), Unpacked. encode(Json) -> msgpack:pack(Json, [{format, jsx}, {allow_atom, pack}]). signature() -> <<16#AA, 16#FD>>.
bc42a3500e17ab802931b1b12fc08c8f7f1dfbd366a6528bef949c132314295e
ocaml-flambda/ocaml-jst
revapply.ml
(* TEST flags="-w +48" *) external ( |> ) : 'a -> ('a -> 'b) -> 'b = "%revapply" let f x = x + x let g x = x * x let h x = x + 1 let add x y = x + y let _ = List.iter (fun x -> print_int x; print_newline () ) [ 6 36 18 37 260 ] PR#10081 let bump ?(cap = 100) x = min cap (x + 1) no ...
null
https://raw.githubusercontent.com/ocaml-flambda/ocaml-jst/5bf2820278c58f6715dcfaf6fa61e09a9b0d8db3/testsuite/tests/prim-revapply/revapply.ml
ocaml
TEST flags="-w +48" Abstract functions
external ( |> ) : 'a -> ('a -> 'b) -> 'b = "%revapply" let f x = x + x let g x = x * x let h x = x + 1 let add x y = x + y let _ = List.iter (fun x -> print_int x; print_newline () ) [ 6 36 18 37 260 ] PR#10081 let bump ?(cap = 100) x = min cap (x + 1) no warning 48 PR#10081 type t...
c31524a507d4b52c560eb279632fcbd658f9a1fcfbdd01ac02127f542e3391ab
GriffinScribe-LLC/clojure-aes
mix_columns.clj
(ns clojure-aes.encrypt.mix-columns (:require [clojure-aes.shared :as shared] [clojure-aes.utils :as utils] [clojure-aes.constants :as c])) (defn mixColumns "This transformation treats each column in state as a four-term polynomial. This polynomial is multiplied (modulo another polynomial) ...
null
https://raw.githubusercontent.com/GriffinScribe-LLC/clojure-aes/1924d1e6ca8c42e74040fc69f5eb208d71ed831a/src/clojure_aes/encrypt/mix_columns.clj
clojure
(ns clojure-aes.encrypt.mix-columns (:require [clojure-aes.shared :as shared] [clojure-aes.utils :as utils] [clojure-aes.constants :as c])) (defn mixColumns "This transformation treats each column in state as a four-term polynomial. This polynomial is multiplied (modulo another polynomial) ...
5c0c03af86cd245537dfac26097120982f1c008b845e9df866b4b68cd29c96f3
malcolmreynolds/GSLL
binomial.lisp
Regression test for GSLL , automatically generated (in-package :gsl) (LISP-UNIT:DEFINE-TEST BINOMIAL (LISP-UNIT::ASSERT-NUMERICAL-EQUAL (LIST (LIST 11 3 4 8 4 5 8 6 5 6 6)) (MULTIPLE-VALUE-LIST (LET ((RNG (MAKE-RANDOM-N...
null
https://raw.githubusercontent.com/malcolmreynolds/GSLL/2f722f12f1d08e1b9550a46e2a22adba8e1e52c4/tests/binomial.lisp
lisp
Regression test for GSLL , automatically generated (in-package :gsl) (LISP-UNIT:DEFINE-TEST BINOMIAL (LISP-UNIT::ASSERT-NUMERICAL-EQUAL (LIST (LIST 11 3 4 8 4 5 8 6 5 6 6)) (MULTIPLE-VALUE-LIST (LET ((RNG (MAKE-RANDOM-N...
5dc29127f5458305a60034cc7cc089c44b22b2d36734bf245199d34e7ca4afda
plumatic/grab-bag
home_test.clj
(ns dashboard.pages.home-test (:use clojure.test plumbing.core plumbing.test) (:require [plumbing.new-time :as new-time] [dashboard.pages.home :as home])) (deftest active-users-data-test (let [empty-monthly (map-from-keys (constantly []) [:total :d1-1 :d2-4 :d5-14 :d15-30]) day-ms (new-time/to-mill...
null
https://raw.githubusercontent.com/plumatic/grab-bag/a15e943322fbbf6f00790ce5614ba6f90de1a9b5/service/dashboard/test/clj/dashboard/pages/home_test.clj
clojure
(ns dashboard.pages.home-test (:use clojure.test plumbing.core plumbing.test) (:require [plumbing.new-time :as new-time] [dashboard.pages.home :as home])) (deftest active-users-data-test (let [empty-monthly (map-from-keys (constantly []) [:total :d1-1 :d2-4 :d5-14 :d15-30]) day-ms (new-time/to-mill...
a5244a68e7938c514d07b6fa63c1457b897b929c2bfd9bc3ae88dd9d9f8ccc63
NovoLabs/gregor
test_message_passing.clj
(ns gregor.integration.test-message-passing (:require [gregor.consumer :as c] [gregor.producer :as p] [clojure.core.async :as a] [clojure.test :refer :all])) (defn validate-producer-data "Validates `data` events from the producer" [{:keys [type-name topic] :as payload}] (is ...
null
https://raw.githubusercontent.com/NovoLabs/gregor/017488d88abe23df1f0389080629d6f26ba2a84e/test/gregor/integration/test_message_passing.clj
clojure
Verify we have gotten a properly initialized producer Verify we have gotten a properly initialized consumer
(ns gregor.integration.test-message-passing (:require [gregor.consumer :as c] [gregor.producer :as p] [clojure.core.async :as a] [clojure.test :refer :all])) (defn validate-producer-data "Validates `data` events from the producer" [{:keys [type-name topic] :as payload}] (is ...
8a6c1fc79c639847e0aa604c389b38dadc4e4916f76b840815e1baa26639a6fd
Fresheyeball/Shpadoinkle
Property.hs
# LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE TemplateHaskell #-} # LANGUAGE TupleSections ...
null
https://raw.githubusercontent.com/Fresheyeball/Shpadoinkle/5e5fb636fb0b0e99f04bae0d75cff722a10463ae/html/Shpadoinkle/Html/Property.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # # LANGUAGE TemplateHaskell # | This module provides a DSL for HTML properties This DSL is entirely optional. You may use the 'Prop' constructors For those who like a typed DSL with named functions for different properties and...
# LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TupleSections # # OPTIONS_GHC -fno - warn - orphans # # OPTIONS_GHC -fno - warn - redundant - constraints # provided by core an...
45125257ef9ccf4a8ee6bfa62938fa9f6b012f00d175ec488d322ea824461ef7
gelisam/ludum-dare-31
Extra.hs
module Data.Bool.Extra where if_then_else :: Bool -> a -> a -> a if_then_else True t _ = t if_then_else False _ f = f
null
https://raw.githubusercontent.com/gelisam/ludum-dare-31/4bdd2937b290c41118503bc85a2a16a73139edd2/src/Data/Bool/Extra.hs
haskell
module Data.Bool.Extra where if_then_else :: Bool -> a -> a -> a if_then_else True t _ = t if_then_else False _ f = f
0e46fee7ce840ac53125fc470f2b153aa69c3d361dd6a5f648022063276dd8db
erlangonrails/devdb
db_toke_SUITE.erl
2010 fuer Informationstechnik Berlin 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/erlangonrails/devdb/0e7eaa6bd810ec3892bfc3d933439560620d0941/dev/scalaris/test/db_toke_SUITE.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language gov...
2010 fuer Informationstechnik Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author < > @version $ I d : db_toke_SUITE.erl 906 2010 - 07 - 23 14:09:20Z schuett $ -module(db_toke_SUITE). -author(...
7cae790934c856570e443bd6fb1f0a7a030e719acb68c54dc5f52caff571bae7
avsm/mirage-duniverse
std_internal.ml
module Name_of = struct let typename_of_int = let module M = Typename.Make0(struct type t = int let name = "int" end) in M.typename_of_t let typename_of_int32 = let module M = Typename.Make0(struct type t = int32 let name = "int32" end) in M.typename_of_t let typename_of_int64 = let module M...
null
https://raw.githubusercontent.com/avsm/mirage-duniverse/983e115ff5a9fb37e3176c373e227e9379f0d777/ocaml_modules/typerep/lib/std_internal.ml
ocaml
there the module is necessary because we need to deal with a type [t] with parameters whose kind is not representable as a type variable: ['a 't], even with a gadt. there the module is necessary because we need to deal with a type [t] with parameters whose kind is not representable as a type var...
module Name_of = struct let typename_of_int = let module M = Typename.Make0(struct type t = int let name = "int" end) in M.typename_of_t let typename_of_int32 = let module M = Typename.Make0(struct type t = int32 let name = "int32" end) in M.typename_of_t let typename_of_int64 = let module M...
0743eb983b70ccee3103e916b8e646f488cf17f53a8551529195f086d05ee821
uwplse/coq-plugin-lib
typehofs.mli
(* * Utilities for types *) open Environ open Evd open Constr open Reducers (* --- Higher-order functions --- *) (* * Apply a function on a type instead of on the term *) val on_type : (env -> evar_map -> types -> 'a) -> (* the function to apply *) env ->...
null
https://raw.githubusercontent.com/uwplse/coq-plugin-lib/b249fc1954e2f1bc0b776e2d06e8ec1fc4d48ad9/src/coq/logicutils/hofs/typehofs.mli
ocaml
* Utilities for types --- Higher-order functions --- * Apply a function on a type instead of on the term the function to apply the type Like on_red_type, but use the default reducer Returns a list of all subterms of a term with a given type.
open Environ open Evd open Constr open Reducers val on_type : env -> evar_map -> 'a Like on_type , but reduce the type using the supplied reducer first val on_red_type : reducer -> (env -> evar_map -> types -> 'a) -> env -> evar_map -> types ->...
07faffb6fa797cf6d3914e7c2de3931eb49e8b74d9321182183e59db9bb926a6
aryx/xix
error.ml
open Common (* As in ocaml source so easier for pretty printing *) (* less: could spread in different directories *) type error = | Ebadarg | Enovmem | Esoverlap | Enochild | Ebadexec exception Error of error let error x = raise (Error x) let panic str = raise (Impossible ("panic: " ^ str))
null
https://raw.githubusercontent.com/aryx/xix/60ce1bd9a3f923e0e8bb2192f8938a9aa49c739c/kernel/core/error.ml
ocaml
As in ocaml source so easier for pretty printing less: could spread in different directories
open Common type error = | Ebadarg | Enovmem | Esoverlap | Enochild | Ebadexec exception Error of error let error x = raise (Error x) let panic str = raise (Impossible ("panic: " ^ str))
da421c68fa3531e0f2ba5db224ad21b548bdddc72de3038bb10fec038c68764c
SovereignShop/codenames
chat.cljs
(ns codenames.events.chat (:require [cljs.core.async :refer [go timeout <!]] [codenames.constants.ui-idents :as idents] [swig.macros :refer [def-event-ds]] [cljs-time.core :as time] [cljs-time.coerce :as tc] [datascript.core :as d])) (defn update-scroller! [] (let [scroller (.getElementByI...
null
https://raw.githubusercontent.com/SovereignShop/codenames/0a3d5f52b0a704341801bb7125b054a4323bcf19/src/cljs/codenames/events/chat.cljs
clojure
(ns codenames.events.chat (:require [cljs.core.async :refer [go timeout <!]] [codenames.constants.ui-idents :as idents] [swig.macros :refer [def-event-ds]] [cljs-time.core :as time] [cljs-time.coerce :as tc] [datascript.core :as d])) (defn update-scroller! [] (let [scroller (.getElementByI...
f1589680b99e59b5779b0c77efc4c5ed61d5eb8a5c97b63147e5385e8b07f083
ytomino/headmaster
c_lexical_scanner.ml
open C_lexical;; open C_literals;; module type NumericScannerType = sig module Literals: LiteralsType module LexicalElement: LexicalElementType with module Literals := Literals val scan_numeric_literal: (('p * 'p) -> string -> unit) -> Buffer.t -> ('s -> 'i -> 'p) -> ('s -> 'i -> 'p) -> ('s -> 'i -> c...
null
https://raw.githubusercontent.com/ytomino/headmaster/6c52709c7355b6418d5094f2b96da168fe276bae/source/c_lexical_scanner.ml
ocaml
error messages char handling float handling underflow round up scanner reading functions int_of_string could not handle '+' "0123..." including just "0" body real fN, fNx lowercase only? fallback fallback imaginary literal is gcc's extended?? integer
open C_lexical;; open C_literals;; module type NumericScannerType = sig module Literals: LiteralsType module LexicalElement: LexicalElementType with module Literals := Literals val scan_numeric_literal: (('p * 'p) -> string -> unit) -> Buffer.t -> ('s -> 'i -> 'p) -> ('s -> 'i -> 'p) -> ('s -> 'i -> c...
2fc1f74c846c2321fadf131be099632a9c2daed78877dfdcde1290cd022404bd
realworldocaml/mdx
util.ml
* Copyright ( c ) 2019 < > * * Permission to use , copy , modify , and 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 AU...
null
https://raw.githubusercontent.com/realworldocaml/mdx/aa5551a8eb0669fa4561aeee55d6f1528661a510/lib/util.ml
ocaml
* Copyright ( c ) 2019 < > * * Permission to use , copy , modify , and 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 AU...
efcadf1688eb9073a05c93c6f7dbfae69830d73b8ff84dce03a92a4c32b5a301
esl/esl-rabbitmq-client
esl_rabbitmq_client_amqp.erl
-module(esl_rabbitmq_client_amqp). -include_lib("amqp_client/include/amqp_client.hrl"). %% AMQP params network -export([ amqp_params_network/0 ]). %% Exchanges -export([ exchange_declare/1 , exchange_declare_ok/0 , exchange_delete/1 , exchange_delete_ok/0 ]). %% Queue -export([...
null
https://raw.githubusercontent.com/esl/esl-rabbitmq-client/0bcd0ff7ca4cf1a982c7a9d2d1fdf29f0a82ac8f/src/esl_rabbitmq_client_amqp.erl
erlang
AMQP params network Exchanges Queue Basic Format converters Types definition ============================================================================= AMQP params network ============================================================================= , fun amqp_auth_mechanisms:amqpplain/3 Read and set custo...
-module(esl_rabbitmq_client_amqp). -include_lib("amqp_client/include/amqp_client.hrl"). -export([ amqp_params_network/0 ]). -export([ exchange_declare/1 , exchange_declare_ok/0 , exchange_delete/1 , exchange_delete_ok/0 ]). -export([ queue_declare/1 , queue_declare_queu...
40face94cee0b264e4bee213bd55872f04b4882d822ba1ae401f1d13cdcd383e
programaker-project/Programaker-Core
automate_rest_api_user_bridges_root.erl
%%% @doc %%% REST endpoint to manage knowledge collections. %%% @end -module(automate_rest_api_user_bridges_root). -export([init/2]). -export([ allowed_methods/2 , content_types_accepted/2 , is_authorized/2 , options/2 , resource_exists/2 , content_types_provided/2 ])....
null
https://raw.githubusercontent.com/programaker-project/Programaker-Core/ef10fc6d2a228b2096b121170c421f5c29f9f270/backend/apps/automate_rest_api/src/automate_rest_api_user_bridges_root.erl
erlang
@doc REST endpoint to manage knowledge collections. @end CORS Authentication Don't do authentication if it's just asking for options Non matching UserId GET handler POST handler
-module(automate_rest_api_user_bridges_root). -export([init/2]). -export([ allowed_methods/2 , content_types_accepted/2 , is_authorized/2 , options/2 , resource_exists/2 , content_types_provided/2 ]). -export([ accept_json_create_service_port/2 , to_json/2 ...
fc50f12f4a6c7342a0e7c1c9956304858482490f2157fbada6f36222447b6d1e
shentufoundation/deepsea
StmCompile.mli
open AST open Ascii open BinInt open BinNums open Compiled open Datatypes open EVM open ExprCompile open Integers open List0 open LowValues open Maps0 open MemoryModel open Monad open Nat0 open OptErrMonad open PeanoNat open StmtExpressionless open String0 val assign_stack_compiled : nat -> compiled val push_public_a...
null
https://raw.githubusercontent.com/shentufoundation/deepsea/970576a97c8992655ed2f173f576502d73b827e1/src/backend/extraction/StmCompile.mli
ocaml
open AST open Ascii open BinInt open BinNums open Compiled open Datatypes open EVM open ExprCompile open Integers open List0 open LowValues open Maps0 open MemoryModel open Monad open Nat0 open OptErrMonad open PeanoNat open StmtExpressionless open String0 val assign_stack_compiled : nat -> compiled val push_public_a...
1ab85080efc28fea12df63e20be6ed6b9c947b2a69333dcfca36166968011cc0
janestreet/universe
test_opaque.ml
open! Base type t = (int[@sexp.opaque]) list [@@deriving_inline sexp_grammar] let _ = fun (_ : t) -> () let (t_sexp_grammar : Ppx_sexp_conv_lib.Sexp.Private.Raw_grammar.t) = let (_the_generic_group : Ppx_sexp_conv_lib.Sexp.Private.Raw_grammar.generic_group) = { implicit_vars = ["list"]; ggid = ...
null
https://raw.githubusercontent.com/janestreet/universe/b6cb56fdae83f5d55f9c809f1c2a2b50ea213126/ppx_sexp_conv/test/expect/test_opaque.ml
ocaml
open! Base type t = (int[@sexp.opaque]) list [@@deriving_inline sexp_grammar] let _ = fun (_ : t) -> () let (t_sexp_grammar : Ppx_sexp_conv_lib.Sexp.Private.Raw_grammar.t) = let (_the_generic_group : Ppx_sexp_conv_lib.Sexp.Private.Raw_grammar.generic_group) = { implicit_vars = ["list"]; ggid = ...
14abfcd08ead46c81b99b21683e622cf539ebb9b07f5734c5ed3b339c93a1012
liquidz/misaki
evaluator.clj
(ns misaki.test.compiler.default.evaluator (:require [misaki.compiler.default [evaluator :refer :all] [template :refer :all]] [hiccup.core :refer [html]] [clojure.test :refer :all] [clojure.java.io :as io])) ;; def? (deftest def?-test (are [x y] (= x (def? y)) ...
null
https://raw.githubusercontent.com/liquidz/misaki/b8104e632058e3b3da4487513d10e666e5914ec9/test/misaki/test/compiler/default/evaluator.clj
clojure
def? enclose-sexp-with-function evaluate-to-function f => (fn [site & contents] (list (apply + site)))
(ns misaki.test.compiler.default.evaluator (:require [misaki.compiler.default [evaluator :refer :all] [template :refer :all]] [hiccup.core :refer [html]] [clojure.test :refer :all] [clojure.java.io :as io])) (deftest def?-test (are [x y] (= x (def? y)) true ...
b2c451d1497cb67cde72a1858dfbe483ced9e54f0dbf6fe138d2d11410e879ff
HunterYIboHu/htdp2-solution
ex202-select-album.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 ex202-select-album) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor rep...
null
https://raw.githubusercontent.com/HunterYIboHu/htdp2-solution/6182b4c2ef650ac7059f3c143f639d09cd708516/Chapter2/Section13-project-list/ex202-select-album.rkt
racket
about the language level of this file in a form that our tools can easily process. data difinitions A Date is a structure: (define-struct track [name artist album time track# added play# played]) A Track is a structure: (make-track String Strign String N N Date N Date) interpretation An instance records in o...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-abbr-reader.ss" "lang")((modname ex202-select-album) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (require 2htdp/batch-io) (require 2htdp/itunes) ...
a4451e083f81683b8147f39435e9dba7aafbbe8eb9e7301e5abc96e6662693b4
joearms/elib1
elib1_fast_write.erl
Copyright ( c ) 2006 - 2009 See MIT - LICENSE for licensing information . -module(elib1_fast_write). -export([new/1, new/2, write/2, close/1, stream_pos/1]). default is to buffer 32 KB %% new(File) -> Buffer new(File , NumberOfBuffers ) - > Buffer %% write(Buffer, Term) -> Buffer' %% close(Buff) -> {#Terms...
null
https://raw.githubusercontent.com/joearms/elib1/d617d0ec70a058ef102749eadf51c024444c28d9/src/elib1_fast_write.erl
erlang
new(File) -> Buffer write(Buffer, Term) -> Buffer' close(Buff) -> {#TermsWritten,#bytesWritten} ---------------------------------------------------------------------- @doc Create a new stream Stream = io:stream N = number of bytes in the buffer W = total bytes written T = total number of terms writt...
Copyright ( c ) 2006 - 2009 See MIT - LICENSE for licensing information . -module(elib1_fast_write). -export([new/1, new/2, write/2, close/1, stream_pos/1]). default is to buffer 32 KB new(File , NumberOfBuffers ) - > Buffer -type stream() :: {iow, file:io_device(), integer(), integer(),...
923e73ebf570371aa8ad8ab04ffe4a1b38b63d2d37b327f12c8c22ccbddd49bc
RichiH/git-annex
LogFile.hs
log files - - Copyright 2012 < > - - License : BSD-2 - clause - - Copyright 2012 Joey Hess <> - - License: BSD-2-clause -} # LANGUAGE CPP # module Utility.LogFile where import Common #ifndef mingw32_HOST_OS import System.Posix.Types #endif openLog :: FilePath -> IO Handle openLog logfile =...
null
https://raw.githubusercontent.com/RichiH/git-annex/bbcad2b0af8cd9264d0cb86e6ca126ae626171f3/Utility/LogFile.hs
haskell
Lists most recent logs last.
log files - - Copyright 2012 < > - - License : BSD-2 - clause - - Copyright 2012 Joey Hess <> - - License: BSD-2-clause -} # LANGUAGE CPP # module Utility.LogFile where import Common #ifndef mingw32_HOST_OS import System.Posix.Types #endif openLog :: FilePath -> IO Handle openLog logfile =...
0b7d11373b8557906633b1cb90d7c819051887c08ef7345ee4b612c67eb2bfc9
project-oak/hafnium-verification
JProcname.mli
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
null
https://raw.githubusercontent.com/project-oak/hafnium-verification/6071eff162148e4d25a0fedaea003addac242ace/experiments/ownership-inference/infer/infer/src/java/JProcname.mli
ocaml
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
cd24028204e84a3e8f5c5aab3d910ffca2e5c7644331bfc91d1b06e96035f004
incoherentsoftware/defect-process
Data.hs
module Player.MovementSkill.All.GrappleSkill.Projectile.Data ( GrappleProjData(..) , mkGrappleProjData ) where import Collision import Configs.All.PlayerSkill.Grapple import Player import Player.MovementSkill.All.GrappleSkill.Data import Projectile as P import Util data GrappleProjData = GrappleProjData ...
null
https://raw.githubusercontent.com/incoherentsoftware/defect-process/8797aad1d93bff5aadd7226c39a48f45cf76746e/src/Player/MovementSkill/All/GrappleSkill/Projectile/Data.hs
haskell
module Player.MovementSkill.All.GrappleSkill.Projectile.Data ( GrappleProjData(..) , mkGrappleProjData ) where import Collision import Configs.All.PlayerSkill.Grapple import Player import Player.MovementSkill.All.GrappleSkill.Data import Projectile as P import Util data GrappleProjData = GrappleProjData ...
483587dda60e11a3728ca22e423f070cdf6e99aefd8fa47095c95daa0aec954d
arcfide/chez-srfi
registry-provided.scm
List of all SRFI numbers provided by chez - srfi . 0 1 2 4 5 6 8 9 11 13 14 16 17 19 23 25 26 27 28 29 31 34 35 37 38 39 41 42 43 45 48 51 54 60 61 64 67 69 78 98 99 115 117 125 126 127 128 129 130 131 132 133 141 143 145 151 152 156 158 175
null
https://raw.githubusercontent.com/arcfide/chez-srfi/96fb553b6ba0834747d5ccfc08c181aa8fd5f612/private/registry-provided.scm
scheme
List of all SRFI numbers provided by chez - srfi . 0 1 2 4 5 6 8 9 11 13 14 16 17 19 23 25 26 27 28 29 31 34 35 37 38 39 41 42 43 45 48 51 54 60 61 64 67 69 78 98 99 115 117 125 126 127 128 129 130 131 132 133 141 143 145 151 152 156 158 175
388ed3f2244f58be5aff02c57dae90634c2373e79fad039be775a9366a0a006e
gedge-platform/gedge-platform
rabbit_web_dispatch_sup.erl
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %% Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved . %% -module(rabbit_web_dispatch_sup). -behaviour(sup...
null
https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/rabbitmq_web_dispatch/src/rabbit_web_dispatch_sup.erl
erlang
External exports supervisor callbacks @doc API for starting the supervisor. @spec init([[instance()]]) -> SupervisorTree @doc supervisor callback. Implementation Compress by default. Since 2.0 the compress option in cowboys
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved . -module(rabbit_web_dispatch_sup). -behaviour(superviso...
b4f8f2e09ee6376c079d5e72aacd3e8024bbc10656ea2d66405240d5e489af72
masaomi-yamaguchi/synbit
Name.hs
# LANGUAGE PatternSynonyms # module Name where import Control.DeepSeq (NFData(..)) import Text.PrettyPrint as T hiding ((<>), Mode(..)) import Text.PrettyPrint.HughesPJClass as T hiding ((<>), Mode(..)) newtype TName = TName String deriving (Eq, Ord) instance NFData TName where rnf...
null
https://raw.githubusercontent.com/masaomi-yamaguchi/synbit/4553ae090dfcda4965a16b09130c1d6874b5a849/src/Name.hs
haskell
コンストラクタのname
# LANGUAGE PatternSynonyms # module Name where import Control.DeepSeq (NFData(..)) import Text.PrettyPrint as T hiding ((<>), Mode(..)) import Text.PrettyPrint.HughesPJClass as T hiding ((<>), Mode(..)) newtype TName = TName String deriving (Eq, Ord) instance NFData TName where rnf...
d412958921fa1b55b604bd82a606d467f581059ae0516c599871071d81b692a0
clj-kondo/clj-kondo
single_operand_test.clj
(ns clj-kondo.single-operand-test (:require [clj-kondo.test-utils :refer [lint! assert-submaps]] [clojure.test :as t :refer [deftest is testing]])) (deftest single-operand-comparison-test (testing "test full linting error for single operand comparison in clojure" (assert-submaps '({:file "<stdin>", ...
null
https://raw.githubusercontent.com/clj-kondo/clj-kondo/4a164c1605987c67b32665da31aa3a562b3d0007/test/clj_kondo/single_operand_test.clj
clojure
(ns clj-kondo.single-operand-test (:require [clj-kondo.test-utils :refer [lint! assert-submaps]] [clojure.test :as t :refer [deftest is testing]])) (deftest single-operand-comparison-test (testing "test full linting error for single operand comparison in clojure" (assert-submaps '({:file "<stdin>", ...
b441a0760313ac9c39c44fe34adeeeb64762196183d9c1c66387f81549d29a2a
shirok/Gauche
libbox.scm
;;; ;;; libbox.scm - Boxes ;;; Copyright ( c ) 2000 - 2022 < > ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: ;;; ;;; 1. Redistributions of source code must retain the above copyright ;;; ...
null
https://raw.githubusercontent.com/shirok/Gauche/47133e7092fb4369f3949bda866bc17bcfb59cef/src/libbox.scm
scheme
libbox.scm - Boxes Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. ...
Copyright ( c ) 2000 - 2022 < > " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING (select-module gauche) Although the cou...
13358e6648c5f9fd53668de2d7a29b1684e49354e2b8cdc2de7b7d2ba2b184bb
ggeoffrey/cljs-gravity
node.cljs
(ns gravity.view.node) TODO "Give a color for a given node" [node classifier] (let [key (.-group node)] (new js/THREE.Color (classifier key)))) (def get-unique-color (memoize get-color)) (defn get-rand-pos "Give a random position between -extent and +extent" [extent] (-> (* 2 extent) (rand)...
null
https://raw.githubusercontent.com/ggeoffrey/cljs-gravity/21f15aa08e88d747bc6dbe356a31c7d4d35d0bb9/src/gravity/view/node.cljs
clojure
(ns gravity.view.node) TODO "Give a color for a given node" [node classifier] (let [key (.-group node)] (new js/THREE.Color (classifier key)))) (def get-unique-color (memoize get-color)) (defn get-rand-pos "Give a random position between -extent and +extent" [extent] (-> (* 2 extent) (rand)...
c39d90487796e362fecfafaf7fab6fd1df9e5e97e0348eacdd42cc9f398ceb44
Reisen/pixel
Token.hs
module Pixel.Model.Token ( Token(..) , tokenText ) where import Protolude import Control.Lens import Data.Aeson ( ToJSON(..), FromJSON(..) ) import Pixel.JSON ( pixelToJSON, pixelToEncoding, pixelParseJSON ) import Servant ( FromHttpApiData(..) ) --------------------------------------------------------...
null
https://raw.githubusercontent.com/Reisen/pixel/9096cc2c5b909049cdca6d14856ffc1fc99d81b5/src/lib/Pixel/Model/Token.hs
haskell
------------------------------------------------------------------------------ A `Token` generalizes the concept of a user Authentication token, the underlying type shouldn't matter as long as the decoding into this type uniquely identifies an authorized user. --------------------------------------------------------...
module Pixel.Model.Token ( Token(..) , tokenText ) where import Protolude import Control.Lens import Data.Aeson ( ToJSON(..), FromJSON(..) ) import Pixel.JSON ( pixelToJSON, pixelToEncoding, pixelParseJSON ) import Servant ( FromHttpApiData(..) ) newtype Token = Token { _tokenText :: Text } derivi...
8b33eef5c15a6d8390027ccab2dbf8a7dcc97f34310717a60c7abb8683c99722
cdepillabout/testing-code-that-accesses-db-in-haskell
Test.hs
-- These are the tests for our api. The only real interesting part is the -- 'main' function, were we specific that the test database is different -- from the production database. # LANGUAGE DeriveFunctor # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE Insta...
null
https://raw.githubusercontent.com/cdepillabout/testing-code-that-accesses-db-in-haskell/d6afb919bf42f5670a8182e918cd98e7581bb87b/with-db/testing-db/test/Test.hs
haskell
These are the tests for our api. The only real interesting part is the 'main' function, were we specific that the test database is different from the production database. # LANGUAGE GADTs # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # | These are our actual unit tests. They should be relatively straigh...
# LANGUAGE DeriveFunctor # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE InstanceSigs # # LANGUAGE MultiParamTypeClasses # # LANGUAGE QuasiQuotes # # LANGUAGE ScopedTypeVariables # module Main (main) where import Control.Monad.IO.Class (liftIO) import Control.Monad.Logger (NoLogg...
3f8bdbb92edc10ed3ec636de524d3ec2830cfd39bf9950c92db793381e1717ca
rems-project/cerberus
option.ml
include Stdlib.Option type 'a m = 'a option let map f = function | Some a -> Some (f a) | None -> None let map_fst f = function | Some (a, b) -> Some (f a, b) | None -> None let map_snd f = function | Some (a, b) -> Some (a, f b) | None -> None let is_some = function | Some _ -> true | None -> fal...
null
https://raw.githubusercontent.com/rems-project/cerberus/f9c1d12e140ad3b032930610ede1545773aa0904/backend/cn/option.ml
ocaml
let value (default : 'a) (oa : 'a option) = match oa with | Some a -> a | None -> default
include Stdlib.Option type 'a m = 'a option let map f = function | Some a -> Some (f a) | None -> None let map_fst f = function | Some (a, b) -> Some (f a, b) | None -> None let map_snd f = function | Some (a, b) -> Some (a, f b) | None -> None let is_some = function | Some _ -> true | None -> fal...
d9baba4ffd36a171e329b4cb6476c4848eb184fb3974c53717cc19cd93165c45
DSiSc/why3
xml.mli
(********************************************************************) (* *) The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2018 -- Inria - CNRS - Paris - Sud University (* ...
null
https://raw.githubusercontent.com/DSiSc/why3/8ba9c2287224b53075adc51544bc377bc8ea5c75/src/session/xml.mli
ocaml
****************************************************************** This software is distributed under the terms of the GNU Lesser on linking described in file LICENSE. ...
The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2018 -- Inria - CNRS - Paris - Sud University General Public License version 2.1 , with the special exception type attributes = (string * string) list type element = { name : string; attributes : attribute...
a0e4933f4177eabba87166d0c925709c12ca8600464679ca79e21f2703ce0d1a
pnwamk/stop2015-redex
dtr-tests-basic.rkt
#lang racket (require redex "dtr-lang.rkt" "dtr-logic.rkt" "dtr-fme.rkt" rackunit) ;; oo substs tests (check-equal? (term (subst (id x) Ø x)) (term Ø)) (check-equal? (term (subst (id y) Ø x)) (term (id y))) (check-equal? (term (subst Ø (id y) x)) (term Ø)) (check-equal? (term (subst ((CAR) @ y) (id z) y)) (term ((CAR...
null
https://raw.githubusercontent.com/pnwamk/stop2015-redex/275eb9dfda613c30790f49371a3f843d9cd1fff6/dtr-tests-basic.rkt
racket
oo substs tests type subst tests fme tests simple-subtype tests subtype tests w/ refinements update* fact tests update* (empty-env) other tests logic tests arbitrary refinement subtyping =O
#lang racket (require redex "dtr-lang.rkt" "dtr-logic.rkt" "dtr-fme.rkt" rackunit) (check-equal? (term (subst (id x) Ø x)) (term Ø)) (check-equal? (term (subst (id y) Ø x)) (term (id y))) (check-equal? (term (subst Ø (id y) x)) (term Ø)) (check-equal? (term (subst ((CAR) @ y) (id z) y)) (term ((CAR) @ z))) (check-equ...
b0c80f981e81d8719f507a557ec354d767b911b94a3c7b4e295ca56e6cce15ae
susanemcg/pandoc-tufteLaTeX2GitBook
Docbook.hs
{-# LANGUAGE OverloadedStrings #-} Copyright ( C ) 2006 - 2014 < > This program is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later ver...
null
https://raw.githubusercontent.com/susanemcg/pandoc-tufteLaTeX2GitBook/00c34b4299dd89c4e339e1cde006061918b559ab/pandoc-1.12.4.2/src/Text/Pandoc/Writers/Docbook.hs
haskell
# LANGUAGE OverloadedStrings # | Convert list of authors to a docbook <author> section last name last | Convert an Element to Docbook. Docbook doesn't allow sections with no content, so insert some if needed | Convert a list of pairs of terms and definitions into a list of Docbook varlistentrys. should not occur...
Copyright ( C ) 2006 - 2014 < > This program is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . This program is distribut...
8629717839922485085f24ba67fd893a79a9f083b5a675e20fd2e2edfb7f96ff
AbstractMachinesLab/caramel
types.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/AbstractMachinesLab/caramel/7d4e505d6032e22a630d2e3bd7085b77d0efbb0c/vendor/ocaml-lsp-1.4.0/ocaml-lsp-server/vendor/merlin/upstream/ocaml_403/typing/types.ml
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 open Asttypes type type_expr = { mutable desc: type_desc; mutable level: int; id: int } and...
9517c3430227002ee2823cbf3cf5bdd7921f6d4a97fc34d81e854e41e9069243
ocaml-sf/learn-ocaml-corpus
choose_reversed.ml
let return (x : 'a) : 'a m = let compute s f = s x f in { compute } let (>>=) (m1 : 'a m) (f2 : 'a -> 'b m) : 'b m = let compute s f = m1.compute (fun x f' -> (f2 x).compute s f') f in { compute } let fail : 'a m = let compute s f = f() in { compute } let choose (m1 : 'a m) (m2 : 'a m) : 'a m = let com...
null
https://raw.githubusercontent.com/ocaml-sf/learn-ocaml-corpus/7dcf4d72b49863a3e37e41b3c3097aa4c6101a69/exercises/fpottier/nondet_monad_cont/wrong/choose_reversed.ml
ocaml
wrong The functions [reflect] and [msplit] witness an isomorphism between the type ['a m] and the type [unit -> ('a * 'a m) option].
let return (x : 'a) : 'a m = let compute s f = s x f in { compute } let (>>=) (m1 : 'a m) (f2 : 'a -> 'b m) : 'b m = let compute s f = m1.compute (fun x f' -> (f2 x).compute s f') f in { compute } let fail : 'a m = let compute s f = f() in { compute } let choose (m1 : 'a m) (m2 : 'a m) : 'a m = let com...
f3c56bf4a93a8d97be46aac764716fe86a2c0b2785dc049d796ece6dc0d6026c
haskell-repa/repa
Unboxed.hs
-- Chain ---------------------------------------------------------------------- uchain :: Unbox a => Vector U a -> Vector U a uchain vec = vunchainP $ vchain vec # INLINE [ 6 ] uchain # vunchainP = unchainP {-# INLINE [4] vunchainP #-} vchain = chain {-# INLINE [4] vchain #-} -- R...
null
https://raw.githubusercontent.com/haskell-repa/repa/c867025e99fd008f094a5b18ce4dabd29bed00ba/icebox/abandoned/repa-vector-old/cuts/Unboxed.hs
haskell
Chain ---------------------------------------------------------------------- # INLINE [4] vunchainP # # INLINE [4] vchain # Replicate ------------------------------------------------------------------ Maps ----------------------------------------------------------------------- Zips ---------------------------------...
uchain :: Unbox a => Vector U a -> Vector U a uchain vec = vunchainP $ vchain vec # INLINE [ 6 ] uchain # vunchainP = unchainP vchain = chain ureplicate :: Unbox a => Int -> a -> Vector U a ureplicate n x = vcompute $ vreplicate n x...
9ba123a224f1e20bb226fd2d438eb1e5e7e0c0b2cb5e8d914cd20267b6d8acc2
ryanpbrewster/haskell
240.hs
240.hs - There are 1111 ways in which five 6 - sided dice ( sides numbered 1 to 6 ) can - be rolled so that the top three sum to 15 . Some examples are : - - D1,D2,D3,D4,D5 = 4,3,6,3,5 - D1,D2,D3,D4,D5 = 4,3,3,5,6 - D1,D2,D3,D4,D5 = 3,3,3,6,6 - D1,D2,D3,D4,D5 = 6,6,3,3,3 - - In how many way...
null
https://raw.githubusercontent.com/ryanpbrewster/haskell/6edd0afe234008a48b4871032dedfd143ca6e412/project-euler/src/Old/240.hs
haskell
find all the partitions of n into exactly k elements of xs (repeats allowed) xs must be all positive integers
240.hs - There are 1111 ways in which five 6 - sided dice ( sides numbered 1 to 6 ) can - be rolled so that the top three sum to 15 . Some examples are : - - D1,D2,D3,D4,D5 = 4,3,6,3,5 - D1,D2,D3,D4,D5 = 4,3,3,5,6 - D1,D2,D3,D4,D5 = 3,3,3,6,6 - D1,D2,D3,D4,D5 = 6,6,3,3,3 - - In how many way...
585074761ba5651a47ce0c425be633d4c119e2917042b14a214ba8c2130cce2f
openmusic-project/OMChroma
test-user.lisp
Instanciations avec selection automatique de la classe ; ; ; ; ; ; en fonction de la signature pour make_vps (in-package chroma) ;;;;;;;;;;;;;;;;;;;;;predicates ; interval-p ; should yield "t" (interval-p '-6+) (interval-p '(-6+ 0)) (interval-p '(-6+ 0 -12)) (interval-p '7-) (interval-p '(7- 0)) (interval-p '(7- 0 56)...
null
https://raw.githubusercontent.com/openmusic-project/OMChroma/5ded34f22b59a1a93ea7b87e182c9dbdfa95e047/sources/chroma/vps/Tests/test-user.lisp
lisp
; ; ; ; ; predicates interval-p should yield "t" should yield "nil" pitch-with-octave-p positif ? positif ? pitch-without-octave-p positif ? type-of_vps spl rpl ail fql wrong instanciations spl rpl ppl ail fql error ; ; ; ; ;
en fonction de la signature pour make_vps (in-package chroma) (interval-p '-6+) (interval-p '(-6+ 0)) (interval-p '(-6+ 0 -12)) (interval-p '7-) (interval-p '(7- 0)) (interval-p '(7- 0 56)) (interval-p '+6+) (interval-p '-6f+) (interval-p '(-6+ d)) (interval-p '(-6+ 0 d)) (interval-p '(-6+ 0 q)) (interval-p '(-6+ 0 -...
f673e13143c0d49a4b5a37709709a9392fd18f280ce5afbe3644b717cef5dec1
DSLsofMath/BScProj2018
Bevis.hs
module Proofs.Bevis where -- dom där fyra " kinematiska reglerna . Ha som axiom vanliga regler för algebra . -- Börjar med a = dv / dt och a konstant -- Bevisa att deltaV = a*deltaT -- = vI*deltaT + 0,5*a*deltaT^2 -- Integrera differential från i till f data Equals lhs rhs data Mul a b data ...
null
https://raw.githubusercontent.com/DSLsofMath/BScProj2018/410f185c61b31c7671e60db873ba7b3afee44c30/Physics/src/Proofs/Bevis.hs
haskell
dom där fyra " kinematiska reglerna . Ha som axiom vanliga regler för algebra . Börjar med a = dv / dt och a konstant Bevisa att deltaV = a*deltaT = vI*deltaT + 0,5*a*deltaT^2 Integrera differential från i till f Är något ` undefined ` är det axiom Implikationer modelleras av funktioner från en sak ...
module Proofs.Bevis where data Equals lhs rhs data Mul a b data Div num den equCom : : Equals a b - > Equals b a equCom = undefined mulCom : : Equals ( Mul a b ) ( Mul b a ) mulCom = undefined mulUpDiv : : Equals ( Div a b ) c - > Equals a ( Mul c b ) mulUpDiv = undefined data Diff a ...
bb5dd9f571e6ce5404c4760f558a8299ee10e6579367bfebe1396d9205e8ef43
metaocaml/ber-metaocaml
printing.ml
(* TEST * expect *) (* PR#7012 *) type t = [ 'A_name | `Hi ];; [%%expect{| Line 1, characters 11-18: 1 | type t = [ 'A_name | `Hi ];; ^^^^^^^ Error: The type 'A_name does not expand to a polymorphic variant type Hint: Did you mean `A_name? |}];; let f (x:'id_arg) = x;; [%%expect{| val f : 'id_arg -...
null
https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/testsuite/tests/typing-misc/printing.ml
ocaml
TEST * expect PR#7012 GPR#2034 #8856: cycles in types expressions could trigger stack overflows when printing subpart of error messages
type t = [ 'A_name | `Hi ];; [%%expect{| Line 1, characters 11-18: 1 | type t = [ 'A_name | `Hi ];; ^^^^^^^ Error: The type 'A_name does not expand to a polymorphic variant type Hint: Did you mean `A_name? |}];; let f (x:'id_arg) = x;; [%%expect{| val f : 'id_arg -> 'id_arg = <fun> |}];; let f (x:'Id...
ee65e64133fc5427709fb15617b80559e1a67a9bad2962a6d3c3d7a2be9269ea
michaelklishin/monger
joda_time.clj
This source code is dual - licensed under the Apache License , version 2.0 , and the Eclipse Public License , version 1.0 . ;; ;; The APL v2.0: ;; ;; ---------------------------------------------------------------------------------- Copyright ( c ) 2011 - 2018 , , and the ClojureWerkz Team ;; Licensed unde...
null
https://raw.githubusercontent.com/michaelklishin/monger/9f3d192dffb16da011f805355b87ae172c584a69/src/clojure/monger/joda_time.clj
clojure
The APL v2.0: ---------------------------------------------------------------------------------- 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 CONDIT...
This source code is dual - licensed under the Apache License , version 2.0 , and the Eclipse Public License , version 1.0 . Copyright ( c ) 2011 - 2018 , , and the ClojureWerkz Team distributed under the License is distributed on an " AS IS " BASIS , The EPL v1.0 : Copyright ( c ) 2011 - 2018 , , ...
108d84b4aa121ff8163768b730f090311f0f9e05baf52aac9f928a964c1343e0
LuKC1024/stacker
error.rkt
#lang plait (require (rename-in (typed-in "./error-racket.rkt" [catch : ((-> 'a) ('error -> 'a) -> 'a)]) [catch raw-catch])) (require (rename-in (typed-in racket [raise : ('a -> 'b)]) [raise raw-raise])) (define-type Exception ...
null
https://raw.githubusercontent.com/LuKC1024/stacker/879e38178a62f881cb440f54b08f574db820d0a6/error.rkt
racket
#lang plait (require (rename-in (typed-in "./error-racket.rkt" [catch : ((-> 'a) ('error -> 'a) -> 'a)]) [catch raw-catch])) (require (rename-in (typed-in racket [raise : ('a -> 'b)]) [raise raw-raise])) (define-type Exception ...
f732dcd451a777d10286dcea0483fb23343116d368136c4c63d2f77e7401ee8f
gsakkas/rite
3118.ml
let l1 = [0; 0; 9; 9];; let l2 = [1; 0; 0; 2];; let x = (3, 3) :: (List.rev (List.combine l1 l2));; let clone x n = let rec helper x n acc = if n <= 0 then acc else helper x (n - 1) (x :: acc) in helper x n [];; let padZero l1 l2 = if (List.length l1) < (List.length l2) then ((List.append (clone 0 ((Li...
null
https://raw.githubusercontent.com/gsakkas/rite/958a0ad2460e15734447bc07bd181f5d35956d3b/data/sp14_min/3118.ml
ocaml
let l1 = [0; 0; 9; 9];; let l2 = [1; 0; 0; 2];; let x = (3, 3) :: (List.rev (List.combine l1 l2));; let clone x n = let rec helper x n acc = if n <= 0 then acc else helper x (n - 1) (x :: acc) in helper x n [];; let padZero l1 l2 = if (List.length l1) < (List.length l2) then ((List.append (clone 0 ((Li...
ff67c5303943889ce6629830e45d3cfaab7395c9eb50d932f9674c1eb5732f80
ekmett/suspension
Suspension.hs
# LANGUAGE GADTs , RankNTypes , DeriveTraversable , ViewPatterns , LambdaCase , KindSignatures , EmptyCase , PolyKinds # {-# OPTIONS_GHC -Wno-redundant-constraints #-} module Suspension where import Bound.Class import Control.Monad (ap) import Control.Monad.Trans.Class import Control.Category import Prelude hiding (id...
null
https://raw.githubusercontent.com/ekmett/suspension/b49deabec837838759999887a9a667b373227718/Suspension.hs
haskell
# OPTIONS_GHC -Wno-redundant-constraints # Susp (Env gab0 wbc0) fa0 >>= cfd0 = go fa0 gab0 wbc0 cfd0 where go :: Monad f => f a -> Q (E f) a b -> Q W b c -> (c -> Susp f d) -> Susp f d fmap cd0 (Susp (Env eab0 wbc0) fa0) = undefined -- go fa0 eab0 wbc0 cd0 where flushes out weakenings flushes out weakenings
# LANGUAGE GADTs , RankNTypes , DeriveTraversable , ViewPatterns , LambdaCase , KindSignatures , EmptyCase , PolyKinds # module Suspension where import Bound.Class import Control.Monad (ap) import Control.Monad.Trans.Class import Control.Category import Prelude hiding (id,(.),gcd) import Data.TASequence import Data.TA...
5dca6519a10b3074f3121913fb52e9a4876368b114740bb076256219c6879823
tmattio/dream-analytics
main.ml
(* Configure Dream Analytics. You can use a custom store here for example. *) let config = Dream_analytics.config ~endpoint:":8080/analytics" () (* This is your normal application, you need to add the [inject_script] middleware inject the analytics scripts in your HTML documents. *) let app = Dream.scope "/...
null
https://raw.githubusercontent.com/tmattio/dream-analytics/32a3e9eb2fca3e7102ad1d87ebc617c3bd717eaf/example/main.ml
ocaml
Configure Dream Analytics. You can use a custom store here for example. This is your normal application, you need to add the [inject_script] middleware inject the analytics scripts in your HTML documents. The analytics app. We scope it with a prefix so that it doesn't conflict with our application routes.
let config = Dream_analytics.config ~endpoint:":8080/analytics" () let app = Dream.scope "/" [ Dream_analytics.inject_script config ] [ Dream.get "/" (fun _ -> Dream.html "Good morning, world!") ] let analytics_app = Dream_analytics.scope config "/analytics" [] let () = Dream.run @@ Dream.logger ...
1563170d8f16fa98804070209e3c3f3ff58eb5ecca1c5849eeb9b9ec0c744cf9
orthecreedence/cl-sodium
sodium.lisp
(defpackage #:sodium (:use :cl :cffi) (:nicknames :cr)) (defpackage #:sodium.accessors (:use :cl :cffi :sodium) (:nicknames :cr-a)) (in-package :sodium) (eval-when (:load-toplevel) (unless (cffi:foreign-symbol-pointer "sodium_init") (define-foreign-library libsodium (:darwin (:or "libsodium.dylib...
null
https://raw.githubusercontent.com/orthecreedence/cl-sodium/aaef0a9f83abba8cda1d58c97c4086a5ae2a420e/sodium.lisp
lisp
(defpackage #:sodium (:use :cl :cffi) (:nicknames :cr)) (defpackage #:sodium.accessors (:use :cl :cffi :sodium) (:nicknames :cr-a)) (in-package :sodium) (eval-when (:load-toplevel) (unless (cffi:foreign-symbol-pointer "sodium_init") (define-foreign-library libsodium (:darwin (:or "libsodium.dylib...
1f0c29236b8b6063d8ae3c59308c6207082694840df6bf85c9320f8d981c32b7
janestreet/ecaml
value.mli
include Value_intf.Value
null
https://raw.githubusercontent.com/janestreet/ecaml/bd95b93799ccf809be26436b8379410c29282c4f/ecaml_value/src/value.mli
ocaml
include Value_intf.Value
a663c4a659b64ba29948e8079ac77ac4b66fb10b07921dff62859cc7ffa54d52
Elzair/nazghul
lost-halls.scm
;;---------------------------------------------------------------------------- Troll Cave ;; ;; Big underground complex; created by some civilized race, now a ruin ;; inhabited by trolls and other monsters. ;;---------------------------------------------------------------------------- ;; ---------------------------...
null
https://raw.githubusercontent.com/Elzair/nazghul/8f3a45ed6289cd9f469c4ff618d39366f2fbc1d8/worlds/haxima-1.001/lost-halls.scm
scheme
---------------------------------------------------------------------------- Big underground complex; created by some civilized race, now a ruin inhabited by trolls and other monsters. ---------------------------------------------------------------------------- ------------------------------------------------------...
Troll Cave (kern-mk-map 'm_lost_halls 64 39 pal_expanded (list )) (kern-mk-place (list (list (mk-generator t_dungeon_troll_generator) 11 6) (list (mk-generator t_dungeon_troll_generator) 28 28) (list (mk-generator t_dungeon_troll_generator) 38 21) (list (mk-generator t_dungeon_troll_generator) 4...
4eca74e96e3d150dba6dc2d9b2b6f04fa59f041d7902db7f2134b4d57535973c
fulcrologic/fulcro-rad-sql
query.clj
(ns com.fulcrologic.rad.database-adapters.sql.query "This namespace provides query builders for various concerns of a SQL database in a RAD application. The main concerns are: - Fetch queries (with joins) coming from resolvers - Building custom queries based of off RAD attributes - Persisting data based off ...
null
https://raw.githubusercontent.com/fulcrologic/fulcro-rad-sql/ff022ffb861330692e0997a5ad8af09605a683c4/src/main/com/fulcrologic/rad/database_adapters/sql/query.clj
clojure
:account/id :address/id account id account_addresses_account_id address id Type coercion is handled by the row builder
(ns com.fulcrologic.rad.database-adapters.sql.query "This namespace provides query builders for various concerns of a SQL database in a RAD application. The main concerns are: - Fetch queries (with joins) coming from resolvers - Building custom queries based of off RAD attributes - Persisting data based off ...
91ac697294d7e3d27b48082f1ca2a3d18cce69aed95807e95b96ffb1c6edb89c
reasonml-old/bs-node
nodeOptions.ml
type t external options : ?cwd:string -> ?encoding:string -> unit -> t = "" [@@bs.obj]
null
https://raw.githubusercontent.com/reasonml-old/bs-node/d1fd002b0391c6e4b153d90c38fe60e0ac800487/src/nodeOptions.ml
ocaml
type t external options : ?cwd:string -> ?encoding:string -> unit -> t = "" [@@bs.obj]
ff3cd7ec76c8ddc6965e78d26c9581c0e393d063715066eb432e1dc5ba60a05d
tisnik/clojure-examples
details.clj
{:aliases {"downgrade" "upgrade"}, :checkout-deps-shares [:source-paths :test-paths :resource-paths :compile-path "#'leiningen.core.classpath/checkout-deps-paths"], :clean-targets [:target-path], :compile-path "/home/ptisnovs/src/clojure/clojure-examples/kafka-stream-pipe-1/target/default/classes", :depen...
null
https://raw.githubusercontent.com/tisnik/clojure-examples/ad495c2443e542269cf4784fd5cfa62787cdff98/kafka-stream-pipe-1/doc/details.clj
clojure
{:aliases {"downgrade" "upgrade"}, :checkout-deps-shares [:source-paths :test-paths :resource-paths :compile-path "#'leiningen.core.classpath/checkout-deps-paths"], :clean-targets [:target-path], :compile-path "/home/ptisnovs/src/clojure/clojure-examples/kafka-stream-pipe-1/target/default/classes", :depen...
0941d4f84059a8c6df03f5d958ccca4110beaa5f85a9628dd8566e83d3d0ab99
llaisdy/liga
liga_writer.erl
-module(liga_writer). -export([write_model/2, write_model/3]). -export([read_model/1]). -spec write_model(map(), module()) -> ok. write_model(Model, ModuleName) -> write_model(Model, ModuleName, "."). -spec write_model(map(), module(), string()) -> ok. write_model(Model, ModuleName, Directory) -> file:write_f...
null
https://raw.githubusercontent.com/llaisdy/liga/82fe6a3288973fc9322d78f4ac4d686f91aabb76/src/liga_writer.erl
erlang
private
-module(liga_writer). -export([write_model/2, write_model/3]). -export([read_model/1]). -spec write_model(map(), module()) -> ok. write_model(Model, ModuleName) -> write_model(Model, ModuleName, "."). -spec write_model(map(), module(), string()) -> ok. write_model(Model, ModuleName, Directory) -> file:write_f...
d4281bfddf18d0fb81ec23dfbd4337f3607274aeab9d0a5101fc3b0295121e47
kupl/LearnML
original.ml
type aexp = | Const of int | Var of string | Power of (string * int) | Times of aexp list | Sum of aexp list let rec diff (f : aexp * string) : aexp = match f with | exp, str -> ( let e : aexp = exp in let s0 : string = str in let rec diffsum (l : aexp list) (str : string) : aexp list...
null
https://raw.githubusercontent.com/kupl/LearnML/c98ef2b95ef67e657b8158a2c504330e9cfb7700/result/cafe2/diff/sub104/original.ml
ocaml
type aexp = | Const of int | Var of string | Power of (string * int) | Times of aexp list | Sum of aexp list let rec diff (f : aexp * string) : aexp = match f with | exp, str -> ( let e : aexp = exp in let s0 : string = str in let rec diffsum (l : aexp list) (str : string) : aexp list...
136aa7f930cb516a7492d93527397e78c47f90e3f4940f8e9240acab0b05422f
backtracking/ocamlgraph
heap.ml
(**************************************************************************) (* *) : a generic graph library for OCaml Copyright ( C ) 2004 - 2010 , and (* ...
null
https://raw.githubusercontent.com/backtracking/ocamlgraph/1c028af097339ca8bc379436f7bd9477fa3a49cd/src/lib/heap.ml
ocaml
************************************************************************ This software is free software; you can redistribute it and/or described in file LICENSE....
: a generic graph library for OCaml Copyright ( C ) 2004 - 2010 , and modify it under the terms of the GNU Library General Public License version 2.1 , with the special exception on linking module ty...
94258b6d3c11594c163af5377cb295027d38ce0a52f00118ae31dd91b649f809
geophf/1HaskellADay
Relation.hs
# LANGUAGE MultiParamTypeClasses # # LANGUAGE FunctionalDependencies # {-# LANGUAGE RankNTypes #-} {-# LANGUAGE OverloadedStrings #-} module Data.Relation where -- defines relations as a "thing." So we have nodes, relations, and from those, -- we can model anything, right? ... well, constructively, that is. import D...
null
https://raw.githubusercontent.com/geophf/1HaskellADay/514792071226cd1e2ba7640af942667b85601006/exercises/HAD/Data/Relation.hs
haskell
# LANGUAGE RankNTypes # # LANGUAGE OverloadedStrings # defines relations as a "thing." So we have nodes, relations, and from those, we can model anything, right? ... well, constructively, that is. example: asNode (Nd f) = T.pack ("Node { name: '" ++ show f ++ "' }") constructs nodes and edges so you can now define...
# LANGUAGE MultiParamTypeClasses # # LANGUAGE FunctionalDependencies # module Data.Relation where import Data.Text (Text) import qualified Data.Text as T below import available via 1HaskellADay git repository class Node a where asNode :: a -> Text type Attribute a = (Text, a) weave :: [Text] -> Text weave ...
475198956a1b674e35519027d3bb81b6064deee90ecf654e973aacbdd29d3503
cloojure/demo-timbre
core.clj
(ns log-timbre.core (:require [clojure.java.io :as io] [taoensso.timbre :as timbre] ) (:gen-class)) ; Set up the name of the log output file and delete any contents from previous runs (the ; default is to continually append all runs to the file). (def log-file-name "log.txt") (io/delete-file log-file-n...
null
https://raw.githubusercontent.com/cloojure/demo-timbre/81fc57994f2ef0785a914bb4e7f99ce6afc3eb4c/src/log_timbre/core.clj
clojure
Set up the name of the log output file and delete any contents from previous runs (the default is to continually append all runs to the file). set up timbre aliases The default setup is simple console logging. We with to turn off console logging and turn on file logging to our chosen filename. Set the lowest-lev...
(ns log-timbre.core (:require [clojure.java.io :as io] [taoensso.timbre :as timbre] ) (:gen-class)) (def log-file-name "log.txt") (io/delete-file log-file-name :quiet) (timbre/set-config! [:appenders :standard-out :enabled?] false) (timbre/set-config! [:appenders :spit :enabled?] true)...
9f439137b9b8efce7c238ca2a86ee5f2520f013d73112bf4908b7787f07a9b20
tamarit/edd
ackermann_ok.erl
-module(ack_ok). -export([ack/2]). ack(0,N) -> N + 1; ack(M,0) -> ack(M-1, 1); ack(M,N) -> ack(M-1,ack(M,N-1)).
null
https://raw.githubusercontent.com/tamarit/edd/867f287efe951bec6a8213743a218b86e4f5bbf7/examples/ackermann/ackermann_ok.erl
erlang
-module(ack_ok). -export([ack/2]). ack(0,N) -> N + 1; ack(M,0) -> ack(M-1, 1); ack(M,N) -> ack(M-1,ack(M,N-1)).
6c39d30812469924cb6768b8c66fd03ba9fa8170b6e07738f714863c2b4ad8f3
hexlet-codebattle/battle_asserts
unpaired_socks.clj
(ns battle-asserts.issues.unpaired-socks (:require [clojure.test.check.generators :as gen])) (def level :easy) (def tags ["collections"]) (def description {:en "\"Where do the socks go?\" - Misha thought after another laundry. As usual, after the washing, he had a lot of socks left without pair,...
null
https://raw.githubusercontent.com/hexlet-codebattle/battle_asserts/bf9cf90cc7e3046fda5b1f3aaafa28d58ebc37fe/src/battle_asserts/issues/unpaired_socks.clj
clojure
(ns battle-asserts.issues.unpaired-socks (:require [clojure.test.check.generators :as gen])) (def level :easy) (def tags ["collections"]) (def description {:en "\"Where do the socks go?\" - Misha thought after another laundry. As usual, after the washing, he had a lot of socks left without pair,...
fc924c88bb5be07486c5a57226884aa77500665e3c0aaff515200f195092a89e
cloudant/fabric
fabric_db_info.erl
Copyright 2010 Cloudant % Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not % use this file except in compliance with the License. You may obtain a copy of % the License at % % -2.0 % % Unless required by applicable law or agreed to in writing, software distributed under the Lice...
null
https://raw.githubusercontent.com/cloudant/fabric/217d0b00bc4301bd834e76d902edf9c052e18b87/src/fabric_db_info.erl
erlang
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 WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitation...
Copyright 2010 Cloudant Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not distributed under the License is distributed on an " AS IS " BASIS , WITHOUT -module(fabric_db_info). -export([go/1]). -include("fabric.hrl"). -include_lib("mem3/include/mem3.hrl"). go(DbName) -> Shar...
e2ab6187b56a0e81b1d4b5095cc8e1476a9b2e41e8bb974f5c67ddf488668f28
skanev/playground
55.scm
SICP exercise 3.55 ; ; Define a procedure partial-sums that takes as argument a stream S and ; returns the stream whose elements are S₀, S₀ + S₁, S₀ + S₁ + S₂, ... . For example , ( partial - sums integers ) should be the stream 1 , 3 , 6 , 10 , 15 (define stream-take '()) (define the-empty-stream empty-stream) (d...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/sicp/03/55.scm
scheme
Define a procedure partial-sums that takes as argument a stream S and returns the stream whose elements are S₀, S₀ + S₁, S₀ + S₁ + S₂, ... . For
SICP exercise 3.55 example , ( partial - sums integers ) should be the stream 1 , 3 , 6 , 10 , 15 (define stream-take '()) (define the-empty-stream empty-stream) (define stream-null? stream-empty?) (define stream-car stream-first) (define stream-cdr stream-rest) (define (add-streams a b) (stream-map2 + a b)) (def...
342c0cddc32d4cd78e61eff91220a294624b94672649d1011c225210f27ed47a
russmatney/ralphie
outdated.clj
originally pulled from ' Inspired by an idea from @seancorfield on Clojurians Slack ' (ns ralphie.outdated (:require [clojure.edn :as edn] [babashka.process :refer [$ check]] [ralphie.config :as config] [clojure.string :as str] [defthing.defcom :as defcom :refer [defcom]])) (defn repo->deps [...
null
https://raw.githubusercontent.com/russmatney/ralphie/3b7af4a9ec2dc2b9e59036d67a66f365691f171d/src/ralphie/outdated.clj
clojure
originally pulled from ' Inspired by an idea from @seancorfield on Clojurians Slack ' (ns ralphie.outdated (:require [clojure.edn :as edn] [babashka.process :refer [$ check]] [ralphie.config :as config] [clojure.string :as str] [defthing.defcom :as defcom :refer [defcom]])) (defn repo->deps [...
0d7e715faaeb8a214936fe15f4453d90b69316799e2c36cc9392e5c52dead135
kadena-io/chainweaver
AppCfg.hs
# LANGUAGE NumDecimals # | AppCfg is used to configure the app and pass things in and out of reflex module Frontend.AppCfg where import Control.Concurrent (MVar, forkIO, newEmptyMVar, putMVar, takeMVar, threadDelay, tryReadMVar) import Control.Monad (forever) import Control.Monad.IO.Class (MonadIO, liftIO) import Da...
null
https://raw.githubusercontent.com/kadena-io/chainweaver/3a81f8dbe0fe9b061c710d0e8413b5b09e360319/frontend/src/Frontend/AppCfg.hs
haskell
^ Request to change the password. Performs validation and changes passwords if validation passes. (Old pass, new pass, repeat pass). ^ Update all keys using the given function ^ Request to export the wallet to the user as a file. Password must match storage. The types of files targeted by the open file dialog. Use...
# LANGUAGE NumDecimals # | AppCfg is used to configure the app and pass things in and out of reflex module Frontend.AppCfg where import Control.Concurrent (MVar, forkIO, newEmptyMVar, putMVar, takeMVar, threadDelay, tryReadMVar) import Control.Monad (forever) import Control.Monad.IO.Class (MonadIO, liftIO) import Da...
a6690c86a6cb7c6ebb5551cdf35a3773cb9ff8e6c113e9f38eee098eb86f4904
pfdietz/ansi-test
loop.lsp
;-*- Mode: Lisp -*- Author : Created : Fri Oct 25 18:48:59 2002 ;;;; Contains: Tests of LOOP ;;; Simple loops (deftest sloop.1 (loop (return 'a)) a) (deftest sloop.2 (loop (return (values)))) (deftest sloop.3 (loop (return (values 'a 'b 'c 'd))) a b c d) (deftest sloop.4 (block nil ...
null
https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/iteration/loop.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests of LOOP Simple loops Loop errors
Author : Created : Fri Oct 25 18:48:59 2002 (deftest sloop.1 (loop (return 'a)) a) (deftest sloop.2 (loop (return (values)))) (deftest sloop.3 (loop (return (values 'a 'b 'c 'd))) a b c d) (deftest sloop.4 (block nil (loop (return 'a)) 'b) b) (deftest sloop.5 (let ((i 0) (x nil...
621b0d77945daaae3428ba124921385f25de9dd252c6ffc105ae4bd205babd31
haskell-tools/haskell-tools
Test.hs
module Control.Instances.Test where import Control.Instances.Morph import Control.Monad.Identity import Control.Monad.Trans.Maybe import Control.Monad.Trans.List import Control.Monad.State test1 :: Identity a -> IO a test1 = morph test2 :: Maybe a -> [a] test2 = morph test3 :: Maybe a -> ListT IO a test3 = morph ...
null
https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/refactor/examples/InstanceControl/Control/Instances/Test.hs
haskell
module Control.Instances.Test where import Control.Instances.Morph import Control.Monad.Identity import Control.Monad.Trans.Maybe import Control.Monad.Trans.List import Control.Monad.State test1 :: Identity a -> IO a test1 = morph test2 :: Maybe a -> [a] test2 = morph test3 :: Maybe a -> ListT IO a test3 = morph ...
e2c3c64327a9112c041fa5f931858f432f03ec3da5135fed509b7295b6de17a0
namachan10777/folivora
patch.ml
open Core open Scad_ml.Util module M = Scad_ml.Model type screw_conf_t = { out_r: float ; in_r: float ; insert_r: float ; top_h: float ; p: Scad_ml.Math.t ; a: Scad_ml.Math.t } let insert_l = 3.3 let extent = 2. type patch_t = Screw of screw_conf_t type patch_target_t = Bottom | Top let ap...
null
https://raw.githubusercontent.com/namachan10777/folivora/f752c45f1a4ca1485ebd5488ffef29c704ca06e5/model/lib/patch.ml
ocaml
open Core open Scad_ml.Util module M = Scad_ml.Model type screw_conf_t = { out_r: float ; in_r: float ; insert_r: float ; top_h: float ; p: Scad_ml.Math.t ; a: Scad_ml.Math.t } let insert_l = 3.3 let extent = 2. type patch_t = Screw of screw_conf_t type patch_target_t = Bottom | Top let ap...
66a61bbe5a2c69a3af6fdacb1f641a397d3eb48cee6f2e36d42232d40c3a17e1
Yuras/pdf-toolbox
Info.hs
{-# LANGUAGE OverloadedStrings #-} -- | Document info dictionary module Pdf.Document.Info ( Info, infoTitle, infoAuthor, infoSubject, infoKeywords, infoCreator, infoProducer, ) where import Pdf.Core.Exception import Pdf.Core.Util import Pdf.Core.Object.Util import Pdf.Document.Pdf import Pdf.Document....
null
https://raw.githubusercontent.com/Yuras/pdf-toolbox/3352169992b051211e090a792d5e1e8a451aef69/document/lib/Pdf/Document/Info.hs
haskell
# LANGUAGE OverloadedStrings # | Document info dictionary | Document title | The name of the person who created the document | The subject of the document | Keywords associated with the document | The name of the application that created the original document | The name of the application that converted the docu...
module Pdf.Document.Info ( Info, infoTitle, infoAuthor, infoSubject, infoKeywords, infoCreator, infoProducer, ) where import Pdf.Core.Exception import Pdf.Core.Util import Pdf.Core.Object.Util import Pdf.Document.Pdf import Pdf.Document.Internal.Types import Pdf.Document.Internal.Util import Data.Tex...
852451fb76fc4b880eb3867639e41d8e94f2e4d3e4cce1f372a6d922e2825f9d
reborg/clojure-essential-reference
1.clj
(reduced [x]) (reduced? [x]) (ensure-reduced [x]) (unreduced [x])
null
https://raw.githubusercontent.com/reborg/clojure-essential-reference/c37fa19d45dd52b2995a191e3e96f0ebdc3f6d69/ReducersandTransducers/reduced%2Creduced%3F%2Censure-reduced%2Cunreduced/1.clj
clojure
(reduced [x]) (reduced? [x]) (ensure-reduced [x]) (unreduced [x])
4331066d80ed14b92b995ebf5a703ba1e6b2cc7dd773fd96df57abeeec8619ff
ghcjs/ghcjs-dom
AnimationEvent.hs
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} module GHCJS.DOM.JSFFI.Generated.AnimationEvent (js_newAnimationEvent, newAnimationEvent, js_getAnimationName, g...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-dom/749963557d878d866be2d0184079836f367dd0ea/ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/AnimationEvent.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # module GHCJS.DOM.JSFFI.Generated.AnimationEvent (js_newAnimationEvent, newAnimationEvent, js_getAnimationName, getAnimationName, js_getElapsedTime, getElapsedTime, AnimationEvent(..), gTypeAnimationEvent...
5c5c2f12ad570d359a810dd777cca7046ae89bafc21516b19b70c02e0989469f
biocaml/phylogenetics
TKF91.mli
module Make_simulator (A : Alphabet.S_int) (BI : Simulator.Branch_info) : sig type site = Site of (A.t, (A.t * int) option, branch_info) Tree.t and branch_info = { original_branch_info : BI.t ; length : float ; insertions : (A.t, (A.t * int) option, branch_info) Tree.branch list } val site_...
null
https://raw.githubusercontent.com/biocaml/phylogenetics/9be0a21832740d1f187db71097d98c6b0babfa54/lib/TKF91.mli
ocaml
module Make_simulator (A : Alphabet.S_int) (BI : Simulator.Branch_info) : sig type site = Site of (A.t, (A.t * int) option, branch_info) Tree.t and branch_info = { original_branch_info : BI.t ; length : float ; insertions : (A.t, (A.t * int) option, branch_info) Tree.branch list } val site_...
3ca1695f3f0bdf64c594bc5a5eb0d36a63ebae2c455e37cdbc61db62844cb7ae
returntocorp/semgrep
Bash_to_generic.mli
Convert Bash - specific AST to generic AST . Convert Bash-specific AST to generic AST. *) Convert a target program to the generic AST . May raise AST_generic . Error . Convert a target program to the generic AST. May raise AST_generic.Error. *) val program : AST_bash.program -> AST_generic....
null
https://raw.githubusercontent.com/returntocorp/semgrep/6848073c6220aaffeb9b41f4f1657cb6d84a1311/languages/bash/generic/Bash_to_generic.mli
ocaml
internal function used also in Dockerfile_to_generic
Convert Bash - specific AST to generic AST . Convert Bash-specific AST to generic AST. *) Convert a target program to the generic AST . May raise AST_generic . Error . Convert a target program to the generic AST. May raise AST_generic.Error. *) val program : AST_bash.program -> AST_generic....