_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 |
|---|---|---|---|---|---|---|---|---|
f4cf37ffd2e3f651f32cbb47ad47c37da779110c5c105098205bd269afc61dc0 | goodell/cppmem | deriving_Json.ml | Js_of_ocaml
*
* Copyright 2010 .
*
* 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 your ... | null | https://raw.githubusercontent.com/goodell/cppmem/eb3ce19b607a5d6ec81138cd8cacd236f9388e87/js_of_ocaml-1.2/lib/deriving_json/deriving_Json.ml | ocaml | * Json *
* Deriver *
val to_channel: out_channel -> a -> unit
val from_channel: in_channel -> a
let to_channel oc v = to_channel t oc v
let from_channel ic = from_channel t ic
let to_channel oc v = to_channel t oc v
let from_channel ic = from_channel t ic
let to_channel oc v = to_channel t oc v
let from_... | Js_of_ocaml
*
* Copyright 2010 .
*
* 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 your ... |
5036c848aa6ccb7df3be251e5abbf9ae0fef59ddf45cced908b72845e0606d4c | fpco/schoolofhaskell.com | DBTimed.hs | module Import.DBTimed
( Import.DBTimed.runDB
, runDBT
, PidConnectionPool (..)
) where
import Prelude
import Yesod hiding (lift)
import Language.Haskell.TH.Syntax
import Control.Monad.Logger
import Control.Applicative
import Database.Persist.Postgresql
import System.Posix.Types (CPid)
import Data.Condu... | null | https://raw.githubusercontent.com/fpco/schoolofhaskell.com/15ec1a03cb9d593ee9c0d167dc522afe45ba4f8e/src/Import/DBTimed.hs | haskell | module Import.DBTimed
( Import.DBTimed.runDB
, runDBT
, PidConnectionPool (..)
) where
import Prelude
import Yesod hiding (lift)
import Language.Haskell.TH.Syntax
import Control.Monad.Logger
import Control.Applicative
import Database.Persist.Postgresql
import System.Posix.Types (CPid)
import Data.Condu... | |
9f90ba7d354b36b045ca2a79e02124112d5ced06afc783a027de63f5c95ab2dc | burtonsamograd/med | mark.lisp | (in-package :med)
Marks .
(defclass mark ()
((%line :initarg :line :reader mark-line)
(%charpos :initarg :charpos :reader mark-charpos)
;; :left, :right or :temporary.
(%kind :initarg :kind :reader mark-kind)))
(defgeneric (setf mark-line) (value mark))
(defgeneric (setf mark-charpos) (value mark))
(def... | null | https://raw.githubusercontent.com/burtonsamograd/med/667c45032f60831447ad0eafd4d5c9a9748b4366/mark.lisp | lisp | :left, :right or :temporary.
Remove from existing mark list.
Add to mark list.
Mark stuff.
If the mark is active and the point is at mark, then
deactivate the mark.
If the mark is not active, then activate it.
Always move the mark to point. | (in-package :med)
Marks .
(defclass mark ()
((%line :initarg :line :reader mark-line)
(%charpos :initarg :charpos :reader mark-charpos)
(%kind :initarg :kind :reader mark-kind)))
(defgeneric (setf mark-line) (value mark))
(defgeneric (setf mark-charpos) (value mark))
(defgeneric (setf mark-kind) (value mar... |
e41e38e778a945430f629400b3f46a98d624a7e7305ff20253fc399e5c45698c | exercism/erlang | spiral_matrix.erl | -module(spiral_matrix).
-export([make/1]).
make(_Size) -> undefined.
| null | https://raw.githubusercontent.com/exercism/erlang/57ac2707dae643682950715e74eb271f732e2100/exercises/practice/spiral-matrix/src/spiral_matrix.erl | erlang | -module(spiral_matrix).
-export([make/1]).
make(_Size) -> undefined.
| |
c552dbb53fd3964096699c312df67da86ed1da4b335807c3a362d62992c1123b | ciel-lang/CIEL | repl.lisp | # ! /usr / bin / sbcl --script
(load "~/quicklisp/setup")
(let ((*standard-output* (make-broadcast-stream)))
(ql:quickload "cl-readline"))
(defpackage :sbcli
(:use :common-lisp :trivial-package-local-nicknames)
(:import-from :magic-ed
:magic-ed)
(:export sbcli help what *repl-version* *repl-... | null | https://raw.githubusercontent.com/ciel-lang/CIEL/2ca812a9cc60e9a8fd667e8a30c1e8942dfd564f/repl.lisp | lisp | repl-utilities: nice to have, but don't clutter the CIEL package by exporting them.
For instance, "summary" is too common a word to be exported.
:doc ;; conflicts with our little %doc helper.
XXX: print CIEL version.
see also -info
hack because cl-readline has no function for this.
TODO: it has it now.
(defun r... | # ! /usr / bin / sbcl --script
(load "~/quicklisp/setup")
(let ((*standard-output* (make-broadcast-stream)))
(ql:quickload "cl-readline"))
(defpackage :sbcli
(:use :common-lisp :trivial-package-local-nicknames)
(:import-from :magic-ed
:magic-ed)
(:export sbcli help what *repl-version* *repl-... |
6b51ddf6ab3e15e67b04a0d164f5fd9f035c0e9710eadff420b4bdeccde8bc0e | dakrone/clojure-opennlp | sample.clj | (ns opennlp.sample
(:require [clojure.java.io :as io])
(:import (opennlp.tools.doccat DocumentSample)
(opennlp.tools.util ObjectStream)))
(defn print-sample [sample ^java.io.Writer w]
(.write w "#opennlp/sample {")
(.write w ":category ")
(binding [*out* w]
(pr (.getCategory sample)))
(.writ... | null | https://raw.githubusercontent.com/dakrone/clojure-opennlp/17627c13fe261e62e6c7ff0521fba2b6d92ec091/src/opennlp/sample.clj | clojure | (ns opennlp.sample
(:require [clojure.java.io :as io])
(:import (opennlp.tools.doccat DocumentSample)
(opennlp.tools.util ObjectStream)))
(defn print-sample [sample ^java.io.Writer w]
(.write w "#opennlp/sample {")
(.write w ":category ")
(binding [*out* w]
(pr (.getCategory sample)))
(.writ... | |
3fdd4cfaf5933d1f57e97fe0c8740b569570d6e5c93c3b405a3efa58618dc88b | futurice/haskell-mega-repo | Mailbox.hs | # LANGUAGE DataKinds #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE TemplateHaskell #
{-# LANGUAGE TypeFamilies #-}
module Futurice.App.FUM.Types.Mailbox where
import Futurice.Email
import Futurice.IdMap (HasKey (..))
import Futurice.Prelude
import Prelude ()
import Futurice.App.FUM.Types.Ident... | null | https://raw.githubusercontent.com/futurice/haskell-mega-repo/2647723f12f5435e2edc373f6738386a9668f603/fum-carbon-app/src/Futurice/App/FUM/Types/Mailbox.hs | haskell | # LANGUAGE OverloadedStrings #
# LANGUAGE TypeFamilies #
| Shared mailbox. | # LANGUAGE DataKinds #
# LANGUAGE TemplateHaskell #
module Futurice.App.FUM.Types.Mailbox where
import Futurice.Email
import Futurice.IdMap (HasKey (..))
import Futurice.Prelude
import Prelude ()
import Futurice.App.FUM.Types.Identifier
data Mailbox = Mailbox
{ _mailboxId :: !(Identifi... |
a8a0e33e53d808bb01562195b37466bbc21f49b46a125600ddf7479817ff59bc | danielcompton/clojure-postmark | core.clj | (ns postmark.core
(:require [clj-http.client :as client]
[clojure.string :as string]
[cheshire.core :as json]))
(defn- mail-to-json
"Return the JSON for the given mail map.
Falsey values will be removed from the map before serializing."
[mail]
(->> mail
(filter (comp some? val... | null | https://raw.githubusercontent.com/danielcompton/clojure-postmark/a994defb4795001ce0e1894814a4659795cb8815/src/postmark/core.clj | clojure | Filter out keys with nil values | (ns postmark.core
(:require [clj-http.client :as client]
[clojure.string :as string]
[cheshire.core :as json]))
(defn- mail-to-json
"Return the JSON for the given mail map.
Falsey values will be removed from the map before serializing."
[mail]
(->> mail
(into {})
(json/... |
68dda01210bac58a71777f38ea504ace882235a16fda819a390a6389ff159486 | juhp/fbrnch | SrcDeps.hs | module Cmd.SrcDeps (
srcDepsCmd,
srcDeps
)
where
import Distribution.RPM.Build.Graph
import Branches
import Common
import Common.System
import Git
import Package
srcDepsCmd :: Bool -> (Branch,[String]) -> IO ()
srcDepsCmd rev (rbr,pkgs) =
srcDeps rev (rbr,pkgs) >>=
mapM_ (putStrLn . unwords)
srcDeps :: Bo... | null | https://raw.githubusercontent.com/juhp/fbrnch/894a1a717452e258ccf8e7493fd7f9a9ae563397/src/Cmd/SrcDeps.hs | haskell | module Cmd.SrcDeps (
srcDepsCmd,
srcDeps
)
where
import Distribution.RPM.Build.Graph
import Branches
import Common
import Common.System
import Git
import Package
srcDepsCmd :: Bool -> (Branch,[String]) -> IO ()
srcDepsCmd rev (rbr,pkgs) =
srcDeps rev (rbr,pkgs) >>=
mapM_ (putStrLn . unwords)
srcDeps :: Bo... | |
3694952669e09e2a21aea78b0515754ecda7debc38762d1d3f5c19d4dcd72958 | hercules-ci/hercules-ci-agent | SecretsSpec.hs | {-# LANGUAGE OverloadedStrings #-}
module Hercules.SecretsSpec where
import Hercules.Formats.Secret (Condition (..))
import Hercules.Secrets (SecretContext (..), evalCondition, evalConditionTrace)
import Protolude
import Test.Hspec (Spec, describe, it, shouldBe)
condition :: Condition
condition =
Or
[ And
... | null | https://raw.githubusercontent.com/hercules-ci/hercules-ci-agent/8a476e9328d197d0d41872b1674638827e18bae0/hercules-ci-agent/test/Hercules/SecretsSpec.hs | haskell | # LANGUAGE OverloadedStrings # |
module Hercules.SecretsSpec where
import Hercules.Formats.Secret (Condition (..))
import Hercules.Secrets (SecretContext (..), evalCondition, evalConditionTrace)
import Protolude
import Test.Hspec (Spec, describe, it, shouldBe)
condition :: Condition
condition =
Or
[ And
[ IsOwner "unicorn",
... |
e974082398eeb373a9867c692ec1553d95df09dd9b57667c592163f567e13c04 | KavehYousefi/Esoteric-programming-languages | main.lisp | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; This file implements an interpreter for the esoteric programming
language " Something?Oops ! " , a creation by the Esolang user " A " , and
;; endowed with a syntax as potent a diorism as the mode of its
;; construe.
;;
;; Concept
;; ===... | null | https://raw.githubusercontent.com/KavehYousefi/Esoteric-programming-languages/68b65351f63917a226d548eaa96fc7651392103d/Something%5BquestionMark%5DOops!/Something%5BquestionMark%5DOops!_001/main.lisp | lisp |
This file implements an interpreter for the esoteric programming
endowed with a syntax as potent a diorism as the mode of its
construe.
Concept
=======
Something?Oops! constitutes an esoteric programming language imbued
with variables as the sole data conditory, and exercising effect by
the interplay of th... | language " Something?Oops ! " , a creation by the Esolang user " A " , and
its reading and a second to its modification , the employment and
the language 's diorism , Something?Oops ! ought to be meted against its
substituted either by a nonnegative integer or one of the four
verbatim reproduction in the stan... |
18f4c4897f114fe1fb8e4c1f3a06219ee8fca631c1184fef8f03e9a98f5d5e4b | 15Galan/asignatura-204 | Random.hs | -------------------------------------------------------------------------------
Data Structures . en Informática . UMA .
@
--
-- Library for random number generation.
Uses the algorithm in standard Java random library .
--
-------------------------------------------------------------------------------
module ... | null | https://raw.githubusercontent.com/15Galan/asignatura-204/894f33ff8e0f52a75d8f9ff15155c656f1a8f771/Recursos/data.structures/haskell/DataStructures/Util/Random.hs | haskell | -----------------------------------------------------------------------------
Library for random number generation.
-----------------------------------------------------------------------------
Devuelve una lista infinita de randoms en [ l , h ] , s es la Seed
Devuelve una lista de n booleanos . es la Se... | Data Structures . en Informática . UMA .
@
Uses the algorithm in standard Java random library .
module DataStructures.Util.Random
( Seed
, Random(randoms,randomsR)
, randomsIn
) where
import Data.Array
import Data.Bits
import Data.Char
import Data.Int
import Data.Word
type Seed = Int
randomsIn :: [... |
dbaa4c8407406ceabae606e3768b1a314dea1eb07380345f0bfd6d19874c4812 | yetibot/yetibot | pirate.clj | (ns yetibot.test.commands.pirate
(:require
[midje.sweet :refer [facts fact =>]]
[yetibot.core.midje :refer [value data]]
[clojure.string :as str]
[yetibot.commands.pirate :refer :all]))
(facts "about lower-level wrapper fns"
(fact "wrap-punctuation preserves punctuation even when wrapped fn alters... | null | https://raw.githubusercontent.com/yetibot/yetibot/2fb5c1182b1a53ab0e433d6bab2775ebd43367de/test/yetibot/test/commands/pirate.clj | clojure | (ns yetibot.test.commands.pirate
(:require
[midje.sweet :refer [facts fact =>]]
[yetibot.core.midje :refer [value data]]
[clojure.string :as str]
[yetibot.commands.pirate :refer :all]))
(facts "about lower-level wrapper fns"
(fact "wrap-punctuation preserves punctuation even when wrapped fn alters... | |
918949677e62bd3d6ffb00cfc3e4b54641877933542075ecea814fc38b79d111 | karamellpelle/grid | Plain.hs | grid is a game written in Haskell
Copyright ( C ) 2018
--
-- This file is part of grid.
--
-- grid is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
-- (at your optio... | null | https://raw.githubusercontent.com/karamellpelle/grid/56729e63ed6404fd6cfd6d11e73fa358f03c386f/source/Game/LevelPuzzle/LevelPuzzleData/Plain.hs | haskell |
This file is part of grid.
grid is free software: you can redistribute it and/or modify
(at your option) any later version.
grid is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GN... | grid is a game written in Haskell
Copyright ( C ) 2018
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
You should have received a copy of the GNU General Public License
module Game.LevelPuzzle.LevelPuzzleData.Plain
(
... |
21fd04ecc6e26178b9cc4ba55dc27d44cfd7c6f074fc3b9dea47ac94341d7827 | elaforge/karya | Speed.hs | Copyright 2013
-- This program is distributed under the terms of the GNU General Public
-- License 3.0, see COPYING or -3.0.txt
-- | Utilities dealing with speeds.
module Derive.Call.Speed where
import qualified Derive.Call as Call
import qualified Derive.Call.ControlUtil as ControlUtil
import qualified Derive.Der... | null | https://raw.githubusercontent.com/elaforge/karya/471a2131f5a68b3b10b1a138e6f9ed1282980a18/Derive/Call/Speed.hs | haskell | This program is distributed under the terms of the GNU General Public
License 3.0, see COPYING or -3.0.txt
| Utilities dealing with speeds.
| Get start times until the end of the range, at the given speed.
^ If True, include a sample at the end time.
| Get start times for a changing speed. The difference with 's... | Copyright 2013
module Derive.Call.Speed where
import qualified Derive.Call as Call
import qualified Derive.Call.ControlUtil as ControlUtil
import qualified Derive.Derive as Derive
import qualified Derive.DeriveT as DeriveT
import qualified Derive.Deriver.Internal as Internal
import qualified Derive.ScoreT as Score... |
2bd0cc2ab4e5b54bb431feb412d8188002543fe8496027251b678f08e95a4daa | dgiot/dgiot | emqx_plugin_libs_ssl.erl | %%--------------------------------------------------------------------
Copyright ( c ) 2021 EMQ Technologies Co. , Ltd. All Rights Reserved .
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the L... | null | https://raw.githubusercontent.com/dgiot/dgiot/a6b816a094b1c9bd024ce40b8142375a0f0289d8/apps/emqx_plugin_libs/src/emqx_plugin_libs_ssl.erl | erlang | --------------------------------------------------------------------
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ... | Copyright ( c ) 2021 EMQ Technologies Co. , Ltd. All Rights Reserved .
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(emqx_plugin_libs_ssl).
-export([save_files_return_opts/2,
save_files_return_opts/3,
... |
9c56a86ed3ee91706798fb6413f22d9037923177ba82d39b8144b314385ab7b4 | rorra/rorracasts_erlang | usuarios.erl | -module(usuarios).
-include("registros.hrl").
-compile(export_all).
nuevo(Nombre, Email) ->
Usuario = #usuario{id=db:new_id(), nombre=Nombre, email=Email},
case buscar_por_email(Email) of
#usuario{} ->
{error, "ya existe un usuario con el Email"};
_ ->
{guardar(Usuario)}
end.
guardar(Usuario... | null | https://raw.githubusercontent.com/rorra/rorracasts_erlang/c50d20abe3f1a65001576734caedae90f36e3ecd/023-mnesia-2/usuarios.erl | erlang | -module(usuarios).
-include("registros.hrl").
-compile(export_all).
nuevo(Nombre, Email) ->
Usuario = #usuario{id=db:new_id(), nombre=Nombre, email=Email},
case buscar_por_email(Email) of
#usuario{} ->
{error, "ya existe un usuario con el Email"};
_ ->
{guardar(Usuario)}
end.
guardar(Usuario... | |
04aaeab96afa7c9c4cedd24bfcdabc0655d25c297e1bd88a80745a4ee55c05a8 | notogawa/yesod-websocket-sample | WSChat.hs | # LANGUAGE TupleSections , OverloadedStrings #
module Handler.WSChat where
import Import
getWSChatR :: Handler RepHtml
getWSChatR = do
defaultLayout $ do
setTitle "WebSocket Chat"
addScriptRemote "-1.6.3.min.js"
$(widgetFile "wschat")
| null | https://raw.githubusercontent.com/notogawa/yesod-websocket-sample/aa3eb38339830753a26ec68e130053ea01a80ff2/Handler/WSChat.hs | haskell | # LANGUAGE TupleSections , OverloadedStrings #
module Handler.WSChat where
import Import
getWSChatR :: Handler RepHtml
getWSChatR = do
defaultLayout $ do
setTitle "WebSocket Chat"
addScriptRemote "-1.6.3.min.js"
$(widgetFile "wschat")
| |
248ea6db36a76e24c1d34b8e7079cde21d727f54a5c28f464e40a731374ace2c | lisp/de.setf.xml | namespace.lisp | -*- Mode : lisp ; Syntax : ansi - common - lisp ; Base : 10 ; Package : xml - query - data - model ; -*-
(in-package :xml-query-data-model)
(setq xml-query-data-model:*namespace*
(xml-query-data-model:defnamespace "urn/"
(:use)
(... | null | https://raw.githubusercontent.com/lisp/de.setf.xml/827681c969342096c3b95735d84b447befa69fa6/namespaces/urn-/govshare-info/rdf/politico/namespace.lisp | lisp | Syntax : ansi - common - lisp ; Base : 10 ; Package : xml - query - data - model ; -*-
(xqdm:find-namespace "urn/" :if-does-not-exist :load) |
(in-package :xml-query-data-model)
(setq xml-query-data-model:*namespace*
(xml-query-data-model:defnamespace "urn/"
(:use)
(:nicknames)
(:export
"Co... |
ef9dcb4fbbdd13918e4695cd4b47cf97f467d04d52da3e47b526754bbe9c32f8 | valpackett/sweetroll | Auth.hs | # OPTIONS_GHC -fno - warn - orphans #
# LANGUAGE NoImplicitPrelude , OverloadedStrings , UnicodeSyntax , TypeOperators , TypeFamilies , FlexibleInstances , FlexibleContexts , MultiParamTypeClasses , ScopedTypeVariables , DataKinds , QuasiQuotes , TemplateHaskell , DeriveGeneric , LambdaCase #
| The IndieAuth / rel -... | null | https://raw.githubusercontent.com/valpackett/sweetroll/f91501da72fd5bb40743b21b66a9da791f5991a2/sweetroll-be/library/Sweetroll/Auth.hs | haskell | !!! Only allow tokens issued by the current Host !!!
| Token endpoint
let isTestMode = False
| Internal "client" (redirect_uri target)
let isTestMode = False
-extra-3.0.16.1/docs/src/Network.Wai.Middleware.rquestLogger.html | # OPTIONS_GHC -fno - warn - orphans #
# LANGUAGE NoImplicitPrelude , OverloadedStrings , UnicodeSyntax , TypeOperators , TypeFamilies , FlexibleInstances , FlexibleContexts , MultiParamTypeClasses , ScopedTypeVariables , DataKinds , QuasiQuotes , TemplateHaskell , DeriveGeneric , LambdaCase #
| The IndieAuth / rel -... |
2381bbffc771850114612b79e89ab80b44ccdb3f62b47ede9903a137182e1bd3 | pleasetrythisathome/bardo | om.cljs | (ns bardo.examples.om
(:require-macros [cljs.core.async.macros :refer [go]])
(:require [bardo.ease :refer [wrap ease shift clamp]]
[bardo.interpolate :refer [interpolate into-lazy-seq mix blend chain pipeline]]
[bardo.transition :refer [transition]]
[om.core :as om :include-macro... | null | https://raw.githubusercontent.com/pleasetrythisathome/bardo/d400efa828d3ccfae5d4f058200bff1fbfd8f66b/examples/om.cljs | clojure | (ns bardo.examples.om
(:require-macros [cljs.core.async.macros :refer [go]])
(:require [bardo.ease :refer [wrap ease shift clamp]]
[bardo.interpolate :refer [interpolate into-lazy-seq mix blend chain pipeline]]
[bardo.transition :refer [transition]]
[om.core :as om :include-macro... | |
781b6b6c19bd41242a78ba5b16c390fc7a6f69f045436ba7c400eb70c5522fe7 | startalkIM/ejabberd | mod_http_upload.erl | %%%----------------------------------------------------------------------
%%% File : mod_http_upload.erl
Author : < >
%%% Purpose : HTTP File Upload (XEP-0363)
Created : 20 Aug 2015 by < >
%%%
%%%
ejabberd , Copyright ( C ) 2015 - 2016 ProcessOne
%%%
%%% This program is free software; you can redist... | null | https://raw.githubusercontent.com/startalkIM/ejabberd/718d86cd2f5681099fad14dab5f2541ddc612c8b/src/mod_http_upload.erl | erlang | ----------------------------------------------------------------------
File : mod_http_upload.erl
Purpose : HTTP File Upload (XEP-0363)
This program is free software; you can redistribute it and/or
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful... | Author : < >
Created : 20 Aug 2015 by < >
ejabberd , Copyright ( C ) 2015 - 2016 ProcessOne
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation ; either version 2 of the
You should have received a copy of the GNU General Public License along
... |
595c3babafd6356eddad9226a66935bef6b7e44be1bfe96d09ac8d2eaf6783e7 | gedge-platform/gedge-platform | aten_sup.erl | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
%%
Copyright ( c ) 2018 - 2020 VMware , Inc. or its affiliates . All rights reserved .
%%
-module(aten_sup).
-behaviour(supervisor).
-expor... | null | https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/aten/src/aten_sup.erl | erlang | 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 ) 2018 - 2020 VMware , Inc. or its affiliates . All rights reserved .
-module(aten_sup).
-behaviour(supervisor).
-export([sta... | |
c0eb3c1fd42c9221932ebeccc6d447c1afdcd4c6bcd8b9cfec369094ff4c49ac | ambuc/solitaire | Main.hs | # LANGUAGE TemplateHaskell #
module Main where
import Control.Monad (void)
import Graphics.Vty as Vty
import Lens.Micro.TH (makeLenses)
import qualified System.Random as R (next, newStdGen)
import Brick.AttrMap
import Brick.Main
import Brick.Types
import Brick.Util
import CardTypes
... | null | https://raw.githubusercontent.com/ambuc/solitaire/86076bcacbeb8a2fb272382c84ea3c05203ecacd/app/Main.hs | haskell | -----------------------------------------------------------------------------
App <application state> <event> <resource name>
s -> [Widget n]
s -> [CursorLocation n]
-> Maybe (CursorLocation n)
s -> BrickEvent n e
-> EventM n (Next s)
s -> EventM n s | # LANGUAGE TemplateHaskell #
module Main where
import Control.Monad (void)
import Graphics.Vty as Vty
import Lens.Micro.TH (makeLenses)
import qualified System.Random as R (next, newStdGen)
import Brick.AttrMap
import Brick.Main
import Brick.Types
import Brick.Util
import CardTypes
... |
410935e76970f99c9b2e55d272c50d15c1dba4ca75d8ff433bd453148e81143b | aantron/bisect_ppx | test_tree.ml | let () =
Foo.a () ; Foo.b () ; Bar_a.a () ; Bar_a.b () ; Bar_b.a () ; Baz.b ()
| null | https://raw.githubusercontent.com/aantron/bisect_ppx/71bc38d5ac3bd4eabf7c8562ef70d54355a3397d/test/report/html-tree/test_tree.ml | ocaml | let () =
Foo.a () ; Foo.b () ; Bar_a.a () ; Bar_a.b () ; Bar_b.a () ; Baz.b ()
| |
cb0e70bc21a43e354b4a13eb6d90775f2783b30100295d6c32f0e22ce92dd76c | flyspeck/flyspeck | printer.ml | (* ========================================================================= *)
(* Simplistic HOL Light prettyprinter, using the OCaml "Format" library. *)
(* *)
, University of Cambridge Computer Laboratory
(* ... | null | https://raw.githubusercontent.com/flyspeck/flyspeck/05bd66666b4b641f49e5131a37830f4881f39db9/azure/hol-light-nat/printer.ml | ocaml | =========================================================================
Simplistic HOL Light prettyprinter, using the OCaml "Format" library.
===============... | , University of Cambridge Computer Laboratory
( c ) Copyright , University of Cambridge 1998
( c ) Copyright , 1998 - 2007
open Fusion
open Basics
open Nets
let isspace,issep,isbra,issymb,isalpha,isnum,isalnum =
let charco... |
5911f0c414a603628f3e54ccfaf8db4670df6fdc2f727f81b39bbd2bd93e2d08 | Ptival/chick | Test.hs | module StandardLibraryDiff.Test where
import qualified Diff.Inductive as DI
import Inductive.Inductive
import Language
import Polysemy
import Polysemy.Error
import Polysemy.Trace
import PrettyPrinting.PrettyPrintable
import StandardLibrary
import StandardLibraryDiff
import Term.Term
test ::
PrettyPrintable 'Chick α... | null | https://raw.githubusercontent.com/Ptival/chick/a5ce39a842ff72348f1c9cea303997d5300163e2/backend/test/StandardLibraryDiff/Test.hs | haskell | module StandardLibraryDiff.Test where
import qualified Diff.Inductive as DI
import Inductive.Inductive
import Language
import Polysemy
import Polysemy.Error
import Polysemy.Trace
import PrettyPrinting.PrettyPrintable
import StandardLibrary
import StandardLibraryDiff
import Term.Term
test ::
PrettyPrintable 'Chick α... | |
3daf2b60f56168effaa7fb73778b2f0d789397f926ed57c4db0fd4692e93e17e | nextjournal/clerk | sci_env.cljs | (ns nextjournal.clerk.sci-env
(:require-macros [nextjournal.clerk.render.macros :refer [sci-copy-nss]])
(:require ["@codemirror/language" :as codemirror-language]
["@codemirror/state" :as codemirror-state]
["@codemirror/view" :as codemirror-view]
["@lezer/highlight" :as lezer-hig... | null | https://raw.githubusercontent.com/nextjournal/clerk/b01ea92da985c7be46d00992859e7243cc3268e7/src/nextjournal/clerk/sci_env.cljs | clojure | hardcoded implementation of implements? for js-interop destructure which
uses implements? | (ns nextjournal.clerk.sci-env
(:require-macros [nextjournal.clerk.render.macros :refer [sci-copy-nss]])
(:require ["@codemirror/language" :as codemirror-language]
["@codemirror/state" :as codemirror-state]
["@codemirror/view" :as codemirror-view]
["@lezer/highlight" :as lezer-hig... |
60e4c4cf9259b363c331e21287990d25d63f457fc075ba5a49705c9df474b9c0 | sunng87/slacker | performance-test.clj | (use 'slacker.client)
(import '[java.util.concurrent Executors CountDownLatch])
(def total-calls (Integer/valueOf (second *command-line-args*)))
(def total-threads (Integer/valueOf (nth *command-line-args* 2)))
(def report-func
(if (> (count *command-line-args*) 3)
(keyword (nth *command-line-args* 3)) :time))
... | null | https://raw.githubusercontent.com/sunng87/slacker/60e5372782bed6fc58cb8ba55951516a6b971513/scripts/performance-test.clj | clojure | (use 'slacker.client)
(import '[java.util.concurrent Executors CountDownLatch])
(def total-calls (Integer/valueOf (second *command-line-args*)))
(def total-threads (Integer/valueOf (nth *command-line-args* 2)))
(def report-func
(if (> (count *command-line-args*) 3)
(keyword (nth *command-line-args* 3)) :time))
... | |
ead122267599fc46d4e782b5389a0e5a311bad351164b2b8c2966be13d462a9c | heraldry/heraldicon | render_options.cljs | (ns spec.heraldry.render-options
(:require
[cljs.spec.alpha :as s]
[heraldicon.heraldry.escutcheon :as escutcheon]
[heraldicon.render.mode :as mode]
[heraldicon.render.scope :as scope]
[heraldicon.render.texture :as texture]
[heraldicon.render.theme :as theme]
[spec.heraldicon.spec-util :as su]))... | null | https://raw.githubusercontent.com/heraldry/heraldicon/251a89a8ded67e07ade4f0683fa10b1d10ff0f47/src/spec/heraldry/render_options.cljs | clojure | (ns spec.heraldry.render-options
(:require
[cljs.spec.alpha :as s]
[heraldicon.heraldry.escutcheon :as escutcheon]
[heraldicon.render.mode :as mode]
[heraldicon.render.scope :as scope]
[heraldicon.render.texture :as texture]
[heraldicon.render.theme :as theme]
[spec.heraldicon.spec-util :as su]))... | |
1cf3f4951f8fc9e64343392da2d5ae351f08a464a2e34b739c54db1bb0267597 | zcaudate/hara | core.clj | (ns hara.core
(:require [hara.module :as module]))
(module/include
(hara.core.base.protocol protocol-interface
protocol-methods
protocol-signatures
protocol-impls
... | null | https://raw.githubusercontent.com/zcaudate/hara/481316c1f5c2aeba5be6e01ae673dffc46a63ec9/src/hara/core.clj | clojure | (ns hara.core
(:require [hara.module :as module]))
(module/include
(hara.core.base.protocol protocol-interface
protocol-methods
protocol-signatures
protocol-impls
... | |
e1691896137c2a7bc1fc0b0acd51853e8a4e6b4d4e421861a23af09a383bf43d | serokell/o-clock | Main.hs | SPDX - FileCopyrightText : 2020 >
--
SPDX - License - Identifier : MPL-2.0
# OPTIONS_GHC -fno - warn - orphans #
# LANGUAGE CPP #
{-# LANGUAGE DataKinds #-}
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE KindSignatures #
# LANGUAGE StandaloneDeriving ... | null | https://raw.githubusercontent.com/serokell/o-clock/4d4b3362e1d60be34174137512ab40532d81cfb1/benchmark/Main.hs | haskell |
# LANGUAGE DataKinds # | SPDX - FileCopyrightText : 2020 >
SPDX - License - Identifier : MPL-2.0
# OPTIONS_GHC -fno - warn - orphans #
# LANGUAGE CPP #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE KindSignatures #
# LANGUAGE StandaloneDeriving #
# LANGUAGE TypeApplications ... |
6eff76498309186410ae372b8ac4560592c99ef73bb3459a5792acbe401cd5ba | ygmpkk/house | Mondrian.hs |
Abstract Syntax for Core Mondrian
( c ) 1999 and
Abstract Syntax for Core Mondrian
(c) 1999 Erik Meijer and Arjan van Yzendoorn
-}
module Mondrian where
data CompilationUnit
= Package Name [Decl]
deriving Show
data Decl
= ClassDecl Name [Name] [Decl]
| ImportDecl Name
| VarDecl Name Expr
| ... | null | https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/libraries/parsec/examples/Mondrian/Mondrian.hs | haskell |
Abstract Syntax for Core Mondrian
( c ) 1999 and
Abstract Syntax for Core Mondrian
(c) 1999 Erik Meijer and Arjan van Yzendoorn
-}
module Mondrian where
data CompilationUnit
= Package Name [Decl]
deriving Show
data Decl
= ClassDecl Name [Name] [Decl]
| ImportDecl Name
| VarDecl Name Expr
| ... | |
64443203800dd883b998fc8c767537b1a8c692df38230f6a9341dded7c3114f3 | weavejester/substream | core_test.clj | (ns substream.core-test
(:use clojure.test
substream.core))
(deftest input-stream-test
(let [bytes (.getBytes "Hello")
state (ref (seq bytes))
stream (input-stream #(dosync
(when (seq @state)
(let [value (first @state)]
... | null | https://raw.githubusercontent.com/weavejester/substream/4dcc203ea68d2f163a3ab9e34f38928b8bff699b/test/clojure/substream/core_test.clj | clojure | (ns substream.core-test
(:use clojure.test
substream.core))
(deftest input-stream-test
(let [bytes (.getBytes "Hello")
state (ref (seq bytes))
stream (input-stream #(dosync
(when (seq @state)
(let [value (first @state)]
... | |
b6f9b2b29a8c8c86a3bb429851c77cc1a44a513faeb88304029c528a23ffaa03 | UBTECH-Walker/WalkerSimulationFor2020WAIC | AnalogOutputCommand.lisp | ; Auto-generated. Do not edit!
(cl:in-package baxter_core_msgs-msg)
;//! \htmlinclude AnalogOutputCommand.msg.html
(cl:defclass <AnalogOutputCommand> (roslisp-msg-protocol:ros-message)
((name
:reader name
:initarg :name
:type cl:string
:initform "")
(value
:reader value
:initarg :value... | null | https://raw.githubusercontent.com/UBTECH-Walker/WalkerSimulationFor2020WAIC/7cdb21dabb8423994ba3f6021bc7934290d5faa9/walker_WAIC_16.04_v1.2_20200616/walker_install/share/common-lisp/ros/baxter_core_msgs/msg/AnalogOutputCommand.lisp | lisp | Auto-generated. Do not edit!
//! \htmlinclude AnalogOutputCommand.msg.html |
(cl:in-package baxter_core_msgs-msg)
(cl:defclass <AnalogOutputCommand> (roslisp-msg-protocol:ros-message)
((name
:reader name
:initarg :name
:type cl:string
:initform "")
(value
:reader value
:initarg :value
:type cl:fixnum
:initform 0))
)
(cl:defclass AnalogOutputCommand (<A... |
b98d3ea0fef4a88bda742e20231617a42ffec05ef76532e962fb9ca165c08dcf | fogus/reinen-vernunft | astar.clj | (ns fogus.reinen-vernunft.search.astar
"A* search implementation.")
(def world [[ 1 1 1 1 1]
[999 999 999 999 1]
[ 1 1 1 1 1]
[ 1 999 999 999 999]
[ 1 1 1 1 1]])
(defn neighbors
([size yx]
(neighbors [[-1 0] [1 0] [0 -1] [0 1]] size... | null | https://raw.githubusercontent.com/fogus/reinen-vernunft/09d57cdda14dd2227e2a31f59290fc50a6db688f/src/fogus/reinen_vernunft/search/astar.clj | clojure | #: Check done
#: Get next work item
#: Clear from todo
#: Get neighbors
#: Calc least-cost
#: Calc path so-far
#: Check if new is worse
#: Place new path in the routes
#: Add the estimated path to the todo and recur | (ns fogus.reinen-vernunft.search.astar
"A* search implementation.")
(def world [[ 1 1 1 1 1]
[999 999 999 999 1]
[ 1 1 1 1 1]
[ 1 999 999 999 999]
[ 1 1 1 1 1]])
(defn neighbors
([size yx]
(neighbors [[-1 0] [1 0] [0 -1] [0 1]] size... |
5e01a46dcbf12eb6de4c3f3824fa84eb12936ffced4eb302bf459ac515aa4fc1 | digikar99/numericals | two-arg-fn-comparison.lisp | (numericals.common:compiler-in-package numericals.common:*compiler-package*)
(5am:in-suite nu::array)
(define-polymorphic-function two-arg-fn/comparison (name x y &key out broadcast) :overwrite t)
Comparison operators return a ( UNSIGNED - BYTE 8) element array as output if input is array - like .
;; Pure number
(... | null | https://raw.githubusercontent.com/digikar99/numericals/34601bc63f02774c012ed4949f87baf7e63661ff/dense-numericals-src/two-arg-fn-comparison.lisp | lisp | Pure number
TODO: Are there better ways to do this in lesser number of polymorphs?
The very fact that we are allowing Y to be NUMBER implies
The very fact that we are allowing X to be NUMBER implies
Actual definitions | (numericals.common:compiler-in-package numericals.common:*compiler-package*)
(5am:in-suite nu::array)
(define-polymorphic-function two-arg-fn/comparison (name x y &key out broadcast) :overwrite t)
Comparison operators return a ( UNSIGNED - BYTE 8) element array as output if input is array - like .
(defpolymorph tw... |
78651228b8a85d0461179036635470edea50d4fdd373fa9532780dfb39d505cc | tirkarthi/lacinia-tutorial | core_test.clj | (ns lacinia-tut.core-test
(:require [clojure.test :refer :all]
[com.walmartlabs.lacinia :refer [execute]]
[lacinia-tut.core :refer :all]))
(deftest track-by-id-test
(testing "Query for a track by id "
(is (= {:data {:track '({:trackname "Shadow of the day"})}}
(execute artist... | null | https://raw.githubusercontent.com/tirkarthi/lacinia-tutorial/496033f08d2f3db0291986ac3dd08e9a599f5b31/test/lacinia_tut/core_test.clj | clojure | (ns lacinia-tut.core-test
(:require [clojure.test :refer :all]
[com.walmartlabs.lacinia :refer [execute]]
[lacinia-tut.core :refer :all]))
(deftest track-by-id-test
(testing "Query for a track by id "
(is (= {:data {:track '({:trackname "Shadow of the day"})}}
(execute artist... | |
d8953128358896b62a2d656de7fdd43fe985b7f45e1bbb8c97c6f60db1dcf564 | technomancy/leiningen | javac.clj | (ns leiningen.javac
"Compile Java source files."
(:require [leiningen.classpath :as classpath]
[leiningen.core.eval :as eval]
[leiningen.core.main :as main]
[leiningen.core.utils :as utils]
[leiningen.core.project :as project]
[clojure.java.io :as io]
... | null | https://raw.githubusercontent.com/technomancy/leiningen/24fb93936133bd7fc30c393c127e9e69bb5f2392/src/leiningen/javac.clj | clojure | debug "off" => -g:none
debugLevel "source,lines" => -g:source-lines
Tool's .run method expects the last argument to be an array of
strings, so that's what we'll return here.
to add it if it's not already there.
We can't really control what is printed here. We're just going to
allow `.run` to attach... | (ns leiningen.javac
"Compile Java source files."
(:require [leiningen.classpath :as classpath]
[leiningen.core.eval :as eval]
[leiningen.core.main :as main]
[leiningen.core.utils :as utils]
[leiningen.core.project :as project]
[clojure.java.io :as io]
... |
c3583a8535ecec4d361fe62846d2976019dfafdf9074f3c6d7d58c4c18484034 | yutopp/rill | supplier.ml |
* Copyright yutopp 2019 - .
*
* Distributed under the Boost Software License , Version 1.0 .
* ( See accompanying file LICENSE_1_0.txt or copy at
* )
* Copyright yutopp 2019 - .
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* )... | null | https://raw.githubusercontent.com/yutopp/rill/375b67c03ab2087d0a2a833bd9e80f3e51e2694f/rillc/lib/syntax/supplier.ml | ocaml | TODO: fix |
* Copyright yutopp 2019 - .
*
* Distributed under the Boost Software License , Version 1.0 .
* ( See accompanying file LICENSE_1_0.txt or copy at
* )
* Copyright yutopp 2019 - .
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* )... |
fcc04d8a31ee32a1ad4c28a30ddf2130ad48b8f337734ae7cb415fc737292866 | yitzchak/common-lisp-jupyter | gen-docs.lisp | (ql:quickload '(:tanstaafl :common-lisp-jupyter))
(let ((tanstaafl:*documentation-in-markdown* t)
(tanstaafl::*packages* '(:jupyter :jupyter/common-lisp :jupyter/convert :jupyter/widgets)))
(dolist (pkg tanstaafl::*packages*)
(tanstaafl:generate pkg "docs/")))
| null | https://raw.githubusercontent.com/yitzchak/common-lisp-jupyter/06f0e4562618c21db1a1199012011b7a154b49fa/scripts/gen-docs.lisp | lisp | (ql:quickload '(:tanstaafl :common-lisp-jupyter))
(let ((tanstaafl:*documentation-in-markdown* t)
(tanstaafl::*packages* '(:jupyter :jupyter/common-lisp :jupyter/convert :jupyter/widgets)))
(dolist (pkg tanstaafl::*packages*)
(tanstaafl:generate pkg "docs/")))
| |
c01a941ae1ea281a89e4585a61e0e8128f0a93c5bc431fdcba273ab97652e8c6 | d-cent/mooncake | create_account.clj | (ns mooncake.view.create-account
(:require [net.cgrand.enlive-html :as html]
[mooncake.routes :as r]
[mooncake.view.view-helpers :as vh]
[mooncake.translation :as translation]))
(defn username-validation-message-translation [error-key]
(case error-key
:blank "conten... | null | https://raw.githubusercontent.com/d-cent/mooncake/eb16b7239e7580a73b98f7cdacb324ab4e301f9c/src/mooncake/view/create_account.clj | clojure | (ns mooncake.view.create-account
(:require [net.cgrand.enlive-html :as html]
[mooncake.routes :as r]
[mooncake.view.view-helpers :as vh]
[mooncake.translation :as translation]))
(defn username-validation-message-translation [error-key]
(case error-key
:blank "conten... | |
f9ac2ebefbb5ed025be4fc7c22fab63562bdba0eb9e2366d7e35f9063067e672 | ntrocado/cl-collider-examples | 9-2.lisp | SuperCollider 's pattern system is emulated , for a good part , in the cl - patterns library .
(ql:quickload :cl-patterns/supercollider)
First we need to define a default synth ( mirroring the one in SC )
(in-package :sc-user)
(defsynth default ((out 0) (freq 440) (amp 0.1) (pan 0) (gate 1))
(let (... | null | https://raw.githubusercontent.com/ntrocado/cl-collider-examples/67eec426ea45f5423eefd9391d9a7e8ba41f8b51/nick-collins-tutorial/9-2.lisp | lisp | Start the clock
Now back to the tutorial...
Stop everything with:
Get results like this:
eval several times
Nesting
Let's bring some of the hidden variables into view
Cobinding of properties: AFAIK there isn't a direct way to translate this example, even though there are ways of achieving the same result... | SuperCollider 's pattern system is emulated , for a good part , in the cl - patterns library .
(ql:quickload :cl-patterns/supercollider)
First we need to define a default synth ( mirroring the one in SC )
(in-package :sc-user)
(defsynth default ((out 0) (freq 440) (amp 0.1) (pan 0) (gate 1))
(let (... |
4712bfb5de581ef65a15095f0be26367e830f5b128086fe649423ddad4b30551 | clj-kondo/clj-kondo | overrides.clj | (ns clj-kondo.impl.overrides
{:no-doc true})
(defn override-clojure-core [idacs]
(if (get-in idacs '[:clj :defs clojure.core])
(-> idacs
(assoc-in '[:clj :defs clojure.core def] '{:ns clojure.core
:name def
... | null | https://raw.githubusercontent.com/clj-kondo/clj-kondo/d0c2b78c43e5725c82211bc26bb7954dfc6e75f3/src/clj_kondo/impl/overrides.clj | clojure | (ns clj-kondo.impl.overrides
{:no-doc true})
(defn override-clojure-core [idacs]
(if (get-in idacs '[:clj :defs clojure.core])
(-> idacs
(assoc-in '[:clj :defs clojure.core def] '{:ns clojure.core
:name def
... | |
a7d7b1e0d1203a27d08752f4aad1c3ccb0597c3fa80979e68ef30d9f0522ba59 | filipanselmo11/Lisp | somaquadrado.lisp | (defun quadrado (x)
(* x x))
(defun soma-quadrados (a b)
(if (> a b) 0
(+ (quadrado a) (soma-quadrados (1+ a) b))
)
)
(setf a(read))
(setf b (read))
(print (soma-quadrados a b))
| null | https://raw.githubusercontent.com/filipanselmo11/Lisp/0395bbfa40280ad0d9a9eab3378d813ec89e195a/somaquadrado.lisp | lisp | (defun quadrado (x)
(* x x))
(defun soma-quadrados (a b)
(if (> a b) 0
(+ (quadrado a) (soma-quadrados (1+ a) b))
)
)
(setf a(read))
(setf b (read))
(print (soma-quadrados a b))
| |
0a14766308ce1f10c1d34de6b9dcf657f3b892ebb6ea40d5087b6c2dece549aa | mzp/coq-ide-for-ios | ocamlprog.ml | let answer _ =
print_endline "callback test";
42
let _ =
Callback.register "answer" answer;
print_endline "(!!)"
| null | https://raw.githubusercontent.com/mzp/coq-ide-for-ios/4cdb389bbecd7cdd114666a8450ecf5b5f0391d3/CoqIDE/ocamlprog.ml | ocaml | let answer _ =
print_endline "callback test";
42
let _ =
Callback.register "answer" answer;
print_endline "(!!)"
| |
e6961cab3b72405ec768cc0065932037540d7b3254a469b47077dba151d38abc | basho/merge_index | mi_buffer_converter.erl | %% -------------------------------------------------------------------
%%
%% mi_buffer_converter: supervises transformation of a buffer
%% into a segment file.
%%
Copyright ( c ) 2007 - 2011 Basho Technologies , Inc. All Rights Reserved .
%%
This file is provided to you under the Apache Lice... | null | https://raw.githubusercontent.com/basho/merge_index/b701dde5c28956c3b629411e5ff7e50cbb5cb4b3/src/mi_buffer_converter.erl | erlang | -------------------------------------------------------------------
mi_buffer_converter: supervises transformation of a buffer
into a segment file.
Version 2.0 (the "License"); you may not use this file
a copy of the License at
-2.0
Unless required by applicable law or agreed to in w... | Copyright ( c ) 2007 - 2011 Basho Technologies , Inc. All Rights Reserved .
This file is provided to you under the Apache License ,
except in compliance with the License . You may obtain
software distributed under the License is distributed on an
" AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY
-... |
af5ded9523d5e804c66608350649db3f02640acb251e2ecb435ea4893a6947a4 | thheller/shadow-cljs | data_readers.cljc | {foo demo.browser/read-foo} | null | https://raw.githubusercontent.com/thheller/shadow-cljs/ba0a02aec050c6bc8db1932916009400f99d3cce/src/dev/data_readers.cljc | clojure | {foo demo.browser/read-foo} | |
14406000cd3b23c59426e33d633a8c674e1c56879e4a97729d645675e58a5668 | dhbw-wing-informatik-1/uebungen | aufgabe_1_11.rkt | Die ersten drei Zeilen dieser Datei wurden eingefügt . Sie enthalten Metadaten
über die in einer Form , die .
#reader(lib "vanilla-reader.rkt" "deinprogramm" "sdp")((modname aufgabe_1_11) (read-case-sensitive #f) (teachpacks ()) (deinprogramm-settings #(#f write repeating-decimal #f #t none explicit #f ()))... | null | https://raw.githubusercontent.com/dhbw-wing-informatik-1/uebungen/1292581cd4a2596f979ff3a5f1d6f49be800e528/Beispiele/aufgabe_1_11.rkt | racket | Die ersten drei Zeilen dieser Datei wurden eingefügt . Sie enthalten Metadaten
über die in einer Form , die .
#reader(lib "vanilla-reader.rkt" "deinprogramm" "sdp")((modname aufgabe_1_11) (read-case-sensitive #f) (teachpacks ()) (deinprogramm-settings #(#f write repeating-decimal #f #t none explicit #f ()))... | |
6faf83c592b529ff3a8385188a16ef4adc2d81ae31cf31815846db3796a6690a | sirherrbatka/statistical-learning | functions.lisp | (cl:in-package #:statistical-learning.mp)
(defun sample-training-state (state &key data-points
train-attributes
target-attributes
initargs)
(sample-training-state* (training-parameters state)
... | null | https://raw.githubusercontent.com/sirherrbatka/statistical-learning/491a9c749f0bb09194793bc26487a10fae69dae0/source/model-protocol/functions.lisp | lisp | (cl:in-package #:statistical-learning.mp)
(defun sample-training-state (state &key data-points
train-attributes
target-attributes
initargs)
(sample-training-state* (training-parameters state)
... | |
da0ce6493894049957de2c182946cd333aeda89db12eb0bc5bf8fd415679807e | paf31/dovetail | Internal.hs | # LANGUAGE BlockArguments #
# LANGUAGE ImportQualifiedPost #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
# LANGUAGE ViewPatterns #
module Dovetail.Core.Control.Monad.ST.Internal where
import Control.Monad (when)
import Control.Monad.IO.Class (M... | null | https://raw.githubusercontent.com/paf31/dovetail/60e00e247b643ad9c05e4137396ffddedcd8bcb6/dovetail-core/src/Dovetail/Core/Control/Monad/ST/Internal.hs | haskell | # LANGUAGE OverloadedStrings #
read :: forall a r. STRef r a -> ST r a
modifyImpl :: forall r a b.
(a
-> { state :: a
, value :: b
}
)
-> Ref r a -> ST r b
map_ :: forall r a b. (a -> b) -> ST r a -> ST r b
... | # LANGUAGE BlockArguments #
# LANGUAGE ImportQualifiedPost #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
# LANGUAGE ViewPatterns #
module Dovetail.Core.Control.Monad.ST.Internal where
import Control.Monad (when)
import Control.Monad.IO.Class (MonadIO(..))
import Data.Foldable (fol... |
9a88ce059dc5960d2f7c667eb1913864a55fe64294c56b52857f02b929a072c2 | ghcjs/ghcjs-dom | SVGCircleElement.hs | # LANGUAGE PatternSynonyms #
# LANGUAGE ForeignFunctionInterface #
# LANGUAGE JavaScriptFFI #
-- For HasCallStack compatibility
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
module GHCJS.DOM.JSFFI.Generated.SVGCircleElement
(js_getCx, getCx, js_getCy, getCy, js_getR, getR,
SVGCircleEle... | null | https://raw.githubusercontent.com/ghcjs/ghcjs-dom/749963557d878d866be2d0184079836f367dd0ea/ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/SVGCircleElement.hs | haskell | For HasCallStack compatibility
# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #
| <-US/docs/Web/API/SVGCircleElement.cx Mozilla SVGCircleElement.cx documentation> | # LANGUAGE PatternSynonyms #
# LANGUAGE ForeignFunctionInterface #
# LANGUAGE JavaScriptFFI #
module GHCJS.DOM.JSFFI.Generated.SVGCircleElement
(js_getCx, getCx, js_getCy, getCy, js_getR, getR,
SVGCircleElement(..), gTypeSVGCircleElement)
where
import Prelude ((.), (==), (>>=), return, IO, Int, Fl... |
c3b06da7e9b78e24cebeadf6e7c2cd6c4558c24d34290f366b8345fad11b6cef | fizruk/lxc | Container.hs | -----------------------------------------------------------------------------
-- |
-- Module : System.LXC.Container
Copyright : ( c ) 2014
-- License : BSD-style (see the file LICENSE)
--
-- Maintainer :
--
-- This module provides a set of functions to create, control and manage
-- LXC containers... | null | https://raw.githubusercontent.com/fizruk/lxc/9ba6e29c59bb78ef2b3b94a338c0b7a6776e53bb/src/System/LXC/Container.hs | haskell | ---------------------------------------------------------------------------
|
Module : System.LXC.Container
License : BSD-style (see the file LICENSE)
Maintainer :
This module provides a set of functions to create, control and manage
LXC containers.
Normally you should import @System.LXC@ module... | Copyright : ( c ) 2014
You can get more info about at < > and < > .
module System.LXC.Container (
LXC,
withContainer,
Container(..),
Snapshot(..),
BDevSpecs(..),
ContainerState(..),
parseState, printState,
CloneOption(..),
CreateOption(..),
cloneFlag, createFlag,
LXCError(..),
pret... |
7bf97d835359698d371cdb302fd827bfb6f78c29dc3a64fefb074bcbebb58ae8 | data61/Mirza | Keys.hs | {-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE LambdaCase #-}
# LANGUAGE MonoLocalBinds #
# LANGUAGE MultiParamTypeClasses #
{-# LANGUAGE ScopedTypeVariables #-}
module Mirza.OrgRegistry.Tests.Keys
( testKeyQueries
) where
import Mirza.Org... | null | https://raw.githubusercontent.com/data61/Mirza/24e5ccddfc307cceebcc5ce26d35e91020b8ee10/projects/or_scs/test/Mirza/OrgRegistry/Tests/Keys.hs | haskell | # LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
# LANGUAGE LambdaCase #
# LANGUAGE ScopedTypeVariables #
making a fake user
r ` shouldBe ` Left ORT.UnauthorisedKeyAccess
making a fake user
r `shouldBe` Left ORT.UnauthorisedKeyAccess
}
myOrgList <-
pure listOrgs
For the follow... | # LANGUAGE MonoLocalBinds #
# LANGUAGE MultiParamTypeClasses #
module Mirza.OrgRegistry.Tests.Keys
( testKeyQueries
) where
import Mirza.OrgRegistry.Database.Schema as BSchema
import Mirza.Common.Time (CreationTime (..),
... |
ed78d6a686c782f2a3456772468fb405f894bdb8c3862b1c8ebd6867245dd377 | erszcz/learning | rel1_app.erl | %%%-------------------------------------------------------------------
%% @doc rel1 public API
%% @end
%%%-------------------------------------------------------------------
-module(rel1_app).
-behaviour(application).
%% Application callbacks
-export([start/2,
stop/1]).
-export([z/0]).
-include_lib("libre... | null | https://raw.githubusercontent.com/erszcz/learning/b21c58a09598e2aa5fa8a6909a80c81dc6be1601/erlang-rel1/apps/rel1/src/rel1_app.erl | erlang | -------------------------------------------------------------------
@doc rel1 public API
@end
-------------------------------------------------------------------
Application callbacks
====================================================================
API
===========================================================... |
-module(rel1_app).
-behaviour(application).
-export([start/2,
stop/1]).
-export([z/0]).
-include_lib("librel1/include/librel1.hrl").
start(_StartType, _StartArgs) ->
rel1_sup:start_link().
stop(_State) ->
ok.
z() ->
?LIBREL1_CONST.
Internal functions
|
419b1ddc48cbedae6b6678d8fb17e24505555ba9c307bbb5d3f2f903b2872063 | vii/dysfunkycom | stdinc.lisp |
(in-package #:lispbuilder-sdl-cffi)
;;; Probably do not need this.
(defcenum SDL-bool
(:SDL-FALSE 0)
(:SDL-TRUE 1))
;;; Probably do not need this.
(defcstruct Uint64
(hi :unsigned-int)
(lo :unsigned-int))
;;; Probably do not need this.
(defcenum SDL-DUMMY-ENUM
:DUMMY-ENUM-VALUE)
Is this even cross platform... | null | https://raw.githubusercontent.com/vii/dysfunkycom/a493fa72662b79e7c4e70361ad0ea3c7235b6166/addons/lispbuilder-sdl/cffi/stdinc.lisp | lisp | Probably do not need this.
Probably do not need this.
Probably do not need this.
|
(in-package #:lispbuilder-sdl-cffi)
(defcenum SDL-bool
(:SDL-FALSE 0)
(:SDL-TRUE 1))
(defcstruct Uint64
(hi :unsigned-int)
(lo :unsigned-int))
(defcenum SDL-DUMMY-ENUM
:DUMMY-ENUM-VALUE)
Is this even cross platform between Windows , * nix , OSX ?
(defcfun ("SDL_getenv" SDL-get-env) :pointer
(name :string... |
bb633b4a4d28275a555b684163783e25a7041ac4db62e489e8caa35a6192c71c | SamB/coq | class.mli | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/SamB/coq/8f84aba9ae83a4dc43ea6e804227ae8cae8086b1/toplevel/class.mli | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
i $Id$ i
i
i
Classes and coercions.... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
open Names
open Term
open ... |
957f9a1aa78f30f46ee40805a917a923367c4567cc8d8f6b91dfece0142cbc6c | ocharles/haskell-opentracing | Agent.hs | {-# LANGUAGE DeriveDataTypeable #-}
# LANGUAGE DeriveGeneric #
{-# LANGUAGE OverloadedStrings #-}
# OPTIONS_GHC -fno - warn - missing - fields #
# OPTIONS_GHC -fno - warn - missing - signatures #
# OPTIONS_GHC -fno - warn - name - shadowing #
# OPTIONS_GHC -fno - warn - unused - imports #
# OPTIONS_GHC -fno - warn - un... | null | https://raw.githubusercontent.com/ocharles/haskell-opentracing/8466a47b12fd5dbb7e9293c404c87e5f0222b285/jaeger-client/src-gen/Agent.hs | haskell | # LANGUAGE DeriveDataTypeable #
# LANGUAGE OverloadedStrings #
---------------------------------------------------------------
--
DO NOT EDIT UNLESS YOU ARE SURE YOU KNOW WHAT YOU ARE DOING --
---------------------------------------------------------------
... | # LANGUAGE DeriveGeneric #
# OPTIONS_GHC -fno - warn - missing - fields #
# OPTIONS_GHC -fno - warn - missing - signatures #
# OPTIONS_GHC -fno - warn - name - shadowing #
# OPTIONS_GHC -fno - warn - unused - imports #
# OPTIONS_GHC -fno - warn - unused - matches #
module Agent where
import Prelude (($), (.), (>>=), ... |
6418c2be7a1f24436ee27f759f24f0815a7fda758b6d84b1824980eaf9c48e59 | 2600hz-archive/whistle | erlctl_cli.erl | Copyright 2010 , Scatterbit , Inc. & Jayson Vantuyl < >
%
This file is part of erlctl .
%
Erlctl is open source . See LICENSE.txt for details .
-module (erlctl_cli).
-export([help/2]).
help(always,[]) ->
erlctl:format("Usage: erlctl <app> [<command> ...]~n"),
erlctl:exit_with_code(1).
| null | https://raw.githubusercontent.com/2600hz-archive/whistle/1a256604f0d037fac409ad5a55b6b17e545dcbf9/lib/erlctl/lib/erlctl-0.3/src/erlctl_cli.erl | erlang | Copyright 2010 , Scatterbit , Inc. & Jayson Vantuyl < >
This file is part of erlctl .
Erlctl is open source . See LICENSE.txt for details .
-module (erlctl_cli).
-export([help/2]).
help(always,[]) ->
erlctl:format("Usage: erlctl <app> [<command> ...]~n"),
erlctl:exit_with_code(1).
| |
ef073e047e865b7ce2284b189ea403e861133da49508eb75480fd3edde77ffda | ndpar/erlang | factorial.erl | %
1 > factorial : start ( ) .
2 > factorial : next ( ) .
3 > factorial : next ( ) .
% ...
%
-module(factorial).
-export([start/0, next/0]).
-export([init/0]).
start() ->
register(factorial, spawn(?MODULE, init, [])).
next() ->
factorial ! {next, self()},
receive N -> N end.
init() ->
loop(next(... | null | https://raw.githubusercontent.com/ndpar/erlang/e215841a1d370e0fc5eb6b9ff40ea7ae78fc8763/src/factorial.erl | erlang |
...
| 1 > factorial : start ( ) .
2 > factorial : next ( ) .
3 > factorial : next ( ) .
-module(factorial).
-export([start/0, next/0]).
-export([init/0]).
start() ->
register(factorial, spawn(?MODULE, init, [])).
next() ->
factorial ! {next, self()},
receive N -> N end.
init() ->
loop(next(1, 1)).
n... |
61704a6be99af332e6663812ab91d92c01e0b204e7494ba016ce1df0e184a573 | yallop/ocaml-ctypes | functions.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.
*)
(* Foreign function bindings ... | null | https://raw.githubusercontent.com/yallop/ocaml-ctypes/52ff621f47dbc1ee5a90c30af0ae0474549946b4/tests/test-builtins/stubs/functions.ml | ocaml | Foreign function bindings for the builtins tests.
*ptr |= value; return *ptr;
tmp = *ptr; *ptr &= value; return tmp; |
* 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.
*)
open Ctypes
module Stubs (F... |
309578db0b574e9a97c8d2208d18210e80e5af10010864e830923c1bb9d7447d | RJ/erlang-cassandra-cql | ecql_parser.erl | %% Reads binary stream, makes #frame{} records
-module(ecql_parser).
-include("ecql.hrl").
-compile(export_all).
read_frame(<< Type:1,
Ver:7/unsigned-integer,
Flags:8/unsigned-integer,
Stream:8/signed-integer,
Opcode:8/unsigned-integer,
... | null | https://raw.githubusercontent.com/RJ/erlang-cassandra-cql/24907e4052d378b0192dc57469236cee5ebc760e/src/ecql_parser.erl | erlang | Reads binary stream, makes #frame{} records
TODO utf conversion for binary
Infer types when unspecified:
Custom: the value is a [string] of custom type name
Bigint
Counter
Decimal
Double
Float
Int
Text
Timestamp
Uuid
Inet
List: the value is an [option], representing the type
of the elements of the ... | -module(ecql_parser).
-include("ecql.hrl").
-compile(export_all).
read_frame(<< Type:1,
Ver:7/unsigned-integer,
Flags:8/unsigned-integer,
Stream:8/signed-integer,
Opcode:8/unsigned-integer,
Len:32/big-unsigned-integer,
Bo... |
c04ea65978baa2432fbf2c5b9a379cf8d593cd29d6717522760f615e9ff0650f | uim/sigscheme | oleg-srfi2.scm | Ported from /~oleg/ftp/Scheme/vland.scm
;; License terms:
;;
;; /~oleg/ftp/
;;
;; "Unless specified otherwise, all the code and the documentation on this site
;; is in public domain."
;; ChangeLog
;;
2007 - 06 - 13 yamaken Copied from " vland.scm , v 2.0 2002/06/28 " and adapted
to Sig... | null | https://raw.githubusercontent.com/uim/sigscheme/ccf1f92d6c2a0f45c15d93da82e399c2a78fe5f3/test/oleg-srfi2.scm | scheme | License terms:
/~oleg/ftp/
"Unless specified otherwise, all the code and the documentation on this site
is in public domain."
ChangeLog
A special form and-let*
Validation code
AND-LET* (formerly known as LAND*) is an AND with local bindings, a
the non-#f result
of a form can be bound to a fre... | Ported from /~oleg/ftp/Scheme/vland.scm
2007 - 06 - 13 yamaken Copied from " vland.scm , v 2.0 2002/06/28 " and adapted
to SigScheme
guarded LET * special form . It evaluates a sequence of forms one
It is defined in SRFI-2 < -2/ >
where CLAWS is a list of expressions or bindi... |
addbefd6b7a07c8155d99164ed7d12fbf09cabb7bb7ff31409d2c97384468d2a | cl-axon/shop2 | problem-converter.lisp | (defparameter *debug-mode* t)
(defun convert-problems (L)
(dolist (fn L)
(problem-converter fn (concatenate 'string fn ".lisp"))
)
)
(defun write-SHOP2-problem (shop2-problem-filename
problem-name
domain-name
objects-list
... | null | https://raw.githubusercontent.com/cl-axon/shop2/9136e51f7845b46232cc17ca3618f515ddcf2787/examples/IPC-2002/Satellite/SimpleTime/hard_probs/problem-converter.lisp | lisp |
Override default values
| (defparameter *debug-mode* t)
(defun convert-problems (L)
(dolist (fn L)
(problem-converter fn (concatenate 'string fn ".lisp"))
)
)
(defun write-SHOP2-problem (shop2-problem-filename
problem-name
domain-name
objects-list
... |
5f54f49e81e6421b6d025df06c94ca31346e64c77c21708efc28863719b5c476 | ghollisjr/cl-ana | h5ex-t-bit.lisp | Copyright by The HDF Group .
;;;; All rights reserved.
;;;;
This file is part of hdf5 - cffi .
The full hdf5 - cffi copyright notice , including terms governing
;;;; use, modification, and redistribution, is contained in the file COPYING,
;;;; which can be found at th... | null | https://raw.githubusercontent.com/ghollisjr/cl-ana/5cb4c0b0c9c4957452ad2a769d6ff9e8d5df0b10/hdf-cffi/examples/datatypes/h5ex-t-bit.lisp | lisp | All rights reserved.
use, modification, and redistribution, is contained in the file COPYING,
which can be found at the root of the source code distribution tree.
If you do not have access to this file, you may request a copy from
.
fields to a dataset with a dataspace of DIM0xDIM1, then
the data, and outputs i... | Copyright by The HDF Group .
This file is part of hdf5 - cffi .
The full hdf5 - cffi copyright notice , including terms governing
This example shows how to read and write
datatypes to a dataset . The program first writes bit
closes the file . Next , it reo... |
7e3f3533d6d2955c111ab63b19f4bbe3b35b0c5bc2b309d9d3c422cda5ce1c18 | hanshuebner/cadr2 | proces.lisp | -*-Mode : LISP ; Package : SYSTEM - INTERNALS ; BASE : 8 -*-
* * ( c ) Copyright 1980 Massachusetts Institute of Technology * *
;Lisp machine processes and scheduler.
;Note that this file is not in the cold-load, but is loaded in as part of
;the "inner system", after which scheduling is turned on.
;; The followin... | null | https://raw.githubusercontent.com/hanshuebner/cadr2/2398a1303804d41c4cdcb2d3d8454cd4a48912b8/mit/lispm2/proces.lisp | lisp | Package : SYSTEM - INTERNALS ; BASE : 8 -*-
Lisp machine processes and scheduler.
Note that this file is not in the cold-load, but is loaded in as part of
the "inner system", after which scheduling is turned on.
The following structure is a "process". It is not the same as a stack group.
A collection of stack group... | * * ( c ) Copyright 1980 Massachusetts Institute of Technology * *
(DEFSTRUCT (PROCESS :ARRAY :NAMED)
(FUNCTION FALSE))
The " WHOSTATE " string for the who line or PEEK
)
Every 60th of a second , each elt is funcalled on nothing .
Argument to % GC - SCAVENGE used in that case
A process is runnabl... |
9ad9297553d438a04ed733964e0783674c74080c05341afb5a8a58bff5cf59ea | fragnix/fragnix | Control.Monad.ST.Lazy.Imp.hs | {-# LINE 1 "Control.Monad.ST.Lazy.Imp.hs" #-}
# LANGUAGE Unsafe #
# LANGUAGE MagicHash , UnboxedTuples , RankNTypes #
{-# OPTIONS_HADDOCK hide #-}
-----------------------------------------------------------------------------
-- |
-- Module : Control.Monad.ST.Lazy.Imp
Copyright : ( c ) The University of Gl... | null | https://raw.githubusercontent.com/fragnix/fragnix/b9969e9c6366e2917a782f3ac4e77cce0835448b/builtins/base/Control.Monad.ST.Lazy.Imp.hs | haskell | # LINE 1 "Control.Monad.ST.Lazy.Imp.hs" #
# OPTIONS_HADDOCK hide #
---------------------------------------------------------------------------
|
Module : Control.Monad.ST.Lazy.Imp
License : BSD-style (see the file libraries/base/LICENSE)
Maintainer :
Stability : provisional
Portability : non-p... | # LANGUAGE Unsafe #
# LANGUAGE MagicHash , UnboxedTuples , RankNTypes #
Copyright : ( c ) The University of Glasgow 2001
This module presents an identical interface to " Control . Monad . ST " ,
module Control.Monad.ST.Lazy.Imp (
ST,
runST,
fixST,
strictToLazyST, lazyToStrict... |
ca1b1850010f755b7d199c37ad44343628766ce975ebad259f7dbe97b4706d0a | openmusic-project/openmusic | treetempoedit.lisp | ;=========================================================================
OpenMusic : Visual Programming Language for Music Composition
;
Copyright ( c ) 1997- ... IRCAM - Centre , Paris , France .
;
This file is part of the OpenMusic environment sources
;
OpenMusic is free software : you can redist... | null | https://raw.githubusercontent.com/openmusic-project/openmusic/9560c064512a1598cd57bcc9f0151c0815178e6f/OPENMUSIC/code/projects/musicproject/editor/inspectors/treetempoedit.lisp | lisp | =========================================================================
(at your option) any later version.
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
=================... | OpenMusic : Visual Programming Language for Music Composition
Copyright ( c ) 1997- ... IRCAM - Centre , Paris , France .
This file is part of the OpenMusic environment sources
OpenMusic is free software : you can redistribute it and/or modify
it under the terms of the GNU General Public License ... |
79d009c080720782fb53f2e31eff2dc216e8d45f60463824edef60810511a454 | dolotech/erlang_server | data_enhance_rate.erl | -module(data_enhance_rate).
-export([get/1]).
get(ids) -> [];
get({1,10101}) -> 800;
get({1,10102}) -> 1000;
get({1,10103}) -> 1000;
get({1,10104}) -> 1000;
get({1,10105}) -> 1000;
get({1,10106}) -> 1000;
get({1,10107}) -> 1000;
get({1,10108}) -> 1000;
get({1,10109}) -> 1000;
get({2,10101}) -> 250;
get({2,10102}) -> 80... | null | https://raw.githubusercontent.com/dolotech/erlang_server/44ea3693317f60e18b19c9ddfa179307cbd646d7/src/data/data_enhance_rate.erl | erlang | -module(data_enhance_rate).
-export([get/1]).
get(ids) -> [];
get({1,10101}) -> 800;
get({1,10102}) -> 1000;
get({1,10103}) -> 1000;
get({1,10104}) -> 1000;
get({1,10105}) -> 1000;
get({1,10106}) -> 1000;
get({1,10107}) -> 1000;
get({1,10108}) -> 1000;
get({1,10109}) -> 1000;
get({2,10101}) -> 250;
get({2,10102}) -> 80... | |
b718f85d0f6c775904e1dd1e5c83c3ef70834adbdacf6938153cc4c3a5b02c42 | change-metrics/monocle | Test.hs | module Monocle.Backend.Test where
import Control.Exception (bracket_)
import Control.Monad.Random.Lazy
import Data.List (partition)
import Data.Maybe (fromJust)
import Data.Text qualified as Text
import Data.Time.Clock (secondsToNominalDiffTime)
import Data.Time.Format (defaultTimeLocale, formatTime)
import Data.Vecto... | null | https://raw.githubusercontent.com/change-metrics/monocle/198177952b54e881376eb0d86f5f7e9f343c165d/src/Monocle/Backend/Test.hs | haskell | | TODO: rename 'withTenant' into 'runTenantEffects', this is a test helper
todo: generate random name
Update a Change and ensure the document is updated in the database
Check we can get the most recently updated change
Check total count of Change document in the database
Update some crawler metadata and ensure we... | module Monocle.Backend.Test where
import Control.Exception (bracket_)
import Control.Monad.Random.Lazy
import Data.List (partition)
import Data.Maybe (fromJust)
import Data.Text qualified as Text
import Data.Time.Clock (secondsToNominalDiffTime)
import Data.Time.Format (defaultTimeLocale, formatTime)
import Data.Vecto... |
33ca6b96e908e9b7e7de1f28fa6a78e73e2cce0f4e0d1297602bd774286d8766 | mbj/stratosphere | ProvisioningParameterProperty.hs | module Stratosphere.SageMaker.Project.ProvisioningParameterProperty (
ProvisioningParameterProperty(..), mkProvisioningParameterProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Str... | null | https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/sagemaker/gen/Stratosphere/SageMaker/Project/ProvisioningParameterProperty.hs | haskell | module Stratosphere.SageMaker.Project.ProvisioningParameterProperty (
ProvisioningParameterProperty(..), mkProvisioningParameterProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Str... | |
8bb139b83cae942b24ab3f28a81bf8b71f5eaf20f8657ca9bcafa0888e20951b | SimulaVR/godot-haskell | Image.hs | # LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving ,
TypeFamilies , TypeOperators , FlexibleContexts , DataKinds ,
MultiParamTypeClasses #
TypeFamilies, TypeOperators, FlexibleContexts, DataKinds,
MultiParamTypeClasses #-}
module Godot.Core.Image
(Godot.Core.Image._FORMAT_RGBAF, Godot.Core.Im... | null | https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/src/Godot/Core/Image.hs | haskell | | Removes the image's mipmaps.
| Removes the image's mipmaps.
| Copies @src@ image to this image.
| Copies @src@ image to this image.
# NOINLINE bindImage_create #
| Crops the image to the given @width@ and @height@. If the specified size is larger than the current size, the extra area is filled with black pixels.... | # LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving ,
TypeFamilies , TypeOperators , FlexibleContexts , DataKinds ,
MultiParamTypeClasses #
TypeFamilies, TypeOperators, FlexibleContexts, DataKinds,
MultiParamTypeClasses #-}
module Godot.Core.Image
(Godot.Core.Image._FORMAT_RGBAF, Godot.Core.Im... |
cd8f44a8f9a53510147c7e4379a830aaf788cd65e2d55cf83521b473c26e5ce8 | sigscale/snmp-collector | snmp_collector_usm.erl | %%% snmp_collector_usm.erl
%%% vim: ts=3
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2016 - 2019 SigScale Global Inc.
%%% @end
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%%% you may not use this file except in compliance with the License.
%%% You may obt... | null | https://raw.githubusercontent.com/sigscale/snmp-collector/cb6b95ed331abd6f258d8ea55bf34c57f2992444/src/snmp_collector_usm.erl | erlang | snmp_collector_usm.erl
vim: ts=3
@end
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License... | 2016 - 2019 SigScale Global Inc.
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
User - based Security Model ( USM ) for SNMPv3 ( RFC3414 ) in the
< a href=" / html / rfc3414 " >
RFC3414 - User - based Security M... |
889fcc95f9ad7f18d76753abe60190ab7c03f5e91586aaf8cc9f17c57f8fdbef | charlieg/Sparser | form1.lisp | ;;; -*- Mode:LISP; Syntax:Common-Lisp; Package:(SPARSER LISP) -*-
copyright ( c ) 1991,1992 -- all rights reserved
;;;
;;; File: "form
;;; Module: "objects;categories:"
Version : 1.4 September 1992
1.1 ( 1/26/91 v1.8 ) Added a data check to Resolve- ... so that the error
;; message wou... | null | https://raw.githubusercontent.com/charlieg/Sparser/b9bb7d01d2e40f783f3214fc104062db3d15e608/Sparser/code/s/objects/chart/categories1/form1.lisp | lisp | -*- Mode:LISP; Syntax:Common-Lisp; Package:(SPARSER LISP) -*-
File: "form
Module: "objects;categories:"
message would make more sense if the category wasn't already
defined.
resolve1
and def-category/expr and a new form for internal use, define-
category so the sources can be distin... | copyright ( c ) 1991,1992 -- all rights reserved
Version : 1.4 September 1992
1.1 ( 1/26/91 v1.8 ) Added a data check to Resolve- ... so that the error
1.3 ( 2/20/92 v2.2 ) Added a new intermediary between def - category
route through Construct - category , which is what define - category... |
5679136b6ea02b4184949f2b4e0739dbc35f7d4e7930386b09319833b30bb4db | bvaugon/ocapic | printf.ml | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
and ... | null | https://raw.githubusercontent.com/bvaugon/ocapic/a14cd9ec3f5022aeb5fe2264d595d7e8f1ddf58a/lib/printf.ml | ocaml | ************************************************************************
OCaml
... | and , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
open CamlinternalFormatBasics
open CamlinternalFormat
let kfprintf k o (Format (fmt, _)) =
make_printf (fun o ac... |
207613ffeb3fda83636bf6260f978b8afb736ff17e60bf9d547706e9381e8ce1 | Kakadu/lablqml | program.ml | open Printf
let () = Printexc.record_backtrace true
let root_qml_file = "Root.qml"
open Lablqml
let main () =
let controller_cppobj = Controller.create_controller () in
let controller = object(self)
inherit Controller.controller controller_cppobj as super
val mutable _x = 0
method onMouseClicked () =... | null | https://raw.githubusercontent.com/Kakadu/lablqml/438103d6ab22b09be53e3c8218d3b21c00eafdb6/demos/signal_test/program.ml | ocaml | open Printf
let () = Printexc.record_backtrace true
let root_qml_file = "Root.qml"
open Lablqml
let main () =
let controller_cppobj = Controller.create_controller () in
let controller = object(self)
inherit Controller.controller controller_cppobj as super
val mutable _x = 0
method onMouseClicked () =... | |
5c5ae2326a4840f7c69803e6c761c3e8c5b71f8efaf6fca6fef4158487407b49 | kazu-yamamoto/domain-auth | Btag.hs | {-# LANGUAGE OverloadedStrings #-}
module Network.DomainAuth.DKIM.Btag (
removeBtagValue
) where
import Control.Applicative
import Control.Monad
import Data.Attoparsec.ByteString (Parser)
import qualified Data.Attoparsec.ByteString as P
import qualified Data.Attoparsec.Combinator as P (option)
import Data.ByteS... | null | https://raw.githubusercontent.com/kazu-yamamoto/domain-auth/d13145709a558145ac38e28e0b339c48b950b4e0/Network/DomainAuth/DKIM/Btag.hs | haskell | # LANGUAGE OverloadedStrings #
|
>>> removeBtagValue "DKIM-Signature: a=rsa-sha256; d=example.net; s=brisbane;\n c=simple; q=dns/txt; i=@eng.example.net;\n t=1117574938; x=1118006938;\n h=from:to:subject:date;\n z=From:|To:|\n Subject:demo=20run|Date:July=205,=202005=203:44:08=20PM=20-0700;\n bh=MTIzND... |
module Network.DomainAuth.DKIM.Btag (
removeBtagValue
) where
import Control.Applicative
import Control.Monad
import Data.Attoparsec.ByteString (Parser)
import qualified Data.Attoparsec.ByteString as P
import qualified Data.Attoparsec.Combinator as P (option)
import Data.ByteString as BS
import Data.ByteString.... |
a11e835df20f880618da9d2c091a226d3f9fc32bb97b9c91782281e73be9fe49 | google/hrepl | Boot.hs | Copyright 2020 Google LLC
--
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- -2.0
--
-- Unless required by applicable law or agreed to in writing, software
distributed un... | null | https://raw.githubusercontent.com/google/hrepl/2648a55cc38407c5b60a3a086217e2d827ca6cb6/hrepl/tests/Boot.hs | haskell |
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing per... | Copyright 2020 Google LLC
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
module Boot where
import BootUser
newtype Boot = Boot IntList
deriving Show
|
c00e918788d2df744e824e337120f68b833c5d2b0229bd4ad0f07f74bb5a53f9 | rmloveland/scheme48-0.53 | arch.scm | ; -*- Mode: Scheme; Syntax: Scheme; Package: Scheme; -*-
Copyright ( c ) 1993 - 1999 by and . See file COPYING .
; This is file arch.scm.
;;;; Architecture description
(define architecture-version "Vanilla 20")
; Things that the VM and the runtime system both need to know.
(define bits-used-per-byte 8)
(def... | null | https://raw.githubusercontent.com/rmloveland/scheme48-0.53/1ae4531fac7150bd2af42d124da9b50dd1b89ec1/scheme/vm/arch.scm | scheme | -*- Mode: Scheme; Syntax: Scheme; Package: Scheme; -*-
This is file arch.scm.
Architecture description
Things that the VM and the runtime system both need to know.
Bytecodes: for compiler and interpreter
Instruction specification is
(op . args)
OP may be a name or a list of names
ARGS are
byte - a byte... | Copyright ( c ) 1993 - 1999 by and . See file COPYING .
(define architecture-version "Vanilla 20")
(define bits-used-per-byte 8)
(define byte-limit (expt 2 bits-used-per-byte))
- a byte
two instructions into a single , shorter one )
two - bytes - two bytes
index - a two by... |
e1a5b6c989a8debd397b24c93fa54b78d4e3bc074e6cbc95bc52f6d7c270d53a | oakes/play-clj-examples | core.clj | (ns minimal-3d.core
(:require [play-clj.core :refer :all]
[play-clj.g3d :refer :all]
[play-clj.math :refer :all]
[play-clj.ui :refer :all]))
(defscreen main-screen
:on-show
(fn [screen entities]
(update! screen
:renderer (model-batch)
:attributes ... | null | https://raw.githubusercontent.com/oakes/play-clj-examples/449a505a068faeeb35d4ee4622c6a05e3fff6763/minimal-3d/desktop/src-common/minimal_3d/core.clj | clojure | (ns minimal-3d.core
(:require [play-clj.core :refer :all]
[play-clj.g3d :refer :all]
[play-clj.math :refer :all]
[play-clj.ui :refer :all]))
(defscreen main-screen
:on-show
(fn [screen entities]
(update! screen
:renderer (model-batch)
:attributes ... | |
d2da0dda7d19f65a6d734a8585f0291bc33c5574c9109b5a5f9baddaf656cfa7 | racketscript/racketscript | sideeffect-another-way.rkt | #lang racket
(require "private/module-with-effect.rkt")
(displayln (unbox x))
(set-box! x (add1 (unbox x)))
| null | https://raw.githubusercontent.com/racketscript/racketscript/f94006d11338a674ae10f6bd83fc53e6806d07d8/tests/test-the-test/sideeffect-another-way.rkt | racket | #lang racket
(require "private/module-with-effect.rkt")
(displayln (unbox x))
(set-box! x (add1 (unbox x)))
| |
8a3e14eef62f819e021cff5740b040e36a5cda060583d4e032ddedc310e8cc89 | input-output-hk/cardano-sl | Main.hs | module Main
( main
) where
import Universum
import Cardano.Node.API (launchNodeServer)
import Pos.Chain.Update (updateConfiguration)
import Pos.Client.CLI (NodeWithApiArgs (..), getNodeApiOptions,
loggingParams)
import Pos.Launcher (action... | null | https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/node/app/Main.hs | haskell | module Main
( main
) where
import Universum
import Cardano.Node.API (launchNodeServer)
import Pos.Chain.Update (updateConfiguration)
import Pos.Client.CLI (NodeWithApiArgs (..), getNodeApiOptions,
loggingParams)
import Pos.Launcher (action... | |
d686a501c8b7119f9d1cf4e284aa6428091929ef0ac5b6ef9d1dd6769b6f4bd4 | rabbitmq/looking_glass | lg_rabbit_hole.erl | %% Copyright (c) 2017-Present Pivotal Software, Inc. All rights reserved.
%%
This package , Looking , is double - licensed under the Mozilla
Public License 1.1 ( " MPL " ) and the Apache License version 2
( " ASL " ) . For the MPL , please see LICENSE - MPL - RabbitMQ . For the ASL ,
%% please see LICENSE-APACH... | null | https://raw.githubusercontent.com/rabbitmq/looking_glass/0ae891a8cee16603cdead0caf2d4c0b0800b22c9/src/lg_rabbit_hole.erl | erlang | Copyright (c) 2017-Present Pivotal Software, Inc. All rights reserved.
please see LICENSE-APACHE2.
either express or implied. See the LICENSE file for specific language governing
rights and limitations of this software.
If you have any questions regarding licensing, please contact us at
.
The purpose of this... | This package , Looking , is double - licensed under the Mozilla
Public License 1.1 ( " MPL " ) and the Apache License version 2
( " ASL " ) . For the MPL , please see LICENSE - MPL - RabbitMQ . For the ASL ,
This software is distributed on an " AS IS " basis , WITHOUT WARRANTY OF ANY KIND ,
-module(lg_rabbit... |
1496c2fef303732268d5331518bd6e032ff49b9262c6e0fda9fbb9e0f46a7520 | lfe/rebar3_lfe | rebar3_lfe_utils.erl | -module(rebar3_lfe_utils).
-export([app_name/1,
app_name_str/1,
config/2,
debug_get_value/4,
ensure_dir/1,
first_value/2,
get_apps/1,
get_first_files/2,
get_src_dirs/2,
include_dir/0, include_dir/1,
lfe_config/1,
out_dir... | null | https://raw.githubusercontent.com/lfe/rebar3_lfe/8b49a7938beb61def562a9a32c31c30567685d79/src/rebar3_lfe_utils.erl | erlang | Make sure that ebin/ exists and is on the path
@doc Updates the list of modules in the .app file for the specified
directory.
The .app file will be updated to include all modules in its
`modules' entry. The modules listed are resolved by looking for all
files with the extension `.beam' in `Dir'. | -module(rebar3_lfe_utils).
-export([app_name/1,
app_name_str/1,
config/2,
debug_get_value/4,
ensure_dir/1,
first_value/2,
get_apps/1,
get_first_files/2,
get_src_dirs/2,
include_dir/0, include_dir/1,
lfe_config/1,
out_dir... |
2728b3ff890004f8d03326a2fb4bd7b87ebc3d8c10b4fdbe02780f93d0b2b0bd | karlhof26/gimp-scheme | kward1979uk_quick_brush.scm | GIMP
version 1.0 2011.01.31
Copyright ( c ) 2022
;
;
; This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
; (at your option) any later ve... | null | https://raw.githubusercontent.com/karlhof26/gimp-scheme/0db4e0d3a711f4a1084e42970cf3b27301a31280/kward1979uk_quick_brush.scm | scheme |
This program is free software: you can redistribute it and/or modify
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Gene... | GIMP
version 1.0 2011.01.31
Copyright ( c ) 2022
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
(define (brush-creator image draw name filename spacing location)
(let* (
(drawable ... |
a2bd865da46c933083adb847f3d02cefdb4dd10a45e963993b00aebb29950e2f | dwayne/haskell-programming | print3.hs | module Print3 where
myGreeting :: String
myGreeting = "Hello, " ++ "world!"
hello :: String
hello = "Hello,"
world :: String
world = "world!"
main :: IO ()
main = do
putStrLn myGreeting
putStrLn secondGreeting
where secondGreeting = concat [hello, " ", world]
| null | https://raw.githubusercontent.com/dwayne/haskell-programming/d08679e76cfd39985fa2ee3cd89d55c9aedfb531/ch3/print3.hs | haskell | module Print3 where
myGreeting :: String
myGreeting = "Hello, " ++ "world!"
hello :: String
hello = "Hello,"
world :: String
world = "world!"
main :: IO ()
main = do
putStrLn myGreeting
putStrLn secondGreeting
where secondGreeting = concat [hello, " ", world]
| |
739c22263d1f44bdccf611657355ee491903eaa7fbfc6c2fec797522ce8d8594 | haskell/c2hs | Config.hs | -- -*-haskell-*-
-- ** @configure_input@ **
-- ===========================================================================
-- C -> Haskell Compiler: configuration
--
Author :
Created : 27 September 99
--
Copyright ( c ) [ 1999 .. 2005 ]
... | null | https://raw.githubusercontent.com/haskell/c2hs/bb7079f4bf3ca4af00f6178d05a8da9238ddff7c/src/C2HS/Config.hs | haskell | -*-haskell-*-
** @configure_input@ **
===========================================================================
C -> Haskell Compiler: configuration
This file is free software; you can redistribute it and/or modify
(at your option) any later... | Author :
Created : 27 September 99
Copyright ( c ) [ 1999 .. 2005 ]
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 2 of the License , or
module C2HS.Config (
cpp, cppopts, libfname, hpaths,
PlatformSpec(..), defaultPlatformS... |
bb8f556d809cda4157a0174c1b8e6b702229ed7bfde185f135320af887a939a9 | yuriy-chumak/ol | signal.scm |
(import
(prefix (owl sys) sys-))
(define (loop) (loop))
(define (fork-inf)
(let ((r (sys-fork)))
(if (number? r)
r ;; return pid
(loop)))) ;; get stuck
(define a (fork-inf))
(sys-kill a sys-sigkill)
9
( 2 . 9 )
| null | https://raw.githubusercontent.com/yuriy-chumak/ol/83dd03d311339763682eab02cbe0c1321daa25bc/tests/disabled/signal.scm | scheme | return pid
get stuck |
(import
(prefix (owl sys) sys-))
(define (loop) (loop))
(define (fork-inf)
(let ((r (sys-fork)))
(if (number? r)
(define a (fork-inf))
(sys-kill a sys-sigkill)
9
( 2 . 9 )
|
718a7c58590805dd1732cac18718114f0885f7219d5e140bf4672d5bddcb140e | MMagueta/MMaguetaGuix | clojure.scm | ;;; GNU Guix --- Functional package management for GNU
Copyright © 2019 < >
Copyright © 2020 < >
Copyright © 2020 < >
;;;
;;; This file is not part of GNU Guix.
;;;
GNU is free software ; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the... | null | https://raw.githubusercontent.com/MMagueta/MMaguetaGuix/6de46405e47398c72d09b736baf0c300724bfeda/nongnu/packages/clojure.scm | scheme | GNU Guix --- Functional package management for GNU
This file is not part of GNU Guix.
you can redistribute it and/or modify it
either version 3 of the License , or ( at
your option) any later version.
GNU Guix is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implie... | Copyright © 2019 < >
Copyright © 2020 < >
Copyright © 2020 < >
under the terms of the GNU General Public License as published by
You should have received a copy of the GNU General Public License
along with GNU . If not , see < / > .
(define-module (nongnu packages clojure)
#:use-module (gnu p... |
a00dda6618753877f08fcb72e5e33bba6f9cf5a94b9ef7873d6361e6641d3a21 | mstksg/advent-of-code-ocr | Spec.hs | # LANGUAGE QuasiQuotes #
import Advent.OCR
import Test.Hspec
import Text.Heredoc
import qualified Data.Set as S
main :: IO ()
main = hspec $ do
describe "2016 Day 8" $ do
it "should parse a sample result correctly" $ do
asciiMapToLetters (S.singleton '#') y2016d08
... | null | https://raw.githubusercontent.com/mstksg/advent-of-code-ocr/d3207f67a40277df771ca1c74379139784bb273a/test/Spec.hs | haskell | # LANGUAGE QuasiQuotes #
import Advent.OCR
import Test.Hspec
import Text.Heredoc
import qualified Data.Set as S
main :: IO ()
main = hspec $ do
describe "2016 Day 8" $ do
it "should parse a sample result correctly" $ do
asciiMapToLetters (S.singleton '#') y2016d08
... | |
98f3283b4d1b44d8e01ea7f0a13c55d079e58d52f6585da204e3355763fba709 | agda/agda | UsedNames.hs |
module Agda.Syntax.Abstract.UsedNames
( allUsedNames
) where
import Data.Foldable (foldMap)
import Data.Semigroup (Semigroup, (<>))
import Data.Set (Set)
import qualified Data.Set as Set
import Agda.Syntax.Common
import Agda.Syntax.Abstract
import Agda.Syntax.Concrete (FieldAssignment'(..))
import Agda.Utils.Lis... | null | https://raw.githubusercontent.com/agda/agda/3da43a3e34ecd2256f5bde7d7d4ec74342f06cef/src/full/Agda/Syntax/Abstract/UsedNames.hs | haskell | | All names used in an abstract expression. This is used when rendering clauses to figure out
which (implicit) pattern variables must be preserved. For example, the for @f : Nat → Nat@, the
the @n@.
Note: where declarations are ignored. We use this only on expressions coming from
InternalToAbstract where... |
module Agda.Syntax.Abstract.UsedNames
( allUsedNames
) where
import Data.Foldable (foldMap)
import Data.Semigroup (Semigroup, (<>))
import Data.Set (Set)
import qualified Data.Set as Set
import Agda.Syntax.Common
import Agda.Syntax.Abstract
import Agda.Syntax.Concrete (FieldAssignment'(..))
import Agda.Utils.Lis... |
6755e9105ec246fa6ae2ec6ac901e60791e53a2ca07e80d2d146428d483996ac | wireless-net/erlang-nommu | unicode.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 2008 - 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 Pub... | null | https://raw.githubusercontent.com/wireless-net/erlang-nommu/79f32f81418e022d8ad8e0e447deaea407289926/lib/stdlib/src/unicode.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 2008 - 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(unicode).
-export([characters_to_l... |
38d91bc55d984cd0712c8dabfdaeac8ff53837d9aead87b9099c127304df9ca3 | wilbowma/cur | datum.rkt | #lang cur
(require
cur/stdlib/datum
cur/stdlib/bool ; as a concrete type/value
rackunit/turnstile+)
(typecheck-fail "" #:with-msg "Could not find datum parser")
(typecheck-fail 0 #:with-msg "Could not find datum parser")
(begin-for-syntax
(current-datum (lambda (syn f)
(syntax-parse syn
... | null | https://raw.githubusercontent.com/wilbowma/cur/e039c98941b3d272c6e462387df22846e10b0128/cur-test/cur/tests/stdlib/datum.rkt | racket | as a concrete type/value
(begin-for-syntax | #lang cur
(require
cur/stdlib/datum
rackunit/turnstile+)
(typecheck-fail "" #:with-msg "Could not find datum parser")
(typecheck-fail 0 #:with-msg "Could not find datum parser")
(begin-for-syntax
(current-datum (lambda (syn f)
(syntax-parse syn
[e:nat #'false]
... |
e8a6ff03f42be379cf5cf11fd5cd483a2a4cc178f22ac9b966bea4b98a057904 | commercialhaskell/stack | DockerSpec.hs | # LANGUAGE NoImplicitPrelude #
{-# LANGUAGE OverloadedStrings #-}
module Stack.Config.DockerSpec
( spec
) where
import Test.Hspec
import Stack.Prelude
import Stack.Types.Resolver
import RIO.Time (fromGregorian)
import Stack.Config.Docker (addDefaultTag)
spec :: Spec
spec = do
describe "addDefaultTag" $ do
... | null | https://raw.githubusercontent.com/commercialhaskell/stack/bd3ea5e4a5411bb8f08f7e63a61d45ff701764d6/src/test/Stack/Config/DockerSpec.hs | haskell | # LANGUAGE OverloadedStrings # | # LANGUAGE NoImplicitPrelude #
module Stack.Config.DockerSpec
( spec
) where
import Test.Hspec
import Stack.Prelude
import Stack.Types.Resolver
import RIO.Time (fromGregorian)
import Stack.Config.Docker (addDefaultTag)
spec :: Spec
spec = do
describe "addDefaultTag" $ do
it "succeeds fails no resolver" $ a... |
941da1bbeccfad2523c7c71f0b5ddc7cc293eb527dbbad4c49910e1f013d1eaa | tezos-checker/checker | avl.ml | (* Current state
*
* The code is verbose, we should figure out some utilities to make it more
* readable. (especially around setting left and right children of a branches
* while maintaining the invariants, and we can implement more things in terms
* of 'join')
*
* The invariants of the functions are sometimes n... | null | https://raw.githubusercontent.com/tezos-checker/checker/fcca75dfa64950177c0427ad28c0c8d126803091/src/avl.ml | ocaml | Current state
*
* The code is verbose, we should figure out some utilities to make it more
* readable. (especially around setting left and right children of a branches
* while maintaining the invariants, and we can implement more things in terms
* of 'join')
*
* The invariants of the functions are sometimes not... |
The AVL tree double - ended queue backed by a doubly - linked balanced
* tree where the leaves contain the liquidation elements , and the
* branches contain the amount of collateral on their left and right children .
*
* It acts as a mutable data structure implemented on top of a bigmap
* ( just a Map... |
24debc8118f2091d9eec1efdd3bf4cdf547673a57bdbde8e37a1732ef026c93d | wireapp/wire-server | RawJson.hs | module Test.Wire.API.RawJson (tests) where
import Data.Proxy
import Imports
import Servant.API
import Test.Tasty
import Test.Tasty.QuickCheck
import Wire.API.RawJson
tests :: TestTree
tests =
testGroup "RawJson" $
[ testProperty "MimeUnrender lifts any string to RawJson" testMimeUnrender
]
testMimeUnrender... | null | https://raw.githubusercontent.com/wireapp/wire-server/607d93e0cd6a7f312ab5bad071ad383068e896c5/libs/wire-api/test/unit/Test/Wire/API/RawJson.hs | haskell | module Test.Wire.API.RawJson (tests) where
import Data.Proxy
import Imports
import Servant.API
import Test.Tasty
import Test.Tasty.QuickCheck
import Wire.API.RawJson
tests :: TestTree
tests =
testGroup "RawJson" $
[ testProperty "MimeUnrender lifts any string to RawJson" testMimeUnrender
]
testMimeUnrender... | |
4f284b1755689705bfe7a113f39732e918658e57ccc0128e61236f25a336bd43 | maranget/hevea | table.ml | (***********************************************************************)
(* *)
(* HEVEA *)
(* *)
, projet PARA , INR... | null | https://raw.githubusercontent.com/maranget/hevea/226eac8c506f82a600d453492fbc1b9784dd865f/table.ml | ocaml | *********************************************************************
HEVEA
... | , projet PARA , INRIA Rocquencourt
Copyright 1999 Institut National de Recherche en Informatique et
Automatique . Distributed only by permission .
exception Empty
type 'a t = {mutable next : int ; mutable data : 'a array}
let default_size = 32
;;
let creat... |
2eb37b0f1dc2830a1f964acabdf23df2d1656249d2d5bcd3478d388b3a82f460 | pedestal/pedestal | server.clj | (ns war-example.server
for -main method in uberjar
(:require [io.pedestal.http :as server]
[io.pedestal.http.route :as route]
[war-example.service :as service]))
;; This is an adapted service map, that can be started and stopped
;; From the REPL you can call server/start and server/stop on ... | null | https://raw.githubusercontent.com/pedestal/pedestal/d20065013abf5d3793ae5301e18a2398707fa2a9/samples/war-example/src/war_example/server.clj | clojure | This is an adapted service map, that can be started and stopped
From the REPL you can call server/start and server/stop on this service
start with production configuration
do not block thread that starts web server
Routes can be a function that resolve routes,
we can use this to set the routes to be reloadable
... | (ns war-example.server
for -main method in uberjar
(:require [io.pedestal.http :as server]
[io.pedestal.http.route :as route]
[war-example.service :as service]))
(defonce runnable-service (server/create-server service/service))
(defn run-dev
"The entry-point for 'lein run-dev'"
[& args... |
64d3f0baa925f0daac982d1d313fe88dd2073b34d6d4fe8e92421365ee4e42a9 | RoadRunnr/ezmq | ezmq_sup.erl | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
-module(ezmq_sup).
-behaviour(supervisor).
%% API
-export([start_link/0]).
%% Supervisor callbacks
-export([init/1]).
%% Helper macro for d... | null | https://raw.githubusercontent.com/RoadRunnr/ezmq/79d10e8b2cb53d35b3371450267afe1f3f5f31f7/src/ezmq_sup.erl | erlang | API
Supervisor callbacks
Helper macro for declaring children of supervisor
===================================================================
API functions
===================================================================
===================================================================
Supervisor callback... | 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 /.
-module(ezmq_sup).
-behaviour(supervisor).
-export([start_link/0]).
-export([init/1]).
-define(CHILD(I, Type), {I, {I, start_link, []}, per... |
0f69a9c7a2e571a23c0272f15b690b6d4d7c720e75a6e9c186c672f909bbb8d6 | korya/efuns | bench.ml | let _ =
let limit = 3000 in
let matrice = Array.init limit (fun i ->
Array.create limit 0)
in
for i = 0 to limit - 1 do
matrice.(i).(i) <- 1
done;
for i = 0 to limit - 1 do
for j = 0 to limit - 1 do
matrice.(i).(j) <- matrice.(i).(j) + 1
done
done;
let c = ref 0 in
for i = 0 ... | null | https://raw.githubusercontent.com/korya/efuns/78b21d9dff45b7eec764c63132c7a564f5367c30/inliner/tests/bench.ml | ocaml | let _ =
let limit = 3000 in
let matrice = Array.init limit (fun i ->
Array.create limit 0)
in
for i = 0 to limit - 1 do
matrice.(i).(i) <- 1
done;
for i = 0 to limit - 1 do
for j = 0 to limit - 1 do
matrice.(i).(j) <- matrice.(i).(j) + 1
done
done;
let c = ref 0 in
for i = 0 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.