_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
92d72c03dc94cecc1dfc0354984552ed498bcd6c53755a6815c43c612e5b38ab
clojure-interop/aws-api
AWSMediaLiveClient.clj
(ns com.amazonaws.services.medialive.AWSMediaLiveClient "Client for accessing MediaLive. All service calls made using this client are blocking, and will not return until the service call completes. API for AWS Elemental MediaLive" (:refer-clojure :only [require comment defn ->]) (:import [com.amazonaws.servi...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.medialive/src/com/amazonaws/services/medialive/AWSMediaLiveClient.clj
clojure
(ns com.amazonaws.services.medialive.AWSMediaLiveClient "Client for accessing MediaLive. All service calls made using this client are blocking, and will not return until the service call completes. API for AWS Elemental MediaLive" (:refer-clojure :only [require comment defn ->]) (:import [com.amazonaws.servi...
9949a75efbe2906d6e7392dbb800ad005a3ef7c61709a4d388690f5794265908
janestreet/base
sequence.mli
* A sequence of elements that can be produced one at a time , on demand , normally with no sharing . The elements are computed on demand , possibly repeating work if they are demanded multiple times . A sequence can be built by unfolding from some initial state , which will in practice often ...
null
https://raw.githubusercontent.com/janestreet/base/1462b7d5458e96569275a1c673df968ecbf3342f/src/sequence.mli
ocaml
* [empty] is a sequence with no elements. * [next] returns the next element of a sequence and the next tail if the sequence is not finished. * A [Step] describes the next step of the sequence construction. [Done] indicates the sequence is finished. [Skip] indicates the sequence continues with another state ...
* A sequence of elements that can be produced one at a time , on demand , normally with no sharing . The elements are computed on demand , possibly repeating work if they are demanded multiple times . A sequence can be built by unfolding from some initial state , which will in practice often ...
3e662376677826720c4e59ed3fdfb937820b0680c5a3aab3e7c79459fdd02203
tiensonqin/lymchat
me.clj
(ns api.handler.me (:require [api [schemas :refer :all] [util :refer [doc]]] [api.db [user :as user] [channel :as channel] [mention :as mention] [util :refer [default-db]]] [api.services.slack :refer [error]] ...
null
https://raw.githubusercontent.com/tiensonqin/lymchat/824026607d30c12bc50afb06f677d1fa95ff1f2f/api/src/api/handler/me.clj
clojure
(ns api.handler.me (:require [api [schemas :refer :all] [util :refer [doc]]] [api.db [user :as user] [channel :as channel] [mention :as mention] [util :refer [default-db]]] [api.services.slack :refer [error]] ...
3d89aa73c61d9bcff5f4b6199f09dd5a60dbcd95d3973c13cf63a6465fb802e2
brendanhay/terrafomo
Document.hs
| Copyright : ( c ) 2017 - 2018 License : MPL-2.0 Maintainer : < > Stability : experimental Portability : non - portable A document contains the complete Terraform configuration for a specific stage . It provides checked operations and direct - encoding for insertion of Terraform item...
null
https://raw.githubusercontent.com/brendanhay/terrafomo/387a0e9341fb9cd5543ef8332dea126f50f1070e/terrafomo/src/Terrafomo/Document.hs
haskell
FIXME: Thought needs to be given to how to pass non-default variables.
| Copyright : ( c ) 2017 - 2018 License : MPL-2.0 Maintainer : < > Stability : experimental Portability : non - portable A document contains the complete Terraform configuration for a specific stage . It provides checked operations and direct - encoding for insertion of Terraform item...
149da678fa553f43d3d062a7ffc032b4fb4fb6efde8f996c65e24c2902882e0b
nuvla/api-server
deployment_parameter.cljc
(ns sixsq.nuvla.server.resources.spec.deployment-parameter (:require [clojure.spec.alpha :as s] [sixsq.nuvla.server.resources.spec.common :as common] [sixsq.nuvla.server.resources.spec.core :as core] [sixsq.nuvla.server.util.spec :as su] [spec-tools.core :as st])) (def ^:const deployment-id-rege...
null
https://raw.githubusercontent.com/nuvla/api-server/a64a61b227733f1a0a945003edf5abaf5150a15c/code/src/sixsq/nuvla/server/resources/spec/deployment_parameter.cljc
clojure
(ns sixsq.nuvla.server.resources.spec.deployment-parameter (:require [clojure.spec.alpha :as s] [sixsq.nuvla.server.resources.spec.common :as common] [sixsq.nuvla.server.resources.spec.core :as core] [sixsq.nuvla.server.util.spec :as su] [spec-tools.core :as st])) (def ^:const deployment-id-rege...
49a2e1e8ac0fc47e597d918b713183661b9629a060b86c4c60535ef70ee1871a
mokus0/junkbox
Gamma.hs
- ` ` Gamma '' - ( c ) 2009 , , Inc. - ``Gamma'' - (c) 2009 Cook, J. MR SSD, Inc. -} {-# LANGUAGE ParallelListComp, ForeignFunctionInterface #-} module Gamma where import Kummer lowerGamma s z = z ** s * m s (s+1) (negate z) / s upperGamma s z = gamma s - lowerGamma ...
null
https://raw.githubusercontent.com/mokus0/junkbox/151014bbef9db2b9205209df66c418d6d58b0d9e/Haskell/Functions/Gamma.hs
haskell
# LANGUAGE ParallelListComp, ForeignFunctionInterface # gamma x | otherwise = (pi / sin (pi * x)) * gamma (1 - x) where z = x - 1 t = z + g + 0.5 a g z = convergingSum (p 0) [p / (z + fromIntegral n) | n <- [1..] | p <- tail ps] ps :: Floating a =>...
- ` ` Gamma '' - ( c ) 2009 , , Inc. - ``Gamma'' - (c) 2009 Cook, J. MR SSD, Inc. -} module Gamma where import Kummer lowerGamma s z = z ** s * m s (s+1) (negate z) / s upperGamma s z = gamma s - lowerGamma s z foreign import ccall "math.h tgamma" gamma :: Double -> Double ...
f53640fb151fa6d8af20af2f5eeadef5227f24594ebcbdae293c0c892ff34155
suhdonghwi/nuri
Stmt.hs
module Nuri.Stmt where import Nuri.ASTNode (ASTNode (..)) import Nuri.Expr (Decl, Expr) data Stmt = DeclStmt Decl | ExprStmt Expr deriving (Eq, Show) instance ASTNode Stmt where getSourcePos (DeclStmt decl) = getSourcePos decl getSourcePos (ExprStmt expr) = getSourcePos expr
null
https://raw.githubusercontent.com/suhdonghwi/nuri/337550e3d50c290144df905ea3f189e9af6123c2/src/Nuri/Stmt.hs
haskell
module Nuri.Stmt where import Nuri.ASTNode (ASTNode (..)) import Nuri.Expr (Decl, Expr) data Stmt = DeclStmt Decl | ExprStmt Expr deriving (Eq, Show) instance ASTNode Stmt where getSourcePos (DeclStmt decl) = getSourcePos decl getSourcePos (ExprStmt expr) = getSourcePos expr
05ae362bd7afe64c0f105564820ed0f93d0bb3df84f8873f13ed77eeae96aa98
arbor/antiope
TypesSpec.hs
module Antiope.S3.TypesSpec (spec) where import Antiope.Core import Antiope.S3.Types import HaskellWorks.Hspec.Hedgehog import Hedgehog import Test.Hspec # ANN module ( " HLint : ignore Redundant do " : : String ) # spec :: Spec spec = describe "Antiope.TypesSpec" $ do it "Can parse S3Uri" $ requireTest $ do f...
null
https://raw.githubusercontent.com/arbor/antiope/86ad3df07b8d3fd5d2c8bef4111a73b85850e1ba/antiope-s3/test/Antiope/S3/TypesSpec.hs
haskell
module Antiope.S3.TypesSpec (spec) where import Antiope.Core import Antiope.S3.Types import HaskellWorks.Hspec.Hedgehog import Hedgehog import Test.Hspec # ANN module ( " HLint : ignore Redundant do " : : String ) # spec :: Spec spec = describe "Antiope.TypesSpec" $ do it "Can parse S3Uri" $ requireTest $ do f...
735ca3dae90574bd998941afca61fc1be1ce98982f22b418f68b9a8ddb1a4a01
macourtney/Dark-Exchange
signature_interceptor.clj
(ns darkexchange.model.interceptors.signature-interceptor (:require [clojure.contrib.json :as json] [clojure.contrib.logging :as logging] [darkexchange.interchange-map-util :as interchange-map-util] [darkexchange.model.actions.action-keys :as action-keys] [darkexchange....
null
https://raw.githubusercontent.com/macourtney/Dark-Exchange/1654d05cda0c81585da7b8e64f9ea3e2944b27f1/src/darkexchange/model/interceptors/signature_interceptor.clj
clojure
(ns darkexchange.model.interceptors.signature-interceptor (:require [clojure.contrib.json :as json] [clojure.contrib.logging :as logging] [darkexchange.interchange-map-util :as interchange-map-util] [darkexchange.model.actions.action-keys :as action-keys] [darkexchange....
b7c8c3e8a35cc14b91a65be8029c95fd91b31bc107e255615fabbb13560ea64e
haskell-CI/haskell-ci
TestedWith.hs
module HaskellCI.TestedWith ( TestedWithJobs (..), checkVersions, ) where import Prelude () import Prelude.Compat import Control.Applicative ((<|>)) import Data.List (intercalate) import qualified Data.Foldable as F import qualified Data.Set as S impor...
null
https://raw.githubusercontent.com/haskell-CI/haskell-ci/0ced97ba21a174b342320e07c5f5724832f0708c/src/HaskellCI/TestedWith.hs
haskell
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
module HaskellCI.TestedWith ( TestedWithJobs (..), checkVersions, ) where import Prelude () import Prelude.Compat import Control.Applicative ((<|>)) import Data.List (intercalate) import qualified Data.Foldable as F import qualified Data.Set as S impor...
43c57b859e9db5043c70be685eac1ba5cead42dc7c37e7fd0d9af9e04d511df3
f-me/carma-public
Notified.hs
# LANGUAGE TemplateHaskell # module Carma.Model.PartnerDelay.Notified where import Data.Text import Data.Typeable import Data.Model import Data.Model.View import Data.Model.TH import Carma.Model.PgTypes() data PartnerDelay_Notified = PartnerDelay_Notified { ident :: PK Int PartnerDelay_Notified "" , label :: F ...
null
https://raw.githubusercontent.com/f-me/carma-public/82a9f44f7d919e54daa4114aa08dfec58b01009b/carma-models/src/Carma/Model/PartnerDelay/Notified.hs
haskell
# LANGUAGE TemplateHaskell # module Carma.Model.PartnerDelay.Notified where import Data.Text import Data.Typeable import Data.Model import Data.Model.View import Data.Model.TH import Carma.Model.PgTypes() data PartnerDelay_Notified = PartnerDelay_Notified { ident :: PK Int PartnerDelay_Notified "" , label :: F ...
b4f1f79af5cf712adce8b07db3ab3467a85a720fb2252b391687742e9df2adfc
hiroshi-unno/coar
isort_geq.ml
external nondet_int : unit -> int = "unknown" [@@@rtype"nondet_int::unit -> int"] let rec insert (x:int) ys = match ys with | [] -> [x] | y::ys' -> if x < y then x::y::ys' else y::(insert x ys') let rec insertsort xs = match xs with | [] -> [] | x::xs' -> insert x (insertso...
null
https://raw.githubusercontent.com/hiroshi-unno/coar/90a23a09332c68f380efd4115b3f6fdc825f413d/benchmarks/OCaml/safety/tacas2015/isort_geq.ml
ocaml
external nondet_int : unit -> int = "unknown" [@@@rtype"nondet_int::unit -> int"] let rec insert (x:int) ys = match ys with | [] -> [x] | y::ys' -> if x < y then x::y::ys' else y::(insert x ys') let rec insertsort xs = match xs with | [] -> [] | x::xs' -> insert x (insertso...
65b87aa19a85f37774c96e0b79e8d36623c4727b263a7b46b46636cf68d4e990
dmitryvk/sbcl-win32-threads
force-delayed-defbangconstants.lisp
;;;; Now that all the cross-compiler INFO machinery has been set up, we ;;;; can feed the stored DEF!CONSTANTS argument lists to it. ;;;; : There 's no real reason for this to be in its own file , except ;;;; perhaps the parallelism with FORCE-DELAYED-DEF!STRUCTS (which does have a ;;;; good reason). This softwar...
null
https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/src/code/force-delayed-defbangconstants.lisp
lisp
Now that all the cross-compiler INFO machinery has been set up, we can feed the stored DEF!CONSTANTS argument lists to it. perhaps the parallelism with FORCE-DELAYED-DEF!STRUCTS (which does have a good reason). more information. public domain. The software is in the public domain and is provided with absolutel...
: There 's no real reason for this to be in its own file , except This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB!KERNEL") #+sb-xc-host (force-delayed-de...
1f5cc2f478d1e0fd65da112f407147a43a9b289ba560bd0bcf84c31eacdadf96
clojure-interop/java-jdk
project.clj
(defproject clojure-interop/javax.tools "1.0.5" :description "Clojure to Java Interop Bindings for javax.tools" :url "-interop/java-jdk" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"]] :source-paths ["src"])
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.tools/project.clj
clojure
(defproject clojure-interop/javax.tools "1.0.5" :description "Clojure to Java Interop Bindings for javax.tools" :url "-interop/java-jdk" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"]] :source-paths ["src"])
7e099c993f1cc475bd9425e5c6c86f8ece73a51511ee8b82d1ec7ba5e8d81c67
b-social/vent
util_test.clj
(ns vent.util-test (:require [clojure.test :refer :all] [vent.util :refer [highest-arity-of]])) ; Inspired by: ; -how-to-find-out-the-arity-of-function-at-runtime (defmacro m ([a]) ([a b])) (defmacro mx []) (deftest test-arity (testing "with an anonymous #(… %1) function" (is (= 1 (highest-arity-of ...
null
https://raw.githubusercontent.com/b-social/vent/af43b9abe1b340eb945562ce0d937d66f0e12a72/test/vent/util_test.clj
clojure
Inspired by: -how-to-find-out-the-arity-of-function-at-runtime
(ns vent.util-test (:require [clojure.test :refer :all] [vent.util :refer [highest-arity-of]])) (defmacro m ([a]) ([a b])) (defmacro mx []) (deftest test-arity (testing "with an anonymous #(… %1) function" (is (= 1 (highest-arity-of #(+ % 32)))) (is (= 1 (highest-arity-of #(+ %1 32)))) (is (...
5bcc1cd7e2e6b8d5d308c4fb4c871bc0409e9b6da82794d9507020718f39cbf5
MarcKaufmann/congame
message-struct.rkt
#lang racket/base (require deta gregor) (provide (schema-out message)) (define-schema message #:table "messages" ([id id/f #:primary-key #:auto-increment] [user-id id/f] [sender string/f] [subject string/f] [data binary/f] [(unread? #t) boolean/f] [(received-at (now/moment)) datetime-...
null
https://raw.githubusercontent.com/MarcKaufmann/congame/d9b71f89140263a6d3053b7121df91cc9a62eba8/congame-identity/components/message-struct.rkt
racket
#lang racket/base (require deta gregor) (provide (schema-out message)) (define-schema message #:table "messages" ([id id/f #:primary-key #:auto-increment] [user-id id/f] [sender string/f] [subject string/f] [data binary/f] [(unread? #t) boolean/f] [(received-at (now/moment)) datetime-...
8e1c18543ad49c60a1f15877351626a316c474eb7a3c7f2904ebe9a8d46ed642
miniclip/poolgirl
poolgirl_internal_directory.erl
@private Poolgirl - A sexy Erlang worker pool factory -module(poolgirl_internal_directory). -include_lib("stdlib/include/ms_transform.hrl"). -export([new/0, register/2, find/2]). %%% %%% Types %%% -opaque t() :: ets:tab(). -export_type([t/0]). %%% %%% Exported functions %%% -spec new() -> t...
null
https://raw.githubusercontent.com/miniclip/poolgirl/af523d9382e66b7232c8fde02ff74b31aecd5118/src/poolgirl_internal_directory.erl
erlang
Types Exported functions Local functions
@private Poolgirl - A sexy Erlang worker pool factory -module(poolgirl_internal_directory). -include_lib("stdlib/include/ms_transform.hrl"). -export([new/0, register/2, find/2]). -opaque t() :: ets:tab(). -export_type([t/0]). -spec new() -> t(). new() -> ets:new('poolgirl.internal_direc...
bd7f51fd5e12dae3cf1d93774e228af6f41a6ac125ccee8af80c0956d5f911ae
jamesmacaulay/shopify-clj
config.clj
(ns shop-launchpad.config) (def ^:dynamic config {:app-url (or (System/getenv "APP_URL") ":3000") :shopify-api-key (System/getenv "SHOPIFY_API_KEY") :shopify-api-secret (System/getenv "SHOPIFY_API_SECRET")})
null
https://raw.githubusercontent.com/jamesmacaulay/shopify-clj/dcac775d260e4a7f4d54e0fd2aa84f74c864e338/examples/shop-launchpad/src/shop_launchpad/config.clj
clojure
(ns shop-launchpad.config) (def ^:dynamic config {:app-url (or (System/getenv "APP_URL") ":3000") :shopify-api-key (System/getenv "SHOPIFY_API_KEY") :shopify-api-secret (System/getenv "SHOPIFY_API_SECRET")})
0b197c9d056dea6b08be38930b95a06316be40d5a7871bc485707d89df400ff8
kumarshantanu/ring-sse-middleware
jetty_test.clj
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 LICENSE at the root of this distribution. ; By using this software in any fashion, you are agreeing to be bound by ; the ...
null
https://raw.githubusercontent.com/kumarshantanu/ring-sse-middleware/67dae006cfda2fa2fef93eea92557aeffff0b6a7/test/ring_sse_middleware/jetty_test.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file LICENSE 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 this ...
Copyright ( c ) . All rights reserved . (ns ring-sse-middleware.jetty-test (:require [ring-sse-middleware.test-util :as tu] [cheshire.core :as c] [ring-sse-middleware.core :as r] [ring-sse-middleware.adapter.generic :as adapter] [ring.adapter.jetty ...
5a2cdd97a2523f9acf9e8031372909a0f6c969bb87d4db1bdddce1fc6f64632c
samsergey/formica
monad-tests.rkt
#lang racket/base (require "../monad.rkt" "../formal.rkt" "../rewrite.rkt" "../tools.rkt" "../types.rkt" rackunit) (test-case "Monad Id." (define-formal f g) (using-monad Id) (check-equal? (return 'x) 'x) (check-equal? (bind 'x >>= return) 'x) (check-equal? (bind 'x >...
null
https://raw.githubusercontent.com/samsergey/formica/b4410b4b6da63ecb15b4c25080951a7ba4d90d2c/tests/monad-tests.rkt
racket
#lang racket/base (require "../monad.rkt" "../formal.rkt" "../rewrite.rkt" "../tools.rkt" "../types.rkt" rackunit) (test-case "Monad Id." (define-formal f g) (using-monad Id) (check-equal? (return 'x) 'x) (check-equal? (bind 'x >>= return) 'x) (check-equal? (bind 'x >...
fd109e2e1b8bb2157336a98e2fcce5acb22ad0250a0ec9c4d6e2f737bb3958d1
erszcz/learning
myrec.erl
-module(myrec). -compile([export_all]). -include("myrec.hrl"). %% Use after your record versions are defined! -define(LATEST_RECORD_VERSION, myrec_v2). -include("versioned_record.hrl"). -undef(LATEST_RECORD_VERSION). %% This might require application-specific logic - override as applicable. upgrade(#myrec_v1{} = V1)...
null
https://raw.githubusercontent.com/erszcz/learning/b21c58a09598e2aa5fa8a6909a80c81dc6be1601/erlang-versioned-records/test/myrec.erl
erlang
Use after your record versions are defined! This might require application-specific logic - override as applicable. These are the fields new in v2 along with default values.
-module(myrec). -compile([export_all]). -include("myrec.hrl"). -define(LATEST_RECORD_VERSION, myrec_v2). -include("versioned_record.hrl"). -undef(LATEST_RECORD_VERSION). upgrade(#myrec_v1{} = V1) -> vr_lib:upgrade(V1, #myrec_v2{}, [{#myrec_v2.field2, (#myrec_v2{})#myrec_v2.field2}]).
e00c909e36b173b3a40ef6e1156ecdf788ab2fbad0d2a2f5f39f9fd1c0899fab
futurice/haskell-mega-repo
OwnedComputers.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TupleSections # module Futurice.App.Reports.OwnedComputers where import Database.PostgreSQL.Simple (FromRow) import Futurice.Generics import Futurice.Postgres (HasPostgresPool, safePoolQuery_) import Futurice.Prelude import Prelude () import qualified Data.M...
null
https://raw.githubusercontent.com/futurice/haskell-mega-repo/2647723f12f5435e2edc373f6738386a9668f603/reports-app/src/Futurice/App/Reports/OwnedComputers.hs
haskell
# LANGUAGE OverloadedStrings # ----------------------------------------------------------------------------- Fetch -----------------------------------------------------------------------------
# LANGUAGE TupleSections # module Futurice.App.Reports.OwnedComputers where import Database.PostgreSQL.Simple (FromRow) import Futurice.Generics import Futurice.Postgres (HasPostgresPool, safePoolQuery_) import Futurice.Prelude import Prelude () import qualified Data.Map as Map import qualified Personio...
f4f62ce59e833e557bdb746cbe0889e4fb5d9065e9db1dd7d8dbeca281e58d86
abailly/xxi-century-typed
Parser.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DerivingStrategies # # LANGUAGE StandaloneDeriving # {-# OPTIONS_GHC -Wno-unrecognised-pragmas #-} {-# HLINT ignore "Use camelCase" #-} module Minilang.Parser where import Data.Aeson (FromJSON, ToJSON) import Data.Either (fromRight) import Data.Functor (void) import Data.Fu...
null
https://raw.githubusercontent.com/abailly/xxi-century-typed/89df5eab3747ddb0ea37030ddb1947fb8c14265b/minilang/src/Minilang/Parser.hs
haskell
# LANGUAGE DeriveAnyClass # # OPTIONS_GHC -Wno-unrecognised-pragmas # # HLINT ignore "Use camelCase" # try is needed because expressions are prefixes of function types try is needed because parenthesized expressions are prefixes of pairs ... or skip to possible end of expression
# LANGUAGE DerivingStrategies # # LANGUAGE StandaloneDeriving # module Minilang.Parser where import Data.Aeson (FromJSON, ToJSON) import Data.Either (fromRight) import Data.Functor (void) import Data.Functor.Identity (Identity) import Data.Maybe (fromMaybe) import Data.Text (Text, pack, unpack) import qualified Debu...
d9839f59ecb445402966d60780362255b0b91843d9ef79ed1fe733b1d8e93031
synrc/exe
exe.erl
-module(exe). -compile(export_all). reduce() -> fun({_, Chunk}, Acc) -> [Chunk|Acc] end. run(Args) -> erlang:open_port({spawn_executable, os:find_executable("sh")}, [stream, in, out, eof, use_stdio, stderr_to_stdout, binary, exit_status, {args, ["-c",Args]}, {cd, element(2,file:get_cwd())}, {e...
null
https://raw.githubusercontent.com/synrc/exe/8a99b8c1ed3ea7f7ead6aca2df2f8183b032c600/src/exe.erl
erlang
-module(exe). -compile(export_all). reduce() -> fun({_, Chunk}, Acc) -> [Chunk|Acc] end. run(Args) -> erlang:open_port({spawn_executable, os:find_executable("sh")}, [stream, in, out, eof, use_stdio, stderr_to_stdout, binary, exit_status, {args, ["-c",Args]}, {cd, element(2,file:get_cwd())}, {e...
560a8c1c7e769af7e9971d2b5ac22c2ef28a433dcfd11571eb0c75882c4f5eea
input-output-hk/cardano-ledger-byron
LovelacePortion.hs
{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DerivingStrategies #-} {-# LANGUAGE DerivingVia #-} # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE NumDecimals # {-# LANGUAGE OverloadedSt...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger-byron/d309449e6c303a9f0dcc8dcf172df6f0b3195ed5/cardano-ledger/src/Cardano/Chain/Common/LovelacePortion.hs
haskell
# LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DerivingVia # # LANGUAGE OverloadedStrings # # LANGUAGE UndecidableInstances # compatibility. It was originally intended to represent a fraction of stake in the system. It is used only for the thre...
# LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE NumDecimals # module Cardano.Chain.Common.LovelacePortion ( LovelacePortion , rationalToLovelacePortion , lovelacePortionToRational ) where import Cardano.Prelud...
1bba8040292d74482bdbf210d133469d91066f0f79effa6c3964ab0813260304
shirok/Gauche
214.scm
;;; ;;; SRFI-214 - flexvector ;;; Copyright ( c ) 2021 - 2022 < > ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: ;;; ;;; 1. Redistributions of source code must retain the above copyright ;;...
null
https://raw.githubusercontent.com/shirok/Gauche/e606bfe5a94b100d5807bca9c2bb95df94f60aa6/lib/srfi/214.scm
scheme
SRFI-214 - flexvector Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. ...
Copyright ( c ) 2021 - 2022 < > " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING (define-module srfi.214 (use srfi.42) (u...
062a5b98b7a6664b9c23ef15af15253ad53eb33da4bb6d31b3ab8beb89189499
imrekoszo/polylith-kaocha
interface_test.clj
(ns polylith-kaocha.kaocha-test-runner.interface-test (:require [clojure.test :refer :all] [polylith-kaocha.kaocha-test-runner.interface :as sut] [polylith.clj.core.test-runner-contract.interface.initializers :as test-runner-initializers] [polylith.clj.core.test-runner-contract.interface.verifiers :as tes...
null
https://raw.githubusercontent.com/imrekoszo/polylith-kaocha/e3499173b2d9109c253f44cd641d04ad79376e8c/components/kaocha-test-runner/test/polylith_kaocha/kaocha_test_runner/interface_test.clj
clojure
(ns polylith-kaocha.kaocha-test-runner.interface-test (:require [clojure.test :refer :all] [polylith-kaocha.kaocha-test-runner.interface :as sut] [polylith.clj.core.test-runner-contract.interface.initializers :as test-runner-initializers] [polylith.clj.core.test-runner-contract.interface.verifiers :as tes...
ca024e5d55ad74a4071f15d29d83c9e5d267b8d5e3f5cbd0da871e254132bc14
juxt/edge
system.clj
(ns juxt.crux.ig.system (:require [clojure.java.io :as io] [crux.api :as api] [integrant.core :as ig]) (:import java.nio.file.attribute.FileAttribute java.nio.file.Files)) (defn- delete-directory "Delete a directory and all files within" [f] (run! io/delete-file (filter #(....
null
https://raw.githubusercontent.com/juxt/edge/dfda42e035714279642b359a8610f57154efd002/lib/crux.ig/src/juxt/crux/ig/system.clj
clojure
tools refresh wipes this out, to which I don't have an easy solution. I could move it to another namespace which has reloading disabled perhaps. instead. As such this modules abstaction of standalone and cluster nodes is no longer relevant and are deprecated. :juxt.crux.ig/system should be used instead, with the r...
(ns juxt.crux.ig.system (:require [clojure.java.io :as io] [crux.api :as api] [integrant.core :as ig]) (:import java.nio.file.attribute.FileAttribute java.nio.file.Files)) (defn- delete-directory "Delete a directory and all files within" [f] (run! io/delete-file (filter #(....
a9c96e300aa89a0b18194c357cdb3580d67660120e2bd73bae667ba494b7c00f
dfinity/motoko
typing.ml
open Syntax open Source open Arrange_idl (* Environments *) module FieldEnv = Env.Make(Lib.Uint32) module Env = Env.Make(String) module TS = Set.Make(String) (* Error recovery *) exception Recover let recover_with (x : 'a) (f : 'b -> 'a) (y : 'b) = try f y with Recover -> x let recover_opt f y...
null
https://raw.githubusercontent.com/dfinity/motoko/399b8e8b0b47890388cd38ee0ace7638d9092b1a/src/idllib/typing.ml
ocaml
Environments Error recovery Scopes Contexts (internal) Error bookkeeping Context extension Types Declarations Actor Programs Test declarations
open Syntax open Source open Arrange_idl module FieldEnv = Env.Make(Lib.Uint32) module Env = Env.Make(String) module TS = Set.Make(String) exception Recover let recover_with (x : 'a) (f : 'b -> 'a) (y : 'b) = try f y with Recover -> x let recover_opt f y = recover_with None (fun y -> Some (f y...
43ac0fd9e1c9193c9ffe461feb353abd8bd141073c663e33acf33a148a30aa05
yoriyuki/Camomile
toolslib.ml
open CamomileLibrary.Private module Unidata = Unidata.Make(Camomileconfig) module Charmap = Charmap.Configure(Camomileconfig) module Unimap = Unimap.Make(Camomileconfig)
null
https://raw.githubusercontent.com/yoriyuki/Camomile/d7d8843c88fae774f513610f8e09a613778e64b3/Camomile/toolslib/toolslib.ml
ocaml
open CamomileLibrary.Private module Unidata = Unidata.Make(Camomileconfig) module Charmap = Charmap.Configure(Camomileconfig) module Unimap = Unimap.Make(Camomileconfig)
1924f63356f6d389ddf2ffb55afa278667d60f95eaa070ff8c4f191fc5ea3d05
fetburner/Coq2SML
scheme.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/fetburner/Coq2SML/322d613619edbb62edafa999bff24b1993f37612/coq-8.4pl4/plugins/extraction/scheme.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** s Production of Scheme syntax. s Sc...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Pp open Util open Names...
7595f8efc049620962fec3fce360fb9874b6600c93a8ac2280af9c7aaa5c5a6c
philnguyen/soft-contract
data-adaptor.rkt
#lang racket/base (module require/contracts racket/base (require racket/contract "data.rkt") (provide (contract-out (struct foo ())))) (require racket/contract require-typed-check (prefix-in -: (only-in 'require/contracts foo?)) (except-in 'require/contracts foo?)) (provide ...
null
https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/test/programs/unsafe/issues/re-provide-struct-twice/data-adaptor.rkt
racket
#lang racket/base (module require/contracts racket/base (require racket/contract "data.rkt") (provide (contract-out (struct foo ())))) (require racket/contract require-typed-check (prefix-in -: (only-in 'require/contracts foo?)) (except-in 'require/contracts foo?)) (provide ...
16718e3d18bf2efce9b04ff30cfe25c90652fdd06de8fc28358446b0c17e5b77
saidone75/talispam
dictionary.clj
(ns talispam.dictionary (:gen-class)) (set! *warn-on-reflection* true) (require '[clojure.java.io :as io] '[clojure.string :as s] '[cognitect.transit :as transit] '[talispam.config :as c]) (def dictionary (atom #{})) (defn exists-dictionary [] (.exists (clojure.java.io/file ...
null
https://raw.githubusercontent.com/saidone75/talispam/f5ff49948918251fea6b7f03e970b0f8fbd16ca7/src/talispam/dictionary.clj
clojure
3 (#(s/split % #"\n")) 8 (spit "/home/saidone/.talispam/it_30k.txt"))
(ns talispam.dictionary (:gen-class)) (set! *warn-on-reflection* true) (require '[clojure.java.io :as io] '[clojure.string :as s] '[cognitect.transit :as transit] '[talispam.config :as c]) (def dictionary (atom #{})) (defn exists-dictionary [] (.exists (clojure.java.io/file ...
5fd18a0889a0189e66553f75f98f8f3e38753554735108779e809752aabb0d47
cwi-swat/monadic-frp
MonadicFRP.hs
# LANGUAGE TupleSections , NoMonomorphismRestriction # -- | Monadic FRP basic definitions and composition functions. See the paper " Monadic Functional Reactive Programming " Atze van der Ploeg . Haskell Symposium ' 13 < /~ploeg / papers / monfrp.pdf > . An example can be found at < -swat/monadic-frp > . -- No...
null
https://raw.githubusercontent.com/cwi-swat/monadic-frp/c0c40fdfe4a2c77df66173338b109831b35b7672/Control/MonadicFRP.hs
haskell
| Monadic FRP basic definitions and composition functions. * Reactive level sharing requires an explicit call to a memoization function * Reactive level recursion is problematic. A function preprended with i indices a initialized signal variant of an signal computation function. Imports just for memo ...
# LANGUAGE TupleSections , NoMonomorphismRestriction # See the paper " Monadic Functional Reactive Programming " Atze van der Ploeg . Haskell Symposium ' 13 < /~ploeg / papers / monfrp.pdf > . An example can be found at < -swat/monadic-frp > . Notice that currently Monadic FRP relies on a closed union ( ADT ) of...
6938832e1cd662e8c2d5c1c65846ebe0621634f0bbdc2d6ebc2e22e024eabae9
xaptum/oneup_metrics
system_info_handler.erl
%%%------------------------------------------------------------------- @author iguberman ( C ) 2017 , Xaptum , Inc. %%% @doc %%% %%% @end Created : 30 . Nov 2017 8:45 PM %%%------------------------------------------------------------------- -module(system_info_handler). -author("iguberman"). %% Cowboy API -expo...
null
https://raw.githubusercontent.com/xaptum/oneup_metrics/cfbf248a8f630596f7c3e40c3da1f32d9c1c0531/src/reporters/system_info_handler.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- Cowboy API
@author iguberman ( C ) 2017 , Xaptum , Inc. Created : 30 . Nov 2017 8:45 PM -module(system_info_handler). -author("iguberman"). -export([init/2]). -export([content_types_provided/2]). -export([process_request/2]). -define(PROCESSES, <<"processes">>). -define(PORTS, <<"ports">>). -define(LARGE_MBOXES, <<"large...
3e897f0a9fe471e7a526abbd7d212dad572e9532fdaa4f8f6461bd962887d718
b1412/clojure-web-admin
css.clj
(ns clojure-web.css (:require [garden.def :refer [defstyles]])) (defstyles customize [[:.bootstrap-table {:width "1000px"}] [:.modal-header {:min-height "16.42857143px" :padding "15px" :border-bottom "1px solid #e5e5e5" :background-color "#428bca"}] ...
null
https://raw.githubusercontent.com/b1412/clojure-web-admin/018161dcdb364cc168d6f5a56ceb798005a0701f/src/clj/clojure_web/css.clj
clojure
(ns clojure-web.css (:require [garden.def :refer [defstyles]])) (defstyles customize [[:.bootstrap-table {:width "1000px"}] [:.modal-header {:min-height "16.42857143px" :padding "15px" :border-bottom "1px solid #e5e5e5" :background-color "#428bca"}] ...
fc708146899c483fdb47f4b6cd61a23855bfcfe975a7819979b9c83115583b47
mzp/min-caml
main.ml
let limit = ref 1000 let rec iter n e = (* 最適化処理をくりかえす (caml2html: main_iter) *) Format.eprintf "iteration %d@." n; if n = 0 then e else let e' = Elim.f (ConstFold.f (Inline.f (Assoc.f (Beta.f e)))) in if e = e' then e else iter (n - 1) e' let lexbuf outchan l = (* バッファをコンパイルしてチャンネルへ出力する (caml2html: main_le...
null
https://raw.githubusercontent.com/mzp/min-caml/cf1180792a2a0bc895ba17a0052e3b6f4a74e444/src/main.ml
ocaml
最適化処理をくりかえす (caml2html: main_iter) バッファをコンパイルしてチャンネルへ出力する (caml2html: main_lexbuf) 文字列をコンパイルして標準出力に表示する (caml2html: main_string) ファイルをコンパイルしてファイルに出力する (caml2html: main_file) ここからコンパイラの実行が開始される (caml2html: main_entry)
let limit = ref 1000 Format.eprintf "iteration %d@." n; if n = 0 then e else let e' = Elim.f (ConstFold.f (Inline.f (Assoc.f (Beta.f e)))) in if e = e' then e else iter (n - 1) e' Id.counter := 0; Typing.extenv := M.empty; Emit.f outchan (RegAlloc.f (Simm.f (Virtual.f (Closure.f ...
8d60b575ec57b797023872ce632928fef426ed319b997491feb7e72f51ca4856
hanshuebner/vlm
xtranrule.lisp
-*- Package : ALPHA - AXP - INTERNALS ; Syntax : Common - Lisp ; Mode : LISP ; Base : 10 ; Lowercase : Yes -*- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Translation support for SetSpToAddressHW instruction ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ( ...
null
https://raw.githubusercontent.com/hanshuebner/vlm/20510ddc98b52252a406012a50a4d3bbd1b75dd0/translator/xtranrule.lisp
lisp
Syntax : Common - Lisp ; Mode : LISP ; Base : 10 ; Lowercase : Yes -*- (do-default instn)) #o0151 restore TOS (do-default instn)) #o0152 get TOS cached. store TOS Translation support for PushHW instruction #o0100 #o0340 get TOS cached. Translation support for MovemHW instruction ...
Translation support for SetSpToAddressHW instruction ( def - halfword - translation SetSpToAddressHW ( instn ) (compute-operand-address instn 'iSP) Translation support for SetSpToAddressSaveTosHW instruction ( def - halfword - translation SetSpToAddressSaveTosHW ( instn ) (compute-operand-addr...
743c32a3cc6afd3fdabf9748682228cbbeba7f90f4faa72e7e7ca86a436bcc63
mfoemmel/erlang-otp
wxCalendarCtrl.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2008 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/wx/src/gen/wxCalendarCtrl.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 2008 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(wxCalendarCtrl). -include("wxe.hr...
86fd334e2f67ab6142d5c0a31d437ff9331efe3a3b09203ec223cf0e30159255
zehaochen19/vanilla-lang
WellForm.hs
# LANGUAGE FlexibleContexts # module Vanilla.Static.TypeCheck.WellForm where import Control.Monad (forM_) import Control.Monad.Reader (ask) import Data.Map as M import Data.Maybe (isJust) import Vanilla.Static.Context import Vanilla.Static.TypeCheck.Internal import Vanilla.Syntax.Decl import Vanilla.Syntax.Type type...
null
https://raw.githubusercontent.com/zehaochen19/vanilla-lang/d1e2bbd3125151ce2c0ddc20f735d3a55aeb6bc8/src/Vanilla/Static/TypeCheck/WellForm.hs
haskell
# LANGUAGE FlexibleContexts # module Vanilla.Static.TypeCheck.WellForm where import Control.Monad (forM_) import Control.Monad.Reader (ask) import Data.Map as M import Data.Maybe (isJust) import Vanilla.Static.Context import Vanilla.Static.TypeCheck.Internal import Vanilla.Syntax.Decl import Vanilla.Syntax.Type type...
2b2162e490cdc88a9c2e02998553715fc826e09e21291408fe0912e2ec002cec
LuxMiranda/herms
Tests.hs
module ReadConfig.Tests where -- This module is generated by cabal import qualified Data.ByteString as BS import qualified Data.Yaml as Yaml import Paths_herms hiding (getDataDir) import ReadConfig import Test.HUnit ((@?)) import Test.Tasty (TestTree, testGroup) import Test.Tasty.HUnit (testCase) import qualified Text...
null
https://raw.githubusercontent.com/LuxMiranda/herms/cb2bf5be31090300cfd9cae5d5cbf1b1f13c65c4/test/ReadConfig/Tests.hs
haskell
This module is generated by cabal
module ReadConfig.Tests where import qualified Data.ByteString as BS import qualified Data.Yaml as Yaml import Paths_herms hiding (getDataDir) import ReadConfig import Test.HUnit ((@?)) import Test.Tasty (TestTree, testGroup) import Test.Tasty.HUnit (testCase) import qualified Text.Read as TR import Types (Recipe) te...
c429d64505d065b26db0b34411555a9e219b937d9aa7ff45df223d641d845afb
filipanselmo11/Lisp
funcoes.lisp
(defun teste (a b) (* 2(+ a b)) ) (print(teste 2 3)) (print(teste 3 4)) (print(teste 5 5)) (defun soma(a b c) (+ a b c) ) (print(soma 2 3 4)) (print(soma 21 32 43)) (print(soma 23 322 43)) (print(soma 233 322 1114))
null
https://raw.githubusercontent.com/filipanselmo11/Lisp/0395bbfa40280ad0d9a9eab3378d813ec89e195a/funcoes.lisp
lisp
(defun teste (a b) (* 2(+ a b)) ) (print(teste 2 3)) (print(teste 3 4)) (print(teste 5 5)) (defun soma(a b c) (+ a b c) ) (print(soma 2 3 4)) (print(soma 21 32 43)) (print(soma 23 322 43)) (print(soma 233 322 1114))
1542d6fca206aa5cc5811f13efe5d1cfa2409a6269db9dac3d863a6dded648ac
coord-e/ad-hoc-poly
Mlx2.hs
module Mlx2 where import Compile (compileSourceFile) import Reporting.Report (printReport) import System.Environment (getArgs) main :: IO () main = do args <- getArgs result <- compileSourceFile Nothing $ head args case result of Right output -> putStrLn output ...
null
https://raw.githubusercontent.com/coord-e/ad-hoc-poly/cb436ede2ac4f564cddd96fcab879c1ebc7a379e/app/Mlx2.hs
haskell
module Mlx2 where import Compile (compileSourceFile) import Reporting.Report (printReport) import System.Environment (getArgs) main :: IO () main = do args <- getArgs result <- compileSourceFile Nothing $ head args case result of Right output -> putStrLn output ...
011ef8cd7ccef714e800d67bca5abfc26e47f8567a453eda7fa3d2701406c20f
dariusf/ppx_interact
ret.ml
let x = [%interact: int] in Format.printf "x = %d@." x
null
https://raw.githubusercontent.com/dariusf/ppx_interact/23b93ac81417b74738631bcd9d5be5272b4d9ccd/examples/ret.ml
ocaml
let x = [%interact: int] in Format.printf "x = %d@." x
226d1faa444f1e1ba5a608f77a39e47a400f1132947e74ce4a802919daf052ed
tonsky/advent-of-code
day08.clj
(ns advent-of-code.year2022.day08 (:require [clojure.java.io :as io] [clojure.math :as math] [clojure.string :as str] [clojure.set :as set] [remote-require.core :as rr])) (rr/from "" :require [cond+]) (def sample1 "30373 25512 65332 33549 35390") (def data (slurp (io/file "inputs/year2022...
null
https://raw.githubusercontent.com/tonsky/advent-of-code/62452a847dc737f97d63ec153ef9e879c9bdb0b8/src/advent_of_code/year2022/day08.clj
clojure
(ns advent-of-code.year2022.day08 (:require [clojure.java.io :as io] [clojure.math :as math] [clojure.string :as str] [clojure.set :as set] [remote-require.core :as rr])) (rr/from "" :require [cond+]) (def sample1 "30373 25512 65332 33549 35390") (def data (slurp (io/file "inputs/year2022...
1800d425a3aa0a634e016b69c680b44075a47608b7a271437ff7b5c0d23fc2a2
kazu-yamamoto/hhp
GhcPkg.hs
# LANGUAGE BangPatterns , ScopedTypeVariables , TupleSections # module Hhp.GhcPkg ( ghcPkgList , ghcPkgListEx , ghcPkgDbOpt , ghcPkgDbStackOpts , ghcDbStackOpts , ghcDbOpt , getSandboxDb , getPackageDbStack ) where ghc version import Control.Exception (SomeException(..)) import qualified Contro...
null
https://raw.githubusercontent.com/kazu-yamamoto/hhp/b72793ef134f46fce3ecdbe4ec2cd50880cc3c70/lib/Hhp/GhcPkg.hs
haskell
| Get path to sandbox package db ^ Path to the cabal package root directory (containing the @cabal.sandbox.config@ file) | Extract the sandbox package db directory from the cabal.sandbox.config file. Exception is thrown if the sandbox config file is broken. ^ Path to the @cabal.sandbox.config@ file Be strict t...
# LANGUAGE BangPatterns , ScopedTypeVariables , TupleSections # module Hhp.GhcPkg ( ghcPkgList , ghcPkgListEx , ghcPkgDbOpt , ghcPkgDbStackOpts , ghcDbStackOpts , ghcDbOpt , getSandboxDb , getPackageDbStack ) where ghc version import Control.Exception (SomeException(..)) import qualified Contro...
93f64cf297f726dcfc30f9d25489f26b459fbe720000b3ca801cc06f8a495874
denisidoro/rosebud
provider.clj
(ns rosebud.components.bucket.protocols.provider) (defprotocol Provider (get-investments [component]) (get-fundos [component]) (get-wallets [component]) (get-stocks [component]) (get-currencies [component]))
null
https://raw.githubusercontent.com/denisidoro/rosebud/90385528d9a75a0e17803df487a4f6cfb87e981c/server/src/rosebud/components/bucket/protocols/provider.clj
clojure
(ns rosebud.components.bucket.protocols.provider) (defprotocol Provider (get-investments [component]) (get-fundos [component]) (get-wallets [component]) (get-stocks [component]) (get-currencies [component]))
098ed07d1407285667cd02d7d7878f4686b97da1a7faeba87eedafac5256f474
boomerang-lang/boomerang
error.mli
(*****************************************************) The Harmony Project (* *) (* error.mli - interface for run-time exceptions *) (*****************************************************) $ I d : error.ml...
null
https://raw.githubusercontent.com/boomerang-lang/boomerang/b42c2bfc72030bbe5c32752c236c0aad3b17d149/hbase/error.mli
ocaml
*************************************************** error.mli - interface for run-time exceptions *************************************************** * [simple_error s] raises a [Harmony_error] that prints [s], which should be a short string. * [exit_on_e...
The Harmony Project $ I d : error.mli 3437 2007 - 12 - 09 22:41:31Z jnfoster $ * Exceptions used throughout Harmony exception Harmony_error of (unit -> unit) * A [ Harmony_error f ] is the only exception raised in Harmony programs . Information abo...
b272b31caba76c5e3f4af78efd00d88a14e8419ae19e84c5d7c4455982b98ab8
dradtke/Lisp-Text-Editor
tree-model.lisp
(in-package #:gtk-cffi) (defclass tree-path (object) ()) (defcfun "gtk_tree_path_new" :pointer) (defcfun "gtk_tree_path_free" :void (path pobject)) (defcfun "gtk_tree_path_new_from_string" :pointer (str gtk-string)) (defcfun "gtk_tree_path_new_from_indices" :pointer &rest) (defcfun "gtk_tree_path_append_index" ...
null
https://raw.githubusercontent.com/dradtke/Lisp-Text-Editor/b0947828eda82d7edd0df8ec2595e7491a633580/quicklisp/dists/quicklisp/software/gtk-cffi-20120208-cvs/gtk/tree-model.lisp
lisp
virtual methods
(in-package #:gtk-cffi) (defclass tree-path (object) ()) (defcfun "gtk_tree_path_new" :pointer) (defcfun "gtk_tree_path_free" :void (path pobject)) (defcfun "gtk_tree_path_new_from_string" :pointer (str gtk-string)) (defcfun "gtk_tree_path_new_from_indices" :pointer &rest) (defcfun "gtk_tree_path_append_index" ...
9878e700afa16acac71ad2c233f35f7b308a543aa70a0752f1f09178e3d748fa
nasa/Common-Metadata-Repository
core.clj
(ns cmr.graph.collections.core (:require [cheshire.core :as json] [clojurewerkz.neocons.rest.cypher :as cypher] [clojurewerkz.neocons.rest.nodes :as nodes] [clojurewerkz.neocons.rest.relationships :as relations] [cmr.graph.queries.neo4j.collections :as query])) (defn reset [conn] (cypher/tquery co...
null
https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/63001cf021d32d61030b1dcadd8b253e4a221662/other/cmr-exchange/graph/src/cmr/graph/collections/core.clj
clojure
(ns cmr.graph.collections.core (:require [cheshire.core :as json] [clojurewerkz.neocons.rest.cypher :as cypher] [clojurewerkz.neocons.rest.nodes :as nodes] [clojurewerkz.neocons.rest.relationships :as relations] [cmr.graph.queries.neo4j.collections :as query])) (defn reset [conn] (cypher/tquery co...
3e830c83a02858f3ee716bccb3b6578b183804a56bf11b1f19aebee1dccb92c0
dancrossnyc/multics
e_listen_interface_.lisp
;;; *********************************************************** ;;; * * * Copyright , ( C ) Honeywell Information Systems Inc. , 1982 * ;;; * * * Copyright ( c ) 1978 by Massachusetts Institute of ...
null
https://raw.githubusercontent.com/dancrossnyc/multics/dc291689edf955c660e57236da694630e2217151/library_dir_dir/system_library_unbundled/source/bound_multics_emacs_.s.archive/e_listen_interface_.lisp
lisp
*********************************************************** * * * * * * *********************************************************** 08/27/78 G...
* Copyright , ( C ) Honeywell Information Systems Inc. , 1982 * * Copyright ( c ) 1978 by Massachusetts Institute of * * Technology and Honeywell Information Systems , Inc. * EMACS editor interface Moved argument parsing to PL/1 , 21 July 1981 RMSoley Modified : 26 November 1983 to not...
c8b13629b7c524fbeab4b80b4b11e3f73d466f10698cf127f086c4eccaa4e178
AlexKnauth/toki-pi-kalama-musi
chord-names.rkt
#lang racket/base (provide toki-pona-string->chord-names) (require (only-in racket/list second) racket/match racket/string fancy-app music/data/note/main (only-in (submod music/data/note/note example) C4) (only-in music/data/note/note-class note-class->string) ...
null
https://raw.githubusercontent.com/AlexKnauth/toki-pi-kalama-musi/b8a892f67fb5a2e370e982afa2c5c0ed2a8a3a44/racket/toki-pi-kalama-musi-lib/diatonic/inversion/chord-names.rkt
racket
--------------------------------------------------------- toki-pona-string->chord-names : String -> String TODO: decide between: - bass-ivl relative to key - bass-ivl/root relative to root interval->chord-root-name/key : Interval #:key (Maybe Note) -> String chord-kind->chord-name-kind : ChordKind -> String i...
#lang racket/base (provide toki-pona-string->chord-names) (require (only-in racket/list second) racket/match racket/string fancy-app music/data/note/main (only-in (submod music/data/note/note example) C4) (only-in music/data/note/note-class note-class->string) ...
5bdb326aa815729f9d7980c49fc0af56fc9aa71ab405685404d87087ccd2a71e
achirkin/vulkan
VK_AMD_gpu_shader_half_float.hs
# OPTIONS_HADDOCK not - home # {-# LANGUAGE DataKinds #-} {-# LANGUAGE MagicHash #-} # LANGUAGE PatternSynonyms # {-# LANGUAGE Strict #-} {-# LANGUAGE ViewPatterns #-} module Graphics.Vulkan.Ext.VK_AMD_gpu_shader_half_float * Vulkan extension : @VK_AMD_gpu_shader_half_float@ -- | ...
null
https://raw.githubusercontent.com/achirkin/vulkan/b2e0568c71b5135010f4bba939cd8dcf7a05c361/vulkan-api/src-gen/Graphics/Vulkan/Ext/VK_AMD_gpu_shader_half_float.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE MagicHash # # LANGUAGE Strict # # LANGUAGE ViewPatterns # | supported: @vulkan@ type: @device@ Extension number: @37@ # INLINE _VK_AMD_GPU_SHADER_HALF_FLOAT_EXTENSION_NAME #
# OPTIONS_HADDOCK not - home # # LANGUAGE PatternSynonyms # module Graphics.Vulkan.Ext.VK_AMD_gpu_shader_half_float * Vulkan extension : @VK_AMD_gpu_shader_half_float@ contact : author : VK_AMD_GPU_SHADER_HALF_FLOAT_SPEC_VERSION, pattern VK_AMD_GPU_SHADER_HALF_FLOAT_SPEC_VERSION, VK_AM...
ab0b3a7b70505792c79a8270eb33c62a3b64f6e79daea8e5d59c673a62ead503
simonmar/parconc-examples
Term.hs
-- -- Adapted from the program "infer", believed to have been originally authored by , and used in the nofib benchmark suite since at least the late 90s . -- module Term (VarId, Term (..), freeVars) where import Shows import qualified Data.Set as Set import Data.Set (Set) type VarId = String data Term ...
null
https://raw.githubusercontent.com/simonmar/parconc-examples/840a3f508f9bb6e03961e1b90311a1edd945adba/parinfer/Term.hs
haskell
Adapted from the program "infer", believed to have been originally ELSE
authored by , and used in the nofib benchmark suite since at least the late 90s . module Term (VarId, Term (..), freeVars) where import Shows import qualified Data.Set as Set import Data.Set (Set) type VarId = String data Term = Int Int | Var VarId | Abs VarId Term ...
0b594c26976d804d226ca94ed0eef4a02729108ca909f921983fa53f115dbd5b
LPCIC/matita
http_getter.mli
* Copyright ( C ) 2003 - 2004 : * < > * for the HELM Team / * * This file is part of HELM , an Hypertextual , Electronic * Library of Mathematics , developed at the Computer Science * Department , University of Bologna , Italy . * * HELM is free software ; you can redistrib...
null
https://raw.githubusercontent.com/LPCIC/matita/794ed25e6e608b2136ce7fa2963bca4115c7e175/matita/components/getter/http_getter.mli
ocaml
* @raise Http_getter_types.Unresolvable_URI _ * @raise Http_getter_types.Key_not_found _ uri -> url * as resolve, but does not check if the resource exists * @raise Http_getter_types.Key_not_found uri -> url
* Copyright ( C ) 2003 - 2004 : * < > * for the HELM Team / * * This file is part of HELM , an Hypertextual , Electronic * Library of Mathematics , developed at the Computer Science * Department , University of Bologna , Italy . * * HELM is free software ; you can redistrib...
0e3c69bf4a950fa66db74a579c1eafab59885eff1386d253f3eee939de4a771e
fragnix/fragnix
GHC.Environment.hs
{-# LINE 1 "GHC.Environment.hs" #-} # LANGUAGE Trustworthy # # LANGUAGE NoImplicitPrelude # # LANGUAGE CPP # module GHC.Environment (getFullArgs) where import Foreign import Foreign.C import GHC.Base import GHC.Real ( fromIntegral ) import GHC.IO.Encoding import qualified GH...
null
https://raw.githubusercontent.com/fragnix/fragnix/b9969e9c6366e2917a782f3ac4e77cce0835448b/builtins/base/GHC.Environment.hs
haskell
# LINE 1 "GHC.Environment.hs" # | Computation 'getFullArgs' is the "raw" version of 'getArgs', similar command line arguments, starting with the program name, and including those normally eaten by the RTS (+RTS ... -RTS).
# LANGUAGE Trustworthy # # LANGUAGE NoImplicitPrelude # # LANGUAGE CPP # module GHC.Environment (getFullArgs) where import Foreign import Foreign.C import GHC.Base import GHC.Real ( fromIntegral ) import GHC.IO.Encoding import qualified GHC.Foreign as GHC to in other lan...
ade36900336491f3a003e5338ea39b4abab9e5f85ebc5d9dcb6df01e5617161f
SanderSpies/ocaml-gist
string_compat.ml
let capitalize_ascii = String.capitalize_ascii let lowercase_ascii = String.lowercase_ascii
null
https://raw.githubusercontent.com/SanderSpies/ocaml-gist/7dc229aebdf51310e8c7dae12df0cb55b5de5a32/ocaml_webworker/compat/4.04.2/string_compat.ml
ocaml
let capitalize_ascii = String.capitalize_ascii let lowercase_ascii = String.lowercase_ascii
ebf08b735ee0f7dc46c6e7a2573e2ad459f231bc063bfee13d66a79447e210d0
gwright83/Wheeler
Commutativity.hs
-- Commutativity.hs -- -- Definitions and operations for non-commuting objects. -- , 26 August 2011 -- module Math.Symbolic.Wheeler.Commutativity ( Commutable (..), Commutativity (..), RepSpace (..), repSpace, isCommuting, isNonCommuting ) where class Commutable a where commutativit...
null
https://raw.githubusercontent.com/gwright83/Wheeler/cfc8c66f019de92f087cc8157f2a9be22ae26cf7/src/Math/Symbolic/Wheeler/Commutativity.hs
haskell
Definitions and operations for non-commuting objects.
Commutativity.hs , 26 August 2011 module Math.Symbolic.Wheeler.Commutativity ( Commutable (..), Commutativity (..), RepSpace (..), repSpace, isCommuting, isNonCommuting ) where class Commutable a where commutativity :: a -> Commutativity data Commutativity = Commuting | NonCommutin...
5b551fc4004ebd5af6fc19964900ff1ddff1c7621961a8303645a894f87fca5e
OCamlPro/ez_api
test_loads_server.ml
open Test_loads_lib [@@@server 8080]
null
https://raw.githubusercontent.com/OCamlPro/ez_api/42ec84f952f3d2d93c4edd34103f98de923f3050/test/loads/test_loads_server.ml
ocaml
open Test_loads_lib [@@@server 8080]
52eeeb653dd8782ff7d1b2547a909d539613a422e04f87f7b4b1c81b4f602f75
mejgun/haskell-tdlib
ChatPhotoInfo.hs
{-# LANGUAGE OverloadedStrings #-} -- | module TD.Data.ChatPhotoInfo where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.File as File import qualified TD.Data.Minithumbnail as Minithumbnail import qualified Utils as U -- | data ChatPhotoInfo = -- | Contains basic in...
null
https://raw.githubusercontent.com/mejgun/haskell-tdlib/dc380d18d49eaadc386a81dc98af2ce00f8797c2/src/TD/Data/ChatPhotoInfo.hs
haskell
# LANGUAGE OverloadedStrings # | | | Contains basic information about the photo of a chat | True, if the photo is visible only for the current user | True, if the photo has animated variant | A big (640x640) chat photo variant in JPEG format. The file can be downloaded only before the photo is changed | A small ...
module TD.Data.ChatPhotoInfo where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.File as File import qualified TD.Data.Minithumbnail as Minithumbnail import qualified Utils as U ChatPhotoInfo is_personal :: Maybe Bool, has_animation :: Maybe Bool, | Chat...
d0aa3396579e3caab6a102d80b96932e0bcdb64ef25beab75684250ec5e957f5
Eduap-com/WordMat
f2cl-lib.lisp
macros.l - all the basic macros ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Copyright ( c ) University of Waikato ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; , New Zeland 1992 - 95 - all rights reserved ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;...
null
https://raw.githubusercontent.com/Eduap-com/WordMat/83c9336770067f54431cc42c7147dc6ed640a339/Windows/ExternalPrograms/maxima-5.45.1/share/maxima/5.45.1/src/numerical/f2cl-lib.lisp
lisp
; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ---------------------------------------------------------------------------- ------------------------------------------------------------------------------ match the types given in f2cl1.l so keep it in sync! Decide what yo...
macros.l - all the basic macros (in-package :f2cl-lib) (defparameter *f2cl-macros-version* "$Id: macros.l,v 3fe93de3be82 2012/05/06 02:17:14 toy $") (eval-when #+gcl (compile load eval) #-gcl (:compile-toplevel :load-toplevel :execute) (proclaim '(special *verbose*))) (defvar *check-array-bounds* nil ...
738301367cee2fe2cf61b3f3e8a706ee0cbd078f47c9cdb7329e14a76872613d
seagreen/hjsonschema
Utils.hs
module JSONSchema.Validator.Utils where import Import import Control.Monad (fail) import qualified Data.HashMap.Strict as HM import qualified Data.List.NonEmpty as NE import Data.Scientific (Scientific, fromFloatDigits) import Data.Set (Set) import qualified Data.Set as S impor...
null
https://raw.githubusercontent.com/seagreen/hjsonschema/fde6e676f79f3f3320a558f20492ad816a2543a7/src/JSONSchema/Validator/Utils.hs
haskell
------------------------------------------------ * QuickCheck ------------------------------------------------ ------------------------------------------------ ------------------------------------------------ use our 'allUnique' function instead of O(n^2) nub, so it's probably worth it.
module JSONSchema.Validator.Utils where import Import import Control.Monad (fail) import qualified Data.HashMap.Strict as HM import qualified Data.List.NonEmpty as NE import Data.Scientific (Scientific, fromFloatDigits) import Data.Set (Set) import qualified Data.Set as S impor...
a0b367fb62a005c3a043a9ebdc50a21e4ef1abe365b58be7466c2a13c1acf47f
jstepien/mutant
internals_test.clj
(ns mutant.internals-test (:require [clojure.test :refer :all] [mutant.internals :as mi] [rewrite-clj.zip :as z] clojure.tools.namespace.dependency)) (deftest t-run-ns (let [forms '[(defn not-much? [x] (or (= 0 x) (= 1 x)))] zippers (for [form forms] (z...
null
https://raw.githubusercontent.com/jstepien/mutant/fb25d27bc8d53d875cf18dad43acf7eb5fc57b3b/test/mutant/internals_test.clj
clojure
(prn (cljc-five))
(ns mutant.internals-test (:require [clojure.test :refer :all] [mutant.internals :as mi] [rewrite-clj.zip :as z] clojure.tools.namespace.dependency)) (deftest t-run-ns (let [forms '[(defn not-much? [x] (or (= 0 x) (= 1 x)))] zippers (for [form forms] (z...
544922abefc43f3dad821352b1513549995550de097559f73007ebe7b6396527
rcook/hgeos
Setup.hs
| Module : Main Description : Setup script for hgeos build Copyright : ( C ) , 2016 Licence : MIT Maintainer : Stability : experimental Portability : portable Module : Main Description : Setup script for hgeos build Copyright : (C) Richard Cook, 2016 Licence : MIT Mainta...
null
https://raw.githubusercontent.com/rcook/hgeos/f43275251f43fc12ebcba1b3c8bcbda2aea56b00/Setup.hs
haskell
| Module : Main Description : Setup script for hgeos build Copyright : ( C ) , 2016 Licence : MIT Maintainer : Stability : experimental Portability : portable Module : Main Description : Setup script for hgeos build Copyright : (C) Richard Cook, 2016 Licence : MIT Mainta...
ac192d7a3bf2efc0d6100d71243c1ef42c4266aad38e31e6681585d7512fc1c9
CIFASIS/QuickFuzz
EPS.hs
# LANGUAGE TemplateHaskell # # LANGUAGE FlexibleInstances # # LANGUAGE IncoherentInstances # # LANGUAGE DeriveGeneric # module Test.QuickFuzz.Gen.Document.EPS where import Data.Default import Test.QuickCheck import qualified Data.ByteString.Lazy.Char8 as L8 import Graphics.EasyRender import Graphics.EasyRender.Inte...
null
https://raw.githubusercontent.com/CIFASIS/QuickFuzz/a1c69f028b0960c002cb83e8145f039ecc0e0a23/src/Test/QuickFuzz/Gen/Document/EPS.hs
haskell
# LANGUAGE TemplateHaskell # # LANGUAGE FlexibleInstances # # LANGUAGE IncoherentInstances # # LANGUAGE DeriveGeneric # module Test.QuickFuzz.Gen.Document.EPS where import Data.Default import Test.QuickCheck import qualified Data.ByteString.Lazy.Char8 as L8 import Graphics.EasyRender import Graphics.EasyRender.Inte...
d715477c9071ad813a7f369c509db1c5d9d50d79f90a8f463d7754a760be42c9
xavierleroy/camlidl
parse.ml
(***********************************************************************) (* *) (* CamlIDL *) (* *) , projet ...
null
https://raw.githubusercontent.com/xavierleroy/camlidl/b192760875fe6e97b13004bd289720618e12ee22/compiler/parse.ml
ocaml
********************************************************************* CamlIDL ...
, projet Cristal , INRIA Rocquencourt Copyright 1999 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed $ I d : parse.ml , v 1.7 2002 - 04 - 19 14:42:20 xleroy Exp $ open Printf open Utils open Linenum let read...
e9066b07eacfae64a0b32861d74760b5f037c15c1f65b23ddd2911c26a79f954
libguestfs/virt-v2v
OVA.mli
virt - v2v * Copyright ( C ) 2009 - 2020 Red Hat Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation ; either version 2 of the License , or * ( at your option ) any later ...
null
https://raw.githubusercontent.com/libguestfs/virt-v2v/cff4514927b3e12a30619377149789c5bd2daebb/input/OVA.mli
ocaml
* Helper functions for dealing with the OVA pseudo-format. * A local filename. * Tar file containing file. * A manifest record: (file reference, checksum of file). * Find and parse all manifest ([*.mf]) files in the OVA. Parse out the filenames and checksums from these files and return the full manifest as ...
virt - v2v * Copyright ( C ) 2009 - 2020 Red Hat Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation ; either version 2 of the License , or * ( at your option ) any later ...
37d16ad25b7ac9f8de09cdf3462436c0f41cfe7243d2cae42c9acfbd5c15b4ca
soegaard/remacs
thread-safe-interval-maps.rkt
#lang racket/base (provide (all-defined-out)) ;;; ;;; THREAD-SAFE INTERVAL MAPS ;;; (require racket/contract/base racket/dict racket/list racket/match data/interval-map) (struct safe-interval-map (sema im)) (define (save-interval-map-wait interval-map) (define sema (safe-interva...
null
https://raw.githubusercontent.com/soegaard/remacs/8681b3acfe93335e2bc2133c6f144af9e0a1289e/thread-safe-interval-maps.rkt
racket
THREAD-SAFE INTERVAL MAPS
#lang racket/base (provide (all-defined-out)) (require racket/contract/base racket/dict racket/list racket/match data/interval-map) (struct safe-interval-map (sema im)) (define (save-interval-map-wait interval-map) (define sema (safe-interval-map-sema interval-map)) (semaphore...
99f85895c38b5f55b6b994466e11c24f06bb3f94c6b105c7ecbe73aa845b7e63
kelamg/HtDP2e-workthrough
ex344.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-lambda-reader.ss" "lang")((modname ex344) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-...
null
https://raw.githubusercontent.com/kelamg/HtDP2e-workthrough/ec05818d8b667a3c119bea8d1d22e31e72e0a958/HtDP/Intertwined-Data/ex344.rkt
racket
about the language level of this file in a form that our tools can easily process. A Path is [List-of String]. interpretation directions into a directory tree A File is a structure: (make-file String N String) A Dir is a structure: (make-dir String [List-of Dir] [List-of File]) Dir -> [List-of Path] produc...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex344) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (require htdp/dir) (require 2htdp/abstraction) (requi...
557a59ce3ace417c722ee18762306b2dc7c0c2cff9560d58f2b4fb08eb672537
fulcro-legacy/semantic-ui-wrapper
ui_rail.cljs
(ns fulcrologic.semantic-ui.elements.rail.ui-rail (:require [fulcrologic.semantic-ui.factory-helpers :as h] ["semantic-ui-react/dist/commonjs/elements/Rail/Rail" :default Rail])) (def ui-rail "A rail is used to show accompanying content outside the boundaries of the main view of a site. Props: - a...
null
https://raw.githubusercontent.com/fulcro-legacy/semantic-ui-wrapper/b0473480ddfff18496df086bf506099ac897f18f/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/rail/ui_rail.cljs
clojure
(ns fulcrologic.semantic-ui.elements.rail.ui-rail (:require [fulcrologic.semantic-ui.factory-helpers :as h] ["semantic-ui-react/dist/commonjs/elements/Rail/Rail" :default Rail])) (def ui-rail "A rail is used to show accompanying content outside the boundaries of the main view of a site. Props: - a...
1d49064f9bd78a53f81acfcd10c74c7a3d0cc93d0a697aee7f5b00d4da7a6a91
Sheinxy/Advent2022
day_01.hs
module Main where import Data.List import Data.List.Split parseInput :: String -> [Int] parseInput = map (sum . map read . lines) . splitOn "\n\n" main = do input <- reverse . sort . parseInput <$> readFile "input" print $ head input print $ sum $ take 3 input
null
https://raw.githubusercontent.com/Sheinxy/Advent2022/2533740e403d55053f02d53bf19d35513d908ed8/Day_01/day_01.hs
haskell
module Main where import Data.List import Data.List.Split parseInput :: String -> [Int] parseInput = map (sum . map read . lines) . splitOn "\n\n" main = do input <- reverse . sort . parseInput <$> readFile "input" print $ head input print $ sum $ take 3 input
4be31894116e5865c1f499e740bd23c5d93a3be2c3b43aec85606d55a36ffb64
haskell-distributed/network-transport-tcp
JustPingOneRecv.hs
# LANGUAGE CPP , BangPatterns # module Main where import Control.Monad import Data.Int import Network.Socket ( AddrInfoFlag (AI_PASSIVE), HostName, ServiceName, Socket , SocketType (Stream), SocketOption (ReuseAddr) , accept, addrAddress, addrFlags, addrFamily, bindSocket, defaultProtocol , defaultHints , ...
null
https://raw.githubusercontent.com/haskell-distributed/network-transport-tcp/2cb34ba7102cfa68ec86b562a96b07c1a64016f3/benchmarks/JustPingOneRecv.hs
haskell
Start the server Start the client Wait for the client to finish putStrLn $ "client received " ++ unpack bs putStrLn $ "server received " ++ unpack bs | Wrapper around NBS.recv (for profiling) Ignored | Wrapper around NBS.send (for profiling) | Encode length (manual for now) | Decode length (manual for now)
# LANGUAGE CPP , BangPatterns # module Main where import Control.Monad import Data.Int import Network.Socket ( AddrInfoFlag (AI_PASSIVE), HostName, ServiceName, Socket , SocketType (Stream), SocketOption (ReuseAddr) , accept, addrAddress, addrFlags, addrFamily, bindSocket, defaultProtocol , defaultHints , ...
978848fed925e85490b07677aeb459a4ef8241e25d4dc094803eb23d18f982a2
den1k/vimsical
handlers.cljc
(ns vimsical.frontend.vcr.handlers (:require [vimsical.subgraph :as sg] [re-frame.core :as re-frame] [vimsical.frontend.timeline.handlers :as timeline.handlers] [vimsical.frontend.util.re-frame :as util.re-frame] [vimsical.frontend.vcs.db :as vcs.db] [vimsical.frontend.vcs.subs :as vcs.subs] [vim...
null
https://raw.githubusercontent.com/den1k/vimsical/1e4a1f1297849b1121baf24bdb7a0c6ba3558954/src/frontend/vimsical/frontend/vcr/handlers.cljc
clojure
Start from beginning: - set the scheduler at 0 - let ::step figure out the vcs update Reset and "recurse" so we'll start from beginning next time Set time and start
(ns vimsical.frontend.vcr.handlers (:require [vimsical.subgraph :as sg] [re-frame.core :as re-frame] [vimsical.frontend.timeline.handlers :as timeline.handlers] [vimsical.frontend.util.re-frame :as util.re-frame] [vimsical.frontend.vcs.db :as vcs.db] [vimsical.frontend.vcs.subs :as vcs.subs] [vim...
b5c76b69d370db379c6ae09e7d998d5ac16376de05cccff1df2034f147cfcdd9
slipstream/SlipStreamServer
user_params_template_exec.cljc
(ns com.sixsq.slipstream.ssclj.resources.spec.user-params-template-exec (:require [clojure.spec.alpha :as s] [com.sixsq.slipstream.ssclj.resources.spec.core :as cimi-core] [com.sixsq.slipstream.ssclj.resources.spec.user-params-template :as ps] [com.sixsq.slipstream.ssclj.util.spec :as su])) (s/def :c...
null
https://raw.githubusercontent.com/slipstream/SlipStreamServer/3ee5c516877699746c61c48fc72779fe3d4e4652/cimi/src/com/sixsq/slipstream/ssclj/resources/spec/user_params_template_exec.cljc
clojure
Defines the contents of the auto template used in a create resource. NOTE: The name must match the key defined by the resource, :userTemplate here.
(ns com.sixsq.slipstream.ssclj.resources.spec.user-params-template-exec (:require [clojure.spec.alpha :as s] [com.sixsq.slipstream.ssclj.resources.spec.core :as cimi-core] [com.sixsq.slipstream.ssclj.resources.spec.user-params-template :as ps] [com.sixsq.slipstream.ssclj.util.spec :as su])) (s/def :c...
6a2e3502e53273f54436f03949808ed8adc8af5a64e401820e26f02e94eaa436
damballa/parkour
adapter_test.clj
(ns parkour.mapreduce.adapter-test (:require [clojure.test :refer :all] [clojure.string :as str] [clojure.core.reducers :as r] [abracad.avro :as avro] [parkour (conf :as conf) (fs :as fs) (wrapper :as w) , (mapreduce :as mr) (graph :as pg)] ...
null
https://raw.githubusercontent.com/damballa/parkour/2b3c5e1987e18b4c4284dfd4fcdaba267a4d7fbc/test/parkour/mapreduce/adapter_test.clj
clojure
(ns parkour.mapreduce.adapter-test (:require [clojure.test :refer :all] [clojure.string :as str] [clojure.core.reducers :as r] [abracad.avro :as avro] [parkour (conf :as conf) (fs :as fs) (wrapper :as w) , (mapreduce :as mr) (graph :as pg)] ...
1ac46520631a6e9fcefd3fa3ccc617df3eb11465dbcb7280e2f82afaf422fab6
tarides/dune-release
lint.mli
--------------------------------------------------------------------------- Copyright ( c ) 2016 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
null
https://raw.githubusercontent.com/tarides/dune-release/6bfed0f299b82c0931c78d4e216fd0efedff0673/bin/lint.mli
ocaml
* The [lint] command.
--------------------------------------------------------------------------- Copyright ( c ) 2016 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
10c8bac2d79e50d395257f64940f136e5d2ff0a9ed40700a36ce9e2c7d86b6d8
HaskellEmbedded/data-stm32
Pins.hs
module Ivory.BSP.STM32.Peripheral.I2C.Pins (I2CPins(..)) where import Ivory.BSP.STM32.Peripheral.GPIO data I2CPins = I2CPins { i2cpins_sda :: GPIOPin , i2cpins_scl :: GPIOPin }
null
https://raw.githubusercontent.com/HaskellEmbedded/data-stm32/204aff53eaae422d30516039719a6ec7522a6ab7/templates/STM32/Peripheral/I2C/Pins.hs
haskell
module Ivory.BSP.STM32.Peripheral.I2C.Pins (I2CPins(..)) where import Ivory.BSP.STM32.Peripheral.GPIO data I2CPins = I2CPins { i2cpins_sda :: GPIOPin , i2cpins_scl :: GPIOPin }
c4df615a497151adfa3ccdab34ab32ae5ebe908f81841dfebab8ac31d5136076
aeternity/aeternity
aec_coinbase.erl
%%%------------------------------------------------------------------- ( C ) 2018 , Aeternity Anstalt %%% @doc Module generated by Initial supply of tokens : 276450333499323152460728285 %%% @end %%%------------------------------------------------------------------- -module(aec_coinbase). -export([coinb...
null
https://raw.githubusercontent.com/aeternity/aeternity/b7ce6ae15dab7fa22287c2da3d4405c29bb4edd7/apps/aecore/src/aec_coinbase.erl
erlang
------------------------------------------------------------------- @doc @end -------------------------------------------------------------------
( C ) 2018 , Aeternity Anstalt Module generated by Initial supply of tokens : 276450333499323152460728285 -module(aec_coinbase). -export([coinbase_at_height/1]). -define(MULTIPLIER, 1000000000000000000). -spec coinbase_at_height(non_neg_integer()) -> non_neg_integer(). coinbase_at_height(X) when not...
2a9c79b6606ce11274900f860433dd84b5a7822fb3146520bacef7e280dd167c
graninas/The-Amoeba-World
WorldParser.hs
# LANGUAGE MultiWayIf # module Amoeba.GameLogic.Language.Parsing.WorldParser where import Amoeba.GameLogic.Language.Parsing.Common import Amoeba.GameLogic.Language.RawToken import qualified Amoeba.GameLogic.Language.Scheme as S import Amoeba.Middleware.Parsing.Facade as P world :: GenParser Char st RawToken world ...
null
https://raw.githubusercontent.com/graninas/The-Amoeba-World/a147cd4dabf860bec8a6ae1c45c02b030916ddf4/src/Amoeba/GameLogic/Language/Parsing/WorldParser.hs
haskell
# LANGUAGE MultiWayIf # module Amoeba.GameLogic.Language.Parsing.WorldParser where import Amoeba.GameLogic.Language.Parsing.Common import Amoeba.GameLogic.Language.RawToken import qualified Amoeba.GameLogic.Language.Scheme as S import Amoeba.Middleware.Parsing.Facade as P world :: GenParser Char st RawToken world ...
255e5679180c350d0699b85d4c071d69d85f15ccedbdb1d159b3be51827cb0b0
YoshikuniJujo/markdown2svg
PNG.hs
# LANGUAGE QuasiQuotes , TypeFamilies # module Image.PNG (isPNG, pngSize) where import Data.Maybe import File.Binary.PNG import File.Binary import File.Binary.Instances import File.Binary.Instances.BigEndian isPNG :: String -> Bool isPNG img = isJust (fromBinary () img :: Maybe (PNGHeader, String)) pngSize :: Strin...
null
https://raw.githubusercontent.com/YoshikuniJujo/markdown2svg/a4a53d2f669c124684e8beee5c1c271d9699f952/src/Image/PNG.hs
haskell
# LANGUAGE QuasiQuotes , TypeFamilies # module Image.PNG (isPNG, pngSize) where import Data.Maybe import File.Binary.PNG import File.Binary import File.Binary.Instances import File.Binary.Instances.BigEndian isPNG :: String -> Bool isPNG img = isJust (fromBinary () img :: Maybe (PNGHeader, String)) pngSize :: Strin...
90ea3e14eb442ef8fe71c1c26e06b6af0e72a4658caa703aa2fa0f6fc834d4e3
chethan/SICP
Pair.hs
make_pair x y = let pick 1 = x pick 2 = y in pick car pair = pair 1 cdr pair = pair 2
null
https://raw.githubusercontent.com/chethan/SICP/ff83adc7e3e89e299c772080d32103f72ecf5dbf/Chapter2/Pair.hs
haskell
make_pair x y = let pick 1 = x pick 2 = y in pick car pair = pair 1 cdr pair = pair 2
3323b4016911c4b3463d9de372414eafa6e78be1e20058afa3601a2795346d05
nasa/PRECiSA
GenerateACSLTest.hs
module FramaC.GenerateACSLTest where import qualified AbsPVSLang as PVS import Common.TypesUtils import FramaC.ACSLTypes import FramaC.ACSLlang import FramaC.GenerateACSL import qualified FramaC.Types as C import Operators import PPExt (prettyDoc, render) import qualified PVSTypes as PVS import Test.Tasty import Test....
null
https://raw.githubusercontent.com/nasa/PRECiSA/aae88643a392b520a7e650d6f72c8dfcdc14cf99/PRECiSA/tests/FramaC/GenerateACSLTest.hs
haskell
module FramaC.GenerateACSLTest where import qualified AbsPVSLang as PVS import Common.TypesUtils import FramaC.ACSLTypes import FramaC.ACSLlang import FramaC.GenerateACSL import qualified FramaC.Types as C import Operators import PPExt (prettyDoc, render) import qualified PVSTypes as PVS import Test.Tasty import Test....
47568ca6d8881b81f4e861fb0ba93c0551b41e5afdb6d6cd99540f7ffce539bd
ghc/ghc
T22383.hs
{-# LANGUAGE GADTs #-} # LANGUAGE LambdaCase , ScopedTypeVariables # module T22383 where import Data.Kind (Type) import Data.Proxy (Proxy(Proxy)) -- | @IsType k@ witnesses that @k ~ Type at . data IsType k where IsType :: IsType Type --------------------- Using a GADT --------------------- data FromType wher...
null
https://raw.githubusercontent.com/ghc/ghc/354aa47d313113855aff9e5c5476fcb56f80e3bf/testsuite/tests/typecheck/should_compile/T22383.hs
haskell
# LANGUAGE GADTs # | @IsType k@ witnesses that @k ~ Type at . ------------------- ------------------- | @FunRep (f b)@ witnesses that @b :: Type at . Could not deduce: k ~ * Could not deduce: k ~ * Works fine ------------------- ------------------- Could not deduce: k ~ * Works fine Works fine
# LANGUAGE LambdaCase , ScopedTypeVariables # module T22383 where import Data.Kind (Type) import Data.Proxy (Proxy(Proxy)) data IsType k where IsType :: IsType Type Using a GADT data FromType where FromType :: forall (f :: Type -> Type). FromType data FunRep a where AppK :: forall (k :: Type) (f :: ...
7b47a11df731f8f2a2b6d0d7974fbad13d8c63b6bea8674ed965ca62a3bc8e90
ekmett/succinct
popCountBench.hs
module Main (main) where import Criterion.Main import Data.Bits import qualified Data.Vector.Primitive as P import Data.Word import Succinct.Internal.PopCount sampleVec :: Int -> P.Vector Word64 sampleVec bytes = P.generate (bytes `div` 8) ((1758971237*) . fromIntegral) popCountNaive :: P.Vector Word64 -> Int popCo...
null
https://raw.githubusercontent.com/ekmett/succinct/7e884138c2e943f5ca08f56b58b409d08b870ab9/benchmarks/popCountBench.hs
haskell
module Main (main) where import Criterion.Main import Data.Bits import qualified Data.Vector.Primitive as P import Data.Word import Succinct.Internal.PopCount sampleVec :: Int -> P.Vector Word64 sampleVec bytes = P.generate (bytes `div` 8) ((1758971237*) . fromIntegral) popCountNaive :: P.Vector Word64 -> Int popCo...
ffba6d5c2805e7887a6d127dfa5d3b39a897a6923f5870f0cb0e592b9334757d
xxyzz/SICP
Exercise_2_42.rkt
#lang racket/base (require racket/list) ;; last, drop-right (define (accumulate op initial sequence) (if (null? sequence) initial (op (car sequence) (accumulate op initial (cdr sequence))))) (define (enumerate-interval low high) (if (> low high) null (cons low (enumerate-interval...
null
https://raw.githubusercontent.com/xxyzz/SICP/e26aea1c58fd896297dbf5406f7fcd32bb4f8f78/2_Building_Abstractions_with_Data/2.2_Hierarchical_Data_and_the_Closure_Property/Exercise_2_42.rkt
racket
last, drop-right first row not in same column not in same diagonal '((1 5 8 6 3 7 2 4) (1 6 8 3 7 4 2 5) (1 7 4 6 8 2 5 3) (1 7 5 8 2 4 6 3) (2 4 6 8 3 1 7 5) (2 5 7 1 3 8 6 4) (2 5 7 4 1 8 6 3) (2 6 8 3 1 4 7 5) (2 7 3 6 8 5 1 4) (2 7 5 8 1 4 6 3) (2 8 6 1 3 5 7 4) (3 5 2 8 1 7 4 ...
#lang racket/base (define (accumulate op initial sequence) (if (null? sequence) initial (op (car sequence) (accumulate op initial (cdr sequence))))) (define (enumerate-interval low high) (if (> low high) null (cons low (enumerate-interval (+ low 1) high)))) (define (flatmap proc...
5b57e8c6104fa83429daece00816e68a6b659708109444cfc3a645ae01e839ef
keigoi/ocaml-mpst
monitor.mli
(** Monitor *) type 'a t type 'b wait = WaitMore | Return of 'b val create : 'a -> 'a t val signal : 'a t -> unit val wait : 'a t -> ('a -> 'b wait) -> 'b val lock : 'a t -> ('a -> 'b) -> 'b val try_lock : 'a t -> ('a -> 'b) -> 'b -> 'b val get : 'a t -> 'a
null
https://raw.githubusercontent.com/keigoi/ocaml-mpst/aa6c5fa2b08c4596f41f70dee8601da6a9c80b8f/lib/bare/monitor.mli
ocaml
* Monitor
type 'a t type 'b wait = WaitMore | Return of 'b val create : 'a -> 'a t val signal : 'a t -> unit val wait : 'a t -> ('a -> 'b wait) -> 'b val lock : 'a t -> ('a -> 'b) -> 'b val try_lock : 'a t -> ('a -> 'b) -> 'b -> 'b val get : 'a t -> 'a
7ebadfe4e4726c6a41448907367526c15411693e0bbcaa5438c27ead912e3a96
hidaris/thinking-dumps
top.rkt
(module top (lib "eopl.ss" "eopl") ;; top level module. Loads all required pieces. ;; Run the test suite with (run-all). (require "drscheme-init.rkt") (require "data-structures.rkt") ; for expval constructors (require "lang.rkt") ; for scan&parse (require "interp.rkt") ; for value-...
null
https://raw.githubusercontent.com/hidaris/thinking-dumps/3fceaf9e6195ab99c8315749814a7377ef8baf86/eopl-solutions/chap4/4-13/store-passing/top.rkt
racket
top level module. Loads all required pieces. Run the test suite with (run-all). for expval constructors for scan&parse for value-of-program for test-list interface for book test ;;; interface to test harness ;;;;;;;;;;;;;;;; run-all : () -> Unspecified runs all the tests in test-list, comparing the results w...
(module top (lib "eopl.ss" "eopl") (require "drscheme-init.rkt") (provide run run-all) (provide test-all) (define (test-all) (run-all)) run : String - > ExpVal (define run (lambda (string) (value-of-program (scan&parse string)))) (define run-all (lambda () (run-tests! run...
01e941378a0026ad59e7a19b2b546bacce9baf6d3f49f3ffc90f9d1b5bdd519a
merlin-lang/merlin
Merlin_Dictionaries.ml
open Frenetic_Network open Merlin_Util open Merlin_Types module VertexHash = Frenetic_Network.Net.Topology.VertexHash module CodeHash = . Make(struct (* type t = code *) (* let hash = Hashtbl.hash *) (* let equal = (=) *) (* end) *) module SymbolSet = Set.Make(struct type t = symbol let compare = Pervas...
null
https://raw.githubusercontent.com/merlin-lang/merlin/35a88bce024a8b8be858c796f1cd718e4a660529/lib/Merlin_Dictionaries.ml
ocaml
type t = code let hash = Hashtbl.hash let equal = (=) end) TODO(jnf): make code in Merlin_Topology use these definitions
open Frenetic_Network open Merlin_Util open Merlin_Types module VertexHash = Frenetic_Network.Net.Topology.VertexHash module CodeHash = . Make(struct module SymbolSet = Set.Make(struct type t = symbol let compare = Pervasives.compare end) module SymbolHash = Hashtbl.Make(struct type t = symbol let hash =...
cf768d010dc53028471c0ae6eb53e3a78486df95564e0aa85cbee36365693674
haskus/packages
Posit.hs
# LANGUAGE DataKinds # {-# LANGUAGE GADTs #-} # LANGUAGE TypeApplications # # LANGUAGE ScopedTypeVariables # {-# LANGUAGE RankNTypes #-} # LANGUAGE FlexibleContexts # # LANGUAGE KindSignatures # # LANGUAGE UndecidableInstances # {-# LANGUAGE MultiWayIf #-} # LANGUAGE AllowAmbiguousTypes # | Posit ( type III unum ) m...
null
https://raw.githubusercontent.com/haskus/packages/40ea6101cea84e2c1466bc55cdb22bed92f642a2/haskus-binary/src/lib/Haskus/Number/Posit.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes # # LANGUAGE MultiWayIf # | Show posit | Kinded Posit non-infinite/non-zero Posit values | Get the kind of the posit at the type level | Check if a posit is infinity | Check if a posit is positive | Check if a posit is negative | Posit absolute value | Decode posit fie...
# LANGUAGE DataKinds # # LANGUAGE TypeApplications # # LANGUAGE ScopedTypeVariables # # LANGUAGE FlexibleContexts # # LANGUAGE KindSignatures # # LANGUAGE UndecidableInstances # # LANGUAGE AllowAmbiguousTypes # | Posit ( type III unum ) module Haskus.Number.Posit ( Posit (..) , PositKind (..) , PositK (..) ...
f0800d6e7d90212061cd11683c9baa46a0fd6dc08eebb4ea984e50eb57f995ff
yapsterapp/er-cassandra
unsafe_created_at_callback.cljc
(ns er-cassandra.model.callbacks.unsafe-created-at-callback (:require #?@(:clj [[clj-time.core :as t] [clj-time.coerce :as t.coerce]] :cljs [[cljs-time.core :as t] [cljs-time.coerce :as t.coerce]]) #?(:clj [clj-uuid :as uuid]))) (defn ^:deprecated unsafe-created-at-callback ...
null
https://raw.githubusercontent.com/yapsterapp/er-cassandra/1d059f47bdf8654c7a4dd6f0759f1a114fdeba81/src/er_cassandra/model/callbacks/unsafe_created_at_callback.cljc
clojure
(ns er-cassandra.model.callbacks.unsafe-created-at-callback (:require #?@(:clj [[clj-time.core :as t] [clj-time.coerce :as t.coerce]] :cljs [[cljs-time.core :as t] [cljs-time.coerce :as t.coerce]]) #?(:clj [clj-uuid :as uuid]))) (defn ^:deprecated unsafe-created-at-callback ...
dd4061b3489be89799fe719b04a94c0a9e7e5ccbc3769b590b669c1810a51a4c
cse-bristol/110-thermos-ui
core.clj
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-backend.spreadsheet.core "Main entrypoint for making spreadsheets from documents and vice-versa" (:require [thermos-backend....
null
https://raw.githubusercontent.com/cse-bristol/110-thermos-ui/e13b96329f3c95e5a10bae431e8ae9bccdb475f4/src/thermos_backend/spreadsheet/core.clj
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-backend.spreadsheet.core "Main entrypoint for making spreadsheets from documents and vice-versa" (:require [thermos-backend....
05c33a778e2dad2073943829d4010c1eece0098c1ccc824d8677996c315b8a98
ocaml-sf/learn-ocaml-corpus
template.ml
let create size = "Replace this string with your implementation." ;; let push buf elt = "Replace this string with your implementation." ;; let append buf arr = "Replace this string with your implementation." ;; let pop buf = "Replace this string with your implementation." ;;
null
https://raw.githubusercontent.com/ocaml-sf/learn-ocaml-corpus/7dcf4d72b49863a3e37e41b3c3097aa4c6101a69/exercises/mooc/week5/seq4/ex2/template.ml
ocaml
let create size = "Replace this string with your implementation." ;; let push buf elt = "Replace this string with your implementation." ;; let append buf arr = "Replace this string with your implementation." ;; let pop buf = "Replace this string with your implementation." ;;
2ae2ca512099c66638dcef24010733ed19df26b3bc770e914305632a2b7b2060
gedge-platform/gedge-platform
rabbit_trust_store_sup.erl
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %% Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved . %% -module(rabbit_trust_store_sup). -behaviour(super...
null
https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/rabbitmq_trust_store/src/rabbit_trust_store_sup.erl
erlang
... ...
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved . -module(rabbit_trust_store_sup). -behaviour(supervisor)...
93846848138a90937bde9e7131508ad51c313d11de95b5371150dc67e89e3dea
scicloj/clj-djl
dataset_test.clj
(ns clj-djl.training.dataset-test (:require [clojure.test :refer :all] [clj-djl.training.loss :as l] [clj-djl.training :as t] [clj-djl.training.initializer :as i] [clj-djl.model :as m] [clj-djl.device :as d] [clj-djl.ndarray :as nd] [...
null
https://raw.githubusercontent.com/scicloj/clj-djl/86375305cfc9935c835d64490a3012f110a3692a/test/clj_djl/training/dataset_test.clj
clojure
(ns clj-djl.training.dataset-test (:require [clojure.test :refer :all] [clj-djl.training.loss :as l] [clj-djl.training :as t] [clj-djl.training.initializer :as i] [clj-djl.model :as m] [clj-djl.device :as d] [clj-djl.ndarray :as nd] [...
8a04f23278ba66d4b3cb7e5ee3d35bb98298a066409e11a272cc65e5ee222393
oliyh/pedestal-api
user.clj
(ns user (:require [clojure.tools.namespace.repl :as repl])) (def refresh repl/refresh) (def clear repl/clear)
null
https://raw.githubusercontent.com/oliyh/pedestal-api/1a90c29e97c3cccfe59a1f9d114765c104f70c13/dev/user.clj
clojure
(ns user (:require [clojure.tools.namespace.repl :as repl])) (def refresh repl/refresh) (def clear repl/clear)
b678f62202957278038fff82da48af8a08d78166185a7a04e9503251802bf461
tari3x/csec-modex
piparser.ml
type token = | CHOICE | STAR | COMMA | LPAREN | RPAREN | LBRACKET | RBRACKET | BAR | SEMI | NEW | OUT | IN | IDENT of (Piptree.ident) | INT of (int) | REPL | IF | THEN | ELSE | EQUAL | FUN | EQUATION | REDUCTION | PREDICATE | PROCESS | SLASH | DOT | EOF | LET | ...
null
https://raw.githubusercontent.com/tari3x/csec-modex/5ab2aa18ef308b4d18ac479e5ab14476328a6a50/deps/proverif1.84/src/piparser.ml
ocaml
CHOICE STAR COMMA LPAREN RPAREN LBRACKET RBRACKET SEMI NEW OUT IN REPL IF THEN ELSE FUN EQUATION REDUCTION PREDICATE PROCESS SLASH LET QUERY EVENT NOT FREE RED WEDGE COLON PHASE WEAKSECRET DATA PRIVATE IDENT INT Approximating the else clause with a ...
type token = | CHOICE | STAR | COMMA | LPAREN | RPAREN | LBRACKET | RBRACKET | BAR | SEMI | NEW | OUT | IN | IDENT of (Piptree.ident) | INT of (int) | REPL | IF | THEN | ELSE | EQUAL | FUN | EQUATION | REDUCTION | PREDICATE | PROCESS | SLASH | DOT | EOF | LET | ...
b671bca50232514fbe8a7564e7a79f478bbb909f18456946474d1bfbe215abb6
dm3/sicp
e2_1.clj
# # Exercise 2.1 (ns e2-1 (:use [clojure.contrib.test-is :only (deftest is run-tests)]) (:use [clojure.contrib.generic.math-functions :only (abs)])) ;; A rational number is just a pair (defn make-rat [n d] (list n d)) With numerator being the first element (defn numer [rat] (first rat)) And the denominat...
null
https://raw.githubusercontent.com/dm3/sicp/14f0361cbd0cce817d93e38dcc895f3e845515b1/src/main/clojure/e2_1.clj
clojure
A rational number is just a pair this test case is asserting incorrect results, the version of `mul` can't deal with negative numbers We'll define our own `make-rat` which will properly deal with negative numbers. Using the modified version of `make-rat` automatically gives us correct results because the only p...
# # Exercise 2.1 (ns e2-1 (:use [clojure.contrib.test-is :only (deftest is run-tests)]) (:use [clojure.contrib.generic.math-functions :only (abs)])) (defn make-rat [n d] (list n d)) With numerator being the first element (defn numer [rat] (first rat)) And the denominator being the ` rest ` ( the second e...
8637292cc1c38491aff78d807fe4f179eee3cded2cd379a319cdbef2e6f38172
kit-clj/demo-guestbook
layout.clj
(ns londonclj.guestbook.web.pages.layout (:require [clojure.java.io] [selmer.parser :as parser] [ring.util.http-response :refer [content-type ok]] [ring.util.anti-forgery :refer [anti-forgery-field]] [ring.middleware.anti-forgery :refer [*anti-forgery-token*]] [ring.util.response])) (def selmer-opt...
null
https://raw.githubusercontent.com/kit-clj/demo-guestbook/61aab45a40f79751f0e80471ac2d8f5466b696df/src/clj/londonclj/guestbook/web/pages/layout.clj
clojure
(ns londonclj.guestbook.web.pages.layout (:require [clojure.java.io] [selmer.parser :as parser] [ring.util.http-response :refer [content-type ok]] [ring.util.anti-forgery :refer [anti-forgery-field]] [ring.middleware.anti-forgery :refer [*anti-forgery-token*]] [ring.util.response])) (def selmer-opt...
e5122993e91ee607e2c027a2145b4e0650a17ad5480dca602d17c3056aeaaad1
ocaml-ppx/ocamlformat
hash_bang.ml
#!/usr/bin/env ocaml let _ = sprintf "[%s]" s
null
https://raw.githubusercontent.com/ocaml-ppx/ocamlformat/461e0c499a1aac6ca11c736a96fbdb4d9a622e20/test/passing/tests/hash_bang.ml
ocaml
#!/usr/bin/env ocaml let _ = sprintf "[%s]" s
245b5f555b8dc24455df97c67fb9712d3d57bcf40be261c5c90d1985791081ce
callum-oakley/advent-of-code
20.clj
(ns aoc.2022.20 (:require [aoc.vector :refer [*v]] [clojure.test :refer [deftest is]])) (defn parse [s] (let [vals (mapv read-string (re-seq #"-?\d+" s)) m (count vals)] [vals (mapv #(mod (inc %) m) (range m)) (mapv #(mod (dec %) m) (range m))])) (defn mix [[vals next prev]] (let [m (dec (coun...
null
https://raw.githubusercontent.com/callum-oakley/advent-of-code/da31078b49df302f5579b14b4b580b8f4bf53d15/src/aoc/2022/20.clj
clojure
(ns aoc.2022.20 (:require [aoc.vector :refer [*v]] [clojure.test :refer [deftest is]])) (defn parse [s] (let [vals (mapv read-string (re-seq #"-?\d+" s)) m (count vals)] [vals (mapv #(mod (inc %) m) (range m)) (mapv #(mod (dec %) m) (range m))])) (defn mix [[vals next prev]] (let [m (dec (coun...