_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
33f67a8131972c226523a8b3ad5c0c96a221bb05cd59b6c04ae24f19b7f0eee9
themetaschemer/malt
E-print.rkt
#lang racket (require "A-autodiff.rkt") (require "../tensors.rkt") (define max-tensor-print-length (make-parameter 5)) (struct fake-tensor (members) #:transparent #:methods gen:custom-write ((define write-proc (λ (fake-tensor port mode) (let ((n (length (fake-tensor-members fake-tensor)))) ...
null
https://raw.githubusercontent.com/themetaschemer/malt/78a04063a5a343f5cf4332e84da0e914cdb4d347/learner/autodiff/E-print.rkt
racket
#lang racket (require "A-autodiff.rkt") (require "../tensors.rkt") (define max-tensor-print-length (make-parameter 5)) (struct fake-tensor (members) #:transparent #:methods gen:custom-write ((define write-proc (λ (fake-tensor port mode) (let ((n (length (fake-tensor-members fake-tensor)))) ...
1ad0a2d9a63c0a90a91a49914e219038c3408b371ae9898e3d5d81d2409e8eeb
vagarenko/static-tensor
Linear.hs
module MatMul.Linear where import Linear.Matrix import Linear.V4 mkMat :: [Float] -> M44 Float mkMat (a:b:c:d:e:f:g:h:i:j:k:l:m:n:o:p:_) = V4 (V4 a b c d) (V4 e f g h) (V4 i j k l) (V4 m n o p) mkMat _ = error "Not enough elements in the list." mult :: M44 Float -> M44 Float -> M44 Float mul...
null
https://raw.githubusercontent.com/vagarenko/static-tensor/8409d281707c23f3fe2028e926f1d4e8f7a9bc2d/bench/MatMul/Linear.hs
haskell
module MatMul.Linear where import Linear.Matrix import Linear.V4 mkMat :: [Float] -> M44 Float mkMat (a:b:c:d:e:f:g:h:i:j:k:l:m:n:o:p:_) = V4 (V4 a b c d) (V4 e f g h) (V4 i j k l) (V4 m n o p) mkMat _ = error "Not enough elements in the list." mult :: M44 Float -> M44 Float -> M44 Float mul...
fb2ca75c0f04d00bee1072aeaefb07829c7e44cd4ce03d0e375101493667122f
G-Corp/kafe
kafe_protocol_controlled_shutdown.erl
% @hidden -module(kafe_protocol_controlled_shutdown).
null
https://raw.githubusercontent.com/G-Corp/kafe/78e014ae5b6d7e1077aa5cabf4adc21ed7abe203/src/kafe_protocol_controlled_shutdown.erl
erlang
@hidden
-module(kafe_protocol_controlled_shutdown).
1645c055a3b8516a3a59de63525fbcde6304c2b7da627ecea8a7cc54a2d598a3
skypher/cl-oauth
error-handling.lisp
(in-package :oauth) (define-condition http-error (error) ((status-code :reader http-error-status-code :initarg :status-code) (reason-phrase :reader http-error-reason-phrase :initarg :reason-phrase))) (define-condition bad-request (http-error) () (:default-initargs :status-co...
null
https://raw.githubusercontent.com/skypher/cl-oauth/a7a463c8c2e4726ab0853d5b6623349b6428cb89/src/core/error-handling.lisp
lisp
(in-package :oauth) (define-condition http-error (error) ((status-code :reader http-error-status-code :initarg :status-code) (reason-phrase :reader http-error-reason-phrase :initarg :reason-phrase))) (define-condition bad-request (http-error) () (:default-initargs :status-co...
46ca89f49e9d11d3b9e07730b20bdf8c4ef5bbb23340787b7becdd3c7ad5d80b
rescript-lang/rescript-compiler
js_block_runtime.ml
Copyright ( C ) 2019- , Authors of ReScript * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later vers...
null
https://raw.githubusercontent.com/rescript-lang/rescript-compiler/e60482c6f6a69994907b9bd56e58ce87052e3659/jscomp/core/js_block_runtime.ml
ocaml
Copyright ( C ) 2019- , Authors of ReScript * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later vers...
f95c2ceacaa19e60c5d7e33871bf8dc4c3feece27a6ae5252c2a29229a33c649
kazu-yamamoto/llrbtree
Set.hs
# LANGUAGE CPP , TemplateHaskell # module Main where import qualified Data.List as L #if METHOD == 1 import Data.Set.RBTree #elif METHOD == 2 import Data.Set.LLRBTree #elif METHOD == 3 import Data.Set.WBTree #else import Data.Set.LLRBTree #endif import Test.Framework.TH.Prime import Test.Framework.Providers.DocTes...
null
https://raw.githubusercontent.com/kazu-yamamoto/llrbtree/36f259e36c2b320aa37bbbae9577e01fd8a27118/test/Set.hs
haskell
# LANGUAGE CPP , TemplateHaskell # module Main where import qualified Data.List as L #if METHOD == 1 import Data.Set.RBTree #elif METHOD == 2 import Data.Set.LLRBTree #elif METHOD == 3 import Data.Set.WBTree #else import Data.Set.LLRBTree #endif import Test.Framework.TH.Prime import Test.Framework.Providers.DocTes...
575c24225889bbe041ec4789f9d4462470fd923f8b953324cd309e9d2ca5f871
seanirby/koeeoadi
language.cljs
(ns koeeoadi.components.language (:require [om.dom :as dom] [om.next :as om :refer-macros [defui]] [koeeoadi.components.code :refer [CodeChunk]] [koeeoadi.util :as util])) (defn code-change [comp code-map e] (let [new-code (.. e -target -value) code (get code-map n...
null
https://raw.githubusercontent.com/seanirby/koeeoadi/481dc31e023e0a54ee5248bd2ef06a56e7d1d64d/src/cljs/koeeoadi/components/language.cljs
clojure
(ns koeeoadi.components.language (:require [om.dom :as dom] [om.next :as om :refer-macros [defui]] [koeeoadi.components.code :refer [CodeChunk]] [koeeoadi.util :as util])) (defn code-change [comp code-map e] (let [new-code (.. e -target -value) code (get code-map n...
2e88a2760ba58b9c34983977f3e7682624df02f8e7175a67adb657117f4ba185
tov/type-systems-seminar
sysf.rkt
#lang s-exp nu-type-systems/turnstile/sysf (define (negate [x Int] -> Int) (- 0 x)) (define (+ [x Int] [y Int] -> Int) (- x (negate y))) (define (< [n Int] [m Int] -> Bool) (positive? (- m n))) (define (= [n Int] [m Int] -> Bool) (zero? (- m n))) ;;;; Sorting (define swap! (tyλ (A) (λ ([v (Vec A)] [...
null
https://raw.githubusercontent.com/tov/type-systems-seminar/f9c45af743606bce4613dcf6fd4f63b2526d6aef/exercises/sysf.rkt
racket
Sorting Church encodings The unit type! Naturals
#lang s-exp nu-type-systems/turnstile/sysf (define (negate [x Int] -> Int) (- 0 x)) (define (+ [x Int] [y Int] -> Int) (- x (negate y))) (define (< [n Int] [m Int] -> Bool) (positive? (- m n))) (define (= [n Int] [m Int] -> Bool) (zero? (- m n))) (define swap! (tyλ (A) (λ ([v (Vec A)] [i Int] [j Int...
8840a8ee32460bae86d6c677eb3f501cfa9146279938b1d6a1d09ca82a8682f8
borodust/bodge-ui
packages.lisp
(cl:defpackage :bodge-ui.example (:use :cl :bodge-ui :bodge-ui.renderer))
null
https://raw.githubusercontent.com/borodust/bodge-ui/94fb37de3dcfe18f97945a29c70f451ebfb6966b/example/packages.lisp
lisp
(cl:defpackage :bodge-ui.example (:use :cl :bodge-ui :bodge-ui.renderer))
eb53295d694214170ca991ac98465ce316cc4b65d231b59e86e8323569106762
lpw25/talks
int.ml
type t = int let compare (x : int) (y : int) = compare x y
null
https://raw.githubusercontent.com/lpw25/talks/89b565f66be567795d08c520aea3b03d527d64b2/nyc-2018/int.ml
ocaml
type t = int let compare (x : int) (y : int) = compare x y
388653fbb245350ca841ac77079fe5e7c4c1c60341e4beead4bea249923d9e57
THISISDINOSAUR/Anatomy
section.rkt
#lang racket (provide (all-defined-out)) (define section% (class object% (init-field [bones #f] [name ""]) (define/public (scale! x y z) (map (lambda (bone) (send bone scale! x y z)) bones) (void)) (super-new) ))
null
https://raw.githubusercontent.com/THISISDINOSAUR/Anatomy/883aa140c41cd375575a2944bda79608c660935b/section.rkt
racket
#lang racket (provide (all-defined-out)) (define section% (class object% (init-field [bones #f] [name ""]) (define/public (scale! x y z) (map (lambda (bone) (send bone scale! x y z)) bones) (void)) (super-new) ))
581971107f0d3d471e4a9c67f5babd197957265e9415e1a98e270b538f1dd24d
dimitri-xyz/haskell-coinbase-pro
MarketData.hs
# LANGUAGE CPP # {-# LANGUAGE DeriveGeneric #-} # LANGUAGE FlexibleContexts # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} module Coinbase.Exchange.MarketData ( getProducts , getTopOf...
null
https://raw.githubusercontent.com/dimitri-xyz/haskell-coinbase-pro/642a8282ac9f378a6dc0e88535bb50c44bcae091/src/Coinbase/Exchange/MarketData.hs
haskell
# LANGUAGE DeriveGeneric # # LANGUAGE OverloadedStrings # Products Order Book Product Ticker Product Trades Historic Rates (Candles) Product Stats Exchange Currencies Exchange Time
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # module Coinbase.Exchange.MarketData ( getProducts , getTopOfBook , getTop50OfBook , getOrderBook , getProductTicker , getTrades ...
d90a9c8dea9b33d6025fd7dfdcd631fce73de8d0a75963513505600d2841c5d9
SecPriv/webspec
logger.ml
(********************************************************************************) Copyright ( c ) 2021 (* *) (* Permission is hereby granted, free of charge, to any person obtaining a *) (* c...
null
https://raw.githubusercontent.com/SecPriv/webspec/9f500bd85400551d8bf0e117ac5aa57088f9bc20/compiler/src/logger.ml
ocaml
****************************************************************************** Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), th...
Copyright ( c ) 2021 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 WARRANTY OF ANY KIND , EXPRESS OR LIABI...
0f65fdc018af42d68fa22efb3beaeb8412b1e9a572214f633c474e3633a9f575
haskell-works/avro
Writer.hs
# LANGUAGE DeriveGeneric # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} # LANGUAGE TemplateHaskell # module Avro.Deconflict.B.Writer where import Data.Avro.Deriving deriveAvroFromByteString [r| [ { "type": "record", "name": "Foo", "namespace": "avro.test", "fields": [ { "...
null
https://raw.githubusercontent.com/haskell-works/avro/9eb4970fd72939a68aa6f947d3d2dc17280352f8/test/Avro/Deconflict/B/Writer.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE QuasiQuotes #
# LANGUAGE DeriveGeneric # # LANGUAGE TemplateHaskell # module Avro.Deconflict.B.Writer where import Data.Avro.Deriving deriveAvroFromByteString [r| [ { "type": "record", "name": "Foo", "namespace": "avro.test", "fields": [ { "name": "fieldA", "type": ["null", { "type": "record", ...
17560b6d757f1346b74aff8490182a96acbe9c945d086b87486861941e1e0ddf
ublubu/shapes
Rolling.hs
module Physics.Scenes.Rolling where import Control.Monad.ST import Physics.Constraint import Physics.Contact.Types import Physics.Engine import Physics.Scenes.Scene import Physics.World shapeA :: PhysicalObj shapeA = makePhysicalObj (0, 0) 0 (0, -6) 0 (0, 0)...
null
https://raw.githubusercontent.com/ublubu/shapes/fa5d959c17224a851d517826deeae097f1583392/shapes/src/Physics/Scenes/Rolling.hs
haskell
module Physics.Scenes.Rolling where import Control.Monad.ST import Physics.Constraint import Physics.Contact.Types import Physics.Engine import Physics.Scenes.Scene import Physics.World shapeA :: PhysicalObj shapeA = makePhysicalObj (0, 0) 0 (0, -6) 0 (0, 0)...
4b4bf166193cd4b2a725f1fa454d75c07b88df490f173353131fb6c6947c72f9
c4-project/c4f
var_assign.mli
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
null
https://raw.githubusercontent.com/c4-project/c4f/8939477732861789abc807c8c1532a302b2848a5/lib/fuzz_actions/src/var_assign.mli
ocaml
* Assignment actions. * {1 Actions that generate assignments} * Shorthand type for assignment insertion actions. * [Int_normal] is a fuzzer action that generates a random int assignment. * [Int_redundant] is an insertion action that only stores a destination's known value back to itself. * [int_action_names]...
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
ad9f5ef0bdf492752ac43e807e28d190cf0a4ff09d632abf6e91a46ffa780971
returntocorp/semgrep
Textedit.ml
* * Copyright ( C ) 2019 - 2022 r2c * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation , with the * special exception on linking described in file LICE...
null
https://raw.githubusercontent.com/returntocorp/semgrep/e0d996ed1e4d76d0dafd34aec96bde3b718ac05e/libs/commons/Textedit.ml
ocaml
This module represents and applies edits to text 0-based byte index, inclusive 0-based byte index, exclusive nonempty Apply the fixes. These string operations are inefficient but should * be fine. The Python CLI version of this code is even more inefficent.
* * Copyright ( C ) 2019 - 2022 r2c * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation , with the * special exception on linking described in file LICE...
14cfb1ec92837f5cf787dcbcad2c043e3690806cd9ef942c11e971f95ca9a215
lopec/LoPEC
listener_tests.erl
%%%------------------------------------------------------------------- @author , < > %%% @doc %%% %%% Contains the unit tests for the job listener. %%% %%% @end Created : 14 Oct 2009 by < > %%%------------------------------------------------------------------- -module(listener_tests). -include("../include/db.h...
null
https://raw.githubusercontent.com/lopec/LoPEC/29a3989c48a60e5990615dea17bad9d24d770f7b/trunk/lib/master/test/listener_tests.erl
erlang
------------------------------------------------------------------- @doc Contains the unit tests for the job listener. @end ------------------------------------------------------------------- This is a non-existing job db:create_tables(ram_copies), examiner:stop(), fuck you erlang we shouldnt have to wait for db...
@author , < > Created : 14 Oct 2009 by < > -module(listener_tests). -include("../include/db.hrl"). -include_lib("eunit/include/eunit.hrl"). listener_test_() -> {setup, fun tests_init/0, fun tests_stop/1, fun ({JobId, JobId2}) -> {inorder, [ ?_assertM...
28eae7a486f116199a2bec9fcf2ca7b20650c5549556b1ea749a143ad78fbdfb
abhinav/pinch
BuilderSpec.hs
{-# LANGUAGE NegativeLiterals #-} {-# LANGUAGE OverloadedStrings #-} module Pinch.Internal.BuilderSpec (spec) where import Data.Word (Word8) import Test.Hspec import Test.Hspec.QuickCheck import qualified Data.ByteString as B import Pinch.Arbitrary import qualified Pinch.Internal.Builder as BB builder...
null
https://raw.githubusercontent.com/abhinav/pinch/41aa4a83e736fabf568288c15504bc0ad17da3c8/tests/Pinch/Internal/BuilderSpec.hs
haskell
# LANGUAGE NegativeLiterals # # LANGUAGE OverloadedStrings #
module Pinch.Internal.BuilderSpec (spec) where import Data.Word (Word8) import Test.Hspec import Test.Hspec.QuickCheck import qualified Data.ByteString as B import Pinch.Arbitrary import qualified Pinch.Internal.Builder as BB builderCases :: (Show a, Eq a) => (a -> BB.Builder) -> [([Word8], a)]...
03a362163455c9f3ab621ee2aa7a27c038cf24d64fe28476cad28f8cc3471aaa
komi1230/kai
generate.lisp
;;;; generate.lisp --- File generator and downloader ;;; ;;; This code has been placed in the Public Domain. All warranties ;;; are disclaimed. ;;; ;;; This file is composed of a collection of functions of file generator and file donwloader . (in-package :cl-user) (defpackage :kai.plotly.generate (:use :cl) (:...
null
https://raw.githubusercontent.com/komi1230/kai/7481aae3ca11a79c117dd6fbc4e3bf2122a89627/src/plotly/generate.lisp
lisp
generate.lisp --- File generator and downloader This code has been placed in the Public Domain. All warranties are disclaimed. This file is composed of a collection of functions of file generator Donwload client When using Plotly, plotly-latest.js is needed. Here is a set of file donwload client and file che...
and file donwloader . (in-package :cl-user) (defpackage :kai.plotly.generate (:use :cl) (:import-from :kai.converter :to-json :plotly-code) (:import-from :kai.util :make-kai-cache :download-file) (:export :download-file :download-plo...
eecabe7a5381056e054bce34b4ca6e21deee48e73b4516e24fa379c4c5136869
lasp-lang/partisan
thing2.erl
-module(thing2). -export([handle_info/2]). handle_info({message1, _A}, _State) -> ok; handle_info({message2, _A}, _State) -> ok.
null
https://raw.githubusercontent.com/lasp-lang/partisan/9e8de7f1a590babe317f24aa6df65821e9683fdd/protocols/thing2.erl
erlang
-module(thing2). -export([handle_info/2]). handle_info({message1, _A}, _State) -> ok; handle_info({message2, _A}, _State) -> ok.
0273fbd033c1b56ba0111cbd17a626a98c7e9d8f216b654a7371af9a049b27ac
zyrolasting/polyglot
build.rkt
#lang racket/base (provide build) (require racket/cmdline "../../main.rkt" "shared.rkt") (define (build) (command-line #:program "build" #:args (path) (report+summary (λ _ (define-values (directory project build!) (init-from-user-path path)) (with-handlers ([exn:fail...
null
https://raw.githubusercontent.com/zyrolasting/polyglot/d27ca7fe90fd4ba2a6c5bcd921fce89e72d2c408/polyglot-lib/polyglot/private/cli/build.rkt
racket
#lang racket/base (provide build) (require racket/cmdline "../../main.rkt" "shared.rkt") (define (build) (command-line #:program "build" #:args (path) (report+summary (λ _ (define-values (directory project build!) (init-from-user-path path)) (with-handlers ([exn:fail...
dd0faddd509419f053dfbc1e581ffd6851788d2fab9e6b9a6f61271ff88071b7
seek-oss/serverless-haskell
Orphans.hs
# LANGUAGE CPP # # LANGUAGE GeneralizedNewtypeDeriving # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE StandaloneDeriving # # OPTIONS_GHC -fno - warn - orphans # module AWSLambda.Orphans where import Data.Aeson import Data.Monoid ((<>)) import qua...
null
https://raw.githubusercontent.com/seek-oss/serverless-haskell/dbea96e657e23fd4a3fef03bdf182f060dc2590d/src/AWSLambda/Orphans.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE CPP # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE StandaloneDeriving # # OPTIONS_GHC -fno - warn - orphans # module AWSLambda.Orphans where import Data.Aeson import Data.Monoid ((<>)) import qualified Data.Text as Text import ...
57a4667eb73a1964a45a9635ab51482e0ea202115dc424c461cfd6788a29f277
geophf/1HaskellADay
Exercise.hs
module Y2016.M08.D22.Exercise where - So , we 've looked at tweets , urls / links , users , and so we have just a bit left ( that concerns me , anyway ) , and that is the Hashtag ( or ' # brown ' to in the know ) . The structure of a hashtag is buried somewhere in these data : " graph " : { " nodes " : ...
null
https://raw.githubusercontent.com/geophf/1HaskellADay/514792071226cd1e2ba7640af942667b85601006/exercises/HAD/Y2016/M08/D22/Exercise.hs
haskell
} from the git repository here: gives the hashtag ids and the hashtags hint: recall that readGraphJSON twitterGraphUrl will get you [GraphJ] How many hashtags are there? - BONUS ----------------------------------------------------------------- A bit of a data analysis. Can you identify a User by the hashtags they ...
module Y2016.M08.D22.Exercise where - So , we 've looked at tweets , urls / links , users , and so we have just a bit left ( that concerns me , anyway ) , and that is the Hashtag ( or ' # brown ' to in the know ) . The structure of a hashtag is buried somewhere in these data : " graph " : { " nodes " : ...
e4544f3c05d593463950ef323663aaef3f300a6ff56895582efd36875cb62862
flipstone/orville
ValueExpression.hs
# LANGUAGE GeneralizedNewtypeDeriving # | Module : . PostgreSQL.Expr . Where . ValueExpression Copyright : Flipstone Technology Partners 2016 - 2021 License : MIT Module : Orville.PostgreSQL.Expr.Where.ValueExpression Copyright : Flipstone Technology Partners 2016-2021 License : MIT -} module Or...
null
https://raw.githubusercontent.com/flipstone/orville/3e5ad212dfd777690baa4fef29cd103ddff9ec9b/orville-postgresql-libpq/src/Orville/PostgreSQL/Internal/Expr/ValueExpression.hs
haskell
# LANGUAGE GeneralizedNewtypeDeriving # | Module : . PostgreSQL.Expr . Where . ValueExpression Copyright : Flipstone Technology Partners 2016 - 2021 License : MIT Module : Orville.PostgreSQL.Expr.Where.ValueExpression Copyright : Flipstone Technology Partners 2016-2021 License : MIT -} module Or...
282d253a3bc79506a0c07d498dffbefee544130aee10a49fb255e351353a3b66
helins/binf.cljc
cabi.cljc
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 /. (ns helins.binf.example.cabi "Examples of defining C structures as EDN data and using this information to read and write a view." (:r...
null
https://raw.githubusercontent.com/helins/binf.cljc/7f178bfb7ed7168e313e2d4262a58b976383600c/src/example/helins/binf/example/cabi.cljc
clojure
Preparing things Creating functions for writing and reading a date using information from our struct. Depending on the use-case, helpers should be written. Here, we show the whole work. Eval interactively - Writing and reading a date Having an idea of how things look. Writing and reading a date at position 0 in...
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 /. (ns helins.binf.example.cabi "Examples of defining C structures as EDN data and using this information to read and write a view." (:r...
82f016c41588622afc58491c5c46ba449767ac9bb6141d532ad400f5d77f601c
kwanghoon/polyrpc
Pretty.hs
{-# LANGUAGE GADTs #-} -- | Pretty printing module Pretty where pretty :: Pretty a => a -> String pretty x = bpretty 0 x "" class Pretty a where bpretty :: Int -> a -> ShowS instance Pretty a => Pretty (Maybe a) where bpretty d Nothing = showString "" bpretty d (Just x) = bpretty d x instance Pretty a => Pre...
null
https://raw.githubusercontent.com/kwanghoon/polyrpc/6b68d7fd7f0743be55d467d4b722763dd49da474/app/bidi/Pretty.hs
haskell
# LANGUAGE GADTs # | Pretty printing
module Pretty where pretty :: Pretty a => a -> String pretty x = bpretty 0 x "" class Pretty a where bpretty :: Int -> a -> ShowS instance Pretty a => Pretty (Maybe a) where bpretty d Nothing = showString "" bpretty d (Just x) = bpretty d x instance Pretty a => Pretty [a] where bpretty _ list = showString ...
8548bf4b9b74cff9ab0f7b045dfe00867ab0804f87625d63065043e824a28508
cabol/gen_buffer
test_message_handler3.erl
-module(test_message_handler3). -export([ handle_message/2 ]). handle_message(_BufferName, _Msg) -> error(handler_exception).
null
https://raw.githubusercontent.com/cabol/gen_buffer/35dbe556f84bc84e10527ecb0c98228815064d9d/test/support/handlers/test_message_handler3.erl
erlang
-module(test_message_handler3). -export([ handle_message/2 ]). handle_message(_BufferName, _Msg) -> error(handler_exception).
a2a0eec26c6f79e72538432f0a1c810e1f12034b2f8ba203544644f15889784e
RefactoringTools/HaRe
A1.hs
module Renaming.A1 where import Renaming.B1 import Renaming.C1 import Renaming.D1 main :: Tree Int ->Bool main t = isSame (sumSquares (fringe t)) (sumSquares (Renaming.B1.myFringe t)+sumSquares (Renaming.C1.myFringe t))
null
https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/test/testdata/Renaming/A1.hs
haskell
module Renaming.A1 where import Renaming.B1 import Renaming.C1 import Renaming.D1 main :: Tree Int ->Bool main t = isSame (sumSquares (fringe t)) (sumSquares (Renaming.B1.myFringe t)+sumSquares (Renaming.C1.myFringe t))
7848d0a3608adc32b3679a8bfcf01f9deffad7cdf5404a3c972ae4bc8ed10bfe
javalib-team/sawja
jControlFlow.mli
* This file is part of SAWJA * Copyright ( c)2007 , 2008 ( Université de Rennes 1 ) * Copyright ( c)2007 , 2008 , 2009 ( CNRS ) * Copyright ( c)2009 ( INRIA ) * * This program is free software : you can redistribute it and/or * modify it under the terms of the GNU General Public License * ...
null
https://raw.githubusercontent.com/javalib-team/sawja/5b46e4afc024092cdeaf8ba125f0c5ac05cb9137/src/jControlFlow.mli
ocaml
* Provides some JVM resolution and lookup functions and allows some navigation in the control flow graph of a program for static analysis. * {b Warning : lookup and resolve functions do not take in account visibility yet}! * [resolve_class p cn] returns the class named [cn] in program [p], if any. @r...
* This file is part of SAWJA * Copyright ( c)2007 , 2008 ( Université de Rennes 1 ) * Copyright ( c)2007 , 2008 , 2009 ( CNRS ) * Copyright ( c)2009 ( INRIA ) * * This program is free software : you can redistribute it and/or * modify it under the terms of the GNU General Public License * ...
2b6819207310d45e7983b9ea5c7a7ad5206d399c31fb73595af9ee99052158ec
lingnand/VIMonad
IndependentScreens.hs
----------------------------------------------------------------------------- -- | -- Module : XMonad.Layout.IndependentScreens Copyright : ( c ) 2009 -- License : BSD3 -- -- Maintainer : <> -- Stability : unstable -- Portability : unportable -- -- Utility functions for simulating independent ...
null
https://raw.githubusercontent.com/lingnand/VIMonad/048e419fc4ef57a5235dbaeef8890faf6956b574/XMonadContrib/XMonad/Layout/IndependentScreens.hs
haskell
--------------------------------------------------------------------------- | Module : XMonad.Layout.IndependentScreens License : BSD3 Maintainer : <> Stability : unstable Portability : unportable Utility functions for simulating independent sets of workspaces on distinguish workspaces associ...
Copyright : ( c ) 2009 each screen ( like dwm 's workspace model ) , using internal tags to module XMonad.Layout.IndependentScreens ( VirtualWorkspace, PhysicalWorkspace, workspaces', withScreens, onCurrentScreen, marshallPP, whenCurrentOn, countScreens, marshall, unmarshall, unm...
d2929067ff3701648a0263c000e0c562642e00f19101d660d78770b96e8b6319
lwhjp/racket-jni
object.rkt
#lang racket/base (require racket/class racket/match racket/string ffi/unsafe "env.rkt" "error.rkt" "jni.rkt" "signature.rkt" "types.rkt") (provide field-id? method-id? jobject% jni-alloc-object jni-new-object ...
null
https://raw.githubusercontent.com/lwhjp/racket-jni/ad76ef596d9e1702bffc9ab2141616b628f72b4d/private/object.rkt
racket
FIXME: should we use mixins or surrogates instead? cast
#lang racket/base (require racket/class racket/match racket/string ffi/unsafe "env.rkt" "error.rkt" "jni.rkt" "signature.rkt" "types.rkt") (provide field-id? method-id? jobject% jni-alloc-object jni-new-object ...
55e2119a3316ee053e9870dfa8ca4c207ee0ff7a26db762ea72d925c10b12076
ocsigen/ocsipersist-legacy
ocsipersist.mli
include Ocsipersist_sig.REF with type 'a wrap := 'a Lwt.t include Ocsipersist_sig.TABLE
null
https://raw.githubusercontent.com/ocsigen/ocsipersist-legacy/98b5ee0e64774b558302c5354ab683ee26874ea4/src_sqlite/ocsipersist.mli
ocaml
include Ocsipersist_sig.REF with type 'a wrap := 'a Lwt.t include Ocsipersist_sig.TABLE
e09b66f482b7085d9eee01448b02555b0920d3785bf3f4471123b7a3a19b16d3
jumarko/web-development-with-clojure
env.clj
;--- Excerpted from " Web Development with Clojure , Second Edition " , published by The Pragmatic Bookshelf . Copyrights apply to this code . It may not be used to create training material , ; courses, books, articles, and the like. Contact us if you are in doubt. ; We make no guarantees that this code is fit fo...
null
https://raw.githubusercontent.com/jumarko/web-development-with-clojure/dfff6e40c76b64e9fcd440d80c7aa29809601b6b/code/oauth-example/env/prod/clj/oauth_example/env.clj
clojure
--- courses, books, articles, and the like. Contact us if you are in doubt. We make no guarantees that this code is fit for any purpose. Visit for more book information. ---
Excerpted from " Web Development with Clojure , Second Edition " , published by The Pragmatic Bookshelf . Copyrights apply to this code . It may not be used to create training material , (ns oauth-example.env (:require [clojure.tools.logging :as log])) (def defaults {:init (fn [] (log/info "\n-=[oaut...
32200376edd0a6ec5cf688213723969462063245595b69eaa3304ce25d4d84e9
ejgallego/HOARe2
whyHacks.ml
Copyright ( c ) 2013 , The Trustees of the University of Pennsylvania Copyright ( c ) 2013 , The IMDEA Software Institute All rights reserved . LICENSE : 3 - clause BSD style . See the LICENSE file for details on licensing . Copyright (c) 2013, The IMDEA Software Institute All rights rese...
null
https://raw.githubusercontent.com/ejgallego/HOARe2/48d8760696fdf4b8a3eda5a4d2a53eeba53072d8/src/whyHacks.ml
ocaml
Some hacks and redefitions of Why3 type inference Printf.printf "matching"
Copyright ( c ) 2013 , The Trustees of the University of Pennsylvania Copyright ( c ) 2013 , The IMDEA Software Institute All rights reserved . LICENSE : 3 - clause BSD style . See the LICENSE file for details on licensing . Copyright (c) 2013, The IMDEA Software Institute All rights rese...
ede2f8e3dff089bee6a90d7e9373dd51c3512fb063e82fce709ab86dca864cbd
gdamore/tree-sitter-d
contracts.scm
================================================================================ Function contracts ================================================================================ class C { true ) ; true ) { return 2; } } ------------------------------------------------------------------------------...
null
https://raw.githubusercontent.com/gdamore/tree-sitter-d/ef33d2a62c7efedfa90ea6313f5f9f334379516e/test/corpus/contracts.scm
scheme
true )
================================================================================ Function contracts ================================================================================ class C { { } } -------------------------------------------------------------------------------- (source_file (class_declaration...
d2f66a0eca2505e8ce3012ee0ca33059c482261f1daa39785ee56a5a34b93c71
deadpendency/deadpendency
FetchRepoFilesBackend.hs
# LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # # OPTIONS_GHC -fno - warn - missing - deriving - strategies # # OPTIONS_GHC -fno - warn - orphans # module Common.Effect.GitHub.FetchRepoFiles.Backend.FetchRepoFilesBackend ( githubFetchRepoFile, ) where import Common.Effect.GitHub.FetchRepoFiles.Backend.Mode...
null
https://raw.githubusercontent.com/deadpendency/deadpendency/170d6689658f81842168b90aa3d9e235d416c8bd/apps/common/src/Common/Effect/GitHub/FetchRepoFiles/Backend/FetchRepoFilesBackend.hs
haskell
-graphql/issues/509 requires __typename for now A file with no content can be represented by an empty string
# LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # # OPTIONS_GHC -fno - warn - missing - deriving - strategies # # OPTIONS_GHC -fno - warn - orphans # module Common.Effect.GitHub.FetchRepoFiles.Backend.FetchRepoFilesBackend ( githubFetchRepoFile, ) where import Common.Effect.GitHub.FetchRepoFiles.Backend.Mode...
6610804f49017a6773dd1f8cf6de334367dbb984f1918a6a81072a3dba1587d0
project-oak/hafnium-verification
Mangled.ml
* Copyright ( c ) 2009 - 2013 , Monoidics ltd . * Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) 2009-2013, Monoidics ltd. * Copyright (c) Facebook, In...
null
https://raw.githubusercontent.com/project-oak/hafnium-verification/6071eff162148e4d25a0fedaea003addac242ace/experiments/ownership-inference/infer/infer/src/IR/Mangled.ml
ocaml
* Module for Mangled Names * Convert a string to a mangled name * Create a mangled name from a plain and mangled string * Convert a mangled name to a string * Convert a full mangled name to a string * Pretty print a mangled name
* Copyright ( c ) 2009 - 2013 , Monoidics ltd . * Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) 2009-2013, Monoidics ltd. * Copyright (c) Facebook, In...
7b6631f9404b4960f112d661b3d08038825de9d27c56000f416ffeb1d5899657
chef/chef-server
bifrost_wm_unnamed_resources.erl
-module(bifrost_wm_unnamed_resources). -include("bifrost_wm_rest_endpoint.hrl"). -include_lib("stats_hero/include/stats_hero.hrl"). -mixin([{bifrost_wm_base, [create_path/2, post_is_create/2]}]). -export([from_json/2]). init(Config) -> bifrost_wm_base:init(?MODULE, Config). allowed_m...
null
https://raw.githubusercontent.com/chef/chef-server/6d31841ecd73d984d819244add7ad6ebac284323/src/oc_bifrost/apps/bifrost/src/bifrost_wm_unnamed_resources.erl
erlang
-module(bifrost_wm_unnamed_resources). -include("bifrost_wm_rest_endpoint.hrl"). -include_lib("stats_hero/include/stats_hero.hrl"). -mixin([{bifrost_wm_base, [create_path/2, post_is_create/2]}]). -export([from_json/2]). init(Config) -> bifrost_wm_base:init(?MODULE, Config). allowed_m...
73f35f6d48f1b463993a2d4bed08fb8851d432b4de9214c7c748617bbb32891d
sgbj/MaximaSharp
isamax.lisp
;;; Compiled by f2cl version: ( " f2cl1.l , v 2edcbd958861 2012/05/30 03:34:52 toy $ " " f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl5.l , v 3fe93de3be82 2012/05/06 02:17:14 toy ...
null
https://raw.githubusercontent.com/sgbj/MaximaSharp/75067d7e045b9ed50883b5eb09803b4c8f391059/Test/bin/Debug/Maxima-5.30.0/share/maxima/5.30.0/share/lapack/blas/isamax.lisp
lisp
Compiled by f2cl version: Using Lisp CMU Common Lisp 20d (20D Unicode) Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t) (:coerce-assigns :as-needed) (:array-type ':array) (:array-slicing t) (:declare-common nil) (:float-format double-float))
( " f2cl1.l , v 2edcbd958861 2012/05/30 03:34:52 toy $ " " f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl5.l , v 3fe93de3be82 2012/05/06 02:17:14 toy $ " " f2cl6.l , v 1d5cbacbb...
4e260ee411bb8b18121938b42a7be4b80c590f43714a03790e31afb514a5f282
chrisdone/prana
Pretty.hs
# LANGUAGE LambdaCase # -- | module Prana.Pretty where import Data.List import qualified Data.Map.Strict as M import Prana.Types prettyRhs :: ReverseIndex -> Rhs -> String prettyRhs index = \case RhsCon con -> node "RhsCon" [prettyCon index con] RhsClosure con -> node "RhsClosure" [pre...
null
https://raw.githubusercontent.com/chrisdone/prana/f2e45538937d326aff562b6d49296eaedd015662/prana-types/src/Prana/Pretty.hs
haskell
|
# LANGUAGE LambdaCase # module Prana.Pretty where import Data.List import qualified Data.Map.Strict as M import Prana.Types prettyRhs :: ReverseIndex -> Rhs -> String prettyRhs index = \case RhsCon con -> node "RhsCon" [prettyCon index con] RhsClosure con -> node "RhsClosure" [prettyCl...
a98908d8ecd7fe252afbb55dcb8b60c172a94f4a8b0ae2ad5ea781d43bfea60b
BranchTaken/Hemlock
test_min_max.ml
open! Basis.Rudiments open! Basis open U128 let test () = let rec test_pairs = function | [] -> () | (x, y) :: pairs' -> begin File.Fmt.stdout |> Fmt.fmt "min,max " |> fmt ~alt:true ~zpad:true ~width:32L ~radix:Radix.Hex ~pretty:true x |> Fmt.fmt " " |> fmt ~alt:true ~...
null
https://raw.githubusercontent.com/BranchTaken/Hemlock/a07e362d66319108c1478a4cbebab765c1808b1a/bootstrap/test/basis/u128/test_min_max.ml
ocaml
open! Basis.Rudiments open! Basis open U128 let test () = let rec test_pairs = function | [] -> () | (x, y) :: pairs' -> begin File.Fmt.stdout |> Fmt.fmt "min,max " |> fmt ~alt:true ~zpad:true ~width:32L ~radix:Radix.Hex ~pretty:true x |> Fmt.fmt " " |> fmt ~alt:true ~...
ed8915cbd6cbdccb99eddac549b34042ed5deae71e94c51da5c0e18e4396edce
contivero/hasmin
TimingFunction.hs
{-# LANGUAGE OverloadedStrings #-} ----------------------------------------------------------------------------- -- | Module : Hasmin . . TimingFunction Copyright : ( c ) 2017 -- License : BSD3 -- Stability : experimental -- Portability : unknown -- Parsers for \<single - timing - function > va...
null
https://raw.githubusercontent.com/contivero/hasmin/2a7604159b51e69c5e9c564dce53cb3ab09ae22b/src/Hasmin/Parser/TimingFunction.hs
haskell
# LANGUAGE OverloadedStrings # --------------------------------------------------------------------------- | License : BSD3 Stability : experimental Portability : unknown --------------------------------------------------------------------------- | Parser for <-timing-1/#single-timing-function-production \...
Module : Hasmin . . TimingFunction Copyright : ( c ) 2017 Parsers for \<single - timing - function > values . module Hasmin.Parser.TimingFunction ( timingFunction , cubicbezier , steps ) where import Control.Applicative (optional) import Data.Attoparsec.Text (Parser) import qualified...
59b4032577e840d6d378052d317a21422325ac5fa9a9bf8b2048a00724a6a882
yutopp/rill
env.ml
* Copyright yutopp 2019 - . * * Distributed under the Boost Software License , Version 1.0 . * ( See accompanying file LICENSE_1_0.txt or copy at * ) * Copyright yutopp 2019 - . * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * )...
null
https://raw.githubusercontent.com/yutopp/rill/375b67c03ab2087d0a2a833bd9e80f3e51e2694f/rillc/lib/sema/env.ml
ocaml
TODO: fix
* Copyright yutopp 2019 - . * * Distributed under the Boost Software License , Version 1.0 . * ( See accompanying file LICENSE_1_0.txt or copy at * ) * Copyright yutopp 2019 - . * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * )...
5e253e4549bbf182f7992b2e4de10b40970417bd93275698cfc1c85e727e1417
tomjridge/mini-btree
make.ml
* Provide two impls : one with fd , one with mmap open Btree_impl_intf (* module Make = Make_with_mmap_private.Make *) (* module Make_with_fd = Make_with_fd_private.Make *) module Make_with_mmap = Make_with_mmap_private.Make
null
https://raw.githubusercontent.com/tomjridge/mini-btree/27c529ab6f8c594537764ef7fab6677df15b0337/src/make.ml
ocaml
module Make = Make_with_mmap_private.Make module Make_with_fd = Make_with_fd_private.Make
* Provide two impls : one with fd , one with mmap open Btree_impl_intf module Make_with_mmap = Make_with_mmap_private.Make
46ca8828f67d94a72b15b3c363d9e0fbfdaea059e1b1175f117d7d6b95004c5f
neilprosser/mr-maestro
messages.clj
(ns maestro.messages (:require [clj-time.core :as time] [clojure.tools.logging :refer [error]] [io.clj.logging :refer [with-logging-context]] [maestro [actions :as actions] [bindings :refer :all] [deployments :as deployments] [ela...
null
https://raw.githubusercontent.com/neilprosser/mr-maestro/469790fd712262016729c1d83d4b4e11869237a2/src/maestro/messages.clj
clojure
(ns maestro.messages (:require [clj-time.core :as time] [clojure.tools.logging :refer [error]] [io.clj.logging :refer [with-logging-context]] [maestro [actions :as actions] [bindings :refer :all] [deployments :as deployments] [ela...
6ccb5655ed7113dc8d16a1018719306b54633a671e8f9f9c99e7a0b5fd475d09
input-output-hk/cardano-explorer
GenesisAddress.hs
{-# LANGUAGE OverloadedStrings #-} module Explorer.Web.Api.Legacy.GenesisAddress ( genesisAddressInfo , queryAllGenesisAddresses ) where import Control.Monad (when) import Control.Monad.IO.Class (MonadIO) import Control.Monad.Trans.Reader (ReaderT) import Data.Maybe (from...
null
https://raw.githubusercontent.com/input-output-hk/cardano-explorer/3abcb32339edac7c2397114a1d170cc76b82e9b6/cardano-explorer-webapi/src/Explorer/Web/Api/Legacy/GenesisAddress.hs
haskell
# LANGUAGE OverloadedStrings # filter redeemed addresses filter redeemed addresses
module Explorer.Web.Api.Legacy.GenesisAddress ( genesisAddressInfo , queryAllGenesisAddresses ) where import Control.Monad (when) import Control.Monad.IO.Class (MonadIO) import Control.Monad.Trans.Reader (ReaderT) import Data.Maybe (fromMaybe) import Data.Text (...
12abc644c0cbba74e1abcb9e8d5e2b46014c879e60ded78bec97ceb86ce1938f
krestenkrab/vbisect
vbisect.erl
-module(vbisect). -export([from_orddict/1, from_gb_tree/1, to_gb_tree/1, find/2, find_geq/2, foldl/3, foldr/3, to_orddict/1, merge/3]). -define(MAGIC, "vbis"). -type key() :: binary(). -type value() :: binary(). -type bindict() :: binary(). -ifdef(TEST). -include_lib("eunit/include/eunit.hrl"). -endif. -spec from...
null
https://raw.githubusercontent.com/krestenkrab/vbisect/28b922c0eefdf5e631eb6cadb769464809f03a57/src/vbisect.erl
erlang
This is good for an inner node where key is the smallest key in the child node.
-module(vbisect). -export([from_orddict/1, from_gb_tree/1, to_gb_tree/1, find/2, find_geq/2, foldl/3, foldr/3, to_orddict/1, merge/3]). -define(MAGIC, "vbis"). -type key() :: binary(). -type value() :: binary(). -type bindict() :: binary(). -ifdef(TEST). -include_lib("eunit/include/eunit.hrl"). -endif. -spec from...
15d054db1d8f8f26b74629076a0aaa008b25a3c3569e8b394d104211442410c3
jablo/cablesim
tftp_client.erl
%%%------------------------------------------------------------------- %%% File : tftp_client Author : %%% Description : Tftp client state machine %%% As opposedt to the dhcp client, tftp clients will communicate %%% with the network directly, not going through the cable modem process nor the process . Par...
null
https://raw.githubusercontent.com/jablo/cablesim/da6628190f9ec5c426df73e921ff575470d1a078/src/tftp_client.erl
erlang
------------------------------------------------------------------- File : tftp_client Description : Tftp client state machine As opposedt to the dhcp client, tftp clients will communicate with the network directly, not going through the cable modem traffic through the cmts, would serialize a lot of that traff...
Author : process nor the process . Partly for efficiency , partly to more closely model real network traffic : Simulating thousands of cable modems - and thus thousands of tftp clients -all routing Unless , of course , the process would implement a number of Created : 17 March 2013 by < > -module(t...
84b7588ca2106484d1d6766697e195f08ced2a7f8d3f3b4334798b12fbbf997f
AdaCore/why3
py_main.ml
(********************************************************************) (* *) The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2022 -- Inria - CNRS - Paris - Saclay University (* ...
null
https://raw.githubusercontent.com/AdaCore/why3/be1023970d48869285e68f12d32858c3383958e0/plugins/python/py_main.ml
ocaml
****************************************************************** This software is distributed under the terms of the GNU Lesser on linking described in file LICENSE. ...
The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2022 -- Inria - CNRS - Paris - Saclay University General Public License version 2.1 , with the special exception open Why3 open Pmodule open Py_ast open Ptree open Wstdlib let debug = Debug.register_flag "python" ~des...
d3c784dc38a0130f2caeeabba1168db35cb49dd5e4de2067cb7aa97487df63de
emc2/clash-riscv
BranchFunct.hs
Copyright ( c ) 2017 . All rights reserved . -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions -- are met: 1 . Redistributions of source code must retain the above copyright -- notice, this list of conditions and the...
null
https://raw.githubusercontent.com/emc2/clash-riscv/e7404e5f9ff6b1eb22274bf7daa34bbd2768f2a3/src/RISCV/ISA/Funct/BranchFunct.hs
haskell
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: notice, this list of conditions and the following disclaimer. notice, this list of conditions and the following disclaimer in the documentation and/or other mate...
Copyright ( c ) 2017 . All rights reserved . 1 . Redistributions of source code must retain the above copyright 2 . Redistributions in binary form must reproduce the above copyright 3 . Neither the name of the author nor the names of any contributors THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTO...
5a5638a82f1c7e885fe2314b7cca01d4b1fa0bccffbf14d230650a16ae8b7a48
AngelitoJ/Hydra-DHCP
middleman_sup.erl
Hydra DHCP Server project ( C ) 2014 -module(middleman_sup). -behaviour(supervisor). %% API -export([start_link/1,option_specs/0,check_middleman_pool/1]). %% Supervisor callbacks -export([init/1]). %% Helper macro for declaring children of supervisor -define(CHILD(Id, Type, Mod, Args), {Id, {Mod, start_lin...
null
https://raw.githubusercontent.com/AngelitoJ/Hydra-DHCP/b1d38d791926d5a7ab940b567c00c780e1bb43af/src/supervisors/middleman_sup.erl
erlang
API Supervisor callbacks Helper macro for declaring children of supervisor =================================================================== API functions =================================================================== options spec to set the pool of middlemen coders/decoders fun to check the value suppli...
Hydra DHCP Server project ( C ) 2014 -module(middleman_sup). -behaviour(supervisor). -export([start_link/1,option_specs/0,check_middleman_pool/1]). -export([init/1]). -define(CHILD(Id, Type, Mod, Args), {Id, {Mod, start_link, [Args]}, permanent, 5000, Type, [Mod]}). Opts is a property list supervis...
bc3a9902c204de29dfd19899e6ee04df62184ee1df1918cad15440f9ef9a6522
ghcjs/ghcjs-base
Buffer.hs
# LANGUAGE ForeignFunctionInterface , JavaScriptFFI , UnliftedFFITypes , MagicHash , PolyKinds , BangPatterns # MagicHash, PolyKinds, BangPatterns #-} | GHCJS implements the ByteArray # primitive with a JavaScript object containing an ArrayBuffer and various TypedArray view...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-base/18f31dec5d9eae1ef35ff8bbf163394942efd227/GHCJS/Buffer.hs
haskell
fixme alignment not done yet! * JavaScript properties * primitive * bytestring * pointers # INLINE fromByteArray # finalizer associated with it, the returned 'Buffer' will not count as a reference for the purpose of determining when that finalizer should run. not super happy with this. What if the bytestring'...
# LANGUAGE ForeignFunctionInterface , JavaScriptFFI , UnliftedFFITypes , MagicHash , PolyKinds , BangPatterns # MagicHash, PolyKinds, BangPatterns #-} | GHCJS implements the ByteArray # primitive with a JavaScript object containing an ArrayBuffer and various TypedArray view...
a11017d1e83fc22b93c5a424628412ed18c143edf722f9472a2970bae26b8312
cdaringe/protohacks
cerr.ml
let exn_string e = let msg = Printexc.to_string e and stack = Printexc.get_backtrace () in Fmt.str "%s%s" msg stack
null
https://raw.githubusercontent.com/cdaringe/protohacks/abae42b60ff4c2f3fc65002d3e56c795190bdb69/lib/cerr/cerr.ml
ocaml
let exn_string e = let msg = Printexc.to_string e and stack = Printexc.get_backtrace () in Fmt.str "%s%s" msg stack
e3b76d346cfcb375a93a8fc346ad96279ce06042391b16bc4fe1821de2aa97a1
karimarttila/clojure
user_postgres.clj
(ns simpleserver.service.user.user-postgres (:require [clojure.tools.logging :as log] [hugsql.core :as hugsql] [simpleserver.service.user.user-interface :as ss-user-i] [simpleserver.service.user.user-common :as ss-user-common])) (declare sql-get-user-by-email) (declare sql-insert-...
null
https://raw.githubusercontent.com/karimarttila/clojure/ee1261b9a8e6be92cb47aeb325f82a278f2c1ed3/webstore-demo/integrant-simple-server/src/clj/simpleserver/service/user/user_postgres.clj
clojure
Rich comment.
(ns simpleserver.service.user.user-postgres (:require [clojure.tools.logging :as log] [hugsql.core :as hugsql] [simpleserver.service.user.user-interface :as ss-user-i] [simpleserver.service.user.user-common :as ss-user-common])) (declare sql-get-user-by-email) (declare sql-insert-...
b1f64060cbd6349edfda083e3bed670782c60075fe9e299ef3c484a195f23a78
kupl/FixML
sub15.ml
type btree = | Empty | Node of int * btree * btree let rec mem : int -> btree -> bool = fun n tree -> match tree with Empty -> false |Node(a, b, c) -> if a == n then true else if a < n then mem n b else mem n c;;
null
https://raw.githubusercontent.com/kupl/FixML/0a032a733d68cd8ccc8b1034d2908cd43b241fce/benchmarks/mem/mem/submissions/sub15.ml
ocaml
type btree = | Empty | Node of int * btree * btree let rec mem : int -> btree -> bool = fun n tree -> match tree with Empty -> false |Node(a, b, c) -> if a == n then true else if a < n then mem n b else mem n c;;
26189063340f363235ed501c1983ce409ae4fc0a48e02b7bdd1ff85461c9dd4c
Javran/advent-of-code
Day15.hs
module Javran.AdventOfCode.Y2017.Day15 ( ) where import Data.Bits import Data.Word import Javran.AdventOfCode.Prelude import Javran.AdventOfCode.TestExtra import Text.ParserCombinators.ReadP hiding (count, get, many) data Day15 deriving (Generic) inputP :: ReadP (Word32, Word32) inputP = do let nl = char '\n' ...
null
https://raw.githubusercontent.com/Javran/advent-of-code/676ef13c2f9d341cf7de0f383335a1cf577bd73d/src/Javran/AdventOfCode/Y2017/Day15.hs
haskell
#Sample_C99_code sharing would hurt performance in this case: holding on to the existing sequence will keep things in memory while a large amount of them are no longer needed (due to added constraints about `multiple of x`)
module Javran.AdventOfCode.Y2017.Day15 ( ) where import Data.Bits import Data.Word import Javran.AdventOfCode.Prelude import Javran.AdventOfCode.TestExtra import Text.ParserCombinators.ReadP hiding (count, get, many) data Day15 deriving (Generic) inputP :: ReadP (Word32, Word32) inputP = do let nl = char '\n' ...
c4b9a8df3b7c975c134115bec65b2c94f9906df492ac85b5d874265ebfad6350
haskell/hackage-security
Server.hs
-- | Main entry point into the Hackage Security framework for clients module Hackage.Security.Server ( -- * Re-exports module Hackage.Security.JSON , module Hackage.Security.Key , module Hackage.Security.TUF ) where import Hackage.Security.JSON ( ToJSON(..) , FromJSON(..) , DeserializationError(....
null
https://raw.githubusercontent.com/haskell/hackage-security/048844cb006eb880e256d7393928d6fd422ab6dd/hackage-security/src/Hackage/Security/Server.hs
haskell
| Main entry point into the Hackage Security framework for clients * Re-exports
module Hackage.Security.Server ( module Hackage.Security.JSON , module Hackage.Security.Key , module Hackage.Security.TUF ) where import Hackage.Security.JSON ( ToJSON(..) , FromJSON(..) , DeserializationError(..) , ReadJSON_Keys_Layout , ReadJSON_Keys_NoLayout , ReadJSON_NoKeys_NoLayout , pa...
56c9dcb77eb39c80f59901a4d2a4a278f7ef52e400a5ea9c6e2ca11b40123fe6
sneerteam/sneer
own_name_test.clj
(ns sneer.own-name-test (:require [midje.sweet :refer [facts fact]] [sneer.midje-util :refer :all] [sneer.core2 :refer :all] [sneer.sneer-test-util :refer :all])) (facts "Own name" (let [ui (atom nil) subject (sneer-local #(reset! ui %))] (fact "She has a name" (handle! subject {:typ...
null
https://raw.githubusercontent.com/sneerteam/sneer/b093c46321a5a42ae9418df427dbb237489b7bcb/core2/test/sneer/own_name_test.clj
clojure
(ns sneer.own-name-test (:require [midje.sweet :refer [facts fact]] [sneer.midje-util :refer :all] [sneer.core2 :refer :all] [sneer.sneer-test-util :refer :all])) (facts "Own name" (let [ui (atom nil) subject (sneer-local #(reset! ui %))] (fact "She has a name" (handle! subject {:typ...
7102e5455e63e5cbd23a6bc8fc7e206853ce239c673440720897cda5a8381ddd
CREATe-centre/sociaml-oauth-client
util.ml
module type RANDOM = S.RANDOM module type S = sig * Percent encode a string according to RFC 3986 , Section 2.1 #section-2.1 #section-2.1 *) val pct_encode : string -> string val generate_nonce : int -> string end module Make (Random : RANDOM) : S = struct let pct_encode src = let dst = Str...
null
https://raw.githubusercontent.com/CREATe-centre/sociaml-oauth-client/9115101bc15c3f995651bb2ae2f5f95ae58a5b34/src/util.ml
ocaml
module type RANDOM = S.RANDOM module type S = sig * Percent encode a string according to RFC 3986 , Section 2.1 #section-2.1 #section-2.1 *) val pct_encode : string -> string val generate_nonce : int -> string end module Make (Random : RANDOM) : S = struct let pct_encode src = let dst = Str...
f633d15212e53b1dfafce29053da1faf2cce8850a7c3ce3153ac5092745865d7
edofic/haskell-web
Data.hs
# LANGUAGE ExistentialQuantification # {-# LANGUAGE Rank2Types #-} module RestApi.Data where import Yesod import qualified Control.Concurrent.STM as STM import Control.Applicative import qualified Data.Map as Map import Data.Aeson type DbKey = String type Db = Map.Map DbK...
null
https://raw.githubusercontent.com/edofic/haskell-web/0133a1a4722feb7d8e4399f54419bd10f7085228/yesod-demo/src/RestApi/Data.hs
haskell
# LANGUAGE Rank2Types #
# LANGUAGE ExistentialQuantification # module RestApi.Data where import Yesod import qualified Control.Concurrent.STM as STM import Control.Applicative import qualified Data.Map as Map import Data.Aeson type DbKey = String type Db = Map.Map DbKey class PrimaryKey a where primaryKey :...
fd254780bb17b1dd9c7aa1a8f51496936fa450a51a84546e2a30a85b6de1a601
apache/couchdb-rebar
rebar_utils.erl
-*- erlang - indent - level : 4;indent - tabs - mode : nil -*- %% ex: ts=4 sw=4 et %% ------------------------------------------------------------------- %% rebar : Erlang Build Tools %% Copyright ( c ) 2009 , 2010 ( ) %% %% Permission is hereby granted, free of charge, to any person obtaining a copy %% of thi...
null
https://raw.githubusercontent.com/apache/couchdb-rebar/8578221c20d0caa3deb724e5622a924045ffa8bf/src/rebar_utils.erl
erlang
ex: ts=4 sw=4 et ------------------------------------------------------------------- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sel...
-*- erlang - indent - level : 4;indent - tabs - mode : nil -*- rebar : Erlang Build Tools Copyright ( c ) 2009 , 2010 ( ) in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions...
71150ce1a34ac72f8bb7b9a3ed6b12bc89f65b76da6c4beb5ddfb4f4ebeacfe5
haskell-opengl/OpenGLRaw
TextureCompressionS3TC.hs
# LANGUAGE PatternSynonyms # -------------------------------------------------------------------------------- -- | -- Module : Graphics.GL.EXT.TextureCompressionS3TC Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- ---------...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/EXT/TextureCompressionS3TC.hs
haskell
------------------------------------------------------------------------------ | Module : Graphics.GL.EXT.TextureCompressionS3TC License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ * Extension Support * Enums
# LANGUAGE PatternSynonyms # Copyright : ( c ) 2019 Maintainer : < > module Graphics.GL.EXT.TextureCompressionS3TC ( glGetEXTTextureCompressionS3TC, gl_EXT_texture_compression_s3tc, pattern GL_COMPRESSED_RGBA_S3TC_DXT1_EXT, pattern GL_COMPRESSED_RGBA_S3TC_DXT3_EXT, pattern GL_COMPRESSED_RGB...
aeaa62a0fb528d7c42c4e44221e7d2e31093065a5302da5d87be3271754f8a3f
fgalassi/cs61a-sp11
3.27.scm
(define (lookup key table) (let ((record (assoc key (cdr table)))) (if record (cdr record) false))) (define (assoc key records) (cond ((null? records) false) ((equal? key (caar records)) (car records)) (else (assoc key (cdr records))))) (define (insert! key value table) (let ...
null
https://raw.githubusercontent.com/fgalassi/cs61a-sp11/66df3b54b03ee27f368c716ae314fd7ed85c4dba/homework/3.27.scm
scheme
Explain why memo-fib computes nth fibonacci number in a number of steps proportional to n: This means there are n possible arguments passed to fib. Each time an argument is passed to fib it's memoized and never calculated again. Memoization takes Would the scheme still work if we had simply defined memo-fib to b...
(define (lookup key table) (let ((record (assoc key (cdr table)))) (if record (cdr record) false))) (define (assoc key records) (cond ((null? records) false) ((equal? key (caar records)) (car records)) (else (assoc key (cdr records))))) (define (insert! key value table) (let ...
a0b8854c5a1d528e39696884696a99f4088d69ea32ccc16bb5bd7088a041b713
hkuplg/fcore
IOEnv.hs
| Module : IOEnv Description : The main monad used in the type checker . Copyright : ( c ) 2014—2015 The F2J Project Developers ( given in AUTHORS.txt ) License : BSD3 Maintainer : < > Stability : experimental Portability : portable Module : IOEnv Description...
null
https://raw.githubusercontent.com/hkuplg/fcore/e27b6dec5bfd319edb8c3e90d94a993bcc7b4c95/frontend/IOEnv.hs
haskell
Recall: newtype StateT s m a = StateT { runStateT :: s -> m (a,s) }
| Module : IOEnv Description : The main monad used in the type checker . Copyright : ( c ) 2014—2015 The F2J Project Developers ( given in AUTHORS.txt ) License : BSD3 Maintainer : < > Stability : experimental Portability : portable Module : IOEnv Description...
9003c5f4349dd90c109410737babe42f161cd8af506272d885cb4b600dbce6e2
chaoxu/fancy-walks
31.hs
search num _ | num < 0 = 0 search 0 _ = 1 search _ [] = 0 search num a@(x:xs) = search num xs + search (num - x) a problem_31 = search 200 [200,100,50,20,10,5,2,1] main = print problem_31
null
https://raw.githubusercontent.com/chaoxu/fancy-walks/952fcc345883181144131f839aa61e36f488998d/projecteuler.net/31.hs
haskell
search num _ | num < 0 = 0 search 0 _ = 1 search _ [] = 0 search num a@(x:xs) = search num xs + search (num - x) a problem_31 = search 200 [200,100,50,20,10,5,2,1] main = print problem_31
5fc756ac6ff895af2a55f007779c1673ac33d11ebabe3f614914b2b0c6cc56ef
goldfirere/video-resources
Inference.hs
# LANGUAGE FlexibleContexts , FlexibleInstances , UndecidableInstances , NoMonomorphismRestriction # NoMonomorphismRestriction #-} module Inference where frobble x = if x == 3 then show (x < 5) else show [x, x+1] -- Num a -- Eq a -- Ord a -- Show [a] y :: Integer y = 4 result = frobble y...
null
https://raw.githubusercontent.com/goldfirere/video-resources/eee5e8e8b6ecf2479273c7c4a3a301f754fdee86/2021-06-15-principal-type-inference/Inference.hs
haskell
Num a Eq a Ord a Show [a] wurble :: C a => a
# LANGUAGE FlexibleContexts , FlexibleInstances , UndecidableInstances , NoMonomorphismRestriction # NoMonomorphismRestriction #-} module Inference where frobble x = if x == 3 then show (x < 5) else show [x, x+1] y :: Integer y = 4 result = frobble y useFrobble :: (Num a, Ord a, Show [a...
ca176b4e331acc66a03379a262cd0a784a64000ed716818531604dbf86cb877f
penpot/penpot
rpc.clj
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) KALEIDOS INC (ns app.rpc (:require [app.auth.ldap :as-alias ldap] [app.common.data :as d] [app.common.exceptions...
null
https://raw.githubusercontent.com/penpot/penpot/1d21ee708966a4168b4f0593d5512e60d4b12465/backend/src/app/rpc.clj
clojure
Copyright (c) KALEIDOS INC NOTE: for batch-key lookup we need the params as-is because the rpc api does not need to know the audit/webhook specific object layout.
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 /. (ns app.rpc (:require [app.auth.ldap :as-alias ldap] [app.common.data :as d] [app.common.exceptions :as ex] [app.common.logging :...
e647396a7c6ff8107f21a1b798448c97d6a112e20e0079a0a3736fb776eb0cfe
ocaml-multicore/parallel-programming-in-multicore-ocaml
float_init_par.ml
open Domainslib let num_domains = try int_of_string Sys.argv.(1) with _ -> 4 let n = try int_of_string Sys.argv.(2) with _ -> 100000 let a = Array.create_float n let _ = let pool = Task.setup_pool ~num_domains:(num_domains-1) () in Task.run pool (fun () -> Task.parallel_for pool ~chunk_size:(n/num_domains) ~start...
null
https://raw.githubusercontent.com/ocaml-multicore/parallel-programming-in-multicore-ocaml/2f95616234907bc0fb95f32bcc49c9b1f9c83d5a/code/profiling/float_init_par.ml
ocaml
open Domainslib let num_domains = try int_of_string Sys.argv.(1) with _ -> 4 let n = try int_of_string Sys.argv.(2) with _ -> 100000 let a = Array.create_float n let _ = let pool = Task.setup_pool ~num_domains:(num_domains-1) () in Task.run pool (fun () -> Task.parallel_for pool ~chunk_size:(n/num_domains) ~start...
695daacae1195cbfe16fec59eae92e0f58a8b419aee7b80c542ba9eaf4358e17
CryptoKami/cryptokami-core
Worker.hs
# LANGUAGE AllowAmbiguousTypes # {-# LANGUAGE RankNTypes #-} -- | High level workers. module Pos.Worker ( allWorkers ) where import Universum import Pos.Block.Worker (blkWorkers) import Pos.Communication (OutSpecs) import Pos.Communication.Util (wrapAct...
null
https://raw.githubusercontent.com/CryptoKami/cryptokami-core/12ca60a9ad167b6327397b3b2f928c19436ae114/lib/src/Pos/Worker.hs
haskell
# LANGUAGE RankNTypes # | High level workers. Message instances. | All, but in reality not all, workers used by full node. Only workers of "onNewSlot" type Have custom loggers
# LANGUAGE AllowAmbiguousTypes # module Pos.Worker ( allWorkers ) where import Universum import Pos.Block.Worker (blkWorkers) import Pos.Communication (OutSpecs) import Pos.Communication.Util (wrapActionSpec) import Pos.Communication.Message () import ...
7a0357a0a678273a82a88bdcd7ecfc183ca3104519b100dd85c4ecfe09a61b83
rmculpepper/racket-http123
test11.rkt
Copyright 2021 SPDX - License - Identifier : Apache-2.0 #lang racket/base (require (for-syntax racket/base) racket/class racket/match syntax/srcloc rackunit http123 http123/private/response http123/private/http11 (prefix-in util: (submod htt...
null
https://raw.githubusercontent.com/rmculpepper/racket-http123/8dc1e79f3788994ac6866c3c5e53b6ccb95887f2/http123/tests/test11.rkt
racket
Test various error conditions for HTTP/1.1 actual connections using a fake server that sends scripted output. (eprintf "** testing ~a\n" (source-location->string (quote-syntax #,stx)))
Copyright 2021 SPDX - License - Identifier : Apache-2.0 #lang racket/base (require (for-syntax racket/base) racket/class racket/match syntax/srcloc rackunit http123 http123/private/response http123/private/http11 (prefix-in util: (submod htt...
5d8866ce8dd08fb203965e479864158466129dfa9fe9aa5d6e39ba39d9f369d4
renanroberto/whatsyourquestion-bot
Factory.hs
# LANGUAGE DuplicateRecordFields # module Factory where import TelegramTypes replyFactory :: Int -> String -> Maybe Message replyFactory userId msg = Just $ Message { message_id = 2 , from = Just $ User { id = userId , first_name = "other user" } , reply_to_message = Nothing , date = 0 , chat = ...
null
https://raw.githubusercontent.com/renanroberto/whatsyourquestion-bot/d46be97c21489083eafc776af537c481a55cbfbf/test/Factory.hs
haskell
# LANGUAGE DuplicateRecordFields # module Factory where import TelegramTypes replyFactory :: Int -> String -> Maybe Message replyFactory userId msg = Just $ Message { message_id = 2 , from = Just $ User { id = userId , first_name = "other user" } , reply_to_message = Nothing , date = 0 , chat = ...
d03a575a3ae1336f0d283d296f5137107209da8075a05455206929c9780ed2b5
gonzojive/elephant
slots.lisp
-*- Mode : Lisp ; Syntax : ANSI - Common - Lisp ; Base : 10 -*- ;;; ;;; slots.lisp -- persistent objects via metaobjects ;;; Initial version 8/26/2004 by ;;; <> ;;; ;;; part of ;;; Elephant : an object - oriented database for Common Lisp ;;; Original Copyright ( c ) 2004 by and ;;; <> <> ;;; Portions ...
null
https://raw.githubusercontent.com/gonzojive/elephant/b29a012ab75ccea2fc7fc4f1e9d5e821f0bd60bf/src/elephant/slots.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 -*- slots.lisp -- persistent objects via metaobjects <> part of <> <> Elephant users are granted the rights to distribute and use this software (), also known as the LLGPL. ============================================= SHARED SLOT ACCESS PROTOCOL DEFINITIONS ...
Initial version 8/26/2004 by Elephant : an object - oriented database for Common Lisp Original Copyright ( c ) 2004 by and Portions Copyright ( c ) 2005 - 2007 by and < common - lisp net > < ieslick common - lisp net > as governed by the terms of the Lisp Lesser GNU Public License (in-package :e...
67a10a59748d92b22150641a490539820b9b1675ff44a0837f9c25b195bdb58b
d-plaindoux/transept
parser.ml
module Make (S : Transept_specs.STREAM) (E : Transept_specs.ELEMENT) = struct include Transept_core.Parser.Make_via_stream (S) (E) end module For_char_via_stream (S : Transept_specs.STREAM) = Make (S) (struct type t = char end) module Via_element_for_list (E : Transept_specs.ELEMENT) = Make (T...
null
https://raw.githubusercontent.com/d-plaindoux/transept/8567803721f6c3f5d876131b15cb301cb5b084a4/lib/transept_extension/parser.ml
ocaml
module Make (S : Transept_specs.STREAM) (E : Transept_specs.ELEMENT) = struct include Transept_core.Parser.Make_via_stream (S) (E) end module For_char_via_stream (S : Transept_specs.STREAM) = Make (S) (struct type t = char end) module Via_element_for_list (E : Transept_specs.ELEMENT) = Make (T...
18509d4bd4fd219fbe8c3f6835fa585fbd305467babaeb26d936db866d672653
fulcrologic/fulcro
components.cljc
(ns com.fulcrologic.fulcro.components #?(:cljs (:require-macros com.fulcrologic.fulcro.components)) (:require #?@(:clj [[cljs.analyzer :as ana] [cljs.env :as cljs-env]] :cljs [[goog.object :as gobj] ["react" :as react]]) [edn-query-language.core :as eql] [clojur...
null
https://raw.githubusercontent.com/fulcrologic/fulcro/608422c7eb600ed30b1a9d83a5a43a8f2af96ac9/src/main/com/fulcrologic/fulcro/components.cljc
clojure
these are not in the let because they will short-circuit, and are not necessarily cheap done here instead of in extend (clj->js screws it up) parameterized lookup with no value and which may *contain* parameters not a join. Map is literal initial value. to-many join. elements might be parameter maps or already-ob...
(ns com.fulcrologic.fulcro.components #?(:cljs (:require-macros com.fulcrologic.fulcro.components)) (:require #?@(:clj [[cljs.analyzer :as ana] [cljs.env :as cljs-env]] :cljs [[goog.object :as gobj] ["react" :as react]]) [edn-query-language.core :as eql] [clojur...
69c47613441bca356b77dccd6e4378a4b2e47b2bd441b53079b074d81001cf69
slipstream/SlipStreamServer
resource_metadata_value_scope_unit_test.cljc
(ns com.sixsq.slipstream.ssclj.resources.spec.resource-metadata-value-scope-unit-test (:require [clojure.test :refer [are deftest is]] [com.sixsq.slipstream.ssclj.resources.spec.resource-metadata-value-scope-unit :as spec] [com.sixsq.slipstream.ssclj.resources.spec.spec-test-utils :as stu])) (def valid ...
null
https://raw.githubusercontent.com/slipstream/SlipStreamServer/3ee5c516877699746c61c48fc72779fe3d4e4652/cimi/test/com/sixsq/slipstream/ssclj/resources/spec/resource_metadata_value_scope_unit_test.cljc
clojure
(ns com.sixsq.slipstream.ssclj.resources.spec.resource-metadata-value-scope-unit-test (:require [clojure.test :refer [are deftest is]] [com.sixsq.slipstream.ssclj.resources.spec.resource-metadata-value-scope-unit :as spec] [com.sixsq.slipstream.ssclj.resources.spec.spec-test-utils :as stu])) (def valid ...
005a5c9f192dadbf5fb4b66d11c543cba7bee4ac92b888771bbfd45085b7a0d2
mbj/stratosphere
TransitGatewayRegistration.hs
module Stratosphere.NetworkManager.TransitGatewayRegistration ( TransitGatewayRegistration(..), mkTransitGatewayRegistration ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Va...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/networkmanager/gen/Stratosphere/NetworkManager/TransitGatewayRegistration.hs
haskell
module Stratosphere.NetworkManager.TransitGatewayRegistration ( TransitGatewayRegistration(..), mkTransitGatewayRegistration ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Va...
41991f9b83f76ce10b7ef73de5619402c462e76e4e19c2c3fd4e8534f51ed49e
ricardobcl/ServerWideClocks
swc_dotkeymap.erl
%%%------------------------------------------------------------------- @author < > ( C ) 2016 , %%% @doc %%% %%% @end %%%------------------------------------------------------------------- -module(swc_dotkeymap). -author('Ricardo Gonçalves <>'). -compile({no_auto_import,[size/1]}). -include_lib("swc/includ...
null
https://raw.githubusercontent.com/ricardobcl/ServerWideClocks/84642ab0e4db73ceb79240e8abe3bd92058b375a/src/swc_dotkeymap.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- API exports =================================================================== ===================================================================
@author < > ( C ) 2016 , -module(swc_dotkeymap). -author('Ricardo Gonçalves <>'). -compile({no_auto_import,[size/1]}). -include_lib("swc/include/swc.hrl"). -ifdef(TEST). -include_lib("eunit/include/eunit.hrl"). -endif. -export([ new/0 , empty/1 , add_key/4 , add_objects/2 ...
1348449cce00d81b57b653427da5232cc48771b7ddb7da00fb1f4877f783e69d
ghcjs/ghcjs-boot
enum01.hs
! ! ! Testing the Prelude 's instances . # LANGUAGE CPP # module Main(main) where import Control.Exception import Data.Char import Data.Ratio main = do putStrLn "Testing Enum Int: " testEnumInt putStrLn "Testing Enum Integer: " testEnumInteger putStrLn "Testing Enum Char: " testEnumChar ...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-boot/8c549931da27ba9e607f77195208ec156c840c8a/boot/base/tests/enum01.hs
haskell
Enum Rational this really should n't matter ( I feel . ) ( * ) this really shouldn't matter (I feel.) (*) succ pred toEnum fromEnum just in case it doesn't catch the upper bound.. [x,y..] aka enumFromThen Test overflow conditions [x,y..z] aka enumFromThenTo Test overflow conditions succ pred toEnum ...
! ! ! Testing the Prelude 's instances . # LANGUAGE CPP # module Main(main) where import Control.Exception import Data.Char import Data.Ratio main = do putStrLn "Testing Enum Int: " testEnumInt putStrLn "Testing Enum Integer: " testEnumInteger putStrLn "Testing Enum Char: " testEnumChar ...
34955dcd22d20b2ce743619ea585f7eba866bfc8218a6472df5e9c10e20d472a
JHU-PL-Lab/jaylang
riddler.ml
open Core open Dj_common open Cfg open Jayil.Ast module SuduZ3 = Solver.SuduZ3 open SuduZ3 open Log.Export type result_info = { model : Z3.Model.model; c_stk : Concrete_stack.t } exception Found_solution of result_info let ctx = Solver.ctx let top_stack = SuduZ3.var_s "X_topstack" let picked key = " P _ " ^ Lookup...
null
https://raw.githubusercontent.com/JHU-PL-Lab/jaylang/4bdb74ebeb207e5cea4368bc8d4aa27f03c49cf7/src/dbmc/riddler.ml
ocaml
Ast.Value_body for function Ast.Value_body TODO: This might be buggy. Check later with picked
open Core open Dj_common open Cfg open Jayil.Ast module SuduZ3 = Solver.SuduZ3 open SuduZ3 open Log.Export type result_info = { model : Z3.Model.model; c_stk : Concrete_stack.t } exception Found_solution of result_info let ctx = Solver.ctx let top_stack = SuduZ3.var_s "X_topstack" let picked key = " P _ " ^ Lookup...
217549feecb9cf0e862973c7c12e66d67c875201ce407e1c1d5a657b0da19805
kappelmann/eidi2_repetitorium_tum
GraphImpl.ml
let todo _ = failwith "Todo not implemented" open Graph module GraphImpl : (Graph with type node = int and type graph = (int*int list) list) = struct type node = int Speicher den Graph mit Adjazenzlisten type graph = (node*node list) list let rec successors g n = match g with [] -> [] | (x,xl)::xs when x=n ->...
null
https://raw.githubusercontent.com/kappelmann/eidi2_repetitorium_tum/1d16bbc498487a85960e0d83152249eb13944611/2017/ocaml/functors/solutions/GraphImpl.ml
ocaml
Tests
let todo _ = failwith "Todo not implemented" open Graph module GraphImpl : (Graph with type node = int and type graph = (int*int list) list) = struct type node = int Speicher den Graph mit Adjazenzlisten type graph = (node*node list) list let rec successors g n = match g with [] -> [] | (x,xl)::xs when x=n ->...
886ebb26b64ebf676d39cf38d0da36982ee4f890e4d6dc8793d46f8618c02fb9
damballa/abracad
avro.clj
(ns abracad.avro "Functions for de/serializing data with Avro." (:refer-clojure :exclude [compare spit slurp]) (:require [clojure.java.io :as io] [clojure.walk :refer [postwalk]] [cheshire.core :as json] [abracad.avro.util :refer [returning mangle unmangle coerce]]) (:import ...
null
https://raw.githubusercontent.com/damballa/abracad/5c16564a86b6c83ddc17b3ac5aba5f69798ec269/src/clojure/abracad/avro.clj
clojure
The following implementation is pretty much just copy-pasted
(ns abracad.avro "Functions for de/serializing data with Avro." (:refer-clojure :exclude [compare spit slurp]) (:require [clojure.java.io :as io] [clojure.walk :refer [postwalk]] [cheshire.core :as json] [abracad.avro.util :refer [returning mangle unmangle coerce]]) (:import ...
4046ccb0240320f28f8a45f33a41db285a2b13fe058887ebc7bcfea52d0a0481
manuel-serrano/bigloo
gen.scm
;; ---------------------------------------------------------------------- ;; FICHIER : gen.scm ; ; DATE DE CREATION : Mon Jul 3 14:04:24 1995 ; ; DERNIERE MODIFICATION : Tue Jul 4 13:40:53 1995 ; ; ;; --...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/eb650ed4429155f795a32465e009706bbf1b8d74/runtime/Lalr/gen.scm
scheme
---------------------------------------------------------------------- ;; ; ; ; ---------------------------------------------------------------------- ;; ; ---------------------------------------------------------------------- ;; Génération du code ... ;; -------...
(module __lalr_gen (include "Lalr/lalr.sch") (import __error __lalr_global __lalr_rewrite __type __bigloo __tvector __structure __tvector __param __bexit __bignum __object __thread __rgc __bit __r4_numbers_6_5 __r4_numbers_6_5_fixn...
67e6232dcf8c5b0b47e3e88f2c57c099ee622d96db5246e23e93951218ef0081
samsergey/formica
tools.rkt
#lang racket ;;______________________________________________________________ ;; ______ ;; ( // _____ ____ . __ __ ;; ~//~ ((_)// // / / // ((_ ((_/_ ;; (_// ;;.............................................................. ;; Provides differen...
null
https://raw.githubusercontent.com/samsergey/formica/b4410b4b6da63ecb15b4c25080951a7ba4d90d2c/private/tools/tools.rkt
racket
______________________________________________________________ ______ ( // _____ ____ . __ __ ~//~ ((_)// // / / // ((_ ((_/_ (_// .............................................................. Provides different handy tools. ============...
#lang racket (require racket/contract racket/dict racket/match "tags.rkt" "functionals.rkt") (provide ==> (rename-out [or* or] [and* and] [eq?* eq?] [equal?* equal?] [almost-equal?* almost-equal?]) different? xor ≈ ≥ ≤ (contra...
2b589c96d31477ca41f5ff1301c25def69052d74347aa36d4ccf95a4b20bfd10
mmontone/hunchentoot-errors
hunchentoot-errors.lisp
(in-package #:hunchentoot-errors) (defclass errors-acceptor (acceptor) ((log-request :initarg :log-request :accessor log-requestp :initform t :documentation "When enabled, request information is written to the log.") (debug-request :initarg :debug-request ...
null
https://raw.githubusercontent.com/mmontone/hunchentoot-errors/e5e0a77398b83671427a9330e28fadf8b24f0a40/hunchentoot-errors.lisp
lisp
This part is hunchentoot-errors specific: else
(in-package #:hunchentoot-errors) (defclass errors-acceptor (acceptor) ((log-request :initarg :log-request :accessor log-requestp :initform t :documentation "When enabled, request information is written to the log.") (debug-request :initarg :debug-request ...
4681487d7f0bb6a2baa42ac6509a76c4a8f1cb63ab98a1b6c9be8d4d28242242
carliros/Simple-San-Simon-Functional-Web-Browser
Property.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE ImpredicativeTypes #-} # LANGUAGE RankNTypes # | module Data.Property ( -- * Tipos de Datos Property , FunctionComputed , FunctionUsed , PropertyValue (..) * * , mkProp , getPropertyName , propertyValue -- sera publico ??? , showPropertyValues ...
null
https://raw.githubusercontent.com/carliros/Simple-San-Simon-Functional-Web-Browser/9b035cb91f127910c07fb6c1b652577642b81a20/src/Data/Property.hs
haskell
# LANGUAGE ImpredicativeTypes # * Tipos de Datos sera publico ??? ** Funciones para Valores de Propiedades %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | Propiedad CSS soy el root? father props local props soy replaced ? revizare el ps...
# LANGUAGE FlexibleContexts # # LANGUAGE RankNTypes # | module Data.Property ( Property , FunctionComputed , FunctionUsed , PropertyValue (..) * * , mkProp , getPropertyName , showPropertyValues , propertyParser , doSpecifiedValue , doComputedValue , doUsedValue , computed_asSpecified , use...
b30f600d25002ddf080b7c7b362633c328a67dc1a7b01d562960f14e56079fb3
ghc/ghc
Lit.hs
{-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE TypeFamilies #-} # LANGUAGE UndecidableInstances # in module Language . Haskell . Syntax . Extension ( c ) The University of Glasgow 2006 ( c ) T...
null
https://raw.githubusercontent.com/ghc/ghc/3b019a7ac8fc9059cc3213f6f95a2daef97ca442/compiler/Language/Haskell/Syntax/Lit.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE DeriveDataTypeable # # LANGUAGE TypeFamilies # | Source-language literals ************************************************************************ * * \subsection[HsLit]{Literals} * ...
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE UndecidableInstances # in module Language . Haskell . Syntax . Extension ( c ) The University of Glasgow 2006 ( c ) The GRASP / AQUA Project , Glasgow University , 1992 - 1998 (c) The University of Glasgow 2006 (c) The GRASP/AQU...
a80c650719cb7e8e7044f9fb3860bae6dbf4ee83dd1a69ec2e7000aaccb9974f
robert-strandh/SICL
export-defun.lisp
(cl:in-package #:sicl-package) (defun export-to-one-using-package (symbols using-package) (let ((conflicts (make-hash-table :test #'equal)) (used-packages (use-list using-package))) (flet ((maybe-add-symbol (name symbol) (unless (nth-value 1 (gethash name (shadowing-symbols ...
null
https://raw.githubusercontent.com/robert-strandh/SICL/65d7009247b856b2c0f3d9bb41ca7febd3cd641b/Code/Package/export-defun.lisp
lisp
The choice was a symbol that is already present in USING-PACKAGE, and we had a conflict involving that symbol, so it can not have been a shadowing symbol. Make it one. The choice was a symbol that is going to become accessible in USING-PACKAGE. There was with a symbol that is already present in USING-PACKAGE...
(cl:in-package #:sicl-package) (defun export-to-one-using-package (symbols using-package) (let ((conflicts (make-hash-table :test #'equal)) (used-packages (use-list using-package))) (flet ((maybe-add-symbol (name symbol) (unless (nth-value 1 (gethash name (shadowing-symbols ...
c8cafb2a10154417eef0200df683e2925d8998f82a13a3a260cc49d63523c461
coq/coq
envars.mli
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * *...
null
https://raw.githubusercontent.com/coq/coq/07537426ad106c721e67d513c6db2e9047131e7b/lib/envars.mli
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team // * This file is distributed under the terms of the * (see LICENSE file for the text of the license) ************************************...
v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser Gener...
111776c2b83e3ab450d3482edb8d39c1dd7bb9de51a7a1771aadb9268c71f3ff
avh4/elm-format
ImportInfo.hs
module ElmFormat.ImportInfo (ImportInfo(..), fromModule, fromImports) where import AST.V0_16 import AST.Listing (Listing(..), CommentedMap) import Elm.Utils ((|>)) import AST.Module (Module, ImportMethod(..), DetailedListing(..)) import qualified AST.Module import Data.Coapplicative import qualified Data.Bimap as Bim...
null
https://raw.githubusercontent.com/avh4/elm-format/57f77ee0a667869ceed3a61a0f4eeaca56a3964f/elm-format-lib/src/ElmFormat/ImportInfo.hs
haskell
any modules with exposing(..) and we didn't know the module contents these are things we know will get exposed for certain modules when we see "exposing (..)" TODO: mark ambiguous names if multiple modules expose them
module ElmFormat.ImportInfo (ImportInfo(..), fromModule, fromImports) where import AST.V0_16 import AST.Listing (Listing(..), CommentedMap) import Elm.Utils ((|>)) import AST.Module (Module, ImportMethod(..), DetailedListing(..)) import qualified AST.Module import Data.Coapplicative import qualified Data.Bimap as Bim...
e5f75fc7612a0cb92ed6c66f8559c5352bc55b5d3841411decfb33fde1889974
shortishly/haystack
haystack_docker_network.erl
Copyright ( c ) 2016 < > %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicable law or agreed to in writing, software distributed under...
null
https://raw.githubusercontent.com/shortishly/haystack/7ff0d737dcd90adf60c861b2cf755aee1355e555/src/haystack_docker_network.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissi...
Copyright ( c ) 2016 < > Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(haystack_docker_network). -export([all/0]). -export([is_global/1]). -export([lookup/1]). -export([process/1]). -on_load(on_load/0). -rec...
b3a6ea14339e874a597bbd526e4d9558d32b9b3b97a1d0d2e86e650171873bde
bitonic/anapo
Loop.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE CPP # module Anapo.Loop ( installNodeBody , installNode , InstallMode(..) , ExceptionContext(..) , HandledException(..) ) where import Control.Monad.IO.Class (liftIO) import Control.Monad (void, when) import Data.Foldable (traverse_, for_) import Data.Time.Cloc...
null
https://raw.githubusercontent.com/bitonic/anapo/8f3c020973d16cecb5ee83a03d91fb00294d34c7/anapo/src/Anapo/Loop.hs
haskell
# LANGUAGE OverloadedStrings # ^ append the node inside the the provided container ^ clear everything in the container and append ^ the exception came up in a thread ^ the exception came up while updating the state because of a dispatch ^ the exception came up while rendering ^ just continue going as if nothing h...
# LANGUAGE CPP # module Anapo.Loop ( installNodeBody , installNode , InstallMode(..) , ExceptionContext(..) , HandledException(..) ) where import Control.Monad.IO.Class (liftIO) import Control.Monad (void, when) import Data.Foldable (traverse_, for_) import Data.Time.Clock (getCurrentTime, diffUTCTime, Nom...
616d685f29565fe9b8e8d090b7c8b2859f3ae446aff3f9c45b5a6f26b94c4d84
wilkerlucio/wsscode-async
processing.cljc
(ns com.wsscode.async.processing (:require [clojure.core.async :as async :refer [<! chan go-loop]] [clojure.spec.alpha :as s] [#?(:clj com.wsscode.async.async-clj :cljs com.wsscode.async.async-cljs) :refer [<!maybe go-promise]])) (s/def ::channel any?) (s/def ::r...
null
https://raw.githubusercontent.com/wilkerlucio/wsscode-async/163b1cf5c9963d4c798aed4018461abdee754a1d/src/com/wsscode/async/processing.cljc
clojure
(ns com.wsscode.async.processing (:require [clojure.core.async :as async :refer [<! chan go-loop]] [clojure.spec.alpha :as s] [#?(:clj com.wsscode.async.async-clj :cljs com.wsscode.async.async-cljs) :refer [<!maybe go-promise]])) (s/def ::channel any?) (s/def ::r...
99b42075d8de9b17731a7af3a35124e9161ae9d30b912d2cf8428a6379096764
tejasbubane/haskell-book-code
traversable.hs
{-# Language InstanceSigs #-} import Data.ByteString.Lazy hiding (map, putStrLn, foldr, foldMap) import Network.Wreq import Test.QuickCheck import Test.QuickCheck.Checkers import Test.QuickCheck.Classes import Data.Monoid -- replace with other websites if desired urls :: [String] urls = [ "" , "" ] map...
null
https://raw.githubusercontent.com/tejasbubane/haskell-book-code/deaac8ab4db0ae8692d0278826528bb8a746ed82/ch-21/traversable.hs
haskell
# Language InstanceSigs # replace with other websites if desired Either Tuple Chapter Exercises Identity Constant not sure why no idea why Maybe List Theee' S / Instances for Tree Main
import Data.ByteString.Lazy hiding (map, putStrLn, foldr, foldMap) import Network.Wreq import Test.QuickCheck import Test.QuickCheck.Checkers import Test.QuickCheck.Classes import Data.Monoid urls :: [String] urls = [ "" , "" ] mappingGet :: [IO (Response ByteString)] mappingGet = map get urls travers...
507be412e75a3792e11a618f94283eb07a382167930315599c9d000803e5a5aa
portkey-cloud/edn-to-cfn
application_auto_scaling.clj
(ns portkey.cloudformation.application-auto-scaling "AUTOGENERATED clojure.spec definitions" (:require [clojure.spec.alpha] [portkey.cloudformation])) (do (clojure.core/defmethod portkey.cloudformation/resource-type-spec :portkey.cloudformation.application-auto-scaling/scalable-target [___19567_...
null
https://raw.githubusercontent.com/portkey-cloud/edn-to-cfn/7a3d247d35b7c4988c9b55634d03a008b87a2449/src/portkey/cloudformation/application_auto_scaling.clj
clojure
(ns portkey.cloudformation.application-auto-scaling "AUTOGENERATED clojure.spec definitions" (:require [clojure.spec.alpha] [portkey.cloudformation])) (do (clojure.core/defmethod portkey.cloudformation/resource-type-spec :portkey.cloudformation.application-auto-scaling/scalable-target [___19567_...
9fd2eb4fa7f7cceab1a62b97870331c89abda09008435499ac9535bdadea0b2e
Bogdanp/racket-sentry
event.rkt
#lang racket/base (require gregor json mzlib/os net/url racket/contract racket/format racket/string web-server/http/request-structs "user.rkt") (provide make-breadcrumb make-event (struct-out event) event-attach-breadcrumbs event->jsexpr) ...
null
https://raw.githubusercontent.com/Bogdanp/racket-sentry/74dc59dd1102976e398ff70ed6506599429647ba/sentry-lib/private/event.rkt
racket
#lang racket/base (require gregor json mzlib/os net/url racket/contract racket/format racket/string web-server/http/request-structs "user.rkt") (provide make-breadcrumb make-event (struct-out event) event-attach-breadcrumbs event->jsexpr) ...
fbfbe194e644af8ee72487651aca62b6475208a19b7db197cd5c11f677e4d8b6
ghc/ghc
Cpp.hs
# LANGUAGE CPP # # LANGUAGE LambdaCase # #include <ghcplatform.h> module GHC.SysTools.Cpp ( doCpp , CppOpts (..) , getGhcVersionPathName , applyCDefs , offsetIncludePaths ) where import GHC.Prelude import GHC.Driver.Session import GHC.Driver.Backend import GHC.CmmToLlvm.Config import GHC.Platform import ...
null
https://raw.githubusercontent.com/ghc/ghc/cc25d52e0f65d54c052908c7d91d5946342ab88a/compiler/GHC/SysTools/Cpp.hs
haskell
^ Use "cc -E" as preprocessor, otherwise use "cpp" ^ Enable generation of LINE pragmas | Run CPP MP: This is not quite right, the headers which are supposed to be installed in the package might not be the same as the provided include paths, but it's a close enough approximation for things to work. A proper solut...
# LANGUAGE CPP # # LANGUAGE LambdaCase # #include <ghcplatform.h> module GHC.SysTools.Cpp ( doCpp , CppOpts (..) , getGhcVersionPathName , applyCDefs , offsetIncludePaths ) where import GHC.Prelude import GHC.Driver.Session import GHC.Driver.Backend import GHC.CmmToLlvm.Config import GHC.Platform import ...
1dccfc434e6f86c0a19289bc9a65ba031cd53c468491a4219bb40bff6d0c1126
mirage/irmin
sync.ml
* Copyright ( c ) 2013 - 2022 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND...
null
https://raw.githubusercontent.com/mirage/irmin/347d885fd9d7f7605f4a980a3f733f44c7ccaede/examples/sync.ml
ocaml
* Copyright ( c ) 2013 - 2022 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND...
529ab4462d4243bbd0f0049a3e05a4b937a7e80013d7c3c2c0515017adf0ce7e
denistakeda/re-posh
project.clj
(defproject tree "0.1.0-SNAPSHOT" :description "re-posh example project" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :min-lein-version "2.9.0" :dependencies [[org.clojure/clojure "1.9.0"] [org.clojure/clojurescript "1.10.520"] [reagent "0....
null
https://raw.githubusercontent.com/denistakeda/re-posh/f17ed7b05e930af97dd39ea0555915edac836177/examples/tree/project.clj
clojure
(defproject tree "0.1.0-SNAPSHOT" :description "re-posh example project" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :min-lein-version "2.9.0" :dependencies [[org.clojure/clojure "1.9.0"] [org.clojure/clojurescript "1.10.520"] [reagent "0....
1046ac02e335fbaa5c63f96c017555f16436d541b444bf821e129d9853c99fff
nurpax/sqlite-simple
QQ.hs
# LANGUAGE TemplateHaskell # ------------------------------------------------------------------------------ -- | Module : Database . SQLite . Simple . QQ Copyright : ( c ) 2011 - 2012 ( c ) 2018 License : BSD3 Maintainer : < > -- Portability: portable -- -- The 'sql' quas...
null
https://raw.githubusercontent.com/nurpax/sqlite-simple/49390582cb090fc1ef95988dab9ecc8ebb32251b/Database/SQLite/Simple/QQ.hs
haskell
---------------------------------------------------------------------------- | Portability: portable The 'sql' quasiquoter, for writing large @SQL@ statements. ---------------------------------------------------------------------------- | A quasiquoter for writing big @SQL@ queries. One should consider turning o...
# LANGUAGE TemplateHaskell # Module : Database . SQLite . Simple . QQ Copyright : ( c ) 2011 - 2012 ( c ) 2018 License : BSD3 Maintainer : < > module Database.SQLite.Simple.QQ ( sql ) where import Data.String (fromString) import ...