_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
b884988b7bdf5931ed5a95b6da9d83fce8f2438daa8e3d5331673f9b8ee396d6
bollu/cellularAutomata
DeriveMonoComonadTH.hs
# LANGUAGE TemplateHaskell # module DeriveMonoComonadTH where import Cellular import Control.Monad import Language.Haskell.TH import Language.Haskell.TH.Syntax import Data.MonoTraversable import Control.Comonad type Constructorname = Name type Typename = Name type Variablename = Name type NewtypeInfo a = a type Inne...
null
https://raw.githubusercontent.com/bollu/cellularAutomata/1c77ff5d6d59678a845bde7e1747d45d0ca0989f/src/DeriveMonoComonadTH.hs
haskell
# LANGUAGE TemplateHaskell # module DeriveMonoComonadTH where import Cellular import Control.Monad import Language.Haskell.TH import Language.Haskell.TH.Syntax import Data.MonoTraversable import Control.Comonad type Constructorname = Name type Typename = Name type Variablename = Name type NewtypeInfo a = a type Inne...
b851db38c521b5291aa2af012139782150e6e557435842d940799090280b8f67
ndmitchell/shake
Shake.hs
# LANGUAGE TypeFamilies , ConstraintKinds , PatternSynonyms # -- | This module is used for defining Shake build systems. As a simple example of a Shake build system, let us build the file @result.tar@ from the files listed by @result.txt@ : -- -- @ -- import "Development.Shake" -- import "Development.Shake.FilePat...
null
https://raw.githubusercontent.com/ndmitchell/shake/99c5a7a4dc1d5a069b13ed5c1bc8e4bc7f13f4a6/src/Development/Shake.hs
haskell
| This module is used for defining Shake build systems. As a simple example of a Shake build system, @ import "Development.Shake" import "Development.Shake.FilePath" main = 'shakeArgs' 'shakeOptions' $ do 'want' [\"result.tar\"] \"*.tar\" '%>' \\out -> do contents \<- 'readFileLines' $ out 'De...
# LANGUAGE TypeFamilies , ConstraintKinds , PatternSynonyms # let us build the file @result.tar@ from the files listed by @result.txt@ : We start by importing the modules defining both Shake and routines for manipulating ' FilePath ' values . We define @main@ to call ' shake ' with the default ' shakeOptio...
19ad4a83b6832bb5ae425b859a37e4404fe2a3bc04182b4339d1512d4f7fadc8
DSLsofMath/DSLsofMath
ProofByContradition.hs
What would it take to do the proof that sqrt 2 is irrational in Haskell ? A sketch . data ZZ where GCD,(:*:) :: ZZ -> ZZ -> ZZ One :: ZZ Two :: ZZ type Pos = ZZ data (==) (a::ZZ) (b::ZZ) where data GCD (a::ZZ) (b::ZZ) where data R x where Decomposition :: (forall (a::ZZ). forall (b::Pos). Not ((b ':*: x) ==...
null
https://raw.githubusercontent.com/DSLsofMath/DSLsofMath/216464afda03c54709fae39e626ca19e8053444e/L/02/ProofByContradition.hs
haskell
squareEq :: a == b -> a :*: a == b :*: b squareEq = error "assumed"
What would it take to do the proof that sqrt 2 is irrational in Haskell ? A sketch . data ZZ where GCD,(:*:) :: ZZ -> ZZ -> ZZ One :: ZZ Two :: ZZ type Pos = ZZ data (==) (a::ZZ) (b::ZZ) where data GCD (a::ZZ) (b::ZZ) where data R x where Decomposition :: (forall (a::ZZ). forall (b::Pos). Not ((b ':*: x) ==...
2434dca37b5d9482c76f3acf712ba376040298f137cbc256d891be42f0605103
erlangonrails/devdb
trunc_io.erl
` ` 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 Public License along with your Erlang distribution . If not , it can be %% retrieved via th...
null
https://raw.githubusercontent.com/erlangonrails/devdb/0e7eaa6bd810ec3892bfc3d933439560620d0941/dev/ringo/ringogw/src/trunc_io.erl
erlang
compliance with the License. You should have received a copy of the retrieved via the world wide web at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. AB. All Rights Reserved.'' Module to print...
` ` 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 Erlang Public License along with your Erlang distribution . If not , it can be Software distributed under the License is distributed on an " AS IS " The Initial Deve...
d74bedf233d263f22d80e8fe27e1003c0eb65c86b3535da927fe275321484940
artyom-poptsov/guile-dsv
ascii.scm
;; Example: $ echo -e " a , b , c\na1,b1,c1\na2,b2,c2\n " | dsv -b " ascii " ;; .-----------------------------. ;; | a | b | c | |---------+---------+---------| ;; | a1 | b1 | c1 | |---------+---------+---------| ;; | a2 | b2 | c2 | ;; '---------------------------...
null
https://raw.githubusercontent.com/artyom-poptsov/guile-dsv/f740f631af87cd719a8e194f951a1c9c4a6dc6df/presets/ascii.scm
scheme
Example: .-----------------------------. | a | b | c | | a1 | b1 | c1 | | a2 | b2 | c2 | '-----------------------------' With a header: .-----------------------------. | a | b | c | |=========+=========+=========| | a1 | b1 | c1 ...
$ echo -e " a , b , c\na1,b1,c1\na2,b2,c2\n " | dsv -b " ascii " |---------+---------+---------| |---------+---------+---------| $ echo -e " a , b , c\na1,b1,c1\na2,b2,c2\n " | dsv -b " ascii " -H |---------+---------+---------| ((name . "ascii") (description . "Plain ASCII table.")...
768bc116e8ab4b82e9d8b1b5f648214699ff6da601ce25c5cc2247ef553f1c7b
marcoheisig/Petalisp
petalisp.lisp
© 2016 - 2023 - license : GNU AGPLv3 -*- coding : utf-8 -*- (in-package #:petalisp.graphviz) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Classes (defclass petalisp-graph (any-graph) ()) (defclass petalisp-edge (any-edge) ()) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;...
null
https://raw.githubusercontent.com/marcoheisig/Petalisp/a1c85cf71da445ef9c7913cd9ddb5149373211a7/code/graphviz/petalisp.lisp
lisp
Classes Methods
© 2016 - 2023 - license : GNU AGPLv3 -*- coding : utf-8 -*- (in-package #:petalisp.graphviz) (defclass petalisp-graph (any-graph) ()) (defclass petalisp-edge (any-edge) ()) (defmethod graphviz-node-attributes ((graph petalisp-graph) (node t)) `(:shape :box :style :filled :penwidth 2.0)...
765b34d639659246c7115bb6440ac636ebfa45a1f8d6a148bea49bf708798a7f
tfausak/monadoc-5
Utf8.hs
module Monadoc.Utility.Utf8 where import qualified Data.ByteString as ByteString import qualified Data.Text as Text import qualified Data.Text.Encoding as Text import qualified Data.Text.Encoding.Error as Text import Monadoc.Prelude | Converts a string into a UTF-8 encoded byte string . See ' fromText ' . fromStrin...
null
https://raw.githubusercontent.com/tfausak/monadoc-5/5361dd1870072cf2771857adbe92658118ddaa27/src/lib/Monadoc/Utility/Utf8.hs
haskell
| Converts a UTF-8 encoded byte string into a string. See 'toText'. character.
module Monadoc.Utility.Utf8 where import qualified Data.ByteString as ByteString import qualified Data.Text as Text import qualified Data.Text.Encoding as Text import qualified Data.Text.Encoding.Error as Text import Monadoc.Prelude | Converts a string into a UTF-8 encoded byte string . See ' fromText ' . fromStrin...
0ef6d02db5fc8732ae577b6220f9ceb230f1cf855d199556edb9087cd344ac70
ivanperez-keera/Yampa
Simulation.hs
# LANGUAGE CPP # -- | Description : Test cases for . Simulation Copyright : ( c ) and , Yale University , 2003 - 2004 Authors : , module Test.FRP.Yampa.Simulation ( tests ) where #if __GLASGOW_HASKELL__ < 710 import Control.Applicative ((<*>)) import Data.Functor ((<$>)) #endif ...
null
https://raw.githubusercontent.com/ivanperez-keera/Yampa/7585678591eb98bcd23be1d6d4661c74de34b1f1/yampa-test/tests/Test/FRP/Yampa/Simulation.hs
haskell
| * Reactimation ** Low-level reactimation interface For each sample, add a Just to the value of the sample make the input compatible with what 'react' expects, and use 'react' to * Embedding Make each element the sum of all elements up to that point. We add the accumulator to the current value (+), and make th...
# LANGUAGE CPP # Description : Test cases for . Simulation Copyright : ( c ) and , Yale University , 2003 - 2004 Authors : , module Test.FRP.Yampa.Simulation ( tests ) where #if __GLASGOW_HASKELL__ < 710 import Control.Applicative ((<*>)) import Data.Functor ((<$>)) #endif impo...
0298f8e27c0581d3e7ae7b9c1ddae6c00e5635ad87ef77fa6b14d28a7c744b91
slyrus/mcclim-old
fontconfig.lisp
;;; -*- Mode: Lisp; Syntax: Common-Lisp; Package: MCCLIM-FREETYPE; -*- ;;; --------------------------------------------------------------------------- ;;; Title: Experimental FreeType support Created : 2003 - 05 - 25 16:32 Author : < > ;;; License: LGPL (See file COPYING for details). ;;; ------------...
null
https://raw.githubusercontent.com/slyrus/mcclim-old/354cdf73c1a4c70e619ccd7d390cb2f416b21c1a/Experimental/freetype/fontconfig.lisp
lisp
-*- Mode: Lisp; Syntax: Common-Lisp; Package: MCCLIM-FREETYPE; -*- --------------------------------------------------------------------------- Title: Experimental FreeType support License: LGPL (See file COPYING for details). --------------------------------------------------------------------------- This l...
Created : 2003 - 05 - 25 16:32 Author : < > ( c ) copyright 2008 by modify it under the terms of the GNU Library General Public version 2 of the License , or ( at your option ) any later version . Library General Public License for more details . You should have received a copy of the GNU Libr...
82fc73039f831734768887980f943045ee2e995bdd52538cd72df332f6e0eb5c
hipsleek/hipsleek
cjava.ml
#include "xdebug.cppo" open VarGen Pretty printing to Java for Cast . Pretty printing to Java for Cast. *) open Globals open Cast module CP = Cpure module H = Hashtbl type bind_map = (ident, (ident * ident)) H.t type prim_map = (ident, (ident list -> string)) H.t let binary_prim op args = String.co...
null
https://raw.githubusercontent.com/hipsleek/hipsleek/596f7fa7f67444c8309da2ca86ba4c47d376618c/bef_indent/cjava.ml
ocaml
(\* pretty printing for primitive types *\) | Bool -> "boolean " | Float -> "float " | Int -> "int " | Void -> "void " | List -> "list" (\* pretty printing for types *\) let rec string_of_typ = function | Prim t -> string_of_prim_type t ...
#include "xdebug.cppo" open VarGen Pretty printing to Java for Cast . Pretty printing to Java for Cast. *) open Globals open Cast module CP = Cpure module H = Hashtbl type bind_map = (ident, (ident * ident)) H.t type prim_map = (ident, (ident list -> string)) H.t let binary_prim op args = String.co...
deff40ca839b2fe4cf1657ed47b9bfcf8fa7f3b114894e736f9d1b12a92e33ea
mirage/cactus
ext.ml
include Ext_intf let ( // ) a b = a ^ "/" ^ b module Make_ext (InKey : Input.Key) (InValue : Input.Value) (Size : Input.Size) : S with type key = InKey.t and type value = InValue.t = struct type key = InKey.t type value = InValue.t module Params = Params.Make (Size) (InKey) (InValue) module Common = Field...
null
https://raw.githubusercontent.com/mirage/cactus/85378dd8e2d217cc8338742ed241f4faf3b72e2c/src/ext.ml
ocaml
* STAT WRAPPERS * Use a list of caches to allow [empty_cache ()] to return a fresh cache. The address of the neighbour of a vertex is its neighbour in the parent mapping. There are no nodes above : we are at the root. [main] and [neighbour] are entries of the node at address [address]. ...
include Ext_intf let ( // ) a b = a ^ "/" ^ b module Make_ext (InKey : Input.Key) (InValue : Input.Value) (Size : Input.Size) : S with type key = InKey.t and type value = InValue.t = struct type key = InKey.t type value = InValue.t module Params = Params.Make (Size) (InKey) (InValue) module Common = Field...
bb78d050ee424c90ea5531b947b05fe39f6c4e97f93e543919f1458c93a59c36
plumatic/schema
macros.clj
(ns schema.macros "Macros and macro helpers used in schema.core." (:refer-clojure :exclude [simple-symbol?]) (:require [clojure.string :as str] [schema.utils :as utils])) can remove this once we drop Clojure 1.8 support (defn- simple-symbol? [x] (and (symbol? x) (not (namespace x)))) ;;;;;;;;;;...
null
https://raw.githubusercontent.com/plumatic/schema/d4904f20d33f12a9c42ff2f600595f2a29957ddd/src/clj/schema/macros.clj
clojure
Helpers used in schema.core. this whitelist is shamelessly copied from scala #L42 relies on (register-schema-print-as-explain schema.core.Schema) Helpers for processing and normalizing element/argument schemas in s/defrecord and s/(de)fn :- Var propagate method cache to inner method. via the __methodImplCache...
(ns schema.macros "Macros and macro helpers used in schema.core." (:refer-clojure :exclude [simple-symbol?]) (:require [clojure.string :as str] [schema.utils :as utils])) can remove this once we drop Clojure 1.8 support (defn- simple-symbol? [x] (and (symbol? x) (not (namespace x)))) (defn clj...
8fac6fd7e1e911436095e5ac7dd47986e79cec21085e35fb119b49a0cfe842ac
clojure-interop/aws-api
AWSOpsWorksClient.clj
(ns com.amazonaws.services.opsworks.AWSOpsWorksClient "Client for accessing AWS OpsWorks. All service calls made using this client are blocking, and will not return until the service call completes. AWS OpsWorks Welcome to the AWS OpsWorks Stacks API Reference. This guide provides descriptions, syntax, and us...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.opsworks/src/com/amazonaws/services/opsworks/AWSOpsWorksClient.clj
clojure
not available in the AWS console) if you
(ns com.amazonaws.services.opsworks.AWSOpsWorksClient "Client for accessing AWS OpsWorks. All service calls made using this client are blocking, and will not return until the service call completes. AWS OpsWorks Welcome to the AWS OpsWorks Stacks API Reference. This guide provides descriptions, syntax, and us...
654654e21d353642562ec84af2ca760d4b6195c90972dc25ec57379947e64499
ocaml-flambda/flambda-backend
cmmgen.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-flambda/flambda-backend/9c5d6eecfc6fc1cf067e53e530700c85a0a7b1dd/backend/cmmgen.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the [@@@ocaml.warning "-40"] open Misc open Arch open Asttypes open Primitive open Types open Lambda open C...
3c999c0b2ccb1de97d5edcd991ec3d022a48c70714addfc25a02a0565778611b
acl2/acl2
document.lisp
Built - Ins Library ; Copyright ( C ) 2023 Kestrel Institute ( ) ; License : A 3 - clause BSD license . See the LICENSE file distributed with ACL2 . ; Author : ( ) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (in-package "ACL2") (include-book "collect") (include-book ...
null
https://raw.githubusercontent.com/acl2/acl2/44f76f208004466a9e6cdf3a07dac98b3799817d/books/kestrel/built-ins/document.lisp
lisp
We create XDOC topics that list built-in axioms and theorems, (1) according to their rule classes Turn a list of names (of axioms and theorems) into a string consisting of a sequence of corresponding XDOC preprocessor @(def ...) directives.
Built - Ins Library Copyright ( C ) 2023 Kestrel Institute ( ) License : A 3 - clause BSD license . See the LICENSE file distributed with ACL2 . Author : ( ) (in-package "ACL2") (include-book "collect") (include-book "xdoc/top" :dir :system) organized in two different ways , as defined in collect.li...
f6dd592757c448b875179273a1a482b18227922ea8ee35910e8a7cae9bbb9ba4
Perry961002/SICP
exe3.1-make-accumulator.scm
(define (make-accumulator num) (lambda (x) (set! num (+ num x)) num)) ;测试 ( define A ( make - accumulator 5 ) ) ( A 20 ) = = > 25 ( A 5 ) = = > 30 ( define B ( make - accumulator 10 ) ) ( B 20 ) = = > 30
null
https://raw.githubusercontent.com/Perry961002/SICP/89d539e600a73bec42d350592f0ac626e041bf16/Chap3/exercise/exe3.1-make-accumulator.scm
scheme
测试
(define (make-accumulator num) (lambda (x) (set! num (+ num x)) num)) ( define A ( make - accumulator 5 ) ) ( A 20 ) = = > 25 ( A 5 ) = = > 30 ( define B ( make - accumulator 10 ) ) ( B 20 ) = = > 30
1021f1085989784f84d13ee830708325a27e1a98b6171bc0f07245eda9260ff9
FreekPaans/clojure-ddd-layered-example
application_service.clj
(ns layered-example.application-service (:require [layered-example.domain.cargo.cargo :as cargo] [layered-example.domain.cargo.cargo-repository :as cargo-repository])) (defn create-new-cargo! [& args ] (let [new-cargo (apply cargo/create-new-cargo args)] (cargo-repository/add! new-cargo))) (defn b...
null
https://raw.githubusercontent.com/FreekPaans/clojure-ddd-layered-example/1c306f7a95a59da29a0545a074b6117657cf0847/src/layered_example/application_service.clj
clojure
(ns layered-example.application-service (:require [layered-example.domain.cargo.cargo :as cargo] [layered-example.domain.cargo.cargo-repository :as cargo-repository])) (defn create-new-cargo! [& args ] (let [new-cargo (apply cargo/create-new-cargo args)] (cargo-repository/add! new-cargo))) (defn b...
44245fcf694a32745374c8b5b9290fc61e348cac8535cc8603b013e38d824a08
jordanthayer/ocaml-search
tsp_aseps_algs.ml
open Tsp_instances open Tsp open Tsp_algs (** A* eps **) let aseps wt p lim = unwrap_results (Aseps.a_star_eps ~limit:lim (Tsp.make_initial p.dists p.symmetric) Tsp.goal_p (Tsp.make_expand p.dists p.symmetric) (Tsp.make_hd p.dists p.symmetric) wt) let asepslow wt p lim = unwrap_results (Aseps.a...
null
https://raw.githubusercontent.com/jordanthayer/ocaml-search/57cfc85417aa97ee5d8fbcdb84c333aae148175f/tsp/tsp_aseps_algs.ml
ocaml
* A* eps * * fhat then d *
open Tsp_instances open Tsp open Tsp_algs let aseps wt p lim = unwrap_results (Aseps.a_star_eps ~limit:lim (Tsp.make_initial p.dists p.symmetric) Tsp.goal_p (Tsp.make_expand p.dists p.symmetric) (Tsp.make_hd p.dists p.symmetric) wt) let asepslow wt p lim = unwrap_results (Aseps.a_star_eps_old ~...
2a4e9d1387bea53a5dbe963d6d15cd0ccddfe47c9d113bb2c8806738e19f8e27
dmitryvk/sbcl-win32-threads
sb-sprof.lisp
Copyright ( C ) 2003 < > ;;; 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/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/contrib/sb-sprof/sb-sprof.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 ) 2003 < > 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...
cfa69c31f4bac0a580cb821e1833f5ddaf8b917aba05abc9f92e52edc77f0a1f
sgbj/MaximaSharp
zgehd2.lisp
;;; Compiled by f2cl version: ( " f2cl1.l , v 2edcbd958861 2012/05/30 03:34:52 toy $ " " f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl5.l , v 3fe93de3be82 2012/05/06 02:17:14 toy ...
null
https://raw.githubusercontent.com/sgbj/MaximaSharp/75067d7e045b9ed50883b5eb09803b4c8f391059/Test/bin/Debug/Maxima-5.30.0/share/maxima/5.30.0/share/lapack/lapack/zgehd2.lisp
lisp
Compiled by f2cl version: Using Lisp CMU Common Lisp 20d (20D Unicode) Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t) (:coerce-assigns :as-needed) (:array-type ':array) (:array-slicing t) (:declare-common nil) (:float-format double-float))
( " f2cl1.l , v 2edcbd958861 2012/05/30 03:34:52 toy $ " " f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl5.l , v 3fe93de3be82 2012/05/06 02:17:14 toy $ " " f2cl6.l , v 1d5cbacbb...
6771d314099f2bb5632834f0d6450c55acab26d6300c2399b36302f18924d65e
cryptosense/pkcs11
p11_mechanism_info.mli
type t = { ulMinKeySize : P11_ulong.t ; ulMaxKeySize : P11_ulong.t ; flags : P11_flags.t } [@@deriving eq, ord, show, yojson] val to_string : ?newlines:bool -> ?indent:string -> t -> string val to_strings : t -> string list val flags_to_string : P11_flags.t -> string val flags_to_strings : P11_flags.t -> stri...
null
https://raw.githubusercontent.com/cryptosense/pkcs11/93c39c7a31c87f68f0beabf75ef90d85a782a983/lib/p11_mechanism_info.mli
ocaml
flags possible to set for mechanism infos, aggregated
type t = { ulMinKeySize : P11_ulong.t ; ulMaxKeySize : P11_ulong.t ; flags : P11_flags.t } [@@deriving eq, ord, show, yojson] val to_string : ?newlines:bool -> ?indent:string -> t -> string val to_strings : t -> string list val flags_to_string : P11_flags.t -> string val flags_to_strings : P11_flags.t -> stri...
f3d49347d39a0def5b4e579353cdb1a42b057ad0d52b0435d1b62ca79eae645b
coccinelle/coccinelle
pretty_print_cocci.mli
* This file is part of Coccinelle , licensed under the terms of the GPL v2 . * See copyright.txt in the Coccinelle source code for more information . * The Coccinelle source code can be obtained at * This file is part of Coccinelle, licensed under the terms of the GPL v2. * See copyright.txt in the Cocci...
null
https://raw.githubusercontent.com/coccinelle/coccinelle/3dd4726de955724a8d08ec82190a757d7115a83b/parsing_cocci/pretty_print_cocci.mli
ocaml
* This file is part of Coccinelle , licensed under the terms of the GPL v2 . * See copyright.txt in the Coccinelle source code for more information . * The Coccinelle source code can be obtained at * This file is part of Coccinelle, licensed under the terms of the GPL v2. * See copyright.txt in the Cocci...
728d890680b014e5db46e05f47452a231eb8f76a38cff0526af5d545ae162b02
obsidiansystems/gargoyle
Nix.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # module Gargoyle.PostgreSQL.Nix where import Data.ByteString (ByteString) import Gargoyle import Gargoyle.PostgreSQL import Paths_gargoyle_postgresql_nix import System.Which postgresNix :: IO (Gargoyle FilePath ByteString) postgresNix = do bindir <...
null
https://raw.githubusercontent.com/obsidiansystems/gargoyle/df0068f9572c1371bed7aa416af84d462c3574c0/gargoyle-postgresql-nix/src/Gargoyle/PostgreSQL/Nix.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE TemplateHaskell # module Gargoyle.PostgreSQL.Nix where import Data.ByteString (ByteString) import Gargoyle import Gargoyle.PostgreSQL import Paths_gargoyle_postgresql_nix import System.Which postgresNix :: IO (Gargoyle FilePath ByteString) postgresNix = do bindir <- getBinDir return $ (mkPostgresG...
3141fb9282cc2b9f6bc58075d81d01e8549d68d6b94eac37c7518342bedcc550
leptonyu/boots
Trace.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TupleSections # -- | -- Module: Boots.Factory.Trace Copyright : 2019 License : MIT Maintainer : -- Stability: experimental -- Portability: portable -- -- This module provide supports for generating trace info. -...
null
https://raw.githubusercontent.com/leptonyu/boots/335d58baafb1e0700b1a7dbe595a7264bd4d83ba/boots-web/src/Boots/Factory/Trace.hs
haskell
# LANGUAGE OverloadedStrings # | Module: Boots.Factory.Trace Stability: experimental Portability: portable This module provide supports for generating trace info. | Generate trace info for each request.
# LANGUAGE FlexibleContexts # # LANGUAGE TupleSections # Copyright : 2019 License : MIT Maintainer : module Boots.Factory.Trace( buildTrace ) where import Boots import Boots.Factory.Web import Data.ByteString (ByteString) import Network.HTTP.Ty...
ae1e2801e302f4e086ec3a0f29aae85e8b160f844dfc8e638956bc7a43359368
input-output-hk/plutus
Unwrap.hs
# LANGUAGE LambdaCase # {-| A trivial simplification that cancels unwrap/wrap pairs. This can only occur if we've inlined both datatype constructors and destructors and we're deconstructing something we just constructed. This is probably rare, and should anyway better be handled by something like case-of-known constru...
null
https://raw.githubusercontent.com/input-output-hk/plutus/1f31e640e8a258185db01fa899da63f9018c0e85/plutus-core/plutus-ir/src/PlutusIR/Transform/Unwrap.hs
haskell
| A trivial simplification that cancels unwrap/wrap pairs. This can only occur if we've inlined both datatype constructors and destructors and we're deconstructing something we just constructed. This is probably rare, and should anyway better be handled by something like case-of-known constructor. But it's so simple w...
# LANGUAGE LambdaCase # module PlutusIR.Transform.Unwrap ( unwrapCancel ) where import PlutusIR import Control.Lens (transformOf) unwrapCancelStep :: Term tyname name uni fun a -> Term tyname name uni fun a unwrapCancelStep = \case Unwrap _ (IWrap _ _ _ b) -> b t -> t unwr...
937dfc0063fe3843e38c4732dbcb755fee1b48a88fcda3e3bed13070036d5eb4
Tehnix/miso-isomorphic-stack
UpdateSpec.hs
module Frontend.UpdateSpec where import Test.Hspec import Common.Model (Model, initialModel) import Frontend.Update (updateModel) spec :: Spec spec = do describe "Just a blank test" $ -- TODO: Test `updateModel` or similar. it "just works..." $ do "Not implemented yet" `shouldBe` "Not imp...
null
https://raw.githubusercontent.com/Tehnix/miso-isomorphic-stack/61fa5192f525f5b5b8d84d4384eb5cbdea4f7dbf/frontend/test/Frontend/UpdateSpec.hs
haskell
TODO: Test `updateModel` or similar.
module Frontend.UpdateSpec where import Test.Hspec import Common.Model (Model, initialModel) import Frontend.Update (updateModel) spec :: Spec spec = do describe "Just a blank test" $ it "just works..." $ do "Not implemented yet" `shouldBe` "Not implemented yet"
d5d548de1cac85ea11308360e726001e7686b2990e63698521ec6fcaf918822c
AccelerateHS/accelerate
Stencil.hs
{-# LANGUAGE GADTs #-} # LANGUAGE TemplateHaskell # {-# OPTIONS_HADDOCK hide #-} -- | -- Module : Data.Array.Accelerate.Representation.Stencil Copyright : [ 2008 .. 2020 ] The Accelerate Team -- License : BSD3 -- Maintainer : < > -- Stability : experimental Portability : non - portab...
null
https://raw.githubusercontent.com/AccelerateHS/accelerate/7c769b761d0b2a91f318096b9dd3fced94616961/src/Data/Array/Accelerate/Representation/Stencil.hs
haskell
# LANGUAGE GADTs # # OPTIONS_HADDOCK hide # | Module : Data.Array.Accelerate.Representation.Stencil License : BSD3 Stability : experimental ** Stencil patterns | GADT reifying the 'Stencil' class
# LANGUAGE TemplateHaskell # Copyright : [ 2008 .. 2020 ] The Accelerate Team Maintainer : < > Portability : non - portable ( GHC extensions ) module Data.Array.Accelerate.Representation.Stencil ( StencilR(..), stencilArrayR, stencilR, stencilEltR, stencilShapeR, stencilHalo, rnfStencilR, lif...
f904ca8acd344018e9af3c8531f4ff0d08e9c39a18a7158c3e88c518dc9de27c
haskell/haskell-ide-engine
Completions.hs
# LANGUAGE CPP # # LANGUAGE DeriveGeneric # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} module Haskell.Ide.Engine.Completions ( WithSnippets(..) , getCompletions , resolveCompletion ) where import Control.Lens.Operators ( (.~) ...
null
https://raw.githubusercontent.com/haskell/haskell-ide-engine/d84b84322ccac81bf4963983d55cc4e6e98ad418/src/Haskell/Ide/Engine/Completions.hs
haskell
# LANGUAGE OverloadedStrings # import Language.Haskell.Refact.API ( showGhc ) --------------------------------------------------------------------- ^ Original name, such as Maybe, //, or find. ^ From where this item is imported from. ^ Available type information. ^ Label to display to the user. ...
# LANGUAGE CPP # # LANGUAGE DeriveGeneric # # LANGUAGE NamedFieldPuns # module Haskell.Ide.Engine.Completions ( WithSnippets(..) , getCompletions , resolveCompletion ) where import Control.Lens.Operators ( (.~) , (^.) ...
0dbe7d7a2682feaf72df85f174f22c0d20ee07de7d2288a8bb4fd4cbb259bef1
mirage/mirage-unix
main.mli
* Copyright ( c ) 2010 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
null
https://raw.githubusercontent.com/mirage/mirage-unix/e776cfe5fed3db052ae2b8fcf16c7100b9c4c682/lib/main.mli
ocaml
* Copyright ( c ) 2010 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
817339b18c3a83c23c679952ad333f01bf360c536a4bf4e6756ac18df2e1014d
deadpendency/deadpendency
CountPrivateInstallsBackend.hs
module Common.Effect.GitHub.CountPrivateInstalls.Backend.CountPrivateInstallsBackend ( githubCountPrivateInstalls, ) where import Common.Model.Error.CommonError import Common.Model.GitHub.Auth.GHInstallationAuth import Data.Aeson import Data.Text.Read qualified as Text import Data.Vector qualified as V import GitH...
null
https://raw.githubusercontent.com/deadpendency/deadpendency/170d6689658f81842168b90aa3d9e235d416c8bd/apps/common/src/Common/Effect/GitHub/CountPrivateInstalls/Backend/CountPrivateInstallsBackend.hs
haskell
#installations last page does not have the header at all link: <>; rel="next", <>; rel="last"
module Common.Effect.GitHub.CountPrivateInstalls.Backend.CountPrivateInstallsBackend ( githubCountPrivateInstalls, ) where import Common.Model.Error.CommonError import Common.Model.GitHub.Auth.GHInstallationAuth import Data.Aeson import Data.Text.Read qualified as Text import Data.Vector qualified as V import GitH...
475753394264917a8e3a9d02a2002b4ed656239d4e3dd79824ae30bd4b08ae78
shaunlebron/gh4st
history.cljs
(ns gh4st.history (:require [gh4st.state :refer [app-state]])) (declare cherry-pick) (declare cherry-merge) ;;; This undo/redo model assumes that the user will call `commit!` right before ;;; entering a new state. ;; Below is our history stack. Each slot represents the state at some point in ;; time. The curr...
null
https://raw.githubusercontent.com/shaunlebron/gh4st/e329f42f0d19ddeebcf85ca0e1efa03d9af22a56/src/gh4st/history.cljs
clojure
This undo/redo model assumes that the user will call `commit!` right before entering a new state. Below is our history stack. Each slot represents the state at some point in time. The current index *always* represents the current time. t=0 t=1 t=2 t=3 t=4 t=5 |-----|-----|-----|-----|-...
(ns gh4st.history (:require [gh4st.state :refer [app-state]])) (declare cherry-pick) (declare cherry-merge) (defonce history-index (atom 0)) (defonce history-stack (atom [])) (defn undo! [curr-state] (when (pos? @history-index) (when-not (get @history-stack @history-index) (swap! history-st...
3371c1bd7c58e214b656504ee23d66c7cb616b38dec09ac84f1e82153c404e83
modular-macros/ocaml-macros
pr6946_bad.ml
external foo : int = "%ignore";; let _ = foo ();;
null
https://raw.githubusercontent.com/modular-macros/ocaml-macros/05372c7248b5a7b1aa507b3c581f710380f17fcd/testsuite/tests/typing-misc-bugs/pr6946_bad.ml
ocaml
external foo : int = "%ignore";; let _ = foo ();;
bb7f7444b38f58035c1c2d4908f9cef5f5401fe6f76d9590eb4175f7d43012ab
inaka/canillita
canillita_newsitems_repo.erl
@doc NewsItems repository -module(canillita_newsitems_repo). -export([fetch/2, fetch_since/1]). %% @doc Returns the newsitem that matches the given %% newspaper_name and id (if any). -spec fetch( NewspaperName::canillita_newspapers:name() , Id::canillita_newsitems:id() ) -> notfound | sum...
null
https://raw.githubusercontent.com/inaka/canillita/56e7fa6b7441a591dbf2396dc85a43cdca6878c6/src/canillita_newsitems_repo.erl
erlang
@doc Returns the newsitem that matches the given newspaper_name and id (if any). @doc returns all the news after the given event-id or all the news if not event-id provided. internal @doc returns the newsitem identified with the given id. @doc returns all the newsitems stored so far. @doc returns al...
@doc NewsItems repository -module(canillita_newsitems_repo). -export([fetch/2, fetch_since/1]). -spec fetch( NewspaperName::canillita_newspapers:name() , Id::canillita_newsitems:id() ) -> notfound | sumo_rest_doc:entity(). fetch(NewspaperName, Id) -> Conditions = [{id, Id}, {newspaper_name, ...
5a5a04bc2f347413ee6f4e1e64906808fe7a60d56b9696b82d85aaf5b6335e8b
jiesoul/soul-talk
site_info_test.clj
(ns soul-talk.routes.site.site-info-test (:require [clojure.test :refer :all] [soul-talk.helper :as h])) (def site-info {:id 1 :name "个人网站" :description "个人网站" :tags "clojure java UE4 UE5 Blender" :author "jiesoul"}) (deftest site-info-test (testing "load site info" (let [resp (h/make-request-by-l...
null
https://raw.githubusercontent.com/jiesoul/soul-talk/630de08c6549b206d59023764d5f2576d97d1030/api/test/soul_talk/routes/site/site_info_test.clj
clojure
(ns soul-talk.routes.site.site-info-test (:require [clojure.test :refer :all] [soul-talk.helper :as h])) (def site-info {:id 1 :name "个人网站" :description "个人网站" :tags "clojure java UE4 UE5 Blender" :author "jiesoul"}) (deftest site-info-test (testing "load site info" (let [resp (h/make-request-by-l...
00c0c7928d6ccc345e47739b726e5932fc5739bd249b44d405d3fa9878dbae43
xmonad/xmonad-contrib
OnPropertyChange.hs
----------------------------------------------------------------------------- -- | -- Module : XMonad.Hooks.OnPropertyChange Description : Apply a manageHook on a property ( e.g. , @WM_CLASS@ ) change Copyright : ( c ) , 2015 -- License : BSD3-style (see LICENSE) -- -- Maintainer : -- Stabil...
null
https://raw.githubusercontent.com/xmonad/xmonad-contrib/4df20361876aea517b051b76d7d80cbb364c97e4/XMonad/Hooks/OnPropertyChange.hs
haskell
--------------------------------------------------------------------------- | Module : XMonad.Hooks.OnPropertyChange License : BSD3-style (see LICENSE) Maintainer : Stability : unstable Portability : not portable Module to apply a ManageHook to an already-mapped window when a property change...
Description : Apply a manageHook on a property ( e.g. , @WM_CLASS@ ) change Copyright : ( c ) , 2015 ( Do n't blame browsers for this ; it 's inherent in HTML and the DOM . And changing title dynamically is explicitly permitted by ICCCM and EWMH ; This module could also be useful for Electron applic...
bcaf3e73a8292d94390c8b2e676e4198476e52418acae712e065a4cf69aed6f3
tiensonqin/lymchat
me.cljs
(ns lymchat.shared.scene.me (:require [reagent.core :as r] [re-frame.core :refer [subscribe dispatch]] [lymchat.styles :refer [styles pl-style]] [lymchat.shared.ui :refer [text view touchable-highlight button colors gradient material-icon icon-button input alert image switch open-u...
null
https://raw.githubusercontent.com/tiensonqin/lymchat/824026607d30c12bc50afb06f677d1fa95ff1f2f/src/lymchat/shared/scene/me.cljs
clojure
(ns lymchat.shared.scene.me (:require [reagent.core :as r] [re-frame.core :refer [subscribe dispatch]] [lymchat.styles :refer [styles pl-style]] [lymchat.shared.ui :refer [text view touchable-highlight button colors gradient material-icon icon-button input alert image switch open-u...
e8bea72b3a0db21992cb65986c443a9bded858b84529690203c81e4f2949f26b
dariusf/ppx_debug
unstable.mli
module Load_path : sig val init : string list -> unit end
null
https://raw.githubusercontent.com/dariusf/ppx_debug/f5d51b29d5e466601c0f861e3fd7431ca6e5aa4a/ppx_debug_common/unstable.mli
ocaml
module Load_path : sig val init : string list -> unit end
7790d4621fd70be26d456916380f522d05b7f7c39e61dd37d55363293dae94c4
modular-macros/ocaml-macros
int64.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/modular-macros/ocaml-macros/05372c7248b5a7b1aa507b3c581f710380f17fcd/stdlib/int64.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the * 64 - bit integers . This module provides operations on the type [ int64 ] of signed 64 - bit...
53764f46d0bfd06bcd3a68769939a49a52089eb4e986e743f1ee869979332758
Quid2/flat
GenEnum.hs
-- generate test enumerations g = let n = 256 in unwords [ "data E" ++ show n , "=" , intercalate " | " $ map (("N" ++) . show) [1 .. n] , "deriving (Show,Generic,Flat)" ]
null
https://raw.githubusercontent.com/Quid2/flat/95e5d7488451e43062ca84d5376b3adcc465f1cd/test/GenEnum.hs
haskell
generate test enumerations
g = let n = 256 in unwords [ "data E" ++ show n , "=" , intercalate " | " $ map (("N" ++) . show) [1 .. n] , "deriving (Show,Generic,Flat)" ]
928db01799130eee1d45b51ddf0f533e48693a5f7ea761fdb3d1592c57ab300c
ollef/sixten
Generalise.hs
# LANGUAGE FlexibleContexts , OverloadedStrings # module Elaboration.Generalise where import Protolude hiding (TypeError) import Data.HashMap.Lazy(HashMap) import qualified Data.HashMap.Lazy as HashMap import Data.HashSet(HashSet) import qualified Data.HashSet as HashSet import Data.Vector(Vector) import qualified B...
null
https://raw.githubusercontent.com/ollef/sixten/60d46eee20abd62599badea85774a9365c81af45/src/Elaboration/Generalise.hs
haskell
After type-checking we may actually be in a situation where a dependency we thought existed doesn't actually exist because of class instances being resolved (unresolved class instances are assumed to depend on all instances), so we can't be sure that we have a single cycle. Therefore we separately compute dependen...
# LANGUAGE FlexibleContexts , OverloadedStrings # module Elaboration.Generalise where import Protolude hiding (TypeError) import Data.HashMap.Lazy(HashMap) import qualified Data.HashMap.Lazy as HashMap import Data.HashSet(HashSet) import qualified Data.HashSet as HashSet import Data.Vector(Vector) import qualified B...
3af3d4c21a613c2763629769a0543178e84cbaf0a50be5102514eef4d26b69c4
input-output-hk/cardano-ledger
Consensus.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module Test.Cardano.Ledger.Alonzo.Examples.Consensus where import Cardano.Ledger.Allegra.Scripts (Timelock (..), ValidityInterval (..)) import Cardano.Ledger.Alonzo (Alonzo) import Cardano.Ledger.Alonzo.Core import Carda...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger/da48c5ba96b72426a51f36507d49604505fc96a7/eras/alonzo/test-suite/src/Test/Cardano/Ledger/Alonzo/Examples/Consensus.hs
haskell
# LANGUAGE OverloadedStrings # inputs collateral outputs txcerts txwdrls txfee txvldt txUpdates reqSignerHashes mint scriptIntegrityHash adHash txnetworkid vkey bootstrap txscripts redeemers auxiliary data
# LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module Test.Cardano.Ledger.Alonzo.Examples.Consensus where import Cardano.Ledger.Allegra.Scripts (Timelock (..), ValidityInterval (..)) import Cardano.Ledger.Alonzo (Alonzo) import Cardano.Ledger.Alonzo.Core import Cardano.Ledger.Alonzo.Genesis (AlonzoGen...
b49fd18c79a6fc9c00c194d780639fa4fa680a1772063e9679caa69fb133cf7e
magnars/datomic-type-extensions
entity.clj
(ns datomic-type-extensions.entity (:require [datomic-type-extensions.core :as core] [datomic-type-extensions.types :as types]) (:import datomic.query.EntityMap)) (defmacro either "Like clojure.core/or, but treats false as a truthy value" ([] nil) ([x] x) ([x & next] `(if-some [false-or-trut...
null
https://raw.githubusercontent.com/magnars/datomic-type-extensions/3c4235cfab9250cb65a4011896a8787b2d8bf052/src/datomic_type_extensions/entity.clj
clojure
(ns datomic-type-extensions.entity (:require [datomic-type-extensions.core :as core] [datomic-type-extensions.types :as types]) (:import datomic.query.EntityMap)) (defmacro either "Like clojure.core/or, but treats false as a truthy value" ([] nil) ([x] x) ([x & next] `(if-some [false-or-trut...
527c2e3af156da0417413084d67a9309c0e95573ea5f18bb2eb2d87926779651
LeventErkok/sbv
MultMask.hs
----------------------------------------------------------------------------- -- | Module : BenchSuite . BitPrecise . MultMask Copyright : ( c ) -- License : BSD3 -- Maintainer: -- Stability : experimental -- Bench suite for Documentation . SBV.Examples . BitPrecise . MultMask -------...
null
https://raw.githubusercontent.com/LeventErkok/sbv/0d791d9f4d1de6bd915b6d7d3f9a550385cb27a5/SBVBenchSuite/BenchSuite/BitPrecise/MultMask.hs
haskell
--------------------------------------------------------------------------- | License : BSD3 Maintainer: Stability : experimental --------------------------------------------------------------------------- # OPTIONS_GHC -Wall -Werror # benchmark suite
Module : BenchSuite . BitPrecise . MultMask Copyright : ( c ) Bench suite for Documentation . SBV.Examples . BitPrecise . MultMask module BenchSuite.BitPrecise.MultMask(benchmarks) where import BenchSuite.Bench.Bench as B import Data.SBV benchmarks :: Runner benchmarks = rGroup [ ...
17585282a054767821dfc12f71e5c41be2bb5003303e9a8fc6d2ef51b6a3956a
Quviq/epoch-eqc
state_channel_eqc.erl
@author @doc Testing state channel fsm at system test level . %%% The idea is that these tests could run on UAT as well . %%% For that reason, we cannot assume any specific height or nonces of the root account. %%% The Patron is the account that has a lot of tokens and we start by reading %%% ...
null
https://raw.githubusercontent.com/Quviq/epoch-eqc/87fb692697f9377b95a3fa3f04efce75d8b52f87/system-test/state_channel_eqc.erl
erlang
For that reason, we cannot assume any specific height or nonces of the root account. The Patron is the account that has a lot of tokens and we start by reading that account and creating working accounts from it. Running: rebar3 as system_test, test shell @end -- State and state functions -...
@author @doc Testing state channel fsm at system test level . The idea is that these tests could run on UAT as well . Created : 17 May 2018 by Updated : 5 Sep 2018 by -module(state_channel_eqc). -include_lib("eqc/include/eqc.hrl"). -include_lib("eqc/include/eqc_statem.hrl"). -compile([export_a...
e2f4d59aff640df5c91add7b60c5f93517cce6078c28ab54b1f4ed2e1b33803c
alezost/guix-config
manifest-guile.scm
(use-modules (guix profiles) (al guix packages)) (packages->manifest guile-packages)
null
https://raw.githubusercontent.com/alezost/guix-config/1fb884c7b1225a875537fe2856d3866f817d328b/user-config/manifest-guile.scm
scheme
(use-modules (guix profiles) (al guix packages)) (packages->manifest guile-packages)
238edf1b31dd02287478778e24024dcb2f629c199d391941f7ec1874e201ff56
LeastAuthority/wormhole-client
CryptoTests.hs
-- | Crypto module tests module CryptoTests ( cryptoRoundTripTests ) where import Protolude import Hedgehog (forAll, property, (===), failure, Property, Group(..), checkSequential) import qualified Transit.Internal.Crypto as C import qualified Crypto.Saltine.Class as Saltine import qualified Hedgehog.Gen as Gen ...
null
https://raw.githubusercontent.com/LeastAuthority/wormhole-client/d00200e0f49a154688da1a882f8aef1df6469ba7/tests/CryptoTests.hs
haskell
| Crypto module tests
module CryptoTests ( cryptoRoundTripTests ) where import Protolude import Hedgehog (forAll, property, (===), failure, Property, Group(..), checkSequential) import qualified Transit.Internal.Crypto as C import qualified Crypto.Saltine.Class as Saltine import qualified Hedgehog.Gen as Gen import qualified Hedgehog...
55315caf5d2d674ad8d8dcde399dbb11aec6b574b6cf95b0c65a26ee7f3a43f9
vivid-inc/ash-ra-template
log.clj
; Copyright 2020 Vivid Inc. ; 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 L...
null
https://raw.githubusercontent.com/vivid-inc/ash-ra-template/f64be7efd6f52ccd451cddb851f02511d1665b11/art-cli/src/vivid/art/cli/log.clj
clojure
Copyright 2020 Vivid Inc. you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the speci...
distributed under the License is distributed on an " AS IS " BASIS , (ns vivid.art.cli.log "Logging facility used by this library. Implemented by its consumers by binding these vars to actual functions.") (defn ^:dynamic *info-fn* [& _] (throw (IllegalStateException. (str "First, bind " (var *info-fn*) " to...
e31ae289fcae51471bbc9c20913ccee15187475bb24804681f35b647de8fe666
reenberg/wobot
Quote.hs
# LANGUAGE QuasiQuotes # module Data.String.Quote where import Language.Haskell.TH.Quote import Language.Haskell.TH.Syntax import Language.Haskell.TH.Lib literal :: QuasiQuoter literal = QuasiQuoter (litE . stringL) (litP . stringL)
null
https://raw.githubusercontent.com/reenberg/wobot/ce7f112096ba1abd43b8d29da7e8944c2a004125/fladuino/syntax/Data/String/Quote.hs
haskell
# LANGUAGE QuasiQuotes # module Data.String.Quote where import Language.Haskell.TH.Quote import Language.Haskell.TH.Syntax import Language.Haskell.TH.Lib literal :: QuasiQuoter literal = QuasiQuoter (litE . stringL) (litP . stringL)
0cd962c1e00735a337a6a66cad5de4275740c1dc35c435c973f55cd084584b39
ku-fpg/kansas-lava
Bus.hs
# LANGUAGE GADTs , KindSignatures , RankNTypes , ScopedTypeVariables , RecursiveDo , TypeFamilies , FlexibleInstances , FlexibleContexts , DataKinds # FlexibleInstances, FlexibleContexts, DataKinds #-} module Language.KansasLava.Protocols.Bus where import Language.KansasLava.Signal import ...
null
https://raw.githubusercontent.com/ku-fpg/kansas-lava/cc0be29bd8392b57060c3c11e7f3b799a6d437e1/Language/KansasLava/Protocols/Bus.hs
haskell
BusOutput BusInput Assumes signal input does not change when waiting for ack.-- send data wait for ack outStdLogicVector " fifo_pc " pc BusOutput BusInput Assumes signal input does not change when waiting for ack.-- send data wait for ack outStdLogicVector "fifo_pc" pc
# LANGUAGE GADTs , KindSignatures , RankNTypes , ScopedTypeVariables , RecursiveDo , TypeFamilies , FlexibleInstances , FlexibleContexts , DataKinds # FlexibleInstances, FlexibleContexts, DataKinds #-} module Language.KansasLava.Protocols.Bus where import Language.KansasLava.Signal import ...
8490716aac736ca5d2937cf10e1476bb3e67c7312e5d31d7aaf0c13c2b704d6d
Decentralized-Pictures/T4L3NT
baking_actions.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2021 Nomadic Labs < > (* ...
null
https://raw.githubusercontent.com/Decentralized-Pictures/T4L3NT/6d4d3edb2d73575384282ad5a633518cba3d29e3/src/proto_alpha/lib_delegate/baking_actions.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2021 Nomadic Labs < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN AN...
fcd3ad5de1c101e0d7514b22c908d6913f937f2daceef94e691c8d32a8bc95b1
gregr/experiments
syntax-0-unparsing.rkt
#lang racket (provide unparse unparse-orec unparse-value-orec upenv-empty ) (require "syntax-0-parsing.rkt" "syntax-abstract.rkt" gregr-misc/list gregr-misc/match gregr-misc/record gregr-misc/sugar ) (record upenv vars) (define upenv-empty (upenv '())) ; TODO: use more of the alphabet (define ...
null
https://raw.githubusercontent.com/gregr/experiments/cd4c7953f45102539081077bbd6195cf834ba2fa/supercompilation/cog/syntax-0-unparsing.rkt
racket
TODO: use more of the alphabet TODO: use entire attr
#lang racket (provide unparse unparse-orec unparse-value-orec upenv-empty ) (require "syntax-0-parsing.rkt" "syntax-abstract.rkt" gregr-misc/list gregr-misc/match gregr-misc/record gregr-misc/sugar ) (record upenv vars) (define upenv-empty (upenv '())) (define (upenv-next-name vars) (string-...
85f9c19bf2b7b69d6da95da3da6c7653818f4868502824b40af6b6ed18910ba8
fmi-lab/fp-elective-2017
selection-sort.scm
(require rackunit rackunit/text-ui) (define selection-sort-tests (test-suite "Tests for selection-sort" (check-equal? (selection-sort '(42)) '(42)) (check-equal? (selection-sort '(6 6 6)) '(6 6 6)) (check-equal? (selection-sort '(1 2 3 4 5 6)) '(1 2 3 4 5 6)) (check-equal? (selection-sort '(6 5 ...
null
https://raw.githubusercontent.com/fmi-lab/fp-elective-2017/e88d5c0319b6d03c0ecd8a12a2856fb1bf5dcbf3/exercises/05/selection-sort.scm
scheme
(require rackunit rackunit/text-ui) (define selection-sort-tests (test-suite "Tests for selection-sort" (check-equal? (selection-sort '(42)) '(42)) (check-equal? (selection-sort '(6 6 6)) '(6 6 6)) (check-equal? (selection-sort '(1 2 3 4 5 6)) '(1 2 3 4 5 6)) (check-equal? (selection-sort '(6 5 ...
380a93e2e4e881e83614534a13b7baa85f91fc65de7d8c18a99094f989f87e63
pmh/funkyweb
params.clj
(ns funkyweb.test.middleware.params (:use clojure.test funkyweb.middleware.params) (:require [ring.util.test :as tu])) (def wrapped-echo (wrap-params identity)) (deftest wrap-params-form-params (let [req {:content-type "application/x-www-form-urlencoded" :body (tu/string-input-str...
null
https://raw.githubusercontent.com/pmh/funkyweb/b3731c5664c3b6a40db32a1fef18a59777d9156d/test/funkyweb/test/middleware/params.clj
clojure
(ns funkyweb.test.middleware.params (:use clojure.test funkyweb.middleware.params) (:require [ring.util.test :as tu])) (def wrapped-echo (wrap-params identity)) (deftest wrap-params-form-params (let [req {:content-type "application/x-www-form-urlencoded" :body (tu/string-input-str...
6c2d38ea1df69548634eac8f77f6b3d2342577bcd91b154461f37c3b04a1c6d2
clojupyter/clojupyter
zmq.clj
(ns clojupyter.zmq (:require [clojupyter.log :as log] [clojupyter.shutdown :as shutdown] [clojupyter.state :as state] [clojupyter.util :as u] [clojupyter.util-actions :as u!] [clojupyter.zmq-specs :as zp] [clojupyter.zmq-util :as zutil] ...
null
https://raw.githubusercontent.com/clojupyter/clojupyter/b54b30b5efa115937b7a85e708a7402bd9efa0ab/src/clojupyter/zmq.clj
clojure
------------------------------------------------------------------------------------------------------------------------ INTERNAL ------------------------------------------------------------------------------------------------------------------------ -----------------------------------------------------------------...
(ns clojupyter.zmq (:require [clojupyter.log :as log] [clojupyter.shutdown :as shutdown] [clojupyter.state :as state] [clojupyter.util :as u] [clojupyter.util-actions :as u!] [clojupyter.zmq-specs :as zp] [clojupyter.zmq-util :as zutil] ...
7ba17d59ee3e5ba3ebc07251f066b04241ca0dd837aa7dfdbca66208888bbb17
geneanet/ocaml-wikitext
dumptree.ml
open Wikitext let () = assert (Array.length Sys.argv = 2) ; let file = Array.get Sys.argv 1 in let ch = open_in file in let lexbuf = Lexing.from_channel ch in let ast = doc_from_lexbuf lexbuf |> Mapper.set_toc |> Mapper.set_links |> Mapper.normalize in close_in ch ; print_endline @@ Tes...
null
https://raw.githubusercontent.com/geneanet/ocaml-wikitext/d507087a04ee72e92b430040e4a9ce31c7148a1a/test/dumptree.ml
ocaml
open Wikitext let () = assert (Array.length Sys.argv = 2) ; let file = Array.get Sys.argv 1 in let ch = open_in file in let lexbuf = Lexing.from_channel ch in let ast = doc_from_lexbuf lexbuf |> Mapper.set_toc |> Mapper.set_links |> Mapper.normalize in close_in ch ; print_endline @@ Tes...
f74e8c0730b9fcc68bfce72d963e64502d2e863526129b21e93dca1076072990
facebookarchive/pfff
knockout.ml
(**************************************************************************) cairo - ocaml -- Objective Caml bindings for Cairo Copyright © 2004 - 2005 (* *) (* This code is free softwa...
null
https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/external/ocamlcairo/test/knockout.ml
ocaml
************************************************************************ This code is free software and is licensed under the terms of the ************************************************************************
cairo - ocaml -- Objective Caml bindings for Cairo Copyright © 2004 - 2005 GNU Lesser General Public License version 2.1 ( the " LGPL " ) . let pi = 4. *. atan 1. let oval_path cr xc yc xr yr = let m = Cairo.get_matrix cr in Cairo.transla...
6b8443ccbca1302667dc86b5d32a2af5a82cd9b57e576b0d4f7011d16ec42e86
hidaris/thinking-dumps
tests.rkt
(module tests mzscheme (provide test-list) ;;;;;;;;;;;;;;;; tests ;;;;;;;;;;;;;;;; (define test-list '( ;; simple arithmetic (positive-const "11" 11) (negative-const "-33" -33) (simple-arith-1 "-(44,33)" 11) ;; nested arithmetic (nested-arith-left "-(-(44,33),22)" -11) ...
null
https://raw.githubusercontent.com/hidaris/thinking-dumps/3fceaf9e6195ab99c8315749814a7377ef8baf86/eopl-solutions/chap4/4-17/implicit-refs/tests.rkt
racket
tests ;;;;;;;;;;;;;;;; simple arithmetic nested arithmetic simple variables simple unbound variables simple conditionals test dynamic typechecking make sure that the test and both arms get evaluated properly. and make sure the other arm doesn't get evaluated. simple let check nested let and shadowing simpl...
(module tests mzscheme (provide test-list) (define test-list '( (positive-const "11" 11) (negative-const "-33" -33) (simple-arith-1 "-(44,33)" 11) (nested-arith-left "-(-(44,33),22)" -11) (nested-arith-right "-(55, -(22,11))" 44) (test-var-1 "x" 10) (test-var-2 "-(...
69cebbaa3235b4a77b033f0b2624385bb13a3a69a7110ba85345b78c436175a8
ianmbloom/gudni
CppDefines.hs
----------------------------------------------------------------------------- -- | Module : Graphics . Gudni . OpenCL.CallKernel Copyright : ( c ) 2019 -- License : BSD-style (see the file libraries/base/LICENSE) -- Maintainer : -- Stability : experimental -- Portability : portable -...
null
https://raw.githubusercontent.com/ianmbloom/gudni/fa69f1bf08c194effca05753afe5455ebae51234/src/Graphics/Gudni/OpenCL/CppDefines.hs
haskell
--------------------------------------------------------------------------- | License : BSD-style (see the file libraries/base/LICENSE) Stability : experimental Portability : portable | A definition for a C Preprocessor #define pragma. | Convert a CppDefinition to a string. | Take a list of lines and ...
Module : Graphics . Gudni . OpenCL.CallKernel Copyright : ( c ) 2019 Maintainer : Functions for implanting preprocessor definitions in an OpenCL source file at runtime before JIT compilation . module Graphics.Gudni.OpenCL.CppDefines ( CppDefinition(..) , CppValueType(..) , appendCppD...
8c7851164000df20c607a836b7feef31685344036ffb197129cd8f66937acaab
ayberkt/abt
variable.ml
module type VARIABLE = sig type t (* Creates a new, named globally unique variable. *) val named : string -> t (* Creates a new, globally unique variable. *) val newVar : unit -> t Tests whether two variable are equal . val equal : t * t -> bool Compares two variables . This is used to all...
null
https://raw.githubusercontent.com/ayberkt/abt/18b2133c0fd9f143fdae7d29080b709f2d7842a8/src/variable.ml
ocaml
Creates a new, named globally unique variable. Creates a new, globally unique variable. Provides a string representation of the globally unique variable. Clones a variable, to save its name Provides the string used to create the variable.
module type VARIABLE = sig type t val named : string -> t val newVar : unit -> t Tests whether two variable are equal . val equal : t * t -> bool Compares two variables . This is used to allow variables as keys into a hash table . Compares two variables. This is used to allow varia...
6ad7ad0691eccc533fbe52462eeb9ef5814cf77e67f5256f82c2528d93575ff8
opencog/learn
mst-parser.scm
; ; mst-parser.scm ; ; Wrappers for Maximum Spanning Tree and Maximum Planar Graph parsers. ; ; DEPRECATED/OBSOLETE. This is in the process of being replaced by code that does MST / MPG parsing using the LG framework . The goal is ; a more integrated approach. ; Copyright ( c ) 2014 , 2017 Linas Vepstas ; ; -------...
null
https://raw.githubusercontent.com/opencog/learn/8b1612342c504941719658a3656d233d9d6cbb01/scm/attic/mst-parse/mst-parser.scm
scheme
mst-parser.scm Wrappers for Maximum Spanning Tree and Maximum Planar Graph parsers. DEPRECATED/OBSOLETE. This is in the process of being replaced by a more integrated approach. --------------------------------------------------------------------- OVERVIEW -------- (MST) and the Maximum Planar Graph parsers...
code that does MST / MPG parsing using the LG framework . The goal is Copyright ( c ) 2014 , 2017 Linas Vepstas The scripts below are utility wrappers for the Maximum Spanning - Tree or " clique " , with the edges being word - pairs . The MST parser obtains a time , having the next - highest MI value , until ...
caaca3f1a65d0a3643982b24011707ea5fd529651d50b6e0a5081386404eaee9
mbj/stratosphere
SingleQueryArgumentProperty.hs
module Stratosphere.WAFv2.WebACL.SingleQueryArgumentProperty ( SingleQueryArgumentProperty(..), mkSingleQueryArgumentProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.V...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/wafv2/gen/Stratosphere/WAFv2/WebACL/SingleQueryArgumentProperty.hs
haskell
module Stratosphere.WAFv2.WebACL.SingleQueryArgumentProperty ( SingleQueryArgumentProperty(..), mkSingleQueryArgumentProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.V...
55a52d7de440b95bc66173e309d70d1b808b513a0e0719f366f7bbc0c4ab4fa9
5HT/ant
HBox.ml
open XNum; open Runtime; open Logging; open Dim; open Box; type direction = [ LR | RL ]; (* The maximal badness tolerated by make. *) value max_h_badness = ref (num_of_int 1000); (* h-boxes *) |dimensions < boxes>| returns the dimensions of an h - box containing < boxes > . value dimensions boxes = do { ite...
null
https://raw.githubusercontent.com/5HT/ant/6acf51f4c4ebcc06c52c595776e0293cfa2f1da4/Typesetting/HBox.ml
ocaml
The maximal badness tolerated by make. h-boxes Check whether it is explicit glue. |layout <direction> <boxes>| computes the positions of the boxes and puts them into a hbox in left-right order.
open XNum; open Runtime; open Logging; open Dim; open Box; type direction = [ LR | RL ]; value max_h_badness = ref (num_of_int 1000); |dimensions < boxes>| returns the dimensions of an h - box containing < boxes > . value dimensions boxes = do { iter xdim_zero dim_zero dim_zero boxes where rec iter width...
33d09ed11c8989377a597bc862b69a98f41fd680cdeeb50cf94f6b9228dc84c3
project-oak/hafnium-verification
Filtering.mli
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
null
https://raw.githubusercontent.com/project-oak/hafnium-verification/6071eff162148e4d25a0fedaea003addac242ace/experiments/ownership-inference/infer/infer/src/IR/Filtering.mli
ocaml
* filter corresponding to `--source-files-filter` * filter corresponding to `--procedures-filter`
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
dbfc5e86f64ec753cabde439d8213bf4b66d98d7ab90a37a26915a47eba26b36
billstclair/trubanc-lisp
cookie.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : HUNCHENTOOT ; Base : 10 -*- $ Header : /usr / local / cvsrep / hunchentoot / cookie.lisp , v 1.8 2008/02/13 16:02:17 edi Exp $ Copyright ( c ) 2004 - 2009 , Dr. . All rights reserved . ;;; Redistribution and use in source and binary forms, with or without...
null
https://raw.githubusercontent.com/billstclair/trubanc-lisp/5436d2eca5b1ed10bc47eec7080f6cb90f98ca65/systems/hunchentoot-1.0.0/cookie.lisp
lisp
Syntax : COMMON - LISP ; Package : HUNCHENTOOT ; Base : 10 -*- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and t...
$ Header : /usr / local / cvsrep / hunchentoot / cookie.lisp , v 1.8 2008/02/13 16:02:17 edi Exp $ Copyright ( c ) 2004 - 2009 , Dr. . All rights reserved . DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , (in-packag...
9b493dc109c0638df6a046db468e3d80ce93f2a16f22c15930ca58182309ba0a
joinr/spork
array.clj
;;Helper functions and macros for working with multidimensional arrays. (ns spork.util.array) (defn ^longs longs-2d [w h] (make-array Long/TYPE w h)) (defn ^doubles doubles-2d [w h] (make-array Double/TYPE w h)) from christophe Garande - for working on 2d arrays efficiently . (defmacro deep-aget ...
null
https://raw.githubusercontent.com/joinr/spork/bb80eddadf90bf92745bf5315217e25a99fbf9d6/src/spork/util/array.clj
clojure
Helper functions and macros for working with multidimensional arrays. Functions for providing effecient keyed access to arrays. Came up in the context of graph algos... We want the speed of random access lookup, the storage contiguity of arrays, etc, but the flexibility of interfacing with nodes that are mapped ...
(ns spork.util.array) (defn ^longs longs-2d [w h] (make-array Long/TYPE w h)) (defn ^doubles doubles-2d [w h] (make-array Double/TYPE w h)) from christophe Garande - for working on 2d arrays efficiently . (defmacro deep-aget ([hint array idx] `(aget ~(vary-meta array assoc :tag hint) ~idx)...
ab103416f8867aaa857d2117a2e59314c41b1774e00ca7042f8e1803665cec6a
dmitryvk/sbcl-win32-threads
early-aliencomp.lisp
(in-package "SB!C") (defknown %alien-funcall (system-area-pointer alien-type &rest *) *)
null
https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/src/compiler/early-aliencomp.lisp
lisp
(in-package "SB!C") (defknown %alien-funcall (system-area-pointer alien-type &rest *) *)
5c36776f3778c41344f889f3315f72b2af77d2199325ff86783aed5e54a664e0
borkdude/speculative
cost.cljc
(ns speculative.cost "Performance cost estimations" (:refer-clojure :exclude [time simple-benchmark]) (:require [speculative.core] [speculative.cost.popularity :refer [popularity-map]] [respeced.test :as t] [clojure.pprint :as pprint] [speculative.impl :as impl] [clojure.spec.alpha :as s] [cl...
null
https://raw.githubusercontent.com/borkdude/speculative/4e773794a4065a84bdadd997516e52c76ab51b1f/test/speculative/cost.cljc
clojure
Scratch
(ns speculative.cost "Performance cost estimations" (:refer-clojure :exclude [time simple-benchmark]) (:require [speculative.core] [speculative.cost.popularity :refer [popularity-map]] [respeced.test :as t] [clojure.pprint :as pprint] [speculative.impl :as impl] [clojure.spec.alpha :as s] [cl...
acf77288dfd73636a4ed0800fa29de0d1a0cc31888bb448038e297916a531cf8
ocamllabs/cosmetrics
Cosmetrics_utils.ml
module StringSet = Set.Make(String) module String = struct include String let starting ~w:prefix s = if String.length prefix <= String.length s then try for i = 0 to String.length prefix - 1 do if unsafe_get prefix i <> unsafe_get s i then raise Exit done; true wi...
null
https://raw.githubusercontent.com/ocamllabs/cosmetrics/8e27c47ccb0fe36fa7738eed53651e9e4472130d/src/Cosmetrics_utils.ml
ocaml
module StringSet = Set.Make(String) module String = struct include String let starting ~w:prefix s = if String.length prefix <= String.length s then try for i = 0 to String.length prefix - 1 do if unsafe_get prefix i <> unsafe_get s i then raise Exit done; true wi...
8950e252ba5626c5b576bec51205d3eff896e218fc22faa744b025c5725b071a
theodormoroianu/SecondYearCourses
LambdaChurch_20210415170124.hs
module LambdaChurch where import Data.Char (isLetter) import Data.List ( nub ) class ShowNice a where showNice :: a -> String class ReadNice a where readNice :: String -> (a, String) data Variable = Variable { name :: String , count :: Int } deriving (Show, Eq, Ord) var :: String -> Variable var ...
null
https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/5e359e6a7cf588a527d27209bf53b4ce6b8d5e83/FLP/Laboratoare/Lab%209/.history/LambdaChurch_20210415170124.hs
haskell
alpha-equivalence subst u x t defines [u/x]t, i.e., substituting u for x in t This substitution avoids variable captures so it is safe to be used when reducing terms with free variables (e.g., if evaluating inside lambda abstractions) ^ substitution term ^ variable to be substitutes ^ term in which the substit...
module LambdaChurch where import Data.Char (isLetter) import Data.List ( nub ) class ShowNice a where showNice :: a -> String class ReadNice a where readNice :: String -> (a, String) data Variable = Variable { name :: String , count :: Int } deriving (Show, Eq, Ord) var :: String -> Variable var ...
8c23a8f1399a0e1494b916c3484936e9065079182f12fa978622db466abda7b8
ampersanda/krell-template-runner
runner.clj
;#!/usr/bin/env bb ; NodeJS is required by react-native in this project clj is required ; pod is optional (ns runner (:require [clojure.java.shell :as shell] [clojure.java.io :refer [make-parents]] [clojure.string :refer [replace split join lower-case]] [clojure.tools.cli :refe...
null
https://raw.githubusercontent.com/ampersanda/krell-template-runner/7b1777f2a1f1149de85b4e4c5742a6292898b7e0/runner.clj
clojure
#!/usr/bin/env bb NodeJS is required by react-native in this project pod is optional
clj is required (ns runner (:require [clojure.java.shell :as shell] [clojure.java.io :refer [make-parents]] [clojure.string :refer [replace split join lower-case]] [clojure.tools.cli :refer [parse-opts]])) (defn camelcase-to-delimitered "Transform CamelCase project name to d...
6089403561ed22ac96bde07f1635358316e043ad84f728df777c80180452b161
michaelmelanson/erlyweb
language.erl
-module(language). -export([relations/0]). relations() -> [{one_to_many, [project]}].
null
https://raw.githubusercontent.com/michaelmelanson/erlyweb/997df18b70459bfaaf8c3ab70ab4f54907045d0f/test/erlydb/language.erl
erlang
-module(language). -export([relations/0]). relations() -> [{one_to_many, [project]}].
22aefbc10b85ea5651cc41a03708ea5bf5aa59ceefe87827a3db2554bc767c12
ocamllabs/ocaml-modular-implicits
occur_check.ml
PR#5907 type 'a t = 'a;; let f (g : 'a list -> 'a t -> 'a) s = g s s;; let f (g : 'a * 'b -> 'a t -> 'a) s = g s s;;
null
https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/testsuite/tests/typing-misc/occur_check.ml
ocaml
PR#5907 type 'a t = 'a;; let f (g : 'a list -> 'a t -> 'a) s = g s s;; let f (g : 'a * 'b -> 'a t -> 'a) s = g s s;;
401ebbdef8c44ba19182c37145fe318d744f8f87e2223dfcf61d6e8776bf9028
esumii/min-caml
kNormal.mli
type t = | Unit | Int of int | Float of float | Neg of Id.t | Add of Id.t * Id.t | Sub of Id.t * Id.t | FNeg of Id.t | FAdd of Id.t * Id.t | FSub of Id.t * Id.t | FMul of Id.t * Id.t | FDiv of Id.t * Id.t | IfEq of Id.t * Id.t * t * t | IfLE of Id.t * Id.t * t * t | Let of (Id.t * Type.t) * ...
null
https://raw.githubusercontent.com/esumii/min-caml/8860b6fbc50786a27963aff1f7639b94c244618a/kNormal.mli
ocaml
type t = | Unit | Int of int | Float of float | Neg of Id.t | Add of Id.t * Id.t | Sub of Id.t * Id.t | FNeg of Id.t | FAdd of Id.t * Id.t | FSub of Id.t * Id.t | FMul of Id.t * Id.t | FDiv of Id.t * Id.t | IfEq of Id.t * Id.t * t * t | IfLE of Id.t * Id.t * t * t | Let of (Id.t * Type.t) * ...
f9931c75d8ae6454efbd44484a669b3122b6e926036d2e90f52e7a07919804a3
rtoy/cmucl
cross-x86-netbsd.lisp
;; Basic cross-compile script for cross-compiling from x86 to x86. May require tweaking for more difficult cross - compiles . (in-package :cl-user) ;;; Rename the X86 package and backend so that new-backend does the ;;; right thing. (rename-package "X86" "OLD-X86" '("OLD-VM")) (setf (c:backend-name c:*native-backen...
null
https://raw.githubusercontent.com/rtoy/cmucl/9b1abca53598f03a5b39ded4185471a5b8777dea/src/tools/cross-scripts/cross-x86-netbsd.lisp
lisp
Basic cross-compile script for cross-compiling from x86 to x86. Rename the X86 package and backend so that new-backend does the right thing. Features to add here. These are just examples. You may not need to list anything here. We list them here anyway as a record of typical features for all x86 ports. Catche...
May require tweaking for more difficult cross - compiles . (in-package :cl-user) (rename-package "X86" "OLD-X86" '("OLD-VM")) (setf (c:backend-name c:*native-backend*) "OLD-X86") (c::new-backend "X86" '(:x86 :i486 :pentium Generational GC :netbsd :bsd :conservative-float-type :hash-new :ra...
4ccadbf27e8a7dd725b5f5100632c88188d1e673cb4fc2e1ec3aaaf6543b9d8a
aspiwack/porcupine
CLI.hs
# LANGUAGE ExistentialQuantification # {-# LANGUAGE GADTs #-} # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE TemplateHaskell # # LANGUAGE TupleSections # {-# OPTIONS_GHC -Wall #...
null
https://raw.githubusercontent.com/aspiwack/porcupine/23dcba1523626af0fdf6085f4107987d4bf718d7/porcupine-core/src/System/TaskPipeline/CLI.hs
haskell
# LANGUAGE GADTs # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # # OPTIONS_GHC -Wall # | The command to parse from the CLI | Tells whether and how command-line options should be used. @r@ is the type (see @runPipelineTask@). _pipelineConfigMethodDefReturnV...
# LANGUAGE ExistentialQuantification # # LANGUAGE LambdaCase # # LANGUAGE TemplateHaskell # # LANGUAGE TupleSections # module System.TaskPipeline.CLI ( module System.TaskPipeline.ConfigurationReader , PipelineCommand(..) , PipelineConfigMethod(..) , BaseInputConfig(..) ...
6e57fc0f4d3871cdfd12d2fef728f222553d78d125e93bb9a4c6859293feeaa8
wavewave/fficxx
TH.hs
# LANGUAGE TemplateHaskell # module FFICXX.Runtime.TH where -- import FFICXX.Runtime.CodeGen.Cxx (HeaderName, Namespace) import Language.Haskell.TH (forImpD, safe, varE) import Language.Haskell.TH.Syntax ( Body (NormalB), Callconv (CCall), Clause (..), Cxt, Dec (..), Exp (..), Pat (..), ...
null
https://raw.githubusercontent.com/wavewave/fficxx/6a648ee3cd0c4adc1da512403196bee98259a6b3/fficxx-runtime/src/FFICXX/Runtime/TH.hs
haskell
| Primitive C type like int, double should be treated differently than Non-primitive type. The primitive type detection is not yet automatic. So we manually mark template instantiation with this boolean parameter. | template parameter: A,B,.. in T<A,B..> , tpinfoIsCPrimitive :: IsCPrimitive -- ^ whether the...
# LANGUAGE TemplateHaskell # module FFICXX.Runtime.TH where import FFICXX.Runtime.CodeGen.Cxx (HeaderName, Namespace) import Language.Haskell.TH (forImpD, safe, varE) import Language.Haskell.TH.Syntax ( Body (NormalB), Callconv (CCall), Clause (..), Cxt, Dec (..), Exp (..), Pat (..), Q, ...
c8bf2c445e7adc0c371e0818130ea117ce176d8dab75fc5dab940fd0c1bfcc72
phadej/vec
Bin.hs
{-# LANGUAGE CPP #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} {-# LANGUAGE KindSignatures #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE Standa...
null
https://raw.githubusercontent.com/phadej/vec/800379bd5144c0c9d9c7ce2a849d9a7fc89b3506/bin/src/Data/Type/Bin.hs
haskell
# LANGUAGE CPP # # LANGUAGE DataKinds # # LANGUAGE DeriveDataTypeable # # LANGUAGE GADTs # # LANGUAGE KindSignatures # # LANGUAGE RankNTypes # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeFamilies # # LANGUAGE Saf...
# LANGUAGE FlexibleContexts # # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # #if MIN_VERSION_base(4,8,0) #else #endif module Data.Type.Bin ( SBin (..), SBinP (..), sbinToBin, BP.sbinpToBinP, sbinToNatural, BP.sbinpToNatural, SBinI (..), SBinPI (..), withSBin, BP.withSBinP,...
759a592fbc6d47a37d7d001431c91c36ace5e6f5b43cd9f851eef1ea60136025
yakaz/yamerl
ex_8.6_empty_scalar_chomping.erl
-module('ex_8.6_empty_scalar_chomping'). -include_lib("eunit/include/eunit.hrl"). -define(FILENAME, "test/parsing/" ?MODULE_STRING ".yaml"). single_test_() -> ?_assertMatch( {yamerl_parser, {file,?FILENAME}, [], <<>>, 30, true, [], 0, 31, ...
null
https://raw.githubusercontent.com/yakaz/yamerl/0032607a7b27fa2b548fc9a02d7ae6b53469c0c5/test/parsing/ex_8.6_empty_scalar_chomping.erl
erlang
-module('ex_8.6_empty_scalar_chomping'). -include_lib("eunit/include/eunit.hrl"). -define(FILENAME, "test/parsing/" ?MODULE_STRING ".yaml"). single_test_() -> ?_assertMatch( {yamerl_parser, {file,?FILENAME}, [], <<>>, 30, true, [], 0, 31, ...
335fa1ba827804905ecd3c00e961af3c8c107c3415a812a7daa76e9a93b47b62
realworldocaml/mdx
main.ml
* Copyright ( c ) 2018 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
null
https://raw.githubusercontent.com/realworldocaml/mdx/0644a331fbff863a43200ec1db7092a4c51c411a/bin/main.ml
ocaml
* Copyright ( c ) 2018 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
f0ca3973e1397fe810b5f21e877ad4e9ead8bce8a147792d50d22dec76adcdbe
broadinstitute/firecloud-ui
library_utils.cljs
(ns broadfcui.page.workspace.summary.library-utils (:require [clojure.string :as string] [broadfcui.common :as common] [broadfcui.common.style :as style] [broadfcui.utils :as utils] )) (def ^:private ATTRIBUTE_SEPARATOR ", ") (defn unpack-attribute-list [value] (if (map? value) (string/join ATT...
null
https://raw.githubusercontent.com/broadinstitute/firecloud-ui/8eb077bc137ead105db5665a8fa47a7523145633/src/cljs/main/broadfcui/page/workspace/summary/library_utils.cljs
clojure
(ns broadfcui.page.workspace.summary.library-utils (:require [clojure.string :as string] [broadfcui.common :as common] [broadfcui.common.style :as style] [broadfcui.utils :as utils] )) (def ^:private ATTRIBUTE_SEPARATOR ", ") (defn unpack-attribute-list [value] (if (map? value) (string/join ATT...
95bc90a118f35846d114c3f0054259f008491fd723b8676f66cd1a8fc6ef1e9a
vult-dsp/vult
vultlib.ml
The MIT License ( MIT ) Copyright ( c ) 2017 Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitation the rights ...
null
https://raw.githubusercontent.com/vult-dsp/vult/860b2b7a8e891aa729578175a931ce2a9345428b/src/js/vultlib.ml
ocaml
* Js object to represent the errors * Js object to represent the files (input and output) : { file: "file", code : "code" } * Js object to represent the arguments * Js object to represent the options (reduced set of arguments) used in code generation * returns a new unsafe js object * Converts a Js [js_file_code]...
The MIT License ( MIT ) Copyright ( c ) 2017 Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitation the rights ...
e3f313c12bf9b229da07b7c9b0056fa91e115681848686c0747ac30a8f9a527c
adityaathalye/sicp
ex2-44-picture-language.scm
;; Picture Language ;; - Represent data objects as procedures ;; - Design operations that obey the closure property (just like cons) - There is only one kind of element , a ` painter ' ;; - A painter draws an image that is shifted and scaled to fit ;; within a designated parallelogram-shaped frame. The actual ;...
null
https://raw.githubusercontent.com/adityaathalye/sicp/c8b62c366dade1d5101238a32267dab177808105/ex2-44-picture-language.scm
scheme
Picture Language - Represent data objects as procedures - Design operations that obey the closure property (just like cons) - A painter draws an image that is shifted and scaled to fit within a designated parallelogram-shaped frame. The actual shape of the image depends on the shape of the frame. - W...
- There is only one kind of element , a ` painter ' - ` beside ' takes two painters and produces a compound painter that draws the first painter 's image in the left half and the second painter 's image in the right half of the frame . (define (flipped-pairs painter) (let ((painter2 (beside paint...
7a84ce1d86630ebf9f8ef3f498af1b7d6cee72af078af4e5f001765aad6956b7
peti/funcmp
FMPMain.hs
| Module : Main Copyright : ( c ) 2003 - 2010 ( c ) 2002 - 2003 ( c ) 2002 - 2003 Meik Hellmund ( c ) 1998 - 2002 ( c ) 1998 - 2002 Joachim Korittky ( c ) 1998 - 2002 License : Maintainer : Stability : provision...
null
https://raw.githubusercontent.com/peti/funcmp/1f6713a273b57b8b60b19958420748daf65d35af/doc/FMPMain.hs
haskell
| Module : Main Copyright : ( c ) 2003 - 2010 ( c ) 2002 - 2003 ( c ) 2002 - 2003 Meik Hellmund ( c ) 1998 - 2002 ( c ) 1998 - 2002 Joachim Korittky ( c ) 1998 - 2002 License : Maintainer : Stability : provision...
db3188dad6fdf69a7f370f47dd5bd9da4ce599b3cf66542bf6deffa15ea1f03a
sol/doctest
Options.hs
# LANGUAGE CPP # # LANGUAGE DeriveFunctor # module Options ( Result(..) , Run(..) , parseOptions #ifdef TEST , defaultRun , usage , info , versionInfo , nonInteractiveGhcOptions #endif ) where import Prelude () import Prelude.Compat import Control.Monad.Trans.RWS (RWS, execRWS) import ...
null
https://raw.githubusercontent.com/sol/doctest/6ffecb97dfaed56874966147f9fcdd527b7b33bf/src/Options.hs
haskell
# LANGUAGE CPP # # LANGUAGE DeriveFunctor # module Options ( Result(..) , Run(..) , parseOptions #ifdef TEST , defaultRun , usage , info , versionInfo , nonInteractiveGhcOptions #endif ) where import Prelude () import Prelude.Compat import Control.Monad.Trans.RWS (RWS, execRWS) import ...
86a044cebee1deaaab0ae5c9a7e888b251cf2676d0475ff48cb0ce15b6a9eb2a
nmeum/edward
replace.scm
(import posix-regex (edward replace)) (define (test-re str pattern replacement . o) (let-values (((result modified) (regex-replace (make-regex pattern) (parse (parse-replace #\/) replacement) str (if (null? o) 0 (car o))))) (...
null
https://raw.githubusercontent.com/nmeum/edward/5e4af3db712ac0d8b05902716f8ded32c94db7f7/tests/replace.scm
scheme
(import posix-regex (edward replace)) (define (test-re str pattern replacement . o) (let-values (((result modified) (regex-replace (make-regex pattern) (parse (parse-replace #\/) replacement) str (if (null? o) 0 (car o))))) (...
c2799c4ae0b59299c1aa2a3215acfcceb9780e6587bfbca136aaeb1bba0d19d1
FundingCircle/topology-grapher
gviz_test.clj
(ns topology-grapher.gviz-test (:require [clojure.test :refer [deftest is]] [topology-grapher.sample-data :as sample] [topology-grapher.gviz :as sut])) (deftest gviz-safe-test (is (= "safe_already" (sut/gviz-safe "safe_already"))) (is (= "no_spaces" (sut/gviz-safe "no spaces"))) (is (= ...
null
https://raw.githubusercontent.com/FundingCircle/topology-grapher/c1e3518ef90f95097b3310d3d5cbd48750498e81/test/topology_grapher/gviz_test.clj
clojure
(ns topology-grapher.gviz-test (:require [clojure.test :refer [deftest is]] [topology-grapher.sample-data :as sample] [topology-grapher.gviz :as sut])) (deftest gviz-safe-test (is (= "safe_already" (sut/gviz-safe "safe_already"))) (is (= "no_spaces" (sut/gviz-safe "no spaces"))) (is (= ...
84788b9a3b1caecb1321437d118e390580cc7a35540123f0bf36b52e56ed0d30
imandra-ai/imandra-ros
controller_manager_msgs.ml
open Basic_types;; type controllerStatistics = { controllerStatistics_name : string ; controllerStatistics_ros_type : string ; controllerStatistics_timestamp : time ; controllerStatistics_running : bool ; controllerStatistics_max_time : duration ; controllerStatistics_mean_time : duration ; contro...
null
https://raw.githubusercontent.com/imandra-ai/imandra-ros/e1380c267ee319dd4f86c4b54e0b270bc0738796/imandra_model/src-messages/controller_manager_msgs.ml
ocaml
open Basic_types;; type controllerStatistics = { controllerStatistics_name : string ; controllerStatistics_ros_type : string ; controllerStatistics_timestamp : time ; controllerStatistics_running : bool ; controllerStatistics_max_time : duration ; controllerStatistics_mean_time : duration ; contro...
eaae415988e9b36519414c926145f4c2e71c5063f5f01a5ba2e6568372a9ca70
greglook/merkledag-ledger
parse_test.clj
(ns finance.format.ledger.parse-test (:require [finance.data.time :as time] [clojure.spec.alpha :as s] [clojure.test :refer [deftest testing is]] [finance.data.quantity :as quantity] [finance.format.ledger.parse :as parse])) #_ (defn- test-parse "Parses the given source text and asserts that t...
null
https://raw.githubusercontent.com/greglook/merkledag-ledger/af938ba0c7e5e694e679d583a1cecf64f41452d8/test/finance/format/ledger/parse_test.clj
clojure
:estimate: type: open-account" Spring wine club. link: dedbeec489b8d7e36869666b8c445161 Principal Received
(ns finance.format.ledger.parse-test (:require [finance.data.time :as time] [clojure.spec.alpha :as s] [clojure.test :refer [deftest testing is]] [finance.data.quantity :as quantity] [finance.format.ledger.parse :as parse])) #_ (defn- test-parse "Parses the given source text and asserts that t...
9b7aadb483c799d0e8deb60e7cecd4a3b67cbb4f0a902fe8ddb3a4cc5206a50c
michiakig/LispInSmallPieces
meroonet.scm
$ I d : meroonet.scm , v 1.21 2006/12/02 18:33:32 queinnec Exp $ ;;;(((((((((((((((((((((((((((((((( L i S P )))))))))))))))))))))))))))))))) ;;; This file is part of the files that accompany the book: LISP Implantation Semantique Programmation ( InterEditions , France ) By Christian Queinnec < > ;;; Newest...
null
https://raw.githubusercontent.com/michiakig/LispInSmallPieces/0a2762d539a5f4c7488fffe95722790ac475c2ea/meroonet/meroonet.scm
scheme
(((((((((((((((((((((((((((((((( L i S P )))))))))))))))))))))))))))))))) This file is part of the files that accompany the book: Newest version may be retrieved from: Check the README file before using this file. (((((((((((((((((((((((((((((((( L i S P )))))))))))))))))))))))))))))))) is still there but there ...
$ I d : meroonet.scm , v 1.21 2006/12/02 18:33:32 queinnec Exp $ LISP Implantation Semantique Programmation ( InterEditions , France ) By Christian Queinnec < > ( IP 128.93.2.54 ) ftp.inria.fr : INRIA / Projects / icsla / Books / LiSP*.tar.gz This is a restricted version of Meroon intended to be only...
803de8ea07e5d8b87c56bec426a83e3c133ca5dec6df277d52365fff00c80a0f
ucsd-progsys/liquidhaskell
Prelude.hs
{-# LANGUAGE MagicHash #-} module Language.Haskell.Liquid.Prelude where import GHC.Types() -- import specs ------------------------------------------------------------------- --------------------------- Arithmetic ---------------------------- ------------------------------------------------------------------- ...
null
https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/5e9347ac719e0ca192b05ccde74617d0cbb05a85/liquid-prelude/src/Language/Haskell/Liquid/Prelude.hs
haskell
# LANGUAGE MagicHash # import specs ----------------------------------------------------------------- ------------------------- Arithmetic ---------------------------- ----------------------------------------------------------------- @ assume times :: x:Int -> y:Int -> Int @ @ assume eq...
module Language.Haskell.Liquid.Prelude where @ assume plus : : : Int | true } - > y:{v : Int | true } - > { v : Int | v = x + y } @ @ assume minus : : : Int | true } - > y:{v : Int | true } - > { v : Int | v = x - y } @ # NOINLINE plus # plus :: Int -> Int -> Int plus x y = x + y # NOINLINE minus # minus...
8c09d3aaeda5580c8605e5fd0a6c02986e58e174697adbfbf433d746c6cc2fa7
albertov/bindings-gdal
Value.hs
# LANGUAGE CPP # # LANGUAGE ScopedTypeVariables # {-# LANGUAGE BangPatterns #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE TypeFamilies # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE DeriveDataTypeable #-} module GDAL.Internal.Types.Value ( Value(..) , isNoData , fromValue , ...
null
https://raw.githubusercontent.com/albertov/bindings-gdal/f91087e06a569fc6dc81b4c22e58b5c9a1dcdc73/src/GDAL/Internal/Types/Value.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE DeriveDataTypeable # # INLINE (<*>) # # INLINE (*>) # # INLINE (>>=) # # INLINE (>>) # # INLINE (+) # # INLINE (-) # # INLINE (*) # # INLINE (/) #
# LANGUAGE CPP # # LANGUAGE ScopedTypeVariables # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE TypeFamilies # # LANGUAGE MultiParamTypeClasses # module GDAL.Internal.Types.Value ( Value(..) , isNoData , fromValue , mkValueUVector , mkMaskedValueUVector , mkAllValidValueUVector...
201e86d6f86348a8d7a40e4a53232f431b3ca509aeebf7a884531fcedebb5312
jacekschae/learn-reagent-course-files
orders.cljs
(ns giggin.components.orders (:require [giggin.state :as state])) (defn total [] (->> @state/orders (map (fn [[id quant]] (* quant (get-in @state/gigs [id :price])))) (reduce +))) (defn orders [] [:aside [:div.order [:div.body (for [[id quant] @state/orders] [:div.item {:key...
null
https://raw.githubusercontent.com/jacekschae/learn-reagent-course-files/bad40303c8e0a8526318a69fdf9c2d786b4240cb/increments/11-format-price/src/giggin/components/orders.cljs
clojure
(ns giggin.components.orders (:require [giggin.state :as state])) (defn total [] (->> @state/orders (map (fn [[id quant]] (* quant (get-in @state/gigs [id :price])))) (reduce +))) (defn orders [] [:aside [:div.order [:div.body (for [[id quant] @state/orders] [:div.item {:key...
21935a0017a782a8c5b122ca1a52976743993eb8ab9269ae73901326f193b857
axch/integer-sequences
meta-system-test.scm
This file is part of Integer Sequences , a library for recreational number theory in MIT Scheme . Copyright 2007 - 2009 . ;;; Integer Sequences is free software ; you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation ...
null
https://raw.githubusercontent.com/axch/integer-sequences/bda1cd1f0b3799c0a7af62a6fdbebf22c110c8be/test/meta-system-test.scm
scheme
you can redistribute it and/or either version 3 of This code is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. if not , see </>. cube-s...
This file is part of Integer Sequences , a library for recreational number theory in MIT Scheme . Copyright 2007 - 2009 . modify it under the terms of the GNU Affero General Public License the License , or ( at your option ) any later version . You should have received a copy of the GNU Affero General Pub...
28896ba3579e2c40e4f70083db6cd4e32950882fb2c2f7e98b5b71b1724c6d2f
fadbadml-dev/FADBADml
brusselator.ml
(**************************************************************************) (* *) (* FADBADml *) (* *) ...
null
https://raw.githubusercontent.com/fadbadml-dev/FADBADml/bd5668433b8ad297aa70e91a032953d55923b533/test/system/brusselator.ml
ocaml
************************************************************************ FADBADml ...
OCaml port by and Based on FADBAD++ , written by and Copyright 2019 - 2020 This file is distributed under the terms of the CeCILL - C license . type scalar = float type elt = float module Make (Op : Fadbad.OpS w...
2b001c3df6698f06df0a234991b8d1ab782529234217569ba30c06e3f34453d2
quux00/go-lightly
project.clj
(defproject thornydev/go-lightly "0.4.0" :description "Clojure library to facilitate CSP concurrent programming based on Go concurrency constructs" :url "-lightly" :license {:name "Eclipse Public License" :url "-v10.html"} :profiles {:dev {:dependencies [[criterium "0.3.1"]]}} :dependencies [[org....
null
https://raw.githubusercontent.com/quux00/go-lightly/815052a72af678e8c84d7a9716c50f7008d8971e/go-lightly/project.clj
clojure
(defproject thornydev/go-lightly "0.4.0" :description "Clojure library to facilitate CSP concurrent programming based on Go concurrency constructs" :url "-lightly" :license {:name "Eclipse Public License" :url "-v10.html"} :profiles {:dev {:dependencies [[criterium "0.3.1"]]}} :dependencies [[org....
5d0db4e639cbc4831a3352e85e5b6b6e8ba5c46b2cf5692f80b47fb42ec87e40
yesodweb/wai
Types.hs
# LANGUAGE CPP # {-# LANGUAGE OverloadedStrings #-} module Network.Wai.Handler.Warp.HTTP2.Types where import qualified Data.ByteString as BS import qualified Network.HTTP.Types as H import Network.HTTP2.Frame import qualified Network.HTTP2.Server as H2 import Network.Wai.Handler.Warp.Imports import Network.Wai.Handl...
null
https://raw.githubusercontent.com/yesodweb/wai/91d23612297d73387e00f8623636c8ca29162efb/warp/Network/Wai/Handler/Warp/HTTP2/Types.hs
haskell
# LANGUAGE OverloadedStrings # -------------------------------------------------------------- -------------------------------------------------------------- | HTTP/2 specific data. | Default HTTP/2 specific data. | HTTP/2 push promise or sever push. This allows files only for backward-compatibility while t...
# LANGUAGE CPP # module Network.Wai.Handler.Warp.HTTP2.Types where import qualified Data.ByteString as BS import qualified Network.HTTP.Types as H import Network.HTTP2.Frame import qualified Network.HTTP2.Server as H2 import Network.Wai.Handler.Warp.Imports import Network.Wai.Handler.Warp.Types isHTTP2 :: Transpor...
a80481ca01a27ac03742797a53c70f84447dedeaf0e9b790006e1388c7c1bd2d
cbaggers/nineveh
to-sort.lisp
(in-package :nineveh.shaping-functions) (defun-g almost-identity ((threshold :float) (min :float) (x :float)) "Acts as identity above whilst x is above 'threshold' below this is smooths off to 'min' Valid when x>=0 Credit: IQ " (if (> x threshold) x (let* ((a (- (* 2f0 min) threshold))...
null
https://raw.githubusercontent.com/cbaggers/nineveh/0a10a84669cd9d1c584f54b9eab062986a5f1c47/shaping-functions/to-sort.lisp
lisp
{TODO} I'd like a better name for 'k' {TODO} I'd like better name for 'k' {TODO} I'd like better names for 'a' & 'b'
(in-package :nineveh.shaping-functions) (defun-g almost-identity ((threshold :float) (min :float) (x :float)) "Acts as identity above whilst x is above 'threshold' below this is smooths off to 'min' Valid when x>=0 Credit: IQ " (if (> x threshold) x (let* ((a (- (* 2f0 min) threshold))...
b9c35a949eb9ebb466e62909402f33e1921044ee4065f5276203088439302f6c
takikawa/racket-ppa
info.rkt
(module info setup/infotab (#%module-begin (define collection (quote multi)) (define deps (quote (("base" #:version "6.2.900.10") "scribble-lib" ("string-constants-lib" #:version "1.12") "scribble-lib" "racket-index"))) (define build-deps (quote ("at-exp-lib" "rackunit-lib"))) (define pkg-desc "Non-GUI code implementin...
null
https://raw.githubusercontent.com/takikawa/racket-ppa/26d6ae74a1b19258c9789b7c14c074d867a4b56b/share/pkgs/drracket-tool-text-lib/info.rkt
racket
(module info setup/infotab (#%module-begin (define collection (quote multi)) (define deps (quote (("base" #:version "6.2.900.10") "scribble-lib" ("string-constants-lib" #:version "1.12") "scribble-lib" "racket-index"))) (define build-deps (quote ("at-exp-lib" "rackunit-lib"))) (define pkg-desc "Non-GUI code implementin...
9dece7e834690780131c55b25d1d3a7986857eea420d135fc3f3fe7c8090f7e6
williamleferrand/accretio
ys_email.ml
* Accretio is an API , a sandbox and a runtime for social playbooks * * Copyright ( C ) 2015 * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation , either version 3 o...
null
https://raw.githubusercontent.com/williamleferrand/accretio/394f855e9c2a6a18f0c2da35058d5a01aacf6586/library/client/ys_email.ml
ocaml
* Accretio is an API , a sandbox and a runtime for social playbooks * * Copyright ( C ) 2015 * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation , either version 3 o...
e5530b7ef9ab7ed8728c4d9b8dfb559ab187aef0af7ca09af557e48ced048138
typedclojure/typedclojure
case.clj
Copyright ( c ) , contributors . ;; 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/typedclojure/typedclojure/45556897356f3c9cbc7b1b6b4df263086a9d5803/typed/clj.checker/src/typed/cljc/checker/check/case.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 ) , contributors . (ns typed.cljc.checker.check.case (:require [typed.cljc.checker.type-rep :as r] [typed.cljc.checker.utils :as u] [clojure.core.typed.util-vars :as vs] [clojure.core.typed.contract-utils :as con] [typed.cljc.checker.var-env :a...