_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
622fcc9938d272ddc3865dc55a225b20ae335c0a41ab584f1860c0a041ec3c72
WorksHub/client
landing.cljc
(ns wh.styles.landing) (def page "landing__page--2REJ9") (def page__main "landing__page__main--2aEJv") (def side-column "landing__side-column--1krwu") (def side-column--left "landing__side-column--left--1Ucjl") (def tablet-only "landing__tablet-only--18Cc3") (def main-column "landing__main-column--3d3VB") (def card "la...
null
https://raw.githubusercontent.com/WorksHub/client/a51729585c2b9d7692e57b3edcd5217c228cf47c/common/src/wh/styles/landing.cljc
clojure
(ns wh.styles.landing) (def page "landing__page--2REJ9") (def page__main "landing__page__main--2aEJv") (def side-column "landing__side-column--1krwu") (def side-column--left "landing__side-column--left--1Ucjl") (def tablet-only "landing__tablet-only--18Cc3") (def main-column "landing__main-column--3d3VB") (def card "la...
8e5f24d82447bce4ed010fa60ad4122a34528e7f6c625083cb936b4869c6ae3d
robrix/starlight
TVar.hs
{-# LANGUAGE ExplicitForAll #-} # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # | A ' Control . Concurrent . STM.TVar . TVar'-backed carrier for ' State ' . Individual ' get 's...
null
https://raw.githubusercontent.com/robrix/starlight/ad80ab74dc2eedbb52a75ac8ce507661d32f488e/src/Control/Carrier/State/STM/TVar.hs
haskell
# LANGUAGE ExplicitForAll # # LANGUAGE GADTs # * State carrier * State effect
# LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # | A ' Control . Concurrent . STM.TVar . TVar'-backed carrier for ' State ' . Individual ' get 's and ' put 's are run ' atomically ' , but NB that ' mo...
3bc99d7d57f607e61fe46c4fd619d54aa41ef447ca4dcee5b93b44761a2a9e69
psg-mit/probzelus-haskell
AssocList.hs
module Util.AssocList where import Data.List (nubBy, groupBy, partition) import Data.Function (on) import Util.AssocListSet (Set (Set)) import qualified Util.AssocListSet as S newtype Map k v = Map [(k, v)] empty :: Map k v empty = Map [] singleton :: k -> v -> Map k v singleton k v = Map [(k, v)] fromList :: Eq ...
null
https://raw.githubusercontent.com/psg-mit/probzelus-haskell/a4b66631451b6156938a9c5420cfff2999ecbbc6/haskell/src/Util/AssocList.hs
haskell
module Util.AssocList where import Data.List (nubBy, groupBy, partition) import Data.Function (on) import Util.AssocListSet (Set (Set)) import qualified Util.AssocListSet as S newtype Map k v = Map [(k, v)] empty :: Map k v empty = Map [] singleton :: k -> v -> Map k v singleton k v = Map [(k, v)] fromList :: Eq ...
b3d48c727756207dccd2437ca507cae866b6468435d03f3277d2a16a52141e11
komi1230/kai
launch.lisp
;;;; launch.lisp --- File opener ;;; ;;; This code has been placed in the Public Domain. All warranties ;;; are disclaimed. ;;; ;;; This file handles opening js files with system commands. (in-package :cl-user) (defpackage :kai.plotly.launch (:use :cl) (:import-from :kai.util :check-file-exist) ...
null
https://raw.githubusercontent.com/komi1230/kai/7481aae3ca11a79c117dd6fbc4e3bf2122a89627/src/plotly/launch.lisp
lisp
launch.lisp --- File opener This code has been placed in the Public Domain. All warranties are disclaimed. This file handles opening js files with system commands. Open browser When launching js file in the browser, we use system command to open browser.
(in-package :cl-user) (defpackage :kai.plotly.launch (:use :cl) (:import-from :kai.util :check-file-exist) (:export :open-browser)) (in-package :kai.plotly.launch) (defun open-browser () (let ((path-to-html (check-file-exist "plotly" "kai.html"))) (uiop:run-program #+(or win32 mswindows...
bd1e7a4e41b1756682fa3b0697a76890f38eab8fddc730b565974e665d3066a4
inria-parkas/sundialsml
test_sunmatrix_dense.ml
* ----------------------------------------------------------------- * Programmer(s ): @ SMU * @ LLNL * ----------------------------------------------------------------- * OCaml port : , , Jun 2018 . * ----------------------------------------------------------------- * LLNS / ...
null
https://raw.githubusercontent.com/inria-parkas/sundialsml/a1848318cac2e340c32ddfd42671bef07b1390db/examples/matrix/dense/test_sunmatrix_dense.ml
ocaml
---------------------------------------------------------------------- * Main Matrix Testing Routine * -------------------------------------------------------------------- check input and set vector length Create vectors and matrices Print result Check environment variables for extra arguments. Entry point...
* ----------------------------------------------------------------- * Programmer(s ): @ SMU * @ LLNL * ----------------------------------------------------------------- * OCaml port : , , Jun 2018 . * ----------------------------------------------------------------- * LLNS / ...
09a649027a8069e0f9f2966dc3059d14f61932b13b19797d6d9b300f587e91cc
pirapira/coq2rust
scheme.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/pirapira/coq2rust/22e8aaefc723bfb324ca2001b2b8e51fcc923543/plugins/extraction/scheme.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** s Production of Scheme syntax. s Sc...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Pp open Errors open Uti...
371f0fd1916acfe6c1b774affcac32c9d937ac9d2b0fef5cfcee6cdbcefbcd6f
fetburner/Coq2SML
pfedit.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/fetburner/Coq2SML/322d613619edbb62edafa999bff24b1993f37612/coq-8.4pl4/proofs/pfedit.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * [check_no_pending_proofs ()] fails...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Util open Pp open Names ...
9fa15f23215e9ad124570096b67402597a41679c360079dbcc6076ba9685db38
dmitryvk/sbcl-win32-threads
support.lisp
This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the ;;;; public domain. The software is in the public domain and is ;;;; provided with absolutely no wa...
null
https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/src/assembly/x86/support.lisp
lisp
more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. The :full-call assembly-routines must use the same full-call unknown-values return convention as a normal call, as some of the routines will ...
This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB!VM") in registers ( this will typically be one or two arguments , is neccessary for one of the assembly -...
2549abc005f263461ab0bbe2cdbd690fcce2d338bf4c51d677b20a9f806cc58b
clojurians-org/haskell-example
Route.hs
# LANGUAGE EmptyCase # # LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} # LANGUAGE LambdaCase # {-# LANGUAGE RankNTypes #-} # LANGUAGE TemplateHaskell # # LANGUAGE KindSignatures # # LANGUAGE EmptyCase # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleInstances # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ...
null
https://raw.githubusercontent.com/clojurians-org/haskell-example/c96b021bdef52a121e04ea203c8c3e458770a25a/ws-dashboard/common/src/Common/Route.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes # # LANGUAGE OverloadedStrings # You will probably want these imports for composing Encoders . | Used to handle unparseable routes. You can define any routes that will be handled specially by the backend here. i.e. These do not serve the frontend, but do something different...
# LANGUAGE EmptyCase # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE TemplateHaskell # # LANGUAGE KindSignatures # # LANGUAGE EmptyCase # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleInstances # # LANGUAGE StandaloneDeriving # module Common.Route where import Prelude hiding ( i d , ( . ) ...
21be165c369c9580c259bce3094ac48827f86fa84e72d64e1c5b4e5a4ce35569
markbastian/partsbin
core.clj
(ns partsbin.datahike.api.core (:require [partsbin.datahike.api.alpha :as datahike] [integrant.core :as ig] [datahike.api :as d])) (derive ::database ::datahike/database) (derive ::connection ::datahike/connection) (comment (require '[partsbin.system :refer [with-system]]) (def schema ...
null
https://raw.githubusercontent.com/markbastian/partsbin/8dc159327f296c9625d129b5943ec79433019e54/src/partsbin/datahike/api/core.clj
clojure
(ns partsbin.datahike.api.core (:require [partsbin.datahike.api.alpha :as datahike] [integrant.core :as ig] [datahike.api :as d])) (derive ::database ::datahike/database) (derive ::connection ::datahike/connection) (comment (require '[partsbin.system :refer [with-system]]) (def schema ...
bde5ad8e3f58416748538312573ef5878cf30d95619acacf92612ff0d5884588
xapi-project/xen-api-client
xen_api_lwt_unix.ml
* Copyright ( C ) 2012 Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking described in fi...
null
https://raw.githubusercontent.com/xapi-project/xen-api-client/c3855a3dae3ea16b087855347a544bf22f2bb0dd/lwt/xen_api_lwt_unix.ml
ocaml
let write_line (_, oc) = Lwt_io.write_line oc TODO: modify do_it to accept the timeout and remove the warnings
* Copyright ( C ) 2012 Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking described in fi...
52e7d4c0053dd968d3b54d8635f9a1d0d2b644c5a50a5a203a6defcf4135b1fa
jordanthayer/ocaml-search
setcover_problem.ml
$ I d : problem.ml , v 1.2 2004/08/17 20:02:10 ruml Exp $ instances of weighted set cover instances of weighted set cover *) type subset = float * int list type t = { num_objs : int; subsets : subset array; } let instance_root = User_paths.instance_root ^ "setcover/" let num_subsets p = Array.l...
null
https://raw.githubusercontent.com/jordanthayer/ocaml-search/57cfc85417aa97ee5d8fbcdb84c333aae148175f/setcover/setcover_problem.ml
ocaml
* [max_depth p] gets an upper bound on the maximum problem depth. **** I/O **** * prints many vals as floats, not ints! ********** some utilities ********** * more or equal stuff for less or equal cost * returns list of objs not in any subset ********* constructing random instances ********* ********* solutio...
$ I d : problem.ml , v 1.2 2004/08/17 20:02:10 ruml Exp $ instances of weighted set cover instances of weighted set cover *) type subset = float * int list type t = { num_objs : int; subsets : subset array; } let instance_root = User_paths.instance_root ^ "setcover/" let num_subsets p = Array.l...
6bc9580dc7f827ba9fad414a81733cdf21c5445d242c0967887b05291c1d902a
clojusc/friend-oauth2-examples
google_handler.clj
(ns friend-oauth2-examples.google-handler (:require [compojure.core :refer :all] [compojure.handler :as handler] [compojure.route :as route] [cemerick.friend :as friend] [friend-oauth2.workflow :as oauth2] [friend-oauth2.util :refer [format-config-uri]] ...
null
https://raw.githubusercontent.com/clojusc/friend-oauth2-examples/3ea1ca7e51644f8f1985566097652d78abfca457/src/friend_oauth2_examples/google_handler.clj
clojure
lookup token in DB or whatever to fetch appropriate :roles
(ns friend-oauth2-examples.google-handler (:require [compojure.core :refer :all] [compojure.handler :as handler] [compojure.route :as route] [cemerick.friend :as friend] [friend-oauth2.workflow :as oauth2] [friend-oauth2.util :refer [format-config-uri]] ...
7f7a44c4c1154d277786cd9fe3ef1f56bf41b0083547a9839911ce6bd81dd21d
kadena-io/chainweb-mining-client
External.hs
# LANGUAGE DeriveGeneric # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # -- | -- Module: Worker.External Copyright : Copyright © 2020 Kadena LLC . License : MIT Maintainer : < > -- Stability: experimental -- TODO -- module Worker.External ( externalWorker ) wher...
null
https://raw.githubusercontent.com/kadena-io/chainweb-mining-client/e051c1faab0ffb85d7c0d454763e77af2646384d/src/Worker/External.hs
haskell
# LANGUAGE OverloadedStrings # | Module: Worker.External Stability: experimental internal modules -------------------------------------------------------------------------- -- Exceptions -------------------------------------------------------------------------- -- | Run an external worker: External worker...
# LANGUAGE DeriveGeneric # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # Copyright : Copyright © 2020 Kadena LLC . License : MIT Maintainer : < > TODO module Worker.External ( externalWorker ) where import Control.Concurrent.Async import Control.Monad.Catch import qualified Data.ByteArray.Encod...
5d32e83a02945d0f96a3eef0c2feece9a1dfcf772df41b3bae0205bbf8c66e15
dannypsnl/racket-tree-sitter
main.rkt
#lang racket/base (provide (all-from-out "types.rkt" "language.rkt" "parser.rkt" "node.rkt" "tree.rkt" "tree-cursor.rkt" "query.rkt" "query-cursor.rkt")) (require "types.rkt" "language.rkt" "parser.rkt" "node.rkt"...
null
https://raw.githubusercontent.com/dannypsnl/racket-tree-sitter/d5193cb8af43428372db34188924f4fea372ba8d/main.rkt
racket
#lang racket/base (provide (all-from-out "types.rkt" "language.rkt" "parser.rkt" "node.rkt" "tree.rkt" "tree-cursor.rkt" "query.rkt" "query-cursor.rkt")) (require "types.rkt" "language.rkt" "parser.rkt" "node.rkt"...
8178f07b4e6b66c197ae758971de69d87ed84e18067ac9d73993f40a1734f1e5
AccelerateHS/accelerate
Bounded.hs
{-# LANGUAGE ConstraintKinds #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # # OPTIONS_GHC -fno - warn - orphans # -- | -- Module : Data.Array.Accelerate.Classes.Bounded Copyright : [ 2016 .. 2020 ] The Accelerate Team -- Lic...
null
https://raw.githubusercontent.com/AccelerateHS/accelerate/7c769b761d0b2a91f318096b9dd3fced94616961/src/Data/Array/Accelerate/Classes/Bounded.hs
haskell
# LANGUAGE ConstraintKinds # | Module : Data.Array.Accelerate.Classes.Bounded License : BSD3 Stability : experimental | Name the upper and lower limits of a type. Types which are not totally ordered may still have upper and lower bounds.
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # # OPTIONS_GHC -fno - warn - orphans # Copyright : [ 2016 .. 2020 ] The Accelerate Team Maintainer : < > Portability : non - portable ( GHC extensions ) module Data.Array.Acceler...
5937089bce9f531915648601997b8e7748eaaf19514601926a27075aefacfb16
fpottier/pprint
PPrintBench.ml
(******************************************************************************) (* *) PPrint (* *)...
null
https://raw.githubusercontent.com/fpottier/pprint/fbf9ed81e6de690f60f20c8c16a1374753722868/bench/PPrintBench.ml
ocaml
**************************************************************************** Lice...
PPrint , Copyright 2007 - 2022 Inria . All rights reserved . This file is distributed under the terms of the ...
61df1aa0ce1297a9fb5134fee739a15ac3c34aa5b4919cfa19025a07f7a72049
expipiplus1/orbits
Test.hs
{-# LANGUAGE DataKinds #-} # LANGUAGE FlexibleContexts # # LANGUAGE GeneralizedNewtypeDeriving # {-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE TemplateHaskell #-} module Main ( main ) where import Data.CReal ...
null
https://raw.githubusercontent.com/expipiplus1/orbits/6cc5c43f50aadc7517a6677ca04363b492474a6a/test/Test.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE QuasiQuotes # # LANGUAGE RankNTypes # # LANGUAGE TemplateHaskell # | The type used for tests which require exact arithmetic. They are compared ------------------------------------------------------------------------------ The...
# LANGUAGE FlexibleContexts # # LANGUAGE GeneralizedNewtypeDeriving # module Main ( main ) where import Data.CReal ( CReal ) import Data.CReal.QuickCheck ( ) import Data.Coerce ( coerce ) import Data.Constants.Mecha...
4eefcc3f957ccfdb5026995418337525b4da8afa37ec4dffc67d09c421c5c228
eslick/cl-registry
bundle-widgets.lisp
(in-package :registry) ;; ;; View elements for bundles ;; ;; We can get away with less widgets ;; ;; Creation protocol: 1 ) When a page bundle is to be rendered , we first walk it ;; and generate a set of widgets to render the content. 2 ) Bundles do not necessarily translation 1:1 to widgets 3 ) Configurati...
null
https://raw.githubusercontent.com/eslick/cl-registry/d4015c400dc6abf0eeaf908ed9056aac956eee82/src/data-model/bundle-widgets.lisp
lisp
View elements for bundles We can get away with less widgets Creation protocol: and generate a set of widgets to render the content. e.g. the depth of the widget in a possible layout set the configuration of the widgets and questions Rendering protocol: The rendering protocol is now fairly simple, ...
(in-package :registry) 1 ) When a page bundle is to be rendered , we first walk it 2 ) Bundles do not necessarily translation 1:1 to widgets 3 ) Configuration of widgets is set based on current rendering context 4 ) Presentation types are created for embedded questions 5 ) Any layout / presentation constrai...
3c0618349d0e81efd1b7a23d1c7bda5b858a6ba83ed4832e445b6b89032fab6f
janestreet/hardcaml
wave.mli
module B : Hardcaml.Comb.S with type t = Hardcaml.Bits.t type exarray = { mutable len : int ; mutable data : B.t array } val make : unit -> exarray val extend : exarray -> unit val set : exarray -> int -> B.t -> unit val get : exarray -> int -> B.t val length : exarray -> int val data : exarray -> B.t array type ...
null
https://raw.githubusercontent.com/janestreet/hardcaml/4126f65f39048fef5853ba9b8d766143f678a9e4/js/wave.mli
ocaml
module B : Hardcaml.Comb.S with type t = Hardcaml.Bits.t type exarray = { mutable len : int ; mutable data : B.t array } val make : unit -> exarray val extend : exarray -> unit val set : exarray -> int -> B.t -> unit val get : exarray -> int -> B.t val length : exarray -> int val data : exarray -> B.t array type ...
493da4070798c872ee4823fa0c16372aa08fd17c78a3db5fa61309dca03b3f65
basho/riak_test
ensemble_remove_node.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2013 - 2014 Basho Technologies , Inc. %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may obtain %% a copy of...
null
https://raw.githubusercontent.com/basho/riak_test/8170137b283061ba94bc85bf42575021e26c929d/tests/ensemble_remove_node.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissio...
Copyright ( c ) 2013 - 2014 Basho Technologies , Inc. This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(ensemble_remove_...
e08c8a4197ff2a8400fbb24d1a6ed9ced2c113147e67b69edc8dde3b412b84ad
caradoc-org/caradoc
fetchimpl.ml
(*****************************************************************************) (* Caradoc: a PDF parser and validator *) Copyright ( C ) 2015 ANSSI Copyright ( C ) 2015 - 2017 (* ...
null
https://raw.githubusercontent.com/caradoc-org/caradoc/100f53bc55ef682049e10fabf24869bc019dc6ce/src/parser/relaxed/fetchimpl.ml
ocaml
*************************************************************************** Caradoc: a PDF parser and validator This program is free software; you can redistribute it and/or modify ...
Copyright ( C ) 2015 ANSSI Copyright ( C ) 2015 - 2017 it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation . You should have rece...
0d98d4df44c3264c2fef09e3d464c1cfd4c93c8ee00e71adb3ac179f070e5b6f
fujimura/hi
doctests.hs
import Control.Applicative import System.Process import Test.DocTest main :: IO () main = doctest =<< lines <$> readProcess "git" ["ls-files", "src"] []
null
https://raw.githubusercontent.com/fujimura/hi/a55cf5ee87e3607f398a08aeb078f5ef63e6f4c5/test/doctests.hs
haskell
import Control.Applicative import System.Process import Test.DocTest main :: IO () main = doctest =<< lines <$> readProcess "git" ["ls-files", "src"] []
242f9ae1cddf345aedf741e91d424253074dbda95751b7a06859fcd45c58825a
Ongy/pulseaudio
Test.hs
{-# LANGUAGE OverloadedStrings #-} import Data.Text (Text) import qualified Data.Text as Text import qualified Data.Text.IO as Text import Sound.Pulse.Context import Sound.Pulse.Mainloop.Simple import Data.Word (Word32) import Control.Monad (void) import So...
null
https://raw.githubusercontent.com/Ongy/pulseaudio/593d096e9386224f2e05bdc14c72c52ff9cd7d87/bin/Test.hs
haskell
# LANGUAGE OverloadedStrings #
import Data.Text (Text) import qualified Data.Text as Text import qualified Data.Text.IO as Text import Sound.Pulse.Context import Sound.Pulse.Mainloop.Simple import Data.Word (Word32) import Control.Monad (void) import Sound.Pulse.Mainloop import Sound.Pul...
b769b4a1cf176db26b71e88b86169ddc8e5dcf6b89f02388847adf838fd05293
chrovis/cljam
sequence_test.clj
(ns cljam.io.sequence-test (:require [clojure.test :refer [deftest is are testing]] [clojure.java.io :as cio] [clojure.string :as cstr] [cljam.test-common :refer [with-before-after prepare-cache! clean-cache! not-throw? ...
null
https://raw.githubusercontent.com/chrovis/cljam/2b8e7386765be8efdbbbb4f18dbc52447f4a08af/test/cljam/io/sequence_test.clj
clojure
(ns cljam.io.sequence-test (:require [clojure.test :refer [deftest is are testing]] [clojure.java.io :as cio] [clojure.string :as cstr] [cljam.test-common :refer [with-before-after prepare-cache! clean-cache! not-throw? ...
b9b44786bcdc4928a45b1f14f2d9b5245e38f16f5d5b01a9660ef15c96f81d01
j-mie6/ParsleyHaskell
Identifiers.hs
# OPTIONS_GHC -Wno - incomplete - patterns # # LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving # GeneralizedNewtypeDeriving #-} | Module : Parsley . Internal . Backend . Machine . Identifiers Description : frontend specific identifiers . License : BSD-3 - Clause M...
null
https://raw.githubusercontent.com/j-mie6/ParsleyHaskell/045ab78ed7af0cbb52cf8b42b6aeef5dd7f91ab2/parsley-core/src/ghc/Parsley/Internal/Core/Identifiers.hs
haskell
# OPTIONS_GHC -Wno - incomplete - patterns # # LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving # GeneralizedNewtypeDeriving #-} | Module : Parsley . Internal . Backend . Machine . Identifiers Description : frontend specific identifiers . License : BSD-3 - Clause M...
5381d39add6f785c2744347958e7ec95a5d55378869311a2f62ee42c83ddd241
mmottl/gsl-ocaml
eigen.ml
gsl - ocaml - OCaml interface to GSL Copyright ( © ) 2002 - 2012 - Olivier Andrieu Distributed under the terms of the GPL version 3 open Vectmat let () = Error.init () type symm_ws external _symm_alloc : int -> symm_ws = "ml_gsl_eigen_symm_alloc" external _sy...
null
https://raw.githubusercontent.com/mmottl/gsl-ocaml/76f8d93cccc1f23084f4a33d3e0a8f1289450580/src/eigen.ml
ocaml
* Real Nonsymmetric Matrices
gsl - ocaml - OCaml interface to GSL Copyright ( © ) 2002 - 2012 - Olivier Andrieu Distributed under the terms of the GPL version 3 open Vectmat let () = Error.init () type symm_ws external _symm_alloc : int -> symm_ws = "ml_gsl_eigen_symm_alloc" external _sy...
48581c72986a3fa60fa631ead60449331e89fffe16bfed7ece62a4a596d1dc54
KenDickey/Crosstalk
selector-lookup.scm
;;; FILE: "selector-lookup.scm" ;;; IMPLEMENTS: Selector->Method lookup strategy AUTHOR : DATE : 10 December 2017 ;; Strategy for selector lookup ;; ;; In place of a Class or hash-table, each St object has a slot with ;; a vector of closures which are its methods. ;; Selectors are assigned an i d when first us...
null
https://raw.githubusercontent.com/KenDickey/Crosstalk/c4a315baf039e714980e14f5b07860632b9bd0e6/selector-lookup.scm
scheme
FILE: "selector-lookup.scm" IMPLEMENTS: Selector->Method lookup strategy Strategy for selector lookup In place of a Class or hash-table, each St object has a slot with a vector of closures which are its methods. The id is used to find the appropriate method in the method vector. No hashes. No caches. Holes ...
AUTHOR : DATE : 10 December 2017 Selectors are assigned an i d when first used to refer to a method . Holes in the vector are kept track of in slot zero . 0 | # f | | -- > | ( ( 5 . 1 ) ( 9 . 2 ) ( 15 . 0 ) ) 1 | m1 | | m1 | 2 | m2 | | m2 | 4 | m4 | | m4 | 5 | # f | |...
d52ce184b0c3a3baa58735f0d4e7e3526e6c748f88303d1e5183a2e047796d3c
Clozure/ccl
arm-arch.lisp
-*- Mode : Lisp ; Package : ( ARM : use CL ) -*- ;;; ;;; Copyright 2010 Clozure Associates ;;; 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...
null
https://raw.githubusercontent.com/Clozure/ccl/6c1a9458f7a5437b73ec227e989aa5b825f32fd3/compiler/ARM/arm-arch.lisp
lisp
Package : ( ARM : use CL ) -*- Copyright 2010 Clozure Associates 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 ...
distributed under the License is distributed on an " AS IS " BASIS , (defpackage "ARM" (:use "CL") #+arm-target (:nicknames "TARGET")) (require "ARCH") (in-package "ARM") (eval-when (:compile-toplevel :load-toplevel :execute) (defvar *arm-register-names* ()) (defun get-arm-register (name) (let* ((pa...
f9d76dd38492b1fb4aa3c1119ea85ddb86ca3ae734fa1ed133ff0c62deed7f25
xmonad/xmonad-contrib
DebugStack.hs
----------------------------------------------------------------------------- -- | -- Module : XMonad.Hooks.DebugStack Description : Dump the state of the StackSet . Copyright : ( c ) , 2014 -- License : BSD3-style (see LICENSE) -- -- Maintainer : -- Stability : unstable -- Portability :...
null
https://raw.githubusercontent.com/xmonad/xmonad-contrib/3058d1ca22d565b2fa93227fdde44d8626d6f75d/XMonad/Hooks/DebugStack.hs
haskell
--------------------------------------------------------------------------- | Module : XMonad.Hooks.DebugStack License : BSD3-style (see LICENSE) Maintainer : Stability : unstable Portability : not portable also provided. ----------------------------------------------------------------------...
Description : Dump the state of the StackSet . Copyright : ( c ) , 2014 Dump the state of the ' StackSet ' . A @logHook@ and @handleEventHook@ are module XMonad.Hooks.DebugStack (debugStack ,debugStackFull ,debugStackString ...
00f9609b63cf86e0b3b3c2cdd418ac38842c9c18be1f68331b44a6030767ba6e
aleator/CV
Corners.hs
module CV.Corners ( HarrisDesc , Corner(..) , ImageWithCorners(..) , harris , harrisCorners ) where import CV.Bindings.Types import CV.Bindings.Core import CV.Bindings.ImgProc import CV.Image import CV.Operations import CV.Iterators import System.IO.Unsafe type HarrisDesc = Float data Corner d = Corner { pos :: ...
null
https://raw.githubusercontent.com/aleator/CV/1e2c9116bcaacdf305044c861a1b36d0d8fb71b7/CV/Corners.hs
haskell
threshold for selecting harris corners image _with_harris_applied_ (TODO: describe images with operations applied to them?)
module CV.Corners ( HarrisDesc , Corner(..) , ImageWithCorners(..) , harris , harrisCorners ) where import CV.Bindings.Types import CV.Bindings.Core import CV.Bindings.ImgProc import CV.Image import CV.Operations import CV.Iterators import System.IO.Unsafe type HarrisDesc = Float data Corner d = Corner { pos :: ...
e706def4a76d9be4b78abe96a053a3374c269ef84c42d133e64ac28e28396a1c
project-oak/hafnium-verification
CostIssues.ml
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
null
https://raw.githubusercontent.com/project-oak/hafnium-verification/6071eff162148e4d25a0fedaea003addac242ace/experiments/ownership-inference/infer/infer/src/base/CostIssues.ml
ocaml
* 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 ...
78b993fb0927c4576ab4cb072ec23ebf4656a3519096251f4b9d9849071b16ae
basho/riak_core
riak_core_apl.erl
%% ------------------------------------------------------------------- %% riak_core : Core Active Preference Lists %% Copyright ( c ) 2007 - 2010 Basho Technologies , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file ...
null
https://raw.githubusercontent.com/basho/riak_core/762ec81ae9af9a278e853f1feca418b9dcf748a3/src/riak_core_apl.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissi...
riak_core : Core Active Preference Lists Copyright ( c ) 2007 - 2010 Basho Technologies , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS ...
b021e0fb9ca57eb43a76c1c729f77a8bcf267a7067b038f74816d95aa89af3f3
puffnfresh/sonic2
Offsets.hs
module Game.Sega.Sonic.Offsets where import qualified Data.ByteString as BS import Data.Word (Word32) data Offset = Offset Word32 Word32 deriving (Eq, Ord, Show) sineData :: Offset sineData = Offset 0x33CE 0x364E angleData :: Offset angleData = Offset 0x36B4 0X37B6 paletteSonic :: Offset pa...
null
https://raw.githubusercontent.com/puffnfresh/sonic2/0abc3e109a847582c2e16edb13e83e611419fc8a/src/Game/Sega/Sonic/Offsets.hs
haskell
module Game.Sega.Sonic.Offsets where import qualified Data.ByteString as BS import Data.Word (Word32) data Offset = Offset Word32 Word32 deriving (Eq, Ord, Show) sineData :: Offset sineData = Offset 0x33CE 0x364E angleData :: Offset angleData = Offset 0x36B4 0X37B6 paletteSonic :: Offset pa...
cbdfaffd9c805a9d08cce54c0792b2c53b2aa76991787f545dcba5981523911a
jeromesimeon/Galax
physical_load.mli
(***********************************************************************) (* *) (* GALAX *) (* XQuery Engine *) (* ...
null
https://raw.githubusercontent.com/jeromesimeon/Galax/bc565acf782c140291911d08c1c784c9ac09b432/physicaldm/physical_load.mli
ocaml
********************************************************************* GALAX XQuery Engine ...
Copyright 2001 - 2007 . $ I d : physical_load.mli , v 1.5 2007/02/01 22:08:51 simeon Exp $ open Streaming_types open Nodeid open Nodeid_context open Physical_value type document_id_generator = unit -> docid type load_xml_value_function = ordered_xml_stream -> it...
be5921400af1e7b91b1b748126886d8bba64d5978b221ab3502200bae418abee
rudymatela/leancheck
LeanCheck.hs
-- | Module : Test . Copyright : ( c ) 2015 - 2020 License : 3 - Clause BSD ( see the file LICENSE ) Maintainer : < > -- LeanCheck is a simple enumerative property - based testing library . -- -- A __property__ is a function returning a 'Bool' that should be 'True' for -- all possible ...
null
https://raw.githubusercontent.com/rudymatela/leancheck/af299d3616a362816c21931ada6fa49a2af7f911/src/Test/LeanCheck.hs
haskell
| A __property__ is a function returning a 'Bool' that should be 'True' for all possible choices of arguments. Properties can be viewed as a parameterized unit tests. we evaluate: 'True' indicates success. 'False' indicates a bug. For example: > > import Data.List (sort) > True we evaluate: > cou...
Module : Test . Copyright : ( c ) 2015 - 2020 License : 3 - Clause BSD ( see the file LICENSE ) Maintainer : < > LeanCheck is a simple enumerative property - based testing library . To check if a property ' holds ' by testing up to a thousand values , > holds 1000 property > > ho...
42cb920730700cfcc71dcaa10ff3eadd7a1356dd89f0f81089c1acdbb2ce6143
sanel/hubris
pwd.clj
;; example of custom command (defcommand pwd "Print current directory." [] (.getCanonicalPath (java.io.File. ".")))
null
https://raw.githubusercontent.com/sanel/hubris/e119f13a855b4ec86db8d8deb696f8dd59ceea17/commands/pwd.clj
clojure
example of custom command
(defcommand pwd "Print current directory." [] (.getCanonicalPath (java.io.File. ".")))
8d0d52fbdcc4e7654bebc55278d073ceb64d78ceb2af1be6d536df7723e278c9
haskell/cabal
setup.test.hs
import Test.Cabal.Prelude -- Test building a dynamic library/executable which uses Template -- Haskell main = setupAndCabalTest $ do skipUnless "no shared libs" =<< hasSharedLibraries setup_build ["--enable-shared", "--enable-executable-dynamic"]
null
https://raw.githubusercontent.com/haskell/cabal/00a2351789a460700a2567eb5ecc42cca0af913f/cabal-testsuite/PackageTests/TemplateHaskell/dynamic/setup.test.hs
haskell
Test building a dynamic library/executable which uses Template Haskell
import Test.Cabal.Prelude main = setupAndCabalTest $ do skipUnless "no shared libs" =<< hasSharedLibraries setup_build ["--enable-shared", "--enable-executable-dynamic"]
9ffd0dc07f5df56cba961927142a932a6c657f8b3c9e44beed0c090d84733075
eryx67/vk-api-example
Utils.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE TypeFamilies #-} -- | module VK.App.Internal.Utils where import Control.Concurrent (forkIO) import Control.Monad (forM_, void) import qualified Data.Text as T...
null
https://raw.githubusercontent.com/eryx67/vk-api-example/4ce634e2f72cf0ab6ef3b80387ad489de9d8c0ee/src/VK/App/Internal/Utils.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # # LANGUAGE TypeFamilies # |
# LANGUAGE FlexibleContexts # module VK.App.Internal.Utils where import Control.Concurrent (forkIO) import Control.Monad (forM_, void) import qualified Data.Text as T import Data.Text.Format import qualified Data.Text.Lazy as LT import Data.Typeable ...
0f6e05f17c96e6c7b516ab924a2e1bc9bfe6470d24a069e207e5b4e396cf73ba
antono/guix-debian
file-systems.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2013 , 2014 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 3 of t...
null
https://raw.githubusercontent.com/antono/guix-debian/85ef443788f0788a62010a942973d4f7714d10b4/gnu/system/file-systems.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2013 , 2014 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (gnu system file-systems) #:use-module (guix records) #:export (<file-system> ...
04f4e9845086aead276a673387dca8adff998e2d7d9e01110f5d4c14b9201c2b
garrigue/lablgl
lesson3.ml
* This code was created by 99 * If you 've found this code useful , please let me know . * * Visit Jeff at / * * Ported to O'Caml / lablglut by 8/02 * For port - specific issues , comments , etc . , please * contact * This code was created by Jeff Molofee '99 * If you've found this c...
null
https://raw.githubusercontent.com/garrigue/lablgl/d76e4ac834b6d803e7a6c07c3b71bff0e534614f/LablGlut/examples/nehe/lesson3.ml
ocaml
Draw the triangle Draw the square Handle window reshape events Handle keyboard events
* This code was created by 99 * If you 've found this code useful , please let me know . * * Visit Jeff at / * * Ported to O'Caml / lablglut by 8/02 * For port - specific issues , comments , etc . , please * contact * This code was created by Jeff Molofee '99 * If you've found this c...
0be80e8e516f7d801f778a675ee5fb82fdf6013391e6c8f25529f747bb3a2e49
anwarmamat/cmsc330fall20
public.ml
open OUnit2 open D10.Lexer open D10.Parser open D10.Interpreter let test_lex_empty _ = assert_equal [Tok_EOF] (lexer " ") let test_lex_one _ = assert_equal [Tok_Int 1; Tok_EOF] (lexer "1") let test_lex_one_plus_two _ = assert_equal [Tok_Int 1; Tok_Plus; Tok_Int 2; Tok_EOF] (lexer "1+ 2") let test_lex_one_ti...
null
https://raw.githubusercontent.com/anwarmamat/cmsc330fall20/1f185a757ad86c37587ec15d580ea0ff728d9472/disc10/test/public/public.ml
ocaml
open OUnit2 open D10.Lexer open D10.Parser open D10.Interpreter let test_lex_empty _ = assert_equal [Tok_EOF] (lexer " ") let test_lex_one _ = assert_equal [Tok_Int 1; Tok_EOF] (lexer "1") let test_lex_one_plus_two _ = assert_equal [Tok_Int 1; Tok_Plus; Tok_Int 2; Tok_EOF] (lexer "1+ 2") let test_lex_one_ti...
2faa537a31ae4ca9dc327b9d044a706d5316b7b106d417bfb3bdb01b7035f93e
Frama-C/Frama-C-snapshot
ast_init.ml
open Cil_types let apply _ = let f = Globals.Functions.find_by_name "f" in let s = Kernel_function.find_first_stmt f in let l = Kernel_function.find_all_enclosing_blocks s in List.iter (fun b -> b.bstmts <- Cil.mkStmtOneInstr (Skip (Cil_datatype.Stmt.loc s)) :: b.bstmts) l; Ast.mark_as_grown ...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/tests/syntax/ast_init.ml
ocaml
open Cil_types let apply _ = let f = Globals.Functions.find_by_name "f" in let s = Kernel_function.find_first_stmt f in let l = Kernel_function.find_all_enclosing_blocks s in List.iter (fun b -> b.bstmts <- Cil.mkStmtOneInstr (Skip (Cil_datatype.Stmt.loc s)) :: b.bstmts) l; Ast.mark_as_grown ...
626d7065524af23b876e8b84d8c0a40cba78b8d3b783f39444b8a08831bbb564
tonsky/advent2018
day3.clj
(ns advent2018.day3 (:require [clojure.string :as str] [clojure.set :as set] [clojure.walk :as walk])) (def input (slurp "inputs/day3")) (def lines (str/split input #"\n")) (defn parse-int [s] (Integer/parseInt s)) (defn parse-line [l] (let [[_ id l t w h] (re-matches #"#(\d+) @ (\d+),(\d+): (\d+)x(\...
null
https://raw.githubusercontent.com/tonsky/advent2018/6f8d15bf37a150a288e3447df7766c362f7086e9/src/advent2018/day3.clj
clojure
(ns advent2018.day3 (:require [clojure.string :as str] [clojure.set :as set] [clojure.walk :as walk])) (def input (slurp "inputs/day3")) (def lines (str/split input #"\n")) (defn parse-int [s] (Integer/parseInt s)) (defn parse-line [l] (let [[_ id l t w h] (re-matches #"#(\d+) @ (\d+),(\d+): (\d+)x(\...
68f7160d3da55314b6dc5a441d4f30d08199192b7f2a2656b0015665f24a736c
facebook/duckling
Rules.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. {-# LANGUAGE GADTs #-} # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} module Duckling.AmountOfM...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/AmountOfMoney/VI/Rules.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. # LANGUAGE GADTs # # LANGUAGE OverloadedStrings #
Copyright ( c ) 2016 - present , Facebook , Inc. # LANGUAGE LambdaCase # module Duckling.AmountOfMoney.VI.Rules ( rules ) where import Data.Maybe import Data.String import Prelude import Duckling.AmountOfMoney.Helpers import Duckling.AmountOfMoney.Types (Currency(..), AmountOfMoneyData (..)) import Duckling....
6c9664d2b3960104f03538103e44e2ec6a6aa5d236d72bfa0832384cc281fa32
easyuc/EasyUC
ucParseFile.ml
UcParseFile module Parse a DSL Specification open EcLocation open EcSymbols open UcMessage open UcLexer module L = Lexing let lexbuf_from_channel file ch = let lexbuf = Lexing.from_channel ch in lexbuf.Lexing.lex_curr_p <- { Lexing.pos_fname = file; Lexing.pos_lnum = 1; Lexing.pos_...
null
https://raw.githubusercontent.com/easyuc/EasyUC/0ee14ef8b024a8e7acde1035d06afecbdcaec990/uc-dsl/ucdsl-proj/src/ucParseFile.ml
ocaml
file name, interpreted relative to working directory, if not fully qualified no need to close channel
UcParseFile module Parse a DSL Specification open EcLocation open EcSymbols open UcMessage open UcLexer module L = Lexing let lexbuf_from_channel file ch = let lexbuf = Lexing.from_channel ch in lexbuf.Lexing.lex_curr_p <- { Lexing.pos_fname = file; Lexing.pos_lnum = 1; Lexing.pos_...
edc92634da2522ca54fce9e27354b02d66d38a520dec987627b539f46b7a1e18
alan-j-hu/camyll
url.ml
let relativize ~src ~dest = let chop_common_prefix url1 url2 = let rec loop url1 url2 = match (url1, url2) with | x :: xs, y :: ys when x = y -> loop xs ys | url1, url2 -> (url1, url2) in loop url1 url2 in if String.length dest > 0 && String.get dest 0 = '/' then let src_dir = ...
null
https://raw.githubusercontent.com/alan-j-hu/camyll/7caa78b2930e77c40c3906f383a5264a99588821/src/url.ml
ocaml
chop the filename off the end of the source path chop the filename off the end of the dest path
let relativize ~src ~dest = let chop_common_prefix url1 url2 = let rec loop url1 url2 = match (url1, url2) with | x :: xs, y :: ys when x = y -> loop xs ys | url1, url2 -> (url1, url2) in loop url1 url2 in if String.length dest > 0 && String.get dest 0 = '/' then let src_dir = ...
d4883e9504c92f9835125c2e92b4fcd811098a90680ab4fc10c7494e1db9f07a
district0x/district-designer
graphql_resolvers.cljs
(ns users.server.graphql-resolvers) (def resolvers-map {})
null
https://raw.githubusercontent.com/district0x/district-designer/3f2a585b866b6e173f2cb7b32ecadcffa33e2804/src/users/server/graphql_resolvers.cljs
clojure
(ns users.server.graphql-resolvers) (def resolvers-map {})
3ef5dd5f1401e1ccf23473e3dd31cd11737a112079affd0ff2ac785c84e15f5d
AbstractMachinesLab/caramel
typecore.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/AbstractMachinesLab/caramel/7d4e505d6032e22a630d2e3bd7085b77d0efbb0c/vendor/ocaml-lsp-1.4.0/ocaml-lsp-server/vendor/merlin/src/ocaml/typing/410/typecore.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 open Asttypes open Types type type_forcing_context = | If_conditional | If_no_else_branch | While...
c705658cfb70e1ab8b0aea4e2ac696683c6f72bd0758dcfa4640dd5f7430fb45
racket/gui
printer-dc.rkt
#lang racket/base (require racket/class racket/math racket/draw/private/local racket/draw/private/dc racket/draw/unsafe/cairo racket/draw/private/bitmap racket/draw/private/bitmap-dc racket/draw/private/record-dc racket/draw/private/ps-setup ...
null
https://raw.githubusercontent.com/racket/gui/d1fef7a43a482c0fdd5672be9a6e713f16d8be5c/gui-lib/mred/private/wx/cocoa/printer-dc.rkt
racket
#lang racket/base (require racket/class racket/math racket/draw/private/local racket/draw/private/dc racket/draw/unsafe/cairo racket/draw/private/bitmap racket/draw/private/bitmap-dc racket/draw/private/record-dc racket/draw/private/ps-setup ...
6c72179fb6ab2c92c93d560abdee00f45f7d200d2b152c56ad8e94f5bff389a4
anonymous-admin/anonymous
interpreter.erl
%%-------------------------------------------------------------------- @author ( C ) 2011 %% @doc interpreter.erl %% @end Created : 18 Nov 2011 by %%-------------------------------------------------------------------- -module(interpreter). -author('Sorush Arefipour'). -export([create_record/1, get_track...
null
https://raw.githubusercontent.com/anonymous-admin/anonymous/0d178f8f02dce74d5f76d78f81f70da9229a77cd/Testenviro/interpreter.erl
erlang
-------------------------------------------------------------------- @doc interpreter.erl @end -------------------------------------------------------------------- ************************************************************************************************************ ****************************************...
@author ( C ) 2011 Created : 18 Nov 2011 by -module(interpreter). -author('Sorush Arefipour'). -export([create_record/1, get_tracker_response_info/1, init/1, handle_cast/2, handle_call/3]). -compile(export_all). -behaviour(gen_server). -include("defs.hrl"). @author start_link() -> start_link([]...
c669fe245bc03ee21f791877a1dd3810d1b7177900f370dbceb8dcbe0b14acdf
jbracker/supermonad
ScopeLevel.hs
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * H M T C * * ...
null
https://raw.githubusercontent.com/jbracker/supermonad/2595396a225a65b1dce6ed9a1ce59960f392a55b/examples/monad/hmtc/monad-param/ScopeLevel.hs
haskell
| ScopeLevel: Definition of and operation on scope level Scope level :: Int :: ScopeLvl :: ScopeLvl -> Int :: ScopeLvl -> Int :: ScopeLvl -> ScopeLvl :: ScopeLvl -> ScopeLvl ---------------------------------------------------------------------------- Scope level ------------------------------------------------...
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * H M T C * * ...
334c613277c09811287b02e3de7246bf4f4ca1cf2d5ac8fc21188cace2ff8d8a
twystd/GA144
hccforth.erl
-module(hccforth). % EXPORTS -export([step/0,go/0]). % INCLUDES -include("include/f18A.hrl"). RECORDS % API step() -> M = self(), L = spawn(fun() -> peek(M,undefined) end), P = fun(CPU) -> T = CPU#cpu.t, S = CPU#cpu.s, {I,DS} = CPU#cpu.ds, ...
null
https://raw.githubusercontent.com/twystd/GA144/741d2f2fca82133d594c51807115bd5121aa5350/erlang/src/hccforth.erl
erlang
EXPORTS INCLUDES API
-module(hccforth). -export([step/0,go/0]). -include("include/f18A.hrl"). RECORDS step() -> M = self(), L = spawn(fun() -> peek(M,undefined) end), P = fun(CPU) -> T = CPU#cpu.t, S = CPU#cpu.s, {I,DS} = CPU#cpu.ds, DSX = rotate(arra...
0aca163f60c98d4964bb3a34e1b3a5506eb7742b8f675f493cf291e5c9dfe3fb
travitch/foreign-inference
Escape.hs
# OPTIONS_GHC -fno - warn - orphans # # LANGUAGE OverloadedStrings , FlexibleContexts , RankNTypes # # LANGUAGE DeriveGeneric , ViewPatterns , TemplateHaskell # module Foreign.Inference.Analysis.Escape ( EscapeSummary, identifyEscapes, instructionEscapes, instructionEscapesWith, -- * Testing EscapeClass(.....
null
https://raw.githubusercontent.com/travitch/foreign-inference/9cc0f7c730f7cd19afbd00d890abbc7109391cc6/src/Foreign/Inference/Analysis/Escape.hs
haskell
* Testing escapeUseGraphs, useGraphvizRepr import Text.Printf import Debug.Trace debug = flip trace | The ways a value can escape from a function ^ Index escaped into | The monad in which we construct the value flow graph type GraphBuilder = State GraphState | This is the underlying bottom-up analysis to ide...
# OPTIONS_GHC -fno - warn - orphans # # LANGUAGE OverloadedStrings , FlexibleContexts , RankNTypes # # LANGUAGE DeriveGeneric , ViewPatterns , TemplateHaskell # module Foreign.Inference.Analysis.Escape ( EscapeSummary, identifyEscapes, instructionEscapes, instructionEscapesWith, EscapeClass(..), escapeResu...
a49c9dad6369454994420aa7570564373fc55f867a231cf639e2ce1f35fe52a6
mirage/cactus
leaf.mli
* Copyright ( c ) 2021 Tarides < > * Copyright ( c ) 2021 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SO...
null
https://raw.githubusercontent.com/mirage/cactus/3eb2a4abee79bf8f20de5b4b12a57c3421c3e2fe/src/leaf.mli
ocaml
* Copyright ( c ) 2021 Tarides < > * Copyright ( c ) 2021 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SO...
15dc341b1ec47c867ff52a102e8aae43ce2cc36504f5cdf769e6b3d86a634862
AbstractMachinesLab/caramel
either0.ml
type ('f, 's) t = First of 'f | Second of 's
null
https://raw.githubusercontent.com/AbstractMachinesLab/caramel/7d4e505d6032e22a630d2e3bd7085b77d0efbb0c/vendor/ocamlformat-0.17.0/vendor/compat/either0.ml
ocaml
type ('f, 's) t = First of 'f | Second of 's
63f0e0d1d4874a47c90e507989769f648184d5aea898314c3f7c75d6a216b2d7
ocsigen/wikidoc
wiki_menulatex.ml
Ocsimore * Copyright ( C ) 2010 * * 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 2 of the License , or * ( at your option ) any later version . * * ...
null
https://raw.githubusercontent.com/ocsigen/wikidoc/8c10fd2998297a15d58b0f8f5c4f31e78376e161/src/latex_of_wiki/wiki_menulatex.ml
ocaml
implement at least somthing for a_file?
Ocsimore * Copyright ( C ) 2010 * * 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 2 of the License , or * ( at your option ) any later version . * * ...
308d292602851aaacedfc7db11ac2070fc84833ea067c0a8e5f5a6c42d1cff08
kelamg/HtDP2e-workthrough
ex253.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-intermediate-reader.ss" "lang")((modname ex253) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal...
null
https://raw.githubusercontent.com/kelamg/HtDP2e-workthrough/ec05818d8b667a3c119bea8d1d22e31e72e0a958/HtDP/Abstraction/ex253.rkt
racket
about the language level of this file in a form that our tools can easily process. [Number -> Boolean] [Number Number Number -> Number] [Number -> [List-of Number]] [[List-of Number] -> Boolean]
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-reader.ss" "lang")((modname ex253) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (odd? 42) (even? 42) (number? 42) [ Boolean String - ...
e800031244c8be72f407ecc3213258caa14fde1ef7f65e07a3de579f03b2e0a0
deg/sodium
extensions.cljs
Author : ( ) Copyright ( c ) 2017 , (ns sodium.extensions (:require [clojure.spec.alpha :as s] [reagent.core :as reagent] [re-frame.core :as re-frame] [re-frame.loggers :refer [console]] [iron.re-utils :refer [<sub >evt sub->fn event->fn]] [iron.utils :refer [ci-sort validate]] [sodium....
null
https://raw.githubusercontent.com/deg/sodium/1855fe870c3719af7d16d85c2558df1799a9bd32/src/sodium/extensions.cljs
clojure
HEADERS Various page and section headers/dividers FORM FIELDS Working text-area don't yet fully understand. Issues: - :value does not behave right. It causes the cursor to jump to end of text after each input. This can be fixed by using :default-value instead, but that creates problems in situations where w...
Author : ( ) Copyright ( c ) 2017 , (ns sodium.extensions (:require [clojure.spec.alpha :as s] [reagent.core :as reagent] [re-frame.core :as re-frame] [re-frame.loggers :refer [console]] [iron.re-utils :refer [<sub >evt sub->fn event->fn]] [iron.utils :refer [ci-sort validate]] [sodium....
c132cac76cdab969457dbe9a6c4cf8f380db5ca4ee9d794d2a0f08c6dcb71067
Helium4Haskell/helium
Overlap2.hs
main :: Bool -> () main True = () main False = () main _ = ()
null
https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/staticwarnings/Overlap2.hs
haskell
main :: Bool -> () main True = () main False = () main _ = ()
deb2ec8c96397d687869a851976e72a04d38913cfd0d1ce9ed38b85e76b0b241
avichalp/hql
core_test.clj
(ns hql.core-test (:require [clojure.test :refer :all] [hql.core])) (defmacro deftest-graphql [& ts] `(deftest graphql-test ~@(mapv (fn [[d gq q]] `(testing ~d (is (= ~gq (hql.core/graphql ~q))))) ts))) (deftest-graphql ["Test a simple query" "...
null
https://raw.githubusercontent.com/avichalp/hql/b216eaa0de499d29b891a28e5c8f21b7a1cbee45/test/hql/core_test.clj
clojure
(ns hql.core-test (:require [clojure.test :refer :all] [hql.core])) (defmacro deftest-graphql [& ts] `(deftest graphql-test ~@(mapv (fn [[d gq q]] `(testing ~d (is (= ~gq (hql.core/graphql ~q))))) ts))) (deftest-graphql ["Test a simple query" "...
6674a746a8f4f90dfcec67f13b4d687e10caba6677ebd63ad8ad22d7417a2b7b
joaotavora/sly
slynk-retro.lisp
(defpackage :slynk-retro (:use :cl :slynk :slynk-api)) (in-package :slynk-retro) (defun ensure-slynk-package-nicknames (&rest ignored) "Nickname all SLYNK-* package to SWANK-*" (declare (ignore ignored)) (loop for package in (list-all-packages) for package-name = (package-name package) when (searc...
null
https://raw.githubusercontent.com/joaotavora/sly/5966d68727898fa6130fb6bb02208f70aa8d5ce3/contrib/slynk-retro.lisp
lisp
Take this chance to load ~/.swank.lisp and ~/.swankrc if no ~/.slynk.lisp or ~/.slynkrc have already been loaded.
(defpackage :slynk-retro (:use :cl :slynk :slynk-api)) (in-package :slynk-retro) (defun ensure-slynk-package-nicknames (&rest ignored) "Nickname all SLYNK-* package to SWANK-*" (declare (ignore ignored)) (loop for package in (list-all-packages) for package-name = (package-name package) when (searc...
6792c981f4d71d434041a70d55e5961af263664b98a77c5dbabfd24de9a63f40
backtracking/ocamlgraph
dGraphRandModel.ml
(**************************************************************************) (* *) (* This file is part of OcamlGraph. *) (* *) Copyright...
null
https://raw.githubusercontent.com/backtracking/ocamlgraph/1c028af097339ca8bc379436f7bd9477fa3a49cd/src/dGraphRandModel.ml
ocaml
************************************************************************ This file is part of OcamlGraph. ...
Copyright ( C ) 2009 - 2010 CEA ( Commissariat � l' � ) Lesser General Public License as published by the Free Software Foundation , version 2.1 , with a linking exception . ( ) ...
264ac8f611caadbc19704db1ed5e1e2e6a70b2ad5615409bbf7ab561f8df2c7f
bos/pronk
Environment.hs
# LANGUAGE DeriveDataTypeable , OverloadedStrings , RecordWildCards # module Network.HTTP.LoadTest.Environment ( Environment(..) , environment ) where import Control.Applicative ((<$>), (<*>), empty) import Data.Aeson.Types (Value(..), FromJSON(..), ToJSON(..), (.:), (.=), object) import Data.Data (...
null
https://raw.githubusercontent.com/bos/pronk/e3a0f789801237b5abdd7b2c65d15b47d00d0b98/lib/Network/HTTP/LoadTest/Environment.hs
haskell
# LANGUAGE DeriveDataTypeable , OverloadedStrings , RecordWildCards # module Network.HTTP.LoadTest.Environment ( Environment(..) , environment ) where import Control.Applicative ((<$>), (<*>), empty) import Data.Aeson.Types (Value(..), FromJSON(..), ToJSON(..), (.:), (.=), object) import Data.Data (...
0e4124859e18485e6d8dc70498c6dc99278abc3813bc8d111652367fbb39229e
incoherentsoftware/defect-process
Types.hs
module Level.Room.Item.Pickup.Types ( ItemPickupIsBuyConfirmOnInteract , ItemPickupBuyConfirmStartMessages , ItemPickupThinkBuyConfirm , ItemPickupUpdateBuyConfirm , ItemPickupDrawBuyConfirm , ItemPickupBuyConfirmData(..) , ItemPickupStatus(..) , ItemPickupData(..) ) where import qu...
null
https://raw.githubusercontent.com/incoherentsoftware/defect-process/4ce836f8996f5d5be050b6fe3a79c42a7ae7caa8/src/Level/Room/Item/Pickup/Types.hs
haskell
module Level.Room.Item.Pickup.Types ( ItemPickupIsBuyConfirmOnInteract , ItemPickupBuyConfirmStartMessages , ItemPickupThinkBuyConfirm , ItemPickupUpdateBuyConfirm , ItemPickupDrawBuyConfirm , ItemPickupBuyConfirmData(..) , ItemPickupStatus(..) , ItemPickupData(..) ) where import qu...
397e440117fddccf395d4398961f5f3767a938c1ea77fc5bbdb6bc95ef95c5e9
dyzsr/ocaml-selectml
tophooks.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/toplevel/native/tophooks.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the type lookup_fn = string -> Obj.t option type load_fn = Format.formatter -> string -> Lambda.program ->...
32d2e2c54bb3b2a53d8eea2be1551516c19bc9e94335357d421fd08550e08143
cstar/ejabberd-old
pubsub_subscription_odbc.erl
%%% ==================================================================== ` ` The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %%% compliance with the License. You should have received a copy of the %%% Erlang Public License ...
null
https://raw.githubusercontent.com/cstar/ejabberd-old/559f8b6b0a935710fe93e9afacb4270d6d6ea00f/src/mod_pubsub/pubsub_subscription_odbc.erl
erlang
==================================================================== 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 via the world wide web at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the...
` ` 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 " The Initial Developer of the Original Code is ProcessOne . Portions created by ProcessOne are C...
c6dc30824bdce17f2e39dd3cbd73b9f8a8fc56f872067fb95638a9e8a8cfd311
pedestal/pedestal-app
cljs_formatter.cljs
Copyright 2013 Relevance , Inc. ; The use and distribution terms for this software are covered by the Eclipse Public License 1.0 ( ) ; which can be found in the file epl-v10.html at the root of this distribution. ; ; By using this software in any fashion, you are agreeing to be bound by ; the terms of this licens...
null
https://raw.githubusercontent.com/pedestal/pedestal-app/509ab766a54921c0fbb2dd7c6a3cb20223b8e1a1/app/src/io/pedestal/app/render/push/cljs_formatter.cljs
clojure
The use and distribution terms for this software are covered by the which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software. T...
Copyright 2013 Relevance , Inc. Eclipse Public License 1.0 ( ) (ns io.pedestal.app.render.push.cljs-formatter (:require [domina :as d] [domina.xpath :as dx] [clojure.string :as string] [goog.dom :as gdom] [goog.style :as style] [goog.color :as color]...
aec285238d498c132ff2f2d8c455459e45476e1eca727f27f621c1ab2d38365c
inria-parkas/sundialsml
ark_heat1D.ml
--------------------------------------------------------------- * Programmer(s ): @ SMU * --------------------------------------------------------------- * OCaml port : , , Jan 2016 . * --------------------------------------------------------------- * Copyright ( c ) 2015 , Southern Methodist Unive...
null
https://raw.githubusercontent.com/inria-parkas/sundialsml/a1848318cac2e340c32ddfd42671bef07b1390db/examples/arkode/C_serial/ark_heat1D.ml
ocaml
user data structure number of intervals mesh spacing diffusion coefficient Functions called by the solver f routine to compute the ODE RHS function f(t,y). iterate over domain, computing all equations left boundary condition right boundary condition source term general problem parameters...
--------------------------------------------------------------- * Programmer(s ): @ SMU * --------------------------------------------------------------- * OCaml port : , , Jan 2016 . * --------------------------------------------------------------- * Copyright ( c ) 2015 , Southern Methodist Unive...
accbedb080ea4fdf27e7d9011130ac754d31b23045e96b90ee81da458e2dcae2
bos/rwh
Indentation.hs
{-- snippet foo --} foo = let firstDefinition = blah blah -- a comment-only line is treated as empty continuation blah -- we reduce the indentation, so this is a new definition secondDefinition = yada yada continuation yada ...
null
https://raw.githubusercontent.com/bos/rwh/7fd1e467d54aef832f5476ebf5f4f6a898a895d1/examples/ch04/Indentation.hs
haskell
- snippet foo - a comment-only line is treated as empty we reduce the indentation, so this is a new definition - /snippet foo -
foo = let firstDefinition = blah blah continuation blah secondDefinition = yada yada continuation yada in whatever
1d330a036481858050081bda1da57950ee630f3fe435ecd32ba61466e6a7650f
cac-t-u-s/om-sharp
textbuffer.lisp
;============================================================================ ; om#: visual programming language for computer-assisted music composition ;============================================================================ ; ; This program is free software. For information on usage ; and redistribution, see...
null
https://raw.githubusercontent.com/cac-t-u-s/om-sharp/80f9537368471d0e6e4accdc9fff01ed277b879e/src/packages/basic/text/textbuffer.lisp
lisp
============================================================================ om#: visual programming language for computer-assisted music composition ============================================================================ This program is free software. For information on usage and redistribution, see the "...
File author : (in-package :om) (defclass* textbuffer (named-object) ((contents :initarg :contents :initform nil :accessor contents :documentation "data or text input/output") (input-mode :initform :lines-cols :accessor input-mode :documentation "determines how input <contents> is read and converted to text"...
d77705462f729757a60737c8e0667248d0283d8aecee24cd848360461be3ea15
hmac/kite
ModuleGroupCompiler.hs
# LANGUAGE DuplicateRecordFields # module ModuleGroupCompiler where This module takes a ModuleGroup , compiles each module in it , and somehow -- merges it all together. import Control.Monad.Except ( MonadError ) import qualified Chez.Compile as Chez import Data.Name ...
null
https://raw.githubusercontent.com/hmac/kite/f58758f20310e23cb50eb41537ec04bfa820cc90/src/ModuleGroupCompiler.hs
haskell
merges it all together. We'll attempt this as follows: All top level declarations will be qualified with their module name. When a module A imports module B, we'll insert top level declarations into A to import aliases, qualification, hiding etc when we support them. Example: module A module B ...
# LANGUAGE DuplicateRecordFields # module ModuleGroupCompiler where This module takes a ModuleGroup , compiles each module in it , and somehow import Control.Monad.Except ( MonadError ) import qualified Chez.Compile as Chez import Data.Name import ModuleGrou...
407ee40283aebc3bac58021dc50312a5c859d70c3042b2c503bece177ecdf7f4
ygmpkk/house
Char.hs
{-# OPTIONS -fno-implicit-prelude #-} ----------------------------------------------------------------------------- -- | Module : Data . Copyright : ( c ) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : -- Stability : stable --...
null
https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/libraries/base/Data/Char.hs
haskell
# OPTIONS -fno-implicit-prelude # --------------------------------------------------------------------------- | License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : stable Portability : portable --------------------------------------------------------------------------...
Module : Data . Copyright : ( c ) The University of Glasgow 2001 The type and associated operations . module Data.Char ( Char , String The full set of Unicode character attributes is not accessible , isAscii, isLatin1, isControl, isSpace , isLower, isUpper, isAlpha, i...
46f4d4435c8170c3473a2f1630a44c00074f3db6f6f7cd6f44ab3186fd36dcc0
discus-lang/salt
CreateMainSH.hs
module War.Task.Create.CreateMainSH where import War.Task.Create.Way import War.Task.Job () import War.Driver.Base import qualified War.Task.Job.Shell as Shell import qualified War.Task.Job.Diff as Diff import qualified Data.Set as Set -- | Run Main.sh files. create :: Way ...
null
https://raw.githubusercontent.com/discus-lang/salt/33c14414ac7e238fdbd8161971b8b8ac67fff569/src/war/War/Task/Create/CreateMainSH.hs
haskell
| Run Main.sh files.
module War.Task.Create.CreateMainSH where import War.Task.Create.Way import War.Task.Job () import War.Driver.Base import qualified War.Task.Job.Shell as Shell import qualified War.Task.Job.Diff as Diff import qualified Data.Set as Set create :: Way -> Set FilePath -> FileP...
84e9eb09b60afaecc24af6b34c5a6cca27d7ada66c925a194f1f72b5be4a39bf
fossas/fossa-cli
SbtDependencyTreeJson.hs
# LANGUAGE RecordWildCards # module Strategy.Scala.SbtDependencyTreeJson ( analyze, parseSbtArtifact, ) where import Control.Effect.Diagnostics (Diagnostics) import Control.Monad (void) import Control.Monad.Identity (Identity) import Data.Aeson ( FromJSON (parseJSON), withArray, withObject, (.:), ) impor...
null
https://raw.githubusercontent.com/fossas/fossa-cli/ad4ab0b369995c7fc6d6056d0038141c492ad8cb/src/Strategy/Scala/SbtDependencyTreeJson.hs
haskell
Ref: #L22 It looks like: > [ > { > "text": "groupId:artifactId:version", > "children": [ > { > "text": "...", > "children": [ > ... > ] > }, > ] > } > ] - If there is eviction, sbt tree may provide version constraint instead of resolved ve...
# LANGUAGE RecordWildCards # module Strategy.Scala.SbtDependencyTreeJson ( analyze, parseSbtArtifact, ) where import Control.Effect.Diagnostics (Diagnostics) import Control.Monad (void) import Control.Monad.Identity (Identity) import Data.Aeson ( FromJSON (parseJSON), withArray, withObject, (.:), ) impor...
37935754a926fa3de01d7e240fd3d7698fef00c6adaaee9deb804b643d5ad4b2
jhunt/shout
test.lisp
#!/usr/bin/env sbcl --script (load "build/quicklisp/setup.lisp") (require "prove") (prove:run :shout-test :reporter :list)
null
https://raw.githubusercontent.com/jhunt/shout/6b8ec9ac2f967b970dae2d9b45275c7a69c23b30/test.lisp
lisp
#!/usr/bin/env sbcl --script (load "build/quicklisp/setup.lisp") (require "prove") (prove:run :shout-test :reporter :list)
f4a94a8d392d67f436c912a68e1615aece9e2bbafb2eaff84972827c9c5c7a3f
rjnw/sham
syntax.rkt
#lang racket (require sham/md sham/ir/ast sham/ir/simple (prefix-in ll- sham/llvm/ir/simple)) (require (for-syntax racket/syntax syntax/parse) syntax/parse/define) (provide (all-defined-out)) TODO for maintaing backward compatibility with " : A DSL for Fast DSLs " paper o / w j...
null
https://raw.githubusercontent.com/rjnw/sham/6e0524b1eb01bcda83ae7a5be6339da4257c6781/sham-base/sham/ir/syntax.rkt
racket
expr
#lang racket (require sham/md sham/ir/ast sham/ir/simple (prefix-in ll- sham/llvm/ir/simple)) (require (for-syntax racket/syntax syntax/parse) syntax/parse/define) (provide (all-defined-out)) TODO for maintaing backward compatibility with " : A DSL for Fast DSLs " paper o / w j...
fd30a0168f6ee31c576b99235c04d404243d24293a6a95755d362a7cc22c206d
ruricolist/serapeum
heap.lisp
(in-package :serapeum) Heap implementation adapted from timers package for SBCL . (defstruct (heap (:constructor make-heap (&key (size 100) (element-type t) (key #'identity) (test #'>=) &aux (vector (make-array size ...
null
https://raw.githubusercontent.com/ruricolist/serapeum/d98b4863d7cdcb8a1ed8478cc44ab41bdad5635b/heap.lisp
lisp
it is not a
(in-package :serapeum) Heap implementation adapted from timers package for SBCL . (defstruct (heap (:constructor make-heap (&key (size 100) (element-type t) (key #'identity) (test #'>=) &aux (vector (make-array size ...
2ef49e9060fde6d4b6c11b3349300682ed3fcab2448aa68565d7a9913772fea2
zxymike93/SICP
329.rkt
#lang sicp (define (logical-not s) (cond ((= s 0) 1) ((= s 1) 0) (else (error "Invalid signal " s)))) (define (logical-and s1 s2) (cond ((and (= s1 1) (= s2 1)) 1) ((or (= s1 0) (= s2 0)) 0) (else (error "Invalid signal " s1 s2)))) (define (inverter input output) (define (in...
null
https://raw.githubusercontent.com/zxymike93/SICP/9d8e84d6a185bf4d7f28c414fc3359741384beb5/chapter3/329.rkt
racket
可以将输入 o1, o2 过非门、过与门,再将输出过非门,实现与门
#lang sicp (define (logical-not s) (cond ((= s 0) 1) ((= s 1) 0) (else (error "Invalid signal " s)))) (define (logical-and s1 s2) (cond ((and (= s1 1) (= s2 1)) 1) ((or (= s1 0) (= s2 0)) 0) (else (error "Invalid signal " s1 s2)))) (define (inverter input output) (define (in...
eaf25d28471ff0a78e82fc4b8c52df81412093347ab1bc7e6c8e72d8f2117317
vyorkin/tiger
symbol.ml
open Core_kernel module L = Location type t = { id : int; name : string; } [@@deriving compare, equal, sexp, show { with_path = false }] let (=) x y = equal x y let (<>) x y = not (equal x y) let next_id = let n = ref (-1) in fun () -> incr n; !n let mk = let tbl = Hashtbl.create (module String) ~size:12...
null
https://raw.githubusercontent.com/vyorkin/tiger/54dd179c1cd291df42f7894abce3ee9064e18def/chapter8/lib/symbol.ml
ocaml
open Core_kernel module L = Location type t = { id : int; name : string; } [@@deriving compare, equal, sexp, show { with_path = false }] let (=) x y = equal x y let (<>) x y = not (equal x y) let next_id = let n = ref (-1) in fun () -> incr n; !n let mk = let tbl = Hashtbl.create (module String) ~size:12...
4d49ef3cebba5f842975955841d70986a04c2fa6665889bc8194c8847c93ff37
xapi-project/xen-api
import.ml
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking describe...
null
https://raw.githubusercontent.com/xapi-project/xen-api/e8c3575316226ac6324e94aa4f9e040a662e279a/ocaml/xapi/import.ml
ocaml
* HTTP handler for importing a VM from a stream. * @group Import and Export expected actual If true, don't create any database objects. Import the metadata of a VM whose disks already exist. * Allows the import to be customised Determines how to handle the import - see above. true if the user has provided...
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking describe...
c7ddf6a7a0899d8a82eca7de83f13bf9422bfabca9aa33d803b7cde64d398391
ocaml-ppx/ocamlformat
break_colon.ml
(* Bad: unboxing the function type *) external i : (int -> float[@unboxed]) = "i" "i_nat" module type M = sig val action : action (** Formatting action: input type and source, and output destination. *) val doc_atrs : (string Location.loc * payload) list -> (string Location.loc * bool) list option ...
null
https://raw.githubusercontent.com/ocaml-ppx/ocamlformat/59551e34cf1eafc300be7ddbf3e270fd51f1eb66/test/passing/tests/break_colon.ml
ocaml
Bad: unboxing the function type * Formatting action: input type and source, and output destination. The fsevents context Additional file descriptor to select for reading Additional file descriptor to select for writing The callback for file system events * an extremely long comment about [x] that does not fi...
external i : (int -> float[@unboxed]) = "i" "i_nat" module type M = sig val action : action val doc_atrs : (string Location.loc * payload) list -> (string Location.loc * bool) list option * (string Location.loc * payload) list from (Location.t -> Env.t -> Longident.t -> Path.t) ref va...
0c8439140aa819eb671d9a2d94ac351efea87c4f8bf9aa8daadbe32db13c03a0
rds13/xmlrpc
beam_util.erl
Copyright ( C ) 2009 Romuald du Song < rdusong _ AT _ gmail _ DOT _ com > . %% 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 ...
null
https://raw.githubusercontent.com/rds13/xmlrpc/42e6e96a0fe7106830274feed915125feb1056f3/src/beam_util.erl
erlang
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: notice, this list of conditions and the following disclaimer. copyright notice, this list of conditions and the following disclaimer in ...
Copyright ( C ) 2009 Romuald du Song < rdusong _ AT _ gmail _ DOT _ com > . 1 . Redistributions of source code must retain the above copyright 2 . Redistributions in binary form must reproduce the above THIS SOFTWARE IS PROVIDED BY THE AUTHOR ` ` AS IS '' AND ANY EXPRESS DIRECT , INDIRECT , INCIDENTAL , SPECI...
5fd4bf4b06b4d8ae6a6457540d27c22f29fec050c72c6bc12678cb1c980b4048
barrucadu/yukibot
Configuration.hs
-- | Module : . Configuration Copyright : ( c ) 2016 License : MIT -- Stability : experimental -- Portability : portable module Yukibot.Configuration ( -- * Parsing parseConfigFile -- * Accessors , getArray , getBool , getDouble , getInteger , getString , getTa...
null
https://raw.githubusercontent.com/barrucadu/yukibot/7b12153e2cc71b62f86ab3a851a250dce83343b8/yukibot-core/Yukibot/Configuration.hs
haskell
| Stability : experimental Portability : portable * Parsing * Accessors ** Array helpers ** Table helpers * Combining * Re-exports | Parse a configuration file ----------------------------------------------------------------------------- ----------------------------------------------------------------------...
Module : . Configuration Copyright : ( c ) 2016 License : MIT module Yukibot.Configuration parseConfigFile , getArray , getBool , getDouble , getInteger , getString , getTable , getTableArray , getUTCTime , getStrings , getTables , getNestedTable ...
45852ca1d1e2b2f1985a03df60a1465682b4e83ee7f65c4b25fd46d7a1cdca3c
passy/android-lint-summary
Main.hs
module Main where import AndroidLintSummary.CLI (runCLI) import Paths_android_lint_summary (version) main :: IO () main = runCLI version
null
https://raw.githubusercontent.com/passy/android-lint-summary/8aaf7884f542176e43a6f6b4e51e6391fafd61e0/Main.hs
haskell
module Main where import AndroidLintSummary.CLI (runCLI) import Paths_android_lint_summary (version) main :: IO () main = runCLI version
db55342f10095cfb06b2aa9258e59f358f34f919fbbcf8b8ee2df88836591457
GaloisInc/tower
DeviceHandle.hs
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE FlexibleInstances # # LANGUAGE DataKinds # module Ivory.Tower.HAL.Bus.SPI.DeviceHandle ( SPIDeviceHandle(..) ) where import Ivory.Language newtype SPIDeviceHandle = SPIDeviceHandle Uint8 deriving ( IvoryType, IvoryVar, IvoryExpr, IvoryEq, IvoryOrd ,...
null
https://raw.githubusercontent.com/GaloisInc/tower/a43f5e36c6443472ea2dc15bbd49faf8643a6f87/tower-hal/src/Ivory/Tower/HAL/Bus/SPI/DeviceHandle.hs
haskell
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE FlexibleInstances # # LANGUAGE DataKinds # module Ivory.Tower.HAL.Bus.SPI.DeviceHandle ( SPIDeviceHandle(..) ) where import Ivory.Language newtype SPIDeviceHandle = SPIDeviceHandle Uint8 deriving ( IvoryType, IvoryVar, IvoryExpr, IvoryEq, IvoryOrd ,...
aa319a695f933015a8bad7b7bf38994044a2f8e1d57ff1b3c2cfad03c89a4932
RefactoringTools/HaRe
A5.hs
module Renaming.A5 where import Renaming.B5 import Renaming.C5 import Renaming.D5 main :: Tree Int ->Bool main t = isSame (sumSquares (fringe t)) (sumSquares (Renaming.B5.myFringe t)+sumSquares (Renaming.C5.myFringe t))
null
https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/test/testdata/Renaming/A5.hs
haskell
module Renaming.A5 where import Renaming.B5 import Renaming.C5 import Renaming.D5 main :: Tree Int ->Bool main t = isSame (sumSquares (fringe t)) (sumSquares (Renaming.B5.myFringe t)+sumSquares (Renaming.C5.myFringe t))
c01d1feb2b23cbd77e3ff79ed06b818ee39a23c16f524fcfabb5e7b693d4bb86
Isaac-DeFrain/KFramework
constants.ml
type sort = |SortRbinds |SortAExp |SortListensCellOpt |SortIdCellOpt |SortK |SortPbindList |SortRidCell |SortListenCell |SortUnconsumableSend |SortThreadCell |SortMlidCell |SortVarsCellOpt |SortNomoCell |SortThreadCellBag |SortThreadCellFragment |SortKItem |SortBindList |SortNames |SortUri |SortIdCell |SortRhoMap |Sor...
null
https://raw.githubusercontent.com/Isaac-DeFrain/KFramework/54e6b833f104222ef24ea75551dc97c0ae4f588c/Languages/GroundedRho/Join/join-kompiled/constants.ml
ocaml
type sort = |SortRbinds |SortAExp |SortListensCellOpt |SortIdCellOpt |SortK |SortPbindList |SortRidCell |SortListenCell |SortUnconsumableSend |SortThreadCell |SortMlidCell |SortVarsCellOpt |SortNomoCell |SortThreadCellBag |SortThreadCellFragment |SortKItem |SortBindList |SortNames |SortUri |SortIdCell |SortRhoMap |Sor...
5e0538d8bba6bb3570b9f37865fcc703f7f532712184535f2c7384002fe2f380
simmsb/calamity
Dsl.hs
# LANGUAGE RecursiveDo # -- | A DSL for generating commands and groups module CalamityCommands.Dsl ( -- * Commands DSL -- $dslTutorial command, command', commandA, commandA', hide, help, requires, requires', requiresPure, group, group', groupA, groupA', DSLState, DSLC, raiseDSL, f...
null
https://raw.githubusercontent.com/simmsb/calamity/be310255b446e87e7432673de1fbc67ef46de3ae/calamity-commands/CalamityCommands/Dsl.hs
haskell
| A DSL for generating commands and groups * Commands DSL $dslTutorial | The name of the command | The command's parameter metadata | The parser for this command | The callback for this command | Given the command name, aliases, and parameter names, @parser@ and @callback@ for a command in the 'P.Sem' monad, b...
# LANGUAGE RecursiveDo # module CalamityCommands.Dsl ( command, command', commandA, commandA', hide, help, requires, requires', requiresPure, group, group', groupA, groupA', DSLState, DSLC, raiseDSL, fetchHandler, ) where import CalamityCommands.AliasType import CalamityCommands.Chec...
e21d5128e10157519de11d92c0ad06060354f07652906012faee2d1b74fd908d
phadej/cabal-extras
Golden.hs
# OPTIONS_GHC -Wno - orphans # module Main (main) where import Data.TreeDiff import Data.TreeDiff.Golden (ediffGolden) import Distribution.ModuleName (ModuleName) import Distribution.Pretty (prettyShow) import System.FilePath ((</>)) import Test.Tasty (defaultMain, testGroup)...
null
https://raw.githubusercontent.com/phadej/cabal-extras/bb82ebb7fdaa939c27762e10cb4cad49249b553f/cabal-diff/test/Golden.hs
haskell
----------------------------------------------------------------------------- orphans -----------------------------------------------------------------------------
# OPTIONS_GHC -Wno - orphans # module Main (main) where import Data.TreeDiff import Data.TreeDiff.Golden (ediffGolden) import Distribution.ModuleName (ModuleName) import Distribution.Pretty (prettyShow) import System.FilePath ((</>)) import Test.Tasty (defaultMain, testGroup)...
8894068f65076bc432c0cf0422de880addcf279d88f68803c3186d266bc34976
robrix/isometry
Array.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE KindSignatures # # LANGUAGE NamedFieldPuns # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeOperators # module GL.Array ( Array(..) , configureInterleaved , configureSeparate , Type(..) , drawArrays , multiDrawArrays , drawAr...
null
https://raw.githubusercontent.com/robrix/isometry/171b9261b8d7ea32c86ce6019c8c3973742f0349/src/GL/Array.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE KindSignatures # # LANGUAGE NamedFieldPuns # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeOperators # module GL.Array ( Array(..) , configureInterleaved , configureSeparate , Type(..) , drawArrays , multiDrawArrays , drawAr...
1693b6963dc4d1e95868d9477028c6b3691b939cfd705d921ec2eb91cc098888
8c6794b6/haskell-sc-scratch
partest.hs
module Main where import qualified Hal6.ParTest1 as P1 import qualified Hal6.ParTest2 as P2 import qualified Hal6.ParTest3 as P3 import qualified Hal6.ParTest4 as P4 import qualified Hal6.ParTest5 as P5 import qualified Hal6.ParTest6 as P6 import qualified Hal6.ParTest7 as P7 import System.Environment (getArgs) main...
null
https://raw.githubusercontent.com/8c6794b6/haskell-sc-scratch/22de2199359fa56f256b544609cd6513b5e40f43/Scratch/Parallel/hal6/run/partest.hs
haskell
module Main where import qualified Hal6.ParTest1 as P1 import qualified Hal6.ParTest2 as P2 import qualified Hal6.ParTest3 as P3 import qualified Hal6.ParTest4 as P4 import qualified Hal6.ParTest5 as P5 import qualified Hal6.ParTest6 as P6 import qualified Hal6.ParTest7 as P7 import System.Environment (getArgs) main...
1ee160baa1a61fa9be50397803000eb4049573ecd841990cf967387cb4f44c27
jeffshrager/biobike
load.lisp
;;; -*- mode: Lisp; Syntax: Common-Lisp; Package: user; -*- (in-package :cl-user) (defparameter *soap-files* '( "interface-tools" "kegg-goo" )) (load-system* "websrc:soap;" *soap-files*) (when (fboundp 'provides) (funcall 'provides :soap-tools))
null
https://raw.githubusercontent.com/jeffshrager/biobike/5313ec1fe8e82c21430d645e848ecc0386436f57/BioLisp/soap/load.lisp
lisp
-*- mode: Lisp; Syntax: Common-Lisp; Package: user; -*-
(in-package :cl-user) (defparameter *soap-files* '( "interface-tools" "kegg-goo" )) (load-system* "websrc:soap;" *soap-files*) (when (fboundp 'provides) (funcall 'provides :soap-tools))
60e92341450683b967c580338f0697c6723443d4bd6ee76a1cdb2b008aa95a7d
scrintal/heroicons-reagent
wallet.cljs
(ns com.scrintal.heroicons.mini.wallet) (defn render [] [:svg {:xmlns "" :viewBox "0 0 20 20" :fill "currentColor" :aria-hidden "true"} [:path {:d "M1 4.25a3.733 3.733 0 012.25-.75h13.5c.844 0 1.623.279 2.25.75A2.25 2.25 0 0016.75 2H3.25A2.25 2.25 0 001 4.25zM1 7.25a3.7...
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/mini/wallet.cljs
clojure
(ns com.scrintal.heroicons.mini.wallet) (defn render [] [:svg {:xmlns "" :viewBox "0 0 20 20" :fill "currentColor" :aria-hidden "true"} [:path {:d "M1 4.25a3.733 3.733 0 012.25-.75h13.5c.844 0 1.623.279 2.25.75A2.25 2.25 0 0016.75 2H3.25A2.25 2.25 0 001 4.25zM1 7.25a3.7...
56b6e6a3cc20335c05d09d932e6bce054cdc9ce3a95cdc7e85a27b363a918e0b
pflanze/chj-schemelib
md5.scm
(require cj-u8vector-util (u8vector0 string.utf8-u8vector) test) (export md5:digest (digest md5-digest) #!optional (make-md5-context* make-md5-context) (starts md5-init) (update md5-update) (finish md5-finish)) ;; (compile #t) ( cc - opts " -O3 " ) ; over the default -O1 , for a few percent more speed ...
null
https://raw.githubusercontent.com/pflanze/chj-schemelib/59ff8476e39f207c2f1d807cfc9670581c8cedd3/md5.scm
scheme
(compile #t) over the default -O1 , for a few percent more speed md5.scm \\ \\ \\ \\ \\ \\ /* returns void */ \\ \\ \\ \\...
(require cj-u8vector-util (u8vector0 string.utf8-u8vector) test) (export md5:digest (digest md5-digest) #!optional (make-md5-context* make-md5-context) (starts md5-init) (update md5-update) (finish md5-finish)) adapted from the chicken md5 egg by christian at pflanze mine nu (include "cj-standarddec...
e8f043d606e6fcf1da6b0f167d0ebf33821a8a6e71232076c6c8a8c1ff87c768
shortishly/pgec
pgec_util.erl
Copyright ( c ) 2022 < > %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicable law or agreed to in writing, software distributed under...
null
https://raw.githubusercontent.com/shortishly/pgec/9b026bcfbc8814b77a8bfd3cb2176f797f2f44b7/src/pgec_util.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissi...
Copyright ( c ) 2022 < > Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(pgec_util). -export([snake_case/1]). -export([tl_snake_case/1]). snake_case([_ | _] = Labels) -> list_to_atom(lists:concat(lists:...
9477b45e0ad459e9099cc58b3355d7d8a52e2101d143f084d048de4507724fbc
kadena-io/pact
Internal.hs
# LANGUAGE TupleSections # {-# LANGUAGE BangPatterns #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE FlexibleContexts # # LANGUAGE RecordWildCards # -- | Module : Pact . Native . Internal Copyright : ( C ) 2016 -- ...
null
https://raw.githubusercontent.com/kadena-io/pact/98dc6dbe9e917f26a238b2d4ac0f8ea90d65c5be/src/Pact/Native/Internal.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE RankNTypes # # LANGUAGE OverloadedStrings # | License : BSD-style (see the file LICENSE) | Specify a 'RNativeFun' running 'onFound' if true, otherwise requesting module admin. | Construct a 'Yield' endorsement with a user-supplied 'PactId', as opposed to introspecting o...
# LANGUAGE TupleSections # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE FlexibleContexts # # LANGUAGE RecordWildCards # Module : Pact . Native . Internal Copyright : ( C ) 2016 Maintainer : < > Internal functions for built - ins . module Pact.Native.Internal (succe...
5e08f677ccd3f24e14cd39cd59c577b8fbc0bb0bc4f7e0887dc80a828342761c
jamesdbrock/replace-attoparsec
Lazy.hs
-- | Module : Replace . . Text . Lazy Copyright : © 2019 License : BSD2 Maintainer : < > -- -- __Replace.Attoparsec__ is for finding text patterns, and also -- replacing or splitting on the found patterns. -- This activity is traditionally done with regular expressions, but _ _ Replace . Attopars...
null
https://raw.githubusercontent.com/jamesdbrock/replace-attoparsec/1cd9c71f9b286e1067aa39d958acf4118d3626e4/src/Replace/Attoparsec/Text/Lazy.hs
haskell
| __Replace.Attoparsec__ is for finding text patterns, and also replacing or splitting on the found patterns. This activity is traditionally done with regular expressions, the pattern matching. __Replace.Attoparsec__ can be used in the same sort of “pattern capture” <#re.findall re.findall>, < m//>, or Unix ...
Module : Replace . . Text . Lazy Copyright : © 2019 License : BSD2 Maintainer : < > but _ _ Replace . Attoparsec _ _ uses " Data . Attoparsec " parsers instead for or “ find all ” situations in which one would use Python or Perl or “ search - and - replace ” situations in which one would us...
1efeac8d257aad201b4a3fc1924e3b9d21ccdf33905c1db760a30419248ebb2f
MyDataFlow/ttalk-server
jlib_SUITE.erl
-module(jlib_SUITE). -include_lib("exml/include/exml.hrl"). -include_lib("proper/include/proper.hrl"). -include_lib("eunit/include/eunit.hrl"). -include_lib("ejabberd/include/jlib.hrl"). -include_lib("common_test/include/ct.hrl"). -compile([export_all]). -import(prop_helper, [prop/2]). all() -> [make_iq_reply_changes...
null
https://raw.githubusercontent.com/MyDataFlow/ttalk-server/07a60d5d74cd86aedd1f19c922d9d3abf2ebf28d/apps/ejabberd/test/jlib_SUITE.erl
erlang
-module(jlib_SUITE). -include_lib("exml/include/exml.hrl"). -include_lib("proper/include/proper.hrl"). -include_lib("eunit/include/eunit.hrl"). -include_lib("ejabberd/include/jlib.hrl"). -include_lib("common_test/include/ct.hrl"). -compile([export_all]). -import(prop_helper, [prop/2]). all() -> [make_iq_reply_changes...
f556e588cd51024d5d46732a968a0f6ed0e8c100c61310eb8375aca47192a45a
zotonic/zotonic
zotonic_fileindexer.erl
@author < > 2018 %% @doc Indexes directories of applications. Copyright 2018 %% 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 ap...
null
https://raw.githubusercontent.com/zotonic/zotonic/6a2f139ed30fcf5d7f84aad489a6cff060e0526c/apps/zotonic_fileindexer/src/zotonic_fileindexer.erl
erlang
@doc Indexes directories of applications. 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 Licen...
@author < > 2018 Copyright 2018 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(zotonic_fileindexer). -behaviour(application). -export([ start/0, start/2, stop/1, scan/2, scan/3,...