_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
97e8b2754db18ec9ce8b1bfa6c6813476e96b65b212bc160c22c0ca489b3a313
yzhs/ocamlllvm
complex.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/yzhs/ocamlllvm/45cbf449d81f2ef9d234968e49a4305aaa39ace2/src/stdlib/complex.mli
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 2002 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with $ Id$ type t = { re: float; im: flo...
696a371b89c4dc0f6107e906fcefb7c3caf0fcde7cc74887294438d0b7dba0c2
kostyushkin/erlworld
mover_state.erl
%%% %%% mover_state %%% %%% @doc A module that builds on top of the actor_state module. %%% It adds some common movement code for moving the actor state around. %%% -module( mover_state ). -author("Joseph Lenton"). -include("mover_state.hrl"). -include("blastox.hrl"). -export([ new/4 ...
null
https://raw.githubusercontent.com/kostyushkin/erlworld/1c55c9eb0d12db9824144b4ff7535960c53e35c8/examples/Blastoxs/src/mover_state.erl
erlang
mover_state @doc A module that builds on top of the actor_state module. It adds some common movement code for moving the actor state around. %%% %%% %%% %%% %%% %%% %%% %%% %%% %%% %%% %%% %%% %%% %%% %%% %%% %%% %%% Construction %%% %%% %%% %%% %%% %%% %%% %%% %%% %%% %%% %%% %%% %%% %...
-module( mover_state ). -author("Joseph Lenton"). -include("mover_state.hrl"). -include("blastox.hrl"). -export([ new/4 , new/5 , new_paint/0 , set_xy/2, set_xy/3 , move/2, move/3 , act_move/2 , act_turn/4 , get_angle/1 , get_img/1 , limit_xy...
2a0eb08b81c7fba283afa52064966d6fbef44d304cc6432966bdfbb6fb30bd76
yjqww6/drcomplete
info.rkt
#lang info (define collection "drcomplete-method-names") (define deps '("base" "drracket-plugin-lib" "gui-lib" "drcomplete-base")) (define build-deps '("rackunit-lib")) (define pkg-desc "auto complete for method names") (define version "0.2") (define pkg-authors '(yjqww6)) (define drracket-tools...
null
https://raw.githubusercontent.com/yjqww6/drcomplete/b3f7390149e8d006c92b8a8a4da1593da547e235/drcomplete-method-names/info.rkt
racket
#lang info (define collection "drcomplete-method-names") (define deps '("base" "drracket-plugin-lib" "gui-lib" "drcomplete-base")) (define build-deps '("rackunit-lib")) (define pkg-desc "auto complete for method names") (define version "0.2") (define pkg-authors '(yjqww6)) (define drracket-tools...
20fe7705832d330c7f32d8c9dc4dd2039fd1f82a58f6d3904c43ee3f72a2cb67
BinaryAnalysisPlatform/bap
monads_monad.ml
open Core_kernel[@@warning "-D"] let ident = Fn.id module Monoid = Monads_monoid module Types = Monads_types module Trans = Types.Trans module type Monad = Types.Monad.S module type Monad2 = Types.Monad.S2 module Plus = Types.Plus module Fail = Types.Fail module Choice = struct include Types.Choice module Make2(...
null
https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap/cbdf732d46c8e38df79d9942fc49bcb97915c657/lib/monads/monads_monad.ml
ocaml
the id of current context tree of forks father of all forks all forks of the Father
open Core_kernel[@@warning "-D"] let ident = Fn.id module Monoid = Monads_monoid module Types = Monads_types module Trans = Types.Trans module type Monad = Types.Monad.S module type Monad2 = Types.Monad.S2 module Plus = Types.Plus module Fail = Types.Fail module Choice = struct include Types.Choice module Make2(...
199a4ae2e9a27c5ce58fe12d50ae5e79d4caee6ba2ffea0e3ef04b1c66d51e34
RyanMcG/Cadence
user.clj
(ns cadence.views.user (:require [cadence.views.common :as common] [cadence.model :as m] [cadence.model.flash :as flash] [cadence.model.recaptcha :as recaptcha] [cadence.model.validators :as is-valid] [cadence.pattern-recognition :as patrec] [rin...
null
https://raw.githubusercontent.com/RyanMcG/Cadence/c7364cba7e2de48c8a0b90f0f4d16a8248c097d4/src/cadence/views/user.clj
clojure
When there are a suffecient number of training cadences adn the Add cadences to mongo Add the current user-id to array of trained users on the given phrase Remove the cadenences from training stored in the client's session. Let the user know they've been a good minion ;-). No real content currently so let's just...
(ns cadence.views.user (:require [cadence.views.common :as common] [cadence.model :as m] [cadence.model.flash :as flash] [cadence.model.recaptcha :as recaptcha] [cadence.model.validators :as is-valid] [cadence.pattern-recognition :as patrec] [rin...
31a0cfbbe7e505941a9d12296d52359636c9fb2d4e1ca84d72ad92c0e81b2af9
weblocks-framework/weblocks
excerpt.lisp
(in-package :weblocks-test) ;;; Test excerpt-presentation render-view-field-value (deftest-html excerpt-presentation-render-view-field-value-1 (render-view-field-value "Hello World!" (make-instance 'excerpt-presentation) (make-instance 'data-view-field ...
null
https://raw.githubusercontent.com/weblocks-framework/weblocks/fe96152458c8eb54d74751b3201db42dafe1708b/test/views/types/presentations/excerpt.lisp
lisp
Test excerpt-presentation render-view-field-value Test excerpt-presentation print-view-field-value
(in-package :weblocks-test) (deftest-html excerpt-presentation-render-view-field-value-1 (render-view-field-value "Hello World!" (make-instance 'excerpt-presentation) (make-instance 'data-view-field :slot-name 'f...
aec75e395322fbdfc2273762085c2f0ee3a6ebaf5f8758ef5d6cfa915b738bae
slipstream/SlipStreamServer
test_utils.clj
(ns com.sixsq.slipstream.ssclj.resources.event.test-utils (:require [clj-time.core :as time] [clj-time.format :as time-fmt] [clojure.data.json :as json] [clojure.string :as str] [clojure.test :refer [is]] [com.sixsq.slipstream.ssclj.middleware.authn-info-header :refer [authn-info-header]] ...
null
https://raw.githubusercontent.com/slipstream/SlipStreamServer/3ee5c516877699746c61c48fc72779fe3d4e4652/cimi-resources/test/com/sixsq/slipstream/ssclj/resources/event/test_utils.clj
clojure
(ns com.sixsq.slipstream.ssclj.resources.event.test-utils (:require [clj-time.core :as time] [clj-time.format :as time-fmt] [clojure.data.json :as json] [clojure.string :as str] [clojure.test :refer [is]] [com.sixsq.slipstream.ssclj.middleware.authn-info-header :refer [authn-info-header]] ...
0b00d88afadb908be68f1fb94ef4c025fb03c0ea0e5d2ef4a7fdd902bfd64598
greghendershott/frog
non-posts.rkt
#lang racket/base (require racket/require markdown (multi-in racket (file match path string)) threading "../config/private/load.rkt" "bodies-page.rkt" "paths.rkt" "post-struct.rkt" "read-scribble.rkt" "stale.rkt" "template.rkt" ...
null
https://raw.githubusercontent.com/greghendershott/frog/93d8b442c2e619334612b7e2d091e4eb33995021/frog/private/non-posts.rkt
racket
NOTE: Since the user may manually plop HTML files anywhere in (www-path), we can't just go around deleting those. Instead, we need to iterate sources and delete only HTMLs corresponding to those. First h1 header, if any -- Scribble style with <a> anchor First h1 header, if any -- otherwise Else name of the sourc...
#lang racket/base (require racket/require markdown (multi-in racket (file match path string)) threading "../config/private/load.rkt" "bodies-page.rkt" "paths.rkt" "post-struct.rkt" "read-scribble.rkt" "stale.rkt" "template.rkt" ...
1af96ff5df86661de30a4b3d4e4d3f853dd805c7e3fad1cbb52f3a22e524583f
haskell-repa/repa
Reduction.hs
module Data.Repa.Eval.Generic.Par.Reduction ( foldAll , foldInner) where import Data.Repa.Eval.Gang import GHC.Exts import qualified Data.Repa.Eval.Generic.Seq.Reduction as Seq import Data.IORef -- | Parallel tree reduction of an array to a single value. Each thread takes an -- equally sized ch...
null
https://raw.githubusercontent.com/haskell-repa/repa/c867025e99fd008f094a5b18ce4dabd29bed00ba/repa-eval/Data/Repa/Eval/Generic/Par/Reduction.hs
haskell
| Parallel tree reduction of an array to a single value. Each thread takes an equally sized chunk of the data and computes a partial sum. The main thread then reduces the array of partial sums to the final result. We don't require that the initial value be a neutral element, so each thread applied in the ...
module Data.Repa.Eval.Generic.Par.Reduction ( foldAll , foldInner) where import Data.Repa.Eval.Gang import GHC.Exts import qualified Data.Repa.Eval.Generic.Seq.Reduction as Seq import Data.IORef computes a fold1 on its chunk of the data , and the seed element is only -> IO a foldAll ...
ae2a593b240eaeae6730f9d809868343c266b342634431615f0a4816d5e1e069
racket/redex
iswim-language-pict.rkt
#lang racket/base (require redex texpict/mrpict "../iswim/iswim.rkt") ;; type this at the prompt: #;(render-language iswim)
null
https://raw.githubusercontent.com/racket/redex/4c2dc96d90cedeb08ec1850575079b952c5ad396/redex-test/redex/tests/sewpr/typeset/iswim-language-pict.rkt
racket
type this at the prompt: (render-language iswim)
#lang racket/base (require redex texpict/mrpict "../iswim/iswim.rkt")
66aed879c2caed55e7b42931b1d575ec7d4e17a9d57f180e610b349814450e21
Smoltbob/Caml-Est-Belle
tuple3.ml
let rec f x = let (a,b)= x in x in let (y,z)= f (1,2) in ()
null
https://raw.githubusercontent.com/Smoltbob/Caml-Est-Belle/3d6f53d4e8e01bbae57a0a402b7c0f02f4ed767c/tests/typechecking/valid/tuple3.ml
ocaml
let rec f x = let (a,b)= x in x in let (y,z)= f (1,2) in ()
4b2eea3126505f4519036835eaa63e609c21ba04395d8a8cb7e3e57306393095
sionescu/bordeaux-threads
atomics-java.lisp
;;;; -*- indent-tabs-mode: nil -*- (in-package :bordeaux-threads-2) (defstruct (atomic-integer (:constructor %make-atomic-integer (cell))) "Wrapper for java.util.concurrent.AtomicLong." cell) (defmethod print-object ((aint atomic-integer) stream) (print-unreadable-object (aint stream :type t :ident...
null
https://raw.githubusercontent.com/sionescu/bordeaux-threads/552fd4dc7490a2f05ed74123f4096fb991673ac0/apiv2/atomics-java.lisp
lisp
-*- indent-tabs-mode: nil -*-
(in-package :bordeaux-threads-2) (defstruct (atomic-integer (:constructor %make-atomic-integer (cell))) "Wrapper for java.util.concurrent.AtomicLong." cell) (defmethod print-object ((aint atomic-integer) stream) (print-unreadable-object (aint stream :type t :identity t) (format stream "~S" (ato...
4a4d365825ca163de76a984b175c9cea8b255048b201d7220858e22821c57c5e
facebookarchive/pfff
visitor_ml.ml
* * Copyright ( C ) 2010 Facebook * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation , with the * special exception on linking described in file licens...
null
https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/lang_ml/parsing/visitor_ml.ml
ocaml
*************************************************************************** Prelude *************************************************************************** *************************************************************************** Types **************************************************************************...
* * Copyright ( C ) 2010 Facebook * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation , with the * special exception on linking described in file licens...
b32d05acfd9aded5010c0919622635a315b4f0b1ae8e84a9ed1b4fcd77d25a0a
ocaml/ood
rss_types.ml
(******************************************************************************) (* OCamlrss *) (* *) Copyright ( C ) 2004 - 2013 Institut National de Recherche en Informatiqu...
null
https://raw.githubusercontent.com/ocaml/ood/75c4f85e9a8cbe26530301cc14df578f0fc5c494/src/ood-gen/vendor/ocamlrss/src/rss_types.ml
ocaml
**************************************************************************** OCamlrss et en Automatique. All rights reserved. ...
Copyright ( C ) 2004 - 2013 Institut National de Recherche en Informatique 3 as published by the Free Software Foundation . You should have received a copy of the GNU Library General Public Foundation , Inc. , 59 Temple Place , Suite 330 , Boston , MA ...
1cc9cf06ec2cb68a9ca5fbc9c91a568ae7ad878fc9132cf05a0a40764153e713
xapi-project/xen-api
open_uri.ml
* Copyright ( c ) 2012 Citrix Inc * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND TH...
null
https://raw.githubusercontent.com/xapi-project/xen-api/48cc1489fff0e344246ecf19fc1ebed6f09c7471/ocaml/libs/open-uri/open_uri.ml
ocaml
* Copyright ( c ) 2012 Citrix Inc * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND TH...
98e7d012ca6f099de14b28ebec7d45d2565cdee98ce5197a84aa44e32119ad7c
ayazhafiz/plts
a.ml
open Util type iflag = Init | Uninit type ty = | TName of string | TInt | TFn of { typarams : string list; params : ty list } | TTup of (ty * iflag) list | TExist of string * ty type annot_val = Annot of value * ty and value = | VVar of string | VInt of int | VTyApp of annot_val * ty | VPack of ty...
null
https://raw.githubusercontent.com/ayazhafiz/plts/725b7fd0d4bd65e15f12cc1fec80fa7402dec167/TAL/a.ml
ocaml
* pack [t1, v] as ∃a.t2 (t1 is the true a) * x = v * x = v R v * [a, x] = unpack v x = v1[i] <- v2 * let d in e * v<ts>(vs) letrecs ** Print ** Something like (∀(a', b'). a)[a/a']. Naive substitution would result in (∀a'. a'), transforming the constant quanitifier at a' in the outer scope to t...
open Util type iflag = Init | Uninit type ty = | TName of string | TInt | TFn of { typarams : string list; params : ty list } | TTup of (ty * iflag) list | TExist of string * ty type annot_val = Annot of value * ty and value = | VVar of string | VInt of int | VTyApp of annot_val * ty | VPack of ty...
22bd672e6dc808ef17f27aa2f48e07a5303a152ab125fe3ab35fbbb58f70179d
ocaml-obuild/obuild
p2.ml
open Uri open Printf let () = let u = Uri.make ~scheme:"http" ~host:"foo!.com" () in printf "%s\n" (Uri.to_string u)
null
https://raw.githubusercontent.com/ocaml-obuild/obuild/28252e8cee836448e85bfbc9e09a44e7674dae39/tests/full/dep-uri/p2.ml
ocaml
open Uri open Printf let () = let u = Uri.make ~scheme:"http" ~host:"foo!.com" () in printf "%s\n" (Uri.to_string u)
67fa82c0ca0a00076f500d8e6f953b60f8932f7c900b2fbf6528b2fc972525ba
exercism/common-lisp
exercises.lisp
(in-package :test-exercises) (defun slurp-exercise-config (dir) (let ((config-file (merge-pathnames ".meta/config.json" dir))) (with-open-file (input config-file :direction :input :if-does-not-exist :error) (yason:parse input :object-key-fn #'keywordize :object-as :alist)))) (defun gather-exercise-data (d...
null
https://raw.githubusercontent.com/exercism/common-lisp/0e10dc22d5599c48272c811869bf2d5a674df266/src/test-exercises/exercises.lisp
lisp
(in-package :test-exercises) (defun slurp-exercise-config (dir) (let ((config-file (merge-pathnames ".meta/config.json" dir))) (with-open-file (input config-file :direction :input :if-does-not-exist :error) (yason:parse input :object-key-fn #'keywordize :object-as :alist)))) (defun gather-exercise-data (d...
755e96ebda27eb1f3521809f039d40b7d17c844ccaa0b84c24a52b9b888fb435
janestreet/universe
address_config.ml
module Stable = struct open! Core_kernel.Core_kernel_stable module V2 = struct type t = { max_open_connections : int ; cleanup_idle_connection_after : Time_ns.Span.V2.t ; max_connections_per_address : int ; max_connection_reuse : int ; close_idle_connections_when_at_limit : bool ...
null
https://raw.githubusercontent.com/janestreet/universe/b6cb56fdae83f5d55f9c809f1c2a2b50ea213126/resource_cache/src/address_config.ml
ocaml
module Stable = struct open! Core_kernel.Core_kernel_stable module V2 = struct type t = { max_open_connections : int ; cleanup_idle_connection_after : Time_ns.Span.V2.t ; max_connections_per_address : int ; max_connection_reuse : int ; close_idle_connections_when_at_limit : bool ...
3ad71341c490bab7aa280d76a9332de84950073d4f9eda9f647d53c8c39b394e
quicklisp/quicklisp-client
fetch-gzipped.lisp
;;;; fetch-gzipped.lisp (in-package #:quicklisp-client) (defun gzipped-url (url) (check-type url string) (concatenate 'string url ".gz")) (defun fetch-gzipped-version (url file &key quietly) (let ((gzipped (gzipped-url url)) (gzipped-temp (merge-pathnames "gzipped.tmp" file))) (fetch gzipped gzippe...
null
https://raw.githubusercontent.com/quicklisp/quicklisp-client/8b63e00b3a2b3f96e24c113d7601dd03a128ce94/quicklisp/fetch-gzipped.lisp
lisp
fetch-gzipped.lisp
(in-package #:quicklisp-client) (defun gzipped-url (url) (check-type url string) (concatenate 'string url ".gz")) (defun fetch-gzipped-version (url file &key quietly) (let ((gzipped (gzipped-url url)) (gzipped-temp (merge-pathnames "gzipped.tmp" file))) (fetch gzipped gzipped-temp :quietly quietly)...
8e2ee47b9ae7cd7ffe120d8aa09bb7bec52d681491f042cf45e92d57c670581b
arttuka/reagent-material-ui
tire_repair_outlined.cljs
(ns reagent-mui.icons.tire-repair-outlined "Imports @mui/icons-material/TireRepairOutlined 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 tire-repair-outli...
null
https://raw.githubusercontent.com/arttuka/reagent-material-ui/c7cd0d7c661ab9df5b0aed0213a6653a9a3f28ea/src/icons/reagent_mui/icons/tire_repair_outlined.cljs
clojure
(ns reagent-mui.icons.tire-repair-outlined "Imports @mui/icons-material/TireRepairOutlined 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 tire-repair-outli...
3a78a600ffec3817c13aaf7fe65b55e50af02e057d4f6a48fb0333798dcc9e2b
gja/pwa-clojure
main.clj
(ns pwa-clojure.main (:gen-class) (:require [ring.adapter.jetty :as jetty] [pwa-clojure.app :as app])) (defn -main [] (jetty/run-jetty app/app {:port 3000}))
null
https://raw.githubusercontent.com/gja/pwa-clojure/a06450747c6ead439d1a74653a34afe415d8ef02/src-clj/pwa_clojure/main.clj
clojure
(ns pwa-clojure.main (:gen-class) (:require [ring.adapter.jetty :as jetty] [pwa-clojure.app :as app])) (defn -main [] (jetty/run-jetty app/app {:port 3000}))
683bdb5d2db2363cc19cf8e4a7ac682888aa10e9816affb3dc1cfdcc1b3db036
sicmutils/sicmutils
curvature.cljc
#_"SPDX-License-Identifier: GPL-3.0" (ns sicmutils.calculus.curvature (:require [sicmutils.calculus.basis :as b] [sicmutils.calculus.form-field :as ff] [sicmutils.calculus.indexed :as ci] [sicmutils.calculus.manifold :as m] [sicmutils.calculus.vector-field :as vf] ...
null
https://raw.githubusercontent.com/sicmutils/sicmutils/ce763b31153eb9253f165bd5b4e4e6a6087bf730/src/sicmutils/calculus/curvature.cljc
clojure
Riemann curvature "tensor" is pretty easy The torsion tensor T^i_jk
#_"SPDX-License-Identifier: GPL-3.0" (ns sicmutils.calculus.curvature (:require [sicmutils.calculus.basis :as b] [sicmutils.calculus.form-field :as ff] [sicmutils.calculus.indexed :as ci] [sicmutils.calculus.manifold :as m] [sicmutils.calculus.vector-field :as vf] ...
00b733dc6a89e6e3b5237c491272382e878121c2f2eba59ace81f72423a57cf2
david-vanderson/warp
warp.rkt
#lang racket/base (require "defs.rkt" "utils.rkt" racket/class mode-lambda "draw-utils.rkt") (provide (all-defined-out)) (define (dmg-warp tool) (cond ((null? (tool-dmgs tool)) (list (chadd (dmg (next-id) "offline" DMG_SIZE 0 DMG_FIX?) (ob-id tool)))) (else #f...
null
https://raw.githubusercontent.com/david-vanderson/warp/cdc1d0bd942780fb5360dc6a34a2a06cf9518408/warp.rkt
racket
client/server return list of buttons fill we always want the button on the screen so that the mouse cursor looks right only have the button-f function do something when allowed always have the holdbutton-frelease function because holding? can be overwritten - player presses and holds the shortcut key - player c...
#lang racket/base (require "defs.rkt" "utils.rkt" racket/class mode-lambda "draw-utils.rkt") (provide (all-defined-out)) (define (dmg-warp tool) (cond ((null? (tool-dmgs tool)) (list (chadd (dmg (next-id) "offline" DMG_SIZE 0 DMG_FIX?) (ob-id tool)))) (else #f...
3da1605490c3d67ef7907dd200f7b6e1f58c86fb0a0e89dfdd1ead6e9df0b047
letmaik/monadiccp
Util.hs
- Monadic Constraint Programming - /~toms/MCP/ - - Monadic Constraint Programming - /~toms/MCP/ - Pieter Wuille -} # LANGUAGE StandaloneDeriving # module Data.Expr.Util ( Expr(), BoolExpr(), ColExpr(), transform, colTransform, boolTransform, transformEx, colTransformEx, boolTransform...
null
https://raw.githubusercontent.com/letmaik/monadiccp/fe4498e46a7b9d9e387fd5e4ed5d0749a89d0188/src/Data/Expr/Util.hs
haskell
----------------------- | Helper functions |-- ----------------------- ----------------------------------------------------------------------- ----------------------------------------------------------------------- ---------------------------------------------------------------------------------------- | Check wheth...
- Monadic Constraint Programming - /~toms/MCP/ - - Monadic Constraint Programming - /~toms/MCP/ - Pieter Wuille -} # LANGUAGE StandaloneDeriving # module Data.Expr.Util ( Expr(), BoolExpr(), ColExpr(), transform, colTransform, boolTransform, transformEx, colTransformEx, boolTransform...
af026823a717eb2027585d738f3b1c286b4d7d59c99b08ce64c09b4455fe3a14
achirkin/qua-kit
QuaViewSettings.hs
{-# OPTIONS_HADDOCK hide, prune #-} # LANGUAGE CPP # module Handler.QuaViewSettings ( getQuaViewEditorSettingsR , getQuaViewExerciseSettingsR ) where import Import import qualified QuaTypes import System.FilePath (takeDirectory) import qualified Data.Text as Text -- | If a user is not a student, use these...
null
https://raw.githubusercontent.com/achirkin/qua-kit/9f859e2078d5f059fb87b2f6baabcde7170d4e95/apps/hs/qua-server/src/Handler/QuaViewSettings.hs
haskell
# OPTIONS_HADDOCK hide, prune # | If a user is not a student, use these generic settings that give full access to qua-view functions | These settings are for students when we know their exercise id, can save exercise submissions, write reviews, etc. show a submission url iff authorId == userId set viewer to n...
# LANGUAGE CPP # module Handler.QuaViewSettings ( getQuaViewEditorSettingsR , getQuaViewExerciseSettingsR ) where import Import import qualified QuaTypes import System.FilePath (takeDirectory) import qualified Data.Text as Text getQuaViewEditorSettingsR :: Handler Value getQuaViewEditorSettingsR = quaVi...
484c39f41f0b32fc5dd66696a57f534bf6ed961f7e8e5ccf7e52a78c69a950a9
simon-katz/lein-nomis-ns-graph
nomis_re_com_utils.cljs
(ns nomisdraw.utils.nomis-re-com-utils (:require [reagent.core :as r] [re-com.core :as re])) ;;; TODO: Doc. ;;; Including: - The ` : need to be # ' -d for interactive development . ;;; (Hmmm, so don't use anonymous functions. Painful.) TODO : Use a schema ( or a clojure.spec spe...
null
https://raw.githubusercontent.com/simon-katz/lein-nomis-ns-graph/e30d8af3022ee1d9b1c49571847925c45617e66b/test-resources/example-projects/nomisdraw/src/cljs/nomisdraw/utils/nomis_re_com_utils.cljs
clojure
TODO: Doc. Including: (Hmmm, so don't use anonymous functions. Painful.)
(ns nomisdraw.utils.nomis-re-com-utils (:require [reagent.core :as r] [re-com.core :as re])) - The ` : need to be # ' -d for interactive development . TODO : Use a schema ( or a clojure.spec spec ) for options . (defonce ^:private options-s-atom (atom {})) (defn ^:private options-&-uniqui...
8e9ea56fe5404827f88332b0a5cde1165ae499cc509ab85bf05a0a19ed04fd15
skanev/playground
25.scm
SICP exercise 1.25 ; complains that we went to a lot of extra work in writing ; expmod. After all, she says, since we already know how to compute exponents, ; we could have simply written ; ( define ( expmod base exp m ) ; (remainder (fast-expt base exp) m)) ; ; Is she correct? Would this procedure serve as ...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/sicp/01/25.scm
scheme
expmod. After all, she says, since we already know how to compute exponents, we could have simply written (remainder (fast-expt base exp) m)) Is she correct? Would this procedure serve as well for our fast prime tester? Explain. She is correct. We can define expmod that way and it would certainly return cor...
SICP exercise 1.25 complains that we went to a lot of extra work in writing ( define ( expmod base exp m ) | exercise 24 | exercise 25 | | 0.101074218750 | 0.751953125000 | | 0.004150390625 | 0.282958984375 | | 0.002929687500 | 0.229980468750 | | 0.003173828125 | 7.98...
251417a7d12dbe5335734c09c082beb793539af72892fea53bf53bd470ae4c5f
ajnsit/wai-routes
RouteAttrs.hs
# LANGUAGE TemplateHaskell # # LANGUAGE RecordWildCards # module Routes.TH.RouteAttrs ( mkRouteAttrsInstance ) where import Routes.TH.Types import Routes.Class import Language.Haskell.TH.Syntax import Data.Set (fromList) import Data.Text (pack) mkRouteAttrsInstance :: Cxt -> Type -> [ResourceTree a] -> Q Dec ...
null
https://raw.githubusercontent.com/ajnsit/wai-routes/4d6b240af57a95353373ddba81c4905db0234459/src/Routes/TH/RouteAttrs.hs
haskell
# LANGUAGE TemplateHaskell # # LANGUAGE RecordWildCards # module Routes.TH.RouteAttrs ( mkRouteAttrsInstance ) where import Routes.TH.Types import Routes.Class import Language.Haskell.TH.Syntax import Data.Set (fromList) import Data.Text (pack) mkRouteAttrsInstance :: Cxt -> Type -> [ResourceTree a] -> Q Dec ...
efa6f3974db4e0a2bcef236661ebc11418bba9d45958094ba2caa3d16828f4a8
G-Corp/kafe
kafe.erl
@author < > @author < > @author < > 2014 - 2015 Finexkap , 2015 G - Corp , 2015 - 2016 BotsUnit @since 2014 % @doc A client for Erlang % % This module only implement the <a href="+Guide+To+The+Kafka+Protocol">Kafak Protocol</a>. % @end -module(kafe). -compile([{parse_transform, bristow_transform}...
null
https://raw.githubusercontent.com/G-Corp/kafe/78e014ae5b6d7e1077aa5cabf4adc21ed7abe203/src/kafe.erl
erlang
@doc This module only implement the <a href="+Guide+To+The+Kafka+Protocol">Kafak Protocol</a>. @end Public API Internal API @hidden @hidden @hidden @hidden @hidden @hidden @hidden @hidden @hidden -- Public APIs -- @doc Start kafe application @end @doc Return the list of availables brokers @end @d...
@author < > @author < > @author < > 2014 - 2015 Finexkap , 2015 G - Corp , 2015 - 2016 BotsUnit @since 2014 A client for Erlang -module(kafe). -compile([{parse_transform, bristow_transform}, {parse_transform, lager_transform}]). -include("../include/kafe.hrl"). -include_lib("kernel/inc...
64aeba9c22aa7348d555f9ec0324d9125763477236bf0624175f11405fe96a41
uim/sigscheme
test-values.scm
Filename : test-values.scm ;; About : unit tests for multiple values ;; Copyright ( C ) 2006 YAMAMOTO Kengo < yamaken AT > Copyright ( c ) 2007 - 2008 SigScheme Project < uim - en AT googlegroups.com > ;; ;; All rights reserved. ;; ;; Redistribution and use in source and binary forms, with or without ;;...
null
https://raw.githubusercontent.com/uim/sigscheme/ccf1f92d6c2a0f45c15d93da82e399c2a78fe5f3/test/test-values.scm
scheme
About : unit tests for multiple values All rights reserved. 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 conditi...
Filename : test-values.scm Copyright ( C ) 2006 YAMAMOTO Kengo < yamaken AT > Copyright ( c ) 2007 - 2008 SigScheme Project < uim - en AT googlegroups.com > 1 . Redistributions of source code must retain the above copyright 2 . Redistributions in binary form must reproduce the above copyright 3 . Nei...
b246ef897246c280feb8714a457f73eccbae7bfcefd5b62defaf3ac847bbf4c6
electric-sql/vaxine
antidote_crdt_map_rr.erl
%% ------------------------------------------------------------------- %% Copyright < 2013 - 2018 > < Technische Universität Kaiserslautern , Germany , France Universidade NOVA de Lisboa , Portugal Université catholique de Louvain ( UCL ) , Belgique , Portugal %% > %% This file is provided...
null
https://raw.githubusercontent.com/electric-sql/vaxine/83ec217b2f218c2da51ca7cd47accd31f51ec9ba/apps/antidote_crdt/src/antidote_crdt_map_rr.erl
erlang
------------------------------------------------------------------- > Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either expressed or implied. See the License for the specific language governing perm...
Copyright < 2013 - 2018 > < Technische Universität Kaiserslautern , Germany , France Universidade NOVA de Lisboa , Portugal Université catholique de Louvain ( UCL ) , Belgique , Portugal This file is provided to you under the Apache License , except in compliance with the License . You...
b064a43dd8f1d73102001cf1899241d91122f38a608027e1ad5eb749f6de7fd1
clj-holmes/clj-watson
vulnerability.clj
(ns clj-watson.controller.dependency-check.vulnerability (:require [clj-watson.diplomat.dependency :as diplomat.dependency] [clj-watson.logic.dependency :as logic.dependency] [clj-watson.logic.dependency-check.vulnerability :as logic.dc.vulnerability] [clojure.string :as string] [version-clj.core :as v...
null
https://raw.githubusercontent.com/clj-holmes/clj-watson/9972a334b49dd50bb9bb14314ce37e8ad566dc55/src/clj_watson/controller/dependency_check/vulnerability.clj
clojure
(ns clj-watson.controller.dependency-check.vulnerability (:require [clj-watson.diplomat.dependency :as diplomat.dependency] [clj-watson.logic.dependency :as logic.dependency] [clj-watson.logic.dependency-check.vulnerability :as logic.dc.vulnerability] [clojure.string :as string] [version-clj.core :as v...
f0ab4605e98ae5a797ef34a1b8e9765ca3dc45f86ed7b4e2168f7f447ff296c0
mondemand/mondemand-server
mondemand_server.erl
-module (mondemand_server). -include_lib ("lwes/include/lwes.hrl"). -behaviour (gen_server). %% API -export ([ start_link/2, process_event/2 ]). %% gen_server callbacks -export ([ init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code...
null
https://raw.githubusercontent.com/mondemand/mondemand-server/88e57ef8ece8a0069a747620f4585104cb560840/src/mondemand_server.erl
erlang
API gen_server callbacks ==================================================================== API ==================================================================== TODO: move this into lwes library? receipt time before we forward, this should ensure that backends all get the same receipt time, or don't end up...
-module (mondemand_server). -include_lib ("lwes/include/lwes.hrl"). -behaviour (gen_server). -export ([ start_link/2, process_event/2 ]). -export ([ init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3 ]). -record...
31cfa58a51193c6d70e99bb79e8605e275150d7ae5ed3cb4090357570ba16d63
hipsleek/hipsleek
slsat.ml
#include "xdebug.cppo" open VarGen open Globals open Others open Gen open Cformula module CP = Cpure : to implement let check_sat_uo ante_uo conseq_uo= let is_sat = true in mk_cex is_sat : to implement let check_sat_with_uo ante conseq= let is_sat = true in mk_cex is_sat : to implement let check_sa...
null
https://raw.githubusercontent.com/hipsleek/hipsleek/596f7fa7f67444c8309da2ca86ba4c47d376618c/bef_indent/slsat.ml
ocaml
to implement
#include "xdebug.cppo" open VarGen open Globals open Others open Gen open Cformula module CP = Cpure : to implement let check_sat_uo ante_uo conseq_uo= let is_sat = true in mk_cex is_sat : to implement let check_sat_with_uo ante conseq= let is_sat = true in mk_cex is_sat : to implement let check_sa...
ce041517fb6d91aa71020f0fc03badc834fbb829375a5b6e01097c2496b37824
sapur/hexe
Options.hs
# LANGUAGE NoMonomorphismRestriction # module Options ( Options (..), Action (..), parseOptions, ) where import Data.Char import Data.List import Text.Printf import Options.Applicative import qualified Options.Applicative.Help as Doc import Data.Version data Options = Options { optAction :...
null
https://raw.githubusercontent.com/sapur/hexe/e01036a1f8213938f9e1c72afc6aff48ba7fb0fd/src/Options.hs
haskell
# LANGUAGE NoMonomorphismRestriction # module Options ( Options (..), Action (..), parseOptions, ) where import Data.Char import Data.List import Text.Printf import Options.Applicative import qualified Options.Applicative.Help as Doc import Data.Version data Options = Options { optAction :...
301e046ad81348b1ad85c65aecdb9f12e422192e71993edb73113e67292cab46
fetburner/Coq2SML
modops.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/fetburner/Coq2SML/322d613619edbb62edafa999bff24b1993f37612/coq-8.4pl4/kernel/modops.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * Various operations on modules and ...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Util open Names open Uni...
89ed7edb6797a7c23c55fd8c574caa9b789c788f531dda85348cc37c23038b62
cndreisbach/clojure-web-dev-workshop
handler.clj
(ns we-owe.handler (:require [clojure.pprint :refer [pprint]] [compojure.core :refer :all] [compojure.route :as route] [compojure.handler :as handler] [we-owe.views :as views])) (defn create-routes [db] (routes (GET "/" [] (views/index-page db)) (GET "/add-debt...
null
https://raw.githubusercontent.com/cndreisbach/clojure-web-dev-workshop/95d9fdf94b39f8a1e408b8bf75a81b92899ee7d9/code/03-hiccup/src/we_owe/handler.clj
clojure
(ns we-owe.handler (:require [clojure.pprint :refer [pprint]] [compojure.core :refer :all] [compojure.route :as route] [compojure.handler :as handler] [we-owe.views :as views])) (defn create-routes [db] (routes (GET "/" [] (views/index-page db)) (GET "/add-debt...
b5465e19c9cc6658f6e77653afcd8cfeeeee8e826b85f1dcb0bc9758e70dd637
mhkoji/Senn
ex-dict-builder.lisp
(defpackage :hachee.kkc.impl.mirror.ex-dict-builder (:use :cl) (:export :item-pron :item-form :list-items :build)) (in-package :hachee.kkc.impl.mirror.ex-dict-builder) (defgeneric list-items (source)) (defgeneric item-pron (item)) (defgeneric item-form (item)) (defun list-items-in...
null
https://raw.githubusercontent.com/mhkoji/Senn/0701d380f437aa4b48e2fba89bcd3d25587e4d0b/hachee/src/kkc/impl/mirror/ex-dict-builder.lisp
lisp
(defpackage :hachee.kkc.impl.mirror.ex-dict-builder (:use :cl) (:export :item-pron :item-form :list-items :build)) (in-package :hachee.kkc.impl.mirror.ex-dict-builder) (defgeneric list-items (source)) (defgeneric item-pron (item)) (defgeneric item-form (item)) (defun list-items-in...
58e7829ef7a78795a39faabb3b8848bcc082e2baa96cb61a54747c1f73602ab7
mpenet/tape
queue.clj
(ns qbits.tape.queue (:require [qbits.commons.enum :as enum] [qbits.commons.jvm :as jvm] [clojure.tools.logging :as log] [clojure.core.protocols :as p] [qbits.tape.cycle-listener :as cycle-listener] [qbits.tape.codec.fressian :as fressian.codec]) (:import ...
null
https://raw.githubusercontent.com/mpenet/tape/615293e2d9eeaac36b5024f9ca1efc80169ac75c/src/qbits/tape/queue.clj
clojure
(ns qbits.tape.queue (:require [qbits.commons.enum :as enum] [qbits.commons.jvm :as jvm] [clojure.tools.logging :as log] [clojure.core.protocols :as p] [qbits.tape.cycle-listener :as cycle-listener] [qbits.tape.codec.fressian :as fressian.codec]) (:import ...
dd985f15095d01b6fe79774ec4d8f05defc20afb4984d7f390d7c60c6db502b0
d-cent/objective8
questions_test.clj
(ns objective8.unit.questions-test (:require [midje.sweet :refer :all] [objective8.back-end.domain.questions :as questions] [objective8.back-end.domain.objectives :as objectives] [objective8.back-end.storage.storage :as storage] [objective8.config :as config])) (def US...
null
https://raw.githubusercontent.com/d-cent/objective8/db8344ba4425ca0b38a31c99a3b282d7c8ddaef0/test/objective8/unit/questions_test.clj
clojure
(ns objective8.unit.questions-test (:require [midje.sweet :refer :all] [objective8.back-end.domain.questions :as questions] [objective8.back-end.domain.objectives :as objectives] [objective8.back-end.storage.storage :as storage] [objective8.config :as config])) (def US...
3c56749696dd4806ea88731b4413e2c42424da5c1cef226def64af02b3859845
CodyReichert/qi
dstate.lisp
;;;; dstate.lisp -- common bits for decompression state (in-package :chipz) ;;; This structure is never meant to be instantiated. It exists only to ;;; provide common framework for other decompressors. (defstruct (decompression-state (:constructor) (:conc-name dstate-)) (state nil :type (...
null
https://raw.githubusercontent.com/CodyReichert/qi/9cf6d31f40e19f4a7f60891ef7c8c0381ccac66f/dependencies/chipz-master/dstate.lisp
lisp
dstate.lisp -- common bits for decompression state This structure is never meant to be instantiated. It exists only to provide common framework for other decompressors. Bit buffer.
(in-package :chipz) (defstruct (decompression-state (:constructor) (:conc-name dstate-)) (state nil :type (or null function)) (done nil) (input (make-array 1 :element-type '(unsigned-byte 8)) :type simple-octet-vector) (input-start 0 :type (and fixnum (integer 0 *))) (inp...
2b09397c6d927b9c8c54c2a1085d7d8fc213b45095c1c359e7cf1070c423d8c1
theodormoroianu/SecondYearCourses
HaskellChurchMonad_20210415160429.hs
module HaskellChurchMonad where A boolean is any way to choose between two alternatives newtype CBool t = CBool {cIf :: t -> t -> t} toBool :: CBool Bool -> Bool toBool b = cIf b True False The boolean constant true always chooses the first alternative cTrue :: CBool t cTrue = CBool $ \t f -> t The boolean consta...
null
https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/5e359e6a7cf588a527d27209bf53b4ce6b8d5e83/FLP/Laboratoare/Lab%209/.history/HaskellChurchMonad_20210415160429.hs
haskell
The boolean negation switches the alternatives The boolean conjunction can be built as a conditional The boolean disjunction can be built as a conditional a pair is a way to compute something based on the values contained within the pair. a function to be applied on the values, it will apply it on them. A natural nu...
module HaskellChurchMonad where A boolean is any way to choose between two alternatives newtype CBool t = CBool {cIf :: t -> t -> t} toBool :: CBool Bool -> Bool toBool b = cIf b True False The boolean constant true always chooses the first alternative cTrue :: CBool t cTrue = CBool $ \t f -> t The boolean consta...
3a4f11051ad3dc0b75e6193783138c4bf8e9953341f00ca2036f19fa62ad98c9
coq/coq
haskell.ml
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * *...
null
https://raw.githubusercontent.com/coq/coq/8f1590f7840d0dff71fa9b7a7bbc1ed01d779359/plugins/extraction/haskell.ml
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team // * This file is distributed under the terms of the * (see LICENSE file for the text of the license) ************************************...
v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser Gener...
1b2305d9505b0e11002d76e85ec4c8c7a6e7a398b2f5b7b569c00245f28709b8
valmirjunior0088/curios
Ieee754.hs
module WebAssembly.Encode.Ieee754 ( ieee754Single , ieee754Double ) where This module assumes that GHC uses IEEE-754 -- floats (which it does) and reuses them -- For completeness sake in the future this module should house an actual IEEE-754 encoder import Data.Word (Word32, Word64) import GHC.Float (cas...
null
https://raw.githubusercontent.com/valmirjunior0088/curios/391bebe67d5e7a4c3d51c758da9ba96b38c11705/src/WebAssembly/Encode/Ieee754.hs
haskell
floats (which it does) and reuses them For completeness sake in the future this
module WebAssembly.Encode.Ieee754 ( ieee754Single , ieee754Double ) where This module assumes that GHC uses IEEE-754 module should house an actual IEEE-754 encoder import Data.Word (Word32, Word64) import GHC.Float (castFloatToWord32, castDoubleToWord64) ieee754Single :: Float -> Word32 ieee754Single = ...
32e08b30a75160144fb3147e3427072b72b14d9b0d5bf876c0ceb8a4307b523e
PLTools/Lama
stdpath.ml
let path = "/home/db/.opam/4.14.0+flambda/share/Lama"
null
https://raw.githubusercontent.com/PLTools/Lama/f47d872df1231fd5da8268cde119418d9db37ceb/src/stdpath.ml
ocaml
let path = "/home/db/.opam/4.14.0+flambda/share/Lama"
17f6ecbef61293fde89c2af25fb3d79496cb82e689778517eac912eea8549c75
haskell/play-haskell
Play.hs
# LANGUAGE DeriveGeneric # # LANGUAGE LambdaCase # # LANGUAGE NumericUnderscores # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TupleSections # # LANGUAGE TypeApplications # # LANGUAGE ViewPatterns # module Play (playModule) where import Control.Concurrent.STM import Control.Monad (when, forM_) import Control.Monad.I...
null
https://raw.githubusercontent.com/haskell/play-haskell/a8ae8e62f9b6867b72ea94b47c837408b9a867f7/play-haskell-server/src/Play.hs
haskell
# LANGUAGE OverloadedStrings # returns the generated key, or an error string try again with a new key ^ to destination URL TODO: remove this. This is present only to let the upgrade to /submit go a bit more smoothly. functionality, because this is more local. functionality, because this is more local. TODO: remo...
# LANGUAGE DeriveGeneric # # LANGUAGE LambdaCase # # LANGUAGE NumericUnderscores # # LANGUAGE TupleSections # # LANGUAGE TypeApplications # # LANGUAGE ViewPatterns # module Play (playModule) where import Control.Concurrent.STM import Control.Monad (when, forM_) import Control.Monad.IO.Class (liftIO) import qualified D...
7bbf903e32cda8148b7808258c176b87dac20c75567f9a9e66a9e9416a69a852
NorfairKing/smos
Gen.hs
# OPTIONS_GHC -fno - warn - orphans # module Smos.Keys.Gen where import Graphics.Vty.Input.Events import Smos.Data.Gen () import Smos.Keys import Smos.Report.OptParse.Gen () import TestImport instance GenValid Key where genValid = genValidStructurally shrinkValid = shrinkValidStructurally instance GenValid Modi...
null
https://raw.githubusercontent.com/NorfairKing/smos/f72b26c2e66ab4f3ec879a1bedc6c0e8eeb18a01/smos/test/Smos/Keys/Gen.hs
haskell
# OPTIONS_GHC -fno - warn - orphans # module Smos.Keys.Gen where import Graphics.Vty.Input.Events import Smos.Data.Gen () import Smos.Keys import Smos.Report.OptParse.Gen () import TestImport instance GenValid Key where genValid = genValidStructurally shrinkValid = shrinkValidStructurally instance GenValid Modi...
b02aa6b48055852b0e2a52af4ae9cbef90b500b2c9be8dec72138dd11ddae373
DogLooksGood/holdem
panel.cljs
(ns poker.components.panel "Player's status is displayed in panel. Buttons are displayed depending on current state. " (:require [reagent.core :as reagent] [re-frame.core :as re-frame] [poker.components.message-box :refer [message-box]] [poker.components.button :refer [raise-button ...
null
https://raw.githubusercontent.com/DogLooksGood/holdem/949b25361fd59d8b6f444215f279a5206e200043/src/cljs/poker/components/panel.cljs
clojure
container right part message box
(ns poker.components.panel "Player's status is displayed in panel. Buttons are displayed depending on current state. " (:require [reagent.core :as reagent] [re-frame.core :as re-frame] [poker.components.message-box :refer [message-box]] [poker.components.button :refer [raise-button ...
4eb0667ed3e5c618ad943f20a041f2c1ee112cbec7381218a0b2fe2d57486268
karimarttila/clojure
core.clj
(ns simpleserver.core (:require [clojure.tools.logging :as log] [clojure.pprint] [clojure.java.io :as io] [ring.adapter.jetty :as jetty] [nrepl.server :as nrepl] [integrant.repl :as ig-repl] [integrant.core :as ig] [aero.core :as aero] [hikari-cp.core :as hikari-cp] [datomic.ap...
null
https://raw.githubusercontent.com/karimarttila/clojure/3e23d3755d8f555e94d77d104dd9401edc7e8cc9/webstore-demo/re-frame-demo/src/clj/simpleserver/core.clj
clojure
We simulate this data store using atom. We initialize the "db" from :data-dir. Let's keep the test database empty. Profile is if you want to test in real AWS env: you can add to the container script PROFILE=prod
(ns simpleserver.core (:require [clojure.tools.logging :as log] [clojure.pprint] [clojure.java.io :as io] [ring.adapter.jetty :as jetty] [nrepl.server :as nrepl] [integrant.repl :as ig-repl] [integrant.core :as ig] [aero.core :as aero] [hikari-cp.core :as hikari-cp] [datomic.ap...
a60e5dee0bb3374d76d62d13397e369e9d690b635b6c3ea073cfc226a4cb51e3
MinaProtocol/mina
vesta_constraint_system.mli
include Intf.Full with type fp := Kimchi_pasta_basic.Fp.t and type gates := Kimchi_bindings.Protocol.Gates.Vector.Fp.t
null
https://raw.githubusercontent.com/MinaProtocol/mina/a40d965ae6b39ca93d9eed17efcbf77e0778de0a/src/lib/crypto/kimchi_backend/pasta/constraint_system/vesta_constraint_system.mli
ocaml
include Intf.Full with type fp := Kimchi_pasta_basic.Fp.t and type gates := Kimchi_bindings.Protocol.Gates.Vector.Fp.t
5e0ecd16f49cbb4cf38ba9f2b13d291e70a183565fdbd7814783b2a65f2607a0
GaloisInc/saw-script
IDESupport.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE KindSignatures # # LANGUAGE LambdaCase # # LANGUAGE QuasiQuotes # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeOperators # # LANGUAGE Undecidab...
null
https://raw.githubusercontent.com/GaloisInc/saw-script/9d66afc87e2afe70fbea40033f7f887c6a02558a/heapster-saw/src/Verifier/SAW/Heapster/IDESupport.hs
haskell
# LANGUAGE GADTs # consumption. | A single entry in the IDE info dump log. At a bare minimum, this must include a location and corresponding permission. Once the basics are working, we can enrich the information we log. | A complete IDE info dump log, which is just a sequence of entries. Once the basics are wo...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE KindSignatures # # LANGUAGE LambdaCase # # LANGUAGE QuasiQuotes # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # # LANGUAG...
43d3a7062771b8ace1bf8caf99cf69e5c8477df852519b070fb6f230f39af7f0
evdubs/renegade-way
price-analysis.rkt
#lang racket/base (require gregor math/statistics racket/list racket/string racket/vector "db-queries.rkt" "structs.rkt" "technical-indicators.rkt" "pattern/ascending-triangle.rkt" "pattern/bull-pullback.rkt" "pattern/bear-rally....
null
https://raw.githubusercontent.com/evdubs/renegade-way/c4d7af2d33f2f628a93794064c41d37a2a7e8231/price-analysis.rkt
racket
Rating for market/sector/industry Looks at price relative to moving averages this lets us avoid calling (msi-rating) with an empty symbol
#lang racket/base (require gregor math/statistics racket/list racket/string racket/vector "db-queries.rkt" "structs.rkt" "technical-indicators.rkt" "pattern/ascending-triangle.rkt" "pattern/bull-pullback.rkt" "pattern/bear-rally....
d120c9c54b5b8a7e0df8e932ee6893a6929cdafca460855754547c89b5bc4696
well-typed/optics
Optics.hs
# LANGUAGE DataKinds # # LANGUAGE PolyKinds # | This module defines optics for working with the types in @generics - sop@. -- module Generics.SOP.Optics ( rep , sop , nsSingleton , _I , _K , productRep , npHead , npTail , npSingleton , _Z , _S ) where import Generics.SOP import Optics.Core ...
null
https://raw.githubusercontent.com/well-typed/optics/ba3c5a4d2f110c82238bc2fe7bb187023ab516f5/optics-sop/src/Generics/SOP/Optics.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE PolyKinds # | This module defines optics for working with the types in @generics - sop@. module Generics.SOP.Optics ( rep , sop , nsSingleton , _I , _K , productRep , npHead , npTail , npSingleton , _Z , _S ) where import Generics.SOP import Optics.Core hid...
8649eef3a5c090642dae0aa1ba41729ee705172b8be63c134cda213165f323c2
OlafChitil/hat
List.hs
module Hat.List (gelemIndex, aelemIndex, helemIndex, gelemIndices, aelemIndices, helemIndices, gfind, afind, hfind, gfindIndex, afindIndex, hfindIndex, gfindIndices, afindIndices, hfindIndices, gnub, gnubBy, anubBy, hnubBy, gdelete, gdeleteBy, adeleteBy, hdeleteBy, (!\\), ...
null
https://raw.githubusercontent.com/OlafChitil/hat/8840a480c076f9f01e58ce24b346850169498be2/Hat/List.hs
haskell
module Hat.List (gelemIndex, aelemIndex, helemIndex, gelemIndices, aelemIndices, helemIndices, gfind, afind, hfind, gfindIndex, afindIndex, hfindIndex, gfindIndices, afindIndices, hfindIndices, gnub, gnubBy, anubBy, hnubBy, gdelete, gdeleteBy, adeleteBy, hdeleteBy, (!\\), ...
0a1f0bef2cad7a87a8df3d07965d244b24e51688ed21cbb5208e76cbafd76677
biegunka/biegunka
HStringTemplate.hs
# LANGUAGE ExistentialQuantification # | HStringTemplate support as TemplateSystem module Control.Biegunka.Templates.HStringTemplate ( HStringTemplate , hStringTemplate ) where import qualified Data.Text as T import Text.StringTemplate (ToSElem, newSTMP, render, setAttribute) import Text.St...
null
https://raw.githubusercontent.com/biegunka/biegunka/74fc93326d5f29761125d7047d5418899fa2469d/src/Control/Biegunka/Templates/HStringTemplate.hs
haskell
| HStringTemplate templates
# LANGUAGE ExistentialQuantification # | HStringTemplate support as TemplateSystem module Control.Biegunka.Templates.HStringTemplate ( HStringTemplate , hStringTemplate ) where import qualified Data.Text as T import Text.StringTemplate (ToSElem, newSTMP, render, setAttribute) import Text.St...
3165721e73d2b1226b4c6024362712da0c8b99cf0cb6ad20d22cbf86ee3ef144
jackfirth/rebellion
mutable-red-black-tree-batch-insertion.rkt
#lang racket/base (require racket/contract/base) (provide (contract-out [mutable-rb-tree-put-all! (-> mutable-rb-tree? (sequence/c entry?) #:who interned-symbol? void?)])) (require racket/match racket/sequence rebellion/base/option rebellion/base/symbol rebellion/collection/...
null
https://raw.githubusercontent.com/jackfirth/rebellion/206ced365b07d1c6da5dcbe93f892fbb9bd7ba72/collection/private/mutable-red-black-tree-batch-insertion.rkt
racket
@---------------------------------------------------------------------------------------------------- algorithms for that. But that's complicated and the naive approach is obviously correct. Future work may optimize this but the simple and correct approach is fine for now.
#lang racket/base (require racket/contract/base) (provide (contract-out [mutable-rb-tree-put-all! (-> mutable-rb-tree? (sequence/c entry?) #:who interned-symbol? void?)])) (require racket/match racket/sequence rebellion/base/option rebellion/base/symbol rebellion/collection/...
475f00d7054e176c712b1db0dce2ddfa6f0260ea87089a538e20b7fe785ece27
masateruk/micro-caml
assoc.ml
(* flatten let-bindings (just for prettier printing) *) open KNormal let rec f' (e, t) = (* ネストしたletの簡約 (caml2html: assoc_f) *) let e' = match e with | If(e, e1, e2) -> If(e, f' e1, f' e2) | Let(xt, e1, e2) -> (* letの場合 (caml2html: assoc_let) *) let rec insert (e, t) = let e' = ...
null
https://raw.githubusercontent.com/masateruk/micro-caml/0c0bd066b87cf54ce33709355c422993a85a86a1/assoc.ml
ocaml
flatten let-bindings (just for prettier printing) ネストしたletの簡約 (caml2html: assoc_f) letの場合 (caml2html: assoc_let)
open KNormal let e' = match e with | If(e, e1, e2) -> If(e, f' e1, f' e2) let rec insert (e, t) = let e' = match e with | Let(yt, e3, e4) -> Let(yt, e3, insert e4) | LetRec(fundefs, e) -> LetRec(fundefs, insert e) | e -> Let(xt, (e, t), f' e2) in (e',...
2a24d0ffa42598234bec1ada35d2a813d633e6ed2ba5d60bc89d7570d6160770
karimarttila/clojure
domain_single_node.clj
(ns simpleserver.domain.domain-single-node (:require [clojure.data.csv :as csv] [clojure.java.io :as io] [clojure.string :as str] [clojure.tools.logging :as log] [simpleserver.util.config :as ss-config] [simpleserver.domain.domain-interface :as ss-domain-i] )) (def my-domain-atom "Store...
null
https://raw.githubusercontent.com/karimarttila/clojure/ee1261b9a8e6be92cb47aeb325f82a278f2c1ed3/webstore-demo/simple-server/src/simpleserver/domain/domain_single_node.clj
clojure
**************************************************************** Rich comment.
(ns simpleserver.domain.domain-single-node (:require [clojure.data.csv :as csv] [clojure.java.io :as io] [clojure.string :as str] [clojure.tools.logging :as log] [simpleserver.util.config :as ss-config] [simpleserver.domain.domain-interface :as ss-domain-i] )) (def my-domain-atom "Store...
bdebad7f470074f8864f032fb0f79d4afba405d6be10b0ff14e8af1e763dc64d
tenpureto/tenpureto
Graph.hs
module Tenpureto.Graph ( Graph , overlay , compose , vertex , vertices , edge , edges , path , mapVertices , filterVertices , filterMapVertices , graphRoots , foldTopologically , GraphSubsetDecision(..) , graphSubset , graphAncestors ) where import qu...
null
https://raw.githubusercontent.com/tenpureto/tenpureto/886df860200e1a6f44ce07c24a5e7597009f71ef/src/Tenpureto/Graph.hs
haskell
module Tenpureto.Graph ( Graph , overlay , compose , vertex , vertices , edge , edges , path , mapVertices , filterVertices , filterMapVertices , graphRoots , foldTopologically , GraphSubsetDecision(..) , graphSubset , graphAncestors ) where import qu...
0e76d8925054fa092a8cd9029ffca0f259e7a525b2addeb0485c60dff04246b6
someteam/acha
swears.clj
(ns acha.swears) (def table #{"ahole" "anus" "ash0le" "ash0les" "asholes" "ass" "assface" "assh0le" "assh0lez" "asshole" "assholes" "assholz" "asswipe" "azzhole" "bassterds" "bastard" "bastards" "bastardz" "basterds" "basterdz" "biatch" "bitch" "bitches" "boffing" "butthole" "buttwipe" "c0ck" "c0cks" "c0k" "carpet"...
null
https://raw.githubusercontent.com/someteam/acha/6b957f6cb6773f4fc184d094b40de79039bb58cc/src-clj/acha/swears.clj
clojure
(ns acha.swears) (def table #{"ahole" "anus" "ash0le" "ash0les" "asholes" "ass" "assface" "assh0le" "assh0lez" "asshole" "assholes" "assholz" "asswipe" "azzhole" "bassterds" "bastard" "bastards" "bastardz" "basterds" "basterdz" "biatch" "bitch" "bitches" "boffing" "butthole" "buttwipe" "c0ck" "c0cks" "c0k" "carpet"...
f76e9dec82c174da87a0344e8727e68f6bd5d34b90c589fb0dbebab6ba3a3c87
mfikes/tubular
project.clj
(defproject tubular "1.4.0" :description "Clojure Socket REPL client" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/tools.cli "0.3.7"]])
null
https://raw.githubusercontent.com/mfikes/tubular/e526405448077db438e20d95d7778e32a7434328/project.clj
clojure
(defproject tubular "1.4.0" :description "Clojure Socket REPL client" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/tools.cli "0.3.7"]])
2ba47fec2677a2b5ced67e90c69e8217b06a738e786a49b4776a3839ab72be4a
tact-lang/tact-obsolete
immediacy_check.ml
module Config = struct include Tact.Located.Disabled end module Syntax = Tact.Syntax.Make (Config) module Parser = Tact.Parser.Make (Config) module Lang = Tact.Lang.Make (Config) module Show = Tact.Show.Make (Config) module Interpreter = Tact.Interpreter.Make (Config) module Errors = Tact.Errors module Zint = Tact.Z...
null
https://raw.githubusercontent.com/tact-lang/tact-obsolete/deed43aa496676033f84fe4db9383d9e22b1d11d/test/immediacy_check.ml
ocaml
module Config = struct include Tact.Located.Disabled end module Syntax = Tact.Syntax.Make (Config) module Parser = Tact.Parser.Make (Config) module Lang = Tact.Lang.Make (Config) module Show = Tact.Show.Make (Config) module Interpreter = Tact.Interpreter.Make (Config) module Errors = Tact.Errors module Zint = Tact.Z...
2a07e2a554ad11baffa2670bd9f90297dc31047d2dcd74831e977bab43eeba04
pixlsus/registry.gimp.org_static
feurio-logo.scm
; feurio logo Copyright ( C ) 2002 - 2003 Copyright ( C ) 2004 - 2008 ; This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ; (at your option) any later ...
null
https://raw.githubusercontent.com/pixlsus/registry.gimp.org_static/ffcde7400f402728373ff6579947c6ffe87d1a5e/registry.gimp.org/files/feurio-logo.scm
scheme
feurio logo This program is free software; you can redistribute it and/or modify either version 2 of the License , or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR ...
Copyright ( C ) 2002 - 2003 Copyright ( C ) 2004 - 2008 it under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License Foundation , Inc. , 675 Mass Ave , Cambridge , , USA . version 1.0 by version 2.0 by 2004/08/20 vers...
287b6eadcada7abcddbcf7f6dbde248f9d8bdcd2f9cd6911ae8d3cb3cbb38788
Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library
TreasuryReceivedDebitsResourceLinkedFlows.hs
{-# LANGUAGE MultiWayIf #-} CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . {-# LANGUAGE OverloadedStrings #-} -- | Contains the types generated from the schema TreasuryReceivedDebitsResourceLinkedFlows module StripeAPI.Types.TreasuryRe...
null
https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library/ba4401f083ff054f8da68c741f762407919de42f/src/StripeAPI/Types/TreasuryReceivedDebitsResourceLinkedFlows.hs
haskell
# LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # | Contains the types generated from the schema TreasuryReceivedDebitsResourceLinkedFlows | Defines the object schema located at @components.schemas.treasury_received_debits_resource_linked_flows@ in the specification. Constraints: | inbound_transfer: Set if t...
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . module StripeAPI.Types.TreasuryReceivedDebitsResourceLinkedFlows where import qualified Control.Monad.Fail import qualified Data.Aeson import qualified Data.Aeson as Data.Aeson.Encoding.I...
43d40e2a636d347e948c058697a03cf93c4db1a1b8099800c620128e876b9b9a
yminsky/incremental-tutorial
server.ml
open! Core open! Async open! Import let events_impl ~(make_stream:unit -> (unit -> (Time.t * Event.t)) Staged.t) ~stats = Rpc.Pipe_rpc.implement Protocol.events (fun addr () -> Log.Global.info !"Client connected on %{sexp:Socket.Address.Inet.t}" addr; let next = unstage (make_stream ()) in let (r,w) = Pi...
null
https://raw.githubusercontent.com/yminsky/incremental-tutorial/756dfe36ec1b0a102128b3fa78a6c6762bdab90a/shared/server.ml
ocaml
open! Core open! Async open! Import let events_impl ~(make_stream:unit -> (unit -> (Time.t * Event.t)) Staged.t) ~stats = Rpc.Pipe_rpc.implement Protocol.events (fun addr () -> Log.Global.info !"Client connected on %{sexp:Socket.Address.Inet.t}" addr; let next = unstage (make_stream ()) in let (r,w) = Pi...
948b358a2e8f2d8eb0f1f5282b14b94b6d70d8087ab3fa31beeb6298d2effaef
sbcl/sbcl
dlisp.lisp
This software is part of the SBCL system . See the README file for ;;;; more information. This software is derived from software originally released by Xerox ;;;; Corporation. Copyright and release statements follow. Later modifications ;;;; to the software are in the public domain and are provided with ;;;; absol...
null
https://raw.githubusercontent.com/sbcl/sbcl/cacbb24d03cbc1309447bfcd72a5cd17dd2d0e8b/src/pcl/dlisp.lisp
lisp
more information. Corporation. Copyright and release statements follow. Later modifications to the software are in the public domain and are provided with absolutely no warranty. See the COPYING and CREDITS files for more information. All rights reserved. Use and copying of this software and preparation of der...
This software is part of the SBCL system . See the README file for This software is derived from software originally released by Xerox copyright information from original PCL sources : Copyright ( c ) 1985 , 1986 , 1987 , 1988 , 1989 , 1990 Xerox Corporation . derivative works must comply with all applicabl...
3a1935e42ff029fb9402ebef45eabf9ec4acc86525772c9e6595507f452ce0eb
dpiponi/Moodler
audio_square.hs
do plane <- currentPlane (x, y) <- fmap (quantise2 quantum) mouse panel <- container' "panel_3x1.png" (x, y) (Inside plane) lab <- label' "audio_square" (x-25.0, y+75.0) (Inside plane) parent panel lab name <- new' "audio_square" inp <- plugin' (name ++ ".freq") (x-21, y+50) (Inside plane) ...
null
https://raw.githubusercontent.com/dpiponi/Moodler/a0c984c36abae52668d00f25eb3749e97e8936d3/Moodler/scripts/audio_square.hs
haskell
do plane <- currentPlane (x, y) <- fmap (quantise2 quantum) mouse panel <- container' "panel_3x1.png" (x, y) (Inside plane) lab <- label' "audio_square" (x-25.0, y+75.0) (Inside plane) parent panel lab name <- new' "audio_square" inp <- plugin' (name ++ ".freq") (x-21, y+50) (Inside plane) ...
418bc34c9478f8e78841ecbee806ca125c77e68d210d187c0574212bb394b8cf
fulcrologic/fulcro-rad
incrementally_loaded_report.cljc
(ns com.fulcrologic.rad.state-machines.incrementally-loaded-report "A Report state machine that will load the data in pages to prevent network timeouts for large result sets. This requires a resolver that can accept :report/offset and :report/limit parameters and that returns ``` {:report/next-offset n ...
null
https://raw.githubusercontent.com/fulcrologic/fulcro-rad/d2a40fdd7ca6ee0ec5fdb3897d5764bb6c5f7800/src/main/com/fulcrologic/rad/state_machines/incrementally_loaded_report.cljc
clojure
(ns com.fulcrologic.rad.state-machines.incrementally-loaded-report "A Report state machine that will load the data in pages to prevent network timeouts for large result sets. This requires a resolver that can accept :report/offset and :report/limit parameters and that returns ``` {:report/next-offset n ...
3cf18523c499c7ed6a0f9afcb1f5b97f194d16ce1921bcf362f3c719f7f2e371
gethop-dev/hop-cli
env_vars.clj
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this ;; file, You can obtain one at / (ns hop-cli.aws.env-vars (:require [babashka.fs :as fs] [clojure.pprint :as pprint] [clojure.string :as str] ...
null
https://raw.githubusercontent.com/gethop-dev/hop-cli/48e697115fb91290827d40ecd1f782a9d022b375/src/hop_cli/aws/env_vars.clj
clojure
file, You can obtain one at / Empty lines or with just whitespace Comment lines with optional initial whitespace
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 (ns hop-cli.aws.env-vars (:require [babashka.fs :as fs] [clojure.pprint :as pprint] [clojure.string :as str] [hop-cli.aws.api.eb :as api.eb...
363f1052e1dd247e92c5356ddfedb819cbb2fddc35b3220a6642e3ffb52992d1
jumarko/clojure-experiments
day-03.clj
(ns advent-of-clojure.advent-2017.day-03 "Day 3 of Advent of Clojure 2017 - Spiral Memory: Part I: ------------------------------------------------------------------------------ You come across an experimental new kind of memory stored on an infinite two-dimensional grid. Each square on the grid is allocat...
null
https://raw.githubusercontent.com/jumarko/clojure-experiments/f0f9c091959e7f54c3fb13d0585a793ebb09e4f9/src/clojure_experiments/advent_of_code/advent_2017/day-03.clj
clojure
PART I: The key idea here is to understand that the count of numbers is equal to the squares: So we can easily determine to which "layer" the given input number belongs. The number of layer gives us the distance automatically. To find the number of layer we just need to use square root. 2x>." finally we have a s...
(ns advent-of-clojure.advent-2017.day-03 "Day 3 of Advent of Clojure 2017 - Spiral Memory: Part I: ------------------------------------------------------------------------------ You come across an experimental new kind of memory stored on an infinite two-dimensional grid. Each square on the grid is allocat...
6516ac862341e56aac13d3099391b7805769dbac657b16471746be85f4cffbba
MLstate/opalang
qmljsPasses.ml
Copyright © 2011 , 2012 MLstate This file is part of . is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License , version 3 , as published by the Free Software Foundation . is distributed in the hope that it will be us...
null
https://raw.githubusercontent.com/MLstate/opalang/424b369160ce693406cece6ac033d75d85f5df4f/compiler/js_passes/qmljsPasses.ml
ocaml
Copyright © 2011 , 2012 MLstate This file is part of . is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License , version 3 , as published by the Free Software Foundation . is distributed in the hope that it will be us...
2eb3e9985bebb0568af1ec090bd5173af983483299b55ad2b1338b5eed789e35
andrewthad/quickcheck-classes
Num.hs
# LANGUAGE ScopedTypeVariables # # OPTIONS_GHC -Wall # module Test.QuickCheck.Classes.Num ( numLaws ) where import Data.Proxy (Proxy) import Test.QuickCheck hiding ((.&.)) import Test.QuickCheck.Classes.Internal (Laws(..), myForAllShrink) -- | Tests the following properties: -- -- [/Additive Commutativity/] --...
null
https://raw.githubusercontent.com/andrewthad/quickcheck-classes/0fc6c0602bc6875cdbde34cbdbcf229a175af62f/quickcheck-classes-base/src/Test/QuickCheck/Classes/Num.hs
haskell
| Tests the following properties: [/Additive Commutativity/] @a + b ≡ b + a@ [/Additive Left Identity/] @0 + a ≡ a@ [/Additive Right Identity/] [/Multiplicative Associativity/] @a * (b * c) ≡ (a * b) * c@ [/Multiplicative Left Identity/] @1 * a ≡ a@ [/Multiplicative Right Identity/] [/Multiplicatio...
# LANGUAGE ScopedTypeVariables # # OPTIONS_GHC -Wall # module Test.QuickCheck.Classes.Num ( numLaws ) where import Data.Proxy (Proxy) import Test.QuickCheck hiding ((.&.)) import Test.QuickCheck.Classes.Internal (Laws(..), myForAllShrink) @a + 0 ≡ a@ @a * 1 ≡ a@ @a * ( b + c ) ≡ ( a * b ) + ( a * ...
02684a667eadf63e8210d240026f4df8b0b7f114905a2b285b021099119322f0
mfikes/fifth-postulate
ns216.cljs
(ns fifth-postulate.ns216) (defn solve-for01 [xs v] (for [ndx0 (range 0 (- (count xs) 3)) ndx1 (range (inc ndx0) (- (count xs) 2)) ndx2 (range (inc ndx1) (- (count xs) 1)) ndx3 (range (inc ndx2) (count xs)) :when (= v (+ (xs ndx0) (xs ndx1) (xs ndx2) (xs ndx3)))] (list (x...
null
https://raw.githubusercontent.com/mfikes/fifth-postulate/22cfd5f8c2b4a2dead1c15a96295bfeb4dba235e/src/fifth_postulate/ns216.cljs
clojure
(ns fifth-postulate.ns216) (defn solve-for01 [xs v] (for [ndx0 (range 0 (- (count xs) 3)) ndx1 (range (inc ndx0) (- (count xs) 2)) ndx2 (range (inc ndx1) (- (count xs) 1)) ndx3 (range (inc ndx2) (count xs)) :when (= v (+ (xs ndx0) (xs ndx1) (xs ndx2) (xs ndx3)))] (list (x...
aec9d064d2f61c224aef539812d466f0b3ce89c3b12f13ea2c2499adac4ad287
mpickering/plugin-constraint
Main.hs
module Main(main) where printMe = () main = print ()
null
https://raw.githubusercontent.com/mpickering/plugin-constraint/71104d7a1f48f6e42701f5398bb17566cdc34564/test/src/Main.hs
haskell
module Main(main) where printMe = () main = print ()
e368efa84f446a27a8500a784c8ab2f957eeec1c4bc4039c4ab0b840f2add83e
zenhack/mule
tsort_t.ml
type 'n comparator = (module Comparator.S with type t = 'n) type 'n edge = { to_: 'n; from: 'n; } type 'n result = [ `Single of 'n | `Cycle of ('n * 'n list) ] list
null
https://raw.githubusercontent.com/zenhack/mule/f3e23342906d834abb9659c72a67c1405c936a00/src/tsort/tsort_t.ml
ocaml
type 'n comparator = (module Comparator.S with type t = 'n) type 'n edge = { to_: 'n; from: 'n; } type 'n result = [ `Single of 'n | `Cycle of ('n * 'n list) ] list
6a691e4f829aaebdea123e2aa3edc25a2c7b2c2a0c067f48d95ced072f10785b
shentufoundation/deepsea
StmtClocal.mli
open AST open Ctypes open Datatypes open ExpMiniC open Globalenvs open Integers type statement = | Sskip | Smassign of expr * expr | Ssassign of expr * expr | Sset of ident * expr | Scall of ident option * label * expr list | Ssequence of statement * statement | Sifthenelse of expr * statement * statement | Sloop of s...
null
https://raw.githubusercontent.com/shentufoundation/deepsea/970576a97c8992655ed2f173f576502d73b827e1/src/backend/extraction/StmtClocal.mli
ocaml
open AST open Ctypes open Datatypes open ExpMiniC open Globalenvs open Integers type statement = | Sskip | Smassign of expr * expr | Ssassign of expr * expr | Sset of ident * expr | Scall of ident option * label * expr list | Ssequence of statement * statement | Sifthenelse of expr * statement * statement | Sloop of s...
b2002c4543ab14b40238d404830cce18f4dfdd0bab8caa77e6d188bc2349db72
buntine/Simply-Scheme-Exercises
9-11.scm
Write a procedure unabbrev that takes two sentences as arguments . It should return a sentence that ’s the same as the first sentence , except that any numbers in the original sentence should be replaced with words from the second sentence . A number 2 in the first sentence should be replaced with the second wo...
null
https://raw.githubusercontent.com/buntine/Simply-Scheme-Exercises/c6cbf0bd60d6385b506b8df94c348ac5edc7f646/09-lambda/9-11.scm
scheme
(JOHN BILL WAYNE FRED JOEY) (I WANT TO TELL YOU)
Write a procedure unabbrev that takes two sentences as arguments . It should return a sentence that ’s the same as the first sentence , except that any numbers in the original sentence should be replaced with words from the second sentence . A number 2 in the first sentence should be replaced with the second wo...
0c49a17cb9001f8e0b33b84d15ad42b5188102b6994be07c319232aa14a8f7c4
clckwrks/clckwrks
API.hs
{-# LANGUAGE RecordWildCards, OverloadedStrings #-} module Clckwrks.Authenticate.API ( Username(..) , getEmail , getUser , getUsername , insecureUpdateUser , setCreateUserCallback ) where import Clckwrks.Authenticate.Plugin (authenticatePlugin) import Clckwrks.Authentic...
null
https://raw.githubusercontent.com/clckwrks/clckwrks/b72effd54adf34cf0807de61e91a7ea933685ccb/Clckwrks/Authenticate/API.hs
haskell
# LANGUAGE RecordWildCards, OverloadedStrings # | Update an existing 'User'. Must already have a valid 'UserId'. no security checks are performed to ensure that the caller is authorized to change data for the 'User'.
module Clckwrks.Authenticate.API ( Username(..) , getEmail , getUser , getUsername , insecureUpdateUser , setCreateUserCallback ) where import Clckwrks.Authenticate.Plugin (authenticatePlugin) import Clckwrks.Authenticate.Monad (AuthenticatePluginState(..)) import Clck...
92f264e4257624ba42baa65e8897989d2003fa67e8d914de889e5cf54d2af6c4
bscarlet/llvm-general
CodeGenOpt.hs
| Code generation options , used in specifying TargetMachine module LLVM.General.CodeGenOpt where import LLVM.General.Prelude -- | <> data Level = None | Less | Default | Aggressive deriving (Eq, Ord, Read, Show, Typeable, Data)
null
https://raw.githubusercontent.com/bscarlet/llvm-general/61fd03639063283e7dc617698265cc883baf0eec/llvm-general/src/LLVM/General/CodeGenOpt.hs
haskell
| <>
| Code generation options , used in specifying TargetMachine module LLVM.General.CodeGenOpt where import LLVM.General.Prelude data Level = None | Less | Default | Aggressive deriving (Eq, Ord, Read, Show, Typeable, Data)
84f888810e4cfc253c8fc19897ea40ddf9725cce9266dbaed6fc91d430857fd6
ghc/testsuite
T3731-short.hs
# LANGUAGE DeriveDataTypeable , FlexibleContexts , FlexibleInstances , MultiParamTypeClasses , OverlappingInstances , UndecidableInstances , Rank2Types , KindSignatures , EmptyDataDecls # FlexibleContexts, FlexibleInstances, M...
null
https://raw.githubusercontent.com/ghc/testsuite/998a816ae89c4fd573f4abd7c6abb346cf7ee9af/tests/typecheck/should_run/T3731-short.hs
haskell
Holds a default value DV: Notice what happens when we remove the Sat Expression above! Everything starts working!
# LANGUAGE DeriveDataTypeable , FlexibleContexts , FlexibleInstances , MultiParamTypeClasses , OverlappingInstances , UndecidableInstances , Rank2Types , KindSignatures , EmptyDataDecls # FlexibleContexts, FlexibleInstances, M...
d6fb2cb92e3b545ab29be8b82ea9dc414e8a35e2eabac09f5524eaf40bd6ff1c
namin/biohacker
demo-false-positive.lisp
biohacker / trunk / network - debugger / presentation / demo - false - positive.lisp (experiment false-positive (a b f) :growth? nil :essential-compounds (a e) :knock-outs (g1)) #| Focusing on experiment FALSE-POSITIVE. Experiment is not consistent with model. Needs: ( (NOT (GENE-ON G4)) ) |#
null
https://raw.githubusercontent.com/namin/biohacker/6b5da4c51c9caa6b5e1a68b046af171708d1af64/network-debugger/presentation/demo-false-positive.lisp
lisp
Focusing on experiment FALSE-POSITIVE. Experiment is not consistent with model. Needs: ( (NOT (GENE-ON G4)) )
biohacker / trunk / network - debugger / presentation / demo - false - positive.lisp (experiment false-positive (a b f) :growth? nil :essential-compounds (a e) :knock-outs (g1))
162b364966d3a21fb7757fc0d902612cf350018a04c285ef9d945e0437fa83f0
wies/grasshopper
debug.ml
type level = NONE | FATAL | ERROR | WARN | NOTICE | INFO | DEBUG of int let int_of_level = function | NONE -> 0 | FATAL -> 1 | ERROR -> 2 | WARN -> 3 | NOTICE -> 4 | INFO -> 5 | DEBUG l -> 6 + l let level_of_int = function | 0 -> NONE | 1 -> FATAL | 2 -> ERROR | 3 -> WARN | 4 -> NOTICE | 5 -> INFO | l when l ...
null
https://raw.githubusercontent.com/wies/grasshopper/108473b0a678f0d93fffec6da2ad6bcdce5bddb9/src/util/debug.ml
ocaml
* always print this message
type level = NONE | FATAL | ERROR | WARN | NOTICE | INFO | DEBUG of int let int_of_level = function | NONE -> 0 | FATAL -> 1 | ERROR -> 2 | WARN -> 3 | NOTICE -> 4 | INFO -> 5 | DEBUG l -> 6 + l let level_of_int = function | 0 -> NONE | 1 -> FATAL | 2 -> ERROR | 3 -> WARN | 4 -> NOTICE | 5 -> INFO | l when l ...
c49fbc504fe2ac4e69f3ac9aa6cad939f5946f2dc10c4a3633d2df97079095f6
Metaxal/rascas
derivative.rkt
#lang racket/base (require "../derivative.rkt" "../misc.rkt" "../algorithmic.rkt" "../arithmetic.rkt" "../rackunit.rkt" "../automatic-simplify.rkt" "../distribute.rkt" "../substitute.rkt" "../trig-functions.rkt" "../special-functions.rkt"...
null
https://raw.githubusercontent.com/Metaxal/rascas/a14babb44b847a57743545824ebb326a2783aa35/tests/derivative.rkt
racket
Check that 'derivative is registered as a function Register a function /after/ it has been used for derivation. Simplify the expression to obtain the correct derivative. WARNING: Test disabled because it's risky when using substitute (see test just below) Simulate a known function without a known derivative lis...
#lang racket/base (require "../derivative.rkt" "../misc.rkt" "../algorithmic.rkt" "../arithmetic.rkt" "../rackunit.rkt" "../automatic-simplify.rkt" "../distribute.rkt" "../substitute.rkt" "../trig-functions.rkt" "../special-functions.rkt"...
ea96d401d6800c29d179da3065c7e96e45095a118c9550212dc37466eb229ae6
velveteer/crossed
logging.clj
(ns app.logging) (defmacro log [& args] `(.log js/console ~@args))
null
https://raw.githubusercontent.com/velveteer/crossed/ebcd4260060bfb46ba1da4f722799239ad61d30c/src/app/logging.clj
clojure
(ns app.logging) (defmacro log [& args] `(.log js/console ~@args))
60ca87a7d0fc1b6e35d0ddc3af21973627c16f4ed98aebd59db69ba9db49a921
jumarko/clojure-experiments
files.clj
(ns clojure-experiments.files "Various File IO examples. See also `clojure-experiments.java.nio`. See - - -to-get-list-of-classpath-resources-in-nested-jar" (:require [clojure.java.io :as io])) ;;; List directory files, especially those packaged inside an uberjar (defmulti list-files (fn [dir] (some-> di...
null
https://raw.githubusercontent.com/jumarko/clojure-experiments/7d7d48f7081484307d8a7c5178d6a90ad94077f5/src/clojure_experiments/files.clj
clojure
List directory files, especially those packaged inside an uberjar which returns java.io.File instances end Walking file tree - e.g. filtering git directories
(ns clojure-experiments.files "Various File IO examples. See also `clojure-experiments.java.nio`. See - - -to-get-list-of-classpath-resources-in-nested-jar" (:require [clojure.java.io :as io])) (defmulti list-files (fn [dir] (some-> dir (io/resource) .getProtocol))) (defmethod list-files "file" [dir] ...
a4f61170b801be8c553524b3184947f2f0f99b36d244bb7238d748dfffa53821
tshatrov/webgunk
tests.lisp
(in-package :webgunk/test) (define-test strip-whitespace-test (assert-equal "aaa" (strip-whitespace " aaa ")) (assert-equal "aa a" (strip-whitespace "aa a")) (assert-equal "a a a" (strip-whitespace "a a a ")) ) (define-test http-request-test (let* ((url "/") (document (parse-requ...
null
https://raw.githubusercontent.com/tshatrov/webgunk/0260c08e300ab76ed1f64c55ddf3c47d83830461/tests.lisp
lisp
(in-package :webgunk/test) (define-test strip-whitespace-test (assert-equal "aaa" (strip-whitespace " aaa ")) (assert-equal "aa a" (strip-whitespace "aa a")) (assert-equal "a a a" (strip-whitespace "a a a ")) ) (define-test http-request-test (let* ((url "/") (document (parse-requ...
2d0499a6d5a2c026cf7d75ef76cc536c950c2c065a8086af9deff9791b2a4af1
kongeor/evolduo-app
playground.clj
(ns evolduo-app.views.playground (:require [evolduo-app.views.common :refer [base-view]] [evolduo-app.views.components :as comps] [clojure.string :as str])) (defn- safe-parse-int [s] (when s (try (Integer/parseInt (str/trim s)) (catch NumberFormatException e)))) (comment (sa...
null
https://raw.githubusercontent.com/kongeor/evolduo-app/e97e389e3ce7edf06a4e6fc0ad4de8a273ef229f/src/evolduo_app/views/playground.clj
clojure
(ns evolduo-app.views.playground (:require [evolduo-app.views.common :refer [base-view]] [evolduo-app.views.components :as comps] [clojure.string :as str])) (defn- safe-parse-int [s] (when s (try (Integer/parseInt (str/trim s)) (catch NumberFormatException e)))) (comment (sa...
4d94efac8b2b892f300791e98768649ddcf8f9919004ca02d3e6d9d398abb021
mikera/vectorz-clj
test_matrix.clj
(ns mikera.vectorz.test-matrix (:use [clojure test]) (:require [mikera.vectorz.core :as v]) (:require [mikera.vectorz.matrix :as m]) (:import [mikera.matrixx AMatrix Matrixx Matrix]) (:import [mikera.vectorz AVector Vectorz Vector])) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) (d...
null
https://raw.githubusercontent.com/mikera/vectorz-clj/cf98ff89c7f1d26b98eb9bc18b1b0a3e53176dca/src/test/clojure/mikera/vectorz/test_matrix.clj
clojure
(ns mikera.vectorz.test-matrix (:use [clojure test]) (:require [mikera.vectorz.core :as v]) (:require [mikera.vectorz.matrix :as m]) (:import [mikera.matrixx AMatrix Matrixx Matrix]) (:import [mikera.vectorz AVector Vectorz Vector])) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) (d...
52c1db59968a13ed314e234a0077d844eb0b4e72bf64ec6f4bab28b9adc5ac6f
IFCA/opencl
example03.hs
Copyright ( c ) 2011 , 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 ...
null
https://raw.githubusercontent.com/IFCA/opencl/80d0cb9d235819cd53e6a36d7a9258bc19d564ab/examples/example03.hs
haskell
Initialize Kernels Execute Kernels Get Result
Copyright ( c ) 2011 , 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 ...
17fb6855d18623cc6cbeaa76a2a1bee8c0527c57bddc6f36345a5ae354ce763b
xanxys/hs2bf
GMachine.hs
-- | GMachine reference : Implementing Functional Languages : a tutorial -- GC is executed every 256 allocation . module GMachine where import Control.Arrow import Control.Monad import Control.Monad.State import Control.Monad.Identity import Data.Ord import Data.Char import Data.List import Data.Maybe import qualif...
null
https://raw.githubusercontent.com/xanxys/hs2bf/fd8ef0fd42490779a7f082bc778afdfac77a7a9c/GMachine.hs
haskell
| GMachine ^ bytes | Compile 'GMCode's to SAM * k B: payload * n B: id of this frame You can return from anywhere on stack to origin, but not from heap. code generation layout configuration * Pop 0 | Separate ['GMCode'] at 'Reduce'. | Thin wrapper of 'compileCodeBlock' any position will do,...
reference : Implementing Functional Languages : a tutorial GC is executed every 256 allocation . module GMachine where import Control.Arrow import Control.Monad import Control.Monad.State import Control.Monad.Identity import Data.Ord import Data.Char import Data.List import Data.Maybe import qualified Data.Map as M...
984c6610fd97a77912a59a841ba5e624e9375c325fa268ed1a4eea30d90d2ce1
NorfairKing/the-notes
Macro.hs
module Cryptography.SystemAlgebra.AbstractSystems.Macro where import Types import Macro.Arrows import Macro.Math import Macro.MetaMacro import Functions.Application.Macro -- | Concrete set of systems syss_ :: Note syss_ = phiu -- | Concrete set of labels labs_ :: N...
null
https://raw.githubusercontent.com/NorfairKing/the-notes/ff9551b05ec3432d21dd56d43536251bf337be04/src/Cryptography/SystemAlgebra/AbstractSystems/Macro.hs
haskell
| Concrete set of systems | Concrete set of labels | Concrete Label assignment function | Application of concrete Label assignment function | Concrete system merging operation | System merging operation | Interface connection operation ^ System | System with empty interface label set | Merging interfaces ^ S...
module Cryptography.SystemAlgebra.AbstractSystems.Macro where import Types import Macro.Arrows import Macro.Math import Macro.MetaMacro import Functions.Application.Macro syss_ :: Note syss_ = phiu labs_ :: Note labs_ = lambdau laf_ :: Note laf_ = lambda la :: No...
7b5d1353c21f915331a7ad50b5db3c39e33e5d767830dc8138c3dc438b842661
glagoly/glagoly
config.erl
-module(config). -export([metainfo/0]). -include_lib("kvs/include/metainfo.hrl"). -include_lib("kvs/include/kvs.hrl"). -include_lib("records.hrl"). metainfo() -> #schema{name = glagoly, tables = tables()}. tables() -> [ #table{name = login, fields = record_info(fields, login)}, #table{name = poll...
null
https://raw.githubusercontent.com/glagoly/glagoly/bd3754599ebb456fbcb1ee5864d87d85d9584ad3/src/config.erl
erlang
-module(config). -export([metainfo/0]). -include_lib("kvs/include/metainfo.hrl"). -include_lib("kvs/include/kvs.hrl"). -include_lib("records.hrl"). metainfo() -> #schema{name = glagoly, tables = tables()}. tables() -> [ #table{name = login, fields = record_info(fields, login)}, #table{name = poll...
767a16b1f7558d5bfb8a56610afcc626338459c5be411aefe43c4bf92bb67146
clojurewerkz/cassaforte
metadata.clj
Copyright ( c ) 2012 - 2014 , , and the ClojureWerkz Team ;; 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 i...
null
https://raw.githubusercontent.com/clojurewerkz/cassaforte/bd0b3ff44c5d7f993798270032aa41be0e8209c2/src/clojure/clojurewerkz/cassaforte/metadata.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 per...
Copyright ( c ) 2012 - 2014 , , and the ClojureWerkz Team distributed under the License is distributed on an " AS IS " BASIS , (ns clojurewerkz.cassaforte.metadata "Main namespace for getting information about cluster, keyspaces, tables, etc." (:refer-clojure :exclude [update]) (:require [clojurewerkz.c...
ab4da9bdc01b4e71436370a8688e8a6bf8a75e61504c497285fc7699389d9326
nasa/Common-Metadata-Repository
user.clj
(ns user "A dev namespace that supports Proto-REPL. It seems that Proto-REPL doesn't support the flexible approach that lein uses: any configurable ns can be the starting ns for a REPL. As such, this minimal ns was created for Proto-REPL users, so they too can have an env that supports startup and shutdown."...
null
https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/63001cf021d32d61030b1dcadd8b253e4a221662/other/cmr-exchange/jar-plugin-lib/dev-resources/src/user.clj
clojure
(ns user "A dev namespace that supports Proto-REPL. It seems that Proto-REPL doesn't support the flexible approach that lein uses: any configurable ns can be the starting ns for a REPL. As such, this minimal ns was created for Proto-REPL users, so they too can have an env that supports startup and shutdown."...
5a99e7f776d3d88190723a4d76b013e868bd74c9ecf43871623dfa7756b78ccd
nixin72/shan
install_test.clj
(ns shan.install-test (:require [clojure.test :refer [deftest testing is]] [shan.macros :refer [suppress-stdout with-test-env with-failed-operation with-input-queue]] [shan.print :as p] [shan.util :as u] [shan.command.install :as i...
null
https://raw.githubusercontent.com/nixin72/shan/2fe648cb7648174900d25e5ef2af6a9263ee9f97/test/shan/install_test.clj
clojure
test-generate-success-report ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; test-find-default-manager ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; NOTE: The following tests are working with stateful code, however they do not test the side effects of the changes of state. This code deals with removing packages from the sy...
(ns shan.install-test (:require [clojure.test :refer [deftest testing is]] [shan.macros :refer [suppress-stdout with-test-env with-failed-operation with-input-queue]] [shan.print :as p] [shan.util :as u] [shan.command.install :as i...
ee76aeaa3d5d54c1c1be5f8d18734dbbce2287d78f503fcf2cfc9fec6bdedc28
donut-party/system
system_test.cljc
(ns donut.system-test (:require #?(:clj [clojure.test :refer [deftest is testing]] :cljs [cljs.test :refer [deftest is testing] :include-macros true]) [donut.system :as ds :include-macros true] [loom.alg :as la] [loom.graph :as lg] [malli.core :as m] [clojure.string :as str])) (defn config-po...
null
https://raw.githubusercontent.com/donut-party/system/6c8a92eecd86d38247d69998667bfb955e9cb3ad/test/donut/system_test.cljc
clojure
[:env :http :port] reaches into the :http "component"
(ns donut.system-test (:require #?(:clj [clojure.test :refer [deftest is testing]] :cljs [cljs.test :refer [deftest is testing] :include-macros true]) [donut.system :as ds :include-macros true] [loom.alg :as la] [loom.graph :as lg] [malli.core :as m] [clojure.string :as str])) (defn config-po...
fe08446423c87c4252ef328d07dbe1bf5b19bedee33ee119ec59f6e9347c1a3c
haskell-works/cabal-cache
S3.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeApplications # module HaskellWorks.CabalCache.AWS.S3 ( uriToS3Uri, headS3Uri, getS3Uri, copyS3Uri, putObject, ) where import Control.Lens ((^.)) import Control.Monad (void, unless) import Control.Monad....
null
https://raw.githubusercontent.com/haskell-works/cabal-cache/841549c4f32da556125a6baa0c1ce9dc944658b4/src/HaskellWorks/CabalCache/AWS/S3.hs
haskell
# LANGUAGE OverloadedStrings # | Access the response body as a lazy bytestring
# LANGUAGE TypeApplications # module HaskellWorks.CabalCache.AWS.S3 ( uriToS3Uri, headS3Uri, getS3Uri, copyS3Uri, putObject, ) where import Control.Lens ((^.)) import Control.Monad (void, unless) import Control.Monad.Catch (MonadCatch(.....
f7662a0cec859760ce4ff4c9e4d5a024569af4132cd0673c10fee9f2f52ae81b
metametadata/carry
project.clj
(defproject shopping-cart "0.1.0-SNAPSHOT" :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/clojurescript "1.9.229"] [reagent "0.6.0" :exclusions [cljsjs/react]] [cljsjs/react-with-addons "15.3.1-0"] [org.clojure/core.match "0.3.0-alpha4...
null
https://raw.githubusercontent.com/metametadata/carry/fa5c7cd0d8f1b71edca70330acc97c6245638efb/examples/shopping-cart/project.clj
clojure
(defproject shopping-cart "0.1.0-SNAPSHOT" :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/clojurescript "1.9.229"] [reagent "0.6.0" :exclusions [cljsjs/react]] [cljsjs/react-with-addons "15.3.1-0"] [org.clojure/core.match "0.3.0-alpha4...
5ee9a3c2ac6340a12618804724c597b3ae2f12dca568ec9a1cadc21185c8b7da
erlangonrails/devdb
node_watcher_qc.erl
%% ------------------------------------------------------------------- %% %% riak_core: Core Riak Application %% Copyright ( c ) 2007 - 2010 Basho Technologies , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except...
null
https://raw.githubusercontent.com/erlangonrails/devdb/0e7eaa6bd810ec3892bfc3d933439560620d0941/dev/riak_core/test/node_watcher_qc.erl
erlang
------------------------------------------------------------------- riak_core: Core Riak Application Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the sp...
Copyright ( c ) 2007 - 2010 Basho Technologies , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -...