_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
2421e36f7119f9bac015a4c3f45395f40aa8afa2a3b1eeb8fd6d836d380b51bf
8c6794b6/haskell-sc-scratch
HashTableVsMap.hs
| Module : $ Header$ License : : unstable Portability : portable Comparing performance of HashTable and Map . Module : $Header$ License : BSD3 Stability : unstable Portability : portable Comparing performance of HashTable and Map. -} module HashTableVsMap where import Criterio...
null
https://raw.githubusercontent.com/8c6794b6/haskell-sc-scratch/22de2199359fa56f256b544609cd6513b5e40f43/Scratch/Profiling/DataStructures/HashTableVsMap.hs
haskell
| Module : $ Header$ License : : unstable Portability : portable Comparing performance of HashTable and Map . Module : $Header$ License : BSD3 Stability : unstable Portability : portable Comparing performance of HashTable and Map. -} module HashTableVsMap where import Criterio...
b898eba66f3bd427ee6114b1dd4ca7463526eed2aaba8af3d7dfd3f0315a063b
fragnix/fragnix
GHC.Show.hs
{-# LINE 1 "GHC.Show.hs" #-} # LANGUAGE Trustworthy # # LANGUAGE CPP , NoImplicitPrelude , BangPatterns , StandaloneDeriving , MagicHash , UnboxedTuples # MagicHash, UnboxedTuples #-} {-# OPTIONS_HADDOCK hide #-} ...
null
https://raw.githubusercontent.com/fragnix/fragnix/b9969e9c6366e2917a782f3ac4e77cce0835448b/builtins/base/GHC.Show.hs
haskell
# LINE 1 "GHC.Show.hs" # # OPTIONS_HADDOCK hide # --------------------------------------------------------------------------- | Module : GHC.Show License : see libraries/base/LICENSE Maintainer : Stability : internal The 'Show' class, and related operations. -----------------------------------...
# LANGUAGE Trustworthy # # LANGUAGE CPP , NoImplicitPrelude , BangPatterns , StandaloneDeriving , MagicHash , UnboxedTuples # MagicHash, UnboxedTuples #-} ...
31e4edc34815525270d2a719581fc2b1a6e12775a8ccad6edaa143eaeef63dbf
input-output-hk/marlowe-cardano
Spec.hs
----------------------------------------------------------------------------- -- -- Module : $Headers License : Apache 2.0 -- -- Stability : Experimental Portability : Portable -- | tests . -- ----------------------------------------------------------------------------- # LANGUAGE CPP # {-# L...
null
https://raw.githubusercontent.com/input-output-hk/marlowe-cardano/27f83c21c76d05cb1f381022d596a5782a4655e1/marlowe-test/test/Spec.hs
haskell
--------------------------------------------------------------------------- Module : $Headers Stability : Experimental --------------------------------------------------------------------------- # LANGUAGE OverloadedStrings # * Testing | Timeout seconds for static analysis, which can take so much time ...
License : Apache 2.0 Portability : Portable | tests . # LANGUAGE CPP # module Main main ) where import Test.Tasty (TestTree, defaultMain, testGroup) import Test.Tasty.QuickCheck import qualified Spec.Marlowe.Marlowe (prop_noFalsePositives, tests) import qualified Spec.Marlowe.Plutus (tests)...
9dafdd534311dbe32d7cf544c21cfffbdd6cc3117110a3a2e1dcdc0883d0bfec
hamler-lang/hamler
Init.erl
%%--------------------------------------------------------------------------- %% | Module : Init Copyright : ( c ) 2020 - 2021 EMQ Technologies Co. , Ltd. %% License : BSD-style (see the LICENSE file) %% Maintainer : , , %% Stability : experimental %% Portability : ...
null
https://raw.githubusercontent.com/hamler-lang/hamler/3ba89dde3067076e112c60351b019eeed6c97dd7/lib/System/Init.erl
erlang
--------------------------------------------------------------------------- | License : BSD-style (see the LICENSE file) Stability : experimental Portability : portable The System Init FFI module. --------------------------------------------------------------------------- ------------------------------...
Module : Init Copyright : ( c ) 2020 - 2021 EMQ Technologies Co. , Ltd. Maintainer : , , -module('Init'). -include("../Foreign.hrl"). -export([ getArguments/0 , getArgument/1 , getStatus/0 , restartWith/1 ]). getArguments() -> ?IO([{Flag...
505d4df117c809a8c8e8fdb50a54b23bb532443014ed77f3396c5fddf0f8de3f
andrewthad/quickcheck-classes
Prim.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE CPP # # LANGUAGE MagicHash # {-# LANGUAGE PackageImports #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE UnboxedTuples # # OPTIONS_GHC -Wall # module Test.QuickCheck.Classes.Prim ( primLaws ) where import Control.Applicative import Control.Monad....
null
https://raw.githubusercontent.com/andrewthad/quickcheck-classes/0fc6c0602bc6875cdbde34cbdbcf229a175af62f/quickcheck-classes/src/Test/QuickCheck/Classes/Prim.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE PackageImports # byte array with phantom variable that specifies element type ^ destination pointer ^ source array ^ offset into source array ^ number of prims to copy ^ destination array ^ offset into destination array ^ source array ^ offset into source array ^ number of...
# LANGUAGE CPP # # LANGUAGE MagicHash # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE UnboxedTuples # # OPTIONS_GHC -Wall # module Test.QuickCheck.Classes.Prim ( primLaws ) where import Control.Applicative import Control.Monad.Primitive (PrimMonad, PrimState,primitive,primitive_) import C...
a5fbe2ac5160c53e28225287dc1650a2af8f779e693f93eb8d4cebe62a7a82db
travisbrady/flajolet
test_cmsketch.ml
open Core.Std open OUnit2 let sprintf = Printf.sprintf let printf = Printf.printf let test_add _ = let s = "hello" in let cms = Cmsketch.add (Cmsketch.create 1_000 4) s in let ct = Cmsketch.count cms s in assert_equal ct 1 let test_count_not_present _ = let cms = Cmsketch.create 5 1_000 in ass...
null
https://raw.githubusercontent.com/travisbrady/flajolet/a6c530bf1dd73b9fa8b7185d84a5e20458a3d8af/lib_test/test_cmsketch.ml
ocaml
open Core.Std open OUnit2 let sprintf = Printf.sprintf let printf = Printf.printf let test_add _ = let s = "hello" in let cms = Cmsketch.add (Cmsketch.create 1_000 4) s in let ct = Cmsketch.count cms s in assert_equal ct 1 let test_count_not_present _ = let cms = Cmsketch.create 5 1_000 in ass...
7b3f73dce975325ce96e20ad78e3518a19caaa3ddab68338368da97bac61aa81
ckirkendall/kioo
project.clj
(defproject kioo-example "0.1.0-SNAPSHOT" :description "FIXME: write this!" :url "" :jvm-opts ^:replace ["-Xmx1g" "-server"] :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/clojurescript "1.8.51"] [kioo "0.4.2" :eclusions [reagent]] [reagent "0.6.0"...
null
https://raw.githubusercontent.com/ckirkendall/kioo/970d029ca0ab813a916c77286bcb7cf33a005e3c/example/reagent/project.clj
clojure
(defproject kioo-example "0.1.0-SNAPSHOT" :description "FIXME: write this!" :url "" :jvm-opts ^:replace ["-Xmx1g" "-server"] :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/clojurescript "1.8.51"] [kioo "0.4.2" :eclusions [reagent]] [reagent "0.6.0"...
6a524475a21b074ee824278daeb2d68c421a5ce192309995830088b8d2769135
alt-romes/hegg
T2.hs
{-# LANGUAGE DeriveTraversable #-} # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # {-# LANGUAGE OverloadedStrings #-} module T2 where -- Tests whether this saturates just like mwillsey claims that it does in egg! import Prelude hiding (not) import Test.Tasty.HUnit import Data.Deriving import Data.Equality.Mat...
null
https://raw.githubusercontent.com/alt-romes/hegg/3ad7f8bc7e1d0a0b99d00c5485bfb4a0e1ca121a/test/T2.hs
haskell
# LANGUAGE DeriveTraversable # # LANGUAGE OverloadedStrings # Tests whether this saturates just like mwillsey claims that it does in egg!
# LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # module T2 where import Prelude hiding (not) import Test.Tasty.HUnit import Data.Deriving import Data.Equality.Matching import Data.Equality.Language import Data.Equality.Extraction import Data.Equality.Saturation data Lang a = And a a | Or a a ...
735dc0fbb4f840a50e41ccfab39e2e89b5fd5ac0273fbf8220905fa9baeab3b7
uds-psl/Prog
gs.ml
let a = 2 * 3 + 2 let b = 5 * a let a = 5 let c = a + b let square x = x * x let a = square 5 let pow x = square (square (square x)) let pow' x = let a = x * x in let b = a * a in b * b let abs x = if x < 0 then -x else x let max x y : int = if x <= y then y else x let max3 x y z = max (max x y) z let ma...
null
https://raw.githubusercontent.com/uds-psl/Prog/6142df31dd971c2ede2349d77cdfda881365b024/ml/gs.ml
ocaml
let a = 2 * 3 + 2 let b = 5 * a let a = 5 let c = a + b let square x = x * x let a = square 5 let pow x = square (square (square x)) let pow' x = let a = x * x in let b = a * a in b * b let abs x = if x < 0 then -x else x let max x y : int = if x <= y then y else x let max3 x y z = max (max x y) z let ma...
4856ba9b68cde1d881b6374a5fc9fd44d7ab115179282014c32551a06a73e0e4
thelema/bench
bool.ml
let f1 o1 o2 = match o1, o2 with | true, true->true | false, true|true, false->false | false, false->true let f2 o1 o2 = ((o1 & o2) or ((not o1) & (not o2))) let f3 (o1: bool) o2 = o1 = o2 let f4 (o1: bool) o2 = o1 == o2 let f5 o1 o2 = (o1 && o2) || ((not o1) && (not o2)) let f6 (o1:bool) o2 = not (o1 <> o2)...
null
https://raw.githubusercontent.com/thelema/bench/a0e8231464195399a7e5b6699358d012ad9ba87e/examples/bool.ml
ocaml
let f1 o1 o2 = match o1, o2 with | true, true->true | false, true|true, false->false | false, false->true let f2 o1 o2 = ((o1 & o2) or ((not o1) & (not o2))) let f3 (o1: bool) o2 = o1 = o2 let f4 (o1: bool) o2 = o1 == o2 let f5 o1 o2 = (o1 && o2) || ((not o1) && (not o2)) let f6 (o1:bool) o2 = not (o1 <> o2)...
62fc26e97172855c9d3957374f35eb409b41e36137e3b74bf01e6a2c5ac1aa05
yallop/ocaml-posix-types
posix_types.ml
* Copyright ( c ) 2016 . * * This file is distributed under the terms of the MIT License . * See the file LICENSE for details . * Copyright (c) 2016 Jeremy Yallop. * * This file is distributed under the terms of the MIT License. * See the file LICENSE for details. *) This corresponds to the enu...
null
https://raw.githubusercontent.com/yallop/ocaml-posix-types/7fa25bd89173d9822bab14fa86ad529c357e39f0/lib/posix_types.ml
ocaml
* Copyright ( c ) 2016 . * * This file is distributed under the terms of the MIT License . * See the file LICENSE for details . * Copyright (c) 2016 Jeremy Yallop. * * This file is distributed under the terms of the MIT License. * See the file LICENSE for details. *) This corresponds to the enu...
2cf4cf2cd782eb7cf8ca7b436b74514b94276dbb31a2045dd0a9c05e874970b5
cj1128/sicp-review
2.05.scm
(define (cons a b) (* (expt 2 a) (expt 3 b))) (define (num-divs n d) (define (try guess) (if (= (remainder n (expt d guess)) 0) (try (+ guess 1)) (- guess 1))) (try 0)) (define (car p) (num-divs p 2)) (define (cdr p) (num-divs p 3)) (define p (cons 10 20)) (display (car p)) (newline) ...
null
https://raw.githubusercontent.com/cj1128/sicp-review/efaa2f863b7f03c51641c22d701bac97e398a050/chapter-2/2.1/2.05.scm
scheme
(define (cons a b) (* (expt 2 a) (expt 3 b))) (define (num-divs n d) (define (try guess) (if (= (remainder n (expt d guess)) 0) (try (+ guess 1)) (- guess 1))) (try 0)) (define (car p) (num-divs p 2)) (define (cdr p) (num-divs p 3)) (define p (cons 10 20)) (display (car p)) (newline) ...
771451e0509cb14ea983688ecfb6ce770252a387f8863979d1fac24573279275
wilkerlucio/wsscode-async
coll_test.cljc
(ns com.wsscode.async.coll-test (:require [clojure.test :refer [deftest is are run-tests testing]] [#?(:clj com.wsscode.async.async-clj :cljs com.wsscode.async.async-cljs) :refer [go-promise <! <? deftest-async]] [com.wsscode.async.coll :as a.coll])) (deftest-asy...
null
https://raw.githubusercontent.com/wilkerlucio/wsscode-async/163b1cf5c9963d4c798aed4018461abdee754a1d/test/com/wsscode/async/coll_test.cljc
clojure
(ns com.wsscode.async.coll-test (:require [clojure.test :refer [deftest is are run-tests testing]] [#?(:clj com.wsscode.async.async-clj :cljs com.wsscode.async.async-cljs) :refer [go-promise <! <? deftest-async]] [com.wsscode.async.coll :as a.coll])) (deftest-asy...
c5b27b966ec99325fe51f9824b50d7cb31ead3d25f8e6f4811a874bf692237ca
casperschipper/ocaml-cisp
cisp8.ml
open Cisp open Seq (* open Format *) let sec s = !Process.sample_rate *. s let msec = map sec let place = (seq [0.0;4.0 |> sec]) +.~ (rvf (st 0.0) (st 100.0)) let myLineTest () = tline (ch [|0.1;0.5;1.0;2.0;1.5;0.75;4.0;8.0|]) place let sum lst = List.fold_right (fun x acc -> x +.~ acc) lst (s...
null
https://raw.githubusercontent.com/casperschipper/ocaml-cisp/954e4b71dca0d0af0786395d727b7a7cde5568a7/examples/cisp_backup/TimedLines/cisp8.ml
ocaml
open Format this is excellent
open Cisp open Seq let sec s = !Process.sample_rate *. s let msec = map sec let place = (seq [0.0;4.0 |> sec]) +.~ (rvf (st 0.0) (st 100.0)) let myLineTest () = tline (ch [|0.1;0.5;1.0;2.0;1.5;0.75;4.0;8.0|]) place let sum lst = List.fold_right (fun x acc -> x +.~ acc) lst (st 0.0) let singleto...
9183611f02a5994a9d73a6ccd326b962377763857555ad5b7597619dd1c000e7
scalaris-team/scalaris
yaws_dime.erl
%%%------------------------------------------------------------------- %%% File : dime.erl @author < > %%% @doc Encoding and decoding of DIME messages. The Direct Internet Message Encapsulation ( DIME ) specification %%% defines a mechanism for packaging binary data with SOAP messages. %%% -ids/draft-nielsen-...
null
https://raw.githubusercontent.com/scalaris-team/scalaris/feb894d54e642bb3530e709e730156b0ecc1635f/contrib/yaws/src/yaws_dime.erl
erlang
------------------------------------------------------------------- File : dime.erl @doc Encoding and decoding of DIME messages. defines a mechanism for packaging binary data with SOAP messages. -ids/draft-nielsen-dime-02.txt <pre> 0 1 2 3 +-+-+-+-+-+-+-+-...
@author < > The Direct Internet Message Encapsulation ( DIME ) specification Layout of a DIME encoded message is like this 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 | VERSION |B|E|F| TYPE_T| RESRVD| OPTIONS_LENGTH | Created : 7 Apr 2008 by < > -module(yaws_dime...
6117ff366fe68cbc9c6cadffb9b2bf20e7ffee037fc0b2f4a22a8a0f25ca31a5
janestreet/bonsai
all_url_var_features_example.ml
open! Core open! Bonsai_web open Bonsai.Let_syntax module Url_var = Bonsai_web_ui_url_var open Url_var.Typed module Form = Bonsai_web_ui_form module Path_order = Url_var.Typed.Parser.Record.Path_order module Location = struct type t = { x : int ; y : int } [@@deriving typed_fields, sexp, equal, compare...
null
https://raw.githubusercontent.com/janestreet/bonsai/782fecd000a1f97b143a3f24b76efec96e36a398/examples/url_var_all_features/lib/all_url_var_features_example.ml
ocaml
open! Core open! Bonsai_web open Bonsai.Let_syntax module Url_var = Bonsai_web_ui_url_var open Url_var.Typed module Form = Bonsai_web_ui_form module Path_order = Url_var.Typed.Parser.Record.Path_order module Location = struct type t = { x : int ; y : int } [@@deriving typed_fields, sexp, equal, compare...
96592ac047f27cc54b1a63e24d17b2fe29f7aa3319e8033d4c986efcfb9e7390
LeapYear/github-rest
KeyValue.hs
# LANGUAGE CPP # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} | Module : GitHub . REST.KeyValue Maintainer : < > Stability : experimental Portability : portable Define the ' KeyValue ' helper type . Module : GitHub.REST.KeyValue Maintainer : Brandon Chinn <> Stabil...
null
https://raw.githubusercontent.com/LeapYear/github-rest/2dc71ceb36553b09cebb2c78c6f6f8dbbdc8049e/src/GitHub/REST/KeyValue.hs
haskell
# LANGUAGE GADTs # | A type representing a key-value pair. # OVERLAPS # Helpers
# LANGUAGE CPP # # LANGUAGE FlexibleInstances # | Module : GitHub . REST.KeyValue Maintainer : < > Stability : experimental Portability : portable Define the ' KeyValue ' helper type . Module : GitHub.REST.KeyValue Maintainer : Brandon Chinn <> Stability : experimental P...
aaa9589b43d0aa1d350351923b7623c853a0c9dae1006b5c3d33e5ea0b05bc82
lisp-korea/sicp
ch4-ambeval.scm
;;;;AMB EVALUATOR FROM SECTION 4.3 OF ;;;; STRUCTURE AND INTERPRETATION OF COMPUTER PROGRAMS ;;;;Matches code in ch4.scm. ;;;; To run the sample programs and exercises, code below also includes ;;;; -- enlarged primitive-procedures list -- support for Let ( as noted in footnote 56 , p.428 ) ;;;;This file can be loa...
null
https://raw.githubusercontent.com/lisp-korea/sicp/4cdc1b1d858c6da7c9f4ec925ff4a724f36041cc/ch04/4.3/ch4-ambeval.scm
scheme
AMB EVALUATOR FROM SECTION 4.3 OF STRUCTURE AND INTERPRETATION OF COMPUTER PROGRAMS Matches code in ch4.scm. To run the sample programs and exercises, code below also includes -- enlarged primitive-procedures list This file can be loaded into Scheme as a whole. **NOTE**This file loads the metacircular evaluator of ...
-- support for Let ( as noted in footnote 56 , p.428 ) sections 4.1.1 - 4.1.4 , since it uses the expression representation , the two lines at the end of the file ch4-mceval.scm Note : It is loaded first so that the section 4.2 definition of eval overrides the definition from 4.1.1 (load "ch4-mceval.scm")...
7fe196064b0274ef0e369ec5abae274bd01fd8c4452f380a380872232d19bede
snowleopard/alga
Undirected.hs
----------------------------------------------------------------------------- -- | -- Module : Algebra.Graph.Test.Undirected Copyright : ( c ) 2016 - 2022 License : MIT ( see the file LICENSE ) -- Maintainer : -- Stability : experimental -- Testsuite for " Algebra . Graph . " . --------------------...
null
https://raw.githubusercontent.com/snowleopard/alga/399b5dc538a2496b67f9322dc7247e06a4ec326b/test/Algebra/Graph/Test/Undirected.hs
haskell
--------------------------------------------------------------------------- | Module : Algebra.Graph.Test.Undirected Maintainer : Stability : experimental --------------------------------------------------------------------------- * Testsuite
Copyright : ( c ) 2016 - 2022 License : MIT ( see the file LICENSE ) Testsuite for " Algebra . Graph . " . module Algebra.Graph.Test.Undirected ( testUndirected ) where import Algebra.Graph.Undirected import Algebra.Graph.Test import Algebra.Graph.Test.API (toIntAPI, undirectedGraphAPI) import A...
27530bd8fc35064f83f8299a1396e9f00c26f8fe9bf5f3a67c4499610db50d73
per-gron/blackhole
namespace.scm
;;; -------------------------------------------------------------- ;;; ;;; ;;; ;;; Namespace choosing functionality ;;; ;;; ;;; ;;; -----------------------...
null
https://raw.githubusercontent.com/per-gron/blackhole/3f78eb726f85a6b8bddf757e6f28c785bc70e53d/src/namespace.scm
scheme
-------------------------------------------------------------- ;;; ;;; Namespace choosing functionality ;;; ;;; --------------------------------------...
(define ns-file (path-expand "ns.dat" *blackhole-work-dir*)) (define ns-table #f) (define ns-table-timestamp #f) (define *ns-table-dont-read-file* (make-parameter #f)) (define (ns-file-timestamp) (time->seconds (if ns-file (file-info-last-modification-time (file-info...
e421fe60f3869c421b904abf73f78b306b5cdf70dc955656269d6d3251a9ad6b
default-kramer/plisqin
frags.rkt
#lang racket There are 2 submodules : unsafe and strict . ; Each one weaves the procs together and provides all the ids. (require "frag-bodies.rkt" "frag-types.rkt" "frag-nullchecks.rkt" "weave.rkt") (define-syntax-rule (export-all type-dispatcher null-dispatcher id ...) (begin (de...
null
https://raw.githubusercontent.com/default-kramer/plisqin/26421c7c42656c873c4e0a4fc7f48c0a3ed7770f/plisqin-lib/private2/sql/frags.rkt
racket
Each one weaves the procs together and provides all the ids. Export with types via submodules these are in unsafe only Check that each id is bound to a fragment constructor. Test that (frag-id "foo") is `maybe` nullable. Also test annotation and inference. Skip some that have special handling. The date math fun...
#lang racket There are 2 submodules : unsafe and strict . (require "frag-bodies.rkt" "frag-types.rkt" "frag-nullchecks.rkt" "weave.rkt") (define-syntax-rule (export-all type-dispatcher null-dispatcher id ...) (begin (define/weave retval-dispatcher type-dispatcher null-dispatcher ...
a966e068c35b273e196578c317fcf53fa71df3ac90441fb7e1b03c7dbd461d45
nikita-volkov/rerebase
Free.hs
module Control.Selective.Rigid.Free ( module Rebase.Control.Selective.Rigid.Free ) where import Rebase.Control.Selective.Rigid.Free
null
https://raw.githubusercontent.com/nikita-volkov/rerebase/25895e6d8b0c515c912c509ad8dd8868780a74b6/library/Control/Selective/Rigid/Free.hs
haskell
module Control.Selective.Rigid.Free ( module Rebase.Control.Selective.Rigid.Free ) where import Rebase.Control.Selective.Rigid.Free
5a38a2de7ae2ba8d890e5adb55d298fe48ad6bbb6d27c54dda69f92fce8db981
helmutkian/cl-wasm-runtime
test-table-type.lisp
(in-package #:cl-wasm-runtime.test) (5am:def-suite cl-wasm-runtime.test.table-type :in cl-wasm-runtime.test) (5am:in-suite cl-wasm-runtime.test.table-type) (5am:test test-make-table-type (let* ((min 1) (max 7) (limits (make-wasm-limits min max)) (table-type (make-wasm-tabletype :wasm-i32 limits)) (value-...
null
https://raw.githubusercontent.com/helmutkian/cl-wasm-runtime/cb938ca1e757e83225aee57ea730149447a23dd6/test/test-table-type.lisp
lisp
(in-package #:cl-wasm-runtime.test) (5am:def-suite cl-wasm-runtime.test.table-type :in cl-wasm-runtime.test) (5am:in-suite cl-wasm-runtime.test.table-type) (5am:test test-make-table-type (let* ((min 1) (max 7) (limits (make-wasm-limits min max)) (table-type (make-wasm-tabletype :wasm-i32 limits)) (value-...
0564e36ac473dec99e0ee2d1f7bac4d5b6dbb48785c31461905dd18a8edd8a65
karimarttila/clojure
session_interface.clj
(ns simpleserver.service.session.session-interface "Session interface. Use only through session service.") (defprotocol SessionInterface (create-json-web-token [this env email] "Creates the JSON web token and adds it to the sessions database.") (validate-token [this env token] "Validates the token. Retur...
null
https://raw.githubusercontent.com/karimarttila/clojure/ee1261b9a8e6be92cb47aeb325f82a278f2c1ed3/webstore-demo/integrant-simple-server/src/clj/simpleserver/service/session/session_interface.clj
clojure
(ns simpleserver.service.session.session-interface "Session interface. Use only through session service.") (defprotocol SessionInterface (create-json-web-token [this env email] "Creates the JSON web token and adds it to the sessions database.") (validate-token [this env token] "Validates the token. Retur...
02cae1ef766f4f8bd9ac12bbff67dff9803684dd72bff4e2d0d711d38e0a0405
Copilot-Language/copilot
AddMult.hs
Copyright © 2019 National Institute of Aerospace / Galois , Inc. -- | Another small example that calculates a constant value using a recursive -- function. module Main where import Language.Copilot spec :: Spec spec = trigger "f" true [ arg $ mult 5 ] where mult :: Word64 -> Stream Word64 mult 0 = 1 ...
null
https://raw.githubusercontent.com/Copilot-Language/copilot/17a9b45eea4e95a465d6e773c6fbcf9bf810b6cc/copilot/examples/AddMult.hs
haskell
| Another small example that calculates a constant value using a recursive function.
Copyright © 2019 National Institute of Aerospace / Galois , Inc. module Main where import Language.Copilot spec :: Spec spec = trigger "f" true [ arg $ mult 5 ] where mult :: Word64 -> Stream Word64 mult 0 = 1 mult i = constant i * mult (i-1) main :: IO () main = interpret 100 spec
2c94329f36815727d05741661cdbd2b1d64202cb36dc37b7466cf9f872a300d2
spechub/Hets
PrintMS.hs
module OWL2.PrintMS where import qualified Data.Map as M import qualified Data.Set as S import Common.Doc import Common.DocUtils import Common.Keywords import Common.IRI import Common.GlobalAnnotations as GA (PrefixMap) import OWL2.AS import OWL2.Keywords import OWL2.ColonKeywords --- auxiliary MS data structures a...
null
https://raw.githubusercontent.com/spechub/Hets/202400e143f6dad8bea53edbdf012b42621ce648/OWL2/PrintMS.hs
haskell
- auxiliary MS data structures and transformations functions to MS ----- transfromation functions, static analysis | transform Declaration | transform Entity | transform ObjectProperty axiom SubObjectPropertyOf axiom ObjectPropertyDomain axiom ObjectPropertyRange axiom FunctionalObjectProperty axiom InverseFun...
module OWL2.PrintMS where import qualified Data.Map as M import qualified Data.Set as S import Common.Doc import Common.DocUtils import Common.Keywords import Common.IRI import Common.GlobalAnnotations as GA (PrefixMap) import OWL2.AS import OWL2.Keywords import OWL2.ColonKeywords type Annotations = [Annotation] d...
e79d773821c60b13e66a29b3dceac14ed48b3dda85590aa2a3e4bd15fb553b66
blancas/kern
test_lexer.clj
Copyright ( c ) 2013 . All rights reserved . ;; The use and distribution terms for this software are covered by the Eclipse Public License 1.0 ( -1.0.php ) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be bound by ;; ...
null
https://raw.githubusercontent.com/blancas/kern/3ef65e559658c06a321a9ca7c85a541edc7b9ff2/src/test/clojure/blancas/kern/test_lexer.clj
clojure
The use and distribution terms for this software are covered by the 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 this notice, or any other, from this software. Pri...
Copyright ( c ) 2013 . All rights reserved . Eclipse Public License 1.0 ( -1.0.php ) (ns blancas.kern.test-lexer (:use [blancas.kern.core] [blancas.kern.lexer.basic] [clojure.test] [midje.sweet :exclude (expect one-of)]) (:require [blancas.kern.lexer :as lex])) (def get-msg-str (ns-resolve 'blancas.kern...
335f028deb16b53dec25a09eb0f83754a83c66f1f4c15bd4eb6b21bebbbe3bb5
pink-gorilla/webly
telegram.clj
(ns modular.rest.lib.telegram (:require [clojure.pprint :refer [print-table]] [taoensso.timbre :as timbre :refer [info error]] [telegrambot-lib.core :as tbot] [modular.config :refer [get-in-config]])) ;; #getting-updates ;talk to: BotFather Bot usernames always end in ' bot ' ( e.g. @TriviaBot , @GitHub...
null
https://raw.githubusercontent.com/pink-gorilla/webly/957785f98a096772439a022417a751a429638274/oauth2/src/modular/rest/lib/telegram.clj
clojure
#getting-updates talk to: BotFather The name of your bot is displayed in contact details and elsewhere. /get_messages_stats /set_timer 10min Alarm! ssl certs for morse: /
(ns modular.rest.lib.telegram (:require [clojure.pprint :refer [print-table]] [taoensso.timbre :as timbre :refer [info error]] [telegrambot-lib.core :as tbot] [modular.config :refer [get-in-config]])) Bot usernames always end in ' bot ' ( e.g. @TriviaBot , @GitHub_bot ) . Use the /newbot command to cr...
68dada4d8d8fac6a547cf1652de042fa8a18c2bc6d233e579b1fd07b416e8596
dvingo/my-clj-utils
fulcro_components.cljs
(ns dv.fulcro-components (:require [com.fulcrologic.fulcro.components :as c] [com.fulcrologic.fulcro.dom :as dom] [com.fulcrologic.semantic-ui.modules.transition.ui-transition :refer [ui-transition]])) (defn notification [{:keys [ui/submit-state ui/server-message]}] (let [[success? failed?] (map #{subm...
null
https://raw.githubusercontent.com/dvingo/my-clj-utils/ecc8b77bc6ed88fc31a76c611a590294d7a84d06/src/main/dv/fulcro_components.cljs
clojure
(ns dv.fulcro-components (:require [com.fulcrologic.fulcro.components :as c] [com.fulcrologic.fulcro.dom :as dom] [com.fulcrologic.semantic-ui.modules.transition.ui-transition :refer [ui-transition]])) (defn notification [{:keys [ui/submit-state ui/server-message]}] (let [[success? failed?] (map #{subm...
9c0f97185dcb8ee947675e7a89182ac8ebbddf08b61d2c4b97205106254660fe
bobbae/gosling-emacs
modula2.ml
; Modula-2 editing support package for emacs ; ; author: Mick Jordan ; amended: Peter Robinson ; thoroughly modified and extended: Benli Pierce ; documented and prepared for distribution: Benli Pierce ; -------------------------------------------------------------- ; The main facilities of the modula-2 mode are: ; ...
null
https://raw.githubusercontent.com/bobbae/gosling-emacs/8fdda532abbffb0c952251a0b5a4857e0f27495a/maclib/modula2.ml
ocaml
; Modula-2 editing support package for emacs ; ; author: Mick Jordan ; amended: Peter Robinson ; thoroughly modified and extended: Benli Pierce ; documented and prepared for distribution: Benli Pierce ; -------------------------------------------------------------- ; The main facilities of the modula-2 mode are: ; ...
df3ab4a034787dd1c561bb083df6ac1a3f77595ca8683c845d9ed02cda5fc5b8
banacorn/agda-language-server
Monad.hs
# LANGUAGE FlexibleContexts # module Monad where import Agda.IR import Agda.Interaction.Base ( IOTCM ) import Agda.TypeChecking.Monad ( TCMT ) import Control.Concurrent import Control.Monad.Reader import Data.Text ( Text ...
null
https://raw.githubusercontent.com/banacorn/agda-language-server/41b8fb0ea16509fc7253005fdb73a6796a61af18/src/Monad.hs
haskell
------------------------------------------------------------------------------ ------------------------------------------------------------------------------ | OUR monad ------------------------------------------------------------------------------ | Provider send `ResponseEnd` | Sends a Response to the client via ...
# LANGUAGE FlexibleContexts # module Monad where import Agda.IR import Agda.Interaction.Base ( IOTCM ) import Agda.TypeChecking.Monad ( TCMT ) import Control.Concurrent import Control.Monad.Reader import Data.Text ( Text ...
5263982e280f4c0b7e5ebe1e53d8f88a2c9d53553c3ece67461c39c34399ec65
serokell/importify
04-ImportifyOtherUnused.hs
module ImportifyOtherUsed where import Extended.Data.List (removeAtMultiple)
null
https://raw.githubusercontent.com/serokell/importify/09f31d851b2152ae6ce880b81abc3554ade29f37/test/test-data/importify%40project/04-ImportifyOtherUnused.hs
haskell
module ImportifyOtherUsed where import Extended.Data.List (removeAtMultiple)
bb522d4fcd56e48ab8583c944c78a8a8892c213a545214a01ebb924a284c64ed
jlouis/turtle
turtle_conn.erl
@doc Manage a connection to This module provides a persistent connection to AMQP for an Erlang node ( ) . It will %% make sure a connection is kept alive toward the target, and it will try reconnecting %% if the connection is lost (and this process is supervised). %% %% Once a connection is established, this proce...
null
https://raw.githubusercontent.com/jlouis/turtle/a403eb8941f8c7b4067e619424d048c5143d68e8/src/turtle_conn.erl
erlang
make sure a connection is kept alive toward the target, and it will try reconnecting if the connection is lost (and this process is supervised). Once a connection is established, this process will register itself in gproc under the name `{turtle, connection, Name}', where `Name' is given when start_link/1'ing this...
@doc Manage a connection to This module provides a persistent connection to AMQP for an Erlang node ( ) . It will @private -module(turtle_conn). -behaviour(gen_server). -include_lib("amqp_client/include/amqp_client.hrl"). -export([ start_link/2 ]). -export([ conn/1, close/1 ]). -export([ init/1, ha...
28f68293f5cb4f16d8e5763266a0760be9b933f886137a69300fe450855ea5f8
gvolpe/exchange-rates
Counter.hs
module Concurrency.Counter where import Data.Functor ( (<&>) , void ) import Data.Interface ( Counter(..) ) import Data.IORef mkCounter :: IO (Counter IO) mkC...
null
https://raw.githubusercontent.com/gvolpe/exchange-rates/161108bfc859f399f06df7a8ce10e786f01af533/src/Concurrency/Counter.hs
haskell
module Concurrency.Counter where import Data.Functor ( (<&>) , void ) import Data.Interface ( Counter(..) ) import Data.IORef mkCounter :: IO (Counter IO) mkC...
dfdffbb108fca7570e48412b53497a374a36ed0d263712d5ca79e96d6b2e1242
f-f/dhall-clj
typecheck.clj
(ns dhall-clj.typecheck (:require [medley.core :refer [map-kv]] [clojure.set :refer [union difference]] [dhall-clj.ast :refer :all] [dhall-clj.context :as context] [dhall-clj.fail :as fail] [dhall-clj.beta-normalize :refer [beta-normalize judgmentally-equal]...
null
https://raw.githubusercontent.com/f-f/dhall-clj/05d25d2464972bbeae46d828b478b4cfd59836dc/src/dhall_clj/typecheck.clj
clojure
If the body's type is Type, we can take a fast path and typecheck only at context-insertion-time FIXME: I'm not super fond of this try FIXME: is this actually needed? FIXME: is this actually needed?
(ns dhall-clj.typecheck (:require [medley.core :refer [map-kv]] [clojure.set :refer [union difference]] [dhall-clj.ast :refer :all] [dhall-clj.context :as context] [dhall-clj.fail :as fail] [dhall-clj.beta-normalize :refer [beta-normalize judgmentally-equal]...
3ed304b258960a5c324216814e671916b96314f3519875e89529ea1ca436d53f
2600hz/kazoo
kz_services_activation_items.erl
%%%----------------------------------------------------------------------------- ( C ) 2012 - 2020 , 2600Hz %%% @doc This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %%% %%% @end %%%--------...
null
https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/core/kazoo_services/src/kz_services_activation_items.erl
erlang
----------------------------------------------------------------------------- @doc @end ----------------------------------------------------------------------------- ------------------------------------------------------------------------------ @doc @end ------------------------------------------------------------...
( C ) 2012 - 2020 , 2600Hz This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. -module(kz_services_activation_items). -export([empty/0]). -export([create/1]). -export([public_json/1]). -expor...
a1ffdecbba9b24fdf1a6a1110d54c2f8090635c391ff8b10811dda25a17d3a6c
michalkonecny/aern2
BenchMain.hs
# LANGUAGE DataKinds , Arrows , ScopedTypeVariables # # LANGUAGE CPP # -- #define DEBUG module Main where #ifdef DEBUG import Debug.Trace (trace) #define maybeTrace trace #define maybeTraceIO putStrLn #else #define maybeTrace (\ (_ :: String) t -> t) #define maybeTraceIO (\ (_ :: String) -> return ()) #endif import M...
null
https://raw.githubusercontent.com/michalkonecny/aern2/ac9beb0ec333709b9d33317df5c9e8876d253db2/aern2-real/attic/bench/BenchMain.hs
haskell
#define DEBUG import Text.Printf | otherwise = taskDFTA k (netlog, results) <- executeQAParAwithLog $ writeNetLogJSON netlog return results | otherwise = taskDFTA k (netlog, results) <- executeQAParAwithLog $ writeNetLogJSON netlog | otherwise = taskDFTA k checkCAccuracy (a :+ i) = do a2 <- checkAc...
# LANGUAGE DataKinds , Arrows , ScopedTypeVariables # # LANGUAGE CPP # module Main where #ifdef DEBUG import Debug.Trace (trace) #define maybeTrace trace #define maybeTraceIO putStrLn #else #define maybeTrace (\ (_ :: String) t -> t) #define maybeTraceIO (\ (_ :: String) -> return ()) #endif import MixedTypesNumPrelu...
3cea8355167f8068ce684ab034631d404e29afd88dc71fe65a66e4990cfaab0c
MinaProtocol/mina
intf.ml
module Input = Random_oracle_input module type S = sig type input module State : sig type _ t end type field type field_constant type bool module Digest : sig type t = field val to_bits : ?length:int -> t -> bool list end val state_size : int val rate : int val initial_state ...
null
https://raw.githubusercontent.com/MinaProtocol/mina/7be29b1afbcf43dfdd47c4c646ad7ad473fe3fa9/src/lib/random_oracle/intf.ml
ocaml
module Input = Random_oracle_input module type S = sig type input module State : sig type _ t end type field type field_constant type bool module Digest : sig type t = field val to_bits : ?length:int -> t -> bool list end val state_size : int val rate : int val initial_state ...
79525bd326b87448ab003e68fc06b8856049b76be73ceabfd90a377066184670
maxsnew/modal-scheme
initialize.rkt
#lang racket/base (provide (struct-out foreign) (struct-out ctype) (struct-out method) (struct-out vtype) (struct-out tagged) stack regs new-method matches-method? invoke-method new-tag matches-tag? Tag rkt->fiddle fiddle->rkt fo-rkt->fiddle) ;; This is the *stack*, a Box Methods ;; where Methods is...
null
https://raw.githubusercontent.com/maxsnew/modal-scheme/3bcda7f40e7b878049d23ed553767988d6a83324/fiddle/initialize.rkt
racket
This is the *stack*, a Box Methods where Methods is one of - '() -- meaning the calling context is expecting a value - '(cons ? Methods) -- an argument pushed on This is the *register file*, implemented as a mutable hash table kw -o> val a gensym'd symbol a natural number a gensym'd symbol a list of arguments...
#lang racket/base (provide (struct-out foreign) (struct-out ctype) (struct-out method) (struct-out vtype) (struct-out tagged) stack regs new-method matches-method? invoke-method new-tag matches-tag? Tag rkt->fiddle fiddle->rkt fo-rkt->fiddle) - ' ( method sym ( listof ? ) Methods ) -- a method wit...
6a1ca1766479a4ea02755a027e74907f69ead390a6d48238214033f37960aa03
DSLsofMath/DSLsofMath
PowerSeries_tweets.hs
import Prelude hiding (exp,sin,cos) z=zipWith c∫f = c:z (/) f [1..] exp = 1∫exp sin = 0∫cos cos = 1∫(-sin) instance Num a => Num [a] where (+) = z (+) (-) = z (-) (*) = m fromInteger i = fromInteger i : repeat 0 m (x:xs) q@(y:ys) = x*y : (map (x*) ys) + xs*q # DSLM A tweet - sized version of today 's live ...
null
https://raw.githubusercontent.com/DSLsofMath/DSLsofMath/e28d8faaa2948cd896fe102e501ee4ed43551831/2019/L/06/PowerSeries_tweets.hs
haskell
import Prelude hiding (exp,sin,cos) z=zipWith c∫f = c:z (/) f [1..] exp = 1∫exp sin = 0∫cos cos = 1∫(-sin) instance Num a => Num [a] where (+) = z (+) (-) = z (-) (*) = m fromInteger i = fromInteger i : repeat 0 m (x:xs) q@(y:ys) = x*y : (map (x*) ys) + xs*q # DSLM A tweet - sized version of today 's live ...
f0279b858550c150e37bbbb7cdc092b90c0f40a92a04a377b31b8edb305b920d
chetmurthy/ensemble
comm_impl.ml
(**************************************************************) COMM_IMPL.ML Authors : Robbert vanRenesse and , 4/95 (* Ohad Rodeh : *) C - Memory mangement support 9/2001 Winsock2 support 11/2001 (****************************...
null
https://raw.githubusercontent.com/chetmurthy/ensemble/8266a89e68be24a4aaa5d594662e211eeaa6dc89/ensemble/server/socket/s/nt/comm_impl.ml
ocaml
************************************************************ Ohad Rodeh : ************************************************************ ************************************************************ ************************************************************ ***********************...
COMM_IMPL.ML Authors : Robbert vanRenesse and , 4/95 C - Memory mangement support 9/2001 Winsock2 support 11/2001 let name = "SSOCKET" let failwith s = failwith (name^":"^s) open Printf open Socksupp external gettimeofday : timeval -> unit = "skt_gettimeofday"...
1ed416977d3b98d07012b2905216ba212ba2066e54ed76f69e2488f4cc395256
well-typed/large-records
VL.hs
# LANGUAGE FlexibleContexts # # LANGUAGE NoMonomorphismRestriction # {-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE TypeApplications # {-# LANGUAGE TypeFamilies #-} # OPTIONS_GHC -Wno - missing - signatures # module Test.Record.Generic.Sanity.Lens.VL (tests) where import Data....
null
https://raw.githubusercontent.com/well-typed/large-records/fbc9d886094b7b40d6b89db72ff4c7fb59d5b903/large-generics/test/Test/Record/Generic/Sanity/Lens/VL.hs
haskell
# LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # ------------------------------------------------------------------------------ Simple example (no type families) ------------------------------------------------------------------------------ ------------------------------------------------...
# LANGUAGE FlexibleContexts # # LANGUAGE NoMonomorphismRestriction # # LANGUAGE TypeApplications # # OPTIONS_GHC -Wno - missing - signatures # module Test.Record.Generic.Sanity.Lens.VL (tests) where import Data.Char (toUpper) import Data.Functor.Identity import Data.Maybe (fromJust) import Data.P...
b9460ce9085aeebb8dd5f9a258fbabd443323cd98f2683647ac0f2b6622b76f8
AnyChart/export-server
twitter.clj
(ns export-server.sharing.twitter (:use org.httpkit.server compojure.core) (:require [ring.util.response :as rutils :refer [redirect response]] [compojure.route :as route :refer [not-found]] [clj-http.client :as client] [oauth.one :as one :refer []] [cheshire....
null
https://raw.githubusercontent.com/AnyChart/export-server/0ef2f084e07aaa144e38dff30e3283f686de1108/src/export_server/sharing/twitter.clj
clojure
===================================================================================================================== Initialization ===================================================================================================================== =================================================================...
(ns export-server.sharing.twitter (:use org.httpkit.server compojure.core) (:require [ring.util.response :as rutils :refer [redirect response]] [compojure.route :as route :refer [not-found]] [clj-http.client :as client] [oauth.one :as one :refer []] [cheshire....
f314306decda25ee1eb5359eae474852ee35770f36710540f7f7a6540792281a
Earthen/clj-cb
cluster_test.clj
(ns earthen.clj-cb.cluster-test (:require [clojure.test :refer :all] [earthen.clj-cb.cluster :as c] [earthen.clj-cb.utils :as u] [earthen.clj-cb.fixtures :as fx])) (use-fixtures :once fx/init) (defn- get-bucket [name] (->> (c/buckets (fx/manager)) (some #(if (= (:name %) name...
null
https://raw.githubusercontent.com/Earthen/clj-cb/aaf7db4bfd26a1d6506b980d6cae6399c3776751/test/earthen/clj_cb/cluster_test.clj
clojure
(ns earthen.clj-cb.cluster-test (:require [clojure.test :refer :all] [earthen.clj-cb.cluster :as c] [earthen.clj-cb.utils :as u] [earthen.clj-cb.fixtures :as fx])) (use-fixtures :once fx/init) (defn- get-bucket [name] (->> (c/buckets (fx/manager)) (some #(if (= (:name %) name...
2cc4dcc12e2085bce3c0d4dfae88685720ef5fa8e85577ebcd2f1002a4172b09
deadeyejoe/fabrikk
interface.clj
(ns fabrikk.build-context.interface (:require [fabrikk.build-context.core :as build-context])) (defn init [primary] (build-context/init primary)) (defn id->entity [build-context id] (build-context/id->entity build-context id)) (defn primary [build-context] (build-context/primary build-context)) (defn update...
null
https://raw.githubusercontent.com/deadeyejoe/fabrikk/c731cd435baaf241450a9b280286b894c8cee81c/components/build-context/src/fabrikk/build_context/interface.clj
clojure
(ns fabrikk.build-context.interface (:require [fabrikk.build-context.core :as build-context])) (defn init [primary] (build-context/init primary)) (defn id->entity [build-context id] (build-context/id->entity build-context id)) (defn primary [build-context] (build-context/primary build-context)) (defn update...
fa34a5c9b62f19a34187e54578f2f7b5417a190fa060fed95b317571b137698f
dinosaure/pasteur
config.ml
( c ) 2019 open Mirage let remote = let doc = Key.Arg.info ~doc:"Remote Git repository." [ "r"; "remote" ] in Key.(create "remote" Arg.(required string doc)) let port = let doc = Key.Arg.info ~doc:"port of HTTP service." [ "p"; "port" ] in Key.(create "port" Arg.(opt (some int) None doc)) let email = ...
null
https://raw.githubusercontent.com/dinosaure/pasteur/cf4b5bcec90c27c372279597e1ec7fab1ae22e66/config.ml
ocaml
( c ) 2019 open Mirage let remote = let doc = Key.Arg.info ~doc:"Remote Git repository." [ "r"; "remote" ] in Key.(create "remote" Arg.(required string doc)) let port = let doc = Key.Arg.info ~doc:"port of HTTP service." [ "p"; "port" ] in Key.(create "port" Arg.(opt (some int) None doc)) let email = ...
d9582d61a23204f9c00fe5be9642bd7a7d4c1f414c90e065c86343eee67aa7de
hiroshi-unno/coar
exAtomSet.ml
open Core open Ast type t = ExAtom.t Set.Poly.t let papps_of atms pvar = Set.Poly.filter_map atms ~f:(function | ExAtom.PApp (((pvar', _), _) as papp) -> if Stdlib.(pvar' = pvar) then Some papp else None | _ -> None) let ppapps_of atms pvar = Set.Poly.filter_map atms ~f:(function | ExAto...
null
https://raw.githubusercontent.com/hiroshi-unno/coar/90a23a09332c68f380efd4115b3f6fdc825f413d/lib/PCSat/common/exAtomSet.ml
ocaml
open Core open Ast type t = ExAtom.t Set.Poly.t let papps_of atms pvar = Set.Poly.filter_map atms ~f:(function | ExAtom.PApp (((pvar', _), _) as papp) -> if Stdlib.(pvar' = pvar) then Some papp else None | _ -> None) let ppapps_of atms pvar = Set.Poly.filter_map atms ~f:(function | ExAto...
328d5787282b4852b3cd16d8041d8a4371893107258f33c0bfb80ebe71f57b6c
prg-titech/Kani-CUDA
diffusion3d.rkt
#lang rosette (require "../../lang.rkt" "diffusion3d-baseline.rkt") 7 - points stencil computation example . Parallel diffusion program (define (diffusion-kernel in out nx ny nz ce cw cn cs ct cb cc file ...
null
https://raw.githubusercontent.com/prg-titech/Kani-CUDA/e97c4bede43a5fc4031a7d2cfc32d71b01ac26c4/Emulator/Examples/Diffusion3d/diffusion3d.rkt
racket
Add a constraint that it is equal to each of the elements of upper bound Execute a diffusion program on CPU CPU-in CPU-out SIZEX SIZEY SIZEZ e w n s t b c) Execute a diffusion program on GPU (define out-file (open-output-file "profile" #:exists 'trun...
#lang rosette (require "../../lang.rkt" "diffusion3d-baseline.rkt") 7 - points stencil computation example . Parallel diffusion program (define (diffusion-kernel in out nx ny nz ce cw cn cs ct cb cc file ...
9a7686fbe792ad5783c35d788f78b7f938078f49427a759ce792bd741fbf6a98
SimulaVR/godot-haskell
Slider.hs
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.Slider (Godot.Core.Slider._gui_input, Godot.Core.Sli...
null
https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/src/Godot/Core/Slider.hs
haskell
| Number of ticks displayed on the slider, including border ticks. Ticks are uniformly-distributed value markers. | Number of ticks displayed on the slider, including border ticks. Ticks are uniformly-distributed value markers. # NOINLINE bindSlider_set_ticks # | Number of ticks displayed on the slider, including bo...
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.Slider (Godot.Core.Slider._gui_input, Godot.Core.Sli...
66afcb5665865546dc2ca1ebe17dfb1d66a2d0b9cd37379fafa907cf517fc8a1
MLstate/opalang
bslTypesMap.mli
Copyright © 2011 MLstate This file is part of . is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License , version 3 , as published by the Free Software Foundation . is distributed in the hope that it will be useful , ...
null
https://raw.githubusercontent.com/MLstate/opalang/424b369160ce693406cece6ac033d75d85f5df4f/compiler/libbsl/bslTypesMap.mli
ocaml
* If you need a comparaison insensible to alphaconv of type variables, cf [BslTypesNormalizedMap].
Copyright © 2011 MLstate This file is part of . is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License , version 3 , as published by the Free Software Foundation . is distributed in the hope that it will be useful , ...
5867338ab21b6ce84a74d11a5eb344f1cffbe40d6486919b305ae0fa6de059c4
samrushing/irken-compiler
t_llb.scm
;; -*- Mode: Irken -*- (define (^llvm-x) (:thing) ) (^llvm-x)
null
https://raw.githubusercontent.com/samrushing/irken-compiler/690da48852d55497f873738df54f14e8e135d006/tests/llvm/t_llb.scm
scheme
-*- Mode: Irken -*-
(define (^llvm-x) (:thing) ) (^llvm-x)
b5ce2901dfd88287c2fbbc01c2fb4e574dc5b5d750ae7250294a18c65a47d839
bytekid/mkbtt
bool.ml
Copyright 2008 , Christian Sternagel , * GNU Lesser General Public License * * This file is part of TTT2 . * * TTT2 is free software : you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the * Free Software Foundation , either ve...
null
https://raw.githubusercontent.com/bytekid/mkbtt/c2f8e0615389b52eabd12655fe48237aa0fe83fd/src/util/src/bool.ml
ocaml
** OPENS ******************************************************************* ** TYPES ******************************************************************* ** FUNCTIONS *************************************************************** Miscellaneous Compare Functions Printers
Copyright 2008 , Christian Sternagel , * GNU Lesser General Public License * * This file is part of TTT2 . * * TTT2 is free software : you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the * Free Software Foundation , either ve...
d7a0c083b3d2fcde613fe9e1d0e36d25a12e6259bd88df77f45664759fd60bf4
gildor478/ocaml-fileutils
FileUtilTypes.ml
(******************************************************************************) (* ocaml-fileutils: files and filenames common operations *) (* *) Copyright ( C ) 2003 - 2014 , (* ...
null
https://raw.githubusercontent.com/gildor478/ocaml-fileutils/9ad8d2ee342c551391f2a9873de01982d24b36d5/src/lib/fileutils/FileUtilTypes.ml
ocaml
**************************************************************************** ocaml-fileutils: files and filenames common operations This libra...
Copyright ( C ) 2003 - 2014 , the Free Software Foundation ; either version 2.1 of the License , or ( at You should have received a copy of the GNU Lesser General Public License along with this library ; if not , write to the Free Software Foundation , Inc. , 51 Franklin St , Fifth Floor , Bo...
52ef6f69e5adc1289dff1e3d4c9e2778d59d7ec962cf47e2d073e53b75176453
simingwang/emqx-plugin-kafkav5
inet_tls_dist.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2011 - 2022 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/simingwang/emqx-plugin-kafkav5/bbf919e56dbc8fd2d4c1c541084532f844a11cbc/_build/default/rel/emqx_plugin_kafka/lib/ssl-10.7/src/inet_tls_dist.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 2011 - 2022 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(inet_tls_dist). -export([childspecs/0]). -export([listen/2, accept/1, accept_connection/5, setup/5, close...
7dfe69c9590129b61d733c81cdf4f7371466bdffc58ff097e1d321ddab5be9a7
exoscale/seql
mutation.clj
(ns seql.mutation "A way to interact with stored entities" (:require [next.jdbc :as jdbc] [next.jdbc.transaction :as tx] [clojure.spec.alpha :as s] [honey.sql :as sql] [seql.coerce :as c] [seql.schema :as schema] ...
null
https://raw.githubusercontent.com/exoscale/seql/7142132a5c364baf201936052095589489320e99/src/seql/mutation.clj
clojure
Likely the mutation has failed because the where clauses did not match
(ns seql.mutation "A way to interact with stored entities" (:require [next.jdbc :as jdbc] [next.jdbc.transaction :as tx] [clojure.spec.alpha :as s] [honey.sql :as sql] [seql.coerce :as c] [seql.schema :as schema] ...
917555134f876176437f81f0d0728c908a7233ea34b8034e56ea781d14ba0264
mfoemmel/erlang-otp
megaco_sdp_test.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2001 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/megaco/test/megaco_sdp_test.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 2001 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(megaco_sdp_test). -export([all/1...
27cd5aa9f4d36424be50ba774c621006eda15874fc721da2909c08326c7bcf11
BoeingX/haskell-programming-from-first-principles
ParseDigitAndIntegerSpec.hs
module ParserCombinators.ChapterExercises.ParseDigitAndIntegerSpec where import Text.Trifecta import Test.Hspec import ParserCombinators.ChapterExercises.ParseDigitAndInteger spec :: Spec spec = do describe "Test parseDigit" $ do it "parseString parseDigit mempty \"123\"" $ do parseString pars...
null
https://raw.githubusercontent.com/BoeingX/haskell-programming-from-first-principles/ffb637f536597f552a4e4567fee848ed27f3ba74/test/ParserCombinators/ChapterExercises/ParseDigitAndIntegerSpec.hs
haskell
module ParserCombinators.ChapterExercises.ParseDigitAndIntegerSpec where import Text.Trifecta import Test.Hspec import ParserCombinators.ChapterExercises.ParseDigitAndInteger spec :: Spec spec = do describe "Test parseDigit" $ do it "parseString parseDigit mempty \"123\"" $ do parseString pars...
1a8e0c068f915fc72568b404ab84103d9ca183fca6d8aa0a90b2ce766175d1d5
nitrogen/NitrogenProject.com
demos_mobile_controls2.erl
% vim: ts=4 sw=4 et -module (demos_mobile_controls2). -include_lib("nitrogen_core/include/wf.hrl"). -compile(export_all). main() -> #template { file="./templates/demosmobile.html" }. title() -> "Dynamically Adding Mobile Controls". headline() -> title(). body() -> [ " <p> Some extra ste...
null
https://raw.githubusercontent.com/nitrogen/NitrogenProject.com/b4b3a0dbe17394608d2ee6eaa089e3ece1285075/src/demos/demos_mobile_controls2.erl
erlang
vim: ts=4 sw=4 et
-module (demos_mobile_controls2). -include_lib("nitrogen_core/include/wf.hrl"). -compile(export_all). main() -> #template { file="./templates/demosmobile.html" }. title() -> "Dynamically Adding Mobile Controls". headline() -> title(). body() -> [ " <p> Some extra steps are necessary whe...
41bd0194e8477c61aba4c123263c6352e6a9ca973465832e4887c669afe1d0a0
shayne-fletcher/zen
ml_predef.ml
(* Predefined type constructors (with special typing rules in typecore) *) open Ml_path open Ml_types open Ml_btype let builtin_idents = ref [] let wrap create s = let id = create s in builtin_idents := (s, id) :: !builtin_idents; id let ident_create = wrap Ml_ident.create let ident_int = ident_create "in...
null
https://raw.githubusercontent.com/shayne-fletcher/zen/10a1d0b9bf261bb133918dd62fb1593c3d4d21cb/ocaml/cos/src/typing/ml_predef.ml
ocaml
Predefined type constructors (with special typing rules in typecore)
open Ml_path open Ml_types open Ml_btype let builtin_idents = ref [] let wrap create s = let id = create s in builtin_idents := (s, id) :: !builtin_idents; id let ident_create = wrap Ml_ident.create let ident_int = ident_create "int" and ident_bool = ident_create "bool" and ident_unit = ident_create "unit" a...
b6c7613ef3dfce2f9d0fb3e0b7fe0fb17a4251fa708d7f14372d85a0cca70a56
chenyukang/eopl
24.scm
(load-relative "../libs/init.scm") (load-relative "./base/test.scm") (load-relative "./base/letrec-cases.scm") almost does n't change code based on 23.scm , ;; have a try on the testcase of ./base/letrec-cases.scm ;; remove any "goto", means remove one call of value-of/k ;; then the result of a program will be "#<un...
null
https://raw.githubusercontent.com/chenyukang/eopl/0406ff23b993bfe020294fa70d2597b1ce4f9b78/ch5/24.scm
scheme
have a try on the testcase of ./base/letrec-cases.scm remove any "goto", means remove one call of value-of/k then the result of a program will be "#<unspecified>" grammatical specification ;;;;;;;;;;;;;;;; sllgen boilerplate ;;;;;;;;;;;;;;;; extractors: continuations ;;;;;;;;;;;;;;;; procedures ;;;;;;;;;;;;;;;;...
(load-relative "../libs/init.scm") (load-relative "./base/test.scm") (load-relative "./base/letrec-cases.scm") almost does n't change code based on 23.scm , (define the-lexical-spec '((whitespace (whitespace) skip) (comment ("%" (arbno (not #\newline))) skip) (identifier (letter (arbno (or letter dig...
101f485465e7e49fdbd86da3c1d8ab0335930aa8e975a65421c5dab322fe7889
mikera/vectorz-clj
large_matrix_benchmark.clj
(ns mikera.vectorz.large-matrix-benchmark (:use clojure.core.matrix) (:require [clojure.core.matrix.operators :refer [+ - *]]) (:refer-clojure :exclude [+ - *]) (:require [criterium.core :as c]) (:require [mikera.vectorz.core :as v]) (:require [mikera.vectorz.matrix :as m]) (:import [mikera.vectorz Vector...
null
https://raw.githubusercontent.com/mikera/vectorz-clj/cf98ff89c7f1d26b98eb9bc18b1b0a3e53176dca/src/test/clojure/mikera/vectorz/large_matrix_benchmark.clj
clojure
2437 ns per add 1.3ns per multiply?? 1.3ns per multiply?? ~1.0ns per element ~3.4ns per element ~19ns per element
(ns mikera.vectorz.large-matrix-benchmark (:use clojure.core.matrix) (:require [clojure.core.matrix.operators :refer [+ - *]]) (:refer-clojure :exclude [+ - *]) (:require [criterium.core :as c]) (:require [mikera.vectorz.core :as v]) (:require [mikera.vectorz.matrix :as m]) (:import [mikera.vectorz Vector...
a118a44880ed1d84af6c337b8364c951f8c29dd2bcdaa1bdc194f8ce836e5855
xh4/web-toolkit
entity-form.lisp
(in-package :http-test) (in-suite :http-test) (test form-entity (let ((entity (http::make-form-entity (form "foo" "bar" "goo" "gle")))) (is (equal 'form-entity (type-of entity))) (is (equal "application/x-www-form-urlencoded" (header-field-value (find-header-field :content-typ...
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/test/http/entity-form.lisp
lisp
(in-package :http-test) (in-suite :http-test) (test form-entity (let ((entity (http::make-form-entity (form "foo" "bar" "goo" "gle")))) (is (equal 'form-entity (type-of entity))) (is (equal "application/x-www-form-urlencoded" (header-field-value (find-header-field :content-typ...
a9e6f9e04aed790a7575f7f7ac9576d1986cef07ed6ea989546837262d111d83
DSLsofMath/DSLsofMath
ExpR2.hs
data ExpR = ExpR :+: ExpR | Negate ExpR | ExpR :*: ExpR | FromInteger Integer | Var String zero, one :: ExpR zero = FromInteger 0 one = FromInteger 1
null
https://raw.githubusercontent.com/DSLsofMath/DSLsofMath/216464afda03c54709fae39e626ca19e8053444e/2017/E/W6/ExpR2.hs
haskell
data ExpR = ExpR :+: ExpR | Negate ExpR | ExpR :*: ExpR | FromInteger Integer | Var String zero, one :: ExpR zero = FromInteger 0 one = FromInteger 1
df1ef6d152a53f0026bf1fae6037b1e8e6f3d30554cee304dbbcdda10140c366
janestreet/ecaml
filename.mli
(** The name of a file. Functions in this module work directly on names, but do not read from or write to the filesystem. [(Info-goto-node "(elisp)File Names")] *) open! Core open! Async_kernel open! Import0 type t = string [@@deriving compare, sexp_of] include Comparable.S with type t := t with type com...
null
https://raw.githubusercontent.com/janestreet/ecaml/25a5a2972b3a94f5529a46363b37670a6c1de195/src/filename.mli
ocaml
* The name of a file. Functions in this module work directly on names, but do not read from or write to the filesystem. [(Info-goto-node "(elisp)File Names")] * [(describe-function 'file-name-as-directory)] [(Info-goto-node "(elisp)Directory Names")] * [(describe-function 'directory-file-name)] [(In...
open! Core open! Async_kernel open! Import0 type t = string [@@deriving compare, sexp_of] include Comparable.S with type t := t with type comparator_witness = String.comparator_witness include Hashable.S with type t := t include Valueable.S with type t := t * [ ( describe - function ' file - name - directory ) ]...
06499f32bc4b4f28d86ba500740456a0db46e4ef7e2d6ebb9fd8a49870858e00
cloudkj/lambda-ml
distance.clj
(ns lambda-ml.distance "Functions that compute measures of distance between values." (:require [lambda-ml.core :as c])) (defn cosine "Returns the cosine distance between two points by subtracting the cosine similarity from 1. Assumes that both points are represented as sequences of the same dimension. Given ...
null
https://raw.githubusercontent.com/cloudkj/lambda-ml/a470a375d2b94f5e5e623a5e198ac312b018ffb3/src/lambda_ml/distance.clj
clojure
km = 6372.8
(ns lambda-ml.distance "Functions that compute measures of distance between values." (:require [lambda-ml.core :as c])) (defn cosine "Returns the cosine distance between two points by subtracting the cosine similarity from 1. Assumes that both points are represented as sequences of the same dimension. Given ...
630587bc80ae6223c6f78a3d57bc5db249c148ea222601e2ab5a74dbe97ed28a
kappelmann/engaging-large-scale-functional-programming
Exercise01.hs
module Exercise01 where contestTeams :: (Integer, Integer) -> (Integer, Integer, Integer, Integer) contestTeams (sum, k) = (w, k * w, k * k * w, k * k * k * w) where i = 1 + k + k * k + k * k * k w = sum `div` i
null
https://raw.githubusercontent.com/kappelmann/engaging-large-scale-functional-programming/8ed2c056fbd611f1531230648497cb5436d489e4/resources/contest/example_data/01/uploads/artemishatesleadingdigits/Exercise01.hs
haskell
module Exercise01 where contestTeams :: (Integer, Integer) -> (Integer, Integer, Integer, Integer) contestTeams (sum, k) = (w, k * w, k * k * w, k * k * k * w) where i = 1 + k + k * k + k * k * k w = sum `div` i
92e86568a40c7d18a007acbfb2db3a07ccf63a0bfc3980addc78713948a374dd
ucsd-progsys/liquidhaskell
Propability.hs
{-@ LIQUID "--prune-unsorted" @-} module Propability where @ type Boolability = { v : Double | ( ( 0.0 < = v ) & & ( v < = 1.0 ) ) } @ {-@ p :: Boolability @-} p :: Double p = 0.8 data DPD k = DPD [Pair k Double] data Pair x y = P x y @ data DPD k = DPD ( val::{v:[Pair k Boolability]|(total v ) = 1.0 } ) @ {-@ me...
null
https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/20cd67af038930cb592d68d272c8eb1cbe3cb6bf/tests/pos/Propability.hs
haskell
@ LIQUID "--prune-unsorted" @ @ p :: Boolability @ @ measure total @ @ measure sndP @
module Propability where @ type Boolability = { v : Double | ( ( 0.0 < = v ) & & ( v < = 1.0 ) ) } @ p :: Double p = 0.8 data DPD k = DPD [Pair k Double] data Pair x y = P x y @ data DPD k = DPD ( val::{v:[Pair k Boolability]|(total v ) = 1.0 } ) @ total :: [Pair k Double] -> Double total [] = 0.0 total (x:xs) = ...
ba0791c312a9463df63656d001d46fc73cc203910cbc60e2f1fa2e500742e140
yokolet/clementine
analyzer.clj
Copyright ( c ) . All rights reserved . ; The use and distribution terms for this software are covered by the ; Eclipse Public License 1.0 (-1.0.php) ; which can be found in the file epl-v10.html at the root of this distribution. ; By using this software in any fashion, you are agreeing to be bound by ; ...
null
https://raw.githubusercontent.com/yokolet/clementine/b26c2318625e49606b5cc3b95cc9e1f5085ac309/ext/clojure-clojurescript-bef56a7/src/clj/cljs/analyzer.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) . All rights reserved . (set! *warn-on-reflection* true) (ns cljs.analyzer (:refer-clojure :exclude [macroexpand-1]) (:require [clojure.java.io :as io] [clojure.string :as string] [cljs.tagged-literals :as tags]) (:import java.lang.StringBuilder)) (declare resolve-...
9aedf43c136dc5af3b78231d73cb420fc478f893f43f8d5117a7120e37a6aa92
dizengrong/erlang_game
cache_config.erl
-module (cache_config). -compile([export_all]). -include("gen_cache.hrl"). -include("db_tables.hrl"). %% 如果需要使用gen_cache的话,就想对应的record名填入 %% 返回值:[db_table_xxx] %% db_table_xxx模块提供了tables/0方法来获取其中定义的数据库表 %% 同一个CacheName的gen_cache进程可以为多个sql_tables提供缓存服务 table_modules() -> [db_table_account, db_table_achievement, d...
null
https://raw.githubusercontent.com/dizengrong/erlang_game/4598f97daa9ca5eecff292ac401dd8f903eea867/gerl/src/cache/cache_config.erl
erlang
如果需要使用gen_cache的话,就想对应的record名填入 返回值:[db_table_xxx] db_table_xxx模块提供了tables/0方法来获取其中定义的数据库表 同一个CacheName的gen_cache进程可以为多个sql_tables提供缓存服务 @doc 是否是多关键字表
-module (cache_config). -compile([export_all]). -include("gen_cache.hrl"). -include("db_tables.hrl"). table_modules() -> [db_table_account, db_table_achievement, db_table_dragon, db_table_item, db_table_magic, db_table_role, db_table_rune ]. cache_name(db_table_account) -> cache_db_table_account; cac...
9c99967340fe834aa3f9f1427fe335c7904d6103c84f9776e25b6f09fa4d8b31
huangjs/cl
dbesk.lisp
;;; Compiled by f2cl version: ( " f2cl1.l , v 1.215 2009/04/07 22:05:21 rtoy Exp $ " " f2cl2.l , v 1.37 2008/02/22 22:19:33 rtoy Exp $ " " f2cl3.l , v 1.6 2008/02/22 22:19:33 rtoy Exp $ " " f2cl4.l , v 1.7 2008/02/22 22:19:34 rtoy Exp $ " " f2cl5.l , v 1.200 2009/01/19 02:38:17 rtoy Exp $ " " f2cl6.l ,...
null
https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/maxima/src/numerical/slatec/dbesk.lisp
lisp
Compiled by f2cl version: Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t) (:coerce-assigns :as-needed) (:array-type ':simple-array) (:array-slicing nil) (:declare-common nil) (:float-format double-float))
( " f2cl1.l , v 1.215 2009/04/07 22:05:21 rtoy Exp $ " " f2cl2.l , v 1.37 2008/02/22 22:19:33 rtoy Exp $ " " f2cl3.l , v 1.6 2008/02/22 22:19:33 rtoy Exp $ " " f2cl4.l , v 1.7 2008/02/22 22:19:34 rtoy Exp $ " " f2cl5.l , v 1.200 2009/01/19 02:38:17 rtoy Exp $ " " f2cl6.l , v 1.48 2008/08/24 00:56:27 rt...
82b923690aaedfce87f4ae23c0999b121a891456a9b573c9501bb45e9a26666a
ghcjs/jsaddle-dom
CSSValueList.hs
# LANGUAGE PatternSynonyms # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.CSSValueList (item, item_, getLength, CSSValueList(..), gTypeCSSValueList) where import Prelude ((.), (==), (>>=), ...
null
https://raw.githubusercontent.com/ghcjs/jsaddle-dom/5f5094277d4b11f3dc3e2df6bb437b75712d268f/src/JSDOM/Generated/CSSValueList.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #
# LANGUAGE PatternSynonyms # # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.CSSValueList (item, item_, getLength, CSSValueList(..), gTypeCSSValueList) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show...
aa05f8bd2bf0f292c5915867dc5555715c9a38a9d3d818ede2784eba5e328481
faylang/fay
automatic.hs
module Automatic where import FFI func :: Bool -> Int -> Int -> Int func a b c = if a then b else c semiAutomatic :: Ptr (Bool -> Int -> Int -> Int) -> Bool -> Int semiAutomatic = ffi "(function () { return Fay$$fayToJs(['function', 'automatic_function'], %1)(%2, 1, 2); })()" automatic :: Ptr (Bool -> Int -> Int ->...
null
https://raw.githubusercontent.com/faylang/fay/8455d975f9f0db2ecc922410e43e484fbd134699/tests/automatic.hs
haskell
module Automatic where import FFI func :: Bool -> Int -> Int -> Int func a b c = if a then b else c semiAutomatic :: Ptr (Bool -> Int -> Int -> Int) -> Bool -> Int semiAutomatic = ffi "(function () { return Fay$$fayToJs(['function', 'automatic_function'], %1)(%2, 1, 2); })()" automatic :: Ptr (Bool -> Int -> Int ->...
1f685cbcebee65ff6dfe0640b36b74a87c7d2a4f308304e76a00bd5969e6590e
OCamlPro/ocaml-benchs
sequence.ml
module Step = struct (* 'a is an item in the sequence, 's is the state that will produce the remainder of the sequence *) type ('a,'s) t = | Done | Skip of 's | Yield of 'a * 's end open Step (* 'a is an item in the sequence, 's is the state that will produce the remainder of the sequence *) t...
null
https://raw.githubusercontent.com/OCamlPro/ocaml-benchs/98047e112574e6bf55137dd8058f227a9f40281b/sequence/sequence.ml
ocaml
'a is an item in the sequence, 's is the state that will produce the remainder of the sequence 'a is an item in the sequence, 's is the state that will produce the remainder of the sequence Functions used for testing by comparing to List implementation
module Step = struct type ('a,'s) t = | Done | Skip of 's | Yield of 'a * 's end open Step type +_ t = | Sequence : 's * ('s -> ('a,'s) Step.t) -> 'a t type 'a sequence = 'a t let unfold_step ~init ~f = Sequence (init,f) let unfold ~init ~f = unfold_step ~init ~f:(fun s -> match f s w...
61dfdab808f846bd6db4604a58c87baa540d6d9a519104ab9c72f5b07e2727ed
gregtatcam/imaplet-lwt
post_inst.ml
let path dir fn ?ver () = let ver = match ver with | None -> "" | Some ver -> "." ^ ver in Filename.concat dir (Filename.concat "imaplet" (fn ^ ver)) let exists fn = try let st = Unix.stat fn in st.Unix.st_kind = Unix.S_REG with _ -> false let check dir fn ver rm = let src = path dir f...
null
https://raw.githubusercontent.com/gregtatcam/imaplet-lwt/d7b51253e79cffa97e98ab899ed833cd7cb44bb6/post_inst.ml
ocaml
let path dir fn ?ver () = let ver = match ver with | None -> "" | Some ver -> "." ^ ver in Filename.concat dir (Filename.concat "imaplet" (fn ^ ver)) let exists fn = try let st = Unix.stat fn in st.Unix.st_kind = Unix.S_REG with _ -> false let check dir fn ver rm = let src = path dir f...
dc25ddf91ae7522fb144debd5627642568dea0244f7a0f32f49596caedc85944
monadfix/ormolu-live
OptCoercion.hs
( c ) The University of Glasgow 2006 # LANGUAGE CPP # module OptCoercion ( optCoercion, checkAxInstCo ) where #include "HsVersions2.h" import GhcPrelude import DynFlags import TyCoRep import TyCoSubst import Coercion import Type hiding( substTyVarBndr, substTy ) import TcType ( exactTyCoVarsOfType ) import...
null
https://raw.githubusercontent.com/monadfix/ormolu-live/d8ae72ef168b98a8d179d642f70352c88b3ac226/ghc-lib-parser-8.10.1.20200412/compiler/types/OptCoercion.hs
haskell
only in some TyConAppCos --------------------------- ------------------ ---------------------------------------------- ---------------------------------------------- only in some TyConAppCos --------------------------- ------------------ ---------------------------------------------- ----------------------------...
( c ) The University of Glasgow 2006 # LANGUAGE CPP # module OptCoercion ( optCoercion, checkAxInstCo ) where #include "HsVersions2.h" import GhcPrelude import DynFlags import TyCoRep import TyCoSubst import Coercion import Type hiding( substTyVarBndr, substTy ) import TcType ( exactTyCoVarsOfType ) import...
3135225bf4df1e96326d53db83f4b14efe3a720f6013be0c43c8238383f870cb
UU-ComputerScience/js-asteroids
CSSStyleDeclaration.hs
// Introduced in DOM Level 2 : interface CSSStyleDeclaration { attribute DOMString cssText ; // raises(DOMException ) on setting DOMString propertyName ) ; CSSValue getPropertyCSSValue(in DOMString propertyName ) ; DO...
null
https://raw.githubusercontent.com/UU-ComputerScience/js-asteroids/b7015d8ad4aa57ff30f2631e0945462f6e1ef47a/uhc-js/uhc-js/src/Language/UHC/JS/HTML5/CSSStyleDeclaration.hs
haskell
// Introduced in DOM Level 2 : interface CSSStyleDeclaration { attribute DOMString cssText ; // raises(DOMException ) on setting DOMString propertyName ) ; CSSValue getPropertyCSSValue(in DOMString propertyName ) ; DO...
a2c641c6b2fceab967e769a1cffc9a27e808c036e5230b6c4891e6f17297646a
SquidDev/urn
transform.lisp
(import urn/analysis/nodes (builtin builtin? zip-args)) (import urn/analysis/pass ()) (import urn/analysis/tag/usage usage) (import urn/logger logger) (import urn/resolve/scope scope) (defun transform (nodes transformers lookup) "Transform a list of NODES using the given TRANSFORMERS. TRANSFORMERS should be a st...
null
https://raw.githubusercontent.com/SquidDev/urn/6e6717cf1376b0950e569e3771cb7e287aed291d/urn/analysis/transform.lisp
lisp
When iterating over set!, make sure to replace the definition with the new one. As this is an expensive operation, we only do this if changed. so it can be replaced. Otherwise just visit each variable Build a struct of transformers
(import urn/analysis/nodes (builtin builtin? zip-args)) (import urn/analysis/pass ()) (import urn/analysis/tag/usage usage) (import urn/logger logger) (import urn/resolve/scope scope) (defun transform (nodes transformers lookup) "Transform a list of NODES using the given TRANSFORMERS. TRANSFORMERS should be a st...
2ca6f88a31e85fe084967ef2fb015aed8fdd0210308843aed8050968ae3dbc2c
tisnik/clojure-examples
project.clj
; ( C ) Copyright 2021 ; ; All rights reserved. This program and the accompanying materials ; are made available under the terms of the Eclipse Public License v1.0 ; which accompanies this distribution, and is available at -v10.html ; ; Contributors: ; (defproject git-test6 "0.1.0-SNAPSHOT" :d...
null
https://raw.githubusercontent.com/tisnik/clojure-examples/78061b533c0755d0165002961334bbe98d994087/git-test6/project.clj
clojure
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at Contributors:
( C ) Copyright 2021 -v10.html (defproject git-test6 "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.10.1"] [clj-jgit "0.8.0"] [clj...
70a1b59b842272607c8ca861cbd5790e08285a79572d70a9313dc02801dc5c64
sapur/hexe
Execute.hs
module Command.Execute ( module Command.Data, executeScript, execute, ) where import Command.Data import Control import Editor import Helpers import qualified Buffer as Buf executeScript :: Script -> EditorT IO () executeScript = mapM_ execute execute :: Command -> EditorT IO () execute cmd = case cmd ...
null
https://raw.githubusercontent.com/sapur/hexe/e01036a1f8213938f9e1c72afc6aff48ba7fb0fd/src/Command/Execute.hs
haskell
module Command.Execute ( module Command.Data, executeScript, execute, ) where import Command.Data import Control import Editor import Helpers import qualified Buffer as Buf executeScript :: Script -> EditorT IO () executeScript = mapM_ execute execute :: Command -> EditorT IO () execute cmd = case cmd ...
72b8627c3d0e4830b5ae383e463d86eba8c056c3a427ea49a60e86ddce07ac86
serokell/qtah
QSpinBox.hs
This file is part of Qtah . -- Copyright 2015 - 2018 The Qtah Authors . -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation , either version 3 of the License , or -- (at your option) ...
null
https://raw.githubusercontent.com/serokell/qtah/abb4932248c82dc5c662a20d8f177acbc7cfa722/qtah-generator/src/Graphics/UI/Qtah/Generator/Interface/Widgets/QSpinBox.hs
haskell
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER...
This file is part of Qtah . Copyright 2015 - 2018 The Qtah Authors . the Free Software Foundation , either version 3 of the License , or GNU Lesser General Public License for more details . You should have received a copy of the GNU Lesser General Public License module Graphics.UI.Qtah.Generator.Interface.Wi...
52cc3bdc65ca5817058af3c8806e6b5a23b6c3f6a8e6bf4eb1371dfd976e7928
janestreet/memtrace_viewer_with_deps
css_gen.ml
module Stable = struct open Core_kernel.Core_kernel_stable module V1 = struct * ( field * value ) list . Where value should be escaped / quoted as necessary as per #rule-sets . as necessary as per #rule-sets. *) type t = (string * string) list [@@deriving sexp, compare, bin_io] end end o...
null
https://raw.githubusercontent.com/janestreet/memtrace_viewer_with_deps/5a9e1f927f5f8333e2d71c8d3ca03a45587422c4/vendor/virtual_dom/css_gen/src/css_gen.ml
ocaml
horizontal vertical text-align (in addition to [horizontal]) * create_raw creates a single field, value pair. It assumes that the value is a valid css value. As such it is unsafe to use with arbitrary value strings. But for the vast majority of combinators in this module it is the right thing to use, a...
module Stable = struct open Core_kernel.Core_kernel_stable module V1 = struct * ( field * value ) list . Where value should be escaped / quoted as necessary as per #rule-sets . as necessary as per #rule-sets. *) type t = (string * string) list [@@deriving sexp, compare, bin_io] end end o...
da0f6b3ea89212bdc3bf6f1c3663bbb6b6ed631097959b562e182b2efcbb33bd
naveensundarg/prover
argument-list-a1.lisp
;;; -*- Mode: Lisp; Syntax: Common-Lisp; Package: snark -*- ;;; File: argument-list-a1.lisp The contents of this file are subject to the Mozilla Public License ;;; Version 1.1 (the "License"); you may not use this file except in ;;; compliance with the License. You may obtain a copy of the License at ;;; / ;;; Soft...
null
https://raw.githubusercontent.com/naveensundarg/prover/812baf098d8bf77e4d634cef4d12de94dcd1e113/snark-20120808r02/src/argument-list-a1.lisp
lisp
-*- Mode: Lisp; Syntax: Common-Lisp; Package: snark -*- File: argument-list-a1.lisp Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the spec...
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is SNARK . The Initial Developer of the Original Code is SRI International . Portions created by the Initial Developer are Copyright ( C ) 1981 - 2010 . ...
5cde812bc6f78752c33514ba1b3dd9e14d01d67dc6abb42848d2c60c370174f8
boomerang-lang/boomerang
my_dict.ml
open Core open Util module DictOf (K:Data) (V:Data) = struct type key = K.t [@@deriving ord, show, hash] type value = V.t [@@deriving ord, show, hash] type pair = key * value [@@deriving ord, show, hash] type t = | Leaf | Two of t * pair * t | Three of t * pair * t * pair * t [@@derivin...
null
https://raw.githubusercontent.com/boomerang-lang/boomerang/b42c2bfc72030bbe5c32752c236c0aad3b17d149/stdlib/my_dict.ml
ocaml
FOR REMOVAL: * A hole configuration returned by going downwards on removal. We * include a pair option whenever we remove the minimum of the right * subtree of the current pair in order the current pair DO NOT EDIT THIS DO NOT EDIT THIS DO NOT EDIT THIS DO NOT EDIT THIS DO NOT EDIT THIS TODO: *...
open Core open Util module DictOf (K:Data) (V:Data) = struct type key = K.t [@@deriving ord, show, hash] type value = V.t [@@deriving ord, show, hash] type pair = key * value [@@deriving ord, show, hash] type t = | Leaf | Two of t * pair * t | Three of t * pair * t * pair * t [@@derivin...
bbe09b822a77c8e8a9e71c05edf59f173a56eb17c055894b514429f23d737c12
esl/MongooseIM
mod_mam_SUITE.erl
-module(mod_mam_SUITE). -compile([export_all, nowarn_export_all]). -include_lib("eunit/include/eunit.hrl"). -import(config_parser_helper, [mod_config/2, default_mod_config/1, default_config/1, config/2]). all() -> [ overrides_general_options, sets_rdbms_as_default_backend, handles_only_...
null
https://raw.githubusercontent.com/esl/MongooseIM/c213d44a0ccdf38fcec5e0d5b2ccab70cbb9407f/test/mod_mam_SUITE.erl
erlang
Tests Helpers
-module(mod_mam_SUITE). -compile([export_all, nowarn_export_all]). -include_lib("eunit/include/eunit.hrl"). -import(config_parser_helper, [mod_config/2, default_mod_config/1, default_config/1, config/2]). all() -> [ overrides_general_options, sets_rdbms_as_default_backend, handles_only_...
e1d625f249253140ef5e4bfd58978fd3376561959d4e85b9bf8ae5f02fc3fec0
oshyshko/adventofcode
D03.hs
module Y22.D03 where import qualified Data.Set as S import Imports priority :: Char -> Int priority x | 'a' <= x && x <= 'z' = 1 + fromEnum x - fromEnum 'a' | 'A' <= x && x <= 'Z' = 27 + fromEnum x - fromEnum 'A' | otherwise = error $ "Unexpected item: " ++ show x intersection :: [String] -> C...
null
https://raw.githubusercontent.com/oshyshko/adventofcode/8cea96fd5ec4bcebf2a8bfc7e6b059431b12ff9f/src/Y22/D03.hs
haskell
module Y22.D03 where import qualified Data.Set as S import Imports priority :: Char -> Int priority x | 'a' <= x && x <= 'z' = 1 + fromEnum x - fromEnum 'a' | 'A' <= x && x <= 'Z' = 27 + fromEnum x - fromEnum 'A' | otherwise = error $ "Unexpected item: " ++ show x intersection :: [String] -> C...
af7b41b18b1cde0952bb537828c51e2983c22c5b718488432a2f3564c7456fb3
zotonic/zotonic
mod_media_exif.erl
@author < > 2016 - 2021 < > @doc Extract EXIF information from the medium record to resource properties Copyright 2016 - 2021 %% 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 ...
null
https://raw.githubusercontent.com/zotonic/zotonic/1bb4aa8a0688d007dd8ec8ba271546f658312da8/apps/zotonic_mod_media_exif/src/mod_media_exif.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing perm...
@author < > 2016 - 2021 < > @doc Extract EXIF information from the medium record to resource properties Copyright 2016 - 2021 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(mod_media_exif). -autho...
e395777bf47c79d47ae194a43a738bf438aa22bf90976e808a91fc7846952226
elaforge/karya
KendangBali.hs
Copyright 2019 -- This program is distributed under the terms of the GNU General Public -- License 3.0, see COPYING or -3.0.txt | Instrument definitions for , shared between instruments . module Cmd.Instrument.KendangBali where import qualified Data.Set as Set import qualified Cmd.Cmd as Cmd import qualified ...
null
https://raw.githubusercontent.com/elaforge/karya/471a2131f5a68b3b10b1a138e6f9ed1282980a18/Cmd/Instrument/KendangBali.hs
haskell
This program is distributed under the terms of the GNU General Public License 3.0, see COPYING or -3.0.txt * code TODO the kontakt one uses CUtil.resolve_strokes, which also takes a keymap and checks for collisions... but I think I don't need it for im? left right left right * pasang left ka kam pang rig...
Copyright 2019 | Instrument definitions for , shared between instruments . module Cmd.Instrument.KendangBali where import qualified Data.Set as Set import qualified Cmd.Cmd as Cmd import qualified Cmd.Instrument.CUtil as CUtil import qualified Cmd.Instrument.Drums as Drums import qualified Cmd.Instrument.Midi...
dfc5ed2b687c4073fe5d90e60a22eafc778931e067b421077f1cc9e5826b713d
gfngfn/Sesterl
configLoader.ml
open MyUtil open Errors open Syntax type git_spec = | Tag of string | Ref of string | Branch of string type erlang_library_source = | ErlangLibFromHex of { version : string } | ErlangLibFromGit of { repository : string; git_spec : git_spec } type erlang_library = { erlang_library_name : string;...
null
https://raw.githubusercontent.com/gfngfn/Sesterl/3e40272b294e85554038478e2533011a4ac2a0d2/src/configLoader.ml
ocaml
open MyUtil open Errors open Syntax type git_spec = | Tag of string | Ref of string | Branch of string type erlang_library_source = | ErlangLibFromHex of { version : string } | ErlangLibFromGit of { repository : string; git_spec : git_spec } type erlang_library = { erlang_library_name : string;...
49dcda8ad266a02e8da6401fcaf57c97d7036eb6d0bed5d105633eee12e9e070
zalora/aws-ec2
TH.hs
# LANGUAGE TypeFamilies , MultiParamTypeClasses , FlexibleInstances , OverloadedStrings , TemplateHaskell # , MultiParamTypeClasses , FlexibleInstances , OverloadedStrings , TemplateHaskell #-} -- bo...
null
https://raw.githubusercontent.com/zalora/aws-ec2/60b7ad4464edf3c69da8c2f023db4ba2fa7ffc48/src/Aws/Query/TH.hs
haskell
boilerplate minimization for experimental stuff also a hub for module re-exports for query commands
# LANGUAGE TypeFamilies , MultiParamTypeClasses , FlexibleInstances , OverloadedStrings , TemplateHaskell # , MultiParamTypeClasses , FlexibleInstances , OverloadedStrings , TemplateHaskell #-} modu...
d039376e885e4991caf285281a14f6f891c5ecb8a3ff6876a476ea2362508558
dbuenzli/carcass
carcass.mli
--------------------------------------------------------------------------- Copyright ( c ) 2016 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 2016 Daniel C. Bün...
null
https://raw.githubusercontent.com/dbuenzli/carcass/1221231b1e3d9ba5b7697707d0e7e901d51ac376/src/carcass.mli
ocaml
* Define file and directory carcasses. * Locating text in input data. * {1 Positions} * [nil_pos] is an invalid position. * {1 Ranges} * The type for ranges. Start and stop position. * [nil_range] is an invalid range. * {1 Locations} * The type for location sources. * The type for locations. * [nil] is an inv...
--------------------------------------------------------------------------- Copyright ( c ) 2016 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 2016 Daniel C. Bün...
09ae743a89333843e32fe7eed2023494b94521290276ab444ccbf505f2d0b24f
foshardware/lsc
Layout.hs
Copyright 2018 - < > SPDX - License - Identifier : GPL-3.0 - or - later -- | Custom data structure for fast region searches that is strictly coupled to -- the netgraph model. -- -- ` Layout ` supports the following operations : -- -- - construction from a logic block vector -- - inserting a logic block -- - r...
null
https://raw.githubusercontent.com/foshardware/lsc/006c245a89b0a0056286205917438c7d031d04b9/src/LSC/Layout.hs
haskell
| Custom data structure for fast region searches that is strictly coupled to the netgraph model. - construction from a logic block vector - inserting a logic block - removing a logic block - slicing horizontally and vertically - querying points - searching for logic blocks on a given row - retrieve interval...
Copyright 2018 - < > SPDX - License - Identifier : GPL-3.0 - or - later ` Layout ` supports the following operations : module LSC.Layout where import Control.Applicative import Control.Lens import Control.Monad import Data.Either import Data.Function import Data.IntMap ( IntMap , lookupLE , split, spli...
d6f11a99e29755fc1e2f4f0483e9e321c9dc8d316324f11c112d8e386e19f054
hcarty/ocaml-gdal
vsi.mli
(** {1 Virtual System Interface} *) (** Virtual file system management *) type bigstring = (char, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t exception VSI_error val of_buffer : string -> bigstring -> unit * [ of_buffer path buf ] create a new virtual file at [ path ] with the bytes fro...
null
https://raw.githubusercontent.com/hcarty/ocaml-gdal/9c225c1e3f8002ec7614b3c1657e5f05e4e0e821/src/vsi.mli
ocaml
* {1 Virtual System Interface} * Virtual file system management * [unlink path] removes [path] from the virtual filesystem. If any references are kept to external resources they are also released.
type bigstring = (char, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t exception VSI_error val of_buffer : string -> bigstring -> unit * [ of_buffer path buf ] create a new virtual file at [ path ] with the bytes from [ buf ] . A reference to [ buf ] is kept internally until { ! unl...
e8cde3cb14e927aa01f9cfd0fd606627aca4d3f3ebc773adb81b729c71cdf44e
samrocketman/home
salonen-dynamic-range-extender.scm
; ; The GIMP -- an image manipulation program Copyright ( C ) 1995 and ; Dynamic Range Extender script for GIMP 2.4 Original author : < > ; ; Tags: photo, exposure, fake hdr ; ; Author statement: ; ; script-fu-dynamic-range-extender - A script that will produce an image with extended dynamic range . Th...
null
https://raw.githubusercontent.com/samrocketman/home/63a8668a71dc594ea9ed76ec56bf8ca43b2a86ca/dotfiles/.gimp/scripts/salonen-dynamic-range-extender.scm
scheme
The GIMP -- an image manipulation program Tags: photo, exposure, fake hdr Author statement: script-fu-dynamic-range-extender - A script that will produce an image (eg. exposed for sky) MUST be the lower layer and darker (eg. exposed for shadows) MUST be the upper layer. Please note that the upper layer must ...
Copyright ( C ) 1995 and Dynamic Range Extender script for GIMP 2.4 Original author : < > with extended dynamic range . The input is an image with 2 layers , lighter Distributed by Gimp FX Foundry project reated version 1.00 on Jan 06 , 2004 Revised 10/26/2007 by to fix unbound variables ...
58c635abf1d7d7bfe5374176b2cdcfda5d730b5af06b2f196641dabe4dc6d699
tumblr/tsd_proxy
project.clj
(defproject tsd_proxy "0.1.3" :description "A proxy to accept OpenTSDB traffic and send it to multiple destinations" :url "" :license {:name "Apache License, Version 2.0" :url "-2.0"} :main tsd_proxy.core :aot [tsd_proxy.core] :jvm-opts ["-verbosegc" "-Xmx500M" "-Xms500M"] :dependencies [[org....
null
https://raw.githubusercontent.com/tumblr/tsd_proxy/27eb88d28a45663edfa91eb8a02a2949049bc1d8/project.clj
clojure
(defproject tsd_proxy "0.1.3" :description "A proxy to accept OpenTSDB traffic and send it to multiple destinations" :url "" :license {:name "Apache License, Version 2.0" :url "-2.0"} :main tsd_proxy.core :aot [tsd_proxy.core] :jvm-opts ["-verbosegc" "-Xmx500M" "-Xms500M"] :dependencies [[org....
bea3f85245f5592482ca0e30380f8b5ca4ceb2f7ce36bf8c6e2d8d2021c05bf4
alphaHeavy/open-symbology
PricingSourceDescriptions.hs
module Finance.OpenSymbology.PricingSourceDescriptions where data Description = AssetMatchMTF | AthensExchangeAlternativeMarket | RBSHKAndKRGovernmentBonds | RBSIstanbul | RBSAustralia | ScotiabankColombia | RBSSingapore | RBSKazakhstan | RBSWholesale | TadawulSaudiArabiaStockExchange | Agricult...
null
https://raw.githubusercontent.com/alphaHeavy/open-symbology/e96ed17509f7c8f3e2baee124f8d0aeb4035db3d/Finance/OpenSymbology/PricingSourceDescriptions.hs
haskell
module Finance.OpenSymbology.PricingSourceDescriptions where data Description = AssetMatchMTF | AthensExchangeAlternativeMarket | RBSHKAndKRGovernmentBonds | RBSIstanbul | RBSAustralia | ScotiabankColombia | RBSSingapore | RBSKazakhstan | RBSWholesale | TadawulSaudiArabiaStockExchange | Agricult...
e3a026f8e887aa60ddb2059f67b201c8f50dce300c55ef909fe743b205644116
zxymike93/SICP
206.rkt
#lang sicp (define zero (lambda (f) (lambda (x) x))) (define one (lambda (f) (lambda (x) (f x)))) (define two (lambda (f) (lambda (x) (f (f x))))) (define (add-1 n) (lambda (f) (lambda (x) (f ((n f) x))))) 其中 ( ( n f ) x ) 表示数值 n 设 ( ( m f ) y ) m ;; 其中 y = n (define (add n m) (lambd...
null
https://raw.githubusercontent.com/zxymike93/SICP/9d8e84d6a185bf4d7f28c414fc3359741384beb5/chapter2/206.rkt
racket
其中 y = n test
#lang sicp (define zero (lambda (f) (lambda (x) x))) (define one (lambda (f) (lambda (x) (f x)))) (define two (lambda (f) (lambda (x) (f (f x))))) (define (add-1 n) (lambda (f) (lambda (x) (f ((n f) x))))) 其中 ( ( n f ) x ) 表示数值 n 设 ( ( m f ) y ) m (define (add n m) (lambda (f) (l...
2c1f0dab5be5465dbeb012d03a0692f0095e86b4d7910f886ae5756c8be5cc2e
clj-holmes/clj-holmes
project.clj
(defproject org.clojars.clj-holmes/clj-holmes "1.4.3" :description "Clojure SAST." :url "-holmes/clj-holmes" :scm {:name "git" :url "-holmes/clj-holmes"} :license {:name "Eclipse Public License 1.0" :url "-1.0.php"} :deploy-repositories [["clojars" {:url "" ...
null
https://raw.githubusercontent.com/clj-holmes/clj-holmes/edc51005799514de9a2e609de7f5166ee260a539/project.clj
clojure
(defproject org.clojars.clj-holmes/clj-holmes "1.4.3" :description "Clojure SAST." :url "-holmes/clj-holmes" :scm {:name "git" :url "-holmes/clj-holmes"} :license {:name "Eclipse Public License 1.0" :url "-1.0.php"} :deploy-repositories [["clojars" {:url "" ...
8c7b606e5cc8bb395898e7963f8d6f7353c17c226673f71ec80c05cf2c302ace
jabber-at/ejabberd-contrib
webserver_utils.erl
-module(webserver_utils). -compile(export_all). -define(DEFAULT_STRING, "Great success!"). default_string() -> ?DEFAULT_STRING. empty_body(Module, Socket, _, _, _) -> Module:send( Socket, "HTTP/1.1 200 OK\r\n" "Content-type: text/plain\r\nContent-length: 0\r\n\r\n" ). copy_body_...
null
https://raw.githubusercontent.com/jabber-at/ejabberd-contrib/d5eb036b786c822d9fd56f881d27e31688ec6e91/ejabberd_auth_http/deps/fusco/test/webserver_utils.erl
erlang
We didn't signal a connection close, but we want the client to do that
-module(webserver_utils). -compile(export_all). -define(DEFAULT_STRING, "Great success!"). default_string() -> ?DEFAULT_STRING. empty_body(Module, Socket, _, _, _) -> Module:send( Socket, "HTTP/1.1 200 OK\r\n" "Content-type: text/plain\r\nContent-length: 0\r\n\r\n" ). copy_body_...
b3abd8d1d78bdae5d80ecdadd709b58da76c44a7010283990b450191f06c3e86
TerrorJack/ghc-alter
system001.hs
-- Not run on mingw, because of /dev/null use import System.Cmd (system) import System.Exit (ExitCode(..), exitWith) main = do ec <- system "cat dog 1>/dev/null 2>&1" case ec of ExitSuccess -> do putStr "What?!?\n" ioError (userError "dog succeeded") ...
null
https://raw.githubusercontent.com/TerrorJack/ghc-alter/db736f34095eef416b7e077f9b26fc03aa78c311/ghc-alter/boot-lib/base/tests/System/system001.hs
haskell
Not run on mingw, because of /dev/null use
import System.Cmd (system) import System.Exit (ExitCode(..), exitWith) main = do ec <- system "cat dog 1>/dev/null 2>&1" case ec of ExitSuccess -> do putStr "What?!?\n" ioError (userError "dog succeeded") ExitFailure _ -> d...
a0570255bb378050353a99cf4d81bbc86475f906a29f459284763fb1fc8a800a
Gbury/archsat
export.mli
This file is free software , part of Archsat . See file " LICENSE " for more details . * Export facilities This module defines wrappers around functions that export problems in various format such as tptp . This module defines wrappers around functions that export problems in various format s...
null
https://raw.githubusercontent.com/Gbury/archsat/322fbefa4a58023ddafb3fa1a51f8199c25cde3d/src/output/export.mli
ocaml
This file is free software , part of Archsat . See file " LICENSE " for more details . * Export facilities This module defines wrappers around functions that export problems in various format such as tptp . This module defines wrappers around functions that export problems in various format s...