_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
43a4d5c88ef49cb40110247b6e5471eefeaf142dba9dfeb5eb2f1a5bd5e0aa36
ethereum/act
Syntax.hs
{-# LANGUAGE GADTs #-} # LANGUAGE PatternSynonyms # # LANGUAGE TypeApplications # {-| Module : Syntax Description : Functions for manipulating and collapsing all our different ASTs. -} module Syntax where import Prelude hiding (LT, GT) import Data.List import Data.Map (Map,empty,insertWith,unionsWith) import Da...
null
https://raw.githubusercontent.com/ethereum/act/36b65b71eea22ebe4287f066190ecf47f4394fa3/src/Syntax.hs
haskell
# LANGUAGE GADTs # | Module : Syntax Description : Functions for manipulating and collapsing all our different ASTs. --------------------------------------- * Extract from fully refined ASTs * -- --------------------------------------- | Invariant predicates can always be expressed as a single expression. -----...
# LANGUAGE PatternSynonyms # # LANGUAGE TypeApplications # module Syntax where import Prelude hiding (LT, GT) import Data.List import Data.Map (Map,empty,insertWith,unionsWith) import Data.Singletons import Syntax.TimeAgnostic as Agnostic import qualified Syntax.Annotated as Annotated import Syntax.Untype...
83b1fab2c0980bc7a3cd44ec7e006930d24d9431b238a145d6e2e1db19595249
cardmagic/lucash
arch.scm
; -*- Mode: Scheme; Syntax: Scheme; Package: Scheme; -*- Copyright ( c ) 1993 - 1999 by and . See file COPYING . ; This is file arch.scm. ;;;; Architecture description (define architecture-version "Vanilla 20") ; Things that the VM and the runtime system both need to know. (define bits-used-per-byte 8) (def...
null
https://raw.githubusercontent.com/cardmagic/lucash/0452d410430d12140c14948f7f583624f819cdad/reference/scsh-0.6.6/scheme/vm/arch.scm
scheme
-*- Mode: Scheme; Syntax: Scheme; Package: Scheme; -*- This is file arch.scm. Architecture description Things that the VM and the runtime system both need to know. Bytecodes: for compiler and interpreter Instruction specification is (op . args) OP may be a name or a list of names ARGS are byte - a byte...
Copyright ( c ) 1993 - 1999 by and . See file COPYING . (define architecture-version "Vanilla 20") (define bits-used-per-byte 8) (define byte-limit (expt 2 bits-used-per-byte)) - a byte two instructions into a single , shorter one ) two - bytes - two bytes index - a two by...
aafee23904aaaf3f6651c9329290676ebfeb1da60ba4a830913a809cce79cb46
nathanmarz/cascalog
predmacro.clj
(ns cascalog.logic.predmacro "This namespace contains functions that help to define predicate macro instances, and compile predicate macro instances out into sequences of RawPredicate instances." (:require [clojure.set :refer (intersection)] [clojure.walk :refer (postwalk)] [cascalog.l...
null
https://raw.githubusercontent.com/nathanmarz/cascalog/deaad977aa98985f68f3d1cc3e081d345184c0c8/cascalog-core/src/clj/cascalog/logic/predmacro.clj
clojure
"expand" is called from "normalize" in cascalog.parse. The parsing code takes care of the recursive expansion needed on the results of a call to "expand". Predicate macro templates really should just extend this protocol directly. getCompiledPredMacro calls into build-predmacro below were the case, we wouldn't ...
(ns cascalog.logic.predmacro "This namespace contains functions that help to define predicate macro instances, and compile predicate macro instances out into sequences of RawPredicate instances." (:require [clojure.set :refer (intersection)] [clojure.walk :refer (postwalk)] [cascalog.l...
9b7f417d5c33c4699ec494fbe65adc271559ef2c194aa5bbcf41a87edeb9b1f1
RedPRL/algaeff
Fun.ml
module Deep = struct let finally k f = match f () with | x -> Effect.Deep.continue k x | exception e -> Effect.Deep.discontinue k e end module Shallow = struct let finally_with k f h = match f () with | x -> Effect.Shallow.continue_with k x h | exception e -> Effect.Shallow.discontinue_with...
null
https://raw.githubusercontent.com/RedPRL/algaeff/6867d391f2aafb5129bd8e792de5a8f7bad14a76/src/Fun.ml
ocaml
module Deep = struct let finally k f = match f () with | x -> Effect.Deep.continue k x | exception e -> Effect.Deep.discontinue k e end module Shallow = struct let finally_with k f h = match f () with | x -> Effect.Shallow.continue_with k x h | exception e -> Effect.Shallow.discontinue_with...
4a95cc6535f0865ec3445127c448104a68b58f06688e777213e8786a3abcbe2a
dgtized/shimmers
imperfect_curves.cljs
(ns shimmers.sketches.imperfect-curves (:require [shimmers.common.svg :as csvg] [shimmers.common.ui.controls :as ctrl] [shimmers.math.deterministic-random :as dr] [shimmers.sketch :as sketch :include-macros true] [shimmers.view.sketch :as view-sketch] [thi.ng.geom.line :as gl] [thi.ng.geom.vector...
null
https://raw.githubusercontent.com/dgtized/shimmers/f096c20d7ebcb9796c7830efcd7e3f24767a46db/src/shimmers/sketches/imperfect_curves.cljs
clojure
(ns shimmers.sketches.imperfect-curves (:require [shimmers.common.svg :as csvg] [shimmers.common.ui.controls :as ctrl] [shimmers.math.deterministic-random :as dr] [shimmers.sketch :as sketch :include-macros true] [shimmers.view.sketch :as view-sketch] [thi.ng.geom.line :as gl] [thi.ng.geom.vector...
13b9dfbdc207614e8326c2e0d10a16341eb309a148413ede220c8b4e4ddf7290
mrkkrp/megaparsec
PosSpec.hs
module Text.Megaparsec.PosSpec (spec) where import Control.Exception (evaluate) import Data.Function (on) import Data.List (isInfixOf) import Test.Hspec import Test.Hspec.Megaparsec.AdHoc () import Test.QuickCheck import Text.Megaparsec.Pos spec :: Spec spec = do describe "mkPos" $ do context "when the argument...
null
https://raw.githubusercontent.com/mrkkrp/megaparsec/7d6b82642d6c42f449d445b368f4286da16136e0/megaparsec-tests/tests/Text/Megaparsec/PosSpec.hs
haskell
module Text.Megaparsec.PosSpec (spec) where import Control.Exception (evaluate) import Data.Function (on) import Data.List (isInfixOf) import Test.Hspec import Test.Hspec.Megaparsec.AdHoc () import Test.QuickCheck import Text.Megaparsec.Pos spec :: Spec spec = do describe "mkPos" $ do context "when the argument...
43c04ca2f93fc5bb55358c5a6aafe01f1e5e282f6739b1b27bae208c3a2832e5
kelamg/HtDP2e-workthrough
ex242.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-intermediate-reader.ss" "lang")((modname ex242) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal...
null
https://raw.githubusercontent.com/kelamg/HtDP2e-workthrough/ec05818d8b667a3c119bea8d1d22e31e72e0a958/HtDP/Abstraction/ex242.rkt
racket
about the language level of this file in a form that our tools can easily process. – #false – X [Maybe String] is either #false or a string [Maybe [List-of-string]] is either #false or a list of strings [List-of [Maybe String]] is a list of either #false or a string String [List-of String] -> [Maybe [List-of St...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-reader.ss" "lang")((modname ex242) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) A [ Maybe X ] is one of : returns the remainder of lo...
607137cf4df15ed2fc23a988ca5e46bb3f701247e536c121c676497df5e5bb54
noteed/language-glsl
Parser.hs
module Language.GLSL.Parser where import Prelude hiding (break, exponent) import Text.ParserCombinators.Parsec hiding (State, parse) import Text.ParserCombinators.Parsec.Expr import Language.GLSL.Syntax ---------------------------------------------------------------------- Parser state , hold a symbol table . ---...
null
https://raw.githubusercontent.com/noteed/language-glsl/103ed6dc5abe0c548ce345b264a9af554ee80c52/Language/GLSL/Parser.hs
haskell
-------------------------------------------------------------------- -------------------------------------------------------------------- -------------------------------------------------------------------- Reserved words -------------------------------------------------------------------- List of keywords. List of ...
module Language.GLSL.Parser where import Prelude hiding (break, exponent) import Text.ParserCombinators.Parsec hiding (State, parse) import Text.ParserCombinators.Parsec.Expr import Language.GLSL.Syntax Parser state , hold a symbol table . data S = S type P a = GenParser Char S a keywords :: [String] keywords...
8ed1817b289507aa74a5c06a486c1ade7cdac524b8aac129d21db0e488baec08
vincenthz/hs-git
FileReader.hs
-- | Module : Data . Git . Storage . FileReader -- License : BSD-style Maintainer : < > -- Stability : experimental -- Portability : unix -- {-# LANGUAGE DeriveDataTypeable #-} module Data.Git.Storage.FileReader ( FileReader , fileReaderNew , fileReaderClose , withFi...
null
https://raw.githubusercontent.com/vincenthz/hs-git/77e4f2f6446733c9b3eec9f916ed0fb0d4fd5a04/Data/Git/Storage/FileReader.hs
haskell
| License : BSD-style Stability : experimental Portability : unix # LANGUAGE DeriveDataTypeable # | seek in a handle, and reset the remaining buffer to empty. | parse from a filebuffer pos <- fileReaderGetPos fb posend <- fileReaderGetPos fb lowlevel helpers to inflate only to a specific size. create an ...
Module : Data . Git . Storage . FileReader Maintainer : < > module Data.Git.Storage.FileReader ( FileReader , fileReaderNew , fileReaderClose , withFileReader , withFileReaderDecompress , fileReaderGetPos , fileReaderGet , fileReaderGetLBS ...
cb90df203de1a792c763e8c116e53ae6c4c11a85d2c2277e6976a9de67f60443
soarlab/FPTaylor
opt_nlopt.mli
(* ========================================================================== *) : A Tool for Rigorous Estimation of Round - off Errors (* *) Author : , University of Utah (* ...
null
https://raw.githubusercontent.com/soarlab/FPTaylor/efbbc83970fe3c9f4cb33fafbbe1050dd18749cd/opt_nlopt.mli
ocaml
========================================================================== ========================================================================== -----------...
: A Tool for Rigorous Estimation of Round - off Errors Author : , University of Utah This file is distributed under the terms of the MIT license Optimization with the library open Opt_common val min_max...
581a950f8d762df65bbdb726443b9617ea1682ffd555e2a851048f0548035ff5
mmontone/cl-gradual
inference.lisp
(in-package :gradual) (defun infer-type (form) (%infer-type form (make-typing-environment))) (defgeneric %infer-type (form typing-environment) ) (defmethod %infer-type ((form constant-form) typing-environment) (type-of (value-of form))) (defmethod %infer-type ((form free-application-form) typing-envir...
null
https://raw.githubusercontent.com/mmontone/cl-gradual/f8c0d992e2886a3fa37e49d9de772391961f234c/inference.lisp
lisp
else
(in-package :gradual) (defun infer-type (form) (%infer-type form (make-typing-environment))) (defgeneric %infer-type (form typing-environment) ) (defmethod %infer-type ((form constant-form) typing-environment) (type-of (value-of form))) (defmethod %infer-type ((form free-application-form) typing-envir...
0a1f8def85336d6d26efc3d71de0eaf742ae2ef76ebc72e10e00f322bbb9d073
cnuernber/depsviz
depsviz.clj
(ns cnuernber.depsviz (:require [cnuernber.depsviz.graph :as deps-graph] [cnuernber.depsviz.tools-deps :as tools-deps] [cnuernber.depsviz.leiningen :as leiningen] [clojure.set :as c-set] [dorothy.core :as dorothy-core] [dorothy.jvm :as dorothy-jvm] ...
null
https://raw.githubusercontent.com/cnuernber/depsviz/3b9f4314d828b55929c486bdd701f5dbb1a9a380/src/cnuernber/depsviz.clj
clojure
handles --help and errors (returning nil) or just
(ns cnuernber.depsviz (:require [cnuernber.depsviz.graph :as deps-graph] [cnuernber.depsviz.tools-deps :as tools-deps] [cnuernber.depsviz.leiningen :as leiningen] [clojure.set :as c-set] [dorothy.core :as dorothy-core] [dorothy.jvm :as dorothy-jvm] ...
10ac75394d545acaa3be64b1ac630e7ab25511f3e2cdebbe53c5f5600bac291f
osimon8/CombinatorC
combinator.ml
type symbol = string type id = int type value = int32 type data = symbol * value type signal = data list type size = int * int type arithemtic_op = | Add | Sub | Mul | Div | Mod | Exp | Lshift | Rshift | AND | OR | XOR type decider_op = | Gt | Lt | Gte | Lte | Eq | Neq type decider_output_ty...
null
https://raw.githubusercontent.com/osimon8/CombinatorC/0bdbbc893ee458ec75eab7a48712d07a62e190aa/src/ast/combinator.ml
ocaml
left input * operation * right input * output left input * operation * right input * output let input_signals_of_combinator (comb:combinator) : op list = begin match comb with | Arithmetic (_, ((o1, _, o2, _))) -> [o1; o2] | _ -> [] end
type symbol = string type id = int type value = int32 type data = symbol * value type signal = data list type size = int * int type arithemtic_op = | Add | Sub | Mul | Div | Mod | Exp | Lshift | Rshift | AND | OR | XOR type decider_op = | Gt | Lt | Gte | Lte | Eq | Neq type decider_output_ty...
de2ffd48229c17bd7a436393b05adcf676a9462e297a535678cbd73f1fb517b1
DSiSc/why3
jsmain.ml
module D = Dom_html let d = D.document (* Grid Layout *) let make_board () = let make_input () = let input = D.createInput ~_type:(Js.string "text") ~name:(Js.string "input") d in input##size <- 1; input##maxLength <- 1; input##align <- Js.string "center"; let style = input##style i...
null
https://raw.githubusercontent.com/DSiSc/why3/8ba9c2287224b53075adc51544bc377bc8ea5c75/examples/sudoku/jsmain.ml
ocaml
Grid Layout reset board to empty cells load examples
module D = Dom_html let d = D.document let make_board () = let make_input () = let input = D.createInput ~_type:(Js.string "text") ~name:(Js.string "input") d in input##size <- 1; input##maxLength <- 1; input##align <- Js.string "center"; let style = input##style in style##borde...
0dba921cb4b4058efc405b7e5474e45ba73bff0a2530bb2dbb53c8ebcdc88101
tarcieri/reia
sleep_benchmark.erl
-module (sleep_benchmark). -export ([run/0]). run() -> timer:sleep(1000).
null
https://raw.githubusercontent.com/tarcieri/reia/77b8b5603ae5d89a0d8fc0b3e179ef052260b5bf/benchmarks/sleep_benchmark.erl
erlang
-module (sleep_benchmark). -export ([run/0]). run() -> timer:sleep(1000).
b76e8e54264987fa848fc70832b0d07cc028b57fbd9a0eb101962097cea4adb8
freckle/yesod-auth-oauth2
DispatchError.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # module Yesod.Auth.OAuth2.DispatchError ( Dispa...
null
https://raw.githubusercontent.com/freckle/yesod-auth-oauth2/3c15ecd871a5b10f98123059b97e973221ff7395/src/Yesod/Auth/OAuth2/DispatchError.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE OverloadedStrings # Most of these are opaque to the user. The exception details are present for the server logs.
# LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # module Yesod.Auth.OAuth2.DispatchError ( DispatchError(..) , handleDispatchError , onDispatchError ) where ...
4c7334e485f7493cb88310759623d4da36b74e18390f5703ef2c3aa11391f2cd
usocket/usocket
test-datagram.lisp
-*- Mode : LISP ; Base : 10 ; Syntax : ANSI - Common - lisp ; Package : USOCKET - TEST -*- ;;;; See LICENSE for licensing information. (in-package :usocket-test) (defvar *echo-server* nil) (defvar *echo-server-port* nil) (defun start-server () (multiple-value-bind (thread socket) (socket-server "127.0...
null
https://raw.githubusercontent.com/usocket/usocket/d1d18eacd848fd4eb39a971bfa11c17fcf2611f0/tests/test-datagram.lisp
lisp
Base : 10 ; Syntax : ANSI - Common - lisp ; Package : USOCKET - TEST -*- See LICENSE for licensing information.
(in-package :usocket-test) (defvar *echo-server* nil) (defvar *echo-server-port* nil) (defun start-server () (multiple-value-bind (thread socket) (socket-server "127.0.0.1" 0 #'identity nil :in-new-thread t :protocol :datagram) (setq *echo-server* thread *echo-server-port* (get-lo...
29213ff01e068f7311ef9e741e234e6ac6fcbddcde2b743df20a7fe04bea8bba
apache/couchdb-couch-mrview
couch_mrview_red_views_tests.erl
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 distributed under the License is distributed on an " A...
null
https://raw.githubusercontent.com/apache/couchdb-couch-mrview/f08c26a098a46366cfaf0e14b940af1f11d84577/test/couch_mrview_red_views_tests.erl
erlang
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 WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations...
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not distributed under the License is distributed on an " AS IS " BASIS , WITHOUT -module(couch_mrview_red_views_tests). -include_lib("couch/include/couch_eunit.hrl"). -include_lib("couch/include/couch_db.hrl"). -define(TIMEOUT, 1000). ...
d54500d3ddc580d08eda97e8d7c71060a025676c8b781fdc514b9fdd24817ee9
ekmett/unpacked-containers
BitQueue.hs
# LANGUAGE CPP # {-# LANGUAGE BangPatterns #-} #include "containers.h" ----------------------------------------------------------------------------- -- | Module : Internal . BitQueue Copyright : ( c ) 2016 -- License : BSD-style -- Maintainer : -- Portability : portable -- -- = WARNING -- ...
null
https://raw.githubusercontent.com/ekmett/unpacked-containers/7dc56993a57511b58257b5d389473e638a7082d2/unpacked-containers/utils/Internal/BitQueue.hs
haskell
# LANGUAGE BangPatterns # --------------------------------------------------------------------------- | License : BSD-style Maintainer : Portability : portable = WARNING This module is considered __internal__. This contents of this module may change __in any way whatsoever__ and __without any warni...
# LANGUAGE CPP # #include "containers.h" Module : Internal . BitQueue Copyright : ( c ) 2016 The Package Versioning Policy _ _ does not apply _ _ . up to ( 2*WORDSIZE - 2 ) bits . In fact , there are two representations , which bits can be removed one by one using ` unconsQ ` . If the size li...
5b20d4ca3f815eeb32f7fb72138e01e66a0d891fcc648805ebac1747c9a9d87a
simmone/racket-simple-xlsx
set-styles.rkt
#lang racket (require "../lib/dimension.rkt") (require "../lib/sheet-lib.rkt") (require "lib.rkt") (require "style.rkt") (require "border-style.rkt") (require "font-style.rkt") (require "alignment-style.rkt") (require "number-style.rkt") (require "fill-style.rkt") (provide (contract-out [set-col-range-widt...
null
https://raw.githubusercontent.com/simmone/racket-simple-xlsx/e0ac3190b6700b0ee1dd80ed91a8f4318533d012/simple-xlsx/style/set-styles.rkt
racket
#lang racket (require "../lib/dimension.rkt") (require "../lib/sheet-lib.rkt") (require "lib.rkt") (require "style.rkt") (require "border-style.rkt") (require "font-style.rkt") (require "alignment-style.rkt") (require "number-style.rkt") (require "fill-style.rkt") (provide (contract-out [set-col-range-widt...
7b28264e87b67caa0a3e1bfe5f04a627079f8b7dc13eda37d788115e3f9d8779
shentufoundation/deepsea
BinNat.ml
open BinNums open BinPos open Datatypes module N = struct (** val succ_double : coq_N -> coq_N **) let succ_double = function | N0 -> Npos Coq_xH | Npos p -> Npos (Coq_xI p) (** val double : coq_N -> coq_N **) let double = function | N0 -> N0 | Npos p -> Npos (Coq_xO p) * succ_pos : coq_N - > pos...
null
https://raw.githubusercontent.com/shentufoundation/deepsea/970576a97c8992655ed2f173f576502d73b827e1/src/backend/extraction/BinNat.ml
ocaml
* val succ_double : coq_N -> coq_N * * val double : coq_N -> coq_N * * val sub : coq_N -> coq_N -> coq_N * * val compare : coq_N -> coq_N -> comparison * * val coq_lor : coq_N -> coq_N -> coq_N *
open BinNums open BinPos open Datatypes module N = struct let succ_double = function | N0 -> Npos Coq_xH | Npos p -> Npos (Coq_xI p) let double = function | N0 -> N0 | Npos p -> Npos (Coq_xO p) * succ_pos : coq_N - > positive * let succ_pos = function | N0 -> Coq_xH | Npos p -> Pos.succ p ...
0adbb22b01ca59a10d5ed9a7b56dfe2d5a9116bd507bf0235d631c2e7871aab8
wireless-net/erlang-nommu
ex_treeCtrl.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2009 - 2013 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/wireless-net/erlang-nommu/79f32f81418e022d8ad8e0e447deaea407289926/lib/wx/examples/demo/ex_treeCtrl.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 2009 - 2013 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(ex_treeCtrl). -behaviour(wx_objec...
3bbfe33754181cbd8d7edc48131b0b8c9107aa3b1e7116af6779cb6d8350c32b
kevinlynx/ext-blog
defpackage.lisp
(defpackage #:ext-blog.theme.test (:use common-lisp))
null
https://raw.githubusercontent.com/kevinlynx/ext-blog/4f6a6f0ab64f9384d53d41d1208ebaa7b9575534/theme/test/defpackage.lisp
lisp
(defpackage #:ext-blog.theme.test (:use common-lisp))
e8fe1ceee8fb9756c4909a9409795f57d5d02ea6f910484c1ead8f656063e2b2
darkleaf/publicator
register.clj
(ns publicator.web.responders.user.register (:require [publicator.use-cases.interactors.user.register :as interactor] [publicator.web.responders.base :as responders.base] [publicator.web.responses :as responses] [publicator.web.presenters.explain-data :as explain-data] [publicator.web.forms.user.regist...
null
https://raw.githubusercontent.com/darkleaf/publicator/e07eee93d8f3d9c07a15d574619d5ea59c00f87d/web/src/publicator/web/responders/user/register.clj
clojure
(ns publicator.web.responders.user.register (:require [publicator.use-cases.interactors.user.register :as interactor] [publicator.web.responders.base :as responders.base] [publicator.web.responses :as responses] [publicator.web.presenters.explain-data :as explain-data] [publicator.web.forms.user.regist...
298afcaed8b1a620e000873a04dde51f1b7d8fc84f6421836627fbb929ede4f1
haskell-distributed/distributed-process
TH.hs
-- | Template Haskell support # LANGUAGE TemplateHaskell , CPP # module Control.Distributed.Process.Internal.Closure.TH ( -- * User-level API remotable , remotableDecl , mkStatic , functionSDict , functionTDict , mkClosure , mkStaticClosure ) where import Prelude hiding (succ, any) import Control.A...
null
https://raw.githubusercontent.com/haskell-distributed/distributed-process/7b8cbf59cc7f291a524a5c405d514e48e6544182/src/Control/Distributed/Process/Internal/Closure/TH.hs
haskell
| Template Haskell support * User-level API Q monad and operations Names Lifted constructors .. Literals .. Patterns .. Expressions .. Top-level declarations ------------------------------------------------------------------------------ User-level API ...
# LANGUAGE TemplateHaskell , CPP # module Control.Distributed.Process.Internal.Closure.TH remotable , remotableDecl , mkStatic , functionSDict , functionTDict , mkClosure , mkStaticClosure ) where import Prelude hiding (succ, any) import Control.Applicative ((<$>)) import Language.Haskell.TH Q ...
d02ae5ead7d4a5622e7fc7d0a1627243962fbbb55ccdedcc60c005d434fc9a93
kupl/FixML
sub13.ml
type formula = | True | False | Not of formula | AndAlso of formula * formula | OrElse of formula * formula | Imply of formula * formula | Equal of exp * exp and exp = | Num of int | Plus of exp * exp | Minus of exp * exp let rec eval : formula -> bool = fun f -> match f with |True -> ...
null
https://raw.githubusercontent.com/kupl/FixML/0a032a733d68cd8ccc8b1034d2908cd43b241fce/benchmarks/formula/formula1/submissions/sub13.ml
ocaml
type formula = | True | False | Not of formula | AndAlso of formula * formula | OrElse of formula * formula | Imply of formula * formula | Equal of exp * exp and exp = | Num of int | Plus of exp * exp | Minus of exp * exp let rec eval : formula -> bool = fun f -> match f with |True -> ...
2e1f570f93c89cc69d5e0d2df6cb4a62936b6fda3539ef449b72d300fd21deb0
jdreaver/eventful
CommandHandler.hs
# LANGUAGE RecordWildCards # # LANGUAGE TemplateHaskell # module Bank.Models.Account.CommandHandler ( accountCommandHandler , AccountCommand (..) ) where import Control.Lens import Data.Maybe (isNothing) import SumTypes.TH import Eventful import Bank.Models.Account.Commands import Bank.Models.Account.Events ...
null
https://raw.githubusercontent.com/jdreaver/eventful/3f0c604e5bb2dcf5bacf0a2e01edf6a5e9c5e22e/examples/bank/src/Bank/Models/Account/CommandHandler.hs
haskell
# LANGUAGE RecordWildCards # # LANGUAGE TemplateHaskell # module Bank.Models.Account.CommandHandler ( accountCommandHandler , AccountCommand (..) ) where import Control.Lens import Data.Maybe (isNothing) import SumTypes.TH import Eventful import Bank.Models.Account.Commands import Bank.Models.Account.Events ...
34a2580c2def7736a760ed1e57ab0d7a9e85e70940d16b8c5dbc85c324713495
inhabitedtype/ocaml-aws
getHealthCheck.ml
open Types open Aws type input = GetHealthCheckRequest.t type output = GetHealthCheckResponse.t type error = Errors_internal.t let service = "route53" let signature_version = Request.V4 let to_http service region req = let uri = Uri.add_query_params (Uri.of_string (Aws.Util.of_option_exn (Endpoints.ur...
null
https://raw.githubusercontent.com/inhabitedtype/ocaml-aws/b6d5554c5d201202b5de8d0b0253871f7b66dab6/libraries/route53/lib/getHealthCheck.ml
ocaml
open Types open Aws type input = GetHealthCheckRequest.t type output = GetHealthCheckResponse.t type error = Errors_internal.t let service = "route53" let signature_version = Request.V4 let to_http service region req = let uri = Uri.add_query_params (Uri.of_string (Aws.Util.of_option_exn (Endpoints.ur...
0ea483e41a4981e48f7ac89d47f7a8400c288aaaef2a3f4fd07ff1ff7dff078e
zachsully/dl
Translation.hs
module DL.Flat.Backend.JavaScript.Translation (jsCompile) where import Data.List (foldl') import DL.Backend import qualified DL.General.Top as Top import DL.Flat.Syntax import DL.Flat.Backend.JavaScript.Syntax import DL.General.Variable import DL.Utils.StdMonad jsCompile :: Backend FlatTerm jsCompile = Backend tra...
null
https://raw.githubusercontent.com/zachsully/dl/383bcc9d34c5e1f9787dede440a84503e5a2fd28/haskell/DL/Flat/Backend/JavaScript/Translation.hs
haskell
We a-Normalize for sharing pass identity function into default case pass identity function into default case
module DL.Flat.Backend.JavaScript.Translation (jsCompile) where import Data.List (foldl') import DL.Backend import qualified DL.General.Top as Top import DL.Flat.Syntax import DL.Flat.Backend.JavaScript.Syntax import DL.General.Variable import DL.Utils.StdMonad jsCompile :: Backend FlatTerm jsCompile = Backend tra...
fae3f1baf5d402b971105ed2a26fc53d5c050f2a6bdc60631fa7dc42f492af83
sph-mn/sph-lib
shtml.scm
(define-module (sph web shtml)) (use-modules (rnrs io ports) (sph) (sph list) (sxml simple) ((sph string) #:select (any->string))) (export shtml->html shtml-alist->options shtml-heading shtml-hyperlink shtml-include-css shtml-include-javascript shtml-indent shtml-indent-create shtml-list->list shtml-list->table ...
null
https://raw.githubusercontent.com/sph-mn/sph-lib/c7daf74f42d6bd1304f49c2fef89dcd6dd94fdc9/modules/sph/web/shtml.scm
scheme
(define-module (sph web shtml)) (use-modules (rnrs io ports) (sph) (sph list) (sxml simple) ((sph string) #:select (any->string))) (export shtml->html shtml-alist->options shtml-heading shtml-hyperlink shtml-include-css shtml-include-javascript shtml-indent shtml-indent-create shtml-list->list shtml-list->table ...
a86811a26e41efe416ee1b45f5393860a39b586c3cfcf2a2d3226260e2181fe8
Naproche-SAD/Naproche-SAD
Base.hs
Authors : ( 2001 - 2008 ) , ( 2017 - 2018 ) Construct prover database . Authors: Andrei Paskevich (2001 - 2008), Steffen Frerix (2017 - 2018) Construct prover database. -} module SAD.Export.Base (Prover(..),Format(..),readProverDatabase) where import qualified Data.Char as Char import System.IO import Sys...
null
https://raw.githubusercontent.com/Naproche-SAD/Naproche-SAD/da131a6eaf65d4e02e82082a50a4febb6d42db3d/src/SAD/Export/Base.hs
haskell
Database reader parse the prover database in provers.dat Service stuff
Authors : ( 2001 - 2008 ) , ( 2017 - 2018 ) Construct prover database . Authors: Andrei Paskevich (2001 - 2008), Steffen Frerix (2017 - 2018) Construct prover database. -} module SAD.Export.Base (Prover(..),Format(..),readProverDatabase) where import qualified Data.Char as Char import System.IO import Sys...
929ac4570fd40cfc106b42e15239f73764542e658dd4d0f180367b24293f6ed0
issuu/broen
broen_core.erl
%%% --------------------------------------------------------------------------------- %%% @doc %%% broen_core turns HTTP requests/responses into AMQP RPC messaging. Given a HTTP Request , this module will first authenticate it using the provided %%% authentication plugin and the publish the message serialized with th...
null
https://raw.githubusercontent.com/issuu/broen/7d0e1ad9017b9e9907d924b54c3c63dd1d741c9c/src/broen_core.erl
erlang
--------------------------------------------------------------------------------- @doc broen_core turns HTTP requests/responses into AMQP RPC messaging. authentication plugin and the publish the message serialized with the serializer @end ---------------------------------------------------------------------------...
Given a HTTP Request , this module will first authenticate it using the provided plug over . Upon receiving a response , the module will respond back over HTTP . -module(broen_core). -export([handle/3]). -export([register_metrics/0]). -define(CLIENT_REQUEST_BODY_LIMIT, 65536). -define(ACAO_HEADER, <<"access-cont...
a4e01b58f84f129dcd0eba00b3e14c9cdf5e6e52c69f6cbec4c2ceeb70dedfb8
nathanmarz/kafka-deploy
zookeeper.clj
(ns kafka.deploy.crate.zookeeper (:require [pallet.action.directory :as directory] [pallet.action.file :as file] [pallet.action.remote-directory :as remote-directory] [pallet.action.remote-file :as remote-file] [pallet.action.service :as service] [pallet.action.user :as user] [pallet.argument :as...
null
https://raw.githubusercontent.com/nathanmarz/kafka-deploy/76983b2877a3ebf62c740803f2a55916a42f1420/src/clj/kafka/deploy/crate/zookeeper.clj
clojure
(ns kafka.deploy.crate.zookeeper (:require [pallet.action.directory :as directory] [pallet.action.file :as file] [pallet.action.remote-directory :as remote-directory] [pallet.action.remote-file :as remote-file] [pallet.action.service :as service] [pallet.action.user :as user] [pallet.argument :as...
ddb294d0393eded842352d5ce0790904ef3a590d30e856f3cfa60434ae50cb68
Kappa-Dev/KappaTools
po_cut.ml
* * po_cut.ml * * Cut concurrent events : a module for * , projet Abstraction , INRIA Paris - Rocquencourt * , Université Paris - Diderot , CNRS * * * , Université Paris Dederot , CNRS * * Creation : 16/04/2012 * Last modification : 02/08/2013 * * * Some parameter r...
null
https://raw.githubusercontent.com/Kappa-Dev/KappaTools/eef2337e8688018eda47ccc838aea809cae68de7/core/cflow/po_cut.ml
ocaml
reverse order correct order
* * po_cut.ml * * Cut concurrent events : a module for * , projet Abstraction , INRIA Paris - Rocquencourt * , Université Paris - Diderot , CNRS * * * , Université Paris Dederot , CNRS * * Creation : 16/04/2012 * Last modification : 02/08/2013 * * * Some parameter r...
42e3fbbb85035dcbd6e374361ed736045e791c972737e6ec6f39994c2f321ed0
svenpanne/EOPL3
exercise-1-22.rkt
#lang eopl ; ------------------------------------------------------------------------------ Exercise 1.22 (define filter-in (lambda (pred lst) (cond ((null? lst) '()) ((pred (car lst)) (cons (car lst) (filter-in pred (cdr lst)))) (else (filter-in pred (cdr lst))))))
null
https://raw.githubusercontent.com/svenpanne/EOPL3/3fc14c4dbb1c53a37bd67399eba34cea8f8234cc/chapter1/exercise-1-22.rkt
racket
------------------------------------------------------------------------------
#lang eopl Exercise 1.22 (define filter-in (lambda (pred lst) (cond ((null? lst) '()) ((pred (car lst)) (cons (car lst) (filter-in pred (cdr lst)))) (else (filter-in pred (cdr lst))))))
f41cce6597805bd8ad933673d0bf733d15028b4931a5a27d5c22fe94bd68babd
jstolarek/dep-typed-wbl-heaps-hs
Basics.hs
----------------------------------------------------------------------- Copyright : 2014 , , Politechnika Łódzka -- -- -- -- License: See LICENSE file in root of the repo -- Repo address : -typed-wbl-heaps-hs -- ...
null
https://raw.githubusercontent.com/jstolarek/dep-typed-wbl-heaps-hs/0d6e354cbb71056a3eb9df9ebdc788182e137d1d/src/Basics.hs
haskell
--------------------------------------------------------------------- -- License: See LICENSE file in root of the repo -- -- All the Basics/* modules are used to ...
module Basics ( module Basics.Bool , module Basics.Nat , module Basics.Ordering , module Basics.Reasoning , module Basics.Sing , module Basics.Unreachable , Rank, Priority , undefined ) where import Basics.Bool import Basics.Nat import Basics.Ordering import Basics.Reasoning import Basics.Sing import Basic...
c8f70e4058aef8871862eb354ed544ca7466db5a5085759dc00749ae863fe95c
incoherentsoftware/defect-process
Run.hs
module Enemy.All.Lanky.AI.Run ( runBehaviorInstr ) where import Collision.Hitbox import Configs.All.Enemy import Configs.All.Enemy.Lanky import Constants import Enemy as E import Enemy.All.Lanky.AttackDescriptions import Enemy.All.Lanky.AttackType import Enemy.All.Lanky.Behavior import Enemy.All.Lanky.Data imp...
null
https://raw.githubusercontent.com/incoherentsoftware/defect-process/8797aad1d93bff5aadd7226c39a48f45cf76746e/src/Enemy/All/Lanky/AI/Run.hs
haskell
module Enemy.All.Lanky.AI.Run ( runBehaviorInstr ) where import Collision.Hitbox import Configs.All.Enemy import Configs.All.Enemy.Lanky import Constants import Enemy as E import Enemy.All.Lanky.AttackDescriptions import Enemy.All.Lanky.AttackType import Enemy.All.Lanky.Behavior import Enemy.All.Lanky.Data imp...
a4e9422161c9ecc5d9bf440175944e6c29b7d364f8144c107200eac568c2dcb7
plum-umd/adapton.ocaml
spreadTree.ml
* Spread trees : Spread trees are a general - purpose data structure for ( nominal , demand - driven ) incremental computation . A spread tree can represent : -- a sequence ( and in particular , an iterator ) , -- a binary search tree , -- a set , -- a mapping , -- a gr...
null
https://raw.githubusercontent.com/plum-umd/adapton.ocaml/a8e642ac1cc113b33e1837da960940c2dfcfa772/src/collections/spreadTree.ml
ocaml
articulated list. articulated tree. articulated rope. articulated list. articulated tree. articulated rope. Abbreviations, for accessing mfn_* and force: return it if it already contains `Nil add articulated `Nil to the end and return that art assert (list_is_empty rest) ; non-memoised indexed lo...
* Spread trees : Spread trees are a general - purpose data structure for ( nominal , demand - driven ) incremental computation . A spread tree can represent : -- a sequence ( and in particular , an iterator ) , -- a binary search tree , -- a set , -- a mapping , -- a gr...
231a5a7aca16b6cb355c8fd5f868b0197bf1c7a6044adf20fb3dcf05db75730d
danilkolikov/dfl
Base.hs
| Module : Frontend . Desugaring . Record . Base Description : Base functions for record desugaring Copyright : ( c ) , 2019 License : MIT Base functions for record desugaring Module : Frontend.Desugaring.Record.Base Description : Base functions for record desugaring Copyri...
null
https://raw.githubusercontent.com/danilkolikov/dfl/698a8f32e23b381afe803fc0e353293a3bf644ba/src/Frontend/Desugaring/Record/Base.hs
haskell
| Errors which may happen during desugaring of records ^ Unknown field ^ Unknown constructor ^ Some field is used twice in a binding ^ No constructors including these fields | Context of record desugaring | Run record desugaring except | Raises a RecordDEsugaring error | Processor of record desugaring | Funct...
| Module : Frontend . Desugaring . Record . Base Description : Base functions for record desugaring Copyright : ( c ) , 2019 License : MIT Base functions for record desugaring Module : Frontend.Desugaring.Record.Base Description : Base functions for record desugaring Copyri...
95a451903ed0f51ab534a30e65bbad1ecd29d71ed2d8861c846b16a6f4e23eea
telekons/one-more-re-nightmare
nullable.lisp
(in-package :one-more-re-nightmare) (defvar *gensym-assignments?* t) (defun cached-nullable* (re) (if *gensym-assignments?* (cached-nullable re) (cached-nullable-no-gensym re))) (defun (setf cached-nullable*) (value re) (if *gensym-assignments?* (setf (cached-nullable re) value) (setf (ca...
null
https://raw.githubusercontent.com/telekons/one-more-re-nightmare/c27f2e96ece56dc5689db0d5d3909e6f8a3744ef/Code/DFA-construction/nullable.lisp
lisp
(in-package :one-more-re-nightmare) (defvar *gensym-assignments?* t) (defun cached-nullable* (re) (if *gensym-assignments?* (cached-nullable re) (cached-nullable-no-gensym re))) (defun (setf cached-nullable*) (value re) (if *gensym-assignments?* (setf (cached-nullable re) value) (setf (ca...
21073c6df1d6bad652411f271eee5447692162c39d3cce80b666ab0086d1c59c
input-output-hk/plutus-apps
Client.hs
# LANGUAGE RecordWildCards # # LANGUAGE TypeApplications # -- | Servant client for PAB module Plutus.PAB.Webserver.Client ( PabClient(..) , InstanceClient(..) , pabClient ) where import Data.Aeson (FromJSON, ToJSON (..)) import Data.Aeson qualified as JSON import Data.Proxy import Data.Text (Text) import Pl...
null
https://raw.githubusercontent.com/input-output-hk/plutus-apps/d637b1916522e4ec20b719487a8a2e066937aceb/plutus-pab/src/Plutus/PAB/Webserver/Client.hs
haskell
| Servant client for PAB ^ call activate contract method ^ get wallet instances ^ get instances ^ get definitions | Contract instance endpoints ^ get instance status ^ get instance schema ^ call instance endpoint ^ call stop instance method
# LANGUAGE RecordWildCards # # LANGUAGE TypeApplications # module Plutus.PAB.Webserver.Client ( PabClient(..) , InstanceClient(..) , pabClient ) where import Data.Aeson (FromJSON, ToJSON (..)) import Data.Aeson qualified as JSON import Data.Proxy import Data.Text (Text) import Plutus.PAB.Events.Contract imp...
ae443ffba5aa3a34e6a5ba5cf35128b45e4db60f17b73e13094a694cabb9bd94
philnguyen/soft-contract
b.rkt
#lang typed/racket/base (: f (-> Integer Integer)) (define (f x) (+ x 2)) (provide f)
null
https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/test/programs/safe/issues/issue-90/b.rkt
racket
#lang typed/racket/base (: f (-> Integer Integer)) (define (f x) (+ x 2)) (provide f)
55ddde525ddc582afb971b11a662c55e953be11b3366ce4cceea96fa0d767094
emaphis/HtDP2e-solutions
04_Checking_the_World.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-beginner-reader.ss" "lang")((modname 06_04_checking_the_world) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor re...
null
https://raw.githubusercontent.com/emaphis/HtDP2e-solutions/ecb60b9a7bbf9b8999c0122b6ea152a3301f0a68/1-Fixed-Size-Data/06-Itemizations-Structures/04_Checking_the_World.rkt
racket
about the language level of this file in a form that our tools can easily process. 6.4 Checking the World 6.4 Checking the World data verification mechanism examples: Any -> Boolean (A Graphical Editor). See 06_04_space_invater_3.rkt, 06_04_chat_cham_4.rkt, 06_04_editor_4.rkt
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-reader.ss" "lang")((modname 06_04_checking_the_world) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) HtDP 2e - 6 Itemizations and Structures Exe...
751f47e9f400213c5e54099f34871b02edefef367f3e52f5f19cc324c05f3af1
restyled-io/restyled.io
MetricsSpec.hs
module Restyled.MetricsSpec ( spec ) where import Restyled.Test import Restyled.Metrics import Restyled.Test.Graphula import Restyled.Time import Restyled.TimeRange spec :: Spec spec = withApp $ do describe "fetchJobMetrics" $ do it "returns counts of Jobs in various states" $ graph $ do ...
null
https://raw.githubusercontent.com/restyled-io/restyled.io/134019dffb54f84bddb905e8e21131b4e33f7850/test/Restyled/MetricsSpec.hs
haskell
module Restyled.MetricsSpec ( spec ) where import Restyled.Test import Restyled.Metrics import Restyled.Test.Graphula import Restyled.Time import Restyled.TimeRange spec :: Spec spec = withApp $ do describe "fetchJobMetrics" $ do it "returns counts of Jobs in various states" $ graph $ do ...
4253d264fe5a5cc029479e2384513cd2c54b6ff1ccd93ca6f5a8e4cc4bb9d86c
akabe/ocaml-jupyter
jupyter_args.mli
ocaml - jupyter --- An OCaml kernel for Jupyter Copyright ( c ) 2017 Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitat...
null
https://raw.githubusercontent.com/akabe/ocaml-jupyter/7ea00fde81a915ee9d86c979f295f4c5dac28db8/src/main/jupyter_args.mli
ocaml
* Command-line arguments
ocaml - jupyter --- An OCaml kernel for Jupyter Copyright ( c ) 2017 Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitat...
a030671481ac53f7f41f4f051a5008b6bd5a898ec0ab6da8accd71e4bba511b2
mylesmegyesi/sass-clojure
core.clj
(ns sass.core (:require [clojure.java.io :refer [file resource]])) (defn- build-jsass-options [options] (let [jsass-options (io.bit3.jsass.Options.) include-paths (.getIncludePaths jsass-options)] (doseq [load-path (:load-paths options)] (.add include-paths (file load-path))) (.setIsIndente...
null
https://raw.githubusercontent.com/mylesmegyesi/sass-clojure/99c1f7078ffa7183a06114559cde47c912fff63f/src/sass/core.clj
clojure
(ns sass.core (:require [clojure.java.io :refer [file resource]])) (defn- build-jsass-options [options] (let [jsass-options (io.bit3.jsass.Options.) include-paths (.getIncludePaths jsass-options)] (doseq [load-path (:load-paths options)] (.add include-paths (file load-path))) (.setIsIndente...
bcdba6123177d542947c96be31d295387d6355858945e620e43a0bb178e24586
penpot/penpot
pixel_precision.cljc
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. ;; ;; Copyright (c) KALEIDOS INC (ns app.common.geom.shapes.pixel-precision (:require [app.common.data :as d] [app.common.data.macros :...
null
https://raw.githubusercontent.com/penpot/penpot/c8360b19949a34a9b0878a3a6f2dd08529c9c4cb/common/src/app/common/geom/shapes/pixel_precision.cljc
clojure
Copyright (c) KALEIDOS INC
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. (ns app.common.geom.shapes.pixel-precision (:require [app.common.data :as d] [app.common.data.macros :as dm] [app.common.geom.point ...
a6d13636ee41f1507ea2123155b17227ed728e316e91044a570918cf2110f7b8
BitGameEN/bitgamex
c_xchgsvr.erl
%%%-------------------------------------- %%% @Module : c_xchgsvr @Description : %%%-------------------------------------- -module(c_xchgsvr). -export([transfer_gold_to_exchange/5, transfer_gold_to_wallet/6]). -include("common.hrl"). -include("gameConfig.hrl"). -include("gameConfigGlobalKey.hrl"). -include("gameC...
null
https://raw.githubusercontent.com/BitGameEN/bitgamex/151ba70a481615379f9648581a5d459b503abe19/src/ctrl/c_xchgsvr.erl
erlang
-------------------------------------- @Module : c_xchgsvr -------------------------------------- 先扣除 todo:临时为了客户端调试注释掉,以后改回来 Amount = Amount0 * (1 - TransferDiscountToXchg), 相当于断言 参数串: 发送到交易所:transaction_id=xx&game_uid=xx&exchange_accid=xx&token_symbol=xx&amount=xx&time=xx 发送到钱包:transaction_id=xx&game_uid=xx&e...
@Description : -module(c_xchgsvr). -export([transfer_gold_to_exchange/5, transfer_gold_to_wallet/6]). -include("common.hrl"). -include("gameConfig.hrl"). -include("gameConfigGlobalKey.hrl"). -include("gameConfig3rdParty.hrl"). -include("record_usr_user.hrl"). -include("record_run_role_gold.hrl"). -include("record_...
0b9451b0af2611aa9286e95762e8cf77cc10a383c133bd2912b52bfea29ce983
ernius/plutus-cardano-samples
mathbounty-serialize.hs
import Prelude import System.Environment import Cardano.Api import Cardano.Api.Shelley import qualified Plutus.V1.Ledger.Api as Plutus import qualified Data.Aeson as Aeson import qualified Data.ByteString.Short as SBS import qualified Data.ByteString.Lazy as LBS import ...
null
https://raw.githubusercontent.com/ernius/plutus-cardano-samples/3b5476e45725578622889114e1b36d9a6cf56535/app/mathbounty-serialize.hs
haskell
import Prelude import System.Environment import Cardano.Api import Cardano.Api.Shelley import qualified Plutus.V1.Ledger.Api as Plutus import qualified Data.Aeson as Aeson import qualified Data.ByteString.Short as SBS import qualified Data.ByteString.Lazy as LBS import ...
ba285cf9496c6f413ec20e7881abcc88f3478657ee61b6b92494801e551487b9
metabase/metabase
xlsx_test.clj
(ns metabase.query-processor.streaming.xlsx-test (:require [cheshire.generate :as json.generate] [clojure.java.io :as io] [clojure.test :refer :all] [dk.ative.docjure.spreadsheet :as spreadsheet] [metabase.driver :as driver] [metabase.query-processor.streaming.interface :as qp.si] [metabase.query...
null
https://raw.githubusercontent.com/metabase/metabase/56b28e5b07e73002d5c507f583e3d64439ba8b8c/test/metabase/query_processor/streaming/xlsx_test.clj
clojure
+----------------------------------------------------------------------------------------------------------------+ | Format string generation unit tests | +--------------------------------------------------------------------------------------...
(ns metabase.query-processor.streaming.xlsx-test (:require [cheshire.generate :as json.generate] [clojure.java.io :as io] [clojure.test :refer :all] [dk.ative.docjure.spreadsheet :as spreadsheet] [metabase.driver :as driver] [metabase.query-processor.streaming.interface :as qp.si] [metabase.query...
564a20a06b2a541af0696346d2a1dfa8827842d82da639a60d19e345248d9fcb
Leystryku/mpbomberman_racket
cl_render.rkt
#lang racket ;; imports (require 2htdp/image) (require lang/posn) (require "cl_helper.rkt") (require "cl_render_game.rkt") (require "cl_render_titlescreen.rkt") (require "sh_config.rkt") (require "sh_helper.rkt") (require "sh_structs.rkt") (require "sh_config_textures.rkt") ;; exports (provide (all-defined-out)) [...
null
https://raw.githubusercontent.com/Leystryku/mpbomberman_racket/059d95040cfad2e27237f8dd41fc32a4fc698afe/game/cl_render.rkt
racket
imports exports [renderHandlerRedraw] Calls the rendlerHanderCond since the frame needs to be redrawn [renderHandlerRedrawWithCache] Calls [rendlerHandlerRedraw] and caches the new frame [renderHandler] Calls [renderHandlerRedrawWithCache] with a black canvas as background
#lang racket (require 2htdp/image) (require lang/posn) (require "cl_helper.rkt") (require "cl_render_game.rkt") (require "cl_render_titlescreen.rkt") (require "sh_config.rkt") (require "sh_helper.rkt") (require "sh_structs.rkt") (require "sh_config_textures.rkt") (provide (all-defined-out)) [ ] Calls the fitting ...
9f524ee942fde60112ec8288bfc48cd42c235c46b51fbd64fa742a9b7c2de572
jfacorro/klarna-loves-erlang-meetup-2020
bank_proper_utils.erl
-module(bank_proper_utils). -export([ request/2 , request/4 ]). -type response() :: #{ status := integer() , headers := map() , body := iolist() }. -export_type([response/0]). -spec request(atom(), string()) -> response(). request(Me...
null
https://raw.githubusercontent.com/jfacorro/klarna-loves-erlang-meetup-2020/61795af0ac80ac7afa4a00a215342988e5aac45f/apps/bank_proper/src/bank_proper_utils.erl
erlang
Disable pipelining to avoid the socket getting closed during long runs
-module(bank_proper_utils). -export([ request/2 , request/4 ]). -type response() :: #{ status := integer() , headers := map() , body := iolist() }. -export_type([response/0]). -spec request(atom(), string()) -> response(). request(Me...
36ce1f3a964b30fe988170e72a0dd90f665f80f02ae6065625dfefe389859d1f
jaspervdj/websockets-snap
server.hs
-------------------------------------------------------------------------------- {-# LANGUAGE OverloadedStrings #-} module Main where -------------------------------------------------------------------------------- import Control.Concurrent (forkIO) import Control.Exception (finally) im...
null
https://raw.githubusercontent.com/jaspervdj/websockets-snap/a6cb1467e4b60b98cdbaa56f17fcddda75b2da61/example/server.hs
haskell
------------------------------------------------------------------------------ # LANGUAGE OverloadedStrings # ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ----------------------------------------------------...
module Main where import Control.Concurrent (forkIO) import Control.Exception (finally) import Control.Monad (forever, unless) import qualified Data.ByteString as B import qualified Data.ByteString.Char8 as BC import qualified Network.WebSockets as WS ...
44d2564375f958e3b273c00f1c953c5b9333e478422df7444d2c1218e8580d07
jlouis/graphql-erlang
graphql_scalar_bool_coerce.erl
-module(graphql_scalar_bool_coerce). -export([input/2, output/2]). input(_, true) -> {ok, true}; input(_, false) -> {ok, false}; input(_, _) -> {error, not_bool}. output(<<"Bool">>, true) -> {ok, true}; output(<<"Bool">>, <<"true">>) -> {ok, true}; output(<<"Bool">>, false) -...
null
https://raw.githubusercontent.com/jlouis/graphql-erlang/4fd356294c2acea42a024366bc5a64661e4862d7/src/graphql_scalar_bool_coerce.erl
erlang
-module(graphql_scalar_bool_coerce). -export([input/2, output/2]). input(_, true) -> {ok, true}; input(_, false) -> {ok, false}; input(_, _) -> {error, not_bool}. output(<<"Bool">>, true) -> {ok, true}; output(<<"Bool">>, <<"true">>) -> {ok, true}; output(<<"Bool">>, false) -...
9862c304ef7323ffed43965376bae6bcc9daea12a9f25c1f20cf33f37227695a
PEZ/shadow-bare-bones
server.clj
(ns main.server (:gen-class)) (defn -main "I don't do a whole lot ... yet." [& _args] (println "Hello, World!")) (-main)
null
https://raw.githubusercontent.com/PEZ/shadow-bare-bones/8e6d8328804b0e17e5ae0d79655688083ac739e9/src/main/server.clj
clojure
(ns main.server (:gen-class)) (defn -main "I don't do a whole lot ... yet." [& _args] (println "Hello, World!")) (-main)
deff2f7751db19be8aab0ed3336b6ac40769690347dc03805665e08cc4f96a48
pveber/bistro
zhou2018.ml
(** Article: Data: *) open Core_kernel open Bistro open Bistro.Shell_dsl open Bistro_utils module Dataset = struct type t = [`SongD1] let to_string = function | `SongD1 -> "SongD1" let alignments d = Bistro_unix.wget "" |> Bistro_unix.tar_xfj |> Fn.flip Workflow.select ["single-gene_al...
null
https://raw.githubusercontent.com/pveber/bistro/da0ebc969c8c5ca091905366875cbf8366622280/examples/zhou2018.ml
ocaml
* Article: Data: iqtree save its output right next to its input, hence this mess
open Core_kernel open Bistro open Bistro.Shell_dsl open Bistro_utils module Dataset = struct type t = [`SongD1] let to_string = function | `SongD1 -> "SongD1" let alignments d = Bistro_unix.wget "" |> Bistro_unix.tar_xfj |> Fn.flip Workflow.select ["single-gene_alignments" ; to_string d ] ...
f633f74d8057b9aeb0a9281679628b55ce6344424c7c5cfd2a662cc04595f55a
rtoy/cmucl
slot-type.lisp
Copyright ( C ) 2002 < > ;;; 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 ;;; notice, this list of condi...
null
https://raw.githubusercontent.com/rtoy/cmucl/9b1abca53598f03a5b39ded4185471a5b8777dea/tests/pcl/slot-type.lisp
lisp
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: notice, this list of conditions and the following disclaimer. notice, this list of conditions and the following disclaimer in the document...
Copyright ( C ) 2002 < > 1 . Redistributions of source code must retain the above copyright 2 . Redistributions in binary form must reproduce the above copyright 3 . The name of the author may not be used to endorse or promote THIS SOFTWARE IS PROVIDED BY THE AUTHOR ` ` AS IS '' AND ANY EXPRESS ARE DISCL...
ec89a7645fac1cd55d7924efd12b247889d26461694ad73f29e3cbb1353f8e38
patricoferris/sesame
test.ml
let () = let open Alcotest_lwt in Lwt_main.run @@ run "Sesame" [ ("collections", Test_collection.tests) ]
null
https://raw.githubusercontent.com/patricoferris/sesame/8c1086444b81a0faf284c7a3ac5412f578ca6868/test/test.ml
ocaml
let () = let open Alcotest_lwt in Lwt_main.run @@ run "Sesame" [ ("collections", Test_collection.tests) ]
0de636d83d21b8e5d8753dde89480eca99a8b8dec3823304823ec156b8b7d256
chchen/comet
bitvector.rkt
#lang rosette/safe (require "../bool-bitvec/types.rkt") ;; Logical AND (define (bvland l r) (if (and (bitvector->bool l) (bitvector->bool r)) true-vect false-vect)) Logical OR (define (bvlor l r) (if (or (bitvector->bool l) (bitvector->bool r)) true-vect false-vect)...
null
https://raw.githubusercontent.com/chchen/comet/005477b761f4d35c9fce175738f4dcbb805909e7/unity-synthesis/arduino/bitvector.rkt
racket
Logical AND Logical NOT Equality as a word Less-than as a word
#lang rosette/safe (require "../bool-bitvec/types.rkt") (define (bvland l r) (if (and (bitvector->bool l) (bitvector->bool r)) true-vect false-vect)) Logical OR (define (bvlor l r) (if (or (bitvector->bool l) (bitvector->bool r)) true-vect false-vect)) (define (bvl...
6de0c596fd66510ce42f38bca194e47f2664eb1f3fb63b4d987f947265499a9b
mzp/coq-for-ipad
compile.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/mzp/coq-for-ipad/4fb3711723e2581a170ffd734e936f210086396e/src/ocaml-3.12.0/driver/compile.ml
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 2002 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : compile.ml 9074 2008 - 10 - 0...
2b445bf7a567391ceff6a3f8aa4f02603c70d23c21bbab68e2591b3246e30e6c
zippy/anansi
debug.cljs
(ns ss.debug (:require [ss.dom-helpers :as d] [ss.utils :as u] [ goog.debug . DebugWindow : as debugw ] )) (defn log [txt] (d/insert-at (d/get-element :debug-log) (d/build [:div#thelog.logdiv [:div.logmsg txt]]) 0) ) (defn jslog [txt] (js* "console.log(~{txt})") ) (defn...
null
https://raw.githubusercontent.com/zippy/anansi/881aa279e5e7836f3002fc2ef7623f2ee1860c9a/public/ss/src/debug.cljs
clojure
(def debug (goog.debug.DebugWindow.))
(ns ss.debug (:require [ss.dom-helpers :as d] [ss.utils :as u] [ goog.debug . DebugWindow : as debugw ] )) (defn log [txt] (d/insert-at (d/get-element :debug-log) (d/build [:div#thelog.logdiv [:div.logmsg txt]]) 0) ) (defn jslog [txt] (js* "console.log(~{txt})") ) (defn...
c1afe44f54e08467ef3878174f935f037b491e9cfcf718461088205dfcf4fb5c
sshirokov/CLSQL
aodbc-sql.lisp
-*- Mode : LISP ; Syntax : ANSI - Common - Lisp ; Base : 10 -*- ;;;; ************************************************************************* ;;;; FILE IDENTIFICATION ;;;; ;;;; Name: aodbc-sql.cl Purpose : Low - level interface for CLSQL AODBC backend Programmer : Date Started : Feb 20...
null
https://raw.githubusercontent.com/sshirokov/CLSQL/c680432aea0177677ae2ee7b810a7404f7a05cab/db-aodbc/aodbc-sql.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 -*- ************************************************************************* FILE IDENTIFICATION Name: aodbc-sql.cl (), also known as the LLGPL. ************************************************************************* interface foreign library loading routi...
Purpose : Low - level interface for CLSQL AODBC backend Programmer : Date Started : Feb 2002 This file , part of CLSQL , is Copyright ( c ) 2002 by CLSQL users are granted the rights to distribute and use this software as governed by the terms of the Lisp Lesser GNU Public License (in-pa...
872d2c43092ab29c938cfe256db208ae2c235f267fb01e9d4e4cdb1bd18380d0
thephoeron/quipper-language
USV.hs
This file is part of Quipper . Copyright ( C ) 2011 - 2014 . Please see the -- file COPYRIGHT for a list of authors, copyright holders, licensing, -- and other details. All rights reserved. -- -- ====================================================================== -- | This module provides an implementation of th...
null
https://raw.githubusercontent.com/thephoeron/quipper-language/15e555343a15c07b9aa97aced1ada22414f04af6/Algorithms/USV/USV.hs
haskell
file COPYRIGHT for a list of authors, copyright holders, licensing, and other details. All rights reserved. ====================================================================== | This module provides an implementation of the ============================================================== * Coherent arithmetic...
This file is part of Quipper . Copyright ( C ) 2011 - 2014 . Please see the main Unique Shortest Vector algorithm . module Algorithms.USV.USV where import Quipper import QuipperLib.QFT import QuipperLib.Arith import Libraries.Sampling import Algorithms.USV.Definitions import Control.Monad (foldM, zipWithM, rep...
0427d87341a212b4782d2911626a99690d02e7eff96c6ab1bbc2718193e81596
tdammers/migrant
Run.hs
module Database.Migrant.Run ( migrate , unsafeMigrate , executePlan , plan , makePlan , MigrationDirection (..) ) where import Database.Migrant.Driver.Class import Database.Migrant.MigrationName import Control.Monad (forM_) data MigrationDirection = MigrateUp | MigrateDown deriving (Show, Eq, Ord, Enum, Bounde...
null
https://raw.githubusercontent.com/tdammers/migrant/2bcbd3fc2eae1290f7cba6bd4fc7cc69ac0d24f2/migrant-core/src/Database/Migrant/Run.hs
haskell
| Create a migration plan based on the current situation on the database, and the specified target. | Make a plan from a previously loaded current situation and the specified target. ^ target ^ current Situation 0: nothing left to do Situation 1: no more "up" targets left, but more migrations exist, so we need...
module Database.Migrant.Run ( migrate , unsafeMigrate , executePlan , plan , makePlan , MigrationDirection (..) ) where import Database.Migrant.Driver.Class import Database.Migrant.MigrationName import Control.Monad (forM_) data MigrationDirection = MigrateUp | MigrateDown deriving (Show, Eq, Ord, Enum, Bounde...
312aa533efc4bfac5d2da43189370dd118fdb974b177fd856675a442253c45f9
Ericson2314/lighthouse
StablePtr.hs
# OPTIONS_GHC -fno - implicit - prelude # ----------------------------------------------------------------------------- -- | -- Module : Foreign.StablePtr Copyright : ( c ) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/base/LICENSE) -- Maintainer : -- Stability ...
null
https://raw.githubusercontent.com/Ericson2314/lighthouse/210078b846ebd6c43b89b5f0f735362a01a9af02/ghc-6.8.2/libraries/base/Foreign/StablePtr.hs
haskell
--------------------------------------------------------------------------- | Module : Foreign.StablePtr License : BSD-style (see the file libraries/base/LICENSE) Stability : provisional Portability : portable be imported via the module "Foreign". -----------------------------------------------...
# OPTIONS_GHC -fno - implicit - prelude # Copyright : ( c ) The University of Glasgow 2001 Maintainer : This module is part of the Foreign Function Interface ( FFI ) and will usually module Foreign.StablePtr * Stable references to values ) where #ifdef __GLASGOW_HASKELL__ import GHC.Stabl...
0ce26fd669eb49c11eea197ae90ee98963e691a78d0f7e0028581975983bd237
FPBench/FPBench
imperative.rkt
; ; Common compiler for all imperative languages C , JS , Go , Rust , Sollya , Scala , Fortran , MATLAB ; #lang racket (require "common.rkt" "compilers.rkt" "fpcore-visitor.rkt" "supported.rkt") (provide (all-from-out "common.rkt" "compilers.rkt" "fpcore-visitor.rkt" "supported.rkt") make-imp...
null
https://raw.githubusercontent.com/FPBench/FPBench/11153e1ef2cfbebb016b5deb628485376eb62c85/src/imperative.rkt
racket
Common compiler for all imperative languages exported for MATLAB language-specific abstractions ;;;;;;;;;;;;;;;;;;;;;;;;;;; string representation of language list of ops that use default infix formatter procedure to format any non-infix operator procedure to format constants procedure to format declarations...
C , JS , Go , Rust , Sollya , Scala , Fortran , MATLAB #lang racket (require "common.rkt" "compilers.rkt" "fpcore-visitor.rkt" "supported.rkt") (provide (all-from-out "common.rkt" "compilers.rkt" "fpcore-visitor.rkt" "supported.rkt") make-imperative-compiler default-infix-ops ...
2dcd907cacdde504768d44ef1191810d8b31eb9b892db1448caed7525fcfbb02
sadiqj/ocaml-esp32
w04.ml
[@@@ocaml.warning "+4"] type expr = E of int [@@unboxed] let f x = match x with (E e) -> e type t = A | B let g x = match x with | A -> 0 | _ -> 1
null
https://raw.githubusercontent.com/sadiqj/ocaml-esp32/33aad4ca2becb9701eb90d779c1b1183aefeb578/testsuite/tests/warnings/w04.ml
ocaml
[@@@ocaml.warning "+4"] type expr = E of int [@@unboxed] let f x = match x with (E e) -> e type t = A | B let g x = match x with | A -> 0 | _ -> 1
bf5a118099c85a14f926c365c870e4cb0758433e7be1a2a6d42c1e7c845bf0ba
digikar99/numericals
sbcl-numericals.lisp
(in-package :sbcl-numericals.internals) (define-binary-vectorized-op sbcl-numericals:d+ + :double :avx2 (r a b) (sb-assem:inst vaddpd r a b)) (define-binary-vectorized-op sbcl-numericals:d- - :double :avx2 (r a b) (sb-assem:inst vsubpd r a b)) (define-binary-vectorized-op sbcl-numericals:d* * :double :...
null
https://raw.githubusercontent.com/digikar99/numericals/4f82b74e32b054f65110ee62ba080603c92ac103/sbcl-numericals/src/sbcl-numericals.lisp
lisp
(in-package :sbcl-numericals.internals) (define-binary-vectorized-op sbcl-numericals:d+ + :double :avx2 (r a b) (sb-assem:inst vaddpd r a b)) (define-binary-vectorized-op sbcl-numericals:d- - :double :avx2 (r a b) (sb-assem:inst vsubpd r a b)) (define-binary-vectorized-op sbcl-numericals:d* * :double :...
523f4446f8034a033c5b80667b0aa92b06f8c46787cf779353eaa7046e30e858
ztellman/cantor
cantor.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/ztellman/cantor/5cde24acf95ce7c20f642f8f2ff223247acc27e1/src/cantor.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 ^{:author "Zachary Tellman"} cantor (:require [cantor [vector :as vec] [matrix :as mat] [misc :as misc] [range :as range]]) (:use [clojure.contrib.def :only (defmacro-)])) (defmacro- import-fn [sym] (let [m ...
3dddc02a787e27afef970e4b501eab3ad8cc8a95ea920e1bb9919875116f6c15
NorfairKing/mergeless
Persistent.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # module Data.Mergeless.Persistent ( -- * Client side clientMakeSyncRequestQuery, clientMergeSyncResponseQuery, -- ** Raw processors clientSyncProcessor, -- * Server side serverProcessS...
null
https://raw.githubusercontent.com/NorfairKing/mergeless/370ceea253e71f47a20c8876f6f347b0c280aafe/mergeless-persistent/src/Data/Mergeless/Persistent.hs
haskell
# LANGUAGE GADTs # * Client side ** Raw processors * Server side ** Sync processors * Utils ** Client side ** Server side side | Make a sync request on the client side | How to read a record | The server id field | The deleted field | Merge a sync response on the client side | The server id field | The de...
# LANGUAGE FlexibleContexts # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # module Data.Mergeless.Persistent clientMakeSyncRequestQuery, clientMergeSyncResponseQuery, clientSyncProcessor, serverProcessSyncQuery, serverProcessSyncWithCustomIdQuery, serverSyncProcessor, serverSync...
85f69c7c68d77d1ab51540616b599ea7022c0286e03a5b2ec9d6adc46a376b31
danr/hipspec
PropT33.hs
module PropT33 where import Prelude(Bool(..)) import Zeno -- Definitions True && x = x _ && _ = False False || x = x _ || _ = True not True = False not False = True -- Nats data Nat = S Nat | Z (+) :: Nat -> Nat -> Nat Z + y = y (S x) + y = S (x + y) (*) :: Nat -> Nat -> Nat Z * _ = Z (S x) * y = y + (x...
null
https://raw.githubusercontent.com/danr/hipspec/a114db84abd5fee8ce0b026abc5380da11147aa9/testsuite/prod/zeno_version/PropT33.hs
haskell
Definitions Nats Lists Theorem
module PropT33 where import Prelude(Bool(..)) import Zeno True && x = x _ && _ = False False || x = x _ || _ = True not True = False not False = True data Nat = S Nat | Z (+) :: Nat -> Nat -> Nat Z + y = y (S x) + y = S (x + y) (*) :: Nat -> Nat -> Nat Z * _ = Z (S x) * y = y + (x * y) (==),(/=) :: Nat...
363d1956daa115156a4d2222cb7098c2f3aeb7ec3f3de50fe83e7c5d83fc9b3c
brownplt/LambdaS5
md.ml
(**************************************************************************) (* *) : a generic graph library for OCaml Copyright ( C ) 2004 - 2010 , and (* ...
null
https://raw.githubusercontent.com/brownplt/LambdaS5/f0bf5c7baf1daa4ead4e398ba7d430bedb7de9cf/src/ocamlgraph-1.8.1/src/md.ml
ocaml
************************************************************************ This software is free software; you can redistribute it and/or described in file LICENSE....
: a generic graph library for OCaml Copyright ( C ) 2004 - 2010 , and modify it under the terms of the GNU Library General Public License version 2.1 , with the special exception on linking $ I d :...
88cb927ea2545cb04549621836a923a1106c1afcc497b816074043b73f7031dd
andrewthad/quickcheck-classes
Ring.hs
# LANGUAGE CPP # # LANGUAGE ScopedTypeVariables # # OPTIONS_GHC -Wall # module Test.QuickCheck.Classes.Ring ( #if HAVE_SEMIRINGS ringLaws #endif ) where #if HAVE_SEMIRINGS import Data.Semiring import Prelude hiding (Num(..)) #endif import Data.Proxy (Proxy) import Test.QuickCheck hiding ((.&.)) import Test...
null
https://raw.githubusercontent.com/andrewthad/quickcheck-classes/0fc6c0602bc6875cdbde34cbdbcf229a175af62f/quickcheck-classes/src/Test/QuickCheck/Classes/Ring.hs
haskell
| Tests the following properties: [/Additive Inverse/] Note that this does not test any of the laws tested by 'Test.QuickCheck.Classes.Semiring.semiringLaws'.
# LANGUAGE CPP # # LANGUAGE ScopedTypeVariables # # OPTIONS_GHC -Wall # module Test.QuickCheck.Classes.Ring ( #if HAVE_SEMIRINGS ringLaws #endif ) where #if HAVE_SEMIRINGS import Data.Semiring import Prelude hiding (Num(..)) #endif import Data.Proxy (Proxy) import Test.QuickCheck hiding ((.&.)) import Test...
b5bf6956a12896d0c51c8af26e52c6dd3570b9fbdfac51d7c77f3fd96b3a68df
clojure-interop/google-cloud-clients
CloudRedisClient.clj
(ns com.google.cloud.redis.v1beta1.CloudRedisClient "Service Description: Configures and manages Cloud Memorystore for Redis instances Google Cloud Memorystore for Redis v1beta1 The `redis.googleapis.com` service implements the Google Cloud Memorystore for Redis API and defines the following resource model fo...
null
https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.redis/src/com/google/cloud/redis/v1beta1/CloudRedisClient.clj
clojure
for example: * "
(ns com.google.cloud.redis.v1beta1.CloudRedisClient "Service Description: Configures and manages Cloud Memorystore for Redis instances Google Cloud Memorystore for Redis v1beta1 The `redis.googleapis.com` service implements the Google Cloud Memorystore for Redis API and defines the following resource model fo...
5d13babde5f78679630aee89a49b053a1f770855f36bdbb0626153b81dcef7cc
metaphor/lein-flyway
project.clj
(defproject sample "0.1.0-SNAPSHOT" :description "sample" :url "" :min-lein-version "2.0.0" :dependencies [[org.clojure/clojure "1.9.0"]] :profiles {:dev {:dependencies [[mysql/mysql-connector-java "5.1.36"]]}} ;; Usually you need put your migrations in resource classpath :resource-paths ["src-resources...
null
https://raw.githubusercontent.com/metaphor/lein-flyway/7f320138027b258a3d457ab38cd62a1bc54c29ce/example/project.clj
clojure
Usually you need put your migrations in resource classpath
(defproject sample "0.1.0-SNAPSHOT" :description "sample" :url "" :min-lein-version "2.0.0" :dependencies [[org.clojure/clojure "1.9.0"]] :profiles {:dev {:dependencies [[mysql/mysql-connector-java "5.1.36"]]}} :resource-paths ["src-resources"] :plugins [[com.github.metaphor/lein-flyway "6.0.0-SNAPSHOT...
9b5699aa8d1e6ab7f08de8034b73f851add8aae69aaf12251aac9a2faa2fa77f
facebook/duckling
Tests.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. module Duckling.Duration.MN.Tests ( tests ) where import Data.String import Prelude import Test.Tasty ...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/tests/Duckling/Duration/MN/Tests.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree.
Copyright ( c ) 2016 - present , Facebook , Inc. module Duckling.Duration.MN.Tests ( tests ) where import Data.String import Prelude import Test.Tasty import Duckling.Dimensions.Types import Duckling.Duration.MN.Corpus import Duckling.Testing.Asserts tests :: TestTree tests = testGroup "MN Tests" [ makeCor...
823033acc79fef7d3d1ec40cc2baa885eb8ad6b253d5e33274b145f5950e4ab5
linuxsoares/artigos-clojure
config.clj
(ns hello-web-app.config (:require [cprop.core :refer [load-config]] [cprop.source :as source] [mount.core :refer [args defstate]])) (defstate env :start (load-config :merge [(args) (source/from-system-props) ...
null
https://raw.githubusercontent.com/linuxsoares/artigos-clojure/6c4183e767e71168c778973dd5831e7c9edfaf4a/criando-web-application-clojure/hello-web-app/src/clj/hello_web_app/config.clj
clojure
(ns hello-web-app.config (:require [cprop.core :refer [load-config]] [cprop.source :as source] [mount.core :refer [args defstate]])) (defstate env :start (load-config :merge [(args) (source/from-system-props) ...
fb187c710cc54f3aecc69c288996b3efe951dca86d13e3b996cd004859288e42
lucasdicioccio/prodapi
Reports.hs
module Prod.Gen.Docs.Reports where import Prod.Reports import Servant.Docs import Data.Proxy import GHC.Generics import Data.Aeson import Data.Text (Text) data Example = Example { stackTrace :: [Text] } deriving (Generic) instance ToJSON Example instance FromJSON Example instance ToSample Int where toSamples _ =...
null
https://raw.githubusercontent.com/lucasdicioccio/prodapi/4c43e1d617832f8ae88cb15afada1d5ab5e46ea4/prodapi-gen/src/Prod/Gen/Docs/Reports.hs
haskell
module Prod.Gen.Docs.Reports where import Prod.Reports import Servant.Docs import Data.Proxy import GHC.Generics import Data.Aeson import Data.Text (Text) data Example = Example { stackTrace :: [Text] } deriving (Generic) instance ToJSON Example instance FromJSON Example instance ToSample Int where toSamples _ =...
8dc5ae88a34da2e4f785d134a52a8985cb1be2dc0f5cd6e13a1d7d4d1cc96e94
sdiehl/kaleidoscope
Codegen.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE GeneralizedNewtypeDeriving # module Codegen where import Data.Word import Data.String import Data.List import Data.Function import qualified Data.Map as Map import Control.Monad.State import Control.Applicative import LLVM.AST import LLVM.AST.Global import qualified LLV...
null
https://raw.githubusercontent.com/sdiehl/kaleidoscope/682bdafe6d8f90caca4cdd0adb30bd3ebd9eff7b/src/chapter3/Codegen.hs
haskell
# LANGUAGE OverloadedStrings # ----------------------------------------------------------------------------- Module Level ----------------------------------------------------------------------------- ------------------------------------------------------------------------------- Types --------------------------------...
# LANGUAGE GeneralizedNewtypeDeriving # module Codegen where import Data.Word import Data.String import Data.List import Data.Function import qualified Data.Map as Map import Control.Monad.State import Control.Applicative import LLVM.AST import LLVM.AST.Global import qualified LLVM.AST as AST import qualified LLVM...
d42394c69d99690c9d9b1f14e0527bcee9b519c0ee80071b73c464fa85b76631
basho/riak_cs
riak_cs_pbc.erl
%% --------------------------------------------------------------------- %% Copyright ( c ) 2007 - 2015 Basho Technologies , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . Y...
null
https://raw.githubusercontent.com/basho/riak_cs/c0c1012d1c9c691c74c8c5d9f69d388f5047bcd2/src/riak_cs_pbc.erl
erlang
--------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permiss...
Copyright ( c ) 2007 - 2015 Basho Technologies , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY ...
1c72ee0d1cd41a48954b5ed3a97ed9cae0f2958d765540c4610957dee0569db2
dhruvp/angular-phonecat-re-frame
project.clj
(defproject phonecat-re-frame "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :source-paths ["src/clj" "src/cljs"] :dependencies [[org.clojure/clojure "1.6.0"] [cljsjs/react "0.12.2-5"] ...
null
https://raw.githubusercontent.com/dhruvp/angular-phonecat-re-frame/f2410203ce1c0946058544099f2d3556280b48de/project.clj
clojure
:externs ["react/externs/react.js"]
(defproject phonecat-re-frame "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :source-paths ["src/clj" "src/cljs"] :dependencies [[org.clojure/clojure "1.6.0"] [cljsjs/react "0.12.2-5"] ...
cac77762c60f219c652ca45897729170f83c5ff723ad861567c14308ff705e40
mongodb-haskell/mongodb
Example.hs
# LANGUAGE CPP # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ExtendedDefaultRules # module Main (main) where import Database.MongoDB (Action, Document, Document, Value, access, close, connect, delete, exclude, find, host, insertMany, master, project, rest, ...
null
https://raw.githubusercontent.com/mongodb-haskell/mongodb/6d338dac692b6ae855a72b2fbf626462fffb0515/doc/Example.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE CPP # # LANGUAGE ExtendedDefaultRules # module Main (main) where import Database.MongoDB (Action, Document, Document, Value, access, close, connect, delete, exclude, find, host, insertMany, master, project, rest, select,...
5f58b9c45e629250a911ee2cc51a141a3140bf37a5d2a919cb7e0f5c86b10cba
w7cook/AoPL
Lexer.hs
module Lexer where import Data.Char import Data.List BEGIN : BasicToken BEGIN : Token data Token = Digits Int | Symbol String END : BasicToken | TokenKeyword String | TokenIdent String --END:Token deriving Show lexer :: [String] -> [String] -> String -> [Token] lexer symbols keywo...
null
https://raw.githubusercontent.com/w7cook/AoPL/af2f9d31ec658e9d175735335ad27101cca3e247/src/Lexer.hs
haskell
END:Token
module Lexer where import Data.Char import Data.List BEGIN : BasicToken BEGIN : Token data Token = Digits Int | Symbol String END : BasicToken | TokenKeyword String | TokenIdent String deriving Show lexer :: [String] -> [String] -> String -> [Token] lexer symbols keywords str = le...
00f855b753e54362b3fc175b3ac53a9a5d390931ad5c7a2bf552734e58320bba
arsalan0c/cdp-hs
BackgroundService.hs
{-# LANGUAGE OverloadedStrings, RecordWildCards, TupleSections #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE FlexibleContexts # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleInstances # # LANGUAGE DeriveGeneric # # LANGUAGE TypeFamilies # {- | = BackgroundService Defines events for background web platform ...
null
https://raw.githubusercontent.com/arsalan0c/cdp-hs/6e70dbc59d394a0794b4a92e95f8851c11a3a624/src/CDP/Domains/BackgroundService.hs
haskell
# LANGUAGE OverloadedStrings, RecordWildCards, TupleSections # | = BackgroundService Defines events for background web platform features. The Background Service that will be associated with the commands/events. Every Background Service operates independently, but they share the same API. A key-value pair...
# LANGUAGE ScopedTypeVariables # # LANGUAGE FlexibleContexts # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleInstances # # LANGUAGE DeriveGeneric # # LANGUAGE TypeFamilies # module CDP.Domains.BackgroundService (module CDP.Domains.BackgroundService) where import Control.Applicative ((<$>)) impor...
9ad61ed2aada1b072a768d52e83d95d6bb0e391e9d1fc6d9bb72f5a4a95cb722
BranchTaken/Hemlock
test_normalize.ml
open! Basis.Rudiments open! Basis open Path let test () = List.iter [ ""; "/"; "//"; "////"; "../a"; "/../a"; "//../a"; "///../a"; "/../../a"; "/./.././../a"; "./../a"; "/./../a"; "a/b//../c"; "a/b/./../c"; "///"; "///."; "///.."; "///a"; "//./"; "//./....
null
https://raw.githubusercontent.com/BranchTaken/Hemlock/ed397cf3294ca397024e69eb3b1ed5f1db773db6/bootstrap/test/basis/path/test_normalize.ml
ocaml
open! Basis.Rudiments open! Basis open Path let test () = List.iter [ ""; "/"; "//"; "////"; "../a"; "/../a"; "//../a"; "///../a"; "/../../a"; "/./.././../a"; "./../a"; "/./../a"; "a/b//../c"; "a/b/./../c"; "///"; "///."; "///.."; "///a"; "//./"; "//./....
ce22009796073a9f5a979b7e9acc042ed8b574a3831ff9f184162a24796428fd
DomainDrivenArchitecture/dda-k8s-crate
apple.clj
Licensed to the Apache Software Foundation ( ASF ) under one ; or more contributor license agreements. See the NOTICE file ; distributed with this work for additional information ; regarding copyright ownership. The ASF licenses this file to you under the Apache License , Version 2.0 ( the ; "License"); you may not...
null
https://raw.githubusercontent.com/DomainDrivenArchitecture/dda-k8s-crate/eaeb4d965a63692973d3c1d98759fbdf756596b2/main/src/dda/pallet/dda_k8s_crate/infra/apple.clj
clojure
or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file "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 b...
Licensed to the Apache Software Foundation ( ASF ) under one to you under the Apache License , Version 2.0 ( the distributed under the License is distributed on an " AS IS " BASIS , (ns dda.pallet.dda-k8s-crate.infra.apple (:require [clojure.spec.alpha :as s] [schema.core :as sch] [dda.provision :as p]...
5403d4109efc7901afc8ad6ce4a73f445aebca878205e5cd8de2cfaf1d87de2a
jaked/froc
proto.ml
module type Sync = sig val get_board : unit -> int option array array end module type Lwt = sig val get_board : unit -> int option array array Lwt.t end
null
https://raw.githubusercontent.com/jaked/froc/6068a1fab883ed9254bfeb53a1f9c15e8af0bb20/examples/froc-dom/sudoku/proto.ml
ocaml
module type Sync = sig val get_board : unit -> int option array array end module type Lwt = sig val get_board : unit -> int option array array Lwt.t end
a2ca1ce8996e03fe1535b948e99b24e045b63cde625758f8dbbe914e2954d28a
NorfairKing/haskell-testing-intro
Lib.hs
module Lib ( someFunc , myReverse , myAbs , writeFileDouble ) where someFunc :: IO () someFunc = putStrLn "someFunc" myReverse :: [a] -> [a] myReverse [] = [] myReverse (x:xs) = myReverse xs ++ [x] myAbs :: Int -> Int myAbs x | x < 0 = -x | x >= 0 = x writeFileDouble :: FilePath -> Strin...
null
https://raw.githubusercontent.com/NorfairKing/haskell-testing-intro/0f8c433978840307a5237dcf2c8af22bbdf54dc9/src/Lib.hs
haskell
module Lib ( someFunc , myReverse , myAbs , writeFileDouble ) where someFunc :: IO () someFunc = putStrLn "someFunc" myReverse :: [a] -> [a] myReverse [] = [] myReverse (x:xs) = myReverse xs ++ [x] myAbs :: Int -> Int myAbs x | x < 0 = -x | x >= 0 = x writeFileDouble :: FilePath -> Strin...
8ef1bcfc382588f7f1065428a3508e2ac45eb2462d661ca81e7736e8cf409fd8
ocaml/uchar
topkg.ml
--------------------------------------------------------------------------- Copyright ( c ) 2014 . All rights reserved . Distributed under the BSD3 license , see license at the end of the file . % % NAME%% release % % --------------------------------------------------------------------------- Cop...
null
https://raw.githubusercontent.com/ocaml/uchar/f9988830581a1f233d32e79aaacf8af76ddb9613/pkg/topkg.ml
ocaml
Public api * Build environment access * [bool key] declares [key] as being a boolean key in the environment. Specifing key=(true|false) on the command line becomes mandatory. * [native] is [bool "native"]. * [native_dylink] is [bool "native-dynlink"] * Exts defines sets of file extensions. * The type for e...
--------------------------------------------------------------------------- Copyright ( c ) 2014 . All rights reserved . Distributed under the BSD3 license , see license at the end of the file . % % NAME%% release % % --------------------------------------------------------------------------- Cop...
3a171c7e11a9769cb18d929ec118b19c2b1451e13c7f44f083e15fa49d2c903e
ijvcms/chuanqi_dev
map_20233.erl
-module(map_20233). -export([ range/0, data/0 ]). range() -> {72, 48}. data() -> { {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1...
null
https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/map_data/map_20233.erl
erlang
-module(map_20233). -export([ range/0, data/0 ]). range() -> {72, 48}. data() -> { {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1...
518577f39fb1abd3146403ab93d31f2c4595b0f8de9e4d2fa8083b54b9a0805d
godfat/sandbox
tjs2hs.hs
import Control.Applicative hiding ((<|>)) import Text.ParserCombinators.Parsec pInt : : pInt = do -- val <- many1 digit return ( read ) -- pDouble :: Parser Double -- pDouble = do left -- char '.' right -- return (read (show left ++ "." ++ show right)) pInt :: Parser Int pInt = read...
null
https://raw.githubusercontent.com/godfat/sandbox/eb6294238f92543339adfdfb4ba88586ba0e82b8/haskell/parsing/tjs2hs.hs
haskell
val <- many1 digit pDouble :: Parser Double pDouble = do char '.' return (read (show left ++ "." ++ show right))
import Control.Applicative hiding ((<|>)) import Text.ParserCombinators.Parsec pInt : : pInt = do return ( read ) left right pInt :: Parser Int pInt = read <$> many1 digit pDouble :: Parser Double pDouble = num <$> pInt <*> (char '.' *> pInt) where num l r = read $ show l ++ "....
6fe08bef0a86b9ac9598069c2c457edf5f425d75beb26914165fad432b9dd29a
onedata/op-worker
file_subscription.erl
%%%------------------------------------------------------------------- @author ( C ) 2016 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%------------------------------------------------------------------- %%% @doc File subscription model. %%% @end %%%-...
null
https://raw.githubusercontent.com/onedata/op-worker/b09f05b6928121cec4d6b41ce8037fe056e6b4b3/src/modules/datastore/models/file/file_subscription.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- @doc File subscription model. @end ------------------------------------------------------------------- API datastore_model callbacks =========================================...
@author ( C ) 2016 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . -module(file_subscription). -author("Krzysztof Trzepla"). -include("modules/events/types.hrl"). -include("modules/datastore/datastore_models.hrl"). -include("modules/datastore/datastore_runner.hrl"...
750b7cb6b78905baa781e77e9d3799d642821731708a8f55c7bb74515cef422b
NorfairKing/sydtest
Around.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE IncoherentInstances # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # module Test.Syd.Def.Around where import Control.Exception im...
null
https://raw.githubusercontent.com/NorfairKing/sydtest/61f8cc4bc010140cca1613b9aee173c87e3cfe9d/sydtest/src/Test/Syd/Def/Around.hs
haskell
# LANGUAGE GADTs # # LANGUAGE OverloadedStrings # | Run a custom action before every spec item, to set up an inner resource 'inner'. Note that this function turns off shrinking. See | The function to run before every test, to produce the inner resource | Run a custom action before every spec item without setting...
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE IncoherentInstances # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # module Test.Syd.Def.Around where import Control.Exception import Control.Monad.Reader import Control.Monad.Writer.Stri...
827eed62319b2a71d288c8b2b7db00c7a56ea6eef67b297e3b6e90f2076c3338
alanz/ghc-exactprint
OutOfHeap.hs
import qualified Data.Array.Unboxed as UA import Data.Word main :: IO () main = print (UA.listArray (1, 2^(20::Int)) (repeat 0) :: UA.UArray Int Word64) -- this unboxed array should at least take: 2 ^ 20 * 64 bits = 8 * ( 2 ^ 20 bytes ) = 8 MiB ( in heap )
null
https://raw.githubusercontent.com/alanz/ghc-exactprint/b6b75027811fa4c336b34122a7a7b1a8df462563/tests/examples/ghc80/OutOfHeap.hs
haskell
this unboxed array should at least take:
import qualified Data.Array.Unboxed as UA import Data.Word main :: IO () main = print (UA.listArray (1, 2^(20::Int)) (repeat 0) :: UA.UArray Int Word64) 2 ^ 20 * 64 bits = 8 * ( 2 ^ 20 bytes ) = 8 MiB ( in heap )
9f8cfb2e082619dd6fb7566224ace8f3127780f7eb410c755fc597a3e1f67893
jaspervdj/advent-of-code
Bounded.hs
-- | Simple 2D grids backed by a vector. {-# LANGUAGE DeriveFoldable #-} {-# LANGUAGE DeriveFunctor #-} {-# LANGUAGE DeriveTraversable #-} # LANGUAGE RecordWildCards # module AdventOfCode.Grid.Bounded ( G.Dir (..) , G.turnLeft , G.turnRight , G.turnAround , G.Pos , G.origin , G.mo...
null
https://raw.githubusercontent.com/jaspervdj/advent-of-code/2795c41f55b6cb9dfa05d49d15c53fe2aeb9afcd/lib/hs/AdventOfCode/Grid/Bounded.hs
haskell
| Simple 2D grids backed by a vector. # LANGUAGE DeriveFoldable # # LANGUAGE DeriveFunctor # # LANGUAGE DeriveTraversable # # UNPACK # # UNPACK # # UNPACK # # INLINABLE mapWithKey #
# LANGUAGE RecordWildCards # module AdventOfCode.Grid.Bounded ( G.Dir (..) , G.turnLeft , G.turnRight , G.turnAround , G.Pos , G.origin , G.move , G.neighbours , G.diagonal , G.manhattan , Grid (..) , generate , fromString , mapWithKey , lookup , inde...
ee105ecfb5a97fd9d029c1c7e3cd1a024d1319cfecac6062fb6b6f3f77daedc3
herd/herdtools7
symbValue.mli
(****************************************************************************) (* the diy toolsuite *) (* *) , University College London , UK . , INRIA Par...
null
https://raw.githubusercontent.com/herd/herdtools7/b22ec02af1300a45e2b646cce4253ecd4fa7f250/lib/symbValue.mli
ocaml
************************************************************************** the diy toolsuite en Automatique and ...
, University College London , UK . , INRIA Paris - Rocquencourt , France . Copyright 2010 - present Institut National de Recherche en Informatique et This software is governed by the CeCILL - B license under French law and modify and/ or redistribu...
70d76eabb2616413218d1969e486b5c9c84f02851858f9b64e65e8e62e42d21f
dstarcev/stepic-haskell
Task20.hs
module Module4.Task20 where eitherToMaybe :: Either a b -> Maybe a eitherToMaybe (Left a) = Just a eitherToMaybe (Right _) = Nothing
null
https://raw.githubusercontent.com/dstarcev/stepic-haskell/6a8cf4b3cc17333ac4175e825db57dbe151ebae0/src/Module4/Task20.hs
haskell
module Module4.Task20 where eitherToMaybe :: Either a b -> Maybe a eitherToMaybe (Left a) = Just a eitherToMaybe (Right _) = Nothing
85a23997470c840c20a84791b7136d781373e66ed09f3f7e70a2083d5c046255
owlbarn/owl_opt
owl_opt.ml
* { 1 Single - precision module } module S = struct (** Single-precision vanilla gradient descent (see: {!module: Owl_opt.S.Gd.Make}). *) module Gd = Gd_s * Single - precision ( see : { ! module : Owl_opt . S.Adam . Make } ) . module Adam = Adam_s * Single - precision Rmsprop ( see : { ! module : Owl_opt . S....
null
https://raw.githubusercontent.com/owlbarn/owl_opt/c3b34072dddbce2d70e1698c5f1fd84d783f9cef/src/opt/owl_opt.ml
ocaml
* Single-precision vanilla gradient descent (see: {!module: Owl_opt.S.Gd.Make}). * {1 Double-precision module} * Double-precision vanilla gradient descent (see: {!module:Owl_opt.D.Gd.Make}). * {1 Prm module type}
* { 1 Single - precision module } module S = struct module Gd = Gd_s * Single - precision ( see : { ! module : Owl_opt . S.Adam . Make } ) . module Adam = Adam_s * Single - precision Rmsprop ( see : { ! module : Owl_opt . S.Rmsprop . Make } ) . module Rmsprop = Rmsprop_s end module D = struct module Gd = ...
71b6996f94315c6423a54e9186e7679ec13b889ed4078fa492e52855328a1aa0
diku-dk/futhark
TypesValues.hs
module Futhark.Internalise.TypesValues ( -- * Internalising types internaliseReturnType, internaliseLambdaReturnType, internaliseEntryReturnType, internaliseType, internaliseParamTypes, internaliseLoopParamType, internalisePrimType, internalisedTypeSize, internaliseSumType, --...
null
https://raw.githubusercontent.com/diku-dk/futhark/98e4a75e4de7042afe030837084764bbf3c6c66e/src/Futhark/Internalise/TypesValues.hs
haskell
* Internalising types * Internalising values Generate proper certificates for the placeholder accumulator certificates produced by internaliseType (identified with tag 0). Only needed when we cannot use 'fixupKnownTypes'. | As 'internaliseReturnType', but returns components of a top-level tuple type piecemeal. ...
module Futhark.Internalise.TypesValues internaliseReturnType, internaliseLambdaReturnType, internaliseEntryReturnType, internaliseType, internaliseParamTypes, internaliseLoopParamType, internalisePrimType, internalisedTypeSize, internaliseSumType, internalisePrimValue, ) where...
3593df1bbc431be4e20bc84b76c06d3cc6dfd15f3ab17b095a8d440c6294eabb
plumatic/grab-bag
docs_test.clj
(ns domain.docs-test (:use clojure.test plumbing.core plumbing.test domain.doc-test-utils domain.docs) (:require [schema.core :as s] [plumbing.io :as io] [domain.docs.fitness-stats :as fitness-stats] [domain.docs.products :as products] [domain.docs.views-by-client :as views-by-client] [dom...
null
https://raw.githubusercontent.com/plumatic/grab-bag/a15e943322fbbf6f00790ce5614ba6f90de1a9b5/lib/domain/test/domain/docs_test.clj
clojure
Can we read super-old docs, retrofitted from client-docs way back when? coercion tested by validation schema validation confirms conversion can we read docs with new keys, and just ignore them?
(ns domain.docs-test (:use clojure.test plumbing.core plumbing.test domain.doc-test-utils domain.docs) (:require [schema.core :as s] [plumbing.io :as io] [domain.docs.fitness-stats :as fitness-stats] [domain.docs.products :as products] [domain.docs.views-by-client :as views-by-client] [dom...