_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
9833e5a77352fdc9f547c9c5f23fcb73af6ab462c1d6ecf416812174012eb4d9
tranma/shitty-complexity
BigOh.hs
module Test.BigOh ( Settings(..) , module X , naiveWhnf , rlmWhnf , mcmcWhnf , naive , rlm , mcmc , genRunWhnf , defaultsForListInput , defaultsForIntInput , getPoints , rVoodoo ) where import Control.Arrow import Criterion.Types import Data.List import ...
null
https://raw.githubusercontent.com/tranma/shitty-complexity/573815a8af9d5f3cda3c96e22d59b71ec9f29de9/src/Test/BigOh.hs
haskell
------------------------------------------------------------------------------
module Test.BigOh ( Settings(..) , module X , naiveWhnf , rlmWhnf , mcmcWhnf , naive , rlm , mcmc , genRunWhnf , defaultsForListInput , defaultsForIntInput , getPoints , rVoodoo ) where import Control.Arrow import Criterion.Types import Data.List import ...
1adabc7b0408e3f40e422e48982cde4940d2f8049a57aa90168e3f911cbbc522
returntocorp/semgrep
graph_code_helpers.mli
val propagate_users_of_functions_globals_types_to_prototype_extern_typedefs : Graph_code.t -> unit
null
https://raw.githubusercontent.com/returntocorp/semgrep/855abad9ada6ea5fd72d437fd69ff2e5fa42c1f1/libs/graph_code/graph_code_helpers.mli
ocaml
val propagate_users_of_functions_globals_types_to_prototype_extern_typedefs : Graph_code.t -> unit
0bb39d4053674231e0fbe50881fdefc2af2cdf6c762518274a5c96d99b4baceb
byteally/dbrecord
Parser.hs
{-# LANGUAGE OverloadedStrings #-} module DBRecord.Sqlite.Internal.Sql.Parser where ( sqlExpr , parseSqliteType , SizeInfo ( .. ) , defSizeInfo ) where import DBRecord . Internal . . DML import Data . Attoparsec . Text hiding ( number ) import qualified Data . Text as T import qualified Da...
null
https://raw.githubusercontent.com/byteally/dbrecord/991efe9a293532ee9242b3e9a26434cf16f5b2a0/dbrecord-sqlite-simple/src/DBRecord/Sqlite/Internal/Sql/Parser.hs
haskell
# LANGUAGE OverloadedStrings # compositeExpr < | > < * endOfInput ( postfixOrWindowExpr <|> binSqlExpr <|> -- compositeExpr <|> prefixSqlExpr <|> termSqlExpr) -- <* -- endOfInput where binSqlExpr = do e1 <- termSqlExpr b <- binOp ...
module DBRecord.Sqlite.Internal.Sql.Parser where ( sqlExpr , parseSqliteType , SizeInfo ( .. ) , defSizeInfo ) where import DBRecord . Internal . . DML import Data . Attoparsec . Text hiding ( number ) import qualified Data . Text as T import qualified Data . . Text as A import Data . T...
a93a5d7fb40fa31152164fe0c1e789ea07522d7eb4e8b3d8c2cd6044ee2db244
zotonic/zotonic
zotonic_cmd_siteconfigfiles.erl
@author < > 2019 %% @doc List all configuration files for a site Copyright 2019 %% 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...
null
https://raw.githubusercontent.com/zotonic/zotonic/852f627c28adf6e5212e8ad5383d4af3a2f25e3f/apps/zotonic_launcher/src/command/zotonic_cmd_siteconfigfiles.erl
erlang
@doc List all configuration files for a site 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 Li...
@author < > 2019 Copyright 2019 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(zotonic_cmd_siteconfigfiles). -author("Blaise"). -export([info/0, run/1]). info() -> "List the config files used fo...
5c6e828e1a8454d6b2301ffb1f2dd80115dcdabe57edc22981ca7b0db8aa626a
TyOverby/five
bindings.ml
open! Ctypes let () = let os_name = let ic = Unix.open_process_in "uname" in let uname = input_line ic in let () = close_in ic in uname in match os_name with | "Darwin" -> ignore (Dl.dlopen ~filename:"libfive.dylib" ~flags:[] : _) | _ -> () ;; let () = ignore (Dl.dlopen ~filename:"libfiv...
null
https://raw.githubusercontent.com/TyOverby/five/0922cd23e15859541dffc4f820a4e6286a52819b/five_sys/bindings.ml
ocaml
open! Ctypes let () = let os_name = let ic = Unix.open_process_in "uname" in let uname = input_line ic in let () = close_in ic in uname in match os_name with | "Darwin" -> ignore (Dl.dlopen ~filename:"libfive.dylib" ~flags:[] : _) | _ -> () ;; let () = ignore (Dl.dlopen ~filename:"libfiv...
560ad0ae603721ef0a8b014d72bb5c06a7fb9a9bb999425d99f797f3d1b890f7
progman1/genprintlib
breakpoints.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/progman1/genprintlib/acc1e5cc46b9ce6191d0306f51337581c93ffe94/debugger/4.07.1/breakpoints.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt OCaml port by and Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Checkpoints open Debugcom open Instruct open Print...
3c3a66f17d0fe51ce00883d883dbc81c730762f45402b25468d5772075404c2d
openmusic-project/OMChroma
dv.lisp
;===================================================== ; CHROMA ;===================================================== part of the OMChroma library - > High - level control of sound synthesis in OM ;===================================================== ; ;This program is free software; you can redistribute it and/...
null
https://raw.githubusercontent.com/openmusic-project/OMChroma/5ded34f22b59a1a93ea7b87e182c9dbdfa95e047/sources/chroma/dg/dv.lisp
lisp
===================================================== CHROMA ===================================================== ===================================================== This program is free software; you can redistribute it and/or either version 2 of the License, or (at your option) any later version. See file LIC...
part of the OMChroma library - > High - level control of sound synthesis in OM modify it under the terms of the GNU General Public License File author : -------| This file is : $ LLdg / DV.ll -------| Version V1.0 : Jan 22 , 1990 -------| By -------| Copyright 1990 IRCAM (in-package :cr) bkwd - rept - ...
bb3195eaa7aa6b39bf4f984401136efd63dc18a79ba1f12df9c0bfc52a41b17f
fpco/ide-backend
Public.hs
# LANGUAGE TemplateHaskell , DeriveDataTypeable , DeriveGeneric , NamedFieldPuns , RecordWildCards # -- | The public types module IdeSession.Types.Public ( -- * Types IdNameSpace(..) , Type , Name , IdInfo(..) , IdProp(..) , IdScope(..) , SourceSpan(..) , EitherSpan(..) , SourceError(..) , So...
null
https://raw.githubusercontent.com/fpco/ide-backend/860636f2d0e872e9481569236bce690637e0016e/ide-backend-common/IdeSession/Types/Public.hs
haskell
| The public types * Types , LoadedModules * Util , idInfoAtLocation Binary instance for Text ----------------------------------------------------------------------------- Types ----------------------------------------------------------------------------- ^ Variables, including real data constructors ^ Source...
# LANGUAGE TemplateHaskell , DeriveDataTypeable , DeriveGeneric , NamedFieldPuns , RecordWildCards # module IdeSession.Types.Public ( IdNameSpace(..) , Type , Name , IdInfo(..) , IdProp(..) , IdScope(..) , SourceSpan(..) , EitherSpan(..) , SourceError(..) , SourceErrorKind(..) , ModuleName , ...
fffba825dc60222f75486eeff56630cbfe79e5e5845d1a36345e62f7849b5c6c
jumarko/clojure-experiments
ch02.clj
(ns clojure-experiments.books.clojure-for-finance.ch02) ;;; p.17 (defn generate-prices [lower-bound upper-bound] (filter (fn [x] (>= x lower-bound)) (repeatedly (fn [] (rand upper-bound))))) (take 10 (generate-prices 12 35)) = > ( 15.67234041358418 28.52735350663132 32.38363118954629 30.604375079334943 2...
null
https://raw.githubusercontent.com/jumarko/clojure-experiments/4439679c818c047e0a4e413e8f0f04cf950f1a7d/src/clojure_experiments/books/clojure_for_finance/ch02.clj
clojure
p.17 ... it's much easier written like this: ...
(ns clojure-experiments.books.clojure-for-finance.ch02) (defn generate-prices [lower-bound upper-bound] (filter (fn [x] (>= x lower-bound)) (repeatedly (fn [] (rand upper-bound))))) (take 10 (generate-prices 12 35)) = > ( 15.67234041358418 28.52735350663132 32.38363118954629 30.604375079334943 26.1522016...
4d3e8ad25f0e7792719764de9d01a867370c04f146b43fb8c73e31c88f7b0488
larcenists/larceny
reference.body2.scm
Copyright ( C ) ( 2015 ) . All Rights Reserved . ;;; ;;; 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, ;;;...
null
https://raw.githubusercontent.com/larcenists/larceny/fef550c7d3923deb7a5a1ccd5a628e54cf231c75/lib/SRFI/srfi/128/reference.body2.scm
scheme
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or Software is furnished to do so, subject to the following conditions...
Copyright ( C ) ( 2015 ) . All Rights Reserved . files ( the " Software " ) , to deal in the Software without sell copies of the Software , and to permit persons to whom the included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , ...
f17d40dfe241f0dc767ab419c4f4e441d559f79ac7f2f04c62af52d6a705eea5
wdebeaum/DeepSemLex
post.lisp
;;;; ;;;; W::post ;;;; (define-words :pos W::n :templ COUNT-PRED-TEMPL :words ( ((W::post w::doc) (SENSES ((meta-data :origin caloy3 :entry-date 20070330 :change-date nil :wn ("researcher%1:18:00") :comments caloy3-test-data) (LF-PARENT ONT::scholar) ;professional) ) ) ) )) (define-words :p...
null
https://raw.githubusercontent.com/wdebeaum/DeepSemLex/ce0e7523dd2b1ebd42b9e88ffbcfdb0fd339aaee/trips/src/LexiconManager/Data/new/post.lisp
lisp
W::post professional)
(define-words :pos W::n :templ COUNT-PRED-TEMPL :words ( ((W::post w::doc) (SENSES ((meta-data :origin caloy3 :entry-date 20070330 :change-date nil :wn ("researcher%1:18:00") :comments caloy3-test-data) ) ) ) )) (define-words :pos W::v :TEMPL AGENT-AFFECTED-XP-NP-TEMPL :words ( (W::post (S...
12cf645f3b462838d8fe691037d82c8e501cb299d2224536cc559c0f37e962f5
denisidoro/rosebud
server.clj
(ns rosebud.server (:gen-class) (:require [rosebud.components.system :as components.system])) (defn run-dev "The entry-point for 'lein run-dev'" [& args] (println "\nStarting [DEV] server...") (components.system/create-and-start-system! :dev) (println "\n[DEV] server created!")) (defn restart "The ent...
null
https://raw.githubusercontent.com/denisidoro/rosebud/90385528d9a75a0e17803df487a4f6cfb87e981c/server/src/rosebud/server.clj
clojure
(ns rosebud.server (:gen-class) (:require [rosebud.components.system :as components.system])) (defn run-dev "The entry-point for 'lein run-dev'" [& args] (println "\nStarting [DEV] server...") (components.system/create-and-start-system! :dev) (println "\n[DEV] server created!")) (defn restart "The ent...
b65e5016302b81b09dca833c5476f5e54c7482d391add9af6d940d5797acac40
EveryTian/Haskell-Codewars
simple-fun-number-27-rectangle-rotation.hs
-- -fun-number-27-rectangle-rotation module RectangleRot.JorgeVS.Kata where rectangleRot :: Int -> Int -> Int rectangleRot a b = evenMin1 $ f a b where get x = floor $ fromIntegral x / sqrt 2 f a b = get a * get b + (get a + 1) * (get b + 1) evenMin1 x = if even x then x - 1 else x
null
https://raw.githubusercontent.com/EveryTian/Haskell-Codewars/dc48d95c676ce1a59f697d07672acb6d4722893b/4kyu/simple-fun-number-27-rectangle-rotation.hs
haskell
-fun-number-27-rectangle-rotation
module RectangleRot.JorgeVS.Kata where rectangleRot :: Int -> Int -> Int rectangleRot a b = evenMin1 $ f a b where get x = floor $ fromIntegral x / sqrt 2 f a b = get a * get b + (get a + 1) * (get b + 1) evenMin1 x = if even x then x - 1 else x
ff7a7abf0c2afd5136d850ea4a8f4a975faa58eb4391aebb89f2fb5c3e03d42d
input-output-hk/plutus-apps
CardanoTestnet.hs
# LANGUAGE CPP # # LANGUAGE GADTs # # LANGUAGE NamedFieldPuns # {-# LANGUAGE NumericUnderscores #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # {-# OPTIONS_GHC -Wno-unused-local-binds...
null
https://raw.githubusercontent.com/input-output-hk/plutus-apps/7fc2910f7ecc9ef309dc665a5950acae776058d7/plutus-e2e-tests/test/CardanoTestnet.hs
haskell
# LANGUAGE NumericUnderscores # # LANGUAGE OverloadedStrings # # LANGUAGE RecordWildCards # # OPTIONS_GHC -Wno-unused-local-binds -Wno-unused-matches # # OPTIONS_GHC -Wno-name-shadowing # MacOS. We need to allow a lot more time to set up a testnet. | Check if a TCP port is open | Check if it is possible to c...
# LANGUAGE CPP # # LANGUAGE GADTs # # LANGUAGE NamedFieldPuns # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # OPTIONS_GHC -Wno - missing - import - lists # # OPTIONS_GHC -Wno - incomplete - uni - patterns # | Copy of Cardano . Babbage from cardano - testn...
510c184af11287d6b315b8b41d1039ea3792533f7357655776ce736c260d2b5f
xapi-project/xen-api
cluster_interface.ml
(* Cluster interface *) open Idl let service_name = "cluster" let queue_name = Xcp_service.common_prefix ^ service_name let json_path = "/var/xapi/cluster.json" (** An uninterpreted string associated with the operation. *) type debug_info = string [@@deriving rpcty] (** Name of the cluster *) type cluster_name = ...
null
https://raw.githubusercontent.com/xapi-project/xen-api/0af6cf7d57577eea247079ea4e510fd1cc9f9bad/ocaml/xapi-idl/cluster/cluster_interface.ml
ocaml
Cluster interface * An uninterpreted string associated with the operation. * Name of the cluster * This type describes an individual node in the cluster. It must have a unique identity (an int32), and may have multiple IPv4 addresses on which it can be contacted. * This type contains all of the information...
open Idl let service_name = "cluster" let queue_name = Xcp_service.common_prefix ^ service_name let json_path = "/var/xapi/cluster.json" type debug_info = string [@@deriving rpcty] type cluster_name = string [@@deriving rpcty] * An IPv4 address ( a.b.c.d ) type address = IPv4 of string [@@deriving rpcty] let pr...
a2787fb9089befa0aa8ed977482fcbc7943e0ab551ad84e4ea22cdbd4e8bc1f5
cljfx/cljfx
shadow.clj
(ns cljfx.fx.shadow "Part of a public API" (:require [cljfx.composite :as composite] [cljfx.lifecycle :as lifecycle] [cljfx.coerce :as coerce]) (:import [javafx.scene.effect Shadow BlurType])) (set! *warn-on-reflection* true) (def props (composite/props Shadow :input [:setter lifec...
null
https://raw.githubusercontent.com/cljfx/cljfx/543f7409290051e9444771d2cd86dadeb8cdce33/src/cljfx/fx/shadow.clj
clojure
(ns cljfx.fx.shadow "Part of a public API" (:require [cljfx.composite :as composite] [cljfx.lifecycle :as lifecycle] [cljfx.coerce :as coerce]) (:import [javafx.scene.effect Shadow BlurType])) (set! *warn-on-reflection* true) (def props (composite/props Shadow :input [:setter lifec...
2ca6e97f5126c77d114ce13f572b30bb4197f2e99d5f028ee48fab762017e655
brendanhay/terrafomo
Resources.hs
-- This module is auto-generated. # LANGUAGE NoImplicitPrelude # # LANGUAGE RecordWildCards # # LANGUAGE StrictData # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -fno - warn - unused - imports # -- | Module : . Null . Resources Copyright : ( c ) 2017 - 2018 License : M...
null
https://raw.githubusercontent.com/brendanhay/terrafomo/387a0e9341fb9cd5543ef8332dea126f50f1070e/provider/terrafomo-builtins/gen/Terrafomo/Null/Resources.hs
haskell
This module is auto-generated. | Stability : auto-generated * null_resource | The main @null_resource@ resource definition. - (Optional, Forces New)
# LANGUAGE NoImplicitPrelude # # LANGUAGE RecordWildCards # # LANGUAGE StrictData # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -fno - warn - unused - imports # Module : . Null . Resources Copyright : ( c ) 2017 - 2018 License : Mozilla Public License , v. 2.0 . Main...
8296804f5e0466a3159166278e90dcaa4804a2c7c278cce1863bc09ec96d13ee
philnguyen/soft-contract
prims-04-04.rkt
#lang typed/racket/base (provide prims-04-04@) (require racket/match racket/contract racket/bool racket/string racket/math racket/list racket/stream racket/dict racket/function racket/set racket/flonum racket/fixnum ...
null
https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/primitives/prims-04-04.rkt
racket
FIXME varargs 4.4.4 Bytes to Bytes Encoding Conversion [bytes-convert-end] [bytes-append*]
#lang typed/racket/base (provide prims-04-04@) (require racket/match racket/contract racket/bool racket/string racket/math racket/list racket/stream racket/dict racket/function racket/set racket/flonum racket/fixnum ...
af94011767e8c5d56090f661b6e1fac2e7bfc21ddf3e0c1ea4739f09024a57e3
melhadad/fuf
test5.lisp
;;; -*- Mode:Lisp; Syntax:Common-Lisp; Package: FUG5 -*- ;;; ----------------------------------------------------------------------- ;;; File: test5.l ;;; Description: Test paths as attributes (equations) Author : Created : 4 Jun 1990 Modified : 5 Jun 1990 Package : FUG5 ;;;...
null
https://raw.githubusercontent.com/melhadad/fuf/57bd0e31afc6aaa03b85f45f4c7195af701508b8/examples/test5.lisp
lisp
-*- Mode:Lisp; Syntax:Common-Lisp; Package: FUG5 -*- ----------------------------------------------------------------------- File: test5.l Description: Test paths as attributes (equations) -----------------------------------------------------------------------
Author : Created : 4 Jun 1990 Modified : 5 Jun 1990 Package : FUG5 (in-package "FUG5") (defvar a '(%TEST% (a ((b (({} ((x 1))) ({^ z} {x}) ({^ c} ((y 2))) (d 3))))))) (defvar b0 '((a ((c 1))))) (defvar b1 '((x 2))) (defvar b2 '((a ((c ((z 3))))))) (defvar b3 '((a ...
cd6e85dea9ce4db2d6cf46ba4b8231e110323455a39bf1501fff508cb5bc7802
fortytools/holumbus
JSON.hs
-- ---------------------------------------------------------------------------- | Module : Hayoo . Search . JSON Copyright : Copyright ( C ) 2010 License : MIT Maintainer : ( ) Stability : experimental Portability : portable Version : 0.1 Rendering a Hayoo ! ...
null
https://raw.githubusercontent.com/fortytools/holumbus/4b2f7b832feab2715a4d48be0b07dca018eaa8e8/Hayoo/HayooSnap/Hayoo/Search/JSON.hs
haskell
---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ----------------------------------------------------------------------------
| Module : Hayoo . Search . JSON Copyright : Copyright ( C ) 2010 License : MIT Maintainer : ( ) Stability : experimental Portability : portable Version : 0.1 Rendering a Hayoo ! search result into a JSON string . Module : Hayoo.Search.JSON Copyrig...
b98af4e08bb5faa664cf127fa734344116179dbd926ee85da795a193faf3d0af
andrewthad/primitive-containers
Unlifted.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE KindSignatures # # LANGUAGE MagicHash # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE UnboxedTuples # module Data.Map.Subset.Strict.Unlifted ( I.Map , singleton , lookup , toList , fromList ) where import Prelude ...
null
https://raw.githubusercontent.com/andrewthad/primitive-containers/55e2775df3399b447c7b44396d95956111ceb449/src/Data/Map/Subset/Strict/Unlifted.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE RankNTypes #
# LANGUAGE KindSignatures # # LANGUAGE MagicHash # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE UnboxedTuples # module Data.Map.Subset.Strict.Unlifted ( I.Map , singleton , lookup , toList , fromList ) where import Prelude hiding (lookup) import Data.Map.Subset.Strict.Internal (M...
00cab30397f9e4dbab27bbcf1b43c184564b12c0c400a784311508059728b5dc
clojure-interop/google-cloud-clients
ServiceRpcFactory.clj
(ns com.google.cloud.spi.ServiceRpcFactory "A base interface for all service RPC factories. Implementation must provide a public no-arg constructor. Loading of a factory implementation is done via ServiceLoader." (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.spi ServiceRpcFactory])...
null
https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.spi/src/com/google/cloud/spi/ServiceRpcFactory.clj
clojure
(ns com.google.cloud.spi.ServiceRpcFactory "A base interface for all service RPC factories. Implementation must provide a public no-arg constructor. Loading of a factory implementation is done via ServiceLoader." (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.spi ServiceRpcFactory])...
b43cf02ddc37c304d50be18384192ea035677ab6d4e27fcd98cf9108b41bac55
GregorySchwartz/too-many-cells
Peaks.hs
TooManyCells . Program . Peaks entry point for command line program . Gregory W. Schwartz Peaks entry point for command line program. -} # LANGUAGE DuplicateRecordFields # module TooManyCells.Program.Peaks where -- Remote import BirchBeer.Load (loadLabelData) import BirchBeer.Types (Delimiter (..), Labe...
null
https://raw.githubusercontent.com/GregorySchwartz/too-many-cells/34b9c9ee5695504824169f44e01d8c3ea2d55546/src/TooManyCells/Program/Peaks.hs
haskell
Remote Local | Peaks path.
TooManyCells . Program . Peaks entry point for command line program . Gregory W. Schwartz Peaks entry point for command line program. -} # LANGUAGE DuplicateRecordFields # module TooManyCells.Program.Peaks where import BirchBeer.Load (loadLabelData) import BirchBeer.Types (Delimiter (..), LabelFile (..)...
663cad584b71bfc8ffad8a66b086fd75c8986b83a9f969d63ac367b93d18882f
ocaml-ppx/ocamlformat
gen.ml
module StringMap = Map.Make (String) let spf = Printf.sprintf let dep fname = spf "%%{dep:%s}" fname type setup = { mutable has_ref: bool ; mutable has_opts: bool ; mutable has_ocp: bool ; mutable ocp_opts: string list ; mutable base_file: string option ; mutable extra_deps: string list ; mutable shoul...
null
https://raw.githubusercontent.com/ocaml-ppx/ocamlformat/1ad4bdba9e1fd4a0bd73e22f75b3079c70cdba53/test/passing/gen/gen.ml
ocaml
ignore dune file, .foo.whatever.swp, etc
module StringMap = Map.Make (String) let spf = Printf.sprintf let dep fname = spf "%%{dep:%s}" fname type setup = { mutable has_ref: bool ; mutable has_opts: bool ; mutable has_ocp: bool ; mutable ocp_opts: string list ; mutable base_file: string option ; mutable extra_deps: string list ; mutable shoul...
5ecc4e41db1791e5d1f9fb5de4f176d8cad6d742b2e341d8968200d06f162d73
robinhood/riemann
ntp.clj
(ns robinhood.consumers.ops.ntp (:require [robinhood.notifiers.log :refer :all] [robinhood.notifiers.email :refer [email]] [robinhood.notifiers.slack :refer [slack-alert]] [robinhood.notifiers.opsgenie :refer [opsgenie]] [robinhood.rules.base :refer :all] [r...
null
https://raw.githubusercontent.com/robinhood/riemann/48c250c30227f842646e86e4ac5b14c66aef4fda/robinhood/consumers/ops/ntp.clj
clojure
don't wait for this to occur x times. This is a per host check.
(ns robinhood.consumers.ops.ntp (:require [robinhood.notifiers.log :refer :all] [robinhood.notifiers.email :refer [email]] [robinhood.notifiers.slack :refer [slack-alert]] [robinhood.notifiers.opsgenie :refer [opsgenie]] [robinhood.rules.base :refer :all] [r...
d95b8c3be0ee137763bbc15bbb066b2cb9a59a29a68f9eefb328114f4e35dc86
ghcjs/ghcjs
inlineByteArrayAlloc.hs
# LANGUAGE MagicHash , UnboxedTuples # module Main where import GHC.Exts import GHC.IO main :: IO () main = loop 10000000 where loop :: Int -> IO () loop 0 = return () loop i = newByteArray >> loop (i-1) newByteArray :: IO () newByteArray = IO $ \s -> case newByteArray# 128# s of (# s', _ #) -> (# ...
null
https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/test/ghc/perf/inlineByteArrayAlloc.hs
haskell
# LANGUAGE MagicHash , UnboxedTuples # module Main where import GHC.Exts import GHC.IO main :: IO () main = loop 10000000 where loop :: Int -> IO () loop 0 = return () loop i = newByteArray >> loop (i-1) newByteArray :: IO () newByteArray = IO $ \s -> case newByteArray# 128# s of (# s', _ #) -> (# ...
16f9c8dee43c55ea65c2a345d09d5a92f40e5516c54a549587f7debe418ad6f9
thheller/shadow-cljs
single_file.clj
(ns shadow.build.targets.single-file (:require [clojure.java.io :as io] [shadow.build :as b] [shadow.build.targets.browser :as browser] [shadow.build.targets.shared :as shared] [shadow.cljs.repl :as repl] [shadow.build.api :as build-api] [shadow.cljs.devtools.api :as api] [shadow.build...
null
https://raw.githubusercontent.com/thheller/shadow-cljs/ba0a02aec050c6bc8db1932916009400f99d3cce/src/main/shadow/build/targets/single_file.clj
clojure
REPL client - only for watch (via worker-info), not compile acts of sort of a cache for source maps converting CLJS format to v3 is quite expensive so we only want to do that once
(ns shadow.build.targets.single-file (:require [clojure.java.io :as io] [shadow.build :as b] [shadow.build.targets.browser :as browser] [shadow.build.targets.shared :as shared] [shadow.cljs.repl :as repl] [shadow.build.api :as build-api] [shadow.cljs.devtools.api :as api] [shadow.build...
9ad37f5f2746bd0932c5a2c913c6feb97e71e9de53bfbca4b87a8aabc458acc9
hipsleek/hipsleek
template.ml
#include "xdebug.cppo" open VarGen open Globals open Gen open Cpure open Tlutils module MCP = Mcpure module CF = Cformula module C = Cast (* module TU = Tlutils *) (* module DD = Debug *) (********************************) (* COLLECT TEMPLATE ASSUMPTIONS *) (********************************) let collect_templ_assume_...
null
https://raw.githubusercontent.com/hipsleek/hipsleek/596f7fa7f67444c8309da2ca86ba4c47d376618c/src/template.ml
ocaml
module TU = Tlutils module DD = Debug ****************************** COLLECT TEMPLATE ASSUMPTIONS ****************************** then we can remove non-template formulas in To generate sleek file of original template inference ******************************************* GENERATE CONSTRAINTS OF TEMPLATE UNKNO...
#include "xdebug.cppo" open VarGen open Globals open Gen open Cpure open Tlutils module MCP = Mcpure module CF = Cformula module C = Cast let collect_templ_assume_rhs (es: CF.entail_state) (ante: formula) (cons: formula) pos = let cons_fv = fv cons in let ante = find_rel_constraints ante cons_fv in let es = {...
5fbdec4f637279faaf1bdbe3595ad8ee885006421902194cc7fda2fe9708b472
amccausl/Swish
PartOrderedCollection.hs
-------------------------------------------------------------------------------- $ I d : PartOrderedCollection.hs , v 1.1 2004/01/13 12:31:24 graham Exp $ -- Copyright ( c ) 2003 , . All rights reserved . -- See end of this file for licence information. ------------------------------------------------...
null
https://raw.githubusercontent.com/amccausl/Swish/9a7356300960c62e3f0468067bda0c34ee3606bd/Swish/HaskellUtils/PartOrderedCollection.hs
haskell
------------------------------------------------------------------------------ See end of this file for licence information. ------------------------------------------------------------------------------ | Module : PartOrderedCollection Stability : provisional Portability : H98 This mo...
$ I d : PartOrderedCollection.hs , v 1.1 2004/01/13 12:31:24 graham Exp $ Copyright ( c ) 2003 , . All rights reserved . Copyright : ( c ) 2003 , License : GPL V2 Maintainer : > < > module Swish.HaskellUtils.PartOrderedCollection ( PartCompare ...
6cb582b5e9aecaf8582eaff9106caa1e00b6243b255a8e687f5b0e581e01a236
stacksmith/cepl-shadertoy
package.lisp
package.lisp (defpackage cepl-shadertoy (:use #:cl #:cepl #:livesupport #:temporal-functions #:varjo-lang #:rtg-math ))
null
https://raw.githubusercontent.com/stacksmith/cepl-shadertoy/0ced03e42798b53b8cb7f1638df85889381a97bd/package.lisp
lisp
package.lisp (defpackage cepl-shadertoy (:use #:cl #:cepl #:livesupport #:temporal-functions #:varjo-lang #:rtg-math ))
fe228d4e6d6c3f46f0854bdc5784c7506e54cbed778294056154a9ec243fbd5d
ocaml-omake/omake
omake_printf.ml
(* * This is a generic printf builder. We take "simple" printing * functions, and turn them into a general printf. * * Formatted printing. * Here are the format strings we handle. * d or i: print an integer in decminal * u: print an unsigned integer in decimal * x: print an integer in unsigned hex in ...
null
https://raw.githubusercontent.com/ocaml-omake/omake/08b2a83fb558f6eb6847566cbe1a562230da2b14/src/builtin/omake_printf.ml
ocaml
* This is a generic printf builder. We take "simple" printing * functions, and turn them into a general printf. * * Formatted printing. * Here are the format strings we handle. * d or i: print an integer in decminal * u: print an unsigned integer in decimal * x: print an integer in unsigned hex in lo...
module type PrintfArgsSig = sig type t type value val print_char : t -> char -> unit val print_string : t -> string -> unit val open_box : t -> int -> unit val open_hbox : t -> unit val open_vbox : t -> int -> unit val open_hvbox : t -> int -> unit val open_hovbox ...
08ff3b30bbe49f8d9e29ff1001dfd5324bd2d2d5fcd99fa4d87067a49f25f30d
arttuka/reagent-material-ui
face_3_sharp.cljs
(ns reagent-mui.icons.face-3-sharp "Imports @mui/icons-material/Face3Sharp as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def face-3-sharp (create-svg-icon [(e...
null
https://raw.githubusercontent.com/arttuka/reagent-material-ui/14103a696c41c0eb67fc07fc67cd8799efd88cb9/src/icons/reagent_mui/icons/face_3_sharp.cljs
clojure
(ns reagent-mui.icons.face-3-sharp "Imports @mui/icons-material/Face3Sharp as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def face-3-sharp (create-svg-icon [(e...
306342d5f4fe9c9f8f3473ffed787ba18af9015f8236282409803498f8cf397b
input-output-hk/cardano-benchmarking
LocalProtocolDefinition.hs
# LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} # LANGUAGE ScopedTypeVariables # {-# LANGUAGE RankNTypes #-} # LANGUAGE RecordWildCards # module Cardano.Benchmarking.GeneratorTx.LocalProtocolDefinition ( CliError (..) , runBenchmarkScriptWith , startProtocol ) where import...
null
https://raw.githubusercontent.com/input-output-hk/cardano-benchmarking/af05b42df27e2cc7305475cf5c4efa81e7f97540/cardano-tx-generator/src/Cardano/Benchmarking/GeneratorTx/LocalProtocolDefinition.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes # TODO: get this from genesis Let the logging layer print out everything.
# LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE RecordWildCards # module Cardano.Benchmarking.GeneratorTx.LocalProtocolDefinition ( CliError (..) , runBenchmarkScriptWith , startProtocol ) where import Prelude (error, show) import Paths_carda...
8faa524662dd753a005e2fec0088c4faa48cfcc6e4d0b2128beb287b337ad6f1
janegca/htdp2e
Exercise-251-my-map-with-lambda.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 Exercise-251-my-map-with-lambda) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "t...
null
https://raw.githubusercontent.com/janegca/htdp2e/2d50378135edc2b8b1816204021f8763f8b2707b/03-Abstractions/Exercise-251-my-map-with-lambda.rkt
racket
about the language level of this file in a form that our tools can easily process.
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname Exercise-251-my-map-with-lambda) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp"))) (htdp-settings #(#t constructor repeating-decimal #f #t none #f (...
742ed85589a98d33cf078e54c4abb9563087ebdc132cb639dcd90ed72cf89b0a
modlfo/pla
pla_tokens.ml
The MIT License ( MIT ) Copyright ( c ) 2016 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 , ...
null
https://raw.githubusercontent.com/modlfo/pla/088230017ccd151b0e955764d2d79c89a406078e/lib/pla_tokens.ml
ocaml
* Kinds of variables when tokenizing a template * Kinds of tokens of a template
The MIT License ( MIT ) Copyright ( c ) 2016 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 , ...
55a322037f0283a100af9173ff5d46f65bea26cc03647dbb23ca1e6be80869cd
OCamlPro/OCamlPro-OCaml-Branch
signatures.mli
(***********************************************************************) (* ocamlbuild *) (* *) , , projet Gallium , INRIA Rocquencourt (* ...
null
https://raw.githubusercontent.com/OCamlPro/OCamlPro-OCaml-Branch/3a522985649389f89dac73e655d562c54f0456a5/inline-more/ocamlbuild/signatures.mli
ocaml
********************************************************************* ocamlbuild ...
, , projet Gallium , INRIA Rocquencourt Copyright 2007 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 . Original author : module type OrderedTypePrintab...
cda79fda0799f4e27988a46622b68b3547905c06f2df620ebc99007a5c67ecea
NetworkVerification/nv
Profile.ml
let time_profile msg (f : unit -> 'a) : 'a = let start_time = Sys.time () in let res = f () in let finish_time = Sys.time () in Printf.printf "%s took: %f secs to complete\n%!" msg (finish_time -. start_time); res ;; let time_profile_absolute msg (f : unit -> 'a) : 'a = let start_time = Unix.gettimeofday (...
null
https://raw.githubusercontent.com/NetworkVerification/nv/aa48abcd1bf9d4b7167cfe83a94b44e446a636e8/src/lib/utils/Profile.ml
ocaml
let time_profile msg (f : unit -> 'a) : 'a = let start_time = Sys.time () in let res = f () in let finish_time = Sys.time () in Printf.printf "%s took: %f secs to complete\n%!" msg (finish_time -. start_time); res ;; let time_profile_absolute msg (f : unit -> 'a) : 'a = let start_time = Unix.gettimeofday (...
daca140d0df5d1c36c00a44ce5f713f09bc6dacb39067f704ac0a49e365746bd
kframework/semantic-approaches
Parser.hs
module Language.Imp.Syntax.Parser ( parseImp , programParser , program , decList , stmt , aExp , bExp ) where import Data.Void import Data.Text ( Text ) import qualified Data.Text as T import Prelude hiding (and, not) import Text.Megaparsec ( Parsec, try, notFollowedBy, many, betwe...
null
https://raw.githubusercontent.com/kframework/semantic-approaches/6f64eac09e005fe4eae7141e3c0e0f5711da0647/haskell/semantic-styles/src/Language/Imp/Syntax/Parser.hs
haskell
---------------------- Source File Parser -- ------------------- -------------- Statements -- --------------- Expressions -- Arithmetic Logical Relations
module Language.Imp.Syntax.Parser ( parseImp , programParser , program , decList , stmt , aExp , bExp ) where import Data.Void import Data.Text ( Text ) import qualified Data.Text as T import Prelude hiding (and, not) import Text.Megaparsec ( Parsec, try, notFollowedBy, many, betwe...
4ad1d004653d1c93a3ae6139cea36216c8fb38db02ff8f8023d02c3415bbdf94
Frama-C/Frama-C-snapshot
clone_test.ml
let run () = Ast.compute (); let f = Globals.Functions.find_by_name "f" in let _ = Clone.clone_defined_kernel_function f in File.pretty_ast(); Filecheck.check_ast "clone" let () = Db.Main.extend run
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/tests/syntax/clone_test.ml
ocaml
let run () = Ast.compute (); let f = Globals.Functions.find_by_name "f" in let _ = Clone.clone_defined_kernel_function f in File.pretty_ast(); Filecheck.check_ast "clone" let () = Db.Main.extend run
08a1dd0be0e59f2bd91e453f938ca60253a562914e0180e8472f6c44507792b2
kelamg/HtDP2e-workthrough
ex302.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 ex302) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-...
null
https://raw.githubusercontent.com/kelamg/HtDP2e-workthrough/ec05818d8b667a3c119bea8d1d22e31e72e0a958/HtDP/Abstraction/ex302.rkt
racket
about the language level of this file in a form that our tools can easily process. Q - Where is the shaded occurrence of x bound? A - It is not bounded to any binding occurence; it is a free occurence. Q - What should be the value of the right-hand side according to our rules? A - The value of the right hand side...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex302) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) ( define x ( cons 1 x ) )
23d04e8d451e41238b599b4df44787b7c9bbff8df0b29d4faca6e57ec62f9f49
Frama-C/Frama-C-snapshot
partitioning_parameters.ml
(**************************************************************************) (* *) This file is part of Frama - C. (* *) Copyright ...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/value/partitioning/partitioning_parameters.ml
ocaml
************************************************************************ alternatives) ...
This file is part of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , v...
f19a5061ff4292807da0a981c736d6117f19bd50bce67b1069d291135bc38907
tonyrog/hid
hid.erl
@author < > ( C ) 2013 , %%% @doc HIDAPI interface %%% @end Created : 31 Aug 2013 by < > -module(hid). -export([enumerate/0, enumerate/2]). -export([open/2, open/3, open_path/1]). -export([close/1]). -export([get_manufacturer_string/1]). -export([get_product_string/1]). -export([get_serial_numbe...
null
https://raw.githubusercontent.com/tonyrog/hid/4ada4570d08b173b7141bb3b016ae5f587aacb4b/src/hid.erl
erlang
@doc @end just a big buffer
@author < > ( C ) 2013 , HIDAPI interface Created : 31 Aug 2013 by < > -module(hid). -export([enumerate/0, enumerate/2]). -export([open/2, open/3, open_path/1]). -export([close/1]). -export([get_manufacturer_string/1]). -export([get_product_string/1]). -export([get_serial_number_string/1]). -exp...
dcac4fce3b9db9b6bd379be6d21536565fb16f0e6d037d1ab122b14fbfdbf69b
altsun/My-Lisps
(CDV) Array nhanh.lsp
;; free lisp from cadviet.com (defun C:CDV(/ ss opt p1 p2 d ag i oldos mode n) ;;;Muti/Divide copy (setq ss (ssget) opt (strcase (getstring "\nCopy Multi-n/Divide-n <D2>:")) p1 (getpoint "\nFirst base point:") p2 (getpoint p1 "\nSecond base point:") d (distance p1 p2) ag (angle p1 p2) i 0 ...
null
https://raw.githubusercontent.com/altsun/My-Lisps/85476bb09b79ef5e966402cc5158978d1cebd7eb/Common/Copy-Array-Measure/(CDV)%20Array%20nhanh.lsp
lisp
free lisp from cadviet.com Muti/Divide copy
(setq ss (ssget) opt (strcase (getstring "\nCopy Multi-n/Divide-n <D2>:")) p1 (getpoint "\nFirst base point:") p2 (getpoint p1 "\nSecond base point:") d (distance p1 p2) ag (angle p1 p2) i 0 oldos (getvar "osmode") ) (if (= opt "") (setq opt "D2")) (setq mode (substr opt 1 1) n ...
6f7a3ec52ea810f43c1069960902797add4d88f9af2439a581f8cc04f30ec3c2
clj-commons/seesaw
scribble.clj
Copyright ( c ) , 2011 . All rights reserved . ; The use and distribution terms for this software are covered by the ; Eclipse Public License 1.0 (-1.0.php) ; which can be found in the file epl-v10.html at the root of this ; distribution. ; By using this software in any fashion, you are agreeing to be b...
null
https://raw.githubusercontent.com/clj-commons/seesaw/4ca89d0dcdf0557d99d5fa84202b7cc6e2e92263/test/seesaw/test/examples/scribble.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remo...
Copyright ( c ) , 2011 . All rights reserved . (ns seesaw.test.examples.scribble (:use [seesaw core color graphics behave] seesaw.test.examples.example)) (def colors [:black :white :blue :green :red :yellow :orange :purple nil]) (def state (atom { :tool nil :shapes [] :style (style :foregrou...
c47333be05122aa5de735c7144f786d4e83169f7ff4b635af6a2a377c3ecb37f
Frama-C/Frama-C-snapshot
GuiNavigator.ml
(**************************************************************************) (* *) This file is part of WP plug - in of Frama - C. (* *) Copyrigh...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/wp/GuiNavigator.ml
ocaml
************************************************************************ alternatives) ...
This file is part of WP plug - in of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat a l'energie atomique et aux energies Lesser General Public License as published by the Free Software Foundation ,...
818aa9df61e49fd9a0ed19fdff2ee315ca77a32358e9dbf94578297d97019564
Hexstream/definitions-systems
systems.lisp
(in-package #:definitions-systems) (defclass defsys:system () ()) (defclass defsys:hash-table-mixin (defsys:system) ((%hash :reader %hash :type hash-table :initform (make-hash-table :test 'eq)))) (defclass defsys:standard-system (defsys:base-definition-class-mixin ...
null
https://raw.githubusercontent.com/Hexstream/definitions-systems/03ef8090479f65f96017319a65fb2d7afe031de5/systems.lisp
lisp
(in-package #:definitions-systems) (defclass defsys:system () ()) (defclass defsys:hash-table-mixin (defsys:system) ((%hash :reader %hash :type hash-table :initform (make-hash-table :test 'eq)))) (defclass defsys:standard-system (defsys:base-definition-class-mixin ...
d8fe14283f9f1c83461d6d19f80083206f5949d4441e3d44cd7db4aa6999a1ec
Liqwid-Labs/agora
TreasuryWithdrawal.hs
| Module : Sample . Effect . TreasuryWithdrawalEffect Maintainer : Description : Sample based testing for Treasury Withdrawal Effect This module provides samples for Treasury Withdrawal Effect tests . Module : Sample.Effect.TreasuryWithdrawalEffect Maintainer : Description: Sample based testing ...
null
https://raw.githubusercontent.com/Liqwid-Labs/agora/00c10198e86800aa59c107043e7961ee32d987a2/agora-specs/Sample/Effect/TreasuryWithdrawal.hs
haskell
| A sample Currency Symbol. | A sample 'PubKeyHash'. | List of users who the effect will pay to. | List of users who the effect will pay to. Stake ST | Create a input given the index of the user and the 'Value' at this input. | Create a input representing the collateral given by a user. Initiator | Create an o...
| Module : Sample . Effect . TreasuryWithdrawalEffect Maintainer : Description : Sample based testing for Treasury Withdrawal Effect This module provides samples for Treasury Withdrawal Effect tests . Module : Sample.Effect.TreasuryWithdrawalEffect Maintainer : Description: Sample based testing ...
2a74bab51cfd8a651dfd7ab699aea667beec32fbcce0fa7a3394953b8a68f68e
janestreet/expect_test_helpers_core
expect_test_helpers_core.ml
open! Core include Expect_test_helpers_base include Expect_test_helpers_core_intf module Allocation_limit = struct include Allocation_limit let is_ok t ~major_words_allocated ~minor_words_allocated = match t with | Major_words n -> major_words_allocated <= n | Minor_words n -> major_words_allocated = ...
null
https://raw.githubusercontent.com/janestreet/expect_test_helpers_core/4df5c438bdb58603e788b54a6188c9226a0ec375/src/expect_test_helpers_core.ml
ocaml
open! Core include Expect_test_helpers_base include Expect_test_helpers_core_intf module Allocation_limit = struct include Allocation_limit let is_ok t ~major_words_allocated ~minor_words_allocated = match t with | Major_words n -> major_words_allocated <= n | Minor_words n -> major_words_allocated = ...
4c0a91a7185ad23c9b2c6bead0a727edafdbc7620a4f0cf131835a15498de510
aspiwack/peppermint-prover
CongruenceClosure.hs
# LANGUAGE AllowAmbiguousTypes # {-# LANGUAGE ConstraintKinds #-} # LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DerivingVia # # LANGUAGE FlexibleContexts # # LANGUAGE FunctionalDependencies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANG...
null
https://raw.githubusercontent.com/aspiwack/peppermint-prover/203dbabcc6392a869fca7ae71320cac1a62ecc05/refined-experiment/app/CongruenceClosure.hs
haskell
# LANGUAGE ConstraintKinds # * Capability * Congruence-closure monad We need a newtype because of the phantom recursivity. This will create a bit of unnecessary boilerplate, but I don't know a way around it. Spurious `Ord a`, here because of some incompleteness in the higher-order constraint algorithm. Ideally w...
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DerivingVia # # LANGUAGE FlexibleContexts # # LANGUAGE FunctionalDependencies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE PolyKinds # # LANGUAGE Quant...
347e302e3aab9edbb7d960cd8aec9c1186b672c421a8557db46b75227fe2ac6c
elastic/eui-cljs
icon_app_metricbeat.cljs
(ns eui.icon-app-metricbeat (:require ["@elastic/eui/lib/components/icon/assets/app_metricbeat.js" :as eui])) (def appMetricbeat eui/icon)
null
https://raw.githubusercontent.com/elastic/eui-cljs/ad60b57470a2eb8db9bca050e02f52dd964d9f8e/src/eui/icon_app_metricbeat.cljs
clojure
(ns eui.icon-app-metricbeat (:require ["@elastic/eui/lib/components/icon/assets/app_metricbeat.js" :as eui])) (def appMetricbeat eui/icon)
709d69140639840c0f5053617732d6888dbd84a96a7f4dea6dbb83ce8623f7b3
grin-compiler/ghc-wpc-sample-programs
Parse.hs
{-# LANGUAGE DeriveDataTypeable #-} -- | Parser for @.agda-lib@ files. -- -- Example file: -- -- @ -- name: Main -- depend: -- standard-library -- include: . -- src more-src -- -- @ -- -- Should parse as: -- -- @ -- { libName = "Main" -- , libFile = path_to_t...
null
https://raw.githubusercontent.com/grin-compiler/ghc-wpc-sample-programs/0e3a9b8b7cc3fa0da7c77fb7588dd4830fb087f7/Agda-2.6.1/src/full/Agda/Interaction/Library/Parse.hs
haskell
# LANGUAGE DeriveDataTypeable # | Parser for @.agda-lib@ files. Example file: @ name: Main depend: standard-library include: . src more-src @ Should parse as: @ { libName = "Main" , libFile = path_to_this_file , libIncludes = [ "." , "src" ,...
module Agda.Interaction.Library.Parse ( parseLibFile , splitCommas , trimLineComment , LineNumber , runP , LibWarning'(..) ) where import Control.Monad import Control.Monad.Writer import Data.Char import Data.Data import qualified Data.List as List import System.FilePath import Agda.Interaction.L...
b986b73166b187cb2a1ec84849f38c8932d251519ac4d9b3e8c9d612d1fcf6ab
GaloisInc/what4
VerifyBindings.hs
# LANGUAGE LambdaCase # # OPTIONS_GHC -fno - warn - orphans # module VerifyBindings where import Test.Tasty import Test.Tasty.QuickCheck import qualified Test.Verification as V instance Testable V.Property where property = \case V.BoolProperty b -> property b V.AssumptionProp a -> (V.p...
null
https://raw.githubusercontent.com/GaloisInc/what4/91200aa39565c156226cec6a9409a692e4022501/what4/test/QC/VerifyBindings.hs
haskell
some tests discard a lot of values based on preconditions; this helps prevent those tests from failing for insufficent coverage
# LANGUAGE LambdaCase # # OPTIONS_GHC -fno - warn - orphans # module VerifyBindings where import Test.Tasty import Test.Tasty.QuickCheck import qualified Test.Verification as V instance Testable V.Property where property = \case V.BoolProperty b -> property b V.AssumptionProp a -> (V.p...
54507db7ed62f7f20e02acb0cfa437eb95598f0c4c953acbe78994254b3af268
re-ops/re-cog
download.clj
(ns re-cog.resources.download (:require [clojure.core.strint :refer (<<)] [re-cog.common.functions :refer (file-checksum coherce success failure)] [me.raynes.fs :as fs] [clojure.java.io :as io] [re-cog.common.defs :refer (def-serial)])) (def-serial checksum "File checksum with optional hash-type (:s...
null
https://raw.githubusercontent.com/re-ops/re-cog/e7e864e48acfa34053f2c54798929dbcf0a08e82/src/re_cog/resources/download.clj
clojure
download only if file missing or checksum mismatch
(ns re-cog.resources.download (:require [clojure.core.strint :refer (<<)] [re-cog.common.functions :refer (file-checksum coherce success failure)] [me.raynes.fs :as fs] [clojure.java.io :as io] [re-cog.common.defs :refer (def-serial)])) (def-serial checksum "File checksum with optional hash-type (:s...
29d781e46627065bc79015f0d8b0d4c9e680dd4419506c0ee41f3f568667ab84
footprintanalytics/footprint-web
query_execution.clj
(ns metabase.models.query-execution "QueryExecution is a log of very time a query is executed, and other information such as the User who executed it, run time, context it was executed in, etc." (:require [metabase.mbql.schema :as mbql.s] [metabase.util :as u] [metabase.util.i18n :refer [t...
null
https://raw.githubusercontent.com/footprintanalytics/footprint-web/d3090d943dd9fcea493c236f79e7ef8a36ae17fc/src/metabase/models/query_execution.clj
clojure
(ns metabase.models.query-execution "QueryExecution is a log of very time a query is executed, and other information such as the User who executed it, run time, context it was executed in, etc." (:require [metabase.mbql.schema :as mbql.s] [metabase.util :as u] [metabase.util.i18n :refer [t...
7cccc5eab1e2542b8283369019477ecc4c4df3d60d3564728530d94be0d1a17b
modular-macros/ocaml-macros
use_in_pack.ml
let _, _ = External_for_pack.frexp 12.
null
https://raw.githubusercontent.com/modular-macros/ocaml-macros/05372c7248b5a7b1aa507b3c581f710380f17fcd/testsuite/tests/link-test/use_in_pack.ml
ocaml
let _, _ = External_for_pack.frexp 12.
1511ae00d905c1822dbd662f3a21d2be72d45c4ed7def2e881c3f4c7a40e6715
dongcarl/guix
git.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2019 , 2020 < > ;;; ;;; 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/dongcarl/guix/82543e9649da2da9a5285ede4ec4f718fd740fcb/guix/tests/git.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 © 2019 , 2020 < > 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 (guix tests git) #:use-module (git) #:use-module ((guix git) #:select (with-repository))...
0b32368756ca34defc251204d870938ab116186137cac7e112831f0edcade313
hbr/albatross
pretty_state.mli
module Text: sig type t val substring: string -> int -> int -> t val string: string -> t val fill: int -> char -> t val char: char -> t val length: t -> int val peek: t -> char val advance: t -> t option end module Line: sig type t end type chunk type group module Chunk: sig ...
null
https://raw.githubusercontent.com/hbr/albatross/8f28ef97951f92f30dc69cf94c0bbe20d64fba21/ocaml/fmlib/basic/pretty_state.mli
ocaml
module Text: sig type t val substring: string -> int -> int -> t val string: string -> t val fill: int -> char -> t val char: char -> t val length: t -> int val peek: t -> char val advance: t -> t option end module Line: sig type t end type chunk type group module Chunk: sig ...
f1f4f6d9da2e3145af285db4243192b5722861d34fd27d45f5dd1c8c5900fb88
metaocaml/ber-metaocaml
test_no_flat.ml
(* TEST * no-flat-float-array ** expect *) This file copies the tests from test_flat.ml , but is only tested when -no - flat - float - array is set , and thus all types are unboxable . We kept the comments on why each test should fail , to make it easier to compare the two files , but...
null
https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/testsuite/tests/typing-unboxed-types/test_no_flat.ml
ocaml
TEST * no-flat-float-array ** expect should fail should fail (the existential _ still occurs in an abstract type) reject reject accept reject reject accept
This file copies the tests from test_flat.ml , but is only tested when -no - flat - float - array is set , and thus all types are unboxable . We kept the comments on why each test should fail , to make it easier to compare the two files , but the test in this file should all pass , as ...
f66179629e49d88ebe1cde41f2444eef2a665e9d0d9d90e451c85ec340b2ba6a
mmark-md/mmark
Type.hs
{-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DeriveFoldable # # LANGUAGE DeriveFunctor # # LANGUAGE DeriveGeneric # # LANGUAGE RecordWildCards # -- | Module : Text . MMark . Type Copyright : © 2017 – present License : BSD 3 clause -- Maintainer : < > -- Stability : experimenta...
null
https://raw.githubusercontent.com/mmark-md/mmark/7139a7a2bb2e1cd908ef39d54d4fe595d72e9361/Text/MMark/Type.hs
haskell
# LANGUAGE DeriveDataTypeable # | Stability : experimental Portability : portable Internal type definitions. Some of these are re-exported in the public modules. | Representation of complete markdown document. You can't look inside of obtain as a result of parsing is via the extension mechanism. | Actual ...
# LANGUAGE DeriveFoldable # # LANGUAGE DeriveFunctor # # LANGUAGE DeriveGeneric # # LANGUAGE RecordWildCards # Module : Text . MMark . Type Copyright : © 2017 – present License : BSD 3 clause Maintainer : < > module Text.MMark.Type ( MMark (..), Extension (..), Render (.....
7775f6273ed18cf85f0f188c7cfddce94c1e689533e9fa1f6f25f33d9f52b761
samuelrivas/moka
moka_server_tests_aux1.erl
Copyright ( c ) 2013 , < > %%% All rights reserved. %%% Redistribution and use in source and binary forms, with or without %%% modification, are permitted provided that the following conditions are met: %%% * Redistributions of source code must retain the above copyright %%% notice, this list of conditio...
null
https://raw.githubusercontent.com/samuelrivas/moka/92521e43d1d685794f462ed49403c99baeae0226/test/component/moka_server_tests_aux1.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: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistr...
Copyright ( c ) 2013 , < > THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED TO , PROCUREMENT OF SUBSTI...
4bca77fe6406bded2f1205454dbb03551a2932482afb2759681cbfa54f046aed
witan-org/witan
polynome.ml
(*************************************************************************) This file is part of Witan . (* *) Copyright ( C ) 2017 CEA ( Commi...
null
https://raw.githubusercontent.com/witan-org/witan/d26f9f810fc34bf44daccb91f71ad3258eb62037/src/theories/LRA/polynome.ml
ocaml
*********************************************************************** alternatives) Automatique) ...
This file is part of Witan . Copyright ( C ) 2017 CEA ( Commissariat à l'énergie atomique et aux énergies ( Institut National de Recherche en Informatique et en CNRS ( Centre nation...
dff975f5d548da3f2a2ef5c1f6d9bc64753850abf2fa335215ee7ac71314d450
nikita-volkov/postgresql-binary
Inet.hs
module PostgreSQL.Binary.Inet where import PostgreSQL.Binary.Prelude | Address family AF_INET inetAddressFamily :: Word8 inetAddressFamily = 2 | Address family inet6AddressFamily :: Word8 inet6AddressFamily = 3
null
https://raw.githubusercontent.com/nikita-volkov/postgresql-binary/406cb9a69890eaa92f5aa69092c93e95fc1e0c89/library/PostgreSQL/Binary/Inet.hs
haskell
module PostgreSQL.Binary.Inet where import PostgreSQL.Binary.Prelude | Address family AF_INET inetAddressFamily :: Word8 inetAddressFamily = 2 | Address family inet6AddressFamily :: Word8 inet6AddressFamily = 3
0679f941ccea67bb5589bdc7a0a230152388f413c7f51ffa7e2639dea7b02fbe
metabase/metabase
common_test.clj
(ns metabase-enterprise.audit-app.pages.common-test (:require [clojure.test :refer :all] [metabase-enterprise.audit-app.interface :as audit.i] [metabase-enterprise.audit-app.pages.common :as common] [metabase.public-settings.premium-features-test :as premium-features-test] [metabase.query-processor...
null
https://raw.githubusercontent.com/metabase/metabase/fab6832052f8312ec37b1f24e1faf4b9df265ed1/enterprise/backend/test/metabase_enterprise/audit_app/pages/common_test.clj
clojure
(ns metabase-enterprise.audit-app.pages.common-test (:require [clojure.test :refer :all] [metabase-enterprise.audit-app.interface :as audit.i] [metabase-enterprise.audit-app.pages.common :as common] [metabase.public-settings.premium-features-test :as premium-features-test] [metabase.query-processor...
70949182cbbcc480206321f4994e99da25decadb722e52b8d1d081b702482fa8
Practical-Formal-Methods/adiff
ScanFile.hs
-- Simple example demonstrating the API: parse a file, and print its definition table module Main where import System.Environment import System.FilePath import System.Exit import System.IO import Control.Monad import Debug.Trace import Text.PrettyPrint.HughesPJ import Data.List import Language.C -- simple...
null
https://raw.githubusercontent.com/Practical-Formal-Methods/adiff/c18872faf3e31572437686d766f9972e00274588/language-c-extensible/examples/ScanFile.hs
haskell
Simple example demonstrating the API: parse a file, and print its definition table simple API analysis API preprocessor used get cpp options and input file parse analyze print
module Main where import System.Environment import System.FilePath import System.Exit import System.IO import Control.Monad import Debug.Trace import Text.PrettyPrint.HughesPJ import Data.List usageMsg :: String -> String usageMsg prg = render $ text "Usage:" <+> text prg <+> hsep (map text ["CPP_OPTIONS","input_fi...
17a09fa6e25f2490cdd8c6d787ba1aa647c3adf088a4b11e3e77741d3d1f3ce6
rm-hull/project-euler
euler067.clj
EULER # 067 ;; ========== ;; By starting at the top of the triangle below and moving to adjacent numbers on the row below , the maximum total from top to bottom is 23 . ;; 3 7 4 ;; 2 4 6 8 5 9 3 ;; That is , 3 + 7 + 4 + 9 = 23 . ;; ;; Find the maximum total from top to bottom in 'data/10...
null
https://raw.githubusercontent.com/rm-hull/project-euler/04e689e87a1844cfd83229bb4628051e3ac6a325/src/euler067.clj
clojure
========== By starting at the top of the triangle below and moving to adjacent 2 4 6 Find the maximum total from top to bottom in 'data/100-triangle.txt, a There is an efficient algorithm to solve it. ;o)
EULER # 067 numbers on the row below , the maximum total from top to bottom is 23 . 3 7 4 8 5 9 3 That is , 3 + 7 + 4 + 9 = 23 . 15 K text file containing a triangle with one - hundred rows . NOTE : This is a much more difficult version of Problem 18 . It is not possible to try every rou...
95f7dc9e2f2143934078eb8570b46172d9318bbd037be09ae78038f28e3afb70
bobatkey/CS316-2022
Week03Problems.hs
module Week03Problems where import Data.Char {------------------------------------------------------------------------------} {- TUTORIAL QUESTIONS -} {------------------------------------------------------------------------------} 1 . Lambda notation . ...
null
https://raw.githubusercontent.com/bobatkey/CS316-2022/f88dcee2bb2c880b68ec8ad6d5f0dd21bf6abb29/lecture-notes/Week03Problems.hs
haskell
---------------------------------------------------------------------------- TUTORIAL QUESTIONS ---------------------------------------------------------------------------- HINT: use a 'case', or an 'if'. fill this in Try rewriting the 'numberOfEs' function ...
module Week03Problems where import Data.Char 1 . Lambda notation . Rewrite the following functions using the ' \x - > e ' notation ( the " lambda " notation ) , so that they are written as ' double = < something > ' , and so on . Rewrite the following functions using the '\x -> e' notation (the...
92bd7ddc75a496d8b65dc54c5c22bf30a98f9e9c89971c7a72f23fb117c7e85e
xoken/xoken-core
NetworkSpec.hs
{-# LANGUAGE OverloadedStrings #-} module Network.Xoken.NetworkSpec ( spec ) where import Data.Maybe (fromJust) import Data.Serialize as S import Data.Text (Text) import Data.Word (Word32) import Network.Xoken.Address import Network.Xoken.Constants import Network.Xoken.Keys import Network.Xoken.Network import...
null
https://raw.githubusercontent.com/xoken/xoken-core/34399655febdc8c0940da7983489f0c9d58c35d2/core/test/Network/Xoken/NetworkSpec.hs
haskell
# LANGUAGE OverloadedStrings # bloomFilter n x = do assertBool "Bloom filter serialization is incorrect" $ S.encode f4 == bs where f1 = bloomInsert f0 v1 f3 = bloomInsert f1 v3 f4 = bloomInsert f3 v4 v1 = fromJust $ decodeHex "99108ad8ed9bb6274d3980bab5a85c048f0950c8" v2 = fromJust $ d...
module Network.Xoken.NetworkSpec ( spec ) where import Data.Maybe (fromJust) import Data.Serialize as S import Data.Text (Text) import Data.Word (Word32) import Network.Xoken.Address import Network.Xoken.Constants import Network.Xoken.Keys import Network.Xoken.Network import Network.Xoken.Test import Network....
54c9e3ac17a005d65b9decc62213dd69259ee0790b4825e57d5aabe9f12cb96e
thierry-martinez/stdcompat
scanf.mli
module Scanning : sig type scanbuf val stdib : scanbuf val from_string : string -> scanbuf val from_file : string -> scanbuf val from_file_bin : string -> scanbuf val from_function : (unit -> char) -> scanbuf val from_channel : in_channel -> scanbuf val end_of_input : scanbuf -> bool val beginning_of_...
null
https://raw.githubusercontent.com/thierry-martinez/stdcompat/83d786cdb17fae0caadf5c342e283c3dcfee2279/interfaces/3.11/scanf.mli
ocaml
module Scanning : sig type scanbuf val stdib : scanbuf val from_string : string -> scanbuf val from_file : string -> scanbuf val from_file_bin : string -> scanbuf val from_function : (unit -> char) -> scanbuf val from_channel : in_channel -> scanbuf val end_of_input : scanbuf -> bool val beginning_of_...
946096fb9170638d448fe8d6e85712281198765f71248735ec4531f5a9166eac
hanazuki/miniml
interpret.ml
exception Lex_error of string exception Parse_error of string exception Semantic_error of string exception Type_error of string exception Eval_error of string let interpret_program (tyenv, venv) prog = let tys, tyenv = Typing.type_program tyenv prog in let vals, venv = Eval.eval_program venv prog in ((List...
null
https://raw.githubusercontent.com/hanazuki/miniml/012f268b4d3bb91d234eaa941b0e7bf58a0dd7cc/src/interpret.ml
ocaml
exception Lex_error of string exception Parse_error of string exception Semantic_error of string exception Type_error of string exception Eval_error of string let interpret_program (tyenv, venv) prog = let tys, tyenv = Typing.type_program tyenv prog in let vals, venv = Eval.eval_program venv prog in ((List...
09e37a72cfe892e619885144b3a9c8f9507c7074510b32f9c47a44295fa836f5
aristidb/aws
DeleteGroup.hs
# LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # module Aws.Iam.Commands.DeleteGroup ( DeleteGroup(..) , DeleteGroupResponse(..) ) where import Aws.Core import Aws.Iam.Core import Aws.Iam.Internal import Data.Text (Text) import ...
null
https://raw.githubusercontent.com/aristidb/aws/a99113ed7768f9758346052c0d8939b66c6efa87/Aws/Iam/Commands/DeleteGroup.hs
haskell
| Deletes the specified group. <>
# LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # module Aws.Iam.Commands.DeleteGroup ( DeleteGroup(..) , DeleteGroupResponse(..) ) where import Aws.Core import Aws.Iam.Core import Aws.Iam.Internal import Data.Text (Text) import ...
7dc2ed4d87c204500bebed029d4dc0197d49e76ab5c55ae5746a846c487c9c6d
ghcjs/ghcjs
cgrun040.hs
module Main(main) where data Burble a = B1 { op1 :: a -> Int, op2 :: Int -> a, op3 :: Int} | B2 { op2 :: Int -> a, op4 :: Int -> Int } f1 :: Int -> Burble Int f1 n = B1 { op1 = \x->x+n, op2 = \x -> x, op3 = n } f2 :: Burble a -> Int -> Int f2 r@(B1 {op1 = op1 , op2 = op2 }) n = op1 (op2 n) + op3 r f3 :: Bu...
null
https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/test/ghc/codeGen/cgrun040.hs
haskell
module Main(main) where data Burble a = B1 { op1 :: a -> Int, op2 :: Int -> a, op3 :: Int} | B2 { op2 :: Int -> a, op4 :: Int -> Int } f1 :: Int -> Burble Int f1 n = B1 { op1 = \x->x+n, op2 = \x -> x, op3 = n } f2 :: Burble a -> Int -> Int f2 r@(B1 {op1 = op1 , op2 = op2 }) n = op1 (op2 n) + op3 r f3 :: Bu...
66442169cf9d40f953ae9c16342dbd902e3ac27388ccca0603846d6b41c2be01
melange-re/melange-compiler-libs
translmod.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/melange-re/melange-compiler-libs/2fac95b0ea97fb676240662aeeec8c6f6495dd9c/lambda/translmod.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Misc open Asttypes open Path open Types open Typedtree open Lambda open Translobj open Translcore o...
acad764c5af40ebc74f9bc1d60318863103c0a378f2c09da8f64b8e3bf6d7b22
vikram/lisplibraries
aserve.lisp
;; -*- lisp -*- * * aserve / portableaserve backend for UCW (in-package :it.bese.ucw) (defclass aserve-backend (backend) ((wserver :accessor wserver :initarg :wserver :initform (make-instance 'net.aserve:wserver)) (ucwserver :accessor ucwserver :initarg :ucwserver) (host :accessor host :initarg :host :ini...
null
https://raw.githubusercontent.com/vikram/lisplibraries/105e3ef2d165275eb78f36f5090c9e2cdd0754dd/site/ucw-boxset/ucw_dev/src/backend/aserve.lisp
lisp
-*- lisp -*- request response All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the f...
* * aserve / portableaserve backend for UCW (in-package :it.bese.ucw) (defclass aserve-backend (backend) ((wserver :accessor wserver :initarg :wserver :initform (make-instance 'net.aserve:wserver)) (ucwserver :accessor ucwserver :initarg :ucwserver) (host :accessor host :initarg :host :initform "127.0.0.1...
6bf82bee0f211ea36799b1a194354574b144aba9a7126eac4a5d2d7559566356
fluree/db
core.cljc
(ns fluree.db.query.subject-crawl.core (:require [clojure.core.async :refer [go <!] :as async] [fluree.db.util.async :refer [<? go-try merge-into?]] [fluree.db.util.core :as util #?(:clj :refer :cljs :refer-macros) [try* catch*]] [fluree.db.util.log :as log :include-macros true] ...
null
https://raw.githubusercontent.com/fluree/db/5642e089fd71ec5612ee6b36f010fa4b9664e560/src/fluree/db/query/subject_crawl/core.cljc
clojure
if ordering, limit performed by finish-fn after sort
(ns fluree.db.query.subject-crawl.core (:require [clojure.core.async :refer [go <!] :as async] [fluree.db.util.async :refer [<? go-try merge-into?]] [fluree.db.util.core :as util #?(:clj :refer :cljs :refer-macros) [try* catch*]] [fluree.db.util.log :as log :include-macros true] ...
6cccf6b8b62e3dcb1a3b5850c2c8a74dbe11ae6baadbcbc42f7d5d0cc821edf9
brendanhay/amazonka
RevokeIpRules.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # {-# LANGUAGE StrictData #-} # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - binds # # OPTIONS_GHC -fno - warn - unused -...
null
https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-workspaces/gen/Amazonka/WorkSpaces/RevokeIpRules.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Module : Amazonka.WorkSpaces.RevokeIpRules Stability : auto-generated * Creating a Request * Request Lenses * Destructuring the Response * Response Lenses | /See:/ 'newRevokeIpRules' smart constructor. | The identifier of the group. | The rules ...
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - binds # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - unused - matches # De...
c62b09ea9b3425f0df9ff8e8d91120d8662a18ffa3af1476e6bbeb2a6d422b08
c-cube/ocaml-containers
t_pool.ml
module Test = (val Containers_testlib.make ~__FILE__ ()) open Test open CCPool module P = Make (struct let max_size = 30 end) module P2 = Make (struct let max_size = 15 end) module Fut = P.Fut module Fut2 = P2.Fut;; t @@ fun () -> List.iter (fun n -> let l = Iter.(1 -- n) |> Iter.to_list in let l = ...
null
https://raw.githubusercontent.com/c-cube/ocaml-containers/69f2805f1073c4ebd1063bbd58380d17e62f6324/tests/thread/t_pool.ml
ocaml
module Test = (val Containers_testlib.make ~__FILE__ ()) open Test open CCPool module P = Make (struct let max_size = 30 end) module P2 = Make (struct let max_size = 15 end) module Fut = P.Fut module Fut2 = P2.Fut;; t @@ fun () -> List.iter (fun n -> let l = Iter.(1 -- n) |> Iter.to_list in let l = ...
f80d77ae914f5ca88c63dbedc9851161e4d9a9fc4ea75e4288063a0dc68260d6
acfoltzer/nbt
NBT.hs
# LANGUAGE CPP # # OPTIONS_GHC -Wall # #ifndef MIN_VERSION_base #define MIN_VERSION_base(x,y,z) 1 #endif | Module : Data . NBT Copyright : ( c ) 2010 - 2011 License : BSD3 Maintainer : Stability : experimental Portability : portable Defines a representation of Mi...
null
https://raw.githubusercontent.com/acfoltzer/nbt/2961478470069965567372a7f6b5abb738e10d52/src/Data/NBT.hs
haskell
them the correct number for the binary type field. part, since named nodes can only exist inside compound nodes.
# LANGUAGE CPP # # OPTIONS_GHC -Wall # #ifndef MIN_VERSION_base #define MIN_VERSION_base(x,y,z) 1 #endif | Module : Data . NBT Copyright : ( c ) 2010 - 2011 License : BSD3 Maintainer : Stability : experimental Portability : portable Defines a representation of Mi...
6b12c31a51dea35b38f0be35a20dff4eacb1065d3079a16973df2c15c440eb92
privet-kitty/cl-competitive
lud.lisp
(defpackage :cp/test/lud (:use :cl :fiveam :cp/lud :cp/csc :cp/gemm :cp/test/nearly-equal :cp/lp-test-tool) (:import-from :cp/test/base #:base-suite) (:import-from :cp/csc #:csc-float)) (in-package :cp/test/lud) (in-suite base-suite) (test lu-factor/hand (is (zerop (lud-rank (lu-factor (make-csc 0 0 0 ...
null
https://raw.githubusercontent.com/privet-kitty/cl-competitive/5573022d5e07d7f0805c74c740b3f2452a46592d/module/test/lud.lisp
lisp
smaller cell than epsnum
(defpackage :cp/test/lud (:use :cl :fiveam :cp/lud :cp/csc :cp/gemm :cp/test/nearly-equal :cp/lp-test-tool) (:import-from :cp/test/base #:base-suite) (:import-from :cp/csc #:csc-float)) (in-package :cp/test/lud) (in-suite base-suite) (test lu-factor/hand (is (zerop (lud-rank (lu-factor (make-csc 0 0 0 ...
49ad7d85ff38d18243d0f96e4f5d7b174463d9ae061e85126c4e9cffc6dab3ad
racket/math
untyped-matrix-arithmetic.rkt
#lang racket/base (provide inline-matrix-multiply inline-matrix* inline-matrix+ inline-matrix- inline-matrix-scale inline-matrix-map matrix-map) (module typed-multiply-defs typed/racket/base (require racket/fixnum "matrix-types.rkt" "utils....
null
https://raw.githubusercontent.com/racket/math/dcd2ea1893dc5b45b26c8312997917a15fcd1c4a/math-lib/math/private/matrix/untyped-matrix-arithmetic.rkt
racket
module This is a macro so the result can have as precise a type as possible module module module
#lang racket/base (provide inline-matrix-multiply inline-matrix* inline-matrix+ inline-matrix- inline-matrix-scale inline-matrix-map matrix-map) (module typed-multiply-defs typed/racket/base (require racket/fixnum "matrix-types.rkt" "utils....
92b4989a3369d28d34f989418df577d28ea666ef75faf61a0235923d297b2eb9
foshardware/lsc
Main.hs
Copyright 2018 - < > SPDX - License - Identifier : GPL-3.0 - or - later # LANGUAGE TupleSections # module Main where import Control.Arrow import Control.Concurrent import Control.Lens import Control.Monad import Data.Aeson (encode, eitherDecode) import Data.ByteString.Builder (toLazyByteString) import qualifi...
null
https://raw.githubusercontent.com/foshardware/lsc/006c245a89b0a0056286205917438c7d031d04b9/app/Main.hs
haskell
Copyright 2018 - < > SPDX - License - Identifier : GPL-3.0 - or - later # LANGUAGE TupleSections # module Main where import Control.Arrow import Control.Concurrent import Control.Lens import Control.Monad import Data.Aeson (encode, eitherDecode) import Data.ByteString.Builder (toLazyByteString) import qualifi...
26d48588575cf1c1fd844697e5d58697fda354d95312c9915964af3789f7db8e
8c6794b6/haskell-sc-scratch
ExpF.hs
# LANGUAGE NoMonomorphismRestriction # | Module : $ Header$ CopyRight : ( c ) 8c6794b6 License : : Stability : unstable Portability : non - portable ( Rank2Types , FlexibleContexts ) DSL Sharing tutorial from : * < -final/sharing/ExpF.hs > Module : $Header$ CopyRight : (...
null
https://raw.githubusercontent.com/8c6794b6/haskell-sc-scratch/22de2199359fa56f256b544609cd6513b5e40f43/Scratch/Oleg/TTF/Sharing/ExpF.hs
haskell
maxBound
# LANGUAGE NoMonomorphismRestriction # | Module : $ Header$ CopyRight : ( c ) 8c6794b6 License : : Stability : unstable Portability : non - portable ( Rank2Types , FlexibleContexts ) DSL Sharing tutorial from : * < -final/sharing/ExpF.hs > Module : $Header$ CopyRight : (...
87eddeaf38103ad7aa8d2d42c317f26d0a28ac741aae4bd80678e337f8c4f44e
janestreet/noise-wireguard-ocaml
aead.ml
open Core open Stdint let poly1305_tag_size = 16 type data_with_len = {bytes: bytes; mutable len: int64} let add_len bytes = {bytes; len= Bytes.length bytes |> Int.to_int64} let aead_nonce_length = 12 (* bytes *) let xaead_nonce_length = 24 (* bytes *) external aead_encrypt_ : data_with_len (* dst ciphertext ...
null
https://raw.githubusercontent.com/janestreet/noise-wireguard-ocaml/4ec7a34d1778ab5c8ec16a6129277d4f77406616/crypto/aead.ml
ocaml
bytes bytes dst ciphertext src message src auth_text nonce key dst message src ciphertext src auth_text nonce key dst ciphertext src message src auth_text nonce key dst message src ciphertext src auth_text nonce key
open Core open Stdint let poly1305_tag_size = 16 type data_with_len = {bytes: bytes; mutable len: int64} let add_len bytes = {bytes; len= Bytes.length bytes |> Int.to_int64} external aead_encrypt_ : -> int = "caml_crypto_aead_chacha20poly1305_encrypt" external aead_decrypt_ : -> int = "caml_crypto_aead_chacha...
aef2006d25c78d84e08afac82b7191ce78d0621997c5306714da4bf17662c71e
ahf/peculium_core
peculium_core_dns_bootstrap_manager.erl
%%% Copyright ( c ) 2013 . %%% All rights reserved. %%% %%% Redistribution and use in source and binary forms, with or without %%% modification, are permitted provided that the following conditions are met: %%% %%% * Redistributions of source code must retain the above copyright notice, this %%% list of condition...
null
https://raw.githubusercontent.com/ahf/peculium_core/50259b7ee11ad31316e97c7e88b33cae3f89e5a1/src/peculium_core_dns_bootstrap_manager.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: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions...
Copyright ( c ) 2013 . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " AND DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT HOLDER OR LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED TO , PROCUREMENT OF S...
bfd07d47adb872a3c2878d56607164d4d6778c2f26594e2577df895867d57e7f
josefs/Gradualizer
recursive_types_failing.erl
-module(recursive_types_failing). -export([recursive_param1/1, recursive_param2/1, recursive_param3/1]). -type rec1(A) :: A | rec1({A | rec1(A)}). -spec recursive_param1(rec1(integer())) -> ok. recursive_param1({qwe, zxc}) -> ok. -type rec2() :: rec2 | {rec2, rec2()} | {rec2, {rec2, rec2()}}. %%...
null
https://raw.githubusercontent.com/josefs/Gradualizer/a438368a6fefa9639fa12cec0072bd97a20d7d9b/test/should_fail/recursive_types_failing.erl
erlang
`{_, Z}' doesn't match on atom `rec2', which is a valid value of type `rec2()'. This should fail. `ok' is not an `integer()' - this should fail.
-module(recursive_types_failing). -export([recursive_param1/1, recursive_param2/1, recursive_param3/1]). -type rec1(A) :: A | rec1({A | rec1(A)}). -spec recursive_param1(rec1(integer())) -> ok. recursive_param1({qwe, zxc}) -> ok. -type rec2() :: rec2 | {rec2, rec2()} | {rec2, {rec2, rec2()}}. -s...
a6592a2911cdd513a403593f011b2a27585134838309c62d20b88d71863ab8e9
danilkolikov/dfl
Processor.hs
| Module : Frontend . Inference . Instance . Processor Description : Functions for processing instances . Copyright : ( c ) , 2019 License : MIT Function for processing instances . Module : Frontend.Inference.Instance.Processor Description : Functions for processing instanc...
null
https://raw.githubusercontent.com/danilkolikov/dfl/698a8f32e23b381afe803fc0e353293a3bf644ba/src/Frontend/Inference/Instance/Processor.hs
haskell
| A type of errors which can be encountered during instance processing ^ Instance is already defined ^ Unknown class ^ Unknown generated data type ^ Unknown component of a class (superclass / method) ^ Required instance is not defined ^ Constraint of an instance is not satisfied | A type of ouput of the instanc...
| Module : Frontend . Inference . Instance . Processor Description : Functions for processing instances . Copyright : ( c ) , 2019 License : MIT Function for processing instances . Module : Frontend.Inference.Instance.Processor Description : Functions for processing instanc...
8a695aca3d0e4b81263c446be3199a03be461b7be2ef0a199c87510a8c2864ef
emaphis/HtDP2e-solutions
ex068.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-beginner-reader.ss" "lang")((modname ex068) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f ...
null
https://raw.githubusercontent.com/emaphis/HtDP2e-solutions/ecb60b9a7bbf9b8999c0122b6ea152a3301f0a68/1-Fixed-Size-Data/05-Adding-Structure/ex068.rkt
racket
about the language level of this file in a form that our tools can easily process. (make-ball (make-posn 30 40) (make-vel -10 5))) Programmers call this a flat representation.
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-reader.ss" "lang")((modname ex068) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) Ex . 68 : An alternative to the nested data representation of ...
48d3d242e847bfe244837876c93acc044ff969df855be758b3cd5c1a17d18e3f
kelamg/HtDP2e-workthrough
ex406.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 ex406) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-...
null
https://raw.githubusercontent.com/kelamg/HtDP2e-workthrough/ec05818d8b667a3c119bea8d1d22e31e72e0a958/HtDP/Intertwined-Data/ex406.rkt
racket
about the language level of this file in a form that our tools can easily process. A DB is a structure: (make-db Schema Content) A Schema is a [List-of Spec] A Label is a String A Predicate is a [Any -> Boolean] A (piece of) Content is a [List-of Row] A Row is a [List-of Cell] A Cell is Any constraint cells...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex406) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (define-struct db [schema content]) A Spec is a [ ...
e6337a968f559b102eb5df654f28ace06284367268132efb3e67b52164bfb483
c4-project/c4f
action.mli
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
null
https://raw.githubusercontent.com/c4-project/c4f/8939477732861789abc807c8c1532a302b2848a5/lib/fuzz/src/action.mli
ocaml
* Fuzzer: high-level actions * {1 Types} * Opaque type of actions-with-default-weight. * [make ~action ~default_weight] constructs an action-with-default-weight from its action module [action] and default weight [default_weight]. * [action @-> default_weight] is an infix operator version of [make]. * {3 Acce...
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
7b22523bc9baa32c02d0a733d3cacf86137f5d9c99f9ac52fd8d450650992893
inaka/lsl
lsl_ai.erl
%%% @doc AI behaviour definition. -module(lsl_ai). -author(''). -type move() :: {lsl_core:row(), lsl_core:col(), lsl_core:length()}. -export_type([move/0]). -callback next_move(lsl_core:match()) -> move(). -callback name() -> binary(). -export([play/2, fetch/1, is_ai/1, all/0, to_json/1]). %% @doc plays a round -sp...
null
https://raw.githubusercontent.com/inaka/lsl/fdb5690fa51bc2f7fe8b50a22caca78fd9d8a7a5/src/lsl_ai.erl
erlang
@doc AI behaviour definition. @doc plays a round
-module(lsl_ai). -author(''). -type move() :: {lsl_core:row(), lsl_core:col(), lsl_core:length()}. -export_type([move/0]). -callback next_move(lsl_core:match()) -> move(). -callback name() -> binary(). -export([play/2, fetch/1, is_ai/1, all/0, to_json/1]). -spec play(module(), lsl_core:match()) -> {lsl_core:cross...
3007925ec63f1ccce1c8ffdb5e1d8de3f3be9840510c89540f6ba43f53a17d62
alios/clearingstelle
Model.hs
# LANGUAGE Rank2Types , TypeSynonymInstances , QuasiQuotes , TypeFamilies , GeneralizedNewtypeDeriving , TemplateHaskell , GADTs , FlexibleContexts # module Model where import Yesod import Database.Persist.GenericSql import Data.Maybe (fromJust, isJust, isNothing) import Data.Time.Clock(getCurrentTime, UTCTime(..)) im...
null
https://raw.githubusercontent.com/alios/clearingstelle/bdd8183e1fc65df014545255856a4f516687fc32/Model.hs
haskell
# LANGUAGE Rank2Types , TypeSynonymInstances , QuasiQuotes , TypeFamilies , GeneralizedNewtypeDeriving , TemplateHaskell , GADTs , FlexibleContexts # module Model where import Yesod import Database.Persist.GenericSql import Data.Maybe (fromJust, isJust, isNothing) import Data.Time.Clock(getCurrentTime, UTCTime(..)) im...
63907dfc9af720e48c14013d8dc6066b39510210a7b5658df3801b0629305db8
epiccastle/bbssh
identity.clj
(ns pod.epiccastle.bbssh.identity "Creates and calls the various methods of an Identity that exists on the pod heap." (:require [pod.epiccastle.bbssh.impl.utils :as utils])) (defn- preprocess-args [method args] (case method :get-signature (let [[data & remain] args] (concat [(utils/decode-base64 ...
null
https://raw.githubusercontent.com/epiccastle/bbssh/ee15ca308e640c870c9ff3d7c519394e5732ee2b/src/bb/pod/epiccastle/bbssh/identity.clj
clojure
(ns pod.epiccastle.bbssh.identity "Creates and calls the various methods of an Identity that exists on the pod heap." (:require [pod.epiccastle.bbssh.impl.utils :as utils])) (defn- preprocess-args [method args] (case method :get-signature (let [[data & remain] args] (concat [(utils/decode-base64 ...
519b3175951e4ea926574c53fa09106ef16ebbd2eb055137f193a7421a6eebe2
satori-com/mzbench
python_empty.erl
[ , [ { git , " -com/mzbench.git " } , % {dir, "worker_templates/python_empty"}]}, {pool, [ {size, 3}, {worker_type, python_empty, python} ], [ {my_print, "hello"} ]} ].
null
https://raw.githubusercontent.com/satori-com/mzbench/02be2684655cde94d537c322bb0611e258ae9718/worker_templates/python_empty/examples/python_empty.erl
erlang
{dir, "worker_templates/python_empty"}]},
[ , [ { git , " -com/mzbench.git " } , {pool, [ {size, 3}, {worker_type, python_empty, python} ], [ {my_print, "hello"} ]} ].
634d7aba08ff8b8cfd670f53180e9ed5de5a54f8ebc5a22cd0ac279b997a9f29
manavpatnaik/haskell
2_sum_diff_quo_rem.hs
sumNums :: (Integral a) => a -> a -> a sumNums a b = a + b diffNums :: (Integral a) => a -> a -> a diffNums a b = a - b pdtNums :: (Integral a) => a -> a -> a pdtNums a b = a * b quotientNums :: (Integral a) => a -> a -> a quotientNums a b = (a `div` b) remNums :: (Integral a) => a -> a -> a remNums a b = (a `rem` ...
null
https://raw.githubusercontent.com/manavpatnaik/haskell/af45c3eb5c3461aa77cf25610dfcb3b41c7f7ef9/practice-set-1-basics/2_sum_diff_quo_rem.hs
haskell
sumNums :: (Integral a) => a -> a -> a sumNums a b = a + b diffNums :: (Integral a) => a -> a -> a diffNums a b = a - b pdtNums :: (Integral a) => a -> a -> a pdtNums a b = a * b quotientNums :: (Integral a) => a -> a -> a quotientNums a b = (a `div` b) remNums :: (Integral a) => a -> a -> a remNums a b = (a `rem` ...
bfbdc6641aa863c6f2b10784c61786f3efbbcc1f8dd89077d4768964f6ed30a6
gelisam/hyzzy
BridgeTypes.hs
-- The types of all the values transfered between the game and hyzzy. module Hyzzy.BridgeTypes ( -- needed for the game-specific commands. Command, CommandF, Coyoneda, Free -- needed for the game-specific objects. , Object -- needed for the game-specific rooms. , RoomName ) where import Control.M...
null
https://raw.githubusercontent.com/gelisam/hyzzy/c5c861d5556ed3ca82fbb583d6928fac40d0d8df/lib/Hyzzy/BridgeTypes.hs
haskell
The types of all the values transfered between the game and hyzzy. needed for the game-specific commands. needed for the game-specific objects. needed for the game-specific rooms.
module Hyzzy.BridgeTypes Command, CommandF, Coyoneda, Free , Object , RoomName ) where import Control.Monad.Free import Data.Functor.Coyoneda import Hyzzy.Command import Hyzzy.Object import Hyzzy.Room
9d9412aed35b6ad3749b4257ac0df68a80dc432a7148f7ab8e0e370955e90479
toschoo/mom
Puller.hs
------------------------------------------------------------------------------- -- | Module : Network / Mom / Patterns / Basic / Puller.hs Copyright : ( c ) -- License : LGPL -- Stability : experimental -- Portability: non-portable -- -- Puller side of \'Pipeline\' -----------------------------------...
null
https://raw.githubusercontent.com/toschoo/mom/b58ca23d05c98ab50d9e981bd4ad2cdb76846399/src/patterns/src/Network/Mom/Patterns/Basic/Puller.hs
haskell
----------------------------------------------------------------------------- | License : LGPL Stability : experimental Portability: non-portable Puller side of \'Pipeline\' ----------------------------------------------------------------------------- * Pipeline --------------------------------------------...
Module : Network / Mom / Patterns / Basic / Puller.hs Copyright : ( c ) module Network.Mom.Patterns.Basic.Puller ( * withPuller, withPipe) where import Network.Mom.Patterns.Types import Network.Mom.Patterns.Streams * ' Context ' - The context ...
26da911686456b4e832294b5cff94def9ba0d2ea8a6604d5088b47b7d3877358
codelion/SpinR
statement.ml
_ $ I d : statement.ml 4527 2012 - 10 - 17 13:08:20Z weissmam $ Copyright ( c ) 2010 - 2012 Technische Universitaet Muenchen , TUM Copyright ( c ) 2010 - 2012 < > All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the foll...
null
https://raw.githubusercontent.com/codelion/SpinR/8d3a3d99cf3192a4ede3f326eff0c07c22906dee/statement.ml
ocaml
_ $ I d : statement.ml 4527 2012 - 10 - 17 13:08:20Z weissmam $ Copyright ( c ) 2010 - 2012 Technische Universitaet Muenchen , TUM Copyright ( c ) 2010 - 2012 < > All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the foll...
9927679555d84e3f48dee0f90efca3562903b53cd061fdb734b9c81368b73b13
larcenists/larceny
num-iters-int.scm
(define boyer-iters 1) (define browse-iters 60) (define conform-iters 2) (define cpstak-iters 30) (define ctak-iters 3) (define dderiv-iters 80000) (define deriv-iters 80000) (define destruc-iters 30) (define diviter-iters 40000) (define divrec-iters 40000) (define earley-iters...
null
https://raw.githubusercontent.com/larcenists/larceny/fef550c7d3923deb7a5a1ccd5a628e54cf231c75/test/Stress/src/num-iters-int.scm
scheme
problem size, not iterations interpreters take too long on this interpreters take too long on this interpreters take too long on this
(define boyer-iters 1) (define browse-iters 60) (define conform-iters 2) (define cpstak-iters 30) (define ctak-iters 3) (define dderiv-iters 80000) (define deriv-iters 80000) (define destruc-iters 30) (define diviter-iters 40000) (define divrec-iters 40000) (define earley-iters...
bcb014bc94846c8f528993c65cca8c78385333e93e6c490ab82327648808bd41
grayswandyr/electrod
Raw_to_ast.mli
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * electrod - a model finder for relational first - order linear temporal logic * * Copyright ( C ) 2016 - 2020 ONERA * Authors : ( ONERA ) , ( ONERA...
null
https://raw.githubusercontent.com/grayswandyr/electrod/eb0b02eafb34b6c921f99716cb5e90c946aae51b/src/Raw_to_ast.mli
ocaml
* Tranforms raw ASTs into "massaged" ones (conforming to Elo). * Determines the whole domain of the problem.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * electrod - a model finder for relational first - order linear temporal logic * * Copyright ( C ) 2016 - 2020 ONERA * Authors : ( ONERA ) , ( ONERA...
b42561627fb8d5567807f46e4ebd8423be46635fef8083433da197a6012431c8
ocurrent/solver-service
solver_service_api.ml
module Raw = Raw module Worker = Worker module Solver = Solver
null
https://raw.githubusercontent.com/ocurrent/solver-service/87d6b79b552a04cac85011310356619f3e62a1e2/api/solver_service_api.ml
ocaml
module Raw = Raw module Worker = Worker module Solver = Solver
0a57d7ab87885293e865e1a6cb1aa3454e1e0ad576856d22d35ada30374ed128
mmmdbybyd/CLNC
clnc.conf.ml
/* 普通免流 例子,只需要修改HTTP/HTTPS代理IP跟模式(可作为wap模式) */ #######UDP部分######## //httpUDP::udp { //如果搭建了cns服务器可以删除下一行的注释(尽量搭建不要443端口) //udp_socks5_listen = 0.0.0.0:1081 //udp_tproxy_listen = 0.0.0.0:6650; //destaddr = 180.97.104.45:443; httpMod = tunnel; encrypt = 加密密码; header_host = 服务器IP:服务器端口;...
null
https://raw.githubusercontent.com/mmmdbybyd/CLNC/88f1b93f9406d6195cbe53f8b0de635a89907708/confs/clnc.conf.ml
ocaml
/* 普通免流 例子,只需要修改HTTP/HTTPS代理IP跟模式(可作为wap模式) */ #######UDP部分######## //httpUDP::udp { //如果搭建了cns服务器可以删除下一行的注释(尽量搭建不要443端口) //udp_socks5_listen = 0.0.0.0:1081 //udp_tproxy_listen = 0.0.0.0:6650; //destaddr = 180.97.104.45:443; httpMod = tunnel; encrypt = 加密密码; header_host = 服务器IP:服务器端口;...