_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
bdfcd7513bef6e025b5031b242daa722dc5a8b69990de8860cbd9ddebd88bb6c
oscoin/oscoin
Handshake.hs
module Oscoin.P2P.Handshake ( HandshakeError(..) , simpleHandshake , secureHandshake , module Oscoin.P2P.Handshake.Simple , module Oscoin.P2P.Handshake.Noise , Types.Handshake , Types.HandshakeRole(..) , Types.HandshakeResult , Types.hrPeerInfo , Types.hrPreSend , Types.hr...
null
https://raw.githubusercontent.com/oscoin/oscoin/2eb5652c9999dd0f30c70b3ba6b638156c74cdb1/src/Oscoin/P2P/Handshake.hs
haskell
| A simple handshake using 'keyExchange'. Subsequent protocol messages are signed when sending, and the signature is verified when receiving. This is not a secure protocol, as all communication is in clear text. | A secure handshake combining 'noiseNNHandshake' and 'keyExchange'. Subsequent protocol messages a...
module Oscoin.P2P.Handshake ( HandshakeError(..) , simpleHandshake , secureHandshake , module Oscoin.P2P.Handshake.Simple , module Oscoin.P2P.Handshake.Noise , Types.Handshake , Types.HandshakeRole(..) , Types.HandshakeResult , Types.hrPeerInfo , Types.hrPreSend , Types.hr...
9370ef5d9f684a0b811b50b5dc5cf2599406452b20a0a702aac1a5ca7b02e3dc
district0x/district-registry
emailer.cljs
(ns district-registry.server.emailer (:require [bignumber.core :as bn] [cljs-time.coerce :as time-coerce] [cljs-time.core :as t] [district-registry.server.contract.district0x-emails :as district0x-emails] [district-registry.server.db :as db] [district-regist...
null
https://raw.githubusercontent.com/district0x/district-registry/c2dcf7978d2243a773165b18e7a76632d8ad724e/src/district_registry/server/emailer.cljs
clojure
when district is blacklisted notify all stakers with a current positive stake on it when district is whitelisted after a challenge notify all stakers to collect reward
(ns district-registry.server.emailer (:require [bignumber.core :as bn] [cljs-time.coerce :as time-coerce] [cljs-time.core :as t] [district-registry.server.contract.district0x-emails :as district0x-emails] [district-registry.server.db :as db] [district-regist...
3b71aab57a78497894b9e4f00651428e1da695411689bd057c769a5635ea4d18
wenkokke/lazuli
LinearAlgebra.hs
{-@ LIQUID "--reflection" @-} {-@ LIQUID "--ple" @-} module Lazuli.LinearAlgebra where import Prelude hiding ( all , and , any , drop , foldr , length , map , or , replicate , sum , take , zipWith ) import Lazuli.Prelude (List, R, plus) import qualified Lazuli.Prelude as Internal ...
null
https://raw.githubusercontent.com/wenkokke/lazuli/8f8aa43d9ad821a1486317f98ff73c27bc3f1115/src/Lazuli/LinearAlgebra.hs
haskell
@ LIQUID "--reflection" @ @ LIQUID "--ple" @ * Lists @ reflect |> @ @ (|>) :: n:Nat -> ListN R n -> ListN R n @ * Vectors @ type VectorNE a = {v:Vector a | size v > 0} @ @ type VectorX a X = VectorN a {size X} @ @ reflect foldr @ @ foldr :: f:(a -> b -> b) -> z:b -> xs:Vector a -> b @ @ reflect map @ @ map :: f:(a...
module Lazuli.LinearAlgebra where import Prelude hiding ( all , and , any , drop , foldr , length , map , or , replicate , sum , take , zipWith ) import Lazuli.Prelude (List, R, plus) import qualified Lazuli.Prelude as Internal import qualified Lazuli.LinearAlgebra.Internal as Int...
53586e4b5d9e416593e44f8107a0652928ff20d087db6f77577511c9480894c2
gfour/gic
ITrans.hs
| The first - order intensional transformation , - style . module SLIC.ITrans.ITrans (itransM, itransP) where import Data.Map (Map, elems, empty, fromList, keys, lookup, union, unions, update) import Data.List (sortBy) import SLIC.AuxFun (ierr) import SLIC.ITrans.Syntax import SLIC.SyntaxAux import SLIC.Types -- ...
null
https://raw.githubusercontent.com/gfour/gic/d5f2e506b31a1a28e02ca54af9610b3d8d618e9a/SLIC/ITrans/ITrans.hs
haskell
| A map from variables to indices. (Mod fm@(m, _) exports imports p an) = insert calls remove function arguments | Finds the formals of every function and creates an actuals(...) definition for it. make a table of every (function name, its formals) take all the formals find all actuals of all formals make a ...
| The first - order intensional transformation , - style . module SLIC.ITrans.ITrans (itransM, itransP) where import Data.Map (Map, elems, empty, fromList, keys, lookup, union, unions, update) import Data.List (sortBy) import SLIC.AuxFun (ierr) import SLIC.ITrans.Syntax import SLIC.SyntaxAux import SLIC.Types typ...
fb36715f457a812d3b34f13e8d1c14ba83a931c0147605972bc0683e1110270d
lyrm/ocaml-httpadapter
accept_test.ml
open Http.Accept (* Suite test for Http.Accept module *) module Alcotest = struct include Alcotest let fmt_p = Fmt.pair ~sep:(Fmt.any "=") Fmt.string Fmt.string let fmt_qlist fmt fmt_elt qlist = Fmt.pf fmt "%a" (Fmt.list ~sep:Fmt.semi (Fmt.pair ~sep:Fmt.comma Fmt.int fmt_elt)) qlist let fmt...
null
https://raw.githubusercontent.com/lyrm/ocaml-httpadapter/01926ba6a1e3ab607fc8a33a40fb13682b6711a5/test/accept_test.ml
ocaml
Suite test for Http.Accept module TODO : add failure tests Tests for [Accept.charsets] function Tests for [Accept.encodings] function Tests for [Accept.languages] function
open Http.Accept module Alcotest = struct include Alcotest let fmt_p = Fmt.pair ~sep:(Fmt.any "=") Fmt.string Fmt.string let fmt_qlist fmt fmt_elt qlist = Fmt.pf fmt "%a" (Fmt.list ~sep:Fmt.semi (Fmt.pair ~sep:Fmt.comma Fmt.int fmt_elt)) qlist let fmt_media_range fmt media_range = match...
5cb98a338d202ee9d03d8369f796ad3632c15064cdc2e4e49038899060dbae22
locusmath/locus
morphism.clj
(ns locus.nonassociative.magma.morphism (:require [locus.set.logic.core.set :refer :all] [locus.set.logic.limit.product :refer :all] [locus.set.logic.sequence.object :refer :all] [locus.con.core.setpart :refer :all] [locus.set.mapping.general.core.object :refer :all] ...
null
https://raw.githubusercontent.com/locusmath/locus/b232579217be4e39458410893827a84d744168e4/src/clojure/locus/nonassociative/magma/morphism.clj
clojure
structured set to another. This means it is like a presheaf of magmas over the ordered pair category. In another sense, magmas are like magmoids and this makes them like generalized functors over non-associative categories. Finally, given a presheaf
(ns locus.nonassociative.magma.morphism (:require [locus.set.logic.core.set :refer :all] [locus.set.logic.limit.product :refer :all] [locus.set.logic.sequence.object :refer :all] [locus.con.core.setpart :refer :all] [locus.set.mapping.general.core.object :refer :all] ...
95b3ee04f9ff9bad3714964ab80dded29ecbfdb9414ee352936e2bc91dc0f2ae
sunng87/slacker
http.clj
(ns slacker.test.server.http (:use clojure.test) (:use [slacker.protocol :only [v6]] ) (:use slacker.server.http) (:use slacker.serialization) (:require [clojure.java.io :as io]) (:import [java.io ByteArrayOutputStream] [io.netty.buffer UnpooledByteBufAllocator])) (defn make-fake-data-stream [st...
null
https://raw.githubusercontent.com/sunng87/slacker/60e5372782bed6fc58cb8ba55951516a6b971513/test/slacker/test/server/http.clj
clojure
(ns slacker.test.server.http (:use clojure.test) (:use [slacker.protocol :only [v6]] ) (:use slacker.server.http) (:use slacker.serialization) (:require [clojure.java.io :as io]) (:import [java.io ByteArrayOutputStream] [io.netty.buffer UnpooledByteBufAllocator])) (defn make-fake-data-stream [st...
47c0a3a357d37d9fa19de14cff1cfdfdb5f4a67fc2cec9908e2cfe7308ab3792
racket/drracket
snip-run-all.rkt
#lang racket/base (require racket/gui/base) (require racket/runtime-path) (define-runtime-path here "snip") (define known-wxme-failures '("collapsed.rkt" "run-collapsed.rkt")) (define (record-failure exn) (parameterize ([current-error-port (current-output-port)]) (set! failures (+ failures 1)) ((error-displ...
null
https://raw.githubusercontent.com/racket/drracket/2d7c2cded99e630a69f05fb135d1bf7543096a23/drracket-test/tests/drracket/snip-run-all.rkt
racket
[use-compiled-file-paths '()]) Setting the use-compiled-file-paths is extra safe to so we don't "cheat" by using the wxme version to compile the file and then just avoid using the GUI version at all. But the "info.rkt" file ensures that the modules in this directory are not compiled, and disabling all compiled fi...
#lang racket/base (require racket/gui/base) (require racket/runtime-path) (define-runtime-path here "snip") (define known-wxme-failures '("collapsed.rkt" "run-collapsed.rkt")) (define (record-failure exn) (parameterize ([current-error-port (current-output-port)]) (set! failures (+ failures 1)) ((error-displ...
a1f41ab753057e4795f6421f0df026a86ee66a64cf8e88c86a26d1f973cea987
fortytools/holumbus
SimpleDMapReduceIO.hs
-- ---------------------------------------------------------------------------- | Module : Examples2.SimpleMR.SimpleDMapReduce Copyright : Copyright ( C ) 2009 License : MIT Maintainer : ( ) Stability : experimental Portability : portable Version : 0.1 Module ...
null
https://raw.githubusercontent.com/fortytools/holumbus/4b2f7b832feab2715a4d48be0b07dca018eaa8e8/mapreduce/Examples2/Pi/Pi_3/source/Holumbus/MapReduce/Examples/SimpleDMapReduceIO.hs
haskell
---------------------------------------------------------------------------- ---------------------------------------------------------------------------- the options actionConfig --------------------------------------------------------------------------------------------------------- The simple client fucntion...
| Module : Examples2.SimpleMR.SimpleDMapReduce Copyright : Copyright ( C ) 2009 License : MIT Maintainer : ( ) Stability : experimental Portability : portable Version : 0.1 Module : Examples2.SimpleMR.SimpleDMapReduce Copyright : Copyright (C) 2009 Sebasti...
513f3d77d489309cdd7c5f8b858ee460871f7f185697fa51a46f7dac50979f6d
Michaaell/dead-code-detection
argcheck.ml
open Typedtree (* Structure that deals with args that we want to check *) module ArgMap = Map.Make( struct let compare = Pervasives.compare type t = Path.t end ) (* Function that adds a function to the check list *) let add_fun k m = if ArgMap.mem k m then m else ArgMap.add k Utils.PathSet.empty m ...
null
https://raw.githubusercontent.com/Michaaell/dead-code-detection/fcf2ca529756efba3f62d60907d9203777cb1e7c/argcheck.ml
ocaml
Structure that deals with args that we want to check Function that adds a function to the check list Function that adds an used arg to the check list Function that add an arg to the checklist of its function Function that adds an arg list to the checklist of its function Function that checks the argmap with ...
open Typedtree module ArgMap = Map.Make( struct let compare = Pervasives.compare type t = Path.t end ) let add_fun k m = if ArgMap.mem k m then m else ArgMap.add k Utils.PathSet.empty m let add_arg fun_p arg_p m = if ArgMap.mem fun_p m then let arg_set = ArgMap.find fun_p m in let new...
7c62ab285ac033294dcb24d22318dfca2d8abd80220476238620fa716d689e61
gldubc/cast-machine
exec.cppo.ml
open Primitives open Utils open Bytecode open Types open Types.Print open Bytecode_Eager open Syntax.Eager (* #define MONITOR "1" *) # define BENCH " 1 " # define DEBUG " 1 " module Env = struct include . Make(struct ` type ` t = var let equal = ( =) let hash = Hashtbl.hash ...
null
https://raw.githubusercontent.com/gldubc/cast-machine/34d79c324cd0a9aff52865ead19e74126b96daaa/src/exec.cppo.ml
ocaml
#define MONITOR "1" machine values type nu = [ | `CST of b | `CLS of var * bytecode * env * kappa * mark | `PAIR of nu * nu ] parameter functions let () = print_endline "coucou" in let () = print_endline "coucou" in if !(run_params.monitor) then gather_metrics run_params state; ru...
open Primitives open Utils open Bytecode open Types open Types.Print open Bytecode_Eager open Syntax.Eager # define BENCH " 1 " # define DEBUG " 1 " module Env = struct include . Make(struct ` type ` t = var let equal = ( =) let hash = Hashtbl.hash end ) end incl...
630047fd5f5867ef617f2c55be408e5becd34da591385e21b4d0c7185048e19f
8c6794b6/haskell-sc-scratch
IndexEx.hs
------------------------------------------------------------------------------ -- | -- Module : $Header$ CopyRight : ( c ) 8c6794b6 -- License : BSD3 Maintainer : -- Stability : unstable -- Portability : non-portable -- Playing with . -- module IndexEx where import Sound.SC3 import Sound.SC3.L...
null
https://raw.githubusercontent.com/8c6794b6/haskell-sc-scratch/22de2199359fa56f256b544609cd6513b5e40f43/Scratch/UGenTweak/IndexEx.hs
haskell
---------------------------------------------------------------------------- | Module : $Header$ License : BSD3 Stability : unstable Portability : non-portable setupBuf [660,330,220,880,440,550]
CopyRight : ( c ) 8c6794b6 Maintainer : Playing with . module IndexEx where import Sound.SC3 import Sound.SC3.Lepton buf1 = 1 setupBuf fs = withSC3 $ \fd -> do async fd $ b_alloc buf1 1 6 send fd $ b_setn buf1 [(0,fs)] setupBuf [ 330,440,550,660,770,880 ] setupBuf [ 110,330,220,550,440,770 ]...
d7ed86fd510a40bd61aba38c578764ff4aa91a8e46d932f244b7bf7a5bf59bc3
mzp/coq-ide-for-ios
coqide.ml
let (@@) f g = f g type ide_info = int let cmd_stack : (ide_info * Coq.reset_info) Stack.t = Stack.create () let mode () = match Decl_mode.get_current_mode () with Decl_mode.Mode_none -> "none" | Decl_mode.Mode_tactic -> "tactic" | Decl_mode.Mode_proof -> "proof" let is_proof_mode () = mode() <> ...
null
https://raw.githubusercontent.com/mzp/coq-ide-for-ios/4cdb389bbecd7cdd114666a8450ecf5b5f0391d3/coqlib/ide/coqide.ml
ocaml
let (@@) f g = f g type ide_info = int let cmd_stack : (ide_info * Coq.reset_info) Stack.t = Stack.create () let mode () = match Decl_mode.get_current_mode () with Decl_mode.Mode_none -> "none" | Decl_mode.Mode_tactic -> "tactic" | Decl_mode.Mode_proof -> "proof" let is_proof_mode () = mode() <> ...
788fa1cc1c99344ec2fa444120a3aa49c0fe60b54199de67bf726ab64c767625
wireless-net/erlang-nommu
wxt.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2008 - 2011 . 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 Publi...
null
https://raw.githubusercontent.com/wireless-net/erlang-nommu/79f32f81418e022d8ad8e0e447deaea407289926/lib/wx/test/wxt.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 limitatio...
Copyright Ericsson AB 2008 - 2011 . 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 " Author : < > Description : Shortcu...
28784e42920e2ee476126a16faa796032a71c6985df780733d4b652bd8225acb
OCamlPro/ocp-indent
indentLoader.mli
(**************************************************************************) (* *) (* All rights reserved.This file is distributed under the terms of the *) GNU Lesser General Public License version 2.1 with linking (* exception. ...
null
https://raw.githubusercontent.com/OCamlPro/ocp-indent/9e26c0a2699b7076cebc04ece59fb354eb84c11c/src/indentLoader.mli
ocaml
************************************************************************ All rights reserved.This file is distributed under the terms of the exception. ...
GNU Lesser General Public License version 2.1 with linking is distributed in the hope that it will be useful , val load : ?debug:bool -> [`Mod of string | `Pkg of string ] list -> unit
a843fa04a14acd4db1ed7e1ba171d941341f931517cc2ea118c6c1d7d759822e
xsc/pandect
bouncy_castle.clj
(ns ^:no-doc pandect.impl.bouncy-castle (:require [pandect.gen.core :as gen] [pandect.impl.message-digest [hmac :as hmac] [hash :as hash]])) # # Message Digest / HMAC Algorithms (def ^:private MD_ALGORITHMS (concat ;; Single Instances (vector ["GOST3411" "Hm...
null
https://raw.githubusercontent.com/xsc/pandect/ffc95e81484045ddbe235a2f4208bd5677f1195b/src/pandect/impl/bouncy_castle.clj
clojure
Single Instances BLAKE2B RipeMD SHA-3
(ns ^:no-doc pandect.impl.bouncy-castle (:require [pandect.gen.core :as gen] [pandect.impl.message-digest [hmac :as hmac] [hash :as hash]])) # # Message Digest / HMAC Algorithms (def ^:private MD_ALGORITHMS (concat (vector ["GOST3411" "Hmac-GOST3411"] ["MD...
d77f5c6e39e4a2882e5ad9930a38a208427cd725cea7c6137ab0735f742bdda8
janestreet/universe
css_tokenizer.ml
open Core_kernel open! Int.Replace_polymorphic_compare module Token = struct type t = | Ident | Function | Atkeyword | Hash | String | Uri | Delim | Number | Percentage | Dimension | White_space | Colon | Semi_colon | Comma | Lbracket | Rbracket | L...
null
https://raw.githubusercontent.com/janestreet/universe/b6cb56fdae83f5d55f9c809f1c2a2b50ea213126/virtual_dom/css_gen/src/css_tokenizer.ml
ocaml
start of the current token length of the current token this is weird but the spec is weird Make sure we are idempotent when we get into the error state current is dummy and will be set by call to next
open Core_kernel open! Int.Replace_polymorphic_compare module Token = struct type t = | Ident | Function | Atkeyword | Hash | String | Uri | Delim | Number | Percentage | Dimension | White_space | Colon | Semi_colon | Comma | Lbracket | Rbracket | L...
38442cbd8c1bfdf100331794a958029744dd26822648a8801c5127cb56621f75
facundoolano/advenjure
request.cljs
(ns advenjure.ui.request (:require-macros [cljs.core.async.macros :refer [go]]) (:require [ajax.core :refer [GET]] [cljs.core.async :refer [>! chan]])) (defn request ([url] (request url {})) ([url params] (go (let [res-chan (chan) handler (fn [result] (go (>! res-chan (or result ...
null
https://raw.githubusercontent.com/facundoolano/advenjure/2f05fdae9439ab8830753cc5ef378be66b7db6ef/src/advenjure/ui/request.cljs
clojure
(ns advenjure.ui.request (:require-macros [cljs.core.async.macros :refer [go]]) (:require [ajax.core :refer [GET]] [cljs.core.async :refer [>! chan]])) (defn request ([url] (request url {})) ([url params] (go (let [res-chan (chan) handler (fn [result] (go (>! res-chan (or result ...
6399d16961615e4901c2d66d61c48542a9e06d6b825c22a4675b887a85b4ffca
mhjort/ring-apigw-lambda-proxy
project.clj
(defproject ring-apigw-lambda-proxy "0.4.0" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"]] :profiles {:dev {:dependencies [[cheshire "5.7.0"] [compojure "1.5....
null
https://raw.githubusercontent.com/mhjort/ring-apigw-lambda-proxy/9d2684bc47fc59e98e9657e81cc9c0f33baeca61/project.clj
clojure
(defproject ring-apigw-lambda-proxy "0.4.0" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"]] :profiles {:dev {:dependencies [[cheshire "5.7.0"] [compojure "1.5....
ae41438309784195771ffcb434c682ab99ac5a757f15e3ad58624eee80dba29f
clj-commons/aleph
udp_test.clj
(ns aleph.udp-test (:require [aleph.netty :as netty] [aleph.udp :as udp] [clj-commons.byte-streams :as bs] [clojure.test :refer [deftest testing is use-fixtures]] [manifold.stream :as s]) (:import (java.net ServerSocket))) (netty/leak-detector-level! :paranoid) (def ^:dynamic *port* nil) (defn ...
null
https://raw.githubusercontent.com/clj-commons/aleph/b7ed33be5200301df45926e61ac12d8e769b80d4/test/aleph/udp_test.clj
clojure
(ns aleph.udp-test (:require [aleph.netty :as netty] [aleph.udp :as udp] [clj-commons.byte-streams :as bs] [clojure.test :refer [deftest testing is use-fixtures]] [manifold.stream :as s]) (:import (java.net ServerSocket))) (netty/leak-detector-level! :paranoid) (def ^:dynamic *port* nil) (defn ...
bff54d134b6d3287e42981875228bb142773d2a0d0ac18186dcf82f8118a3621
ekmett/ad
Forward.hs
{-# LANGUAGE Rank2Types #-} ----------------------------------------------------------------------------- -- | Copyright : ( c ) 2010 - 2021 -- License : BSD3 -- Maintainer : -- Stability : experimental Portability : GHC only -- -- Forward mode automatic differentiation -- ----------------------...
null
https://raw.githubusercontent.com/ekmett/ad/6454d35d1aa6e2af04db9e549146c9cfe8d8bd3b/src/Numeric/AD/Mode/Forward.hs
haskell
# LANGUAGE Rank2Types # --------------------------------------------------------------------------- | License : BSD3 Maintainer : Stability : experimental Forward mode automatic differentiation --------------------------------------------------------------------------- * Gradient * Derivatives * Di...
Copyright : ( c ) 2010 - 2021 Portability : GHC only module Numeric.AD.Mode.Forward ( AD , Forward , auto , grad , grad' , gradWith , gradWith' * Jacobian , jacobian , jacobian' , jacobianWith , jacobianWith' * Transposed Jacobian , jacobianT , jacobianWithT * Hessian Produ...
8e78e4583162300a2a45b5fb1c6efddd51ce14f44642877cd2a5cc022c74fc72
seanhess/yeti
Focus.hs
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # module Page.Focus where import Prelude import Yeti import Yeti.UI import Data.Text (Text) import Lucid (toHtml) import Lucid.Html5 data Model = Model { one :: Text , two :: Text } deriving (Show, Generic, LiveModel,...
null
https://raw.githubusercontent.com/seanhess/yeti/b274dce41b0bf2f9115ea836d585aaff1cd2f5ac/example/Page/Focus.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE DeriveAnyClass #
# LANGUAGE DeriveGeneric # module Page.Focus where import Prelude import Yeti import Yeti.UI import Data.Text (Text) import Lucid (toHtml) import Lucid.Html5 data Model = Model { one :: Text , two :: Text } deriving (Show, Generic, LiveModel, Eq, ToJSON, FromJSON) data Action = One Text | Two Text der...
38955bba8f9b4ebab976d54097e27462c49625d9bd980a900c750f16761ab76d
onedata/op-worker
qos_replica_protection_test_SUITE.erl
%%%------------------------------------------------------------------- @author ( C ) 2019 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%%-------------------------------------------------------------------- %%% @doc %%% This module contains tests of protection o...
null
https://raw.githubusercontent.com/onedata/op-worker/b2036d05fff39d174a6345209d66ba292948a82b/test_distributed/suites/qos/qos_replica_protection_test_SUITE.erl
erlang
------------------------------------------------------------------- -------------------------------------------------------------------- @doc This module contains tests of protection of replicas created by QoS. @end ------------------------------------------------------------------- API migration_of_replica_pro...
@author ( C ) 2019 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . -module(qos_replica_protection_test_SUITE). -author("Michal Stanisz"). -include("transfers_test_mechanism.hrl"). -include("qos_tests_utils.hrl"). -include_lib("ctool/include/errors.hrl"). -include_...
1485eecac700dcd0f914515446477484e0ddb49b0b202919d972eee99377a50e
brendanhay/amazonka
InsightImpactGraphService.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # {-# LANGUAGE StrictData #-} # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - unused - matches # Derived fr...
null
https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-xray/gen/Amazonka/XRay/Types/InsightImpactGraphService.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated | Information about an application that processed requests, users that made requests, or downstream services, resources, and applications that an application used. /See:/ 'newInsightImpactGraphService' smart constructor. | Con...
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - unused - matches # Derived from AWS service descriptions , licensed under Apache 2.0 . Mo...
f8b2c48aad277494d660a955af119610d5d829461d1594452aa349a475b49ee1
haskell-hvr/regex-posix
Sequence.hs
# OPTIONS_GHC -fno - warn - orphans # ----------------------------------------------------------------------------- -- | Module : Text . Regex . . Sequence Copyright : ( c ) 2006 -- License : BSD-3-Clause -- Maintainer : , -- Stability : stable Portability : non - portable ( reg...
null
https://raw.githubusercontent.com/haskell-hvr/regex-posix/89680cc85b4033fc4e45b25cf68b0a5cb40daae8/src/Text/Regex/Posix/Sequence.hs
haskell
--------------------------------------------------------------------------- | License : BSD-3-Clause Stability : stable instance. To use these instance, you would normally import functions. All of these report error by returning Left values instead of undefined or error or fail. --------------------...
# OPTIONS_GHC -fno - warn - orphans # Module : Text . Regex . . Sequence Copyright : ( c ) 2006 Maintainer : , Portability : non - portable ( regex - base needs MPTC+FD ) This provides ' String ' instances for ' RegexMaker ' and ' RegexLike ' based on " Text . Regex . . Wrap " , an...
9eedd4ec01035a234669b0687c87154fe5fa7c260ad1d9797891c8adbc8ecc1b
alavrik/erlson
erlson.erl
Copyright ( c ) 2011 , %% %% Permission is hereby granted, free of charge, to any person obtaining %% a copy of this software and associated documentation files (the " Software " ) , to deal in the Software without restriction , including %% without limitation the rights to use, copy, modify, merge, publi...
null
https://raw.githubusercontent.com/alavrik/erlson/05e7ef8ce236c6112c44f4072b1f7d4220d18c60/src/erlson.erl
erlang
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the without limitation the rights to use, copy, modify, merge, publish, the following conditions: The above copyright notice and this permission notice shall be EXPRESS ...
Copyright ( c ) 2011 , " Software " ) , to deal in the Software without restriction , including distribute , sublicense , and/or sell copies of the Software , and to permit persons to whom the Software is furnished to do so , subject to included in all copies or substantial portions of the Software . ...
803cddfdefc7bddb7cda5e1b910bd6b2484a47b8a982d16288f9abc94dd50097
kcsongor/generic-lens
Typed.hs
{-# LANGUAGE PackageImports #-} # LANGUAGE TypeApplications # # LANGUAGE AllowAmbiguousTypes # {-# LANGUAGE DataKinds #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # # LANGUAGE KindSignatures # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE ScopedTypeVariabl...
null
https://raw.githubusercontent.com/kcsongor/generic-lens/e5a390769aff422af656802ab5204b77b02699a9/generic-optics/src/Data/Generics/Sum/Typed.hs
haskell
# LANGUAGE PackageImports # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # --------------------------------------------------------------------------- | Module : Data.Generics.Sum...
# LANGUAGE TypeApplications # # LANGUAGE AllowAmbiguousTypes # # LANGUAGE FlexibleInstances # # LANGUAGE KindSignatures # # LANGUAGE MultiParamTypeClasses # # LANGUAGE UndecidableInstances # Copyright : ( C ) 2020 Maintainer : < > module Data.Generics.Sum.Typed AsType (.....
f01a753dcc5bb8a3a3fcbb9662b9ca7728d0abe8a095dc31ed2b0a8ae24176f2
russross/cownfs
mount_api.ml
Copyright 2004 , 2005 * See the file COPYING for information about licensing and distribution . * See the file COPYING for information about licensing and distribution. *) open Mount_prot_caux open Common exception Unimplemented exception Bad_path exception Too_long let mntlist = ref [] let checkPath pat...
null
https://raw.githubusercontent.com/russross/cownfs/cc67fae0294203a78b022d7300be8aa6c35c58af/mount_api.ml
ocaml
if uid <> 0 then `mnt3err_acces else
Copyright 2004 , 2005 * See the file COPYING for information about licensing and distribution . * See the file COPYING for information about licensing and distribution. *) open Mount_prot_caux open Common exception Unimplemented exception Bad_path exception Too_long let mntlist = ref [] let checkPath pat...
28036458d6236e5df6d9325a64b67eaf4a63eb33052fa85e9462458bc272bff5
lambdaclass/erlang-katana
secure_vault.erl
-module(secure_vault). -behaviour(gen_fsm). -ignore_xref([{ktn_fsm, start, 3}]). -export([ start/2 , state/1 , contents/1 , count/1 , push/2 , pop/1 , lock/2 , unlock/2 , stop/2 ]). -export([ init/1 , handle_event/3 , handle_syn...
null
https://raw.githubusercontent.com/lambdaclass/erlang-katana/ebb6b1358c974b5e3b16f5e95422061385ae34ac/test/secure_vault.erl
erlang
-module(secure_vault). -behaviour(gen_fsm). -ignore_xref([{ktn_fsm, start, 3}]). -export([ start/2 , state/1 , contents/1 , count/1 , push/2 , pop/1 , lock/2 , unlock/2 , stop/2 ]). -export([ init/1 , handle_event/3 , handle_syn...
09af4fd9e1af5c45abaf9728c6d0c3e695908283856ef66131e8f3abc644579a
chef/sqerl
sqerl_transformers.erl
-*- erlang - indent - level : 4;indent - tabs - mode : nil ; fill - column : 92 -*- %% ex: ts=4 sw=4 et @author < > @author < > %% @doc Abstraction around interacting with database results Copyright 2011 - 2012 Opscode , Inc. All Rights Reserved . %% This file is provided to you under the Apache License...
null
https://raw.githubusercontent.com/chef/sqerl/a27e3e58da53240dc9925ec03ecdb894b8231cf9/src/sqerl_transformers.erl
erlang
ex: ts=4 sw=4 et @doc Abstraction around interacting with database results Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing pe...
-*- erlang - indent - level : 4;indent - tabs - mode : nil ; fill - column : 92 -*- @author < > @author < > Copyright 2011 - 2012 Opscode , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed...
3cdf2ea7b60e0ec354dc075eed19b5b7d03969f864e04b7a575533c25da6e92a
xapi-project/xenvm
rings.ml
open Errors open Lwt module Ring(Op:S.CSTRUCTABLE) = struct module R = Shared_block.Ring.Make(Log)(Vg_io.Volume)(Op) type item = Op.t type consumer = R.Consumer.t type cposition = R.Consumer.position type producer = R.Producer.t type pposition = R.Producer.position let prefix msg = Printf.sprintf...
null
https://raw.githubusercontent.com/xapi-project/xenvm/401754dfb05376b5fc78c9290453b006f6f38aa1/idl/rings.ml
ocaml
open Errors open Lwt module Ring(Op:S.CSTRUCTABLE) = struct module R = Shared_block.Ring.Make(Log)(Vg_io.Volume)(Op) type item = Op.t type consumer = R.Consumer.t type cposition = R.Consumer.position type producer = R.Producer.t type pposition = R.Producer.position let prefix msg = Printf.sprintf...
6711d0e21c8d91953bef679dce62a2885891f0ac5a34f06509363e031aed6249
roburio/ocaml-openpgp
signature_packet.mli
open Rresult type signature_asf = | RSA_sig_asf of { m_pow_d_mod_n : Types.mpi } (* PKCS1-*) | DSA_sig_asf of { r: Types.mpi; s: Types.mpi; } type signature_subpacket = | Signature_creation_time of Ptime.t | Signature_expiration_time of Ptime.Span.t | Key_expiration_time of Ptime.Span.t | Key_usage_flags ...
null
https://raw.githubusercontent.com/roburio/ocaml-openpgp/55459ad98a69f80789c79219c6d3be19ef6ef521/lib/signature_packet.mli
ocaml
PKCS1- [t] and [signature_subpacket] are mutually recursive due to Embedded_signature containing its own [t]. we store the Cs.t and defer parsing to a later point.
open Rresult type signature_asf = | DSA_sig_asf of { r: Types.mpi; s: Types.mpi; } type signature_subpacket = | Signature_creation_time of Ptime.t | Signature_expiration_time of Ptime.Span.t | Key_expiration_time of Ptime.Span.t | Key_usage_flags of Types.key_usage_flags | Issuer_fingerprint of Types.open...
ca28637f71784625937c4506aeac15cbc399d8707f9b0b72d631f876a400747f
jackrusher/mundaneum
properties.clj
(ns mundaneum.properties (:require [clojure.java.io :as io] [clojure.string :as string] [clojure.data.json :as json])) Properties fetched using the wikibase command line tool : ;; -cli ;; ... example invocation: ;; $ wb props > props-2021-11-04.json (def wdt (->> (json/read (io/reader (io...
null
https://raw.githubusercontent.com/jackrusher/mundaneum/2fb095924d3595853316b4a7783c2f7015d7deeb/src/mundaneum/properties.clj
clojure
-cli ... example invocation: $ wb props > props-2021-11-04.json
(ns mundaneum.properties (:require [clojure.java.io :as io] [clojure.string :as string] [clojure.data.json :as json])) Properties fetched using the wikibase command line tool : (def wdt (->> (json/read (io/reader (io/resource "props-2022-04-19.json"))) (reduce (fn [m [id text]] ...
aafd32b703f5bfe836c6acb3d6e2f0a5f22233159339a3fd14f9fb9935689422
3b/cl-opengl
funcs-gl-glcore-gles1-gles2.lisp
;;; this file is automatically generated, do not edit ;;; generated from files with the following copyright: ;;; Copyright ( c ) 2013 - 2017 The Khronos Group Inc. ;;; Licensed under the Apache License , Version 2.0 ( the " License " ) ; ;;; you may not use this file except in compliance with the License. ;;; You m...
null
https://raw.githubusercontent.com/3b/cl-opengl/e2d83e0977b7e7ac3f3d348d8ccc7ccd04e74d59/gl/funcs-gl-glcore-gles1-gles2.lisp
lisp
this file is automatically generated, do not edit generated from files with the following copyright: 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 CON...
Copyright ( c ) 2013 - 2017 The Khronos Group Inc. distributed under the License is distributed on an " AS IS " BASIS , (in-package #:cl-opengl-bindings) generated 2017 - 10 - 04T20:14:06Z from gl.xml @ git sha 2c8fa02871abd4102bd03d09d42645cce20c468f , 2017 - 10 - 03T15:09:09Z (defglfun ("glGetPointerv" get...
e295ba3ce482a6a9151d713104e32ed6719461c8832600e0edd90fac45d59925
dongcarl/guix
repl.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2018 , 2019 , 2020 < > Copyright © 2020 , 2021 < > Copyright © 2020 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as p...
null
https://raw.githubusercontent.com/dongcarl/guix/82543e9649da2da9a5285ede4ec4f718fd740fcb/guix/scripts/repl.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2018 , 2019 , 2020 < > Copyright © 2020 , 2021 < > Copyright © 2020 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (guix scripts repl) #:us...
d685e77ce200f97b467c7787cf2a4e6542a1a658be1086a703334aa1da9b8e9c
elm-lang/elm-repl
Meta.hs
# LANGUAGE FlexibleContexts # module Eval.Meta (eval) where import Control.Monad.State (get, modify) import Control.Monad.Trans (liftIO) import qualified Data.List as List import System.Exit (ExitCode(ExitSuccess)) import qualified Environment as Env eval :: Env.Config -> Env.Task (Maybe ExitCode) eval config = c...
null
https://raw.githubusercontent.com/elm-lang/elm-repl/cc258c37636e04b6f3d4a4840881910f5effe119/src/Eval/Meta.hs
haskell
# LANGUAGE FlexibleContexts # module Eval.Meta (eval) where import Control.Monad.State (get, modify) import Control.Monad.Trans (liftIO) import qualified Data.List as List import System.Exit (ExitCode(ExitSuccess)) import qualified Environment as Env eval :: Env.Config -> Env.Task (Maybe ExitCode) eval config = c...
65a0659e81c8a10522362bced1bc14f5d4a870bc22f74ecb8190b636d2293df3
coalton-lang/coalton
big-float.lisp
;;;; big-float.lisp ;;;; ;;;; Benchmarks for arbitrary precision floats (cl:in-package #:coalton-benchmarks) (cl:defvar *big-float-bench-precision* #-coalton-portable-bigfloat 10000 #+coalton-portable-bigfloat 100) (cl:defvar *big-float-bench-iterations* #-coalton-portable-bigfloat 1000 #+coalton-portable-big...
null
https://raw.githubusercontent.com/coalton-lang/coalton/66b504fe662ca56a1fd7e0cbb4b046c3182fa8a8/benchmarks/big-float.lisp
lisp
big-float.lisp Benchmarks for arbitrary precision floats
(cl:in-package #:coalton-benchmarks) (cl:defvar *big-float-bench-precision* #-coalton-portable-bigfloat 10000 #+coalton-portable-bigfloat 100) (cl:defvar *big-float-bench-iterations* #-coalton-portable-bigfloat 1000 #+coalton-portable-bigfloat 10) (define-benchmark big-trig () "Benchmark at N precision big...
f79a605dd72165b8fb6d3990cbe3723e96e6acab76a66f59e5580da57f48e6a8
bevuta/pepa
config.sample.clj
{:db {:host "<db-host>" :user "pepa" :dbname "pepa"} :web {:port 4035 :host "localhost" :log-requests? false :default-page-dpi 150 ;; 30s Long-Polling timeout :poll {:timeout 30} Display full exception traces for 500 Internal Server Error ? :exception-traces? tru...
null
https://raw.githubusercontent.com/bevuta/pepa/0a9991de0fd1714515ca3def645aec30e21cd671/resources/config.sample.clj
clojure
30s Long-Polling timeout Modules to announce via zeroconf Optional, allows to set the announced IP Address If true, add origin (web, email, etc.) as tag If enabled, add the 'from' and/or 'to' address as tag on mailed documents Whether to add the printer queue name as a tag List of tags to add to new documents. ...
{:db {:host "<db-host>" :user "pepa" :dbname "pepa"} :web {:port 4035 :host "localhost" :log-requests? false :default-page-dpi 150 :poll {:timeout 30} Display full exception traces for 500 Internal Server Error ? :exception-traces? true} :rendering {:png {:dpi #{50 150...
632e274c69edf4f868286de1906b7d5c7f9a137c9b9fdbca9afdd3b3032bc7fd
ghc/packages-haskeline
Haskeline.hs
| A rich user interface for line input in command - line programs . Haskeline is Unicode - aware and runs both on POSIX - compatible systems and on Windows . Users may customize the interface with a @~/.haskeline@ file ; see < > for more information . An example use of this library for a simple read -...
null
https://raw.githubusercontent.com/ghc/packages-haskeline/5f16b76168f13c6413413386efc44fb1152048d5/System/Console/Haskeline.hs
haskell
* Interactive sessions ** The InputT monad transformer ** Behaviors * User interaction functions ** Reading user input $inputfncs ** Outputting text $outputfncs * Customization ** Settings ** User preferences ** History $history * Ctrl-C handling * Additional submodules | A useful default. In particula...
| A rich user interface for line input in command - line programs . Haskeline is Unicode - aware and runs both on POSIX - compatible systems and on Windows . Users may customize the interface with a @~/.haskeline@ file ; see < > for more information . An example use of this library for a simple read -...
38d8270204bd235adf2d44ed3429c80ab374c3b6b808bdee5a9fa671e92ad95d
ocaml/oasis-db
ODBArchive.ml
open ODBProcess open ODBGettext open ODBContext open Lwt exception NoHandler of string exception NoCompress of string let () = Printexc.register_printer (function | NoHandler fn -> Some (Printf.sprintf (f_ "Don't know how to uncompress '%s'") f...
null
https://raw.githubusercontent.com/ocaml/oasis-db/f8b19d431102b5c5b7dced00a5242a5366ad263f/src/lib/ODBArchive.ml
ocaml
Uncompress the tarball Uncompress the tarball Do something with content
open ODBProcess open ODBGettext open ODBContext open Lwt exception NoHandler of string exception NoCompress of string let () = Printexc.register_printer (function | NoHandler fn -> Some (Printf.sprintf (f_ "Don't know how to uncompress '%s'") f...
83ff79024c56b5c42afd6d87bedca3f2810faf518274711f0cbb8a1951a7d32a
viercc/kitchen-sink-hs
IOCache.hs
{-# LANGUAGE DeriveDataTypeable #-} module Monad.IOCache ( Cache(), newCache, newEmptyCache, request, requestCached, forkCache, CachedTaskFail(..) ) where import Data.Map.Strict (Map) import qualified Data.Map.Strict as Map import Data.Typeable import Control.Exception import Control.Concurrent import...
null
https://raw.githubusercontent.com/viercc/kitchen-sink-hs/5038b17a39e4e6f19e6fb4779a7c8aaddf64d922/monads-collection/src/Monad/IOCache.hs
haskell
# LANGUAGE DeriveDataTypeable #
module Monad.IOCache ( Cache(), newCache, newEmptyCache, request, requestCached, forkCache, CachedTaskFail(..) ) where import Data.Map.Strict (Map) import qualified Data.Map.Strict as Map import Data.Typeable import Control.Exception import Control.Concurrent import Control.Concurrent.STM data Cache ...
2d04feb211d877b756799ec7ae10c55dc72eb1ad8851ffde309b0638d6d02930
bitonic/anapo
Attributes.hs
# LANGUAGE CPP # # LANGUAGE JavaScriptFFI # # LANGUAGE ForeignFunctionInterface # # LANGUAGE GHCForeignImportPrim # module Anapo.Component.Attributes where import Anapo.Component.Internal (textProperty, textAttribute, boolProperty, boolAttribute, NodePatch(NPClasses)) import Anapo.Text (Text) import qualified Anapo.Te...
null
https://raw.githubusercontent.com/bitonic/anapo/8f3c020973d16cecb5ee83a03d91fb00294d34c7/anapo/src/Anapo/Component/Attributes.hs
haskell
# INLINE accept_ # # INLINE acceptCharset_ # # INLINE action_ # # INLINE async_ # # INLINE autocomplete_ # # INLINE autofocus_ # # INLINE autoplay_ # # INLINE challenge_ # # INLINE charset_ # # INLINE checked_ # # INLINE class_ # # INLINE classes_ # # INLINE cols_ # # INLINE content_ # # INLINE contenteditable_ # # INL...
# LANGUAGE CPP # # LANGUAGE JavaScriptFFI # # LANGUAGE ForeignFunctionInterface # # LANGUAGE GHCForeignImportPrim # module Anapo.Component.Attributes where import Anapo.Component.Internal (textProperty, textAttribute, boolProperty, boolAttribute, NodePatch(NPClasses)) import Anapo.Text (Text) import qualified Anapo.Te...
f93221a8dd098c378f80061badfc4525efe8e36c130372fffa1d00c2f11a95f4
ocaml/ocamlbuild
tyty.mli
(***********************************************************************) (* *) (* ocamlbuild *) (* *) , , projet Galliu...
null
https://raw.githubusercontent.com/ocaml/ocamlbuild/792b7c8abdbc712c98ed7e69469ed354b87e125b/test/test2/tyty.mli
ocaml
********************************************************************* ocamlbuild ...
, , projet Gallium , INRIA Rocquencourt Copyright 2007 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with type t = int
a059a1f16619fc89cf36c5d12739b59c0e091f4bcd9549ed58a02b80fd6fce88
NorfairKing/easyspec
MaximumRelatedFunctions.hs
# LANGUAGE TypeApplications # module EasySpec.Evaluate.Evaluate.Evaluator.MaximumRelatedFunctions ( maximumRelatedFunctionsEvaluator ) where import Import import qualified EasySpec.Discover as ES import qualified EasySpec.Discover.Types as ES import qualified EasySpec.Discover.Utils as ES import EasySpec.Ev...
null
https://raw.githubusercontent.com/NorfairKing/easyspec/b038b45a375cc0bed2b00c255b508bc06419c986/easyspec-evaluate/src/EasySpec/Evaluate/Evaluate/Evaluator/MaximumRelatedFunctions.hs
haskell
# LANGUAGE TypeApplications # module EasySpec.Evaluate.Evaluate.Evaluator.MaximumRelatedFunctions ( maximumRelatedFunctionsEvaluator ) where import Import import qualified EasySpec.Discover as ES import qualified EasySpec.Discover.Types as ES import qualified EasySpec.Discover.Utils as ES import EasySpec.Ev...
4b68bb6069743fb7c8e9cf7f3e24a1f3b8bb1525ae2c165fab45c4e8aac0c93b
den1k/vimsical
compiler.cljc
(ns vimsical.vcs.compiler (:require [clojure.spec.alpha :as s])) (def sub-types #{:babel}) (def to-sub-types #{:javascript}) ;; * Attributes (s/def ::uid uuid?) (s/def :db/uid ::uid) (s/def ::type #{:text}) (s/def ::sub-type sub-types) (s/def ::to-sub-type to-sub-types) (s/def ::name string?) ;; * Entity (s/de...
null
https://raw.githubusercontent.com/den1k/vimsical/1e4a1f1297849b1121baf24bdb7a0c6ba3558954/src/vcs/vimsical/vcs/compiler.cljc
clojure
* Attributes * Entity
(ns vimsical.vcs.compiler (:require [clojure.spec.alpha :as s])) (def sub-types #{:babel}) (def to-sub-types #{:javascript}) (s/def ::uid uuid?) (s/def :db/uid ::uid) (s/def ::type #{:text}) (s/def ::sub-type sub-types) (s/def ::to-sub-type to-sub-types) (s/def ::name string?) (s/def ::compiler (s/keys :req ...
88defe1d256cfa64179fa4175b168d6135effc50daa80672744a1df98b93d52b
openbadgefactory/salava
report.cljs
(ns salava.admin.ui.report (:require [salava.core.ui.ajax-utils :as ajax] [salava.core.ui.helper :refer [path-for js-navigate-to plugin-fun]] [reagent.session :as session] [reagent.core :refer [atom cursor]] [salava.core.i18n :refer [t]] [salava.core.ui.modal :as mo] [salava.core.time :refer [iso...
null
https://raw.githubusercontent.com/openbadgefactory/salava/97f05992406e4dcbe3c4bff75c04378d19606b61/src/cljs/salava/admin/ui/report.cljs
clojure
:page_count @page-count-atom} :space-id space-id} :space-id space-id} (value-helper state tags) Recall init data with "all" countries if initial query returned empty coll (init-data state) "pickable" gallery/fetch-badges))) [:span [:i.fa.fa-users.fa-fw.fa-lg] (t :admin/Showuserlist)]] [:span [:i.fa.fa-users.fa-...
(ns salava.admin.ui.report (:require [salava.core.ui.ajax-utils :as ajax] [salava.core.ui.helper :refer [path-for js-navigate-to plugin-fun]] [reagent.session :as session] [reagent.core :refer [atom cursor]] [salava.core.i18n :refer [t]] [salava.core.ui.modal :as mo] [salava.core.time :refer [iso...
73224485ebe5433e991264f00fb521af3ae25320fa0f1ee5efb25d3b844d8b83
webyrd/miniKanren-hangout-summaries
transcript-part2.scm
Chez Scheme Version 9.4.1 Copyright 1984-2016 Cisco Systems, Inc. > (let ((x (+ 2 3))) (let ((x 7)) x)) 7 > (let ((x (+ 2 3))) (let ((x 7)) x)) 7 > ;; () (let ((x (+ 2 3))) ( ( x . 5 ) ) (let ((x 7)) ( ( x . 7 ) ( x . 5 ) ) x)) 7 > ;; () (let ((x (+ 2 3))) ( ( x . 5 ) ) (let ((y 7)) (...
null
https://raw.githubusercontent.com/webyrd/miniKanren-hangout-summaries/06b33ba37e298c14babb7c6c0f63fe01bc65d547/code/intro-hangouts/intro-hangout-3/transcript-part2.scm
scheme
() () () alpha-renaming
Chez Scheme Version 9.4.1 Copyright 1984-2016 Cisco Systems, Inc. > (let ((x (+ 2 3))) (let ((x 7)) x)) 7 > (let ((x (+ 2 3))) (let ((x 7)) x)) 7 > (let ((x (+ 2 3))) ( ( x . 5 ) ) (let ((x 7)) ( ( x . 7 ) ( x . 5 ) ) x)) 7 > (let ((x (+ 2 3))) ( ( x . 5 ) ) (let ((y 7)) ( ( y . 7 ) (...
1ea14649d61e886e55bb1e030e5753b2a156a52f9ea1656b3fd8a58235edb5bc
cljdoc/cljdoc
routes_test.clj
(ns cljdoc.server.routes-test (:require [io.pedestal.http.route :refer [expand-routes try-routing-for]] [cljdoc.server.routes :as routes] [clojure.test :as t])) (t/deftest badge-for-project-test (let [table (-> (routes/utility-routes) expand-routes) dispatch (fn [p...
null
https://raw.githubusercontent.com/cljdoc/cljdoc/679d4aea58a6702cf3b558bf65c67e65e426c56a/test/cljdoc/server/routes_test.clj
clojure
(ns cljdoc.server.routes-test (:require [io.pedestal.http.route :refer [expand-routes try-routing-for]] [cljdoc.server.routes :as routes] [clojure.test :as t])) (t/deftest badge-for-project-test (let [table (-> (routes/utility-routes) expand-routes) dispatch (fn [p...
062cb60754324a93b3bca7886c9596411f446906acbd1738c17dc430c19679a8
rizo/snowflake-os
parsetree.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/rizo/snowflake-os/51df43d9ba715532d325e8880d3b8b2c589cd075/plugins/ocamlopt.opt/parsing/parsetree.mli
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ Id$ open Asttypes type core_typ...
e4255d8c46527f1c8feb449b313d1a0256e6d7cc2099fa1240dabf3d49868b5a
SquidDev/urn
printer.lisp
(import io/term (coloured)) (defun print-error! (msg) "Print an error messaage, MSG." (unless (string? msg) (set! msg (pretty msg))) (with (lines (string/split msg "\n" 1)) (print! (coloured 31 (.. "[ERROR] " (car lines)))) (when (cadr lines) (print! (cadr lines))))) (defun print-warning! (msg) "Print...
null
https://raw.githubusercontent.com/SquidDev/urn/6e6717cf1376b0950e569e3771cb7e287aed291d/urn/logger/printer.lisp
lisp
(import io/term (coloured)) (defun print-error! (msg) "Print an error messaage, MSG." (unless (string? msg) (set! msg (pretty msg))) (with (lines (string/split msg "\n" 1)) (print! (coloured 31 (.. "[ERROR] " (car lines)))) (when (cadr lines) (print! (cadr lines))))) (defun print-warning! (msg) "Print...
681cc7edc880afec19e30411846d8b34b1fd03c1b130c4bc21306fa2c21205cd
theoremprover-museum/LCF77
lcfm.lsp
(SETQ BASTYPES NIL) (SETQ LANG1 (QUOTE ML1)) (SETQ LANG2 (QUOTE ML2)) (SETQ LANGLP (QUOTE MLLP)) (SETQ METAPREC 20) (UNOP (QUOTE begin) (QUOTE (SECRTN (QUOTE MK/-BEGIN)))) (UNOP (QUOTE end) (QUOTE (SECRTN (QUOTE MK/-END)))) (UNOP TMLSYM (QUOTE (FAIL (QUOTE (STUFF MISSING))))) (UNOP (QUOTE true) (QUOTE (QUOTE (MK/-BOOLC...
null
https://raw.githubusercontent.com/theoremprover-museum/LCF77/7a43e95deee18ae37389d98e184b38fdfb3df923/src/lcfm.lsp
lisp
(SETQ BASTYPES NIL) (SETQ LANG1 (QUOTE ML1)) (SETQ LANG2 (QUOTE ML2)) (SETQ LANGLP (QUOTE MLLP)) (SETQ METAPREC 20) (UNOP (QUOTE begin) (QUOTE (SECRTN (QUOTE MK/-BEGIN)))) (UNOP (QUOTE end) (QUOTE (SECRTN (QUOTE MK/-END)))) (UNOP TMLSYM (QUOTE (FAIL (QUOTE (STUFF MISSING))))) (UNOP (QUOTE true) (QUOTE (QUOTE (MK/-BOOLC...
5b4f11b4c1b77997bfc192b6cba372fbff7670ee4dcb0f88c1af932dc47d7cfb
killme2008/defun
project.clj
(defproject defun "0.3.1" :description "A macro to define clojure functions with parameter pattern matching just like erlang or elixir." :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/core.match "0.3.0-alp...
null
https://raw.githubusercontent.com/killme2008/defun/5f6ac2e70c0ff42ac7ae41d924b993472cf89ed3/project.clj
clojure
(defproject defun "0.3.1" :description "A macro to define clojure functions with parameter pattern matching just like erlang or elixir." :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/core.match "0.3.0-alp...
9aebc6642a3313b5665ea55e561313aa95fc24150d7ab4bdce8ba49de87f2b7d
lasp-lang/types
causal_context.erl
%% Copyright ( c ) 2015 - 2016 . All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may obtain %% a copy of the License at %% %% -2.0 %% %% Unless required by applicable law ...
null
https://raw.githubusercontent.com/lasp-lang/types/e35b9b3a32b8f580daff1a7d1102813ad530835e/src/causal_context.erl
erlang
Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ----------------------------...
Copyright ( c ) 2015 - 2016 . All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY , , and ...
f7cc2cc5becbf6549174f9ae06e4693462d48b5cf5b4f132a3bfc01458985f8f
input-output-hk/plutus
Mark.hs
-- editorconfig-checker-disable-file module UntypedPlutusCore.Mark ( markNonFreshTerm , markNonFreshProgram ) where import Data.Set.Lens (setOf) import PlutusCore.Core (HasUniques) import PlutusCore.Name import PlutusCore.Quote import UntypedPlutusCore.Core -- | Marks all the 'Unique's in a term as used, ...
null
https://raw.githubusercontent.com/input-output-hk/plutus/cbd5f37288eb06738be28fc49af6a6b612e6c5fc/plutus-core/untyped-plutus-core/src/UntypedPlutusCore/Mark.hs
haskell
editorconfig-checker-disable-file | Marks all the 'Unique's in a term as used, so they will not be generated in future. Useful if you have a term which was not generated in 'Quote'. | Marks all the 'Unique's in a program as used, so they will not be generated in future. Useful if you have a program which was not g...
module UntypedPlutusCore.Mark ( markNonFreshTerm , markNonFreshProgram ) where import Data.Set.Lens (setOf) import PlutusCore.Core (HasUniques) import PlutusCore.Name import PlutusCore.Quote import UntypedPlutusCore.Core markNonFreshTerm :: (HasUniques (Term name uni fun ann), MonadQuote m) => Ter...
7e08cbfaf87f4a0acfe23ca2598feba51cfd8a6de40004f3bd7fb9358b479d3b
remixlabs/wasicaml
t000_hello.ml
let () = Testprint.string "x" "hello"; Testprint.int "y" 42; Testprint.float "z" 3.14
null
https://raw.githubusercontent.com/remixlabs/wasicaml/74ff72535aa8e49ab94a05d9c32c059ce264c1bb/test/t000_hello.ml
ocaml
let () = Testprint.string "x" "hello"; Testprint.int "y" 42; Testprint.float "z" 3.14
a2792fb7de680b7a1118f7026bff34353e020493f70c7c247625f7be493d02a3
typelead/etlas
ModuleShape.hs
# LANGUAGE DeriveGeneric # -- | See <-proposals/blob/backpack/proposals/0000-backpack.rst> module Distribution.Backpack.ModuleShape ( -- * Module shapes ModuleShape(..), emptyModuleShape, shapeInstalledPackage, ) where import Prelude () import Distribution.Compat.Prelude hiding (mod) import Distributi...
null
https://raw.githubusercontent.com/typelead/etlas/bbd7c558169e1fda086e759e1a6f8c8ca2807583/etlas-cabal/Distribution/Backpack/ModuleShape.hs
haskell
| See <-proposals/blob/backpack/proposals/0000-backpack.rst> * Module shapes --------------------------------------------------------------------- Module shapes 'InstalledPackageInfo'. | The default module shape, with no provisions and no requirements. Imagine this situation: component p signatur...
# LANGUAGE DeriveGeneric # module Distribution.Backpack.ModuleShape ( ModuleShape(..), emptyModuleShape, shapeInstalledPackage, ) where import Prelude () import Distribution.Compat.Prelude hiding (mod) import Distribution.ModuleName import Distribution.InstalledPackageInfo as IPI import Distribution.Back...
490df3f1cdb7e39a631474a585e7052e03fe4afee78b3da33ae48b0b41652b7c
umber-lang/umber
prelude.mli
open! Core val names : Sexp.t val llvm : string
null
https://raw.githubusercontent.com/umber-lang/umber/f14fc76b1370ca455726d517e957cd349c415284/umber_std/prelude.mli
ocaml
open! Core val names : Sexp.t val llvm : string
bc8d3bcf2cad683a7c94da523bafec7b0fbbb0a873d0a83f24f08bc1416fe406
input-output-hk/ouroboros-network
Rules.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE RecordWildCards #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # | Thin wrapper around the spec rules -- -- Intended for qualified import -- import qualified Ouroboros...
null
https://raw.githubusercontent.com/input-output-hk/ouroboros-network/2e801bd2fd136267906f5662717f6090444e8298/ouroboros-consensus-byronspec/src/Ouroboros/Consensus/ByronSpec/Ledger/Rules.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE RankNTypes # # LANGUAGE RecordWildCards # Intended for qualified import * Ledger * Rule context (exported for the benefit of the tests ------------------------------------------------------------------------------ Chain tick -------------------------------...
# LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # | Thin wrapper around the spec rules import qualified Ouroboros . Consensus . ByronSpec . Ledger . Rules as Rules module Ouroboros.Consensus.ByronSpec.Ledger.Rules ( applyChainTick * Lift STS transition rule...
f831acc1477148eeb8577a19cc6ef4291cf0582d3e09a059cfa20131546677ef
SoftwareFoundationGroupAtKyotoU/VeriCUDA
formula.ml
(* #use "topfind" #require "why3" #require "cil" *) open open Why3.Term open Why3api (* determine the kind (local/shared/global) of varinfo *) type var_kind = Local | Shared | Global | Formal let ty_of_kind k t = match k with | Local -> ty_local t | Shared -> ty_shared t | Global -> ty_global t | Form...
null
https://raw.githubusercontent.com/SoftwareFoundationGroupAtKyotoU/VeriCUDA/8c62058af5362cb1bd6c86121d9b8742e31706f2/formula.ml
ocaml
#use "topfind" #require "why3" #require "cil" determine the kind (local/shared/global) of varinfo let t_array_set1 t i v = t_app_infer fs_array_set [t; i; v] let rec t_array_set t indices v = match indices with | [] -> v (\* should raise an exception? *\) | i :: is -> t_ar...
open open Why3.Term open Why3api type var_kind = Local | Shared | Global | Formal let ty_of_kind k t = match k with | Local -> ty_local t | Shared -> ty_shared t | Global -> ty_global t | Formal -> t let t_tid_of t = t_app fs_tid_of [t] (Some ty_dim3) let t_bid_of t = t_app fs_bid_of [t] (Some ty_dim...
8ba239b49afdff8b7e5d838d51aa19d981d9d6a507bf6a634ade72d6cb45ffdf
yi-editor/yi
Eval.hs
{-# OPTIONS_HADDOCK show-extensions #-} -- | Module : Yi . . Vim . Eval -- License : GPL-2 -- Maintainer : -- Stability : experimental -- Portability : portable -- -- This module doesn't contains actual eval, see ' Yi . . Vim.pureEval ' comment . module Yi.Keymap.Vim.Eval (scheduleActionStri...
null
https://raw.githubusercontent.com/yi-editor/yi/58c239e3a77cef8f4f77e94677bd6a295f585f5f/yi-keymap-vim/src/Yi/Keymap/Vim/Eval.hs
haskell
# OPTIONS_HADDOCK show-extensions # | License : GPL-2 Maintainer : Stability : experimental Portability : portable This module doesn't contains actual eval, see
Module : Yi . . Vim . Eval ' Yi . . Vim.pureEval ' comment . module Yi.Keymap.Vim.Eval (scheduleActionStringForEval) where import Yi.Editor (EditorM) import Yi.Keymap.Vim.Common (EventString, VimState (vsStringToEval)) import Yi.Keymap.Vim.StateUtils (modifyStateE) scheduleActionStr...
d6636edb69c2a94fa7e52731bd55ede455be7c515f9343ec6d41d8e97956914a
Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library
PaymentLinksResourcePhoneNumberCollection.hs
{-# LANGUAGE MultiWayIf #-} CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . {-# LANGUAGE OverloadedStrings #-} -- | Contains the types generated from the schema PaymentLinksResourcePhoneNumberCollection module StripeAPI.Types.PaymentLin...
null
https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library/ba4401f083ff054f8da68c741f762407919de42f/src/StripeAPI/Types/PaymentLinksResourcePhoneNumberCollection.hs
haskell
# LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # | Contains the types generated from the schema PaymentLinksResourcePhoneNumberCollection | Defines the object schema located at @components.schemas.payment_links_resource_phone_number_collection@ in the specification. | enabled: If \`true\`, a phone number will ...
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . module StripeAPI.Types.PaymentLinksResourcePhoneNumberCollection where import qualified Control.Monad.Fail import qualified Data.Aeson import qualified Data.Aeson as Data.Aeson.Encoding.I...
48ca01f21531aaf15df04bf729d0681632ea0391b2e0bf86e571b6d452893a53
nomeata/free-theorems-static-webui
ValidSyntax.hs
-- | Declares data types which describe valid declarations and valid type -- signatures. A declaration or type signature is valid when all checks (see " Language . Haskell . FreeTheorems . Frontend " ) were passed successfully . module Language.Haskell.FreeTheorems.ValidSyntax where import Data.Generics (...
null
https://raw.githubusercontent.com/nomeata/free-theorems-static-webui/44149706c2b809734ab3848047e314359bc59ccb/free-theorems/src/Language/Haskell/FreeTheorems/ValidSyntax.hs
haskell
| Declares data types which describe valid declarations and valid type signatures. A declaration or type signature is valid when all checks (see | Marks a valid declaration. ^ Returns the declaration structure hidden in a valid declaration. ^ Indicates whether the declarations declares or depends on an alge...
" Language . Haskell . FreeTheorems . Frontend " ) were passed successfully . module Language.Haskell.FreeTheorems.ValidSyntax where import Data.Generics (Typeable, Data) import Data.Maybe (mapMaybe) import Language.Haskell.FreeTheorems.BasicSyntax data ValidDeclaration = ValidDeclaration { rawDeclar...
04d9a38aed3cf1107263e8fba3a56152a46ec8387a53373c40e9722c05cd652e
jeromesimeon/Galax
code_typeswitch.ml
(***********************************************************************) (* *) (* GALAX *) (* XQuery Engine *) (* ...
null
https://raw.githubusercontent.com/jeromesimeon/Galax/bc565acf782c140291911d08c1c784c9ac09b432/code_selection/code/code_typeswitch.ml
ocaml
********************************************************************* GALAX XQuery Engine ...
Copyright 2001 - 2007 . $ I d : code_typeswitch.ml , v 1.5 2007/02/01 22:08:45 simeon Exp $ open Code_selection_context open Code_util_matching open Cs_util_coercion open Cs_util open Error open Physical_sequence open Xquery_algebra_ast open Xquery_algebra_ast_util...
925648bec14913cc2e328c199b828d33262540aa2fae9be25f67883befc9df1f
JustusAdam/language-haskell
T0146b.hs
SYNTAX TEST " source.haskell " " Highlighting in multiline type declarations " type instance GetDecks = < ~~---- keyword.other.type.haskell -- ^^^^^^^^ keyword.other.instance.haskell ^^^^^^^^ storage.type.haskell ^ keyword.operator.eq.haskell MethodCall "getDecks" ...
null
https://raw.githubusercontent.com/JustusAdam/language-haskell/c9ee1b3ee166c44db9ce350920ba502fcc868245/test/tickets/T0146b.hs
haskell
-- keyword.other.type.haskell ^^^^^^^^ keyword.other.instance.haskell -- keyword.other.type.haskell ^^^^^^^^ keyword.other.instance.haskell -- keyword.other.type.haskell ^^^^^^^^ keyword.other.instance.haskell ^ keyword.operator.eq.haskell ------- storage.type.haskell -- keyword.othe...
SYNTAX TEST " source.haskell " " Highlighting in multiline type declarations " type instance GetDecks = ^^^^^^^^ storage.type.haskell ^ keyword.operator.eq.haskell MethodCall "getDecks" Cards ^^^^^^^^^^ ^^^^^ storage.type.haskell type instance GetDeck...
224ba012f930cbbd6c13fd84bb129245811f0a066294efd4cc2794e5696dfbae
leonoel/missionary
Ambiguous.cljs
(ns ^:no-doc missionary.impl.Ambiguous (:require [missionary.impl.Fiber :refer [Fiber fiber]]) (:import missionary.Cancelled)) (declare kill transfer suspend resume ready walk) (deftype Process [notifier terminator head tail child] IFn (-invoke [this] (kill this) nil) IDeref (-deref [this] (transfer this)...
null
https://raw.githubusercontent.com/leonoel/missionary/25c11692a3efb1a5d5726196f1d5d658dabe8cc3/src/missionary/impl/Ambiguous.cljs
clojure
(ns ^:no-doc missionary.impl.Ambiguous (:require [missionary.impl.Fiber :refer [Fiber fiber]]) (:import missionary.Cancelled)) (declare kill transfer suspend resume ready walk) (deftype Process [notifier terminator head tail child] IFn (-invoke [this] (kill this) nil) IDeref (-deref [this] (transfer this)...
d26da5ae63dd82ffae449e776be4baa59da466033d742bd7d6d7a939e559d01c
Happstack/happstack-server
Optional.hs
module Main where import Happstack.Server import Data.Maybe {- interesting urls: /?string=hello+world /?string / -} data MyStructure = MyStructure {unpack :: String} instance FromData MyStructure where fromData = do str <- look "string" return $ MyStructure str main :: IO () main = s...
null
https://raw.githubusercontent.com/Happstack/happstack-server/d9cdb9af5635b1ebd9db0801b66dbf4e58aba66b/attic/Examples/set/FromData/Optional.hs
haskell
interesting urls: /?string=hello+world /?string /
module Main where import Happstack.Server import Data.Maybe data MyStructure = MyStructure {unpack :: String} instance FromData MyStructure where fromData = do str <- look "string" return $ MyStructure str main :: IO () main = simpleHTTP nullConf $ do mbStructure <- getData ...
5e83ff354ab6c69f9475bd24cf7bb248b6783dbdb9a4821eaa8ef5cab687bb19
bmeurer/ocamljit2
ocaml299to3.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , Kyoto...
null
https://raw.githubusercontent.com/bmeurer/ocamljit2/ef06db5c688c1160acc1de1f63c29473bcd0055c/tools/ocaml299to3.ml
ocaml
********************************************************************* Objective Caml ...
, Kyoto University RIMS Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ Id$ open Lexer299 let input_buffer = B...
8eab0989101649645aec7d1e3687d1c4a38690a67858e1e77bf7788d87c77aa4
dmitryvk/sbcl-win32-threads
irrat.lisp
;;;; This file contains all the irrational functions. (Actually, most ;;;; of the work is done by calling out to C.) This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon University and...
null
https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/src/code/irrat.lisp
lisp
This file contains all the irrational functions. (Actually, most of the work is done by calling out to C.) more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. miscellaneous constants, utility f...
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") (defconstant pi #!+long-float 3.14159265358979323846264338327950288419716939937511l0 #!-long-...
9cde56c0cd90409f728a55cd2eb340678e65ab6a885ce6e91ed8d0b485827cf9
minoki/unboxing-vector
GenSpecializedVectorFunctions.hs
import Data.List import System.IO import System.Environment findDoubleColon :: String -> Maybe String findDoubleColon (' ':':':':':' ':xs) = Just "" -- " :: " ++ xs findDoubleColon (x:xs) = (x:) <$> findDoubleColon xs findDoubleColon [] = Nothing doLine :: String -> [String] doLine line = case findDoubleColon line of...
null
https://raw.githubusercontent.com/minoki/unboxing-vector/ca13ee80eb92e2a9a650eddbb75e8c5ebb03dfc1/scripts/GenSpecializedVectorFunctions.hs
haskell
" :: " ++ xs " p"
import Data.List import System.IO import System.Environment findDoubleColon :: String -> Maybe String findDoubleColon (x:xs) = (x:) <$> findDoubleColon xs findDoubleColon [] = Nothing doLine :: String -> [String] doLine line = case findDoubleColon line of Just name@('(':xs) -> [ line , name ...
4d5e87afa7b32fc150146c80e5b16ed7361e8086301aa8e4e652864a68a80d6d
ucsd-progsys/nate
frx_fit.ml
(***********************************************************************) (* *) MLTk , Tcl / Tk interface of Objective Caml (* *) , , and ...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/otherlibs/labltk/frx/frx_fit.ml
ocaml
********************************************************************* described in file LICENSE found in the...
MLTk , Tcl / Tk interface of Objective Caml , , and projet Cristal , INRIA Rocquencourt , Kyoto University RIMS Copyright 2002 Institut National de Recherche en Informatique et en Automatique and...
6add61d4ad3d95646b378d0b15ce3b6f4bbcacde19ef9fffc594dc9103a3fde6
alanz/ghc-exactprint
Roles.hs
# LANGUAGE RoleAnnotations , PolyKinds # module Roles where data T1 a = K1 a data T2 a = K2 a data T3 (a :: k) = K3 data T4 (a :: * -> *) b = K4 (a b) data T5 a = K5 a data T6 a = K6 data T7 a b = K7 b type role T1 nominal type role T2 representational type role T3 phantom type role T4 nominal _ type role T5 _
null
https://raw.githubusercontent.com/alanz/ghc-exactprint/b6b75027811fa4c336b34122a7a7b1a8df462563/tests/examples/ghc710/Roles.hs
haskell
# LANGUAGE RoleAnnotations , PolyKinds # module Roles where data T1 a = K1 a data T2 a = K2 a data T3 (a :: k) = K3 data T4 (a :: * -> *) b = K4 (a b) data T5 a = K5 a data T6 a = K6 data T7 a b = K7 b type role T1 nominal type role T2 representational type role T3 phantom type role T4 nominal _ type role T5 _
2b839e8040814cb6bf606f055452e6928da15fa988188ab49e66e923015f188e
louispan/ghcjs-base-stub
Internal.hs
{-# OPTIONS_GHC -Wno-redundant-constraints #-} {-# OPTIONS_GHC -Wno-unused-matches #-} # LANGUAGE ScopedTypeVariables , DeriveDataTypeable , , TypeOperators , TupleSections , FlexibleContexts , FlexibleInstances # TypeOperators, TupleSections, FlexibleContexts, FlexibleInstances #-} ...
null
https://raw.githubusercontent.com/louispan/ghcjs-base-stub/8eaee240c9af1a2290f4572a87528f3ddb3e9f12/src/GHCJS/Marshal/Internal.hs
haskell
# OPTIONS_GHC -Wno-redundant-constraints # # OPTIONS_GHC -Wno-unused-matches # ^ conversion is pure even if the original value is shared ^ conversion is pure if the we only convert once type PureOut a :: Purity toJSVal x = return (pToJSVal x) # INLINE fromJSValUnchecked # fixme should check that it's an array fr...
# LANGUAGE ScopedTypeVariables , DeriveDataTypeable , , TypeOperators , TupleSections , FlexibleContexts , FlexibleInstances # TypeOperators, TupleSections, FlexibleContexts, FlexibleInstances #-} module GHCJS.Marshal.Internal ( FromJSVal(..) , ToJSVal(....
f40f1034ba2ed810bdb30eb9da4af413a42eeff0510d02f55681e5aaa9fcbc7b
sacerdot/ocaml-http
http_response.ml
OCaml HTTP - do it yourself ( fully OCaml ) HTTP daemon Copyright ( C ) < 2002 - 2005 > < > This program is free software ; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation , version 2 . This pr...
null
https://raw.githubusercontent.com/sacerdot/ocaml-http/c13be78ad0fa4b2427feaf3777e20be4863115b9/http_response.ml
ocaml
optional because response have to be easily buildable in callback functions * if no address were supplied for client and/or server, use a foo address instead "version code reason_phrase" note that response objects can't be created with a None version sanity check on c
OCaml HTTP - do it yourself ( fully OCaml ) HTTP daemon Copyright ( C ) < 2002 - 2005 > < > This program is free software ; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation , version 2 . This pr...
c387252e93d1bec00571aa1f6228601d6efc3023e5f05a73697c57dcbed46502
KerfuffleV2/haskell-polysemy-test
Main.hs
# # # LANGUAGE TemplateHaskell # module Main where import Polysemy import Polysemy.Error import Polysemy.Input import Polysemy.Output import Polysemy.Reader import Polysemy.State import Prelude hiding (readLn) import System.Random (newStdGen, randomRs) import Text.Read (readMaybe) newtype RandState = RandStat...
null
https://raw.githubusercontent.com/KerfuffleV2/haskell-polysemy-test/3ba61c17f6ff8b91b2cf789deb87ec6e2884bcdb/src/example1/Main.hs
haskell
Note: Because of ScopedTypeVariables, r and its constraints are available in the function body.
# # # LANGUAGE TemplateHaskell # module Main where import Polysemy import Polysemy.Error import Polysemy.Input import Polysemy.Output import Polysemy.Reader import Polysemy.State import Prelude hiding (readLn) import System.Random (newStdGen, randomRs) import Text.Read (readMaybe) newtype RandState = RandStat...
473e0cc9d93b33ab6d618a2e983a52b9a21550fb1292d9d26acfe667c66d7b28
frenetic-lang/netcore-1.0
Benchmark.hs
module Main (main) where import Prelude hiding (init) import Control.Monad import qualified Data.Map as Map import Frenetic.NetCore import Frenetic.NetCore.Pretty import Frenetic.NetCore.Short (size) import Frenetic.TopoGen import Frenetic.PolicyGen import Frenetic.Slices.Compile import Frenetic.Slices.VlanAssignment ...
null
https://raw.githubusercontent.com/frenetic-lang/netcore-1.0/976b08b740027e8ed19f2d55b1e77f663bee6f02/src/Benchmark.hs
haskell
compilation relies on distinct (slice, policy) pairs.
module Main (main) where import Prelude hiding (init) import Control.Monad import qualified Data.Map as Map import Frenetic.NetCore import Frenetic.NetCore.Pretty import Frenetic.NetCore.Short (size) import Frenetic.TopoGen import Frenetic.PolicyGen import Frenetic.Slices.Compile import Frenetic.Slices.VlanAssignment ...
c4de46d2016855d4ad70cc6a13598c364cf9f97273c606dbad12aa81653356ff
TerrorJack/ghc-alter
Imp.hs
# LANGUAGE Unsafe # # LANGUAGE NoImplicitPrelude # {-# OPTIONS_HADDOCK hide #-} ----------------------------------------------------------------------------- -- | -- Module : Foreign.ForeignPtr.Imp Copyright : ( c ) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/base/LI...
null
https://raw.githubusercontent.com/TerrorJack/ghc-alter/db736f34095eef416b7e077f9b26fc03aa78c311/ghc-alter/boot-lib/base/Foreign/ForeignPtr/Imp.hs
haskell
# OPTIONS_HADDOCK hide # --------------------------------------------------------------------------- | Module : Foreign.ForeignPtr.Imp License : BSD-style (see the file libraries/base/LICENSE) Stability : provisional Portability : portable The 'ForeignPtr' type and operations. This module is pa...
# LANGUAGE Unsafe # # LANGUAGE NoImplicitPrelude # Copyright : ( c ) The University of Glasgow 2001 Maintainer : Foreign Function Interface ( FFI ) and will usually be imported via module Foreign.ForeignPtr.Imp ( ForeignPtr , FinalizerPtr , FinalizerEnvPtr ,...
20493fb3eeaad7780480f829c95d256efbfa4201d2a7c5cf56425793183f82ac
databrary/databrary
Types.hs
# LANGUAGE TemplateHaskell , LambdaCase # module Model.Identity.Types ( Identity(..) , MonadHasIdentity , extractFromIdentifiedSessOrDefault , identityVerf , identityAdmin , identitySuperuser ) where import qualified Data.ByteString as BS import Has (Has(..), MonadHas) import Model.Id.Types import Model...
null
https://raw.githubusercontent.com/databrary/databrary/685f3c625b960268f5d9b04e3d7c6146bea5afda/src/Model/Identity/Types.hs
haskell
| Who is making the request that we are handling? ^ User may have an identity, but they have not established it yet ^ We don't care what the user's identity is. running unprotected routes for 'determineIdentity'. ^ Speculation: used in video conversion when sending results from the compute cluster back to the sy...
# LANGUAGE TemplateHaskell , LambdaCase # module Model.Identity.Types ( Identity(..) , MonadHasIdentity , extractFromIdentifiedSessOrDefault , identityVerf , identityAdmin , identitySuperuser ) where import qualified Data.ByteString as BS import Has (Has(..), MonadHas) import Model.Id.Types import Model...
29bb670578b0a87c51e522454c6e3519eec39d902930a3949f69659480177369
Clojure2D/clojure2d-examples
texture.clj
(ns rt4.the-next-week.ch05g.texture (:require [fastmath.core :as m] [fastmath.vector :as v] [clojure2d.pixels :as p] [clojure2d.core :as c2d] [rt4.color :as color] [rt4.the-next-week.ch05g.perlin :as perlin] [fastmath.random :as r])) (set! *warn...
null
https://raw.githubusercontent.com/Clojure2D/clojure2d-examples/ead92d6f17744b91070e6308157364ad4eab8a1b/src/rt4/the_next_week/ch05g/texture.clj
clojure
using fastmath fbm-noise, which is much much faster also using code from version 3.x
(ns rt4.the-next-week.ch05g.texture (:require [fastmath.core :as m] [fastmath.vector :as v] [clojure2d.pixels :as p] [clojure2d.core :as c2d] [rt4.color :as color] [rt4.the-next-week.ch05g.perlin :as perlin] [fastmath.random :as r])) (set! *warn...
b24d98bc56f7e3c7bcd16291562ac7c8e865c5ee78b0cf5ec12f4967ae3e1725
clj-kondo/clj-kondo
meta.clj
(ns ^{:no-doc true} clj-kondo.impl.rewrite-clj.node.meta (:require [clj-kondo.impl.rewrite-clj.node [protocols :as node] [whitespace :as ws]])) ;; ## Node (defrecord MetaNode [tag prefix children] node/Node (tag [_] tag) (printable-only? [_] false) (sexpr [_] (let [[mta data] (...
null
https://raw.githubusercontent.com/clj-kondo/clj-kondo/626978461cbf113c376634cdf034d7262deb429f/parser/clj_kondo/impl/rewrite_clj/node/meta.clj
clojure
## Node
(ns ^{:no-doc true} clj-kondo.impl.rewrite-clj.node.meta (:require [clj-kondo.impl.rewrite-clj.node [protocols :as node] [whitespace :as ws]])) (defrecord MetaNode [tag prefix children] node/Node (tag [_] tag) (printable-only? [_] false) (sexpr [_] (let [[mta data] (node/sexprs...
64ea5ff896de37a751ab5099a825bdbe0f812387dabc3c0005b2fe7e1d8ad5c5
anuragsoni/ocaml-opium-unikernel
unikernel.ml
open Lwt.Infix module Server (T : Mirage_time.S) (PClock : Mirage_clock.PCLOCK) (StackV4 : Mirage_stack.V4) = struct module Paf = Paf.Make (T) (StackV4) module Logs_reporter = Mirage_logs.Make (PClock) module App = struct open Opium_kernel let content = {| <!DOCTYPE html> <html> <...
null
https://raw.githubusercontent.com/anuragsoni/ocaml-opium-unikernel/8e76a20e8c81f7fb03840ecd94bfa2eba1f19d83/unikernel.ml
ocaml
open Lwt.Infix module Server (T : Mirage_time.S) (PClock : Mirage_clock.PCLOCK) (StackV4 : Mirage_stack.V4) = struct module Paf = Paf.Make (T) (StackV4) module Logs_reporter = Mirage_logs.Make (PClock) module App = struct open Opium_kernel let content = {| <!DOCTYPE html> <html> <...
77c20caf844b4f1c70827218416302fb902d802a3bdca21ce92e7608313470e6
xapi-project/ocaml-crc
crc.mli
* Copyright ( C ) 2013 Citrix Inc * * Permission to use , copy , modify , and/or 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/xapi-project/ocaml-crc/53b798d8d5335e1c2f20e30878b6f2e80c3d73b4/lib/crc.mli
ocaml
* Copyright ( C ) 2013 Citrix Inc * * Permission to use , copy , modify , and/or 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...
bcd37c0af36748fa66d2a05701735a1df69d5bf6a5a43d72c8566e3d945b9617
Workiva/eva
flatten.clj
Copyright 2015 - 2019 Workiva Inc. ;; ;; Licensed under the Eclipse Public License 1.0 (the "License"); ;; you may not use this file except in compliance with the License. ;; You may obtain a copy of the License at ;; ;; -1.0.php ;; ;; Unless required by applicable law or agreed to in writing, software dist...
null
https://raw.githubusercontent.com/Workiva/eva/b7b8a6a5215cccb507a92aa67e0168dc777ffeac/core/src/eva/v2/transaction_pipeline/resolve/maps/flatten.clj
clojure
Licensed under the Eclipse Public License 1.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at -1.0.php Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expre...
Copyright 2015 - 2019 Workiva Inc. distributed under the License is distributed on an " AS IS " BASIS , (ns eva.v2.transaction-pipeline.resolve.maps.flatten "Provides the logic for recursively flattening map entities in a transaction." (:require [eva.v2.transaction-pipeline.type.map :refer [->map-entity normal...
78602d1ad826291a3526faf27340b7d8c3ca666816bd6eadcc6624408526cde9
yetanalytics/sse-fx
event_source.cljs
(ns com.yetanalytics.sse-fx.event-source "Fx/CoFX for EventSource objects" (:require [com.yetanalytics.sse-fx.codec :as codec] [re-frame.core :as re-frame])) (defn event-source-error "Wrap event source errors." [error-map & [?cause]] (if ?cause (ex-info "EventSource Error" (merge...
null
https://raw.githubusercontent.com/yetanalytics/sse-fx/0d1cf6f271ea15d3d4a24d898caca6542d754b54/src/com/yetanalytics/sse_fx/event_source.cljs
clojure
map of uri (or another key) to map wrapping event source object if present, used instead of the uri handler vectors A special handler that will be stored and called if close fx is fired any override args for event source Close any open connections with this key register init register get register close
(ns com.yetanalytics.sse-fx.event-source "Fx/CoFX for EventSource objects" (:require [com.yetanalytics.sse-fx.codec :as codec] [re-frame.core :as re-frame])) (defn event-source-error "Wrap event source errors." [error-map & [?cause]] (if ?cause (ex-info "EventSource Error" (merge...
a68255d2acaec2b6d002471ab31b1966e29ba3f6103445e7107fb31cfca5f77d
racket/typed-racket
scoped-tvar-env.rkt
#lang racket/base Maintain mapping of type variables introduced by literal Alls in type annotations . (require "../utils/utils.rkt" "../private/syntax-properties.rkt" syntax/parse syntax/id-table racket/match) (provide register-scoped-tvars lookup-scoped-tvars add-scope...
null
https://raw.githubusercontent.com/racket/typed-racket/6ea20bec8d41e1a188d7f831c35423293a89c98e/typed-racket-lib/typed-racket/env/scoped-tvar-env.rkt
racket
Annotate the given expression with the given identifiers if it is safe. If there are no identifiers, then nothing is done. Safe expressions are lambda, case-lambda, or the expansion of keyword and opt-lambda forms. Returns the identifiers associated with a given syntax object. There can be multiple sections of ide...
#lang racket/base Maintain mapping of type variables introduced by literal Alls in type annotations . (require "../utils/utils.rkt" "../private/syntax-properties.rkt" syntax/parse syntax/id-table racket/match) (provide register-scoped-tvars lookup-scoped-tvars add-scope...
acd0b09bc84de184dcc231a77201b00dd5d7d72c3e46088b35df18cc84624b54
mars0i/masonclj
Sim.clj
This software is copyright 2016 , 2017 , 2018 , 2019 , 2022 by , and is distributed under the Gnu General Public License version 3.0 ;; as specified in the the file LICENSE. ;(set! *warn-on-reflection* true) (ns example.Sim (:require [clojure.tools.cli] [masonclj.params :as mp] [exampl...
null
https://raw.githubusercontent.com/mars0i/masonclj/0dee37892c94b1ac0a1c7c3f92c5a52ae91f4fc6/example/src/example/Sim.clj
clojure
as specified in the the file LICENSE. (set! *warn-on-reflection* true) To see what code will be generated, try this in a repl: (require '[masonclj.params :as mp]) Then pass the defparams expression below, single-quoted, to (clojure.pprint/pprint (macroexpand-1 ...)). uses them for single-dash options: c d f ...
This software is copyright 2016 , 2017 , 2018 , 2019 , 2022 by , and is distributed under the Gnu General Public License version 3.0 (ns example.Sim (:require [clojure.tools.cli] [masonclj.params :as mp] [example.snipe :as sn] [example.popenv :as pe]) (:import [sim.engine...
d4c69e7b66e74ef43f50d23eff9bc18314aedfa358a9d6cfecc143190917e7f6
CSCfi/rems
categories.cljs
(ns rems.administration.categories (:require [re-frame.core :as rf] [rems.administration.administration :as administration] [rems.atoms :as atoms :refer [document-title]] [rems.flash-message :as flash-message] [rems.common.roles :as roles] [rems.spinner :as ...
null
https://raw.githubusercontent.com/CSCfi/rems/8b715a6452dcb5afe64cb9beaafd2a567b2c68e6/src/cljs/rems/administration/categories.cljs
clojure
secondary sort-key is the same in the catalogue
(ns rems.administration.categories (:require [re-frame.core :as rf] [rems.administration.administration :as administration] [rems.atoms :as atoms :refer [document-title]] [rems.flash-message :as flash-message] [rems.common.roles :as roles] [rems.spinner :as ...
4360f8985eb68d1362a55ea5bf5c520c0012720ea0d798a593abf96bfca0a202
wargrey/graphics
resize.rkt
#lang typed/racket/base (provide (all-defined-out)) (require (for-syntax racket/base)) (define-syntax (define-cropper stx) (syntax-case stx [: ->] [(_ bitmap-crop : (-> Args ... Bitmap) (#:lambda λargs λmain ...) #:with (frmt [tips left% top%] ...)) (with-syntax ([(bitmap-cropper ...) ...
null
https://raw.githubusercontent.com/wargrey/graphics/50751297f244a01ac734099b9a1e9be97cd36f3f/bitmap/digitama/resize.rkt
racket
(define-enumeration* filter-option #:+> Filter-Algorithm ; order matters
#lang typed/racket/base (provide (all-defined-out)) (require (for-syntax racket/base)) (define-syntax (define-cropper stx) (syntax-case stx [: ->] [(_ bitmap-crop : (-> Args ... Bitmap) (#:lambda λargs λmain ...) #:with (frmt [tips left% top%] ...)) (with-syntax ([(bitmap-cropper ...) ...
dd9a8d045bdb548e26c3fc9fe2e9a815026c8da7d175985a4f134d41dd91fae9
scrintal/heroicons-reagent
document_minus.cljs
(ns com.scrintal.heroicons.solid.document-minus) (defn render [] [:svg {:xmlns "" :viewBox "0 0 24 24" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M5.625 1.5H9a3.75 3.75 0 013.75 3.75v1.875c0 1.036.84 1.875 1.875 1.875H16....
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/solid/document_minus.cljs
clojure
(ns com.scrintal.heroicons.solid.document-minus) (defn render [] [:svg {:xmlns "" :viewBox "0 0 24 24" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M5.625 1.5H9a3.75 3.75 0 013.75 3.75v1.875c0 1.036.84 1.875 1.875 1.875H16....
fb5c38d52512cba0dbf4dce102b8326fc891245e6b5f3ee82b855d34e2551c14
fakedata-haskell/fakedata
Suits.hs
# LANGUAGE TemplateHaskell # {-# LANGUAGE OverloadedStrings #-} module Faker.TvShow.Suits where import Data.Text (Text) import Faker (Fake(..)) import Faker.Provider.Suits import Faker.TH $(generateFakeField "suits" "characters") $(generateFakeField "suits" "quotes")
null
https://raw.githubusercontent.com/fakedata-haskell/fakedata/e6fbc16cfa27b2d17aa449ea8140788196ca135b/src/Faker/TvShow/Suits.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE TemplateHaskell # module Faker.TvShow.Suits where import Data.Text (Text) import Faker (Fake(..)) import Faker.Provider.Suits import Faker.TH $(generateFakeField "suits" "characters") $(generateFakeField "suits" "quotes")
34ecd480f90c88b46acd52221157fded550d5c5e0effafe56538dfd765a17a57
vmchale/atspkg
Build.hs
-- | Integration with @Cabal@. module Distribution.ATS.Build ( cabalHooks , atsPolyglotBuild ) where TODO use confHook to set extra - libraries and extra - lib - dirs ourselves ? import Control.Concurrent.ParallelIO.Global import Distrib...
null
https://raw.githubusercontent.com/vmchale/atspkg/45be7ece6b9e9b09a7151efe53ff7e278112e84d/ats-pkg/src/Distribution/ATS/Build.hs
haskell
| Integration with @Cabal@. | Use this in place of 'defaultMain' for a simple build. ^ New library directory (absolute) | Write a dummy file that will allow packaging to work. | This uses the users hooks as is @simpleUserHooks@, modified to build the ideally in a library of its own for C builds
module Distribution.ATS.Build ( cabalHooks , atsPolyglotBuild ) where TODO use confHook to set extra - libraries and extra - lib - dirs ourselves ? import Control.Concurrent.ParallelIO.Global import Distribution.PackageDescription import...
08e9dbabf735d5160cd124e9a5c62b92598fb937b9892f353a0a3203e908b03b
fakedata-haskell/fakedata
Config.hs
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TemplateHaskellQuotes #-} -- | Internal module used for configuration purposes. You don't likely -- have to use it. module Config ( SourceData(..) , fetchData , fetchDataSingle , mapSource , populateLocales ) where import Control.Monad (filterM) import Contr...
null
https://raw.githubusercontent.com/fakedata-haskell/fakedata/ea938c38845b274e28abe7f4e8e342f491e83c89/src/Config.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE TemplateHaskellQuotes # | Internal module used for configuration purposes. You don't likely have to use it.
module Config ( SourceData(..) , fetchData , fetchDataSingle , mapSource , populateLocales ) where import Control.Monad (filterM) import Control.Monad.Catch import Control.Monad.IO.Class import qualified Data.ByteString as BS import qualified Data.HashMap.Strict as HM import Data.Monoid ((<>)) import Data...
3f076d4fcea52c4c7cefe095a217baaa8770c637395b79a20e1f013a0f0195b5
kitlang/kit
ConcreteTypeBase.hs
# LANGUAGE DeriveGeneric # # LANGUAGE PatternSynonyms # module Kit.Ast.ConcreteTypeBase where import Control.Monad import Data.Hashable import Data.List import GHC.Generics import Kit.Ast.BasicType import Kit.Ast.Definitions.ArgSpec import Kit.Ast.ModulePath import Kit.Ast.Span import Kit.Ast.TypePath import Kit.Ast....
null
https://raw.githubusercontent.com/kitlang/kit/2769a7a8e51fe4466c50439d1a1ebdad0fb79710/src/Kit/Ast/ConcreteTypeBase.hs
haskell
defined in a typedef; otherwise we have no way to reference the type concreteTypeAbbreviation t = case t of TypeAnonEnum [Str] TypeBasicType t = "b" ++ basicTypeAbbreviation t TypeEnumConstructor TypePath Str ConcreteArgs [ConcreteType] TypeTraitConstraint TraitConstraint TypeTypeOf TypePath TypeTyp...
# LANGUAGE DeriveGeneric # # LANGUAGE PatternSynonyms # module Kit.Ast.ConcreteTypeBase where import Control.Monad import Data.Hashable import Data.List import GHC.Generics import Kit.Ast.BasicType import Kit.Ast.Definitions.ArgSpec import Kit.Ast.ModulePath import Kit.Ast.Span import Kit.Ast.TypePath import Kit.Ast....
1518d1ceb28a6239dea9c05e537dcd0216e457487251e5ed234f56adc236b78e
teropa/nlp
concordance.clj
(ns teropa.nlp.concordance (:require [clojure.contrib.string :as string]) (:require [teropa.nlp.corpus.corpus-reader :as c]) (:use teropa.nlp.util)) (defn- print-conc [concordance] (println "Displaying" (count concordance) "matches") (doseq [c concordance] (println c))) (defprotocol Concordance (conco...
null
https://raw.githubusercontent.com/teropa/nlp/f89bc5a15b516208de1cfe2abe9692b7ed9a43e2/src/teropa/nlp/concordance.clj
clojure
approx number of words of context
(ns teropa.nlp.concordance (:require [clojure.contrib.string :as string]) (:require [teropa.nlp.corpus.corpus-reader :as c]) (:use teropa.nlp.util)) (defn- print-conc [concordance] (println "Displaying" (count concordance) "matches") (doseq [c concordance] (println c))) (defprotocol Concordance (conco...
8ef1c5a100c61ffe943a9c3d27430057084ab509410b7114d3859cf1529f8e5b
instedd/planwise
utils_test.cljs
(ns planwise.client.utils-test (:require [cljs.test :as t :refer-macros [deftest is]] [clojure.string :as str] [planwise.client.utils :as sut] [planwise.common :as common])) (deftest pluralize-test (is (= "1 site" (common/pluralize 1 "site"))) (is (= "2 sites" (common/plurali...
null
https://raw.githubusercontent.com/instedd/planwise/1bc2a5742ae3dc377dddf1f9e9bb60f0d2f59084/client/test/planwise/client/utils_test.cljs
clojure
(ns planwise.client.utils-test (:require [cljs.test :as t :refer-macros [deftest is]] [clojure.string :as str] [planwise.client.utils :as sut] [planwise.common :as common])) (deftest pluralize-test (is (= "1 site" (common/pluralize 1 "site"))) (is (= "2 sites" (common/plurali...
6e4ab24c5cb88f8b9f8fec674ada0f99d366042f78fab2cc51075268a7055bcf
helium/router
test_utils.erl
-module(test_utils). -export([ init_per_testcase/2, end_per_testcase/2, add_oui/1, start_swarm/3, get_device_channels_worker/1, get_channel_worker_event_manager/1, get_channel_worker_channels_map/1, get_channel_worker_device/1, get_channel_worker_backoff_map/1, get_device_last_s...
null
https://raw.githubusercontent.com/helium/router/117cf4240cdd742eb6fb20db8ec1d6a63f64bd95/test/test_utils.erl
erlang
Clean up router_blockchain to avoid old chain from previous test Chain = blockchain_worker:blockchain(), ok = persistent_term:put(router_blockchain, Chain), end), meck:expect(router_blockchain, sc_version, fun() -> 2 end), meck:expect(router_blockchain, max_open_sc, fun() -> 5 end), Clean up router_blockchain to...
-module(test_utils). -export([ init_per_testcase/2, end_per_testcase/2, add_oui/1, start_swarm/3, get_device_channels_worker/1, get_channel_worker_event_manager/1, get_channel_worker_channels_map/1, get_channel_worker_device/1, get_channel_worker_backoff_map/1, get_device_last_s...
69183f80374b2f786b282bf2bfda91545412f86e8d73d4036cb3b10b905aa6bc
glguy/advent2019
Day06.hs
# Language ImportQualifiedPost , OverloadedStrings # | Module : Main Description : Day 6 solution Copyright : ( c ) , 2019 License : ISC Maintainer : < > Module : Main Description : Day 6 solution Copyright : (c) Eric Mertens, 2019 License : ISC Maintainer : <> -} modu...
null
https://raw.githubusercontent.com/glguy/advent2019/13f3be89535c12cbae761a6d4165432a2459ccd5/execs/Day06.hs
haskell
routes from COM leading to YOU and SAN remove the common prefix and then return the length of the remainder
# Language ImportQualifiedPost , OverloadedStrings # | Module : Main Description : Day 6 solution Copyright : ( c ) , 2019 License : ISC Maintainer : < > Module : Main Description : Day 6 solution Copyright : (c) Eric Mertens, 2019 License : ISC Maintainer : <> -} modu...
2d90ee85cca23dfe470a7afbcf801505aae93b8e000046029567483b86972c0c
SquidDev/illuaminate
illuaminate.ml
(** "illuamninate" is the complete distribution. *) let () = Illuaminate_cli.run ()
null
https://raw.githubusercontent.com/SquidDev/illuaminate/da18b101b4710881b71c42554d70a3a7d17c3cd6/src/bin/cli/illuaminate.ml
ocaml
* "illuamninate" is the complete distribution.
let () = Illuaminate_cli.run ()
c9d62c3abf6c42e140f04ebfb854495ab5c7f87893cd309f76b30c803801ba1d
fdopen/uwt
uwt_throttle.mli
This file is part of uwt , released under the MIT license . See LICENSE.md for details , or visit . details, or visit . *) (** Rate limiters *) (** This module defines rate limiters. A rate limiter is parametrized by its limit and a maximum waiting time. The [wait] function will collaboratively han...
null
https://raw.githubusercontent.com/fdopen/uwt/44276aa6755b92eddc9ad58662a968afad243e8b/src/uwt_throttle.mli
ocaml
* Rate limiters * This module defines rate limiters. A rate limiter is parametrized by its limit and a maximum waiting time. The [wait] function will collaboratively hang for a delay necessary to respect the limit. If that delay exceeds the maximum waiting time, [wait] returns [false]; otherwise it ret...
This file is part of uwt , released under the MIT license . See LICENSE.md for details , or visit . details, or visit . *) module type S = sig type key type t val create : rate:int -> max:int -> n:int -> t * @param rate maximum number of connections per second @param max maximum w...
3ab9968055621a5c3137993ae266206c3107251a5bf379e4ee73bc3ec46f8d45
Intervox/clj-progress
project.clj
(defproject intervox/clj-progress "0.2.1" :description "Flexible clojure progress bar" :url "-progress" :license {:name "Eclipse Public License" :url "-v10.html"} :lein-release {:deploy-via :clojars :scm :git} :dependencies [[org.clojure/clojure "1.6.0"]])
null
https://raw.githubusercontent.com/Intervox/clj-progress/bf67707a76473fc4a618629e1c9c20c2232da45c/project.clj
clojure
(defproject intervox/clj-progress "0.2.1" :description "Flexible clojure progress bar" :url "-progress" :license {:name "Eclipse Public License" :url "-v10.html"} :lein-release {:deploy-via :clojars :scm :git} :dependencies [[org.clojure/clojure "1.6.0"]])
9b7b25879e2bd8688b238ee5a09153b661add4bf40145dc9fc119fc3dbb1bb7d
tnelson/Forge
setComprehensions.rkt
#lang forge option run_sterling off option verbose 0 sig A { otherA: one A } sig B { otherB: one A } pred ComprehensionsOnSigs { {a: A | a->a in otherA} = A.(otherA & iden) } pred ComprehensionsOnSets { {x: A + B | some y: A | x.otherA = y or x.otherB = y} = (otherA + otherB).A } pred MultiCompr...
null
https://raw.githubusercontent.com/tnelson/Forge/a7187ef110f46493c1d45011035b05646b9ccd22/forge/tests/forge/expressions/setComprehensions.rkt
racket
#lang forge option run_sterling off option verbose 0 sig A { otherA: one A } sig B { otherB: one A } pred ComprehensionsOnSigs { {a: A | a->a in otherA} = A.(otherA & iden) } pred ComprehensionsOnSets { {x: A + B | some y: A | x.otherA = y or x.otherB = y} = (otherA + otherB).A } pred MultiCompr...