_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 |
|---|---|---|---|---|---|---|---|---|
afc362c6d3c18985f9bc5ecd09b176413288eeaa68185d3bf8619f26eeae2fcc | metabase/metabase | driver_notifications.clj | (ns metabase.events.driver-notifications
"Driver notifications are used to let drivers know database details or other relevant information has
changed (`:database-update`) or that a Database has been deleted (`:database-delete`). Drivers can choose to be
notified of these events by implementing the `metabase.driv... | null | https://raw.githubusercontent.com/metabase/metabase/dad3d414e5bec482c15d826dcc97772412c98652/src/metabase/events/driver_notifications.clj | clojure | ------------------------------------------------ EVENT PROCESSING ------------------------------------------------
try/catch here to prevent individual topic processing exceptions from bubbling up. better to handle them here.
notify the appropriate driver about the updated database | (ns metabase.events.driver-notifications
"Driver notifications are used to let drivers know database details or other relevant information has
changed (`:database-update`) or that a Database has been deleted (`:database-delete`). Drivers can choose to be
notified of these events by implementing the `metabase.driv... |
ea6274b0e583ccd44c2151e9927c07a9a215f8bab7b5710cfb6ab48727781dfc | mzp/coq-ruby | flags.ml | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/mzp/coq-ruby/99b9f87c4397f705d1210702416176b13f8769c1/lib/flags.ml | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
Silent / Verbose
The number of pr... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
i $ I d : flags.ml 11801 20... |
708b586a0d523c98cede679e8ff35e1be594beec6c6f6407f3eae4b013180886 | symbiont-io/detsys-testkit | Queue.hs | module Lec03.Queue where
import Control.Monad
import Data.IORef
import qualified Data.Vector.Mutable as Vec
------------------------------------------------------------------------
-- In order to make the queue more performant and more tricky for ourselves to
-- implement, we'll make it array-backed where elements a... | null | https://raw.githubusercontent.com/symbiont-io/detsys-testkit/4cc39273cffcc6abe5c7cc349a9f104b7475a241/doc/advanced-testing-mini-course/src/Lec03/Queue.hs | haskell | ----------------------------------------------------------------------
In order to make the queue more performant and more tricky for ourselves to
implement, we'll make it array-backed where elements are not removed from the
array when they are dequeued, but rather overwritten by a later enqueue
operation.
In orde... | module Lec03.Queue where
import Control.Monad
import Data.IORef
import qualified Data.Vector.Mutable as Vec
data Queue a = Queue
{ qCapacity :: !Int
, qSize :: !(IORef Int)
, qRear :: !(IORef Int)
, qQueue :: !(Vec.IOVector a)
}
newQueue :: Int -> IO (Queue a)
newQueue cap = Queue <$> pure ca... |
699fe33508374b3a6633db75280cab4def3fd15ff509d6567c0d5862143eb22f | BranchTaken/Hemlock | test_bit_not.ml | open! Basis.Rudiments
open! Basis
open I64
let test () =
let rec test = function
| [] -> ()
| x :: xs' -> begin
File.Fmt.stdout
|> Fmt.fmt "bit_not "
|> fmt ~alt:true ~zpad:true ~width:16L ~radix:Radix.Hex ~pretty:true x
|> Fmt.fmt " -> "
|> fmt ~alt:true ~zpad:true ~w... | null | https://raw.githubusercontent.com/BranchTaken/Hemlock/a07e362d66319108c1478a4cbebab765c1808b1a/bootstrap/test/basis/i64/test_bit_not.ml | ocaml | open! Basis.Rudiments
open! Basis
open I64
let test () =
let rec test = function
| [] -> ()
| x :: xs' -> begin
File.Fmt.stdout
|> Fmt.fmt "bit_not "
|> fmt ~alt:true ~zpad:true ~width:16L ~radix:Radix.Hex ~pretty:true x
|> Fmt.fmt " -> "
|> fmt ~alt:true ~zpad:true ~w... | |
87bfdd16257baadf0a94b71b101dfb759305e4139477899d6e1e2c96ae76bbbe | ragkousism/Guix-on-Hurd | firmware.scm | ;;; GNU Guix --- Functional package management for GNU
Copyright © 2014 , 2015 , 2016 < >
Copyright © 2016 < >
Copyright © 2017 < >
;;;
;;; This file is part of GNU Guix.
;;;
GNU is free software ; you can redistribute it and/or modify it
under the terms of the GNU General Public License as publishe... | null | https://raw.githubusercontent.com/ragkousism/Guix-on-Hurd/e951bb2c0c4961dc6ac2bda8f331b9c4cee0da95/gnu/packages/firmware.scm | scheme | GNU Guix --- Functional package management for GNU
This file is part of GNU Guix.
you can redistribute it and/or modify it
either version 3 of the License , or ( at
your option) any later version.
GNU Guix is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied wa... | Copyright © 2014 , 2015 , 2016 < >
Copyright © 2016 < >
Copyright © 2017 < >
under the terms of the GNU General Public License as published by
You should have received a copy of the GNU General Public License
along with GNU . If not , see < / > .
(define-module (gnu packages firmware)
#:use-m... |
21076b94a89f1139152d68ff7a2f8bdbabf87262bf84266c9b3fee0bc24755fc | Frama-C/Frama-C-snapshot | pdg_aux.ml | (**************************************************************************)
(* *)
This file is part of Frama - C.
(* *)
Copyright ... | null | https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/impact/pdg_aux.ml | ocaml | ************************************************************************
alternatives)
... | This file is part of Frama - C.
Copyright ( C ) 2007 - 2019
CEA ( Commissariat à l'énergie atomique et aux énergies
Lesser General Public License as published by the Free Software
Foundation , v... |
f0bf1271e6b7d613a35f6acc23acbfa5d7a30cc916334bc5d6907acc218510a5 | Eonblast/Scalaxis | yaws_session_server.erl | %%%----------------------------------------------------------------------
%%% File : yaws_session_server.erl
Author : < >
%%% Purpose : maintain state for cookie sessions
Created : 17 Sep 2002 by < >
%%%----------------------------------------------------------------------
-module(yaws_session_server).
... | null | https://raw.githubusercontent.com/Eonblast/Scalaxis/10287d11428e627dca8c41c818745763b9f7e8d4/contrib/yaws/src/yaws_session_server.erl | erlang | ----------------------------------------------------------------------
File : yaws_session_server.erl
Purpose : maintain state for cookie sessions
----------------------------------------------------------------------
External exports
gen_server callbacks
Default ETS backend callbacks
Utility functions for cal... | Author : < >
Created : 17 Sep 2002 by < >
-module(yaws_session_server).
-author('').
-behaviour(gen_server).
-export([start_link/0, start/0, stop/0]).
-export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2,
code_change/3]).
-include("../include/yaws_api.hrl").
-include("../... |
b58b1ed24182cbdbd82b7ef65b152fd44056c890ed1e063ce2d98c2ac92c397a | openmusic-project/openmusic | sdif-struct.lisp | ;=========================================================================
OpenMusic : Visual Programming Language for Music Composition
;
Copyright ( c ) 1997- ... IRCAM - Centre , Paris , France .
;
This file is part of the OpenMusic environment sources
;
OpenMusic is free software : you ... | null | https://raw.githubusercontent.com/openmusic-project/openmusic/0bd8613a844a382e5db7185be1b5a5d026d66b20/OPENMUSIC/code/projects/sdif/sdif-om/sdif-struct.lisp | lisp | =========================================================================
(at your option) any later version.
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
======... | OpenMusic : Visual Programming Language for Music Composition
Copyright ( c ) 1997- ... IRCAM - Centre , Paris , France .
This file is part of the OpenMusic environment sources
OpenMusic is free software : you can redistribute it and/or modify
it under the terms of the GNU General Public ... |
a5d6be792a5daf50fd31e4c7f46eed03959fd09a69b0d0918045b5e2eba1ffc4 | slyrus/abcl | pathname.lisp | (in-package :cl-user)
(prove:plan 1)
(let* ((uri #p"")
(p (make-pathname :host nil :defaults uri)))
(prove:like (namestring p) "^/directory/name.version$"))
(prove:finalize)
| null | https://raw.githubusercontent.com/slyrus/abcl/881f733fdbf4b722865318a7d2abe2ff8fdad96e/t/pathname.lisp | lisp | (in-package :cl-user)
(prove:plan 1)
(let* ((uri #p"")
(p (make-pathname :host nil :defaults uri)))
(prove:like (namestring p) "^/directory/name.version$"))
(prove:finalize)
| |
5a7a17eae85f9305cbaa2cd317847d501a4d4642df8af68395bd822cbe763ea2 | jellelicht/guix | emacs-build-system.scm | ;;; GNU Guix --- Functional package management for GNU
Copyright © 2015 < >
;;;
;;; This file is part of GNU Guix.
;;;
GNU is free software ; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 3 of the Lice... | null | https://raw.githubusercontent.com/jellelicht/guix/83cfc9414fca3ab57c949e18c1ceb375a179b59c/guix/build/emacs-build-system.scm | scheme | GNU Guix --- Functional package management for GNU
This file is part of GNU Guix.
you can redistribute it and/or modify it
either version 3 of the License , or ( at
your option) any later version.
GNU Guix is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied wa... | Copyright © 2015 < >
under the terms of the GNU General Public License as published by
You should have received a copy of the GNU General Public License
along with GNU . If not , see < / > .
(define-module (guix build emacs-build-system)
#:use-module ((guix build gnu-build-system) #:prefix gnu:)
#:us... |
8bd7b5bd8c6cdc906f56f3c13831f084e5bcaf41471669ebda6fd49354f3572b | pandoc/pandoc-lua-marshal | ListAttributes.hs | {-# LANGUAGE OverloadedStrings #-}
# LANGUAGE TupleSections #
|
Copyright : © 2021 - 2023 SPDX - License - Identifier : MIT
Maintainer : >
Marshaling / unmarshaling functions and constructor for ' ListAttributes '
values .
Copyright : © 2021-2023... | null | https://raw.githubusercontent.com/pandoc/pandoc-lua-marshal/26b95fe3a8ef95588d98916f0d6beb7aaa93f786/src/Text/Pandoc/Lua/Marshal/ListAttributes.hs | haskell | # LANGUAGE OverloadedStrings #
| 'ListAttributes' Lua object type.
| Pushes a 'ListAttributes' value as userdata object.
| Retrieve a 'ListAttributes' triple, either from userdata or from a
Lua tuple.
| Constructor for a new 'ListAttributes' value.
| Pushes a 'ListNumberDelim' value as string.
| Retrieves a '... | # LANGUAGE TupleSections #
|
Copyright : © 2021 - 2023 SPDX - License - Identifier : MIT
Maintainer : >
Marshaling / unmarshaling functions and constructor for ' ListAttributes '
values .
Copyright : © 2021-2023 Albert Krewinkel
SPDX-License-Identif... |
dd83fadb9228df66e693ebdd9b31b7edabe4a5cfc125f00a2fa07b406f5c3f4a | chetmurthy/pa_ppx | runtime.ml | (* camlp5r *)
(* runtime.ml,v *)
Copyright ( c ) INRIA 2007 - 2017
module Stdlib = Stdlib ;
module Protobuf = Protobuf ;
value id x = x ;
value forget1 f x y = f y ;
value int64_of_uint32 n = (Int64.of_int32 (Uint32.to_int32 n)) ;
value int32_of_uint64 msg n = (Protobuf.Encoder.int32_of_int64 msg (Uint64.to_int64... | null | https://raw.githubusercontent.com/chetmurthy/pa_ppx/7c662fcf4897c978ae8a5ea230af0e8b2fa5858b/protobuf_runtime/runtime.ml | ocaml | camlp5r
runtime.ml,v | Copyright ( c ) INRIA 2007 - 2017
module Stdlib = Stdlib ;
module Protobuf = Protobuf ;
value id x = x ;
value forget1 f x y = f y ;
value int64_of_uint32 n = (Int64.of_int32 (Uint32.to_int32 n)) ;
value int32_of_uint64 msg n = (Protobuf.Encoder.int32_of_int64 msg (Uint64.to_int64 n)) ;
value uint32_of_int64 msg ... |
16f5d80f3bbb993d2e3298692311d65e3800360f9db008f8280f26ecef259b10 | fossas/fossa-cli | Extra.hs | module Data.FileEmbed.Extra (
embedFile',
embedFileIfExists,
) where
import Control.Exception (try)
import Control.Monad (when)
import Data.FileEmbed (embedFile)
import Data.Foldable (traverse_)
import Data.Maybe (isJust)
import Language.Haskell.TH (reportWarning, runIO)
import Language.Haskell.TH.Syntax (Exp (Lit... | null | https://raw.githubusercontent.com/fossas/fossa-cli/655f6d273d66854a2dded389e2108c4f51db46ea/src/Data/FileEmbed/Extra.hs | haskell | | Like `embedFile`, but prints out debug logging when
@FOSSA_DEBUG_EMBED_FILE@ is set.
`tail` is safe here because `iterate` returns an infinite list and | module Data.FileEmbed.Extra (
embedFile',
embedFileIfExists,
) where
import Control.Exception (try)
import Control.Monad (when)
import Data.FileEmbed (embedFile)
import Data.Foldable (traverse_)
import Data.Maybe (isJust)
import Language.Haskell.TH (reportWarning, runIO)
import Language.Haskell.TH.Syntax (Exp (Lit... |
b06de6c88fb9b8bd508d756b23b682d314e0f1ecfb54d5fdd39aee39201dd9e8 | avsm/eeww | fib_par.ml | let num_domains = try int_of_string Sys.argv.(1) with _ -> 1
let n = try int_of_string Sys.argv.(2) with _ -> 43
module T = Domainslib.Task
let rec fib n =
if n < 2 then 1
else fib (n-1) + fib (n-2)
let rec fib_par pool n =
if n <= 40 then fib n
else
let a = T.async pool (fun _ -> fib_par pool (n-1)) in
... | null | https://raw.githubusercontent.com/avsm/eeww/a316137bc7550870c9fd0c6a907d87e9d9810ae4/lib/domainslib/test/fib_par.ml | ocaml | let num_domains = try int_of_string Sys.argv.(1) with _ -> 1
let n = try int_of_string Sys.argv.(2) with _ -> 43
module T = Domainslib.Task
let rec fib n =
if n < 2 then 1
else fib (n-1) + fib (n-2)
let rec fib_par pool n =
if n <= 40 then fib n
else
let a = T.async pool (fun _ -> fib_par pool (n-1)) in
... | |
939a06aa2a6ad3b0bbbef37f7ca36b44eb9431d37f9786a326defccf274ec245 | NetComposer/nkmedia | nkmedia_janus_room.erl | %% -------------------------------------------------------------------
%%
Copyright ( c ) 2016 . All Rights Reserved .
%%
This file is provided to you under the Apache License ,
%% Version 2.0 (the "License"); you may not use this file
except in compliance with the License . You may obtain
%% a copy of the... | null | https://raw.githubusercontent.com/NetComposer/nkmedia/24480866a523bfd6490abfe90ea46c6130ffe51f/src/janus_backend/nkmedia_janus_room.erl | erlang | -------------------------------------------------------------------
Version 2.0 (the "License"); you may not use this file
a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing,
KIND, either express or implied. See the License for the
specific language governing permissio... | Copyright ( c ) 2016 . All Rights Reserved .
This file is provided to you under the Apache License ,
except in compliance with the License . You may obtain
software distributed under the License is distributed on an
" AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY
@doc Janus room ( SFU ) ma... |
de90360b119a1665466fcb2554800a5754937c9e7b8327a622b61f6fc41de229 | snapframework/snap-templates | SafeCWD.hs | module SafeCWD
( inDir
, removeDirectoryRecursiveSafe
) where
import Control.Concurrent.QSem
import Control.Exception
import Control.Monad
import System.Directory
import System.IO.Unsafe
sem :: QSem
sem = unsafePerformIO $ newQSem 1
# NOINLINE sem #
inDir :: Bool -> FilePath -> IO a -> IO a
inDir startClean d... | null | https://raw.githubusercontent.com/snapframework/snap-templates/768db37547fc153ce00160af4bd5b603bfa8b8bb/test/suite/SafeCWD.hs | haskell | module SafeCWD
( inDir
, removeDirectoryRecursiveSafe
) where
import Control.Concurrent.QSem
import Control.Exception
import Control.Monad
import System.Directory
import System.IO.Unsafe
sem :: QSem
sem = unsafePerformIO $ newQSem 1
# NOINLINE sem #
inDir :: Bool -> FilePath -> IO a -> IO a
inDir startClean d... | |
c5ee6b0fb50ca1110474a83987624972421c689f6e1569f9199945035ab74374 | Chimrod/i3_workspaces | i3_workspaces.ml |
let pp_error format = begin function
| I3ipc.No_IPC_socket -> Format.fprintf format "No_IPC_socket"
| I3ipc.Bad_magic_string str -> Format.fprintf format "Bad_magic_string %s" str
| I3ipc.Unexpected_eof -> Format.fprintf format "Unexpected_eof"
| I3ipc.Unknown_type _t -> Format.fprintf format "Unknown_type"
| I3ipc.B... | null | https://raw.githubusercontent.com/Chimrod/i3_workspaces/0b03fa412c30833d9d5e29424dbe6c7b96830f31/src/i3_workspaces.ml | ocaml | On error, log to stderr then loop
This should not happen, we did not subscribe to other events
Load the ini file |
let pp_error format = begin function
| I3ipc.No_IPC_socket -> Format.fprintf format "No_IPC_socket"
| I3ipc.Bad_magic_string str -> Format.fprintf format "Bad_magic_string %s" str
| I3ipc.Unexpected_eof -> Format.fprintf format "Unexpected_eof"
| I3ipc.Unknown_type _t -> Format.fprintf format "Unknown_type"
| I3ipc.B... |
2ce019bdd437a89ccfe27ad851ebe477e235458719caef045906790a6ad5f1e0 | bia-technologies/statsbit | context.clj | Copyright 2020 BIA - Technologies Limited Liability Company
;;
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 t... | null | https://raw.githubusercontent.com/bia-technologies/statsbit/4102ca5e5d39b1c06541b49615c6de83e7f4ef36/backend/src/ru/bia_tech/statsbit/context.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 governi... | Copyright 2020 BIA - Technologies Limited Liability Company
distributed under the License is distributed on an " AS IS " BASIS ,
(ns ru.bia-tech.statsbit.context)
я не расчитываю , что код приложения будет явно создавать треды
передовать это соединение в
(declare ^:dynamic *conn*)
(declare ^{:dynamic tr... |
82009ff4882163664b0caca5331c5e0305bdb9af6340c10d2a404e9937a2fce7 | nklein/clifford | add-t.lisp | (in-package #:clifford-tests)
(nst:def-test-group addition-tests ()
(nst:def-test can-add-r2 (:equalp (make-r2 :one 1 :x 2 :y 3 :xy 4))
(+ (make-r2 :one 1 :x 1 :y 1 :xy 1)
(make-r2 :one 0 :x 1 :y 1 :xy 1)
(make-r2 :one 0 :x 0 :y 1 :xy 1)
(make-r2 :one 0 :x 0 :y 0 :xy 1)))
(nst:def-test ca... | null | https://raw.githubusercontent.com/nklein/clifford/2ba9b9a8f68eb88c2821341dfac2f2a61c2f84ce/src/add-t.lisp | lisp | (in-package #:clifford-tests)
(nst:def-test-group addition-tests ()
(nst:def-test can-add-r2 (:equalp (make-r2 :one 1 :x 2 :y 3 :xy 4))
(+ (make-r2 :one 1 :x 1 :y 1 :xy 1)
(make-r2 :one 0 :x 1 :y 1 :xy 1)
(make-r2 :one 0 :x 0 :y 1 :xy 1)
(make-r2 :one 0 :x 0 :y 0 :xy 1)))
(nst:def-test ca... | |
7999abd3dd5fba9d3d90435251782e27d96024b523f6929c388c6ea3a89302ba | eccentric-j/cljs-tui-template | core.cljs | (ns {{namespace}}
"Create application state with mount."
(:require
[cljs.nodejs :as nodejs]
[mount.core :refer [defstate] :as mount]
[{{main-ns}}.keys :as keys]
[{{main-ns}}.resize :as resize]))
;; Import required npm & node dependencies
(def blessed (js/require "blessed"))
(def react-blessed (js/requi... | null | https://raw.githubusercontent.com/eccentric-j/cljs-tui-template/6ad22eb0d069666a072c58709fc82e6f1a2ca8c3/resources/leiningen/new/cljs_tui/src/core.cljs | clojure | Import required npm & node dependencies
Setup mount to work in ClojureScript
Create a render function to translate hiccup into blessed components | (ns {{namespace}}
"Create application state with mount."
(:require
[cljs.nodejs :as nodejs]
[mount.core :refer [defstate] :as mount]
[{{main-ns}}.keys :as keys]
[{{main-ns}}.resize :as resize]))
(def blessed (js/require "blessed"))
(def react-blessed (js/require "react-blessed"))
(mount/in-cljc-mode)
... |
f5f65590f1b4e7aeef055c7613d6b4d3b8d7604750d31fa1dfcd771251affc8a | ott-lang/ott | main.ml | open Test10menhir_ast
module Lexer = Test10menhir_lexer
module Parser = Test10menhir_parser
module PP = Test10menhir_parser_pp
let rec pp_term t : string =
match t with
| T_var x - > Printf.sprintf " % s " x
| T_lam ( x , t ) - > Printf.sprintf " \\%s . % s " x ( pp_term t )
| T_app ( t , t ' ) - >... | null | https://raw.githubusercontent.com/ott-lang/ott/038131721750d73f1e201a9575df7ede42639165/tests/menhir_tests/test10menhir/main.ml | ocaml | Run the parser on this line of input.
Attempt to read one line. | open Test10menhir_ast
module Lexer = Test10menhir_lexer
module Parser = Test10menhir_parser
module PP = Test10menhir_parser_pp
let rec pp_term t : string =
match t with
| T_var x - > Printf.sprintf " % s " x
| T_lam ( x , t ) - > Printf.sprintf " \\%s . % s " x ( pp_term t )
| T_app ( t , t ' ) - >... |
5833f28526bf101b0e315e92dce3a93494b46b23d53b6e9396c4fce481f3f68f | janestreet/memtrace_viewer | filter_spec.mli | open! Core
open Memtrace_viewer_common
module Range_predicate : sig
type 'a t =
| At_least of 'a option
| At_most of 'a option
| Between of
{ lower_bound : 'a option
; upper_bound : 'a option
}
[@@deriving sexp, equal]
module Or_empty : sig
type nonrec 'a t =
| Non_... | null | https://raw.githubusercontent.com/janestreet/memtrace_viewer/46439f8bd16e77c5aa38632c9c4aa53175121d4d/client/src/filter_spec.mli | ocaml | A range predicate constrains the time at which an event (allocation or collection)
occurs. A time of measurement instead specifies a time or range of times at which an
object's state (liveness) is measured. | open! Core
open Memtrace_viewer_common
module Range_predicate : sig
type 'a t =
| At_least of 'a option
| At_most of 'a option
| Between of
{ lower_bound : 'a option
; upper_bound : 'a option
}
[@@deriving sexp, equal]
module Or_empty : sig
type nonrec 'a t =
| Non_... |
a9f4e60d67644e4a6c5efbcbe5831884d07d34fe9e656d87a788d83e1edd8052 | portkey-cloud/aws-clj-sdk | _2017-03-14.clj | (ns portkey.aws.servicediscovery.-2017-03-14 (:require [portkey.aws]))
(def
endpoints
'{"eu-west-1"
{:credential-scope
{:service "servicediscovery", :region "eu-west-1"},
:ssl-common-name "servicediscovery.eu-west-1.amazonaws.com",
:endpoint "-west-1.amazonaws.com",
:signature-version :v4},
"us... | null | https://raw.githubusercontent.com/portkey-cloud/aws-clj-sdk/10623a5c86bd56c8b312f56b76ae5ff52c26a945/src/portkey/aws/servicediscovery/_2017-03-14.clj | clojure | (ns portkey.aws.servicediscovery.-2017-03-14 (:require [portkey.aws]))
(def
endpoints
'{"eu-west-1"
{:credential-scope
{:service "servicediscovery", :region "eu-west-1"},
:ssl-common-name "servicediscovery.eu-west-1.amazonaws.com",
:endpoint "-west-1.amazonaws.com",
:signature-version :v4},
"us... | |
46b36a185ab210863f261e850019debbc008f1f4ef7ec0b4028cbeda7e569d5c | haskell-game/tiny-games-hs | woosh.caves.hs | #!/usr/bin/env -S runghc -XUnicodeSyntax
{import System.Exit;import System.IO;ऄ=replicate;अ=putStr;आ=mod;इ=stdin;ई=pure;
main=do{अ(unlines((ऄ 40 ' '++"v"++ऄ 39 ' '):ऄ 5(ऄ 80 ' ')));hSetEcho इ False;
hSetBuffering इ NoBuffering;उ(0,2^30,[30,40,50]:repeat[],40)};उ(ऊ,ऋ,ऌ,ऍ)=do{let{
ऎ=zipWith(\ए ऐ→((((ऋ`div`3^ए)`आ`3)-1)+ऐ)... | null | https://raw.githubusercontent.com/haskell-game/tiny-games-hs/5836f8c17e1c1260639f22c82a901834336ccb69/base/woosh/woosh.caves.hs | haskell | ^10 ------------------------------------------------------------------ 80> -- | #!/usr/bin/env -S runghc -XUnicodeSyntax
{import System.Exit;import System.IO;ऄ=replicate;अ=putStr;आ=mod;इ=stdin;ई=pure;
main=do{अ(unlines((ऄ 40 ' '++"v"++ऄ 39 ' '):ऄ 5(ऄ 80 ' ')));hSetEcho इ False;
hSetBuffering इ NoBuffering;उ(0,2^30,[30,40,50]:repeat[],40)};उ(ऊ,ऋ,ऌ,ऍ)=do{let{
ऎ=zipWith(\ए ऐ→((((ऋ`div`3^ए)`आ`3)-1)+ऐ)... |
553ba34e13180aeb928a89b937e6f43ce6f7383962e417a9ae89213a239cbdae | alekras/erl.mqtt.server | mqtt_rest_router.erl | %%
Copyright ( C ) 2015 - 2022 by ( )
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% -2.0
%%
%% Unless required by applicable law or agreed to in writing, software
... | null | https://raw.githubusercontent.com/alekras/erl.mqtt.server/d05919cfc7bfdb7a252eb97a58da67f6a3c48138/apps/mqtt_rest/src/mqtt_rest_router.erl | erlang |
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing per... | Copyright ( C ) 2015 - 2022 by ( )
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(mqtt_rest_router).
-export([get_paths/1, get_validator_state/0]).
-type operations() :: #{
Method :: binary() => mqtt_rest_api... |
f8379cf0f3f0e8862bb45885dc84e7b3bf7f4aadce33a1de5b0aee963bb6654c | composewell/unicode-data | ScriptsSpec.hs | # , CPP , OverloadedLists #
module Unicode.Char.General.ScriptsSpec
( spec
) where
#include "MachDeps.h"
import Data.Foldable (traverse_)
import Test.Hspec
import qualified Unicode.Char.General.Scripts as UScripts
import qualified Unicode.Internal.Char.Scripts as S
import GHC.Exts
(Ptr(..), Char(..), I... | null | https://raw.githubusercontent.com/composewell/unicode-data/3dac84295d5a0eaf620f33a7dab19943df84956b/unicode-data-scripts/test/Unicode/Char/General/ScriptsSpec.hs | haskell | -----------+----------------+-----------------+
-----------+----------------+-----------------+
-----------+----------------+-----------------+
-----------+----------------+-----------------+
BOM
Private Use Areas
BOM
Private Use Areas
Check if a character is in a 'S.Script'.
This is faster than testing the str... | # , CPP , OverloadedLists #
module Unicode.Char.General.ScriptsSpec
( spec
) where
#include "MachDeps.h"
import Data.Foldable (traverse_)
import Test.Hspec
import qualified Unicode.Char.General.Scripts as UScripts
import qualified Unicode.Internal.Char.Scripts as S
import GHC.Exts
(Ptr(..), Char(..), I... |
df1a0fe933daff694a456b066b8e6dcc4e1e6310a80c9d96a641a9e5e6c6c086 | flokkus/fast_mnesia | simple_cache.erl | -module(simple_cache).
-export([insert/2, lookup/1, delete/1]).
insert(Key, Value) ->
% Add observability
sc_store:insert(Key, Value).
lookup(Key) ->
% Add observability
sc_store:lookup(Key).
delete(Key) ->
% Add observability
sc_store:delete(Key).
| null | https://raw.githubusercontent.com/flokkus/fast_mnesia/3a52c57cdaa556ccdb6d213c6b5a0b9fb19442dd/cache_no_resource_discovery/simple_cache/src/simple_cache.erl | erlang | Add observability
Add observability
Add observability | -module(simple_cache).
-export([insert/2, lookup/1, delete/1]).
insert(Key, Value) ->
sc_store:insert(Key, Value).
lookup(Key) ->
sc_store:lookup(Key).
delete(Key) ->
sc_store:delete(Key).
|
ea24dde07e2588aeaa2037b6038fbfafaa6433e8152781e7f5e6f11b2d63ee94 | openmusic-project/openmusic | dragagain.lisp | ;=========================================================================
OpenMusic : Visual Programming Language for Music Composition
;
Copyright ( c ) 1997- ... IRCAM - Centre , Paris , France .
;
This file is part of the OpenMusic environment sources
;
OpenMusic is free software : you ... | null | https://raw.githubusercontent.com/openmusic-project/openmusic/9560c064512a1598cd57bcc9f0151c0815178e6f/OPENMUSIC/code/projects/musicproject/editor/scoreeditor/dragagain.lisp | lisp | =========================================================================
(at your option) any later version.
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
======... | OpenMusic : Visual Programming Language for Music Composition
Copyright ( c ) 1997- ... IRCAM - Centre , Paris , France .
This file is part of the OpenMusic environment sources
OpenMusic is free software : you can redistribute it and/or modify
it under the terms of the GNU General Public ... |
94b5fb7260a094dab89f3223d683aab58b2e37a909b97aa11d73517c9f86e8b2 | simmsb/calamity | Types.hs | -- | All user facing types
module Calamity.Types (
module Calamity.Types.Model,
module Calamity.Types.Partial,
module Calamity.Types.Snowflake,
module Calamity.Types.Token,
module Calamity.Types.Tellable,
module Calamity.Types.Upgradeable,
module Calamity.Types.CDNAsset,
module Calamity.Types.TokenEff,
... | null | https://raw.githubusercontent.com/simmsb/calamity/60c56b1d69677a516e87e87c88455260dfd0ad6e/calamity/Calamity/Types.hs | haskell | | All user facing types
* Types
$typesDocs | module Calamity.Types (
module Calamity.Types.Model,
module Calamity.Types.Partial,
module Calamity.Types.Snowflake,
module Calamity.Types.Token,
module Calamity.Types.Tellable,
module Calamity.Types.Upgradeable,
module Calamity.Types.CDNAsset,
module Calamity.Types.TokenEff,
module Calamity.Types.Log... |
0f7b9dbf97a9647d769f47eb4a2ce0627d05b1126f34b348b40bc101f9995a7b | j-mie6/ParsleyHaskell | BenchmarkUtils.hs | module BenchmarkUtils where
import Gauge.Main (Benchmark, defaultMainWith)
import Gauge.Main.Options (Config(displayMode), defaultConfig, DisplayMode(Condensed))
condensedMain :: [Benchmark] -> IO ()
condensedMain = defaultMainWith (defaultConfig {displayMode = Condensed})
| null | https://raw.githubusercontent.com/j-mie6/ParsleyHaskell/045ab78ed7af0cbb52cf8b42b6aeef5dd7f91ab2/parsley-core/benchmarks/BenchmarkUtils.hs | haskell | module BenchmarkUtils where
import Gauge.Main (Benchmark, defaultMainWith)
import Gauge.Main.Options (Config(displayMode), defaultConfig, DisplayMode(Condensed))
condensedMain :: [Benchmark] -> IO ()
condensedMain = defaultMainWith (defaultConfig {displayMode = Condensed})
| |
f052d38f6bc44fc2f40f2f59527fb48864c451f23c9819516635506dbd8c4646 | lingnand/VIMonad | MosaicAlt.hs | # LANGUAGE DeriveDataTypeable , GeneralizedNewtypeDeriving , MultiParamTypeClasses , TypeSynonymInstances #
-----------------------------------------------------------------------------
-- |
-- Module : XMonad.Layout.MosaicAlt
Copyright : ( c ) 2007
License : BSD - style ( see xmonad / LICENSE ... | null | https://raw.githubusercontent.com/lingnand/VIMonad/048e419fc4ef57a5235dbaeef8890faf6956b574/XMonadContrib/XMonad/Layout/MosaicAlt.hs | haskell | ---------------------------------------------------------------------------
|
Module : XMonad.Layout.MosaicAlt
Maintainer : xmonad#jwebb,sygneca,com
Stability : unstable
Portability : unportable
A layout which gives each window a specified amount of screen space
divides the space in a more balanced... | # LANGUAGE DeriveDataTypeable , GeneralizedNewtypeDeriving , MultiParamTypeClasses , TypeSynonymInstances #
Copyright : ( c ) 2007
License : BSD - style ( see xmonad / LICENSE )
relative to the others . Compared to the ' Mosaic ' layout , this one
module XMonad.Layout.MosaicAlt (
MosaicAlt... |
d42bc51ee19ed82573f9f65611c853c3dcf537271da55a57dfc96a055f3af39d | purescript/purescript | RebuildSpec.hs | module Language.PureScript.Ide.RebuildSpec where
import Protolude
import qualified Data.Set as Set
import qualified Language.PureScript as P
import Language.PureScript.AST.SourcePos (spanName)
import Language.PureScript.Ide.Command
import Language.PureScript.Ide.Completion
impo... | null | https://raw.githubusercontent.com/purescript/purescript/f9f75f43bd1bdbc1e866fdba876582385e3f4c65/tests/Language/PureScript/Ide/RebuildSpec.hs | haskell | module Language.PureScript.Ide.RebuildSpec where
import Protolude
import qualified Data.Set as Set
import qualified Language.PureScript as P
import Language.PureScript.AST.SourcePos (spanName)
import Language.PureScript.Ide.Command
import Language.PureScript.Ide.Completion
impo... | |
1a2289ff2aee6ca2390afe10a28209f7ce7b82f39d8ba13813f81513718c1e4e | bytecurry/fsocket | sbcl.lisp | ;; sbcl.lisp
(in-package :fsocket)
(defun file-socket-connect (filename &key
(protocol :stream)
(element-type 'character)
local-filename)
(let ((socket (make-instance 'sb-bsd-sockets:local-socket
... | null | https://raw.githubusercontent.com/bytecurry/fsocket/f23a84dbd73e23c9d4ede588113de3bdfcdf7eaf/backend/sbcl.lisp | lisp | sbcl.lisp |
(in-package :fsocket)
(defun file-socket-connect (filename &key
(protocol :stream)
(element-type 'character)
local-filename)
(let ((socket (make-instance 'sb-bsd-sockets:local-socket
... |
023c09d594af4d1a10c8f1fbbccff9e2351fca267943d23230c538293bf7192e | paf31/dovetail | Spec.hs | # LANGUAGE AllowAmbiguousTypes #
# LANGUAGE BlockArguments #
{-# LANGUAGE DeriveAnyClass #-}
# LANGUAGE DeriveGeneric #
{-# LANGUAGE DerivingStrategies #-}
# LANGUAGE DerivingVia #
# LANGUAGE ImportQualifiedPost #
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{-# ... | null | https://raw.githubusercontent.com/paf31/dovetail/60e00e247b643ad9c05e4137396ffddedcd8bcb6/dovetail/test/Spec.hs | haskell | # LANGUAGE DeriveAnyClass #
# LANGUAGE DerivingStrategies #
# LANGUAGE FlexibleContexts #
# LANGUAGE OverloadedStrings #
# LANGUAGE RankNTypes # | # LANGUAGE AllowAmbiguousTypes #
# LANGUAGE BlockArguments #
# LANGUAGE DeriveGeneric #
# LANGUAGE DerivingVia #
# LANGUAGE ImportQualifiedPost #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
# LANGUAGE TupleSections #
module Main where
import Control.Monad (guard)
... |
0d91bdc89205d7ee4d8de6406022af0106551d3382d9b973b9ecffd3d88bf1d0 | SKA-ScienceDataProcessor/RC | Setup.hs | -- | A custom build script for CUDA support.
--
Copyright ( C ) 2014 Braam Research , LLC .
module Main(main) where
import Control.Applicative
import Control.Monad
import Distribution.Simple
import Distribution.Simple.Configure (configure)
import Distribution.Simple.Setup
import Distribution.Simple.LocalBuildInfo
... | null | https://raw.githubusercontent.com/SKA-ScienceDataProcessor/RC/1b5e25baf9204a9f7ef40ed8ee94a86cc6c674af/MS3/cupti/Setup.hs | haskell | | A custom build script for CUDA support.
options from the command line. The syntax is slightly
non-obious:
$ cabal configure -- --with-nvcc=[...] --nvcc-options=[...]
Note the extra "--".
Irrespectively of whether there are actual CUDA sources or not,
found by the linker. We simply assume that it sits at a ... | Copyright ( C ) 2014 Braam Research , LLC .
module Main(main) where
import Control.Applicative
import Control.Monad
import Distribution.Simple
import Distribution.Simple.Configure (configure)
import Distribution.Simple.Setup
import Distribution.Simple.LocalBuildInfo
import Distribution.Simple.Program
import Distri... |
7b5d5900aab559882c5aefbabcb9c6ef6bffda863a38aabf68f3c212e59a9898 | Helium4Haskell/helium | TupleTooBig5.hs | main :: Maybe (Int,Int,Int,Int,Int,Int,Int,Char,String,Int,Maybe Char)
main = undefined
| null | https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/staticerrors/TupleTooBig5.hs | haskell | main :: Maybe (Int,Int,Int,Int,Int,Int,Int,Char,String,Int,Maybe Char)
main = undefined
| |
ca710f6b433c7a53787183b1d79831466bad58923a9a62905821bef8928944dc | abarbu/android-kawa | Yamba.scm | (require 'android-defs)
(require 'srfi-1)
(define-namespace Log "class:android.util.Log")
(define-alias Math java.lang.Math)
(define-alias Bitmap android.graphics.Bitmap)
(define-alias Canvas android.graphics.Canvas)
(define-alias Color android.graphics.Color)
(define-alias Drawable android.graphics.drawable.... | null | https://raw.githubusercontent.com/abarbu/android-kawa/3e7b5dc46bdda436e64f70e71f37a0a7e74e7e5f/LearningAndroid-chapter6/src/com/zeroxab/learningandroid/yamba/Yamba.scm | scheme | (require 'android-defs)
(require 'srfi-1)
(define-namespace Log "class:android.util.Log")
(define-alias Math java.lang.Math)
(define-alias Bitmap android.graphics.Bitmap)
(define-alias Canvas android.graphics.Canvas)
(define-alias Color android.graphics.Color)
(define-alias Drawable android.graphics.drawable.... | |
caba80bc2dc7e68282ba788878a7e30c779fb498901a863c1b96eed8edc3b01e | project-oak/hafnium-verification | QualifiedCppNameTests.ml |
* Copyright ( c ) Facebook , Inc. and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
... | null | https://raw.githubusercontent.com/project-oak/hafnium-verification/6071eff162148e4d25a0fedaea003addac242ace/experiments/ownership-inference/infer/infer/src/unit/clang/QualifiedCppNameTests.ml | ocaml |
* Copyright ( c ) Facebook , Inc. and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
... | |
096badf59c1a87da5b63e9d9038519d1bbce06f91c42e8ac13c039d3a4cb246a | karen/haskell-book | ch6.hs |
data TisAnInteger =
TisAn Integer
instance Eq TisAnInteger where
(==) (TisAn a) (TisAn b) = a == b
data TwoIntegers =
Two Integer Integer
instance Eq TwoIntegers where
(==) (Two a b) (Two a' b') = a == a' && b == b'
data StringOrInt =
TisAnInt Int
| TisAString String
instance Eq StringOrInt... | null | https://raw.githubusercontent.com/karen/haskell-book/90bb80ec3203fde68fc7fda1662d9fc8b509d179/src/ch06/ch6.hs | haskell |
data TisAnInteger =
TisAn Integer
instance Eq TisAnInteger where
(==) (TisAn a) (TisAn b) = a == b
data TwoIntegers =
Two Integer Integer
instance Eq TwoIntegers where
(==) (Two a b) (Two a' b') = a == a' && b == b'
data StringOrInt =
TisAnInt Int
| TisAString String
instance Eq StringOrInt... | |
77433db10c0d785a20d2cd16607d386ed53b1220fb26e333acb93b788256536d | informatimago/lisp | relative-package-test.lisp | -*- mode : lisp;coding : utf-8 -*-
;;;;**************************************************************************
FILE : relative-package-test.lisp
;;;;LANGUAGE: Common-Lisp
;;;;SYSTEM: Common-Lisp
USER - INTERFACE :
;;;;DESCRIPTION
;;;;
;;;; Tests the relative-package.
;... | null | https://raw.githubusercontent.com/informatimago/lisp/571af24c06ba466e01b4c9483f8bb7690bc46d03/common-lisp/lisp/relative-package-test.lisp | lisp | coding : utf-8 -*-
**************************************************************************
LANGUAGE: Common-Lisp
SYSTEM: Common-Lisp
DESCRIPTION
Tests the relative-package.
LEGAL
This program is free software: you can redistribute it and/or modify
(at your option) any later vers... | FILE : relative-package-test.lisp
USER - INTERFACE :
< PJB > < >
MODIFICATIONS
2015 - 11 - 02 < PJB > Adapted from #relative-2
AGPL3
Copyright 2015 - 2016
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation ... |
e8c7812e7573c57247913c92115de4e1fe859af14c830d8806d0b9852432e94c | evanrelf/drama | use.hs | # LANGUAGE BlockArguments #
{-# LANGUAGE GADTs #-}
# LANGUAGE LambdaCase #
# LANGUAGE NamedFieldPuns #
{-# LANGUAGE RankNTypes #-}
module Main (main) where
import Control.Monad (forever, when)
import Control.Monad.IO.Class (liftIO)
import Data.IORef (modifyIORef, newIORef, readIORef, writeIORef)
import Drama
import S... | null | https://raw.githubusercontent.com/evanrelf/drama/739c009c785f9008ceb8dd57c42318c7243d802b/examples/use.hs | haskell | # LANGUAGE GADTs #
# LANGUAGE RankNTypes #
------------------------------------------------------------------------------
------------------------------------------------------------------------------ | # LANGUAGE BlockArguments #
# LANGUAGE LambdaCase #
# LANGUAGE NamedFieldPuns #
module Main (main) where
import Control.Monad (forever, when)
import Control.Monad.IO.Class (liftIO)
import Data.IORef (modifyIORef, newIORef, readIORef, writeIORef)
import Drama
import System.Exit (exitSuccess)
main :: IO ()
main = run... |
e1017856404d5d4daf50b64a81e08724b4b7412cf7af4b5011a056c2765b81ed | manuel-serrano/bigloo | object_sans.scm | ;*=====================================================================*/
* serrano / prgm / project / bigloo / recette / object - sans.scm * /
;* ------------------------------------------------------------- */
* Author : * /
* Creation ... | null | https://raw.githubusercontent.com/manuel-serrano/bigloo/eb650ed4429155f795a32465e009706bbf1b8d74/recette/object_sans.scm | scheme | *=====================================================================*/
* ------------------------------------------------------------- */
* ------------------------------------------------------------- */
* The object system tests */
*===========================... | * serrano / prgm / project / bigloo / recette / object - sans.scm * /
* Author : * /
* Creation : We d Jul 17 07:59:51 1996 * /
* Last change : Tue Mar 20 14:10:50 2012 ( serrano ) * /
(module ... |
e83a99c2cbf3e6903187093604a44440826617d4a9647a46742eb5b17ffb5758 | joinr/spork | bridging.clj | 4 July 2012 .
;;This is a simple library for solving a common problem: bridging data from
;;external sources during import. In my case, the catalyst was having a team
;;member submit data that "sort of" conformed to a shared specification, but
;;not directly. Specifically, the fields needed for the specification ... | null | https://raw.githubusercontent.com/joinr/spork/bb80eddadf90bf92745bf5315217e25a99fbf9d6/src/spork/util/bridging.clj | clojure | This is a simple library for solving a common problem: bridging data from
external sources during import. In my case, the catalyst was having a team
member submit data that "sort of" conformed to a shared specification, but
not directly. Specifically, the fields needed for the specification existed,
but the names ... | 4 July 2012 .
Update Feb 2017 - Maintained for legacy script support , marked for
DEPRECATION .
(ns spork.util.bridging
(:require [clojure.java [io :as io]]
[clojure [set :as setlib]]))
( defn ensure - set [ s ]
( do ( assert ( sequential ? s ) ( str s " is not compatible with hash - set " ) )
(de... |
d7d88779fe31637532b62b3f8875ad564e7060559b65ffb9838c492cce732fb4 | haskell-servant/servant | TestCombinators.hs | {-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
# LANGUAGE FlexibleInstances #
# LANGUAGE KindSignatures #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE PolyKinds #
{-# LANGUAGE ScopedTypeVariables #-}
# LANGUAGE TypeFamilies #
{-# LANGUAGE TypeOperato... | null | https://raw.githubusercontent.com/haskell-servant/servant/d06b65c4e6116f992debbac2eeeb83eafb960321/servant-server/test/Servant/Server/UsingContextSpec/TestCombinators.hs | haskell | # LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeOperators #
just *using* combinators that require a Context, you don't. This module is
separate from Servant.Server.UsingContextSpec to test that the module imports
work out this way.) | # LANGUAGE FlexibleInstances #
# LANGUAGE KindSignatures #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE PolyKinds #
# LANGUAGE TypeFamilies #
# LANGUAGE UndecidableInstances #
| These are custom combinators for Servant . Server . .
( For writing your own combinators you need... |
b2eb9e4543cf91bb68af393b5f920e25a271083c561d592ad44e440e00627667 | serokell/qtah | QItemSelectionModel.hs | This file is part of Qtah .
--
Copyright 2015 - 2018 The Qtah Authors .
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation , either version 3 of the License , or
-- (at your option) ... | null | https://raw.githubusercontent.com/serokell/qtah/abb4932248c82dc5c662a20d8f177acbc7cfa722/qtah-generator/src/Graphics/UI/Qtah/Generator/Interface/Core/QItemSelectionModel.hs | haskell |
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MER... | This file is part of Qtah .
Copyright 2015 - 2018 The Qtah Authors .
the Free Software Foundation , either version 3 of the License , or
GNU Lesser General Public License for more details .
You should have received a copy of the GNU Lesser General Public License
module Graphics.UI.Qtah.Generator.Interface.Co... |
2a98a45cada442185ca3a0384407650d0a7c77ea54fcc23b77489e21369b2da8 | geneweb/geneweb | advSearchOk.ml | Copyright ( c ) 1998 - 2007 INRIA
open Config
open Def
open Gwdb
open Util
let get_number var key env = p_getint env (var ^ "_" ^ key)
let reconstitute_date_dmy conf var =
match get_number var "yyyy" conf.env with
| Some y -> (
match get_number var "mm" conf.env with
| Some m -> (
match g... | null | https://raw.githubusercontent.com/geneweb/geneweb/7b71f8f2f75e0e847818f821a0267938f38c9cf5/lib/advSearchOk.ml | ocaml | Get the field name of an event criteria depending of the search type.
Search type can be AND or OR.
Return empty_field_value if the field is empty. Apply function cmp to the field value. Also check the authorization.
Check if the date matches with the person event.
TODO Date.cdate_of_burial
Check the civil s... | Copyright ( c ) 1998 - 2007 INRIA
open Config
open Def
open Gwdb
open Util
let get_number var key env = p_getint env (var ^ "_" ^ key)
let reconstitute_date_dmy conf var =
match get_number var "yyyy" conf.env with
| Some y -> (
match get_number var "mm" conf.env with
| Some m -> (
match g... |
1be20010f0c13574a8bdbbf1e7a21427c0315f6c2712c1de87393f91c3e5ab74 | mbutterick/beautiful-racket | main.rkt | #lang br/quicklang
(require brag/support racket/sequence)
(module+ reader
(provide read-syntax))
(define taco-lexer
(lexer
["(" "#"]
[")" "$"]
["taco" "%"]
[any-char (taco-lexer input-port)]))
(define (read-syntax src port)
(define toks (for/list ([tok (in-port taco-lexer port)])
... | null | https://raw.githubusercontent.com/mbutterick/beautiful-racket/f0e2cb5b325733b3f9cbd554cc7d2bb236af9ee9/beautiful-racket-demo/tacopocalypse-prep/main.rkt | racket | print result | #lang br/quicklang
(require brag/support racket/sequence)
(module+ reader
(provide read-syntax))
(define taco-lexer
(lexer
["(" "#"]
[")" "$"]
["taco" "%"]
[any-char (taco-lexer input-port)]))
(define (read-syntax src port)
(define toks (for/list ([tok (in-port taco-lexer port)])
... |
486dc9201a50743c00d908938d1378c612cc2a0eb216e63f50c9b6cc2a6f103e | rgrinberg/curly | curly.mli | module Meth : sig
type t =
[ `GET
| `POST
| `HEAD
| `PUT
| `DELETE
| `OPTIONS
| `TRACE
| `CONNECT
| `PATCH
| `Other of string ]
val pp : Format.formatter -> t -> unit
end
module Header : sig
type t = (string * string) list
val pp : Format.formatter -> t -> unit
end
mo... | null | https://raw.githubusercontent.com/rgrinberg/curly/babd720dea71b83028109004138af7937fe046b5/src/curly.mli | ocaml | * Specialized version of {!run} for method [`GET]
@since 0.2.0
* Specialized version of {!run} for method [`HEAD]
@since 0.2.0
* Specialized version of {!run} for method [`DELETE]
@since 0.2.0
* Specialized version of {!run} for method [`POST]
@since 0.2.0
* Specialized version of {!run} for method ... | module Meth : sig
type t =
[ `GET
| `POST
| `HEAD
| `PUT
| `DELETE
| `OPTIONS
| `TRACE
| `CONNECT
| `PATCH
| `Other of string ]
val pp : Format.formatter -> t -> unit
end
module Header : sig
type t = (string * string) list
val pp : Format.formatter -> t -> unit
end
mo... |
b0de82f81c5ff991be618e57365ae6cc7f703fc555b288555bd9cf4bd9097a3e | imdea-software/leap | FormulaStr.mli |
(***********************************************************************)
(* *)
LEAP
(* *)
, IMDEA ... | null | https://raw.githubusercontent.com/imdea-software/leap/5f946163c0f80ff9162db605a75b7ce2e27926ef/src/formulas/FormulaStr.mli | ocaml | *********************************************************************
... |
LEAP
, IMDEA Software Institute
Copyright 2011 IMDEA Software Institute
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
you may not use this file except in compl... |
960b6c074c0d12ce02735cccd2577d30a7d983538b65c52015c58ff8d9422537 | lateio/kurremkarmerruk | kurremkarmerruk_recurse_resolve.erl | % ------------------------------------------------------------------------------
%
Copyright © 2018 - 2019 , < >
%
The ISC License
%
% Permission to use, copy, modify, and/or distribute this software for any
% purpose with or without fee is hereby granted, provided that the above
% copyright notice and this perm... | null | https://raw.githubusercontent.com/lateio/kurremkarmerruk/7743cb75e92ed6ffe0f147f96148299df47c9dcf/src/handlers/kurremkarmerruk_recurse/kurremkarmerruk_recurse_resolve.erl | erlang | ------------------------------------------------------------------------------
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
WITH REGARD TO THIS SO... | Copyright © 2018 - 2019 , < >
The ISC License
THE SOFTWARE IS PROVIDED “ AS IS ” AND THE AUTHOR DISCLAIMS ALL WARRANTIES
ANY SPECIAL , DIRECT , INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE , DATA OR PROFITS , WHETHER IN AN
-module(kurremkarmerruk_recurse_resolve)... |
f45f392d09a6f511dcb1aa6891e2b277b669b190ea603f085b9f6bda3d70b604 | jonase/eastwood | unusednss2.clj | (ns testcases.unusednss2)
(def atom1 (atom []))
| null | https://raw.githubusercontent.com/jonase/eastwood/c5b7d9f8ad8f8b38dc7138d853cc65f6987d6058/cases/testcases/unusednss2.clj | clojure | (ns testcases.unusednss2)
(def atom1 (atom []))
| |
95566d6675bab9148d8dbb0a9c1250666512576ddb67d30a9cf3d24fed2bec71 | sharplispers/bknr.datastore | acl-mp-compat.lisp | (in-package :bknr.utils)
#+(not (or allegro sbcl cmu openmcl lispworks))
(error "missing port for this compiler, please provide for locking primitives for this compiler in ~A" *load-pathname*)
(defun mp-make-lock (&optional (name "Anonymous"))
#+allegro
(mp:make-process-lock :name name)
#+sbcl
(sb-thread:make... | null | https://raw.githubusercontent.com/sharplispers/bknr.datastore/1f0ff221f4307d2b88b9f3d81857df69687c0097/src/utils/acl-mp-compat.lisp | lisp | (in-package :bknr.utils)
#+(not (or allegro sbcl cmu openmcl lispworks))
(error "missing port for this compiler, please provide for locking primitives for this compiler in ~A" *load-pathname*)
(defun mp-make-lock (&optional (name "Anonymous"))
#+allegro
(mp:make-process-lock :name name)
#+sbcl
(sb-thread:make... | |
cbee51e2754b13ca226d74ea3d3b0511df039cfe38137a7cd014dd9bdc8ecb23 | janestreet/hardcaml_circuits | test_pipelined_tree_reduce.ml | open Base
open Hardcaml
open Hardcaml_waveterm
open Hardcaml_circuits
let test ~arity n =
let clock = Signal.input "clock" 1 in
let numbers = List.init n ~f:(fun i -> Signal.input ("x_" ^ Int.to_string i) 32) in
let enable = Signal.input "enable" 1 in
let spec = Reg_spec.create ~clock () in
let output =
... | null | https://raw.githubusercontent.com/janestreet/hardcaml_circuits/09bb1b01b9e0a45f8ba91daf1f9a00e2bf4d6827/test/test_pipelined_tree_reduce.ml | ocaml | open Base
open Hardcaml
open Hardcaml_waveterm
open Hardcaml_circuits
let test ~arity n =
let clock = Signal.input "clock" 1 in
let numbers = List.init n ~f:(fun i -> Signal.input ("x_" ^ Int.to_string i) 32) in
let enable = Signal.input "enable" 1 in
let spec = Reg_spec.create ~clock () in
let output =
... | |
eb8cd98dd3828d516aa9737d32f3a0dabf543a65680949c012f0b2452d9af534 | janestreet/bonsai | main.ml | open! Core
let () = Command_unix.run Bonsai_examples_mouse_position_native.command
| null | https://raw.githubusercontent.com/janestreet/bonsai/782fecd000a1f97b143a3f24b76efec96e36a398/examples/mouse_position/server/bin/main.ml | ocaml | open! Core
let () = Command_unix.run Bonsai_examples_mouse_position_native.command
| |
6141a65c298a0b503119d03fd4999778b218ac325e655c9e67d57f76b682f202 | mdedwards/slippery-chicken | sine.lsp | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; ****h* sc/sine
;;; NAME
;;; samp5
;;;
;;; File: sine.lsp
;;;
Class Hierarchy : none , no classes defined
;;;
Version : 1.0.12
;;;
;;; Project: slippery chicken (algorithmic composition)
;;;
;;; Purp... | null | https://raw.githubusercontent.com/mdedwards/slippery-chicken/c1c11fadcdb40cd869d5b29091ba5e53c5270e04/src/sine.lsp | lisp |
****h* sc/sine
NAME
samp5
File: sine.lsp
Project: slippery chicken (algorithmic composition)
Purpose: clm instrument for simple sine wave generation. This is
used mainly as an example to show how user instruments
can be used in clm-play b... | Class Hierarchy : none , no classes defined
Version : 1.0.12
Author : :
$ $ Last modified : 17:19:15 Fri Jan 4 2019 CET
SVN ID : $ I d : sine.lsp 4223 2013 - 10 - 29 10:57:09Z medward2 $
Licence : Copyright ( c ) 2010
Public License as published ... |
1ab939ecdf0e7251f046ae3cdee65c75d85afed66590210f91ee05448dd95aa7 | melusina-org/cl-rashell | util.lisp | util.lisp — Utilities
;;;; Rashell (-org/cl-rashell)
This file is part of Rashell .
;;;;
Copyright © 2017–2022
;;;; All rights reserved.
This file must be used under the terms of the MIT License .
;;;; This source file is licensed as described in the file LICENSE, which
;;;; you should have received as par... | null | https://raw.githubusercontent.com/melusina-org/cl-rashell/b9a4cc9f37a3d09609e5ee79d99d199b0283fbff/testsuite/util.lisp | lisp | Rashell (-org/cl-rashell)
All rights reserved.
This source file is licensed as described in the file LICENSE, which
you should have received as part of this distribution. The terms
are also available at
End of file `util.lisp' | util.lisp — Utilities
This file is part of Rashell .
Copyright © 2017–2022
This file must be used under the terms of the MIT License .
(in-package #:org.melusina.rashell/testsuite)
(define-testcase test-string-match ()
(assert-nil (rashell::string-match "" "supercalifragilisticexpialidocious"))
(asse... |
761434177c8898fd760c262530690d35f1c6172f75485ee02655c71dbe2fc683 | beamparticle/beamparticle | beamparticle_date_server.erl | %%%-------------------------------------------------------------------
@author neerajsharma
( C ) 2017 , < >
%%% @doc
%%%
%%% @end
%%% %CopyrightBegin%
%%%
Copyright < > 2017 .
All Rights Reserved .
%%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%%% you may not use this file ... | null | https://raw.githubusercontent.com/beamparticle/beamparticle/65dcea1569d06b331b08cd9f8018ece4b176b690/src/beamparticle_date_server.erl | erlang | -------------------------------------------------------------------
@doc
@end
%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 CONDITIO... | @author neerajsharma
( C ) 2017 , < >
Copyright < > 2017 .
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(beamparticle_date_server).
-behaviour(gen_server).
-include("beampartic... |
5c2c23b4f111dc35163d28f73258830251815fe7e231c5d84dfa561d164152d4 | clojure-interop/java-jdk | MultiTableUI.clj | (ns javax.swing.plaf.multi.MultiTableUI
"A multiplexing UI used to combine TableUIs.
This file was automatically generated by AutoMulti."
(:refer-clojure :only [require comment defn ->])
(:import [javax.swing.plaf.multi MultiTableUI]))
(defn ->multi-table-ui
"Constructor."
(^MultiTableUI []
(new Multi... | null | https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.swing/src/javax/swing/plaf/multi/MultiTableUI.clj | clojure | (ns javax.swing.plaf.multi.MultiTableUI
"A multiplexing UI used to combine TableUIs.
This file was automatically generated by AutoMulti."
(:refer-clojure :only [require comment defn ->])
(:import [javax.swing.plaf.multi MultiTableUI]))
(defn ->multi-table-ui
"Constructor."
(^MultiTableUI []
(new Multi... | |
9512f24f83b7e866e7d247f1172c78fbf15ae56c10f3e2e69dfebe5e8a5dfc06 | swarm-game/swarm | TestEval.hs | {-# LANGUAGE OverloadedStrings #-}
# LANGUAGE TypeApplications #
-- |
SPDX - License - Identifier : BSD-3 - Clause
--
-- Swarm unit tests
module TestEval where
import Control.Lens ((^.), _3)
import Data.Char (ord)
import Data.Text (Text)
import Data.Text qualified as T
import Swarm.Game.State
import Swarm.Language.... | null | https://raw.githubusercontent.com/swarm-game/swarm/affc8668b77b7e85d3d23c182a5159df36d17306/test/unit/TestEval.hs | haskell | # LANGUAGE OverloadedStrings #
|
Swarm unit tests
\s1.\s2. (s1,s2) == split (chars s1) (s1 ++ s2) | # LANGUAGE TypeApplications #
SPDX - License - Identifier : BSD-3 - Clause
module TestEval where
import Control.Lens ((^.), _3)
import Data.Char (ord)
import Data.Text (Text)
import Data.Text qualified as T
import Swarm.Game.State
import Swarm.Language.Value
import Test.Tasty
import Test.Tasty.HUnit
import Test.Tas... |
87c857218b55222c67344827d3fa4b67d54a9c5dc8695380ec2ac3d9d6126bec | dtreskunov/dhis2-wdc | project.clj | (defproject dhis2-wdc "0.1.0-SNAPSHOT"
:description "DHIS2 Tableau Web Data Connector"
:url "-wdc"
:license {:name "Eclipse Public License"
:url "-v10.html"}
:min-lein-version "2.7.1"
:dependencies [[org.clojure/clojure "1.9.0-alpha15"]
[org.clojure/clojurescript "1.9.5... | null | https://raw.githubusercontent.com/dtreskunov/dhis2-wdc/8b9d4714b91900e20bb270626a2bf73f568752f9/project.clj | clojure | the presence of a :figwheel configuration here
will cause figwheel to inject the figwheel client
into your build
:open-urls will pop open your application
started and complied your application.
Comment this out once it no longer serves you.
-devtools
This next build is an compressed minified build for
... | (defproject dhis2-wdc "0.1.0-SNAPSHOT"
:description "DHIS2 Tableau Web Data Connector"
:url "-wdc"
:license {:name "Eclipse Public License"
:url "-v10.html"}
:min-lein-version "2.7.1"
:dependencies [[org.clojure/clojure "1.9.0-alpha15"]
[org.clojure/clojurescript "1.9.5... |
4ec2e502900adb814cf6176801e4621cdd3e90ab0e5164ca94210a91a1bff768 | 2600hz/kazoo | kz_att_error_tests.erl | %%%-----------------------------------------------------------------------------
( C ) 2011 - 2020 , 2600Hz
%%% @doc
This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
%%%
%%% @end
%%%--------... | null | https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/core/kazoo_attachments/test/kz_att_error_tests.erl | erlang | -----------------------------------------------------------------------------
@doc
@end
-----------------------------------------------------------------------------
=======================================================================================
Generators
=================================================... | ( C ) 2011 - 2020 , 2600Hz
This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
-module(kz_att_error_tests).
-include_lib("eunit/include/eunit.hrl").
error_response_test_() ->
ErrorReason... |
c03612876247f96bf688a529188002c2bf9d2ed428bf403eb968d021200c1a87 | simmone/racket-simple-xlsx | write-and-read-sharedStrings-test.rkt | #lang racket
(require simple-xml)
(require rackunit/text-ui rackunit)
(require "../../../xlsx/xlsx.rkt")
(require "../../../lib/lib.rkt")
(require "../../../lib/sheet-lib.rkt")
(require"../../../xl/sharedStrings.rkt")
(require racket/runtime-path)
(define-runtime-path shared_strings_file "sharedStrings.xml")
(def... | null | https://raw.githubusercontent.com/simmone/racket-simple-xlsx/e0ac3190b6700b0ee1dd80ed91a8f4318533d012/simple-xlsx/tests/xl/sharedStrings/write-and-read-sharedStrings-test.rkt | racket | #lang racket
(require simple-xml)
(require rackunit/text-ui rackunit)
(require "../../../xlsx/xlsx.rkt")
(require "../../../lib/lib.rkt")
(require "../../../lib/sheet-lib.rkt")
(require"../../../xl/sharedStrings.rkt")
(require racket/runtime-path)
(define-runtime-path shared_strings_file "sharedStrings.xml")
(def... | |
ab3067c76a1f523eaa4971dbaf219eb2e3837304357165dd6a071d2592145205 | well-typed-lightbulbs/ocaml-esp32 | closure.ml | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/well-typed-lightbulbs/ocaml-esp32/c24fcbfbee0e3aa6bb71c9b467c60c6bac326cc7/middle_end/closure/closure.ml | ocaml | ************************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
open Misc
open Asttypes
open Primitive
open Lambda
open Switch
open Clambda
module P = Clambda_primitive... |
ae1d0aa2b05223728f67cea636edc69d7843c033389219e8f17b63916dc1b445 | xsc/ancient-clj | artifact.clj | (ns ancient-clj.artifact
(:require [version-clj.core :as v]))
# # Protocol
(defprotocol Artifact
"Protocol for dependency representations."
(read-artifact [this]
"Create a map of ':group', ':id', ':version' and ':version-string',
as well as `:symbol` and `:form`."))
;; ## Helpers
(defn- parse-name
... | null | https://raw.githubusercontent.com/xsc/ancient-clj/c34d96553c74ee1909a71e014e54a718933d1dd0/src/ancient_clj/artifact.clj | clojure | ## Helpers | (ns ancient-clj.artifact
(:require [version-clj.core :as v]))
# # Protocol
(defprotocol Artifact
"Protocol for dependency representations."
(read-artifact [this]
"Create a map of ':group', ':id', ':version' and ':version-string',
as well as `:symbol` and `:form`."))
(defn- parse-name
[s]
(let [... |
28a30a1d10da12df424a92fd3d04b7dd84c0befad513919565817b27d5d5131d | tanrax/important-stories-alert-for-hacker-news | project.clj | (defproject isahn "1.0.2"
:description "ISAHN check news stories for Hacker News"
:url ""
:micense {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
:url "-stories-alert-for-hacker-news"}
:dependencies [
Clojure
[org.clojure/clojure "1.10.0"]
Get config from .en... | null | https://raw.githubusercontent.com/tanrax/important-stories-alert-for-hacker-news/529fa33de5934f6a09bf797d4267622b31426305/project.clj | clojure | Client HTTP
Dev Tools
Watch changes
Check idiomatic bug
Check format
Generate documentation | (defproject isahn "1.0.2"
:description "ISAHN check news stories for Hacker News"
:url ""
:micense {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
:url "-stories-alert-for-hacker-news"}
:dependencies [
Clojure
[org.clojure/clojure "1.10.0"]
Get config from .en... |
2288546546dcd6b10045672d211cf9f05457615aa1b216f140cb5d4f40f82b9e | jacius/lispbuilder | pixel.lisp |
(in-package #:lispbuilder-sdl-base)
( defmacro with - pixel ( ( var & optional surface ) & body body )
( let ( ( fn - write - pixel ( " fn - write - pixel- " ) )
( fn - read - pixel ( " fn - read - pixel- " ) ) )
;; (if (or surface (atom var))
` ( let ( ( , @(if surface
;; `(,var ,surface)
;;... | null | https://raw.githubusercontent.com/jacius/lispbuilder/e693651b95f6818e3cab70f0074af9f9511584c3/lispbuilder-sdl/base/pixel.lisp | lisp | (if (or surface (atom var))
`(,var ,surface)
`(,var ,var))))
(with-locked-surface (,var)
(let ((,fn-write-pixel (generate-write-pixel ,var))
(,fn-read-pixel (generate-read-pixel ,var)))
(labels ((,(intern (string-upcase (format nil "~A.write-pixel" var))) (x y color)
... |
(in-package #:lispbuilder-sdl-base)
( defmacro with - pixel ( ( var & optional surface ) & body body )
( let ( ( fn - write - pixel ( " fn - write - pixel- " ) )
( fn - read - pixel ( " fn - read - pixel- " ) ) )
` ( let ( ( , @(if surface
( error " must be a symbol or variable , not a function . " ... |
1103b50b0243cd6d8d14b220a429739789b5f59a029a6ca98e77c1c61eb16414 | mfoemmel/erlang-otp | proc_lib.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 1996 - 2009 . All Rights Reserved .
%%
The contents of this file are subject to the Erlang Public License ,
Version 1.1 , ( the " License " ) ; you may not use this file except in
%% compliance with the License. You should have received a copy of the
%% Erlang Pub... | null | https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/stdlib/src/proc_lib.erl | erlang |
%CopyrightBegin%
compliance with the License. You should have received a copy of the
Erlang Public License along with this software. If not, it can be
retrieved online at /.
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
the License for the specific language governing rights and limita... | Copyright Ericsson AB 1996 - 2009 . All Rights Reserved .
The contents of this file are subject to the Erlang Public License ,
Version 1.1 , ( the " License " ) ; you may not use this file except in
Software distributed under the License is distributed on an " AS IS "
-module(proc_lib).
Then a process termin... |
4290d3df66398cb735e9ddd75526e472fed8d2ccaa350f0a8f5a9a5b42b91058 | teamwalnut/graphql-ppx | output_module.ml | open Graphql_compiler
open Result_structure
open Generator_utils
open Extract_type_definitions
open Output_utils
open Ppxlib
exception Cant_find_fragment_type_with_loc of Source_pos.ast_location * string
type operation_type = Graphql_ast.operation_type
type operation_options = { has_required_variables : bool }
type d... | null | https://raw.githubusercontent.com/teamwalnut/graphql-ppx/8276452ebe8d89a748b6b267afc94161650ab620/src/ppx/output_module.ml | ocaml | open Graphql_compiler
open Result_structure
open Generator_utils
open Extract_type_definitions
open Output_utils
open Ppxlib
exception Cant_find_fragment_type_with_loc of Source_pos.ast_location * string
type operation_type = Graphql_ast.operation_type
type operation_options = { has_required_variables : bool }
type d... | |
ca601a9acf73fdb911244c3dfb624298a9bb59b003e70c4c5d5ae1c55132a98a | mclumd/Meta-AQUA | establish.lisp | ;;;-*- Mode: Lisp; Package: NONLIN -*-
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;
Application : NONLIN
Appl . Version : 1.3
Appl . Date : Oct. 1992
;;;;
;;;; File: ESTABLISH.LISP
;;;; Contents: Functions for querying/est... | null | https://raw.githubusercontent.com/mclumd/Meta-AQUA/e4d4f83330fd07d1354aec245a49bde9e246c618/Nonlin/establish.lisp | lisp | -*- Mode: Lisp; Package: NONLIN -*-
File: ESTABLISH.LISP
Contents: Functions for querying/establishing conditions.
email:
History:
Date Who Modification
---------------------------------------------------------------------------------
09/11/92... | Application : NONLIN
Appl . Version : 1.3
Appl . Date : Oct. 1992
Dept . of Computer Science , University of Maryland at College Park
Language : Macintosh Common Lisp 2.0
Requirements : package NONLIN
(in-package :nonlin)
(defun try-to-establish (c... |
574ad4eaed8daf45a97f906a237c8b234bd38a0b7c3170e39bbf1febb6506c11 | kelamg/HtDP2e-workthrough | ex404.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-intermediate-lambda-reader.ss" "lang")((modname ex404) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-... | null | https://raw.githubusercontent.com/kelamg/HtDP2e-workthrough/ec05818d8b667a3c119bea8d1d22e31e72e0a958/HtDP/Intertwined-Data/ex404.rkt | racket | about the language level of this file in a form that our tools can easily process.
[X Y -> Boolean] [List-of X] [List-of Y] -> Boolean
produces #true if f returns true for all corresponding values of both lists | The first three lines of this file were inserted by . They record metadata
#reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex404) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f)))
(check-expect (andmap2 = '(1 3 5) '(2 3 5)) #false)
(c... |
5fd347112c4d8e39ac03ac2115d0db2c9ac170540bc76195573ac57c41732c2f | dparis/phzr | core.cljs | (ns phzr.impl.utils.core
(:require [camel-snake-kebab.core :as csk]))
(def name->kebab-keyword
(memoize
(fn [s]
(csk/->kebab-case-keyword s))))
(defn ^:private js->clj*
[x]
(let [keyfn name->kebab-keyword
f (fn thisfn [x]
(cond
(satisfies? IEncodeClojure ... | null | https://raw.githubusercontent.com/dparis/phzr/5a798f280a36db137d4e4576d6f324bfd3212112/src/phzr/impl/utils/core.cljs | clojure | (ns phzr.impl.utils.core
(:require [camel-snake-kebab.core :as csk]))
(def name->kebab-keyword
(memoize
(fn [s]
(csk/->kebab-case-keyword s))))
(defn ^:private js->clj*
[x]
(let [keyfn name->kebab-keyword
f (fn thisfn [x]
(cond
(satisfies? IEncodeClojure ... | |
642ac9786491921fcee78197d08f3f8589394461a0b6281f84b7a9b74dd8ecdb | McParen/croatoan | queue.lisp | (in-package :de.anvi.croatoan)
;;; thread-safe queue
;; support for cross-thread evaluation
;; authors: d4ryus <>,
< >
(defclass queue ()
((head
:documentation "Pointer to the first cons of the elements list.")
(tail
:documentation "Pointer to the last cons of the elements list.")
(lock... | null | https://raw.githubusercontent.com/McParen/croatoan/46a5aba653389d15ae16dc0a581fd67a33378b62/src/queue.lisp | lisp | thread-safe queue
support for cross-thread evaluation
authors: d4ryus <>,
the failed form is included for debugging.
We want to be able to see what form failed, for this we
need to wrap the signaled condition in a job-error
which contains the failed form and the signaled condition.
Simple, non-thread-safe queue | (in-package :de.anvi.croatoan)
< >
(defclass queue ()
((head
:documentation "Pointer to the first cons of the elements list.")
(tail
:documentation "Pointer to the last cons of the elements list.")
(lock
:documentation "A mutex that ensures thread-safe access to the queue from multi... |
eb2a3d7f6d782aaa90604b3fc90cfda2806443c9ba9df76bbee3ab71ab398778 | soegaard/metapict | domain.rkt | #lang racket/base
(require racket/contract racket/format racket/match
racket/math racket/string racket/list
"axis.rkt" "def.rkt" "device.rkt" "curve.rkt" "draw.rkt" "path.rkt"
"pict.rkt" "pt-vec.rkt" "structs.rkt" "parameters.rkt" "window.rkt")
;;;
;;; Domains (subsets of R)
;;;
; A domain... | null | https://raw.githubusercontent.com/soegaard/metapict/c929542ff4d5187248e37cb4ee4b5e3994d5c07a/metapict/domain.rkt | racket |
Domains (subsets of R)
A domain interval represents an interval, a subset of the real number line
i) a<x<b open-open
A domain consists of a list of intervals.
The invariant is:
I) the intervals doesn't overlap
DOMAIN INTERVALS
constructors
DOMAINS
values
constructors
operators
(define (inser... | #lang racket/base
(require racket/contract racket/format racket/match
racket/math racket/string racket/list
"axis.rkt" "def.rkt" "device.rkt" "curve.rkt" "draw.rkt" "path.rkt"
"pict.rkt" "pt-vec.rkt" "structs.rkt" "parameters.rkt" "window.rkt")
of one of the following forms :
ii ) ... |
3b0b2576dbe27b085628304b2aece45f9dcd58d70147ed362c9c246c8758384a | tfausak/patrol | Breadcrumb.hs | module Patrol.Type.Breadcrumb where
import qualified Data.Aeson as Aeson
import qualified Data.Map as Map
import qualified Data.Text as Text
import qualified Data.Time as Time
import qualified Patrol.Extra.Aeson as Aeson
import qualified Patrol.Type.BreadcrumbType as BreadcrumbType
import qualified Patrol.Type.EventId... | null | https://raw.githubusercontent.com/tfausak/patrol/1cae55b3840b328cda7de85ea424333fcab434cb/source/library/Patrol/Type/Breadcrumb.hs | haskell | | <-payloads/types/#breadcrumb> | module Patrol.Type.Breadcrumb where
import qualified Data.Aeson as Aeson
import qualified Data.Map as Map
import qualified Data.Text as Text
import qualified Data.Time as Time
import qualified Patrol.Extra.Aeson as Aeson
import qualified Patrol.Type.BreadcrumbType as BreadcrumbType
import qualified Patrol.Type.EventId... |
2cbfcc2ec735ad9c875737d39ad5f3a5a7f9c6bf495f18e704cc1d9e0741d00d | earl-ducaine/cl-garnet | value-control.lisp | -*- Mode : LISP ; Syntax : Common - Lisp ; Package : GILT ; Base : 10 -*-
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
The Garnet User Interface Development Environment . ; ; ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; This code was written ... | null | https://raw.githubusercontent.com/earl-ducaine/cl-garnet/f0095848513ba69c370ed1dc51ee01f0bb4dd108/src/gilt/value-control.lisp | lisp | Syntax : Common - Lisp ; Package : GILT ; Base : 10 -*-
; ;
This code was written as part of the Garnet project at ;;;
; ;
; ;
please contact to be put on the mailing list. ;;;
gadgets can be defined by a user-supplied expression. The Enable Control
module allows the user to define expressions tha... |
The " Value Filter " extension to Gilt is a tool for assigning dependencies
among objects . With the Value Control module , the values returned by
Designed by
Implemented by
CHANGE LOG :
08/03/93 --- > : control - j
06/30/93 : lisp - mode - p to EDITABLE - TEXT
03/08/93 - invok... |
b1cad69c9e09a4240913d539f43456f2bb8a18e2971e0519a7b883d002a718eb | fission-codes/fission | Error.hs | module Network.IPFS.Stat.Error (OverflowDetected (..)) where
import Network.IPFS.Prelude
data OverflowDetected = OverflowDetected
deriving (Eq, Show)
instance Display OverflowDetected where
display OverflowDetected = "OverflowDetected"
instance ToJSON OverflowDetected where
toJSON OverflowDetected =... | null | https://raw.githubusercontent.com/fission-codes/fission/fb76d255f06ea73187c9b787bd207c3778e1b559/ipfs/library/Network/IPFS/Stat/Error.hs | haskell | module Network.IPFS.Stat.Error (OverflowDetected (..)) where
import Network.IPFS.Prelude
data OverflowDetected = OverflowDetected
deriving (Eq, Show)
instance Display OverflowDetected where
display OverflowDetected = "OverflowDetected"
instance ToJSON OverflowDetected where
toJSON OverflowDetected =... | |
b606c26b64fcd5029b47bd2174d7730708874d7ae62d622391d002804dd9a0ac | Idorobots/spartan | const.rkt | #lang racket
;; Constant annotation tests.
(require "../testing.rkt")
(require "../../src/compiler/ast.rkt")
(require "../../src/compiler/passes/const.rkt")
(define (gen-non-const-node rand)
(sample (gen-one-of gen-valid-symbol-node
(gen-app-node gen-valid-symbol-node gen-valid-symbol-node ge... | null | https://raw.githubusercontent.com/Idorobots/spartan/ef3b032906655585d284f1c9a33a58f1e35cb180/test/compiler/const.rkt | racket | Constant annotation tests. | #lang racket
(require "../testing.rkt")
(require "../../src/compiler/ast.rkt")
(require "../../src/compiler/passes/const.rkt")
(define (gen-non-const-node rand)
(sample (gen-one-of gen-valid-symbol-node
(gen-app-node gen-valid-symbol-node gen-valid-symbol-node gen-valid-symbol-node)
... |
067b47a99b80438ccdc163f8cac2126069b63382b41518755f86ca8bb9b1ccd8 | racket/drracket | label-frame-mred.rkt | #lang racket/base
(require racket/gui/base
racket/class)
(provide (except-out (all-from-out racket/gui/base) frame%)
(rename-out [registering-frame% frame%])
lookup-frame-name)
(define (lookup-frame-name frame)
(semaphore-wait label-sema)
(begin0
(hash-ref label-h... | null | https://raw.githubusercontent.com/racket/drracket/2d7c2cded99e630a69f05fb135d1bf7543096a23/drracket/drracket/private/label-frame-mred.rkt | racket | #lang racket/base
(require racket/gui/base
racket/class)
(provide (except-out (all-from-out racket/gui/base) frame%)
(rename-out [registering-frame% frame%])
lookup-frame-name)
(define (lookup-frame-name frame)
(semaphore-wait label-sema)
(begin0
(hash-ref label-h... | |
9f227828792db09d88d82c3b2041ca5641361e2149cf8852f67f4d8d74f967b5 | fluree/db | shacl_basic_test.clj | (ns fluree.db.shacl.shacl-basic-test
(:require [clojure.test :refer :all]
[fluree.db.test-utils :as test-utils]
[fluree.db.json-ld.api :as fluree]
[fluree.db.util.log :as log]
[fluree.db.util.core :as util]
[clojure.string :as str]))
(deftest ^:integration ... | null | https://raw.githubusercontent.com/fluree/db/d60aaed09abae40794716c6cfaa8ffe5fba59535/test/fluree/db/shacl/shacl_basic_test.clj | clojure | no :schema/name
no :schema/name
no :schema/name | (ns fluree.db.shacl.shacl-basic-test
(:require [clojure.test :refer :all]
[fluree.db.test-utils :as test-utils]
[fluree.db.json-ld.api :as fluree]
[fluree.db.util.log :as log]
[fluree.db.util.core :as util]
[clojure.string :as str]))
(deftest ^:integration ... |
bf3d72e7d901d5348fe882be31e11e832a0311b5806942b30b20a269a9f21e6f | PaulBatchelor/codex | fmdrone.scm | (define (fmdrone freq bright)
(fmpair (freq)
(param 1)
(param 1.01)
(bright)
(biscale (sine 0.15 1) 0.9 0.94)
(lambda () (gen_sine (ftnew 4096))))
(mul zz 0.4))
| null | https://raw.githubusercontent.com/PaulBatchelor/codex/e6f6c9613c90b319f07863197498681d723debc2/frags/fmdrone.scm | scheme | (define (fmdrone freq bright)
(fmpair (freq)
(param 1)
(param 1.01)
(bright)
(biscale (sine 0.15 1) 0.9 0.94)
(lambda () (gen_sine (ftnew 4096))))
(mul zz 0.4))
| |
889adad183ac1d49d95605a9621f0f10c7350e281a7a85032df905cb0744d619 | peterschwarz/clj-firmata | spi.cljc | (ns firmata.stream.spi)
(defprotocol ByteReader
"Enables reading on byte at a time."
(read! [this] "reads a byte, and removes it from the stream"))
(defprotocol FirmataStream
"A FirmataStream provides methods for creating connections, writing
values to and listening for events on a Firmata-enabled device."... | null | https://raw.githubusercontent.com/peterschwarz/clj-firmata/cd263fe4a1b6ffb4b0e817aac019e70fe84df629/src/cljc/firmata/stream/spi.cljc | clojure | (ns firmata.stream.spi)
(defprotocol ByteReader
"Enables reading on byte at a time."
(read! [this] "reads a byte, and removes it from the stream"))
(defprotocol FirmataStream
"A FirmataStream provides methods for creating connections, writing
values to and listening for events on a Firmata-enabled device."... | |
951a735a6c1f9347cecb7e4f0ce1975fc95e36319d67771a51d219a7a3ea1d50 | open-company/open-company-storage | email.clj | (ns oc.storage.async.email
"Publish email triggers to AWS SQS."
(:require [amazonica.aws.sqs :as sqs]
[taoensso.timbre :as timbre]
[schema.core :as schema]
[oc.lib.schema :as lib-schema]
[oc.lib.html :as html-lib]
[oc.storage.config :as config]))
(def Ema... | null | https://raw.githubusercontent.com/open-company/open-company-storage/ae4bbe6245f8736f3c1813c3048448035aff5815/src/oc/storage/async/email.clj | clojure | (ns oc.storage.async.email
"Publish email triggers to AWS SQS."
(:require [amazonica.aws.sqs :as sqs]
[taoensso.timbre :as timbre]
[schema.core :as schema]
[oc.lib.schema :as lib-schema]
[oc.lib.html :as html-lib]
[oc.storage.config :as config]))
(def Ema... | |
12d2fba305116ebedd266686f613d3571925176cecd6a14e37400aec5a6da970 | Eonblast/Trinity | hello_SUITE.erl | %%%-------------------------------------------------------------------
%%% File : erlang-arcana/b_hellotest2/test/hello_SUITE.erl
Descr : Most simple , crashong test suite to demonstrate Common Test
Author :
Source : Erlang docs ' small suite sample '
www.erlang.org/doc/apps/common_test/ex... | null | https://raw.githubusercontent.com/Eonblast/Trinity/15bcc0fa0997d7dd360f1542493e63208645bd88/a2_hellotest/test/hello_SUITE.erl | erlang | -------------------------------------------------------------------
File : erlang-arcana/b_hellotest2/test/hello_SUITE.erl
Adapted : 06/13/2011 hd
Enhanced: 12/12/2011 hd
Require : ct_run (sometimes not in path as it seems)
-------------------------------------------------------------------
Run: erlang-arcana/... | Descr : Most simple , crashong test suite to demonstrate Common Test
Author :
Source : Erlang docs ' small suite sample '
www.erlang.org/doc/apps/common_test/example_chapter.html
Or : ct_run -dir test ( from erlang - arcana / b_hellotest2 )
-module(hello_SUITE).
-compile(export_all).
-incl... |
d9bf28544f0000535c6da517e10768f34ca5345d697c1b239d54665757d4ee5a | babashka/sci | records.cljc | (ns sci.impl.records
{:no-doc true}
(:refer-clojure :exclude [defrecord record?])
(:require [clojure.string :as str]
[sci.impl.protocols :as protocols]
[sci.impl.types :as types]
[sci.impl.utils :as utils]
[sci.impl.vars :as vars]
[sci.lang]))
#?(:clj (... | null | https://raw.githubusercontent.com/babashka/sci/edefeda9e6038ab8eb918377dd09ec96f9c73219/src/sci/impl/records.cljc | clojure | marker interface
See #L1804
marker interface
see -archive.com//msg99560.html
_ (prn :protocol protocol)
TODO: not all externally defined protocols might have the :var already
TODO: we should probably use munging here for namespaces with hyphens in them. | (ns sci.impl.records
{:no-doc true}
(:refer-clojure :exclude [defrecord record?])
(:require [clojure.string :as str]
[sci.impl.protocols :as protocols]
[sci.impl.types :as types]
[sci.impl.utils :as utils]
[sci.impl.vars :as vars]
[sci.lang]))
#?(:clj (... |
954f3c0fa4aebcb44e3bb5bfe769ca226c9095753047d14426a4cefeb91d593b | ocaml-flambda/ocaml-jst | reloadgen.mli | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/ocaml-flambda/ocaml-jst/e0129921e4260713d5bb8a748c8b78ac485134e4/asmcomp/reloadgen.mli | ocaml | ************************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1997 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
class reload_generic : object
method reload_operation :
Mach.operation -> Reg.t array -> Reg.t arra... |
fc96a8737f213698420d9da8ad31ca7ec6f1c0f89008acccf50a862c793bf11d | freedict/tools | Unit.hs |
- Language / Ding / Partial / Unit.hs - partial units
-
- Copyright 2020
-
- This file is part of ding2tei - haskell .
-
- ding2tei - haskell is free software : you can redistribute it and/or modify
- it under the terms of the GNU Affero General Public License as published
- by the Free Sof... | null | https://raw.githubusercontent.com/freedict/tools/b730e5cb85a21a607d5d6ea7b9e0480018de47b4/importers/ding2tei/src/Language/Ding/Partial/Unit.hs | haskell | |
- Intermediate representation and handling of partially parsed units.
* It can be "modified" by appending annotations and regular unit text.
* See below on "Modification".
* "Modification": Inefficiency
essentially be a list of a sum type of all potential elements. This
list would then lat... |
- Language / Ding / Partial / Unit.hs - partial units
-
- Copyright 2020
-
- This file is part of ding2tei - haskell .
-
- ding2tei - haskell is free software : you can redistribute it and/or modify
- it under the terms of the GNU Affero General Public License as published
- by the Free Sof... |
feb94430166d0b923435b0201aa20d904eb0a3ad3163d7b639f6aff071713955 | cedlemo/OCaml-GI-ctypes-bindings-generator | Css_section.mli | open Ctypes
type t
val t_typ : t structure typ
val get_end_line :
t structure ptr -> Unsigned.uint32
val get_end_position :
t structure ptr -> Unsigned.uint32
(*Not implemented gtk_css_section_get_file return type interface not handled*)
val get_parent :
t structure ptr -> t structure ptr option
val get_section... | null | https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Css_section.mli | ocaml | Not implemented gtk_css_section_get_file return type interface not handled | open Ctypes
type t
val t_typ : t structure typ
val get_end_line :
t structure ptr -> Unsigned.uint32
val get_end_position :
t structure ptr -> Unsigned.uint32
val get_parent :
t structure ptr -> t structure ptr option
val get_section_type :
t structure ptr -> Css_section_type.t
val get_start_line :
t struct... |
30b41eb60b1b75b4aaa3511c4138890d20d769f23f6ca4caefe4f42e3fb709fe | polymeris/re-frame-realword-example-app | runner.cljs | (ns conduit.runner
(:require [cljs.test :refer-macros [use-fixtures]]
[doo.runner :refer-macros [doo-tests]]
[conduit.integration-test]
[conduit.authenticated-integration-test]))
(doo-tests 'conduit.integration-test
'conduit.authenticated-integration-test)
TODO delet... | null | https://raw.githubusercontent.com/polymeris/re-frame-realword-example-app/f57f3f62551bf9a13be1c5561ec3acc6eea1ca46/test/cljs/conduit/runner.cljs | clojure | (ns conduit.runner
(:require [cljs.test :refer-macros [use-fixtures]]
[doo.runner :refer-macros [doo-tests]]
[conduit.integration-test]
[conduit.authenticated-integration-test]))
(doo-tests 'conduit.integration-test
'conduit.authenticated-integration-test)
TODO delet... | |
b72ac9751d0a901a6f68146dc9b898492c031a363e8e4772bb442b5303b9dadb | nuvla/api-server | cloud_entry_point_lifecycle_test.clj | (ns sixsq.nuvla.server.resources.cloud-entry-point-lifecycle-test
(:require
[clojure.data.json :as json]
[clojure.test :refer [deftest testing use-fixtures]]
[peridot.core :refer [content-type header request session]]
[qbits.spandex :as spandex]
[sixsq.nuvla.server.app.params :as p]
[sixsq.nuv... | null | https://raw.githubusercontent.com/nuvla/api-server/595f7dab27c165b9377dd9849f524c09ddc9d84b/code/test/sixsq/nuvla/server/resources/cloud_entry_point_lifecycle_test.clj | clojure | cloud-entry-point will have been initialized in the test server fixture.
retrieve root resource (anonymously should work) and verify schema
retrieve root resource (root should have edit rights)
updating root resource as user should fail
update the entry, verify updated doc is returned
must be done as administrato... | (ns sixsq.nuvla.server.resources.cloud-entry-point-lifecycle-test
(:require
[clojure.data.json :as json]
[clojure.test :refer [deftest testing use-fixtures]]
[peridot.core :refer [content-type header request session]]
[qbits.spandex :as spandex]
[sixsq.nuvla.server.app.params :as p]
[sixsq.nuv... |
5c6df80b8c9e087922c2b7d1b629b57c4fd68170592f9814ff37493171ba5418 | plumatic/grab-bag | project.clj | (defproject gumby "0.0.1-SNAPSHOT"
:description "A better Elasticsearch client"
:internal-dependencies [plumbing store]
:external-dependencies [org.elasticsearch/elasticsearch
org.elasticsearch/elasticsearch-cloud-aws
org.clojure/core.async]
:jvm-opts ["-serve... | null | https://raw.githubusercontent.com/plumatic/grab-bag/a15e943322fbbf6f00790ce5614ba6f90de1a9b5/lib/gumby/project.clj | clojure | (defproject gumby "0.0.1-SNAPSHOT"
:description "A better Elasticsearch client"
:internal-dependencies [plumbing store]
:external-dependencies [org.elasticsearch/elasticsearch
org.elasticsearch/elasticsearch-cloud-aws
org.clojure/core.async]
:jvm-opts ["-serve... | |
47618e4421eba50e4f6018d7274a37f2aa822d7183fc48ac51cddb49951cd33c | basho/riak_test | rt_intercept.erl | %% -------------------------------------------------------------------
%%
Copyright ( c ) 2013 - 2014 Basho Technologies , Inc.
%%
This file is provided to you under the Apache License ,
%% Version 2.0 (the "License"); you may not use this file
except in compliance with the License . You may obtain
%% a copy of... | null | https://raw.githubusercontent.com/basho/riak_test/8170137b283061ba94bc85bf42575021e26c929d/src/rt_intercept.erl | erlang | -------------------------------------------------------------------
Version 2.0 (the "License"); you may not use this file
a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing,
KIND, either express or implied. See the License for the
specific language governing permissio... | Copyright ( c ) 2013 - 2014 Basho Technologies , Inc.
This file is provided to you under the Apache License ,
except in compliance with the License . You may obtain
software distributed under the License is distributed on an
" AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY
-module(rt_intercept).
-c... |
f1a26251fe99ba02bb673578dd81ca1e90cf65e3f23767cf3e9536149d24ea42 | vraid/earthgen | types.rkt | #lang typed/racket
(provide (all-defined-out))
(require (for-syntax racket/syntax
racket/list))
(define-syntax (define-contained-type stx)
(syntax-case stx ()
[(_ id type)
(with-syntax ([type-list (format-id stx "~a-list" #'id)]
[type-set (format-id stx "~a-set" #'i... | null | https://raw.githubusercontent.com/vraid/earthgen/208ac834c02208ddc16a31aa9e7ff7f91c18e046/package/vraid/types.rkt | racket | #lang typed/racket
(provide (all-defined-out))
(require (for-syntax racket/syntax
racket/list))
(define-syntax (define-contained-type stx)
(syntax-case stx ()
[(_ id type)
(with-syntax ([type-list (format-id stx "~a-list" #'id)]
[type-set (format-id stx "~a-set" #'i... | |
69cec1a95e86de4b35f6415ce8227b7bbd7aa25224aa716f26a52d238b0cf8e5 | ekmett/hyperfunctions | Cantor.hs | {-# LANGUAGE RankNTypes #-}
-- | <-gem-double-exponentials/ Constructive gem: double exponentials>
module Cantor
( _Natural
) where
import Control.Monad.Hyper
import Data.Profunctor
import Numeric.Natural
type Cantor = Natural -> Bool
type Functional = Cantor -> Bool
-- | <-impossible-functional-programs/ Seem... | null | https://raw.githubusercontent.com/ekmett/hyperfunctions/d1f0d38e0e40973fab2f00548bc388374c75cd8c/examples/Cantor.hs | haskell | # LANGUAGE RankNTypes #
| <-gem-double-exponentials/ Constructive gem: double exponentials>
| <-impossible-functional-programs/ Seemingly impossible functional programs> |
module Cantor
( _Natural
) where
import Control.Monad.Hyper
import Data.Profunctor
import Numeric.Natural
type Cantor = Natural -> Bool
type Functional = Cantor -> Bool
find :: Functional -> Cantor
find p = branch x0 l0 (find (\r -> p (branch x0 l0 r))) where
x0 = forsome (\l -> forsome (\r -> p (branch True... |
bfee541a15fc51240912e21dd3b3666a847c303d2f924bbbca918890db8825dc | otakar-smrz/elixir-fm | E.hs |
module Elixir.Data.Moony.Complex.E (section) where
import Elixir.Lexicon
lexicon = include section
cluster_1 = cluster
|> ['\'','a','n','t','I','m','U','n'] <| [
_____ `noun` {- <'antImUn> -} [ ['a','n','t','i','m','o','n','y'] ] ]
cluster_2 = cluster
|> ['\'','a','n','... | null | https://raw.githubusercontent.com/otakar-smrz/elixir-fm/fae5bab6dd53c15d25c1e147e7787b2c254aabf0/Haskell/ElixirFM/Elixir/Data/Moony/Complex/E.hs | haskell | <'antImUn>
<'an_trUbUlU^gIy>
<'an^gu_dAn>
<'an^gUlA>
<'an^gUlIy>
<'an^gilUsaksUn>
<'an^gilUsaksUnIy>
<'an^glaz>
<'an^glazaT>
<'in^glIzIy>
<'in^glIzIy>
<'in^glIzIyaT>
<'an^glIkAnIy>
<'andUrrA>
<'andUrrIy>
<'andalus>
<'indUnIsiyA>
<'indUnIsIy>
<'indUnIsIy>
<'anzIm>
<'in^s>
<'an^... |
module Elixir.Data.Moony.Complex.E (section) where
import Elixir.Lexicon
lexicon = include section
cluster_1 = cluster
|> ['\'','a','n','t','I','m','U','n'] <| [
cluster_2 = cluster
|> ['\'','a','n','_','t','r','U','b','U','l','U','^','g'] <| [
< ' >
cluster_3 = cluster
|> ['\'','a','n','^',... |
488ea2336c8f781b745043b36575778c48d14be514b9e704a4f9a4bb7969426f | MaskRay/OJHaskell | 78.hs | import Data.Array
partitions = listArray (0,60000) $ 1 :
[sum [s*partitions ! p | (s, p) <- zip (cycle [1,1,(-1),(-1)]) $ parts n] |
n <- [1..]]
where pentagonal n = n*(3*n-1) `div` 2
parts n = takeWhile (>=0) [n-pentagonal x | x <- concat [[n,(-n)] | n <- [1..]]]
ma... | null | https://raw.githubusercontent.com/MaskRay/OJHaskell/ba24050b2480619f10daa7d37fca558182ba006c/Project%20Euler/78.hs | haskell | import Data.Array
partitions = listArray (0,60000) $ 1 :
[sum [s*partitions ! p | (s, p) <- zip (cycle [1,1,(-1),(-1)]) $ parts n] |
n <- [1..]]
where pentagonal n = n*(3*n-1) `div` 2
parts n = takeWhile (>=0) [n-pentagonal x | x <- concat [[n,(-n)] | n <- [1..]]]
ma... | |
972403d5f532b668abb2d06998e7ae9cef95f08706e7e0acdd3076acecf3b405 | ocaml-community/cppo | cppo_main.ml | open Printf
let add_extension tbl s =
let i =
try String.index s ':'
with Not_found ->
failwith "Invalid -x argument"
in
let id = String.sub s 0 i in
let raw_tpl = String.sub s (i+1) (String.length s - i - 1) in
let cmd_tpl = Cppo_command.parse raw_tpl in
if Hashtbl.mem tbl id then
failwi... | null | https://raw.githubusercontent.com/ocaml-community/cppo/94b2d0f21fcda5473773518a12afbcff45a52990/src/cppo_main.ml | ocaml | open Printf
let add_extension tbl s =
let i =
try String.index s ':'
with Not_found ->
failwith "Invalid -x argument"
in
let id = String.sub s 0 i in
let raw_tpl = String.sub s (i+1) (String.length s - i - 1) in
let cmd_tpl = Cppo_command.parse raw_tpl in
if Hashtbl.mem tbl id then
failwi... | |
f136fbb875a478d061331a8232bf708a0b49999c81c790893af16c5b870302de | fission-codes/fission | Types.hs | -- | User payment plans
module Fission.Plan.Types (Tier (..)) where
import RIO.Text as Text
import Data.Aeson.Casing
import Data.Swagger as Swagger
import Fission.Prelude
data Tier
= Test
| Free
-- | Basic
-- | Pro
deriving ( Eq
, Show
... | null | https://raw.githubusercontent.com/fission-codes/fission/11d14b729ccebfd69499a534445fb072ac3433a3/fission-core/library/Fission/Plan/Types.hs | haskell | | User payment plans
| Basic
| Pro | module Fission.Plan.Types (Tier (..)) where
import RIO.Text as Text
import Data.Aeson.Casing
import Data.Swagger as Swagger
import Fission.Prelude
data Tier
= Test
| Free
deriving ( Eq
, Show
, Generic
)
instance Arbitrary... |
75eee7f7c8cc6293af01688b8b92a70995084ec53005c6a593600d24da5b2842 | RichiH/git-annex | TransferSlots.hs | git - annex assistant transfer slots
-
- Copyright 2012 < >
-
- Licensed under the GNU GPL version 3 or higher .
-
- Copyright 2012 Joey Hess <>
-
- Licensed under the GNU GPL version 3 or higher.
-}
# LANGUAGE CPP #
module Assistant.TransferSlots where
import Assistant.Common
import Utility... | null | https://raw.githubusercontent.com/RichiH/git-annex/bbcad2b0af8cd9264d0cb86e6ca126ae626171f3/Assistant/TransferSlots.hs | haskell | Waits until a transfer slot becomes available, then runs a
- TransferGenerator, and then runs the transfer action in its own thread.
Runs a transfer action, in an already allocated transfer slot.
- Once it finishes, frees the transfer slot.
-
- Note that the action is subject to being killed when the transfer
... | git - annex assistant transfer slots
-
- Copyright 2012 < >
-
- Licensed under the GNU GPL version 3 or higher .
-
- Copyright 2012 Joey Hess <>
-
- Licensed under the GNU GPL version 3 or higher.
-}
# LANGUAGE CPP #
module Assistant.TransferSlots where
import Assistant.Common
import Utility... |
dc636748d322caed5ad3200345023d2f4ee874f3718df620bc963e4f4f1845d7 | facebook/pyre-check | accessPath.mli |
* Copyright ( c ) Meta Platforms , Inc. and affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in t... | null | https://raw.githubusercontent.com/facebook/pyre-check/4b99185a55bdf05f3ad67ad41a15622af4d9797f/source/interprocedural_analyses/taint/accessPath.mli | ocaml | * Roots representing parameters, locals, and special return value in models.
Special root representing the return value location.
Will preserve the order in which the arguments were matched to formals. |
* Copyright ( c ) Meta Platforms , Inc. and affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in t... |
db9a984154248f9f99261dc966bf0acf31583f7f49dc71c19c401a075c0c9da1 | SonyCSLParis/fcg-server | web-monitors.lisp | 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 under the License is distributed on an... | null | https://raw.githubusercontent.com/SonyCSLParis/fcg-server/99962c6f10e9e415a729f256f43767373a8dc9fe/Archive/v1.0/web-monitors.lisp | lisp |
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 permis... |
distributed under the License is distributed on an " AS IS " BASIS ,
(in-package :fcg)
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.