_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
db902fc6108eba6a42a580fd1412a5e11fe5dee002b46d6aef8f8103cb7ce7ae
FranklinChen/hugs98-plus-Sep2006
Process.hs
# OPTIONS_GHC -cpp -fffi # ----------------------------------------------------------------------------- -- | -- Module : System.Process Copyright : ( c ) The University of Glasgow 2004 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : -- Stability : experimental -...
null
https://raw.githubusercontent.com/FranklinChen/hugs98-plus-Sep2006/54ab69bd6313adbbed1d790b46aca2a0305ea67e/packages/base/System/Process.hs
haskell
--------------------------------------------------------------------------- | Module : System.Process License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : experimental Portability : portable -----------------------------------------------------------------------...
# OPTIONS_GHC -cpp -fffi # Copyright : ( c ) The University of Glasgow 2004 Operations for creating and interacting with sub - processes . ToDo : * Windows impl of runProcess should close the Handles . * Add system / replacements NOTES on createPipe : createPipe is no longer exported , ...
7c3903332e76dd82697e86d2fd7318d699f720caa8d1ef91c386ece0f3e08e5a
google/lisp-koans
std-method-comb.lisp
Copyright 2013 Google Inc. ;;; 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 distrib...
null
https://raw.githubusercontent.com/google/lisp-koans/57b901f8d4b16d66696896a745110b7561120da3/koans/std-method-comb.lisp
lisp
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing per...
Copyright 2013 Google Inc. distributed under the License is distributed on an " AS IS " BASIS , (defclass access-counter () ((value :accessor value :initarg :value) (access-count :reader access-count :initform 0))) This allows us to define : and : AFTER methods whose code is executed (defmethod value :a...
24d2a44d42d96b2fee5231866abb932dcaf9ae51193768823bc59371b832e3b5
input-output-hk/cardano-sl
EpochIndex.hs
# LANGUAGE RecordWildCards # module Pos.Core.Slotting.EpochIndex ( EpochIndex (..) , HasEpochIndex (..) , isBootstrapEra ) where import Universum import Control.Lens (choosing) import qualified Data.Aeson as Aeson (FromJSON (..), ToJSON (..)) import Data.Ix (...
null
https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/core/src/Pos/Core/Slotting/EpochIndex.hs
haskell
| Index of epoch. | Bootstrap era is ongoing until stakes are unlocked. The reward era starts from the epoch specified as the epoch that unlocks stakes: @ [unlock stake epoch] / ------------------ | ----------------------- @ | This function has been stu...
# LANGUAGE RecordWildCards # module Pos.Core.Slotting.EpochIndex ( EpochIndex (..) , HasEpochIndex (..) , isBootstrapEra ) where import Universum import Control.Lens (choosing) import qualified Data.Aeson as Aeson (FromJSON (..), ToJSON (..)) import Data.Ix (...
9d46243b303d324cf3e74f808cb2739bbec99e9db3bac46099d3ad0aa1b46dc6
openmusic-project/RQ
interface.lisp
;;; Interfaces for k-best quantification ;; Most of the functions here are now obsolete (everything replaced by the GUI) (use-package :om :rq) (in-package :rq) (export '(k-best-quantify) :rq) (defun to-input (onsets durations schema sig tempo) "Takes a list of onsets and a list of durations (of same length) and r...
null
https://raw.githubusercontent.com/openmusic-project/RQ/d6b1274a4462c1500dfc2edab81a4425a6dfcda7/src/algorithm/interface.lisp
lisp
Interfaces for k-best quantification Most of the functions here are now obsolete (everything replaced by the GUI) creates the output list and the mask from the onsets and durations on1 is the last note duration of a measure in ms the beginning of the measure is always 0 if there are no elements in the next measures (...
(use-package :om :rq) (in-package :rq) (export '(k-best-quantify) :rq) (defun to-input (onsets durations schema sig tempo) "Takes a list of onsets and a list of durations (of same length) and returns an input object" (let ((mesdur (* (* (first sig) (/ 4 (second sig))) (/ 60 tempo) 1000))) (labels ((out-mask (...
ee77f5950d2db661aac6d9c394aa92165b0c28ea8c318f2274832e50bad0b28f
typelead/intellij-eta
Operator00001.hs
module Operator00001 where renderNode (s, a) = text (label a) # bold # font "sans-serif"
null
https://raw.githubusercontent.com/typelead/intellij-eta/ee66d621aa0bfdf56d7d287279a9a54e89802cf9/plugin/src/test/resources/fixtures/eta/sources/Operator00001.hs
haskell
module Operator00001 where renderNode (s, a) = text (label a) # bold # font "sans-serif"
2f6a7ab96da1df9e2fb8747a2db370bbc775ae866e260c31b8a2551acba7ba75
circuithub/rel8
ADT.hs
# language AllowAmbiguousTypes # # language BlockArguments # # language DataKinds # {-# language FlexibleContexts #-} # language FlexibleInstances # # language MultiParamTypeClasses # # language RankNTypes # {-# language ScopedTypeVariables #-} # language StandaloneKindSignatures # {-# language TupleSections #-} # lang...
null
https://raw.githubusercontent.com/circuithub/rel8/7b9676bb3d4caaebae14cb431c6b8d026758c306/src/Rel8/Generic/Construction/ADT.hs
haskell
# language FlexibleContexts # # language ScopedTypeVariables # # language TupleSections # # language TypeFamilies # # language UndecidableInstances # base rel8 text # OVERLAPPABLE # # OVERLAPPING # # OVERLAPS # # OVERLAPS # # OVERLAPPABLE #
# language AllowAmbiguousTypes # # language BlockArguments # # language DataKinds # # language FlexibleInstances # # language MultiParamTypeClasses # # language RankNTypes # # language StandaloneKindSignatures # # language TypeApplications # # language TypeOperators # module Rel8.Generic.Construction.ADT ( GConstruc...
3480dbd6c6bd0891b76a574278f758894882406f41325ba3ae619e78990a3a44
technomancy/leiningen
clj_test.clj
(ns clj-test (:use [clojure.test] [selectors :only [record-ran]])) (deftest clojure-test (record-ran :clj-test) (is true))
null
https://raw.githubusercontent.com/technomancy/leiningen/24fb93936133bd7fc30c393c127e9e69bb5f2392/test_projects/sample-reader-cond/test/clj_test.clj
clojure
(ns clj-test (:use [clojure.test] [selectors :only [record-ran]])) (deftest clojure-test (record-ran :clj-test) (is true))
49fb3f8320361ed910f3bfff4821db70d336c8725ec739f0cc431fee538c7d32
quark-lang/quark
Literal.hs
module Core.Parser.AST.Literal where import Core.Utility.Color data Literal = Integer Integer | String String | Float Float | Char Char deriving Eq instance Show Literal where show (Integer i) = bYellow $ show i show (String s) = bGreen $ show s show (Float s) = bYellow $ show s ...
null
https://raw.githubusercontent.com/quark-lang/quark/151f66399b61ba438879f22d6f0e4f21ae4ce66c/app/Core/Parser/AST/Literal.hs
haskell
module Core.Parser.AST.Literal where import Core.Utility.Color data Literal = Integer Integer | String String | Float Float | Char Char deriving Eq instance Show Literal where show (Integer i) = bYellow $ show i show (String s) = bGreen $ show s show (Float s) = bYellow $ show s ...
1c4b20a6298c066b403fdae9bc26b53eda834f132ad8878c0668e4bb34e23816
YoEight/lambda-database-experiment
Settings.hs
-------------------------------------------------------------------------------- -- | -- Module : Lambda.Node.Settings Copyright : ( C ) 2017 -- License : (see the file LICENSE) -- Maintainer : < > -- Stability : provisional -- Portability : non-portable -- -----------------------------------------------------...
null
https://raw.githubusercontent.com/YoEight/lambda-database-experiment/da4fab8bd358fb8fb78412c805d6f5bc05854432/lambda-node/library/Lambda/Node/Settings.hs
haskell
------------------------------------------------------------------------------ | Module : Lambda.Node.Settings License : (see the file LICENSE) Stability : provisional Portability : non-portable ------------------------------------------------------------------------------ ---------------------------------------...
Copyright : ( C ) 2017 Maintainer : < > module Lambda.Node.Settings where import Lambda.Logger import Lambda.Prelude import Options.Applicative import Network import Text.PrettyPrint hiding ((<>)) data Settings = Settings { heartbeatInterval :: !NominalDiffTime , heartbeatTimeout :: !NominalDiffTime...
764c4b345e492fb45530878e318913e63cee9040fe9d980e9b85a3a8e86ddacc
s-zeng/cs442-ocaml-starter
cs442.ml
open! Core module Twosum = Twosum let main () = print_endline "HUZZAH!"
null
https://raw.githubusercontent.com/s-zeng/cs442-ocaml-starter/196f9ea14593d49e8f6edf43400c578e2dd17fd0/src/cs442.ml
ocaml
open! Core module Twosum = Twosum let main () = print_endline "HUZZAH!"
1a07fa19057d49354485841c1b3a18fba392bf6c3bd2d678ad17e26eaf07a673
serokell/tzbot
MessageBlock.hs
SPDX - FileCopyrightText : 2022 > -- SPDX - License - Identifier : MPL-2.0 {- | This module contains datatypes that are used to parse the message blocks - that the message objects are shipped with. They seem to be not properly - documented and we have to be safe and assume that some unknown objects - can app...
null
https://raw.githubusercontent.com/serokell/tzbot/5cdf8ce17784bd41d2e10f4131ac0b0bd11d0ec4/src/TzBot/Slack/API/MessageBlock.hs
haskell
| This module contains datatypes that are used to parse the message blocks - that the message objects are shipped with. They seem to be not properly - documented and we have to be safe and assume that some unknown objects - can appear. - See: - * -09-what-they-see-is-what-you-get-and-more-and-less - * * Blo...
SPDX - FileCopyrightText : 2022 > SPDX - License - Identifier : MPL-2.0 module TzBot.Slack.API.MessageBlock MessageBlock , ExtractError (..) , UnknownBlockElementLevel1Type (..) , UnknownBlockElementLevel2Error (..) , extractPieces , splitExtractErrors ) where import Universum import Control...
47b6af6b2852b399bb39b83d750e169c4922c45238d2c09a44375d39af99e380
jeromesimeon/Galax
code_util_matching.ml
(***********************************************************************) (* *) (* GALAX *) (* XQuery Engine *) (* ...
null
https://raw.githubusercontent.com/jeromesimeon/Galax/bc565acf782c140291911d08c1c784c9ac09b432/code_util/code_util_matching.ml
ocaml
********************************************************************* GALAX XQuery Engine ...
Copyright 2001 - 2007 . $ I d : , v 1.14 2007/07/13 18:24:42 mff Exp $ open Error open Datatypes open Datatypes_util open Xquery_ast open Xquery_algebra_ast open Xquery_common_ast open Dm_types open Physical_value open Physical_item open Norm_context open Typin...
68667d57a5d3382b3f7a84d86c62b847c91250546590db56c0342e22ab1c2481
iustin/corydalis
FlaggedImages.hs
Copyright ( C ) 2013 This program is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any later version . This program is distributed i...
null
https://raw.githubusercontent.com/iustin/corydalis/eb9641cab57da3800e5d6ff82682a0451e25c793/src/Handler/FlaggedImages.hs
haskell
# LANGUAGE QuasiQuotes # # LANGUAGE TemplateHaskell #
Copyright ( C ) 2013 This program is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any later version . This program is distributed i...
f987ffc4f03d4eaa433e0021687ab04ad4a87f744663c17bdad6c059926fbdae
c-cube/qcheck
QCheck_runner.ml
include QCheck_base_runner include QCheck_ounit
null
https://raw.githubusercontent.com/c-cube/qcheck/063c1d74795a24eb77fa661d218c4715382df566/src/QCheck_runner.ml
ocaml
include QCheck_base_runner include QCheck_ounit
4da8cbc3bc712e6d5a2fd731a157dcbd45eb140a0b9b2665ec9cfc0825f53809
roosta/herb
global.cljs
(ns site.tutorials.global (:require [garden.units :refer [em px rem]] [site.components.code :refer [code]] [site.components.paper :refer [paper]] [site.components.text :refer [text]] [site.snippets.global :as syntax] [herb.core :as herb :refer [<class <id]] [reagent.core :as r]) (:require-macro...
null
https://raw.githubusercontent.com/roosta/herb/64afb133a7bf51d7171a3c5260584c09dbe4e504/site/src/site/tutorials/global.cljs
clojure
(ns site.tutorials.global (:require [garden.units :refer [em px rem]] [site.components.code :refer [code]] [site.components.paper :refer [paper]] [site.components.text :refer [text]] [site.snippets.global :as syntax] [herb.core :as herb :refer [<class <id]] [reagent.core :as r]) (:require-macro...
dcecd33da3b43f3ffb0488d2bbb0cefc0c01bdbc22715623e9423abb9c1a0ecf
exercism/ocaml
change.ml
let make_change ~target ~coins = failwith "'make_change' is missing"
null
https://raw.githubusercontent.com/exercism/ocaml/bfd6121f757817865a34db06c3188b5e0ccab518/exercises/practice/change/change.ml
ocaml
let make_change ~target ~coins = failwith "'make_change' is missing"
05ae12ae647faace9c7da8740118b7e04e5c446ebbcc121b5434bf39918121b3
codegouvfr/guide-juridique-logiciel-libre
test_runner.cljs
(ns choices.test-runner (:require [choices.core-test] [figwheel.main.testing :refer [run-tests-async]])) (defn -main [& args] (run-tests-async 5000))
null
https://raw.githubusercontent.com/codegouvfr/guide-juridique-logiciel-libre/62118cfca9a8e1cc36e2d4af6fcd447bc11cda18/test/choices/test_runner.cljs
clojure
(ns choices.test-runner (:require [choices.core-test] [figwheel.main.testing :refer [run-tests-async]])) (defn -main [& args] (run-tests-async 5000))
d6c4c68f9e49707249219b4f09276ae3bdcdfb1fdaba0a266fc8d54a50a68851
dleslie/allegro-egg
fixed.scm
(cond-expand (windows (define fix-to-rad (foreign-value "al_fixtorad_r" integer32)) (define rad-to-fix (foreign-value "al_radtofix_r" integer32))) (else #f))
null
https://raw.githubusercontent.com/dleslie/allegro-egg/0435fb891dda5c64e95aa9dedccddd31b17e27da/fixed.scm
scheme
(cond-expand (windows (define fix-to-rad (foreign-value "al_fixtorad_r" integer32)) (define rad-to-fix (foreign-value "al_radtofix_r" integer32))) (else #f))
1d9306e9dcd938c42ba10de725eb6f17e32612ab61aa67e2c23b26e98e2144c7
helium/blockchain-core
blockchain_txn_consensus_group_v1.erl
%%%------------------------------------------------------------------- %% @doc %% == Blockchain Transaction Genesis Consensus Group == %% @end %%%------------------------------------------------------------------- -module(blockchain_txn_consensus_group_v1). -behavior(blockchain_txn). -behavior(blockchain_json). -incl...
null
https://raw.githubusercontent.com/helium/blockchain-core/a34308a576a40594d5057d29570f419516dc87b1/src/transactions/v1/blockchain_txn_consensus_group_v1.erl
erlang
------------------------------------------------------------------- @doc == Blockchain Transaction Genesis Consensus Group == @end ------------------------------------------------------------------- -------------------------------------------------------------------- @doc @end -------------------------------------...
-module(blockchain_txn_consensus_group_v1). -behavior(blockchain_txn). -behavior(blockchain_json). -include("blockchain_json.hrl"). -include("blockchain.hrl"). -include_lib("helium_proto/include/blockchain_txn_consensus_group_v1_pb.hrl"). -export([ new/4, hash/1, sign/2, members/1, proof/1, ...
fe6bbce64cd5ec6a3846bee557bf0555ea6bc42467cf90b2fd1541de6f348eb2
keera-studios/keera-hails
ProtectedModelInternals.hs
-- | -- Copyright : ( C ) Keera Studios Ltd , 2013 -- License : BSD3 Maintainer : module Model.ProtectedModel.ProtectedModelInternals ( ProtectedModel , GPM.onReactiveModel , GPM.applyToReactiveModel , GPM.onEvent , GPM.waitFor ) where import Model.Model import Model.ReactiveModel.Mod...
null
https://raw.githubusercontent.com/keera-studios/keera-hails/bf069e5aafc85a1f55fa119ae45a025a2bd4a3d0/demos/keera-hails-demos-gtk/elementarygtkprogram/src/Model/ProtectedModel/ProtectedModelInternals.hs
haskell
| License : BSD3
Copyright : ( C ) Keera Studios Ltd , 2013 Maintainer : module Model.ProtectedModel.ProtectedModelInternals ( ProtectedModel , GPM.onReactiveModel , GPM.applyToReactiveModel , GPM.onEvent , GPM.waitFor ) where import Model.Model import Model.ReactiveModel.ModelEvents import qualified Cont...
f9cba152ef874351d2da528c6aa51f4445b4f05de5cb8c334cd2f8db831707df
tari3x/csec-modex
parser.ml
type token = | COMMA | LPAREN | RPAREN | LBRACKET | RBRACKET | BAR | SEMI | COLON | NEW | OUT | IN | IDENT of (Ptree.ident) | STRING of (Ptree.ident) | INT of (int) | FLOAT of (float) | REPL | LEQ | IF | THEN | ELSE | FIND | ORFIND | SUCHTHAT | DEFINED | EQUAL | DIFF ...
null
https://raw.githubusercontent.com/tari3x/csec-modex/5ab2aa18ef308b4d18ac479e5ab14476328a6a50/src/symtrace/cryptoverif/parser.ml
ocaml
COMMA LPAREN RPAREN LBRACKET RBRACKET SEMI COLON NEW OUT IN REPL IF THEN ELSE FIND DEFINED FUN FORALL TYPE PROCESS LET QUERY SECRET AND OR CHANNEL MAPSTO DEF MUL ADD SUB POWER SET COLLISION EVENT IMPLIES YIELD LENGTH COUNT DEFINE EXPAND ...
type token = | COMMA | LPAREN | RPAREN | LBRACKET | RBRACKET | BAR | SEMI | COLON | NEW | OUT | IN | IDENT of (Ptree.ident) | STRING of (Ptree.ident) | INT of (int) | FLOAT of (float) | REPL | LEQ | IF | THEN | ELSE | FIND | ORFIND | SUCHTHAT | DEFINED | EQUAL | DIFF ...
84118fe2f46dcd8247a529bc2824b35fdc3fc1579786f19adb78933511c083a8
cojna/iota
Mo.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE TypeApplications # {- | = Mo's Algotrithm -} module Algorithm.Mo where import Control.Monad.Primitive import Data.Bits import qualified Data.Vector.Fusion.Stream.Monadic as MS import qualified Data.Vector.Unboxed as U import qualified Data.Vector.Unboxed.Mutable as UM import ...
null
https://raw.githubusercontent.com/cojna/iota/6d2ad5b71b1b50bca9136d6ed84f80a0b7713d7c/src/Algorithm/Mo.hs
haskell
# LANGUAGE BangPatterns # | = Mo's Algotrithm | /O((N+Q)sqrt N)/ | add | delete | initial value | block size (sqrt N) | query [l, r)
# LANGUAGE TypeApplications # module Algorithm.Mo where import Control.Monad.Primitive import Data.Bits import qualified Data.Vector.Fusion.Stream.Monadic as MS import qualified Data.Vector.Unboxed as U import qualified Data.Vector.Unboxed.Mutable as UM import Data.Word import Unsafe.Coerce import Data.Vector.Sort....
df0e88780266cce20b3635e31518f82091c3fa11ae2ccf35f533d7f5adfa6432
Outdooractive/elevation-profile
dem-gdal.scm
;;; dem ( digital elevation model ) via ( ) ;;; Copyright ( c ) 2012 < > ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: ;;; ;;; 1. Redistributions of source code must retain the above...
null
https://raw.githubusercontent.com/Outdooractive/elevation-profile/5e60f0d321af6fcc609727a96ff9a980153d6421/dem-gdal.scm
scheme
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributi...
dem ( digital elevation model ) via ( ) Copyright ( c ) 2012 < > " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING - you can...
4b31f5120b14ec9edbcf1ab80bf931088681ee15d815213f5319e70177996cdd
semilin/layoup
Workman.lisp
(MAKE-LAYOUT :NAME "Workman" :MATRIX (APPLY #'KEY-MATRIX '("qdrwbjfup;" "ashtgyneoi" "zxmcvkl,./")) :SHIFT-MATRIX NIL :KEYBOARD NIL)
null
https://raw.githubusercontent.com/semilin/layoup/27ec9ba9a9388cd944ac46206d10424e3ab45499/data/layouts/Workman.lisp
lisp
(MAKE-LAYOUT :NAME "Workman" :MATRIX (APPLY #'KEY-MATRIX '("qdrwbjfup;" "ashtgyneoi" "zxmcvkl,./")) :SHIFT-MATRIX NIL :KEYBOARD NIL)
215507d72a039ed3f76b2aaff57eb9ff7a8b43839d0e79c4920d8a1d85ff799c
runtimeverification/haskell-backend
Main.hs
module Main (main) where import Data.Text.IO qualified as Text import GlobalMain import Kore.Parser ( parseKoreDefinition, ) import Kore.Syntax.Definition ( ParsedDefinition, ) import Kore.Unparser import Options.Applicative import Prelude.Kore import Pretty ( LayoutOptions (..), PageWidth (..), ...
null
https://raw.githubusercontent.com/runtimeverification/haskell-backend/b06757e252ee01fdd5ab8f07de2910711997d845/kore/app/format/Main.hs
haskell
| line width environment variable name for extra arguments
module Main (main) where import Data.Text.IO qualified as Text import GlobalMain import Kore.Parser ( parseKoreDefinition, ) import Kore.Syntax.Definition ( ParsedDefinition, ) import Kore.Unparser import Options.Applicative import Prelude.Kore import Pretty ( LayoutOptions (..), PageWidth (..), ...
fc63ce544cb850bdb171f4b0cf9a960ce15ca789215938e4f066810974901fa3
arcusfelis/xapian-erlang-bindings
xapian_server_tests.erl
%% This module is a `gen_server' that handles a single port connection. -module(xapian_server_tests). -include_lib("xapian/include/xapian.hrl"). -include_lib("xapian/src/xapian.hrl"). -compile([export_all]). -import(xapian_helper, [testdb_path/1]). %% Used for testing, then can be moved to an another file -define(SRV,...
null
https://raw.githubusercontent.com/arcusfelis/xapian-erlang-bindings/29871b3e64d658e74701c6ba68bf59e1a9b168f1/test/xapian_server_tests.erl
erlang
This module is a `gen_server' that handles a single port connection. Used for testing, then can be moved to an another file ------------------------------------------------------------------ Tests ------------------------------------------------------------------ --------------------------------------------------...
-module(xapian_server_tests). -include_lib("xapian/include/xapian.hrl"). -include_lib("xapian/src/xapian.hrl"). -compile([export_all]). -import(xapian_helper, [testdb_path/1]). -define(SRV, xapian_server). -include_lib("proper/include/proper.hrl"). -include_lib("eunit/include/eunit.hrl"). -include_lib("stdlib/includ...
991346f0859d397544aeace886cbae5fd2e3e8c1a70bf115d0776e5c52506fa9
nikita-volkov/rebase
Function.hs
module Rebase.Data.Function ( module Data.Function ) where import Data.Function
null
https://raw.githubusercontent.com/nikita-volkov/rebase/7c77a0443e80bdffd4488a4239628177cac0761b/library/Rebase/Data/Function.hs
haskell
module Rebase.Data.Function ( module Data.Function ) where import Data.Function
3d705ad79f2aa3848303601cfdb4d28a47d13e6d9db460561ca1051c9d265d69
ocaml/odoc
link.ml
module Url = Odoc_document.Url (* Translation from Url.Path *) module Path = struct let for_printing url = List.map snd @@ Url.Path.to_list url let segment_to_string (kind, name) = match kind with | `Module | `Page -> name | _ -> Format.asprintf "%a-%s" Url.Path.pp_kind kind name let is_leaf_page u...
null
https://raw.githubusercontent.com/ocaml/odoc/08ea62de6eb64d3d8931cdabd20b354e18e8f10e/src/html/link.ml
ocaml
Translation from Url.Path We're already on the right page If we're already on the right page, the target from our common ancestor can't be anything other than the empty list We're already in the right dir We need to go up some dirs
module Url = Odoc_document.Url module Path = struct let for_printing url = List.map snd @@ Url.Path.to_list url let segment_to_string (kind, name) = match kind with | `Module | `Page -> name | _ -> Format.asprintf "%a-%s" Url.Path.pp_kind kind name let is_leaf_page url = url.Url.Path.kind = `LeafPa...
72ebedca59617d3bb8ce8e27666400806ff6d029a4fa0c9cce28f11c3d96795c
racehub/stripe-clj
charge_test.clj
(ns stripe.charge-test (:use clojure.test stripe.charge) (:require [stripe.balance :as b] [stripe.test :as t] [stripe.test-data :as td])) (deftest charge-test "Test for charging a customer." (t/with-customer [created td/customer-data] (let [id (:id created) charge ...
null
https://raw.githubusercontent.com/racehub/stripe-clj/f8199bceacbec9d15ac58f32508aa1e78aa1b491/test/clj/stripe/charge_test.clj
clojure
(ns stripe.charge-test (:use clojure.test stripe.charge) (:require [stripe.balance :as b] [stripe.test :as t] [stripe.test-data :as td])) (deftest charge-test "Test for charging a customer." (t/with-customer [created td/customer-data] (let [id (:id created) charge ...
ac5a9d17c0a737cb16867dfe67b859efdc13155372bf2e3cf11eb03db00ac40e
hozumi/datomic-session
datomic_session.clj
(ns datomic-session (:require [clojure.data :as data] [datomic.api :as d] [ring.middleware.session.store :as rs])) (defn key->eid [db key-attr key] (ffirst (d/q '[:find ?eid :in $ ?key-attr ?key :where [?eid ?key-attr ?key]] db key-attr key))) (defn...
null
https://raw.githubusercontent.com/hozumi/datomic-session/3daf5b5fcd60dd547a660e16d674d245890dc74f/src/datomic_session.clj
clojure
(ns datomic-session (:require [clojure.data :as data] [datomic.api :as d] [ring.middleware.session.store :as rs])) (defn key->eid [db key-attr key] (ffirst (d/q '[:find ?eid :in $ ?key-attr ?key :where [?eid ?key-attr ?key]] db key-attr key))) (defn...
aa7981ce221d7ff4cee2ed1c624ad3444f164ed83711906e137b401aeb5c01ce
phoe-trash/gateway
already-logged-in.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;; GATEWAY " phoe " Herda 2016 already-logged-in.lisp (in-package #:gateway) #| Error ALREADY-LOGGED-IN Should be signaled when the user tries to perform a LOGIN command while already being logged in. Arguments: * AUTH: the NAM...
null
https://raw.githubusercontent.com/phoe-trash/gateway/a8d579ccbafcaee8678caf59d365ec2eab0b1a7e/_old/errors/already-logged-in.lisp
lisp
GATEWAY Error ALREADY-LOGGED-IN Should be signaled when the user tries to perform a LOGIN command while already being logged in. Arguments: * AUTH: the NAMED object representing whomever the user is already logged in as.
" phoe " Herda 2016 already-logged-in.lisp (in-package #:gateway) (define-gateway-error already-logged-in ((auth :reader already-logged-in-auth :initarg :auth :initform (error "Must provide previous auth."))) (owner connection condition) (((name (name (already-logged-in-auth c...
850f49dfddde7ac04bf1789f6185688bf13e230203d230000cdfc668cf51c594
stepcut/plugins
Plugin.hs
module Plugin where resource = 1 :: Int
null
https://raw.githubusercontent.com/stepcut/plugins/52c660b5bc71182627d14c1d333d0234050cac01/testsuite/pdynload/typealias/Plugin.hs
haskell
module Plugin where resource = 1 :: Int
1cb09b6e4691d66e470271508ca1b8b870fd27a3dbda806b06796d1d3f52cd2c
scalaris-team/scalaris
api_tx_concurrent_SUITE.erl
2008 - 2014 Zuse Institute Berlin % 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/scalaris-team/scalaris/feb894d54e642bb3530e709e730156b0ecc1635f/test/api_tx_concurrent_SUITE.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language go...
2008 - 2014 Zuse Institute Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author < > -module(api_tx_concurrent_SUITE). -author(''). -vsn('$Id$'). -compile(export_all). -include("unittest.hrl"). all(...
045560ae913d7f5771db9b51159f68f0dd0a721d85511a60112e29c83c602a33
upgradingdave/cljs
dev.cljs
(ns up.img.exif.dev (:require [devcards.core :as dc] [reagent.core :as r] [up.img.exif.core :as exif] [up.img.core :as img]) (:require-macros [devcards.core :as dc :refer [defcard deftest defcard-doc]] [cljs.test :refer [is testing]])) (def data (r/atom {})) (defcard ...
null
https://raw.githubusercontent.com/upgradingdave/cljs/1026b6db905214586fb7e04800df078da19b37cc/src/cljs/up/img/exif/dev.cljs
clojure
TODO: in progress
(ns up.img.exif.dev (:require [devcards.core :as dc] [reagent.core :as r] [up.img.exif.core :as exif] [up.img.core :as img]) (:require-macros [devcards.core :as dc :refer [defcard deftest defcard-doc]] [cljs.test :refer [is testing]])) (def data (r/atom {})) (defcard ...
92d25c2c399451232ff2c8d7878bb5b7998eb0dded9b1414d6b0fba7c68230ba
johnlawrenceaspden/hobby-code
clojure-is-fast-version-1.4.clj
;; Is Clojure Still Fast ? ;; Once upon a time I wrote a blog post saying that clojure was fast. It still is, and optimizing ;; it is now much easier than it used to be, but it doesn't seem to be *quite* as fast as it once ;; was. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;...
null
https://raw.githubusercontent.com/johnlawrenceaspden/hobby-code/48e2a89d28557994c72299962cd8e3ace6a75b2d/clojure-is-fast-version-1.4.clj
clojure
Is Clojure Still Fast ? Once upon a time I wrote a blog post saying that clojure was fast. It still is, and optimizing it is now much easier than it used to be, but it doesn't seem to be *quite* as fast as it once was. I optimized a program to solve a differential equation in a simple-minded way: The equation ...
Here 's a program to solve it using Euler 's method (defn f [t y] (- t y)) (defn solveit [t0 y0 h its] (if (> its 0) (let [t1 (+ t0 h) y1 (+ y0 (* h (f t0 y0)))] (recur t1 y1 h (dec its))) [t0 y0 h its])) call f with t0 and y0 , add that to y0 , you 'd expect , each loop woul...
20c1c69e3a490feffc4a1c04722ca71d1d71898699fb16027b27dcc08c752a1c
iu-parfunc/haskell_dsl_tour
Helpers.hs
# LANGUAGE TypeSynonymInstances , FlexibleInstances , FlexibleContexts , DeriveDataTypeable # module FrameworkHs.Helpers ( -- * Types for compiler configuration and construction P423Config (.. ) , PassM, getConfig, runPassM, orPassM , P423Exception ( AssemblyFailedException , ParseErrorE...
null
https://raw.githubusercontent.com/iu-parfunc/haskell_dsl_tour/f75a7e492a1e5d219a77fb128f70441d54a706eb/middle_end/nanopass/exercise/FrameworkHs/Helpers.hs
haskell
* Types for compiler configuration and construction , parseFailure * Helpers for representations * An alternative `Show` class for printing to X86 assembly code: * Emitting text to a handle * Shorthands for common emissions: * Pretty printing: * Parsing * Misc numeric and string helpers | A monad for impleme...
# LANGUAGE TypeSynonymInstances , FlexibleInstances , FlexibleContexts , DeriveDataTypeable # module FrameworkHs.Helpers ( P423Config (.. ) , PassM, getConfig, runPassM, orPassM , P423Exception ( AssemblyFailedException , ParseErrorException , ASTParseException ...
d2400aa9bbda7053adad6153ab43b1082eaf4c5ef6a1bb75b078e6fa7735d57a
emqx/emqx-sn
emqx_sn_registry.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 EMQ Technologies Co. , Ltd. All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the L...
null
https://raw.githubusercontent.com/emqx/emqx-sn/8f94f68f3740c328bd905e5d4581d58e9013fbba/src/emqx_sn_registry.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 ...
Copyright ( c ) 2020 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(emqx_sn_registry). -behaviour(gen_server). -include("emqx_sn.hrl"). -define(LOG(Level, Forma...
6077ca56f367e9f4b99511713fdb976419f8d3979208c18dc409fba0d0ee6672
johnlawrenceaspden/hobby-code
infix.clj
(def AND #(and %1 %2)) (def rank (zipmap [- + * / AND =] (iterate inc 1))) (defn infix* [[a b & [c d e & more]]] (cond (vector? a) (infix* (list* (infix* a) b c d e more)) (vector? c) (infix* (list* a b (infix* c) d e more)) (ifn? b) (if (and d (< (rank b 0) (rank d 0))) (infix* (list a b (in...
null
https://raw.githubusercontent.com/johnlawrenceaspden/hobby-code/48e2a89d28557994c72299962cd8e3ace6a75b2d/infix.clj
clojure
(def AND #(and %1 %2)) (def rank (zipmap [- + * / AND =] (iterate inc 1))) (defn infix* [[a b & [c d e & more]]] (cond (vector? a) (infix* (list* (infix* a) b c d e more)) (vector? c) (infix* (list* a b (infix* c) d e more)) (ifn? b) (if (and d (< (rank b 0) (rank d 0))) (infix* (list a b (in...
07e1133939b84e035dc6368821aef7d820c9ea513e5aae2c044e5ed1029afda4
scalaris-team/scalaris
yaws_soap12_lib.erl
%%%------------------------------------------------------------------- Created : 29 Nov 2006 by < > Author : ( ) . Desc . : Common SOAP code . %%%------------------------------------------------------------------- modified ( WdJ , May 2007 ): deal with imports in the WSDL . modified ( WdJ , Augus...
null
https://raw.githubusercontent.com/scalaris-team/scalaris/feb894d54e642bb3530e709e730156b0ecc1635f/contrib/yaws/src/yaws_soap12_lib.erl
erlang
------------------------------------------------------------------- ------------------------------------------------------------------- to be used for soap12 calls For testing... -define(dbg(X,Y), error_logger:info_msg("*dbg ~p(~p): " X, [?MODULE, ?LINE | Y])). Writes the heade...
Created : 29 Nov 2006 by < > Author : ( ) . Desc . : Common SOAP code . modified ( WdJ , May 2007 ): deal with imports in the WSDL . modified ( WdJ , August 2007 ): the WSDL can contain more than 1 schema copied from yaws_soap_lib ( , February 2012 ): -module(yaws_soap12_lib). -export([init...
b576ee9e16d35768da50f570f9ae1fd7c37e8e35f136487e70855667064a57ea
helvm/helma
FileExtra.hs
module HelVM.HelMA.Automata.FALSE.FileExtra where import HelVM.HelMA.Automata.FileExtra import HelVM.HelMA.Automaton.API.IOTypes readFFile :: FilePath -> IO Source readFFile = readSourceFile . buildAbsoluteFFileName buildAbsoluteFFileName :: FilePath -> FilePath buildAbsoluteFFileName = buildAbs...
null
https://raw.githubusercontent.com/helvm/helma/bd325a18d0a67c277ca38b608fd395ecb79a1dab/hs/test/HelVM/HelMA/Automata/FALSE/FileExtra.hs
haskell
module HelVM.HelMA.Automata.FALSE.FileExtra where import HelVM.HelMA.Automata.FileExtra import HelVM.HelMA.Automaton.API.IOTypes readFFile :: FilePath -> IO Source readFFile = readSourceFile . buildAbsoluteFFileName buildAbsoluteFFileName :: FilePath -> FilePath buildAbsoluteFFileName = buildAbs...
559d760407faa02599bfe69e4b919d981618e9231379e6309521005b099e9ae3
mzp/bs-lwt
lwt_simple_top.ml
Lightweight thread library for OCaml * * Module Lwt_simple_top * Copyright ( C ) 2009 * * 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 exceptions...
null
https://raw.githubusercontent.com/mzp/bs-lwt/f37a3c47d038f4efcd65912c41fab95d1e6633ce/lwt/src/simple_top/lwt_simple_top.ml
ocaml
Integration with the toplevel for people who do not use the enhanced toplevel (the utop project). This module is deprecated.
Lightweight thread library for OCaml * * Module Lwt_simple_top * Copyright ( C ) 2009 * * 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 exceptions...
c012381b1d13de828c309a8b062f3b2448959cf82e8f65c442501c19fc8489b7
nasa/Common-Metadata-Repository
granule.clj
(ns cmr.umm-spec.umm-g.granule "Contains functions for parsing UMM-G JSON into umm-lib granule model and generating UMM-G JSON from umm-lib granule model." (:require [cmr.umm-spec.umm-g.additional-attribute :as aa] [cmr.umm-spec.umm-g.data-granule :as data-granule] [cmr.umm-spec.umm-g.measured-parameters...
null
https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/aa5fbda43920dd9884c72282b5d69fd49a1d2bae/umm-spec-lib/src/cmr/umm_spec/umm_g/granule.clj
clojure
umm-lib Granule model does not have create-time, so ignore it for now. create-time (get-date-by-type provider-dates "Create") :create-time create-time
(ns cmr.umm-spec.umm-g.granule "Contains functions for parsing UMM-G JSON into umm-lib granule model and generating UMM-G JSON from umm-lib granule model." (:require [cmr.umm-spec.umm-g.additional-attribute :as aa] [cmr.umm-spec.umm-g.data-granule :as data-granule] [cmr.umm-spec.umm-g.measured-parameters...
dc19d789329de2f3c05b35accbde8468999603f8c9a8b2c0bd0e7176a744e317
Quid2/flat
AsSize.hs
# LANGUAGE InstanceSigs # # LANGUAGE NoMonomorphismRestriction # {-# LANGUAGE ScopedTypeVariables #-} | Wrapper type to decode a value to its size in bits . See also " Flat . AsBin " . In 0.5.X this type was called @SizeOf@. @since 0.6 Wrapper type to decode a value to its size in bi...
null
https://raw.githubusercontent.com/Quid2/flat/6a07e4004bb6d415710a98cebdac4aadc1bf59d5/src/Flat/AsSize.hs
haskell
# LANGUAGE ScopedTypeVariables # $setup >>> :set -XScopedTypeVariables >>> import Flat.Instances.Base >>> import Flat.Instances.Text >>> import Flat.Decoder.Types >>> import Flat.Types >>> import Flat.Run >>> import Data.Word >>> import qualified Data.Text as T
# LANGUAGE InstanceSigs # # LANGUAGE NoMonomorphismRestriction # | Wrapper type to decode a value to its size in bits . See also " Flat . AsBin " . In 0.5.X this type was called @SizeOf@. @since 0.6 Wrapper type to decode a value to its size in bits. See also "Flat.AsBin". In 0.5.X this ...
f407c9725a9fe0b49acdbeeaf3dab4e86519c1786ac80c54a1f5f2f339a0eff0
huiqing/percept2
percept2_sampling.erl
Copyright ( c ) 2012 , %% 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...
null
https://raw.githubusercontent.com/huiqing/percept2/fa796a730d6727210a71f185e6a39a960c2dcb90/src/percept2_sampling.erl
erlang
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: %% Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. %% Redi...
Copyright ( c ) 2012 , IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE BE LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR @author < > the profiler probes the running Erlang system at regular intervals . Sampling and the Gnuplot tool can be used for g...
6972b2aa811b67494be367683dff79902534b4684c257fa3c02a57a596009443
apache/couchdb-couch-index
couch_index_updater.erl
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 the License is distributed on an " A...
null
https://raw.githubusercontent.com/apache/couchdb-couch-index/f0a6854e578469612937a766632fdcdc52ee9c65/src/couch_index_updater.erl
erlang
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 WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations...
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not distributed under the License is distributed on an " AS IS " BASIS , WITHOUT -module(couch_index_updater). -behaviour(gen_server). -export([start_link/2, run/2, is_running/1, update/2, restart/2]). -export([update/3]). -export([i...
e5a4ce8028d6a2bc4abb020b1f7b2efcf8d9158b78d09e1ec11072bddbf64eec
hyperfiddle/electric
match1.clj
(ns dustin.match2) (def *type-registry (atom {})) (defmacro typedef [T] (swap! *type-registry assoc T {}) `(def T ^{:type T} {})) (typedef A) (declare match | >> _) (let [instance ^{:type `A} {::a 42}] (match instance | (A 42) = nil | (::B (::A 42)) = nil | (::B (::A _)) = nil | _ = nil)) ...
null
https://raw.githubusercontent.com/hyperfiddle/electric/1c6c3891cbf13123fef8d33e6555d300f0dac134/scratch/dustin/y2020/match1.clj
clojure
(ns dustin.match2) (def *type-registry (atom {})) (defmacro typedef [T] (swap! *type-registry assoc T {}) `(def T ^{:type T} {})) (typedef A) (declare match | >> _) (let [instance ^{:type `A} {::a 42}] (match instance | (A 42) = nil | (::B (::A 42)) = nil | (::B (::A _)) = nil | _ = nil)) ...
49ff7caf45a7d919195f98837148e636ad9dad2b29feadf981e7ee7368946635
plumatic/hiphip
double.clj
(ns hiphip.double "Utilities for double arrays" (:refer-clojure :exclude [amap areduce alength aget aset aclone]) (:require [hiphip.impl.core :as impl]) (:import hiphip.double_.Helpers)) (def +type+ 'double) (load-string (impl/slurp-from-classpath "hiphip/type_impl.clj"))
null
https://raw.githubusercontent.com/plumatic/hiphip/d839359cc1e4c453cd6ffe0b5857de550b3d7489/src/hiphip/double.clj
clojure
(ns hiphip.double "Utilities for double arrays" (:refer-clojure :exclude [amap areduce alength aget aset aclone]) (:require [hiphip.impl.core :as impl]) (:import hiphip.double_.Helpers)) (def +type+ 'double) (load-string (impl/slurp-from-classpath "hiphip/type_impl.clj"))
ca630052107859079e09512a578e65c5a756b3d6afa27997f4b09f9ed31b28b1
bsaleil/lc
array1.scm
ARRAY1 -- One of the and benchmarks . (define (create-x n) (define result (make-vector n)) (do ((i 0 (+ i 1))) ((>= i n) result) (vector-set! result i i))) (define (create-y x) (let* ((n (vector-length x)) (result (make-vector n))) (do ((i (- n 1) (- i 1))) ((< i 0) result) ...
null
https://raw.githubusercontent.com/bsaleil/lc/ee7867fd2bdbbe88924300e10b14ea717ee6434b/unit-tests/benchmarks/array1.scm
scheme
ARRAY1 -- One of the and benchmarks . (define (create-x n) (define result (make-vector n)) (do ((i 0 (+ i 1))) ((>= i n) result) (vector-set! result i i))) (define (create-y x) (let* ((n (vector-length x)) (result (make-vector n))) (do ((i (- n 1) (- i 1))) ((< i 0) result) ...
ebe29c9f8d2027a65a16bdbe88bfdab0ee1fba7815e132bafdd3936b22a2b239
KestrelInstitute/Specware
tokenizer.lisp
-*- Mode : LISP ; Package : Parser ; Base : 10 ; Syntax : Common - Lisp -*- (in-package :Parser4) ;;; ======================================================================== (defun ctp-arg-test (arg value example) (when (null value) (warn "create-tokenizer-parameters missing keyword arg ~S, e.g. ~A" arg...
null
https://raw.githubusercontent.com/KestrelInstitute/Specware/2be6411c55f26432bf5c9e2f7778128898220c24/Library/Algorithms/Parsing/Chart/Handwritten/Lisp/tokenizer.lisp
lisp
Package : Parser ; Base : 10 ; Syntax : Common - Lisp -*- ======================================================================== in cases where a character has both an illegal and a legal code for some context. whitespace-table is used when scanning whitespace... codes that are illegal after whi...
(in-package :Parser4) (defun ctp-arg-test (arg value example) (when (null value) (warn "create-tokenizer-parameters missing keyword arg ~S, e.g. ~A" arg example))) (defun create-tokenizer-parameters (&key name size-of-character-set word-symbol-start-chars word-symbol-con...
c6de675f0db01cae13f01757931e022bb696f5fd4ba5399f229d8428f8054ccf
schemeorg-community/index.scheme.org
srfi.219.scm
(((name . "define") (signature syntax-rules () ((_ variable expression)) ((_ (variable parameter1 ...) body)) ((_ (variable parameter1 ... . parameter) body)) ((_ ((variable inner-param1 ...) outter-param1 ...) body)) ((_ ((variable inner-param1 ...) outter-param1 ... . outter-rest) body)) ((_...
null
https://raw.githubusercontent.com/schemeorg-community/index.scheme.org/32e1afcfe423a158ac8ce014f5c0b8399d12a1ea/types/srfi.219.scm
scheme
(((name . "define") (signature syntax-rules () ((_ variable expression)) ((_ (variable parameter1 ...) body)) ((_ (variable parameter1 ... . parameter) body)) ((_ ((variable inner-param1 ...) outter-param1 ...) body)) ((_ ((variable inner-param1 ...) outter-param1 ... . outter-rest) body)) ((_...
2b561826f60fdbce57922f1aba579ac907c4c96cc4aeb49e7ddf84e00b444a33
facebook/infer
IStd.ml
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
null
https://raw.githubusercontent.com/facebook/infer/b1024aade8b9c7d7ba88ca381a5b8610534ddf02/infer/src/istd/IStd.ml
ocaml
easier to write Unix than Core_unix we don't care about the _unix distinction we don't care about the _unix distinction Compare police: generic compare mostly disabled. more careful about when the channel is connected to a tty
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
805087aa3180fdeecaf0f8ee3c38d24da43ce1d23d5afb19631faadd7d59f6df
tsloughter/kakapo
kakapo_sup.erl
-module(kakapo_sup). -behaviour(supervisor). %% API -export([start_link/0]). %% Supervisor callbacks -export([init/1]). %% =================================================================== %% API functions %% =================================================================== start_link() -> supervisor:start...
null
https://raw.githubusercontent.com/tsloughter/kakapo/7f2062029a2a26825055ef19ebe8d043d300df6b/apps/kakapo/src/kakapo_sup.erl
erlang
API Supervisor callbacks =================================================================== API functions =================================================================== =================================================================== Supervisor callbacks ================================================...
-module(kakapo_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, []). init(_Args) -> RestartStrategy = one_for_one, MaxRestarts = 1000, MaxSecondsBetweenRestarts = 3600, SupFlags = {RestartStrategy, MaxR...
c2af1f2559d4e25ea9d0135a171c8eff13d77bf4477b7ebf860c17372f440ebd
Beluga-lang/Beluga
substitution.ml
* Substitutions @author @author Brigitte Pientka *) open Support open Support.Equality open Syntax.Int.LF module LF = struct exception NotComposable of string (**************************) (* Explicit Substitutions *) (**************************) i d = ^0 * * Invariant : *...
null
https://raw.githubusercontent.com/Beluga-lang/Beluga/2b78691e1f3d850a6488ce9cdbba95e8dfbab739/src/core/substitution.ml
ocaml
************************ Explicit Substitutions ************************ Optimization Should be fixed; we really need phat of n to avoid printing Free BVar (n + k) ... (Head (HClo (phat. BVar n + k, s, sigma )) -bp Obj (Clo (nth s (tuple, k))) Obj (Clo...
* Substitutions @author @author Brigitte Pientka *) open Support open Support.Equality open Syntax.Int.LF module LF = struct exception NotComposable of string i d = ^0 * * Invariant : * * cPsi |- i d : cPsi i d is patsub * * Note : we do not take into accou...
8d72a631d311aec92752c080bd3073e4c0a59cadfcda6f082b881734132e3001
heyarne/airsonic-ui
subs.cljs
(ns bulma.dropdown.subs (:require [re-frame.core :as rf])) ;; NOTE: This is almost the same as bulma.modal.subs ;; Maybe we can provide some abstraction that covers both, but maybe we shouldn't (defn visible-dropdown "Gives us the ID of the currently visible dropdown" [db _] (get-in db [:bulma :visible-dropdo...
null
https://raw.githubusercontent.com/heyarne/airsonic-ui/7adb03d6e2ba0ff764796a57b7e87f62b242c9b7/src/cljs/bulma/dropdown/subs.cljs
clojure
NOTE: This is almost the same as bulma.modal.subs Maybe we can provide some abstraction that covers both, but maybe we shouldn't
(ns bulma.dropdown.subs (:require [re-frame.core :as rf])) (defn visible-dropdown "Gives us the ID of the currently visible dropdown" [db _] (get-in db [:bulma :visible-dropdown])) (rf/reg-sub ::visible-dropdown visible-dropdown) (defn visible? "Predicate to check the visibility of a single modal" [visi...
ee5f62ac6dd5429815a4e2f2591c071ad3b82cfd99b0b2664bc2f9e53f233814
orestis/reseda
nasa_apod.cljs
(ns reseda.demo.nasa-apod (:require [reseda.demo.util :refer [$] :as util] [reseda.state :as rs] [reseda.react :as rr] [reseda.react.experimental :as rre] [cljs-bean.core :refer [bean]] ["react" :as react])) (def api-key "HquDsZLQArdVX1iaFoZGnWM...
null
https://raw.githubusercontent.com/orestis/reseda/f14bf45e889859a0730a29e78a0d6c8dbec5c07e/src/reseda/demo/nasa_apod.cljs
clojure
(ns reseda.demo.nasa-apod (:require [reseda.demo.util :refer [$] :as util] [reseda.state :as rs] [reseda.react :as rr] [reseda.react.experimental :as rre] [cljs-bean.core :refer [bean]] ["react" :as react])) (def api-key "HquDsZLQArdVX1iaFoZGnWM...
edc2715096f266ab7cacac56e88cb323b5091774fe0885a62aee59737e8a4e36
bcc32/projecteuler-ocaml
import.ml
open! Core include Cmdliner include Euler_solution_helpers let error_s sexp = Or_error.error_s sexp |> Result.map_error ~f:(fun e -> `Msg (Error.to_string_hum e)) ;;
null
https://raw.githubusercontent.com/bcc32/projecteuler-ocaml/712f85902c70adc1ec13dcbbee456c8bfa8450b2/bin/import.ml
ocaml
open! Core include Cmdliner include Euler_solution_helpers let error_s sexp = Or_error.error_s sexp |> Result.map_error ~f:(fun e -> `Msg (Error.to_string_hum e)) ;;
d09fdd3c65da274a25efadf2d7999343d81ce27a09ef37195e5fc4ed8b70ba48
elaforge/karya
Sel.hs
Copyright 2015 -- This program is distributed under the terms of the GNU General Public -- License 3.0, see COPYING or -3.0.txt -- | The selection type. module Ui.Sel where import qualified Prelude import Prelude hiding (min, max) import qualified Data.Tuple as Tuple import qualified Util.Num as Num import qualif...
null
https://raw.githubusercontent.com/elaforge/karya/471a2131f5a68b3b10b1a138e6f9ed1282980a18/Ui/Sel.hs
haskell
This program is distributed under the terms of the GNU General Public License 3.0, see COPYING or -3.0.txt | The selection type. | Index into the the selection list. | The position the selection was established at. Since a selection can logically go off the edge of a block, this is not necessarily a valid Track...
Copyright 2015 module Ui.Sel where import qualified Prelude import Prelude hiding (min, max) import qualified Data.Tuple as Tuple import qualified Util.Num as Num import qualified Ui.Types as Types import Global import Types type Num = Int data Selection = Selection { start_track :: !TrackNum , start_p...
609a4dd718303ca43c1b0ef8680ccc12392284bc229ae421bf98bdd36761dad4
gndl/graffophone
graffophone.ml
* Copyright ( C ) 2015 * * All rights reserved . This file is distributed under the terms of the * GNU General Public License version 3.0 . * * This program is distributed in the hope that it will be useful , * but WITHOUT ANY WARRANTY ; without even the implied warranty of * MERCHANTABIL...
null
https://raw.githubusercontent.com/gndl/graffophone/71a12fcf8e799bb8ebfc37141b300ecbc9475c43/src/graffophone.ml
ocaml
* Copyright ( C ) 2015 * * All rights reserved . This file is distributed under the terms of the * GNU General Public License version 3.0 . * * This program is distributed in the hope that it will be useful , * but WITHOUT ANY WARRANTY ; without even the implied warranty of * MERCHANTABIL...
165d125a87a57029dab57b15efec95ad3f79da6ae9675e5353daa7f851f470a6
jamesmacaulay/cljs-promises
async.cljs
(ns cljs-promises.async (:require [cljs.core.async :as async] [cljs.core.async.impl.protocols :as impl] [cljs.core.async.impl.dispatch :as dispatch] [cljs-promises.core])) (defn extend-promises-as-channels! "If you want, you can globally extend Promise to act as a one-way channe...
null
https://raw.githubusercontent.com/jamesmacaulay/cljs-promises/9919912301eff6a0d5dd6af42be231c60eeaef01/src/cljs_promises/async.cljs
clojure
`cljs.core.async.impl.dispatch/run` runs the handler in the next run of the event loop, making it possible here for errors avoid promises' error capturing. Otherwise, errors from the promise can never escape `go` blocks. return nil to say "we're waiting on the value"
(ns cljs-promises.async (:require [cljs.core.async :as async] [cljs.core.async.impl.protocols :as impl] [cljs.core.async.impl.dispatch :as dispatch] [cljs-promises.core])) (defn extend-promises-as-channels! "If you want, you can globally extend Promise to act as a one-way channe...
e38a1c45b31aa113b39886531c944b5779b7d14de39d06a5275f6c6c1afc73e6
libguestfs/virt-v2v
output_vdsm.ml
virt - v2v * Copyright ( C ) 2009 - 2021 Red Hat Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation ; either version 2 of the License , or * ( at your option ) any later ...
null
https://raw.githubusercontent.com/libguestfs/virt-v2v/8ad152afc4dced17e26b40d3fe8f585da99c8816/output/output_vdsm.ml
ocaml
default "." -os must be set, but at this point we cannot check it. ... "data-center" "UUID" "UUID" "data-center" ... Create the target filenames. Create the actual output disk. Save parameters since we need them during finalization. Create the metadata. Write it to the metadata file.
virt - v2v * Copyright ( C ) 2009 - 2021 Red Hat Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation ; either version 2 of the License , or * ( at your option ) any later ...
c382914de7195f006fe8bc71facdef4b75494aee9c2d783a838ee27c73be72e1
brownplt/LambdaS5
ljs_pretty_value.ml
open Prelude open Ljs_values open Ljs_pretty open Format open FormatExt let pretty_var_loc loc = text ("#" ^ Store.print_loc loc) let pretty_obj_loc loc = text ("@" ^ Store.print_loc loc) let pretty_env env = let pretty_bind (var, loc) = horz [text var; text "="; pretty_var_loc loc] in braces (vert (map pretty_b...
null
https://raw.githubusercontent.com/brownplt/LambdaS5/f0bf5c7baf1daa4ead4e398ba7d430bedb7de9cf/src/ljs/ljs_pretty_value.ml
ocaml
Stores can be very large. This function avoids mapping over them, which tends to overflow the stack.
open Prelude open Ljs_values open Ljs_pretty open Format open FormatExt let pretty_var_loc loc = text ("#" ^ Store.print_loc loc) let pretty_obj_loc loc = text ("@" ^ Store.print_loc loc) let pretty_env env = let pretty_bind (var, loc) = horz [text var; text "="; pretty_var_loc loc] in braces (vert (map pretty_b...
0af076ebc0fda32b1b1365232f477529d7755dd93527b19c3efbe378904dd666
seven1240/idp_proxy
idp_proxy.erl
@author author < > YYYY author . %% @doc TEMPLATE. -module(idp_proxy). -author('author <>'). -export([start/0, stop/0]). ensure_started(App) -> case application:start(App) of ok -> ok; {error, {already_started, App}} -> ok end. @spec start ( ) - > ok %...
null
https://raw.githubusercontent.com/seven1240/idp_proxy/bdae5f9b4f6844cb49df108a4cab7658df8e46e8/src/idp_proxy.erl
erlang
@doc TEMPLATE. @doc Start the idp_proxy server. @doc Stop the idp_proxy server.
@author author < > YYYY author . -module(idp_proxy). -author('author <>'). -export([start/0, stop/0]). ensure_started(App) -> case application:start(App) of ok -> ok; {error, {already_started, App}} -> ok end. @spec start ( ) - > ok start() -> idp_...
abf08bab96e62157e2e458f58e408b8456902fac9506db5acbf22bef9ffda303
dym/movitz
named-integers.lisp
;;;;------------------------------------------------------------------ ;;;; Copyright ( C ) 2001 - 2004 , Department of Computer Science , University of Tromso , Norway . ;;;; ;;;; For distribution policy, see the accompanying file COPYING. ;;;; ;;;; Filename: named-integers.lisp ;;;; Description: ...
null
https://raw.githubusercontent.com/dym/movitz/56176e1ebe3eabc15c768df92eca7df3c197cb3d/losp/lib/named-integers.lisp
lisp
------------------------------------------------------------------ For distribution policy, see the accompanying file COPYING. Filename: named-integers.lisp Description: ------------------------------------------------------------------
Copyright ( C ) 2001 - 2004 , Department of Computer Science , University of Tromso , Norway . Author : < > Created at : Fri Jan 4 16:13:46 2002 $ I d : named - integers.lisp , v 1.6 2004/12/10 12:47:22 ffjeld Exp $ (require :lib/package) (require :lib/malloc-init) (provide :lib/named...
6f63cfd84db1ee9fc14b2e8c5e2db0100edbb58b33d381cf0010ba527ad44079
qfpl/reflex-workshop
Lists.hs
| Copyright : ( c ) 2018 , Commonwealth Scientific and Industrial Research Organisation License : : Stability : experimental Portability : non - portable Copyright : (c) 2018, Commonwealth Scientific and Industrial Research Organisation License : BSD3 Maintainer : Stability : experi...
null
https://raw.githubusercontent.com/qfpl/reflex-workshop/244ef13fb4b2e884f455eccc50072e98d1668c9e/src/Workshop/Collections/Lists.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE GADTs #
| Copyright : ( c ) 2018 , Commonwealth Scientific and Industrial Research Organisation License : : Stability : experimental Portability : non - portable Copyright : (c) 2018, Commonwealth Scientific and Industrial Research Organisation License : BSD3 Maintainer : Stability : experi...
0b6cb99e9645570b66d140a0f5dd706d8d963bcf641705e9b69182b531464699
EMSL-NMR-EPR/Haskell-MFAPipe-Executable
Class.hs
----------------------------------------------------------------------------- -- | Module : Science . Chemistry . EMU.HasSize . Class Copyright : 2016 - 17 Pacific Northwest National Laboratory -- License : ECL-2.0 (see the LICENSE file in the distribution) -- -- Maintainer : -- Stability : ...
null
https://raw.githubusercontent.com/EMSL-NMR-EPR/Haskell-MFAPipe-Executable/8a7fd13202d3b6b7380af52d86e851e995a9b53e/MFAPipe/src/Science/Chemistry/EMU/HasSize/Class.hs
haskell
--------------------------------------------------------------------------- | License : ECL-2.0 (see the LICENSE file in the distribution) Maintainer : Stability : experimental Portability : portable This module exports classes for calculating the size of Elementary ---------------------------------...
Module : Science . Chemistry . EMU.HasSize . Class Copyright : 2016 - 17 Pacific Northwest National Laboratory Metabolite Units ( EMU ) types . module Science.Chemistry.EMU.HasSize.Class ( HasSize(..) , partitionBySizeWith , partitionBySize ) where import Data.IntMap.Strict (IntMap) impor...
11ce2f8c30bde6ab326a525696bdf5fc016327230346be4213a9470a1aef7118
tfausak/advent-of-code
1.hs
-- stack --resolver lts-12.0 script import Control.Arrow ((&&&)) import qualified Data.Map as Map main = print . uncurry (*) . (count 2 &&& count 3) . map (Map.elems . foldr (\ x -> Map.insertWith (+) x 1) Map.empty) . lines =<< getContents count n = length . filter (elem n)
null
https://raw.githubusercontent.com/tfausak/advent-of-code/26f0d9726b019ff7b97fa7e0f2f995269b399578/2018/2/1.hs
haskell
stack --resolver lts-12.0 script
import Control.Arrow ((&&&)) import qualified Data.Map as Map main = print . uncurry (*) . (count 2 &&& count 3) . map (Map.elems . foldr (\ x -> Map.insertWith (+) x 1) Map.empty) . lines =<< getContents count n = length . filter (elem n)
7df1c58bd4c788e1bfe5e19f5c1912a8fd6d81965643f9fed0c45a3195254f6a
pesterhazy/cljs-spa-example
test_runner.cljs
(ns cljs-spa.test-runner (:require [clojure.test :refer-macros [deftest testing is run-tests]] [goog.object :as gobj] [figwheel.main.testing :refer-macros [run-tests-async]] [cljs-spa.core-test] ;; for side-effects [cljs-test-display.core :as td])) (defn extra-main [] ...
null
https://raw.githubusercontent.com/pesterhazy/cljs-spa-example/ef6e6042d0d0759f8bdfc6be4921b72170fd2352/tests/cljs_spa/test_runner.cljs
clojure
for side-effects is visiting the extra main page
(ns cljs-spa.test-runner (:require [clojure.test :refer-macros [deftest testing is run-tests]] [goog.object :as gobj] [figwheel.main.testing :refer-macros [run-tests-async]] [cljs-test-display.core :as td])) (defn extra-main [] (js/console.warn "extra-main") (run-tests (td/ini...
e46fcdedf0433f12f9c3e85075c2dbf2b014afc903fa2f459be09fc2a7122d1c
camfort/reprinter
Reprinter.hs
{-# LANGUAGE RankNTypes #-} {-# LANGUAGE DeriveDataTypeable #-} module Text.Reprinter ( module Data.Functor.Identity , module Data.Generics , module Data.Generics.Zipper , Span , Position , initPosition , initCol , initLine , mkCol , mkLine , advanceCol , advanceLine , RefactorType(..) , Re...
null
https://raw.githubusercontent.com/camfort/reprinter/bade15439ffe4308fe5f3b631cb7aafe31a2f5ad/src/Text/Reprinter.hs
haskell
# LANGUAGE RankNTypes # # LANGUAGE DeriveDataTypeable # Import solely for re-exporting for library clients | A line within the source text | A column within the source text | A position in a text (imagine a cursor) | The initial position | Given a position, go down a line, going back to the initial column | Type...
module Text.Reprinter ( module Data.Functor.Identity , module Data.Generics , module Data.Generics.Zipper , Span , Position , initPosition , initCol , initLine , mkCol , mkLine , advanceCol , advanceLine , RefactorType(..) , Refactorable(..) , Reprinting , catchAll , genReprinting ,...
f45c26a5c12846412c0467fa12a63f2340533152fad41998b59f727cd571028b
V-Wong/COMP3141
map.hs
import Prelude hiding (map) map :: (a -> b) -> [a] -> [b] map f [] = [] map f (x:xs) = f x : map f xs
null
https://raw.githubusercontent.com/V-Wong/COMP3141/f5a92e5833d2bb0a08e68cb2d025e38c8c875563/Random%20Code/map.hs
haskell
import Prelude hiding (map) map :: (a -> b) -> [a] -> [b] map f [] = [] map f (x:xs) = f x : map f xs
123f077e9b703b5afd3c7c0fd76c7e81ba417668b7906dc02af1ac389febae86
ocamllabs/ocaml-effects
ccomp.mli
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-effects/36008b741adc201bf9b547545344507da603ae31/utils/ccomp.mli
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . val command: string -> int val run_com...
5c45cccf9b104de1a857dc25897d76fe67e140bb013b022c3a093b2994b5933d
lasp-lang/partisan
partisan_peer_socket.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2017 . All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may obtain %% a copy of the ...
null
https://raw.githubusercontent.com/lasp-lang/partisan/968f72de16ebe20f18cc8b287497b6dd3789f9ab/src/partisan_peer_socket.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissio...
Copyright ( c ) 2017 . 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 -module(partisan_peer_socket)...
fe24f63988139e0e216e260c3cb9d649aca08fcc21553735600a19d3393f402d
Decentralized-Pictures/T4L3NT
op.mli
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > (* ...
null
https://raw.githubusercontent.com/Decentralized-Pictures/T4L3NT/6d4d3edb2d73575384282ad5a633518cba3d29e3/src/proto_alpha/lib_protocol/test/helpers/op.mli
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETH...
45f7f32e4d9646bb0f5198007ceea1d17290f2d9ea3c89bf8b63d232f9150362
swtwsk/vinci-lang
AST.hs
# LANGUAGE PatternSynonyms # # LANGUAGE FlexibleInstances # module Core.AST where import Control.Monad.Identity (Identity(Identity)) import Data.List (intercalate) import Core.Ops (BinOp(..), UnOp(..)) import Core.Types type VarName = String data VarId f = VarId { _varName :: VarName , _varType...
null
https://raw.githubusercontent.com/swtwsk/vinci-lang/9c7e01953e0b1cf135af7188e0c71fe6195bdfa1/src/Core/AST.hs
haskell
&& eqF type1 type2 SHOWS
# LANGUAGE PatternSynonyms # # LANGUAGE FlexibleInstances # module Core.AST where import Control.Monad.Identity (Identity(Identity)) import Data.List (intercalate) import Core.Ops (BinOp(..), UnOp(..)) import Core.Types type VarName = String data VarId f = VarId { _varName :: VarName , _varType...
b01c5fc44554073e481966a0c0ddac0591d72256fe891652152a481f858db6a2
donut-party/system
multiple_http_servers.clj
(ns donut.examples.multiple-http-servers (:require [donut.system :as ds] [ring.adapter.jetty :as rj])) (def HTTPServer #::ds{:start (fn [{:keys [::ds/config]}] (let [{:keys [handler options]} config] (rj/run-jetty handler options))) :stop (fn [{:keys [::ds/in...
null
https://raw.githubusercontent.com/donut-party/system/ce1ca6b7f8342e478d0a436014cbb4fd140908fe/dev/donut/examples/multiple_http_servers.clj
clojure
(ns donut.examples.multiple-http-servers (:require [donut.system :as ds] [ring.adapter.jetty :as rj])) (def HTTPServer #::ds{:start (fn [{:keys [::ds/config]}] (let [{:keys [handler options]} config] (rj/run-jetty handler options))) :stop (fn [{:keys [::ds/in...
88dbd0db429c8e74a5e54654269e11d4dede022120ddbe7e0aef69dc2cc4f977
logicmoo/wam_common_lisp
translate.lsp
-*- Mode : Lisp ; Package : XLIB ; Syntax : COMMON - LISP ; ; Lowercase : YES -*- ( c ) Copyright Enhancements by , 1994 . ;;; TEXAS INSTRUMENTS INCORPORATED ;;; P.O. BOX 2909 AUSTIN , TEXAS 78769 ;;; Copyright ( C ) 1987 Texas Instruments Incorporated . ;;; ;;; Permission is granted to any...
null
https://raw.githubusercontent.com/logicmoo/wam_common_lisp/4396d9e26b050f68182d65c9a2d5a939557616dd/prolog/wam_cl/src/clx/translate.lsp
lisp
Package : XLIB ; Syntax : COMMON - LISP ; ; Lowercase : YES -*- P.O. BOX 2909 Permission is granted to any individual or institution to use, copy, modify, and distribute this software, provided that this complete copyright and permission notice is maintained, intact, in all copies and supporting document...
( c ) Copyright Enhancements by , 1994 . TEXAS INSTRUMENTS INCORPORATED AUSTIN , TEXAS 78769 Copyright ( C ) 1987 Texas Instruments Incorporated . Texas Instruments Incorporated provides this software " as is " without (in-package :xlib) Alist of ( name first - keysym last - keysym ) (defun ...
719bbca3dbe183979a7e9c3aa755a22fcb34c69521a2fab3f734c8c2102a450b
lindenbaum/hinterface
ControlMessageSpec.hs
# LANGUAGE ScopedTypeVariables # module Foreign.Erlang.ControlMessageSpec (spec) where import Data.Binary (decode, encode) import qualified Data.ByteString.Lazy as LBS import Foreign.Erlang.ControlMessage import Foreign.Erlang.Term import Test.Hspec import Test.QuickCheck spec :: Spec spec = describe "ControlMessage...
null
https://raw.githubusercontent.com/lindenbaum/hinterface/e49810b5984486cebad6fa06dba0f2c7f2bfd2fa/test/Foreign/Erlang/ControlMessageSpec.hs
haskell
# LANGUAGE ScopedTypeVariables # module Foreign.Erlang.ControlMessageSpec (spec) where import Data.Binary (decode, encode) import qualified Data.ByteString.Lazy as LBS import Foreign.Erlang.ControlMessage import Foreign.Erlang.Term import Test.Hspec import Test.QuickCheck spec :: Spec spec = describe "ControlMessage...
9b74751e908276d1dd02633bf647303b8c03c16bacbf49bbf1449bc068d7d727
pat227/ocaml-pgsql-model
types_we_emit.ml
module Types_we_emit = struct type t = | Bignum | CoreInt32 | CoreInt64 | Float | Date | Time (*===TODO===for the really paranoid; introduce a type that extends string and is length aware, and never permits truncation when storing to the db, although would have to handle runtime exc...
null
https://raw.githubusercontent.com/pat227/ocaml-pgsql-model/17f4ad13dd26fbc228867841e61d153bac890e18/src/lib/types_we_emit.ml
ocaml
===TODO===for the really paranoid; introduce a type that extends string and is length aware, and never permits truncation when storing to the db, although would have to handle runtime exceptions Return a string we can use in writing a module that is a type. * is_optional - is the field, of whatever type, opti...
module Types_we_emit = struct type t = | Bignum | CoreInt32 | CoreInt64 | Float | Date | Time | String | Bool [@@deriving show] let to_string ~t ~is_nullable = if is_nullable then match t with | Bignum -> "Bignum_extended.t option" | CoreInt64 -> "CoreInt64_ext...
2ce85c9bd1b49d4b8129a9149bf5d612ba1441fc56ffb3ca024db946b0bfa6d2
beastaugh/hatt
Propositional.hs
-- | The "Data.Logic.Propositional" module provides a set of functions for -- parsing, manipulating and generating truth tables for expressions in -- classical propositional logic. -- The core of the API is the ' ' data type , which has constructors for all -- the usual expression forms: variables, standing for atom...
null
https://raw.githubusercontent.com/beastaugh/hatt/c727cba2a444a7026c5172e719e2fccaf5805bdc/src/Data/Logic/Propositional.hs
haskell
| The "Data.Logic.Propositional" module provides a set of functions for parsing, manipulating and generating truth tables for expressions in classical propositional logic. the usual expression forms: variables, standing for atomic propositions; negation, the only unary connective; and the binary connectives of c...
The core of the API is the ' ' data type , which has constructors for all module Data.Logic.Propositional ( Expr (..) , Var (..) , Mapping , equivalent , equivalents , implies , interpret , assignments , values , variables , isContingent , isContradiction , is...
29bb2f3f03645d3436ab61294f88faf607f598e5464db887a847f5f83bd67f88
RJ/mochiweb-websockets
mochiweb_socket_server.erl
@author < > 2007 Mochi Media , Inc. @doc MochiWeb socket server . -module(mochiweb_socket_server). -author(''). -behaviour(gen_server). -include("internal.hrl"). -export([start/1, stop/1]). -export([init/1, handle_call/3, handle_cast/2, terminate/2, code_change/3, handle_info/2]). -export([get/2,...
null
https://raw.githubusercontent.com/RJ/mochiweb-websockets/aded564a1a647157258d54f346bbb5231b07550e/src/mochiweb_socket_server.erl
erlang
NOTE: This is currently ignored. Internal API IPv4, and IPv6 if supported IPv6 If there was an unexpected error accepting, log and sleep. this is what release_handler needs to get a list of modules, since our supervisor modules list is set to 'dynamic' If for some reason we can't get the module name, send empty...
@author < > 2007 Mochi Media , Inc. @doc MochiWeb socket server . -module(mochiweb_socket_server). -author(''). -behaviour(gen_server). -include("internal.hrl"). -export([start/1, stop/1]). -export([init/1, handle_call/3, handle_cast/2, terminate/2, code_change/3, handle_info/2]). -export([get/2,...
dcf7b2e49e9751fd254d10ec513bf2d57bcebe96ddbb67e61d09f7446bb1215b
Mallku2/lua-redex-model
expsTests.rkt
#lang racket ; Black-box testing for expression that don't interact with some store (require redex "../grammar.rkt" "../Relations/exps.rkt") (define (exps-test-suite) ; Operator () (test-->> exps (term (\( (< 1 2 3 >) \))) 1) (test-->> exps (term (\( (< >) \...
null
https://raw.githubusercontent.com/Mallku2/lua-redex-model/13a1b8cacbdc72a1b5cb1a1f140f21cc974d71c3/Tests/expsTests.rkt
racket
Black-box testing for expression that don't interact with some store Operator () Arithmetic Operations Equality comparison Number order comparison String order comparison String concatenation String length Logical conectives Coercion Abnormal expressions
#lang racket (require redex "../grammar.rkt" "../Relations/exps.rkt") (define (exps-test-suite) (test-->> exps (term (\( (< 1 2 3 >) \))) 1) (test-->> exps (term (\( (< >) \))) (term nil)) (test-->> exps (term (\( 1 \))) (...
a3264cac07e18c13bb8211d8990dd3324d95b47778fca55f8cd249465aea0867
drewolson/aoc-hs
Day11Spec.hs
module Aoc.Year2021.Day11Spec ( spec, ) where import Aoc.Year2021.Day11 qualified as Day11 import Test.Hspec (Spec, describe, it, shouldBe) import Text.RawString.QQ (r) input :: String input = [r|5483143223 2745854711 5264556173 6141336146 6357385478 4167524645 2176841721 6882881134 4846848554 5283751526 |] sp...
null
https://raw.githubusercontent.com/drewolson/aoc-hs/b0f06843e1f7d8c2af1da582e59a72d8f2bb73bf/aoc-year2021/test/Aoc/Year2021/Day11Spec.hs
haskell
module Aoc.Year2021.Day11Spec ( spec, ) where import Aoc.Year2021.Day11 qualified as Day11 import Test.Hspec (Spec, describe, it, shouldBe) import Text.RawString.QQ (r) input :: String input = [r|5483143223 2745854711 5264556173 6141336146 6357385478 4167524645 2176841721 6882881134 4846848554 5283751526 |] sp...
6ff2a4a72b159dcb37dd3cb86a4bcb3615f7410aacbf0506d2fc9e3ce9edb95b
bobzhang/fan
gadt_32.ml
(** FAILED *) type _ u = |A : int -> int u |B : bool -> bool u
null
https://raw.githubusercontent.com/bobzhang/fan/7ed527d96c5a006da43d3813f32ad8a5baa31b7f/src/todoml/tests/gadt_32.ml
ocaml
* FAILED
type _ u = |A : int -> int u |B : bool -> bool u
5326f8ed8b61f013cbc16cec1979966ec8e80476a1b80a0e12a943c884c6ca6e
scheme/rx
interfaces.scm
(define-interface utilities-interface (export mapv mapv! vector-every? copy-vector initialize-vector vector-append vfold vfold-right check-arg deprecated-proc real->exact-integer)) (define-interface let-opt-expanders-interface (export expand-let-optionals ...
null
https://raw.githubusercontent.com/scheme/rx/dd9037f6f9ea01019390614f6b126b7dd293798d/interfaces.scm
scheme
posixstr.scm spencer
(define-interface utilities-interface (export mapv mapv! vector-every? copy-vector initialize-vector vector-append vfold vfold-right check-arg deprecated-proc real->exact-integer)) (define-interface let-opt-expanders-interface (export expand-let-optionals ...
bdbdbb9ddeb03fba60325c6223d46b724b7f91b5a33d741936324ac83ef6e5b7
thizanne/cormoran
top.ml
open Batteries module ProgramState : Domain.ProgramState = struct type t = Top let bottom = Top let is_bottom Top = false let equal Top Top = true let top _ = Top let transfer _ _ Top = Top let meet_cond _ Top = Top let join Top Top = Top let widening Top Top = Top let print output Top = U...
null
https://raw.githubusercontent.com/thizanne/cormoran/46d13330ebd1c8224a0603fd473d8e6bed48bf53/src/domains/top.ml
ocaml
open Batteries module ProgramState : Domain.ProgramState = struct type t = Top let bottom = Top let is_bottom Top = false let equal Top Top = true let top _ = Top let transfer _ _ Top = Top let meet_cond _ Top = Top let join Top Top = Top let widening Top Top = Top let print output Top = U...
9bab760914f89683125a594536e95a47a1a592a74df84aa8974f478af2c55d9c
skanev/playground
14-tests.scm
(require rackunit rackunit/text-ui) (load-relative "../../support/eopl.scm") (load-relative "../14.scm") (define eopl-2.14-tests (test-suite "Tests for EOPL exercise 2.14" (check-exn exn? (lambda () (apply-env (empty-env) 'a))) (check-exn exn? (lambda () (apply-env (extend-env 'a 1 (empty-env)) 'b))) ...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/eopl/02/tests/14-tests.scm
scheme
(require rackunit rackunit/text-ui) (load-relative "../../support/eopl.scm") (load-relative "../14.scm") (define eopl-2.14-tests (test-suite "Tests for EOPL exercise 2.14" (check-exn exn? (lambda () (apply-env (empty-env) 'a))) (check-exn exn? (lambda () (apply-env (extend-env 'a 1 (empty-env)) 'b))) ...
efa19daac4fbe4b344be3494a2714426d0b9e5500e8ea14d0f91c36abb06be71
metabase/metabase
chain_filter_test.clj
(ns metabase.models.params.chain-filter-test (:require [cheshire.core :as json] [clojure.test :refer :all] [metabase.models :refer [Field FieldValues]] [metabase.models.field-values :as field-values] [metabase.models.params.chain-filter :as chain-filter] [metabase.models.params.field-values :as para...
null
https://raw.githubusercontent.com/metabase/metabase/1f809593c2298ccf9c4070df3fa39d718eddb5d6/test/metabase/models/params/chain_filter_test.clj
clojure
there is no way to join from venues -> users so users.id should get ignored --------------------------------------------------- Remapping ---------------------------------------------------- warm up the cache make sure we have a clean start warm up the cache make sure we have a clean start warm up the cache in ...
(ns metabase.models.params.chain-filter-test (:require [cheshire.core :as json] [clojure.test :refer :all] [metabase.models :refer [Field FieldValues]] [metabase.models.field-values :as field-values] [metabase.models.params.chain-filter :as chain-filter] [metabase.models.params.field-values :as para...
ab9cc9ab9e9a754531512b1cce78372d008a3f97ad2d079e47a51ed68e0c4f78
polysemy-research/polysemy-zoo
Cont.hs
# LANGUAGE AllowAmbiguousTypes , Trustworthy # module Polysemy.Cont (-- * Effect Cont(..) -- * Actions , jump , subst , callCC -- * Interpretations , runContPure , runContM , contToFinal -- * Experimental Interpretations , runContViaFresh -- * Unsafe Interpretations , runContUn...
null
https://raw.githubusercontent.com/polysemy-research/polysemy-zoo/eb0ce40e4d3b9757ede851a3450c05cc42949b49/src/Polysemy/Cont.hs
haskell
* Effect * Actions * Interpretations * Experimental Interpretations * Unsafe Interpretations * Prompt types --------------------------------------------------------------------------- | Call with current continuation. Executing the provided continuation will abort execution. Using the provided continuation w...
# LANGUAGE AllowAmbiguousTypes , Trustworthy # module Polysemy.Cont Cont(..) , jump , subst , callCC , runContPure , runContM , contToFinal , runContViaFresh , runContUnsafe , Ref(..) , ExitRef(..) , ViaFreshRef ) where import Data.Void import Polysemy import Polysemy.Final import Po...
9b1ba63ccd52a1a925a9c41155dd8a11c861c4a7190614c0b3f7d28a3f2bc877
locusmath/locus
object.clj
(ns locus.set.copresheaf.dependency.core.object (:require [locus.set.logic.core.set :refer :all] [locus.set.logic.limit.product :refer :all] [locus.set.logic.sequence.object :refer :all] [locus.con.core.setpart :refer :all] [locus.set.logic.structure.protocols :refer :a...
null
https://raw.githubusercontent.com/locusmath/locus/2eb08b9fc0aaa76b181ec625a7bc898f31e436e8/src/clojure/locus/set/copresheaf/dependency/core/object.clj
clojure
These are generalisations of functional dependencies of relations. The topos of lower bijective triangles consists of presheaves over the total The topos of upper bijective triangles consists of presheaves over the total The topos of trijections is a natural generalisation of the topos of bijections to its algebra...
(ns locus.set.copresheaf.dependency.core.object (:require [locus.set.logic.core.set :refer :all] [locus.set.logic.limit.product :refer :all] [locus.set.logic.sequence.object :refer :all] [locus.con.core.setpart :refer :all] [locus.set.logic.structure.protocols :refer :a...
587261f7e7d747289a8520c492c4bdf5aa7975ab9f44c9f3376494428da07d37
argp/bap
batLazyList.ml
* LazyListLabels - lazily - computed lists * Copyright ( C ) 2008 * * This library 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 ; either * version 2.1 of the License , or ( at ...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/batteries/src/batLazyList.ml
ocaml
* {6 Finding} *Revert a list, convert it to a lazy list. Used as an optimisation. *Revert a list, convert it to a lazy list and append it. Used as an optimisation. * Eager conversion to list. * Lazy conversion to stream. * Eager conversion to array. * Lazy conversion from stream. * Eager conver...
* LazyListLabels - lazily - computed lists * Copyright ( C ) 2008 * * This library 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 ; either * version 2.1 of the License , or ( at ...
267843f9acc65df5c569370654799c084bf9100ebb2b839fb8017f3f4e3f9807
artyom-poptsov/guile-png
image-processing.scm
;;; image-processing.scm -- Image processing procedures. Copyright ( C ) 2022 < > ;; ;; 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 3 of the License , or ;; (at your opt...
null
https://raw.githubusercontent.com/artyom-poptsov/guile-png/03386be98972850be833662a5ce31c3ce581e82a/modules/png/image-processing.scm
scheme
image-processing.scm -- Image processing procedures. This program is free software: you can redistribute it and/or modify (at your option) any later version. The program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS F...
Copyright ( C ) 2022 < > it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License (define-module (png image-processing) #:use-module (oop goops) #:us...
bf701c89f5a1cf963562a9c0f1ee8e58c7070201145019255de3f0e7993be7fd
clojure-interop/aws-api
AbstractAWSResourceGroupsAsync.clj
(ns com.amazonaws.services.resourcegroups.AbstractAWSResourceGroupsAsync "Abstract implementation of AWSResourceGroupsAsync. Convenient method forms pass through to the corresponding overload that takes a request object and an AsyncHandler, which throws an UnsupportedOperationException." (:refer-clojure :only [...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.resourcegroups/src/com/amazonaws/services/resourcegroups/AbstractAWSResourceGroupsAsync.clj
clojure
(ns com.amazonaws.services.resourcegroups.AbstractAWSResourceGroupsAsync "Abstract implementation of AWSResourceGroupsAsync. Convenient method forms pass through to the corresponding overload that takes a request object and an AsyncHandler, which throws an UnsupportedOperationException." (:refer-clojure :only [...
9b1eeed8176c0ffb942c7bd7a1993ee32cb1dbacf1681d22a6b8a71a6fc6c113
robertzk/xgboost.hs
Foreign.hs
# LANGUAGE ForeignFunctionInterface # # LANGUAGE FlexibleInstances # {-# LANGUAGE EmptyDataDecls #-} {-# CFILES xgboost_wrapper.cpp #-} However , we use the C interface to Xgboost . module Xgboost.Foreign ( -- Error handling xgboostGetLastError, -- Data I/O xgboostMatrixCreateFromCSR, xgboostMatr...
null
https://raw.githubusercontent.com/robertzk/xgboost.hs/b0b8890eba63a4dd25de3413b12a727f5e2fedac/src/Xgboost/Foreign.hs
haskell
# LANGUAGE EmptyDataDecls # # CFILES xgboost_wrapper.cpp # Error handling Data I/O Mutators for matrix meta-data Accessors for matrix meta-data Booster object construction and manipulation Booster training methods Booster predict methods Booster object I/O For the prelude of the extracted C documentation, see ...
# LANGUAGE ForeignFunctionInterface # # LANGUAGE FlexibleInstances # However , we use the C interface to Xgboost . module Xgboost.Foreign ( xgboostGetLastError, xgboostMatrixCreateFromCSR, xgboostMatrixCreateFromFile, xgboostMatrixCreateFromMat, xgboostMatrixSliceDMatrix, xgboostMatrixFree, xg...
ab434ffe4dcc34bf5856b0e534d3b4ad421ad600a8f026cd18030679a5f2020b
OCamlPro/freeton_ocaml_sdk
main.ml
(**************************************************************************) (* *) Copyright ( c ) 2021 OCamlPro SAS (* *) (* All right...
null
https://raw.githubusercontent.com/OCamlPro/freeton_ocaml_sdk/42a0d95252ed19c647fa86e9728af15d557fc5e3/src/freeton_client_lwt/main.ml
ocaml
************************************************************************ All rights reserved. This file is distributed u...
Copyright ( c ) 2021 OCamlPro SAS Public License version 2.1 , with the special exception on linking let main () = Printf.printf "Hello world!\n"
3b06138cf697ea125db6d4f0c0c8267cf8d7cb8bc733e012191d661073c414d0
iu-parfunc/HSBencher
Codespeed.hs
# LANGUAGE NamedFieldPuns , RecordWildCards , ScopedTypeVariables , CPP , BangPatterns # # LANGUAGE TupleSections , DeriveDataTypeable # # LANGUAGE TypeFamilies # {-# LANGUAGE OverloadedStrings #-} | CodeSpeed website upload of benchmark data . -- -- This module must be used in conjunction with the main "hsbenche...
null
https://raw.githubusercontent.com/iu-parfunc/HSBencher/76782b75b3a4b276c45a2c159e0b4cb6bd8a2360/hsbencher-codespeed/HSBencher/Backend/Codespeed.hs
haskell
# LANGUAGE OverloadedStrings # This module must be used in conjunction with the main "hsbencher" package, add the plugin * The plugin itself, what you probably want * Details and configuration options. , uploadBenchResult ------------------------------------------------------------------------------ | A d...
# LANGUAGE NamedFieldPuns , RecordWildCards , ScopedTypeVariables , CPP , BangPatterns # # LANGUAGE TupleSections , DeriveDataTypeable # # LANGUAGE TypeFamilies # | CodeSpeed website upload of benchmark data . e.g. " import HSBencher " , and then " import HSBencher . Backend . CodeSpeed " and module HSBencher.B...
fa53ac87fbd757b3357287a52c5dc32fdce19753fba2ed1917c2ea4405a8653e
sky-big/RabbitMQ
rabbit_channel_sup.erl
The contents of this file are subject to the Mozilla Public License %% Version 1.1 (the "License"); you may not use this file except in %% compliance with the License. You may obtain a copy of the License %% at / %% Software distributed under the License is distributed on an " AS IS " %% basis, WITHOUT WARRANTY OF ...
null
https://raw.githubusercontent.com/sky-big/RabbitMQ/d7a773e11f93fcde4497c764c9fa185aad049ce2/src/rabbit_channel_sup.erl
erlang
Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. ----------------...
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is RabbitMQ . The Initial Developer of the Original Code is GoPivotal , Inc. Copyright ( c ) 2007 - 2014 GoPivotal , Inc. All rights reserved . -module...
745996c2071838f15476a5158c3c1ec106c6cca3b41366891d7620d4177b9ab5
purescript/purescript
AsHtml.hs
| Functions for rendering generated documentation from PureScript code as -- HTML. module Language.PureScript.Docs.AsHtml ( HtmlOutput(..), HtmlOutputModule(..), HtmlRenderContext(..), nullRenderContext, packageAsHtml, moduleAsHtml, makeFragment, renderMarkdown ) where import Prelude import Control...
null
https://raw.githubusercontent.com/purescript/purescript/2c78eb614cb1f3556737900e57d0e7395158791e/src/Language/PureScript/Docs/AsHtml.hs
haskell
HTML. | where go = takeLocals getIndex (_, title_) = do c <- textHeadMay title_ guard (toUpper c `elem` ['A'..'Z']) pure c textHeadMay t = 0 -> Nothing _ -> Just (T.index t 0) renderEntry (mn, title_) = li $ do let url = T.pack (filePathFor mn `relativeTo` "i...
| Functions for rendering generated documentation from PureScript code as module Language.PureScript.Docs.AsHtml ( HtmlOutput(..), HtmlOutputModule(..), HtmlRenderContext(..), nullRenderContext, packageAsHtml, moduleAsHtml, makeFragment, renderMarkdown ) where import Prelude import Control.Category...
f338214d2030b569a4daaa66d2961d5b5dccbde38740d7cd8ed657d16b901fdc
TheRiver/L-MATH
spline-interpolation.lisp
(in-package #:l-math) ;;; L-MATH: a library for simple linear algebra. Copyright ( C ) 2009 - 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 3 of the License , o...
null
https://raw.githubusercontent.com/TheRiver/L-MATH/81f43d21ea0bc75f949fbdfb3701afbab4183d38/spline-interpolation.lisp
lisp
L-MATH: a library for simple linear algebra. This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PA...
(in-package #:l-math) Copyright ( C ) 2009 - 2012 it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License Additional permission under GNU GPL version 3 section ...
70a75513516ef8c9f054ca4d55280e635d89a0bcfd2695a87cca69e7b0ba9834
gigasquid/hyperdimensional-playground
core_test.clj
(ns hyperdimensional-playground.core-test (:require [clojure.test :refer :all] [hyperdimensional-playground.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
null
https://raw.githubusercontent.com/gigasquid/hyperdimensional-playground/ee83b9b38467f3ae60b82e70ec78db6563dbf17a/test/hyperdimensional_playground/core_test.clj
clojure
(ns hyperdimensional-playground.core-test (:require [clojure.test :refer :all] [hyperdimensional-playground.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
a92c332816497f47e0e9e5132de93b0e265e3745535f873a8f5afe7d0ed2891c
Frama-C/Frama-C-snapshot
function_Froms.ml
(**************************************************************************) (* *) This file is part of Frama - C. (* *) Copyright ...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/value_types/function_Froms.ml
ocaml
************************************************************************ alternatives) ...
This file is part of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , v...
c8b3458114eec5b2635fcd3d027677973ba1891806703aa56292d46646759bc6
rixed/ramen
RamenOCamlCompiler.ml
open Batteries open RamenLog open RamenHelpersNoLog open RamenHelpers module C = RamenConf module N = RamenName module Files = RamenFiles let max_simult_compilations = Atomic.Counter.make 4 let use_external_compiler = ref false let warnings = "-8-58-26@5" (* Mostly copied from ocaml source code driver/optmain.ml *) ...
null
https://raw.githubusercontent.com/rixed/ramen/c45cb3fcde6ad1e350bbf45a4bee385dcb51c30d/src/RamenOCamlCompiler.ml
ocaml
Mostly copied from ocaml source code driver/optmain.ml Return a formatter outputting in the logger Takes a source file and produce an object file: equivalent to -O2: TODO: return an array of arguments and get rid of the shell As this might well be an installation problem, makes this error * report ...
open Batteries open RamenLog open RamenHelpersNoLog open RamenHelpers module C = RamenConf module N = RamenName module Files = RamenFiles let max_simult_compilations = Atomic.Counter.make 4 let use_external_compiler = ref false let warnings = "-8-58-26@5" module Backend = struct let symbol_for_global' = Compilenv....