_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
8d0bc2003319da827fcc2d228461271d041bc0048de97e6f649147231dbfdde9
bobzhang/fan
compile_stream.ml
open Astf open Ast_gen identifiers referenced : { [ peek junk sempty NotConsumed count Error t ising lsing icons ] } identifiers referenced: {[ peek junk sempty NotConsumed count Error t ising lsing icons lcons iapp lapp slazy sempty ]} *) type spat_comp = | When of loc * pat...
null
https://raw.githubusercontent.com/bobzhang/fan/7ed527d96c5a006da43d3813f32ad8a5baa31b7f/src/main/compile_stream.ml
ocaml
pat with predicate pat with pattern match pat as stream [exp option] is for the error message default module name ["Stream"] for compatibility * BOOTSTRAPPING, associated with module fstream Predicate whether the expression is a constructor application Utilities for [Stream] optimizations inlining Si...
open Astf open Ast_gen identifiers referenced : { [ peek junk sempty NotConsumed count Error t ising lsing icons ] } identifiers referenced: {[ peek junk sempty NotConsumed count Error t ising lsing icons lcons iapp lapp slazy sempty ]} *) type spat_comp = type stre...
6153483c31f964533cb9d02fd56b073a4a6d3aaa18cbe069c32b88811419f78d
racket/racket7
mksystem.rkt
(module mkincludes '#%kernel ;; Arguments are < output - file > [ < cpp - command > < 3m - exe - suffix > < run - racket - command > < this - racket - command > ] (define-values (args) (current-command-line-arguments)) (define-values (ht) (if (if (= (vector-length args) 1) #t (e...
null
https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/src/racket/mksystem.rkt
racket
Arguments are Not cross-compiling use to get details
(module mkincludes '#%kernel < output - file > [ < cpp - command > < 3m - exe - suffix > < run - racket - command > < this - racket - command > ] (define-values (args) (current-command-line-arguments)) (define-values (ht) (if (if (= (vector-length args) 1) #t (equal? (vector-ref a...
36ab01f4dfa0cb063ad6519887f024f5e56063dc44bd3657d80fb2ed1176545d
rtrusso/scp
string.scm
(define test-case-number 0) (define-syntax test (syntax-rules () ((_ expression) (begin (set! test-case-number (+ test-case-number 1)) (display "case ") (display test-case-number) (display ": ") (newline) (write 'expression) (d...
null
https://raw.githubusercontent.com/rtrusso/scp/2051e76df14bd36aef81aba519ffafa62b260f5c/src/tests/string.scm
scheme
(define test-case-number 0) (define-syntax test (syntax-rules () ((_ expression) (begin (set! test-case-number (+ test-case-number 1)) (display "case ") (display test-case-number) (display ": ") (newline) (write 'expression) (d...
32499e0f0f0ba48fa8fba0fbb84544ffb540730968fe52a56b69db48333f165a
EligiusSantori/L2Apf
reply_join_party.scm
l2j / gameserver / serverpackets / (module system racket/base (require "../../packet.scm") (provide game-server-packet/reply-join-party) (define (game-server-packet/reply-join-party buffer) (let ((s (open-input-bytes buffer))) (list (cons 'id (read-byte s)) (cons 'accept? (not (zero? (read-int32 #f ...
null
https://raw.githubusercontent.com/EligiusSantori/L2Apf/30ffe0828e8a401f58d39984efd862c8aeab8c30/packet/game/server/reply_join_party.scm
scheme
l2j / gameserver / serverpackets / (module system racket/base (require "../../packet.scm") (provide game-server-packet/reply-join-party) (define (game-server-packet/reply-join-party buffer) (let ((s (open-input-bytes buffer))) (list (cons 'id (read-byte s)) (cons 'accept? (not (zero? (read-int32 #f ...
bf5bfaee5dd4d95996e51a07c95351eaade89741430d9c4e33e0a54101bbedf4
finkel-lang/finkel
Setup.hs
| Custom setup script to pass command line options to happy and . -- Passing " --ghc " option to and happy manually . When stack add -- supports for passing command line options to arbitrary program used -- during build, this script could be removed. -- module Main where -- base import Data.Char ...
null
https://raw.githubusercontent.com/finkel-lang/finkel/c3c7729d5228bd7e0cf76e8ff05fe2f79a0ec0a2/finkel-kernel/Setup.hs
haskell
supports for passing command line options to arbitrary program used during build, this script could be removed. base filepath | Main function for setup. Setup some addicional flags for /alex/ and /happy/, and emit C header files with C macros for all components. Happy can take `--strict' flag, which adds st...
| Custom setup script to pass command line options to happy and . Passing " --ghc " option to and happy manually . When stack add module Main where import Data.Char (isSpace) import Data.Function (on) import Data.List (unionBy) Ca...
9966276b98e7e6227291e36459c358cae627258e799d6998d9608f4f97f95666
geophf/1HaskellADay
Solution.hs
# LANGUAGE TupleSections # module Y2021.M03.D16.Solution where - Yesterday we did some simple improvements to help unclutter our word - cloud . Today , we 're going to look at stemming words to see how that can help . Also , we had too many ticks in our word - cloud ( ' ) ... ticks at the beginning and ends...
null
https://raw.githubusercontent.com/geophf/1HaskellADay/514792071226cd1e2ba7640af942667b85601006/exercises/HAD/Y2021/M03/D16/Solution.hs
haskell
} for Down } } } rewrite the file out as a flattened list of words note that cleanedDoc and rewrite have the same signature, but do different things. OR. DO. THEY? - >>> rewrite "Y2021/M03/D16/rerealized.txt" rreals - What does the new word-cloud look like now? ----------------------------------------------------...
# LANGUAGE TupleSections # module Y2021.M03.D16.Solution where - Yesterday we did some simple improvements to help unclutter our word - cloud . Today , we 're going to look at stemming words to see how that can help . Also , we had too many ticks in our word - cloud ( ' ) ... ticks at the beginning and ends...
8c43b886977fbe5eaa533d7d5f2056238e256a6755be128ab9ac40f97e036863
haskell-waargonaut/waargonaut
Generics.hs
{-# LANGUAGE OverloadedStrings #-} module Generics ( genericsTests ) where import Test.Tasty (TestTree, testGroup) import Test.Tasty.HUnit (Assertion, testCase, (@?=)) import Waargonaut.Encode (Encoder) import qualified Waargonaut.Encode as E import qualified Types.Commo...
null
https://raw.githubusercontent.com/haskell-waargonaut/waargonaut/ba1dbbc170c2279749ea29bc8aaf375bdb659ad2/test/Generics.hs
haskell
# LANGUAGE OverloadedStrings #
module Generics ( genericsTests ) where import Test.Tasty (TestTree, testGroup) import Test.Tasty.HUnit (Assertion, testCase, (@?=)) import Waargonaut.Encode (Encoder) import qualified Waargonaut.Encode as E import qualified Types.Common as C import qualified Waar...
9a5ed015b8202d1b3d4c32ec9936469eae5410b05188f86ec66dc406601e9b5b
cse-bristol/110-thermos-ui
context.cljc
This file is part of THERMOS , copyright © Centre for Sustainable Energy , 2017 - 2021 Licensed under the Reciprocal Public License v1.5 . See LICENSE for licensing details . (ns thermos-frontend.chart.context (:require [reagent.core :as reagent])) (defn create [n] #?(:cljs (js/React.createContext n))) (defmac...
null
https://raw.githubusercontent.com/cse-bristol/110-thermos-ui/e13b96329f3c95e5a10bae431e8ae9bccdb475f4/src/thermos_frontend/chart/context.cljc
clojure
This file is part of THERMOS , copyright © Centre for Sustainable Energy , 2017 - 2021 Licensed under the Reciprocal Public License v1.5 . See LICENSE for licensing details . (ns thermos-frontend.chart.context (:require [reagent.core :as reagent])) (defn create [n] #?(:cljs (js/React.createContext n))) (defmac...
41e74cbb69e498ac09cb04a582a37a780c8fc0e6c574953b512df5dd8886d7df
ciderpunx/57-exercises-for-programmers
P01Hello.hs
module P01Hello where main :: IO () main = do putStr "What is your name? " name <- getLine putStrLn $ chooseGreet name chooseGreet :: String -> String chooseGreet name = case name of "Charlie" -> "Greetings, professor. How about a nice game of chess?" "David Cameron" -> "PIGFUCKER!" _ ...
null
https://raw.githubusercontent.com/ciderpunx/57-exercises-for-programmers/25958ab80cc3edc29756d3bddd2d89815fd390bf/src/P01Hello.hs
haskell
module P01Hello where main :: IO () main = do putStr "What is your name? " name <- getLine putStrLn $ chooseGreet name chooseGreet :: String -> String chooseGreet name = case name of "Charlie" -> "Greetings, professor. How about a nice game of chess?" "David Cameron" -> "PIGFUCKER!" _ ...
66a7e50d079f99ee87c4e3215a88ed29c8dec4a9f26a73742ac3abd1ecf9f06d
axelarge/advent-of-code
day25_test.clj
(ns advent-of-code.y2015.day25-test (:require [clojure.test :refer :all] [advent-of-code.y2015.day25 :refer :all])) (deftest test-solve1 (is (= (solve1 input) 19980801)))
null
https://raw.githubusercontent.com/axelarge/advent-of-code/4c62a53ef71605780a22cf8219029453d8e1b977/test/advent_of_code/y2015/day25_test.clj
clojure
(ns advent-of-code.y2015.day25-test (:require [clojure.test :refer :all] [advent-of-code.y2015.day25 :refer :all])) (deftest test-solve1 (is (= (solve1 input) 19980801)))
01f2e2356e8fa1f1ce54d7b6d23b696a5440df4276b1bb03419f46a4b412e7d4
tari3x/csec-modex
settings.ml
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Cryptographic protocol verifier * * * ...
null
https://raw.githubusercontent.com/tari3x/csec-modex/5ab2aa18ef308b4d18ac479e5ab14476328a6a50/deps/cryptoverif1.12/src/settings.ml
ocaml
Types and constants should be added to the initial environment, as well as f_not Types For precise computation of the runtime only For events in terms; they have a type compatible with any type Constants Functions Create tuple function of given type For precise computation of the runtime only
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Cryptographic protocol verifier * * * ...
30788ffcbdcc232f6e4714f2e12ae07301c6f24aaadffc9de66e0f6edb04387f
cronburg/antlr-haskell
GLRPartialGrammar.hs
# LANGUAGE DeriveAnyClass , DeriveGeneric , TypeFamilies , QuasiQuotes , DataKinds , ScopedTypeVariables , OverloadedStrings , TypeSynonymInstances , FlexibleInstances , UndecidableInstances , FlexibleContexts , TemplateHaskell , DeriveDataTypeable # , DataKinds, ScopedTypeVariables, OverloadedStr...
null
https://raw.githubusercontent.com/cronburg/antlr-haskell/7a9367038eaa58f9764f2ff694269245fbebc155/test/lr/GLRPartialGrammar.hs
haskell
# LANGUAGE DeriveAnyClass , DeriveGeneric , TypeFamilies , QuasiQuotes , DataKinds , ScopedTypeVariables , OverloadedStrings , TypeSynonymInstances , FlexibleInstances , UndecidableInstances , FlexibleContexts , TemplateHaskell , DeriveDataTypeable # , DataKinds, ScopedTypeVariables, OverloadedStr...
9a4133f6d1ebfe57e50c72ff61ab2d9fda5ec524b1dea393beb6c3d3f3ee035b
karamellpelle/grid
DrawPath.hs
grid is a game written in Haskell Copyright ( C ) 2018 -- -- This file is part of grid. -- -- grid is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or -- (at your optio...
null
https://raw.githubusercontent.com/karamellpelle/grid/56729e63ed6404fd6cfd6d11e73fa358f03c386f/designer/source/Game/Grid/Output/Fancy/DrawPath.hs
haskell
This file is part of grid. grid is free software: you can redistribute it and/or modify (at your option) any later version. grid is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GN...
grid is a game written in Haskell Copyright ( C ) 2018 it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License module Game.Grid.Output.Fancy.DrawPath ( draw...
28d660a6e651e964dc6b635f347aba40a24c95419f654edee46317d15af90e7a
ucsd-progsys/nate
ocaml_arch.ml
(***********************************************************************) (* ocamlbuild *) (* *) , , projet Gallium , INRIA Rocquencourt (* ...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/ocamlbuild/ocaml_arch.ml
ocaml
********************************************************************* ocamlbuild ...
, , projet Gallium , INRIA Rocquencourt Copyright 2007 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 : ocaml_arch.ml , v 1.1 2007/02/07 08:59:14 er...
2c34936df969ebf3f53b079a7dd9ab877796ed8b544368cb7d6c9cec6628604b
Mesabloo/nihil
Atom.hs
module Nihil.Syntax.Concrete.Parser.Type.Atom ( pAtom ) where import Nihil.Syntax.Common (Parser) import Nihil.Syntax.Concrete.Core import Nihil.Syntax.Concrete.Parser import Nihil.Syntax.Concrete.Parser.Identifier import Nihil.Syntax.Concrete.Parser.Type.Tuple import Nihil.Syntax.Concrete.Parser.Type.Record import Ni...
null
https://raw.githubusercontent.com/Mesabloo/nihil/3821052ca5691a6492b23bd8a46bfe70567d374f/src/parser/Nihil/Syntax/Concrete/Parser/Type/Atom.hs
haskell
# SOURCE #
module Nihil.Syntax.Concrete.Parser.Type.Atom ( pAtom ) where import Nihil.Syntax.Common (Parser) import Nihil.Syntax.Concrete.Core import Nihil.Syntax.Concrete.Parser import Nihil.Syntax.Concrete.Parser.Identifier import Nihil.Syntax.Concrete.Parser.Type.Tuple import Nihil.Syntax.Concrete.Parser.Type.Record import Ni...
0e7e86fa39ec2aabf9bb44b135fa473199dd5850b919d3893be1248847ffe968
herd/herdtools7
handler.ml
(****************************************************************************) (* the diy toolsuite *) (* *) , University College London , UK . , INRIA Par...
null
https://raw.githubusercontent.com/herd/herdtools7/b86aec8db64f8812e19468893deb1cdf5bbcfb83/herd/handler.ml
ocaml
************************************************************************** the diy toolsuite en Automatique and ...
, University College London , UK . , INRIA Paris - Rocquencourt , France . Copyright 2013 - present Institut National de Recherche en Informatique et This software is governed by the CeCILL - B license under French law and modify and/ or redistribu...
b1c38d62271cab8ec5a139640d05a4e5b900d6d336b658bdf1f70389d462923c
cloojure/tupelo
quote.cljc
Copyright ( c ) . 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 agreeing to be bound by th...
null
https://raw.githubusercontent.com/cloojure/tupelo/4105fefbb1c4d1b2f06fa4993f9dd007e5e41e00/src/cljc/tupelo/quote.cljc
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 th...
Copyright ( c ) . All rights reserved . (ns tupelo.quote See " ClojureScript Macro Tower & Loop " by ( 2015 - 12 - 18 ) #?(:cljs (:require-macros [tupelo.quote])) (:require [clojure.walk :as walk] [tupelo.core :as t :refer [glue grab thru kw->str validate it-> spyx spyxx vals->map ...
a3439b81f92811406ddd81cfadd6d962271be9f2f412f328e7019d9bd5bac820
weavejester/codox
defproto.clj
(ns codox.typed.defproto (:refer-clojure :exclude [defprotocol fn]) (:require [clojure.core.typed :as t :refer [defprotocol fn Int Num]])) (defprotocol Foo (is-foo [this, a :- Num] :- Num) (is-bar [this, a :- Int] :- Int [this, b :- Num] :- Num) (is-baz [this, a :- Int] :- Int [this, a :-...
null
https://raw.githubusercontent.com/weavejester/codox/bc41c2bbc270f52bceba095e57be30de80b892e0/example/src-typed/clojure/codox/typed/defproto.clj
clojure
(ns codox.typed.defproto (:refer-clojure :exclude [defprotocol fn]) (:require [clojure.core.typed :as t :refer [defprotocol fn Int Num]])) (defprotocol Foo (is-foo [this, a :- Num] :- Num) (is-bar [this, a :- Int] :- Int [this, b :- Num] :- Num) (is-baz [this, a :- Int] :- Int [this, a :-...
7e6fda43a90e9a63002826bab95bf15d4d1ebfe556d79bcba024cf9f0115d77d
skanev/playground
31-tests.scm
(require rackunit rackunit/text-ui) (load-relative "../../support/eopl.scm") (load-relative "../31.scm") (define eopl-2.31-tests (test-suite "Tests for EOPL exercise 2.31" (check-equal? (parse '(- - 3 2 - 4 - 12 7)) (diff-exp (diff-exp (const-exp 3) (const-exp 2)) ...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/eopl/02/tests/31-tests.scm
scheme
(require rackunit rackunit/text-ui) (load-relative "../../support/eopl.scm") (load-relative "../31.scm") (define eopl-2.31-tests (test-suite "Tests for EOPL exercise 2.31" (check-equal? (parse '(- - 3 2 - 4 - 12 7)) (diff-exp (diff-exp (const-exp 3) (const-exp 2)) ...
fda2b98e05121255efd7fd5a2ed3a88ce1eb2b03a8d0ef7fafef5180bdcaeb30
lambe-lang/compiler
type_subsume.ml
open Lambe_checker.Context open Lambe_checker.Gamma open Lambe_checker.Type.Checker.Operator open Dsl.Types module K = Dsl.Kinds let test_case_000 () = let expected = true and computed, _ = Helpers.k_set [ "a", K.star ] |- (v "a" <? v "a") Variables.create in Alcotest.(check bool) "should accept a <? a" ex...
null
https://raw.githubusercontent.com/lambe-lang/compiler/79d7937c06ca30e231855ec4ce99012ca0395cd5/test/checker/type_subsume.ml
ocaml
open Lambe_checker.Context open Lambe_checker.Gamma open Lambe_checker.Type.Checker.Operator open Dsl.Types module K = Dsl.Kinds let test_case_000 () = let expected = true and computed, _ = Helpers.k_set [ "a", K.star ] |- (v "a" <? v "a") Variables.create in Alcotest.(check bool) "should accept a <? a" ex...
789c20387dd07616545c95504f785241a85ab23f4f47614d97a00fcf7aa9841d
mcna/closer-mop
closer-mcl.lisp
(in-package :closer-mop) ;; We need a new standard-class for various things. (defclass standard-class (cl:standard-class) ()) (define-validate-superclass-method standard-class cl:standard-class) (defmethod ccl::create-reader-method-function ((class standard-class) (reader-method-class standard...
null
https://raw.githubusercontent.com/mcna/closer-mop/f0ee095aee92743beea783dd112dc4f5682ef03b/closer-mcl.lisp
lisp
We need a new standard-class for various things.
(in-package :closer-mop) (defclass standard-class (cl:standard-class) ()) (define-validate-superclass-method standard-class cl:standard-class) (defmethod ccl::create-reader-method-function ((class standard-class) (reader-method-class standard-reader-method) (dslotd standard-direct-...
442ceb417d8e1a168d06b1ebaf65648f7ae7fa7c353cc1e7187c9436c680d368
clash-lang/clash-compiler
Testbench.hs
| Copyright : ( C ) 2013 - 2016 , University of Twente , 2017 , Google Inc. 2019 , Myrtle Software Ltd , 2021 , QBayLogic B.V. License : BSD2 ( see the file LICENSE ) Maintainer : QBayLogic B.V. < > Copyright : (C) 2013-20...
null
https://raw.githubusercontent.com/clash-lang/clash-compiler/5f632b4817637fc720cb4a3fd827722772595059/clash-prelude/src/Clash/Prelude/Testbench.hs
haskell
# OPTIONS_HADDOCK show-extensions # function is used by 'outputVerifier''. === Usage in @clashi@ #assert-clashi# computation, and warnings will once again be emitted. __NB__: This function /can/ be used in synthesizable designs. ^ Additional message ^ Checked value ^ Expected value ^ Return value | The same...
| Copyright : ( C ) 2013 - 2016 , University of Twente , 2017 , Google Inc. 2019 , Myrtle Software Ltd , 2021 , QBayLogic B.V. License : BSD2 ( see the file LICENSE ) Maintainer : QBayLogic B.V. < > Copyright : (C) 2013-20...
c6d0dbf3a9f3de6d2e41ef87c19c5a9a70b1000aa1f88a4062389f0aa350d569
drfloob/ezic
ezic_rule_tests.erl
-module(ezic_rule_tests). -include("include/ezic.hrl"). -include_lib("eunit/include/eunit.hrl"). project_next_test_() -> [ % simple UTC example ?_assertEqual({2010, {{2010,11,10},{16,20,0}}}, ezic_rule:project_next( #rule{from=1984, to=2032, in=11, on=10, at=#tztime{time={16,20,0}, flag=u}}...
null
https://raw.githubusercontent.com/drfloob/ezic/d95e92d1dc5ac763558da52c271b8a1b76f48122/test/ezic_rule_tests.erl
erlang
simple UTC example skip a year UTC example no solution
-module(ezic_rule_tests). -include("include/ezic.hrl"). -include_lib("eunit/include/eunit.hrl"). project_next_test_() -> [ ?_assertEqual({2010, {{2010,11,10},{16,20,0}}}, ezic_rule:project_next( #rule{from=1984, to=2032, in=11, on=10, at=#tztime{time={16,20,0}, flag=u}} , {-5,0,0}, {-1,0,...
71bf2df07c5a5c4aa387ef12749c3830920501a1287c073dd75e3a48acda30f4
ujamjar/hardcaml-zinc
helloworld.ml
(* Our most basic test. Just print hello world. *) let () = print_endline "Hello world!"
null
https://raw.githubusercontent.com/ujamjar/hardcaml-zinc/ad9360a66ddd239550623e3a92fe5328934706fa/test/examples/helloworld.ml
ocaml
Our most basic test. Just print hello world.
let () = print_endline "Hello world!"
f034a9f11e99f661d7a02daf3159274fb3f6ae6bca4fe6a112bf7334057ab341
alco/erlang-mix-project
testproj.erl
-module(testproj). -export([start/2]). start(_Type, _Args) -> {ok,self()}.
null
https://raw.githubusercontent.com/alco/erlang-mix-project/908f8db9838ee05759c2937909d3b0cfe1a70a23/src/testproj.erl
erlang
-module(testproj). -export([start/2]). start(_Type, _Args) -> {ok,self()}.
6dae7cc8642ae3952e740ee9f8e0d1fe3a977cd961bac720fa413d91ee395449
esl/MongooseIM
mongoose_api_common.erl
%%%------------------------------------------------------------------- @author ( C ) 2016 , Erlang Solutions Ltd. Created : 20 . Jul 2016 10:16 %%%------------------------------------------------------------------- %%% @doc Utilities for the REST API -module(mongoose_api_common). -author("ludwikbukowski"). %%...
null
https://raw.githubusercontent.com/esl/MongooseIM/0a7164fd074dfc488af3c87ac0be80d026d992f8/src/mongoose_api_common.erl
erlang
------------------------------------------------------------------- ------------------------------------------------------------------- @doc Utilities for the REST API API -------------------------------------------------------------------- Authorization --------------------------------------------------------------...
@author ( C ) 2016 , Erlang Solutions Ltd. Created : 20 . Jul 2016 10:16 -module(mongoose_api_common). -author("ludwikbukowski"). -export([get_auth_details/1, is_known_auth_method/1, make_unauthorized_response/2, check_password/2]). -spec get_auth_details(cowboy_req:req()) -> ...
d40c87c1cbc4ff6435943569ae5616ab982970bf5e3be06930878eaee4c5bb09
michalkonecny/aern2
Tests.hs
# LANGUAGE CPP # -- #define DEBUG | Module : AERN2.Poly . Cheb . Tests Description : Tests for Chebyshev - basis polynomials Copyright : ( c ) : : Stability : experimental Portability : portable Tests for Chebyshev - basis polynomials ...
null
https://raw.githubusercontent.com/michalkonecny/aern2/1c8f12dfcb287bd8e3353802a94865d7c2c121ec/aern2-fun-univariate/src/AERN2/PPoly/Tests.hs
haskell
#define DEBUG test - arguments " -a 100 -m ChPoly " test-arguments "-a 100 -m ChPoly" ( specChPoly, tPPoly , ChPolyConstruction(..) , chPolyFromOps , arbitraryWithMinOpsDom , arbitraryWithDegDom , makeFnSmallRange , makeFnPositiveSmallRange ) import qualified Data.Set as Set import AERN2.Poly.Basics x ...
# LANGUAGE CPP # | Module : AERN2.Poly . Cheb . Tests Description : Tests for Chebyshev - basis polynomials Copyright : ( c ) : : Stability : experimental Portability : portable Tests for Chebyshev - basis polynomials To run the tests ...
ab0c71bc62cda1e0f22213e97f4d1290f9239c4b10999d765cf4b0fda4246753
bravit/hid-examples
view-generic.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DataKinds # # LANGUAGE TypeOperators # import GHC.Generics data Status = Ok | Err deriving (Show, Eq, Generic) data Request = Request String Int deriving Generic okVal = from Ok errVal :: D1 ('MetaData "Status" "Main" "main" 'False) (C1 ('MetaCons "Ok" 'Prefi...
null
https://raw.githubusercontent.com/bravit/hid-examples/913e116b7ee9c7971bba10fe70ae0b61bfb9391b/ch12/generics/view-generic.hs
haskell
# LANGUAGE DeriveGeneric # # LANGUAGE DataKinds # # LANGUAGE TypeOperators # import GHC.Generics data Status = Ok | Err deriving (Show, Eq, Generic) data Request = Request String Int deriving Generic okVal = from Ok errVal :: D1 ('MetaData "Status" "Main" "main" 'False) (C1 ('MetaCons "Ok" 'Prefi...
dc74757d17026f8027ab4f41f39f9f830283a600a85ef7d9c1fbb5b0fb002be7
death/zonquerer
deploy.lisp
(ql:quickload "deploy") (deploy:define-resource-directory assets #p"assets/") (asdf:make "zonquerer")
null
https://raw.githubusercontent.com/death/zonquerer/2a0ff29b9d974fc66addb9126f1638f4d5d071cb/deploy.lisp
lisp
(ql:quickload "deploy") (deploy:define-resource-directory assets #p"assets/") (asdf:make "zonquerer")
29c4e9e7dad31b6ce041bfe70074d08ec9187e08d2906da25c8e24a4b1c53e87
twosigma/waiter
main.clj
;; Copyright ( c ) Two Sigma Open Source , LLC ;; 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...
null
https://raw.githubusercontent.com/twosigma/waiter/fa1d028f61f92c8be15ddb45cfa743b92eeb4058/waiter/src/waiter/main.clj
clojure
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 permi...
Copyright ( c ) Two Sigma Open Source , LLC distributed under the License is distributed on an " AS IS " BASIS , (ns waiter.main (:gen-class) (:require [clj-time.core :as t] [clojure.core.async :as async] [clojure.java.io :as io] [clojure.java.shell :as sh] [cloju...
55e2c8659d50174333acded9ab06e545692924430ed1431bd04121ddbd4820c9
pallet/clj-jclouds
predicate.clj
; Licensed to the Apache Software Foundation ( ASF ) under one or more ; contributor license agreements. See the NOTICE file distributed with ; this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License , Version 2.0 ( the " License " ) ; you ma...
null
https://raw.githubusercontent.com/pallet/clj-jclouds/dabb71487f7cc5398b7eaa07a8eb58400025259e/src/com/palletops/jclouds/predicate.clj
clojure
contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. you may not use this file except in compliance with -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND...
Licensed to the Apache Software Foundation ( ASF ) under one or more The ASF licenses this file to You under the Apache License , Version 2.0 the License . You may obtain a copy of the License at distributed under the License is distributed on an " AS IS " BASIS , (ns com.palletops.jclouds.predicate) (defpr...
bcf66584e0ebde34b37599e5522b49bb252de8e4a736a63e33510128d7f1bdaf
jkk/formative
render.cljc
(ns formative.render (:require [formative.data :as data] [formative.util :as fu] [clojure.string :as string])) (defmulti render-form "Renders a form, dispatching on :renderer in form-attrs. Can return any representation of a form that the implementor chooses - Hiccup data, string, etc. ...
null
https://raw.githubusercontent.com/jkk/formative/e1b69161c05438a48d3186bd2eb5126377ffe2e3/src/formative/render.cljc
clojure
FIXME: this prevents checkbox values from being absent in the submitted request, but at the cost of including an empty value which must be filtered out. We can't use an empty input without the "[]" suffix because nested-params Ring middleware won't allow it.
(ns formative.render (:require [formative.data :as data] [formative.util :as fu] [clojure.string :as string])) (defmulti render-form "Renders a form, dispatching on :renderer in form-attrs. Can return any representation of a form that the implementor chooses - Hiccup data, string, etc. ...
2469374e7b94d2381e329af3e0f6bfd0a8c56c947d334596af8881f6b507fb34
lingnand/VIMonad
ResizableTile.hs
# LANGUAGE DeriveDataTypeable , FlexibleInstances , GeneralizedNewtypeDeriving , MultiParamTypeClasses # ----------------------------------------------------------------------------- -- | -- Module : XMonad.Layout.ResizableTile Copyright : ( c ) < > -- License : BSD-style (see LICENSE) -- Mainta...
null
https://raw.githubusercontent.com/lingnand/VIMonad/048e419fc4ef57a5235dbaeef8890faf6956b574/XMonadContrib/XMonad/Layout/ResizableTile.hs
haskell
--------------------------------------------------------------------------- | Module : XMonad.Layout.ResizableTile License : BSD-style (see LICENSE) Stability : unstable Portability : unportable More useful tiled layout that allows you to change a width\/height of window. -----------------------...
# LANGUAGE DeriveDataTypeable , FlexibleInstances , GeneralizedNewtypeDeriving , MultiParamTypeClasses # Copyright : ( c ) < > Maintainer : < > module XMonad.Layout.ResizableTile ( ResizableTall(..), MirrorResize(..) ) where im...
697acf0797a2dcf05755594c0abbe2ce827e81209b43fb47af9c08a2d94cfe1a
brendanhay/gogol
Patch.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # {-# LANGUAGE St...
null
https://raw.githubusercontent.com/brendanhay/gogol/77394c4e0f5bd729e6fe27119701c45f9d5e1e9a/lib/services/gogol-logging/gen/Gogol/Logging/Folders/Locations/Buckets/Patch.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated /See:/ </ Cloud Logging API Reference> for @logging.folders.locations.buckets.patch@. * Resource ** Constructing a Request /See:/ 'newLoggingFoldersLocationsBucketsPatch' smart constructor. | V1 error format. | OAuth access...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators...
739f0344c25207d3a88cf2746f88f9dc4cbb65c4fb070c53f6ee5fabc51a3279
kblake/erlang-chat-demo
validator_max_length.erl
Nitrogen Web Framework for Erlang Copyright ( c ) 2008 - 2010 % Contributions from Torbjorn Tornkvist () See MIT - LICENSE for licensing information . -module (validator_max_length). -include_lib ("wf.hrl"). -compile(export_all). render_action(Record) -> TriggerPath= Record#max_length.trigger, Target...
null
https://raw.githubusercontent.com/kblake/erlang-chat-demo/6fd2fce12f2e059e25a24c9a84169b088710edaf/apps/nitrogen/src/validators/validator_max_length.erl
erlang
Contributions from Torbjorn Tornkvist ()
Nitrogen Web Framework for Erlang Copyright ( c ) 2008 - 2010 See MIT - LICENSE for licensing information . -module (validator_max_length). -include_lib ("wf.hrl"). -compile(export_all). render_action(Record) -> TriggerPath= Record#max_length.trigger, TargetPath = Record#max_length.target, Text =...
53d8df298ccfd91ee0a7c206c279ac296a77d5ae562e8634004acf4d3c94b043
metaocaml/ber-metaocaml
redirections.ml
(* TEST reference="${test_source_directory}/redirections.reference" output="redirections.output" files="${test_source_directory}/redirections.input" script = "${ocamlrun} ${ocamlsrcdir}/tools/caml-tex \ -repo-root ${ocamlsrcdir} ${files} -o ${output}" * hasstr ** native-compiler *** shared-librarie...
null
https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/testsuite/tests/tool-caml-tex/redirections.ml
ocaml
TEST reference="${test_source_directory}/redirections.reference" output="redirections.output" files="${test_source_directory}/redirections.input" script = "${ocamlrun} ${ocamlsrcdir}/tools/caml-tex \ -repo-root ${ocamlsrcdir} ${files} -o ${output}" * hasstr ** native-compiler *** shared-libraries ...
597f2d1610b4dc58685bf9694058f8089a2478d92f05019b88b0327ed228718b
rootmos/silly-joy
Parser.hs
module Parser ( parse , Term (..) , Name , AST , prettyAST ) where import Text.Parsec ( many1 , alphaNum , Parsec , (<|>) , between , spaces ...
null
https://raw.githubusercontent.com/rootmos/silly-joy/e9e716482229a1e27cb93e21ab76a58be47e5c7a/src/Parser.hs
haskell
module Parser ( parse , Term (..) , Name , AST , prettyAST ) where import Text.Parsec ( many1 , alphaNum , Parsec , (<|>) , between , spaces ...
49b968b3f54fd8654b11f78719286cbb7cefe0426359f2ece18cfdf8ed1a018d
carotene/carotene
redis_subscriber_sup.erl
-module(redis_subscriber_sup). -behaviour(supervisor). %% API -export([start_link/1]). %% Supervisor callbacks -export([init/1]). %% =================================================================== %% API functions %% =================================================================== start_link(Client) -> ...
null
https://raw.githubusercontent.com/carotene/carotene/963ecad344ec1c318c173ad828a5af3c000ddbfc/src/redis_subscriber_sup.erl
erlang
API Supervisor callbacks =================================================================== API functions =================================================================== =================================================================== Supervisor callbacks ================================================...
-module(redis_subscriber_sup). -behaviour(supervisor). -export([start_link/1]). -export([init/1]). start_link(Client) -> supervisor:start_link({local, ?MODULE}, ?MODULE, [Client]). init([Client]) -> {ok, { {simple_one_for_one, 5, 10}, [ {redis_subscriber, {redis_subscriber, sta...
15f943eecf6f2b312b1244e9089b8693d5e17a300e8da7c09a3b2e888077fb50
mschuene/stratege
project.clj
(defproject stratege "0.1.3-SNAPSHOT" :description "Strategic term rewriting for clojure" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :jvm-opts ^:replace ["-server"] :dependencies [[org.clojure/clojure "1.7.0"] [org.clojure/core.match "0.3.0-alpha4"] ...
null
https://raw.githubusercontent.com/mschuene/stratege/a1afcb11fac8b74372ddd40d963801921dc35348/project.clj
clojure
(defproject stratege "0.1.3-SNAPSHOT" :description "Strategic term rewriting for clojure" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :jvm-opts ^:replace ["-server"] :dependencies [[org.clojure/clojure "1.7.0"] [org.clojure/core.match "0.3.0-alpha4"] ...
5134a505d6ce8cdc598f9ad0b0a8c360ec7593b01ea1fde15bc6796b7ee062e6
dfinity-side-projects/winter
Custom.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # module Wasm.Binary.Custom where import Data.Binary.Get import Data.List as List import Data.Text.Lazy import Wasm.Binary.Decode import Wasm.Binary.LEB128 import Wasm.Syn...
null
https://raw.githubusercontent.com/dfinity-side-projects/winter/2cc31576fe029d85c37d21fc9ea4902c5c64b5a9/src/Wasm/Binary/Custom.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE ScopedTypeVariables # module Wasm.Binary.Custom where import Data.Binary.Get import Data.List as List import Data.Text.Lazy import Wasm.Binary.Decode import Wasm.Binary.LEB128 import Wasm.Syntax.AST getNameSection :: Module p...
493afdd6bc134c81401411b9ceaa3d31952abe2f8d46b47640ce6b32a70a6a2e
marigold-dev/mankavar
test_properties.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2021 Marigold < > Copyright ( c ) 2021 ...
null
https://raw.githubusercontent.com/marigold-dev/mankavar/110d1659feec9ebd99cf2f76d7699f48483010ca/src/traced_storage/test/test_properties.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2021 Marigold < > Copyright ( c ) 2021 Nomadic Labs . < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WAR...
d8a90975c7abdb2126aff7f4175a23b18fce96bc50e0d34d796d604035574c66
habit-lang/alb
mutualrecursion.hs
--This tests a naive recursion to see if tail call works --Also does some checking on how good the dead code eliminator is --and generally tests the performance of "function call" --Main function, does very little main = do x <- return (loop1 (1000000000 )) return x recurses acc times , then returns three l...
null
https://raw.githubusercontent.com/habit-lang/alb/567d4c86194a884cc1ceeffca9663211de2d554c/perftest/mutualrecursion.hs
haskell
This tests a naive recursion to see if tail call works Also does some checking on how good the dead code eliminator is and generally tests the performance of "function call" Main function, does very little
main = do x <- return (loop1 (1000000000 )) return x recurses acc times , then returns three loop1 acc = case acc of 0 -> 0 x -> (loop2 (x-1)) recurses acc times , then returns three loop2 acc = case acc of 0 -> 0 x -> (loop1 (x-1))
6c45a52039fdbbf2ba6acef815d28bbf8e2dd576298e1636f135804b59b41b37
jellelicht/guix
cmake.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2013 < > Copyright © 2014 < > Copyright © 2014 < > Copyright © 2014 < > Copyright © 2015 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the...
null
https://raw.githubusercontent.com/jellelicht/guix/83cfc9414fca3ab57c949e18c1ceb375a179b59c/gnu/packages/cmake.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 < > Copyright © 2014 < > Copyright © 2014 < > Copyright © 2014 < > Copyright © 2015 < > 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-m...
244e73fecd74307843bf39516888d9ad09f8861988fb200ba9abf4ddf68b2c0f
brendanhay/gogol
Patch.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # {-# LANGUAGE St...
null
https://raw.githubusercontent.com/brendanhay/gogol/77394c4e0f5bd729e6fe27119701c45f9d5e1e9a/lib/services/gogol-monitoring/gen/Gogol/Monitoring/Projects/UptimeCheckConfigs/Patch.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated Updates an Uptime check configuration. You can either replace the entire configuration with a new one or replace only certain fields in the current configuration by specifying the fields to be updated via updateMask. Returns the u...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators...
860aaaa3b4873f26819f4de79ae5656051fd947f045ca970f13a01f7089a5210
swarmpit/swarmpit
create_config.cljs
(ns swarmpit.component.service.create-config (:require [material.icon :as icon] [material.components :as comp] [material.component.form :as form] [material.component.composite :as composite] [swarmpit.component.mixin :as mixin] [swarmpit.component.state :as ...
null
https://raw.githubusercontent.com/swarmpit/swarmpit/38ffbe08e717d8620bf433c99f2e85a9e5984c32/src/cljs/swarmpit/component/service/create_config.cljs
clojure
(ns swarmpit.component.service.create-config (:require [material.icon :as icon] [material.components :as comp] [material.component.form :as form] [material.component.composite :as composite] [swarmpit.component.mixin :as mixin] [swarmpit.component.state :as ...
03fc0d1273d79a9d29c5f4b291836235f10981594c116bceab9b9a86fbd5006a
cedlemo/OCaml-GI-ctypes-bindings-generator
Timer.mli
open Ctypes type t val t_typ : t structure typ val continue : t structure ptr -> unit val destroy : t structure ptr -> unit val elapsed : t structure ptr -> Unsigned.uint64 ptr -> float val reset : t structure ptr -> unit val start : t structure ptr -> unit val stop : t structure ptr -> unit
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/GLib/Timer.mli
ocaml
open Ctypes type t val t_typ : t structure typ val continue : t structure ptr -> unit val destroy : t structure ptr -> unit val elapsed : t structure ptr -> Unsigned.uint64 ptr -> float val reset : t structure ptr -> unit val start : t structure ptr -> unit val stop : t structure ptr -> unit
a57c11466035f813e5cdcf1a4d7a100c9e19c0c895274d6cb42d888ddd2ce9ed
AshleyYakeley/Truth
DynamicEntity.hs
module Pinafore.Language.Grammar.Interpret.TypeDecl.DynamicEntity ( makeDynamicEntityTypeBox ) where import Pinafore.Language.Error import Pinafore.Language.Grammar.Syntax import Pinafore.Language.Interpreter import Pinafore.Language.Name import Pinafore.Language.Type import Pinafore.Markdown import Shapes in...
null
https://raw.githubusercontent.com/AshleyYakeley/Truth/c1c9e70f2789ba8bd336c06fd1bdc0f41675b9c1/Pinafore/pinafore-language/lib/Pinafore/Language/Grammar/Interpret/TypeDecl/DynamicEntity.hs
haskell
module Pinafore.Language.Grammar.Interpret.TypeDecl.DynamicEntity ( makeDynamicEntityTypeBox ) where import Pinafore.Language.Error import Pinafore.Language.Grammar.Syntax import Pinafore.Language.Interpreter import Pinafore.Language.Name import Pinafore.Language.Type import Pinafore.Markdown import Shapes in...
acef5455aea5631a3dd440c089c407ed7adfc3cf785cd2e63605850a8ba49032
philnguyen/soft-contract
nboyer.rkt
#lang racket/base (require soft-contract/fake-contract) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; File: nboyer.sch Description : The benchmark Author : Created : 5 - Apr-85 Modified : 10 - Apr-85 14:52:20 ( ) 22 - Jul-87 ( ...
null
https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/test/programs/safe/termination/r5rs-ish/nboyer.rkt
racket
File: nboyer.sch rewrote to eliminate property lists, and added Language: Scheme Status: Public Domain Fairly CONS intensive. contained several bugs that are corrected here. These bugs are discussed The benchmark now returns a boolean result. benchmark, ...
#lang racket/base (require soft-contract/fake-contract) Description : The benchmark Author : Created : 5 - Apr-85 Modified : 10 - Apr-85 14:52:20 ( ) 22 - Jul-87 ( ) 2 - Jul-88 ( -- distinguished # f and the empty list ) 13 - Feb-97 (...
6e5065723735a34c7b6fbda282fdbd925e9e89a58118c0bdbfc602d05c8c51fd
fission-codes/cli
Logout.hs
-- | Login command module Fission.CLI.Command.Logout (command, logout) where import Fission.Prelude import Data.Function import Options.Applicative.Simple (addCommand) import qualified Fission.CLI.Environment as Environment import Fission.CLI.Config.Types import qualified Fis...
null
https://raw.githubusercontent.com/fission-codes/cli/dc3500babad35a6cb44835fa503d27d672cbcdb3/library/Fission/CLI/Command/Logout.hs
haskell
| Login command | The command to attach to the CLI tree | Login (i.e. save credentials to disk). Validates credentials agianst the server.
module Fission.CLI.Command.Logout (command, logout) where import Fission.Prelude import Data.Function import Options.Applicative.Simple (addCommand) import qualified Fission.CLI.Environment as Environment import Fission.CLI.Config.Types import qualified Fission.CLI.Display.Su...
5cabb327ed9e5c2496e9b471790657d82922e53a2085fb0df5e913c8e9139d19
luchiniatwork/terra
core.clj
(ns terra.core (:require [cheshire.core :as json] [clojure.java.io :as io]) (:import java.io.File)) (defmacro defterra "Used to specify which var(s) will be generated as terraform configurations. This macro simply wraps a `def` with a meta `^:terraform`. If you prefer, that a perfectly acceptable...
null
https://raw.githubusercontent.com/luchiniatwork/terra/542f87780ea1e423e89b03fcf2c122364c67a35a/src/terra/core.clj
clojure
(ns terra.core (:require [cheshire.core :as json] [clojure.java.io :as io]) (:import java.io.File)) (defmacro defterra "Used to specify which var(s) will be generated as terraform configurations. This macro simply wraps a `def` with a meta `^:terraform`. If you prefer, that a perfectly acceptable...
a8ff259121e0722ecb6fe7712e138f58c0b1c5f1fbd851fe6d1aebece5c467c3
fjvallarino/monomer
FadeSpec.hs
| Module : . Widgets . Animation . FadeSpec Copyright : ( c ) 2018 License : BSD-3 - Clause ( see the LICENSE file ) Maintainer : Stability : experimental Portability : non - portable Unit tests for Fade animation . Module : Monomer.Widgets.Animation.FadeSpec Copyright : (...
null
https://raw.githubusercontent.com/fjvallarino/monomer/b8d3b82b50719204385179614f06bae283f90303/test/unit/Monomer/Widgets/Animation/FadeSpec.hs
haskell
| Module : . Widgets . Animation . FadeSpec Copyright : ( c ) 2018 License : BSD-3 - Clause ( see the LICENSE file ) Maintainer : Stability : experimental Portability : non - portable Unit tests for Fade animation . Module : Monomer.Widgets.Animation.FadeSpec Copyright : (...
48b0c0abdb426133262808f3c235ff76ac14461870334e3f93107d8c47447f5c
gedge-platform/gedge-platform
amqp10_client_connections_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(amqp10_client_connections_sup). -behaviou...
null
https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/amqp10_client/src/amqp10_client_connections_sup.erl
erlang
Private API. Supervisor callbacks. ------------------------------------------------------------------- Private API. ------------------------------------------------------------------- ------------------------------------------------------------------- Supervisor callbacks. ------------------------------------...
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(amqp10_client_connections_sup). -behaviour(supe...
f43088c601ac15142d0fc875b488bf85c0e204d9330e37cc4b72e37e7a3abdfb
haskell-lisp/yale-haskell
has-macros.scm
General macros for the compiler (define-syntax (remember-context exp . body) (let ((temp (gensym))) `(let ((,temp ,exp)) (dynamic-let ((*context* (if (ast-node-line-number ,temp) ,temp (dynamic *context*)))) ,@body)))) (define-syntax (maybe-remember-context exp . body) (l...
null
https://raw.githubusercontent.com/haskell-lisp/yale-haskell/4e987026148fe65c323afbc93cd560c07bf06b3f/top/has-macros.scm
scheme
This is for iterating a list of contexts over a list of types.
General macros for the compiler (define-syntax (remember-context exp . body) (let ((temp (gensym))) `(let ((,temp ,exp)) (dynamic-let ((*context* (if (ast-node-line-number ,temp) ,temp (dynamic *context*)))) ,@body)))) (define-syntax (maybe-remember-context exp . body) (l...
079ccf9aa0235f1f2d686c287eadac0c6241611d78ad75533ad421174e532cc3
sile/logi
logi_channel_sup.erl
2014 - 2016 < > %% %% @doc Supervisor for a logi_channel process and a supervisor of its children @private %% @end -module(logi_channel_sup). -behaviour(supervisor). %%---------------------------------------------------------------------------------------------------------------------- %% Exported API %%-----...
null
https://raw.githubusercontent.com/sile/logi/1022fbc238a7d18765fe864a7174958142160ee8/src/logi_channel_sup.erl
erlang
@doc Supervisor for a logi_channel process and a supervisor of its children @end ---------------------------------------------------------------------------------------------------------------------- Exported API -------------------------------------------------------------------------------------------------------...
2014 - 2016 < > @private -module(logi_channel_sup). -behaviour(supervisor). -export([start_link/1]). -export([init/1]). -spec start_link(logi_channel:id()) -> {ok, pid()} | {error, Reason::term()}. start_link(Channel) -> supervisor:start_link(?MODULE, [Channel]). @private init([Channel]) -> Child...
120f5a0aa2121e0fff0ce117fef840e1046a3a39cdd6edbcb91ef00636d3d904
monadius/ocaml_simple_interval
test_interval.ml
open Num (* Auxiliary functions *) let next_float x = match classify_float x with | FP_nan -> nan | FP_infinite -> if x = infinity then x else nan | FP_zero -> ldexp 1.0 (-1074) | _ -> begin let bits = Int64.bits_of_float x in if x < 0.0 then Int64.float_of_bits (Int64.pred ...
null
https://raw.githubusercontent.com/monadius/ocaml_simple_interval/d1081e969e7f4907bc60c1e7d2af95fdf1f34310/tests/test_interval.ml
ocaml
Auxiliary functions Returns the integer binary logarithm of big_int Returns -1 for non-positive numbers Returns the integer binary logarithm of the absolute value of num Interval type and functions [0, +infinity] contains all finite positive numbers, etc. [+infinity, -infinity] represents the...
open Num let next_float x = match classify_float x with | FP_nan -> nan | FP_infinite -> if x = infinity then x else nan | FP_zero -> ldexp 1.0 (-1074) | _ -> begin let bits = Int64.bits_of_float x in if x < 0.0 then Int64.float_of_bits (Int64.pred bits) else ...
33eae536aaa73634d7501f0858d1fbeca25369ce36b576bde8a592a851e7cd51
conspack/cl-conspack
package.lisp
(defpackage :conspack (:nicknames #:cpk) (:use #:closer-common-lisp #:alexandria #:fast-io) (:export #:conspack-error #:conspack-error-value #:conspack-error-reason #:invalid-header #:duplicate-id #:invalid-package-name #:invalid-symbol-name #:invalid-symbol-package #:invalid-inde...
null
https://raw.githubusercontent.com/conspack/cl-conspack/6e529d7b3a7223ef1bb5c7b9f18384ba67b50b09/src/package.lisp
lisp
(defpackage :conspack (:nicknames #:cpk) (:use #:closer-common-lisp #:alexandria #:fast-io) (:export #:conspack-error #:conspack-error-value #:conspack-error-reason #:invalid-header #:duplicate-id #:invalid-package-name #:invalid-symbol-name #:invalid-symbol-package #:invalid-inde...
07c58514c65502395eca922d03adbba0d8eea53ae8e72ea2ec88a5b81c7ea6cf
jeromesimeon/Galax
xquery_algebra_ast_util.ml
(***********************************************************************) (* *) (* GALAX *) (* XQuery Engine *) (* ...
null
https://raw.githubusercontent.com/jeromesimeon/Galax/bc565acf782c140291911d08c1c784c9ac09b432/ast/xquery_algebra_ast_util.ml
ocaml
********************************************************************* GALAX XQuery Engine ...
Copyright 2001 - 2007 . $ I d : xquery_algebra_ast_util.ml , v 1.70 2008/02/01 02:45:26 mff Exp $ Module : Xquery_algebra_ast_util Description : This module implements some useful operations the XQuery Algebra AST . Description: This m...
409fb618cf4c561e96953e13ad5050b41205a2174b41126d683cc5ee86409aad
hyperfiddle/electric
sql_basic.cljc
(ns geoffrey.2023.sql-basic (:require [hyperfiddle.electric :as e] [hyperfiddle.electric-dom :as dom])) ;; Principles: 1 . The database is the source of thruth 2 . Database state changes through time 3 . Query results should be diffed as close as possible to the database 4 . Blocking ( io bound ...
null
https://raw.githubusercontent.com/hyperfiddle/electric/967f03dfd31f0b3636d848668707334312006279/scratch/geoffrey/y2023/sql_basic.cljc
clojure
Principles: I'm writing in verbose style for clarity of communication. We ignore db-time parameter and (re)run the query if INSERT succeeds bump `!db-time` to trigger a query rerun. handle exception if needed inserts will bump (inc) this value Querying is a blocking operation⁴. We `wrap` it into a task. It will...
(ns geoffrey.2023.sql-basic (:require [hyperfiddle.electric :as e] [hyperfiddle.electric-dom :as dom])) 1 . The database is the source of thruth 2 . Database state changes through time 3 . Query results should be diffed as close as possible to the database 4 . Blocking ( io bound ) operations sh...
ff8afc77696a497618d83f404712031f3b29c17dca3d5772ec272d58c4b731f2
lehins/massiv
Index.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE CPP # # LANGUAGE DataKinds # # LANGUAGE ExplicitNamespaces # {-# LANGUAGE GADTs #-} # LANGUAGE PatternSynonyms # -- | -- Module : Data.Massiv.Core.Index Copyright : ( c ) 2018 - 2022 -- License : BSD3 Maintainer : < > -- Stability : experimental -- Port...
null
https://raw.githubusercontent.com/lehins/massiv/c8aaf29d02eab535f13aa03949fca58fce6d6384/massiv/src/Data/Massiv/Core/Index.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE GADTs # | Module : Data.Massiv.Core.Index License : BSD3 Stability : experimental Portability : non-portable ** Size ** Dimension ** Stride ** Border ** Index functions * Iterators * Exceptions | 1-dimensional type synonym for size. @since 0.3.0 | 2-dimens...
# LANGUAGE CPP # # LANGUAGE DataKinds # # LANGUAGE ExplicitNamespaces # # LANGUAGE PatternSynonyms # Copyright : ( c ) 2018 - 2022 Maintainer : < > module Data.Massiv.Core.Index ( Ix0 (..), type Ix1, pattern Ix1, type Ix2 (Ix2, (:.)), IxN ((:>), Ix3, Ix4, Ix5), HighIxN, type Ix3, type Ix4...
d6e454dcdae1227ed461f88c2ea888e99fdc98757ae1d063303c4dabc06ad638
agda/agda
Occurrence.hs
# LANGUAGE TemplateHaskell # module Internal.TypeChecking.Positivity.Occurrence ( tests ) where import Agda.TypeChecking.Positivity.Occurrence import Agda.Utils.SemiRing import Agda.Utils.List ( uniqOn ) import Data.Either import qualified Data.Map.Strict as Map import Internal.Helpers import Internal.Syntax.Abstra...
null
https://raw.githubusercontent.com/agda/agda/f50c14d3a4e92ed695783e26dbe11ad1ad7b73f7/test/Internal/TypeChecking/Positivity/Occurrence.hs
haskell
---------------------------------------------------------------------------- ---------------------------------------------------------------------- Tests | Is the given predicate satisfiable? Some properties that are used in the implementation of prop_boundToEverySome2. A simple property that does not always gener...
# LANGUAGE TemplateHaskell # module Internal.TypeChecking.Positivity.Occurrence ( tests ) where import Agda.TypeChecking.Positivity.Occurrence import Agda.Utils.SemiRing import Agda.Utils.List ( uniqOn ) import Data.Either import qualified Data.Map.Strict as Map import Internal.Helpers import Internal.Syntax.Abstra...
a461fdc3060744404997aa27d252c70eec17875981d7f77b47010fb5951505e8
haskell/cabal
UnqualComponentName.hs
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} # LANGUAGE GeneralizedNewtypeDeriving # module Distribution.Types.UnqualComponentName ( UnqualComponentName, unUnqualComponentName, unUnqualComponentNameST, mkUnqualComponentName , packageNameToUnqualComponentName, unqualCompone...
null
https://raw.githubusercontent.com/haskell/cabal/0abbe37187f708e0a5daac8d388167f72ca0db7e/Cabal-syntax/src/Distribution/Types/UnqualComponentName.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE DeriveGeneric # | An unqualified component name, for any kind of component. also states which of a library, executable, etc the name refers too. The later uniquely identifiers a component and its closure. TODO: bad enabler of bad monoids | Convert '...
# LANGUAGE GeneralizedNewtypeDeriving # module Distribution.Types.UnqualComponentName ( UnqualComponentName, unUnqualComponentName, unUnqualComponentNameST, mkUnqualComponentName , packageNameToUnqualComponentName, unqualComponentNameToPackageName ) where import Distribution.Compat.Prelude import Distribution.Ut...
53ce0cae22e3d3e842e5e9cc516310a539cbdf8e7e0e83e154d8c8bed2ad5b24
jrclogic/SMCDEL
smcdel.hs
module Main where import Control.Arrow (second) import Control.Monad (when,unless) import Data.List (intercalate) import Data.Version (showVersion) import Paths_smcdel (version) import System.Console.ANSI import System.Directory (getTemporaryDirectory) import System.Environment (getArgs,getProgName) import System.Exit...
null
https://raw.githubusercontent.com/jrclogic/SMCDEL/9e3363c152786b34a57d0b1b3363bd2c63d19574/exec/smcdel.hs
haskell
module Main where import Control.Arrow (second) import Control.Monad (when,unless) import Data.List (intercalate) import Data.Version (showVersion) import Paths_smcdel (version) import System.Console.ANSI import System.Directory (getTemporaryDirectory) import System.Environment (getArgs,getProgName) import System.Exit...
569b368477b7a88f6ffe7ce06d10de0d962b8d8fcfa94251e1018cf2b3018353
jabber-at/ejabberd
ejabberd_iq.erl
%%%------------------------------------------------------------------- %%% File : ejabberd_iq.erl Author : < > %%% Purpose : Created : 10 Nov 2017 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2018 ProcessOne %%% %%% This program is free software; you can redistribute it and/or modify it under...
null
https://raw.githubusercontent.com/jabber-at/ejabberd/7bfec36856eaa4df21b26e879d3ba90285bad1aa/src/ejabberd_iq.erl
erlang
------------------------------------------------------------------- File : ejabberd_iq.erl Purpose : 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 useful, but WITHOUT ANY WARRANTY; witho...
Author : < > Created : 10 Nov 2017 by < > ejabberd , Copyright ( C ) 2002 - 2018 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 received a copy of the GNU General Public License along ...
9bd091b8444517fe5cb3d04a79a658fb04318fe9a97379fdf525e3858f61dcba
ollef/sixty
Indices.hs
# LANGUAGE BlockArguments # {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE OverloadedRecordDot # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE NoFieldSelectors # module Elaboration.Unification.Indices where import Control.Exception.Lifted import qualified Core....
null
https://raw.githubusercontent.com/ollef/sixty/5d630ca6fde91da5a691dc7cd195f5cbf6491eb0/src/Elaboration/Unification/Indices.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # Same heads
# LANGUAGE BlockArguments # # LANGUAGE OverloadedRecordDot # # LANGUAGE ScopedTypeVariables # # LANGUAGE NoFieldSelectors # module Elaboration.Unification.Indices where import Control.Exception.Lifted import qualified Core.Binding as Binding import Core.Bindings (Bindings) import qualified Core.Bindings as Bindings i...
a097b46a216a81f791d1b8e19917deaca25acb0fe8b1cf0f5c25018d19fb2a08
baskeboler/clj-karaoke-lyrics
core.clj
(ns clj-karaoke.core (:require [clj-cli-progress.core :as progress :refer [progress-bar-wrapped-collection]] [clj-karaoke.lyrics :as l] [clj-karaoke.protocols :as p] [clj-karaoke.song-data] [clj-karaoke.midi] [clj-karaoke.lyrics-frame] ...
null
https://raw.githubusercontent.com/baskeboler/clj-karaoke-lyrics/c5b8a19f3e8516c143fd91e3f8a98bdc6df597ec/src/clj_karaoke/core.clj
clojure
(set! ^:dynamic *print-length* nil) (do
(ns clj-karaoke.core (:require [clj-cli-progress.core :as progress :refer [progress-bar-wrapped-collection]] [clj-karaoke.lyrics :as l] [clj-karaoke.protocols :as p] [clj-karaoke.song-data] [clj-karaoke.midi] [clj-karaoke.lyrics-frame] ...
d8158e95f25ae8d5f9b8604b3b33bc6ce400a2edbc4014a55113a6252e24a169
mzp/coq-ruby
cbytegen.ml
open Util open Names open Cbytecodes open Cemitcodes open Term open Declarations open Pre_env (* Compilation des variables + calcul des variables libres *) Dans la machine virtuel a pas de difference entre les (* fonctions et leur environnement *) ...
null
https://raw.githubusercontent.com/mzp/coq-ruby/99b9f87c4397f705d1210702416176b13f8769c1/kernel/cbytegen.ml
ocaml
Compilation des variables + calcul des variables libres fonctions et leur environnement Representation de l'environnements des fonctions : [clos_t | code | fv1 | fv2 | ... | fvn ] ^ ...
open Util open Names open Cbytecodes open Cemitcodes open Term open Declarations open Pre_env Dans la machine virtuel a pas de difference entre les l'offset pour l'acces au variable libre est 1 ( pointeur de code ) . Lors de la compila...
db07792fca44c0097ba38366ab464c672f7d4b6acbecc2a9432374041301faea
inaimathi/house
unit-tests.lisp
(in-package :house) (setf *print-failures* t *print-summary* t *print-errors* t) (define-test parameter-parsing (assert-equal '((:a . "1")) (parse-params "a=1")) (assert-equal '((:a . "1") (:b . "2")) (parse-params "a=1&b=2")) (assert-equal '((:longer . "parameter names") (:look . "something like th...
null
https://raw.githubusercontent.com/inaimathi/house/ba30a381670c681fa722c22c5a03f329d4c67c2e/unit-tests.lisp
lisp
Nope, no automatic argument decoding (the default define-*-handler does decoding internally though) we expect encodeURIComponent on the content '[]{}~!@#$%^&*()_+-=` " Fail on older HTTP versions vanilla GET request GET with parameters POST with body POST with parameters and body
(in-package :house) (setf *print-failures* t *print-summary* t *print-errors* t) (define-test parameter-parsing (assert-equal '((:a . "1")) (parse-params "a=1")) (assert-equal '((:a . "1") (:b . "2")) (parse-params "a=1&b=2")) (assert-equal '((:longer . "parameter names") (:look . "something like th...
02349f9c1149e4793792a60c3dbac1cc00b99485f5fcb9c9f9a5cfc4a0b941ee
d-plaindoux/transept
transept.ml
(** Wrapper around each component of [Transept]. *) (** {2 Signatures} *) module Specs = Transept_specs * { 2 Libraries } module Core = Transept_core module Stream = Transept_stream (** {2 Extensions} *) module Extension = Transept_extension * { 2 Standard libraries } module Utils = Transept_utils.Fun module Ge...
null
https://raw.githubusercontent.com/d-plaindoux/transept/8567803721f6c3f5d876131b15cb301cb5b084a4/lib/transept/transept.ml
ocaml
* Wrapper around each component of [Transept]. * {2 Signatures} * {2 Extensions}
module Specs = Transept_specs * { 2 Libraries } module Core = Transept_core module Stream = Transept_stream module Extension = Transept_extension * { 2 Standard libraries } module Utils = Transept_utils.Fun module Genlex = Transept_genlex module Json = Transept_json
20f62066766b08059a706cf51ae834120523d58774526bdd936ad94d25c75285
martinsumner/kv_index_tictactree
fold_SUITE.erl
-module(fold_SUITE). -include_lib("common_test/include/ct.hrl"). -export([all/0]). -export([ aae_fold_keyorder/1, aae_fold_segmentorder/1]). all() -> [ aae_fold_keyorder, aae_fold_segmentorder ]. aae_fold_keyorder(_Config) -> aae_fold_tester(leveled_ko, 500...
null
https://raw.githubusercontent.com/martinsumner/kv_index_tictactree/7c825d5edd435b88f3474702d4651db90cbdafb9/test/end_to_end/fold_SUITE.erl
erlang
Found all the Keys and clocks in the list Didn't find "too many" others due to collisions on segment
-module(fold_SUITE). -include_lib("common_test/include/ct.hrl"). -export([all/0]). -export([ aae_fold_keyorder/1, aae_fold_segmentorder/1]). all() -> [ aae_fold_keyorder, aae_fold_segmentorder ]. aae_fold_keyorder(_Config) -> aae_fold_tester(leveled_ko, 500...
bebfb48240eca4fec97ac338bf8be1ae5e8e7b656798ee4c2e0c9dc4602a6991
joneshf/open-source
CodeGen.hs
-- | Module : CodeGen -- Description: Generate JavaScript code. -- Copyright : ( c ) , 2018 -- License: BSD3 -- Maintainer: -- Stability: experimental module CodeGen ( CodeGen.and , add , array , assign , assign' , bool , brack , call0 , call1 , call2 , call3 , declaration , eq , for ...
null
https://raw.githubusercontent.com/joneshf/open-source/e3412fc68c654d89a8d3af4e12ac19c70e3055ec/packages/dhall-javascript/haskell/src/CodeGen.hs
haskell
| Description: Generate JavaScript code. License: BSD3 Maintainer: Stability: experimental | A lawless class to make some functions in here a bit easier to use. | @'add' x y ~ x + y@ | | | @'assign' x y ~ x = y;@ | @'assign'' x y ~ x = y;@ | @ 'bool' True ~ true 'bool' False ~ false @ | @'brack'...
Module : CodeGen Copyright : ( c ) , 2018 module CodeGen ( CodeGen.and , add , array , assign , assign' , bool , brack , call0 , call1 , call2 , call3 , declaration , eq , for , forin , func , func' , func2 , ift , ifte , int , kind , lambda , lambda' , lambda'' ...
6065552622d51e109b7ff9832218f07f77ade47b682dad2d71fd9bd19e8030b6
mtgred/netrunner
lobby.cljs
(ns nr.angel-arena.lobby (:require [clojure.string :refer [capitalize lower-case]] [jinteki.cards :refer [all-cards]] [jinteki.utils :refer [superuser?]] [nr.appstate :refer [app-state]] [nr.avatar :refer [avatar]] [nr.cardbrowser :refer [image-url]] [nr.deck-status :refer [deck-format-status-spa...
null
https://raw.githubusercontent.com/mtgred/netrunner/42c5ecc6a7c69c173822c0e9ef1a8d09b02b5bdc/src/cljs/nr/angel_arena/lobby.cljs
clojure
TODO: Implement this
(ns nr.angel-arena.lobby (:require [clojure.string :refer [capitalize lower-case]] [jinteki.cards :refer [all-cards]] [jinteki.utils :refer [superuser?]] [nr.appstate :refer [app-state]] [nr.avatar :refer [avatar]] [nr.cardbrowser :refer [image-url]] [nr.deck-status :refer [deck-format-status-spa...
824e837838b6d7f03e3f8e3e16442ed209a3de7dc105e04a671b491d8f013609
kadena-io/chainweb-node
Client.hs
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE DataKinds # # LANGUAGE KindSignatures # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # -- | Module : Chainweb . SPV.RestAPI.Client Copyright : Copyright © 2018 - 2020 Kadena LLC . License : MIT Maintainer : < > --...
null
https://raw.githubusercontent.com/kadena-io/chainweb-node/8c32fcfff85c4e5b61a9554f0180ca6c90840e42/src/Chainweb/SPV/RestAPI/Client.hs
haskell
# LANGUAGE OverloadedStrings # | Stability: experimental Client implementation of the SPV REST API internal modules -------------------------------------------------------------------------- -- ^ the source chain of the proof. This is the chain where the proof subject, the transaction for which inclusion is pr...
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE DataKinds # # LANGUAGE KindSignatures # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # Module : Chainweb . SPV.RestAPI.Client Copyright : Copyright © 2018 - 2020 Kadena LLC . License : MIT Maintainer : < > module Chainweb.SPV.RestAPI.Client ( spvGe...
cdc45e29fc8d87f9bef2dae733307fd5a2b63390017b2815fdf6d88a21d773d4
wireapp/wire-server
Propagate.hs
-- This file is part of the Wire Server implementation. -- Copyright ( C ) 2022 Wire Swiss GmbH < > -- -- This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License...
null
https://raw.githubusercontent.com/wireapp/wire-server/7cd0a9c1dc423f87d46ad86fccaced93c6147fb1/services/galley/src/Galley/API/MLS/Propagate.hs
haskell
This file is part of the Wire Server implementation. This program is free software: you can redistribute it and/or modify it under later version. This program 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 PARTI...
Copyright ( C ) 2022 Wire Swiss GmbH < > the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any You should have received a copy of the GNU Affero General Public License along module Galley.API.MLS.Propagate ...
f3eaf20864478cbc8e8ee3426591e48ba00b0b91fc57374e7651c7f25526441b
vasilisp/inez
mono_fit.ml
open Core.Std ;; open Script ;; (* input *) let n = if not !Sys.interactive && Array.length argv >= 2 then int_of_string argv.(1) else 10 ;; let unsat = Array.length argv >= 3 && argv.(2) = "--unsat" ;; assert (n >= 0) ;; (* monotonically increasing function f *) let f _ = ~free ;; assert_axiom (~f...
null
https://raw.githubusercontent.com/vasilisp/inez/3bbbbb82a12918c1557f5fb0b49a8c73ab8d6da1/frontend/examples/axioms/mono_fit.ml
ocaml
input monotonically increasing function f n variables constraints
open Core.Std ;; open Script ;; let n = if not !Sys.interactive && Array.length argv >= 2 then int_of_string argv.(1) else 10 ;; let unsat = Array.length argv >= 3 && argv.(2) = "--unsat" ;; assert (n >= 0) ;; let f _ = ~free ;; assert_axiom (~forall a (~forall b ([a <= b], f a <= f b))) ;; let v...
32b3a22750326d4f1bfdd3751a60d2ac40439e20160e3e9edfdac995ab87b663
jackfirth/lens
compound.rkt
#lang sweet-exp racket/base require racket/contract/base provide contract-out isomorphism-compose (rest-> isomorphism-lens? isomorphism-lens?) isomorphism-thrush (rest-> isomorphism-lens? isomorphism-lens?) require racket/match lens/private/util/rest-contract "base.rkt" module+ t...
null
https://raw.githubusercontent.com/jackfirth/lens/733db7744921409b69ddc78ae5b23ffaa6b91e37/lens-common/lens/private/isomorphism/compound.rkt
racket
#lang sweet-exp racket/base require racket/contract/base provide contract-out isomorphism-compose (rest-> isomorphism-lens? isomorphism-lens?) isomorphism-thrush (rest-> isomorphism-lens? isomorphism-lens?) require racket/match lens/private/util/rest-contract "base.rkt" module+ t...
2b649545407fe4028fbdaa465c93b8350c7fe01cc55487077c44fffc62d5b241
metosin/reitit
exception.clj
(ns reitit.http.interceptors.exception (:require [clojure.spec.alpha :as s] [clojure.string :as str] [reitit.coercion :as coercion] [reitit.ring :as ring]) (:import (java.io PrintWriter Writer) (java.time Instant))) (s/def ::handlers (s/map-of any? fn?)) (s/def ::spec...
null
https://raw.githubusercontent.com/metosin/reitit/198cfda00d20093f3d7b3069e5e902835c396698/modules/reitit-interceptors/src/reitit/http/interceptors/exception.clj
clojure
helpers handlers public api type hierarchy ex-data with :type ::error ex-data with ::exception or ::failure override the default handler print stack-traces for all exceptions
(ns reitit.http.interceptors.exception (:require [clojure.spec.alpha :as s] [clojure.string :as str] [reitit.coercion :as coercion] [reitit.ring :as ring]) (:import (java.io PrintWriter Writer) (java.time Instant))) (s/def ::handlers (s/map-of any? fn?)) (s/def ::spec...
1a1ce566cc74feddef63446816ee36098be5738a239172e14e66eefa336cfea7
djblue/nrepl-cljs
eval.cljs
(ns nrepl.eval (:refer-clojure :exclude [eval]) (:require [cljs.js :as cljs] [cljs.env :as env] [nrepl.async :as a] [shadow.cljs.bootstrap.node :as boot])) (defonce compile-state-ref (env/default-compiler-env)) (defn eval [source ns] (let [ns (symbol ns)] (a/promise ...
null
https://raw.githubusercontent.com/djblue/nrepl-cljs/6f8f256d8397b853e39a44d3d46cf90154c48bac/src/nrepl/eval.cljs
clojure
:verbose true
(ns nrepl.eval (:refer-clojure :exclude [eval]) (:require [cljs.js :as cljs] [cljs.env :as env] [nrepl.async :as a] [shadow.cljs.bootstrap.node :as boot])) (defonce compile-state-ref (env/default-compiler-env)) (defn eval [source ns] (let [ns (symbol ns)] (a/promise ...
e4a8559d59bd5bd137465fb3fd83e19d5b3b65c5acb9c3fcc73d528b33552164
thelema/ocaml-community
mytext.ml
(***********************************************************************) (* *) MLTk , Tcl / Tk interface of OCaml (* *) , , and ...
null
https://raw.githubusercontent.com/thelema/ocaml-community/ed0a2424bbf13d1b33292725e089f0d7ba94b540/otherlibs/labltk/examples_camltk/mytext.ml
ocaml
********************************************************************* described in file LICENSE found in the...
MLTk , Tcl / Tk interface of OCaml , , and projet Cristal , INRIA Rocquencourt , Kyoto University RIMS Copyright 2002 Institut National de Recherche en Informatique et en Automatique and...
c7905df8c413d0423921226f4da0565054abfae47d3010e22c6a0269fcc96a0a
adjkant/sql-sourcery
sql-sourcery-test-lib.rkt
#lang racket ;; ----------------------------------------------------------------------- ;; Library Provide (provide ;; Sourcery ID Field Name SOURCERY_ID_FIELD_NAME ;; Alternate name for check-true check-success ;; Display Checks read-from-file gen-output-file ;; Checking compile-time errors compile syn...
null
https://raw.githubusercontent.com/adjkant/sql-sourcery/f6c0619ed9febbb66864f36aa41fa495df683f95/test/sql-sourcery-test-lib.rkt
racket
----------------------------------------------------------------------- Library Provide Sourcery ID Field Name Alternate name for check-true Display Checks Checking compile-time errors ----------------------------------------------------------------------- Internal Requirements --------------------------------...
#lang racket (provide SOURCERY_ID_FIELD_NAME check-success read-from-file gen-output-file compile syntax Database Testing Helper Function stest-conn stest-teardown stest-table? stest-fields stest-field stest-rows) (require rackunit db "../sql-sourcery/sourcery-connection.rkt") ...
d02092db270d07eefc7b748e3e5cff388fbcef1014c092f1346bd213eb48bf65
ekmett/free
Final.hs
{-# LANGUAGE RankNTypes #-} {-# LANGUAGE Safe #-} ----------------------------------------------------------------------------- -- | -- Module : Control.Applicative.Free.Final Copyright : ( C ) 2012 - 2013 -- License : BSD-style (see the file LICENSE) -- Maintainer : < > -- Stability : ...
null
https://raw.githubusercontent.com/ekmett/free/29b5d2c2811f74f6566835b5cfbdc7f745e57557/src/Control/Applicative/Free/Final.hs
haskell
# LANGUAGE RankNTypes # # LANGUAGE Safe # --------------------------------------------------------------------------- | Module : Control.Applicative.Free.Final License : BSD-style (see the file LICENSE) Stability : provisional Final encoding of free 'Applicative' functors. -------------------------...
Copyright : ( C ) 2012 - 2013 Maintainer : < > Portability : GADTs , Rank2Types module Control.Applicative.Free.Final ( Ap(..) , runAp , runAp_ , liftAp , hoistAp , retractAp ) where import Control.Applicative import Data.Functor.Apply newtype Ap f a = Ap { _runAp :: forall ...
1037a75cb737cebaec6dc0ca37d599d3f66c2da6a68f92b9c633934c2957661e
fukamachi/clozure-cl
l0-pred.lisp
-*- Mode : Lisp ; Package : CCL -*- ;;; Copyright ( C ) 2009 Clozure Associates Copyright ( C ) 1994 - 2001 Digitool , Inc This file is part of Clozure CL . ;;; Clozure CL is licensed under the terms of the Lisp Lesser GNU Public License , known as the LLGPL and distributed with Clozure CL as the ...
null
https://raw.githubusercontent.com/fukamachi/clozure-cl/4b0c69452386ae57b08984ed815d9b50b4bcc8a2/level-0/l0-pred.lisp
lisp
Package : CCL -*- file "LICENSE". The LLGPL consists of a preamble and the LGPL, conflict, the preamble takes precedence. Clozure CL is referenced in the preamble as the "LIBRARY." The LLGPL is also available online at Non-portable type-predicates & such. AARGH can't be right (dbg-paws #x100) ...
Copyright ( C ) 2009 Clozure Associates Copyright ( C ) 1994 - 2001 Digitool , Inc This file is part of Clozure CL . Clozure CL is licensed under the terms of the Lisp Lesser GNU Public License , known as the LLGPL and distributed with Clozure CL as the which is distributed with Clozure CL as ...
59164b224b68f0575bbe2ff1a46fc4d125f67fa1c7c7a9bebd8643394b012285
ghcjs/ghcjs
pats.hs
main = case [1,2] of [] -> putStrLn "got []" [a] -> putStrLn "got one value." [a,b] -> putStrLn "got two values."
null
https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/test/fay/pats.hs
haskell
main = case [1,2] of [] -> putStrLn "got []" [a] -> putStrLn "got one value." [a,b] -> putStrLn "got two values."
157d463383cd5690fd0688b0e2406f1cf8a2b420efcff90a38fb22345d2233cb
SKA-ScienceDataProcessor/RC
ddp-in-memory-accelerate.hs
# LANGUAGE TemplateHaskell # module Main(main) where import DNA.Channel.File (readDataMMap) import DNA import DDP import DDP_Slice_Accelerate ---------------------------------------------------------------- -- Distributed dot product -- -- Note that actors which do not spawn actors on other nodes do not -- receive ...
null
https://raw.githubusercontent.com/SKA-ScienceDataProcessor/RC/1b5e25baf9204a9f7ef40ed8ee94a86cc6c674af/MS2/dna-programs/ddp-in-memory-accelerate.hs
haskell
-------------------------------------------------------------- Distributed dot product Note that actors which do not spawn actors on other nodes do not receive CAD. -------------------------------------------------------------- | Actor for calculating dot product Show configuration Run it
# LANGUAGE TemplateHaskell # module Main(main) where import DNA.Channel.File (readDataMMap) import DNA import DDP import DDP_Slice_Accelerate ddpCollector :: CollectActor Double Double ddpCollector = collectActor (\s a -> return $! s + a) (return 0) (return) remotable [ 'ddpCollector ] ddpD...
9b3673bccf183084e5958b398721e6c559c0ea810c509572b67db14916e01fd5
hellonico/origami-fun
ok.clj
(ns opencv4.ok (:require [opencv4.core :refer :all])) (defn -main [& args] (println "Using OpenCV Version: " VERSION "..\n") (let [output "output/grey-neko.jpg"] (-> (imread "resources/images/cat.jpg") (cvt-color! COLOR_RGB2GRAY) (imwrite output) (println)) (println "A new gray neko has arise! ...
null
https://raw.githubusercontent.com/hellonico/origami-fun/80117788530d942eaa9a80e2995b37409fa24889/test/opencv4/ok.clj
clojure
(ns opencv4.ok (:require [opencv4.core :refer :all])) (defn -main [& args] (println "Using OpenCV Version: " VERSION "..\n") (let [output "output/grey-neko.jpg"] (-> (imread "resources/images/cat.jpg") (cvt-color! COLOR_RGB2GRAY) (imwrite output) (println)) (println "A new gray neko has arise! ...
03b3966844de443f81114925eb0aa485342361d97719e78b494b2a46c71b25ec
ghollisjr/cl-ana
h5z-grovel.lisp
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*- ;;;; Copyright by The HDF Group . ;;;; All rights reserved. ;;;; This file is part of hdf5 - cffi . The full hdf5 - cffi copyright notice , including terms governing ;;;; use, modification, and redistribution, is contained in the file COPYING, ;;;; which can be found...
null
https://raw.githubusercontent.com/ghollisjr/cl-ana/5cb4c0b0c9c4957452ad2a769d6ff9e8d5df0b10/hdf-cffi/src/h5z-grovel.lisp
lisp
-*- Mode: lisp; indent-tabs-mode: nil -*- All rights reserved. use, modification, and redistribution, is contained in the file COPYING, which can be found at the root of the source code distribution tree. If you do not have access to this file, you may request a copy from .
Copyright by The HDF Group . This file is part of hdf5 - cffi . The full hdf5 - cffi copyright notice , including terms governing (pkg-config-cflags "hdf5" :optional t) See GROVELLER-HACKING-NOTE.md for explanation (include "hdf5.h") (in-package #:hdf5) (ctype h5z-filter-t "H5Z_filter_t") (constant (+H5Z-FI...
f5f2015df7b9b3ab877a79c95015315dc157c6ddf911f8d5b515e3bb9bd3cd40
jiangpengnju/htdp2e
ex227.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-intermediate-reader.ss" "lang")((modname ex227) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal...
null
https://raw.githubusercontent.com/jiangpengnju/htdp2e/d41555519fbb378330f75c88141f72b00a9ab1d3/abstraction/similarities-everywhere/ex227.rkt
racket
about the language level of this file in a form that our tools can easily process. - (cons ITEM '())
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-reader.ss" "lang")((modname ex227) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) Compare and contrast the data definitions for NEList - of - ...
40ea8822a3bc9033d7d98bf9020e34fafabd199bbca47c336829ca4a85f6a346
ryukinix/discrete-mathematics
exercises.hs
{-- Exercises --} Exercise 1 -- Write a recursive function copy :: [a] -> [a] that copies its list argument . For example , copy [ 2 ] = > 2 . copy :: [a] -> [a] copy [] = [] copy (x:xs) = x : copy xs Exercise 2 -- write a function inverse that takes a list of pairs and -- swaps the pair elements. For example,...
null
https://raw.githubusercontent.com/ryukinix/discrete-mathematics/1f779e05822c094af33745e2dd3c9a35c6dfb388/src/03-recursion/exercises.hs
haskell
- Exercises - Write a recursive function copy :: [a] -> [a] that copies write a function inverse that takes a list of pairs and swaps the pair elements. For example, Write a function containing the elements of each merge [1,2,3] [4,5,6] => [1,2,3,4,5,6] Hand evaluation of merge } Write (!!), a function that tak...
Exercise 1 its list argument . For example , copy [ 2 ] = > 2 . copy :: [a] -> [a] copy [] = [] copy (x:xs) = x : copy xs Exercise 2 inverse [ ( 1,2),(3,4 ) ] = > [ ( 2,1),(4,3 ) ] inverse :: [(a,b)] -> [(b,a)] inverse [] = [] inverse (x:xs) = swap x : inverse xs where swap (a,b) = (b,a) Exercise 3 m...
f3b06abb256f69c750f01315f51a8fd20ebf1fbd09be7083b9a2688b0f1ae14b
cfpb/qu
mongo_query.clj
(ns ^:integration integration.test.mongo-query "The 'integration_test' dataset is designed to simplify testing. Its data values are simple and map to the row number. The tests below are not designed to test MongoDB. Rather, they provide a regression layer to ensure the correct interaction between the modules ...
null
https://raw.githubusercontent.com/cfpb/qu/f460d9ab2f05ac22f6d68a98a9641daf0f7c7ba4/test/integration/test/mongo_query.clj
clojure
get-find and get-aggregation deftest are simply sanity checks (run-tests)
(ns ^:integration integration.test.mongo-query "The 'integration_test' dataset is designed to simplify testing. Its data values are simple and map to the row number. The tests below are not designed to test MongoDB. Rather, they provide a regression layer to ensure the correct interaction between the modules ...
dce198107c3108295222734c5be493bc1061878c037bd3329b8eb5b7987cea03
AshleyYakeley/Truth
PolyMap.hs
module Data.Shim.PolyMap where import Data.Shim.JoinMeet import Data.Shim.PolyShim import Shapes type PolyMapT :: (forall k. ShimKind k -> ShimKind k) -> PolyShimKind -> PolyShimKind newtype PolyMapT f pshim k a b = MkPolyMapT { unPolyMapT :: f (pshim k) a b } instance forall (f :: forall k. ShimKind k -> Sh...
null
https://raw.githubusercontent.com/AshleyYakeley/Truth/767d5624d4b139da8321a3544eab2d80a08923dc/Pinafore/polar-shim/lib/Data/Shim/PolyMap.hs
haskell
module Data.Shim.PolyMap where import Data.Shim.JoinMeet import Data.Shim.PolyShim import Shapes type PolyMapT :: (forall k. ShimKind k -> ShimKind k) -> PolyShimKind -> PolyShimKind newtype PolyMapT f pshim k a b = MkPolyMapT { unPolyMapT :: f (pshim k) a b } instance forall (f :: forall k. ShimKind k -> Sh...
772d3e59b647e62f871103becfa77b3f00b160f34eac88493a7c5b722ae694b9
kaoskorobase/mescaline
Process.hs
# LANGUAGE FlexibleContexts # module Mescaline.Synth.Sampler.Process ( Handle -- * Input , Input(..) -- * Output , Output(..) , new ) where import Control.Concurrent import Control.Concurrent.Process hiding (Handle) import qualified Control.Concurrent.Process as Process import ...
null
https://raw.githubusercontent.com/kaoskorobase/mescaline/13554fc4826d0c977d0010c0b4fb74ba12ced6b9/lib/mescaline/Mescaline/Synth/Sampler/Process.hs
haskell
* Input * Output TODO: Display this in the UI
# LANGUAGE FlexibleContexts # module Mescaline.Synth.Sampler.Process ( Handle , Input(..) , Output(..) , new ) where import Control.Concurrent import Control.Concurrent.Process hiding (Handle) import qualified Control.Concurrent.Process as Process import Control.Exception import...
50d193f19d4deae83bd9268a912a229f2627b96c8efe274e4adb6abf1ec0697a
milgra/cljs-brawl
actorwalk.cljc
(ns brawl.actorwalk (:require [mpd.math2 :as math2] [mpd.phys2 :as phys2])) (defn triangle-with-bases "calculates third point of triangle based on the two base points, side length and direction, used for knee and elbow" [a b size dir] (let [[x y :as ab2] (math2/scale-v2 (math2/sub-v2 b a) 0.5) ...
null
https://raw.githubusercontent.com/milgra/cljs-brawl/e03cf6f032b1af0f6e38396e43e739f83446a3e4/src/brawl/actorwalk.cljc
clojure
pick up gun or body send punch send kick send shoot return untouched head move forward and backwards when stepping head move even forward when squatting head should move lower when squatting x center of bases when walking y center of bases if legs are closer hip is higher breathing movement if stangind sta...
(ns brawl.actorwalk (:require [mpd.math2 :as math2] [mpd.phys2 :as phys2])) (defn triangle-with-bases "calculates third point of triangle based on the two base points, side length and direction, used for knee and elbow" [a b size dir] (let [[x y :as ab2] (math2/scale-v2 (math2/sub-v2 b a) 0.5) ...
676f55e9de928d3d1e8a2df9a0c2fcaa97e064c9b7ba07ad53c99743801a5ea7
tweag/inline-java
Http.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE ForeignFunctionInterface # {-# LANGUAGE LinearTypes #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE QualifiedDo # # LANGUAGE QuasiQuotes # {-# LANGUAGE RankNTypes #-} # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskel...
null
https://raw.githubusercontent.com/tweag/inline-java/a2daaa3cfc5cb172b6334bf5904d1a57025e709a/examples/directory-server/src/Directory/Server/Http.hs
haskell
# LANGUAGE LinearTypes # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # # OPTIONS_GHC -Wno-name-shadowing # | @startHttpServer port handler@ starts an http server on @port@. @handler@ is invoked whenever an http request is received. Export only to get a FunPtr. | Register functions for the native methods o...
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE ForeignFunctionInterface # # LANGUAGE QualifiedDo # # LANGUAGE QuasiQuotes # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # module Directory.Server.Http ( JHttpHandler , JHttpExchange , JHttpServer , star...
c87208607a58176c9c78176713c7256b25757e0f5b9fa3decabcd6517a737cd8
racket/htdp
info.rkt
#lang info (define test-omit-paths '("jump-to-ui-test.rkt" "big-bang-test.rkt")) (define test-responsibles '((all clements))) (define test-timeouts '(("run-manual-tests.rkt" 500) ("automatic-tests.rkt" 800)))
null
https://raw.githubusercontent.com/racket/htdp/aa78794fa1788358d6abd11dad54b3c9f4f5a80b/htdp-test/tests/stepper/info.rkt
racket
#lang info (define test-omit-paths '("jump-to-ui-test.rkt" "big-bang-test.rkt")) (define test-responsibles '((all clements))) (define test-timeouts '(("run-manual-tests.rkt" 500) ("automatic-tests.rkt" 800)))
5b134191e0d7185d7f910d4cb246136b81afd81285ae22da57ec0b24bf95c785
patricoferris/ocaml-multicore-monorepo
echo_schema.ml
open Graphql let echo : 'a. unit Schema.resolve_info -> unit -> 'a -> 'a = fun _ _ x -> x let echo_field name field_typ arg_typ = Schema.( field name ~typ:field_typ ~args:Arg.[ arg "x" ~typ:arg_typ ] ~resolve:echo ) type colors = Red | Green | Blue ...
null
https://raw.githubusercontent.com/patricoferris/ocaml-multicore-monorepo/22b441e6727bc303950b3b37c8fbc024c748fe55/duniverse/ocaml-graphql-server/graphql/test/echo_schema.ml
ocaml
open Graphql let echo : 'a. unit Schema.resolve_info -> unit -> 'a -> 'a = fun _ _ x -> x let echo_field name field_typ arg_typ = Schema.( field name ~typ:field_typ ~args:Arg.[ arg "x" ~typ:arg_typ ] ~resolve:echo ) type colors = Red | Green | Blue ...
e72a9615cf5dbe74a817a9824cd904b35beb2424a136db84a8f74225f804a7ab
leopiney/tensor-safe
AlexNetExample.hs
# LANGUAGE DataKinds # {-# LANGUAGE GADTs #-} | This module implements the AlexNet examples using Convs and Dense layers . module TensorSafe.Examples.AlexNetExample ( AlexNet, ) where import TensorSafe.Layers import TensorSafe.Network (MkINetwork, mkINetwork) import TensorSafe.Shape type AlexNet = MkINetwork...
null
https://raw.githubusercontent.com/leopiney/tensor-safe/cdf611dbbe68f6f6cb0b44fe31d86b28a547a3f2/src/TensorSafe/Examples/AlexNetExample.hs
haskell
# LANGUAGE GADTs # Input Output
# LANGUAGE DataKinds # | This module implements the AlexNet examples using Convs and Dense layers . module TensorSafe.Examples.AlexNetExample ( AlexNet, ) where import TensorSafe.Layers import TensorSafe.Network (MkINetwork, mkINetwork) import TensorSafe.Shape type AlexNet = MkINetwork '[ Conv2D 3 96 11 ...
f3612388b4f04febe106a81f951831bdb001cd99453a4d15eed962ac99594123
ghc/ghc
Loader.hs
# LANGUAGE CPP # {-# LANGUAGE TupleSections, RecordWildCards #-} {-# LANGUAGE BangPatterns #-} # LANGUAGE LambdaCase # -- ( c ) The University of Glasgow 2002 - 2006 -- | The loader -- -- This module deals with the top-level issues of dynamic linking (loading), -- calling the object-code linker and the byte-code l...
null
https://raw.githubusercontent.com/ghc/ghc/0196cc2ba8f848187be47b5fc53bab89e5026bf6/compiler/GHC/Linker/Loader.hs
haskell
# LANGUAGE TupleSections, RecordWildCards # # LANGUAGE BangPatterns # | The loader This module deals with the top-level issues of dynamic linking (loading), calling the object-code linker and the byte-code linker where necessary. * Load & Unload Standard libraries Packages that don't need loading, because the c...
# LANGUAGE CPP # # LANGUAGE LambdaCase # ( c ) The University of Glasgow 2002 - 2006 module GHC.Linker.Loader ( Loader (..) , LoaderState (..) , initLoaderState , uninitializedLoader , showLoaderState , getLoaderState , loadExpr , loadDecls , loadPackages , loadModule , loadCmdLine...
847df82d253d29fc2f13e16e575abda0c2e61d280859035503f92537f8b2671f
janestreet/base
uchar.ml
open! Import let failwithf = Printf.failwithf module T = struct include Uchar0 let module_name = "Base.Uchar" let hash_fold_t state t = Hash.fold_int state (to_int t) let hash t = Hash.run hash_fold_t t let to_string t = Printf.sprintf "U+%04X" (to_int t) (* Do not actually export this. See discussion i...
null
https://raw.githubusercontent.com/janestreet/base/1462b7d5458e96569275a1c673df968ecbf3342f/src/uchar.ml
ocaml
Do not actually export this. See discussion in the .mli Open replace_polymorphic_compare after including functor instantiations so they do not shadow its definitions. This is here so that efficient versions of the comparison functions are available within this module. Include type-specific [Replace_polymorph...
open! Import let failwithf = Printf.failwithf module T = struct include Uchar0 let module_name = "Base.Uchar" let hash_fold_t state t = Hash.fold_int state (to_int t) let hash t = Hash.run hash_fold_t t let to_string t = Printf.sprintf "U+%04X" (to_int t) let sexp_of_t t = Sexp.Atom (to_string t) le...
8080af90c869db65ac9e3c834ba47cb008ce6809683d0974d44ae2cb2842bf62
geneweb/geneweb
adef.ml
$ I d : adef.ml , v 5.6 2007 - 02 - 21 18:14:01 ddr Exp $ Copyright ( c ) 1998 - 2007 INRIA type fix = int let float_of_fix x = float x /. 1000000.0 let fix_of_float x = truncate ((x *. 1000000.0) +. 0.5) external fix : int -> fix = "%identity" external fix_repr : fix -> int = "%identity" let no_consang = fix (...
null
https://raw.githubusercontent.com/geneweb/geneweb/7b71f8f2f75e0e847818f821a0267938f38c9cf5/lib/def/adef.ml
ocaml
$ I d : adef.ml , v 5.6 2007 - 02 - 21 18:14:01 ddr Exp $ Copyright ( c ) 1998 - 2007 INRIA type fix = int let float_of_fix x = float x /. 1000000.0 let fix_of_float x = truncate ((x *. 1000000.0) +. 0.5) external fix : int -> fix = "%identity" external fix_repr : fix -> int = "%identity" let no_consang = fix (...
d82a47517fd1ec866bf4ddd311ae68ab273f24796b15b1ea6cb8e3f8e0544e5b
WormBase/wormbase_rest
mapped_transgenes.clj
(ns rest-api.classes.transgene.widgets.mapped-transgenes (:require [datomic.api :as d] [clojure.string :as str] [rest-api.db.main :refer [datomic-conn]] [rest-api.classes.generic-fields :as generic] [rest-api.classes.generic-functions :as generic-fns] [rest-api.formatters.object :as obj :refer...
null
https://raw.githubusercontent.com/WormBase/wormbase_rest/e51026f35b87d96260b62ddb5458a81ee911bf3a/src/rest_api/classes/transgene/widgets/mapped_transgenes.clj
clojure
(ns rest-api.classes.transgene.widgets.mapped-transgenes (:require [datomic.api :as d] [clojure.string :as str] [rest-api.db.main :refer [datomic-conn]] [rest-api.classes.generic-fields :as generic] [rest-api.classes.generic-functions :as generic-fns] [rest-api.formatters.object :as obj :refer...
672fbadd72b122373e2b79e991da4ad66406683dca15fb858af67dda6c7e5b9b
realworldocaml/book
screen.mli
include Screen_intf.Screen
null
https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/textutils/ascii_table/kernel/screen.mli
ocaml
include Screen_intf.Screen