_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
497b5f9cfde4f01c9ddecd856380a08ec43e1fc427d93d8f6717a6ff358d236c
dparis/gen-phzr
line.cljs
(ns phzr.impl.accessors.line) (def line-get-properties {:angle "angle" :bottom "bottom" :end "end" :height "height" :left "left" :length "length" :normal-angle "normalAngle" :normal-x "normalX" :normal-y "normalY" :perp-slope "perpSlope" :right "right" :slope "slope" :start "start...
null
https://raw.githubusercontent.com/dparis/gen-phzr/e4c7b272e225ac343718dc15fc84f5f0dce68023/out/impl/accessors/line.cljs
clojure
(ns phzr.impl.accessors.line) (def line-get-properties {:angle "angle" :bottom "bottom" :end "end" :height "height" :left "left" :length "length" :normal-angle "normalAngle" :normal-x "normalX" :normal-y "normalY" :perp-slope "perpSlope" :right "right" :slope "slope" :start "start...
096d13108ecaf27cdca905d12ad5bab2d9c4ecb11c889701800680b311ef185d
DKurilo/hackerrank
testgenerator.hs
# LANGUAGE FlexibleInstances , UndecidableInstances , DuplicateRecordFields # module Main where import Control.Monad import qualified Data.List as DL import Data.List.Split import qualified Data.Set as DS import System.Environment import System.IO import qualified Data.Map.Strict as DM import System.Random import D...
null
https://raw.githubusercontent.com/DKurilo/hackerrank/37063170567b397b25a2b7123bc9c1299d34814a/largest-rectangle/testgenerator.hs
haskell
# LANGUAGE FlexibleInstances , UndecidableInstances , DuplicateRecordFields # module Main where import Control.Monad import qualified Data.List as DL import Data.List.Split import qualified Data.Set as DS import System.Environment import System.IO import qualified Data.Map.Strict as DM import System.Random import D...
c060cfbf4f5032f7f1e3bd4c02f17d5ccd5d862d51db667694501c2cdd83a8ce
well-typed/large-records
R080.hs
#if PROFILE_CORESIZE {-# OPTIONS_GHC -ddump-to-file -ddump-ds-preopt -ddump-ds -ddump-simpl #-} #endif #if PROFILE_TIMING {-# OPTIONS_GHC -ddump-to-file -ddump-timings #-} #endif # OPTIONS_GHC -fplugin = TypeLet # module Experiment.HListLetAsCase.Sized.R080 where import TypeLet import Bench.HList import Bench.Types...
null
https://raw.githubusercontent.com/well-typed/large-records/551f265845fbe56346988a6b484dca40ef380609/large-records-benchmarks/bench/typelet/Experiment/HListLetAsCase/Sized/R080.hs
haskell
# OPTIONS_GHC -ddump-to-file -ddump-ds-preopt -ddump-ds -ddump-simpl # # OPTIONS_GHC -ddump-to-file -ddump-timings #
#if PROFILE_CORESIZE #endif #if PROFILE_TIMING #endif # OPTIONS_GHC -fplugin = TypeLet # module Experiment.HListLetAsCase.Sized.R080 where import TypeLet import Bench.HList import Bench.Types import Common.HListOfSize.HL080 hlist :: HList Fields hlist = 79 .. 70 case letAs (MkT 79 :* Nil) of { LetAs (xs79 :...
362ea6c0f550b7e208ffddcd7ec0ca017bf70f45b15070e604b707fbc82c1323
tomoyuki28jp/web4r
user.lisp
(in-package :web4r-tests) (in-suite web4r) (test user* (defpclass test-user1 (user) ((email :format :email :unique t))) (setf *user* (make-instance 'user* :class 'test-user1 :id-label "ID1" :pass-label "Password1" :login-page 'login1 :logou...
null
https://raw.githubusercontent.com/tomoyuki28jp/web4r/c0ebe1f8d29994af20bdece8e9ad8b356b136ae9/tests/user.lisp
lisp
(in-package :web4r-tests) (in-suite web4r) (test user* (defpclass test-user1 (user) ((email :format :email :unique t))) (setf *user* (make-instance 'user* :class 'test-user1 :id-label "ID1" :pass-label "Password1" :login-page 'login1 :logou...
3d12e3bce8efea71156edfe4b899faa438a848863b674acf8d901b91ccdd6987
mput/sicp-solutions
1_31.rkt
#lang racket Solution for exercise 1_31 . (provide product product-reqursive) (define (product term a next b) (define (product-iter next-a acc) (if (> next-a b) acc (product-iter (next next-a) (* (term next-a) acc)))) (product-iter a 1)) (define (product-reqursive term a next b) (if (> a b) ...
null
https://raw.githubusercontent.com/mput/sicp-solutions/fe12ad2b6f17c99978c8fe04b2495005986b8496/solutions/1_31.rkt
racket
#lang racket Solution for exercise 1_31 . (provide product product-reqursive) (define (product term a next b) (define (product-iter next-a acc) (if (> next-a b) acc (product-iter (next next-a) (* (term next-a) acc)))) (product-iter a 1)) (define (product-reqursive term a next b) (if (> a b) ...
56639d8f7d700b1fc867ba0b0a8a357ec9894dfb65f919da46b7b4c0bb75d950
GaloisInc/macaw
Shared.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE RankNTypes #-} module Shared ( withELF , withMemory , findEntryPoint , ElfException(..) ) where import qualified Control.Monad.Catch as C import Data.Binary.Get (ByteOffset) import qualified Data.ByteString as B import qualified Data.ElfEdit...
null
https://raw.githubusercontent.com/GaloisInc/macaw/9d2e1d4b9f163c8947a284c2031000c54a3a9330/macaw-riscv/tests/Shared.hs
haskell
# LANGUAGE RankNTypes # address of the correct entry point to the program PPC entrypoint is a table reference indicated Elf object.
# LANGUAGE FlexibleContexts # module Shared ( withELF , withMemory , findEntryPoint , ElfException(..) ) where import qualified Control.Monad.Catch as C import Data.Binary.Get (ByteOffset) import qualified Data.ByteString as B import qualified Data.ElfEdit as E import Data....
4825d029f2d430cbe8e3bbe5b494dd63066dfa7ebf1d95b76013622cd3a022a9
ocaml/odoc
odoc_loader.ml
open Result module Error = Odoc_model.Error let read_string parent_definition filename text = let location = let pos = Lexing.{ pos_fname = filename; pos_lnum = 1; pos_cnum = 0; pos_bol = 0 } in Location.{ loc_start = pos; loc_end = pos; loc_ghost = true } in Error.catch_errors_and_warnings (fu...
null
https://raw.githubusercontent.com/ocaml/odoc/704ce161a32b6830c824ec4b9cc87b113b9228bd/src/loader/odoc_loader.ml
ocaml
* Catch errors from reading the object files and some internal errors
open Result module Error = Odoc_model.Error let read_string parent_definition filename text = let location = let pos = Lexing.{ pos_fname = filename; pos_lnum = 1; pos_cnum = 0; pos_bol = 0 } in Location.{ loc_start = pos; loc_end = pos; loc_ghost = true } in Error.catch_errors_and_warnings (fu...
ec6617932c01fecf4059e7cb453182b875f7bd59f4003d083d072a092805de82
ekmett/succinct
huTuckerBench.hs
module Main (main) where import Criterion.Main import Data.Bits import qualified Data.Vector.Primitive as P import Data.Word import Succinct.Sequence import System.Random sampleVec :: Int -> [((Int, String), Int)] sampleVec elements = zip [(i, "v" ++ show i) | i <- [0..]] $ take elements $ randomRs (1, 10000) (mkStdG...
null
https://raw.githubusercontent.com/ekmett/succinct/7e884138c2e943f5ca08f56b58b409d08b870ab9/benchmarks/huTuckerBench.hs
haskell
module Main (main) where import Criterion.Main import Data.Bits import qualified Data.Vector.Primitive as P import Data.Word import Succinct.Sequence import System.Random sampleVec :: Int -> [((Int, String), Int)] sampleVec elements = zip [(i, "v" ++ show i) | i <- [0..]] $ take elements $ randomRs (1, 10000) (mkStdG...
51c9e00834dd8dc04fbf88c5e65b0b6cd0ee16a19c8be39449d522f72e0787a3
basho/riak_kv
riak_kv_index_fsm.erl
%% ------------------------------------------------------------------- %% %% riak_index_fsm: Manage secondary index queries. %% 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 thi...
null
https://raw.githubusercontent.com/basho/riak_kv/44849c1bee170804d68df7ad9d244dc89236db7b/src/riak_kv_index_fsm.erl
erlang
------------------------------------------------------------------- riak_index_fsm: Manage secondary index queries. 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 Lice...
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 ...
dce75c3a9de8cf264c26b34e019179d36f3ee370ad044ee59dfb90d830ef8773
hasktorch/hasktorch
NN.hs
module Torch.GraduallyTyped.NN ( module Torch.GraduallyTyped.NN.Class, module Torch.GraduallyTyped.NN.Initialization, module Torch.GraduallyTyped.NN.Linear, module Torch.GraduallyTyped.NN.Transformer, module Torch.GraduallyTyped.NN.Dropout, module Torch.GraduallyTyped.NN.Activation, module Tor...
null
https://raw.githubusercontent.com/hasktorch/hasktorch/c34996b0a401a5b1b98b5774e892fde88adaa079/experimental/gradually-typed/src/Torch/GraduallyTyped/NN.hs
haskell
module Torch.GraduallyTyped.NN ( module Torch.GraduallyTyped.NN.Class, module Torch.GraduallyTyped.NN.Initialization, module Torch.GraduallyTyped.NN.Linear, module Torch.GraduallyTyped.NN.Transformer, module Torch.GraduallyTyped.NN.Dropout, module Torch.GraduallyTyped.NN.Activation, module Tor...
37962604d82b302f1a7ac6085b9a40a1f7bfe317cb9a2ca60bbd31a8a68f84ec
wilkerlucio/pathom
demo_parallel_reader.cljs
(ns com.wsscode.pathom.book.tracing.demo-parallel-reader (:require [clojure.core.async :as async] [com.wsscode.common.async-cljs :refer [go-catch <?]] [com.wsscode.pathom.connect :as pc] [com.wsscode.pathom.core :as p])) (pc/defresolver movie-details [env {:movie/keys [id]}] {::...
null
https://raw.githubusercontent.com/wilkerlucio/pathom/4ec25055d3d156241e9174d68ec438c93c971b9b/docs-src/modules/ROOT/examples/com/wsscode/pathom/book/tracing/demo_parallel_reader.cljs
clojure
(ns com.wsscode.pathom.book.tracing.demo-parallel-reader (:require [clojure.core.async :as async] [com.wsscode.common.async-cljs :refer [go-catch <?]] [com.wsscode.pathom.connect :as pc] [com.wsscode.pathom.core :as p])) (pc/defresolver movie-details [env {:movie/keys [id]}] {::...
799c6b9e3f0e1b32d210d815f030e6b83391f56ae2bff0810465b3834b27243b
ocaml-batteries-team/batteries-included
batISet.mli
Copyright 2003 . distributed with LGPL (** DIET : Discrete Interval Encoding Trees Sets of integers represented as ranges This data structure is efficient for large sets of integers where many adjacent integers are all part of the set. This will have higher overhead for sets with lots of point e...
null
https://raw.githubusercontent.com/ocaml-batteries-team/batteries-included/59f8946a0220fa59775f6205a17080df9ab3c1cf/src/batISet.mli
ocaml
* DIET : Discrete Interval Encoding Trees Sets of integers represented as ranges This data structure is efficient for large sets of integers where many adjacent integers are all part of the set. This will have higher overhead for sets with lots of point elements, but will be much more efficient f...
Copyright 2003 . distributed with LGPL type t = (int * int) BatAvlTree.tree type elt = int val empty : t val is_empty : t -> bool val mem : int -> t -> bool val add : int -> t -> t val add_range : int -> int -> t -> t val singleton : int -> t val remove : int -> t -> t val remove_range : int -> int -> t ...
d78d87f0c6a9d03460835ab7848706923a181468bbdf3d482acfcdcf03c04b8e
ros/roslisp_common
ros-messages.lisp
Copyright ( c ) 2013 , < > ;;; All rights reserved. ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions are met: ;;; ;;; * Redistributions of source code must retain the above copyright ;;; notice, this list of conditions...
null
https://raw.githubusercontent.com/ros/roslisp_common/4db311da26497d84a147f190200e50c7a5b4106e/cl_transforms_stamped/src/ros-messages.lisp
lisp
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in ...
Copyright ( c ) 2013 , < > * Neither the name of the Institute for Artificial Intelligence/ Universitaet Bremen nor the names of its contributors may be used to THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR P...
6f3d2a73d2f6499911f7ebc31c2cb3b2a440c8f5e9b50afdb38311bd64691c34
wwezhuimeng/kazoo
stress_test_app.erl
@author < > 2012 %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicable law or agreed to in writing, software distributed under...
null
https://raw.githubusercontent.com/wwezhuimeng/kazoo/06a15811dbf123ae1601dc7a4ced956a7e04f58a/deps/socketio-0.1.0/stress/src/stress_test_app.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permi...
@author < > 2012 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(stress_test_app). -author('Kirill Trofimov <>'). -behaviour(application). -export([start/2, stop/1]). start(_StartType, _StartArgs) -> ...
6ab7d22f2d2a2413c72426f7720430ad20c6b6f9d3c526f72f5433c3841ad3ba
ryanpbrewster/haskell
P087.hs
module Problems.P087 ( solve ) where import Data.Set (fromList, size) - The smallest number expressible as the sum of a prime square , prime cube , - and prime fourth power is 28 . In fact , there are exactly four numbers below - fifty that can be expressed in such a way : - - 28 = 2 ^ 2 + 2 ^ 3 + 2...
null
https://raw.githubusercontent.com/ryanpbrewster/haskell/6edd0afe234008a48b4871032dedfd143ca6e412/project-euler/src/Problems/P087.hs
haskell
module Problems.P087 ( solve ) where import Data.Set (fromList, size) - The smallest number expressible as the sum of a prime square , prime cube , - and prime fourth power is 28 . In fact , there are exactly four numbers below - fifty that can be expressed in such a way : - - 28 = 2 ^ 2 + 2 ^ 3 + 2...
b3992e1f43ab22782fb32b0811c5ded32401d6cd39ad51834da1fbb9970e6ecd
nuprl/website
frog.rkt
#lang frog/config ;; Called early when Frog launches. Use this to set parameters defined ;; in frog/params. (define/contract (init) (-> any) (current-scheme/host "") (current-uri-prefix "/blog") (current-title "PRL Blog") (current-author "PRL") (current-editor "$EDITOR") (current-editor-command "{editor}...
null
https://raw.githubusercontent.com/nuprl/website/6952d0572094feae39e515e6b421de81af5a5be9/blog/frog.rkt
racket
Called early when Frog launches. Use this to set parameters defined in frog/params. Called once per post and non-post page, on the contents. Here we pass the xexprs through a series of functions. Called from `raco frog --clean`.
#lang frog/config (define/contract (init) (-> any) (current-scheme/host "") (current-uri-prefix "/blog") (current-title "PRL Blog") (current-author "PRL") (current-editor "$EDITOR") (current-editor-command "{editor} {filename}") (current-show-tag-counts? #t) (current-permalink "/{year}/{month}/{day}/...
16c7e13ffc195b722c6f07a3788ee949300e9492d03b2648842391becba50197
rowangithub/DOrder
monniaux.ml
let rec loop i = if i < 1000 then ( loop (i+1)) else (assert (i <= 10000);) let main () = loop 0 let _ = main ()
null
https://raw.githubusercontent.com/rowangithub/DOrder/e0d5efeb8853d2a51cc4796d7db0f8be3185d7df/tests/folprograms/mcmc/monniaux.ml
ocaml
let rec loop i = if i < 1000 then ( loop (i+1)) else (assert (i <= 10000);) let main () = loop 0 let _ = main ()
50ffe2a5bfb1486978fbf8a940e93ed93d7b0227809057e60859dbb81bff213a
Tavistock/lseq-tree
triple.cljc
(ns lseq-tree.triple) (defrecord Triple [path site counter]) (defn sorted "compare two triples prioritizing the path, then site, then counter it either returns -1, 0, or 1" ([xs] (sort-by (juxt :path :site :counter) xs)) ([k xs] (sort-by #((juxt :path :site :counter) (k %)) xs ))) (defn triple ([] (triple ...
null
https://raw.githubusercontent.com/Tavistock/lseq-tree/4b75e43477fdeb421c5bf56f65be71c108378673/src/lseq_tree/triple.cljc
clojure
(ns lseq-tree.triple) (defrecord Triple [path site counter]) (defn sorted "compare two triples prioritizing the path, then site, then counter it either returns -1, 0, or 1" ([xs] (sort-by (juxt :path :site :counter) xs)) ([k xs] (sort-by #((juxt :path :site :counter) (k %)) xs ))) (defn triple ([] (triple ...
8ab60a4dfec592d8a3d100002c59b3d7bedf1d5cbdc88872b66cf09a2318b953
Octachron/codept
findlib.ml
type query = { pkgs: Name.t list; predicates: string list; syntaxes: Name.t list; ppxopts: string list Name.map; ppopt: string list } type result = { libs: string list; ppxs: string list; pp: string option } let pp ppf r = Pp.fp ppf "libs={%a};@; ppxs={%a};@; pp = %a " Pp.(lis...
null
https://raw.githubusercontent.com/Octachron/codept/66fb4b2caac8e9757eefb3f4e605b392a0fa457f/core/findlib.ml
ocaml
type query = { pkgs: Name.t list; predicates: string list; syntaxes: Name.t list; ppxopts: string list Name.map; ppopt: string list } type result = { libs: string list; ppxs: string list; pp: string option } let pp ppf r = Pp.fp ppf "libs={%a};@; ppxs={%a};@; pp = %a " Pp.(lis...
20463b103cad858afef2e1fa02394e7c12f99075a225ba66def3b5f603e5cbed
dinosaure/contruno
unikernel.ml
open Rresult open Lwt.Infix let ( <.> ) f g = fun x -> f (g x) module Make (Random : Mirage_random.S) (Time : Mirage_time.S) (Mclock : Mirage_clock.MCLOCK) (Pclock : Mirage_clock.PCLOCK) (Stack : Tcpip.Stack.V4V6) (ALPN : Http_mirage_client.S) (_ : sig end) = struct include Contruno.Make (Random) (Tim...
null
https://raw.githubusercontent.com/dinosaure/contruno/7e6ce1fbe23ddc47911690277eec6c0ef9c09627/unikernel/unikernel.ml
ocaml
XXX(dinosaure): [add_hook] fills a stream with what it's upgraded from the Git * repository. If the user adds a new certificate, it will appear into the stream. * So we must consume it and check if a new domain appeared according to our [hashset]. * * Then, a job waiting a new thread to renegociate a certi...
open Rresult open Lwt.Infix let ( <.> ) f g = fun x -> f (g x) module Make (Random : Mirage_random.S) (Time : Mirage_time.S) (Mclock : Mirage_clock.MCLOCK) (Pclock : Mirage_clock.PCLOCK) (Stack : Tcpip.Stack.V4V6) (ALPN : Http_mirage_client.S) (_ : sig end) = struct include Contruno.Make (Random) (Tim...
481b62b8aa04485a8f9e3274971da89530b724e087376bc218754999875d621c
caribou/caribou-core
validation.clj
(ns caribou.validation (:require [caribou.field :as field])) (defn recursive-merge [a b] (merge-with recursive-merge a b)) (defn beams [slug opts] "verify that the given options make sense for the model given by the slug" (let [model (field/models (keyword slug))] (when-not model (throw (new Exception...
null
https://raw.githubusercontent.com/caribou/caribou-core/6ebd9db4e14cddb1d6b4e152e771e016fa9c55f6/src/caribou/validation.clj
clojure
[this opts models] (for-associated-id this :model-id opts models))
(ns caribou.validation (:require [caribou.field :as field])) (defn recursive-merge [a b] (merge-with recursive-merge a b)) (defn beams [slug opts] "verify that the given options make sense for the model given by the slug" (let [model (field/models (keyword slug))] (when-not model (throw (new Exception...
85282efb9fd17dca14debaa5971aa25f99f899e1dc372148c7ff628423fa14ee
facebook/infer
Utils.ml
* Copyright ( c ) 2009 - 2013 , Monoidics ltd . * Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) 2009-2013, Monoidics ltd. * Copyright (c) Facebook, In...
null
https://raw.githubusercontent.com/facebook/infer/6386e1383f0a95e369f58ff07626f367fcbaad5e/infer/src/base/Utils.ml
ocaml
* recursively find all files in [path] with names ending in [extension] * read a source file and return a list of lines, or None in case of error * type for files used for printing * name of the file * output channel * formatter for printing * create an outfile for the command line * close an outfile path/. --...
* Copyright ( c ) 2009 - 2013 , Monoidics ltd . * Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) 2009-2013, Monoidics ltd. * Copyright (c) Facebook, In...
999c615c619c917036a3f7a1c57b9df165134aada5324d4568c7432b9de446db
opencog/opencog
demand.scm
; ; demand.scm ; Methods to define and work with demands. ; Copyright ( C ) 2015 - 2016 OpenCog Foundation Copyright ( C ) 2017 MindCloud ; ; Design Notes: Demands are associated with demand values . There are two different , ; conflicting ways in which this is done in the code below: in some ; cases, the value i...
null
https://raw.githubusercontent.com/opencog/opencog/53f2c2c8e26160e3321b399250afb0e3dbc64d4c/opencog/openpsi/demand.scm
scheme
demand.scm Methods to define and work with demands. Design Notes: conflicting ways in which this is done in the code below: in some cases, the value is stored as the mean of the TV; in other cases, the to store this info is just asking for hard-to-find bugs to pop up. The long-term solution is probably to ass...
Copyright ( C ) 2015 - 2016 OpenCog Foundation Copyright ( C ) 2017 MindCloud Demands are associated with demand values . There are two different , value is a NumberNode attached to the ConceptNode . Having two places (use-modules (opencog) (opencog exec) (opencog ure)) (load "utilities.scm") (define psi-de...
a97819570687eaba1103537095aaacd476fb5ddff3e287a73c5475e49b84feb4
bragful/ephp
ephp_lib_test.erl
-module(ephp_lib_test). -author(''). -compile([warnings_as_errors]). -include("ephp.hrl"). -behaviour(ephp_lib). -export([init_func/0, init_config/0, init_const/0]). -spec init_config() -> ephp_func:php_config_results(). init_config() -> [{<<"test">>, <<"true">>}]. -spec init_const() -> ephp_func:php_const_r...
null
https://raw.githubusercontent.com/bragful/ephp/119f1760a5cdf4c8b6a01739e852c7183af7acff/test/ephp_lib_test.erl
erlang
-module(ephp_lib_test). -author(''). -compile([warnings_as_errors]). -include("ephp.hrl"). -behaviour(ephp_lib). -export([init_func/0, init_config/0, init_const/0]). -spec init_config() -> ephp_func:php_config_results(). init_config() -> [{<<"test">>, <<"true">>}]. -spec init_const() -> ephp_func:php_const_r...
bdf70924c76b9878cca1bb256b553cc7754501016ce16be621e130103960d085
pgujjula/hilbert
Modular.hs
# LANGUAGE ScopedTypeVariables # # LANGUAGE TupleSections # | Module : Math . . Modular -- Description : Functions to perform modular arithmetic. Copyright : ( c ) , 2016 - 2020 -- License : BSD-3-Clause -- Maintainer : -- Stability : experimental -- -- Functions to perform modular ...
null
https://raw.githubusercontent.com/pgujjula/hilbert/ea64f2d06ceeb96da11fe6f2b868cef1cd817e28/src/Math/NumberTheory/Modular.hs
haskell
Description : Functions to perform modular arithmetic. License : BSD-3-Clause Maintainer : Stability : experimental Functions to perform modular arithmetic. >>> egcd 4 0 >>> egcd 0 0 (0, (0, 0)) Here, we are guaranteed n > m > 0 | Solve a system of modular congruences. The input lis...
# LANGUAGE ScopedTypeVariables # # LANGUAGE TupleSections # | Module : Math . . Modular Copyright : ( c ) , 2016 - 2020 module Math.NumberTheory.Modular ( egcd, chineseRemainder, chineseRemainderF, ) where import Control.Arrow ((>>>)) import Control.Monad (foldM, (>=>)) import Data.Folda...
d713e81caa61125a274cdce4ac01b58b38b05375348c93ead8b82dfd5e35f750
futurice/haskell-mega-repo
Eval.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # module PlanMill.Eval (evalPlanMill) where import PlanMill.Internal.Prelude import Control.Monad.Http (MonadHttp (..), httpLbs) import Data.Aeson.Compat (eitherDecode) ...
null
https://raw.githubusercontent.com/futurice/haskell-mega-repo/8cb82bb0656c4a7e62a88b19f17ddbec1b037f4f/planmill-client/src/PlanMill/Eval.hs
haskell
# LANGUAGE GADTs # # LANGUAGE OverloadedStrings # Qualified imports PlanMill import ----------------------------------------------------------------------------- Counter ----------------------------------------------------------------------------- ---------------------------------------------------------...
# LANGUAGE FlexibleContexts # # LANGUAGE RecordWildCards # module PlanMill.Eval (evalPlanMill) where import PlanMill.Internal.Prelude import Control.Monad.Http (MonadHttp (..), httpLbs) import Data.Aeson.Compat (eitherDecode) import Data.IORef (IORef, atomicModifyIORef', newIORef...
fd65d418d998aeffd90e64b7565ab247eba18e8cd1a9b68104733d916b4f66cd
haskell-game/tiny-games-hs
Import.hs
module Import ( module Graphics.Gloss.Interface.Pure.Game , module Data.Bits , module Control.Applicative , module Control.Monad , module Data.List , module Data.Bool , module GHC.Float ) where import Graphics.Gloss.Interface.Pure.Game hiding (shift, rotate) import Data.Bits import Control.Applicative ...
null
https://raw.githubusercontent.com/haskell-game/tiny-games-hs/9dcd6f220d265966bf1f1ca259b5aa956a4cc8a6/hackage/vaders/Import.hs
haskell
module Import ( module Graphics.Gloss.Interface.Pure.Game , module Data.Bits , module Control.Applicative , module Control.Monad , module Data.List , module Data.Bool , module GHC.Float ) where import Graphics.Gloss.Interface.Pure.Game hiding (shift, rotate) import Data.Bits import Control.Applicative ...
d8e1b8af9bc047a6f753cec733cf36eb1c7c2b765e39c4392b3a06bd9c7e8509
xvw/ocamlectron
Signal.mli
* Linux supports both [ POSIX ] reliable signals ( hereinafter " standard signals " ) and POSIX real - time signals . You can find more information on this page : - { { : #process_signal_events } NodeJS : documentation for [ Signals ] } - { { : -pages/man7/signal.7.html } Linux Programmer...
null
https://raw.githubusercontent.com/xvw/ocamlectron/3e0cb9575975e69ab34cb7e0e3549d31c07141c2/lib/electron_api/Signal.mli
ocaml
* POSIX Signals * Converts signal to string
* Linux supports both [ POSIX ] reliable signals ( hereinafter " standard signals " ) and POSIX real - time signals . You can find more information on this page : - { { : #process_signal_events } NodeJS : documentation for [ Signals ] } - { { : -pages/man7/signal.7.html } Linux Programmer...
b99537b1b649bb2ad278c3dcab2d420836b0f374f02dc2430ba8734621402200
softwarelanguageslab/maf
R5RS_icp_icp_3_leval-3.scm
; Changes: * removed : 2 * added : 3 * swaps : 2 * negated predicates : 2 * swapped branches : 1 * calls to i d fun : 11 (letrec ((true #t) (false #f) (delay-it (lambda (exp env) (list 'thunk exp env))) (thunk? (lambda (obj) (tagged-list? ob...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_icp_icp_3_leval-3.scm
scheme
Changes:
* removed : 2 * added : 3 * swaps : 2 * negated predicates : 2 * swapped branches : 1 * calls to i d fun : 11 (letrec ((true #t) (false #f) (delay-it (lambda (exp env) (list 'thunk exp env))) (thunk? (lambda (obj) (tagged-list? obj 'thunk)))...
a9f50e66858d2eb03ac5ca21077b37dabb06e1c594e109dd965ef6333a6b9719
jeromesimeon/Galax
xquery_core_ast_util.mli
(***********************************************************************) (* *) (* GALAX *) (* XQuery Engine *) (* ...
null
https://raw.githubusercontent.com/jeromesimeon/Galax/bc565acf782c140291911d08c1c784c9ac09b432/ast/xquery_core_ast_util.mli
ocaml
********************************************************************* GALAX XQuery Engine ...
Copyright 2001 - 2007 . $ I d : , v 1.30 2007/10/16 01:25:34 Module : Xquery_core_ast_util Description : This module implements some useful operations the XQuery core AST . Description: This module implements some useful operations...
a274b84014847da71a22caea4e04a24d3ed2420d94c701b8efdb116ddaf9f6d3
chebert/schemeish
bundle.lisp
(in-package #:schemeish.backend) (install-syntax!) (defvar *get-bundle-type-predicate* (gensym)) (defvar *get-bundle-predicate-symbol* (gensym)) (define (make-bundle-predicate name) "Returns a predicate which, only evaluates to true when given a bundle with this type-predicate" (define (dispatch arg) (cond ...
null
https://raw.githubusercontent.com/chebert/schemeish/93ea08b17e6d8876f086e1a34a21b538174b2c39/src/bundle.lisp
lisp
TODO: switch to a case statement => '(:get-x :get-y :set-x! :set-y!))" TODO: switch to a case statement => (NEW-X)
(in-package #:schemeish.backend) (install-syntax!) (defvar *get-bundle-type-predicate* (gensym)) (defvar *get-bundle-predicate-symbol* (gensym)) (define (make-bundle-predicate name) "Returns a predicate which, only evaluates to true when given a bundle with this type-predicate" (define (dispatch arg) (cond ...
c44a773feca79d82211be8db5b64b28efcd4321db3df804030c898f840be82ca
reanimate/reanimate
Magick.hs
module Reanimate.Driver.Magick ( magickCmd ) where import System.IO.Unsafe (unsafePerformIO) import System.Directory (findExecutable) # NOINLINE magickCmd # |The name of the ImageMagick command . On Unix - like operating systems , the -- command \'convert\' does not conflict with the name of other commands. On ...
null
https://raw.githubusercontent.com/reanimate/reanimate/5ea023980ff7f488934d40593cc5069f5fd038b0/src/Reanimate/Driver/Magick.hs
haskell
command \'convert\' does not conflict with the name of other commands. On should be present, and is preferred over \'convert\'. If it is not present, \'convert\' is assumed to be the relevant command. found once, it will always be present.
module Reanimate.Driver.Magick ( magickCmd ) where import System.IO.Unsafe (unsafePerformIO) import System.Directory (findExecutable) # NOINLINE magickCmd # |The name of the ImageMagick command . On Unix - like operating systems , the Windows , ImageMagick version 7 is readily available , the command \'magick...
e26d611429373cc8d1e1fa074f5a6b576170426939b0ac18110b02fe9736f053
Lambda-X/cljs-repl-web
brepl.clj
(require '[cljs.build.api :as b] '[cljs.repl :as repl] '[cljs.repl.browser :as browser]) (b/build "src" {:main 'cljs-browser-repl.core :output-to "target/cljs-browser-repl.js" :output-dir "target" :verbose true}) (repl/repl (browser/repl-env) :output-dir "target")
null
https://raw.githubusercontent.com/Lambda-X/cljs-repl-web/0dabe8ff18d8c0f4ae6c9f052dc23eb1f5ad262c/scripts/brepl.clj
clojure
(require '[cljs.build.api :as b] '[cljs.repl :as repl] '[cljs.repl.browser :as browser]) (b/build "src" {:main 'cljs-browser-repl.core :output-to "target/cljs-browser-repl.js" :output-dir "target" :verbose true}) (repl/repl (browser/repl-env) :output-dir "target")
35446d0b4a39e888fd3f48cea29f7d353faa7944ddeadc0f2e21e84c2e0baf16
webnf/webnf
datomic.clj
(ns webnf.datomic "# Datomic connection helpers This namespace contains schema helpers, connection and transaction routines" (:import datomic.db.Db (java.util.concurrent BlockingQueue TimeUnit)) (:require [clojure.core.async :as async :refer [go go-loop <! <!! >! >!! close! chan mult tap untap alt! ...
null
https://raw.githubusercontent.com/webnf/webnf/6a2ccaa755e6e40528eb13a5c36bae16ba4947e7/datomic/src/webnf/datomic.clj
clojure
- `tx-executor` executes and waits on transactions, then putting the result into returned channel. - `accumulate-tx-results` is an example implementation of what to do with result channel with reasonable default behavior Loop to transfer from report-chan to the out mult, + handling taps and untaps
(ns webnf.datomic "# Datomic connection helpers This namespace contains schema helpers, connection and transaction routines" (:import datomic.db.Db (java.util.concurrent BlockingQueue TimeUnit)) (:require [clojure.core.async :as async :refer [go go-loop <! <!! >! >!! close! chan mult tap untap alt! ...
75d0b2b5a65107e9b195d83935aac9f1e8cddab08eacffa11a94ae4c9834235e
CodyReichert/qi
asdf.lisp
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*- ;;; ;;; asdf.lisp --- ASDF components for cffi-grovel. ;;; Copyright ( C ) 2005 - 2006 , < > Copyright ( C ) 2005 - 2006 , < > Copyright ( C ) 2007 , < > Copyright ( C ) 2007 , ;;; ;;; Permission is hereby granted, free of charge, to any person ;;; ob...
null
https://raw.githubusercontent.com/CodyReichert/qi/9cf6d31f40e19f4a7f60891ef7c8c0381ccac66f/dependencies/cffi-master/grovel/asdf.lisp
lisp
-*- Mode: lisp; indent-tabs-mode: nil -*- asdf.lisp --- ASDF components for cffi-grovel. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribu...
Copyright ( C ) 2005 - 2006 , < > Copyright ( C ) 2005 - 2006 , < > Copyright ( C ) 2007 , < > Copyright ( C ) 2007 , files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial portions of...
423700c2395901b56c7c5560b3c84086a7a7e2661df739b2addf16fb28c17f30
braidchat/braid
conf.clj
(ns braid.test.fixtures.conf (:require [braid.core.modules :as modules] [braid.base.conf :as conf] [mount.core :as mount])) (defn start-config [t] (modules/init! modules/default) (-> (mount/only #{#'conf/config}) (mount/with-args {:port 0}) (mount/start)) (t) (mount/stop))
null
https://raw.githubusercontent.com/braidchat/braid/2e44eb6e77f1d203115f9b9c529bd865fa3d7302/test/braid/test/fixtures/conf.clj
clojure
(ns braid.test.fixtures.conf (:require [braid.core.modules :as modules] [braid.base.conf :as conf] [mount.core :as mount])) (defn start-config [t] (modules/init! modules/default) (-> (mount/only #{#'conf/config}) (mount/with-args {:port 0}) (mount/start)) (t) (mount/stop))
1b7dcc1de743b938ce5c05c394e9dcdd6d00435faed4997a466dc6bee8e3b664
ghcjs/jsaddle-dom
Document.hs
# LANGUAGE PatternSynonyms # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.Document (getAnimations, getAnimations_, newDocument, getElementsByTagName, getElementsByTagName_, getEleme...
null
https://raw.githubusercontent.com/ghcjs/jsaddle-dom/5f5094277d4b11f3dc3e2df6bb437b75712d268f/src/JSDOM/Generated/Document.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures # | <-US/docs/Web/API/Document.getElementsByTagName Mozilla Document.getElementsByTagName documentation> | <-US/docs/Web/API/Document.getElementsByTagName Mozilla Document.getElementsByTagName documentation> | <-US/docs/Web/...
# LANGUAGE PatternSynonyms # # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.Document (getAnimations, getAnimations_, newDocument, getElementsByTagName, getElementsByTagName_, getElementsByTagNameNS, getElementsByTagNameNS_, getElementsByClassName, getElementsByClass...
14125d3a4f83b186015ae2a647eb4d2f235487421400efbee3d4f2e8aa3a0352
kaos/ecapnp
ecapnp_val.erl
%% Copyright 2013 , < > %% 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...
null
https://raw.githubusercontent.com/kaos/ecapnp/f351c07730ba134b41b137dd6a6b93069a0908fc/src/ecapnp_val.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 lang...
Copyright 2013 , < > Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , 2013 , @author < > -module(ecapnp_val). -author("Andreas Stenius <>"). -export([set/2, set/3, get/2, get/3, size/1]). -include("ecap...
c64b4212b8dc5bb84bbf809f276653247a48905b526ea992aeb9493a7d1160ea
dfithian/prune-juice
DependencySpec.hs
module Data.Prune.DependencySpec where import Prelude import Control.Monad.Logger (runNoLoggingT) import Data.FileEmbed (embedFile) import Data.Text (splitOn) import Data.Text.Encoding (decodeUtf8) import System.FilePath.TH (fileRelativeToAbsolute, fileRelativeToAbsoluteStr) import Test.Hspec (Spec, describe, it, sh...
null
https://raw.githubusercontent.com/dfithian/prune-juice/8a12636b60f5e60c71adc81fb066c7ab9fa82887/test/Data/Prune/DependencySpec.hs
haskell
the module being tested this test doesn't succeed under `stack test` presumably because stack is using a different version of cabal
module Data.Prune.DependencySpec where import Prelude import Control.Monad.Logger (runNoLoggingT) import Data.FileEmbed (embedFile) import Data.Text (splitOn) import Data.Text.Encoding (decodeUtf8) import System.FilePath.TH (fileRelativeToAbsolute, fileRelativeToAbsoluteStr) import Test.Hspec (Spec, describe, it, sh...
1272d3f2b676d121dd1c53a2efa207455c2b609fd03f110bfa3429c888ce11e4
codecov/example-clojure
project.clj
(defproject codecov-clojure "0.1.0" :description "codecov.io, example Clojure project" :url "-clojure" :plugins [[lein-cloverage "1.0.7-SNAPSHOT"]] :dependencies [[org.clojure/clojure "1.7.0"]])
null
https://raw.githubusercontent.com/codecov/example-clojure/d1f53656c48f852724fde219e4d2a2454a0e97f5/project.clj
clojure
(defproject codecov-clojure "0.1.0" :description "codecov.io, example Clojure project" :url "-clojure" :plugins [[lein-cloverage "1.0.7-SNAPSHOT"]] :dependencies [[org.clojure/clojure "1.7.0"]])
73287cbf75b08ac831f87b0cc577f3f940e11f26fdba992530bd9b5389347329
expipiplus1/vulkan
HLSL.hs
module Vulkan.Utils.ShaderQQ.HLSL ( hlsl , insertLineDirective ) where import Language.Haskell.TH import Language.Haskell.TH.Quote import Vulkan.Utils.Internal ( badQQ ) import Vulkan.Utils.ShaderQQ.Interpolate | ' hlsl ' is a QuasiQuoter which produces...
null
https://raw.githubusercontent.com/expipiplus1/vulkan/70d8cca16893f8de76c0eb89e79e73f5a455db76/utils/src/Vulkan/Utils/ShaderQQ/HLSL.hs
haskell
directive inserted so that error locations point to the correct location in - They can optionally be surrounded with braces like @${foo}@ - Interpolated variables are converted to strings with 'show' An explicit example (@<interactive>@ is from doctest): Note that line number will be thrown off if any of the i...
module Vulkan.Utils.ShaderQQ.HLSL ( hlsl , insertLineDirective ) where import Language.Haskell.TH import Language.Haskell.TH.Quote import Vulkan.Utils.Internal ( badQQ ) import Vulkan.Utils.ShaderQQ.Interpolate | ' hlsl ' is a QuasiQuoter which produces...
d96a76fc8ef3c7d530311b378ba5498e55e867c8d21192cb5e4edfd44fe38864
hercules-ci/legacy-old-hercules
Redirect.hs
{-# LANGUAGE OverloadedStrings #-} module Servant.Redirect ( redirect , redirectBS ) where import Control.Monad.Except import Data.ByteString import Network.URI import Network.URI.Extra import Servant.Server import Hercules.ServerEnv redirectBS :: ByteString -> App a redirectBS uri = throwError err303 { errHe...
null
https://raw.githubusercontent.com/hercules-ci/legacy-old-hercules/db10eb399a64355cdcbba0e18beb1514588772e9/backend/src/Servant/Redirect.hs
haskell
# LANGUAGE OverloadedStrings #
module Servant.Redirect ( redirect , redirectBS ) where import Control.Monad.Except import Data.ByteString import Network.URI import Network.URI.Extra import Servant.Server import Hercules.ServerEnv redirectBS :: ByteString -> App a redirectBS uri = throwError err303 { errHeaders = [("Location", uri)] } redi...
f34b959890fdf126d4ef69b09f17a7bab89404706ab83ff5f4732b69ebdfda20
daigotanaka/mern-cljs
runner.cljs
(ns mern-utils (:require [doo.runner :refer-macros [doo-tests]] [mern-utils.lib-test] [mern-utils.vogels-test])) ;(doo-tests 'mern-utils.lib-test) (doo-tests 'mern-utils.vogels-test)
null
https://raw.githubusercontent.com/daigotanaka/mern-cljs/a9dedbb3b622f96dd0b06832733b4fd961e6437d/mern_utils/test/mern_utils/test/runner.cljs
clojure
(doo-tests 'mern-utils.lib-test)
(ns mern-utils (:require [doo.runner :refer-macros [doo-tests]] [mern-utils.lib-test] [mern-utils.vogels-test])) (doo-tests 'mern-utils.vogels-test)
f1945e2e9084dd8e8718bce19db9a54c05ca9d06efa1384cb93b7fcfa2459495
gedge-platform/gedge-platform
internal_user.erl
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %% Copyright ( c ) 2020 VMware , Inc. or its affiliates . All rights reserved . %% -module(internal_user). -include_lib("rabbit_common/inc...
null
https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/rabbit/src/internal_user.erl
erlang
password hashing implementation module, typically rabbit_password_hashing_* but can come from a plugin
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. Copyright ( c ) 2020 VMware , Inc. or its affiliates . All rights reserved . -module(internal_user). -include_lib("rabbit_common/include/r...
49e17b899420cd7899123f76bc9615b7f3ccc71a8913dfbaabbb91b72404046b
fragnix/fragnix
System.Posix.DynamicLinker.ByteString.hs
{-# LANGUAGE Haskell2010 #-} {-# LINE 1 "dist/dist-sandbox-261cd265/build/System/Posix/DynamicLinker/ByteString.hs" #-} # LINE 1 " System / Posix / DynamicLinker / ByteString.hsc " # # LINE 2 " System / Posix / DynamicLinker / ByteString.hsc " # {-# LANGUAGE Safe #-} # LINE 6 " System / Posix / DynamicLinker / ByteSt...
null
https://raw.githubusercontent.com/fragnix/fragnix/b9969e9c6366e2917a782f3ac4e77cce0835448b/tests/packages/application/System.Posix.DynamicLinker.ByteString.hs
haskell
# LANGUAGE Haskell2010 # # LINE 1 "dist/dist-sandbox-261cd265/build/System/Posix/DynamicLinker/ByteString.hs" # # LANGUAGE Safe # --------------------------------------------------------------------------- | License : BSD-style (see the file libraries/base/LICENSE) Stability : provisional Portability : no...
# LINE 1 " System / Posix / DynamicLinker / ByteString.hsc " # # LINE 2 " System / Posix / DynamicLinker / ByteString.hsc " # # LINE 6 " System / Posix / DynamicLinker / ByteString.hsc " # Module : System . . . ByteString Copyright : ( c ) < > 2003 Maintainer : Dynamic linker support t...
abddd10cc73a777d8bcb77ba0835b3192d1b29c409c296ca36df79fd4d5b3401
eihli/phonetics
phonetics_test.clj
(ns com.owoga.phonetics-test (:require [clojure.test :refer :all] [com.owoga.phonetics :refer :all])) (deftest phonetics-test (testing "word to phones" (is (= [["HH" "AH0" "L" "OW1"] ["HH" "EH0" "L" "OW1"]] (get-phones "hello")))) (testing "phones to word" (is (= ["hell...
null
https://raw.githubusercontent.com/eihli/phonetics/e309f83630d66cd6dbfb5f816efd2a90c0dfdcda/test/com/owoga/phonetics_test.clj
clojure
(ns com.owoga.phonetics-test (:require [clojure.test :refer :all] [com.owoga.phonetics :refer :all])) (deftest phonetics-test (testing "word to phones" (is (= [["HH" "AH0" "L" "OW1"] ["HH" "EH0" "L" "OW1"]] (get-phones "hello")))) (testing "phones to word" (is (= ["hell...
759665481ba325627e23fa57731ee3a8ca3b7c8c19adae06f2b2466c3a31f894
vmchale/apple
B.hs
module Asm.X86.B ( bb ) where import Asm.X86 import Data.List.Split (split, whenElt) bb :: [X86 reg freg a] -> [[X86 reg freg a]] bb = split (whenElt cf) where cf J{} = True; cf Jl{} = True; cf Jg{} = True; cf Jge{} = True; cf Jle{} = True; cf Jne{} = True; cf Label{} = True; cf Call{} = True;...
null
https://raw.githubusercontent.com/vmchale/apple/efa061fe1e3db632ccf6a1fa0661732f60ac196f/src/Asm/X86/B.hs
haskell
module Asm.X86.B ( bb ) where import Asm.X86 import Data.List.Split (split, whenElt) bb :: [X86 reg freg a] -> [[X86 reg freg a]] bb = split (whenElt cf) where cf J{} = True; cf Jl{} = True; cf Jg{} = True; cf Jge{} = True; cf Jle{} = True; cf Jne{} = True; cf Label{} = True; cf Call{} = True;...
e21e845a9fbbcdec124650e20cc0fbb4ad42def5e9295544b49acdbb1980af88
appleshan/cl-http
sysdcl.lisp
-*- Mode : lisp ; Syntax : ansi - common - lisp ; Package : USER ; Base : 10 -*- See copyright notice in CLIM - SYS;MINIPROC file . (in-package "USER") (defvar *aclpc-directory* (make-pathname :host (pathname-host *load-pathname*) :device (pathname-device *load-pathname*) :directory (pathname-dire...
null
https://raw.githubusercontent.com/appleshan/cl-http/a7ec6bf51e260e9bb69d8e180a103daf49aa0ac2/acl/obc/aclpc/sysdcl.lisp
lisp
Syntax : ansi - common - lisp ; Package : USER ; Base : 10 -*- MINIPROC file .
(in-package "USER") (defvar *aclpc-directory* (make-pathname :host (pathname-host *load-pathname*) :device (pathname-device *load-pathname*) :directory (pathname-directory *load-pathname*) :name nil :type nil :version nil)) (setf (logical-pathname-translations "aclpc") `(("**;*.*.*" ,*aclp...
5a20d0c0ef4ba4a1479d5a6d50ff5f95ab978f26b57b5d48eaf9c03c2dc2849d
scrintal/heroicons-reagent
calendar.cljs
(ns com.scrintal.heroicons.mini.calendar) (defn render [] [:svg {:xmlns "" :viewBox "0 0 20 20" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M5.75 2a.75.75 0 01.75.75V4h7V2.75a.75.75 0 011.5 0V4h.25A2.75 2.75 0 0118 6.75v8....
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/mini/calendar.cljs
clojure
(ns com.scrintal.heroicons.mini.calendar) (defn render [] [:svg {:xmlns "" :viewBox "0 0 20 20" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M5.75 2a.75.75 0 01.75.75V4h7V2.75a.75.75 0 011.5 0V4h.25A2.75 2.75 0 0118 6.75v8....
22f4e236fd14b2ce34b884b43b67018f3bf300f3e8f67d6cf9c0aafe801d9950
EFanZh/EOPL-Exercises
exercise-6.10-test.rkt
#lang racket/base (require rackunit) (require "../solutions/exercise-6.10.rkt") (define (list-sum-2 loi) (list-sum/k loi 0)) (for ([f (list list-sum list-sum-2)]) (check-eq? (f '()) 0) (check-eq? (f '(0)) 0) (check-eq? (f '(1)) 1) (check-eq? (f '(2)) 2) (check-eq? (f '(0 1)) 1) (check-eq? (f '(0 1 2)) ...
null
https://raw.githubusercontent.com/EFanZh/EOPL-Exercises/11667f1e84a1a3e300c2182630b56db3e3d9246a/tests/exercise-6.10-test.rkt
racket
#lang racket/base (require rackunit) (require "../solutions/exercise-6.10.rkt") (define (list-sum-2 loi) (list-sum/k loi 0)) (for ([f (list list-sum list-sum-2)]) (check-eq? (f '()) 0) (check-eq? (f '(0)) 0) (check-eq? (f '(1)) 1) (check-eq? (f '(2)) 2) (check-eq? (f '(0 1)) 1) (check-eq? (f '(0 1 2)) ...
d3e940f911c866b045b2b5d2310d444482aa1340497b0a4ee26dc5f6ecd301c6
mkoppmann/eselsohr
Repo.hs
module Lib.Domain.Repo ( RepositoryCommand (..) , RepositoryCommandSync (..) ) where import Lib.Domain.Collection (Collection) import Lib.Domain.Id (Id) data RepositoryCommand m = RepositoryCommand { collectionId :: !(Id Collection) , action :: !(m ()) } data RepositoryCommandSync m = Reposit...
null
https://raw.githubusercontent.com/mkoppmann/eselsohr/3bb8609199c1dfda94935e6dde0c46fc429de84e/src/Lib/Domain/Repo.hs
haskell
module Lib.Domain.Repo ( RepositoryCommand (..) , RepositoryCommandSync (..) ) where import Lib.Domain.Collection (Collection) import Lib.Domain.Id (Id) data RepositoryCommand m = RepositoryCommand { collectionId :: !(Id Collection) , action :: !(m ()) } data RepositoryCommandSync m = Reposit...
5d6096b49bdd50e34bf047db4f19b15bb011b8d5e02eb9eba142a56d6633089a
robert-strandh/CLIMatis
editor.lisp
(defpackage #:test-editor (:use #:common-lisp)) (in-package #:test-editor) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; View (defclass editor-view () ((%cursor :initform (cons 0 0) :accessor cursor) (%buffer :initform (vector (vector)) :accessor buffer))) ;;;;;;;;;;;;;;;;;;;...
null
https://raw.githubusercontent.com/robert-strandh/CLIMatis/4949ddcc46d3f81596f956d12f64035e04589b29/Test/editor.lisp
lisp
View Commands We have a single character. We found a perfect match. GUI This one should really be a scroller. The zone containing the text Put the words and spaces of a line into a hbox. Make some space between lines
(defpackage #:test-editor (:use #:common-lisp)) (in-package #:test-editor) (defclass editor-view () ((%cursor :initform (cons 0 0) :accessor cursor) (%buffer :initform (vector (vector)) :accessor buffer))) (defun editor-error (format-string &rest arguments) (apply #'format *error-output* format-string arg...
745744e8c0fb9e6ebfbc0d8297db0d83e538cc9cdf39ca4de52ab953fc588ad4
witan-org/witan
demon.mli
(*************************************************************************) This file is part of Witan . (* *) Copyright ( C ) 2017 CEA ( Commi...
null
https://raw.githubusercontent.com/witan-org/witan/d26f9f810fc34bf44daccb91f71ad3258eb62037/src/core/demon.mli
ocaml
*********************************************************************** alternatives) Automatique) ...
This file is part of Witan . Copyright ( C ) 2017 CEA ( Commissariat à l'énergie atomique et aux énergies ( Institut National de Recherche en Informatique et en CNRS ( Centre nation...
db578c045eb55d55dfa91abce39d56bcddc72fb057a7b4223711d56631c5791e
isovector/circuitry
Numeric.hs
module Circuitry.Numeric where import Circuitry.Category (first') import Clash.Sized.Vector (Vec(..)) import qualified Clash.Sized.Vector as V import qualified Data.Bits as B import Data.Word import Circuitry.Embed import Circuitry.Word class Numeric a where zero :: a defa...
null
https://raw.githubusercontent.com/isovector/circuitry/81f018a67937de9348eda9f2e95236e75c90ea85/src/Circuitry/Numeric.hs
haskell
module Circuitry.Numeric where import Circuitry.Category (first') import Clash.Sized.Vector (Vec(..)) import qualified Clash.Sized.Vector as V import qualified Data.Bits as B import Data.Word import Circuitry.Embed import Circuitry.Word class Numeric a where zero :: a defa...
ef776fa12cddeafcd7ac89e6357c73e634c7f109f6188e0d0b2c27adfcc7e0c8
bendoerr/real-world-haskell
RoundToEven.hs
file : / RoundToEven.hs isOdd n = mod n 2 == 1
null
https://raw.githubusercontent.com/bendoerr/real-world-haskell/fa43aa59e42a162f5d2d5655b274b964ebeb8f0a/ch02/RoundToEven.hs
haskell
file : / RoundToEven.hs isOdd n = mod n 2 == 1
e5e28478effe99a866e855a2f3ce92fd3ec6ba7c240deccf58cb9dbfb38719a5
earl-ducaine/cl-garnet
popup-menu-button.lisp
-*- Mode : LISP ; Syntax : Common - Lisp ; Package : GARNET - GADGETS ; Base : 10 -*- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; The Garnet User Interface Development Environment . ; ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; This code ...
null
https://raw.githubusercontent.com/earl-ducaine/cl-garnet/f0095848513ba69c370ed1dc51ee01f0bb4dd108/src/gadgets/popup-menu-button.lisp
lisp
Syntax : Common - Lisp ; Package : GARNET - GADGETS ; Base : 10 -*- ; ; This code was written as part of the Garnet project at ;;; ; ; ; ; please contact to be put on the mailing list. ;;; Popup menu from a button Slots: (like those of menu and text-button) :left - default 0 :top - def...
Another useful bitmap is GG : DOWNARROW - BITMAP : below , : left , : right or a list of two numbers Designed and written by who stole most of the code from CHANGE LOG : 05/23/94 : window formula in : SELECTOR interactor 04/23/93 - Added : do - not - dump - ...
2f8ecbacbbc56b387bf28df30966d83beb7e63105549ad9fb328a6483673164d
nikomatsakis/a-mir-formality
coherence--issue-99940.rkt
#lang racket (require redex/reduction-semantics "../../util.rkt" "../grammar.rkt" "../prove.rkt" "../libcore.rkt" ) (module+ test (redex-let* formality-rust [] ; Test from this comment: ; -lang/rust/issues/99940#issuecomment-1201504984 ; The test has ...
null
https://raw.githubusercontent.com/nikomatsakis/a-mir-formality/262bcefa6d7e9cad708b58560a875c7ae9d21425/racket-src/rust/test/coherence--issue-99940.rkt
racket
Test from this comment: false in coherence-mode: we get back ambiguous. This is weaker than necessary, in some sense, because an impl DOES exist for `<() as Assoc>::Ty` and it cannot be taken back, but it falls out from the way we've setup the coherence-mode structure.
#lang racket (require redex/reduction-semantics "../../util.rkt" "../grammar.rkt" "../prove.rkt" "../libcore.rkt" ) (module+ test (redex-let* formality-rust [] -lang/rust/issues/99940#issuecomment-1201504984 The test has one impl for ` < ( ) as Assoc>::Ty ` an...
30db192d9ae8e2683e0ec90c1329d02ffc2570771aedfbddaed399bcccd464ca
sqd/haskell-C89-interpreter
Interpret.hs
module Interpret( run )where import Grammar import Utils import Runtime import Value import Definition import Type import Storage import Parse import Control.Applicative import Control.Monad hiding (void) import qualified Data.Map.Strict as M import Data.List import Data.Maybe import Control.Exception.Base type Symb...
null
https://raw.githubusercontent.com/sqd/haskell-C89-interpreter/cd0cd344cf07eba29a906b62fb31ea120adfca86/Interpret.hs
haskell
TODO: initialization Return left value Follow left value link If identifier is a left value, follow the link Return right value Run a program run :: Program -> Identifier -> [Value] -> IO Value Really smelly hack, but I doubt if I can bypass it without thorough modifications Return Left Value if Possible lazy...
module Interpret( run )where import Grammar import Utils import Runtime import Value import Definition import Type import Storage import Parse import Control.Applicative import Control.Monad hiding (void) import qualified Data.Map.Strict as M import Data.List import Data.Maybe import Control.Exception.Base type Symb...
b2d10c27089e9cf0bc253ab4f6e9189054b78f0751863a2373c8985fed36d27a
logseq/mldoc
document.ml
open Prelude open Type type toc = toc_item list [@@deriving yojson] and toc_item = { title : Inline.t_with_pos list ; level : int ; anchor : string ; numbering : int list ; items : toc } type directives = (string * string) list [@@deriving yojson] * A document is : - some content before the f...
null
https://raw.githubusercontent.com/logseq/mldoc/376bcdca3fef551d233ce8ebdc618e06edfe2e44/lib/document.ml
ocaml
* The filename the document was parsed from * Blocks content * The directives present in the file * The document's title * The document's subtitle * The document's author * Table of content child breakout parent child
open Prelude open Type type toc = toc_item list [@@deriving yojson] and toc_item = { title : Inline.t_with_pos list ; level : int ; anchor : string ; numbering : int list ; items : toc } type directives = (string * string) list [@@deriving yojson] * A document is : - some content before the f...
e8a4a5191b1215858ba6ed891667a6371fda41b5aa7bd7d1a51bbf5e9fc05518
jakemcc/sicp-study
test_ex3_55.clj
(ns test-ex3-55 (:use clojure.test ex3-55)) (def integers (iterate inc 1)) (deftest partial-sum-works (let [sums (partial-sum integers)] (is (= '(1 3 6 10 15) (take 5 sums)))))
null
https://raw.githubusercontent.com/jakemcc/sicp-study/3b9e3d6c8cc30ad92b0d9bbcbbbfe36a8413f89d/clojure/section3.5/test/test_ex3_55.clj
clojure
(ns test-ex3-55 (:use clojure.test ex3-55)) (def integers (iterate inc 1)) (deftest partial-sum-works (let [sums (partial-sum integers)] (is (= '(1 3 6 10 15) (take 5 sums)))))
4fa0de3d6f47daecd6716e111fea9c4b5413272bfa78e155612ad64c39d175d4
shirok/Gauche-LoL
lazy.scm
The features implemented in lazy.lisp is available in Gauche as ;; util.stream. Here we only show the correspondence. (use util.stream) ;; macro: lazy expr ... ;; == stream-delay (begin expr ...) ;; macro: lazy-cons a d ;; == stream-cons a d ;; function: lazy-car x ;; == stream-car x ;; function: lazy-cdr x ;; ...
null
https://raw.githubusercontent.com/shirok/Gauche-LoL/9636176ca817d039ef1cbfd236ac8edfb25ea5d7/lazy.scm
scheme
util.stream. Here we only show the correspondence. macro: lazy expr ... == stream-delay (begin expr ...) macro: lazy-cons a d == stream-cons a d function: lazy-car x == stream-car x function: lazy-cdr x == stream-cdr x function: lazy-nil == (^[] stream-null) function: lazy-null x == stream-null? x functi...
The features implemented in lazy.lisp is available in Gauche as (use util.stream) function : make - lazy lst = = list->stream lst = = stream->list s
2c24fa62b5ea3b4ae8abac71278c89d012f0b5e556059a638bb5c9b46218d1fe
ocsigen/eliom
eliom_route_base.shared.ml
Ocsigen * * Module eliommod_services.ml * Copyright ( C ) 2007 * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking exception ; * either version 2...
null
https://raw.githubusercontent.com/ocsigen/eliom/c3e0eea5bef02e0af3942b6d27585add95d01d6c/src/lib/eliom_route_base.shared.ml
ocaml
Service expired. Removing it. We update the expiration date removing manually We do find once again because it may have changed! physical equality! should not occur nodeopt should be None verify that we haven't registered something similar if there was an old version with the same id, we remove ...
Ocsigen * * Module eliommod_services.ml * Copyright ( C ) 2007 * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking exception ; * either version 2...
58c54c1ae8e353862902de6d429eeec31ed2f84ff23584465a09f0546ba005af
juxt/stoic
zk.clj
(ns stoic.config.zk "Namespace to faciliate Stoic interaction with Zookeeper." (:require [zookeeper :as zk] [zookeeper.data :as zk-data] [stoic.protocols.config-supplier] [stoic.config.data :refer :all] [stoic.config.env :refer :all] [clojure.tools.logging...
null
https://raw.githubusercontent.com/juxt/stoic/047103f8ba4bcb999b0eefdf084ecd72ff844568/src/stoic/config/zk.clj
clojure
(ns stoic.config.zk "Namespace to faciliate Stoic interaction with Zookeeper." (:require [zookeeper :as zk] [zookeeper.data :as zk-data] [stoic.protocols.config-supplier] [stoic.config.data :refer :all] [stoic.config.env :refer :all] [clojure.tools.logging...
d1f897d06bec53f5d19bd88e2b067235efb8136b6f01b275bd8f8f87df0911fc
david-broman/modelyze
uArg.ml
type keylist = ustring list type description = ustring type usage_msg = ustring type opt = | ArgHeading of ustring | ArgString of keylist * ustring ref * description | ArgSet of keylist * bool ref * description | ArgClear of keylist * bool ref * description | ArgRest of ustring * (ustring list) ref * des...
null
https://raw.githubusercontent.com/david-broman/modelyze/e48c934283e683e268a9dfd0fed49d3c10277298/ext/ucamlib/src/uArg.ml
ocaml
Setup option hash table
type keylist = ustring list type description = ustring type usage_msg = ustring type opt = | ArgHeading of ustring | ArgString of keylist * ustring ref * description | ArgSet of keylist * bool ref * description | ArgClear of keylist * bool ref * description | ArgRest of ustring * (ustring list) ref * des...
533056cfd5b497d07a65bfb11a4c28167f27fd265381d2eef37e819ed099483c
wavewave/HROOT.old
random2dApp.hs
module Main where import Control.Monad import HROOT main :: IO () main = do tapp <- newTApplication "test" [0] ["test"] tcanvas <- newTCanvas "Test" "Test" 640 480 h2 <- newTH2F "test" "test" 100 (-5.0) 5.0 100 (-5.0) 5.0 tRandom <- newTRandom 65535 let dist1 = gaus tRandom 0 2 dist2 = gaus tRa...
null
https://raw.githubusercontent.com/wavewave/HROOT.old/6be1bae246ff4c82159d84981cf7e4389011b17a/example/random2dApp.hs
haskell
module Main where import Control.Monad import HROOT main :: IO () main = do tapp <- newTApplication "test" [0] ["test"] tcanvas <- newTCanvas "Test" "Test" 640 480 h2 <- newTH2F "test" "test" 100 (-5.0) 5.0 100 (-5.0) 5.0 tRandom <- newTRandom 65535 let dist1 = gaus tRandom 0 2 dist2 = gaus tRa...
c039b78aea81945614fb2bfb8612d8bd2d7f91af6d721dc318cd789cdcaa474f
xapi-project/xen-api
test_map_check.ml
* Copyright ( C ) 2006 - 2015 Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking describe...
null
https://raw.githubusercontent.com/xapi-project/xen-api/e984d34bd9ff60d7224a841270db0fe1dfe42e7a/ocaml/tests/test_map_check.ml
ocaml
If default value is None, no value should be added. If default value is Some _, the default should be added. If default value is None, an existing value should not be overwritten. If default value is Some _, an existing value should not be overwritten. If all values are valid, the exception should not be throw...
* Copyright ( C ) 2006 - 2015 Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking describe...
51051e15edc93778c0ffb417b227d245de26178272063ff8865f181158a5a857
Frama-C/Frama-C-snapshot
abstract_value.mli
(**************************************************************************) (* *) This file is part of Frama - C. (* *) Copyright ...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/value/values/abstract_value.mli
ocaml
************************************************************************ alternatives) ...
This file is part of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , v...
c56c33c6bc6e0cc1e735f3d0025c2e615f40b481093fa48e6197a24728485faf
Eduap-com/WordMat
inference_result.lisp
;; COPYRIGHT NOTICE ;; Copyright ( C ) 2006 - 2012 ;; ;; This program is free software; you can redistribute ;; it and/or modify it under the terms of the ;; GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option...
null
https://raw.githubusercontent.com/Eduap-com/WordMat/83c9336770067f54431cc42c7147dc6ed640a339/Windows/ExternalPrograms/maxima-5.45.1/share/maxima/5.45.1/share/stats/inference_result.lisp
lisp
COPYRIGHT NOTICE This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by either version 2 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the im...
Copyright ( C ) 2006 - 2012 of the License , or ( at your option ) any later version . mario @@@ edu DOT xunta DOT es (in-package :maxima) Constructs the ' inference_result ' object , with : Maxima list , the elements of which are lists of selection : Maxima list numbering the values to be d...
82429544bb22f82e27862f65207f28a9ed6a8f4299f0d71cac4b79f1d6806052
KirinDave/clj-time
intervals.clj
(ns clj-time.fuzzy-parser.intervals (:use [clojure.contrib.def :only (defvar defvar-)]) (:import (org.joda.time DateTime Period) (org.joda.time.format DateTimeFormat DateTimeFormatter ISODateTimeFormat))) (defn gen-intregexp [regexp-str] (re-pattern (str "([0-9]+) " r...
null
https://raw.githubusercontent.com/KirinDave/clj-time/41259ac14f4604d54e6561fde4a52867e6834b79/src/clj_time/fuzzy_parser/intervals.clj
clojure
(ns clj-time.fuzzy-parser.intervals (:use [clojure.contrib.def :only (defvar defvar-)]) (:import (org.joda.time DateTime Period) (org.joda.time.format DateTimeFormat DateTimeFormatter ISODateTimeFormat))) (defn gen-intregexp [regexp-str] (re-pattern (str "([0-9]+) " r...
c3646034cf9879f0533551af7a9077c22ca98b4609313ca512c5d97d79d912c2
lambdamikel/VISCO
optimizer10.lisp
-*- Mode : Lisp ; Syntax : Ansi - Common - Lisp ; Package : QUERY - COMPILER ; Base : 10 -*- (in-package query-compiler) ;;; ;;; ;;; (defun get-sorted-and-activated-ccs-no-generator-required (obj) (remove-if #'(lambda (cc) (or (not (activated-p cc)) (ignored-p cc))) (sorted-testers obj))) (defm...
null
https://raw.githubusercontent.com/lambdamikel/VISCO/836d325b5c6037517470835c635b3063446d3d8a/src/query-compiler/optimizer10.lisp
lisp
Syntax : Ansi - Common - Lisp ; Package : QUERY - COMPILER ; Base : 10 -*- echte Kosten cc-relations-exists-is
(in-package query-compiler) (defun get-sorted-and-activated-ccs-no-generator-required (obj) (remove-if #'(lambda (cc) (or (not (activated-p cc)) (ignored-p cc))) (sorted-testers obj))) (defmethod get-sorted-and-activated-ccs ((obj enclosure)) (get-sorted-and-activated-ccs-no-generator-required o...
aeea2cc65c34eb7cf013e0331cee38362c788bcf6656f8269aa90385fb0ad7e2
informatimago/lisp
list.lisp
-*- coding : utf-8 -*- ;;;;**************************************************************************** ;;;;FILE: list.lisp ;;;;LANGUAGE: common-lisp ;;;;SYSTEM: UNIX USER - INTERFACE : UNIX ;;;;DESCRIPTION ;;;; This module exports some list utility functions. < PJB > ...
null
https://raw.githubusercontent.com/informatimago/lisp/571af24c06ba466e01b4c9483f8bb7690bc46d03/common-lisp/cesarum/list.lisp
lisp
**************************************************************************** FILE: list.lisp LANGUAGE: common-lisp SYSTEM: UNIX DESCRIPTION This module exports some list utility functions. LEGAL This program is free software: you can redistribute it and/or modify (at your ...
-*- coding : utf-8 -*- USER - INTERFACE : UNIX < PJB > < > MODIFICATIONS 2015 - 08 - 19 < PJB > Removed dll from this package . cf . the dll package . 2014 - 11 - 18 < PJB > Added map - cartesian - product . 2012 - 03 - 14 < PJB > Added plist - keys . 2012 - 02 - 19 < PJB > Moved HAS...
532ca2c93fd5a6b3cc6129a8f894d656cbc7216efd96ee8a07aadae38ab40e9a
toothbrush/dotfs
DotFS.hs
module Main where import System.DotFS.Util.Options import System.DotFS.Util.Sanity import System.DotFS.Core.FSActions import System.DotFS.Core.Datatypes import Data.List import System.Console.GetOpt import System.Environment import System.IO import System.Fuse import Control.Monad {- - TODO: we can fill in actualPa...
null
https://raw.githubusercontent.com/toothbrush/dotfs/36c7e62bda235728ffbb501fe1d2c34210a870a8/System/DotFS/DotFS.hs
haskell
- TODO: we can fill in actualPath now. do we want to though? TODO * There's currently no real error checking whatsoever. * Thread in logging * Can I delete "dotfsVirtualPath"? * need to add unit tests ------------------------------------------------------------------------------- ---------------------------------...
module Main where import System.DotFS.Util.Options import System.DotFS.Util.Sanity import System.DotFS.Core.FSActions import System.DotFS.Core.Datatypes import Data.List import System.Console.GetOpt import System.Environment import System.IO import System.Fuse import Control.Monad Parse arguments and main mai...
fa953d259029472b698a9ff767a1aa1e0ea5393333bf8bfbafd5a3ecb9fe211f
MLstate/opalang
bslTracker.mli
Copyright © 2011 , 2012 MLstate This file is part of . is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License , version 3 , as published by the Free Software Foundation . is distributed in the hope that it will be us...
null
https://raw.githubusercontent.com/MLstate/opalang/424b369160ce693406cece6ac033d75d85f5df4f/compiler/libbsl/bslTracker.mli
ocaml
* Regular bymap printer: print all keys of bypasses
Copyright © 2011 , 2012 MLstate This file is part of . is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License , version 3 , as published by the Free Software Foundation . is distributed in the hope that it will be us...
4dc8943d74ebeae00b0f2e56916c0d045d43002fd39378d248b94ccdba216fe3
dalaing/little-languages
BigStep.hs
| Copyright : ( c ) , 2016 License : : Stability : experimental Portability : non - portable Copyright : (c) Dave Laing, 2016 License : BSD3 Maintainer : Stability : experimental Portability : non-portable -} # LANGUAGE TemplateHaskell # # LANGUAGE MultiParamTypeClasses # # LANGUA...
null
https://raw.githubusercontent.com/dalaing/little-languages/9f089f646a5344b8f7178700455a36a755d29b1f/code/old/modular/common-lang/src/Component/Term/Eval/BigStep.hs
haskell
# LANGUAGE RankNTypes # | ^ ^ | | ^ | ^ ^ ^ | ^ ^
| Copyright : ( c ) , 2016 License : : Stability : experimental Portability : non - portable Copyright : (c) Dave Laing, 2016 License : BSD3 Maintainer : Stability : experimental Portability : non-portable -} # LANGUAGE TemplateHaskell # # LANGUAGE MultiParamTypeClasses # # LANGUA...
18bda0ae70285d167555db3795e824a56f731d155ee728d25dcc90554f7ec224
thheller/next-cljs
next_js.cljs
(ns shadow.next-js (:require [goog.object :as gobj])) (defn add-query [page-fn query-fn] (gobj/set page-fn "getInitialProps" (fn [req] (-> (query-fn req) SSR transforms all CLJS data to JSON ;; which makes it pretty much useless ...
null
https://raw.githubusercontent.com/thheller/next-cljs/03cbc22732cac2d904f9b9f1fa7838317ff97675/src/main/shadow/next_js.cljs
clojure
which makes it pretty much useless this is terrible but oh well ...
(ns shadow.next-js (:require [goog.object :as gobj])) (defn add-query [page-fn query-fn] (gobj/set page-fn "getInitialProps" (fn [req] (-> (query-fn req) SSR transforms all CLJS data to JSON (.then clj->js)))))
45917413e7ed45afdf4803dc8e9e8dd531a8feee54b75bfa8c4affc8df5c01d4
rd--/hsc3
b_set.help.hs
Sound.Sc3.Lang.Help.viewServerHelp "/b_set"
null
https://raw.githubusercontent.com/rd--/hsc3/024d45b6b5166e5cd3f0142fbf65aeb6ef642d46/Help/Server/b_set.help.hs
haskell
Sound.Sc3.Lang.Help.viewServerHelp "/b_set"
b94a61a4b7ebd8af98b4e827ba35d0001e579bb6aeed070756b374181920d964
sgbj/MaximaSharp
dscal.lisp
;;; Compiled by f2cl version: ( " f2cl1.l , v 2edcbd958861 2012/05/30 03:34:52 toy $ " " f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl5.l , v 3fe93de3be82 2012/05/06 02:17:14 toy ...
null
https://raw.githubusercontent.com/sgbj/MaximaSharp/75067d7e045b9ed50883b5eb09803b4c8f391059/Test/bin/Debug/Maxima-5.30.0/share/maxima/5.30.0/share/lapack/blas/dscal.lisp
lisp
Compiled by f2cl version: Using Lisp CMU Common Lisp 20d (20D Unicode) Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t) (:coerce-assigns :as-needed) (:array-type ':array) (:array-slicing t) (:declare-common nil) (:float-format double-float))
( " f2cl1.l , v 2edcbd958861 2012/05/30 03:34:52 toy $ " " f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl5.l , v 3fe93de3be82 2012/05/06 02:17:14 toy $ " " f2cl6.l , v 1d5cbacbb...
56ef4bba41e3c0220fb703cec7a393cbb2513bd187af8557df154c1d7b889d49
mpickering/apply-refact
Lambda24.hs
f = bar (flip Foo.bar x)
null
https://raw.githubusercontent.com/mpickering/apply-refact/a4343ea0f4f9d8c2e16d6b16b9068f321ba4f272/tests/examples/Lambda24.hs
haskell
f = bar (flip Foo.bar x)
ac9184d2d2b5c37d86c60bf843aeea64cdf3d911e3aba1c9839f8a779e773f9d
orionsbelt-battlegrounds/obb-rules
eagle.cljc
(ns ^{:added "1.6" :author "Pedro Santos"} obb-rules.units.eagle "Metadata information for the Eagle unit") (def metadata {:name "eagle" :code "e" :attack 1500 :attack-type :catapult :defense 1200 :range 3 :value 70 :type :mechanic :category :medium :displacement :air :mov...
null
https://raw.githubusercontent.com/orionsbelt-battlegrounds/obb-rules/97fad6506eb81142f74f4722aca58b80d618bf45/src/obb_rules/units/eagle.cljc
clojure
(ns ^{:added "1.6" :author "Pedro Santos"} obb-rules.units.eagle "Metadata information for the Eagle unit") (def metadata {:name "eagle" :code "e" :attack 1500 :attack-type :catapult :defense 1200 :range 3 :value 70 :type :mechanic :category :medium :displacement :air :mov...
55cc2378aab9249fceb22bc2b612867ad31303729bec7178cca7630f0a860f46
huangjs/cl
nalgfa.lisp
-*- Mode : Lisp ; Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; The data in this file contains enhancments. ;;;;; ;;; ;;;;; ...
null
https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/maxima/src/nalgfa.lisp
lisp
Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; The data in this file contains enhancments. ;;;;; ;;;;; ; ; ; ; All rights reserved ;;;;; ; ; generalized ps...
(in-package :maxima) (macsyma-module nalgfa) (declare-top (special vlist *var *nosplitf *algvar *denom *num *ans algfac* $nalgfac alpha)) (load-macsyma-macros rzmac ratmac) (defun new-alg () (newsym (gentemp (symbol-name '$alg)))) (defun psqfrp (p var) (zerop (pdegree (pgcd p (pderivative p var)) var...
9d2ccdd086af3fc2c1048f5628ce87c515f57c0b019850a0ba5c3d990d6a89cc
TrustInSoft/tis-kernel
value_results.mli
(**************************************************************************) (* *) This file is part of . (* *) is a fork of Frama - C. Al...
null
https://raw.githubusercontent.com/TrustInSoft/tis-kernel/748d28baba90c03c0f5f4654d2e7bb47dfbe4e7d/src/plugins/value/utils/value_results.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 Frama - C. Copyright ( C ) 2007 - 2015 ...
102b784e3c904dcf8ff13a5d270b9132c68565ac983973204417497d003047bb
chiroptical/optics-by-example
Lib.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE QuasiQuotes # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # module Lib where import Control.Lens import Data.Aeson import Data.Aeson.Lens import Data.Ord import qualified Data.Text as T import GHC.Generi...
null
https://raw.githubusercontent.com/chiroptical/optics-by-example/3ee33546ee18c3a6f5510eec17a69d34e750198e/chapter15/src/Lib.hs
haskell
# LANGUAGE DeriveAnyClass #
# LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE QuasiQuotes # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # module Lib where import Control.Lens import Data.Aeson import Data.Aeson.Lens import Data.Ord import qualified Data.Text as T import GHC.Generics import Text.RawString.QQ a =...
68bf28a1c9f223507e02a58bb2cd6c9435a9bd710d6844f8b841952df2bdd67e
kitnil/dotfiles
gitlab.scm
(define-module (guile gitlab) #:use-module (gnu packages bash) #:use-module (gnu packages guile) #:use-module (gnu services configuration) #:use-module (guix build utils) #:use-module (guix gexp) #:use-module (guix modules) #:use-module (guix monads) #:use-module (guix packages) #:use-module (guix rec...
null
https://raw.githubusercontent.com/kitnil/dotfiles/51519ac5e036761349cfa126e0226a9eb027f674/dotfiles/guile/gitlab.scm
scheme
(namespace-id (string (configuration-missing-field 'home-gitlab-project-configuration 'namespace-id))
(define-module (guile gitlab) #:use-module (gnu packages bash) #:use-module (gnu packages guile) #:use-module (gnu services configuration) #:use-module (guix build utils) #:use-module (guix gexp) #:use-module (guix modules) #:use-module (guix monads) #:use-module (guix packages) #:use-module (guix rec...
fa137eee317d1870ec65621b5013d80fd2bc41a087ab2fcf937f0e9bb125a59b
camlspotter/ocaml-zippy-tutorial-in-japanese
w25.ml
let f = function | x when x = 1 -> x + 1 | x when x = 2 -> x + 20 | x when x = 3 -> x + 300
null
https://raw.githubusercontent.com/camlspotter/ocaml-zippy-tutorial-in-japanese/c6aeabc08b6e2289a0e66c5b94a89c6723d88a6a/t/warnings/w25.ml
ocaml
let f = function | x when x = 1 -> x + 1 | x when x = 2 -> x + 20 | x when x = 3 -> x + 300
f6f4cd60c4b7d6c9db08773a7cda85c5dbf746a327c8508758f8d912807e9a18
adventuring/tootsville.net
jack.lisp
;;;; -*- lisp -*- ;;; src / characters / named / jack.lisp is part of ;;; Copyright © 2008 - 2017 Bruce - Robert Pocock ; © 2018 - 2021 The Corporation for Inter - World Tourism and Adventuring ( ciwta.org ) . ;;; This program is Free Software : you can redistribute it and/or modi...
null
https://raw.githubusercontent.com/adventuring/tootsville.net/985c11a91dd1a21b77d7378362d86cf1c031b22c/src/characters/named/jack.lisp
lisp
-*- lisp -*- © 2018 - 2021 The either version 3 of This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more det...
src / characters / named / jack.lisp is part of Corporation for Inter - World Tourism and Adventuring ( ciwta.org ) . This program is Free Software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License the License , or ( at your option ) any later v...
bf251418150044f02b1808042cedd55d545c589b0cf7cf0dc5b34af2f5d4216a
xapi-project/message-switch
debug.ml
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking describe...
null
https://raw.githubusercontent.com/xapi-project/message-switch/1d0d1aa45c01eba144ac2826d0d88bb663e33101/xapi-idl/lib/debug.ml
ocaml
* execute the function f with the mutex hold * [escape str] efficiently escapes non-printable characters and in addition the backslash character. The function is efficient in the sense that it will allocate a new string only when necessary if the task's client is known, attach it to the task's name This is...
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking describe...
64a4e1415cc12f0f48328f3e658fa41783af9d760b581170f713fd493949a9ed
danieljharvey/mimsa
ReplM.hs
# LANGUAGE DerivingStrategies # # LANGUAGE GeneralisedNewtypeDeriving # module Repl.ReplM ( ReplM (..), ReplState (..), runReplM, mapError, setStoredModule, getStoredModule, replMFromEither, replOutput, replDocOutput, ) where import Control.Monad.Catch import Control.Monad.Except i...
null
https://raw.githubusercontent.com/danieljharvey/mimsa/564c32cc28d990c9e686f63533a9e30c3736aee4/repl/repl/Repl/ReplM.hs
haskell
| to allow us to do 'bindings' in the repl, we maintain a current Module and add to it | Although we are lucky and can keep much of our work | change error type | run this big brave boy | lift Either into ReplM | Output stuff for use in repl | we maintain a module in state, this allows us to update it
# LANGUAGE DerivingStrategies # # LANGUAGE GeneralisedNewtypeDeriving # module Repl.ReplM ( ReplM (..), ReplState (..), runReplM, mapError, setStoredModule, getStoredModule, replMFromEither, replOutput, replDocOutput, ) where import Control.Monad.Catch import Control.Monad.Except i...
747389f24eb3bc0dce37ef3fe24f27f23a29fb818aa4b25934864e2c9a0ef64a
abailly/hevents
Persist.hs
{-# LANGUAGE DeriveGeneric #-} # LANGUAGE ImplicitParams # {-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE AllowAmbiguousTypes # # LANGUAGE TypeFamilyDependencies # | An effect which combines a ` State ` and a ` Storage ` within IO monad module Hevents.Eff.Persist(Persist, makePersist, stopPe...
null
https://raw.githubusercontent.com/abailly/hevents/d38789bf5ae787c35d496b72fe47419d965032de/src/Hevents/Eff/Persist.hs
haskell
# LANGUAGE DeriveGeneric # # LANGUAGE ScopedTypeVariables # ^The persistent state managed by this effect ^The low-level storage engine ^How to interpret storage errors within the model
# LANGUAGE ImplicitParams # # LANGUAGE AllowAmbiguousTypes # # LANGUAGE TypeFamilyDependencies # | An effect which combines a ` State ` and a ` Storage ` within IO monad module Hevents.Eff.Persist(Persist, makePersist, stopPersist, state) where import Control.Eff.Lif...
6d4982459025b7590cc8ac0638455d6ce499ff6305b197194f647fb820336d78
esl/ejabberd_tests
katt_helper.erl
%%============================================================================== Copyright 2014 Erlang Solutions 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 %% ...
null
https://raw.githubusercontent.com/esl/ejabberd_tests/913fb0a5a8c1ab753eb35c1e1b491e8572633b54/tests/katt_helper.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 ex...
Copyright 2014 Erlang Solutions Ltd. Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(katt_helper). -export([init_per_suite/1, end_per_suite/1]). -export([run/2, run/3]). -include_lib("common_tes...
e29dc82dd00a320ed84e68fa368d58b2448aee5e186f55bc1f4980c587b49acb
tromp/ChessPositionRanking
Legality.hs
module Main where import System.Environment import Chess.Position import Data.Maybe import Data.Char import Data.List import qualified Data.Map as M import Data.Array -- the dark colored squares darkSquares :: [Square] darkSquares = filter isDark boardSquares where isDark c = let (y,x) = c `divMod` 8 in odd x /= od...
null
https://raw.githubusercontent.com/tromp/ChessPositionRanking/b0ecf6ba7041bfe05302780ba3a3421ff0e26c1a/src/Legality.hs
haskell
the dark colored squares spare room for promotions non king squares add kings back white pawns captured black pawns captured list opponent pieces checking target coord non empty ray research legality to move or not to move
module Main where import System.Environment import Chess.Position import Data.Maybe import Data.Char import Data.List import qualified Data.Map as M import Data.Array darkSquares :: [Square] darkSquares = filter isDark boardSquares where isDark c = let (y,x) = c `divMod` 8 in odd x /= odd y spareProms :: Diagram -...
f050ba6f75467b3124c6ebdae999a099fecc0aea87e5a56f97d9ea8d9c55d5da
haskell-hvr/token-bucket
TokenBucket.hs
# LANGUAGE CPP # -- | This module provides rate-limiting facilities built on top of the lazy bucket algorithm heavily inspired by < -limiting-at-webscale-lazy-leaky-buckets " Rate Limiting at Webscale : Lazy Leaky Buckets " > -- See also Wikipedia 's < Token Bucket > article for general information about token bu...
null
https://raw.githubusercontent.com/haskell-hvr/token-bucket/2a274b8445f0ac100198cae7d5be401bd647df03/src/Control/Concurrent/TokenBucket.hs
haskell
| This module provides rate-limiting facilities built on top of the lazy bucket algorithm heavily inspired by * The 'TokenBucket' type * Operations on 'TokenBucket' === Average token rate The average rate is expressed as inverse rate in terms of @n@ microseconds). This representation exposes the time granula...
# LANGUAGE CPP # < -limiting-at-webscale-lazy-leaky-buckets " Rate Limiting at Webscale : Lazy Leaky Buckets " > See also Wikipedia 's < Token Bucket > article for general information about token bucket algorithms and their properties . module Control.Concurrent.TokenBucket TokenBucket , newTokenBucket ...
d9bb23192219c177db4f72d5c6ddf5920a391ed1ff038a64ae0ceba684f37f40
input-output-hk/cardano-sl
Focus.hs
# LANGUAGE RecordWildCards # module Statistics.Focus ( Focus (..) , focusF ) where import Control.Foldl (Fold (..)) import Data.Set (Set) import qualified Data.Set as S import qualified Data.Text as T import JSONLog import Pos.Infra.Util.JsonLog.Events (JLBlock (.....
null
https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/tools/post-mortem/src/Statistics/Focus.hs
haskell
# LANGUAGE RecordWildCards # module Statistics.Focus ( Focus (..) , focusF ) where import Control.Foldl (Fold (..)) import Data.Set (Set) import qualified Data.Set as S import qualified Data.Text as T import JSONLog import Pos.Infra.Util.JsonLog.Events (JLBlock (.....
396e5ee8b43c64d8f070bde46033c6f51f716658e9198cbee77f1c6b297a5785
jrm-code-project/LISP-Machine
dump-storage.lisp
-*- Mode : LISP ; Package : SYSTEM - INTERNALS ; Base:8 ; : ZL -*- (defun dump-storage (start) (do ((adr (%pointer start) (1+ adr)) info) (()) (format t "~&~10o: " adr) (setq info (nth-value 1 (lam:xpointer-info adr))) (cond ((= info 2) (format t "~15a " (nth (%p-cdr-code adr)...
null
https://raw.githubusercontent.com/jrm-code-project/LISP-Machine/0a448d27f40761fafabe5775ffc550637be537b2/lambda/pace/hacks/dump-storage.lisp
lisp
Package : SYSTEM - INTERNALS ; Base:8 ; : ZL -*-
(defun dump-storage (start) (do ((adr (%pointer start) (1+ adr)) info) (()) (format t "~&~10o: " adr) (setq info (nth-value 1 (lam:xpointer-info adr))) (cond ((= info 2) (format t "~15a " (nth (%p-cdr-code adr) q-cdr-codes)) (cond ((= (%p-data-type adr) dtp-header) ...
c462ef84d8a6e85ef41c52a0ae12f01cf3a638c72d0f6f5baf2c30e06b5b38ff
mrb/graaaph
examples.clj
(ns graaaph.core-examples (:use graaaph.core) (:require [clojure.core.logic :as l])) (def data {:simple "def a;'ok';end" :args "class Dude; def initialize(cool=nil); @cool = cool; end; end; d = Dude.new(:cool);" :class-variable "class Dude; @@cool = \"dude\"; def speak; @...
null
https://raw.githubusercontent.com/mrb/graaaph/d2e23081fde21d93ef49e12f87f0c02bfe4e31a8/examples/examples.clj
clojure
filter out nodes w/o names extract names dupeo names
(ns graaaph.core-examples (:use graaaph.core) (:require [clojure.core.logic :as l])) (def data {:simple "def a;'ok';end" :args "class Dude; def initialize(cool=nil); @cool = cool; end; end; d = Dude.new(:cool);" :class-variable "class Dude; @@cool = \"dude\"; def speak; @...
e9b51935543f3b5b74bb1ec93b4e956152d8dbf8c52254f329b9005c46a3fb61
litxio/streamly-cassava
Csv.hs
# LANGUAGE FlexibleContexts , MultiParamTypeClasses , OverloadedStrings , ScopedTypeVariables , LambdaCase # ScopedTypeVariables, LambdaCase #-} | Module : Streamly . Csv Description : Cassava support for the streamly library Copyright : ( c ) License :...
null
https://raw.githubusercontent.com/litxio/streamly-cassava/8dae3d9568461b7dc5c55681a16f0ae45100cac3/src/Streamly/Csv.hs
haskell
* Decoding ** Named decoding * Encoding ** Named encoding * Re-exports ------------------------------------------------------------------------------ | Use 'defaultOptions' for decoding the provided CSV. | Return back a stream of values from the provided CSV, stopping at If you wish to instead ignore errors,...
# LANGUAGE FlexibleContexts , MultiParamTypeClasses , OverloadedStrings , ScopedTypeVariables , LambdaCase # ScopedTypeVariables, LambdaCase #-} | Module : Streamly . Csv Description : Cassava support for the streamly library Copyright : ( c ) License :...
e27f962e9383ad4cb3140f11a9bc0957d2fbdd403de85b80befe1ccbcc4f550f
Vaguery/klapaucius
random_scalars.clj
(ns push.type.module.random-scalars (:require [push.instructions.dsl :as d] [push.instructions.core :as i] [clojure.math.numeric-tower :as n] [push.type.core :as t] )) (def integer-uniform (i/build-instruction integer-uniform "`:integer...
null
https://raw.githubusercontent.com/Vaguery/klapaucius/17b55eb76feaa520a85d4df93597cccffe6bdba4/src/push/type/module/random_scalars.clj
clojure
(ns push.type.module.random-scalars (:require [push.instructions.dsl :as d] [push.instructions.core :as i] [clojure.math.numeric-tower :as n] [push.type.core :as t] )) (def integer-uniform (i/build-instruction integer-uniform "`:integer...
ab32992a08042c425cec13187cb3b10f7120490bc9e4c389d56b8578a799cefe
kelamg/HtDP2e-workthrough
ex196.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-beginner-abbr-reader.ss" "lang")((modname ex196) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decima...
null
https://raw.githubusercontent.com/kelamg/HtDP2e-workthrough/ec05818d8b667a3c119bea8d1d22e31e72e0a958/HtDP/Arbitrarily-Large-Data/ex196.rkt
racket
about the language level of this file in a form that our tools can easily process. A Dictionary is a List-of-strings. – "a" – ... – "z" or, equivalently, a member? of this list: (make-lcount Letter N) interp. (make-lcount s n) means s appears as the - '() - '() - (cons Letter LoL) Any -> Boolean produc...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-abbr-reader.ss" "lang")((modname ex196) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (require 2htdp/batch-io) (define LOCATION "/usr/share/dict/...
198442563a797b3c137dfa89dd02daeb47cb500b1cdc1f9c6aafc9dd76d40b00
Zulu-Inuoe/clution
initialize.lisp
;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*- ;;; ;;; --- Error conditions and checking ;;; (in-package :static-vectors) (declaim (inline check-initialization-arguments)) (defun check-initialization-arguments (initial-element-p initial-contents-p) (when (and initial-element-p initial-contents-p) ;; FIXME: sign...
null
https://raw.githubusercontent.com/Zulu-Inuoe/clution/b72f7afe5f770ff68a066184a389c23551863f7f/cl-clution/qlfile-libs/static-vectors-v1.8.3/src/initialize.lisp
lisp
-*- Mode: Lisp; indent-tabs-mode: nil -*- --- Error conditions and checking FIXME: signal ARGUMENT-LIST-ERROR FIXME: signal TYPE-ERROR of the INITIAL-ELEMENT and INITIAL-CONTENTS
(in-package :static-vectors) (declaim (inline check-initialization-arguments)) (defun check-initialization-arguments (initial-element-p initial-contents-p) (when (and initial-element-p initial-contents-p) (error "MAKE-STATIC-VECTOR: You must not specify both ~ :INITIAL-ELEMENT and :INITIAL-CONTENTS"))) (declai...
af6ab9b2e075a76e00848c84e6f23004a89b846f9f8c50626a4b24c61a7316a3
mzp/coq-for-ipad
marshal.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/mzp/coq-for-ipad/4fb3711723e2581a170ffd734e936f210086396e/src/ocaml-3.12.0/otherlibs/threads/marshal.ml
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 GNU Library General Public License , with $ I d : marshal.ml 9547 2010 - 01 - 2...
507594a43f623611915a9fa752c2f29c5520aabf1804545d4ab05d0f57cc9d91
bcbio/bcbio.variation.recall
variantcontext.clj
(ns bcbio.variation.variantcontext "Helper functions to retrieve information from htsjdk VariantContext objects, which represent variant data stored in VCF files." (:import [htsjdk.samtools.reference ReferenceSequenceFileFactory] [htsjdk.tribble AbstractFeatureReader] [htsjdk.variant.vcf ...
null
https://raw.githubusercontent.com/bcbio/bcbio.variation.recall/b7aa436dcb558535f87d004ba0abc5d7bc380b70/src/bcbio/variation/variantcontext.clj
clojure
Provide simple map-based access to important attributes of - VariantContext: Details about a variation. This captures a - Genotype: An individual genotype for a sample, at a variant position. - Allele: The actual alleles at a genotype. ## Utilities
(ns bcbio.variation.variantcontext "Helper functions to retrieve information from htsjdk VariantContext objects, which represent variant data stored in VCF files." (:import [htsjdk.samtools.reference ReferenceSequenceFileFactory] [htsjdk.tribble AbstractFeatureReader] [htsjdk.variant.vcf ...