_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
bb82072a831d341931bd824f1abaaebedcfa50e5a38d73c933e164078caeebcd
processone/xmpp
push_summary.erl
Created automatically by xdata generator ( xdata_codec.erl ) %% Source: push_summary.xdata %% Form type: urn:xmpp:push:summary Document : XEP-0357 -module(push_summary). -compile({nowarn_unused_function, [{dec_int, 3}, {dec_int, 1}, {dec_enum, 2}, {dec_enum_int, 2}, ...
null
https://raw.githubusercontent.com/processone/xmpp/6705a6e5dbe8c8dc9cc70cba9c442c6da61de716/src/push_summary.erl
erlang
Source: push_summary.xdata Form type: urn:xmpp:push:summary
Created automatically by xdata generator ( xdata_codec.erl ) Document : XEP-0357 -module(push_summary). -compile({nowarn_unused_function, [{dec_int, 3}, {dec_int, 1}, {dec_enum, 2}, {dec_enum_int, 2}, {dec_enum_int, 4}, {enc_int, 1}, {enc...
408e4c081c638ef419550e55a11d5828d0758a39c5edc78d855883a32004bb83
kremers/cblog
core.clj
(ns cblog.test.core (:use [cblog.core]) (:use [clojure.test])) ; Yes I know, no tests here at the moment ;(deftest replace-me ; (is false "No tests have been written."))
null
https://raw.githubusercontent.com/kremers/cblog/54fd5325f3f620f582616cbee04de5623b6f48d8/test/cblog/test/core.clj
clojure
Yes I know, no tests here at the moment (deftest replace-me (is false "No tests have been written."))
(ns cblog.test.core (:use [cblog.core]) (:use [clojure.test]))
7c6768b7a9143adbc539504558351409482bbc1620c4952feca8f4f0d67354ff
ezhulenev/distributo
allocator.clj
(ns distributo.allocator (:import (com.amazonaws.services.ec2 AmazonEC2Client)) (:require [com.rpl.specter :refer :all] [clojure.core.async :as async] [distributo.ec2 :as ec2] [clojure.set :as set] [clojure.tools.logging :as log] [clj-time.core :as t] ...
null
https://raw.githubusercontent.com/ezhulenev/distributo/c2a239694fb43482049b7e1bbc4cf505a450b590/src/distributo/allocator.clj
clojure
TODO: actually of the same instance type as in new bid request Perfect Under-allocated Over-allocated Cancel all open spot requests that are not already cancelled Make sure that all fulfilled requests has it's instances terminated
(ns distributo.allocator (:import (com.amazonaws.services.ec2 AmazonEC2Client)) (:require [com.rpl.specter :refer :all] [clojure.core.async :as async] [distributo.ec2 :as ec2] [clojure.set :as set] [clojure.tools.logging :as log] [clj-time.core :as t] ...
165d1552b7180ce9fa10885e3ad4ccc39a4e39f15c41ca6cabcff23e4f4a2280
dfithian/hit
Types.hs
module Types where import Prelude import Data.Aeson ((.:), FromJSON, parseJSON, withObject) import Data.Map (Map) import Data.Text (Text) import qualified Data.HashMap.Strict as HashMap import qualified Data.Map.Strict as Map data Config = Config { configProjects :: Map Text ConfigProject -- ^ The list of projec...
null
https://raw.githubusercontent.com/dfithian/hit/9f8653a2e773c6304462c53bc99ef23991319e19/src/Types.hs
haskell
^ The list of projects. ^ The home dir for this project, absolute path required. ^ The subdirs for this project.
module Types where import Prelude import Data.Aeson ((.:), FromJSON, parseJSON, withObject) import Data.Map (Map) import Data.Text (Text) import qualified Data.HashMap.Strict as HashMap import qualified Data.Map.Strict as Map data Config = Config { configProjects :: Map Text ConfigProject } deriving (Eq, Show) ...
0d308ad303ea2bcd55ad1f5ef25ed32b11b86d9472608765be24ea789e841f16
bmourad01/ocamlchess
search.mli
(** This module implements the data structures and algorithms used for game tree search. *) (** The search limits. *) module Limits : sig * The search limits , according to the UCI protocol . type t (** Returns [true] if the search is infinite. *) val infinite : t -> bool (** The limit on the number of p...
null
https://raw.githubusercontent.com/bmourad01/ocamlchess/0496db8ad7dddd5a048fb4868aacff221a706238/chess/src/search.mli
ocaml
* This module implements the data structures and algorithms used for game tree search. * The search limits. * Returns [true] if the search is infinite. * The limit on the number of positions that may be evaluated. * The depth limit for the search, if any. * The exact amount of time (in milliseconds) to search....
module Limits : sig * The search limits , according to the UCI protocol . type t val infinite : t -> bool val nodes : t -> int option * The number of fullmoves [ n ] to find a mate in . Positive values of [ n ] indicate a winning checkmate for the active player . Likewise , negative values in...
280bd63e887d14a82ab68d4d077ed4cbf90c8635ccec3242cce889f4e4625d89
Firobe/nes-ml
rom.ml
exception Invalid_ROM of string type rom_config = { prg_rom_size : int; chr_rom_size : int; mirroring : bool; prg_ram_present : bool; trainer : bool; four_screen_vram : bool; vs_unisystem : bool; playchoice_10 : bool; prg_ram_size : int; mapper_nb : int; tv_system : [ `NTSC | `PAL ]; } type t = ...
null
https://raw.githubusercontent.com/Firobe/nes-ml/7299a8059c16b398936e5701d858b31d81cf3ca7/src/rom.ml
ocaml
exception Invalid_ROM of string type rom_config = { prg_rom_size : int; chr_rom_size : int; mirroring : bool; prg_ram_present : bool; trainer : bool; four_screen_vram : bool; vs_unisystem : bool; playchoice_10 : bool; prg_ram_size : int; mapper_nb : int; tv_system : [ `NTSC | `PAL ]; } type t = ...
d250cf969cc6e6b7c38450e15bf057819d76287039780f587f5d7c75677b6353
sylane/erod
erod_document.erl
%%% ========================================================================== Copyright ( c ) 2014 < > %%% %%% This file is part of erod. %%% %%% Erod 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 , eit...
null
https://raw.githubusercontent.com/sylane/erod/b0c435f8546ea38b1501d3e22614fe7951c61c9a/apps/erod/src/erod_document.erl
erlang
========================================================================== This file is part of erod. Erod is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the impli...
Copyright ( c ) 2014 < > it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License 2014 < > @author < > -module(erod_document). -author('Sebastien Merl...
31bbed3c48e7286316ab0db54d5e7efe3a1c0ef736bf4bd8637660f6c4c7f911
fortytools/holumbus
BasicTypes.hs
-- ---------------------------------------------------------------------------- | Module : Holumbus . Index . Common . Copyright ( C ) 2011 , , License : MIT Maintainer : ( ) Stability : experimental Portability : none portable Basic data types for index Mod...
null
https://raw.githubusercontent.com/fortytools/holumbus/4b2f7b832feab2715a4d48be0b07dca018eaa8e8/Holumbus-Searchengine/src/Holumbus/Index/Common/BasicTypes.hs
haskell
---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ------------------------------------------------------------ | The URI describing the location of the original document. | The title of a document. | The conten...
| Module : Holumbus . Index . Common . Copyright ( C ) 2011 , , License : MIT Maintainer : ( ) Stability : experimental Portability : none portable Basic data types for index Module : Holumbus.Index.Common.BasicTypes Copyright : Copyright (C) 2011 Seb...
56ba5684d9592d1b56bcc9e28b3356911e222ede05e5cdda51b3efd154c6a415
jasonstolaruk/CurryMUD
Npc.hs
# LANGUAGE ViewPatterns # module Mud.Interp.Npc (npcInterp) where import Mud.Cmds.Pla import Mud.Data.State.MudData import Mud.Interp.Dispatch import qualified Data.Text as T npcInterp :: Interp npcInterp = dispatch findAction findAction :: FindActionFun findAction i ms (T.toLower -> ...
null
https://raw.githubusercontent.com/jasonstolaruk/CurryMUD/f9775fb3ede08610f33f27bb1fb5fc0565e98266/lib/Mud/Interp/Npc.hs
haskell
# LANGUAGE ViewPatterns # module Mud.Interp.Npc (npcInterp) where import Mud.Cmds.Pla import Mud.Data.State.MudData import Mud.Interp.Dispatch import qualified Data.Text as T npcInterp :: Interp npcInterp = dispatch findAction findAction :: FindActionFun findAction i ms (T.toLower -> ...
8514c5a76c625df70b0ee77bb708551754354bf5da4f57bec893b7564b997328
flybot-sg/Pastoral
project.clj
(defproject pastoral "0.0.1-SNAPSHOT" :description "Derived Values, Flowing, for Arcadia (Clojure in Unity)." :url "-sg/Pastoral" :license {:name "Eclipse Public License - v 1.0" :url "-v10.html" :distribution :repo} :source-paths ["src"] :dependencies [])
null
https://raw.githubusercontent.com/flybot-sg/Pastoral/c0bfb0e083e7fee22cb242d03768fc8a72598683/project.clj
clojure
(defproject pastoral "0.0.1-SNAPSHOT" :description "Derived Values, Flowing, for Arcadia (Clojure in Unity)." :url "-sg/Pastoral" :license {:name "Eclipse Public License - v 1.0" :url "-v10.html" :distribution :repo} :source-paths ["src"] :dependencies [])
f6673ecd4fc7ddba01037529734e1aab6e07f454e50d60976f410052d8bc50eb
simonmichael/hledger
dayssincetag.hs
#!/usr/bin/env runhaskell Display the current darcs repository 's last tag and the number of days since . Similar to : $ darcs changes --to - tag . --from - tag .|head -n 1 |cut -d ' ' -f-7 -I { } date -d " { } " + % s -I { } expr \ ( $ ( date + % s ) - { } \ ) / 60 / 60 / 24 Display the current darcs reposit...
null
https://raw.githubusercontent.com/simonmichael/hledger/35be02a4f344db1f7dcf977bb5227d1df930a67a/tools/dayssincetag.hs
haskell
to - tag . --from - tag .|head -n 1 |cut -d ' ' -f-7 -I { } date -d " { } " + % s -I { } expr \ ( $ ( date + % s ) - { } \ ) / 60 / 60 / 24 to-tag . --from-tag .|head -n 1 |cut -d' ' -f-7 |xargs -I {} date -d "{}" +%s |xargs -I {} expr \( $(date +%s) - {} \) / 60 / 60 / 24
#!/usr/bin/env runhaskell Display the current darcs repository 's last tag and the number of days since . Similar to : Display the current darcs repository's last tag and the number of days since. Similar to: -} import Data.Time import System.Environment import System.Locale import System.Process main = do tag...
7ae9743a4e3717a5c69d6631f865529ebbb39b4ef0afd8367a87a4e4b6ab5518
acieroid/scala-am
SICP-compiler.scm
Taken from " Structure and Interpratation of Computer Programs " ( , , ) 2nd Edition ;; The result should be true (#t). Adapted by translating all calls to the list primitive into calls to cons since list is not supported by SCALA - AM . ;; Adapted by working around an unknown number of arguments for append-...
null
https://raw.githubusercontent.com/acieroid/scala-am/13ef3befbfc664b77f31f56847c30d60f4ee7dfe/test/changes/cscheme/threads/SICP-compiler.scm
scheme
The result should be true (#t). Adapted by working around an unknown number of arguments for append-instruction-sequences. <=================================================================================================
Taken from " Structure and Interpratation of Computer Programs " ( , , ) 2nd Edition Adapted by translating all calls to the list primitive into calls to cons since list is not supported by SCALA - AM . (define true #t) (define false #f) (define (self-evaluating? exp) (cond ((number? exp) true) ((...
093896cf23aefd3c5558667f385f3f3fc24755fa60b12e9c8c646648c986e757
simingwang/emqx-plugin-kafkav5
hex_tarball.erl
%% @doc %% Functions for creating and unpacking Hex tarballs. -module(hex_tarball). -export([create/2, create/3, create_docs/1, create_docs/2, unpack/2, unpack/3, unpack_docs/2, unpack_docs/3, format_checksum/1, format_error/1]). -ifdef(TEST). -export([do_decode_metadata/1, gzip/1, normalize_requirements/1]). -endi...
null
https://raw.githubusercontent.com/simingwang/emqx-plugin-kafkav5/bbf919e56dbc8fd2d4c1c541084532f844a11cbc/_build/default/plugins/hex_core/src/hex_tarball.erl
erlang
@doc Functions for creating and unpacking Hex tarballs. ==================================================================== API functions ==================================================================== @doc Creates a package tarball. Returns the binary of the tarball the "inner checksum" and "outer checksu...
-module(hex_tarball). -export([create/2, create/3, create_docs/1, create_docs/2, unpack/2, unpack/3, unpack_docs/2, unpack_docs/3, format_checksum/1, format_error/1]). -ifdef(TEST). -export([do_decode_metadata/1, gzip/1, normalize_requirements/1]). -endif. -define(VERSION, <<"3">>). -define(BUILD_TOOL_FILES, [ ...
bc48d244f3af3031ef5c502db00d8545d38cb875fa32959ea48099a77ed4ff88
cruxlang/crux
SymbolTable.hs
module Crux.SymbolTable ( SymbolTable , InsertPolicy(..) , new , clone , readAll , lookup , insert ) where import Prelude hiding (lookup) import Crux.Prelude import qualified Data.HashMap.Strict as HashMap import Crux.Typecheck.Monad (TC, Warning(..), recordWarning, failTypeError) impor...
null
https://raw.githubusercontent.com/cruxlang/crux/883f642d15fb85ce17d9c485ee91158d9e826a2f/Crux/SymbolTable.hs
haskell
TODO: a real warning Create a new mutable hash table containing the union of the two provided mutable hash tables Create a new mutable hash table containing the union of the provided mutable and immutable hash tables . Create a new mutable hash table containing the union of the two provided mutable hash tables C...
module Crux.SymbolTable ( SymbolTable , InsertPolicy(..) , new , clone , readAll , lookup , insert ) where import Prelude hiding (lookup) import Crux.Prelude import qualified Data.HashMap.Strict as HashMap import Crux.Typecheck.Monad (TC, Warning(..), recordWarning, failTypeError) impor...
a405366eeca52ad5d22faedd7dc06be36afdc0d9c89efa65e2488fd236146628
inria-parkas/sundialsml
test_sunmatrix_sparse.ml
* ----------------------------------------------------------------- * Programmer(s ): @ SMU * @ LLNL * ----------------------------------------------------------------- * OCaml port : , , Jun 2018 . * ----------------------------------------------------------------- * LLNS / ...
null
https://raw.githubusercontent.com/inria-parkas/sundialsml/a1848318cac2e340c32ddfd42671bef07b1390db/examples/matrix/sparse/test_sunmatrix_sparse.ml
ocaml
compare sparsity patterns compare matrix values ---------------------------------------------------------------------- * Main Matrix Testing Routine * -------------------------------------------------------------------- create clones for test v = y+z u ?= v D = A u = Cx = Ax+Bx v = y+z u ?= v E = ...
* ----------------------------------------------------------------- * Programmer(s ): @ SMU * @ LLNL * ----------------------------------------------------------------- * OCaml port : , , Jun 2018 . * ----------------------------------------------------------------- * LLNS / ...
ea8774d50d278dd502e6ff39ef7a92e4386730c3a63fd4da0377512c34fb9423
hachreak/stepflow
stepflow_agent_sup.erl
%%%------------------------------------------------------------------- %% @doc steflow top level agent supervisor. %% @end %%%------------------------------------------------------------------- -module(stepflow_agent_sup). -author('Leonardo Rossi <>'). -behaviour(supervisor). %% API -export([new/2]). %% Supervisor...
null
https://raw.githubusercontent.com/hachreak/stepflow/4e0b2cec68343f24809a21b3bb1708baf805d04a/src/stepflow_agent_sup.erl
erlang
------------------------------------------------------------------- @doc steflow top level agent supervisor. @end ------------------------------------------------------------------- API Supervisor callbacks ==================================================================== API functions =========================...
-module(stepflow_agent_sup). -author('Leonardo Rossi <>'). -behaviour(supervisor). -export([new/2]). -export([init/1, start_link/0]). -define(SERVER, ?MODULE). -type skctx() :: stepflow_sink:ctx(). -type srctx() :: stepflow_source:ctx(). -type chctx() :: stepflow_channel:ctx(). -type input() :: {atom(), ...
2c85e5de1048cfb089fce28a5b98cfa80a683950a49273cca11e997466a581e6
40ants/reblocks-text-editor
js.lisp
(uiop:define-package #:reblocks-text-editor/frontend/js (:use #:cl) (:import-from #:reblocks-parenscript) (:import-from #:parenscript #:regex #:chain #:@ #:create #:false #:undefined #:new)) (in-package...
null
https://raw.githubusercontent.com/40ants/reblocks-text-editor/b80a3fd75a527c7be8615c19ba4d6e2951c9d3e4/src/frontend/js.lisp
lisp
; ; ; ignore-critiques: nested-defuns inside the element. Sometimes we can have an empty span nodes. In this case child-nodes will be empty and thus we have to select element itself. (target (@ event target inner-h-t-m-l)) Before we send an action, we need to remember which element was edited, to restore...
(uiop:define-package #:reblocks-text-editor/frontend/js (:use #:cl) (:import-from #:reblocks-parenscript) (:import-from #:parenscript #:regex #:chain #:@ #:create #:false #:undefined #:new)) (in-package...
b530795f6e8aa17e80b4e9af63479a62e48d533290d042b196a84484d21deeaa
psibi/tldr-hs
Types.hs
module Tldr.Types where import System.Console.ANSI data Locale = English | Missing | Other String | Unknown String data ColorSetting = NoColor | UseColor deriving (Eq, Show, Ord, Enum, Bounded) data ConsoleSetting = ConsoleSetting { italic :: Bool , underline :: Underlining , blink :: BlinkSpeed ...
null
https://raw.githubusercontent.com/psibi/tldr-hs/47c5230f770278da3325900fbb534c38135c72d7/src/Tldr/Types.hs
haskell
module Tldr.Types where import System.Console.ANSI data Locale = English | Missing | Other String | Unknown String data ColorSetting = NoColor | UseColor deriving (Eq, Show, Ord, Enum, Bounded) data ConsoleSetting = ConsoleSetting { italic :: Bool , underline :: Underlining , blink :: BlinkSpeed ...
f84c485c0ec3ee4d3527f5f8b808cef6cc5a49d677337743a4fd6609d1749bab
PLTools/GT
test824mut.ml
module MyIdent = struct type nonrec t = GT.string [@@deriving gt ~options:{ fmt }] end type logic_op = [ @@deriving gt ~options : { fmt } ] type op = | Plus | Minus | LT | LE | GT | GE | Eq [ @@deriving gt ~options : { fmt } ] type op = | Plus | Minus | LT | LE | GT | GE | Eq [@@deriving gt ~options:{ fmt }] ...
null
https://raw.githubusercontent.com/PLTools/GT/62d1a424a3336f2317ba67e447a9ff09d179b583/regression/test824mut.ml
ocaml
TODO: it should be path here
module MyIdent = struct type nonrec t = GT.string [@@deriving gt ~options:{ fmt }] end type logic_op = [ @@deriving gt ~options : { fmt } ] type op = | Plus | Minus | LT | LE | GT | GE | Eq [ @@deriving gt ~options : { fmt } ] type op = | Plus | Minus | LT | LE | GT | GE | Eq [@@deriving gt ~options:{ fmt }] ...
6e71f422ce8def264309b536809eaf18da1d9576dcddd0df9608cc69da36926e
sheyll/newtype-zoo
Active.hs
-- | Indicate that something is `Active`. module NewtypeZoo.Active ( Active(Active) , _theActive , theActive ) where import Control.Comonad (Comonad) import Control.DeepSeq (NFData) import Control.Monad.Fix (MonadFix) import Control.Monad.Zip (MonadZip) import ...
null
https://raw.githubusercontent.com/sheyll/newtype-zoo/0e67717cbcd9233d9c26b6aacb4c6f8bba6ef5f7/src/NewtypeZoo/Active.hs
haskell
| Indicate that something is `Active`. | A wrapper for something that is `Active`. | An accessor function for something 'Active'. # INLINE _theActive # | A lens for something 'Active'.
module NewtypeZoo.Active ( Active(Active) , _theActive , theActive ) where import Control.Comonad (Comonad) import Control.DeepSeq (NFData) import Control.Monad.Fix (MonadFix) import Control.Monad.Zip (MonadZip) import Data.Bits (Bits,FiniteBits) import ...
ee580d3ca6f440c341580590f310c12eb5a22f37f57ea2eaab84c42ad3ac1355
hiroshi-unno/coar
params.ml
open Core open Ast open Ast.Logic open Kind type random_info = { name : Ident.tvar; random_ex_bound : int; random_ex_size : int } type t = { (* unknowns *) senv : sort_env_map; kind_map : kind_map; (* defined *) id : int option; fenv : LogicOld.FunEnv.t; dtenv : LogicOld.DTEnv.t; sol_space : SolS...
null
https://raw.githubusercontent.com/hiroshi-unno/coar/90a23a09332c68f380efd4115b3f6fdc825f413d/lib/pCSP/params.ml
ocaml
unknowns defined
open Core open Ast open Ast.Logic open Kind type random_info = { name : Ident.tvar; random_ex_bound : int; random_ex_size : int } type t = { senv : sort_env_map; kind_map : kind_map; id : int option; fenv : LogicOld.FunEnv.t; dtenv : LogicOld.DTEnv.t; sol_space : SolSpace.t; messenger : Common.Mess...
dd5c9ad4c4477c1cc0769551523a48e9900bafcfbab2cad219d3ce73a8712c7a
ahungry/ahungry-fleece
package.lisp
(defpackage "af.contrib.sb-rotate-byte" (:use "CL" "SB-C" "SB-VM" "SB-INT" "SB-KERNEL" "SB-ASSEM") (:export "ROTATE-BYTE"))
null
https://raw.githubusercontent.com/ahungry/ahungry-fleece/1cef1d3a3aa9cffe9f06b7632006565bbc986814/contrib/sb-rotate-byte/package.lisp
lisp
(defpackage "af.contrib.sb-rotate-byte" (:use "CL" "SB-C" "SB-VM" "SB-INT" "SB-KERNEL" "SB-ASSEM") (:export "ROTATE-BYTE"))
555a5d97b1677ae1352486ccb3e31d1343dd68ff85233e5e3685342bde86881f
sol/logging-facade
Sink.hs
# LANGUAGE CPP # module System.Logging.Facade.Sink ( LogSink , defaultLogSink , getLogSink , setLogSink , swapLogSink , withLogSink ) where import Control.Concurrent import Data.IORef import System.IO import System.IO.Unsafe (unsafePerformIO) import Control.Exception...
null
https://raw.githubusercontent.com/sol/logging-facade/2ed4f0b00a3a8db11c948ff215578ba5bdbcd188/src/System/Logging/Facade/Sink.hs
haskell
| A consumer for log records | Return the global log sink. | Set the global log sink. operation. | Set the global log sink to a specified value, run given action, and finally restore the global log sink to its previous value. | A thread-safe log sink that writes log messages to `stderr`
# LANGUAGE CPP # module System.Logging.Facade.Sink ( LogSink , defaultLogSink , getLogSink , setLogSink , swapLogSink , withLogSink ) where import Control.Concurrent import Data.IORef import System.IO import System.IO.Unsafe (unsafePerformIO) import Control.Exception...
a3cb062a6af79028ad4aa0da38ddfed0a064d79fd463113c6a2af2f062a7803d
racket/plot
lazy-snip-untyped.rkt
#lang racket/base (require racket/lazy-require) (provide (rename-out [-make-2d-plot-snip make-2d-plot-snip] [-make-3d-plot-snip make-3d-plot-snip] [-make-snip-frame make-snip-frame])) ;; Require lazily, in case someone wants to just (require plot) in a headless setup (laz...
null
https://raw.githubusercontent.com/racket/plot/c4126001f2c609e36c3aa12f300e9c673ab1a806/plot-gui-lib/plot/private/gui/lazy-snip-untyped.rkt
racket
Require lazily, in case someone wants to just (require plot) in a headless setup
#lang racket/base (require racket/lazy-require) (provide (rename-out [-make-2d-plot-snip make-2d-plot-snip] [-make-3d-plot-snip make-3d-plot-snip] [-make-snip-frame make-snip-frame])) (lazy-require ["snip2d.rkt" (make-2d-plot-snip)] ["snip3d.rkt" (make-3d-pl...
c4df618ccd826a5c80e38811e01c64fb9381bbcccf4c619a0177d5a545f40b17
metabase/metabase
pivot_test.clj
(ns metabase.query-processor.pivot-test "Tests for pivot table actions for the query processor" (:require [clj-time.core :as time] [clojure.set :as set] [clojure.test :refer :all] [medley.core :as m] [metabase.api.pivots :as api.pivots] [metabase.models :refer [Card Collection]] [metabase.model...
null
https://raw.githubusercontent.com/metabase/metabase/4853d09f84d68ca394f5bad93f019c5c5bd85561/test/metabase/query_processor/pivot_test.clj
clojure
primary data subtotal rows row totals subtotal rows within "row totals" "grand totals" row bottom right corner `:fields` at all, which was a clear bug -- while returning expressions that are referenced in `:fields` is I do not think there are any situations where the frontend actually explicitly specifies `:fi...
(ns metabase.query-processor.pivot-test "Tests for pivot table actions for the query processor" (:require [clj-time.core :as time] [clojure.set :as set] [clojure.test :refer :all] [medley.core :as m] [metabase.api.pivots :as api.pivots] [metabase.models :refer [Card Collection]] [metabase.model...
610c0a5e40ca35f478f260c62b663c4a260a1ad7ae9dcf4f720376efc07a764f
bobatkey/CS316-2022
Week04Intro.hs
# LANGUAGE ParallelListComp # # OPTIONS_GHC -fwarn - incomplete - patterns # module Week04Intro where import Prelude hiding (foldr, foldl, Maybe (..), Left, Right, filter, zip, map, concat, tail) import Data.List.Split (splitOn) import Data.List hiding (foldr, foldl, filter, map, concat) ANNOUNCEMENT : -...
null
https://raw.githubusercontent.com/bobatkey/CS316-2022/86ee5219c3629e98c6535b4fff23f42dc20cd327/lecture-notes/Week04Intro.hs
haskell
Part 4.1 : FOLDING RIGHT total len data List a = Nil | Cons a (List a) Goal : a value of type 'b' Nil ~~~> n :: b Cons x xs ~~~> f :: a -> b -> b - Goal: P - base case: P(0) - step case: P(n) -> P(n + 1) append (:) -- (a -> [a] -> [a]) [a] = [1,2,3,4] tail :: [a] -> [a] tail [] = ...
# LANGUAGE ParallelListComp # # OPTIONS_GHC -fwarn - incomplete - patterns # module Week04Intro where import Prelude hiding (foldr, foldl, Maybe (..), Left, Right, filter, zip, map, concat, tail) import Data.List.Split (splitOn) import Data.List hiding (foldr, foldl, filter, map, concat) ANNOUNCEMENT : -...
55e9378c1cb2e5e6fafd1de16dfa8df656283b033a1321aeb74d5fd864fe7ba9
uncomplicate/deep-diamond
rnn.clj
Copyright ( c ) . All rights reserved . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) or later ;; which can be found in the file LICENSE at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be boun...
null
https://raw.githubusercontent.com/uncomplicate/deep-diamond/d5283602905552e3ba832245219b8b712bfba0d9/src/clojure/uncomplicate/diamond/internal/cudnn/rnn.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) or later which can be found in the file LICENSE at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not rem...
Copyright ( c ) . All rights reserved . (ns uncomplicate.diamond.internal.cudnn.rnn (:require [uncomplicate.commons [core :refer [Releaseable release let-release with-release Info info view]] [utils :refer [dragan-says-ex]]] [uncomplicate.clojurecuda.core :refer [mem-alloc...
2747d375a874b0323a0486bde564ba9c8e384c6a4cd39e3111bc400318919771
diagrams/diagrams-builder
diagrams-builder-svg.hs
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # module Main where import Diagrams.Backend.SVG import Diagrams.Builder import Diagrams.Prelude hiding (height, width) import Graphics.Svg import System.Conso...
null
https://raw.githubusercontent.com/diagrams/diagrams-builder/fa73414a1de8e9d8ba1117aa5ae023633859c0db/src/tools/diagrams-builder-svg.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE OverloadedStrings #
# LANGUAGE RecordWildCards # module Main where import Diagrams.Backend.SVG import Diagrams.Builder import Diagrams.Prelude hiding (height, width) import Graphics.Svg import System.Console.CmdArgs import System.Directory (copyFile, createDire...
67477990119bfd12cd57a4e37bdc82ed762fba5b6baa3cf150496e49f0919784
mk270/archipelago
sentence.ml
Archipelago , a multi - user dungeon ( MUD ) server , by ( C ) 2009 - 2012 This programme is free software ; you may redistribute and/or modify it under the terms of the GNU Affero General Public Licence as published by the Free Software Foundation , either version 3 of said Licence , or ( ...
null
https://raw.githubusercontent.com/mk270/archipelago/4241bdc994da6d846637bcc079051405ee905c9b/src/model/sentence.ml
ocaml
Archipelago , a multi - user dungeon ( MUD ) server , by ( C ) 2009 - 2012 This programme is free software ; you may redistribute and/or modify it under the terms of the GNU Affero General Public Licence as published by the Free Software Foundation , either version 3 of said Licence , or ( ...
c9326e1a90cec9935363de0131fad02645f96e0fbf022040607b7cd774a439a9
carliros/Simple-San-Simon-Functional-Web-Browser
PropertyParser.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE ImpredicativeTypes #-} module Parser.PropertyParser where import Control.Applicative.Interleaved import Data.Char import qualified Data.Map as Map import Data.Maybe import Text.ParserCombinators.UU imp...
null
https://raw.githubusercontent.com/carliros/Simple-San-Simon-Functional-Web-Browser/9b035cb91f127910c07fb6c1b652577642b81a20/src/Parser/PropertyParser.hs
haskell
# LANGUAGE ImpredicativeTypes # | display no support for: run-in, inline-block | position no support for absolute, fixed | top, bottom, ... | float no support for left, right | margin | padding | border | fonts | color | dimentions: height and width | line height | vertical align "top", "bottom", "middl...
# LANGUAGE FlexibleContexts # module Parser.PropertyParser where import Control.Applicative.Interleaved import Data.Char import qualified Data.Map as Map import Data.Maybe import Text.ParserCombinators.UU import Text.ParserCombinators...
eeb6fca10eec61988925350dbec658d1244b809f021bf338e6a5e63290d53712
tweag/ormolu
proc-forms1-out.hs
{-# LANGUAGE Arrows #-} foo0 f g x y = proc _ -> (| f (g -< (x, y)) |) foo1 f g h x = proc (y, z) -> (| test ( h f . h g -< y x . y z ) ( h g . h f -< y z . y x ) ...
null
https://raw.githubusercontent.com/tweag/ormolu/34bdf62429768f24b70d0f8ba7730fc4d8ae73ba/data/examples/declaration/value/function/arrow/proc-forms1-out.hs
haskell
# LANGUAGE Arrows #
foo0 f g x y = proc _ -> (| f (g -< (x, y)) |) foo1 f g h x = proc (y, z) -> (| test ( h f . h g -< y x . y z ) ( h g . h f -< y z . y x ) |)
40bf14cd677c17c4d0d16e57201868f23b1e92858ed72471d4d3eea9aaa3248d
andrejbauer/coop
name.ml
(** Names of variables. *) (** Kinds of names. *) type fixity = | Word (** an ordinary word *) | Anonymous of int (** an anonymous name _ *) | Prefix (** prefix operator *) | Infix of Level.infix (** infix operator *) (** An identifier. *) type t = Ident of string * fixity let equal i1 i2 = (i1 = i2) module...
null
https://raw.githubusercontent.com/andrejbauer/coop/173d0889795c55a370f79fb42425b77a5c0c8464/src/name.ml
ocaml
* Names of variables. * Kinds of names. * an ordinary word * an anonymous name _ * prefix operator * infix operator * An identifier. * Create a fresh anonymous name. * Print an identifier.
type fixity = type t = Ident of string * fixity let equal i1 i2 = (i1 = i2) module Set = struct module S = Set.Make( struct type nonrec t = t let compare = Stdlib.compare end) type elt = t type t = S.t let empty = S.empty let is_emp...
6c81eb4b15177c37c9756163556b07fd4fb9e5172425a7a9c03ad495dc8fc186
purescript/spago
Dhall.hs
{-# LANGUAGE GADTs #-} # LANGUAGE OverloadedLists # module Spago.Dhall ( module Spago.Dhall, module Dhall, ) where import qualified Control.Monad.Trans.State.Strict as State import qualified Data.Text as Text import Dhall import Dhall.Core as Dhall hiding (pretty) import qualified Dhall.Format import qualifie...
null
https://raw.githubusercontent.com/purescript/spago/2a70306d87ddb2a7a61cf5ac61fccd7d91ecae6c/src/Spago/Dhall.hs
haskell
# LANGUAGE GADTs # | Prettyprint a Dhall expression adding a comment on top This impl might need to be revisited after -lang/dhall-haskell/issues/145 is fixed | Return a list of all imports starting from a particular file Verify that the package set exists After modifying the expression, we have to check if it sti...
# LANGUAGE OverloadedLists # module Spago.Dhall ( module Spago.Dhall, module Dhall, ) where import qualified Control.Monad.Trans.State.Strict as State import qualified Data.Text as Text import Dhall import Dhall.Core as Dhall hiding (pretty) import qualified Dhall.Format import qualified Dhall.Import import q...
e26a99a4e940a2c435bbb9a92b660dbf088e892c2614e30dfe0c84998e3f7325
brunjlar/protop
IO.hs
# LANGUAGE ScopedTypeVariables # # LANGUAGE GeneralizedNewtypeDeriving # module Socrates.IO ( runSocratesIO ) where import Control.Monad (forM_) import qualified Control.Monad.IO.Class as I import qualified Control.Monad.State as S import Numeric.Natural import ...
null
https://raw.githubusercontent.com/brunjlar/protop/9f520aeb4dd9baf9ebed8751584e33e3a3e23df6/src/Socrates/IO.hs
haskell
# LANGUAGE ScopedTypeVariables # # LANGUAGE GeneralizedNewtypeDeriving # module Socrates.IO ( runSocratesIO ) where import Control.Monad (forM_) import qualified Control.Monad.IO.Class as I import qualified Control.Monad.State as S import Numeric.Natural import ...
4cc2dd5d527d7254a76eae5d04ec8fbb5b8fcd08ae8d0c2af298ca7ea13dd521
dinosaure/art
rwx.ml
let () = Printexc.record_backtrace true let reporter ppf = let report src level ~over k msgf = let k _ = over () ; k () in let with_metadata header _tags k ppf fmt = Format.kfprintf k ppf ("%a[%a]: " ^^ fmt ^^ "\n%!") Logs_fmt.pp_header (level, header) Fmt.(styled `M...
null
https://raw.githubusercontent.com/dinosaure/art/a82f13d4203a036220fc9216a273675678eabeea/bin/rwx.ml
ocaml
let () = Printexc.record_backtrace true let reporter ppf = let report src level ~over k msgf = let k _ = over () ; k () in let with_metadata header _tags k ppf fmt = Format.kfprintf k ppf ("%a[%a]: " ^^ fmt ^^ "\n%!") Logs_fmt.pp_header (level, header) Fmt.(styled `M...
4c450b8026c0f9f976fbbc87b7714787c68fd75d5e1076b15e728a1fa4423f1c
commercialhaskell/stack
Main.hs
import StackTest import System.Directory main :: IO () main = do createDirectoryIfMissing True "foo/src" readFile "foo/v1/Foo.hs" >>= writeFile "foo/src/Foo.hs" stack ["bench"] readFile "foo/v2/Foo.hs" >>= writeFile "foo/src/Foo.hs" stack ["bench"]
null
https://raw.githubusercontent.com/commercialhaskell/stack/255cd830627870cdef34b5e54d670ef07882523e/test/integration/tests/2781-shadow-bug/Main.hs
haskell
import StackTest import System.Directory main :: IO () main = do createDirectoryIfMissing True "foo/src" readFile "foo/v1/Foo.hs" >>= writeFile "foo/src/Foo.hs" stack ["bench"] readFile "foo/v2/Foo.hs" >>= writeFile "foo/src/Foo.hs" stack ["bench"]
9d48f184f68ab79f06c544df40b4a29095e06f76a296754fbea7098bb49735f9
ynadji/lisp
onlisp.lisp
(defpackage :onlisp (:use :cl) (:export #:flatten) (:export #:after) (:export #:before) (:export #:memoize)) (provide :onlisp) (in-package :onlisp) ;;;; Stuff from On Lisp -- AKA useful Nice , basic functions (defun longer (x y) (labels ((compare (x y) (and (consp x) (or (null y) (com...
null
https://raw.githubusercontent.com/ynadji/lisp/758b5aebaa01f4994407d20026e617ebef90739e/onlisp.lisp
lisp
Stuff from On Lisp -- AKA useful Doubly-recursive list utilities Functions which search lists checks for dupes (best #'> (list-gen 1 10)) Mapping functions (map0-n #'1+ 5) non-destructive alternative to mapcan same as (mapcar #'fn (append lst1 lst2 ... lstn)), saves conses I/O shit Finally, break-loop is for...
(defpackage :onlisp (:use :cl) (:export #:flatten) (:export #:after) (:export #:before) (:export #:memoize)) (provide :onlisp) (in-package :onlisp) Nice , basic functions (defun longer (x y) (labels ((compare (x y) (and (consp x) (or (null y) (compare (cdr x) (cdr y)))))) (if (and...
5e5825e109a43fde8e4aee88927ae72f6efd3cfe3e1465900d387cfa0b2677aa
tonymorris/geo-gpx
BoundsL.hs
module Data.Geo.GPX.Lens.BoundsL where import Data.Geo.GPX.Type.Bounds import Data.Lens.Common class BoundsL a where boundsL :: Lens a (Maybe Bounds)
null
https://raw.githubusercontent.com/tonymorris/geo-gpx/526b59ec403293c810c2ba08d2c006dc526e8bf9/src/Data/Geo/GPX/Lens/BoundsL.hs
haskell
module Data.Geo.GPX.Lens.BoundsL where import Data.Geo.GPX.Type.Bounds import Data.Lens.Common class BoundsL a where boundsL :: Lens a (Maybe Bounds)
2fdf3f1446fa152721b1024424b6ae755803a3bd268a314529f34f0b36b67076
BinaryAnalysisPlatform/bap
bap_c_parser.mli
* A parser interface . The module does n't provide any parsers by itself , but allows it to be provided by a third party module . The module doesn't provide any parsers by itself, but allows it to be provided by a third party module. *) open Core_kernel[@@warning "-D"] type decls = (string * Ba...
null
https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap/253afc171bbfd0fe1b34f6442795dbf4b1798348/lib/bap_c/bap_c_parser.mli
ocaml
* [run filename] parses file and returns a mapping from identifier to its type. * called by a plugin that provides a parser.
* A parser interface . The module does n't provide any parsers by itself , but allows it to be provided by a third party module . The module doesn't provide any parsers by itself, but allows it to be provided by a third party module. *) open Core_kernel[@@warning "-D"] type decls = (string * Ba...
f1ae06e8606b95d77065b42ca9cd277d8da88457d66c123772bfc7187db87679
qmuli/qmuli
DDB.hs
{-# LANGUAGE GADTs #-} {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE OverloadedStrings #-} module Qi.Config.Render.DDB (toResources) where import Control.Lens import Data.Aeson (Value (Array), object) import qualified Data.ByteString.Lazy as LBS import qualified Data.HashMa...
null
https://raw.githubusercontent.com/qmuli/qmuli/6ca147f94642b81ab3978d502397efb60a50215b/library/Qi/Config/Render/DDB.hs
haskell
# LANGUAGE GADTs # # LANGUAGE NamedFieldPuns # # LANGUAGE OverloadedStrings # toResources config = Resources . foldMap toDdbTableResources $ getAll config where toConditionalDdbTableResources table = case table^.dtStreamHandler of Just lbdId -> [tableStreamEventSourceMappingRes table lbdId] _ ...
module Qi.Config.Render.DDB (toResources) where import Control.Lens import Data.Aeson (Value (Array), object) import qualified Data.ByteString.Lazy as LBS import qualified Data.HashMap.Strict as SHM import qualified Data.Text as T import Protolude hiding ...
eef4bb303e98ba71b107f7df8e37c2173e37c32c8709b03c3d76fce2cdab546f
c-cube/trustee
logger.mli
(** Log reporter *) type t val create : unit -> t val as_reporter : t -> Logs.reporter val log_to_chan : t -> out_channel -> unit val setup_logs : ?files:string list -> debug:bool -> level:int -> unit -> unit (** Setup reporter and debug level for {!Logs} *) val setup_trustee : unit -> unit (** Installer logger ...
null
https://raw.githubusercontent.com/c-cube/trustee/e783ab401026792d453ebe9b9d1bf936dee8b4db/src/opentheory/logger.mli
ocaml
* Log reporter * Setup reporter and debug level for {!Logs} * Installer logger as the main logger for Trustee
type t val create : unit -> t val as_reporter : t -> Logs.reporter val log_to_chan : t -> out_channel -> unit val setup_logs : ?files:string list -> debug:bool -> level:int -> unit -> unit val setup_trustee : unit -> unit
b09aeb09f83d5399df95cbdbb10de359e7f235834599f64c1f20d832c0540087
nilern/Eximia
bench.clj
(ns eximia.bench (:require [eximia.core :as e] clojure.xml clojure.data.xml [criterium.core :as cc] [clojure.java.io :as io]) (:import [java.io StringReader ByteArrayInputStream StringWriter ByteArrayOutputStream])) Using and String Streams / Writers / Readers to ...
null
https://raw.githubusercontent.com/nilern/Eximia/4ed5cd7c4e95e1bfde21b987a879283eda0c45d2/bench/eximia/bench.clj
clojure
# Reading ## InputStream hello 34,907768 µs hello 8,644655 µs ## Reader hello 34,631649 µs 100 12,981706 ms hello 7,976649 µs 10 301,268301 µs hello 7,851830 µs 10 301,294079 µs # Writing ## OutputStream Not really useful because there is no comparison hello 1,806021 µs ## Writer 1 194,523845 µs hello...
(ns eximia.bench (:require [eximia.core :as e] clojure.xml clojure.data.xml [criterium.core :as cc] [clojure.java.io :as io]) (:import [java.io StringReader ByteArrayInputStream StringWriter ByteArrayOutputStream])) Using and String Streams / Writers / Readers to ...
249b79fe158da493a2a17e000f9c7063074e15bdafc1a7403273830e0788ebb0
haskell-hvr/paths
Typeable.hs
# LANGUAGE CPP # # LANGUAGE ScopedTypeVariables # module System.Path.Internal.Typeable ( Typeable , typeRep ) where #if MIN_VERSION_base(4,7,0) import Data.Typeable (Typeable, typeRep) #else import Data.Typeable (Typeable, TypeRep, typeOf) typeRep :: forall a proxy. Typeable a => proxy a -> T...
null
https://raw.githubusercontent.com/haskell-hvr/paths/2d29fd546ae122b4c027c75fa85313244c2e1f77/src/System/Path/Internal/Typeable.hs
haskell
# LANGUAGE CPP # # LANGUAGE ScopedTypeVariables # module System.Path.Internal.Typeable ( Typeable , typeRep ) where #if MIN_VERSION_base(4,7,0) import Data.Typeable (Typeable, typeRep) #else import Data.Typeable (Typeable, TypeRep, typeOf) typeRep :: forall a proxy. Typeable a => proxy a -> T...
4399c65de698cf40328ef29af70df4b667b4697cf8f7ccca571efab0a938eb45
screenshotbot/screenshotbot-oss
test-bind-form.lisp
;; Copyright 2018-Present Modern Interpreters Inc. ;; 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 /. (defpackage :util.test-bind-form (:use #:cl #:fiveam #:util/bind-form) (:exp...
null
https://raw.githubusercontent.com/screenshotbot/screenshotbot-oss/f6094a39966bcabd4529cbecbd0f55f9369bc983/src/util/tests/test-bind-form.lisp
lisp
Copyright 2018-Present Modern Interpreters Inc.
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 /. (defpackage :util.test-bind-form (:use #:cl #:fiveam #:util/bind-form) (:export)) (in-package :util.test-bind-form) (markup:enabl...
5189902c7fbee3a85eec167856ce20250277340303608feb97caee759420126a
mojombo/yaws
myappmod.erl
-module(myappmod). -author(''). -include("../../include/yaws_api.hrl"). -compile(export_all). box(Str) -> {'div',[{class,"box"}], {pre,[],Str}}. out(A) -> {ehtml, [{p,[], box(io_lib:format("A#arg.appmoddata = ~p~n" "A#arg.appmod_prepath = ~p~n" "A#arg.querydata = ~p~n", [A#arg.a...
null
https://raw.githubusercontent.com/mojombo/yaws/f75fde80f1e35a87335f21d0983e3285eb665f17/www/code/myappmod.erl
erlang
-module(myappmod). -author(''). -include("../../include/yaws_api.hrl"). -compile(export_all). box(Str) -> {'div',[{class,"box"}], {pre,[],Str}}. out(A) -> {ehtml, [{p,[], box(io_lib:format("A#arg.appmoddata = ~p~n" "A#arg.appmod_prepath = ~p~n" "A#arg.querydata = ~p~n", [A#arg.a...
b1b0d7154373945c6fe3b3b5bf699376b36153cd740351cd8495b1961b2be49d
lojic/LearningRacket
day09-2.rkt
#lang racket (define (run n fname) (let ([ r (let find-range ([lst (map string->number (file->lines fname))]) (or (let loop ([lst lst][sum 0][result '()]) (cond [ (= sum n) result ] [ (or (> sum n) (null? lst)) #f ] [ else (let ([ ...
null
https://raw.githubusercontent.com/lojic/LearningRacket/eb0e75b0e16d3e0a91b8fa6612e2678a9e12e8c7/advent-of-code-2020/day09-2.rkt
racket
#lang racket (define (run n fname) (let ([ r (let find-range ([lst (map string->number (file->lines fname))]) (or (let loop ([lst lst][sum 0][result '()]) (cond [ (= sum n) result ] [ (or (> sum n) (null? lst)) #f ] [ else (let ([ ...
8d41e1cf62aafc7ac083d15ffb515a3f4a3f4252a99559256888de76ccc5908e
bennn/iPoe
reader.rkt
#lang ipoe #:name sesta-rima #:description "The sestina (song of sixes) has six stanzas of six lines, followed by a 3-line ending. There is no rhyme scheme, but the words ending each line of the first stanza must appear as the end words of lines in successive stanza following a rotating pattern. Furthermore ...
null
https://raw.githubusercontent.com/bennn/iPoe/4a988f6537fb738b4fe842c404f9d78f658ab76f/ipoe/sestina/lang/reader.rkt
racket
Really, this is many constraints. Hence 'apply append' in each pair must be the last word in the line. There's not as strict about the order, but - gotta be unique
#lang ipoe #:name sesta-rima #:description "The sestina (song of sixes) has six stanzas of six lines, followed by a 3-line ending. There is no rhyme scheme, but the words ending each line of the first stanza must appear as the end words of lines in successive stanza following a rotating pattern. Furthermore ...
ad7da70f1253e27441c0bc9da3f7b55899f745446315607b1b13dffaf9994808
clojure-interop/aws-api
core.clj
(ns core (:refer-clojure :only [require comment defn ->]) (:import )) (require '[com.amazonaws.services.lightsail.core])
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.lightsail/src/core.clj
clojure
(ns core (:refer-clojure :only [require comment defn ->]) (:import )) (require '[com.amazonaws.services.lightsail.core])
6a932ffdc08c032458b6643e5ea6695950b8f1358d73d5c71bdac71c28c1bcdc
seadynamic8/ocaml-modern-docs
types.ml
type doc type dom_element = Dom.element Js.Nullable.t external document : doc = "" [@@bs.val] external querySelector : doc -> string -> dom_element = "" [@@bs.send] external scrollIntoView : dom_element -> unit = "" [@@bs.send] external scrollTo : int -> int -> unit = "" [@@bs.val][@@bs.scope "window"] external add : d...
null
https://raw.githubusercontent.com/seadynamic8/ocaml-modern-docs/134fd4ad54c6d0ca37348b629218bff7364a1ba0/src/types.ml
ocaml
type doc type dom_element = Dom.element Js.Nullable.t external document : doc = "" [@@bs.val] external querySelector : doc -> string -> dom_element = "" [@@bs.send] external scrollIntoView : dom_element -> unit = "" [@@bs.send] external scrollTo : int -> int -> unit = "" [@@bs.val][@@bs.scope "window"] external add : d...
1f4084b5580c3e9ba06ecd84984978bff2ce5927381bb97820117cdf70ff2aaf
elastic/eui-cljs
facet_button.cljs
(ns eui.facet-button (:require ["@elastic/eui/lib/components/facet/facet_button.js" :as eui])) (def EuiFacetButton eui/EuiFacetButton)
null
https://raw.githubusercontent.com/elastic/eui-cljs/ad60b57470a2eb8db9bca050e02f52dd964d9f8e/src/eui/facet_button.cljs
clojure
(ns eui.facet-button (:require ["@elastic/eui/lib/components/facet/facet_button.js" :as eui])) (def EuiFacetButton eui/EuiFacetButton)
f8a61870c19584eb2877c78146e821843475a308b6f68eaf37580d633fa4d2e1
cffi/cffi
run-tests.lisp
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*- ;;; ;;; run-tests.lisp --- Simple script to run the unit tests. ;;; Copyright ( C ) 2005 - 2006 , < > ;;; ;;; Permission is hereby granted, free of charge, to any person ;;; obtaining a copy of this software and associated documentation files ( the " Software " ) ...
null
https://raw.githubusercontent.com/cffi/cffi/677cabae64b181330a3bbbda9c11891a2a8edcdc/tests/run-tests.lisp
lisp
-*- Mode: lisp; indent-tabs-mode: nil -*- run-tests.lisp --- Simple script to run the unit tests. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish,...
Copyright ( C ) 2005 - 2006 , < > files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , (in-package ...
5b31fd9b36013c73206a044d040739a1479c664542a9a1ea3b94d5d93a4a4b5c
serokell/time-warp
TimedIO.hs
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE Rank2Types #-} # LANGUAGE TupleSections # # LANGUAGE TypeFamilies # # LANGUAGE ViewPatterns # -- | -- Module : Control.TimeWarp.Timed.TimedIO Copyright : ( c ) , 2016 -- License : ...
null
https://raw.githubusercontent.com/serokell/time-warp/2783f81957a2e5b02e9d3425d760247a6c5a766b/src/Control/TimeWarp/Timed/TimedIO.hs
haskell
# LANGUAGE Rank2Types # | Module : Control.TimeWarp.Timed.TimedIO License : GPL-3 (see the file LICENSE) Stability : experimental | Default implementation for `IO`, i.e. real mode. `wait` refers to `Control.Concurrent.threadDelay`, | Launches scenario using real time and threads.
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TupleSections # # LANGUAGE TypeFamilies # # LANGUAGE ViewPatterns # Copyright : ( c ) , 2016 Maintainer : > Portability : POSIX , GHC Real - mode implementation of ` MonadTimed ` . Each fun...
d15624a9c5e3f28e8150a5e189099fe4dd9065521c03f4fad982d4f36279d4b6
ucsd-progsys/nate
emitaux.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/asmcomp/emitaux.ml
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : emitaux.ml , v 1.12 2007/01/2...
954dadecb9970520d6d5ffb835169c16b8c251385f381b64c4b414ef749ae1f3
project-oak/hafnium-verification
TaskBar.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/base/TaskBar.ml
ocaml
* max size for the top bar of the multiline task bar * do not attempt to draw the top bar of the multiline task bar unless it can be at least this big * state of a multi-line task bar * number of jobs running in parallel * array of size [jobs] with a description of what the process is doing * array of size [jobs] ...
* 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 ...
ec51c51c5b2554ed6ec8acd56ed3fc4a240c6898682c36f9154f0dc661a2bc7b
uwiger/parse_trans
test_exprecs.erl
-module(test_exprecs). -pt_renumber(true). -pt_log_forms(true). -export([f/0]). -compile({parse_transform, exprecs}). -record(r, {a = 0 :: integer(), b = 0 :: integer(), c = 0 :: integer()}). -record(s, {a}). -record(t, {}). -export_records([r, s, t]). f() -> foo.
null
https://raw.githubusercontent.com/uwiger/parse_trans/56f5c6cad48eaca8e0b2626e0df3587e6bf2da6e/examples/test_exprecs.erl
erlang
-module(test_exprecs). -pt_renumber(true). -pt_log_forms(true). -export([f/0]). -compile({parse_transform, exprecs}). -record(r, {a = 0 :: integer(), b = 0 :: integer(), c = 0 :: integer()}). -record(s, {a}). -record(t, {}). -export_records([r, s, t]). f() -> foo.
7495cf2cc4417a22eac82240d2f1e6ca3384a233d86f2469848fdb45dbb0b33c
xmonad/xmonad-contrib
Repeatable.hs
----------------------------------------------------------------------------- -- | Module : XMonad . Actions . Repeatable -- Description : Actions you'd like to repeat. Copyright : ( c ) 2022 -- License : BSD3-style (see LICENSE) -- Maintainer : @LSLeary ( on github ) -- Stability : u...
null
https://raw.githubusercontent.com/xmonad/xmonad-contrib/a790c816d247a8909ba2e8d51c1de800c6b3ffb7/XMonad/Actions/Repeatable.hs
haskell
--------------------------------------------------------------------------- | Description : Actions you'd like to repeat. License : BSD3-style (see LICENSE) Stability : unstable Portability : unportable This module factors out the shared logic of "XMonad.Actions.CycleRecentWS", "XMonad.Actions.MostRe...
Module : XMonad . Actions . Repeatable Copyright : ( c ) 2022 Maintainer : @LSLeary ( on github ) " XMonad . Actions . CycleWorkspaceByScreen " , " XMonad . Actions . CycleWindows " and module XMonad.Actions.Repeatable ( repeatable , repeatableSt , repeatableM ) where mtl import ...
6ffc43cbfdda5899004a0f48c7a04335ae703a0ceac76c63519eb1f95d69f551
RedPenguin101/aoc2021
day15.clj
(ns aoc2021.day15 (:require [clojure.string :as str] [aoc2021.utils :as u] [ubergraph.core :as ug] [ubergraph.alg :as alg])) (def input (map u/digits (str/split-lines (slurp "resources/day15input.txt")))) (defn build-graph [coords->costs] (for [coord (keys coords->costs) ...
null
https://raw.githubusercontent.com/RedPenguin101/aoc2021/f8f2c09b9f2fb88e84a2a316713740378acc0c89/clojure/src/aoc2021/day15.clj
clojure
(ns aoc2021.day15 (:require [clojure.string :as str] [aoc2021.utils :as u] [ubergraph.core :as ug] [ubergraph.alg :as alg])) (def input (map u/digits (str/split-lines (slurp "resources/day15input.txt")))) (defn build-graph [coords->costs] (for [coord (keys coords->costs) ...
d0cbb7d38bae932c69acf4a0850cb92bc85d9431fb7f572ef25c20e99c77432d
tamarin-prover/tamarin-prover
Token.hs
-- | Copyright : ( c ) 2010 - 2012 , -- License : GPL v3 (see LICENSE) -- Maintainer : < > -- Portability : portable -- -- Tokenizing infrastructure # LANGUAGE FlexibleInstances # module Theory.Text.Parser.Token ( lexeme -- * Symbols , symbol , symbol_ , dot , comma , colon , nat...
null
https://raw.githubusercontent.com/tamarin-prover/tamarin-prover/b14a9e06f20c36a4811944f9216d8826eaa68eab/lib/theory/src/Theory/Text/Parser/Token.hs
haskell
| License : GPL v3 (see LICENSE) Portability : portable Tokenizing infrastructure * Symbols ** Formal comments ** File Path * Identifiers and Variables * Operators , opDiff ** Pseudo operators * Parentheses/quoting * List parsing * Parsing State * Basic Parsing import Data.Label import...
Copyright : ( c ) 2010 - 2012 , Maintainer : < > # LANGUAGE FlexibleInstances # module Theory.Text.Parser.Token ( lexeme , symbol , symbol_ , dot , comma , colon , natural , naturalSubscript , formalComment , filePath , identifier , indexedIdentifier , hexColor , fre...
ec028113e5bdf465998244d440b8c8f298977cfa65f69664d5d0f5084b520e48
ghcjs/jsaddle-dom
HTMLCollection.hs
# LANGUAGE PatternSynonyms # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.HTMLCollection (item, item_, itemUnsafe, itemUnchecked, namedItem, namedItem_, namedItemUnsafe, namedItemUn...
null
https://raw.githubusercontent.com/ghcjs/jsaddle-dom/5f5094277d4b11f3dc3e2df6bb437b75712d268f/src/JSDOM/Generated/HTMLCollection.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #
# LANGUAGE PatternSynonyms # # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.HTMLCollection (item, item_, itemUnsafe, itemUnchecked, namedItem, namedItem_, namedItemUnsafe, namedItemUnchecked, getLength, HTMLCollection(..), gTypeHTMLCollection, IsHTMLCollection, toHTMLCollec...
62d6cb7e3a169ebc9a8abe82448a5195416d077b4959e7532c32d339561a54aa
MrEbbinghaus/Todoish
login.cljs
(ns todoish.ui.login (:require [material-ui.layout :as layout] [com.fulcrologic.fulcro.routing.dynamic-routing :as dr] [com.fulcrologic.fulcro.components :as comp :refer [defsc]] [com.fulcrologic.fulcro.mutations :as m :refer [defmutation]] [com.fulcrologic.fulcro.algor...
null
https://raw.githubusercontent.com/MrEbbinghaus/Todoish/42c5a8e575c19937e4ed3332b738e5f35e847f07/src/main/todoish/ui/login.cljs
clojure
(ns todoish.ui.login (:require [material-ui.layout :as layout] [com.fulcrologic.fulcro.routing.dynamic-routing :as dr] [com.fulcrologic.fulcro.components :as comp :refer [defsc]] [com.fulcrologic.fulcro.mutations :as m :refer [defmutation]] [com.fulcrologic.fulcro.algor...
a237e9f46070fb6e519d09066f93c0dde598f3d29a561fd8391e7cddb23c0c51
khibino/haskell-relational-record
Persistable.hs
module Database.HDBC.Record.Persistable # DEPRECATED " import Database . Relational . HDBC.Persistable " # ) where import Database.Relational.HDBC.Persistable ()
null
https://raw.githubusercontent.com/khibino/haskell-relational-record/759b3d7cea207e64d2bd1cf195125182f73d2a52/relational-query-HDBC/src/Database/HDBC/Record/Persistable.hs
haskell
module Database.HDBC.Record.Persistable # DEPRECATED " import Database . Relational . HDBC.Persistable " # ) where import Database.Relational.HDBC.Persistable ()
175dad28100ea51755b7e8f8cfd4c8ba7a3dfdb1b46999e9f63e8a7cbb7db72b
kayceesrk/Quelea
casTest.hs
{-# Language DataKinds, ScopedTypeVariables, OverloadedStrings #-} import Database.Cassandra.CQL import Data.Text import Control.Monad.Trans (liftIO) mkQuery :: Int -> Int -> Int -> Cas Bool mkQuery a b c = let qs :: Query Write (Int, Int, Int) () = query $ pack $ "insert into test (hash, seqno, value) values (?, ?...
null
https://raw.githubusercontent.com/kayceesrk/Quelea/73db79a5d5513b9aeeb475867a67bacb6a5313d0/tests/UnitTests/casTest.hs
haskell
# Language DataKinds, ScopedTypeVariables, OverloadedStrings #
import Database.Cassandra.CQL import Data.Text import Control.Monad.Trans (liftIO) mkQuery :: Int -> Int -> Int -> Cas Bool mkQuery a b c = let qs :: Query Write (Int, Int, Int) () = query $ pack $ "insert into test (hash, seqno, value) values (?, ?, ?) if not exists" in executeTrans qs (a,b,c) main = do pool ...
0217b91700cdfe4fbe49520fada79c61dda52f371e56d73a49cd2c78698eaa16
vikram/lisplibraries
lispworks.lisp
(in-package #:trivial-shell) (defun shell-command (command) BUG : Lispworks combines output and error streams (let ((output (make-string-output-stream))) (unwind-protect (let ((status (system:call-system-showing-output command :prefix "" :show-cmd ni...
null
https://raw.githubusercontent.com/vikram/lisplibraries/105e3ef2d165275eb78f36f5090c9e2cdd0754dd/site/trivial-shell/dev/lispworks.lisp
lisp
(in-package #:trivial-shell) (defun shell-command (command) BUG : Lispworks combines output and error streams (let ((output (make-string-output-stream))) (unwind-protect (let ((status (system:call-system-showing-output command :prefix "" :show-cmd ni...
95a07619bb894a4f751a354321dbca87aa67cb0d10478897f0595e28e208cfeb
Kappa-Dev/KappaTools
ode_loggers.ml
* * graph_loggers.ml * * a module for * , projet Antique , INRIA Paris * * * , Université Paris - Diderot , CNRS * * Creation : 22/07/2016 * Last modification : Time - stamp : < Jul 25 2016 > * * * * * Copyright 2016 Institut National de Recherche en Informatiqu...
null
https://raw.githubusercontent.com/Kappa-Dev/KappaTools/7ebbae0b0387144292b8e25dd8be6b7c9a1f6c75/core/odes/ode_loggers.ml
ocaml
fst (modf f) = 0. No!!! The float data-type contains more natural numbers than the int data type print comments let () = Loggers.allocate logger id_init in We differentiate according to the rule rate we differentiate according to the token coefficient we differentiate according to the species
* * graph_loggers.ml * * a module for * , projet Antique , INRIA Paris * * * , Université Paris - Diderot , CNRS * * Creation : 22/07/2016 * Last modification : Time - stamp : < Jul 25 2016 > * * * * * Copyright 2016 Institut National de Recherche en Informatiqu...
e0111e8eb471bb4e39547afe2ea062da47da4ae04ed90cc375985de5c5f0fa87
bufferswap/ViralityEngine
cube-map-array.lisp
(in-package #:virality.texture) (defmethod load-texture-data ((texture-type (eql :texture-cube-map-array)) texture context) (let* ((use-mipmaps-p (get-computed-applied-attribute texture :use-mipmaps)) (immutable-p (get-computed-applied-attribute texture :immutable)) (t...
null
https://raw.githubusercontent.com/bufferswap/ViralityEngine/df7bb4dffaecdcb6fdcbfa618031a5e1f85f4002/src/texture/cube-map-array.lisp
lisp
load all of the images we may require. TODO: This is not safe, need to check all of them. TODO: We assume all cube maps have the same mipmap number. I don't know if this is a reuirements or not. Figure out the ideal mipmap count from the base resolution. TODO: This might need work with cube-maps. TODO: Fix this ...
(in-package #:virality.texture) (defmethod load-texture-data ((texture-type (eql :texture-cube-map-array)) texture context) (let* ((use-mipmaps-p (get-computed-applied-attribute texture :use-mipmaps)) (immutable-p (get-computed-applied-attribute texture :immutable)) (t...
0d43b63f2c11f0de716644c2be1b80cbda25388e5c985f05fe9b24063246a02a
yurug/ocaml4.04.0-copatterns
types.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/yurug/ocaml4.04.0-copatterns/b3ec6a3cc203bd2cde3b618546d29e10f1102323/typing/types.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the * [ Types ] defines the representation of types and declarations ( that is , the content of module...
bfb772a90168a940ac311c39466f745c18b87da4942a5ad59752f4e34fb53f7b
Darkkey/erlamsa
erlamsa_http2.erl
-module(erlamsa_http2). -export([pack/1, pack/2, unpack_http2_data/1, pack_http2_data/2]). -export([fuzz_http2/4]). All the code below are copyright by < > It was taken from cowlib library %% see %% and for originals Copyright ( c ) 2015 - 2018 , < > %% %% Permission to use, copy, modify, and/or distri...
null
https://raw.githubusercontent.com/Darkkey/erlamsa/f46dde549588d15789c2c38aec4a206560024987/src/erlamsa_http2.erl
erlang
see and for originals Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABIL...
-module(erlamsa_http2). -export([pack/1, pack/2, unpack_http2_data/1, pack_http2_data/2]). -export([fuzz_http2/4]). All the code below are copyright by < > It was taken from cowlib library Copyright ( c ) 2015 - 2018 , < > THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL WARRANTIES ANY...
2262e2aaba18c3947b05c302b2bad22f283d0ccb7261a1bd9ab6800144f0719f
broadinstitute/wfl
log.clj
(ns wfl.log "Log to GCP Stackdriver." (:require [clojure.data.json :as json] [clojure.spec.alpha :as s] [clojure.string :as str] [clojure.template :as template]) (:import [java.time Instant])) ;; #LogSeverity ;; (def ^:private levels "The log level keywords by increas...
null
https://raw.githubusercontent.com/broadinstitute/wfl/ee4fcc767b5f97a24c3c6c813585629372441ad5/api/src/wfl/log.clj
clojure
#LogSeverity #special-fields Not sure what to do about java.lang.Class and such. Not ready for this yet.
(ns wfl.log "Log to GCP Stackdriver." (:require [clojure.data.json :as json] [clojure.spec.alpha :as s] [clojure.string :as str] [clojure.template :as template]) (:import [java.time Instant])) (def ^:private levels "The log level keywords by increasing severity." [:...
2da2c87c94f3c0954c223abbe4415d2cea019532aa60c3aaec1edebeddc7667e
russell/cl-git
graph.lisp
-*- Mode : Lisp ; Syntax : COMMON - LISP ; Base : 10 -*- ;; cl-git is a Common Lisp interface to git repositories. Copyright ( C ) 2011 - 2022 < > ;; ;; 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 ...
null
https://raw.githubusercontent.com/russell/cl-git/ab58b1dcf34649899085e9df95962ef1c9d902c3/tests/graph.lisp
lisp
Syntax : COMMON - LISP ; Base : 10 -*- cl-git is a Common Lisp interface to git repositories. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;...
Copyright ( C ) 2011 - 2022 < > as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any later version . You should have received a copy of the GNU Lesser General Public (in-package #:cl-git-tests) (in-suite :cl-git) #-(or libgit2-0.27 libgit2-0.28 libgit...
d1aebb96071d42958b51358511c56d42da2985c1c1b997d188e21a292ee496db
eltex-ecss/chronica
chronica_tty_backend.erl
%%%------------------------------------------------------------------- -*- coding : utf-8 -*- @author ( C ) 2015 , Eltex , Novosibirsk , Russia %%% @doc %%% %%% @end %%%------------------------------------------------------------------- -module(chronica_tty_backend). -behaviour(chronica_gen_backend). -behavio...
null
https://raw.githubusercontent.com/eltex-ecss/chronica/bdc9f37797cd74215a02aabedf03b09005e9b21f/src/chronica_tty_backend.erl
erlang
------------------------------------------------------------------- @doc @end -------------------------------------------------------------------
-*- coding : utf-8 -*- @author ( C ) 2015 , Eltex , Novosibirsk , Russia -module(chronica_tty_backend). -behaviour(chronica_gen_backend). -behaviour(gen_server). -include("chronica_int.hrl"). -include_lib("pt_scripts/include/pt_macro.hrl"). -export([handle_open/3, handle_close/1, handle_write/4, handle_clea...
5ea0d894e6704ea6a9bbe230cd639fc1d017d90d59d17ba8db7490e271e4684c
hzafar/pcf-interpreter
lexer.rkt
#lang racket (require parser-tools/lex (rename-in parser-tools/lex-sre [or :or] [+ :+])) (provide lex) (define-tokens tkns (IDENTIFIER)) (define-empty-tokens tkns* (OPENPAREN CLOSEPAREN OPENBRACE CLOSEBRACE FNARROW HOOKEDARROW TYPENAT ZERO SUCC IFZ BAR LAMBDA...
null
https://raw.githubusercontent.com/hzafar/pcf-interpreter/313587b2a9b7582c894f6d9953f53cf9cc7cdd67/impl1/lexer.rkt
racket
#lang racket (require parser-tools/lex (rename-in parser-tools/lex-sre [or :or] [+ :+])) (provide lex) (define-tokens tkns (IDENTIFIER)) (define-empty-tokens tkns* (OPENPAREN CLOSEPAREN OPENBRACE CLOSEBRACE FNARROW HOOKEDARROW TYPENAT ZERO SUCC IFZ BAR LAMBDA...
2bf238289c0fb41fb9f736c6a32deab31aadf19d79c622b026449bc12ca83b81
BekaValentine/SimpleFP-v2
TypeChecking.hs
{-# OPTIONS -Wall #-} -- | A unification-based type checker. module Simple.Unification.TypeChecking where import Utils.ABT import Utils.Elaborator import Utils.Pretty (pretty) import Utils.Unifier import Utils.Vars import Simple.Core.ConSig import Simple.Core.Term import Simple.Core.Type import Simple.Unificat...
null
https://raw.githubusercontent.com/BekaValentine/SimpleFP-v2/ae00ec809caefcd13664395b0ae2fc66145f6a74/src/Simple/Unification/TypeChecking.hs
haskell
# OPTIONS -Wall # | A unification-based type checker. | We can check that a type constructor exists by looking in the signature. | We can get the consig of a constructor by looking in the signature. | We can get the type of a declared name by looking in the definitions. This corresponds to the judgment @Δ ∋ n : A@...
module Simple.Unification.TypeChecking where import Utils.ABT import Utils.Elaborator import Utils.Pretty (pretty) import Utils.Unifier import Utils.Vars import Simple.Core.ConSig import Simple.Core.Term import Simple.Core.Type import Simple.Unification.Elaborator import Simple.Unification.Unification () impo...
e6c08b0fa10b1c2b8b8bde92d88c8867ed687fa48dd8db3a7d6e2088d6fc263f
acowley/hpp
Types.hs
# LANGUAGE FlexibleInstances , LambdaCase , Rank2Types # -- | The core types involved used by the pre-processor. module Hpp.Types where import Control.Exception (Exception (..)) import Control.Monad (ap) import Control.Monad.IO.Class (MonadIO, liftIO) import Control.Monad.Trans.Class (MonadTrans, lift) import Control.M...
null
https://raw.githubusercontent.com/acowley/hpp/e54be4a8da7c9812c2a5e3f7f69ffe13ad7ea638/src/Hpp/Types.hs
haskell
| The core types involved used by the pre-processor. import qualified Data.Map as M | Line numbers are represented as 'Int's | A macro binding environment. * Changing the underlying string type * Errors | Error conditions we may encounter. | Hpp can raise various parsing errors. * Free Monad Transformers | Ba...
# LANGUAGE FlexibleInstances , LambdaCase , Rank2Types # module Hpp.Types where import Control.Exception (Exception (..)) import Control.Monad (ap) import Control.Monad.IO.Class (MonadIO, liftIO) import Control.Monad.Trans.Class (MonadTrans, lift) import Control.Monad.Trans.Except (ExceptT, throwE) import Control.Monad...
7b1621ad25fb2cd4fa74398ec2ca66528eca0f183694eb01f6d88f907fcdd6a3
crategus/cl-cffi-gtk
rtest-gtk-scrollable.lisp
(def-suite gtk-scrollable :in gtk-suite) (in-suite gtk-scrollable) ;;; GtkScrollablePolicy (test gtk-scrollable-policy ;; Check the type (is-true (g-type-is-enum "GtkScrollablePolicy")) ;; Check the registered name (is (eql 'gtk-scrollable-policy (gobject::registered-enum-type "GtkScrollablePolicy"))) ;...
null
https://raw.githubusercontent.com/crategus/cl-cffi-gtk/22156e3e2356f71a67231d9868abcab3582356f3/test/rtest-gtk-scrollable.lisp
lisp
GtkScrollablePolicy Check the type Check the registered name Check the names Check the values Check the enum definition Type check Check the registered name Get the names of the interface properties. Get the interface definition --- gtk-scrollable-properties ----------------------------------------------...
(def-suite gtk-scrollable :in gtk-suite) (in-suite gtk-scrollable) (test gtk-scrollable-policy (is-true (g-type-is-enum "GtkScrollablePolicy")) (is (eql 'gtk-scrollable-policy (gobject::registered-enum-type "GtkScrollablePolicy"))) (is (equal '("GTK_SCROLL_MINIMUM" "GTK_SCROLL_NATURAL") (mapcar #'g...
7e8eff8d2f819a83274b823bd2cda9866acae2a9a69b64712ccdd938e92fc136
BranchTaken/Hemlock
u128.ml
open RudimentsInt0 module T = struct module U = struct type t = u128 let word_length = 2L let init ~f = u128_init ~f let get = u128_get end include U include Intw.MakeFU(U) end include T include Identifiable.Make(T) include Cmpable.MakeZero(T) module UZ = Convert.Make_wU_wZ(T)(Zint) le...
null
https://raw.githubusercontent.com/BranchTaken/Hemlock/53da5c0d9cf0c94d58b4391735d917518eec67fa/bootstrap/src/basis/u128.ml
ocaml
open RudimentsInt0 module T = struct module U = struct type t = u128 let word_length = 2L let init ~f = u128_init ~f let get = u128_get end include U include Intw.MakeFU(U) end include T include Identifiable.Make(T) include Cmpable.MakeZero(T) module UZ = Convert.Make_wU_wZ(T)(Zint) le...
24f3ddc8350642dd6298fbe798d6ab3ffc6c5ebca0df8d17e657ce635992d23c
links-lang/links
unitTestsLensSetOperations.ml
open OUnit2 open Links_core open UnitTestsLensCommon open Lens.Phrase.Value module Sorted = Lens.Sorted_records let print_verbose_sorted test_ctx sorted = LensTestHelpers.print_verbose test_ctx (Format.asprintf "%a" Sorted.pp_tabular sorted) let test_data_1 = Sorted.construct_full ~columns:[ "a"; "b"; "str" ]...
null
https://raw.githubusercontent.com/links-lang/links/e2ae13de8a9bd253e0972d564bc14eb58c83b34a/tests/unit/lens/unitTestsLensSetOperations.ml
ocaml
the project onto should drop 'nonexistant' let str = SortedRecords.to_string_tabular recs in print_endline ("\n" ^ str);
open OUnit2 open Links_core open UnitTestsLensCommon open Lens.Phrase.Value module Sorted = Lens.Sorted_records let print_verbose_sorted test_ctx sorted = LensTestHelpers.print_verbose test_ctx (Format.asprintf "%a" Sorted.pp_tabular sorted) let test_data_1 = Sorted.construct_full ~columns:[ "a"; "b"; "str" ]...
583e89d07721847ede7454b188a114ca02eb8a1944e94ff89062ccc9d5d6b799
isovector/ld52
JuicyPixels.hs
module SDL.JuicyPixels where import qualified Codec.Picture as P import qualified Data.Vector.Storable as V import Foreign.C.Types import SDL (Texture, Surface) import SDL.Vect import qualified SDL.Video.Renderer as R loadJuicySurface :: FilePath -> IO Surface loadJuicySurface fp = do ...
null
https://raw.githubusercontent.com/isovector/ld52/31ccd76f7f706e01e0e9961f9aaee51448f10ce4/src/SDL/JuicyPixels.hs
haskell
module SDL.JuicyPixels where import qualified Codec.Picture as P import qualified Data.Vector.Storable as V import Foreign.C.Types import SDL (Texture, Surface) import SDL.Vect import qualified SDL.Video.Renderer as R loadJuicySurface :: FilePath -> IO Surface loadJuicySurface fp = do ...
43d76a27dd21d2cb3d6d3c738f88aa12427166d7ca0a91e6cce6864023f7b161
exercism/erlang
example.erl
-module(example). -export([make/1]). make(N) -> Self = self(), Rows = Cols = lists:seq(1,N), lists:foreach( fun(Y) -> spawn_link(fun() -> Self ! {Y, [n(X,Y,N)||X<-Cols]} end) end, Rows), lists:map(fun(Y) -> ...
null
https://raw.githubusercontent.com/exercism/erlang/57ac2707dae643682950715e74eb271f732e2100/exercises/practice/spiral-matrix/.meta/example.erl
erlang
-module(example). -export([make/1]). make(N) -> Self = self(), Rows = Cols = lists:seq(1,N), lists:foreach( fun(Y) -> spawn_link(fun() -> Self ! {Y, [n(X,Y,N)||X<-Cols]} end) end, Rows), lists:map(fun(Y) -> ...
c5b4c58bc75a1b36b145b63c02d423d80cddfb61149ba0dfbc0f805f6feea9dd
joergen7/cf_client
cuneiform_parse_test.erl
%% -*- erlang -*- %% %% cf_client: Cuneiform client implementation %% Copyright 2015 - 2019 < > %% 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 requi...
null
https://raw.githubusercontent.com/joergen7/cf_client/ac00cecc6b7c48d25c4bd97c4ce7f7d9798ada93/test/cuneiform_parse_test.erl
erlang
-*- erlang -*- cf_client: Cuneiform client implementation 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 impl...
Copyright 2015 - 2019 < > Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author < > 2013 - 2020 -module( cuneiform_parse_test ). -include_lib( "eunit/include/eunit.hrl" ). -import( cuneiform_parse, [parse/1]...
ed154ef7b45183a301abd5f78ec1591204dce2ccdf1377ff163d22fe88dfdc71
glguy/advent
11.hs
# Language ImportQualifiedPost , QuasiQuotes # | Module : Main Description : Day 11 solution Copyright : ( c ) , 2019 License : ISC Maintainer : < > Module : Main Description : Day 11 solution Copyright : (c) Eric Mertens, 2019 License : ISC Maintainer : <> -} module M...
null
https://raw.githubusercontent.com/glguy/advent/fab62e574c4768e06523532120e13068804e0723/solutions/src/2019/11.hs
haskell
| >>> :main | Run a painter robot to see what it paints. ^ robot's location ^ robot's direction ^ control program effect ^ starting painted coordinates ^ final painted coordinates | Compute the turn function given a robot's output. ^ robot turn output | Character represe...
# Language ImportQualifiedPost , QuasiQuotes # | Module : Main Description : Day 11 solution Copyright : ( c ) , 2019 License : ISC Maintainer : < > Module : Main Description : Day 11 solution Copyright : (c) Eric Mertens, 2019 License : ISC Maintainer : <> -} module M...
7454d7febcb3091cd0fb2ac403f10b03f50e336c74514f4d2b1fbfc20b29e198
TDacik/Deadlock
eva_wrapper.mli
Imperative wrapper over EVA . * * There are two instances of the wrapper : * a ) CIL ( @see cil_wrapper ) * b ) EVA ( @see eva_wrapper ) * * Usage of wrapper is following : * 1 . Active wrapper is by default CIL . EVA wrapper can be used by calling init ( ) . * 2 . All communication wi...
null
https://raw.githubusercontent.com/TDacik/Deadlock/e241195e08d337c7de175bd44d7e5c7ea90886aa/src/eva_wrapper/eva_wrapper.mli
ocaml
* Basic functionality of wrapper * Assuming statement is thread create, return initial state of created thread
Imperative wrapper over EVA . * * There are two instances of the wrapper : * a ) CIL ( @see cil_wrapper ) * b ) EVA ( @see eva_wrapper ) * * Usage of wrapper is following : * 1 . Active wrapper is by default CIL . EVA wrapper can be used by calling init ( ) . * 2 . All communication wi...
c3fd551bfe8fd1a9cc55ff8f2290fc7dd928a319c9aea9c4a446804d80c18db6
RDTK/generator
package.lisp
;;;; package.lisp --- Package definition for the deployment.jenkins module. ;;;; Copyright ( C ) 2018 , 2019 Jan Moringen ;;;; Author : < > (cl:defpackage #:build-generator.deployment.jenkins (:use #:cl #:alexandria #:let-plus #:more-conditions) (:local-nicknames (#:model #:build-generator...
null
https://raw.githubusercontent.com/RDTK/generator/8d9e6e47776f2ccb7b5ed934337d2db50ecbe2f5/src/deployment/jenkins/package.lisp
lisp
package.lisp --- Package definition for the deployment.jenkins module.
Copyright ( C ) 2018 , 2019 Jan Moringen Author : < > (cl:defpackage #:build-generator.deployment.jenkins (:use #:cl #:alexandria #:let-plus #:more-conditions) (:local-nicknames (#:model #:build-generator.model) (#:var #:build-generator.model.variables) (#:project #:build-generat...
bb9f34ff7991747e19ab43a2747410b5510cf9bee2ebb27902b0acfe6901bbae
unisonweb/unison
Hover.hs
# LANGUAGE DataKinds # # LANGUAGE PolyKinds # module Unison.LSP.Hover where import Control.Lens hiding (List) import Control.Monad.Reader import qualified Data.Text as Text import Language.LSP.Types import Language.LSP.Types.Lens import qualified Unison.ABT as ABT import qualified Unison.HashQualified as HQ import Un...
null
https://raw.githubusercontent.com/unisonweb/unison/59acc0cbe429492a99bfebf2b783fc2fa3967f75/unison-cli/src/Unison/LSP/Hover.hs
haskell
| Hover help handler TODO: * Add docs * Resolve fqn on hover | Get the type for term literals.
# LANGUAGE DataKinds # # LANGUAGE PolyKinds # module Unison.LSP.Hover where import Control.Lens hiding (List) import Control.Monad.Reader import qualified Data.Text as Text import Language.LSP.Types import Language.LSP.Types.Lens import qualified Unison.ABT as ABT import qualified Unison.HashQualified as HQ import Un...
cd755840280604080d73267428fc4add7826eb8712d281d711bd7e06d1fe2ca2
fdserr/clotilde
core.clj
(ns clotilde.core (:use clotilde.innards clotilde.tools clj-tuple)) ;; TODO ========================= ;; ;; Bugs: ;; - ? ;; ;; Tests: ;; - Primes finder ;; - Heavy loading ;; - Exceptions in all ops (repl-test ok) ;; - Transactions in all ops (repl-test ok) ;; - Side effects in all ops (r...
null
https://raw.githubusercontent.com/fdserr/clotilde/4e97254720ed3fb565a3ea1a5a9738913544b9da/src/clotilde/core.clj
clojure
TODO ========================= Bugs: - ? Tests: - Primes finder - Heavy loading - Exceptions in all ops (repl-test ok) - Transactions in all ops (repl-test ok) - Side effects in all ops (repl-test ok) Doc: - ? Features: - print rd/in queues - tag with thread id - print timeline...
(ns clotilde.core (:use clotilde.innards clotilde.tools clj-tuple)) (defn initialize! "Evaluates to nil. vectors: a vector of vectors. ([] (init-local)) ([vectors] (init-local vectors))) (defmacro out! (side effects ok, transactions ok). Evaluates to a tuple form [expr1-result expr2-re...
7d035e2792dfca736a27dc725bdb144b026d19643a6a6f6dc23603beaee0d7b0
DerekCuevas/interview-cake-clj
core_test.clj
(ns highest-product-of-three.core-test (:require [clojure.test :refer :all] [highest-product-of-three.core :refer :all])) (def highest-product-of-1 (partial highest-product-of-k 1)) (def highest-product-of-2 (partial highest-product-of-k 2)) (def highest-product-of-3 (partial highest-product-of-k 3)) (de...
null
https://raw.githubusercontent.com/DerekCuevas/interview-cake-clj/f17d3239bb30bcc17ced473f055a9859f9d1fb8d/highest-product-of-three/test/highest_product_of_three/core_test.clj
clojure
(ns highest-product-of-three.core-test (:require [clojure.test :refer :all] [highest-product-of-three.core :refer :all])) (def highest-product-of-1 (partial highest-product-of-k 1)) (def highest-product-of-2 (partial highest-product-of-k 2)) (def highest-product-of-3 (partial highest-product-of-k 3)) (de...
55fe83acafec55786b1a5044b5fa13a541f9ae1c5281dbce9c4e85c57afcd5c8
Gabriella439/turtle
Options.hs
# LANGUAGE CPP # # LANGUAGE GeneralizedNewtypeDeriving # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # -- | Example usage of this module: -- -- > -- options.hs -- > -- > {-# LANGUAGE OverloadedStrings #-} -- > > import Turtle -- > > parser : : ( Text , Int ) > parser = ( , ) < $ > optText ...
null
https://raw.githubusercontent.com/Gabriella439/turtle/18bd600bbc87c7b32c1a756a45a732c6bbcf1ed1/src/Turtle/Options.hs
haskell
# LANGUAGE OverloadedStrings # | Example usage of this module: > -- options.hs > > {-# LANGUAGE OverloadedStrings #-} > > > <*> optInt "age" 'a' "Your current age" > > main = do > (name, age) <- options "Greeting script" parser > echo (repr (format ("Hello there, "%s) name)) name --...
# LANGUAGE CPP # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE ScopedTypeVariables # > import Turtle > parser : : ( Text , Int ) > parser = ( , ) < $ > optText " name " ' n ' " Your first name " > echo ( repr ( format ( " You are " % d% " years old " ) age ) ) > Hello there , > You are 42 years...
b11be08db73c1ed553f7e09525a612bab3ea358132f5f79990d1ea77a4351b73
racket/drracket
bullet.rkt
#lang racket (require racket/gui racket/class) (provide bullet-snip% get-bullet-width bullet-size bullet-snip-class) (define snip-class-name "(lib \"bullet-snip.rkt\" \"browser\")") (define bullet-size (make-parameter (let ([s (send (send (send (make-object text%) get-style-...
null
https://raw.githubusercontent.com/racket/drracket/2d7c2cded99e630a69f05fb135d1bf7543096a23/drracket/browser/private/bullet.rkt
racket
#lang racket (require racket/gui racket/class) (provide bullet-snip% get-bullet-width bullet-size bullet-snip-class) (define snip-class-name "(lib \"bullet-snip.rkt\" \"browser\")") (define bullet-size (make-parameter (let ([s (send (send (send (make-object text%) get-style-...
9b56cd7d1d3915edfdad753d74b3421614f9f67e49f521efa477a08cc3fca4b1
capnproto/capnp-ocaml
main.ml
module Int = Base.Int let printf = Printf.printf let fprintf = Printf.fprintf module BenchmarkRunner(BM : Methods.BENCHMARK_SIG) = struct let f mode compression iters = if mode = "client" then BM.sync_client ~input_fd:Unix.stdin ~output_fd:Unix.stdout ~compression ~iters else if mode = "serve...
null
https://raw.githubusercontent.com/capnproto/capnp-ocaml/dda3d811aa7734110d7af051465011f1f823ffb9/src/benchmark/main.ml
ocaml
module Int = Base.Int let printf = Printf.printf let fprintf = Printf.fprintf module BenchmarkRunner(BM : Methods.BENCHMARK_SIG) = struct let f mode compression iters = if mode = "client" then BM.sync_client ~input_fd:Unix.stdin ~output_fd:Unix.stdout ~compression ~iters else if mode = "serve...
ae670ff9ef15f9a2920c99713b63658570c5c94a25428930cac6f95c01c605bc
sneeuwballen/zipperposition
LLProof_check.mli
This file is free software , part of Zipperposition . See file " license " for more details . (** {1 Check LLProof} *) * TODO : the checker itself . GOAL : A tiny Tableau - like prover that tries to re - prove each step in a simple way . GOAL: A tiny Tableau-like prover that tries to re-prove e...
null
https://raw.githubusercontent.com/sneeuwballen/zipperposition/7f1455fbe2e7509907f927649c288141b1a3a247/src/proofs/LLProof_check.mli
ocaml
* {1 Check LLProof} * steps that were successfully checked * steps that failed * steps skipped because of theory tags * steps skipped because they are trivial * steps skipped, not checked
This file is free software , part of Zipperposition . See file " license " for more details . * TODO : the checker itself . GOAL : A tiny Tableau - like prover that tries to re - prove each step in a simple way . GOAL: A tiny Tableau-like prover that tries to re-prove each step in a simple ...
007ac96f360e09c7303f91b8b94fee541367ccc9e2f1bb974b00b4a9b48e97e3
ssm-lang/sslang
Test.hs
| Defines some common utilities for writing Hspec tests . TODO : display the pretty - printed instance of items , for better test output . TODO: display the pretty-printed instance of items, for better test output. -} module Sslang.Test ( module Common.Compiler , module Common.Default , module Data.String...
null
https://raw.githubusercontent.com/ssm-lang/sslang/51e88ebbd3c3b430856b959049eca084a0641d5c/test/lib/Sslang/Test.hs
haskell
| Expect that some 'Pass' must succeed without failure. | Expect that some 'Pass' must produce a particular value. | Expect that some 'Pass' successfully produces the same normalized value as another. | Expect that some 'Pass' successfully produces the same value as another. | Expect that some 'Pass' successfull...
| Defines some common utilities for writing Hspec tests . TODO : display the pretty - printed instance of items , for better test output . TODO: display the pretty-printed instance of items, for better test output. -} module Sslang.Test ( module Common.Compiler , module Common.Default , module Data.String...
bf53adc63c4059253db1ff437c7878108aaa3117200e76f95fcd3fd6cbcf7e49
pokepay/aws-sdk-lisp
machinelearning.lisp
;; DO NOT EDIT: File is generated by AWS-SDK/GENERATOR. (uiop:define-package #:aws-sdk/services/machinelearning (:use) (:use-reexport #:aws-sdk/services/machinelearning/api))
null
https://raw.githubusercontent.com/pokepay/aws-sdk-lisp/836b87df520391478a19462443342dc56f4b3f2c/services/machinelearning.lisp
lisp
DO NOT EDIT: File is generated by AWS-SDK/GENERATOR.
(uiop:define-package #:aws-sdk/services/machinelearning (:use) (:use-reexport #:aws-sdk/services/machinelearning/api))
122527ad49a2e355a3111e2a6a29be5c4de11e8cdad7937b51fe1a7d441a2c47
ronwalf/HTN-Translation
ADLTranslation.hs
{-# OPTIONS_GHC -freduction-depth=30 -Wall #-} # LANGUAGE FlexibleContexts , FlexibleInstances , FunctionalDependencies , IncoherentInstances , MultiParamTypeClasses , OverloadedStrings , ParallelListComp , ScopedTypeVariables , TypeOperators # FlexibleContexts, Fle...
null
https://raw.githubusercontent.com/ronwalf/HTN-Translation/dfe39a9444c944e2efd48306e122a17d6c0f2d89/src/HTNTranslation/ADLTranslation.hs
haskell
# OPTIONS_GHC -freduction-depth=30 -Wall # import qualified Data.Map as Map import Text.Printf Types Predicates ------------- ------------- Translation state Add action to state Copy basic domain info and create task start/control predicates ------------------- Translate problem ------------------- -...
# LANGUAGE FlexibleContexts , FlexibleInstances , FunctionalDependencies , IncoherentInstances , MultiParamTypeClasses , OverloadedStrings , ParallelListComp , ScopedTypeVariables , TypeOperators # FlexibleContexts, FlexibleInstances, FunctionalDependencies, IncoherentIns...
e58bd19b8264a68a379e060938f488b3f6de0d7feb9ec03e2525039b6872221f
threatgrid/ctia
version.clj
(ns ctia.version (:require [clojure.java [io :as io] [shell :as shell]] [clojure.string :as st] [ctia.domain.entities :refer [schema-version]])) (def version-file "ctia-version.txt") (def current-version (memoize #(if-let [built-version (io/resource version-file)]...
null
https://raw.githubusercontent.com/threatgrid/ctia/32857663cdd7ac385161103dbafa8dc4f98febf0/src/ctia/version.clj
clojure
(ns ctia.version (:require [clojure.java [io :as io] [shell :as shell]] [clojure.string :as st] [ctia.domain.entities :refer [schema-version]])) (def version-file "ctia-version.txt") (def current-version (memoize #(if-let [built-version (io/resource version-file)]...
5ca9234d7aa8a5d88f7b82cf2d819ce5b65d8ae0d9b7289eb0932685647edcd8
clojure/core.typed
annotate_tag.clj
Copyright ( c ) , Rich Hickey & contributors . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be b...
null
https://raw.githubusercontent.com/clojure/core.typed/f5b7d00bbb29d09000d7fef7cca5b40416c9fa91/typed/analyzer.js/src/clojure/core/typed/analyzer/js/passes/annotate_tag.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) , Rich Hickey & contributors . (ns clojure.core.typed.analyzer.js.passes.annotate-tag) (defmulti -annotate-tag :op) (defmethod -annotate-tag :seq [ast] (assoc ast :tag 'cljs.core/IList)) (defmethod -annotate-tag :vector [ast] (assoc ast :tag 'cljs.core/IVector)) (defmethod -annotate-t...
e9b550381d6d163eb20f1249fdaefbe2c0ae668b7cea0450f7d7abe3f06fbec2
riemann/riemann
rabbitmq_test.clj
(ns riemann.transport.rabbitmq-test (:require [riemann.common :refer [event map-matches?]] [riemann.config :refer [service!]] [riemann.core :as core] [riemann.index :as index] [riemann.service :as service] [riemann.transport.rabbitmq :refer :all] ...
null
https://raw.githubusercontent.com/riemann/riemann/1649687c0bd913c378701ee0b964a9863bde7c7c/test/riemann/transport/rabbitmq_test.clj
clojure
success test failure test
(ns riemann.transport.rabbitmq-test (:require [riemann.common :refer [event map-matches?]] [riemann.config :refer [service!]] [riemann.core :as core] [riemann.index :as index] [riemann.service :as service] [riemann.transport.rabbitmq :refer :all] ...
b096a5aad50144cc94bc57b827128bba9b36ad29041375968188c552729fcf1a
slipstream/SlipStreamServer
email.clj
(ns com.sixsq.slipstream.ssclj.resources.email " This resource corresponds to an email address. The resource contains only the common attributes, a syntactically valid email address, and a boolean flag that indicates if the email address has been validated. When the address has not been validated, a 'validate' actio...
null
https://raw.githubusercontent.com/slipstream/SlipStreamServer/3ee5c516877699746c61c48fc72779fe3d4e4652/cimi/src/com/sixsq/slipstream/ssclj/resources/email.clj
clojure
available operations; disallows editing of resource, adds validate action for unvalidated emails collection actions initialization
(ns com.sixsq.slipstream.ssclj.resources.email " This resource corresponds to an email address. The resource contains only the common attributes, a syntactically valid email address, and a boolean flag that indicates if the email address has been validated. When the address has not been validated, a 'validate' actio...
d9f96033a3113e183bfdc3075060f3f092350da7ecb3c3f12ce46128fafb96d9
coq/coq
opaqueproof.mli
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * *...
null
https://raw.githubusercontent.com/coq/coq/b35628733a0131a9cc648793c1e33e222d7958c5/kernel/opaqueproof.mli
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team // * This file is distributed under the terms of the * (see LICENSE file for the text of the license) ************************************...
v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser Gener...
e65542c2f46c4754fada112424c2209e5522b10981098f4dd2f153bef9dc251b
crategus/cl-cffi-gtk
arrow-button.lisp
Example Arrow button ( 2021 - 6 - 10 ) (in-package :gtk-example) (defun create-arrow-button (arrow-type shadow-type) (let (;; Create a button (button (make-instance 'gtk-button ;; Add a small margin around the button :margin 3 Make big button...
null
https://raw.githubusercontent.com/crategus/cl-cffi-gtk/b613a266a5f8e7f477b66a33d4df84fbed3dc7bc/demo/gtk-example/arrow-button.lisp
lisp
Create a button Add a small margin around the button Add an arrow to the button Add a tooltip to the button Create the main window Create a grid for the buttons Create buttons with an arrow and add the buttons to the grid Add the grid to the window Show the window
Example Arrow button ( 2021 - 6 - 10 ) (in-package :gtk-example) (defun create-arrow-button (arrow-type shadow-type) (button (make-instance 'gtk-button :margin 3 Make big buttons of size 75 x 75 :width-request 75 ...
f88bcd0cda387db880dee848fb3dd60bdebce50aa3a1f4e74eb61cfb884366ba
jellelicht/guix
ui.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2012 , 2013 , 2014 , 2015 , 2016 < > Copyright © 2013 < > Copyright © 2013 < > Copyright © 2014 < > Copyright © 2014 < > Copyright © 2014 , 2015 < > Copyright © 2015 < > Copyright © 2015 > ;;; ;;; This file is p...
null
https://raw.githubusercontent.com/jellelicht/guix/83cfc9414fca3ab57c949e18c1ceb375a179b59c/guix/ui.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 © 2012 , 2013 , 2014 , 2015 , 2016 < > Copyright © 2013 < > Copyright © 2013 < > Copyright © 2014 < > Copyright © 2014 < > Copyright © 2014 , 2015 < > Copyright © 2015 < > Copyright © 2015 > under the terms of the GNU General Public License as published by You sho...
11d35ee4dad977f623f62d665a0405f35f1e3421688da97e626d1a77c70b17a1
metaocaml/ber-metaocaml
t320-gc-3.ml
TEST include tool - ocaml - lib flags = " -w a " ocaml_script_as_argument = " true " * setup - ocaml - build - env * * include tool-ocaml-lib flags = "-w a" ocaml_script_as_argument = "true" * setup-ocaml-build-env ** ocaml *) open Lib;; let rec f n = if n <= 0 then [] else n :: f (n-1) in let l = f ...
null
https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/testsuite/tests/tool-ocaml/t320-gc-3.ml
ocaml
TEST include tool - ocaml - lib flags = " -w a " ocaml_script_as_argument = " true " * setup - ocaml - build - env * * include tool-ocaml-lib flags = "-w a" ocaml_script_as_argument = "true" * setup-ocaml-build-env ** ocaml *) open Lib;; let rec f n = if n <= 0 then [] else n :: f (n-1) in let l = f ...