_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 |
|---|---|---|---|---|---|---|---|---|
ebab82a0e0a5e8eb16f9e88af5fc8da1722defbe7798c531cd95b09b162c4131 | sgbj/MaximaSharp | factor.lisp | -*- Mode : Lisp ; Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; The data in this file contains enhancments. ;;;;;
;;; ;;;;;
... | null | https://raw.githubusercontent.com/sgbj/MaximaSharp/75067d7e045b9ed50883b5eb09803b4c8f391059/Test/bin/Debug/Maxima-5.30.0/share/maxima/5.30.0/src/factor.lisp | lisp | Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ;
The data in this file contains enhancments. ;;;;;
;;;;;
; ; ; ;
All rights reserved ;;;;;
; ;
This is the F... |
(in-package :maxima)
(macsyma-module factor)
THIS IS THE NEW FACTORING PACKAGE . THE FUNCTION
TAKES CARE OF REPEATED FACTORS OVER THE GAUSSIAN INTEGERS BEFORE
CALLING FACTOR72 THE FUNCTION Z1 TAKES TWO FACTORS IN ONE VARIABLE
AND ONE POLY IN SEVERAL VARIABLES AS INPUT Z1 TAKES THESE FACTORS IN
ON... |
91eb269ba0f63e6a3ddac3c87d9600f603650a7a268001c38e76975ce54e569a | avh4/elm-format | NestedCheckout.hs | module Shakefiles.NestedCheckout where
import Development.Shake
import Development.Shake.FilePath
import qualified System.Directory
rules :: Rules ()
rules = do
"_build/git/checkout/*.ok" %> \out -> do
let cloneDir = dropExtension out
let sha = dropDirectory1 $ dropDirectory1 $ dropDirectory1 clon... | null | https://raw.githubusercontent.com/avh4/elm-format/c7745bed70603fed55ff2a57a3ae5c2975342f45/Shakefile/src/Shakefiles/NestedCheckout.hs | haskell | module Shakefiles.NestedCheckout where
import Development.Shake
import Development.Shake.FilePath
import qualified System.Directory
rules :: Rules ()
rules = do
"_build/git/checkout/*.ok" %> \out -> do
let cloneDir = dropExtension out
let sha = dropDirectory1 $ dropDirectory1 $ dropDirectory1 clon... | |
a906a36366114fec6202cb3dacc7e512c9adf8a937e5f902f2f74d0172d56254 | namin/biohacker | jqueens.lisp | ;; -*- Mode: Lisp; Syntax: Common-lisp -*-
;;;; Example of dependency-directed search using JTRE
Last edited 1/29/93 , by KDF
Copyright ( c ) 1986 - -1992 , Northwestern University ,
Johan de Kleer and Xerox Corporation .
;;; All rights reserved.
;;; See the file legal.txt for a paragraph stating scope of p... | null | https://raw.githubusercontent.com/namin/biohacker/6b5da4c51c9caa6b5e1a68b046af171708d1af64/BPS/jtms/jqueens.lisp | lisp | -*- Mode: Lisp; Syntax: Common-lisp -*-
Example of dependency-directed search using JTRE
All rights reserved.
See the file legal.txt for a paragraph stating scope of permission
and disclaimer of warranty. The above copyright notice and that
paragraph must be included in any separate copy of this file.
Statistic... |
Last edited 1/29/93 , by KDF
Copyright ( c ) 1986 - -1992 , Northwestern University ,
Johan de Kleer and Xerox Corporation .
(in-package :COMMON-LISP-USER)
(defvar *n-assumptions* 0)
(defvar *placements* nil)
(proclaim '(special *JTRE*))
(defvar *queen-rules-file*
(make-bps-source-file-name *jtre-path... |
3d7dc03c0bfed417ac9f3be3174cbfe1ebaea2d5e06dd46135528d457d86edf9 | input-output-hk/project-icarus-importer | GetHistory.hs | -- | Function for running a client, for @GetHistory@.
module Client.Cardano.Wallet.Web.Endpoint.GetHistory
( getHistoryIO
) where
import Universum
import Client.Cardano.Wallet.Web.Api (getHistory)
import Client.Cardano.Wallet.Web.Run (runEndpointClient)
import ... | null | https://raw.githubusercontent.com/input-output-hk/project-icarus-importer/36342f277bcb7f1902e677a02d1ce93e4cf224f0/wallet-new/bench/Client/Cardano/Wallet/Web/Endpoint/GetHistory.hs | haskell | | Function for running a client, for @GetHistory@.
| Run 'GetHistory' client. As a result we will get
a list of transactions and size of a full history.
Default value of offset will be used.
Default value of limit will be used.
There's an error "Please do not specify both walletId and accountId at the same time"
... |
module Client.Cardano.Wallet.Web.Endpoint.GetHistory
( getHistoryIO
) where
import Universum
import Client.Cardano.Wallet.Web.Api (getHistory)
import Client.Cardano.Wallet.Web.Run (runEndpointClient)
import Client.Cardano.Wallet.Web.Analyze (analyzeResponseIfNe... |
bfb4d76a47192c6e1cf33082e7d79cf96dcf687c02a481333b357bc680352dfd | faylang/fay | CommandLine.hs | # LANGUAGE TemplateHaskell #
module Test.CommandLine (tests) where
import Fay.Compiler.Prelude
import Test.Util
import System.Directory
import System.Environment
import System.FilePath
import Test.Tasty
import Test.Tasty.HUnit
import Tes... | null | https://raw.githubusercontent.com/faylang/fay/8455d975f9f0db2ecc922410e43e484fbd134699/src/tests/Test/CommandLine.hs | haskell | # LANGUAGE TemplateHaskell #
module Test.CommandLine (tests) where
import Fay.Compiler.Prelude
import Test.Util
import System.Directory
import System.Environment
import System.FilePath
import Test.Tasty
import Test.Tasty.HUnit
import Tes... | |
7e372ef0240097df717b64770cca702039e48f37a691fc765c85db3a593014a0 | sanette/snake-bogue | snake1.ml | BOGUE version 1 of the snake game .
San Vu Ngoc , 2022
Adapted with minimal changes from an ocaml / javascript version by , -re-tut.html
Version 1 : this version uses Sdl_area , and Timeout for animation .
San Vu Ngoc, 2022
Adapted with minimal changes from an ocaml/javascript version by Florent
M... | null | https://raw.githubusercontent.com/sanette/snake-bogue/36ec98bb38a614d68c64a27c7d9ac53f1f1cf132/src/snake1.ml | ocaml | background | BOGUE version 1 of the snake game .
San Vu Ngoc , 2022
Adapted with minimal changes from an ocaml / javascript version by , -re-tut.html
Version 1 : this version uses Sdl_area , and Timeout for animation .
San Vu Ngoc, 2022
Adapted with minimal changes from an ocaml/javascript version by Florent
M... |
67b73b7d989cbb528909ab0b2b598811031277b408757e33edb404dcd3cdc1f1 | tlehman/sicp-exercises | ex-1.30.scm | ; Exercise 1.30: The sum procedure generates a linear recursion. The procedure can be rewritten so that the sum is performed iteratively. Show how to do this by filling in the missing expressions in the following definition:
;
(define (sum term a next b)
(define (iter a result)
(if (> a b)
result
... | null | https://raw.githubusercontent.com/tlehman/sicp-exercises/57151ec07d09a98318e91c83b6eacaa49361d156/ex-1.30.scm | scheme | Exercise 1.30: The sum procedure generates a linear recursion. The procedure can be rewritten so that the sum is performed iteratively. Show how to do this by filling in the missing expressions in the following definition:
(sum id 1 inc 5) |
(define (sum term a next b)
(define (iter a result)
(if (> a b)
result
(iter (next a) (+ (term a) result))))
(iter a 0))
(define (id n) n)
(define (inc n) (+ n 1))
= > 15
|
0c35c3256b9e156efa8c4a3c62f2e6403948618940d36ba1e730f91e9d67f5f2 | uber/queryparser | Names.hs | Copyright ( c ) 2017 Uber Technologies , Inc.
--
-- 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, mer... | null | https://raw.githubusercontent.com/uber/queryparser/cd903da0edceddde2703166d3f47fa7f06eeac21/src/Database/Sql/Type/Names.hs | haskell |
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
furnished to do so, subject to the following conditions:
The above copyright notice ... | Copyright ( c ) 2017 Uber Technologies , Inc.
in the Software without restriction , including without limitation the rights
copies of the Software , and to permit persons to whom the Software is
all copies or substantial portions of the Software .
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY K... |
b0e224a6f6be2d74cdfd07bb017d1d92e17d4b57995081d24c325d476b7edb54 | Verites/verigraph | Lua.hs | module Util.Lua where
import Control.Monad
import Control.Monad.Trans
import qualified Data.ByteString as ByteString
import Foreign.Lua
import qualified Foreign.Lua as Lua
import System.IO (hPutStr, hPutStrLn, stderr)
checkStatus :: Lua.Status -> Lua Bool
... | null | https://raw.githubusercontent.com/Verites/verigraph/754ec08bf4a55ea7402d8cd0705e58b1d2c9cd67/src/repl/Util/Lua.hs | haskell | module Util.Lua where
import Control.Monad
import Control.Monad.Trans
import qualified Data.ByteString as ByteString
import Foreign.Lua
import qualified Foreign.Lua as Lua
import System.IO (hPutStr, hPutStrLn, stderr)
checkStatus :: Lua.Status -> Lua Bool
... | |
b2082dbdd96c305e53e8afeec1fd9962889b1edf91cea6604ca994b1b8a8c751 | BradWBeer/clinch | tutorial05.lisp | (ql:quickload :clinch)
;; Load the clinch freeimage plugin to load a file
;; I could have clinch-cairo too, since it has create-texture-from-png,
;; and I'm using a png file.
(ql:quickload :clinch-freeimage)
Var to hold the square entityl
(defparameter *quad-mesh* nil)
;; var to hold the texture;
(defparameter *t... | null | https://raw.githubusercontent.com/BradWBeer/clinch/421de1e4844a5142e37cb06805bc2d9d13ba048f/examples/Tutorial05/tutorial05.lisp | lisp | Load the clinch freeimage plugin to load a file
I could have clinch-cairo too, since it has create-texture-from-png,
and I'm using a png file.
var to hold the texture;
var to hold the node.
var to hold the projection matrix
Creates the texture.
In a real program, I would load these
from a file.
You can see ... | (ql:quickload :clinch)
(ql:quickload :clinch-freeimage)
Var to hold the square entityl
(defparameter *quad-mesh* nil)
(defparameter *texture* nil)
(defparameter *node* nil)
(defparameter *projection* nil)
Initialize the test .
(defun init-test ()
(setf *quad-mesh*
(make-instance 'clinch:entity
... |
68db0ef86e2d65d0cdc8e1672780cb0429e400e1976bc3cdaf0666db1e086726 | trptcolin/macro-workshop | code_generation.clj | (ns macro-workshop.code-generation)
;; remember: you can use normal clojure sequence functions to generate code!
(defn generate-addition [a b]
:replace-me)
(defn generate-multiplication [a b]
:replace-me)
(defn generate-squarer []
:replace-me)
(defn generate-hello-world-definition []
:replace-me)
| null | https://raw.githubusercontent.com/trptcolin/macro-workshop/1ef08017831461813ccf4920c55a00895f3b6bce/src/macro_workshop/code_generation.clj | clojure | remember: you can use normal clojure sequence functions to generate code! | (ns macro-workshop.code-generation)
(defn generate-addition [a b]
:replace-me)
(defn generate-multiplication [a b]
:replace-me)
(defn generate-squarer []
:replace-me)
(defn generate-hello-world-definition []
:replace-me)
|
ba9c71b9564a60a98ad7c16238e58e754d2cbb6d8b34809393877397e396d004 | racehub/om-bootstrap | nav.cljs | (ns om-bootstrap.docs.nav
(:require [om-bootstrap.nav :as n]
[om-tools.dom :as d :include-macros true])
(:import [goog.history Html5History]))
(def history
"Instance of the HTML5 History class."
(doto (Html5History.)
(.setUseFragment false)
(.setEnabled true)))
(defn client-nav!
"This tr... | null | https://raw.githubusercontent.com/racehub/om-bootstrap/18fb7f67c306d208bcb012a1b765ac1641d7a00b/docs/src/cljs/om_bootstrap/docs/nav.cljs | clojure | (ns om-bootstrap.docs.nav
(:require [om-bootstrap.nav :as n]
[om-tools.dom :as d :include-macros true])
(:import [goog.history Html5History]))
(def history
"Instance of the HTML5 History class."
(doto (Html5History.)
(.setUseFragment false)
(.setEnabled true)))
(defn client-nav!
"This tr... | |
e05e4fac869f0f175fa392f6a3b5c740bb692bef9689f5b024d45f251816ec19 | tezos/tezos-mirror | pvm_input_kind.mli | (*****************************************************************************)
(* *)
(* Open Source License *)
Copyright ( c ) 2022 Nomadic Labs < >
(* ... | null | https://raw.githubusercontent.com/tezos/tezos-mirror/f51294c91d1a964bfd8163848328859b43e62554/src/lib_scoru_wasm/pvm_input_kind.mli | ocaml | ***************************************************************************
Open Source License
Permission is h... | Copyright ( c ) 2022 Nomadic Labs < >
to deal in the Software without restriction , including without limitation
and/or sell copies of the Software , and to permit persons to whom the
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR
LIABILITY , WHETHER IN AN... |
5228eb8fb647e004319cfc2ec6198fc888ca5ed8576a0722b24279c1a96e70a7 | reborg/clojure-essential-reference | 4.clj | (require '[clojure.java.io :refer [reader writer]])
(require '[clojure.string :refer [upper-case]])
< 1 >
w (writer "/tmp/words")]
< 2 >
(.append w (str (upper-case line) "\n")))) ; <3>
;; nil | null | https://raw.githubusercontent.com/reborg/clojure-essential-reference/c37fa19d45dd52b2995a191e3e96f0ebdc3f6d69/TheToolbox/clojure.java.io/4.clj | clojure | <3>
nil | (require '[clojure.java.io :refer [reader writer]])
(require '[clojure.string :refer [upper-case]])
< 1 >
w (writer "/tmp/words")]
< 2 > |
6a5f12cb9d465c026120003ffa47abfacd2a50497dc33b98760a202a99cc08d8 | SKA-ScienceDataProcessor/RC | Vector.hs | # LANGUAGE DeriveGeneric #
{-# LANGUAGE DeriveDataTypeable #-}
# LANGUAGE RankNTypes , ScopedTypeVariables #
# LANGUAGE CPP #
module Flow.Vector
( Vector(..)
, vectorSize, vectorByteSize
, nullVector
, castVector
, offsetVector
, peekVector, pokeVector
, makeVector, unmakeVector
, copyVector
-- * Mem... | null | https://raw.githubusercontent.com/SKA-ScienceDataProcessor/RC/1b5e25baf9204a9f7ef40ed8ee94a86cc6c674af/MS5/dna/flow/Flow/Vector.hs | haskell | # LANGUAGE DeriveDataTypeable #
* Memory Management
* Conversion
| The alignment that we are going to use for all vectors
| Vector type. Depending on the requirements of the kernel that
uses it, it might have a different underlying pointer type.
FIXME: No sane binary instance but we need to pass this data type a... | # LANGUAGE DeriveGeneric #
# LANGUAGE RankNTypes , ScopedTypeVariables #
# LANGUAGE CPP #
module Flow.Vector
( Vector(..)
, vectorSize, vectorByteSize
, nullVector
, castVector
, offsetVector
, peekVector, pokeVector
, makeVector, unmakeVector
, copyVector
, allocCVector
#ifdef USE_CUDA
, allocHost... |
2cd5e24c8958236dc68cf6faaaa67262d0ee98174e18c96ee95e9aef30242a12 | prg-titech/Kani-CUDA | race-test.rkt | #lang rosette
(require "../lang.rkt")
(define arr (make-array (for/vector ([i (in-range 10)]) (make-element 0)) 10))
(define (test arr)
(= [arr 0] 1)
[arr 0])
(define (test-block-race arr)
(: int x)
(if (eq? (block-idx 0) 0)
(begin
(if- (eq?/LS (thread-idx 0) 0)
(= [arr 0] 4))... | null | https://raw.githubusercontent.com/prg-titech/Kani-CUDA/e97c4bede43a5fc4031a7d2cfc32d71b01ac26c4/Emulator/test/race-test.rkt | racket | (syncthreads) | #lang rosette
(require "../lang.rkt")
(define arr (make-array (for/vector ([i (in-range 10)]) (make-element 0)) 10))
(define (test arr)
(= [arr 0] 1)
[arr 0])
(define (test-block-race arr)
(: int x)
(if (eq? (block-idx 0) 0)
(begin
(if- (eq?/LS (thread-idx 0) 0)
(= [arr 0] 4))... |
71668c4040b80ffb42830c69c73b50d74acb53c26b89079b3bfc6ca409d44ce4 | serokell/qtah | QPalette.hs | This file is part of Qtah .
--
Copyright 2015 - 2018 The Qtah Authors .
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation , either version 3 of the License , or
-- (at your option) ... | null | https://raw.githubusercontent.com/serokell/qtah/abb4932248c82dc5c662a20d8f177acbc7cfa722/qtah-generator/src/Graphics/UI/Qtah/Generator/Interface/Core/QPalette.hs | haskell |
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
(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
MER... | This file is part of Qtah .
Copyright 2015 - 2018 The Qtah Authors .
the Free Software Foundation , either version 3 of the License , or
GNU Lesser General Public License for more details .
You should have received a copy of the GNU Lesser General Public License
module Graphics.UI.Qtah.Generator.Interface.Co... |
25584299e5dd0692baa44e652a90ada0c4e276acc013dd8510fe2d645d1ae8af | racket/gui | hierlist.rkt | #lang scheme/base
;; This is a stub for legacy code
(require mrlib/hierlist)
(provide (all-from-out mrlib/hierlist))
| null | https://raw.githubusercontent.com/racket/gui/d1fef7a43a482c0fdd5672be9a6e713f16d8be5c/gui-lib/hierlist/hierlist.rkt | racket | This is a stub for legacy code | #lang scheme/base
(require mrlib/hierlist)
(provide (all-from-out mrlib/hierlist))
|
6b3d0e99d95db2c307e4135d57c9f31f4dc0b1b6317696c6ba77946d0bef6e13 | BTowersCoding/sort | user.clj | (ns user
(:require
[shadow.cljs.devtools.api :as shadow]
[ring.middleware.resource :refer [wrap-resource]]))
(def app (wrap-resource identity "public"))
(defn cljs []
(shadow/repl :app))
| null | https://raw.githubusercontent.com/BTowersCoding/sort/5aff3c4b6d68f01e274edac3e2f80323b83032bf/src/user.clj | clojure | (ns user
(:require
[shadow.cljs.devtools.api :as shadow]
[ring.middleware.resource :refer [wrap-resource]]))
(def app (wrap-resource identity "public"))
(defn cljs []
(shadow/repl :app))
| |
7f7a13c2789ff9fc508eab0a48fb9da9d10ed07c8728ca4ea023dc41d15a40ee | igorhvr/bedlam | scaexpp.scm | ;;; "scaexpp.scm" syntax-case macros
Copyright ( C ) 1992
;;;
;;; Permission to copy this software, in whole or in part, to use this
;;; software for any lawful purpose, and to redistribute this software
;;; is granted subject to the restriction that all copies made of this
;;; software must include this copyright... | null | https://raw.githubusercontent.com/igorhvr/bedlam/b62e0d047105bb0473bdb47c58b23f6ca0f79a4e/iasylum/slib/3b2/scaexpp.scm | scheme | "scaexpp.scm" syntax-case macros
Permission to copy this software, in whole or in part, to use this
software for any lawful purpose, and to redistribute this software
is granted subject to the restriction that all copies made of this
software must include this copyright notice in full. This software
INCLUDING B... | Copyright ( C ) 1992
is provided AS IS , with NO WARRANTY , EITHER EXPRESS OR IMPLIED ,
NATURE WHATSOEVER .
Written by
(begin ((lambda ()
(letrec ((lambda-var-list (lambda (vars)
((letrec ((lvl (lambda (vars ls)
(if (pair? vars)
(lvl (cdr vars)
(cons (car vars)
ls))
(if (id? vars)
(cons vars
ls)
(if ... |
b1bd7783e39f73ee155d6c60ff2dba2e9dd56247e8cecb66a486112bb6a532d6 | metosin/compojure-api | exception.clj | (ns compojure.api.exception
(:require [ring.util.http-response :as response]
[clojure.walk :as walk]
[compojure.api.impl.logging :as logging]
[compojure.api.coercion.core :as cc]
[compojure.api.coercion.schema]))
;;
;; Default exception handlers
;;
(defn safe-handler
... | null | https://raw.githubusercontent.com/metosin/compojure-api/5c88f32fe56cdb6fcdb3cc506bb956943fcd8c17/src/compojure/api/exception.clj | clojure |
Default exception handlers
TODO: coercion should handle how to publish data
TODO: coercion should handle how to publish data
Logging
Mappings from other Exception types to our base types
| (ns compojure.api.exception
(:require [ring.util.http-response :as response]
[clojure.walk :as walk]
[compojure.api.impl.logging :as logging]
[compojure.api.coercion.core :as cc]
[compojure.api.coercion.schema]))
(defn safe-handler
"Writes :error to log with the exc... |
3782dce99098c78751c7d39325d12615223d42c2904daa768bcfdef2a461f0a6 | ocaml-ppx/ppx | stdppx.ml | module Appendable_list = Appendable_list
module Ansi_color = Ansi_color
module Array = Array
module Bytes = Bytes
module Comparable = Comparable
module Either = Either
module Exn = Exn
module Exn_with_backtrace = Exn_with_backtrace
module Filename = Filename
module Hashtbl = Hashtbl
module Tab... | null | https://raw.githubusercontent.com/ocaml-ppx/ppx/40e5a35a4386d969effaf428078c900bd03b78ec/stdppx/stdppx.ml | ocaml | The following types are re-exported here so that they are always
available in scope | module Appendable_list = Appendable_list
module Ansi_color = Ansi_color
module Array = Array
module Bytes = Bytes
module Comparable = Comparable
module Either = Either
module Exn = Exn
module Exn_with_backtrace = Exn_with_backtrace
module Filename = Filename
module Hashtbl = Hashtbl
module Tab... |
0b1d8f2e7e06df2f6021c6a7bfe2f22d0a33c59422fa00ec4c574d2c6d6ea89a | JonasDuregard/BNFC-meta | Bootstrap.hs | # LANGUAGE QuasiQuotes #
BNF Converter : Language definition
Copyright ( C ) 2004 Author : , ,
This program is free software ; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 2... | null | https://raw.githubusercontent.com/JonasDuregard/BNFC-meta/1526a2fbd7b01d374ebe2e49f78494f46d7472b8/Bootstrap/Bootstrap.hs | haskell | This was required for some reason but I don't recall why /Jonas
Running this code will generate a new LBNF quasi-quoter file using
A Grammar is a sequence of definitions
What is this
LGr. LGrammar ::= [LDef] ;
LDefView. LDef ::= "views" [Ident] ;
The rules of the grammar
Items
Categories
functional label... | # LANGUAGE QuasiQuotes #
BNF Converter : Language definition
Copyright ( C ) 2004 Author : , ,
This program is free software ; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 2... |
02c6ade4c4a3d49bd6ef04bccaf3865ac696dd5e3d33ec7a0f220b9a8935fcc6 | exercism/erlang | example.erl | -module(example).
-export([factors/1]).
%% only integers >0 are allowed
factors(Value) when not is_integer(Value); Value=<0 ->
exit(badarg);
%% 1 has no factors
factors(1) ->
[];
numbers > 1 have at least one factor
factors(Value) ->
factors(Value, 2, []).
factors(1, _, Acc) ->
lists:sort(Acc);
f... | null | https://raw.githubusercontent.com/exercism/erlang/57ac2707dae643682950715e74eb271f732e2100/exercises/practice/prime-factors/.meta/example.erl | erlang | only integers >0 are allowed
1 has no factors | -module(example).
-export([factors/1]).
factors(Value) when not is_integer(Value); Value=<0 ->
exit(badarg);
factors(1) ->
[];
numbers > 1 have at least one factor
factors(Value) ->
factors(Value, 2, []).
factors(1, _, Acc) ->
lists:sort(Acc);
factors(V, N, Acc) when V rem N=:=0 ->
factors(V ... |
3b2717d6101744a8f2790cadaa3f5027fdc72dab3c068834354f6210c9817a3c | kmi/irs | old.lisp | Mode : Lisp ; Package :
Author :
The Open University
(in-package "OCML")
(in-ontology egovernment)
comments from
1 . string type in several cases should be a class
2 . seperate out agencies , benefits and clients
3 link2 from agency to benefits and services
4 case - worker social - worker subclass of pro... | null | https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/ontologies/domains/egovernment/old.lisp | lisp | Package : |
Author :
The Open University
(in-package "OCML")
(in-ontology egovernment)
comments from
1 . string type in several cases should be a class
2 . seperate out agencies , benefits and clients
3 link2 from agency to benefits and services
4 case - worker social - worker subclass of professionals linked to person... |
0c6b717e39dff5ca980c9412587ae97f5ec43f1736a1c37133fbf66a6a25ee1a | igorhvr/bedlam | trnscrpt.scm | ; "trnscrpt.scm", transcript functions for Scheme.
Copyright ( c ) 1992 , 1993 , 1995 , 2007
;
;Permission to copy this software, to modify it, to redistribute it,
;to distribute modified versions, and to use it for any purpose is
;granted, subject to the following restrictions and understandings.
;
1 . Any copy ... | null | https://raw.githubusercontent.com/igorhvr/bedlam/b62e0d047105bb0473bdb47c58b23f6ca0f79a4e/iasylum/slib/3b2/trnscrpt.scm | scheme | "trnscrpt.scm", transcript functions for Scheme.
Permission to copy this software, to modify it, to redistribute it,
to distribute modified versions, and to use it for any purpose is
granted, subject to the following restrictions and understandings.
in full.
this software will be error-free, and I am under no oblig... | Copyright ( c ) 1992 , 1993 , 1995 , 2007
1 . Any copy made of this software must include this copyright notice
2 . I have made no warranty or representation that the operation of
3 . In conjunction with products arising from the use of this
(define transcript:port #f)
(define (transcript-on filename)
(set... |
fa8674387116e99f1cc17564ea1e4a33b9b42078a86a3576fc07b23dd89b8298 | ActaFi/cardano-staking-smart-contract | TestUtils.hs | # LANGUAGE NumericUnderscores #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE RecordWildCards #
# LANGUAGE LambdaCase #
# LANGUAGE TypeApplications #
|
Module : Tests . TestUtils
Description : Common tests utils functions .
Copyright : P2P Solutions Ltd.
License : GPL-3
Maintai... | null | https://raw.githubusercontent.com/ActaFi/cardano-staking-smart-contract/1548ba69b6cc6f2706668aee103e36c8c0bac19e/test/Tests/TestUtils.hs | haskell | # LANGUAGE OverloadedStrings #
transaction that failed meet the predicate. | # LANGUAGE NumericUnderscores #
# LANGUAGE RecordWildCards #
# LANGUAGE LambdaCase #
# LANGUAGE TypeApplications #
|
Module : Tests . TestUtils
Description : Common tests utils functions .
Copyright : P2P Solutions Ltd.
License : GPL-3
Maintainer :
Stability : develop
... |
9c9cd32b3bf14fca8bae3a030b00253d365ed64cb3ba9e56367b153d73047c60 | clojure-emacs/clj-suitable | ast.cljc | (ns suitable.compliment.sources.cljs.ast
(:require [clojure.pprint :refer [pprint *print-right-margin*]]
[clojure.zip :as z])
#?(:clj (:import [clojure.lang IPersistentList IPersistentMap IPersistentVector ISeq])))
(def V #?(:clj IPersistentVector
:cljs PersistentVector))
(def M #?(:clj IPers... | null | https://raw.githubusercontent.com/clojure-emacs/clj-suitable/ced9e834666510154de794821ecd9f2e680af2c8/src/main/suitable/compliment/sources/cljs/ast.cljc | clojure | (ns suitable.compliment.sources.cljs.ast
(:require [clojure.pprint :refer [pprint *print-right-margin*]]
[clojure.zip :as z])
#?(:clj (:import [clojure.lang IPersistentList IPersistentMap IPersistentVector ISeq])))
(def V #?(:clj IPersistentVector
:cljs PersistentVector))
(def M #?(:clj IPers... | |
45ed60a917d1ec5b4dc6f4d146ebf0c2cfed548e2e0ef57f132da5c5e2151368 | igorhvr/bedlam | srfi-89.scm | ; (define* (g a (b a) (key: k (* a b))) (list a b k)) ; to test
(require-extension (lib iasylum/srfi-88))
(module iasylum/srfi-89
(define* lambda* $hash-keyword $perfect-hash-table-lookup $undefined $req-key $opt-key $process-keys)
(include "srfi-89-code.scm"))
| null | https://raw.githubusercontent.com/igorhvr/bedlam/b62e0d047105bb0473bdb47c58b23f6ca0f79a4e/iasylum/srfi-89.scm | scheme | (define* (g a (b a) (key: k (* a b))) (list a b k)) ; to test |
(require-extension (lib iasylum/srfi-88))
(module iasylum/srfi-89
(define* lambda* $hash-keyword $perfect-hash-table-lookup $undefined $req-key $opt-key $process-keys)
(include "srfi-89-code.scm"))
|
a1d3a3d8f85ca57c01bbc35685acad12835dfb86a788f1bc264097c1ead9375f | mransan/bs-protobuf-demo | conversion_test.ml | open Messages_types
let log {v; _} = Js.log v
let () =
Conversion.convert C (default_temperature ~v:100. ()) |> log;
Conversion.convert C (default_temperature ()) |> log;
Conversion.convert F (default_temperature ()) |> log;
Conversion.convert C (default_temperature ~u:F ~v:32.0 ()) |> log
let () =
Js.... | null | https://raw.githubusercontent.com/mransan/bs-protobuf-demo/638b5f01b5b13e066484e3e9e9e8d4dc19d6713d/src/conversion_test.ml | ocaml | open Messages_types
let log {v; _} = Js.log v
let () =
Conversion.convert C (default_temperature ~v:100. ()) |> log;
Conversion.convert C (default_temperature ()) |> log;
Conversion.convert F (default_temperature ()) |> log;
Conversion.convert C (default_temperature ~u:F ~v:32.0 ()) |> log
let () =
Js.... | |
1a4eedfde55d350069cb481ae34e5b5229481c7c1bbec2140301c5022236de5b | udem-dlteam/ribbit | ctak.scm | (define ctak
(lambda (x y z)
(call/cc
(lambda (k)
(ctak-aux k x y z)))))
(define ctak-aux
(lambda (k x y z)
(if (not (< y x))
(k z)
(call/cc
(lambda (k)
(ctak-aux
k
(call/cc (lambda (k) (ctak-aux k (- x 1) y z)))
(call/cc (lambd... | null | https://raw.githubusercontent.com/udem-dlteam/ribbit/ad8c2f504a01ada99c3d3480149b65a627bd9f69/bench/ctak.scm | scheme | (define ctak
(lambda (x y z)
(call/cc
(lambda (k)
(ctak-aux k x y z)))))
(define ctak-aux
(lambda (k x y z)
(if (not (< y x))
(k z)
(call/cc
(lambda (k)
(ctak-aux
k
(call/cc (lambda (k) (ctak-aux k (- x 1) y z)))
(call/cc (lambd... | |
4ed86c58cbeb0c76194e546b75e9ef6e873a537850be0aa60b7eb31c79991ac4 | MastodonC/kixi.hecuba | validate.clj | (ns kixi.hecuba.data.validate
"Data quality assurance and validation."
(:require [clj-time.core :as t]
[clj-time.coerce :as tc]
[kixi.hecuba.data :as data]
[kixi.hecuba.storage.db :as db]
[clojure.tools.logging :as log]
[qbits.hayt :as hayt]
[clojure.e... | null | https://raw.githubusercontent.com/MastodonC/kixi.hecuba/467400bbe670e74420a2711f7d49e869ab2b3e21/src/clj/kixi/hecuba/data/validate.clj | clojure | (ns kixi.hecuba.data.validate
"Data quality assurance and validation."
(:require [clj-time.core :as t]
[clj-time.coerce :as tc]
[kixi.hecuba.data :as data]
[kixi.hecuba.storage.db :as db]
[clojure.tools.logging :as log]
[qbits.hayt :as hayt]
[clojure.e... | |
6a3a00bbd36736e52737a383e0056cd3207dbd5bedb7a02eeef90e7efae98a87 | zkincaid/srk | zZ.ml | type t = Mpzf.t
let pp = Mpzf.print
let show = SrkUtil.mk_show pp
let hash x = Hashtbl.hash (Mpzf.to_string x)
let compare = Mpzf.cmp
let equal x y = compare x y = 0
let leq x y = compare x y <= 0
let lt x y = compare x y < 0
let add = Mpzf.add
let sub = Mpzf.sub
let mul = Mpzf.mul
let negate = Mpzf.neg
let one = M... | null | https://raw.githubusercontent.com/zkincaid/srk/435be6bb3471451ee28b51e9d711dce20899c20d/src/zZ.ml | ocaml | type t = Mpzf.t
let pp = Mpzf.print
let show = SrkUtil.mk_show pp
let hash x = Hashtbl.hash (Mpzf.to_string x)
let compare = Mpzf.cmp
let equal x y = compare x y = 0
let leq x y = compare x y <= 0
let lt x y = compare x y < 0
let add = Mpzf.add
let sub = Mpzf.sub
let mul = Mpzf.mul
let negate = Mpzf.neg
let one = M... | |
2f9ebb74f7e46a9129dd8b7a1b2c16bb359450aeaa3aa55c32dfed9c3c0f35e6 | sgbj/MaximaSharp | zhemm.lisp | ;;; Compiled by f2cl version:
( " f2cl1.l , v 2edcbd958861 2012/05/30 03:34:52 toy $ "
" f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl5.l , v 3fe93de3be82 2012/05/06 02:17:14 toy ... | null | https://raw.githubusercontent.com/sgbj/MaximaSharp/75067d7e045b9ed50883b5eb09803b4c8f391059/Test/bin/Debug/Maxima-5.30.0/share/maxima/5.30.0/share/lapack/blas/zhemm.lisp | lisp | Compiled by f2cl version:
Using Lisp CMU Common Lisp 20d (20D Unicode)
Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t)
(:coerce-assigns :as-needed) (:array-type ':array)
(:array-slicing t) (:declare-common nil)
(:float-format double-float)) | ( " f2cl1.l , v 2edcbd958861 2012/05/30 03:34:52 toy $ "
" f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl5.l , v 3fe93de3be82 2012/05/06 02:17:14 toy $ "
" f2cl6.l , v 1d5cbacbb... |
e85722f8bce07831c21129390817c6651fd0d88447f21bf04d298e6f7802a3cb | kostmo/circleci-failure-tracker | SillyMonoids.hs | {-# LANGUAGE OverloadedStrings #-}
-- | These Monoid instances are apparently required
-- to extract primitives from JSON fields.
-- They are arbitrary instances, as we don't
-- actually use the instance methods.
module SillyMonoids where
import GHC.Int (Int64)
instance Semigroup Int where
(<>) = (+)
i... | null | https://raw.githubusercontent.com/kostmo/circleci-failure-tracker/393d10a72080bd527fdb159da6ebfea23fcd52d1/app/fetcher/src/SillyMonoids.hs | haskell | # LANGUAGE OverloadedStrings #
| These Monoid instances are apparently required
to extract primitives from JSON fields.
They are arbitrary instances, as we don't
actually use the instance methods. |
module SillyMonoids where
import GHC.Int (Int64)
instance Semigroup Int where
(<>) = (+)
instance Monoid Int where
mempty = 0
instance Semigroup Int64 where
(<>) = (+)
instance Monoid Int64 where
mempty = 0
instance Semigroup Bool where
(<>) = (||)
instance Monoid Bool where
mempty = Fa... |
75e8eb6482756a0e3be1e788b7de1a64ad8e1f4fcd1d14a2279f037e5e5330b8 | HaxeFoundation/ocamllibs | minizip.ml | (***********************************************************************)
(* *)
The library
(* *)
, projet Cristal , ... | null | https://raw.githubusercontent.com/HaxeFoundation/ocamllibs/97e498e1b3bc2b3f08cfcae874b8529e4292bc3d/ziplib/test/minizip.ml | ocaml | *********************************************************************
the special exception on linking descr... | The library
, projet Cristal , INRIA Rocquencourt
Copyright 2001 Institut National de Recherche en Informatique et
en Automatique . All rights reserved . This file is distributed
under the terms of the GNU Library General Pu... |
e613bd3eb2f03fb656b2bcf117437882453c3731a4f47d36468c32d0c6f97b2d | i-am-tom/learn-me-a-haskell | Delete.hs | # OPTIONS_HADDOCK not - home #
# LANGUAGE AllowAmbiguousTypes #
{-# LANGUAGE DataKinds #-}
# LANGUAGE FlexibleInstances #
# LANGUAGE FunctionalDependencies #
{-# LANGUAGE GADTs #-}
# LANGUAGE KindSignatures #
# LANGUAGE MultiParamTypeClasses #
{-# LANGUAGE ScopedTypeV... | null | https://raw.githubusercontent.com/i-am-tom/learn-me-a-haskell/08271f6cdd4fc88c26ed7a62ed1e786a900824be/src/HTree/Delete.hs | haskell | # LANGUAGE DataKinds #
# LANGUAGE GADTs #
# LANGUAGE ScopedTypeVariables #
| Very similar to 'insert', we present 'delete' as our interface to our
users. If we know the element we're deleting, and the tree from which
we're deleting it, we can determine the tree that we'll have afterw... | # OPTIONS_HADDOCK not - home #
# LANGUAGE AllowAmbiguousTypes #
# LANGUAGE FlexibleInstances #
# LANGUAGE FunctionalDependencies #
# LANGUAGE KindSignatures #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE TypeApplications #
# LANGUAGE UndecidableInstances #
|
Module : HTree . De... |
8a71694125ecec3c35f4ea96b336b9361f8fc149fe018295ccaca372c237950f | soegaard/pyffi | test-dict.rkt | #lang racket/base
(require pyffi)
(require (for-syntax racket/base syntax/parse racket/syntax))
(initialize)
(finish-initialization)
#;(let ([d (pydict-new)])
(pydict-set! d "foo" "f")
(pydict-set! d "bar" 42)
(pydict-delete! d "foo")
d
#;(list (dict-keys d) (dict-values d))
#;(equa... | null | https://raw.githubusercontent.com/soegaard/pyffi/8691a418be56ae569c3cfb67a8f07b5719e16da4/pyffi-tests/tests/test-dict.rkt | racket | (let ([d (pydict-new)])
(list (dict-keys d) (dict-values d))
(equal? (list (dict-keys d) (dict-values d))
(let ([d (pydict-new)])
(let ([d1 (pydict-new)] [d2 (pydict-new)]) | #lang racket/base
(require pyffi)
(require (for-syntax racket/base syntax/parse racket/syntax))
(initialize)
(finish-initialization)
(pydict-set! d "foo" "f")
(pydict-set! d "bar" 42)
(pydict-delete! d "foo")
d
(list '("bar") '(42))))
(pydict-set! d "foo" "f")
(pydict-se... |
1f6018c80c993d14b2e385184b91ada19d2b9c376af2854941b70118359e44fa | dieswaytoofast/erlasticsearch | elasticsearch_thrift.erl | %%
Autogenerated by Thrift Compiler ( 0.9.0 )
%%
%% DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
%%
-module(elasticsearch_thrift).
-behaviour(thrift_service).
-include("elasticsearch_types.hrl").
-export([struct_info/1, function_info/2]).
struct_info('i am a dummy struct') -> undefined.
%%% i... | null | https://raw.githubusercontent.com/dieswaytoofast/erlasticsearch/70285a63dd1c2142fb8949458eed16a8389d5636/src/elasticsearch_thrift.erl | erlang |
DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
interface
execute(This, Request) | Autogenerated by Thrift Compiler ( 0.9.0 )
-module(elasticsearch_thrift).
-behaviour(thrift_service).
-include("elasticsearch_types.hrl").
-export([struct_info/1, function_info/2]).
struct_info('i am a dummy struct') -> undefined.
function_info('execute', params_type) ->
{struct, [{1, {struct, {'elasticsearch_... |
9b935951e8e16966a79482da3dc9295a3f37504942d7cdbcd9eee4d2d2c6329b | grzm/awyeah-api | api.clj | Copyright ( c ) Cognitect , Inc.
;; All rights reserved.
(ns com.grzm.awyeah.client.api
"API functions for using a client to interact with AWS services."
(:require
[clojure.string :as str]
[clojure.tools.logging :as log]
[com.grzm.awyeah.client.impl :as client]
[com.grzm.awyeah.client.protocol :as cl... | null | https://raw.githubusercontent.com/grzm/awyeah-api/1810bf624da2be58c77813106a1d51e32db11690/src/com/grzm/awyeah/client/api.clj | clojure | All rights reserved. | Copyright ( c ) Cognitect , Inc.
(ns com.grzm.awyeah.client.api
"API functions for using a client to interact with AWS services."
(:require
[clojure.string :as str]
[clojure.tools.logging :as log]
[com.grzm.awyeah.client.impl :as client]
[com.grzm.awyeah.client.protocol :as client.protocol]
[com.g... |
067efd1a120deec96b387ac736a0e3fa78238955a5754e2de7832120d69675ca | mokus0/junkbox | Approximator.hs | {-# OPTIONS -fglasgow-exts #-}
- " Approximator.hs "
- ( c ) 2008
- "Approximator.hs"
- (c) 2008 James Cook
-}
module Approximator (summarize, Summary(..)) where
import Data.Ratio
import Data.Array
import Control.Concurrent.STM
import Random
class (Ix i) => Summary s i | s -> i where
threadsafe ::... | null | https://raw.githubusercontent.com/mokus0/junkbox/151014bbef9db2b9205209df66c418d6d58b0d9e/Haskell/Experiments/Approximator/Approximator.hs | haskell | # OPTIONS -fglasgow-exts #
function to summarize
input-value generator
input-value bin selector
bin range
ticker and approximation
lexically scoped type variables would allow me to drop this line...
function to summarize
input-value generator
input-value bin selector
bin range
empty summary, ticker, and appr... |
- " Approximator.hs "
- ( c ) 2008
- "Approximator.hs"
- (c) 2008 James Cook
-}
module Approximator (summarize, Summary(..)) where
import Data.Ratio
import Data.Array
import Control.Concurrent.STM
import Random
class (Ix i) => Summary s i | s -> i where
threadsafe :: s -> Bool
threadsafe _ = Fals... |
2a4723f5ab11110a5dc70e5ed3894f482d7b3aac078646bcbb5fd626c37af614 | quil-lang/qvm | sbcl-intrinsics.lisp | ;;;; sbcl-intrinsics.lisp
;;;;
Author :
(defpackage #:qvm-intrinsics
(:use #:cl #:sb-ext #:sb-c))
| null | https://raw.githubusercontent.com/quil-lang/qvm/de95ead6e7df70a1f8e0212455a802bd0cef201c/src/impl/sbcl-intrinsics.lisp | lisp | sbcl-intrinsics.lisp
| Author :
(defpackage #:qvm-intrinsics
(:use #:cl #:sb-ext #:sb-c))
|
54c3c85e27f127abe9f0599c752089e2f7a03b02405284859631b972dd9de9d2 | TikhonJelvis/TPL | Main.hs | module Main where
import System.Environment
import Text.Printf (printf)
import TPL.Run
version :: String
version = "0.6.1"
welcome :: String
welcome = printf "Welcome to TPL version %s\nType \"--quit\" to quit." version
main :: IO ()
main = getArgs >>= go
where go [] = putSt... | null | https://raw.githubusercontent.com/TikhonJelvis/TPL/81e01e405ef45d0bd918ad3a1197dea3ee1c1616/src/TPL/Main.hs | haskell | quit\" to quit." version | module Main where
import System.Environment
import Text.Printf (printf)
import TPL.Run
version :: String
version = "0.6.1"
welcome :: String
main :: IO ()
main = getArgs >>= go
where go [] = putStrLn welcome >> repl
go ls = mapM_ runFile ls
|
c61e83c44049b712d4c95ed83726ddf5576308c778ab7f08d1257b5600d1845d | mhkoji/Senn | process-input.lisp | ;;; Under construction
(defpackage :senn.fcitx.im2.process-input
(:use :cl)
(:export :execute))
(in-package :senn.fcitx.im2.process-input)
(defstruct state chars)
(defgeneric execute (ime state key))
(defmethod execute ((ime senn.im2:ime) (s state)
(key senn.fcitx.keys:key))
(cond ((senn.fc... | null | https://raw.githubusercontent.com/mhkoji/Senn/0ea3db80ef9f23b2e2142706053e6a253a73fe12/senn/src/fcitx/im2/process-input.lisp | lisp | Under construction | (defpackage :senn.fcitx.im2.process-input
(:use :cl)
(:export :execute))
(in-package :senn.fcitx.im2.process-input)
(defstruct state chars)
(defgeneric execute (ime state key))
(defmethod execute ((ime senn.im2:ime) (s state)
(key senn.fcitx.keys:key))
(cond ((senn.fcitx.keys:char-p key)
... |
5b577be14f33fe24a0bf11ab681a6d9a3080c18d8e502cfa8b7def36e87861e1 | ocaml-multicore/domainslib | chan.ml | (* mutex_condvar will be used per domain; so multiple fibers or
systhreads may share a mutex_condvar variable *)
type mutex_condvar = {
mutex: Mutex.t;
condition: Condition.t
}
type waiting_notified =
| Waiting
| Notified
type 'a contents =
| Empty of {receivers: ('a option ref * mutex_condvar) Fun_queue... | null | https://raw.githubusercontent.com/ocaml-multicore/domainslib/3308cc20d254c0532e83847fd6581dcb6902b1a8/lib/chan.ml | ocaml | mutex_condvar will be used per domain; so multiple fibers or
systhreads may share a mutex_condvar variable
[send'] is shared by both the blocking and polling versions. Returns a
* boolean indicating whether the send was successful. Hence, it always returns
* [true] if [polling] is [false].
The channel is empt... | type mutex_condvar = {
mutex: Mutex.t;
condition: Condition.t
}
type waiting_notified =
| Waiting
| Notified
type 'a contents =
| Empty of {receivers: ('a option ref * mutex_condvar) Fun_queue.t}
| NotEmpty of {senders: ('a * waiting_notified ref * mutex_condvar) Fun_queue.t; messages: 'a Fun_queue.t}
ty... |
07475688316bb1e1c37469a378289210ede4a7be98e1208f1af487cd9bd27c73 | odj/Ouch | SDF.hs | ------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Module : Ouch . Output . SDF
-- Maintainer :
-- Stability : Unstable
-- Portability :
Copyright ( c ) 2010 Orion... | null | https://raw.githubusercontent.com/odj/Ouch/ed20599214cf77b0cb81cc7cefb4cd9c35bc7cf7/Ouch/Output/SDF.hs | haskell | ----------------------------------------------------------------------------
------------------------------------------------------------------------------
Module : Ouch . Output . SDF
Maintainer :
Stability : Unstable
Portability :
--------------------------------------------------... |
Copyright ( c ) 2010 Orion
This file is part of Ouch , a chemical informatics toolkit
written entirely in Haskell .
Ouch 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 , e... |
be0437ea17215645a146fc72114c15a0c2ba48c2ba779153b5612764ded94074 | commsor/titanoboa | processor.clj | Copyright ( c ) Commsor Inc. All rights reserved .
; The use and distribution terms for this software are covered by the
; GNU Affero General Public License v3.0 (/#AGPL)
; which can be found in the LICENSE at the root of this distribution.
; By using this software in any fashion, you are agreeing to be bound by
; th... | null | https://raw.githubusercontent.com/commsor/titanoboa/ffe3e1e58f89169092d7b6a3a45e1707a0ecc9ee/src/clj/titanoboa/processor.clj | clojure | The use and distribution terms for this software are covered by the
GNU Affero General Public License v3.0 (/#AGPL)
which can be found in the LICENSE at the root of this distribution.
By using this software in any fashion, you are agreeing to be bound by
the terms of this license.
You must not remove this notice,... | Copyright ( c ) Commsor Inc. All rights reserved .
(ns titanoboa.processor
(:require [clojure.core.async :as async :refer [go-loop go >! <! >!! <!! thread chan timeout onto-chan dropping-buffer]]
[com.stuartsierra.component :as component]
[clojure.tools.logging :as log]
[clojure... |
9818aaab3f4ec891b4f3a5e095dfdb5e787f9e8b713cf0ee17f486eb33810d89 | gafiatulin/codewars | Digitize.hs | Digitize
-- /
module Digitize where
import Data.Char (digitToInt)
digitize :: Integer -> [Integer]
digitize = map (toInteger . digitToInt) . show
| null | https://raw.githubusercontent.com/gafiatulin/codewars/535db608333e854be93ecfc165686a2162264fef/src/7%20kyu/Digitize.hs | haskell | / | Digitize
module Digitize where
import Data.Char (digitToInt)
digitize :: Integer -> [Integer]
digitize = map (toInteger . digitToInt) . show
|
d74cfb446ce945530fd7e32aa8a5668b1cb8a75e9faf9bc4aed6129f0122dcbf | mvdcamme/meta-tracing-JIT | kcfa2.scm | n = 2
# terms = 69
((lambda (f1)
(let ((a (f1 #t)))
(f1 #f)))
(lambda (x1) ((lambda (f2)
(let ((b (f2 #t)))
(let ((c (f2 #f)))
(f2 #t))))
(lambda (x2) ((lambda (z) (z x1 x2)) (lambda (y1 y2) y1))))))
| null | https://raw.githubusercontent.com/mvdcamme/meta-tracing-JIT/640af917e473f3793ab12791dcb2c80f617b8a0d/benchmarks/kcfa2.scm | scheme | n = 2
# terms = 69
((lambda (f1)
(let ((a (f1 #t)))
(f1 #f)))
(lambda (x1) ((lambda (f2)
(let ((b (f2 #t)))
(let ((c (f2 #f)))
(f2 #t))))
(lambda (x2) ((lambda (z) (z x1 x2)) (lambda (y1 y2) y1))))))
| |
4fcd8892a058292ecf82858079cd12e56a6b485ba5fe7ef36b1fe4c16c1e432d | VitorCBSB/HetrisV2 | Credits.hs | {-# LANGUAGE OverloadedStrings #-}
module Credits
( inputCredits,
tickCredits,
renderCredits,
)
where
import Constants (windowSize)
import Control.Lens
import InitialStates (initialMainMenuState)
import qualified SDL
import Types
import UtilsSDL (renderTextCentered)
inputCredits :: SDL.EventPayload -> IO... | null | https://raw.githubusercontent.com/VitorCBSB/HetrisV2/2544e8ce56a4d0daba9126642118f0504215f742/app/Credits.hs | haskell | # LANGUAGE OverloadedStrings # |
module Credits
( inputCredits,
tickCredits,
renderCredits,
)
where
import Constants (windowSize)
import Control.Lens
import InitialStates (initialMainMenuState)
import qualified SDL
import Types
import UtilsSDL (renderTextCentered)
inputCredits :: SDL.EventPayload -> IO MainStatePhase
inputCredits event ... |
3cc3df8fd1e16b13c1c9da2052e1a1cf2f5df49f72d1e704a1ee73b49e626d74 | haskell/hackage-server | Hook.hs | module Distribution.Server.Framework.Hook (
Hook,
newHook,
registerHook,
registerHookJust,
runHook,
runHook_,
) where
import Data.IORef
import Control.Monad.Trans (MonadIO, liftIO)
-- | A list of actions associated with an event.
--
newtype Hook a b = Hook (IORef [a -> IO b])
newHook :: IO... | null | https://raw.githubusercontent.com/haskell/hackage-server/6c53b708ded21bef40ce04a43741fc921ecafcaa/src/Distribution/Server/Framework/Hook.hs | haskell | | A list of actions associated with an event.
registers a hook to be run *before* all of the previously registered hooks.
is this the best strategy? relying on ordering rules of any kind can introduce
nasty bugs. | module Distribution.Server.Framework.Hook (
Hook,
newHook,
registerHook,
registerHookJust,
runHook,
runHook_,
) where
import Data.IORef
import Control.Monad.Trans (MonadIO, liftIO)
newtype Hook a b = Hook (IORef [a -> IO b])
newHook :: IO (Hook a b)
newHook = fmap Hook $ newIORef []
regis... |
84e172fbbb6b876fd0e37a297245f45bd0955a82bc099c0452a290fc699574e6 | whitequark/ocaml-m17n | m17n_sedlexing.mli | type lexbuf
* [ encode ? normalize uchars ] returns the UTF-8 encoded string
corresponding to the character list [ uchars ] , optionally
normalizing it as [ normalize ] .
corresponding to the character list [uchars], optionally
normalizing it as [normalize]. *)
val encode : ?normalize:[< `NFC | `NF... | null | https://raw.githubusercontent.com/whitequark/ocaml-m17n/adc9db47f19cf4a0e5b2d7d1e80e832dc1cd8ab7/src/m17n_sedlexing.mli | ocaml | * [utf8_sub_lexeme ?normalize range lexbuf] ≡
[encode ?normalize (sub_lexeme range lexbuf)]
* [expand_token lexbuf f] memorizes the token start position
in [lexbuf], calls [f ()], then replaces the token start position
with the memorized one, thus allowing you to
* [location lexbuf] returns a [Location.t... | type lexbuf
* [ encode ? normalize uchars ] returns the UTF-8 encoded string
corresponding to the character list [ uchars ] , optionally
normalizing it as [ normalize ] .
corresponding to the character list [uchars], optionally
normalizing it as [normalize]. *)
val encode : ?normalize:[< `NFC | `NF... |
474ec4b2582816e19b5f7a70b37d8e482dbf9da3edce6d04ded331bebabb8263 | uents/sicp | ch2.2.4-planet-sicp.scm | SICP Chapter 2.2.4
A Picture Language ( using planet / sicp.ss )
;;;;
;;;; Author @uents on twitter
;;;;
#lang racket
(require "../misc.scm")
@NOTE this package includes some text codes
(require (planet "sicp.ss" ("soegaard" "sicp.plt" 2 1)))
;;; text code
(define (corner-split painter n)
(if (= n 0)
... | null | https://raw.githubusercontent.com/uents/sicp/c29b2582feee452ec0714fdc1eec6b406b94cd27/ch2/ch2.2.4-planet-sicp.scm | scheme |
Author @uents on twitter
text code
planet/sicp.ssでは実装済み
a.
b.
c.
d.
planet/sicp.ssでは実装済み | SICP Chapter 2.2.4
A Picture Language ( using planet / sicp.ss )
#lang racket
(require "../misc.scm")
@NOTE this package includes some text codes
(require (planet "sicp.ss" ("soegaard" "sicp.plt" 2 1)))
(define (corner-split painter n)
(if (= n 0)
painter
(let ((up (up-split painter (- n 1)))
... |
0fc353f0a6bb2682b1144c28b54fe8343cc25f39fc074d6b48d674c1321de31c | Feuerlabs/kvdb | kvdb_trans.erl | %%%---- BEGIN COPYRIGHT -------------------------------------------------------
%%%
Copyright ( C ) 2012 Feuerlabs , Inc. All rights reserved .
%%%
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 ... | null | https://raw.githubusercontent.com/Feuerlabs/kvdb/c8c71bf5422a8fa2e58c608c65629be7a58e27f3/src/kvdb_trans.erl | erlang | ---- BEGIN COPYRIGHT -------------------------------------------------------
---- END COPYRIGHT ---------------------------------------------------------
@hidden
@doc
This module functions roughly like a backend plugin, but with a set of
special-purpose functions for starting and ending transactions.
Each tra... | Copyright ( C ) 2012 Feuerlabs , Inc. All rights reserved .
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 /.
@author
KVDB Transaction plugin
-module(kvdb_trans).
-behaviour(kvdb).... |
5537373e80a41d993d4e1705c133eb8fdf1718d5cd471f872821ebd1319efae3 | fiddlerwoaroof/objc-lisp-bridge | notification.lisp | (defpackage :objc.notification
(:use :cl )
(:export
#:main-loop-ticker
#:dnc
#:observe-notifications
#:*mailbox*
#:setup-notifications))
(in-package :objc.notification)
(serapeum:eval-always
(named-readtables:in-readtable :objc-readtable))
(defun main-loop-ticker ()
(let ((main-run-loop [#@NSRun... | null | https://raw.githubusercontent.com/fiddlerwoaroof/objc-lisp-bridge/6bcb7ec962348b7da611291647534479d7857afd/notification.lisp | lisp | (defpackage :objc.notification
(:use :cl )
(:export
#:main-loop-ticker
#:dnc
#:observe-notifications
#:*mailbox*
#:setup-notifications))
(in-package :objc.notification)
(serapeum:eval-always
(named-readtables:in-readtable :objc-readtable))
(defun main-loop-ticker ()
(let ((main-run-loop [#@NSRun... | |
a9375ea02a1863bf8e6d8857b6e3b0e4743bf6264baaaf33170696fc030e7113 | kennytilton/celtk | load.lisp | ;;;
;;;
1 . Grab these :
;;;
Celtk :
CFFI : -lisp.net/project/cffi/releases/cffi_0.9.1.tar.gz
: -lisp.net/cgi-bin/darcsweb/darcsweb.cgi?r=cl-opencl%20cl-opengl;a=summary
;;
;;; At the bottom of any of those pages look for a "Download tarball" link. Except cl-opengl, those guys
... | null | https://raw.githubusercontent.com/kennytilton/celtk/8630194751acd7aebcb55df9b216e275d3415589/load.lisp | lisp |
a=summary
At the bottom of any of those pages look for a "Download tarball" link. Except cl-opengl, those guys
are not download-friendly.
If you have Debian or Gentoo and the Common Lisp Controller installed, you also
already have it. Otherwise you can find it in the Sourceforge cCLan CVS r... | 1 . Grab these :
Celtk :
CFFI : -lisp.net/project/cffi/releases/cffi_0.9.1.tar.gz
2 . Get ASDF loaded . From we learn :
" If you have , OpenMCL , ECL or ACL , it 's bundled and you need only ( require ' asdf ) .
3 . If the automatic options in step 2 could not be used , adjust the p... |
38e08b9e379752bcf487c36d70cefec4f4c70f708c163ffabd475605c5a9de24 | lukeg101/lplzoo | Parser.hs | module Parser where
import Mu
import Control.Applicative (Applicative(..))
import Control.Monad (liftM, ap, guard)
import Data.Char
Implementation based on ideas in Monadic Parser Combinators paper
/~pszgmh/monparsing.pdf
Implementation based on ideas in Monadic Parser Combinators paper
/~pszgmh/monparsin... | null | https://raw.githubusercontent.com/lukeg101/lplzoo/463ca93f22f018ee07bdc18d84b3b0c966d51766/Mu/Parser.hs | haskell | parser deconstructor
failure parser
parses an element and returns if they satisfy a predicate
parses chars only
parses a string of chars
parses 0 or more elements
parses 0 or more whitespace
trims whitespace between an expression
parses a single string
apply a parser to a string
left recursion
bracket pars... | module Parser where
import Mu
import Control.Applicative (Applicative(..))
import Control.Monad (liftM, ap, guard)
import Data.Char
Implementation based on ideas in Monadic Parser Combinators paper
/~pszgmh/monparsing.pdf
Implementation based on ideas in Monadic Parser Combinators paper
/~pszgmh/monparsin... |
75414d810c10790e1fc7675f555bb2b081e78d5442f573ae5bc3b0a24d04e924 | Frechmatz/cl-synthesizer | example-1.lisp | (defpackage :cl-synthesizer-modules-ramp-example-1
(:use :cl))
(in-package :cl-synthesizer-modules-ramp-example-1)
(defun make-voice (name environment &key (exponential nil))
(declare (ignore name))
(let ((rack
(cl-synthesizer:make-rack :environment environment)))
(cl-synthesizer:add-module
r... | null | https://raw.githubusercontent.com/Frechmatz/cl-synthesizer/a7be032b504d1b7d7d8bcdb3586df16316b4f2d6/src/modules/ramp/example-1.lisp | lisp | (run-example) | (defpackage :cl-synthesizer-modules-ramp-example-1
(:use :cl))
(in-package :cl-synthesizer-modules-ramp-example-1)
(defun make-voice (name environment &key (exponential nil))
(declare (ignore name))
(let ((rack
(cl-synthesizer:make-rack :environment environment)))
(cl-synthesizer:add-module
r... |
166c7a83d918acbdce057b2191f688ad44a0f188c87bc3ebebf58cb6e7b7de16 | dramforever/finlog | Mark.hs | module Finlog.Utils.Mark
( module Finlog.Utils.Mark
, module Data.Text.Prettyprint.Doc
) where
import Control.Monad.Except
import Data.Text.Prettyprint.Doc
import Data.Text.Prettyprint.Doc.Render.Terminal
import Text.Megaparsec
data Ann = HeadWordAnn | PositionAnn | CodeAnn
deriving (Show, Eq)
annSty... | null | https://raw.githubusercontent.com/dramforever/finlog/ca642dfa7ea89b131ab13b6b267fabf317e12d9c/src/Finlog/Utils/Mark.hs | haskell | module Finlog.Utils.Mark
( module Finlog.Utils.Mark
, module Data.Text.Prettyprint.Doc
) where
import Control.Monad.Except
import Data.Text.Prettyprint.Doc
import Data.Text.Prettyprint.Doc.Render.Terminal
import Text.Megaparsec
data Ann = HeadWordAnn | PositionAnn | CodeAnn
deriving (Show, Eq)
annSty... | |
474d0ee20221bc9d57fe64d7a0018d63b2fdd90b58ec2b20dab2bed01c810928 | Twinside/Eq | UnicodeSymbols.hs | module Language.Eq.UnicodeSymbols where
varAssoc :: [(String, String)]
varAssoc = map (\(v, i) -> (v, [toEnum i]))
[ ("alpha", alpha)
, ("beta", beta)
, ("chi", chi)
, ("gamma", gamma)
, ("Gamma", bigGamma)
, ("delta", delta)
, ("theta", theta)
, ("rho" , rho)
, ("phi", phi)
... | null | https://raw.githubusercontent.com/Twinside/Eq/60105372d55420735b722245db7021c239c812f4/Language/Eq/UnicodeSymbols.hs | haskell | ⋯
⊢
----------------------------------
----------------------------------
∀
∄
∅
∆
∇
---------------------------------
Set membership
---------------------------------
∈
∉
∊
∋
---------------------------------
N-ary operators
--------------------------------
∐
---------------------------------
... | module Language.Eq.UnicodeSymbols where
varAssoc :: [(String, String)]
varAssoc = map (\(v, i) -> (v, [toEnum i]))
[ ("alpha", alpha)
, ("beta", beta)
, ("chi", chi)
, ("gamma", gamma)
, ("Gamma", bigGamma)
, ("delta", delta)
, ("theta", theta)
, ("rho" , rho)
, ("phi", phi)
... |
60c635ff5627c62608960bfe561247af5f760e8d6ac36e0af66238a7d23828c3 | joelwilliamson/bimap | BimapExt.hs | # LANGUAGE Trustworthy #
|
An auxiliary module that exports the ' IsList ' class from " GHC.Exts " . We use
this intermediate module to isolate a safe feature from an otherwise non - safe
module , and prevent all of " Data . Bimap " from being marked as not safe just
because we are importing " GHC.Exts " .
T... | null | https://raw.githubusercontent.com/joelwilliamson/bimap/10aba63a545e8f35fe213c73ff540df86227592e/Data/BimapExt.hs | haskell | # LANGUAGE Trustworthy #
|
An auxiliary module that exports the ' IsList ' class from " GHC.Exts " . We use
this intermediate module to isolate a safe feature from an otherwise non - safe
module , and prevent all of " Data . Bimap " from being marked as not safe just
because we are importing " GHC.Exts " .
T... | |
4bbe864d9983ed10494a1c5e1110f6b67cb9bdb5f46826398c26aca979567489 | takano-akio/fast-builder | Bstr.hs | # LANGUAGE CPP #
#define LIB Data.ByteString.Builder
#define NAME Bstr
#include "template.hs"
rebuild :: Builder -> Builder
rebuild = id
| null | https://raw.githubusercontent.com/takano-akio/fast-builder/d499ffb338300c1df5479e3d8918d986803a7243/benchmarks/aeson/Bstr.hs | haskell | # LANGUAGE CPP #
#define LIB Data.ByteString.Builder
#define NAME Bstr
#include "template.hs"
rebuild :: Builder -> Builder
rebuild = id
| |
fba3055f5bbcd7ff7ccf6e356aabb8bbf08b71dd668b09c05b456917b39ec77d | tezos/tezos-mirror | rollup_node.mli | (*****************************************************************************)
(* *)
(* Open Source License *)
Copyright ( c ) 2023 Nomadic Labs < >
(* ... | null | https://raw.githubusercontent.com/tezos/tezos-mirror/1dbb665c3898d770f2deaba14db20c5af2107a3b/src/bin_evm_proxy/rollup_node.mli | ocaml | ***************************************************************************
Open Source License
Permission is h... | Copyright ( c ) 2023 Nomadic Labs < >
to deal in the Software without restriction , including without limitation
and/or sell copies of the Software , and to permit persons to whom the
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR
LIABILITY , WHETHER IN AN... |
656a07da15ed1c22caf242cf40d28f05fbc6f28ce55d7c7c6759c538ed4b2bd7 | ssor/erlangDemos | http_handler_multipart.erl | %% Feel free to use, reuse and abuse the code in this file.
-module(http_handler_multipart).
-behaviour(cowboy_http_handler).
-export([init/3, handle/2, terminate/2]).
init({_Transport, http}, Req, []) ->
{ok, Req, {}}.
handle(Req, State) ->
{Result, Req2} = acc_multipart(Req),
{ok, Req3} = cowboy_req:reply(200, ... | null | https://raw.githubusercontent.com/ssor/erlangDemos/632cd905be2c4f275f1c1ae15238e711d7bb9147/cowboy/test/http_handler_multipart.erl | erlang | Feel free to use, reuse and abuse the code in this file. |
-module(http_handler_multipart).
-behaviour(cowboy_http_handler).
-export([init/3, handle/2, terminate/2]).
init({_Transport, http}, Req, []) ->
{ok, Req, {}}.
handle(Req, State) ->
{Result, Req2} = acc_multipart(Req),
{ok, Req3} = cowboy_req:reply(200, [], term_to_binary(Result), Req2),
{ok, Req3, State}.
term... |
76e4d850ee3cab2fee7069091874287dd0d59de30af07ed117527c4a413ef807 | taffybar/taffybar | EWMHDesktopInfo.hs | -----------------------------------------------------------------------------
-- |
Module : System . . Information . EWMHDesktopInfo
Copyright : ( c )
-- License : BSD3-style (see LICENSE)
--
Maintainer : < >
-- Stability : unstable
-- Portability : unportable
--
Functions to access d... | null | https://raw.githubusercontent.com/taffybar/taffybar/4129b2aed4349752dd9a1b47676d457883d95490/src/System/Taffybar/Information/EWMHDesktopInfo.hs | haskell | ---------------------------------------------------------------------------
|
License : BSD3-style (see LICENSE)
Stability : unstable
Portability : unportable
be installed in your @~\/.xmonad\/xmonad.hs@ configuration:
> import XMonad.Hooks.EwmhDesktops (ewmh)
>
> main = xmonad $ ewmh $ ...
----------... | Module : System . . Information . EWMHDesktopInfo
Copyright : ( c )
Maintainer : < >
Functions to access data provided by the X11 desktop via EWHM hints . This
module requires that the EwmhDesktops hook from the XMonadContrib project
> import XMonad
module System.Taffybar.Information.E... |
9d072791e48700e17c35edeadb2d6b916eb8dc6bda94d35448f1f7426275befe | rickardlindberg/brainfuck | Brainfuck.hs | module Brainfuck where
import Data.Array.IO
import Data.Char
import Data.IORef
import System.IO
--
data Program =
MoveBy Int
| ModifyBy Int
| Print
| Read
| Loop [Program]
deriving (Show, Eq)
data ByteCode =
BMoveBy Int
| BModifyBy Int
| BPrint
| BRead
| BLoopStart In... | null | https://raw.githubusercontent.com/rickardlindberg/brainfuck/fa4940f131adb3682b892f05bb5debef9576b27d/versions/optimizing/Brainfuck.hs | haskell | module Brainfuck where
import Data.Array.IO
import Data.Char
import Data.IORef
import System.IO
data Program =
MoveBy Int
| ModifyBy Int
| Print
| Read
| Loop [Program]
deriving (Show, Eq)
data ByteCode =
BMoveBy Int
| BModifyBy Int
| BPrint
| BRead
| BLoopStart Int
... | |
53a756e050aa6448325c1a9964c41df2b2c1cf1467f79bcf559d0395bbb1d8ea | basho/basho_bench | basho_bench_driver_carbon.erl | -module(basho_bench_driver_carbon).
-export([new/1, run/4]).
-include("basho_bench.hrl").
-record(state, {
host,
port,
keep_connect,
batch_size,
socket
}).
new(_Id) ->
Host = basho_bench_config:get(carbon_server, "127.0.0.1"),
Port = basho_bench_config:get(carbon_... | null | https://raw.githubusercontent.com/basho/basho_bench/aa66398bb6a91645dbb97e91a236f3cdcd1f188f/src/basho_bench_driver_carbon.erl | erlang | let it crash | -module(basho_bench_driver_carbon).
-export([new/1, run/4]).
-include("basho_bench.hrl").
-record(state, {
host,
port,
keep_connect,
batch_size,
socket
}).
new(_Id) ->
Host = basho_bench_config:get(carbon_server, "127.0.0.1"),
Port = basho_bench_config:get(carbon_... |
cc600d4c989297e7f206244ce781cd9b4bd69180e80bbb2cfc09ac63b7d05be3 | processone/ejabberd | mod_mix.erl | %%%-------------------------------------------------------------------
%%% File : mod_mix.erl
Author : < >
Created : 2 Mar 2016 by < >
%%%
%%%
ejabberd , Copyright ( C ) 2002 - 2018 ProcessOne
%%%
%%% This program is free software; you can redistribute it and/or
modify it under the terms of the ... | null | https://raw.githubusercontent.com/processone/ejabberd/d957404adca5b727f4682b0a803d3a8f0176224e/src/mod_mix.erl | erlang | -------------------------------------------------------------------
File : mod_mix.erl
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 impl... | Author : < >
Created : 2 Mar 2016 by < >
ejabberd , Copyright ( C ) 2002 - 2018 ProcessOne
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation ; either version 2 of the
You should have received a copy of the GNU General Public License along
... |
685efd5b7c1cb1a6c2cd9efd59c7fbed53a91c25c8ab67163123f37e6f8ffd91 | camllight/camllight | const.ml | (* Constants *)
#open "misc";;
type qualified_ident =
{ qual: string;
id: string }
;;
type constr_tag =
name of constructor & stamp
tag number & number of
;;
type atomic_constant =
ACint of int
| ACfloat of float
| ACstring of string
| ACchar of char
and struct_constant =
SCatom of atomic_... | null | https://raw.githubusercontent.com/camllight/camllight/0cc537de0846393322058dbb26449427bfc76786/sources/src/compiler/const.ml | ocaml | Constants |
#open "misc";;
type qualified_ident =
{ qual: string;
id: string }
;;
type constr_tag =
name of constructor & stamp
tag number & number of
;;
type atomic_constant =
ACint of int
| ACfloat of float
| ACstring of string
| ACchar of char
and struct_constant =
SCatom of atomic_constant
| SCb... |
fed8930834673cb8792d958bc0fdc7e82dac645e4e36cc122e685cd9c62274fd | dongcarl/guix | lirc.scm | ;;; GNU Guix --- Functional package management for GNU
Copyright © 2015 , 2016 , 2017 < >
Copyright © 2016 < >
Copyright © 2017 < >
Copyright © 2019 < >
;;;
;;; 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 Genera... | null | https://raw.githubusercontent.com/dongcarl/guix/82543e9649da2da9a5285ede4ec4f718fd740fcb/gnu/packages/lirc.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 © 2015 , 2016 , 2017 < >
Copyright © 2016 < >
Copyright © 2017 < >
Copyright © 2019 < >
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 ... |
3b8fe85092e429e4eb4b499439b3dea4445e03f6b2b6380977fb84a5225f0f6f | TorXakis/TorXakis | ValExprSpec.hs |
TorXakis - Model Based Testing
Copyright ( c ) 2015 - 2017 TNO and Radboud University
See LICENSE at root directory of this repository .
TorXakis - Model Based Testing
Copyright (c) 2015-2017 TNO and Radboud University
See LICENSE at root directory of this repository.
-}
# LANGUAGE OverloadedLists #
module ValE... | null | https://raw.githubusercontent.com/TorXakis/TorXakis/038463824b3d358df6b6b3ff08732335b7dbdb53/sys/valexpr/test/ValExprSpec.hs | haskell |
TorXakis - Model Based Testing
Copyright ( c ) 2015 - 2017 TNO and Radboud University
See LICENSE at root directory of this repository .
TorXakis - Model Based Testing
Copyright (c) 2015-2017 TNO and Radboud University
See LICENSE at root directory of this repository.
-}
# LANGUAGE OverloadedLists #
module ValE... | |
1b720209762ad7c43fa24f148dcfec73e8770230b53ae3974015264d63d20925 | purescript/purescript | Linter.hs | -- |
This module implements a simple linting pass on the PureScript AST .
--
module Language.PureScript.Linter (lint, module L) where
import Prelude
import Control.Monad.Writer.Class
import Data.Maybe (mapMaybe)
import qualified Data.Set as S
import Data.Text (Text)
import qualified Data.Text as Text
import Contro... | null | https://raw.githubusercontent.com/purescript/purescript/5f6a6659391563cdec3c41ac6a4b2ff5263d0f68/src/Language/PureScript/Linter.hs | haskell | |
|
| Right now, this pass performs a shadowing check and a check for unused bindings.
Recursively walk the type and prune used variables from `unused`
let f x = e -- check the x in e (but not the f)
let {x} = e -- no binding to check inside e | This module implements a simple linting pass on the PureScript AST .
module Language.PureScript.Linter (lint, module L) where
import Prelude
import Control.Monad.Writer.Class
import Data.Maybe (mapMaybe)
import qualified Data.Set as S
import Data.Text (Text)
import qualified Data.Text as Text
import Control.Monad ... |
d252fc9908b7a5b1b281f835ac944a05270a741370ff91193435a0a59340bf8a | ddmcdonald/sparser | object.lisp | ;;; -*- Mode:LISP; Syntax:Common-Lisp; Package:SPARSER -*-
copyright ( c ) 1993 - 2005,2013.2019 - 2021 -- all rights reserved
;;;
;;; File: "object"
Module : " : people : "
version : September 2021
initiated 6/8/93 v2.3
0.1 ( 1/7/94 ) redesigned not to pre - index
0.2 ( 9/26 ) promulgati... | null | https://raw.githubusercontent.com/ddmcdonald/sparser/0f5ecedd572bc054725ee0d3b23f390c336b7b0f/Sparser/code/s/grammar/model/core/people/object.lisp | lisp | -*- Mode:LISP; Syntax:Common-Lisp; Package:SPARSER -*-
File: "object"
(3/16/05) Adding realization rules.
(3/25/13) Pulled that definition because it required an instance of
"a person" to have a name to be properly indexed. Introduced a new
cagegory -- person-type -- to carry those references.
stu... | copyright ( c ) 1993 - 2005,2013.2019 - 2021 -- all rights reserved
Module : " : people : "
version : September 2021
initiated 6/8/93 v2.3
0.1 ( 1/7/94 ) redesigned not to pre - index
0.2 ( 9/26 ) promulgating change to how instances are stored . 10/6 added properties
( 2/13/13 ) Made perso... |
c6dd2ea9845d70ae68388c0790f1b2d355e235acc98f52f96f5bf209e79f6337 | Opetushallitus/ataru | text_field_spec.clj | (ns ataru.applications.excel-export.text-field-spec
(:require [clojure.string :as string]
[clj-time.core :as clj-time]
[speclj.core :as speclj :refer :all]
[ataru.applications.excel-export :as excel-export]
[ataru.cache.cache-service :as cache-service]
[atar... | null | https://raw.githubusercontent.com/Opetushallitus/ataru/2d8ef1d3f972621e301a3818567d4e11219d2e82/spec/ataru/applications/excel_export/text_field_spec.clj | clojure | (ns ataru.applications.excel-export.text-field-spec
(:require [clojure.string :as string]
[clj-time.core :as clj-time]
[speclj.core :as speclj :refer :all]
[ataru.applications.excel-export :as excel-export]
[ataru.cache.cache-service :as cache-service]
[atar... | |
acef4ede5a79577faefc06e415cbe63bdd43887b2709b374dbba2becfc0a865b | haskell/lsp | References.hs | {-# LANGUAGE TemplateHaskell #-}
# LANGUAGE DuplicateRecordFields #
-- | Find References Request
-- -server-protocol/specifications/specification-3-15/#textDocument_references
module Language.LSP.Types.References where
import Data.Aeson.TH
import Language.LSP.Types.TextDocument
import Language.LSP.Types.Progres... | null | https://raw.githubusercontent.com/haskell/lsp/5422dd13f0362917e5981e07d60617ca6e233833/lsp-types/src/Language/LSP/Types/References.hs | haskell | # LANGUAGE TemplateHaskell #
| Find References Request
-server-protocol/specifications/specification-3-15/#textDocument_references
| Whether references supports dynamic registration.
| Include the declaration of the current symbol. | # LANGUAGE DuplicateRecordFields #
module Language.LSP.Types.References where
import Data.Aeson.TH
import Language.LSP.Types.TextDocument
import Language.LSP.Types.Progress
import Language.LSP.Types.Utils
data ReferencesClientCapabilities =
ReferencesClientCapabilities
_dynamicRegistration :: Maybe Bool
... |
a280387b14a7d1229b2df8ee190e37a6f7fabd001c740272b8f9a410b9eed4d3 | pflanze/chj-schemelib | collection-on.scm | Copyright 2017 by < >
;;; This file is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License ( GPL ) as published
by the Free Software Foundation , either version 2 of the License , or
;;; (at your option) any later version.
Unlike wbcollecti... | null | https://raw.githubusercontent.com/pflanze/chj-schemelib/59ff8476e39f207c2f1d807cfc9670581c8cedd3/collection-on.scm | scheme | This file is free software; you can redistribute it and/or modify
(at your option) any later version.
thus can offer lookups by keys instead of whole objects.
"Just" wbcollections with an easier interface, which is also shown
with |show|. Requires .cmp to be defined for the key type in
question.
included i... | Copyright 2017 by < >
it under the terms of the GNU General Public License ( GPL ) as published
by the Free Software Foundation , either version 2 of the License , or
Unlike wbcollection this separates .key and .eq ? functions ( instead
of having them grouped into one function , e.g. through |on| ... |
6f41038ad7a444e92edc494709b904168e8132b782ad0c9c95839fcdb037ebb8 | adamdoupe/find_ear_rails | utils.ml |
module StrSet = Set.Make(String)
module StrMap = Map.Make(String)
module Int = struct
type t = int
let compare (x:int) (y:int) = compare x y
let equal (x:int) (y:int) = x == y
let hash = Hashtbl.hash
end
module IntSet = Set.Make(Int)
module IntMap = Map.Make(Int)
external id : 'a -> 'a = "%identity"
(* Use... | null | https://raw.githubusercontent.com/adamdoupe/find_ear_rails/38f892f9962ad415a583973caf24fbab1a011be1/diamondback-ruby-0.20090726/src/utils.ml | ocaml | Use Obj.* to build a "shallow" order based on constructor
representation (subterms are not examined). This should be
completely safe since we are only peeking into the constructor tag,
not doing any magic casting.
different sized lists
reverse composition. useful for "pipelining" computations:
e1 |> ... |
module StrSet = Set.Make(String)
module StrMap = Map.Make(String)
module Int = struct
type t = int
let compare (x:int) (y:int) = compare x y
let equal (x:int) (y:int) = x == y
let hash = Hashtbl.hash
end
module IntSet = Set.Make(Int)
module IntMap = Map.Make(Int)
external id : 'a -> 'a = "%identity"
let cm... |
6ef5b2b12128a3d51bb177b6610dbcd6d854aafc655e0d39fa3186ada2128188 | maximedenes/native-coq | vm.ml | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/maximedenes/native-coq/3623a4d9fe95c165f02f7119c0e6564a83a9f4c9/kernel/vm.ml | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
************************************... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
open Names
open Native
open T... |
06e9e79d020d5f70d499c89ad65dfe844f0fc79dc1311cc3aa03d9b56c95dad7 | ghcjs/jsaddle-dom | Coordinates.hs | # LANGUAGE PatternSynonyms #
-- For HasCallStack compatibility
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
# OPTIONS_GHC -fno - warn - unused - imports #
module JSDOM.Generated.Coordinates
(getLatitude, getLongitude, getAltitude, getAltitudeUnsafe,
getAltitudeUnchecked, getAccuracy, ... | null | https://raw.githubusercontent.com/ghcjs/jsaddle-dom/5f5094277d4b11f3dc3e2df6bb437b75712d268f/src/JSDOM/Generated/Coordinates.hs | haskell | For HasCallStack compatibility
# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures # | # LANGUAGE PatternSynonyms #
# OPTIONS_GHC -fno - warn - unused - imports #
module JSDOM.Generated.Coordinates
(getLatitude, getLongitude, getAltitude, getAltitudeUnsafe,
getAltitudeUnchecked, getAccuracy, getAltitudeAccuracy,
getAltitudeAccuracyUnsafe, getAltitudeAccuracyUnchecked,
getHe... |
14cb83cb50667331584ac88f9d837e1100b117a716ef730da5843eb97ea58378 | ocamllabs/ocaml-modular-implicits | tast_iter.ml | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/tools/tast_iter.ml | ocaml | *********************************************************************
OCaml
... | , LexiFi
Copyright 2012 Institut National de Recherche en Informatique et
en Automatique . All rights reserved . This file is distributed
under the terms of the Q Public License version 1.0 .
open Typedtree
let opt f = function Non... |
8bb72cc191ce577114f0fc1427671017523c4a217a6baf650f69c8ca26ad5c8a | ocaml-ppx/ocaml-migrate-parsetree | migrate_403_404.ml | (**************************************************************************)
(* *)
(* OCaml Migrate Parsetree *)
(* *)
... | null | https://raw.githubusercontent.com/ocaml-ppx/ocaml-migrate-parsetree/4a05cf7a00d84e5f827cc9ae9c75e5dc85126085/src/migrate_403_404.ml | ocaml | ************************************************************************
OCaml Migrate Parsetree
... |
, LexiFi
Copyright 2017 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
module From = Ast_403
module To = Ast_404
l... |
3ba2c7c698768c3ae70ba18b5eac503b92dfacf4fb65161ec2e7c5976a300438 | magicant/flesh | AliasSpec.hs |
Copyright ( C ) 2017 WATANABE >
This program is free software ; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 2 of the License , or
( at your option ) any later version .
This program is distribut... | null | https://raw.githubusercontent.com/magicant/flesh/0e76312d291aae8f890ba55d8131ade78600d7e8/hspec-src/Flesh/Language/Parser/AliasSpec.hs | haskell | ^ alias name in the definition set
^ alias value in the definition set
^ text passed to maybeAliasValue
TODO Test PushBackT instances
TODO Test ReparseT instances
vim: set et sw=2 sts=2 tw=78: |
Copyright ( C ) 2017 WATANABE >
This program is free software ; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 2 of the License , or
( at your option ) any later version .
This program is distribut... |
095c556a1284d627d2e3a98f7e4b404031d13f1072748bf7df951012a2a10615 | BastienDuplessier/angry_cuisine_nerd | angry_generator.ml | open Yocaml
module Data = Yocaml_yaml
module Markup = Yocaml_markdown
module Tpl = Yocaml_jingoo
open struct
type strategy =
| Build
| Serve of int option
| Print_usage
let default_port = 8000
(* Defines the destination directory *)
let root = "_site"
let folder = "angry_cuisine_nerd"
let tar... | null | https://raw.githubusercontent.com/BastienDuplessier/angry_cuisine_nerd/14f9b5412e39164cf0e393023cea4ede78778fb8/src/angry_generator.ml | ocaml | Defines the destination directory
An arrow that recompiles a file if the binary, [angry_generator.exe] has
been updated. An arrow that recompiles a file if the binary,
[angry_generator.exe] has been updated (recompile after generation)
Rule for copying CSS files to the correct destination directory.
Rul... | open Yocaml
module Data = Yocaml_yaml
module Markup = Yocaml_markdown
module Tpl = Yocaml_jingoo
open struct
type strategy =
| Build
| Serve of int option
| Print_usage
let default_port = 8000
let root = "_site"
let folder = "angry_cuisine_nerd"
let target = folder |> into root
let binary = S... |
da31797941d90e05b2ff70cae2a9f8ed374f850886f0ae0f397d4963022ded75 | erlymon/erlymon | em_http_api_statistics_handler.erl | %%%-------------------------------------------------------------------
@author
( C ) 2015 , < >
%%% @doc
Erlymon is an open source GPS tracking system for various GPS tracking devices .
%%%
Copyright ( C ) 2015 , < > .
%%%
This file is part of Erlymon .
%%%
Erlymon is free software : yo... | null | https://raw.githubusercontent.com/erlymon/erlymon/2250619783d6da1e33a502911a8fa52ce016c094/apps/erlymon/src/em_http/handlers/em_http_api_statistics_handler.erl | erlang | -------------------------------------------------------------------
@doc
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
along with this program. If not, see </>.
@end
-------------------------------------------------------... | @author
( C ) 2015 , < >
Erlymon is an open source GPS tracking system for various GPS tracking devices .
Copyright ( C ) 2015 , < > .
This file is part of Erlymon .
Erlymon is free software : you can redistribute it and/or modify
it under the terms of the GNU Affero General Publ... |
d08130e20d554c1dfc7c3e4386ec5372aa5a598c1481fc394c09500be50ffa5f | rollacaster/sketches | core.cljs | (ns sketches.rac-sketches.core
(:require [sketches.components :refer [card cards-container sketch]]
[sketches.rac-sketches.fire-ball :as fb]
[sketches.rac-sketches.fire-texture :as ft]
[sketches.rac-sketches.flowers :as flo]
[sketches.rac-sketches.heart-of-clojure :as h... | null | https://raw.githubusercontent.com/rollacaster/sketches/c33e65e91471db9ce5512b0d148f668caab77639/src/sketches/rac_sketches/core.cljs | clojure | (ns sketches.rac-sketches.core
(:require [sketches.components :refer [card cards-container sketch]]
[sketches.rac-sketches.fire-ball :as fb]
[sketches.rac-sketches.fire-texture :as ft]
[sketches.rac-sketches.flowers :as flo]
[sketches.rac-sketches.heart-of-clojure :as h... | |
9727a534a922416029bf059686df5920b35a99e6a77068af747ce99fad03a0a5 | AbstractMachinesLab/caramel | file_cache.mli | { { { COPYING * (
This file is part of Merlin , an helper for ocaml editors
Copyright ( C ) 2013 - 2015 < frederic.bour(_)lakaban.net >
refis.thomas(_)gmail.com >
< simon.castellan(_)iuwt.fr >
Permission is hereby granted , free... | null | https://raw.githubusercontent.com/AbstractMachinesLab/caramel/7d4e505d6032e22a630d2e3bd7085b77d0efbb0c/vendor/ocaml-lsp-1.4.0/ocaml-lsp-server/vendor/merlin/src/utils/file_cache.mli | ocaml | * @raises Not_found if the file is not in cache. | { { { COPYING * (
This file is part of Merlin , an helper for ocaml editors
Copyright ( C ) 2013 - 2015 < frederic.bour(_)lakaban.net >
refis.thomas(_)gmail.com >
< simon.castellan(_)iuwt.fr >
Permission is hereby granted , free... |
158e8819ee4e99a6225a5f621c2916bcdf400f7023d1a41499db26e341d4ba59 | alvatar/spheres | test-sxml.scm |
(include "sxml-tools/tests/xtest-harness.sch")
(include "sxml-tools/tests/vcontext.sch")
(include "sxml-tools/tests/vsxpathlib.sch")
(include "sxml-tools/tests/xtest-maker.sch")
(display "All tests passed successfully!")
(newline)
| null | https://raw.githubusercontent.com/alvatar/spheres/568836f234a469ef70c69f4a2d9b56d41c3fc5bd/test/test-sxml.scm | scheme |
(include "sxml-tools/tests/xtest-harness.sch")
(include "sxml-tools/tests/vcontext.sch")
(include "sxml-tools/tests/vsxpathlib.sch")
(include "sxml-tools/tests/xtest-maker.sch")
(display "All tests passed successfully!")
(newline)
| |
0ca144a4875ae6fc8142d54f09e2da401a63178a9c77f93e933a50128a19e9ca | camoy/trace-contract | subclause.rkt | #lang racket/base
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; provide
(provide (struct-out subclause))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; data
;; A `subclause` associates variables with folding procedures.
- ` vars ` : [ ... | null | https://raw.githubusercontent.com/camoy/trace-contract/06f2778c1ab63a773c029783152a070f3ab4feba/private/subclause.rkt | racket |
provide
data
A `subclause` associates variables with folding procedures.
- `folder` : Procedure. | #lang racket/base
(provide (struct-out subclause))
- ` vars ` : [ Symbol ]
(struct subclause (vars folder))
|
f9d80a67c1208ed6b614d347e68567080c04dd3a889238586f24426060f2f396 | ceramic/ceramic | runtime.lisp | (in-package :cl-user)
(defpackage ceramic.runtime
(:use :cl)
(:import-from :ceramic.error
:not-in-release)
(:export :*releasep*
:executable-pathname
:executable-relative-pathname)
(:documentation "Tools for execution during release."))
(in-package :ceramic.runtime)
(defvar... | null | https://raw.githubusercontent.com/ceramic/ceramic/5d81e2bd954440a6adebde31fac9c730a698c74b/src/runtime.lisp | lisp | (in-package :cl-user)
(defpackage ceramic.runtime
(:use :cl)
(:import-from :ceramic.error
:not-in-release)
(:export :*releasep*
:executable-pathname
:executable-relative-pathname)
(:documentation "Tools for execution during release."))
(in-package :ceramic.runtime)
(defvar... | |
ec656003a571f3b8c4eeac8b1e76872a1c773ea32e71402ec582451791708d78 | sanette/oplot | test.ml | let () =
let open Oplot.Plt in
let p = plot sin (-2.) 20. in
let a = axis 0. 0. in
The opam Continuous Integration does not allow to write into the home
directory
directory *)
let output = Filename.temp_file "oplot" ".fig" in
display ~dev:fig ~output [ Color red; p; Color black; a ];
assert (... | null | https://raw.githubusercontent.com/sanette/oplot/8c3c972bfe36e75341181c2eb5b5cc2b5f6a7e50/test/test.ml | ocaml | let () =
let open Oplot.Plt in
let p = plot sin (-2.) 20. in
let a = axis 0. 0. in
The opam Continuous Integration does not allow to write into the home
directory
directory *)
let output = Filename.temp_file "oplot" ".fig" in
display ~dev:fig ~output [ Color red; p; Color black; a ];
assert (... | |
9383c7a607f4163ef85b4bedc55cce299b450632786359092f23c0b289a91554 | rorokimdim/stash | bench.hs | import Criterion.Main
import qualified Data.Text as T
import qualified TestUtility as TU
import qualified TextTransform as TT
import Types
main :: IO ()
main = do
orgText <- T.intercalate "\n" <$> TU.randomText OrgText 200 1 0 4
markdownText <- T.intercalate "\n" <$> TU.randomText MarkdownText 200 1 0 4
... | null | https://raw.githubusercontent.com/rorokimdim/stash/18bdb25b9d1cb0386daf7a2c93bcb4ef654729d9/benchmark/bench.hs | haskell | import Criterion.Main
import qualified Data.Text as T
import qualified TestUtility as TU
import qualified TextTransform as TT
import Types
main :: IO ()
main = do
orgText <- T.intercalate "\n" <$> TU.randomText OrgText 200 1 0 4
markdownText <- T.intercalate "\n" <$> TU.randomText MarkdownText 200 1 0 4
... | |
1c5a411f4873526558f3c23e81630073ba5988803c1f629c9b62bb57dcf626c0 | vernemq/vernemq_dev | on_register_m5_hook.erl | %% @hidden
-module(on_register_m5_hook).
-include("vernemq_dev.hrl").
%% called as an 'all' hook, return value is ignored
-callback on_register_m5(Peer :: peer(),
SubscriberId :: subscriber_id(),
UserName :: username(),
Propertie... | null | https://raw.githubusercontent.com/vernemq/vernemq_dev/6d622aa8c901ae7777433aef2bd049e380c474a6/src/on_register_m5_hook.erl | erlang | @hidden
called as an 'all' hook, return value is ignored | -module(on_register_m5_hook).
-include("vernemq_dev.hrl").
-callback on_register_m5(Peer :: peer(),
SubscriberId :: subscriber_id(),
UserName :: username(),
Properties :: properties()) -> any().
|
865294c9a0feb08419038259d6c52954426326098d33a0a0e946ed26861d7e09 | aws-beam/aws-erlang | aws_kinesis.erl | %% WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
See -beam/aws-codegen for more details .
@doc Amazon Kinesis Data Streams Service API Reference
%%
Amazon Kinesis Data Streams is a managed service that scales elastically
%% for real-time processing of streaming big data.
-module(aws_kinesis).
-export([add_tags_to_... | null | https://raw.githubusercontent.com/aws-beam/aws-erlang/699287cee7dfc9dc8c08ced5f090dcc192c9cba8/src/aws_kinesis.erl | erlang | WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
for real-time processing of streaming big data.
====================================================================
API
====================================================================
When invoking this API, it is recommended you use the `StreamARN'
input paramet... | See -beam/aws-codegen for more details .
@doc Amazon Kinesis Data Streams Service API Reference
Amazon Kinesis Data Streams is a managed service that scales elastically
-module(aws_kinesis).
-export([add_tags_to_stream/2,
add_tags_to_stream/3,
create_stream/2,
create_stream/3,
... |
3cd58a2ed832ad439dd9333f6e6617d797fa448fdf5e2a7711603af2c231044c | nd/lein-teamcity | core.clj | public static void main() {
"this is not clojure"
} | null | https://raw.githubusercontent.com/nd/lein-teamcity/9bce8a875c0f1c2060362d33a214c5dd72530b03/test-projects/syntax-error/src/syntax_error/core.clj | clojure | public static void main() {
"this is not clojure"
} | |
b045ab2cf32c0fd159b8a342929431897f457fc5933de23b2aae6a0f193504f7 | borodust/alien-works | vdb.lisp | (cl:in-package :alien-works.physics.physx)
(u:define-enumval-extractor instrumentation-flag-enum %physx:physx+px-pvd-instrumentation-flag+enum)
(defun make-pvd (foundation)
(%physx:physx+px-create-pvd '(:pointer %physx:physx+px-foundation) foundation))
(defun make-instrumentation-flags (flag)
(iffi:make-intri... | null | https://raw.githubusercontent.com/borodust/alien-works/b849b739b7f5556900005a2aa6d8a2ea220cf3a6/src/physics/physx/vdb.lisp | lisp | (cl:in-package :alien-works.physics.physx)
(u:define-enumval-extractor instrumentation-flag-enum %physx:physx+px-pvd-instrumentation-flag+enum)
(defun make-pvd (foundation)
(%physx:physx+px-create-pvd '(:pointer %physx:physx+px-foundation) foundation))
(defun make-instrumentation-flags (flag)
(iffi:make-intri... | |
ff06bdb54a9893e025b05c5db9ee6375dac43dcacbf43b475af2236c97948f45 | xapi-project/xen-api | test_daemon_manager.ml |
* Copyright ( C ) Citrix Systems Inc.
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation ; version 2.1 only . with the special
* exception on linking described in file LI... | null | https://raw.githubusercontent.com/xapi-project/xen-api/47fae74032aa6ade0fc12e867c530eaf2a96bf75/ocaml/tests/test_daemon_manager.ml | ocaml | * The exception thrown when trying to stop the daemon.
Raise the exception after spawning a thread which will set running to
false after a specified time.
Test that the daemon is restarted, and that the return value of the function
passed to with_daemon_stopped is propagated.
Test that if the ... |
* Copyright ( C ) Citrix Systems Inc.
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation ; version 2.1 only . with the special
* exception on linking described in file LI... |
b0ec5f15d0d97d9fcb9d5c50197ecca36d278faf9a954bb8bc145eaa20b1f9ca | TrustInSoft/tis-kernel | build.mli | (**************************************************************************)
(* *)
This file is part of .
(* *)
is a fork of Frama - C. Al... | null | https://raw.githubusercontent.com/TrustInSoft/tis-kernel/748d28baba90c03c0f5f4654d2e7bb47dfbe4e7d/src/plugins/pdg/build.mli | ocaml | ************************************************************************
... | This file is part of .
is a fork of Frama - C. All the differences are :
Copyright ( C ) 2016 - 2017
is released under GPLv2
This file is part of Frama - C.
Copyright ( C ) 2007 - 2015 ... |
f2aedd63b0bc7b4185e38289f313983ee8528cf69782de45b6c6d87ac03b3c12 | jeapostrophe/mongodb | shared.rkt | #lang racket/base
(require racket/function
racket/local
racket/dict
srfi/19
net/bson/mapping
net/bson/binio)
(define (not-represented x) #f)
(define (deprecated x) #f)
(define ((and-pred fst snd) x)
(and (fst x) (snd x)))
(define ((or-pred fst snd) x)
(or (fst x) (snd ... | null | https://raw.githubusercontent.com/jeapostrophe/mongodb/4fbeb1a577ff9a1b8274045a5741d6670d555ac7/net/bson/shared.rkt | racket | Deprecated
Deprecated
moved down so it doesn't suck up other things: | #lang racket/base
(require racket/function
racket/local
racket/dict
srfi/19
net/bson/mapping
net/bson/binio)
(define (not-represented x) #f)
(define (deprecated x) #f)
(define ((and-pred fst snd) x)
(and (fst x) (snd x)))
(define ((or-pred fst snd) x)
(or (fst x) (snd ... |
aff030563b2431b3c504d54cd222e82ad4da85ea72152b7938ae01654e8c50cb | verement/etamoo | String.hs |
{-# LANGUAGE DeriveDataTypeable #-}
-- | Abstract MOO string type
module MOO.String (
MOOString
-- * Creation and elimination
, fromText
, fromBinary
, fromString
, toText
, toCaseFold
, toBinary
, toString
, toBuilder
, toRegexp
, singleton
, empty
-- * Basic interface
, append
, ... | null | https://raw.githubusercontent.com/verement/etamoo/af65e2581ab5d093c9490f43692ef89bafc2efc1/src/MOO/String.hs | haskell | # LANGUAGE DeriveDataTypeable #
| Abstract MOO string type
* Creation and elimination
* Basic interface
* Transformations
* Folds
** Special folds
** Breaking strings
** Breaking into many substrings
** Breaking into lines and words
* Predicates
* Indexing
^ case-matters
| Case-fold the argument, returning... |
module MOO.String (
MOOString
, fromText
, fromBinary
, fromString
, toText
, toCaseFold
, toBinary
, toString
, toBuilder
, toRegexp
, singleton
, empty
, append
, tail
, null
, length
, compareLength
, equal
, intercalate
, foldr
, concat
, concatMap
* Substrings... |
6eeb93bae9b7f0f318a69f8552476cbf6763c6c6f5563260a0f1ef262e4bc7f3 | kfish/const-math-ghc-plugin | arith016.hs | # LANGUAGE MagicHash #
module Main where
import GHC.Exts ( Float(F#),
eqFloat#, neFloat#, ltFloat#,
leFloat#, gtFloat#, geFloat#
)
fcmp_eq, fcmp_ne, fcmp_lt, fcmp_le, fcmp_gt, fcmp_ge :: (String, Float -> Float -> Bool)
fcmp_eq = ("==", \ (F# a) (F# b) -> a `eqFloat#` b)
fcmp_ne = ("/=", \ (F# a) (F#... | null | https://raw.githubusercontent.com/kfish/const-math-ghc-plugin/c1d269e0ddc72a782c73cca233ec9488f69112a9/tests/ghc-7.4/arith016.hs | haskell | # LANGUAGE MagicHash #
module Main where
import GHC.Exts ( Float(F#),
eqFloat#, neFloat#, ltFloat#,
leFloat#, gtFloat#, geFloat#
)
fcmp_eq, fcmp_ne, fcmp_lt, fcmp_le, fcmp_gt, fcmp_ge :: (String, Float -> Float -> Bool)
fcmp_eq = ("==", \ (F# a) (F# b) -> a `eqFloat#` b)
fcmp_ne = ("/=", \ (F# a) (F#... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.