_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 |
|---|---|---|---|---|---|---|---|---|
e941e01f2ba83988543fe0a67567e6be5ba01d2d0cfefbc7e431b71484c0ab0b | coingaming/lnd-client | Router_Fields.hs | {- This file was auto-generated from routerrpc/router.proto by the proto-lens-protoc program. -}
# LANGUAGE ScopedTypeVariables , DataKinds , TypeFamilies , UndecidableInstances , GeneralizedNewtypeDeriving , MultiParamTypeClasses , FlexibleContexts , FlexibleInstances , PatternSynonyms , MagicHash , NoImplicitPrelude ... | null | https://raw.githubusercontent.com/coingaming/lnd-client/98974c514cd82253dbd6111bafbbb2bbff6bffe2/src/Proto/Routerrpc/Router_Fields.hs | haskell | This file was auto-generated from routerrpc/router.proto by the proto-lens-protoc program.
# OPTIONS_GHC -Wno-unused-imports#
# OPTIONS_GHC -Wno-duplicate-exports# | # LANGUAGE ScopedTypeVariables , DataKinds , TypeFamilies , UndecidableInstances , GeneralizedNewtypeDeriving , MultiParamTypeClasses , FlexibleContexts , FlexibleInstances , PatternSynonyms , MagicHash , NoImplicitPrelude , BangPatterns , TypeApplications , OverloadedStrings , DerivingStrategies , DeriveGeneric #
# OP... |
d64eb55669147481e7a078e66b34621ebb8999d3c2e2e0f9ef6b8182e2b0e9d5 | xtdb/core2 | csv.clj | (ns core2.operator.csv
(:require [clojure.data.csv :as csv]
[clojure.instant :as inst]
[clojure.spec.alpha :as s]
[core2.logical-plan :as lp]
[core2.types :as types]
[core2.util :as util]
[core2.vector.indirect :as iv]
[core2.vector.w... | null | https://raw.githubusercontent.com/xtdb/core2/3adeb391ca4dd73a3f79faba8024289376597d23/core/src/main/clojure/core2/operator/csv.clj | clojure | (ns core2.operator.csv
(:require [clojure.data.csv :as csv]
[clojure.instant :as inst]
[clojure.spec.alpha :as s]
[core2.logical-plan :as lp]
[core2.types :as types]
[core2.util :as util]
[core2.vector.indirect :as iv]
[core2.vector.w... | |
342c687f021ade31c93e0a8c548a41e8c709065e8e5e89c656a6a9aaa7abf103 | SKS-Keyserver/sks-keyserver | pbuild.ml | (***********************************************************************)
(* pbuild.ml - Executable: Builds a prefix-tree database from an *)
existing
(* *)
Copyright ( C ) 2002 , 2003 , ... | null | https://raw.githubusercontent.com/SKS-Keyserver/sks-keyserver/a4e5267d817cddbdfee13d07a7fb38a9b94b3eee/pbuild.ml | ocaml | *********************************************************************
pbuild.ml - Executable: Builds a prefix-tree database from an
redistribute it and/or modify it under ... | existing
Copyright ( C ) 2002 , 2003 , 2004 , 2005 , 2006 , 2007 , 2008 , 2009 , 2010 ,
2011 , 2012 , 2013 and Contributors
This file is part of SKS . SKS is free software ; you can
Public License as published by the... |
53282b7c0b897f3a96aeef831e7634580194c7c0ea44f2ee0a39e70ac2033085 | soegaard/urlang | ractive-original.rkt | #lang racket
;;; Original Ractive Example
This example by shows how to use the Ractive
framework with Urlang . This version uses x - expressions
;; and the html-writing package to generate the html.
;; Compare with the version in "ractive.rkt"
(require html-writing urlang net/sendurl)
run using Node ?
pri... | null | https://raw.githubusercontent.com/soegaard/urlang/086622e2306e72731016c7108aca3328e5082aee/urlang-examples/ractive/ractive-original.rkt | racket | Original Ractive Example
and the html-writing package to generate the html.
Compare with the version in "ractive.rkt"
print top-level expression? | #lang racket
This example by shows how to use the Ractive
framework with Urlang . This version uses x - expressions
(require html-writing urlang net/sendurl)
run using Node ?
print generated JavaScript ?
(define (ractive template js-file)
(xexp->html
`((html (head (title "Ractive test")
... |
2da933998f86535e5873e7b524fd473631c8f22621824ce60b6edd208fcef7bb | PacktWorkshops/The-Clojure-Workshop | grocery_partitioning.clj | (ns packt-clj.grocery-partitioning)
(defn full-bag? [items]
(let [weight (apply + (map :weight items))
size (apply + (map :max-dimension items))]
(or (> weight 3200)
(> size 800))))
(defn robust-bag-sequences* [{:keys [current-bag bags] :as acc} stream]
(cond
(not stream)
(conj bags current-bag)
(... | null | https://raw.githubusercontent.com/PacktWorkshops/The-Clojure-Workshop/3d309bb0e46a41ce2c93737870433b47ce0ba6a2/Chapter06/Exercise6.03/grocery_partitioning.clj | clojure | (ns packt-clj.grocery-partitioning)
(defn full-bag? [items]
(let [weight (apply + (map :weight items))
size (apply + (map :max-dimension items))]
(or (> weight 3200)
(> size 800))))
(defn robust-bag-sequences* [{:keys [current-bag bags] :as acc} stream]
(cond
(not stream)
(conj bags current-bag)
(... | |
b033d1a3ba1ad0daf7143e7d63b04fb0152340c27b6790d70fc147902c50d912 | clj-commons/gloss | structure.clj | Copyright ( c ) . All rights reserved .
;; The use and distribution terms for this software are covered by the
;; Eclipse Public License 1.0 (-1.0.php)
;; which can be found in the file epl-v10.html at the root of this distribution.
;; By using this software in any fashion, you are agreeing to be bound by... | null | https://raw.githubusercontent.com/clj-commons/gloss/59d95265e82e42eb2666d2269226a2b2893c515b/src/gloss/core/structure.clj | clojure | The use and distribution terms for this software are covered by the
Eclipse Public License 1.0 (-1.0.php)
which can be found in the file epl-v10.html at the root of this distribution.
By using this software in any fashion, you are agreeing to be bound by
the terms of this license.
You must not remove ... | Copyright ( c ) . All rights reserved .
(ns ^{:skip-wiki true}
gloss.core.structure
(:require
[clojure.walk :refer :all]
[clojure.zip :as z]
[gloss.core.protocols :refer :all]
[gloss.data.bytes :refer :all]
[gloss.data.primitives :refer :all])
(:import
[java.nio
ByteBuffer]))
... |
f4049e209c4aba2c9811504e8306cfabebfabcd8b9f60daf7c61e1cbd8c297ef | takikawa/racket-ppa | built-in-symbol.rkt | #lang racket/base
;; A built-in symbol is one that the compiler must avoid using for a
;; binding. Built-in symbols include the names of run-time primitives
;; and identifiers reserved by the compiler itself (see
;; "reserved-symbol.rkt")
(provide register-built-in-symbol!
built-in-symbol?
make-buil... | null | https://raw.githubusercontent.com/takikawa/racket-ppa/caff086a1cd48208815cec2a22645a3091c11d4c/src/expander/compile/built-in-symbol.rkt | racket | A built-in symbol is one that the compiler must avoid using for a
binding. Built-in symbols include the names of run-time primitives
and identifiers reserved by the compiler itself (see
"reserved-symbol.rkt")
Make a symbol that is a little more obscure than just `s`
----------------------------------------
Primi... | #lang racket/base
(provide register-built-in-symbol!
built-in-symbol?
make-built-in-symbol!)
(define built-in-symbols (make-hasheq))
(define (register-built-in-symbol! s)
(hash-set! built-in-symbols s #t))
(define (built-in-symbol? s)
(hash-ref built-in-symbols s #f))
(define (make-built-in-... |
2f9e46afff6bcb6fd48265888defc877044ceace0752b2b3949139fbb321510f | tfausak/argo | Permission.hs | {-# LANGUAGE DeriveLift #-}
module Argo.Internal.Type.Permission where
import qualified Argo.Vendor.DeepSeq as DeepSeq
import qualified Argo.Vendor.TemplateHaskell as TH
data Permission
= Allow
| Forbid
deriving (Eq, TH.Lift, Show)
instance DeepSeq.NFData Permission where
rnf = flip seq ()
toBool :... | null | https://raw.githubusercontent.com/tfausak/argo/d9299d48fe92f343fd2d7cc2b52aa95283080b73/source/library/Argo/Internal/Type/Permission.hs | haskell | # LANGUAGE DeriveLift # |
module Argo.Internal.Type.Permission where
import qualified Argo.Vendor.DeepSeq as DeepSeq
import qualified Argo.Vendor.TemplateHaskell as TH
data Permission
= Allow
| Forbid
deriving (Eq, TH.Lift, Show)
instance DeepSeq.NFData Permission where
rnf = flip seq ()
toBool :: Permission -> Bool
toBool ... |
8db05d0d1ffcaab46aeab0be2ebe771ec482d50a18e0da510cad2d3d29e17760 | iokasimov/pandora | Tensor.hs | module Pandora.Pattern.Morphism.Tensor where
data Tensor p m q l r where
Tensor :: m (p (t l) (t r)) (t (q l r)) -> Tensor p m q (t l) (t r)
| null | https://raw.githubusercontent.com/iokasimov/pandora/f1dcf00573e254d5bc26b0224543fbd0c992d060/Pandora/Pattern/Morphism/Tensor.hs | haskell | module Pandora.Pattern.Morphism.Tensor where
data Tensor p m q l r where
Tensor :: m (p (t l) (t r)) (t (q l r)) -> Tensor p m q (t l) (t r)
| |
dad44386d9daee362fff1d3ad780c1096a85b609daf44644c8c169d354045335 | halgari/mjolnir | boehm.clj | (ns mjolnir.gc.boehm
(:require [mjolnir.constructors-init :refer [defnf]]
[mjolnir.types :refer :all]
[mjolnir.inference :refer [infer-all]]
[mjolnir.ssa :refer [no-type gen-plan assert-entity update-entity add-all get-plan commit add-to-plan]]
[datomic.api :refer [db q... | null | https://raw.githubusercontent.com/halgari/mjolnir/cfb82a55bc316a6a0e235b46f6ee04c6b55c8cc5/src/mjolnir/gc/boehm.clj | clojure | (ns mjolnir.gc.boehm
(:require [mjolnir.constructors-init :refer [defnf]]
[mjolnir.types :refer :all]
[mjolnir.inference :refer [infer-all]]
[mjolnir.ssa :refer [no-type gen-plan assert-entity update-entity add-all get-plan commit add-to-plan]]
[datomic.api :refer [db q... | |
78772765b1cb67ba0a0a2839fa0c0e682c94eeb74cda55ab05a76c884b7f447f | ucsd-progsys/nate | arith_flags.ml | (***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
, projet Crista... | null | https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/otherlibs/num/arith_flags.ml | ocaml | *********************************************************************
Objective Caml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
en Automatique . All rights reserved . This file is distributed
under the terms of the GNU Library General Public License , with
$ I d : , v 1.4 2001/12/07 13:40:14 xleroy Exp... |
00e479ce2c7333b5eb7f38018c4a5d09f6b6990d3a66ce86e407816888bd90ff | racket/gui | text.rkt | #lang racket
(require "private/util.rkt"
"private/gui.rkt"
rackunit
racket/gui/base
framework
simple-tree-text-markup/construct)
(module+ test
(with-private-prefs
(highlight-range-tests)
(port-name-matches-tests)
(get-pos/text-tests)
(all-string-snips-tes... | null | https://raw.githubusercontent.com/racket/gui/1f2217b1169faac36d3d14819093c63e4254f19c/gui-test/framework/tests/text.rkt | racket |
searching
there is an internal buffer of this size, so writes that are larger and smaller are interesting
the next tests test the interaction when the current
thread is the same as the handler thread of the eventspace
where the text was created
This test sends a lot of flushes from a separate thread and,
whi... | #lang racket
(require "private/util.rkt"
"private/gui.rkt"
rackunit
racket/gui/base
framework
simple-tree-text-markup/construct)
(module+ test
(with-private-prefs
(highlight-range-tests)
(port-name-matches-tests)
(get-pos/text-tests)
(all-string-snips-tes... |
fa5b64b597c4c56f3448760cd0a89bb78e6c788b88b48911f44d67e3f99e0822 | ygrek/mldonkey | donkeyComplexOptions.mli | Copyright 2002 b8_bavard , b8_fee_carabine ,
This file is part of mldonkey .
mldonkey 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 y... | null | https://raw.githubusercontent.com/ygrek/mldonkey/333868a12bb6cd25fed49391dd2c3a767741cb51/src/networks/donkey/donkeyComplexOptions.mli | ocaml | Copyright 2002 b8_bavard , b8_fee_carabine ,
This file is part of mldonkey .
mldonkey 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 y... | |
f0073ed20e232957f2aacbea79219c71314af250e783e6da1a8c7fdf37777e91 | restyled-io/restyler | main.hs | module Main
( main
) where
import Restyler.Prelude
import GitHub.Data (toPathPart)
import Restyler.App
import Restyler.Exit
import Restyler.Main
import Restyler.Options
import Restyler.Statsd (withStatsClient)
main :: IO ()
main = do
hSetBuffering stdout LineBuffering
hSetBuffering stderr LineBufferi... | null | https://raw.githubusercontent.com/restyled-io/restyler/e8d189400da25a273cee86e0c25ec7e360674f8b/app/main.hs | haskell | module Main
( main
) where
import Restyler.Prelude
import GitHub.Data (toPathPart)
import Restyler.App
import Restyler.Exit
import Restyler.Main
import Restyler.Options
import Restyler.Statsd (withStatsClient)
main :: IO ()
main = do
hSetBuffering stdout LineBuffering
hSetBuffering stderr LineBufferi... | |
949947ed2a02b8dcd69f2524b791374d8817d2f825e3348020a0510293deff8d | smallhadroncollider/taskell-2.0 | DocumentSpec.hs | module Taskell.IO.MarkDown.Parser.DocumentSpec
( spec
) where
import RIO
import Test.Hspec
import Taskell.IO.MarkDown.Parser.Document (listP, parse)
import Taskell.IO.MarkDown.Types
import qualified Taskell.Utility.Parser as P
-- tests
spec :: Spec
spec =
parallel $ do
describe "normal file" $ d... | null | https://raw.githubusercontent.com/smallhadroncollider/taskell-2.0/3a7337258d50fbb5b3d8aeb7e348e3b416cd8cf2/test/Taskell/IO/MarkDown/Parser/DocumentSpec.hs | haskell | tests | module Taskell.IO.MarkDown.Parser.DocumentSpec
( spec
) where
import RIO
import Test.Hspec
import Taskell.IO.MarkDown.Parser.Document (listP, parse)
import Taskell.IO.MarkDown.Types
import qualified Taskell.Utility.Parser as P
spec :: Spec
spec =
parallel $ do
describe "normal file" $ do
... |
3db4669f76133d09ead0026ec9e3f26db738d00d9b6941814d7296afb46e3302 | racket/redex | subject-reduction.rkt | #lang racket
(require redex)
(reduction-steps-cutoff 10)
(define-language lang
(e (e e)
(abort e)
x
v)
(x (variable-except lambda call/cc abort))
(c (v c)
(c e)
hole)
(v call/cc
number
(lambda (x t) e))
(t num
(t -> t)))
(define reductions
(reduction-relation
la... | null | https://raw.githubusercontent.com/racket/redex/4c2dc96d90cedeb08ec1850575079b952c5ad396/redex-examples/redex/examples/subject-reduction.rkt | racket | this rules calls subst with the wrong arguments, which is caught by the example below. | #lang racket
(require redex)
(reduction-steps-cutoff 10)
(define-language lang
(e (e e)
(abort e)
x
v)
(x (variable-except lambda call/cc abort))
(c (v c)
(c e)
hole)
(v call/cc
number
(lambda (x t) e))
(t num
(t -> t)))
(define reductions
(reduction-relation
la... |
2ec813eef2ccd9b53548d1a7ac7f978fea0d613f5949622d92c009064a73d6da | bjorng/wings | sphere.erl | %%% File : sphere.erl
%%% Author : <dgud@LINA>
%%% Description : Creates a sphere of triangles
Created : 19 Mar 2009 by < dgud@LINA >
-module(sphere).
-export([tris/0, tris/1, norm/1, norm/3]).
-define(XPLUS, {1.0,0.0,0.0}).
-define(XMIN, {-1.0,0.0,0.0}).
-define(YPLUS, {0.0,1.0,0.0}).
-define(YMIN, {0.0,-1.... | null | https://raw.githubusercontent.com/bjorng/wings/dec64a500220359dbc552600af486be47c45d301/e3d/test/sphere.erl | erlang | File : sphere.erl
Author : <dgud@LINA>
Description : Creates a sphere of triangles
func tris(Options) -> {Size::integer(), Tris::term(), [Extra]}
Returns the number of triangles and the triangles in a list
or in a binary if option binary is true.
Extra contents depends on Options.
Options:
binary ... | Created : 19 Mar 2009 by < dgud@LINA >
-module(sphere).
-export([tris/0, tris/1, norm/1, norm/3]).
-define(XPLUS, {1.0,0.0,0.0}).
-define(XMIN, {-1.0,0.0,0.0}).
-define(YPLUS, {0.0,1.0,0.0}).
-define(YMIN, {0.0,-1.0,0.0}).
-define(ZPLUS, {0.0,0.0,1.0}).
-define(ZMIN, {0.0,0.0,-1.0}).
-define(octahedron,
[{?ZPL... |
c416521a3f614339151c265e9213c2c7b13ac865b1c812dd43962e6544407720 | conal/shady-graphics | CompileSurface.hs | # LANGUAGE TypeOperators , ScopedTypeVariables
, FlexibleContexts , TypeFamilies
#
, FlexibleContexts, TypeFamilies
#-}
# OPTIONS_GHC -Wall #
----------------------------------------------------------------------
-- |
Module : . CompileSurface
Copyright : ( c ) Conal Elli... | null | https://raw.githubusercontent.com/conal/shady-graphics/cb062d59e327b882f54537559062ac3eecc2c28d/src/Shady/CompileSurface.hs | haskell | --------------------------------------------------------------------
|
License : AGPLv3
Maintainer :
Stability : experimental
Assemble shaders and display an image
--------------------------------------------------------------------
* unused but exported to suppress "unused" warning
,compile
(Vie... | # LANGUAGE TypeOperators , ScopedTypeVariables
, FlexibleContexts , TypeFamilies
#
, FlexibleContexts, TypeFamilies
#-}
# OPTIONS_GHC -Wall #
Module : . CompileSurface
Copyright : ( c ) Conal Elliott 2009
module Shady.CompileSurface
( EyePosE, FullSurf
, SurfB
, su... |
a5897504d19415ed7c295a6fbfe8a48796d2931b9b3ff24082c48ecbafdc3c12 | Mayvenn/storefront | scheduler.clj | (ns storefront.system.scheduler
(:require [overtone.at-at :as at-at]
[com.stuartsierra.component :as component]))
(defrecord Scheduler [pool exception-handler logger]
component/Lifecycle
(start [c]
(assert exception-handler)
(assoc c :pool (at-at/mk-pool)))
(stop [c]
(when pool (at-at/s... | null | https://raw.githubusercontent.com/Mayvenn/storefront/35d245abd07cc88cf537c7d232e427e24f5ddfc3/src/storefront/system/scheduler.clj | clojure | Ideally, we should never get here, but at-at halts all polls that throw exceptions silently.
This simply reports it and lets the polling continue | (ns storefront.system.scheduler
(:require [overtone.at-at :as at-at]
[com.stuartsierra.component :as component]))
(defrecord Scheduler [pool exception-handler logger]
component/Lifecycle
(start [c]
(assert exception-handler)
(assoc c :pool (at-at/mk-pool)))
(stop [c]
(when pool (at-at/s... |
cb213faa630a9c9b9727b6b6e27e63ba275bd0cfb988fe653f3921b90276a34b | clojure-interop/aws-api | core.clj | (ns com.amazonaws.util.core
(:refer-clojure :only [require comment defn ->])
(:import ))
(require '[com.amazonaws.util.AWSRequestMetrics$Field])
(require '[com.amazonaws.util.AWSRequestMetrics])
(require '[com.amazonaws.util.AWSRequestMetricsFullSupport])
(require '[com.amazonaws.util.AWSServiceMetrics])
(require ... | null | https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.util/src/com/amazonaws/util/core.clj | clojure | (ns com.amazonaws.util.core
(:refer-clojure :only [require comment defn ->])
(:import ))
(require '[com.amazonaws.util.AWSRequestMetrics$Field])
(require '[com.amazonaws.util.AWSRequestMetrics])
(require '[com.amazonaws.util.AWSRequestMetricsFullSupport])
(require '[com.amazonaws.util.AWSServiceMetrics])
(require ... | |
ca6909fc6687794d4a8b988245e6a2127f4f07d18c1b8d003d5a8ae63ffbedcc | janestreet/universe | constants.ml | (* nil format *)
let nil = '\xc0'
(* bool format family *)
let false_ = '\xc2'
let true_ = '\xc3'
The ` ` fix '' variants of each family encode some information about the item ( typically the
size ) in the header byte itself . For example , a header byte of [ 1110 1111 ] matches the mask
[ 111X XXXX ] , w... | null | https://raw.githubusercontent.com/janestreet/universe/b6cb56fdae83f5d55f9c809f1c2a2b50ea213126/vcaml/msgpack/src/constants.ml | ocaml | nil format
bool format family
int format family
float format family
string format family
binary format family
array format family
map format family
ext format family | let nil = '\xc0'
let false_ = '\xc2'
let true_ = '\xc3'
The ` ` fix '' variants of each family encode some information about the item ( typically the
size ) in the header byte itself . For example , a header byte of [ 1110 1111 ] matches the mask
[ 111X XXXX ] , which means ` ` negative fixint '' , and re... |
67558e610ab391d5d12c0eba4e33a0630e89c16ef4571b05d6762e30b831a1de | ChicagoBoss/tinymq | tinymq_sup.erl | -module(tinymq_sup).
-behaviour(supervisor).
-export([start_link/0]).
-export([init/1]).
start_link() ->
supervisor:start_link(?MODULE, []).
init([]) ->
MqWorker = {mq_controller, {tinymq_controller, start_link, []},
permanent, 2000, worker, [tinymq_controller]},
ChannelSup = {tinymq_channe... | null | https://raw.githubusercontent.com/ChicagoBoss/tinymq/12fc8472442a46bc7130847625a68be33f88f181/src/tinymq_sup.erl | erlang | -module(tinymq_sup).
-behaviour(supervisor).
-export([start_link/0]).
-export([init/1]).
start_link() ->
supervisor:start_link(?MODULE, []).
init([]) ->
MqWorker = {mq_controller, {tinymq_controller, start_link, []},
permanent, 2000, worker, [tinymq_controller]},
ChannelSup = {tinymq_channe... | |
6878b60757f8e58fdc5295007bb5ae37edad21ac1df8280e18074726ac168bb5 | pariyatti/kosa | views.clj | (ns kosa.library.views
(:require [kosa.layouts.library :as l]
[kosa.views :as v]))
(defn index [req]
(l/app req "Home"
[:div {:class "section-all-artefacts"}
[:div {:class "page-heading"}
[:div {:class "header-and-link"}
[:h1 {:class "page-header"} "Library Ar... | null | https://raw.githubusercontent.com/pariyatti/kosa/68099ccb830b99a9d0ead81ccfd878ba72020e78/src/kosa/library/views.clj | clojure | [:a.link {:href "#todo"}
"Manage Cards"]
[:a.btn.btn-primary {:href "#todo"}
[:a.link {:href "#todo"}
"Manage Cards"]
[:a.btn.btn-primary {:href "#todo"}
[:a.link {:href "#todo"}
"Manage Cards"]
[:a.btn.btn-primary {:href "#todo"}
[:a.link {:href "#todo"}
"Manage Cards"]
[:a.btn.btn-primary {:href "#tod... | (ns kosa.library.views
(:require [kosa.layouts.library :as l]
[kosa.views :as v]))
(defn index [req]
(l/app req "Home"
[:div {:class "section-all-artefacts"}
[:div {:class "page-heading"}
[:div {:class "header-and-link"}
[:h1 {:class "page-header"} "Library Ar... |
3980bef9fce6c54e32ff1867a5a46c50361d9c76a15aa4b0b20916ebb457fd6b | mirage/mirage-tcpip | stack.ml | module type V4V6 = sig
type t
(** The type representing the internal state of the dual IPv4 and IPv6 stack. *)
val disconnect: t -> unit Lwt.t
(** Disconnect from the dual IPv4 and IPv6 stack. While this might take some
time to complete, it can never result in an error. *)
module UDP: Udp.S with type ... | null | https://raw.githubusercontent.com/mirage/mirage-tcpip/4bae5497c5ef76c1dc3532bb0e4d6ad466051c50/src/core/stack.ml | ocaml | * The type representing the internal state of the dual IPv4 and IPv6 stack.
* Disconnect from the dual IPv4 and IPv6 stack. While this might take some
time to complete, it can never result in an error.
* [udp t] obtains a descriptor for use with the [UDP] module,
usually to transmit traffic.
* [tcp t] ob... | module type V4V6 = sig
type t
val disconnect: t -> unit Lwt.t
module UDP: Udp.S with type ipaddr = Ipaddr.t
module TCP: Tcp.S with type ipaddr = Ipaddr.t
module IP: Ip.S with type ipaddr = Ipaddr.t
val udp: t -> UDP.t
val tcp: t -> TCP.t
val ip: t -> IP.t
* [ ip t ] obtains a descriptor for use w... |
eebbc5f9a6e28e92a6be3cac1ffa248c58831f2b208a3fe96d62375a2b3f4134 | helium/blockchain-http | bh_gateway_mode.erl | -module(bh_gateway_mode).
-behaviour(epgsql_codec).
-export([init/2, names/0, encode/3, decode/3]).
init(Choices, _) -> Choices.
names() ->
[gateway_mode].
encode(Atom, gateway_mode, Choices) when is_atom(Atom) ->
lager:info("encoding burn type ~p ~p", [Atom, Choices]),
true = lists:member(Atom, Choice... | null | https://raw.githubusercontent.com/helium/blockchain-http/96f66286eb05a4607a3a11f602ec3d65732244a9/src/bh_gateway_mode.erl | erlang | -module(bh_gateway_mode).
-behaviour(epgsql_codec).
-export([init/2, names/0, encode/3, decode/3]).
init(Choices, _) -> Choices.
names() ->
[gateway_mode].
encode(Atom, gateway_mode, Choices) when is_atom(Atom) ->
lager:info("encoding burn type ~p ~p", [Atom, Choices]),
true = lists:member(Atom, Choice... | |
9ee938f87f40c042bf1d23ae3bf2bcba318602b4c9842d6c1e0f26364c4d8094 | gwkkwg/trivial-shell | digitool.lisp | (in-package #:trivial-shell)
(defun shell-command (command input)
(when input
(error "This version of trivial-shell does not support the input parameter."))
(ccl:do-shell-script command))
(defun %exit (code)
(error 'unsupported-function-error :function 'exit))
| null | https://raw.githubusercontent.com/gwkkwg/trivial-shell/e02ec191b34b52deca5d1c4ee99d4fa13b8772e0/dev/digitool.lisp | lisp | (in-package #:trivial-shell)
(defun shell-command (command input)
(when input
(error "This version of trivial-shell does not support the input parameter."))
(ccl:do-shell-script command))
(defun %exit (code)
(error 'unsupported-function-error :function 'exit))
| |
29ca649979330f8febf5acdac645f3640b5d3ab52f8321ccceb43758d173508a | Copilot-Language/copilot | Language.hs | Copyright © 2011 National Institute of Aerospace / Galois , Inc.
-- | Main Copilot language export file.
--
-- This is mainly a meta-module that re-exports most definitions in this
-- library. It also provides a default pretty printer that prints a
-- specification to stdout.
{-# LANGUAGE Safe #-}
module Copilot.L... | null | https://raw.githubusercontent.com/Copilot-Language/copilot/7267735ecff2931e52f9c4475ae4de5cc4120f4d/copilot-language/src/Copilot/Language.hs | haskell | | Main Copilot language export file.
This is mainly a meta-module that re-exports most definitions in this
library. It also provides a default pretty printer that prints a
specification to stdout.
# LANGUAGE Safe # | Copyright © 2011 National Institute of Aerospace / Galois , Inc.
module Copilot.Language
( module Data.Int
, module Data.Word
, module Copilot.Core
, module Copilot.Core.Type
, module Copilot.Core.Type.Array
, module Copilot.Language.Error
, module Copilot.Language.Interpret
, module Copilot.Langua... |
c56bf10f11a19129f81ea037490527cf41e1cd4c26a05f8fe5adf4171a0a7b1f | imandra-ai/imandra-prelude | CCOpt.ml |
(* This file is free software, part of containers. See file "license" for more details. *)
* { 1 Options }
type 'a t = 'a option
let map f = function
| None -> None
| Some x -> Some (f x)
let map_or ~default f = function
| None -> default
| Some x -> f x
let map_lazy default_fn f = function
| None -> de... | null | https://raw.githubusercontent.com/imandra-ai/imandra-prelude/ff6b06ef5529c07812020ba3816b941305156fa5/src-bs/containers/CCOpt.ml | ocaml | This file is free software, part of containers. See file "license" for more details.
$=
None (filter ((=) 0) (Some 1))
(Some 0) (filter ((=) 0) (Some 0))
None (filter (fun _ -> true) None)
|
* { 1 Options }
type 'a t = 'a option
let map f = function
| None -> None
| Some x -> Some (f x)
let map_or ~default f = function
| None -> default
| Some x -> f x
let map_lazy default_fn f = function
| None -> default_fn ()
| Some x -> f x
let is_some = function
| None -> false
| Some _ -> true
... |
82913473420d1e26eb579c1aa1684234f957d561ad1a41f181846fe7443cddec | input-output-hk/marlowe-cardano | Log.hs | {-# LANGUAGE GADTs #-}
{-# LANGUAGE RankNTypes #-}
module Language.Marlowe.Runtime.CLI.Command.Log
where
import Control.Concurrent.STM (atomically)
import Control.Concurrent.STM.Delay (newDelay, waitDelay)
import Control.Monad (guard, when)
import Control.Monad.IO.Class (liftIO)
import Control.Monad.Trans.Except (E... | null | https://raw.githubusercontent.com/input-output-hk/marlowe-cardano/d8b59409c8ec2c9bd0265195ba49c82b780e3516/marlowe-runtime-cli/app/Language/Marlowe/Runtime/CLI/Command/Log.hs | haskell | # LANGUAGE GADTs #
# LANGUAGE RankNTypes #
JSON) |
module Language.Marlowe.Runtime.CLI.Command.Log
where
import Control.Concurrent.STM (atomically)
import Control.Concurrent.STM.Delay (newDelay, waitDelay)
import Control.Monad (guard, when)
import Control.Monad.IO.Class (liftIO)
import Control.Monad.Trans.Except (ExceptT(..))
import Data.ByteString.Base16
import Da... |
f78f8a0354fc19069c26cddeb876a787a47fb9a5f79de789b41cc7f593c40358 | scalaris-team/scalaris | prbr.erl | 2012 - 2018 Zuse Institute Berlin ,
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/scalaris-team/scalaris/feb894d54e642bb3530e709e730156b0ecc1635f/src/rbr/prbr.erl | erlang | you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language gov... | 2012 - 2018 Zuse Institute Berlin ,
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
@author < >
@doc Generic paxos round based register ( prbr ) implementation .
-module(prbr).
-author('').
-vsn('$Id:$ ').... |
759a7e2305dd1cdf3076f1f25a08a05e7e1b29827edc0ab2d0cbf2a6404155a7 | quicklisp/quicklisp-client | dist.lisp | ;;;; dist.lisp
(in-package #:ql-dist)
Generic functions
(defgeneric dist (object)
(:documentation
"Return the dist of OBJECT."))
(defgeneric available-versions (object)
(:documentation
"Return a list of version information for OBJECT."))
(defgeneric system-index-url (object)
(:documentation
"Retu... | null | https://raw.githubusercontent.com/quicklisp/quicklisp-client/2bbf04e76dd7651addb8a19211e45b174334c9fb/quicklisp/dist.lisp | lisp | dist.lisp
A concession to mlisp
A few generic things
Dists
A dist is a set of releases.
see WITH-CONSISTENT-DISTS.")
This is to work around system names like "foo/bar".
Releases
Systems
A "system" in the defsystem sense.
FIXME: This isn't right, since the system index has systems that
don't match ... |
(in-package #:ql-dist)
Generic functions
(defgeneric dist (object)
(:documentation
"Return the dist of OBJECT."))
(defgeneric available-versions (object)
(:documentation
"Return a list of version information for OBJECT."))
(defgeneric system-index-url (object)
(:documentation
"Return the URL for ... |
2cc5b859198cfc47ff65758b45440089e9a349410f9eca1aadbe661469569e24 | uim/sigscheme | gauche-euc-jp.scm | #! /usr/bin/env sscm -C EUC-JP
Copyright ( c ) 2000 - 2004 , All rights reserved .
;;
;; Redistribution and use in source and binary forms, with or without
;; modification, are permitted provided that the following conditions
;; are met:
;;
1 . Redistributions of source code must retain the above copyright
;; ... | null | https://raw.githubusercontent.com/uim/sigscheme/ccf1f92d6c2a0f45c15d93da82e399c2a78fe5f3/test/gauche-euc-jp.scm | scheme |
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
notice, this list of conditions and the following disclaimer.
notice, this list of conditions and the following disclaimer in the
documentation and/or other... | #! /usr/bin/env sscm -C EUC-JP
Copyright ( c ) 2000 - 2004 , All rights reserved .
1 . Redistributions of source code must retain the above copyright
2 . Redistributions in binary form must reproduce the above copyright
3 . Neither the name of the authors nor the names of its contributors
" AS IS " AND ... |
24625d78a165f6f4de96b83b29ca396a6bbf0a77f84af1a03744009d4f50599d | bnoordhuis/chicken-core | lolevel.scm | lolevel.scm - Low - level routines for CHICKEN
;
Copyright ( c ) 2008 - 2013 , The Chicken Team
Copyright ( c ) 2000 - 2007 ,
; All rights reserved.
;
; Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following
; conditions are met:
;
; Redistr... | null | https://raw.githubusercontent.com/bnoordhuis/chicken-core/56d30e3be095b6abe1bddcfe10505fa726a43bb5/lolevel.scm | scheme |
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.
Redistributio... | lolevel.scm - Low - level routines for CHICKEN
Copyright ( c ) 2008 - 2013 , The Chicken Team
Copyright ( c ) 2000 - 2007 ,
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " AND ANY EXPRESS
CONTRIBUTORS BE LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR
... |
e8e6bc57a3ebd821d16380755875cd5fe0b42052c383cfde11449dfe6e4b46d8 | finnishtransportagency/harja | paallystys_muut_kustannukset.cljs | (ns harja.tiedot.urakka.paallystys-muut-kustannukset
"Päällystysurakan Muut kustannukset -taulukon tiedot.
Tässä taulukossa näytetään sanktiot jotka eivät liity mihinkään ylläpitokohteeseen,
sekä käsin syötetyt vapaamuotoiset muut kustannukset. Sanktioita ei voi muokata tai lisätä.
Nämä kustannukset lasketaan... | null | https://raw.githubusercontent.com/finnishtransportagency/harja/9710754bae3b4645525c4bef6bea77e23e374ac0/src/cljs/harja/tiedot/urakka/paallystys_muut_kustannukset.cljs | clojure | (ns harja.tiedot.urakka.paallystys-muut-kustannukset
"Päällystysurakan Muut kustannukset -taulukon tiedot.
Tässä taulukossa näytetään sanktiot jotka eivät liity mihinkään ylläpitokohteeseen,
sekä käsin syötetyt vapaamuotoiset muut kustannukset. Sanktioita ei voi muokata tai lisätä.
Nämä kustannukset lasketaan... | |
edf4adcd4a7fc44e5991b210bc1fb3c3445994a039dba570b07d1f3ad9d790b7 | takikawa/racket-ppa | rerequire.rkt | #lang racket/base
(require syntax/modcode
syntax/modresolve
racket/path)
(provide dynamic-rerequire)
(define (dynamic-rerequire mod #:verbosity [verbosity 'reload])
(unless (module-path? mod)
(raise-argument-error 'dynamic-rerequire "module-path?" mod))
(unless (memq verbosity '(all reload ... | null | https://raw.githubusercontent.com/takikawa/racket-ppa/d336bb10e3e0ec3a20020e9ade9e77d2f6f80b6d/collects/racket/rerequire.rkt | racket | Collect dependencies while loading:
Reload anything that's not up to date:
Return a list of the paths that were loaded this time, in order:
Module load:
Load-handler protocol: quiet failure when a
submodule is not found
Record module timestamp and dependencies:
Register all submodules, too; even though we load ... | #lang racket/base
(require syntax/modcode
syntax/modresolve
racket/path)
(provide dynamic-rerequire)
(define (dynamic-rerequire mod #:verbosity [verbosity 'reload])
(unless (module-path? mod)
(raise-argument-error 'dynamic-rerequire "module-path?" mod))
(unless (memq verbosity '(all reload ... |
2b5dcee94dd034c1575605ecc1e8e6698c740dfc8e1def9fc2a542696972aab1 | jasonstolaruk/CurryMUD | Chars.hs | module Mud.TopLvlDefs.Telnet.Chars where
import Data.Text (Text)
import qualified Data.Text as T
telnetAYT, telnetDO, telnetDON'T, telnetECHO, telnetEOR, telnetGA, telnetGMCP, telnetIAC, telnetIS, telnetNOP, telnetSB, telnetSE, telnetSEND, telnetSUPPRESS_GA, telnetTTYPE, telnetWILL, telnetWON'T :: Char
24... | null | https://raw.githubusercontent.com/jasonstolaruk/CurryMUD/f9775fb3ede08610f33f27bb1fb5fc0565e98266/lib/Mud/TopLvlDefs/Telnet/Chars.hs | haskell | module Mud.TopLvlDefs.Telnet.Chars where
import Data.Text (Text)
import qualified Data.Text as T
telnetAYT, telnetDO, telnetDON'T, telnetECHO, telnetEOR, telnetGA, telnetGMCP, telnetIAC, telnetIS, telnetNOP, telnetSB, telnetSE, telnetSEND, telnetSUPPRESS_GA, telnetTTYPE, telnetWILL, telnetWON'T :: Char
24... | |
16cdce3bd2aff787f51a8de5f9777c8378fe3c42d38f69e0f22277b7d97f77db | RunOrg/RunOrg | pId.ml | (* © 2014 RunOrg *)
include Id.Phantom
module Assert = struct
let auth id = id
end
let eq a b = a = b
| null | https://raw.githubusercontent.com/RunOrg/RunOrg/b53ee2357f4bcb919ac48577426d632dffc25062/server/pId.ml | ocaml | © 2014 RunOrg |
include Id.Phantom
module Assert = struct
let auth id = id
end
let eq a b = a = b
|
5d1a7f65415c31d28201e4f834203fcafec871c7cbef0b40f3af6df84d95c145 | janestreet/file_path | test_path_completion.ml | open! Core
open! Async
let arg_type = File_path.arg_type
let%expect_test _ =
let%bind () =
Helpers_async.test_arg_type
(module File_path)
~expect_output:(fun () -> [%expect.output])
in
[%expect
{|
""
Choose: ".fe/", "app/", "home/", "lib/", "libmap.sexp"
"."
Choose: "", "../... | null | https://raw.githubusercontent.com/janestreet/file_path/51ccd4268cab0ef3eea0b708a7d46803cf567f34/test/test_path_completion.ml | ocaml | open! Core
open! Async
let arg_type = File_path.arg_type
let%expect_test _ =
let%bind () =
Helpers_async.test_arg_type
(module File_path)
~expect_output:(fun () -> [%expect.output])
in
[%expect
{|
""
Choose: ".fe/", "app/", "home/", "lib/", "libmap.sexp"
"."
Choose: "", "../... | |
4b7400207ced2cbefd0d7702b9c2f9148d9a00cd56777a795f3b005a8395403b | ayamada/copy-of-svn.tir.jp | protocol.scm | ;;; coding: euc-jp
;;; -*- scheme -*-
;;; vim:set ft=scheme ts=8 sts=2 sw=2 et:
$ Id$
;;; ToDo: プロトコル部分をclient.scmとserver.scmから、
;;; ここに移動させる事
;;; (共用可能な部分が多い筈なので)
(define-module tir03.setp.protocol
(export
get-setp-protocol-version
))
(select-module tir03.setp.protocol)
(define (get-setp-... | null | https://raw.githubusercontent.com/ayamada/copy-of-svn.tir.jp/101cd00d595ee7bb96348df54f49707295e9e263/Gauche-tir/branches/Gauche-tir03/0.0.5/lib/tir03/setp/protocol.scm | scheme | coding: euc-jp
-*- scheme -*-
vim:set ft=scheme ts=8 sts=2 sw=2 et:
ToDo: プロトコル部分をclient.scmとserver.scmから、
ここに移動させる事
(共用可能な部分が多い筈なので) | $ Id$
(define-module tir03.setp.protocol
(export
get-setp-protocol-version
))
(select-module tir03.setp.protocol)
(define (get-setp-protocol-version)
0.0)
(provide "tir03/setp/protocol")
|
d3905b31ab4e0fddd71510cc029a9951ba72b965dc3149405c1775c72fc12530 | thomasbhatia/hss | hss_server.erl | $ I d : hss_server.erl , v 1.30 2008/02/18 05:34:31 vances Exp $
%%%---------------------------------------------------------------------
2008 Motivity Telecom Inc.
@author < > [ ]
%%% @end
%%%
Copyright ( c ) 2008 , Motivity Telecom Inc.
%%%
%%% All rights reserved.
%%%
%%% Redistribution and use in sou... | null | https://raw.githubusercontent.com/thomasbhatia/hss/0d06b844ccb5929a8a7e9cecf62da8db64203972/src/hss_server.erl | erlang | ---------------------------------------------------------------------
@end
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
... | $ I d : hss_server.erl , v 1.30 2008/02/18 05:34:31 vances Exp $
2008 Motivity Telecom Inc.
@author < > [ ]
Copyright ( c ) 2008 , Motivity Telecom Inc.
- Neither the name of Motivity Telecom nor the names of its
" AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT
OWNER OR ... |
d6557ccf9c526c67a476c9944cca178303c2e64581fd13bb4a27d736073f66b6 | stuarthalloway/practical-cl-clojure | chap_08.clj | (clojure/in-ns 'pcl.chap_08)
(clojure/refer 'clojure)
(defn divides? [candidate-divisor dividend]
(zero? (rem dividend candidate-divisor)))
(defn prime? [num]
(when (> num 1)
(every? (fn [x] (not (divides? x num)))
(range 2 (inc (int (Math/sqrt num)))))))
; why ever do something once, when you can do it... | null | https://raw.githubusercontent.com/stuarthalloway/practical-cl-clojure/eaa8af4eabdeae55cd10eff357be94b8e06969d8/src/pcl/chap_08.clj | clojure | why ever do something once, when you can do it infinitely?
new helper function
omit the destructuring | (clojure/in-ns 'pcl.chap_08)
(clojure/refer 'clojure)
(defn divides? [candidate-divisor dividend]
(zero? (rem dividend candidate-divisor)))
(defn prime? [num]
(when (> num 1)
(every? (fn [x] (not (divides? x num)))
(range 2 (inc (int (Math/sqrt num)))))))
(defn primes-from [number]
(filter prime? (ite... |
2c8b54d26dba2086cb8805193903befc51c789bed079b4c52ad53bdd4bd3b6bf | autolwe/autolwe | CoreRules.ml | (* * Core rules of the logic. *)
(* ** Imports and abbreviations *)
open Abbrevs
open Util
open Syms
open Type
open Expr
open ExprUtils
open Game
open Wf
open Assumption
open CoreTypes
let mk_log level = mk_logger "Core.CoreRules" level "CoreRules.ml"
let _log_t = mk_log Bolt.Level.TRACE
let _log_d = mk_log Bolt.Leve... | null | https://raw.githubusercontent.com/autolwe/autolwe/3452c3dae06fc8e9815d94133fdeb8f3b8315f32/src/Core/CoreRules.ml | ocaml | * Core rules of the logic.
** Imports and abbreviations
** Types for proofs and tactics
* -----------------------------------------------------------------------
* Proof tree.
* Replace subproofs with (possibly) different proofs of the same facts.
* A [goal] is just a [judgment] (for now).
* A validation is a... |
open Abbrevs
open Util
open Syms
open Type
open Expr
open ExprUtils
open Game
open Wf
open Assumption
open CoreTypes
let mk_log level = mk_logger "Core.CoreRules" level "CoreRules.ml"
let _log_t = mk_log Bolt.Level.TRACE
let _log_d = mk_log Bolt.Level.DEBUG
let log_i = mk_log Bolt.Level.INFO
type 'info iproof_tree ... |
254b0b5e591e0fdb67b1ad6ece563cc5b3cf9fe87ab900d8c735204cdeb1f515 | chunsj/TH | gd.lisp | (declaim (optimize (speed 3) (debug 1) (safety 0)))
(in-package :th)
(defgeneric $gd! (node &optional learning-rate) (:documentation "Executes gradient descent."))
(defgeneric $mgd! (node &optional learning-rate momentum) (:documentation "Executes momentum."))
(defgeneric $agd! (node &optional learning-rate) (:docume... | null | https://raw.githubusercontent.com/chunsj/TH/890f05ab81148d9fe558be3979c30c303b448480/bp/gd.lisp | lisp | (declaim (optimize (speed 3) (debug 1) (safety 0)))
(in-package :th)
(defgeneric $gd! (node &optional learning-rate) (:documentation "Executes gradient descent."))
(defgeneric $mgd! (node &optional learning-rate momentum) (:documentation "Executes momentum."))
(defgeneric $agd! (node &optional learning-rate) (:docume... | |
9c23dce60d8c5e360c09b9730f48809e44dcc705d74e9c85994f084266f3fc37 | ijvcms/chuanqi_dev | player_sale_cache.erl | %%%-------------------------------------------------------------------
@author apple
( C ) 2015 , < COMPANY >
%%% @doc
%%%
%%% @end
Created : 30 . 2015 19:19
%%%-------------------------------------------------------------------
-module(player_sale_cache).
-include("common.hrl").
-include("cache.hrl").
-expo... | null | https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/business/sale/player_sale_cache.erl | erlang | -------------------------------------------------------------------
@doc
@end
-------------------------------------------------------------------
API | @author apple
( C ) 2015 , < COMPANY >
Created : 30 . 2015 19:19
-module(player_sale_cache).
-include("common.hrl").
-include("cache.hrl").
-export([
select_row/2,
select_all/1,
insert/1,
delete/2,
update/2
]).
select_row(Id,PlayerId) ->
db_cache_lib:select_row(?DB_PLAYER_SALE, {Id,PlayerId}).
select... |
8c9054bd8e81d83744e3e49639e678786bfa923cf49b238f36959be12d02e578 | rusterlium/rebar3_cargo | rebar3_cargo_compile.erl | -module(rebar3_cargo_compile).
-export([
force_compile_app/2,
compile_app/2
]).
-spec force_compile_app(rebar_app_info:t(), rebar_state:t()) -> rebar_app_info:t().
force_compile_app(App, State) ->
CargoOpts = rebar3_cargo_opts:from_app(App),
rebar3_cargo_header:ensure(App),
TargetApp = get_target... | null | https://raw.githubusercontent.com/rusterlium/rebar3_cargo/d690d783a913c5585342f245600a1c9b1b928166/src/rebar3_cargo_compile.erl | erlang | take a shortcut here and rename the extension to .so in that case
Preserve file info | -module(rebar3_cargo_compile).
-export([
force_compile_app/2,
compile_app/2
]).
-spec force_compile_app(rebar_app_info:t(), rebar_state:t()) -> rebar_app_info:t().
force_compile_app(App, State) ->
CargoOpts = rebar3_cargo_opts:from_app(App),
rebar3_cargo_header:ensure(App),
TargetApp = get_target... |
2d1d5b14eee25b393bf807979775d44031158a36482ae9ec5d742679f5865fbc | okTurtles/strings | template.ml | open! Core
type raw =
| HTML of string
| PUG of string
[@@deriving sexp, yojson]
let boundaries =
let open Angstrom in
let starts, ends = Basic.boundary_parsers "template" in
let starts =
starts >>| fun attrs ->
List.find_map attrs ~f:(function
| "lang", Some "html" -> Some `HTML
| "lan... | null | https://raw.githubusercontent.com/okTurtles/strings/bd399039d2a792d7e026ad1efc6a90c4ba5e09cf/src/parsing/template.ml | ocaml | open! Core
type raw =
| HTML of string
| PUG of string
[@@deriving sexp, yojson]
let boundaries =
let open Angstrom in
let starts, ends = Basic.boundary_parsers "template" in
let starts =
starts >>| fun attrs ->
List.find_map attrs ~f:(function
| "lang", Some "html" -> Some `HTML
| "lan... | |
2f29efc17969605a04a924435374f320221d6f440ba97a49f66784fe4f43ffb4 | i-am-tom/learn-me-a-haskell | RunSpec.hs | # LANGUAGE CPP #
module RunSpec (main, spec) where
import Prelude ()
import Prelude.Compat
import Test.Hspec
import System.Exit
import qualified Control.Exception as E
#if __GLASGOW_HASKELL__ < 707
import System.Cmd
#else
import System.Process
#endif
import... | null | https://raw.githubusercontent.com/i-am-tom/learn-me-a-haskell/08271f6cdd4fc88c26ed7a62ed1e786a900824be/vendor/doctest-0.16.0/test/RunSpec.hs | haskell | # LANGUAGE CPP #
module RunSpec (main, spec) where
import Prelude ()
import Prelude.Compat
import Test.Hspec
import System.Exit
import qualified Control.Exception as E
#if __GLASGOW_HASKELL__ < 707
import System.Cmd
#else
import System.Process
#endif
import... | |
e05234cdba4d76e10757f1058753abc41358e1d6a25329afd68e4b0c235e6faf | johnmn3/cljs-thread | macro_impl.clj | (ns cljs-thread.macro-impl)
(defn get-symbols [body]
(let [body (if (symbol? body)
[body]
body)]
(->> body
(tree-seq coll? seq)
(rest)
(filter (complement coll?))
(filter symbol?)
vec)))
(defn get-locals [env body]
(let [body (if (symb... | null | https://raw.githubusercontent.com/johnmn3/cljs-thread/e98edc26ae71d1e17cea96a1f0e978df41b34d3f/src/cljs_thread/macro_impl.clj | clojure | (ns cljs-thread.macro-impl)
(defn get-symbols [body]
(let [body (if (symbol? body)
[body]
body)]
(->> body
(tree-seq coll? seq)
(rest)
(filter (complement coll?))
(filter symbol?)
vec)))
(defn get-locals [env body]
(let [body (if (symb... | |
e8c9e94db27b6d278ec8743c528756d696409f8a65b830ce1cdb4140c7ccfa68 | rtoy/ansi-cl-tests | set-exclusive-or.lsp | ;-*- Mode: Lisp -*-
Author :
Created : Sun Apr 20 07:45:46 2003
;;;; Contains: Tests of SET-EXCLUSIVE-OR
(in-package :cl-test)
(compile-and-load "cons-aux.lsp")
(deftest set-exclusive-or.1
(set-exclusive-or nil nil)
nil)
(deftest set-exclusive-or.2
(let ((result
(set-exclusive-or-with-... | null | https://raw.githubusercontent.com/rtoy/ansi-cl-tests/9708f3977220c46def29f43bb237e97d62033c1d/set-exclusive-or.lsp | lisp | -*- Mode: Lisp -*-
Contains: Tests of SET-EXCLUSIVE-OR
(deftest set-exclusive-or.13
(do-random-set-exclusive-ors 100 100)
nil)
Check that set-exclusive-or does not invert
the order of the arguments to the test function
Order of argument evaluation tests
Keyword tests
Error tests
Randomized test | Author :
Created : Sun Apr 20 07:45:46 2003
(in-package :cl-test)
(compile-and-load "cons-aux.lsp")
(deftest set-exclusive-or.1
(set-exclusive-or nil nil)
nil)
(deftest set-exclusive-or.2
(let ((result
(set-exclusive-or-with-check '(a b c) nil)))
(check-set-exclusive-or '(a b c) nil re... |
19c8878627b989d424182bf17b1bdc4c9e47069e5688da3c2d82dec7fe5ff32f | granule-project/granule | Reprinter.hs | {-# LANGUAGE RankNTypes #-}
{-# LANGUAGE DeriveDataTypeable #-}
module Text.Reprinter
( module Data.Functor.Identity
, module Data.Generics
, module Data.Generics.Zipper
, Position
, RefactorType(..)
, Refactorable(..)
, Reprinting
, Source
, Span
, Line(..)
, Col(..)
, advanceCol
, advanceLi... | null | https://raw.githubusercontent.com/granule-project/granule/e6d8314b0e444eafe33a689e041a15590dcc69dd/frontend/src/Text/Reprinter.hs | haskell | # LANGUAGE RankNTypes #
# LANGUAGE DeriveDataTypeable #
Import solely for re-exporting for library clients
| Text from source file
| A line within the source text
| A column within the source text
| A position in a text (imagine a cursor)
| The initial position
| Given a position, go down a line, going back to ... |
module Text.Reprinter
( module Data.Functor.Identity
, module Data.Generics
, module Data.Generics.Zipper
, Position
, RefactorType(..)
, Refactorable(..)
, Reprinting
, Source
, Span
, Line(..)
, Col(..)
, advanceCol
, advanceLine
, catchAll
, genReprinting
, initCol
, initLine
, i... |
52e5c1fe1477fd551dcae1684fa36e46de8fb0eaad34798395d09c1856f8b51f | 3b/cl-opengl | funcs-gles1.lisp | ;;; this file is automatically generated, do not edit
;;; generated from files with the following copyright:
;;;
Copyright ( c ) 2013 - 2017 The Khronos Group Inc.
;;;
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
;;; you may not use this file except in compliance with the License.
;;; You m... | null | https://raw.githubusercontent.com/3b/cl-opengl/e2d83e0977b7e7ac3f3d348d8ccc7ccd04e74d59/gl/funcs-gles1.lisp | lisp | this file is automatically generated, do not edit
generated from files with the following copyright:
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CON... | Copyright ( c ) 2013 - 2017 The Khronos Group Inc.
distributed under the License is distributed on an " AS IS " BASIS ,
(in-package #:cl-opengl-bindings)
generated 2017 - 10 - 04T20:14:06Z
from gl.xml @ git sha 2c8fa02871abd4102bd03d09d42645cce20c468f , 2017 - 10 - 03T15:09:09Z
(defglextfun ("glClipPlanef" c... |
2b90b8e6031a80825475421432031b309e7fc30f3b88087b3ef2155c1c3edac1 | Eventuria/demonstration-gsd | Event.hs | # LANGUAGE DuplicateRecordFields #
# LANGUAGE NamedFieldPuns #
# LANGUAGE DeriveGeneric #
module Eventuria.GSD.Write.Model.Events.Event where
import Eventuria.GSD.Write.Model.Core
import Eventuria.Libraries.CQRS.Write.Aggregate.Events.Event
import Eventuria.Libraries.CQRS.Write.Aggregate.Events.EventId
import qualifi... | null | https://raw.githubusercontent.com/Eventuria/demonstration-gsd/5c7692b310086bc172d3fd4e1eaf09ae51ea468f/src/Eventuria/GSD/Write/Model/Events/Event.hs | haskell | # LANGUAGE DuplicateRecordFields #
# LANGUAGE NamedFieldPuns #
# LANGUAGE DeriveGeneric #
module Eventuria.GSD.Write.Model.Events.Event where
import Eventuria.GSD.Write.Model.Core
import Eventuria.Libraries.CQRS.Write.Aggregate.Events.Event
import Eventuria.Libraries.CQRS.Write.Aggregate.Events.EventId
import qualifi... | |
92d44a5d527d74ac4f2ca79cc9239850e963d4e0ba00e177b11a61dc0ee9f9a2 | russmatney/reframe-games | views.cljs | (ns games.select.views
(:require
[re-frame.core :as rf]
[games.events :as events]
[games.tetris.views :as tetris.views]
[games.puyo.views :as puyo.views]
[games.debug.views :as debug.views]
[games.puzzle.views :as puzzle.views]
[games.views.components :as components]))
;;;;;;;;;;;;;;;;;;;;;;;;;;... | null | https://raw.githubusercontent.com/russmatney/reframe-games/ff05f6ad4794e4505b6231522af0c90c3e212631/src/games/select/views.cljs | clojure |
Data
Selections
Header
[expectations] | (ns games.select.views
(:require
[re-frame.core :as rf]
[games.events :as events]
[games.tetris.views :as tetris.views]
[games.puyo.views :as puyo.views]
[games.debug.views :as debug.views]
[games.puzzle.views :as puzzle.views]
[games.views.components :as components]))
(def selectable-games
[... |
1b949a572fc5ab53062d2ecc7132de1f118ebc7c1c6c8e6b2062f3191bdf3eb4 | bennn/dissertation | bset.rkt | #lang typed/racket
(require "base-types.rkt")
(require require-typed-check)
(require/typed/check "block.rkt"
[block-rotate-ccw (-> Posn Block Block)]
[block-rotate-cw (-> Posn Block Block)]
[block=? (-> Block Block Boolean)]
[block-move (-> Real Real Block Block)])
(require/typed/check "consts.rkt"
[board-wi... | null | https://raw.githubusercontent.com/bennn/dissertation/779bfe6f8fee19092849b7e2cfc476df33e9357b/dissertation/scrbl/jfp-2019/benchmarks/tetris/typed/bset.rkt | racket | Determine if the block is in the set of blocks.
is every element in bs1 also in bs2?
Determine if given sets of blocks are equal.
Return the set of blocks that appear in both sets.
Return the number of blocks in the set.
No duplicates, cardinality = length.
Return the set of blocks in the given row.
Are there a... | #lang typed/racket
(require "base-types.rkt")
(require require-typed-check)
(require/typed/check "block.rkt"
[block-rotate-ccw (-> Posn Block Block)]
[block-rotate-cw (-> Posn Block Block)]
[block=? (-> Block Block Boolean)]
[block-move (-> Real Real Block Block)])
(require/typed/check "consts.rkt"
[board-wi... |
30bd1400f0f5be6c854cee467b36262013ced4ce375390ab26ff19512048fc35 | blindglobe/common-lisp-stat | dataframe-matrixlike.lisp | ;;; -*- mode: lisp -*-
Time - stamp : < 2012 - 10 - 09 03:21:09 tony >
Creation : < 2009 - 03 - 12 17:14:56 tony >
;;; File: dataframe-matrixlike.lisp
Author : < >
Copyright : ( c)2009 - - , . BSD , LLGPL , or GPLv2 , depending
;;; on how it arrives.
;;; Purpose: Uses th... | null | https://raw.githubusercontent.com/blindglobe/common-lisp-stat/0c657e10a4ee7e8d4ef3737f8c2d4e62abace2d8/src/data/dataframe-matrixlike.lisp | lisp | -*- mode: lisp -*-
File: dataframe-matrixlike.lisp
on how it arrives.
Purpose: Uses the lisp-matrix dataframe instance for storage.
Useful if we only have numerical data and no missing
data, strings, or categorical stuff...
What is this talk of 'release'? Klingons d... |
Time - stamp : < 2012 - 10 - 09 03:21:09 tony >
Creation : < 2009 - 03 - 12 17:14:56 tony >
Author : < >
Copyright : ( c)2009 - - , . BSD , LLGPL , or GPLv2 , depending
version .. Think , " 21st Century Schizoid Man " .
(in-package :cls-dataframe)
example / implementatin of using li... |
8f1b3f551432d303c8a713da7ecee4d7b189cd5a96b37c32405ca08889796ec6 | rill-event-sourcing/rill | timestamp.clj | (ns rill.timestamp
(:import java.util.Date))
(defn now
[]
(Date.))
| null | https://raw.githubusercontent.com/rill-event-sourcing/rill/711d08e52bd331cdc2255199069b2d0aca69e8b0/src/rill/timestamp.clj | clojure | (ns rill.timestamp
(:import java.util.Date))
(defn now
[]
(Date.))
| |
413a1938e24f2c3c381dd0ef567126e8f6123c3894c8e02e3d029f167b50a3a1 | malcolmreynolds/GSLL | vector-swap.lisp | Regression test VECTOR - SWAP for GSLL , automatically generated
(in-package :gsl)
(LISP-UNIT:DEFINE-TEST VECTOR-SWAP
(LISP-UNIT::ASSERT-NUMERICAL-EQUAL
(LIST (LIST #(-8.93 34.12 -6.15) #(-34.5 8.24 3.29)))
(MULTIPLE-VALUE-LIST
... | null | https://raw.githubusercontent.com/malcolmreynolds/GSLL/2f722f12f1d08e1b9550a46e2a22adba8e1e52c4/tests/vector-swap.lisp | lisp | Regression test VECTOR - SWAP for GSLL , automatically generated
(in-package :gsl)
(LISP-UNIT:DEFINE-TEST VECTOR-SWAP
(LISP-UNIT::ASSERT-NUMERICAL-EQUAL
(LIST (LIST #(-8.93 34.12 -6.15) #(-34.5 8.24 3.29)))
(MULTIPLE-VALUE-LIST
... | |
11c517d2aa787026b2b6ded265f4c9a6045738cd513239af2d8dd64d0450a73d | thierry-martinez/stdcompat | float.mli | external neg : float -> float = "%negfloat"
external add : float -> float -> float = "%addfloat"
external sub : float -> float -> float = "%subfloat"
external mul : float -> float -> float = "%mulfloat"
external div : float -> float -> float = "%divfloat"
external rem : float -> float -> float = "caml_fmod_float" "fmod... | null | https://raw.githubusercontent.com/thierry-martinez/stdcompat/83d786cdb17fae0caadf5c342e283c3dcfee2279/interfaces/4.07/float.mli | ocaml | external neg : float -> float = "%negfloat"
external add : float -> float -> float = "%addfloat"
external sub : float -> float -> float = "%subfloat"
external mul : float -> float -> float = "%mulfloat"
external div : float -> float -> float = "%divfloat"
external rem : float -> float -> float = "caml_fmod_float" "fmod... | |
e1bbf4367b855c6d13102355ff29ba3d21669923b03bcb9f7223992840e2d54c | donaldsonjw/bigloo | package.scm | ;*=====================================================================*/
* serrano / prgm / project / bigloo / bglpkg / package.scm * /
;* ------------------------------------------------------------- */
* Author : * /
* Creation : ... | null | https://raw.githubusercontent.com/donaldsonjw/bigloo/a4d06e409d0004e159ce92b9908719510a18aed5/bglpkg/package.scm | scheme | *=====================================================================*/
* ------------------------------------------------------------- */
* ------------------------------------------------------------- */
* Dealing with packages */
*===========================... | * serrano / prgm / project / bigloo / bglpkg / package.scm * /
* Author : * /
* Creation : We d Jan 3 10:52:01 2007 * /
* Last change : Fri Nov 29 21:13:30 2013 ( serrano ) * /
* Copy... |
7df927c8efbc9d35cd946f7c5eff5f55ea798a0f79c13dbea4f482ff899897e9 | igorhvr/bedlam | tree.scm | " tree.scm " Implementation of COMMON LISP tree functions for Scheme
Author :
;;;
;;; This code is in the public domain.
;; Deep copy of the tree -- new one has all new pairs. (Called
tree - copy in Dybvig . )
;;@code{(require 'tree)}
;;@ftindex tree
;;
;;These are operations that treat lists a representations... | null | https://raw.githubusercontent.com/igorhvr/bedlam/b62e0d047105bb0473bdb47c58b23f6ca0f79a4e/iasylum/slib/3b2/tree.scm | scheme |
This code is in the public domain.
Deep copy of the tree -- new one has all new pairs. (Called
@code{(require 'tree)}
@ftindex tree
These are operations that treat lists a representations of trees.
Substitute occurrences of old equal? to new in tree.
and returns a modified tree. The original @3 is unchanged, but... | " tree.scm " Implementation of COMMON LISP tree functions for Scheme
Author :
tree - copy in Dybvig . )
Similar to tree walks in SICP without the internal define .
substq and substv are n't in CL . ( Names from Dybvig )
@args new old tree
@args new old tree equ ?
makes a copy of @3 , substituting @1 ... |
270bbad3a8f284ffcc987ed072779c1b868d1b3186ea4c71cf2336ba134fca80 | qkrgud55/ocamlmulti | tscanf.ml | (*************************************************************************)
(* *)
(* OCaml *)
(* *)
,... | null | https://raw.githubusercontent.com/qkrgud55/ocamlmulti/74fe84df0ce7be5ee03fb4ac0520fb3e9f4b6d1f/testsuite/tests/lib-scanf/tscanf.ml | ocaml | ***********************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 2002 Institut National de Recherche en Informatique et
under the terms of the Q Public License version 1.0 .
$ I d : tscanf.ml 12800 2012 - 07 - 30 18:59:07Z doligez $
A testbed file for the module .
A test... |
44795d538e94b774fbdb949e39bab5eeaeeae120d1efed866fe794f81d037403 | nikita-volkov/rerebase | Fix.hs | module Control.Monad.Fix
(
module Rebase.Control.Monad.Fix
)
where
import Rebase.Control.Monad.Fix
| null | https://raw.githubusercontent.com/nikita-volkov/rerebase/25895e6d8b0c515c912c509ad8dd8868780a74b6/library/Control/Monad/Fix.hs | haskell | module Control.Monad.Fix
(
module Rebase.Control.Monad.Fix
)
where
import Rebase.Control.Monad.Fix
| |
b502cab57791f9752f1ee7379d403442613d39ec6fefdb7ccbc424bd7f26300d | clash-lang/clash-compiler | T1663.hs | # LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving #
-- {-# OPTIONS_GHC -ddump-simpl #-}
module T1663 (topEntity) where
import Clash.Prelude
import Data.Maybe
import Control.Monad
import Control.Monad.RWS
newtype Component addr = Component Int
deriving newtype (Eq, Ord)
newtype FanIn a = FanIn{ getFanIn ... | null | https://raw.githubusercontent.com/clash-lang/clash-compiler/8e461a910f2f37c900705a0847a9b533bce4d2ea/tests/shouldwork/Issues/T1663.hs | haskell | {-# OPTIONS_GHC -ddump-simpl #-}
return () | # LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving #
module T1663 (topEntity) where
import Clash.Prelude
import Data.Maybe
import Control.Monad
import Control.Monad.RWS
newtype Component addr = Component Int
deriving newtype (Eq, Ord)
newtype FanIn a = FanIn{ getFanIn :: First a }
deriving newtype (S... |
8871a4e3cf2b96a36a8a653d9ff09dff0495da64cac0925875e71f914775c0db | brainsickcc/bscc | Main.hs | Copyright © 2013
-- This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation , either version 3 of the License , or
-- (at your option) any later version.
--
-- This program is distributed in th... | null | https://raw.githubusercontent.com/brainsickcc/bscc/f47a83f5c77d0ef483e957032715ac4007fcb44d/Main.hs | haskell | This program is free software: you can redistribute it and/or modify
(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 A PARTICULAR PURPOSE. See the
GNU Affero General ... | Copyright © 2013
it under the terms of the GNU Affero 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 Affero General Public License
| Contains the actual entry point of the bscc program .
module Main (mai... |
f85d9e8be4c706c140e43c79f005b21917722b5d0eb2cba5179e4df420335eaa | liquidz/misaki | _config.clj | {
;; directory setting
:public-dir "public/"
:tag-out-dir "tag/"
:template-dir ".template/"
:post-dir "posts/"
:layout-dir "layouts/"
;; posts and tags url setting
;; default value: "/"
;; ex)
;; "/" => "/YYYY-MM/POST.html"
;; "/foo" => "/foo/YYYY-MM/POST.html"
;:url-base "/"
:... | null | https://raw.githubusercontent.com/liquidz/misaki/b8104e632058e3b3da4487513d10e666e5914ec9/doc/_config.clj | clojure | directory setting
posts and tags url setting
default value: "/"
ex)
"/" => "/YYYY-MM/POST.html"
"/foo" => "/foo/YYYY-MM/POST.html"
:url-base "/"
dev server port
site language
default value: "en"
default site data
post file compile hook
tag setting
post setting
:post-filename-format "{{... | {
:public-dir "public/"
:tag-out-dir "tag/"
:template-dir ".template/"
:post-dir "posts/"
:layout-dir "layouts/"
:url-base "/misaki/"
default value : 8080
:port 8080
:lang "en"
:site {:charset "utf-8"
:site-title "misaki document"
:twitter "uochan"
:css ... |
ef6ed63368f3a655075423913cd58b3198f2eecb01e0e2eeedc5af5ddbfeac9e | arttuka/reagent-material-ui | pagination.cljs | (ns reagent-mui.material.pagination
"Imports @mui/material/Pagination as a Reagent component.
Original documentation is at -ui/api/pagination/ ."
(:require [reagent.core :as r]
["@mui/material/Pagination" :as MuiPagination]))
(def pagination (r/adapt-react-class (.-default MuiPagination)))
| null | https://raw.githubusercontent.com/arttuka/reagent-material-ui/14103a696c41c0eb67fc07fc67cd8799efd88cb9/src/core/reagent_mui/material/pagination.cljs | clojure | (ns reagent-mui.material.pagination
"Imports @mui/material/Pagination as a Reagent component.
Original documentation is at -ui/api/pagination/ ."
(:require [reagent.core :as r]
["@mui/material/Pagination" :as MuiPagination]))
(def pagination (r/adapt-react-class (.-default MuiPagination)))
| |
1bf2660ee23b7c0b6f6a86668bb5bbbb515a6af825b431cb74e63298bbf333e4 | oofp/Beseder | Flow.hs | {-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
# LANGUAGE FlexibleInstances #
# LANGUAGE GADTs #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE PolyKinds #
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
# LANGUAGE TypeApplic... | null | https://raw.githubusercontent.com/oofp/Beseder/a0f5c5e3138938b6fa18811d646535ee6df1a4f4/src/Beseder/Base/Internal/Flow.hs | haskell | # LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
# LANGUAGE RankNTypes #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeOperators #
# LANGUAGE DefaultSignatures #
do
"v_ex is '[]"
request by name on tuple
curFlow =
curFlow
curFlow =
curFlow
curFlow =
curFlow | # LANGUAGE FlexibleInstances #
# LANGUAGE GADTs #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE PolyKinds #
# LANGUAGE TypeApplications #
# LANGUAGE TypeFamilies #
# LANGUAGE UndecidableInstances #
# LANGUAGE FunctionalDependencies #
module Beseder.Base.Internal.Flo... |
0a6a735475745541d877b0e4615007a40d5b1b4235bd76d41502f303e2aabb7c | emqx/emqx | emqx_dashboard_error_code_api.erl | %%--------------------------------------------------------------------
Copyright ( c ) 2020 - 2023 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 o... | null | https://raw.githubusercontent.com/emqx/emqx/dbc10c2eed3df314586c7b9ac6292083204f1f68/apps/emqx_dashboard/src/emqx_dashboard_error_code_api.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 ) 2020 - 2023 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(emqx_dashboard_error_code_api).
-behaviour(minirest_api).
-include_lib("emqx/include/ht... |
45882a1ee1660f1f1f822283ede9147bd96411fa371c09798d068b90e395dfac | bpiel/guildsman | grad_desc_opt.clj | (ns com.billpiel.guildsman.grad-desc-opt
(:require [com.billpiel.guildsman.ops.basic :as o]
[com.billpiel.guildsman.op-node :as opn]
[com.billpiel.guildsman.macros :as mc]
[com.billpiel.guildsman.ops.gen-config :as ogc]
[com.billpiel.guildsman.scope :as sc]
... | null | https://raw.githubusercontent.com/bpiel/guildsman/59c9a7459de19525cfc54112f02127e0777a00ce/src/clj/com/billpiel/guildsman/grad_desc_opt.clj | clojure | (ns com.billpiel.guildsman.grad-desc-opt
(:require [com.billpiel.guildsman.ops.basic :as o]
[com.billpiel.guildsman.op-node :as opn]
[com.billpiel.guildsman.macros :as mc]
[com.billpiel.guildsman.ops.gen-config :as ogc]
[com.billpiel.guildsman.scope :as sc]
... | |
b1c1f49a2bf0194bb3bd8fef9dcc189b970ee851536acec4ee9278b2ac4d84ef | mirage/irmin | pack_store.ml |
* Copyright ( c ) 2018 - 2022 Tarides < >
*
* 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... | null | https://raw.githubusercontent.com/mirage/irmin/101dccffc33a72c97691dc2301ac6b844a7fbfea/src/irmin-pack/unix/pack_store.ml | ocaml | We may read fewer then [Entry_prefix.max_length] bytes when reading the
final entry in the pack file (if the data section of the entry is
shorter than [Varint.max_encoded_size]. In this case, an invalid read
may be discovered below when attempting to decode the length header.
The byt... |
* Copyright ( c ) 2018 - 2022 Tarides < >
*
* 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... |
8c9eafc043bddf3c473a292074776c5d5ce8296bc43f36ff5703c5fb9117f53c | dalaing/little-languages | Logic.hs | # LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
module STLC.Syntax.Logic where
import Data.Tagged
import Term.Component.Logic
import STLC.Type
infixr 3 .&&.
(.&&.) :: WithTmLogic Type f a => Tagged TyBool (f a) -> Tagged TyBool (f a) -> Tagged TyBool (f a)
(.&&.) x y = (Term.Component.Logic..&&.) <$> x <*> y
... | null | https://raw.githubusercontent.com/dalaing/little-languages/9f089f646a5344b8f7178700455a36a755d29b1f/code/old/prototypes/classy/src/STLC/Syntax/Logic.hs | haskell | # LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
module STLC.Syntax.Logic where
import Data.Tagged
import Term.Component.Logic
import STLC.Type
infixr 3 .&&.
(.&&.) :: WithTmLogic Type f a => Tagged TyBool (f a) -> Tagged TyBool (f a) -> Tagged TyBool (f a)
(.&&.) x y = (Term.Component.Logic..&&.) <$> x <*> y
... | |
c3dce03494a694c173076a179c412564792034162550805ab126b0ff4c689948 | thelema/ocaml-community | shell.mli | (***********************************************************************)
(* *)
MLTk , Tcl / Tk interface of OCaml
(* *)
, , and ... | null | https://raw.githubusercontent.com/thelema/ocaml-community/ed0a2424bbf13d1b33292725e089f0d7ba94b540/otherlibs/labltk/jpf/shell.mli | ocaml | *********************************************************************
described in file LICENSE found in the... | MLTk , Tcl / Tk interface of OCaml
, , and
projet Cristal , INRIA Rocquencourt
, Kyoto University RIMS
Copyright 2002 Institut National de Recherche en Informatique et
en Automatique and... |
fa2d0257f32c9299770e88339580399d0620530c541d34db1148886bbc2ee78f | sneerteam/sneer | commons.clj | (ns sneer.commons
(:import [java.lang AutoCloseable]
(java.io Closeable)
(java.util Arrays Map)
(clojure.lang PersistentQueue)))
(defprotocol Disposable
(dispose [resource]))
(extend-protocol Disposable
Closeable
(dispose [closeable]
(.close closeable))
AutoCloseable
(... | null | https://raw.githubusercontent.com/sneerteam/sneer/b093c46321a5a42ae9418df427dbb237489b7bcb/core/src/main/clojure/sneer/commons.clj | clojure | this supports functions with side-effects | (ns sneer.commons
(:import [java.lang AutoCloseable]
(java.io Closeable)
(java.util Arrays Map)
(clojure.lang PersistentQueue)))
(defprotocol Disposable
(dispose [resource]))
(extend-protocol Disposable
Closeable
(dispose [closeable]
(.close closeable))
AutoCloseable
(... |
62dbb741ab476ed547cbba21750f5c76c71fd50b5f45e5944d3c3afee590583b | REPROSEC/dolev-yao-star | Vale_AES_X64_GF128_Init.ml | open Prims
let (va_code_ShiftKey1_128 :
unit ->
(Vale_X64_Decls.ins, Vale_X64_Decls.ocmp) Vale_X64_Machine_s.precode)
=
fun uu___ ->
Vale_X64_Machine_s.Block
[Vale_X64_InsVector.va_code_Mov128 Prims.int_one (Prims.of_int (3));
Vale_AES_X64_GF128_Mul.va_code_ShiftLeft128_1 ();
Vale_AES_X6... | null | https://raw.githubusercontent.com/REPROSEC/dolev-yao-star/d97a8dd4d07f2322437f186e4db6a1f4d5ee9230/concrete/hacl-star-snapshot/ml/Vale_AES_X64_GF128_Init.ml | ocaml | open Prims
let (va_code_ShiftKey1_128 :
unit ->
(Vale_X64_Decls.ins, Vale_X64_Decls.ocmp) Vale_X64_Machine_s.precode)
=
fun uu___ ->
Vale_X64_Machine_s.Block
[Vale_X64_InsVector.va_code_Mov128 Prims.int_one (Prims.of_int (3));
Vale_AES_X64_GF128_Mul.va_code_ShiftLeft128_1 ();
Vale_AES_X6... | |
0eb1dd6f26f553d8ce42ee504bce744631b7c7f1e72a2ac6a3b65ef8dd8ba060 | mbj/stratosphere | ClientAuthenticationProperty.hs | module Stratosphere.MSK.ServerlessCluster.ClientAuthenticationProperty (
module Exports, ClientAuthenticationProperty(..),
mkClientAuthenticationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} St... | null | https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/msk/gen/Stratosphere/MSK/ServerlessCluster/ClientAuthenticationProperty.hs | haskell | # SOURCE # | module Stratosphere.MSK.ServerlessCluster.ClientAuthenticationProperty (
module Exports, ClientAuthenticationProperty(..),
mkClientAuthenticationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.Reso... |
d5230c59b2ac8e9fa46e3f8c8b4d527414f074220d2ca82e81e618da9b3656b1 | vlstill/hsExprTest | Utils.hs | # LANGUAGE TemplateHaskell , Unsafe #
| Miscellaneous utilities for Template Haskell and other .
--
( c ) 2018
module Test.Expr.Utils ( -- * Template Haskell Utilities
apply, apply', dbg_, showQ, showQ'
* Other Utilities
, pfail, spliceModule, spliceFileLoc
... | null | https://raw.githubusercontent.com/vlstill/hsExprTest/0c7754979cf837d48f5740674639e2decb96e547/testlib/Test/Expr/Utils.hs | haskell |
* Template Haskell Utilities
| Create a function application expression calling given function with given arguments.
| Like 'apply', but function is given as an expression.
| Show string representation of template haskell expression, such as AST:
@$(showQ [| \x -> x |])@
This is useful to see how the code is re... | # LANGUAGE TemplateHaskell , Unsafe #
| Miscellaneous utilities for Template Haskell and other .
( c ) 2018
apply, apply', dbg_, showQ, showQ'
* Other Utilities
, pfail, spliceModule, spliceFileLoc
) where
import Control.Monad.Fail ( fai... |
aa1caf3597647cb75bb33d09dbf4f0c8f03fe0aa66ca26031e23a50306063038 | bytekid/mkbtt | prime.ml | Copyright 2010
* GNU Lesser General Public License
*
* This file is part of MKBtt .
*
* is free software : you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the
* Free Software Foundation , either version 3 of the License , or (... | null | https://raw.githubusercontent.com/bytekid/mkbtt/c2f8e0615389b52eabd12655fe48237aa0fe83fd/src/mascott/src/prime.ml | ocaml | ** SUBMODULES *********************************************************
** FUNCTIONS **********************************************************
filters processes out of process set for which this cp is redundant.
rl1 is already instantiated. | Copyright 2010
* GNU Lesser General Public License
*
* This file is part of MKBtt .
*
* is free software : you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the
* Free Software Foundation , either version 3 of the License , or (... |
796e075fb9de85c31b12cc9b93dd87c67e2ca8acc7ba584b5568d2d88bf96e6f | naqsha/naqsha | GeoHash.hs |
-- |
--
Module : Naqsha . Geometry .
Description : Implementation of the standard
Copyright : ( c ) , 2017 , 2019
-- License : Apache-2.0 OR BSD-3-Clause
-- Maintainer : Piyush P Kurur <>
-- Stability : experimental
--
-- This module implements the geohash encoding of geo-locations.
-- . To ... | null | https://raw.githubusercontent.com/naqsha/naqsha/c7215a484cdb394c317fb61a93824e5ba3c9fb60/geospatial/Naqsha/Geometry/GeoHash.hs | haskell | |
License : Apache-2.0 OR BSD-3-Clause
Maintainer : Piyush P Kurur <>
Stability : experimental
This module implements the geohash encoding of geo-locations.
. To try out geohash encoding
on web visit
| Precision of encoding measured in base32 digits.
| Precision of encoding measured in bits.
| The l... |
Module : Naqsha . Geometry .
Description : Implementation of the standard
Copyright : ( c ) , 2017 , 2019
module Naqsha.Geometry.GeoHash
( GeoHash, encode, decode, accuracy, toByteString
) where
import Naqsha.Prelude
import qualified Data.ByteString as B
import ... |
f7eb4fd538bbdb9b2cc3ac7adcbc40176f46189177be68fd82b31aedbba06647 | SparkFund/sails-forth | query.clj | (ns sails-forth.query
"Provides for executing queries using more idiomatic clojure forms"
(:require [clojure.spec.alpha :as s]
[clojure.string :as string]
[sails-forth.client :as sf]
[sails-forth.clojurify :as sc]
[sails-forth.spec :as spec]))
(defprotocol SoqlValue
... | null | https://raw.githubusercontent.com/SparkFund/sails-forth/acc97f01d5d1bf21ee7139eee9360d363515d737/src/sails_forth/query.clj | clojure | use tuple over cat so `exercise` will generate vectors.
TODO :fn specify structure of maps from query find | (ns sails-forth.query
"Provides for executing queries using more idiomatic clojure forms"
(:require [clojure.spec.alpha :as s]
[clojure.string :as string]
[sails-forth.client :as sf]
[sails-forth.clojurify :as sc]
[sails-forth.spec :as spec]))
(defprotocol SoqlValue
... |
61aa726dc2919dc2081e989287ef963e053e61587a697f12c4d750ec7904f04c | NorfairKing/cursor | Map.hs | {-# LANGUAGE RankNTypes #-}
# LANGUAGE TypeFamilies #
module Cursor.Simple.Map
( MapCursor,
MC.mapCursorList,
makeMapCursor,
makeMapCursorWithSelection,
MC.singletonMapCursorKey,
MC.singletonMapCursorValue,
rebuildMapCursor,
mapMapCursor,
MC.mapCursorNonEmptyCursorL,
MC.mapCursorE... | null | https://raw.githubusercontent.com/NorfairKing/cursor/71ec3154809e229efbf35d500ac6d1a42ae5fdc0/cursor/src/Cursor/Simple/Map.hs | haskell | # LANGUAGE RankNTypes # | # LANGUAGE TypeFamilies #
module Cursor.Simple.Map
( MapCursor,
MC.mapCursorList,
makeMapCursor,
makeMapCursorWithSelection,
MC.singletonMapCursorKey,
MC.singletonMapCursorValue,
rebuildMapCursor,
mapMapCursor,
MC.mapCursorNonEmptyCursorL,
MC.mapCursorElemL,
mapCursorSelectKey... |
fdd927ab69f7eb041049e3f528bb2af89314ef2d350025240ebb32dd8bcebe40 | MyDataFlow/ttalk-server | mongoose_api_xml.erl | %%==============================================================================
Copyright 2014 Erlang Solutions Ltd.
%%
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
%%
... | null | https://raw.githubusercontent.com/MyDataFlow/ttalk-server/07a60d5d74cd86aedd1f19c922d9d3abf2ebf28d/apps/ejabberd/src/mongoose_api_xml.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 ex... | Copyright 2014 Erlang Solutions Ltd.
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(mongoose_api_xml).
-behaviour(mongoose_api_format).
-export([serialize/1, deserialize/1]).
-include("ejabberd.hrl").
-include_l... |
8596ea055f1671577bbf3b7c58b731e714dc1f419b520cc369e9376194e7ef56 | TheLortex/mirage-monorepo | whole_file_extension_point.ml | open Ppxlib
let () =
Driver.V2.(
register_transformation
~impl:(fun ctxt str ->
let loc =
match str with
| [] -> Location.in_file (Expansion_context.Base.input_name ctxt)
| hd :: _ -> hd.pstr_loc
in
let extension_node =
Location.error_extensio... | null | https://raw.githubusercontent.com/TheLortex/mirage-monorepo/b557005dfe5a51fc50f0597d82c450291cfe8a2a/duniverse/ppxlib/test/driver/exception_handling/whole_file_extension_point.ml | ocaml | open Ppxlib
let () =
Driver.V2.(
register_transformation
~impl:(fun ctxt str ->
let loc =
match str with
| [] -> Location.in_file (Expansion_context.Base.input_name ctxt)
| hd :: _ -> hd.pstr_loc
in
let extension_node =
Location.error_extensio... | |
266abe5b0440d1f865b8d575f7ae99f3ddae19cab60642c6a0c6f488c96e44b6 | mejgun/haskell-tdlib | InviteGroupCallParticipants.hs | {-# LANGUAGE OverloadedStrings #-}
-- |
module TD.Query.InviteGroupCallParticipants where
import qualified Data.Aeson as A
import qualified Data.Aeson.Types as T
import qualified Utils as U
-- |
-- Invites users to an active group call. Sends a service message of type messageInviteToGroupCall for video chats
data In... | null | https://raw.githubusercontent.com/mejgun/haskell-tdlib/dc380d18d49eaadc386a81dc98af2ce00f8797c2/src/TD/Query/InviteGroupCallParticipants.hs | haskell | # LANGUAGE OverloadedStrings #
|
|
Invites users to an active group call. Sends a service message of type messageInviteToGroupCall for video chats
| Group call identifier |
module TD.Query.InviteGroupCallParticipants where
import qualified Data.Aeson as A
import qualified Data.Aeson.Types as T
import qualified Utils as U
data InviteGroupCallParticipants = InviteGroupCallParticipants
| User identifiers . At most 10 users can be invited simultaneously
user_ids :: Maybe [Int],
g... |
574c408ce4377a0de4babf9f6ef506978f95f5b08340809e8fefb7e9c8704272 | sgbj/MaximaSharp | tex2ooo.lisp | Modifications of tex properties and formatting functions to yield output suitable for OpenOffice formula writer .
Modifications to src / mactex.lisp made by ,
extracted into this file by .
; Lines beginning with ";-" are lines which have been modified.
In addition , all of the here have been modified .
; ... | null | https://raw.githubusercontent.com/sgbj/MaximaSharp/75067d7e045b9ed50883b5eb09803b4c8f391059/Test/bin/Debug/Maxima-5.30.0/share/maxima/5.30.0/share/contrib/tex2ooo.lisp | lisp | Lines beginning with ";-" are lines which have been modified.
Usage:
load (tex2ooo);
tex (expr);
mexplabel, and optional filename
$gcprint = nil turns gc messages off
collect the file-name, if any, and open a port if needed
t= output to terminal
leave it if it is a label
flush it otherwise
maybe it is a fu... | Modifications of tex properties and formatting functions to yield output suitable for OpenOffice formula writer .
Modifications to src / mactex.lisp made by ,
extracted into this file by .
In addition , all of the here have been modified .
(declare-top
(special lop rop ccol $gcprint texport $labels $in... |
25b0b53841623435d9c846d10970f3a11147903390ccf5d678be127b13260555 | CSCfi/rems | oidc.clj | (ns rems.auth.oidc
(:require [clj-http.client :as http]
[clojure.string :as str]
[clojure.test :refer :all]
[clojure.tools.logging :as log]
[compojure.core :refer [GET defroutes]]
[medley.core :refer [find-first]]
[rems.config :refer [env oidc-co... | null | https://raw.githubusercontent.com/CSCfi/rems/414f130052d4d7bfa12b56eb260d929901c3c84a/src/clj/rems/auth/oidc.clj | clojure | FIXME We could use the state for intelligent redirect. Also check if we need it for CSRF protection as Auth0 docs say.
should be at most one by kv search
TODO all attributes could support :rename
XXX: consider joining with rems.db.users/invalid-user?
userid already checked
NOTE Some IdPs don't support client id a... | (ns rems.auth.oidc
(:require [clj-http.client :as http]
[clojure.string :as str]
[clojure.test :refer :all]
[clojure.tools.logging :as log]
[compojure.core :refer [GET defroutes]]
[medley.core :refer [find-first]]
[rems.config :refer [env oidc-co... |
7cdcd64ffa95abc3137e58db37964c9bfe79317287e4b803b741813f0d0f9626 | shiguredo/swidden | spam_admin_handler.erl | -module(spam_admin_handler).
-export([get_metrics/1]).
get_metrics(#{<<"reset">> := _Reset}) ->
swidden:success([{counter, 10}]).
| null | https://raw.githubusercontent.com/shiguredo/swidden/49b9f70a2e17034e57d2088cc4a31e68c21fdb5b/test/spam_admin_handler.erl | erlang | -module(spam_admin_handler).
-export([get_metrics/1]).
get_metrics(#{<<"reset">> := _Reset}) ->
swidden:success([{counter, 10}]).
| |
9a3a79751a2c03c4b2bde2efdd0d8d17c6572defe528756e80500cadfb49ce97 | mzp/min-caml | asm.mli | type id_or_imm = V of Id.t | C of int
type t =
| Ans of exp
| Let of (Id.t * Type.t) * exp * t
and exp =
| Nop
| Li of int
| FLi of Id.l
| SetL of Id.l
| Mr of Id.t
| Neg of Id.t
| Add of Id.t * id_or_imm
| Sub of Id.t * id_or_imm
| Slw of Id.t * id_or_imm
| Lwz of Id.t * id_or_imm
| Stw of ... | null | https://raw.githubusercontent.com/mzp/min-caml/cf1180792a2a0bc895ba17a0052e3b6f4a74e444/arch/PowerPC/asm.mli | ocaml | virtual instructions
for simm
closure address, integer arguments, and float arguments
レジスタ変数の値をスタック変数へ保存
スタック変数から値を復元
shorthand of Let for float
shorthand of Let for unit | type id_or_imm = V of Id.t | C of int
type t =
| Ans of exp
| Let of (Id.t * Type.t) * exp * t
and exp =
| Nop
| Li of int
| FLi of Id.l
| SetL of Id.l
| Mr of Id.t
| Neg of Id.t
| Add of Id.t * id_or_imm
| Sub of Id.t * id_or_imm
| Slw of Id.t * id_or_imm
| Lwz of Id.t * id_or_imm
| Stw of ... |
a18c2e1ec5b6518d7c4622a9555cda05f016b69d6911b1b5e43f176027bcd54a | ermine/sulci | markov_util.ml | open Sqlite_util
open Sqlite
let db =
let dbf = Sqlite.db_open "./markov.db" in
if not (result_bool dbf
"SELECT name FROM SQLITE_MASTER WHERE type='table' AND name='words'")
then
(try exec dbf
"CREATE TABLE words (word1 varchar(256), word2 varchar(256), counter int);"
with Sqlite_error s -> ... | null | https://raw.githubusercontent.com/ermine/sulci/3ee4bd609b01e2093a6d37bf74579728d0a93b70/src/markov_util.ml | ocaml | open Sqlite_util
open Sqlite
let db =
let dbf = Sqlite.db_open "./markov.db" in
if not (result_bool dbf
"SELECT name FROM SQLITE_MASTER WHERE type='table' AND name='words'")
then
(try exec dbf
"CREATE TABLE words (word1 varchar(256), word2 varchar(256), counter int);"
with Sqlite_error s -> ... | |
b3e53008bc8023f9e7febbe6b8e2f8ad554652ad2a43fcffab0bfcafcb0209fc | dyzsr/ocaml-selectml | dummy.ml | (* TEST
* expect
*)
class virtual child1 parent =
object
method private parent = parent
end
and virtual child2 =
object(_ : 'self)
constraint 'parent = < previous: 'self option; .. >
method private virtual parent: 'parent
end
[%%expect{|
class virtual child1 : 'a -> object method private paren... | null | https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/testsuite/tests/typing-objects/dummy.ml | ocaml | TEST
* expect
Whether we have [class foo1] or [let foo1] doesn't change a thing. |
class virtual child1 parent =
object
method private parent = parent
end
and virtual child2 =
object(_ : 'self)
constraint 'parent = < previous: 'self option; .. >
method private virtual parent: 'parent
end
[%%expect{|
class virtual child1 : 'a -> object method private parent : 'a end
and virtual ... |
705304e1ee3394807dbbddad9a53c651365dfbc1985aa7e920cf0e21df83f675 | uw-unsat/leanette-popl22-artifact | axioms.rkt | #lang rosette
(require "../../ocelot/ocelot.rkt" "../../litmus/litmus.rkt" "model.rkt")
(provide (all-defined-out))
;; functions -------------------------------------------------------------------
(define (fr rf ws)
(+ (join (~ rf) ws) (& (-> (- Reads (join Writes rf)) Writes) (join loc (~ loc)))))
(define (com ... | null | https://raw.githubusercontent.com/uw-unsat/leanette-popl22-artifact/80fea2519e61b45a283fbf7903acdf6d5528dbe7/rosette-benchmarks-4/memsynth/frameworks/alglave/axioms.rkt | racket | functions -------------------------------------------------------------------
constraints -----------------------------------------------------------------
all disj a,b : Writes & (loc.~loc) | ... | #lang rosette
(require "../../ocelot/ocelot.rkt" "../../litmus/litmus.rkt" "model.rkt")
(provide (all-defined-out))
(define (fr rf ws)
(+ (join (~ rf) ws) (& (-> (- Reads (join Writes rf)) Writes) (join loc (~ loc)))))
(define (com rf ws)
(+ rf ws (fr rf ws)))
(define (po_loc)
(& po (join loc (~ loc))))
(d... |
d78b9a2dfc5e64cc3177ccb315f5c512403d4680c17013d99e8dad506b012954 | elbrujohalcon/hPage | FreeTextWindow.hs | # LANGUAGE GeneralizedNewtypeDeriving ,
MultiParamTypeClasses ,
FlexibleInstances ,
FlexibleContexts ,
FunctionalDependencies ,
UndecidableInstances ,
ScopedTypeVariables #
MultiParamTypeClasses,
Flexible... | null | https://raw.githubusercontent.com/elbrujohalcon/hPage/401a039332c7b120f76cbcbd5b33f5dca3d8c369/src/HPage/GUI/FreeTextWindow.hs | haskell | Server context
Text page...
txtCode <- styledTextCtrl win []
Document Selector
Modules Lists
Results panel
Status bar...
Timers ...
Search ...
Helper processes
Timers
Events
Menu bar...
Tool bar...
Layout settings
HACK: We need to keep a timer ticking just to refresh the screen when the user is doing no... | # LANGUAGE GeneralizedNewtypeDeriving ,
MultiParamTypeClasses ,
FlexibleInstances ,
FlexibleContexts ,
FunctionalDependencies ,
UndecidableInstances ,
ScopedTypeVariables #
MultiParamTypeClasses,
Flexible... |
603f240f4f0e02973349ec85db6d3ea38bb6b68925fa46c573d66ad6b88c3646 | racket/games | classes.rkt | #lang racket/base
(require racket/class
(prefix-in mred: racket/gui)
(prefix-in util: "utils.rkt")
"constants.rkt"
"make-cards.rkt"
"region.rkt"
string-constants
"../show-help.rkt"
"../show-scribbling.rkt")
(provide pasteboard%
table%)
... | null | https://raw.githubusercontent.com/racket/games/e57376f067be51257ed12cdf3e4509a00ffd533d/cards/classes.rkt | racket | Since we use size-in-pixels, the letters
the descender), but the space above the letter
center on 12 , splitting
the difference for the descender
Outside the current edit sequence
in case overlap changed
Move/drag event has different mouse button,
and there was no mouse up. Don't accept the
click, yet.
Clic... | #lang racket/base
(require racket/class
(prefix-in mred: racket/gui)
(prefix-in util: "utils.rkt")
"constants.rkt"
"make-cards.rkt"
"region.rkt"
string-constants
"../show-help.rkt"
"../show-scribbling.rkt")
(provide pasteboard%
table%)
... |
29c4dfeb02c450ca5e8e7f3e8c6a16a4e5e5612924212bb72b90901c61a1b6ff | reflex-frp/reflex-gadt-api | WebSocket.hs | # LANGUAGE DeriveGeneric #
# LANGUAGE FlexibleContexts #
# LANGUAGE LambdaCase #
# LANGUAGE QuantifiedConstraints #
{-# LANGUAGE RankNTypes #-}
# LANGUAGE RecursiveDo #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
# LANGUAGE TypeFamilies #
# LANGUAGE UndecidableInstances #
module Reflex.Dom.GadtApi.We... | null | https://raw.githubusercontent.com/reflex-frp/reflex-gadt-api/2604e97ea9a11033a3e272fb331e5824a0b838b0/src/Reflex/Dom/GadtApi/WebSocket.hs | haskell | # LANGUAGE RankNTypes #
| A request tagged with an identifier
and issues that output as API requests over the socket. The result of this
function can be fed back into the requester as responses. For example:
@
responses <- performWebSocketRequests myEndpoint requests
@
| Constructs a response for a given r... | # LANGUAGE DeriveGeneric #
# LANGUAGE FlexibleContexts #
# LANGUAGE LambdaCase #
# LANGUAGE QuantifiedConstraints #
# LANGUAGE RecursiveDo #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
# LANGUAGE TypeFamilies #
# LANGUAGE UndecidableInstances #
module Reflex.Dom.GadtApi.WebSocket
( performWebSocket... |
ea72843d5787fd8c4ecab39526dff15229238959d9cc34c2efc71801d1c627d3 | rtoy/ansi-cl-tests | rename-file.lsp | ;-*- Mode: Lisp -*-
Author :
Created : Thu Jan 8 06:22:53 2004
;;;; Contains: Tests for RENAME-FILE
(in-package :cl-test)
(deftest rename-file.1
(let ((pn1 #p"file-to-be-renamed.txt")
(pn2 #p"file-that-was-renamed.txt"))
(delete-all-versions pn1)
(delete-all-versions pn2)
(with-... | null | https://raw.githubusercontent.com/rtoy/ansi-cl-tests/9708f3977220c46def29f43bb237e97d62033c1d/rename-file.lsp | lisp | -*- Mode: Lisp -*-
Contains: Tests for RENAME-FILE
Error tests | Author :
Created : Thu Jan 8 06:22:53 2004
(in-package :cl-test)
(deftest rename-file.1
(let ((pn1 #p"file-to-be-renamed.txt")
(pn2 #p"file-that-was-renamed.txt"))
(delete-all-versions pn1)
(delete-all-versions pn2)
(with-open-file (s pn1 :direction :output) (format s "Whatever~%"))... |
cea04a47f15a134bfeedb16f8beb51c229baab9b013c4d2d82578f6f38f25cae | sjl/typkov | core.clj | (ns typkov.views.core
(:require [typkov.templates :as t])
(:require [noir.validation :as valid])
(:require [clojure.string :as string])
(:use [noir.core :only [render defpage]]))
; Utils -----------------------------------------------------------------------
(defn random-choice [coll]
(nth coll (rand-int (c... | null | https://raw.githubusercontent.com/sjl/typkov/22cd0296fcb7b8980e161a1402e6958af18464e5/src/typkov/views/core.clj | clojure | Utils -----------------------------------------------------------------------
Gtypist ---------------------------------------------------------------------
Markov ----------------------------------------------------------------------
Lesson generation ----------------------------------------------------------- | (ns typkov.views.core
(:require [typkov.templates :as t])
(:require [noir.validation :as valid])
(:require [clojure.string :as string])
(:use [noir.core :only [render defpage]]))
(defn random-choice [coll]
(nth coll (rand-int (count coll))))
(defn random-choice-weighted [choices]
(let [n (apply + (vals c... |
189d911d982698d43052423f5cdd26bd714a40f18c7c5cb31adf8f2904c7df4c | NorfairKing/smos | SorterSpec.hs | {-# LANGUAGE OverloadedStrings #-}
# LANGUAGE TypeApplications #
module Smos.Report.SorterSpec
( spec,
)
where
import Control.Monad
import Cursor.Forest.Gen ()
import Data.Text (Text)
import qualified Data.Text as T
import Path
import Smos.Report.Sorter
import Smos.Report.Sorter.Gen ()
import Test.Syd
import Test... | null | https://raw.githubusercontent.com/NorfairKing/smos/3b7021c22915ae16ae721c7da60d715e24f4e6bb/smos-report-gen/test/Smos/Report/SorterSpec.hs | haskell | # LANGUAGE OverloadedStrings # | # LANGUAGE TypeApplications #
module Smos.Report.SorterSpec
( spec,
)
where
import Control.Monad
import Cursor.Forest.Gen ()
import Data.Text (Text)
import qualified Data.Text as T
import Path
import Smos.Report.Sorter
import Smos.Report.Sorter.Gen ()
import Test.Syd
import Test.Syd.Validity
import Test.Syd.Valid... |
c8d0c1b3a69f1b295a56351d022b9569793401fa8d0083a51a9c55fcba164718 | killme2008/erlwsh | erlwsh_deps.erl | @author author < >
YYYY author .
%% @doc Ensure that the relatively-installed dependencies are on the code
%% loading path, and locate resources relative
%% to this application's path.
-module(erlwsh_deps).
-author('author <>').
-export([ensure/0, ensure/1]).
-export([get_base_dir/0, get_base_dir/1])... | null | https://raw.githubusercontent.com/killme2008/erlwsh/ac1309d871e20666bc2d27c48af5f67e36203882/src/erlwsh_deps.erl | erlang | @doc Ensure that the relatively-installed dependencies are on the code
loading path, and locate resources relative
to this application's path.
@doc List of project dependencies on the path.
@doc Find new siblings paths relative to Module that aren't already on the
code path.
@doc Ensure that all e... | @author author < >
YYYY author .
-module(erlwsh_deps).
-author('author <>').
-export([ensure/0, ensure/1]).
-export([get_base_dir/0, get_base_dir/1]).
-export([local_path/1, local_path/2]).
-export([deps_on_path/0, new_siblings/1]).
( ) - > [ ProjNameAndVers ]
deps_on_path() ->
F = fun (X, Acc) ->
... |
064264d6c82c9b035e5f2128eda25ded209f678e19bc1ba16bd0618cabef7387 | ucsd-progsys/dsolve | terminfo.ml | (***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
, projet ... | null | https://raw.githubusercontent.com/ucsd-progsys/dsolve/bfbbb8ed9bbf352d74561e9f9127ab07b7882c0c/utils/terminfo.ml | ocaml | *********************************************************************
Objective Caml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
en Automatique . All rights reserved . This file is distributed
under the terms of the Q Public License version 1.0 .
$ I d : terminfo.ml , v 1.6 2004/01/0... |
f8f0e87ab2daafc99cf017647830bbd1b22fdf6ec869be9881d4f39aa21a81c3 | haskell/haskell-language-server | DestructAllProvider.hs | we need to name the args ourselves first
nothingToDestruct :: [a] -> [a] -> [a]
nothingToDestruct = _
-- can't destruct all for non-top-level holes
notTop :: Bool -> Bool -> Bool
notTop a b = a && _
-- destruct all is ok
canDestructAll :: Bool -> Bool -> Bool
canDestructAll a b = _
| null | https://raw.githubusercontent.com/haskell/haskell-language-server/f3ad27ba1634871b2240b8cd7de9f31b91a2e502/plugins/hls-tactics-plugin/new/test/golden/DestructAllProvider.hs | haskell | can't destruct all for non-top-level holes
destruct all is ok | we need to name the args ourselves first
nothingToDestruct :: [a] -> [a] -> [a]
nothingToDestruct = _
notTop :: Bool -> Bool -> Bool
notTop a b = a && _
canDestructAll :: Bool -> Bool -> Bool
canDestructAll a b = _
|
2c2b5f7befb63b6d199fc74f309868764af2627744f9b00dedd6d8c014c7edcc | Trundle/idris-go | Setup.hs | import qualified Distribution.Simple.Program as P
import qualified Distribution.Simple.Setup as S
import Distribution.Simple
make verbosity = P.runProgramInvocation verbosity . P.simpleProgramInvocation "make"
buildGoLibs _ flags _ _ = do
let verbosity = S.fromFlag $ S.buildVerbosity flags
put... | null | https://raw.githubusercontent.com/Trundle/idris-go/9510b7b41b7fec03ca8d71f7f6b160e259da829c/Setup.hs | haskell | import qualified Distribution.Simple.Program as P
import qualified Distribution.Simple.Setup as S
import Distribution.Simple
make verbosity = P.runProgramInvocation verbosity . P.simpleProgramInvocation "make"
buildGoLibs _ flags _ _ = do
let verbosity = S.fromFlag $ S.buildVerbosity flags
put... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.