_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
1abe7ebe87c409ce80bd71e8597bf567a4faf203f4ebd73b9d340e733d3c82b2
rd--/hsc3
sms.help.hs
sms ; sine reconstruction left channel , noises on right ( sample rate must be 44100 ) let z = soundIn 0 y = mouseY kr 1 50 Linear 0.2 x = mouseX kr 0.5 4 Linear 0.2 in X.sms {- ar -} z 50 y 8 0.3 x 0 0 0 1 (-1) -- sms ; default param let z = soundIn 0 in X.sms {- ar -} z 80 80 4 0.2 1 0 0 0 1 (-1)
null
https://raw.githubusercontent.com/rd--/hsc3/60cb422f0e2049f00b7e15076b2667b85ad8f638/Help/Ugen/sms.help.hs
haskell
ar sms ; default param ar
sms ; sine reconstruction left channel , noises on right ( sample rate must be 44100 ) let z = soundIn 0 y = mouseY kr 1 50 Linear 0.2 x = mouseX kr 0.5 4 Linear 0.2 let z = soundIn 0
cd73c478ea2954933d07d349301ab71c0070ea701486349410025fd95e56d2af
lispnik/iup
plot-cffi.lisp
(defpackage #:iup-plot-cffi (:use #:common-lisp) (:import-from #:tecgraf-base #:ihandle)) (in-package #:iup-plot-cffi) (cffi:define-foreign-library iup-plot (:unix "libiup_plot.so") (:windows "iup_plot.dll") (t (:default "iup_plot"))) (cffi:use-foreign-library iup-plot) (cffi:defcfun (%iup-plot-open "IupP...
null
https://raw.githubusercontent.com/lispnik/iup/f8e5f090bae47bf8f91ac6fed41ec3bc01061186/plot/plot-cffi.lisp
lisp
int IupPlotSetFormula(Ihandle* ih, int sample_count, const char* formula, const char* init);
(defpackage #:iup-plot-cffi (:use #:common-lisp) (:import-from #:tecgraf-base #:ihandle)) (in-package #:iup-plot-cffi) (cffi:define-foreign-library iup-plot (:unix "libiup_plot.so") (:windows "iup_plot.dll") (t (:default "iup_plot"))) (cffi:use-foreign-library iup-plot) (cffi:defcfun (%iup-plot-open "IupP...
9869b139b234c3c07594583b1aa4e1974d64642a5315a2624551da1351c31092
daveray/dorothy
swing.clj
Copyright ( c ) , 2011 . 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/daveray/dorothy/207570804dfda2162a15b9ee55b5e76ec6e1ecfa/src/dorothy/examples/swing.clj
clojure
The use and distribution terms for this software are covered by the 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 this notice, or any other, from this software. An...
Copyright ( c ) , 2011 . All rights reserved . Eclipse Public License 1.0 ( -1.0.php ) (ns dorothy.examples.swing (:use dorothy.core) (:import [javax.swing JPanel JButton JLabel])) (def widgets (doto (JPanel.) (.add (JLabel. "First")) (.add (JButton. "Second")) (.add (doto (JPanel. ) ...
5d577d1221b5b4db5ec77d56f05e6388723cb8f85dc4efa4a878e3727b1210f5
music-suite/music-pitch
Names.hs
-- | Common pitch names in various (human) languages. module Music.Pitch.Common.Names ( Language(..), Mode(..), showKey, showPitch, showMode, showSep, ) where import Music.Pitch.Literal import Music.Pitch.Common.Pitch import Music.Pitch.Common.Interval import Data.Maybe import qu...
null
https://raw.githubusercontent.com/music-suite/music-pitch/65541021ae9f5bdaad26a02e622c88d60f068f63/src/Music/Pitch/Common/Names.hs
haskell
| Common pitch names in various (human) languages. Original at Use convertcsv.com to convert to JSON array es, fb, [[language,major,minor]] [(language,separator)]
module Music.Pitch.Common.Names ( Language(..), Mode(..), showKey, showPitch, showMode, showSep, ) where import Music.Pitch.Literal import Music.Pitch.Common.Pitch import Music.Pitch.Common.Interval import Data.Maybe import qualified Data.List data Language = English | Germ...
b3a175f4cb853d6b2d4a8142ea40acbed8e75ea36ec3cc994c40452911a6126d
rd--/hsc3
n_query.help.hs
Sound.Sc3.Lang.Help.viewServerHelp "/n_query" > import Sound.OSC {- hosc -} > import Sound.Sc3 {- hsc3 -} > d_00 = > let f = control KR "freq" 440 > o = saw AR f * 0.1 > in synthdef "saw" (out 0 o) > m_00 = s_new0 "saw" 1000 AddToTail 1 > withSc3 (async_ (d_recv d_00) >> sendMessage m_00) > x_01 :...
null
https://raw.githubusercontent.com/rd--/hsc3/024d45b6b5166e5cd3f0142fbf65aeb6ef642d46/Help/Server/n_query.help.hs
haskell
hosc hsc3
Sound.Sc3.Lang.Help.viewServerHelp "/n_query" > d_00 = > let f = control KR "freq" 440 > o = saw AR f * 0.1 > in synthdef "saw" (out 0 o) > m_00 = s_new0 "saw" 1000 AddToTail 1 > withSc3 (async_ (d_recv d_00) >> sendMessage m_00) > x_01 :: Transport m => m Message > x_01 = withNotifications $ do >...
b333ec44799257b455ced195de363f48724c7035602f96ee27e64495f4f1cec2
YoEight/eventstore
Stopwatch.hs
-------------------------------------------------------------------------------- -- | -- Module : Database.EventStore.Internal.Stopwatch Copyright : ( C ) 2017 -- License : (see the file LICENSE) -- Maintainer : < > -- Stability : provisional -- Portability : non-portable -- -----------------------------------...
null
https://raw.githubusercontent.com/YoEight/eventstore/8ca0f72acfc85b97de0a1862d38ee6e9f2ae2e4c/Database/EventStore/Internal/Stopwatch.hs
haskell
------------------------------------------------------------------------------ | Module : Database.EventStore.Internal.Stopwatch License : (see the file LICENSE) Stability : provisional Portability : non-portable ------------------------------------------------------------------------------ ---------------------...
Copyright : ( C ) 2017 Maintainer : < > module Database.EventStore.Internal.Stopwatch ( Stopwatch , newStopwatch , stopwatchElapsed ) where import Data.Time import Database.EventStore.Internal.Prelude data Internal = Internal { _lastTime :: !UTCTime , _acc :: !NominalDiffTime ...
b7c1dad4cf035deb1e4057224d8670b5782049e4e0c0d69d97604360b943b3e6
abailly/hevents
Store.hs
# LANGUAGE DeriveGeneric # {-| Interface and types for persisting events in an underlying `Store` -} module Hevents.Eff.Store(module Hevents.Eff.Store.Events, Reader,StoreError(..),Count(..),Offset(..), Versionable(..), Version(..), StoreOpe...
null
https://raw.githubusercontent.com/abailly/hevents/d38789bf5ae787c35d496b72fe47419d965032de/src/Hevents/Eff/Store.hs
haskell
| Interface and types for persisting events in an underlying `Store` ^Storage Engine ^Pre-treatment action that returns something to serialize or an error that is passed down to post as is ^Post-treatment action that provides some result out of storage result or error in pre-treatment |Operations provided by the ...
# LANGUAGE DeriveGeneric # module Hevents.Eff.Store(module Hevents.Eff.Store.Events, Reader,StoreError(..),Count(..),Offset(..), Versionable(..), Version(..), StoreOperation(..), StorageResult(..), Store(..) ) where...
22a059fd79dbbb676320530eb29745c2e2d59e54e38cb5a27610fa449d237b5d
klarna/jesse
jesse_validator_draft3.erl
%%%============================================================================= Copyright 2014 Klarna AB %% 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 %% %% Unles...
null
https://raw.githubusercontent.com/klarna/jesse/830738e8a03413851cc48a55a5e70f459391cc00/src/jesse_validator_draft3.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...
Copyright 2014 Klarna AB Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @doc Json schema validation module . This module is the core of jesse , it implements the validation functionality -module(jesse_validator_draft3...
b03275695dd70b6ea407dcfdb7a35546a83745791a9da9378ce52d2200d74476
ogaml/ogaml
vector3f.ml
exception Vector3f_exception of string type t = {x : float; y : float; z : float} let make x y z = {x; y; z} let zero = {x = 0.; y = 0.; z = 0.} let unit_x = {x = 1.; y = 0.; z = 0.} let unit_y = {x = 0.; y = 1.; z = 0.} let unit_z = {x = 0.; y = 0.; z = 1.} let add u v = { x = u.x +. v.x; y = u.y +. v.y;...
null
https://raw.githubusercontent.com/ogaml/ogaml/5e74597521abf7ba2833a9247e55780eabfbab78/src/math/vector3f.ml
ocaml
exception Vector3f_exception of string type t = {x : float; y : float; z : float} let make x y z = {x; y; z} let zero = {x = 0.; y = 0.; z = 0.} let unit_x = {x = 1.; y = 0.; z = 0.} let unit_y = {x = 0.; y = 1.; z = 0.} let unit_z = {x = 0.; y = 0.; z = 1.} let add u v = { x = u.x +. v.x; y = u.y +. v.y;...
124e0aeddbc92a6962ef350db1f5c60ce530ad00bf95a13965fc32dce54295a1
kunstmusik/music-examples
features.clj
(ns music-examples.features (:require [score.core :refer :all] [score.freq :refer :all] [score.sieves :refer :all]) (:require [pink.simple :refer :all] [pink.engine :refer :all] [pink.config :refer :all] [pink.control :refer :all] [pink.filte...
null
https://raw.githubusercontent.com/kunstmusik/music-examples/6d0410be272d0b86c1851e943c07515af37e5f7a/src/music_examples/features.clj
clojure
Example of using various features from Pink and Score ====================== INSTRUMENT DEFINITIONS ====================== AUDIO GRAPH SETUP ================= ===================== PERFORMANCE FUNCTIONS ===================== ===== ===== Set tempo of engine glissandi score fragment with higher-order e...
(ns music-examples.features (:require [score.core :refer :all] [score.freq :refer :all] [score.sieves :refer :all]) (:require [pink.simple :refer :all] [pink.engine :refer :all] [pink.config :refer :all] [pink.control :refer :all] [pink.filte...
af062670bcbf6104b70be68c94ba872aa1fe14191e3addd03e4d231285e42267
karamellpelle/grid
Dot.hs
grid is a game written in Haskell Copyright ( C ) 2018 -- -- This file is part of grid. -- -- grid 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 optio...
null
https://raw.githubusercontent.com/karamellpelle/grid/56729e63ed6404fd6cfd6d11e73fa358f03c386f/source/Game/LevelPuzzle/LevelPuzzleWorld/Dot.hs
haskell
This file is part of grid. grid is free software: you can redistribute it and/or modify (at your option) any later version. grid 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 GN...
grid is a game written in Haskell Copyright ( C ) 2018 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 module Game.LevelPuzzle.LevelPuzzleWorld.Dot ( ...
bf3840b576c0ce3d7aa96e29710b4401847214c74e5d711d54daf232c55a3533
BillHallahan/G2
Test23.hs
{-@ LIQUID "--short-names" @-} {-@ LIQUID "--no-termination" @-} {-@ LIQUID "--prune-unsorted" @-} module ListQualif ( List ) where import Prelude hiding (foldr, map) import Data.List (minimumBy) import qualified Data.Map as M infixr 9 :+: data List a = Emp | (:+:) a (List a) deriving (Eq,...
null
https://raw.githubusercontent.com/BillHallahan/G2/4d287df8ed7ba13c06d96d4911b9eedf870e80a1/tests/LiquidInf/Artificial/Pos/Test23.hs
haskell
@ LIQUID "--short-names" @ @ LIQUID "--no-termination" @ @ LIQUID "--prune-unsorted" @ @ invariant {v:List a | 0 <= size v} @ | N-Dimensional Point @ type PointN N = ListN Double N @ @ type CenterK K = {v:Int | 0 <= v && v < K} @
module ListQualif ( List ) where import Prelude hiding (foldr, map) import Data.List (minimumBy) import qualified Data.Map as M infixr 9 :+: data List a = Emp | (:+:) a (List a) deriving (Eq, Ord, Show) @ measure size : : List a - > Int size ( Emp ) = 0 size ( (:...
514f20c4776534a05314d2501ff15a2622d83e6504bdc5e5d96bb8750c37858f
louispan/data-diverse
Internal.hs
{-# OPTIONS_GHC -Wno-redundant-constraints #-} # LANGUAGE AllowAmbiguousTypes # {-# LANGUAGE BangPatterns #-} # LANGUAGE CPP # {-# LANGUAGE ConstraintKinds #-} # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE InstanceSigs # # LANGUAGE KindSignatures ...
null
https://raw.githubusercontent.com/louispan/data-diverse/4033c90c44dab5824f76d64b7128bb6dea2b5dc7/src/Data/Diverse/Many/Internal.hs
haskell
# OPTIONS_GHC -Wno-redundant-constraints # # LANGUAGE BangPatterns # # LANGUAGE ConstraintKinds # # LANGUAGE GADTs # # LANGUAGE RankNTypes # * 'Many' type Exporting constructor unsafely! * Isomorphism * Construction * Simple queries * Single field ** Getter for single field ** Setter for single field * Multipl...
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE CPP # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE InstanceSigs # # LANGUAGE KindSignatures # # LANGUAGE MultiParamTypeClasses # # LANGUAGE PolyKinds # # LANGUAGE RoleAnnotations # # LANGUAGE ScopedTypeVariables # # LANGUAGE ...
9b7509034c9ccf9b183e990626ac629c887f5c461563883279d94bf948137e89
DSiSc/why3
hypothesis_selection.ml
(********************************************************************) (* *) The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2018 -- Inria - CNRS - Paris - Sud University (* ...
null
https://raw.githubusercontent.com/DSiSc/why3/8ba9c2287224b53075adc51544bc377bc8ea5c75/plugins/transform/hypothesis_selection.ml
ocaml
****************************************************************** This software is distributed under the terms of the GNU Lesser on linking described in file LICENSE. ...
The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2018 -- Inria - CNRS - Paris - Sud University General Public License version 2.1 , with the special exception s Transformation which removes most hypothesis , only keeping the one a graph - based heuristic finds cl...
cb2a8ff21c477b64a757fb57365c4d23411db84275cf9041a11ee547e6444f6f
gabebw/croniker
Settings.hs
module Handler.Settings ( getSettingsR , postSettingsR ) where import Import data FormSettings = FormSettings { publicRssFeed :: Bool } getSettingsR :: Handler Html getSettingsR = do euser <- requireAuth (widget, enctype) <- generateFormPost $ settingsForm euser defaultLayout $ do ...
null
https://raw.githubusercontent.com/gabebw/croniker/89f081738c229a3302af3b0123fea208bccbda11/Handler/Settings.hs
haskell
module Handler.Settings ( getSettingsR , postSettingsR ) where import Import data FormSettings = FormSettings { publicRssFeed :: Bool } getSettingsR :: Handler Html getSettingsR = do euser <- requireAuth (widget, enctype) <- generateFormPost $ settingsForm euser defaultLayout $ do ...
7d62298cf292822387f194a360f896168a6569b09894de5dbdffd89dc73ed3a8
mitchellwrosen/riak2
Quorum.hs
module Riak.Quorum ( Quorum(..) , ReadQuorum(..) , NotfoundOk(..) , WriteQuorum(..) ) where import RiakQuorum (Quorum(..)) import RiakReadQuorum (NotfoundOk(..), ReadQuorum(..)) import RiakWriteQuorum (WriteQuorum(..))
null
https://raw.githubusercontent.com/mitchellwrosen/riak2/d3c4ef4389012c70e72623cdf9a4caec0a07e568/riak2/public/Riak/Quorum.hs
haskell
module Riak.Quorum ( Quorum(..) , ReadQuorum(..) , NotfoundOk(..) , WriteQuorum(..) ) where import RiakQuorum (Quorum(..)) import RiakReadQuorum (NotfoundOk(..), ReadQuorum(..)) import RiakWriteQuorum (WriteQuorum(..))
447bf5437f1efc4882ec61f5495d0f552ff1680732c1c27b5c0284378b45487a
Guest0x0/pruning-tutor
Typecheck.ml
open Syntax open Value open Normalize type context = { level : int ; venv : value list ; tenv : Value.env } let empty_ctx = { level = 0 ; venv = [] ; tenv = Empty } let add_bound name typ ctx = { level = ctx.level + 1 ; venv = stuck_local ctx.level :: ctx.venv ; tenv = Bou...
null
https://raw.githubusercontent.com/Guest0x0/pruning-tutor/c2baf3eaa398e606924fe51b75928f409eeba476/typed-meta/Typecheck.ml
ocaml
type-in-type, for simplicity
open Syntax open Value open Normalize type context = { level : int ; venv : value list ; tenv : Value.env } let empty_ctx = { level = 0 ; venv = [] ; tenv = Empty } let add_bound name typ ctx = { level = ctx.level + 1 ; venv = stuck_local ctx.level :: ctx.venv ; tenv = Bou...
776e430a6018ec87fad6f43bd6895f3ec01b481b39eb0f67729cd7136a5d1be7
clj-kafka/franzy
schema.clj
(ns franzy.clients.connect.schema (:require [schema.core :as s] [franzy.common.schema :as fs] [franzy.common.models.schema :as fms])) ;;TODO: more restrictive schema + review (def KafkaConnectConfig "Schema for a Kafka Connect Config. Note: Although Kafka Connect itself is not yet (or ev...
null
https://raw.githubusercontent.com/clj-kafka/franzy/6c2e2e65ad137d2bcbc04ff6e671f97ea8c0e380/core/src/franzy/clients/connect/schema.clj
clojure
TODO: more restrictive schema + review TODO: more strict schema TODO: class TODO: class TODO: class TODO: class TODO: list
(ns franzy.clients.connect.schema (:require [schema.core :as s] [franzy.common.schema :as fs] [franzy.common.models.schema :as fms])) (def KafkaConnectConfig "Schema for a Kafka Connect Config. Note: Although Kafka Connect itself is not yet (or ever - rumblings about deprecation, also pr...
c293ca64108f11214531fc59fc48075d82c154976fac2c73cbde23ea8d71ae30
mark-watson/loving-common-lisp
read-test-1.lisp
(defun read-test-1 () "read a maximum of 1000 expresions from the file 'test.dat'" (with-open-file (input-stream "test.dat" :direction :input) (dotimes (i 1000) (let ((x (read input-stream nil nil))) (if (null x) (return)) ;; break out of the 'dotimes' loop (format t "next expression in fil...
null
https://raw.githubusercontent.com/mark-watson/loving-common-lisp/32f6abf3d2e500baeffd15c085a502b03399a074/src/code_snippets_for_book/read-test-1.lisp
lisp
break out of the 'dotimes' loop
(defun read-test-1 () "read a maximum of 1000 expresions from the file 'test.dat'" (with-open-file (input-stream "test.dat" :direction :input) (dotimes (i 1000) (let ((x (read input-stream nil nil))) (format t "next expression in file: ~S~%" x)))))
29b6a6328864302b69ef4eac5a28c852518edca1110d5342f17fd7557f8963c8
EarnestResearch/honeycomb-haskell
HoneyServerOptions.hs
{-# LANGUAGE StrictData #-} module Honeycomb.Core.Types.HoneyServerOptions ( HoneyServerOptions, blockOnResponseL, maxBatchSizeL, sendFrequencyL, maxConcurrentBatchesL, pendingWorkCapacityL, httpLbsL, defaultHoneyServerOptions, defaultHoneyTestServerOptions, ) where import qualified...
null
https://raw.githubusercontent.com/EarnestResearch/honeycomb-haskell/0cb643a637e1b23eecded845970e6a973f8385cf/honeycomb/src/Honeycomb/Core/Types/HoneyServerOptions.hs
haskell
# LANGUAGE StrictData # | Frequency of batch sending in milliseconds 100 ms
module Honeycomb.Core.Types.HoneyServerOptions ( HoneyServerOptions, blockOnResponseL, maxBatchSizeL, sendFrequencyL, maxConcurrentBatchesL, pendingWorkCapacityL, httpLbsL, defaultHoneyServerOptions, defaultHoneyTestServerOptions, ) where import qualified Data.ByteString.Lazy as LBS...
d8c3936c7813c2ed6c40893d8d4d5880b17d23d0e6db8b114067cccb18ee40f8
ujihisa/cloft
zhelpers.clj
;; The file is adapted from zilch, with some other useful helper methods. ;; ;; (ns cloft.zhelpers (:refer-clojure :exclude [send]) (:import [org.jeromq ZMQ ZMQ$Context ZMQ$Socket ZMQQueue]) (:import (java.util Random) (java.nio ByteBuffer))) (defn context [threads] (ZMQ/context threads)) (defmacr...
null
https://raw.githubusercontent.com/ujihisa/cloft/98284fa763d16280d4685478b2be2ab0efbb00b0/src/cloft/zhelpers.clj
clojure
The file is adapted from zilch, with some other useful helper methods.
(ns cloft.zhelpers (:refer-clojure :exclude [send]) (:import [org.jeromq ZMQ ZMQ$Context ZMQ$Socket ZMQQueue]) (:import (java.util Random) (java.nio ByteBuffer))) (defn context [threads] (ZMQ/context threads)) (defmacro with-context [id threads & body] `(let [~id (context ~threads)] (try ~...
cea674d108eb50b402e89591cf9bbcb8d65d952c4fa5fafa8b5e5cd972c2f39a
Apress/beg-haskell
TypeClasses.hs
module Chapter4.TypeClasses where class Nameable n where name :: n -> String initial :: Nameable n => n -> Char initial n = head (name n) data Client i = GovOrg { clientId :: i, clientName :: String } | Company { clientId :: i, clientName :: String , person :: Person, duty :...
null
https://raw.githubusercontent.com/Apress/beg-haskell/aaacbf047d553e6177c38807e662cc465409dffd/chapter4/src/Chapter4/TypeClasses.hs
haskell
module Chapter4.TypeClasses where class Nameable n where name :: n -> String initial :: Nameable n => n -> Char initial n = head (name n) data Client i = GovOrg { clientId :: i, clientName :: String } | Company { clientId :: i, clientName :: String , person :: Person, duty :...
23d2e4599d9a125a78d1547c4c48ce661502304d9b4a32e3d6d1be30c7b083ad
jfeser/L2
v2_engine_tests.ml
open Core open OUnit2 open L2 open Synthesis_common open Hypothesis open V2_engine module Sym = L2_Generalizer.Symbols module Gen = L2_Generalizer.With_components module Mem = Memoizer let cost_model = default_cost_model let top = Specification.top let cost_model_tests = "cost-model" >::: [ test_case (fun ctxt -...
null
https://raw.githubusercontent.com/jfeser/L2/a66659c7d75f75788c48a17b531045fb3d5f8351/test/v2_engine_tests.ml
ocaml
let memoizer_tests = "memoizer" >::: [ "get" >::: [ test_case (fun _ -> let m = create_memoizer () in assert_raises ~msg:"Out of bounds cost should raise Invalid_argument." (Invalid_argument "Argument out of range.") (fun () -> ); test_case (fun _ -...
open Core open OUnit2 open L2 open Synthesis_common open Hypothesis open V2_engine module Sym = L2_Generalizer.Symbols module Gen = L2_Generalizer.With_components module Mem = Memoizer let cost_model = default_cost_model let top = Specification.top let cost_model_tests = "cost-model" >::: [ test_case (fun ctxt -...
aba04e0b278821f7ef65a0b755ce1e3f47e7f3f7511207940f53a3e4c8bcede4
ds-wizard/engine-backend
WebsocketSpec.hs
module Wizard.Specs.Websocket.Questionnaire.Detail.WebsocketSpec where import Test.Hspec hiding (shouldBe) import Wizard.Model.Context.AppContext import Wizard.Specs.Websocket.Questionnaire.Detail.AddCommentSpec import Wizard.Specs.Websocket.Questionnaire.Detail.ClearReplySpec import Wizard.Specs.Websocket.Questionn...
null
https://raw.githubusercontent.com/ds-wizard/engine-backend/8f2fadd4a0dae84eb1f5f09230c4c5b58ac3e18d/engine-wizard/test/Wizard/Specs/Websocket/Questionnaire/Detail/WebsocketSpec.hs
haskell
module Wizard.Specs.Websocket.Questionnaire.Detail.WebsocketSpec where import Test.Hspec hiding (shouldBe) import Wizard.Model.Context.AppContext import Wizard.Specs.Websocket.Questionnaire.Detail.AddCommentSpec import Wizard.Specs.Websocket.Questionnaire.Detail.ClearReplySpec import Wizard.Specs.Websocket.Questionn...
9f1ed0f8bde30e7a2410eef171d826a474aebce5609f8fd389066f376328cd3a
fxfactorial/ocaml-electron
electron_main.ml
(** These are modules mainly intended for usage from the main process *) open Nodejs module App = struct class app = object val raw_js = require_module "app" method version : string = m raw_js "getVersion" [||] |> Js.to_string method name : string = m raw_js "getName" [||] |> Js.to_st...
null
https://raw.githubusercontent.com/fxfactorial/ocaml-electron/95de2dbaa0543b8055c6aee9eae504368f1bc929/src/electron_main.ml
ocaml
* These are modules mainly intended for usage from the main process method cookies_get : * results in a hidden title bar and a full size content window, yet the title bar still has the standard window controls ("traffic lights") in the top left. * results in a hidden title bar with an alternati...
open Nodejs module App = struct class app = object val raw_js = require_module "app" method version : string = m raw_js "getVersion" [||] |> Js.to_string method name : string = m raw_js "getName" [||] |> Js.to_string method on_window_all_closed (f : (unit -> unit)) : unit = m ...
e38c7d3a807b13fb02bfb85e5750b129fc43ece7237d1c90567eec6669efa1ef
ranjitjhala/sprite-lang
Elaborate.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE TypeSynonymInstances #-} module Language.Sprite.L6.Elaborate (elaborate) where import qualified Data.Maybe as Mb import qualified Data.List as L import ...
null
https://raw.githubusercontent.com/ranjitjhala/sprite-lang/bebfa8a8de6d558853145cbed8c511daa9bda3c7/src/Language/Sprite/L6/Elaborate.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE TypeSynonymInstances # ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- trace _msg ----------------------------------------------------------------------------- let ...
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # module Language.Sprite.L6.Elaborate (elaborate) where import qualified Data.Maybe as Mb import qualified Data.List as L import Control.Exception (throw) import Control.Monad...
691540abb5a38652127f82a963355ed6b7fb727e1925aea994dacefc627b8441
gedge-platform/gedge-platform
rabbit_mgmt_wm_overview.erl
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 /. %% Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved . %% -module(rabbit_mgmt_wm_overview). -export([init/...
null
https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/rabbitmq_management/src/rabbit_mgmt_wm_overview.erl
erlang
-------------------------------------------------------------------- of this. And /nodes is not accessible to non-monitor users. -------------------------------------------------------------------- -------------------------------------------------------------------- Seconds | Interval rabbitmq/rabbitmq-managemen...
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 /. Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved . -module(rabbit_mgmt_wm_overview). -export([init/2]). -...
6e076cb01a0e32e55e859e92503537617697bc25a4cfed606868f47676ff9b5f
cpeikert/Lol
PrettyPrint.hs
| Module : Crypto . Lol . Utils . PrettyPrint Description : Pretty - printing for benchmark results . Copyright : ( c ) , 2011 - 2017 , 2011 - 2017 License : GPL-3 Maintainer : Stability : experimental Portability : POSIX Pretty - printing for benchmark resul...
null
https://raw.githubusercontent.com/cpeikert/Lol/4416ac4f03b0bff08cb1115c72a45eed1fa48ec3/lol/Crypto/Lol/Utils/PrettyPrint.hs
haskell
| Verbosity of benchmark output. ^ prints full criterion output for each benchmark | Options for printing benchmark summary. ^ Verbosity ^ Which levels of Lol to benchmark ^ Which operations to benchmark ^ Which parameters to benchmark ^ How many times larger a benchmark must be (compared to the minimum b...
| Module : Crypto . Lol . Utils . PrettyPrint Description : Pretty - printing for benchmark results . Copyright : ( c ) , 2011 - 2017 , 2011 - 2017 License : GPL-3 Maintainer : Stability : experimental Portability : POSIX Pretty - printing for benchmark resul...
7bfacfb39e2de83572f7515340850a10e0a2b3f35cdbbe031603253e97c02a19
40ants/lw-vim-mode
macros.lisp
(in-package :vim) Copied from fontlock.lisp in the editor sources (defmacro with-hidden-font-lock-changes (buffer &body body) (declare (ignorable buffer)) ; obviously this is wrong `(progn ,@body) #+nil (rebinding (buffer) (with-unique-names (modified writable) `(let ((editor::*dont-undo* t) ...
null
https://raw.githubusercontent.com/40ants/lw-vim-mode/ff4e825df34c02692e06da0aebabcabda5bb304a/macros.lisp
lisp
obviously this is wrong
(in-package :vim) Copied from fontlock.lisp in the editor sources (defmacro with-hidden-font-lock-changes (buffer &body body) (declare (ignorable buffer)) `(progn ,@body) #+nil (rebinding (buffer) (with-unique-names (modified writable) `(let ((editor::*dont-undo* t) (,modified (buffer-...
2def8a70a9fef220c6657e9f93885b788c6e78fcc638bcbbf96010f3fd07144c
antoniogarrote/clj-ml
classifiers.clj
;; ;; Classifiers @author ;; (ns #^{:author "Antonio Garrote <>"} clj-ml.classifiers "This namespace contains several functions for building classifiers using different classification algorithms: Bayes networks, multilayer perceptron, decission tree or support vector machines are available. Some of these...
null
https://raw.githubusercontent.com/antoniogarrote/clj-ml/a6e3a41b7eed0c31ea344b286ebbeb0e81ce68bc/src/clj_ml/classifiers.clj
clojure
Classifiers Building a classifier using a C4.5 decission tree We set the class attribute for the loaded dataset. *dataset* is supposed to contain a set of instances. Training the classifier We evaluate the classifier using a test dataset We retrieve some data from the evaluation result A trained classifier c...
@author (ns #^{:author "Antonio Garrote <>"} clj-ml.classifiers "This namespace contains several functions for building classifiers using different classification algorithms: Bayes networks, multilayer perceptron, decission tree or support vector machines are available. Some of these classifiers have inc...
0c2fd959a8de44735117b598e246aa38c73ebb80aa55ea027e6cb8d475ca79b6
basho/yokozuna
yz_stat.erl
%% ------------------------------------------------------------------- Copyright ( c ) 2013 Basho Technologies , Inc. 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 obtai...
null
https://raw.githubusercontent.com/basho/yokozuna/e15fe64f9ef9318c0cc21754f3dfdd073d2dc77d/src/yz_stat.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 permission...
Copyright ( c ) 2013 Basho Technologies , Inc. 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 @doc y...
85a8153612bfa468369daf58fdd48505848b779f30f763d051ac85cc975fb5e9
haskell/aeson
Time.hs
# LANGUAGE NoImplicitPrelude # module Data.Aeson.Parser.Time ( run , day , month , quarter , localTime , timeOfDay , timeZone , utcTime , zonedTime ) where import Prelude.Compat import Data.Attoparsec.Text (Parser) import Data.Text (Text) import Data.Time.Calendar (Day) ...
null
https://raw.githubusercontent.com/haskell/aeson/d711df76b826942f4a9e791712512c6b19b8c1c8/src/Data/Aeson/Parser/Time.hs
haskell
| Parse a date of the form @[+,-]YYYY-MM-DD@. | Parse a date of the form @[+,-]YYYY-MM@. | Parse a date of the form @[+,-]YYYY-QN@. | Parse a time of the form @HH:MM[:SS[.SSS]]@. | Parse a time zone, and return 'Nothing' if the offset from UTC is and may be followed by a fractional component. | Behaves as 'zoned...
# LANGUAGE NoImplicitPrelude # module Data.Aeson.Parser.Time ( run , day , month , quarter , localTime , timeOfDay , timeZone , utcTime , zonedTime ) where import Prelude.Compat import Data.Attoparsec.Text (Parser) import Data.Text (Text) import Data.Time.Calendar (Day) ...
d3426e56cfb4d916dd2f9d9bd73ac56e59800420b1d8867454b591a9b0ddad63
ocaml-sf/learn-ocaml-corpus
i1_i2_duplicate.ml
(* Beautiful inefficient definition: *) let rec inorder t = match t with | Leaf -> [] | Node (u, x, v) -> inorder u @ [x] @ inorder v let rec preorder t = match t with | Leaf -> [] | Node (u, x, v) -> [x] @ preorder u @ preorder v let i1, i2 = Node (Node (Leaf, 'a', Leaf), 'a', ...
null
https://raw.githubusercontent.com/ocaml-sf/learn-ocaml-corpus/7dcf4d72b49863a3e37e41b3c3097aa4c6101a69/exercises/fpottier/stereo/wrong/i1_i2_duplicate.ml
ocaml
Beautiful inefficient definition:
let rec inorder t = match t with | Leaf -> [] | Node (u, x, v) -> inorder u @ [x] @ inorder v let rec preorder t = match t with | Leaf -> [] | Node (u, x, v) -> [x] @ preorder u @ preorder v let i1, i2 = Node (Node (Leaf, 'a', Leaf), 'a', Leaf), Node (Leaf, 'a', Node (Leaf, 'a...
2e77d07b77c540f04c4cb8523ab3272ee0e369d316abaa5022881f0ee14d1714
modular-macros/ocaml-macros
pr5981.ml
module F(S : sig type 'a t end) = struct type _ ab = A : int S.t ab | B : float S.t ab let f : int S.t ab -> float S.t ab -> string = fun (l : int S.t ab) (r : float S.t ab) -> match l, r with | A, B -> "f A B" end;; [%%expect{| Line _, characters 47-84: Warning 8: this pattern-matching is not ex...
null
https://raw.githubusercontent.com/modular-macros/ocaml-macros/05372c7248b5a7b1aa507b3c581f710380f17fcd/testsuite/tests/typing-gadts/pr5981.ml
ocaml
module F(S : sig type 'a t end) = struct type _ ab = A : int S.t ab | B : float S.t ab let f : int S.t ab -> float S.t ab -> string = fun (l : int S.t ab) (r : float S.t ab) -> match l, r with | A, B -> "f A B" end;; [%%expect{| Line _, characters 47-84: Warning 8: this pattern-matching is not ex...
198ce9a802114864fbe51e04cb72b463960ee25afc76f1c9010354495728c272
theodormoroianu/SecondYearCourses
LambdaChurch_20210415170029.hs
module LambdaChurch where import Data.Char (isLetter) import Data.List ( nub ) class ShowNice a where showNice :: a -> String class ReadNice a where readNice :: String -> (a, String) data Variable = Variable { name :: String , count :: Int } deriving (Show, Eq, Ord) var :: String -> Variable var ...
null
https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/5e359e6a7cf588a527d27209bf53b4ce6b8d5e83/FLP/Laboratoare/Lab%209/.history/LambdaChurch_20210415170029.hs
haskell
alpha-equivalence subst u x t defines [u/x]t, i.e., substituting u for x in t This substitution avoids variable captures so it is safe to be used when reducing terms with free variables (e.g., if evaluating inside lambda abstractions) ^ substitution term ^ variable to be substitutes ^ term in which the substit...
module LambdaChurch where import Data.Char (isLetter) import Data.List ( nub ) class ShowNice a where showNice :: a -> String class ReadNice a where readNice :: String -> (a, String) data Variable = Variable { name :: String , count :: Int } deriving (Show, Eq, Ord) var :: String -> Variable var ...
e7a805d3cefd95f0e2b2a80c969c67d3273c18a0bc54e65887c63353166d4b65
monadbobo/ocaml-core
extended_int64.ml
open Core.Std module Filesize = struct type t = Int64.t with bin_io module Infix64 = (Int64 : sig type t = Int64.t val (+) : t -> t -> t val (-) : t -> t -> t val ( * ) : t -> t -> t val (/) : t -> t -> t end) open Infix64 let byte_dimension_suffix = ['b';'k';'m';'g'...
null
https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/core/extended/lib/extended_int64.ml
ocaml
open Core.Std module Filesize = struct type t = Int64.t with bin_io module Infix64 = (Int64 : sig type t = Int64.t val (+) : t -> t -> t val (-) : t -> t -> t val ( * ) : t -> t -> t val (/) : t -> t -> t end) open Infix64 let byte_dimension_suffix = ['b';'k';'m';'g'...
ec3168f60da48c2db5e2fa3e30197ca5f19f549e74993c813d1d7e6ef1fcaff7
rescript-association/genType
Translation.ml
open GenTypeCommon type t = CodeItem.translation let empty = ({importTypes = []; codeItems = []; typeDeclarations = []} : t) let getImportTypeUniqueName ({typeName; asTypeName} : CodeItem.importType) = typeName ^ match asTypeName with None -> "" | Some s -> "_as_" ^ s let importTypeCompare i1 i2 = compare (i1 |...
null
https://raw.githubusercontent.com/rescript-association/genType/c19a86c13f0f05c983cce5794540a7c30a0c02a1/src/Translation.ml
ocaml
* Applies type parameters to types (for all)
open GenTypeCommon type t = CodeItem.translation let empty = ({importTypes = []; codeItems = []; typeDeclarations = []} : t) let getImportTypeUniqueName ({typeName; asTypeName} : CodeItem.importType) = typeName ^ match asTypeName with None -> "" | Some s -> "_as_" ^ s let importTypeCompare i1 i2 = compare (i1 |...
62f3811e4e0fd48f928698bc3e02d5c74a1f412b901bdc2527d7d8b010f750e1
jrm-code-project/LISP-Machine
required-functions-and-macros.lisp
;;; -*- Mode:Lisp; Package:Lambda; Base:8 -*- ;;; ;;; (c) Copyright 1984 - Lisp Machine, Inc. ;;; (DEFVAR *LAMBDA-PACKAGE* (PKG-FIND-PACKAGE "LAMBDA")) (defun compute-parity-11 (data &optional (force-error 0)) (DO ((data (logand 1777 data)) (PARITY-BIT 1) (BITNUM 0 (1+ BITNUM))) ((> BITNUM 9.) ...
null
https://raw.githubusercontent.com/jrm-code-project/LISP-Machine/0a448d27f40761fafabe5775ffc550637be537b2/lambda/ulambda/required-functions-and-macros.lisp
lisp
-*- Mode:Lisp; Package:Lambda; Base:8 -*- (c) Copyright 1984 - Lisp Machine, Inc. extract a group from the data extract a group from the data like LDB, but can load fields bigger than fixnum size.
(DEFVAR *LAMBDA-PACKAGE* (PKG-FIND-PACKAGE "LAMBDA")) (defun compute-parity-11 (data &optional (force-error 0)) (DO ((data (logand 1777 data)) (PARITY-BIT 1) (BITNUM 0 (1+ BITNUM))) ((> BITNUM 9.) (dpb (logxor force-error parity-bit) (byte 1 10.) data)) (setq ...
001988cfb115cb68d34c45fb92c54d42e51149ae114dba2c87599f7f777d7355
OCamlPro/ocamlexc
pstream.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet Cri...
null
https://raw.githubusercontent.com/OCamlPro/ocamlexc/a9ddcfff6f376f5dd6c5fcc3211b8f89e36f79fe/parsing/pstream.ml
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et Automatique . Distributed only by permission . $ I d : pstream.ml , v 1.1.1.1 1998/06/09 15:19:18 pessaux Exp $ open Asttypes open Parsetree open Longident open Lo...
03d4668072954e30d0605530842dced10535a6981de350845af2981c299119eb
zyrolasting/racket-vulkan
c.rkt
#lang racket/base ;; This module is responsible for making sense of strings containing ;; C code, without a parser. Ideally I would use a Clang plugin. (provide (all-defined-out)) (require racket/list racket/string "./txexpr.rkt") (module+ test (require rackunit)) (define (cname str) (string-...
null
https://raw.githubusercontent.com/zyrolasting/racket-vulkan/4f743b4b2933173ee4f141e5ae94739895c54b67/private/c.rkt
racket
This module is responsible for making sense of strings containing C code, without a parser. Ideally I would use a Clang plugin.
#lang racket/base (provide (all-defined-out)) (require racket/list racket/string "./txexpr.rkt") (module+ test (require rackunit)) (define (cname str) (string->symbol (string-append "_" str))) (define (infer-pointer-depth characters) (count (λ (ch) (char=? #\* ch)) characters)) (define (i...
7c64acd7bef33fdcf0049fb2f69faa1599cb49d86c3507834ff8d7bee6ad56b8
Bogdanp/nemea
middleware.rkt
#lang racket/base (require koyo/json) (provide bad-request exn:bad-request? wrap-custom-exns) (define-logger http-error) (struct exn:bad-request exn:fail ()) (define (bad-request message . args) (raise (exn:bad-request (format message args) (current-continuation-marks)))) (define (bad-request->response e) ...
null
https://raw.githubusercontent.com/Bogdanp/nemea/6e6149007fb0c43d8f0fb2271b36f0ccad830703/nemea/http/middleware.rkt
racket
#lang racket/base (require koyo/json) (provide bad-request exn:bad-request? wrap-custom-exns) (define-logger http-error) (struct exn:bad-request exn:fail ()) (define (bad-request message . args) (raise (exn:bad-request (format message args) (current-continuation-marks)))) (define (bad-request->response e) ...
e664788af6a905380873ce6c4cfe14d13d453232408ba4a25674ba371280cb49
hasktorch/hasktorch
Other.hs
module Torch.GraduallyTyped.Tensor.MathOperations.Other where
null
https://raw.githubusercontent.com/hasktorch/hasktorch/c34996b0a401a5b1b98b5774e892fde88adaa079/experimental/gradually-typed/src/Torch/GraduallyTyped/Tensor/MathOperations/Other.hs
haskell
module Torch.GraduallyTyped.Tensor.MathOperations.Other where
d60a43eaecd672a2823ddaa1a3a280bae43f52dcb050053859262c3ffbd09bfd
axch/pattern-case
expansion-examples.scm
;;; This file is part of Pattern Case, a Schemely pattern matching case facility in MIT Scheme . Copyright 2013 . ;;; ;;; Pattern Case 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 versi...
null
https://raw.githubusercontent.com/axch/pattern-case/95b858442a2e45d2bec915665979659a5e38e1d3/test/expansion-examples.scm
scheme
This file is part of Pattern Case, a Schemely pattern matching Pattern Case is free software; you can redistribute it and/or either version 3 of Pattern Case 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 PARTIC...
case facility in MIT Scheme . Copyright 2013 . modify it under the terms of the GNU Affero General Public License the License , or ( at your option ) any later version . You should have received a copy of the GNU Affero General Public (declare (usual-integrations)) (define (my-map f lst) (case* lst ...
547fb71762dc29728e0dfac311977f956c4578f9d15631c27f23bb0cab3a2c22
anuragsoni/h2
util.ml
open H2 open Parse let parse_frame = let open Angstrom in parse_frame_header >>= fun (frame_type, frame_header) -> parse_frame_payload frame_type frame_header >>| fun frame_payload -> {Types.frame_header; frame_payload} let parse_success wire = let req_payload = Hex.to_string (`Hex wire) in match Angstr...
null
https://raw.githubusercontent.com/anuragsoni/h2/270d27cf54942e2b34932041827990ae49c89f85/test/util.ml
ocaml
open H2 open Parse let parse_frame = let open Angstrom in parse_frame_header >>= fun (frame_type, frame_header) -> parse_frame_payload frame_type frame_header >>| fun frame_payload -> {Types.frame_header; frame_payload} let parse_success wire = let req_payload = Hex.to_string (`Hex wire) in match Angstr...
2bf198c4698d51e53f9719f8dfc3c25ee338591864c5bf328d8601f158d7ae07
SoftwareFoundationGroupAtKyotoU/VeriCUDA
taskgen.ml
open Why3.Term open Why3api open Why3util open Formula open Utils open Vc (** ---------------- eliminate assignment *) assignment is replaced with a variable declaration ; * when a loop is encountered , we duplicate the sequence * generated so far , and generate three sequences corresponding to : * 1 . loop...
null
https://raw.githubusercontent.com/SoftwareFoundationGroupAtKyotoU/VeriCUDA/8c62058af5362cb1bd6c86121d9b8742e31706f2/taskgen.ml
ocaml
* ---------------- eliminate assignment Newly introduced variables corresponding to assignments * are eliminated at this stage, by rewriting the goal. Tests if [t] matches [get x ts] for some [ts], * where all variables in [bvars] do not occur in [ts]. Tests if [t] matches [get (get x p) ts] for some [p] and...
open Why3.Term open Why3api open Why3util open Formula open Utils open Vc assignment is replaced with a variable declaration ; * when a loop is encountered , we duplicate the sequence * generated so far , and generate three sequences corresponding to : * 1 . loop invariant at the loop entry * 2 . loop in...
96b762115b990cee9f3c280ad386d159ef00fd992a7c78c43dac9ef497b3e01a
spawnfest/eep49ers
slave.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1996 - 2020 . 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 applic...
null
https://raw.githubusercontent.com/spawnfest/eep49ers/d1020fd625a0bbda8ab01caf0e1738eb1cf74886/lib/stdlib/src/slave.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 l...
Copyright Ericsson AB 1996 - 2020 . 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(slave). debug printouts are done through erlang : display/1 . Activate this feature by starting the comp...
50b36f6014a1c6dde2a30c9b1536a2f245e7f0b8b3d0b5fb374c72791d96f6c0
kvakvs/E4VM
uasm.erl
-module(uasm). -export([process/2]). @doc Takes : A module map # { } with postprocessed BEAM assembly with new ASM instructions in it %% Result: Writes binary `.uerl` file with bytecode and optional `.stats.txt` file with frequency stats collected by ` uasm_stats ` module . -spec process(string(), #{}...
null
https://raw.githubusercontent.com/kvakvs/E4VM/2eac924efad972cfd488f1ad75e2f055cd18bd14/Compiler.old/apps/uasm/src/uasm.erl
erlang
Result: Writes binary `.uerl` file with bytecode and optional `.stats.txt` frequency stats are collected here @doc Format the resulting bytecode as text (for debug and simplicity) or as a binary (for final deployment).
-module(uasm). -export([process/2]). @doc Takes : A module map # { } with postprocessed BEAM assembly with new ASM instructions in it file with frequency stats collected by ` uasm_stats ` module . -spec process(string(), #{}) -> ok. process(InputPath, Input) -> BC = uerlc:try_do( "uasm_pass_asm ...
4ea39cd91e39734d6e919c2c5602aa0bd2b4c32fec0db3b9d63b49d8892ce86e
klutometis/clrs
figure-15.7.scm
(require-extension syntax-case check) (require '../15.5/section) (import section-15.5) (let ((p (array-align (list->array 1 '(#f 0.15 0.10 0.05 0.10 0.20)) -1)) (q (array-align (list->array 1 '(0.05 0.10 0.05 0.05 0.05 0.10)) -1))) (let-values (((e root) (memoized-bst p q))) (check (array->list e) => ...
null
https://raw.githubusercontent.com/klutometis/clrs/f85a8f0036f0946c9e64dde3259a19acc62b74a1/15.5/figure-15.7.scm
scheme
(require-extension syntax-case check) (require '../15.5/section) (import section-15.5) (let ((p (array-align (list->array 1 '(#f 0.15 0.10 0.05 0.10 0.20)) -1)) (q (array-align (list->array 1 '(0.05 0.10 0.05 0.05 0.05 0.10)) -1))) (let-values (((e root) (memoized-bst p q))) (check (array->list e) => ...
ea34db5dcd3994c916983eba1e73095cf36ed98ee08fbbdcdd3ca039f5a70b4b
startalkIM/ejabberd
mod_caps_riak.erl
%%%------------------------------------------------------------------- @author < > ( C ) 2016 , %%% @doc %%% %%% @end Created : 13 Apr 2016 by < > %%%------------------------------------------------------------------- -module(mod_caps_riak). -behaviour(mod_caps). %% API -export([init/2, caps_read/2, cap...
null
https://raw.githubusercontent.com/startalkIM/ejabberd/718d86cd2f5681099fad14dab5f2541ddc612c8b/src/mod_caps_riak.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- API =================================================================== API =================================================================== =========================...
@author < > ( C ) 2016 , Created : 13 Apr 2016 by < > -module(mod_caps_riak). -behaviour(mod_caps). -export([init/2, caps_read/2, caps_write/3]). -include("mod_caps.hrl"). init(_Host, _Opts) -> ok. caps_read(_LServer, Node) -> case ejabberd_riak:get(caps_features, caps_features_schema(), Node...
c1287dc4edd5ec59dd63344e26dcda3f905b0841f56287fb8a66f40982a636e6
lelongg/ros_to_guix
ros-tools.scm
(define-module (ros-tools) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix utils) #:use-module (guix packages) #:use-module (guix git-download) #:use-module (guix download) #:use-module (guix build-system cmake) #:use-module (guix build-system python) #:use-module (gnu packages ssh) ...
null
https://raw.githubusercontent.com/lelongg/ros_to_guix/6df2a0a64043cf3b5da5f3ae3b87dd2982d6498a/ros-tools.scm
scheme
(define-module (ros-tools) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix utils) #:use-module (guix packages) #:use-module (guix git-download) #:use-module (guix download) #:use-module (guix build-system cmake) #:use-module (guix build-system python) #:use-module (gnu packages ssh) ...
56bedfa7d26d74daf4fb4a5631d4808624a07bdd9eda784ce3179578ef653c70
haskell/haskell-ide-engine
BrittanyLF.hs
foo :: Int -> String-> IO () foo x y = do print x return 42
null
https://raw.githubusercontent.com/haskell/haskell-ide-engine/d84b84322ccac81bf4963983d55cc4e6e98ad418/test/testdata/BrittanyLF.hs
haskell
foo :: Int -> String-> IO () foo x y = do print x return 42
53fad7ec065c0d96d246d0e0a9d27347ccb1c04d515d042e7bc575933b9782ce
cicakhq/potato
session.lisp
(in-package :potato.core) (declaim #.potato.common::*compile-decl*) (eval-when (:compile-toplevel :load-toplevel :execute) (setq lofn:*files-base-dir* (merge-pathnames #p"src/" (asdf:component-pathname (asdf:find-system :potato))))) (defvar *session-cookie-name* "potato-session") (defvar *current-user-session* nil...
null
https://raw.githubusercontent.com/cicakhq/potato/88b6c92dbbc80a6c9552435604f7b1ae6f2a4026/src/potato/session.lisp
lisp
In debug mode, we allow all CORS requests CORS preflight is always allowed in debug mode If not in debug mode, just deny the preflight request No cookie value, create a new session
(in-package :potato.core) (declaim #.potato.common::*compile-decl*) (eval-when (:compile-toplevel :load-toplevel :execute) (setq lofn:*files-base-dir* (merge-pathnames #p"src/" (asdf:component-pathname (asdf:find-system :potato))))) (defvar *session-cookie-name* "potato-session") (defvar *current-user-session* nil...
7c6fb365e5e9cb5ef9fdc1eae86bbfcd3555989705210e4db98a24afcbcb8d90
mojombo/yaws
yapp.erl
%%% File : yapp.erl @author < > @since 11 Dec 2005 by < > %%% @see yapp_handler %%% @doc Yaws applications handler. < p > An easy way to deploy Yaws applications independently of %%% each other.</p> < p > This module implements and arg_rewrite_mod interfaces . It has functions to insert and re...
null
https://raw.githubusercontent.com/mojombo/yaws/f75fde80f1e35a87335f21d0983e3285eb665f17/applications/yapp/src/yapp.erl
erlang
File : yapp.erl @see yapp_handler @doc Yaws applications handler. each other.</p> It is used by the yapp_handler implementation. The yapp module will make Yaws temporarily switch the docroot to the applications priv/docroot directory when it encounters the registered URL path of the application. One ca...
@author < > @since 11 Dec 2005 by < > < p > An easy way to deploy Yaws applications independently of < p > This module implements and arg_rewrite_mod interfaces . It has functions to insert and remove Yapps to the Yaws sconfs records . In order to include the yapp module , runmod shall be set to yap...
4083b9136ff2c73b93824840dc7357a249260d29da5aa8d397f231d6f4af84e9
hyper-systems/ocaml-mqtt
Mqtt_client.mli
type t * Represents an MQTT client . To create a new client use { ! : Mqtt_client.connect } . To create a new client use {!val:Mqtt_client.connect}. *) * Client authentication credentials . MQTT supports two authentication methods : username with password , or username only . The crede...
null
https://raw.githubusercontent.com/hyper-systems/ocaml-mqtt/73fafa8ade0778dc4c7ab901e6cb90aa57accc22/mqtt-client/Mqtt_client.mli
ocaml
* Client error & exceptions Defines the exceptions raised by the client * Quality of Service level. Defines the guarantee of delivery for messages. * Publish a message with payload to a given topic. {[ let payload = "Hello world"; let%lwt () = Mqtt_client.publish(~topic="news", payload, cli...
type t * Represents an MQTT client . To create a new client use { ! : Mqtt_client.connect } . To create a new client use {!val:Mqtt_client.connect}. *) * Client authentication credentials . MQTT supports two authentication methods : username with password , or username only . The crede...
132fcfcd1ac6dc5b0d775fadf73263cd2899a52bd6fee855d885576711285742
xvw/muhokama
env.ml
type t = { pgsql_host : string ; pgsql_port : int ; pgsql_db : string ; pgsql_user : string ; pgsql_pass : string ; pgsql_connection_pool : int ; log_level : Logs.level ; notification_hook : string option } let string_to_log log = let open Validate in match String.lowercase_ascii log with | "de...
null
https://raw.githubusercontent.com/xvw/muhokama/c6f4dbe0459d9dc5f9fb9921a05a3bba93a06ce7/lib/common/env.ml
ocaml
type t = { pgsql_host : string ; pgsql_port : int ; pgsql_db : string ; pgsql_user : string ; pgsql_pass : string ; pgsql_connection_pool : int ; log_level : Logs.level ; notification_hook : string option } let string_to_log log = let open Validate in match String.lowercase_ascii log with | "de...
f26266722e780f34ec824d19f2af221214e0201aaec6b7b9f4451f9acf483173
brite-code/brite
ASTDebug.hs
-- Module for debugging an AST as S-expressions. Uses the printing framework from ` Brite . Syntax . PrinterFramework ` . {-# LANGUAGE OverloadedStrings #-} module Brite.Semantics.ASTDebug ( debugModule ) where import Brite.Semantics.AST import Brite.Syntax.Identifier import Brite.Syntax.Number (IntegerBase(.....
null
https://raw.githubusercontent.com/brite-code/brite/154d7fc93be050626af48051f71a446ec329f612/old/src/Brite/Semantics/ASTDebug.hs
haskell
Module for debugging an AST as S-expressions. Uses the printing framework from # LANGUAGE OverloadedStrings # An [S-expression][1]. Just like `A` but alway wrapped when on the right-hand-side of `S`. Prints an S-expression to a printer framework document. Prints an S-expression on the left-hand-side of an applica...
` Brite . Syntax . PrinterFramework ` . module Brite.Semantics.ASTDebug ( debugModule ) where import Brite.Semantics.AST import Brite.Syntax.Identifier import Brite.Syntax.Number (IntegerBase(..)) import Brite.Syntax.PrinterFramework import Brite.Syntax.Range import Data.Char (intToDigit, toUpper) import Data....
556b755354f66b12a45cecf0087531e616d61a87dbb424386533b32a1d959539
MastodonC/kixi.hecuba
tapestry.cljs
(ns kixi.hecuba.tabs.hierarchy.tapestry (:require-macros [cljs.core.async.macros :refer [go go-loop]] [hiccups.core :as hiccups]) (:require [clojure.string :as str] [cljs.core.async :refer [<! >! chan put!]] [cljs.reader :as reader] [om.core :as om :include-mac...
null
https://raw.githubusercontent.com/MastodonC/kixi.hecuba/467400bbe670e74420a2711f7d49e869ab2b3e21/src/cljs/kixi/hecuba/tabs/hierarchy/tapestry.cljs
clojure
add nil values for missing times [:input {:ref "grads-input" :placeholder (-> tapestry-data :heatmap-controls :grads :default)}]
(ns kixi.hecuba.tabs.hierarchy.tapestry (:require-macros [cljs.core.async.macros :refer [go go-loop]] [hiccups.core :as hiccups]) (:require [clojure.string :as str] [cljs.core.async :refer [<! >! chan put!]] [cljs.reader :as reader] [om.core :as om :include-mac...
d03a07f8a87af12a6caee7a2d50238691ca4a0a06ac10c551470c507b641685a
avsm/eeww
x86_proc.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/avsm/eeww/651d8da20a3cc9e88354ed0c8da270632b9c0c19/boot/ocaml/asmcomp/x86_proc.ml
ocaml
************************************************************************ OCaml ...
, projet Gallium , INRIA Rocquencourt Copyright 2014 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open X86_ast type system = 32 bits and 64 bits | S_macosx | S_gnu | S_cygwin 32 bits only | S_so...
b8d9a14fad1c998b9aa655827048a4c313634b27ebbb327ffcd0c16715e3013c
lmj/lparallel
default-spin-queue.lisp
Copyright ( c ) 2011 - 2012 , . All rights reserved . ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: ;;; ;;; * Redistributions of source code must retain the above copyright ;;; notice, this li...
null
https://raw.githubusercontent.com/lmj/lparallel/9c11f40018155a472c540b63684049acc9b36e15/src/spin-queue/default-spin-queue.lisp
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 disclaimer. * Redistributions in binary...
Copyright ( c ) 2011 - 2012 , . All rights reserved . " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT HOLDER OR FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT THEORY OF LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY...
111c8ec30ea33e8fff31ef8cf6f45f7490666ca79680ba8f13b97db7ee9dc938
zcaudate/hara
invoke.clj
(ns hara.function.base.invoke (:require [hara.function.base.arg :as arg] [hara.function.base.macro :as macro] [hara.function.base.multi :as multi] [hara.protocol.function :as protocol.function] [clojure.core :as clojure]) (:refer-clojure :exclude [fn])) (def +default...
null
https://raw.githubusercontent.com/zcaudate/hara/481316c1f5c2aeba5be6e01ae673dffc46a63ec9/src/hara/function/base/invoke.clj
clojure
Using definvoke
(ns hara.function.base.invoke (:require [hara.function.base.arg :as arg] [hara.function.base.macro :as macro] [hara.function.base.multi :as multi] [hara.protocol.function :as protocol.function] [clojure.core :as clojure]) (:refer-clojure :exclude [fn])) (def +default...
8098598f389cf5ff374f9400ca654c8e6d55d64e38e2076effb7158db5edb7d9
anoma/juvix
Positive.hs
module Typecheck.Positive where import Base import Compilation.Positive qualified as Compilation import Juvix.Compiler.Builtins (iniState) import Juvix.Compiler.Pipeline import Typecheck.Negative qualified as N data PosTest = PosTest { _name :: String, _dir :: Path Abs Dir, _file :: Path Abs File } root ...
null
https://raw.githubusercontent.com/anoma/juvix/0f29b3ee936c3498e3e7e22ed27fc0e6a38133e0/test/Typecheck/Positive.hs
haskell
------------------------------------------------------------------------------ Testing --no-positivity flag with all related negative tests ------------------------------------------------------------------------------ ------------------------------------------------------------------------------
module Typecheck.Positive where import Base import Compilation.Positive qualified as Compilation import Juvix.Compiler.Builtins (iniState) import Juvix.Compiler.Pipeline import Typecheck.Negative qualified as N data PosTest = PosTest { _name :: String, _dir :: Path Abs Dir, _file :: Path Abs File } root ...
f75b2491940736dffe1d3166d2e560d70690066328002b92c77a12731ef434ec
openvstorage/alba
alba_based_osd.ml
Copyright ( C ) iNuron - This file is part of Open vStorage . For license information , see < LICENSE.txt > Copyright (C) iNuron - This file is part of Open vStorage. For license information, see <LICENSE.txt> *) open! Prelude let to_namespace_name prefix = function | 0 -> fun namespace_id -> ...
null
https://raw.githubusercontent.com/openvstorage/alba/459bd459335138d6b282d332fcff53a1b4300c29/ocaml/src/alba_based_osd.ml
ocaml
Copyright ( C ) iNuron - This file is part of Open vStorage . For license information , see < LICENSE.txt > Copyright (C) iNuron - This file is part of Open vStorage. For license information, see <LICENSE.txt> *) open! Prelude let to_namespace_name prefix = function | 0 -> fun namespace_id -> ...
8ca6716e3b66827a9010f36a7ae061c761bb22b95b6ab9debf5e2ac29e94fac2
acl2/acl2
deftreeops-doc.lisp
ABNF ( Augmented Backus - Naur Form ) Library ; Copyright ( C ) 2022 Kestrel Institute ( ) ; License : A 3 - clause BSD license . See the LICENSE file distributed with ACL2 . ; Author : ( ) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (in-package "ABNF") (include-book ...
null
https://raw.githubusercontent.com/acl2/acl2/d85965f683469d4bf526a8f77002daab8afda429/books/kestrel/abnf/grammar-definer/deftreeops-doc.lisp
lisp
ABNF ( Augmented Backus - Naur Form ) Library Copyright ( C ) 2022 Kestrel Institute ( ) License : A 3 - clause BSD license . See the LICENSE file distributed with ACL2 . Author : ( ) (in-package "ABNF") (include-book "kestrel/event-macros/xdoc-constructors" :dir :system) (defxdoc deftreeops :parent...
e378f47594bc518c52ff1903a1ff6c03518eb57212329a51cff6c4edc4601391
anton-k/reader-pattern-servant-app
Save.hs
-- | Save message handler module Server.Save ( Env(..) , Db(..) , handle ) where import DI.Log import DI.Time import Api import Types data Db = Db { saveMessage :: Message -> IO MessageId } data Env = Env { log :: Log , db :: Db , time :: Time } ----------------------------------------- -...
null
https://raw.githubusercontent.com/anton-k/reader-pattern-servant-app/84cf6bd418dc22d9ab34b949e50c31135f17bb87/src/Server/Save.hs
haskell
| Save message handler --------------------------------------- Handler
module Server.Save ( Env(..) , Db(..) , handle ) where import DI.Log import DI.Time import Api import Types data Db = Db { saveMessage :: Message -> IO MessageId } data Env = Env { log :: Log , db :: Db , time :: Time } handle :: SaveRequest -> App Env SaveResponse handle req = do Time...
85db43d1d37aa4b62b33fc648570a3bbcab08000873ac7a8c030c6caaf793220
gfngfn/Sesterl
freeID.ml
type level = int type t = { id : int; mutable level : level; } let pp ppf fid = Format.fprintf ppf "'%d" fid.id let equal fid1 fid2 = fid1.id = fid2.id let compare fid1 fid2 = fid2.id - fid1.id let hash fid = fid.id let current_max = ref 0 let initialize () = current_max := 0 le...
null
https://raw.githubusercontent.com/gfngfn/Sesterl/7fd62c741aff43f2cd348ddcf9d08da24980fe7d/src/freeID.ml
ocaml
for debug
type level = int type t = { id : int; mutable level : level; } let pp ppf fid = Format.fprintf ppf "'%d" fid.id let equal fid1 fid2 = fid1.id = fid2.id let compare fid1 fid2 = fid2.id - fid1.id let hash fid = fid.id let current_max = ref 0 let initialize () = current_max := 0 le...
3be4da74f35065fa6e166c663b59f1c2f44ded5eadbcb5416b621d854c0a34d6
BranchTaken/Hemlock
test_zip_unzip.ml
open! Basis.Rudiments open! Basis open List let test () = let list_pairs = [ ([], []); ([0L], [1L]); ([0L; 1L], [2L; 3L]); ([0L; 1L; 2L], [3L; 4L; 5L]) ] in let pp_pair (a, b) formatter = begin formatter |> Fmt.fmt "(" |> Uns.pp a |> Fmt.fmt ", " |> Uns.pp b |> Fmt.fmt ")"...
null
https://raw.githubusercontent.com/BranchTaken/Hemlock/f3604ceda4f75cf18b6ee2b1c2f3c5759ad495a5/bootstrap/test/basis/list/test_zip_unzip.ml
ocaml
open! Basis.Rudiments open! Basis open List let test () = let list_pairs = [ ([], []); ([0L], [1L]); ([0L; 1L], [2L; 3L]); ([0L; 1L; 2L], [3L; 4L; 5L]) ] in let pp_pair (a, b) formatter = begin formatter |> Fmt.fmt "(" |> Uns.pp a |> Fmt.fmt ", " |> Uns.pp b |> Fmt.fmt ")"...
921740cef48fac4f6dd03784924f5905da4214f57f8367e955f14c4d0a135dcf
samrushing/irken-compiler
types.scm
-*- Mode : Irken ; coding : utf-8 -*- (require "lib/counter.scm") (typealias typerec {parent=(maybe type) pending=bool}) (datatype type (:tvar int typerec) (:pred symbol (list type) typerec) ) (define (pred name subs) (type:pred name subs {parent=(maybe:no) pending=#f})) (define (pred1 nam...
null
https://raw.githubusercontent.com/samrushing/irken-compiler/690da48852d55497f873738df54f14e8e135d006/self/types.scm
scheme
coding : utf-8 -*- singleton base types row types put a row type into canonical order (sorted by field name). path compression ;; without alias check alias check... (rsum (rlabel plabel (rpre T0) T1)) build map from tvar => predicate arg. walk the type, replacing. known base type textual substitution, nulla...
(require "lib/counter.scm") (typealias typerec {parent=(maybe type) pending=bool}) (datatype type (:tvar int typerec) (:pred symbol (list type) typerec) ) (define (pred name subs) (type:pred name subs {parent=(maybe:no) pending=#f})) (define (pred1 name) (pred name '())) (define (arrow re...
03b2112f7401a8bcb992f3ea24fd30eff9da7b43d20a1bcbcc15a473ecc23b8a
bmeurer/ocamljit2
scanf.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/bmeurer/ocamljit2/ef06db5c688c1160acc1de1f63c29473bcd0055c/stdlib/scanf.mli
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 2002 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with $ Id$ * { 6 Introduction } * { 7 ...
4c3b017e08431b58e5720746b32128e9fcc7141501708449e124a6e466172dcc
nikodemus/ec2
ami-instance.lisp
;;; A class describing an EBS AMI instance as returned by the EC2 DescribeInstances request, along with supporting functions. Copyright ( c ) 2010 Saffron Technology ( www.saffrontech.com ) ;;; Permission is hereby granted, free of charge, to any person ;;; obtaining a copy of this software and associated docume...
null
https://raw.githubusercontent.com/nikodemus/ec2/5a48b57b7f2d65e51af57c08f8e4a61346eed81d/ami-instance.lisp
lisp
A class describing an EBS AMI instance as returned by the EC2 DescribeInstances request, along with supporting functions. 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,...
Copyright ( c ) 2010 Saffron Technology ( www.saffrontech.com ) files ( the " Software " ) , to deal in the Software without copies of the Software , and to permit persons to whom the included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANT...
da7be4fa33efcb935de49d32258c3fd242100892678305e49a5a2a741dd4ae5d
taylorwood/lein-native-image
project.clj
(defproject jdnsmith "0.1.0-SNAPSHOT" :plugins [[io.taylorwood/lein-native-image "0.3.1"]] :dependencies [[org.clojure/clojure "1.9.0"] [org.clojure/data.json "0.2.6"]] :main jdnsmith.core :target-path "target/%s" :native-image {:graal-bin :env/GRAALVM_HOME :opts ["--verbose"...
null
https://raw.githubusercontent.com/taylorwood/lein-native-image/4c45d7a0ee2de91955f1b0515cd32ac50e782ba1/examples/jdnsmith/project.clj
clojure
(defproject jdnsmith "0.1.0-SNAPSHOT" :plugins [[io.taylorwood/lein-native-image "0.3.1"]] :dependencies [[org.clojure/clojure "1.9.0"] [org.clojure/data.json "0.2.6"]] :main jdnsmith.core :target-path "target/%s" :native-image {:graal-bin :env/GRAALVM_HOME :opts ["--verbose"...
3b399bceecd7eca35976cdebac9c1f12a456f1cf73d6cecc4c219ad5e791db5d
phylogeography/spread
discrete_tree.clj
(ns api.models.discrete-tree (:require [hugsql.core :as hugsql] [taoensso.timbre :as log])) These are just not to upset (declare upsert-tree) (declare get-tree) (declare insert-attribute) (declare get-attributes) (hugsql/def-db-fns "sql/discrete_tree.sql") (hugsql/def-sqlvec-fns "sql/discrete_tree....
null
https://raw.githubusercontent.com/phylogeography/spread/56f3500e6d83e0ebd50041dc336ffa0697d7baf8/src/clj/api/models/discrete_tree.clj
clojure
(ns api.models.discrete-tree (:require [hugsql.core :as hugsql] [taoensso.timbre :as log])) These are just not to upset (declare upsert-tree) (declare get-tree) (declare insert-attribute) (declare get-attributes) (hugsql/def-db-fns "sql/discrete_tree.sql") (hugsql/def-sqlvec-fns "sql/discrete_tree....
fddd6b85acfae00bad79bfe7e6085b37c5188f0b76fc94fd013e1b6347ba758d
3b/3bgl-shader
package.lisp
(defpackage #:3bgl-shaders (:use :cl) (:intern #:%glsl-macro #:*package-environments* #:ensure-package-environment) (:export :layout :generate-stage :compile-form :stage :*modified-function-hook* :*default-version*)) (defpackage #:3bgl-glsl (:use :cl) (:shadow #:defun ...
null
https://raw.githubusercontent.com/3b/3bgl-shader/5dd0207ef2d468e7caca2dd6df07b87fe839df88/package.lisp
lisp
?? glsl-side API predefined constants ? ? differe a bit compat/vertex shader only 8.9 Texture Functions 8.9.3 texture gather functions vector/matrix constructors misc package intended to be :USEd by shader code in place of :cl shadowed by it
(defpackage #:3bgl-shaders (:use :cl) (:intern #:%glsl-macro #:*package-environments* #:ensure-package-environment) (:export :layout :generate-stage :compile-form :stage :*modified-function-hook* :*default-version*)) (defpackage #:3bgl-glsl (:use :cl) (:shadow #:defun ...
1fbffdeee42169df2eba3bb573ead780d4ad1d1d54ef7100ab09e7a29610b1bd
NorfairKing/sydtest
MongoDB.hs
# LANGUAGE DataKinds # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # # LANGUAGE TypeOperators # module Test.Syd.MongoDB ( -- * Golden tests goldenBSONDocumentFile, pureGoldenBSONDocumentFile, -- * Integration tests mongoSpec, mongoConnectionSetupFunc, MongoServerHandle (..)...
null
https://raw.githubusercontent.com/NorfairKing/sydtest/420c6e4850e4a0c0040f88b2a5f10ca394083345/sydtest-mongo/src/Test/Syd/MongoDB.hs
haskell
# LANGUAGE OverloadedStrings # * Golden tests * Integration tests | Provide access to a real 'Mongo.Pipe' for each test. Example usage: > mongoSpec $ do > it "can write and read an example value" $ \pipe -> do > Mongo.access pipe master "example-database" $ do > let collection = "example-colle...
# LANGUAGE DataKinds # # LANGUAGE RecordWildCards # # LANGUAGE TypeOperators # module Test.Syd.MongoDB goldenBSONDocumentFile, pureGoldenBSONDocumentFile, mongoSpec, mongoConnectionSetupFunc, MongoServerHandle (..), mongoServerSpec, mongoServerSetupFunc, mongoServerSetupFunc', ) wher...
77e30c4432006bf795059f9d9096da8889fd19549f61e8b77fe55be4d8d2b3b2
fulcrologic/semantic-ui-wrapper
input.cljs
(ns fulcrologic.semantic-ui.workspaces.input (:require [com.fulcrologic.fulcro.components :as fp] [com.fulcrologic.fulcro.dom :as dom] [com.fulcrologic.fulcro.mutations :as fm] [nubank.workspaces.core :as ws] [nubank.workspaces.card-types.fulcro3 :as ct.fulcro] ...
null
https://raw.githubusercontent.com/fulcrologic/semantic-ui-wrapper/7bd53f445bc4ca7e052c69596dc089282671df6c/src/workspaces/fulcrologic/semantic_ui/workspaces/input.cljs
clojure
(ns fulcrologic.semantic-ui.workspaces.input (:require [com.fulcrologic.fulcro.components :as fp] [com.fulcrologic.fulcro.dom :as dom] [com.fulcrologic.fulcro.mutations :as fm] [nubank.workspaces.core :as ws] [nubank.workspaces.card-types.fulcro3 :as ct.fulcro] ...
f09a73986a4c2d56ddc64cdfcff7ffd2757f6466a7556324b74c6656fd6f2c7a
camsaul/toucan2
no_jdbc_poc_test.clj
(ns toucan2.no-jdbc-poc-test (:require [clojure.test :refer :all] [methodical.core :as m] [toucan2.pipeline :as pipeline] [toucan2.select :as select])) (set! *warn-on-reflection* true) (m/defmethod pipeline/transduce-query [:default ::system-properties :default] [rf _query-type _model {:keys [kv-args]...
null
https://raw.githubusercontent.com/camsaul/toucan2/d42e86f201b464a4322aa9e456feb3c9ee10512c/test/toucan2/no_jdbc_poc_test.clj
clojure
(ns toucan2.no-jdbc-poc-test (:require [clojure.test :refer :all] [methodical.core :as m] [toucan2.pipeline :as pipeline] [toucan2.select :as select])) (set! *warn-on-reflection* true) (m/defmethod pipeline/transduce-query [:default ::system-properties :default] [rf _query-type _model {:keys [kv-args]...
6600e150c357b76c17a7e29d50abdb5f3b708b7f37178b162820b7a8d664b6b8
BetterThanTomorrow/joyride
require_cljs_requiring_js_from_subdir_script.cljs
(ns require-cljs-requiring-js-from-subdir-script (:require [subdir.require-js-from-subdir])) (defn hello [] (subdir.require-js-from-subdir/hello)) (def fortytwo subdir.require-js-from-subdir/fortytwo) (comment (hello) fortytwo :rcf) fortytwo
null
https://raw.githubusercontent.com/BetterThanTomorrow/joyride/760e24ba61e0454f715b15ed29b7ed3d0ca01312/vscode-test-runner/workspace-1/.joyride/scripts/require_cljs_requiring_js_from_subdir_script.cljs
clojure
(ns require-cljs-requiring-js-from-subdir-script (:require [subdir.require-js-from-subdir])) (defn hello [] (subdir.require-js-from-subdir/hello)) (def fortytwo subdir.require-js-from-subdir/fortytwo) (comment (hello) fortytwo :rcf) fortytwo
f26b28c18ac2b08d55f443ed938edc8b61bbfb271ff00b43a60a44a84d3f9cbe
KaroshiBee/weevil
mdb_stepper_config.ml
module Client_context = Tezos_client_base.Client_context module Client_context_unix = Tezos_client_base_unix.Client_context_unix open Mdb_import.Tez TODO make sure to link with correct protocol modules and mockup maker type t = { chain_id:Chain_id.t; rpc_context:Env.Updater.rpc_context; unix_mockup:Client_con...
null
https://raw.githubusercontent.com/KaroshiBee/weevil/ddb8d0fa8618db3ed2a7eaf4f635200e7a1cc8b6/bin/weevil_mdb_012/src/mdb_stepper_config.ml
ocaml
`Successor_level is safer?
module Client_context = Tezos_client_base.Client_context module Client_context_unix = Tezos_client_base_unix.Client_context_unix open Mdb_import.Tez TODO make sure to link with correct protocol modules and mockup maker type t = { chain_id:Chain_id.t; rpc_context:Env.Updater.rpc_context; unix_mockup:Client_con...
5c3c661b30e8a762cf676e726624f248b906f1f0d2e7fb4ee9620d4a7cb46108
luchiniatwork/cambada
jar_utils.clj
(ns cambada.jar-utils (:require [clojure.java.io :as io])) (defn get-jar-filename [{:keys [out app-artifact-id app-version] :as task} & [{:keys [kind] :or {kind :jar}}]] (let [suffix (if (= kind :uberjar) "-standalone" "") jar-name (str app-artifact-id "-" app-version suffix ".jar")] (str (io/file...
null
https://raw.githubusercontent.com/luchiniatwork/cambada/99654689f8b6656c615543b3ed47d9b3a3c5773f/src/cambada/jar_utils.clj
clojure
(ns cambada.jar-utils (:require [clojure.java.io :as io])) (defn get-jar-filename [{:keys [out app-artifact-id app-version] :as task} & [{:keys [kind] :or {kind :jar}}]] (let [suffix (if (= kind :uberjar) "-standalone" "") jar-name (str app-artifact-id "-" app-version suffix ".jar")] (str (io/file...
a53bf5072b9c065057fab0847ee9abe5b630898aa721f226d48e9699fc32f378
monadbobo/ocaml-core
core_int_test.ml
open Core.Std open OUnit let () = Random.self_init () let esc_test i = int_of_string (Int.to_string_hum i) = i let bound = 2 lsl 10 let rand () = let rec aux acc cnt = if cnt = 0 then acc else let bit = if Random.bool () then 1 else 0 in aux (2*acc + bit) (cnt -1) in let aval = aux 1 ...
null
https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/core/lib_test/core_int_test.ml
ocaml
Random with a distribution favouring small ones
open Core.Std open OUnit let () = Random.self_init () let esc_test i = int_of_string (Int.to_string_hum i) = i let bound = 2 lsl 10 let rand () = let rec aux acc cnt = if cnt = 0 then acc else let bit = if Random.bool () then 1 else 0 in aux (2*acc + bit) (cnt -1) in let aval = aux 1 ...
0a8ad2e7631b32bdfaa715ed658339184b15d4978827ecad51cd2080063653bb
roglo/mlrogue
finish.mli
$ I d : finish.mli , v 1.3 2005/10/20 11:55:47 roglo Exp $ open Rogue; value clean_up : string -> _; value put_scores : string -> bool -> option (game * ending) -> unit; value win : game -> _; value killed_by : game -> ending -> _;
null
https://raw.githubusercontent.com/roglo/mlrogue/b73238bbbc8cd88c83579c3b72772a8c418020e5/finish.mli
ocaml
$ I d : finish.mli , v 1.3 2005/10/20 11:55:47 roglo Exp $ open Rogue; value clean_up : string -> _; value put_scores : string -> bool -> option (game * ending) -> unit; value win : game -> _; value killed_by : game -> ending -> _;
6165c08ed4e3746e28efa1f8e3257582b85d41e63c50e81f5051cd22736fd991
ocaml-multicore/reagents
exchanger.ml
module type S = Exchanger_intf.S module Make (Base : Base.S) : Exchanger_intf.S with type ('a, 'b) reagent = ('a, 'b) Base.t = struct type ('a, 'b) reagent = ('a, 'b) Base.t module C = Base.Channel open Base type 'a t = ('a, 'a) C.endpoint * ('a, 'a) C.endpoint let create = C.mk_chan let exchange e = ...
null
https://raw.githubusercontent.com/ocaml-multicore/reagents/6721db78b21028c807fb13d0af0aaf9407c662b5/lib/data/exchanger.ml
ocaml
module type S = Exchanger_intf.S module Make (Base : Base.S) : Exchanger_intf.S with type ('a, 'b) reagent = ('a, 'b) Base.t = struct type ('a, 'b) reagent = ('a, 'b) Base.t module C = Base.Channel open Base type 'a t = ('a, 'a) C.endpoint * ('a, 'a) C.endpoint let create = C.mk_chan let exchange e = ...
5e0861f518e943f9ada2b999e8b68d3602f9193bd642447ef4acf5810b127d10
nuvla/ui
effects.cljs
(ns sixsq.nuvla.ui.main.effects (:require ["@stripe/stripe-js" :as stripejs] [re-frame.core :refer [dispatch reg-fx]])) (reg-fx ::bulk-actions-interval (fn [[dispatched-event-key actions-interval]] (doseq [action-opts (vals actions-interval)] (dispatch [dispatched-event-key action-opts])))...
null
https://raw.githubusercontent.com/nuvla/ui/bee37c5bcc37910e32954ee99d7bbaf9294e81e0/code/src/cljs/sixsq/nuvla/ui/main/effects.cljs
clojure
(ns sixsq.nuvla.ui.main.effects (:require ["@stripe/stripe-js" :as stripejs] [re-frame.core :refer [dispatch reg-fx]])) (reg-fx ::bulk-actions-interval (fn [[dispatched-event-key actions-interval]] (doseq [action-opts (vals actions-interval)] (dispatch [dispatched-event-key action-opts])))...
8bedccc532cd2bcc47200af88f51c1b28f005fea9289443d8c5341145254d982
vrnithinkumar/ETC
btc_hm.erl
-module(btc_hm). -export([tests/0, tests_full_infer/0, all_tests/0, basic_tests/0]). convert the js code in erlang PRINT -ifndef(PRINT). -define(PRINT(Var), io:format("DEBUG: ~p:~p - ~p~n~n ~p~n~n", [?MODULE, ?LINE, ??Var, Var])). -endif. % Environment % Type checker Environment -record(ten, { bindings ...
null
https://raw.githubusercontent.com/vrnithinkumar/ETC/62852c3782108225235a406837334684e0f8b619/BTC/btc_hm.erl
erlang
Environment Type checker Environment hack to store meta var state todo Terms Types So passing Env to track. {T, [Right] ++ Args}; Subtyping todo if (m.mono) t.mono = true; ty.type = TFun(a, b), BUG: Potential Bug to check Bug to check Nothing match return shift ?PRINT(Ty), ?PRINT(Ty_), ?PRINT(Env...
-module(btc_hm). -export([tests/0, tests_full_infer/0, all_tests/0, basic_tests/0]). convert the js code in erlang PRINT -ifndef(PRINT). -define(PRINT(Var), io:format("DEBUG: ~p:~p - ~p~n~n ~p~n~n", [?MODULE, ?LINE, ??Var, Var])). -endif. -record(ten, { bindings = #{}, }). get_binding(Env, X) -> ...
0d19311c989d3b22b346a3214d303926b36b8baa63886f76fa9880ad09d7dc63
kowainik/relude
Applicative.hs
{-# LANGUAGE Safe #-} | Module : Relude . Applicative Copyright : ( c ) 2016 ( c ) 2016 - 2018 ( c ) 2018 - 2023 Kowainik SPDX - License - Identifier : MIT Maintainer : < > Stability : Stable Portability ...
null
https://raw.githubusercontent.com/kowainik/relude/e633cb33308d259d6e4ea058ef506eb496b12323/src/Relude/Applicative.hs
haskell
# LANGUAGE Safe # $reexports * Combinators $setup $reexports Main data types and functions reexported from "Control.Applicative".
| Module : Relude . Applicative Copyright : ( c ) 2016 ( c ) 2016 - 2018 ( c ) 2018 - 2023 Kowainik SPDX - License - Identifier : MIT Maintainer : < > Stability : Stable Portability : Portable ...
ac8babcfb21fe672e17017d11c7d46d4258417242447614b9b7f216913d6cf30
sarabander/p2pu-sicp
Ex1.39.scm
Depends on 1.37 (define (tan-cf x k) (let ((numer (λ (i) (if (= i 1) x (- (sqr x))))) (denom (λ (i) (- (* 2 i) 1)))) (cont-frac numer denom k))) = > 0.999999986526355 = > 1.0 as it should be (tan-cf (/ (* 3 pi) 4) 15) ; => -1.0 (tan-cf 0 4) ; => 0 (tan-cf pi 15) ; => -1.4135798584282...
null
https://raw.githubusercontent.com/sarabander/p2pu-sicp/fbc49b67dac717da1487629fb2d7a7d86dfdbe32/1.3/Ex1.39.scm
scheme
=> -1.0 => 0 => -1.4135798584282297e-16 =>
Depends on 1.37 (define (tan-cf x k) (let ((numer (λ (i) (if (= i 1) x (- (sqr x))))) (denom (λ (i) (- (* 2 i) 1)))) (cont-frac numer denom k))) = > 0.999999986526355 = > 1.0 as it should be ' ( 0.7853981633974483 0.988689239934205 0.9997876809149684 0.9999978684156948 ...
2a62b53c50da5292a09b91bff0ad31a99f0e0e85fd871d9e71bcb18fb8695b17
unsplash/intlc
Printer.hs
module Intlc.Printer where import qualified Data.Text as T import Prelude data IndentStyle = Tabs | Spaces Nat -- The default indent style unless otherwise specified by the user. def :: IndentStyle def = Tabs indenter :: IndentStyle -> Nat -> Text indenter Tabs = flip T.replicate "\t" . fromEnum...
null
https://raw.githubusercontent.com/unsplash/intlc/84b8cbceaa27abfd753abb647c3686231a24a495/lib/Intlc/Printer.hs
haskell
The default indent style unless otherwise specified by the user.
module Intlc.Printer where import qualified Data.Text as T import Prelude data IndentStyle = Tabs | Spaces Nat def :: IndentStyle def = Tabs indenter :: IndentStyle -> Nat -> Text indenter Tabs = flip T.replicate "\t" . fromEnum indenter (Spaces n) = flip T.replicate " " . fromEnum . (* n)
767753eb38b28e436a30ad9c6ede6df70dc4ffdcae6894ada88f631319aaed15
BillHallahan/G2
Tuples.hs
module Tuples where addTupleElems :: (Int, Float, Double, Int, Int) -> (Int, Int) addTupleElems (a, b, c, d, e) = case a + e of 0 -> (24680, 13579) _ -> (12345, 67890) oneTwo :: (Int, Int) oneTwo = (1, 2)
null
https://raw.githubusercontent.com/BillHallahan/G2/dfd377793dcccdc7126a9f4a65b58249673e8a70/tests/BaseTests/Tuples.hs
haskell
module Tuples where addTupleElems :: (Int, Float, Double, Int, Int) -> (Int, Int) addTupleElems (a, b, c, d, e) = case a + e of 0 -> (24680, 13579) _ -> (12345, 67890) oneTwo :: (Int, Int) oneTwo = (1, 2)
c1b3c83bb5863ee2662b51fab588a9ae3029bbc08ee960817e622fcf4331e90c
dieu/consulerl
consulerl_kv.erl
-module(consulerl_kv). -include("consulerl.hrl"). -export([ get/1, get/2, get/3, get/4 ]). -export([ get_all/1, get_all/2, get_all/3, get_all/4 ]). -export([ keys/0, keys/1, keys/2, keys/3, keys/4 ]). -export([ put/2, put/3, put/4, put/5, put/6 ]). -export([ watch/1, watch/...
null
https://raw.githubusercontent.com/dieu/consulerl/a8c003dbc380911a1ad90a3468e60017aef38c79/src/consulerl_kv.erl
erlang
=================================================================== ===================================================================
-module(consulerl_kv). -include("consulerl.hrl"). -export([ get/1, get/2, get/3, get/4 ]). -export([ get_all/1, get_all/2, get_all/3, get_all/4 ]). -export([ keys/0, keys/1, keys/2, keys/3, keys/4 ]). -export([ put/2, put/3, put/4, put/5, put/6 ]). -export([ watch/1, watch/...
464507b7abf512746ef4ccbc54bd0a71a78f2ca6855231fdaf88d6cdfab0cd00
ThomasCrevoisier/chrome-remote-interface-haskell
Debugger.hs
module Chrome.API.Debugger where import Chrome.Target.Client import Chrome.Target.Message import Chrome.API.Debugger.Types enable :: TargetClientAsync (MethodResult AnyResult) enable = callMethod $ Method "Debugger.enable" noParam disable :: TargetClientAsync (MethodResult AnyResult) d...
null
https://raw.githubusercontent.com/ThomasCrevoisier/chrome-remote-interface-haskell/b7cb4a2367fda40a1e90bc3378a6c4e52578b2d7/src/Chrome/API/Debugger.hs
haskell
TODO : Implement the return type TODO : Implement the return type
module Chrome.API.Debugger where import Chrome.Target.Client import Chrome.Target.Message import Chrome.API.Debugger.Types enable :: TargetClientAsync (MethodResult AnyResult) enable = callMethod $ Method "Debugger.enable" noParam disable :: TargetClientAsync (MethodResult AnyResult) d...
72082ff8d29f4cb03ac82797567030786ef3b3721333f9ca20fba84f034d1718
senapk/fn_2020_1
Lista.hs
[ 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ] arrancar 3 xs [ 1 , 2 , 3 , 4 , 5 ] drop n xs : remove n primeiros take n xs : os n primeiros -- init xs: remove o ultimo -- tail xs: remove o primeiro head xs : o last xs : o ultimo elemento -- reverse xs: reverte a lista length xs : o tamanho null xs : se esta vaz...
null
https://raw.githubusercontent.com/senapk/fn_2020_1/dd30b5d49300459a62b00299d65309f09638d8fc/s02e01_exercicios/Lista.hs
haskell
init xs: remove o ultimo tail xs: remove o primeiro reverse xs: reverte a lista sum xs: soma todos maximum, minimum, product
[ 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ] arrancar 3 xs [ 1 , 2 , 3 , 4 , 5 ] drop n xs : remove n primeiros take n xs : os n primeiros head xs : o last xs : o ultimo elemento length xs : o tamanho null xs : se esta vazia removerDoisDeCadaBanda = drop 2 . reverse . drop 2 . reverse removerDoisModo2 xs = d...
72e64e120367daa8fba5e371019eccd0e78b33f93956738865df81d39278c07d
SahilKang/cl-avro
enum.lisp
Copyright 2021 - 2023 Google LLC ;;; ;;; This file is part of cl-avro. ;;; ;;; cl-avro 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 ver...
null
https://raw.githubusercontent.com/SahilKang/cl-avro/553acafc92c3388e52c52d0ccde6f7cc6556535c/src/complex/enum.lisp
lisp
This file is part of cl-avro. cl-avro is free software: you can redistribute it and/or modify (at your option) any later version. cl-avro 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 t...
Copyright 2021 - 2023 Google LLC 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 (in-package #:cl-user) (defpackage #:cl-avro.internal.enum (:use #:cl) ...
3c55f9f42ecbaf5f47d61b4601fe9bbbe2d53d50e334a48e76c5688db66390bc
pbrisbin/yesod-paginator
PaginationConfig.hs
# LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # {-# LANGUAGE OverloadedStrings #-} module Yesod.Paginator.PaginationConfig ( PaginationConfig(..) , PageParamName(..) , defaultPaginationConfig ) where import Yesod.Paginator.Prelude import Yesod.Core import Yesod.Paginator.Pages...
null
https://raw.githubusercontent.com/pbrisbin/yesod-paginator/7c9aa7981bd5252b919737f2f61546b3b41d14d9/src/Yesod/Paginator/PaginationConfig.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # module Yesod.Paginator.PaginationConfig ( PaginationConfig(..) , PageParamName(..) , defaultPaginationConfig ) where import Yesod.Paginator.Prelude import Yesod.Core import Yesod.Paginator.Pages newtype PageParamName = PageParam...
397381b5c9dfb45b10847222fb1e998a4af9c6ef1e28b53b3ec398b0e751c80c
leo-project/leofs
leo_storage_read_repairer.erl
%%====================================================================== %% LeoStorage %% Copyright ( c ) 2012 - 2018 Rakuten , Inc. %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may obtain %% a ...
null
https://raw.githubusercontent.com/leo-project/leofs/4ff701e0f4a4cf39a968dbe078b9c2412a22f995/apps/leo_storage/src/leo_storage_read_repairer.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 permis...
LeoStorage Copyright ( c ) 2012 - 2018 Rakuten , Inc. This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY LeoFS Storage - Read ...
33189e0b5d9f151d35518e1e5f6afafd5fa1c0357356af4f335f8e22f4b8f43b
mput/sicp-solutions
2_33.test.rkt
#lang racket (require rackunit/text-ui) (require rackunit "custom-checks.rkt") (require rackunit "../solutions/utils.rkt") (require rackunit "../solutions/2_33.rkt") (define tests (test-suite "Test for exercise 2_33" (test-case "Map through accumulate" (define seq (list 1 2 3 4 5)) (check...
null
https://raw.githubusercontent.com/mput/sicp-solutions/fe12ad2b6f17c99978c8fe04b2495005986b8496/tests/2_33.test.rkt
racket
#lang racket (require rackunit/text-ui) (require rackunit "custom-checks.rkt") (require rackunit "../solutions/utils.rkt") (require rackunit "../solutions/2_33.rkt") (define tests (test-suite "Test for exercise 2_33" (test-case "Map through accumulate" (define seq (list 1 2 3 4 5)) (check...
2158b743348173eb77e1e3198687451dc87b9207053cc4cbda14707c1abfd071
merijn/broadcast-chan
Test.hs
{-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE Trustworthy # # LANGUAGE ScopedTypeVariables # ------------------------------------------------------------------------------- -- | Module : BroadcastChan . Test Copyright : ( C ) 2014 - 2022 Merijn Verstraaten -- License : BSD-style (see the file LIC...
null
https://raw.githubusercontent.com/merijn/broadcast-chan/2842a60dd86c93fddfaf0fa02c7de2aaad4d26ae/broadcast-chan-tests/BroadcastChan/Test.hs
haskell
# LANGUAGE DeriveDataTypeable # ----------------------------------------------------------------------------- | License : BSD-style (see the file LICENSE) Stability : experimental Portability : haha Module containing testing helpers shared across all broadcast-chan packages. -----------------------------...
# LANGUAGE Trustworthy # # LANGUAGE ScopedTypeVariables # Module : BroadcastChan . Test Copyright : ( C ) 2014 - 2022 Merijn Verstraaten Maintainer : < > module BroadcastChan.Test ( (@?) , expect , genStreamTests , runTests , withLoggedOutput , MonadIO(..) , mapHand...
536a01e3db3dccddee9a0ab3d473ccdf4030f4b8f3414fae804e26449a217899
spurious/sagittarius-scheme-mirror
getopt.scm
(import (rnrs) (getopt) (srfi :64)) (test-begin "with-args") (test-equal "short name" "1234" (with-args '("-p" "1234") ((pin (#\p "pin") #t #f)) pin)) (test-equal "short name" "1234" (with-args '("-p1234") ((pin (#\p "pin") #t #f)) pin)) (test-equal "long name" "1234" ...
null
https://raw.githubusercontent.com/spurious/sagittarius-scheme-mirror/53f104188934109227c01b1e9a9af5312f9ce997/test/tests/getopt.scm
scheme
call #88
(import (rnrs) (getopt) (srfi :64)) (test-begin "with-args") (test-equal "short name" "1234" (with-args '("-p" "1234") ((pin (#\p "pin") #t #f)) pin)) (test-equal "short name" "1234" (with-args '("-p1234") ((pin (#\p "pin") #t #f)) pin)) (test-equal "long name" "1234" ...
293abc4f92dab0603502506769b34844bf61686bfdfa813d91ecd2e5a8e7efd1
ggreif/omega
finally-layout.hs
# LANGUAGE DataKinds , KindSignatures , TypeOperators , PolyKinds , GADTs , MultiParamTypeClasses , FlexibleContexts , ScopedTypeVariables , RebindableSyntax # , PolyKinds, GADTs, MultiParamTypeClasses , FlexibleContexts, ScopedTypeVariables , Rebi...
null
https://raw.githubusercontent.com/ggreif/omega/016a3b48313ec2c68e8d8ad60147015bc38f2767/mosaic/finally-layout.hs
haskell
# LANGUAGE DataKinds , KindSignatures , TypeOperators , PolyKinds , GADTs , MultiParamTypeClasses , FlexibleContexts , ScopedTypeVariables , RebindableSyntax # , PolyKinds, GADTs, MultiParamTypeClasses , FlexibleContexts, ScopedTypeVariables , Rebi...
cdd1c1ae0283ea3cb18a3aed77a882a014fe02dcf97ef24683e852b4d5511ddf
mikera/core.matrix
index.clj
(ns clojure.core.matrix.impl.index "Implementations for common index types: - int arrays - long arrays - Clojure vectors Indexes are intended to be used to specify elements, ranges or sub-arrays of core.matrix arrays. As such they can be considered as a 1D vector of integer values." (:require [cloju...
null
https://raw.githubusercontent.com/mikera/core.matrix/0a35f6e3d6d2335cb56f6f3e5744bfa1dd0390aa/src/main/clojure/clojure/core/matrix/impl/index.clj
clojure
(ns clojure.core.matrix.impl.index "Implementations for common index types: - int arrays - long arrays - Clojure vectors Indexes are intended to be used to specify elements, ranges or sub-arrays of core.matrix arrays. As such they can be considered as a 1D vector of integer values." (:require [cloju...
c4a751b55ac525922352e3da925c2c1affd081f23ef7d308821982ca94e7b481
rroohhh/guix_system
vault.scm
(define-module (misc vault) #:use-module (web client) #:use-module (json) #:use-module (json parser) #:use-module (ice-9 receive) #:use-module (ice-9 pretty-print) #:use-module (ice-9 match) #:use-module (ice-9 rdelim) #:use-module (ice-9 textual-ports) #:use-module (scheme base) #:use-module (guix ...
null
https://raw.githubusercontent.com/rroohhh/guix_system/09145929a8527f6e873c84c343d1845eec020e18/misc/vault.scm
scheme
(define-module (misc vault) #:use-module (web client) #:use-module (json) #:use-module (json parser) #:use-module (ice-9 receive) #:use-module (ice-9 pretty-print) #:use-module (ice-9 match) #:use-module (ice-9 rdelim) #:use-module (ice-9 textual-ports) #:use-module (scheme base) #:use-module (guix ...
1c3ea75d64bdda21d4ae4959ece67bc209ab2fe5bf0100b98fcbaa6dd4090039
kloimhardt/werkbank
driven_pendulum.clj
; Copyright © 2017 . This work is based on the Scmutils system of MIT / GNU Scheme : Copyright © 2002 Massachusetts Institute of Technology ; ; This 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 ; ei...
null
https://raw.githubusercontent.com/kloimhardt/werkbank/df66274eb978d060a043b8429b29d0f36c4a2e89/src/sicmutils/examples/driven_pendulum.clj
clojure
This is free software; you can redistribute it and/or modify either version 3 of the License , or ( at your option) any later version. This software 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 PUR...
Copyright © 2017 . This work is based on the Scmutils system of MIT / GNU Scheme : Copyright © 2002 Massachusetts Institute of Technology it under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License (ns sicmutils.examples.driven-pend...