_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
68a2ab44883bdb8b1db09fbefd5eef8011931accb0b74d6e16f4b97fb6ec8c20
zero-one-group/geni-performance-benchmark
rename_columns.clj
(require '[clojure.java.io :as io]) (require '[zero-one.geni.core :as g]) (defn rename-df [index path] (let [df (g/read-parquet! path)] (println (g/count df) index) (-> df (g/rename-columns {:member-id :member_id :style-id :style_id :trx-id :trx_i...
null
https://raw.githubusercontent.com/zero-one-group/geni-performance-benchmark/ea3d92c69d78335e3e4d5f9d6772cb3e9c10b6b7/julia/rename_columns.clj
clojure
(require '[clojure.java.io :as io]) (require '[zero-one.geni.core :as g]) (defn rename-df [index path] (let [df (g/read-parquet! path)] (println (g/count df) index) (-> df (g/rename-columns {:member-id :member_id :style-id :style_id :trx-id :trx_i...
768148239942ae26dd564b54973427fa2152269184d7d4f91104e6b7ed6fd90a
fossas/fossa-cli
PackageJsonSpec.hs
# LANGUAGE TemplateHaskell # module Node.PackageJsonSpec ( spec, ) where import Algebra.Graph.AdjacencyMap qualified as AM import App.Pathfinder.Types (LicenseAnalyzeProject (licenseAnalyzeProject)) import Data.Aeson (decode, encode) import Data.Foldable (for_) import Data.Glob (toGlob) import Data.Map.Strict quali...
null
https://raw.githubusercontent.com/fossas/fossa-cli/1e947c4505af5d6036bb3c2683f8cba984058646/test/Node/PackageJsonSpec.hs
haskell
License Testing jsonGraph isn't relevant to license detection The actual paths here don't matter much, but this is a cross-platform way to get absolute filepaths.
# LANGUAGE TemplateHaskell # module Node.PackageJsonSpec ( spec, ) where import Algebra.Graph.AdjacencyMap qualified as AM import App.Pathfinder.Types (LicenseAnalyzeProject (licenseAnalyzeProject)) import Data.Aeson (decode, encode) import Data.Foldable (for_) import Data.Glob (toGlob) import Data.Map.Strict quali...
9ba5b2deee7ba656310c7183d80f00a467e948371ae81a4155ce910242341ac7
AlexCharlton/glls
simple.scm
;;;; simple.scm ;;;; This is a glls version of the example found on the opengl-glew wiki page: ;;;; -cc.org/eggref/4/opengl-glew ;;;; ;;;; NOTE: ;;;; This uses glls-render, so if this file is compiled it must be linked with OpenGL ;;;; E.g.: ;;;; csc -lGL simple.scm ;; (module simple-glls-example * (import chicken s...
null
https://raw.githubusercontent.com/AlexCharlton/glls/31d1124f8e7a79cea196d6d1228b26e0344c3753/examples/simple.scm
scheme
simple.scm This is a glls version of the example found on the opengl-glew wiki page: -cc.org/eggref/4/opengl-glew NOTE: This uses glls-render, so if this file is compiled it must be linked with OpenGL E.g.: csc -lGL simple.scm (module simple-glls-example * Mesh Matrices Matrix should be in a non-GC'd area ...
(import chicken scheme) (use glls-render (prefix glfw3 glfw:) (prefix opengl-glew gl:) gl-math gl-utils) (define rect (make-mesh vertices: '(attributes: ((position #:float 2) (color #:unsigned-byte 3 normalized:...
b34a73734e235940825b14454ab9699aa6e01da03c96610ab60c8247827f65c9
falsetru/htdp
18.1.15.scm
(define-struct ir (name price)) (define (extract1 an-inv) (cond [(empty? an-inv) empty] [else (local ((define f (first an-inv)) (define r (rest an-inv))) (cond [(<= (ir-price f) 1.00) (cons f (extract1 r))] [else (extract1 r)]))])) (require rackunit...
null
https://raw.githubusercontent.com/falsetru/htdp/4cdad3b999f19b89ff4fa7561839cbcbaad274df/18/18.1.15.scm
scheme
(define-struct ir (name price)) (define (extract1 an-inv) (cond [(empty? an-inv) empty] [else (local ((define f (first an-inv)) (define r (rest an-inv))) (cond [(<= (ir-price f) 1.00) (cons f (extract1 r))] [else (extract1 r)]))])) (require rackunit...
75dbed813f280335979be63c3595f0d7ee2126f9b3d8d537f0d0cdcd7d411376
reborg/clojure-essential-reference
2.clj
< 1 > ( ( 0 1 2 ) ( 3 4 5 ) ( 6 7 8) ) < 2 > ( ( 0 1 2 ) ( 3 4 5 ) ( 6 7 8) ( 9 ) )
null
https://raw.githubusercontent.com/reborg/clojure-essential-reference/c37fa19d45dd52b2995a191e3e96f0ebdc3f6d69/SequentialProcessing/partition%2Cpartition-allandpartition-by/2.clj
clojure
< 1 > ( ( 0 1 2 ) ( 3 4 5 ) ( 6 7 8) ) < 2 > ( ( 0 1 2 ) ( 3 4 5 ) ( 6 7 8) ( 9 ) )
2254efdb2adf7b4942aaaa7ed771a82ea4ecac46ef2fd09aa99b5205617babbc
fission-codes/fission
Class.hs
module Fission.Web.Server.Reflective.Class (MonadReflectiveServer (..)) where import Fission.Prelude import qualified Fission.Web.API.Host.Types as Web class Monad m => MonadReflectiveServer m where getHost :: m Web.Host
null
https://raw.githubusercontent.com/fission-codes/fission/2c333b43b854ad7132d5645d200b8d8847a1ea46/fission-web-server/library/Fission/Web/Server/Reflective/Class.hs
haskell
module Fission.Web.Server.Reflective.Class (MonadReflectiveServer (..)) where import Fission.Prelude import qualified Fission.Web.API.Host.Types as Web class Monad m => MonadReflectiveServer m where getHost :: m Web.Host
5498d119d12325fb7c49c7b1f8f9b60c99efd237a19fd70236393bf8c1ef75d4
ivanjovanovic/sicp
e-3.5.scm
Exercise 3.5 . ; Monte Carlo integration is a method of estimating definite integrals by means of Monte Carlo simulation . Consider ; computing the area of a region of space described by a predicate P(x, ; y) that is true for points (x, y) in the region and false for points ; not in the region. For example, the r...
null
https://raw.githubusercontent.com/ivanjovanovic/sicp/a3bfbae0a0bda414b042e16bbb39bf39cd3c38f8/3.1/e-3.5.scm
scheme
computing the area of a region of space described by a predicate P(x, y) that is true for points (x, y) in the region and false for points not in the region. For example, the region contained within a circle region described by such a predicate, begin by choosing a rectangle that contains the region. For example,...
Exercise 3.5 . Monte Carlo integration is a method of estimating definite integrals by means of Monte Carlo simulation . Consider of radius 3 centered at ( 5 , 7 ) is described by the predicate that tests whether ( x - 5)^2 + ( y - 7)^2 < 3 ^ 2 . To estimate the area of the opposite corners at ( 2 , 4 ) and...
72e8836bb5b007bbf320224747913635efaa010942ad3278cc3e1be3c034bf3d
ytomino/headmaster
c_literals.ml
open Value;; (* precision *) type signed_int_prec = [ | `signed_char | `signed_short | `signed_int | `signed_long | `signed_long_long];; type unsigned_int_prec = [ | `unsigned_char | `unsigned_short | `unsigned_int | `unsigned_long | `unsigned_long_long];; type int_prec = [signed_int_prec | unsigned_int_p...
null
https://raw.githubusercontent.com/ytomino/headmaster/11571992e480aa9fbc5821fe1be1b62edf5f924f/source/c_literals.ml
ocaml
precision for __attribute__((__mode__)) pointer size ? representation
open Value;; type signed_int_prec = [ | `signed_char | `signed_short | `signed_int | `signed_long | `signed_long_long];; type unsigned_int_prec = [ | `unsigned_char | `unsigned_short | `unsigned_int | `unsigned_long | `unsigned_long_long];; type int_prec = [signed_int_prec | unsigned_int_prec | `__int128...
dc582f94d4ced58a578aa9c9d6b3a35505fdabc4ec5a0129faa8ddd33786695d
yesodweb/wai
wai_cgi_generic.hs
{-# LANGUAGE PackageImports #-} import qualified Network.CGI import qualified Network.Wai.Handler.SimpleServer import qualified Network.Wai.Frontend.MonadCGI import "mtl" Control.Monad.Reader main :: IO () main = Network.Wai.Handler.SimpleServer.run 3000 $ Network.Wai.Frontend.MonadCGI.cgiToAppGeneric mona...
null
https://raw.githubusercontent.com/yesodweb/wai/f59e577f865d017b4726826ac5586bb916cf315b/wai-frontend-monadcgi/samples/wai_cgi_generic.hs
haskell
# LANGUAGE PackageImports #
import qualified Network.CGI import qualified Network.Wai.Handler.SimpleServer import qualified Network.Wai.Frontend.MonadCGI import "mtl" Control.Monad.Reader main :: IO () main = Network.Wai.Handler.SimpleServer.run 3000 $ Network.Wai.Frontend.MonadCGI.cgiToAppGeneric monadToIO mainCGI mainCGI ::...
102db0bb8d814fdc0fb2828b2732fa9c1c8455c1fc1563f9dec0aef981d1f477
LuxLang/lux
generics.clj
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. (ns lux.host.generics (:require (clojure [string :as string] [template :refer [do-template]]) clojure.core.mat...
null
https://raw.githubusercontent.com/LuxLang/lux/91bc060bc498a0d2418198cfcb9dc39636d1d867/lux-bootstrapper/src/lux/host/generics.clj
clojure
->class ->class-name ->type-signature else else else When referring to type-parameters during class or method definition, a type-environment is set for storing the names of such parameters. parameters, it must be detected, and the bytecode class-name must correspond to Object's.
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. (ns lux.host.generics (:require (clojure [string :as string] [template :refer [do-template]]) clojure.core.mat...
82bf3d94af0afabe6a81301b7f40619b77e3f627390f93214da8d5c4e49b4251
google/proto-lens
imports_test.hs
# LANGUAGE OverloadedLabels # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module Main where import Data.ProtoLens (Message, defMessage) import Data.ProtoLens.Labels () import Lens.Family2 (Lens', view, set) import Test.Tasty.HUnit (testCase, (@=?)) import Data.ProtoLens....
null
https://raw.githubusercontent.com/google/proto-lens/081815877430afc1db669ca5e4edde1558b5fd9d/proto-lens-tests/tests/imports_test.hs
haskell
# LANGUAGE RankNTypes # A simple check that a type is a sub-field of another type. (In this test, we're checking that the sub-field type got imported correctly from another file.) Check that it uses the (proto2 non-zero) default values which were part of a different module: Due to "import public" statements, thes...
# LANGUAGE OverloadedLabels # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module Main where import Data.ProtoLens (Message, defMessage) import Data.ProtoLens.Labels () import Lens.Family2 (Lens', view, set) import Test.Tasty.HUnit (testCase, (@=?)) import Data.ProtoLens.TestUtil (TestTree, testMain...
4a74ec6e35d062fe8b409475deda846cfffd3760925684a41fe11414271eae57
nextjournal/clojure-mode
commands.cljs
(ns nextjournal.clojure-mode.commands (:require ["@codemirror/commands" :as commands] [applied-science.js-interop :as j] [nextjournal.clojure-mode.util :as u] [nextjournal.clojure-mode.selections :as sel] [nextjournal.clojure-mode.node :as n] [nextjournal.cl...
null
https://raw.githubusercontent.com/nextjournal/clojure-mode/d414976ebdbc47242e05b693305832888020090b/src/nextjournal/clojure_mode/commands.cljs
clojure
some commands won't make sense when clojure is embedded into other languages in which case we want default commands/envent-handling applied insert left edge (prefixed by a space) in front of next-first-child replace left-edge with spaces
(ns nextjournal.clojure-mode.commands (:require ["@codemirror/commands" :as commands] [applied-science.js-interop :as j] [nextjournal.clojure-mode.util :as u] [nextjournal.clojure-mode.selections :as sel] [nextjournal.clojure-mode.node :as n] [nextjournal.cl...
6e65eeba2ac80f6a868900a22f9fc6760fc0bdb7e1c4c3be59b1fce1696e0c46
ghc/testsuite
TH_spliceD1.hs
# LANGUAGE TemplateHaskell # -- We should get a civilised report of conflicting variable -- bindings in the definition spliced in by foo module TH_spliceD1 where import TH_spliceD1_Lib $(foo)
null
https://raw.githubusercontent.com/ghc/testsuite/998a816ae89c4fd573f4abd7c6abb346cf7ee9af/tests/th/TH_spliceD1.hs
haskell
We should get a civilised report of conflicting variable bindings in the definition spliced in by foo
# LANGUAGE TemplateHaskell # module TH_spliceD1 where import TH_spliceD1_Lib $(foo)
34e3c589db7dbca4b9880ecb7d3ba1da0b3141208c9031996c998f056733160d
metabase/metabase
field_test.cljc
(ns metabase.lib.field-test (:require [clojure.test :refer [are deftest is]] [metabase.lib.core :as lib] [metabase.lib.field :as lib.field] [metabase.lib.metadata :as lib.metadata] [metabase.lib.test-metadata :as meta]) #?(:cljs (:require [metabase.test-runner.assert-exprs.approximately-equal]))) (d...
null
https://raw.githubusercontent.com/metabase/metabase/02e9aa420ef910138b9b5e05f74c96e31286bcf2/test/metabase/lib/field_test.cljc
clojure
(ns metabase.lib.field-test (:require [clojure.test :refer [are deftest is]] [metabase.lib.core :as lib] [metabase.lib.field :as lib.field] [metabase.lib.metadata :as lib.metadata] [metabase.lib.test-metadata :as meta]) #?(:cljs (:require [metabase.test-runner.assert-exprs.approximately-equal]))) (d...
a0f523744384f3d0057879ea0c720521b07a5fd17348cb1d3c9592a87f52aad9
g-andrade/tls_certificate_check
tls_certificate_check_hardcoded_authorities_hotswap_SUITE.erl
Copyright ( c ) 2021 - 2023 %% %% Permission is hereby granted, free of charge, to any person obtaining a %% copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction , including without limitation %% the rights to use, copy, modify, merge, publish, di...
null
https://raw.githubusercontent.com/g-andrade/tls_certificate_check/3fec4d8535bea820a3b263e7e74f568de54227ef/test/tls_certificate_check_hardcoded_authorities_hotswap_SUITE.erl
erlang
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, publish, distribute, sublicense, Software is furnished to do so, subject to the following conditions: The above copyright not...
Copyright ( c ) 2021 - 2023 to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR ...
853036b9b9f80a2f287a9a5900534ad26066f98a2ac03fa0544b53240b66d914
donaldsonjw/bigloo
cc.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / comptime / Cc / cc.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation ...
null
https://raw.githubusercontent.com/donaldsonjw/bigloo/a4d06e409d0004e159ce92b9908719510a18aed5/comptime/Cc/cc.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * The C compilation */ *===========================...
* serrano / prgm / project / bigloo / comptime / Cc / cc.scm * / * Author : * / * Creation : Sat Apr 29 09:51:32 1995 * / * Last change : Mon Jul 28 08:09:49 2014 ( serrano ) * / * Copy...
363c09debea8f8a299abd7ad1cc802cec37e13f27d004b4243f41c482ee46ac3
NinjaTrappeur/ex-hack
CabalParser.hs
| Module : ExHack . . CabalParser Description : Cabal files parsers collection . Copyright : ( c ) , 2018 License : GPL-3 Stability : experimental Portability : POSIX Module : ExHack.Cabal.CabalParser Description : Cabal files parsers collection. Copyright : (c) Félix Baylac-J...
null
https://raw.githubusercontent.com/NinjaTrappeur/ex-hack/dace36926065d5a0dd0076beec1a6eeacd848732/src/ExHack/Cabal/CabalParser.hs
haskell
# LANGUAGE BangPatterns # TODO: some benchs and test suites are not exposing any modules but instead are directly exposing a single .hs file. It's a bit too tricky to implement for V1, but we probably should find a way to list those files later on. The package should not be a dependancy to itself. ...
| Module : ExHack . . CabalParser Description : Cabal files parsers collection . Copyright : ( c ) , 2018 License : GPL-3 Stability : experimental Portability : POSIX Module : ExHack.Cabal.CabalParser Description : Cabal files parsers collection. Copyright : (c) Félix Baylac-J...
513bea111c289fbcabf2cfe9f3c0b423461e55651a2851bcab0af25fab1d3137
picty/concerto
computeBehaviorStats.ml
(* computeBehaviorStats.ml Inputs: - answers.csv - trusted_chains.csv Option: - campaign ids - trust_flag filters Output: - stats_behavior_<campaigns>_<values>.csv *) open ConcertoUtils open Getopt open FileOps open StatOps let verbose = ref false let load_validity = ref false let dat...
null
https://raw.githubusercontent.com/picty/concerto/fac5dd04a5a3dcd91782e17b7bd3e0f4a9ddd2e0/computeBehaviorStats.ml
ocaml
computeBehaviorStats.ml Inputs: - answers.csv - trusted_chains.csv Option: - campaign ids - trust_flag filters Output: - stats_behavior_<campaigns>_<values>.csv
open ConcertoUtils open Getopt open FileOps open StatOps let verbose = ref false let load_validity = ref false let data_dir = ref "" let filters = ref [] let campaigns = ref [] let add_campaign c = campaigns := !campaigns@[c]; ActionDone type feature = | AnswerType | AnswerType2 | FullAnswerType | CertChain ...
899578a4af0ad2bded115033faf15f18718c935b9deb9939a2730dcc06ca3c56
dfithian/prune-juice
ParserSpec.hs
module Data.Prune.Section.ParserSpec where import Prelude import Data.Either (isLeft) import System.FilePath.TH (fileRelativeToAbsolute) import Test.Hspec (Spec, describe, it, shouldBe, shouldSatisfy) import Text.Megaparsec (parse) import Data.Prune.ApplyStrategy.Smart (stripSections) import qualified Data.Prune.Sec...
null
https://raw.githubusercontent.com/dfithian/prune-juice/8a12636b60f5e60c71adc81fb066c7ab9fa82887/test/Data/Prune/Section/ParserSpec.hs
haskell
the module being tested
module Data.Prune.Section.ParserSpec where import Prelude import Data.Either (isLeft) import System.FilePath.TH (fileRelativeToAbsolute) import Test.Hspec (Spec, describe, it, shouldBe, shouldSatisfy) import Text.Megaparsec (parse) import Data.Prune.ApplyStrategy.Smart (stripSections) import qualified Data.Prune.Sec...
a23ffa5a2b4433a581b0583147662780693181aab615ac24cc059b9054673299
draperlaboratory/VIBES
errors.ml
(***************************************************************************) (* *) Copyright ( C ) 2022/2023 The Charles Stark Draper Laboratory , Inc. (* *) (* This...
null
https://raw.githubusercontent.com/draperlaboratory/VIBES/7f978d66d0b022d1a9262fdfc608b7a2b7c95dff/tools/vibes-higher-vars/lib/errors.ml
ocaml
************************************************************************* This file is provided under the license found in the LICENSE file in the top-level director...
Copyright ( C ) 2022/2023 The Charles Stark Draper Laboratory , Inc. This research was developed with funding from the Defense Advanced Research Projects Agency ( DARPA ) . open Bap_core_theory type KB.conflict += | Higher_var_not_substituted of string let ...
311a37208dd4c29803aa80c9cbf78ceb901b4e38220aef8d86d4f1d09cb7af46
Vincibean/real-world-haskell
ex03.hs
import System.Environment (getArgs) Using the command framework from the earlier section “ A Simple Command - Line Framework ” on page 71 , write a program that prints the first word of each line of its input . interactWith function inputFile outputFile = do input <- readFile inputFile writeFile outputFile (f...
null
https://raw.githubusercontent.com/Vincibean/real-world-haskell/705a1e75eca318fa71d1bb44c16c7c7e2912f8cc/ch04/ex03.hs
haskell
import System.Environment (getArgs) Using the command framework from the earlier section “ A Simple Command - Line Framework ” on page 71 , write a program that prints the first word of each line of its input . interactWith function inputFile outputFile = do input <- readFile inputFile writeFile outputFile (f...
0151f5b22a0ef40ae0325318fd8062edf9a6936e6e3dc08adc3d75c2f3de2f28
colis-anr/colis-language
colis_internals.ml
module Ext = struct module List = ExtList end module Errors = Errors module Options = Options let check_cpu_time_limit () = if Sys.time () >= !Options.cpu_time_limit then raise Errors.CpuTimeLimitExceeded let check_memory_limit () = if (Gc.quick_stat ()).Gc.heap_words >= !Options.memory_limit then rais...
null
https://raw.githubusercontent.com/colis-anr/colis-language/14b8087fa6323fb817d32c07236a2a084def01a1/src/internals/colis_internals.ml
ocaml
module Ext = struct module List = ExtList end module Errors = Errors module Options = Options let check_cpu_time_limit () = if Sys.time () >= !Options.cpu_time_limit then raise Errors.CpuTimeLimitExceeded let check_memory_limit () = if (Gc.quick_stat ()).Gc.heap_words >= !Options.memory_limit then rais...
7b3119ddd5c527cad0af0f6e6291276113b0aeb9de0dfd89de2d7cb9b2b4cb71
GaloisInc/macaw
Functions.hs
{-# LANGUAGE GADTs #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE StandaloneDeriving # module Data.Macaw.AArch32.Symbolic.Functions ( SymFuns , newSymFuns , funcSemantics , stmtSemantics -- * Exceptions , AArch32Exception(..) ) where import qualified Control.Exception as X import Control.Lens ( (^....
null
https://raw.githubusercontent.com/GaloisInc/macaw/a43151963da70e4d4c3d69f9605e82e44ff30731/macaw-aarch32-symbolic/src/Data/Macaw/AArch32/Symbolic/Functions.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes # * Exceptions | Semantics for statement syntax extensions All we can do for this is stop symbolic execution and report that to the caller (so that semantics can be added). depending on what CPU flags are set; this operation is never called but it might be difficult to p...
# LANGUAGE StandaloneDeriving # module Data.Macaw.AArch32.Symbolic.Functions ( SymFuns , newSymFuns , funcSemantics , stmtSemantics , AArch32Exception(..) ) where import qualified Control.Exception as X import Control.Lens ( (^.) ) import qualified Data.IORef as IOR import qualified Data.Map.Stri...
75164e10fbd55c992c03152773304c5d3db5d7f8589d83313e01c13549c259ba
HugoPeters1024/hs-sleuth
IO.hs
# LANGUAGE BangPatterns , CPP , RecordWildCards , ScopedTypeVariables # # LANGUAGE Trustworthy # -- | -- Module : Data.Text.IO Copyright : ( c ) 2009 , 2010 , ( c ) 2009 -- License : BSD-style -- Maintainer : Portability : GHC -- Efficient locale - sensitive support for text I\/O...
null
https://raw.githubusercontent.com/HugoPeters1024/hs-sleuth/91aa2806ea71b7a26add3801383b3133200971a5/test-project/text-nofusion/src/Data/Text/IO.hs
haskell
| Module : Data.Text.IO License : BSD-style Maintainer : Skip past the synopsis for some important notes on performance and * Performance $performance * Locale support $locale * File-at-a-time operations * Operations on handles * Special cases for standard input and output $performance #perfo...
# LANGUAGE BangPatterns , CPP , RecordWildCards , ScopedTypeVariables # # LANGUAGE Trustworthy # Copyright : ( c ) 2009 , 2010 , ( c ) 2009 Portability : GHC Efficient locale - sensitive support for text I\/O. portability across different versions of GHC . module Data.Text.IO ( ...
1b6f9f44d13a109d381e405605a585b749b4c3e29c9f118494f001ae2a3b4c94
alexandergunnarson/quantum
classify.cljc
(ns quantum.test.ir.classify (:refer-clojure :exclude [reduce for]) (:require [clojure.core :as core] [quantum.core.collections :as coll :refer [#?@(:clj [for lfor reduce join kmap]) map+ vals+ filter+ filter-vals+ flatten-1+ range+ f...
null
https://raw.githubusercontent.com/alexandergunnarson/quantum/0c655af439734709566110949f9f2f482e468509/test-dev/cljc/quantum/test/ir/classify.cljc
clojure
(ns quantum.test.ir.classify (:refer-clojure :exclude [reduce for]) (:require [clojure.core :as core] [quantum.core.collections :as coll :refer [#?@(:clj [for lfor reduce join kmap]) map+ vals+ filter+ filter-vals+ flatten-1+ range+ f...
f733dea0b4883779ef2109084e54422054c5bfa79f885c208326807c689b32ce
alex-hhh/geoid
tiling.rkt
#lang typed/racket/base SPDX - License - Identifier : LGPL-3.0 - or - later ;; tiling.rkt -- functions to determine the list of geoids which cover regions on the Earth surface . ;; This file is part of geoid -- work efficiently with geographic data Copyright ( c ) 2022 < > ;; ;; This program is free softw...
null
https://raw.githubusercontent.com/alex-hhh/geoid/b78a3cb08fd0dd99c0c6bee5eff231cb6f00cce6/private/tiling.rkt
racket
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 option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT without even the implied warranty of MERCHANTABILITY or FITNES...
#lang typed/racket/base SPDX - License - Identifier : LGPL-3.0 - or - later tiling.rkt -- functions to determine the list of geoids which cover regions on the Earth surface . This file is part of geoid -- work efficiently with geographic data Copyright ( c ) 2022 < > the Free Software Foundation , eithe...
ed32150fee7ff872e027a3f23cc5da7a6eb335d53b9a1541d639b6b7d2ee4314
ygrek/sqlgg
gen_version.ml
let () = let file = Sys.argv.(1) in Mybuild.Version.save ~identify:false file
null
https://raw.githubusercontent.com/ygrek/sqlgg/487d38ccd6098e469997e0d81e7b2f5af8dfdc30/src/gen_version.ml
ocaml
let () = let file = Sys.argv.(1) in Mybuild.Version.save ~identify:false file
62d9195d942d44bfe6643c2ef1aa9ea44008fe99a81c4031c9f8f87f51daecf0
roman01la/clojurescript-workshop
assignment.cljs
;; Given a collection of dirty dishes ;; create a process of washing dishes and ;; stacking washed dishes onto another collection. ;; Log remaining dirty dishes. (def dirty-dishes [:dish1 :dish2 :dish3 :dish4 :dish5])
null
https://raw.githubusercontent.com/roman01la/clojurescript-workshop/48b02266d65cae8113edd4ce34c4ab282ad256d1/04.atom/assignment.cljs
clojure
Given a collection of dirty dishes create a process of washing dishes and stacking washed dishes onto another collection. Log remaining dirty dishes.
(def dirty-dishes [:dish1 :dish2 :dish3 :dish4 :dish5])
c7a674c7b0c7e0e6b672ade3328066054d84b96ea7d3f00aab6d6017757d4d9e
haskell/text
Digits.hs
{-# LANGUAGE OverloadedStrings #-} -- Module: Data.Text.Internal.Builder.Int.Digits Copyright : ( c ) 2013 -- License: BSD-style Maintainer : < > -- Stability: experimental -- Portability: portable -- -- /Warning/: this is an internal module, and does not have a stable -- API or name. Function...
null
https://raw.githubusercontent.com/haskell/text/ca73ae38ed3744ec930cbfdb706147ec29d5a185/src/Data/Text/Internal/Builder/Int/Digits.hs
haskell
# LANGUAGE OverloadedStrings # Module: Data.Text.Internal.Builder.Int.Digits License: BSD-style Stability: experimental Portability: portable /Warning/: this is an internal module, and does not have a stable API or name. Functions in this module may not check or enforce preconditions expected by publ...
Copyright : ( c ) 2013 Maintainer : < > shall not speak of when confronted with multiline strings . module Data.Text.Internal.Builder.Int.Digits (digits) where import Data.ByteString.Char8 (ByteString) digits :: ByteString digits = "0001020304050607080910111213141516171819\ \20212223242526...
a9ae1a1330ae2a0dac9f22641206632393c57808523fde7c15dd469713e7d4f7
ddmcdonald/sparser
object.lisp
;;; -*- Mode:LISP; Syntax:Common-Lisp; Package:(SPARSER LISP) -*- copyright ( c ) 1990 Content Technologies Inc. copyright ( c ) 1992,2012 - 2021 -- all rights reserved ;;; ;;; File: "object" ;;; Module: "objects;categories:" Version : February 2021 initiated 6/90 1.1 ( v1.5 ) added new fie...
null
https://raw.githubusercontent.com/ddmcdonald/sparser/304bd02d0cf7337ca25c8f1d44b1d7912759460f/Sparser/code/s/objects/chart/categories/object.lisp
lisp
-*- Mode:LISP; Syntax:Common-Lisp; Package:(SPARSER LISP) -*- File: "object" Module: "objects;categories:" new representation regime -- replaced 'unit' with 'label', which subsumed the symbol and rule-set fields from 'label') and moved them to objects;model:categories:object use...
copyright ( c ) 1990 Content Technologies Inc. copyright ( c ) 1992,2012 - 2021 -- all rights reserved Version : February 2021 initiated 6/90 1.1 ( v1.5 ) added new fields to handle the new rule regime 1.2 ( 7/16/92 v2.3 ) Drastically adjusted the field list to fit the 1.3 ( 9/1 v2.3 ) gutted th...
cf363450f18c7d7e1520a75226d115843e4c712de2d173ab765d243b08af39c2
rowangithub/DOrder
strat.mli
(**************************************************************************) (* *) : a generic graph library for OCaml Copyright ( C ) 2004 - 2007 , and (* ...
null
https://raw.githubusercontent.com/rowangithub/DOrder/e0d5efeb8853d2a51cc4796d7db0f8be3185d7df/external/ocamlgraph/src/strat.mli
ocaml
************************************************************************ This software is free software; you can redistribute it and/or described in file LICENSE....
: a generic graph library for OCaml Copyright ( C ) 2004 - 2007 , and modify it under the terms of the GNU Library General Public License version 2 , with the special exception on linking $ Id:$ ...
91fba67d05e2abf3d2b9985f4a9985e0ce3ef6511550dce80a7d41382a6b53f1
xapi-project/xen-api
xapi_stunnel_server.ml
* Copyright ( C ) 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 file LI...
null
https://raw.githubusercontent.com/xapi-project/xen-api/48cc1489fff0e344246ecf19fc1ebed6f09c7471/ocaml/xapi/xapi_stunnel_server.ml
ocaml
* protect ourselves from concurrent writes to files We can't be sure that the reload is finished, so wait a moment we do not worry about generating certificates here, because systemd will handle this for us, via the gencert service
* Copyright ( C ) 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 file LI...
a6c758ff8b9b074c513f75f8c554bddf4dc92e790beef17586e7452165f0a85b
cxxxr/valtan
sacla-tests.lisp
(defvar *results* nil) (defun test (filename) (format t "test: ~A~%" filename) (with-open-file (in filename) (let ((eof-value (gensym)) (cl-user-package (find-package :cl-user)) (pass 0) (fail 0)) (do ((n 0 (1+ n))) (nil) (handler-case (let ((*p...
null
https://raw.githubusercontent.com/cxxxr/valtan/80b3d769294fee2f0463c0e4e95b9e17d65c3dc2/tests/sacla-tests.lisp
lisp
(test "sacla-tests/must-package.lisp") (test "sacla-tests/must-printer.lisp") (test "sacla-tests/x-sequence.lisp")
(defvar *results* nil) (defun test (filename) (format t "test: ~A~%" filename) (with-open-file (in filename) (let ((eof-value (gensym)) (cl-user-package (find-package :cl-user)) (pass 0) (fail 0)) (do ((n 0 (1+ n))) (nil) (handler-case (let ((*p...
1a7b6e92db8c5299823f734d08127f4df12d51f2c401af60acff81e99b3d484c
ralphrecto/xic
xiInterpreterTest.ml
open Core.Std open OUnit open TestUtil open Xi_interpreter (* Custom equalities *) module ValueEq = struct let (===) (a: value) (b: value) : unit = assert_equal ~printer:string_of_value a b end module ConfigEq = struct type config = context * value option let string_of_id_option (x: id option) = Option...
null
https://raw.githubusercontent.com/ralphrecto/xic/7dddfc855775467244a7949ee6d311dd8150f748/test/ocaml/xiInterpreterTest.ml
ocaml
Custom equalities Context helpers decl declasgn return asgn if if else while if in while proc calls complicated !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! DON'T FORGET TO ADD YOUR TESTS HERE ! !!!!!!!!!!!!!!!!!!!!!!!!!!!...
open Core.Std open OUnit open TestUtil open Xi_interpreter module ValueEq = struct let (===) (a: value) (b: value) : unit = assert_equal ~printer:string_of_value a b end module ConfigEq = struct type config = context * value option let string_of_id_option (x: id option) = Option.value x ~default:"_" ...
993c43a9c637e416b5a49410417582f3a28cb0ca97bf7e67de4a86dbd36307f4
slindley/effect-handlers
HandlerIx.hs
{- Handlers for indexed types using a continuation monad -} # LANGUAGE GADTs , TypeFamilies , MultiParamTypeClasses , FlexibleInstances , FlexibleContexts , TypeOperators , PolyKinds , DataKinds , RankNTypes , ScopedTypeVariables # GADTs, TypeFamilies, MultiPar...
null
https://raw.githubusercontent.com/slindley/effect-handlers/39d0d09582d198dd6210177a0896db55d92529f4/ix/HandlerIx.hs
haskell
Handlers for indexed types using a continuation monad Example from Kleisli arrows of outrageous fortune
# LANGUAGE GADTs , TypeFamilies , MultiParamTypeClasses , FlexibleInstances , FlexibleContexts , TypeOperators , PolyKinds , DataKinds , RankNTypes , ScopedTypeVariables # GADTs, TypeFamilies, MultiParamTypeClasses, FlexibleInstances, FlexibleContexts, ...
f59819c7141b2946e00308654b0b8a408809dfb4cca764a91af41f834c061956
silky/myth
tree_count_leaves.ml
#use "context_bool.decls" let tree_count_leaves : tree -> nat |> { Leaf => 1 | Node (Leaf, True, Leaf) => 2 | Node (Node (Leaf, True, Leaf), True, Leaf) => 3 | Node (Leaf, True, Node (Leaf, True, Leaf)) => 3 | Node (Node (Node (Leaf, True, Leaf), True, Leaf), True, Leaf) => 4 | Node (Node (Leaf, True, Leaf...
null
https://raw.githubusercontent.com/silky/myth/b631edefb2a27a1d731daa6654517d91ca660b95/tests/pldi-2015-contexts/tree_count_leaves.ml
ocaml
#use "context_bool.decls" let tree_count_leaves : tree -> nat |> { Leaf => 1 | Node (Leaf, True, Leaf) => 2 | Node (Node (Leaf, True, Leaf), True, Leaf) => 3 | Node (Leaf, True, Node (Leaf, True, Leaf)) => 3 | Node (Node (Node (Leaf, True, Leaf), True, Leaf), True, Leaf) => 4 | Node (Node (Leaf, True, Leaf...
ae83c0a6c1117c5138aa77a596765d6907a862f3924c496f070798a099727aa5
soarlab/FPTaylor
opt.ml
(* ========================================================================== *) : A Tool for Rigorous Estimation of Round - off Errors (* *) Author : , University of Utah (* ...
null
https://raw.githubusercontent.com/soarlab/FPTaylor/efbbc83970fe3c9f4cb33fafbbe1050dd18749cd/opt.ml
ocaml
========================================================================== ========================================================================== -----------...
: A Tool for Rigorous Estimation of Round - off Errors Author : , University of Utah This file is distributed under the terms of the MIT license open Expr open Opt_common let select_opt (pars : Opt_common.opt_pars) (cs : constraints) expr = le...
bb65dd5eeab301bcfe6da4436d244135d9d8272036b8424da47d6376056a1c1f
gedge-platform/gedge-platform
rabbit_federation_status.erl
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %% Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved . %% -module(rabbit_federation_status). -behaviour(ge...
null
https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/rabbitmq_federation/src/rabbit_federation_status.erl
erlang
We don't want to key off the entire upstream, bits of it may change
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved . -module(rabbit_federation_status). -behaviour(gen_serv...
e9a159b999baa92b4f8fd3c7d6ed31160744efc5e05151fe139542dac25392a9
input-output-hk/hydra
Snapshot.hs
# LANGUAGE TypeApplications # # LANGUAGE UndecidableInstances # module Hydra.Snapshot where import Hydra.Prelude import Cardano.Crypto.Util (SignableRepresentation (..)) import Codec.Serialise (serialise) import Data.Aeson (object, withObject, (.:), (.=)) import Hydra.Cardano.Api (SigningKey) import qualified Hydra....
null
https://raw.githubusercontent.com/input-output-hk/hydra/c46541576ae6937f8f710a2353aa43293d03845f/hydra-node/src/Hydra/Snapshot.hs
haskell
| The set of transactions that lead to 'utxo' | Binary representation of snapshot signatures CBOR(I(integer)) CBOR(B(bytestring) | A snapshot that can be used to close a head with. Either the initial one, or when it was signed by all parties, i.e. it is confirmed. NOTE: While we could use 'snapshot' directly, thi...
# LANGUAGE TypeApplications # # LANGUAGE UndecidableInstances # module Hydra.Snapshot where import Hydra.Prelude import Cardano.Crypto.Util (SignableRepresentation (..)) import Codec.Serialise (serialise) import Data.Aeson (object, withObject, (.:), (.=)) import Hydra.Cardano.Api (SigningKey) import qualified Hydra....
7c68cceb891dd491490fd253454cc06565c94be912704758a0c338a201bd7594
Decentralized-Pictures/T4L3NT
client_proto_context_commands.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > Copyright ( c...
null
https://raw.githubusercontent.com/Decentralized-Pictures/T4L3NT/6d4d3edb2d73575384282ad5a633518cba3d29e3/src/proto_006_PsCARTHA/lib_client_commands/client_proto_context_commands.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > Copyright ( c ) 2019 Nomadic Labs < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITH...
39051c0f8cef4a4d7c74fe77948757be9a54d00aa2cbbd9b3a41d47a07950e1b
Decentralized-Pictures/T4L3NT
environment_cache.mli
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2021 Nomadic Labs , < > (* ...
null
https://raw.githubusercontent.com/Decentralized-Pictures/T4L3NT/6d4d3edb2d73575384282ad5a633518cba3d29e3/src/lib_protocol_environment/environment_cache.mli
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2021 Nomadic Labs , < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN A...
bd041e836df63ae2e208cd050faf186952888e350dad8f3873c16cd58d731aeb
LexiFi/menhir
position.mli
(** Extension of standard library's positions. *) * { 2 Extended lexing positions } type t (** Abstract type for pairs of positions in the lexing stream. *) type position = t type 'a located = { value : 'a; position : t } [@@deriving sexp] (** Decoration of a value with a position. *) val value : 'a located -> 'a ...
null
https://raw.githubusercontent.com/LexiFi/menhir/794e64e7997d4d3f91d36dd49aaecc942ea858b7/test/dynamic/houblix/src/position.mli
ocaml
* Extension of standard library's positions. * Abstract type for pairs of positions in the lexing stream. * Decoration of a value with a position. * [value dv] returns the raw value that underlies the decorated value [dv]. * [position dv] returns the position that decorates the decorated value [dv]. * [des...
* { 2 Extended lexing positions } type t type position = t type 'a located = { value : 'a; position : t } [@@deriving sexp] val value : 'a located -> 'a val position : 'a located -> t val destruct : 'a located -> 'a * t val located : ('a -> 'b) -> 'a located -> 'b val with_val : 'b -> 'a located -> 'b located ...
20885855ab64e322e5381142f4eb8e9cdbaae44133974b166e80b78fad932402
nvim-treesitter/nvim-treesitter
injections.scm
[ (normal_action) (failible_action) ] @rust (use) @rust ((regex_literal) @regex (#offset! @regex 0 2 0 -1))
null
https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/67332894efcb6a51a18e1120f2fc242089de7dd1/queries/lalrpop/injections.scm
scheme
[ (normal_action) (failible_action) ] @rust (use) @rust ((regex_literal) @regex (#offset! @regex 0 2 0 -1))
4ba7a754f77ef4d07523f6ee5d4d4a9cc23eccf2ae0e47ab33d82f99a8e4e08a
gilith/hol-light
timers.ml
let testform_timer = ref 0.0;; let combine_testforms_timer = ref 0.0;; let condense_timer = ref 0.0;; let inferisign_timer = ref 0.0;; let matinsert_timer = ref 0.0;; let inferpsign_timer = ref 0.0;; let remove_column1_timer = ref 0.0;; let add_infinities_timer = ref 0.0;; let remove_infinities_timer = ref 0.0;; ...
null
https://raw.githubusercontent.com/gilith/hol-light/f3f131963f2298b4d65ee5fead6e986a4a14237a/Rqe/timers.ml
ocaml
let testform_timer = ref 0.0;; let combine_testforms_timer = ref 0.0;; let condense_timer = ref 0.0;; let inferisign_timer = ref 0.0;; let matinsert_timer = ref 0.0;; let inferpsign_timer = ref 0.0;; let remove_column1_timer = ref 0.0;; let add_infinities_timer = ref 0.0;; let remove_infinities_timer = ref 0.0;; ...
ab7324e4c4d7f05970465ee3fd09854fc59666f204853f9b9f13e9c2aa0483da
ibawt/tabby
http_server.clj
(ns tabby.http-server (:require [tabby.utils :as utils] [cheshire.core :as json] [clojure.tools.logging :refer [warn info]] [tabby.client-state :as cs] [compojure.core :as compojure :refer [GET POST]] [ring.middleware.params :as params] [ring.middleware.json :refer [wrap-json-params wrap-json-res...
null
https://raw.githubusercontent.com/ibawt/tabby/19601e406ee097663b5d45d92c2ae53318baa9c3/src/tabby/http_server.clj
clojure
(ns tabby.http-server (:require [tabby.utils :as utils] [cheshire.core :as json] [clojure.tools.logging :refer [warn info]] [tabby.client-state :as cs] [compojure.core :as compojure :refer [GET POST]] [ring.middleware.params :as params] [ring.middleware.json :refer [wrap-json-params wrap-json-res...
cd64e516af63376abdd80868fc846c9ff453941ccadf46e7912154ab12786714
bburdette/chordster
DeleteChordRoot.hs
module Handler.DeleteChordRoot where import Import getDeleteChordRootR :: ChordRootId -> Handler Html getDeleteChordRootR cid = do runDB $ delete cid redirect ChordRootsR
null
https://raw.githubusercontent.com/bburdette/chordster/70d235f1ca379e5ecd4a8f39dc1e734e2d50978b/Handler/DeleteChordRoot.hs
haskell
module Handler.DeleteChordRoot where import Import getDeleteChordRootR :: ChordRootId -> Handler Html getDeleteChordRootR cid = do runDB $ delete cid redirect ChordRootsR
898cca5de4db8589a4fbda841dce41dbd812c6a32855853a3fdc024dec10e8af
susanemcg/pandoc-tufteLaTeX2GitBook
Textile.hs
Copyright ( C ) 2010 - 2014 < paul*rivier#demotera*com > | tr ' * # ' ' .@ ' 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 2 of the Licens...
null
https://raw.githubusercontent.com/susanemcg/pandoc-tufteLaTeX2GitBook/00c34b4299dd89c4e339e1cde006061918b559ab/pandoc-1.12.4.2/src/Text/Pandoc/Readers/Textile.hs
haskell
^ Reader options ^ String to parse (assuming @'\n'@ line endings) | Generate a Pandoc ADT from a textile document textile allows raw HTML and does smart punctuation by default go through once just to get list of reference keys and notes docMinusKeys is the raw document with blanks where the keys/notes were... no...
Copyright ( C ) 2010 - 2014 < paul*rivier#demotera*com > | tr ' * # ' ' .@ ' 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 2 of the Licens...
b6c8d0853397c31fc1ccc65582bacbb91e537fb4e5c569baa570e43e6ccea431
heraldry/heraldicon
cottising.cljs
(ns heraldicon.reader.blazonry.transform.cottising (:require [clojure.set :as set] [heraldicon.heraldry.default :as default] [heraldicon.reader.blazonry.transform.fimbriation :refer [add-fimbriation]] [heraldicon.reader.blazonry.transform.line :refer [add-lines]] [heraldicon.reader.blazonry.transform.s...
null
https://raw.githubusercontent.com/heraldry/heraldicon/f3298ed0b3394f8db78c4e5e548adc61cd9a256d/src/heraldicon/reader/blazonry/transform/cottising.cljs
clojure
(ns heraldicon.reader.blazonry.transform.cottising (:require [clojure.set :as set] [heraldicon.heraldry.default :as default] [heraldicon.reader.blazonry.transform.fimbriation :refer [add-fimbriation]] [heraldicon.reader.blazonry.transform.line :refer [add-lines]] [heraldicon.reader.blazonry.transform.s...
2b0bd5cb79e195fe1860b9ba35d349e070372320c283e82d02e723d876638027
CryptoKami/cryptokami-core
LimitsSpec.hs
-- | Test on functions trimming data to given limit. module Test.Pos.Util.LimitsSpec ( spec ) where import Universum import qualified Data.HashMap.Strict as HM import Serokell.Data.Memory.Units (fromBytes) import Test.Hspec (Spec, describe) import Test.Hspec.QuickChec...
null
https://raw.githubusercontent.com/CryptoKami/cryptokami-core/12ca60a9ad167b6327397b3b2f928c19436ae114/lib/test/Test/Pos/Util/LimitsSpec.hs
haskell
| Test on functions trimming data to given limit.
module Test.Pos.Util.LimitsSpec ( spec ) where import Universum import qualified Data.HashMap.Strict as HM import Serokell.Data.Memory.Units (fromBytes) import Test.Hspec (Spec, describe) import Test.Hspec.QuickCheck (prop) import Test.QuickCheck (arbitrary,...
1d58b4f906480d1c0bbf4cb6836a7ec64292c8cb593b6ea5e61bea0d7cf7b659
iand675/hs-opentelemetry
TestTarget.hs
module TestTarget where addTwo :: Int -> Int addTwo = (+ 2)
null
https://raw.githubusercontent.com/iand675/hs-opentelemetry/b08550db292ca0d8b9ce9156988e6d08dd6a2e61/examples/hspec/src/TestTarget.hs
haskell
module TestTarget where addTwo :: Int -> Int addTwo = (+ 2)
390aba0130a27dfa0bd01bc30fef69b1476bbb5857cbbbf026786449caf0f8ba
vmchale/apple
CF.hs
module IR.CF ( mkControlFlow ) where import CF -- seems to pretty clearly be faster import Control.Monad.State.Strict (State, evalState, gets, modify) import qualified Data.IntSet as IS import qualified Data.Map as M import Data.Semigroup ...
null
https://raw.githubusercontent.com/vmchale/apple/39b6040994f0c6c4897e1ec7bd01277e5c8d4e71/src/IR/CF.hs
haskell
seems to pretty clearly be faster map of labels by node destinations. | Construct map assigning labels to their node name.
module IR.CF ( mkControlFlow ) where import CF import Control.Monad.State.Strict (State, evalState, gets, modify) import qualified Data.IntSet as IS import qualified Data.Map as M import Data.Semigroup ((<>)) import Data....
58e7bf73bb4db276d6d0c65a6886cf11c317d73561d48aaf6a61bfaa6879924e
liquidz/testdoc
code_first_test.clj
(ns testdoc.style.code-first-test (:require [clojure.string :as str] [clojure.test :as t] [testdoc.style.code-first :as sut])) (defn- lines [ls] (str/join "\n" ls)) (t/deftest parse-doc-test (t/are [expected in] (= expected (sut/parse-doc (lines in))) '[[a b]], ["a" ";; => b"] '[[(a b) ...
null
https://raw.githubusercontent.com/liquidz/testdoc/64b07cf658f35960a8dd0257903beb6e40cfb2aa/test/testdoc/style/code_first_test.clj
clojure
(ns testdoc.style.code-first-test (:require [clojure.string :as str] [clojure.test :as t] [testdoc.style.code-first :as sut])) (defn- lines [ls] (str/join "\n" ls)) (t/deftest parse-doc-test (t/are [expected in] (= expected (sut/parse-doc (lines in))) '[[a b]], ["a" ";; => b"] '[[(a b) ...
bcb3bd7afcc3ae301ab0a8ef0607890babb28255a26ad9540b716d2e00d355a4
phadej/kleene
Monad.hs
# LANGUAGE DeriveFoldable # {-# LANGUAGE DeriveFunctor #-} {-# LANGUAGE DeriveTraversable #-} # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # {-# LANGUAGE GADTs #-} {-# LANGUAGE Safe #-} {-# LANGUAGE ScopedTypeVariables #-} module Kle...
null
https://raw.githubusercontent.com/phadej/kleene/ebe0117db4b752b2fd558b56905bba9edaafe524/src/Kleene/Monad.hs
haskell
# LANGUAGE DeriveFunctor # # LANGUAGE DeriveTraversable # # LANGUAGE GADTs # # LANGUAGE Safe # # LANGUAGE ScopedTypeVariables # * Construction | Binary operators are * '<>' for append There are no binary operator for union. Use 'unions'. * Derivative * Gener...
# LANGUAGE DeriveFoldable # # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # module Kleene.Monad ( M (..), empty, eps, char, charRange, anyChar, appends, unions, star, string, nullable, derivate, generate, toKleene, isEmpty, ...
798f0d21a590b7809b9121c8e13af4660743611f29ff3cd89d260eedadcaa60d
DSiSc/why3
ide_utils.mli
(********************************************************************) (* *) The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2018 -- Inria - CNRS - Paris - Sud University (* ...
null
https://raw.githubusercontent.com/DSiSc/why3/8ba9c2287224b53075adc51544bc377bc8ea5c75/src/ide/ide_utils.mli
ocaml
****************************************************************** This software is distributed under the terms of the GNU Lesser on linking described in file LICENSE. ...
The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2018 -- Inria - CNRS - Paris - Sud University General Public License version 2.1 , with the special exception module History : sig type history val create_history: unit -> history val print_next_command: hist...
e9f6e4c13d92f1bdffb16a57b1db667ce78db164762404d97f718a7f9d56200c
hipsleek/hipsleek
infsolver.ml
type __ = Obj.t let __ = let rec f _ = Obj.repr f in Obj.repr f type unit0 = | Tt * negb : bool - > bool * let negb = function | true -> false | false -> true type nat = | O | S of nat type 'a option = | Some of 'a | None * val option_map : ( ' a1 - > ' a2 ) - > ' a1 option - > ' a2 option * let o...
null
https://raw.githubusercontent.com/hipsleek/hipsleek/596f7fa7f67444c8309da2ca86ba4c47d376618c/src/infsolver.ml
ocaml
* val fst : ('a1, 'a2) prod -> 'a1 * * val compOpp : comparison -> comparison * * val compareSpec2Type : comparison -> compareSpecT * singleton inductive, whose constructor was exist * val plus : nat -> nat -> nat * * val minus : nat -> nat -> nat * * val nat_iter : nat -> ('a1 -> 'a1) -> 'a1 -> 'a1 * * val iff_refle...
type __ = Obj.t let __ = let rec f _ = Obj.repr f in Obj.repr f type unit0 = | Tt * negb : bool - > bool * let negb = function | true -> false | false -> true type nat = | O | S of nat type 'a option = | Some of 'a | None * val option_map : ( ' a1 - > ' a2 ) - > ' a1 option - > ' a2 option * let o...
0e80a0ec58bff2f0f4756899b8753381626375b0fc0fa94649d188cb643e2ed3
davejacobs/ml
project.clj
(defproject ml/ml "0.0.1-SNAPSHOT" :description "A study in machine learning, using Clojure" :dependencies [[org.clojure/clojure "1.3.0"] [org.clojure/math.numeric-tower "0.0.1"] [clojure-csv/clojure-csv "2.0.0-alpha1"] [clojure.options "0.2.2"] [...
null
https://raw.githubusercontent.com/davejacobs/ml/4ceda8cee8a79ff52e57484c2988a2ddf10def7f/project.clj
clojure
(defproject ml/ml "0.0.1-SNAPSHOT" :description "A study in machine learning, using Clojure" :dependencies [[org.clojure/clojure "1.3.0"] [org.clojure/math.numeric-tower "0.0.1"] [clojure-csv/clojure-csv "2.0.0-alpha1"] [clojure.options "0.2.2"] [...
8efdebf4dfd127b40f52f85a9a8134d97970b4106e9bcbe3d960f84be53328a2
klutometis/clrs
11.4-1.scm
(require-extension syntax-case check) (require '../11.4/section) (import section-11.4) (let ((keys '(10 22 31 4 15 28 17 88 59)) (m 11)) (let ((hash1 (lambda (k) (modulo k m))) (hash2 (lambda (k) (+ 1 (modulo k (- m 1)))))) (let ((linear-table (make-oa-table m (linear-probe hash1 m))) (qua...
null
https://raw.githubusercontent.com/klutometis/clrs/f85a8f0036f0946c9e64dde3259a19acc62b74a1/11.4/11.4-1.scm
scheme
(require-extension syntax-case check) (require '../11.4/section) (import section-11.4) (let ((keys '(10 22 31 4 15 28 17 88 59)) (m 11)) (let ((hash1 (lambda (k) (modulo k m))) (hash2 (lambda (k) (+ 1 (modulo k (- m 1)))))) (let ((linear-table (make-oa-table m (linear-probe hash1 m))) (qua...
b1a5d381318d234c870848f70ac97612be754b6ff03021d3724185d6d796f0c1
dfinity/motoko
xref.ml
type t = | XType of string | XValue of string | XNested of string * t | XClass of string * t | XFile of string * t option | XPackage of string * t option let rec to_string : t -> string = function | XType s -> "type " ^ s | XValue s -> "value " ^ s | XNested (s, xref) -> Printf.sprintf "%s.%s" s (to_...
null
https://raw.githubusercontent.com/dfinity/motoko/399b8e8b0b47890388cd38ee0ace7638d9092b1a/src/docs/xref.ml
ocaml
type t = | XType of string | XValue of string | XNested of string * t | XClass of string * t | XFile of string * t option | XPackage of string * t option let rec to_string : t -> string = function | XType s -> "type " ^ s | XValue s -> "value " ^ s | XNested (s, xref) -> Printf.sprintf "%s.%s" s (to_...
f5beb72c8fc9d86cdeaa1563168fd5617014c13e9333a6afff0c541644f8019e
lamdu/lamdu
Gui.hs
module Tests.Gui (test) where import qualified Control.Lens as Lens import Control.Monad.Once (OnceT, _OnceT) import Control.Monad.State (mapStateT) import Data.Containers.ListUtils (nubOrdOn) import qualified Data.Property as Property import qualified Data.Text as Text import D...
null
https://raw.githubusercontent.com/lamdu/lamdu/5b15688e53ccbf7448ff11134b3e51ed082c6b6c/test/Tests/Gui.hs
haskell
(to avoid need to infer their type for the simple migration) -deleting-lambda-parameter-red-cursor | Test for regression in creating new tags when there are tags matching the search string. -navigating-to-fragment-affects-layout -operator-precedence-crosses-lambda-boundaries-add-test | Test for -when-picking-rec...
module Tests.Gui (test) where import qualified Control.Lens as Lens import Control.Monad.Once (OnceT, _OnceT) import Control.Monad.State (mapStateT) import Data.Containers.ListUtils (nubOrdOn) import qualified Data.Property as Property import qualified Data.Text as Text import D...
70f32c63520038b98a8223918298bd9418a0896d78a27660e6481eb819469693
Zulu-Inuoe/cl-tiled
tiled-xml.lisp
(defpackage #:cl-tiled.impl.xml (:use #:cl #:cl-tiled.data-types #:cl-tiled.impl) (:import-from #:alexandria #:if-let #:switch) (:import-from #:split-sequence #:split-sequence) (:import-from #:xmls) (:export #:parse-xml-map-stream #:parse-xml-tileset-stream)) (in-package #:cl...
null
https://raw.githubusercontent.com/Zulu-Inuoe/cl-tiled/d692644aeeb69e53022e2ad4a70f4cb772b53e7a/src/tiled-xml.lisp
lisp
Value might be stored in the 'value' property or in the string content
(defpackage #:cl-tiled.impl.xml (:use #:cl #:cl-tiled.data-types #:cl-tiled.impl) (:import-from #:alexandria #:if-let #:switch) (:import-from #:split-sequence #:split-sequence) (:import-from #:xmls) (:export #:parse-xml-map-stream #:parse-xml-tileset-stream)) (in-package #:cl...
259b9fd20b586ba470dc9225f825c8f644902a26b9b3139494bad02f97b40526
mgrabmueller/harpy
Evaluator.hs
module Main(main) where import ArithTypes import ArithParser import Harpy import Harpy.X86Disassembler import Foreign import Control.Monad import System.Console.Readline import Text.ParserCombinators.Parsec $(callDecl "callAsWord32" [t|Word32 -> IO Word32|]) main :: IO () main = do putStrLn "\n\n\n\nHarpy Inter...
null
https://raw.githubusercontent.com/mgrabmueller/harpy/6df8f480e568a02c98e20d95effc5f35f204bff6/examples/evaluator/Evaluator.hs
haskell
Function for compiling and executing statements.
module Main(main) where import ArithTypes import ArithParser import Harpy import Harpy.X86Disassembler import Foreign import Control.Monad import System.Console.Readline import Text.ParserCombinators.Parsec $(callDecl "callAsWord32" [t|Word32 -> IO Word32|]) main :: IO () main = do putStrLn "\n\n\n\nHarpy Inter...
106e2deb860d65dd24fefdb3b9ad1731d759b23e82c2cbb1b0e9ccfadd187533
nuprl/gradual-typing-performance
pdf-render.rkt
#lang scheme/base (require "private/indirect-renderer.rkt" "private/run-pdflatex.rkt" (prefix-in latex: "latex-render.rkt")) (provide render-mixin dvi-render-mixin) (define render-mixin (make-indirect-renderer-mixin (λ (%) (latex:render-mixin % #:image-mode 'pdf)) #".tex" #".pdf" run-pdflat...
null
https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/pre-benchmark/ecoop/scribble-lib/scribble/pdf-render.rkt
racket
#lang scheme/base (require "private/indirect-renderer.rkt" "private/run-pdflatex.rkt" (prefix-in latex: "latex-render.rkt")) (provide render-mixin dvi-render-mixin) (define render-mixin (make-indirect-renderer-mixin (λ (%) (latex:render-mixin % #:image-mode 'pdf)) #".tex" #".pdf" run-pdflat...
18ba9cb81c8eac7ebabb9c4f1e3c0c565eeced39f424275a071f1b7e5a18a95f
pfdietz/ansi-test
defgeneric-method-combination-max.lsp
;-*- Mode: Lisp -*- Author : Created : Sat May 24 21:31:55 2003 Contains : Tests of with : method - combination MAX (declaim (special *x*)) (compile-and-load "defgeneric-method-combination-aux.lsp") (deftest defgeneric-method-combination.max.1 (let ((*x* nil) (fn (eval '(defgen...
null
https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/objects/defgeneric-method-combination-max.lsp
lisp
-*- Mode: Lisp -*-
Author : Created : Sat May 24 21:31:55 2003 Contains : Tests of with : method - combination MAX (declaim (special *x*)) (compile-and-load "defgeneric-method-combination-aux.lsp") (deftest defgeneric-method-combination.max.1 (let ((*x* nil) (fn (eval '(defgeneric dg-mc.fun.max.1 (x)...
a3a6f936774562ad8c1e4009ea19fc2d2569dc3e6a826f827a1a09fe29ee6550
burkaydurdu/muggle
events.cljs
(ns muggle.characters.events (:require [re-frame.core :refer [reg-event-db]])) (reg-event-db :characters-list-change (fn [db [_ new-list-value]] (assoc db :characters-list new-list-value)))
null
https://raw.githubusercontent.com/burkaydurdu/muggle/8c457397305be6ea2848a2537669a700d0147997/src/muggle/characters/events.cljs
clojure
(ns muggle.characters.events (:require [re-frame.core :refer [reg-event-db]])) (reg-event-db :characters-list-change (fn [db [_ new-list-value]] (assoc db :characters-list new-list-value)))
37c888ec11d5c67b5a68f3e03174c40f374c020f5053dcd9d1996bbce8baf3ab
soulomoon/haskell-katas
FabergeEgg.hs
module Katas.FabergeEgg where import Kyu1.FabergeEgg import Test.Hspec main :: IO () main = hspec spec spec :: Spec spec = describe "Faberge" $ do it "should work for some basic tests" $ do height 1 51 `shouldBe` 51 height 2 1 `shouldBe` 1 height 4 17 `shouldBe` 3213 height 16 19 `sho...
null
https://raw.githubusercontent.com/soulomoon/haskell-katas/0861338e945e5cbaadf98138cf8f5f24a6ca8bb3/test/Katas/FabergeEgg.hs
haskell
module Katas.FabergeEgg where import Kyu1.FabergeEgg import Test.Hspec main :: IO () main = hspec spec spec :: Spec spec = describe "Faberge" $ do it "should work for some basic tests" $ do height 1 51 `shouldBe` 51 height 2 1 `shouldBe` 1 height 4 17 `shouldBe` 3213 height 16 19 `sho...
ba85b8a13c0183bebb4a139d57e1fe542c141d16a8be4f444fde0a78bf54d181
haskell/fgl
Dominators.hs
Find Dominators of a graph . -- Author : < > -- -- Implementation based on , , , " A Simple , Fast Dominance Algorithm " , -- () module Data.Graph.Inductive.Query.Dominators ( dom, iDom ) where import Data.Array import Data.Graph.Inductive.Graph import Data.Gra...
null
https://raw.githubusercontent.com/haskell/fgl/a2c7fb6bd4b5658c885f0927dad7d61dd7a94f80/Data/Graph/Inductive/Query/Dominators.hs
haskell
Implementation based on () # ANN iDom "HLint: ignore Use ***" # | return immediate dominators for each reachable node of a graph, given a root | return the set of dominators of the reachable nodes of a graph, given a root internal node type array containing the immediate dominator of each node, or an approximat...
Find Dominators of a graph . Author : < > , , , " A Simple , Fast Dominance Algorithm " , module Data.Graph.Inductive.Query.Dominators ( dom, iDom ) where import Data.Array import Data.Graph.Inductive.Graph import Data.Graph.Inductive.Query.DFS import ...
ed3a4113b497faf6e77eb7f889e3c19223025992bafc9ae9f83a12999d6a5072
hyraxbio/hyraxAbif
Main.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE LambdaCase # module Main where import Protolude import qualified Data.Text as Txt import qualified Data.ByteString.Lazy as BSL import Text.Show.Pretty (ppShow) import qualified System.Environment as Env import qualified L...
null
https://raw.githubusercontent.com/hyraxbio/hyraxAbif/01b188956330057aeba1b62b61ebcc32ce3744d9/app/Main.hs
haskell
# LANGUAGE OverloadedStrings # colourPrint debugged
# LANGUAGE NoImplicitPrelude # # LANGUAGE LambdaCase # module Main where import Protolude import qualified Data.Text as Txt import qualified Data.ByteString.Lazy as BSL import Text.Show.Pretty (ppShow) import qualified System.Environment as Env import qualified Language.Haskell.HsColour as Clr imp...
326c71894337c0d4830c6f426ee6e87cf1298a21dc6efe79f065813f456ed237
helium/erlang-ubx
ubx.erl
-module(ubx). -behaviour(gen_server). -define(U1, 8/integer-unsigned). %% unsigned char -define(I1, 8/integer-signed). %% signed char -define(X1, 8/integer). %% bitfield -define(U2, 16/integer-unsigned-little). %% unsigned short -define(I2, 16/integer-signed-little). %% signed short bitfields are little endian -defi...
null
https://raw.githubusercontent.com/helium/erlang-ubx/19e5168037c1d461a6e4b41a2f7d1d2353eec638/src/ubx.erl
erlang
unsigned char signed char bitfield unsigned short signed short unsigned long signed long message classes message IDs gps fix type number of visible sats latitude in degrees longitude in degrees latitude in degrees longitude in degrees time accuracy estimate in ns UTC standard identifier 1 = Valid Week...
-module(ubx). -behaviour(gen_server). bitfields are little endian bitfields are little endian with big endian fields IEEE 754 single precision ( endianness ? ? ) IEEE 754 double precision ( endianness ? ? ) -define(HEADER1, 16#b5). -define(HEADER2, 16#62). -define(MM_TO_FEET, 0.00328084). -define(MM_TO_MILES...
e396e1f27fe4db76fdbbbc108b8640cd1fad5dde2a82c0994a015fd2ba806ff3
serokell/avl-plus
Common.hs
module Common ( module Common , module Lenses , module T ) where import Control.Monad as T (unless, when) import Control.Monad.Catch as T (catch) import Control.Monad.IO.Class as T (MonadIO, liftIO) import qualified Control.Lens as Lenses import Data.Function (on) import Data.Hashable (Hashable, hash)...
null
https://raw.githubusercontent.com/serokell/avl-plus/3fb3933f4f11f282e8c498d128c3e5c79518ea9b/test/Common.hs
haskell
module Common ( module Common , module Lenses , module T ) where import Control.Monad as T (unless, when) import Control.Monad.Catch as T (catch) import Control.Monad.IO.Class as T (MonadIO, liftIO) import qualified Control.Lens as Lenses import Data.Function (on) import Data.Hashable (Hashable, hash)...
e80d1893405219e7888f3d128d0e951df25e545ea08b18a79810c2ebac88ffd6
fortytools/holumbus
Word8.hs
{-# OPTIONS -XBangPatterns #-} -- ---------------------------------------------------------------------------- | Module : Data . . Trie . Word8 Copyright : Copyright ( C ) 2007 License : MIT Maintainer : ( ) Stability : experimental Portability : not portable An ef...
null
https://raw.githubusercontent.com/fortytools/holumbus/4b2f7b832feab2715a4d48be0b07dca018eaa8e8/searchengine/source/Data/StringMap/Trie/Word8.hs
haskell
# OPTIONS -XBangPatterns # ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- * Trie types * Operators * Query * Construction * Traversal * Combine * Conversion * Debug -------------------------------------...
| Module : Data . . Trie . Word8 Copyright : Copyright ( C ) 2007 License : MIT Maintainer : ( ) Stability : experimental Portability : not portable An efficient implementation of maps from arbitrary byte key to arbitrary values . Values can associated with an...
58545fce2b30dac9217e75ef1ec751a157503c1f143704f43617f7a68a1d5dc3
clj-kondo/clj-kondo
shadowed_var_test.clj
(ns clj-kondo.shadowed-var-test (:require [clj-kondo.test-utils :refer [lint! assert-submaps]] [clojure.test :refer [deftest is testing]])) (deftest shadowed-var-test (assert-submaps '({:file "<stdin>", :row 4, :col 15, :level :warning, :message "Shadowed var: clojure.core/name. Suggestion: nom"} ...
null
https://raw.githubusercontent.com/clj-kondo/clj-kondo/626978461cbf113c376634cdf034d7262deb429f/test/clj_kondo/shadowed_var_test.clj
clojure
only warning about name also works in let ignored
(ns clj-kondo.shadowed-var-test (:require [clj-kondo.test-utils :refer [lint! assert-submaps]] [clojure.test :refer [deftest is testing]])) (deftest shadowed-var-test (assert-submaps '({:file "<stdin>", :row 4, :col 15, :level :warning, :message "Shadowed var: clojure.core/name. Suggestion: nom"} ...
193c1a7b8ab932fe6597aecb0d72f3afa82d9173a8dddcd7092741b25aa3a0ba
BinaryAnalysisPlatform/FrontC
cabs.ml
(* cabs -- abstract syntax for FrontC *) let version = "Cabs 4.0 Hugues Cassé et al." exception BadModifier exception BadType (** * Thrown when an unconsistent C abstract syntax is found. *) exception UnconsistentDef (** Size of int *) type size = NO_SIZE (** No size modifier *) | SHORT (** "short" modifi...
null
https://raw.githubusercontent.com/BinaryAnalysisPlatform/FrontC/c167bb8bb82c7f90afa069bd0c49afe57374d5df/frontc/cabs.ml
ocaml
cabs -- abstract syntax for FrontC * * Thrown when an unconsistent C abstract syntax is found. * Size of int * No size modifier * "short" modifier * "long" modifier * GNU "long long" modifier * No sign modifier * "signed" modifier * "unsigned" modifier * Storage of names * No storage modifier * "auto" mod...
let version = "Cabs 4.0 Hugues Cassé et al." exception BadModifier exception BadType exception UnconsistentDef type size = * Signess of int and bitfields and sign = and storage = and base_type = * C99 boolean ( _ Bool ) type | BITFIELD of sign * expression * Bitfield with sign modifier and size expression ...
61f6f607e77dca3ac815744f283ae42403e5f9725ffde9331405ce23994de88c
lojic/LearningRacket
nucleotide-count-test.rkt
#lang racket (require "nucleotide-count.rkt") (module+ test (require rackunit rackunit/text-ui) (define suite (test-suite "Tests for the nucleotide-count exercise" (test-case "empty dna string has no adenosine" (check-equal? (count "" #\A) 0)) (test-case "repetitive cytid...
null
https://raw.githubusercontent.com/lojic/LearningRacket/eb0e75b0e16d3e0a91b8fa6612e2678a9e12e8c7/exercism.io/nucleotide-count/nucleotide-count-test.rkt
racket
#lang racket (require "nucleotide-count.rkt") (module+ test (require rackunit rackunit/text-ui) (define suite (test-suite "Tests for the nucleotide-count exercise" (test-case "empty dna string has no adenosine" (check-equal? (count "" #\A) 0)) (test-case "repetitive cytid...
cbe0451f655c3bb25cbfaeb93c6873e414db0fab23a64d73561ff7ddea3395c5
gersak/clojure.network.ip
network_test.clj
(ns clojure.network-test (:use clojure.test clojure.network.l3.ip)) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
null
https://raw.githubusercontent.com/gersak/clojure.network.ip/1c3f50a0bf2c12c38194d02a917170f3c8da6f3d/test/clojure/network_test.clj
clojure
(ns clojure.network-test (:use clojure.test clojure.network.l3.ip)) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
03d557ab05302ecce6e8a05218f366a8fe9a93e610435888e030ac6e2dbfd5e0
aryx/xix
rendez_.ml
open Types (* A rendez-vous is a place where a process will sleep until someone * else wake him up. *) type t = { less : opti : direct Proc_.t reference mutable p: pid option; ! lock ordering ! p.rlock (* todo: why need a lock on the rendezvous? because when want to sleep on it, * we dont want a wakeup ...
null
https://raw.githubusercontent.com/aryx/xix/60ce1bd9a3f923e0e8bb2192f8938a9aa49c739c/kernel/core/rendez_.ml
ocaml
A rendez-vous is a place where a process will sleep until someone * else wake him up. todo: why need a lock on the rendezvous? because when want to sleep on it, * we dont want a wakeup to be lost?
open Types type t = { less : opti : direct Proc_.t reference mutable p: pid option; ! lock ordering ! p.rlock l: Spinlock_.t; }
08f5b9ef0814f799925c953a0af4c4bf10c910c1552cabc623c20854bf0ee55f
shayne-fletcher/zen
flows.mli
(** Flows *) include Flows_sig.S
null
https://raw.githubusercontent.com/shayne-fletcher/zen/10a1d0b9bf261bb133918dd62fb1593c3d4d21cb/ocaml/curve/flows.mli
ocaml
* Flows
include Flows_sig.S
aa480e791ac61ea120cb6cd180e2bfd9e0e2f83412aca1c05645aed139ab1fad
msempere/markhor
markhor_sup.erl
-module(markhor_sup). -behaviour(supervisor). %% API -export([start_link/0]). %% Supervisor callbacks -export([init/1]). %% Helper macro for declaring children of supervisor -define(CHILD(I, Type), {I, {I, start_link, []}, permanent, 5000, Type, [I]}). %% ==========================================================...
null
https://raw.githubusercontent.com/msempere/markhor/37fd4d8fdc316dfb36b91068e30641c507478e24/src/markhor_sup.erl
erlang
API Supervisor callbacks Helper macro for declaring children of supervisor =================================================================== API functions =================================================================== =================================================================== Supervisor callback...
-module(markhor_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). -define(CHILD(I, Type), {I, {I, start_link, []}, permanent, 5000, Type, [I]}). start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, []). init([]) -> {ok, { {one_for_one, 5, 10}, []} }.
3c7fec1795263d77df15f4c1e9d4fa91e363e5831b2912c7397f8e53e5dc0fdd
input-output-hk/cardano-ledger-byron
ValidationMode.hs
# LANGUAGE FlexibleContexts # module Cardano.Chain.Block.ValidationMode ( BlockValidationMode (..) , toTxValidationMode ) where import Cardano.Prelude import Cardano.Chain.UTxO.ValidationMode (TxValidationMode (..)) -------------------------------------------------------------------------------- -- BlockValid...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger-byron/d309449e6c303a9f0dcc8dcf172df6f0b3195ed5/cardano-ledger/src/Cardano/Chain/Block/ValidationMode.hs
haskell
------------------------------------------------------------------------------ BlockValidationMode ------------------------------------------------------------------------------ | Indicates what sort of block validation should be performed. ^ Perform all block validations. ^ Perform no block validations. | Transla...
# LANGUAGE FlexibleContexts # module Cardano.Chain.Block.ValidationMode ( BlockValidationMode (..) , toTxValidationMode ) where import Cardano.Prelude import Cardano.Chain.UTxO.ValidationMode (TxValidationMode (..)) data BlockValidationMode = BlockValidation | NoBlockValidation deriving (Eq, Show) toT...
1374c3c473bbfa3c9695628453d86b0caf942abc0335e9c99dc1408cbdfdcba7
sunshineclt/Racket-Helper
graphic.rkt
#lang racket/gui (define global-frame (new frame% [label "Wave"] [width 800] [height 500])) ;canvas采用回调的方式来画图,所以把所有要画的线段注册在这里 (define segments2paint '()) (define (global-draw-line v1 v2) (set! segments2paint (cons (make-segment v1 v2) segments2paint))) (defin...
null
https://raw.githubusercontent.com/sunshineclt/Racket-Helper/bf85f38dd8d084db68265bb98d8c38bada6494ec/%E5%BE%90%E7%8E%89%E9%BA%9F/%E4%BD%9C%E4%B8%9A4/graphic.rkt
racket
canvas采用回调的方式来画图,所以把所有要画的线段注册在这里 向量的定义 定义一些对painter的操作 在frame左边画painter1,右边画painter2 在frame上面画painter1,下面画painter2 用点列表的列表生成线段列表 用点列表生成线段列表 预处理wave的segment
#lang racket/gui (define global-frame (new frame% [label "Wave"] [width 800] [height 500])) (define segments2paint '()) (define (global-draw-line v1 v2) (set! segments2paint (cons (make-segment v1 v2) segments2paint))) (define global-canvas (new canvas% ...
a726546ab9a90797a91527a5e01e43c030e62cf5fa09061af18945cb4baa4063
gsakkas/rite
2978.ml
let rec app x y = match x with | [] -> y | h::t -> h :: (app t y);; let rec digitsOfInt n = if n >= 10 then app ((digitsOfInt (n / 10)) [n mod 10]) else [n];; fix let rec digitsOfInt n = if n > = 10 then ( digitsOfInt ( n / 10 ) ) @ [ n mod 10 ] else [ n ] ; ; let rec digitsOfInt n = if n >= 10 the...
null
https://raw.githubusercontent.com/gsakkas/rite/958a0ad2460e15734447bc07bd181f5d35956d3b/data/sp14/2978.ml
ocaml
let rec app x y = match x with | [] -> y | h::t -> h :: (app t y);; let rec digitsOfInt n = if n >= 10 then app ((digitsOfInt (n / 10)) [n mod 10]) else [n];; fix let rec digitsOfInt n = if n > = 10 then ( digitsOfInt ( n / 10 ) ) @ [ n mod 10 ] else [ n ] ; ; let rec digitsOfInt n = if n >= 10 the...
162353b7c3d9962c0abb9e6d63fa53faa4552ccbcc23dfa61fac8e9eb3096993
Innf107/polaris
util.ml
exception TODO of string exception Panic of string (* Should be used as `panic __LOC__ "message"`*) let panic loc msg = raise (Panic (loc ^ ": " ^ msg)) (* Should be used as `todo __LOC__` *) let todo str = raise (TODO str) type ('a, 'b) either = | Left of 'a | Right of 'b let rec take_exact count list = match...
null
https://raw.githubusercontent.com/Innf107/polaris/d273b97fa607dd4c70a17a07abd230a921e3817c/src/util.ml
ocaml
Should be used as `panic __LOC__ "message"` Should be used as `todo __LOC__` O(n)
exception TODO of string exception Panic of string let panic loc msg = raise (Panic (loc ^ ": " ^ msg)) let todo str = raise (TODO str) type ('a, 'b) either = | Left of 'a | Right of 'b let rec take_exact count list = match count, list with | 0, _ -> Some [] | n, (x::xs) -> Option.map (fun y -> x::y) (take_exa...
ec029c598d4cfb578eaf0b9ffbbb995ebc9e4fcbeb44b17122a85fc4b90c3999
basho/riak_ensemble
riak_ensemble_manager.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2013 Basho Technologies , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may ob...
null
https://raw.githubusercontent.com/basho/riak_ensemble/f279810f3b9b3a1b4bc82dda738364242896ff32/src/riak_ensemble_manager.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 Basho Technologies , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY TODO ...
90f3d4616659453029ccee61a7909bd26749f484703bec613d9095b840fb03f5
CodyReichert/qi
error.lisp
(in-package :cl-user) (defpackage yaml.error (:use :cl) (:export :yaml-error :parsing-error :unsupported-float-value :message :line :column) (:documentation "YAML errors.")) (in-package :yaml.error) (define-condition yaml-error () () (:documentation "The...
null
https://raw.githubusercontent.com/CodyReichert/qi/9cf6d31f40e19f4a7f60891ef7c8c0381ccac66f/dependencies/cl-yaml-latest/src/error.lisp
lisp
(in-package :cl-user) (defpackage yaml.error (:use :cl) (:export :yaml-error :parsing-error :unsupported-float-value :message :line :column) (:documentation "YAML errors.")) (in-package :yaml.error) (define-condition yaml-error () () (:documentation "The...
b8b23197e0511abaf66e0db82fecbbb68069b5e8591574077ea7153b7edb0f73
hstreamdb/hstream
SpecUtils.hs
{-# LANGUAGE DataKinds #-} # LANGUAGE GADTs # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TupleSections # -- TODO: consider moving this module to common package module HStream.SpecUtils where import Co...
null
https://raw.githubusercontent.com/hstreamdb/hstream/2d57ea42fdba2af19330e1ba06ef30235f5e6a6f/hstream/test/HStream/SpecUtils.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE OverloadedStrings # # LANGUAGE RecordWildCards # TODO: consider moving this module to common package ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- readBatchPa...
# LANGUAGE GADTs # # LANGUAGE ScopedTypeVariables # # LANGUAGE TupleSections # module HStream.SpecUtils where import Control.Concurrent import Control.Exception (Exception, bracket, bracket_) import Control.Monad import qualified Data.Aeson ...
6a7f80c175252bcc78dbdcbfce5bba103e1a533573718e5ae87dab40675ce2be
poroh/ersip
ersip_trans_inv_server_test.erl
%% Copyright ( c ) 2018 Dmitry Poroh %% All rights reserved. Distributed under the terms of the MIT License . See the LICENSE file . %% Server INVITE transaction test %% -module(ersip_trans_inv_server_test). -include_lib("eunit/include/eunit.hrl"). %%%===========================================================...
null
https://raw.githubusercontent.com/poroh/ersip/f1b0d3c5713fb063a6cc327ea493f06cff6a6e5e/test/transaction/ersip_trans_inv_server_test.erl
erlang
All rights reserved. =================================================================== Cases =================================================================== Without ringing With ringing Check has_final_response for different states: received in case of timeout... Req #4: Transaction is cleared for relia...
Copyright ( c ) 2018 Dmitry Poroh Distributed under the terms of the MIT License . See the LICENSE file . Server INVITE transaction test -module(ersip_trans_inv_server_test). -include_lib("eunit/include/eunit.hrl"). reliable_canonnical_2xx_flow_test() -> T1 = 70, InviteSipMsg = invite(), {Proceedi...
23565f0ada74a23171a2ef94c871377476ab8a1240bccd9eb1bea137c32be470
archaelus/tsung
ts_launcher_static.erl
Copyright ( C ) 2009 %%% %%% 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. %%% %%% This program is distrib...
null
https://raw.githubusercontent.com/archaelus/tsung/b4ea0419c6902d8bb63795200964d25b19e46532/src/tsung/ts_launcher_static.erl
erlang
This program is free software; you can redistribute it and/or modify (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 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General ...
Copyright ( C ) 2009 it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or You should have received a copy of the GNU General Public License Foundation , Inc. , 59 Temple Place , Suite 330 , Boston , MA 02111 - 1307 , US...
b007270e7bbcb119d38d03e4823228fac6e14800640b627e3ad6fc6bb3955f0d
sshirokov/CLSQL
oracle-sql.lisp
-*- Mode : LISP ; Syntax : ANSI - Common - Lisp ; Base : 10 -*- ;;;; ************************************************************************* ;;;; FILE IDENTIFICATION ;;;; ;;;; Name: oracle-sql.lisp ;;;; This file is part of CLSQL . ;;;; CLSQL users are granted the rights to distribute and use this soft...
null
https://raw.githubusercontent.com/sshirokov/CLSQL/c680432aea0177677ae2ee7b810a7404f7a05cab/db-oracle/oracle-sql.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 -*- ************************************************************************* FILE IDENTIFICATION Name: oracle-sql.lisp (), also known as the LLGPL. ************************************************************************* arbitrary parameters, tunable for pe...
This file is part of CLSQL . CLSQL users are granted the rights to distribute and use this software as governed by the terms of the Lisp Lesser GNU Public License (in-package #:clsql-oracle) (defmethod database-initialize-database-type ((database-type (eql :oracle))) t) (eval-when (:compile-toplevel :load-t...
29a50dffa0958adc063cd2f794109595dd12ecc6b4a7a7c9741a6c126f9604d3
kyleburton/sandbox
core_test.clj
(ns jdbc-and-c3po.core-test (:require [clojure.test :refer :all] [jdbc-and-c3po.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
null
https://raw.githubusercontent.com/kyleburton/sandbox/cccbcc9a97026336691063a0a7eb59293a35c31a/examples/clojure/jdbc-and-c3po/test/jdbc_and_c3po/core_test.clj
clojure
(ns jdbc-and-c3po.core-test (:require [clojure.test :refer :all] [jdbc-and-c3po.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
4120d89e483581423b33aa995d7a8160de46aa1031993132c2adafc70af8e86c
scrintal/heroicons-reagent
beaker.cljs
(ns com.scrintal.heroicons.outline.beaker) (defn render [] [:svg {:xmlns "" :fill "none" :viewBox "0 0 24 24" :strokeWidth "1.5" :stroke "currentColor" :aria-hidden "true"} [:path {:strokeLinecap "round" :strokeLinejoin "round" ...
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/outline/beaker.cljs
clojure
(ns com.scrintal.heroicons.outline.beaker) (defn render [] [:svg {:xmlns "" :fill "none" :viewBox "0 0 24 24" :strokeWidth "1.5" :stroke "currentColor" :aria-hidden "true"} [:path {:strokeLinecap "round" :strokeLinejoin "round" ...
aaeadbbd401559695e96fd14e168d59579c3ce86b06e70ee7b1ddcd88ae65c48
acorrenson/Oratio
rules.mli
* { 1 Rules } This module provides a backend for 's { ! engine } to build valid by construction sequents . The type { ! thm } represents sequents . Functions of this modules implements introduction and elimination rules as smart constructors of this type . {1 Rules} This module...
null
https://raw.githubusercontent.com/acorrenson/Oratio/ade8d9a3253270e311ebbcff10cb955bd2c8af42/src/kernel/rules.mli
ocaml
* The type representing valid sequents * Stringify a {!thm} object for pretty printing purposes * {b Axiom} rule. [axiom Γ p] represents the sequent [Γ ⊢ p] where [p] is in [Γ]. * {b Implication Introduction}. [intro_impl (Γ α ⊢ β) α] represents the sequent [Γ ⊢ α → β]. * {b Implication Elimination} a.k.a {...
* { 1 Rules } This module provides a backend for 's { ! engine } to build valid by construction sequents . The type { ! thm } represents sequents . Functions of this modules implements introduction and elimination rules as smart constructors of this type . {1 Rules} This module...
836c5770feb68cbf65f7302f6c188c03599a75df19e2f5116976c00f0c23a6fb
patoline/patoline
proof.ml
Copyright Florian Hatat , , , Pierre - Etienne Meunier , , 2012 . This file is part of Patoline . Patoline 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 th...
null
https://raw.githubusercontent.com/patoline/patoline/3dcd41fdff64895d795d4a78baa27d572b161081/proof/proof.ml
ocaml
Configuration
Copyright Florian Hatat , , , Pierre - Etienne Meunier , , 2012 . This file is part of Patoline . Patoline 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 th...
3a30bf20194e7890dc5aec56b156a5bb3a5b2f312f66ddb3cf2094d9b28fc1ee
garrigue/lablgtk
giotest.ml
(**************************************************************************) Lablgtk - Examples (* *) (* This code is in the public domain. *) (* You may f...
null
https://raw.githubusercontent.com/garrigue/lablgtk/504fac1257e900e6044c638025a4d6c5a321284c/examples/giotest.ml
ocaml
************************************************************************ This code is in the public domain. You may freely copy parts of it in your application. ...
Lablgtk - Examples open StdLabels module Unix = UnixLabels let l = GMain.init () let ch = GMain.Io.channel_of_descr fd let w = GWindow.window ~width:300 ~height:200 () let buffer = GText.buffer () let text = GText.view ~buffer ~packing:w#add () let () = prerr...
f8ccfe8f05c9e7eaa9da60d4762f707e979366c81d52d54e9284b9524b7d653f
yzhs/ocamlllvm
boxedints.ml
Test the types nativeint , int32 , int64 open Printf let error_occurred = ref false let function_tested = ref "" let testing_function s = function_tested := s; print_newline(); print_string s; print_newline() let test test_number answer correct_answer = flush stdout; flush stderr; if answer <>...
null
https://raw.githubusercontent.com/yzhs/ocamlllvm/45cbf449d81f2ef9d234968e49a4305aaa39ace2/tests/basic/boxedints.ml
ocaml
******* The test proper ********* ******** End of test ********
Test the types nativeint , int32 , int64 open Printf let error_occurred = ref false let function_tested = ref "" let testing_function s = function_tested := s; print_newline(); print_string s; print_newline() let test test_number answer correct_answer = flush stdout; flush stderr; if answer <>...
5baf6995b554b91ef278cb0fd27cde6f59438926e5fde241c99f8f62798c7dcf
tschady/advent-of-code
blogify.clj
(ns blogify "Main entry point for command line use." (:gen-class) (:require [clojure.java.io :as io] [clojure.string :as str] [marginalia.parser :as parser])) ;; We'll use the `marginalia` parser, but monkeypatched so docstrings still show. (in-ns 'marginalia.parser) (defn strip-docstring [_ raw] raw) (...
null
https://raw.githubusercontent.com/tschady/advent-of-code/eef58af6dfbbed0fec0275e09debd42a3c293374/script/blogify.clj
clojure
We'll use the `marginalia` parser, but monkeypatched so docstrings still show. Holy hackamole, use tools.cli
(ns blogify "Main entry point for command line use." (:gen-class) (:require [clojure.java.io :as io] [clojure.string :as str] [marginalia.parser :as parser])) (in-ns 'marginalia.parser) (defn strip-docstring [_ raw] raw) (in-ns 'blogify) (def blog-marker #"\^:blog\s?") (def base-url "-of-code/blob/mai...
405c6bce8ad58804f2ab5e8167703a9c2e876e1974b9c978a342046c19eaf639
lem-project/lem
misc.lisp
(defpackage :lem-lisp-syntax.misc (:use :cl :lem-base) (:export :beginning-of-defun :top-of-defun) #+sbcl (:lock t)) (in-package :lem-lisp-syntax.misc) (defun beginning-of-defun (point n) (with-point ((start point)) (if (minusp n) (dotimes (_ (- n) point) (if (start-line-p point) ...
null
https://raw.githubusercontent.com/lem-project/lem/a17b56e415eb7a94fa3653800b9fea7ae59f664c/lib/lisp-syntax/misc.lisp
lisp
(defpackage :lem-lisp-syntax.misc (:use :cl :lem-base) (:export :beginning-of-defun :top-of-defun) #+sbcl (:lock t)) (in-package :lem-lisp-syntax.misc) (defun beginning-of-defun (point n) (with-point ((start point)) (if (minusp n) (dotimes (_ (- n) point) (if (start-line-p point) ...
5d762fb97099486a50b521ae01f588c37656e110b59746eb3d0e693b44f1275c
ocaml/uchar
build.ml
#!/usr/bin/env ocaml #directory "pkg";; #use "topkg.ml";; let builder = `OCamlbuild_no_ocamlfind [] let pkg_after_4_03 () = Pkg.describe "uchar" ~builder [ Pkg.lib "pkg/META.empty" ~dst:"META" ] let pkg_before_4_03 () = Pkg.describe "uchar" ~builder [ Pkg.lib "pkg/META"; Pkg.lib ~exts:Exts.module_lib...
null
https://raw.githubusercontent.com/ocaml/uchar/f9988830581a1f233d32e79aaacf8af76ddb9613/pkg/build.ml
ocaml
#!/usr/bin/env ocaml #directory "pkg";; #use "topkg.ml";; let builder = `OCamlbuild_no_ocamlfind [] let pkg_after_4_03 () = Pkg.describe "uchar" ~builder [ Pkg.lib "pkg/META.empty" ~dst:"META" ] let pkg_before_4_03 () = Pkg.describe "uchar" ~builder [ Pkg.lib "pkg/META"; Pkg.lib ~exts:Exts.module_lib...
126dda4a243fa5b6741d9120bdc4d7064280a0e9f31e77a6c3bbb4ca0ef0683a
kelamg/HtDP2e-workthrough
ex336.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-lambda-reader.ss" "lang")((modname ex336) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-...
null
https://raw.githubusercontent.com/kelamg/HtDP2e-workthrough/ec05818d8b667a3c119bea8d1d22e31e72e0a958/HtDP/Intertwined-Data/ex336.rkt
racket
about the language level of this file in a form that our tools can easily process. A File.v3 is a structure: (make-file String N String) A Dir.v3 is a structure: (make-dir String Dir* File*) – '() – (cons Dir.v3 Dir*) – '() – (cons File.v3 File*) Dir.v3 -> N produces the number of files contained in di...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex336) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (define-struct file [name size content]) (define-stru...
d284c9c0361744cc14c2dd1681812ba8ce3f82b0dab65f3380429754b4e65f82
boomerang-lang/boomerang
info.ml
(*******************************************************************************) The Harmony Project (* *) (* info.ml - common defini...
null
https://raw.githubusercontent.com/boomerang-lang/boomerang/b42c2bfc72030bbe5c32752c236c0aad3b17d149/hbase/info.ml
ocaml
***************************************************************************** info.ml - common definitions for reporting locations of errors ***************************************************************************** string_...
The Harmony Project $ I d : info.ml 3437 2007 - 12 - 09 22:41:31Z jnfoster $ type pos = int * int type t = I of string * pos * pos | M of string let string_of_t = function I (fn, (l1,c1),(l2,c2)) -> ...
628e6412ad759bd04014849b4f2810721da03826fae658034f8a4492b15904ba
ocaml-flambda/ocaml-jst
typeclass.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-flambda/ocaml-jst/fae9aef6b7023f2bf8c94f28e8ef8cbd8ffb7633/typing/typeclass.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 open Format type 'a class_info = { cls_id : Ident.t; cls_id_loc : string loc; ...
0f962da5f9be79376a406acda0948e0a3be8dff286a1e1529ef7757bcafe706b
bmeurer/ocaml-arm
int64ops.ml
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ,...
null
https://raw.githubusercontent.com/bmeurer/ocaml-arm/43f7689c76a349febe3d06ae7a4fc1d52984fd8b/debugger/int64ops.ml
ocaml
********************************************************************* OCaml ...
, projet , Copyright 2002 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 . $ Id$ * * * * * * * * * * * * * * * * * arithmetic operators ...