_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
b407f32b35c8ef2ec36234ccf00672f718f27ed3b7515fd9c1c1ad6c24ea77f4
justinmeiners/exercises
4_36.scm
; the call stack grows with the range of ; values that you are searching over ; to get to the high the function must make that ; many recursive calls
null
https://raw.githubusercontent.com/justinmeiners/exercises/9491bc16925eae12e048ccd3f424b870ebdc73aa/sicp/4/4_36.scm
scheme
the call stack grows with the range of values that you are searching over to get to the high the function must make that many recursive calls
a5736be2236f872e532d1d0561dc068942bb271794da0a17374e6bc80c6ad4ea
andrzejsliwa/rebar_proper_plugin
example.erl
-module(example). -export([is_empty/1, size/1, new/0, push/2, pop/1, safe_pop/1, prop_push_pop/0]). -export_type([stack/1]). -opaque stack(T) :: {non_neg_integer(),[T]}. %% NOTE: You don't need to include the proper header if no properties are %% declared in the module. -include_lib("proper/include/proper.hrl"). ...
null
https://raw.githubusercontent.com/andrzejsliwa/rebar_proper_plugin/d30e9c69f49066f7ee813a990b7a791c34287626/example/src/example.erl
erlang
NOTE: You don't need to include the proper header if no properties are declared in the module. When this would mean singleton variables, use variables starting with an underscore. ------------------------------------------------------------------------------ Properties ------------------------------------------...
-module(example). -export([is_empty/1, size/1, new/0, push/2, pop/1, safe_pop/1, prop_push_pop/0]). -export_type([stack/1]). -opaque stack(T) :: {non_neg_integer(),[T]}. -include_lib("proper/include/proper.hrl"). NOTE : Every instance of the ADT in a spec must have variables as parameters . -spec is_empty(stack(_T...
502bb7d1a2850e07445879dcc67400f3b7a5a92afbc6622a0a2d1f613e26c890
goldfirere/units
Math.hs
----------------------------------------------------------------------------- -- | -- Module : Data.Constants.Math Copyright : ( C ) 2014 -- License : BSD-style (see LICENSE) Maintainer : ( ) -- Stability : experimental -- Portability : non-portable -- Approximates mathematical consta...
null
https://raw.githubusercontent.com/goldfirere/units/4941c3b4325783ad3c5b6486231f395279d8511e/units-defs/Data/Constants/Math.hs
haskell
--------------------------------------------------------------------------- | Module : Data.Constants.Math License : BSD-style (see LICENSE) Stability : experimental Portability : non-portable ---------------------------------------------------------------------------
Copyright : ( C ) 2014 Maintainer : ( ) Approximates mathematical constants as ' Rational 's module Data.Constants.Math where piR :: Rational piR = 3.1415926535897932384626433832795028841971693993751058209749445923078164 eR :: Rational eR = 2.718281828459045235360287471352662497757247093699959574...
5cdc023257728293111670507a0df3cfbd97f514afe53406b20b6664eb1eb208
nekodjin/HasKalc
Checker.hs
module Parser.Checker where import Lexer.Lexer (tokens) import Lexer.Token (Token (..)) import Parser.Expression (Expression) import Parser.Operator (Operator) -- Verify that all parentheses are matched checkParens :: [Token] -> Bool checkParens = checkParens' 0 ...
null
https://raw.githubusercontent.com/nekodjin/HasKalc/2198b16d9d07ff060954a4f3f88991a5da814f97/src/Parser/Checker.hs
haskell
Verify that all parentheses are matched Check whether the list contains any illegal tokens
module Parser.Checker where import Lexer.Lexer (tokens) import Lexer.Token (Token (..)) import Parser.Expression (Expression) import Parser.Operator (Operator) checkParens :: [Token] -> Bool checkParens = checkParens' 0 where checkParens' :: Integer ->...
a0b307de431160e6f72acbfe9390b035612c1572ef3d36c233e4e384ac91efc8
avsm/eeww
reloadgen.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/avsm/eeww/23ca8b36127b337512e13c6fb8e86b3a7254d4f9/boot/ocaml/asmcomp/reloadgen.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 Misc open Reg open Mach let insert_move src dst next = if src.loc = dst.loc then next else i...
42831a85dc3af7df5e0d51ae3805222c3761c2215b29f24b39713571e976acce
johnridesabike/acutis
render.mli
(**************************************************************************) (* *) Copyright ( c ) 2022 . (* *) This Source Code For...
null
https://raw.githubusercontent.com/johnridesabike/acutis/5c352a4892bee60b9bdc7e60ff57f2ddb950d6e1/lib/render.mli
ocaml
************************************************************************ ****************************...
Copyright ( c ) 2022 . 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 type MONAD = sig type 'a t val return : ...
1974c52f54367d3f09f7e3b076a70d52920d0df68abef1e22b4b206c3cacd456
chiroptical/book-of-monads
Spec.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE FlexibleInstances # import Hedgehog import Hedgehog.Classes import qualified Hedgehog.Gen as Gen import qualified Hedgehog.Range as Range import Control.Monad ( void ...
null
https://raw.githubusercontent.com/chiroptical/book-of-monads/c2eff1c67a8958b28cfd2001d652f8b68e7c84df/chapter5/test/Spec.hs
haskell
# LANGUAGE OverloadedStrings # prop_reverse :: Property prop_reverse = property $ do xs <- forAll $ Gen.list (Range.linear 0 100) Gen.alpha reverse (reverse xs) === xs main :: IO () main = Need to implement genEitherFunction We can generalize the properties by taking in the function generation generator Id...
# LANGUAGE FlexibleInstances # import Hedgehog import Hedgehog.Classes import qualified Hedgehog.Gen as Gen import qualified Hedgehog.Range as Range import Control.Monad ( void , join ...
87efd97da0db6757821a7b1bfc8691dd93af607013524af7ab6f3bf1fe03284c
input-output-hk/cardano-sl
logs.hs
#!/usr/bin/env stack -- stack runghc --package universum --package lens --package lens-aeson --package time --package cassava --package split --package text --package fmt --package directory --package filepath --package megaparsec # LANGUAGE DeriveGeneric # {-# LANGUAGE GADTs #-} {-# LANGUAGE MultiWay...
null
https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/scripts/analyze/logs.hs
haskell
stack runghc --package universum --package lens --package lens-aeson --package time --package cassava --package split --package text --package fmt --package directory --package filepath --package megaparsec # LANGUAGE GADTs # # LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # # LANGUAGE ViewPatt...
#!/usr/bin/env stack # LANGUAGE DeriveGeneric # # LANGUAGE NoImplicitPrelude # # LANGUAGE RecordWildCards # # LANGUAGE TupleSections # # LANGUAGE TypeApplications # import Universum import Unsafe import qualified Control.Lens as L import qualified Data.Aeson.Lens as L import qualif...
5c44db7a7d11e3ddf15835d2cfa2db2676deeab226351d4dd70965885f7d88a3
glguy/ssh-hans
Protocol.hs
# LANGUAGE CPP # {-# LANGUAGE BangPatterns #-} {-# LANGUAGE OverloadedStrings #-} module Network.SSH.Protocol ( getBoolean, putBoolean , getMpInt, putMpInt, os2i, i2os , getUnsigned, putUnsigned , getString, putString , getNameList, putNameList ) where import Data.Bits ( shiftL, shiftR )...
null
https://raw.githubusercontent.com/glguy/ssh-hans/25d05366d4655eb249bfb13f9a6d473b49885bd9/src/Network/SSH/Protocol.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE OverloadedStrings # Rendering ------------------------------------------------------------------- commas Parsing --------------------------------------------------------------------- The bytes are treated as a big-endian, twos-complement representation with the high-bit of the ...
# LANGUAGE CPP # module Network.SSH.Protocol ( getBoolean, putBoolean , getMpInt, putMpInt, os2i, i2os , getUnsigned, putUnsigned , getString, putString , getNameList, putNameList ) where import Data.Bits ( shiftL, shiftR ) import Data.ByteString.Short (ShortByteString, fromSho...
df59396a8b01d65e94694843f8b1b992bc1e0d856abd03113e916f3a7cdeda3e
alan-j-hu/ocaml-plist-xml
test_common.ml
module type IO = sig include Plist_xml.S val opendir : string -> Unix.dir_handle io val readdir : Unix.dir_handle -> string io val closedir : Unix.dir_handle -> unit io val bind : 'a io -> ('a -> 'b io) -> 'b io val return : 'a -> 'a io val with_stream : string -> ((char, s) Markup.stream -> 'a io) -> ...
null
https://raw.githubusercontent.com/alan-j-hu/ocaml-plist-xml/405f3ae768ca856205579ab4fc7eb7165276795d/test/test_common.ml
ocaml
module type IO = sig include Plist_xml.S val opendir : string -> Unix.dir_handle io val readdir : Unix.dir_handle -> string io val closedir : Unix.dir_handle -> unit io val bind : 'a io -> ('a -> 'b io) -> 'b io val return : 'a -> 'a io val with_stream : string -> ((char, s) Markup.stream -> 'a io) -> ...
313053d2b72950c1d3e0e3e9e55103b246a7fdeca23baa837bd524010bc4ad06
achirkin/qua-view
Http.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE FlexibleContexts # # LANGUAGE ExistentialQuantification # # OPTIONS_GHC -fno - warn - orphans # module Commons.Http ( httpGet , httpGetNow, httpGetNow' , httpGetNowOrOnUpdate , httpPut , httpPost ) where import Foreign.JavaScript.TH import GHCJS.DO...
null
https://raw.githubusercontent.com/achirkin/qua-view/62626ead828889a1c7ef1fdba4d84324eb5420b3/src/Commons/Http.hs
haskell
# LANGUAGE OverloadedStrings # | HTTP GET upon `Event a` | HTTP GET immediately | make HTTP request immediately | Create a "POST" request from an URL and thing with a JSON representation | Create a "PUT" request from an URL and thing with a JSON representation
# LANGUAGE FlexibleContexts # # LANGUAGE ExistentialQuantification # # OPTIONS_GHC -fno - warn - orphans # module Commons.Http ( httpGet , httpGetNow, httpGetNow' , httpGetNowOrOnUpdate , httpPut , httpPost ) where import Foreign.JavaScript.TH import GHCJS.DOM.Types hiding (Event, Text) import...
59190374ccb18fa67f36fd857ff45d9448093b700cd7fbdc17bf27a1388a7e1e
emina/rosette
errors.rkt
#lang rosette (provide raise-arity-error raise-operator-arity-error raise-no-common-type-error raise-bad-type-error raise-bad-form-error) (define (raise-arity-error what expected expr [subexpr #f]) (raise-syntax-error #f (format "wrong number of ~a (expected ~a)" what expected) expr subexpr)) (...
null
https://raw.githubusercontent.com/emina/rosette/a64e2bccfe5876c5daaf4a17c5a28a49e2fbd501/sdsl/synthcl/lang/errors.rkt
racket
#lang rosette (provide raise-arity-error raise-operator-arity-error raise-no-common-type-error raise-bad-type-error raise-bad-form-error) (define (raise-arity-error what expected expr [subexpr #f]) (raise-syntax-error #f (format "wrong number of ~a (expected ~a)" what expected) expr subexpr)) (...
3bb068ba9748ee04b0308f05569a6d44814008bfdce0fffbb05e21834a3c7056
emina/rosette
cmd.rkt
#lang racket (require (only-in "smtlib2.rkt" assert minimize maximize check-sat get-model get-unsat-core true false) "env.rkt" "enc.rkt" "dec.rkt" (only-in "../../base/core/term.rkt" constant? term-type solvable-default) (only-in "../../base/core/function....
null
https://raw.githubusercontent.com/emina/rosette/a64e2bccfe5876c5daaf4a17c5a28a49e2fbd501/rosette/solver/smt/cmd.rkt
racket
Given an encoding environment and a list of asserts, minimization objectives, with respect to the given environment, to current-output-port. values that appear in the given assertions and that are already bound in the environment. The environment will be augmented, if needed, with additional declarations and ...
#lang racket (require (only-in "smtlib2.rkt" assert minimize maximize check-sat get-model get-unsat-core true false) "env.rkt" "enc.rkt" "dec.rkt" (only-in "../../base/core/term.rkt" constant? term-type solvable-default) (only-in "../../base/core/function....
25c98b363cb7009944ad6cc9ee5adf7490d349e2d13250561ff543f4c5cf177b
essiene/erlami
test_amisym_eventbus.erl
-module(test_amisym_eventbus). -include_lib("eunit/include/eunit.hrl"). amisym_eventbus_new_test() -> ?assertEqual({ok, already_running}, amisym_eventbus:start()), Result = whereis(amisym_eventbus), ?assert(Result =/= undefined). amisym_eventbus_connect_test() -> amisym_eventbus:start(), amisym_e...
null
https://raw.githubusercontent.com/essiene/erlami/c566f229c8bb1debe3c468c7124551b912bd6b1f/tests/test_amisym_eventbus.erl
erlang
-module(test_amisym_eventbus). -include_lib("eunit/include/eunit.hrl"). amisym_eventbus_new_test() -> ?assertEqual({ok, already_running}, amisym_eventbus:start()), Result = whereis(amisym_eventbus), ?assert(Result =/= undefined). amisym_eventbus_connect_test() -> amisym_eventbus:start(), amisym_e...
9e4c89eb4f97e3b0f11979a1768386900180086c3c4ce90dc0433fce1a32f9eb
ilya-klyuchnikov/henk
TermSupport.hs
module TermSupport where import HenkAS -------------------------------------------------------------------------------- -- Rules -------------------------------------------------------------------------------- data DeltaRule = MkDeltaRule TVariable Expr deriving (Show,Eq) type DeltaRules = [DeltaRule] mer...
null
https://raw.githubusercontent.com/ilya-klyuchnikov/henk/d8dc0b4172a24e768d25907d14ef83c0a330ce82/src/TermSupport.hs
haskell
------------------------------------------------------------------------------ Rules ------------------------------------------------------------------------------ priority. ------------------------------------------------------------------------------ Investigating the Redex Structure -------------------------------...
module TermSupport where import HenkAS data DeltaRule = MkDeltaRule TVariable Expr deriving (Show,Eq) type DeltaRules = [DeltaRule] mergeDeltaRules merges two rulessets , where DeltaRules in the first set have higher mergeDeltaRules :: DeltaRules -> DeltaRules -> DeltaRules mergeDeltaRules r1 r2 = r1 ++ ...
951a74b60ee6d82b6df4290c5b1dd92f88aa19745ab0d3f5cb02471e67fcca2d
obsidiansystems/rhyolite
Types.hs
{-# LANGUAGE ConstraintKinds #-} # LANGUAGE TypeFamilies # module Rhyolite.Vessel.Types where import Data.Vessel.Class import Data.Functor.Identity import Data.Functor.Const import Data.Patch (Group) import Reflex.Query.Class import Rhyolite.Vessel.AuthenticatedV import Rhyolite.Vessel.ErrorV import Rhyolite.Vessel....
null
https://raw.githubusercontent.com/obsidiansystems/rhyolite/43b4b040d3a370c6ec114b7b6001ddb9f8d42ce8/common/Rhyolite/Vessel/Types.hs
haskell
# LANGUAGE ConstraintKinds # | The full view selector which has a public, private, and personal part. | The full view selector from the point of view of a particular authenticated identity which may or may not be valid; the result of a query can fail.
# LANGUAGE TypeFamilies # module Rhyolite.Vessel.Types where import Data.Vessel.Class import Data.Functor.Identity import Data.Functor.Const import Data.Patch (Group) import Reflex.Query.Class import Rhyolite.Vessel.AuthenticatedV import Rhyolite.Vessel.ErrorV import Rhyolite.Vessel.AuthMapV type RhyoliteAuthViewC ...
d979ea744d159e40650d672e07d9904b379df3a4441ef1bbe8118c63a47ea0e8
Ivana-/fhir-face
routes.cljs
(ns fhir-face.routes (:require-macros [secretary.core :refer [defroute]]) (:import goog.History) (:require [secretary.core :as secretary] [goog.events :as gevents] [goog.history.EventType :as EventType] [re-frame.core :as re-frame] [fhir-face.model :as model])) (re-frame/reg-event-db ::set-active...
null
https://raw.githubusercontent.com/Ivana-/fhir-face/0910012395de3d877a23a17a5b8d2d5e578ab256/src/fhir_face/routes.cljs
clojure
-------------------- define routes here must be at the end, cause routes matches by order :blank --------------------
(ns fhir-face.routes (:require-macros [secretary.core :refer [defroute]]) (:import goog.History) (:require [secretary.core :as secretary] [goog.events :as gevents] [goog.history.EventType :as EventType] [re-frame.core :as re-frame] [fhir-face.model :as model])) (re-frame/reg-event-db ::set-active...
25866fdac2757c1a73e410654346a9f2c09f75c2d8259fb13c8fbe4c38bf8e04
Ball/ErlangMud
create_tables.erl
-module(create_tables). -compile(export_all). -include("records.hrl"). create_schema() -> mnesia:create_schema([node()]). delete_schema() -> mnesia:delete_schema([node()]). drop_tables() -> mnesia:delete_table(player), mnesia:delete_table(room). init_tables() -> mnesia:create_table(player, [{disc_copies,...
null
https://raw.githubusercontent.com/Ball/ErlangMud/13f1b68c046e470a26ebbfaf09077d209e572296/src/create_tables.erl
erlang
-module(create_tables). -compile(export_all). -include("records.hrl"). create_schema() -> mnesia:create_schema([node()]). delete_schema() -> mnesia:delete_schema([node()]). drop_tables() -> mnesia:delete_table(player), mnesia:delete_table(room). init_tables() -> mnesia:create_table(player, [{disc_copies,...
7ce62c4be4747dff72db5d6ad485c6e418cfbc475b1769dccd742690cd10f6f8
ucsd-progsys/nate
clflags.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/utils/clflags.mli
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 2005 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : clflags.mli , v 1.1 2005/10/2...
69f3d218cab0c539a54f9852373e65d6a3bf571beb82595cc70f49c1d190f6f8
OCamlPro/freeton_wallet
commandSwitchTo.ml
(**************************************************************************) (* *) Copyright ( c ) 2021 OCamlPro SAS (* *) (* All right...
null
https://raw.githubusercontent.com/OCamlPro/freeton_wallet/aec38be4d7adc6d93e706b8098b5880820d28863/src/freeton_wallet_lib/commandSwitchTo.ml
ocaml
************************************************************************ All rights reserved. This file is distributed u...
Copyright ( c ) 2021 OCamlPro SAS Public License version 2.1 , with the special exception on linking open Ezcmd.V2 open EZCMD.TYPES open Types let action ~switch = match switch with | None -> Error.raise "You must provide the new switch" | Some net...
ef994ac165ebdd28bdb61e5aabf98edcae87916e41701ac1b8cd497d5b5841a7
dbuenzli/uucp
uucp_tmapbool.ml
--------------------------------------------------------------------------- Copyright ( c ) 2014 The uucp programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) ...
null
https://raw.githubusercontent.com/dbuenzli/uucp/09d2186c0828465dbe37ed976c8d8ab7a5e7eeed/src/uucp_tmapbool.ml
ocaml
uchar to bool trie maps default value. / 8 / 8
--------------------------------------------------------------------------- Copyright ( c ) 2014 The uucp programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) ...
faf7faae27ce5e125c930dd0f39eebba4b44ed6c22f2343041dcf3b67963d83a
esl/MongooseIM
eldap_filter.erl
%%%---------------------------------------------------------------------- %%% File: eldap_filter.erl %%% Purpose: Converts String Representation of LDAP Search Filter ( RFC 2254 ) to 's representation of filter Author : < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2013 Process...
null
https://raw.githubusercontent.com/esl/MongooseIM/dda03c16c83f5ea9f5c9b87c3b36c989813b9250/src/eldap_filter.erl
erlang
---------------------------------------------------------------------- File: eldap_filter.erl Purpose: Converts String Representation of This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be usefu...
LDAP Search Filter ( RFC 2254 ) to 's representation of filter Author : < > ejabberd , Copyright ( C ) 2002 - 2013 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have re...
01cf5722514c58205df49c7265d7cc64557a6e1b6003c0cafc18e59640b2db9c
haslab/HAAP
RunT3.hs
module Main where import LI11718 import qualified Tarefa3_2017li1g186 as T3 import System.Environment import Text.Read main = do args <- getArgs case args of ["movimenta"] -> do str <- getContents let params = readMaybe str case params of Nothing ->...
null
https://raw.githubusercontent.com/haslab/HAAP/5acf9efaf0e5f6cba1c2482e51bda703f405a86f/examples/plab/svn/2017li1g186/src/RunT3.hs
haskell
module Main where import LI11718 import qualified Tarefa3_2017li1g186 as T3 import System.Environment import Text.Read main = do args <- getArgs case args of ["movimenta"] -> do str <- getContents let params = readMaybe str case params of Nothing ->...
b29ebd4e0e7b7a3c18c4ff1b350909bcfe3605d3c32a518e0ffb8b8851f111d9
crisptrutski/matchbox
reagent.cljs
(ns matchbox-reagent.dice.reagent (:require [reagent.core :as reagent :refer [atom wrap]] [matchbox.core :as m] [matchbox.atom :as matom] [matchbox.reagent :as r] [matchbox-reagent.dice.core :as dice] [matchbox-reagent.common :refer [get-ref ordered-list]]))...
null
https://raw.githubusercontent.com/crisptrutski/matchbox/5bb9ba96f5df01bce302a8232f6cddd9d64a1d71/examples/src/cljs/matchbox_reagent/dice/reagent.cljs
clojure
state actions views unique key to disambiguate for react
(ns matchbox-reagent.dice.reagent (:require [reagent.core :as reagent :refer [atom wrap]] [matchbox.core :as m] [matchbox.atom :as matom] [matchbox.reagent :as r] [matchbox-reagent.dice.core :as dice] [matchbox-reagent.common :refer [get-ref ordered-list]]))...
0f11a173f8ee319e6dd9cc637ff2b7251f64a5c735dd099c1dde0d45fae60577
yetibot/core
eval.clj
(ns yetibot.core.commands.eval (:require [yetibot.core.models.admin :refer [user-is-admin?]] [clojure.repl :refer :all] [clojure.pprint :refer [*print-right-margin* pprint]] [yetibot.core.hooks :refer [cmd-hook]] [clojure.string :refer [split]])) (def disallow-gif "-content/gallery/no/cowboy-shak...
null
https://raw.githubusercontent.com/yetibot/core/e35cc772622e91aec3ad7f411a99fff09acbd3f9/src/yetibot/core/commands/eval.clj
clojure
(ns yetibot.core.commands.eval (:require [yetibot.core.models.admin :refer [user-is-admin?]] [clojure.repl :refer :all] [clojure.pprint :refer [*print-right-margin* pprint]] [yetibot.core.hooks :refer [cmd-hook]] [clojure.string :refer [split]])) (def disallow-gif "-content/gallery/no/cowboy-shak...
e0a764d38161632b0310ecb5a23ad2d01472818d20fe4ec5bee7d662cde75577
ztellman/lamina
manifold.clj
(ns lamina.test.manifold (:use [clojure test] [lamina core]) (:require [manifold.stream :as s] [manifold.deferred :as d])) (defn validate-put-take [in out] (let [d (s/put! in 1)] (is (= 1 @(s/take! out))) (is (= true @d)))) (deftest test-manifold-interop (let [c (channel) in (s...
null
https://raw.githubusercontent.com/ztellman/lamina/07c3fb84fdb3f4a4892c0bdbe3abf28788bdeb29/test/lamina/test/manifold.clj
clojure
(ns lamina.test.manifold (:use [clojure test] [lamina core]) (:require [manifold.stream :as s] [manifold.deferred :as d])) (defn validate-put-take [in out] (let [d (s/put! in 1)] (is (= 1 @(s/take! out))) (is (= true @d)))) (deftest test-manifold-interop (let [c (channel) in (s...
2611119554c6dd7b3f9e2016213bf75edf3cf5c53b58770c5242afb1c48cd7c3
naproche/naproche
StructureTree.hs
-- | Authors : ( 2020 ) -- -- TODO: Add description. # LANGUAGE RecordWildCards # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # module SAD.Structures.StructureTree where import Data.Text.Lazy (Text) import Data.Text.Lazy qualified as T import Data.Tree import Data.Text.Lazy qualified as Text ...
null
https://raw.githubusercontent.com/naproche/naproche/6284a64b4b84eaa53dd0eb7ecb39737fb9135a0d/src/SAD/Structures/StructureTree.hs
haskell
| TODO: Add description. # LANGUAGE OverloadedStrings # TODO: By removing the de-brujin indices, we might end up with wrong bindings of variables. TODO: Statement after fails to translate
Authors : ( 2020 ) # LANGUAGE RecordWildCards # # LANGUAGE PatternSynonyms # module SAD.Structures.StructureTree where import Data.Text.Lazy (Text) import Data.Text.Lazy qualified as T import Data.Tree import Data.Text.Lazy qualified as Text import SAD.Data.Formula as Formula import SAD.Structures.Formula qual...
34c55c0e812fdcbfd9979055c967f8114047df83c02a2d2d59a7d706d97f4152
uw-unsat/serval-sosp19
info.rkt
#lang info (define collection 'use-pkg-name) (define scribblings '(("doc/guide/scribble/serval.scrbl" (multi-page) (experimental)))) (define raco-commands '(("serval" serval/bin/serval "Run serval verification" #f)))
null
https://raw.githubusercontent.com/uw-unsat/serval-sosp19/175c42660fad84b44e4c9f6f723fd3c9450d65d4/serval/serval/info.rkt
racket
#lang info (define collection 'use-pkg-name) (define scribblings '(("doc/guide/scribble/serval.scrbl" (multi-page) (experimental)))) (define raco-commands '(("serval" serval/bin/serval "Run serval verification" #f)))
c1214bfeba2b6a59db2634a62af83dc2484568c922dbbf5f07b467b3192f8d44
huangjs/cl
zbiry.lisp
;;; Compiled by f2cl version: ( " f2cl1.l , v 1.215 2009/04/07 22:05:21 rtoy Exp $ " " f2cl2.l , v 1.37 2008/02/22 22:19:33 rtoy Exp $ " " f2cl3.l , v 1.6 2008/02/22 22:19:33 rtoy Exp $ " " f2cl4.l , v 1.7 2008/02/22 22:19:34 rtoy Exp $ " " f2cl5.l , v 1.200 2009/01/19 02:38:17 rtoy Exp $ " " f2cl6.l ,...
null
https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/maxima/src/numerical/slatec/zbiry.lisp
lisp
Compiled by f2cl version: Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t) (:coerce-assigns :as-needed) (:array-type ':simple-array) (:array-slicing nil) (:declare-common nil) (:float-format double-float))
( " f2cl1.l , v 1.215 2009/04/07 22:05:21 rtoy Exp $ " " f2cl2.l , v 1.37 2008/02/22 22:19:33 rtoy Exp $ " " f2cl3.l , v 1.6 2008/02/22 22:19:33 rtoy Exp $ " " f2cl4.l , v 1.7 2008/02/22 22:19:34 rtoy Exp $ " " f2cl5.l , v 1.200 2009/01/19 02:38:17 rtoy Exp $ " " f2cl6.l , v 1.48 2008/08/24 00:56:27 rt...
cb6a3bad2190c606b7804ff4dc5f772c504c43c3d03dd1f1961c1d70fa81f207
purescript/purescript
Monad.hs
module Language.PureScript.CST.Monad where import Prelude import Data.List (sortOn) import qualified Data.List.NonEmpty as NE import Data.Ord (comparing) import Data.Text (Text) import Language.PureScript.CST.Errors import Language.PureScript.CST.Layout import Language.PureScript.CST.Positions import Language.PureScr...
null
https://raw.githubusercontent.com/purescript/purescript/211e67d4e7d186682ea70e8740055ad4e6624671/src/Language/PureScript/CST/Monad.hs
haskell
# INLINE (<*>) # # INLINE (>>=) # # INLINE throw #
module Language.PureScript.CST.Monad where import Prelude import Data.List (sortOn) import qualified Data.List.NonEmpty as NE import Data.Ord (comparing) import Data.Text (Text) import Language.PureScript.CST.Errors import Language.PureScript.CST.Layout import Language.PureScript.CST.Positions import Language.PureScr...
8fc15c2e4ba2d3ad719fa9ee5de53e5aad75cc88d20f88ab3a324818c78a7c29
amir343/avlang
avl_boolean.erl
Copyright ( c ) 2016 - 2017 %% 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...
null
https://raw.githubusercontent.com/amir343/avlang/36b14f476327c38d7fb75a787e1e8fd89f25919e/src/avl_boolean.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing perm...
Copyright ( c ) 2016 - 2017 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(avl_boolean). -behaviour(type_interface). -export([ op/1 , op/2 , lub/1 ]). -include("type_macros.hrl"). -ex...
faf66171b6013b6c9913b3b68d2a0c68ae4491115e219e55dae2a9f1c3f478ad
returntocorp/semgrep
Parse_target.ml
* * Copyright ( C ) 2019 - 2022 r2c * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation , with the * special exception on linking described in file LICE...
null
https://raw.githubusercontent.com/returntocorp/semgrep/a3bbb0db3fc2fc4c79bb7e5176e840e081e43ac3/src/parsing/Parse_target.ml
ocaml
To get a better backtrace, to better debug parse errors *************************************************************************** Prelude *************************************************************************** *************************************************************************** Types ****************...
* * Copyright ( C ) 2019 - 2022 r2c * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation , with the * special exception on linking described in file LICE...
ebecc6f72716f41e9df8fe379955b7e94fbf1eb60b6c90d6d7df71ae280bc094
dbuenzli/hyperbib
page.mli
--------------------------------------------------------------------------- Copyright ( c ) 2021 University of Bern . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 20...
null
https://raw.githubusercontent.com/dbuenzli/hyperbib/b17d1ef8cc3a215d04c31c0e56c2de414911c55c/src/page.mli
ocaml
* Page render and content. * HTML page generation parameters. * The type for authentication uis. * The type for user views. * The type for page generation parameters. Provides a few globals and determines the information shown on page according to the kind of user session or rendering mode (e.g. static ...
--------------------------------------------------------------------------- Copyright ( c ) 2021 University of Bern . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 20...
6d3cfa9ba7a7843d1b32f86e90afb224a17527151d19bab77ce213aeb86f37ab
danilkolikov/dfl
ToClassAssignmentTest.hs
| Module : Frontend . Desugaring . Initial . ToClassAssignmentTest Description : Tests for desugaring of object to ClassAssignment - s Copyright : ( c ) , 2019 License : MIT Test suite for desugaring of objects to ClassAssignment - s Module : Frontend.Desugaring.Initial.ToCl...
null
https://raw.githubusercontent.com/danilkolikov/dfl/698a8f32e23b381afe803fc0e353293a3bf644ba/test/Frontend/Desugaring/Initial/ToClassAssignmentTest.hs
haskell
| Module : Frontend . Desugaring . Initial . ToClassAssignmentTest Description : Tests for desugaring of object to ClassAssignment - s Copyright : ( c ) , 2019 License : MIT Test suite for desugaring of objects to ClassAssignment - s Module : Frontend.Desugaring.Initial.ToCl...
83aee34b96cb5efc6e40433cdc58899cf52d9d885125807bbc1831b67c635216
dmiller/clr.core.async
atomic.clj
Copyright ( c ) and contributors . All rights reserved . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are a...
null
https://raw.githubusercontent.com/dmiller/clr.core.async/bb861242531cdd6ba727283bf3ddee73db1e1c2d/src/clojure/clojure/core/async/util/atomic.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not re...
Copyright ( c ) and contributors . All rights reserved . Author : Trivial implementation of java.util.concurrent.atomic . AtomicReferenceArray , really only need get / set (ns clojure.core.async.util.atomic) (set! *warn-on-reflection* true) (definterface IAtomicArray (count [] "The...
d663e52a823ee1d4c9e872f875e47d7d551aac9b0589fe9e4dd732dd40e4355e
ds-wizard/engine-backend
IsaacNewton.hs
module Wizard.Database.Migration.Development.User.Data.IsaacNewton where import Data.Maybe (fromJust) import Data.Time import Shared.Util.Uuid import Wizard.Api.Resource.User.UserChangeDTO import Wizard.Api.Resource.User.UserProfileChangeDTO import Wizard.Database.Migration.Development.App.Data.Apps import Wizard.Dat...
null
https://raw.githubusercontent.com/ds-wizard/engine-backend/d392b751192a646064305d3534c57becaa229f28/engine-wizard/src/Wizard/Database/Migration/Development/User/Data/IsaacNewton.hs
haskell
module Wizard.Database.Migration.Development.User.Data.IsaacNewton where import Data.Maybe (fromJust) import Data.Time import Shared.Util.Uuid import Wizard.Api.Resource.User.UserChangeDTO import Wizard.Api.Resource.User.UserProfileChangeDTO import Wizard.Database.Migration.Development.App.Data.Apps import Wizard.Dat...
00d4af55db3f450a70e1d77cd414f2e6115079466be6d69a9a42529039d85897
marigold-dev/mankavar
bits.ml
type t = bool list let of_char c = let r = ref [] in let n = ref @@ Char.code c in for _ = 1 to 8 do r := (!n mod 2 = 1) :: !r ; n := !n / 2 ; done ; !r
null
https://raw.githubusercontent.com/marigold-dev/mankavar/110d1659feec9ebd99cf2f76d7699f48483010ca/src/helpers/bits/bits.ml
ocaml
type t = bool list let of_char c = let r = ref [] in let n = ref @@ Char.code c in for _ = 1 to 8 do r := (!n mod 2 = 1) :: !r ; n := !n / 2 ; done ; !r
714cbfa0858577f826cf468c3316aeea1b2e61070d60f92d089e80442b64624b
RileyEv/CircuitFlow
Error.hs
| Module : Pipeline . Error Description : Handling errors nicely Copyright : ( c ) , 2020 License : BSD 3 - Clause Maintainer : This package contains the tools needed to throw errors inside a Task . Errors will be propagated through the network . Module : Pipeline.Error Descri...
null
https://raw.githubusercontent.com/RileyEv/CircuitFlow/5f99dd1b02da1584d2626ec8d10e86dc53d8f115/src/Pipeline/Error.hs
haskell
| Module : Pipeline . Error Description : Handling errors nicely Copyright : ( c ) , 2020 License : BSD 3 - Clause Maintainer : This package contains the tools needed to throw errors inside a Task . Errors will be propagated through the network . Module : Pipeline.Error Descri...
8ce611c51e655cf2e4e51c881f457df1d8744c8c4ce3d5cfd20623fe36cc3b81
alejandrogallo/keyboard-lab
Promicro.hs
module Promicro where import Diagrams.Prelude import Diagrams.Backend.SVG.CmdLine promicro :: Diagram B promicro = rect w h <> pinsL <> pinsR <> label where r = 0.1 pt = circle (r / 2) w = 1.8 h = 3.3 label = text "promicro" # rotate (90 @@ deg) # scale 0.5 pinsR = draw...
null
https://raw.githubusercontent.com/alejandrogallo/keyboard-lab/e261933a5c4ff3733ccbd951b8830b9dc66bbd32/Promicro.hs
haskell
module Promicro where import Diagrams.Prelude import Diagrams.Backend.SVG.CmdLine promicro :: Diagram B promicro = rect w h <> pinsL <> pinsR <> label where r = 0.1 pt = circle (r / 2) w = 1.8 h = 3.3 label = text "promicro" # rotate (90 @@ deg) # scale 0.5 pinsR = draw...
bfc33c0d8cbc88c40d0fc456a449c079ffa8e50ad644d3640105dac67f6590d3
nchataing/caml-migrate-floatarray
patch.mli
(******************************************************************) Copyright ( C ) 2020 - 2021 . All rights reserved . (* *) (* This software may be modified and distributed under the terms *) of the BSD license . See the LICENSE file for details...
null
https://raw.githubusercontent.com/nchataing/caml-migrate-floatarray/9e7bb55ba7a801f20cdd9ce7701f0bb0200c1459/src/patch.mli
ocaml
**************************************************************** This software may be modified and distributed under the terms ****************************************************************
Copyright ( C ) 2020 - 2021 . All rights reserved . of the BSD license . See the LICENSE file for details . type t type loc = int * int val get_loc : t -> loc val mk_rewrite_patch : loc:loc -> ?par:bool -> string -> t val mk_remove_patch : loc:loc -> t val mk_seq_patch : loc:loc -> ?par:bool -> t...
bfc0d95d694dbad40497ee06df6d54fd58f21358f6a0d1b662bb756d6b1f33df
ghc/ghc
Subst.hs
( c ) The University of Glasgow 2006 ( c ) The GRASP / AQUA Project , Glasgow University , 1992 - 1998 Utility functions on @Core@ syntax (c) The University of Glasgow 2006 (c) The GRASP/AQUA Project, Glasgow University, 1992-1998 Utility functions on @Core@ syntax -} module GHC.Core.Subst ( -- * M...
null
https://raw.githubusercontent.com/ghc/ghc/0be75261cf0bd4958f075d498e8f6f966f0b1039/compiler/GHC/Core/Subst.hs
haskell
* Main data types ** Substituting into expressions and related types ** Operations on substitutions ** Substituting and cloning binders We are defining local versions ************************************************************************ * * \...
( c ) The University of Glasgow 2006 ( c ) The GRASP / AQUA Project , Glasgow University , 1992 - 1998 Utility functions on @Core@ syntax (c) The University of Glasgow 2006 (c) The GRASP/AQUA Project, Glasgow University, 1992-1998 Utility functions on @Core@ syntax -} module GHC.Core.Subst ( Implementati...
c5f0ef62bc318c4e903715eeff821f733cc82987d34786ec19cd8363d0273b9b
iamFIREcracker/adventofcode
day22.lisp
(defpackage :aoc/2016/22 #.cl-user::*aoc-use*) (in-package :aoc/2016/22) (defun pos (n) (nth 0 n)) (defun size (n) (nth 1 n)) (defun used (n) (nth 2 n)) (defun avail (n) (nth 3 n)) (defun parse-node (string) (cl-ppcre:register-groups-bind ((#'parse-integer c r size used avail)) ("node-x(\\d+)-y(\\d+)\\s+(\\d+...
null
https://raw.githubusercontent.com/iamFIREcracker/adventofcode/cf33fc217dc63b9438a9b6ec793207351c4d48d5/src/2016/day22.lisp
lisp
(defpackage :aoc/2016/22 #.cl-user::*aoc-use*) (in-package :aoc/2016/22) (defun pos (n) (nth 0 n)) (defun size (n) (nth 1 n)) (defun used (n) (nth 2 n)) (defun avail (n) (nth 3 n)) (defun parse-node (string) (cl-ppcre:register-groups-bind ((#'parse-integer c r size used avail)) ("node-x(\\d+)-y(\\d+)\\s+(\\d+...
29b734728abd04b62ea3458984e6a3ea569a9ee2db490116b4891a7ea82dbd7a
quil-lang/quilc
common.lisp
;;;; common.lisp ;;;; Author : (in-package #:cl-quil) The BACKEND protocol ;;; The BACKEND class is used primarily to determine available ;;; backends primarily by computing subclasses. (defclass backend () () (:documentation "Every backend must be represented by a subclass of this abstract base class.")...
null
https://raw.githubusercontent.com/quil-lang/quilc/3f3260aaa65cdde25a4f9c0027959e37ceef9d64/src/backends/common.lisp
lisp
common.lisp backends primarily by computing subclasses. memory allocation, the memory model (cf. classical-memory.lisp), etc.? An executable is an artifact which may be written to a binary output stream. (The executable may itself represent characters, of course, but we force implementers of this protocol to ...
Author : (in-package #:cl-quil) The BACKEND protocol The BACKEND class is used primarily to determine available (defclass backend () () (:documentation "Every backend must be represented by a subclass of this abstract base class.") (:metaclass abstract-class)) (defgeneric backend-name (backend-class) ...
89f6c7ea77ee356213780a999a58829cf7b94b18ca55128d6254e7814c787235
bcbio/bcbio.variation.recall
vcfutils.clj
(ns bcbio.variation.recall.vcfutils "Utilities for manipulating VCF files" (:require [bcbio.run.fsp :as fsp] [bcbio.run.itx :as itx] [clojure.java.io :as io] [clojure.string :as string] [me.raynes.fs :as fs] [taoensso.timbre :as timbre])) (defn pog-reader...
null
https://raw.githubusercontent.com/bcbio/bcbio.variation.recall/b7aa436dcb558535f87d004ba0abc5d7bc380b70/src/bcbio/variation/recall/vcfutils.clj
clojure
(ns bcbio.variation.recall.vcfutils "Utilities for manipulating VCF files" (:require [bcbio.run.fsp :as fsp] [bcbio.run.itx :as itx] [clojure.java.io :as io] [clojure.string :as string] [me.raynes.fs :as fs] [taoensso.timbre :as timbre])) (defn pog-reader...
3dd912af7973dae36e6da10e10a8c441f27730c31aa0534d86a2723ceadc68a1
philnguyen/json-type-provider
london_weather.rkt
#lang typed/racket/base (require typed/rackunit "../main.rkt") (define-json-types [Response ([coord : Coord] [weather : (Listof Weather)] [(sys system) : System] ; rename field [name : String])] [Coord ([lon : JSNum] [lat : JSNum])] [Weather ([id : JSNum] ...
null
https://raw.githubusercontent.com/philnguyen/json-type-provider/f96d3f212519f4ff2aef828e7b891971b82babb8/json-type-provider/test/london_weather.rkt
racket
rename field ignore some fields
#lang typed/racket/base (require typed/rackunit "../main.rkt") (define-json-types [Response ([coord : Coord] [weather : (Listof Weather)] [name : String])] [Coord ([lon : JSNum] [lat : JSNum])] [Weather ([id : JSNum] [System ([type : JSNum] [id : JSNum] ...
d12269e558f5c955eeeb7f90874f35e7d22aec08ec917f94428fea6f06b500a0
kfish/const-math-ghc-plugin
numrun013.hs
Test for trac # 1042 import Control.Exception import Data.Int import Prelude hiding (catch) main :: IO () main = do print ((minBound :: Int) `div` (-1)) `myCatch` print print ((minBound :: Int8) `div` (-1)) `myCatch` print print ((minBound :: Int16) `div` (-1)) `myCatch` print prin...
null
https://raw.githubusercontent.com/kfish/const-math-ghc-plugin/c1d269e0ddc72a782c73cca233ec9488f69112a9/tests/ghc-7.4/numrun013.hs
haskell
Test for trac # 1042 import Control.Exception import Data.Int import Prelude hiding (catch) main :: IO () main = do print ((minBound :: Int) `div` (-1)) `myCatch` print print ((minBound :: Int8) `div` (-1)) `myCatch` print print ((minBound :: Int16) `div` (-1)) `myCatch` print prin...
d02dfabf263efc9d56e2f0f071c9a1a352e54e17d729c0c3c3dcdca21a47b72c
wdebeaum/DeepSemLex
stomachache.lisp
;;;; ;;;; w::stomachache ;;;; (define-words :pos W::n :words ( (w::stomachache (senses ((meta-data :wn ("stomachache%1:26:00")) (LF-PARENT ONT::stomachache) (TEMPL count-pred-TEMPL) ) ) ) ))
null
https://raw.githubusercontent.com/wdebeaum/DeepSemLex/ce0e7523dd2b1ebd42b9e88ffbcfdb0fd339aaee/trips/src/LexiconManager/Data/new/stomachache.lisp
lisp
w::stomachache
(define-words :pos W::n :words ( (w::stomachache (senses ((meta-data :wn ("stomachache%1:26:00")) (LF-PARENT ONT::stomachache) (TEMPL count-pred-TEMPL) ) ) ) ))
d6df77ae98a115ece6bdde915647d2ada4d97ae6b751366dde76c1a07bde679b
esl/MongooseIM
mongoose_graphql_handler.erl
%% @doc A cowboy handler for graphql listeners. It supports both admin and user %% schemas. The `schema_endpoint' config option must be set to decide which %% schema to use. %% %% The graphql request is authorized, processed and then passed for execution. %% @end -module(mongoose_graphql_handler). -behaviour(mongoose_...
null
https://raw.githubusercontent.com/esl/MongooseIM/5e2708c40cbfc4609fd8be5523cf32d47470ec49/src/graphql/mongoose_graphql_handler.erl
erlang
@doc A cowboy handler for graphql listeners. It supports both admin and user schemas. The `schema_endpoint' config option must be set to decide which schema to use. The graphql request is authorized, processed and then passed for execution. @end mongoose_http_handler callbacks config processing callbacks REST ...
-module(mongoose_graphql_handler). -behaviour(mongoose_http_handler). -behavior(cowboy_rest). -export([config_spec/0, routes/1]). -export([process_config/1]). Cowboy Handler Interface -export([init/2]). -export([allowed_methods/2, resource_exists/2, content_types_provided/2, c...
d36b380877ae24b8bf3ffed8fc5959ee8f8597f4ca7ac854a8fe245843d96649
lamdu/lamdu
ToVersion3.hs
| Migration support for JSONs with schemaVersion 2 to 3 -- Migration changes: 1 . Change " schemaVersion " to 3 -- 2 . Replace " OO " with { " Object " : < TAG > } and " Infix " with { " Infix " : [ < TAG > , < TAG > ] } -- (presentation modes now mention the special tags) module Lamdu.Data.Expor...
null
https://raw.githubusercontent.com/lamdu/lamdu/e31e36f5cef7b3c5d9123d799b45bb55a1d78efa/src/Lamdu/Data/Export/JSON/Migration/ToVersion3.hs
haskell
Migration changes: (presentation modes now mention the special tags)
| Migration support for JSONs with schemaVersion 2 to 3 1 . Change " schemaVersion " to 3 2 . Replace " OO " with { " Object " : < TAG > } and " Infix " with { " Infix " : [ < TAG > , < TAG > ] } module Lamdu.Data.Export.JSON.Migration.ToVersion3 (migrate) where import qualified Control.Lens as Len...
51383dedda662f6ed61c8b1d358e53040a8b34fa8eb7da38da3ba755e120b3f8
jwiegley/notes
PipesFreeT2.hs
# LANGUAGE GeneralizedNewtypeDeriving # {-# LANGUAGE RankNTypes #-} # LANGUAGE DeriveFunctor # # LANGUAGE LambdaCase # module PipesFreeT where import Control.Applicative import Control.Monad import Control.Monad.Trans.Class import Data.Void import System.IO import qualified Pipes.Internal as Pipes data Free f a = Pu...
null
https://raw.githubusercontent.com/jwiegley/notes/24574b02bfd869845faa1521854f90e4e8bf5e9a/haskell/PipesFreeT2.hs
haskell
# LANGUAGE RankNTypes # This is the original type that we're breaking into its constituent parts. efficiency's sake, since otherwise there is a great deal of wrapping and unwrapping, not all of which can optimized away by newtypes (notably FreeF). data Proxy a' a b' b m r = Request a' (a -> Proxy a' a b' b m...
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE DeriveFunctor # # LANGUAGE LambdaCase # module PipesFreeT where import Control.Applicative import Control.Monad import Control.Monad.Trans.Class import Data.Void import System.IO import qualified Pipes.Internal as Pipes data Free f a = Pure a | Free (f (Free f a)) ...
c4c13eb7d89ae2a745d03a8c16421a48598dd72946dfb93d608ef3bc399c17ae
ucsd-progsys/dsolve
path.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ucsd-progsys/dsolve/bfbbb8ed9bbf352d74561e9f9127ab07b7882c0c/typing/path.ml
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : path.ml , v 1.9 2003/07/01 13...
211406567e888f9d4238eefc2adc6e894ab02f0550728d6824f249d7f25c83b0
hstreamdb/hstream
throughout-join.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # import Control.Concurrent import Control.Concurrent.MVar import Control.Monad import Data.Aeson (Object, Value (..)) import qualified Data.HashMap.Lazy as HM import Data.IORef import ...
null
https://raw.githubusercontent.com/hstreamdb/hstream/9dd279fa7e406a6583d02458d42c0dda621a2d1b/hstream-diffflow/bench/throughout-join.hs
haskell
# LANGUAGE OverloadedStrings # ------------------------------------------------------------------------------ unit: ms return millisecond timestamp ------------------------------------------------------------------------------ # NOINLINE totalDataChangeCount_out # Node_1 input Node_2 input
# LANGUAGE RecordWildCards # import Control.Concurrent import Control.Concurrent.MVar import Control.Monad import Data.Aeson (Object, Value (..)) import qualified Data.HashMap.Lazy as HM import Data.IORef import qualified Data.List a...
46eaec150e8f090d4590f114c5077b9618d4a87c6f1640a524b51a91b3ecbfde
informatimago/lisp
test.lisp
-*- mode : lisp ; coding : utf-8 -*- (eval-when (:compile-toplevel :load-toplevel :execute) (setf *readtable* (copy-readtable nil))) (eval-when (:compile-toplevel) (print @"ASCII test string.") (print @"ISO-8859-1 test string, c'est bientôt l'été.") (print @"Unicodde test string, λαμβδα!") (print (class-o...
null
https://raw.githubusercontent.com/informatimago/lisp/571af24c06ba466e01b4c9483f8bb7690bc46d03/objcl/test.lisp
lisp
coding : utf-8 -*-
(eval-when (:compile-toplevel :load-toplevel :execute) (setf *readtable* (copy-readtable nil))) (eval-when (:compile-toplevel) (print @"ASCII test string.") (print @"ISO-8859-1 test string, c'est bientôt l'été.") (print @"Unicodde test string, λαμβδα!") (print (class-of @"ASCII test string.")) (print (cla...
cefb9c60270d03392c1910935e430b5962024f39c2ed4d73f976c4c8d80897cf
AntidoteDB/antidote_aql
bcounter_SUITE.erl
-module(bcounter_SUITE). -include_lib("aql.hrl"). -include_lib("parser.hrl"). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). -include_lib("ct_aql.hrl"). -define(UPDATE_ERROR, {error, "A numeric invariant has been breached."}). -define(INSERT_ERROR(ExpecVal, Col), "Invalid value ...
null
https://raw.githubusercontent.com/AntidoteDB/antidote_aql/e7ef4913d233c2fee8ebff582d91fe3e2e95786c/test/bcounter_SUITE.erl
erlang
=================================================================== CT config functions =================================================================== =================================================================== Test functions =================================================================== insert...
-module(bcounter_SUITE). -include_lib("aql.hrl"). -include_lib("parser.hrl"). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). -include_lib("ct_aql.hrl"). -define(UPDATE_ERROR, {error, "A numeric invariant has been breached."}). -define(INSERT_ERROR(ExpecVal, Col), "Invalid value ...
5e4aa6ebc4e0b0267df2eacaba43c6331cf8f022792cf5a57c05de570ba57cc1
racket/libs
info.rkt
#lang setup/infotab SPDX - License - Identifier : ( Apache-2.0 OR MIT ) ;; THIS FILE IS AUTO-GENERATED FROM racket/src/native-libs/install.rkt (define install-platform "win32\\i386") (define copy-foreign-libs '("libatk-1.0-0.dll"))
null
https://raw.githubusercontent.com/racket/libs/ebcea119197dc0cb86be1ccbbfbe5806f7280976/gui-win32-i386/racket/gui/info.rkt
racket
THIS FILE IS AUTO-GENERATED FROM racket/src/native-libs/install.rkt
#lang setup/infotab SPDX - License - Identifier : ( Apache-2.0 OR MIT ) (define install-platform "win32\\i386") (define copy-foreign-libs '("libatk-1.0-0.dll"))
7ad0948d591c799fc9e3208341e1fa5cbaa48e0c73645717306277f620fb0ee3
hawk/lux
lux_junit.erl
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright 2012 - 2022 Tail - f Systems AB %% %% See the file "LICENSE" for information on usage and redistribution %% of this file, and for a DISCLAIMER OF ALL WARRANTIES. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -mo...
null
https://raw.githubusercontent.com/hawk/lux/4304c89b3c9cccb256655b7d1058d7619e926dc7/src/lux_junit.erl
erlang
See the file "LICENSE" for information on usage and redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
Copyright 2012 - 2022 Tail - f Systems AB -module(lux_junit). -export([write_report/3]). -include("lux.hrl"). -define(INDENT, " "). write_report(SummaryLog, RunDir, _Opts) -> File = lux_utils:normalize_filename(SummaryLog), WWW = undefined, {ParseRes, NewWWW} = lux_log:parse_summary_log(File, WWW)...
9c9b9c1f11951b0de60834b446357f56d5276a56aad6ea190897e340c07ed931
syocy/a-tour-of-go-in-haskell
EquivalentBinaryTrees.hs
module A_Tour_of_Go.Concurrency.EquivalentBinaryTrees where import A_Tour_of_Go.Concurrency.Tree import Control.Concurrent (Chan, newChan, writeChan, readChan, getChanContents) import Control.Concurrent.Async (async) import Control.Monad (forever, forM, forM_) import Data.Maybe (catMaybes, isJust) walk :: Tree -> ...
null
https://raw.githubusercontent.com/syocy/a-tour-of-go-in-haskell/9bd6eb1d40098369b37329bc8d48ac2f27a6e7e2/src/A_Tour_of_Go/Concurrency/EquivalentBinaryTrees.hs
haskell
| >>> main True False | >>> mainPure True False
module A_Tour_of_Go.Concurrency.EquivalentBinaryTrees where import A_Tour_of_Go.Concurrency.Tree import Control.Concurrent (Chan, newChan, writeChan, readChan, getChanContents) import Control.Concurrent.Async (async) import Control.Monad (forever, forM, forM_) import Data.Maybe (catMaybes, isJust) walk :: Tree -> ...
242901bb8ec5bd550c9e00f04a86ef5f12d5612693b972d9d3ccc01a55610d89
nathell/skyscraper
enlive_helpers.clj
(ns skyscraper.enlive-helpers "Utility functions for use in Enlive-based scrapers." (:require [net.cgrand.enlive-html :as enlive])) (defn href "Returns the href of an `<a>` node, potentially wrapped in another node." [x] (cond (nil? x) nil (and (map? x) (= :a (:tag x))) (-> x :attrs :href) ...
null
https://raw.githubusercontent.com/nathell/skyscraper/33f5aac38378fcaf4e815647f343ef8415a6f545/src/skyscraper/enlive_helpers.clj
clojure
(ns skyscraper.enlive-helpers "Utility functions for use in Enlive-based scrapers." (:require [net.cgrand.enlive-html :as enlive])) (defn href "Returns the href of an `<a>` node, potentially wrapped in another node." [x] (cond (nil? x) nil (and (map? x) (= :a (:tag x))) (-> x :attrs :href) ...
aa22371cf0270c3e1f747f2bc0bafd6ff6f480aa0bc8876e2d0d7f976700353f
jeapostrophe/exp
sstruct.rkt
#lang racket (require (for-syntax syntax/parse racket/match racket/list racket/local racket/dict syntax/id-table racket/syntax unstable/syntax "sstruct-...
null
https://raw.githubusercontent.com/jeapostrophe/exp/43615110fd0439d2ef940c42629fcdc054c370f9/sstruct.rkt
racket
XXX allow override xxx auto fields xxx auto value xxx proc spec Match expander fields xxx remove this hack! Our fields
#lang racket (require (for-syntax syntax/parse racket/match racket/list racket/local racket/dict syntax/id-table racket/syntax unstable/syntax "sstruct-...
7fd8b87e4dc5dc6913e7596f6dfcb868ee535248f56dabb29309e1a0fab827cd
janestreet/typerep
type_generic.ml
open Std_internal module Variant_and_record_intf = Variant_and_record_intf module Helper (A : Variant_and_record_intf.S) (B : Variant_and_record_intf.S) = struct type map = { map : 'a. 'a A.t -> 'a B.t } let map_variant (type variant) { map } (variant : variant A.Variant.t) = let map_create = function |...
null
https://raw.githubusercontent.com/janestreet/typerep/75e0b028096e1e7589d1b111d96be4d1d087c057/lib/type_generic.ml
ocaml
special functor application for computation as closure of the form [a -> b] something is wrong with the set up, this is an error during the initialization of the program, we rather fail with a human readable output Extending an existing generic generic_ident * typename or info...
open Std_internal module Variant_and_record_intf = Variant_and_record_intf module Helper (A : Variant_and_record_intf.S) (B : Variant_and_record_intf.S) = struct type map = { map : 'a. 'a A.t -> 'a B.t } let map_variant (type variant) { map } (variant : variant A.Variant.t) = let map_create = function |...
cb81d4b922a4c61ebc2381c253ef865047f925ceb157b731b072267fa37c7ea5
sru-systems/protobuf-simple
EnumMsg.hs
-- Generated by protobuf-simple. DO NOT EDIT! module Types.EnumMsg where import Control.Applicative ((<$>)) import Prelude () import qualified Data.ProtoBufInt as PB import qualified Types.Enum newtype EnumMsg = EnumMsg { value :: Types.Enum.Enum } deriving (PB.Show, PB.Eq, PB.Ord) instance PB.Default EnumMsg wh...
null
https://raw.githubusercontent.com/sru-systems/protobuf-simple/ee0f26b6a8588ed9f105bc9ee72c38943133ed4d/test/Types/EnumMsg.hs
haskell
Generated by protobuf-simple. DO NOT EDIT!
module Types.EnumMsg where import Control.Applicative ((<$>)) import Prelude () import qualified Data.ProtoBufInt as PB import qualified Types.Enum newtype EnumMsg = EnumMsg { value :: Types.Enum.Enum } deriving (PB.Show, PB.Eq, PB.Ord) instance PB.Default EnumMsg where defaultVal = EnumMsg { value = PB.de...
a5b4478bf4ebc8a42fb4a573f739e80959bf22a0c44e1f91f2fdddcf5ccaa5e4
samrushing/irken-compiler
genopcodes.scm
;; -*- Mode: Irken -*- ;; generate an include file for irkvm.c with information ;; about all the opcodes. (require "lib/basis.scm") (require "lib/map.scm") (require "self/byteops.scm") (define (generate-irkvm-h) (let ((file (stdio/open-write "vm/irkvm.h")) (nops (vector-length opcode-info))) (define ...
null
https://raw.githubusercontent.com/samrushing/irken-compiler/690da48852d55497f873738df54f14e8e135d006/vm/genopcodes.scm
scheme
-*- Mode: Irken -*- generate an include file for irkvm.c with information about all the opcodes. emit symbolic names for each opcode.
(require "lib/basis.scm") (require "lib/map.scm") (require "self/byteops.scm") (define (generate-irkvm-h) (let ((file (stdio/open-write "vm/irkvm.h")) (nops (vector-length opcode-info))) (define (W s) (stdio/write file s)) (define (B b) (if b 1 0)) (W (format "// generate...
4e3845c96e61eaeebc2bf3f1e0c65c12c4d63609ef6c7d5a23039f001771f4bd
theodormoroianu/SecondYearCourses
HaskellChurchMonad_20210415135822.hs
module HaskellChurchMonad where A boolean is any way to choose between two alternatives newtype CBool t = CBool {cIf :: t -> t -> t} toBool :: CBool Bool -> Bool toBool b = cIf b True False The boolean constant true always chooses the first alternative cTrue :: CBool t cTrue = CBool $ \t f -> t The boolean consta...
null
https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/5e359e6a7cf588a527d27209bf53b4ce6b8d5e83/FLP/Laboratoare/Lab%209/.history/HaskellChurchMonad_20210415135822.hs
haskell
The boolean negation switches the alternatives The boolean conjunction can be built as a conditional The boolean disjunction can be built as a conditional a pair is a way to compute something based on the values contained within the pair. a function to be applied on the values, it will apply it on them. A natural nu...
module HaskellChurchMonad where A boolean is any way to choose between two alternatives newtype CBool t = CBool {cIf :: t -> t -> t} toBool :: CBool Bool -> Bool toBool b = cIf b True False The boolean constant true always chooses the first alternative cTrue :: CBool t cTrue = CBool $ \t f -> t The boolean consta...
0187d3acc706cd970f1cf3c863a611dfd71f6811ea38cadc874c2f05132801f2
morgenthum/lambda-heights
MainMenuState.hs
module LambdaHeights.Types.MainMenuState where import LambdaHeights.Types.Table import Linear.V2 newtype State = State { menu :: Table } newState :: State newState = State {menu = newTable [["play"], ["replay"], ["exit"]] (V2 1 1)}
null
https://raw.githubusercontent.com/morgenthum/lambda-heights/0a86ead23e8c223ba2672fa314666a06eb669fe2/lambda-heights/src/LambdaHeights/Types/MainMenuState.hs
haskell
module LambdaHeights.Types.MainMenuState where import LambdaHeights.Types.Table import Linear.V2 newtype State = State { menu :: Table } newState :: State newState = State {menu = newTable [["play"], ["replay"], ["exit"]] (V2 1 1)}
307b93269f57eb77899469c99b0028416ee2b7bb4b27becac5cdfaac8f7ce10a
cedlemo/OCaml-GI-ctypes-bindings-generator
Font_chooser_dialog.mli
open Ctypes type t val t_typ : t typ val create : string option -> Window.t ptr option -> Widget.t ptr
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Font_chooser_dialog.mli
ocaml
open Ctypes type t val t_typ : t typ val create : string option -> Window.t ptr option -> Widget.t ptr
b64e70f3bc5c78ce6aa7255bbb24e168fc9abee36658f5fe89854868fe8b2bb3
leftaroundabout/linearmap-family
Class.hs
-- | Module : Math . . Category . Class Copyright : ( c ) 2016 -- License : GPL v3 -- -- Maintainer : (@) jsag $ hvl.no -- Stability : experimental -- Portability : portable -- # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # {-# LANGUAGE ConstraintKinds ...
null
https://raw.githubusercontent.com/leftaroundabout/linearmap-family/3a28b2793e4376f6d9258abb587be38bc5b61fa7/Math/LinearMap/Category/Class.hs
haskell
| License : GPL v3 Maintainer : (@) jsag $ hvl.no Stability : experimental Portability : portable # LANGUAGE ConstraintKinds # # LANGUAGE UndecidableInstances # # LANGUAGE TypeOperators # # LANGUAGE Rank2Types # # LANGUAGE PatternSynonyms # # LANG...
Module : Math . . Category . Class Copyright : ( c ) 2016 # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE FunctionalDependencies # # LANGUAGE NoStarIsType # # LANGUAGE TypeFamilies # # LANGUAGE AllowAmbiguousTypes # ...
310bca1b602bd30da86922b1536a35c00396b2de2ddc17e8ae8ea1213d32f463
cyverse-archive/DiscoveryEnvironmentBackend
favorites.clj
(ns metadata.routes.favorites (:use [common-swagger-api.schema] [metadata.routes.domain.common] [metadata.routes.domain.favorites] [ring.util.http-response :only [ok]]) (:require [metadata.services.favorites :as fave])) (defroutes* favorites (context* "/favorites" [] :tags ["favorites...
null
https://raw.githubusercontent.com/cyverse-archive/DiscoveryEnvironmentBackend/7f6177078c1a1cb6d11e62f12cfe2e22d669635b/services/metadata/src/metadata/routes/favorites.clj
clojure
(ns metadata.routes.favorites (:use [common-swagger-api.schema] [metadata.routes.domain.common] [metadata.routes.domain.favorites] [ring.util.http-response :only [ok]]) (:require [metadata.services.favorites :as fave])) (defroutes* favorites (context* "/favorites" [] :tags ["favorites...
dc048241a21f6edbb65d4c348b128df6ea8bfc3c37bd25c3dfd83993ddc9e380
finnishtransportagency/harja
raportit.clj
(ns harja.palvelin.integraatiot.api.raportit "Raporttien API" (:require [com.stuartsierra.component :as component] [compojure.core :refer [POST GET]] [clojure.java.jdbc :as jdbc] [slingshot.slingshot :refer [throw+ try+]] [harja.palvelin.komponentit.http-palvelin :ref...
null
https://raw.githubusercontent.com/finnishtransportagency/harja/07e77f1fe4c8aa38a3bf8ec3d88a71c5250040fc/src/clj/harja/palvelin/integraatiot/api/raportit.clj
clojure
(ns harja.palvelin.integraatiot.api.raportit "Raporttien API" (:require [com.stuartsierra.component :as component] [compojure.core :refer [POST GET]] [clojure.java.jdbc :as jdbc] [slingshot.slingshot :refer [throw+ try+]] [harja.palvelin.komponentit.http-palvelin :ref...
f58c0ca3590b4aa6d07decea271cb9dd91a201139c61b67042dc4764a4bd1602
ephemient/aoc2018
Day24Spec.hs
module Day24Spec (spec) where import Day24 (day24a, day24b) import Test.Hspec (Spec, describe, it, shouldBe) spec :: Spec spec = do describe "part 1" $ it "examples" $ day24a sample `shouldBe` Just 5216 describe "part 2" $ it "examples" $ day24b sample `shouldBe` Just 5...
null
https://raw.githubusercontent.com/ephemient/aoc2018/eb0d04193ccb6ad98ed8ad2253faeb3d503a5938/test/Day24Spec.hs
haskell
module Day24Spec (spec) where import Day24 (day24a, day24b) import Test.Hspec (Spec, describe, it, shouldBe) spec :: Spec spec = do describe "part 1" $ it "examples" $ day24a sample `shouldBe` Just 5216 describe "part 2" $ it "examples" $ day24b sample `shouldBe` Just 5...
8b17fffd1ac4156befdf45c6795bfed2b084be0ae37a1bc2168faceac345ecb5
CindyLinz/Haskell.js
Main.hs
module Main where import System.Environment import qualified Language.Haskell.Exts.Annotated.Syntax import qualified Language.Haskell.Exts.Syntax import DeriveTemplate import Control.Arrow import Control.Applicative import Data.Functor import Data.Monoid $(deriveDesugarTemplate "genNormal" "Language.Haskell.Exts.Synt...
null
https://raw.githubusercontent.com/CindyLinz/Haskell.js/78429a49181a15f6bdae426f17bdae722ad17141/trans/desugar-template-src/Main.hs
haskell
module Main where import System.Environment import qualified Language.Haskell.Exts.Annotated.Syntax import qualified Language.Haskell.Exts.Syntax import DeriveTemplate import Control.Arrow import Control.Applicative import Data.Functor import Data.Monoid $(deriveDesugarTemplate "genNormal" "Language.Haskell.Exts.Synt...
2373be4c656894393690b0d5e2beaa187ebcc99198140c378d89ea3248c1c6d3
gothinkster/clojurescript-keechma-realworld-example-app
articles.cljs
(ns app.controllers.articles (:require [keechma.next.controller :as ctrl] [keechma.next.controllers.pipelines :as pipelines] [keechma.next.controllers.entitydb :as edb] [keechma.next.controllers.dataloader :as dl] [keechma.pipelines.core :as pp :refer-macros [pipeline!]...
null
https://raw.githubusercontent.com/gothinkster/clojurescript-keechma-realworld-example-app/f6d32f8eea5439b0b33df1afb89da6d27b7da66b/src/app/controllers/articles.cljs
clojure
(ns app.controllers.articles (:require [keechma.next.controller :as ctrl] [keechma.next.controllers.pipelines :as pipelines] [keechma.next.controllers.entitydb :as edb] [keechma.next.controllers.dataloader :as dl] [keechma.pipelines.core :as pp :refer-macros [pipeline!]...
86e31734e5bec467d552054177004a12c53dfb97a9d7f65e394c24d0dabf56d2
yesodweb/persistent
ImplicitUuidSpec.hs
# LANGUAGE DataKinds # # LANGUAGE DerivingStrategies # # LANGUAGE ExistentialQuantification # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE QuasiQuotes # # LANGUAGE StandaloneDeriving # # LANGUAGE TemplateHaskell #...
null
https://raw.githubusercontent.com/yesodweb/persistent/eaf9d561a66a7b7a8fcbdf6bd0e9800fa525cc13/persistent-postgresql/test/ImplicitUuidSpec.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE DataKinds # # LANGUAGE DerivingStrategies # # LANGUAGE ExistentialQuantification # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE QuasiQuotes # # LANGUAGE StandaloneDeriving # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # # LA...
aa0518339b4ef61109c066d34456758961b6850bd70463faa8df6469421880b4
clash-lang/clash-compiler
RecursivePoly.hs
# LANGUAGE ScopedTypeVariables # module RecursivePoly where import Clash.Prelude topEntity :: Integer topEntity = f 0 f :: (Integral b, Num b) => b -> b f x = let f1 :: Num a => a -> a f1 = \(y::a) -> (f1 y) + 1 + (fromInteger $ toInteger x) in f1 x
null
https://raw.githubusercontent.com/clash-lang/clash-compiler/8e461a910f2f37c900705a0847a9b533bce4d2ea/tests/shouldfail/RecursivePoly.hs
haskell
# LANGUAGE ScopedTypeVariables # module RecursivePoly where import Clash.Prelude topEntity :: Integer topEntity = f 0 f :: (Integral b, Num b) => b -> b f x = let f1 :: Num a => a -> a f1 = \(y::a) -> (f1 y) + 1 + (fromInteger $ toInteger x) in f1 x
beb9fc02d6af7fcd7e9e640e44a215e422460d8ac2a7ffc56a0d300e468395bd
openmusic-project/openmusic
sheet-tracks.lisp
;========================================================================= OpenMusic : Visual Programming Language for Music Composition ; Copyright ( c ) 1997- ... IRCAM - Centre , Paris , France . ; This file is part of the OpenMusic environment sources ; OpenMusic is free software : you ...
null
https://raw.githubusercontent.com/openmusic-project/openmusic/9560c064512a1598cd57bcc9f0151c0815178e6f/OPENMUSIC/code/projects/sheet/sheetobjects/sheet-tracks.lisp
lisp
========================================================================= (at your option) any later version. but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. ======...
OpenMusic : Visual Programming Language for Music Composition Copyright ( c ) 1997- ... IRCAM - Centre , Paris , France . This file is part of the OpenMusic environment sources OpenMusic is free software : you can redistribute it and/or modify it under the terms of the GNU General Public ...
4b4b5a3f6a27bc80e599e2edbaf77dc02bc64ccbfbfb8e211c6bcfa768d9571d
awkay/fulcro-with-reframe
address.clj
(ns app.model.address (:require [com.wsscode.pathom.connect :as pc :refer [defresolver defmutation]] [taoensso.timbre :as log] [datascript.core :as d])) (defresolver address-resolver [{:keys [db] :as env} {:address/keys [id]}] {::pc/input #{:address/id} ::pc/output [:address/id :address/street :add...
null
https://raw.githubusercontent.com/awkay/fulcro-with-reframe/6db83fe496654b21865c75465343d056786ffc03/src/main/app/model/address.clj
clojure
(ns app.model.address (:require [com.wsscode.pathom.connect :as pc :refer [defresolver defmutation]] [taoensso.timbre :as log] [datascript.core :as d])) (defresolver address-resolver [{:keys [db] :as env} {:address/keys [id]}] {::pc/input #{:address/id} ::pc/output [:address/id :address/street :add...
9f9674a4da5197dd62b59a60100649f472726183f576448673d46f267a1a75b7
cky/guile
peval.scm
;;; Tree-IL partial evaluator Copyright ( C ) 2011 - 2014 Free Software Foundation , Inc. ;;;; This library is free software; you can redistribute it and/or ;;;; modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either version 3 of the License , or...
null
https://raw.githubusercontent.com/cky/guile/89ce9fb31b00f1f243fe6f2450db50372cc0b86d/module/language/tree-il/peval.scm
scheme
Tree-IL partial evaluator This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public either This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR...
Copyright ( C ) 2011 - 2014 Free Software Foundation , Inc. version 3 of the License , or ( at your option ) any later version . You should have received a copy of the GNU Lesser General Public Foundation , Inc. , 51 Franklin Street , Fifth Floor , Boston , USA (define-module (language tree-il peval) #...
c9c1656bdc6e51cdf77d965668f0bbffcc12c78a6eae50fedc2ef4196e72eda6
mathematical-systems/clml
dtrti2.lisp
;;; Compiled by f2cl version: ( " $ I d : f2cl1.l , v 1.193 2008 - 02 - 22 22:37:02 " " $ I d : f2cl2.l , v 1.37 2008 - 02 - 22 22:19:33 rtoy Exp $ " " $ I d : f2cl3.l , v 1.6 2008 - 02 - 22 22:19:33 rtoy Exp $ " " $ I d : f2cl4.l , v 1.7 2008 - 02 - 22 22:19:34 rtoy Exp $ " " $ I d : f2cl5.l , v 1.181...
null
https://raw.githubusercontent.com/mathematical-systems/clml/918e41e67ee2a8102c55a84b4e6e85bbdde933f5/lapack/dtrti2.lisp
lisp
Compiled by f2cl version: Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t) (:coerce-assigns :as-needed) (:array-type ':array) (:array-slicing t) (:declare-common nil) (:float-format double-float))
( " $ I d : f2cl1.l , v 1.193 2008 - 02 - 22 22:37:02 " " $ I d : f2cl2.l , v 1.37 2008 - 02 - 22 22:19:33 rtoy Exp $ " " $ I d : f2cl3.l , v 1.6 2008 - 02 - 22 22:19:33 rtoy Exp $ " " $ I d : f2cl4.l , v 1.7 2008 - 02 - 22 22:19:34 rtoy Exp $ " " $ I d : f2cl5.l , v 1.181 2008 - 02 - 22 22:52:33 " ...
a0b3d58ff78ddbf3f1a741a65179157945520094a86c2f24df53d4de2ed447b9
jaspervdj/fugacious
Database.hs
# LANGUAGE GeneralizedNewtypeDeriving # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # module Fugacious.Database ( Error (..) , Config (..) , Handle (..) , withHandle , User (..) , createUser , getUserById , getExpiredUsers , purgeUser , r...
null
https://raw.githubusercontent.com/jaspervdj/fugacious/4e9c2d48174c852616fbfbf28bd9cc90812a1c95/lib/Fugacious/Database.hs
haskell
# LANGUAGE OverloadedStrings # Number of sub-pools Seconds to keep a resource open Number of resources per sub-pool ^ From ^ To ^ Subject ^ Full source
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE RecordWildCards # module Fugacious.Database ( Error (..) , Config (..) , Handle (..) , withHandle , User (..) , createUser , getUserById , getExpiredUsers , purgeUser , renewUser , Mail (..) , deliverMail ...
ad5c7db0ba34afc0c1b040cd9556a95e4422433bf452a4a8aad1223338214f75
cedlemo/OCaml-GI-ctypes-bindings-generator
Size_request_mode.ml
open Ctypes open Foreign type t = Height_for_width | Width_for_height | Constant_size let of_value v = if v = Unsigned.UInt32.of_int 0 then Height_for_width else if v = Unsigned.UInt32.of_int 1 then Width_for_height else if v = Unsigned.UInt32.of_int 2 then Constant_size else raise (Invalid_argument "Unexpect...
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Size_request_mode.ml
ocaml
open Ctypes open Foreign type t = Height_for_width | Width_for_height | Constant_size let of_value v = if v = Unsigned.UInt32.of_int 0 then Height_for_width else if v = Unsigned.UInt32.of_int 1 then Width_for_height else if v = Unsigned.UInt32.of_int 2 then Constant_size else raise (Invalid_argument "Unexpect...
3c50fcc7d6baca774f609ef87e083a830770e2801943d2a4b2f457ae014a797d
jamshidh/ethereum-client-haskell
Context.hs
{-# LANGUAGE OverloadedStrings #-} module Blockchain.Context ( Context(..), ContextM, isDebugEnabled, getStorageKeyVal', getAllStorageKeyVals', getDebugMsg, addDebugMsg, clearDebugMsg, putStorageKeyVal', deleteStorageKey', incrementNonce, getNewAddress ) where import Control.Monad.IfElse im...
null
https://raw.githubusercontent.com/jamshidh/ethereum-client-haskell/6f02781ff661b6a9687fd6fe0f3e0d99d1eacc6b/src/Blockchain/Context.hs
haskell
# LANGUAGE OverloadedStrings # import Debug.Trace mmapFileByteString " dataset0 " Nothing mmapFileByteString "dataset0" Nothing
module Blockchain.Context ( Context(..), ContextM, isDebugEnabled, getStorageKeyVal', getAllStorageKeyVals', getDebugMsg, addDebugMsg, clearDebugMsg, putStorageKeyVal', deleteStorageKey', incrementNonce, getNewAddress ) where import Control.Monad.IfElse import Control.Monad.IO.Class import ...
e7904b59d074f6c957148aea953c3a9ea9d9878e326f9da993b42e38ceb7a42b
mfelleisen/Fish
player.rkt
#lang racket ;; this remote player implements the same interface as the player but conveys its arguments ;; to the given TCP out stream and receives the results on the TCP in stream ; ; ...
null
https://raw.githubusercontent.com/mfelleisen/Fish/e942a0c4e1f383b4d155d3911924f633f5b5fd42/Remote/player.rkt
racket
this remote player implements the same interface as the player but conveys its arguments to the given TCP out stream and receives the results on the TCP in stream ...
#lang racket (require Fish/Common/player-interface) (provide (contract-out (make-remote-player (-> input-port? output-port? player/c)))) (require (submod Fish/Common/game-state serialize)) (require (submod Fish/Common/board serialize)) (require (submod Fish/Common/player-interface serialize)) (require (submod ...
c71b3b9558f249dbecfaa7f1e4d7da5f92bf39bdeed53cecdfc84ebd0705db92
den1k/vimsical
project.clj
(defproject vimsical "0.1.0-SNAPSHOT" :dependencies [[org.clojure/clojure "1.9.0-alpha17"] [org.clojure/spec.alpha "0.1.123"] [org.clojure/test.check "0.9.0"]] :source-paths [] ; ignore src/ in all profiles :test-paths [] :clean-targets ^{:protect false} ["resources/public/js/...
null
https://raw.githubusercontent.com/den1k/vimsical/1e4a1f1297849b1121baf24bdb7a0c6ba3558954/project.clj
clojure
ignore src/ in all profiles lein with-profile frontend-dev pprint Common Backend HTTP stack required re-com, but we need a newer version needed as a dep for re-frame.trace re-frame.trace - clone and install to use Custom ring handler for figwheel, match pedestal dependecy vector to avoid conflicts in ...
(defproject vimsical "0.1.0-SNAPSHOT" :dependencies [[org.clojure/clojure "1.9.0-alpha17"] [org.clojure/spec.alpha "0.1.123"] [org.clojure/test.check "0.9.0"]] :test-paths [] :clean-targets ^{:protect false} ["resources/public/js/compiled/" "target/"] :profiles {:dev [{:dependencies Help C...
abb13ae4f1a96ed208b4d00add8bbc72f3e2f0337fcb3304088e0a2537d5ff32
galdor/tungsten
errno.lisp
(in-package :ffi) (defun errno () (%errno))
null
https://raw.githubusercontent.com/galdor/tungsten/5d6e71fb89af32ab3994c5b2daf8b902a5447447/tungsten-ffi/src/ffi/errno.lisp
lisp
(in-package :ffi) (defun errno () (%errno))
210640ac56758715d0b3b2d9c8c06feb8a59a65143fe8b1736828933a1cfbafd
racket/eopl
data-structures.rkt
#lang eopl (require "lang.rkt") ; for expression? (require "store.rkt") ;; (provide (all-from "lang.rkt")) (provide (all-defined-out)) ; too many things to list ;;;;;;;;;;;;;;;; expressed values ;;;;;;;;;;;;;;;; (define-datatype expval expval? (num-val (value number?)) (bool-val ...
null
https://raw.githubusercontent.com/racket/eopl/43575d6e95dc34ca6e49b305180f696565e16e0f/tests/chapter5/thread-lang/data-structures.rkt
racket
for expression? (provide (all-from "lang.rkt")) too many things to list expressed values ;;;;;;;;;;;;;;;; extractors: mutexes ;;;;;;;;;;;;;;;; ref to bool procedures ;;;;;;;;;;;;;;;; used by begin-exp this can't appear in an input identifier continuations ;;;;;;;;;;;;;;;; cont[(- [] (value-of e2 env))] con...
#lang eopl (require "store.rkt") (define-datatype expval expval? (num-val (value number?)) (bool-val (boolean boolean?)) (proc-val (proc proc?)) (list-val (lst (list-of expval?))) (mutex-val (mutex mutex?)) ) (define expval->num (lambda (v) (cases expval v (num-val (num) num...
640fbe6df9624eeb503b944d0eabff255fdfa7c36742d04ec4f6e73ed0b641ef
mvaldesdeleon/haskell-book
where.hs
module Where where let x = 5 in x val1 = x where x = 5 let x = 5 in x * x val2 = x * x where x = 5 let x = 5 ; y = 6 in x * y val3 = x * y where x = 5 y = 6 let x = 3 ; y = 1000 in x + 3 val4 = x + 3 where x = 3 y = 1000 let x = 3 ; y = 1000 in x * 3 + y val5 = x * 3 +...
null
https://raw.githubusercontent.com/mvaldesdeleon/haskell-book/ee4a70708041686abe2f1d951185786119470eb4/ch02/where.hs
haskell
module Where where let x = 5 in x val1 = x where x = 5 let x = 5 in x * x val2 = x * x where x = 5 let x = 5 ; y = 6 in x * y val3 = x * y where x = 5 y = 6 let x = 3 ; y = 1000 in x + 3 val4 = x + 3 where x = 3 y = 1000 let x = 3 ; y = 1000 in x * 3 + y val5 = x * 3 +...
7c042d309ca7cf02ad0ae7b2bebae3d324af2a6bca5fc812abbbc5223dbd11f3
eslick/cl-registry
laura.lisp
(in-package :registry) ;; ;; (defwidget laura () ()) (defun make-laura () (make-instance 'laura)) (defmethod dependencies append ((laura laura)) (list (make-instance 'script-dependency ;; :url "-d.oddcast.com/vhost_embed_functions_v2.php?acc=516572&js=1" :url "" ))) (defmethod render-widget-body ((...
null
https://raw.githubusercontent.com/eslick/cl-registry/d4015c400dc6abf0eeaf908ed9056aac956eee82/attic/laura.lisp
lisp
:url "-d.oddcast.com/vhost_embed_functions_v2.php?acc=516572&js=1" (render-link (f* (say-something)) "Test speech") "&nbsp;" Testing (agent-emote :laugh)
(in-package :registry) (defwidget laura () ()) (defun make-laura () (make-instance 'laura)) (defmethod dependencies append ((laura laura)) (list (make-instance 'script-dependency :url "" ))) (defmethod render-widget-body ((widget laura) &rest args) (declare (ignore args)) (when (get-preference :...
f39dcdce05b14d9090a8fcf9c76e0c382e4d0a9838b97e1e767b20da9a7f9157
8c6794b6/guile-tjit
server.scm
;;; Repl server Copyright ( C ) 2003 , 2010 , 2011 , 2014 Free Software Foundation , Inc. ;; This library is free software; you can redistribute it and/or ;; modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either version 3 of the License , or (...
null
https://raw.githubusercontent.com/8c6794b6/guile-tjit/9566e480af2ff695e524984992626426f393414f/module/system/repl/server.scm
scheme
Repl server This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public either This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR P...
Copyright ( C ) 2003 , 2010 , 2011 , 2014 Free Software Foundation , Inc. version 3 of the License , or ( at your option ) any later version . You should have received a copy of the GNU Lesser General Public Foundation , Inc. , 51 Franklin Street , Fifth Floor , Boston , MA 02110 - 1301 USA (define-modu...
48249daf21b2d0ad7a3c9766596d72e325eeb59966e7ccbec74d2a633e2f9c98
threatgrid/clj-momo
schema.clj
(ns clj-momo.lib.schema (:refer-clojure :exclude [keys])) (defn keys "Get the keys from a schema, looking up :k in each key (if its a map)" [s] (map #(if (map? %) (:k %) %) (clojure.core/keys s)))
null
https://raw.githubusercontent.com/threatgrid/clj-momo/7bc0a411593eee4a939b6a3d0f628413518e09e2/src/clj_momo/lib/schema.clj
clojure
(ns clj-momo.lib.schema (:refer-clojure :exclude [keys])) (defn keys "Get the keys from a schema, looking up :k in each key (if its a map)" [s] (map #(if (map? %) (:k %) %) (clojure.core/keys s)))
f0991452dc683e058a51e1ad7a323b6b898151a1722bf7982eab05b545048736
clojure/core.typed
reflect_utils.clj
Copyright ( c ) , contributors . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be bound by ;...
null
https://raw.githubusercontent.com/clojure/core.typed/f5b7d00bbb29d09000d7fef7cca5b40416c9fa91/typed/checker.jvm/src/clojure/core/typed/checker/jvm/reflect_utils.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) , contributors . (ns ^:skip-wiki clojure.core.typed.checker.jvm.reflect-utils (:require [clojure.reflect :as reflect] [clojure.string :as str]) (:import (clojure.lang RT))) (defn reflect [obj & options] (apply reflect/type-reflect (if (class? obj) obj (class obj)) ...
ece12aacb074980175b12017103e04785c7a15b153d0b660ba592b7c1f2485b6
luqui/quantum-arrow
Tests.hs
{-# LANGUAGE Arrows #-} import Test.QuickCheck import Data.Complex import Control.Arrow import QuantumArrow.Quantum import Control.Monad import Control.Monad.Random import Text.Printf type Q = Quantum (Rand StdGen) main = forM_ tests $ \(s,a) -> do printf "%-25s: " s >> quickCheck a tests = ["simple443" -->...
null
https://raw.githubusercontent.com/luqui/quantum-arrow/0eb9c4b0cd8e63ea320b15d8721da4f81c37044a/Tests.hs
haskell
# LANGUAGE Arrows # > prop_simple443 > prop_interfere1 > prop_interfere3 > prop_perlExample >) = (,) it's the double slit experiment! (spiritually) hmm, that's strange. Let's try to see what's going on we're testing that it actually didn't interfere here because not "passed" odd, let's try it another way stand-...
import Test.QuickCheck import Data.Complex import Control.Arrow import QuantumArrow.Quantum import Control.Monad import Control.Monad.Random import Text.Printf type Q = Quantum (Rand StdGen) main = forM_ tests $ \(s,a) -> do printf "%-25s: " s >> quickCheck a > prop_interfere2 > prop_nonCollapse ] w...
522d62c70369470583625ef74f5438b8c2a9b62bf86905546a2a88c05bd6d8e0
xtdb/core2
direct_sql_test.clj
(ns core2.sql.logic-test.direct-sql-test (:require [core2.sql.logic-test.runner :as slt])) (slt/def-slt-test direct-sql--dml {:direct-sql true}) (slt/def-slt-test direct-sql--gcse-statistics {:direct-sql true}) (slt/def-slt-test direct-sql--numeric-value-functions-6.28 {:direct-sql true}) (slt/def-slt-test direct-sq...
null
https://raw.githubusercontent.com/xtdb/core2/3adeb391ca4dd73a3f79faba8024289376597d23/src/test/clojure/core2/sql/logic_test/direct_sql_test.clj
clojure
(ns core2.sql.logic-test.direct-sql-test (:require [core2.sql.logic-test.runner :as slt])) (slt/def-slt-test direct-sql--dml {:direct-sql true}) (slt/def-slt-test direct-sql--gcse-statistics {:direct-sql true}) (slt/def-slt-test direct-sql--numeric-value-functions-6.28 {:direct-sql true}) (slt/def-slt-test direct-sq...
c380c116bf2607d9217aa5c96788343b7095e9b688cc12d3ae5939877f8612c6
PrincetonUniversity/lucid
ExplicitReturns.ml
open Batteries open Syntax open Collections (*** Rewrites the program to make the control flow of returns explicit; i.e. to ensure no code ever appears after a return statement on any control path. This is necessary to make inlining work, since inlining turns returns into regular assignment statements, ...
null
https://raw.githubusercontent.com/PrincetonUniversity/lucid/dc51a0f781e8f1edb7e9689203fdf57daa7ffd10/src/lib/frontend/transformations/ExplicitReturns.ml
ocaml
** Rewrites the program to make the control flow of returns explicit; i.e. to ensure no code ever appears after a return statement on any control path. This is necessary to make inlining work, since inlining turns returns into regular assignment statements, which don't terminate computation. ** Assign t...
open Batteries open Syntax open Collections type env = Id.t IdMap.t let insert_retvar retvar s = let v = object inherit [_] s_map method! visit_exp _ e = e method! visit_SRet _ e = let asn = sassign retvar (value_to_exp (vbool true)) in SSeq (asn, sret_sp e Span.default) ...
6c4e1e62c77978c38c9c75d6c433f95508f44bcca03b907e364449ef0d8c13fd
janestreet/bonsai
main.ml
open! Core open! Bonsai_web open Bonsai.Let_syntax module Size_hooks = Bonsai_web_ui_element_size_hooks module Page = struct type t = | Bulk_size | Size | Visibility | Resizer | Fit | Position [@@deriving enumerate, sexp, compare, equal] end module Size = struct type t = { width : fl...
null
https://raw.githubusercontent.com/janestreet/bonsai/782fecd000a1f97b143a3f24b76efec96e36a398/examples/element_size_util/main.ml
ocaml
open! Core open! Bonsai_web open Bonsai.Let_syntax module Size_hooks = Bonsai_web_ui_element_size_hooks module Page = struct type t = | Bulk_size | Size | Visibility | Resizer | Fit | Position [@@deriving enumerate, sexp, compare, equal] end module Size = struct type t = { width : fl...
a570b7e3b4fa8302adc32715072f5eb3edd2eb74a99bebf4625c124121113285
pyr/net
echo_http.clj
(ns server.echo-http (:require [net.http.server :as http] [clojure.core.async :as a] [clojure.tools.logging :refer [info]])) (defn ->port [^String s] (try (Long/parseLong s) (catch Exception _))) (defn echo-handler [request] {:status 200 :headers {:connection "cl...
null
https://raw.githubusercontent.com/pyr/net/beb49c26c1450df1264b940313bee5ed8559b717/examples/server/echo_http.clj
clojure
(ns server.echo-http (:require [net.http.server :as http] [clojure.core.async :as a] [clojure.tools.logging :refer [info]])) (defn ->port [^String s] (try (Long/parseLong s) (catch Exception _))) (defn echo-handler [request] {:status 200 :headers {:connection "cl...
9fa874c0c9cfe021e4d15bb439cbd8c356f09760f6c44fccbdfe0aefba0a8760
xh4/web-toolkit
package.lisp
(in-package :cl-user) (defpackage :documentation (:nicknames :doc :wt.documentation :wt.doc) (:use :cl :alexandria) (:shadow :documentation) (:shadowing-import-from :reactive :variable) (:import-from :http :define-server :router :listener :heade...
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/documentation/package.lisp
lisp
(in-package :cl-user) (defpackage :documentation (:nicknames :doc :wt.documentation :wt.doc) (:use :cl :alexandria) (:shadow :documentation) (:shadowing-import-from :reactive :variable) (:import-from :http :define-server :router :listener :heade...
2750ec0e3001d482e1bc8f59f864412a6c1669b5aca8d97734e803e9eb759b3d
ulrikstrid/reason-oidc-provider
Jwk.ml
type t = { alg: string; kty: string; use: string; n: string; e: string; kid: string; x5t: string; } let empty = { alg = ""; kty = ""; use = ""; n = ""; e = ""; kid = ""; x5t = ""; } let trim_leading_null s = Astring.String.trim ~drop:(function '\000' -> true | _ -> false) s let make (rs...
null
https://raw.githubusercontent.com/ulrikstrid/reason-oidc-provider/3f67eaa5a4d0f2f47b61fcb1d9f1d1d7b637c697/libs/jose/Jwk.ml
ocaml
type t = { alg: string; kty: string; use: string; n: string; e: string; kid: string; x5t: string; } let empty = { alg = ""; kty = ""; use = ""; n = ""; e = ""; kid = ""; x5t = ""; } let trim_leading_null s = Astring.String.trim ~drop:(function '\000' -> true | _ -> false) s let make (rs...
3466ac3d47139a7e138552914ee10b0c2efffa88368803e2c6ba3131dd7764fa
backtracking/mlpost
draw.mli
(**************************************************************************) (* *) Copyright ( C ) Johannes Kanig , , and (* *) (* This software is f...
null
https://raw.githubusercontent.com/backtracking/mlpost/bd4305289fd64d531b9f42d64dd641d72ab82fd5/src/draw.mli
ocaml
************************************************************************ This software is free software; you can redistribute it and/or described in file LICENSE....
Copyright ( C ) Johannes Kanig , , and modify it under the terms of the GNU Library General Public License version 2.1 , with the special exception on linking val draw_tex : Cairo.context -> Gentex.t -> unit module MetaPath : sig type pen = Matrix.t val st...
44d5f692e039aa65a78febeec46215c24448a51c6f76ed5f1e654b140ccbd17a
pfdietz/ansi-test
division-aux.lsp
;-*- Mode: Lisp -*- Author : Created : Mon Sep 1 07:57:02 2003 ;;;; Contains: Aux. functions for testing / (defun divide-by-zero-test (&rest args) (handler-case (progn (apply #'/ args) (values)) (division-by-zero () (values)) (condition (c) c)))
null
https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/auxiliary/division-aux.lsp
lisp
-*- Mode: Lisp -*- Contains: Aux. functions for testing /
Author : Created : Mon Sep 1 07:57:02 2003 (defun divide-by-zero-test (&rest args) (handler-case (progn (apply #'/ args) (values)) (division-by-zero () (values)) (condition (c) c)))
b4c263a0cfece6bfd27084d3662a4e3d39fd4988dc81ad7d7a9e6530148a358c
sethfowler/pygmalion
TemplateFunctions.hs
# LANGUAGE QuasiQuotes # module TemplateFunctions (testTemplateFunctions) where import Pygmalion.Test import Pygmalion.Test.TH testTemplateFunctions = runPygmalionTest "template-functions.cpp" $ [pygTest| template<int N> int foo(const char (&v)[N]) { return N; } int main(int argc, char...
null
https://raw.githubusercontent.com/sethfowler/pygmalion/d58cc3411d6a17cd05c3b0263824cd6a2f862409/tests/TemplateFunctions.hs
haskell
# LANGUAGE QuasiQuotes # module TemplateFunctions (testTemplateFunctions) where import Pygmalion.Test import Pygmalion.Test.TH testTemplateFunctions = runPygmalionTest "template-functions.cpp" $ [pygTest| template<int N> int foo(const char (&v)[N]) { return N; } int main(int argc, char...
bee5a0bf17a994cc537bf3b847c5038a88f9b6a92ffb506a7829b523080b5e6d
antono/guix-debian
activation.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2013 , 2014 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU 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 t...
null
https://raw.githubusercontent.com/antono/guix-debian/85ef443788f0788a62010a942973d4f7714d10b4/guix/build/activation.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2013 , 2014 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (guix build activation) #:use-module (guix build utils) #:use-module (guix build linux-i...