_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
1f4504a391698399c2759fff4bc577abf073ecc00ea67f01a03f7557e35c9bb7
linuxscout/festival-tts-arabic-voices
build_prosody.scm
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Carnegie Mellon University ; ; ; and and ; ; ; Copyright ( c ) 1998 - 2000 ...
null
https://raw.githubusercontent.com/linuxscout/festival-tts-arabic-voices/ab9fe26120bf6cf3079afa2484b985cfd6ecd56a/voices/ara_norm_ziad_hts/festvox/build_prosody.scm
scheme
;;; ; ; ; ; ; ; ; ; ;;; Permission is hereby granted, free of charge, to use and distribute ;;; this software and its documentation without restriction, including ;;; withou...
(defvar feat_float_types '(segment_duration lisp_zscore_dur R:SylStructure.parent.syl_onsetsize R:SylStructure.parent.syl_codasize R:SylStructure.parent.R:Syllable.n.syl_onsetsize R:SylStructure.parent.R:Syllable.p.syl_codasize R:SylStructure.parent.parent.word_numsyls pos_in_syl R:...
21a40e1175b6dbc3cbe7096b2e91b76a806c8f01b9eb5060fd2ec05b666f1536
fraimondi/racket-asip
AsipTestBlink3.rkt
#lang racket/base (require "AsipMain.rkt") A simple example with 3 LEDs in a loop (define led1 11) (define led2 12) (define led3 13) (define setup (λ () (open-asip) Setting 3 pins to OUTPUT_MODE (set-pin-mode led1 OUTPUT_MODE) (set-pin-mode led2 OUTPUT_MODE) (set-pin-mode led3 OUTPUT_MODE) ...
null
https://raw.githubusercontent.com/fraimondi/racket-asip/27c67c7d5ce9537ad38cba1da03402b97cc7a7c5/AsipTestBlink3.rkt
racket
end of lambda end of setup
#lang racket/base (require "AsipMain.rkt") A simple example with 3 LEDs in a loop (define led1 11) (define led2 12) (define led3 13) (define setup (λ () (open-asip) Setting 3 pins to OUTPUT_MODE (set-pin-mode led1 OUTPUT_MODE) (set-pin-mode led2 OUTPUT_MODE) (set-pin-mode led3 OUTPUT_MODE) ...
d09406affca21123acc74a45dd833a16cfedb84e57f6830e54238a222d12388c
fetburner/Coq2SML
classops.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/fetburner/Coq2SML/322d613619edbb62edafa999bff24b1993f37612/coq-8.4pl4/pretyping/classops.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * This is the type of infos for decl...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Names open Decl_kinds op...
2d6081fb54022f9e6548de1ef3c1f16521740f2a09f728b88dae47430f9f76d0
Compositional/reflex-servant
Product.hs
{-# LANGUAGE ConstraintKinds #-} # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE PolyKinds # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # -- | Some product types to choose f...
null
https://raw.githubusercontent.com/Compositional/reflex-servant/ab29626d9643ede881572c35b8ae08f93cefe1d7/src/Reflex/Servant/Internal/Product.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE RankNTypes # | Some product types to choose from >>> example Fish False :<|> True >>> example Tuple (False, True) (False, (True, ())) ts: Cons a b | Nil ---------------------------------------------------------------------- ---------------------------...
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE PolyKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # > > > example = ( \cfg - > productCons cfg ( Proxy : : Proxy ( Cons ) ) False $ productC...
585cd696f310a6e170fa2562f887949bab5a1e80650562810b6ea0681b11a7be
lspitzner/brittany
Test201.hs
instance MyClass Int where type MyType = String myMethod :: MyType -> Int myMethod x = x + 1 type MyType = Int
null
https://raw.githubusercontent.com/lspitzner/brittany/a15eed5f3608bf1fa7084fcf008c6ecb79542562/data/Test201.hs
haskell
instance MyClass Int where type MyType = String myMethod :: MyType -> Int myMethod x = x + 1 type MyType = Int
000febb402c3914543a3ff035c39faf7177f49255ce1ceabf3c4686fd4103791
helium/blockchain-node
helium_follower_service.erl
%%%------------------------------------------------------------------- %% Handler module for the follower service 's streaming API / RPC %% %%%------------------------------------------------------------------- -module(helium_follower_service). -behaviour(helium_follower_follower_bhvr). -include("grpc/autogen/serve...
null
https://raw.githubusercontent.com/helium/blockchain-node/6e7b470ffd2622be867e9002da99bbdc7cefb80a/src/helium_follower_service.erl
erlang
------------------------------------------------------------------- ------------------------------------------------------------------- ------------------------------------------------------------------- ------------------------------------------------------------------- we dont need region params in the active gw...
Handler module for the follower service 's streaming API / RPC -module(helium_follower_service). -behaviour(helium_follower_follower_bhvr). -include("grpc/autogen/server/follower_pb.hrl"). -include_lib("blockchain/include/blockchain.hrl"). -include_lib("blockchain/include/blockchain_vars.hrl"). -export([ ...
b7727603a4500bc88e8be2e04d58429a4e63a3a55e341646b92e8acef4cda021
clojurians-org/haskell-example
Class.hs
module Class where import Types import Control.Applicative (empty) import Data.Aeson (Value(Object, String, Number), (.:), (.:?), (.=), FromJSON, ToJSON, object) import qualified Data.Aeson as J instance FromJSON Contact where parseJSON (Object v) = do userName <- v .: "UserName" nickName <- v .: "NickName"...
null
https://raw.githubusercontent.com/clojurians-org/haskell-example/c96b021bdef52a121e04ea203c8c3e458770a25a/hweixin/app/Class.hs
haskell
module Class where import Types import Control.Applicative (empty) import Data.Aeson (Value(Object, String, Number), (.:), (.:?), (.=), FromJSON, ToJSON, object) import qualified Data.Aeson as J instance FromJSON Contact where parseJSON (Object v) = do userName <- v .: "UserName" nickName <- v .: "NickName"...
d394ecbaca4c77a48a75d298eeea06f78b13dbe412146369e4ff37571a2e2743
russmatney/ralphie
clipboard.clj
(ns ralphie.clipboard (:require [clojure.string :as string] [babashka.process :as p] [clojure.java.shell :as sh])) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Read the clipboard ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (defn ge...
null
https://raw.githubusercontent.com/russmatney/ralphie/3b7af4a9ec2dc2b9e59036d67a66f365691f171d/src/ralphie/clipboard.clj
clojure
Read the clipboard :buffer-cut (get-clip "buffer-cut") Write to the clipboard
(ns ralphie.clipboard (:require [clojure.string :as string] [babashka.process :as p] [clojure.java.shell :as sh])) (defn get-clip [clipboard-name] (-> (sh/sh "xclip" "-o" "-selection" clipboard-name) :out)) (defn get-all "Returns a list of things on available clipboards." [] {:clipboard (get...
027f730b5af58aa0c793d560144c1b29de02e4f9fc7bf2d53577c845d19eeca5
ml4tp/tcoq
subtyping.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/ml4tp/tcoq/7a78c31df480fba721648f277ab0783229c8bece/kernel/subtyping.mli
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 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Univ open Declarations o...
7c7c6cf019aa1c5c778f123cc7fd2572857e8b463b22198f5412e512f06ab95b
equill/restagraph
utilities.lisp
Copyright 2020 < > ; Licensed under the GNU General Public License - for details , see LICENSE.txt in the top - level directory (in-package #:restagraph) (declaim (optimize (compilation-speed 0) (speed 2) (safety 3) (debug 3))) ;;; Utility func...
null
https://raw.githubusercontent.com/equill/restagraph/b6a135cdd212ec94d5ad7e06af8c95f82c272f12/src/utilities.lisp
lisp
Utility functions # \= ) ) Design-decision note - Replace unfriendly characters with something neutral, like an underscore. - Remove unfriendly characters altogether. For almost all cases, replacing them will make for a crappy-looking URL with very little gain. However, preserving some kind of separation betw...
Copyright 2020 < > Licensed under the GNU General Public License - for details , see LICENSE.txt in the top - level directory (in-package #:restagraph) (declaim (optimize (compilation-speed 0) (speed 2) (safety 3) (debug 3))) Handy reference...
60ee81db2d499cdd99400ea454e39b6c21db18870203ef3a33b6a4f9ebfca63b
manuel-serrano/bigloo
server.scm
;*=====================================================================*/ * ... /prgm / project / bigloo / bigloo / api / mqtt / src / Llib / server.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/16e397e187fa85d8949a0285bfb43d4ab4ed8839/api/mqtt/src/Llib/server.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * MQTT server side */ *===========================...
* ... /prgm / project / bigloo / bigloo / api / mqtt / src / Llib / server.scm * / * Author : * / * Creation : Sun Mar 13 06:41:15 2022 * / * Last change : We d Apr 27 18:06:08 2022 ( serrano ) * / * ...
20940a8188eecd731bfa95cf66234e342c3dd77304956aa081c3ef2d693159c0
tebeka/popen
popen.clj
(ns ^{:doc "Subprocess library" :author "Miki Tebeka <>"} popen (:require [clojure.java.io :as io])) (defn popen "Open a sub process, return the subprocess args - List of command line arguments :redirect - Redirect stderr to stdout :dir - Set initial directory :env - Set environment variables" [...
null
https://raw.githubusercontent.com/tebeka/popen/91cc8b16426e2db025c361888a8b9322e37808d9/src/popen.clj
clojure
(ns ^{:doc "Subprocess library" :author "Miki Tebeka <>"} popen (:require [clojure.java.io :as io])) (defn popen "Open a sub process, return the subprocess args - List of command line arguments :redirect - Redirect stderr to stdout :dir - Set initial directory :env - Set environment variables" [...
8d7df251ebfecb8c63823c64b35e2ac6a3a79f50745d07f93d16d10164edbc05
zenunomacedo/Tetris
types.hs
module Types where import Graphics.UI.GLUT (GLfloat) import GHC.IO.Handle (Handle) import System.Random type Lado = GLfloat type Centro = (GLfloat, GLfloat) type Linha = [Piece] type Grelha = [Linha] type Falling = (Char, Colour, [(Int, Int)]) data Piece = Piece Colour | Empty deriving (Eq, Show, Read) data Everythin...
null
https://raw.githubusercontent.com/zenunomacedo/Tetris/2b9c660bb79001d553b592d80aa75dbb191b5baf/Tetris/types.hs
haskell
module Types where import Graphics.UI.GLUT (GLfloat) import GHC.IO.Handle (Handle) import System.Random type Lado = GLfloat type Centro = (GLfloat, GLfloat) type Linha = [Piece] type Grelha = [Linha] type Falling = (Char, Colour, [(Int, Int)]) data Piece = Piece Colour | Empty deriving (Eq, Show, Read) data Everythin...
707127ef89222b378e9d15a4f94d7ec3b586cdd803a5a849b54602dc7c9b3b38
puppetlabs/pcp-broker
server.clj
(ns puppetlabs.pcp.testutils.server (:require [puppetlabs.experimental.websockets.client :as websockets-client] [puppetlabs.trapperkeeper.core :as trapperkeeper] [puppetlabs.trapperkeeper.services :refer [service-context]] [puppetlabs.trapperkeeper.services.scheduler.scheduler-serv...
null
https://raw.githubusercontent.com/puppetlabs/pcp-broker/7806c6a6045c406c256b2c9d6129382923ba3d03/test/utils/puppetlabs/pcp/testutils/server.clj
clojure
These handlers exist to be redefined. Close may encounter a null pointer if the underlying session has already closed. TODO: this pause is necessary to allow a successful reconnection from the broker. We need to understand why and eliminate the problem. This is covered in PCP-720.
(ns puppetlabs.pcp.testutils.server (:require [puppetlabs.experimental.websockets.client :as websockets-client] [puppetlabs.trapperkeeper.core :as trapperkeeper] [puppetlabs.trapperkeeper.services :refer [service-context]] [puppetlabs.trapperkeeper.services.scheduler.scheduler-serv...
73867f7f958ce04e2bfa08a71454be2cbc48443ae90d0c60aa2fca5fe80e0cb2
mclumd/Meta-AQUA
unify.lisp
;;;-*- Mode: Lisp; Package: NONLIN -*- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;; Application : NONLIN Appl . Version : 1.3 Appl . Date : Oct. 1992 ;;;; ;;;; File: UNIFY.LISP ;;;; Contents: Unification routines. ;;;; ...
null
https://raw.githubusercontent.com/mclumd/Meta-AQUA/e4d4f83330fd07d1354aec245a49bde9e246c618/Nonlin/unify.lisp
lisp
-*- Mode: Lisp; Package: NONLIN -*- File: UNIFY.LISP Contents: Unification routines. email: History: Date Who Modification --------------------------------------------------------------------------------- this wont be used unless we are doing ...
Application : NONLIN Appl . Version : 1.3 Appl . Date : Oct. 1992 Dept . of Computer Science , University of Maryland at College Park Language : Macintosh Common Lisp 2.0 Requirements : package NONLIN (in-package :nonlin) From Charniak & McDermot...
3030b1e3175eaec0aa450c57aa1436fcd9aa21b9ba8befd6d37c1d8f35ec1611
dongcarl/guix
kerberos.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2012 , 2013 < > Copyright © 2014 , 2015 , 2016 < > Copyright © 2016 , 2017 < > Copyright © 2016 < > Copyright © 2012 , 2013 < > Copyright © 2012 , 2017 < > Copyright © 2017 , 2019 < > Copyright © 2018 < > Cop...
null
https://raw.githubusercontent.com/dongcarl/guix/82543e9649da2da9a5285ede4ec4f718fd740fcb/gnu/packages/kerberos.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 < > Copyright © 2014 , 2015 , 2016 < > Copyright © 2016 , 2017 < > Copyright © 2016 < > Copyright © 2012 , 2013 < > Copyright © 2012 , 2017 < > Copyright © 2017 , 2019 < > Copyright © 2018 < > Copyright © 2017 < > Copyright © 2019 < > Copyri...
131eb319623f014c0a7a33b563f68920f05e9aaf6301abc9f0330c0c1c5db13f
facebook/flow
flow.ml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/flow/6f944d973c81cdc8df8433b3a2f861b1f14c302e/src/flow.ml
ocaml
********************************************************************* flow shell is just a simple command-dispatching main ********************************************************************* normal commands status commands, which need a list of other commands this call might not return If we haven't exited y...
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
9ca9b207327ead8dc820c02bffb630028f8f56a8a96d5c7cd9b8fef2816a7c49
glondu/belenios
mail_formatter.mli
(**************************************************************************) (* BELENIOS *) (* *) Copyright © 2012 - 2022 (* ...
null
https://raw.githubusercontent.com/glondu/belenios/5306402c15c6a76438b13b8b9da0f45d02a0563d/src/web/common/mail_formatter.mli
ocaml
************************************************************************ BELENIOS This program is free softw...
Copyright © 2012 - 2022 it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the exemption that compiling , linking , and/or using OpenSSL is allowed . You should have rece...
6635f80bad1a750a5a5c1760d2464230684bfdc3ff53a3a064d8c13f34ae3ffc
namin/lambdajam
factorial-cps.scm
(let () (define factorial-cps (lambda (n k) (begin (show n) (if (= n 0) (k 1) (factorial-cps (- n 1) (lambda (v) (k (* n v)))))))) (define factorial (lambda (n) (factorial-cps n (lambda (v) v)))) (show (factorial 5)))
null
https://raw.githubusercontent.com/namin/lambdajam/58824eeccc15b11f09a02db5a3e3660fbdfe9c3d/factorial-cps.scm
scheme
(let () (define factorial-cps (lambda (n k) (begin (show n) (if (= n 0) (k 1) (factorial-cps (- n 1) (lambda (v) (k (* n v)))))))) (define factorial (lambda (n) (factorial-cps n (lambda (v) v)))) (show (factorial 5)))
c63bc4d73e46d3843c885dfa03a770264a8f204a8bb38dde2ef01a144da2b6ca
ocaml/ocaml
injectivity.ml
(* TEST * expect *) (* Syntax *) type ! 'a t = private 'a ref type +! 'a t = private 'a type -!'a t = private 'a -> unit type + !'a t = private 'a type - ! 'a t = private 'a -> unit type !+ 'a t = private 'a type !-'a t = private 'a -> unit type ! +'a t = private 'a type ! -'a t = private 'a -> unit [%%expect{| ty...
null
https://raw.githubusercontent.com/ocaml/ocaml/d71ea3d089ae3c338b8b6e2fb7beb08908076c7a/testsuite/tests/typing-misc/injectivity.ml
ocaml
TEST * expect Syntax Expect doesn't support syntax errors type -+ 'a t [%%expect] type -!! 'a t [%%expect] OK Without the injectivity annotation, the cannot be defined KO KO Of course, the internal type should be injective in this parameter KO KO Annotations in type abbreviations allow to check ...
type ! 'a t = private 'a ref type +! 'a t = private 'a type -!'a t = private 'a -> unit type + !'a t = private 'a type - ! 'a t = private 'a -> unit type !+ 'a t = private 'a type !-'a t = private 'a -> unit type ! +'a t = private 'a type ! -'a t = private 'a -> unit [%%expect{| type 'a t = private 'a ref type +'a t ...
d4be38105c35c9f86988d162daaefa6fd1df39f968fcabd5ffe215966f070cab
luc-tielen/eclair-lang
Diagnostics.hs
# LANGUAGE RecordWildCards # module Eclair.LSP.Diagnostics ( errorToDiagnostics ) where import Language.LSP.Types hiding (Range(..), Location(..), ParseError, Position, line) import qualified Language.LSP.Types as LSP import Language.LSP.Server (getLspEnv) import Eclair.Error import Eclair.LSP.Monad import Data.Ma...
null
https://raw.githubusercontent.com/luc-tielen/eclair-lang/f96fa7ac720e60bd6c6e460feff6707a1e95e0a0/src/lsp/Eclair/LSP/Diagnostics.hs
haskell
# LANGUAGE RecordWildCards # module Eclair.LSP.Diagnostics ( errorToDiagnostics ) where import Language.LSP.Types hiding (Range(..), Location(..), ParseError, Position, line) import qualified Language.LSP.Types as LSP import Language.LSP.Server (getLspEnv) import Eclair.Error import Eclair.LSP.Monad import Data.Ma...
089be3f2ce5c0d6bfb1e02afe57e3f94c5c4f9567a3b2582b459cfe1296060c6
Oblosys/proxima
Main.hs
module Main where import Proxima.Proxima import Settings import Evaluator import Reducer import PresentationAG import ProxParser import ScannerSheetHS import Evaluation.DocTypes import DocTypes_Generated import Evaluation.EnrTypes import Presentation.PresTypes import Layout.LayTypes import Arrangement.ArrTypes impor...
null
https://raw.githubusercontent.com/Oblosys/proxima/f154dff2ccb8afe00eeb325d9d06f5e2a5ee7589/dazzle-editor/src/Main.hs
haskell
sheet parameters (evaluation and reduction sheets are passed implicitly through instances of Evaluation/ReductionSheet classes) Note: this file does not need to be changed when instantiating an editor.
module Main where import Proxima.Proxima import Settings import Evaluator import Reducer import PresentationAG import ProxParser import ScannerSheetHS import Evaluation.DocTypes import DocTypes_Generated import Evaluation.EnrTypes import Presentation.PresTypes import Layout.LayTypes import Arrangement.ArrTypes impor...
dca9bb33b491984d5e7d6ad93003f6427fc1dbe310f84f4dcee1eab90e6e5253
metosin/mallitaulut
embedded_postgres.clj
(ns mallitaulut.embedded-postgres "Mostly snarfed from specql: MIT License Copyright (c) 2017 Tatu Tarvainen 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, in...
null
https://raw.githubusercontent.com/metosin/mallitaulut/ce6e5d01903b6f8ab840eddb6906285788688554/test/mallitaulut/embedded_postgres.clj
clojure
(ns mallitaulut.embedded-postgres "Mostly snarfed from specql: MIT License Copyright (c) 2017 Tatu Tarvainen 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, in...
3c39a1ad76a7c795929f2d01b1347bf4fe16a610ffb3c3c205c5596613a3ee4b
facebook/duckling
Corpus.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 OverloadedStrings #-} module Duckling.AmountOfMoney.NB.Corpus ( corpus ) where import Dat...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/AmountOfMoney/NB/Corpus.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 OverloadedStrings #
Copyright ( c ) 2016 - present , Facebook , Inc. module Duckling.AmountOfMoney.NB.Corpus ( corpus ) where import Data.String import Prelude import Duckling.AmountOfMoney.Types import Duckling.Locale import Duckling.Resolve import Duckling.Testing.Types corpus :: Corpus corpus = (testContext {locale = makeLo...
b45d28c7ee02eb1e374b08efbb13fa4804452f0038b93c46c2bb6a463c8ecc9e
PacktWorkshops/The-Clojure-Workshop
elo.clj
(ns packt-clj.tennis.elo (:require [clojure.java.jdbc :as jdbc] [packt-clj.tennis.query :as query])) (def ^:private k-factor 32) (defn- match-probability [player-1-rating player-2-rating] (/ 1 (+ 1 (Math/pow 10 (/ (- player-2-rating player-1-rating) 1000))))) (defn- recalculate-rating [previous-rati...
null
https://raw.githubusercontent.com/PacktWorkshops/The-Clojure-Workshop/3d309bb0e46a41ce2c93737870433b47ce0ba6a2/Chapter13/Activity13.01/src/packt_clj/tennis/elo.clj
clojure
(ns packt-clj.tennis.elo (:require [clojure.java.jdbc :as jdbc] [packt-clj.tennis.query :as query])) (def ^:private k-factor 32) (defn- match-probability [player-1-rating player-2-rating] (/ 1 (+ 1 (Math/pow 10 (/ (- player-2-rating player-1-rating) 1000))))) (defn- recalculate-rating [previous-rati...
d52d0e4467cfbbac883685b1c96143fd6cd55183cd686bd9ff6e7248c77538e4
kototama/picobit
library-arduino.scm
; File: "library.scm" (define-macro (cond . a) (if (null? a) '(if #f #f) (cond ((eq? (caar a) 'else) `(begin . ,(cdar a))) ((and (not (null? (cdar a))) (eq? (cadar a) '=>)) (let ((x (gensym))) `(let ((,x ,(caar a))) (if ,x (,(caddar a) ,x) (cond . ,(cdr...
null
https://raw.githubusercontent.com/kototama/picobit/8bdfc092266803bc6b1151177a7e668c9b050bea/library-arduino.scm
scheme
File: "library.scm"
(define-macro (cond . a) (if (null? a) '(if #f #f) (cond ((eq? (caar a) 'else) `(begin . ,(cdar a))) ((and (not (null? (cdar a))) (eq? (cadar a) '=>)) (let ((x (gensym))) `(let ((,x ,(caar a))) (if ,x (,(caddar a) ,x) (cond . ,(cdr a)))))) (...
1c1f17a8308378f9ea287dd20183dc2b1f7de1fcc41c6b04cd02b274843d4e04
tek/polysemy-hasql
PrimDecoder.hs
module Polysemy.Hasql.Table.PrimDecoder where import qualified Chronos as Chronos import Data.Scientific (Scientific) import Data.Time ( Day, DiffTime, LocalTime (LocalTime), TimeOfDay (TimeOfDay), TimeZone, UTCTime, toModifiedJulianDay, ) import Data.UUID (UUID) import Hasql.Decoders ( Value, bool...
null
https://raw.githubusercontent.com/tek/polysemy-hasql/443ccf348bb8af0ec0543981d58af8aa26fc4c10/packages/hasql/lib/Polysemy/Hasql/Table/PrimDecoder.hs
haskell
module Polysemy.Hasql.Table.PrimDecoder where import qualified Chronos as Chronos import Data.Scientific (Scientific) import Data.Time ( Day, DiffTime, LocalTime (LocalTime), TimeOfDay (TimeOfDay), TimeZone, UTCTime, toModifiedJulianDay, ) import Data.UUID (UUID) import Hasql.Decoders ( Value, bool...
8d5da87f59638b728d46aa5625a0621df5123605ab294703f887cf4d08fa94bb
xapi-project/xen-api
xenops_client.ml
* Copyright ( C ) 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 described in file LI...
null
https://raw.githubusercontent.com/xapi-project/xen-api/1e1165f330c30ee6cb8e8f325af9fdd07474ca24/ocaml/xapi-idl/xen/xenops_client.ml
ocaml
* Copyright ( C ) 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 described in file LI...
f9bac29557713bd85bb8e324b99d08d60f4852d2de86be98a94f932a83aa01ff
c-cube/ocaml-containers
CCCache.mli
(* This file is free software, part of containers. See file "license" for more details. *) * Caches Utils Particularly useful for memoization . See { ! with_cache } and { ! with_cache_rec } for more details . @since 0.6 Particularly useful for memoization. See {!with_cache} and {!with_cache_rec...
null
https://raw.githubusercontent.com/c-cube/ocaml-containers/69f2805f1073c4ebd1063bbd58380d17e62f6324/src/data/CCCache.mli
ocaml
This file is free software, part of containers. See file "license" for more details. prints prints doesn't print, returns cached value * Clear the content of the cache. * [with_cache c f] behaves like [f], but caches calls to [f] in the cache [c]. It always returns the same value as [f x], if [f x] ret...
* Caches Utils Particularly useful for memoization . See { ! with_cache } and { ! with_cache_rec } for more details . @since 0.6 Particularly useful for memoization. See {!with_cache} and {!with_cache_rec} for more details. @since 0.6 *) type 'a equal = 'a -> 'a -> bool type 'a hash = ...
1e58688fbca3ad1f93176e1eb66a13eb51a4c7bd71a3098be557ea80b2816220
b-ryan/farmhand
registry_test.clj
(ns farmhand.registry-test (:require [clojure.test :refer :all] [farmhand.jobs :as jobs] [farmhand.queue :as q] [farmhand.redis :refer [with-transaction]] [farmhand.registry :as registry] [farmhand.utils :refer [now-millis]] [farmhand.test-utils ...
null
https://raw.githubusercontent.com/b-ryan/farmhand/b5c79124c710b69cce9d4a436228f9ae7e2cbb99/test/farmhand/registry_test.clj
clojure
(ns farmhand.registry-test (:require [clojure.test :refer :all] [farmhand.jobs :as jobs] [farmhand.queue :as q] [farmhand.redis :refer [with-transaction]] [farmhand.registry :as registry] [farmhand.utils :refer [now-millis]] [farmhand.test-utils ...
ae0df71df610ca513dc88fbe6f545f73d1f09f52a5977c4a82616f6bc907a020
Atidot/snippets
WebBlog.hs
#! /usr/bin/env nix-shell pure -i runhaskell -p " pkgs.haskellPackages.ghcWithPackages ( ps : with ps ; [ aeson text lucid shakespeare clay ] ) " {-# LANGUAGE PackageImports #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # # LANGUAGE QuasiQuotes # # LANGUAGE FlexibleContexts # import "text...
null
https://raw.githubusercontent.com/Atidot/snippets/55fa5fbff396817e16c039dc16d859338e411ac1/Haskell/WebBlog.hs
haskell
# LANGUAGE PackageImports # # LANGUAGE OverloadedStrings # > "" > "" > "" > "" > "" > "" helpers > uri = a_ [href_ uri] text
#! /usr/bin/env nix-shell pure -i runhaskell -p " pkgs.haskellPackages.ghcWithPackages ( ps : with ps ; [ aeson text lucid shakespeare clay ] ) " # LANGUAGE TemplateHaskell # # LANGUAGE QuasiQuotes # # LANGUAGE FlexibleContexts # import "text" Data.Text (Text) import "text" Data.Text....
51f34e2f9df57613032fea0dab56e1b2db0933833e36da179b4683c3cd4862d2
ollef/sixten
Options.hs
module Command.Check.Options where import Protolude data Options = Options { inputFiles :: [FilePath] , logPrefixes :: [Text] , logFile :: Maybe FilePath , watch :: !Bool } deriving (Show)
null
https://raw.githubusercontent.com/ollef/sixten/60d46eee20abd62599badea85774a9365c81af45/src/Command/Check/Options.hs
haskell
module Command.Check.Options where import Protolude data Options = Options { inputFiles :: [FilePath] , logPrefixes :: [Text] , logFile :: Maybe FilePath , watch :: !Bool } deriving (Show)
ca46edfea0d80d5877852e4c8e0c25d2b1ceb3b40a0cd6ad9ce6845b21eb344c
macourtney/Dark-Exchange
notify.clj
(ns darkexchange.model.actions.notify (:require [clojure.contrib.logging :as logging] [darkexchange.model.actions.action-keys :as action-keys] [darkexchange.model.peer :as peer-model])) (def action-key action-keys/notify-action-key) (defn action [request-map] (peer-model/update-destination...
null
https://raw.githubusercontent.com/macourtney/Dark-Exchange/1654d05cda0c81585da7b8e64f9ea3e2944b27f1/src/darkexchange/model/actions/notify.clj
clojure
(ns darkexchange.model.actions.notify (:require [clojure.contrib.logging :as logging] [darkexchange.model.actions.action-keys :as action-keys] [darkexchange.model.peer :as peer-model])) (def action-key action-keys/notify-action-key) (defn action [request-map] (peer-model/update-destination...
0ffd06c3d68ebadc1216c661c9ef6d3acf651e595e4427dd113ecc99d22ee1fe
clojure-interop/java-jdk
core.clj
(ns javax.xml.stream.util.core (:refer-clojure :only [require comment defn ->]) (:import )) (require '[javax.xml.stream.util.EventReaderDelegate]) (require '[javax.xml.stream.util.StreamReaderDelegate]) (require '[javax.xml.stream.util.XMLEventAllocator]) (require '[javax.xml.stream.util.XMLEventConsumer])
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.xml/src/javax/xml/stream/util/core.clj
clojure
(ns javax.xml.stream.util.core (:refer-clojure :only [require comment defn ->]) (:import )) (require '[javax.xml.stream.util.EventReaderDelegate]) (require '[javax.xml.stream.util.StreamReaderDelegate]) (require '[javax.xml.stream.util.XMLEventAllocator]) (require '[javax.xml.stream.util.XMLEventConsumer])
852484047e6f543f05cc2d996934d2b96f3a6bfb29f54adf9fda040b7bd5de66
serokell/github-app
Auth.hs
This Source Code Form is subject to the terms of the Mozilla Public - License , v. 2.0 . If a copy of the MPL was not distributed with this - file , You can obtain one at /. - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at /. -} {-# LANGUAGE CPP #-...
null
https://raw.githubusercontent.com/serokell/github-app/1ac32618ed039dccb0ec9c44a8160e582928bd44/src/GitHub/App/Auth.hs
haskell
# LANGUAGE CPP # | When to renew the installation access token We renew the access token when it is valid for less than 'bufferTime' just to be on the safe side. | Credentials of a GitHub App | Credentials required for an App to authenticate as an installation ^ Prefilled claims set ^ Private key to sign ...
This Source Code Form is subject to the terms of the Mozilla Public - License , v. 2.0 . If a copy of the MPL was not distributed with this - file , You can obtain one at /. - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at /. -} # LANGUAGE DataKinds # m...
4809de2bdac2268f0cd659607ba436fcd6e5ced4446367126f488cadd21b853c
madvas/emojillionaire
styles.cljs
(ns emojillionaire.styles) (def main-grid {:margin-top 20}) (def paper-base {:padding 20 :margin-top 10 :margin-bottom 10}) (def jackpot-paper (merge paper-base {:text-align :center})) (def jackpot-text {:font-size "3em" :line-height "1...
null
https://raw.githubusercontent.com/madvas/emojillionaire/ee47e874db0c88b91985b6f9e72221f12d3010ff/src/cljs/emojillionaire/styles.cljs
clojure
(ns emojillionaire.styles) (def main-grid {:margin-top 20}) (def paper-base {:padding 20 :margin-top 10 :margin-bottom 10}) (def jackpot-paper (merge paper-base {:text-align :center})) (def jackpot-text {:font-size "3em" :line-height "1...
f8f07844c52860fb2e8171a3acb82dd237c654f2102385364d5e5e8dbdd6c51e
lem-project/lem
nim-mode.lisp
(defpackage :lem-nim-mode (:use :cl :lem :lem.language-mode :lem.language-mode-tools) (:export :*nim-mode-hook* :nim-mode) #+sbcl (:lock t)) (in-package :lem-nim-mode) (defun tokens (boundary strings) (let ((alternation `(:alternation ,@(sort (copy-list strings) #'> :key #...
null
https://raw.githubusercontent.com/lem-project/lem/26bd2dc10d92a90317d99ac818286371e5da9b14/modes/nim-mode/nim-mode.lisp
lisp
numerical literals Section: Identifiers & Keywords c interop types keywords: -lang.org/docs/manual.html operators: -lang.org/docs/manual.html it seems almost works
(defpackage :lem-nim-mode (:use :cl :lem :lem.language-mode :lem.language-mode-tools) (:export :*nim-mode-hook* :nim-mode) #+sbcl (:lock t)) (in-package :lem-nim-mode) (defun tokens (boundary strings) (let ((alternation `(:alternation ,@(sort (copy-list strings) #'> :key #...
206d5fb4de3fb32274c2119fd6c30b83694e5ce1437713d8454ff73e9d603765
ocaml-ppx/ppx_tools_versioned
ast_convenience_404.ml
open Migrate_parsetree.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 open Parsetree open Asttypes open Location open Ast_helper module Label = struct type t = A...
null
https://raw.githubusercontent.com/ocaml-ppx/ppx_tools_versioned/00a0150cdabfa7f0dad2c5e0e6b32230d22295ca/ast_convenience_404.ml
ocaml
This file is part of the ppx_tools package. It is released
open Migrate_parsetree.Ast_404 under the terms of the MIT license ( see LICENSE file ) . Copyright 2013 and LexiFi open Parsetree open Asttypes open Location open Ast_helper module Label = struct type t = Asttypes.arg_label type desc = Asttypes.arg_label = Nolabel ...
ef76975c1676e9b388c99a7dac8d8583da3bf87c321508bd761b3f6b1cb3e352
kframework/semantic-approaches
Imp_Syntax.hs
This module defines imp data structures to be used in the semantics . We now need to derive to throw away duplicate states when finding nondeterminism - see the semantics . module Imp_Syntax where -- Arithmetic Binary Operators (operators for binary arithmetic expressions) data ABinOp = Plus | ...
null
https://raw.githubusercontent.com/kframework/semantic-approaches/6f64eac09e005fe4eae7141e3c0e0f5711da0647/haskell/imp/4-imp-threads/1-imp-bigstep/Imp_Syntax.hs
haskell
Arithmetic Binary Operators (operators for binary arithmetic expressions) Arithmentic Expressions Boolean Expressions Statements NEW
This module defines imp data structures to be used in the semantics . We now need to derive to throw away duplicate states when finding nondeterminism - see the semantics . module Imp_Syntax where data ABinOp = Plus | Divide deriving (Show, Eq) data AExp = Id String | ...
9c5f8362632ea87d680d5bc5fb50c3d664745fc921fe9dcaf54977d90708ab0d
NickSeagull/drahko
TopLevel.hs
module Drahko.Generate.TopLevel where import qualified Drahko.Generate.Block as Block import Drahko.Generate.Common import Drahko.Generate.Name import Drahko.Syntax import qualified IRTS.Lang as Idris import qualified Idris.Core.TT as Idris import Relude generate :: MonadState UnusedNames m => MonadIO m => (Idris.Nam...
null
https://raw.githubusercontent.com/NickSeagull/drahko/cd84ee4b25f0d51900c248dfdc225370bfe19728/codegen/src/Drahko/Generate/TopLevel.hs
haskell
module Drahko.Generate.TopLevel where import qualified Drahko.Generate.Block as Block import Drahko.Generate.Common import Drahko.Generate.Name import Drahko.Syntax import qualified IRTS.Lang as Idris import qualified Idris.Core.TT as Idris import Relude generate :: MonadState UnusedNames m => MonadIO m => (Idris.Nam...
36c6ce08fb73c08bbc61e8dc3e3871cae9ae87680e2585d0faeeffef2d718126
CafeOBJ/cafeobj
regularize.lisp
-*- Mode : LISP ; Package : CHAOS ; ; Syntax : Common - lisp -*- ;;; Copyright ( c ) 2000 - 2015 , . 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 so...
null
https://raw.githubusercontent.com/CafeOBJ/cafeobj/261e3a50407f568272321378df370e5cf7492aaf/chaos/tools/regularize.lisp
lisp
Package : CHAOS ; ; Syntax : Common - lisp -*- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following...
Copyright ( c ) 2000 - 2015 , . All rights reserved . DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , (in-package :chaos) #-:chaos-debug (declaim (optimize (speed 3) (safety 0) #-GCL (debug 0))) #+:chaos-debug (declaim (optim...
a53a9eb313e5246a3cc61e183a8fbf85053710b939cc6f9c683aaa193ad96265
labra/Haws
testLDOM.hs
module TestLDOm where import LDOM import Test.Framework import Test.Framework.Providers.HUnit import Test.HUnit hiding (Node) import Data.Set (Set) import qualified Data.Set as Set import RDF import Sets import Typing test_surrounding_1 = surroundingTriples (uri_s ":a") graph1 @?= surrounding_1 where graph1 = Graph...
null
https://raw.githubusercontent.com/labra/Haws/2417adc37522994e2bbb8e9e397481a1f6f4f038/papers/testLDOM.hs
haskell
module TestLDOm where import LDOM import Test.Framework import Test.Framework.Providers.HUnit import Test.HUnit hiding (Node) import Data.Set (Set) import qualified Data.Set as Set import RDF import Sets import Typing test_surrounding_1 = surroundingTriples (uri_s ":a") graph1 @?= surrounding_1 where graph1 = Graph...
af95f53d6cdac80930ef1abf22d7972ff75c4c495a8b976cc9e5e200b6c59a32
mcorbin/meuse
mirror.clj
(ns meuse.mirror "The store for the crates.io mirror." (:require [meuse.config :as config] [meuse.crate-file :refer [->CrateStore]] [meuse.log :as log] [meuse.store.protocol :as store] [byte-streams :as bs] [mount.core :refer [defstate]] [clj-h...
null
https://raw.githubusercontent.com/mcorbin/meuse/d2b74543fce37c8cde770ae6f6097cabb509a804/src/meuse/mirror.clj
clojure
(ns meuse.mirror "The store for the crates.io mirror." (:require [meuse.config :as config] [meuse.crate-file :refer [->CrateStore]] [meuse.log :as log] [meuse.store.protocol :as store] [byte-streams :as bs] [mount.core :refer [defstate]] [clj-h...
7fd3dd5c25af760bb35e8c7ae6b4ab5b46ee7df670395e64ce2b5b626e05f5e0
OlivierNicole/macros-examples
demo.ml
* © , 2017 - 2018 let () = begin assert (Fmt.sprintf [%fmt "(%d, %d)"] 2 3 = "(2, 3)"); assert ($(Fmt.sprintf2 [%fmt "(%d, %d)"]) 2 3 = "(2, 3)"); assert ($(Fmt.sprintf3 [%fmt "(%d, %d)"]) 2 3 = "(2, 3)"); assert ($(Fmt.sprintf4 [%fmt "(%b, %b)"]) true false = "(true, fal...
null
https://raw.githubusercontent.com/OlivierNicole/macros-examples/53a614be8aa91b44cbc9d7982dcebc40e5d22818/printf-scanf/demo.ml
ocaml
sscanf
* © , 2017 - 2018 let () = begin assert (Fmt.sprintf [%fmt "(%d, %d)"] 2 3 = "(2, 3)"); assert ($(Fmt.sprintf2 [%fmt "(%d, %d)"]) 2 3 = "(2, 3)"); assert ($(Fmt.sprintf3 [%fmt "(%d, %d)"]) 2 3 = "(2, 3)"); assert ($(Fmt.sprintf4 [%fmt "(%b, %b)"]) true false = "(true, fal...
43a70700699d9825a95f0c66fd4d84181738b8c380428331b8538826cf65d030
JPMoresmau/dbIDE
ghci_lib_test.hs
module Main where import Test.Tasty import Language.Haskell.Ghci.ParserTest (parserTests) import Language.Haskell.Ghci.HighLevelTests (highLevelTests) import Language.Haskell.Ghci.UtilsTest (utilsTests) main::IO() main = defaultMain tests tests :: TestTree tests = testGroup "Tests" [ utilsTests , parserTests ...
null
https://raw.githubusercontent.com/JPMoresmau/dbIDE/dae37edf67fbe55660e7e22c9c5356d0ada47c61/ghci-lib/test/ghci_lib_test.hs
haskell
module Main where import Test.Tasty import Language.Haskell.Ghci.ParserTest (parserTests) import Language.Haskell.Ghci.HighLevelTests (highLevelTests) import Language.Haskell.Ghci.UtilsTest (utilsTests) main::IO() main = defaultMain tests tests :: TestTree tests = testGroup "Tests" [ utilsTests , parserTests ...
92c5df78ef2ec6a4f4b6a8d689a14b0214d0e150a81cfa28c89aebff93a989c0
damballa/parkour
join_test.clj
(ns parkour.join-test (:require [clojure.test :refer :all] [clojure.string :as str] [clojure.java.io :as io] [clojure.core.reducers :as r] [abracad.avro :as avro] [parkour (conf :as conf) (fs :as fs) (wrapper :as w) (mapreduce :as mr) (r...
null
https://raw.githubusercontent.com/damballa/parkour/2b3c5e1987e18b4c4284dfd4fcdaba267a4d7fbc/test/parkour/join_test.clj
clojure
(ns parkour.join-test (:require [clojure.test :refer :all] [clojure.string :as str] [clojure.java.io :as io] [clojure.core.reducers :as r] [abracad.avro :as avro] [parkour (conf :as conf) (fs :as fs) (wrapper :as w) (mapreduce :as mr) (r...
b7b12bffa4aefcdc50c33b86f1f318fed385f2d23c3b80c43fab3adac5771918
emqx/emqx-exhook
emqx_extension_hook_handler.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 EMQ Technologies Co. , Ltd. All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the L...
null
https://raw.githubusercontent.com/emqx/emqx-exhook/906ba8c0ac907414b85738c24c7dbef880da844e/src/emqx_extension_hook_handler.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2020 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(emqx_extension_hook_handler). -include("emqx_extension_hook.hrl"). -include_lib("emqx/include/...
4ccd9153da61781ae2a1585fb746aec058d419e9a7665fc2f88dd4177e62dec8
omnyway-labs/amplitude
example.cljs
(ns amplitude.example (:require [reagent.core :as r] [amplitude.rest :as rest] [amplitude.graphql :as graphql] [amplitude.auth :as auth] [amplitude.config :as config] [amplitude.cache :as cache] [amplitude.storage :as storage] [amplitude.log :as log] ["/aws-exports.js" :default awsmobile]))...
null
https://raw.githubusercontent.com/omnyway-labs/amplitude/4c8468070b70ed49c9293e4fa87e44ce79f3d2aa/example/src/amplitude/example.cljs
clojure
(ns amplitude.example (:require [reagent.core :as r] [amplitude.rest :as rest] [amplitude.graphql :as graphql] [amplitude.auth :as auth] [amplitude.config :as config] [amplitude.cache :as cache] [amplitude.storage :as storage] [amplitude.log :as log] ["/aws-exports.js" :default awsmobile]))...
7b0dfba1f49756b0ac51658202712ad4bb66b28cbeea29ce7b93067d2199dd00
babashka/neil
test_util.clj
(ns babashka.neil.test-util (:require [babashka.fs :as fs] [babashka.neil :as neil-main] [babashka.process :as process] [clojure.edn :as edn] [clojure.string :as str])) (def test-dir (str (fs/file (fs/temp-dir) "neil"))) (defn reset-test-dir [] (fs/delete-tree test-...
null
https://raw.githubusercontent.com/babashka/neil/02f450fc723a0d953c527e7644897c88cf01b658/test/babashka/neil/test_util.clj
clojure
(ns babashka.neil.test-util (:require [babashka.fs :as fs] [babashka.neil :as neil-main] [babashka.process :as process] [clojure.edn :as edn] [clojure.string :as str])) (def test-dir (str (fs/file (fs/temp-dir) "neil"))) (defn reset-test-dir [] (fs/delete-tree test-...
24a13857c4ba65b702c1a48e039e7498ca670657d5f57223e38d696343dcc920
ocaml-community/ISO8601.ml
UTILS_TEST.ml
let test a b = OUnit.(>::) (string_of_float a) (fun _ -> OUnit.assert_equal ~cmp:(OUnit.cmp_float ~epsilon:Stdlib.epsilon_float) ~printer:string_of_float a b) let suite = let mkdatetime = Utils.mkdatetime in let mkdate = Utils.mkdate in ...
null
https://raw.githubusercontent.com/ocaml-community/ISO8601.ml/4c6820de3098a5e0b00503b899456297706dc0a5/tests/UTILS_TEST.ml
ocaml
not leap year
let test a b = OUnit.(>::) (string_of_float a) (fun _ -> OUnit.assert_equal ~cmp:(OUnit.cmp_float ~epsilon:Stdlib.epsilon_float) ~printer:string_of_float a b) let suite = let mkdatetime = Utils.mkdatetime in let mkdate = Utils.mkdate in ...
449a32ef2bbc3c82aedf1e3fd88d635a2989bffa5f6ab3462b43e2f9c474ef3d
fresnel/fresnel
Test.hs
{-# LANGUAGE RankNTypes #-} # LANGUAGE TemplateHaskell # module Iso.Test ( validIso , invalidIso , withRoundtrips , tests ) where import Fresnel.Getter import Fresnel.Iso import Fresnel.Review import Test.Group import Test.QuickCheck validIso :: (Eq a, Show a, Eq s, Show s) => Iso' s a -> s -> a -> Property validIso ...
null
https://raw.githubusercontent.com/fresnel/fresnel/8f0d267779703049568694834c25f619034ca74d/fresnel/test/Iso/Test.hs
haskell
# LANGUAGE RankNTypes #
# LANGUAGE TemplateHaskell # module Iso.Test ( validIso , invalidIso , withRoundtrips , tests ) where import Fresnel.Getter import Fresnel.Iso import Fresnel.Review import Test.Group import Test.QuickCheck validIso :: (Eq a, Show a, Eq s, Show s) => Iso' s a -> s -> a -> Property validIso o s a = withRoundtrips o $ \...
d0f532bbc475e8baa9d883d71ecc83d8dac02b0bb65384b01fb16312b9a9c575
juhp/koji-tool
Time.hs
# LANGUAGE CPP # module Time ( compactZonedTime, lookupTime, lookupTimes, lookupTimes', durationOfTask, formatLocalTime, renderDuration, UTCTime) where import Data.Time.Clock import Data.Time.Clock.System import Data.Time.Format import Data.Time.LocalTime import Distribution.Koji.API (Struct, lookupSt...
null
https://raw.githubusercontent.com/juhp/koji-tool/8f98c3b7a2381ae38e08211da374c5a8d1e5e311/src/Time.hs
haskell
# LANGUAGE CPP # module Time ( compactZonedTime, lookupTime, lookupTimes, lookupTimes', durationOfTask, formatLocalTime, renderDuration, UTCTime) where import Data.Time.Clock import Data.Time.Clock.System import Data.Time.Format import Data.Time.LocalTime import Distribution.Koji.API (Struct, lookupSt...
3a325f324809db6417d89b4aec2c4c4659242d373710b2502470961a69149a1e
herd/herdtools7
config.ml
(****************************************************************************) (* the diy toolsuite *) (* *) , University College London , UK . , INRIA Par...
null
https://raw.githubusercontent.com/herd/herdtools7/319d1c8ec9f7d939e98785dd519a0da54435b606/gen/config.ml
ocaml
************************************************************************** the diy toolsuite en Automatique and ...
, University College London , UK . , INRIA Paris - Rocquencourt , France . Copyright 2010 - present Institut National de Recherche en Informatique et This software is governed by the CeCILL - B license under French law and modify and/ or redistribu...
1be53ae19cb02464b38b7ef354d023025a661dc76a0bd3987338cc04d0b79324
ih/ikarus.dev
tests-1.9-req.scm
(add-tests-with-string-output "begin/implicit-begin" [(begin 12) => "12\n"] [(begin 13 122) => "122\n"] [(begin 123 2343 #t) => "#t\n"] [(let ([t (begin 12 (cons 1 2))]) (begin t t)) => "(1 . 2)\n"] [(let ([t (begin 13 (cons 1 2))]) (cons 1 t) t) => "(1 . 2)\n"] [(let ([t (cons 1 2)]) (if (pair? t) ...
null
https://raw.githubusercontent.com/ih/ikarus.dev/8bb0c8e4d1122cf0f9aeb675cb51bc7df178959b/src/old-tests/tests-1.9-req.scm
scheme
[(let ([x #f]) (if (pair? #f) #f) x) => "#f\n"]
(add-tests-with-string-output "begin/implicit-begin" [(begin 12) => "12\n"] [(begin 13 122) => "122\n"] [(begin 123 2343 #t) => "#t\n"] [(let ([t (begin 12 (cons 1 2))]) (begin t t)) => "(1 . 2)\n"] [(let ([t (begin 13 (cons 1 2))]) (cons 1 t) t) => "(1 . 2)\n"] [(let ([t (cons 1 2)]) (if (pair? t) ...
c4e8f281c3e01fe9a72abd880bf5d5412eb14b2791e3f381c3e446ea92dd04d1
BetterThanTomorrow/joyride
db.cljs
(ns integration-test.db (:require [cljs.test])) (def !state (atom {:running nil :ws-activated? false :pass 0 :fail 0 :error 0}))
null
https://raw.githubusercontent.com/BetterThanTomorrow/joyride/760e24ba61e0454f715b15ed29b7ed3d0ca01312/vscode-test-runner/workspace-1/.joyride/src/integration_test/db.cljs
clojure
(ns integration-test.db (:require [cljs.test])) (def !state (atom {:running nil :ws-activated? false :pass 0 :fail 0 :error 0}))
4f55496beff64864c13c22ea8da736e4ffad79e6fb1ff39e87a73982bd672aa5
input-output-hk/plutus
Lib.hs
# OPTIONS_GHC -fno - omit - interface - pragmas # module Plugin.Typeclasses.Lib where import PlutusTx.Builtins qualified as Builtins data Animal = Dog | Cat data Person = Jim | Jane data Alien = AlienJim | AlienJane Needs to be in another file because of # 978 class DefaultMethods a where method1 :: a -> Integ...
null
https://raw.githubusercontent.com/input-output-hk/plutus/1f31e640e8a258185db01fa899da63f9018c0e85/plutus-tx-plugin/test/Plugin/Typeclasses/Lib.hs
haskell
# INLINABLE method2 # # INLINABLE method1 # # INLINABLE method1 #
# OPTIONS_GHC -fno - omit - interface - pragmas # module Plugin.Typeclasses.Lib where import PlutusTx.Builtins qualified as Builtins data Animal = Dog | Cat data Person = Jim | Jane data Alien = AlienJim | AlienJane Needs to be in another file because of # 978 class DefaultMethods a where method1 :: a -> Integ...
ec7e09389dd1ad2912bec72c0a387dc0d93083ceaef632f96fd29c17d1f8906d
incoherentsoftware/defect-process
Projectile.hs
module Enemy.All.Dog.Projectile ( mkDogProjectile ) where import Control.Monad.IO.Class (MonadIO) import Data.Maybe (fromMaybe) import qualified Data.Set as S import Attack import Attack.Hit import Collision import Configs import Configs.All.Enemy import Configs.All.Enemy.Dog import Constants impo...
null
https://raw.githubusercontent.com/incoherentsoftware/defect-process/8797aad1d93bff5aadd7226c39a48f45cf76746e/src/Enemy/All/Dog/Projectile.hs
haskell
module Enemy.All.Dog.Projectile ( mkDogProjectile ) where import Control.Monad.IO.Class (MonadIO) import Data.Maybe (fromMaybe) import qualified Data.Set as S import Attack import Attack.Hit import Collision import Configs import Configs.All.Enemy import Configs.All.Enemy.Dog import Constants impo...
915be0831cfc378260dfec64ccea220c2c0805360cfa5244bbf3b9d1ddf67c91
rtoal/ple
mystery.hs
mystery x s = concat $ replicate (round (sqrt x)) s
null
https://raw.githubusercontent.com/rtoal/ple/b24cab4de2beca6970833a09d05af6ef96ec3921/haskell/mystery.hs
haskell
mystery x s = concat $ replicate (round (sqrt x)) s
a792ff8baa81ec4852134a1c008c1f079eeb23168cc90924b3b8ce09ce86856e
srid/Taut
Internal.hs
# LANGUAGE ScopedTypeVariables # module Common.Slack.Internal where import Data.Aeson import Data.Char (isUpper) import Data.Text (Text) import qualified Data.Text as T import Data.Time.Clock import Data.Time.Clock.POSIX import Text.Casing (fromHumps, toQuietSnake) import Text.Read (readMaybe) | Field label modifi...
null
https://raw.githubusercontent.com/srid/Taut/75f10c50a391d6e7301f6a26b2c781f0bf76a5c1/common/src/Common/Slack/Internal.hs
haskell
FIXME: Not sure if `round` is problematic here. We want this value to be unique. TODO: Check if this converts back to the same value NOTE: it does not; loses the double precision. do we care?
# LANGUAGE ScopedTypeVariables # module Common.Slack.Internal where import Data.Aeson import Data.Char (isUpper) import Data.Text (Text) import qualified Data.Text as T import Data.Time.Clock import Data.Time.Clock.POSIX import Text.Casing (fromHumps, toQuietSnake) import Text.Read (readMaybe) | Field label modifi...
69c6a6094b074b3ffe6c008521db5d990e81c571b31464235859874df08cc277
malcolmstill/ulubis
wl-output-impl.lisp
(in-package :ulubis) (defimplementation wl-output () () ()) (def-wl-bind output-bind (client (data :pointer) (version :uint32) (id :uint32)) (let ((output (make-wl-output client 1 id :implementation? nil))) (wl-output-send-geometry (->resource output) 0 0 1440 900 0 "apple" "apple" 0)))
null
https://raw.githubusercontent.com/malcolmstill/ulubis/23c89ccd5589930e66025487c31531f49218bb76/wl-output-impl.lisp
lisp
(in-package :ulubis) (defimplementation wl-output () () ()) (def-wl-bind output-bind (client (data :pointer) (version :uint32) (id :uint32)) (let ((output (make-wl-output client 1 id :implementation? nil))) (wl-output-send-geometry (->resource output) 0 0 1440 900 0 "apple" "apple" 0)))
ae3751f082cc68b6ae742e5713a834964aeb911c4ccd92176ee803336f111c53
oklm-wsh/MrMime
input.mli
(** Module Input *) (** A ringbuffer. *) type 'a t = 'a RingBuffer.Committed.t (** A proof to use a [string] internally *) type st = Internal_buffer.st = St (** A proof to use a [(char, int8_unsigned_elt, c_layout) Bigarray.Array1.t] *) type bs = Internal_buffer.bs = Bs * [ write input buf off len ] writes an intern...
null
https://raw.githubusercontent.com/oklm-wsh/MrMime/4d2a9dc75905927a092c0424cff7462e2b26bb96/lib/input.mli
ocaml
* Module Input * A ringbuffer. * A proof to use a [string] internally * A proof to use a [(char, int8_unsigned_elt, c_layout) Bigarray.Array1.t] * [create_bigstring size] returns a fresh input of length [size] with the proof {!bs}. The sequence is unintialiazed and contains arbitrary bytes. * [size input] retu...
type 'a t = 'a RingBuffer.Committed.t type st = Internal_buffer.st = St type bs = Internal_buffer.bs = Bs * [ write input buf off len ] writes an internal buffer ( with the same proof [ ' a ] - see { ! st } or { ! bs } ) starting at [ off ] to [ len ] inside the input . ['a] - see {!st} or {!bs}) startin...
7d7d0f12aa06dedd79d0522e0cddecbd7bad9c6800d027559eedc6d6ea087488
LauraVoinea/protocol-reengineering-implementation
agent2_stub.erl
-module(agent2_stub). -behaviour(gen_statem). -define(SERVER, ?MODULE). -export([callback_mode/0, init/1, receive_ia_snap/1, receive_ia_state/1, send_ai_close/1, send_ai_coord/1, send_ai_get/1, send_ai_set/1, start_link/0, state1/3, ...
null
https://raw.githubusercontent.com/LauraVoinea/protocol-reengineering-implementation/c20263e4fb7f88005444638cb23227407d29d698/src/examples/agents/agent2_stub.erl
erlang
consume n consume set consume get consume close consume coord consume snap
-module(agent2_stub). -behaviour(gen_statem). -define(SERVER, ?MODULE). -export([callback_mode/0, init/1, receive_ia_snap/1, receive_ia_state/1, send_ai_close/1, send_ai_coord/1, send_ai_get/1, send_ai_set/1, start_link/0, state1/3, ...
599cd35d9f070cf5ad9187ba851d3e114f7dc9c16d7cbf57a840a0b8c3dfc50e
hoodunit/grub
grub_list.cljs
(ns grub.view.grub-list (:require [grub.view.dom :as dom] [grub.view.grub :as grub-view] [om.core :as om :include-macros true] [sablono.core :refer-macros [html]] [cljs.core.async :as a :refer [<! chan]]) (:require-macros [cljs.core.async.macros :refer [go go-loop]]))...
null
https://raw.githubusercontent.com/hoodunit/grub/6e47218c34a724d1123717997eac5e196a5bba9b/src/cljs/grub/view/grub_list.cljs
clojure
(ns grub.view.grub-list (:require [grub.view.dom :as dom] [grub.view.grub :as grub-view] [om.core :as om :include-macros true] [sablono.core :refer-macros [html]] [cljs.core.async :as a :refer [<! chan]]) (:require-macros [cljs.core.async.macros :refer [go go-loop]]))...
21d65287f1fc00e98072c0d30d921691986209d4b26f27d1312768150e2f65d6
EMSL-NMR-EPR/Haskell-MFAPipe-Executable
Statistics.hs
module MFAPipe.Csv.Types.Statistics ( StatisticsRecords(..) , StatisticsRecord(..) , encode , encodeWith ) where import Data.ByteString.Lazy (ByteString) import qualified Data.Csv import Data.Csv (DefaultOrdered(headerOrder), ToField(), ToNamedRecord(toNamedRecord), EncodeOptions) import ...
null
https://raw.githubusercontent.com/EMSL-NMR-EPR/Haskell-MFAPipe-Executable/8a7fd13202d3b6b7380af52d86e851e995a9b53e/MFAPipe/app/MFAPipe/Csv/Types/Statistics.hs
haskell
# UNPACK # # UNPACK # <#Adjusted_R2>
module MFAPipe.Csv.Types.Statistics ( StatisticsRecords(..) , StatisticsRecord(..) , encode , encodeWith ) where import Data.ByteString.Lazy (ByteString) import qualified Data.Csv import Data.Csv (DefaultOrdered(headerOrder), ToField(), ToNamedRecord(toNamedRecord), EncodeOptions) import ...
3835e6593517a94904d1aba5a83fc60d3288a157352df5e92576a59e0896f284
bazqux/bazqux-urweb
YouTube.hs
# LANGUAGE MultiWayIf , ViewPatterns , OverloadedStrings # -- | YouTube module Parser.YouTube ( customParsers ) where import Control.Monad import Data.Maybe import Data.List import Data.Ord import qualified Data.Text as T import qualified Data.ByteString.Lazy.Char8 as BL import qualified Data.ByteString.Char8 ...
null
https://raw.githubusercontent.com/bazqux/bazqux-urweb/bf2d5a65b5b286348c131e91b6e57df9e8045c3f/crawler/Parser/YouTube.hs
haskell
| YouTube +id%2C+snippet%2C+status%2C+ некоторые плейлисты отсортированы от самых ранних testYoutube = withLogger $ \ l -> logTime l "testYoutube" $ do -- parseUrlT "" parseUrlT " +piano " parseUrlT " " -- parseUrlT "" -- parseUrlT "" -- -- parseUrlT "-p_K4bHQ/newsubscriptionvideos" -- ...
# LANGUAGE MultiWayIf , ViewPatterns , OverloadedStrings # module Parser.YouTube ( customParsers ) where import Control.Monad import Data.Maybe import Data.List import Data.Ord import qualified Data.Text as T import qualified Data.ByteString.Lazy.Char8 as BL import qualified Data.ByteString.Char8 as B import q...
ecc393b926371987f442ed23ecaf34d7a2abbe2962e070f6b8be857838f46f9c
samoht/camloo
main.scm
;; Le module (module __caml_main (library camloo-runtime) (import __caml_config __caml_misc __caml_modules __caml_compiler __caml_dump __caml_version) (export (anonymous_150@main x1) (c2b_254@main x1) (set_stdlib_160@main x1) (add_include_184@main x1) (open_set_165@m...
null
https://raw.githubusercontent.com/samoht/camloo/29a578a152fa23a3125a2a5b23e325b6d45d3abd/src/camloo/Llib.bootstrap/main.scm
scheme
Le module Les variables globales Les expressions globales
(module __caml_main (library camloo-runtime) (import __caml_config __caml_misc __caml_modules __caml_compiler __caml_dump __caml_version) (export (anonymous_150@main x1) (c2b_254@main x1) (set_stdlib_160@main x1) (add_include_184@main x1) (open_set_165@main x1) (s...
debada3c74b3993a2de65359f8cd34597684de1447ac75556035f69276fc68b3
tonyrog/graph
graph_file.erl
@author < > ( C ) 2019 , %%% @doc %%% Some file functions %%% @end Created : 24 Feb 2019 by < > -module(graph_file). -export([load/1, load_fd/1, load_fd/2]). %% %% Load graph in %% connection matrix format %% %% load(Filename) -> case file:open(Filename, [read]) of {ok, Fd} -> try load_...
null
https://raw.githubusercontent.com/tonyrog/graph/c930de5707f5e66499b29646b05f4570163ce7c5/src/graph_file.erl
erlang
@doc Some file functions @end Load graph in connection matrix format
@author < > ( C ) 2019 , Created : 24 Feb 2019 by < > -module(graph_file). -export([load/1, load_fd/1, load_fd/2]). load(Filename) -> case file:open(Filename, [read]) of {ok, Fd} -> try load_fd(Fd) of G -> G after file:close(Fd) end; Error -> Error end. load_fd(Fd) -...
13bd9f8b3d95901d656cdb8f59eba7908d6743fe43948f203c4b2753c47a73ea
PLTools/GT
stateful.ml
* Generic transformers : plugins . * Copyright ( C ) 2016 - 2022 * aka Kakadu * St. Petersburg State University , JetBrains Research * Generic transformers: plugins. * Copyright (C) 2016-2022 * Dmitrii Kosarev aka Kakadu * St.Petersburg State University, JetBrains Research *) (** {i Stateful...
null
https://raw.githubusercontent.com/PLTools/GT/62d1a424a3336f2317ba67e447a9ff09d179b583/plugins/stateful.ml
ocaml
* {i Stateful} plugin: functors + inherited value to make decisions about how to map values. Behave the same as {!Eval} trait but can may return modified state. Inherited attributes' type (both default and for type parameters) is ['env]. Synthetized attributes' type (both default and for type paramet...
* Generic transformers : plugins . * Copyright ( C ) 2016 - 2022 * aka Kakadu * St. Petersburg State University , JetBrains Research * Generic transformers: plugins. * Copyright (C) 2016-2022 * Dmitrii Kosarev aka Kakadu * St.Petersburg State University, JetBrains Research *) open Ppxlib op...
43f6868772ca8b34579e19533460f63064a7293040b52767dae82bf693429654
lasp-lang/lasp_pg
lasp_pg_app.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2016 . All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may obtain %% a copy of the ...
null
https://raw.githubusercontent.com/lasp-lang/lasp_pg/2879b983613e7546eaf183dbf71efeed6f11cde8/src/lasp_pg_app.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissio...
Copyright ( c ) 2016 . All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(lasp_pg_app). -behav...
df82059db0bdf98d8d1746cb6e6b67434d119f0bb761851304ec0908300309fe
triffon/fp-2022-23
12-to-edges.rkt
#lang racket ще използваме тази функция в други файлове (provide to-edges) (define (to-edges graph) (define (construct-edges from to) (map (lambda (x) (cons from x)) to)) (apply append (map (lambda (lst) (construct-edges (car lst) (cdr lst))) graph)))
null
https://raw.githubusercontent.com/triffon/fp-2022-23/c6f5ed7264fcd8988cf29f2d04fda64faa8c8562/exercises/inf2/08/12-to-edges.rkt
racket
#lang racket ще използваме тази функция в други файлове (provide to-edges) (define (to-edges graph) (define (construct-edges from to) (map (lambda (x) (cons from x)) to)) (apply append (map (lambda (lst) (construct-edges (car lst) (cdr lst))) graph)))
8cb3a7cd00f1ff4ff5d9484a0f9c7983ae3f5ccafd5473871570c0cb4668ab67
jwiegley/notes
main.hs
wontWork :: Prelude.FilePath -> IO () wontWork path = do ls <- lines <$> readFile path let Just idx = findIndex (" Import " `isInfixOf`) ls writeFile path $ unlines $ take (idx + 2) ls ++ ["#import \"WS-Header.h\""] ++ drop (idx + 2) ls
null
https://raw.githubusercontent.com/jwiegley/notes/24574b02bfd869845faa1521854f90e4e8bf5e9a/gists/6083978/main.hs
haskell
wontWork :: Prelude.FilePath -> IO () wontWork path = do ls <- lines <$> readFile path let Just idx = findIndex (" Import " `isInfixOf`) ls writeFile path $ unlines $ take (idx + 2) ls ++ ["#import \"WS-Header.h\""] ++ drop (idx + 2) ls
f430b176493a29bf690b1455205d194e6b1c647cdd4c11ff04664fca192eaa48
na4zagin3/satyrographos
command_build__doc_with_libraries.ml
module StdList = List open Satyrographos_testlib open TestLib open Shexp_process let satyristes = {| (lang "0.0.3") (library (name "grcnum") (version "0.2") (sources ((package "grcnum.satyh" "./grcnum.satyh") (font "grcnum-font.ttf" "./font.ttf" ()) (hash "fonts.satysfi-hash" "./fonts.satysfi-has...
null
https://raw.githubusercontent.com/na4zagin3/satyrographos/d2943bac9659d20746720ab36ebe11ae59203d32/test/testcases/command_build__doc_with_libraries.ml
ocaml
module StdList = List open Satyrographos_testlib open TestLib open Shexp_process let satyristes = {| (lang "0.0.3") (library (name "grcnum") (version "0.2") (sources ((package "grcnum.satyh" "./grcnum.satyh") (font "grcnum-font.ttf" "./font.ttf" ()) (hash "fonts.satysfi-hash" "./fonts.satysfi-has...
76aad9fb7275f707c6512bfc574a8133b870672848717b51c1dc0a8827e948c0
clojure/data.xml
node.cljc
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/data.xml/12cc9934607de6cb4d75eddb1fcae30829fa4156/src/main/clojure/clojure/data/xml/node.cljc
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 clojure.data.xml.node "Data types for xml nodes: Element, CData and Comment" {:author "Herwig Hochleitner"} (:require [clojure.data.xml.name :refer [as-qname]]) #?(:clj (:import (clojure.lang IHashEq IObj ILookup IKeywordLookup Counted ...
20e1d48fbfbc1c98f2b1a65005e748871d2d20544ef85209be9a3b17c875cb8c
racket/typed-racket
struct-options.rkt
#lang typed/racket/base ;; Tests for constructor options for struct (struct s1 ([x : Integer]) #:constructor-name cons-s1) (define-struct s2 ([x : Integer]) #:constructor-name cons-s2) (struct s3 ([x : Integer]) #:extra-constructor-name cons-s3) (define-struct s4 ([x : Integer]) #:extra-constructor-name cons-s4) (co...
null
https://raw.githubusercontent.com/racket/typed-racket/0236151e3b95d6d39276353cb5005197843e16e4/typed-racket-test/succeed/struct-options.rkt
racket
Tests for constructor options for struct
#lang typed/racket/base (struct s1 ([x : Integer]) #:constructor-name cons-s1) (define-struct s2 ([x : Integer]) #:constructor-name cons-s2) (struct s3 ([x : Integer]) #:extra-constructor-name cons-s3) (define-struct s4 ([x : Integer]) #:extra-constructor-name cons-s4) (cons-s1 1) (cons-s2 2) (s3 3) (cons-s3 3) (s4 ...
6be70000b458654ab898037b745e1a8a87f1d9c2498ca0d826103acd612c42cb
racket/racklog
info.rkt
#lang info (define collection "racklog") (define scribblings '(("racklog.scrbl" (multi-page) (tool)))) (define deps '("base" "datalog")) (define build-deps '("eli-tester" "rackunit-lib" "racket-doc" "scribble-lib")) (define pkg-desc "The...
null
https://raw.githubusercontent.com/racket/racklog/4bad4b9e9bcc363df453ae5e4211641cddc29e4b/info.rkt
racket
#lang info (define collection "racklog") (define scribblings '(("racklog.scrbl" (multi-page) (tool)))) (define deps '("base" "datalog")) (define build-deps '("eli-tester" "rackunit-lib" "racket-doc" "scribble-lib")) (define pkg-desc "The...
eca6976fef7196c7a7b363eda7396859a693afa6e4724c8867fe38af43c3aa85
vikram/lisplibraries
bracket-reader.lisp
;; -*- lisp -*- (in-package :it.bese.yaclml) ;;;; * The [ reader A read macro for easily embedding text and YACLML markup in lisp ;;;; code. (defun |[ reader| (stream char) "Read a form using YACLML's [ syntax. Everything between the #\[ and the #\] is read as text. ~FORM prints (using <:as-html) the value ret...
null
https://raw.githubusercontent.com/vikram/lisplibraries/105e3ef2d165275eb78f36f5090c9e2cdd0754dd/site/ucw-boxset/dependencies/yaclml/src/bracket-reader.lisp
lisp
-*- lisp -*- * The [ reader code. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the...
(in-package :it.bese.yaclml) A read macro for easily embedding text and YACLML markup in lisp (defun |[ reader| (stream char) "Read a form using YACLML's [ syntax. Everything between the #\[ and the #\] is read as text. ~FORM prints (using <:as-html) the value returned by FORM while $FORM simply evaluates FORM...
bf4370eae58ceb01700764104abed9ce6af4db583d440d9c0778b37e506b5315
jarvinet/scheme
regsim.scm
Structure and Interpretation of Computer Programs , 2nd edition Register machine simulator ;---------------------------------------------------------------------- ; The machine model (define (make-machine register-names ops controller-text) (let ((machine (make-new-machine))) (for-each (lambda (register-...
null
https://raw.githubusercontent.com/jarvinet/scheme/47633d7fc4d82d739a62ceec75c111f6549b1650/Book/eval/regsim.scm
scheme
---------------------------------------------------------------------- The machine model ---------------------------------------------------------------------- ---------------------------------------------------------------------- ---------------------------------------------------------------------- -----------------...
Structure and Interpretation of Computer Programs , 2nd edition Register machine simulator (define (make-machine register-names ops controller-text) (let ((machine (make-new-machine))) (for-each (lambda (register-name) ((machine 'allocate-register) register-name)) register-names) ((machine '...
94d194753ba79caf59c0d8d4ca6c312f4e2d64c166af86aedc8fdd372aa2ffe4
jrh13/hol-light
make.ml
(* ========================================================================= *) Permuted lists , finite permutations and quick sort . (* *) Author : Univ...
null
https://raw.githubusercontent.com/jrh13/hol-light/d125b0ae73e546a63ed458a7891f4e14ae0409e2/Permutation/make.ml
ocaml
========================================================================= /~maggesi/ =======================================...
Permuted lists , finite permutations and quick sort . Author : University of Florence , Italy ( c ) Copyright , , 2005 - 2007 loadt "Permutation/moreli...
661d858aadd1b2d830039a3597667f0f1c5daf7484f0ac88f8633833ca8c607a
camsaul/lein-check-namespace-decls
core.clj
(ns project.invalid-file.core (:require [clojure.string :as str])) (defn hello [] (str/join ["HEL" "LO"]))
null
https://raw.githubusercontent.com/camsaul/lein-check-namespace-decls/56f8ddd1b5654862073565287bceac008d7c37ce/test-namespaces/invalid_file/core.clj
clojure
(ns project.invalid-file.core (:require [clojure.string :as str])) (defn hello [] (str/join ["HEL" "LO"]))
e4330edb3c4162b7a999934db350fea0c9b44db9328d664331a6ba0fc43dbd4b
swarmpit/swarmpit
info.cljs
(ns swarmpit.component.volume.info (:require [material.icon :as icon] [material.components :as comp] [material.component.form :as form] [material.component.label :as label] [material.component.list.basic :as list] [swarmpit.component.dialog :as dialog] ...
null
https://raw.githubusercontent.com/swarmpit/swarmpit/38ffbe08e717d8620bf433c99f2e85a9e5984c32/src/cljs/swarmpit/component/volume/info.cljs
clojure
(ns swarmpit.component.volume.info (:require [material.icon :as icon] [material.components :as comp] [material.component.form :as form] [material.component.label :as label] [material.component.list.basic :as list] [swarmpit.component.dialog :as dialog] ...
c215b02fb75f460df8b2662163c21771fc56b202b0c1db703382ad0a0f15883e
erlang/percept
percept_html.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2007 - 2016 . 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/erlang/percept/44ee3ca98bcd37dfab691072e953131107ebec55/src/percept_html.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 - 2016 . 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(percept_html). -export([page/3, codelocation_page/3, databases_page/3, load_datab...
f6504a25e3c46a736e6dbc0e075572b313850bc4087147595ffb46461753ede2
the-dr-lazy/cascade
Char.hs
| Module : Test . Cascade . Data . : ! ! ! INSERT MODULE SHORT DESCRIPTION ! ! ! Copyright : ( c ) 2020 - 2021 Cascade License : MPL 2.0 Maintainer : < > ( the-dr-lazy.github.io ) Stability : Stable Portability : POSIX ! ! ! INSERT MODULE LONG DESCRIPTION ! ! ! Module : Te...
null
https://raw.githubusercontent.com/the-dr-lazy/cascade/014a5589a2763ce373e8c84a211cddc479872b44/cascade-prelude/test/Test/Cascade/Data/Char.hs
haskell
| Module : Test . Cascade . Data . : ! ! ! INSERT MODULE SHORT DESCRIPTION ! ! ! Copyright : ( c ) 2020 - 2021 Cascade License : MPL 2.0 Maintainer : < > ( the-dr-lazy.github.io ) Stability : Stable Portability : POSIX ! ! ! INSERT MODULE LONG DESCRIPTION ! ! ! Module : Te...
f9de85ffdd6fe81d255293763fe98898a495bb49d9fec0331d96f989c791c032
facebook/flow
statusCommands.ml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/flow/b918b06104ac1489b516988707431d98833ce99f/src/commands/statusCommands.ml
ocaml
********************************************************************* flow status (report current error set) command impl ********************************************************************* explicit == called with "flow status ..." rather than simply "flow ..." match --version below
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
45d4267ec0202fa8dc0b68538ba97108548e410fc74f5d6bef1f4704ce87cb24
laser/cis-194-winter-2016
Types.hs
# LANGUAGE GeneralizedNewtypeDeriving # module Homework.Week11.Types where import Data.Int (Int64) import Data.Text (Text) import Database.SQLite.Simple (FromRow (..), field) import Database.SQLite.Simple.FromField (FromF...
null
https://raw.githubusercontent.com/laser/cis-194-winter-2016/6a9b7c958c896cd9f31a5d1dffb3f03145efb597/src/Homework/Week11/Types.hs
haskell
# LANGUAGE GeneralizedNewtypeDeriving # module Homework.Week11.Types where import Data.Int (Int64) import Data.Text (Text) import Database.SQLite.Simple (FromRow (..), field) import Database.SQLite.Simple.FromField (FromF...
53fe6ae5bd1387a5d26eaa2d35e0a8c519c3164c1d7b9472999c40d956fd361e
ocaml/ocaml
events.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml/ocaml/04ddddd0e1d2bf2acb5091f434b93387243d4624/debugger/events.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt OCaml port by and Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Instruct type code_event = { ev_frag : int; ...
440a6d176f632a1a3065b122dd9f879398ab1fc107074ddda4ba15325c6bbe27
lispgames/perfectstorm
toolbox.lisp
(in-package :toolbox) ;; ;; a mapcar that wraps ;; (defun mapwrap (fn list &rest lists) (let* ((input-lists (cons list lists)) (length (apply #'max (mapcar #'length input-lists))) (lists (make-list length :initial-element ()))) (loop for i from 0 to (- length 1) do (format t "~a~%" i...
null
https://raw.githubusercontent.com/lispgames/perfectstorm/a21e0420deb3ec83e9d776241ab37e78c5f29b94/toolbox/toolbox.lisp
lisp
a mapcar that wraps cycle something by a given offset self-explanatory :)
(in-package :toolbox) (defun mapwrap (fn list &rest lists) (let* ((input-lists (cons list lists)) (length (apply #'max (mapcar #'length input-lists))) (lists (make-list length :initial-element ()))) (loop for i from 0 to (- length 1) do (format t "~a~%" i) do (setf lists ...
13fb7e9ff475eb3d8810379d500a59d1d74fdb66decc09ece414e12334cc3524
coccinelle/coccinelle
context_neg.ml
* This file is part of Coccinelle , licensed under the terms of the GPL v2 . * See copyright.txt in the Coccinelle source code for more information . * The Coccinelle source code can be obtained at * This file is part of Coccinelle, licensed under the terms of the GPL v2. * See copyright.txt in the Cocci...
null
https://raw.githubusercontent.com/coccinelle/coccinelle/2d0014efa4c67f4c3b4687cbcddef7456bad9aac/parsing_cocci/context_neg.ml
ocaml
Detects subtrees that are all minus/plus and nodes that are "binding context nodes". The latter is a node whose structure and immediate tokens are the same in the minus and plus trees, and such that for every child, the set of context nodes in the child subtree is the same in the minus and plus subtrees. ----------...
* This file is part of Coccinelle , licensed under the terms of the GPL v2 . * See copyright.txt in the Coccinelle source code for more information . * The Coccinelle source code can be obtained at * This file is part of Coccinelle, licensed under the terms of the GPL v2. * See copyright.txt in the Cocci...
9f2b14a105b255d553f50e04ca971100f93ad3a814cc39da1beeb8161d878660
tschady/advent-of-code
d06.clj
(ns aoc.2017.d06 (:require [aoc.coll-util :refer [first-duplicate]] [aoc.file-util :as file-util])) (def input (file-util/read-ints "2017/d06.txt")) (defn realloc-blocks "Return next cycle of balancing memory blocks, by redistributing the blocks from the max bank, one-by-one, in order of index after...
null
https://raw.githubusercontent.com/tschady/advent-of-code/63db07edf0c60f2a575f9f4a1852d3b06dbb82f9/src/aoc/2017/d06.clj
clojure
(ns aoc.2017.d06 (:require [aoc.coll-util :refer [first-duplicate]] [aoc.file-util :as file-util])) (def input (file-util/read-ints "2017/d06.txt")) (defn realloc-blocks "Return next cycle of balancing memory blocks, by redistributing the blocks from the max bank, one-by-one, in order of index after...
5201cd6452e70896f6f61ba01ba04a2644ab3098e11a3c4170d19e3a15b3d7c4
tommaisey/aeon
pv-conformal-map.help.scm
;; (pv-conformal-map buffer real imag) ;; Applies the conformal mapping z send (z-a)/(1-za*) to the phase ;; vocoder bins z with a given by the real and imag imputs to the UGen . ;; See ;; buffer - buffer number of buffer to act on, passed in through a chain ;; real - real part of a. ;; imag - imaginary part ...
null
https://raw.githubusercontent.com/tommaisey/aeon/80744a7235425c47a061ec8324d923c53ebedf15/libs/third-party/sc3/rsc3/help/ugen/fft/pv-conformal-map.help.scm
scheme
(pv-conformal-map buffer real imag) Applies the conformal mapping z send (z-a)/(1-za*) to the phase vocoder bins z with a given by the real and imag imputs to the See buffer - buffer number of buffer to act on, passed in through a chain real - real part of a. imag - imaginary part of a.
UGen . (with-sc3 (lambda (fd) (async fd (b-alloc 10 1024 1)) (async fd (b-alloc 0 2048 1)))) (audition (out 0 (pan2 (ifft* (pv-conformal-map (fft* 10 (mul (sound-in 0) 0.5)) (mouse-x kr -1 1 0 0.1) (mouse-y kr -1 1 0 0.1))) 0 1))) (let* ((signal (lambda (n) (let* ((o (sin-osc kr (mix...
6c85c576e08f981907e3359d5480f6a81e8ddd7fa704152c8157dc267130d365
ocsigen/lwt
try_1.ml
let _ = try%lwt 5 with _ -> Lwt.return_unit;;
null
https://raw.githubusercontent.com/ocsigen/lwt/aa9d18a550da444e1a889867dad52a32f162b262/test/ppx_expect/cases/try_1.ml
ocaml
let _ = try%lwt 5 with _ -> Lwt.return_unit;;
698ca3672f4b68d68b0da2399bcd55b0157657713e4b84b0f949f46ac63b1934
hidaris/thinking-dumps
num.rkt
#lang typed/racket (define-type num (U Zero One_more_than)) (struct Zero () #:transparent) (struct One_more_than ([v : num]) #:transparent)
null
https://raw.githubusercontent.com/hidaris/thinking-dumps/3fceaf9e6195ab99c8315749814a7377ef8baf86/typed-racket/01-building-blocks/num.rkt
racket
#lang typed/racket (define-type num (U Zero One_more_than)) (struct Zero () #:transparent) (struct One_more_than ([v : num]) #:transparent)
aab62d12c0d2ecabfdb5e4165a1ff7815b21ff451de104d31b0ae9f2249a839c
jayunit100/RudolF
vennnmr.clj
(use 'clojure.contrib.str-utils2 ; 'clojure.contrib.generic.functor 'clojure.stacktrace) parse bmrb shift ;; parse shiftx shifts ;; compare shifts ;; load structure ;; display structure in jmol ;; plot comparison on jmol structure (defn convert-types "" [the-map] {:id (Integer/parseInt (the-...
null
https://raw.githubusercontent.com/jayunit100/RudolF/8936bafbb30c65c78b820062dec550ceeea4b3a4/bioclojure/src/sandbox/vennnmr.clj
clojure
'clojure.contrib.generic.functor parse shiftx shifts compare shifts load structure display structure in jmol plot comparison on jmol structure ignore header ?? is this function right?
(use 'clojure.contrib.str-utils2 'clojure.stacktrace) parse bmrb shift (defn convert-types "" [the-map] {:id (Integer/parseInt (the-map :id)) :resid (Integer/parseInt (the-map :resid)) :restype (the-map :restype) :atomtype (the-map :atomtype) :nucleus (the-map :nucleus) :...
cf3a4b03e9c7018d5c8dc99d8b1e78eed00b32e76cf8b9ea8f4677d800f58069
duo-lang/duo-lang
Typecheck.hs
module Typecheck where import Options (DebugFlags(..)) import Syntax.CST.Names import Driver.Driver (runCompilationModule, defaultInferenceOptions, adjustModulePath) import Driver.Definition (defaultDriverState, execDriverM, DriverState(..), setPrintGraphOpts, setDebugOpts, addModule) import Pretty.Errors (printLocate...
null
https://raw.githubusercontent.com/duo-lang/duo-lang/62305c16e219477d6e33287a7752c258b5342c3e/app/Typecheck.hs
haskell
module Typecheck where import Options (DebugFlags(..)) import Syntax.CST.Names import Driver.Driver (runCompilationModule, defaultInferenceOptions, adjustModulePath) import Driver.Definition (defaultDriverState, execDriverM, DriverState(..), setPrintGraphOpts, setDebugOpts, addModule) import Pretty.Errors (printLocate...
09ccdde28ce272c7c0d7a1c5235f08a9b2a58832b59565d80a7e54796595cf89
janestreet/base_quickcheck
test_test.ml
open! Import module type S = Test.S module Config = Test.Config let default_config = Test.default_config let%expect_test ("default_config" [@tags "64-bits-only"]) = Ref.set_temporarily sexp_style To_string_hum ~f:(fun () -> print_s [%sexp (default_config : Config.t)]); [%expect {| ((seed (Determinis...
null
https://raw.githubusercontent.com/janestreet/base_quickcheck/b7f9c75fa9fdc8b8897880f3253ff60ec26131e7/test/src/test_test.ml
ocaml
success failure large sizes to demonstrate shrinking simple failure failure without shrinking failure from examples failure from examples without shrinking
open! Import module type S = Test.S module Config = Test.Config let default_config = Test.default_config let%expect_test ("default_config" [@tags "64-bits-only"]) = Ref.set_temporarily sexp_style To_string_hum ~f:(fun () -> print_s [%sexp (default_config : Config.t)]); [%expect {| ((seed (Determinis...
5ef0cb10e6a46c1a95b941b831f12dfc120c0be8fa71412061a361d98bfc09b9
clojure-interop/java-jdk
TreeCellRenderer.clj
(ns javax.swing.tree.TreeCellRenderer "Defines the requirements for an object that displays a tree node. See How to Use Trees in The Java Tutorial for an example of implementing a tree cell renderer that displays custom icons." (:refer-clojure :only [require comment defn ->]) (:import [javax.swing.tree Tr...
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.swing/src/javax/swing/tree/TreeCellRenderer.clj
clojure
(ns javax.swing.tree.TreeCellRenderer "Defines the requirements for an object that displays a tree node. See How to Use Trees in The Java Tutorial for an example of implementing a tree cell renderer that displays custom icons." (:refer-clojure :only [require comment defn ->]) (:import [javax.swing.tree Tr...
99a0f57ec3717e05c4e3bea7781351a20a73a74fc6899c2247d01c2a08cebb3a
cffi/cffi
funcall.lisp
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*- ;;; funcall.lisp -- FOREIGN - FUNCALL implementation using libffi ;;; Copyright ( C ) 2009 , 2010 , 2011 ;;; ;;; Permission is hereby granted, free of charge, to any person ;;; obtaining a copy of this software and associated documentation files ( the " Softwa...
null
https://raw.githubusercontent.com/cffi/cffi/03c3e4fecf210614eef878256972de1949969a07/libffi/funcall.lisp
lisp
-*- Mode: lisp; indent-tabs-mode: nil -*- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies furnished to...
funcall.lisp -- FOREIGN - FUNCALL implementation using libffi Copyright ( C ) 2009 , 2010 , 2011 files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial portions of the Software . THE SOFTWARE I...
17cc7970f7b12986553ff5e6a9f2a6a9885cf9c2552f9ea8b761ee93204c9c52
google/hrepl
Chain1.hs
Copyright 2020 Google LLC -- 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 un...
null
https://raw.githubusercontent.com/google/hrepl/2648a55cc38407c5b60a3a086217e2d827ca6cb6/hrepl/tests/dupes/Chain1.hs
haskell
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing per...
Copyright 2020 Google LLC Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , module Chain1 where chain1 f = appendFile f "d"
a54f251c6742c555bdadf07ad1475346db204e7d61ec4ff99f608a0538300f10
cubicle-model-checker/cubicle
gc.ml
type control = { mutable minor_heap_size : int; mutable major_heap_increment : int; mutable space_overhead : int; mutable verbose : int; mutable max_overhead : int; mutable stack_limit : int; } let gc = { minor_heap_size = 0; major_heap_increment = 0; space_overhead = 0; verbose = 0; max_overhea...
null
https://raw.githubusercontent.com/cubicle-model-checker/cubicle/00f09bb2d4bb496549775e770d7ada08bc1e4866/try-cubicle/gc.ml
ocaml
type control = { mutable minor_heap_size : int; mutable major_heap_increment : int; mutable space_overhead : int; mutable verbose : int; mutable max_overhead : int; mutable stack_limit : int; } let gc = { minor_heap_size = 0; major_heap_increment = 0; space_overhead = 0; verbose = 0; max_overhea...
62a8287863bde3b3f4f0ffd76eec16b76d1d0f56968729e9409a36ac9dc97ac9
chrishowejones/blog-film-ratings
index.clj
(ns film-ratings.views.index (:require [film-ratings.views.template :refer [page]])) (defn list-options [] (page [:div.container.jumbotron.bg-white.text-center [:row [:p [:a.btn.btn-primary {:href "/add-film"} "Add a Film"]]] [:row [:p [:a.btn.btn-primary {:href "/list-films...
null
https://raw.githubusercontent.com/chrishowejones/blog-film-ratings/652ca2aec583db4b91e60ef4008b08b388cca80a/src/film_ratings/views/index.clj
clojure
(ns film-ratings.views.index (:require [film-ratings.views.template :refer [page]])) (defn list-options [] (page [:div.container.jumbotron.bg-white.text-center [:row [:p [:a.btn.btn-primary {:href "/add-film"} "Add a Film"]]] [:row [:p [:a.btn.btn-primary {:href "/list-films...
72667d03f3bfe7723ae7e41a0f48b1668c3c4656af6a052e52fdb884b110b8bb
AbstractMachinesLab/caramel
emitter.ml
open MenhirSdk.Cmly_api open Utils open Attributes open Synthesis open Recovery_intf let menhir = "MenhirInterpreter" (* Generation scheme doing checks and failing at runtime, or not ... *) let safe = false type var = int module Codesharing (G : GRAMMAR) (S : SYNTHESIZER with module G := G) (R : RECOVER...
null
https://raw.githubusercontent.com/AbstractMachinesLab/caramel/7d4e505d6032e22a630d2e3bd7085b77d0efbb0c/vendor/ocamlformat-0.17.0/vendor/parse-wyc/menhir-recover/emitter.ml
ocaml
Generation scheme doing checks and failing at runtime, or not ... Rewrite trivial indirections: Seq [x] => x ys @ [Seq xs] => ys @ xs Find sharing opportunities. If the same sequence of action occurs multiple times, the funtion will associate a unique identifier to the sequence. [sh...
open MenhirSdk.Cmly_api open Utils open Attributes open Synthesis open Recovery_intf let menhir = "MenhirInterpreter" let safe = false type var = int module Codesharing (G : GRAMMAR) (S : SYNTHESIZER with module G := G) (R : RECOVERY with module G := G) : sig type instr = | IRef of var | IAbor...