_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 |
|---|---|---|---|---|---|---|---|---|
79d11b47a868bfab1c53e2797df2e95cc6cdd1feabcd4241a01f58625ffd7fce | heraldry/heraldicon | copy_to_new.cljs | (ns heraldicon.frontend.entity.action.copy-to-new
(:require
[heraldicon.entity.attribution :as attribution]
[heraldicon.frontend.entity.form :as form]
[heraldicon.frontend.macros :as macros]
[heraldicon.frontend.message :as message]
[heraldicon.frontend.user.session :as session]
[re-frame.core :as r... | null | https://raw.githubusercontent.com/heraldry/heraldicon/7bf4dd4149e1f69c9e4f9a0b6b826f73f532a01d/src/heraldicon/frontend/entity/action/copy_to_new.cljs | clojure | (ns heraldicon.frontend.entity.action.copy-to-new
(:require
[heraldicon.entity.attribution :as attribution]
[heraldicon.frontend.entity.form :as form]
[heraldicon.frontend.macros :as macros]
[heraldicon.frontend.message :as message]
[heraldicon.frontend.user.session :as session]
[re-frame.core :as r... | |
0601a7dee6ad72ad5f7dd0b0737cf9590cc2ae7b51e0713182e0180d941eb793 | GrammaTech/sel | test-parse.lisp | ;;; test-parse.lisp -- command line utility to test parsing
(defpackage :software-evolution-library/components/test-parse
(:nicknames :sel/components/test-parse
:sel/cp/test-parse)
(:use :gt/full
:software-evolution-library
:software-evolution-library/command-line
:cl-ppcre
:soft... | null | https://raw.githubusercontent.com/GrammaTech/sel/52e037780e877467b0bff60bd0625f4be49557a1/components/test-parse.lisp | lisp | test-parse.lisp -- command line utility to test parsing
interesting to creduce.
A return value that isn't 0 indicates that a partially reduced
file is not interesting to creduce. |
(defpackage :software-evolution-library/components/test-parse
(:nicknames :sel/components/test-parse
:sel/cp/test-parse)
(:use :gt/full
:software-evolution-library
:software-evolution-library/command-line
:cl-ppcre
:software-evolution-library/software/parseable)
(:import-from :... |
560e6f1049ff61b4a5169a67294e536b6a9bc0fa920790df6ce86c15b8dbbcce | Leberwurscht/Diaspora-User-Directory | pstyle.ml | (************************************************************************)
This file is part of SKS . SKS 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 (... | null | https://raw.githubusercontent.com/Leberwurscht/Diaspora-User-Directory/1ca4a06a67d591760516edffddb0308b86b6314c/trie_manager/pstyle.ml | ocaml | **********************************************************************
*********************************************************************
* Allows for some python-like tricks, at the expense of some performance
and indirection | This file is part of SKS . SKS 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 distributed in ... |
d164051217feac9f5fc4d86dacc88fcf4dfd2d1a3c8bffc09440814fc3144409 | erlangonrails/devdb | webmachine_demo_sup.erl | @author author < >
YYYY author .
%% @doc Supervisor for the webmachine_demo application.
-module(webmachine_demo_sup).
-author('author <>').
-behaviour(supervisor).
%% External exports
-export([start_link/0, upgrade/0]).
%% supervisor callbacks
-export([init/1]).
( ) - > ServerRet
%% @doc API for starti... | null | https://raw.githubusercontent.com/erlangonrails/devdb/0e7eaa6bd810ec3892bfc3d933439560620d0941/dev/riak-0.11.0/deps/webmachine/demo/src/webmachine_demo_sup.erl | erlang | @doc Supervisor for the webmachine_demo application.
External exports
supervisor callbacks
@doc API for starting the supervisor.
@doc Add processes if necessary.
@doc supervisor callback. | @author author < >
YYYY author .
-module(webmachine_demo_sup).
-author('author <>').
-behaviour(supervisor).
-export([start_link/0, upgrade/0]).
-export([init/1]).
( ) - > ServerRet
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
@spec upgrade ( ) - > ok
upgrade() ->
{ok... |
15030f23ad93e1915d64f1e617a286a50be1ad59961d1bb63dc9ceb5af0fad96 | nuprl/gradual-typing-performance | shadow-side-west.rkt | #lang racket/base
(provide shadow-side-west)
(require racket/draw racket/runtime-path)
(define-runtime-path shadow-side-west-img "shadow-side-west.png")
(define shadow-side-west (read-bitmap shadow-side-west-img))
| null | https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/pre-benchmark/ecoop/htdp-lib/2htdp/planetcute/shadow-side-west.rkt | racket | #lang racket/base
(provide shadow-side-west)
(require racket/draw racket/runtime-path)
(define-runtime-path shadow-side-west-img "shadow-side-west.png")
(define shadow-side-west (read-bitmap shadow-side-west-img))
| |
d72b910ece8e815481d8ec08a8de3c522fc0470305a8a6dbe3b90498352902ef | funkywork/yourbones | yourbones_common_test.ml | MIT License
Copyright ( c ) 2023 funkywork
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... | null | https://raw.githubusercontent.com/funkywork/yourbones/da34f7ee9d465633d19ca949abca12303ed0b609/test/common_test/yourbones_common_test.ml | ocaml | MIT License
Copyright ( c ) 2023 funkywork
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... | |
855b9c7b568ee40b1e9798be874694256170aeba5bee971755986a74040c9f14 | BitGameEN/bitgamex | erlcloud_kinesis_impl.erl | -*- mode : erlang;erlang - indent - level : 4;indent - tabs - mode : nil -*-
%%% Inspired by, and some code taken from , which is:
%%%
Copyright ( C ) 2012 Issuu ApS. All rights reserved .
%%%
%%% Redistribution and use in source and binary forms, with or without
%%% modification, are permitted provided that the fo... | null | https://raw.githubusercontent.com/BitGameEN/bitgamex/151ba70a481615379f9648581a5d459b503abe19/src/deps/erlcloud/src/erlcloud_kinesis_impl.erl | erlang | Inspired by, and some code taken from , which is:
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
notice, this list of conditions and the following disclaimer.
notice, this list of conditions and the following d... | -*- mode : erlang;erlang - indent - level : 4;indent - tabs - mode : nil -*-
Copyright ( C ) 2012 Issuu ApS. All rights reserved .
1 . Redistributions of source code must retain the above copyright
2 . Redistributions in binary form must reproduce the above copyright
THIS SOFTWARE IS PROVIDED BY AUTHOR AND CO... |
ea6e626c8708d658d5be29b9905df174f4f3617d22b01165e86340c783cb148d | kingcons/cl-store | mop.lisp | (in-package :cl-store)
(defun slot-definition-name (slot)
(nth 0 slot))
(defun slot-definition-allocation (slot)
(nth 6 slot))
(defun slot-definition-initform (slot)
(nth 2 slot))
(defun slot-definition-initargs (slot)
(nth 1 slot))
(defun slot-accessors (slot)
(nth 3 slot))
(defun slot-definition-write... | null | https://raw.githubusercontent.com/kingcons/cl-store/e9328632cd6bf51cb79adeb5d40c6ee5c6f805b4/ecl/mop.lisp | lisp | (in-package :cl-store)
(defun slot-definition-name (slot)
(nth 0 slot))
(defun slot-definition-allocation (slot)
(nth 6 slot))
(defun slot-definition-initform (slot)
(nth 2 slot))
(defun slot-definition-initargs (slot)
(nth 1 slot))
(defun slot-accessors (slot)
(nth 3 slot))
(defun slot-definition-write... | |
076bddf7c419aa545c0d0a36d74a45bdd9b6d6e6955022ecb9405149218bfba9 | jarcane/heresy | fact.rkt | #lang heresy
Classical recursive
(def fn fact (n)
(select
((zero? n) 1)
(else (* n (fact (- n 1))))))
W/ Heresy 's for w / carry
(def fn fact-2 (n)
(for (x in (range n to 1 step -1) with 1)
(carry (* cry x))))
; Folding over a range
(def fn fact-3 (n)
(foldl * 1 (range 1 to n)))
; Using the m-bl... | null | https://raw.githubusercontent.com/jarcane/heresy/a736b69178dffa2ef97f5eb5204f3e06840088c2/examples/fact.rkt | racket | Folding over a range
Using the m-block | #lang heresy
Classical recursive
(def fn fact (n)
(select
((zero? n) 1)
(else (* n (fact (- n 1))))))
W/ Heresy 's for w / carry
(def fn fact-2 (n)
(for (x in (range n to 1 step -1) with 1)
(carry (* cry x))))
(def fn fact-3 (n)
(foldl * 1 (range 1 to n)))
(def fn fact-4 (n)
(if (zero? n) then... |
baaa95784b5c35a18ed12c3dbd2ecfa1ac65153913e701de1f36cfe2b8e46ff0 | master-q/carettah | Runner.hs | import System.FilePath
import System.Environment
import System.Cmd
import Paths_carettah (getBinDir)
main :: IO ()
main = do
as <- getArgs
d <- getBinDir
_ <- rawSystem (d </> "_carettah_main_") (as ++ ["+RTS", "-V0"])
return ()
| null | https://raw.githubusercontent.com/master-q/carettah/355cadf8e5e957fd7df1d8281c29adf1d22fd399/src/Runner.hs | haskell | import System.FilePath
import System.Environment
import System.Cmd
import Paths_carettah (getBinDir)
main :: IO ()
main = do
as <- getArgs
d <- getBinDir
_ <- rawSystem (d </> "_carettah_main_") (as ++ ["+RTS", "-V0"])
return ()
| |
5395666ef394a6e0aa6a66394db457b77b7dedbe83d79c8daf490215c528e951 | ta0kira/zeolite | Paths.hs | -----------------------------------------------------------------------------
Copyright 2020 under the Apache License , Version 2.0 ( the " License " ) ;
you may not use this file except in compliance with the License .
You may obtain a copy of the License at
-2.0
Unless required by applicable la... | null | https://raw.githubusercontent.com/ta0kira/zeolite/6741e1fa38bdb7feaad10780290275cd5282fcbc/src/Module/Paths.hs | haskell | ---------------------------------------------------------------------------
---------------------------------------------------------------------------
--------------------------------------------------------------------------- -}
# LANGUAGE Safe # | Copyright 2020 under the Apache License , Version 2.0 ( the " License " ) ;
you may not use this file except in compliance with the License .
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing , software
distributed under the License is distribut... |
5b50ddcfc96dfe432fd955a0dd33d138df08968d612f3099f89b7806edc666ec | f-me/carma-public | New.hs | {-# LANGUAGE OverloadedStrings #-}
{-|
carma-models-style dictionaries interface
-}
module Data.Dict.New
( NewDict
, PreDict
, loadNewDict
, loadNewDict'
, labelOfValue
, valueOfLabel
)
where
import Data.Aeson
import qualified Data.HashMap.Strict as HM
import Data.Text (Text)
import q... | null | https://raw.githubusercontent.com/f-me/carma-public/82a9f44f7d919e54daa4114aa08dfec58b01009b/carma-dict/src/Data/Dict/New.hs | haskell | # LANGUAGE OverloadedStrings #
|
carma-models-style dictionaries interface
| Pre-dictionary parsed from JSON (@/_/DictName/@ response).
| Similar to 'Dict', but with integer values and Text labels.
| Standard 'loadNewDict' version with @id@ as the value key and
@label@ as the label key.
^ Internal value key.
^... |
module Data.Dict.New
( NewDict
, PreDict
, loadNewDict
, loadNewDict'
, labelOfValue
, valueOfLabel
)
where
import Data.Aeson
import qualified Data.HashMap.Strict as HM
import Data.Text (Text)
import qualified Data.Vector as V
type PreDict = V.Vector (HM.HashMap Text Value)
newtype ... |
e034d3e22e7fa05edef7ac51dbc08a1644aec4e908fd1c4b2a530fded5a5f59e | input-output-hk/rscoin-haskell | Acidic.hs | # LANGUAGE ScopedTypeVariables #
# LANGUAGE TemplateHaskell #
# LANGUAGE TypeFamilies #
-- | This module generates Acidic instance. It's separated from the
main AcidState only in this way extending AcidState is possible
-- (and it's done in testing framework)
module RSCoin.Mintette.Acidic
( Stat... | null | https://raw.githubusercontent.com/input-output-hk/rscoin-haskell/109d8f6f226e9d0b360fcaac14c5a90da112a810/src/RSCoin/Mintette/Acidic.hs | haskell | | This module generates Acidic instance. It's separated from the
(and it's done in testing framework) | # LANGUAGE ScopedTypeVariables #
# LANGUAGE TemplateHaskell #
# LANGUAGE TypeFamilies #
main AcidState only in this way extending AcidState is possible
module RSCoin.Mintette.Acidic
( State
, closeState
, getStatistics
, openState
, openMemState
, tidyState
... |
270b098db77f9921aebe2bf563232d9f4bf3a4e609aa16910b9df83f6730b4e5 | roman01la/cljs-worklet | lib.cljs | (ns worklet.lib
(:refer-clojure :exclude [map filter reduce])
(:require [worklet.core :as w]))
(w/defn map [f coll]
(.map coll f))
(w/defn filter [f coll]
(.filter coll f))
(w/defn reduce [f init coll]
(.reduce coll f init))
| null | https://raw.githubusercontent.com/roman01la/cljs-worklet/f8fadd6d0acd9e77cd4c32deac1dd9e96bef5ad9/src/worklet/lib.cljs | clojure | (ns worklet.lib
(:refer-clojure :exclude [map filter reduce])
(:require [worklet.core :as w]))
(w/defn map [f coll]
(.map coll f))
(w/defn filter [f coll]
(.filter coll f))
(w/defn reduce [f init coll]
(.reduce coll f init))
| |
408d4e58274fa50f236b0a8c6e3607b1e53adadc551ec4689c3065ae43b39025 | vbmithr/ocaml-bitstamp-api | bitstamp_top.ml | module B = Bitstamp.API(Bitstamp_lwt)
let printers = [
"B.Ticker.pp";
"B.Order_book.pp";
"B.Transaction.pp";
"B.Eur_usd.pp";
"B.Balance.pp";
"B.User_transaction.pp";
"B.Order.pp";
"B.Withdraw.pp";
"B.Deposit.pp";
]
let eval_string
?(print_outcome = false) ?(err_formatter = Format.err_formatter... | null | https://raw.githubusercontent.com/vbmithr/ocaml-bitstamp-api/22d503236e7ec725dbdd0e0fdd0116970882b567/top/bitstamp_top.ml | ocaml | module B = Bitstamp.API(Bitstamp_lwt)
let printers = [
"B.Ticker.pp";
"B.Order_book.pp";
"B.Transaction.pp";
"B.Eur_usd.pp";
"B.Balance.pp";
"B.User_transaction.pp";
"B.Order.pp";
"B.Withdraw.pp";
"B.Deposit.pp";
]
let eval_string
?(print_outcome = false) ?(err_formatter = Format.err_formatter... | |
4cebbaaab56acbc27dc32ffeba6a43b4844bd7da30e7c2873e2d3ea0ee549277 | janegca/htdp2e | Exercise-016-StringLast.rkt | The first three lines of this file were inserted by . They record metadata
;; about the language level of this file in a form that our tools can easily process.
#reader(lib "htdp-beginner-reader.ss" "lang")((modname Exercise-016-StringLast) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp") ... | null | https://raw.githubusercontent.com/janegca/htdp2e/2d50378135edc2b8b1816204021f8763f8b2707b/01-FixedSizeData/Exercise-016-StringLast.rkt | racket | about the language level of this file in a form that our tools can easily process.
Define the function string-last, which extracts the last character from a
non-empty string. Don’t worry about empty strings. | The first three lines of this file were inserted by . They record metadata
#reader(lib "htdp-beginner-reader.ss" "lang")((modname Exercise-016-StringLast) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp") (lib "universe.rkt" "teachpack" "2htdp"))) (htdp-settings #(#t constructor repeating-d... |
1f069228fd67903efdaf84384138885e7387d26e85648f2eda179a7c431e7f74 | Engil/Goodboy | disassembly_window.ml | open Notty
open Goodboy
open Pretty_opcodes
type t = int
let some s = Some s
let get_instr is_extended opcode =
try
if is_extended then
some @@ get_ext_opcode_repr opcode
else
some @@ get_opcode_repr opcode
with
| Not_found -> None
let image_of_opcode addr v (o : opcode) =
let addr = I.s... | null | https://raw.githubusercontent.com/Engil/Goodboy/2e9abc243b929d8bdfb7c5d4874ddb8a07c55fac/debugger/disassembly_window.ml | ocaml | open Notty
open Goodboy
open Pretty_opcodes
type t = int
let some s = Some s
let get_instr is_extended opcode =
try
if is_extended then
some @@ get_ext_opcode_repr opcode
else
some @@ get_opcode_repr opcode
with
| Not_found -> None
let image_of_opcode addr v (o : opcode) =
let addr = I.s... | |
4188e26b798aff8e3a52aa3a3d6a68072a5c61a859f6899f91476aaf55ae4d65 | ssor/erlangDemos | link_ex.erl | -module(link_ex).
-behaviour(gen_server).
-export([start_link/0, ping/0]).
%% gen_server callbacks
-export([init/1, handle_call/3, handle_cast/2, handle_info/2,
terminate/2, code_change/3]).
-define(SERVER, ?MODULE).
-record(state, {}).
start_link() ->
gen_server:start_link({local, ?SERVER}, ?MODULE, [], []... | null | https://raw.githubusercontent.com/ssor/erlangDemos/632cd905be2c4f275f1c1ae15238e711d7bb9147/erlware-Erlang-and-OTP-in-Action-Source/link_ex.erl | erlang | gen_server callbacks | -module(link_ex).
-behaviour(gen_server).
-export([start_link/0, ping/0]).
-export([init/1, handle_call/3, handle_cast/2, handle_info/2,
terminate/2, code_change/3]).
-define(SERVER, ?MODULE).
-record(state, {}).
start_link() ->
gen_server:start_link({local, ?SERVER}, ?MODULE, [], []).
ping() ->
gen_se... |
042d924a25ba399ac28c4fec74f94289bc17385a31836a446d60dc213d01834e | sharplispers/montezuma | tc-stop-filter.lisp | (in-package #:montezuma)
(defun asdf-system-directory (asdf-system-name)
"Computes the directory in which the .asdf file for a given ASDF
system resides."
(make-pathname :directory
(pathname-directory (truename (asdf:system-definition-pathname
(as... | null | https://raw.githubusercontent.com/sharplispers/montezuma/ee2129eece7065760de4ebbaeffaadcb27644738/tests/unit/analysis/tc-stop-filter.lisp | lisp | This seems kind of ridiculous. See
<#utime_requested>;
even Lisp implementors find it surprising. | (in-package #:montezuma)
(defun asdf-system-directory (asdf-system-name)
"Computes the directory in which the .asdf file for a given ASDF
system resides."
(make-pathname :directory
(pathname-directory (truename (asdf:system-definition-pathname
(as... |
c3286427b75634f0f62bd197901e22401314f32121248d3a4377af57e523ef96 | pedestal/pedestal | route.clj | Copyright 2013 Relevance , Inc.
Copyright 2014 - 2022 Cognitect , Inc.
; The use and distribution terms for this software are covered by the
Eclipse Public License 1.0 ( )
; which can be found in the file epl-v10.html at the root of this distribution.
;
; By using this software in any fashion, you are agreeing ... | null | https://raw.githubusercontent.com/pedestal/pedestal/53bfe70143a22cdfd2f0d183023334a199c9e9a2/route/src/io/pedestal/http/route.clj | clojure | The use and distribution terms for this software are covered by the
which can be found in the file epl-v10.html at the root of this distribution.
By using this software in any fashion, you are agreeing to be bound by
the terms of this license.
You must not remove this notice, or any other, from this software.
S... | Copyright 2013 Relevance , Inc.
Copyright 2014 - 2022 Cognitect , Inc.
Eclipse Public License 1.0 ( )
(ns io.pedestal.http.route
(:require [clojure.string :as str]
[clojure.core.incubator :refer [dissoc-in]]
[io.pedestal.interceptor :as interceptor]
[io.pedestal.intercepto... |
d2358156f45c368f85fe47d74a92aef8c02f30f84d404e888431c134963c290b | MyPost/cassius | core.clj | (ns cassius.core
(:require [cassius.common :refer :all]
[cassius.protocols]
[cassius.api.connection]
[cassius.api.pool]
[cassius.component]
[hara.namespace.import :refer [import]]
[clojure.pprint :as pp])
(:refer-clojure :exclude [import]))
(i... | null | https://raw.githubusercontent.com/MyPost/cassius/7b5f550fa8e8f825d4ecd7ba6a0d34c5ff606a7c/src/cassius/core.clj | clojure | (ns cassius.core
(:require [cassius.common :refer :all]
[cassius.protocols]
[cassius.api.connection]
[cassius.api.pool]
[cassius.component]
[hara.namespace.import :refer [import]]
[clojure.pprint :as pp])
(:refer-clojure :exclude [import]))
(i... | |
a765c9bc1aaafbd6dcbb38133c3db6ddcbe1b451233249f1af6451daa577b150 | gilith/hol-light | group-abelian-monoid.ml | (*BEGIN-PARAMETRIC*)
let group_add_comm' = new_axiom
`!x y z. group_add x (group_add y z) = group_add y (group_add x z)`;;
(*END-PARAMETRIC*)
| null | https://raw.githubusercontent.com/gilith/hol-light/f3f131963f2298b4d65ee5fead6e986a4a14237a/opentheory/theories/group/group-abelian-monoid.ml | ocaml | BEGIN-PARAMETRIC
END-PARAMETRIC | let group_add_comm' = new_axiom
`!x y z. group_add x (group_add y z) = group_add y (group_add x z)`;;
|
59dd0aa104c85e2ebb7b2b76da4b27f4841b6c2b780786721a94f9a1ebd92a30 | restyled-io/restyled.io | LogLines.hs | module Restyled.Handlers.Repos.Jobs.LogLines
( getRepoJobLogLinesR
) where
import Restyled.Prelude
import qualified Data.Text as T
import qualified Data.Text.Lazy as LT
import Restyled.DB
import Restyled.Foundation
import Restyled.JobOutput
import Restyled.Models
import Restyled.WebSockets
import qualified Re... | null | https://raw.githubusercontent.com/restyled-io/restyled.io/f9f34b6ad572d2c9ee5689367329916e65596581/src/Restyled/Handlers/Repos/Jobs/LogLines.hs | haskell | module Restyled.Handlers.Repos.Jobs.LogLines
( getRepoJobLogLinesR
) where
import Restyled.Prelude
import qualified Data.Text as T
import qualified Data.Text.Lazy as LT
import Restyled.DB
import Restyled.Foundation
import Restyled.JobOutput
import Restyled.Models
import Restyled.WebSockets
import qualified Re... | |
256305084ecd3a77e59c1f68126081be818e86193a8b1fca15db3292f1d17e3d | mbj/stratosphere | DBParameterGroup.hs | module Stratosphere.Neptune.DBParameterGroup (
DBParameterGroup(..), mkDBParameterGroup
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data DBPa... | null | https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/neptune/gen/Stratosphere/Neptune/DBParameterGroup.hs | haskell | module Stratosphere.Neptune.DBParameterGroup (
DBParameterGroup(..), mkDBParameterGroup
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data DBPa... | |
454f0cfe83df88576b904fe4cf99045685e5236bed72e09031ec35dc620f9e6a | 6502/JSLisp | forms-server.lisp | (import * from gui)
(import * from rpc-server)
(import examples/forms)
(defun main ()
(start-server "127.0.0.1" 1337))
(main)
| null | https://raw.githubusercontent.com/6502/JSLisp/9a4aa1a9116f0cfc598ec9f3f30b59d99810a728/examples/forms-server.lisp | lisp | (import * from gui)
(import * from rpc-server)
(import examples/forms)
(defun main ()
(start-server "127.0.0.1" 1337))
(main)
| |
60bc8ac049b60a770b2e979042db32389350a6bb4973e3c52940dade973a2b88 | privet-kitty/cl-competitive | xorshift.lisp | (defpackage :cp/xorshift
(:use :cl)
(:export #:xorshift #:randi #:randprob #:randprob1 #:xorshift-seed! #:randf)
(:documentation "Provides a random number generator that focuses only on
efficiency."))
(in-package :cp/xorshift)
(eval-when (:compile-toplevel :load-toplevel :execute)
(assert (= 64 sb-vm:n-word-bi... | null | https://raw.githubusercontent.com/privet-kitty/cl-competitive/4691a18ccfa627e6795cc35844b82ca28bb416b3/module/xorshift.lisp | lisp | TODO: investigate the safety of this weird hack
FIXME: this is not based on any evidence
avoid trouble | (defpackage :cp/xorshift
(:use :cl)
(:export #:xorshift #:randi #:randprob #:randprob1 #:xorshift-seed! #:randf)
(:documentation "Provides a random number generator that focuses only on
efficiency."))
(in-package :cp/xorshift)
(eval-when (:compile-toplevel :load-toplevel :execute)
(assert (= 64 sb-vm:n-word-bi... |
5ed374dbae8ce9e13241561c5cf1c2fdb0167d9a398bafc84333b855ad50d845 | jship/monad-logger-aeson | MetadataNoThreadContextNo.hs | # LANGUAGE NamedFieldPuns #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE QuasiQuotes #
module TestCase.LogDebugNS.MetadataNoThreadContextNo
( testCase
) where
import Control.Monad.Logger.Aeson (Loc(..), LogLevel(..), LoggedMessage(..), logDebugNS)
import Data.Aeson.QQ.Simple (aesonQQ)
import Data.Time (UTCTime(..... | null | https://raw.githubusercontent.com/jship/monad-logger-aeson/218dd4a1fd9fd7f86514322dd529444a55001443/monad-logger-aeson/test-suite/TestCase/LogDebugNS/MetadataNoThreadContextNo.hs | haskell | # LANGUAGE OverloadedStrings # | # LANGUAGE NamedFieldPuns #
# LANGUAGE QuasiQuotes #
module TestCase.LogDebugNS.MetadataNoThreadContextNo
( testCase
) where
import Control.Monad.Logger.Aeson (Loc(..), LogLevel(..), LoggedMessage(..), logDebugNS)
import Data.Aeson.QQ.Simple (aesonQQ)
import Data.Time (UTCTime(..))
import TestCase (TestCase(..))
i... |
f81329b1aec14904a01faca655f7b4e24b0919af607f5629552b9263337f466a | cl-rabbit/cl-bunny | receive-logs-direct.lisp | (ql:quickload :cl-bunny.examples)
(in-package :cl-bunny.examples)
(if-let ((args (rest sb-ext:*posix-argv*)))
(with-connection ()
(with-channel ()
(let ((q (queue.declare :auto-delete t))
(x (exchange.direct "direct_logs")))
(loop for severity in args do
(queue.bind q ... | null | https://raw.githubusercontent.com/cl-rabbit/cl-bunny/6da7fe161efc8d6bb0b8b09ac8efad03553d765c/examples/tutorials/receive-logs-direct.lisp | lisp | (ql:quickload :cl-bunny.examples)
(in-package :cl-bunny.examples)
(if-let ((args (rest sb-ext:*posix-argv*)))
(with-connection ()
(with-channel ()
(let ((q (queue.declare :auto-delete t))
(x (exchange.direct "direct_logs")))
(loop for severity in args do
(queue.bind q ... | |
ab286d6c4481197e213f307b2e16a41a8d5670fa1db6f7bc9b394a1fc3d52ee4 | coq-tactician/coq-tactician | tactician_util.ml | let mapi f s : 'a IStream.t =
let rec mapi_node f i = function
| IStream.Nil -> IStream.Nil
| IStream.Cons (x, s) -> Cons (f i x, mapi f (i + 1) s)
and mapi f i s = IStream.thunk (fun () -> mapi_node f i (IStream.peek s))
in mapi f 0 s
let rec to_list n s = match n, IStream.peek s with
| _, Nil | 0, _ ... | null | https://raw.githubusercontent.com/coq-tactician/coq-tactician/db3de79f46cb53d3613290d5fa7426b0e85e1362/src/tactician_util.ml | ocaml | Find the current file name
Search in loadpath | let mapi f s : 'a IStream.t =
let rec mapi_node f i = function
| IStream.Nil -> IStream.Nil
| IStream.Cons (x, s) -> Cons (f i x, mapi f (i + 1) s)
and mapi f i s = IStream.thunk (fun () -> mapi_node f i (IStream.peek s))
in mapi f 0 s
let rec to_list n s = match n, IStream.peek s with
| _, Nil | 0, _ ... |
12cebaed4867e4a1f676fd6d93c6f46bc3d777593b83a5b817182e0f0cb9cc6e | Netflix/mantis-mql | test_query.clj | ;
Copyright 2022 Netflix , Inc.
;
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; -2.0
;
; Unless required by applicable law or agreed to in writing, software
distributed unde... | null | https://raw.githubusercontent.com/Netflix/mantis-mql/94600fc687afd380e6a063806a5f0dd0be218f34/mql-jvm/src/test/clojure/io/mantisrx/mql/test_query.clj | clojure |
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing pe... | Copyright 2022 Netflix , Inc.
distributed under the License is distributed on an " AS IS " BASIS ,
(ns io.mantisrx.mql.test-query
"The objective of this namespace is to verify correct functionality with
non-aggregate queries."
(:require [clojure.test :refer :all]
[io.mantisrx.mql.jvm.core :refer ... |
b4c5278e9b395ea5b8a17e02692d50c161b60fddc921ef1ed763a47e440572e1 | coq/coq | ssrfwd.ml | (************************************************************************)
(* * The Coq Proof Assistant / The Coq Development Team *)
v * Copyright INRIA , CNRS and contributors
< O _ _ _ , , * ( see version control and CREDITS file for authors & dates )
\VV/ * * *... | null | https://raw.githubusercontent.com/coq/coq/8f1590f7840d0dff71fa9b7a7bbc1ed01d779359/plugins/ssr/ssrfwd.ml | ocaml | **********************************************************************
* The Coq Proof Assistant / The Coq Development Team
// * This file is distributed under the terms of the
* (see LICENSE file for the text of the license)
************************************... | v * Copyright INRIA , CNRS and contributors
< O _ _ _ , , * ( see version control and CREDITS file for authors & dates )
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* GNU Lesser Gener... |
12aa35706263c0a80a55e11cb587a20b10591ac2e00295470863f15271e16248 | ocaml/ocaml-re | pcre.mli | type regexp = Core.re
type flag = [ `CASELESS | `MULTILINE | `ANCHORED ]
type groups = Core.Group.t
(** Result of a {!Pcre.full_split} *)
type split_result =
| Text of string (** Text part of splitted string *)
| Delim of string (** Delimiter part of splitted string *)
| Group of int * string (** ... | null | https://raw.githubusercontent.com/ocaml/ocaml-re/09c2745a2d8d1517b3d597396e82e122903b0017/lib/pcre.mli | ocaml | * Result of a {!Pcre.full_split}
* Text part of splitted string
* Delimiter part of splitted string
* Subgroup of matched delimiter (subgroup_nr, subgroup_str)
* Unmatched subgroup
* [extract ~rex s] executes [rex] on [s] and returns the matching groups.
* Equivalent to {!Core.exec}.
* Equivalent to {!Core.Group... | type regexp = Core.re
type flag = [ `CASELESS | `MULTILINE | `ANCHORED ]
type groups = Core.Group.t
type split_result =
val re : ?flags:(flag list) -> string -> Core.t
* [ re ~flags s ] creates the regexp [ s ] using the pcre syntax .
val regexp : ?flags:(flag list) -> string -> regexp
* [ re ~flags s ] compiles t... |
251113df33377cc8b2f0d26112080c695881703d8d1bb3809d260c97d574b82e | moby/datakit | cI_output.mli | type saved = {
title : string;
commit : string;
branch : string;
failed : bool;
mutable rebuild :
[ `Rebuildable of unit Lwt.t Lazy.t | `Rebuilding | `Archived ];
}
type logs =
| Empty
| Live of CI_live_log.t
| Saved of saved
| Pair of logs * logs
type 'a t = 'a CI_result.t * logs
val result : ... | null | https://raw.githubusercontent.com/moby/datakit/e047e55a2dfa3aaec02398d7d7699f4f7afd2b47/ci/src/cI_output.mli | ocaml | * [equal a b] is [true] iff [a] and [b] are equal for the purposes of saving the output metadata to disk.
i.e. they have the same JSON representation. | type saved = {
title : string;
commit : string;
branch : string;
failed : bool;
mutable rebuild :
[ `Rebuildable of unit Lwt.t Lazy.t | `Rebuilding | `Archived ];
}
type logs =
| Empty
| Live of CI_live_log.t
| Saved of saved
| Pair of logs * logs
type 'a t = 'a CI_result.t * logs
val result : ... |
3aec7e401857aa74637bac1e62e6225936ca0715a5f69cd8fca72037212e6ec3 | racket/eopl | main.rkt | #lang racket/base
(require "eopl.rkt") ; provides `provide'
(provide (all-from-out "eopl.rkt"))
| null | https://raw.githubusercontent.com/racket/eopl/43575d6e95dc34ca6e49b305180f696565e16e0f/main.rkt | racket | provides `provide' | #lang racket/base
(provide (all-from-out "eopl.rkt"))
|
36f223774711806c891ac940f52a91f5ef2cd90b06564b337659059081a063a7 | xu-hao/QueryArrow | PostgreSQL.hs | # LANGUAGE GADTs , FlexibleInstances , MultiParamTypeClasses , OverloadedStrings , TypeFamilies , DeriveGeneric , OverloadedStrings #
module QueryArrow.SQL.LibPQ.PostgreSQL where
import QueryArrow.DB.DB
import QueryArrow.DB.GenericDatabase
import QueryArrow.SQL.Mapping
import QueryArrow.Config
import QueryArrow.... | null | https://raw.githubusercontent.com/xu-hao/QueryArrow/4dd5b8a22c8ed2d24818de5b8bcaa9abc456ef0d/QueryArrow-db-sql-libpq-postgresql/src/QueryArrow/SQL/LibPQ/PostgreSQL.hs | haskell | # LANGUAGE GADTs , FlexibleInstances , MultiParamTypeClasses , OverloadedStrings , TypeFamilies , DeriveGeneric , OverloadedStrings #
module QueryArrow.SQL.LibPQ.PostgreSQL where
import QueryArrow.DB.DB
import QueryArrow.DB.GenericDatabase
import QueryArrow.SQL.Mapping
import QueryArrow.Config
import QueryArrow.... | |
11446557c7bf80203db26a9162549e042201742d08e36988abdb812cf4d56bd4 | simingwang/emqx-plugin-kafkav5 | tls_sender.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 2018 - 2022 . All Rights Reserved .
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% -2.0
%%
%% Unless required by applicab... | null | https://raw.githubusercontent.com/simingwang/emqx-plugin-kafkav5/bbf919e56dbc8fd2d4c1c541084532f844a11cbc/_build/default/rel/emqx_plugin_kafka/lib/ssl-10.7/src/tls_sender.erl | erlang |
%CopyrightBegin%
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific lan... | Copyright Ericsson AB 2018 - 2022 . All Rights Reserved .
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(tls_sender).
-behaviour(gen_statem).
-include("ssl_internal.hrl").
-include("ssl_alert.hrl").
-include("ss... |
b07034f799b420163cae3f89745acd35c902d491377cafe8a18e2cfe0545d71e | yallop/ocaml-ctypes | test_foreign_values.ml |
* Copyright ( c ) 2013 - 2014 .
*
* This file is distributed under the terms of the MIT License .
* See the file LICENSE for details .
* Copyright (c) 2013-2014 Jeremy Yallop.
*
* This file is distributed under the terms of the MIT License.
* See the file LICENSE for details.
*)
open OUnit2
open ... | null | https://raw.githubusercontent.com/yallop/ocaml-ctypes/52ff621f47dbc1ee5a90c30af0ae0474549946b4/tests/test-foreign_values/test_foreign_values.ml | ocaml |
Retrieve a struct exposed as a global value.
Store a reference to an OCaml function as a global function pointer.
Access an array exposed as a global value
Read environment variables from the 'environ' global.
|
* Copyright ( c ) 2013 - 2014 .
*
* This file is distributed under the terms of the MIT License .
* See the file LICENSE for details .
* Copyright (c) 2013-2014 Jeremy Yallop.
*
* This file is distributed under the terms of the MIT License.
* See the file LICENSE for details.
*)
open OUnit2
open ... |
fbdf9f3088e82cfc626a825c2752d30451359beb4bfa4402f29ed3176269ea84 | cemerick/clojurescript.test | basic.cljs | Copyright ( c ) . All rights reserved .
; The use and distribution terms for this software are covered by the
; Eclipse Public License 1.0 (-1.0.php)
; which can be found in the file epl-v10.html at the root of this distribution.
; By using this software in any fashion, you are agreeing to be bound by
; ... | null | https://raw.githubusercontent.com/cemerick/clojurescript.test/e8f42c2a8921c584dc2333f5e2df2251c25098ab/test/cemerick/cljs/test/basic.cljs | clojure | The use and distribution terms for this software are covered by the
Eclipse Public License 1.0 (-1.0.php)
which can be found in the file epl-v10.html at the root of this distribution.
By using this software in any fashion, you are agreeing to be bound by
the terms of this license.
You must not remove ... | Copyright ( c ) . All rights reserved .
test_clojure / test.clj : unit tests for test.clj
by
January 16 , 2009
Thanks to , , and for
(ns cemerick.cljs.test.basic
(:require-macros [cemerick.cljs.test :as m :refer (is test-var deftest run-tests deftesthook)])
(:require [cemerick.cljs.test :a... |
7d24256e4093fbbbfa7269c7c8585c8e4a3aa0e30833fa9854b5b3ad4982371e | ncaq/yesod-form-bootstrap4 | Bootstrap4.hs | # LANGUAGE FlexibleContexts #
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_GHC -Wno-partial-fields #-}
| this program based on Yesod . Form . Bootstrap3 of yesod - form
yesod - form under MIT license , auth... | null | https://raw.githubusercontent.com/ncaq/yesod-form-bootstrap4/aadfca38232f2a22a07b3454479882180fd99f41/src/Yesod/Form/Bootstrap4.hs | haskell | # LANGUAGE NamedFieldPuns #
# LANGUAGE OverloadedStrings #
# LANGUAGE QuasiQuotes #
# LANGUAGE TypeFamilies #
# OPTIONS_GHC -Wno-partial-fields #
| Add an autofocus attribute to a field.
| Add the @input-lg@ CSS class to a field.
| Add the @input-sm@ CSS class to a field.
| The layout used for the boo... | # LANGUAGE FlexibleContexts #
| this program based on Yesod . Form . Bootstrap3 of yesod - form
yesod - form under MIT license , author is < >
module Yesod.Form.Bootstrap4
( renderBootstrap4
, BootstrapFormLayout(..)
, BootstrapGridOptions(..)
, bfs
, bfsFile
, withPlaceholder
, withAutofocus
... |
4ef27fcc569ad347b4b3363f38ade641180c2db126b9f913b8706a10dbcd4b47 | ocaml-flambda/ocaml-jst | typedtree.mli | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/ocaml-flambda/ocaml-jst/4fd53a1f6fa8e93d60e808bc82ee79f622709f09/typing/typedtree.mli | ocaml | ************************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
* By comparison with { ! :
- Every { ! Longindent.t } is accompanied by a resolved { ! Path.t }... |
f76d3f84408aacb0891133170ec6e9a6d8f5ea44933275ce076952f97468cb0d | mirage/ocaml-rpc | rpc_lwt.mli | type client_implementation
type server_implementation
module T : sig
type 'a box
type ('a, 'b) resultb = ('a, 'b) Result.t box
type rpcfn = Rpc.call -> Rpc.response Lwt.t
val lift : ('a -> 'b Lwt.t) -> 'a -> 'b box
val bind : 'a box -> ('a -> 'b Lwt.t) -> 'b box
val return : 'a -> 'a box
val get : 'a bo... | null | https://raw.githubusercontent.com/mirage/ocaml-rpc/c0f6463ea8ccea555c1d1e990a2a9a86b52fa5ae/src/lwt/rpc_lwt.mli | ocaml | * Client generator similar to {!Idl.GenClient} that uses [Lwt].
* Server generator similar to {!Idl.GenServer} that uses [Lwt]. | type client_implementation
type server_implementation
module T : sig
type 'a box
type ('a, 'b) resultb = ('a, 'b) Result.t box
type rpcfn = Rpc.call -> Rpc.response Lwt.t
val lift : ('a -> 'b Lwt.t) -> 'a -> 'b box
val bind : 'a box -> ('a -> 'b Lwt.t) -> 'b box
val return : 'a -> 'a box
val get : 'a bo... |
eacb5485c3eca2f98c30fc1d2559e61b66f76d40379262178759c2e5e8a74584 | takikawa/racket-ppa | test-markup.rkt | ; Generate markup for test results
#lang racket/base
(provide render-value-parameter ; determines how values should be rendered
display-test-results-parameter ; determines how test-result markup should be rendered
display-test-results! ; call the above
get-rewritten-error-message-parameter ;... | null | https://raw.githubusercontent.com/takikawa/racket-ppa/caff086a1cd48208815cec2a22645a3091c11d4c/share/pkgs/htdp-lib/test-engine/test-markup.rkt | racket | Generate markup for test results
determines how values should be rendered
determines how test-result markup should be rendered
call the above
from an exception, extract/translate appropriate message
call the above
converts test object to markup
clashes with test-engine
an exception message might be printed aft... | #lang racket/base
(require (only-in racket/string string-split)
(only-in racket/list append-map)
string-constants
test-engine/test-engine
(only-in simple-tree-text-markup/data
markup?
empty-markup?
srcloc-markup? srcloc-markup-s... |
49402d49e717971e44def3a28660f618fd1d4277363c6e5662095cfb46cddda9 | ocaml/dune | signal.ml | type t =
| Int
| Term
| Abrt
| Alrm
| Fpe
| Hup
| Ill
| Kill
| Pipe
| Quit
| Segv
| Usr1
| Usr2
| Chld
| Cont
| Stop
| Tstp
| Ttin
| Ttou
| Vtalrm
| Prof
| Bus
| Poll
| Sys
| Trap
| Urg
| Xcpu
| Xfsz
| Unknown of int
let all =
let open Sys in
[ (Abrt, sigab... | null | https://raw.githubusercontent.com/ocaml/dune/714626f4d408e5c71c24ba91d0d520588702ec52/otherlibs/stdune/src/signal.ml | ocaml | type t =
| Int
| Term
| Abrt
| Alrm
| Fpe
| Hup
| Ill
| Kill
| Pipe
| Quit
| Segv
| Usr1
| Usr2
| Chld
| Cont
| Stop
| Tstp
| Ttin
| Ttou
| Vtalrm
| Prof
| Bus
| Poll
| Sys
| Trap
| Urg
| Xcpu
| Xfsz
| Unknown of int
let all =
let open Sys in
[ (Abrt, sigab... | |
5569c3596ddb5fef85163eba7ce5f8aee1d8200ea85e71ceb27deb8c713c81d3 | CATechnologiesTest/arete | module_order.clj | (ns engine.module-order
(:require [engine.core :refer :all]))
(deforder (:from-module :engine.module-order))
(defrule rule1
[?x :x]
=>
(remove! ?x)
(insert! {:type :order}))
| null | https://raw.githubusercontent.com/CATechnologiesTest/arete/1ccaa554abd3ee4499cbe2381af2ed2af33fb420/test/engine/module_order.clj | clojure | (ns engine.module-order
(:require [engine.core :refer :all]))
(deforder (:from-module :engine.module-order))
(defrule rule1
[?x :x]
=>
(remove! ?x)
(insert! {:type :order}))
| |
5dc733e43391e469706b7025023eae2bca788b574e36698c63865fb8a157409a | grin-compiler/ghc-whole-program-compiler-project | Stubs.hs | # LANGUAGE LambdaCase #
module Stg.Foreign.Stubs where
import qualified Data.ByteString.Char8 as BS8
import Stg.Program
import Stg.Syntax
import Stg.GHC.Symbols
genStubs :: FilePath -> IO String
genStubs ghcstgappFname = do
mods <- getGhcStgAppModules ghcstgappFname
let stubs = concat $ [map genStubCode ... | null | https://raw.githubusercontent.com/grin-compiler/ghc-whole-program-compiler-project/6e75aaccf4df0d78786f5bb1a28778d54c09a7be/external-stg/lib/Stg/Foreign/Stubs.hs | haskell | ["#include \"HsFFI.h\""]
gen code + collect include headers
FIXME: temporary hack | # LANGUAGE LambdaCase #
module Stg.Foreign.Stubs where
import qualified Data.ByteString.Char8 as BS8
import Stg.Program
import Stg.Syntax
import Stg.GHC.Symbols
genStubs :: FilePath -> IO String
genStubs ghcstgappFname = do
mods <- getGhcStgAppModules ghcstgappFname
let stubs = concat $ [map genStubCode ... |
c84324fd413c52fa433a9360e39ae9ae5ed5c980916371c158600379432b4806 | jspahrsummers/RxHaskell | Event.hs | {-# LANGUAGE Safe #-}
module Signal.Event ( Event(..)
) where
import Control.Exception
-- | Represents an event that a signal might send.
--
Signals may send any number of ' NextEvent 's , followed by one ' ErrorEvent ' /or/ ' CompletedEvent ' .
^ A value @v@ in the monad .
| E... | null | https://raw.githubusercontent.com/jspahrsummers/RxHaskell/19550bb692a6a6e56314fe3aebb1303a22e577ed/Signal/Event.hs | haskell | # LANGUAGE Safe #
| Represents an event that a signal might send.
^ Sent when an error or exception occurs in the signal. Outside of the monad.
^ Sent when the signal completes successfully. Outside of the monad. |
module Signal.Event ( Event(..)
) where
import Control.Exception
Signals may send any number of ' NextEvent 's , followed by one ' ErrorEvent ' /or/ ' CompletedEvent ' .
^ A value @v@ in the monad .
instance Eq v => Eq (Event v) where
(NextEvent v) == (NextEvent v') = v == v'
(Erro... |
9a9e72a2ea949d61411c1128773350cdedaaecb593aa655781cb3347b8cf4ce9 | eugenehr/erlyconv | cp863.erl | %% THIS FILE WAS AUTOMATICALLY GENERATED BY gen_src.pl
FROM mappings / MICSFT / PC / CP863.TXT AT 2016 - 08 - 19
-module(cp863).
-vsn(20160819).
-export([to_unicode/1, from_unicode/1]).
%% Public functions
to_unicode(16#80) -> 16#00c7;
to_unicode(16#81) -> 16#00fc;
to_unicode(16#82) -> 16#00e9;
to_unicode(16#83) -> ... | null | https://raw.githubusercontent.com/eugenehr/erlyconv/ecdcd7db8f785c9638cd1ebad37ccd426c050cdf/src/cp863.erl | erlang | THIS FILE WAS AUTOMATICALLY GENERATED BY gen_src.pl
Public functions
Private functions | FROM mappings / MICSFT / PC / CP863.TXT AT 2016 - 08 - 19
-module(cp863).
-vsn(20160819).
-export([to_unicode/1, from_unicode/1]).
to_unicode(16#80) -> 16#00c7;
to_unicode(16#81) -> 16#00fc;
to_unicode(16#82) -> 16#00e9;
to_unicode(16#83) -> 16#00e2;
to_unicode(16#84) -> 16#00c2;
to_unicode(16#85) -> 16#00e0;
to_uni... |
d4e952187db045d0fe07caa24ef760af17f1f1df647e02521f83717b5528d7db | esl/ejabberd_tests | metrics_c2s_SUITE.erl | %%==============================================================================
Copyright 2013 Erlang Solutions Ltd.
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% -2.0
%%
... | null | https://raw.githubusercontent.com/esl/ejabberd_tests/913fb0a5a8c1ab753eb35c1e1b491e8572633b54/tests/metrics_c2s_SUITE.erl | erlang | ==============================================================================
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either ex... | Copyright 2013 Erlang Solutions Ltd.
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(metrics_c2s_SUITE).
-compile(export_all).
-include_lib("escalus/include/escalus.hrl").
-include_lib("common_test/include/ct.hrl"... |
3daade38d597f109f51a2e7a01a68921384aac02d1e482829c984a7fbea6ef39 | quil-lang/sbcl-librarian | package.lisp | (defpackage #:sbcl-librarian.tests.libsquare
(:use #:cl #:sbcl-librarian))
| null | https://raw.githubusercontent.com/quil-lang/sbcl-librarian/bfeb8c9725eb46dffbef18f333d70e8162f94ef9/tests/libs/libsquare/package.lisp | lisp | (defpackage #:sbcl-librarian.tests.libsquare
(:use #:cl #:sbcl-librarian))
| |
664cb05eaeb28ea3b048da71ffb9ead79ba7f971d12c5d1d38cfecc2775cfd35 | jserot/caph | xdf.ml | (************************************************************************************)
(* *)
(* CAPH *)
(* -bpclermont.fr ... | null | https://raw.githubusercontent.com/jserot/caph/2b3b241f0c32aa4fcaf60d4b8529956cca8aa6b1/compiler/xdf.ml | ocaml | **********************************************************************************
CAPH
-bpclermont.fr
... |
Copyright 2011 - 2019 . All rights reserved .
This file is distributed under the terms of the Q Public License version 1.0 .
XDF formatted output
open Misc
open Printf
open Ssval
open Static
open Interm
open Arrays
type xdf_config = {
m... |
9a40a1157b529861ee2b8d43b3eefbbd44f0969d47b005b2d8b536786a2d9981 | programaker-project/Programaker-Core | automate_bot_engine_thread_stopping_tests.erl | %%% @doc
Automate bot engine tests .
%%% @end
-module(automate_bot_engine_thread_stopping_tests).
-include_lib("eunit/include/eunit.hrl").
%% Data structures
-include("../../automate_storage/src/records.hrl").
-include("../src/program_records.hrl").
-include("../src/instructions.hrl").
-include("../../automate_chan... | null | https://raw.githubusercontent.com/programaker-project/Programaker-Core/ef10fc6d2a228b2096b121170c421f5c29f9f270/backend/apps/automate_bot_engine/test/automate_bot_engine_thread_stopping_tests.erl | erlang | @doc
@end
Data structures
Test data
====================================================================
Test API
====================================================================
@doc App infrastructure setup.
@end
Use a custom node name to avoid overwriting the actual databases
@doc App infrastructure tea... | Automate bot engine tests .
-module(automate_bot_engine_thread_stopping_tests).
-include_lib("eunit/include/eunit.hrl").
-include("../../automate_storage/src/records.hrl").
-include("../src/program_records.hrl").
-include("../src/instructions.hrl").
-include("../../automate_channel_engine/src/records.hrl").
-inclu... |
c7ecf62daa692dbd0f4a95a62facd6db95af5340f6a7d926c1d257215cb48dcb | mzp/bs-lwt | lwt_pool.ml | Lwt
*
* Copyright ( C ) 2008
* 2012
* Laboratoire PPS - CNRS Université Paris Diderot
*
* 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 , wit... | null | https://raw.githubusercontent.com/mzp/bs-lwt/f37a3c47d038f4efcd65912c41fab95d1e6633ce/lwt/src/core/lwt_pool.ml | ocaml |
XXX Close after some timeout
...
Create a new pool member.
Check a member when its use failed.
Size of the pool.
Available pool members.
Threads waiting for a member.
Must be done before p.create to prevent other threads from
creating new members if the limit is reached.
Creation failed, so don... | Lwt
*
* Copyright ( C ) 2008
* 2012
* Laboratoire PPS - CNRS Université Paris Diderot
*
* 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 , wit... |
7ff027041bc5d65a2b55fd936fe17ca0e968a8869d02c562381bf179187f625c | futurice/haskell-mega-repo | Attribute.hs | # LANGUAGE DeriveGeneric #
{-# LANGUAGE OverloadedStrings #-}
module Personio.Internal.Attribute where
import Data.Aeson.Compat
import Data.Aeson.Internal (JSONPathElement (Key), (<?>))
import Futurice.Aeson
import Futurice.Generics
import Futurice.Prelude
import Prelude ()
import qualified Data.HashMap.Strict a... | null | https://raw.githubusercontent.com/futurice/haskell-mega-repo/2647723f12f5435e2edc373f6738386a9668f603/personio-client/src/Personio/Internal/Attribute.hs | haskell | # LANGUAGE OverloadedStrings #
| Personio attribute, i.e. labeled value.
-----------------------------------------------------------------------------
Parsing
----------------------------------------------------------------------------- | # LANGUAGE DeriveGeneric #
module Personio.Internal.Attribute where
import Data.Aeson.Compat
import Data.Aeson.Internal (JSONPathElement (Key), (<?>))
import Futurice.Aeson
import Futurice.Generics
import Futurice.Prelude
import Prelude ()
import qualified Data.HashMap.Strict as HM
import qualified Data.Swagger ... |
c8c1dbd222b2786a68ea300700ea9ba911c183a572244b5dbd381108698d5f16 | cac-t-u-s/om-sharp | init-do.lisp | ;============================================================================
; om#: visual programming language for computer-assisted music composition
;============================================================================
;
; This program is free software. For information on usage
; and redistribution, see... | null | https://raw.githubusercontent.com/cac-t-u-s/om-sharp/e99c153a554c22ff1d4951e2f44a736602866690/src/visual-language/boxes/init-do.lisp | lisp | ============================================================================
om#: visual programming language for computer-assisted music composition
============================================================================
This program is free software. For information on usage
and redistribution, see the "... | File author :
(in-package :om)
INIT - DO
(defclass OMPatchInit (OMPatchComponent) ()
(:documentation "A box that evaluates prior to the execution of the patch.
Can be used along with iterators to do something before to start a loop."))
(defclass OMPatchInitBox (OMPatchComponentBox) ())
(defmethod special... |
d13953c8d7cdc01c902d0267c6bc11342d920580d9a49b0c1842a6e8e964e34c | clojerl/clojerl | clj_module.erl | @doc Clojerl compilation module .
%%
%% Keeps the Core Erlang representation for the modules being
%% compiled.
%%
%% It is mainly used by {@link clj_emitter} to register new
%% modules and then add or update function as each form in the
%% compiler is processed.
-module(clj_module).
-behavior(gen_server).
-compile... | null | https://raw.githubusercontent.com/clojerl/clojerl/5b412b87de13811b5a6ee4d82329d6a44dc499f0/src/erl/clj_module.erl | erlang |
Keeps the Core Erlang representation for the modules being
compiled.
It is mainly used by {@link clj_emitter} to register new
modules and then add or update function as each form in the
compiler is processed.
gen_server callbacks
ETS table where mappings are kept. The key is the var's
name as a binary and the... | @doc Clojerl compilation module .
-module(clj_module).
-behavior(gen_server).
-compile({no_auto_import, [get/1, delete_module/1]}).
-include("clojerl.hrl").
-include("clojerl_int.hrl").
-include_lib("compiler/src/core_parse.hrl").
-export([ with_context/1
, in_context/0
, all_modules/0
, ... |
db4251456c7f59197965a054ba2494041580631fcb2470f4b02f5bba87a9cf2f | ocaml-explore/explore | test_toc.ml | open Explore.Toc
let test_toc () =
let toc_testable = Alcotest.testable pp equal in
let s = Omd.of_string "# Top\n## Second\n### Third\n" in
let correct = [ H (1, "Top"); H (2, "Second"); H (3, "Third") ] in
Alcotest.(check toc_testable) "same toc" correct (toc s)
let test_transform () =
let pp ppf b = Form... | null | https://raw.githubusercontent.com/ocaml-explore/explore/117768b378959f18a8d818f37779a750e90f3438/explore/tests/test_toc.ml | ocaml | open Explore.Toc
let test_toc () =
let toc_testable = Alcotest.testable pp equal in
let s = Omd.of_string "# Top\n## Second\n### Third\n" in
let correct = [ H (1, "Top"); H (2, "Second"); H (3, "Third") ] in
Alcotest.(check toc_testable) "same toc" correct (toc s)
let test_transform () =
let pp ppf b = Form... | |
fd902794580b2b8acb2efbd066a60dd5f704bfe851a84495aae70da5e91999f1 | DavidAlphaFox/RabbitMQ | rabbit_framing_amqp_0_9_1.erl | Autogenerated code . Do not edit .
%%
The contents of this file are subject to the Mozilla Public License
Version 1.1 ( the " License " ) ; you may not use this file except in
%% compliance with the License. You may obtain a copy of the License
%% at /
%%
Software distributed under the License is distrib... | null | https://raw.githubusercontent.com/DavidAlphaFox/RabbitMQ/0a64e6f0464a9a4ce85c6baa52fb1c584689f49a/src/rabbit_framing_amqp_0_9_1.erl | erlang |
compliance with the License. You may obtain a copy of the License
at /
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
the License for the specific language governing rights and
limitations under the License.
Various types
longstr
signedint
decimal
byte
double
long
short
bool... | Autogenerated code . Do not edit .
The contents of this file are subject to the Mozilla Public License
Version 1.1 ( the " License " ) ; you may not use this file except in
Software distributed under the License is distributed on an " AS IS "
The Original Code is RabbitMQ .
The Initial Developer of t... |
79d66de43d48071503893f584667482c4d136b0402bc88e5f76456c5bd4a75e5 | saikyun/clobits | wasd_rect.clj | (set! *warn-on-reflection* true) ; reflection warnings on structs means
; that native image will crash when accessing fields
(ns clobits.examples.sdl.wasd-rect
(:require [clobits.native-interop :refer [*native-image*]] ; this just sets *native-image*
[clobit... | null | https://raw.githubusercontent.com/saikyun/clobits/67bc60cbf6bed8a5178d552d3485e4117fb4df10/examples/sdl/src/clobits/examples/sdl/wasd_rect.clj | clojure | reflection warnings on structs means
that native image will crash when accessing fields
this just sets *native-image*
key down
key up |
(ns clobits.examples.sdl.wasd-rect
[clobits.examples.sdl.constants :as cs])
(:import [clobits.sdl Surface Rect])
(:gen-class))
(if *native-image*
(do (println "In native image context")
(require '[clobits.sdl.ni :as sdl]))
(do (println "In polyglot context")
(require '[clobits.sdl.poly... |
eeee72b0e93d3b1d5de6696c0302dbb04fbadb6c0e8a1ff6da5ba527f2c2c077 | ates/bb | bb.erl | -module(bb).
-export([start/1]).
-export([float2list/1]).
-export([float2list/2]).
-export([float2binary/1]).
-export([from_json/1]).
-export([get_env/1]).
-export([get_env/2]).
-export([timestamp/0]).
-export([signature/2]).
-export([to_binary/1]).
-export([fee/0]).
start(Opts) ->
bb_stream:start_link(Opts).
fl... | null | https://raw.githubusercontent.com/ates/bb/a189335a2912e589b61d43e589f53edce6fa8421/src/bb.erl | erlang | -module(bb).
-export([start/1]).
-export([float2list/1]).
-export([float2list/2]).
-export([float2binary/1]).
-export([from_json/1]).
-export([get_env/1]).
-export([get_env/2]).
-export([timestamp/0]).
-export([signature/2]).
-export([to_binary/1]).
-export([fee/0]).
start(Opts) ->
bb_stream:start_link(Opts).
fl... | |
fdd13e181a89875f96642febf2b9f5c4afcad27c5fb4fce1789e1ff3ea79e2b7 | jwiegley/gitlib | Smoke.hs | {-# LANGUAGE OverloadedStrings #-}
# OPTIONS_GHC -fno - warn - unused - do - bind #
# OPTIONS_GHC -fno - warn - wrong - do - bind #
# OPTIONS_GHC -fno - warn - name - shadowing #
module Main where
import qualified Git.CmdLine as Cli
import qualified Git.Smoke as Git
import Test.Hspec.HUnit ()
import ... | null | https://raw.githubusercontent.com/jwiegley/gitlib/7d7ee1a62de723e3ebbbcaf7c262d6b43936329c/gitlib-cmdline/test/Smoke.hs | haskell | # LANGUAGE OverloadedStrings # | # OPTIONS_GHC -fno - warn - unused - do - bind #
# OPTIONS_GHC -fno - warn - wrong - do - bind #
# OPTIONS_GHC -fno - warn - name - shadowing #
module Main where
import qualified Git.CmdLine as Cli
import qualified Git.Smoke as Git
import Test.Hspec.HUnit ()
import Test.Hspec.Runner
main :: IO (... |
b74b5d742a86055079eae2f5d9f5043f6052dd7cf9f7c2467f2e4a53650607f8 | BebeSparkelSparkel/biparsing | Main.hs | module Main where
import GHC.Generics
import Biparse
import Control.Monad ( (>=>), (<=<) )
import Control.Monad.Trans.State.Lazy( StateT, evalStateT, get )
import Data.Bifunctor ( bimap )
import Data.Functor.Barbie ( FunctorB(bmap) )
import Data.Functor.Identity ( Identity )
import Lens.Micro
import Prelude as P
impor... | null | https://raw.githubusercontent.com/BebeSparkelSparkel/biparsing/a34bf6638ea033bffc9ab4d1742e2433f43cf932/app/Main.hs | haskell | deriving Semigroup via GenericSemigroup (DXF h c t b e o m)
parser = do
get >>= \ls -> case ls of
case section of
Header
where
subSequence :: (a -> m b) -> (a -> n b -> c) -> String -> a -> Result c
subSequence = undefined | module Main where
import GHC.Generics
import Biparse
import Control.Monad ( (>=>), (<=<) )
import Control.Monad.Trans.State.Lazy( StateT, evalStateT, get )
import Data.Bifunctor ( bimap )
import Data.Functor.Barbie ( FunctorB(bmap) )
import Data.Functor.Identity ( Identity )
import Lens.Micro
import Prelude as P
impor... |
1b4cf0ad738c7b95797c0a66b6aec6e6e85bceec8a194d0f1f9a5e130e3122e6 | wiseman/coole-radar | cooleradar_test.cljs | (ns lemondronor.cooleradar-test
(:require [cljs.test :refer (deftest is)]
[lemondronor.cooleradar :as cooleradar]))
(def epsilon 0.0000001)
(defn a= [a b]
(< (Math/abs (- a b)) epsilon))
(defn normalize-angle [a]
(mod (+ a (* 2 Math/PI)) (* 2 Math/PI)))
(defn angles= [a b]
(a= (normalize-angle a... | null | https://raw.githubusercontent.com/wiseman/coole-radar/287940817d58e4e6cbb081a6fef2b034df83eb29/src/test/lemondronor/cooleradar_test.cljs | clojure | (ns lemondronor.cooleradar-test
(:require [cljs.test :refer (deftest is)]
[lemondronor.cooleradar :as cooleradar]))
(def epsilon 0.0000001)
(defn a= [a b]
(< (Math/abs (- a b)) epsilon))
(defn normalize-angle [a]
(mod (+ a (* 2 Math/PI)) (* 2 Math/PI)))
(defn angles= [a b]
(a= (normalize-angle a... | |
6dabd0e779253c3b19ba3be88bb46ba56f59ba1d1a5524b180d69966423f4e94 | ocurrent/ocurrent | service.ml | open Lwt.Infix
type t = No_context
let id = "docker-service"
module Key = struct
type t = {
name : string;
docker_context : string option;
} [@@deriving to_yojson]
let digest t = Yojson.Safe.to_string (to_yojson t)
end
module Value = struct
type t = {
image : Image.t;
}
let digest { image ... | null | https://raw.githubusercontent.com/ocurrent/ocurrent/344af83279e9ba17f5f32d0a0351c228a6f42863/plugins/docker/service.ml | ocaml | open Lwt.Infix
type t = No_context
let id = "docker-service"
module Key = struct
type t = {
name : string;
docker_context : string option;
} [@@deriving to_yojson]
let digest t = Yojson.Safe.to_string (to_yojson t)
end
module Value = struct
type t = {
image : Image.t;
}
let digest { image ... | |
b6ffd9a597e79760c0617dc73640af7daff622a03a36d2a92c33dd7aec01fbca | ocaml-multicore/tezos | shell_services_test_helpers.ml | (*****************************************************************************)
(* *)
(* Open Source License *)
Copyright ( c ) 2021 Nomadic Labs , < >
(* ... | null | https://raw.githubusercontent.com/ocaml-multicore/tezos/e4fd21a1cb02d194b3162ab42d512b7c985ee8a9/src/lib_shell_services/test_helpers/shell_services_test_helpers.ml | ocaml | ***************************************************************************
Open Source License
Permission is h... | Copyright ( c ) 2021 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 A... |
e0f48df44dfc4a05a56ca845a7f06e8e5ccfbf52f774b1757633b18d1db2e17e | fukamachi/clozure-cl | x8664-freebsd-syscalls.lisp | -*-Mode : LISP ; Package : CCL -*-
;;;
Copyright ( C ) 2006 - 2009 Clozure Associates
This file is part of Clozure CL .
;;;
Clozure CL is licensed under the terms of the Lisp Lesser GNU Public
License , known as the LLGPL and distributed with Clozure CL as the
;;; file "LICENSE". The LLGPL consists... | null | https://raw.githubusercontent.com/fukamachi/clozure-cl/4b0c69452386ae57b08984ed815d9b50b4bcc8a2/library/x8664-freebsd-syscalls.lisp | lisp | Package : CCL -*-
file "LICENSE". The LLGPL consists of a preamble and the LGPL,
conflict, the preamble takes precedence.
Clozure CL is referenced in the preamble as the "LIBRARY."
The LLGPL is also available online at
| Copyright ( C ) 2006 - 2009 Clozure Associates
This file is part of Clozure CL .
Clozure CL is licensed under the terms of the Lisp Lesser GNU Public
License , known as the LLGPL and distributed with Clozure CL as the
which is distributed with Clozure CL as the file " LGPL " . Where these
(in-p... |
5452d177bc3f6d34f01efe1863f8b7e1370cf3b96fe93c16118052ee94b56704 | alanz/ghc-exactprint | BadTelescope.hs | {-# LANGUAGE TypeInType #-}
module BadTelescope where
import Data.Kind
data SameKind :: k -> k -> *
data X a k (b :: k) (c :: SameKind a b)
| null | https://raw.githubusercontent.com/alanz/ghc-exactprint/b6b75027811fa4c336b34122a7a7b1a8df462563/tests/examples/pre-ghc86/BadTelescope.hs | haskell | # LANGUAGE TypeInType # |
module BadTelescope where
import Data.Kind
data SameKind :: k -> k -> *
data X a k (b :: k) (c :: SameKind a b)
|
a1fe75994ae3ee7284c07e2a5e7936a0c3db615a59f63d67e8ac72570714eac1 | hcarty/ocaml-gdal | data_source.mli | * { 1 OGR Data Sources }
(** These are bindings and wrappers around the [OGR_DS_*] API. *)
type t
(** Data source *)
exception Data_source_error
type driver_t
* OGR driver
val get_driver_by_name : string -> driver_t option
val get_driver_by_name_exn : string -> driver_t
(** [get_driver_by_name name] returns the dr... | null | https://raw.githubusercontent.com/hcarty/ocaml-gdal/9c225c1e3f8002ec7614b3c1657e5f05e4e0e821/src/data_source.mli | ocaml | * These are bindings and wrappers around the [OGR_DS_*] API.
* Data source
* [get_driver_by_name name] returns the driver associated with [name].
* [create ?options driver name]
* [copy ?options driver src name] creates a copy of [src] using [driver].
* [destroy t] releases the resources associated with [t].
* Li... | * { 1 OGR Data Sources }
type t
exception Data_source_error
type driver_t
* OGR driver
val get_driver_by_name : string -> driver_t option
val get_driver_by_name_exn : string -> driver_t
val create : ?options:string list -> driver_t -> string -> t option
val create_exn : ?options:string list -> driver_t -> string ... |
a3fe24d68cd44cb398a8b06c0f2a4e644188e8e1582d5b58e3dabc13558f4d10 | TyOverby/mono | node_path.mli | open! Core
open! Import
* Represents the shortest unambiguous path through the Computation.t data
structure , including the path through any contained [ Value.t]s . Several of
the constructors in Computation.t only contain a single inner computation
or value ; thus , keeping track of these segments i... | null | https://raw.githubusercontent.com/TyOverby/mono/7666c0328d194bf9a569fb65babc0486f2aaa40d/vendor/janestreet-bonsai/src/node_path.mli | ocaml | * The empty node path.
* Adds a choice point to that input path. The provided number says which of
the choices at that point was taken. When traversing a computation or
value, if any case has multiple recursive calls, you should add a choice
point to the path built up in each of those calls, with each call... | open! Core
open! Import
* Represents the shortest unambiguous path through the Computation.t data
structure , including the path through any contained [ Value.t]s . Several of
the constructors in Computation.t only contain a single inner computation
or value ; thus , keeping track of these segments i... |
fffb2555e851e320e5b946c8ea1ef4809be0fb2839712629ed7388c59b6df61d | spectrum-finance/cardano-dex-contracts | Contracts.hs | module Tests.Contracts where
import Control.Monad
import Hedgehog
import Test.Tasty
import Test.Tasty.HUnit
import Test.Tasty.Hedgehog as HH
import ErgoDex.PValidators
checkContractsRecovering = testGroup "ContractsRecovering"
[ HH.testProperty "swap_contract_recovering" swapRecovering
, HH.testProperty "pool_... | null | https://raw.githubusercontent.com/spectrum-finance/cardano-dex-contracts/87bdbc26dbe9ae5f6c59e608d728330f8166f19c/cardano-dex-contracts-offchain/test/Tests/Contracts.hs | haskell | module Tests.Contracts where
import Control.Monad
import Hedgehog
import Test.Tasty
import Test.Tasty.HUnit
import Test.Tasty.Hedgehog as HH
import ErgoDex.PValidators
checkContractsRecovering = testGroup "ContractsRecovering"
[ HH.testProperty "swap_contract_recovering" swapRecovering
, HH.testProperty "pool_... | |
29a06cda3fe0b4381a275915498a466c0d2f58b46b75c413fd345870d396ea68 | ethercrow/opentelemetry-haskell | Eventlog.hs | # LANGUAGE CPP #
{-# LANGUAGE GADTs #-}
# LANGUAGE GeneralizedNewtypeDeriving #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE PatternSynonyms #
module OpenTelemetry.Eventlog
( -- * Spans
beginSpan,
endSpan,
withSpan,
withSpan_,
setSpanId,
setTraceId,
setTag,
addEvent,
setParentSpa... | null | https://raw.githubusercontent.com/ethercrow/opentelemetry-haskell/33cb21735da555d4ef9c144a26f26bd1ca4a160a/opentelemetry/src/OpenTelemetry/Eventlog.hs | haskell | # LANGUAGE GADTs #
# LANGUAGE OverloadedStrings #
* Spans
* Metrics
| Take a measurement for a synchronous, non-additive instrument ('ValueRecorder')
# INLINE withSpan_ #
| Take a measurement for a synchronous, non-additive instrument ('ValueRecorder') | # LANGUAGE CPP #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE PatternSynonyms #
module OpenTelemetry.Eventlog
beginSpan,
endSpan,
withSpan,
withSpan_,
setSpanId,
setTraceId,
setTag,
addEvent,
setParentSpanContext,
SpanInFlight (..),
mkCounter,
mkUpDownCounter,
... |
d08b33af997091e7de696bff7c8680c1dbbe2e045a78aa7213d8eacd6e571ca3 | ocaml-flambda/flambda-backend | flambda.mli | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/ocaml-flambda/flambda-backend/651e3119bfd6ed8d79d3139054093872b735fda1/middle_end/flambda/flambda.mli | ocaml | ************************************************************************
OCaml
... | , OCamlPro
and ,
Copyright 2014 - -2016 Jane Street Group LLC
the GNU Lesser General Public License version 2.1 , with the
[@@@ocaml.warning "+a-4-9-30-40-41-42"]
type call_kind =
| Indir... |
820f5fe4f5a846c0325e6d7bd9eafd68ee4157d9d69fbe9ccc7df3a06c59e740 | mejgun/haskell-tdlib | SetName.hs | {-# LANGUAGE OverloadedStrings #-}
-- |
module TD.Query.SetName where
import qualified Data.Aeson as A
import qualified Data.Aeson.Types as T
import qualified Utils as U
-- |
Changes the first and last name of the current user @first_name The new value of the first name for the current user ; 1 - 64 characters @la... | null | https://raw.githubusercontent.com/mejgun/haskell-tdlib/81516bd04c25c7371d4a9a5c972499791111c407/src/TD/Query/SetName.hs | haskell | # LANGUAGE OverloadedStrings #
|
|
|
| |
module TD.Query.SetName where
import qualified Data.Aeson as A
import qualified Data.Aeson.Types as T
import qualified Utils as U
Changes the first and last name of the current user @first_name The new value of the first name for the current user ; 1 - 64 characters @last_name The new value of the optional last na... |
15cc051ef040294980885a07e57331aa31f878175e5a9aeed780af08b74c197c | clojure-garden/clojure-garden | slack_ctl.clj | (ns platform.slack.slack-ctl)
| null | https://raw.githubusercontent.com/clojure-garden/clojure-garden/c6929c58c5d0fcc26b9ce0d7ba469269b4fda7b0/modules/backend/src/platform/slack/slack_ctl.clj | clojure | (ns platform.slack.slack-ctl)
| |
e1ba897e42dc62c82aae88303f9205365683d66e70f4d8feb6d8f8285a3b6e52 | ocaml/oasis | BaseCustom.ml | (******************************************************************************)
OASIS : architecture for building OCaml libraries and applications
(* *)
Copyright ( C ) 2011 - 2016 ,
Copyrig... | null | https://raw.githubusercontent.com/ocaml/oasis/3d1a9421db92a0882ebc58c5df219b18c1e5681d/src/base/BaseCustom.ml | ocaml | ****************************************************************************
This library is free software; you can redistribute it and/or modify it
under the t... | OASIS : architecture for building OCaml libraries and applications
Copyright ( C ) 2011 - 2016 ,
Copyright ( C ) 2008 - 2011 , OCamlCore SARL
the Free Software Foundation ; either version 2.1 of the License , or ( at
You s... |
28116853d25d11f31245aab8e3d99f175493725f65605a43ce233bb145243fc0 | fortytools/holumbus | Test.hs | # OPTIONS #
-- ------------------------------------------------------------
module Main
where
import Control.DeepSeq
import qualified Data.Binary as B
import Data.Char
import Data.Function
import Data.Function.Selector ( update, getS )
( nub , sortBy )
import Data.Mayb... | null | https://raw.githubusercontent.com/fortytools/holumbus/4b2f7b832feab2715a4d48be0b07dca018eaa8e8/crawl2/examples/hayoo/Test.hs | haskell | ------------------------------------------------------------
------------------------------------------------------------
------------------------------------------------------------
------------------------------------------------------------
------------------------------------------------------------
msg $ "wo... | # OPTIONS #
module Main
where
import Control.DeepSeq
import qualified Data.Binary as B
import Data.Char
import Data.Function
import Data.Function.Selector ( update, getS )
( nub , sortBy )
import Data.Maybe
import Hayoo.HackagePackage
import Hayoo.... |
7e2f008887315142ea3fbd56aefc44f1d1cfef126360983c71296f4af60e9434 | mirage/bloomf | bloomf.ml | type priv = { m : int; k : int; p_len : (int * int) list; b : Bitv.t }
type 'a t = priv
let copy t = { m = t.m; k = t.k; p_len = t.p_len; b = Bitv.copy t.b }
let rec gcd a b = if b = 0 then a else gcd b (a mod b)
let partition_lengths m k =
let rec aux sum acc i =
if List.length acc = k then (sum, acc)
else... | null | https://raw.githubusercontent.com/mirage/bloomf/084961d207cec4c3b041baa8a62bce12a3290a55/src/bloomf.ml | ocaml | type priv = { m : int; k : int; p_len : (int * int) list; b : Bitv.t }
type 'a t = priv
let copy t = { m = t.m; k = t.k; p_len = t.p_len; b = Bitv.copy t.b }
let rec gcd a b = if b = 0 then a else gcd b (a mod b)
let partition_lengths m k =
let rec aux sum acc i =
if List.length acc = k then (sum, acc)
else... | |
70c8c44e21038ba43b19bf789b8b99d81722ac38efaa0a22306cac65174d45e3 | TrustInSoft/tis-kernel | logic_env.mli | (**************************************************************************)
(* *)
This file is part of .
(* *)
is a fork of Frama - C. Al... | null | https://raw.githubusercontent.com/TrustInSoft/tis-kernel/748d28baba90c03c0f5f4654d2e7bb47dfbe4e7d/src/kernel_services/ast_queries/logic_env.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 ... |
902b24317165f32411f80128c5391998b4ae7a639c5be8a0476fbaeeb2814674 | mzp/coq-for-ipad | gluMat.mli | $ I d : gluMat.mli , v 1.1 1998/01/29 11:46:06 garrigue Exp $
open Gl
val look_at :
eye:point3 -> center:point3 -> up:vect3 -> unit
val ortho2d : x:float * float -> y:float * float -> unit
val perspective : fovy:float -> aspect:float -> z:float * float -> unit
val pick_matrix :
x:float -> y:float -> width:fl... | null | https://raw.githubusercontent.com/mzp/coq-for-ipad/4fb3711723e2581a170ffd734e936f210086396e/src/ocaml-3.12.0/otherlibs/lablGL/gluMat.mli | ocaml | $ I d : gluMat.mli , v 1.1 1998/01/29 11:46:06 garrigue Exp $
open Gl
val look_at :
eye:point3 -> center:point3 -> up:vect3 -> unit
val ortho2d : x:float * float -> y:float * float -> unit
val perspective : fovy:float -> aspect:float -> z:float * float -> unit
val pick_matrix :
x:float -> y:float -> width:fl... | |
d9d8d24ebf89e8d43e11c00412ba63527d8d08a1065f908fefeb37f10c9b9b1d | atlas-engineer/nyxt | remembrance.lisp | SPDX - FileCopyrightText : Atlas Engineer LLC
SPDX - License - Identifier : BSD-3 - Clause
(in-package :nyxt/tests/renderer)
(defun set-url-blocking (url &optional (buffer (nyxt:current-buffer)))
(nyxt:buffer-load url)
(let ((p (lpara:promise)))
(hooks:once-on (nyxt:buffer-loaded-hook buffer) (_)
(l... | null | https://raw.githubusercontent.com/atlas-engineer/nyxt/9fa14dc2d267ce65ed7894247e92d6edc00d3e77/tests/renderer-offline/remembrance.lisp | lisp | WebKitGTK bug? | SPDX - FileCopyrightText : Atlas Engineer LLC
SPDX - License - Identifier : BSD-3 - Clause
(in-package :nyxt/tests/renderer)
(defun set-url-blocking (url &optional (buffer (nyxt:current-buffer)))
(nyxt:buffer-load url)
(let ((p (lpara:promise)))
(hooks:once-on (nyxt:buffer-loaded-hook buffer) (_)
(l... |
fa6b9677b075b76461f53fda69a9fff264de14057efb92aec2847fd99f692383 | exercism/erlang | scrabble_score.erl | -module(scrabble_score).
-export([score/1]).
score(_Word) -> undefined.
| null | https://raw.githubusercontent.com/exercism/erlang/57ac2707dae643682950715e74eb271f732e2100/exercises/practice/scrabble-score/src/scrabble_score.erl | erlang | -module(scrabble_score).
-export([score/1]).
score(_Word) -> undefined.
| |
42773b78674d06fb41ac57506092503929f41c748b12ab52a60abbf5c463699e | ocamllabs/ocaml-modular-implicits | Test.ml | (* with module *)
module type S = sig type t and s = t end;;
module type S' = S with type t := int;;
module type S = sig module rec M : sig end and N : sig end end;;
module type S' = S with module M := String;;
(* with module type *)
module type S = sig module type T module F(X : T ) : T end ; ;
module type T0 =... | null | https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/testsuite/tests/typing-modules/Test.ml | ocaml | with module
with module type
A subtle problem appearing with -principal
PR#4511
PR#6005
fail
fail |
module type S = sig type t and s = t end;;
module type S' = S with type t := int;;
module type S = sig module rec M : sig end and N : sig end end;;
module type S' = S with module M := String;;
module type S = sig module type T module F(X : T ) : T end ; ;
module type T0 = sig type t end ; ;
module type S1 = S ... |
6bebee3ec81eb331e164e6f6b70e1d99a8a343350f5228a5854a095ecca9bb86 | ucsd-progsys/dsolve | myset.mli | type set
val empty: set
val mem: 'a -> set -> bool
val eq: set -> set -> bool
val of_list: 'a list -> set
val cap: set -> set -> set
val cup: set -> set -> set
val sng: 'a -> set
val mns: set -> set -> set
| null | https://raw.githubusercontent.com/ucsd-progsys/dsolve/bfbbb8ed9bbf352d74561e9f9127ab07b7882c0c/theories/myset.mli | ocaml | type set
val empty: set
val mem: 'a -> set -> bool
val eq: set -> set -> bool
val of_list: 'a list -> set
val cap: set -> set -> set
val cup: set -> set -> set
val sng: 'a -> set
val mns: set -> set -> set
| |
81fbb2b7942d7bcdbe1a7ed5747e22a550e918c078aa5829a131d87924f8ca94 | lamdu/lamdu | TagPane.hs | # LANGUAGE TypeFamilies #
module Lamdu.GUI.TagPane
( make
) where
import qualified Control.Lens as Lens
import qualified Data.Char as Char
import Data.Property (Property(..), pVal)
import qualified Data.Property as Property
import qualified Data.Set as Set
import qualified Data.Text as Text
import ... | null | https://raw.githubusercontent.com/lamdu/lamdu/5b15688e53ccbf7448ff11134b3e51ed082c6b6c/src/Lamdu/GUI/TagPane.hs | haskell | the type of Styled.label is RankN, so duplicate a bit of
code to avoid complicating too much here
Avoid taking keys that don't belong to us,
so weakerEvents with them will work. | # LANGUAGE TypeFamilies #
module Lamdu.GUI.TagPane
( make
) where
import qualified Control.Lens as Lens
import qualified Data.Char as Char
import Data.Property (Property(..), pVal)
import qualified Data.Property as Property
import qualified Data.Set as Set
import qualified Data.Text as Text
import ... |
b8dc2d8fcadae27e7595e7c4b7b9072a7174210ddc1d791acddada793b952753 | GaloisInc/saw-script | Main.hs | {-# LANGUAGE RankNTypes #-}
module Main where
import System.Environment( getArgs )
import System.Exit( exitFailure )
import System.Console.GetOpt
import System.IO
import qualified Data.ByteString as BS
import Data.Text ( pack )
import Data.Version
import qu... | null | https://raw.githubusercontent.com/GaloisInc/saw-script/65d764b0e5cc0f4608b75448354e8c47f06a8cdc/cryptol-saw-core/css/Main.hs | haskell | # LANGUAGE RankNTypes # |
module Main where
import System.Environment( getArgs )
import System.Exit( exitFailure )
import System.Console.GetOpt
import System.IO
import qualified Data.ByteString as BS
import Data.Text ( pack )
import Data.Version
import qualified Cryptol.Eval as E
im... |
f38d9948d6d6264e81d82bdcf0c5ab56d352fac90c5ab808dcf458ee9b49c46b | rescript-lang/syntax | Benchmark.ml | module ResParser = Res_core
module Doc = Res_doc
module CommentTable = Res_comments_table
module Parser = Res_parser
module Printer = Res_printer
module IO : sig
val readFile : string -> string
end = struct
random chunk size : 2 ^ 15 , TODO : why do we guess randomly ?
let chunkSize = 32768
let readFile filen... | null | https://raw.githubusercontent.com/rescript-lang/syntax/67fec537284579e58bee8e70120bff8e03688fa8/benchmarks/Benchmark.ml | ocaml | nanoseconds
current iterations count
The initial states
The net total of this test after being run.
return (float64(r.Bytes) * float64(r.N) / 1e6) / r.T.Seconds()
total amount of memory allocated by the program since it started in words
TODO: we could at Reason here | module ResParser = Res_core
module Doc = Res_doc
module CommentTable = Res_comments_table
module Parser = Res_parser
module Printer = Res_printer
module IO : sig
val readFile : string -> string
end = struct
random chunk size : 2 ^ 15 , TODO : why do we guess randomly ?
let chunkSize = 32768
let readFile filen... |
f19c6ec70ebd6c0db47aa2a29cd18d7dd472cb1bc3734be8daa208764f49be5f | CrossRef/event-data-query | end_to_end_test.clj | (ns event-data-query.end-to-end-test
"Load Events from an archive, index, query."
(:require [clojure.test :refer :all]
[event-data-query.elastic :as elastic]
[event-data-query.ingest :as ingest]
[event-data-query.server :as server]
[qbits.spandex :as s]
[c... | null | https://raw.githubusercontent.com/CrossRef/event-data-query/ede3c91afccd89dbb7053e81dd425bc3c3ad966a/test/event_data_query/end_to_end_test.clj | clojure | We're not filtering anything out in this test.
These match deposits in the resources/test/end-to-end.json
Create indexes.
The rest are blank.
Force Elastic to wait for indexes.
Use both the "events" endpoints and the "events ids" endpoint to check they both return the right selection of Events.
Standard 1
Stand... | (ns event-data-query.end-to-end-test
"Load Events from an archive, index, query."
(:require [clojure.test :refer :all]
[event-data-query.elastic :as elastic]
[event-data-query.ingest :as ingest]
[event-data-query.server :as server]
[qbits.spandex :as s]
[c... |
5cb0402482211ae020f7e6d7842225a6dae0e93affd1263d94033a2d0370f266 | jnavila/plotkicadsch | listPainter.ml | open Kicadsch.Sigs
type image_data = Buffer.t
type t =
| Text of kolor * string * orientation * coord * size * justify * style
| Line of kolor * size * coord * coord
| Rect of kolor * kolor * coord * coord
| Circle of kolor * kolor * coord * int
| Arc of kolor * kolor * coord * coord * coord * int
| Image... | null | https://raw.githubusercontent.com/jnavila/plotkicadsch/a8afb216bf04aeaeb9088ef264407b094553d145/plotkicadsch/src/listPainter.ml | ocaml | open Kicadsch.Sigs
type image_data = Buffer.t
type t =
| Text of kolor * string * orientation * coord * size * justify * style
| Line of kolor * size * coord * coord
| Rect of kolor * kolor * coord * coord
| Circle of kolor * kolor * coord * int
| Arc of kolor * kolor * coord * coord * coord * int
| Image... | |
7deae67f8054cff836a0692017a225611825e18a8fc2c73f225fdc4826ac5262 | janestreet/memtrace_viewer | filtered_trace.mli | open! Core
open Memtrace_viewer_common
module Event : sig
type t = Location.t Event.t [@@deriving sexp_of]
end
type t
val create : trace:Raw_trace.t -> loc_cache:Location.Cache.t -> filter:Filter.t -> t
val word_size : t -> Byte_units.t
val sample_rate : t -> float
module Mode : sig
type t =
| Preserve_back... | null | https://raw.githubusercontent.com/janestreet/memtrace_viewer/46439f8bd16e77c5aa38632c9c4aa53175121d4d/server/src/filtered_trace.mli | ocaml | * Events will have backtraces but may not be in the right order and may not have
accurate timestamps
* Events will come in the correct order, with accurate times, but have empty
backtraces | open! Core
open Memtrace_viewer_common
module Event : sig
type t = Location.t Event.t [@@deriving sexp_of]
end
type t
val create : trace:Raw_trace.t -> loc_cache:Location.Cache.t -> filter:Filter.t -> t
val word_size : t -> Byte_units.t
val sample_rate : t -> float
module Mode : sig
type t =
| Preserve_back... |
e62212e400daab93d9d8456c172de22374e8fbeda8e8f1303d9ded4ac6392a3a | tomhanika/conexp-clj | contexts.clj | ;; Copyright ⓒ the conexp-clj developers; all rights reserved.
;; The use and distribution terms for this software are covered by the
Eclipse Public License 1.0 ( -1.0.php )
;; which can be found in the file LICENSE at the root of this distribution.
;; By using this software in any fashion, you are agreeing to be bou... | null | https://raw.githubusercontent.com/tomhanika/conexp-clj/9f53c71913fa39b95516c388d9e426bec34e3a77/src/main/clojure/conexp/io/contexts.clj | clojure | Copyright ⓒ the conexp-clj developers; all rights reserved.
The use and distribution terms for this software are covered by the
which can be found in the file 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 re... | Eclipse Public License 1.0 ( -1.0.php )
(ns conexp.io.contexts
(:require [conexp.base :refer :all]
[conexp.fca.contexts :refer :all]
[conexp.io.util :refer :all]
[conexp.fca.many-valued-contexts :refer :all]
[conexp.io... |
ab61987f11f601566ef464f8cba7f236babcdac79097ad7eb82eb19c7425990d | cloojure/tupelo | quote.cljc | Copyright ( c ) . All rights reserved .
; The use and distribution terms for this software are covered by the Eclipse Public
; License 1.0 (-1.0.php) which can be found in the
; file epl-v10.html at the root of this distribution. By using this software in any
; fashion, you are agreeing to be bound by th... | null | https://raw.githubusercontent.com/cloojure/tupelo/4105fefbb1c4d1b2f06fa4993f9dd007e5e41e00/test/cljc/tst/tupelo/quote.cljc | clojure | The use and distribution terms for this software are covered by the Eclipse Public
License 1.0 (-1.0.php) which can be found in the
file epl-v10.html at the root of this distribution. By using this software in any
fashion, you are agreeing to be bound by the terms of this license.
You must not remove th... | Copyright ( c ) . All rights reserved .
(ns tst.tupelo.quote
#?(:cljs (:require-macros
[tupelo.quote]
[tupelo.testy]
))
(:require
[clojure.walk :as walk]
[tupelo.quote :as q]
[tupelo.core :as t :refer [glue grab it-> forv spy spyx spyxx vals->map
... |
904171c73a8408738fa3e85846161e3881c529e19822afdbede5048792967a45 | ocsigen/ocaml-eliom | printast.ml | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/ocsigen/ocaml-eliom/497c6707f477cb3086dc6d8124384e74a8c379ae/parsing/printast.ml | ocaml | ************************************************************************
OCaml
... | , projet Para , INRIA Rocquencourt
Copyright 1999 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
open Asttypes;;
open Format;;
open Lexing;;
open Location;;
open Parsetree;;
let fmt_position with_name f ... |
51176c0f91d92ba5df7e08cbb299c886fc84903aedf6aa076eff46739a55656e | matterandvoid-space/todomvc-fulcro-subscriptions | util.cljc | (ns space.matterandvoid.todomvc.util
(:refer-clojure :exclude [uuid])
(:require
[com.yetanalytics.squuid :refer [generate-squuid]]))
(defn uuid [] (generate-squuid))
| null | https://raw.githubusercontent.com/matterandvoid-space/todomvc-fulcro-subscriptions/e2e244936efe1005fa2cac204a24758b067aac4e/src/main/space/matterandvoid/todomvc/util.cljc | clojure | (ns space.matterandvoid.todomvc.util
(:refer-clojure :exclude [uuid])
(:require
[com.yetanalytics.squuid :refer [generate-squuid]]))
(defn uuid [] (generate-squuid))
| |
969e74c508ec84f7c5a0b0279c4a08f82412f33cbc9d2913e171a32963a51a13 | into-docker/unixsocket-http | SingletonSocketFactory.clj | (ns ^:no-doc unixsocket-http.impl.SingletonSocketFactory
"Wrapper around a `SocketFactory` that will cache the created socket."
(:gen-class
:name unixsocket_http.impl.SingletonSocketFactory
:extends javax.net.SocketFactory
:init init
:state socket
:constru... | null | https://raw.githubusercontent.com/into-docker/unixsocket-http/2f40386664744e32394c48641fe1c5adbc121875/src/unixsocket_http/impl/SingletonSocketFactory.clj | clojure | (ns ^:no-doc unixsocket-http.impl.SingletonSocketFactory
"Wrapper around a `SocketFactory` that will cache the created socket."
(:gen-class
:name unixsocket_http.impl.SingletonSocketFactory
:extends javax.net.SocketFactory
:init init
:state socket
:constru... | |
1e0568fdd6f7fd629b2e497b67b6021613b69b75f34377179e5c2e9d071ca80e | Octachron/codept | name.ml | module Core = struct
type t = string
type name = t
let compare (x:name) (y:name) = compare x y
let pp = Pp.string
let pp_opt ppf = function
| None -> pp ppf "_"
| Some s -> pp ppf s
end
include Core
module Set = struct
include Set.Make(Core)
let pp ppf s = Pp.(clist Core.pp) ppf (elements s)
le... | null | https://raw.githubusercontent.com/Octachron/codept/2d2a95fde3f67cdd0f5a1b68d8b8b47aefef9290/lib/name.ml | ocaml | module Core = struct
type t = string
type name = t
let compare (x:name) (y:name) = compare x y
let pp = Pp.string
let pp_opt ppf = function
| None -> pp ppf "_"
| Some s -> pp ppf s
end
include Core
module Set = struct
include Set.Make(Core)
let pp ppf s = Pp.(clist Core.pp) ppf (elements s)
le... | |
e6a9d54dbc18ea67c6677bbae222f72ff447321aab089976ecd4e39971cf10c1 | footprintanalytics/footprint-web | activity.clj | (ns metabase.models.activity
(:require [metabase.api.common :as api]
[metabase.events :as events]
[metabase.models.card :refer [Card]]
[metabase.models.dashboard :refer [Dashboard]]
[metabase.models.interface :as mi]
[metabase.models.metric :refer [Metric]]
... | null | https://raw.githubusercontent.com/footprintanalytics/footprint-web/d3090d943dd9fcea493c236f79e7ef8a36ae17fc/src/metabase/models/activity.clj | clojure | ------------------------------------------------- Perms Checking -------------------------------------------------
For now only admins can see when another user joined -- we don't want every user knowing about every other user. In
the future we might want to change this and come up with some sort of system where we ... | (ns metabase.models.activity
(:require [metabase.api.common :as api]
[metabase.events :as events]
[metabase.models.card :refer [Card]]
[metabase.models.dashboard :refer [Dashboard]]
[metabase.models.interface :as mi]
[metabase.models.metric :refer [Metric]]
... |
660682a50d4eaba2faa575fa3ef3ca03c0fd64cfd9ece0f4bb6871cd67c221ce | robert-strandh/SICL | eliminate-append-values.lisp | (cl:in-package #:sicl-hir-transformations)
;;; When we start, the CAR of the cell in the VALUES-LOCATION contains
;;; a pointer to the cell where we should start adding values. So the
first instruction is to load the CAR of the cell in the
;;; VALUES-LOCATION into the CELL-LOCATION.
(defun make-initial-instructions... | null | https://raw.githubusercontent.com/robert-strandh/SICL/bd3ec8f991d9455541d1629a3c672ae3d46dc16d/Code/Compiler/HIR-transformations/eliminate-append-values.lisp | lisp | When we start, the CAR of the cell in the VALUES-LOCATION contains
a pointer to the cell where we should start adding values. So the
VALUES-LOCATION into the CELL-LOCATION.
The final instruction sets the CAR of the cell in the
VALUES-LOCATION to the CELL-LOCATION, thereby either indicating
indicating the end of ... | (cl:in-package #:sicl-hir-transformations)
first instruction is to load the CAR of the cell in the
(defun make-initial-instructions
(successor
values-location
value-count-location
cell-location
dynamic-environment-location)
(make-instance 'cleavir-ir:compute-return-value-count-instruction
... |
18536add9c44719a50ed3cea0b5d284891ecd692918de25e95aa30d0a24c7e39 | CloudI/CloudI | tcp_reverse_app.erl | %% Feel free to use, reuse and abuse the code in this file.
@private
-module(tcp_reverse_app).
-behaviour(application).
%% API.
-export([start/2]).
-export([stop/1]).
%% API.
start(_Type, _Args) ->
{ok, _} = ranch:start_listener(tcp_reverse,
ranch_tcp, [{port, 5555}], reverse_protocol, []),
tcp_reverse_... | null | https://raw.githubusercontent.com/CloudI/CloudI/75b93bb0e7dc4734f5cd1ef913788e44b577a3d5/src/external/cloudi_x_ranch/examples/tcp_reverse/src/tcp_reverse_app.erl | erlang | Feel free to use, reuse and abuse the code in this file.
API.
API. |
@private
-module(tcp_reverse_app).
-behaviour(application).
-export([start/2]).
-export([stop/1]).
start(_Type, _Args) ->
{ok, _} = ranch:start_listener(tcp_reverse,
ranch_tcp, [{port, 5555}], reverse_protocol, []),
tcp_reverse_sup:start_link().
stop(_State) ->
ok.
|
3b132130620f41f02248daf00fb2441e3c028f2ee2a0759eff0e0860fd6965ed | ktakashi/sagittarius-scheme | c64.scm | -*- mode : scheme ; coding : utf-8 ; -*-
;;;
;;; srfi/%3a160/base/c64.scm - Homogeneous numeric vector datatypes (base)
;;;
Copyright ( c ) 2020 < >
;;;
;;; Redistribution and use in source and binary forms, with or without
;;; modification, are permitted provided that the following conditions
;;;... | null | https://raw.githubusercontent.com/ktakashi/sagittarius-scheme/3971b131d463696297c320dbe595dffd08867dac/sitelib/srfi/%253a160/base/c64.scm | scheme | coding : utf-8 ; -*-
srfi/%3a160/base/c64.scm - Homogeneous numeric vector datatypes (base)
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above cop... | Copyright ( c ) 2020 < >
" AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT
SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED
LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING
#!nounbound
(library (srfi :160 base c64)
(exp... |
28c0ce1b9f7169b5727cbeee2efd50b1f9b52b3893f9e7f94fd07e6e3f8c071c | armedbear/abcl | lispfunctions.lisp | ;;; lispfunctions.lisp
;;;
Copyright ( C ) 2008
$ Id$
;;;
;;; 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 .
;... | null | https://raw.githubusercontent.com/armedbear/abcl/36a4b5994227d768882ff6458b3df9f79caac664/examples/java-to-lisp-2/lispfunctions.lisp | lisp | lispfunctions.lisp
This program is free software; you can redistribute it and/or
either version 2
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public Lice... | Copyright ( C ) 2008
$ Id$
modify it under the terms of the GNU General Public License
of the License , or ( at your option ) any later version .
You should have received a copy of the GNU General Public License
Foundation , Inc. , 59 Temple Place - Suite 330 , Boston , MA 02111 - 1307 , USA .
param ... |
c29c7e8b127113e5aadb86f87e03addd80cafda16235100ce74e756cb5d9674a | AbstractMachinesLab/caramel | ctype.mli | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/AbstractMachinesLab/caramel/7d4e505d6032e22a630d2e3bd7085b77d0efbb0c/vendor/ocaml-lsp-1.4.0/ocaml-lsp-server/vendor/merlin/src/ocaml/typing/410/ctype.mli | ocaml | ************************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
Operations on core types
open Asttypes
open Types
module Unification_trace: sig
type position = Fi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.