_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
ed6b2b5c2a33bc6f310c9a5f0532cdd7503508c001647dcf2e35d5c7821f70bf
kpblc2000/KpblcLispLib
_kpblc-block-dynprop-set.lsp
(defun _kpblc-block-dynprop-set (blk-ref lst / pr prop_list) ;| * Óñòàíàâëèâàåò äèíàìè÷åñêîå ñâîéñòâî áëîêà * Ïàðàìåòðû âûçîâà: blk-ref ; âõîæäåíèå áëîêà ñïèñîê òî÷å÷íûõ ïàð âèäà ' ( ( < ÈìÿÑâîéñòâà > . < ÍîâîåÇíà÷åíèå > ) < ... > ) . * Ïðèìåðû âûçîâà: (_kpblc-block...
null
https://raw.githubusercontent.com/kpblc2000/KpblcLispLib/4fb3508af5ed798f5d1dee98af2d7088976a145f/lsp/block/dynprop/_kpblc-block-dynprop-set.lsp
lisp
| âõîæäåíèå áëîêà _ end of mapcar _ end of setq _ end of cond _ end of setq _ end of if _ end of foreach _ end of if _ end of defun
(defun _kpblc-block-dynprop-set (blk-ref lst / pr prop_list) * Óñòàíàâëèâàåò äèíàìè÷åñêîå ñâîéñòâî áëîêà * Ïàðàìåòðû âûçîâà: ñïèñîê òî÷å÷íûõ ïàð âèäà ' ( ( < ÈìÿÑâîéñòâà > . < ÍîâîåÇíà÷åíèå > ) < ... > ) . * Ïðèìåðû âûçîâà: (_kpblc-block-dynprop-set (car (entsel)) '(("Äëèíà" . 6000.))) (if (setq blk...
ed21217f2a8acb5e8820e1fbfd846fd96bf4924401dacf156ff4fb07c03c4908
project-oak/hafnium-verification
utils_test.ml
* Copyright ( c ) 2014 - present , Facebook , Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) 2014-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE ...
null
https://raw.githubusercontent.com/project-oak/hafnium-verification/6071eff162148e4d25a0fedaea003addac242ace/experiments/ownership-inference/infer/facebook-clang-plugins/clang-ocaml/utils_test.ml
ocaml
* Copyright ( c ) 2014 - present , Facebook , Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) 2014-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE ...
efd040f8792f68d25aca87d7f96667fe6e3f666511f9a3b904421197be440ede
vmchale/kempe
Golden.hs
module Main (main) where import CDecl import Data.Tuple.Extra (uncurry3) import Harness import System.Info (arch) import Test.Tasty main :: IO () main = defaultMain $ testGroup "Golden output tests" $ fmap (uncurry3 goldenOutput) allGoldens ++ crossTe...
null
https://raw.githubusercontent.com/vmchale/kempe/2a10d95d93a4a3e05b0e615d856b35c8f0d5f064/golden/Golden.hs
haskell
These are redundant on arm
module Main (main) where import CDecl import Data.Tuple.Extra (uncurry3) import Harness import System.Info (arch) import Test.Tasty main :: IO () main = defaultMain $ testGroup "Golden output tests" $ fmap (uncurry3 goldenOutput) allGoldens ++ crossTe...
783072df7f51201f8da082ed5544d44c3e21e4b49d479679089485b26fc5380a
puppetlabs/puppetserver
master.clj
(ns puppetlabs.services.protocols.master) (defprotocol MasterService "Protocol for the master service." (add-metric-ids-to-http-client-metrics-list! [this metric-ids-to-add] "Append a list of metric-ids to the built in list (defined in `master-core/puppet-server-http-client-metrics-for-status`) that get...
null
https://raw.githubusercontent.com/puppetlabs/puppetserver/2d6ca01b4b72716ca543b606f752261b969e401b/src/clj/puppetlabs/services/protocols/master.clj
clojure
(ns puppetlabs.services.protocols.master) (defprotocol MasterService "Protocol for the master service." (add-metric-ids-to-http-client-metrics-list! [this metric-ids-to-add] "Append a list of metric-ids to the built in list (defined in `master-core/puppet-server-http-client-metrics-for-status`) that get...
f6cbe337453c3cad404d1ddb75e29c55f1f2e46029d2b4b02582347faeed1e6d
ott-lang/ott
tbl.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ott-lang/ott/29ac9ef84967686da35b9b42608b3aec3539a689/examples/ocaml_light/hol/ocamlpp/utils/tbl.ml
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : tbl.ml , v 1.1 2007/09/24 23:...
414fb42a8a781542712425c1aeae65240940671cd8146487a2915248925b24e2
facebook/flow
tree.ml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/flow/741104e69c43057ebd32804dd6bcc1b5e97548ea/src/common/utils/tree.ml
ocaml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
611475e43eb2d25e8ff8f7bff66fc628992e2cefc8ebc39412f16f9835054573
lachenmayer/arrowsmith
TheMasterPlan.hs
module TheMasterPlan where {-| I'm trying something a little weird here. This file models each step in the build process, so you will see a sequence of types representing "all the data we have so far" formatted in a way that will be nice for the next stage. The idea is that our implementation should be guiding us betw...
null
https://raw.githubusercontent.com/lachenmayer/arrowsmith/34b6bdeddddb2d8b9c6f41002e87ec65ce8a701a/elm-make/src/TheMasterPlan.hs
haskell
| I'm trying something a little weird here. This file models each step in the build process, so you will see a sequence of types representing "all the data we have so far" formatted in a way that will be nice for the next stage. The idea is that our implementation should be guiding us between these models. UNIQUE ID...
module TheMasterPlan where import qualified Data.Map as Map import qualified Elm.Compiler.Module as Module import qualified Elm.Package.Name as Pkg import qualified Elm.Package.Version as V data ModuleID = ModuleID { moduleName :: Module.Name , packageID :: PackageID } deriving (Eq, Ord) type Packa...
918aeb1c0f2132e3c82d373358fa4269908ea4f14bf1ce2cd650d68f881120ea
ZeusWPI/contests
elections.hs
import Control.Applicative ((<$>)) import Control.Monad (replicateM_) import Data.List (mapAccumL) type Votes = Int type Seats = Int type Party = (Votes, Seats) assign :: Votes -- ^ Number of votes ^ Assignation round -> Seats -- ^ Seats left to assign -> [Party] -- ^ Parties -> [Party] ...
null
https://raw.githubusercontent.com/ZeusWPI/contests/d78aec91be3ce32a436d160cd7a13825d36bbf3a/2012-vpw/elections.hs
haskell
^ Number of votes ^ Seats left to assign ^ Parties ^ Result
import Control.Applicative ((<$>)) import Control.Monad (replicateM_) import Data.List (mapAccumL) type Votes = Int type Seats = Int type Party = (Votes, Seats) ^ Assignation round assign total round' left parties | needed > left = parties | otherwise = assign total (round' + 1) (left - needed) parties'...
ceb8a47a024cf2a2c1d0716d7e1463af5da1c3024bfa8a5daa979e3bab1aa851
bravit/hid-examples
Main.hs
main :: IO () main = putStrLn "Empty main program"
null
https://raw.githubusercontent.com/bravit/hid-examples/913e116b7ee9c7971bba10fe70ae0b61bfb9391b/empty/Main.hs
haskell
main :: IO () main = putStrLn "Empty main program"
7073c9bee087ebd2e0180e39e0be6a3e4780cb5c121138c9cf124dead8c0708c
mbj/stratosphere
NotificationConfigProperty.hs
module Stratosphere.SSM.MaintenanceWindowTask.NotificationConfigProperty ( NotificationConfigProperty(..), mkNotificationConfigProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stra...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/ssm/gen/Stratosphere/SSM/MaintenanceWindowTask/NotificationConfigProperty.hs
haskell
module Stratosphere.SSM.MaintenanceWindowTask.NotificationConfigProperty ( NotificationConfigProperty(..), mkNotificationConfigProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stra...
c8d603fcaa62ed9eab9cd4a308ace2accddb97c34689f48a7a903528b19d2e5f
hiratara/Haskell-Nyumon-Sample
chap02-samples-2-4-3.hs
add m n = m + n :: Int main = print $ add 1 $ let x = 10 y = 20 in x + y
null
https://raw.githubusercontent.com/hiratara/Haskell-Nyumon-Sample/ac52b741e3b96722f6fc104cfa84078e39f7a241/chap02-samples/chap02-samples-2-4-3.hs
haskell
add m n = m + n :: Int main = print $ add 1 $ let x = 10 y = 20 in x + y
3476a06005e23a10bda50d54fe582dda43e89f896aa0f0fb98db553bebd01923
jlouis/eministat
eministat_resample.erl
@doc a sample by resampling in the data structure %%% @end -module(eministat_resample). -include("eministat.hrl"). -export([resample/3, bootstrap_bca/3]). -compile(export_all). %% @doc resample/3 is the main resampler of eministat %% @end resample(Estimators, Resamples, #dataset { n = N, points = Ps }) -> Res...
null
https://raw.githubusercontent.com/jlouis/eministat/022764f2b8fa45909c38cdc9a28d199656e78526/src/eministat_resample.erl
erlang
@end @doc resample/3 is the main resampler of eministat @end accel => Accel, b1 => B1, a1 => A1, b2 => B2, a2 => A2 }]), jackknife_(unbiased_variance, Ds) -> jackknife_variance(1, Ds); -- NORMAL DISTRIBUTION ------------------------------ Constants -- STANDARD LIBRARY ROUTINES ----------------------------...
@doc a sample by resampling in the data structure -module(eministat_resample). -include("eministat.hrl"). -export([resample/3, bootstrap_bca/3]). -compile(export_all). resample(Estimators, Resamples, #dataset { n = N, points = Ps }) -> ResultSets = boot(Resamples, N, list_to_tuple(Ps)), estimate(Estimator...
cb478c0c4f01c602efd52bff0761c968bf389742128d58ada482705ed160fcd0
jrm-code-project/LISP-Machine
rel6-pathname-patch.lisp
-*- Mode : LISP ; Package : FILE - SYSTEM ; Base : 10 ; Patch - File : Yes;-*- ( 1 ) Compile and load this patch on your Symbolics machine . ( 2 ) using tv : edit - namespace - object add a USER PROPERTY called : LMI - LAMBDA - P on all your LMI machines . ;;; Or , if you want , modify the definition of...
null
https://raw.githubusercontent.com/jrm-code-project/LISP-Machine/0a448d27f40761fafabe5775ffc550637be537b2/lambda/gjc/rel6-pathname-patch.lisp
lisp
Package : FILE - SYSTEM ; Base : 10 ; Patch - File : Yes;-*- the naming heuristic, which will work on default customer lambda sites NOTES: MOST OF THIS CODE IS LIFTED DIRECTLY FROM THE LMI-LAMBDA SYSTEM CODE FOR PARSING ITS OWN PATHNAMES. AS SUCH, THE FOLLOWING IS TECHICALLY APPLICABLE: See filename "Copyright...
( 1 ) Compile and load this patch on your Symbolics machine . ( 2 ) using tv : edit - namespace - object add a USER PROPERTY called : LMI - LAMBDA - P on all your LMI machines . Or , if you want , modify the definition of LMI - LAMBDA - P to use because machines are named " LAMBDA - A " " LAMBDA - B " e...
b7bf9a62c74258ab0f3d774c15d670cb093ee1556db471336acff20a109e25eb
shayne-fletcher/zen
euler_01.ml
(*Numbers less than [n] that are multiples of the numbers in [l]*) let multiples_of (l : int list) (n : int) : int list= let rec loop (acc : int list) : int -> int list = function | t when t = n -> acc | i -> loop (if List.fold_left (fun acc x -> acc || i mod x = 0) false l then i :: acc else a...
null
https://raw.githubusercontent.com/shayne-fletcher/zen/10a1d0b9bf261bb133918dd62fb1593c3d4d21cb/ocaml/euler/euler_01.ml
ocaml
Numbers less than [n] that are multiples of the numbers in [l]
let multiples_of (l : int list) (n : int) : int list= let rec loop (acc : int list) : int -> int list = function | t when t = n -> acc | i -> loop (if List.fold_left (fun acc x -> acc || i mod x = 0) false l then i :: acc else acc) (i + 1) in loop [] 1 Sum of the numbers less than 1000 that a...
ad66ecf3e36e6e8dcd659ad5db3a7d3cb5c39e24df24433230c0fa7a78c7d280
kendroe/CoqRewriter
rtype.ml
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * REWRITELIB * * type.ml * ...
null
https://raw.githubusercontent.com/kendroe/CoqRewriter/ddf5dc2ea51105d5a2dc87c99f0d364cf2b8ebf5/plugin/src/rtype.ml
ocaml
require "list.sml" ; require "parser.sml" ; require "lex.sml" ; require "type-s.sml" ; require "basis.__integer" ; require "basis.__substring" ; Count used in assigning new type variables * Parsing/unparsing * Constructor/destructor functions * Matching
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * REWRITELIB * * type.ml * ...
a52293d7a87799690a49734086df2993b6d47a59086622a2d5a3b310c60d0d4c
Gbury/archsat
ext_arith.mli
This file is free software , part of Archsat . See file " LICENSE " for more details . (** Extension for arithmetic *) val register : unit -> unit (** Register the extension. *)
null
https://raw.githubusercontent.com/Gbury/archsat/322fbefa4a58023ddafb3fa1a51f8199c25cde3d/src/core/ext_arith.mli
ocaml
* Extension for arithmetic * Register the extension.
This file is free software , part of Archsat . See file " LICENSE " for more details . val register : unit -> unit
b98ed59c472b065b75aca885d498a13a5c0272e5ec1cf8fd1e5bb1af764ad5bb
comby-tools/comby
test_go.ml
open Core open Test_helpers open Comby_kernel open Matchers let%expect_test "gosimple_s1000" = let source = {| select { case x := <-ch: fmt.Println(x) } |} in let match_template = {| select { case :[1] := :[2]: :[3] } |} in let rewrite_template = {| ...
null
https://raw.githubusercontent.com/comby-tools/comby/a36c63fb1e686adaff3e90aed00e88404f8cda78/test/common/test_go.ml
ocaml
open Core open Test_helpers open Comby_kernel open Matchers let%expect_test "gosimple_s1000" = let source = {| select { case x := <-ch: fmt.Println(x) } |} in let match_template = {| select { case :[1] := :[2]: :[3] } |} in let rewrite_template = {| ...
70630ccb5b172bb63814644a3d53e85ab1c78014e54801a82af454effa49ee5f
returntocorp/semgrep
Desugar_jsonnet.mli
Hook to customize how ojsonnet should resolve import expressions * ( ` local $ NAME = import $ PATH ` ) . The first parameter below is the base * directory of the file currently processed and the second is the $ PATH * above in the local expression . * The hook should return an AST_jsonnet expression if i...
null
https://raw.githubusercontent.com/returntocorp/semgrep/1fe267d6fcda7bc470520ebd892d9202b7333437/libs/ojsonnet/Desugar_jsonnet.mli
ocaml
Hook to customize how ojsonnet should resolve import expressions * ( ` local $ NAME = import $ PATH ` ) . The first parameter below is the base * directory of the file currently processed and the second is the $ PATH * above in the local expression . * The hook should return an AST_jsonnet expression if i...
888a8cd63af9f3c62758172337d71a17c1d99863ccc8a32305f8e09d286ee5df
mini-monkey/mini-monkey
mm_user.erl
%%%------------------------------------------------------------------- @doc MiniMonkey User %% %% %% %% @end %%%------------------------------------------------------------------- -module(mm_user). -behaviour(gen_server). -include("codes.hrl"). -include_lib("eunit/include/eunit.hrl"). -ifdef(TEST). -define(LOGIN_ER...
null
https://raw.githubusercontent.com/mini-monkey/mini-monkey/4afa4385256c0f1d23db522c0725c3291a8c86c8/src/mm_user.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- API Behaviour ----------------------------------------------------------------------------- API ----------------------------------------------------------------------------...
@doc MiniMonkey User -module(mm_user). -behaviour(gen_server). -include("codes.hrl"). -include_lib("eunit/include/eunit.hrl"). -ifdef(TEST). -define(LOGIN_ERROR_SPEEDBUMP_MS, 0). -else. -define(LOGIN_ERROR_SPEEDBUMP_MS, 500). -endif. -export([start_link/4]). -export([init/1, handle_call/3, handle_cast/2, ha...
8f06a8799a711962ea1ab43ac76d50b4b78b64bf42e85ca11f24960b3dcac1e8
madnificent/function-namespace
base.lisp
(common-lisp:in-package :function-namespace.provider) (eval-when (:compile-toplevel :load-toplevel) (defparameter *namespaces* nil "Contains the namespaces which have been used in the system")) ;;;;;;;;;;;; ;;;; helpers (defun plist-has-property-p (property plist) "Returns T iff <plist> has an eq equal prope...
null
https://raw.githubusercontent.com/madnificent/function-namespace/bb52f9e9cbb24afca64c6c4e457b0348dca033db/base.lisp
lisp
helpers managing spaces managing function names managing function calling see setup-new-space for the definition of the standard function calling managing function creating
(common-lisp:in-package :function-namespace.provider) (eval-when (:compile-toplevel :load-toplevel) (defparameter *namespaces* nil "Contains the namespaces which have been used in the system")) (defun plist-has-property-p (property plist) "Returns T iff <plist> has an eq equal property to <property>" (loop...
79ad38905886419d5eff97162f4d1100af8f93b9834e3dd96b139522fbee40f2
jrh13/hol-light
geom.ml
(* ========================================================================= *) (* Some geometric notions in real^N. *) (* ========================================================================= *) needs "Multivariate/realanalysis.ml";; prioritize_vector();; (* -------------...
null
https://raw.githubusercontent.com/jrh13/hol-light/ea44a4cacd238d7fa5a397f043f3e3321eb66543/Multivariate/geom.ml
ocaml
========================================================================= Some geometric notions in real^N. ========================================================================= ------------------------------------------------------------------------- ---------------...
needs "Multivariate/realanalysis.ml";; prioritize_vector();; Pythagoras 's theorem is almost immediate . let PYTHAGORAS = prove (`!A B C:real^N. orthogonal (A - B) (C - B) ==> norm(C - A) pow 2 = norm(B - A) pow 2 + norm(C - B) pow 2`, REWRITE_TAC[NORM_POW_2; or...
4123e8160ed92788c9d9b0a92a7f739a6172456162400c513934a43ee19e7cf1
lojic/LearningRacket
day17-plot.rkt
#lang racket (require plot) (define-values (x-max y-min) (values 250 -105)) (define (trajectory dx dy [x 0] [y 0] [ result '() ]) (if (or (> x x-max) (< y y-min)) (reverse result) (let ([ result (cons (list x y) result) ] [ dx (cond [ (> dx 0) (sub1 dx) ] [ else d...
null
https://raw.githubusercontent.com/lojic/LearningRacket/9c6b7e26fb84c0f382f541fca5aea5bf17453477/advent-of-code-2021/solutions/day17/day17-plot.rkt
racket
#lang racket (require plot) (define-values (x-max y-min) (values 250 -105)) (define (trajectory dx dy [x 0] [y 0] [ result '() ]) (if (or (> x x-max) (< y y-min)) (reverse result) (let ([ result (cons (list x y) result) ] [ dx (cond [ (> dx 0) (sub1 dx) ] [ else d...
f97c995060493cb6cb96a5d000d15d9cbc8309b308246c509e6ebe976b575cca
picty/concerto
compareAnswerTypes.ml
(* computeAnswerTypes.ml Inputs: - answers.csv - trusted_chains.csv Option: - campaign ids (reference + campaigns to test) - trust_flag filters Output: - stats_answertype_comparison_<campaigns>.csv *) open Getopt open FileOps open StatOps let verbose = ref false let load_validity = re...
null
https://raw.githubusercontent.com/picty/concerto/fac5dd04a5a3dcd91782e17b7bd3e0f4a9ddd2e0/compareAnswerTypes.ml
ocaml
computeAnswerTypes.ml Inputs: - answers.csv - trusted_chains.csv Option: - campaign ids (reference + campaigns to test) - trust_flag filters Output: - stats_answertype_comparison_<campaigns>.csv
open Getopt open FileOps open StatOps let verbose = ref false let load_validity = ref false let data_dir = ref "" let subsets = ref [] let ref_campaign = ref (-1) let options = [ mkopt (Some 'h') "help" Usage "show this help"; mkopt (Some 'v') "verbose" (Set verbose) "print more info to stderr"; mkopt (Some '...
9f91a64d16cfea3caea71387189cba473887e6361ec1bb3be478a5bbe9499b7d
seagreen/acme-pcf-specification
Interpret.hs
module Pcf.Interpret where import qualified Data.Bifunctor as Bifunctor import qualified Data.Text.IO as TIO import Pcf.Eval (Value (..), eval, prettyValue) import qualified Pcf.Eval as Eval import Pcf.Parse (ParserErrorBundle, parse) import Pcf.Prelude import Pcf.Typecheck (typecheck) import qualified Pcf.Typecheck a...
null
https://raw.githubusercontent.com/seagreen/acme-pcf-specification/dce650a782d3861d544e386fc919434ba291fa9c/impl/src/Pcf/Interpret.hs
haskell
module Pcf.Interpret where import qualified Data.Bifunctor as Bifunctor import qualified Data.Text.IO as TIO import Pcf.Eval (Value (..), eval, prettyValue) import qualified Pcf.Eval as Eval import Pcf.Parse (ParserErrorBundle, parse) import Pcf.Prelude import Pcf.Typecheck (typecheck) import qualified Pcf.Typecheck a...
3daa4daec865163a61a32c09ebd1554001b7214cd18facd6b9443855b35118d3
ocaml-sf/learn-ocaml-corpus
template.ml
let exec f x = "Replace this string with your implementation." ;; let compare user reference to_string = "Replace this string with your implementation." ;; let test user reference sample to_string = "Replace this string with your implementation." ;;
null
https://raw.githubusercontent.com/ocaml-sf/learn-ocaml-corpus/7dcf4d72b49863a3e37e41b3c3097aa4c6101a69/exercises/mooc/week5/seq1/ex2/template.ml
ocaml
let exec f x = "Replace this string with your implementation." ;; let compare user reference to_string = "Replace this string with your implementation." ;; let test user reference sample to_string = "Replace this string with your implementation." ;;
1d2307815df296d859449ab27b5b7adde917de101648aec465cd348daea228c9
kronkltd/jiksnu
album_routes_test.clj
(ns jiksnu.modules.web.routes.album-routes-test (:require [clojure.data.json :as json] [jiksnu.mock :as mock] [jiksnu.helpers.routes :refer [as-user response-for]] [jiksnu.test-helper :as th] [midje.sweet :refer :all] [ring.mock.request :as req]) (:import ...
null
https://raw.githubusercontent.com/kronkltd/jiksnu/8c91e9b1fddcc0224b028e573f7c3ca2f227e516/test/jiksnu/modules/web/routes/album_routes_test.clj
clojure
(ns jiksnu.modules.web.routes.album-routes-test (:require [clojure.data.json :as json] [jiksnu.mock :as mock] [jiksnu.helpers.routes :refer [as-user response-for]] [jiksnu.test-helper :as th] [midje.sweet :refer :all] [ring.mock.request :as req]) (:import ...
96050882b54d98c0c6abd8f78f6fa74c9836bdb2cdadd99164c8c84072f61ed0
justinethier/husk-scheme
A.hs
Based on code from : A.hs invoke : ghci -package ghc A.hs import GHC import Outputable import GHC.Paths ( libdir ) is available via cabal install ghc - paths import DynFlags targetFile = "B.hs" main = do res <- example putStrLn $ showSDoc ( ppr res ) example = defaultErrorHandler defaultLogActi...
null
https://raw.githubusercontent.com/justinethier/husk-scheme/d5643af2f344013f403bc4c97d6ead4e6c19af52/misc/A.hs
haskell
Based on code from : A.hs invoke : ghci -package ghc A.hs import GHC import Outputable import GHC.Paths ( libdir ) is available via cabal install ghc - paths import DynFlags targetFile = "B.hs" main = do res <- example putStrLn $ showSDoc ( ppr res ) example = defaultErrorHandler defaultLogActi...
2687a16efef2a69d06930093e973eaaa84d1d9964927c86cd3be01823085c5cc
emqx/emqx-management
emqx_mgmt_sup.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-management/3e5600ca340612177ea39d00f7203816cf8ffddb/src/emqx_mgmt_sup.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_mgmt_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). start_l...
19ee50771aae5a97e2a1d33d8af68cd61c7e1ba006ea79894bda8d645d08d270
jrh13/hol-light
miz3_of_hol.ml
needs "miz3.ml";; type script_step = | Tac of string * tactic | Par of script_step list list;; type prooftree = | Prooftree of goal * (string * tactic) * prooftree list | Open_goal of goal;; let read_script filename lemmaname = let rec check_semisemi l = match l with | ";"::";"::_ -> true | " "::l' -> ...
null
https://raw.githubusercontent.com/jrh13/hol-light/d125b0ae73e546a63ed458a7891f4e14ae0409e2/miz3/miz3_of_hol.ml
ocaml
needs "miz3.ml";; type script_step = | Tac of string * tactic | Par of script_step list list;; type prooftree = | Prooftree of goal * (string * tactic) * prooftree list | Open_goal of goal;; let read_script filename lemmaname = let rec check_semisemi l = match l with | ";"::";"::_ -> true | " "::l' -> ...
dd99dd605c27423d09dc99cf98075c0f7828c53ea37014cb39f027f916a5c6f5
input-output-hk/cardano-sl
Utxo.hs
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE TypeFamilies # -- | Part of GState DB which stores unspent transaction outputs. module Pos.DB.Txp.Utxo ( -- * Getters getTxOut -- * Operations , UtxoOp (..) -- * Initialization , initGStateUtxo -- * Iterat...
null
https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/db/src/Pos/DB/Txp/Utxo.hs
haskell
| Part of GState DB which stores unspent transaction outputs. * Getters * Operations * Initialization * Iteration * Get utxo * Sanity checks -------------------------------------------------------------------------- Getters -------------------------------------------------------------------------- -------------...
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE TypeFamilies # module Pos.DB.Txp.Utxo ( getTxOut , UtxoOp (..) , initGStateUtxo , UtxoIter , utxoSource , getFilteredUtxo , filterUtxo , getAllPotentiallyHugeUtxo , sanityCheckUtxo )...
c0121b23ab034918a9898222ead5cbc126568a5a85e9117eba0bd21ad89264c1
marigold-dev/deku
pack.ml
open Deku_crypto open Tezos_micheline open Micheline open Michelson_v1_primitives type t = (canonical_location, prim) node let int n = Int (-1, n) let nat n = Int (-1, n) let bytes b = Bytes (-1, b) let pair l r = Prim (-1, D_Pair, [ l; r ], []) let list l = Seq (-1, l) let key k = Bytes (-1, Data_encoding.Binary.to_...
null
https://raw.githubusercontent.com/marigold-dev/deku/21ec2bf05ce688c5b6012be16545175e75403f06/deku-p/src/core/tezos/pack.ml
ocaml
open Deku_crypto open Tezos_micheline open Micheline open Michelson_v1_primitives type t = (canonical_location, prim) node let int n = Int (-1, n) let nat n = Int (-1, n) let bytes b = Bytes (-1, b) let pair l r = Prim (-1, D_Pair, [ l; r ], []) let list l = Seq (-1, l) let key k = Bytes (-1, Data_encoding.Binary.to_...
0670f87ba6e0a694c07741a2f2e3392b5adc61075b7b60d2f0a51eb9b47c09d1
theodormoroianu/SecondYearCourses
LambdaChurch_20210415164644.hs
module LambdaChurch where import Data.Char (isLetter) import Data.List ( nub ) class ShowNice a where showNice :: a -> String class ReadNice a where readNice :: String -> (a, String) data Variable = Variable { name :: String , count :: Int } deriving (Show, Eq, Ord) var :: String -> Variable var ...
null
https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/5e359e6a7cf588a527d27209bf53b4ce6b8d5e83/FLP/Laboratoare/Lab%209/.history/LambdaChurch_20210415164644.hs
haskell
alpha-equivalence subst u x t defines [u/x]t, i.e., substituting u for x in t This substitution avoids variable captures so it is safe to be used when reducing terms with free variables (e.g., if evaluating inside lambda abstractions) ^ substitution term ^ variable to be substitutes ^ term in which the substit...
module LambdaChurch where import Data.Char (isLetter) import Data.List ( nub ) class ShowNice a where showNice :: a -> String class ReadNice a where readNice :: String -> (a, String) data Variable = Variable { name :: String , count :: Int } deriving (Show, Eq, Ord) var :: String -> Variable var ...
b4fd98bc6edd655ec96243a82ea23e35ffb7715a82f0e8fe6c50eba2fbc4d5e7
AshleyYakeley/Truth
Storage.hs
module Pinafore.Storage ( module I ) where import Pinafore.Storage.Database as I import Pinafore.Storage.Database.SQLite as I import Pinafore.Storage.File as I import Pinafore.Storage.Table as I
null
https://raw.githubusercontent.com/AshleyYakeley/Truth/d704b8baaa77dac002922eccecdd91018c4b7eef/Pinafore/pinafore-base/lib/Pinafore/Storage.hs
haskell
module Pinafore.Storage ( module I ) where import Pinafore.Storage.Database as I import Pinafore.Storage.Database.SQLite as I import Pinafore.Storage.File as I import Pinafore.Storage.Table as I
ab163f071e844dba8b6dedfc132784a01bf0991e3be74d65c9cca59daae002af
aeternity/aeminer
aeminer_pow_tests.erl
%%%============================================================================= ( C ) 2019 , Aeternity Anstalt %%% @doc %%% Unit tests for the aeminer_pow module %%% @end %%%============================================================================= -module(aeminer_pow_tests). -include_lib("eunit/include/eunit...
null
https://raw.githubusercontent.com/aeternity/aeminer/0338cfc249d11fb8e0d6c3c6305e71fb49714579/test/aeminer_pow_tests.erl
erlang
============================================================================= @doc Unit tests for the aeminer_pow module @end ============================================================================= same result: underflow highest expressible number can be converted w/o losing accuracy can be converted w/o...
( C ) 2019 , Aeternity Anstalt -module(aeminer_pow_tests). -include_lib("eunit/include/eunit.hrl"). -define(TEST_MODULE, aeminer_pow). -include("aeminer.hrl"). conversion_test_() -> {setup, fun setup/0, fun teardown/1, [{"Integer to scientific conversion", fun() -> 02 : shifted up 2 b...
6ca4cde9e87b6eabb20ae607559346a9e71a7238715fb2962a0124026c9a4a39
debug-ito/greskell
Common.hs
-- | -- Module: ServerTest.Common -- Description: Maintainer : < > -- -- module ServerTest.Common ( withEnv , withClient ) where import Control.Exception.Safe (bracket) import qualified Network.Greskell.WebSocket.Client as WS import System.Environment (loo...
null
https://raw.githubusercontent.com/debug-ito/greskell/ff21b8297a158cb4b5bafcbb85094cef462c5390/greskell/test/ServerTest/Common.hs
haskell
| Module: ServerTest.Common Description:
Maintainer : < > module ServerTest.Common ( withEnv , withClient ) where import Control.Exception.Safe (bracket) import qualified Network.Greskell.WebSocket.Client as WS import System.Environment (lookupEnv) import Test.Hspec requireEnv :: Strin...
f88131b22f787522108a48651856295a9ecc7ce06af3bf8e9285bdedf15c3a61
ucsd-progsys/nate
ocamlprof.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) and , INRIA R...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/tools/ocamlprof.ml
ocaml
********************************************************************* Objective Caml ...
and , INRIA Rocquencourt Ported to Caml Special Light by 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 . ...
fa1d5e4f321a1fd57f6c2b3f9634b751b058081f0b7c9d1952c5e58ebf5f02a4
AndrasKovacs/ELTE-func-lang
Lesson13_pre.hs
# LANGUAGE DeriveFunctor # {-# OPTIONS_GHC -Wincomplete-patterns #-} import Control.Applicative import Control.Monad import Data.Char State monad -------------------------------------------------------------------------------- newtype State s a = State {runState :: s -> (a, s)} deriving Functor instance Applica...
null
https://raw.githubusercontent.com/AndrasKovacs/ELTE-func-lang/f19e20bd87ad7f020c048ca962850d92882d9932/2021-22-2/gyak_2/Lesson13_pre.hs
haskell
# OPTIONS_GHC -Wincomplete-patterns # ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Feladatok ------------------------------------------------------------------------------ -----...
# LANGUAGE DeriveFunctor # import Control.Applicative import Control.Monad import Data.Char State monad newtype State s a = State {runState :: s -> (a, s)} deriving Functor instance Applicative (State s) where pure = return (<*>) = ap instance Monad (State s) where return a = State $ \s -> (a, s) Stat...
6c96d1d05ba71e735abcf0600e4e3b7649732dc0d64eea4eb5b7ea4bad66afd5
balint99/sfpl
Instances.hs
# LANGUAGE FlexibleInstances , LambdaCase , StandaloneDeriving # -- | Instances for the types describing the presyntax. module SFPL.Syntax.Raw.Instances where import SFPL.Base import SFPL.Syntax.Raw.Types import SFPL.Syntax.Raw.Pretty import SFPL.Utils (addCols) import Text.Megaparsec.Pos ---------------------------...
null
https://raw.githubusercontent.com/balint99/sfpl/7cf8924e6f436704f578927ce2904e45caa76725/app/SFPL/Syntax/Raw/Instances.hs
haskell
| Instances for the types describing the presyntax. -------------------------------------- Types | @since 1.0.0 | @since 1.0.0 | @since 1.0.0 ^ @since 1.0.0 -------------------------------------- Patterns | @since 1.0.0 | @since 1.0.0 | @since 1.0.0 ^ @since 1.0.0 -------------------------------------- Term...
# LANGUAGE FlexibleInstances , LambdaCase , StandaloneDeriving # module SFPL.Syntax.Raw.Instances where import SFPL.Base import SFPL.Syntax.Raw.Types import SFPL.Syntax.Raw.Pretty import SFPL.Utils (addCols) import Text.Megaparsec.Pos tySpan :: Ty -> Span tySpan = \case TyIden x beg end -> (beg, end) THole beg...
dfc9d336f0ad44baac488a5b826345fdfeec0399c1aa44d5de287eca7a295f9e
khibino/haskell-debian-build
Sequence.hs
-- | -- Module : Debian.Package.Build.Sequence Copyright : 2014 - 2016 -- License : BSD3 -- -- Maintainer : -- Stability : experimental -- Portability : portable -- -- This module provides build-sequence actions. module Debian.Package.Build.Sequence ( origArchive, nativeArchive, sourceDir ...
null
https://raw.githubusercontent.com/khibino/haskell-debian-build/ae239fcee9f6925ef5200f3f403ea2a894451b76/src/Debian/Package/Build/Sequence.hs
haskell
| Module : Debian.Package.Build.Sequence License : BSD3 Maintainer : Stability : experimental Portability : portable This module provides build-sequence actions. | Run 'Build' action under base-directory. | Take build-directory from 'Build' action context. Pass build-directory to 'Build' action...
Copyright : 2014 - 2016 module Debian.Package.Build.Sequence ( origArchive, nativeArchive, sourceDir , withCurrentDir, withBaseCurrentDir , getBuildDir, removeBuildDir , findDebianChanges , copyDebianDir , rsyncGenOrigSources, rsyncGenNativeSources, rsyncGenSources ...
378544ca5f13aeb7387c6f22fab93a73f128e6524d013c8fe1501f66988989d1
dvanhorn/oaam
0cfa-lazy.rkt
#lang racket (provide aval^) (require "ast.rkt" "data.rkt") 0CFA in the AAM style on some hairy Church numeral churning ;; using lazy non-determinism (wait until your in demand before ;; forking). ;; (X -> Set X) -> (Set X) -> (Set X) (define ((appl f) s) (for/fold ([i (set)]) ([x (in-set s)]) (set-union ...
null
https://raw.githubusercontent.com/dvanhorn/oaam/79bc68ecb79fef45474a948deec1de90d255f307/code/iswim/0cfa-lazy.rkt
racket
using lazy non-determinism (wait until your in demand before forking). (X -> Set X) -> (Set X) -> (Set X) (X -> Set X) (Set X) -> (Set X) Calculate fixpoint of (appl f). (struct addr (a) #:transparent) State -> Set State (printf "~a~n" state) Concrete semantics #;#; Exp -> Set Vlal Exp -> Set State Exp ->...
#lang racket (provide aval^) (require "ast.rkt" "data.rkt") 0CFA in the AAM style on some hairy Church numeral churning (define ((appl f) s) (for/fold ([i (set)]) ([x (in-set s)]) (set-union i (f x)))) (define (fix f s) (let loop ((accum (set)) (front s)) (if (set-empty? front) accum ...
071071b666097d4f057048b39c1a3ae82e7402ebd1a562dcf5caa18f570c38a9
joegallo/doric
org.clj
(ns doric.org (:refer-clojure :exclude [join]) (:use [clojure.string :only [join]] [doric.core :only [aligned-th aligned-td]])) (def th aligned-th) (def td aligned-td) (defn render [table] (let [spacer (str "|-" (join "-+-" (map #(apply str (repeat (.length...
null
https://raw.githubusercontent.com/joegallo/doric/8747fdce565187a5c368c575cf4ca794084b0a5c/src/doric/org.clj
clojure
(ns doric.org (:refer-clojure :exclude [join]) (:use [clojure.string :only [join]] [doric.core :only [aligned-th aligned-td]])) (def th aligned-th) (def td aligned-td) (defn render [table] (let [spacer (str "|-" (join "-+-" (map #(apply str (repeat (.length...
9b6d3345744d6a816e945f084ce3bb4956b42ebf80604a429d7d6185ab353a2c
csabahruska/jhc-components
Mem.hs
# OPTIONS_JHC -fno - prelude -fffi # module System.Mem where import Jhc.Prim.IO foreign import ccall safe "hs_perform_gc" performGC :: IO ()
null
https://raw.githubusercontent.com/csabahruska/jhc-components/a7dace481d017f5a83fbfc062bdd2d099133adf1/lib/jhc/System/Mem.hs
haskell
# OPTIONS_JHC -fno - prelude -fffi # module System.Mem where import Jhc.Prim.IO foreign import ccall safe "hs_perform_gc" performGC :: IO ()
7e1f00e5272023d5d5b194963978ebb5f71a83ca42f01ba37f741c5d026aa7cf
graninas/Functional-Design-and-Architecture
Main.hs
module Main where import ScenarioDSL3 main :: IO () main = pure ()
null
https://raw.githubusercontent.com/graninas/Functional-Design-and-Architecture/1736abc16d3e4917fc466010dcc182746af2fd0e/First-Edition/BookSamples/CH02/L2_3/Main.hs
haskell
module Main where import ScenarioDSL3 main :: IO () main = pure ()
e2b62aaafc9e5994c0b5011303476e26d38988a9e54b13b63fb59a768d458ea3
ninenines/ranch
remove_conn_and_wait_protocol.erl
-module(remove_conn_and_wait_protocol). -behaviour(ranch_protocol). -export([start_link/3]). -export([init/3]). start_link(Ref, _, [{remove, MaybeRemove, Timeout}]) -> Pid = spawn_link(?MODULE, init, [Ref, MaybeRemove, Timeout]), {ok, Pid}. init(Ref, MaybeRemove, Timeout) -> {ok, _} = ranch:handshake(Ref), _ = c...
null
https://raw.githubusercontent.com/ninenines/ranch/4a1d16242c6fa9865fd7499d301d90b9ca65d6b1/test/remove_conn_and_wait_protocol.erl
erlang
-module(remove_conn_and_wait_protocol). -behaviour(ranch_protocol). -export([start_link/3]). -export([init/3]). start_link(Ref, _, [{remove, MaybeRemove, Timeout}]) -> Pid = spawn_link(?MODULE, init, [Ref, MaybeRemove, Timeout]), {ok, Pid}. init(Ref, MaybeRemove, Timeout) -> {ok, _} = ranch:handshake(Ref), _ = c...
d32b8a57333e178ea1df4d634032fb5706aa2af65f7203093ebc1959a7ad4180
anwarmamat/cmsc330spring18-public
regexp.ml
open Sets open Nfa (*********) (* Types *) (*********) type regexp_t = | Empty_String | Char of char | Union of regexp_t * regexp_t | Concat of regexp_t * regexp_t | Star of regexp_t (*******************************) Part 2 : Regular Expressions (*******************************) let regexp_to_nfa re = f...
null
https://raw.githubusercontent.com/anwarmamat/cmsc330spring18-public/b401e5157c05c7f47ee2d0ec1b21c7b142316031/p4/regexp.ml
ocaml
******* Types ******* ***************************** ***************************** *************************************************************** Below this point is parser code that YOU DO NOT NEED TO TOUCH ***************************************************************
open Sets open Nfa type regexp_t = | Empty_String | Char of char | Union of regexp_t * regexp_t | Concat of regexp_t * regexp_t | Star of regexp_t Part 2 : Regular Expressions let regexp_to_nfa re = failwith "unimplemented" let regexp_to_string r = failwith "unimplemented" exception IllegalExpression...
c0da20eb8aa2952d1f17a558e1dadee831d203dd47709ad48f6938821d396fab
AccelerationNet/arnesi
slime-extras.lisp
(in-package :arnesi) ;;;; * Logging slime integration (defclass slime-repl-log-appender (appender) () (:documentation "Logs to the slime repl when there's a valid swank::*emacs-connection* bound. Arguments are presented ready for inspection. You may want to add this to your init.el to speed up cursor movement in...
null
https://raw.githubusercontent.com/AccelerationNet/arnesi/1e7dc4cb2cad8599113c7492c78f4925e839522e/src/slime-extras.lisp
lisp
* Logging slime integration
(in-package :arnesi) (defclass slime-repl-log-appender (appender) () (:documentation "Logs to the slime repl when there's a valid swank::*emacs-connection* bound. Arguments are presented ready for inspection. You may want to add this to your init.el to speed up cursor movement in the repl buffer with many presen...
a84fecc01d491e2dcfdaf85e65b892f792c5f97c57a122dab1f936a45f68c0b7
pink-gorilla/webly
token_info.clj
(ns token-info (:require [taoensso.timbre :as timbre :refer [info warn error]] [modular.oauth2.token.store :refer [load-token]] [modular.oauth2.token.info :refer [get-header get-claims get-signature get-encoded-data]] )) (defn show-header [p t] (info "header: " p t (get-header p t))) (defn show-...
null
https://raw.githubusercontent.com/pink-gorilla/webly/ae37a2b0eb201bade5f909ebecfa63a60c3bd4ca/demo-rest/src/token_info.clj
clojure
id-token access-token (show-header p :access-token) (show-signature p :access-token) (show-encoded-data p :access-token) (show-claims :google :refresh_token) (get-token :google :access-token) (get-token :google :refresh_token)
(ns token-info (:require [taoensso.timbre :as timbre :refer [info warn error]] [modular.oauth2.token.store :refer [load-token]] [modular.oauth2.token.info :refer [get-header get-claims get-signature get-encoded-data]] )) (defn show-header [p t] (info "header: " p t (get-header p t))) (defn show-...
01ac3562353ef244bc13ed9b8f4f3e6a604b26a94c4197ae98e3180aca96bf79
Kakadu/fp2022
infer.ml
* Copyright 2022 - 2023 , and contributors * SPDX - License - Identifier : LGPL-3.0 - or - later open Base open Errors open Typedtree module Format = Caml.Format (* silencing a warning *) module R : sig type 'a t val bind : 'a t -> f:('a -> 'b t) -> 'b t val return : 'a -> 'a t val fail : error -> 'a t ...
null
https://raw.githubusercontent.com/Kakadu/fp2022/5365f2f52e3e173cdb052abcfdbfb66fc70fe799/OCamlLabeledArgs/lib/infer.ml
ocaml
silencing a warning * Creation of a fresh name from internal state * Running a transformer: getting the inner result value A compositon: State monad after Result monad An association map Generate new fresh variable
* Copyright 2022 - 2023 , and contributors * SPDX - License - Identifier : LGPL-3.0 - or - later open Base open Errors open Typedtree module R : sig type 'a t val bind : 'a t -> f:('a -> 'b t) -> 'b t val return : 'a -> 'a t val fail : error -> 'a t include Base.Monad.Infix with type 'a t := 'a t mo...
5dba8630ed71f998df35ac6ebac6f084b9231887ba5e4b0eb23bd966255ac0d8
juspay/atlas
SuccessFlow.hs
| Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software dis...
null
https://raw.githubusercontent.com/juspay/atlas/e64b227dc17887fb01c2554db21c08284d18a806/test/src/Mobility/SuccessFlow.hs
haskell
Driver sets online Moves driver to the pickup point Do an App Search Do a get quotes request for getting quotes to confirm ride List all confirmed rides (type = RIDEORDER) check if calculated price is greater than 0 Confirm ride from app backend Leave feedback
| Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software dis...
ecd81ae7b075911b8751ebabafd6a098a0239a276d76f2ef916463cae310a7ed
Apress/java-image-processing-recipes
project.clj
(defproject kotlin0 "0.1.0-SNAPSHOT" :plugins [ [lein-kotlin "0.0.2"] ] :profiles {:dev {:dependencies [[org.jetbrains.kotlin/kotlin-runtime "1.1.4-3"]]}} :kotlin-source-path "src" :kotlin-java-version "1.8" :dependencies [ [org.clojure/clojure "1.8.0"] ])
null
https://raw.githubusercontent.com/Apress/java-image-processing-recipes/dd59c00838c4261c118d81f08bcef1e3456fe01b/SOURCES/CODE/kotlin-samples/kotlin0/project.clj
clojure
(defproject kotlin0 "0.1.0-SNAPSHOT" :plugins [ [lein-kotlin "0.0.2"] ] :profiles {:dev {:dependencies [[org.jetbrains.kotlin/kotlin-runtime "1.1.4-3"]]}} :kotlin-source-path "src" :kotlin-java-version "1.8" :dependencies [ [org.clojure/clojure "1.8.0"] ])
bdd859f3be5dbccd5baca32729143a7d90becb8e7cf582e7359e4a3be3037c67
alphaHeavy/consul-haskell
Connect.hs
# LANGUAGE FlexibleContexts # # LANGUAGE RecordWildCards # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # | The functions in this module correspond to the [ Consul Connect API]( / api / connect ) . This module is a WIP , feel free to contribute via the [ repo on GitHub]( / AlphaHeavy / co...
null
https://raw.githubusercontent.com/alphaHeavy/consul-haskell/c159b923e257cc5139cb7ae450a5a6c02906c79d/src/Network/Consul/Client/Connect.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE FlexibleContexts # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # | The functions in this module correspond to the [ Consul Connect API]( / api / connect ) . This module is a WIP , feel free to contribute via the [ repo on GitHub]( / AlphaHeavy / consul - haskell ) . _ _ Missing F...
28f34b61de96bfa2a082389e369ab113dbeff5d7ea0c6abc8a156738869699ab
master/ejabberd
cache_tab_sup.erl
%%%------------------------------------------------------------------- %%% File : cache_tab_sup.erl Author : < > %%% Description : Cache tables supervisor %%% Created : 30 Aug 2010 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2012 ProcessOne %%% %%% This program is free software; you can redistr...
null
https://raw.githubusercontent.com/master/ejabberd/9c31874d5a9d1852ece1b8ae70dd4b7e5eef7cf7/src/cache_tab_sup.erl
erlang
------------------------------------------------------------------- File : cache_tab_sup.erl Description : Cache tables supervisor This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be useful, b...
Author : < > Created : 30 Aug 2010 by < > ejabberd , Copyright ( C ) 2002 - 2012 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a copy of the GNU General Public License Founda...
e2609cae681e524e7fd53a7e7d59cb0df7cc27d4eb18419b901d82325c85825b
ocaml-sf/learn-ocaml-corpus
prelude.ml
type filesystem = (string * node) list and node = | File | Dir of filesystem | Symlink of string list
null
https://raw.githubusercontent.com/ocaml-sf/learn-ocaml-corpus/7dcf4d72b49863a3e37e41b3c3097aa4c6101a69/exercises/mooc/week5/seq2/ex2/prelude.ml
ocaml
type filesystem = (string * node) list and node = | File | Dir of filesystem | Symlink of string list
69e096ac486d0891b91e60f52bc1a773b09a67998c7f032b3d708a412038aa03
ml4tp/tcoq
cString.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/ml4tp/tcoq/7a78c31df480fba721648f277ab0783229c8bece/lib/cString.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** substring searching... gdzie = wh...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * module type S = module type o...
ca0f98972288619acaacbf53b533989d0cad3771b5c3709f3270155952990f30
janestreet/ppx_fields_conv
ppx_fields_conv.ml
Generated code should depend on the environment in scope as little as possible . E.g. rather than [ foo = [ ] ] do [ match foo with [ ] - > ] , to eliminate the use of [ =] . It is especially important to not use polymorphic comparisons , since we are moving more and more to code that does n't have...
null
https://raw.githubusercontent.com/janestreet/ppx_fields_conv/1b2ee163ab21771d42b8a32de3ef5d6b7bf9edaf/src/ppx_fields_conv.ml
ocaml
Additional AST construction helpers
Generated code should depend on the environment in scope as little as possible . E.g. rather than [ foo = [ ] ] do [ match foo with [ ] - > ] , to eliminate the use of [ =] . It is especially important to not use polymorphic comparisons , since we are moving more and more to code that does n't have...
524dc2cef92bfbb5ca7895f807cc47b5de8f921e3a4f8e2e13c25895c0fceb00
cbaggers/rtg-math
docs.lisp
(in-package :rtg-math.base-vectors) (docs:define-docs (defun v! " Create a vec2, vec3 or vec4. The kind of vector returned by this function depends on what is passed as the arguments. It can take any number of the following.. - floats - integers - vec2 - vec3 - vec4 so long as the total number of components...
null
https://raw.githubusercontent.com/cbaggers/rtg-math/29fc5b3d0028a4a11a82355ecc8cca62662c69e0/vectors/base/docs.lisp
lisp
(in-package :rtg-math.base-vectors) (docs:define-docs (defun v! " Create a vec2, vec3 or vec4. The kind of vector returned by this function depends on what is passed as the arguments. It can take any number of the following.. - floats - integers - vec2 - vec3 - vec4 so long as the total number of components...
92e3fff46f7fe20fbc8d5c470d6509e202cb0510cf99bcb1dd77938fa6e5663a
skynet-gh/skylobby
handler.clj
(ns skylobby.task.handler (:require [clojure.core.cache :as cache] [clojure.java.io :as io] [clojure.pprint :refer [pprint]] clojure.set [clojure.string :as string] [me.raynes.fs :as raynes-fs] [skylobby.client.gloss :as gloss] [skylobby.client.message :as message] [skylobby.download :as do...
null
https://raw.githubusercontent.com/skynet-gh/skylobby/6f6a8337b4f6272748a7ce074fa99ab2e2850302/graal/clj/skylobby/task/handler.clj
clojure
TODO other server types :todo (count next-round)}))))) add errors if there's not a full round left re-scan directories just before errors :todo next-round-count})) refresh existing engines too add errors if there's not a full round left re-scan directories just before errors :todo (count next-round)})) remove mi...
(ns skylobby.task.handler (:require [clojure.core.cache :as cache] [clojure.java.io :as io] [clojure.pprint :refer [pprint]] clojure.set [clojure.string :as string] [me.raynes.fs :as raynes-fs] [skylobby.client.gloss :as gloss] [skylobby.client.message :as message] [skylobby.download :as do...
15b68e62010287c431f9ec52e5251dce736468191feec269b9e9e7bb084eac27
brendanhay/amazonka
ActivityType.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # {-# LANGUAGE StrictData #-} # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - imports # Derived from AWS service...
null
https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-workdocs/gen/Amazonka/WorkDocs/Types/ActivityType.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated
# LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - imports # Derived from AWS service descriptions , licensed under Apache 2.0 . Module : A...
872306c286308d6b48b347c399be49b9404a2b7fa3c04a749f13d2edc006219f
moostang/autolisp
basepath.lsp
;; ----------------------------------------------------------------- ;; ;; ----------------------------------------------------------------- ;; ;; AUTOLISP FUNCTION SIMILAR TO OS.PATH ;; ;; ------------------------------------ ;; ;; FIND THE BASE PATH OF A GIVE ...
null
https://raw.githubusercontent.com/moostang/autolisp/e4f9e624175880a6383850bae58718c48e31ff43/basepath.lsp
lisp
----------------------------------------------------------------- ;; ----------------------------------------------------------------- ;; AUTOLISP FUNCTION SIMILAR TO OS.PATH ;; ------------------------------------ ;; FIND THE BASE PATH OF A GIVE FILE PATHN...
(defun basepath (path / pos posOld) (setq posOld 0) (setq pos (vl-string-search "\\" path posOld)) (if (= pos nil) (progn (setq pos (vl-string-search "/" path posOld)) ) (setq output "") (while (/= pos nil) (setq output (strcat output (substr path (1+ posOld) (- po...
7d8f803fc63b2378f72f97988ad31bbb1a203ed96823fda2c9b0c0759f9c030a
keigoi/caramel-mpst
binary.erl
Source code generated with Caramel . -module(binary). -export_type([endianness/0]). -export_type([replace_opt/0]). -export_type([split_opt/0]). -type endianness() :: big | little . -type replace_opt() :: global | {scope, {integer(), integer()}} ...
null
https://raw.githubusercontent.com/keigoi/caramel-mpst/20551cdcc20c9a64e42bb5bd8ba313bd5952b6b7/stdlib/binary.erl
erlang
Source code generated with Caramel . -module(binary). -export_type([endianness/0]). -export_type([replace_opt/0]). -export_type([split_opt/0]). -type endianness() :: big | little . -type replace_opt() :: global | {scope, {integer(), integer()}} ...
529a707765f7e307ea3dd57ee61dd42beba16bde9d6a087bb8673744058060bd
manuel-serrano/hop
expanders.scm
;*=====================================================================*/ * serrano / prgm / project / hop/2.4.x / runtime / expanders.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation : ...
null
https://raw.githubusercontent.com/manuel-serrano/hop/481cb10478286796addd2ec9ee29c95db27aa390/runtime/expanders.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * Hop expanders */ *===========================...
* serrano / prgm / project / hop/2.4.x / runtime / expanders.scm * / * Author : * / * Creation : We d Dec 6 16:46:47 2006 * / * Last change : Sun Jun 17 17:17:53 2012 ( serrano ) * / * Copy...
b30bdb6b9e841bddf5ef935df1ff2721e6297cfce13e791696b02092e923fce0
sweirich/trellys
TCUtils.hs
{-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE NamedFieldPuns # {-# LANGUAGE PackageImports #-} {-# LANGUAGE ParallelListComp #-} {-# LANGUAGE TypeSynonymInstances #-} module Language.SepPP....
null
https://raw.githubusercontent.com/sweirich/trellys/63ea89d8fa09929c23504665c55a3d909fe047c5/lib/sepp/Language/SepPP/TCUtils.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE PackageImports # # LANGUAGE ParallelListComp # # LANGUAGE TypeSynonymInstances # * The typechecking monad ** The Environment The typing context contains a mapping from variable names to types, with an additional boolean indicating if it ...
# LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE NamedFieldPuns # module Language.SepPP.TCUtils where import Language.SepPP.Options import Language.SepPP.PrettyPrint import Language.SepPP.Syntax import Control.Applicative...
235a71fd40acea8f714c77480c1460faf262455dde20a95d1cf7325e461e5e51
arne-schroppe/dash
Types.hs
module Language.Dash.VM.Types where import Data.Word import Data.List (intercalate) import Data.List.Split (chunksOf) type VMWord = Word32 data VMValue = VMNumber Int | VMSymbol String [VMValue] | VMString String TODO add meaningful data TODO add meaningful data ( name , arguments , etc ) | VMOpaqueSym...
null
https://raw.githubusercontent.com/arne-schroppe/dash/82df755edc6555cba808539970ab6ff225c18b35/src/Language/Dash/VM/Types.hs
haskell
TODO special handling for modules TODO Add better output for invalid lists
module Language.Dash.VM.Types where import Data.Word import Data.List (intercalate) import Data.List.Split (chunksOf) type VMWord = Word32 data VMValue = VMNumber Int | VMSymbol String [VMValue] | VMString String TODO add meaningful data TODO add meaningful data ( name , arguments , etc ) | VMOpaqueSym...
5ed5d7f805497ea8f475f686faac658ccecdf725c0f2bcd09d0ea17d992fec63
FreeAndFair/STAR-Vote
Main.hs
module Main (main) where import Application.Star.StarController
null
https://raw.githubusercontent.com/FreeAndFair/STAR-Vote/2555cbae8794ec6f34889fdabac314ff9f22b437/star-controller/src/Main.hs
haskell
module Main (main) where import Application.Star.StarController
bbd0fdc816c261939ba83cb48f56580268b98a7cb34447a967157582f9a99877
input-output-hk/cardano-ledger
GoldenUtils.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # module Test.Cardano.Ledger.Shelley.Serialisation.GoldenUtils ( checkEncoding, checkEncodingCBOR, checkEncodingCBORAnnotated, ToTokens (..), roundTripFailure, check...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger/b9aa1ad1728c0ceeca62657ec94d6d099896c052/eras/shelley/test-suite/src/Test/Cardano/Ledger/Shelley/Serialisation/GoldenUtils.hs
haskell
# LANGUAGE GADTs # # LANGUAGE OverloadedStrings # ToExpr (CBOR.Term) instance
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # module Test.Cardano.Ledger.Shelley.Serialisation.GoldenUtils ( checkEncoding, checkEncodingCBOR, checkEncodingCBORAnnotated, ToTokens (..), roundTripFailure, checkEncodingCBORDecodeFailure, ) where import Cardano.Ledger....
cbd2da13682fd78ba847da6996d24a9dec40fda23a462523982ef9825214a076
mroman42/discokitty
Words.hs
# LANGUAGE FlexibleInstances # | Module : Words Description : Data for a word in the Discocat framework . License : GPL-3 | Module: Words Description: Data for a word in the Discocat framework. License: GPL-3 |-} module Discokitty.Words ( Words (..) , sentence , concatenate , emptyWord , (@@@) , (...
null
https://raw.githubusercontent.com/mroman42/discokitty/c9e6af9327b187549a3b0e2f3bb14657279ecdc5/source/Discokitty/Words.hs
haskell
| A word is given by a meaning and a grammatical type. The Words type is parameterized over the meaning type. | Size of the word, i.e. number of output wires or atoms in the the grammar types do not coincide. of cups. It outputs all the ones that are successful, that is, the ones making the grammatical types ma...
# LANGUAGE FlexibleInstances # | Module : Words Description : Data for a word in the Discocat framework . License : GPL-3 | Module: Words Description: Data for a word in the Discocat framework. License: GPL-3 |-} module Discokitty.Words ( Words (..) , sentence , concatenate , emptyWord , (@@@) , (...
a6db95160777b137bbafd9dba996f6c3dcb231f1b7321cc2e18ca578e21dfe01
theHamsta/petalisp-cuda
slow-coordinate-transposed-scheme.lisp
(in-package petalisp-cuda.iteration-scheme) (when (boundp 'cl-cuda::+hacked-cl-cuda+) ;; same as block-iteration-scheme, but uses a trick to cache slow coordinate accesses ;; -matrix-transpose-cuda-cc/ (defclass slow-coordinate-transposed-scheme (symbolic-block-iteration-scheme) ((%slow-loads :initarg :slow-...
null
https://raw.githubusercontent.com/theHamsta/petalisp-cuda/12b9ee426e14edf492d862d5bd2dbec18ec427c6/src/iteration-scheme/slow-coordinate-transposed-scheme.lisp
lisp
same as block-iteration-scheme, but uses a trick to cache slow coordinate accesses -matrix-transpose-cuda-cc/ Load slow loads over cache else unchached
(in-package petalisp-cuda.iteration-scheme) (when (boundp 'cl-cuda::+hacked-cl-cuda+) (defclass slow-coordinate-transposed-scheme (symbolic-block-iteration-scheme) ((%slow-loads :initarg :slow-loads :accessor slow-loads :type list) (%fastest-dimension :initarg :fastest-di...
73695b2021ef896718b712bca3207dc9fbe46cfeb9a30e5579a7ad64de0e7c5f
clojure-interop/google-cloud-clients
ProductSearchSettings.clj
(ns com.google.cloud.vision.v1p3beta1.ProductSearchSettings "Settings class to configure an instance of ProductSearchClient. The default instance has everything set to sensible defaults: The default service address (vision.googleapis.com) and default port (443) are used. Credentials are acquired automati...
null
https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.vision/src/com/google/cloud/vision/v1p3beta1/ProductSearchSettings.clj
clojure
"
(ns com.google.cloud.vision.v1p3beta1.ProductSearchSettings "Settings class to configure an instance of ProductSearchClient. The default instance has everything set to sensible defaults: The default service address (vision.googleapis.com) and default port (443) are used. Credentials are acquired automati...
ea0a3bfc1618566b52b1bddc0d2041da12fcf12220bf99d561e9e409f1e6e463
simingwang/emqx-plugin-kafkav5
brod_cli.erl
%%% Copyright ( c ) 2017 - 2021 Klarna Bank AB ( publ ) %%% 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...
null
https://raw.githubusercontent.com/simingwang/emqx-plugin-kafkav5/bbf919e56dbc8fd2d4c1c541084532f844a11cbc/_build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_cli.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 g...
Copyright ( c ) 2017 - 2021 Klarna Bank AB ( publ ) Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @private -module(brod_cli). -ifdef(build_brod_cli). -export([main/1, main/2]). -include("brod_int.hrl"). -defi...
0f1a2f3f57baf895e3f401f5ced23a5b1358961a0b599a91e131f9148ebbb52e
ghcjs/ghcjs-examples
ffi.hs
{-# LANGUAGE JavaScriptFFI, CPP #-} module Main where #ifdef __GHCJS__ foreign import javascript unsafe "document.write($1+'<br/>');" writeNumber :: Int -> IO () foreign import javascript interruptible "setTimeout($c, $1);" delay :: Int -> IO () #else writeNumber = error "writeNumber: only availa...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-examples/217b7fd3816f57634977beac711452704c3ea688/weblog/ffi/ffi.hs
haskell
# LANGUAGE JavaScriptFFI, CPP #
module Main where #ifdef __GHCJS__ foreign import javascript unsafe "document.write($1+'<br/>');" writeNumber :: Int -> IO () foreign import javascript interruptible "setTimeout($c, $1);" delay :: Int -> IO () #else writeNumber = error "writeNumber: only available from JavaScript" delay = error "...
39a42d6ca1521cafad1bea23b55e9106154df232d1d60e25eb8aff8780fcf3f2
s-expressionists/Concrete-Syntax-Tree
random-sources.lisp
(cl:in-package #:concrete-syntax-tree-test) ;;; Assign random unique symbols as source locations to every node in ;;; a concrete syntax tree. (defgeneric random-sources (cst)) (defmethod random-sources ((cst cst:atom-cst)) (reinitialize-instance cst :source (gensym)) cst) (defmethod random-sources ((cst cst:con...
null
https://raw.githubusercontent.com/s-expressionists/Concrete-Syntax-Tree/a56a5246fbaa90b98a29368c011a6616f2bcb482/Test/random-sources.lisp
lisp
Assign random unique symbols as source locations to every node in a concrete syntax tree.
(cl:in-package #:concrete-syntax-tree-test) (defgeneric random-sources (cst)) (defmethod random-sources ((cst cst:atom-cst)) (reinitialize-instance cst :source (gensym)) cst) (defmethod random-sources ((cst cst:cons-cst)) (reinitialize-instance cst :source (gensym)) (random-sources (cst:first cst)) (rando...
e623b79be47903a26583f18f137d080e4b57a14fdaca919a37f7498677c1d223
mhayashi1120/Gauche-net-twitter
auth.scm
(define-module net.twitter.auth (extend net.twitter.base) (use net.oauth) (use net.twitter.core) (use srfi-13) (export twitter-authenticate-client twitter-authenticate-request twitter-authorize ;; Login with twitter (Web) ;; -in-with-twitter twitter-authorize-url )) (select-module net.t...
null
https://raw.githubusercontent.com/mhayashi1120/Gauche-net-twitter/b9f4be3ca8459fc662f9c79481411aac03b51133/src/net/twitter/auth.scm
scheme
Login with twitter (Web) -in-with-twitter OAuth authorization flow Signature: (consumer-key consumer-secret :optional (params '())) Signature: (temp-cred :key (oauth-callback #f) :allow-other-keys params) Signature: (temp-cred verifier :optional (params '())) Authenticate the client using OAuth PIN-based au...
(define-module net.twitter.auth (extend net.twitter.base) (use net.oauth) (use net.twitter.core) (use srfi-13) (export twitter-authenticate-client twitter-authenticate-request twitter-authorize twitter-authorize-url )) (select-module net.twitter.auth) (define (default-authenticate-callback ...
e65c1f1922754466671c447b79876beec6ae9d438c56e97aa0eae7fde5ea7e26
sashashakun/SICP
test.rkt
#lang racket/base (require rackunit "solution.rkt") (check-equal? (solution 1.0 9) 2.0801035255095734)
null
https://raw.githubusercontent.com/sashashakun/SICP/2b5f15fa7c0ff5b0f31272eb100c691b5a4703fc/src/chapter1/1.8/test.rkt
racket
#lang racket/base (require rackunit "solution.rkt") (check-equal? (solution 1.0 9) 2.0801035255095734)
5d7e18cf10bfebf4f92aebdfc0d69f012b9230fb6909e5ba85ef12fcc67e21a9
fujita-y/ypsilon
run-sash.scm
;; sash run-sash.scm (define warmup #t) (define filename "bench.sagittarius.out") (import (rnrs) (sagittarius)) (add-load-path "./gambit-benchmarks") (define exact->inexact inexact) (define inexact->exact exact) (define output-port (open-output-string)) (define format.6f (lambda (x) (let* ((str (number->stri...
null
https://raw.githubusercontent.com/fujita-y/ypsilon/ed117b399ea8153fda9fadc1f731ed03975535ce/bench/run-sash.scm
scheme
sash run-sash.scm
(define warmup #t) (define filename "bench.sagittarius.out") (import (rnrs) (sagittarius)) (add-load-path "./gambit-benchmarks") (define exact->inexact inexact) (define inexact->exact exact) (define output-port (open-output-string)) (define format.6f (lambda (x) (let* ((str (number->string (/ (round (* x 100...
b35df414c3a8d51aa5bd433beda7758ae8bc7da44c0c2b35deec0b2392d41c9c
s-cerevisiae/leetcode-racket
151-reverse-words-in-a-string.rkt
#lang racket (define (reverse-words s) (string-join (reverse (string-split s))))
null
https://raw.githubusercontent.com/s-cerevisiae/leetcode-racket/7ec0af346743053af9834c7862ffdbb113a8b419/151-reverse-words-in-a-string.rkt
racket
#lang racket (define (reverse-words s) (string-join (reverse (string-split s))))
985c324ceb8c1fcf847170b1e7420973c7c4a3f075c2e2a29dc40c8f2a4d5ad4
nuprl/gradual-typing-performance
main.rkt
#lang scheme/base (require "graphics.rkt") (provide (all-from-out "graphics.rkt"))
null
https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/pre-benchmark/ecoop/htdp-lib/graphics/main.rkt
racket
#lang scheme/base (require "graphics.rkt") (provide (all-from-out "graphics.rkt"))
f04e8261c239b05ac406879b2ed309ace2100ce22b9f9ebc941903083e73180e
valderman/selda
Unsafe.hs
# LANGUAGE ScopedTypeVariables # -- | Unsafe operations giving the user unchecked low-level control over -- the generated SQL. module Database.Selda.Unsafe ( fun, fun2, fun0, operator , aggr , cast, castAggr, sink, sink2 , unsafeSelector , QueryFragment, inj, injLit, rawName, rawExp, rawStm, rawQuery, rawQu...
null
https://raw.githubusercontent.com/valderman/selda/c270f354caaa733d10b79d5c0ba05f98f56fa4b6/selda/src/Database/Selda/Unsafe.hs
haskell
| Unsafe operations giving the user unchecked low-level control over the generated SQL. | Cast a column to another type, using whichever coercion semantics are used by the underlying SQL implementation. | Cast an aggregate to another type, using whichever coercion semantics are used by the underlying SQL im...
# LANGUAGE ScopedTypeVariables # module Database.Selda.Unsafe ( fun, fun2, fun0, operator , aggr , cast, castAggr, sink, sink2 , unsafeSelector , QueryFragment, inj, injLit, rawName, rawExp, rawStm, rawQuery, rawQuery1 ) where import Control.Exception (throw) import Control.Monad.State.Strict ( MonadIO(...
343c509ee73da7044023875e3c301399410c93adf2591f2935046e487dced772
GaloisInc/what4
Parser.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PolyKinds # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TupleSections # # LANGUA...
null
https://raw.githubusercontent.com/GaloisInc/what4/17483418396afa8384de4089cdfaab9e5bbf912d/what4/src/What4/Serialize/Parser.hs
haskell
# LANGUAGE GADTs # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # # LANGUAGE MultiWayIf # | A parser for an s-expression representation of what4 expressions ^ The mapping of names to defined What4 expressions. | The lexical environment for parsing s-expressions and procesing them into What4 terms. ^ The sy...
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # # LANGUAGE PolyKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE TupleSections # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # # LANGUAGE ...
439abe1927271ecd2877aa61fadcb50c1238733b4fb0ef0de2cab883aa6329c0
hatashiro/monkey-hs
ParserT.hs
# LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # module Common.ParserT where import Protolude hiding (many) import qualified Common.Stream as S import Control.Exception (throw) import Control.Monad.Trans.Class (MonadTrans(..)) import qualified Data.Text as T import Uti...
null
https://raw.githubusercontent.com/hatashiro/monkey-hs/0ea5e3cf7596d64366a3d68b5616de9748a4824c/lib/Common/ParserT.hs
haskell
not really an identity
# LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # module Common.ParserT where import Protolude hiding (many) import qualified Common.Stream as S import Control.Exception (throw) import Control.Monad.Trans.Class (MonadTrans(..)) import qualified Data.Text as T import Uti...
f2fa889a14b484fda70e16f20f5064680f501b8a5ce8ef756d88ce4d13bbbfd6
justinmeiners/lisp-interpreter
numbers.scm
(==> (+ 2 2) 4) (==> (+ (* 2 100) (* 1 10)) 210) (==> (if (> 6 5) (+ 1 1) (+ 2 2)) 2) (==> (if (< 6 5) (+ 1 1) (+ 2 2)) 4) (==> (gcd 32 -36) 4) (==> (gcd 4 3) 1) (==> (gcd) 0) (==> (lcm 32 -36) 288) (assert (exact? (lcm 32 -36))) (assert (inexact? (lcm 32.0 -36))) (==> (lcm) 1) (==> (abs -1) 1) (==> (map + '(1 1...
null
https://raw.githubusercontent.com/justinmeiners/lisp-interpreter/7439900c09dabf79b2e665e0409acf652a2a6f59/tests/code/numbers.scm
scheme
(==> (+ 2 2) 4) (==> (+ (* 2 100) (* 1 10)) 210) (==> (if (> 6 5) (+ 1 1) (+ 2 2)) 2) (==> (if (< 6 5) (+ 1 1) (+ 2 2)) 4) (==> (gcd 32 -36) 4) (==> (gcd 4 3) 1) (==> (gcd) 0) (==> (lcm 32 -36) 288) (assert (exact? (lcm 32 -36))) (assert (inexact? (lcm 32.0 -36))) (==> (lcm) 1) (==> (abs -1) 1) (==> (map + '(1 1...
6ba709dc856d3234fd4e33f7aa17e0b58441879ea32ea7c6215abd4146d8b5dd
bnoordhuis/chicken-core
compiler.scm
;;;; compiler.scm - The CHICKEN Scheme compiler ; ; " This is insane . What we clearly want to do is not exactly clear , and is rooted in NCOMPLR . " ; ; ;-------------------------------------------------------------------------------------------- Copyright ( c ) 2008 - 2013 , The Chicken Team Copyright ( c ) 200...
null
https://raw.githubusercontent.com/bnoordhuis/chicken-core/56d30e3be095b6abe1bddcfe10505fa726a43bb5/compiler.scm
scheme
compiler.scm - The CHICKEN Scheme compiler -------------------------------------------------------------------------------------------- All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistr...
" This is insane . What we clearly want to do is not exactly clear , and is rooted in NCOMPLR . " Copyright ( c ) 2008 - 2013 , The Chicken Team Copyright ( c ) 2000 - 2007 , THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " AND ANY EXPRESS CONTRIBUTORS BE LIABLE FOR ANY DIRECT ...
c61fb29dcb6fa9c72266fb7d215385b2fa0cc05a9afdf7ec54a03e856ff37784
input-output-hk/cardano-addresses
Main.hs
# LANGUAGE CPP # #ifdef ghcjs_HOST_OS # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # #endif module Main (main) where import Prelude import Cardano.Address.JSAPI ( startApi ) #ifdef ghcjs_HOST_OS import Language.Javascript.JSaddle ( Object ) #else import Control.Lens ( (^.) ) import Contr...
null
https://raw.githubusercontent.com/input-output-hk/cardano-addresses/4003fc09780da61bc09d85337bdd4c7664aa49ba/jsapi/test/Main.hs
haskell
When runing the native version, point a browser at :3757/
# LANGUAGE CPP # #ifdef ghcjs_HOST_OS # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # #endif module Main (main) where import Prelude import Cardano.Address.JSAPI ( startApi ) #ifdef ghcjs_HOST_OS import Language.Javascript.JSaddle ( Object ) #else import Control.Lens ( (^.) ) import Contr...
468df54cae7d7bdd66547ff02e735ff5a09ece3cc845a2dfd79fe08e2e9ed53a
dfordivam/tenjinreader
Main.hs
module Main where import Reflex.Dom import TopWidget main :: IO () main = mainWidgetWithHead' (headWidget , (\_ -> topWidget))
null
https://raw.githubusercontent.com/dfordivam/tenjinreader/894a6f6b23d52c9c048740c0ea62f4c0f47d9561/android/app/Main.hs
haskell
module Main where import Reflex.Dom import TopWidget main :: IO () main = mainWidgetWithHead' (headWidget , (\_ -> topWidget))
70bb45ddf812ab022f78518a383f394cd8e6ea684c56f55e4e88e845f33b778a
hammerlab/ketrew
Workflow_Examples.ml
(**************************************************************************) Copyright 2014 , 2015 : < > , < > , Arun < > , < > ...
null
https://raw.githubusercontent.com/hammerlab/ketrew/8940d48fbe174709f076b7130974ecd0ed831d58/src/test/Workflow_Examples.ml
ocaml
************************************************************************ you may not use this file except in compliance with the License. You may obtain a copy of the License at ...
Copyright 2014 , 2015 : < > , < > , Arun < > , < > Licensed under the Apache License , Version 2.0 ( the " Licen...
6d5994d640a0a883c2b80c1d070491cacd4d8a230cc514f92b37000090d5abf0
slagyr/speclj
should_spec.cljc
(ns speclj.should-spec (#?(:clj :require :cljs :require-macros) [speclj.core :refer [it xit focus-it context focus-context describe focus-describe should should-not should= should-not= should== s...
null
https://raw.githubusercontent.com/slagyr/speclj/975025fbcb45fd61c3fcfebef3d001e9a759727d/spec/speclj/should_spec.cljc
clojure
(ns speclj.should-spec (#?(:clj :require :cljs :require-macros) [speclj.core :refer [it xit focus-it context focus-context describe focus-describe should should-not should= should-not= should== s...
45ba11ab4fe0d6d0f3b5b897fa14917b183b8ef2bda8b7d88e051c03bcc28832
janestreet/incr_dom
app.mli
open! Core open! Incr_dom include App_intf.S val init : unit -> Model.t
null
https://raw.githubusercontent.com/janestreet/incr_dom/56c04e44d6a8f1cc9b2b841495ec448de4bf61a1/example/ts_gui/app.mli
ocaml
open! Core open! Incr_dom include App_intf.S val init : unit -> Model.t
25a9b86443e0cab78eca4d7c51727e96b22e17429ce17649b48c6d915ef30fad
msgpack/msgpack-erlang
msgpack_tests.erl
%% MessagePack for Erlang %% Copyright ( C ) 2009 - 2013 UENISHI Kota %% 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 appli...
null
https://raw.githubusercontent.com/msgpack/msgpack-erlang/f1e1b98a5fc5fa8ea72bff834f145c7d0854c027/test/msgpack_tests.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. limitations under the License. ...
MessagePack for Erlang Copyright ( C ) 2009 - 2013 UENISHI Kota Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , See the License for the specific language governing permissions and -module(msgpack_tests). -imp...
2506a824b342e658fce5a2e7d055815a195978018ce7ffa7b3345aa5b929457f
RedHatQE/katello.auto
promotions.clj
(ns katello.tests.promotions (:require [katello :as kt] (katello [rest :as rest] [ui :as ui] [sync-management :as sync] [environments :as env] providers repositories [tasks :refer ...
null
https://raw.githubusercontent.com/RedHatQE/katello.auto/79fec96581044bce5db5350d0da325e517024962/src/katello/tests/promotions.clj
clojure
(ns katello.tests.promotions (:require [katello :as kt] (katello [rest :as rest] [ui :as ui] [sync-management :as sync] [environments :as env] providers repositories [tasks :refer ...
65a073eebfa88fdeb3af2f179edba7841c118e92d4f6ec1dc52df0eb1ef679f3
GlideAngle/flare-timing
MeridianMain.hs
import Test.Tasty (TestTree, testGroup, defaultMain) import qualified Meridian.Sphere as S import qualified Meridian.Ellipsoid.Vincenty as V main :: IO () main = defaultMain tests tests :: TestTree tests = testGroup "Earth tests (with doubles)" [ testGroup "Haversines Math" [S.units] , testGroup ...
null
https://raw.githubusercontent.com/GlideAngle/flare-timing/27bd34c1943496987382091441a1c2516c169263/lang-haskell/earth/test-suite-meridian/MeridianMain.hs
haskell
import Test.Tasty (TestTree, testGroup, defaultMain) import qualified Meridian.Sphere as S import qualified Meridian.Ellipsoid.Vincenty as V main :: IO () main = defaultMain tests tests :: TestTree tests = testGroup "Earth tests (with doubles)" [ testGroup "Haversines Math" [S.units] , testGroup ...
37751537aa6f99fff3eb2b7e2d84f6eae7ce8bfa8df4206f502382b870afb10c
lambdageek/unbound-generics
TestTH.hs
{-# OPTIONS_HADDOCK show-extensions #-} -- | Module : TestTH Copyright : ( c ) 2015 , -- License : BSD3 (See LICENSE) Maintainer : -- Stability : experimental -- -- Test of 'makeClosedAlpha' splice. # LANGUAGE TemplateHaskell # module TestTH (test_TH) where import Data.Monoid(Monoid(..)) import T...
null
https://raw.githubusercontent.com/lambdageek/unbound-generics/04fe1ba015adccc6965bbeb814bb22357ff91829/test/TestTH.hs
haskell
# OPTIONS_HADDOCK show-extensions # | License : BSD3 (See LICENSE) Stability : experimental Test of 'makeClosedAlpha' splice.
Module : TestTH Copyright : ( c ) 2015 , Maintainer : # LANGUAGE TemplateHaskell # module TestTH (test_TH) where import Data.Monoid(Monoid(..)) import Test.Tasty import Test.Tasty.HUnit import AlphaAssertions import Unbound.Generics.LocallyNameless import Unbound.Generics.LocallyNameless.Internal.Fo...
be28287a01ad74aa85eeda700ca3ad4e4959cf1722478a87f55d74d04ba80b3c
MedeaMelana/Magic
M13.hs
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE GADTs #-} # LANGUAGE DataKinds # {-# LANGUAGE DoAndIfThenElse #-} module Magic.M13 where import Magic import Magic.BasicLands (tapToAddMana) import qualified Magic.IdList as IdList import Control.Applicative import Control.Arrow (first) import Control.Category ((.)) im...
null
https://raw.githubusercontent.com/MedeaMelana/Magic/7bd87e4e1d54a7c5e5f81661196cafb87682c62a/Magic-Cards/src/Magic/M13.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE GADTs # # LANGUAGE DoAndIfThenElse # COMMON ABILITIES WHITE CARDS BLUE BLACK CARDS RED CARDS GREEN CARDS subtract this current creature COLORLESS CARDS LANDS
# LANGUAGE DataKinds # module Magic.M13 where import Magic import Magic.BasicLands (tapToAddMana) import qualified Magic.IdList as IdList import Control.Applicative import Control.Arrow (first) import Control.Category ((.)) import Control.Monad (void, when) import Data.Boolean (notB, true, (&&*), (||*)) import quali...
ea4f5a627f8ba44b9bdea9884972dc54abd4fb9a0a0688cd1fa4c683f962b5d1
Verites/verigraph
PartitionSpec.hs
module Data.PartitionSpec (spec) where import Control.Monad import Data.Set (Set) import qualified Data.Set as Set import Math.Combinat.Numbers (bellNumber) import Test.Hspec import Data.Partition spec :: Spec spec = do describe "allPa...
null
https://raw.githubusercontent.com/Verites/verigraph/754ec08bf4a55ea7402d8cd0705e58b1d2c9cd67/tests/Data/PartitionSpec.hs
haskell
module Data.PartitionSpec (spec) where import Control.Monad import Data.Set (Set) import qualified Data.Set as Set import Math.Combinat.Numbers (bellNumber) import Test.Hspec import Data.Partition spec :: Spec spec = do describe "allPa...
bef93992fcc0761bde09dd064b89afd0d5215ca455507cb674a03f20122fd34c
PatrickMaier/HdpH
Comm.hs
-- Node to node communication (via TCP) -- Uses the transport layer abstraction for distributed communication -- Hackage: -process -- GitHub: -distributed/distributed-process -- Author : , ----------------------------------------------------------------------------- # LANGUAGE CPP # {-# LANGUAGE BangPatterns...
null
https://raw.githubusercontent.com/PatrickMaier/HdpH/e836a5bcf5a6c93239f9c0d0109d7b81b459897f/hdph/src/Control/Parallel/HdpH/Internal/Comm.hs
haskell
Node to node communication (via TCP) Hackage: -process GitHub: -distributed/distributed-process --------------------------------------------------------------------------- # LANGUAGE BangPatterns # * initialise comms layer :: RTSConf -> IO () -> IO () * information about the comms layer of the virtual machine ...
Uses the transport layer abstraction for distributed communication Author : , # LANGUAGE CPP # # LANGUAGE MultiParamTypeClasses # # OPTIONS_GHC -fno - warn - orphans # module Control.Parallel.HdpH.Internal.Comm ) where import Prelude import Control.Concurrent (forkIO, killThread) import Control.Concurr...
6ce783ba51be09d415a203257bd03e1e837cf76163692e17c82b033dcdb23663
nubank/workspaces
fulcro.cljs
(ns nubank.workspaces.card-types.fulcro (:require [fulcro.client.dom :as dom] [fulcro.client.primitives :as fp] [fulcro.inspect.client :as fi.client] [goog.functions :as gfun] [nubank.workspaces.lib.fulcro-portal :as f.portal] [nubank.workspaces.card-types.u...
null
https://raw.githubusercontent.com/nubank/workspaces/c93802388e1d6e1028dda6868d4fece8a2df8ea1/src/nubank/workspaces/card_types/fulcro.cljs
clojure
(ns nubank.workspaces.card-types.fulcro (:require [fulcro.client.dom :as dom] [fulcro.client.primitives :as fp] [fulcro.inspect.client :as fi.client] [goog.functions :as gfun] [nubank.workspaces.lib.fulcro-portal :as f.portal] [nubank.workspaces.card-types.u...
67adbbfe0398258ba6de287a1369db61dab49f4c3874dec2fc11f3fbfc47877b
hgoes/smtlib2
Singleton.hs
module Language.SMTLib2.Composite.Singleton where import Language.SMTLib2 import Language.SMTLib2.Internals.Embed import Language.SMTLib2.Internals.Type import Language.SMTLib2.Internals.Type.Nat import Language.SMTLib2.Composite.Class hiding (defaultEq) import Language.SMTLib2.Composite.Domains import Language.SMTLib...
null
https://raw.githubusercontent.com/hgoes/smtlib2/c35747f2a5a9ec88dc7b1db41a5aab6e98c0458d/extras/composite/Language/SMTLib2/Composite/Singleton.hs
haskell
Redundant , but neccessary for the typechecker XXX : This should be obvious , but not to the typechecker XXX : See above Redundant, but neccessary for the typechecker XXX: This should be obvious, but not to the typechecker XXX: See above data BVSplitRest start len size e where NoRest :: BVSplit start len ...
module Language.SMTLib2.Composite.Singleton where import Language.SMTLib2 import Language.SMTLib2.Internals.Embed import Language.SMTLib2.Internals.Type import Language.SMTLib2.Internals.Type.Nat import Language.SMTLib2.Composite.Class hiding (defaultEq) import Language.SMTLib2.Composite.Domains import Language.SMTLib...
20a64cc71dbac42579bcad156885b6a8a3159826252ee9d4107005cce9d53ae7
wdebeaum/step
warmup.lisp
;;;; ;;;; W::WARMUP ;;;; (define-words :pos W::adj :templ CENTRAL-ADJ-TEMPL :words ( (W::WARMUP (SENSES ((EXAMPLE "a warmup task") (lf-parent ont::startup-val) (TEMPL adj-content-TEMPL) (SYNTAX (W::atype W::attributive-only)) ) ) ) ))
null
https://raw.githubusercontent.com/wdebeaum/step/f38c07d9cd3a58d0e0183159d4445de9a0eafe26/src/LexiconManager/Data/new/warmup.lisp
lisp
W::WARMUP
(define-words :pos W::adj :templ CENTRAL-ADJ-TEMPL :words ( (W::WARMUP (SENSES ((EXAMPLE "a warmup task") (lf-parent ont::startup-val) (TEMPL adj-content-TEMPL) (SYNTAX (W::atype W::attributive-only)) ) ) ) ))
64b226dd5c8c653621bd9d66ddf0c3e9e0cf07b00b144fe8ab88b6458abdef4d
basho/riak_search
riak_search_schema_tests.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2016 Basho Technologies , Inc. %% 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 Li...
null
https://raw.githubusercontent.com/basho/riak_search/79c034350f37706a1db42ffca8f6449d4cce99e1/test/riak_search_schema_tests.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 ) 2016 Basho Technologies , Inc. 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(riak_search_schema_test...
3073fe7fa348f23e07fd9a1b2826f70a5e4fd299fd860025c261d902af7167ef
unison-code/unison
RenameOperations.hs
| Copyright : Copyright ( c ) 2016 , RISE SICS AB License : BSD3 ( see the LICENSE file ) Maintainer : Copyright : Copyright (c) 2016, RISE SICS AB License : BSD3 (see the LICENSE file) Maintainer : -} Main authors : < > This file is part of Unison , see -code.github.io ...
null
https://raw.githubusercontent.com/unison-code/unison/9f8caf78230f956a57b50a327f8d1dca5839bf64/src/unison/src/Unison/Transformations/RenameOperations.hs
haskell
| Copyright : Copyright ( c ) 2016 , RISE SICS AB License : BSD3 ( see the LICENSE file ) Maintainer : Copyright : Copyright (c) 2016, RISE SICS AB License : BSD3 (see the LICENSE file) Maintainer : -} Main authors : < > This file is part of Unison , see -code.github.io ...
3489c395dc486549d905ddeaf0741cd30aa8aa7b99868294fac07b4189bafc77
chapmanb/bcbio.variation
config.clj
(ns bcbio.variation.config "Load and prepare inputs from YAML configuration files." (:use [clojure.java.io] [clj-time.local :only [format-local-time local-now]]) (:require [clojure.string :as string] [clojure.tools.logging :as log] [clj-stacktrace.repl :as stacktrace] [...
null
https://raw.githubusercontent.com/chapmanb/bcbio.variation/c48834a6819e63dcccb5bc51540c7e19b212a019/src/bcbio/variation/config.clj
clojure
(ns bcbio.variation.config "Load and prepare inputs from YAML configuration files." (:use [clojure.java.io] [clj-time.local :only [format-local-time local-now]]) (:require [clojure.string :as string] [clojure.tools.logging :as log] [clj-stacktrace.repl :as stacktrace] [...
7e6bb0d7e8a142820fb9e34dff6ce425e070c81f382855a0cdf8ddc55d1b7fbf
huangjs/cl
sublis.lisp
-*- Mode : Lisp ; Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; The data in this file contains enhancments. ;;;;; ;;; ;;;;; ...
null
https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/maxima/src/sublis.lisp
lisp
Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; The data in this file contains enhancments. ;;;;; ;;;;; ; ; ; ; All rights reserved ;;;;; SUBLIS([sym1=form1...
: flavor of Lisp 's ... * * ( c ) Copyright 1980 Massachusetts Institute of Technology * * (in-package :maxima) (macsyma-module sublis) (defmvar $sublis_apply_lambda t "a flag which controls whether LAMBDA's substituted are applied in simplification after the SUBLIS or whether you have to do an EV to...