_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
57075942974da65528996bdce40403c8ddf28a73b852e87680a548f376420496
quchen/stgi
Parser.hs
module Test.Parser (tests) where import Test.Tasty import qualified Test.Parser.Parser as Parser import qualified Test.Parser.QuasiQuoter as QuasiQuoter tests :: TestTree tests = testGroup "Parser" [Parser.tests, QuasiQuoter.tests]
null
https://raw.githubusercontent.com/quchen/stgi/dacd45cb0247f73889713dc92a911aaa835afd19/test/Testsuite/Test/Parser.hs
haskell
module Test.Parser (tests) where import Test.Tasty import qualified Test.Parser.Parser as Parser import qualified Test.Parser.QuasiQuoter as QuasiQuoter tests :: TestTree tests = testGroup "Parser" [Parser.tests, QuasiQuoter.tests]
ee37b04a1df0b45e9a8cadae6fb798f4a529bb4b83f517bc94720bca429753fa
qingliangcn/mgee
mgee_chat.erl
%%%---------------------------------------------------------------------- %%% 2010 mgee ( Ming Game Engine Erlang ) %%% @author odinxu , 2010 - 01 - 13 %%% @doc the mgee chat module %%% @end %%% %%%---------------------------------------------------------------------- -module(mgee_chat). -behaviour(gen_server). %...
null
https://raw.githubusercontent.com/qingliangcn/mgee/b65babc3a34ef678ae2b25ce1a8fdd06b2707bb8/src/mgee_chat.erl
erlang
---------------------------------------------------------------------- @doc the mgee chat module @end ---------------------------------------------------------------------- -------------------------------------------------------------------- Include files --------------------------------------------------------...
2010 mgee ( Ming Game Engine Erlang ) @author odinxu , 2010 - 01 - 13 -module(mgee_chat). -behaviour(gen_server). -include("mgee.hrl"). -include("game_pb.hrl"). -include("global_lang.hrl"). -export([handle/1]). -export([start_link/1]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, c...
4988401704ce677f5db5323ebc5085f5845d2921d1f3c1ab3c2d6f4dae735150
darius/cant
ast.scm
#!chezscheme ;; The internal representation of Cant abstract syntax trees. The ;; player sees them as vectors with small-integer tags; the Cant user ;; will see them as wrapper objects, as implemented elsewhere. (library (player ast) (export pack<- pack-tag e-constant e-variable e-term ...
null
https://raw.githubusercontent.com/darius/cant/e80756894905a98eefd434cd61b656c80aa026ab/player/ast.scm
scheme
The internal representation of Cant abstract syntax trees. The player sees them as vectors with small-integer tags; the Cant user will see them as wrapper objects, as implemented elsewhere. Variables defined e-constant e-variable e-term e-list e-make e-do e-let e-call p-constant p-any p-variable p-term p-list p-and...
#!chezscheme (library (player ast) (export pack<- pack-tag e-constant e-variable e-term e-list e-make e-do e-let e-call p-constant p-any p-variable p-term p-list p-and p-view none-exp ...
f2d73869c0f0d3cc5f1ab271d581cc9e6e34c055c31b4578b7c79431bc3301c9
eashanhatti/peridot
Surface.hs
module Syntax.Surface where import Data.Text(Text) import Numeric.Natural import Syntax.Common hiding(unId, CStatement(..), Declaration(..)) import Syntax.Common qualified as Cm import Text.Megaparsec(SourcePos) import Data.Sequence data Ast a where TermAst :: Term -> TermAst NameAst :: Name -> NameAst DeclAst ...
null
https://raw.githubusercontent.com/eashanhatti/peridot/014d6b8e8b792ac80928fc43c8f1d26df8eb7d2d/src/Syntax/Surface.hs
haskell
For declarations
module Syntax.Surface where import Data.Text(Text) import Numeric.Natural import Syntax.Common hiding(unId, CStatement(..), Declaration(..)) import Syntax.Common qualified as Cm import Text.Megaparsec(SourcePos) import Data.Sequence data Ast a where TermAst :: Term -> TermAst NameAst :: Name -> NameAst DeclAst ...
6bb594ea42dcd6b5bcb849997c66c9c905f40ecd9cd729878166a983340db43c
zellio/incrementum
tests-1.5-req.scm
(add-tests-with-string-output "fx+" [(fx+ 1 2) => "3\n"] [(fx+ 1 -2) => "-1\n"] [(fx+ -1 2) => "1\n"] [(fx+ -1 -2) => "-3\n"] [(fx+ 536870911 -1) => "536870910\n"] [(fx+ 536870910 1) => "536870911\n"] [(fx+ -536870912 1) => "-536870911\n"] [(fx+ -536870911 -1) => "-536870912\n"] [(fx+ 536870911 -53...
null
https://raw.githubusercontent.com/zellio/incrementum/12060fefdcc2883ffda38c9233a37aad6b20625e/test/scheme/tests-1.5-req.scm
scheme
(add-tests-with-string-output "fx+" [(fx+ 1 2) => "3\n"] [(fx+ 1 -2) => "-1\n"] [(fx+ -1 2) => "1\n"] [(fx+ -1 -2) => "-3\n"] [(fx+ 536870911 -1) => "536870910\n"] [(fx+ 536870910 1) => "536870911\n"] [(fx+ -536870912 1) => "-536870911\n"] [(fx+ -536870911 -1) => "-536870912\n"] [(fx+ 536870911 -53...
343517231b73bc21842dbff8249d5d00bd6afa13d4fc21af97d4e1799b7105f2
cljfx/cljfx
line_to.clj
(ns cljfx.fx.line-to "Part of a public API" (:require [cljfx.composite :as composite] [cljfx.lifecycle :as lifecycle] [cljfx.fx.path-element :as fx.path-element]) (:import [javafx.scene.shape LineTo])) (set! *warn-on-reflection* true) (def props (merge fx.path-element/props (co...
null
https://raw.githubusercontent.com/cljfx/cljfx/543f7409290051e9444771d2cd86dadeb8cdce33/src/cljfx/fx/line_to.clj
clojure
(ns cljfx.fx.line-to "Part of a public API" (:require [cljfx.composite :as composite] [cljfx.lifecycle :as lifecycle] [cljfx.fx.path-element :as fx.path-element]) (:import [javafx.scene.shape LineTo])) (set! *warn-on-reflection* true) (def props (merge fx.path-element/props (co...
288cfbb020f89700369250b5b3894e1b0dc116a4007953cee8f5b6f28b26f1b7
BinaryAnalysisPlatform/bap
phoenix_dot.mli
open Core_kernel[@@warning "-D"] open Bap.Std module Make(Env : sig val project : project val options : Phoenix_options.t module Target : Target end) : sig val fprint_graph : Format.formatter -> Symtab.fn -> unit val output_graph : Out_channel.t -> Symtab.fn -> unit end
null
https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap/253afc171bbfd0fe1b34f6442795dbf4b1798348/plugins/phoenix/phoenix_dot.mli
ocaml
open Core_kernel[@@warning "-D"] open Bap.Std module Make(Env : sig val project : project val options : Phoenix_options.t module Target : Target end) : sig val fprint_graph : Format.formatter -> Symtab.fn -> unit val output_graph : Out_channel.t -> Symtab.fn -> unit end
9b28739b9839e46b543262b53aa28b60e222782139b2da95e0ef7bfc0f3cd0fb
bendmorris/scotch
Eval.hs
This file is part of Scotch . Scotch is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any later version . Scotch is distr...
null
https://raw.githubusercontent.com/bendmorris/scotch/7b4bb4546d0ea3bc6b345eedc65a5d7f82c98d10/Scotch/Eval/Eval.hs
haskell
eval: evaluates an expression. This function evaluates expressions step by step and should not be assumed to result in full evaluation; rather, eval should be run until the result is the same as the initial input. EagerDef f otherwise y ieval: evaluates an expression completely, replacing I/O operation...
This file is part of Scotch . Scotch is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any later version . Scotch is distr...
cb281e6f4ffb7fc5c907c5974c7f873bb72c82e4c8f0f6b58bc21fea4fbedfbd
stepcut/plugins
Main.hs
import System.Plugins import API src = "../Plugin.hs" wrap = "../Wrapper.hs" apipath = "../api" main = do status <- make src ["-i"++apipath] case status of MakeSuccess _ _ -> f MakeFailure e -> mapM_ putStrLn e where f = do v <- pdynload "../Plugin.o" ["../api"] []...
null
https://raw.githubusercontent.com/stepcut/plugins/52c660b5bc71182627d14c1d333d0234050cac01/testsuite/pdynload/typealias/prog/Main.hs
haskell
import System.Plugins import API src = "../Plugin.hs" wrap = "../Wrapper.hs" apipath = "../api" main = do status <- make src ["-i"++apipath] case status of MakeSuccess _ _ -> f MakeFailure e -> mapM_ putStrLn e where f = do v <- pdynload "../Plugin.o" ["../api"] []...
1ee5519610685c4772306ffef8d3eec4797681a16be5a08ee66644d6f6c6d53b
carotene/carotene
api_channels_handler.erl
-module(api_channels_handler). -export([init/3]). -export([terminate/3]). -export([allowed_methods/2]). -export([content_types_provided/2]). -export([resource_exists/2]). -export([channel_to_json/2]). init(_Type, Req, _Opts) -> {{IP, _Port}, _} = cowboy_req:peer(Req), case carotene_api_authorization:authoriz...
null
https://raw.githubusercontent.com/carotene/carotene/963ecad344ec1c318c173ad828a5af3c000ddbfc/src/api_channels_handler.erl
erlang
-module(api_channels_handler). -export([init/3]). -export([terminate/3]). -export([allowed_methods/2]). -export([content_types_provided/2]). -export([resource_exists/2]). -export([channel_to_json/2]). init(_Type, Req, _Opts) -> {{IP, _Port}, _} = cowboy_req:peer(Req), case carotene_api_authorization:authoriz...
9ae299d41a28e3a6b123a93ae62e73a4ddfa14e00377fdc23aa49c959a49ada9
nasa/Common-Metadata-Repository
httpd.clj
(ns cmr.graph.components.httpd (:require [com.stuartsierra.component :as component] [cmr.graph.components.config :as config] [cmr.graph.rest.app :as rest-api] [org.httpkit.server :as server] [taoensso.timbre :as log])) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ...
null
https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/63001cf021d32d61030b1dcadd8b253e4a221662/other/cmr-exchange/graph/src/cmr/graph/components/httpd.clj
clojure
HTTP Server Component API ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; TBD Component Lifecycle Implementation ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Component Constructor ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(ns cmr.graph.components.httpd (:require [com.stuartsierra.component :as component] [cmr.graph.components.config :as config] [cmr.graph.rest.app :as rest-api] [org.httpkit.server :as server] [taoensso.timbre :as log])) (defrecord HTTPD []) (defn start [this] (log/info "Starting httpd comp...
858e872ab7791bef249dadd3f3bf6cbd0eb80bc501ef316731585dcd63fc521b
grzm/awyeah-api
query.clj
Copyright ( c ) Cognitect , Inc. ;; All rights reserved. (ns ^:skip-wiki com.grzm.awyeah.protocols.query "Impl, don't call directly." (:require [clojure.string :as str] [com.grzm.awyeah.protocols :as aws.protocols] [com.grzm.awyeah.service :as service] [com.grzm.awyeah.shape :as shape] [com.grzm.a...
null
https://raw.githubusercontent.com/grzm/awyeah-api/5111c627f73955af8d2529f7ae793ca8203cff15/src/com/grzm/awyeah/protocols/query.clj
clojure
All rights reserved. ---------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------
Copyright ( c ) Cognitect , Inc. (ns ^:skip-wiki com.grzm.awyeah.protocols.query "Impl, don't call directly." (:require [clojure.string :as str] [com.grzm.awyeah.protocols :as aws.protocols] [com.grzm.awyeah.service :as service] [com.grzm.awyeah.shape :as shape] [com.grzm.awyeah.util :as util])) ...
fa414ee5d5cf2b209c6d58e1f1c7b3cde590a6b5e375dfb9a5a6c9b5647fbcf6
bennn/little-book-of-semaphores
5-1-savages.rkt
#lang little-book-of-semaphores ;; ----------------------------------------------------------------------------- (define M 5) (define pot (box 0)) ;; Constraints: ;; - Cook may not fill non-empty pot ;; - Savages may not eat from empty pot (define mutex (make-semaphore 1)) (define pot-full (make-semaphore 0)) (defi...
null
https://raw.githubusercontent.com/bennn/little-book-of-semaphores/13dc1690073ae45f5ac7e4e4137d636aae1ef7c9/problems/5-1-savages.rkt
racket
----------------------------------------------------------------------------- Constraints: - Cook may not fill non-empty pot - Savages may not eat from empty pot ----------------------------------------------------------------------------- --------------------------------------------------------------------------...
#lang little-book-of-semaphores (define M 5) (define pot (box 0)) (define mutex (make-semaphore 1)) (define pot-full (make-semaphore 0)) (define pot-empty (make-semaphore 0)) (define (get-pot) (with mutex (let loop () (when (zero? (unbox pot)) (signal mutex) (wait pot-full) (wai...
404cb966f0606ba7edf421e04932a22d524599b34a324cb6ab22d4f67b905941
jordanthayer/ocaml-search
statistics.ml
* Some statistic functions . @author eaburns @since 2010 - 04 - 28 @author eaburns @since 2010-04-28 *) type float_ref = { mutable v : float } let float_ref x = { v = x } let (<--) r v = r.v <- v let (!!) r = r.v (** [mean vls] gets the mean of an array of floats. *) let mean vls = let n ...
null
https://raw.githubusercontent.com/jordanthayer/ocaml-search/57cfc85417aa97ee5d8fbcdb84c333aae148175f/spt/src/statistics.ml
ocaml
* [mean vls] gets the mean of an array of floats. * [mean_and_stdev vls] gets the mean and standard deviation of an array of floats. * [mean_and_interval vls] gives the mean and the magnitude of the 95% confidence interval on the mean. * {1 Density estimation} * [make_kernel_density_estimator kernel bandwid...
* Some statistic functions . @author eaburns @since 2010 - 04 - 28 @author eaburns @since 2010-04-28 *) type float_ref = { mutable v : float } let float_ref x = { v = x } let (<--) r v = r.v <- v let (!!) r = r.v let mean vls = let n = float (Array.length vls) in let sum = float_ref 0. ...
0b10c22cb04a73fea535407e88ab0ec6bf7bde334357cea88f231fa73d8d265a
nasa/Common-Metadata-Repository
auth.clj
(ns cmr.metadata.proxy.components.auth "This namespace represents the authorization API for CMR OPeNDAP. This is where the rest of the application goes when it needs to perform checks on roles or permissions for a given user and/or concept. Currently, this namespace is only used by the REST middleware that che...
null
https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/63001cf021d32d61030b1dcadd8b253e4a221662/other/cmr-exchange/metadata-proxy/src/cmr/metadata/proxy/components/auth.clj
clojure
; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; Caching Component API ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; if there is a miss, make the if there is a miss, make the if there is a miss, we'll just keep this specific to that for now. Later, if more roles are used, w...
(ns cmr.metadata.proxy.components.auth "This namespace represents the authorization API for CMR OPeNDAP. This is where the rest of the application goes when it needs to perform checks on roles or permissions for a given user and/or concept. Currently, this namespace is only used by the REST middleware that che...
3321e93bde4abdea7098b25ed9e9318b093f796aa2b2bc4156fdc93522add825
basho/riak_cs_auth
riak_cs_s3_auth.erl
%% --------------------------------------------------------------------- %% Copyright ( c ) 2007 - 2013 Basho Technologies , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . Y...
null
https://raw.githubusercontent.com/basho/riak_cs_auth/906f3e6f61c34c1c52a677f8ac81d265e6ebb5fd/src/riak_cs_s3_auth.erl
erlang
--------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permiss...
Copyright ( c ) 2007 - 2013 Basho Technologies , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY ...
d2f0297e492d7e841e707915dcbd21ee569cf599863362f6ddf9b060c4712c06
dradtke/Lisp-Text-Editor
transformations.lisp
(in-package :cl-cairo2) Notes ;;;; cairo - matrix - init is not defined , as we have a structure in lisp ;;;; with an appropriate constructor ;;;; ;;;; cairo_identity_matrix is reset-trans-matrix ;;;; ;;;; functions that manipulate transformation matrices have ;;;; trans-matrix instead of matrix in t...
null
https://raw.githubusercontent.com/dradtke/Lisp-Text-Editor/b0947828eda82d7edd0df8ec2595e7491a633580/quicklisp/dists/quicklisp/software/cl-cairo2-20120208-git/src/transformations.lisp
lisp
with an appropriate constructor cairo_identity_matrix is reset-trans-matrix functions that manipulate transformation matrices have trans-matrix instead of matrix in their name cairo_matrix_transform_distance and cairo_matrix_transform_point are simply transform-distance and transform-point ...
(in-package :cl-cairo2) Notes cairo - matrix - init is not defined , as we have a structure in lisp (define-many-with-default-context (translate tx ty) (scale sx sy) (rotate angle)) (define-flexible (reset-trans-matrix pointer) (cairo_identity_matrix pointer)) (defstruct trans-matrix (xx 1d0 :...
fb09a8c22efa94d5f197ade45a9c268daae81be6735f89b2642bbf9e14c01da9
finnishtransportagency/harja
tieluvat_test.clj
(ns harja.palvelin.integraatiot.api.tieluvat-test (:require [clojure.test :refer [deftest is use-fixtures]] [harja.testi :refer :all] [com.stuartsierra.component :as component] [harja.palvelin.komponentit.liitteet :as liitteet] [harja.palvelin.integraatiot.api.tieluvat ...
null
https://raw.githubusercontent.com/finnishtransportagency/harja/110c979dc11526dcde966445e82d326b4ee05991/test/clj/harja/palvelin/integraatiot/api/tieluvat_test.clj
clojure
(ns harja.palvelin.integraatiot.api.tieluvat-test (:require [clojure.test :refer [deftest is use-fixtures]] [harja.testi :refer :all] [com.stuartsierra.component :as component] [harja.palvelin.komponentit.liitteet :as liitteet] [harja.palvelin.integraatiot.api.tieluvat ...
45feeadcb15e2731e7023ea5532b60515d5e82ebc5a840a5630a29faa65845b1
TomerAberbach/programming-in-haskell-exercises
8.hs
luhnDouble :: Int -> Int luhnDouble n = if doubled > 9 then doubled - 9 else doubled where doubled = n * 2 luhn :: Int -> Int -> Int -> Int -> Bool luhn a b c d = (luhnDouble a + b + luhnDouble c + d) `mod` 10 == 0
null
https://raw.githubusercontent.com/TomerAberbach/programming-in-haskell-exercises/a66830529ebc9c4d84d0e4c6e0ad58041b46bc32/parts/1/chapters/4/8.hs
haskell
luhnDouble :: Int -> Int luhnDouble n = if doubled > 9 then doubled - 9 else doubled where doubled = n * 2 luhn :: Int -> Int -> Int -> Int -> Bool luhn a b c d = (luhnDouble a + b + luhnDouble c + d) `mod` 10 == 0
2357e689a2ddd536a48448c51c70592604e8551dec6922c52d6ad9d85efd57d4
haskell-nix/hnix-store
Logger.hs
# language RankNTypes # module System.Nix.Store.Remote.Logger ( Logger(..) , Field(..) , processOutput ) where import Prelude hiding ( Last ) import Control.Monad.Except ( throwError ) import Data.Binary.Get import Network.Socket.ByteString ...
null
https://raw.githubusercontent.com/haskell-nix/hnix-store/5e55781516178939bf9a86f943e120e6ad775b9d/hnix-store-remote/src/System/Nix/Store/Remote/Logger.hs
haskell
XXX: we should check/assert part size against n of (Read n) we should probably handle Read here as well
# language RankNTypes # module System.Nix.Store.Remote.Logger ( Logger(..) , Field(..) , processOutput ) where import Prelude hiding ( Last ) import Control.Monad.Except ( throwError ) import Data.Binary.Get import Network.Socket.ByteString ...
aeac387b59cbcaf91a0f219635c0e29e353ea3c7d2ed7006982661dae2a65feb
takikawa/racket-ppa
whitespace.rkt
#lang racket/base (require "../common/struct-star.rkt" "config.rkt" "special.rkt" "readtable.rkt" "consume.rkt" "error.rkt" "location.rkt" "special.rkt" "special-comment.rkt") (provide read-char/skip-whitespace-and-comments special-commen...
null
https://raw.githubusercontent.com/takikawa/racket-ppa/5f2031309f6359c61a8dfd1fec0b77bbf9fb78df/src/expander/read/whitespace.rkt
racket
Skip most whitespace, including non-character values that are `special-comment?`s --- but return a special comment (always `special`-wrapped) if `(read-config-keep-comment? config)`. The result is a character that has been consumed. those must be handled directly, possibly via `special-comment-via-readtable?`. t...
#lang racket/base (require "../common/struct-star.rkt" "config.rkt" "special.rkt" "readtable.rkt" "consume.rkt" "error.rkt" "location.rkt" "special.rkt" "special-comment.rkt") (provide read-char/skip-whitespace-and-comments special-commen...
b7a23f80ffa661d99fac668961bef2f346af046faaad54d2a8714d9d92c9a649
2600hz/kazoo
kapi_asr.erl
%%%----------------------------------------------------------------------------- ( C ) 2011 - 2020 , 2600Hz %%% @doc ASR requests, responses, and errors AMQP API. @author This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this ...
null
https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/core/kazoo_amqp/src/api/kapi_asr.erl
erlang
----------------------------------------------------------------------------- @doc ASR requests, responses, and errors AMQP API. @end ----------------------------------------------------------------------------- ------------------------------------------------------------------------------ @doc Get all API definiti...
( C ) 2011 - 2020 , 2600Hz @author This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. -module(kapi_asr). -compile({no_auto_import, [error/1]}). -export([api_definitions/0, api_definition...
e8836df94cbfd56b37d8d7a2d072274e23f203ae73fadb89cdb757ec2841301e
facebookincubator/hsthrift
Client.hs
----------------------------------------------------------------- Autogenerated by Thrift -- -- DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING @generated ----------------------------------------------------------------- {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE BangPatterns #-} # OPTIONS_GH...
null
https://raw.githubusercontent.com/facebookincubator/hsthrift/d3ff75d487e9d0c2904d18327373b603456e7a01/compiler/test/fixtures/gen-hs2/Service/X/Client.hs
haskell
--------------------------------------------------------------- DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING --------------------------------------------------------------- # LANGUAGE OverloadedStrings # # LANGUAGE BangPatterns #
Autogenerated by Thrift @generated # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - overlapping - patterns # # OPTIONS_GHC -fno - warn - incomplete - patterns # # OPTIONS_GHC -fno - warn - incomplete - uni - patterns # # LANGUAGE FlexibleContexts # # LANGUAGE TypeFamilies # # LANGUAGE Typ...
b5f6fbb8b9509a06ae17d8cb60ca897d656dc08cb8d918445dde7765205b95b6
Atry/Control.Dsl
Monadic.hs
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE RebindableSyntax # module Control.Dsl.Monadic where import Control.Dsl.PolyCont import qualified Prelude | This @Monadic@ keyword extracts the monadic value of a monadic expression . newtype Monadic m r a = Monadic (m a) instan...
null
https://raw.githubusercontent.com/Atry/Control.Dsl/f19da265c8ea537af95e448e6107fa503d5363c2/src/Control/Dsl/Monadic.hs
haskell
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE RebindableSyntax # module Control.Dsl.Monadic where import Control.Dsl.PolyCont import qualified Prelude | This @Monadic@ keyword extracts the monadic value of a monadic expression . newtype Monadic m r a = Monadic (m a) instan...
2f958798e50887abfbe714390282a91096966aa6d567eee59f55c83b6729a57d
lordi/haskell-terminal
ParserUtils.hs
-- General parsec helpers module Terminal.ParserUtils where import Text.Parsec import Text.Parsec.String import Data.Maybe (catMaybes) -- |Apply parser p and return its result together with the string that has been -- parsed. annotate p = do before <- getInput result <- p after <- getInput return (resu...
null
https://raw.githubusercontent.com/lordi/haskell-terminal/037a1374c3e28a9cc00f9da0ec8b2887944ab943/src/Terminal/ParserUtils.hs
haskell
General parsec helpers |Apply parser p and return its result together with the string that has been parsed. |Apply parser p as often as possible and return the matches together with the bytes that are not successfully parsed (that are left over) |Apply parser p at least n and up to m times
module Terminal.ParserUtils where import Text.Parsec import Text.Parsec.String import Data.Maybe (catMaybes) annotate p = do before <- getInput result <- p after <- getInput return (result, take (length before - length after) before) manyWithLeftover p = do x <- many p i <- getInput return...
a1ed969ea0b7ae814398f0506392582890e96c268e85ed68330658748b3f38b3
tommay/pokemon-go
Epic.hs
module Epic ( Epic.catch, Epic.fail, toEpic, E.MonadCatch, ) where import qualified Control.Monad.Catch as E newtype EpicException = EpicException String instance Show EpicException where show (EpicException string) = string instance E.Exception EpicException fail :: E.MonadThrow m => String -> m a fail ...
null
https://raw.githubusercontent.com/tommay/pokemon-go/6b0132f03a1d50ad5513b70fe715e57879dfa597/src/Epic.hs
haskell
module Epic ( Epic.catch, Epic.fail, toEpic, E.MonadCatch, ) where import qualified Control.Monad.Catch as E newtype EpicException = EpicException String instance Show EpicException where show (EpicException string) = string instance E.Exception EpicException fail :: E.MonadThrow m => String -> m a fail ...
6473359633a2b5a850e038cf9a608715164c4cfac981b2a9b2b7ee1448f905c2
ekoontz/menard
grammar.cljc
(ns menard.grammar (:require [menard.exception :refer [exception]] #?(:clj [clojure.java.io :as io :refer [resource]]) [menard.morphology :as m] [clojure.string :as string] #?(:clj [clojure.tools.logging :as log]) #?(:cljs [cljslog.core :as log]) ...
null
https://raw.githubusercontent.com/ekoontz/menard/d0702dc2d775a967865240e85d9d8683a47e6616/src/menard/grammar.cljc
clojure
antecedent succeeded and unify with consequent succeeded; continue with the rest of the rules. antecedent failed; continue with the rest of the rules. each member of :unify in a rule is a symbol. combine all of them with the original rule: some processing rules: apply each to this grammar rule:
(ns menard.grammar (:require [menard.exception :refer [exception]] #?(:clj [clojure.java.io :as io :refer [resource]]) [menard.morphology :as m] [clojure.string :as string] #?(:clj [clojure.tools.logging :as log]) #?(:cljs [cljslog.core :as log]) ...
fa87b674c497a63c6f3c9454ef2197c9b821330cd0b8d9c6bd8f0fcc5860c14b
erikd/haskell-big-integer-experiment
sanity-test.hs
import Control.Monad (when) import New.Integer () import qualified GMP.Integer as G import qualified New.GHC.Integer.Type as N main :: IO () main = do print $ (G.mkInteger False [0x7fffffff], N.mkInteger False [0x7fffffff]) print $ (G.shiftLInteger (G.mkInteger False [0x7fffffff]) 1#, N.shiftLInteger (N.mkIn...
null
https://raw.githubusercontent.com/erikd/haskell-big-integer-experiment/7841ec3fcc5be219fa16963849bd12137112f8a9/sanity-test.hs
haskell
import Control.Monad (when) import New.Integer () import qualified GMP.Integer as G import qualified New.GHC.Integer.Type as N main :: IO () main = do print $ (G.mkInteger False [0x7fffffff], N.mkInteger False [0x7fffffff]) print $ (G.shiftLInteger (G.mkInteger False [0x7fffffff]) 1#, N.shiftLInteger (N.mkIn...
02f749ef3b19aa278298854285c7c8a939208884574fd16fcb75a5e8e35e5afc
Opetushallitus/ataru
pohjakoulutus_toinen_aste_handlers.cljs
(ns ataru.virkailija.application.pohjakoulutus-toinen-aste.pohjakoulutus-toinen-aste-handlers (:require [re-frame.core :as re-frame :refer [subscribe]] [ataru.tarjonta.haku :as haku] [ataru.application.harkinnanvaraisuus.harkinnanvaraisuus-util :as hutil] [ataru.application.harkinn...
null
https://raw.githubusercontent.com/Opetushallitus/ataru/27f650e0665e2735aab0c4059f766a3fb2826246/src/cljs/ataru/virkailija/application/pohjakoulutus_toinen_aste/pohjakoulutus_toinen_aste_handlers.cljs
clojure
(ns ataru.virkailija.application.pohjakoulutus-toinen-aste.pohjakoulutus-toinen-aste-handlers (:require [re-frame.core :as re-frame :refer [subscribe]] [ataru.tarjonta.haku :as haku] [ataru.application.harkinnanvaraisuus.harkinnanvaraisuus-util :as hutil] [ataru.application.harkinn...
bd458a58670be02cae4e8a0246a245c720fabfa702a30d558019dace4099efcc
ucsd-progsys/nate
symtable.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/bytecomp/symtable.ml
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : , v 1.39 2006/05/11 15:50:53...
32e407878574c8ff02a4ff2b6be827330372161975f89ee9a7074a14b909ec17
fhunleth/relsync
target_syncer.erl
Copyright 2014 %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicable law or agreed to in writing, software distribute...
null
https://raw.githubusercontent.com/fhunleth/relsync/4f49df183fa4b5cff5f7afb4818d907b65d9ab37/src/target_syncer.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language go...
Copyright 2014 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(target_syncer). -include_lib("kernel/include/file.hrl"). -behaviour(gen_server). -export([start_link/0, start_link/1, get_file_listing/2, ...
98c497bd6103f3cd61a30f3ff703438ec67874d43c6b58a4cbb57a197c876f52
cfcs/ocaml-socks
socks_client.ml
open Socks open Lwt open Cmdliner open Rresult type t = { oc: Lwt_io.output Lwt_io.channel; ic: Lwt_io.input Lwt_io.channel; } let of_socket socket = let oc = Lwt_io.of_fd ~mode:Lwt_io.output socket in let ic = Lwt_io.of_fd ~mode:Lwt_io.input socket in {oc; ic} let connect ~proxy ~host ~port = let connec...
null
https://raw.githubusercontent.com/cfcs/ocaml-socks/00d2467f8e1ff2f369f4c8145654df51a35d8e08/test/socks_client.ml
ocaml
open Socks open Lwt open Cmdliner open Rresult type t = { oc: Lwt_io.output Lwt_io.channel; ic: Lwt_io.input Lwt_io.channel; } let of_socket socket = let oc = Lwt_io.of_fd ~mode:Lwt_io.output socket in let ic = Lwt_io.of_fd ~mode:Lwt_io.input socket in {oc; ic} let connect ~proxy ~host ~port = let connec...
029cce70ae1980e3d407cf0b6fb16364cdbe4dd404cfd98e3389f6b536b20398
namin/biohacker
unify.lisp
;; -*- Mode: Lisp; -*- ;;;; Variables and unification Last edited 1/29/93 , by KDF Copyright ( c ) 1988 - 1993 , , Northwestern University , and , the Xerox Corporation . ;;; All rights reserved. ;;; See the file legal.txt for a paragraph stating scope of permission ;;; and disclaimer of warranty. The a...
null
https://raw.githubusercontent.com/namin/biohacker/6b5da4c51c9caa6b5e1a68b046af171708d1af64/BPS/atms/unify.lisp
lisp
-*- Mode: Lisp; -*- Variables and unification All rights reserved. See the file legal.txt for a paragraph stating scope of permission and disclaimer of warranty. The above copyright notice and that paragraph must be included in any separate copy of this file. Must distinguish no value from value of nil If safe...
Last edited 1/29/93 , by KDF Copyright ( c ) 1988 - 1993 , , Northwestern University , and , the Xerox Corporation . (in-package :COMMON-LISP-USER) (defun variable? (x) A symbol whose first character is " ? " (char= #\? (elt (symbol-name x) 0)))) (defun unify (a b &optional (bindings nil)) (...
f3daaab437230703f7710a31b75bebcff36bedbf0b631a6704c118f5b9d8799e
processone/p1_pgsql
pgsql_sasl.erl
%%%------------------------------------------------------------------- @author < > %%% Copyright ( C ) 2002 - 2021 ProcessOne , SARL . All Rights Reserved . %%% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %%% you may not use this file except in compliance with the License. %%% You may...
null
https://raw.githubusercontent.com/processone/p1_pgsql/9fb6f7ee4e884e92b29e36bba1f1346eba261bff/src/pgsql_sasl.erl
erlang
------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
@author < > Copyright ( C ) 2002 - 2021 ProcessOne , SARL . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(pgsql_sasl). -author(''). -export([client_new/3, client_step/2, client_finish/2...
a588d91d1a23957cec145f5fbe05708d7fa5e06e82834c4cab5b625fa8d78c2e
8c6794b6/haskell-sc-scratch
SparseByWeight.hs
| Module : $ Header$ CopyRight : ( c ) 8c6794b6 License : : Stability : unstable Portability : non - portable Scratch written while reading /purely functional data structure/ , by . This codes contains /sparse/ representation of binary numbers . /Sparse/ means , the represen...
null
https://raw.githubusercontent.com/8c6794b6/haskell-sc-scratch/22de2199359fa56f256b544609cd6513b5e40f43/Scratch/FP/PFDS/BinNum/SparseByWeight.hs
haskell
| Module : $ Header$ CopyRight : ( c ) 8c6794b6 License : : Stability : unstable Portability : non - portable Scratch written while reading /purely functional data structure/ , by . This codes contains /sparse/ representation of binary numbers . /Sparse/ means , the represen...
4b4afc7afda68b14cbe999e37a33df09e21a8876a613cf1453445059a915f1c9
manuel-serrano/bigloo
gn.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / / comptime / Globalize / gn.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation : ...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/fdeac39af72d5119d01818815b0f395f2907d6da/comptime/Globalize/gn.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * */ * E(f) <=> f is a...
* serrano / prgm / project / bigloo / / comptime / Globalize / gn.scm * / * Author : * / * Creation : Thu Jan 26 14:54:22 1995 * / * Last change : We d Jun 16 16:02:00 2021 ( serrano ) * / * Copyrig...
004675c7b1366ee4c11d7dcf96b73db38eda6a6a5d4238457e9015e980b04e78
google/mlir-hs
Pass.hs
Copyright 2021 Google LLC -- Licensed under the Apache License , Version 2.0 ( the " License " ) ; -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- -2.0 -- -- Unless required by applicable law or agreed to in writing, software distributed un...
null
https://raw.githubusercontent.com/google/mlir-hs/30c1c908df3b6676d3f022dc5ff73dabfd55fbe0/src/MLIR/Native/Pass.hs
haskell
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing per...
Copyright 2021 Google LLC Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , module MLIR.Native.Pass where import qualified Language.C.Inline as C import Control.Exception (bracket) import MLIR.Native.FFI C.context $ C.ba...
ef7275bf7091c3ac617abb75bab622a70ae9d1532363e33195267b60164e9285
dozzie/toml
toml.erl
%%%--------------------------------------------------------------------------- %%% @doc TOML parser module . %%% @end %%%--------------------------------------------------------------------------- -module(toml). %% parser wrappers -export([read_file/1, read_file/2]). -export([parse/1, parse/2]). %% explaining err...
null
https://raw.githubusercontent.com/dozzie/toml/e380dbfac46bd395e3a056ba3d91a513395e0c68/src/toml.erl
erlang
--------------------------------------------------------------------------- @doc @end --------------------------------------------------------------------------- parser wrappers explaining errors data accessors -export([to_list/1, to_list/2]). -----------------------------------------------------------------------...
TOML parser module . -module(toml). -export([read_file/1, read_file/2]). -export([parse/1, parse/2]). -export([format_error/1]). -export([get_value/3, get_value/4, exists/2, exists/3]). -export([keys/2, sections/2, foldk/4, folds/4]). -export_type([config/0, section/0, key/0, toml_value/0]). -export_type([toml_a...
6d797ed1f4e54656202b3e26f800d591924b794a897cb17163835728fa61f9fc
jaredloomis/andromeda
Mesh.hs
{-# LANGUAGE GADTs #-} # LANGUAGE TupleSections # module Andromeda.Simple.Render.Mesh where import Foreign.Ptr (Ptr, nullPtr) import Foreign.Storable (Storable(..)) import qualified Data.Vector.Storable as V import qualified Graphics.Rendering.OpenGL.GL as GL import Andromeda.Simple.Type import Andromeda.Simple.Ren...
null
https://raw.githubusercontent.com/jaredloomis/andromeda/502dfa6703eca9717c7cde0c93959fa0a83e77ed/src/Andromeda/Simple/Render/Mesh.hs
haskell
# LANGUAGE GADTs #
# LANGUAGE TupleSections # module Andromeda.Simple.Render.Mesh where import Foreign.Ptr (Ptr, nullPtr) import Foreign.Storable (Storable(..)) import qualified Data.Vector.Storable as V import qualified Graphics.Rendering.OpenGL.GL as GL import Andromeda.Simple.Type import Andromeda.Simple.Render.VertexBuffer data ...
2be52e37a2da909dd71c677bad626a52e1859466fd55fc43705c7d5918c6f211
henrik42/deeto
project.clj
re - enables http repository support in Leiningen 2.8 (require 'cemerick.pomegranate.aether) (cemerick.pomegranate.aether/register-wagon-factory! "http" #(org.apache.maven.wagon.providers.http.HttpWagon.)) (defproject deeto "0.1.1-SNAPSHOT" :description "FIXME: write description" :url "" :license {:n...
null
https://raw.githubusercontent.com/henrik42/deeto/575e8ec8e309b575f16b7640fc92240279520b45/project.clj
clojure
lein with-profile +local deploy
re - enables http repository support in Leiningen 2.8 (require 'cemerick.pomegranate.aether) (cemerick.pomegranate.aether/register-wagon-factory! "http" #(org.apache.maven.wagon.providers.http.HttpWagon.)) (defproject deeto "0.1.1-SNAPSHOT" :description "FIXME: write description" :url "" :license {:n...
d297562d6a122252583e392d4d6adc276161ead17e55fd05653856839fd6ee65
nickzuber/lets-make-a-compiler
mapping.ml
open Ast open Ast.Assembly open Polyfill exception Debugging of string module Bfs = Interference_graph.Bfs let naive_interference_ts = ref 0. let graph_interference_ts = ref 0. module rec Liveness_mapping : sig (* An instruction mapped to a set of variables that are live at that instruction. *) type t = (Select...
null
https://raw.githubusercontent.com/nickzuber/lets-make-a-compiler/ee2337b116f07c1357f7b70bd09f1503e39fdc88/src/transformers/mapping.ml
ocaml
An instruction mapped to a set of variables that are live at that instruction. A set of variables which are considered live. Mapping of int to general purpose registers. 3st function argument * unused Get the arguments that are considered for writes, regardless of being a variable or not. Get the arguments ...
open Ast open Ast.Assembly open Polyfill exception Debugging of string module Bfs = Interference_graph.Bfs let naive_interference_ts = ref 0. let graph_interference_ts = ref 0. module rec Liveness_mapping : sig type t = (Select.instruction, Liveness.t) Hashtbl.t end = Liveness_mapping and Liveness : sig type t...
b8508fa487e5cbf9febe9e8bfe87245dae5309e38004e37ad96b3ac1189abf3f
mfp/ocsiblog
test_simple_markup.ml
Copyright ( C ) 2009 < > open OUnit open Simple_markup open Printf open ExtString let wrap f x = "\n" ^ f x ^ "\n" let aeq_pars ?msg expected actual = assert_equal ?msg ~printer:(wrap string_of_paragraphs) expected actual let check expected input = aeq_pars ~msg:(sprintf "With input:\n%s\n" (String.strip ...
null
https://raw.githubusercontent.com/mfp/ocsiblog/e5048a971f3e4289855214418338ac032f11ea4c/test_simple_markup.ml
ocaml
Copyright ( C ) 2009 < > open OUnit open Simple_markup open Printf open ExtString let wrap f x = "\n" ^ f x ^ "\n" let aeq_pars ?msg expected actual = assert_equal ?msg ~printer:(wrap string_of_paragraphs) expected actual let check expected input = aeq_pars ~msg:(sprintf "With input:\n%s\n" (String.strip ...
fbb4c940e366b4fead4967870dd3994c7f076ad02275cf70a36e98fa750c5c4d
ghc/nofib
Chl_routs.hs
The first part of Choleski decomposition . Contains a matrix reodering function . The generalized envelope method is implemented here . XZ , 24/10/91 The first part of Choleski decomposition. Contains a matrix reodering function. The generalized envelope method is implemented here. XZ, 24/10/91 -} ...
null
https://raw.githubusercontent.com/ghc/nofib/f34b90b5a6ce46284693119a06d1133908b11856/real/fluid/Chl_routs.hs
haskell
not needed w/ proper module handling ditto --------------------------------------------------------- Liu's generalized envelope method adopted here. -- minimum degree ordering ( to minimize fill-ins ) and -- secondly applying postordering ( to optimize matrix -- structure ). The system matrix structure...
The first part of Choleski decomposition . Contains a matrix reodering function . The generalized envelope method is implemented here . XZ , 24/10/91 The first part of Choleski decomposition. Contains a matrix reodering function. The generalized envelope method is implemented here. XZ, 24/10/91 -} ...
b37c2962300c35bd1e95d0e8583e41ef6ff195f6b909026e76b8943eb0486765
yannham/mechaml
reddit_login_bind_operators.ml
(* This file is in the public domain *) (** Connect to reddit then fill and submit the login form then download the resulting page *) * This is the same program as reddit_login , but where we used the new OCaml binding operators introduced in 4.08 and supported in through the module . Agent . Syntax bi...
null
https://raw.githubusercontent.com/yannham/mechaml/1efeb59e21ed72bc36e2421a96a52e807065b3d6/examples/reddit_login_bind_operators.ml
ocaml
This file is in the public domain * Connect to reddit then fill and submit the login form then download the resulting page
* This is the same program as reddit_login , but where we used the new OCaml binding operators introduced in 4.08 and supported in through the module . Agent . Syntax binding operators introduced in 4.08 and supported in Mechaml through the module Mechaml.Agent.Syntax *) open Mechaml module M = Agent.M...
d0b2319785fb145a8212b3ef053c8dd0263cd62c43c17c6d73d70d8997648120
facebook/flow
parsing_service_js.mli
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/flow/f7d50bb772462888b27b5dbf9acf7d079eb1ff5f/src/parsing/parsing_service_js.mli
ocaml
result of individual parse results of parse job, returned by parse and reparse successfully parsed files list of skipped files list of files skipped due to an out of date hash list of failed files set of unchanged files set of files that were not found on disk package.json files parsed set of modules...
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
3aebf3971617a82188762c0ea43f538aa300bb0c6cd931b39deb5d4f365fb134
bmeurer/ocamljit2
includeclass.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet Cr...
null
https://raw.githubusercontent.com/bmeurer/ocamljit2/ef06db5c688c1160acc1de1f63c29473bcd0055c/typing/includeclass.mli
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1997 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ Id$ open Types open Typedtree open C...
0d8303d4f3b89ab81a14f73513875f88375830f4a2106de3dd4dd178ce4d8715
toddaaro/advanced-dan
mk.scm
(library (mk) (export var var? rhs lhs lambdag@ walk walk* mzerog unitg choiceg lambdaf@ : take empty-f conde conda ifa condu ifu fresh project onceo succeed fail prt) (import (rnrs) (only (chezscheme) pretty-print)) (define var (lambda (x) (vector x))) (define var? (lambda ...
null
https://raw.githubusercontent.com/toddaaro/advanced-dan/5d6c0762d998aa37774e0414a0f37404e804b536/valo/mk.scm
scheme
(library (mk) (export var var? rhs lhs lambdag@ walk walk* mzerog unitg choiceg lambdaf@ : take empty-f conde conda ifa condu ifu fresh project onceo succeed fail prt) (import (rnrs) (only (chezscheme) pretty-print)) (define var (lambda (x) (vector x))) (define var? (lambda ...
5bda057e4a8353fd1bb7cfc11f1c8d18769eacf04f81e1e20f6e1eea14759c82
expipiplus1/vulkan
VK_KHR_fragment_shading_rate.hs
{-# language CPP #-} -- | = Name -- VK_KHR_fragment_shading_rate - device extension -- -- == VK_KHR_fragment_shading_rate -- -- [__Name String__] @VK_KHR_fragment_shading_rate@ -- -- [__Extension Type__] -- Device extension -- -- [__Registered Extension Number__] 227 -- -- [__Revision__] 2 -- --...
null
https://raw.githubusercontent.com/expipiplus1/vulkan/ebc0dde0bcd9cf251f18538de6524eb4f2ab3e9d/src/Vulkan/Extensions/VK_KHR_fragment_shading_rate.hs
haskell
# language CPP # | = Name == VK_KHR_fragment_shading_rate [__Name String__] [__Extension Type__] Device extension [__Registered Extension Number__] [__Revision__] [__Extension and Version Dependencies__] - Requires @VK_KHR_create_renderpass2@ to be enabled for any device-level funct...
VK_KHR_fragment_shading_rate - device extension @VK_KHR_fragment_shading_rate@ 227 2 - Requires support for Vulkan 1.0 - < -Docs/issues/new?body=[VK_KHR_fragment_shading_rate ] @tobski%0A*Here describe the issue or question you have about the VK_KHR_fragment_shading_rat...
f96a45f1f71e5853faa80c9eebf5f09685b224e31b5a40d0083d5075bc3bfc13
liquidz/misaki
_config.clj
{ ;; directory setting :public-dir "public/" :template-dir "template/" :layout-dir "layouts/" ;; posts and tags url setting ;; default value: "/" ;; ex) ;; "/" => "/YYYY-MM/POST.html" ;; "/foo" => "/foo/YYYY-MM/POST.html" :url-base "/" ;; dev server port default value : 8080 :po...
null
https://raw.githubusercontent.com/liquidz/misaki/b8104e632058e3b3da4487513d10e666e5914ec9/samples/impress/_config.clj
clojure
directory setting posts and tags url setting default value: "/" ex) "/" => "/YYYY-MM/POST.html" "/foo" => "/foo/YYYY-MM/POST.html" dev server port site language default value: "en" default site data highlight setting compiler setting default value: "default"
{ :public-dir "public/" :template-dir "template/" :layout-dir "layouts/" :url-base "/" default value : 8080 :port 8080 :lang "en" :site {:charset "utf-8" :css ["+Sans" "/css/common.css" "/css/main.css"]} :code-highlight {:CLJ "lang-clj", :CLOJURE ...
fef403d7a0b3c6565f5f4970bac59b174272c70ec7c6c0e7d2f12c07d4ae039d
chapmanb/bcbio.variation
reorder.clj
(ns bcbio.align.reorder "Reorder BAM alignment files to a reference dictionary, potentially swapping naming. Handles Human hg19 to GRCh37 naming conversions." (:import [htsjdk.samtools SAMFileReader SAMFileWriterFactory SAMReadGroupRecord SAMTag SAMFileReader$ValidationStringency]) (:use [clojure.ja...
null
https://raw.githubusercontent.com/chapmanb/bcbio.variation/c48834a6819e63dcccb5bc51540c7e19b212a019/src/bcbio/align/reorder.clj
clojure
(ns bcbio.align.reorder "Reorder BAM alignment files to a reference dictionary, potentially swapping naming. Handles Human hg19 to GRCh37 naming conversions." (:import [htsjdk.samtools SAMFileReader SAMFileWriterFactory SAMReadGroupRecord SAMTag SAMFileReader$ValidationStringency]) (:use [clojure.ja...
385d1e79985a7eafb13a3259490a77244c882675b97628f343d050fde3421782
rpasta42/ChessKell
Helpers.hs
module Helpers ( posToCoord, coordToPos, moveToStr , mkBoard, mkBoardFromPair , mkPiece, mkPieceW, mkPieceB, mkPieceNoMoves , flipBoardColor, setPieceMoves , flipColor , coordEq , getPieceCoord , pieceMovesTo2 , isCoordOnBoard , elem' , strToMove ) where import qualified Data.Matrix as M import qualified Data.Char as ...
null
https://raw.githubusercontent.com/rpasta42/ChessKell/1b79ebac26bffcc8d18953f1ede862adec23fee1/Helpers.hs
haskell
-start make functions end make functions small funcs
module Helpers ( posToCoord, coordToPos, moveToStr , mkBoard, mkBoardFromPair , mkPiece, mkPieceW, mkPieceB, mkPieceNoMoves , flipBoardColor, setPieceMoves , flipColor , coordEq , getPieceCoord , pieceMovesTo2 , isCoordOnBoard , elem' , strToMove ) where import qualified Data.Matrix as M import qualified Data.Char as ...
43e2fb647d82cf690d2ac12dabc6c6ece39a5b6da81b1b3cf8d2911e43adbcdc
zeniuseducation/poly-euler
five.clj
(ns alfa.under200.five (:require [clojure.set :refer [union difference intersection subset?]] [clojure.core.reducers :as r] [clojure.string :refer [split-lines]] [alfa.common :refer :all] [clojure.string :as cs])) (defn ^long sol3 [^long tar] (loop [i (int 3) n tar] (cond (== i n) i...
null
https://raw.githubusercontent.com/zeniuseducation/poly-euler/734fdcf1ddd096a8730600b684bf7398d071d499/Alfa/src/alfa/under200/five.clj
clojure
(ns alfa.under200.five (:require [clojure.set :refer [union difference intersection subset?]] [clojure.core.reducers :as r] [clojure.string :refer [split-lines]] [alfa.common :refer :all] [clojure.string :as cs])) (defn ^long sol3 [^long tar] (loop [i (int 3) n tar] (cond (== i n) i...
1b26f901db68b527fcebdd44f8833bc06d2dc3d07ee84282dedf487785ae9acb
GrammaticalFramework/gf-core
CommandInfo.hs
module GF.Command.CommandInfo where import GF.Command.Abstract(Option,Expr,Term) import GF.Text.Pretty(render) import GF.Grammar.Printer() -- instance Pretty Term import GF.Grammar.Macros(string2term) import qualified PGF as H(showExpr) import qualified PGF.Internal as H(Literal(LStr),Expr(ELit)) ---- data CommandInfo...
null
https://raw.githubusercontent.com/GrammaticalFramework/gf-core/9b4f2dd18b64b770aaebfa1885085e8e3447f119/src/compiler/GF/Command/CommandInfo.hs
haskell
instance Pretty Term -- ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ -- errors, etc ** Converting command output only used in emptyCommandInfo should be a pattern macro ** Converting command input hmm ...
module GF.Command.CommandInfo where import GF.Command.Abstract(Option,Expr,Term) import GF.Text.Pretty(render) import GF.Grammar.Macros(string2term) import qualified PGF as H(showExpr) data CommandInfo m = CommandInfo { exec :: [Option] -> CommandArguments -> m CommandOutput, synopsis :: String, syntax :: ...
b4cf300e26b9a6cf117f14bd1e360900693965cb2adf769a34a915923a5b0951
dbuenzli/lit
image.mli
---------------------------------------------------------------------------- Copyright ( c ) 2007 , . All rights reserved . Distributed under a BSD license , see .. /LICENSE . ---------------------------------------------------------------------------- Copyright (c) 2007, Daniel C. Bünzli. All right...
null
https://raw.githubusercontent.com/dbuenzli/lit/4058b8a133cd51d3bf756c66b9ab620e39e1d2c4/attic/image.mli
ocaml
* Image dimension. * Pixel components. * Number of components. * True if the pixel format is compressed. * Storage of the pixel format. * Specializes the pixel format's type variable. Raises [Invalid_argument] if the given storage is not equal to {!Image.storage}. * The type for image formats. * Width, heigh...
---------------------------------------------------------------------------- Copyright ( c ) 2007 , . All rights reserved . Distributed under a BSD license , see .. /LICENSE . ---------------------------------------------------------------------------- Copyright (c) 2007, Daniel C. Bünzli. All right...
519d894dcb63a9b67899f1c8e5b17cdcf89d7433f0ff570cb200be1d7e6be0bb
mpickering/eventlog2html
HtmlTemplate.hs
{-# LANGUAGE OverloadedStrings #-} module Eventlog.HtmlTemplate where import Data.Aeson (Value, encode) import Data.Aeson.Text (encodeToLazyText) import Data.String import Data.Text (Text, append) import qualified Data.Text as T import qualified Data.Text.Lazy.Encoding as T import qualified Data.Text.Lazy as TL --impo...
null
https://raw.githubusercontent.com/mpickering/eventlog2html/a18ec810328c71122ccc630fccfcea5b48c0e937/src/Eventlog/HtmlTemplate.hs
haskell
# LANGUAGE OverloadedStrings # import Text.Blaze.Html Dynamically bound in ccs tree chart is created to avoid duplicating it. For the vega chart, this causes a harmless error so we just don't do it. Include this last to overwrite some milligram styling
module Eventlog.HtmlTemplate where import Data.Aeson (Value, encode) import Data.Aeson.Text (encodeToLazyText) import Data.String import Data.Text (Text, append) import qualified Data.Text as T import qualified Data.Text.Lazy.Encoding as T import qualified Data.Text.Lazy as TL import Text.Blaze.Html5 as H i...
31c341455ae0bafc84b06d03239a8a2c1fdd6cca756ce7107b7765859b6146d5
elaforge/karya
ControlFunction.hs
Copyright 2014 -- This program is distributed under the terms of the GNU General Public -- License 3.0, see COPYING or -3.0.txt -- | Calls and functions for 'DeriveT.ControlFunction's. module Derive.C.Prelude.ControlFunction where import qualified Data.List as List import qualified Data.Map as Map import qualified...
null
https://raw.githubusercontent.com/elaforge/karya/a6638f16da9f018686023977c1292d6ce5095e28/Derive/C/Prelude/ControlFunction.hs
haskell
This program is distributed under the terms of the GNU General Public License 3.0, see COPYING or -3.0.txt | Calls and functions for 'DeriveT.ControlFunction's. | Approximate a bounded normal distribution. | This is like Normal, but rotated, so the peaks are at the extremities. * cf-swing * cf-clamp * curve int...
Copyright 2014 module Derive.C.Prelude.ControlFunction where import qualified Data.List as List import qualified Data.Map as Map import qualified System.Random.Mersenne.Pure64 as Pure64 import qualified Util.Doc as Doc import qualified Util.Num as Num import qualified Util.Seq as Seq import qualified Derive.Call...
c8599de68436dc246b0027f4febeee2421ea9e2904ef633a4fd599d8042a80a3
dmitryvk/sbcl-win32-threads
fixup.lisp
fixups , extracted from codegen.lisp by WHN 19990227 in order ;;;; to help with cross-compiling bootstrapping This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon University and rele...
null
https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/src/compiler/fixup.lisp
lisp
to help with cross-compiling bootstrapping more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. a fixup of some kind the name and flavor of the fixup. The assembler makes no assumptions about t...
fixups , extracted from codegen.lisp by WHN 19990227 in order This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB!C") (defstruct (fixup (:construc...
4ab612269b544a9c915f80fe27098a70ea22281208b932f52831cfc00fa24f70
lehitoskin/typed-stack
typed-stack.rkt
(module typed-stack typed/racket ; typed-stack.rkt ; LIFO stack ; "top" refers to the beginning of the list ; "bottom" or "end" refers to the end of the list (provide make-stack empty-stack stack->list stack->string stack-empty? stack-length stack=? top in-stack pop pop! push push! pus...
null
https://raw.githubusercontent.com/lehitoskin/typed-stack/5bcf55322b3a97ecfb0233ed77f282507eb2f6ad/typed-stack.rkt
racket
typed-stack.rkt LIFO stack "top" refers to the beginning of the list "bottom" or "end" refers to the end of the list produces a mutable stack creates a list from the stack as-is builds a string representation of the stack with ordering from bottom to top returns a sequence to use with stacks pops the stack p...
(module typed-stack typed/racket (provide make-stack empty-stack stack->list stack->string stack-empty? stack-length stack=? top in-stack pop pop! push push! push* push*! push-dup push-dup! pop-all! swap swap! push-over push-over! rotate rotate! reverse-rotate reverse-rot...
dd732baadf67414c2d9955fee0cc075a84ea681198fceb272b399b10420619d2
mbutterick/sugar
list.rkt
#lang racket/base (require (for-syntax racket/base) racket/list racket/match racket/function "define.rkt") (define (increasing-nonnegative-list? x) (and (list? x) (or (empty? x) (apply < -1 x)))) (define+provide+safe (trimf xs test-proc) (list? procedure? . -> . list?...
null
https://raw.githubusercontent.com/mbutterick/sugar/990b0b589274a36a58e27197e771500c5898b5a2/sugar/list.rkt
racket
same idea as slicef, but the negated items are dropped easier to do back to front, because then the list index for each item won't change during the recursion return whatever's left, because no more splits are possible how-far is negative
#lang racket/base (require (for-syntax racket/base) racket/list racket/match racket/function "define.rkt") (define (increasing-nonnegative-list? x) (and (list? x) (or (empty? x) (apply < -1 x)))) (define+provide+safe (trimf xs test-proc) (list? procedure? . -> . list?...
ef0817a3910fd3ad1d4631da4aede96617a0758751c7109e515014bd83c8b044
2600hz/kazoo
knm_errors.erl
%%%----------------------------------------------------------------------------- ( C ) 2010 - 2020 , 2600Hz %%% @doc @author This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %%% %%% @end...
null
https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/core/kazoo_numbers/src/knm_errors.erl
erlang
----------------------------------------------------------------------------- @doc @end ----------------------------------------------------------------------------- used by knm_pipe ------------------------------------------------------------------------------ @doc Convert knm_pipe failed map to proplist. @end -...
( C ) 2010 - 2020 , 2600Hz @author This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. -module(knm_errors). -export([unspecified/2 ,unauthorized/0 ,number_exists/1 ...
f0eb50ea25ef4ae406fc3d635164a4111eec23bf1e85c5af744154cf2e504fd7
gergoerdi/tandoori
wildcard.hs
foo _ = []
null
https://raw.githubusercontent.com/gergoerdi/tandoori/515142ce76b96efa75d7044c9077d85394585556/input/wildcard.hs
haskell
foo _ = []
20e884b8bf80d7118a37baaedbd39c34633d586319647823a09615119d2edcff
stevenvar/OMicroB
device_config.ml
(******************************************************************************) let default_arm_cxx_options = [ "-mthumb"; "-g"; "-fno-exceptions"; "-fno-unwind-tables"; "-O2"; "-g"; "-Wall"; "-Wl,-Os"; "-fdata-sections"; ...
null
https://raw.githubusercontent.com/stevenvar/OMicroB/99a2e781f9511137090aaba3c09e2e920c0dbc77/targets/microbit/device_config.ml
ocaml
**************************************************************************** let arm_map_file = (Filename.remove_extension input)^".map" in Compile a .c into a .arm_o Compile a .arm_o into a .arm_elf **************************************************************************** * Choose correct config according to ...
let default_arm_cxx_options = [ "-mthumb"; "-g"; "-fno-exceptions"; "-fno-unwind-tables"; "-O2"; "-g"; "-Wall"; "-Wl,-Os"; "-fdata-sections"; "-ffunction-sections"; "-O"; "-g"; "-Wall"; "-Wl,...
4fe94b4797fc737f046a38d0f3110de580423387b68ce9004d9b7ae16c47a52b
ermine/xmpp
punycode_test.ml
open Printf let _ = let str = Sys.argv.(1) in printf "original: [%s]\n" str; let decoded = Punycode.decode str in printf "decoded: [%s]\n" (UTF8.encode decoded); let encoded = Punycode.encode (Array.of_list decoded) in printf "encoded: [%s]\n" encoded; if str <> encoded then fail...
null
https://raw.githubusercontent.com/ermine/xmpp/85f31c5aaac6e3b5042694ff33ac8afdfb845c06/tests/punycode_test.ml
ocaml
open Printf let _ = let str = Sys.argv.(1) in printf "original: [%s]\n" str; let decoded = Punycode.decode str in printf "decoded: [%s]\n" (UTF8.encode decoded); let encoded = Punycode.encode (Array.of_list decoded) in printf "encoded: [%s]\n" encoded; if str <> encoded then fail...
5a1ed4e81fa41a15c4604c0895b125554bd7145d216d1f1a0a878872f77b5fc8
chrisdone/hulk
Server.hs
{-# OPTIONS -Wall -fno-warn-missing-signatures #-} module Main where import Network import System.Console.CmdArgs import System.Posix import Hulk.Config (getConfig) import Hulk.Options (options,optionsConf) import Hulk.Server (start) import Hulk.Types () main :: IO () main = withSocketsDo $ do _ <- installHand...
null
https://raw.githubusercontent.com/chrisdone/hulk/8a7c2cf975a2d40778a26750591c8c69d3ea4ae7/src/main/Server.hs
haskell
# OPTIONS -Wall -fno-warn-missing-signatures #
module Main where import Network import System.Console.CmdArgs import System.Posix import Hulk.Config (getConfig) import Hulk.Options (options,optionsConf) import Hulk.Server (start) import Hulk.Types () main :: IO () main = withSocketsDo $ do _ <- installHandler sigPIPE Ignore Nothing cmdArgs options >>= ge...
ebaa6615c38df7c3607c4127a0095bca552cbc97e642b09b3e553cfb36736aeb
MaskRay/OJHaskell
104.hs
import Data.Int import Data.List import Data.Numbers.Fibonacci modulus :: Integral a => a modulus = 10^9 newtype ModP = ModP Int64 deriving (Show, Eq) instance Num ModP where ModP a + ModP b = ModP $ (a + b) `rem` modulus ModP a - ModP b = ModP $ (a - b) `rem` modulus ModP a * ModP b = ModP $ (a * b) `rem...
null
https://raw.githubusercontent.com/MaskRay/OJHaskell/ba24050b2480619f10daa7d37fca558182ba006c/Project%20Euler/104.hs
haskell
import Data.Int import Data.List import Data.Numbers.Fibonacci modulus :: Integral a => a modulus = 10^9 newtype ModP = ModP Int64 deriving (Show, Eq) instance Num ModP where ModP a + ModP b = ModP $ (a + b) `rem` modulus ModP a - ModP b = ModP $ (a - b) `rem` modulus ModP a * ModP b = ModP $ (a * b) `rem...
abf1e20f5f195a7282fdd15dfb87e8ac5fd80eb4b4e6a868bc9217fe7feb96c9
nyu-acsys/drift
Ackermann01.ml
let rec bot _ = bot () let fail _ = assert false let rec ack_without_checking_1087 x_DO_NOT_CARE_1093 x_DO_NOT_CARE_1094 x_DO_NOT_CARE_1095 m_1031 set_flag_ack_1075 s_ack_m_1070 s_ack_n_1071 n_1032 = let set_flag_ack_1075 = true in let s_ack_n_1071 = n_1032 in let s_ack_m_1070 = m_1031 in if m_1031 = 0...
null
https://raw.githubusercontent.com/nyu-acsys/drift/51a3160d74b761626180da4f7dd0bb950cfe40c0/tests/benchmarks/r_type/termination/Ackermann01.ml
ocaml
-:{v:Int | true} -:{v:Int | true}
let rec bot _ = bot () let fail _ = assert false let rec ack_without_checking_1087 x_DO_NOT_CARE_1093 x_DO_NOT_CARE_1094 x_DO_NOT_CARE_1095 m_1031 set_flag_ack_1075 s_ack_m_1070 s_ack_n_1071 n_1032 = let set_flag_ack_1075 = true in let s_ack_n_1071 = n_1032 in let s_ack_m_1070 = m_1031 in if m_1031 = 0...
2b105b95fad1b084eac7d185289d74ee4f17fed369faa4d357a9644b4f2e00aa
haskell/haskell-language-server
Fourmolu.hs
{-# LANGUAGE DataKinds #-} # LANGUAGE DisambiguateRecordFields # # LANGUAGE LambdaCase # {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE OverloadedLabels #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeApplications # module Ide.Plugin.Fourmolu ( de...
null
https://raw.githubusercontent.com/haskell/haskell-language-server/6f5a73507f8d9266a486feaf8695c052362b9b95/plugins/hls-fourmolu-plugin/src/Ide/Plugin/Fourmolu.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE NamedFieldPuns # # LANGUAGE OverloadedLabels # # LANGUAGE OverloadedStrings #
# LANGUAGE DisambiguateRecordFields # # LANGUAGE LambdaCase # # LANGUAGE TypeApplications # module Ide.Plugin.Fourmolu ( descriptor, provider, LogEvent, ) where import Control.Exception (IOException, try) import Control.Lens ((^....
414bc283fc1d90e33c79b68769adbb091d3534b7c01da9c338f43c3385e3b756
marcelosousa/llvmvf
Util.hs
------------------------------------------------------------------------------- Module : Language . . Util Copyright : ( c ) 2012 ------------------------------------------------------------------------------- module Language.LLVMIR.Extractor.Util where import qualified LLVM.FFI.Core as FFI import LLVM...
null
https://raw.githubusercontent.com/marcelosousa/llvmvf/c314e43aa8bc8bb7fd9c83cebfbdcabee4ecfe1b/src/Language/LLVMIR/Extractor/Util.hs
haskell
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
Module : Language . . Util Copyright : ( c ) 2012 module Language.LLVMIR.Extractor.Util where import qualified LLVM.FFI.Core as FFI import LLVM.Core hiding (Value) import Foreign.C.Types type Value = FFI.ValueRef cUInt2Bool :: CUInt -> Bool cUInt2Bool 0 = False cUInt2Bool _ = True cInt2Bool :: CIn...
3cc136078aae5f6add8cf166a2d5304974777fd3b61f134c056501a3bf6e02d4
ragkousism/Guix-on-Hurd
gperf.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2012 , 2013 < > ;;; ;;; 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/ragkousism/Guix-on-Hurd/e951bb2c0c4961dc6ac2bda8f331b9c4cee0da95/gnu/packages/gperf.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2012 , 2013 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (gnu packages gperf) #:use-module (guix licenses) #:use-module (guix packages) #:use-m...
a1f4e2ccc0758cbd8cd5d910b3caaa4affbf5fedd84947bd445fd601986abb63
processone/ejabberd
mod_pubsub_opt.erl
%% Generated automatically %% DO NOT EDIT: run `make options` instead -module(mod_pubsub_opt). -export([access_createnode/1]). -export([db_type/1]). -export([default_node_config/1]). -export([force_node_config/1]). -export([host/1]). -export([hosts/1]). -export([ignore_pep_from_offline/1]). -export([last_item_cache/1...
null
https://raw.githubusercontent.com/processone/ejabberd/b173ec0a780b1cd6d8da1f25f58c1880fbae293a/src/mod_pubsub_opt.erl
erlang
Generated automatically DO NOT EDIT: run `make options` instead
-module(mod_pubsub_opt). -export([access_createnode/1]). -export([db_type/1]). -export([default_node_config/1]). -export([force_node_config/1]). -export([host/1]). -export([hosts/1]). -export([ignore_pep_from_offline/1]). -export([last_item_cache/1]). -export([max_item_expire_node/1]). -export([max_items_node/1]). -e...
d831e293227393042f1505580af02c5f992f0c408f4209ae3e1e6af7ef256093
wavewave/hoodle
Link.hs
{-# LANGUAGE GADTs #-} # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE RecordWildCards # # LANGUAGE TupleSections # module Hoodle.Coroutine.Link where import Control.Applicative import Control.Lens (at, set, view, (^.), _2) import Control.Monad hiding (forM_) import C...
null
https://raw.githubusercontent.com/wavewave/hoodle/b026641ef9375818c996c1fa4968e192a0d48e7c/core/src/Hoodle/Coroutine/Link.hs
haskell
# LANGUAGE GADTs # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # | | (docid,anchorid) | for the time being, I use string | -- | got a link address (or embedded image) from drag and drop | | |
# LANGUAGE LambdaCase # # LANGUAGE RecordWildCards # # LANGUAGE TupleSections # module Hoodle.Coroutine.Link where import Control.Applicative import Control.Lens (at, set, view, (^.), _2) import Control.Monad hiding (forM_) import Control.Monad.State (get, gets, liftIO) import Control.Monad.Trans.Maybe import qualifi...
1c9357ac157d4b717a3a8dcd6af70435a02a3f0a59231922686c5e2161744424
aldosolorzano/structurizr-clj
view.clj
(ns structurizr-clj.view) (defn configuration "Gets configuration for given views" [views] (.getConfiguration views)) (defn get-key [view] (.getKey view)) (defn styles "Get styles HashSet for given views" [views] (.getStyles (configuration views))) (defn system-landscapes [views] (.getSystemLand...
null
https://raw.githubusercontent.com/aldosolorzano/structurizr-clj/20354fc97c660dd5ce44972f4a1d3935a4f32e4c/src/structurizr_clj/view.clj
clojure
(ns structurizr-clj.view) (defn configuration "Gets configuration for given views" [views] (.getConfiguration views)) (defn get-key [view] (.getKey view)) (defn styles "Get styles HashSet for given views" [views] (.getStyles (configuration views))) (defn system-landscapes [views] (.getSystemLand...
1966360594297880b9b557a1e157455f7ca66faaf39e39151f6c47377a2d077b
huangz1990/SICP-answers
test-p33-prime.scm
(load "test-manager/load.scm") (load "p33-prime.scm") (define-each-check (prime? 7) (false? (prime? 10)) ) (run-registered-tests)
null
https://raw.githubusercontent.com/huangz1990/SICP-answers/15e3475003ef10eb738cf93c1932277bc56bacbe/chp2/code/test-p33-prime.scm
scheme
(load "test-manager/load.scm") (load "p33-prime.scm") (define-each-check (prime? 7) (false? (prime? 10)) ) (run-registered-tests)
4bd5afe0dcfcc1e490800dae9cec09e8cc431d403fe910003c6662ec8a0bf906
renanroberto/whatsyourquestion-bot
Flow.hs
module Flow (flow, (?>)) where type FlowT a = Either a () class Flow a where flowFail :: a flow :: FlowT a -> a flow (Left x) = x flow (Right _) = flowFail (?>) :: Bool -> a -> FlowT a bool ?> value = if bool then Left value else Right () infix 3 ?> instance Flow Bool where flowFail = False insta...
null
https://raw.githubusercontent.com/renanroberto/whatsyourquestion-bot/3207eefbb66004b2cc258a46d9cc9c9ed31fcc38/src/Flow.hs
haskell
module Flow (flow, (?>)) where type FlowT a = Either a () class Flow a where flowFail :: a flow :: FlowT a -> a flow (Left x) = x flow (Right _) = flowFail (?>) :: Bool -> a -> FlowT a bool ?> value = if bool then Left value else Right () infix 3 ?> instance Flow Bool where flowFail = False insta...
aacb24acbcf5ed60c103a0e3c9962eeca0933f8749f68573d3812a74cf31a809
TrustInSoft/tis-kernel
aorai_utils.mli
(**************************************************************************) (* *) This file is part of . (* *) is a fork of Frama - C. Al...
null
https://raw.githubusercontent.com/TrustInSoft/tis-kernel/748d28baba90c03c0f5f4654d2e7bb47dfbe4e7d/src/plugins/aorai/aorai_utils.mli
ocaml
************************************************************************ ...
This file is part of . is a fork of Frama - C. All the differences are : Copyright ( C ) 2016 - 2017 is released under GPLv2 This file is part of Aorai plug - in of Frama - C. Copyright ( C ) 2007 - 2015 ...
82fc3525beb0bc9099cfeec876d40cfcde40572034b48b35f2dceee125e8b62d
gator1/jepsen
timeline.clj
(ns jepsen.checker.timeline "Renders an HTML timeline of a history." (:require [clojure.core.reducers :as r] [clojure.string :as str] [hiccup.core :as h] [knossos.history :as history] [jepsen.util :as util :refer [name+]] [jepsen.store :as store] ...
null
https://raw.githubusercontent.com/gator1/jepsen/1932cbd72cbc1f6c2a27abe0fe347ea989f0cfbb/jepsen/src/jepsen/checker/timeline.clj
clojure
}\n" Info following invoke Unmatched info
(ns jepsen.checker.timeline "Renders an HTML timeline of a history." (:require [clojure.core.reducers :as r] [clojure.string :as str] [hiccup.core :as h] [knossos.history :as history] [jepsen.util :as util :refer [name+]] [jepsen.store :as store] ...
40cfced2a66f8396b20aa7386a33aa6a1133fcdb13afdb2552681448e9e7cb10
qfpl/reflex-workshop
Template.hs
| Copyright : ( c ) 2018 , Commonwealth Scientific and Industrial Research Organisation License : : Stability : experimental Portability : non - portable Copyright : (c) 2018, Commonwealth Scientific and Industrial Research Organisation License : BSD3 Maintainer : Stability : experi...
null
https://raw.githubusercontent.com/qfpl/reflex-workshop/244ef13fb4b2e884f455eccc50072e98d1668c9e/src/Util/Template.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE GADTs #
| Copyright : ( c ) 2018 , Commonwealth Scientific and Industrial Research Organisation License : : Stability : experimental Portability : non - portable Copyright : (c) 2018, Commonwealth Scientific and Industrial Research Organisation License : BSD3 Maintainer : Stability : experi...
18027c2ba2773247f9702346b4b4459d5c758315df76eca0f21694004216f503
parapluu/Concuerror
depend_6_3.erl
-module(depend_6_3). -export([result/0, procs/0, run/1]). result() -> io:format("36"). procs() -> io:format("4"). run(Procs) -> [S] = io_lib:format("~p",[Procs]), initial(), run_aux(S), block(). run_aux([]) -> ok; run_aux([P|R]) -> spawn(fun() -> proc(P) end), run_aux(R). block() -> re...
null
https://raw.githubusercontent.com/parapluu/Concuerror/152a5ccee0b6e97d8c3329c2167166435329d261/resources/perm_tests/src/depend_6_3.erl
erlang
-module(depend_6_3). -export([result/0, procs/0, run/1]). result() -> io:format("36"). procs() -> io:format("4"). run(Procs) -> [S] = io_lib:format("~p",[Procs]), initial(), run_aux(S), block(). run_aux([]) -> ok; run_aux([P|R]) -> spawn(fun() -> proc(P) end), run_aux(R). block() -> re...
030c9257afd18a10b8796bd0d6ee99941087a8c9932a65173f11d139bfda4bb5
0install/0install
impl.ml
Copyright ( C ) 2014 , the README file for details , or visit . * See the README file for details, or visit . *) open Support open Support.Common module U = Support.Utils module FeedAttr = Constants.FeedAttr module AttrMap = Support.Qdom.AttrMap type importance = [ `Essential (* Must select a ve...
null
https://raw.githubusercontent.com/0install/0install/22eebdbe51a9f46cda29eed3e9e02e37e36b2d18/src/zeroinstall/impl.ml
ocaml
Must select a version of the dependency Prefer to select a version, if possible Just adds restrictions without expressing any opinion In some format meaningful to the distribution The badly-named 'os' attribute Deprecated 'use' attribute =FEED/ID exact implementation spec version-based test * The list o...
Copyright ( C ) 2014 , the README file for details , or visit . * See the README file for details, or visit . *) open Support open Support.Common module U = Support.Utils module FeedAttr = Constants.FeedAttr module AttrMap = Support.Qdom.AttrMap type importance = type distro_retrieval_method = { dist...
794b6df6ec23f677f779ac2a615c2904be1bbd09d7812b6917ba1cac09263e90
7even/endless-ships
parser.clj
(ns endless-ships.parser (:require [camel-snake-kebab.core :refer [->kebab-case-keyword]] [clojure.java.io :refer [file resource]] [clojure.string :as str] [instaparse.core :as insta]) (:import [java.lang Float Integer])) (def files "All files containing game data." (->> "ga...
null
https://raw.githubusercontent.com/7even/endless-ships/1cb0519b66e493f092adea9b22768ad0980dbbab/src/clj/endless_ships/parser.clj
clojure
object counts by type ship counts by file outfit counts by file all systems with their positions parsing errors
(ns endless-ships.parser (:require [camel-snake-kebab.core :refer [->kebab-case-keyword]] [clojure.java.io :refer [file resource]] [clojure.string :as str] [instaparse.core :as insta]) (:import [java.lang Float Integer])) (def files "All files containing game data." (->> "ga...
e63ce70d762733e32ac34ec76dd4296521017cf6e25eaca8af653c7ca0ad9c48
dongcarl/guix
pkg-config.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2012 , 2013 , 2014 , 2016 < > Copyright © 2019 < > ;;; ;;; 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 Sof...
null
https://raw.githubusercontent.com/dongcarl/guix/82543e9649da2da9a5285ede4ec4f718fd740fcb/gnu/packages/pkg-config.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2012 , 2013 , 2014 , 2016 < > Copyright © 2019 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (gnu packages pkg-config) #:use-module (guix licen...
9b5a60f314c837aafd49be90a3a7a15b0c271e4668e2047bbc0eff09186a3baa
onyx-platform/onyx
scheduler_test.clj
(ns onyx.scheduler.scheduler-test (:require [clojure.test :refer :all] [onyx.scheduling.common-job-scheduler :refer [reconfigure-cluster-workload]] [onyx.log.generators :refer [one-group]] [onyx.api])) (deftest ^:broken jitter-on-no-change (let [initial-allocations {:j1 ...
null
https://raw.githubusercontent.com/onyx-platform/onyx/74f9ae58cdbcfcb1163464595f1e6ae6444c9782/test/onyx/scheduler/scheduler_test.clj
clojure
(ns onyx.scheduler.scheduler-test (:require [clojure.test :refer :all] [onyx.scheduling.common-job-scheduler :refer [reconfigure-cluster-workload]] [onyx.log.generators :refer [one-group]] [onyx.api])) (deftest ^:broken jitter-on-no-change (let [initial-allocations {:j1 ...
b86fd46d4670d1df3efa2aad2452e301ec4094c1c49e34177a84e97780c68af8
orbitz/kaiju
kaiju_kv_transport.ml
open Core.Std open Async.Std type t = unit module Callbacks = struct module Init_args = struct type t = { log : Zolog_std_event.t Zolog.t ; config : Konfig.t ; base_key : string list ; backend : Kaiju_kv_backend.t } end type start = Init_args.t ->...
null
https://raw.githubusercontent.com/orbitz/kaiju/9da6a07770cdfddde7d33b12f636df2615c36676/lib/kaiju_kv/kaiju_kv_transport.ml
ocaml
open Core.Std open Async.Std type t = unit module Callbacks = struct module Init_args = struct type t = { log : Zolog_std_event.t Zolog.t ; config : Konfig.t ; base_key : string list ; backend : Kaiju_kv_backend.t } end type start = Init_args.t ->...
3794409f3e76212f5a89c07562c3781255e8c27e893d39ec1e643ed79d5c9432
brendanhay/gogol
Get.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # {-# LANGUAGE St...
null
https://raw.githubusercontent.com/brendanhay/gogol/fffd4d98a1996d0ffd4cf64545c5e8af9c976cda/lib/services/gogol-slides/gen/Gogol/Slides/Presentations/Get.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated Gets the latest version of the specified presentation. /See:/ </ Google Slides API Reference> for @slides.presentations.get@. * Resource ** Constructing a Request | A resource alias for @slides.presentations.get@ method which...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators...
cee7746b84cb329f6a158dd2115abc064217d6b4ceed7df910d96bf43531fce2
VisionsGlobalEmpowerment/webchange
index.cljs
(ns webchange.ui.components.icon.system.index (:require [webchange.ui.components.icon.system.icon-account :as account] [webchange.ui.components.icon.system.icon-account-add :as account-add] [webchange.ui.components.icon.system.icon-account-remove :as account-remove] [webchange.ui.components.icon.syste...
null
https://raw.githubusercontent.com/VisionsGlobalEmpowerment/webchange/5d5b492712fe34db3ea3b23230c8ad87f94e5865/src/cljs/webchange/ui/components/icon/system/index.cljs
clojure
(ns webchange.ui.components.icon.system.index (:require [webchange.ui.components.icon.system.icon-account :as account] [webchange.ui.components.icon.system.icon-account-add :as account-add] [webchange.ui.components.icon.system.icon-account-remove :as account-remove] [webchange.ui.components.icon.syste...
b190761d517bd0c06c544934f6806d765b435b02cb50d532b0365b2c0c69701c
bobbae/gosling-emacs
buff-menu.ml
; ; Buffer menu main function and support functions. Autoloaded. ; (declare-global &Buffer-menu-current-buffer& &Buffer-menu-argument&) (defun (buffer-menu (setq &Buffer-menu-current-buffer& (current-buffer-name)) (setq &Buffer-menu-argument& prefix-argument-provided) (&buffer-menu)) ) (defun (&buffer-m...
null
https://raw.githubusercontent.com/bobbae/gosling-emacs/8fdda532abbffb0c952251a0b5a4857e0f27495a/lib/maclib/utah/buff-menu.ml
ocaml
; ; Buffer menu main function and support functions. Autoloaded. ; (declare-global &Buffer-menu-current-buffer& &Buffer-menu-argument&) (defun (buffer-menu (setq &Buffer-menu-current-buffer& (current-buffer-name)) (setq &Buffer-menu-argument& prefix-argument-provided) (&buffer-menu)) ) (defun (&buffer-m...
fb5688893043124625083bc7bdba899d0519ad7290439d8658cc98ab024bb73c
bmeurer/ocamljit2
odoc_test.ml
(***********************************************************************) (* OCamldoc *) (* *) , projet Cristal , INRIA Rocquencourt (* ...
null
https://raw.githubusercontent.com/bmeurer/ocamljit2/ef06db5c688c1160acc1de1f63c29473bcd0055c/testsuite/tests/tool-ocamldoc/odoc_test.ml
ocaml
********************************************************************* OCamldoc ...
, projet Cristal , INRIA Rocquencourt Copyright 2004 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ Id$ open Odoc_info open Odoc_info.Mo...
9d5ec881506ffa950a7640af4ae16c6fcc7fdbe19b1b66b3b81a2e1a30b76cf0
testdouble/baizen
account_identifier_test.clj
(ns baizen.formats.account-identifier-test (:require [clojure.test :refer :all] [baizen.formats :refer :all] [baizen.formats.account-identifier :refer :all]) (:import [baizen.formats.account_identifier AccountIdentifier])) (def simple-account-identifier-line ["03" "0975312468" "GBP" "0...
null
https://raw.githubusercontent.com/testdouble/baizen/66bc3da3b660bc88317e1be6fce266a95db883fb/test/baizen/formats/account_identifier_test.clj
clojure
(ns baizen.formats.account-identifier-test (:require [clojure.test :refer :all] [baizen.formats :refer :all] [baizen.formats.account-identifier :refer :all]) (:import [baizen.formats.account_identifier AccountIdentifier])) (def simple-account-identifier-line ["03" "0975312468" "GBP" "0...
281bf35a539ec31675908c950bcef7e16fdefbf4b5b10c3e83fce40021e1054d
janestreet/lwt-async
lwt_ssl.mli
Lightweight thread library for * Interface Lwt_ssl * Copyright ( C ) 2005 - 2008 * Laboratoire PPS - CNRS Université Paris Diderot * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the F...
null
https://raw.githubusercontent.com/janestreet/lwt-async/c738e6202c1c7409e079e513c7bdf469f7f9984c/src/ssl/lwt_ssl.mli
ocaml
* OCaml-SSL integration * Wrapper for SSL sockets. It is either a plain socket, either a real SSL socket. * Returns the underlying SSL socket used for this wrapper. If it is a plain socket it returns [None]. * Are we using an SSL socket? Really wait on a plain socket, just yield over SSL
Lightweight thread library for * Interface Lwt_ssl * Copyright ( C ) 2005 - 2008 * Laboratoire PPS - CNRS Université Paris Diderot * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the F...
0dc2b4a62dbae957e831bcd11bd407ab3e417814bae0e10b3bcd62e65cf9b24d
silkapp/girella
Run.hs
-- | Import this module if you only want to run queries module Girella.Run (module X) where import Girella.Config as X import Girella.Range as X import Girella.Transaction as X
null
https://raw.githubusercontent.com/silkapp/girella/f2fbbaaa2536f1afc5bc1a493d02f92cec81da18/src/Girella/Run.hs
haskell
| Import this module if you only want to run queries
module Girella.Run (module X) where import Girella.Config as X import Girella.Range as X import Girella.Transaction as X
8b6868885b0b66a08bde3bf2114c268d5531e901d284e327f1b145042d20537c
rampion/tree-traversals
doctests.hs
module Main where import Test.DocTest main :: IO () main = doctest $ words "--preserve-it src/"
null
https://raw.githubusercontent.com/rampion/tree-traversals/c2fa94eebe40eb1fcd7903d7758698aee57efdc8/doctests.hs
haskell
module Main where import Test.DocTest main :: IO () main = doctest $ words "--preserve-it src/"
78a042d6d2c48d37aed5b807b1c06af4890fc5d5aaaf563f92e0367c76330ee6
BinaryAnalysisPlatform/bap
bil_piqi.ml
open Core_kernel[@@warning "-D"] open Bap.Std open Bil.Types module P = Stmt_piqi open Type let casttype_to_piqi = function | UNSIGNED -> `cast_unsigned | SIGNED -> `cast_signed | HIGH -> `cast_high | LOW -> `cast_low let casttype_of_piqi = function | `cast_unsigned -> UNSIGNED | `cast_signed -> SIGNED ...
null
https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap/cbdf732d46c8e38df79d9942fc49bcb97915c657/lib/bap_piqi/bil_piqi.ml
ocaml
open Core_kernel[@@warning "-D"] open Bap.Std open Bil.Types module P = Stmt_piqi open Type let casttype_to_piqi = function | UNSIGNED -> `cast_unsigned | SIGNED -> `cast_signed | HIGH -> `cast_high | LOW -> `cast_low let casttype_of_piqi = function | `cast_unsigned -> UNSIGNED | `cast_signed -> SIGNED ...
10d4ba0668be2025c88ad6cfce8c7c87c36bff467ce71f77e238543e0e5e3ef8
ygrek/mldonkey
bTProtocol.ml
Copyright 2001 , 2002 b8_bavard , b8_fee_carabine , This file is part of mldonkey . mldonkey is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ...
null
https://raw.githubusercontent.com/ygrek/mldonkey/333868a12bb6cd25fed49391dd2c3a767741cb51/src/networks/bittorrent/bTProtocol.ml
ocaml
before next request to tracker *********************************************************************** UdpMessages ...
Copyright 2001 , 2002 b8_bavard , b8_fee_carabine , This file is part of mldonkey . mldonkey is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ...
cab962623b6837cb5e04ffd275cf728006511879ea1578af964d2a83f7be69b8
CryptoKami/cryptokami-core
Command.hs
# LANGUAGE ExistentialQuantification # module Lang.Command ( CommandProc(..) , UnavailableCommand(..) ) where import Universum import Lang.Argument (ArgumentConsumer) import Lang.Name (Name) import Lang.Value (Value) import Lang.Syntax (Arg) dat...
null
https://raw.githubusercontent.com/CryptoKami/cryptokami-core/12ca60a9ad167b6327397b3b2f928c19436ae114/auxx/src/Lang/Command.hs
haskell
# LANGUAGE ExistentialQuantification # module Lang.Command ( CommandProc(..) , UnavailableCommand(..) ) where import Universum import Lang.Argument (ArgumentConsumer) import Lang.Name (Name) import Lang.Value (Value) import Lang.Syntax (Arg) dat...
846dfcbe3fb0fb911a59eda4346553caeb21fd9d86f93f3799176de0bb22f9d8
graninas/Functional-Design-and-Architecture
HardwareSpec.hs
module Andromeda.HardwareSpec where import Test.Hspec import Andromeda import Andromeda.Assets (boostersDef, aaaController86Name) import Andromeda.Assets.Vendors.AAA.HardwareService (aaaHardwareService) import . Test . HardwareService ( mockedHardwareService ) import Andromeda.TestData.Components (thermometer1Pas...
null
https://raw.githubusercontent.com/graninas/Functional-Design-and-Architecture/faee58404e7d766c6c21f1ffdf9a2e792aebb4cb/Second-Edition-Manning-Publications/BookSamples/CH05/Section5p2p2/test/Andromeda/HardwareSpec.hs
haskell
module Andromeda.HardwareSpec where import Test.Hspec import Andromeda import Andromeda.Assets (boostersDef, aaaController86Name) import Andromeda.Assets.Vendors.AAA.HardwareService (aaaHardwareService) import . Test . HardwareService ( mockedHardwareService ) import Andromeda.TestData.Components (thermometer1Pas...
8f10edd7a2fe9d249585b4b5fe9829c111d7cb2601bab6042e4bcd971d4a643d
gildor478/ounit
oUnitTestData.ml
(**************************************************************************) The OUnit library (* *) Copyright ( C ) 2002 - 2008 Maas - Maarten Zeeman . Copyright...
null
https://raw.githubusercontent.com/gildor478/ounit/faf4936b17507406c7592186dcaa3f25c6fc138a/src/lib/ounit2/advanced/oUnitTestData.ml
ocaml
************************************************************************ Permission is hereby grante...
The OUnit library Copyright ( C ) 2002 - 2008 Maas - Maarten Zeeman . Copyright ( C ) 2010 OCamlCore SARL Copyright ( C ) 2013 The package OUnit is cop...
15c0c1c16adf2297139b352ca17149dfefe2b3ab8dba1b6ccab7d200f61baae8
tweag/haskell-training
Questionnaire.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # module Domain.Questionnaire where -- aeson import Data.Aeson.Types -- base import GHC.Generics -- openapi3 import Data.OpenApi -- text import Data.Text data Questionnaire = Questionnaire { title :: Text } deriving (Generic, FromJSON, ToJSON, ToSchem...
null
https://raw.githubusercontent.com/tweag/haskell-training/89d930f7854075d692dfb127d2c54e953dbf1519/src/Domain/Questionnaire.hs
haskell
# LANGUAGE DeriveAnyClass # aeson base openapi3 text
# LANGUAGE DeriveGeneric # module Domain.Questionnaire where import Data.Aeson.Types import GHC.Generics import Data.OpenApi import Data.Text data Questionnaire = Questionnaire { title :: Text } deriving (Generic, FromJSON, ToJSON, ToSchema)
416716664db4ff8939aee93a87d7ed1e3f45043fc073d5c71ab1170d2b4a2941
pbv/codex
Tester.hs
{-# LANGUAGE OverloadedStrings #-} module Codex.Tester ( oneOf, tester, nullTester, -- * module re-exports Meta, Code(..), lookupFromMeta, module Codex.Tester.Monad, module Codex.Tester.Result, module Codex.Tester.Utils, module Codex.Tester.Limits, -- * generic stuff module Control.Monad, modu...
null
https://raw.githubusercontent.com/pbv/codex/1a5a81965b12f834b436e2165c07120360aded99/src/Codex/Tester.hs
haskell
# LANGUAGE OverloadedStrings # * module re-exports * generic stuff renamed for readability | label a tester and ignore submissions that don't match | trivial tester (accepts all submissions)
module Codex.Tester ( oneOf, tester, nullTester, Meta, Code(..), lookupFromMeta, module Codex.Tester.Monad, module Codex.Tester.Result, module Codex.Tester.Utils, module Codex.Tester.Limits, module Control.Monad, module Control.Monad.Trans, module System.FilePath, module System.Exit, module ...
9ea5bef6250f04236038352f3a46d5ee402ac818b8b701745bdd6fa41722ad6a
YoshikuniJujo/test_haskell
VulkanBufferEnum.hs
# LANGUAGE QuasiQuotes # # OPTIONS_GHC -Wall -fno - warn - tabs # module VulkanBufferEnum where import Text.Nowdoc import MakeEnum make :: IO () make = createFileWithDefault vulkanCore "Buffer.Enum" ["Data.Default", "Data.Bits", "Data.Word"] [ ( Just "CreateFlagsZero", [("CreateFlagsZero", Int 0)], ( "CreateFl...
null
https://raw.githubusercontent.com/YoshikuniJujo/test_haskell/6ea44c1048805a62979669c185ab32ba9f4d2e02/themes/gui/vulkan/try-vulkan-middle/tools/VulkanBufferEnum.hs
haskell
# LANGUAGE QuasiQuotes # # OPTIONS_GHC -Wall -fno - warn - tabs # module VulkanBufferEnum where import Text.Nowdoc import MakeEnum make :: IO () make = createFileWithDefault vulkanCore "Buffer.Enum" ["Data.Default", "Data.Bits", "Data.Word"] [ ( Just "CreateFlagsZero", [("CreateFlagsZero", Int 0)], ( "CreateFl...
ca68bfc18697cec3f002eec563e1f2036c9d91ea32249fa6a59393dfd0b8709b
juspay/atlas
TestSilentIOLogger.hs
# OPTIONS_GHC -Wno - orphans # | Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agre...
null
https://raw.githubusercontent.com/juspay/atlas/e64b227dc17887fb01c2554db21c08284d18a806/test/src/TestSilentIOLogger.hs
haskell
# OPTIONS_GHC -Wno - orphans # | Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agre...