_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 |
|---|---|---|---|---|---|---|---|---|
da9edf8eeec792bcf798ddbe8683b57cfd0094eeb6fa18667f4d5e28f8cfb267 | gebi/jungerl | prfHost.erl | %%%-------------------------------------------------------------------
%%% File : prfHost.erl
Author : Mats < qthmacr@duna283 >
%%% Description :
%%%
Created : 2 Dec 2003 by Mats < qthmacr@duna283 >
%%%-------------------------------------------------------------------
-module(prfHost).
-export([start/1,... | null | https://raw.githubusercontent.com/gebi/jungerl/8f5c102295dbe903f47d79fd64714b7de17026ec/lib/prf/src/prfHost.erl | erlang | -------------------------------------------------------------------
File : prfHost.erl
Description :
-------------------------------------------------------------------
internal
started from unix shell
this runs in its own process since it can block
nettick_time seconds (if the target is hung) | Author : Mats < qthmacr@duna283 >
Created : 2 Dec 2003 by Mats < qthmacr@duna283 >
-module(prfHost).
-export([start/1, start/3, stop/1]).
-record(ld, {node, server=[], collectors, consumer, consumer_data}).
-include("prf.hrl").
start([Name, Node, Consumer]) ->
link(start(Name, Node, Consumer)),
r... |
48305c7331b40b35ded94da6e18384b5e6bd2e1069687ce529dca7d4c8121e55 | qmuli/qmuli | Event.hs | {-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
module Qi.Config.AWS.S3.Event where
import Control.Lens
import Control.Monad.Fail (fail)
import Data.Aeson
import Data.Aeson.Types
import Data.Hashable
import qualified Data.Text ... | null | https://raw.githubusercontent.com/qmuli/qmuli/6ca147f94642b81ab3978d502397efb60a50215b/library/Qi/Config/AWS/S3/Event.hs | haskell | # LANGUAGE NamedFieldPuns #
# LANGUAGE OverloadedStrings # |
module Qi.Config.AWS.S3.Event where
import Control.Lens
import Control.Monad.Fail (fail)
import Data.Aeson
import Data.Aeson.Types
import Data.Hashable
import qualified Data.Text as T
import Protolude
import Qi.Config.AWS
i... |
e317ad2745fbb325ab76c4596514b2447879c40bf0238f4177ed64be8b8eab2a | sunlightlabs/echelon | text.clj | (ns echelon.text
(:require [instaparse.core :as insta]
[clojure.string :as s]
[clojure.java.io :as io]
[taoensso.timbre :as timbre]))
(timbre/refer-timbre)
(def single-parse
(-> "parser.bnf" io/resource slurp insta/parser))
(def all-parses
(partial insta/parses single-parse)... | null | https://raw.githubusercontent.com/sunlightlabs/echelon/c3645fd6fa8447772d667e8ba2a8fe47e2b7c7bf/src/echelon/text.clj | clojure | (ns echelon.text
(:require [instaparse.core :as insta]
[clojure.string :as s]
[clojure.java.io :as io]
[taoensso.timbre :as timbre]))
(timbre/refer-timbre)
(def single-parse
(-> "parser.bnf" io/resource slurp insta/parser))
(def all-parses
(partial insta/parses single-parse)... | |
3f8b25de2d449eff66b20569c7d22cccf2281520b2aaad182e748850d627c243 | ekmett/category-extras | Para.hs | {-# OPTIONS_GHC -fglasgow-exts #-}
-----------------------------------------------------------------------------
-- |
Module : Control . Morphism . Para
Copyright : ( C ) 2008
-- License : BSD-style (see the file LICENSE)
--
Maintainer : < >
-- Stability : experimental
-- Portability... | null | https://raw.githubusercontent.com/ekmett/category-extras/f0f3ca38a3dfcb49d39aa2bb5b31b719f2a5b1ae/Control/Morphism/Para.hs | haskell | # OPTIONS_GHC -fglasgow-exts #
---------------------------------------------------------------------------
|
License : BSD-style (see the file LICENSE)
Stability : experimental
Portability : non-portable (rank-2 polymorphism)
--------------------------------------------------------------------------
* ... | Module : Control . Morphism . Para
Copyright : ( C ) 2008
Maintainer : < >
module Control.Morphism.Para
( Para
, ParaT
, distParaT
, para, g_para
, prepro_para, g_prepro_para
) where
import Control.Comonad
import Control.Comonad.Reader
import Control.Functor.Algebra
import Control.... |
7eb3e65267af1ae03458d613cd3c7903a68800baf8cad1c8289d0baef8bbddd6 | deadeyejoe/fabrikk | interface.cljc | (ns fabrikk.directive-core.interface
(:require [clojure.spec.alpha :as s]
[fabrikk.directive-core.core :as core]))
(s/def ::directive ::core/directive)
(def type-kw core/directive-type-kw)
(defn ->directive
([type-kw] (core/->directive type-kw))
([type-kw opts] (core/->directive type-kw opts)))
(d... | null | https://raw.githubusercontent.com/deadeyejoe/fabrikk/73a4a50eebfd0c723fa3c33fd54bd9dd7e276441/components/directive-core/src/fabrikk/directive_core/interface.cljc | clojure | (ns fabrikk.directive-core.interface
(:require [clojure.spec.alpha :as s]
[fabrikk.directive-core.core :as core]))
(s/def ::directive ::core/directive)
(def type-kw core/directive-type-kw)
(defn ->directive
([type-kw] (core/->directive type-kw))
([type-kw opts] (core/->directive type-kw opts)))
(d... | |
c8ae4c4a1576997f7d6116d607e526e1979ba07612ee23996203c44274b44f57 | lisp-korea/sicp2014 | ex-2-20.scm | ;; ex 2.20. same-parity
(define (same-parity-iter x . y)
(let ((parity (even? x)))
(define (iter y-list p-list)
(if (null? y-list)
p-list
(if (eqv? parity (even? (car y-list)))
(iter (cdr y-list) (cons p-list (car y-list)))
(iter (cdr y-list) p-list))))
(... | null | https://raw.githubusercontent.com/lisp-korea/sicp2014/9e60f70cb84ad2ad5987a71aebe1069db288b680/vvalkyrie/2.2/ex-2-20.scm | scheme | ex 2.20. same-parity
=> (1 3 5 7) |
(define (same-parity-iter x . y)
(let ((parity (even? x)))
(define (iter y-list p-list)
(if (null? y-list)
p-list
(if (eqv? parity (even? (car y-list)))
(iter (cdr y-list) (cons p-list (car y-list)))
(iter (cdr y-list) p-list))))
(iter y (list x))))
(def... |
f42547cd8739032595fbba49e798715c05fc637d40b89107c59c7d839821163e | dbuenzli/hyperbib | entity.mli | ---------------------------------------------------------------------------
Copyright ( c ) 2021 University of Bern . All rights reserved .
Distributed under the ISC license , see terms at the end of the file .
---------------------------------------------------------------------------
Copyright (c) 20... | null | https://raw.githubusercontent.com/dbuenzli/hyperbib/bea0ee2c35fac11fdb856c914edd846fb4a8f709/src/schema/entity.mli | ocaml | * Database entities model commonalities.
* The type for identifiable entities.
* The type for entity identifiers.
* The type for entities.
* [id e] the identifier of entity [e].
* [table] is the table of entities.
* The type for publishable entities.
An identifiable entity with a {!PUBLICABLE.public} column.... | ---------------------------------------------------------------------------
Copyright ( c ) 2021 University of Bern . All rights reserved .
Distributed under the ISC license , see terms at the end of the file .
---------------------------------------------------------------------------
Copyright (c) 20... |
ab781dc2c40e3032cd4b46e556d8674e445adfa0e8a88dd9fa5bac235e7825b9 | ptaoussanis/tukey | sstats.cljc | (ns taoensso.tukey.sstats
"SummaryStats stuff.
Private ns, implementation detail."
{:author "Peter Taoussanis (@ptaoussanis)"}
(:require
[taoensso.encore :as enc :refer [have have? have!]]
[taoensso.tukey.impl :as impl])
#?(:clj (:import [java.util LinkedList])))
TODO
- Add SummaryStatsRolling ( r... | null | https://raw.githubusercontent.com/ptaoussanis/tukey/7ef64a2564ae6c72a5d658ddef2ebe7da1f15752/src/taoensso/tukey/sstats.cljc | clojure | - Field names chosen to avoid shadowing.
- Includes -sum data to support merging.
Before (possibly mutable) sort
nx w/o bessel-correction
xlast1 (.-xlast ss1)
.
No apparent advantage in using `xbar3` asap (?).
These are pretty rough approximations. More sophisticated
approaches no... | (ns taoensso.tukey.sstats
"SummaryStats stuff.
Private ns, implementation detail."
{:author "Peter Taoussanis (@ptaoussanis)"}
(:require
[taoensso.encore :as enc :refer [have have? have!]]
[taoensso.tukey.impl :as impl])
#?(:clj (:import [java.util LinkedList])))
TODO
- Add SummaryStatsRolling ( r... |
a6ab6556f47cfccff2242e5aa1381bbc678117f75469fdc41be71ead92b4f293 | melange-re/melange | bsb_ninja_targets.ml | Copyright ( C ) 2015 - 2016 Bloomberg Finance L.P.
* Copyright ( C ) 2017 - , Authors of ReScript
* This program is free software : you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , either version 3 of the... | null | https://raw.githubusercontent.com/melange-re/melange/bcaf468572532f255262999d78af80585f25ecc0/mel/bsb_ninja_targets.ml | ocaml | * [new_content] should start end finish with newline
locked region not added yet
there is one, hit it everytime,
should be fixed point
| Copyright ( C ) 2015 - 2016 Bloomberg Finance L.P.
* Copyright ( C ) 2017 - , Authors of ReScript
* This program is free software : you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , either version 3 of the... |
f130bf09c12c3b7e087fc1d2caa20f11155a5dc745defc961234b58dc6cde45c | xvw/preface | continuation.ml | open Preface_core.Fun.Infix
type 'a t = { run : 'r. ('a -> 'r) -> 'r }
let pure c = { run = (fun k -> k c) }
let map f c = { run = (fun k -> c.run @@ (f %> k)) }
module Functor = Preface_make.Functor.Via_map (struct
type nonrec 'a t = 'a t
let map = map
end)
module Applicative = Preface_make.Applicative.Via_pu... | null | https://raw.githubusercontent.com/xvw/preface/7253e43d4d88a4b2205f701029207c6cf9036eed/lib/preface_stdlib/continuation.ml | ocaml | open Preface_core.Fun.Infix
type 'a t = { run : 'r. ('a -> 'r) -> 'r }
let pure c = { run = (fun k -> k c) }
let map f c = { run = (fun k -> c.run @@ (f %> k)) }
module Functor = Preface_make.Functor.Via_map (struct
type nonrec 'a t = 'a t
let map = map
end)
module Applicative = Preface_make.Applicative.Via_pu... | |
1fcc3326ef6ccecba44cc89e10ce3acd9c76d5b6ca618ce585e4a6e3e96161fb | simplex-chat/simplex-chat | Styled.hs | # LANGUAGE FlexibleInstances #
# LANGUAGE LambdaCase #
{-# LANGUAGE OverloadedStrings #-}
module Simplex.Chat.Styled
( StyledString (..),
StyledFormat (..),
styleMarkdown,
styleMarkdownList,
unStyle,
sLength,
sShow,
sTake,
)
where
import Data.ByteString.Char8 (ByteString)
import qualif... | null | https://raw.githubusercontent.com/simplex-chat/simplex-chat/b0277088289b40ea03d2a9f86f0058ac9e0a582c/src/Simplex/Chat/Styled.hs | haskell | # LANGUAGE OverloadedStrings # | # LANGUAGE FlexibleInstances #
# LANGUAGE LambdaCase #
module Simplex.Chat.Styled
( StyledString (..),
StyledFormat (..),
styleMarkdown,
styleMarkdownList,
unStyle,
sLength,
sShow,
sTake,
)
where
import Data.ByteString.Char8 (ByteString)
import qualified Data.ByteString.Char8 as B
impo... |
19d0a53f07e7d14d63c9d2fc835aecb431a8a4128ebe9c568ec01aab14726a8b | jarohen/yoyo | protocols_test.clj | (ns yoyo.system.protocols-test
(:require [yoyo.system.protocols :refer :all]
[cats.core :as c]
[clojure.test :refer :all]))
(defn ->dep [v]
(c/return dependent-monad v))
(deftest the-tests
(is (= (let [f (:f (->NestedDependent :foo (comp ->dep :foo)))]
(f {:foo :blah}))
... | null | https://raw.githubusercontent.com/jarohen/yoyo/b579d21becd06b5330dee9f5963708db03ce1e25/core/test/yoyo/system/protocols_test.clj | clojure | (ns yoyo.system.protocols-test
(:require [yoyo.system.protocols :refer :all]
[cats.core :as c]
[clojure.test :refer :all]))
(defn ->dep [v]
(c/return dependent-monad v))
(deftest the-tests
(is (= (let [f (:f (->NestedDependent :foo (comp ->dep :foo)))]
(f {:foo :blah}))
... | |
a2b58490d57e5893cab8494fc6dfaf139387031ae408048d17511e6f6c596fe5 | janestreet/core_unix | error_checking_mutex.mli | open! Import
type t = Mutex.t
val create : unit -> t
val equal : t -> t -> bool
(** [lock mtx] locks [mtx], possibly waiting for it to be released
first by another thread.
@raise Unix_error if [lock] attempts to acquire [mtx] recursively.
*)
val lock : t -> unit
(** [try_lock] is like [lock], but always re... | null | https://raw.githubusercontent.com/janestreet/core_unix/a051098a918b950e9d0a5da7248f1bbfb51388e5/error_checking_mutex/src/error_checking_mutex.mli | ocaml | * [lock mtx] locks [mtx], possibly waiting for it to be released
first by another thread.
@raise Unix_error if [lock] attempts to acquire [mtx] recursively.
* [try_lock] is like [lock], but always returns immediately. If the calling thread or
another one already has the mutex it returns [`Already_held_by... | open! Import
type t = Mutex.t
val create : unit -> t
val equal : t -> t -> bool
val lock : t -> unit
val try_lock : t -> [ `Already_held_by_me_or_other | `Acquired ]
val unlock : t -> unit
val critical_section : t -> f:(unit -> 'a) -> 'a
val synchronize : ('a -> 'b) -> 'a -> 'b
* [ update_signal mtx cnd ~f ] up... |
036feca4d6bbede2d3423bbc1b4cd5ea21003c02b2bdadee51f9fa7f0164c0ce | haskell/hackage-server | ReverseDependenciesTest.hs | # LANGUAGE OverloadedStrings , NamedFieldPuns , TypeApplications , ScopedTypeVariables #
module Main where
import qualified Data.Array as Arr
import qualified Data.Bimap as Bimap
import Data.Foldable (for_)
import Data.List (partition, foldl')
import qualified Data.Map as Map
import qualified Data.... | null | https://raw.githubusercontent.com/haskell/hackage-server/6384905db73bd73740d88f60eb9d2adcfd0390a0/tests/ReverseDependenciesTest.hs | haskell | Note that this example is a bit unrealistic
Nothing because it is not the 'best version'
remember that this shrinks to False
they are not nessarily equal, since they may have been added in a different order!
so this doesn't necessarily hold:
foundFolded === foundConstructed
if not new pack, just make a new versi... | # LANGUAGE OverloadedStrings , NamedFieldPuns , TypeApplications , ScopedTypeVariables #
module Main where
import qualified Data.Array as Arr
import qualified Data.Bimap as Bimap
import Data.Foldable (for_)
import Data.List (partition, foldl')
import qualified Data.Map as Map
import qualified Data.... |
4ca72db458b2f6c772225ef07bd1f7932c470d71207fccd1b95e90629a91e49d | theoremprover-museum/LCF77 | thyfns.lsp | (PUTPROP (QUOTE easytype) 1 (QUOTE NUMARGS))
(PUTPROP (QUOTE easytype) (MKTIDY (QUOTE (type /-> bool))) (QUOTE MLTYPE))
(PUTPROP (QUOTE finitetype) 1 (QUOTE NUMARGS))
(PUTPROP (QUOTE finitetype) (MKTIDY (QUOTE (type /-> bool))) (QUOTE MLTYPE))
(SETQ COR (SETQ DASH (QUOTE /-)))
(PUTPROP (QUOTE draftin) 1 (QUOTE NUMARGS)... | null | https://raw.githubusercontent.com/theoremprover-museum/LCF77/7a43e95deee18ae37389d98e184b38fdfb3df923/src/thyfns.lsp | lisp | (PUTPROP (QUOTE easytype) 1 (QUOTE NUMARGS))
(PUTPROP (QUOTE easytype) (MKTIDY (QUOTE (type /-> bool))) (QUOTE MLTYPE))
(PUTPROP (QUOTE finitetype) 1 (QUOTE NUMARGS))
(PUTPROP (QUOTE finitetype) (MKTIDY (QUOTE (type /-> bool))) (QUOTE MLTYPE))
(SETQ COR (SETQ DASH (QUOTE /-)))
(PUTPROP (QUOTE draftin) 1 (QUOTE NUMARGS)... | |
dccfbba66558f2f80cc4fa494a48c63fc1cdb3af289107b7959b90cf307fd566 | pheaver/netlist-verilog | Verilog.hs | -- -----------------------------------------------------------------------------
Copyright ( c ) 2010 Signali Corp.
-- -----------------------------------------------------------------------------
module Language.Verilog ( module Language.Verilog.Syntax
, module Language.Verilog.Parser
... | null | https://raw.githubusercontent.com/pheaver/netlist-verilog/9bc9e7864f64fadf74dffd628243cc2543abcd8d/verilog/Language/Verilog.hs | haskell | -----------------------------------------------------------------------------
-----------------------------------------------------------------------------
----------------------------------------------------------------------------- | Copyright ( c ) 2010 Signali Corp.
module Language.Verilog ( module Language.Verilog.Syntax
, module Language.Verilog.Parser
, module Language.Verilog.PrettyPrint
) where
import Language.Verilog.Syntax
import Language.Verilog.Parser
import Lang... |
a930ae0a2937dcf1a2eb17eab4d2dbb51185e5cf6eee28b73b0fbf9e1a0b25af | semerdzhiev/fp-2020-21 | 07-ends-with.rkt | #lang racket
(require rackunit)
(require rackunit/text-ui)
Търсим процедура , дали дадено друго .
(define (ends-with? number test)
(void)
)
(define tests
(test-suite "ends-with? tests"
(check-true (ends-with? 8317 17))
(check-true (ends-with? 82 82))
(check-false (ends-with? 8213 31))
(ch... | null | https://raw.githubusercontent.com/semerdzhiev/fp-2020-21/64fa00c4f940f75a28cc5980275b124ca21244bc/group-b/exercises/02.recursive-iterative-processes/07-ends-with.rkt | racket | #lang racket
(require rackunit)
(require rackunit/text-ui)
Търсим процедура , дали дадено друго .
(define (ends-with? number test)
(void)
)
(define tests
(test-suite "ends-with? tests"
(check-true (ends-with? 8317 17))
(check-true (ends-with? 82 82))
(check-false (ends-with? 8213 31))
(ch... | |
d226d1deff387631caa17d50ab286f3ca3928021d1ceb83acb1ec234c034d2e3 | opennars/Narjure | control_utils.clj | (ns narjure.control-utils
(:require
[narjure.bag :as b]
[narjure.defaults :refer :all]
[narjure.global-atoms :refer :all]
[clojure.math.numeric-tower :as math]))
(defn round2
"Round a double to the given precision (number of significant digits)"
[precision d]
(let [factor (Math/pow 10 precision... | null | https://raw.githubusercontent.com/opennars/Narjure/cd5a72e6777fc47271d721fef8362aa2dad664ca/src/narjure/control_utils.clj | clojure | (ns narjure.control-utils
(:require
[narjure.bag :as b]
[narjure.defaults :refer :all]
[narjure.global-atoms :refer :all]
[clojure.math.numeric-tower :as math]))
(defn round2
"Round a double to the given precision (number of significant digits)"
[precision d]
(let [factor (Math/pow 10 precision... | |
4ce1d8fc8aa3081e46408f9cf62ad84439c750dc983f2d691f192e5915df2e7c | herbelin/coq-hh | tacticals.mli | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/herbelin/coq-hh/296d03d5049fea661e8bdbaf305ed4bf6d2001d2/tactics/tacticals.mli | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
* Tacticals i.e. functions from tact... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
open Pp
open Util
open Names
... |
5b40d3aad63bda618e26399bf77699918799865a2e2366f1f995d3147abc081c | fold-lang/fold | Lang.ml |
(* let default_operator token = *)
(* token *)
(* |> Precedence.lookup *)
(* |> Option.map (fun precedence -> *)
(* let parse x = *)
(* Parser.advance >>= fun () -> *)
(* parse_prefix precedence >>= fun y -> *)
(* Parser.pure (`Form [(token :> Syntax.t); x; y]) in *)
(* (pars... | null | https://raw.githubusercontent.com/fold-lang/fold/78720f6295aa1fc99e18d853f8f1576b974e707f/src/Lang.ml | ocaml | let default_operator token =
token
|> Precedence.lookup
|> Option.map (fun precedence ->
let parse x =
Parser.advance >>= fun () ->
parse_prefix precedence >>= fun y ->
Parser.pure (`Form [(token :> Syntax.t); x; y]) in
(parse, precedence))
let define_syntax_... |
| > postfix 70 " * " ( fun x - > Syntax.form [ ` Symbol " * " ; x ] )
| > postfix 70 " + " ( fun x - > Syntax.form [ ` Symbol " + " ; x ] )
| > postfix 70 " ? " ( fun x - > Syntax.form [ ` Symbol " ? " ; x ] )
| > infix 30 " | " ( fun x y - > Syntax.form [ ` Symbol " | " ; x ; y ] )
... |
04ed642b80aab33c3b149dc7e667c329be8391d6547c9e3625ed2c23664317cc | nyu-acsys/drift | is_prime.ml | (*
From: jayhorn/benchmarks SatPrimes01_true.java
*)
let rec mult (mn:int) (mm:int) =
if mm < 0 then
mult mn (0 - mm)
else if mm = 0 then 0
else mn + (mult mn (mm - 1))
let rec multiple_of (on:int) (om:int) =
if om < 0 then multiple_of on (0 - om)
else if on < 0 then multiple_of (0 - on) om
... | null | https://raw.githubusercontent.com/nyu-acsys/drift/51a3160d74b761626180da4f7dd0bb950cfe40c0/tests/benchmarks/DRIFT/first/is_prime.ml | ocaml |
From: jayhorn/benchmarks SatPrimes01_true.java
-:{v:Unit | unit}
let _ = main () |
let rec mult (mn:int) (mm:int) =
if mm < 0 then
mult mn (0 - mm)
else if mm = 0 then 0
else mn + (mult mn (mm - 1))
let rec multiple_of (on:int) (om:int) =
if om < 0 then multiple_of on (0 - om)
else if on < 0 then multiple_of (0 - on) om
else if om = 0 then false
else if on = 0 then true
... |
6de3d467137cbed7dce6e6dd469cf5cd78d696c13ec371aa55e597f8cd4d47a7 | Helium4Haskell/helium | ClassVariableNotInMemberType.hs | class ClassA a where
function :: b -> b
| null | https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/typeClassesStatic/ClassVariableNotInMemberType.hs | haskell | class ClassA a where
function :: b -> b
| |
940853d06ee13e59df71eb63ba15e43ac775c7b2250d8eef6791999299663ed7 | polymeris/cljs-aws | project.clj | (def aws-sdk-version "2.341.0")
(def browser-aws-sdk-basepath
(str "-sdk-" aws-sdk-version))
(defproject cljs-aws :lein-v
:description "Unofficial AWS client for Clojurescript"
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.9.0"]
... | null | https://raw.githubusercontent.com/polymeris/cljs-aws/3326e7c4db4dfc36dcb80770610c14c8a7fd0d66/project.clj | clojure | (def aws-sdk-version "2.341.0")
(def browser-aws-sdk-basepath
(str "-sdk-" aws-sdk-version))
(defproject cljs-aws :lein-v
:description "Unofficial AWS client for Clojurescript"
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.9.0"]
... | |
20299210ccc9c10c6863b807677e6f642ca6b15651885668064227660cde27f0 | Copilot-Language/copilot | PrettyPrint.hs | {-# LANGUAGE Safe #-}
| Pretty print a Kind2 file defining predicates and propositions .
module Copilot.Theorem.Kind2.PrettyPrint ( prettyPrint ) where
import Copilot.Theorem.Misc.SExpr
import qualified Copilot.Theorem.Misc.SExpr as SExpr
import Copilot.Theorem.Kind2.AST
import Data.List (intercalate)
-- | A tree... | null | https://raw.githubusercontent.com/Copilot-Language/copilot/17a9b45eea4e95a465d6e773c6fbcf9bf810b6cc/copilot-theorem/src/Copilot/Theorem/Kind2/PrettyPrint.hs | haskell | # LANGUAGE Safe #
| A tree of expressions, in which the leafs are strings.
| Reserved keyword prime.
| Convert a file into a sequence of expressions.
| Convert a sequence of propositions into command to check each of them.
| Convert a proposition into an expression.
| Convert a predicate into an expression.
| Co... |
| Pretty print a Kind2 file defining predicates and propositions .
module Copilot.Theorem.Kind2.PrettyPrint ( prettyPrint ) where
import Copilot.Theorem.Misc.SExpr
import qualified Copilot.Theorem.Misc.SExpr as SExpr
import Copilot.Theorem.Kind2.AST
import Data.List (intercalate)
type SSExpr = SExpr String
kwPri... |
ee39c5a738bc388ba7a79f63f1cbbae9fd9b9755dac8b4078ae57d312792727a | headwinds/reagent-reframe-material-ui | formats.cljc | (ns ajax.formats
"This file contains the base formats: raw, text and detect.
url, json and transit are found in their own files."
(:require [ajax.interceptors :as i]
[ajax.util :as u]
[ajax.protocols :as pr]
#? (:clj [poppea :as p]))
#? (:clj (:import [java.io ... | null | https://raw.githubusercontent.com/headwinds/reagent-reframe-material-ui/8a6fba82a026cfedca38491becac85751be9a9d4/resources/public/js/out/ajax/formats.cljc | clojure | -convert-an-inputstream-to-a-string
For CLJS, there's no distinction betweeen raw and text
format, because it's a string in the API anyway.
Detect Response Format
Must be a format generating function | (ns ajax.formats
"This file contains the base formats: raw, text and detect.
url, json and transit are found in their own files."
(:require [ajax.interceptors :as i]
[ajax.util :as u]
[ajax.protocols :as pr]
#? (:clj [poppea :as p]))
#? (:clj (:import [java.io ... |
868d87aa1a386d54685651c3475ed13b6a6e5f253fece92027c8bfbdf89886a0 | skanev/playground | 02.scm | EOPL exercise 2.02
;
; Analyze each of these proposed representations critically. To what extent do
; they succeed or fail in satisfying the specification of the datatype?
; All of the representations satisfy the specification fully.
;
1 . Unary representation
;
; This is extremely memory hungry. It is also equiva... | null | https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/eopl/02/02.scm | scheme |
Analyze each of these proposed representations critically. To what extent do
they succeed or fail in satisfying the specification of the datatype?
All of the representations satisfy the specification fully.
This is extremely memory hungry. It is also equivalent to using bignums with
operations are performed in ... | EOPL exercise 2.02
1 . Unary representation
base 1 . It does not allow us to create very large numbers , but all the
2 . Scheme number representation :
3 . representation :
This representation is more memory - efficient than the first , but operations
depending on the representation , instead of the fou... |
ea20ce81981e63f86b2050ccab3103d0fdf3ce46b4ac70bdd2a458d84944b336 | jarvinet/scheme | quine.scm | ((lambda (x)
(list x (list (quote quote) x)))
(quote
(lambda (x)
(list x (list (quote quote) x)))))
| null | https://raw.githubusercontent.com/jarvinet/scheme/47633d7fc4d82d739a62ceec75c111f6549b1650/Book/quine.scm | scheme | ((lambda (x)
(list x (list (quote quote) x)))
(quote
(lambda (x)
(list x (list (quote quote) x)))))
| |
0b2a78d9c74027c89893e397ba8671a69e27e2d32c90a96b21f26c2fad145e75 | kappelmann/engaging-large-scale-functional-programming | Turtle.hs | module Turtle where
data types for Turtle
type Angle = Float
type Distance = Float
type Turtle = (Pen, Angle, Pnt, [Ln], [(Pnt,Angle)]) -- [Ln] contains all processed lines
-- Lines
data Ln = Ln Pen Pnt Pnt
deriving (Eq,Ord,Show)
-- Colors
data Pen = Colour Float Float Float
| Inkless
... | null | https://raw.githubusercontent.com/kappelmann/engaging-large-scale-functional-programming/99d8b76902320fd8f2d0999bbc9b2a82da09bc72/resources/turtle_graphics/template/src/Turtle.hs | haskell | [Ln] contains all processed lines
Lines
Colors
Points
You can implement custom commands for apply below.
| module Turtle where
data types for Turtle
type Angle = Float
type Distance = Float
data Ln = Ln Pen Pnt Pnt
deriving (Eq,Ord,Show)
data Pen = Colour Float Float Float
| Inkless
deriving (Eq, Ord, Show)
white, black, red, green, blue :: Pen
white = Colour 1.0 1.0 1.0
black = Colour 0.0 0.0... |
57afed72285d5fc4f633b8a3748e336c7ee0f4ea4487aef652dd13a46f0e6621 | IvanIvanov/fp2013 | zip-tests.scm | ;;; This file contains unit tests for the problem listed in the name
;;; of this file.
;;;
;;; To run the tests specify the relative or absolute path to the
;;; ".scm" file with the proposed solution in the (load ...) command
;;; below. Then you can either open the tests and run them in Racket
( with R5RS set as the ... | null | https://raw.githubusercontent.com/IvanIvanov/fp2013/2ac1bb1102cb65e0ecbfa8d2fb3ca69953ae4ecf/lab1/homework6/zip-tests.scm | scheme | This file contains unit tests for the problem listed in the name
of this file.
To run the tests specify the relative or absolute path to the
".scm" file with the proposed solution in the (load ...) command
below. Then you can either open the tests and run them in Racket
directly from the command line:
plt-r5... | ( with R5RS set as the language ) , or you can run the following
assuming 's bin directory is included in the PATH environment
(load "zip.scm")
(define (__make-counter x)
(lambda ()
(set! x (+ x 1))
x))
(define __test-counter (__make-counter 0))
(define (__test-passed)
(display (string-append "Tes... |
fcdf7a6ad2b583f5e0e16740a0337eeecf05b3e23f28a813f3c32891a134199e | ArulselvanMadhavan/haskell-first-principles | Paths_chapter10.hs | # LANGUAGE CPP #
# OPTIONS_GHC -fno - warn - missing - import - lists #
# OPTIONS_GHC -fno - warn - implicit - prelude #
module Paths_chapter10 (
version,
getBinDir, getLibDir, getDynLibDir, getDataDir, getLibexecDir,
getDataFileName, getSysconfDir
) where
import qualified Control.Exception as Exception
... | null | https://raw.githubusercontent.com/ArulselvanMadhavan/haskell-first-principles/06e0c71c502848c8e75c8109dd49c0954d815bba/chapter10/dist/build/autogen/Paths_chapter10.hs | haskell | # LANGUAGE CPP #
# OPTIONS_GHC -fno - warn - missing - import - lists #
# OPTIONS_GHC -fno - warn - implicit - prelude #
module Paths_chapter10 (
version,
getBinDir, getLibDir, getDynLibDir, getDataDir, getLibexecDir,
getDataFileName, getSysconfDir
) where
import qualified Control.Exception as Exception
... | |
2424545542ce8614c46eb2f1ab50f6e25a19140a44676017244a567db91ba909 | lojic/LearningRacket | day09.rkt | #lang racket
(require "../../advent/advent.rkt" threading)
(define-values (get width height)
(let* ([ lines (file->lines "day09.txt") ]
[ width (string-length (first lines)) ]
[ height (length lines) ]
[ cave (~>> lines
(apply string-append)
... | null | https://raw.githubusercontent.com/lojic/LearningRacket/5db385ac868ca9cd7b90b5679e8c5ee810bb795b/advent-of-code-2021/solutions/day09/day09.rkt | racket | North
West
North
West
Tests -------------------------------------------------------------------------------------- | #lang racket
(require "../../advent/advent.rkt" threading)
(define-values (get width height)
(let* ([ lines (file->lines "day09.txt") ]
[ width (string-length (first lines)) ]
[ height (length lines) ]
[ cave (~>> lines
(apply string-append)
... |
cb0311ab43b0cec0fd9a034da7cdb1d4e7071b7c02fd06db1309a551fb5011f0 | petertseng/adventofcode-hs-2022 | 13_distress_signal.hs | import AdventOfCode (readInputFile)
import AdventOfCode.Split (splitOn)
import Control.Arrow (first)
import Data.Char (isDigit)
data Packet = List [Packet] | Val Int deriving (Eq, Show)
data ListParseState = Open | Elt | Comma deriving (Show)
instance Ord Packet where
compare (Val l) (Val r) = compare l r
compar... | null | https://raw.githubusercontent.com/petertseng/adventofcode-hs-2022/1c5039c002d53594ad517928327a931e5b1d7c49/bin/13_distress_signal.hs | haskell | import AdventOfCode (readInputFile)
import AdventOfCode.Split (splitOn)
import Control.Arrow (first)
import Data.Char (isDigit)
data Packet = List [Packet] | Val Int deriving (Eq, Show)
data ListParseState = Open | Elt | Comma deriving (Show)
instance Ord Packet where
compare (Val l) (Val r) = compare l r
compar... | |
9f7544506c6bd1430065a1507b715152f88aa08486a185dfd6bab778cab67fe0 | slipstream/SlipStreamServer | config.clj | (ns com.sixsq.slipstream.auth.utils.config
(:require
[clojure.edn :as edn]
[clojure.java.io :as io]
[clojure.tools.logging :as log]
[environ.core :as environ]))
(defn- find-resource
[resource-name]
(if-let [config-file (io/resource resource-name)]
(do
(log/info "using configuration file... | null | https://raw.githubusercontent.com/slipstream/SlipStreamServer/3ee5c516877699746c61c48fc72779fe3d4e4652/cimi/src/com/sixsq/slipstream/auth/utils/config.clj | clojure | (ns com.sixsq.slipstream.auth.utils.config
(:require
[clojure.edn :as edn]
[clojure.java.io :as io]
[clojure.tools.logging :as log]
[environ.core :as environ]))
(defn- find-resource
[resource-name]
(if-let [config-file (io/resource resource-name)]
(do
(log/info "using configuration file... | |
17429585abcf14ee97982f27355287e782af0555e6a9050b62faf8bb593e5631 | ygmpkk/house | Xtract.hs | ------------------------------------------------------------
The Xtract tool - an XML - grep .
------------------------------------------------------------
module Main where
import System (getArgs, exitWith, ExitCode(..))
import IO
import Char (toUpper)
import List (isSuffixOf)
import Text.XML.HaXml... | null | https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/libraries/HaXml/src/tools/Xtract.hs | haskell | ----------------------------------------------------------
----------------------------------------------------------
findcontents =
return ((if isHTML x
files
findcontents >>= \cs->
. map (vcat . map content . selection . getElem)) cs | The Xtract tool - an XML - grep .
module Main where
import System (getArgs, exitWith, ExitCode(..))
import IO
import Char (toUpper)
import List (isSuffixOf)
import Text.XML.HaXml.Types
import Text.XML.HaXml.Parse (xmlParse)
import Text.XML.HaXml.Html.Parse (htmlParse)
import Text.XML.HaXml... |
c1b3b7a390b2a2088a1d5eeaab9cf77ab12fcd7ca5316f9f066d7d1a6c364065 | ChrisPenner/advent-of-code-haskell | Day11.hs | # LANGUAGE ViewPatterns #
# LANGUAGE DataKinds #
# LANGUAGE TupleSections #
# LANGUAGE FlexibleContexts #
module Y2018.Day11 where
import Data . Grid hiding ( gridSize )
import Control . Comonad . Representable . Store
import Data . Functor . Rep
import Data . Maybe
import Data . Function
import Control . ... | null | https://raw.githubusercontent.com/ChrisPenner/advent-of-code-haskell/da10d53b3e98b67c9cb499dd8b2ddadd121c932e/src/Y2018/Day11.hs | haskell | grid = store go (Coord [0, 0])
where
go (Coord [succ -> x, succ -> y]) = powerLevel''
where
powerLevel = ((rackID * y) + gridSerial) * rackID
powerLevel' =
unStore :: Representable r => Store r a -> r a
unStore = tabulate . fst . runStore
fromTup (x, y) = Coord [x, y]
toTup (Coord [x, y]) = (x, ... | # LANGUAGE ViewPatterns #
# LANGUAGE DataKinds #
# LANGUAGE TupleSections #
# LANGUAGE FlexibleContexts #
module Y2018.Day11 where
import Data . Grid hiding ( gridSize )
import Control . Comonad . Representable . Store
import Data . Functor . Rep
import Data . Maybe
import Data . Function
import Control . ... |
a1761a72f6cfd336fa260262b7b8f4dca572e1255924f218e59e46b13a978230 | iu-parfunc/verified-instances | IntegerSumReduction2NoVerification.hs | {-# LANGUAGE BangPatterns #-}
{-@ LIQUID "--exactdc" @-}
module Main where
import Criterion.Main
import GHC.Conc (getNumCapabilities)
import Control.DeepSeq
import Data.IORef
import Data.Semigroup (Semigroup(..))
import Control.LVish
import Control.LVish.Internal
import Data.Vector.Unboxed as V hiding ((++))
import... | null | https://raw.githubusercontent.com/iu-parfunc/verified-instances/cebfdf1e3357a693360be74c90211be18ce3c045/examples/dpj/IntegerSumReduction2NoVerification.hs | haskell | # LANGUAGE BangPatterns #
@ LIQUID "--exactdc" @
@ newtype Sum = Sum { getSum :: Int } @
@ axiomatize appendSum @
{-@
getSumSumId :: x:Int -> { getSum (Sum x) == x }
@
@
appendSumAssoc :: x:Sum -> y:Sum -> z:Sum
-> { appendSum x (appendSum y z) == appendSum (appendSum x y) z }
@
@
appendSumCommute :: x:... | module Main where
import Criterion.Main
import GHC.Conc (getNumCapabilities)
import Control.DeepSeq
import Data.IORef
import Data.Semigroup (Semigroup(..))
import Control.LVish
import Control.LVish.Internal
import Data.Vector.Unboxed as V hiding ((++))
import Data.Time.Clock
import Control.Exception
import Prelude ... |
5cdcf347aebc4997204519060627da94885bde1e1135b705279086957269f2c8 | clojure/core.typed | remove.clj | Copyright ( c ) , 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 bound by
;... | null | https://raw.githubusercontent.com/clojure/core.typed/f5b7d00bbb29d09000d7fef7cca5b40416c9fa91/typed/checker.jvm/src/clojure/core/typed/checker/remove.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 ) , contributors .
(ns ^:skip-wiki clojure.core.typed.checker.remove
(:require [clojure.core.typed.checker.type-ctors :as c]
[clojure.core.typed.checker.jvm.subtype :as sub]
[clojure.core.typed.checker.type-rep :as r]))
(defn remove* [old rem]
(let [old (c/fully-re... |
50e039f9fcd66ddb5632ff21be3c59bf05f65540a96a83d60880079d19df5be1 | muxspace/bunny_farm | gen_qserver.erl | Copyright 2011
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% -2.0
%%
%% Unless required by applicable law or agreed to in writing, software
distributed under the... | null | https://raw.githubusercontent.com/muxspace/bunny_farm/d686b877bdceb4426fe14f8832e0dc0cef15d987/src/gen_qserver.erl | erlang |
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing per... | Copyright 2011
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(gen_qserver).
-behaviour(gen_server).
-include("bunny_farm.hrl").
-include("private_macros.hrl").
-compile([{parse_transform,lager_transform}]).
-e... |
211d1d81ff17cc40530dce65d5c75811713d318571591d9e987ffb117788e8e4 | mirage/ocaml-fat | test.ml |
* Copyright ( C ) 2013 Citrix Systems Inc
*
* Permission to use , copy , modify , and distribute this software for any
* purpose with or without fee is hereby granted , provided that the above
* copyright notice and this permission notice appear in all copies .
*
* THE SOFTWARE IS PROVIDED " AS IS ... | null | https://raw.githubusercontent.com/mirage/ocaml-fat/8683dc941cf2c4cb5af4d3bb5c358c3a95181439/test/test.ml | ocaml | if the tag is smaller than length then truncate it
Very simple, easy sector-aligned writes. Tests that
read(write(data)) = data; and that files are extended properly |
* Copyright ( C ) 2013 Citrix Systems Inc
*
* Permission to use , copy , modify , and distribute this software for any
* purpose with or without fee is hereby granted , provided that the above
* copyright notice and this permission notice appear in all copies .
*
* THE SOFTWARE IS PROVIDED " AS IS ... |
449448988d42764e94eef0056ac183532b80d38e5c7fe3194cd3af005474bc77 | tmattio/js-bindings | vscode_languageclient_declaration.mli | [@@@ocaml.warning "-7-11-32-33-39"]
[@@@js.implem [@@@ocaml.warning "-7-11-32-33-39"]]
open Es5
import { Disposable , TextDocument , ProviderResult , Position as VPosition ,
Declaration as VDeclaration , DeclarationProvider } from ' vscode ' ;
Declaration as VDeclaration, DeclarationProvider } from 'vscode... | null | https://raw.githubusercontent.com/tmattio/js-bindings/f1d36bba378e4ecd5310542a0244dce9258b6496/lib/vscode-languageclient/vscode_languageclient_declaration.mli | ocaml | import { TextDocumentFeature, BaseLanguageClient } from './client'; | [@@@ocaml.warning "-7-11-32-33-39"]
[@@@js.implem [@@@ocaml.warning "-7-11-32-33-39"]]
open Es5
import { Disposable , TextDocument , ProviderResult , Position as VPosition ,
Declaration as VDeclaration , DeclarationProvider } from ' vscode ' ;
Declaration as VDeclaration, DeclarationProvider } from 'vscode... |
6a0439452816f726bb1fb3241358ba5d971a5072325f7cc7471cb21ceb595735 | abyala/advent-2022-clojure | day15_test.clj | (ns advent-2022-clojure.day15-test
(:require [clojure.test :refer :all]
[advent-2022-clojure.day15 :refer :all]))
(def test-data (slurp "resources/day15-test.txt"))
(def puzzle-data (slurp "resources/day15-puzzle.txt"))
(deftest part1-test
(are [expected row input] (= expected (part1 row input))
... | null | https://raw.githubusercontent.com/abyala/advent-2022-clojure/c8b4121454aa7b82a5580e93e3bf6bc49e7a6191/test/advent_2022_clojure/day15_test.clj | clojure | (ns advent-2022-clojure.day15-test
(:require [clojure.test :refer :all]
[advent-2022-clojure.day15 :refer :all]))
(def test-data (slurp "resources/day15-test.txt"))
(def puzzle-data (slurp "resources/day15-puzzle.txt"))
(deftest part1-test
(are [expected row input] (= expected (part1 row input))
... | |
d2645d1a3f27817ab70ac3f022710d47c9e93ead4c8c2aa13b64991613f63e59 | incoherentsoftware/defect-process | Bomb.hs | module Enemy.All.Bomb
( allBombEnemyPreloadPackFilePaths
, mkBombEnemy
) where
import Control.Monad (unless, when)
import Control.Monad.IO.Class (MonadIO)
import Attack
import Attack.Hit
import Collision
import Configs
import Configs.All.Enemy
import Configs.All.Enemy.Bomb
import Configs.All.Enem... | null | https://raw.githubusercontent.com/incoherentsoftware/defect-process/8797aad1d93bff5aadd7226c39a48f45cf76746e/src/Enemy/All/Bomb.hs | haskell | prevent sliding on the ground from downwards aerial attacks | module Enemy.All.Bomb
( allBombEnemyPreloadPackFilePaths
, mkBombEnemy
) where
import Control.Monad (unless, when)
import Control.Monad.IO.Class (MonadIO)
import Attack
import Attack.Hit
import Collision
import Configs
import Configs.All.Enemy
import Configs.All.Enemy.Bomb
import Configs.All.Enem... |
19b89da6b0b796ca9a6f9053171d21d9975a323d3f0b750854439457d5b5fd35 | svdm/ClojureGP | graph.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) 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 t... | null | https://raw.githubusercontent.com/svdm/ClojureGP/266e501411b37297bdeb082913df63ececa8515c/src/cljgp/tools/graph.clj | clojure | 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 this notice, or any other, from
this software.
Capture the JFrame in this closure
| Copyright ( c ) . All rights reserved .
The use and distribution terms for this software are covered by the Eclipse
(ns cljgp.tools.graph
"Example graphing implementation that plots data about the evolution process
as it's computed. Requires QN Plot library (/),
tested with v1.6.
Used by ... |
1da8940ea4e81d5fa5609683a4cf948b1d4b070bf13c5c023dc611755b20ef18 | racket/games | plays-3x3.rkt | #lang racket
(provide 3x3-plays)
(define 3x3-plays
;; This list is generated by "check.rkt".
;; Generate it only when red knows how to win
;; from all boards.
'((#9(15 0 0 21 9 0 0 0 18) 1 #f 6 2)
(#9(15 0 0 21 9 0 0 0 6) 1 #f 1 3)
(#9(0) 2 #f 4 8)
(#9(0 1 0 6 9 21 0 18 0) 2 #f 0 2)
(#9(0 1 21 8... | null | https://raw.githubusercontent.com/racket/games/e57376f067be51257ed12cdf3e4509a00ffd533d/gobblet/plays-3x3.rkt | racket | This list is generated by "check.rkt".
Generate it only when red knows how to win
from all boards. | #lang racket
(provide 3x3-plays)
(define 3x3-plays
'((#9(15 0 0 21 9 0 0 0 18) 1 #f 6 2)
(#9(15 0 0 21 9 0 0 0 6) 1 #f 1 3)
(#9(0) 2 #f 4 8)
(#9(0 1 0 6 9 21 0 18 0) 2 #f 0 2)
(#9(0 1 21 8 9 15 0 18 0) 1 #f 0 2)
(#9(15 21 0 21 9 0 0 0 6) 0 #f 2 2)
(#9(23 18 0 0 9 0 0 9 0) 1 #f 2 2)
(#9(9 1... |
fdc1cef6ed5045e19dde0e8b76c157b4d42c0cc8920408460dc687357e5c1637 | biokoda/actordb_core | actordb_cmd.erl | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
-module(actordb_cmd).
-export([compare_schema/2]).
% -include_lib("actordb_core/include/actordb.hrl").
-define(ERR(F,P),lists:flatten(io_lib:fwr... | null | https://raw.githubusercontent.com/biokoda/actordb_core/8dcd08a0897055af89c3ce20d99ed5e64d0c33eb/src/actordb_cmd.erl | erlang | -include_lib("actordb_core/include/actordb.hrl").
Move over existing tyes of actors.
io:format("~p~n",[Type]), | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
-module(actordb_cmd).
-export([compare_schema/2]).
-define(ERR(F,P),lists:flatten(io_lib:fwrite(F,P))).
compare_schema(Types,New) ->
N1 = [Dat... |
b5731469dc050ab693b9350df5c7d09813c6956d6b026100e90820ab685fb2d9 | mbutterick/beautiful-racket | info.rkt | #lang info
(define module-suffixes '(#"hdl" #"tst" #"cmp"))
(define compile-omit-paths 'all)
(define test-omit-paths 'all) | null | https://raw.githubusercontent.com/mbutterick/beautiful-racket/f0e2cb5b325733b3f9cbd554cc7d2bb236af9ee9/beautiful-racket-demo/hdl-demo/info.rkt | racket | #lang info
(define module-suffixes '(#"hdl" #"tst" #"cmp"))
(define compile-omit-paths 'all)
(define test-omit-paths 'all) | |
8595143332a49a1e978ed2d81084c4551549df4817cc13f30ee8ace3027e95f7 | Elzair/nazghul | dtable-2.scm | (load "naz.scm")
(kern-load "game.scm")
(load "tests/test-map-1.scm")
(define hour 12)
(define minutes 45)
(define time-in-minutes (+ (* hour 60) minutes))
(kern-set-clock
0 ; year
0 ; month
0 ; week
0 ; day
hour ; hour
minutes ; minutes(
)
(kern-mk-astral-body
'sun ; tag
"Fyer (the sun)" ;... | null | https://raw.githubusercontent.com/Elzair/nazghul/8f3a45ed6289cd9f469c4ff618d39366f2fbc1d8/worlds/haxima-1.001/tests/dtable-2.scm | scheme | year
month
week
day
hour
minutes(
tag
name
relative astronomical distance
minutes per phase (n/a for sun)
minutes per degree
initial arc
initial phase
script interface
phases:
tag
name
species
occ
sprite
starting alignment
hp mod/mult
mp mod/mult
hp/xp/mp/lvl
conv
sched
special ai
readied
... | (load "naz.scm")
(kern-load "game.scm")
(load "tests/test-map-1.scm")
(define hour 12)
(define minutes 45)
(define time-in-minutes (+ (* hour 60) minutes))
(kern-set-clock
)
(kern-mk-astral-body
(list
(list s_sun 255 "full")
)
)
str / int / dex
(load "tests/empty-party.scm")
(kern-party-add-member play... |
4cea7bcd23db6ceee0edabe99a1b8b98d71eac2726469f5729a0b588e706a420 | ajhc/ajhc | ReturnValueVoidFunc.hs | main :: IO ()
main = putChar 'a'
| null | https://raw.githubusercontent.com/ajhc/ajhc/8ef784a6a3b5998cfcd95d0142d627da9576f264/regress/tests/6_fixed_bugs/ReturnValueVoidFunc/ReturnValueVoidFunc.hs | haskell | main :: IO ()
main = putChar 'a'
| |
e2948c03c59a0d218c9d8c2895d69d8b79836b5e6658c01783f9ce5590476626 | weblocks-framework/weblocks | call-answer.lisp |
(in-package :weblocks)
(export '(do-widget do-page do-modal answer make-widget-place-writer
adopt-widget widget-not-in-parent))
(define-condition widget-not-in-parent (webapp-style-warning)
((widget :accessor widget :initarg :widget)
(parent :accessor parent :initarg :parent))
(:report report-widg... | null | https://raw.githubusercontent.com/weblocks-framework/weblocks/fe96152458c8eb54d74751b3201db42dafe1708b/src/control-flow/call-answer.lisp | lisp | Nothing we can do here, but we need this to be silent
the following is the rest of the computation
This function is aware of the internal structure of the root widget;
this should be OK as it's a special case; it does violate the contract.
Does not work when replacing code with render-wt |
(in-package :weblocks)
(export '(do-widget do-page do-modal answer make-widget-place-writer
adopt-widget widget-not-in-parent))
(define-condition widget-not-in-parent (webapp-style-warning)
((widget :accessor widget :initarg :widget)
(parent :accessor parent :initarg :parent))
(:report report-widg... |
78140ef2e80714f48a5ce8a965806b5b87c3c4ccb599f80ca3494f4adaeb0e4b | tomjaguarpaw/haskell-opaleye | Join.hs | # LANGUAGE FlexibleContexts , FlexibleInstances , MultiParamTypeClasses #
module Opaleye.SQLite.Join where
import qualified Opaleye.SQLite.Internal.Unpackspec as U
import qualified Opaleye.SQLite.Internal.Join as J
import qualified Opaleye.SQLite.Internal.Tag as T
import qualified Opaleye.SQLite.Internal.PrimQuery as... | null | https://raw.githubusercontent.com/tomjaguarpaw/haskell-opaleye/b7aacc07c6392654cae439fc3b997620c3aa7a87/opaleye-sqlite/src/Opaleye/SQLite/Join.hs | haskell | compiler will have trouble inferring types. It is strongly
recommended that you provide full type signatures when using
@leftJoin@.
Example specialization:
@
leftJoin :: Query (Column a, Column b)
-> Query (Column c, Column (Nullable d))
-> Query ((Column a, Column b), (Column (Nullable c),... | # LANGUAGE FlexibleContexts , FlexibleInstances , MultiParamTypeClasses #
module Opaleye.SQLite.Join where
import qualified Opaleye.SQLite.Internal.Unpackspec as U
import qualified Opaleye.SQLite.Internal.Join as J
import qualified Opaleye.SQLite.Internal.Tag as T
import qualified Opaleye.SQLite.Internal.PrimQuery as... |
29bc8b84bda4add5418c97c90a208963cb3b92d76917645e5e349f423d4c4a8c | Clozure/ccl | debug.lisp | -*- Mode : Lisp ; Package : ED ; Log : hemlock.log -*-
;;;
;;; **********************************************************************
This code was written as part of the CMU Common Lisp project at
Carnegie Mellon University , and has been placed in the public domain .
;;;
#+CMU (ext:file-comment
"$Header$")
;;... | null | https://raw.githubusercontent.com/Clozure/ccl/6c1a9458f7a5437b73ec227e989aa5b825f32fd3/cocoa-ide/hemlock/unused/archive/debug.lisp | lisp | Package : ED ; Log : hemlock.log -*-
**********************************************************************
**********************************************************************
This contains commands for sending debugger commands to slaves in the
debugger.
DEFINE-DEBUGGER-COMMAND.
Frame changing commands... | This code was written as part of the CMU Common Lisp project at
Carnegie Mellon University , and has been placed in the public domain .
#+CMU (ext:file-comment
"$Header$")
Written by .
(in-package :hemlock)
(defmacro define-debugger-command (name doc cmd &key uses-argument)
`(defcommand ,(concatenate ... |
5a65f9847097549cc45aa038953758786096fd966d91481c4cb46eb56ef72806 | jeapostrophe/mode-lambda | color.rkt | #lang racket/base
(require racket/contract/base
racket/fixnum
racket/flonum
racket/match
racket/list
(only-in srfi/1 iota))
(module+ test
(require rackunit))
(define (color? x)
;; ARGB
(and (bytes? x) (= 4 (bytes-length x))))
(define (alpha x) (bytes-ref x 0))
(define... | null | https://raw.githubusercontent.com/jeapostrophe/mode-lambda/64b5ae81f457ded7664458cd9935ce7d3ebfc449/mode-lambda/color.rkt | racket | ARGB
Should be divisible by what shapes you use later in selecting color schemes | #lang racket/base
(require racket/contract/base
racket/fixnum
racket/flonum
racket/match
racket/list
(only-in srfi/1 iota))
(module+ test
(require rackunit))
(define (color? x)
(and (bytes? x) (= 4 (bytes-length x))))
(define (alpha x) (bytes-ref x 0))
(define (red x) (... |
d1bda1bc3af46deacdc8f127370fc46a50d31a7c3580549cadcbd911a6b37514 | robstewart57/hdph-rs | simple-failure.hs | Hello World in
--
Author :
-----------------------------------------------------------------------------
# LANGUAGE TemplateHaskell #
module Main where
import Prelude
import Data.List (stripPrefix)
import Data.Monoid (mconcat)
import System.Environment (getArgs)
import System . Exit
import System.IO (stdout... | null | https://raw.githubusercontent.com/robstewart57/hdph-rs/5074e7de02ec13707361b1c117fa25c8a796b59e/src/Test/HdpH/simple-failure.hs | haskell |
---------------------------------------------------------------------------
---------------------------------------------------------------------------
---------------------------------------------------------------------------
Hello World code
be rescheduled in the threadpool of the master node.
-------------------... | Hello World in
Author :
# LANGUAGE TemplateHaskell #
module Main where
import Prelude
import Data.List (stripPrefix)
import Data.Monoid (mconcat)
import System.Environment (getArgs)
import System . Exit
import System.IO (stdout, stderr, hSetBuffering, BufferMode(..))
import System.Mem (performGC)
import Sys... |
04c088985a1731fb17abfd2f7972aa957a12e866a3a7145894367215e498e6f4 | degree9/uikit-hl | filter.cljs | (ns uikit-hl.filter
(:require [hoplon.core :as h]
[hoplon.jquery]
[uikit-hl.core :as uk]))
(defmulti uk-filter! h/kw-dispatcher :default ::default)
(defmethod h/do! ::default
[elem key val]
(uk-filter! elem key val))
(defn- format-filter [filter]
(str "uk-filter-" filter))
(defmethod... | null | https://raw.githubusercontent.com/degree9/uikit-hl/b226b1429ea50f8e9a6c1d12c082a3be504dda33/src/uikit_hl/filter.cljs | clojure | (ns uikit-hl.filter
(:require [hoplon.core :as h]
[hoplon.jquery]
[uikit-hl.core :as uk]))
(defmulti uk-filter! h/kw-dispatcher :default ::default)
(defmethod h/do! ::default
[elem key val]
(uk-filter! elem key val))
(defn- format-filter [filter]
(str "uk-filter-" filter))
(defmethod... | |
e9149b5d3d0683b28c609341b0c5710f51c37d05ad3581b8b4df1b910214d61e | audreyt/openafp | ECA.hs |
module OpenAFP.Records.AFP.ECA where
import OpenAFP.Types
import OpenAFP.Internals
data ECA = ECA {
eca_Type :: !N3
,eca_ :: !N3
,eca :: !NStr
} deriving (Show, Typeable)
| null | https://raw.githubusercontent.com/audreyt/openafp/178e0dd427479ac7b8b461e05c263e52dd614b73/src/OpenAFP/Records/AFP/ECA.hs | haskell |
module OpenAFP.Records.AFP.ECA where
import OpenAFP.Types
import OpenAFP.Internals
data ECA = ECA {
eca_Type :: !N3
,eca_ :: !N3
,eca :: !NStr
} deriving (Show, Typeable)
| |
480937d12041b8f298ebfcbb9eb8b75456d205275ac725770edf2e36db721ddc | ghc/packages-containers | Strict.hs | # LANGUAGE CPP #
{-# LANGUAGE BangPatterns #-}
#if __GLASGOW_HASKELL__
{-# LANGUAGE DeriveDataTypeable, StandaloneDeriving #-}
#endif
#if !defined(TESTING) && defined(__GLASGOW_HASKELL__)
{-# LANGUAGE Safe #-}
#endif
#if __GLASGOW_HASKELL__ >= 708
# LANGUAGE RoleAnnotations #
# LANGUAGE TypeFamilies #
#define USE_MAGIC... | null | https://raw.githubusercontent.com/ghc/packages-containers/97fe43c54c5c8a9b93ecf5abd7509e8085b63d41/containers/src/Data/Map/Merge/Strict.hs | haskell | # LANGUAGE BangPatterns #
# LANGUAGE DeriveDataTypeable, StandaloneDeriving #
# LANGUAGE Safe #
---------------------------------------------------------------------------
|
Module : Data.Map.Merge.Strict
License : BSD-style
Maintainer :
Portability : portable
maps. The key functions are 'merge' a... | # LANGUAGE CPP #
#if __GLASGOW_HASKELL__
#endif
#if !defined(TESTING) && defined(__GLASGOW_HASKELL__)
#endif
#if __GLASGOW_HASKELL__ >= 708
# LANGUAGE RoleAnnotations #
# LANGUAGE TypeFamilies #
#define USE_MAGIC_PROXY 1
#endif
#if USE_MAGIC_PROXY
# LANGUAGE MagicHash #
#endif
#include "containers.h"
Copyright ... |
aa326d9a5d0fc3bf95ff0294aff06e7552de2f731071b1576fb4651bda55557e | bgamari/b-tree | Lookup.hs | module BTree.Lookup ( LookupTree
, open
, fromByteString
, lookup
, size
) where
import Prelude hiding (lookup)
import Control.Error
import Control.Lens hiding (children)
import qualified Data.ByteString as BS
import qu... | null | https://raw.githubusercontent.com/bgamari/b-tree/dc4e7196895fa144501b14ad5fa0eb84f8a5c969/src/BTree/Lookup.hs | haskell | | Read a B-tree from a 'ByteString' produced by 'BTree.Builder'
| Open a B-tree file.
| Lookup a key in a B-tree.
is this case necessary? | module BTree.Lookup ( LookupTree
, open
, fromByteString
, lookup
, size
) where
import Prelude hiding (lookup)
import Control.Error
import Control.Lens hiding (children)
import qualified Data.ByteString as BS
import qu... |
fa7a1b0a7f9c74db271f36bb825dcffea08567ed7d553fe1ae44a7908d86a92a | BU-CS320/Fall-2018 | ParserMonad.hs | module ParserMonad where
import Control.Monad(ap)
import Data.Char
-- the type of a parser
-- these are the same as last time, but we wrap it in a data so we can define typeclasses on it
data Parser a = Parser (String -> Maybe (a, String))
-- a helper function to pull out the function bit (same as book)
parse :: Par... | null | https://raw.githubusercontent.com/BU-CS320/Fall-2018/beec3ca88be5c5a62271a45c8053fb1b092e0af1/assignments/week8/hw/src/ParserMonad.hs | haskell | the type of a parser
these are the same as last time, but we wrap it in a data so we can define typeclasses on it
a helper function to pull out the function bit (same as book)
fmap :: (a -> b) -> Parser a -> Parser b
hint: pa :: String -> Maybe (a, String)
think, "does it follow the Functor laws?"
ignore this fo... | module ParserMonad where
import Control.Monad(ap)
import Data.Char
data Parser a = Parser (String -> Maybe (a, String))
parse :: Parser a -> (String -> Maybe (a, String))
parse (Parser f) = f
instance Functor Parser where
fmap f (Parser pa) = undefined
hint : similar to State monad
instance Applicative Par... |
2bf2a32f5c4452fe52da3fdfac8fe0c180508f7521528a313c580886a62eba55 | carl-eastlund/mischief | reader.rkt | #lang s-exp syntax/module-reader
no-debug/mischief
| null | https://raw.githubusercontent.com/carl-eastlund/mischief/ce58c3170240f12297e2f98475f53c9514225825/no-debug/mischief/lang/reader.rkt | racket | #lang s-exp syntax/module-reader
no-debug/mischief
| |
b4f7b942ae167e8b1cf61fea7773efff9649dbe688cd147134af642378f0cf2b | martijnbastiaan/doctest-parallel | Foo.hs | module FailingMultiple.Foo where
-- | A failing example
--
> > > 23
23
--
> > > 23
42
--
> > > 23
23
> > > 23
23
test :: a
test = undefined
| null | https://raw.githubusercontent.com/martijnbastiaan/doctest-parallel/f70d6a1c946cc0ada88571b90a39a7cd4d065452/test/integration/FailingMultiple/Foo.hs | haskell | | A failing example
| module FailingMultiple.Foo where
> > > 23
23
> > > 23
42
> > > 23
23
> > > 23
23
test :: a
test = undefined
|
68d55cda451406e850cc15220ee33ce8423da3ba68bfd06a101c5fb051fb5c99 | b0-system/b0 | b00_jsoo.ml | ---------------------------------------------------------------------------
Copyright ( c ) 2020 The b0 programmers . All rights reserved .
Distributed under the ISC license , see terms at the end of the file .
---------------------------------------------------------------------------
Copyright (c) 20... | null | https://raw.githubusercontent.com/b0-system/b0/cbe12b8a55da6b50ab01ed058b339dbed3cfe894/src/b00/kit/b00_jsoo.ml | ocaml | ---------------------------------------------------------------------------
Copyright ( c ) 2020 The b0 programmers . All rights reserved .
Distributed under the ISC license , see terms at the end of the file .
---------------------------------------------------------------------------
Copyright (c) 20... | |
0f4ee83655f570d31744d26ae70a50c475c44f4901ff85c329cb3e1dcad0254d | tmcgilchrist/airship | Parsers.hs | # LANGUAGE CPP #
{-# LANGUAGE OverloadedStrings #-}
module Airship.Internal.Parsers
( parseEtag
, parseEtagList
) where
import Prelude hiding (takeWhile)
#if __GLASGOW_HASKELL__ < 710
import Control.Applicative ((<$>), (<|>), (*>), (<*))
#else
import Control.Applicative ((<|>))
#endif
import Data.Attopar... | null | https://raw.githubusercontent.com/tmcgilchrist/airship/e946ac322f5f9ec0ceebcee593caacc9ea0b05ec/airship/src/Airship/Internal/Parsers.hs | haskell | # LANGUAGE OverloadedStrings # | # LANGUAGE CPP #
module Airship.Internal.Parsers
( parseEtag
, parseEtagList
) where
import Prelude hiding (takeWhile)
#if __GLASGOW_HASKELL__ < 710
import Control.Applicative ((<$>), (<|>), (*>), (<*))
#else
import Control.Applicative ((<|>))
#endif
import Data.Attoparsec.ByteString.Char8 (Parser, parse... |
59190c45cf016a09c683a7426c731aec8a246a8593f7e6a953e644475db3a74a | ghc/ghc | TyThing.hs | -- | A global typecheckable-thing, essentially anything that has a name.
module GHC.Types.TyThing
( TyThing (..)
, MonadThings (..)
, mkATyCon
, mkAnId
, pprShortTyThing
, pprTyThingCategory
, tyThingCategory
, implicitTyThings
, implicitConLikeThings
, implicitClassThings
, implicitTyC... | null | https://raw.githubusercontent.com/ghc/ghc/93f0e3c49cea484bd6e838892ff8702ec51f34c3/compiler/GHC/Types/TyThing.hs | haskell | | A global typecheckable-thing, essentially anything that has a name.
| A global typecheckable-thing, essentially anything that has a name.
Not to be confused with a 'TcTyThing', which is also a typecheckable
thing but in the *local* context. See "GHC.Tc.Utils.Env" for how to retrieve
a 'TyThing' given a 'Name'.
... | module GHC.Types.TyThing
( TyThing (..)
, MonadThings (..)
, mkATyCon
, mkAnId
, pprShortTyThing
, pprTyThingCategory
, tyThingCategory
, implicitTyThings
, implicitConLikeThings
, implicitClassThings
, implicitTyConThings
, implicitCoTyCon
, isImplicitTyThing
, tyThingParent_m... |
ec69e3492dcf2f478401400d6f02cdfcb570b60993a460f0826535dce571a653 | taruen/apertiumpp | transfer-parser.rkt | #lang brag
transfer-file : (transfer-char | transfer-sexp)*
transfer-char : CHAR-TOK
transfer-sexp : SEXP-TOK
| null | https://raw.githubusercontent.com/taruen/apertiumpp/73eeacc19015170e54c77824e015224f6456cf3e/apertiumpp/transfer-parser.rkt | racket | #lang brag
transfer-file : (transfer-char | transfer-sexp)*
transfer-char : CHAR-TOK
transfer-sexp : SEXP-TOK
| |
3b27bda24068e897094992527ee76b38cf311a38565aa626f0b909ee9df3c19c | OpenC2-org/ocas | mod_id.erl | @author
( C ) 2016 , sFractal Consulting LLC
%%%
-module(mod_id).
%%%-------------------------------------------------------------------
%%% All rights reserved.
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%%%
%%% Redistribution and use in source and binary forms, with or without
%%% ... | null | https://raw.githubusercontent.com/OpenC2-org/ocas/c15132d9f37b1e0e29884456a520557c25b22f38/apps/ocas/src/modifier_servers/mod_id.erl | erlang |
-------------------------------------------------------------------
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this... | @author
( C ) 2016 , sFractal Consulting LLC
-module(mod_id).
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
" AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT
OWNER OR ANY DIRECT , INDIRECT , INCIDENTAL ,
SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCL... |
9fcf65173d47a1bbbc496a505f2d5e0796ae8e3f65ef429b7757d686989d44db | nubank/selvage | core.clj | (ns selvage.core
"Code shared between midje and clojure.test implementations"
(:require [selvage.visibility :as vis]
[schema.core :as s]
[taoensso.timbre :as timbre])
(:import [clojure.lang ISeq Symbol]))
(def ^:dynamic *quiet* false)
(def ^:dynamic *verbose* false)
(def ^:dynamic *report... | null | https://raw.githubusercontent.com/nubank/selvage/3b2da9c95e82c7f2cbacb6cae3ed3af131d8a5e4/src/selvage/core.clj | clojure | (ns selvage.core
"Code shared between midje and clojure.test implementations"
(:require [selvage.visibility :as vis]
[schema.core :as s]
[taoensso.timbre :as timbre])
(:import [clojure.lang ISeq Symbol]))
(def ^:dynamic *quiet* false)
(def ^:dynamic *verbose* false)
(def ^:dynamic *report... | |
fadb66419b924f5232f4655c80a23341a7b80cfa5c277de8474eeb72f6a57dc4 | static-analysis-engineering/codehawk | jCHBCFunctions.mli | = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
CodeHawk Java Analyzer
Author : and
------------------------------------------------------------------------------
The MIT License ( MIT )
... | null | https://raw.githubusercontent.com/static-analysis-engineering/codehawk/98ced4d5e6d7989575092df232759afc2cb851f6/CodeHawk/CHJ/jchstacgui/jCHBCFunctions.mli | ocaml | chutil
jchlib
jchpre | = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
CodeHawk Java Analyzer
Author : and
------------------------------------------------------------------------------
The MIT License ( MIT )
... |
5fbf51d1b3be13efc1a69fc302442b2a8e292f2e2d403456a3b2a9db15c004aa | jfeser/castor | subsumption.ml | open Core
open Collections
open Ast
open Sql
module Foreign_key_join_graph = struct
module Edge = struct
type t = { l_attr : string; r_attr : string } [@@deriving compare]
let default = { l_attr = ""; r_attr = "" }
end
include Graph.Persistent.Digraph.ConcreteLabeled (String) (Edge)
end
(* split conju... | null | https://raw.githubusercontent.com/jfeser/castor/e9f394e9c0984300f71dc77b5a457ae4e4faa226/lib/subsumption.ml | ocaml | split conjunction into column equality and other predicates
for every query equivalence class, find all view equivalence classes that are contained
collect compensating predicates
@ [
Sql.create_entry ~alias:"gross_revenue"
"x";
]
@ [
Sql.create_entry
"x";
] | open Core
open Collections
open Ast
open Sql
module Foreign_key_join_graph = struct
module Edge = struct
type t = { l_attr : string; r_attr : string } [@@deriving compare]
let default = { l_attr = ""; r_attr = "" }
end
include Graph.Persistent.Digraph.ConcreteLabeled (String) (Edge)
end
let split p =
... |
d31eb526c1554e4c46d78466c8259dfe70de22fb71d3c4e8984201e6cdb66cac | hexlet-codebattle/battle_asserts | well_tempered_ergodox.clj | (ns battle-asserts.issues.well-tempered-ergodox
(:require [clojure.test.check.generators :as gen]))
(def level :medium)
(def tags ["music" "strings"])
(def description
{:en "Write a function that gets a string number and a fret of a 6-string guitar in 'standard tuning' and return the corresponding note. For this... | null | https://raw.githubusercontent.com/hexlet-codebattle/battle_asserts/5f9fb9734c03a848ecf833100f4ace220cb00dd5/src/battle_asserts/issues/well_tempered_ergodox.clj | clojure | (ns battle-asserts.issues.well-tempered-ergodox
(:require [clojure.test.check.generators :as gen]))
(def level :medium)
(def tags ["music" "strings"])
(def description
{:en "Write a function that gets a string number and a fret of a 6-string guitar in 'standard tuning' and return the corresponding note. For this... | |
efa7de58eee1a932ecaea85f9f9c08cc3778460fc0d780a0142803f026f39379 | CatalaLang/catala | html.ml | This file is part of the Catala compiler , a specification language for tax
and social benefits computation rules . Copyright ( C ) 2020 ,
contributors : < > ,
< >
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not
use this file except in compliance with... | null | https://raw.githubusercontent.com/CatalaLang/catala/07edff2cd2371581ba0e5664aa32bcf06650bd0e/compiler/literate/html.ml | ocaml | * This modules weaves the source code and the legislative text together into a
document that law professionals can understand.
* {1 Helpers}
* Converts double lines into HTML newlines.
* Raise an error if pygments cannot be found
* Partial application allowing to remove last code lines of
[<td class="code">... | This file is part of the Catala compiler , a specification language for tax
and social benefits computation rules . Copyright ( C ) 2020 ,
contributors : < > ,
< >
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not
use this file except in compliance with... |
a82c830d3969836cee5562d37df05df4a39f7bb1a2da0a5c64376f75df90958e | udem-dlteam/libs | optionals.scm | ( let - optionals * ( list 1 ) ( ( a 0 ) ( b 1 ) ( c 2 ) ) ( values a b c ) ) = > 1 1 2
Taken from -04/msg00010.html
Written by
I removed the let - optionals macro ( Per Eckerdal )
This file defines three macros for parsing optional arguments to procs :
;;; (LET-OPTIONALS arg-list ((var1 default1) ..... | null | https://raw.githubusercontent.com/udem-dlteam/libs/9a4d02f0f8c6c47b494e9ee2a0e3b34071a0bca4/gambit/optionals.scm | scheme | (LET-OPTIONALS arg-list ((var1 default1) ...) . body)
(LET-OPTIONALS* arg-list ((var1 default1) ...) . body)
(:OPTIONAL rest-arg default-exp)
The LET-OPTIONALS macro is defined using the Clinger/Rees
explicit-renaming low-level macro system. You'll have to do some work to
port it to another macro sy... | ( let - optionals * ( list 1 ) ( ( a 0 ) ( b 1 ) ( c 2 ) ) ( values a b c ) ) = > 1 1 2
Taken from -04/msg00010.html
Written by
I removed the let - optionals macro ( Per Eckerdal )
This file defines three macros for parsing optional arguments to procs :
high - level macros , and should be portable to an... |
7d4ee3790c7a85df6a729d3253fea3d52319579c38ade13adca7b60bd5780564 | tonyg/kali-scheme | env.scm | Copyright ( c ) 1993 , 1994 by and .
Copyright ( c ) 1996 by NEC Research Institute , Inc. See file COPYING .
(define *env* (unspecific))
(define (current-env) *env*)
(define (set-current-env! env) (set! *env* env))
; Access to environment slots
(define env-ref vm-vector-ref)
(define env-set! vm-vecto... | null | https://raw.githubusercontent.com/tonyg/kali-scheme/79bf76b4964729b63fce99c4d2149b32cb067ac0/scheme/vm/env.scm | scheme | Access to environment slots
Making new environments
Alternative method for making environments - put the values into the heap.
includes superior environment
Migrate the current environment to the heap. Used when creating a closure.
CURRENT-ENV-SIZE size is conservative.
This is what the interpreter calls when i... | Copyright ( c ) 1993 , 1994 by and .
Copyright ( c ) 1996 by NEC Research Institute , Inc. See file COPYING .
(define *env* (unspecific))
(define (current-env) *env*)
(define (set-current-env! env) (set! *env* env))
(define env-ref vm-vector-ref)
(define env-set! vm-vector-set!)
(define (env-parent en... |
6d6ee355c0baad68586bc9581795cf9bdd546498821f9005da1159f0d3bff051 | clojure-interop/google-cloud-clients | JobServiceClient$ListJobsFixedSizeCollection.clj | (ns com.google.cloud.talent.v4beta1.JobServiceClient$ListJobsFixedSizeCollection
(:refer-clojure :only [require comment defn ->])
(:import [com.google.cloud.talent.v4beta1 JobServiceClient$ListJobsFixedSizeCollection]))
| null | https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.talent/src/com/google/cloud/talent/v4beta1/JobServiceClient%24ListJobsFixedSizeCollection.clj | clojure | (ns com.google.cloud.talent.v4beta1.JobServiceClient$ListJobsFixedSizeCollection
(:refer-clojure :only [require comment defn ->])
(:import [com.google.cloud.talent.v4beta1 JobServiceClient$ListJobsFixedSizeCollection]))
| |
e08350124dc3afab98336c7a4e38c26079510cd4c0d0ecd1d94a07cb6b8e4413 | falgon/htcc | Core.hs | |
Module : Htcc . Tokenizer . Core
Description : Tokenizer
Copyright : ( c ) roki , 2019
License : MIT
Maintainer :
Stability : experimental
Portability : POSIX
The tokenizer
Module : Htcc.Tokenizer.Core
Description : Tokenizer
Copyright : (c) roki, 2019
License : MIT
M... | null | https://raw.githubusercontent.com/falgon/htcc/3cef6fc362b00d4bc0ae261cba567bfd9c69b3c5/src/Htcc/Tokenizer/Core.hs | haskell | For multi-character constants.
The standard states that this is an implementation definition.
| The core function of `Htcc.Tokenizer.tokenize` | |
Module : Htcc . Tokenizer . Core
Description : Tokenizer
Copyright : ( c ) roki , 2019
License : MIT
Maintainer :
Stability : experimental
Portability : POSIX
The tokenizer
Module : Htcc.Tokenizer.Core
Description : Tokenizer
Copyright : (c) roki, 2019
License : MIT
M... |
fb8d90d2faf6c4ada22bd4707b517009a918aa1ff19d21247f868fa1daa2d2c6 | ktakashi/json-tools | json.scm | #!r6rs
(import (rnrs)
(json)
(srfi :64))
(test-begin "JSON read/write")
(let ((s (utf8->string #vu8(240 159 152 186))))
(test-equal "Emoji" s (json-read (open-string-input-port "\"\\uD83D\\uDE3A\""))))
(test-end)
| null | https://raw.githubusercontent.com/ktakashi/json-tools/502f63bd1b5acf4792451aa814107377cd04be79/tests/json.scm | scheme | #!r6rs
(import (rnrs)
(json)
(srfi :64))
(test-begin "JSON read/write")
(let ((s (utf8->string #vu8(240 159 152 186))))
(test-equal "Emoji" s (json-read (open-string-input-port "\"\\uD83D\\uDE3A\""))))
(test-end)
| |
ddd84d0cdc6505ac0d757528832bd95f74cf304b3202489ee31de4b03ccc10ef | skanev/playground | 15.scm | SICP exercise 5.15
;
; Add instruction counting to the register machine simulation. That is, have
; the machine model keep track of the number of instructions executed. Extend
; the machine model's interface to accept a new message that prints the value
of the instruction count and resets the count to zero .
(defi... | null | https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/sicp/05/15.scm | scheme |
Add instruction counting to the register machine simulation. That is, have
the machine model keep track of the number of instructions executed. Extend
the machine model's interface to accept a new message that prints the value | SICP exercise 5.15
of the instruction count and resets the count to zero .
(define (make-new-machine)
(let ((pc (make-register 'pc))
(flag (make-register 'flag))
(stack (make-stack))
(the-instruction-sequence '())
(instruction-count 0))
(let ((the-ops (list (list 'initialize-s... |
323dda89c998ed91ea947cb29a5b37e025585dea7a5315f2a7cb26ed22644dac | flussonic/ssh-proxy | fpm.erl | #!/usr/bin/env escript
-mode(compile).
-include_lib("kernel/include/file.hrl").
-record(fpm, {
target,
output,
force = false,
loglevel = error :: error | verbose | debug,
release,
epoch,
license,
vendor,
category,
depends = [],
url,
description = "no description",
maintainer,
post_install,... | null | https://raw.githubusercontent.com/flussonic/ssh-proxy/69175994c8da1c4f52665b6e8465e6970e065585/fpm.erl | erlang | $$ |$$$$\ $$ __$$\\_$$ _| $$ __$$\ $$ __$$\\_$$ _|
\______/ \_______| \____/ \______/ $$ ____/ \____/
$$ |
$$ |
openssl rsa -in ~/.ssh/ -pubout > ~/.ssh/
{ok, Tar} = erl_tar:open("data.tar.g... | #!/usr/bin/env escript
-mode(compile).
-include_lib("kernel/include/file.hrl").
-record(fpm, {
target,
output,
force = false,
loglevel = error :: error | verbose | debug,
release,
epoch,
license,
vendor,
category,
depends = [],
url,
description = "no description",
maintainer,
post_install,... |
70cfd62404899c230b28910b20e799385abe4495cb338a9ea800570a88c2bba8 | ryanpbrewster/haskell | P124Test.hs | module Problems.P124Test
( case_124_main
) where
import Problems.P124
import Test.Tasty.Discover (Assertion, (@?=))
case_124_main :: Assertion
case_124_main = solve @?= "233168"
| null | https://raw.githubusercontent.com/ryanpbrewster/haskell/6edd0afe234008a48b4871032dedfd143ca6e412/project-euler/tests/Problems/P124Test.hs | haskell | module Problems.P124Test
( case_124_main
) where
import Problems.P124
import Test.Tasty.Discover (Assertion, (@?=))
case_124_main :: Assertion
case_124_main = solve @?= "233168"
| |
2371a4656b09e8b0ee93a8e52d6ba87f37d3aaff6e1291b815bb642a111bd2b4 | nikodemus/SBCL | test-frlock.lisp |
;;;;
This software is part of the SBCL system . See the README file for
;;;; more information.
;;;;
This software is derived from the CMU CL system , which was
written at Carnegie Mellon University and released into the
;;;; public domain. The software is in the public domain and is
;;;; provided with absol... | null | https://raw.githubusercontent.com/nikodemus/SBCL/3c11847d1e12db89b24a7887b18a137c45ed4661/contrib/sb-concurrency/tests/test-frlock.lisp | lisp |
more information.
public domain. The software is in the public domain and is
provided with absolutely no warranty. See the COPYING and CREDITS
files for more information. |
This software is part of the SBCL system . See the README file for
This software is derived from the CMU CL system , which was
written at Carnegie Mellon University and released into the
(in-package :sb-concurrency-test)
(defmacro deftest* ((name &key fails-on) form &rest results)
`(progn
(when (sb... |
d04daf2570c211e9e9793f79d0228a6c07a0bd0227ea8ee7822a64b30cc7c9c0 | haskell-opengl/OpenGLRaw | F06.hs | {-# OPTIONS_HADDOCK hide #-}
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.GL.Functions.F06
Copyright : ( c ) 2019
-- License : BSD3
--
Maintainer : < >
-- Stability : stable
-- Portability : portable
--
-- Raw functions from ... | null | https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/Functions/F06.hs | haskell | # OPTIONS_HADDOCK hide #
------------------------------------------------------------------------------
|
Module : Graphics.GL.Functions.F06
License : BSD3
Stability : stable
Portability : portable
Raw functions from the
</ OpenGL registry>.
-----------------------------------------------------... | Copyright : ( c ) 2019
Maintainer : < >
module Graphics.GL.Functions.F06 (
glDeleteVertexArraysOES,
glDeleteVertexShaderEXT,
glDepthBoundsEXT,
glDepthBoundsdNV,
glDepthFunc,
glDepthMask,
glDepthRange,
glDepthRangeArrayfvNV,
glDepthRangeArrayfvOES,
glDepthRangeArrayv,
glDepthRang... |
b3d36f83a10a477e3aaf001a1f8a902dda064f8d258669003ea019b332e33765 | snorecone/elasticsearch-erlang | elasticsearch_worker.erl | -module(elasticsearch_worker).
-behavior(gen_server).
-export([
start_link/1,
request/5,
init/1,
handle_call/3,
handle_cast/2,
handle_info/2,
terminate/2,
code_change/3
]).
-record(state, {
base_url,
http_options
}).
-define(PROFILE, elasticsearch).
-define(DEFAULT_HTTP_OPTIO... | null | https://raw.githubusercontent.com/snorecone/elasticsearch-erlang/ff2836df563a9ba4a7778baa7d9b0655e83cb7ec/src/elasticsearch_worker.erl | erlang |
API.
gen_server
private
| -module(elasticsearch_worker).
-behavior(gen_server).
-export([
start_link/1,
request/5,
init/1,
handle_call/3,
handle_cast/2,
handle_info/2,
terminate/2,
code_change/3
]).
-record(state, {
base_url,
http_options
}).
-define(PROFILE, elasticsearch).
-define(DEFAULT_HTTP_OPTIO... |
c155bee899edaf8c35089f65b2fee59834b2bc6a05bf43dd4be3278e7c5c0494 | ocsigen/ocaml-eliom | hamming.ml | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/ocsigen/ocaml-eliom/497c6707f477cb3086dc6d8124384e74a8c379ae/testsuite/tests/misc/hamming.ml | ocaml | ************************************************************************
OCaml
... | , projet , INRIA Rocquencourt
Copyright 2002 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
We can not use bignums because we do n't do custom runtimes , but
int64 is a bit short , so we roll our own... |
cb79c6354ce9f1f566876a0505a58db14ca45089d683f48bbac2614b30bcc267 | xh4/web-toolkit | specials.lisp | -*- Mode : LISP ; Syntax : COMMON - LISP ; Package : CL - PPCRE ; Base : 10 -*-
$ Header : /usr / local / cvsrep / cl - ppcre / specials.lisp , v 1.43 2009/10/28 07:36:15 edi Exp $
;;; globally declared special variables
Copyright ( c ) 2002 - 2009 , Dr. . All rights reserved .
;;; Redistribution and use in ... | null | https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/vendor/cl-ppcre-20190521-git/specials.lisp | lisp | Syntax : COMMON - LISP ; Package : CL - PPCRE ; Base : 10 -*-
globally declared special variables
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
n... | $ Header : /usr / local / cvsrep / cl - ppcre / specials.lisp , v 1.43 2009/10/28 07:36:15 edi Exp $
Copyright ( c ) 2002 - 2009 , Dr. . All rights reserved .
DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL
INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY ,
(in-packa... |
53b3367cc0472dba3dd2247d2df0dcfe65c9ff894fe074482bd06e4d3cb62b0d | FranklinChen/hugs98-plus-Sep2006 | QuickCheck.hs | -----------------------------------------------------------------------------
-- |
-- Module : Test.QuickCheck
Copyright : ( c ) , 2001
-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maintainer :
-- Stability : experimental
-- Portability : portable
--
QuickCheck v.0.... | null | https://raw.githubusercontent.com/FranklinChen/hugs98-plus-Sep2006/54ab69bd6313adbbed1d790b46aca2a0305ea67e/packages/QuickCheck/Test/QuickCheck.hs | haskell | ---------------------------------------------------------------------------
|
Module : Test.QuickCheck
License : BSD-style (see the file libraries/base/LICENSE)
Maintainer :
Stability : experimental
Portability : portable
----------------------------------------------------------------------... | Copyright : ( c ) , 2001
QuickCheck v.0.2
DRAFT implementation ; last update 000104 .
, .
This file represents work in progress , and might change at a later date .
module Test.QuickCheck
: : String - > prop - > prop
: : > prop - > prop
: : * - > * ; Functor , Monad
... |
9337beb72cff5e47c5482def78dddcf019ea0ac8810457784679fc0d9dfac0c4 | helium/erlang-libp2p | libp2p_proxy_req.erl | %%%-------------------------------------------------------------------
%% @doc
= = Request = =
Libp2p2 Proxy Request API
%% @end
%%%-------------------------------------------------------------------
-module(libp2p_proxy_req).
-export([
create/1
,address/1
]).
-include("pb/libp2p_proxy_pb.hrl").
-ifdef... | null | https://raw.githubusercontent.com/helium/erlang-libp2p/d587854c8a1f093576bbd05ab4616bcc2693e600/src/proxy/libp2p_proxy_req.erl | erlang | -------------------------------------------------------------------
@doc
@end
-------------------------------------------------------------------
--------------------------------------------------------------------
@doc
Create an proxy request
@end
------------------------------------------------------------------... | = = Request = =
Libp2p2 Proxy Request API
-module(libp2p_proxy_req).
-export([
create/1
,address/1
]).
-include("pb/libp2p_proxy_pb.hrl").
-ifdef(TEST).
-include_lib("eunit/include/eunit.hrl").
-endif.
-type proxy_req() :: #libp2p_proxy_req_pb{}.
-export_type([proxy_req/0]).
-spec create(string()) -... |
3fd706b8f7f494a04d530811e92da9c95b1769290a3953ec2f002c7a3fe56b90 | eutro/gdlisp | parser.rkt | #lang racket/base
(require "compiler.rkt"
"utils.rkt"
(prefix-in
$
(combine-in
"extra-symbols.rkt"
(for-template "extra-symbols.rkt")))
racket/format
racket/list
racket/string
syntax/parse
syntax/datum
... | null | https://raw.githubusercontent.com/eutro/gdlisp/b7568a793c24cb5c858ee5be224404265cbc827e/parser.rkt | racket | #;
#; | #lang racket/base
(require "compiler.rkt"
"utils.rkt"
(prefix-in
$
(combine-in
"extra-symbols.rkt"
(for-template "extra-symbols.rkt")))
racket/format
racket/list
racket/string
syntax/parse
syntax/datum
... |
15498696b27ce8b29218f1b798fd11a4845b8f47763ee4f931215ca8dfb77e8e | dterei/SafeHaskellExamples | Main.hs | module Main where
import Data.Dynamic
import qualified A as A (a)
import qualified B as B (b)
main :: IO ()
main = do
let a = fromDyn A.a $ error "A.a" :: Int -> Dynamic
let b = fromDyn B.b $ error "B.b" :: Dynamic -> String
print $ b $ a $ 5
| null | https://raw.githubusercontent.com/dterei/SafeHaskellExamples/0f7bbb53cf1cbb8419ce3a4aa4258b84be30ffcc/typeFamilies/Main.hs | haskell | module Main where
import Data.Dynamic
import qualified A as A (a)
import qualified B as B (b)
main :: IO ()
main = do
let a = fromDyn A.a $ error "A.a" :: Int -> Dynamic
let b = fromDyn B.b $ error "B.b" :: Dynamic -> String
print $ b $ a $ 5
| |
c92eb8aa0283ce01c4467592c531a8ccb651cb435fcfc54e4334b29d74fc7113 | ocaml/ocaml-lsp | import.ml | module List = ListLabels
include struct
TODO remove stdune dependence
open Stdune
module Code_error = Code_error
module Exn_with_backtrace = Exn_with_backtrace
end
include struct
open Jsonrpc
module Id = Id
module Response = Response
module Request = Request
module Notification = Notification
mod... | null | https://raw.githubusercontent.com/ocaml/ocaml-lsp/2c31f3585e2579aa0dcd5bdb9e8934760bdd859d/jsonrpc-fiber/src/import.ml | ocaml | module List = ListLabels
include struct
TODO remove stdune dependence
open Stdune
module Code_error = Code_error
module Exn_with_backtrace = Exn_with_backtrace
end
include struct
open Jsonrpc
module Id = Id
module Response = Response
module Request = Request
module Notification = Notification
mod... | |
2bd02e6954cf028349fec3bed7b60ab745c4102f9eafa5b47f7a3b6d752963cc | icicle-lang/icicle-ambiata | Pretty.hs | -- | Pretty for functions
--
# LANGUAGE LambdaCase #
# LANGUAGE NoImplicitPrelude #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE PatternGuards #
module Icicle.Source.Type.Pretty (
prettyFun
, prettyFunWithNames
, prettyFunWithLetters
, prettyFunFromStrings
, letterNames
) where
import ... | null | https://raw.githubusercontent.com/icicle-lang/icicle-ambiata/9b9cc45a75f66603007e4db7e5f3ba908cae2df2/icicle-source/src/Icicle/Source/Type/Pretty.hs | haskell | | Pretty for functions
# LANGUAGE OverloadedStrings #
| This is a rather dodgy trick.
Function types are generalised with fresh variable names,
however fresh variable names are quite ugly.
Instead of actually using nice names, we will clean them up
just before pretty printing.
We make them actual names (with th... | # LANGUAGE LambdaCase #
# LANGUAGE NoImplicitPrelude #
# LANGUAGE PatternGuards #
module Icicle.Source.Type.Pretty (
prettyFun
, prettyFunWithNames
, prettyFunWithLetters
, prettyFunFromStrings
, letterNames
) where
import Icicle.Common.Base
import Icicle.Source.Type.Ba... |
7f5b3b0ddae7af1d441df13c5224e6701eab3e242c69ee1021694628c54bdcfb | avsm/eeww | io.ml | open! Core
open! Async
include Io_intf
module Tls_error = struct
type t =
| Tls_alert of Tls.Packet.alert_type
(** [Tls_alert] exception received from the other endpoint *)
| Tls_failure of Tls.Engine.failure
(** [Tls_failure] exception while processing incoming data *)
| Connection_closed
| ... | null | https://raw.githubusercontent.com/avsm/eeww/49cbc7b7250611c1e909d4defde0027a5ef28157/lib/tls/async/io.ml | ocaml | * [Tls_alert] exception received from the other endpoint
* [Tls_failure] exception while processing incoming data
* XXX bad XXX
* This is a point that should particularly be protected from concurrent r/w.
* Doing this before a `t` is returned is safe; redoing it during rekeying is
* not, as the API clien... | open! Core
open! Async
include Io_intf
module Tls_error = struct
type t =
| Tls_alert of Tls.Packet.alert_type
| Tls_failure of Tls.Engine.failure
| Connection_closed
| Connection_not_ready
| Unexpected_eof
| Unable_to_renegotiate
| Unable_to_update_key
[@@deriving sexp_of]
end
module ... |
0678a136a553280e4995dc09defd57cb84122edca7309d42399f60420eebea71 | AshleyYakeley/Truth | DefDoc.hs | module Pinafore.Language.DefDoc
( DocItem(..)
, diNamesTraversal
, diMatchNameOrSubtypeRel
, DefDoc(..)
) where
import Pinafore.Language.Name
import Pinafore.Markdown
import Shapes
data DocItem
= HeadingDocItem { diTitle :: MarkdownText }
| NamespaceDocItem { diNamespace :: NamespaceRef }
... | null | https://raw.githubusercontent.com/AshleyYakeley/Truth/f567d19253bb471cbd8c39095fb414229b27706a/Pinafore/pinafore-language/lib/Pinafore/Language/DefDoc.hs | haskell | module Pinafore.Language.DefDoc
( DocItem(..)
, diNamesTraversal
, diMatchNameOrSubtypeRel
, DefDoc(..)
) where
import Pinafore.Language.Name
import Pinafore.Markdown
import Shapes
data DocItem
= HeadingDocItem { diTitle :: MarkdownText }
| NamespaceDocItem { diNamespace :: NamespaceRef }
... | |
2db4c69f1dd0ab7b62be77cf3edc2677539ff87b8c5569fc160eb728f05e1940 | avsm/platform | uuseg_word.ml | ---------------------------------------------------------------------------
Copyright ( c ) 2014 . All rights reserved .
Distributed under the ISC license , see terms at the end of the file .
% % NAME%% % % ---------------------------------------------------------------------------
Copyright (c) ... | null | https://raw.githubusercontent.com/avsm/platform/b254e3c6b60f3c0c09dfdcde92eb1abdc267fa1c/duniverse/uuseg.12.0.0%2Bdune/src/uuseg_word.ml | ocaml | fill slots on the right of boundary.
flush slot r0 to get to next boundary.
`End was added.
current state.
break window.
index in [window] of l0.
buffers for slots on the right of boundary.
index of buffer for slot [r0] in [rbufs].
index of right slot to fill.
odd number of RI on the left of boundary... | ---------------------------------------------------------------------------
Copyright ( c ) 2014 . All rights reserved .
Distributed under the ISC license , see terms at the end of the file .
% % NAME%% % % ---------------------------------------------------------------------------
Copyright (c) ... |
8e1d94dafa40dca9eae01b1a902ae0cc7e1a855fa10b99ce334708c55685c076 | VERIMAG-Polyhedra/VPL | BinNums.mli |
type positive =
| Coq_xI of positive
| Coq_xO of positive
| Coq_xH
type coq_N =
| N0
| Npos of positive
type coq_Z =
| Z0
| Zpos of positive
| Zneg of positive
| null | https://raw.githubusercontent.com/VERIMAG-Polyhedra/VPL/cd78d6e7d120508fd5a694bdb01300477e5646f8/ocaml/extracted/BinNums.mli | ocaml |
type positive =
| Coq_xI of positive
| Coq_xO of positive
| Coq_xH
type coq_N =
| N0
| Npos of positive
type coq_Z =
| Z0
| Zpos of positive
| Zneg of positive
| |
8aaa5f82eb8e897197bdbcc1521d258e24fbcd462d86733ed752e4387efac723 | ocharles/hs-quake-3 | Parser.hs | # LANGUAGE BangPatterns , DataKinds ,
DeriveGeneric , FlexibleInstances , FlexibleContexts , GeneralizedNewtypeDeriving , KindSignatures , RecordWildCards ,
ScopedTypeVariables , TypeApplications , UndecidableInstances #
DeriveGeneric, FlexibleInstances, FlexibleContexts, GeneralizedNewtypeDeriving, KindSigna... | null | https://raw.githubusercontent.com/ocharles/hs-quake-3/655f6ce2b04c69f5e05c01cf57356132aa711589/Parser.hs | haskell | # UNPACK #
# UNPACK #
| Texture lumps
# UNPACK #
# UNPACK #
# UNPACK #
| Planes lump
| Vertices
# UNPACK #
# UNPACK #
# UNPACK #
# UNPACK #
# UNPACK #
| Mesh vertices
| Leafs
# UNPACK #
# UNPACK #
# UNPACK #
# UNPACK #
# UNPACK #
# UNPACK #
# UNPACK #
# UNPACK #
| Leaf Faces
| Faces
# UNPACK #
# UNPACK #
# UNPAC... | # LANGUAGE BangPatterns , DataKinds ,
DeriveGeneric , FlexibleInstances , FlexibleContexts , GeneralizedNewtypeDeriving , KindSignatures , RecordWildCards ,
ScopedTypeVariables , TypeApplications , UndecidableInstances #
DeriveGeneric, FlexibleInstances, FlexibleContexts, GeneralizedNewtypeDeriving, KindSigna... |
5bbf0f821242121c5644eefaff50d2d4de42c3c38b4c910539b2690d035f5868 | fission-codes/fission | Parser.hs | module Fission.CLI.Parser (parserWithInfo) where
import Options.Applicative
import Fission.Prelude
import Fission.CLI.Parser.Command as Command
import qualified Fission.CLI.Parser.Types as CLI
parserWithInfo :: ParserInfo CLI.Options
parserWithInfo =
(Command.parser <**> helper) `i... | null | https://raw.githubusercontent.com/fission-codes/fission/11d14b729ccebfd69499a534445fb072ac3433a3/fission-cli/library/Fission/CLI/Parser.hs | haskell | module Fission.CLI.Parser (parserWithInfo) where
import Options.Applicative
import Fission.Prelude
import Fission.CLI.Parser.Command as Command
import qualified Fission.CLI.Parser.Types as CLI
parserWithInfo :: ParserInfo CLI.Options
parserWithInfo =
(Command.parser <**> helper) `i... | |
7eb86b2e74ed88b31a182fc0075063b66daa49841f5b501f88934442dec3099b | Helium4Haskell/helium | Generator6.hs |
main :: [()]
main = [() | Nothing <- []]
| null | https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/staticwarnings/Generator6.hs | haskell |
main :: [()]
main = [() | Nothing <- []]
| |
34e8b889ce979b4a52ae9c2838601ae67c98fc45c7a0b640fc50de0d1085a744 | tweag/ormolu | parallel-comprehensions-complex.hs | baz x y z w = [
(a,b,c,d,e,
f,g,h,i,j) |
a<- -- Foo 1
x, -- Foo 2
b<- -- Bar 1
y, -- Bar 2
a
`mod` b -- Value
== 0|
c<- -- Baz 1
z ... | null | https://raw.githubusercontent.com/tweag/ormolu/34bdf62429768f24b70d0f8ba7730fc4d8ae73ba/data/examples/declaration/value/function/parallel-comprehensions-complex.hs | haskell | Foo 1
Foo 2
Bar 1
Bar 2
Value
Baz 1
Baz 2
Baz 3
Other
Foo bar
Bar foo | baz x y z w = [
(a,b,c,d,e,
f,g,h,i,j) |
a
== 0|
Foo baz 1
Foo baz 2
Bar bar 1
Bar bar 2
Bar bar 3
Bar baz 1
Bar baz 2
]
|
ec8d3851ca49bfd18c49c715cd9abd9b36b95ccb3af4a122ec58d4f4a49e979d | fractalide/fractalide | in-agent.rkt | #lang racket
(require fractalide/modules/rkt/rkt-fbp/agent
fractalide/modules/rkt/rkt-fbp/graph)
(define-agent
#:input '("in") ; in array port
#:output '("out") ; out port
(define msg (recv (input "in")))
(define path (string-split msg "modules/rkt/rkt-fbp/"))
(define o (g-agent "" (cadr path)))... | null | https://raw.githubusercontent.com/fractalide/fractalide/9c54ec2615fcc2a1f3363292d4eed2a0fcb9c3a5/modules/rkt/rkt-fbp/agents/hyperflow/graph/in-agent.rkt | racket | in array port
out port | #lang racket
(require fractalide/modules/rkt/rkt-fbp/agent
fractalide/modules/rkt/rkt-fbp/graph)
(define-agent
(define msg (recv (input "in")))
(define path (string-split msg "modules/rkt/rkt-fbp/"))
(define o (g-agent "" (cadr path)))
(send (output "out") o))
|
c7fbde60132132ac4c0a82b27401dc244419db90bd742d9361f2a91cb86d197b | babashka/tools-deps-native | gen-reflect-config.clj | #!/usr/bin/env bb
Build GraalVM configuration using the native - image - agent .
;; Runs a command to determine required config that can not be determined
;; statically.
(require '[babashka.tasks :refer [shell]]
'[cheshire.core :as cheshire]
'[clojure.string :as str]
'[graalvm :refer [ext... | null | https://raw.githubusercontent.com/babashka/tools-deps-native/50d5676a8a89ad552591c1f2965d4537ee2bbbe9/script/gen-reflect-config.clj | clojure | Runs a command to determine required config that can not be determined
statically.
NOTE adding an s3 dep here would enable s3 support?
[Z = boolean
[B = byte
[S = short
[I = int
[J = long
[F = float
[D = double
[C = char
[L = any non-primitives(Object)
unignore other reflective calls in clojure.lang.RT
(p... | #!/usr/bin/env bb
Build GraalVM configuration using the native - image - agent .
(require '[babashka.tasks :refer [shell]]
'[cheshire.core :as cheshire]
'[clojure.string :as str]
'[graalvm :refer [extra-env
native-bin]])
(def trace-agent "-agentlib:native-image... |
936984fc644af2ba6179306ef9cf0b18ac57df9a4787cf307f068f546eb8df02 | foretspaisibles/ocaml-rashell | testCommand.ml | TestCommand -- Test basic command functionalities
Rashell ( )
This file is part of Rashell
Copyright © 2015—2016
This file must be used under the terms of the MIT license .
This source file is licensed as described in the file LICENSE , which
you should have received as part of thi... | null | https://raw.githubusercontent.com/foretspaisibles/ocaml-rashell/dba71d34aa3940bf6fad66fbe3ae11f0c095d25a/testsuite/testCommand.ml | ocaml | TestCommand -- Test basic command functionalities
Rashell ( )
This file is part of Rashell
Copyright © 2015—2016
This file must be used under the terms of the MIT license .
This source file is licensed as described in the file LICENSE , which
you should have received as part of thi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.