_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
baacd39bb4df7a467923188cc0ee890bb747d83fa6af3ecc5d5b20f8a493f357
dolotech/erlang_server
pt_misc.erl
%%---------------------------------------------------- 协议10 - 综合 %% %% @author Rolong<> %%---------------------------------------------------- -module(pt_misc). -export([handle/3]). -include("common.hrl"). handle(10005, [], Rs) -> admin ! {send_notice, Rs#role.pid_sender}, {ok}; handle(10...
null
https://raw.githubusercontent.com/dolotech/erlang_server/44ea3693317f60e18b19c9ddfa179307cbd646d7/src/pt/pt_misc.erl
erlang
---------------------------------------------------- @author Rolong<> ---------------------------------------------------- === 私有函数 === ',%% . :
协议10 - 综合 -module(pt_misc). -export([handle/3]). -include("common.hrl"). handle(10005, [], Rs) -> admin ! {send_notice, Rs#role.pid_sender}, {ok}; handle(10010, [Type, Content], Rs) when Type == 1 orelse Type == 2 -> Sql = "INSERT INTO `feedback` (`role_id`, `type`, `ctime`, `ip`, `aid`, ...
3775462a489031e6f7f4cff2d3d06766f8b99b365dd65c07f0cf27fe67d2429d
nineties/Choco
SrcLoc.hs
------------------------------------------------- Choco -- Chikadzume Oriented Compiler -- Copyright 2007 - 2008 by Basement fairy -- ------------------------------------------------- module SrcLoc ( SrcLoc, -- abstract sL, mkSrcLoc, noSrcLoc,...
null
https://raw.githubusercontent.com/nineties/Choco/0081351d0b556ff74f096accb65c9ab45d29ddfe/src/SrcLoc.hs
haskell
----------------------------------------------- ----------------------------------------------- abstract source location start line start column end line end column ---------------------------------------------------------- The location info wrapper ---------------------------------------------------------...
module SrcLoc ( sL, mkSrcLoc, noSrcLoc, advanceSrcLoc, startSrcLoc, combineSrcLoc, Located(..), unLoc, getLoc ) where import Outputable import Panic data SrcLoc = SrcLoc { line number , 1 origin column number , 0 origin } | SrcSpan { } | UnhelpfulLoc String der...
79c116995328915e6ee289c63962a11a460860ae6cf2f2831d11a5c8a5e9d325
cljdoc/cljdoc
articles.clj
(ns cljdoc.render.articles "HTML fragments related to rendering articles and article-trees" (:require [cljdoc.util.scm :as scm] [cljdoc.server.routes :as routes] [clojure.string :as string] [hiccup2.core :as hiccup])) (defn doc-link [version-entity slugs] (assert (seq slugs) "...
null
https://raw.githubusercontent.com/cljdoc/cljdoc/f2484e9a20b8b777a84cd504e580f9cf02fc3a8c/src/cljdoc/render/articles.clj
clojure
outside of div with markdown specific styling so markdown styling does not override tachyons classes.
(ns cljdoc.render.articles "HTML fragments related to rendering articles and article-trees" (:require [cljdoc.util.scm :as scm] [cljdoc.server.routes :as routes] [clojure.string :as string] [hiccup2.core :as hiccup])) (defn doc-link [version-entity slugs] (assert (seq slugs) "...
ffbd22542de1ab91735730fdbaa745761f9dac0c9d611b813ee626da76d1a9d2
shirok/Gauche
14.scm
SRFI-14 became scheme.charset (define-module srfi.14 (extend scheme.charset))
null
https://raw.githubusercontent.com/shirok/Gauche/e606bfe5a94b100d5807bca9c2bb95df94f60aa6/lib/srfi/14.scm
scheme
SRFI-14 became scheme.charset (define-module srfi.14 (extend scheme.charset))
9c400e098a3fc8b4c3c54721774224030d25efad81338a01151a637b48b09ceb
CIFASIS/QuickFuzz
Main.hs
# LANGUAGE TemplateHaskell # module Main where import Control.Exception import System.Environment import Data.List import Args import Formats import Utils import DeriveDispatcher import Run.GenTest import Run.MutTest import Run.Gen import Run.Exec import Run.Shrink import Run.List import Run.Serve import Test.Quic...
null
https://raw.githubusercontent.com/CIFASIS/QuickFuzz/a1c69f028b0960c002cb83e8145f039ecc0e0a23/app/Main.hs
haskell
|Print unsupported file format error message |Template Haskell dispatcher derivations |Subcommands dispatcher |Pretty print error messages
# LANGUAGE TemplateHaskell # module Main where import Control.Exception import System.Environment import Data.List import Args import Formats import Utils import DeriveDispatcher import Run.GenTest import Run.MutTest import Run.Gen import Run.Exec import Run.Shrink import Run.List import Run.Serve import Test.Quic...
e01928f5872794847971e1bacb3085ba2b1254f3f97b0b58fe875866114bc8a1
GaloisInc/semmc
X86.hs
-- | Representations of the x86_64 architecture for semantics learning # LANGUAGE DataKinds # module SemMC.X86 ( MachineState(..), Instruction, testSerializer, YMM(..) ) where import Control.Monad ( replicateM ) import qualified Data.Binary.Get as G import qualified Data.ByteString as B import qualified Data...
null
https://raw.githubusercontent.com/GaloisInc/semmc/4dc4439720b3b0de8812a68f8156dc89da76da57/semmc-x86_64/src/SemMC/X86.hs
haskell
| Representations of the x86_64 architecture for semantics learning The x86 tests use literal machine code. Note that we have to parse out the mask, even though it isn't populated here.
# LANGUAGE DataKinds # module SemMC.X86 ( MachineState(..), Instruction, testSerializer, YMM(..) ) where import Control.Monad ( replicateM ) import qualified Data.Binary.Get as G import qualified Data.ByteString as B import qualified Data.ByteString.Builder as B import qualified Data.ByteString.Lazy as LB im...
6ccbbf8850be21a719688f4b42d8d3b5f10613b55c9ccecb86d959adca817ad2
coq/coq
cWarnings.mli
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * *...
null
https://raw.githubusercontent.com/coq/coq/c609f9b8549e7e9a946f3d783f71f7cdca35c8cc/lib/cWarnings.mli
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team // * This file is distributed under the terms of the * (see LICENSE file for the text of the license) ************************************...
v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser Gener...
47ca9b5db45f6c83db05fd72cab7f6a58f7ca1c8083e217d94f46fcf1db3b5de
vouch-opensource/vouch-load-tests
loop.clj
(ns io.vouch.load-tests.task.loop (:require [clojure.core.async :refer [<! go]] [clojure.tools.logging :as log] [io.vouch.load-tests.executor :as executor] [io.vouch.load-tests.task.definition.converter :as definition-converter])) (defmethod definition-converter/task-definition->task :loop [definit...
null
https://raw.githubusercontent.com/vouch-opensource/vouch-load-tests/d1d3a8b7df760ad452037d69cce85b0f2ccbb3b8/src/io/vouch/load_tests/task/loop.clj
clojure
(ns io.vouch.load-tests.task.loop (:require [clojure.core.async :refer [<! go]] [clojure.tools.logging :as log] [io.vouch.load-tests.executor :as executor] [io.vouch.load-tests.task.definition.converter :as definition-converter])) (defmethod definition-converter/task-definition->task :loop [definit...
f5663f0448826f0fe5f30cee65670c5132845bca922a2589d58cbd2011012699
clojure/clojurescript
apply_test.cljs
Copyright ( c ) . All rights reserved . ; The use and distribution terms for this software are covered by the ; Eclipse Public License 1.0 (-1.0.php) ; which can be found in the file epl-v10.html at the root of this distribution. ; By using this software in any fashion, you are agreeing to be bound by ; ...
null
https://raw.githubusercontent.com/clojure/clojurescript/7af8c42f6a9c045b4c5e213163a04816935ebe42/src/test/cljs/cljs/apply_test.cljs
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) . All rights reserved . (ns cljs.apply-test (:require [clojure.test :refer [deftest is]])) (defn fn-returning-this [x] (this-as this this)) (deftest js-fns-test (is (= 1 (apply js/parseInt ["1"]))) (is (= 1 (apply js/parseInt "1" nil))) (is (= 1 (apply js/parseInt "1" []))) (i...
f578df2174ad07d8668ee04f1905fda77b029401a4dc20ebb378fab0d1f96b93
patperry/hs-linear-algebra
LAPACK.hs
# LANGUAGE FlexibleInstances # ----------------------------------------------------------------------------- -- | Module : Foreign . LAPACK Copyright : Copyright ( c ) 2010 , < > -- License : BSD3 Maintainer : < > -- Stability : experimental -- -- Types with a Linear Algebra PACKage. -- module Fo...
null
https://raw.githubusercontent.com/patperry/hs-linear-algebra/887939175e03687b12eabe2fce5904b494242a1a/lib/Foreign/LAPACK.hs
haskell
--------------------------------------------------------------------------- | License : BSD3 Stability : experimental Types with a Linear Algebra PACKage. * Enums
# LANGUAGE FlexibleInstances # Module : Foreign . LAPACK Copyright : Copyright ( c ) 2010 , < > Maintainer : < > module Foreign.LAPACK ( * LAPACK LAPACK(..), module Foreign.LAPACK.Types, ) where import Control.Monad( forM_, when ) import Control.Exception( assert ) import Data.Complex...
86a79b120c5c4b4505072b6c62606b165b48569a393961c21e83e660e3696b9e
vimus/vimus
Timer.hs
module Timer ( Timer , startTimer , stopTimer , getPOSIXTime ) where import Control.Concurrent import Control.Monad (when) import Data.Time.Clock.POSIX newtype Timer = Timer (MVar Bool) -- | Start a timer. -- -- Call given action repeatedly with the passed time since the timer has bee...
null
https://raw.githubusercontent.com/vimus/vimus/26a164fb50870f8112ca4b6c30820431c015916f/src/Timer.hs
haskell
| Start a timer. Call given action repeatedly with the passed time since the timer has been started, adjusted by a given offset. The action is called every second; whenever (passed + offset) is close to (truncate $ passed + offset). ^ start time expected | Stop timer; block until the timer is stopped.
module Timer ( Timer , startTimer , stopTimer , getPOSIXTime ) where import Control.Concurrent import Control.Monad (when) import Data.Time.Clock.POSIX newtype Timer = Timer (MVar Bool) ^ offset in seconds -> (Double -> IO ()) -> IO Timer startTimer t0 s0 actio...
84378e4e8912e9978ea460309c7599b701d1bffa2c6e054129b026f0365d98c0
mindylou/legend-of-zolda
ai.mli
open Types (* [makeAiCommand st ai_id] is the command that the ai with id ai_id will make with * the current state st *) val makeAiCommand : state -> id -> command
null
https://raw.githubusercontent.com/mindylou/legend-of-zolda/1c0e7a4535c2c2361943a464b49963d6703a172a/ai.mli
ocaml
[makeAiCommand st ai_id] is the command that the ai with id ai_id will make with * the current state st
open Types val makeAiCommand : state -> id -> command
9f060ad8cccd79223c31673005ed73f21e961e8fc414a161e339c97fc6729fdb
kwanghoon/polyrpc
SyntaxCompletionSpec.hs
module SyntaxCompletionSpec where import SyntaxCompletion (computeCand) import SynCompInterface import Test.Hspec import System.IO (readFile) spec = hspec $ do describe "syntax complection polyrpc/app/syncomp" $ do let tc1 = "f : Int = (2 + 3" it ("[tc1.sb:simple] " ++ tc1) $ do results <- computeCan...
null
https://raw.githubusercontent.com/kwanghoon/polyrpc/d8d1cac794a70ba899203107e1fd26d42e16b099/app/syncomp/SyntaxCompletionSpec.hs
haskell
module SyntaxCompletionSpec where import SyntaxCompletion (computeCand) import SynCompInterface import Test.Hspec import System.IO (readFile) spec = hspec $ do describe "syntax complection polyrpc/app/syncomp" $ do let tc1 = "f : Int = (2 + 3" it ("[tc1.sb:simple] " ++ tc1) $ do results <- computeCan...
cc9e8b887fdc5d0bc4c2701f2aff257ea55fe89be404dd7e6c3a4c6a70f3efb7
rescript-lang/syntax
res_parser.ml
module Scanner = Res_scanner module Diagnostics = Res_diagnostics module Token = Res_token module Grammar = Res_grammar module Reporting = Res_reporting module Comment = Res_comment type mode = ParseForTypeChecker | Default type regionStatus = Report | Silent type t = { mode: mode; mutable scanner: Scanner.t; ...
null
https://raw.githubusercontent.com/rescript-lang/syntax/08029afafeef01cda2366c580b0b06d376b31d54/src/res_parser.ml
ocaml
Don't use immutable copies here, it trashes certain heuristics * in the ocaml compiler, resulting in massive slowdowns of the parser
module Scanner = Res_scanner module Diagnostics = Res_diagnostics module Token = Res_token module Grammar = Res_grammar module Reporting = Res_reporting module Comment = Res_comment type mode = ParseForTypeChecker | Default type regionStatus = Report | Silent type t = { mode: mode; mutable scanner: Scanner.t; ...
2b23e38f8074a8f9c06cceaab392fcde88ceaf46b2dd9c13d1d54b823728e05f
bos/rwh
csv1.hs
{-- snippet all --} ch18 / csv1.hs import Text.ParserCombinators.Parsec A CSV file contains 0 or more lines , each of which is terminated by the end - of - line character ( eol ) . by the end-of-line character (eol). -} csvFile :: GenParser Char st [[String]] csvFile = do result <- many line e...
null
https://raw.githubusercontent.com/bos/rwh/7fd1e467d54aef832f5476ebf5f4f6a898a895d1/examples/ch18/csv1.hs
haskell
- snippet all - end of line what ends the cell. or it doesn't, indicating that we're at the end of the cells for this line Found comma? More cells coming No comma? Return [], no more cells Each cell contains 0 or more characters, which must not be a comma or The end of line character is \n - /snippet all -
ch18 / csv1.hs import Text.ParserCombinators.Parsec A CSV file contains 0 or more lines , each of which is terminated by the end - of - line character ( eol ) . by the end-of-line character (eol). -} csvFile :: GenParser Char st [[String]] csvFile = do result <- many line eof return res...
44c2db491ff5d6e138ad3674847da87e86ea123b56e0b0778604ce8e710e69af
saikyun/native-image-clojure-c
core.clj
(ns core (:require [other-triple]) #_(:import TripletLib) (:import wat.cool.OOTripletLib) (:gen-class)) (defn -main [& args] (println "lul") (let [t (OOTripletLib/allocRandomTriple)] (println (.getId (.subject t))) (OOTripletLib/freeTriple t)))
null
https://raw.githubusercontent.com/saikyun/native-image-clojure-c/5b696dacace0ad645af025daf332beca972d362f/src/core.clj
clojure
(ns core (:require [other-triple]) #_(:import TripletLib) (:import wat.cool.OOTripletLib) (:gen-class)) (defn -main [& args] (println "lul") (let [t (OOTripletLib/allocRandomTriple)] (println (.getId (.subject t))) (OOTripletLib/freeTriple t)))
d14260c14f5683bfb3d82f5951d6294661241861eecd5d84f3b74c09e6405032
autolwe/autolwe
Norm.ml
(* * Normal form computation for expressions. *) (* ** Imports *) open Abbrevs open Type open Expr open ExprUtils open Syms open Util open NormMat open NormList let mk_log level = mk_logger "Norm.Norm" level "Norm.ml" let _log_i = mk_log Bolt.Level.INFO (* ** Helper functions for norm * ----------------------------...
null
https://raw.githubusercontent.com/autolwe/autolwe/3452c3dae06fc8e9815d94133fdeb8f3b8315f32/src/Norm/Norm.ml
ocaml
* Normal form computation for expressions. ** Imports ** Helper functions for norm * ----------------------------------------------------------------------- * Type based normalization for group elements and products, even applied to variables g ^ (log x) ** Mutually recursive norm functions * ----------...
open Abbrevs open Type open Expr open ExprUtils open Syms open Util open NormMat open NormList let mk_log level = mk_logger "Norm.Norm" level "Norm.ml" let _log_i = mk_log Bolt.Level.INFO let rec norm_type e = match e.e_ty.ty_node with | TySym _ | Fq | Bool | Int | BS _ -> e | Mat _ -> e | List _ -> e |...
cc9609f2d52cf68089ccbb8df2cf1389d827b750481120498fbb80dc8e407154
paurkedal/ocaml-caqti
main_eio_unix.ml
Copyright ( C ) 2022 < > * * 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 3 of the License , or ( at your * option ) any later version , with the ...
null
https://raw.githubusercontent.com/paurkedal/ocaml-caqti/d0acb83a5ab48d99c97e01133b997c080a7b39ae/benchmarks/main_eio_unix.ml
ocaml
Copyright ( C ) 2022 < > * * 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 3 of the License , or ( at your * option ) any later version , with the ...
055e80abd35e05161106473ac06f62d882599c8706be3fe5ae0d9258adf929b3
spawnfest/eep49ers
ssl_dh_groups.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2007 - 2018 . 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 License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/spawnfest/eep49ers/d1020fd625a0bbda8ab01caf0e1738eb1cf74886/lib/ssl/src/ssl_dh_groups.erl
erlang
%CopyrightBegin% 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 lan...
Copyright Ericsson AB 2007 - 2018 . 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(ssl_dh_groups). -include_lib("public_key/include/public_key.hrl"). -export([modp2048_generator/0, modp2048...
1a4afc1ca744b1db8c761cc6d06a627bb996c845e65f8cef4abdaa561cca7fd5
rlepigre/ocaml-bindlib
cmd.ml
open Term open Bindlib open Timed open Ast type env = { glob : meta list ref (* assoc list of all meta var *) ; ctxt : ctxt ref (* bindlib context to use bindlib renaming *) ; locl : (string * term box) list (* local environment *) ; mutable undo : Time.t list ...
null
https://raw.githubusercontent.com/rlepigre/ocaml-bindlib/0db2a0bf7226838ce91c68ca3193bc6af637997f/examples/metavar/cmd.ml
ocaml
assoc list of all meta var bindlib context to use bindlib renaming local environment do not manage undo list via Timed printing of meta var creation of a fresh meta variable. Its context is computed from the local environment let bindlib rename the metavar if needed update the environment search a n...
open Term open Bindlib open Timed open Ast type env = ; locl : (string * term box) list ; mutable undo : Time.t list } let print_mta ch m = let parray ch a = Array.iteri (fun i s -> Printf.fprintf ch "%s%s" (if i > 0 then "," else "") s) a in Printf.fprintf ch "%s[%a]" m.mname parray m.ctxte ...
a543211fa4ece34690e2eb83aad92bce30e12bb0a05b74a005230feedd6ad511
inconvergent/weird
3bvh.lisp
(in-package :weir) (declaim (inline make-bvhres bvhres-i bvhres-s)) (defstruct (bvhres) (i -1 :type fixnum :read-only nil) (s 900000f0 :type veq:ff :read-only nil)) (weird:define-struct-load-form bvhres) (declaim (inline %make-polyx)) (veq:fvdef* make-polyx ((:va 3 v0 v1 v2) &aux (res (veq:f3$zero 3))) (decl...
null
https://raw.githubusercontent.com/inconvergent/weird/106d154ec2cd0e4ec977c3672ba717d6305c1056/src/weir/3bvh.lisp
lisp
TODO: find a better way for this ?? what is this?
(in-package :weir) (declaim (inline make-bvhres bvhres-i bvhres-s)) (defstruct (bvhres) (i -1 :type fixnum :read-only nil) (s 900000f0 :type veq:ff :read-only nil)) (weird:define-struct-load-form bvhres) (declaim (inline %make-polyx)) (veq:fvdef* make-polyx ((:va 3 v0 v1 v2) &aux (res (veq:f3$zero 3))) (decl...
28a5d525a4cc3accd0c1895a1b6150455a97136e7bf712461cc3c8aff2833358
jgm/HeX
test.hs
{-# LANGUAGE PackageImports, OverloadedStrings #-} import Text.HeX import Text.HeX.Standard as Standard import Docbook as Docbook import Control.Monad (guard, liftM) import Control.Applicative ((<$>)) import qualified Data.Map as M import Text.HeX.Standard.Xml (inTags) import Text.HeX.Standard.TeX (ctl,grp) import Cont...
null
https://raw.githubusercontent.com/jgm/HeX/5bab503606e01c453555545493c43c00398ca408/test/test.hs
haskell
# LANGUAGE PackageImports, OverloadedStrings # addParser [Math, Inline] unknown FOR DEBUGGING CSS:
import Text.HeX import Text.HeX.Standard as Standard import Docbook as Docbook import Control.Monad (guard, liftM) import Control.Applicative ((<$>)) import qualified Data.Map as M import Text.HeX.Standard.Xml (inTags) import Text.HeX.Standard.TeX (ctl,grp) import Control.Monad.Trans (liftIO) main = defaultMain $ do ...
f867316a640ac7caf88386706aeaa7bbf61082d6b593714da551b983816c5d3c
8c6794b6/guile-tjit
parse.scm
ECMAScript for Copyright ( C ) 2009 , 2010 Free Software Foundation , Inc. ;;;; 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 3 of the License , or ( at your o...
null
https://raw.githubusercontent.com/8c6794b6/guile-tjit/9566e480af2ff695e524984992626426f393414f/module/language/ecmascript/parse.scm
scheme
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public either This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See...
ECMAScript for Copyright ( C ) 2009 , 2010 Free Software Foundation , Inc. version 3 of the License , or ( at your option ) any later version . You should have received a copy of the GNU Lesser General Public Foundation , Inc. , 51 Franklin Street , Fifth Floor , Boston , USA (define-module (language...
442b366e9f1b757a1f07eb12e93032040ad0719134437f83d227ff368f8bae49
robert-strandh/SICL
nintersection-defun.lisp
(cl:in-package #:sicl-cons) ;;; We take advantage of the fact that the standard doesn't require ;;; this function to have any side effects. (defun nintersection (list1 list2 &key key (test nil test-given) (test-not nil test-not-given)) (when (and test-given test-not-given) (error 'both-tes...
null
https://raw.githubusercontent.com/robert-strandh/SICL/32d995c4f8e7d228e9c0cda6f670b2fa53ad0287/Code/Cons/nintersection-defun.lisp
lisp
We take advantage of the fact that the standard doesn't require this function to have any side effects.
(cl:in-package #:sicl-cons) (defun nintersection (list1 list2 &key key (test nil test-given) (test-not nil test-not-given)) (when (and test-given test-not-given) (error 'both-test-and-test-not-given)) (let ((use-hash (> (* (length list1) (length list2)) 1000))) (if key (if te...
415763525c8c2a2eb05dc9b36dfd38c5a8763283c1bc2d8c56dee6e25dacacf5
pirapira/coq2rust
record.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/pirapira/coq2rust/22e8aaefc723bfb324ca2001b2b8e51fcc923543/toplevel/record.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** ********* definition d'un record (st...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Pp open Errors open Util...
d10bb2586f8b1c1db438ccad1486fcc8ea925bbd6da599d37257bac635e53ac0
cloudant/couch_replicator
couch_replicator_sup.erl
Copyright 2010 Cloudant % 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 Lice...
null
https://raw.githubusercontent.com/cloudant/couch_replicator/1c8cddeabe4e6eab6fb248d6bdd54996e9dc93cb/src/couch_replicator_sup.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 limitation...
Copyright 2010 Cloudant 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_replicator_sup). -behaviour(supervisor). -export([start_link/0, init/1]). start_link() -> supervisor:start_link...
49a6196cc3c6b62f0e9198589b0ed85228450ee75167acc46b61698e99caf9ec
schlepfilter/frp
checkbox.cljs
(ns examples.cycle.checkbox (:require [cats.core :as m] [frp.clojure.core :as core] [frp.core :as frp])) (frp/defe check) (def checked (->> check core/count (m/<$> odd?) (frp/stepper false))) (defn checkbox-component [checked*] [:div [:input {:on-change #(check...
null
https://raw.githubusercontent.com/schlepfilter/frp/4a889f0aefd3aa17371fe1f0cdfabdad01fece8f/examples/src/examples/cycle/checkbox.cljs
clojure
(ns examples.cycle.checkbox (:require [cats.core :as m] [frp.clojure.core :as core] [frp.core :as frp])) (frp/defe check) (def checked (->> check core/count (m/<$> odd?) (frp/stepper false))) (defn checkbox-component [checked*] [:div [:input {:on-change #(check...
e386b468a0c91fc35696982510b5b60312b1c8d34469ddea50e5835c2af1ea09
Atidot/language-powerquery
Spec.hs
{-# LANGUAGE PackageImports #-} module Main where import "hspec" Test.Hspec hiding (example) import "pbix" Codec.Pbix.Types main :: IO () main = hspec $ do return ()
null
https://raw.githubusercontent.com/Atidot/language-powerquery/e396e2c2f2855b1a82f1158b91c67db6495bc2d3/pbix/test/Spec.hs
haskell
# LANGUAGE PackageImports #
module Main where import "hspec" Test.Hspec hiding (example) import "pbix" Codec.Pbix.Types main :: IO () main = hspec $ do return ()
591eb68f0ca75624ce59ae8068f5596b51c4d5f039cd99951dcceeb8ac097718
axelarge/advent-of-code
day11_test.clj
(ns advent-of-code.y2018.day11-test (:require [clojure.test :refer :all] [advent-of-code.y2018.day11 :refer :all])) (deftest test-power-level (is (= (power-level 8 3 5) 4)) (is (= (power-level 57 122 79) -5)) (is (= (power-level 39 217 196) 0)) (is (= (power-level 71 101 153) 4))) (deftest test-...
null
https://raw.githubusercontent.com/axelarge/advent-of-code/4c62a53ef71605780a22cf8219029453d8e1b977/test/advent_of_code/y2018/day11_test.clj
clojure
(ns advent-of-code.y2018.day11-test (:require [clojure.test :refer :all] [advent-of-code.y2018.day11 :refer :all])) (deftest test-power-level (is (= (power-level 8 3 5) 4)) (is (= (power-level 57 122 79) -5)) (is (= (power-level 39 217 196) 0)) (is (= (power-level 71 101 153) 4))) (deftest test-...
da566fb3782327ed57923389ec971529324ef160fb584289c865aee879a09cb5
apache/couchdb-rebar
rebar_qc.erl
-*- erlang - indent - level : 4;indent - tabs - mode : nil -*- %% ex: ts=4 sw=4 et %% ------------------------------------------------------------------- %% rebar : Erlang Build Tools %% Copyright ( c ) 2011 - 2016 %% %% Permission is hereby granted, free of charge, to any person obtaining a copy %% of this sof...
null
https://raw.githubusercontent.com/apache/couchdb-rebar/8578221c20d0caa3deb724e5622a924045ffa8bf/src/rebar_qc.erl
erlang
ex: ts=4 sw=4 et ------------------------------------------------------------------- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sel...
-*- erlang - indent - level : 4;indent - tabs - mode : nil -*- rebar : Erlang Build Tools Copyright ( c ) 2011 - 2016 in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of t...
d25d02e3d9d14f5ae7f297908bfdce12f2f07b451dac29a02c3e5bcec6d93cf9
marick/Midje
specific.clj
;; Using `refer` is perhaps more idiomatic than `:require :as`. A simple record definition ;; need only refer to protocol name. However, self-calls in function definitions require ;; `refer`ences to the generic function. Any use of a generic function in code or tests ;; following the record definition require `refer`en...
null
https://raw.githubusercontent.com/marick/Midje/2b9bcb117442d3bd2d16446b47540888d683c717/test/as_documentation/about_defrecord/using_refer__plain_tests/specific.clj
clojure
Using `refer` is perhaps more idiomatic than `:require :as`. A simple record definition need only refer to protocol name. However, self-calls in function definitions require `refer`ences to the generic function. Any use of a generic function in code or tests following the record definition require `refer`ences. Th...
(ns as-documentation.about-defrecord.using-refer--plain-tests.specific (:require [midje.sweet :refer :all]) (:require [as-documentation.about-defrecord.generic :refer [Numerical]]) (:require [as-documentation.about-defrecord.generic ]])) (defrecord Record [n] Numerical (bump [_ by] (+ ...
41b0db04d88ec90e596ccd98bc4aedc7d6ab6593b2f1bcd2297deb9977c4b37e
NorfairKing/easyspec
TH.hs
# LANGUAGE TemplateHaskell # module EasySpec.Evaluate.Analyse.Data.Common.TH where import Import import Language.Haskell.TH as TH import Language.Haskell.TH.Syntax as TH import qualified EasySpec.Discover as ES import qualified EasySpec.Discover.CodeUtils as ES import qualified EasySpec.Discover.Types as ES import ...
null
https://raw.githubusercontent.com/NorfairKing/easyspec/b038b45a375cc0bed2b00c255b508bc06419c986/easyspec-evaluate/src/EasySpec/Evaluate/Analyse/Data/Common/TH.hs
haskell
No hackage for now
# LANGUAGE TemplateHaskell # module EasySpec.Evaluate.Analyse.Data.Common.TH where import Import import Language.Haskell.TH as TH import Language.Haskell.TH.Syntax as TH import qualified EasySpec.Discover as ES import qualified EasySpec.Discover.CodeUtils as ES import qualified EasySpec.Discover.Types as ES import ...
c9d00a3683d0ecf358c0b1ab7ede0d047bc40c16f41fb7af16b685661b55815c
Shimuuar/histogram-fill
QuickCheck.hs
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -fno - warn - orphans # -- | Arbitrary instances for histogram-fill module Data.Histogram.QuickCheck where import Control.Applicative import Test.QuickCheck import Data.List import qualified Data.Vecto...
null
https://raw.githubusercontent.com/Shimuuar/histogram-fill/3dff15027390cf64e7fc3fbaac34c28ffcdacbd6/histogram-fill-quickcheck/Data/Histogram/QuickCheck.hs
haskell
| Arbitrary instances for histogram-fill -------------------------------------------------------------- -------------------------------------------------------------- -------------------------------------------------------------- Histogram instance -------------------------------------------------------------- ------...
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -fno - warn - orphans # module Data.Histogram.QuickCheck where import Control.Applicative import Test.QuickCheck import Data.List import qualified Data.Vector.Unboxed as U import qualified Data.Vector....
192497a27144f2b77811ad9c257221a0670858ed338bd0dd0082ecd6f589c12a
ryukzak/nitta
Tests.hs
# LANGUAGE DataKinds # # LANGUAGE IncoherentInstances # # LANGUAGE PartialTypeSignatures # | Module : NITTA.Model . Problems . Refactor . Tests Description : Copyright : ( c ) , 2021 License : : Stability : experimental Module : NITTA.Model.Problems.Refactor.Tests Descriptio...
null
https://raw.githubusercontent.com/ryukzak/nitta/6d5cab0465ff5bcccfe419b8d8553266c530f7b7/test/NITTA/Model/Problems/Refactor/Tests.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE IncoherentInstances # # LANGUAGE PartialTypeSignatures # | Module : NITTA.Model . Problems . Refactor . Tests Description : Copyright : ( c ) , 2021 License : : Stability : experimental Module : NITTA.Model.Problems.Refactor.Tests Descriptio...
ef6ba64e0f86c2e56211b4801363f7642844eac88812a3325a8773ee800ced81
dgiot/dgiot
emqx_zone_SUITE.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2018 - 2022 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 o...
null
https://raw.githubusercontent.com/dgiot/dgiot/c601555e45f38d02aafc308b18a9e28c543b6f2c/test/emqx_zone_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 ...
Copyright ( c ) 2018 - 2022 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_zone_SUITE). -compile(export_all). -compile(nowarn_export_all). -include_lib("eun...
6e749f303366b00b32670af2f76ef7d6cf0fd7962c473ec88f5481bb67f0f068
AlexKnauth/music
Bach-Goldberg-Canone-alla-Quarta.rkt
#lang agile (require racket/runtime-path music/data/chord/main music/data/instrument/main "../example/Bach-Goldberg-Canone-alla-Quarta.rkt" "../notation/musicxml/musicxml-file.rkt" "../notation/musicxml/score.rkt" "../notation/lilypond/lilypond-file.rkt") (define ...
null
https://raw.githubusercontent.com/AlexKnauth/music/b4489c27d7c0f7116d769344c787fa76b479e5fa/music/demo/Bach-Goldberg-Canone-alla-Quarta.rkt
racket
------------------------------------------------------------------------ ------------------------------------------------------------------------
#lang agile (require racket/runtime-path music/data/chord/main music/data/instrument/main "../example/Bach-Goldberg-Canone-alla-Quarta.rkt" "../notation/musicxml/musicxml-file.rkt" "../notation/musicxml/score.rkt" "../notation/lilypond/lilypond-file.rkt") (define ...
7ff2beac2503ed1675df4056acc2fdc8db77ae701b19a27425235372a5e4ffac
ucsd-progsys/liquidhaskell
AdtPeano0.hs
{-@ LIQUID "--expect-any-error" @-} {-@ LIQUID "--exact-data-con" @-} {-@ LIQUID "--higherorder" @-} module AdtPeano0 where data Influx = Silly Int {-@ reflect thing @-} thing :: Influx -> Int thing (Silly a) = a + 1 {-@ reflect bling @-} bling :: Influx -> Int bling (Silly b) = b {-@ test :: m:Influx -> { thin...
null
https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/f46dbafd6ce1f61af5b56f31924c21639c982a8a/tests/neg/AdtPeano0.hs
haskell
@ LIQUID "--expect-any-error" @ @ LIQUID "--exact-data-con" @ @ LIQUID "--higherorder" @ @ reflect thing @ @ reflect bling @ @ test :: m:Influx -> { thing m = bling m} @
module AdtPeano0 where data Influx = Silly Int thing :: Influx -> Int thing (Silly a) = a + 1 bling :: Influx -> Int bling (Silly b) = b test :: Influx -> (Int, Int) test m = (thing m, bling m)
d0b9a7116c3f4c8a3bdb59db72a42c8c42816a0c2876ffe969c3cbb796d0180a
monadbobo/ocaml-core
bigstring_marshal.ml
open Sexplib.Conv open Bigstring open Std_internal Marshalling to / from bigstrings external unsafe_marshal_blit : 'a -> pos : int -> len : int -> t -> Marshal.extern_flags list -> int = "bigstring_marshal_blit_stub" let marshal_blit ?(flags = []) v ?(pos = 0) ?len bstr = let len = get_opt_len bstr ~pos len ...
null
https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/core/lib/bigstring_marshal.ml
ocaml
open Sexplib.Conv open Bigstring open Std_internal Marshalling to / from bigstrings external unsafe_marshal_blit : 'a -> pos : int -> len : int -> t -> Marshal.extern_flags list -> int = "bigstring_marshal_blit_stub" let marshal_blit ?(flags = []) v ?(pos = 0) ?len bstr = let len = get_opt_len bstr ~pos len ...
f65589d3ac40cbb87ba4f9d0a531370c1f7e41a623b7556d90df8c5eb5e58f2b
psholtz/MIT-SICP
exercise2-47.scm
;; Exercise 2.47 ;; Here are two possible constructors for frames : ;; ( define ( make - frame origin ) ( list origin ) ) ;; ( define ( make - frame origin ) ;; (cons origin (cons edge1 edge2))) ;; ;; For each constructor supply the appropriate selectors to produce an implementation for frames. ;;...
null
https://raw.githubusercontent.com/psholtz/MIT-SICP/01e9b722ac5008e26f386624849117ca8fa80906/Section-2.2/mit-scheme/exercise2-47.scm
scheme
(cons origin (cons edge1 edge2))) For each constructor supply the appropriate selectors to produce an implementation for frames. Unit test using a frame system like the one illustrated in the text. Run the unit test: Again, run the unit tests: These are the best definitions/constructors/selec...
Exercise 2.47 Here are two possible constructors for frames : ( define ( make - frame origin ) ( list origin ) ) ( define ( make - frame origin ) First constructor and supporting selectors : (define (make-frame origin edge1 edge2) (list origin edge1 edge2)) (define (origin-frame f) (car f)) ...
bf57addd9f4489bf10db84d0103f2612de51aa07dfe8a55efe1951d6682a35e4
bobzhang/ocaml-book
test_net_ulex.ml
open Netulex let digits = lexer | ['0'-'9']+ -> `Number(int_of_string(Ulexing.utf8_lexeme lexbuf)) Code point # 8364 in Unicode let sample = "3242543\226\130\172";; let ulb = ULB.from_string `Enc_utf8 sample;; let lexbuf = Ulexing.from_ulb_lexbuf ulb;; let first_token,second_token = (digits lexbuf,digi...
null
https://raw.githubusercontent.com/bobzhang/ocaml-book/09a575b0d1fedfce565ecb9a0ae9cf0df37fdc75/code/lexing/test_net_ulex.ml
ocaml
let second_token = digits lexbuf
open Netulex let digits = lexer | ['0'-'9']+ -> `Number(int_of_string(Ulexing.utf8_lexeme lexbuf)) Code point # 8364 in Unicode let sample = "3242543\226\130\172";; let ulb = ULB.from_string `Enc_utf8 sample;; let lexbuf = Ulexing.from_ulb_lexbuf ulb;; let first_token,second_token = (digits lexbuf,digi...
7203a34a4303b1cf0101f6dcea011a4b14b03053372297e245d169c692d8c419
stchang/macrotypes
stlc.rkt
; quicklang implicitly provides default #lang forms like #module-begin #lang turnstile/quicklang (provide → λ #%app ann) (define-type-constructor → #:arity >= 1) (define-typed-syntax λ #:datum-literals (:) [(_ ([x:id : τ_in:type] ...) e) ≫ [[x ≫ x- : τ_in.norm] ... ⊢ e ≫ e- ⇒ τ_out] ------- [⊢ (#%plain-la...
null
https://raw.githubusercontent.com/stchang/macrotypes/05ec31f2e1fe0ddd653211e041e06c6c8071ffa6/turnstile-example/turnstile/examples/simple/stlc.rkt
racket
quicklang implicitly provides default #lang forms like #module-begin
#lang turnstile/quicklang (provide → λ #%app ann) (define-type-constructor → #:arity >= 1) (define-typed-syntax λ #:datum-literals (:) [(_ ([x:id : τ_in:type] ...) e) ≫ [[x ≫ x- : τ_in.norm] ... ⊢ e ≫ e- ⇒ τ_out] ------- [⊢ (#%plain-lambda (x- ...) e-) ⇒ (→ τ_in.norm ... τ_out)]] [(_ (x:id ...) e) ⇐ (~→...
b3a33f9202fff11bc25950a58ba7dadec84bf5d7da961326795236ebb6ead797
s-expressionists/Cleavir
profiles.lisp
(cl:in-package #:cleavir-ast-visualizer) (defun make-point (x y) (cons x y)) (defun x (point) (car point)) (defun y (point) (cdr point)) (defun profile-width (profile) (x (first (last profile)))) (defun profile-height (profile) (y (first (last profile)))) ;;; This function can be used when the resulting profi...
null
https://raw.githubusercontent.com/s-expressionists/Cleavir/e0293780d356a9d563af9abf9317019f608b4e1d/Abstract-syntax-tree/Visualizer/profiles.lisp
lisp
This function can be used when the resulting profile is the same width has changed, so that the X coordinate of the last point is WIDTH instead. the suffix is greater than Y. is greater than or equal to X. LEFT is just a single point for the lower-right corner of the parent. RIGHT is the combined profile of the...
(cl:in-package #:cleavir-ast-visualizer) (defun make-point (x y) (cons x y)) (defun x (point) (car point)) (defun y (point) (cdr point)) (defun profile-width (profile) (x (first (last profile)))) (defun profile-height (profile) (y (first (last profile)))) as that of LOWER , except that it has been moved dow...
57b41c67221144e8ab29ca89f26164768f03808cde04bbc2d6e48d431cb68ff6
kana-sama/sicp
2.20 - same parity.scm
(define (same-parity x . seq) (let ((parity (even? x))) (let loop ((result (list x)) (seq seq)) (cond ((null? seq) (reverse result)) ((boolean=? parity (even? (car seq))) (loop (cons (car seq) result) (cdr seq))) (else (loop result (cdr seq))))))) (print ...
null
https://raw.githubusercontent.com/kana-sama/sicp/fc637d4b057cfcae1bae3d72ebc08e1af52e619d/2/2.20%20-%20same%20parity.scm
scheme
(define (same-parity x . seq) (let ((parity (even? x))) (let loop ((result (list x)) (seq seq)) (cond ((null? seq) (reverse result)) ((boolean=? parity (even? (car seq))) (loop (cons (car seq) result) (cdr seq))) (else (loop result (cdr seq))))))) (print ...
696b35d3e80f0ee3d6af342c371e0acffcf5114c69d9e4cb235e6d5b5e7dd27b
Andromedans/andromeda
typing.mli
(** Synthesize the type of a term *) val syn_term : Context.t -> Common.debruijn Input.term -> Syntax.term * Syntax.ty (** Check the type of a term *) val chk_term : Context.t -> Common.debruijn Input.term -> Syntax.ty -> Syntax.term * an annotated type val is_type : Context.t -> Common.debruijn Input.ty -> Syntax.t...
null
https://raw.githubusercontent.com/Andromedans/andromeda/a5c678450e6c6d4a7cd5eee1196bde558541b994/archive/old-andromeda/typing.mli
ocaml
* Synthesize the type of a term * Check the type of a term
val syn_term : Context.t -> Common.debruijn Input.term -> Syntax.term * Syntax.ty val chk_term : Context.t -> Common.debruijn Input.term -> Syntax.ty -> Syntax.term * an annotated type val is_type : Context.t -> Common.debruijn Input.ty -> Syntax.ty
44d24d55d8ff8f06320712cf7a2793f6ae97d4b23eb5da410bcb973ffe88b096
wiseman/turboshrimp
explode.clj
(ns explode (:require [com.lemondronor.turboshrimp.navdata :as navdata] [com.lemonodor.xio :as xio]) (:gen-class)) (defn get-bytes [bb] (.array bb)) (defn option-name [type] (if (keyword? type) (name type) (str type))) (def filename-fmt "navdata-%03d-%s.bin") (defn -main [& args] (l...
null
https://raw.githubusercontent.com/wiseman/turboshrimp/a1f53003bd4afd084e1c9e8cb80109ba732854bc/examples/explode.clj
clojure
(ns explode (:require [com.lemondronor.turboshrimp.navdata :as navdata] [com.lemonodor.xio :as xio]) (:gen-class)) (defn get-bytes [bb] (.array bb)) (defn option-name [type] (if (keyword? type) (name type) (str type))) (def filename-fmt "navdata-%03d-%s.bin") (defn -main [& args] (l...
b364ffe3ec050a4496970111e059be80f81e82e9d8ba62bf87ad04d4d60bdab8
reasonml-old/bs-containers
bhashtbl.ml
(* This file is free software, part of containers. See file "license" for more details. *) * { 1 Extension to the standard } type 'a sequence = ('a -> unit) -> unit type 'a eq = 'a -> 'a -> bool type 'a hash = 'a -> int type 'a printer = Format.formatter -> 'a -> unit * { 2 Polymorphic tables } module Poly = st...
null
https://raw.githubusercontent.com/reasonml-old/bs-containers/dfd1360dc74ede57c09e9f9d837ce59285af6fd2/src/bhashtbl.ml
ocaml
This file is free software, part of containers. See file "license" for more details. * {2 Functor} * Safe version of {!Hashtbl.find} * Iterate on keys (similar order as {!Hashtbl.iter}) * Iterate on values in the table * Map on a hashtable's items, collect into a list * Iterate on values in the table * From the...
* { 1 Extension to the standard } type 'a sequence = ('a -> unit) -> unit type 'a eq = 'a -> 'a -> bool type 'a hash = 'a -> int type 'a printer = Format.formatter -> 'a -> unit * { 2 Polymorphic tables } module Poly = struct let get tbl x = try Some (Hashtbl.find tbl x) with Not_found -> None let ...
6ad4a09726574d58edb2ef5eff6c210407f49515dff9f6ef4c62f534c75a5b25
primeteach/specomatic-db
seql.clj
(ns specomatic-db.seql "Contains all functions that work directly with the seql library: Provides schema generation and querying and registers transformations." (:require [clojure.set :as set] [clojure.walk :as walk] [seql.coerce :as seql-coerce] [seql.h...
null
https://raw.githubusercontent.com/primeteach/specomatic-db/732f6b1ab6966267392af5eb0be1521876ce81a6/src/specomatic_db/seql.clj
clojure
(ns specomatic-db.seql "Contains all functions that work directly with the seql library: Provides schema generation and querying and registers transformations." (:require [clojure.set :as set] [clojure.walk :as walk] [seql.coerce :as seql-coerce] [seql.h...
e8dc4b3abe4024d1ce08b140b05178ebf96e958ae6ee439fc0f898ae5ecee064
metametadata/carry
signals.cljs
(ns app.signals (:require [app.util :refer [tagged]] [counter.core :as counter] [carry.core :as carry] [cljs.core.match :refer-macros [match]])) (defn on-signal [model signal dispatch-signal dispatch-action] (println "signal =" signal) (match signal in a more complex app w...
null
https://raw.githubusercontent.com/metametadata/carry/fa5c7cd0d8f1b71edca70330acc97c6245638efb/examples/counter-list/src/app/signals.cljs
clojure
here we omit this because counter app has no start/stop code
(ns app.signals (:require [app.util :refer [tagged]] [counter.core :as counter] [carry.core :as carry] [cljs.core.match :refer-macros [match]])) (defn on-signal [model signal dispatch-signal dispatch-action] (println "signal =" signal) (match signal in a more complex app w...
9fc8c9934405ceeb3e9dafdfd9f6787529beebf4d602714309b24e997f3fdf53
qriollo/qriollo
Main.hs
-- Este archivo es parte de Qriollo. Qriollo is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or -- (at your option) any later version. -- Qriollo is distributed in the...
null
https://raw.githubusercontent.com/qriollo/qriollo/b45ba0f4e9d444f786217ff931d7ecf74bfddbe4/src/Main.hs
haskell
Este archivo es parte de Qriollo. (at your option) any later version. but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. No more options Show full help Interactive Name of main Path Debugg...
Qriollo 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 Qriollo is distributed in the hope that it will be useful , You should have received a copy of the GNU Gen...
a427e2b5228c2f7da23c63158ab9c010029535387c0c8796c6bebce31e7eb1ab
craigl64/clim-ccl
mirror.lisp
-*- Mode : Lisp ; Syntax : ANSI - Common - Lisp ; Package : SILICA ; Base : 10 ; Lowercase : Yes -*- ;; See the file LICENSE for the full license governing this code. ;; (in-package :silica) " Copyright ( c ) 1991 , 1992 Franz , Inc. All rights reserved . Portions copyright ( c ) 1992 Symbolics , Inc. All righ...
null
https://raw.githubusercontent.com/craigl64/clim-ccl/301efbd770745b429f2b00b4e8ca6624de9d9ea9/silica/mirror.lisp
lisp
Syntax : ANSI - Common - Lisp ; Package : SILICA ; Base : 10 ; Lowercase : Yes -*- See the file LICENSE for the full license governing this code. IN THE RIGHT ORDER - SOMEONE SHOULD DEFINITELY FIX THIS (CIM 9/24/96) sheet-device-transformation - transformation from sheets coordinate space to its mirror sheet-dev...
(in-package :silica) " Copyright ( c ) 1991 , 1992 Franz , Inc. All rights reserved . Portions copyright ( c ) 1992 Symbolics , Inc. All rights reserved . " WARNING : DON'T LOAD THIS INTO THE ACLPC / ACLNT VERSION AS IT REDEFINES SOMETHING WHICH CAUSES CLIM TO BREAK IF IT 'S NOT LOADED (defgeneric sheet...
6bf47aac489e0d6e8a25724f85e32c13050419b6c55e2093ecc1c927d1ca788d
sol/interpolate
UtilSpec.hs
# LANGUAGE CPP # module Data.String.Interpolate.Internal.UtilSpec where import Test.Hspec import Test.QuickCheck import Test.QuickCheck.Instances () import qualified Data.Text as T import qualified Data.Text.Lazy as LT import qualified Data.ByteString.Char8 as B import qualified Data.Byt...
null
https://raw.githubusercontent.com/sol/interpolate/a31cd1322665b10a6d901d6d70dd7bc35b71035d/test/Data/String/Interpolate/Internal/UtilSpec.hs
haskell
# LANGUAGE CPP # module Data.String.Interpolate.Internal.UtilSpec where import Test.Hspec import Test.QuickCheck import Test.QuickCheck.Instances () import qualified Data.Text as T import qualified Data.Text.Lazy as LT import qualified Data.ByteString.Char8 as B import qualified Data.Byt...
699cfd6894c260ff74f44c8a1b7bde8072b9dbdc4e96f40e9441351206ce8b6b
dongcarl/guix
size.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2015 , 2016 , 2017 , 2018 , 2019 , 2020 < > Copyright © 2019 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by ...
null
https://raw.githubusercontent.com/dongcarl/guix/82543e9649da2da9a5285ede4ec4f718fd740fcb/guix/scripts/size.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2015 , 2016 , 2017 , 2018 , 2019 , 2020 < > Copyright © 2019 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (guix scripts size) #:use-module (gu...
d0dcc28c0895711d10af7d8e0e06ee9911ddaa77b8ce43a7831897f601866060
alexandroid000/improv
GetMapGoal.hs
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DeriveGeneric # # LANGUAGE TemplateHaskell # module Ros.Nav_msgs.GetMapGoal where import qualified Prelude as P import Prelude ((.), (+), (*)) import qualified Data.Typeable as T import Control.Applicative import Ros.Internal.RosBinary im...
null
https://raw.githubusercontent.com/alexandroid000/improv/ef0f4a6a5f99a9c7ff3d25f50529417aba9f757c/roshask/msgs/Nav_msgs/Ros/Nav_msgs/GetMapGoal.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE DeriveDataTypeable #
# LANGUAGE DeriveGeneric # # LANGUAGE TemplateHaskell # module Ros.Nav_msgs.GetMapGoal where import qualified Prelude as P import Prelude ((.), (+), (*)) import qualified Data.Typeable as T import Control.Applicative import Ros.Internal.RosBinary import Ros.Internal.Msg.MsgInfo import qualified GHC.Generics as G import...
885b01a4f93eebeda38a68d86cd7819c249d5ff9fe5be161c3c19fd534b1e8e8
peruukki/nhl-score-api
utils.clj
(ns nhl-score-api.utils (:require [clj-time.format :as format])) From (defn fmap-vals "Applies function f to each value in map m and returns a new map." [f m] (into {} (for [[k v] m] [k (f v)]))) (defn fmap-keys "Applies function f to each key in map m and returns a new map." [f m] (into {} (for [[k ...
null
https://raw.githubusercontent.com/peruukki/nhl-score-api/bdb2caf72dac235a261fafb1e3332dc59af7b6ca/src/nhl_score_api/utils.clj
clojure
(ns nhl-score-api.utils (:require [clj-time.format :as format])) From (defn fmap-vals "Applies function f to each value in map m and returns a new map." [f m] (into {} (for [[k v] m] [k (f v)]))) (defn fmap-keys "Applies function f to each key in map m and returns a new map." [f m] (into {} (for [[k ...
21f3bf3c65633b2485cb2a9ede18118e5027b91a89b1f0440c0a36fd6657ded8
vagarenko/static-tensor
GetSubtensor.hs
# LANGUAGE TypeApplications # {-# LANGUAGE TypeInType #-} module CoreDump.Tensor.GetSubtensor where import Data.Tensor.Static import TensorInstances () getSubtensor_ :: Tensor '[2, 3, 4] Float -> Tensor '[3, 4] Float getSubtensor_ = getSubtensor @'[0]
null
https://raw.githubusercontent.com/vagarenko/static-tensor/8409d281707c23f3fe2028e926f1d4e8f7a9bc2d/tests/CoreDump/Tensor/GetSubtensor.hs
haskell
# LANGUAGE TypeInType #
# LANGUAGE TypeApplications # module CoreDump.Tensor.GetSubtensor where import Data.Tensor.Static import TensorInstances () getSubtensor_ :: Tensor '[2, 3, 4] Float -> Tensor '[3, 4] Float getSubtensor_ = getSubtensor @'[0]
68d9c2a199f849e41c8ec332040f23fd02e2808c1bf0f4a0e0e25e2c31bc5531
BranchTaken/Hemlock
test_tl.ml
open! Basis.Rudiments open! Basis open Stream let test () = let rec test_tl_up_to i n = begin match i <= n with | false -> () | true -> begin let t = init (0L =:< i) ~f:(fun i -> i) in let t' = tl t in File.Fmt.stdout |> Fmt.fmt "tl " |> (pp Uns.pp) t |> Fm...
null
https://raw.githubusercontent.com/BranchTaken/Hemlock/f3604ceda4f75cf18b6ee2b1c2f3c5759ad495a5/bootstrap/test/basis/stream/test_tl.ml
ocaml
halts if we start at 0
open! Basis.Rudiments open! Basis open Stream let test () = let rec test_tl_up_to i n = begin match i <= n with | false -> () | true -> begin let t = init (0L =:< i) ~f:(fun i -> i) in let t' = tl t in File.Fmt.stdout |> Fmt.fmt "tl " |> (pp Uns.pp) t |> Fm...
3e68f443a0ed0a386ea62ddf0af924c337dd029fdef9613069a097feee272d1a
haskell-github/github
Statuses.hs
----------------------------------------------------------------------------- -- | -- License : BSD-3-Clause Maintainer : < > -- -- The repo statuses API as described on -- </>. module GitHub.Endpoints.Repos.Statuses ( createStatusR, statusesForR, statusForR, module GitHub.Data ) where...
null
https://raw.githubusercontent.com/haskell-github/github/81d9b658c33a706f18418211a78d2690752518a4/src/GitHub/Endpoints/Repos/Statuses.hs
haskell
--------------------------------------------------------------------------- | License : BSD-3-Clause The repo statuses API as described on </>. | Create a new status See </#create-a-status> | All statuses for a commit See </#list-statuses-for-a-specific-ref> | The combined status for a specific commit S...
Maintainer : < > module GitHub.Endpoints.Repos.Statuses ( createStatusR, statusesForR, statusForR, module GitHub.Data ) where import GitHub.Data import GitHub.Internal.Prelude import Prelude () createStatusR :: Name Owner -> Name Repo -> Name Commit -> NewStatus -> Request 'RW Status crea...
f51dc19a80c900652b35a098db04a223738b70eba85a4b593d67680922739468
avsm/mirage-duniverse
ast_mapper_class_404.mli
open Ast_404 (* This file is part of the ppx_tools package. It is released *) under the terms of the MIT license ( see LICENSE file ) . Copyright 2013 and LexiFi (** Class-based customizable mapper *) open Parsetree class mapper: object method attribute: attribute -> ...
null
https://raw.githubusercontent.com/avsm/mirage-duniverse/983e115ff5a9fb37e3176c373e227e9379f0d777/ocaml_modules/ppx_tools_versioned/ast_mapper_class_404.mli
ocaml
This file is part of the ppx_tools package. It is released * Class-based customizable mapper
open Ast_404 under the terms of the MIT license ( see LICENSE file ) . Copyright 2013 and LexiFi open Parsetree class mapper: object method attribute: attribute -> attribute method attributes: attribute list -> attribute list method case: case -> case method ...
785f083323a3787819f7b6f594615edf4ba530b0ad07e526ab37176b7f3995d4
UnkindPartition/tasty-html
fail.hs
module Main where import Test.Tasty import Test.Tasty.HUnit import Test.Tasty.SmallCheck as SC import Test.Tasty.QuickCheck as QC import Test.Tasty.Runners.Html import Data.List import Data.Ord main = defaultMainWithIngredients (htmlRunner:defaultIngredients) tests tests :: TestTree tests = testGroup "Tests" [prope...
null
https://raw.githubusercontent.com/UnkindPartition/tasty-html/0a551207a25bc7b9821db0a3e3cc3910dbc357bb/examples/fail.hs
haskell
the following property does not hold the following property does not hold -- the following test does not hold
module Main where import Test.Tasty import Test.Tasty.HUnit import Test.Tasty.SmallCheck as SC import Test.Tasty.QuickCheck as QC import Test.Tasty.Runners.Html import Data.List import Data.Ord main = defaultMainWithIngredients (htmlRunner:defaultIngredients) tests tests :: TestTree tests = testGroup "Tests" [prope...
c9c7a127e64b25a9525874b264ea45cd73c0cfc4c10cbc2732d09a1d1c9e119c
argp/bap
batSplay.mli
* Splay -- splay trees * Copyright ( C ) 2011 Batteries Included Development Team * * 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 Li...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/batteries/src/batSplay.mli
ocaml
* Maps and sets based on splay trees
* Splay -- splay trees * Copyright ( C ) 2011 Batteries Included Development Team * * 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 Li...
f83208495fb25348a89adf305c1ed06093ca1fe040b0c7a3867f8b36ede45750
emilaxelsson/imperative-edsl
C.hs
# LANGUAGE CPP # # LANGUAGE QuasiQuotes # -- | C code generation for 'Program' module Language.Embedded.Backend.C ( module Language.Embedded.Backend.C.Expression , module Language.Embedded.Backend.C , Default (..) ) where #if __GLASGOW_HASKELL__ < 710 import Control.Applicative import Data.Monoid #endif im...
null
https://raw.githubusercontent.com/emilaxelsson/imperative-edsl/5561d7d0bcdb3de279478629a5493810c295e56d/src/Language/Embedded/Backend/C.hs
haskell
| C code generation for 'Program' ------------------------------------------------------------------------------ * Utilities ------------------------------------------------------------------------------ | Create a named type | Return the argument of a boolean negation expression Apparently this is what `!` parses...
# LANGUAGE CPP # # LANGUAGE QuasiQuotes # module Language.Embedded.Backend.C ( module Language.Embedded.Backend.C.Expression , module Language.Embedded.Backend.C , Default (..) ) where #if __GLASGOW_HASKELL__ < 710 import Control.Applicative import Data.Monoid #endif import Control.Exception import Data.Ti...
08ee53858932a5d37343d3c070c53683799e8c5fe1b66da73d7cc28283171b48
MercuryTechnologies/ghc-specter
Assets.hs
# LANGUAGE TemplateHaskell # module GHCSpecter.Data.Assets ( Assets (..), HasAssets (..), loadAssets, ) where import Control.Lens (makeClassy) import Data.ByteString qualified as B import Data.ByteString.Base64 qualified as B64 import Data.Text (Text) import Data.Text.Encoding qualified as TE import Data.Text.I...
null
https://raw.githubusercontent.com/MercuryTechnologies/ghc-specter/d911e610e0ee0fb43497dad9e762fec2abbf9e08/daemon/src/GHCSpecter/Data/Assets.hs
haskell
load ghc-specter.png
# LANGUAGE TemplateHaskell # module GHCSpecter.Data.Assets ( Assets (..), HasAssets (..), loadAssets, ) where import Control.Lens (makeClassy) import Data.ByteString qualified as B import Data.ByteString.Base64 qualified as B64 import Data.Text (Text) import Data.Text.Encoding qualified as TE import Data.Text.I...
762d7f371b8fa949e12ed67c6cc91a73b21a2dbe05dd8fed57811531eccdf96d
VisionsGlobalEmpowerment/webchange
views_text_animation_editor.cljs
(ns webchange.editor-v2.question.text.views-text-animation-editor (:require [cljs-react-material-ui.reagent :as ui] [re-frame.core :as re-frame] [webchange.editor-v2.translator.translator-form.state.actions :as translator-form.actions] [webchange.editor-v2.translator.translator-form.state.scene :as tr...
null
https://raw.githubusercontent.com/VisionsGlobalEmpowerment/webchange/e5747e187937d85e9c92c728d52a704f323f00ef/src/cljs/webchange/editor_v2/question/text/views_text_animation_editor.cljs
clojure
(ns webchange.editor-v2.question.text.views-text-animation-editor (:require [cljs-react-material-ui.reagent :as ui] [re-frame.core :as re-frame] [webchange.editor-v2.translator.translator-form.state.actions :as translator-form.actions] [webchange.editor-v2.translator.translator-form.state.scene :as tr...
c5f473d271ba22070c9ca00d2c86edd3f56f0cfebb744583ef96407c282ebd3c
ha-mo-we/Racer
mirror-data-substrate.lisp
-*- Mode : Lisp ; Syntax : Ansi - Common - Lisp ; Package : THEMATIC - SUBSTRATE ; Base : 10 -*- Copyright ( c ) 1998 - 2014 , , , . ;;; All rights reserved. Racer is distributed under the following BSD 3 - clause license ;;; Redistribution and use in source and binary forms, with or without ;;; modi...
null
https://raw.githubusercontent.com/ha-mo-we/Racer/d690841d10015c7a75b1ded393fcf0a33092c4de/source/mirror-data-substrate.lisp
lisp
Syntax : Ansi - Common - Lisp ; Package : THEMATIC - SUBSTRATE ; Base : 10 -*- 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, ...
Copyright ( c ) 1998 - 2014 , , , . Racer is distributed under the following BSD 3 - clause license Neither the name Racer nor the names of its contributors may be used CONTRIBUTORS " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , VOLKER HAARSLEV , RALF MOELLER , NOR FOR ANY ...
03894eb9b55224205d75e645f18cefcddd5d71ba854d495b79e589e084f063c2
umutisik/mathvas
ComposeSpec.hs
module Handler.ComposeSpec (spec) where import TestImport spec :: Spec spec = withApp $ do describe "getComposeR" $ do error "Spec not implemented: getComposeR" describe "postComposeR" $ do error "Spec not implemented: postComposeR"
null
https://raw.githubusercontent.com/umutisik/mathvas/9f764cd4d54370262c70c7ec3eadae076a1eb489/test/Handler/ComposeSpec.hs
haskell
module Handler.ComposeSpec (spec) where import TestImport spec :: Spec spec = withApp $ do describe "getComposeR" $ do error "Spec not implemented: getComposeR" describe "postComposeR" $ do error "Spec not implemented: postComposeR"
43b2fc513ffb7da88900bb71ccdaa43bc181fe501ec024b56db709935b12812d
ghc/packages-base
Info.hs
{-# LANGUAGE Safe #-} # LANGUAGE CPP # ----------------------------------------------------------------------------- -- | -- Module : System.Info Copyright : ( c ) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : -- Stability : expe...
null
https://raw.githubusercontent.com/ghc/packages-base/52c0b09036c36f1ed928663abb2f295fd36a88bb/System/Info.hs
haskell
# LANGUAGE Safe # --------------------------------------------------------------------------- | Module : System.Info License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : experimental Portability : portable Information about the characteristics of the host syst...
# LANGUAGE CPP # Copyright : ( c ) The University of Glasgow 2001 module System.Info ( os, arch, compilerName, compilerVersion ) where import Prelude import Data.Version compilerVersion :: Version compilerVersion = Version {versionBranch=[major, minor], versionTags=[]} whe...
11c31053250b3e3db64579fb19b3d82eafa2e1951048d198ec487be15ce88163
LeiWangHoward/Common-Lisp-Playground
crossword.lisp
(defun pattern-words (word trie) (reverse (pattern-words-help word trie))) (defun pattern-words-help(word trie) (let((lst nil)(letter(elt word 0))(rest(subseq word 1))) (cond((equal rest "") (when(equal #\? letter) (loop for key being the hash-keys of(trie-b trie)using(hash-value value) ...
null
https://raw.githubusercontent.com/LeiWangHoward/Common-Lisp-Playground/4130232954f1bbf8aa003d856ccb2ab382da0534/croosword-boggles/crossword.lisp
lisp
(defun pattern-words (word trie) (reverse (pattern-words-help word trie))) (defun pattern-words-help(word trie) (let((lst nil)(letter(elt word 0))(rest(subseq word 1))) (cond((equal rest "") (when(equal #\? letter) (loop for key being the hash-keys of(trie-b trie)using(hash-value value) ...
137f4f15ee3927774adc2449f10d4b5fc7c94e839ee4725e0682adb46d358754
mentat-collective/emmy
golden_test.cljc
#_"SPDX-License-Identifier: GPL-3.0" (ns emmy.numerical.unimin.golden-test (:require [clojure.test :refer [is deftest testing]] [clojure.test.check.generators :as gen] [com.gfredericks.test.chuck.clojure-test :refer [checking]] [emmy.generic :as g] [emmy.numerical.unim...
null
https://raw.githubusercontent.com/mentat-collective/emmy/90a1de10e78187c70d546c3cfd63c8d32b783bed/test/emmy/numerical/unimin/golden_test.cljc
clojure
#_"SPDX-License-Identifier: GPL-3.0" (ns emmy.numerical.unimin.golden-test (:require [clojure.test :refer [is deftest testing]] [clojure.test.check.generators :as gen] [com.gfredericks.test.chuck.clojure-test :refer [checking]] [emmy.generic :as g] [emmy.numerical.unim...
ddebc26ff3ec4af5ce54434690fd66c11a5c344bda78bc2d6cfe1b6e396de501
kelamg/HtDP2e-workthrough
ex99.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-beginner-reader.ss" "lang")((modname ex99) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #...
null
https://raw.githubusercontent.com/kelamg/HtDP2e-workthrough/ec05818d8b667a3c119bea8d1d22e31e72e0a958/HtDP/Fixed-size-Data/ex99.rkt
racket
about the language level of this file in a form that our tools can easily process. space invaders Constants: ========================== scenery tank ufo missile hit range Definitions: =========================== A UFO is a Posn. interpretation (make-posn x y) is the UFO's location (using the top-down, l...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-reader.ss" "lang")((modname ex99) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (require 2htdp/image) (define WIDTH 200) (define HEIGHT...
21b559b68c9f99bf4dcac1892a13b88dd4c742522e687c188421ec195a9ad67b
lispbuilder/lispbuilder
string-blended.lisp
(in-package :lispbuilder-sdl) (defmethod _render-string-blended_ :around ((string string) (font font) (color color) free cache) (declare (ignore cache)) (when free (free-cached-surface font)) (call-next-method)) (defmethod _render-string-blended_ ((string string) (font font) (color color) free cache) (de...
null
https://raw.githubusercontent.com/lispbuilder/lispbuilder/589b3c6d552bbec4b520f61388117d6c7b3de5ab/lispbuilder-sdl/sdl/string-blended.lisp
lisp
(in-package :lispbuilder-sdl) (defmethod _render-string-blended_ :around ((string string) (font font) (color color) free cache) (declare (ignore cache)) (when free (free-cached-surface font)) (call-next-method)) (defmethod _render-string-blended_ ((string string) (font font) (color color) free cache) (de...
a98a1cfe144c70f17396494cfc2808b2e1ec32ecf711ffc05cd8b003f5d00594
gsakkas/rite
0087.ml
CaseG VarG [(ConPatG Nothing,Nothing,AppG [EmptyG,EmptyG]),(WildPatG,Nothing,AppG [EmptyG,EmptyG])] match a with | [] -> mulByDigit x l2 | _ -> bigAdd a (mulByDigit x l2)
null
https://raw.githubusercontent.com/gsakkas/rite/958a0ad2460e15734447bc07bd181f5d35956d3b/data/sp14_min/clusters/0087.ml
ocaml
CaseG VarG [(ConPatG Nothing,Nothing,AppG [EmptyG,EmptyG]),(WildPatG,Nothing,AppG [EmptyG,EmptyG])] match a with | [] -> mulByDigit x l2 | _ -> bigAdd a (mulByDigit x l2)
a38dbb27e29d00122ddb3f985047fc23226af9604297f53d88272fdf1bf089c0
aryx/xix
sys.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/aryx/xix/60ce1bd9a3f923e0e8bb2192f8938a9aa49c739c/lib_system/sys.ml
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et Automatique . Distributed only by permission . $ I d : sys.ml , v 1.13 1997/09/11 15:10:23 doligez Exp $ external get_config: unit -> string * int = "sys_g...
cd504fc60c988eba282ed118432b26cc23a73a8c97e4832837655e0a178632d1
cxphoe/SICP-solutions
3.24.rkt
(define (make-table same-key?) (let ((local-table (list '*table*))) (define (asso key records) (cond ((null? records) false) ((equal? key (caar records)) (car records)) (else (assoc key (cdr records))))) (define (lookup key-1 key-2) (let ((subtable (asso key-1 (cdr loc...
null
https://raw.githubusercontent.com/cxphoe/SICP-solutions/d35bb688db0320f6efb3b3bde1a14ce21da319bd/Chapter%203-Modeling%20with%20Mutable%20Data/3.Changed%20Data/3.24.rkt
racket
(define (make-table same-key?) (let ((local-table (list '*table*))) (define (asso key records) (cond ((null? records) false) ((equal? key (caar records)) (car records)) (else (assoc key (cdr records))))) (define (lookup key-1 key-2) (let ((subtable (asso key-1 (cdr loc...
b715d01b6c9694d23b03dd892b3f43e7dfa1796ef8554a797eabdf315b66768d
goodell/cppmem
javascript.ml
Js_of_ocaml compiler * / * Copyright ( C ) 2010 * Laboratoire PPS - CNRS Université Paris Diderot * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking...
null
https://raw.githubusercontent.com/goodell/cppmem/eb3ce19b607a5d6ec81138cd8cacd236f9388e87/js_of_ocaml-1.2/compiler/javascript.ml
ocaml
variable_declaration_list_no_in variable_declaration_no_in initialiser_no_in ... A.3 Expressions ... XXX XXX | `Utf8 ** A.4 Statements | Empty_statement | Iteration_statement | With_statement | Debugger_statement ... ** A.5 Functions and programs
Js_of_ocaml compiler * / * Copyright ( C ) 2010 * Laboratoire PPS - CNRS Université Paris Diderot * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking...
1d2cae3e2933d07a195703f18ec3e9ac58ff9f148ecde525876a693af2809d0b
omnyway-labs/cljs-shadow-devcards-template
highlight.cljs
;; as per #issuecomment-707489078 (ns cljsjs.highlight (:require ["highlight.js" :as hljs])) (js/goog.exportSymbol "hljs" hljs) (js/goog.exportSymbol "DevcardsSyntaxHighlighter" hljs)
null
https://raw.githubusercontent.com/omnyway-labs/cljs-shadow-devcards-template/fcb90966a48f39f57f8f2ca950d1be0a1eed5a7a/src/cljsjs/highlight.cljs
clojure
as per #issuecomment-707489078
(ns cljsjs.highlight (:require ["highlight.js" :as hljs])) (js/goog.exportSymbol "hljs" hljs) (js/goog.exportSymbol "DevcardsSyntaxHighlighter" hljs)
2add3ead80de0a82ed82cb1bce3552486dd4befb6c7ca2543cd1e55ef336612c
scslab/hails
Auth.hs
# LANGUAGE Trustworthy # {-# LANGUAGE OverloadedStrings #-} | This module exports generic definitions for Wai - authentication pipelines in Hails . ' requireLoginMiddleware ' looks for the @X - Hails - Login@ header from an ' Application ' \ 's ' Response ' and , if present , responds to the user with an a...
null
https://raw.githubusercontent.com/scslab/hails/4d4dfe0cdfb7c8941a55ce882cba20d82c6d9cfd/Hails/HttpServer/Auth.hs
haskell
# LANGUAGE OverloadedStrings # * Production ** Authenticate with external app * Development: basic authentication | Basic HTTP authentication middleware for development. Accepts any username and password. If the @X-Hails-Persona-Login@ header is set, this intercepts the request and verifies the supplied identity...
# LANGUAGE Trustworthy # | This module exports generic definitions for Wai - authentication pipelines in Hails . ' requireLoginMiddleware ' looks for the @X - Hails - Login@ header from an ' Application ' \ 's ' Response ' and , if present , responds to the user with an authentication request instead of th...
33ceb4cf6ff6500e713f583feafde1a22b9def9f1af939c86d72a7996e0dae16
dnadales/sandbox
MagicLengthBlockChain.hs
-- | module MagicLengthBlockChain where import Data.List (zip4) import Test.Tasty (TestTree, defaultMain, testGroup) import qualified Test.Tasty.Hedgehog as Tasty.Hedgehog import qualified Test.Tasty.QuickCheck as Tasty.QuickCheck import qualified Hedgehog as HH import qualified Hedgehog.Gen...
null
https://raw.githubusercontent.com/dnadales/sandbox/401c4f0fac5f8044fb6e2e443bacddce6f135b4b/quickcheck-vs-hedgehog/test/large-shrink-space/MagicLengthBlockChain.hs
haskell
| memory will be used by show: the result is not streamed, so it doesn't run in constant memory. The use of tasty seemed to exacerbate this problem.
module MagicLengthBlockChain where import Data.List (zip4) import Test.Tasty (TestTree, defaultMain, testGroup) import qualified Test.Tasty.Hedgehog as Tasty.Hedgehog import qualified Test.Tasty.QuickCheck as Tasty.QuickCheck import qualified Hedgehog as HH import qualified Hedgehog.Gen ...
670d8c3a395b4823f398957be0d7401fc6fa073a3c76f3b8abf6b8971d6e6690
yurug/ocaml4.04.0-copatterns
env.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/yurug/ocaml4.04.0-copatterns/b3ec6a3cc203bd2cde3b618546d29e10f1102323/typing/env.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Cmi_format open Config open Misc open Asttypes open Longident open Path open Types open Btype let ...
d2ee9e958ece7e61607bbe652f3ba5922900ef3fcacf515d966e92058f643a3b
input-output-hk/cardano-sl
Types.hs
module Pos.Infra.Slotting.Types ( module X ) where import Pos.Core.Slotting as X
null
https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/infra/src/Pos/Infra/Slotting/Types.hs
haskell
module Pos.Infra.Slotting.Types ( module X ) where import Pos.Core.Slotting as X
0d8892f7b3cab799c1344b2143376a273aecd87e16e7d66c2e530fcb370fe666
OCamlPro/drom
dune.ml
(**************************************************************************) (* *) Copyright 2020 OCamlPro & Origin Labs (* *) (* All rights ...
null
https://raw.githubusercontent.com/OCamlPro/drom/dbbb5f9225df65c589e6f307ac28be4c408b9cae/src/drom_lib/dune.ml
ocaml
************************************************************************ All rights reserved. This file is distributed under the terms of the exception on linking descr...
Copyright 2020 OCamlPro & Origin Labs GNU Lesser General Public License version 2.1 , with the special open EzCompat open Types TODO : it 's not clear how to correctly format dune files so that they will not trigger a promotion with ' dune build @fmt ' . The use of ...
edda08f5d352ca4047f5d78992d6aabaf30e975e6796c0e8372d0f2dfda77950
Panthevm/cleancss
watcher_test.clj
(ns cleancss.watcher-test (:require [cleancss.watcher :as sut] [clojure.java.io :as io] [clojure.test :refer :all] [matcho.core :refer [match]])) (deftest watcher-test (testing "extract-classes" (match (sut/extract-classes "#c\"foo\"") #{"foo"}) (match (sut/extra...
null
https://raw.githubusercontent.com/Panthevm/cleancss/73d9b5f3c6fcb6c12e83926b660f6f0f9fb8880c/test/cleancss/watcher_test.clj
clojure
(ns cleancss.watcher-test (:require [cleancss.watcher :as sut] [clojure.java.io :as io] [clojure.test :refer :all] [matcho.core :refer [match]])) (deftest watcher-test (testing "extract-classes" (match (sut/extract-classes "#c\"foo\"") #{"foo"}) (match (sut/extra...
c1584e6e08b7e426d2153e4554e0b208178f7dead7e8eb5a6502ca35e4ac0c1f
sadiqj/ocaml-esp32
t01.ml
open Printf let build_result ngroups input = let res = Array.make (ngroups + 1) "~" in for i = 0 to ngroups do try res.(i) <- Str.matched_group i input with Not_found -> () done; res let search_forward re ng input start = try ignore(Str.search_forward re input start); build_result ng i...
null
https://raw.githubusercontent.com/sadiqj/ocaml-esp32/33aad4ca2becb9701eb90d779c1b1183aefeb578/testsuite/tests/lib-str/t01.ml
ocaml
* Forward searches PR#6989 * Backward searches * Partial match searches * Replacement * Splitting * XML tokenization failure
open Printf let build_result ngroups input = let res = Array.make (ngroups + 1) "~" in for i = 0 to ngroups do try res.(i) <- Str.matched_group i input with Not_found -> () done; res let search_forward re ng input start = try ignore(Str.search_forward re input start); build_result ng i...
c95bfdedabf29d6eaa9c430f72e1867ff84037b0c0265629fe4b09ba9a3ea647
christiankissig/ocaml99
problem87.ml
(*# P87 (**) Depth-first order graph traversal (alternative solution) # # Write a predicate that generates a depth-first order graph traversal sequence. # The starting point should be specified, and the output should be a list of # nodes that are reachable from this starting point (in depth-first order).*)
null
https://raw.githubusercontent.com/christiankissig/ocaml99/c25f1790f695f9dd68b23abb472dc7c860d840f8/problem87.ml
ocaml
# P87 (*
# # Write a predicate that generates a depth-first order graph traversal sequence. # The starting point should be specified, and the output should be a list of # nodes that are reachable from this starting point (in depth-first order).*)
17bdc49197d38ad23745ffc266f6c31b27a0ef1590dadc09c6e51099ea7bf62d
helmutkian/cl-wasm-runtime
test-global-type.lisp
(in-package #:cl-wasm-runtime.test) (5am:def-suite cl-wasm-runtime.test.global-type :in cl-wasm-runtime.test) (5am:in-suite cl-wasm-runtime.test.global-type) (5am:test test-make-wasm-global-type (let* ((global-type-from-key (make-wasm-globaltype :wasm-i32 :mutable t)) (val-type (make-wasm-valtype :wasm-f32)) ...
null
https://raw.githubusercontent.com/helmutkian/cl-wasm-runtime/207a91200c30c11c07363fac63554cb790455053/test/test-global-type.lisp
lisp
(in-package #:cl-wasm-runtime.test) (5am:def-suite cl-wasm-runtime.test.global-type :in cl-wasm-runtime.test) (5am:in-suite cl-wasm-runtime.test.global-type) (5am:test test-make-wasm-global-type (let* ((global-type-from-key (make-wasm-globaltype :wasm-i32 :mutable t)) (val-type (make-wasm-valtype :wasm-f32)) ...
a7e5247c0043c4ae491ccda3b66b39a3ed1b77a40dcdf1ac94dd46a77b1efd60
mseri/ocaml-clz
clz_cohttp.mli
exception ClzError of string val decompress : Cohttp_lwt.Response.t * Cohttp_lwt.Body.t -> string Lwt.t * [ decompress ( resp , body ) ] returns the contents of body , decompressed using the information from the " content - encoding " header or fails with [ ClzError msg ] if there are decompression issues or a...
null
https://raw.githubusercontent.com/mseri/ocaml-clz/7f9fdd8f23025d75a412ff5219818f1fa701b3e3/src/clz_cohttp.mli
ocaml
* [update_header h] returns a new header including "accept-encoding: gzip,deflate" if [h=None] or [force=true]. When [force=false] (default) it adds the header only if was not already present.
exception ClzError of string val decompress : Cohttp_lwt.Response.t * Cohttp_lwt.Body.t -> string Lwt.t * [ decompress ( resp , body ) ] returns the contents of body , decompressed using the information from the " content - encoding " header or fails with [ ClzError msg ] if there are decompression issues or a...
902bf63f962fd4db1e924cb2cd6372a6d4844d92eafaa23aee091db308331086
jacquev6/General
BigInt.ml
module OCSB = OCamlStandard.Big_int module SelfA = struct type t = OCSB.big_int let zero = OCSB.zero_big_int let one = OCSB.unit_big_int let of_int = OCSB.big_int_of_int let to_int = OCSB.int_of_big_int let of_float x = let of_small_float x = x |> Int64.of_float |> OCSB.big_int_of_...
null
https://raw.githubusercontent.com/jacquev6/General/5237123668e939c0cb83aa3e1c4756473336bc7e/src/Implementation/BigInt.ml
ocaml
This tests only the most significant bit This can test all bits if q = max 0 (p - 53) ^95+-+2^42 -resources.com/alists/pow2.html ^1023
module OCSB = OCamlStandard.Big_int module SelfA = struct type t = OCSB.big_int let zero = OCSB.zero_big_int let one = OCSB.unit_big_int let of_int = OCSB.big_int_of_int let to_int = OCSB.int_of_big_int let of_float x = let of_small_float x = x |> Int64.of_float |> OCSB.big_int_of_...
36bd09cdc1ffdc8e056a51c7cc7f027106cf287cbc30eaae0c2238f57594f224
inria-parkas/sundialsml
cvPendulum_dns.ml
----------------------------------------------------------------------------- { { { * Programmer(s ): and @ LLNL * ----------------------------------------------------------------------------- * OCaml port : , , Oct 2021 . * -------------------------------------------------------------------------...
null
https://raw.githubusercontent.com/inria-parkas/sundialsml/a1848318cac2e340c32ddfd42671bef07b1390db/examples/cvode/serial/cvPendulum_dns.ml
ocaml
Problem Constants ----------------------------------------------------------------------------- * Functions provided to CVODE * --------------------------------------------------------------------------- ODE RHS function for the reference system theta' -g * cos(theta) Get vector components Comput...
----------------------------------------------------------------------------- { { { * Programmer(s ): and @ LLNL * ----------------------------------------------------------------------------- * OCaml port : , , Oct 2021 . * -------------------------------------------------------------------------...
0399080012dd8a753059ea7b481aef597334162e3b320cda6b45a8191c632ff4
eugeneia/athens
misty1.lisp
;;;; -*- mode: lisp; indent-tabs-mode: nil -*- misty1.lisp -- implementation of the MISTY1 block cipher from RFC 2994 (in-package :crypto) ;;; required tables (defconst +misty1-s7table+ #8@(#x1B #x32 #x33 #x5A #x3B #x10 #x17 #x54 #x5B #x1A #x72 #x73 #x6B #x2C #x66 #x49 #x1F #x24 #x13 #x6C #x37 #x2E #x3F #x4A #x5...
null
https://raw.githubusercontent.com/eugeneia/athens/cc9d456edd3891b764b0fbf0202a3e2f58865cbf/quicklisp/dists/quicklisp/software/ironclad-v0.40/src/ciphers/misty1.lisp
lisp
-*- mode: lisp; indent-tabs-mode: nil -*- required tables types and context definition block functions and key expansion fill in the expanded key schedule scramble
misty1.lisp -- implementation of the MISTY1 block cipher from RFC 2994 (in-package :crypto) (defconst +misty1-s7table+ #8@(#x1B #x32 #x33 #x5A #x3B #x10 #x17 #x54 #x5B #x1A #x72 #x73 #x6B #x2C #x66 #x49 #x1F #x24 #x13 #x6C #x37 #x2E #x3F #x4A #x5D #x0F #x40 #x56 #x25 #x51 #x1C #x04 #x0B #x46 #x20 #x0D #x7B #x35 ...
c7e05f3c1744c84dfd6948c5630dff34d91ff012490db36500d4aa5482a462be
nomeata/haskell-rec-def
examples.hs
{-# OPTIONS_GHC -Wno-unused-imports #-} | This file contains a few examples of using the @rec - def@ library . There is no need to actually use this module . = A @rec - def@ tutorial Imagine you are trying to calculate a boolean value , but your calculation is happens to be recursive . Just writing down t...
null
https://raw.githubusercontent.com/nomeata/haskell-rec-def/3365379b6c29aa32a5170b8d0336c73413ca7434/examples.hs
haskell
# OPTIONS_GHC -Wno-unused-imports # Imports for haddock $setup >>> import Data.Maybe >>> import Data.Map as M >>> import qualified Data.Set as S >>> >>> :{ let withTimeout :: Show a => a -> IO a fromMaybe (errorWithoutStackTrace "timed out") <$> timeout 100000 (length (show a) `seq` evaluate a...
| This file contains a few examples of using the @rec - def@ library . There is no need to actually use this module . = A @rec - def@ tutorial Imagine you are trying to calculate a boolean value , but your calculation is happens to be recursive . Just writing down the equations does not work : > > > wi...
114bbd52a61dc86ba9eb397c2204b29548d72b73b7b2582c4cb8b674ce061305
clojure-liberator/liberator
dev.clj
(ns liberator.dev (:use hiccup.core hiccup.page [liberator.core :only [defresource]]) (:require [liberator.core :as core] [clojure.string :as string] [clojure.data.json :as json] [ring.util.response :as response] [clojure.string :as s]) (:import java...
null
https://raw.githubusercontent.com/clojure-liberator/liberator/4de95d28b259f12f130bdccfae5d3ad7f8447cd9/src/liberator/dev.clj
clojure
see graph/clean-id, unitfy
(ns liberator.dev (:use hiccup.core hiccup.page [liberator.core :only [defresource]]) (:require [liberator.core :as core] [clojure.string :as string] [clojure.data.json :as json] [ring.util.response :as response] [clojure.string :as s]) (:import java...
d1595356c994d8cc85459dd483e17ae6e1f2ec61f8429eaf0cceaa196e56eeb2
LeventErkok/sbv
Utils.hs
----------------------------------------------------------------------------- -- | -- Module : Data.SBV.SMT.Utils Copyright : ( c ) -- License : BSD3 -- Maintainer: -- Stability : experimental -- -- A few internally used types/routines --------------------------------------------------------------------------...
null
https://raw.githubusercontent.com/LeventErkok/sbv/c3963bd2b69e2aefdab4925d2a5e5f592a41cad9/Data/SBV/SMT/Utils.hs
haskell
--------------------------------------------------------------------------- | Module : Data.SBV.SMT.Utils License : BSD3 Maintainer: Stability : experimental A few internally used types/routines --------------------------------------------------------------------------- # OPTIONS_GHC -Wall -Werror # ^ Int...
Copyright : ( c ) # LANGUAGE NamedFieldPuns # module Data.SBV.SMT.Utils ( SMTLibConverter , SMTLibIncConverter , addAnnotations , showTimeoutValue , alignDiagnostic , alignPlain , debug , mergeSExpr , SBVException(..) ) where...
c932795259ec7c55a5787c352318cfa4b7bee88c55b2f1b069672cfa9a618c0e
imalooney/t3tr0s
menu.cljs
(ns client.pages.menu (:require [client.dom :as dom] client.html)) ;;------------------------------------------------------------------------------ ;; Page Initialization ;;------------------------------------------------------------------------------ (defn init! [] (dom/set-color-background!) (dom/set-...
null
https://raw.githubusercontent.com/imalooney/t3tr0s/2f9529e7138a0bc3a8578aa89c9661fc89e81cc0/src/client/pages/menu.cljs
clojure
------------------------------------------------------------------------------ Page Initialization ------------------------------------------------------------------------------
(ns client.pages.menu (:require [client.dom :as dom] client.html)) (defn init! [] (dom/set-color-background!) (dom/set-panel-body! 1 (client.html/menu)) (dom/animate-to-panel 1))
3f3eb399d5d418241c08a05a4956044d243208369d199e6ac60d2cefb2e9fe00
fourmolu/fourmolu
op-chain-r-lt-colon-1-four-out.hs
Right chain , : case , 2 operators with p (: ) < p(b ) j :: Int j = 1 : 2 : 3 : 4 ^^ 5 : 6 : 7 : 8
null
https://raw.githubusercontent.com/fourmolu/fourmolu/1f8903a92c8d5001dc1ec8ecfd4a04a3b61c3283/data/examples/declaration/value/function/infix/op-chain-r-lt-colon-1-four-out.hs
haskell
Right chain , : case , 2 operators with p (: ) < p(b ) j :: Int j = 1 : 2 : 3 : 4 ^^ 5 : 6 : 7 : 8
986856e82657db3375fa3c7b3de29fb47ac5cc3d81e04e68953f982b52846915
caisah/sicp-exercises-and-examples
ex.3.25.scm
Generalizing one and two - dimensional tables , show how to implement a table in which ;; values are stored under an arbitrary number of keys. The lookup and insert! ;; procedures should take as input a list of keys used to access the table. (define (assoc key records) (cond ((null? records) false) ((equal...
null
https://raw.githubusercontent.com/caisah/sicp-exercises-and-examples/605c698d7495aa3474c2b6edcd1312cb16c5b5cb/3.3.3-representing_tables/ex.3.25.scm
scheme
values are stored under an arbitrary number of keys. The lookup and insert! procedures should take as input a list of keys used to access the table. Testing
Generalizing one and two - dimensional tables , show how to implement a table in which (define (assoc key records) (cond ((null? records) false) ((equal? key (caar records)) (car records)) (else (assoc key (cdr records))))) (define (make-table) (list '*table*)) (define (lookup lst tabl...
b14c1647dc03b43e74bfe895f3c6e2c8f57bc320dd4f43ab0d92ff7d68f3ad56
webnf/webnf
websocket.clj
(ns webnf.async-servlet.websocket (:require [clojure.core.async :refer [chan go go-loop thread <! >! <!! >!! close! alt!]] [clojure.java.io :as io] [clojure.string :as str] [clojure.tools.logging :as log] [webnf.base :refer [static-case]] [webnf.async :refer...
null
https://raw.githubusercontent.com/webnf/webnf/6a2ccaa755e6e40528eb13a5c36bae16ba4947e7/async-servlet/src/clj/webnf/async_servlet/websocket.clj
clojure
FIXME honor timeout
(ns webnf.async-servlet.websocket (:require [clojure.core.async :refer [chan go go-loop thread <! >! <!! >!! close! alt!]] [clojure.java.io :as io] [clojure.string :as str] [clojure.tools.logging :as log] [webnf.base :refer [static-case]] [webnf.async :refer...
e4ad48059dc5277f793255d3d938eeea976a3b36aa89f95e8376640a59338498
clojure-interop/aws-api
AbstractAmazonRedshift.clj
(ns com.amazonaws.services.redshift.AbstractAmazonRedshift "Abstract implementation of AmazonRedshift. Convenient method forms pass through to the corresponding overload that takes a request object, which throws an UnsupportedOperationException." (:refer-clojure :only [require comment defn ->]) (:import [com.am...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.redshift/src/com/amazonaws/services/redshift/AbstractAmazonRedshift.clj
clojure
(ns com.amazonaws.services.redshift.AbstractAmazonRedshift "Abstract implementation of AmazonRedshift. Convenient method forms pass through to the corresponding overload that takes a request object, which throws an UnsupportedOperationException." (:refer-clojure :only [require comment defn ->]) (:import [com.am...
ae552543726c1449776cb9f0c9056a01c03fbf93fd912fa8cf6dc8c656ac5560
hududed/cardano-cli-scripts
LockingScript.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # module Cardano.PlutusExample.LockingScript ( apiExampleUntypedPlutusLockingScript , un...
null
https://raw.githubusercontent.com/hududed/cardano-cli-scripts/6844548eb0f5f05d4756c3bd1bd6523de010147f/plutus-sources/plutus-example/src/Cardano/PlutusExample/LockingScript.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # module Cardano.PlutusExample.LockingScript ( apiExampleUntypedPlutusLockingScript , un...
ed32ad8dbb714155ebf7f597fd23af67bb6974afd0cd3ff745dc53216d9cfa08
replomancer/Swordfight
profiling.clj
(ns swordfight.profiling (:require [taoensso.tufte :refer [add-handler!]])) (def filename "swordfight-profiling.log") (add-handler! :spitting-handler "*" (fn [m] (let [{:keys [stats-str_ ?id ?data]} m stats-str (force stats-str_)] (spit filename ...
null
https://raw.githubusercontent.com/replomancer/Swordfight/4ac956d0c9076792774dd05db3f258a8c713c49c/dev/swordfight/profiling.clj
clojure
(ns swordfight.profiling (:require [taoensso.tufte :refer [add-handler!]])) (def filename "swordfight-profiling.log") (add-handler! :spitting-handler "*" (fn [m] (let [{:keys [stats-str_ ?id ?data]} m stats-str (force stats-str_)] (spit filename ...
1900c4fc389288105f2887f1de104e9616566201ae1db880c556dcf150868ede
nuvla/api-server
general_test.clj
(ns sixsq.nuvla.server.util.general-test (:require [clojure.test :refer [are deftest]] [sixsq.nuvla.server.util.general :as t])) (deftest test-date-from-str (are [expect arg] (= expect (t/filter-map-nil-value arg)) {} nil {} {} {:a 1} {:a 1} ...
null
https://raw.githubusercontent.com/nuvla/api-server/4031d89877385671f996fe07e4b699485ab84bcc/code/test/sixsq/nuvla/server/util/general_test.clj
clojure
(ns sixsq.nuvla.server.util.general-test (:require [clojure.test :refer [are deftest]] [sixsq.nuvla.server.util.general :as t])) (deftest test-date-from-str (are [expect arg] (= expect (t/filter-map-nil-value arg)) {} nil {} {} {:a 1} {:a 1} ...
3cb8d66d6312158a66d15e90771d125573ca1473d9cbb849ad51d82d7d755f59
konn/dl-first-principle-tutorial
Iris.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE BlockArguments # {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE DeriveTraversable #-} # LANGUAGE DerivingVia # # LANGUAGE FlexibleContexts # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE RankNTypes #-} # LANGUAGE RecordWildCards # # LANGUAGE TemplateHa...
null
https://raw.githubusercontent.com/konn/dl-first-principle-tutorial/da1557d57f68e2d739b9bbccc50197df86e56320/src/DeepLearning/Iris.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE DeriveAnyClass # # LANGUAGE DeriveTraversable # # LANGUAGE RankNTypes # Day 1 | Learning rate | # of Iterations | Inputs and answer | Current matrix
# LANGUAGE BlockArguments # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingVia # # LANGUAGE FlexibleContexts # # LANGUAGE MultiParamTypeClasses # # LANGUAGE RecordWildCards # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # # LANGUAGE NoMonomorphismRestriction # module DeepLearni...