_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 |
|---|---|---|---|---|---|---|---|---|
2ffbbc56308ea69e0170c2af000dd10a68f99bcb2707947af30c3a6304cbc2e9 | nomasystems/nuid | nuid.erl | Copyright 2022 Nomasystems , S.L.
%%
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
distri... | null | https://raw.githubusercontent.com/nomasystems/nuid/7aa246ab75f510dba562aadcc30a7f2553bf96ee/src/nuid.erl | erlang |
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing perm... | Copyright 2022 Nomasystems , S.L.
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(nuid).
-include_lib("nuid/include/nuid.hrl").
RFC 4122
-export([uuid1/0, uuid3/2, uuid4/0, uuid5/2]).
-export([uuid6/0, uuid7/0]).... |
e99a16847dbd515c2bb75c167e9a0d1d9800aef7b1b68938d81d80eecc6de74f | patrikja/autosar | ARComp.hs |
Copyright ( c ) 2014 - 2015 , , , ,
and
All rights reserved .
Redistribution and use in source and binary forms , with or without
modification , are permitted provided that the following conditions are met :
* Redistributions of source code must retain the above copyr... | null | https://raw.githubusercontent.com/patrikja/autosar/2b8d3a22eb99812dca645a1c3c18ce18fbf6d539/oldARSim/ARComp.hs | haskell | # LANGUAGE RankNTypes #
# LANGUAGE GADTs #
# LANGUAGE QuasiQuotes #
----------
----------
toExpr' :: (b ~ Internal a) => a -> f b -> Expr (Internal a)
------------------
C code generation
------------------
generate binds in normal form. I include thes case anyway for completeness.
error "exp... |
Copyright ( c ) 2014 - 2015 , , , ,
and
All rights reserved .
Redistribution and use in source and binary forms , with or without
modification , are permitted provided that the following conditions are met :
* Redistributions of source code must retain the above copyr... |
6fe9901d49fffab8de95e573a5896c4d45ed9b4f02dde8e22b908804ef645056 | rrnewton/WaveScript | iu-match.scm | ":";exec snow -- "$0" "$@"
;;;; This is a reimplementation of a subset of the functionality
provided by the IU pattern matching facility ( match.ss )
-Ryan Newton [ 2006/2007 ]
;; [2007.03.04]
;; This package passes its simple tests under:
scm , chez , mzscheme , guile , gauche , stklos , bigloo , ... | null | https://raw.githubusercontent.com/rrnewton/WaveScript/1c9eff60970aefd2177d53723383b533ce370a6e/src/experimental/iu-match/snow/iu-match.scm | scheme | exec snow -- "$0" "$@"
This is a reimplementation of a subset of the functionality
[2007.03.04]
This package passes its simple tests under:
chicken -- supports define-syntax, but can't handle the macros in match.r5rs
gambit -- the iu-match package loads, but trying to require it from another package caus... |
provided by the IU pattern matching facility ( match.ss )
-Ryan Newton [ 2006/2007 ]
scm , chez , mzscheme , guile , gauche , stklos , bigloo , scheme48 , larceny
mitscheme -- Runs into some unknown problem with trying to apply 3 .
(package* iu-match/v0.0.6
(provide:
)
(maintainer: "Ryan Newton <rya... |
0a91f6874e1472ffebd839c0d3b7c592b702e49f1dcffe54ad1ed092a8ec50c1 | spwhitton/consfigurator | gnupg.lisp | ;;; Consfigurator -- Lisp declarative configuration management system
Copyright ( C ) 2021 < >
;;; This file 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 , or ( at your option )
;... | null | https://raw.githubusercontent.com/spwhitton/consfigurator/b378e1c2af82f4da3a1a129adebb646c455f2e1c/src/property/gnupg.lisp | lisp | Consfigurator -- Lisp declarative configuration management system
This file is free software; you can redistribute it and/or modify
either version 3 , or ( at your option )
any later version.
This file is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty o... |
Copyright ( C ) 2021 < >
it under the terms of the GNU General Public License as published by
You should have received a copy of the GNU General Public License
(in-package :consfigurator.property.gnupg)
(named-readtables:in-readtable :consfigurator)
(defprop %public-key-imported :posix (fingerprint)
... |
0e844878f72e8bbb3a9bbbb67ae3e2076f189bf3b9dc9f7aa641451360f47cfe | jacekschae/learn-reitit-course-files | handlers.clj | (ns cheffy.recipe.handlers
(:require [cheffy.recipe.db :as recipe-db]
[ring.util.response :as rr]
[cheffy.responses :as responses])
(:import (java.util UUID)))
(defn list-all-recipes
[db]
(fn [request]
(let [uid "auth0|5ef440986e8fbb001355fd9c"
recipes (recipe-db/find-all-... | null | https://raw.githubusercontent.com/jacekschae/learn-reitit-course-files/c13a8eb622a371ad719d3d9023f1b4eff9392e4c/increments/23-snake-kebab/src/cheffy/recipe/handlers.clj | clojure | (ns cheffy.recipe.handlers
(:require [cheffy.recipe.db :as recipe-db]
[ring.util.response :as rr]
[cheffy.responses :as responses])
(:import (java.util UUID)))
(defn list-all-recipes
[db]
(fn [request]
(let [uid "auth0|5ef440986e8fbb001355fd9c"
recipes (recipe-db/find-all-... | |
293aa593aae0f9c041af950285e766f029490a3f9992c200dc969857841f6d04 | manuel-serrano/bigloo | regset.scm | ;*=====================================================================*/
* ... /prgm / project / bigloo / / comptime / SawMill / regset.scm * /
;* ------------------------------------------------------------- */
* Author : * /
* Creation : T... | null | https://raw.githubusercontent.com/manuel-serrano/bigloo/1ae5b060fcfd05ad33440765b45add3a26ced5b4/comptime/SawMill/regset.scm | scheme | *=====================================================================*/
* ------------------------------------------------------------- */
* ------------------------------------------------------------- */
* Register sets for regiter allocation */
*===========================... | * ... /prgm / project / bigloo / / comptime / SawMill / regset.scm * /
* Author : * /
* Creation : Thu Jun 16 15:37:03 2005 * /
* Last change : Thu Jun 30 19:26:07 2022 ( serrano ) * /
* Copyright... |
e03a757e31de79d8f09672448896bf46b1b26d85a699b8386f37eff277c88d3e | cognesence/matcher-starter | core.clj | (ns matcher-starter.core
(:require [org.clojars.cognesence.breadth-search.core :refer :all]
[org.clojars.cognesence.matcher.core :refer :all]
[org.clojars.cognesence.ops-search.core :refer :all]))
(defn foo
"I don't do a whole lot."
[x]
(println x "Hello, World!"))
| null | https://raw.githubusercontent.com/cognesence/matcher-starter/2030dde1a35ecd1d59ec8e3a23a459386b30e923/src/matcher_starter/core.clj | clojure | (ns matcher-starter.core
(:require [org.clojars.cognesence.breadth-search.core :refer :all]
[org.clojars.cognesence.matcher.core :refer :all]
[org.clojars.cognesence.ops-search.core :refer :all]))
(defn foo
"I don't do a whole lot."
[x]
(println x "Hello, World!"))
| |
3d0ad20fd921e072cf1e6ae2a4bf723be4a2492ac2cc48bf7b315e8a3cff38b7 | Holmusk/servant-hmac-auth | Crypto.hs | # LANGUAGE AllowAmbiguousTypes #
-- | Crypto primitives for hmac signing.
module Servant.Auth.Hmac.Crypto (
-- * Crypto primitives
SecretKey (..),
Signature (..),
sign,
signSHA256,
-- * Request signing
RequestPayload (..),
requestSignature,
verifySignatureHmac,
whitelistHeaders... | null | https://raw.githubusercontent.com/Holmusk/servant-hmac-auth/57f8b71413d7fc3f38e8a4b3958ae6c2526cea11/src/Servant/Auth/Hmac/Crypto.hs | haskell | | Crypto primitives for hmac signing.
* Crypto primitives
* Request signing
* Internals
| The wraper for the secret key.
| Hashed message used as the signature. Encoded in Base64.
| Compute the hashed message using the supplied hashing function. And then
encode the result in the Base64 encoding.
| Secret key t... | # LANGUAGE AllowAmbiguousTypes #
module Servant.Auth.Hmac.Crypto (
SecretKey (..),
Signature (..),
sign,
signSHA256,
RequestPayload (..),
requestSignature,
verifySignatureHmac,
whitelistHeaders,
keepWhitelistedHeaders,
authHeaderName,
) where
import Crypto.Hash (hash)
import ... |
7520c863da8c916ddcae21e5562e50dcb5b4b0c804810c62c1660b04d0bcfa13 | andrewvc/engulf | markov_requests.clj | (ns engulf.formulas.markov-requests
"Support for generating markov chains of requests."
;; TODO: This file's a bit of a messy in terms of organization and naming
(:use [clojure.string :only [lower-case]]
[clojure.walk :only [keywordize-keys]])
(:require [clojure.string :as string]
[clojure.t... | null | https://raw.githubusercontent.com/andrewvc/engulf/31c71c1e0b304a6c99189d0448105299ef05619c/src/engulf/formulas/markov_requests.clj | clojure | TODO: This file's a bit of a messy in terms of organization and naming
loop the end to the front to finish it
Ensure URLs are parsable | (ns engulf.formulas.markov-requests
"Support for generating markov chains of requests."
(:use [clojure.string :only [lower-case]]
[clojure.walk :only [keywordize-keys]])
(:require [clojure.string :as string]
[clojure.tools.logging :as log]
[cheshire.core :as json])
(:import [java... |
d5b9c7b5386bc201b297a89f87b4de22f5fb8a7a5b05dbf3b0de42513873747c | CLowcay/hgbc | Emulator.hs | {-# LANGUAGE BangPatterns #-}
{-# LANGUAGE MultiWayIf #-}
# LANGUAGE RecordWildCards #
module HGBC.Emulator
( Command (..),
RuntimeConfig (..),
Channel,
send,
configure,
makeEmulatorState,
run,
)
where
import Control.Concurrent (forkIO, putMVar, takeMVar)
import Control.Concurrent.STM (TCh... | null | https://raw.githubusercontent.com/CLowcay/hgbc/76a8cf91f3c3b160eadf019bc8fc75ef07601c2f/main/src/HGBC/Emulator.hs | haskell | # LANGUAGE BangPatterns #
# LANGUAGE MultiWayIf #
| A notification for the emulator thread.
| A communication channel for the emulator thread.
| Send a 'Command' to an 'Emulator'.
| Receieve a 'Command' if there is one waiting.
| Block until a 'Command' arrives.
| Configuration required to run the emulator.
| Cr... | # LANGUAGE RecordWildCards #
module HGBC.Emulator
( Command (..),
RuntimeConfig (..),
Channel,
send,
configure,
makeEmulatorState,
run,
)
where
import Control.Concurrent (forkIO, putMVar, takeMVar)
import Control.Concurrent.STM (TChan, atomically, newTChanIO, readTChan, tryReadTChan, write... |
118170c63126e6804b4850fb52f070fcca08787de738d8b0a375b20a314de971 | jship/monad-logger-aeson | MetadataYesThreadContextYes.hs | # LANGUAGE NamedFieldPuns #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE QuasiQuotes #
module TestCase.LogOtherN.MetadataYesThreadContextYes
( testCase
) where
import Control.Monad.Logger.Aeson
( (.=), Loc(..), LogLevel(..), LoggedMessage(..), Message(..), logOtherN, withThreadContext
)
import Data.Aeson.QQ.S... | null | https://raw.githubusercontent.com/jship/monad-logger-aeson/209a4f8cea11ac25721d5fe06783e4ce461c1d70/monad-logger-aeson/test-suite/TestCase/LogOtherN/MetadataYesThreadContextYes.hs | haskell | # LANGUAGE OverloadedStrings # | # LANGUAGE NamedFieldPuns #
# LANGUAGE QuasiQuotes #
module TestCase.LogOtherN.MetadataYesThreadContextYes
( testCase
) where
import Control.Monad.Logger.Aeson
( (.=), Loc(..), LogLevel(..), LoggedMessage(..), Message(..), logOtherN, withThreadContext
)
import Data.Aeson.QQ.Simple (aesonQQ)
import Data.Time (U... |
6c09f168988bf2a870a8bc258c85b3ef30d34a357f8fd47267f1f81ff6999426 | ekmett/lens | Lens.hs | # LANGUAGE FlexibleContexts #
-----------------------------------------------------------------------------
-- |
-- Module : Data.Tree.Lens
Copyright : ( C ) 2012 - 16
-- License : BSD-style (see the file LICENSE)
Maintainer : < >
-- Stability : provisional
-- Portability : MTPCs
--
-... | null | https://raw.githubusercontent.com/ekmett/lens/a26281a49e85af46821964d8f7455b82cfd4251d/src/Data/Tree/Lens.hs | haskell | ---------------------------------------------------------------------------
|
Module : Data.Tree.Lens
License : BSD-style (see the file LICENSE)
Stability : provisional
Portability : MTPCs
--------------------------------------------------------------------------
$setup
>>> import Data.Tree
| A ... | # LANGUAGE FlexibleContexts #
Copyright : ( C ) 2012 - 16
Maintainer : < >
module Data.Tree.Lens
( root
, branches
) where
import Prelude ()
import Control.Lens.Internal.Prelude
import Control.Lens
import Data.Tree
> > > import Control . Lens
> > > view root $ Node 42 [ ]
42
root ::... |
1d659a92a6878186ce25c3509c4ac245ee89ee100847e21184f3c142c456e484 | fpottier/mpri-2.4-projet-2022-2023 | NamingConventions.mli | open Linear
(* This module defines our naming conventions regarding function names. *)
We assume that there are no collisions . If at some point , because of bad
luck , two functions have the same name , then this will be detected by the
Linear type - checker and the program will be rejected . Because thi... | null | https://raw.githubusercontent.com/fpottier/mpri-2.4-projet-2022-2023/1ce08cadfb3a8ec8bc72609bc82873b29d2ce241/src/NamingConventions.mli | ocaml | This module defines our naming conventions regarding function names. | open Linear
We assume that there are no collisions . If at some point , because of bad
luck , two functions have the same name , then this will be detected by the
Linear type - checker and the program will be rejected . Because this is only
a prototype implementation , we consider this behavior accep... |
820ad899da6d1bf8149dd9a5706fafb5ce9ef5e83ad9a10978fc794b2c436195 | blindglobe/cl-blapack | features.lisp | (in-package :cl-user)
Workaround for a bug in 1.0.7.18 to 1.0.17 . ? where many nested
UNWIND - PROTECTs as produced by the macro CFFI : DEFCFUN result in
;; heap exhaustion.
;;
;; The version check needs to be in another file because the symbol in
question does n't exist in SBCL before 1.0.7.18 .
;;
;; Bugfix ... | null | https://raw.githubusercontent.com/blindglobe/cl-blapack/678f19f090275a55ad3811c3599901a0b1e66dfa/features.lisp | lisp | heap exhaustion.
The version check needs to be in another file because the symbol in
Bugfix is actually in bugfix.lisp
(pushnew :sbcl-block-gensym-bug *features*)) | (in-package :cl-user)
Workaround for a bug in 1.0.7.18 to 1.0.17 . ? where many nested
UNWIND - PROTECTs as produced by the macro CFFI : DEFCFUN result in
question does n't exist in SBCL before 1.0.7.18 .
#+sbcl
(labels ((sbcl-version->list (v)
"convert a SBCL version string like \"1.0.6.debian\" in... |
99062c54910183f4b29eee4c277c4c588a69d4e8d80c14fda9406769f1ce248c | Chris00/mesh | mesh_graphicsFC.ml | open Printf
open Bigarray
open Graphics
open Mesh
type mesh = LAYOUT t
type 'a vector = 'a vec (* global vec *)
local vec
FIXME : naive , remove it when 4.00.0 will be spread enough
let hypot x y = sqrt(x *. x +. y *. y)
* Return the smaller box ( , , ymin , ymax ) containing the [ mesh ] .
let bounding_b... | null | https://raw.githubusercontent.com/Chris00/mesh/a998a3d898b0013517a5f7f6078791b61e6a0fe2/graphics/mesh_graphicsFC.ml | ocaml | global vec
* Contains the information to transform "mesh coordinates" into the
graphics ones.
Triangles and Points
Move to the incenter of the triangle.
Draw triangle [t].
draw point
FIXME: todo
For level curves, we just draw a dot.
********************************************************************... | open Printf
open Bigarray
open Graphics
open Mesh
type mesh = LAYOUT t
local vec
FIXME : naive , remove it when 4.00.0 will be spread enough
let hypot x y = sqrt(x *. x +. y *. y)
* Return the smaller box ( , , ymin , ymax ) containing the [ mesh ] .
let bounding_box (mesh: mesh) =
let pt = mesh#point in
... |
6f78375f5054d7989af3b167a5fef981cd0d5d9d15ff8905717f27e357a1b398 | 1rre/compiler | type_enum.erl | -module(type_enum).
-export([scan/1]).
%% @doc Takes tokens & replaces appropriate "identifier" tokens with "enum literal" or "typedef name" tokens.
% It seems to handle shadowing etc. fairly well but is definitely a point of failiure
% It could also mess up the input pretty badly on erronous imputs but is... | null | https://raw.githubusercontent.com/1rre/compiler/40c3357ba46e1e388c6674ffb66122b9117e1b18/src/type_enum.erl | erlang | @doc Takes tokens & replaces appropriate "identifier" tokens with "enum literal" or "typedef name" tokens.
It seems to handle shadowing etc. fairly well but is definitely a point of failiure
It could also mess up the input pretty badly on erronous imputs but is that really an issue tbh?
Arity 1 function... | -module(type_enum).
-export([scan/1]).
scan(Tokens) -> scan(Tokens, [], []).
scan([{'{', Line} | Tokens], Types, Enums) ->
{Adj, Rest} = scan(Tokens, Types, Enums),
{A0, R0} = scan(Rest, Types, Enums),
{[{'{', Line} | Adj ++ A0], R0};
scan([{typedef, Line} | Tokens], Types, Enums) ->
{Adj, Name, Rest} = fin... |
a148a6ea689af8180f45b8b7e15e92b4d4b2bdfe4e1f0f39ddc9191091df7ba4 | 5HT/ant | Type1.ml |
(* decoder *)
type decoder =
{
d_stream : IO.istream;
d_remainder : mutable int
};
value make_decoder stream =
{
d_stream = (stream :> IO.istream);
d_remainder = 55665
};
value decode_byte decoder byte = do
{
let x = (byte lxor (decoder.d_remainder lsr 8)) land 0xff;
decoder.d_remainder := ((byte... | null | https://raw.githubusercontent.com/5HT/ant/6acf51f4c4ebcc06c52c595776e0293cfa2f1da4/Runtime/Type1.ml | ocaml | decoder
encoder |
type decoder =
{
d_stream : IO.istream;
d_remainder : mutable int
};
value make_decoder stream =
{
d_stream = (stream :> IO.istream);
d_remainder = 55665
};
value decode_byte decoder byte = do
{
let x = (byte lxor (decoder.d_remainder lsr 8)) land 0xff;
decoder.d_remainder := ((byte + decoder.d_r... |
6a008d748ea65a21c90022b7e8d67fde5bb55ce6b00a2ca8076163679e7bf2ca | titola/incudine | dsp-from-dsp.lisp | (in-package :incudine-tests)
(dsp! dsp-from-dsp-1 () (out .2))
(dsp! dsp-from-dsp-2 ()
(with ((node nil)
(t0 (* *sample-rate* 2))
(t1 (* t0 2))
(uptime +sample-zero+)
(to-free t))
(declare (type (or node null) node) (type sample t0 t1 uptime)
(boolean to-free))
... | null | https://raw.githubusercontent.com/titola/incudine/325174a54a540f4daa67bcbb29780073c35b7b80/tests/vug/dsp-from-dsp.lisp | lisp | (in-package :incudine-tests)
(dsp! dsp-from-dsp-1 () (out .2))
(dsp! dsp-from-dsp-2 ()
(with ((node nil)
(t0 (* *sample-rate* 2))
(t1 (* t0 2))
(uptime +sample-zero+)
(to-free t))
(declare (type (or node null) node) (type sample t0 t1 uptime)
(boolean to-free))
... | |
44e45b3f989a636303b5644fb9da2c5d4346eaad7aa99e0aaf51ac9103044657 | kolmodin/spdy | SPDY.hs | {-# LANGUAGE RecordWildCards, OverloadedStrings #-}
module Network.SPDY where
import Data.Binary
import Data.Binary.Get
import Data.Binary.Put
import Data.Binary.Bits
import Data.Binary.Bits.Get
import Data.Binary.Bits.Put
import Data.Conduit hiding (Done)
import Control.Monad.IO.Class (liftIO)
import Network.SPDY.... | null | https://raw.githubusercontent.com/kolmodin/spdy/e81cb708695e2f08426a2fe8f2dc30de89e7a6db/Network/SPDY.hs | haskell | # LANGUAGE RecordWildCards, OverloadedStrings #
TODO: remove all knowledge of this stream. empty send buffer. | module Network.SPDY where
import Data.Binary
import Data.Binary.Get
import Data.Binary.Put
import Data.Binary.Bits
import Data.Binary.Bits.Get
import Data.Binary.Bits.Put
import Data.Conduit hiding (Done)
import Control.Monad.IO.Class (liftIO)
import Network.SPDY.Frame
Also IsString instance
import qualified Dat... |
d5368268353d9a8b2f9e6f86af5f30bb184a198f17d676633823a3797f51323b | SjVer/Som-Lang | error.ml | let f = Util.f
comments after variants for gen_codes_ml.py
Lexing errors
type lexing_error =
| Unexpected_character of string
| Illegal_escape of char (*+sequence*)
| Unterminated_string
| Invalid_literal of string
| Invalid_builtin_type of string
let get_lexing_error_msg = function
| Unexpected_cha... | null | https://raw.githubusercontent.com/SjVer/Som-Lang/f3bde1bc729a8dcde025e52f27c3263276c65440/somc/lib/report/error.ml | ocaml | +sequence
Syntax errors
+token
+token
+token
+syntax error
Type errors
+a different type
+type
+symbol
-module has no symbol
-cannot use private symbol
+non-module symbol
+type
Other errors
+file
-cannot import directory
+file
+symbol
+error code
+optimization level
Types | let f = Util.f
comments after variants for gen_codes_ml.py
Lexing errors
type lexing_error =
| Unexpected_character of string
| Unterminated_string
| Invalid_literal of string
| Invalid_builtin_type of string
let get_lexing_error_msg = function
| Unexpected_character w -> f "unexpected character '%s'... |
dba800ff5aee11b3db716e99f4319b42a6e93442c35ac9cb9915b62a60c5da08 | WorksHub/client | components.cljc | (ns wh.blogs.learn.components
(:require [re-frame.core :refer [dispatch]]
[wh.blogs.like :as blogs-like]
[wh.common.url :as url]
[wh.components.card-actions.components :as card-actions]
[wh.components.common :as components-common]
[wh.components.icons :as ic... | null | https://raw.githubusercontent.com/WorksHub/client/029de718b1bf051406e30d8e65bfb27213164944/common-pages/src/wh/blogs/learn/components.cljc | clojure | (ns wh.blogs.learn.components
(:require [re-frame.core :refer [dispatch]]
[wh.blogs.like :as blogs-like]
[wh.common.url :as url]
[wh.components.card-actions.components :as card-actions]
[wh.components.common :as components-common]
[wh.components.icons :as ic... | |
d489f7b56009a65c1eff3cffcefc953b60f0722c1d9c8036670a62f35c7917c2 | jellelicht/guix | busybox.scm | ;;; GNU Guix --- Functional package management for GNU
Copyright © 2014 < >
;;;
;;; This file is part of GNU Guix.
;;;
GNU is free software ; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 3 of the Li... | null | https://raw.githubusercontent.com/jellelicht/guix/83cfc9414fca3ab57c949e18c1ceb375a179b59c/gnu/packages/busybox.scm | scheme | GNU Guix --- Functional package management for GNU
This file is part of GNU Guix.
you can redistribute it and/or modify it
either version 3 of the License , or ( at
your option) any later version.
GNU Guix is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied wa... | Copyright © 2014 < >
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 (gnu packages busybox)
#:use-module (guix licenses)
#:use-module (guix packages)
#:use-modu... |
0b5ba89c31a765e4bf4078084b54a933364f945beb12742b39746023e94fc916 | alexandergunnarson/quantum | debug.cljc | (ns quantum.untyped.core.meta.debug
(:require
#?@(:clj
[[debugger.core]])
[clojure.string :as str]
[fipp.edn]
[taoensso.timbre]
[quantum.untyped.core.core :as ucore]))
(ucore/log-this-ns)
;; ===== Breakpointing ===== ;;
(defonce *breakpoint-types (atom #{:user}))
#?(:clj
(defmacro br... | null | https://raw.githubusercontent.com/alexandergunnarson/quantum/0c655af439734709566110949f9f2f482e468509/src-untyped/quantum/untyped/core/meta/debug.cljc | clojure | ===== Breakpointing ===== ;;
===== Error tracing ===== ;;
TODO Different browsers have different
implementations of stack traces | (ns quantum.untyped.core.meta.debug
(:require
#?@(:clj
[[debugger.core]])
[clojure.string :as str]
[fipp.edn]
[taoensso.timbre]
[quantum.untyped.core.core :as ucore]))
(ucore/log-this-ns)
(defonce *breakpoint-types (atom #{:user}))
#?(:clj
(defmacro break
"Defines a breakpoint.
... |
d4c3a1528a94f8e5fe544940e961d391e0367da6ab00f497839727c80756e1fb | Motiva-AI/stepwise | reloaded.clj | (ns stepwise.reloaded
(:require [stepwise.client :as client]
[stepwise.core :as core]
[stepwise.activities :as activities]
[clojure.set :as sets]
[stepwise.arns :as arns])
(:import (java.util UUID)))
(defn machine-name->snapshot [machine-name]
(str (when-let [mns (... | null | https://raw.githubusercontent.com/Motiva-AI/stepwise/e5c9b6c22b9573f8cd49dc53151e27c7dd94bbec/src/stepwise/reloaded.clj | clojure | (ns stepwise.reloaded
(:require [stepwise.client :as client]
[stepwise.core :as core]
[stepwise.activities :as activities]
[clojure.set :as sets]
[stepwise.arns :as arns])
(:import (java.util UUID)))
(defn machine-name->snapshot [machine-name]
(str (when-let [mns (... | |
d84fcf3ef6bfaa66fe0728053688c43a1d60b9585933a7bcd94d0a89e471039d | SKA-ScienceDataProcessor/RC | FFT.hs | # LANGUAGE DataKinds #
module Kernel.FFT where
import Flow.Builder
import Flow.Halide
import Kernel.Data
For FFI
import Data.Vector.HFixed.Class ()
import Flow.Halide.Types ()
ifftKern :: GridPar -> UVDom -> Flow UVGrid -> Kernel Image
ifftKern gp uvdom = halideKernel1 "ifftKern" (uvgRepr uvdom) (facetRepr gp) k... | null | https://raw.githubusercontent.com/SKA-ScienceDataProcessor/RC/1b5e25baf9204a9f7ef40ed8ee94a86cc6c674af/MS5/programs/Kernel/FFT.hs | haskell | # LANGUAGE DataKinds #
module Kernel.FFT where
import Flow.Builder
import Flow.Halide
import Kernel.Data
For FFI
import Data.Vector.HFixed.Class ()
import Flow.Halide.Types ()
ifftKern :: GridPar -> UVDom -> Flow UVGrid -> Kernel Image
ifftKern gp uvdom = halideKernel1 "ifftKern" (uvgRepr uvdom) (facetRepr gp) k... | |
775a46cba73b7800f6b08adaf680d4896b17bb70fae586c18fc1810dad31bb0d | scheme/edwin48 | load.scm | (user)
(translate "=base" "..")
(config '(load "=base/config-macros.scm"))
(config '(load "=base/edwin48/srfi-packages.scm"
"=base/edwin48/scsh/packages.scm"))
(config '(load "=base/terminfo/interfaces.scm"
"=base/terminfo/scsh-packages.scm"))
(config '(load "=base/soosy/interfaces.sc... | null | https://raw.githubusercontent.com/scheme/edwin48/fbe3c7ca14f1418eafddebd35f78ad12e42ea851/tests/load.scm | scheme | (user)
(translate "=base" "..")
(config '(load "=base/config-macros.scm"))
(config '(load "=base/edwin48/srfi-packages.scm"
"=base/edwin48/scsh/packages.scm"))
(config '(load "=base/terminfo/interfaces.scm"
"=base/terminfo/scsh-packages.scm"))
(config '(load "=base/soosy/interfaces.sc... | |
972dd913be6ffd03f6885baf34cc67fbfbabb975cc98444d9744d6fbfcec99e3 | gregnwosu/haskellbook | chap11decons.hs | module Deconstruct where
import Data.Char
newtype Name = Name String deriving Show
newtype Acres = Acres Int deriving Show
data FarmerType = DairyFarmer | WheatFarmer | SoybeanFarmer deriving Show
data Farmer = Farmer Name Acres FarmerType deriving Show
isDairyFarmer :: Farmer -> Bool
isDairyFarmer (Farmer _ _ Dai... | null | https://raw.githubusercontent.com/gregnwosu/haskellbook/b21fb6772e58f07cff334d9c551d0477ec856897/src/chap11decons.hs | haskell | Yes = False
No = False
Both = False
Yes = True
No = False
Both = False
Yes = False
No = True
Both = False
Yes = True
No = True
Both = False
Yes = False
No = False
Both = True
Yes = True
No = False
Both = True
Yes = False
No = True
Both = True
Yes = True
No = True
Both = True | module Deconstruct where
import Data.Char
newtype Name = Name String deriving Show
newtype Acres = Acres Int deriving Show
data FarmerType = DairyFarmer | WheatFarmer | SoybeanFarmer deriving Show
data Farmer = Farmer Name Acres FarmerType deriving Show
isDairyFarmer :: Farmer -> Bool
isDairyFarmer (Farmer _ _ Dai... |
c64aada0f8db26c30e1cb88e79adc52de8daa16437184bef1019c272befc708a | tfausak/patrol | ThreadsSpec.hs | # LANGUAGE QuasiQuotes #
module Patrol.Type.ThreadsSpec where
import qualified Data.Aeson as Aeson
import qualified Data.Aeson.QQ.Simple as Aeson
import qualified Patrol.Type.Thread as Thread
import qualified Patrol.Type.Threads as Threads
import qualified Test.Hspec as Hspec
spec :: Hspec.Spec
spec = Hspec.describe... | null | https://raw.githubusercontent.com/tfausak/patrol/1cae55b3840b328cda7de85ea424333fcab434cb/source/test-suite/Patrol/Type/ThreadsSpec.hs | haskell | # LANGUAGE QuasiQuotes #
module Patrol.Type.ThreadsSpec where
import qualified Data.Aeson as Aeson
import qualified Data.Aeson.QQ.Simple as Aeson
import qualified Patrol.Type.Thread as Thread
import qualified Patrol.Type.Threads as Threads
import qualified Test.Hspec as Hspec
spec :: Hspec.Spec
spec = Hspec.describe... | |
ed806501d8607232defe3f5e41973e3c200c68403383ec84439cd3ec802369d7 | racket/web-server | model-3.rkt | #lang racket/base
(require racket/list
db)
;; A blog is a (blog db)
;; where db is an sqlite connection
(struct blog (db))
;; A post is a (post blog id)
;; where blog is a blog and id is an integer?
(struct post (blog id))
;; initialize-blog! : path? -> blog?
;; Sets up a blog database (if it doesn't exist)... | null | https://raw.githubusercontent.com/racket/web-server/f718800b5b3f407f7935adf85dfa663c4bba1651/web-server-doc/web-server/scribblings/tutorial/examples/model-3.rkt | racket | A blog is a (blog db)
where db is an sqlite connection
A post is a (post blog id)
where blog is a blog and id is an integer?
initialize-blog! : path? -> blog?
Sets up a blog database (if it doesn't exist)
Queries for the post ids
post-title : post -> string?
Queries for the title
post-body : post -> string?
... | #lang racket/base
(require racket/list
db)
(struct blog (db))
(struct post (blog id))
(define (initialize-blog! home)
(define db (sqlite3-connect #:database home #:mode 'create))
(define the-blog (blog db))
(unless (table-exists? db "posts")
(query-exec db
(string-append
"CREATE TABLE p... |
d2a318e2caa1a69b69d6ef764ec178854d97928483e80da17df4b39f885a80db | abailly/hevents | Codec.hs | module Hevents.Codec where
import Data.Aeson
import Data.ByteString (ByteString)
import qualified Data.ByteString.Base64 as B64
import Data.Char (isHexDigit)
import Data.List as List
import Data.String
import Data.Text ... | null | https://raw.githubusercontent.com/abailly/hevents/d38789bf5ae787c35d496b72fe47419d965032de/src/Hevents/Codec.hs | haskell | not quite correct | module Hevents.Codec where
import Data.Aeson
import Data.ByteString (ByteString)
import qualified Data.ByteString.Base64 as B64
import Data.Char (isHexDigit)
import Data.List as List
import Data.String
import Data.Text ... |
22fa57789f9ca27c2e3395c65dd48549101eef24308ef5b283d7e41f9447b9c8 | tweag/ormolu | no-annotation.hs | type family F a where
F Int = Double
F Bool = Char
F a = String
| null | https://raw.githubusercontent.com/tweag/ormolu/34bdf62429768f24b70d0f8ba7730fc4d8ae73ba/data/examples/declaration/type-families/closed-type-family/no-annotation.hs | haskell | type family F a where
F Int = Double
F Bool = Char
F a = String
| |
a72794ca8bd90e5c95a1bc6245fe5e63b78b588ceca3c0c0c570e5e9695b6882 | dmitryvk/sbcl-win32-threads | memory.lisp | ;;;; the PPC definitions of some general purpose memory reference VOPs
;;;; inherited by basic memory reference operations
This software is part of the SBCL system . See the README file for
;;;; more information.
;;;;
This software is derived from the CMU CL system , which was
written at Carnegie Mellon Universi... | null | https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/src/compiler/ppc/memory.lisp | lisp | the PPC definitions of some general purpose memory reference VOPs
inherited by basic memory reference operations
more information.
public domain. The software is in the public domain and is
provided with absolutely no warranty. See the COPYING and CREDITS
files for more information.
offset is constant at comp... |
This software is part of the SBCL system . See the README file for
This software is derived from the CMU CL system , which was
written at Carnegie Mellon University and released into the
(in-package "SB!VM")
Cell - Ref and Cell - Set are used to define VOPs like CAR , where the offset to
be read or writte... |
0f8b60bb5e76fedce2bfe9f4e66268f5a1cbbccce80d6d4963b3ef97c6cd969c | tali713/mit-scheme | stack-sample.scm | ;;; -*- Mode: Scheme -*-
Copyright ( c ) 2009 , 2010 , .
;;;
;;; 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 version.
... | null | https://raw.githubusercontent.com/tali713/mit-scheme/6c703a838081fe2418bc0dbfe003bdb429d8c479/src/runtime/stack-sample.scm | scheme | -*- Mode: Scheme -*-
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, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ... |
Copyright ( c ) 2009 , 2010 , .
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation , either version 3 of the
You should have received a copy of the GNU General Public License
(declare (usual-integrations))
and records two numbers for each interrupt... |
44d7566b2cdcc82190087d8784de644c71749665eae13ed5cde4d09c5d179e46 | statusfailed/cartographer-string-diagrammatic-reasoning | View.hs | {-# LANGUAGE OverloadedStrings #-}
# LANGUAGE OverloadedLists #
module Cartographer.Editor.View where
import Miso
import qualified Miso as Miso
import qualified Miso.Svg as Svg
import Miso.String (ms)
import Data.String
import qualified Data.Hypergraph as Hypergraph
import Cartographer.Layout (Layout(..))
import ... | null | https://raw.githubusercontent.com/statusfailed/cartographer-string-diagrammatic-reasoning/7559db3f6de17dfa2dc13a6bf29f95c9cebcf7c4/cartographer-editor/src/Cartographer/Editor/View.hs | haskell | # LANGUAGE OverloadedStrings #
TODO: add is-focused class if the button is in its corresponding
, button_ [ class_ "button is-primary", onClick StartMoveGenerator ]
[ "move" ]
| Show the generator bar - a toolbar appearing above the viewer
this consists of a number of generator buttons, which can be placed in... | # LANGUAGE OverloadedLists #
module Cartographer.Editor.View where
import Miso
import qualified Miso as Miso
import qualified Miso.Svg as Svg
import Miso.String (ms)
import Data.String
import qualified Data.Hypergraph as Hypergraph
import Cartographer.Layout (Layout(..))
import qualified Cartographer.Layout as La... |
e760fdf6dc9ac7ecd50ecca131f398ba9739d6e6b3ea569f5b70e01272ecdeb0 | gethop-dev/hop-cli | config_test.clj | This Source Code Form is subject to the terms of the MIT license .
If a copy of the MIT license was not distributed with this
file , You can obtain one at
{{=<< >>=}}
(ns <<project.name>>.api.config-test
(:require [clojure.test :refer :all]
[<<project.name>>.test-utils :as util]
[muunt... | null | https://raw.githubusercontent.com/gethop-dev/hop-cli/c7b848915ff268aa41ff9a61a62c614f58ecbeb9/resources/bootstrap/profiles/core/app/test/%7B%7Bproject.files-name%7D%7D/api/config_test.clj | clojure | This Source Code Form is subject to the terms of the MIT license .
If a copy of the MIT license was not distributed with this
file , You can obtain one at
{{=<< >>=}}
(ns <<project.name>>.api.config-test
(:require [clojure.test :refer :all]
[<<project.name>>.test-utils :as util]
[muunt... | |
7d28d3bd29cf27271ee66628cbbea304ffe2bd2f124199a28757a71772546dd6 | racket/slideshow | info.rkt | #lang info
(define tools (list '("tool.rkt")))
(define tool-names (list "Slideshow"))
(define tool-icons (list (list "slideshow.png" "slideshow")))
| null | https://raw.githubusercontent.com/racket/slideshow/4588507e83e9aa859c6841e655b98417d46987e6/slideshow-plugin/slideshow/info.rkt | racket | #lang info
(define tools (list '("tool.rkt")))
(define tool-names (list "Slideshow"))
(define tool-icons (list (list "slideshow.png" "slideshow")))
| |
4e27acc12c319c1086910185f020baa28e3abb75df13662f4143f15948e1dafd | fxfactorial/ocaml-nodejs | nodejs_high_level_lwt.ml |
module Fs = struct
let read_file filename =
let t, w = Lwt.task () in
Nodejs_high_level.Fs.read_file_async
filename
(fun err content -> Lwt.wakeup w (err, content));
t
end
| null | https://raw.githubusercontent.com/fxfactorial/ocaml-nodejs/392850b2983b6a11c1e103dfee20e2d679349f2b/src/higher_level_lwt/nodejs_high_level_lwt.ml | ocaml |
module Fs = struct
let read_file filename =
let t, w = Lwt.task () in
Nodejs_high_level.Fs.read_file_async
filename
(fun err content -> Lwt.wakeup w (err, content));
t
end
| |
34263e8c4f85e7f777ce27799d1d2e2b5e8136b42ab261c8ea7567c8ea58891f | htm-community/comportex | user.clj | (ns user
(:require org.nfrac.comportex.repl))
(org.nfrac.comportex.repl/truncate-large-data-structures)
| null | https://raw.githubusercontent.com/htm-community/comportex/cd318492cf2e43cb7f25238b116b90b8195ec5aa/dev/user.clj | clojure | (ns user
(:require org.nfrac.comportex.repl))
(org.nfrac.comportex.repl/truncate-large-data-structures)
| |
d8b74d75953e24a45a0ba7957d782403f939077af8a0527dc65a12070fd51a68 | yallop/metaocaml-letrec | custom_eq.ml |
* Copyright ( c ) 2022 .
*
* This file is distributed under the terms of the MIT License .
* See the file LICENSE for details .
* Copyright (c) 2022 Jeremy Yallop.
*
* This file is distributed under the terms of the MIT License.
* See the file LICENSE for details.
*)
(* An artificial example with... | null | https://raw.githubusercontent.com/yallop/metaocaml-letrec/69cce9dfb79815b8782ff666f283ea8a9e09491c/lib_test/custom_eq.ml | ocaml | An artificial example with an index type that doesn't support
OCaml's built-in equality (=)
functional representation of
type eo = Even | Odd |
* Copyright ( c ) 2022 .
*
* This file is distributed under the terms of the MIT License .
* See the file LICENSE for details .
* Copyright (c) 2022 Jeremy Yallop.
*
* This file is distributed under the terms of the MIT License.
* See the file LICENSE for details.
*)
type eo = { eo: 'a. 'a -> 'a... |
f43037bc6793643fbe6036cbb46fabb4b2724a80cb168ee58ee0654b3387757a | alephcloud/hs-aws-kinesis-client | Common.hs | Copyright ( c ) 2013 - 2015 PivotCloud , Inc.
--
. . Client . Common
--
-- Please feel free to contact us at with any
-- contributions, additions, or other feedback; we would love to hear from
-- you.
--
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may
-- not use this file except i... | null | https://raw.githubusercontent.com/alephcloud/hs-aws-kinesis-client/8ef77b8b7d7e9a840b1c7bd39b44861957580a1c/src/Aws/Kinesis/Client/Common.hs | haskell |
Please feel free to contact us at with any
contributions, additions, or other feedback; we would love to hear from
you.
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
WARRANTIES OR COND... | Copyright ( c ) 2013 - 2015 PivotCloud , Inc.
. . Client . Common
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may
distributed under the License is distributed on an " AS IS " BASIS , WITHOUT
# LANGUAGE FlexibleContexts #
# LANGUAGE RecordWildCards #
# LANGUAGE TypeFamilies #
# L... |
21babe5bb16bc023c03e8d36b75d72be3af9f6486f4bcf21cde1c2af7ec99f0d | dscarpetti/coll-pen | data.cljs | (ns coll-pen.demo.data)
(def api
{:functions
{'draw {:description "main function for drawing a collection"
:evaluates-to "a reagent/react component which draws the supplied collection."
:arglists '([coll] [coll opts])
:params {'coll {:type 'collection
:... | null | https://raw.githubusercontent.com/dscarpetti/coll-pen/8238a1a19ae79f08e94ec65fce51aa6ec449138f/src/coll_pen/demo/data.cljs | clojure | only define these records once to ensure `instance?` & `implements?` checks work across dynamic reloads | (ns coll-pen.demo.data)
(def api
{:functions
{'draw {:description "main function for drawing a collection"
:evaluates-to "a reagent/react component which draws the supplied collection."
:arglists '([coll] [coll opts])
:params {'coll {:type 'collection
:... |
92dee420ea935b07aae9450a515ebe15e98cfab21428e6dcb91049a65b49f977 | schell/editor | Renderer.hs | {-# LANGUAGE OverloadedStrings #-}
module Graphics.Rendering.Text.Renderer (
makeTextRenderer,
drawTextAt,
drawTextAt',
loadCharMap,
) where
import Graphics.Math
import Graphics.Rendering.Text.Character
import Graphics.Rendering.Text.Font
import Graphics.Renderin... | null | https://raw.githubusercontent.com/schell/editor/0f0d2eb67df19e8285c6aaeeeca96bff3110f68d/src/Graphics/Rendering/Text/Renderer.hs | haskell | # LANGUAGE OverloadedStrings #
Store that in our atlas. | module Graphics.Rendering.Text.Renderer (
makeTextRenderer,
drawTextAt,
drawTextAt',
loadCharMap,
) where
import Graphics.Math
import Graphics.Rendering.Text.Character
import Graphics.Rendering.Text.Font
import Graphics.Rendering.Text.Types
import Graph... |
c8ef472d8956d47a3f8c26ce847c2b24edeaac9a4005dd25a48fd1d89330bfb6 | kowainik/summoner | QuestionSpec.hs | module Test.QuestionSpec
( yesNoPromptSpec
) where
import Test.Hspec (Spec, describe, it)
import Summoner.Question (YesNoPrompt (..), mkDefaultYesNoPrompt)
yesNoPromptSpec :: Spec
yesNoPromptSpec = describe "mkDefaultYesNoPrompt works correctly" $
it "makes cabal prompt" $
yesNoPrompt (mkDe... | null | https://raw.githubusercontent.com/kowainik/summoner/0e9343880171b81e515bc7bfebe8c6156330f9f2/summoner-cli/test/Test/QuestionSpec.hs | haskell | module Test.QuestionSpec
( yesNoPromptSpec
) where
import Test.Hspec (Spec, describe, it)
import Summoner.Question (YesNoPrompt (..), mkDefaultYesNoPrompt)
yesNoPromptSpec :: Spec
yesNoPromptSpec = describe "mkDefaultYesNoPrompt works correctly" $
it "makes cabal prompt" $
yesNoPrompt (mkDe... | |
770a8a66a359665d6b234d44f8579ce59439e18e2a16fb3740b8aede9504b426 | andrenth/srsly | log_preemptive.mli | val debug : ('a, unit, string, unit) format4 -> 'a
val notice : ('a, unit, string, unit) format4 -> 'a
val info : ('a, unit, string, unit) format4 -> 'a
val warning : ('a, unit, string, unit) format4 -> 'a
val error : ('a, unit, string, unit) format4 -> 'a
| null | https://raw.githubusercontent.com/andrenth/srsly/fce92645781a6a6037512be4d35116ec53737b17/src/log_preemptive.mli | ocaml | val debug : ('a, unit, string, unit) format4 -> 'a
val notice : ('a, unit, string, unit) format4 -> 'a
val info : ('a, unit, string, unit) format4 -> 'a
val warning : ('a, unit, string, unit) format4 -> 'a
val error : ('a, unit, string, unit) format4 -> 'a
| |
43e432fc7b24d457bb75948f7c0a8db492f62505b5017e9847072b13d8ee2319 | tfeb/tfeb-lisp-hax | comment-form.lisp | ;;;; Commenting forms
;;;
Racket has # ; to comment a form . You can do this in CL with
;;; #+(or), but I thought an explicit equivalent might be interesting.
;;; This comes from an answer on stack overflow:
;;;
;;;
comment-form.lisp is copyright 2021 by me , , and may
;;; be used for any purpose whatsoever by... | null | https://raw.githubusercontent.com/tfeb/tfeb-lisp-hax/6a56b40cc90d790be4ee9ad02afe8b459e583cb8/comment-form.lisp | lisp | Commenting forms
to comment a form . You can do this in CL with
#+(or), but I thought an explicit equivalent might be interesting.
This comes from an answer on stack overflow:
be used for any purpose whatsoever by anyone. It has no warranty
whatsoever. I would appreciate acknowledgement if you use it in
an... | comment-form.lisp is copyright 2021 by me , , and may
(defpackage :org.tfeb.hax.comment-form
(:use :cl)
(:export #:make-comment-form-readtable))
(in-package :org.tfeb.hax.comment-form)
(provide :org.tfeb.hax.comment-form)
(defun make-comment-form-readtable (&key (from *readtable*) (to nil)
Make a copy of F... |
b66ab05ab390e88b6000440e559f0350647d0f2cbcbadb84e4c98a483e3a8b5d | gren-lang/compiler | Details.hs | {-# LANGUAGE OverloadedStrings #-}
# OPTIONS_GHC -Wall #
module Gren.Details
( Details (..),
BuildID,
ValidOutline (..),
Local (..),
Foreign (..),
load,
loadObjects,
loadInterfaces,
verifyInstall,
)
where
import AST.Canonical qualified as Can
import AST.Optimized qualified as Opt
i... | null | https://raw.githubusercontent.com/gren-lang/compiler/acc8db022ec39c92a20718614f7c169de2027212/builder/src/Gren/Details.hs | haskell | # LANGUAGE OverloadedStrings #
DETAILS
(1) _time is the modification time from the last time we compiled the file.
By checking EQUALITY with the current modification time, we can detect file
saves and `git checkout` of previous versions. Both need a recompile.
compiled. These may be different if a file is recomp... | # OPTIONS_GHC -Wall #
module Gren.Details
( Details (..),
BuildID,
ValidOutline (..),
Local (..),
Foreign (..),
load,
loadObjects,
loadInterfaces,
verifyInstall,
)
where
import AST.Canonical qualified as Can
import AST.Optimized qualified as Opt
import AST.Source qualified as Src
i... |
222b399a3423b82a3140f4dd1f2031df40322b20182e9954f4020bce0cf33387 | grin-compiler/grin | RegisterIntroduction.hs | # LANGUAGE LambdaCase , TupleSections , TypeApplications , RecordWildCards , DeriveFunctor #
module Transformations.Simplifying.RegisterIntroduction where
import Control.Arrow ((***), second)
import Data.Function
import Data.Map (Map)
import Data.Maybe
import Data.List (intercalate, foldl')
import qualified Data.Map a... | null | https://raw.githubusercontent.com/grin-compiler/grin/44ac2958810ecee969c8028d2d2a082d47fba51b/grin/src/Transformations/Simplifying/RegisterIntroduction.hs | haskell | (Right . (,) (tail path)) $ project e
constTagNode only | # LANGUAGE LambdaCase , TupleSections , TypeApplications , RecordWildCards , DeriveFunctor #
module Transformations.Simplifying.RegisterIntroduction where
import Control.Arrow ((***), second)
import Data.Function
import Data.Map (Map)
import Data.Maybe
import Data.List (intercalate, foldl')
import qualified Data.Map a... |
a133b250a108c44dea2f2b0f9dd2962288bfde130d0aae5b2629248abcad1070 | witan-org/witan | vector_hetero.ml | (*************************************************************************)
This file is part of Witan .
(* *)
Copyright ( C ) 2017
CEA ( Commi... | null | https://raw.githubusercontent.com/witan-org/witan/d26f9f810fc34bf44daccb91f71ad3258eb62037/src/popop_lib/vector_hetero.ml | ocaml | ***********************************************************************
alternatives)
Automatique)
... | This file is part of Witan .
Copyright ( C ) 2017
CEA ( Commissariat à l'énergie atomique et aux énergies
( Institut National de Recherche en Informatique et en
CNRS ( Centre nation... |
69094234b926623b806ab30b49d4c8d436cfd503e169fe86063ba577fde4803a | haskell-opengl/OpenGLRaw | PerformanceQuery.hs | # LANGUAGE PatternSynonyms #
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.GL.INTEL.PerformanceQuery
Copyright : ( c ) 2019
-- License : BSD3
--
Maintainer : < >
-- Stability : stable
-- Portability : portable
--
-------------... | null | https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/INTEL/PerformanceQuery.hs | haskell | ------------------------------------------------------------------------------
|
Module : Graphics.GL.INTEL.PerformanceQuery
License : BSD3
Stability : stable
Portability : portable
------------------------------------------------------------------------------
* Extension Support
* Enums
* Func... | # LANGUAGE PatternSynonyms #
Copyright : ( c ) 2019
Maintainer : < >
module Graphics.GL.INTEL.PerformanceQuery (
glGetINTELPerformanceQuery,
gl_INTEL_performance_query,
pattern GL_PERFQUERY_COUNTER_DATA_BOOL32_INTEL,
pattern GL_PERFQUERY_COUNTER_DATA_DOUBLE_INTEL,
pattern GL_PERFQUERY_COUNT... |
60ed6f966eae5949e3989d30e7e0d88b96f37a25f2ba226eb0455bf22ab0669a | dimitri-xyz/haskell-coinbase-pro | Test.hs | {-# LANGUAGE OverloadedStrings #-}
# LANGUAGE StandaloneDeriving #
module Coinbase.Exchange.Private.Test
( tests
, giveAwayOrder
, run_placeOrder
) where
import Control.Monad
import Control.Monad.IO.Class
import Control.Concurrent
import Data.IORef
import ... | null | https://raw.githubusercontent.com/dimitri-xyz/haskell-coinbase-pro/642a8282ac9f378a6dc0e88535bb50c44bcae091/test/Coinbase/Exchange/Private/Test.hs | haskell | # LANGUAGE OverloadedStrings #
must not be empty to test parser
limit order
market order
making sure this request is well formed
------------------------ BTC TRANSFER TESTS --------------------------
CAREFULL ON LIVE ENVIRONMENT!!! TRANSFERS ARE IRREVERSIBLE!!!
This test cause a "403 Forbiden" error when run in t... | # LANGUAGE StandaloneDeriving #
module Coinbase.Exchange.Private.Test
( tests
, giveAwayOrder
, run_placeOrder
) where
import Control.Monad
import Control.Monad.IO.Class
import Control.Concurrent
import Data.IORef
import Data.Maybe
import Da... |
2c2be750af13271930962df574870b167f6b55dc08e92fa0cf3d948de61f7661 | RefactoringTools/HaRe | ConstructorIn3.hs | module ConstructorIn3 where
--Any type/data constructor name declared in this module can be renamed.
--Any type variable can be renamed.
Rename tyoe variable ' a ' in BTree to ' b '
data BTree a = Empty | T a (BTree a) (BTree a)
deriving Show
buildtree :: Ord a => [a] -> BTree a
buildtree [] = Empty... | null | https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/test/testdata/Renaming/ConstructorIn3.hs | haskell | Any type/data constructor name declared in this module can be renamed.
Any type variable can be renamed. | module ConstructorIn3 where
Rename tyoe variable ' a ' in BTree to ' b '
data BTree a = Empty | T a (BTree a) (BTree a)
deriving Show
buildtree :: Ord a => [a] -> BTree a
buildtree [] = Empty
buildtree (x:xs) = insert x (buildtree xs)
insert :: Ord a => a -> BTree a -> BTree a
insert val Empty = T ... |
4b82ff80a711df1c3e45933f44b1329a03f5d69df178b39e0808695212c04e65 | boxer-project/boxer-sunrise | json-export.lisp | ;;;;
Copyright 1985 - 2022 Andrea A. diSessa and the Estate of Edward H. Lay
;;;;
Portions of this code may be copyright 1982 - 1985 Massachusetts Institute of Technology . Those portions may be
used for any purpose , including commercial ones , providing that notice of MIT copyright is retained .
... | null | https://raw.githubusercontent.com/boxer-project/boxer-sunrise/93dc8ca848a67f5fd409daf9b2859136d3b81b98/src/impexp/json-export.lisp | lisp |
+-Data--+
This file is part of the | BOXER | system
+-------+
JSON Export
draw-wid, draw-hei, draw-mode
graphics-lists
Keeping track of commas
exports
box flags
End box-flags
(format stream "")
Are... |
Copyright 1985 - 2022 Andrea A. diSessa and the Estate of Edward H. Lay
Portions of this code may be copyright 1982 - 1985 Massachusetts Institute of Technology . Those portions may be
used for any purpose , including commercial ones , providing that notice of MIT copyright is retained .
Licen... |
591cc4dc358636e8b20d36aa9edbed7bb85ea4487d7ed8fdeb80b7f7a7da7067 | ygrek/mldonkey | gpattern.ml | Copyright 2001 , 2002 , 2003 , b52_simon INRIA
This file is part of mldonkey .
mldonkey is free software ; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 2 of the License , or
( a... | null | https://raw.githubusercontent.com/ygrek/mldonkey/333868a12bb6cd25fed49391dd2c3a767741cb51/src/gtk/gpattern/gpattern.ml | ocaml | self#wlist#columns_autosize ();
connect the columns resizing to draw what could need a column width
freeze & clear reverted to show the user that
something appened if it takes too long time
freeze & clear reverted to show the user that
something appened if it takes too long time
we sort only items ... | Copyright 2001 , 2002 , 2003 , b52_simon INRIA
This file is part of mldonkey .
mldonkey is free software ; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 2 of the License , or
( a... |
752a40270d793a2f9abe4550b0d6f86644f3b96b1674b22761efe1294876c744 | input-output-hk/plutus-apps | App.hs | # LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
{-# LANGUAGE MonoLocalBinds #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE TypeApplications #
module App where
import Control.Concurrent.Async (Concurrently (Concurrently, runConcurrently))
import Control.Monad ... | null | https://raw.githubusercontent.com/input-output-hk/plutus-apps/8706e6c7c525b4973a7b6d2ed7c9d0ef9cd4ef46/plutus-pab-executables/pab-cli/App.hs | haskell | # LANGUAGE MonoLocalBinds #
# LANGUAGE NamedFieldPuns #
# LANGUAGE OverloadedStrings #
| These file names come from:
Create node base output directory
Fetch node config files depending on network and save to node output directory.
Generate base PAB configuration and modify the node and wallet
server config
... | # LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
# LANGUAGE TypeApplications #
module App where
import Control.Concurrent.Async (Concurrently (Concurrently, runConcurrently))
import Control.Monad (forM_, unless)
import Control.Monad.Freer (Eff, LastMember, Member)
import Control.Monad.Freer.Reader (R... |
b7bae76afadb14829120fab37e41befeaf3888d8b5dbcaccbd9220c5e31a2894 | marick/structural-typing | f_explanations.clj | (ns structural-typing.guts.f-explanations
(:use structural-typing.clojure.core)
(:require [structural-typing.guts.explanations :as subject]
[structural-typing.guts.exval :refer [->ExVal]]
[structural-typing.guts.compile.compile-path :refer [ALL RANGE]]
[midje.sweet :refer :all])
... | null | https://raw.githubusercontent.com/marick/structural-typing/9b44c303dcfd4a72c5b75ec7a1114687c809fba1/test/structural_typing/guts/f_explanations.clj | clojure | This is a special case because one could think that `ALL` should treat a
map as a collection of pairs. | (ns structural-typing.guts.f-explanations
(:use structural-typing.clojure.core)
(:require [structural-typing.guts.explanations :as subject]
[structural-typing.guts.exval :refer [->ExVal]]
[structural-typing.guts.compile.compile-path :refer [ALL RANGE]]
[midje.sweet :refer :all])
... |
067f53766d1cfb78ad6317ac4336bc86e72571f2fa0a262071b732a613c0a97e | DSTOQ/haskell-stellar-sdk | Extended.hs | {-# LANGUAGE DataKinds #-}
# LANGUAGE ScopedTypeVariables #
module Data.Binary.Extended
( module Data.Binary
, getEnum
, putEnum
, Padded (..)
, putVarLenByteString
, putFixLenByteString
, padding
) where
import Control.Monad (fail)
import Data.Binary
import D... | null | https://raw.githubusercontent.com/DSTOQ/haskell-stellar-sdk/82a76c2f951a2aaabdc38092fdc89044b278c53d/core/src/Data/Binary/Extended.hs | haskell | # LANGUAGE DataKinds # | # LANGUAGE ScopedTypeVariables #
module Data.Binary.Extended
( module Data.Binary
, getEnum
, putEnum
, Padded (..)
, putVarLenByteString
, putFixLenByteString
, padding
) where
import Control.Monad (fail)
import Data.Binary
import Data.Binary.Get (getWord32be)
import ... |
1bb06ea9e57ae30dea77b8d3b3ae20893e3d14cf0143fdfcc815be4ac666e805 | basho/riak_test | ts_simple_http_security_SUITE.erl | %% -------------------------------------------------------------------
%%
Copyright ( c ) 2016 Basho Technologies , Inc.
%%
This file is provided to you under the Apache License ,
%% Version 2.0 (the "License"); you may not use this file
except in compliance with the License . You may obtain
%% a copy of the Li... | null | https://raw.githubusercontent.com/basho/riak_test/8170137b283061ba94bc85bf42575021e26c929d/tests/ts_simple_http_security_SUITE.erl | erlang | -------------------------------------------------------------------
Version 2.0 (the "License"); you may not use this file
a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing,
KIND, either express or implied. See the License for the
specific language governing permissio... | Copyright ( c ) 2016 Basho Technologies , Inc.
This file is provided to you under the Apache License ,
except in compliance with the License . You may obtain
software distributed under the License is distributed on an
" AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY
-module(ts_simple_http_security_... |
e8f6f71ee8a59850e6d8e9328043c8cc37311a4808c25d5c42756189c7a29f6d | theodormoroianu/SecondYearCourses | lab13-sol_20210115191721.hs |
import Data.Char
import Data.List
prelStr strin = map toUpper strin
ioString = do
strin <- getLine
putStrLn $ "Intrare\n" ++ strin
let strout = prelStr strin
putStrLn $ "Iesire\n" ++ strout
prelNo noin = sqrt noin
ioNumber = do
noin <- readLn :: IO Double
... | null | https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/99185b0e97119135e7301c2c7be0f07ae7258006/Haskell/l/.history/lab13/lab13-sol_20210115191721.hs | haskell |
import Data.Char
import Data.List
prelStr strin = map toUpper strin
ioString = do
strin <- getLine
putStrLn $ "Intrare\n" ++ strin
let strout = prelStr strin
putStrLn $ "Iesire\n" ++ strout
prelNo noin = sqrt noin
ioNumber = do
noin <- readLn :: IO Double
... | |
da1747b163f8460b94bac453f6b898ed901105d39cfe3fc23ec6837dae086ea8 | ailisp/Graphic-Forms | gdi32.lisp | (in-package :graphic-forms.uitoolkit.system)
(eval-when (:compile-toplevel :load-toplevel :execute)
(use-package :cffi))
(load-foreign-library "gdi32.dll")
(load-foreign-library "msimg32.dll")
(defcfun
("AddFontResourceExA" add-font-resource)
INT
(filename :string)
(flags DWORD)
(reserved LPTR))
(defcfu... | null | https://raw.githubusercontent.com/ailisp/Graphic-Forms/1e0723d07e1e4e02b8ae375db8f3d65d1b444f11/src/uitoolkit/system/gdi32.lisp | lisp | VOID ** | (in-package :graphic-forms.uitoolkit.system)
(eval-when (:compile-toplevel :load-toplevel :execute)
(use-package :cffi))
(load-foreign-library "gdi32.dll")
(load-foreign-library "msimg32.dll")
(defcfun
("AddFontResourceExA" add-font-resource)
INT
(filename :string)
(flags DWORD)
(reserved LPTR))
(defcfu... |
a6a2344dcd21b489cd4d7c64c340727af9b3182d6c7344274efce71373b3324e | OCamlPro/liquidity | blake2.ml | (****************************************************************************)
(* Liquidity *)
(* *)
Copyright ( C ) 2017 - 2020 OCamlPro SAS
(* ... | null | https://raw.githubusercontent.com/OCamlPro/liquidity/3578de34cf751f54b9e4c001a95625d2041b2962/libs/deps-dune-network/js/blake2.ml | ocaml | **************************************************************************
Liquidity
... | Copyright ( C ) 2017 - 2020 OCamlPro SAS
it under the terms of the GNU General Public License as published by
... |
93a46aae7a673c1d28afe098c5ec5af6c86a422d01f1ad64ca7b8083ba4be62a | input-output-hk/marlowe-cardano | Api.hs | # LANGUAGE DataKinds #
{-# LANGUAGE DeriveAnyClass #-}
# LANGUAGE DuplicateRecordFields #
{-# LANGUAGE EmptyDataDeriving #-}
# LANGUAGE FlexibleInstances #
{-# LANGUAGE GADTs #-}
# LANGUAGE TypeFamilies #
module Language.Marlowe.Runtime.Transaction.Api
( ApplyInputsConstraintsBuildupError(..)
, ApplyInputsError(..... | null | https://raw.githubusercontent.com/input-output-hk/marlowe-cardano/bc9a0325f13b886e90ea05196ffb70a46c2ab095/marlowe-runtime/tx-api/Language/Marlowe/Runtime/Transaction/Api.hs | haskell | # LANGUAGE DeriveAnyClass #
# LANGUAGE EmptyDataDeriving #
# LANGUAGE GADTs #
CIP-25 metadata
FIXME: Validate the metadata format
| Non empty mint request.
| The low-level runtime API for building and submitting transactions.
resulting, unsigned transaction can be signed via the cardano API or a
wallet provider. ... | # LANGUAGE DataKinds #
# LANGUAGE DuplicateRecordFields #
# LANGUAGE FlexibleInstances #
# LANGUAGE TypeFamilies #
module Language.Marlowe.Runtime.Transaction.Api
( ApplyInputsConstraintsBuildupError(..)
, ApplyInputsError(..)
, ConstraintError(..)
, ContractCreated(..)
, CreateBuildupError(..)
, CreateErr... |
143e79134c211ea643aa66d0920db0b38c382ae3dce3efe4d9c74e3340ee209f | MercuryTechnologies/slack-web | RequestVerificationSpec.hs | module Web.Slack.Experimental.RequestVerificationSpec where
import Data.Aeson
import Data.Aeson.KeyMap qualified as KeyMap
import Data.Time.Clock.POSIX
import TestImport
import Web.Slack.Experimental.RequestVerification
spec :: Spec
spec = do
Oct 12 2022 23:04:47 GMT+0000
let sig = SlackSignature "v0=f7f0a2f48ae5... | null | https://raw.githubusercontent.com/MercuryTechnologies/slack-web/0255b275765af411c7edc2204ba17658c3ba480c/tests/Web/Slack/Experimental/RequestVerificationSpec.hs | haskell | back to the future
the simplest possible JSON; this thing just parses it straight through
anyway | module Web.Slack.Experimental.RequestVerificationSpec where
import Data.Aeson
import Data.Aeson.KeyMap qualified as KeyMap
import Data.Time.Clock.POSIX
import TestImport
import Web.Slack.Experimental.RequestVerification
spec :: Spec
spec = do
Oct 12 2022 23:04:47 GMT+0000
let sig = SlackSignature "v0=f7f0a2f48ae5... |
9402590a6d5f85d80d6b3d52f1f01b6ff45f8f03d53b76e426619756b61c633c | uds-psl/Prog | array.ml | First steps
let a = Array.make 3 7
let v_before = a.(1)
let _ = a.(1) <- 1
let v_after = a.(1)
let a = let a = Array.make 3 1 in a.(1) <- 2; a.(2) <- 3; a
(* Conversion between arrays and lists *)
let to_list a =
let rec loop i l =
if i < 0 then l else loop (i-1) (a.(i)::l)
in loop (Array.length a - 1) []... | null | https://raw.githubusercontent.com/uds-psl/Prog/45bc622e1550b125a6cc62718f07ac05b2e5e5de/ml/array.ml | ocaml | Conversion between arrays and lists
Binary search
Array reversal
Selection sort
Quicksort
Equality
true
false
false
true
Order
Reference cells | First steps
let a = Array.make 3 7
let v_before = a.(1)
let _ = a.(1) <- 1
let v_after = a.(1)
let a = let a = Array.make 3 1 in a.(1) <- 2; a.(2) <- 3; a
let to_list a =
let rec loop i l =
if i < 0 then l else loop (i-1) (a.(i)::l)
in loop (Array.length a - 1) []
let of_list l =
match l with
| [] ->... |
7ec336ab66a009329df6850cfc005ceeffda215c214e70705e472a172f7aa6f7 | grin-compiler/grin | DeadParameterEliminationSpec.hs | # LANGUAGE OverloadedStrings , QuasiQuotes #
module Transformations.Optimising.DeadParameterEliminationSpec where
import Test.Hspec
import Test.Hspec.PipelineExample
import Pipeline.Pipeline hiding (pipeline)
import Grin.TH
runTests :: IO ()
runTests = hspec spec
spec :: Spec
spec = do
describe "Dead Parameter El... | null | https://raw.githubusercontent.com/grin-compiler/grin/44ac2958810ecee969c8028d2d2a082d47fba51b/grin/test/Transformations/Optimising/DeadParameterEliminationSpec.hs | haskell | functions cannot return pointers
functions cannot return pointers | # LANGUAGE OverloadedStrings , QuasiQuotes #
module Transformations.Optimising.DeadParameterEliminationSpec where
import Test.Hspec
import Test.Hspec.PipelineExample
import Pipeline.Pipeline hiding (pipeline)
import Grin.TH
runTests :: IO ()
runTests = hspec spec
spec :: Spec
spec = do
describe "Dead Parameter El... |
1f808575a0437c0a8a7083492c969889b2cce49be45a0dec73777f47566b05b6 | SuYi1995/game_server | rfc4627_jsonrpc_http.erl | JSON - RPC for HTTP transports ( inets , mochiweb , yaws , ... )
%%---------------------------------------------------------------------------
@author < >
@author LShift Ltd. < >
2007 , 2008 and LShift Ltd.
@license
%%
%% Permission is hereby granted, free of charge, to any person
%% obtaining a co... | null | https://raw.githubusercontent.com/SuYi1995/game_server/b9a8574589075a1264c3d1f9a564d6d2ea8ae574/src/tools/json/rfc4627_jsonrpc_http.erl | erlang | ---------------------------------------------------------------------------
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute, sublicense, a... | JSON - RPC for HTTP transports ( inets , mochiweb , yaws , ... )
@author < >
@author LShift Ltd. < >
2007 , 2008 and LShift Ltd.
@license
files ( the " Software " ) , to deal in the Software without
of the Software , and to permit persons to whom the Software is
included in all copies or subs... |
70cad391737582d2a6a600d46ae1c36a24cc444c7befac96f55e29947b2d08a7 | Frama-C/Frama-C-snapshot | property_navigator.ml | (**************************************************************************)
(* *)
This file is part of Frama - C.
(* *)
Copyright ... | null | https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/gui/property_navigator.ml | ocaml | ************************************************************************
alternatives)
... | This file is part of Frama - C.
Copyright ( C ) 2007 - 2019
CEA ( Commissariat à l'énergie atomique et aux énergies
Lesser General Public License as published by the Free Software
Foundation , v... |
734c85ab63ee546d1111be657535d1a21e551c3a8acfc7f653d744e02eba6732 | ros/roslisp | rosutils.lisp | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Software License Agreement (BSD License)
;;
Copyright ( c ) 2008 , Willow Garage , Inc.
;; All rights reserved.
;;
;; Redistribution and use in source and binary forms, with
;; or without modification, are permitted provided that the
;; following cond... | null | https://raw.githubusercontent.com/ros/roslisp/559355a8d695e34e6dedae071a9af2c065411687/src/rosutils.lisp | lisp |
Software License Agreement (BSD License)
All rights reserved.
Redistribution and use in source and binary forms, with
or without modification, are permitted provided that the
following conditions are met:
* Redistributions of source code must retain the above
copyright notice, this list of conditions... | Copyright ( c ) 2008 , Willow Garage , Inc.
* Neither the name of Willow Garage , Inc. nor the names
CONTRIBUTORS " AS IS " AND ANY EXPRESS OR
COPYRIGHT OWNER OR ANY DIRECT ,
INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR
CAUSED AND ON ANY THEORY OF LIABILITY , WHETHER IN
(in-package roslisp)
(de... |
0f0b5bdeff594cff9c1e0ed3c2cbc68fca0fdcf981f107360d0bacabcba0f076 | ocaml-multicore/ocaml-tsan | cmm_helpers.ml | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/ocaml-multicore/ocaml-tsan/ae9c1502103845550162a49fcd3f76276cdfa866/asmcomp/cmm_helpers.ml | ocaml | ************************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
[@@@ocaml.warning "+a-4-9-40-41-42-44-45"]
module V = Backend_var
module VP = Backend_var.With_provenanc... |
bbaa5e69582629d7c631132b461ab0f675d51d5f45b5691b061b920ec93b3e1a | thebusby/clj-mmap | core_test.clj | (ns clj-mmap.core-test
(:require [clojure.test :refer :all]
[clj-mmap.core :refer :all]))
(deftest a-test
(testing "FIXME, no test cases provided!"
(is (= 1 1))))
| null | https://raw.githubusercontent.com/thebusby/clj-mmap/9c42e02c72ce958876fe77d1173451cc626b64e4/test/clj_mmap/core_test.clj | clojure | (ns clj-mmap.core-test
(:require [clojure.test :refer :all]
[clj-mmap.core :refer :all]))
(deftest a-test
(testing "FIXME, no test cases provided!"
(is (= 1 1))))
| |
186830b02df1f090564a4edebc1bff349e42d1c6c818433fd8b9e173ab504007 | uim/sigscheme | srfi-0.scm | ;; Filename : srfi-0.scm
;; About : SRFI-0 Feature-based conditional expansion construct
;;
Copyright ( c ) 2007 - 2008 SigScheme Project < uim - en AT googlegroups.com >
;;
;; All rights reserved.
;;
;; Redistribution and use in source and binary forms, with or without
;; modification, are permitted provide... | null | https://raw.githubusercontent.com/uim/sigscheme/ccf1f92d6c2a0f45c15d93da82e399c2a78fe5f3/lib/srfi-0.scm | scheme | Filename : srfi-0.scm
About : SRFI-0 Feature-based conditional expansion construct
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
notice, this list of conditions and the following... | Copyright ( c ) 2007 - 2008 SigScheme Project < uim - en AT googlegroups.com >
1 . Redistributions of source code must retain the above copyright
2 . Redistributions in binary form must reproduce the above copyright
3 . Neither the name of authors nor the names of its contributors
THIS SOFTWARE IS PROVID... |
cea6ac018f8edfbbc807aba20ee4c4dd1cebdfaba06a0fb2d387424eea4f1b6d | onyx-platform/onyx-kafka | input_benchmark_test.clj | (ns onyx.plugin.input-benchmark-test
(:require [clojure.core.async :refer [<!! go pipe timeout chan alts!!]]
[clojure.test :refer [deftest is]]
[com.stuartsierra.component :as component]
[aero.core :refer [read-config]]
[taoensso.nippy :as nip]
[onyx.test-he... | null | https://raw.githubusercontent.com/onyx-platform/onyx-kafka/8353ed5ff1a9f41da836a0069cdf6ba6da91f613/test/onyx/plugin/input_benchmark_test.clj | clojure | (ns onyx.plugin.input-benchmark-test
(:require [clojure.core.async :refer [<!! go pipe timeout chan alts!!]]
[clojure.test :refer [deftest is]]
[com.stuartsierra.component :as component]
[aero.core :refer [read-config]]
[taoensso.nippy :as nip]
[onyx.test-he... | |
3c4e011cdaefdff7cee690d7115627e56395b8d937611bb94ad6b96a771acbf1 | dawidovsky/IIUWr | paluszak-dawid.rkt | #lang racket
;;; ---------------------------------------------------------------------------
Prosty system obiektowy z dziedziczeniem
(define (ask object message . args)
(let ((method (get-method object message)))
(if (method? method)
(apply method (cons object args))
(error "Brak metody" mess... | null | https://raw.githubusercontent.com/dawidovsky/IIUWr/73f0f65fb141f82a05dac2573f39f6fa48a81409/MP/Pracownia14/paluszak-dawid.rkt | racket | ---------------------------------------------------------------------------
----------------------------------------------------------------------------
niejadalne
Implementacja miejsc
----------------------------------------------------------------------------
implementacja zjadania przedmiotów
---------------... | #lang racket
Prosty system obiektowy z dziedziczeniem
(define (ask object message . args)
(let ((method (get-method object message)))
(if (method? method)
(apply method (cons object args))
(error "Brak metody" message (cadr method)))))
(define (get-method object message)
(object message))
... |
30872ae526052d3b78a03172a7d4beee8d110b97d6a889b8b20a315df5bc5fd6 | gedge-platform/gedge-platform | glc_lib.erl | Copyright ( c ) 2012 , < >
%%
%% Permission to use, copy, modify, and/or distribute this software for any
%% purpose with or without fee is hereby granted, provided that the above
%% copyright notice and this permission notice appear in all copies.
%%
THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS A... | null | https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/goldrush/src/glc_lib.erl | erlang |
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVE... | Copyright ( c ) 2012 , < >
THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL WARRANTIES
ANY SPECIAL , DIRECT , INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE , DATA OR PROFITS , WHETHER IN AN
-module(glc_lib).
-export([
reduce/1,
matches/2,
... |
9026b80cb5330ccc4bf98e6917afde314d5f1aa433f99551ec77ab871d371bfb | processone/ejabberd | mod_client_state_opt.erl | %% Generated automatically
%% DO NOT EDIT: run `make options` instead
-module(mod_client_state_opt).
-export([queue_chat_states/1]).
-export([queue_pep/1]).
-export([queue_presence/1]).
-spec queue_chat_states(gen_mod:opts() | global | binary()) -> boolean().
queue_chat_states(Opts) when is_map(Opts) ->
gen_mod:... | null | https://raw.githubusercontent.com/processone/ejabberd/b860a25c82515ba51b044e13ea4e040e3b9bbc41/src/mod_client_state_opt.erl | erlang | Generated automatically
DO NOT EDIT: run `make options` instead |
-module(mod_client_state_opt).
-export([queue_chat_states/1]).
-export([queue_pep/1]).
-export([queue_presence/1]).
-spec queue_chat_states(gen_mod:opts() | global | binary()) -> boolean().
queue_chat_states(Opts) when is_map(Opts) ->
gen_mod:get_opt(queue_chat_states, Opts);
queue_chat_states(Host) ->
gen_m... |
195311a4293ceea359d7b1b3c7ea003e9815645161cf2d18bcc58210bfb0a53d | input-output-hk/offchain-metadata-tools | Simple.hs | # LANGUAGE FlexibleContexts #
{-# LANGUAGE GADTs #-}
# LANGUAGE LambdaCase #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE QuasiQuotes #
{-# LANGUAGE RankNTypes #-}
# LANGUAGE ScopedTypeVariables #
module Test.Cardano.Metadata.Store.Simple
( tests
) where
import Data.Text ( Text )
import Data.Word
import Prelude ... | null | https://raw.githubusercontent.com/input-output-hk/offchain-metadata-tools/794f08cedbf555e9d207bccc45c08abbcf98add9/metadata-lib/test/Test/Cardano/Metadata/Store/Simple.hs | haskell | # LANGUAGE GADTs #
# LANGUAGE OverloadedStrings #
# LANGUAGE RankNTypes # | # LANGUAGE FlexibleContexts #
# LANGUAGE LambdaCase #
# LANGUAGE QuasiQuotes #
# LANGUAGE ScopedTypeVariables #
module Test.Cardano.Metadata.Store.Simple
( tests
) where
import Data.Text ( Text )
import Data.Word
import Prelude hiding ( read )
import Test.Tasty ( TestTree, testGroup, withResource )
import Cardan... |
85398c7169148720c7237d902e4d50e9fb3b1b36a1d0d64d36b7c83bff84d70d | tfausak/burrito | Value.hs | {-# LANGUAGE DeriveDataTypeable #-}
module Burrito.Internal.Type.Value
( Value (..),
)
where
import qualified Data.Data as Data
import qualified Data.Map as Map
import qualified Data.Text as Text
-- | Represents a value that can be substituted into a template. Can be a
-- string, a list, or dictionary (which is ... | null | https://raw.githubusercontent.com/tfausak/burrito/e4475f6bc44862a36464bd8904296d68d995ead2/source/library/Burrito/Internal/Type/Value.hs | haskell | # LANGUAGE DeriveDataTypeable #
| Represents a value that can be substituted into a template. Can be a
string, a list, or dictionary (which is called an associative array in the
RFC). |
module Burrito.Internal.Type.Value
( Value (..),
)
where
import qualified Data.Data as Data
import qualified Data.Map as Map
import qualified Data.Text as Text
data Value
= Dictionary (Map.Map Text.Text Text.Text)
| List [Text.Text]
| String Text.Text
deriving (Data.Data, Eq, Ord, Show)
|
bfec59c39e7323e81b3ce77bd968aa87620312c50556b5743a2c2ffc82196497 | jrh13/hol-light | rqe_list.ml |
let aacons_tm = `CONS:A -> A list -> A list` ;;
let HD_CONV conv tm =
let h::rest = dest_list tm in
let ty = type_of h in
let thm = conv h in
let thm2 = REFL (mk_list(rest,ty)) in
let cs = inst [ty,aty] aacons_tm in
MK_COMB ((AP_TERM cs thm),thm2);;
let TL_CONV conv tm =
(* try *)
let h::t = dest_... | null | https://raw.githubusercontent.com/jrh13/hol-light/ea44a4cacd238d7fa5a397f043f3e3321eb66543/Rqe/rqe_list.ml | ocaml | try
with _ -> failwith "TL_CONV"
{{{ Proof
}}}
{{{ Proof
}}}
{{{ Proof
}}}
{{{ Proof
}}}
{{{ Proof
}}}
{{{ Proof
}}}
{{{ Proof
}}}
{{{ Proof
}}}
{{{ Proof
}}}
{{{ Proof
}}}
{{{ Proof
}}}
{{{ Proof
}}}
{{{ Proof
}}}
{{{ Proof
}}}
{{{ Proof
}}}
{{{ Proo... |
let aacons_tm = `CONS:A -> A list -> A list` ;;
let HD_CONV conv tm =
let h::rest = dest_list tm in
let ty = type_of h in
let thm = conv h in
let thm2 = REFL (mk_list(rest,ty)) in
let cs = inst [ty,aty] aacons_tm in
MK_COMB ((AP_TERM cs thm),thm2);;
let TL_CONV conv tm =
let h::t = dest_list tm in
... |
6db00965ca097f43c65880c4accffeae01d2980f5c0acc2cb2cc70888f0d6184 | hjcapple/reading-sicp | exercise_3_71.scm | #lang racket
P238 - [ 练习 3.71 ]
(require "stream.scm")
(require "infinite_stream.scm")
(require "pairs_stream.scm")
(require "exercise_3_70.scm") ; for weighted-pairs
(define (cube x) (* x x x))
(define (cube-sum pair)
(let ((i (car pair))
(j (cadr pair)))
(+ (cube i) (cube j))))
(define (ramanujan... | null | https://raw.githubusercontent.com/hjcapple/reading-sicp/7051d55dde841c06cf9326dc865d33d656702ecc/chapter_3/exercise_3_71.scm | scheme | for weighted-pairs
输出
表示
... | #lang racket
P238 - [ 练习 3.71 ]
(require "stream.scm")
(require "infinite_stream.scm")
(require "pairs_stream.scm")
(define (cube x) (* x x x))
(define (cube-sum pair)
(let ((i (car pair))
(j (cadr pair)))
(+ (cube i) (cube j))))
(define (ramanujan-filter s)
(let ((s0 (stream-car s))
(s1 ... |
a34005e3a7d627f687100fe7fd0782751608fe45dcfd3e80fd9e925334fde9a2 | klartext/any-dl | evaluate.ml |
any - dl :
-------
Generic Media - Downloader for any kind of Online - Mediathek .
Attempts to be the general tool , doing things like
youtube - dl , zdf - dl , arte - dl and so on .
Author / copyright :
Copyleft : GNU GENERAL PUBLIC LICENSE v3 ( or higher )
any-dl:
-------
Gen... | null | https://raw.githubusercontent.com/klartext/any-dl/85715e624e8c5bc39c3d08b078954592f4c4b2cc/evaluate.ml | ocaml | for planned, but not already implemented functionality
a dcoument could not be retrieved
tagselect gives back an empty list
if a match was tried, but no match could be found
if Select is used, but there is no match-result available as tmpvar
A problem occured while trying to use html-decode
if tmpvar has j... |
any - dl :
-------
Generic Media - Downloader for any kind of Online - Mediathek .
Attempts to be the general tool , doing things like
youtube - dl , zdf - dl , arte - dl and so on .
Author / copyright :
Copyleft : GNU GENERAL PUBLIC LICENSE v3 ( or higher )
any-dl:
-------
Gen... |
285164a99d874f5044f488fefc58b48ed9919a08c5321f0b45fee39a3518057e | ghc/packages-Cabal | C.hs | module C where
import A
import B
| null | https://raw.githubusercontent.com/ghc/packages-Cabal/6f22f2a789fa23edb210a2591d74ea6a5f767872/cabal-testsuite/PackageTests/NewBuild/T3460/C.hs | haskell | module C where
import A
import B
| |
7c767f78ab4042f60bba414906e5b92809704eb64a801825990a84a9ac6acdbc | bjorng/wings | wings_gl.erl | %%
%% wings_gl.erl --
%%
%% A few OpenGL utilities.
%%
Copyright ( c ) 2001 - 2011
%%
%% See the file "license.terms" for information on usage and redistribution
%% of this file, and for a DISCLAIMER OF ALL WARRANTIES.
%%
%% $Id$
%%
-module(wings_gl).
-export([init/1, window/4, attributes/0,
s... | null | https://raw.githubusercontent.com/bjorng/wings/0ebe43abfcb094344c015589d8cd072b643d80ed/src/wings_gl.erl | erlang |
wings_gl.erl --
A few OpenGL utilities.
See the file "license.terms" for information on usage and redistribution
of this file, and for a DISCLAIMER OF ALL WARRANTIES.
$Id$
new wx api variants
Debugging.
New in wxWidgets-3.0
If top gl window, store context and canvas
The show event may come be... | Copyright ( c ) 2001 - 2011
-module(wings_gl).
-export([init/1, window/4, attributes/0,
is_ext/1,is_ext/2,
error_string/1]).
GLSL exports
-export([support_shaders/0,
use_prog/1,
uloc/2, set_uloc/3,
compile/2, link_prog/1, link_prog/2]).
FBO exports
-export([have_fbo/0, setup_fbo/2, delete_f... |
9386e501b06358277bc91991daafa0dc1909d9099cd5a92fa9e2c89121f0d4b6 | AHAAAAAAA/mapbh | events.cljs | (ns app.events
(:require [re-frame.core :as re-frame]
[pushy.core :as pushy]))
(re-frame/reg-event-db
::set-active-panel
(fn [db [_ active-panel]]
(assoc db :active-panel active-panel)))
(re-frame/reg-event-db
::set-language
(fn [db [_ language]]
(assoc db :language language)))
| null | https://raw.githubusercontent.com/AHAAAAAAA/mapbh/601a334285967d5bd6c40c83dc96ed42f29be686/src/app/events.cljs | clojure | (ns app.events
(:require [re-frame.core :as re-frame]
[pushy.core :as pushy]))
(re-frame/reg-event-db
::set-active-panel
(fn [db [_ active-panel]]
(assoc db :active-panel active-panel)))
(re-frame/reg-event-db
::set-language
(fn [db [_ language]]
(assoc db :language language)))
| |
fcf270c28403d94f10a28547f8f98fac9bae3a29ad03c6c3a4699bb7350afb19 | jacquev6/General | Foldable.signatures.Right.Basic.ml | module type S0 = sig
type elt
type t
val fold_right: t -> init:'b -> f:(elt -> 'b -> 'b) -> 'b
val fold_right_i: t -> init:'b -> f:(i:int -> elt -> 'b -> 'b) -> 'b
val fold_right_acc: acc:'acc -> t -> init:'b -> f:(acc:'acc -> elt -> 'b -> 'acc * 'b) -> 'b
end
module type S1 = sig
type 'a t
val fold_ri... | null | https://raw.githubusercontent.com/jacquev6/General/5237123668e939c0cb83aa3e1c4756473336bc7e/src/Traits/Foldable.signatures.Right.Basic.ml | ocaml | module type S0 = sig
type elt
type t
val fold_right: t -> init:'b -> f:(elt -> 'b -> 'b) -> 'b
val fold_right_i: t -> init:'b -> f:(i:int -> elt -> 'b -> 'b) -> 'b
val fold_right_acc: acc:'acc -> t -> init:'b -> f:(acc:'acc -> elt -> 'b -> 'acc * 'b) -> 'b
end
module type S1 = sig
type 'a t
val fold_ri... | |
33f132490e642ccea2e326b3b72aab66567652ee8b1ccfc477d227581c48eca0 | gpwwjr/LISA | certainty-factors.lisp | This file is part of LISA , the Lisp - based Intelligent Software
;;; Agents platform.
Copyright ( C ) 2000
;;; This library is free software; you can redistribute it and/or
;;; modify it under the terms of the GNU Lesser General Public License
as published by the Free Software Foundation ; either version 2.... | null | https://raw.githubusercontent.com/gpwwjr/LISA/bc7f54b3a9b901d5648d7e9de358e29d3b794c78/src/belief-systems/certainty-factors.lisp | lisp | Agents platform.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public License
either version 2.1
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FI... | This file is part of LISA , the Lisp - based Intelligent Software
Copyright ( C ) 2000
of the License , or ( at your option ) any later version .
GNU Lesser General Public License for more details .
You should have received a copy of the GNU Lesser General Public License
Foundation , Inc. , 59 Temple... |
0bd53b6640a9bc81e03cf61633118626cf18dc4296429c206adf538642875aa1 | johnridesabike/acutis | debugAst.mli | (**************************************************************************)
(* *)
Copyright ( c ) 2022 .
(* *)
This Source Code For... | null | https://raw.githubusercontent.com/johnridesabike/acutis/dfdde9718c1f269e9660c666e5494394f3a77a0d/lib/debugAst.mli | ocaml | ************************************************************************
****************************... | Copyright ( c ) 2022 .
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 /.
type t = Ast.t
val equal : t -> t -> bool
val pp : F... |
7fffb5a6c5f0c1fe91aa609596bd47334de016d23b82a52a6dade65ca306774e | music-suite/music-score | Articulation.hs |
# LANGUAGE CPP #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE ScopedTypeVariables #
{-# LANGUAGE UndecidableInstances #-}
-- | Provides functions for manipulating articulation.
module Music.Score.Articulation (
-- ** Artic... | null | https://raw.githubusercontent.com/music-suite/music-score/aa7182d8ded25c03a56b83941fc625123a7931f8/src/Music/Score/Articulation.hs | haskell | # LANGUAGE UndecidableInstances #
| Provides functions for manipulating articulation.
** Articulation type functions
** Accessing articulation
* Manipulating articulation
** Accents
** Phrasing and separation
* Articulation transformer
* Context
|
Articulations type.
|
Articulation type.
|
Class o... |
# LANGUAGE CPP #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE ScopedTypeVariables #
module Music.Score.Articulation (
Articulation,
SetArticulation,
Accentuation,
Separation,
Articulated(..),
... |
d89a230057c27ba3726d5e3409da4e50e8a3c1d1d6863ee845e09c296cd49b11 | haskellfoundation/error-message-index | CommandPattern.hs | {-# LANGUAGE Arrows #-}
module CommandPattern where
f _ = 5
| null | https://raw.githubusercontent.com/haskellfoundation/error-message-index/7dcad9cd5d7b51de61621d6a6eeb0ece68dea539/message-index/messages/GHC-98980/command-pattern/after/CommandPattern.hs | haskell | # LANGUAGE Arrows # | module CommandPattern where
f _ = 5
|
f288a7b4bca9c47c010b26562b5020bd806afe7065251777312d45285debcb59 | haskell-repa/repa | Flow.hs |
module Data.Array.Repa.Vector.Repr.Flow
( O
, DistShape (..)
, Array (..)
-- * Modes
, FD, FS
-- * Distributions
, BB, BN
-- * Conversions
, flow
, toFlow
, fromFlowBB
-- * Computation
, Unflow (..))
where
impor... | null | https://raw.githubusercontent.com/haskell-repa/repa/c867025e99fd008f094a5b18ce4dabd29bed00ba/icebox/abandoned/repa-vector/Data/Array/Repa/Vector/Repr/Flow.hs | haskell | * Modes
* Distributions
* Conversions
* Computation
| A parallel flow with the given mode and distribution.
-----------------------------------------------------------------------------
| Convert a bulk array to a balanced flow.
-----------------------------------------------------------------------------
| Unp... |
module Data.Array.Repa.Vector.Repr.Flow
( O
, DistShape (..)
, Array (..)
, FD, FS
, BB, BN
, flow
, toFlow
, fromFlowBB
, Unflow (..))
where
import Data.Array.Repa.Bulk.Elt
import Data.Array.Repa.Bulk.Gang
import Data.Array.Repa.Vector.Base ... |
fdf114c139035bed3072c1f6b1c14cf24651d3f3d4ea3ccb65c512fdad026cf7 | takikawa/racket-ppa | main.rkt | #lang racket/base
(require "../common/struct-star.rkt"
"../syntax/module-binding.rkt"
"../syntax/api.rkt"
"../namespace/namespace.rkt"
"../namespace/module.rkt"
"../namespace/core.rkt"
"../common/phase.rkt"
"../syntax/match.rkt"
"../expand/context.... | null | https://raw.githubusercontent.com/takikawa/racket-ppa/d336bb10e3e0ec3a20020e9ade9e77d2f6f80b6d/src/expander/eval/main.rkt | racket | This `eval` is suitable as an eval handler that will be called by
[Don't use keyword arguments here, because the function is
exported for use by an embedding runtime system.]
This `compile` is suitable as a compile handler that will be called
[Don't use keyword arguments here, because the function is
exported f... | #lang racket/base
(require "../common/struct-star.rkt"
"../syntax/module-binding.rkt"
"../syntax/api.rkt"
"../namespace/namespace.rkt"
"../namespace/module.rkt"
"../namespace/core.rkt"
"../common/phase.rkt"
"../syntax/match.rkt"
"../expand/context.... |
3230c7cde300ca64b5d6103035845a656195b66d88768d901cefc5607341bafa | fccm/glMLite | ogl_draw.mli |
Copyright ( C ) 2010
Permission is hereby granted , free of charge , to any person obtaining a
copy of this software and associated documentation files ( the " Software " ) ,
to deal in the Software without restriction , including without limitation the
rights to use , copy , modify , merge , pub... | null | https://raw.githubusercontent.com/fccm/glMLite/b98efc8ffe6f1043d8de72d6107f7634fde95b45/Incubating/ogl_draw.mli | ocaml | * Higher level interface
* multiply texture color and vertex color, the result is a nice mix
* in the transparent part of the texture, use the vertex color |
Copyright ( C ) 2010
Permission is hereby granted , free of charge , to any person obtaining a
copy of this software and associated documentation files ( the " Software " ) ,
to deal in the Software without restriction , including without limitation the
rights to use , copy , modify , merge , pub... |
9726674c1ca4f860a6386d0c85f6753d8e318cb62c8e6bec9bcf5077726410b2 | alanmarazzi/panthera | math_test.clj | (ns panthera.math-test
(:require
[clojure.test :refer :all]
[panthera.pandas.math :as m]
[panthera.pandas.generics :as g]
[panthera.pandas.utils :as u]))
(deftest base-math
(are [op other out]
(= (vec ((#'m/base-math op) (g/series [1 2 3]) other))
out)
:+ 1 [2 3 4]
:+ 1/2 [1.5 2.... | null | https://raw.githubusercontent.com/alanmarazzi/panthera/08484e2f0cf9b7c766047d13cca449dc9cf30ea2/test/panthera/math_test.clj | clojure | (ns panthera.math-test
(:require
[clojure.test :refer :all]
[panthera.pandas.math :as m]
[panthera.pandas.generics :as g]
[panthera.pandas.utils :as u]))
(deftest base-math
(are [op other out]
(= (vec ((#'m/base-math op) (g/series [1 2 3]) other))
out)
:+ 1 [2 3 4]
:+ 1/2 [1.5 2.... | |
8b84d6b5fe9a21bef5ac9c959b7deaeff7a46ca1793bada59b0f0a07d547f399 | dwayne/haskell-programming | syntax.hs | -- Reading Syntax
1
x = (+)
f xs = w `x` 1
where w = length xs
2
myId = \x -> x
3
myHead = \(x : xs) -> x
4
myFst (a, b) = a
| null | https://raw.githubusercontent.com/dwayne/haskell-programming/d08679e76cfd39985fa2ee3cd89d55c9aedfb531/ch4/syntax.hs | haskell | Reading Syntax |
1
x = (+)
f xs = w `x` 1
where w = length xs
2
myId = \x -> x
3
myHead = \(x : xs) -> x
4
myFst (a, b) = a
|
124ddd7e498745f164e5dfda51c61891dc05e499d529fe3ee28dfcf7727f7d66 | TerrorJack/ghc-alter | Error.hs | # LANGUAGE Trustworthy #
# LANGUAGE NoImplicitPrelude #
-----------------------------------------------------------------------------
-- |
-- Module : System.IO.Error
Copyright : ( c ) The University of Glasgow 2001
-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maintainer :
--... | null | https://raw.githubusercontent.com/TerrorJack/ghc-alter/db736f34095eef416b7e077f9b26fc03aa78c311/ghc-alter/boot-lib/base/System/IO/Error.hs | haskell | ---------------------------------------------------------------------------
|
Module : System.IO.Error
License : BSD-style (see the file libraries/base/LICENSE)
Maintainer :
Stability : provisional
Portability : portable
------------------------------------------------------------------------... | # LANGUAGE Trustworthy #
# LANGUAGE NoImplicitPrelude #
Copyright : ( c ) The University of Glasgow 2001
Standard IO Errors .
module System.IO.Error (
* I\/O errors
IOError,
userError,
mkIOError,
annotateIOError,
* * Classifying I\/O errors
isAlreadyExistsError,
isDoesNotExis... |
ac2fc4a8ae76c32b27841dee1431a9e9bc69f18113e7602c4ba23d90e0211a5e | casperschipper/ocaml-cisp | cisp5.ml | open Cisp
open Midi
let simpleWalk =
wander 0
(seq [6;0;6;0;6;1;5;2;4;3;4;6;4;6;5;6;0] |> Infseq.cycleSq) |> Infseq.toSeq
let intervArr = [|60;60;60;60;60;60|]
let writer =
let index = wrappedCount intervArr in
let generator = walki 74 ((st (-1)) *~ ch [|7;7;4;5;-7;4;12;-12|]) |> take 14 |> st |> con... | null | https://raw.githubusercontent.com/casperschipper/ocaml-cisp/571ffb8e508c5427d01e407ba5e91ff2a4604f40/examples/cisp_backup/zimmermanzel/cisp5.ml | ocaml | type walkmind direction is state
a walk that updates boundaries only when hit | open Cisp
open Midi
let simpleWalk =
wander 0
(seq [6;0;6;0;6;1;5;2;4;3;4;6;4;6;5;6;0] |> Infseq.cycleSq) |> Infseq.toSeq
let intervArr = [|60;60;60;60;60;60|]
let writer =
let index = wrappedCount intervArr in
let generator = walki 74 ((st (-1)) *~ ch [|7;7;4;5;-7;4;12;-12|]) |> take 14 |> st |> con... |
249b4a040715e18f656b4a7105a05dbca544be13904fce31453bf014e93bb399 | jakemcc/sicp-study | 1.9.clj | Exercise 1.9
(defn my-plus [a b]
(if (= a 0)
b
(inc (my-plus (dec a) b))))
(my-plus 4 5)
+ is equal to my - plus above , is + in SICP
; (+ 4 5)
; (inc (+ 3 5))
; (inc (inc (+ 2 5)))
; (inc (inc (inc (+ 1 5))))
; (inc (inc (inc (inc (+ 0 5)))))
; (inc (inc (inc (inc 5))))
; (inc (inc (inc 6)))
; (inc (inc 7)... | null | https://raw.githubusercontent.com/jakemcc/sicp-study/3b9e3d6c8cc30ad92b0d9bbcbbbfe36a8413f89d/clojure/section1.2/1.9.clj | clojure | (+ 4 5)
(inc (+ 3 5))
(inc (inc (+ 2 5)))
(inc (inc (inc (+ 1 5))))
(inc (inc (inc (inc (+ 0 5)))))
(inc (inc (inc (inc 5))))
(inc (inc (inc 6)))
(inc (inc 7))
(inc 8)
(+ 4 5)
(+ 3 6)
(+ 2 7)
(+ 1 8)
(+ 0 9) | Exercise 1.9
(defn my-plus [a b]
(if (= a 0)
b
(inc (my-plus (dec a) b))))
(my-plus 4 5)
+ is equal to my - plus above , is + in SICP
9
(defn my-plus2 [a b]
(if (= a 0)
b
(my-plus (dec a) (inc b))))
(my-plus2 4 5)
+ is equal to my - plus2 above , is + in SICP
9
|
816d52ccc7206f2e0ab7e05db9c72054fbb9015a3751e29229db64b385e77a6e | emil0r/reverie | migrator.clj | (ns reverie.migrator
(:require [reverie.MigrationException]
[reverie.system :as sys])
(:import [reverie MigrationException]))
(defprotocol IMigrator
(migrate [migrator] [migrator mmap])
(rollback [migrator mmap])
(migration-maps [migrator])
(list-migrations [migrator mmap])
(list-completed-id... | null | https://raw.githubusercontent.com/emil0r/reverie/681a44a3fe1b1bd8ca5b97a7ff947282878a123b/reverie-core/src/reverie/migrator.clj | clojure | (ns reverie.migrator
(:require [reverie.MigrationException]
[reverie.system :as sys])
(:import [reverie MigrationException]))
(defprotocol IMigrator
(migrate [migrator] [migrator mmap])
(rollback [migrator mmap])
(migration-maps [migrator])
(list-migrations [migrator mmap])
(list-completed-id... | |
64bf4a8a6e452c4f989ae56be9d52d89f1a473aff23d9b471c0d9ea1825b7f23 | Factual/geo | crs.clj | (ns geo.crs
"Helper functions for identifying and manipulating
Coordinate Reference Systems."
(:import (org.locationtech.proj4j CoordinateReferenceSystem
CoordinateTransform
CoordinateTransformFactory
CRSFa... | null | https://raw.githubusercontent.com/Factual/geo/75722b097d559b5d073aa673fb35bfe69663b50b/src/geo/crs.clj | clojure | (ns geo.crs
"Helper functions for identifying and manipulating
Coordinate Reference Systems."
(:import (org.locationtech.proj4j CoordinateReferenceSystem
CoordinateTransform
CoordinateTransformFactory
CRSFa... | |
e3648aae820527de520118ae5e489f6c870caec1e26cce36588df140dd912634 | SimonBaars/AdventOfCode-Haskell | Day10.hs | import Data.List
input = [111, 56, 160, 128, 25, 182, 131, 174, 87, 52, 23, 30, 93, 157, 36, 155, 183, 167, 130, 50, 71, 98, 42, 129, 18, 13, 99, 146, 81, 184, 1, 51, 137, 8, 9, 43, 115, 121, 171, 77, 97, 149, 83, 89, 2, 38, 139, 152, 29, 180, 10, 165, 114, 75, 82, 104, 108, 156, 96, 150, 105, 44, 100, 69, 72, 143, 32... | null | https://raw.githubusercontent.com/SimonBaars/AdventOfCode-Haskell/cc331dbac5ebfb2b33038833ba7c69d85f72eb9e/2020/Day10.hs | haskell | import Data.List
input = [111, 56, 160, 128, 25, 182, 131, 174, 87, 52, 23, 30, 93, 157, 36, 155, 183, 167, 130, 50, 71, 98, 42, 129, 18, 13, 99, 146, 81, 184, 1, 51, 137, 8, 9, 43, 115, 121, 171, 77, 97, 149, 83, 89, 2, 38, 139, 152, 29, 180, 10, 165, 114, 75, 82, 104, 108, 156, 96, 150, 105, 44, 100, 69, 72, 143, 32... | |
02f9da439a0c0f724bd55af6936e67f40a60b27e490bafd2ad7edbe6c15ca63d | laserpants/fuzzyset-haskell | Helpers.hs | module Helpers where
import Data.AEq
import Data.Text (Text)
import Test.Hspec
shouldBeTrue :: Bool -> Expectation
shouldBeTrue =
shouldBe True
shouldBeIn :: Eq a => a -> [a] -> Expectation
shouldBeIn x xs =
shouldBeTrue (x `elem` xs)
shouldBeCloseTo :: Double -> Double -> Expectation
shouldBeCloseTo q... | null | https://raw.githubusercontent.com/laserpants/fuzzyset-haskell/3c3531291b9d48ac7760b3360ad53a15b8cf978d/test/Helpers.hs | haskell | module Helpers where
import Data.AEq
import Data.Text (Text)
import Test.Hspec
shouldBeTrue :: Bool -> Expectation
shouldBeTrue =
shouldBe True
shouldBeIn :: Eq a => a -> [a] -> Expectation
shouldBeIn x xs =
shouldBeTrue (x `elem` xs)
shouldBeCloseTo :: Double -> Double -> Expectation
shouldBeCloseTo q... | |
8753c0d896348c3af160f54ad56a083d94cee58add08338eb36e411a98b4946a | RichiH/git-annex | RemoteControl.hs | git - annex assistant control
-
- Copyright 2014 < >
-
- Licensed under the GNU GPL version 3 or higher .
-
- Copyright 2014 Joey Hess <>
-
- Licensed under the GNU GPL version 3 or higher.
-}
module Assistant.Types.RemoteControl where
import qualified RemoteDaemon.Types as RemoteDaemon
impo... | null | https://raw.githubusercontent.com/RichiH/git-annex/bbcad2b0af8cd9264d0cb86e6ca126ae626171f3/Assistant/Types/RemoteControl.hs | haskell | git - annex assistant control
-
- Copyright 2014 < >
-
- Licensed under the GNU GPL version 3 or higher .
-
- Copyright 2014 Joey Hess <>
-
- Licensed under the GNU GPL version 3 or higher.
-}
module Assistant.Types.RemoteControl where
import qualified RemoteDaemon.Types as RemoteDaemon
impo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.