_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
6bf6ac561284ed4678d5dac516bb2354f7ea9706f403f44bd28b85f528223c9f
osstotalsoft/functional-guy
02.FunctionTypes.hs
--function types myFunc :: Integer -> Integer myFunc n = n * 2 makeCar :: String -> String -> Double -> (String, String, Double) makeCar make model cc = (make, model, cc) -- currying and partial application myCar :: (String, String, Double) myCar = makeCar "BMW" "X5" 3.0 myBmw :: String -> Double -> (String, String,...
null
https://raw.githubusercontent.com/osstotalsoft/functional-guy/c02a8b22026c261a9722551f3641228dc02619ba/Chapter3.%20Haskell's%20Type%20System/Exercises/01.%20Built-in%20types/02.FunctionTypes.hs
haskell
function types currying and partial application hof with function param
myFunc :: Integer -> Integer myFunc n = n * 2 makeCar :: String -> String -> Double -> (String, String, Double) makeCar make model cc = (make, model, cc) myCar :: (String, String, Double) myCar = makeCar "BMW" "X5" 3.0 myBmw :: String -> Double -> (String, String, Double) myBmw = makeCar "BMW" myX5 :: Double -> (St...
3ee85dc8138bfdb763a730161bc7e4cd00a8c77fac7bc1cc78cdb7735dbfca90
mbj/stratosphere
ProposedSegmentChangeProperty.hs
module Stratosphere.NetworkManager.ConnectAttachment.ProposedSegmentChangeProperty ( ProposedSegmentChangeProperty(..), mkProposedSegmentChangeProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProper...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/networkmanager/gen/Stratosphere/NetworkManager/ConnectAttachment/ProposedSegmentChangeProperty.hs
haskell
module Stratosphere.NetworkManager.ConnectAttachment.ProposedSegmentChangeProperty ( ProposedSegmentChangeProperty(..), mkProposedSegmentChangeProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProper...
3c685b1ef05a66caa362d10dd02ac37020c65a512ef7265db1da7718b5213191
UU-ComputerScience/uhc
deriv2.hs
basic case : deriving for for some [ data type ] , expected outcome : 221 % % inline test ( ) -- class Eq x where (==) :: x -> x -> Bool (/=) :: x -> x -> Bool x /= y = not (x == y) instance dEqInt <: Eq Int where (==) = primEqInt instance dEqList <: Eq a => Eq [a] where (x:xs) == (y:ys) = x == y && ...
null
https://raw.githubusercontent.com/UU-ComputerScience/uhc/f2b94a90d26e2093d84044b3832a9a3e3c36b129/EHC/test/regress/95/deriv2.hs
haskell
basic case : deriving for for some [ data type ] , expected outcome : 221 class Eq x where (==) :: x -> x -> Bool (/=) :: x -> x -> Bool x /= y = not (x == y) instance dEqInt <: Eq Int where (==) = primEqInt instance dEqList <: Eq a => Eq [a] where (x:xs) == (y:ys) = x == y && xs == ys [] == [] ...
c56f3548d8b416f980c203cca82510b4912909802648bf4f99b1049a6b0270da
gheber/kenzo
eilenberg-zilber-test.lisp
-*- Mode : Lisp ; Syntax : ANSI - Common - Lisp ; Base : 10 - * (in-package :kenzo-test-8) (in-suite :kenzo-8) (test shuffle-sign (dotimes (i 30) (format t "~%~A => ~@D" (cat-8:hyphenize-list (cat-8:dlop-int-ext i)) (cat-8:shuffle-sign i)))) (test intr-eml (cat-8:intr-eml (ca...
null
https://raw.githubusercontent.com/gheber/kenzo/48e2ea398b80f39d3b5954157a7df57e07a362d7/test/kenzo-8/eilenberg-zilber-test.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 - *
(in-package :kenzo-test-8) (in-suite :kenzo-8) (test shuffle-sign (dotimes (i 30) (format t "~%~A => ~@D" (cat-8:hyphenize-list (cat-8:dlop-int-ext i)) (cat-8:shuffle-sign i)))) (test intr-eml (cat-8:intr-eml (cat-8:cmbn 3 1 (cat-8:tnpr 0 'a 3 'b) ...
018f4314c8211a5649cb3f7202ff7a543c12399b1bbae9bf2995db41860bd5c0
duo-lang/duo-lang
TypecheckTest.hs
module Spec.TypecheckTest (spec) where import Data.List.NonEmpty (NonEmpty) import Test.Hspec import Control.Monad.Except (MonadIO, liftIO) import Data.Either(isRight) import Driver.Driver (inferProgramIO) import Driver.Definition (defaultDriverState) import Syntax.TST.Program qualified as TST import Syntax.CST.Progr...
null
https://raw.githubusercontent.com/duo-lang/duo-lang/48a82bff85f5f85e1a5f0f477080aa5cdb258ada/test/Spec/TypecheckTest.hs
haskell
module Spec.TypecheckTest (spec) where import Data.List.NonEmpty (NonEmpty) import Test.Hspec import Control.Monad.Except (MonadIO, liftIO) import Data.Either(isRight) import Driver.Driver (inferProgramIO) import Driver.Definition (defaultDriverState) import Syntax.TST.Program qualified as TST import Syntax.CST.Progr...
15487d1cb28d1202486842009a1dfdc27894e8e66e7c04d86de12beab9b00bdf
haslab/HAAP
Tarefa1_2017li1g180.hs
module Tarefa1_2017li1g180 where import LI11718 import Data.Typeable import GHC.Generics (Generic, Generic1) import Control.DeepSeq -- package "deepseq" import Text.PrettyPrint -- package "pretty" package " GenericPretty " import Safe constroi :: Caminho -> Mapa constroi c = Mapa (partida c,dirInit) $ processa ...
null
https://raw.githubusercontent.com/haslab/HAAP/5acf9efaf0e5f6cba1c2482e51bda703f405a86f/examples/plab/svn/2017li1g180/src/Tarefa1_2017li1g180.hs
haskell
package "deepseq" package "pretty" ------------ == T1: Solução ------------ roda Este True = Sul roda Norte True = Este roda d False = roda (roda (roda d True) True) True ----------- from Nuno ,m_exPI,m_exLV,m_exEX,m_exLH] caminho minimo válido mapa nao geravel por caminhos, lava extra a volta testes invalidos...
module Tarefa1_2017li1g180 where import LI11718 import Data.Typeable import GHC.Generics (Generic, Generic1) package " GenericPretty " import Safe constroi :: Caminho -> Mapa constroi c = Mapa (partida c,dirInit) $ processa c dirInit altInit (partida c) (theFloorIsLava (dimensao c)) : : ( Int , Int ) - > Ori...
8ffc2309f71413779c9ed299cd20772f721477e20944146909e29de13bc448d2
reach-sh/reach-lang
Module.hs
module Reach.Eval.Module (evalLibs) where import Control.Monad.Reader import Data.Foldable import qualified Data.Map.Strict as M import qualified Data.Text as T import Language.JavaScript.Parser import Language.JavaScript.Parser.AST import Reach.AST.Base import Reach.AST.SL import Reach.Connector import Reach.Eval.Cor...
null
https://raw.githubusercontent.com/reach-sh/reach-lang/6ce8706a3dcd1f1e9ef4570871321e1f111d7d53/hs/src/Reach/Eval/Module.hs
haskell
If this is an exporting statement, then add to the export environment everything that is new. liftIO $ putStrLn $ "Evaluating " <> show src
module Reach.Eval.Module (evalLibs) where import Control.Monad.Reader import Data.Foldable import qualified Data.Map.Strict as M import qualified Data.Text as T import Language.JavaScript.Parser import Language.JavaScript.Parser.AST import Reach.AST.Base import Reach.AST.SL import Reach.Connector import Reach.Eval.Cor...
0c98acf6f6392b2aa87ae5bd9756804f4350012cb62f270bd48e50c0a167c685
goosedb/InterpolatePlugin
PluginFS.hs
module PluginFS where import InterpolatePlugin ( defaultParserSettings, plugin', pluginSettingsShowThenFromString ) import GhcPlugins ( Plugin ) plugin :: Plugin plugin = plugin' $ pluginSettingsShowThenFromString defaultParserSettings
null
https://raw.githubusercontent.com/goosedb/InterpolatePlugin/fc9eafbe68ae390135b05520d2dde2c3638c83a8/src/PluginFS.hs
haskell
module PluginFS where import InterpolatePlugin ( defaultParserSettings, plugin', pluginSettingsShowThenFromString ) import GhcPlugins ( Plugin ) plugin :: Plugin plugin = plugin' $ pluginSettingsShowThenFromString defaultParserSettings
1b911b59497f8c64a926b860e60b16d6ac10f964e3211a4216ab9f084f9c8265
svenvc/s-http-server
globals.lisp
;;;; -*- mode: lisp -*- ;;;; ;;;; Globally defined variable and parameters, both public and internal, for S-HTTP[S]-SERVER ;;;; Copyright ( C ) 2005 - 2009,2020 , Beta Nine BVBA . ;;;; ;;;; You are granted the rights to distribute and use this software as governed by the terms of the Lisp Lesser General Public L...
null
https://raw.githubusercontent.com/svenvc/s-http-server/552973ab051a2e0478807153402a347be5943a4d/src/globals.lisp
lisp
-*- mode: lisp -*- Globally defined variable and parameters, both public and internal, for S-HTTP[S]-SERVER You are granted the rights to distribute and use this software (), also known as the LLGPL. public globals and parameters internal globals and parameters
Copyright ( C ) 2005 - 2009,2020 , Beta Nine BVBA . as governed by the terms of the Lisp Lesser General Public License (in-package :s-http-server) (defvar *http-server-identification* (format nil "S-HTTP-SERVER ~a ~a" (lisp-implementation-type) (lisp-implementation-version)) "Identification string sent a...
d48430414d74daccd1045112419bea5089baf0c61773d203cd8cef6138f53b70
runtimeverification/haskell-backend
Assoc.hs
| Module : . Attribute . Assoc Description : Associativity axiom attribute Copyright : ( c ) Runtime Verification , 2018 - 2021 License : BSD-3 - Clause Maintainer : Module : Kore.Attribute.Assoc Description : Associativity axiom attribute Copyright : (c) Runtime Verification, 201...
null
https://raw.githubusercontent.com/runtimeverification/haskell-backend/b06757e252ee01fdd5ab8f07de2910711997d845/kore/src/Kore/Attribute/Assoc.hs
haskell
| Kore identifier representing the @assoc@ attribute symbol. | Kore symbol representing the @assoc@ attribute. | Kore pattern representing the @assoc@ attribute.
| Module : . Attribute . Assoc Description : Associativity axiom attribute Copyright : ( c ) Runtime Verification , 2018 - 2021 License : BSD-3 - Clause Maintainer : Module : Kore.Attribute.Assoc Description : Associativity axiom attribute Copyright : (c) Runtime Verification, 201...
244c65ca880d6a8565e658502709a356fddb22bf20816c2ef964919cd1785aac
jepsen-io/maelstrom
checker.clj
(ns maelstrom.checker "Common Maelstrom checkers" (:require [jepsen [checker :as checker] [history :as h]])) (defn availability-checker "Checks to see whether the history met the test's target :availability goals. There are several possible values for availability: 0 nil, which impose...
null
https://raw.githubusercontent.com/jepsen-io/maelstrom/86f9684c3d93cc209e55bdb4247e3cf81f66852e/src/maelstrom/checker.clj
clojure
:invoke-count invoke-count :ok-count ok-count
(ns maelstrom.checker "Common Maelstrom checkers" (:require [jepsen [checker :as checker] [history :as h]])) (defn availability-checker "Checks to see whether the history met the test's target :availability goals. There are several possible values for availability: 0 nil, which impose...
a65bbedb7a1968a8ef66f9cf440384732d4cc3610b8544afc267e1fa2131c028
rabbitmq/ra-kv-store
tests.clj
(ns jepsen.tests "Provide utilities for writing tests using jepsen." (:require [jepsen.os :as os] [jepsen.db :as db] [jepsen.client :as client] [jepsen.nemesis :as nemesis] [jepsen.generator :as gen] [knossos.model :as model] [jepsen.checker :a...
null
https://raw.githubusercontent.com/rabbitmq/ra-kv-store/faf36863bb3822ef4dcd99de5635007273d35997/jepsen/jepsen/src/jepsen/tests.clj
clojure
(ns jepsen.tests "Provide utilities for writing tests using jepsen." (:require [jepsen.os :as os] [jepsen.db :as db] [jepsen.client :as client] [jepsen.nemesis :as nemesis] [jepsen.generator :as gen] [knossos.model :as model] [jepsen.checker :a...
18f4fdca7449fc0a289e3ae73ab9037bce43f66d6adf2e4e3cc50ad78551f0ee
axch/rules
simplification-test.scm
;;; This file is part of Rules, an extensible pattern matching, pattern dispatch , and term rewriting system for MIT Scheme . Copyright 2010 - 2013 , Massachusetts Institute of ;;; Technology ;;; ;;; Rules is free software; you can redistribute it and/or modify it under the terms of the GNU Affero General Publi...
null
https://raw.githubusercontent.com/axch/rules/21f25c86c19fcb0500e9f6f3905de86d59225d8e/test/simplification-test.scm
scheme
This file is part of Rules, an extensible pattern matching, Technology Rules is free software; you can redistribute it and/or modify it either version 3 of the License, or (at your option) any later version. This code is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even th...
pattern dispatch , and term rewriting system for MIT Scheme . Copyright 2010 - 2013 , Massachusetts Institute of under the terms of the GNU Affero General Public License as You should have received a copy of the GNU Affero General Public (define (assert-unchanged datum rule) (assert-eq datum (rule datum)))...
ce8d306736b1bbacdcf72683e11c82047e18d2c27a7edcc2f26c91faa090685b
1Computer1/errata
Source.hs
# LANGUAGE FlexibleInstances # {-# LANGUAGE OverloadedStrings #-} | Module : Errata . Source Copyright : ( c ) 2020- comp License : MIT Maintainer : Stability : stable Portability : portable A class for source text types . You should not need to use this , except to add new source ...
null
https://raw.githubusercontent.com/1Computer1/errata/5b4fb8509d300a6a99778393eef21217d4f3c020/src/Errata/Source.hs
haskell
# LANGUAGE OverloadedStrings # | A class for manipulating and converting source text. For @ByteString@ source types, you should convert it to one of the built-in instances with your encoding of choice. | The empty source, used when a pointer references an out-of-bounds line. | Splits the source into lines. | Conv...
# LANGUAGE FlexibleInstances # | Module : Errata . Source Copyright : ( c ) 2020- comp License : MIT Maintainer : Stability : stable Portability : portable A class for source text types . You should not need to use this , except to add new source types . Module : Errata.Sour...
b079ce6c18d965d3de142027265bf8efb8a583e8bc388ce7f8c0269ac94c3e04
macourtney/Dark-Exchange
utils.clj
(ns darkexchange.view.utils (:require [seesaw.core :as seesaw-core])) (defn center-window-on [parent window] (seesaw-core/pack! window) (.setLocationRelativeTo window parent) window) (defn center-window [window] (center-window-on nil window))
null
https://raw.githubusercontent.com/macourtney/Dark-Exchange/1654d05cda0c81585da7b8e64f9ea3e2944b27f1/src/darkexchange/view/utils.clj
clojure
(ns darkexchange.view.utils (:require [seesaw.core :as seesaw-core])) (defn center-window-on [parent window] (seesaw-core/pack! window) (.setLocationRelativeTo window parent) window) (defn center-window [window] (center-window-on nil window))
c58ae5ab7a0d28313b1174b418d5d61051f9ae1233c54b2876a9cc4a948add9e
alesaccoia/festival_flinger
cmu_us_rms_tagger.scm
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Carnegie Mellon University ; ; ; and and ; ; ; Copyright ( c ) 1998 - 2000 ...
null
https://raw.githubusercontent.com/alesaccoia/festival_flinger/87345aad3a3230751a8ff479f74ba1676217accd/lib/voices/us/cmu_us_rms_cg/festvox/cmu_us_rms_tagger.scm
scheme
;;; ; ; ; ; ; ; ; ; ;;; Permission is hereby granted, free of charge, to use and distribute ;;; this software and its documentation without restriction, including ;;; withou...
POS tagger for English (require 'pos) (define (cmu_us_rms::select_tagger) "(cmu_us_rms::select_tagger) Set up the POS tagger English." (set! pos_lex_name "english_poslex") (set! pos_ngram_name 'english_pos_ngram) (set! pos_supported t) ) (define (cmu_us_rms::reset_tagger) "(cmu_us_rms::reset_tagger) Rese...
e2dcbc57e60482b8394d9ffe83e7f0491866f90eb8139a8a165c9ae79556aad3
Carnap/Carnap
Logic.hs
# LANGUAGE RankNTypes , FlexibleContexts # module Carnap.Languages.HigherOrderArithmetic.Logic where import Carnap.Core.Data.Types import Carnap.Core.Data.Optics (ReLex) import Carnap.Calculi.Tableau.Data import Carnap.Calculi.NaturalDeduction.Syntax import Carnap.Languages.ClassicalSequent.Syntax import Carnap.Langua...
null
https://raw.githubusercontent.com/Carnap/Carnap/99546e377008247c5a1e8de1e294aac8e22584d7/Carnap/src/Carnap/Languages/HigherOrderArithmetic/Logic.hs
haskell
# LANGUAGE RankNTypes , FlexibleContexts # module Carnap.Languages.HigherOrderArithmetic.Logic where import Carnap.Core.Data.Types import Carnap.Core.Data.Optics (ReLex) import Carnap.Calculi.Tableau.Data import Carnap.Calculi.NaturalDeduction.Syntax import Carnap.Languages.ClassicalSequent.Syntax import Carnap.Langua...
e3f05f45b2dfa99405ab1038e35ab2062fc232179f48cf5608af09f022035611
unisonweb/unison
Text.hs
{-# LANGUAGE OverloadedStrings #-} module Unison.Test.Util.Text where import Control.Monad import Data.List (foldl', unfoldr) import Data.Maybe (isNothing) import qualified Data.Text as T import EasyTest import qualified Unison.Util.Rope as R import qualified Unison.Util.Text as Text import qualified Unison.Util.Text...
null
https://raw.githubusercontent.com/unisonweb/unison/47e5ce7c7d883c8a768317fde143ca2cf79d35a5/parser-typechecker/tests/Unison/Test/Util/Text.hs
haskell
# LANGUAGE OverloadedStrings # this shows that we ignore subcaptures this is just making sure we don't duplicate captures to our left when entering an `Or` node nested or tests
module Unison.Test.Util.Text where import Control.Monad import Data.List (foldl', unfoldr) import Data.Maybe (isNothing) import qualified Data.Text as T import EasyTest import qualified Unison.Util.Rope as R import qualified Unison.Util.Text as Text import qualified Unison.Util.Text.Pattern as P test :: Test () test...
b5f53e250db7674bc3eaa5b097393e30298045275f762ba9a31a38cd70624869
libguestfs/virt-v2v
nbdkit_vddk.mli
virt - v2v * Copyright ( C ) 2009 - 2020 Red Hat Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation ; either version 2 of the License , or * ( at your option ) any later ...
null
https://raw.githubusercontent.com/libguestfs/virt-v2v/cff4514927b3e12a30619377149789c5bd2daebb/input/nbdkit_vddk.mli
ocaml
* nbdkit when used as a source. * Create a nbdkit object using the VDDK plugin. The required string parameter is the disk remote path. This can fail (calling [error]) for a variety of reasons, such as nbdkit not being available, wrong version, missing plugin, etc. Note this doesn't run nbdkit yet, i...
virt - v2v * Copyright ( C ) 2009 - 2020 Red Hat Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation ; either version 2 of the License , or * ( at your option ) any later ...
e704aee6e83c5f7f7f3eaf63e3e489c03342046d227e4a12c29d9e2210abbfef
nixeagle/nisp
9p-tests.lisp
(in-package :nisp.9p) (def-suite root) (test (9p-version-string-p :suite root) #+ () (with-fbound (9p-version-string-p) ("9P") t ("9PP") t ("P") nil (1) nil)) (HUNCHENTOOT:ACCEPTOR-SSL-P 3)
null
https://raw.githubusercontent.com/nixeagle/nisp/680b40b3b9ea4c33db0455ac73cbe3756afdbb1e/9p/9p-tests.lisp
lisp
(in-package :nisp.9p) (def-suite root) (test (9p-version-string-p :suite root) #+ () (with-fbound (9p-version-string-p) ("9P") t ("9PP") t ("P") nil (1) nil)) (HUNCHENTOOT:ACCEPTOR-SSL-P 3)
f7ded447bfba558ef537f508ead6fb038a92eb5b65c0bafe98e4db37e2a65645
nvim-treesitter/nvim-treesitter
highlights.scm
inherits : ecma [ "declare" "enum" "export" "implements" "interface" "keyof" "type" "namespace" "override" "satisfies" "module" ] @keyword (as_expression "as" @keyword) [ "abstract" "private" "protected" "public" "readonly" ] @type.qualifier ; types (type_identifier) @type (predef...
null
https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/1d6e1354b742c34e565b6109f29e88a47fa14531/queries/typescript/highlights.scm
scheme
types punctuation Variables Parameters ({ a }) => null ({ a: b }) => null ([ a ]) => null a => null
inherits : ecma [ "declare" "enum" "export" "implements" "interface" "keyof" "type" "namespace" "override" "satisfies" "module" ] @keyword (as_expression "as" @keyword) [ "abstract" "private" "protected" "public" "readonly" ] @type.qualifier (type_identifier) @type (predefined_typ...
8271ef5606fde536557e288ea265f2ce3f6be5cfa3b0ea046de8cc865a5db340
alekras/erl.mqtt.server
testing.erl
%% Copyright ( C ) 2015 - 2022 by ( ) %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicable law or agreed to in writing, software ...
null
https://raw.githubusercontent.com/alekras/erl.mqtt.server/d05919cfc7bfdb7a252eb97a58da67f6a3c48138/apps/mqtt_server/test/testing.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing per...
Copyright ( C ) 2015 - 2022 by ( ) Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @since 2015 - 12 - 25 2015 - 2022 @author < > [ / ] -module(testing). -include_lib("eunit/include/eunit.hrl"). -include_li...
be9126097277fd84716763780f22e345e6efcae39448e143a2c40f585e34464b
microsoft/SLAyer
HeapAbstraction.ml
Copyright ( c ) Microsoft Corporation . All rights reserved . (** Abstraction of the heap part of symbolic heaps *) Notes : - The definition of Pg.of_pattern only works for patterns where only a single points - to predicate is needed to follow the list spine . For instance , the pattern for...
null
https://raw.githubusercontent.com/microsoft/SLAyer/6f46f6999c18f415bc368b43b5ba3eb54f0b1c04/src/HeapAbstraction.ml
ocaml
* Abstraction of the heap part of symbolic heaps Support ================================================================== ============================================================================ Pattern Graphs ===================================================================...
Copyright ( c ) Microsoft Corporation . All rights reserved . Notes : - The definition of Pg.of_pattern only works for patterns where only a single points - to predicate is needed to follow the list spine . For instance , the pattern for lists of even length using two points - tos in ...
4577e89ba9d573cbcf971c7ce022b0d5a8a45be700d6427a643fe4bcfc08b707
penpot/penpot
migration_0023.clj
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) KALEIDOS INC (ns app.migrations.clj.migration-0023 (:require [app.db :as db] [app.util.blob :as blob])) (defn deco...
null
https://raw.githubusercontent.com/penpot/penpot/cc18f84d620e37d8efafc5bed1bcdbe70ec23c1e/backend/src/app/migrations/clj/migration_0023.clj
clojure
Copyright (c) KALEIDOS INC
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 /. (ns app.migrations.clj.migration-0023 (:require [app.db :as db] [app.util.blob :as blob])) (defn decode-row [{:keys [data] :as row}]...
9fe73e9e20c21ae0eb531cf975e51b48d7654347a90bf6de7b65d2ea672b3be8
aarkerio/ZentaurLMS
export_controller.clj
(ns zentaur.controllers.export-controller (:require [clojure.java.io :as io] [clojure.tools.logging :as log] [ring.util.http-response :as response] [zentaur.models.exports :as model-export])) (defn export-test-pdf "GET /vclass/tests/exportpdf/:uurlid. Create PDF." [{:keys [pat...
null
https://raw.githubusercontent.com/aarkerio/ZentaurLMS/adb43fb879b88d6a35f7f556cb225f7930d524f9/src/clj/zentaur/controllers/export_controller.clj
clojure
(ns zentaur.controllers.export-controller (:require [clojure.java.io :as io] [clojure.tools.logging :as log] [ring.util.http-response :as response] [zentaur.models.exports :as model-export])) (defn export-test-pdf "GET /vclass/tests/exportpdf/:uurlid. Create PDF." [{:keys [pat...
88e8f02febd36c4ef0dc992ad5e61ad417b5fae089725ff97fdbd75ef262be61
jeffshrager/biobike
ocelot-cygone.lisp
-*- mode : Lisp ; Syntax : Common - Lisp ; Package : ; -*- (in-package :bio) ;;; +=========================================================================+ | Copyright ( c ) 2002 , 2003 , 2004 JP , , | ;;; | | ;;; | Permission is h...
null
https://raw.githubusercontent.com/jeffshrager/biobike/5313ec1fe8e82c21430d645e848ecc0386436f57/BioLisp/Ocelot/ocelot-cygone.lisp
lisp
Syntax : Common - Lisp ; Package : ; -*- +=========================================================================+ | | | Permission is hereby granted, free of charge, to any person obtaining | | a copy of this software and associated docu...
(in-package :bio) | Copyright ( c ) 2002 , 2003 , 2004 JP , , | | " Software " ) , to deal in the Software without restriction , including | | distribute , sublicense , and/or sell copies of the Software , and to | | permit persons to whom the Software is furnished to do so , subject to ...
235a323d315883cf8f6ded244c44d1dedf7de33600f89061fa38878a6853f9f7
sky-big/RabbitMQ
os_util.erl
%% Author: xxw Created : 2014 - 3 - 11 %% Description: TODO: Add description to os_util -module(os_util). -compile(export_all). %% %% Include files %% -include("os_util.hrl"). %% %% Exported Functions %% %% %% API Functions %% run_erl(Hiden, Name, Host, MnesiaDir, SmpEnable, Wait, Option) -> CommandLine = get_erl...
null
https://raw.githubusercontent.com/sky-big/RabbitMQ/d7a773e11f93fcde4497c764c9fa185aad049ce2/test/os_util.erl
erlang
Author: xxw Description: TODO: Add description to os_util Include files Exported Functions API Functions 操作系统命令非同步执行(prompt:提示) 操作系统命令同步执行(prompt:提示) 启动linux Erl 是否隐藏shell窗口的参数 得到节点名字的参数— mnesia数据库的存储目录• linux系统下让smp不要启动(让服务器不要启动跟CPU个数相同的Scheduler) +P erlang节点系统的最大并发进程数, +K true | false 是否开启kernel po...
Created : 2014 - 3 - 11 -module(os_util). -compile(export_all). -include("os_util.hrl"). run_erl(Hiden, Name, Host, MnesiaDir, SmpEnable, Wait, Option) -> CommandLine = get_erl_cmd(Hiden, Name, Host, MnesiaDir, SmpEnable, Wait, Option), case Wait of wait -> wait_exe(CommandLine); nowait -> run_exe(Comm...
085dd78782091fe258bdab5ce35b23bf64d9f6e563c6ee0bc68498e0406eb040
yallop/ocaml-ctypes
cstubs_generate_ml.ml
* Copyright ( c ) 2014 . * * This file is distributed under the terms of the MIT License . * See the file LICENSE for details . * Copyright (c) 2014 Jeremy Yallop. * * This file is distributed under the terms of the MIT License. * See the file LICENSE for details. *) ML stub generation open Ct...
null
https://raw.githubusercontent.com/yallop/ocaml-ctypes/52ff621f47dbc1ee5a90c30af0ae0474549946b4/src/cstubs/cstubs_generate_ml.ml
ocaml
We (only) need to parenthesize application expressions in certain contexts * in a projection expression: -.l * in a dereference expression: !@ - * as an argument in an application: e - TODO: float support not yet implemented if noalloc then pp_print_string fmt "\"noalloc\"" These funct...
* Copyright ( c ) 2014 . * * This file is distributed under the terms of the MIT License . * See the file LICENSE for details . * Copyright (c) 2014 Jeremy Yallop. * * This file is distributed under the terms of the MIT License. * See the file LICENSE for details. *) ML stub generation open Ct...
d562a13587f0cb20aaf0a93ab02980fb6edb77b4a2c905a7cae434cc0ffdff48
thi-ng/demos
github.clj
(ns day1.github (:require [tentacles.repos :as repos] [thi.ng.ndarray.core :as nd] [thi.ng.geom.viz.core :as viz] [thi.ng.geom.svg.core :as svg] [thi.ng.color.gradients :as grad] [clojure.string :as str] [clojure.java.shell :refer [sh]])) (def day (* 24 60 60 1000)) (def week ...
null
https://raw.githubusercontent.com/thi-ng/demos/048cd131099a7db29be56b965c053908acad4166/ws-bln-1/day1/src/day1/github.clj
clojure
commits (load-commits-fs ".")
(ns day1.github (:require [tentacles.repos :as repos] [thi.ng.ndarray.core :as nd] [thi.ng.geom.viz.core :as viz] [thi.ng.geom.svg.core :as svg] [thi.ng.color.gradients :as grad] [clojure.string :as str] [clojure.java.shell :refer [sh]])) (def day (* 24 60 60 1000)) (def week ...
f71c043f73d1eea22d8f6842a9a887c305eea2a23735c61cfcadda9e4a9845db
pavlobaron/ErlangOTPBookSamples
exeval_instance_supervisor.erl
-module(exeval_instance_supervisor). -behaviour(supervisor). -export([start_link/0, init/1]). -export([fsm/1, available/1, server/1, occupy/1, evaluator/1]). start_link() -> supervisor:start_link(?MODULE, []). init(_Args) -> ServerSpec = {server, {exeval_instance_server, start_link, [self()]},...
null
https://raw.githubusercontent.com/pavlobaron/ErlangOTPBookSamples/50094964ad814932760174914490e49618b2b8c2/otp/src/exeval_instance_supervisor.erl
erlang
-module(exeval_instance_supervisor). -behaviour(supervisor). -export([start_link/0, init/1]). -export([fsm/1, available/1, server/1, occupy/1, evaluator/1]). start_link() -> supervisor:start_link(?MODULE, []). init(_Args) -> ServerSpec = {server, {exeval_instance_server, start_link, [self()]},...
5df955da278db2caa8a8c55f9a3dc1e170b4b48e3ad861572ef66ec2fec415e6
danr/hipspec
PrecisionRecall.hs
{-# LANGUAGE DeriveDataTypeable,FlexibleInstances #-} # OPTIONS_GHC -fno - warn - orphans # module PrecisionRecall where import Prelude (fmap,return,round,sqrt,toEnum,fromEnum,Bool(..),Eq,Ord,Enum,otherwise,succ,pred,Double,($)) import Data.Typeable import HipSpec data Nat = Z | S Nat deriving (Eq,Ord,Typeable) in...
null
https://raw.githubusercontent.com/danr/hipspec/a114db84abd5fee8ce0b026abc5380da11147aa9/testsuite/precision-recall/PrecisionRecall.hs
haskell
# LANGUAGE DeriveDataTypeable,FlexibleInstances #
# OPTIONS_GHC -fno - warn - orphans # module PrecisionRecall where import Prelude (fmap,return,round,sqrt,toEnum,fromEnum,Bool(..),Eq,Ord,Enum,otherwise,succ,pred,Double,($)) import Data.Typeable import HipSpec data Nat = Z | S Nat deriving (Eq,Ord,Typeable) instance Names (A -> A -> A) where names _ = ["<>","...
b8be6f91afff46ded6a89948004f45a5c2c9b63bffae6ea8b4809d9712d848f6
brendanhay/amazonka
IPSetSummary.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # {-# LANGUAGE StrictData #-} # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - unused - matches # Derived fr...
null
https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-waf-regional/gen/Amazonka/WAFRegional/Types/IPSetSummary.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Module : Amazonka.WAFRegional.Types.IPSetSummary Stability : auto-generated | This is __AWS WAF Classic__ documentation. For more information, see in the developer guide. __For the latest version of AWS WAF__, use the AWS WAFV2 API and see the <-ch...
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - unused - matches # Derived from AWS service descriptions , licensed under Apache 2.0 . Co...
07615e12ce585237b0296803fb05988c1c66773fc487986fe0662a94cfb6040c
metabase/metabase
dashboard.clj
(ns metabase.transforms.dashboard (:require [medley.core :as m] [metabase.api.common :as api] [metabase.automagic-dashboards.populate :as populate] [metabase.models.table :refer [Table]] [metabase.transforms.materialize :as tf.materialize] [metabase.transforms.specs :refer [transform-specs]] [met...
null
https://raw.githubusercontent.com/metabase/metabase/ff2c972dcb11f9355e314cffcc8e10b0e58f53bf/src/metabase/transforms/dashboard.clj
clojure
(ns metabase.transforms.dashboard (:require [medley.core :as m] [metabase.api.common :as api] [metabase.automagic-dashboards.populate :as populate] [metabase.models.table :refer [Table]] [metabase.transforms.materialize :as tf.materialize] [metabase.transforms.specs :refer [transform-specs]] [met...
57ed3153128c3cc517800acdf1783ed5f5524557d9b30f8450f93b76836671a4
larcenists/larceny
standard-libraries.scm
;;;===================================================================== ;;; ;;; Derived forms: ;;; Copyright ( c ) 2006 ;;; ;;; Copyright statement at -process.html ;;; ;;;===================================================================== ;;;==============================================================...
null
https://raw.githubusercontent.com/larcenists/larceny/fef550c7d3923deb7a5a1ccd5a628e54cf231c75/lib/VanTonderMacros/standard-libraries.scm
scheme
===================================================================== Derived forms: Copyright statement at -process.html ===================================================================== ===================================================================== This file builds r6rs up using a sequence of l...
Copyright ( c ) 2006 (library (core primitives) (export Macros defined in core expander : begin if lambda quote set! and or define define-syntax let-syntax letrec-syntax _ ... syntax syntax-case R5RS primitives : * + - / < <= = > >= abs acos append apply asin atan boo...
6956680a4356b0ffe30be7b26005166afb8c1ac913ce8728ad989d0e8e711511
Xingtao/ReinforceLearningIntro
TestChapter4DP.hs
# LANGUAGE ExtendedDefaultRules # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE FlexibleContexts # {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE BangPatterns #-} module TestChapter4DP ( testChapter4 )where import Control.Concurrent import Control.Monad import ...
null
https://raw.githubusercontent.com/Xingtao/ReinforceLearningIntro/ea48c10baec4c70c4e9ad3442a082d35983731ac/test/TestChapter4DP.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE ScopedTypeVariables # # LANGUAGE BangPatterns # project -------------------------------------------------------------------------------------------------- Car Rental Test do experiments also output table format output in github markdown format -----------------...
# LANGUAGE ExtendedDefaultRules # # LANGUAGE FlexibleContexts # module TestChapter4DP ( testChapter4 )where import Control.Concurrent import Control.Monad import Control.Monad.IO.Class import Control.Monad.Trans.State import Data.Configurator impor...
c2f9110ffe9c388fa5ed93ff3002f6094e5c354db016169952902c4db085dead
shirok/Gauche
SXML-to-HTML.scm
HTML Authoring in SXML ; The present file defines and demonstrates a function SXML->HTML , the most generic transformation of SXML into the corresponding HTML document . The SXML tree is traversed post - order and converted into another tree , which , written in a depth - first fashion , results in a HTML...
null
https://raw.githubusercontent.com/shirok/Gauche/ecaf82f72e2e946f62d99ed8febe0df8960d20c4/ext/sxml/src/SXML-to-HTML.scm
scheme
HTML markup, for any existing or yet to be introduced HTML trivially extended to support other higher-level tags. The proper HTML markup is being created by a set of node handlers. An iterator 'post-order' executes these functions while it list of children nodes, if any. A handler returns a fragment or a list ...
HTML Authoring in SXML The present file defines and demonstrates a function SXML->HTML , the most generic transformation of SXML into the corresponding HTML document . The SXML tree is traversed post - order and converted into another tree , which , written in a depth - first fashion , results in a HTML d...
5d3bae69a88daa008929818b5d0f5990b429e1cdc039af6f4dc98388220e2779
mikeplus64/plissken
Config.hs
{-# LANGUAGE OverloadedStrings #-} module Config where import Save defaultConfig :: Config defaultConfig = mkConfig $ do conf "p.name" (text "MAL") conf "scores" $ list [ pair (text "MAL") (nat 500) , pair (text "MAL") (nat 433) ] conf "options.resx" (nat 512) conf "opt...
null
https://raw.githubusercontent.com/mikeplus64/plissken/e872db14c2e6d0df9379f81aaeaa448ca1ade6fd/src/Config.hs
haskell
# LANGUAGE OverloadedStrings #
module Config where import Save defaultConfig :: Config defaultConfig = mkConfig $ do conf "p.name" (text "MAL") conf "scores" $ list [ pair (text "MAL") (nat 500) , pair (text "MAL") (nat 433) ] conf "options.resx" (nat 512) conf "options.rexy" (nat 512)
22de2c3756d12b2038767255d45866e69e560dee16ec49136e40b66d0d1df17b
kupl/AlphaRegexPublic
synthesizer.ml
open Options open Lang open Vocab open Hopeless (*************************************) (* examples and consistency checking *) (*************************************) let iter = ref 0 let t0 = ref (Sys.time ()) let t_total = Sys.time () let print_examples examples = List.iter (fun str -> print_endline (str2s...
null
https://raw.githubusercontent.com/kupl/AlphaRegexPublic/8230a0677bca6f02d83eb3e718a61e71bfec18a2/synthesizer.ml
ocaml
*********************************** examples and consistency checking *********************************** *********************************** available, holes, subst *********************************** replace hole inside e by e' replace the hole with e' A?(AB)*B? ***********************************...
open Options open Lang open Vocab open Hopeless let iter = ref 0 let t0 = ref (Sys.time ()) let t_total = Sys.time () let print_examples examples = List.iter (fun str -> print_endline (str2str str) ) examples let rec run : exp -> example -> bool =fun exp example -> let _ = Profiler.start_event "Run" in ...
42ae4f52868c49709d7f2d5432b4fc80e5e9f5d245158d1ae3fbf707caefe30a
drewolson/aoc-hs
Year2021.hs
module Aoc.Runner.Year2021 where import Aoc.Runner.Args (Args (..)) import Aoc.Year2021.Day01 qualified as Day01 import Aoc.Year2021.Day02 qualified as Day02 import Aoc.Year2021.Day03 qualified as Day03 import Aoc.Year2021.Day04 qualified as Day04 import Aoc.Year2021.Day05 qualified as Day05 import Aoc.Year2021.Day06 ...
null
https://raw.githubusercontent.com/drewolson/aoc-hs/ae968d9fed00213de704bae079759bdd7427c862/aoc-runner/src/Aoc/Runner/Year2021.hs
haskell
module Aoc.Runner.Year2021 where import Aoc.Runner.Args (Args (..)) import Aoc.Year2021.Day01 qualified as Day01 import Aoc.Year2021.Day02 qualified as Day02 import Aoc.Year2021.Day03 qualified as Day03 import Aoc.Year2021.Day04 qualified as Day04 import Aoc.Year2021.Day05 qualified as Day05 import Aoc.Year2021.Day06 ...
a72a311fcb24e1efac3db3c418480c4cdffcd7cd57a66aa10b554e55a8022f31
JHU-PL-Lab/jaylang
size_dataflow.ml
open Core open Fix open Share open Jayil.Ast (* module SizeF = Fix.ForHashedType() *) module IdWithHash : HashedType with type t = Id.t = struct type t = Id.t let hash = Id.hash let equal = Id.equal end module IntSemiLattice : MINIMAL_SEMI_LATTICE with type property = int = struct type property = int let...
null
https://raw.githubusercontent.com/JHU-PL-Lab/jaylang/484b3876986a515fb57b11768a1b3b50418cde0c/src/analysis/size_dataflow.ml
ocaml
module SizeF = Fix.ForHashedType() if Id.equal x x0 then raise (Found v) else v F.lfp (fun x f : int -> try expr_size f x program with Found i -> i) F.lfp (fun x f : int -> ignore @@ expr_size f x program; !answer) print_endline @@ string_of_int (compute_size program)
open Core open Fix open Share open Jayil.Ast module IdWithHash : HashedType with type t = Id.t = struct type t = Id.t let hash = Id.hash let equal = Id.equal end module IntSemiLattice : MINIMAL_SEMI_LATTICE with type property = int = struct type property = int let leq_join x y = let v = x + y in ...
50e59b3e71712687932a2a0dbf53120e1d2f1cacc0a5063a6ab4eec1511d63dc
travelping/ergw
ergw_core_sbi_lib.erl
Copyright 2021 , Travelping GmbH < > %% This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . -module(ergw_core_sbi_li...
null
https://raw.githubusercontent.com/travelping/ergw/27947955f417e68f26dc3a2aaeaddd4e2c317858/apps/ergw_core/test/ergw_core_sbi_lib.erl
erlang
This program is free software; you can redistribute it and/or
Copyright 2021 , Travelping GmbH < > modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . -module(ergw_core_sbi_lib). -export([init_per_group/1, end_per_group/1]). init_per_grou...
fed5548904b9be036da741d82bf36bd295794ed09c301f3ddc93ebbd1acc4343
Bogdanp/deta
sql-postgresql.rkt
#lang at-exp racket/base (require deta (prefix-in ast: deta/private/ast) deta/private/dialect/dialect deta/private/dialect/postgresql (only-in deta/private/query query-stmt) racket/format rackunit threading) (provide sql-tests) (define...
null
https://raw.githubusercontent.com/Bogdanp/deta/626dc288f8375e26ef17af57051ef57ce1509519/deta-test/deta/sql-postgresql.rkt
racket
#lang at-exp racket/base (require deta (prefix-in ast: deta/private/ast) deta/private/dialect/dialect deta/private/dialect/postgresql (only-in deta/private/query query-stmt) racket/format rackunit threading) (provide sql-tests) (define...
c450b3f6b651e701ee0bd1a5432f2f3dd029e426ba8ce5e57ea2e0a3dea5d90e
nervous-systems/sputter
util.clj
(ns sputter.state.trie.util (:refer-clojure :exclude [flatten]) (:require [sputter.state.trie.node :as node] [sputter.state.trie.rlp :as trie.rlp] [sputter.util.rlp :as rlp] [sputter.util :as util] [sputter.state.kv :as kv])) (def ^:private ...
null
https://raw.githubusercontent.com/nervous-systems/sputter/e96357cff7ea13384ed94c7b0d6028d125b92e00/src/sputter/state/trie/util.clj
clojure
(ns sputter.state.trie.util (:refer-clojure :exclude [flatten]) (:require [sputter.state.trie.node :as node] [sputter.state.trie.rlp :as trie.rlp] [sputter.util.rlp :as rlp] [sputter.util :as util] [sputter.state.kv :as kv])) (def ^:private ...
87cb12a5f8c6a315faf6d484911bd4a4bd039b8e32d19326abf4bc510ad88ef5
yomimono/answer-af
encoder.ml
let t = let doc = "integer to set for the answer type. Will be forced to 0 <= i <= 255 for the given integer." in Cmdliner.Arg.(value & pos 1 int 0 & info ~doc ~docv:"TYPE" []) let answers = let doc = "lines to include in the answer. For best results, limit to four strings, of which the first is a maximum of...
null
https://raw.githubusercontent.com/yomimono/answer-af/d9f5e1f079dda72a5a198fa773d5adc9510a6624/src/encoder.ml
ocaml
let t = let doc = "integer to set for the answer type. Will be forced to 0 <= i <= 255 for the given integer." in Cmdliner.Arg.(value & pos 1 int 0 & info ~doc ~docv:"TYPE" []) let answers = let doc = "lines to include in the answer. For best results, limit to four strings, of which the first is a maximum of...
79bcaa1c1a9ae367ae195af01b275335b2df5693efc5dbd58b873d7fba21ddd4
bravit/hid-examples
Main.hs
module Main where import Options.Applicative as Opt import TextShow import Data.Text.IO as TIO import App import DiskUsage import FileCounter import DirTree buildEntries :: Builder -> (e -> Builder) -> [e] -> Builder buildEntries title entryBuilder entries = unlinesB $ title : map entryBuilder entries tabEntryBui...
null
https://raw.githubusercontent.com/bravit/hid-examples/913e116b7ee9c7971bba10fe70ae0b61bfb9391b/du/Main.hs
haskell
module Main where import Options.Applicative as Opt import TextShow import Data.Text.IO as TIO import App import DiskUsage import FileCounter import DirTree buildEntries :: Builder -> (e -> Builder) -> [e] -> Builder buildEntries title entryBuilder entries = unlinesB $ title : map entryBuilder entries tabEntryBui...
e3465961573e1a4b5fcce927ceb45b92aefa730f033da341cd8300080f214ead
spechub/Hets
PrintTPTP.hs
| Module : ./SoftFOL / PrintTPTP.hs Description : Pretty printing for SPASS signatures in TPTP syntax . Copyright : ( c ) , , Uni Bremen 2005 - 2006 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : unknown Pretty pri...
null
https://raw.githubusercontent.com/spechub/Hets/af7b628a75aab0d510b8ae7f067a5c9bc48d0f9e/SoftFOL/PrintTPTP.hs
haskell
| Helper function. Generates a separating comment line. | Creates a Doc from a SoftFOL Problem. | Creates a Doc from a SoftFOL Logical Part. | Creates a Doc from a SoftFOL Formula List. | Creates a Doc from a SoftFOL Origin Type. | Creates a Doc from a SoftFOL Term. either all variables are sim...
| Module : ./SoftFOL / PrintTPTP.hs Description : Pretty printing for SPASS signatures in TPTP syntax . Copyright : ( c ) , , Uni Bremen 2005 - 2006 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : unknown Pretty pri...
8145f34719f2bb0c8cc71e8be82ea014ffd236efd63c57ba63855ec5d7c4c672
kanatohodets/riak_core_workshop_euc2016
simple_hash_sup.erl
-module(simple_hash_sup). -behaviour(supervisor). %% API -export([start_link/0]). %% Supervisor callbacks -export([init/1]). %% =================================================================== %% API functions %% =================================================================== start_link() -> supervisor:...
null
https://raw.githubusercontent.com/kanatohodets/riak_core_workshop_euc2016/a396bb5a1879ec0cb3d70bbc4b6cd39e097cd610/1_plain_hash/erlang/apps/simple_hash/src/simple_hash_sup.erl
erlang
API Supervisor callbacks =================================================================== API functions =================================================================== =================================================================== Supervisor callbacks ================================================...
-module(simple_hash_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, []). init(_Args) -> VMaster = { simple_hash_vnode_master, {riak_core_vnode_master, start_link, [simple_hash_vnode]}, ...
67e4d0db24910b82d41394e51d700d8c3eb0a474521a4e74c53e8aa9039701a1
lylek/vintage-basic
Executer_test.hs
module Language.VintageBasic.Executer_test where import Data.List(isInfixOf) import Test.HUnit import Text.ParserCombinators.Parsec.Pos(newPos) import Language.VintageBasic.Asserts import Language.VintageBasic.Executer test_tokenization_errors_reported_at_correct_location = do let source = ( Tagged (...
null
https://raw.githubusercontent.com/lylek/vintage-basic/6cb46767aeb6d2c0b9da4175c7fa8c0ffc31b1c7/test/Language/VintageBasic/Executer_test.hs
haskell
case tokenizeRawLine source of
module Language.VintageBasic.Executer_test where import Data.List(isInfixOf) import Test.HUnit import Text.ParserCombinators.Parsec.Pos(newPos) import Language.VintageBasic.Asserts import Language.VintageBasic.Executer test_tokenization_errors_reported_at_correct_location = do let source = ( Tagged (...
ad2cdba9c3408e316d95aeca5799c69f467d08490dc0bcc9166063fee44cbf40
igrishaev/book-sessions
web.clj
(ns book.web (:require [ring.middleware.content-type :refer [wrap-content-type]] [clojure.java.io :as io] [ring.middleware.params :refer [wrap-params]] [ring.middleware.keyword-params :refer [wrap-keyword-params]] [ring.middleware.json :refer [wrap-json-response wra...
null
https://raw.githubusercontent.com/igrishaev/book-sessions/28eda2adf438d3862b86c89e68987d3147db8fb0/src/book/web.clj
clojure
Set-Cookie: seen=true seen = true document.cookie document.cookie :body (io/file "terminals.json")
(ns book.web (:require [ring.middleware.content-type :refer [wrap-content-type]] [clojure.java.io :as io] [ring.middleware.params :refer [wrap-params]] [ring.middleware.keyword-params :refer [wrap-keyword-params]] [ring.middleware.json :refer [wrap-json-response wra...
a0641dd1385931ede2bf95102f9d64c3ab0e24c2ff5ff483b193c76a62cafc34
erdos/stencil
numbering_test.clj
(ns stencil.model.numbering-test (:require [stencil.model.numbering :refer :all] [stencil.ooxml :as ooxml] [clojure.test :refer [deftest testing is are]])) (defn hiccup [body] (assert (vector? body)) (let [[tag attrs & children] (if (map? (second body)) body (list* (first body) {}...
null
https://raw.githubusercontent.com/erdos/stencil/d70a285f858b94cee49a2239c897ad3a4cc5a3fc/test/stencil/model/numbering_test.clj
clojure
(ns stencil.model.numbering-test (:require [stencil.model.numbering :refer :all] [stencil.ooxml :as ooxml] [clojure.test :refer [deftest testing is are]])) (defn hiccup [body] (assert (vector? body)) (let [[tag attrs & children] (if (map? (second body)) body (list* (first body) {}...
961a988218ee2672056e43e380ab8bb360e23c1cc5ba47fb5b3229015cb3189f
rems-project/lem
process_file.mli
(**************************************************************************) (* Lem *) (* *) , University of Cambridge , INRIA Paris -...
null
https://raw.githubusercontent.com/rems-project/lem/a839114e468119d9ac0868d7dc53eae7f3cc3a6c/src/process_file.mli
ocaml
************************************************************************ Lem ...
, University of Cambridge , INRIA Paris - Rocquencourt , University of Cambridge , University of Cambridge , University of Cambridge ( while working on Lem ) ...
4a9ad05598d23e03cb11107c983a45adf9e877a103ad4d12bc8583d99f177536
replikativ/flechtwerk
project.clj
(defproject io.replikativ/flechtwerk "0.1.1-SNAPSHOT" :description "Vega specifications for replikativ commit graph" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/clojurescript "1.8.34"] ...
null
https://raw.githubusercontent.com/replikativ/flechtwerk/e835a271435914a0d422f79fddd4c0b166702dc2/project.clj
clojure
(defproject io.replikativ/flechtwerk "0.1.1-SNAPSHOT" :description "Vega specifications for replikativ commit graph" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/clojurescript "1.8.34"] ...
b3cba9d730426deac87431417f8bee548b2ac340cf1e6eb94dee5e4f0296d494
mlin/PhyloCSF
Fit.mli
(** low-level routines for numerical optimization *) * { 1 Single - dimensional maximization } * a [ maximizer ] iteratively narrows down a local maximum of a one - dimensional function [ f(x ) ] class type maximizer = object (** current estimate of the locally maximizing setting, [argmax_x f(x)] *) method maximum ...
null
https://raw.githubusercontent.com/mlin/PhyloCSF/6a26e7f7f40b43eac8b76cc1fe295a584d7d8b38/lib/CamlPaml/Fit.mli
ocaml
* low-level routines for numerical optimization * current estimate of the locally maximizing setting, [argmax_x f(x)] * current lower and upper bounds on [x] around the local maximum * perform the next iteration * a multi_maximizer performs gradient ascent on a multidimensional function * current estimate of the m...
* { 1 Single - dimensional maximization } * a [ maximizer ] iteratively narrows down a local maximum of a one - dimensional function [ f(x ) ] class type maximizer = object method maximum : unit -> float method interval : unit -> (float*float) method iterate : unit -> unit * create a [ maximizer ] for the fun...
6ec44eeb34f56f396126a3a596a686ddb7b72ef511361f8df20ee03e99528b67
appositum/rola
Spec.hs
# language ViewPatterns # import qualified Data.Map as M import Rola import Test.Hspec import Text.Megaparsec (parseMaybe) parse :: String -> Maybe Expr parse = parseMaybe parseExpr readExpr' :: String -> Expr readExpr' (readExpr -> Right res) = res reduceMaybe :: String -> Mayb...
null
https://raw.githubusercontent.com/appositum/rola/7d733d4c586dc1c2114418510d6cbf3a1a7ac692/test/Spec.hs
haskell
# language ViewPatterns # import qualified Data.Map as M import Rola import Test.Hspec import Text.Megaparsec (parseMaybe) parse :: String -> Maybe Expr parse = parseMaybe parseExpr readExpr' :: String -> Expr readExpr' (readExpr -> Right res) = res reduceMaybe :: String -> Mayb...
506e7180462f63abd9c3cc7d5e0fd313f40f767ec89f9f45f36fce7441eb0fb5
ktakashi/r7rs-postgresql
test-ci.scm
(import (scheme base) (scheme write) (scheme process-context) (postgresql)) (cond-expand ((library (srfi 64)) (import (srfi 64))) ((library (chibi test)) ;; test-equal in (chibi test) is not SRFI-64 compatible ;; so wrap it (import (except (chibi test) test-equal)) (begin (define-syntax test-equal ...
null
https://raw.githubusercontent.com/ktakashi/r7rs-postgresql/94fdaeccee6caa5e9562a8f231329e59ce15aae7/test-ci.scm
scheme
test-equal in (chibi test) is not SRFI-64 compatible so wrap it gauche.test uses define-macro for test* so it breaks hygine and we must need to import test procedure as well... I think it's a bug but this is how it is then it is... user: postgres pass: postgres may not be there yet (causes an error if there is...
(import (scheme base) (scheme write) (scheme process-context) (postgresql)) (cond-expand ((library (srfi 64)) (import (srfi 64))) ((library (chibi test)) (import (except (chibi test) test-equal)) (begin (define-syntax test-equal (syntax-rules () ((_ name expect expr) (test name expect expr)) (...
217cabdf6310d1d7378417ea6c435c5da846f1514765871786e6f4dd0bd1c343
fragnix/fragnix
Text.Regex.Posix.Wrap.hs
# LANGUAGE Haskell98 , MultiParamTypeClasses , FunctionalDependencies , CPP , ForeignFunctionInterface , , FlexibleContexts , TypeSynonymInstances , FlexibleInstances # {-# LINE 1 "dist/dist-sandbox-261cd265/build/Text/Regex/Posix/Wrap.hs" #-} # OPTIONS_GHC -op...
null
https://raw.githubusercontent.com/fragnix/fragnix/b9969e9c6366e2917a782f3ac4e77cce0835448b/tests/packages/scotty/Text.Regex.Posix.Wrap.hs
haskell
# LINE 1 "dist/dist-sandbox-261cd265/build/Text/Regex/Posix/Wrap.hs" # --------------------------------------------------------------------------- | License : BSD-style (see the file LICENSE) Maintainer : , Stability : experimental increase type safety, the flags are newtype'd. The other important ...
# LANGUAGE Haskell98 , MultiParamTypeClasses , FunctionalDependencies , CPP , ForeignFunctionInterface , , FlexibleContexts , TypeSynonymInstances , FlexibleInstances # # OPTIONS_GHC -optc - DHAVE_REGCOMP=1 # # LINE 1 " Text / Regex / Posix / Wrap.hsc " # # OPT...
0a3fbd24cda7eef019c6a478f567f7a1d91becd952d7fb39ac4de5a4228e0457
gearnode/erl-pkcs5
pkcs5_pbkdf2_tests.erl
Copyright ( c ) 2020 , 2021 Exograd SAS . %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above %% copyright notice and this permission notice appear in all copies. %% THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR...
null
https://raw.githubusercontent.com/gearnode/erl-pkcs5/40e76d03d6b4e68f8d71c2bb6aeddf949e182307/test/pkcs5_pbkdf2_tests.erl
erlang
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVE...
Copyright ( c ) 2020 , 2021 Exograd SAS . THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL WARRANTIES SPECIAL , DIRECT , INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE , DATA OR PROFITS , WHETHER IN AN -module(pkcs5_pbkdf2_tests). -include_lib("eunit/in...
8742d5297e54cfebba31ea0ad6b447d21c6dc8fa327a24773a938b9dd6a6a5a6
emaphis/HtDP2e-solutions
09_05_158_shot_world3.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-beginner-reader.ss" "lang")((modname 09_05_158_shot_world3) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repea...
null
https://raw.githubusercontent.com/emaphis/HtDP2e-solutions/ecb60b9a7bbf9b8999c0122b6ea152a3301f0a68/2-Arbitrarily-Large-Data/09-Designing-Self-Referential/09_05_158_shot_world3.rkt
racket
about the language level of this file in a form that our tools can easily process. Shot World 3 If you run main, press the space bar (fire a shot), and wait for a good amount of time, the shot disappears from the canvas. When you shut down the world canvas, however, the result is a world that still contains this ...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-reader.ss" "lang")((modname 09_05_158_shot_world3) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) HtDP 2e - 9 Designing with Self - Referential Da...
63cb2eb65d4ce7cb96c3eb57cc2e3a29af9709f2c39dab64daac2414a37f6e99
jackfirth/syntax-warn
raco-fix.rkt
#lang racket/base (require racket/cmdline racket/file racket/match raco/command-name syntax/warn syntax/warn/private/syntax-srcloc "private/syntax-string.rkt" "private/command.rkt" "private/config.rkt" "private/module.rkt" "priva...
null
https://raw.githubusercontent.com/jackfirth/syntax-warn/f17fdd3179aeab8e5275a24e7d091d3ca42960a9/syntax-warn-cli/warn/raco-fix.rkt
racket
#lang racket/base (require racket/cmdline racket/file racket/match raco/command-name syntax/warn syntax/warn/private/syntax-srcloc "private/syntax-string.rkt" "private/command.rkt" "private/config.rkt" "private/module.rkt" "priva...
b206bacbc81d96fdbc1449308ba9888de404a27a445b790f1632cfe69d2ad79c
tel/oak
devcards.cljs
(ns oak.devcards (:require [oak.examples.counters] [oak.examples.github]))
null
https://raw.githubusercontent.com/tel/oak/12227273ba5fbc27bc0c5379017ee8902992670d/ex/oak/devcards.cljs
clojure
(ns oak.devcards (:require [oak.examples.counters] [oak.examples.github]))
d65329201a617e59742ea5009578d12ea9a18cc5fba5de46f40436a8a31ab05c
joyofclojure/book-source
mutation.clj
(ns joy.mutation "Common utilities for chapter 10") (import '(java.util.concurrent Executors)) (def thread-pool (Executors/newFixedThreadPool (+ 2 (.availableProcessors (Runtime/getRuntime))))) (defn dothreads! [f & {thread-count :threads exec-count :times ...
null
https://raw.githubusercontent.com/joyofclojure/book-source/b76ef15248dac88c7b1c77c2d461f3aa522a1461/src/clj/joy/mutation.clj
clojure
stress ref stress agent
(ns joy.mutation "Common utilities for chapter 10") (import '(java.util.concurrent Executors)) (def thread-pool (Executors/newFixedThreadPool (+ 2 (.availableProcessors (Runtime/getRuntime))))) (defn dothreads! [f & {thread-count :threads exec-count :times ...
5ae723caf467796995f9e05362080cc86d505d0c8783dd9d7c068e40ce00c601
dterei/SafeHaskellExamples
M_Terei.hs
{-# LANGUAGE Safe #-} module M_Terei where bigInt :: Int bigInt = 9
null
https://raw.githubusercontent.com/dterei/SafeHaskellExamples/0f7bbb53cf1cbb8419ce3a4aa4258b84be30ffcc/pkgs/p/M_Terei.hs
haskell
# LANGUAGE Safe #
module M_Terei where bigInt :: Int bigInt = 9
a73290fbb6ddced798c63f26163385a15678950eef65feda80c70db1a74e767e
yariv/twoorl
twitter.erl
This file is part of Twoorl . %% %% Twoorl is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or %% (at your option) any later version. %% %% Twoorl is distributed in the ho...
null
https://raw.githubusercontent.com/yariv/twoorl/77b6bea2e29283d09a95d8db131b916e16d2960b/src/twitter.erl
erlang
Twoorl is free software: you can redistribute it and/or modify (at your option) any later version. Twoorl is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License f...
This file is part of Twoorl . 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 along with . If not , see < / > . Copyright , 2008 @author < > [ ...
eb65b1b49b4eb23d8c2030c8711972bc5784561a9eea616e4ca212d4a43a27fb
lisp-mirror/clpm
file-source.lisp
Definitions for using files as config sources for CLPM . ;;;; This software is part of CLPM . See README.org for more information . See ;;;; LICENSE for license information. (uiop:define-package #:clpm/config/file-source (:use #:cl #:alexandria #:clpm/config/paths #:clpm/config/so...
null
https://raw.githubusercontent.com/lisp-mirror/clpm/ad9a704fcdd0df5ce30ead106706ab6cc5fb3e5b/clpm/config/file-source.lisp
lisp
LICENSE for license information. VALUES may have a single element or have multiple elements. If it has multiple elements, it is treated as a table.
Definitions for using files as config sources for CLPM . This software is part of CLPM . See README.org for more information . See (uiop:define-package #:clpm/config/file-source (:use #:cl #:alexandria #:clpm/config/paths #:clpm/config/source-defs #:clpm/utils) (:expor...
962723a7728f1268484b41992000d62dd1115c5bb1faf2fbce7a7aabee7a4921
realworldocaml/book
t.mli
(** Parsing of s-expressions. This library is internal to dune and guarantees no API stability.*) open! Stdune (** The S-expression type *) type t = | Atom of Atom.t | Quoted_string of string | List of t list | Template of Template.t * [ atom s ] convert the string [ s ] to an Atom . NOTE No validity che...
null
https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/dune_/src/dune_sexp/t.mli
ocaml
* Parsing of s-expressions. This library is internal to dune and guarantees no API stability. * The S-expression type * Same as [pp ~syntax:Dune], but split long strings. The formatter must have been prepared with [prepare_formatter]. * Prepare a formatter for [pp_split_strings]. Additionally the formatter...
open! Stdune type t = | Atom of Atom.t | Quoted_string of string | List of t list | Template of Template.t * [ atom s ] convert the string [ s ] to an Atom . NOTE No validity check is performed . performed. *) val atom : string -> t val atom_or_quoted_string : string -> t * Serialize a S - express...
692bd86b509b2034d16685bb083011994014695927fe4069274bd8681cd6e8aa
anoma/juvix
IdentInfo.hs
module Juvix.Compiler.Core.Info.IdentInfo where import Data.HashMap.Strict qualified as HashMap import Juvix.Compiler.Core.Extra import Juvix.Compiler.Core.Info qualified as Info import Juvix.Compiler.Core.Language newtype IdentInfo = IdentInfo { -- map symbols to the number of their occurrences _infoIdents :: ...
null
https://raw.githubusercontent.com/anoma/juvix/59e67124520224fb68f4065753b53bc3b573be1e/src/Juvix/Compiler/Core/Info/IdentInfo.hs
haskell
map symbols to the number of their occurrences
module Juvix.Compiler.Core.Info.IdentInfo where import Data.HashMap.Strict qualified as HashMap import Juvix.Compiler.Core.Extra import Juvix.Compiler.Core.Info qualified as Info import Juvix.Compiler.Core.Language newtype IdentInfo = IdentInfo _infoIdents :: HashMap Symbol Int } instance IsInfo IdentInfo kId...
182237996491389c93a0f86728194209b16960c6228bea6592e9a0ba5d996ba5
vikram/lisplibraries
rdf-inspector.lisp
-*- package : ; Syntax : Common - lisp ; Base : 10 -*- ;;; ;;;; rdf-inspector.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The contents of this file are subject to the NOKOS License Version 1.0a (the ;;; "License"); you may not use this file ex...
null
https://raw.githubusercontent.com/vikram/lisplibraries/105e3ef2d165275eb78f36f5090c9e2cdd0754dd/site/wilbur/goodies/rdf-inspector.lisp
lisp
Syntax : Common - lisp ; Base : 10 -*- rdf-inspector.lisp -------------------------------------------------------------------------------------- The contents of this file are subject to the NOKOS License Version 1.0a (the "License"); you may not use this file except in compliance with the License. WA...
Software distributed under the License is distributed on an " AS IS " basis , WITHOUT The Original Software is WILBUR2 : Nokia Semantic Web Toolkit for CLOS Copyright ( c ) 2001 - 2005 Nokia and others . All Rights Reserved . Portions Copyright ( c ) 1989 - 1992 . All Rights Reserved . Cont...
19b228b1ab924dd4101f45c75e2b90d7eb367df4c78ea2d3f20d75198b0ecf05
banacorn/agda-language-server
RichText.hs
# LANGUAGE DeriveGeneric # # LANGUAGE FlexibleInstances # module Render.RichText ( Block(..), Inlines (..), LinkTarget ( .. ) , space, text, text', parens, -- link, linkRange, linkHole, icon, -- combinators (<+>), punctuate, braces, braces', dbraces, ...
null
https://raw.githubusercontent.com/banacorn/agda-language-server/19f9fbf6b2e06b63f53c31b35f943725c91fc505/src/Render/RichText.hs
haskell
link, combinators symbols ------------------------------------------------------------------------------ | Block elements for ordinary goals & context headers ------------------------------------------------------------------------------ Represent Inlines with String literals | see if the rendered text is "empt...
# LANGUAGE DeriveGeneric # # LANGUAGE FlexibleInstances # module Render.RichText ( Block(..), Inlines (..), LinkTarget ( .. ) , space, text, text', parens, linkRange, linkHole, icon, (<+>), punctuate, braces, braces', dbraces, mparens, hcat, hsep, ...
39a93d1fa994a499f6de9625f18ef33c8a2b7584ba211dec15a82f447125604d
chrislomaxjones/part-ii-project
quorum.mli
type ('a, 'b) t val add : ('a, 'b) t -> 'b -> ('a, 'b) t val is_majority : ('a, 'b) t -> bool val from_list : 'a list -> ('a, 'b) t
null
https://raw.githubusercontent.com/chrislomaxjones/part-ii-project/fb638a6d9759717a610ff8cf2fe985b94f003648/src/quorum.mli
ocaml
type ('a, 'b) t val add : ('a, 'b) t -> 'b -> ('a, 'b) t val is_majority : ('a, 'b) t -> bool val from_list : 'a list -> ('a, 'b) t
b090f269241c7c869687ef739d31942f50eb883a01f0262bcaafcd0c0348c849
bluegraybox/examples
start_server.erl
#!/usr/bin/escript %%! -smp enable -sname bowling_web -mode(compile). % for better performance main([]) -> io:format("Usage: ~s <spooky install dir>~n", [escript:script_name()]); main([SpookyDir]) -> %% Add spooky and its dependencies to the code path. true = code:add_path(SpookyDir ++ "/ebin"), Deps...
null
https://raw.githubusercontent.com/bluegraybox/examples/20f238be10e2e987687d7289b2f4897cc7d95abd/bowling/erlang/start_server.erl
erlang
! -smp enable -sname bowling_web for better performance Add spooky and its dependencies to the code path. Add this script's dir to the code path. Compile our modules, just to be safe. wait for the store to shut down before exiting
#!/usr/bin/escript main([]) -> io:format("Usage: ~s <spooky install dir>~n", [escript:script_name()]); main([SpookyDir]) -> true = code:add_path(SpookyDir ++ "/ebin"), Deps = filelib:wildcard(SpookyDir ++ "/deps/*/ebin"), ok = code:add_paths(Deps), true = code:add_path(filename:dirname(filename:ab...
cf41f4710ad7864905b9095d0648e0a0e1e5dbe545eebcbc9d6d850534ba44ba
ptol/oczor
CodeGenRuby.hs
module Oczor.CodeGen.CodeGenRuby where import Oczor.CodeGen.Utl codeGen :: Ast -> Doc codeGen = x where x = cata $ \case NoneF -> empty UniqObjectF {} -> text "UniqObject.new" CodeF x -> text x NotEqualF x y -> sep [x, text "!=", y] EqualF x y -> sep [x, text "==", y] LitF value -> lit valu...
null
https://raw.githubusercontent.com/ptol/oczor/77255e3c1b3decb956d53754cd3f2ac0ae746c67/src/Oczor/CodeGen/CodeGenRuby.hs
haskell
module Oczor.CodeGen.CodeGenRuby where import Oczor.CodeGen.Utl codeGen :: Ast -> Doc codeGen = x where x = cata $ \case NoneF -> empty UniqObjectF {} -> text "UniqObject.new" CodeF x -> text x NotEqualF x y -> sep [x, text "!=", y] EqualF x y -> sep [x, text "==", y] LitF value -> lit valu...
c3d0bb780ed3e48cdbc2cd6aca3742ec92157205c14ed37d89565e6436702db3
exoscale/clojure-kubernetes-client
autoscaling_v2beta1.clj
(ns clojure-kubernetes-client.api.autoscaling-v2beta1 (:require [clojure-kubernetes-client.core :refer [call-api check-required-params with-collection-format *api-context*]] [clojure.spec.alpha :as s] [spec-tools.core :as st] [orchestra.core :refer [defn-spec]] [clojure...
null
https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/api/autoscaling_v2beta1.clj
clojure
(ns clojure-kubernetes-client.api.autoscaling-v2beta1 (:require [clojure-kubernetes-client.core :refer [call-api check-required-params with-collection-format *api-context*]] [clojure.spec.alpha :as s] [spec-tools.core :as st] [orchestra.core :refer [defn-spec]] [clojure...
794d03a8cefc7da3234cba20af076073adb878fc8bd40e0a9cffa16ffd7f7297
avsm/platform
tyxml_ppx.mli
TyXML * * Copyright ( C ) 2016 , * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking exception ; * either version 2.1 of the License , or ( at you...
null
https://raw.githubusercontent.com/avsm/platform/b254e3c6b60f3c0c09dfdcde92eb1abdc267fa1c/duniverse/tyxml.4.3.0/ppx/tyxml_ppx.mli
ocaml
* TyXML ppx library. This is the documentation for the internal ppx library. {% Documentation for the ppx itself is available <<a_manual chapter="ppx"|here>>. %} * Given the payload of a [%html ...] or [%svg ...] expression, converts it to a TyXML expression representing the markup contained there...
TyXML * * Copyright ( C ) 2016 , * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking exception ; * either version 2.1 of the License , or ( at you...
b91761da6d1e97fdc84a6241f04a1800ec3817a92f77cba9a9fef7b5705c1bd1
nikita-volkov/hasql
Encoders.hs
-- | -- A DSL for declaration of statement parameter encoders. -- -- For compactness of names all the types defined here imply being an encoder. E.g. , the ` Array ` type is an _ _ encoder _ _ of arrays , not the data - structure itself . module Hasql.Encoders ( -- * Parameters product Params, noParams, ...
null
https://raw.githubusercontent.com/nikita-volkov/hasql/bd5cc3dc0fe556703a758def844a369f7d6f5756/library/Hasql/Encoders.hs
haskell
| A DSL for declaration of statement parameter encoders. For compactness of names all the types defined here imply being an encoder. * Parameters product * Nullability * Value * Array * Composite
E.g. , the ` Array ` type is an _ _ encoder _ _ of arrays , not the data - structure itself . module Hasql.Encoders Params, noParams, param, NullableOrNot, nonNullable, nullable, Value, bool, int2, int4, int8, float4, float8, numeric, char, text, b...
7b38f40c6a951877a9ced83d5675a9a2614c9ea7d117c7c266016b6fe4a42a99
ryanpbrewster/haskell
nonogram.hs
import System.Environment (getArgs) import qualified Data.Array as A import Data.List (intercalate, group) import Control.Monad (replicateM) import qualified Data.Map as M main = do args <- getArgs let [m,n] = map read args :: [Int] print $ f (m,n) constraintMap (m,n) = M.fromListWith (+) [(constraint...
null
https://raw.githubusercontent.com/ryanpbrewster/haskell/6edd0afe234008a48b4871032dedfd143ca6e412/hello-world/nonogram.hs
haskell
import System.Environment (getArgs) import qualified Data.Array as A import Data.List (intercalate, group) import Control.Monad (replicateM) import qualified Data.Map as M main = do args <- getArgs let [m,n] = map read args :: [Int] print $ f (m,n) constraintMap (m,n) = M.fromListWith (+) [(constraint...
7796ce39f611b521d3edc0d4439190ee2f16b656b206964300d5af101b4e2a78
qiao/sicp-solutions
3.62.scm
(define (div-series s1 s2) (let ((car1 (stream-car s1))) (if (= car1 0) (error "zero constant term -- DIV-SERIES" s1 s2) (scale-stream (mul-series s1 (invert-unit-series (scale-stream s2 (/ 1 car1)))) ...
null
https://raw.githubusercontent.com/qiao/sicp-solutions/a2fe069ba6909710a0867bdb705b2e58b2a281af/chapter3/3.62.scm
scheme
(define (div-series s1 s2) (let ((car1 (stream-car s1))) (if (= car1 0) (error "zero constant term -- DIV-SERIES" s1 s2) (scale-stream (mul-series s1 (invert-unit-series (scale-stream s2 (/ 1 car1)))) ...
1a3dadc023f863a17659377f57f92c4cb9fa1d4ce8c8cf973dd8a255e811044f
klange/cs421
mp3common.ml
let report x = print_string "Result: "; print_int x; print_newline();;
null
https://raw.githubusercontent.com/klange/cs421/8db4619db63169bbc2ca7e1998fa4e95f002a5c4/mp3grader/mp3common.ml
ocaml
let report x = print_string "Result: "; print_int x; print_newline();;
a903eee61ed8b5440e4af30bcdfab3bb9a7e8ba8cc72f0f300529d5a704ab3da
pfdietz/ansi-test
change-class.lsp
;-*- Mode: Lisp -*- Author : Created : Sat May 3 14:23:29 2003 ;;;; Contains: Tests of CHANGE-CLASS (defclass change-class-class-01a () ((a :initarg :a) (b :initarg :b) (c :initarg :c))) (defclass change-class-class-01b () ((c :initarg :c2) (d :initarg :d2) (b :initarg :b2))) (deftest change-c...
null
https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/objects/change-class.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests of CHANGE-CLASS (new-class (find-class 'change-class-class-01b)) Shared slots Destination slots are shared Destination class has slot initforms Custom methods for change-class Method that invokes the standard method with call-next-method Before method After method Put ar...
Author : Created : Sat May 3 14:23:29 2003 (defclass change-class-class-01a () ((a :initarg :a) (b :initarg :b) (c :initarg :c))) (defclass change-class-class-01b () ((c :initarg :c2) (d :initarg :d2) (b :initarg :b2))) (deftest change-class.1.1 (let ((obj (make-instance 'change-class-class-01a)...
6f835e33f12115f99f68c0c37e18a8b6dfa5c096ea0dcd92f7ff9674ee7ce277
aryx/xix
scheduler.ml
Copyright 2016 , see copyright.txt open Common module J = Job module G = Graph module R = Rules module E = Env module Set = Set_ (*****************************************************************************) (* Prelude *) (*****************************************************************************) (********...
null
https://raw.githubusercontent.com/aryx/xix/60ce1bd9a3f923e0e8bb2192f8938a9aa49c739c/mk/scheduler.ml
ocaml
*************************************************************************** Prelude *************************************************************************** *************************************************************************** Globals ************************************************************************...
Copyright 2016 , see copyright.txt open Common module J = Job module G = Graph module R = Rules module E = Env module Set = Set_ let running = Hashtbl.create 101 let nrunning = ref 0 let nproclimit = ref (try let s = Sys.getenv "NPROC" in int_of_string s with Not_found | _ -> 2 ) let jobs = ...
154857c106c7466d36bcbe1db5b87de1f2aeb50d71077fbfc5cb02caa7d3ffae
fetburner/Coq2SML
miniml.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/fetburner/Coq2SML/322d613619edbb62edafa999bff24b1993f37612/coq-8.4pl4/plugins/extraction/miniml.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** Convention: outmost lambda/product ...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * s Target language for extract...
5e974c0193535ff096d7f8ab2e0cd448d6761ac596215cfbb687ad7a35310365
jackfirth/resyntax
string-replacement.rkt
#lang racket/base ;; A string replacement is an operation that can be applied to a string which can insert, delete, and ;; move around the contents of the string. (require racket/contract/base) (provide (contract-out [string-replacement? predicate/c] [string-replacement (->i #:chaperone (#:start [s...
null
https://raw.githubusercontent.com/jackfirth/resyntax/f5a8ae97ee17be45ae23519bb9e702da3940e8b8/private/string-replacement.rkt
racket
A string replacement is an operation that can be applied to a string which can insert, delete, and move around the contents of the string. @----------------------------------------------------------------------------------------------------
#lang racket/base (require racket/contract/base) (provide (contract-out [string-replacement? predicate/c] [string-replacement (->i #:chaperone (#:start [start natural?] #:end [end natural?] #:contents [contents (sequence/c (or/c inserted-string? copied-string?))]) #:pre/name (start en...
8cfddb7402986feb99a84ca9f4d459b3908a69a3f17ee23eb5251d67214f8306
ofmooseandmen/jord
Duration.hs
-- | Module : Data . Geo . . Duration Copyright : ( c ) 2020 License : BSD3 Maintainer : < > -- Stability: experimental -- Portability: portable -- -- Types and functions for working with (signed) durations. -- -- In order to use this module you should start with the following imports: -...
null
https://raw.githubusercontent.com/ofmooseandmen/jord/9acd8d9aec817ce05de6ed1d78e025437e1193bf/src/Data/Geo/Jord/Duration.hs
haskell
| Stability: experimental Portability: portable Types and functions for working with (signed) durations. In order to use this module you should start with the following imports: @ @ * The 'Duration' type * Smart constructors * Conversions * Read * Misc ^ the number of milliseconds in duration. | See ...
Module : Data . Geo . . Duration Copyright : ( c ) 2020 License : BSD3 Maintainer : < > import Data . Geo . . Duration ( Duration ) import qualified Data . Geo . . Duration as Duration module Data.Geo.Jord.Duration ( Duration , toMilliseconds , milliseconds , ho...
ac2c95f166ad8dca3cfe2f21b878f63287073018959e31d38f00c4a18797bb11
startalkIM/ejabberd
mod_redis.erl
%%%---------------------------------------------------------------------- %%%%%% File : mod_redis.erl %%%%%% Offfer redis service %%%%%% %%%%%%---------------------------------------------------------------------- -module(mod_redis). -include("ejabberd.hrl"). -include("logger.hrl"). -export([start/0,stop/1]). -ex...
null
https://raw.githubusercontent.com/startalkIM/ejabberd/718d86cd2f5681099fad14dab5f2541ddc612c8b/src/mod_redis.erl
erlang
---------------------------------------------------------------------- File : mod_redis.erl Offfer redis service ----------------------------------------------------------------------
-module(mod_redis). -include("ejabberd.hrl"). -include("logger.hrl"). -export([start/0,stop/1]). -export([start_link/0,init/1]). -export([mod_opt_type/1,depends/2]). -export([expire_time/3, str_set/3, str_setex/4, str_get/2, hash_set/4, hash_get/3, hash_del/3, ...
bb53fbe8731ebfc889653d1f7517ef16d73be84f3cc117867de0477f3cd41cad
herd/herdtools7
lexAffinity.mli
(****************************************************************************) (* the diy toolsuite *) (* *) , University College London , UK . , INRIA Par...
null
https://raw.githubusercontent.com/herd/herdtools7/b86aec8db64f8812e19468893deb1cdf5bbcfb83/litmus/lexAffinity.mli
ocaml
************************************************************************** the diy toolsuite en Automatique and ...
, University College London , UK . , INRIA Paris - Rocquencourt , France . Copyright 2011 - present Institut National de Recherche en Informatique et This software is governed by the CeCILL - B license under French law and modify and/ or redistribu...
59da6e768136213eef3fb4cb116a91d24cbeafa334fca6e1fd8e0006fc56cffa
camlspotter/ocamloscope.2
hashcons.ml
open Spotlib.Spot open List open Outcometree module String = struct let cache = Hashtbl.create 107 let reset () = Hashtbl.clear cache let hcons (s : string) = Hashtbl.find_or_add id cache s end module Lexing = struct open Lexing let cache = Hashtbl.create 107 let reset () = Hashtbl.clear cache let pos...
null
https://raw.githubusercontent.com/camlspotter/ocamloscope.2/49b5977a283cdd373021d41cb3620222351a2efe/hashcons.ml
ocaml
XXX unfortunately almost no gain observed. Should we also try hash-consing Signatures?
open Spotlib.Spot open List open Outcometree module String = struct let cache = Hashtbl.create 107 let reset () = Hashtbl.clear cache let hcons (s : string) = Hashtbl.find_or_add id cache s end module Lexing = struct open Lexing let cache = Hashtbl.create 107 let reset () = Hashtbl.clear cache let pos...
192bf5926fd86c12b49585091622b5277ba1f9cad7b3199fa4f5de6b1c0f93a4
yzh44yzh/erl_fun_composition
main_2.erl
-module(main_2). -export([main/0]). -spec main() -> {ok, books_shop:order()} | {error, term()}. main() -> handle_create_order(books_shop:test_data(), #{}). -spec handle_create_order(map(), map()) -> {ok, books_shop:order()} | {error, term()}. handle_create_order(Data0, State) -> case books_shop:v...
null
https://raw.githubusercontent.com/yzh44yzh/erl_fun_composition/20216a286a970853b8fa36dd1a5f55fab386db2c/src_erl/main_2.erl
erlang
-module(main_2). -export([main/0]). -spec main() -> {ok, books_shop:order()} | {error, term()}. main() -> handle_create_order(books_shop:test_data(), #{}). -spec handle_create_order(map(), map()) -> {ok, books_shop:order()} | {error, term()}. handle_create_order(Data0, State) -> case books_shop:v...
657c00e2b1f42ea7b9d7195457b723d6fe93817dc5179de5dc211125b2890860
swaywm/chicken-wlroots
xwayland.custom-build.scm
#! /usr/bin/env -S csi -script (import (srfi 13) (chicken file) (chicken io) (chicken process) (chicken process-context) (chicken string)) (define (read-words-from-command cmdline) (call-with-input-pipe cmdline (lambda (p) (string-split (read-string #f p))))) (defi...
null
https://raw.githubusercontent.com/swaywm/chicken-wlroots/649f200126102b1247ba638eb797d14b46bafc0b/xwayland.custom-build.scm
scheme
Create feature flags for the values we just loaded from config.scm.
#! /usr/bin/env -S csi -script (import (srfi 13) (chicken file) (chicken io) (chicken process) (chicken process-context) (chicken string)) (define (read-words-from-command cmdline) (call-with-input-pipe cmdline (lambda (p) (string-split (read-string #f p))))) (defi...
4fb011437854e24ec475750b45d9d0c9212150f9c8675ab610fc0cc85374f43e
racket/rhombus-prototype
all-spaces-out.rkt
#lang racket/base (require "private/all-spaces-out.rkt") (provide all-spaces-out)
null
https://raw.githubusercontent.com/racket/rhombus-prototype/4e66c1361bdde51c2df9332644800baead49e86f/rhombus/all-spaces-out.rkt
racket
#lang racket/base (require "private/all-spaces-out.rkt") (provide all-spaces-out)
ad173a192bd7e17409cf2445f2a2cdf2eb6adb50a0083c4f96297afe98026f85
zcaudate/hara
namespace_test.clj
(ns hara.module.namespace-test (:use hara.test) (:require [hara.module.namespace :as ns] [hara.core.base.result :as result] [hara.function :refer [definvoke]])) ^{:refer hara.module.namespace/list-aliases :added "3.0"} (fact "namespace list all aliases task" (ns/list-aliases '[hara.modul...
null
https://raw.githubusercontent.com/zcaudate/hara/481316c1f5c2aeba5be6e01ae673dffc46a63ec9/test/hara/module/namespace_test.clj
clojure
require clojure.string error if a new namespace is set to the same alias clearing all aliases okay to require require `join` check that it runs clear mappings the mapped symbol is gone "Unable to resolve symbol: join in this context" { .... }
(ns hara.module.namespace-test (:use hara.test) (:require [hara.module.namespace :as ns] [hara.core.base.result :as result] [hara.function :refer [definvoke]])) ^{:refer hara.module.namespace/list-aliases :added "3.0"} (fact "namespace list all aliases task" (ns/list-aliases '[hara.modul...
e30a26a0cc8c482a13121caed6df549dd1a18f3026d683b91749dadc29ea1807
mfoemmel/erlang-otp
random.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1996 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/stdlib/src/random.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 1996 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(random). The method is attribut...
1e3eccebecebab2e2cdba54ba222afc34e40b1a1a26ef7ae25a2849efff2082f
G-Corp/kafe
kafe_protocol_produce_tests.erl
-module(kafe_protocol_produce_tests). -include_lib("eunit/include/eunit.hrl"). -include("../include/kafe.hrl"). kafe_protocol_produce_test_() -> {setup, fun setup/0, fun teardown/1, [ ?_test(t_request_v0()), ?_test(t_request_v1()), ?_test(t_request_v2_explicit_timestamp()), ?_test(t_request_v2_aut...
null
https://raw.githubusercontent.com/G-Corp/kafe/78e014ae5b6d7e1077aa5cabf4adc21ed7abe203/test/kafe_protocol_produce_tests.erl
erlang
API key API version correlation id client id timeout message count topic name partition count partition index message set size offset message size crc, magic, attributes, timestamp, key, value API key API version correlation id client id timeout message count topic name part...
-module(kafe_protocol_produce_tests). -include_lib("eunit/include/eunit.hrl"). -include("../include/kafe.hrl"). kafe_protocol_produce_test_() -> {setup, fun setup/0, fun teardown/1, [ ?_test(t_request_v0()), ?_test(t_request_v1()), ?_test(t_request_v2_explicit_timestamp()), ?_test(t_request_v2_aut...
507fc7542f175314bb3e9c3d8d52e696aae8950a66bfdaa12b07d3e082dea61e
mysql-otp/mysql-otp-poolboy
mysql_poolboy_app.erl
%% MySQL/OTP + Poolboy Copyright ( C ) 2015 %% %% This file is part of MySQL/OTP + Poolboy. %% %% MySQL/OTP + Poolboy is free software: you can redistribute it and/or modify it under %% the terms of the GNU Lesser General Public License as published by the Free Software Foundation , either version 3 of the Licens...
null
https://raw.githubusercontent.com/mysql-otp/mysql-otp-poolboy/20c7247f25eaa998232268afe549e4f1ce644a5c/src/mysql_poolboy_app.erl
erlang
MySQL/OTP + Poolboy This file is part of MySQL/OTP + Poolboy. MySQL/OTP + Poolboy is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free any later version. This program is distributed in the hope that it will be useful, but W...
Copyright ( C ) 2015 Software Foundation , either version 3 of the License , or ( at your option ) ANY WARRANTY ; without even the implied warranty of MERCHANTABILITY or You should have received a copy of the GNU Lesser General Public License -module(mysql_poolboy_app). -behaviour(application). -export([sta...
16de706022e23380e7820d7fb8d99cba04fc897e6297b18d90ef582e1e4c6c4b
TGOlson/blockchain
BlockSpec.hs
module Data.Blockchain.Mining.BlockSpec (spec) where import TestUtil import Data.Blockchain import Data.Blockchain.Mining spec :: Spec spec = describe "Data.Blockchain.Mining.Block" $ do context "mineBlock" $ do propNumTests 5 "should find a block with a valid difficulty" $ \pubKey -> ioPrope...
null
https://raw.githubusercontent.com/TGOlson/blockchain/da53ad888589b5a2f3fd2c53c33a399fefb48ab1/test/Data/Blockchain/Mining/BlockSpec.hs
haskell
module Data.Blockchain.Mining.BlockSpec (spec) where import TestUtil import Data.Blockchain import Data.Blockchain.Mining spec :: Spec spec = describe "Data.Blockchain.Mining.Block" $ do context "mineBlock" $ do propNumTests 5 "should find a block with a valid difficulty" $ \pubKey -> ioPrope...
ad542d3e536daf750ef8e6c1ed5fbac4e66876153613d2b8112f664f4bed7938
effectfully-ou/sketches
FunDep.hs
# LANGUAGE MultiParamTypeClasses , DefaultSignatures , FunctionalDependencies , TypeFamilies # {-# LANGUAGE ScopedTypeVariables, TypeApplications #-} module FunDep where import Data.Word import Data.Foldable import Data.Functor.Const import Data.ByteString (ByteString) import qu...
null
https://raw.githubusercontent.com/effectfully-ou/sketches/7b512a529292e8c4bce80526b3f2b938f8cc8e60/poly-traversable/src/FunDep.hs
haskell
# LANGUAGE ScopedTypeVariables, TypeApplications #
# LANGUAGE MultiParamTypeClasses , DefaultSignatures , FunctionalDependencies , TypeFamilies # module FunDep where import Data.Word import Data.Foldable import Data.Functor.Const import Data.ByteString (ByteString) import qualified Data.ByteString as BS import Data.Tex...
f3706a9586901e4bbfc0038d6829235d0dd45a61cd47b8c18ad4126601fca337
dinosaure/ocaml-dmarc
dmarc_lwt.ml
module Lwt_scheduler = Dmarc.Sigs.Make (struct type +'a t = 'a Lwt.t end) module Lwt_io = struct type +'a t = 'a Lwt.t let return = Lwt.return let bind = Lwt.bind let both = Lwt.both let join = Lwt.join let pause = Lwt.pause let iter_p = Lwt_list.iter_p let map_p = Lwt_list.map_p let all = Lwt.all...
null
https://raw.githubusercontent.com/dinosaure/ocaml-dmarc/5c8870cb11b6e28f38cb69934ec71d65d714e5b3/lib/dmarc_lwt.ml
ocaml
module Lwt_scheduler = Dmarc.Sigs.Make (struct type +'a t = 'a Lwt.t end) module Lwt_io = struct type +'a t = 'a Lwt.t let return = Lwt.return let bind = Lwt.bind let both = Lwt.both let join = Lwt.join let pause = Lwt.pause let iter_p = Lwt_list.iter_p let map_p = Lwt_list.map_p let all = Lwt.all...
e78c3d746236cabacccf1d1baaf96e057cd72662a777ada386c2a26066e9e3b0
basti1302/elm-lang-de
Server.hs
# LANGUAGE ScopedTypeVariables # {-# LANGUAGE TypeOperators #-} module AppBootstrap.Server (appBootstrapServer) where import qualified AccessToken.Util import AppBootstrap.API (AppBootstrapAPI) import AppBootstrap.Response (AppBootstrapResponse (NotSignedIn, SignedIn)) import ...
null
https://raw.githubusercontent.com/basti1302/elm-lang-de/9654752fb6fb56bc4116483f3bbd412a774e9fb1/backend/app/AppBootstrap/Server.hs
haskell
# LANGUAGE TypeOperators #
# LANGUAGE ScopedTypeVariables # module AppBootstrap.Server (appBootstrapServer) where import qualified AccessToken.Util import AppBootstrap.API (AppBootstrapAPI) import AppBootstrap.Response (AppBootstrapResponse (NotSignedIn, SignedIn)) import qualified AppBootstrap.Response ...
3e8ebb6a8a83caef84bf7858c7b228ffdb2e3c3be32e4d780fff1ed0c5d7778f
mhuebert/chia
material.cljs
(ns website.views.material (:require ["@material-ui/core/AppBar" :default AppBar] ["@material-ui/core/IconButton" :default IconButton] ["@material-ui/core/Toolbar" :default Toolbar] [chia.material-ui :as m])) (m/defm app-bar) (m/defm toolbar) (m/defm icon-button)
null
https://raw.githubusercontent.com/mhuebert/chia/74ee3ee9f86efbdf81d8829ab4f0a44d619c73d3/website/src/website/views/material.cljs
clojure
(ns website.views.material (:require ["@material-ui/core/AppBar" :default AppBar] ["@material-ui/core/IconButton" :default IconButton] ["@material-ui/core/Toolbar" :default Toolbar] [chia.material-ui :as m])) (m/defm app-bar) (m/defm toolbar) (m/defm icon-button)
14105e2cd4398115e1ffaa351fb05968336825e7cc127b365f3dfb28adf8493f
FFPiHaskell/Vorlesung2016
staticGUI.hs
import Graphics.Gloss import Graphics.Gloss.Data.Color (makeColor, red) main :: IO () main = display (InWindow "Hello World" (500,500) (100,100)) (makeColor 0.9 0.9 0.9 1) (Pictures [ Color red (Circle 1000) , Text "Hello World Text" ])
null
https://raw.githubusercontent.com/FFPiHaskell/Vorlesung2016/22e9095cf9fc27b0c04b8f4ca636a72004452376/Beispiele/staticGUI.hs
haskell
import Graphics.Gloss import Graphics.Gloss.Data.Color (makeColor, red) main :: IO () main = display (InWindow "Hello World" (500,500) (100,100)) (makeColor 0.9 0.9 0.9 1) (Pictures [ Color red (Circle 1000) , Text "Hello World Text" ])
268f8d7f086e961e8d135d9b6e41a2098737c84131124edc0158460376e4cc26
wireless-net/erlang-nommu
snmp_config.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1996 - 2013 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Publ...
null
https://raw.githubusercontent.com/wireless-net/erlang-nommu/79f32f81418e022d8ad8e0e447deaea407289926/lib/snmp/src/misc/snmp_config.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitati...
Copyright Ericsson AB 1996 - 2013 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(snmp_config). -include_lib("kerne...
599d259f253460137761cb071e951b372a9e65f2dd5d787fb699e70e91f86ef0
sky-big/RabbitMQ
dtree.erl
The contents of this file are subject to the Mozilla Public License %% Version 1.1 (the "License"); you may not use this file except in %% compliance with the License. You may obtain a copy of the License %% at / %% Software distributed under the License is distributed on an " AS IS " %% basis, WITHOUT WARRANTY OF ...
null
https://raw.githubusercontent.com/sky-big/RabbitMQ/d7a773e11f93fcde4497c764c9fa185aad049ce2/erlang_otp_data_struct/dtree.erl
erlang
Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. A dual-index tr...
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is RabbitMQ . The Initial Developer of the Original Code is GoPivotal , Inc. Copyright ( c ) 2007 - 2014 GoPivotal , Inc. All rights reserved . Entri...