_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
408a0a3b1dba2d241f99f363cbca90bda0356a864c88813e2767723225825b5b
TrustInSoft/tis-kernel
plugin.mli
(**************************************************************************) (* *) This file is part of . (* *) is a fork of Frama - C. Al...
null
https://raw.githubusercontent.com/TrustInSoft/tis-kernel/748d28baba90c03c0f5f4654d2e7bb47dfbe4e7d/src/kernel_services/plugin_entry_points/plugin.mli
ocaml
************************************************************************ ...
This file is part of . is a fork of Frama - C. All the differences are : Copyright ( C ) 2016 - 2017 is released under GPLv2 This file is part of Frama - C. Copyright ( C ) 2007 - 2015 ...
9c0f08ea0506c4f96ac78d67eda0904a1e551f806b835f99af987b3abac905d4
dktr0/estuary
Router.hs
# LANGUAGE RecursiveDo , ScopedTypeVariables , FlexibleContexts # module Estuary.Widgets.Router( router, router', getInitialState ) where import Control.Monad.IO.Class import Control.Monad.Fix (MonadFix) import Data.Maybe import GHCJS.DOM.EventM(on, event) import GHCJS.DOM.Types(ToJSString(..), FromJSString(....
null
https://raw.githubusercontent.com/dktr0/estuary/c08a4790533c983ba236468e0ae197df50f2109f/client/src/Estuary/Widgets/Router.hs
haskell
Triggered ambiently (back button or otherwise). If the state is null or can't be decoded, fall back into the initial state. Triggered via a page widget (dynPage is the recursive value from further below). When a change is explicitly triggered, we notify the history via pushPageState. The router state is changed wh...
# LANGUAGE RecursiveDo , ScopedTypeVariables , FlexibleContexts # module Estuary.Widgets.Router( router, router', getInitialState ) where import Control.Monad.IO.Class import Control.Monad.Fix (MonadFix) import Data.Maybe import GHCJS.DOM.EventM(on, event) import GHCJS.DOM.Types(ToJSString(..), FromJSString(....
067df133a4b7967dd81743a981c27d049bc3794b650a533230cf8c21f4ec7c10
tfausak/strive
Enums.hs
{-# LANGUAGE OverloadedStrings #-} -- | Types for choosing an option from a limited set. module Strive.Enums ( ActivityType (..), ActivityZoneType (..), AgeGroup (..), ClubType (..), FrameType (..), Gender (..), MeasurementPreference (..), PhotoType (..), Resolution (..), Resource...
null
https://raw.githubusercontent.com/tfausak/strive/82294daca85ca624ca1e746d7aa4c01d57233356/source/library/Strive/Enums.hs
haskell
# LANGUAGE OverloadedStrings # | Types for choosing an option from a limited set. | An activity's type. | An activity zone's type. | An athlete's age group. | A club's type. | A bike's frame type. | An athlete's gender. | An athlete's measurement preference. | A photo's type. | A stream's resolution. | A res...
module Strive.Enums ( ActivityType (..), ActivityZoneType (..), AgeGroup (..), ClubType (..), FrameType (..), Gender (..), MeasurementPreference (..), PhotoType (..), Resolution (..), ResourceState (..), SegmentActivityType (..), SeriesType (..), SportType (..), St...
4f5f80ee320140b678f7e780e638428612bc107b74e893b432fdd478fc88ad7e
ghc/testsuite
SafeLang09_A.hs
# LANGUAGE FlexibleInstances # -- | Trusted library that unsafe plugins can use module SafeLang09_A where class Pos a where res :: a -> Bool -- Any call to res with a list in out TCB -- should use this method and never a more -- specific one provided by an untrusted module instance Pos [a] where res _ = True...
null
https://raw.githubusercontent.com/ghc/testsuite/998a816ae89c4fd573f4abd7c6abb346cf7ee9af/tests/safeHaskell/safeLanguage/SafeLang09_A.hs
haskell
| Trusted library that unsafe plugins can use Any call to res with a list in out TCB should use this method and never a more specific one provided by an untrusted module
# LANGUAGE FlexibleInstances # module SafeLang09_A where class Pos a where res :: a -> Bool instance Pos [a] where res _ = True
db67f56958019f20818d7fbc93095ce1fa0501752fe42f8f79a0a2c2bf6372a5
tsloughter/kuberl
kuberl_v1_cluster_role_binding_list.erl
-module(kuberl_v1_cluster_role_binding_list). -export([encode/1]). -export_type([kuberl_v1_cluster_role_binding_list/0]). -type kuberl_v1_cluster_role_binding_list() :: #{ 'apiVersion' => binary(), 'items' := list(), 'kind' => binary(), 'metadata' => kuberl_v1_list_meta:kuberl_v1_list_meta()...
null
https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_v1_cluster_role_binding_list.erl
erlang
-module(kuberl_v1_cluster_role_binding_list). -export([encode/1]). -export_type([kuberl_v1_cluster_role_binding_list/0]). -type kuberl_v1_cluster_role_binding_list() :: #{ 'apiVersion' => binary(), 'items' := list(), 'kind' => binary(), 'metadata' => kuberl_v1_list_meta:kuberl_v1_list_meta()...
649b6d87941a0619c2967ead18d710838c30a669e799f6bbcb5cb5d6f9f43990
Twinside/Rasterific
QuadraticFormula.hs
module Graphics.Rasterific.QuadraticFormula( QuadraticFormula( .. ) , discriminant , formulaRoots ) where -- | Represent an equation `a * x^2 + b * x + c = 0` data QuadraticFormula a = Quadr...
null
https://raw.githubusercontent.com/Twinside/Rasterific/709e2828d6378aa82f133a881665f2fa951e0204/src/Graphics/Rasterific/QuadraticFormula.hs
haskell
| Represent an equation `a * x^2 + b * x + c = 0` ^ Coefficient for the square part (x^2) ^ Coefficient the linear part (x) ^ Constant # INLINE (<*>) # | Discriminant equation, if the result is: * Below 0, then the formula doesn't have any solution * Equal to 0, then the formula has an unique root. | Extr...
module Graphics.Rasterific.QuadraticFormula( QuadraticFormula( .. ) , discriminant , formulaRoots ) where data QuadraticFormula a = QuadraticFormula } instance Functor QuadraticFormula ...
d8996ec7fdf91c1e99278ff82e4f0120a3eab739e241b988ec56edd608fddf99
Enecuum/Node
Model.hs
module Enecuum.Samples.Blockchain.DB.Model where import qualified Enecuum.Core.Types as D data KBlocksDB instance D.DB KBlocksDB where getDbName = "kblocks" data KBlocksMetaDB instance D.DB KBlocksMetaDB where getDbName = "kblocks_meta" data MBlocksDB instance D.DB MBlocksDB where getDbName = "mblocks" ...
null
https://raw.githubusercontent.com/Enecuum/Node/3dfbc6a39c84bd45dd5f4b881e067044dde0153a/src/Enecuum/Samples/Blockchain/DB/Model.hs
haskell
module Enecuum.Samples.Blockchain.DB.Model where import qualified Enecuum.Core.Types as D data KBlocksDB instance D.DB KBlocksDB where getDbName = "kblocks" data KBlocksMetaDB instance D.DB KBlocksMetaDB where getDbName = "kblocks_meta" data MBlocksDB instance D.DB MBlocksDB where getDbName = "mblocks" ...
3504ac73d7ca92e34b708eefc8a45aade35207404f59fd7bf1e79b71a1f5fd3a
melange-re/melange
pq_test.ml
module PrioQueue = struct type priority = int type 'a queue = Empty | Node of priority * 'a * 'a queue * 'a queue let empty = Empty let rec insert queue prio elt = match queue with Empty -> Node(prio, elt, Empty, Empty) | Node(p, e, left, right) -> if pr...
null
https://raw.githubusercontent.com/melange-re/melange/246e6df78fe3b6cc124cb48e5a37fdffd99379ed/jscomp/test/pq_test.ml
ocaml
module PrioQueue = struct type priority = int type 'a queue = Empty | Node of priority * 'a * 'a queue * 'a queue let empty = Empty let rec insert queue prio elt = match queue with Empty -> Node(prio, elt, Empty, Empty) | Node(p, e, left, right) -> if pr...
c1baf6a9afa8cf92c143bcb0d7311d44eec85b918f4705fce3edac54a11e765b
jebberjeb/clojure-socketrepl.nvim
parser.clj
(ns socket-repl.parser (:require [clojure.string :as string] [clojure.tools.reader.reader-types :as reader-types] [clojure.tools.reader :as reader])) (defn position "Returns the zero-indexed position in a code string given line and column." [code-str row col] (->> code-str string/split-lines...
null
https://raw.githubusercontent.com/jebberjeb/clojure-socketrepl.nvim/4161837da0578114438a99bbd317a1e77a108b0f/src/socket_repl/parser.clj
clojure
Read a form, but discard it, as we want the original string. Even though this returns the position *after* the read, this works because subs is end point exclusive.
(ns socket-repl.parser (:require [clojure.string :as string] [clojure.tools.reader.reader-types :as reader-types] [clojure.tools.reader :as reader])) (defn position "Returns the zero-indexed position in a code string given line and column." [code-str row col] (->> code-str string/split-lines...
7f4f02dc9e72a343eadf18b064a4483f3a37109f1357689a74a85b7f45b52ddd
xclerc/ocamljava
bytecodegen_prim.mli
* This file is part of compiler . * Copyright ( C ) 2007 - 2015 . * * compiler is free software ; you can redistribute it and/or modify * it under the terms of the Q Public License as published by * ( with a change to choice of law ) . * * compiler is distributed in the hope that it ...
null
https://raw.githubusercontent.com/xclerc/ocamljava/8330bfdfd01d0c348f2ba2f0f23d8f5a8f6015b1/compiler/javacomp/bytecodegen_prim.mli
ocaml
* Compilation of OCaml primitives.
* This file is part of compiler . * Copyright ( C ) 2007 - 2015 . * * compiler is free software ; you can redistribute it and/or modify * it under the terms of the Q Public License as published by * ( with a change to choice of law ) . * * compiler is distributed in the hope that it ...
9a7b52a1488203f7f95d2c1ae02e909683667c0ec774761e749117b476c9d546
ocaml-flambda/ocaml-jst
tast_mapper.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-flambda/ocaml-jst/4fd53a1f6fa8e93d60e808bc82ee79f622709f09/typing/tast_mapper.ml
ocaml
************************************************************************ OCaml ...
, LexiFi Copyright 2015 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Asttypes open Typedtree type mapper = { binding_op: mapper -> binding_op -> binding_op; c...
7707ecb44c5f89f7896acb6c912ba9525070614bfec918685b951f13d0594a4d
evilmartians/foundry
local_inference.ml
open Unicode.Std open Big_int open ExtList open Ssa let name = "Local Inference" let stvar () = Rt.Tvar (Rt.static_tvar ()) let int_binop_ty = (* val int_binop : 'a -> 'a -> 'a *) let tv = stvar () in Rt.FunctionTy ([tv; tv], tv) let int_cmpop_ty = (* val int_cmpop : 'a -> 'a -> bool *) let tv = stvar () in Rt.F...
null
https://raw.githubusercontent.com/evilmartians/foundry/ce947c7dcca79ab7a7ce25870e9fc0eb15e9c2bd/src/transforms/local_inference.ml
ocaml
val int_binop : 'a -> 'a -> 'a val int_cmpop : 'a -> 'a -> bool Make sure that call and return instruction types match the signatures of their associated functions. Call instruction does not necessarily point directly to the function; it can be a function pointer. Unify call site signature wi...
open Unicode.Std open Big_int open ExtList open Ssa let name = "Local Inference" let stvar () = Rt.Tvar (Rt.static_tvar ()) let tv = stvar () in Rt.FunctionTy ([tv; tv], tv) let tv = stvar () in Rt.FunctionTy ([tv; tv], Rt.BooleanTy) let run_on_function passmgr capsule funcn = let specialize ?reason env = ...
1bd907ae2039511b328ea18dd0388060183b249e2437cea1e9ecd1229a9fa3de
paurkedal/batyr
listener.ml
Copyright ( C ) 2022 < > * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later version . * * This p...
null
https://raw.githubusercontent.com/paurkedal/batyr/13aa15970a60286afbd887685a816fcd5fc4976e/batyr-on-xmpp/bin/listener.ml
ocaml
Copyright ( C ) 2022 < > * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later version . * * This p...
1e6b3474a8b41a343185d4805e0d05b882fae94c063d0a843b882180d03ccd39
billstclair/trubanc-lisp
rfc2388.lisp
;;;; -*- mode: LISP; package: RFC2388 -*- Copyright ( c ) 2003 Modifications for TBNL Copyright ( c ) 2004 and Dr. ;;;; ;;;; Redistribution and use in source and binary forms, with or without ;;;; modification, are permitted provided that the following conditions ;;;; are met: 1 . Redistributions of source...
null
https://raw.githubusercontent.com/billstclair/trubanc-lisp/5436d2eca5b1ed10bc47eec7080f6cb90f98ca65/systems/rfc2388/rfc2388.lisp
lisp
-*- mode: LISP; package: RFC2388 -*- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: notice, this list of conditions and the following disclaimer. notice, this list of conditions and the following disclaimer in ...
Copyright ( c ) 2003 Modifications for TBNL Copyright ( c ) 2004 and Dr. 1 . Redistributions of source code must retain the above copyright 2 . Redistributions in binary form must reproduce the above copyright THIS SOFTWARE IS PROVIDED BY THE AUTHOR ` ` AS IS '' AND ANY EXPRESS OR INCIDENTAL , SPECIAL...
31b69db8b5b35865d82cbaa55403cf6e614c4692045b34b739349c00c3581a49
korya/efuns
utils.ml
(***********************************************************************) (* *) xlib for (* *) Fabrice Le Fessant , projet Para / SOR , INRIA Rocq...
null
https://raw.githubusercontent.com/korya/efuns/78b21d9dff45b7eec764c63132c7a564f5367c30/common/utils.ml
ocaml
********************************************************************* ...
xlib for Fabrice Le Fessant , projet Para / SOR , INRIA Rocquencourt Copyright 1998 Institut National de Recherche en Informatique et Automatique . Distributed only by permission . let count_char_sub str pos len char = let pos_end = pos +...
1b78b20f2edea2cb1adef518818437fdfe0a3fa06f85eefc369d589eadb85741
sky-big/RabbitMQ
rabbit_mgmt_wm_user.erl
The contents of this file are subject to the Mozilla Public License Version 1.1 ( the " License " ) ; you may not use this file except in %% compliance with the License. You may obtain a copy of the License at %% / %% Software distributed under the License is distributed on an " AS IS " %% basis, WITH...
null
https://raw.githubusercontent.com/sky-big/RabbitMQ/d7a773e11f93fcde4497c764c9fa185aad049ce2/plugins-src/rabbitmq-management/src/rabbit_mgmt_wm_user.erl
erlang
compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. -------------------------------------------------------------------- ---...
The contents of this file are subject to the Mozilla 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 " The Original Code is RabbitMQ Management Plugin . The Initial Developer of the Original Code...
cd861d2c0467bfeeff2f9855cc80568fbba27bb36ef03e13b9d0f52a13cc6186
hemmi/coq2scala
indschemes.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/hemmi/coq2scala/d10f441c18146933a99bf2088116bd213ac3648d/coq-8.4pl2/toplevel/indschemes.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** This file provides entry points for...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Created by from contents ...
6a1fd8e77abd1e9c7e822c213f984f19434c0f308b24c2cb3fee632c74437a3e
braintripping/lark
core.cljs
(ns lark.structure.core (:require lark.structure.coords lark.structure.loc lark.structure.operation.edit lark.structure.operation.select lark.structure.operation lark.structure.pointer lark.structure.string [cljs.spec.alpha :as s]...
null
https://raw.githubusercontent.com/braintripping/lark/95038a823068681c39453c46a309a3514cf48800/tools/test/lark/structure/core.cljs
clojure
(ns lark.structure.core (:require lark.structure.coords lark.structure.loc lark.structure.operation.edit lark.structure.operation.select lark.structure.operation lark.structure.pointer lark.structure.string [cljs.spec.alpha :as s]...
2c224c047c11c5a06fc14d1ad82343f385829a7b846d4b6521bf886f0b204b55
gorillalabs/sparkling
scalaInterop.clj
(ns sparkling.scalaInterop (:import [sparkling.scalaInterop ScalaFunction0 ScalaFunction1] [scala Tuple1 Tuple2 Tuple3 Tuple4 Tuple5 Tuple6 Tuple7 Tuple8 Tuple9 Tuple10 Tuple11 Tuple12 Tuple13 Tuple14 Tuple15 Tuple16 Tuple17 Tuple18 Tuple19 Tuple20 Tuple21 Tuple22 Some] [scala.reflect ClassTag$]...
null
https://raw.githubusercontent.com/gorillalabs/sparkling/ffedcc70fd46bf1b48405be8b1f5a1e1c4f9f578/src/clojure/sparkling/scalaInterop.clj
clojure
lol scala
(ns sparkling.scalaInterop (:import [sparkling.scalaInterop ScalaFunction0 ScalaFunction1] [scala Tuple1 Tuple2 Tuple3 Tuple4 Tuple5 Tuple6 Tuple7 Tuple8 Tuple9 Tuple10 Tuple11 Tuple12 Tuple13 Tuple14 Tuple15 Tuple16 Tuple17 Tuple18 Tuple19 Tuple20 Tuple21 Tuple22 Some] [scala.reflect ClassTag$]...
bfdf7d1d96a320aabc3140c5531de161ac956d018329fd30d3d4c12b316a305a
robert-strandh/SICL
list-structure.lisp
(cl:in-package #:cleavir-code-utilities) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Tools for checking for list structure. For any object , return its structure as a list as two values : the ;;; first value contains the number of unique CONS cells in the list, and the second va...
null
https://raw.githubusercontent.com/robert-strandh/SICL/58865dbfca0ff62bc6568d17dd9c78e5f2420c9c/Code/Cleavir/Code-utilities/List-structure/list-structure.lisp
lisp
Tools for checking for list structure. first value contains the number of unique CONS cells in the list, :circular. For an atom, 0 and :dotted is returned. This function is useful for processing code because lists representing code are not often very long, so the method used is fast and appropriate, and bec...
(cl:in-package #:cleavir-code-utilities) For any object , return its structure as a list as two values : the and the second value is one of the keywords : proper , : dotted , and (defun list-structure (object) First we attempt to just traverse the list as usual , (loop for remaining = object then (cdr remaini...
d423f520760344aa7cb946eeae774d0ea8a38fdbe52b9c4f64f663650a57c1e7
jyp/topics
Example0.hs
import Parsers.Incremental import Control.Applicative ------------------------------------------------------------ -- Examples data SExpr = S [SExpr] (Maybe Char) | Atom Char | Quoted [SExpr] (Maybe Char) | Inserted Char | Deleted Char deriving Show -- the only place w...
null
https://raw.githubusercontent.com/jyp/topics/8442d82711a02ba1356fd4eca598d1368684fa69/FunctionalIncrementalParsing/Example0.hs
haskell
---------------------------------------------------------- Examples the only place we use disjunction is in many. empty empty
import Parsers.Incremental import Control.Applicative data SExpr = S [SExpr] (Maybe Char) | Atom Char | Quoted [SExpr] (Maybe Char) | Inserted Char | Deleted Char deriving Show symb n c = Look (Shif n) (Shif . c) manyx v = some v <|> oops "closing..." (pure []) somex...
4ec610a2ef1c92911db085961922f8b11004c052dad4d6f11b313863e959731b
BranchTaken/Hemlock
test_filter_map.ml
open! Basis.Rudiments open! Basis open! OrdmapTest open Ordmap let test () = let test arr = begin let ordmap = of_karray arr in let ordmap' = filter_map ordmap ~f:(fun (k, v) -> match k % 2L = 0L with | true -> Some (Uns.to_string v) | false -> None ) in let arr' = to_array ordmap' ...
null
https://raw.githubusercontent.com/BranchTaken/Hemlock/ed397cf3294ca397024e69eb3b1ed5f1db773db6/bootstrap/test/basis/ordmap/test_filter_map.ml
ocaml
open! Basis.Rudiments open! Basis open! OrdmapTest open Ordmap let test () = let test arr = begin let ordmap = of_karray arr in let ordmap' = filter_map ordmap ~f:(fun (k, v) -> match k % 2L = 0L with | true -> Some (Uns.to_string v) | false -> None ) in let arr' = to_array ordmap' ...
b20a580d6c33c167365eff80b87f388923f2893da5bf39da04360aa8486fd6c1
azimut/shiny
incudine-env.lisp
somecepl.lisp (in-package #:shiny) ;;; "somecepl" goes here. Hacks and glory await! (defvar *gpu-verts-arr* nil) (defvar *gpu-index-arr* nil) (defvar *vert-stream* nil) (defvar *env1* nil) (defun-g draw-verts-vert-stage ((vert :vec2)) (v! (- vert (v2! .4) ) 0 1)) (defun-g draw-verts-frag-stage (&uniform (resol...
null
https://raw.githubusercontent.com/azimut/shiny/774381a9bde21c4ec7e7092c7516dd13a5a50780/examples/incudine-env.lisp
lisp
"somecepl" goes here. Hacks and glory await! (when *env1* (incudine:free *env1*)) (make-envelope '(0 1 0) '(.2 .8) :curve :exp)) :element-type :vec2))
somecepl.lisp (in-package #:shiny) (defvar *gpu-verts-arr* nil) (defvar *gpu-index-arr* nil) (defvar *vert-stream* nil) (defvar *env1* nil) (defun-g draw-verts-vert-stage ((vert :vec2)) (v! (- vert (v2! .4) ) 0 1)) (defun-g draw-verts-frag-stage (&uniform (resolution :vec2)) (v4! 1.0)) (defpipeline-g draw-v...
8ba013439d1c236824b484574041a72caeff296ed2cb0d5c0f8b0f9df444b20f
conscell/hugs-android
Unlit.hs
----------------------------------------------------------------------------- -- | Module : Distribution . PreProcess . -- Copyright : ... -- Maintainer : < > -- Stability : Stable -- Portability : portable -- Remove the \"literal\ " markups from a Haskell source file , including \"@>@\ ...
null
https://raw.githubusercontent.com/conscell/hugs-android/31e5861bc1a1dd9931e6b2471a9f45c14e3c6c7e/hugs/lib/hugs/packages/Cabal/Distribution/PreProcess/Unlit.hs
haskell
--------------------------------------------------------------------------- | Copyright : ... Stability : Stable Portability : portable Part of the following code is from /Report on the Programming Language Haskell/, exports: no unliteration -- Should give an error message, but I have no good posit...
Module : Distribution . PreProcess . Maintainer : < > Remove the \"literal\ " markups from a Haskell source file , including \"@>@\ " , " , \"@\\end{code}@\ " , and \"@#@\ " version 1.2 , appendix C. module Distribution.PreProcess.Unlit(unlit,plain) where import Data.Char unlit :: Strin...
ed97fe1527dc8a1f37321f81720ee379a3e1341be166949026d9eb67a3554cb4
knupfer/type-of-html
Obsolete.hs
# OPTIONS_GHC -fno - warn - unticked - promoted - constructors # # LANGUAGE TypeOperators # # LANGUAGE TypeFamilies # # LANGUAGE DataKinds # module Html.Obsolete ( module Html.Obsolete , module Html.Type ) where import Html.Type -- | Obsolete html elements. -- -- Usage: -- -- >>> Center :> "barf" -- <c...
null
https://raw.githubusercontent.com/knupfer/type-of-html/eb89e30fcf5ab43103e0382f2521e715380d82eb/src/Html/Obsolete.hs
haskell
| Obsolete html elements. Usage: >>> Center :> "barf" <center>barf</center>
# OPTIONS_GHC -fno - warn - unticked - promoted - constructors # # LANGUAGE TypeOperators # # LANGUAGE TypeFamilies # # LANGUAGE DataKinds # module Html.Obsolete ( module Html.Obsolete , module Html.Type ) where import Html.Type data instance Element "applet" '[Metadata, Flow, Sectioning, Head...
0fa600a8033045e95fbec4550ff58135f6ba24d5dbf6e2c9918effeb3d2b5fe6
aeternity/enoise
enoise_connection.erl
%%% ------------------------------------------------------------------ 2018 , Aeternity Anstalt %%% %%% @doc Module implementing a gen_server for holding a handshaked %%% Noise connection over gen_tcp. %%% %%% Some care is needed since the underlying transmission is broken up %%% into Noise packets, so we need some ...
null
https://raw.githubusercontent.com/aeternity/enoise/991d7390ea49216f0b170d7b9662b3ff0a925aaa/src/enoise_connection.erl
erlang
------------------------------------------------------------------ @doc Module implementing a gen_server for holding a handshaked Noise connection over gen_tcp. Some care is needed since the underlying transmission is broken up into Noise packets, so we need some buffering. @end ------------------------------...
2018 , Aeternity Anstalt -module(enoise_connection). -export([ controlling_process/2 , close/1 , send/2 , set_active/2 , start_link/5 ]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -record(enoise, { pid }). -record...
6adb5dffadcac101fc728f262dab029087a96646d7c8673db1e69109d6131353
phoe/petri
threaded.lisp
;;;; threaded.lisp (uiop:define-package #:petri/threaded (:mix #:closer-mop #:cl #:alexandria #:split-sequence #:phoe-toolbox/bag #:trivial-backtrace #:petri) (:reexport #:phoe-toolbox/bag) (:export ;; ASYNC #:threaded-petri-net ...
null
https://raw.githubusercontent.com/phoe/petri/08e3a925d629e82bb2151acbecbf52d3b8be105f/threaded.lisp
lisp
threaded.lisp ASYNC THREADED
(uiop:define-package #:petri/threaded (:mix #:closer-mop #:cl #:alexandria #:split-sequence #:phoe-toolbox/bag #:trivial-backtrace #:petri) (:reexport #:phoe-toolbox/bag) #:threaded-petri-net #:make-threaded-petri-net #:...
45d98bc47f0513d4d20ade7157eac3b9f033e7e39488b3e4acb76a267fdc5cb5
cxxxr/valtan
must-symbol.lisp
Copyright ( C ) 2002 - 2004 , < > ;; ALL RIGHTS RESERVED. ;; $ I d : must - symbol.lisp , v 1.7 2004/02/20 07:23:42 yuji Exp $ ;; ;; Redistribution and use in source and binary forms, with or without ;; modification, are permitted provided that the following conditions ;; are met: ;; ;; * Redistributions of s...
null
https://raw.githubusercontent.com/cxxxr/valtan/ec3164d42b86869357dc185b747c5dfba25c0a3c/tests/sacla-tests/must-symbol.lisp
lisp
ALL RIGHTS RESERVED. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistribu...
Copyright ( C ) 2002 - 2004 , < > $ I d : must - symbol.lisp , v 1.7 2004/02/20 07:23:42 yuji Exp $ " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT OWNER OR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT THEORY OF LIABIL...
0c8f6e298d0cbad300dba47a9d1c08c56e834355afa56d8841d236b23d1d15ea
christian-marie/oauth2-server
PostgreSQL.hs
-- Copyright © 2013 - 2015 Anchor Systems , Pty Ltd and Others -- -- The code in this file, and the program it is a part of, is -- made available to you by its authors as open source software: -- you can redistribute it and/or modify it under the terms of the 3 - clause BSD licence . -- # LANGUAGE FlexibleInstance...
null
https://raw.githubusercontent.com/christian-marie/oauth2-server/ebb75be9d05dd52d478a6e069d32461d4e54544e/lib/Network/OAuth2/Server/Store/PostgreSQL.hs
haskell
The code in this file, and the program it is a part of, is made available to you by its authors as open source software: you can redistribute it and/or modify it under the terms of # LANGUAGE OverloadedStrings # # LANGUAGE RecordWildCards # | Description: OAuth2 token storage instance for PostgreSQL OA...
Copyright © 2013 - 2015 Anchor Systems , Pty Ltd and Others the 3 - clause BSD licence . # LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # # LANGUAGE ViewPatterns # types to use either a ' Pool ' of PostgreSQL ' Connection 's or a single module Network.OAuth2.Server.Store.PostgreSQL (...
d436a53645e59677f61a99fc4a1404a95ea25c1bb6414f372c3fbbc11377b70e
kelamg/HtDP2e-workthrough
ex391.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex391) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-...
null
https://raw.githubusercontent.com/kelamg/HtDP2e-workthrough/ec05818d8b667a3c119bea8d1d22e31e72e0a958/HtDP/Intertwined-Data/ex391.rkt
racket
about the language level of this file in a form that our tools can easily process. [List-of Number] [List-of Number] -> [List-of Number] replaces the final '() in front with end
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex391) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (check-expect (replace-eol-with '() '()) '()) (check-e...
44821555ba5f89023b6339724dfc7eb7f26c4257cac848a9a5110a7bc4452143
leksah/leksah-server
TestTool.hs
# LANGUAGE CPP , OverloadedStrings # ----------------------------------------------------------------------------- -- -- Module : Main Copyright : 2007 - 2011 , -- License : GPL -- -- Maintainer : -- Stability : provisional -- Portability : -- -- | Windows systems do not often have a real ...
null
https://raw.githubusercontent.com/leksah/leksah-server/d4b735c17a36123dc97f79fabf1e9310d74984a6/tests/TestTool.hs
haskell
--------------------------------------------------------------------------- Module : Main License : GPL Maintainer : Stability : provisional Portability : | Windows systems do not often have a real echo executable (so --with-ghc=echo fails) ----------------------------------------------------...
# LANGUAGE CPP , OverloadedStrings # Copyright : 2007 - 2011 , module Main ( main ) where import System.Environment (getArgs) import System.Exit (exitWith, exitSuccess, exitFailure, ExitCode(..)) import System.FilePath ((</>)) import Data.Monoid ((<>)) import IDE.Utils.Tool (toolProcess, executeGh...
b7db1e82773433fd376b46c5423ea66cd98cb660dfeff22f28decea9f2348943
7even/endless-ships
outfit_page.cljs
(ns endless-ships.views.outfit-page (:require [re-frame.core :as rf] [endless-ships.subs :as subs] [endless-ships.views.utils :refer [render-attribute render-description kebabize nbspize]] [endless-ships.routes :as routes])) (defn- re...
null
https://raw.githubusercontent.com/7even/endless-ships/acb7ee2852a6bc2f80137bc8aa2e3541ceed83ff/src/cljs/endless_ships/views/outfit_page.cljs
clojure
(ns endless-ships.views.outfit-page (:require [re-frame.core :as rf] [endless-ships.subs :as subs] [endless-ships.views.utils :refer [render-attribute render-description kebabize nbspize]] [endless-ships.routes :as routes])) (defn- re...
aabaab1f633edee5510c8dc833860ff0d4382a0bf9eea09b084b062bf65b8e68
qitab/cl-protobufs
serialization-test.lisp
Copyright 2012 - 2020 Google LLC ;;; Use of this source code is governed by an MIT - style ;;; license that can be found in the LICENSE file or at ;;; . (defpackage #:cl-protobufs.test.serialization (:use #:cl #:clunit #:cl-protobufs #:cl-protobufs.serialization-test) (:local-nicknames ...
null
https://raw.githubusercontent.com/qitab/cl-protobufs/bf5447065714a9f5b1b6ce6d0512fd99b4105e76/tests/serialization-test.lisp
lisp
license that can be found in the LICENSE file or at . clunit2:deftest does very strange things with its &body, which makes debugging more difficult, so let's not give it that chance. TODO(cgay): This makes the tests non-repeatable in the REPL. Either find a safe way to delete the optimized serializers after the ...
Copyright 2012 - 2020 Google LLC Use of this source code is governed by an MIT - style (defpackage #:cl-protobufs.test.serialization (:use #:cl #:clunit #:cl-protobufs #:cl-protobufs.serialization-test) (:local-nicknames (#:pi #:cl-protobufs.implementation)) (:export :run)) (in-packa...
bab8420e4fabe8f29476df33888cf453c76718b761a577935d461c7094d8c4de
binaryage/cljs-oops
defaults.clj
(ns oops.defaults "Default configuration + specs." (:require [cljs.env] [oops.state] [clojure.spec.alpha :as s])) (def config ; falsy below means 'nil' or 'false' {; -- compil...
null
https://raw.githubusercontent.com/binaryage/cljs-oops/a2b48d59047c28decb0d6334e2debbf21848e29c/src/lib/oops/defaults.clj
clojure
falsy below means 'nil' or 'false' -- compiler config ----------------------------------------------------------------------------------------------------- #{true falsy} #{:core :goog} #{:core :goog} #{true falsy} #{true falsy} #{true falsy} compile-time warnings/errors #{:error :warn falsy} #{:error :warn f...
(ns oops.defaults "Default configuration + specs." (:require [cljs.env] [oops.state] [clojure.spec.alpha :as s])) }) (def advanced-mode-config-overrides {:diagnostics false}) (create-ns 'oops.config) (alias 'config 'oops.config) (s/def ::config/boolish #(contains? #{true fal...
e3c8d8fa3e429a29d974309661381fecc42e00de662b58d78f0953c5312b4dab
mirleft/ocaml-x509
host.ml
type t = [ `Strict | `Wildcard ] * [ `host ] Domain_name.t let pp_typ ppf = function | `Strict -> Fmt.nop ppf () | `Wildcard -> Fmt.string ppf "*." let pp ppf (typ, nam) = Fmt.pf ppf "%a%a" pp_typ typ Domain_name.pp nam module Set = struct include Set.Make(struct type nonrec t = t let compare a b...
null
https://raw.githubusercontent.com/mirleft/ocaml-x509/13eda5db42d6a68c6f5ad1e59a0878a2c57b77e6/lib/host.ml
ocaml
type t = [ `Strict | `Wildcard ] * [ `host ] Domain_name.t let pp_typ ppf = function | `Strict -> Fmt.nop ppf () | `Wildcard -> Fmt.string ppf "*." let pp ppf (typ, nam) = Fmt.pf ppf "%a%a" pp_typ typ Domain_name.pp nam module Set = struct include Set.Make(struct type nonrec t = t let compare a b...
87e04267f189db9157829876e9b1817376adaa265de1ee689ebddbedd798ce6e
tnelson/Forge
struct.rkt
#lang racket/base (provide (struct-out type) (struct-out nametype) (struct-out consttype) (struct-out sigtype) (struct-out predtype) (struct-out fieldtype) (struct-out paramtype) (struct-out reltype) the-int-type the-bool-type the-unknown-type unknown-type? type-kind) (require syntax/pars...
null
https://raw.githubusercontent.com/tnelson/Forge/912b34b335608e9f9e373e2455a34fcbcedf6072/froglet/typecheck/struct.rkt
racket
--- reltype type (arity singleton?) ;; relation
#lang racket/base (provide (struct-out type) (struct-out nametype) (struct-out consttype) (struct-out sigtype) (struct-out predtype) (struct-out fieldtype) (struct-out paramtype) (struct-out reltype) the-int-type the-bool-type the-unknown-type unknown-type? type-kind) (require syntax/pars...
94750566a9cbeac0d7ed07644e18cdc9fd1f715d29e3056529847b470049f91f
teburd/hottub
ht_worker.erl
@author < > 2011 . @doc Hot Tub Worker . -module(ht_worker). -export([start_worker/2]). %% @doc The pool manager needs to know when a worker is alive. %% It turns out the simplest way is to simply wrap the function the %% supervisor calls to start a process with another that does some additional %% work....
null
https://raw.githubusercontent.com/teburd/hottub/dcf9d0bfdadb94e535b3964c513d673c2fc2ac2d/src/ht_worker.erl
erlang
@doc The pool manager needs to know when a worker is alive. It turns out the simplest way is to simply wrap the function the supervisor calls to start a process with another that does some additional work. @end
@author < > 2011 . @doc Hot Tub Worker . -module(ht_worker). -export([start_worker/2]). -spec start_worker(atom(), {atom(), atom(), list(any())}) -> {ok, pid()}. start_worker(PoolName, {Module, Function, Arguments}) -> {ok, Pid} = erlang:apply(Module, Function, Arguments), ht_pool:add_worker(...
ee49eb06411393d2a4db754d80570554d778ddc75d792ce5c5420e3c1020db67
ocamllabs/ocaml-modular-implicits
parmatch.mli
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/typing/parmatch.mli
ocaml
********************************************************************* OCaml ...
, 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 . open Asttypes open Typedtree open Types...
bb783afb037f3534fee69b649d19264b9407d4fb3aa49aec1f9233caf1d76800
GaloisInc/elf-edit
Sections.hs
module Data.ElfEdit.HighLevel.Sections ( -- * ElfSection ElfSection(..) , elfSectionFileSize ) where import Data.ByteString as B import Data.Word import Data.ElfEdit.Prim.Shdr ------------------------------------------------------------------------ ElfSection | A section in the Elf file . data ElfSect...
null
https://raw.githubusercontent.com/GaloisInc/elf-edit/fb4699a2bba68c4d46ea3dee436f640c328fb682/src/Data/ElfEdit/HighLevel/Sections.hs
haskell
* ElfSection ---------------------------------------------------------------------- ^ Unique index to identify section. ^ Name of the section. ^ Type of the section. ^ Attributes of the section. ^ The virtual address of the beginning of the section in memory. This should be 0 for sections that are not loaded in...
module Data.ElfEdit.HighLevel.Sections ElfSection(..) , elfSectionFileSize ) where import Data.ByteString as B import Data.Word import Data.ElfEdit.Prim.Shdr ElfSection | A section in the Elf file . data ElfSection w = ElfSection { elfSectionIndex :: !Word16 , elfSectionName :: !B.ByteS...
88a63f3776ba12c6df9e8ed38a68e8cd6c1cc2242442246d32a38bd2da2131e5
static-analysis-engineering/codehawk
xprToPretty.mli
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Analyzer Infrastructure Utilities Author : ------------------------------------------------------------------------------ The MIT License...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/45f39248b404eeab91ae225243d79ec0583c3331/CodeHawk/CH/xprlib/xprToPretty.mli
ocaml
chutil xprlib
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Analyzer Infrastructure Utilities Author : ------------------------------------------------------------------------------ The MIT License...
b0bc70dee7c5b63281e564cd371269ebe0a73d03a14162c7d02ee99aa99e9794
asivitz/Hickory
Uniforms.hs
# LANGUAGE FlexibleInstances # module Hickory.Graphics.Uniforms where import Control.Monad.IO.Class (MonadIO, liftIO) import Hickory.Graphics.Shader (Shader, retrieveLoc, UniformLoc) import Hickory.Math.Matrix import Linear (V2, V3, V4, M44, M33,transpose) import Graphics.GL.Compatibility41 as GL import Foreign.Ptr (...
null
https://raw.githubusercontent.com/asivitz/Hickory/e668f0ca6cc4d8bf19b1463b6a7525844786e2c7/core/Hickory/Graphics/Uniforms.hs
haskell
withArray vecs ( f . castPtr )
# LANGUAGE FlexibleInstances # module Hickory.Graphics.Uniforms where import Control.Monad.IO.Class (MonadIO, liftIO) import Hickory.Graphics.Shader (Shader, retrieveLoc, UniformLoc) import Hickory.Math.Matrix import Linear (V2, V3, V4, M44, M33,transpose) import Graphics.GL.Compatibility41 as GL import Foreign.Ptr (...
fee2caf1c9c235ca81afbe3825b1fdd6fa3fdef1262a15d5da2252d3351258f0
lloda/guile-newra
newra.scm
-*- mode : scheme ; coding : utf-8 -*- ( c ) 2016 - 2019 ; This library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 3 of the License , or ( at your option ) any ; later version. ;;...
null
https://raw.githubusercontent.com/lloda/guile-newra/d6e76544e202ad69e8c38128c5518045bc09299b/mod/newra.scm
scheme
coding : utf-8 -*- This library is free software; you can redistribute it and/or modify it under either version 3 of the License , or ( at your option ) any later version. Commentary: Code:
( c ) 2016 - 2019 the terms of the GNU General Public License as published by the Free newra is a replacement for 's C - based arrays . This is the hub module . (define-module (newra)) (import (newra base) (newra map) (newra print) (newra read) (newra from) (newra cat) (newra reshape) (newra lib))...
8fb2729f8c95c2a342f81c2fd9c252d7a2bd8dd165d46a148c5755f1b64d579b
everpeace/programming-erlang-code
udp_test.erl
-module(udp_test). -export([start_server/0, client/1]). start_server() -> spawn(fun() -> server(4000) end). %% The server server(Port) -> {ok, Socket} = gen_udp:open(Port, [binary]), io:format("server opened socket:~p~n",[Socket]), loop(Socket). loop(Socket) -> receive {udp, Socket, Host, P...
null
https://raw.githubusercontent.com/everpeace/programming-erlang-code/8ef31aa13d15b41754dda225c50284915c29cb48/code/udp_test.erl
erlang
The server The client
-module(udp_test). -export([start_server/0, client/1]). start_server() -> spawn(fun() -> server(4000) end). server(Port) -> {ok, Socket} = gen_udp:open(Port, [binary]), io:format("server opened socket:~p~n",[Socket]), loop(Socket). loop(Socket) -> receive {udp, Socket, Host, Port, Bin} = Msg -> ...
c20d2944b62da2a60b4ff267ca57169f3d5c9d6b31fa707a155947f55c720341
fetburner/Coq2SML
configwin_types.ml
(*********************************************************************************) Cameleon (* *) Copyright ( C ) 2005 Institut National de Recherche en Informatiqu...
null
https://raw.githubusercontent.com/fetburner/Coq2SML/322d613619edbb62edafa999bff24b1993f37612/coq-8.4pl4/ide/utils/configwin_types.ml
ocaml
******************************************************************************* en Automatique. All rights reserved. ...
Cameleon Copyright ( C ) 2005 Institut National de Recherche en Informatique et it under the terms of the GNU Library General Public License as published by the Free Software Foundation ; either version 2 of the ...
35e6e605db655f6907f02ebdf5ee12eeeb5221c444c69894c8d06b15b45b6f87
haskell-checkers/checkers
Ord.hs
module Test.QuickCheck.Instances.Ord where import Test.QuickCheck import Control.Monad.Extensions greaterThan :: (Ord a) => a -> Gen a -> Gen a greaterThan v = satisfiesM (> v) lessThan :: (Ord a) => a -> Gen a -> Gen a lessThan v = satisfiesM (< v)
null
https://raw.githubusercontent.com/haskell-checkers/checkers/6cdc62e3fa50db3458f88f268682e5f1cfd9ab2c/src/Test/QuickCheck/Instances/Ord.hs
haskell
module Test.QuickCheck.Instances.Ord where import Test.QuickCheck import Control.Monad.Extensions greaterThan :: (Ord a) => a -> Gen a -> Gen a greaterThan v = satisfiesM (> v) lessThan :: (Ord a) => a -> Gen a -> Gen a lessThan v = satisfiesM (< v)
01aade70f5cde1986f3c0ed08717207a485a22551ae98273f1e654ce8be50584
vult-dsp/vult
float.ml
The MIT License ( MIT ) Copyright ( c ) 2017 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 ...
null
https://raw.githubusercontent.com/vult-dsp/vult/860b2b7a8e891aa729578175a931ce2a9345428b/src/util/float.ml
ocaml
The MIT License ( MIT ) Copyright ( c ) 2017 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 ...
a3d42730e4ccdc9fd25f75223a8b1ea48a7f3af1a183d277f34bcd557a9ecd8e
neil-lindquist/linear-programming
test-utils.lisp
(uiop:define-package :linear-programming-test/test-utils (:use :cl) (:export #:set-equal #:simple-linear-constraint-set-equal)) (in-package :linear-programming-test/test-utils) (defun set-equal (s1 s2 &key (test #'equal)) "Helper method to test for set equality" (null (set-exclusive-or s1 s2 :test t...
null
https://raw.githubusercontent.com/neil-lindquist/linear-programming/417f764e65be1a92f7f9fc0f1ed8092700e916c6/t/test-utils.lisp
lisp
(uiop:define-package :linear-programming-test/test-utils (:use :cl) (:export #:set-equal #:simple-linear-constraint-set-equal)) (in-package :linear-programming-test/test-utils) (defun set-equal (s1 s2 &key (test #'equal)) "Helper method to test for set equality" (null (set-exclusive-or s1 s2 :test t...
a97b888830b84abbd75e8fef32971505c3f8fb4ae1e007a2b835dca420dba418
glguy/advent
KnotHash.hs
# Language ImportQualifiedPost , DataKinds # module KnotHash (knotHash, tieKnots) where import Advent (chunks) import Advent.Permutation (mkPermutation, runPermutation, Permutation) import Data.Bits (Bits(xor)) import Data.Char (ord) import Data.Foldable (Foldable(foldl')) import Data.List (foldl1') import Data.Word (...
null
https://raw.githubusercontent.com/glguy/advent/cba905b5efd876aa0044995a7d0dbe5a40246a3b/knothash/KnotHash.hs
haskell
| Given a rope size and an input string, compute the resulting hash. ^ input string ^ knot value | Convert list of bytes into integer in big-endian order. | Create a rope, tie knots of the given lengths while skipping according to the increasing skip rule. ^ knot lengths ^ resulting rope
# Language ImportQualifiedPost , DataKinds # module KnotHash (knotHash, tieKnots) where import Advent (chunks) import Advent.Permutation (mkPermutation, runPermutation, Permutation) import Data.Bits (Bits(xor)) import Data.Char (ord) import Data.Foldable (Foldable(foldl')) import Data.List (foldl1') import Data.Word (...
bd5acd17142abdb7c790533471bc936f498a63b842f257e066c402f7d9e5ec70
erlang/otp
ssl_eqc_handshake.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2018 - 2022 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/erlang/otp/44c972d35910ed70d8efd797ae59bc6428794406/lib/ssl/test/property_test/ssl_eqc_handshake.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 2018 - 2022 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(ssl_eqc_handshake). -compile(expo...
d01fa375e0a856389a44a99a7388a9e75bd3cf92bacd8aed64b9019a5e4f42a2
ralph-schleicher/rs-colors
cielch.lisp
cielch.lisp --- CIE L*C*h color space . Copyright ( C ) 2016 ;; Redistribution and use in source and binary forms, with or without ;; modification, are permitted provided that the following conditions ;; are met: ;; ;; * Redistributions of source code must retain the above copyright ;; notice, this list...
null
https://raw.githubusercontent.com/ralph-schleicher/rs-colors/0604867895fab0ea9b8a6bb0ac4a08d452c53c59/cielch.lisp
lisp
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary for...
cielch.lisp --- CIE L*C*h color space . Copyright ( C ) 2016 " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT COPYRIGHT HOLDER OR FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , CAUSED AND ON ANY THEORY OF LIABILITY , WHETHER ...
0e02471d6a68499beeaef11531847385baa9925e5a40a05164dff1703b297aaf
appleshan/cl-http
cl-http-70-202.lisp
-*- Mode : LISP ; Syntax : Common - Lisp ; Package : USER ; Base : 10 ; Patch - File : T -*- Patch file for CL - HTTP version 70.202 ;;; Reason: Function HTTP::SET-LOGICAL-HOST-DIRECTORY: turn into generic function. ;;; Function (CLOS:METHOD HTTP::SET-LOGICAL-HOST-DIRECTORY (STRING STRING CL:PATHNAME)): smarten u...
null
https://raw.githubusercontent.com/appleshan/cl-http/a7ec6bf51e260e9bb69d8e180a103daf49aa0ac2/lispm/server/patch/cl-http-70/cl-http-70-202.lisp
lisp
Syntax : Common - Lisp ; Package : USER ; Base : 10 ; Patch - File : T -*- Reason: Function HTTP::SET-LOGICAL-HOST-DIRECTORY: turn into generic function. Function (CLOS:METHOD HTTP::SET-LOGICAL-HOST-DIRECTORY (STRING STRING CL:PATHNAME)): smarten up. Function (CLOS:METHOD HTTP::SET-LOGICAL-HOST-DIRECTORY (STRING ...
Patch file for CL - HTTP version 70.202 Written by , 8/08/05 20:33:31 while running on FUJI - VLM from FUJI:/usr / lib / symbolics / Plus - CL - HTTP - A - CSAIL-8 - 5.vlod with Open Genera 2.0 , Genera 8.5 , Lock Simple 437.0 , Version Control 405.0 , Compare Merge 404.0 , VC Documentation 401.0 , Logical...
c8de31bd5b4b46f34d0e8b843b9c7ed4ea4b1d898eeabf71f4dee701dd769831
yuriy-chumak/ol
texture_border_clamp.scm
; =========================================================================== ARB_texture_border_clamp ( included in OpenGL 1.3 ) ; ; ; Version ; ; Overview ; (define-library (OpenGL ARB texture_border_clamp) ; --------------------------------------------------------------------------- ...
null
https://raw.githubusercontent.com/yuriy-chumak/ol/83dd03d311339763682eab02cbe0c1321daa25bc/libraries/OpenGL/ARB/texture_border_clamp.scm
scheme
=========================================================================== Version Overview --------------------------------------------------------------------------- Dependencies --------------------------------------------------------------------------- ---------------------------------------------------...
ARB_texture_border_clamp ( included in OpenGL 1.3 ) (define-library (OpenGL ARB texture_border_clamp) (import (scheme core) (OpenGL platform)) (export ARB_texture_border_clamp ) (begin (define ARB_texture_border_clamp (gl:QueryExtension "GL_ARB_texture_border_clamp")) ))
0ac847c5661e8d4de876bbc0ebbc7833eb91fdde263e10c2a1b4f5720834558b
rabbitmq/rabbitmq-erlang-client
amqp_gen_connection.erl
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %% Copyright ( c ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved . %% @private -module(amqp_gen_connection). -includ...
null
https://raw.githubusercontent.com/rabbitmq/rabbitmq-erlang-client/2022e01c515d93ed1883e9e9e987be2e58fe15c9/src/amqp_gen_connection.erl
erlang
connection.block, connection.unblock handler #closing{} | false --------------------------------------------------------------------------- --------------------------------------------------------------------------- --------------------------------------------------------------------------- Behaviour -------------...
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. Copyright ( c ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved . @private -module(amqp_gen_connection). -include("amq...
34839d4e47fd576fa039cb0953d1e48e61ea76b82cea70a2f8b33f6891342fb8
karamellpelle/grid
FontShade.hs
grid is a game written in Haskell Copyright ( C ) 2018 -- -- This file is part of grid. -- -- grid is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or -- (at your optio...
null
https://raw.githubusercontent.com/karamellpelle/grid/56729e63ed6404fd6cfd6d11e73fa358f03c386f/source/Game/Font/FontShade.hs
haskell
This file is part of grid. grid is free software: you can redistribute it and/or modify (at your option) any later version. grid is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GN...
grid is a game written in Haskell Copyright ( C ) 2018 it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License module Game.Font.FontShade ( FontShade (..), ...
74eb97d9c8da32d94147b556aaf88ccc4556565b2a7e589644ca270ce34168db
jrh13/hol-light
Inductive_definitions.ml
(* ------------------------------------------------------------------------- *) (* Bug puzzle. *) (* ------------------------------------------------------------------------- *) prioritize_real();; let move = new_definition `move ((ax,ay),(bx,by),(cx,cy))...
null
https://raw.githubusercontent.com/jrh13/hol-light/d125b0ae73e546a63ed458a7891f4e14ae0409e2/Tutorial/Inductive_definitions.ml
ocaml
------------------------------------------------------------------------- Bug puzzle. ------------------------------------------------------------------------- ------------------------------------------------------------------------- Verification of...
prioritize_real();; let move = new_definition `move ((ax,ay),(bx,by),(cx,cy)) ((ax',ay'),(bx',by'),(cx',cy')) <=> (?a. ax' = ax + a * (cx - bx) /\ ay' = ay + a * (cy - by) /\ bx' = bx /\ by' = by /\ cx' = cx /\ cy' = cy) \/ (?b. bx' = bx + b * (ax - cx) /\ by' = by + b * (ay - cy) /\ ...
9051cc2f86c333ddd8213c2bb5ec5a0cd3c7641602ef0326df1ac448d56a9afb
ocaml/ocaml
field_kind.ml
(* TEST * expect *) type _ t = Int : int t;; [%%expect{| type _ t = Int : int t |}] let o = object (self) method private x = 3 method m : type a. a t -> a = fun Int -> (self#x : int) end;; [%%expect{| val o : < m : 'a. 'a t -> 'a > = <obj> |}] let o' = object (self : 's) method private x = 3 ...
null
https://raw.githubusercontent.com/ocaml/ocaml/d71ea3d089ae3c338b8b6e2fb7beb08908076c7a/testsuite/tests/typing-objects/field_kind.ml
ocaml
TEST * expect
type _ t = Int : int t;; [%%expect{| type _ t = Int : int t |}] let o = object (self) method private x = 3 method m : type a. a t -> a = fun Int -> (self#x : int) end;; [%%expect{| val o : < m : 'a. 'a t -> 'a > = <obj> |}] let o' = object (self : 's) method private x = 3 method m : type a. a t...
4fb5cf22a53bd9a5d6f0f77bf30d1a9b58576185af2c1817e2c38610a0cb9765
SNePS/SNePS2
restr.lisp
-*- Mode : Lisp ; Syntax : Common - Lisp ; Package : SNEPS ; Base : 10 -*- Copyright ( C ) 1984 - -2013 Research Foundation of State University of New York Version : $ I d : restr.lisp , v 1.2 2013/08/28 19:07:26 shapiro Exp $ ;; This file is part of SNePS. $ BEGIN LICENSE$ The contents of this file ar...
null
https://raw.githubusercontent.com/SNePS/SNePS2/d3862108609b1879f2c546112072ad4caefc050d/sneps/fns/restr.lisp
lisp
Syntax : Common - Lisp ; Package : SNEPS ; Base : 10 -*- This file is part of SNePS. you may not use this file except in compliance with the License. You may obtain a copy of the License at . edu/sneps/Downloads/ubpl.pdf. or implied. See the License for the specific language gov erning rights and limitations...
Copyright ( C ) 1984 - -2013 Research Foundation of State University of New York Version : $ I d : restr.lisp , v 1.2 2013/08/28 19:07:26 shapiro Exp $ $ BEGIN LICENSE$ The contents of this file are subject to the University at Software distributed under the License is distributed on an " AS IS " bas...
1012d7f3c6c66ebe414a620557a22de3e12f4a464ff36fed7b9a7e2a0b33b1e0
CrossRef/event-data-query
work_cache_test.clj
(ns event-data-query.work-cache-test (:require [clojure.test :refer :all] [event-data-query.work-cache :as work-cache] [clj-http.fake :as fake] [qbits.spandex :as s] [event-data-query.elastic :as elastic] [slingshot.slingshot :refer [try+]] [conf...
null
https://raw.githubusercontent.com/CrossRef/event-data-query/ede3c91afccd89dbb7053e81dd425bc3c3ad966a/test/event_data_query/work_cache_test.clj
clojure
Fake lookups for RA Nil may find its way here. We could find any nonsense in a subj-id or obj-id field. We could find non-DOI urls. Non-existent
(ns event-data-query.work-cache-test (:require [clojure.test :refer :all] [event-data-query.work-cache :as work-cache] [clj-http.fake :as fake] [qbits.spandex :as s] [event-data-query.elastic :as elastic] [slingshot.slingshot :refer [try+]] [conf...
4d02b5dfe45a8a064c020b59da44ebb2db4e3ed2a1bbac5e0caea5ca00f184fc
nikita-volkov/rebase
Types.hs
module Rebase.GHC.IO.Encoding.Types ( module GHC.IO.Encoding.Types ) where import GHC.IO.Encoding.Types
null
https://raw.githubusercontent.com/nikita-volkov/rebase/7c77a0443e80bdffd4488a4239628177cac0761b/library/Rebase/GHC/IO/Encoding/Types.hs
haskell
module Rebase.GHC.IO.Encoding.Types ( module GHC.IO.Encoding.Types ) where import GHC.IO.Encoding.Types
ecbc5f2c6ce0a6a145a55f487ea394f1a6769a83fdfd30e6657ce56933537f7a
simedw/Kandidat
Interpreter.hs
{-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE PackageImports #-} # LANGUAGE ViewPatterns # # LANGUAGE RecordWildCards # module Stg.Interpreter where interpreter import Control.Monad import "mtl" Control.Monad.State import Data.Char import "syb" Data.Generics import Data.Maybe import Data . ) import qualifi...
null
https://raw.githubusercontent.com/simedw/Kandidat/fbf68edf5b003aba2ce13dac32ee1b94172d57d8/src/Stg/Interpreter.hs
haskell
# LANGUAGE NamedFieldPuns # # LANGUAGE PackageImports # initialNames :: [String] initialNames = map ("i." ++) $ [1..] >>= flip replicateM ['a'..'z'] - is this really needed? for inlining return Nothing Top is a I# 2, but we should save it in a thunk _ | topContOpt stack -> rcontopt st depending on ...
# LANGUAGE ViewPatterns # # LANGUAGE RecordWildCards # module Stg.Interpreter where interpreter import Control.Monad import "mtl" Control.Monad.State import Data.Char import "syb" Data.Generics import Data.Maybe import Data . ) import qualified Data . Map as M import Data.Map(Map) import qualified Data.M...
f921e290695769f6ce6fc47ba196a3b4d599c96145e8bfc44b25142d3c070c76
open-company/open-company-auth
utils.clj
(ns oc.auth.lib.utils "Namespace for tests utilities" (:require [clojure.string :as s] [cheshire.core :as json] [ring.mock.request :refer (request body content-type header)] [oc.auth.lib.test-setup :as ts])) (defn base-mime-type "Base mime type" [full-mime-type] (first (s/...
null
https://raw.githubusercontent.com/open-company/open-company-auth/79275bd3b877e70048a80960d7fa2d14be0abfe9/test/oc/auth/lib/utils.clj
clojure
(ns oc.auth.lib.utils "Namespace for tests utilities" (:require [clojure.string :as s] [cheshire.core :as json] [ring.mock.request :refer (request body content-type header)] [oc.auth.lib.test-setup :as ts])) (defn base-mime-type "Base mime type" [full-mime-type] (first (s/...
5bbf34d6df6797138ac3a1b2303429b0e6b96cb835ef626fbb969340f8dc6fa3
twosigma/Cook
monitor.clj
;; Copyright ( c ) Two Sigma Open Source , LLC ;; Licensed under the Apache License , Version 2.0 ( the " License " ) ; ;; you may not use this file except in compliance with the License. ;; You may obtain a copy of the License at ;; ;; -2.0 ;; ;; Unless required by applicable law or agreed to in writing, software...
null
https://raw.githubusercontent.com/twosigma/Cook/85d759fc71a80506aa383a4f23eccb6c12c6a330/scheduler/src/cook/monitor.clj
clojure
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permi...
Copyright ( c ) Two Sigma Open Source , LLC distributed under the License is distributed on an " AS IS " BASIS , (ns cook.monitor (:require [chime :refer [chime-at]] [clj-time.core :as time] [clojure.set :refer [difference union]] [clojure.tools.logging :as log] [co...
12fb06f5d91ae8a312c25e7a8a0be513cf698393e64c815a70ed9df1edfb0683
FlowerWrong/mblog
my_bank.erl
%% --- Excerpted from " Programming Erlang , Second Edition " , published by The Pragmatic Bookshelf . %% Copyrights apply to this code. It may not be used to create training material, %% courses, books, articles, and the like. Contact us if you are in doubt. %% We make no guarantees that this code is fit for...
null
https://raw.githubusercontent.com/FlowerWrong/mblog/3233ede938d2019a7b57391405197ac19c805b27/categories/erlang/demo/jaerlang2_code/my_bank.erl
erlang
--- Copyrights apply to this code. It may not be used to create training material, courses, books, articles, and the like. Contact us if you are in doubt. We make no guarantees that this code is fit for any purpose. Visit for more book information. --- gen_server callbacks
Excerpted from " Programming Erlang , Second Edition " , published by The Pragmatic Bookshelf . -module(my_bank). -behaviour(gen_server). -export([start/0]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -compile(export_all). -define(SERVER, ?MODULE). start() -> ...
e8719039d9a5a69cea9c0a747eff636e8b4cc9f7b8d125116c55788e51489ad3
coccinelle/coccinelle
visitor_ast.mli
* This file is part of Coccinelle , licensed under the terms of the GPL v2 . * See copyright.txt in the Coccinelle source code for more information . * The Coccinelle source code can be obtained at * This file is part of Coccinelle, licensed under the terms of the GPL v2. * See copyright.txt in the Cocci...
null
https://raw.githubusercontent.com/coccinelle/coccinelle/57cbff0c5768e22bb2d8c20e8dae74294515c6b3/parsing_cocci/visitor_ast.mli
ocaml
for specifying the type of rebuilder
* This file is part of Coccinelle , licensed under the terms of the GPL v2 . * See copyright.txt in the Coccinelle source code for more information . * The Coccinelle source code can be obtained at * This file is part of Coccinelle, licensed under the terms of the GPL v2. * See copyright.txt in the Cocci...
84216f20a206eb58203b057ce9e594099dc21489cc023f5e64894694aef02fb7
ashinkarov/heh
test_value.ml
open OUnit open Ordinals open Value open Valueops let vv = List.map (fun x -> Valueops.mk_int_value x) let test_value_const _ = assert_equal ~msg:"mk_false" (mk_false_value) (VFalse); assert_equal ~msg:"mk_true" (mk_true_value) (VTrue); assert_equal ~msg:"mk_int 0" (mk_int_value 0) (VNum ...
null
https://raw.githubusercontent.com/ashinkarov/heh/42866803b2ffacdc42b8f06203bf4e5bd18e03b0/tests/test_value.ml
ocaml
open OUnit open Ordinals open Value open Valueops let vv = List.map (fun x -> Valueops.mk_int_value x) let test_value_const _ = assert_equal ~msg:"mk_false" (mk_false_value) (VFalse); assert_equal ~msg:"mk_true" (mk_true_value) (VTrue); assert_equal ~msg:"mk_int 0" (mk_int_value 0) (VNum ...
be17442b3c64c2119c5e11ef1a598a2b7a9d55342a0c56a34043997621fa89f7
yallop/ocaml-asp
json_tokens_base.ml
* Copyright ( c ) 2018 and * * This file is distributed under the terms of the MIT License . * See the file LICENSE for details . * Copyright (c) 2018 Neelakantan Krishnaswami and Jeremy Yallop * * This file is distributed under the terms of the MIT License. * See the file LICENSE for details. *...
null
https://raw.githubusercontent.com/yallop/ocaml-asp/a092f17ea55d427c63414899e39a8fe80b30db14/benchmarks/json/json_tokens_base.ml
ocaml
* Copyright ( c ) 2018 and * * This file is distributed under the terms of the MIT License . * See the file LICENSE for details . * Copyright (c) 2018 Neelakantan Krishnaswami and Jeremy Yallop * * This file is distributed under the terms of the MIT License. * See the file LICENSE for details. *...
89137d52ca0f97d90a8f84362253ef99423a85e1de592da303eb8cc9160f8d5f
ates/netspire-core
mod_ippool.erl
-module(mod_ippool). -behaviour(gen_module). %% API -export([info/0, allocate/1, add_framed_ip/1, renew_framed_ip/1, release_framed_ip/1]). %% gen_module callbacks -export([start/1, stop/0]). -include("../netspire.hrl"). -include("../radius/radius.hrl"). -record(ippool_entry, {i...
null
https://raw.githubusercontent.com/ates/netspire-core/746c0f254aa6f2669040d954096b4a95ae58b3ce/src/modules/mod_ippool.erl
erlang
API gen_module callbacks
-module(mod_ippool). -behaviour(gen_module). -export([info/0, allocate/1, add_framed_ip/1, renew_framed_ip/1, release_framed_ip/1]). -export([start/1, stop/0]). -include("../netspire.hrl"). -include("../radius/radius.hrl"). -record(ippool_entry, {ip, pool, expires_at = 0}). -de...
460108b06d39223f164e1c02bf8f54af1f6fa65511140ccaf574524a48383054
sbcl/specializable
signum-specializer.lisp
;;;; signum-specializer.lisp --- signum specializer examples. ;;;; Copyright ( C ) 2013 , 2014 , ;;;; Author : < > (cl:defpackage #:signum-specializer.example (:use #:cl #:specializable)) (cl:in-package #:signum-specializer.example) (eval-when (:compile-toplevel :load-toplevel :execute) (defclass ...
null
https://raw.githubusercontent.com/sbcl/specializable/a08048ce874a2a8c58e4735d88de3bf3da0de052/examples/signum-specializer.lisp
lisp
signum-specializer.lisp --- signum specializer examples. note: this method operates in full knowledge of the object, and so does not require the generic function as an argument. note: the need for this method is tricky: we need to translate from generalizers that our specializers "know" about to those that test...
Copyright ( C ) 2013 , 2014 , Author : < > (cl:defpackage #:signum-specializer.example (:use #:cl #:specializable)) (cl:in-package #:signum-specializer.example) (eval-when (:compile-toplevel :load-toplevel :execute) (defclass signum-specializer (extended-specializer) ((signum :initarg :signum ...
8bc3be2efe988a57653be45f8373abcd11a51c3c6eafae2c2d3ece41e15ac026
caradoc-org/caradoc
operator.ml
(*****************************************************************************) (* Caradoc: a PDF parser and validator *) Copyright ( C ) 2016 - 2017 (* *) (* This program ...
null
https://raw.githubusercontent.com/caradoc-org/caradoc/100f53bc55ef682049e10fabf24869bc019dc6ce/src/contentstream/operator.ml
ocaml
*************************************************************************** Caradoc: a PDF parser and validator This program is free software; you can redistribute it and/or modify ...
Copyright ( C ) 2016 - 2017 it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation . You should have received a copy of the GNU General Public License along with this program ; if...
14106bed14b5a607abf20aa48d1f1c15ba508e49822074c4f84bf678e37fb198
c-cube/stimsym
Base_types.ml
(* This file is free software. See file "license" for more details. *) (** {1 Basic Types} *) module Properties = Bit_set.Make(struct end) type mime_content = { mime_ty: string; mime_data: string; mime_base64: bool; } type eval_side_effect = | Print_doc of Document.t | Print_mime of mime_content type co...
null
https://raw.githubusercontent.com/c-cube/stimsym/38c744b5f770b52980abbfe7636a0dc2b91bbeb7/src/core/Base_types.ml
ocaml
This file is free software. See file "license" for more details. * {1 Basic Types} only in rules RHS (partial) definition of a symbol anything, or anything with the given head match, then bind register match, then check syntactic equality with content of register for slices pattern if condition `p?t` ...
module Properties = Bit_set.Make(struct end) type mime_content = { mime_ty: string; mime_data: string; mime_base64: bool; } type eval_side_effect = | Print_doc of Document.t | Print_mime of mime_content type const = { cst_name: string; cst_id: int; mutable cst_properties: Properties.t; mutable c...
692b9657eae216fbeb345da8fd76a82e588fa4124938861f1f1e08c222cc2f1c
dongcarl/guix
chemistry.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2018 < > Copyright © 2018 , 2021 < > Copyright © 2018 < > Copyright © 2018 < > Copyright © 2020 < > Copyright © 2020 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or ...
null
https://raw.githubusercontent.com/dongcarl/guix/d2b30db788f1743f9f8738cb1de977b77748567f/gnu/packages/chemistry.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 < > Copyright © 2018 , 2021 < > Copyright © 2018 < > Copyright © 2018 < > Copyright © 2020 < > 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 ....
2838fb920e84d4fe2a95e645b4e6d013b0484cf53b1dd4ef76d4c37797e72d30
emqx/lc
load_ctl.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2021 EMQ Technologies Co. , Ltd. All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the L...
null
https://raw.githubusercontent.com/emqx/lc/32dc4a56960d96112cee4de77cd14a6f2e78d311/src/load_ctl.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2021 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(load_ctl). -include("lc.hrl"). -export([ is_overloaded/0 , is_high_mem/0 , ma...
dcff3330c8a4a26a728e856b2e8870c9de4daae5862c04ae6ff31ca48d8c262a
kelamg/HtDP2e-workthrough
ex80.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-beginner-reader.ss" "lang")((modname ex80) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #...
null
https://raw.githubusercontent.com/kelamg/HtDP2e-workthrough/ec05818d8b667a3c119bea8d1d22e31e72e0a958/HtDP/Fixed-size-Data/ex80.rkt
racket
about the language level of this file in a form that our tools can easily process. designing with structures ========================================= ========================================== =========================================
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-reader.ss" "lang")((modname ex80) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (define-struct movie (title director year)) (define (fn-for-movie ...
165a7d8698809c931f4e3fa92becc9a753e61844cace6714e5002336c8cccdda
aryx/xix
menu_ui.ml
open Common open Point open Rectangle module I = Display (* image type is in display.ml *) module D = Display (*****************************************************************************) (* Prelude *) (*****************************************************************************) (* old: called menuhit.c in draw-C...
null
https://raw.githubusercontent.com/aryx/xix/60ce1bd9a3f923e0e8bb2192f8938a9aa49c739c/lib_graphics/ui/menu_ui.ml
ocaml
image type is in display.ml *************************************************************************** Prelude *************************************************************************** old: called menuhit.c in draw-C *************************************************************************** Types and constan...
open Common open Point open Rectangle module D = Display inspiration is GToolbox in lablgtk type item = (string * (unit -> unit)) type items = item list let background = ref Display.fake_image let background_highlighted = ref Display.fake_image let border_color = ref Display.fake_image le...
dd2ac88fa3e0f93e9b6c1d86daa8c7d6e220453410e3a0620b06f268476cb950
mpenet/hayt
joda_time.clj
(ns qbits.hayt.codec.joda-time "require/use this namespace if you want hayt to support Joda DateTime encoding when generating raw queries" (:require [qbits.hayt.cql :as cql] [clj-time.coerce :as ct])) (extend-protocol cql/CQLEntities org.joda.time.DateTime (cql-value [x] (ct/to-long x)))
null
https://raw.githubusercontent.com/mpenet/hayt/7bbc06fae481bda89295dcc39d06382c4ba64568/src/clj/qbits/hayt/codec/joda_time.clj
clojure
(ns qbits.hayt.codec.joda-time "require/use this namespace if you want hayt to support Joda DateTime encoding when generating raw queries" (:require [qbits.hayt.cql :as cql] [clj-time.coerce :as ct])) (extend-protocol cql/CQLEntities org.joda.time.DateTime (cql-value [x] (ct/to-long x)))
b3471f2d76a0fc8abc7f6a4a669f9ac8579d0f71b8704fc469190aa6a7b0c2a0
argp/bap
batInt64.mli
* BatInt64 - Extended 64 - bit integers * Copyright ( C ) 2005 * 2007 Bluestorm < bluestorm dot dylc on - the - server gmail dot com > * 2008 * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Pu...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/batteries/src/batInt64.mli
ocaml
* Unary negation. * Addition. * Subtraction. * Multiplication. * Successor. [Int64.succ x] is [Int64.add x Int64.one]. * Predecessor. [Int64.pred x] is [Int64.sub x Int64.one]. * Return the absolute value of its argument. * Bitwise logical and. * Bitwise logical or. * Bitwise logical exclusive or. * Bitwise...
* BatInt64 - Extended 64 - bit integers * Copyright ( C ) 2005 * 2007 Bluestorm < bluestorm dot dylc on - the - server gmail dot com > * 2008 * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Pu...
b6f855218328dc152865ca2b680966cdc9ceeb3bf715811ada2d59d726eada3e
achirkin/vulkan
VK_EXT_shader_atomic_float.hs
# OPTIONS_HADDOCK not - home # {-# LANGUAGE DataKinds #-} {-# LANGUAGE MagicHash #-} # LANGUAGE PatternSynonyms # {-# LANGUAGE Strict #-} {-# LANGUAGE ViewPatterns #-} module Graphics.Vulkan.Ext.VK_EXT_shader_atomic_float * Vulkan extension : @VK_EXT_shader_atomic_float@ -- | -...
null
https://raw.githubusercontent.com/achirkin/vulkan/b2e0568c71b5135010f4bba939cd8dcf7a05c361/vulkan-api/src-gen/Graphics/Vulkan/Ext/VK_EXT_shader_atomic_float.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE MagicHash # # LANGUAGE Strict # # LANGUAGE ViewPatterns # | supported: @vulkan@ contact: @Vikram Kushwaha @vkushwaha-nv@ type: @device@ Extension number: @261@ Required extensions: 'VK_KHR_get_physical_device_properties2'. ** Required extensions: '...
# OPTIONS_HADDOCK not - home # # LANGUAGE PatternSynonyms # module Graphics.Vulkan.Ext.VK_EXT_shader_atomic_float * Vulkan extension : @VK_EXT_shader_atomic_float@ author : module Graphics.Vulkan.Marshal, AHardwareBuffer(), ANativeWindow(), CAMetalLayer(), VkBool32(..), VkDeviceAddress(..), ...
a94e66026c21d4442c73f3890e0c3cb2ca7373f75173d6657e4ec7033ed996e9
AeneasVerif/aeneas
InterpreterBorrows.mli
module T = Types module V = Values module C = Contexts module Subst = Substitute module L = Logging module S = SynthesizeSymbolic open Cps open InterpreterProjectors (** When copying values, we duplicate the shared borrows. This is tantamount to reborrowing the shared value. The [reborrow_shared original_id new_bi...
null
https://raw.githubusercontent.com/AeneasVerif/aeneas/1535b37ae84ddb1d2679c19b8fcc734351e5ce5d/compiler/InterpreterBorrows.mli
ocaml
* When copying values, we duplicate the shared borrows. This is tantamount to reborrowing the shared value. The [reborrow_shared original_id new_bid ctx] applies this change to an environment [ctx] by inserting a new borrow id in the set of borrows tracked by a shared value, referenced by the [original_...
module T = Types module V = Values module C = Contexts module Subst = Substitute module L = Logging module S = SynthesizeSymbolic open Cps open InterpreterProjectors val reborrow_shared : V.BorrowId.id -> V.BorrowId.id -> C.eval_ctx -> C.eval_ctx * End a borrow identified by its i d , while preserving the invariants ...
c021371d873ef93a8f86b518c8df26e87927ba06d9c8239755f153827d579961
blamario/construct
Bits.hs
{-# LANGUAGE GADTs, TypeOperators #-} -- | This module exports the primitives and combinators for constructing formats with sub- or cross-byte -- components. See @test/MBR.hs@ for an example of its use. -- > > > ( bigEndianBytesOf $ pair ( count 5 bit ) ( count 3 bit ) ) ( ByteString.pack [ 9 ] ) -- Right [(([False...
null
https://raw.githubusercontent.com/blamario/construct/ab6ab76d8fafef9912531e3e648b4fb7e074e631/src/Construct/Bits.hs
haskell
# LANGUAGE GADTs, TypeOperators # | This module exports the primitives and combinators for constructing formats with sub- or cross-byte components. See @test/MBR.hs@ for an example of its use. Right [(([False,False,False,False,True],[False,False,True]),"")] | The list of bits | The primitive format of a single bi...
> > > ( bigEndianBytesOf $ pair ( count 5 bit ) ( count 3 bit ) ) ( ByteString.pack [ 9 ] ) module Construct.Bits (Bits, bit, * The combinators for converting between ' Bits ' and ' ByteString ' input streams bigEndianBitsOf, bigEndianBytesOf, littleEndianBitsOf, littleEndianBytesOf) where import Data.Bits...
3b31c5d666e8055b93c5b74a3afd4ac7c52dd711e66b6c262c2188b6459675c0
ghcjs/ghcjs
cgrun060.hs
tickled a bug in stack squeezing in 6.8.2 . unsafePerformIO calls -- noDuplicate#, which marks the update frames on the stack, and was -- preventing subsequent update frames from being collapsed with the -- marked frame. module Main where import System.IO.Unsafe main = print (sim (replicate 100000 ())) sim [] ...
null
https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/test/ghc/codeGen/cgrun060.hs
haskell
noDuplicate#, which marks the update frames on the stack, and was preventing subsequent update frames from being collapsed with the marked frame. no stack overflow stack overflow
tickled a bug in stack squeezing in 6.8.2 . unsafePerformIO calls module Main where import System.IO.Unsafe main = print (sim (replicate 100000 ())) sim [] = True sim (_:xs) = badStack (sim xs) fromJust (Just x) = x
1e68e9da77b249d1f19be1c67499738da809e70a2a477b94ee6acdc4b6fddc48
exoscale/clojure-kubernetes-client
v1alpha1_webhook_throttle_config.clj
(ns clojure-kubernetes-client.specs.v1alpha1-webhook-throttle-config (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] ) (:import (java.io File))) (declare v1alpha1-webhook-throttle-config-data v1alpha1-webhook-throttle-config) (def v1alpha1-webhook-throttle-config-data ...
null
https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/v1alpha1_webhook_throttle_config.clj
clojure
(ns clojure-kubernetes-client.specs.v1alpha1-webhook-throttle-config (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] ) (:import (java.io File))) (declare v1alpha1-webhook-throttle-config-data v1alpha1-webhook-throttle-config) (def v1alpha1-webhook-throttle-config-data ...
782e73be3b66466fcba1b8453e9bff1203689d03d0c92c4a56814ff968b4dad2
armedbear/abcl
with-hash-table-iterator.lisp
with-hash-table-iterator.lisp ;;; Copyright ( C ) 2003 $ Id$ ;;; ;;; This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later ve...
null
https://raw.githubusercontent.com/armedbear/abcl/36a4b5994227d768882ff6458b3df9f79caac664/src/org/armedbear/lisp/with-hash-table-iterator.lisp
lisp
This program is free software; you can redistribute it and/or either version 2 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details...
with-hash-table-iterator.lisp Copyright ( C ) 2003 $ Id$ modify it under the terms of the GNU General Public License of the License , or ( at your option ) any later version . You should have received a copy of the GNU General Public License Foundation , Inc. , 59 Temple Place - Suite 330 , Boston , MA ...
bf59990370a12bdb9e334483ba01202ab6aa314320920b7ecdebd476a4691fd3
freizl/dive-into-haskell
Main.hs
module Main where import Data.Foldable import Data.Monoid main :: IO () main = putStrLn "Hello, Haskell!" s1 = foldr (++) "" ["hello", " haskell"] s2 = fold ["hello", " haskell", "!!"] s3 = concat ["hello", " haskell", "!!"] t1 = fmap length Just 2
null
https://raw.githubusercontent.com/freizl/dive-into-haskell/b18a6bfe212db6c3a5d707b4a640170b8bcf9330/readings/haskell-book/20/Main.hs
haskell
module Main where import Data.Foldable import Data.Monoid main :: IO () main = putStrLn "Hello, Haskell!" s1 = foldr (++) "" ["hello", " haskell"] s2 = fold ["hello", " haskell", "!!"] s3 = concat ["hello", " haskell", "!!"] t1 = fmap length Just 2
0b915459937c42ec991194dc2fa1c8c9c2302fac97bcecdcafd79a63d78da592
vorotynsky/Kroha
Nasm.hs
module Kroha.Backends.Nasm (nasm) where import Data.Bifunctor (first) import Data.Graph (buildG) import Data.List (intercalate) import Data.Maybe (fromJust) import Kroha.Backends.Common import Kroha.Errors import ...
null
https://raw.githubusercontent.com/vorotynsky/Kroha/e5d11c5f3612d3ea9b0701c7945ff8cc51ea12d6/src/Kroha/Backends/Nasm.hs
haskell
module Kroha.Backends.Nasm (nasm) where import Data.Bifunctor (first) import Data.Graph (buildG) import Data.List (intercalate) import Data.Maybe (fromJust) import Kroha.Backends.Common import Kroha.Errors import ...
21c06689ed93304a6fb26a10c3ac94cf773a2c799b67a4d45dbf2c775b409446
Copilot-Language/copilot-core
Render.hs
-------------------------------------------------------------------------------- Copyright © 2011 National Institute of Aerospace / Galois , Inc. -------------------------------------------------------------------------------- -- | Pretty-print the results of a simulation. {-# LANGUAGE Safe #-} module Copilot.Core...
null
https://raw.githubusercontent.com/Copilot-Language/copilot-core/a8b79da96b11da20c36c4d4e0624e234a4d04323/src/Copilot/Core/Interpret/Render.hs
haskell
------------------------------------------------------------------------------ ------------------------------------------------------------------------------ | Pretty-print the results of a simulation. # LANGUAGE Safe # ------------------------------------------------------------------------------ | Render an executi...
Copyright © 2011 National Institute of Aerospace / Galois , Inc. module Copilot.Core.Interpret.Render ( renderAsTable , renderAsCSV ) where import Data.List (intersperse, transpose, foldl') import Data.Maybe (catMaybes) import Copilot.Core.Interpret.Eval (Output, ExecTrace (..)) import Text.PrettyPrint imp...
ad16747187bc21ccf9a7612488b41d6d1e366533dace80d94360eb2fe564a596
JHU-PL-Lab/jaylang
toChurch02.ml
let rec bot _ = bot () let fail _ = assert false let rec c10_COEFFICIENT_1129 = 0 let rec c9_COEFFICIENT_1128 = 0 let rec c8_COEFFICIENT_1127 = 0 let rec c7_COEFFICIENT_1125 = 0 let rec c6_COEFFICIENT_1124 = 0 let rec c5_COEFFICIENT_1123 = 0 let rec c4_COEFFICIENT_1122 = 0 let rec c3_COEFFICIE...
null
https://raw.githubusercontent.com/JHU-PL-Lab/jaylang/484b3876986a515fb57b11768a1b3b50418cde0c/benchmark/cases/mochi_origin/termination/toChurch02.ml
ocaml
let rec bot _ = bot () let fail _ = assert false let rec c10_COEFFICIENT_1129 = 0 let rec c9_COEFFICIENT_1128 = 0 let rec c8_COEFFICIENT_1127 = 0 let rec c7_COEFFICIENT_1125 = 0 let rec c6_COEFFICIENT_1124 = 0 let rec c5_COEFFICIENT_1123 = 0 let rec c4_COEFFICIENT_1122 = 0 let rec c3_COEFFICIE...
aa9effcbefb19ab345c63e0d8ecf64fb098e95336cf403cb6a621420c018a446
Decentralized-Pictures/T4L3NT
test_lwt_addition_output.ml
let _ = Tezos_time_measurement_runtime.Default.Time_measurement.duration_lwt ("addition", []) (fun () -> Lwt.return (1 + 3))
null
https://raw.githubusercontent.com/Decentralized-Pictures/T4L3NT/6d4d3edb2d73575384282ad5a633518cba3d29e3/src/lib_time_measurement/ppx/test/valid/test_lwt_addition_output.ml
ocaml
let _ = Tezos_time_measurement_runtime.Default.Time_measurement.duration_lwt ("addition", []) (fun () -> Lwt.return (1 + 3))
e8d2ab0b67b6d6c24827ccacd63b81c6e71ea3a7ca639fab6df2838ef73faa34
NixOS/cabal2nix
Builder.hs
{-# LANGUAGE BangPatterns #-} {- | Maintainer: Stability: provisional Portability: portable -} module Distribution.Hackage.DB.Builder ( readTarball, parseTarball , Builder(..) ) where import Distribution.Hackage.DB.Errors import Distribution.Hackage.DB.Utility import Codec.Archive.Tar as Tar i...
null
https://raw.githubusercontent.com/NixOS/cabal2nix/0d1a5a7d227683e9d099665f645a8618ec48ef94/hackage-db/src/Distribution/Hackage/DB/Builder.hs
haskell
# LANGUAGE BangPatterns # | Maintainer: Stability: provisional Portability: portable
module Distribution.Hackage.DB.Builder ( readTarball, parseTarball , Builder(..) ) where import Distribution.Hackage.DB.Errors import Distribution.Hackage.DB.Utility import Codec.Archive.Tar as Tar import Codec.Archive.Tar.Entry as Tar import Control.Monad.Catch import qualified Data.ByteString.Lazy as BSL ...
73465010045c981bbb0f28f150c1f03215dd2deda1d392eefe90ba713d5dcd11
OCamlPro/ocp-build
a.ml
(**************************************************************************) (* *) (* OCamlPro TypeRex *) (* *) Copyrigh...
null
https://raw.githubusercontent.com/OCamlPro/ocp-build/56aff560bb438c12b2929feaf8379bc6f31b9840/tests/ocp-build/cycle/a.ml
ocaml
************************************************************************ OCamlPro TypeRex This file is distributed ...
Copyright OCamlPro 2011 - 2016 . All rights reserved . ( GNU Public Licence version 3.0 ) . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , NONINFRINGEMENT . IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE...
ac12f24302e957d9e8fb7a22b2f55ddbc20c2cbd17c7f17a7bd0798bf4ca5c54
Glue42/glue-core-gateways
common.cljs
(ns gateway.cljs.common (:require [gateway.node :as node] [gateway.common.utilities :as util] [taoensso.timbre :as timbre] [clojure.string :as string])) (defn now [] (.getTime (js/Date.))) (defn- valid-message? [message] true) (defn- transform-incoming [message] (let [message...
null
https://raw.githubusercontent.com/Glue42/glue-core-gateways/f334ad9a043f5185dc5ee5f342a8c1b2cf1c1554/packages/common/src/gateway/cljs/common.cljs
clojure
(ns gateway.cljs.common (:require [gateway.node :as node] [gateway.common.utilities :as util] [taoensso.timbre :as timbre] [clojure.string :as string])) (defn now [] (.getTime (js/Date.))) (defn- valid-message? [message] true) (defn- transform-incoming [message] (let [message...
4bcd4339af7426ff9ebaf5d59a4f2df67dee1732aa165f107d6d5943b7c45ee2
arttuka/reagent-material-ui
desktop_windows.cljs
(ns reagent-mui.icons.desktop-windows "Imports @mui/icons-material/DesktopWindows as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def desktop-windows (create-sv...
null
https://raw.githubusercontent.com/arttuka/reagent-material-ui/14103a696c41c0eb67fc07fc67cd8799efd88cb9/src/icons/reagent_mui/icons/desktop_windows.cljs
clojure
(ns reagent-mui.icons.desktop-windows "Imports @mui/icons-material/DesktopWindows as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def desktop-windows (create-sv...
85ec5fd0432c7f1a75afff04ab2c0dbe08ab8307634913afc328f7ba05e57508
bbusching/libgit2
refspec.rkt
#lang racket (require ffi/unsafe "define.rkt" "types.rkt" "net.rkt" "buffer.rkt" "utils.rkt") (provide (all-defined-out)) (define-libgit2 git_refspec_direction (_fun _refspec -> _git_direction)) (define-libgit2 git_refspec_dst (_fun _refspec -> _string)) (define-lib...
null
https://raw.githubusercontent.com/bbusching/libgit2/6d6a007543900eb7a6fbbeba55850288665bdde5/libgit2/include/refspec.rkt
racket
#lang racket (require ffi/unsafe "define.rkt" "types.rkt" "net.rkt" "buffer.rkt" "utils.rkt") (provide (all-defined-out)) (define-libgit2 git_refspec_direction (_fun _refspec -> _git_direction)) (define-libgit2 git_refspec_dst (_fun _refspec -> _string)) (define-lib...
35ebd03341a578c3e9d82f0604a795626deafd4a800c24bf0442c1da10448e13
mkremins/starfreighter
app.cljs
(ns starfreighter.app (:refer-clojure :exclude [rand rand-int rand-nth shuffle]) (:require [clojure.string :as str] [om.core :as om] [om-tools.core :refer-macros [defcomponent]] [om-tools.dom :as dom] [starfreighter.db :as db] [starfreighter.desc :as desc]...
null
https://raw.githubusercontent.com/mkremins/starfreighter/2be40b4aa5f288bb9829a2e1362a7bfc1e7f12dc/src/starfreighter/app.cljs
clojure
else map rendering stuff draw connections draw places draw button to depart for target (if any) clicking anywhere *except* on an info link should reset :info-target
(ns starfreighter.app (:refer-clojure :exclude [rand rand-int rand-nth shuffle]) (:require [clojure.string :as str] [om.core :as om] [om-tools.core :refer-macros [defcomponent]] [om-tools.dom :as dom] [starfreighter.db :as db] [starfreighter.desc :as desc]...
5e8cc92d234f8a67569166260e3d8c57cbeeaf79e74879b1f1f78f454aa7a623
babashka/babashka
jdbc.clj
(ns babashka.impl.jdbc {:no-doc true} (:require [next.jdbc :as njdbc] [next.jdbc.result-set :as rs] [next.jdbc.sql :as sql] [sci.core :as sci])) (def next-ns (sci/create-ns 'next.jdbc nil)) (defn with-transaction "Given a transactable object, gets a connection and binds it to `sym`, then executes ...
null
https://raw.githubusercontent.com/babashka/babashka/ee85685334fddda28afee71da85de90312f7e606/feature-jdbc/babashka/impl/jdbc.clj
clojure
(ns babashka.impl.jdbc {:no-doc true} (:require [next.jdbc :as njdbc] [next.jdbc.result-set :as rs] [next.jdbc.sql :as sql] [sci.core :as sci])) (def next-ns (sci/create-ns 'next.jdbc nil)) (defn with-transaction "Given a transactable object, gets a connection and binds it to `sym`, then executes ...
3508e0795dbdf705e0a9d54729877eccc632f08f006df309df17add8b38a4bd8
HealthSamurai/stresty
matcho.clj
(ns stresty.matchers.matcho (:require [clojure.string :as s] [zen.core :as zen])) (defn template [conf template] (s/replace template #"\{([a-zA-Z0-9-_\.]+)\}" #(let [template-segments (-> % second (s/split #"\."))] (->> template-segments (mapv keyword) (get-in conf)...
null
https://raw.githubusercontent.com/HealthSamurai/stresty/f87f92c05c4813e954ad9fec7901a975384d9704/src/stresty/matchers/matcho.clj
clojure
(ns stresty.matchers.matcho (:require [clojure.string :as s] [zen.core :as zen])) (defn template [conf template] (s/replace template #"\{([a-zA-Z0-9-_\.]+)\}" #(let [template-segments (-> % second (s/split #"\."))] (->> template-segments (mapv keyword) (get-in conf)...
df42cdaafb3c00cdf5b2ab6c7f845e597607e9ad9ec5356aba2a841a966dcbc6
kaoskorobase/mescaline
looper.hs
# LANGUAGE ScopedTypeVariables # import Language.Haskell.Interpreter (InterpreterError(..), GhcError(..)) import Control.Concurrent import Control.Concurrent.Chan import Control.Concurrent.MVar import Control.Monad (unless) import Control.Monad.Trans (liftIO) import ...
null
https://raw.githubusercontent.com/kaoskorobase/mescaline/13554fc4826d0c977d0010c0b4fb74ba12ced6b9/tools/looper.hs
haskell
print e writeLooperEvent c e = liftIO $ do t <- utcr writeChan c (t, e) main_gui_looper db us' = do unsafeInitGUIForThreadedRTS window <- windowNew -- windowSetDecorated window False windowSetResizable window True widgetSetAppPaintable window True windowSetTitle window "Fuck...
# LANGUAGE ScopedTypeVariables # import Language.Haskell.Interpreter (InterpreterError(..), GhcError(..)) import Control.Concurrent import Control.Concurrent.Chan import Control.Concurrent.MVar import Control.Monad (unless) import Control.Monad.Trans (liftIO) import ...
7e335abc554feb46d7d873d7682ceae9f3a56ed94ce0a3de4094812309776515
pusher/stronghold
SQLiteInterface.hs
# LANGUAGE OverloadedStrings , GADTs # module SQLiteInterface where import Control.Concurrent.STM (TVar, STM, atomically, retry) import Control.Monad (when) import Control.Monad.Operational (ProgramViewT (..), view) import Control.Monad.Trans (lift) import Control.Monad.Trans.Maybe (MaybeT (..)) import Crypto.Hash.SHA...
null
https://raw.githubusercontent.com/pusher/stronghold/b5ec314425d9492f881f46d14b78d76de7b9429b/src/SQLiteInterface.hs
haskell
# LANGUAGE OverloadedStrings , GADTs # module SQLiteInterface where import Control.Concurrent.STM (TVar, STM, atomically, retry) import Control.Monad (when) import Control.Monad.Operational (ProgramViewT (..), view) import Control.Monad.Trans (lift) import Control.Monad.Trans.Maybe (MaybeT (..)) import Crypto.Hash.SHA...
6540589adc227e51cf6fe473fdcf19ec2d3549d837f5bef65875ea684642e5d6
WorksHub/client
core.cljs
(ns wh.blogs.core (:require [cljs.loader :as loader] [re-frame.core :refer [dispatch dispatch-sync reg-event-db]] [wh.blogs.blog.db :as blog-db] [wh.blogs.blog.views :as blog] [wh.blogs.blog.events] [wh.blogs.learn.views :as learn] [wh.blogs.learn.events] [wh.blogs.liked.views :as like...
null
https://raw.githubusercontent.com/WorksHub/client/77e4212a69dad049a9e784143915058acd918982/client/src/wh/blogs/core.cljs
clojure
don't unset loader here; too early
(ns wh.blogs.core (:require [cljs.loader :as loader] [re-frame.core :refer [dispatch dispatch-sync reg-event-db]] [wh.blogs.blog.db :as blog-db] [wh.blogs.blog.views :as blog] [wh.blogs.blog.events] [wh.blogs.learn.views :as learn] [wh.blogs.learn.events] [wh.blogs.liked.views :as like...
738ca6831eaac48ff749cea0cfd73b99a23e60543808bc613e16bfcb38c928b8
Dasudian/DSDIN
dsdct_utils.erl
-module(dsdct_utils). -export([hex_bytes/1, hex_byte/1, check_balance/3, check/2]). -spec hex_byte(byte()) -> string(). hex_byte(N) -> hex_bytes(<<N:8>>). -spec hex_bytes(binary()) -> string(). hex_bytes(Bin) -> lists:flatten("0x" ++ [io_lib:format("~2.16.0B", [B]) || <<B:8>> <= Bin]). -spec check_balance(...
null
https://raw.githubusercontent.com/Dasudian/DSDIN/b27a437d8deecae68613604fffcbb9804a6f1729/apps/dsdcontract/src/dsdct_utils.erl
erlang
-module(dsdct_utils). -export([hex_bytes/1, hex_byte/1, check_balance/3, check/2]). -spec hex_byte(byte()) -> string(). hex_byte(N) -> hex_bytes(<<N:8>>). -spec hex_bytes(binary()) -> string(). hex_bytes(Bin) -> lists:flatten("0x" ++ [io_lib:format("~2.16.0B", [B]) || <<B:8>> <= Bin]). -spec check_balance(...
c723203016bc1d3544eff2611e5251ab28ab6564d05c90343b1f590f8ce7332e
infi-nl/alibi
entry_page.cljs
(ns alibi.entry-page (:require [alibi.logging :refer [log log-cljs]] [alibi.post-new-entry-bar :as post-new-entry-bar] [alibi.post-entry-form :as post-entry-form] [alibi.activity-graphic :as activity-graphic] [alibi.activity-graphic-data-source :as ag-ds] [alibi.day-entry-table :as day-entry-t...
null
https://raw.githubusercontent.com/infi-nl/alibi/00e97340ebff483f0ecbb3eef929a4052adbc78b/src/frontend/cljs/alibi/entry_page.cljs
clojure
if you wonder why we introduce an itermediate IRender here: it seems Om (log "new-state %o" new-state)
(ns alibi.entry-page (:require [alibi.logging :refer [log log-cljs]] [alibi.post-new-entry-bar :as post-new-entry-bar] [alibi.post-entry-form :as post-entry-form] [alibi.activity-graphic :as activity-graphic] [alibi.activity-graphic-data-source :as ag-ds] [alibi.day-entry-table :as day-entry-t...