_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
dea4d5f28f2f3ec530a103b231b5a0abaa526a97a7f07bc461fc2b21d2a23166
eugeneia/athens
trivial-utf-8.lisp
;;; Minimal utf-8 decoding and encoding library. ;;; ;;; See -lisp.net/project/trivial-utf-8/ (defpackage :cl-postgres-trivial-utf-8 (:use :common-lisp) (:export #:utf-8-byte-length #:string-to-utf-8-bytes #:write-utf-8-bytes #:utf-8-group-size #:utf-8-bytes-to-string ...
null
https://raw.githubusercontent.com/eugeneia/athens/cc9d456edd3891b764b0fbf0202a3e2f58865cbf/quicklisp/dists/quicklisp/software/postmodern-20180711-git/cl-postgres/trivial-utf-8.lisp
lisp
Minimal utf-8 decoding and encoding library. See -lisp.net/project/trivial-utf-8/
(defpackage :cl-postgres-trivial-utf-8 (:use :common-lisp) (:export #:utf-8-byte-length #:string-to-utf-8-bytes #:write-utf-8-bytes #:utf-8-group-size #:utf-8-bytes-to-string #:read-utf-8-string #:utf-8-decoding-error)) (in-package :cl-postgres-tri...
d6ce97c9b58b5db76cfbf93123785f5ce981eaced3f8b0b842cf26b53b8a49a6
facebook/infer
loc.mli
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
null
https://raw.githubusercontent.com/facebook/infer/b3a229f872003fe020455807668bc7a8edd22d5c/sledge/src/llair/loc.mli
ocaml
* Source code debug locations * Pathnames are printed relative to [root] if set.
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
531f1f3bb9b9f9f88cf05d46a4e32b59ac86ad4bc7cbf82a8f250241a97169c6
ssadler/piped
BenchPipes.hs
{-# LANGUAGE BangPatterns #-} module BenchPipes where import Data.Function (fix) import Control.Monad import Piped import Piped.Internal import Piped.Prelude as P import Gauge.Main import Prelude hiding (scanl, foldl, dropWhile, takeWhile) benchPipes = bgroup "pipes" [ bgroup "sinkNull" [ bench "monadic" $ w...
null
https://raw.githubusercontent.com/ssadler/piped/036c064d93f3d37f834c522a6e59c5baf44fdb6e/piped/test-bench/BenchPipes.hs
haskell
# LANGUAGE BangPatterns # ] # INLINE foldl' # foldl' f start = Pipe $ \rest -> fix1 start $ \next !s l r -> runAwait l (rest termLeft r s) $ \i l -> next (f s i) l r
module BenchPipes where import Data.Function (fix) import Control.Monad import Piped import Piped.Internal import Piped.Prelude as P import Gauge.Main import Prelude hiding (scanl, foldl, dropWhile, takeWhile) benchPipes = bgroup "pipes" [ bgroup "sinkNull" [ bench "monadic" $ whnfAppIO (runSink sinkNullM) 1...
b5be2a71d5e85fb6bd550bb7377f7aa91a0fa0b432915c4157beee06af29b30c
rtoy/ansi-cl-tests
hash-table-test.lsp
;-*- Mode: Lisp -*- Author : Created : Fri Nov 28 05:56:22 2003 ;;;; Contains: Tests for HASH-TABLE-TEST (in-package :cl-test) (deftest hash-table-test.1 (hash-table-test (make-hash-table)) eql) (deftest hash-table-test.2 (loop for test in '(eq eql equal equalp) unless (eq (hash-table-te...
null
https://raw.githubusercontent.com/rtoy/ansi-cl-tests/9708f3977220c46def29f43bb237e97d62033c1d/hash-table-test.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests for HASH-TABLE-TEST Error cases
Author : Created : Fri Nov 28 05:56:22 2003 (in-package :cl-test) (deftest hash-table-test.1 (hash-table-test (make-hash-table)) eql) (deftest hash-table-test.2 (loop for test in '(eq eql equal equalp) unless (eq (hash-table-test (make-hash-table :test test)) test) collect test) ni...
67eab7e2b7d683c570edcc8638c9b2aea3606a826513483e4f3b9650b72d540e
naveensundarg/prover
jepd-relations.lisp
;;; -*- Mode: Lisp; Syntax: Common-Lisp; Package: snark -*- File : jepd-relations.lisp The contents of this file are subject to the Mozilla Public License ;;; Version 1.1 (the "License"); you may not use this file except in ;;; compliance with the License. You may obtain a copy of the License at ;;; / ;;; Softwar...
null
https://raw.githubusercontent.com/naveensundarg/prover/812baf098d8bf77e4d634cef4d12de94dcd1e113/snark-20120808r02/src/jepd-relations.lisp
lisp
-*- Mode: Lisp; Syntax: Common-Lisp; Package: snark -*- Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing right...
File : jepd-relations.lisp The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is SNARK . The Initial Developer of the Original Code is SRI International . Portions created by the Initial Developer are Co...
8e93e208f4974b1b436d0152ca3328271e1eb5c4ab98dcbb23d9327ca4c4c56e
cyverse-archive/DiscoveryEnvironmentBackend
constants.clj
(ns mescal.agave-de-v2.constants) (def hpc-app-type "External") (def hpc-group-description "Apps that run on HPC resources.") (def hpc-group-name "High-Performance Computing") (def hpc-group-id "00000000-0000-0000-0000-000000000001") (def unknown-value "UNKNOWN") (def hpc-group-overview {:id hpc-group-id :name...
null
https://raw.githubusercontent.com/cyverse-archive/DiscoveryEnvironmentBackend/7f6177078c1a1cb6d11e62f12cfe2e22d669635b/libs/mescal/src/mescal/agave_de_v2/constants.clj
clojure
(ns mescal.agave-de-v2.constants) (def hpc-app-type "External") (def hpc-group-description "Apps that run on HPC resources.") (def hpc-group-name "High-Performance Computing") (def hpc-group-id "00000000-0000-0000-0000-000000000001") (def unknown-value "UNKNOWN") (def hpc-group-overview {:id hpc-group-id :name...
ff50e722c52e7ab0714f178044e0523e0d525335a82614bffc21aa06accae18f
mveety/lispmake
options.lisp
(in-package :lispmake) lispmake , written by , et al . ( c ) 2012 - 2021 . Under BSD License . (defvar *cmd-options* nil) (defvar *lmfname* *lmakefile*) (defparameter *variables* (list 'prefix "/usr/local" 'bindir "" 'libdir "" 'etcdir "" 'target "" 'cwd "" 'default-mode '(:user-read :user-exec ...
null
https://raw.githubusercontent.com/mveety/lispmake/3eb4e8ac280de3c31b4826424093b11c7dbbf289/options.lisp
lisp
this is still a shitshow, but a bit more contained. if the arg doesn't have an = sign, then assume it's a target remove trailing slash from prefix if it exists
(in-package :lispmake) lispmake , written by , et al . ( c ) 2012 - 2021 . Under BSD License . (defvar *cmd-options* nil) (defvar *lmfname* *lmakefile*) (defparameter *variables* (list 'prefix "/usr/local" 'bindir "" 'libdir "" 'etcdir "" 'target "" 'cwd "" 'default-mode '(:user-read :user-exec ...
96891f6a93ba0b7313153de0080be2487487071fac4c99cdc1fc4a74c2fa747c
fyquah/hardcaml_zprize
controller.ml
open! Base open! Hardcaml module Make (Config : Core_config.S) = struct module Var = Always.Variable let logn = Config.logn let support_4step_twiddle = Config.support_4step_twiddle module I = struct type 'a t = { clock : 'a ; clear : 'a ; start : 'a ; first_iter : 'a ; first...
null
https://raw.githubusercontent.com/fyquah/hardcaml_zprize/553b1be10ae9b977decbca850df6ee2d0595e7ff/libs/hardcaml_ntt/src/controller.ml
ocaml
open! Base open! Hardcaml module Make (Config : Core_config.S) = struct module Var = Always.Variable let logn = Config.logn let support_4step_twiddle = Config.support_4step_twiddle module I = struct type 'a t = { clock : 'a ; clear : 'a ; start : 'a ; first_iter : 'a ; first...
d45f9ad4582e30266d7ad16220ca1436a07f29786b4f249d1a7c0033c53aed0b
snowleopard/alga
Generic.hs
# LANGUAGE RecordWildCards , ViewPatterns # ----------------------------------------------------------------------------- -- | -- Module : Algebra.Graph.Test.Generic Copyright : ( c ) 2016 - 2022 License : MIT ( see the file LICENSE ) -- Maintainer : -- Stability : experimental -- -- Generic graph API...
null
https://raw.githubusercontent.com/snowleopard/alga/32b1dbe8b76aea6b042b1ec4508d67564700186f/test/Algebra/Graph/Test/Generic.hs
haskell
--------------------------------------------------------------------------- | Module : Algebra.Graph.Test.Generic Maintainer : Stability : experimental Generic graph API testing. --------------------------------------------------------------------------- Make sure we hit the precondition TODO: We currentl...
# LANGUAGE RecordWildCards , ViewPatterns # Copyright : ( c ) 2016 - 2022 License : MIT ( see the file LICENSE ) module Algebra.Graph.Test.Generic where import Control.Monad (when) import Data.Either import Data.List (nub, sort) import Data.List.NonEmpty (NonEmpty (..)) import Data.Tree import Data.Tuple ...
e9cc44a925d6d8f4ad1974c46e4adcdbcadfc2b3683ef21131eea4f2d07c60f1
KavehYousefi/Esoteric-programming-languages
main.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; This program implements an interpreter for the esoteric programming language " Jackass " , presented by the Esolang user " Phase " in the year 2015 , being , while inspired by Urban Mueller 's " brainfuck " , composed ;; of hexadecimal ...
null
https://raw.githubusercontent.com/KavehYousefi/Esoteric-programming-languages/0545c5eb03da2ac067dfe32a35df0bc6ce019cea/Jackass/Jackass_001/main.lisp
lisp
This program implements an interpreter for the esoteric programming of hexadecimal tokens only which apply themselves to the manipulation of a stack. Instructions ============ a global stack's manipulation, each represented by a hexadecimal code The instruction set's circumference registers a wide gamut...
language " Jackass " , presented by the Esolang user " Phase " in the year 2015 , being , while inspired by Urban Mueller 's " brainfuck " , composed Jackass 's competence founds upon fifteen instructions reponsible for compact of one or more base-16 digits . 03 | Swaps the two top stack elements ' po...
afb2d85b713192bd1aae6a5b42547aee8dbbc37109b44f466c0089286b1c01a5
erlang-ls/erlang_ls
els_prepare_rename_provider.erl
-module(els_prepare_rename_provider). -behaviour(els_provider). -export([ handle_request/1 ]). %%============================================================================== %% Includes %%============================================================================== -include_lib("kernel/include/logger.hrl"). ...
null
https://raw.githubusercontent.com/erlang-ls/erlang_ls/fc00bd4c0fd3793270aca59d861299ced0fdb648/apps/els_lsp/src/els_prepare_rename_provider.erl
erlang
============================================================================== Includes ============================================================================== ============================================================================== Defines ================================================================...
-module(els_prepare_rename_provider). -behaviour(els_provider). -export([ handle_request/1 ]). -include_lib("kernel/include/logger.hrl"). -spec handle_request(any()) -> {response, any()}. handle_request({prepare_rename, Params0}) -> #{ <<"textDocument">> := #{<<"uri">> := Uri}, <<"position...
d0dac8169ff68088e1d124159866017f59034267df87651406079747a029ff4e
incoherentsoftware/defect-process
Audio.hs
module Configs.All.Settings.Audio ( AudioConfig(..) ) where import Data.Aeson.Types (FromJSON, genericParseJSON, parseJSON) import GHC.Generics (Generic) import Audio.Volume import Util import World.Audio.LayeredMusic.Types data AudioConfig = AudioConfig { _soundsEnabled :: Bool ...
null
https://raw.githubusercontent.com/incoherentsoftware/defect-process/15f2569e7d0e481c2e28c0ca3a5e72d2c049b667/src/Configs/All/Settings/Audio.hs
haskell
module Configs.All.Settings.Audio ( AudioConfig(..) ) where import Data.Aeson.Types (FromJSON, genericParseJSON, parseJSON) import GHC.Generics (Generic) import Audio.Volume import Util import World.Audio.LayeredMusic.Types data AudioConfig = AudioConfig { _soundsEnabled :: Bool ...
79c29ea4c2b4db69ffc6c4dccc6ed00272cae3a4b09ad998f67d6c12d426384b
mmottl/postgresql-ocaml
discover.ml
open Printf let find_number ~pos str = let len = String.length str in let rec skip_other ~pos = if pos = len then pos else match str.[pos] with | '0'..'9' -> pos | _ -> skip_other ~pos:(pos + 1) in let pos = skip_other ~pos in let rec loop ~pos = if pos = len then [], pos el...
null
https://raw.githubusercontent.com/mmottl/postgresql-ocaml/7c0c90119d09cc72d6296538b40d312c81486732/src/config/discover.ml
ocaml
Can also handle release candidates
open Printf let find_number ~pos str = let len = String.length str in let rec skip_other ~pos = if pos = len then pos else match str.[pos] with | '0'..'9' -> pos | _ -> skip_other ~pos:(pos + 1) in let pos = skip_other ~pos in let rec loop ~pos = if pos = len then [], pos el...
23a82b6320f944b99be6d255cdec4a27a99c3c835cd57c8a4db8923cc46d258e
slepher/astranaut
sample_plus.erl
%%%------------------------------------------------------------------- @author < > ( C ) 2020 , %%% @doc %%% %%% @end Created : 9 Jul 2020 by < > %%%------------------------------------------------------------------- -module(sample_plus). %% API -export([plus/2]). plus(A, B) -> A + B. %%--------...
null
https://raw.githubusercontent.com/slepher/astranaut/7d832eb4f8b71346caa37c9f081c7d73900d7135/test/astranaut_uniplate_SUITE_data/sample_plus.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- API -------------------------------------------------------------------- @doc @end -------------------------------------------------------------------- ================...
@author < > ( C ) 2020 , Created : 9 Jul 2020 by < > -module(sample_plus). -export([plus/2]). plus(A, B) -> A + B. Internal functions
d60576399c756f5c87a51a79e9d1e14708c0d468e3ccb285585e1a7ce4f06252
kmicinski/htltl2mc
program.ml
type id = string type exp = | Const of int | Id of id | Plus of exp * exp | Sub of exp * exp | Mul of exp * exp | Div of exp * exp | Lt of exp * exp | Gt of exp * exp | Eq of exp * exp | Not of exp | And of exp * exp type cmd = | Skip | Asn of id * exp | Seq ...
null
https://raw.githubusercontent.com/kmicinski/htltl2mc/5b949db7f3d849d3f9b943f84c3ce065ccfaa7e3/src/program.ml
ocaml
Enumeration of the store: id, level, width, value A program is a list of variables associated with levels and widths
type id = string type exp = | Const of int | Id of id | Plus of exp * exp | Sub of exp * exp | Mul of exp * exp | Div of exp * exp | Lt of exp * exp | Gt of exp * exp | Eq of exp * exp | Not of exp | And of exp * exp type cmd = | Skip | Asn of id * exp | Seq ...
03ae5e4756e9475d69cd33f4262695a824b8216798ba71dc0f936d93b9eb4abc
inhabitedtype/bigstringaf
discover.ml
open Configurator.V1 let get_warning_flags t = match ocaml_config_var t "ccomp_type" with | Some "msvc" -> ["/Wall"; "/W3"] | _ -> ["-Wall"; "-Wextra"; "-Wpedantic"] let () = main ~name:"discover" (fun t -> let wflags = get_warning_flags t in Flags.write_sexp "cflags.sexp" wflags)
null
https://raw.githubusercontent.com/inhabitedtype/bigstringaf/800885f4d1df2fe3cc478ba1007c77cf511cca8b/lib/config/discover.ml
ocaml
open Configurator.V1 let get_warning_flags t = match ocaml_config_var t "ccomp_type" with | Some "msvc" -> ["/Wall"; "/W3"] | _ -> ["-Wall"; "-Wextra"; "-Wpedantic"] let () = main ~name:"discover" (fun t -> let wflags = get_warning_flags t in Flags.write_sexp "cflags.sexp" wflags)
554eb4ad04c3b3818d552ad9a258cfcd75a6eee81fac54f373b3c5c482b20e48
exercism/babashka
project.clj
(defproject elyses-destructured-enchantments "0.1.0-SNAPSHOT" :description "elyses-destructured-enchantments exercise." :url "-destructured-enchantments" :dependencies [[org.clojure/clojure "1.10.0"]])
null
https://raw.githubusercontent.com/exercism/babashka/707356c52e08490e66cb1b2e63e4f4439d91cf08/exercises/concept/elyses-destructured-enchantments/project.clj
clojure
(defproject elyses-destructured-enchantments "0.1.0-SNAPSHOT" :description "elyses-destructured-enchantments exercise." :url "-destructured-enchantments" :dependencies [[org.clojure/clojure "1.10.0"]])
457770ecd94f78a090a8b643d0d454c8a593931dc14beab74ab266a4dcd32f30
ghcjs/ghcjs-boot
Enum.hs
# LANGUAGE Trustworthy # # LANGUAGE CPP , NoImplicitPrelude , BangPatterns , MagicHash # {-# OPTIONS_HADDOCK hide #-} ----------------------------------------------------------------------------- -- | Module : Copyright : ( c ) The University of Glasgow , 1992 - 2002 -- License : see libraries/b...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-boot/8c549931da27ba9e607f77195208ec156c840c8a/boot/base/GHC/Enum.hs
haskell
# OPTIONS_HADDOCK hide # --------------------------------------------------------------------------- | License : see libraries/base/LICENSE Maintainer : Stability : internal --------------------------------------------------------------------------- Double isn't available yet | The 'Bounded' class i...
# LANGUAGE Trustworthy # # LANGUAGE CPP , NoImplicitPrelude , BangPatterns , MagicHash # Module : Copyright : ( c ) The University of Glasgow , 1992 - 2002 Portability : non - portable ( GHC extensions ) The ' ' and ' Bounded ' classes . #include "MachDeps.h" module GHC.Enum( Bounded...
648f03cc29987a68f7eb8ce47d593159efefc4eefcebb289f3e4681ec0d2323b
evilmartians/foundry
pa_utf8str.ml
open Camlp4 module Id = struct let name = "pa_utf8str" let version = "1.0" end module Make (Syntax : Sig.Camlp4Syntax) = struct open Sig include Syntax EXTEND Gram GLOBAL: expr; expr: LEVEL "simple" [ [ s = STRING -> <:expr< (Unicode.assert_utf8s $str:s$) >> | c = CHAR ->...
null
https://raw.githubusercontent.com/evilmartians/foundry/ce947c7dcca79ab7a7ce25870e9fc0eb15e9c2bd/vendor/ucs/lib/pa_utf8str.ml
ocaml
open Camlp4 module Id = struct let name = "pa_utf8str" let version = "1.0" end module Make (Syntax : Sig.Camlp4Syntax) = struct open Sig include Syntax EXTEND Gram GLOBAL: expr; expr: LEVEL "simple" [ [ s = STRING -> <:expr< (Unicode.assert_utf8s $str:s$) >> | c = CHAR ->...
6157a9cb3b93c931a27bcfb901e123bf7dca12dbed8769b3c0b30d5b6ca76f1c
clojurians-org/haskell-example
APICommon.hs
-- MinIO Haskell SDK , ( C ) 2018 MinIO , Inc. -- Licensed under the Apache License , Version 2.0 ( the " License " ) ; -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- -2.0 -- -- Unless required by applicable law or agreed to in writing, softw...
null
https://raw.githubusercontent.com/clojurians-org/haskell-example/c96b021bdef52a121e04ea203c8c3e458770a25a/minio-migration/src/Network/Minio/APICommon.hs
haskell
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing per...
MinIO Haskell SDK , ( C ) 2018 MinIO , Inc. Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , module Network.Minio.APICommon where import Data.Conduit.Binary (sourceHandleRange) import qualified Network.HTTP...
05ab1364173d0a0ba1d16af33f0bfa53be784208885766e9bebe7cc0d684ec96
RyanGlScott/text-show-instances
Haskeline.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # # OPTIONS_GHC -Wno - orphans # | Module : TextShow . System . Console . Haskeline Copyright : ( C ) 2014 - 2017 License : BSD - style ( see the file LICENSE ) Maintainer : Stability : Provisional Portability : GHC '...
null
https://raw.githubusercontent.com/RyanGlScott/text-show-instances/b08f4b46466cdc3c3f3c979b7a0abf5590fa2916/src/TextShow/System/Console/Haskeline.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE TemplateHaskell # # OPTIONS_GHC -Wno - orphans # | Module : TextShow . System . Console . Haskeline Copyright : ( C ) 2014 - 2017 License : BSD - style ( see the file LICENSE ) Maintainer : Stability : Provisional Portability : GHC ' TextShow ' instances for data type...
0767f502d7a3e6eeda288302c1fd17c35e5f95424cf96626ac8f61467067da13
clojusc/meson
shell.clj
(ns meson.util.shell "Some convenience/utility functions used for making calls in the system shell." (:require [clojure.java.shell :as shell] [clojure.string :as string] [taoensso.timbre :as log])) (defn shell ([cmd-str] (shell cmd-str nil nil)) ([cmd-str out-fn err-fn] (log/d...
null
https://raw.githubusercontent.com/clojusc/meson/a690135bf64c967a70fd45e88bdfed1e7b847317/src/meson/util/shell.clj
clojure
(ns meson.util.shell "Some convenience/utility functions used for making calls in the system shell." (:require [clojure.java.shell :as shell] [clojure.string :as string] [taoensso.timbre :as log])) (defn shell ([cmd-str] (shell cmd-str nil nil)) ([cmd-str out-fn err-fn] (log/d...
a6740cf4d7dd249a5f58f43986070fd691332e60b8b0f935b3ab7922120e077a
purescript/purescript
ModuleDependencies.hs
-- | Provides the ability to sort modules based on module dependencies module Language.PureScript.ModuleDependencies ( DependencyDepth(..) , sortModules , ModuleGraph , ModuleSignature(..) , moduleSignature ) where import Protolude hiding (head) import Data.Array ((!)) import ...
null
https://raw.githubusercontent.com/purescript/purescript/7767c9fe45d465c8fbe18c85ae2bb62c91822c0d/src/Language/PureScript/ModuleDependencies.hs
haskell
| Provides the ability to sort modules based on module dependencies | A list of modules with their transitive dependencies | A module signature for sorting dependencies. | Sort a collection of modules based on module dependencies. Reports an error if the module graph contains a cycle. | Calculate a list of used ...
module Language.PureScript.ModuleDependencies ( DependencyDepth(..) , sortModules , ModuleGraph , ModuleSignature(..) , moduleSignature ) where import Protolude hiding (head) import Data.Array ((!)) import Data.Graph import qualified Data.Set as S import Language.Pu...
e03df2840fee10fff655d4d3e5f4db0a9fbeeb8f4380a665b167f1a312c3d66c
khmelevskii/emotion-cljs
helpers.cljs
(ns emotion.helpers (:require [cljs-bean.core :refer [->js ->clj]] ["@emotion/react" :as emotion-react] ["@emotion/styled" :as styled] ["@emotion/cache" :default create-cache] ["@emotion/server/create-instance" :default create-emotion-server] ["react" :as react] ["react-dom/server" :as server])) ...
null
https://raw.githubusercontent.com/khmelevskii/emotion-cljs/4baaccfa19c0808e11f3a8e838f62ac6382b8860/test/emotion/helpers.cljs
clojure
(ns emotion.helpers (:require [cljs-bean.core :refer [->js ->clj]] ["@emotion/react" :as emotion-react] ["@emotion/styled" :as styled] ["@emotion/cache" :default create-cache] ["@emotion/server/create-instance" :default create-emotion-server] ["react" :as react] ["react-dom/server" :as server])) ...
bae01f2481531c8a2bab670571ef61fa139af4d19106c9dfc94204892feb61fc
wireless-net/erlang-nommu
snmp_conf.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1996 - 2013 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pu...
null
https://raw.githubusercontent.com/wireless-net/erlang-nommu/79f32f81418e022d8ad8e0e447deaea407289926/lib/snmp/src/misc/snmp_conf.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limit...
Copyright Ericsson AB 1996 - 2013 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(snmp_conf). Avoid warning for l...
08e483c5b6ade7e03ff963ee66c150ee70c313d6a4b1a1a50e52339ac65b450d
mstksg/advent-of-code-2022
Day15.hs
{-# OPTIONS_GHC -Wno-unused-imports #-} {-# OPTIONS_GHC -Wno-unused-top-binds #-} -- | -- Module : AOC.Challenge.Day15 -- License : BSD3 -- -- Stability : experimental -- Portability : non-portable -- Day 15 . See " AOC.Solver " for the types used in this module ! -- -- After completing the challenge, i...
null
https://raw.githubusercontent.com/mstksg/advent-of-code-2022/de9ceee002d3a62746468492c746b8d7ca3fc8a0/src/AOC/Challenge/Day15.hs
haskell
# OPTIONS_GHC -Wno-unused-imports # # OPTIONS_GHC -Wno-unused-top-binds # | Module : AOC.Challenge.Day15 License : BSD3 Stability : experimental Portability : non-portable After completing the challenge, it is recommended to: * Replace "AOC.Prelude" imports to specific modules (with explicit ...
Day 15 . See " AOC.Solver " for the types used in this module ! solution . You can delete the type signatures completely and GHC module AOC.Challenge.Day15 ( ) where import AOC.Prelude import qualified Data.Graph.Inductive as G import qualified Data.IntMap as IM import qualified Data.IntSet as IS imp...
76f8314e23c02425b564f76da63ac86f201c0f6b5df5c41a80bb1cc8cb7745b3
well-typed-lightbulbs/ocaml-esp32
ccomp.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/well-typed-lightbulbs/ocaml-esp32/c24fcbfbee0e3aa6bb71c9b467c60c6bac326cc7/utils/ccomp.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 val command: string -> int val run_command: string -> unit val compile_file: ?output:string -> ?opt:st...
2a820ade3fee0c2ce4b382a8818ce4f84bc19f104bbd86d40ce415ec493fc4a3
LeventErkok/sbv
Deduce.hs
----------------------------------------------------------------------------- -- | Module : . Uninterpreted . Deduce Copyright : ( c ) -- License : BSD3 -- Maintainer: -- Stability : experimental -- Bench suite for Documentation . SBV.Examples . Uninterpreted . Deduce ---------------...
null
https://raw.githubusercontent.com/LeventErkok/sbv/be4d7260187067a71ef8af18006e74698e2a565b/SBVBenchSuite/BenchSuite/Uninterpreted/Deduce.hs
haskell
--------------------------------------------------------------------------- | License : BSD3 Maintainer: Stability : experimental ---------------------------------------------------------------------------
Module : . Uninterpreted . Deduce Copyright : ( c ) Bench suite for Documentation . SBV.Examples . Uninterpreted . Deduce # OPTIONS_GHC -Wall -Werror -fno - warn - orphans # # LANGUAGE ScopedTypeVariables # module BenchSuite.Uninterpreted.Deduce(benchmarks) where import Documentation...
e619be9e382a35b4442b5f943ef2fd5b36c91bfe63fb112a286663f093b74f1c
haskell-works/hw-dsv
ColumnDesc.hs
{-# LANGUAGE DataKinds #-} # LANGUAGE DeriveFunctor # {-# LANGUAGE DeriveGeneric #-} # LANGUAGE DuplicateRecordFields # # LANGUAGE OverloadedStrings # # LANGUAGE TypeApplications # module App.Data.ColumnDesc ( ColumnDesc(..) , realiseColumnDescLazy , realiseColumnDescStric...
null
https://raw.githubusercontent.com/haskell-works/hw-dsv/4f1274af383281589165232186f99219479d7898/app/App/Data/ColumnDesc.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric #
# LANGUAGE DeriveFunctor # # LANGUAGE DuplicateRecordFields # # LANGUAGE OverloadedStrings # # LANGUAGE TypeApplications # module App.Data.ColumnDesc ( ColumnDesc(..) , realiseColumnDescLazy , realiseColumnDescStrict , columnDescToTuple ) where import Control.Lens import Data.Generics.Pr...
32a40029d89b4327d9696f6c55fb2772cd1ee2ac271c91788f70b45592873c7b
arttuka/reagent-material-ui
folder_copy_outlined.cljs
(ns reagent-mui.icons.folder-copy-outlined "Imports @mui/icons-material/FolderCopyOutlined as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def folder-copy-outli...
null
https://raw.githubusercontent.com/arttuka/reagent-material-ui/c7cd0d7c661ab9df5b0aed0213a6653a9a3f28ea/src/icons/reagent_mui/icons/folder_copy_outlined.cljs
clojure
(ns reagent-mui.icons.folder-copy-outlined "Imports @mui/icons-material/FolderCopyOutlined as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def folder-copy-outli...
87a46e71f39b8ae3b246404fc17bd4966fe4ccc599f43b0341d339ddcfbe8395
clojerl/clojerl
rbdict.erl
Copyright ( c ) 2008 . All rights reserved . %% %% Redistribution and use in source and binary forms, with or without %% modification, are permitted provided that the following conditions %% are met: %% 1 . Redistributions of source code must retain the above copyright %% notice, this list of conditions and th...
null
https://raw.githubusercontent.com/clojerl/clojerl/5b412b87de13811b5a6ee4d82329d6a44dc499f0/src/erl/rbdict.erl
erlang
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: notice, this list of conditions and the following disclaimer. notice, this list of conditions and the following disclaimer in the documentation and/or other mat...
Copyright ( c ) 2008 . All rights reserved . 1 . Redistributions of source code must retain the above copyright 2 . Redistributions in binary form must reproduce the above copyright " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT COPYRIGHT HOLDERS OR FOR ANY DIRECT , INDIRECT , IN...
49ac2a9f56bb676020406ce23ba3170211e2c4f4f681c4fe2dfd6064f315bfa9
Elzair/nazghul
trigrave-zones.scm
;;---------------------------------------------------------------------------- Zones for 's Hut ;; ;; A zone is a rectangle formatted as: ;; (upper-left-corner-x upper-left-corner-y width height) ;;---------------------------------------------------------------------------- (define (mk-zone x y w h) (list 'p_tr...
null
https://raw.githubusercontent.com/Elzair/nazghul/8f3a45ed6289cd9f469c4ff618d39366f2fbc1d8/worlds/haxima-1.001/trigrave-zones.scm
scheme
---------------------------------------------------------------------------- A zone is a rectangle formatted as: (upper-left-corner-x upper-left-corner-y width height) ----------------------------------------------------------------------------
Zones for 's Hut (define (mk-zone x y w h) (list 'p_trigrave x y w h)) (define trigrave-chants-bed (mk-zone 12 6 1 1)) (define trigrave-forge (mk-zone 25 4 5 5)) (define trigrave-jims-bed (mk-zone 25 11 1 1)) (define trigrave-tavern-hall (mk-zone 18 23 8 6)) (define trigrave-t...
f97cb2f1bed93aa4e813e2ea0922130a54a15576a2b84fa36ab2c1e239dc5ce7
pyr/cyanite
dsl_test.clj
(ns io.cyanite.dsl-test (:require [io.cyanite.query.parser :as parser] [io.cyanite.query.path :as path] [clojure.test :refer :all])) (deftest ast-test (let [inputs [["simple path" "foo" [:path "foo"] #{"foo"}] ...
null
https://raw.githubusercontent.com/pyr/cyanite/2b9a1f26df808abdad3465dd1946036749b93000/test/io/cyanite/dsl_test.clj
clojure
(ns io.cyanite.dsl-test (:require [io.cyanite.query.parser :as parser] [io.cyanite.query.path :as path] [clojure.test :refer :all])) (deftest ast-test (let [inputs [["simple path" "foo" [:path "foo"] #{"foo"}] ...
543b9ace50041e0a71ab57bf8db25818b937eaa90a666c166cc480a2e5298efa
brendanhay/amazonka
ListCertificates.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # {-# LANGUAGE StrictData #-} # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - binds # # OPTIONS_GHC -fno - warn - unused -...
null
https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-transfer/gen/Amazonka/Transfer/ListCertificates.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated Returns a list of the current certificates that have been imported into Transfer Family. If you want to limit the results to a certain number, previously and received a value for the @NextToken@ parameter, you can supply that v...
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - binds # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - unused - matches # De...
aa3a4114842a32b515b77d3e6a19c6479854e46953593b878f7fe18166d29e9c
ogaml/ogaml
context.ml
exception Invalid_context of string type capabilities = { max_3D_texture_size : int; max_array_texture_layers : int; max_color_texture_samples : int; max_cube_map_texture_size : int; max_depth_texture_samples : int; max_elements_indices : int; max_elements_vertices : int; max_integer_...
null
https://raw.githubusercontent.com/ogaml/ogaml/5e74597521abf7ba2833a9247e55780eabfbab78/src/graphics/backend/context.ml
ocaml
A bit ugly, but Invalid_enum occurs sometimes even if a feature is supported...
exception Invalid_context of string type capabilities = { max_3D_texture_size : int; max_array_texture_layers : int; max_color_texture_samples : int; max_cube_map_texture_size : int; max_depth_texture_samples : int; max_elements_indices : int; max_elements_vertices : int; max_integer_...
2321173b725c291b5e30b9d34eaaf75bbce6b83e7e631696b9a9efc01cb1a114
hemmi/coq2scala
evar_tactics.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/hemmi/coq2scala/d10f441c18146933a99bf2088116bd213ac3648d/coq-8.4pl2-old/tactics/evar_tactics.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** The instantiate tactic
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Term open Util open Evar...
96c9d83ba146cd3fdece3c1fa66fe76d18608354d7687602e68593a606c063b1
arenadotio/pgx
pgx_async.mli
* Async based Postgres client based on Pgx . open Async_kernel include Pgx.S with type 'a Io.t = 'a Deferred.t and type Io.ssl_config = Conduit_async.Ssl.config (* for testing purposes *) module Thread : Pgx.Io with type 'a t = 'a Deferred.t (** Like [execute] but returns a pipe so you can operate on the ...
null
https://raw.githubusercontent.com/arenadotio/pgx/cdef3ff4eba56ea9b2a74c2b3bbfe652b4864a39/pgx_async/src/pgx_async.mli
ocaml
for testing purposes * Like [execute] but returns a pipe so you can operate on the results before they have all returned. Note that [execute_iter] and [execute_fold] can perform significantly better because they don't have as much overhead. * Exposed for backwards compatiblity. New code should use [Pgx_value...
* Async based Postgres client based on Pgx . open Async_kernel include Pgx.S with type 'a Io.t = 'a Deferred.t and type Io.ssl_config = Conduit_async.Ssl.config module Thread : Pgx.Io with type 'a t = 'a Deferred.t val execute_pipe : ?params:Pgx.row -> t -> string -> Pgx.row Pipe.Reader.t module Value = ...
f09d9f23d1024ea2a41b04669f91420018b58072b39dc80c7d3e5613854acdc1
senapk/funcional_arcade
solver.hs
max3 x y z = max z $ max x y
null
https://raw.githubusercontent.com/senapk/funcional_arcade/70fa04b4799d5a8c7e5add39d9f217f38f418600/base/001/solver.hs
haskell
max3 x y z = max z $ max x y
88d1797a92fb8aa79e2999f2d16f5d3cca0e6c173459b66e6d7a0a73d12cf61b
kqqsysu/ssdb-erlang
ssdb.erl
%%% @author ( C ) 2015 , kongqingquan @doc SSDB erlang client %%% @end Created : 2015.05.01 %%%------------------------------------------------------------------- -module(ssdb). -author(""). -include("ssdb.hrl"). -export([start/0,start/2,start/3,start/4,start/5,start/6]). -export([query/1, query/2, query/3...
null
https://raw.githubusercontent.com/kqqsysu/ssdb-erlang/158b5b494794f241eded66a1ad04d97e9303975b/src/ssdb.erl
erlang
@author @end ------------------------------------------------------------------- Cmd: 'dbsize','ping','qset','getbit','setbit','countbit','strlen','set','setx','setnx','zset','hset','qpush','qpush_front','qpush_back','qtrim_front','qtrim_back','del','zdel','hdel','hsize','zsize','qsize','hclear','zclear','qclear','...
( C ) 2015 , kongqingquan @doc SSDB erlang client Created : 2015.05.01 -module(ssdb). -author(""). -include("ssdb.hrl"). -export([start/0,start/2,start/3,start/4,start/5,start/6]). -export([query/1, query/2, query/3]). start()-> start("localhost",8888). start(Host,Port) -> PoolSize = 5, star...
a139ad59984e7bd668c04b5003ef7612c035c12ab9bf75f2982807c6f2edd909
qfpl/reflex-tutorial
Exercise.hs
# LANGUAGE CPP # # LANGUAGE RecursiveDo # {-# LANGUAGE OverloadedStrings #-} module Ex10.Exercise where import Control.Monad.Fix (MonadFix) import Data.Text (Text) import qualified Data.Map as Map import Reflex import Reflex.Dom.Core #ifndef ghcjs_HOST_OS import Util.Run #endif import Ex10.Common import Ex10.Run ...
null
https://raw.githubusercontent.com/qfpl/reflex-tutorial/07c1e6fab387cbeedd031630ba6a5cd946cc612e/code/exercises/src/Ex10/Exercise.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE CPP # # LANGUAGE RecursiveDo # module Ex10.Exercise where import Control.Monad.Fix (MonadFix) import Data.Text (Text) import qualified Data.Map as Map import Reflex import Reflex.Dom.Core #ifndef ghcjs_HOST_OS import Util.Run #endif import Ex10.Common import Ex10.Run grid :: MonadWidget t m => m a...
e22f46f605ef4f4d6411a5ad7c48dfb211ba1b3cb12a6ed571ef7bc5b378a764
GNOME/gimp-tiny-fu
comic-logo.scm
; GIMP - The GNU Image Manipulation Program Copyright ( C ) 1995 and ; ; This program 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 ve...
null
https://raw.githubusercontent.com/GNOME/gimp-tiny-fu/a64d85eec23b997e535488d67f55b44395ba3f2e/scripts/comic-logo.scm
scheme
GIMP - The GNU Image Manipulation Program This program is free software: you can redistribute it and/or modify either version 3 of the License , or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of ...
Copyright ( C ) 1995 and 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 Comic Book Logo v0.1 04/08/98 by Creates snazzy - looking text , inspired by watching a Maxx marathon :) (define (apply-comic-logo-effec...
3dbab3a1bc6419cf1c7898b188507d532a4f27a0d429ef2e74024f444b9a221e
ocsigen/tuto
tuto.ml
open Eliom_content.Html5.D open Eliom_parameter (* Services *) let main_service = Eliom_service.service ~path:[""] ~get_params:unit () let user_service = Eliom_service.service ~path:["users"] ~get_params:(suffix (string "name")) () let connection_service = Eliom_service.post_service ~fallback:main_servic...
null
https://raw.githubusercontent.com/ocsigen/tuto/5fbde05a5d496b184d4ecde75ffebd33873acac5/tutos/2.2/manual/files/tutorial/chapter2/tuto.ml
ocaml
Services User names and passwords: Page widgets: Registration of services
open Eliom_content.Html5.D open Eliom_parameter let main_service = Eliom_service.service ~path:[""] ~get_params:unit () let user_service = Eliom_service.service ~path:["users"] ~get_params:(suffix (string "name")) () let connection_service = Eliom_service.post_service ~fallback:main_service ~post_par...
9624cfc2283ee161d274d37dc2708378a6c9cafe95a9622471f63304a0613cb8
onedata/op-worker
view_test_SUITE.erl
%%%------------------------------------------------------------------- @author ( C ) 2018 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%%-------------------------------------------------------------------- %%% @doc Basic tests of couchbase views . %%% @end %%...
null
https://raw.githubusercontent.com/onedata/op-worker/239b30c6510ccf0f2f429dc5c48ecf04d192549a/test_distributed/view_test_SUITE.erl
erlang
------------------------------------------------------------------- -------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- API export for ct tests macros =================================================================== ...
@author ( C ) 2018 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . Basic tests of couchbase views . -module(view_test_SUITE). -author("Jakub Kudzia"). -include("modules/fslogic/fslogic_common.hrl"). -include("modules/logical_file_manager/lfm.hrl"). -include_lib(...
3beab1703a756cfeb1d6b6c756125fa3cdb718af905701ff9baf29b02ea89fef
aryx/xix
cmd.ml
s : version_control / cmd.ml (*s: type [[Cmd.t]] *) type t = { name: string; usage: string; options: (Arg.key * Arg.spec * Arg.doc) list; (* the command! *) f: string list -> unit; (* less: man: when do git -help get short help, and with --help man page *) } (*e: type [[Cmd.t]] *) (*s: exception [[Cmd.Sh...
null
https://raw.githubusercontent.com/aryx/xix/60ce1bd9a3f923e0e8bb2192f8938a9aa49c739c/version_control/cmd.ml
ocaml
s: type [[Cmd.t]] the command! less: man: when do git -help get short help, and with --help man page e: type [[Cmd.t]] s: exception [[Cmd.ShowUsage]] e: exception [[Cmd.ShowUsage]]
s : version_control / cmd.ml type t = { name: string; usage: string; options: (Arg.key * Arg.spec * Arg.doc) list; f: string list -> unit; } Cmd.f can raise ShowUsage . It will be catched by Main.main exception ShowUsage e : version_control / cmd.ml
6f408ca6f41f870d2e4416d11a973d03fde821468754bc683e003133c81b8ea8
shirok/Gauche
u64.scm
(define-module srfi.160.u64 (extend gauche.uvector.u64))
null
https://raw.githubusercontent.com/shirok/Gauche/ecaf82f72e2e946f62d99ed8febe0df8960d20c4/lib/srfi/160/u64.scm
scheme
(define-module srfi.160.u64 (extend gauche.uvector.u64))
30e5b8a4272911851834eec6699b0d56fb0ea88a72f81b62c8990729defa4a57
rm-hull/wireframes
platonic_solids.clj
(ns wireframes.shapes.platonic-solids (:require [wireframes.shapes.primitives :as p] [wireframes.transform :as t])) (def epsilon 0.00001) (defn- =approx [^double x ^double y] (< (Math/abs (- x y)) epsilon)) (def sqrt-2 (Math/sqrt 2)) (def sqrt-5 (Math/sqrt 5)) (def rho (/ (inc sqrt-5) 2)) (def -rho ...
null
https://raw.githubusercontent.com/rm-hull/wireframes/7df78cc6e2040cd0de026795f2e63ad129e4fee5/src/clj/wireframes/shapes/platonic_solids.clj
clojure
(ns wireframes.shapes.platonic-solids (:require [wireframes.shapes.primitives :as p] [wireframes.transform :as t])) (def epsilon 0.00001) (defn- =approx [^double x ^double y] (< (Math/abs (- x y)) epsilon)) (def sqrt-2 (Math/sqrt 2)) (def sqrt-5 (Math/sqrt 5)) (def rho (/ (inc sqrt-5) 2)) (def -rho ...
f33a166cf8b1b4fc571844732e244b5c458a1f77e6aa05cae900a710ab578450
haskell-tools/haskell-tools
Checkers.hs
module Language.Haskell.Tools.Refactor.Builtin.ExtensionOrganizer.Checkers ( module X ) where import Language.Haskell.Tools.Refactor.Builtin.ExtensionOrganizer.Checkers.ArrowsChecker as X import Language.Haskell.Tools.Refactor.Builtin.ExtensionOrganizer.Checkers.BangPatternsChecker as X...
null
https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/builtin-refactorings/Language/Haskell/Tools/Refactor/Builtin/ExtensionOrganizer/Checkers.hs
haskell
module Language.Haskell.Tools.Refactor.Builtin.ExtensionOrganizer.Checkers ( module X ) where import Language.Haskell.Tools.Refactor.Builtin.ExtensionOrganizer.Checkers.ArrowsChecker as X import Language.Haskell.Tools.Refactor.Builtin.ExtensionOrganizer.Checkers.BangPatternsChecker as X...
45f113c9b04b9a34a460e6969ae0db11da633ad74c638f2fa0b3876e4f6b70b2
amnh/PCG
generate-random-sequence.hs
{-# LANGUAGE BangPatterns #-} {-# LANGUAGE DeriveFoldable #-} {-# LANGUAGE DeriveFunctor #-} {-# LANGUAGE DeriveTraversable #-} {-# LANGUAGE DerivingStrategies #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariab...
null
https://raw.githubusercontent.com/amnh/PCG/3a1b6bdde273ed4dc09717623986e1144b006904/app/generate-random-sequence.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE DeriveFoldable # # LANGUAGE DeriveFunctor # # LANGUAGE DeriveTraversable # # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # # LANGUAGE OverloadedStrings #
# LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # module Main where import Control.Monad import Data.Alphabet import Data.Alphabet.IUPAC import qualified Data.Bimap as BM import Data.BitVector.LittleEndian import Data.Bits import ...
b8d182b290d5c645258749613c97b3e8576d87d9c1c66e71001da45fa7240910
rmascarenhas/foppl
core_test.clj
(ns foppl.core-test (:require [clojure.test :refer :all] [foppl.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
null
https://raw.githubusercontent.com/rmascarenhas/foppl/f3d7013c97652c8b555dae2bd7067e2b0134b030/test/foppl/core_test.clj
clojure
(ns foppl.core-test (:require [clojure.test :refer :all] [foppl.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
a0e8c87dfdadc8ea51ea9e901a706b3f36202579ecd25703c84d99ca1ee8a70a
imeckler/stationary
stationary.ml
module Html = Html module Attribute = Attribute module File = File module File_system = File_system module Site = Site
null
https://raw.githubusercontent.com/imeckler/stationary/d2d6c1c1ec7d6bea63736226a7e511c0e426c5e5/src/stationary.ml
ocaml
module Html = Html module Attribute = Attribute module File = File module File_system = File_system module Site = Site
d51763bb3558330a7827eb32e211a23ba388dbb145c5c21968b169f24a933070
evrim/core-server
http.lisp
(in-package :core-server) (defvar *dojo-url* "/dojo/dojo.js") (eval-always (defclass test-application (http-application) ())) (unregister core-server::*server* *app*) (eval-always (defparameter *app* (make-instance 'test-application :fqdn "test" :admin-email ""))) (register core-server::*serv...
null
https://raw.githubusercontent.com/evrim/core-server/200ea8151d2f8d81b593d605b183a9cddae1e82d/t/http.lisp
lisp
(describe command) (describe *context*) (<:head (<:script :src *dojo-url* :type "text/javascript")) (<:head (<:script :src *dojo-url* :type "text/javascript"))
(in-package :core-server) (defvar *dojo-url* "/dojo/dojo.js") (eval-always (defclass test-application (http-application) ())) (unregister core-server::*server* *app*) (eval-always (defparameter *app* (make-instance 'test-application :fqdn "test" :admin-email ""))) (register core-server::*serv...
35e6859ff37a3c57cf150704fedd41ebb1fbfc8cd5036c17cc644a0444121131
xxyzz/SICP
Exercise_3_69.rkt
#lang racket/base (require racket/stream) (require racket/list) (define (interleave s1 s2) (if (stream-empty? s1) s2 (stream-cons (stream-first s1) (interleave s2 (stream-rest s1))))) (define (pairs s t) (stream-cons (list (stream-first s) (stream-first t)) (interleave (st...
null
https://raw.githubusercontent.com/xxyzz/SICP/e26aea1c58fd896297dbf5406f7fcd32bb4f8f78/3_Modularity_Objects_and_State/3.5_Streams/Exercise_3_69.rkt
racket
#lang racket/base (require racket/stream) (require racket/list) (define (interleave s1 s2) (if (stream-empty? s1) s2 (stream-cons (stream-first s1) (interleave s2 (stream-rest s1))))) (define (pairs s t) (stream-cons (list (stream-first s) (stream-first t)) (interleave (st...
387b5bbdfb7cb5b1c48102b5a8e0846f58d1bf6be41806843a699fc0cdc593f4
B-Lang-org/bsc
IOUtil.hs
# LANGUAGE CPP # module IOUtil(progArgs, getEnvDef) where import System.Environment(getArgs,getEnv) import System.IO.Unsafe import qualified Control.Exception as CE # NOINLINE progArgs # progArgs :: [String] progArgs = unsafePerformIO $ do args <- getArgs bscopts <- getEnvDef "BSC_OPTIONS" "" return $ (words bs...
null
https://raw.githubusercontent.com/B-Lang-org/bsc/bd141b505394edc5a4bdd3db442a9b0a8c101f0f/src/comp/Libs/IOUtil.hs
haskell
# LANGUAGE CPP # module IOUtil(progArgs, getEnvDef) where import System.Environment(getArgs,getEnv) import System.IO.Unsafe import qualified Control.Exception as CE # NOINLINE progArgs # progArgs :: [String] progArgs = unsafePerformIO $ do args <- getArgs bscopts <- getEnvDef "BSC_OPTIONS" "" return $ (words bs...
738b04926c7b0c20b99f49ea23109042aa6a0195713f456c7c5ad47a8115734f
exoscale/clojure-kubernetes-client
v1_daemon_set_update_strategy.clj
(ns clojure-kubernetes-client.specs.v1-daemon-set-update-strategy (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1-rolling-update-daemon-set :refer :all] ) (:import (java.io File))) (declare v1-daemon-set-update-strategy-dat...
null
https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/v1_daemon_set_update_strategy.clj
clojure
(ns clojure-kubernetes-client.specs.v1-daemon-set-update-strategy (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1-rolling-update-daemon-set :refer :all] ) (:import (java.io File))) (declare v1-daemon-set-update-strategy-dat...
e1d76cd1abe17a0268eab8df958b6431fbd410136f301fa29f5fe41a39423334
masukomi/private_comments
comment-recording.import.scm
;;;; comment-recording.import.scm - GENERATED BY CHICKEN 5.2.0 -*- Scheme -*- (##sys#with-environment (lambda () (##sys#register-compiled-module 'comment-recording 'comment-recording (scheme#list) '((post-or-delete-comment . comment-recording#post-or-delete-comment) (prep-comment-...
null
https://raw.githubusercontent.com/masukomi/private_comments/9261d6a3349b2421e0f7c02790b852ab20d88c20/src/comment-recording.import.scm
scheme
comment-recording.import.scm - GENERATED BY CHICKEN 5.2.0 -*- Scheme -*-
(##sys#with-environment (lambda () (##sys#register-compiled-module 'comment-recording 'comment-recording (scheme#list) '((post-or-delete-comment . comment-recording#post-or-delete-comment) (prep-comment-info-alist . comment-recording#prep-comment-info-alist)) (scheme#list) ...
c9478a5c376643d16df3b760cce4cf7274c642d699260db65bbb4bd8fa15e2bd
cryptomeme/nario
BrokenBlock.hs
-- -*- mode: haskell; Encoding: UTF-8 -*- -- Broken block module Actor.BrokenBlock ( newBrokenBlock ) where import Actor (Actor(..)) import Const import AppUtil (putimg) import Images data BrokenBlock = BrokenBlock { x :: Int, y :: Int, vx :: Int, vy :: Int } instance Actor BrokenBlock where update _ self ...
null
https://raw.githubusercontent.com/cryptomeme/nario/5f1ef10a1530763e1d2f51d280266ba48dae0c26/Actor/BrokenBlock.hs
haskell
-*- mode: haskell; Encoding: UTF-8 -*- Broken block
module Actor.BrokenBlock ( newBrokenBlock ) where import Actor (Actor(..)) import Const import AppUtil (putimg) import Images data BrokenBlock = BrokenBlock { x :: Int, y :: Int, vx :: Int, vy :: Int } instance Actor BrokenBlock where update _ self = (self { x = x self + vx self, y = y self + vy self, vy = ...
73dfd161c3d4b955c78e054c2c3f21057404064042803609bde4fab6b28fd27b
ucsd-progsys/liquidhaskell
CyclicTypeAlias2.hs
@ LIQUID " --expect - error - containing = Cyclic type alias definition for ` CyclicC ` " @ module CyclicTypeAlias2 () where @ type CyclicC = [ CyclicC ] @
null
https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/f46dbafd6ce1f61af5b56f31924c21639c982a8a/tests/errors/CyclicTypeAlias2.hs
haskell
@ LIQUID " --expect - error - containing = Cyclic type alias definition for ` CyclicC ` " @ module CyclicTypeAlias2 () where @ type CyclicC = [ CyclicC ] @
3ab3a36f54953b745b0d2fd5a2a2030a335c41f5dd978f54750b902552730f54
gator1/jepsen
project.clj
(defproject block-e "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [jepsen "0.1.2"] [knossos "0.2.8"]])
null
https://raw.githubusercontent.com/gator1/jepsen/1932cbd72cbc1f6c2a27abe0fe347ea989f0cfbb/block-e/project.clj
clojure
(defproject block-e "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [jepsen "0.1.2"] [knossos "0.2.8"]])
4db5e7b9467cd719e43a5bec2fba681bb1433f78dde6a459920d4e7ec697b770
ChrisPenner/rasa
RangeSpec.hs
module Rasa.Internal.RangeSpec where import Test.Hspec import Test.Hspec.QuickCheck import Test.QuickCheck.Instances () import ArbitraryInstances () import Rasa.Internal.Range spec :: Spec spec = do describe "overRow" $ prop "overRow f ~= Coord (f a) b" $ \crd@(Coord r c) -> Coord (r+1) c `shouldBe` overRow (+...
null
https://raw.githubusercontent.com/ChrisPenner/rasa/a2680324849088ee92f063fab091de21c4c2c086/rasa/test/Rasa/Internal/RangeSpec.hs
haskell
module Rasa.Internal.RangeSpec where import Test.Hspec import Test.Hspec.QuickCheck import Test.QuickCheck.Instances () import ArbitraryInstances () import Rasa.Internal.Range spec :: Spec spec = do describe "overRow" $ prop "overRow f ~= Coord (f a) b" $ \crd@(Coord r c) -> Coord (r+1) c `shouldBe` overRow (+...
bb7f68d2c82befc3878c7831ba5e0f955ac71a81e0cf8effad4b8ba1770ba404
timbertson/vdoml
event_types_.ml
type response = [ | `Unhandled | `Handled | `Stop ] type 'msg result = { response : response; message: 'msg option; }
null
https://raw.githubusercontent.com/timbertson/vdoml/fcbf81e89df989206bdad4a92327e593078525b2/src/event_types_.ml
ocaml
type response = [ | `Unhandled | `Handled | `Stop ] type 'msg result = { response : response; message: 'msg option; }
5b69928806519a1b225923e1b7de50b2a1849b5c2bc320a631f3f96d75eb59c5
inhabitedtype/ocaml-aws
getDeployablePatchSnapshotForInstance.ml
open Types open Aws type input = GetDeployablePatchSnapshotForInstanceRequest.t type output = GetDeployablePatchSnapshotForInstanceResult.t type error = Errors_internal.t let service = "ssm" let signature_version = Request.V4 let to_http service region req = let uri = Uri.add_query_params (Uri.of_stri...
null
https://raw.githubusercontent.com/inhabitedtype/ocaml-aws/3bc554af7ae7ef9e2dcea44a1b72c9e687435fa9/libraries/ssm/lib/getDeployablePatchSnapshotForInstance.ml
ocaml
open Types open Aws type input = GetDeployablePatchSnapshotForInstanceRequest.t type output = GetDeployablePatchSnapshotForInstanceResult.t type error = Errors_internal.t let service = "ssm" let signature_version = Request.V4 let to_http service region req = let uri = Uri.add_query_params (Uri.of_stri...
2cd9356b4bacabe5cd045928320b7e1fc63b25a1feefde776b1854b951fadf78
gregr/ina
effect.scm
;; See: -effect.html (load "common.scm") (define (done datum) (vector 'done datum)) (define (done? v) (eq? 'done (vector-ref v 0))) (define (done-datum d) (vector-ref d 1)) (define (request details k) (vector 'request details k)) (define (request? v) (eq? 'request (vector-ref v 0))) (define (request-details r) (vecto...
null
https://raw.githubusercontent.com/gregr/ina/5e0a5b7ec44c8c9575b22ce5c394f7a96b766545/nscheme/old/old-experiments/effect.scm
scheme
See: -effect.html TODO: parse : syntax -> expr
(load "common.scm") (define (done datum) (vector 'done datum)) (define (done? v) (eq? 'done (vector-ref v 0))) (define (done-datum d) (vector-ref d 1)) (define (request details k) (vector 'request details k)) (define (request? v) (eq? 'request (vector-ref v 0))) (define (request-details r) (vector-ref r 1)) (define (...
fa8553ee1ea9fb1775c15d59c4d7711f9014613ab7fbf159de614908c3cc34d8
GaloisInc/jvm-verifier
MergeFrame.hs
| Module : Verifier . Java . MergeFrame Description : operators for manipulating merge frames in the simulator License : BSD3 Stability : stable Point - of - contact : acfoltzer Module : Verifier.Java.MergeFrame Description : operators for manipulating mer...
null
https://raw.githubusercontent.com/GaloisInc/jvm-verifier/3905dda18d0bdd5c595eef49804780f4a48c22f5/src/Verifier/Java/MergeFrame.hs
haskell
# DEPRECATED bottomMF "is there ever a good use of this?" # | Run a computation with the top 'MergeFrame'. If 'fst' of the after running. | Run a computation with the top 'SymPath' If 'fst' of the result is 'Just p', then 'p' will be pushed back on the top 'MergeFrame' after running. ------------------------------...
| Module : Verifier . Java . MergeFrame Description : operators for manipulating merge frames in the simulator License : BSD3 Stability : stable Point - of - contact : acfoltzer Module : Verifier.Java.MergeFrame Description : operators for manipulating mer...
153eaa1d8277acaa18d9e7b8a022552e87bd2c204c536b672e2d4e43af616490
janegca/htdp2e
Exercise-047-TrafficLight.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-beginner-reader.ss" "lang")((modname Exercise-047-TrafficLight) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp"...
null
https://raw.githubusercontent.com/janegca/htdp2e/2d50378135edc2b8b1816204021f8763f8b2707b/01-FixedSizeData/Exercise-047-TrafficLight.rkt
racket
about the language level of this file in a form that our tools can easily process. Design an interactive program that simulates a traffic light for a given duration. The program renders the state of a traffic light as a solid circle of the appropriate color, and it changes state on every clock tick. What is the m...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-reader.ss" "lang")((modname Exercise-047-TrafficLight) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp") (lib "universe.rkt" "teachpack" "2htdp"))) (htdp-settings #(#t constructor repeating...
2907879712c17a1b8b2a55b4392b4366b36a504f2b9bf5186fb4ee69e39c0ef7
simonmar/monad-par
issue_forkOmega.hs
import Control . Monad . IO.Class import Control . . Par . IO import Control . . Par . Class import Control . . Par . . Trace import Control.Monad.Par.Scheds.Direct import System.IO.Unsafe(unsafePerformIO) import System.IO foo :: Par Int foo = do fork $ loop 0 return 3 loop :: Integer -> Par...
null
https://raw.githubusercontent.com/simonmar/monad-par/1266b0ac1b4040963ab356cf032c6aae6b8a7add/tests/issue_forkOmega.hs
haskell
import Control . Monad . IO.Class import Control . . Par . IO import Control . . Par . Class import Control . . Par . . Trace import Control.Monad.Par.Scheds.Direct import System.IO.Unsafe(unsafePerformIO) import System.IO foo :: Par Int foo = do fork $ loop 0 return 3 loop :: Integer -> Par...
e1382dbaa512d3668e65b844f65aff618617f4c97ecfbfc918543ce078e559a9
moby/vpnkit
hosts.mli
val default_etc_hosts_path: string (** Default path where /etc/hosts should be on this machine *) val etc_hosts: (string * Ipaddr.t) list ref (** The current contents of the hosts file *) val of_string: string -> (string * Ipaddr.t) list * the contents of a hosts file module Make(Files: Sig.FILES): sig type watc...
null
https://raw.githubusercontent.com/moby/vpnkit/6039eac025e0740e530f2ff11f57d6d990d1c4a1/src/hostnet/hosts.mli
ocaml
* Default path where /etc/hosts should be on this machine * The current contents of the hosts file * Start watching the hosts file, updating the [etc_hosts] binding in the background. The [?path] argument allows the location of the hosts file to be overriden. This blocks until the watch has been establish...
val default_etc_hosts_path: string val etc_hosts: (string * Ipaddr.t) list ref val of_string: string -> (string * Ipaddr.t) list * the contents of a hosts file module Make(Files: Sig.FILES): sig type watch val watch: ?path:string -> unit -> (watch, [ `Msg of string ]) result Lwt.t val unwatch: watch -> uni...
390eeb9895c1ba495e3b6c4cfac627fbd07ccb16c6fb8a799ce101663e2c416b
qkrgud55/ocamlmulti
mtype.mli
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/qkrgud55/ocamlmulti/74fe84df0ce7be5ee03fb4ac0520fb3e9f4b6d1f/typing/mtype.mli
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : mtype.mli 11156 2011 - 07 - 2...
25c60b971e554f831157e5c3eb1b8a92ad53dc71e7c7f5ded7db5af6c5058dad
b0-system/b0
b00_pdf_viewer.mli
--------------------------------------------------------------------------- Copyright ( c ) 2018 The b0 programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 20...
null
https://raw.githubusercontent.com/b0-system/b0/cbe12b8a55da6b50ab01ed058b339dbed3cfe894/src/b00/kit/b00_pdf_viewer.mli
ocaml
* PDF viewer interaction. * Environment variables. * The type for specifying a PDF viewer.
--------------------------------------------------------------------------- Copyright ( c ) 2018 The b0 programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 20...
df9a70a6c1889543ca863b4827076efefd0d49b47bac505b8996b4b3ddf28848
samee/netlist
DemoCircuits.hs
Used only by Benchmark . Demo module Benchmark.DemoCircuits where import Control.Monad import Data.List import Debug.Trace import Circuit.Sorter import Circuit.NetList import qualified Circuit.Queue as Nq import qualified Circuit.Stack as Ns import Util TODO move this to NetList.hs if it is useful type NetCondM...
null
https://raw.githubusercontent.com/samee/netlist/9fc20829f29724dc1148e54bd64fefd7e70af5ba/Benchmark/DemoCircuits.hs
haskell
Given a set of points on the circumference of a circle, find the widest angle made by them at the center. All angles are scaled by a factor of maxTheta/(2*pi) to avoid use of floating point modDiff m a b assumes a <= b < maxtheta Naive O(n^2) comparison = Gc.bitwiseAnd a =<< Gc.sextend awidth (bitToInt bt) awidt...
Used only by Benchmark . Demo module Benchmark.DemoCircuits where import Control.Monad import Data.List import Debug.Trace import Circuit.Sorter import Circuit.NetList import qualified Circuit.Queue as Nq import qualified Circuit.Stack as Ns import Util TODO move this to NetList.hs if it is useful type NetCondM...
3846595445de32ad3a30a32f751e85d70ce69a2d03d0ba68f1d4f3ba5a1eb28a
uhc/uhc
ClassMonadic.hs
{-# OPTIONS -fglasgow-exts -fallow-undecidable-instances #-} ----------------------------------------------------------------------------- -- | License : GPL -- -- Maintainer : -- Stability : provisional -- Portability : non-portable (requires extensions) -----------------------------------------...
null
https://raw.githubusercontent.com/uhc/uhc/8eb6914df3ba2ba43916a1a4956c6f25aa0e07c5/EHC/src/top/Implementation/TypeGraph/ClassMonadic.hs
haskell
# OPTIONS -fglasgow-exts -fallow-undecidable-instances # --------------------------------------------------------------------------- | License : GPL Maintainer : Stability : provisional Portability : non-portable (requires extensions) ---------------------------------------------------------...
module Top.Implementation.TypeGraph.ClassMonadic where import Top.Interface.Basic import Top.Interface.TypeInference import Top.Interface.Qualification import qualified Top.Implementation.TypeGraph.Class as TG import Top.Implementation.TypeGraph.Basics import Top.Types import Top.Solver import qualified Data.Map as M...
54744e8b104b24b2b1893ed7e167688baa2f61e453a8391081edf79595f34f52
ktakashi/sagittarius-scheme
serializer.scm
-*- mode : scheme ; coding : utf-8 -*- serializer.scm - sxml serializer ported to Sagittarius by #!nobacktrace (library (text sxml serializer) (export srl:sxml->xml srl:sxml->xml-noindent srl:sxml->html srl:sxml->html-noindent srl:parameterizable srl:sxml->string srl:display-sxml...
null
https://raw.githubusercontent.com/ktakashi/sagittarius-scheme/8454886fad51fb12aa972c3e3a6ac3a0adca097d/sitelib/text/sxml/serializer.scm
scheme
coding : utf-8 -*- Partial conformance with [1] XSLT 2.0 and XQuery 1.0 Serialization -xslt-xquery-serialization-20051103/ This software is in Public Domain. Please send bug reports and comments to: Dmitry Lizorkin short for "serialization" Requires: function `filter' from SRFI-1 syntax `co...
serializer.scm - sxml serializer ported to Sagittarius by #!nobacktrace (library (text sxml serializer) (export srl:sxml->xml srl:sxml->xml-noindent srl:sxml->html srl:sxml->html-noindent srl:parameterizable srl:sxml->string srl:display-sxml srl:conventional-ns-prefixes Sagi...
6fc9add2db5a281d628c2db694d1830c5aa493588a7bfda96699356fca75a9e4
bufferswap/ViralityEngine
hash-table-nested.lisp
(in-package #:vutils) (defun ensure-nested-hash-table (table tests keys) "Walk down the nested hash table `TABLE` ensuring that we have the correct number of hash tables made (one less than the list of keys `KEYS`) with the correct tests, received from the list of tests `TESTS`. NOTE: The first element of `TESTS` is...
null
https://raw.githubusercontent.com/bufferswap/ViralityEngine/df7bb4dffaecdcb6fdcbfa618031a5e1f85f4002/support/vutils/src/hash-table-nested.lisp
lisp
TODO: This looks painful for performance. Oh well, we'll see if the profiler actually cares or not. It is likely that these won't be nested deeply. Also, the algorithm is slightly painful, but the deal is that we can't make a hash table containing the last key, since the last key is where we'll either look somethi...
(in-package #:vutils) (defun ensure-nested-hash-table (table tests keys) "Walk down the nested hash table `TABLE` ensuring that we have the correct number of hash tables made (one less than the list of keys `KEYS`) with the correct tests, received from the list of tests `TESTS`. NOTE: The first element of `TESTS` is...
85aa0e1f9918972a5816121d4d117c1441ce0ec7e7bcb01cc7d516dc259fe793
patricoferris/ocaml-multicore-monorepo
status.ml
---------------------------------------------------------------------------- * Copyright ( c ) 2017 Inhabited Type LLC . * Copyright ( c ) 2019 . * * All rights reserved . * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided th...
null
https://raw.githubusercontent.com/patricoferris/ocaml-multicore-monorepo/22b441e6727bc303950b3b37c8fbc024c748fe55/duniverse/dream/src/vendor/h2/lib/status.ml
ocaml
Note: The value for reason phrases is never actually serialized to the * input or output channels. * * From RFC7540§8.1.2.4: * HTTP/2 does not define a way to carry the version or reason phrase that is * included in an HTTP/1.1 status line.
---------------------------------------------------------------------------- * Copyright ( c ) 2017 Inhabited Type LLC . * Copyright ( c ) 2019 . * * All rights reserved . * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided th...
abcebd190aaab65e4d628f24314ecbb792df17e597e2179e46f1212e3e35f1a8
RichiH/git-annex
UrlContents.hs
git - annex URL contents - - Copyright 2014 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2014 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} module Types.UrlContents ( UrlContents(..), SafeFilePath, mkSafeFilePath, fromSafeFilePath ) where im...
null
https://raw.githubusercontent.com/RichiH/git-annex/bbcad2b0af8cd9264d0cb86e6ca126ae626171f3/Types/UrlContents.hs
haskell
An URL contains a file, whose size may be known. There might be a nicer filename to use. Sometimes an URL points to multiple files, each accessible by their own URL. sanitized so it doesn't contain any directory traversal tricks and is always relative. It can still contain subdirectories. Any unusual characters ...
git - annex URL contents - - Copyright 2014 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2014 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} module Types.UrlContents ( UrlContents(..), SafeFilePath, mkSafeFilePath, fromSafeFilePath ) where im...
77cd6c2a51226a161a981f7795f1bd19d1c430c5d97af7dcd352f4dc72f798f1
facebookarchive/pfff
draw_macrolevel.mli
val draw_treemap_rectangle: Canvas_helpers.context -> ?color:Simple_color.emacs_color option -> ?alpha:float -> Treemap.treemap_rectangle -> unit
null
https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/web/code_map/draw_macrolevel.mli
ocaml
val draw_treemap_rectangle: Canvas_helpers.context -> ?color:Simple_color.emacs_color option -> ?alpha:float -> Treemap.treemap_rectangle -> unit
842af066de323020b92e8b66de8ab89b24ca4a4bd3b0814c6614a73692227c4e
haskell/haskell-ide-engine
HlintParseFail.hs
# LANGUAGE TypeFamilies # {-# LANGUAGE GADTs #-} # LANGUAGE TypeOperators # # LANGUAGE DataKinds # {-# LANGUAGE TypeInType #-} module Test where import Data.Singletons.Prelude import Data.Singletons.TypeLits import Data.Type.Equality ((:~:) (..), (:~~:) (..)) ...
null
https://raw.githubusercontent.com/haskell/haskell-ide-engine/d84b84322ccac81bf4963983d55cc4e6e98ad418/test/testdata/HlintParseFail.hs
haskell
# LANGUAGE GADTs # # LANGUAGE TypeInType #
# LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # # LANGUAGE DataKinds # module Test where import Data.Singletons.Prelude import Data.Singletons.TypeLits import Data.Type.Equality ((:~:) (..), (:~~:) (..)) data instance Sing (z :: (a :~: b)) where SRefl :: Sing Refl +
c4b556059b874e5a26a0d2c46f75555d37c26a40429866f085faadd188550728
corecursive/sicp-study-group
ex01_15.scm
; The sine of an angle (specified in radians) can be computer by making use of the approximation sin x ~= x if x is sufficiently small, and the trigonometric identity: sin x = 3*sin(x/3 ) - 4*sin^3(x/3 ) to reduce the size of the arugment sin . ( For purposes of this exercise , an angle is consdiered " sufficient...
null
https://raw.githubusercontent.com/corecursive/sicp-study-group/d87da159d16d09493fd500f736c186edfeecfb83/plundaahl/exercises/ex01_15.scm
scheme
The sine of an angle (specified in radians) can be computer by making use of the approximation sin x ~= x if x is sufficiently small, and the trigonometric identity: (p (sine (/ 12.15 3.0))) (p (p (p (sine (/ 1.35 3.0))))) (p (p (p (p (sine (/ 0.45 3.0)))))) (p (p (p (p (p (sine (/ 0.15 3.0))))))) ... PART BWhat...
sin x = 3*sin(x/3 ) - 4*sin^3(x/3 ) to reduce the size of the arugment sin . ( For purposes of this exercise , an angle is consdiered " sufficiently small " if its magnitude is not greater than 0.1 radians . ) These ideas are incorporated in the following procedrues : (define (sine angle) (define (cube x) ...
78f15925033e0981724ebe45af94d64ac615338fcbcb58f1ea12e48a3b94f4f9
jgrodziski/keycloak-clojure
config.cljs
(ns myapp.front.config) (def debug? ^boolean goog.DEBUG)
null
https://raw.githubusercontent.com/jgrodziski/keycloak-clojure/2b71a1d1bf8d053f2e193af699daba3370ab6b2f/sample/frontend/src/cljs/myapp/front/config.cljs
clojure
(ns myapp.front.config) (def debug? ^boolean goog.DEBUG)
01a2e3c25b277b7a4672209e1be63f56dc420576fb245b6a0963f385420f6e67
shop-planner/shop3
decls.lisp
(in-package :shop2) (defparameter +pddl-requirements-keywords+ '(:strips :typing :negative-preconditions :disjunctive-preconditions :equality :existential-preconditions :universal-preconditions :quantified-preconditions ; existential + universal :conditional-effects :flu...
null
https://raw.githubusercontent.com/shop-planner/shop3/ba429cf91a575e88f28b7f0e89065de7b4d666a6/shop3/pddl/decls.lisp
lisp
existential + universal metric functions and effects does not imply fluents
(in-package :shop2) (defparameter +pddl-requirements-keywords+ '(:strips :typing :negative-preconditions :disjunctive-preconditions :equality :existential-preconditions :universal-preconditions :conditional-effects :adl :duration-inequalities :continuous-effects :costs))
e813d4e23c46bb80d206dcb65fae47a9075c1175937c1e9fec979ba415da0bb3
janestreet/memtrace_viewer_with_deps
test_string.ml
open! Core_kernel open! Import open! String (*TEST = slice "hey" 0 0 = ""*) (* This is what I would expect *) let%test _ = slice "hey" 0 0 = "hey" (* But this is what we get! *) let%test _ = slice "hey" 0 1 = "h" let%test _ = slice "hey" 0 2 = "he" let%test _ = slice "hey" 0 3 = "hey" let%test _ = slice "hey" 1 1 = "...
null
https://raw.githubusercontent.com/janestreet/memtrace_viewer_with_deps/5a9e1f927f5f8333e2d71c8d3ca03a45587422c4/vendor/core_kernel/test/src/test_string.ml
ocaml
TEST = slice "hey" 0 0 = "" This is what I would expect But this is what we get!
open! Core_kernel open! Import open! String let%test _ = slice "hey" 0 0 = "hey" let%test _ = slice "hey" 0 1 = "h" let%test _ = slice "hey" 0 2 = "he" let%test _ = slice "hey" 0 3 = "hey" let%test _ = slice "hey" 1 1 = "" let%test _ = slice "hey" 1 2 = "e" let%test _ = slice "hey" 1 3 = "ey" let%test _ = slice "hey"...
9b76cc63e6e798130e3622050689425574b68754b7bfa5cac8fc9870f20fc453
inconvergent/weir
main.lisp
(in-package :parallel) ;-concurrency-and-parallelism-in-common-lisp-part-4a-parallelism-using-lparallel-fundamentals/ (defun init (&key (cores 4) (name "custom-kernel")) (setf lparallel:*kernel* (lparallel:make-kernel cores :name name))) (defun end () (lparallel:end-kernel :wait t)) (defun info () ...
null
https://raw.githubusercontent.com/inconvergent/weir/3c364e3a0e15526f0d6985f08a57b312b5c35f7d/src/parallel/main.lisp
lisp
-concurrency-and-parallelism-in-common-lisp-part-4a-parallelism-using-lparallel-fundamentals/
(in-package :parallel) (defun init (&key (cores 4) (name "custom-kernel")) (setf lparallel:*kernel* (lparallel:make-kernel cores :name name))) (defun end () (lparallel:end-kernel :wait t)) (defun info () (let ((name (lparallel:kernel-name)) (count (lparallel:kernel-worker-count)) (...
eed9e344cad32c8bbaec1c147920e1a8970a18490a54308e64c410968b503595
tov/shcaml
timeout.ml
#!/usr/bin/env ocaml #use "topfind";; #require "shcaml.top";; let usage = "[-s SECONDS] [COMMAND ARGS...]" let lookup = Flags.go ~usage "-s <SECONDS:int>" let delay = lookup # int ~default:1 "-s" let to_run = match lookup # strings "" with | prog :: args -> program prog args | _ -> command "yes i ...
null
https://raw.githubusercontent.com/tov/shcaml/43ae852a00e3a11520f90f2451baa71863409774/examples/timeout.ml
ocaml
#!/usr/bin/env ocaml #use "topfind";; #require "shcaml.top";; let usage = "[-s SECONDS] [COMMAND ARGS...]" let lookup = Flags.go ~usage "-s <SECONDS:int>" let delay = lookup # int ~default:1 "-s" let to_run = match lookup # strings "" with | prog :: args -> program prog args | _ -> command "yes i ...
137f6c0f3083bb9fbe0336169bda547d7ecc95ae802c8872072d04338e320956
ocaml-flambda/flambda-backend
printcmm.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-flambda/flambda-backend/712c57c247efe2c4fabb7fb270070d3d809c5076/backend/printcmm.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 Pretty - printing of C-- code open Format val rec_flag : formatter -> Cmm.rec_flag -> unit val machty...
013cd967a222cebacd2a1bb02d02aa18696c5b51af75a1bbee69626f6ab9e579
Spivoxity/obc-3
symtab.mli
* symtab.mli * * This file is part of the Oxford Oberon-2 compiler * Copyright ( c ) 2006 - -2016 J. M. Spivey * All rights reserved * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided that the following conditions are met : * * 1...
null
https://raw.githubusercontent.com/Spivoxity/obc-3/9e5094df8382ac5dd25ff08768277be6bd71a4ae/compiler/symtab.mli
ocaml
ident -- type of identifiers |kind| -- basic types Non-numerics Fictitious types op -- type of operators commute -- find operator with commuted operands opposite -- negate a comparison operator label -- generate a code label current -- name of the module being compiled put -- output assembly directiv...
* symtab.mli * * This file is part of the Oxford Oberon-2 compiler * Copyright ( c ) 2006 - -2016 J. M. Spivey * All rights reserved * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided that the following conditions are met : * * 1...
8c4148b7df5b66f2ac17b2e56c4b54ef20c6951e421500aca939982988e141fb
webyrd/n-grams-for-synthesis
titlecase-test.scm
;;;; Chicken-specific tests for titlecase library Note : The strings embed Unicode characters using the Chicken - specific lexical syntax " \u1234 " rather than the R7RS syntax " \x1234 ; " (use utf8) (use titlecase) (use test) (test-group "titlecase" (test-group "titlecase/predicate" (test-assert (char-t...
null
https://raw.githubusercontent.com/webyrd/n-grams-for-synthesis/b53b071e53445337d3fe20db0249363aeb9f3e51/datasets/srfi/srfi-129/titlecase/titlecase-test.scm
scheme
Chicken-specific tests for titlecase library end titlecase/predicate end titlecase/char end titlecase/string end titlecase
Note : The strings embed Unicode characters using the Chicken - specific lexical syntax " \u1234 " rather than the R7RS syntax " \x1234 ; " (use utf8) (use titlecase) (use test) (test-group "titlecase" (test-group "titlecase/predicate" (test-assert (char-title-case? #\u01C5)) (test-assert (char-title-...
494f1f01f1b2f12c3887a67727bd42ef578c551011f96adf015a028d074d7a18
synduce/Synduce
unknowns_are_ids.ml
type 'a clist = CNil | Single of 'a | Concat of 'a clist * 'a clist type 'a list = Nil | Cons of 'a * 'a list (* This is our reference function. It is not named spec and we will need to declare our synthesis objective using an assert statement at the end of the file. *) let rec sum = function Nil -> 0 | Cons (h...
null
https://raw.githubusercontent.com/synduce/Synduce/d453b04cfb507395908a270b1906f5ac34298d29/benchmarks/misc/unknowns_are_ids.ml
ocaml
This is our reference function. It is not named spec and we will need to declare our synthesis objective using an assert statement at the end of the file. The assertion should be of the form: assert (recursion skeleton = representation function @@ reference function)
type 'a clist = CNil | Single of 'a | Concat of 'a clist * 'a clist type 'a list = Nil | Cons of 'a * 'a list let rec sum = function Nil -> 0 | Cons (hd, tl) -> hd + sum tl This is the representation function . Remark that it is the same as the one defined in the mpshom.pmrs or sumhom.pmrs files ! defined...
1c516c0139dd98d784565f7dc0b853ec678a5c7376b2ffbd18de2694f1cc1f41
garrigue/labltk
searchid.ml
(*************************************************************************) (* *) (* OCaml LablTk library *) (* *) ,...
null
https://raw.githubusercontent.com/garrigue/labltk/0e52cb81271236d904eaf18d26821d5df5e4234a/browser/searchid.ml
ocaml
*********************************************************************** OCaml LablTk library ...
, Kyoto University RIMS Copyright 1999 Institut National de Recherche en Informatique et en Automatique and Kyoto University . All rights reserved . This file is distributed under the terms of the GNU Library $ Id$ open Asttypes open StdLabels ...
c0ab77fea78d29308b1f30898725e9ad2cb55f9af131ccf69440ffc95d92108e
OCamlPro/digodoc
headfoot.ml
(**************************************************************************) (* *) Copyright ( c ) 2021 OCamlPro SAS & Origin Labs SAS (* *) (* All right...
null
https://raw.githubusercontent.com/OCamlPro/digodoc/a781c251b3b6ef94badbaea1cfd8dc176d47d364/src/frontend/headfoot.ml
ocaml
************************************************************************ All rights reserved. This file is distributed u...
Copyright ( c ) 2021 OCamlPro SAS & Origin Labs SAS Public License version 2.1 , with the special exception on linking open Globals open Js_of_ocaml let activate_bar () = Activate specified item let activate item = let item_bar = get_element_by_id item in item_bar##.classN...
8af227566b0dbb956705dc49f8d004a590e7040a660f37ae8f8507cb8fce9586
tek/helic
NetConfig.hs
{-# options_haddock prune #-} |NetConfig Data Type , Internal module Helic.Data.NetConfig where import Polysemy.Time.Json (json) import Helic.Data.Host (Host) newtype Timeout = Timeout { unTimeout :: Int } deriving stock (Eq, Show, Generic) deriving newtype (Num, Real, Enum, Integral, Ord) json ''Timeout ...
null
https://raw.githubusercontent.com/tek/helic/055b2ffa063936ad4ae6249c9e6e0603482baaa9/packages/helic/lib/Helic/Data/NetConfig.hs
haskell
# options_haddock prune #
|NetConfig Data Type , Internal module Helic.Data.NetConfig where import Polysemy.Time.Json (json) import Helic.Data.Host (Host) newtype Timeout = Timeout { unTimeout :: Int } deriving stock (Eq, Show, Generic) deriving newtype (Num, Real, Enum, Integral, Ord) json ''Timeout data NetConfig = NetConfig {...
d62c2764779699c960709daf99c1c2973da939b99d7e033c541ca1fae98e4d08
chaoxu/fancy-walks
template_codejam.hs
{-# OPTIONS_GHC -O2 #-} import Data.List import Data.Maybe import Data.Char import Data.Array.IArray import Data.Array.Unboxed (UArray) import Data.Int import Data.Ratio import Data.Bits import Data.Function import Data.Ord import Control.Monad.State import Control.Monad import Control.Applicative import Data.ByteStri...
null
https://raw.githubusercontent.com/chaoxu/fancy-walks/952fcc345883181144131f839aa61e36f488998d/templates/template_codejam.hs
haskell
# OPTIONS_GHC -O2 #
import Data.List import Data.Maybe import Data.Char import Data.Array.IArray import Data.Array.Unboxed (UArray) import Data.Int import Data.Ratio import Data.Bits import Data.Function import Data.Ord import Control.Monad.State import Control.Monad import Control.Applicative import Data.ByteString.Char8 (ByteString) im...
2595aa374f4fdf88c3139fb0f77c3d16cd4c01d043caf86f1d2acd54c4f9f291
kappelmann/eidi2_repetitorium_tum
SparseVector.ml
let todo _ = failwith "Something is not implemented!" type v = todo let empty = todo let sb_vektor = todo let set = todo let mul = todo let add_sb_vektor = todo let mul_sb_vektor = todo
null
https://raw.githubusercontent.com/kappelmann/eidi2_repetitorium_tum/1d16bbc498487a85960e0d83152249eb13944611/2016/sparse_vector/exercises/SparseVector.ml
ocaml
let todo _ = failwith "Something is not implemented!" type v = todo let empty = todo let sb_vektor = todo let set = todo let mul = todo let add_sb_vektor = todo let mul_sb_vektor = todo
0902368fbe52b2ec72c0040688364c2c737eddf4d8e924c87ea6050a86508c8b
JonasDuregard/sized-functors
Derive.hs
{-#Language CPP#-} {-#Language TemplateHaskell#-} module Control.Enumerable.Derive (instanceFor, module Language.Haskell.TH) where import Language.Haskell.TH -- General combinator for class derivation instanceFor :: Name -> [[(Name,[Type])] -> Q Dec] -> Name -> Q Dec instanceFor clname confs dtname = do (cxt,dtvs,co...
null
https://raw.githubusercontent.com/JonasDuregard/sized-functors/d76bb90ec31b915f9b2469e056a910c30eab5fa3/Control/Enumerable/Derive.hs
haskell
#Language CPP# #Language TemplateHaskell# General combinator for class derivation
module Control.Enumerable.Derive (instanceFor, module Language.Haskell.TH) where import Language.Haskell.TH instanceFor :: Name -> [[(Name,[Type])] -> Q Dec] -> Name -> Q Dec instanceFor clname confs dtname = do (cxt,dtvs,cons) <- extractData dtname cd <- mapM conData cons let #if MIN_VERSION_templa...
dff3571566e0e4f086af7280a13102cadbf0d510a88fa7e18b5e118cedaff962
mschuldt/ga144
common.rkt
#lang racket ;; -*- lexical-binding: t -*- (require compatibility/defmacro "rom.rkt" "rom-dump.rkt" "el.rkt") (provide (all-defined-out)) TODO : compile arbitrarily large programs per node but warn if > 64 words (define num-nodes 144) (define opcodes (vector ";" "ex" "jump" "call" "unext"...
null
https://raw.githubusercontent.com/mschuldt/ga144/5b327b958f5d35cf5a015044e6ee62f46446169f/src/common.rkt
racket
-*- lexical-binding: t -*- TODO @p time is slot dependent This is the type that holds compiled code and other node info. Compiling a program returns a list of these 'coord' is the node coordinate this code belongs to 'mem' is the vector of compiled words 'len' is how many instructions are used in mem. len <= len...
(require compatibility/defmacro "rom.rkt" "rom-dump.rkt" "el.rkt") (provide (all-defined-out)) TODO : compile arbitrarily large programs per node but warn if > 64 words (define num-nodes 144) (define opcodes (vector ";" "ex" "jump" "call" "unext" "next" "if" "-if" ...
0b4149c21a9fe435c1bc713cdec862f836a67053c662f04ae289dea9a23514ee
ghc/testsuite
tcfail101.hs
This one broke GHC 5.02 , because of the unsaturated -- uses of type synonyms, which are nevertheless kind-correct. module ShouldCompile where type A i = i data T k = MkT (k Int) f :: T A -- BAD! f = error "foo"
null
https://raw.githubusercontent.com/ghc/testsuite/998a816ae89c4fd573f4abd7c6abb346cf7ee9af/tests/typecheck/should_fail/tcfail101.hs
haskell
uses of type synonyms, which are nevertheless kind-correct. BAD!
This one broke GHC 5.02 , because of the unsaturated module ShouldCompile where type A i = i data T k = MkT (k Int) f = error "foo"
d35707e2a37f3cb9b9ce36630ef2bcfe769f4bb4c57bc26fbe98620e685df510
unclebob/more-speech
tab_searcher.clj
(ns more-speech.nostr.tab-searcher (:use [seesaw core font tree]) (:require [more-speech.nostr.util :as util] [more-speech.mem :refer :all] [more-speech.config :refer [get-db]] [more-speech.ui.formatters :as formatters] [more-speech.bech32 :as bech32] [mor...
null
https://raw.githubusercontent.com/unclebob/more-speech/460b77d57551f19ca0810acc7dd1656a3160fdf8/src/more_speech/nostr/tab_searcher.clj
clojure
(ns more-speech.nostr.tab-searcher (:use [seesaw core font tree]) (:require [more-speech.nostr.util :as util] [more-speech.mem :refer :all] [more-speech.config :refer [get-db]] [more-speech.ui.formatters :as formatters] [more-speech.bech32 :as bech32] [mor...
6c1d128af65e0e11d26a95ffa4bf318991949b0ee4f850b3a074cdd3315067d6
jonschoning/espial
TestImport.hs
# LANGUAGE QuasiQuotes # # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE FlexibleContexts # module TestImport ( module TestImport , module X ) where import Application (makeFoundation, makeLogWare) import ClassyPrelude as X hiding (delete, deleteBy, Handler) i...
null
https://raw.githubusercontent.com/jonschoning/espial/c98030139b7ddd15a9b101220235808c6b7db6f5/test/TestImport.hs
haskell
# LANGUAGE OverloadedStrings # Wiping the database This function will truncate all of the tables in your database. 'withApp' calls it before each test, creating a clean environment for each spec to run in. sqlBackend <- ask let queries = map (\t -> "DELETE FROM " ++ (connEscapeName sqlBackend $ DBName t)) tables
# LANGUAGE QuasiQuotes # # LANGUAGE NoImplicitPrelude # # LANGUAGE FlexibleContexts # module TestImport ( module TestImport , module X ) where import Application (makeFoundation, makeLogWare) import ClassyPrelude as X hiding (delete, deleteBy, Handler) import Database.Persist as X hi...
8e3aef40fcd97d7c585b27464b992664865da1880f0f3d499adb30ee6c15f4a1
eponai/sulolive
mutate.cljs
(ns eponai.mobile.parser.mutate (:require [eponai.common.parser :refer [client-mutate]] [eponai.common.database :as db] [om.next :as om] [datascript.core :as d] [taoensso.timbre :refer-macros [debug]])) (defn set-route-tx [route] {:ui/component :ui.componen...
null
https://raw.githubusercontent.com/eponai/sulolive/7a70701bbd3df6bbb92682679dcedb53f8822c18/sulo-native/src/eponai/mobile/parser/mutate.cljs
clojure
[{:keys [state]} k {:keys [verify-uuid]}] (let [verify-endpoint (-> (d/entity (d/db state) [:ui/singleton :ui.singleton/configuration]) :ui.singleton.configuration.endpoints/verify) verify-endpoint (str verify-endpoint "/" verify-uuid)] (debug "Will verify verify-uuid: " ...
(ns eponai.mobile.parser.mutate (:require [eponai.common.parser :refer [client-mutate]] [eponai.common.database :as db] [om.next :as om] [datascript.core :as d] [taoensso.timbre :refer-macros [debug]])) (defn set-route-tx [route] {:ui/component :ui.componen...
28af7eb835ceb57b9de67705ee471929dd3000d46617c5f9114c0a67c69d56b5
pdarragh/camlrack
tokenize.ml
open Errors include TokenTypes let regexps = [ (Str.regexp "(", fun _ -> LParen) ; (Str.regexp "{", fun _ -> LBrace) ; (Str.regexp "\\[", fun _ -> LBracket) ; (Str.regexp ")", fun _ -> RParen) ; (Str.regexp "}", fun _ -> RBrace) ; (Str.regexp "]", fun _ -> RBracket) ; (Str.regexp "[-+]?[0-9]+\\.[0-9]*\\(...
null
https://raw.githubusercontent.com/pdarragh/camlrack/b80f35a973529f029c0715b83ce64c1de4e8467d/camlrack/src/tokenize.ml
ocaml
open Errors include TokenTypes let regexps = [ (Str.regexp "(", fun _ -> LParen) ; (Str.regexp "{", fun _ -> LBrace) ; (Str.regexp "\\[", fun _ -> LBracket) ; (Str.regexp ")", fun _ -> RParen) ; (Str.regexp "}", fun _ -> RBrace) ; (Str.regexp "]", fun _ -> RBracket) ; (Str.regexp "[-+]?[0-9]+\\.[0-9]*\\(...
29c6397b57b4a385ee9a4215289832ec1b8c1d51caa96a43d558dddf32b21caf
flipstone/haskell-for-beginners
3_walk_the_line.hs
-- A Bomb is defined by the order in -- which its wires must be cut to disable -- it. If a wire is cut out of order, the -- bomb explodes. -- type Bomb = [Wire] data Wire = Red | Blue | Green deriving (Show, Eq) -- Define a function that cuts a Wire of a -- Bomb, returning Just the Wires remaining -- to be cut. If the...
null
https://raw.githubusercontent.com/flipstone/haskell-for-beginners/e586a1f3ef08f21d5181171fe7a7b27057391f0b/answers/chapter_12/3_walk_the_line.hs
haskell
A Bomb is defined by the order in which its wires must be cut to disable it. If a wire is cut out of order, the bomb explodes. Define a function that cuts a Wire of a Bomb, returning Just the Wires remaining to be cut. If the incorrect Wire is cut, the Bomb expodes, leaving Nothing to return. If any attempt i...
type Bomb = [Wire] data Wire = Red | Blue | Green deriving (Show, Eq) cutWire :: Wire -> Bomb -> Maybe Bomb cutWire cut (w:ws) | cut == w = Just ws cutWire _ _ = Nothing wait :: Bomb -> Maybe String wait [] = Just "Saved again!" wait _ = Nothing Monad functions ) bomb = [Red, Green, Blue] disarmed = return bomb >>...
5caf05db921a81d89986455582a70ce67ccd8caaffa40142f466a2e1e5e0a7b7
spechub/Hets
GenericATP.hs
# LANGUAGE CPP # | Module : ./GUI / GenericATP.hs Description : Generic Prover GUI . Copyright : ( c ) , Uni Bremen 2009 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : needs POSIX Generic GUI for automatic theorem pr...
null
https://raw.githubusercontent.com/spechub/Hets/af7b628a75aab0d510b8ae7f067a5c9bc48d0f9e/GUI/GenericATP.hs
haskell
^ prover specific -- functions ^ prover supports extra options ^ prover name ^ theory name ^ theory consisting of a signature and a list of Named sentence ^ freeness constraints ^ initial empty proof_tree ^ proof status for each goal
# LANGUAGE CPP # | Module : ./GUI / GenericATP.hs Description : Generic Prover GUI . Copyright : ( c ) , Uni Bremen 2009 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : needs POSIX Generic GUI for automatic theorem pr...