_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
63939582811fc07005b556b0fdb11dbc5e978dcb8b179076acacd3cbdcbd7c12
maralorn/nix-output-monitor
Main.hs
module Main (main) where import Control.Exception qualified as Exception import Control.Monad.Writer.Strict (WriterT (runWriterT)) import Data.ByteString qualified as ByteString import Data.Text.IO (hPutStrLn) import Data.Time (ZonedTime) import Data.Version (showVersion) import GHC.IO.Exception (ExitCode (ExitFailure...
null
https://raw.githubusercontent.com/maralorn/nix-output-monitor/49e74c5895214495e0c2b6dbcd38c208694aacd6/exe/Main.hs
haskell
It's not a mistake if the user requests the help text, otherwise tell them off with a non-zero exit code. We enforce here, that the state type is completely strict so that we don‘t accumulate thunks while running the program. We print a new line after finish, because in normal nom state the last line is not empty.
module Main (main) where import Control.Exception qualified as Exception import Control.Monad.Writer.Strict (WriterT (runWriterT)) import Data.ByteString qualified as ByteString import Data.Text.IO (hPutStrLn) import Data.Time (ZonedTime) import Data.Version (showVersion) import GHC.IO.Exception (ExitCode (ExitFailure...
fbf168ad1a771590c0b9c6804eb89ea193b4b2f605513a9ed6fcfeefde3239a8
racket/typed-racket
pr13747.rkt
#lang racket ;; Test that `require/typed` works at the top-level (require racket/sandbox) (define evaluator (call-with-trusted-sandbox-configuration (λ () (make-evaluator 'typed/racket/optional)))) (evaluator '(require/typed racket/base [values (Integer -> Integer)])) (evaluator '(values 1))
null
https://raw.githubusercontent.com/racket/typed-racket/1dde78d165472d67ae682b68622d2b7ee3e15e1e/typed-racket-test/succeed/optional/pr13747.rkt
racket
Test that `require/typed` works at the top-level
#lang racket (require racket/sandbox) (define evaluator (call-with-trusted-sandbox-configuration (λ () (make-evaluator 'typed/racket/optional)))) (evaluator '(require/typed racket/base [values (Integer -> Integer)])) (evaluator '(values 1))
928ede91c63049fa3d2201c0b68525da3cdec6c76e7573e755d2c48ec087df2d
danfran/hcoord
OSRef.hs
# LANGUAGE CPP # | To represent an Ordnance Survey of Great Britain ( OSGB ) grid reference . British National Grid Projection : Transverse Mercator Reference ellipsoid : Airy 1830 Units : metres Origin : 49°N , 2°W False co - ordinates of origin : 400000 m east , -100000 m north ...
null
https://raw.githubusercontent.com/danfran/hcoord/e308934570874a6ce7f7ebdbf51a3c34e4acd745/src/OSRef.hs
haskell
OSGB_F0 ^ Throws an exception if either the easting or the northing are invalid. TODO 2006-02-05 : check format ^ To represent OSGB grid reference using the OSGB36 datum. | Validate the easting. ^ Throws an Exception if the easting is invalid. | Validate the northing. ^ Throws an Exception if the northing is in...
# LANGUAGE CPP # | To represent an Ordnance Survey of Great Britain ( OSGB ) grid reference . British National Grid Projection : Transverse Mercator Reference ellipsoid : Airy 1830 Units : metres Origin : 49°N , 2°W False co - ordinates of origin : 400000 m east , -100000 m north ...
bc434b281b8385a5ffa3b97ea4881f5f1d433a92c2ffcf7e4817f674229d5fef
luksamuk/sonic-lisp-engine
input.lisp
;;;; input.lisp Copyright ( c ) 2018 - 2020 < > This file is distributed under the MIT License . ;;;; See LICENSE for details. (in-package :sonic-lisp) (defvar +input-template+ '(:up nil :down nil :left nil :right nil :start nil :select nil :a nil :b nil :x nil :y nil)) (defparameter *input-unsync* ...
null
https://raw.githubusercontent.com/luksamuk/sonic-lisp-engine/28987769a8c60411862a415010e44c495c4ea875/input.lisp
lisp
input.lisp See LICENSE for details.
Copyright ( c ) 2018 - 2020 < > This file is distributed under the MIT License . (in-package :sonic-lisp) (defvar +input-template+ '(:up nil :down nil :left nil :right nil :start nil :select nil :a nil :b nil :x nil :y nil)) (defparameter *input-unsync* (copy-list +input-template+)) (defparameter *i...
710d112b794e667d210bcc62430a3a274b61898a273217fc4d3ff4faa2673ff0
kronkltd/jiksnu
user_transforms.clj
(ns jiksnu.modules.web.transforms.user-transforms) (defn salmon-link [user] #_(named-url "user salmon" {:id (:_id user)})) (defn set-url [user] (if (:url user) user (assoc user :url "")))
null
https://raw.githubusercontent.com/kronkltd/jiksnu/8c91e9b1fddcc0224b028e573f7c3ca2f227e516/src/jiksnu/modules/web/transforms/user_transforms.clj
clojure
(ns jiksnu.modules.web.transforms.user-transforms) (defn salmon-link [user] #_(named-url "user salmon" {:id (:_id user)})) (defn set-url [user] (if (:url user) user (assoc user :url "")))
ad7f7f5529d0fbda32012d6db6a4b5abd29a8bc2505e0bc6e947de074d0573e6
ermine-language/ermine
CoreArbitrary.hs
# LANGUAGE DefaultSignatures # {-# LANGUAGE RankNTypes #-} module Arbitrary.CoreArbitrary where import Arbitrary.Arbitrary import Arbitrary.SyntaxArbitrary import Control.Applicative import Data.Map import Ermine.Core.Module as Module import Test.QuickCheck import Test.QuickCheck.Function import Test.QuickCheck.Insta...
null
https://raw.githubusercontent.com/ermine-language/ermine/bd58949ab56311be9e0d2506a900f3d77652566b/tests/properties/Arbitrary/CoreArbitrary.hs
haskell
# LANGUAGE RankNTypes # Orphans
# LANGUAGE DefaultSignatures # module Arbitrary.CoreArbitrary where import Arbitrary.Arbitrary import Arbitrary.SyntaxArbitrary import Control.Applicative import Data.Map import Ermine.Core.Module as Module import Test.QuickCheck import Test.QuickCheck.Function import Test.QuickCheck.Instances instance Arbitrary a =...
1cc1620ffc112b8379ae1e57212fee0907400eab87b29b37226b8c5f5d1b7b92
project-oak/hafnium-verification
Topl.mli
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
null
https://raw.githubusercontent.com/project-oak/hafnium-verification/6071eff162148e4d25a0fedaea003addac242ace/experiments/ownership-inference/infer/infer/src/topl/Topl.mli
ocaml
* Returns whether the TOPL analysis is active. * [get_proc_attr proc_name] returns the attributes of [get_proc_desc proc_name] * Returns a synthesized Procdesc.t, when it corresponds to instrumentation for a TOPL property. * Inserts calls to the TOPL automaton. Mutates the arguments: it is the caller's responsibilit...
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
fc9642b28d53cd10927261b523b1a26696ee02af1391ffb0bf28c00f3402d7cd
HealthSamurai/dojo.clj
11_lazy_sequences_test.clj
(ns koans.11-lazy-sequences-test (:require [koans.engine :refer :all])) (meditations "There are many ways to generate a sequence" (= __ (range 1 5)) "The range starts at the beginning by default" (= __ (range 5)) "Only take what you need when the sequence is large" (= [0 1 2 3 4 5 6 7 8 9] (take _...
null
https://raw.githubusercontent.com/HealthSamurai/dojo.clj/94922640f534897ab2b181c608b54bfbb8351d7b/test/koans/11_lazy_sequences_test.clj
clojure
(ns koans.11-lazy-sequences-test (:require [koans.engine :refer :all])) (meditations "There are many ways to generate a sequence" (= __ (range 1 5)) "The range starts at the beginning by default" (= __ (range 5)) "Only take what you need when the sequence is large" (= [0 1 2 3 4 5 6 7 8 9] (take _...
dd01e2205f1eaac2bd0fd1804d1087dc3a412e135710fcc2b9eef37c4ec5ab88
lassik/upscheme
torture.scm
(define ones (map (lambda (x) 1) (iota 1000000))) (writeln (apply + ones)) (define (big n) (if (<= n 0) 0 `(+ 1 1 1 1 1 1 1 1 1 1 ,(big (- n 1))))) (define nst (big 100000)) (writeln (eval nst)) (define longg (cons '+ ones)) (writeln (eval longg)) (define (f x) (begin (writeln x) (f (+ x ...
null
https://raw.githubusercontent.com/lassik/upscheme/61935bd866acb18902199bc4bc4cdd1760aa1ffc/scheme-tests/torture.scm
scheme
(define ones (map (lambda (x) 1) (iota 1000000))) (writeln (apply + ones)) (define (big n) (if (<= n 0) 0 `(+ 1 1 1 1 1 1 1 1 1 1 ,(big (- n 1))))) (define nst (big 100000)) (writeln (eval nst)) (define longg (cons '+ ones)) (writeln (eval longg)) (define (f x) (begin (writeln x) (f (+ x ...
75b4021abc0da6cbd246c050ae81ada8cc8883c7208e6e332991e41cc3539e78
Factual/sosueme
hawaii.clj
(ns sosueme.hawaii) (def C "hwknlpm") (def V [\a \e \i \o \u]) (defn newname "Returns a randomly generated String that should be roughly human pronounceable. Follows a convention meant to simulate Hawaiian sounding names. Example names: monime nuhine kamino" [] (apply str (repeatedly 3 #(s...
null
https://raw.githubusercontent.com/Factual/sosueme/1c2e9b7eb4df8ae67012dc2a398b4ec63c9bd6cd/src/sosueme/hawaii.clj
clojure
(ns sosueme.hawaii) (def C "hwknlpm") (def V [\a \e \i \o \u]) (defn newname "Returns a randomly generated String that should be roughly human pronounceable. Follows a convention meant to simulate Hawaiian sounding names. Example names: monime nuhine kamino" [] (apply str (repeatedly 3 #(s...
0ef4b1da292ca626bd8d49e1e12feb540999dd7061ffae172b87b547d92036ee
ds-wizard/engine-backend
DocumentTemplateChangeDTO.hs
module Wizard.Api.Resource.DocumentTemplate.DocumentTemplateChangeDTO where import GHC.Generics import Shared.Model.DocumentTemplate.DocumentTemplate data DocumentTemplateChangeDTO = DocumentTemplateChangeDTO { phase :: DocumentTemplatePhase } deriving (Show, Eq, Generic)
null
https://raw.githubusercontent.com/ds-wizard/engine-backend/d392b751192a646064305d3534c57becaa229f28/engine-wizard/src/Wizard/Api/Resource/DocumentTemplate/DocumentTemplateChangeDTO.hs
haskell
module Wizard.Api.Resource.DocumentTemplate.DocumentTemplateChangeDTO where import GHC.Generics import Shared.Model.DocumentTemplate.DocumentTemplate data DocumentTemplateChangeDTO = DocumentTemplateChangeDTO { phase :: DocumentTemplatePhase } deriving (Show, Eq, Generic)
da3e348275951e426016d49169193afe9be0b0a17dd55f814e4dae96deaa437d
mtpearce/idyom
prediction-sets.lisp
;;;; ====================================================================== ;;;; File: prediction-sets.lisp Author : < > Created : < 2003 - 04 - 18 > Time - stamp : < 2019 - 12 - 12 10:14:32 marcusp > ;;;; ==================================...
null
https://raw.githubusercontent.com/mtpearce/idyom/d0449a978c79f8ded74c509fdfad7c1a253c5a80/mvs/prediction-sets.lisp
lisp
====================================================================== File: prediction-sets.lisp ====================================================================== DESCRIPTION Functions for building and combining predictions sets for events, sequences and datasets and for computing entropy and ...
Author : < > Created : < 2003 - 04 - 18 > Time - stamp : < 2019 - 12 - 12 10:14:32 marcusp > (cl:in-package #:prediction-sets) (defclass dataset-prediction () ((basic-viewpoint :accessor basic-viewpoint :initarg :basic-viewpoint :type (or nu...
e2a89d60e8a0db665e7f4c2e4481e314f9ddcad74fc14e9518e88562128a2e24
moonpolysoft/dynomite
dynomite_web.erl
%%%------------------------------------------------------------------- %%% File: dynomite_web.erl @author < > [ ] 2008 %%% @doc %%% %%% @end %%% @since 2008 - 08 - 12 by %%%------------------------------------------------------------------- -module(dynomite_web). -author(''). %% API -export([sta...
null
https://raw.githubusercontent.com/moonpolysoft/dynomite/a5618dcbe17b16cefdc9c567f27a1f4445aee005/elibs/dynomite_web.erl
erlang
------------------------------------------------------------------- File: dynomite_web.erl @doc @end ------------------------------------------------------------------- API ==================================================================== API ==============================================================...
@author < > [ ] 2008 @since 2008 - 08 - 12 by -module(dynomite_web). -author(''). -export([start_link/0, stop/0, loop/2]). -include("../include/config.hrl"). -include("../include/common.hrl"). start_link() -> Config = configuration:get_config(), WebDir = find_web_dir(), case Config#confi...
3de94d82b0a811ee16784900173ba814cc539caa9b60c7c19b7dfba1ada8193f
artyom-poptsov/guile-ics
cli.scm
ics.scm -- Tests for the Command - Line Interface ( CLI . ) Copyright ( C ) 2022 < > ;; ;; This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ;; (at you...
null
https://raw.githubusercontent.com/artyom-poptsov/guile-ics/4862454fa9739f65336f3882c752a59532261355/tests/cli.scm
scheme
This program is free software: you can redistribute it and/or modify (at your option) any later version. The program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public ...
ics.scm -- Tests for the Command - Line Interface ( CLI . ) Copyright ( C ) 2022 < > it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License (add-to-lo...
e2a1ac01a44cd94623204cd1d48f7d23c8284dbd825ea9daaad7b86a4c2d7e8e
tisnik/clojure-examples
core_test.clj
(ns db-store.core-test (:require [clojure.test :refer :all] [db-store.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
null
https://raw.githubusercontent.com/tisnik/clojure-examples/984af4a3e20d994b4f4989678ee1330e409fdae3/db-store/test/db_store/core_test.clj
clojure
(ns db-store.core-test (:require [clojure.test :refer :all] [db-store.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
62d791cb04444fb7a0b2cfa723e8af6029a711bf9831a3b9cb78bfdd70491d87
phillord/tawny-owl
emacs.clj
The contents of this file are subject to the LGPL License , Version 3.0 . ;; Copyright ( C ) 2013 , 2017 , , Newcastle University ;; ;; 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...
null
https://raw.githubusercontent.com/phillord/tawny-owl/331e14b838a42adebbd325f80f60830fa0915d76/src/tawny/emacs.clj
clojure
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 option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT without even the implied warranty of MERCHANTABILITY or FITNESS...
The contents of this file are subject to the LGPL License , Version 3.0 . Copyright ( C ) 2013 , 2017 , , Newcastle University the Free Software Foundation , either version 3 of the License , or ( at your You should have received a copy of the GNU Lesser General Public License along with this program . If n...
50981168846ee890d53924a60ba4e87b9fcbee0a8f39d5704d475bc4915fc0ba
nt591/monkey-ocaml
lexer.ml
module Lexer = struct include Token type lexer = { input : string; position : int; read_position : int; ch : char; } -way-to-include-a-null-character-byte-in-a-string-in-ocaml let null_byte = '\x00' let peek_char lexer = if lexer.read_position >= String.length(lexer.input) then null_b...
null
https://raw.githubusercontent.com/nt591/monkey-ocaml/46882b03ca7d911b5a12b0e47738778fde5ee7fc/src/lexer.ml
ocaml
module Lexer = struct include Token type lexer = { input : string; position : int; read_position : int; ch : char; } -way-to-include-a-null-character-byte-in-a-string-in-ocaml let null_byte = '\x00' let peek_char lexer = if lexer.read_position >= String.length(lexer.input) then null_b...
1afd7799faf4deedc6b29e6f919d9f7d85490fc283f549ab16945b53cf36d5cb
wireapp/wire-server
Welcome.hs
-- This file is part of the Wire Server implementation. -- Copyright ( C ) 2022 Wire Swiss GmbH < > -- -- This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License...
null
https://raw.githubusercontent.com/wireapp/wire-server/3db4338590aae304879be5bffc0fd4b79a46ea02/libs/wire-api/src/Wire/API/MLS/Welcome.hs
haskell
This file is part of the Wire Server implementation. This program is free software: you can redistribute it and/or modify it under later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTI...
Copyright ( C ) 2022 Wire Swiss GmbH < > the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any You should have received a copy of the GNU Affero General Public License along module Wire.API.MLS.Welcome wher...
1011c24a58a6e2e5753e64a7b3e63893779fe197b79d9888cf0472b1ad3ca8cc
antono/guix-debian
builders.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2012 , 2013 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 3 of t...
null
https://raw.githubusercontent.com/antono/guix-debian/85ef443788f0788a62010a942973d4f7714d10b4/tests/builders.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2012 , 2013 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (test-builders) #:use-module (guix download) #:use-module (guix build-system) #:use-m...
2d3d2281812b76e7d3a0582521b01c8244fdd6077d12d12d9239b3e218d4c069
kudu-dynamics/blaze
IndirectCallResolutionSpec.hs
# OPTIONS_GHC -fno - warn - incomplete - uni - patterns # HLINT ignore " Redundant do " module Blaze.IndirectCallResolutionSpec where import qualified Binja . Core as Bn import Blaze . IndirectCallResolution import Blaze.Prelude import qualified Blaze . Import . Source . BinaryNinja as Bni import Test.Hspec b...
null
https://raw.githubusercontent.com/kudu-dynamics/blaze/d4194ec27c1d84328e370ea24518f815cfb39eaf/test/binja/Blaze/IndirectCallResolutionSpec.hs
haskell
eBoxBinBv <- runIO $ Bn.getBinaryView boxBin let (Right boxBinBv) = eBoxBinBv runIO $ Bn.updateAnalysisAndWait boxBinBv context "Constructors" $ do let bni = Bni.BNImporter boxBinBv it "should get all constructors in the binaryview" $ do context "Indirect Calls" $ do indirectCalls <- runIO $ getIndirectCa...
# OPTIONS_GHC -fno - warn - incomplete - uni - patterns # HLINT ignore " Redundant do " module Blaze.IndirectCallResolutionSpec where import qualified Binja . Core as Bn import Blaze . IndirectCallResolution import Blaze.Prelude import qualified Blaze . Import . Source . BinaryNinja as Bni import Test.Hspec b...
7ec0886265fd14d4c4a6c80e4f3f444e088e0ebd61c3c869879b0517bae3690f
facebook/infer
TextualBasicVerification.ml
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
null
https://raw.githubusercontent.com/facebook/infer/8a02f19fb30b9d4f8d74a8b31dc8d7206070f419/infer/src/textual/TextualBasicVerification.ml
ocaml
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
1a57b170cc9909ea6620d817eab0f7f1f0dee31e01dc8c690855c3ec6931a68d
uwplse/PUMPKIN-PATCH
differencers.ml
(* --- Type definitions for differencers --- *) open Constr open Proofdiff open Candidates open Proofcat open Kindofchange open Evd open Stateutils type ('a, 'b) differencer = 'a proof_diff -> evar_map -> 'b state type 'a candidate_differencer = ('a, candidates) differencer type proof_differencer = (context_object *...
null
https://raw.githubusercontent.com/uwplse/PUMPKIN-PATCH/73fd77ba49388fdc72702a252a8fa8f071a8e1ea/plugin/src/core/components/differencing/differencers.ml
ocaml
--- Type definitions for differencers ---
open Constr open Proofdiff open Candidates open Proofcat open Kindofchange open Evd open Stateutils type ('a, 'b) differencer = 'a proof_diff -> evar_map -> 'b state type 'a candidate_differencer = ('a, candidates) differencer type proof_differencer = (context_object * proof_cat) candidate_differencer type term_diff...
0b16f42861b0a7e949b0abb40b8484774e64e51b44d81fc471fc22da7574cb6c
c089/haskell-craft3e
MakeCode.hs
------------------------------------------------------------------------- -- -- MakeCode.hs -- Huffman coding in Haskell . -- ( c ) Addison - Wesley , 1996 - 2011 . -- ----------------------------------------------------------------------...
null
https://raw.githubusercontent.com/c089/haskell-craft3e/869e382601cab50559c4473dfa9c7480f1acba58/Chapter15/MakeCode.hs
haskell
----------------------------------------------------------------------- MakeCode.hs ----------------------------------------------------------------------- Putting together frequency calculation and tree conversion
Huffman coding in Haskell . ( c ) Addison - Wesley , 1996 - 2011 . module MakeCode ( codes, codeTable ) where import Types import Frequency ( frequency ) import MakeTree ( makeTree ) import CodeTable ( codeTable ) codes :: [Char] -> Tree codes = makeTree . frequency
9eb05c734d5e5cb852567cdcb26fe5ad2c12a8145f7d55d1dca1b2fdcce2d5e9
OCamlPro/alt-ergo
uf.mli
(******************************************************************************) (* *) (* The Alt-Ergo theorem prover *) Copyright ( C ) 2006 - 2013 ...
null
https://raw.githubusercontent.com/OCamlPro/alt-ergo/5a0870f613ebb128f41fc4f61d7a10054fe14c76/src/lib/reasoners/uf.mli
ocaml
**************************************************************************** The Alt-Ergo theorem prover ...
Copyright ( C ) 2006 - 2013 ...
d15d920ab44f5d63fd02e94bbbbba1a04f31846c6232e53e94c3786f56eebf52
mathematical-systems/clml
dlaexc.lisp
;;; Compiled by f2cl version: ( " $ I d : f2cl1.l , v 1.209 2008/09/11 14:59:55 rtoy Exp $ " " $ I d : f2cl2.l , v 1.37 2008/02/22 22:19:33 " " $ I d : f2cl3.l , v 1.6 2008/02/22 22:19:33 rtoy Rel $ " " $ I d : f2cl4.l , v 1.7 2008/02/22 22:19:34 rtoy Rel $ " " $ I d : f2cl5.l , v 1.197 2008/09/11 15:0...
null
https://raw.githubusercontent.com/mathematical-systems/clml/918e41e67ee2a8102c55a84b4e6e85bbdde933f5/lapack/dlaexc.lisp
lisp
Compiled by f2cl version: Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t) (:coerce-assigns :as-needed) (:array-type ':array) (:array-slicing t) (:declare-common nil) (:float-format double-float))
( " $ I d : f2cl1.l , v 1.209 2008/09/11 14:59:55 rtoy Exp $ " " $ I d : f2cl2.l , v 1.37 2008/02/22 22:19:33 " " $ I d : f2cl3.l , v 1.6 2008/02/22 22:19:33 rtoy Rel $ " " $ I d : f2cl4.l , v 1.7 2008/02/22 22:19:34 rtoy Rel $ " " $ I d : f2cl5.l , v 1.197 2008/09/11 15:03:25 rtoy Exp $ " " $ I d :...
728a2e757cb9fcdc863440a246c580b1cdb3093402cfe8d8d949c5e6f5bb8787
k00mi/mqtt-hs
subscribe.hs
{-# Language DataKinds, OverloadedStrings #-} -- Shows how to connect to a broker, subscribe to a bunch of topics and inspect -- to which of those a message was published to. Does n't publish any messages itself , use mosquitto_pub or something else for -- that. module Subscribe where import Control.Concurrent imp...
null
https://raw.githubusercontent.com/k00mi/mqtt-hs/8bade1e192fb4b15db751de70185eac83c2a878d/examples/subscribe.hs
haskell
# Language DataKinds, OverloadedStrings # Shows how to connect to a broker, subscribe to a bunch of topics and inspect to which of those a message was published to. that. sometimes it's useful to ignore retained messages
Does n't publish any messages itself , use mosquitto_pub or something else for module Subscribe where import Control.Concurrent import Control.Concurrent.STM import Control.Monad (unless, forever) import System.Exit (exitFailure) import System.IO (hPutStrLn, stderr) import qualified Network.MQTT as MQTT t1, t2 :...
6e623b316b4fe32f981805febe2016c99d4eac4b068acc4a132df1d1e676a695
Bogdanp/racket-gui-easy
info.rkt
#lang info (define scribblings '(("scribblings/gui-easy.scrbl")))
null
https://raw.githubusercontent.com/Bogdanp/racket-gui-easy/6c19681cacff2bf1691b041ebb5eda825687c0b5/gui-easy/gui/easy/info.rkt
racket
#lang info (define scribblings '(("scribblings/gui-easy.scrbl")))
de7992a4f7a82aae81443d7d044a2e41a15a4fd2c10774234afd817dde2c281a
fission-codes/fission
Destroyer.hs
module Fission.Web.Server.Heroku.AddOn.Destroyer (module Fission.Web.Server.Heroku.AddOn.Destroyer.Class) where import Fission.Web.Server.Heroku.AddOn.Destroyer.Class
null
https://raw.githubusercontent.com/fission-codes/fission/11d14b729ccebfd69499a534445fb072ac3433a3/fission-web-server/library/Fission/Web/Server/Heroku/AddOn/Destroyer.hs
haskell
module Fission.Web.Server.Heroku.AddOn.Destroyer (module Fission.Web.Server.Heroku.AddOn.Destroyer.Class) where import Fission.Web.Server.Heroku.AddOn.Destroyer.Class
f6218cb18bb91a46e6416e85f7609314d746d3a4552067ddf0661ec0508a4c43
tlaplus/tlapm
node.ml
Copyright 2004 INRIA open Expr;; open Printf;; type priority = | Prop | Arity | Arity_eq | Inst of expr ;; type node = { nconc : expr list; nrule : Mlproof.rule; nprio : priority; ngoal : goalness; nbranches : expr list array; };; type node_item = | Node of node | Stop ;; let rec xreleva...
null
https://raw.githubusercontent.com/tlaplus/tlapm/b82e2fd049c5bc1b14508ae16890666c6928975f/zenon/node.ml
ocaml
ist_small must be even
Copyright 2004 INRIA open Expr;; open Printf;; type priority = | Prop | Arity | Arity_eq | Inst of expr ;; type node = { nconc : expr list; nrule : Mlproof.rule; nprio : priority; ngoal : goalness; nbranches : expr list array; };; type node_item = | Node of node | Stop ;; let rec xreleva...
b04e6b41aa0ca7e01072853f6fbb62cd03c56959312d6ede14d6452329cdfa3c
meooow25/haccepted
KruskalBench.hs
module KruskalBench where import Control.Monad import Control.Monad.Random import Criterion import Kruskal ( WEdge(..), kruskal ) import Util ( evalR, sizedBench ) benchmark :: Benchmark benchmark = bgroup "Kruskal" Run Kruskal 's algorithm on a graph with n edges and n/4 vertices bgroup "kruskal" $ map ben...
null
https://raw.githubusercontent.com/meooow25/haccepted/f0cb028538a8d4f50396b08ee631489b72f89fc4/bench/KruskalBench.hs
haskell
module KruskalBench where import Control.Monad import Control.Monad.Random import Criterion import Kruskal ( WEdge(..), kruskal ) import Util ( evalR, sizedBench ) benchmark :: Benchmark benchmark = bgroup "Kruskal" Run Kruskal 's algorithm on a graph with n edges and n/4 vertices bgroup "kruskal" $ map ben...
3a2aae7ad2c52f99e983ac45d390dcebb46f92586a2ce6c7ad9cade6e53ed06a
ariesteam/aries
proximity_model.clj
Copyright 2009 ;;; This file is part of CLJ - SPAN . ;;; CLJ - SPAN 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. ;;; ...
null
https://raw.githubusercontent.com/ariesteam/aries/b3fafd4640f4e7950fff3791bc4ea4c06ee4dcdf/plugins/org.integratedmodelling.aries.core/bindings/clojure/span/proximity_model.clj
clojure
or (at your option) any later version. 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.
Copyright 2009 This file is part of CLJ - SPAN . CLJ - SPAN 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 , CLJ - SPAN is distributed in the hope that it will be u...
862e040676e65b305789d6c8cf19a8d6283bb54000dd75db73d5ec25ea3d44ea
Z572/gwwm
keymap.scm
(define-module (tests keymap) #:use-module (oop goops) #:use-module (srfi srfi-64) #:use-module (gwwm keymap)) (define SHIFT 1 ) (define CAPS 2) (define CTRL 3) (define ALT 4) (define MOD2 5) (define MOD3 6) (define LOGO 7) (define MOD5 8) (define (%modify-keys) (@@ (gwwm keymap) %modify-keys)) (test-...
null
https://raw.githubusercontent.com/Z572/gwwm/c5570b61565cc713217ef10d47aa0b289e1d46cd/tests/keymap.scm
scheme
(define-module (tests keymap) #:use-module (oop goops) #:use-module (srfi srfi-64) #:use-module (gwwm keymap)) (define SHIFT 1 ) (define CAPS 2) (define CTRL 3) (define ALT 4) (define MOD2 5) (define MOD3 6) (define LOGO 7) (define MOD5 8) (define (%modify-keys) (@@ (gwwm keymap) %modify-keys)) (test-...
3b18e21bfa716534aabd054b3141f3dfb97f905353ee3e6293416e9da66eff76
triffon/fp-2022-23
03-deep-reverse.rkt
#lang racket (define (atom? x) (and (not (null? x)) (not (pair? x)))) (define (deep-reverse lst) (cond ((null? lst) '()) ((atom? lst) lst) (else (append (deep-reverse (cdr lst)) (list (deep-reverse (car lst)))))))
null
https://raw.githubusercontent.com/triffon/fp-2022-23/8fb2bc9a3b17f883a61928d573dd1ccf401ca36b/exercises/inf2/06/03-deep-reverse.rkt
racket
#lang racket (define (atom? x) (and (not (null? x)) (not (pair? x)))) (define (deep-reverse lst) (cond ((null? lst) '()) ((atom? lst) lst) (else (append (deep-reverse (cdr lst)) (list (deep-reverse (car lst)))))))
7c6373cf0b0bdd6b878a6931038079c9decf77715a535c77705a77d47072f58c
abdulapopoola/SICPBook
Ex2.08.scm
#lang planet neil/sicp ;;helpers (define (make-interval a b) (cons a b)) (define (lower-bound interval) (car interval)) (define (upper-bound interval) (cdr interval)) (define (sub-interval x y) (make-interval (- (lower-bound x) (lower-bound y)) (- (upper-bound x) ...
null
https://raw.githubusercontent.com/abdulapopoola/SICPBook/c8a0228ebf66d9c1ddc5ef1fcc1d05d8684f090a/Chapter%202/2.1/Ex2.08.scm
scheme
helpers
#lang planet neil/sicp (define (make-interval a b) (cons a b)) (define (lower-bound interval) (car interval)) (define (upper-bound interval) (cdr interval)) (define (sub-interval x y) (make-interval (- (lower-bound x) (lower-bound y)) (- (upper-bound x) (up...
43629b2053b724de4e6f9c88669f0336d51a4ae539714c40fdc13542777436d2
gossiperl/gossiperl
gossiperl_run.erl
Copyright ( c ) 2014 < > %% %% Permission is hereby granted, free of charge, to any person obtaining a copy %% of this software and associated documentation files (the "Software"), to deal in the Software without restriction , including without limitation the rights %% to use, copy, modify, merge, publish, distr...
null
https://raw.githubusercontent.com/gossiperl/gossiperl/0e7a3806bdec94016ba12f069d1699037c477c29/src/gossiperl_run.erl
erlang
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 sell furnished to do so, subject to the following conditions: The above copyright notice ...
Copyright ( c ) 2014 < > 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 the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR ...
619bd95faf997224da53291f71e3af0ca9a77bbfcfed95388e0f1286ccc2d807
coq/coq
auto.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/789ccb61cdee5c10c1d0fd0f2569b05f02e41a9a/tactics/auto.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...
461b76918c12a92e12b721029b2c29c236a4434d3822052fbc24cea71798b8bd
igorhvr/bedlam
myenv-sisc.scm
My Standard Scheme " Prelude " Version for SCM v5d2 $ I d : myenv - sisc.scm , v 1.1 2004/03/25 14:27:48 scgmille Exp $ ; Very SISC-specific definitions (define-macro (declare . x) '(begin)) ; assert the truth of an expression (or of a sequence of expressions) ; ; syntax: assert ?expr ?expr ... [report: ?...
null
https://raw.githubusercontent.com/igorhvr/bedlam/b62e0d047105bb0473bdb47c58b23f6ca0f79a4e/sisc/sisc-contrib/pure-scheme/ssax/myenv-sisc.scm
scheme
Very SISC-specific definitions assert the truth of an expression (or of a sequence of expressions) syntax: assert ?expr ?expr ... [report: ?r-exp ?r-exp ...] If (and ?expr ?expr ...) evaluates to anything but #f, the result is the value of that expression. If (and ?expr ?expr ...) evaluates to #f, an error is r...
My Standard Scheme " Prelude " Version for SCM v5d2 $ I d : myenv - sisc.scm , v 1.1 2004/03/25 14:27:48 scgmille Exp $ (define-macro (declare . x) '(begin)) (define-macro (assert expr . others) (define (make-print-list prefix lst) (cond ((null? lst) '()) ((symbol? (car lst)) (cons #\...
f652195f2c729caa67e55de4570e5b703907fc87215dbe8303bfe1d422bcf61b
ucsd-progsys/nate
exam0.1.ml
(*S*) let f x y = let w = y + 1 in w :: x
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/easyocaml-additional/exams/exam0.1.ml
ocaml
S
let f x y = let w = y + 1 in w :: x
f9c1914e4c19006fcfb2ab22debd9a439779844b7180d58dc764064477c0c5c2
eryx67/vk-api
Test.hs
# LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # -- | module Test where -- import Network.API.Builder.TH data A = : : Int , a2 : : Int } | A2{a1 : : Int , a2 : : Int } -- $(deri...
null
https://raw.githubusercontent.com/eryx67/vk-api/73665a2a3a3ac3b9115fd12360c3bc7191dcb0f8/src/Test.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE RecordWildCards # | import Network.API.Builder.TH $(deriveQueryable ''A) import qualified Data.ByteString as BS import Data.List (lookup) import Data.Maybe (listToMaybe) import qu...
# LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # module Test where data A = : : Int , a2 : : Int } | A2{a1 : : Int , a2 : : Int } import Control . Applicative ( ( < | > ) ) import Control . Monad . IO.Class ( liftIO )...
157609bb68cee615c1392a61db48ed1ffae2e8d55efe98a814839af540912ce8
ygmpkk/house
GraphicsUtils.hs
module GraphicsUtils ( module GraphicsCore , module GraphicsUtils ) where import GraphicsCore import Concurrent ( MVar, newEmptyMVar, newMVar, takeMVar, putMVar , forkIO ) import Ix(Ix) import Array(Array,array,(!)) ------------------------------------------------------...
null
https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/hslibs/graphics/lib/x11/GraphicsUtils.hs
haskell
-------------------------------------------------------------- -------------------------------------------------------------- -------------------------------------------------------------- Implementation -------------------------------------------------------------- Window operations Event operations Wait for a key...
module GraphicsUtils ( module GraphicsCore , module GraphicsUtils ) where import GraphicsCore import Concurrent ( MVar, newEmptyMVar, newMVar, takeMVar, putMVar , forkIO ) import Ix(Ix) import Array(Array,array,(!)) Interface openWindow :: Title -> Size -> IO ...
456726fd3ac6584d5241e2ad8260338135747a679985b9e8cce6ea9f768d0d9d
armstnp/advent-of-code-2019
day9.clj
(ns advent-of-code-2019.day9 (:require [advent-of-code-2019.core :as core] [clojure.string :as str] [clojure.math.combinatorics :as combo])) (def input (-> "day9.txt" core/read-input str/trim (str/split #",") (->> (mapv bigint)))) ...
null
https://raw.githubusercontent.com/armstnp/advent-of-code-2019/68e21174394d8b0e14433f9f249e995c10ac6d67/src/advent_of_code_2019/day9.clj
clojure
Instruction parsing and handling
(ns advent-of-code-2019.day9 (:require [advent-of-code-2019.core :as core] [clojure.string :as str] [clojure.math.combinatorics :as combo])) (def input (-> "day9.txt" core/read-input str/trim (str/split #",") (->> (mapv bigint)))) ...
1e3a8c6cba71e6ce1c4704d4451bbdcf84188444acbe3ce29763292ca82ca66a
janestreet/bonsai
devbar_style.mli
include module type of Devbar_style__generated
null
https://raw.githubusercontent.com/janestreet/bonsai/8643e8b3717b035386ac36f2bcfa4a05bca0d64f/web_ui/view/kado/devbar_style.mli
ocaml
include module type of Devbar_style__generated
6041d2cab58596016294e907fec617e9d67aa3c665a1e45d62e2a977220942ea
drlivingston/kabob
homologene_rules.clj
;;;; Rules to map genes together bases on homology ;;; current modeling using homologous_to but this could create an ;;; explosion of triples which may or may not be undesirable `{:name "homologene-eg-gene-homologous-to" :head ((?/gene1 obo/homologous_to ?/gene2);) (?/r1 rdf/type owl/Restriction) ...
null
https://raw.githubusercontent.com/drlivingston/kabob/7038076849744c959da9c8507e8a8ab7215410aa/kabob-build/src/main/resources/edu/ucdenver/ccp/kabob/build/rules/ice_to_bio/homologene_rules.clj
clojure
Rules to map genes together bases on homology current modeling using homologous_to but this could create an explosion of triples which may or may not be undesirable ) still need to add a sufficient definition? (?/fv0 obo/IAO_0000219 ?/group) `{:name "homologene-eg-gene-homologous-to" ) (?/r1 rdf/type ow...
`{:name "homologene-eg-gene-homologous-to" (?/r1 rdf/type owl/Restriction) (?/r1 owl/onProperty obo/homologous_to) (?/r1 owl/someValuesFrom ?/gene2) (?/gene1 rdfs/subClassOf ?/r1)) :body ( (?/fv0 kiao/hasTemplate iaohomologene/HomoloGeneDataFileData_homologeneGroupI...
f4fd955b17f038745d17a180b01717a1729eebd84bc52b8401b77c62a0e4f8dc
realworldocaml/book
foo.ml
let foo = "bar"
null
https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/dune_/test/blackbox-tests/test-cases/coq/deprecate-libraries.t/foo.ml
ocaml
let foo = "bar"
0fb02dda166e4a3ccf419faa87db230597f9c0364174eb306ca12f6c9eb9bad6
flyspeck/flyspeck
transcendentals1.ml
(* ========================================================================= *) Complex transcendentals and their real counterparts . (* *) ( c ) Copyright , 1998 - 2008 (* =========...
null
https://raw.githubusercontent.com/flyspeck/flyspeck/05bd66666b4b641f49e5131a37830f4881f39db9/azure/hol-light-nat/Multivariate/transcendentals1.ml
ocaml
========================================================================= ========================================================================= ------------------------------------------------------------------------- The complex exp...
Complex transcendentals and their real counterparts . ( c ) Copyright , 1998 - 2008 open Hol_core open Floor open Products open Vectors open Determinants open Topology open Convex open Paths open Dimension open Derivatives open Complexes open Canal prio...
7ac48b8a8565a8404b2a37ee9dc694ddb2729cff4ed58a8f83bfb79479965036
Decentralized-Pictures/T4L3NT
operation_result.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > (* ...
null
https://raw.githubusercontent.com/Decentralized-Pictures/T4L3NT/6d4d3edb2d73575384282ad5a633518cba3d29e3/src/proto_alpha/lib_client/operation_result.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETH...
76e691f515fc34f09acfb7543d5cf591eeba65b0d7056bf2edbcd38f908cbaa2
vtan/spanout
Main.hs
module Main where import qualified Spanout.Main main :: IO () main = Spanout.Main.main
null
https://raw.githubusercontent.com/vtan/spanout/d0b2c1b428b4143ec12637dd09b044d627e53767/src/Main.hs
haskell
module Main where import qualified Spanout.Main main :: IO () main = Spanout.Main.main
0718bc5c79de22c3b3e91ddf8b0d771f734236c7582d7abadbf3d67b9ababb59
TrustInSoft/tis-interpreter
aorai_utils.mli
Modified by TrustInSoft (**************************************************************************) (* *) This file is part of Aorai plug - in of Frama - C. (* ...
null
https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/plugins/aorai/aorai_utils.mli
ocaml
************************************************************************ alternatives) Automatique) ...
Modified by TrustInSoft This file is part of Aorai plug - in of Frama - C. Copyright ( C ) 2007 - 2015 CEA ( Commissariat à l'énergie atomique et aux énergies ( Institut National de Recherche en Informatique et en ...
79e68ab949204a9eecfd53d0beb3ce1cbd9fe82ccb17440eae97ba0d960a829d
rescript-lang/syntax
int64.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/rescript-lang/syntax/6c9e66d18170afd4ae23dd3219e4665ea2d711fb/compiler-libs-406/int64.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 Module [ Int64 ] : 64 - bit integers external neg : int64 -> int64 = "%int64_neg" external add : int64...
96c408c546e73b07f610c864cb7c4436d5d308b7d017899fb100ad16d5941d77
Bogdanp/try-racket
editor.rkt
#lang racket/base (require json koyo/haml koyo/json koyo/session net/base64 pict racket/class racket/contract racket/file racket/format racket/match racket/port threading web-server/http web-se...
null
https://raw.githubusercontent.com/Bogdanp/try-racket/0b82259d60edb08a5158d60500e0104cf9dbaad6/try-racket/pages/editor.rkt
racket
#lang racket/base (require json koyo/haml koyo/json koyo/session net/base64 pict racket/class racket/contract racket/file racket/format racket/match racket/port threading web-server/http web-se...
ab03f166d506749a315985ac4364a4cdb20af486805464513b06c5df54aa844a
jcclinton/wow-emulator
unit_updater.erl
This is a World of Warcraft emulator written in erlang , supporting client 1.12.x %% Copyright ( C ) 2014 < jamieclinton.com > %% %% This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Found...
null
https://raw.githubusercontent.com/jcclinton/wow-emulator/21bc67bfc9eea131c447c67f7f889ba040dcdd79/src/unit_updater.erl
erlang
This program is free software; you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU G...
This is a World of Warcraft emulator written in erlang , supporting client 1.12.x Copyright ( C ) 2014 < jamieclinton.com > it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or You should have received a copy...
1e54216fd2139cfd1ed8e622dc0da37b7a8af037234b867dbc47fe5562d6d23b
smucclaw/dsl
Showbug.hs
{-# LANGUAGE QuasiQuotes #-} module Showbug where import System.Environment ( getArgs ) import System.Exit ( exitFailure, exitSuccess ) import Data.Maybe ( catMaybes, listToMaybe ) import Text.RE.PCRE ( matchedText, matches, (*=~), (?=~), re ) -- when you run l4 test1.l4 > stdoutf...
null
https://raw.githubusercontent.com/smucclaw/dsl/9ee9dd7160c05b773ff20754ba8bbdccf37a5380/bnfc/src-l4/Showbug.hs
haskell
# LANGUAGE QuasiQuotes # when you run l4 test1.l4 > stdoutfile 2> stderrfile you might get "syntax error at line M, column N before ... you will get a view of the origfile where the error message complains. note: what ought to be stderr is in stdout | showErrorCoordinates origfile input shows ...
module Showbug where import System.Environment ( getArgs ) import System.Exit ( exitFailure, exitSuccess ) import Data.Maybe ( catMaybes, listToMaybe ) import Text.RE.PCRE ( matchedText, matches, (*=~), (?=~), re ) so , if you call main :: IO () main = do args <- getArgs case args of ["...
078c7e227f4f8d4c66c6328f17d6054d6fef00e545e3bf01e5526a67aa2b48c0
cwmaguire/zombunity-mud
ns_test.clj
(ns zombunity.ns-test) ; You can specify just a keyword for the type, or a map with the type and the filter function (def msg-filters [:test {:type :test-with-filter :filter (fn [m] (:pass m))}]) (defn process-msg [m] (println "ns-test: process-msg: " m) m)
null
https://raw.githubusercontent.com/cwmaguire/zombunity-mud/ec14406f4addac9b9a0742d3043a6e7bccef1fa6/zombunity_server/test/zombunity/ns_test.clj
clojure
You can specify just a keyword for the type, or a map with the type and the filter function
(ns zombunity.ns-test) (def msg-filters [:test {:type :test-with-filter :filter (fn [m] (:pass m))}]) (defn process-msg [m] (println "ns-test: process-msg: " m) m)
3a9f76e6b11c39d6ca32b855abff598ebf5d646560e13552536f2c339337e627
abdulapopoola/SICPBook
Ex3.52.scm
#lang planet neil/sicp (define sum 0) (define (accum x) (set! sum (+ x sum)) sum) (define seq (stream-map accum (stream-enumerate-interval 1 20))) (define y (stream-filter even? seq)) (define z (stream-filter (lambda (x) (= (remainder x 5) 0)) seq)) (stream-ref y 7) 6 10 28 36 66 78 ...
null
https://raw.githubusercontent.com/abdulapopoola/SICPBook/c8a0228ebf66d9c1ddc5ef1fcc1d05d8684f090a/Chapter%203/3.5/Ex3.52.scm
scheme
Without memoization, it'll print out the full list of numbers in the
#lang planet neil/sicp (define sum 0) (define (accum x) (set! sum (+ x sum)) sum) (define seq (stream-map accum (stream-enumerate-interval 1 20))) (define y (stream-filter even? seq)) (define z (stream-filter (lambda (x) (= (remainder x 5) 0)) seq)) (stream-ref y 7) 6 10 28 36 66 78 ...
5a5d658ffee84fa362d4286d23b50953156fd9778e95f09d7eb457e7a1a18771
candera/khordr
special_action.clj
(ns khordr.handler.special-action "Implements the special action handler, which takes care of built-in actions, such as qutting and suspending the application." (:require [khordr.handler :as h]) (:import [khordr.effect Key Quit CycleLog ToggleBehaviors])) (defrecord InitializedHandler [trigger acting] h/KeyH...
null
https://raw.githubusercontent.com/candera/khordr/cd9ad9df3dc6692b583b844244260b5b619745f7/src/clj/khordr/handler/special_action.clj
clojure
TODO: Make these next few driven by config, not hardcoded. We only want to act if nothing else is already pressed
(ns khordr.handler.special-action "Implements the special action handler, which takes care of built-in actions, such as qutting and suspending the application." (:require [khordr.handler :as h]) (:import [khordr.effect Key Quit CycleLog ToggleBehaviors])) (defrecord InitializedHandler [trigger acting] h/KeyH...
a5917ec27e2807f32c67ff904548b9379325b04cfe3a3d14385c5c341783bd75
ghcjs/ghcjs-dom
PerformanceObserver.hs
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} module GHCJS.DOM.JSFFI.Generated.PerformanceObserver (js_newPerformanceObserver, newPerformanceObserver, js_observe, ...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-dom/749963557d878d866be2d0184079836f367dd0ea/ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/PerformanceObserver.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures # | <-US/docs/Web/API/PerformanceObserver Mozilla PerformanceObserver documentation>
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # module GHCJS.DOM.JSFFI.Generated.PerformanceObserver (js_newPerformanceObserver, newPerformanceObserver, js_observe, observe, js_disconnect, disconnect, PerformanceObserver(..), gTypePerformanceObserver)...
44d91edb7ec28205fc38a70f9a15c0d7bf703a23af21f3377c7c9e25ca2457a6
slegrand45/examples_ocsigen
types.ml
module I18n = struct type lang = En | Fr type t = (lang * string) type translation = t list type msg = Contact_title | Skill_title | Language_title | Work_title | Education_title | Portfolio_title let make ~lang ~s = (lang, s) let msg ~id ~l = (id, l) let translate l...
null
https://raw.githubusercontent.com/slegrand45/examples_ocsigen/e2f5efe57caf7a644795ac6b14f6d6e04168e4be/jsoo/curriculum-vitae/types.ml
ocaml
module I18n = struct type lang = En | Fr type t = (lang * string) type translation = t list type msg = Contact_title | Skill_title | Language_title | Work_title | Education_title | Portfolio_title let make ~lang ~s = (lang, s) let msg ~id ~l = (id, l) let translate l...
14997b2a08ebade81d31ea75fbbb6fe46ac990841b2e9034d7a13009bbab3f6b
coord-e/mlml
arith.ml
let () = Tester.expr "13 + 5 * 10"; Tester.expr "(2 + 5) * 6"; Tester.expr "14 * 2 - 3 * 5"; Tester.expr "1+2+3+4+5+6+7*2+8"; Tester.expr "4 / 2"; Tester.expr "12 / 5 + 3"; Tester.expr "12 mod 5 * 14"; Tester.expr "8 + 3 mod 12 + 4"; Tester.expr "-10"; Tester.expr "5-10"; Tester.expr "-(5-10)"; ...
null
https://raw.githubusercontent.com/coord-e/mlml/ec34b1fe8766901fab6842b790267f32b77a2861/test/arith.ml
ocaml
let () = Tester.expr "13 + 5 * 10"; Tester.expr "(2 + 5) * 6"; Tester.expr "14 * 2 - 3 * 5"; Tester.expr "1+2+3+4+5+6+7*2+8"; Tester.expr "4 / 2"; Tester.expr "12 / 5 + 3"; Tester.expr "12 mod 5 * 14"; Tester.expr "8 + 3 mod 12 + 4"; Tester.expr "-10"; Tester.expr "5-10"; Tester.expr "-(5-10)"; ...
00895b6155a544b5623066d0baa73ee80273f12d0857a3fee26f0d901b1b3818
clojure-expectations/expectations
project.clj
(defproject expectations "2.1.10" :description "a minimalist's unit testing framework" :license {:name "BSD 3-Clause License" :url "-3-Clause"} :url "-expectations/expectations" :scm {:name "git" :url "-expectations/expectations"} :jar-name "expectations.jar" :jar-exclusions [#"\.swp|\.s...
null
https://raw.githubusercontent.com/clojure-expectations/expectations/e58c84efb35a54f3a8c3cef53eee8f782b106e6e/project.clj
clojure
(defproject expectations "2.1.10" :description "a minimalist's unit testing framework" :license {:name "BSD 3-Clause License" :url "-3-Clause"} :url "-expectations/expectations" :scm {:name "git" :url "-expectations/expectations"} :jar-name "expectations.jar" :jar-exclusions [#"\.swp|\.s...
ccdc0bb260e1e5929ee094616b870d3d5f511a14c7556a06f91dcce936b2452d
xapi-project/xen-api
db_conn_store.ml
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking describe...
null
https://raw.githubusercontent.com/xapi-project/xen-api/6c2aadbb44166b389a3bd956c8a6af5787003d68/ocaml/database/db_conn_store.ml
ocaml
------------------- List of db connections that are active (read from db.conf file) Locks for each db connection mutex used to protect access to table of mutexes -- nice! This fn is not threadsafe. We only call it on start of day, before parallel threads have been forked create a lock for each of our db connec...
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking describe...
45085441da68d24317b8735a1b5c616c3b1a5fff28a6e967ebe2257c7d67cf50
facebook/duckling
Rules.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. {-# LANGUAGE GADTs #-} # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} module Duckling.Ordinal.D...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/Ordinal/DE/Rules.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. # LANGUAGE GADTs # # LANGUAGE OverloadedStrings #
Copyright ( c ) 2016 - present , Facebook , Inc. # LANGUAGE LambdaCase # module Duckling.Ordinal.DE.Rules ( rules ) where import Data.Semigroup ((<>)) import Prelude import Data.String import Data.Text (Text) import qualified Data.HashMap.Strict as HashMap import qualified Data.List as List import qualified D...
a0be20ff116151f5baf7188407f57d3b1b0aa4cf54f5f72cc307bf52d27e8933
scrintal/heroicons-reagent
bug_ant.cljs
(ns com.scrintal.heroicons.outline.bug-ant) (defn render [] [:svg {:xmlns "" :fill "none" :viewBox "0 0 24 24" :strokeWidth "1.5" :stroke "currentColor" :aria-hidden "true"} [:path {:strokeLinecap "round" :strokeLinejoin "round" ...
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/outline/bug_ant.cljs
clojure
(ns com.scrintal.heroicons.outline.bug-ant) (defn render [] [:svg {:xmlns "" :fill "none" :viewBox "0 0 24 24" :strokeWidth "1.5" :stroke "currentColor" :aria-hidden "true"} [:path {:strokeLinecap "round" :strokeLinejoin "round" ...
fc18df395deb9634017abc102549839136433bbe75e3bcec0b17603567a422ba
abarbu/haskell-torch
T04_FeedforwardNN.hs
# LANGUAGE AllowAmbiguousTypes , DataKinds , ExtendedDefaultRules , FlexibleContexts , FlexibleInstances , OverloadedStrings , PolyKinds # # LANGUAGE QuasiQuotes , ScopedTypeVariables , TemplateHaskell , TypeApplications , TypeFamilies # # OPTIONS_GHC -fplugin GHC.TypeLits . Known...
null
https://raw.githubusercontent.com/abarbu/haskell-torch/e0afcaf81b78e9211ba120dcd247f9a6112b57ab/haskell-torch-examples/src/Torch/Tutorial/Intro/T04_FeedforwardNN.hs
haskell
# LANGUAGE AllowAmbiguousTypes , DataKinds , ExtendedDefaultRules , FlexibleContexts , FlexibleInstances , OverloadedStrings , PolyKinds # # LANGUAGE QuasiQuotes , ScopedTypeVariables , TemplateHaskell , TypeApplications , TypeFamilies # # OPTIONS_GHC -fplugin GHC.TypeLits . Known...
b75b3a36eef2b594fabc1d7d8a1d01ea1d5605666f7cef68fe985683f289fecc
smucclaw/dsl
SVGLadderSpec.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE BlockArguments # module AnyAll.SVGLadderSpec (spec) where import AnyAll.SVGLadder hiding (tl) import AnyAll.Types import AnyAll.BoolStruct import Data.Text (Text, splitOn, pack, replace) import qualified Data.Text.Lazy.IO as TIO import Graphics.Svg import Test.Hspec impor...
null
https://raw.githubusercontent.com/smucclaw/dsl/efb0b36d29fde29dac102a44c3a11177de3a7199/lib/haskell/anyall/test/AnyAll/SVGLadderSpec.hs
haskell
# LANGUAGE OverloadedStrings # XML.parseXML s
# LANGUAGE BlockArguments # module AnyAll.SVGLadderSpec (spec) where import AnyAll.SVGLadder hiding (tl) import AnyAll.Types import AnyAll.BoolStruct import Data.Text (Text, splitOn, pack, replace) import qualified Data.Text.Lazy.IO as TIO import Graphics.Svg import Test.Hspec import qualified Data.Text.Lazy as TL (t...
f9a2fa0bd573c41e0ced47fe7f7c12d8c4fc2ca317eb88f0d5d74d2b458f26f9
anoma/juvix
Pipeline.hs
module Juvix.Compiler.Asm.Pipeline ( module Juvix.Compiler.Asm.Pipeline, module Juvix.Compiler.Asm.Data.InfoTable, module Juvix.Compiler.Asm.Options, ) where import Juvix.Compiler.Asm.Data.InfoTable import Juvix.Compiler.Asm.Extra import Juvix.Compiler.Asm.Language import Juvix.Compiler.Asm.Options import ...
null
https://raw.githubusercontent.com/anoma/juvix/807b3b1770289b8921304e92e7305c55c2e11f8f/src/Juvix/Compiler/Asm/Pipeline.hs
haskell
module Juvix.Compiler.Asm.Pipeline ( module Juvix.Compiler.Asm.Pipeline, module Juvix.Compiler.Asm.Data.InfoTable, module Juvix.Compiler.Asm.Options, ) where import Juvix.Compiler.Asm.Data.InfoTable import Juvix.Compiler.Asm.Extra import Juvix.Compiler.Asm.Language import Juvix.Compiler.Asm.Options import ...
a064cae7b388175b983072fe3830e3a4c4d30eaacd7a098f37056ddd1298dc2a
lokedhs/maxima-client
notes.lisp
(in-package :maxima-client.notes) (clim:define-command-table notes-commands) (drei-syntax:define-syntax-command-table notes-table :errorp nil) (drei-syntax:define-syntax notes-syntax (drei-fundamental-syntax:fundamental-syntax) () (:name "Maxima notes") (:pathname-types "org") (:command-table notes-table))...
null
https://raw.githubusercontent.com/lokedhs/maxima-client/f33161bf345a9831475e6ac66004dda2f80a9e72/src/notes.lisp
lisp
(in-package :maxima-client.notes) (clim:define-command-table notes-commands) (drei-syntax:define-syntax-command-table notes-table :errorp nil) (drei-syntax:define-syntax notes-syntax (drei-fundamental-syntax:fundamental-syntax) () (:name "Maxima notes") (:pathname-types "org") (:command-table notes-table))...
3a18622990e75432c16df9ca205908d3b4a4fc90ed6e27e181f51da86cc78552
batsh-dev-team/Batsh
winbat_ast.ml
open Core_kernel type identifier = string and identifiers = identifier list and label = string and varint = [ | `Var of leftvalue | `Int of int ] and leftvalue = [ | `Identifier of identifier | `ListAccess of (leftvalue * varint) ] and arithmetic = [ | `Var of leftvalue | `Int of int | `ArithUnary o...
null
https://raw.githubusercontent.com/batsh-dev-team/Batsh/5c8ae421e0eea5dcb3da01643152ad96af941f07/lib/winbat_ast.ml
ocaml
open Core_kernel type identifier = string and identifiers = identifier list and label = string and varint = [ | `Var of leftvalue | `Int of int ] and leftvalue = [ | `Identifier of identifier | `ListAccess of (leftvalue * varint) ] and arithmetic = [ | `Var of leftvalue | `Int of int | `ArithUnary o...
c3ff9d7789aa4d7b2da72f6183f0b8c19e5a294155e00491ecc6bfb2f515bbc8
benl23x5/bmp
Error.hs
{-# OPTIONS_HADDOCK hide #-} module Codec.BMP.Error (Error(..)) where import Codec.BMP.Compression import Data.Word | Things that can go wrong when loading a BMP file . data Error -- | Magic number was not at the start of the file, so this probably is n't a BMP file . = ErrorBadMagic ...
null
https://raw.githubusercontent.com/benl23x5/bmp/1a5912f0ea586da6efc16e9de45b315369594799/Codec/BMP/Error.hs
haskell
# OPTIONS_HADDOCK hide # | Magic number was not at the start of the file, | File is too short to contain a file header. | File is too short to contain an image header. | File is too short to contain the image data. | The offset to the image data from the file header doesn't point anywhere sensible. the head...
module Codec.BMP.Error (Error(..)) where import Codec.BMP.Compression import Data.Word | Things that can go wrong when loading a BMP file . data Error so this probably is n't a BMP file . = ErrorBadMagic { errorMagic :: Word16 } | ErrorFileHeaderTruncated | E...
125a6327b6264d1cc65e7737ae5c81598843c0958ebba6de7631ca948e158a4c
informatikr/hedis
ProtocolPipelining.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # -- |A module for automatic, optimal protocol pipelining. -- -- Protocol pipelining is a technique in which multiple requests are written -- out to a single socket without waiting for the corresponding responses. -- The pipelining of requests results in...
null
https://raw.githubusercontent.com/informatikr/hedis/8b61416f44d7ae781f2cd1e4d842577971243aba/src/Database/Redis/ProtocolPipelining.hs
haskell
# LANGUAGE OverloadedStrings # |A module for automatic, optimal protocol pipelining. Protocol pipelining is a technique in which multiple requests are written out to a single socket without waiting for the corresponding responses. The pipelining of requests results in a dramatic improvement in protocol perfor...
# LANGUAGE RecordWildCards # [ Automatic Pipelining ] means that requests are implicitly pipelined as much module Database.Redis.ProtocolPipelining ( Connection, connect, enableTLS, beginReceiving, disconnect, request, send, recv, flush, fromCtx ) where import Prelude import Control.Monad i...
ee54e07b1dc5785a70298b464510a9e6bc75c59558bd55b9ae85f0f6d56b1b99
mbutterick/aoc-racket
test2.rkt
#lang reader "main.rkt" ★★ 0: 3 1: 2 4: 4 6: 4
null
https://raw.githubusercontent.com/mbutterick/aoc-racket/2c6cb2f3ad876a91a82f33ce12844f7758b969d6/2017/d13/test2.rkt
racket
#lang reader "main.rkt" ★★ 0: 3 1: 2 4: 4 6: 4
aea9cbde3c8101ecb9bae07c69318a6943dc6cc3ca79c26f4639148caf0f1a75
mzp/coq-ide-for-ios
coq_micromega.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/mzp/coq-ide-for-ios/4cdb389bbecd7cdd114666a8450ecf5b5f0391d3/coqlib/plugins/micromega/coq_micromega.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** ...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * : A reflexive tactic using ...
37bcc1152f3b9168b029e14b11f8e1ad12928ecaad4cbb547cca1a5ff7c0b742
returntocorp/semgrep
Python_to_generic.ml
* * Copyright ( C ) 2019 - 2022 r2c * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation , with the * special exception on linking described in file LICE...
null
https://raw.githubusercontent.com/returntocorp/semgrep/dcea978347df81cbc8f2c2b49b80c1980f6194cf/languages/python/generic/Python_to_generic.ml
ocaml
*************************************************************************** Prelude *************************************************************************** *************************************************************************** Types **************************************************************************...
* * Copyright ( C ) 2019 - 2022 r2c * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation , with the * special exception on linking described in file LICE...
979419042bb1be253c8011317a4f656841f4706a0e1bc228b4fc8f58bb208f32
sigscale/rim
im_statistics_server.erl
%%% im_statistics_server.erl %%% vim: ts=3 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2021 SigScale Global Inc. %%% @end 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...
null
https://raw.githubusercontent.com/sigscale/rim/f806a0c52430f86bf1d54324fd0b4b6e510aea43/src/im_statistics_server.erl
erlang
im_statistics_server.erl vim: ts=3 @end 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 Licen...
2021 SigScale Global Inc. Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(im_statistics_server). -copyright('Copyright (c) 2021 SigScale Global Inc.'). -behaviour(gen_server). -export([start_link/0]). -export([i...
a678328db7f07e4e8346e469595790ffacc8543fcabeed847c8eaed957826c74
ghcjs/ghcjs
conc029.hs
# LANGUAGE CPP # module Main where import Control.Exception import Control.Concurrent #if __GLASGOW_HASKELL__ < 705 import Prelude hiding (catch) #endif -- the BlockOnDeadMVar exception doesn't cause any output by default main = do forkIO (do m <- newEmptyMVar; takeMVar m) print (sum [1..10000])
null
https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/test/ghc/concurrent/conc029.hs
haskell
the BlockOnDeadMVar exception doesn't cause any output by default
# LANGUAGE CPP # module Main where import Control.Exception import Control.Concurrent #if __GLASGOW_HASKELL__ < 705 import Prelude hiding (catch) #endif main = do forkIO (do m <- newEmptyMVar; takeMVar m) print (sum [1..10000])
1c555f12fc60c785b73d4620d2c10fb96e296260b7fa4d5d1a300b682df096c4
Clozure/ccl-tests
subtypep-function.lsp
;-*- Mode: Lisp -*- Author : Created : We d Dec 15 21:57:44 2004 Contains : Tests of SUBTYPEP on FUNCTION types (in-package :cl-test) (compile-and-load "types-aux.lsp") (deftest subtypep-function.1 (check-all-not-subtypep t '(function (t) t)) nil) (deftest subtypep-function.2 (check-all-subty...
null
https://raw.githubusercontent.com/Clozure/ccl-tests/0478abddb34dbc16487a1975560d8d073a988060/ansi-tests/subtypep-function.lsp
lisp
-*- Mode: Lisp -*-
Author : Created : We d Dec 15 21:57:44 2004 Contains : Tests of SUBTYPEP on FUNCTION types (in-package :cl-test) (compile-and-load "types-aux.lsp") (deftest subtypep-function.1 (check-all-not-subtypep t '(function (t) t)) nil) (deftest subtypep-function.2 (check-all-subtypep nil '(function (t) t...
d1a112d557045e1c942f675f1614c7647a11197db8acebfb72b89b10e3da8222
tisnik/clojure-examples
core.clj
; ( C ) Copyright 2015 , 2020 ; ; All rights reserved. This program and the accompanying materials ; are made available under the terms of the Eclipse Public License v1.0 ; which accompanies this distribution, and is available at -v10.html ; ; Contributors: ; (ns webapp9.core (:gen-class)) ...
null
https://raw.githubusercontent.com/tisnik/clojure-examples/984af4a3e20d994b4f4989678ee1330e409fdae3/webapp9/src/webapp9/core.clj
clojure
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at Contributors:
( C ) Copyright 2015 , 2020 -v10.html (ns webapp9.core (:gen-class)) (require '[ring.adapter.jetty :as jetty]) (require '[ring.middleware.params :as http-params]) (require '[ring.middleware.session :as http-session]) (require '[ring.util.response :as response]) (def html-page " <...
32dd482dce6291c8da4587a8751365b91f6b49dcd7906bfdd256a13441d703c0
ghc/hsc2hs
ResponseFile.hs
# LANGUAGE CPP # # LANGUAGE ScopedTypeVariables # -- taken from base-4.12.0.0's "GHC.ResponseFile" module Compat.ResponseFile ( getArgsWithResponseFiles ) where #if MIN_VERSION_base(4,12,0) import GHC.ResponseFile (getArgsWithResponseFiles) #else import Control.Exception imp...
null
https://raw.githubusercontent.com/ghc/hsc2hs/0b44990f0282755b75091838363ad4a1f4cb245d/Compat/ResponseFile.hs
haskell
taken from base-4.12.0.0's "GHC.ResponseFile" one 1 'two ' 2 "three " 3 one 1 'two' 2 "three" 3 | Given a string of concatenated strings, separate each by removing a layer of /quoting/ and\/or /escaping/ of certain characters. These characters are: any whitespace, single quote, double quote, and the backslash ...
# LANGUAGE CPP # # LANGUAGE ScopedTypeVariables # module Compat.ResponseFile ( getArgsWithResponseFiles ) where #if MIN_VERSION_base(4,12,0) import GHC.ResponseFile (getArgsWithResponseFiles) #else import Control.Exception import Data.Char (isSpace) import...
5b2ae1ed2b10e5ae37ee438c1f244ffe4c4e97c1a2401320306657b21cd6aa81
norvig/paip-lisp
othello2.lisp
;;;; -*- Mode: Lisp; Syntax: Common-Lisp -*- Code from Paradigms of AI Programming Copyright ( c ) 1991 ;;;; File othello2.lisp: More strategies for othello.lisp, from section 18.9 onward ( alpha - beta2 , alpha - beta3 , iago ) . If a compiled version of edge-table.lisp exists , then merely ;;;; load it af...
null
https://raw.githubusercontent.com/norvig/paip-lisp/9d3b83bdae923299aac3132dc4d8540fd57e347f/lisp/othello2.lisp
lisp
-*- Mode: Lisp; Syntax: Common-Lisp -*- File othello2.lisp: More strategies for othello.lisp, load it after you load this file. Otherwise, load this file, evaluate (init-edge-table) (this will take a really long time), future use. player's current mobility player's potential mobility Do the indexes with most ...
Code from Paradigms of AI Programming Copyright ( c ) 1991 from section 18.9 onward ( alpha - beta2 , alpha - beta3 , iago ) . If a compiled version of edge-table.lisp exists , then merely then compile edge-table.lisp . This will save the edge - table for (requires "othello") (defconstant all-squares ...
b050e8a54283b23d5448d07f52d5b216248e9614d25a25eab67c97bb204019f8
armedbear/abcl
define-api.lisp
(in-package :named-readtables) (defmacro define-api (name lambda-list type-list &body body) (flet ((parse-type-list (type-list) (let ((pos (position '=> type-list))) (assert pos () "You forgot to specify return type (`=>' missing.)") (values (subseq type-list 0 pos) ...
null
https://raw.githubusercontent.com/armedbear/abcl/36a4b5994227d768882ff6458b3df9f79caac664/contrib/named-readtables/src/define-api.lisp
lisp
Muffle the annoying "&OPTIONAL and &KEY found in the same lambda list" style-warning assertion and will insert type checks for us. CHECK-TYPE required parameters CHECK-TYPE optional parameters CHECK-TYPE rest parameter CHECK-TYPE key parameters
(in-package :named-readtables) (defmacro define-api (name lambda-list type-list &body body) (flet ((parse-type-list (type-list) (let ((pos (position '=> type-list))) (assert pos () "You forgot to specify return type (`=>' missing.)") (values (subseq type-list 0 pos) ...
7508ce2dbaa49a98c80202314e6b5373ffb9b1e93fa4a120bf214a6182a5d38c
rubenbarroso/EOPL
3_64.scm
(load "/Users/ruben/Dropbox/EOPL/src/interps/r5rs.scm") (load "/Users/ruben/Dropbox/EOPL/src/interps/define-datatype.scm") (load "/Users/ruben/Dropbox/EOPL/src/interps/sllgen.scm") (load "/Users/ruben/Dropbox/EOPL/src/interps/3-9.scm") ;Showing only the changes required to support variable initializers ;in the block s...
null
https://raw.githubusercontent.com/rubenbarroso/EOPL/f9b3c03c2fcbaddf64694ee3243d54be95bfe31d/src/chapter3/3_64.scm
scheme
Showing only the changes required to support variable initializers in the block statements. allow variables to be initialized Tests > (run #t The solution does not include in the scope of a variable the initializers of variables declared later in the same block statement because these could lead to circular dependenc...
(load "/Users/ruben/Dropbox/EOPL/src/interps/r5rs.scm") (load "/Users/ruben/Dropbox/EOPL/src/interps/define-datatype.scm") (load "/Users/ruben/Dropbox/EOPL/src/interps/sllgen.scm") (load "/Users/ruben/Dropbox/EOPL/src/interps/3-9.scm") (define the-grammar '((program (statement) a-program) (statemen...
86279702bdfa77e6e45231b9aa40559bc8d279c8de957a6caa572ae1adf82d39
ruedigergad/bowerick
websocket.clj
;;; Copyright 2016 , ;;; This software is released under the terms of the Eclipse Public License ( EPL ) 1.0 . You can find a copy of the EPL at : ;;; -1.0.php ;;; (ns ^{:author "Ruediger Gad", :doc "Tests for JMS Interaction via Websockets"} bowerick.test.websocket (:require [bowerick...
null
https://raw.githubusercontent.com/ruedigergad/bowerick/80b48ebec19f5f9a225d4cf43eb9b484c5f98afa/test/bowerick/test/websocket.clj
clojure
-1.0.php (test/deftest openwire-to-websocket-string-test (let [producer (jms/create-producer url-openwire test-topic) received (atom nil) flag (utils/prepare-flag) consume-fn (fn [obj] (reset! received obj) (utils/set-flag flag)) consumer (jms/create-consumer url-websocket test-t...
Copyright 2016 , This software is released under the terms of the Eclipse Public License ( EPL ) 1.0 . You can find a copy of the EPL at : (ns ^{:author "Ruediger Gad", :doc "Tests for JMS Interaction via Websockets"} bowerick.test.websocket (:require [bowerick.jms :as jms] [bowerick...
91abfb3dec802ddd63a055149524cf97837b04e0fd388c82c4e08d3bc8fc0dc3
mbutterick/aoc-racket
day15.rkt
#lang scribble/lp2 @(require scribble/manual aoc-racket/helper) @aoc-title[15] @defmodule[aoc-racket/day15] @link[""]{The puzzle}. Our @link-rp["day15-input.txt"]{input} is a list of four cookie ingredients. Each ingredient has scores for capacity, durability, flavor, texture, and calories in each teaspoon. @chunk[...
null
https://raw.githubusercontent.com/mbutterick/aoc-racket/2c6cb2f3ad876a91a82f33ce12844f7758b969d6/day15.rkt
racket
#lang scribble/lp2 @(require scribble/manual aoc-racket/helper) @aoc-title[15] @defmodule[aoc-racket/day15] @link[""]{The puzzle}. Our @link-rp["day15-input.txt"]{input} is a list of four cookie ingredients. Each ingredient has scores for capacity, durability, flavor, texture, and calories in each teaspoon. @chunk[...
5df98240a87625ef3654f5dd03ead89627ec6350f4d32332029582aa7aea0dcb
project-oak/hafnium-verification
SqliteUtils.ml
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
null
https://raw.githubusercontent.com/project-oak/hafnium-verification/6071eff162148e4d25a0fedaea003addac242ace/experiments/ownership-inference/infer/infer/src/base/SqliteUtils.ml
ocaml
Call [check_result_code] with [fatal:true] and catch exceptions to rewrite the error message. This avoids allocating the error string when not needed. the operation returned a result, get it If the serialized data is used for comparison (e.g. used in WHERE clause), we need to normalize it. Marshalling is b...
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
288d66cabafb3a5fbd4ce12d9289027534a40aa67360990041200a07b5810ca7
erlangonrails/devdb
kai.erl
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of % the License at % % -2.0 % % Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an ...
null
https://raw.githubusercontent.com/erlangonrails/devdb/0e7eaa6bd810ec3892bfc3d933439560620d0941/dev/kai-0.4.0/src/kai.erl
erlang
the License at -2.0 Unless required by applicable law or agreed to in writing, software WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
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 distributed under the License is distributed on an " AS IS " BASIS , WITHOUT -module(kai). -behaviour(application). -export([start/2, stop/1]). -expo...
e3b7cc65fe202d751d09202c9b8ecd193c5e97cc4dc1112374f7db0a17285c28
infinitelives/infinitelives.pixi
core.cljs
(ns basic.core (:require [infinitelives.pixi.canvas :as c] [infinitelives.pixi.events :as e] [infinitelives.pixi.resources :as r] [infinitelives.pixi.texture :as t] [infinitelives.pixi.sprite :as s] [cljs.core.async :refer [<!]]) (:require-ma...
null
https://raw.githubusercontent.com/infinitelives/infinitelives.pixi/877bd247f2bae327bc3a3bd70162a7880de9a0c7/examples/basic/src/basic/core.cljs
clojure
(ns basic.core (:require [infinitelives.pixi.canvas :as c] [infinitelives.pixi.events :as e] [infinitelives.pixi.resources :as r] [infinitelives.pixi.texture :as t] [infinitelives.pixi.sprite :as s] [cljs.core.async :refer [<!]]) (:require-ma...
f1571cac5f78c221fcd661b993643f8853652cb1b21fc5d87f1ac448fa9c96a6
martijnbastiaan/doctest-parallel
Foo.hs
-- | Some documentation module Foo where foo :: Int foo = 23
null
https://raw.githubusercontent.com/martijnbastiaan/doctest-parallel/f70d6a1c946cc0ada88571b90a39a7cd4d065452/test/extract/module-header/Foo.hs
haskell
| Some documentation
module Foo where foo :: Int foo = 23
71db9af37fa8a85827ff2e49f1e9ebb7c4101175d47f844cf08f152167debb45
waldheinz/bling
IntegratorParser.hs
module Graphics.Bling.IO.IntegratorParser ( pSurfaceIntegrator, defaultSurfaceIntegrator ) where import Graphics.Bling.Integrator import Graphics.Bling.Integrator.BidirPath import Graphics.Bling.Integrator.Debug import Graphics.Bling.Integrator.DirectLighting import Graphics.Bling.Integrator.Path import Graphic...
null
https://raw.githubusercontent.com/waldheinz/bling/1f338f4b8dbd6a2708cb10787f4a2ac55f66d5a8/src/lib/Graphics/Bling/IO/IntegratorParser.hs
haskell
module Graphics.Bling.IO.IntegratorParser ( pSurfaceIntegrator, defaultSurfaceIntegrator ) where import Graphics.Bling.Integrator import Graphics.Bling.Integrator.BidirPath import Graphics.Bling.Integrator.Debug import Graphics.Bling.Integrator.DirectLighting import Graphics.Bling.Integrator.Path import Graphic...
2634ccac0fd56bd3e37f23d2ef38c0844119c80e68c3bd0657d95fa569df457c
ublubu/shapes
Scenes.hs
# LANGUAGE TypeFamilies # module Physics.Demo.Scenes where import Control.Monad.ST import Physics.Scenes.Scene import Utils.Utils (posMod) import qualified Physics.Scenes.Balls as S4 import qualified Physics.Scenes.FourBoxesTwoStatic as S1 import qualif...
null
https://raw.githubusercontent.com/ublubu/shapes/fa5d959c17224a851d517826deeae097f1583392/shapes-demo/src/Physics/Demo/Scenes.hs
haskell
# LANGUAGE TypeFamilies # module Physics.Demo.Scenes where import Control.Monad.ST import Physics.Scenes.Scene import Utils.Utils (posMod) import qualified Physics.Scenes.Balls as S4 import qualified Physics.Scenes.FourBoxesTwoStatic as S1 import qualif...
820df69c806c2202d4c747f00a9479187bbaaf0221d27122c6bc73fad315ed9d
Mathieu-Desrochers/Schemings
hash-intern.scm
(import srfi-69) (declare (unit hash-intern)) ;; hashes elements by a unique key (: hash-by-unique-key-intern (forall (k e) ( (list-of e) (e -> k) (e -> *) (k k -> boolean) (k -> *) -> hash-table))) (define (hash-by-unique-key-intern elements element-key-procedure element-value-pro...
null
https://raw.githubusercontent.com/Mathieu-Desrochers/Schemings/3df7c8f8589a1c9c4135a3ae4c1bab3244e6444c/sources/units/hash-intern.scm
scheme
hashes elements by a unique key make the hash table hash the elements hashes elements by a shared key make the hash table hash the elements reverse the hashed elements into their original order
(import srfi-69) (declare (unit hash-intern)) (: hash-by-unique-key-intern (forall (k e) ( (list-of e) (e -> k) (e -> *) (k k -> boolean) (k -> *) -> hash-table))) (define (hash-by-unique-key-intern elements element-key-procedure element-value-procedure test-procedure ...
16f5b2abf7297edd863534960b6dbf033ef06bd6cfe9c9eb288fd1322ac3310e
dongcarl/guix
deprecation.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2019 , 2020 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 3 of t...
null
https://raw.githubusercontent.com/dongcarl/guix/82543e9649da2da9a5285ede4ec4f718fd740fcb/guix/deprecation.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 © 2019 , 2020 < > 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 deprecation) #:use-module (guix i18n) #:use-module (guix diagnostics) #:autoload...
bc369af4614735e5389318e13974e346ae354380af127a949efc257a6bc4f4dc
Mayvenn/storefront
product_card.cljc
(ns catalog.ui.product-card (:require catalog.keypaths [catalog.facets :as facets] [spice.selector :as selector] [storefront.accessors.skus :as skus] [storefront.accessors.images :as images] [storefront.components.money-formatters :as mf] [storef...
null
https://raw.githubusercontent.com/Mayvenn/storefront/178bfe03cfba3cc3d0f778ade227e9abf70580bd/src-cljc/catalog/ui/product_card.cljc
clojure
TODO: better display-decision id TODO: when adding aspect ratio, also use srcset/sizes to scale these images. :margin "5px 5px"
(ns catalog.ui.product-card (:require catalog.keypaths [catalog.facets :as facets] [spice.selector :as selector] [storefront.accessors.skus :as skus] [storefront.accessors.images :as images] [storefront.components.money-formatters :as mf] [storef...
244ccabf40098929fe2884f8f25adabcbc01fe4fd6a4c795ae1a62a17ebdd798
keigoi/ocaml-mpst
unicast.mli
open BasicCombinators type 's select = 's ActionOut.select type 's branch = 's ActionInp.branch type ('v, 's) out = ('v, 's) ActionOut.out type ('v, 's) inp = ('v, 's) ActionInp.inp type chan val select : 'a select -> 'a val branch : 'a branch -> 'a val send : ('v, 'a) out -> 'v -> 'a val receive : ('v, 'a) inp -> 'v...
null
https://raw.githubusercontent.com/keigoi/ocaml-mpst/aa6c5fa2b08c4596f41f70dee8601da6a9c80b8f/lib/unicast/unicast.mli
ocaml
open BasicCombinators type 's select = 's ActionOut.select type 's branch = 's ActionInp.branch type ('v, 's) out = ('v, 's) ActionOut.out type ('v, 's) inp = ('v, 's) ActionInp.inp type chan val select : 'a select -> 'a val branch : 'a branch -> 'a val send : ('v, 'a) out -> 'v -> 'a val receive : ('v, 'a) inp -> 'v...
4093b5194ddacba86120b85f4bbbf496cbe79d9c6dd308e2e4cee478a89aa83f
PacktPublishing/Haskell-High-Performance-Programming
class_performance.hs
class Some a where next :: a -> a -> a instance Some Double where next a b = (a + b) / 2 goGeneral :: Some a => Int -> a -> a goGeneral 0 x = x goGeneral n x = goGeneral (n-1) (next x x) goSpecialized :: Int -> Double -> Double goSpecialized 0 x = x goSpecialized n x = goSpecialized (n-1) (next' x x) next'...
null
https://raw.githubusercontent.com/PacktPublishing/Haskell-High-Performance-Programming/2b1bfdb8102129be41e8d79c7e9caf12100c5556/Chapter01/class_performance.hs
haskell
class Some a where next :: a -> a -> a instance Some Double where next a b = (a + b) / 2 goGeneral :: Some a => Int -> a -> a goGeneral 0 x = x goGeneral n x = goGeneral (n-1) (next x x) goSpecialized :: Int -> Double -> Double goSpecialized 0 x = x goSpecialized n x = goSpecialized (n-1) (next' x x) next'...
ca104dd75b6c39bc8cae45a09c07de68addb68d6d6eaa280fe3dccec9d937bb6
utdemir/distributed-dataset
Local.hs
module Control.Distributed.Fork.Local where import Control.Distributed.Fork.Backend import qualified Data.ByteString.Lazy as BL import System.Process.Typed -- | -- A 'Backend' which uses local processes as executors. Useful for testing. localProcessBackend :: Backend localProcessBackend = Backend $ \stdin' -> do ...
null
https://raw.githubusercontent.com/utdemir/distributed-dataset/a582a96e541884580e66bc5d87b4d498c8d58182/distributed-dataset/src/Control/Distributed/Fork/Local.hs
haskell
| A 'Backend' which uses local processes as executors. Useful for testing.
module Control.Distributed.Fork.Local where import Control.Distributed.Fork.Backend import qualified Data.ByteString.Lazy as BL import System.Process.Typed localProcessBackend :: Backend localProcessBackend = Backend $ \stdin' -> do executable <- liftIO getExecutablePath let conf = setStdin (byteS...
17eede1641abe8d220d7dc07162bb496a767b471b663fc17998185cbcb558b7d
footprintanalytics/footprint-web
filters.clj
(ns metabase.automagic-dashboards.filters (:require [metabase.mbql.normalize :as mbql.normalize] [metabase.mbql.schema :as mbql.s] [metabase.mbql.util :as mbql.u] [metabase.models.field :as field :refer [Field]] [metabase.util :as u] [metabase.util.date-2 :a...
null
https://raw.githubusercontent.com/footprintanalytics/footprint-web/d3090d943dd9fcea493c236f79e7ef8a36ae17fc/src/metabase/automagic_dashboards/filters.clj
clojure
Only add filters that apply to all cards. since the filters are programatically generated they won't have passed thru normalization, so make sure we normalize them before passing them to `combine-filter-clauses`, which validates its input
(ns metabase.automagic-dashboards.filters (:require [metabase.mbql.normalize :as mbql.normalize] [metabase.mbql.schema :as mbql.s] [metabase.mbql.util :as mbql.u] [metabase.models.field :as field :refer [Field]] [metabase.util :as u] [metabase.util.date-2 :a...
e058a31cac2073fd103e3628998bfb83f094c1f1a5b908ec510d4011498c24ee
rd--/hsc3
rTracePlay.help.hs
-- rTracePlay ; traverse a diamond in equal time increments let t = [0,-1,1/4,0, 1/4,0,1/2,0, 1/2,1,1/4,0, 3/4,0,0,0, 1,-1,1/4,0] b = asLocalBufId 'α' t o = sinOsc ar 440 0 * 0.1 l = X.rTracePlay kr b 4 (mouseX kr 1 20 Linear 0.1) 1 in pan2 o l 1 rTracePlay ; X of trace is ( -1 0 1 0 -1 ) ; Y is ( 1/4 1/...
null
https://raw.githubusercontent.com/rd--/hsc3/60cb422f0e2049f00b7e15076b2667b85ad8f638/Help/Ugen/rTracePlay.help.hs
haskell
rTracePlay ; traverse a diamond in equal time increments -- Play a buffer that is arranged as a trace. A trace is a sequence of tuples (T,X,Y,Z).
let t = [0,-1,1/4,0, 1/4,0,1/2,0, 1/2,1,1/4,0, 3/4,0,0,0, 1,-1,1/4,0] b = asLocalBufId 'α' t o = sinOsc ar 440 0 * 0.1 l = X.rTracePlay kr b 4 (mouseX kr 1 20 Linear 0.1) 1 in pan2 o l 1 rTracePlay ; X of trace is ( -1 0 1 0 -1 ) ; Y is ( 1/4 1/2 1/4 0 1/4 ) let t = [0,-1,1/4,0, 1/4,0,1/2,0, 1/2,1,1/4,0,...
1eb1901616d7af822d6fab172eae8a45a12ccf333158560bc6df2b284720455f
tokenrove/imago
package.lisp
(defpackage imago-tests (:use #:cl #:imago #:fiveam) (:export #:run-tests))
null
https://raw.githubusercontent.com/tokenrove/imago/9b06d5cb0d12da4d75f8d9570c76ab3001c68e57/tests/package.lisp
lisp
(defpackage imago-tests (:use #:cl #:imago #:fiveam) (:export #:run-tests))
143f40a01300b4f2f31be63cb3fd6945ca3df33929923b492ccc4fb586986f06
gadfly361/reagent-figwheel
comp.cljs
(ns {{ns-name}}.pages.not-found.comps.header.comp (:require [{{ns-name}}.models.app.il8n.model :as il8n-model])) (def english {:title "Not Found Page"}) (def chinese {:title "未找到页面"}) (def texts {:en english :zh chinese}) (defn title [app-state texts language-code] [:h1 (get-in texts [language-code :ti...
null
https://raw.githubusercontent.com/gadfly361/reagent-figwheel/4c40657b31a2b358be5697add2e96e8cac6f8535/src/leiningen/new/reagent_figwheel/gadfly/src/app/pages/not_found/comps/header/comp.cljs
clojure
(ns {{ns-name}}.pages.not-found.comps.header.comp (:require [{{ns-name}}.models.app.il8n.model :as il8n-model])) (def english {:title "Not Found Page"}) (def chinese {:title "未找到页面"}) (def texts {:en english :zh chinese}) (defn title [app-state texts language-code] [:h1 (get-in texts [language-code :ti...
ebd20110c53dfb635a782560871f36a508f197e67a8cf8348082baa8b8dec108
ianmbloom/gudni
GudniTests.hs
# LANGUAGE TemplateHaskell # module GudniTests ( BenchmarkState(..) , initialModel , stateBase , stateCursor , statePictureMap , stateTests , stateCurrentTest , stateFrameNumber , testList ) where import Graphics.Gudni.Interface import Graphics.Gudni.Interface.BasicSceneState import Graphics.Gudni.Figure i...
null
https://raw.githubusercontent.com/ianmbloom/gudni/fa69f1bf08c194effca05753afe5455ebae51234/benchmarks/GudniTests.hs
haskell
0.02094 @@ rad -- 0 @@ turn-- quarterTurn 0 - 10 - 11 - 12 - 13 - 14 - 15 - 16 - 17 - 18 - 19 - 20 - 21 - 25 - 27 - 28 - 29 - 30 - 31 - subpixel geometry. | A fuzz test of random curves where the random points are all within a donut shape. | A basic fuzz test of random curves contained in a rect...
# LANGUAGE TemplateHaskell # module GudniTests ( BenchmarkState(..) , initialModel , stateBase , stateCursor , statePictureMap , stateTests , stateCurrentTest , stateFrameNumber , testList ) where import Graphics.Gudni.Interface import Graphics.Gudni.Interface.BasicSceneState import Graphics.Gudni.Figure i...
f53dfc0b9c1250db01bbad552fd4c4df432820ff4f361b8aa686aab107f00a1a
TerrorJack/ghc-alter
echo001.hs
module Main(main) where import System.IO import Data.Char main = do isT <- hIsTerminalDevice stdin flg <- if not isT then return False else hGetEcho stdin print flg if not isT then hSetEcho stdin False else return () hSetBuffering stdin NoBuffering interact (map toUpper)
null
https://raw.githubusercontent.com/TerrorJack/ghc-alter/db736f34095eef416b7e077f9b26fc03aa78c311/ghc-alter/boot-lib/base/tests/echo001.hs
haskell
module Main(main) where import System.IO import Data.Char main = do isT <- hIsTerminalDevice stdin flg <- if not isT then return False else hGetEcho stdin print flg if not isT then hSetEcho stdin False else return () hSetBuffering stdin NoBuffering interact (map toUpper)