_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
0af4d7902c0cf675846852a7bc19d873c197a71df449e504249785cc9cbb65c4
jeffshrager/biobike
boxes-to-json.lisp
;;;; -*- mode: Lisp; Syntax: Common-Lisp; Package: nvpl; -*- (in-package :nvpl) ;;; +=========================================================================+ | Copyright ( c ) 2010 | ;;; | | ;;; | Permission is hereby granted, free of cha...
null
https://raw.githubusercontent.com/jeffshrager/biobike/5313ec1fe8e82c21430d645e848ecc0386436f57/BioLisp/vplcode/boxes-to-json.lisp
lisp
-*- mode: Lisp; Syntax: Common-Lisp; Package: nvpl; -*- +=========================================================================+ | | | Permission is hereby granted, free of charge, to any person obtaining | | a copy of this software and a...
(in-package :nvpl) | Copyright ( c ) 2010 | | " Software " ) , to deal in the Software without restriction , including | | distribute , sublicense , and/or sell copies of the Software , and to | | permit persons to whom the Software is furnished to do so , subject to | | in all copies or s...
38efad7dcc4e93215a5f3127453adfddf6dde6fed1cd7a7106c2489bc2c5da45
avodonosov/abcl-idea
swt9jfli-gen.lisp
(defpackage :swt-gen (:use :common-lisp :jfli)) (in-package :swt-gen) (def-java-class "java.lang.System") (def-java-class "java.net.URL") (def-java-class "java.io.File") (def-java-class "org.eclipse.jface.action.Action") (def-java-class "org.eclipse.jface.action.MenuManager") (def-java-class "org.eclipse.jface.reso...
null
https://raw.githubusercontent.com/avodonosov/abcl-idea/a55ab73869a0865be15980216cb51f21553d6685/src/abclidea/lisp/jfli-abcl/examples/swt/swt9jfli-gen.lisp
lisp
(defpackage :swt-gen (:use :common-lisp :jfli)) (in-package :swt-gen) (def-java-class "java.lang.System") (def-java-class "java.net.URL") (def-java-class "java.io.File") (def-java-class "org.eclipse.jface.action.Action") (def-java-class "org.eclipse.jface.action.MenuManager") (def-java-class "org.eclipse.jface.reso...
c765c328cc35b133b723e386ccb3694966de87da015006c29db27ec340189955
8c6794b6/guile-tjit
describe.scm
;;; Describe objects Copyright ( C ) 2001 , 2009 , 2011 Free Software Foundation , Inc. ;;; This library 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 ( a...
null
https://raw.githubusercontent.com/8c6794b6/guile-tjit/9566e480af2ff695e524984992626426f393414f/module/system/repl/describe.scm
scheme
Describe objects This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public either This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICU...
Copyright ( C ) 2001 , 2009 , 2011 Free Software Foundation , Inc. version 3 of the License , or ( at your option ) any later version . You should have received a copy of the GNU Lesser General Public Foundation , Inc. , 51 Franklin Street , Fifth Floor , Boston , USA (define-module (system repl describ...
bcf334724fcdb34001935672630a05e1a4de199a053a6fac2b57f1df57a04ad5
alanz/ghc-exactprint
overloadedrecfldsfail10.hs
Modules A and B both declare F(foo ) Module C declares F($sel : foo : ) but exports A.F(foo ) as well Thus we ca n't export F ( .. ) even with DuplicateRecordFields enabled # LANGUAGE DuplicateRecordFields # module Main (main, F(..)) where import OverloadedRecFldsFail10_B import OverloadedRecFldsFail10_C main...
null
https://raw.githubusercontent.com/alanz/ghc-exactprint/b6b75027811fa4c336b34122a7a7b1a8df462563/tests/examples/ghc80/overloadedrecfldsfail10.hs
haskell
Modules A and B both declare F(foo ) Module C declares F($sel : foo : ) but exports A.F(foo ) as well Thus we ca n't export F ( .. ) even with DuplicateRecordFields enabled # LANGUAGE DuplicateRecordFields # module Main (main, F(..)) where import OverloadedRecFldsFail10_B import OverloadedRecFldsFail10_C main...
2da898a0a48e65b271505beb0312b68983cf861cbed27c2d604cbce3ba76e67b
antono/guix-debian
acl.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2012 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 3 of the Lice...
null
https://raw.githubusercontent.com/antono/guix-debian/85ef443788f0788a62010a942973d4f7714d10b4/gnu/packages/acl.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2012 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (gnu packages acl) #:use-module (guix licenses) #:use-module (gnu packages attr) #:use-module...
5f8a7df4e59f5fb26b6dd0aeda125e55eb4cf0d4992e6cfd7325b3502db22a2c
RichiH/git-annex
UUIDBased.hs
git - annex uuid - based logs - - This is used to store information about UUIDs in a way that can - be union merged . - - A line of the log will look like : " UUID [ INFO [ timestamp = foo ] ] " - The timestamp is last for backwards compatability reasons , - and may not be present on old log line...
null
https://raw.githubusercontent.com/RichiH/git-annex/bbcad2b0af8cd9264d0cb86e6ca126ae626171f3/Logs/UUIDBased.hs
haskell
This is a workaround for a bug that caused It can be removed at any time; is just here to clean up logs where that happened temporarily.
git - annex uuid - based logs - - This is used to store information about UUIDs in a way that can - be union merged . - - A line of the log will look like : " UUID [ INFO [ timestamp = foo ] ] " - The timestamp is last for backwards compatability reasons , - and may not be present on old log line...
a49b5408580b0d7f119eaa55aa2dbf18ad827bdf754e35ea3c47ccd026ee30c6
alanz/ghc-exactprint
T11164.hs
module T11164 where import T11164b (T)
null
https://raw.githubusercontent.com/alanz/ghc-exactprint/b6b75027811fa4c336b34122a7a7b1a8df462563/tests/examples/ghc80/T11164.hs
haskell
module T11164 where import T11164b (T)
d6e774753bc0875d7929e4a6761ee321118bf65bbab8c907648187f98de41502
kamek-pf/ntfd
Weather.hs
module Spec.Stores.Weather where import Test.Hspec import Data.Either (isRight) import qualified Data.Text.IO as Txt import Spec.Helpers (defaultWeatherCfg) import Stores.Weather (Store(..), WeatherClient) spec :: IO () spec = hspec $ describe "Weather store" $ it "should synchronize with OpenWeatherMap" $ do we...
null
https://raw.githubusercontent.com/kamek-pf/ntfd/d297a59339b3310a62341ffa9c378180c578dbce/test/Spec/Stores/Weather.hs
haskell
module Spec.Stores.Weather where import Test.Hspec import Data.Either (isRight) import qualified Data.Text.IO as Txt import Spec.Helpers (defaultWeatherCfg) import Stores.Weather (Store(..), WeatherClient) spec :: IO () spec = hspec $ describe "Weather store" $ it "should synchronize with OpenWeatherMap" $ do we...
4ddff932744d31df2968ebc3aa91d30ec0dc99892134b0591f9072268b70f1bd
LighghtEeloo/magic-in-ten-mins-ml
Continuation.ml
module Cont = struct let demo () = let i = ref 1 in i := !i + 1; Printf.printf "%d\n" !i let _cont2 i = i := !i + 1; Printf.printf "%d\n" !i let _cont3 i = Printf.printf "%d\n" !i let rec cont1 () = let i = ref 1 in cont2 i and cont2 i = i := !i + 1; cont3 i and con...
null
https://raw.githubusercontent.com/LighghtEeloo/magic-in-ten-mins-ml/5e576d6c144d230f71666ea01e8307ce0020e72d/Paradigms/Continuation.ml
ocaml
retrieve the return value i try and else is OCaml keyword so (as usual) we'll append `_` A type safe version of try_throw
module Cont = struct let demo () = let i = ref 1 in i := !i + 1; Printf.printf "%d\n" !i let _cont2 i = i := !i + 1; Printf.printf "%d\n" !i let _cont3 i = Printf.printf "%d\n" !i let rec cont1 () = let i = ref 1 in cont2 i and cont2 i = i := !i + 1; cont3 i and con...
14f479caa83771e1c71b0c05b116d40741a347207a32c10ac98c655694d938ca
alexandergunnarson/quantum
spec.cljc
(ns quantum.test.core.spec (:require [quantum.core.spec :as ns]))
null
https://raw.githubusercontent.com/alexandergunnarson/quantum/0c655af439734709566110949f9f2f482e468509/test/quantum/test/core/spec.cljc
clojure
(ns quantum.test.core.spec (:require [quantum.core.spec :as ns]))
983d99f2c3929542a3f5d6fa930416b7535c10d50752114dd01ba14099f065dd
rnons/ted2srt
Talk.hs
module Models.Talk where import Control.Monad (liftM, mzero, void) import Data.Aeson import qualified Data.ByteString.Char8 as C import Data.Text (Text) import qualified Data.Text as T import qualified Data.Text.Read as ...
null
https://raw.githubusercontent.com/rnons/ted2srt/7456f109bce2b9f07d0c929bef2fd42e6bc4f75d/backend/src/Models/Talk.hs
haskell
module Models.Talk where import Control.Monad (liftM, mzero, void) import Data.Aeson import qualified Data.ByteString.Char8 as C import Data.Text (Text) import qualified Data.Text as T import qualified Data.Text.Read as ...
04f6324e05a10031a160c0c1e2cee9c3faea29dd832c2965352b2ab76ce7309e
chanshunli/wechat-clj
macro.clj
;; the file form: -async-await (ns mini-program-cljs.macro (:refer-clojure :exclude [await]) (:require [cljs.analyzer :as ana] [cljs.compiler :as compiler] [clojure.string :as str])) (def ^:dynamic *in-async* false) (alter-var-root #'ana/specials #(conj % 'async* 'await*)) (defmethod ana/...
null
https://raw.githubusercontent.com/chanshunli/wechat-clj/145a99825669b743a09a8565fa1301d90480c91b/mini-program-cljs/src/main/mini_program_cljs/macro.clj
clojure
the file form: -async-await ====== Public API ====== ------------------- => "off-page-not-found" => "offPageNotFound" => #'mini-program-cljs.core/wx-check-session Get Promise Object: { errMsg: 'checkSession:ok' } "----" #js {:errMsg "checkSession:ok"}
(ns mini-program-cljs.macro (:refer-clojure :exclude [await]) (:require [cljs.analyzer :as ana] [cljs.compiler :as compiler] [clojure.string :as str])) (def ^:dynamic *in-async* false) (alter-var-root #'ana/specials #(conj % 'async* 'await*)) (defmethod ana/parse 'await* [op env [_ expr...
b5f21272df2a3a15304401448110fc7889e8868de5c391477d5230e128416368
2600hz/kazoo
fax_app.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/applications/fax/src/fax_app.erl
erlang
----------------------------------------------------------------------------- @doc @end ----------------------------------------------------------------------------- ------------------------------------------------------------------------------ @doc Implement the application start behaviour. @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(fax_app). -behaviour(application). -include_lib("kazoo_stdlib/include/kz_types.hrl"). -export([start/2,...
3df838b5b0bbc5f1f04a108feb571b48bff1381a9f503ea1791edcec5b309092
camlspotter/ocamloscope.2
packpath.ml
open Spotlib.Spot open Opamfind.Utils open List open Opamfind let make_from_names names = let names = unique & sort compare names in let best_name = Ocamlfind.choose_best_package_name names in "{" ^ String.concat "," (best_name :: filter (fun x -> x <> best_name) names) ^ "}" let make aps = let names = ma...
null
https://raw.githubusercontent.com/camlspotter/ocamloscope.2/49b5977a283cdd373021d41cb3620222351a2efe/packpath.ml
ocaml
open Spotlib.Spot open Opamfind.Utils open List open Opamfind let make_from_names names = let names = unique & sort compare names in let best_name = Ocamlfind.choose_best_package_name names in "{" ^ String.concat "," (best_name :: filter (fun x -> x <> best_name) names) ^ "}" let make aps = let names = ma...
29ec6c6c5aea227bf0d500df1ad36ffac6b28460585b6a41a7d25fb1264a36e3
haskell-works/hw-prim
Null.hs
{-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # module HaskellWorks.Data.Null ( Null(..) ) where import Data.Int import Data.Word import HaskellWorks.Data.Container import qualified Data.ByteString as BS im...
null
https://raw.githubusercontent.com/haskell-works/hw-prim/aff74834cd2d3fb0eb4994b24b2d1cdef1e3e673/src/HaskellWorks/Data/Null.hs
haskell
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # module HaskellWorks.Data.Null ( Null(..) ) where import Data.Int import Data.Word import HaskellWorks.Data.Container import qualified Data.ByteString as BS import qualified Data.List as ...
98f3f044aae6a811f55b63781850588d033de3107666e81f29af383a0cae4440
bluddy/rails
pani.ml
open Containers PANI format ( format flag PANI ) ofs | datatype | description -----+----------+------------ 0x0 | PANI | 0x4 | pani_byte1 | Always 3 0x5 | pani_byte2 0x6 | pani_byte3 | 0 : skip next part 1 : do n't skip 0x6 | header_type | 0 : 17 byte header . 1 : no header . 2 :...
null
https://raw.githubusercontent.com/bluddy/rails/b2a8dd700fdcbdf36984ba50eb148000c1f0b32f/bin/anim/pani.ml
ocaml
debug debug pani_read_buffer_2 debug let byte = My_gen.get_bytei s in (* optional We can only start at word boundaries Animation interpreter code fill with words for now
open Containers PANI format ( format flag PANI ) ofs | datatype | description -----+----------+------------ 0x0 | PANI | 0x4 | pani_byte1 | Always 3 0x5 | pani_byte2 0x6 | pani_byte3 | 0 : skip next part 1 : do n't skip 0x6 | header_type | 0 : 17 byte header . 1 : no header . 2 :...
9ffe7f9841ad50aa8d6c74a15d31ca987d2e620ba3e0a48f17d919b4c5571242
SAP-archive/bosh-kubernetes-cpi-release
ConfigSpec.hs
# LANGUAGE FlexibleInstances # {-# LANGUAGE ImplicitParams #-} {-# LANGUAGE QuasiQuotes #-} # LANGUAGE ScopedTypeVariables # module CPI.Kubernetes.ConfigSpec(spec) where import CPI.Base.System import CPI.Kubernetes.Config import Data.Aeson.QQ import Test.Hspec i...
null
https://raw.githubusercontent.com/SAP-archive/bosh-kubernetes-cpi-release/3166a74e118e75bbdedb01cff72cbe52968eee62/src/bosh-kubernetes-cpi/test/unit/CPI/Kubernetes/ConfigSpec.hs
haskell
# LANGUAGE ImplicitParams # # LANGUAGE QuasiQuotes # ---BEGIN RSA PRIVATE KEY----- ---END RSA PRIVATE KEY-----
# LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # module CPI.Kubernetes.ConfigSpec(spec) where import CPI.Base.System import CPI.Kubernetes.Config import Data.Aeson.QQ import Test.Hspec import Text.RawString.QQ import Data.Aeson import ...
c70fa4e2987c694f38d049f83008390f18d605bb033b2971276c1434b5c67f3f
GaloisInc/daedalus
HTML.hs
{-# Language OverloadedStrings #-} # Language RecordWildCards # {-# Language BlockArguments #-} module HTML where import Prelude hiding (div) import Data.List(intersperse) import Data.Ratio(numerator,denominator) import Types specToHTML :: Spec -> HTML specToHTML s = fieldsToHTML (sName s) (sFields s) fieldsToHTML ...
null
https://raw.githubusercontent.com/GaloisInc/daedalus/016da6b2de23747e48642f6ece79c07b436ef5d1/formats/pdf/dom-tool/src/HTML.hs
haskell
# Language OverloadedStrings # # Language BlockArguments # ------------------------------------------------------------------------------
# Language RecordWildCards # module HTML where import Prelude hiding (div) import Data.List(intersperse) import Data.Ratio(numerator,denominator) import Types specToHTML :: Spec -> HTML specToHTML s = fieldsToHTML (sName s) (sFields s) fieldsToHTML :: String -> [Field] -> HTML fieldsToHTML nm fs = tag "html" [] $...
bc152eba29cc28c1b7834a198504f51d89a6fd5cd0ebe84f240e64793449c466
hunt-framework/hunt
IndexerCore.hs
{-# LANGUAGE FlexibleContexts #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # -- ------------------------------------------------------------ module Holumbus.Crawler.IndexerCore ( RawDoc , RawContexts , RawContext , RawCrawlerDoc , RawWords , RawWord...
null
https://raw.githubusercontent.com/hunt-framework/hunt/d692aae756b7bdfb4c99f5a3951aec12893649a8/hunt-crawler/src/Holumbus/Crawler/IndexerCore.hs
haskell
# LANGUAGE FlexibleContexts # ------------------------------------------------------------ ------------------------------------------------------------ ------------------------------------------------------------ c is the user defined custom info the index type the type for document descriptions -----------...
# LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # module Holumbus.Crawler.IndexerCore ( RawDoc , RawContexts , RawContext , RawCrawlerDoc , RawWords , RawWord , RawTitle , IndexCrawlerConfig , IndexContextConfig ( .. ) , IndexerState ( ....
77fe75bc7b7edad0976e8f39150c57bfe907658b763cc3261498fc3a9d0b3896
lillo/compiler-course-unipi
microcc.ml
open Microc type action = Parse | Type_check | Dump_llvm_ir | Compile let[@inline] ( >> ) f g x = g (f x) let action_function outputfile optimize verify_module = function | Parse -> Parsing.parse Scanner.next_token >> Ast.show_program >> Printf.printf "Parsing succeded!\n\n%s\n" | Type_check ->...
null
https://raw.githubusercontent.com/lillo/compiler-course-unipi/330349afbf72919f6ab0915c5f8f49507e9aca71/microc/microc-codegen/bin/microcc.ml
ocaml
open Microc type action = Parse | Type_check | Dump_llvm_ir | Compile let[@inline] ( >> ) f g x = g (f x) let action_function outputfile optimize verify_module = function | Parse -> Parsing.parse Scanner.next_token >> Ast.show_program >> Printf.printf "Parsing succeded!\n\n%s\n" | Type_check ->...
88fe54deedfc78b7b00a54fd728ea0deb304ea3cf252fb98d1ee3b1aab583447
emqx/emqx
emqx_persistent_session_backend_dummy.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2021 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy o...
null
https://raw.githubusercontent.com/emqx/emqx/dbc10c2eed3df314586c7b9ac6292083204f1f68/apps/emqx/src/persistent_session/emqx_persistent_session_backend_dummy.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2021 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(emqx_persistent_session_backend_dummy). -include("emqx_persistent_session.hrl"). -expo...
7683052fec7844d5bb1df14df908995bdaf6419864f0d2ab8af565b59d1ce4fa
AbstractMachinesLab/caramel
path.mli
(** Representation of paths *) * The aim of this module is to provide a solid basis to reason about file and directory paths inside the Dune code base . What it is not is a complete API for paths management that handles all the aspects of file system paths . It simply exposes a high - level and porta...
null
https://raw.githubusercontent.com/AbstractMachinesLab/caramel/7d4e505d6032e22a630d2e3bd7085b77d0efbb0c/vendor/ocaml-lsp-1.4.0/vendor/stdune/path.mli
ocaml
* Representation of paths * Relative path relative to the root tracked by the type system. Represented as: either the root, or a '/' separated list of components other that ".", ".." and not containing a '/'. * Relative path with unspecified root. Either root, or a '/' separated list of components other...
* The aim of this module is to provide a solid basis to reason about file and directory paths inside the Dune code base . What it is not is a complete API for paths management that handles all the aspects of file system paths . It simply exposes a high - level and portable API that covers the needs o...
3f6fe64d55e0f3f5aff1f2a4cd3f6f716b052fd0cd25af4c7c748efdb9a48713
seancorfield/vscode-calva-setup
remote_repl.cljs
(ns remote-repl (:require ["vscode" :as vscode] [promesa.core :as p])) (defn- start-tunnel [nrepl-port portal-port label remote-server] (let [terminal (vscode/window.createTerminal #js {:isTransient true :name label ...
null
https://raw.githubusercontent.com/seancorfield/vscode-calva-setup/747736ef93631df1f55c8d7bed2efcdf26dfa41a/joyride/src/remote_repl.cljs
clojure
(ns remote-repl (:require ["vscode" :as vscode] [promesa.core :as p])) (defn- start-tunnel [nrepl-port portal-port label remote-server] (let [terminal (vscode/window.createTerminal #js {:isTransient true :name label ...
7eab2fe4024bfe94a8c11f9d711dfc99e3855fc26686a587db9fc6b3b9542488
basho/riak_cs
block_audit.erl
%% --------------------------------------------------------------------- %% Copyright ( c ) 2007 - 2015 Basho Technologies , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . Y...
null
https://raw.githubusercontent.com/basho/riak_cs/c0c1012d1c9c691c74c8c5d9f69d388f5047bcd2/priv/tools/internal/block_audit.erl
erlang
--------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permiss...
Copyright ( c ) 2007 - 2015 Basho Technologies , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY ...
eff6aa6a3017e736e09d1432d96051ea89385f71f3d097983ed0f7819d6420de
abdulapopoola/SICPBook
Ex1.07.scm
(define (sqrt x) (sqrt-iter 1.0 x)) (define (sqrt-iter guess x) (if (good-enough? guess x) guess (sqrt-iter (improve guess x) x))) (define (good-enough? guess x) (< (abs (- (square guess) x)) 0.001)) (define (square x) ( * x x) ) (define (improve guess x) (average guess (/ x guess))) (define (a...
null
https://raw.githubusercontent.com/abdulapopoola/SICPBook/c8a0228ebf66d9c1ddc5ef1fcc1d05d8684f090a/Chapter%201/1.1/Ex1.07.scm
scheme
The current good-enough? stops as soon as the difference between the square of the guess and the actual number is less than 0.001. For extremely small or large numbers; a close non-accurate guess will pass this test even though it is not the accurate value. NEW implementation
(define (sqrt x) (sqrt-iter 1.0 x)) (define (sqrt-iter guess x) (if (good-enough? guess x) guess (sqrt-iter (improve guess x) x))) (define (good-enough? guess x) (< (abs (- (square guess) x)) 0.001)) (define (square x) ( * x x) ) (define (improve guess x) (average guess (/ x guess))) (define (a...
29621a89f7b207fbd793ef64d25d3b2f8f417f57850d9fe86f593d4f95746a42
fetburner/Coq2SML
recdef.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/fetburner/Coq2SML/322d613619edbb62edafa999bff24b1993f37612/coq-8.4pl4/plugins/funind/recdef.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** i camlp4deps: "parsing/grammar.cma" ...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Term open Namegen open ...
f55b6ad6923c40f34a017c907dd7d8e8163bced0c23da35dd0fa3f0dd1388270
Eonblast/Scalaxis
tx_op_beh.erl
@copyright 2009 , 2010 onScale solutions GmbH Licensed under the Apache License , Version 2.0 ( the " License " ) ; % you may not use this file except in compliance with the License. % You may obtain a copy of the License at % % -2.0 % % Unless required by applicable law or agreed to in writing, soft...
null
https://raw.githubusercontent.com/Eonblast/Scalaxis/10287d11428e627dca8c41c818745763b9f7e8d4/src/transactions/tx_op_beh.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language gov...
@copyright 2009 , 2010 onScale solutions GmbH Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author < > -module(tx_op_beh). -author(''). -vsn('$Id$'). -define(TRACE(X,Y), ok). -export([behaviour_info/1]). -sp...
45dfdb2a77ec66f8bf5ecd577bc9a9855896644841fc081461829059fbaaeaea
ndmitchell/uniplate
Zipper.hs
| A zipper is a structure for walking a value and manipulating it in constant time . This module was inspired by the paper : . Scrap Your Zippers : A Generic Zipper for Heterogeneous Types , Workshop on Generic Programming 2010/. A zipper is a structure for walking a value and manipulating it in constant ti...
null
https://raw.githubusercontent.com/ndmitchell/uniplate/7d3039606d7a083f6d77f9f960c919668788de91/Data/Generics/Uniplate/Zipper.hs
haskell
* Create a zipper and get back the value * Navigate within a zipper * Manipulate the zipper hole | Create a zipper, focused on the top-left value. | Create a zipper with a different focus type from the outer type. Will return @Nothing@ if there are no instances of the focus type within the original value. | Fr...
| A zipper is a structure for walking a value and manipulating it in constant time . This module was inspired by the paper : . Scrap Your Zippers : A Generic Zipper for Heterogeneous Types , Workshop on Generic Programming 2010/. A zipper is a structure for walking a value and manipulating it in constant ti...
84ce7333d38707b82f556dfe8230f20cf636a2aa026a8bb18bf64a7a3434fa6b
nandor/llir-ocaml
mach.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/nandor/llir-ocaml/9c019f15c444e30c825b1673cbe827e0497868fe/asmcomp/mach.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the type label = Cmm.label type integer_comparison = Isigned of Cmm.integer_comparison | Iunsigned of...
c9a3d129491504b5f62304f18e4d0cd35a0ad00458d2daef4eb1b72a9dc44660
ghollisjr/cl-ana
package.lisp
cl - ana is a Common Lisp data analysis library . Copyright 2013 , 2014 ;;;; This file is part of cl - ana . ;;;; ;;;; cl-ana is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the ...
null
https://raw.githubusercontent.com/ghollisjr/cl-ana/5cb4c0b0c9c4957452ad2a769d6ff9e8d5df0b10/reusable-table/package.lisp
lisp
cl-ana is free software: you can redistribute it and/or modify it (at your option) any later version. cl-ana is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public Lice...
cl - ana is a Common Lisp data analysis library . Copyright 2013 , 2014 This file is part of cl - ana . under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License ...
98c274174d2bca74c99858f5cfe729230cd38924a21212336deb24457ba9ffbc
blitz/stumpwm
surfraw.lisp
SURFRAW module for StumpWM . ;; Copyright ( C ) 2008 Ivy ;; ;; Maintainer: Ivy Foster ;; ;; This module is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 , or ( at your option ) ;; any lat...
null
https://raw.githubusercontent.com/blitz/stumpwm/439180985920a628b18d4426f1a29b1c36576531/contrib/surfraw.lisp
lisp
Maintainer: Ivy Foster This module is free software; you can redistribute it and/or modify either version 2 , or ( at your option ) any later version. This module is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A...
SURFRAW module for StumpWM . Copyright ( C ) 2008 Ivy it under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License the Free Software Foundation , Inc. , 59 Temple Place , Suite 330 , Boston , MA 02111 - 1307 USA for RC files early...
0bb2885b4e5e5f0e8e6f9951647e2432df15562bdb5de2e7c712aedd9122b6a3
fetburner/Coq2SML
reductionops.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/fetburner/Coq2SML/322d613619edbb62edafa999bff24b1993f37612/coq-8.4pl4/pretyping/reductionops.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** ************************************...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Pp open Util open Names ...
284e473a9795978b3830553ab3168fa719127f7af125df7395dc014cb1b178d4
stephenpascoe/hs-arrow
TableBatchReader.hs
| Copyright : , and License : LGPL-2.1 Maintainer : ( ) /No description available in the introspection data./ Copyright : Will Thompson, Iñaki García Etxebarria and Jonas Platte License : LGPL-2.1 Maintainer : Iñaki García Etxebarria () /No description available in the introspection...
null
https://raw.githubusercontent.com/stephenpascoe/hs-arrow/86c7c452a8626b1d69a3cffd277078d455823271/gi-arrow/GI/Arrow/Objects/TableBatchReader.hs
haskell
* Exported types * Methods # SOURCE # # SOURCE # | Memory-managed wrapper type. | Type class for types which can be safely cast to `TableBatchReader`, for instance with `toTableBatchReader`. # OVERLAPPABLE # | A convenience alias for `Nothing` :: `Maybe` `TableBatchReader`. method TableBatchReader::new method ty...
| Copyright : , and License : LGPL-2.1 Maintainer : ( ) /No description available in the introspection data./ Copyright : Will Thompson, Iñaki García Etxebarria and Jonas Platte License : LGPL-2.1 Maintainer : Iñaki García Etxebarria () /No description available in the introspection...
e5f00de0fd74a080f0c3263367bda04971336f32ca6fab714bea3119b2eec564
nuprl/gradual-typing-performance
cut-tail.rkt
#lang racket (require "data.rkt") (require racket/vector) NeSegs is one of : ;; - (cons Posn empty) - ( cons ) ;; cut-tail : NeSegs -> Segs ;; Cut off the tail. (define (cut-tail segs) (let ([r (vector-drop segs 1)]) (cond [(equal? '#() r) '#()] [else (vector-append (vector (vector-ref segs 0)) ...
null
https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/experimental/postmortem/experiments/vector-vs-list/snake-with-vectors/cut-tail.rkt
racket
- (cons Posn empty) cut-tail : NeSegs -> Segs Cut off the tail.
#lang racket (require "data.rkt") (require racket/vector) NeSegs is one of : - ( cons ) (define (cut-tail segs) (let ([r (vector-drop segs 1)]) (cond [(equal? '#() r) '#()] [else (vector-append (vector (vector-ref segs 0)) (cut-tail r))]))) (provide cut-tail)
b152229fb5ee8d0233345bcd78cd3aed503b0c96b3ff63ac3974a840646e6769
ktakashi/sagittarius-scheme
r6rs+.scm
;; -*- scheme -*- (import (rnrs) (rnrs eval) (rnrs mutable-pairs) (core errors) (srfi :64 testing)) (test-begin "R6RS+ functionality tests") ;; map (test-equal "map with different length" '((a . d) (b . e) (c . f)) (map cons '(a b c d e f) '(d e f))) ;; for-each (test-equal "for-each with different leng...
null
https://raw.githubusercontent.com/ktakashi/sagittarius-scheme/3971b131d463696297c320dbe595dffd08867dac/test/tests/r6rs%2B.scm
scheme
-*- scheme -*- map for-each fallback macro defininion comes *after* the usage this actually not a valid R6RS code eval can't have define but we allow it FIXME the test case should use approximate value for now disabled (test-equal "(asin 0+i)" -0.0+0.8813735870195429i (asin 0+i)) BOM for UTF16 it can only be...
(import (rnrs) (rnrs eval) (rnrs mutable-pairs) (core errors) (srfi :64 testing)) (test-begin "R6RS+ functionality tests") (test-equal "map with different length" '((a . d) (b . e) (c . f)) (map cons '(a b c d e f) '(d e f))) (test-equal "for-each with different length" '((g . j) (h . k) (i . l)) ...
23ed9e8f4c58d193de56e0bc66081133185b72459e17a95c580d0a412c706baf
funcool/catacumba
testing.clj
Copyright ( c ) 2015 < > ;; All rights reserved. ;; ;; Redistribution and use in source and binary forms, with or without ;; modification, are permitted provided that the following conditions are met: ;; ;; * Redistributions of source code must retain the above copyright notice, this ;; list of conditions and th...
null
https://raw.githubusercontent.com/funcool/catacumba/a493843176ee8defa2f3c6afa23c720f495d9341/src/clojure/catacumba/testing.clj
clojure
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions ...
Copyright ( c ) 2015 < > THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT HOLDER OR LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY ...
9369deabfb24d614553edefb7d98bf00f62a6e45d2a701ecaadf2036c5a32980
cjdev/haskell-fundamentals
Stubs.hs
# LANGUAGE DataKinds # # LANGUAGE ExplicitNamespaces # {-# LANGUAGE GADTs #-} # LANGUAGE LambdaCase # {-# LANGUAGE RankNTypes #-} # LANGUAGE TypeOperators # module Maintainability.Freer.Stubs where import qualified Data.Text as T import Control.Monad.Freer (Eff, interpret, reinterpret) import Control.Monad.Freer.Sta...
null
https://raw.githubusercontent.com/cjdev/haskell-fundamentals/03982d7b3ca140bfecc69fa4873fcc0e4fa54044/test/Maintainability/Freer/Stubs.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes # ------------------------------------------------------------------------------ Simple effects ------------------------------------------------------------------------------ | Runs a computation with a constant time that never changes. time is read. | Runs a computation wit...
# LANGUAGE DataKinds # # LANGUAGE ExplicitNamespaces # # LANGUAGE LambdaCase # # LANGUAGE TypeOperators # module Maintainability.Freer.Stubs where import qualified Data.Text as T import Control.Monad.Freer (Eff, interpret, reinterpret) import Control.Monad.Freer.State (State, evalState, get, put) import Control.Mona...
ab9cfb45119a7887ab4e2a3d620c797eaccb02bd15856cd066667be1a4e29ae9
danprince/wireworld
controls.cljs
(ns wireworld.controls "Collection of re-agent/hiccup components" (:require [wireworld.actions :as act] [wireworld.settings :as s] [wireworld.encode :as encode])) (def sprite-size 24) (defn sprite [x y] [:div.sprite {:style {:background-image "url(img/sprites.png)" :backgro...
null
https://raw.githubusercontent.com/danprince/wireworld/3bca90781fb958121208a0f70a7ff3e9154694d8/src/wireworld/controls.cljs
clojure
(ns wireworld.controls "Collection of re-agent/hiccup components" (:require [wireworld.actions :as act] [wireworld.settings :as s] [wireworld.encode :as encode])) (def sprite-size 24) (defn sprite [x y] [:div.sprite {:style {:background-image "url(img/sprites.png)" :backgro...
592e7b9312639dc277c4d31f971dcffc2ab13b71f89cd645d2890df5a67f84cb
UU-ComputerScience/uhc
copyFile.hs
module Main where main = do s <- readFile "copyFile.hs" writeFile "copyOfCopyFile.hs" s
null
https://raw.githubusercontent.com/UU-ComputerScience/uhc/f2b94a90d26e2093d84044b3832a9a3e3c36b129/EHC/demo/copyFile.hs
haskell
module Main where main = do s <- readFile "copyFile.hs" writeFile "copyOfCopyFile.hs" s
d769266b2f5f6bfaa054ad9ebedcdd8dafd54ee189598a46f4b89982b94b266c
binaryage/chromex
cpu.cljs
(ns chromex.app.system.cpu (:require-macros [chromex.app.system.cpu :refer [gen-wrap]]) (:require [chromex.core])) -- functions -------------------------------------------------------------------------------------------------------------- (defn get-info* [config] (gen-wrap :function ::get-info config))
null
https://raw.githubusercontent.com/binaryage/chromex/33834ba5dd4f4238a3c51f99caa0416f30c308c5/src/apps/chromex/app/system/cpu.cljs
clojure
(ns chromex.app.system.cpu (:require-macros [chromex.app.system.cpu :refer [gen-wrap]]) (:require [chromex.core])) -- functions -------------------------------------------------------------------------------------------------------------- (defn get-info* [config] (gen-wrap :function ::get-info config))
1bcf2f1a4056cd9696f0426fb323cdc25d1db920ff6b773435f06cd4ed474e03
ChrisPenner/wave-function-collapse
Grid.hs
# LANGUAGE TypeFamilies # # LANGUAGE DeriveFunctor # # LANGUAGE DeriveFoldable # {-# LANGUAGE DeriveTraversable #-} # LANGUAGE LambdaCase # # LANGUAGE TemplateHaskell # # LANGUAGE DeriveGeneric # {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DerivingStrategies # module WFC.Grid where import qualified Data.Text as T impor...
null
https://raw.githubusercontent.com/ChrisPenner/wave-function-collapse/9ad25912680dc16b5fe0d125b77dd410e3415614/src/WFC/Grid.hs
haskell
# LANGUAGE DeriveTraversable # # LANGUAGE DeriveAnyClass # mkDiagGraph :: Row -> Col -> Grid Coord mkDiagGraph rows cols = Grid { _graph = gr , _rows = rows , _cols = cols } where let slots = [(r, c) | r <- [0..rows - 1], c <- [0..cols - 1]] le...
# LANGUAGE TypeFamilies # # LANGUAGE DeriveFunctor # # LANGUAGE DeriveFoldable # # LANGUAGE LambdaCase # # LANGUAGE TemplateHaskell # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # module WFC.Grid where import qualified Data.Text as T import qualified Data.Map as M import qualified Data.Set as S import Dat...
cffcc04bf2b4f66a2f0407c6248145a1066163506e61475054dd71d4b96146cc
eareese/htdp-exercises
142-ill-sized.rkt
#lang htdp/bsl (require 2htdp/image) Exercise 142 . Design ill - sized ? . The function consumes a list of and a positive number n. It produces the first image on that is not an n by n square ; if it can not find such an image , it produces # false . ;; Hint Use ;; ; ImageOrFalse is one of: ;; ; – Image ;; ; – ...
null
https://raw.githubusercontent.com/eareese/htdp-exercises/a85ff3111d459dda0e94d9b463d01a09accbf9bf/part02-arbitrarily-large-data/142-ill-sized.rkt
racket
if it can not find such an image , it produces # false . Hint Use ; ImageOrFalse is one of: ; – Image ; – #false for the result part of the signature. - '() ImageOrFalse is one of: – Image – #false List-of-images PositiveNumber -> ImageOrFalse consumes a List-of-images loi and a positive number n, then it ...
#lang htdp/bsl (require 2htdp/image) A List - of - images is one of : - ( cons Image List - of - images ) produces the first image on that is NOT an n x n square . (define SQ25 (rectangle 25 25 "solid" "blue")) (define SQ9 (rectangle 9 9 "solid" "blue")) (define R5 (rectangle 5 25 "solid" "blue")) (check-...
9f0f7b7afe1f4023af3ed6f73b5c0e11830349a118a90c826f8ff2cf2aaed7cc
tsloughter/kuberl
kuberl_v1beta1_self_subject_rules_review_spec.erl
-module(kuberl_v1beta1_self_subject_rules_review_spec). -export([encode/1]). -export_type([kuberl_v1beta1_self_subject_rules_review_spec/0]). -type kuberl_v1beta1_self_subject_rules_review_spec() :: #{ 'namespace' => binary() }. encode(#{ 'namespace' := Namespace }) -> #{ 'namespace' => Namespa...
null
https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_v1beta1_self_subject_rules_review_spec.erl
erlang
-module(kuberl_v1beta1_self_subject_rules_review_spec). -export([encode/1]). -export_type([kuberl_v1beta1_self_subject_rules_review_spec/0]). -type kuberl_v1beta1_self_subject_rules_review_spec() :: #{ 'namespace' => binary() }. encode(#{ 'namespace' := Namespace }) -> #{ 'namespace' => Namespa...
7e1ee049fd5f9c233ddec373f1167d312b7346600759ca33937d28040e26df5f
racket/gui
info.rkt
#lang info (define collection 'multi) (define deps '("base" "string-constants-lib")) (define build-deps '("racket-index" "scheme-lib" "draw-lib" "racket-test" "sgl" "snip-lib" "wxme-lib" ...
null
https://raw.githubusercontent.com/racket/gui/0e9e69028bfb63fb6b968b4e100e231c54273d86/gui-test/info.rkt
racket
#lang info (define collection 'multi) (define deps '("base" "string-constants-lib")) (define build-deps '("racket-index" "scheme-lib" "draw-lib" "racket-test" "sgl" "snip-lib" "wxme-lib" ...
5e0fef35baea1ab989c3a6a9f164f14eb9c5a598f24662a643788df9aa23aa39
MyDataFlow/ttalk-server
mod_admin_extra_srg.erl
%%%------------------------------------------------------------------- %%% File : mod_admin_extra_srg.erl Author : > , < > %%% Purpose : Contributed administrative functions and commands Created : 10 Aug 2008 by > %%% %%% ejabberd , Copyright ( C ) 2002 - 2008 ProcessOne %%% %%% This program is f...
null
https://raw.githubusercontent.com/MyDataFlow/ttalk-server/07a60d5d74cd86aedd1f19c922d9d3abf2ebf28d/apps/ejabberd/src/mod_admin_extra_srg.erl
erlang
------------------------------------------------------------------- File : mod_admin_extra_srg.erl Purpose : Contributed administrative functions and commands This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope...
Author : > , < > Created : 10 Aug 2008 by > ejabberd , Copyright ( C ) 2002 - 2008 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a copy of the GNU General Public License F...
f29690cedce1bac8e1bbc2116a3f4606e755279f386b6fc47f75a05926370efe
tonsky/down-the-rabbit-hole
rabbit.clj
(ns down-the-rabbit-hole.rabbit (:require [down-the-rabbit-hole.core :as core]) (:import [org.jetbrains.skija Canvas Point Rect])) (defmethod core/render :renderer/rabbit [canvas db game entity] (let [{:game/keys [now]} game [x y] (cond (core/in-phase? game :phase/player-enter) [2...
null
https://raw.githubusercontent.com/tonsky/down-the-rabbit-hole/cca89725c14f3a316f6a8bf44fe3a1ee2b04617c/src/down_the_rabbit_hole/rabbit.clj
clojure
:hoverable true
(ns down-the-rabbit-hole.rabbit (:require [down-the-rabbit-hole.core :as core]) (:import [org.jetbrains.skija Canvas Point Rect])) (defmethod core/render :renderer/rabbit [canvas db game entity] (let [{:game/keys [now]} game [x y] (cond (core/in-phase? game :phase/player-enter) [2...
75dd340eb18cc7ef734473ec098a9a1c3bf5b019ae53ebaf92d9ec3f9f1f8ce6
reactiveml/rml
global.ml
(**********************************************************************) (* *) (* ReactiveML *) (* *) (* ...
null
https://raw.githubusercontent.com/reactiveml/rml/d3ac141bd9c6e3333b678716166d988ce04b5c80/compiler/global/global.ml
ocaml
******************************************************************** ReactiveML ...
Copyright 2002 , 2007 . All rights reserved . version 1.0 . - theme SPI , Laboratoire d'Informatique de Paris 6 ( 2002 - 2005 ) - Verimag , CNRS Grenoble ( 2005 - 2006 ) - projet , ( 2006 - 2007 ) ...
d7ebe081b1b24d0f49120c530cd4b1e1a0e9a045190f698a647a639496c51f04
oubiwann/star-traders
player_test.clj
(ns starlanes.player-test (:require [clojure.test :refer :all] [starlanes.game.base :as game] [starlanes.player :as player] [starlanes.util :as util])) (deftest test-player-data-factory (let [player (player/player-data-factory)] (is (= (player :name) "")) (is (= (player...
null
https://raw.githubusercontent.com/oubiwann/star-traders/8d7b85ce9ad6446f3b766cced08c120787a82352/clojure/test/starlanes/player_test.clj
clojure
(ns starlanes.player-test (:require [clojure.test :refer :all] [starlanes.game.base :as game] [starlanes.player :as player] [starlanes.util :as util])) (deftest test-player-data-factory (let [player (player/player-data-factory)] (is (= (player :name) "")) (is (= (player...
2eb9b5c1a4aaf9cc61ba58821c9a83d5b4b21c03221f4feedbabe64cb677a3f3
maximedenes/native-coq
wg_Find.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/maximedenes/native-coq/3623a4d9fe95c165f02f7119c0e6564a83a9f4c9/ide/wg_Find.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 **********************************************************************
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * class finder : GText.view -> ...
32584f6e1fa7d5293246e2764e63baa63be81d20f2520ebeb8eaa7d3fe10b1c8
kraison/vivace-graph
auxfns.lisp
;;; -*- Mode: Lisp; Syntax: Common-Lisp -*- Code from Paradigms of AI Programming Copyright ( c ) 1991 ;;; File auxfns.lisp: Auxiliary functions used by all other programs ;;; Load this file before running any other programs. ;;;; Implementation-Specific Details (eval-when (eval compile load) ;; Make it ok t...
null
https://raw.githubusercontent.com/kraison/vivace-graph/6b5b5eca3e2613e48846da326ecf36cd9dcd7ceb/reference/auxfns.lisp
lisp
-*- Mode: Lisp; Syntax: Common-Lisp -*- File auxfns.lisp: Auxiliary functions used by all other programs Load this file before running any other programs. Implementation-Specific Details Make it ok to place a function definition on a built-in LISP symbol. Don't warn if a function is defined in multiple files -- ...
Code from Paradigms of AI Programming Copyright ( c ) 1991 (eval-when (eval compile load) #+(or Allegro EXCL) (dolist (pkg '(excl common-lisp common-lisp-user)) (setf (excl:package-definition-lock (find-package pkg)) nil)) #+Lispworks (setq *PACKAGES-FOR-WARN-ON-REDEFINITION* nil) #+LCL (co...
5ff91934593a874e852748dee38117dbedc3bba3e42fadf4cfb3de3084e17312
hirokai/PaperServer
Epub.hs
# LANGUAGE OverloadedStrings , TemplateHaskell # module Model.Epub ( epubFromPaper ) where import Import hiding (Paper(..),Citation(..),Figure(..)) import System.Process import System.Directory import Control.Exception (try,IOException) import Data.Time import qualified Data.ByteString as BS import qualified Data....
null
https://raw.githubusercontent.com/hirokai/PaperServer/b577955af08660253d0cd11282cf141d1c174bc0/Model/Epub.hs
haskell
system $ "rm -r '" ++ dir ++ "'" stub : currenly all | " .jpg " ` T.isSuffixOf ` u = ImgJpeg stub: all images are now png. Stub
# LANGUAGE OverloadedStrings , TemplateHaskell # module Model.Epub ( epubFromPaper ) where import Import hiding (Paper(..),Citation(..),Figure(..)) import System.Process import System.Directory import Control.Exception (try,IOException) import Data.Time import qualified Data.ByteString as BS import qualified Data....
ec6c16597792ccdf06c3cdbe3a079d2fa8372c09c64345f0c2b0f4fb9122f7c9
erikd/system-linux-proc
Errors.hs
# LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} module System.Linux.Proc.Errors ( ProcError (..) , renderProcError ) where import Data.Text (Text) import qualified Data.Text as Text data ProcError = ProcReadError !FilePath !Text | ProcParseError !FilePath !Text | ProcMemInfoKeyError...
null
https://raw.githubusercontent.com/erikd/system-linux-proc/b5fc50b0e9f2b28a92c3152908799e53ae16589e/System/Linux/Proc/Errors.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE LambdaCase # module System.Linux.Proc.Errors ( ProcError (..) , renderProcError ) where import Data.Text (Text) import qualified Data.Text as Text data ProcError = ProcReadError !FilePath !Text | ProcParseError !FilePath !Text | ProcMemInfoKeyError !Text deriving (Eq, Show) rende...
436b03e2813f9cb5bcaaeef90078b7008097a60dc96666ccdf746402bb5d3e13
MyDataFlow/ttalk-server
ws_send_many.erl
%% Feel free to use, reuse and abuse the code in this file. -module(ws_send_many). -behaviour(cowboy_websocket_handler). -export([init/3]). -export([websocket_init/3]). -export([websocket_handle/3]). -export([websocket_info/3]). -export([websocket_terminate/3]). init(_Any, _Req, _Opts) -> {upgrade, protocol, cowboy...
null
https://raw.githubusercontent.com/MyDataFlow/ttalk-server/07a60d5d74cd86aedd1f19c922d9d3abf2ebf28d/deps/cowboy/test/ws_SUITE_data/ws_send_many.erl
erlang
Feel free to use, reuse and abuse the code in this file.
-module(ws_send_many). -behaviour(cowboy_websocket_handler). -export([init/3]). -export([websocket_init/3]). -export([websocket_handle/3]). -export([websocket_info/3]). -export([websocket_terminate/3]). init(_Any, _Req, _Opts) -> {upgrade, protocol, cowboy_websocket}. websocket_init(_TransportName, Req, Sequence) ...
70408967ac63a58e9495ff8c363d820b5423a81b570167b27761bcab6be4fc86
MaskRay/OJHaskell
carpet.hs
import Control.Monad main = do n <- fmap read getLine a <- replicateM n $ (map read . words) `fmap` getLine [sx,sy] <- (map read . words) `fmap` getLine :: IO [Int] print $ foldl (\acc (i,c) -> if c!!0<=sx&&sx<=c!!0+c!!2&&c!!1<=sy&&sy<=c!!1+c!!3 then i else acc) (-1) $ zip [1..] a
null
https://raw.githubusercontent.com/MaskRay/OJHaskell/ba24050b2480619f10daa7d37fca558182ba006c/NOIP/2011/carpet.hs
haskell
import Control.Monad main = do n <- fmap read getLine a <- replicateM n $ (map read . words) `fmap` getLine [sx,sy] <- (map read . words) `fmap` getLine :: IO [Int] print $ foldl (\acc (i,c) -> if c!!0<=sx&&sx<=c!!0+c!!2&&c!!1<=sy&&sy<=c!!1+c!!3 then i else acc) (-1) $ zip [1..] a
68295a09956f3cc784e3d6b87c307dd2a128d3b24bb4cc1e21ec7356d01a83c4
irastypain/sicp-on-language-racket
exercise_1_03-test.rkt
#lang racket (require rackunit rackunit/text-ui "../../src/chapter01/exercise_1_03.rkt") (define tests (test-suite "Sum of squares of the greatest two numbers" (test-case "When first and second numbers are greatest" (check-equal? 13 (sum-of-squares-of-greatest-two-numbers 2 3 ...
null
https://raw.githubusercontent.com/irastypain/sicp-on-language-racket/0052f91d3c2432a00e7e15310f416cb77eeb4c9c/test/chapter01/exercise_1_03-test.rkt
racket
#lang racket (require rackunit rackunit/text-ui "../../src/chapter01/exercise_1_03.rkt") (define tests (test-suite "Sum of squares of the greatest two numbers" (test-case "When first and second numbers are greatest" (check-equal? 13 (sum-of-squares-of-greatest-two-numbers 2 3 ...
67a6b1714e07c8ece70addf92f34f716481572d4717a4b47c7f9ccdad31ba389
Frama-C/Frama-C-snapshot
kernel_ast.ml
(**************************************************************************) (* *) This file is part of Frama - C. (* *) Copyright ...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/server/kernel_ast.ml
ocaml
************************************************************************ alternatives) ...
This file is part of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , v...
a44cc465f272f5dd65b7f502ad144e422e0b6fbacdeda3068cd6e764c05a8b2d
Metaxal/rwind
try-layout.rkt
#lang slideshow (require "../policy/tiling.rkt") (define (at x y p) (ht-append (blank x 0) (vl-append (blank 0 y) p))) (define try-layout% (class policy-tiling% (super-new) (init-field x0 y0 w0 h0 windows) (inherit do-layout) (define root-window #f) (defin...
null
https://raw.githubusercontent.com/Metaxal/rwind/5a4f580b0882452f3938aaa1711a6d99570f006f/private/try-layout.rkt
racket
#lang slideshow (require "../policy/tiling.rkt") (define (at x y p) (ht-append (blank x 0) (vl-append (blank 0 y) p))) (define try-layout% (class policy-tiling% (super-new) (init-field x0 y0 w0 h0 windows) (inherit do-layout) (define root-window #f) (defin...
2f6b93bd11a6922dac912a0edf05fcb2f20a0b40b398ba3ad6045c33e2a7a3c5
utahstreetlabs/risingtide
config.clj
(ns risingtide.config (:require [risingtide.core :as core])) (defonce env (keyword (or (System/getProperty "risingtide.env") (System/getenv "RISINGTIDE_ENV") (System/getenv "RT_ENV") "development"))) (def redis {:development {:resque {} :everything-card-feed {} :card-feeds-1 {} ...
null
https://raw.githubusercontent.com/utahstreetlabs/risingtide/bc5b798396679739469b1bd8ee1b03db76178cde/src/risingtide/config.clj
clojure
storm topology config ;;; about having too many boolean arguments. note that when using GET for solr queries we also need to limit the size of our requests or to be in the same ballpark right now, though the jetty one will also be reached by having large user ids since it is related to the number of characters in...
(ns risingtide.config (:require [risingtide.core :as core])) (defonce env (keyword (or (System/getProperty "risingtide.env") (System/getenv "RISINGTIDE_ENV") (System/getenv "RT_ENV") "development"))) (def redis {:development {:resque {} :everything-card-feed {} :card-feeds-1 {} ...
177142cb4cdc177cfb078770c1cafe7f6156dbe595f205dd02130fa0e607e154
janestreet/redis-async
common.ml
open! Core open Async (* We want to handle the unusual case of needing more data via exception because - Exceptions perform very well - The alternative would be a variant return type that you have to allocate and then bind at every step of parsing the protocol *) exception Need_more_data let check_length_...
null
https://raw.githubusercontent.com/janestreet/redis-async/d83ae757362264075be0a12e6eeaa723b012f2a9/src/common.ml
ocaml
We want to handle the unusual case of needing more data via exception because - Exceptions perform very well - The alternative would be a variant return type that you have to allocate and then bind at every step of parsing the protocol * Int.to_string is slow. Cache some small values.
open! Core open Async exception Need_more_data let check_length_exn ~len buf = if len > Iobuf.length buf then raise Need_more_data let write_crlf writer = Writer.write writer "\r\n" let itoa = let len = 1024 in let itoa = Array.init len ~f:Int.to_string in fun i -> if i >= ...
3d7d6e315ce9b29aed1770fc059ced9b6df55ca461ed1f263d38a62b73346596
mbj/stratosphere
AllowActionProperty.hs
module Stratosphere.WAFv2.WebACL.AllowActionProperty ( module Exports, AllowActionProperty(..), mkAllowActionProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.WAFv2.WebACL.CustomRequestHandlin...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/wafv2/gen/Stratosphere/WAFv2/WebACL/AllowActionProperty.hs
haskell
# SOURCE #
module Stratosphere.WAFv2.WebACL.AllowActionProperty ( module Exports, AllowActionProperty(..), mkAllowActionProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties data AllowActionProperty = ...
b5aa3bc112f922d1d97fdf25e5e587820d7b1e11e9bbedb74c7d5e42d3883c25
agocorona/TCache
IndexText.hs
# LANGUAGE DeriveDataTypeable , FlexibleInstances , UndecidableInstances , MultiParamTypeClasses # UndecidableInstances, MultiParamTypeClasses #-} | Implements full text indexation ( ` indexText ` ) and text search(`contains ` ) , as an addition to the query language implemented in ` Data . TCache . IndexQu...
null
https://raw.githubusercontent.com/agocorona/TCache/72158de657f72c3b480cea1878b5cebfbfd65d13/Data/TCache/IndexText.hs
haskell
import Debug.Trace (!>)= flip trace fieldType lastDoc mapDocKeyInt mapIntDocKey mapTextInteger readInitDBRef v x= do mv <- readDBRef x case mv of Nothing -> writeDBRef x v >> return v Just v -> return v new Document already indexed document new word word already indexed | start a trigger to index...
# LANGUAGE DeriveDataTypeable , FlexibleInstances , UndecidableInstances , MultiParamTypeClasses # UndecidableInstances, MultiParamTypeClasses #-} | Implements full text indexation ( ` indexText ` ) and text search(`contains ` ) , as an addition to the query language implemented in ` Data . TCache . IndexQu...
e578efa7e7e44120852347861b54fc94267a56f4467acec9fd4dadbb1caae42e
haskell-hint/hint
mk_extensions_mod.hs
import Language.Haskell.Extension import Distribution.Text import Text.PrettyPrint main = writeFile "src/Hint/Extension.hs" $ render moduleDoc moduleDoc :: Doc moduleDoc = vcat [ text "-- this module was automatically generated. do not edit!", text "-- edit util/mk_extensions_mod.hs instead", text "modu...
null
https://raw.githubusercontent.com/haskell-hint/hint/097e307dce86e39f5ccab044fd539b413348ece4/generate/mk_extensions_mod.hs
haskell
punctuateL p [d1, ..., dn] = [d1, p <> d2, ..., p <> dn]
import Language.Haskell.Extension import Distribution.Text import Text.PrettyPrint main = writeFile "src/Hint/Extension.hs" $ render moduleDoc moduleDoc :: Doc moduleDoc = vcat [ text "-- this module was automatically generated. do not edit!", text "-- edit util/mk_extensions_mod.hs instead", text "modu...
8dbc2443a9ce0c13de64f2c53a76815779c9b74eed9b90ab34a56d53d6213677
christoff-buerger/racr
runtime-structure-example-slide.scm
; This program and the accompanying materials are made available under the terms of the MIT license ( X11 license ) which accompanies this distribution . Author : #!r6rs (import (rnrs) (racr core) (composed-petrinets user-interface) (composed-petrinets analyses)) (define (run-tests) (define net1 (petrin...
null
https://raw.githubusercontent.com/christoff-buerger/racr/ecb2a9b8bf3f333550728cf45b97607a8298532f/examples/composed-petrinets/examples/runtime-structure-example-slide.scm
scheme
This program and the accompanying materials are made available under the
terms of the MIT license ( X11 license ) which accompanies this distribution . Author : #!r6rs (import (rnrs) (racr core) (composed-petrinets user-interface) (composed-petrinets analyses)) (define (run-tests) (define net1 (petrinet: net1 (p2) (p1) ((p1 'T1 'T1 'T1) (p2 'T1 'T1)) (tr...
72f1737aaec2a1853468768e70cd12725ffd7fbe1d3f925483d098f8e7e5d6a0
smuenzel/opile
path.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/smuenzel/opile/190ca86df6440550d0fddf0222e16ba2e52bca64/raw-compiler/path.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the type t = Pident of Ident.t | Pdot of t * string | Papply of t * t val same: t -> t -> bool val ...
1e6a5d3fdcf19b9b35e4bfa99af525dec523906b8c435b099c99f0785b36bbad
tfausak/exercism-solutions
Robot.hs
module Robot ( Bearing(..) , Robot , bearing , coordinates , mkRobot , simulate , turnLeft , turnRight ) where import Data.List (foldl') type Point = (Int, Int) data Bearing = North | East | South | West deriving (Bounded, Enum, Eq, Show) data Robot = Robot { ...
null
https://raw.githubusercontent.com/tfausak/exercism-solutions/5e6f93979cc61ef5e3b48a09ca316dfd7fcd319c/haskell/robot-simulator/Robot.hs
haskell
module Robot ( Bearing(..) , Robot , bearing , coordinates , mkRobot , simulate , turnLeft , turnRight ) where import Data.List (foldl') type Point = (Int, Int) data Bearing = North | East | South | West deriving (Bounded, Enum, Eq, Show) data Robot = Robot { ...
38ab4e791b724a58f0d8b0db03a543cecf86b342386c19e129b2b81a0dd86b98
anchpop/wise_mans_haskell
sillyMaybeDoTest.hs
result = do x <- Just 0 x <- Just (x + 1) x <- Just (x * 3) x <- Just (show x) Just ("And the answer is " ++ x)
null
https://raw.githubusercontent.com/anchpop/wise_mans_haskell/021ca3f3d96ebc0ecf2daf1a802fc33d067e24cc/haskelltests/should_compile/sillyMaybeDoTest.hs
haskell
result = do x <- Just 0 x <- Just (x + 1) x <- Just (x * 3) x <- Just (show x) Just ("And the answer is " ++ x)
26fa077e0ec6ec2cec413bbd23761c165854d4c8a46db1027d8da485a4bb9a37
awakesecurity/spectacle
Internal.hs
# LANGUAGE TypeFamilies # -- | -- Module : Language.Spectacle.Syntax.Error.Internal Copyright : ( c ) Arista Networks , 2022 - 2023 License : Apache License 2.0 , see LICENSE -- -- Stability : stable Portability : non - portable ( GHC extensions ) -- -- TODO: docs -- -- @since 1.0.0 module...
null
https://raw.githubusercontent.com/awakesecurity/spectacle/430680c28b26dabb50f466948180eb59ba72fc8e/src/Language/Spectacle/Syntax/Error/Internal.hs
haskell
| Module : Language.Spectacle.Syntax.Error.Internal Stability : stable TODO: docs @since 1.0.0 -------------------------------------------------------------------------------------------------
# LANGUAGE TypeFamilies # Copyright : ( c ) Arista Networks , 2022 - 2023 License : Apache License 2.0 , see LICENSE Portability : non - portable ( GHC extensions ) module Language.Spectacle.Syntax.Error.Internal ( Error (ThrowE), Effect (CatchE), ) where import Language.Spectacle.Lang (Ef...
5ba4c2df1b484b02be2adc0940f1be9209791c350664434df4be87c97a6dca4e
clojure/core.typed
base_env_common.clj
Copyright ( c ) , contributors . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be bound by ;...
null
https://raw.githubusercontent.com/clojure/core.typed/f5b7d00bbb29d09000d7fef7cca5b40416c9fa91/typed/checker.jvm/src/clojure/core/typed/checker/base_env_common.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) , contributors . (ns clojure.core.typed.checker.base-env-common "Utilities for all implementations of the type checker" (:require [clojure.core.typed.checker.jvm.parse-unparse :as prs] [clojure.tools.reader :as rdr] [clojure.tools.reader.reader-types :as rdrs])) ...
8771fabd642a3d0513f3aa55b6376552ec33a028672603b25b492ba5e6505a46
jasonstolaruk/CurryMUD
ActionParams.hs
{-# OPTIONS_GHC -Wno-unused-do-bind #-} # LANGUAGE OverloadedStrings , PatternSynonyms , RebindableSyntax , RecordWildCards , ViewPatterns # module Mud.Data.State.ActionParams.ActionParams ( ActionParams( .. , AdviseNoArgs ...
null
https://raw.githubusercontent.com/jasonstolaruk/CurryMUD/f9775fb3ede08610f33f27bb1fb5fc0565e98266/lib/Mud/Data/State/ActionParams/ActionParams.hs
haskell
# OPTIONS_GHC -Wno-unused-do-bind # ================================================== Patterns matching type "ActionParams":
# LANGUAGE OverloadedStrings , PatternSynonyms , RebindableSyntax , RecordWildCards , ViewPatterns # module Mud.Data.State.ActionParams.ActionParams ( ActionParams( .. , AdviseNoArgs , AdviseOneA...
4d8c240f01ad9858d7b5cb62fd8af15c7b3009e8e35f5283ce44c86f90bada7d
timgilbert/haunting-refrain-posh
seed.cljs
(ns haunting-refrain.datascript.seed (:require [shodan.console :as console] [datascript.core :as d] [haunting-refrain.model.input :as input] [haunting-refrain.datascript.util :as u])) Every checkin has a list of fields , one of which can be selected at random to use as a ;; sear...
null
https://raw.githubusercontent.com/timgilbert/haunting-refrain-posh/99a7daafe54c5905a3d1b0eff691b5c602ad6d8d/src/cljs/haunting_refrain/datascript/seed.cljs
clojure
search string. Every randomly-selected field is a single datum, which we use to search music providers for songs. We store these datums as seeds and hang a list of songs off of them. When the checkin list is shuffled, we re-generate seeds for any fields we haven't seen yet. If a field already exists, just update t...
(ns haunting-refrain.datascript.seed (:require [shodan.console :as console] [datascript.core :as d] [haunting-refrain.model.input :as input] [haunting-refrain.datascript.util :as u])) Every checkin has a list of fields , one of which can be selected at random to use as a (defn ...
0debb74d024d6bdb909efdaf69cdefe11d87d9bcbdc1b8f9eaa9973e8b3154f5
ragkousism/Guix-on-Hurd
llvm.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2014 , 2016 < > Copyright © 2015 < > Copyright © 2015 , 2017 < > Copyright © 2016 < > Copyright © 2016 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under th...
null
https://raw.githubusercontent.com/ragkousism/Guix-on-Hurd/e951bb2c0c4961dc6ac2bda8f331b9c4cee0da95/gnu/packages/llvm.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2014 , 2016 < > Copyright © 2015 < > Copyright © 2015 , 2017 < > Copyright © 2016 < > Copyright © 2016 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / ...
f49b0fa2f6d7333b2cfb08d9f4009cf790258aed4236db652af421c4e4a5e0f9
ShamoX/cash
signal_3_9.ml
(***********************************************************************) (* Cash *) (* *) , projet Cristal , INRIA Rocquencourt (* ...
null
https://raw.githubusercontent.com/ShamoX/cash/aa97231154c3f64c9d0a62823e1ed71e32ab8718/signal_3_9.ml
ocaml
********************************************************************* Cash under the terms of the GNU Lesser Gene...
, projet Cristal , INRIA Rocquencourt Copyright 2002 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed Cash is based on , by . value signal_process proc = Unix.kill proc.Procobj.p_i...
c91fbb70f7e90ecac1433bace2c943ff398fd46b0e109c83665780bffbd5045a
erdos/stencil
util_test.clj
(ns stencil.util-test (:require [clojure.test :refer [deftest testing is are]] [clojure.zip :as zip] [stencil.util :refer :all])) (deftest stacks-difference-test (testing "Empty cases" (is (= [[] []] (stacks-difference-key identity nil nil))) (is (= [[] []] (stacks-difference-key id...
null
https://raw.githubusercontent.com/erdos/stencil/a7dc048dbe57f1d7ffe2ef8b34e44ba9422258f8/test/stencil/util_test.clj
clojure
(ns stencil.util-test (:require [clojure.test :refer [deftest testing is are]] [clojure.zip :as zip] [stencil.util :refer :all])) (deftest stacks-difference-test (testing "Empty cases" (is (= [[] []] (stacks-difference-key identity nil nil))) (is (= [[] []] (stacks-difference-key id...
28fd98df037fe60766a14c8a64976f8ad3755f30b3dc5d9f9c194b4a0cc42a33
exoscale/clojure-kubernetes-client
extensions_v1beta1_se_linux_strategy_options.clj
(ns clojure-kubernetes-client.specs.extensions-v1beta1-se-linux-strategy-options (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1-se-linux-options :refer :all] ) (:import (java.io File))) (declare extensions-v1beta1-se-linux...
null
https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/extensions_v1beta1_se_linux_strategy_options.clj
clojure
(ns clojure-kubernetes-client.specs.extensions-v1beta1-se-linux-strategy-options (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1-se-linux-options :refer :all] ) (:import (java.io File))) (declare extensions-v1beta1-se-linux...
ebedf29aeeee9dcd5f2ed0ace3a9b6b9727b0193eebeefab5a6baaafdd8d1934
tomjridge/tjr_simple_earley
misc.ml
let iter_opt (f:'a -> 'a option) = let rec loop x = match f x with | None -> x | Some x -> loop x in fun x -> loop x let rev_filter_map f xs = ([],xs) |> iter_opt (function | _,[] -> None | xs',x::xs -> f x |> function | None -> Some(xs',xs) | Some y -> Some(...
null
https://raw.githubusercontent.com/tomjridge/tjr_simple_earley/ca558e0e7f4ddba4cd6573bf180710cd02f25ba4/src/misc.ml
ocaml
let iter_opt (f:'a -> 'a option) = let rec loop x = match f x with | None -> x | Some x -> loop x in fun x -> loop x let rev_filter_map f xs = ([],xs) |> iter_opt (function | _,[] -> None | xs',x::xs -> f x |> function | None -> Some(xs',xs) | Some y -> Some(...
84a5239ebe32819f944f6445d9443ae9a47050924d9f46734de3894f6c485d34
oliyh/superlifter
project.clj
(defproject example "0.0.1-SNAPSHOT" :description "An example use of superlifter for lacinia" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.10.1"] [io.pedestal/pedestal.service "0.5.7"] [io.pedestal/pedesta...
null
https://raw.githubusercontent.com/oliyh/superlifter/d0baf9538f1dac712415323a2f2a6578c181bd97/example/project.clj
clojure
(defproject example "0.0.1-SNAPSHOT" :description "An example use of superlifter for lacinia" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.10.1"] [io.pedestal/pedestal.service "0.5.7"] [io.pedestal/pedesta...
517d93ff675b8cb4f704c6d1d2c8bd9e18b76d370acf815f3a6f64adb0bf344b
tisnik/clojure-examples
dependencies.clj
{[clojure-complete "0.2.5" :exclusions [[org.clojure/clojure]]] nil, [nrepl "0.7.0" :exclusions [[org.clojure/clojure]]] nil, [org.clojure/clojure "1.10.1"] {[org.clojure/core.specs.alpha "0.2.44"] nil, [org.clojure/spec.alpha "0.2.176"] nil}, [seesaw "1.4.5"] {[com.fifesoft/rsyntaxtextarea "2.5.6"] nil, [com....
null
https://raw.githubusercontent.com/tisnik/clojure-examples/15a3bcbd5c4decffa3aa45f1faee127e2f65c7d7/seesaw6/doc/dependencies.clj
clojure
{[clojure-complete "0.2.5" :exclusions [[org.clojure/clojure]]] nil, [nrepl "0.7.0" :exclusions [[org.clojure/clojure]]] nil, [org.clojure/clojure "1.10.1"] {[org.clojure/core.specs.alpha "0.2.44"] nil, [org.clojure/spec.alpha "0.2.176"] nil}, [seesaw "1.4.5"] {[com.fifesoft/rsyntaxtextarea "2.5.6"] nil, [com....
1bb5f91fc828bab9755012a37c82ad7b1dd4e6c40bc84d848e635b591b1c4102
boris-ci/boris
test.hs
# LANGUAGE NoImplicitPrelude # import Control.Monad ((>>=), (>>), when, mapM) import Prelude (($), (.), not, all, id) import qualified System.Exit as Exit import System.IO (IO) import qualified System.IO as IO import qualified Test.Boris.Core.Data.Build import qualified Test.Boris.Core...
null
https://raw.githubusercontent.com/boris-ci/boris/c321187490afc889bf281442ac4ef9398b77b200/boris-core/test/test.hs
haskell
# LANGUAGE NoImplicitPrelude # import Control.Monad ((>>=), (>>), when, mapM) import Prelude (($), (.), not, all, id) import qualified System.Exit as Exit import System.IO (IO) import qualified System.IO as IO import qualified Test.Boris.Core.Data.Build import qualified Test.Boris.Core...
db61fe0731955a999c5385c88423611f8fea3788546f0d3bd13479f69b167dc0
pirapira/coq2rust
reductionops.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/pirapira/coq2rust/22e8aaefc723bfb324ca2001b2b8e51fcc923543/pretyping/reductionops.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * Reduction Functions. * Machinery ...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Names open Term open Con...
c344e1d277ae82300b8460dd334f4a7d99dd7fe9f46f01d614ee7c5274fd690a
ailisp/Graphic-Forms
scrolling-helper.lisp
(in-package :graphic-forms.uitoolkit.widgets) ;;; ;;; helper functions ;;; (defun clamp-scroll-pos (pos total-steps page-size) (setf pos (min pos (- total-steps page-size))) (max pos 0)) (defun update-scrollbar (scrollbar step-size detail) (let ((page-size (page-increment scrollbar)) (limit (outer-limi...
null
https://raw.githubusercontent.com/ailisp/Graphic-Forms/1e0723d07e1e4e02b8ae375db8f3d65d1b444f11/src/uitoolkit/widgets/scrolling-helper.lisp
lisp
helper functions recalculate client size on purpose methods
(in-package :graphic-forms.uitoolkit.widgets) (defun clamp-scroll-pos (pos total-steps page-size) (setf pos (min pos (- total-steps page-size))) (max pos 0)) (defun update-scrollbar (scrollbar step-size detail) (let ((page-size (page-increment scrollbar)) (limit (outer-limit scrollbar)) (curr-p...
9c51b8dccf841b1410c8c817f43db34fe737bc0aa426e6cb0aafa2b55db7d2e5
theodormoroianu/SecondYearCourses
LambdaChurch_20210415165424.hs
module LambdaChurch where import Data.Char (isLetter) import Data.List ( nub ) class ShowNice a where showNice :: a -> String class ReadNice a where readNice :: String -> (a, String) data Variable = Variable { name :: String , count :: Int } deriving (Show, Eq, Ord) var :: String -> Variable var ...
null
https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/5e359e6a7cf588a527d27209bf53b4ce6b8d5e83/FLP/Laboratoare/Lab%209/.history/LambdaChurch_20210415165424.hs
haskell
alpha-equivalence subst u x t defines [u/x]t, i.e., substituting u for x in t This substitution avoids variable captures so it is safe to be used when reducing terms with free variables (e.g., if evaluating inside lambda abstractions) ^ substitution term ^ variable to be substitutes ^ term in which the substit...
module LambdaChurch where import Data.Char (isLetter) import Data.List ( nub ) class ShowNice a where showNice :: a -> String class ReadNice a where readNice :: String -> (a, String) data Variable = Variable { name :: String , count :: Int } deriving (Show, Eq, Ord) var :: String -> Variable var ...
af69a2f8916ce24f4cbb2f6cb94491123cb7e09a8e1c4296368572c96b9f8f47
opencog/opencog
rules.scm
Copyright ( C ) 2016 OpenCog Foundation ; -------------------------------------------------------------- ; If you want to run this in guile without installing, 1 . run cmake in the build directory 2 . run ( add - to - load - path " /absolute / path / to / build / opencog / scm " ) ; ; NOTE: 1 . The context o...
null
https://raw.githubusercontent.com/opencog/opencog/53f2c2c8e26160e3321b399250afb0e3dbc64d4c/tests/openpsi/rules.scm
scheme
-------------------------------------------------------------- If you want to run this in guile without installing, NOTE: not make sense. differentiating and are not necessarily related with the number of tests. -------------------------------------------------------------- -------------------------------...
Copyright ( C ) 2016 OpenCog Foundation 1 . run cmake in the build directory 2 . run ( add - to - load - path " /absolute / path / to / build / opencog / scm " ) 1 . The context of the rules are created so as to test possible generic patterns during application development , thus the semantics might ...
61d1c509ec65b7303c5a9582b8064f65aa463a0b115f229d46cbc12f4637fd74
OCamlPro/ocplib-endian
endianBigstring.cppo.mli
(************************************************************************) (* ocplib-endian *) (* *) (* Copyright 2012 OCamlPro *) (* ...
null
https://raw.githubusercontent.com/OCamlPro/ocplib-endian/4f9fc814497b09da84f94ddf85cb20c9777887c2/src/endianBigstring.cppo.mli
ocaml
********************************************************************** ocplib-endian Copyright 2012 OCamlPro ...
Public License as published by the Free Software Foundation ; either version 2.1 of the License , or ( at your option ) any later version , open Bigarray type bigstring = (char, int8_unsigned_elt, c_layout) Array1.t module type EndianBigstringSig = sig * Functions reading according to Big Endian byte order ...
9cd5c331a3f39db276f10dc033ea54b366df8212775430eb482355a2a18653c0
afiniate/aws_async
sqs_deletemessage.ml
open Core.Std open Async.Std open Deferred.Result.Monad_infix type result = {request_id:String.t} with sexp let parse_result xml_string = let open Result.Monad_infix in Sqs_xml.expect_dtd @@ Xmlm.make_input (`String (0, xml_string)) >>= Sqs_xml.expect_tag ~name:"DeleteMessageResponse" >>= Sqs_util.parse_respo...
null
https://raw.githubusercontent.com/afiniate/aws_async/44c27bf9f18f76e9e6405c2252098c4aa3d9a8bc/lib/sqs/sqs_deletemessage.ml
ocaml
open Core.Std open Async.Std open Deferred.Result.Monad_infix type result = {request_id:String.t} with sexp let parse_result xml_string = let open Result.Monad_infix in Sqs_xml.expect_dtd @@ Xmlm.make_input (`String (0, xml_string)) >>= Sqs_xml.expect_tag ~name:"DeleteMessageResponse" >>= Sqs_util.parse_respo...
635cda74e2089da9746ba5d95b98ef92dbf314151d206744b84c278368899a6f
haskell-compat/base-compat
Compat.hs
# LANGUAGE CPP , NoImplicitPrelude , PackageImports # #if __GLASGOW_HASKELL__ >= 708 # LANGUAGE PatternSynonyms # #endif -- | This uses the @OneTuple@ compatibility library to backport 'Solo' to old versions of GHC . Note that @OneTuple@ makes use of pattern synonyms , which can not be defined on pre-7.8 versions o...
null
https://raw.githubusercontent.com/haskell-compat/base-compat/e18c4664d784542505966a7610bbac43652afda6/base-compat-batteries/src/Data/Tuple/Compat.hs
haskell
| This uses the @OneTuple@ compatibility library to backport 'Solo' to old @OneTuple@ defines this as a pattern synonym.
# LANGUAGE CPP , NoImplicitPrelude , PackageImports # #if __GLASGOW_HASKELL__ >= 708 # LANGUAGE PatternSynonyms # #endif versions of GHC . Note that @OneTuple@ makes use of pattern synonyms , which can not be defined on pre-7.8 versions of GHC . As such , it is not feasible to backport the @Solo@ data constructor...
6595a729956fdc140bff2bdf235f8c3a6e87cffdd10365dadd797ea2ae974183
takikawa/racket-clojure
string.rkt
#lang racket/base ;; String functions (module+ test (require rackunit)) (define upper-case string-upcase) (define lower-case string-downcase) ;; String -> String capitalize the first character and down the rest (define (capitalize str) (cond [(= (string-length str) 0) str] [(= (string-length st...
null
https://raw.githubusercontent.com/takikawa/racket-clojure/6a65b4348770dee984bd6fe8d0e33445887fff17/clojure/string.rkt
racket
String functions String -> String
#lang racket/base (module+ test (require rackunit)) (define upper-case string-upcase) (define lower-case string-downcase) capitalize the first character and down the rest (define (capitalize str) (cond [(= (string-length str) 0) str] [(= (string-length str) 1) (string-upcase str)] ...
0978b6738d4e4f21482989e1eefdd3afde21ecf64271561b8f1ab583e22ffccc
mfelleisen/RacketSchool
5-form.rkt
#lang racket (require "gui.rkt" "ops.rkt") (provide form (rename-out [boolean-widget boolean] [money-widget money] [-/coerce -] [>/coerce >] [</coerce <] [=/coerce =] ...
null
https://raw.githubusercontent.com/mfelleisen/RacketSchool/ada599f31d548a538a37d998b32d80aa881d699a/Plan/ql/5-form.rkt
racket
create a container show the container container widget label guard set value
#lang racket (require "gui.rkt" "ops.rkt") (provide form (rename-out [boolean-widget boolean] [money-widget money] [-/coerce -] [>/coerce >] [</coerce <] [=/coerce =] ...
fcaa4aa9c490458017bbd050c923077bd0cf2d6c8d8b0cb73fa27f925fcbee2a
quchen/articles
HindleyMilner.hs
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE OverloadedLists # {-# LANGUAGE OverloadedStrings #-} -- | This module is an extensively documented walkthrough for typechecking a basic functional language using the - Damas - Milner algorithm . -- -- ...
null
https://raw.githubusercontent.com/quchen/articles/8d5ca414b10d22b418b6b3d1fd57e8d45cef1486/hindley-milner/src/HindleyMilner.hs
haskell
# LANGUAGE OverloadedStrings # | This module is an extensively documented walkthrough for typechecking a In the end, we'll be able to infer the type of expressions like @ find (λx. (>) x 0) :: [Integer] -> Either () Integer @ It can be used in multiple different forms: * The source is written in...
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE OverloadedLists # basic functional language using the - Damas - Milner algorithm . * The output yields a nice overview over the definitions given , with a nice rendering of a truckload of comments . ...
625fb4b74ccb6da4860b92bc5ecb45c868a7859a48bdc4807263389ba814c3bb
ariesteam/aries
varprop.clj
Copyright 2010 ;;; ;;; This file is part of clj-misc. ;;; ;;; clj-misc is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , ;;; or (at your option) any later version. ;;; ;;; ...
null
https://raw.githubusercontent.com/ariesteam/aries/b3fafd4640f4e7950fff3791bc4ea4c06ee4dcdf/plugins/org.integratedmodelling.aries.core/bindings/clojure/clj_misc/varprop.clj
clojure
This file is part of clj-misc. clj-misc is free software: you can redistribute it and/or modify or (at your option) any later version. clj-misc is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ...
Copyright 2010 it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , You should have received a copy of the GNU General Public License (ns clj-misc.varprop (:use [clj-misc.utils :only [replace-all my-partition-all]]) (:import...
2c9e3b56e9a12553b6111ef9379b5bba9b3e96ff16d2bbd728afe0f265acf61a
deadtrickster/prometheus.cl
summary.lisp
(in-package :prometheus.test) (plan 2) (subtest "Simple Summary" (subtest "Errors & Validations" (is-error-report (prom:summary.observe nil "qwe") prom:invalid-value-error "Value \"qwe\" is invalid. Reason: value is not a number") (is-error-report (prom:make-summary :name "qwe" :help "" :value 12 :labels '(...
null
https://raw.githubusercontent.com/deadtrickster/prometheus.cl/60572b793135e8ab5a857d47cc1a5fe0af3a2d53/t/prometheus/summary.lisp
lisp
(in-package :prometheus.test) (plan 2) (subtest "Simple Summary" (subtest "Errors & Validations" (is-error-report (prom:summary.observe nil "qwe") prom:invalid-value-error "Value \"qwe\" is invalid. Reason: value is not a number") (is-error-report (prom:make-summary :name "qwe" :help "" :value 12 :labels '(...
f00a0694af32c9277305a78d377471948aacd1e678df0e3c28b7b1691f017542
tfausak/blunt
Main.hs
module Main (module Blunt) where import Blunt (main)
null
https://raw.githubusercontent.com/tfausak/blunt/a44af0e06138bae94d7fd51330eb5602e7f3d5a3/executable/Main.hs
haskell
module Main (module Blunt) where import Blunt (main)
43f1322fefc8dc6aa8519ef90f7dba8ea2f8ffa0019c4abf84eae569754bed19
facebook/pyre-check
log.ml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/pyre-check/c03d27aceea9f2ed911a18a81615721614c32b31/source/log.ml
ocaml
TODO(T132410158) Add a module-level doc comment.
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
3086de5992f28b19f06e44a4126b3df1d0b3ade222f90859ea4cf409ca08c3d1
apache/couchdb-couch
couch_passwords.erl
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not % use this file except in compliance with the License. You may obtain a copy of % the License at % % -2.0 % % Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an " A...
null
https://raw.githubusercontent.com/apache/couchdb-couch/21c8d37ac6ee1a7fed1de1f54f95a4d3cd9f5248/src/couch_passwords.erl
erlang
use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations...
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not distributed under the License is distributed on an " AS IS " BASIS , WITHOUT -module(couch_passwords). -export([simple/2, pbkdf2/3, pbkdf2/4, verify/2]). -export([hash_admin_password/1, get_unhashed_admins/0]). -include_lib("couch/...
7263d780e3a662d449497bc4fa4a28764dbaca486fa736afe505a83a5dcae3ae
GaloisInc/pads-haskell
Pnm.hs
# LANGUAGE TypeSynonymInstances , TemplateHaskell , QuasiQuotes , MultiParamTypeClasses , FlexibleInstances , DeriveDataTypeable , NamedFieldPuns , ScopedTypeVariables # module Pnm where import qualified Data.Char as Char import Language.Pads.Padsc import Control.Monad _ws = one_or_more Char.isSpace where one_or_mor...
null
https://raw.githubusercontent.com/GaloisInc/pads-haskell/ffa01030cd1c1edf5f50df53f3783ff28bf43c7e/Examples/Pnm.hs
haskell
whitespace whitespace output as \n fields should be separated by whitespace
# LANGUAGE TypeSynonymInstances , TemplateHaskell , QuasiQuotes , MultiParamTypeClasses , FlexibleInstances , DeriveDataTypeable , NamedFieldPuns , ScopedTypeVariables # module Pnm where import qualified Data.Char as Char import Language.Pads.Padsc import Control.Monad _ws = one_or_more Char.isSpace where one_or_mor...
c28802519f3a1d62dc4bcfcab375d1dd815ebcaab1a34c5e2959fd05b755f929
jobjo/popper
search.mli
type 'a result = { num_attempts : int ; num_explored : int ; node : 'a } module type Config = sig type t val max_tries : int val compare : t -> t -> int val keep : t -> t option val modify : t -> t Random.t end module type S = sig type t val search : t -> t result Random.t end module Make (C ...
null
https://raw.githubusercontent.com/jobjo/popper/33da372946d1d842f75994e086fa81c8cf62986e/src/lib/search.mli
ocaml
type 'a result = { num_attempts : int ; num_explored : int ; node : 'a } module type Config = sig type t val max_tries : int val compare : t -> t -> int val keep : t -> t option val modify : t -> t Random.t end module type S = sig type t val search : t -> t result Random.t end module Make (C ...
ce0fd033b23920526ea44383ddb1706c765d0a9c8804425ba056cd78b4cea6dd
stchang/macrotypes
dep-ind-cur2+eq.rkt
#lang s-exp "dep-ind-cur2.rkt" (require (only-in turnstile+ struct #%app- void- define-typed-syntax ⇒ ⇐ ≫ ⊢ ≻) "dep-ind-cur2+sugar.rkt") eq lib for (provide = eq-refl eq-elim) ;; equality ------------------------------------------------------------------- (struct =- (l r) #:transparent) (define-typed-s...
null
https://raw.githubusercontent.com/stchang/macrotypes/05ec31f2e1fe0ddd653211e041e06c6c8071ffa6/turnstile-example/turnstile/examples/dep/dep-ind-cur2%2Beq.rkt
racket
equality ------------------------------------------------------------------- eq-elim: t : T P : (T -> Type) pt : (P t) w : T -> (P w)
#lang s-exp "dep-ind-cur2.rkt" (require (only-in turnstile+ struct #%app- void- define-typed-syntax ⇒ ⇐ ≫ ⊢ ≻) "dep-ind-cur2+sugar.rkt") eq lib for (provide = eq-refl eq-elim) (struct =- (l r) #:transparent) (define-typed-syntax (= t1 t2) ≫ [⊢ t1 ≫ t1- ⇒ ty] [⊢ t2 ≫ t2- ⇐ ty] --------------------...
64446f5ee59f5b06f2bda3375b7c0b962e6b3146b4ad0ca024c102ed6b976f1d
heyoka/faxe
esp_bottom.erl
Date : 09.12.16 - 18:02 Ⓒ 2016 heyoka -module(esp_bottom). -author("Alexander Minichmair"). -include("faxe.hrl"). -behavior(esp_stats). %% API -export([execute/2, options/0]). options() -> esp_stats:get_options() ++ [{num, integer, 1},{module, atom, ?MODULE}]. execute({Tss, Values}, #{num := Num}) when is_l...
null
https://raw.githubusercontent.com/heyoka/faxe/e539afe8b62790a6037914751deef7d815be11a2/apps/faxe/src/components/stats/esp_bottom.erl
erlang
API
Date : 09.12.16 - 18:02 Ⓒ 2016 heyoka -module(esp_bottom). -author("Alexander Minichmair"). -include("faxe.hrl"). -behavior(esp_stats). -export([execute/2, options/0]). options() -> esp_stats:get_options() ++ [{num, integer, 1},{module, atom, ?MODULE}]. execute({Tss, Values}, #{num := Num}) when is_list(Val...
1498fe7a373a2c4f2c0fd7db477dd4a572a37b3a8209fa198ec6bb9e3ebc9392
amnh/PCG
Tree.hs
{-# LANGUAGE DerivingStrategies #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # {-# LANGUAGE TypeSynonymInstances #-} module Test.Custom.Tree ( SimpleTree() , createBinary , createCherry , createSimpleTree...
null
https://raw.githubusercontent.com/amnh/PCG/3a1b6bdde273ed4dc09717623986e1144b006904/lib/core/data-structures/src/Test/Custom/Tree.hs
haskell
# LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # # LANGUAGE TypeSynonymInstances # ^ Root node reference ^ Alphabet symbols ^ (Node Reference, sequence of dynamic characters, child nodes) , ("TotalCost " <>) <$> h dTotalCost where (x:y:zs) = lines shown :: ...
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # module Test.Custom.Tree ( SimpleTree() , createBinary , createCherry , createSimpleTree , simpleTreeCharacterDecorationEqualityAssertion ) where import Bio.Character.Encodable import qualif...
ed87e9c9976d53f0336994c3d4db514f9a96cb1b0af6b1500bfc2c7a818f18a0
ocaml-explore/explore
explore.ml
module Collection = Collection module Page = Page module Build = Build module Files = Files module Toc = Toc module Utils = Utils
null
https://raw.githubusercontent.com/ocaml-explore/explore/117768b378959f18a8d818f37779a750e90f3438/explore/lib/explore.ml
ocaml
module Collection = Collection module Page = Page module Build = Build module Files = Files module Toc = Toc module Utils = Utils
03aa4566457311a17bff1211da2bc0726f4f999bca835931405e9316a6cd07a0
dizzyd/retest
retest_SUITE.erl
-module(retest_SUITE). -compile([export_all]). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). init_per_testcase(_Func, Config) -> Config. end_per_testcase(_Func, Config) -> Config. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% suite() -> []. a...
null
https://raw.githubusercontent.com/dizzyd/retest/6b33038bd4df4aab1dc15bb59076512ba8fbb113/test/retest_SUITE.erl
erlang
-module(retest_SUITE). -compile([export_all]). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). init_per_testcase(_Func, Config) -> Config. end_per_testcase(_Func, Config) -> Config. suite() -> []. all() -> [basic_run, basic_run_all_args, directory_does_not_exist, ...