_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 |
|---|---|---|---|---|---|---|---|---|
36072c869aef8748e2dcc11ec33e6f549a9b67079a437659a5a3b2843d3b2463 | aistrate/Okasaki | Ex05_07.hs | module Ex05_07 where
import SplayHeap
sortWithHeap :: Ord a => [a] -> [a]
sortWithHeap = toList . fromList
| null | https://raw.githubusercontent.com/aistrate/Okasaki/cc1473c81d053483bb5e327409346da7fda10fb4/MyCode/Ch05/Ex05_07.hs | haskell | module Ex05_07 where
import SplayHeap
sortWithHeap :: Ord a => [a] -> [a]
sortWithHeap = toList . fromList
| |
d637c91d79fe38d75c7a43905d4cf269e5332c46e8d1e91cde92cf0b87b5d814 | Octachron/babilim | parse.ml | let file input =
let ch = open_in input in
let lex = Lexing.from_channel ch in
Parser.file Lexer.main lex
| null | https://raw.githubusercontent.com/Octachron/babilim/46b0412cd6efef5efe26bfd379566688bf7ab571/po/parse.ml | ocaml | let file input =
let ch = open_in input in
let lex = Lexing.from_channel ch in
Parser.file Lexer.main lex
| |
5f0d3665f8485ce8359d67181f1d458d9c905f2d61e0e38a638db00ea8437d4d | finkel-lang/finkel | Orphan.hs | ;;; -*- mode: finkel -*-
;;;; Orphan instances for QuickCheck
;;; This module contains duplicated codes with `Orphan' module used by
;;; finkel-kernel test. At the moment, could not find a nice way to
;;; avoid adding QuickCheck package dependency without code
;;; duplication.
%p(OPTIONS_GHC -fno-warn-orphans)
(:req... | null | https://raw.githubusercontent.com/finkel-lang/finkel/74ce4bb779805ad2b141098e29c633523318fa3e/finkel-core/test/Orphan.hs | haskell | ;;; -*- mode: finkel -*-
;;;; Orphan instances for QuickCheck
;;; This module contains duplicated codes with `Orphan' module used by
;;; finkel-kernel test. At the moment, could not find a nice way to
;;; avoid adding QuickCheck package dependency without code
;;; duplication.
%p(OPTIONS_GHC -fno-warn-orphans)
(:req... | |
d2110c25b1e64451796ef9997348ee319217d4e7797d3554b40dcccc49b777d1 | metaocaml/ber-metaocaml | topdirs.ml | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/toplevel/topdirs.ml | ocaml | ************************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
Toplevel directives
open Format
open Misc
open Longident
open Types
open Cmo_format
open Trace
open To... |
42d9e057ecdd4f0844728a0fef33ab945ed8c1dd6eb429b8b7a1fc3ac13aceb7 | racket/compatibility | foreign.rkt | (module foreign racket/base
(require scheme/foreign)
(provide (all-from-out scheme/foreign)))
| null | https://raw.githubusercontent.com/racket/compatibility/492030dac6f095045ce8a13dca75204dd5f34e32/compatibility-lib/mzlib/foreign.rkt | racket | (module foreign racket/base
(require scheme/foreign)
(provide (all-from-out scheme/foreign)))
| |
00decf7984c4c9c030f9b1dae736bad68eab3a3c823ae9c13ab424f32b2c6d7a | schlepfilter/frp | letter_count.cljs | (ns examples.rx.letter-count
(:require [cats.core :as m]
[frp.core :as frp]))
(frp/defe length)
(def message
(->> length
(m/<$> (partial str "length: "))
(frp/stepper "Start Typing!")))
(defn letter-count-component
[message*]
[:div
[:h1 "Letter Counting Example"]
[:p "Example ... | null | https://raw.githubusercontent.com/schlepfilter/frp/4a889f0aefd3aa17371fe1f0cdfabdad01fece8f/examples/src/examples/rx/letter_count.cljs | clojure | (ns examples.rx.letter-count
(:require [cats.core :as m]
[frp.core :as frp]))
(frp/defe length)
(def message
(->> length
(m/<$> (partial str "length: "))
(frp/stepper "Start Typing!")))
(defn letter-count-component
[message*]
[:div
[:h1 "Letter Counting Example"]
[:p "Example ... | |
a92d56398aa005a0ea337d296e309a66e9bca73744748c605c2b8ae0e0d114f4 | vinted/kafka-elasticsearch-tool | sci.clj | (ns polyglot.sci
(:require [sci.core :as sci]
[core.json :as json])
(:import (java.util UUID Date)))
(defn sci-compile [^String script]
(sci/eval-string script
{:classes {'java.util.UUID java.util.UUID
'java.util.Date java.util.Date}}))
(defn script->... | null | https://raw.githubusercontent.com/vinted/kafka-elasticsearch-tool/281de24d51cbd2a7ad78e3c1d13a4619b786210d/src/polyglot/sci.clj | clojure | specializations for multi argument functions | (ns polyglot.sci
(:require [sci.core :as sci]
[core.json :as json])
(:import (java.util UUID Date)))
(defn sci-compile [^String script]
(sci/eval-string script
{:classes {'java.util.UUID java.util.UUID
'java.util.Date java.util.Date}}))
(defn script->... |
937d97a4e99cba8980e822b85d76ec12516a91cae38b3c7b17b4f81d6249a86d | arttuka/reagent-material-ui | fluorescent_outlined.cljs | (ns reagent-mui.icons.fluorescent-outlined
"Imports @mui/icons-material/FluorescentOutlined as a Reagent component."
(:require-macros [reagent-mui.util :refer [create-svg-icon e]])
(:require [react :as react]
["@mui/material/SvgIcon" :as SvgIcon]
[reagent-mui.util]))
(def fluorescent-outl... | null | https://raw.githubusercontent.com/arttuka/reagent-material-ui/14103a696c41c0eb67fc07fc67cd8799efd88cb9/src/icons/reagent_mui/icons/fluorescent_outlined.cljs | clojure | (ns reagent-mui.icons.fluorescent-outlined
"Imports @mui/icons-material/FluorescentOutlined as a Reagent component."
(:require-macros [reagent-mui.util :refer [create-svg-icon e]])
(:require [react :as react]
["@mui/material/SvgIcon" :as SvgIcon]
[reagent-mui.util]))
(def fluorescent-outl... | |
d3aca5fe6b6d6fb7221a03f13922a7a89d6c4340e61b5ba00d483825b8119beb | Frama-C/Frama-C-snapshot | export_coq.mli | (**************************************************************************)
(* *)
This file is part of WP plug - in of Frama - C.
(* *)
Copyrigh... | null | https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/qed/export_coq.mli | ocaml | ************************************************************************
alternatives)
... | This file is part of WP plug - in of Frama - C.
Copyright ( C ) 2007 - 2019
CEA ( Commissariat a l'energie atomique et aux energies
Lesser General Public License as published by the Free Software
Foundation ,... |
230b4416d078dfa1258181e8a79c23d9296cd619a25535c47afea7346c865c87 | LispEngineer/aiband | player.clj | Copyright 2016 , Jr.
symbolics _ at _ lisp.engineer
;; /
;;
Aiband - The Artificial Intelligence Roguelike
Aiband player - related functionality
;; TODO: Make the player object an entity?
(ns aiband.player
(:require [aiband.level :as lv :reload true]
[aiband.random :as rnd :reload true]
... | null | https://raw.githubusercontent.com/LispEngineer/aiband/c29181401ba8767099aac52120651f99d36af7a3/Assets/aiband/player.clj | clojure | /
TODO: Make the player object an entity?
We specifically don't want update-val and update-state as we
made better versions of these
Place the player in the level on a random floor tile
TODO: Change this from :x :y to :coord [x y]
Test the above | Copyright 2016 , Jr.
symbolics _ at _ lisp.engineer
Aiband - The Artificial Intelligence Roguelike
Aiband player - related functionality
(ns aiband.player
(:require [aiband.level :as lv :reload true]
[aiband.random :as rnd :reload true]
[clojure.algo.monads :as µ
... |
7e00c50bf38e072c8d36649b05c1d77fbb1b593bd53828eaa94205f472d43d36 | bazqux/bazqux-urweb | MapFieldType.hs | # LANGUAGE BangPatterns , DeriveDataTypeable , FlexibleInstances , MultiParamTypeClasses , TemplateHaskell #
# OPTIONS_GHC -fno - warn - unused - imports #
module Network.Riak.Protocol.MapField.MapFieldType (MapFieldType(..)) where
import Prelude ((+), (/), (.))
import qualified Prelude as Prelude'
import qualified Dat... | null | https://raw.githubusercontent.com/bazqux/bazqux-urweb/bf2d5a65b5b286348c131e91b6e57df9e8045c3f/crawler/Lib/riak-protobuf-0.22.0.0/src/Network/Riak/Protocol/MapField/MapFieldType.hs | haskell | # LANGUAGE BangPatterns , DeriveDataTypeable , FlexibleInstances , MultiParamTypeClasses , TemplateHaskell #
# OPTIONS_GHC -fno - warn - unused - imports #
module Network.Riak.Protocol.MapField.MapFieldType (MapFieldType(..)) where
import Prelude ((+), (/), (.))
import qualified Prelude as Prelude'
import qualified Dat... | |
16c513b47d37b1b4409579a367d21369a0cab1e1e7866edc6633a23c3361c2d6 | alexandroid000/improv | Duration.hs | {-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DeriveDataTypeable #-}
# LANGUAGE DeriveGeneric #
# LANGUAGE TemplateHaskell #
module Ros.Std_msgs.Duration where
import qualified Prelude as P
import Prelude ((.), (+), (*))
import qualified Data.Typeable as T
import Control.Applicative
import Ros.Internal.RosBinary
impo... | null | https://raw.githubusercontent.com/alexandroid000/improv/ef0f4a6a5f99a9c7ff3d25f50529417aba9f757c/roshask/msgs/Std_msgs/Ros/Std_msgs/Duration.hs | haskell | # LANGUAGE OverloadedStrings #
# LANGUAGE DeriveDataTypeable # | # LANGUAGE DeriveGeneric #
# LANGUAGE TemplateHaskell #
module Ros.Std_msgs.Duration where
import qualified Prelude as P
import Prelude ((.), (+), (*))
import qualified Data.Typeable as T
import Control.Applicative
import Ros.Internal.RosBinary
import Ros.Internal.Msg.MsgInfo
import qualified GHC.Generics as G
import q... |
67e5fbb172d3aa4b85839933d979267043107f9f215a63382e37acb5f12c8706 | metabase/metabase | tables_test.clj | (ns ^:mb/once metabase.sync.sync-metadata.tables-test
"Test for the logic that syncs Table models with the metadata fetched from a DB."
(:require
[clojure.test :refer :all]
[metabase.models :refer [Database Table]]
[metabase.sync.sync-metadata.tables :as sync-tables]
[metabase.test :as mt]
[metabase.... | null | https://raw.githubusercontent.com/metabase/metabase/c659e767d1371db8820dc867f3538edcd694265a/test/metabase/sync/sync_metadata/tables_test.clj | clojure | (ns ^:mb/once metabase.sync.sync-metadata.tables-test
"Test for the logic that syncs Table models with the metadata fetched from a DB."
(:require
[clojure.test :refer :all]
[metabase.models :refer [Database Table]]
[metabase.sync.sync-metadata.tables :as sync-tables]
[metabase.test :as mt]
[metabase.... | |
6ac95027a11523d89238a1486b0bdaa2de5b82e76501070acbeb1e0f1b9f7417 | braidchat/braid | misc.cljs | (ns braid.core.client.ui.styles.misc
(:require
[braid.core.client.ui.styles.mixins :as mixins]
[braid.core.client.ui.styles.vars :as vars]
[garden.arithmetic :as m]
[garden.units :refer [rem em px ex]]))
(def page-headers
[[:.page>.title::before
{:margin-right (em 0.5)}]
[:.page.users>.title::b... | null | https://raw.githubusercontent.com/braidchat/braid/2e44eb6e77f1d203115f9b9c529bd865fa3d7302/src/braid/core/client/ui/styles/misc.cljs | clojure | (ns braid.core.client.ui.styles.misc
(:require
[braid.core.client.ui.styles.mixins :as mixins]
[braid.core.client.ui.styles.vars :as vars]
[garden.arithmetic :as m]
[garden.units :refer [rem em px ex]]))
(def page-headers
[[:.page>.title::before
{:margin-right (em 0.5)}]
[:.page.users>.title::b... | |
5574c19685e226abc26c3ca1015db4798614acf517a4d7e8518ee6f3143b84a1 | Copilot-Language/copilot-core | Locals.hs | --------------------------------------------------------------------------------
Copyright © 2011 National Institute of Aerospace / Galois , Inc.
--------------------------------------------------------------------------------
-- | Let expressions.
--
Although Copilot is a DSL embedded in Haskell and does support... | null | https://raw.githubusercontent.com/Copilot-Language/copilot-core/a8b79da96b11da20c36c4d4e0624e234a4d04323/src/Copilot/Core/Locals.hs | haskell | ------------------------------------------------------------------------------
------------------------------------------------------------------------------
| Let expressions.
expressions, we want Copilot to be able to implement explicit sharing, to
detect when the same stream is being used in multiple places in a... | Copyright © 2011 National Institute of Aerospace / Galois , Inc.
Although Copilot is a DSL embedded in Haskell and does support let
# LANGUAGE Trustworthy #
# LANGUAGE ExistentialQuantification #
module Copilot.Core.Locals
( Loc (..)
, locals
) where
import Copilot.Core hiding (toList)
import Data.DList ... |
1743f7d3eb9facbac43074044aec65603cd262094d51fa16a7aceab8dcf9e64e | mhwombat/creatur | PersistentQC.hs | ------------------------------------------------------------------------
-- |
Module : ALife . . PersistentQC
Copyright : ( c ) 2012 - 2022
-- License : BSD-style
-- Maintainer :
-- Stability : experimental
-- Portability : portable
--
-- QuickCheck tests.
--
---------------------------... | null | https://raw.githubusercontent.com/mhwombat/creatur/c715f4de16d29b646b27f3185d1d073df0fc9cb6/test/ALife/Creatur/PersistentQC.hs | haskell | ----------------------------------------------------------------------
|
License : BSD-style
Maintainer :
Stability : experimental
Portability : portable
QuickCheck tests.
----------------------------------------------------------------------
Re-read the counter. Was it updated properly? | Module : ALife . . PersistentQC
Copyright : ( c ) 2012 - 2022
module ALife.Creatur.PersistentQC
(
test
) where
import ALife.Creatur.Persistent
import Control.Monad.State (execStateT, evalStateT, runStateT)
import System.IO.Temp (withSystemTempDirectory)
import Test.Framework as TF (Test, t... |
cf4fba673bf7b5936f7f2c7eb3382cae0c7caaf73bb6e720167d8984d8cce918 | fluree/ledger | transact.clj | (ns fluree.db.ledger.transact
(:require [fluree.db.util.log :as log]
[fluree.db.flake :as flake]
[fluree.db.dbproto :as dbproto]
[fluree.db.util.core :as util]
[fluree.crypto :as crypto]
[fluree.db.ledger.indexing :as indexing]
[fluree.db.session... | null | https://raw.githubusercontent.com/fluree/ledger/2b7819f38c6d9f8347028e4458fb8a301a3d9a35/src/fluree/db/ledger/transact.clj | clojure | db before each transaction
db after each transaction
block number
never updated, t before block
final block hash
signature(s) of ledgers that seal the block
note the "block" transaction won't have a txid
We order each txn command according to the t
explicitly returning nil will halt farther processing on block... | (ns fluree.db.ledger.transact
(:require [fluree.db.util.log :as log]
[fluree.db.flake :as flake]
[fluree.db.dbproto :as dbproto]
[fluree.db.util.core :as util]
[fluree.crypto :as crypto]
[fluree.db.ledger.indexing :as indexing]
[fluree.db.session... |
16ac0202687c257851c110eece3469f3e9f9a456c163cdeb03a652640daa3d00 | yetibot/core | spec.clj | (ns yetibot.core.spec
(:require [clojure.string :as string]
[clojure.spec.alpha :as s]))
(s/def ::non-blank-string (s/and string?
(complement string/blank?)))
| null | https://raw.githubusercontent.com/yetibot/core/e35cc772622e91aec3ad7f411a99fff09acbd3f9/src/yetibot/core/spec.clj | clojure | (ns yetibot.core.spec
(:require [clojure.string :as string]
[clojure.spec.alpha :as s]))
(s/def ::non-blank-string (s/and string?
(complement string/blank?)))
| |
743e1826e547ee2d8c3e7cfd297ee367b2b45d5cf2828621a0020c591d31f6fb | basho/riak_cs_core | riak_cs_core_sup.erl |
-module(riak_cs_core_sup).
-behaviour(supervisor).
%% API
-export([start_link/0]).
%% Supervisor callbacks
-export([init/1]).
%% Helper macro for declaring children of supervisor
-define(CHILD(I, Type), {I, {I, start_link, []}, permanent, 5000, Type, [I]}).
%% =====================================================... | null | https://raw.githubusercontent.com/basho/riak_cs_core/d4059c90393df2ad1377396fdbb40c8f16d531bb/src/riak_cs_core_sup.erl | erlang | API
Supervisor callbacks
Helper macro for declaring children of supervisor
===================================================================
API functions
===================================================================
===================================================================
Supervisor callback... |
-module(riak_cs_core_sup).
-behaviour(supervisor).
-export([start_link/0]).
-export([init/1]).
-define(CHILD(I, Type), {I, {I, start_link, []}, permanent, 5000, Type, [I]}).
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
init([]) ->
{ok, { {one_for_one, 5, 10}, []} }.
|
3f2cf45382b86ee9ce111c258c0dd6aecd87ebb5d080575d58d6e657bf1506f1 | ocaml-ppx/ppx | version.mli | * Represents a version of the OCaml compiler corresponding to a new AST .
type t
val compare : t -> t -> int
val equal : t -> t -> bool
val to_string : t -> string
val of_string : string -> t
| null | https://raw.githubusercontent.com/ocaml-ppx/ppx/40e5a35a4386d969effaf428078c900bd03b78ec/astlib/version.mli | ocaml | * Represents a version of the OCaml compiler corresponding to a new AST .
type t
val compare : t -> t -> int
val equal : t -> t -> bool
val to_string : t -> string
val of_string : string -> t
| |
59f80d9c05e455d957416855c6811b236b5ae632239d5470f62006a75c9c372a | hopbit/sonic-pi-snippets | dp_fac_3_bit.sps | # key: dp fac 3 bit
# point_line: 0
# point_index: 0
# --
# DP FAC 3 BIT
# Our simple break bit wrapped into class
# Base class
class BeatLoop
attr_reader :steps # amount of beats in pattern
attr_accessor :bpm
attr_reader :loop # pattern
def initialize(samples_path)
raise 'Use subclasses'
end
end
#
cla... | null | https://raw.githubusercontent.com/hopbit/sonic-pi-snippets/2232854ac9587fc2f9f684ba04d7476e2dbaa288/dp/dp_fac_3_bit.sps | scheme | # key: dp fac 3 bit
# point_line: 0
# point_index: 0
# --
# DP FAC 3 BIT
# Our simple break bit wrapped into class
# Base class
class BeatLoop
attr_reader :steps # amount of beats in pattern
attr_accessor :bpm
attr_reader :loop # pattern
def initialize(samples_path)
raise 'Use subclasses'
end
end
#
cla... | |
574832defbdd3f7fd4364a84db72c323598c3196aa9095e0d1e131af56bfedaa | benoitc/econfig | econfig.erl | %%% -*- erlang -*-
%%%
This file is part of econfig released under the Apache 2 license .
%%% See the NOTICE for more information.
%% @doc Public API of econfig
%% econfig rely on a central gen_server an an ETS ordered-set.
%% @end
-module(econfig).
-export([register_config/2, register_config/3,
open_confi... | null | https://raw.githubusercontent.com/benoitc/econfig/84d7cec15f321c4ac5f5c6e08e5a9a8adea01986/src/econfig.erl | erlang | -*- erlang -*-
See the NOTICE for more information.
@doc Public API of econfig
econfig rely on a central gen_server an an ETS ordered-set.
@end
helper functions
@doc register inifiles of config dirs with options
For now the only option is `autoreload' to auto reload the config on
Configs can also be register... | This file is part of econfig released under the Apache 2 license .
-module(econfig).
-export([register_config/2, register_config/3,
open_config/2, open_config/3,
unregister_config/1,
subscribe/1, unsubscribe/1,
reload/1, reload/2,
start_autoreload/1, stop_autoreload/1,
... |
6b1be034c6515d9be7253a258f17a07ad701ffac0cb508f879500f4c78d22717 | acieroid/scala-am | 7.scm | 7.2
(define (atom? x)
(not (pair? x)))
(define (depth tree)
(cond ((null? tree) 0)
((atom? tree) 0)
(else (max (+ 1 (depth (car tree)))
(depth (cdr tree))))))
(define (leaf-count tree)
(cond
((null? tree) 0)
((atom? tree) 1)
(else (+ (leaf-count (car tree))
(leaf-co... | null | https://raw.githubusercontent.com/acieroid/scala-am/13ef3befbfc664b77f31f56847c30d60f4ee7dfe/test/R5RS/scp1-compressed/7.scm | scheme | (define (atom? x)
(not (pair? x)))
(define (atom? x)
(not (pair? x)))
(define (atom? x)
(not (pair? x)))
(define (atom? x)
(not (pair? x)))
X
(geel (X X)))))
(define (tel-knallen vuurwerk)
(define (tel-low-energies v)
(cond ((null? v) ... | 7.2
(define (atom? x)
(not (pair? x)))
(define (depth tree)
(cond ((null? tree) 0)
((atom? tree) 0)
(else (max (+ 1 (depth (car tree)))
(depth (cdr tree))))))
(define (leaf-count tree)
(cond
((null? tree) 0)
((atom? tree) 1)
(else (+ (leaf-count (car tree))
(leaf-co... |
6b0fe0669cdafe53de74749de5c8d8480033c637aac0a2efa0ada2b4cca7fcbe | timothypratley/leaderboardx | csv_test.cljc | (ns algopop.leaderboardx.app.io.csv-test
(:require [clojure.test :refer :all])
(:require [algopop.leaderboardx.app.io.csv :as csv]
[algopop.leaderboardx.graph.seed :as seed]))
(deftest read-write-graph-test
(let [g (seed/basic-example-graph)]
(is (= g
(csv/read-graph (csv/write-graph g... | null | https://raw.githubusercontent.com/timothypratley/leaderboardx/ad1719b3bb49fb7ab495ed833f1a451ebb3aec4d/test/algopop/leaderboardx/app/io/csv_test.cljc | clojure | (ns algopop.leaderboardx.app.io.csv-test
(:require [clojure.test :refer :all])
(:require [algopop.leaderboardx.app.io.csv :as csv]
[algopop.leaderboardx.graph.seed :as seed]))
(deftest read-write-graph-test
(let [g (seed/basic-example-graph)]
(is (= g
(csv/read-graph (csv/write-graph g... | |
ddc45835af44f8acf3489e8221673be738cc09a05569634f7e99dbb88a15bb5d | chetmurthy/pa_ppx | pa_deriving_enum.ml | (* camlp5r *)
(* pa_deriving_enum.ml,v *)
Copyright ( c ) INRIA 2007 - 2017
#load "pa_extend.cmo";
#load "q_MLast.cmo";
#load "pa_macro.cmo";
#load "pa_macro_gram.cmo";
#load "pa_extfun.cmo";
open Asttools;
open MLast;
open Pa_ppx_base ;
open Pa_passthru ;
open Ppxutil ;
open Surveil ;
open Pa_deriving_base ;
valu... | null | https://raw.githubusercontent.com/chetmurthy/pa_ppx/7c662fcf4897c978ae8a5ea230af0e8b2fa5858b/pa_deriving.plugins/pa_deriving_enum.ml | ocaml | camlp5r
pa_deriving_enum.ml,v | Copyright ( c ) INRIA 2007 - 2017
#load "pa_extend.cmo";
#load "q_MLast.cmo";
#load "pa_macro.cmo";
#load "pa_macro_gram.cmo";
#load "pa_extfun.cmo";
open Asttools;
open MLast;
open Pa_ppx_base ;
open Pa_passthru ;
open Ppxutil ;
open Surveil ;
open Pa_deriving_base ;
value to_fname arg tyname =
if tyname = "t" ... |
5786a0cbad1e2c4c67973452a36fff980da481f8e8fab1bbe47d49e9c0a7853c | uw-unsat/serval | conditional-branch.rkt | #lang rosette
(require
"common.rkt")
(provide
b.cond)
(define (decode imm19)
(sign-extend (concat imm19 (bv #b00 2)) (bitvector 64)))
(define (interpret-b.cond cpu imm19 cond)
(define offset (decode imm19))
(when (condition-holds cpu cond)
(branch-to cpu (bvadd (cpu-pc-ref cpu) offset))))
(define-i... | null | https://raw.githubusercontent.com/uw-unsat/serval/be11ecccf03f81b8bd0557acf8385a6a5d4f51ed/serval/arm64/interp/conditional-branch.rkt | racket | #lang rosette
(require
"common.rkt")
(provide
b.cond)
(define (decode imm19)
(sign-extend (concat imm19 (bv #b00 2)) (bitvector 64)))
(define (interpret-b.cond cpu imm19 cond)
(define offset (decode imm19))
(when (condition-holds cpu cond)
(branch-to cpu (bvadd (cpu-pc-ref cpu) offset))))
(define-i... | |
c98e81fc6d32d5d1ae138b82c99ece9af4c588204c8a10986e18d605e8eb8cbd | proglang/ldgv | Utils.hs | module Utils where
import Parsing
import Syntax
import Interpreter
import ProcessEnvironment
import Control.Monad.Reader (runReaderT)
import Test.Hspec
shouldParseDecl :: HasCallStack => String -> Decl -> Expectation
shouldParseDecl source expected =
parseDecls source `shouldBe` Right [expected]
raiseFailure :: Ha... | null | https://raw.githubusercontent.com/proglang/ldgv/8d37669019cdc0464e0d5ab22b69f60585d641a5/test/Utils.hs | haskell | module Utils where
import Parsing
import Syntax
import Interpreter
import ProcessEnvironment
import Control.Monad.Reader (runReaderT)
import Test.Hspec
shouldParseDecl :: HasCallStack => String -> Decl -> Expectation
shouldParseDecl source expected =
parseDecls source `shouldBe` Right [expected]
raiseFailure :: Ha... | |
d02b8ea97d40aaa71b5cb0da7fa618769a1608a7824b1b29b263fc94b3a20ac6 | clash-lang/clash-compiler | unittests.hs | |
Copyright : ( C ) 2019 , Foamspace corp
License : BSD2 ( see the file LICENSE )
Maintainer : QBayLogic B.V. < >
Test driver
Copyright : (C) 2019, Foamspace corp
License : BSD2 (see the file LICENSE)
Maintainer : QBayLogic B.V. <>
Test driver
-}
module Main where
... | null | https://raw.githubusercontent.com/clash-lang/clash-compiler/92e34274a3ed39bbb5e21bbf26a3eb02c6fbd8e2/clash-cores/test/unittests.hs | haskell | |
Copyright : ( C ) 2019 , Foamspace corp
License : BSD2 ( see the file LICENSE )
Maintainer : QBayLogic B.V. < >
Test driver
Copyright : (C) 2019, Foamspace corp
License : BSD2 (see the file LICENSE)
Maintainer : QBayLogic B.V. <>
Test driver
-}
module Main where
... | |
e8d84e764c97a82c5d1c03c85361310bdd6b59a2cb3163d7163a57c457b5fe23 | mbenke/zpf2013 | SimpleCheck1.hs | module SimpleCheck1 where
import System.Random
( StdGen -- :: *
: : IO StdGen
, Random(..) -- class
: : ( RandomGen g , Random a ) = > ( a , a ) - > g - > ( a , g )
, split -- :: RandomGen g => g -> (g, g)
rozdziela argument na
instance RandomGen StdGen
)
import Data.List( group, ... | null | https://raw.githubusercontent.com/mbenke/zpf2013/85f32747e17f07a74e1c3cb064b1d6acaca3f2f0/Slides/13QC/SimpleCheck1.hs | haskell | :: *
class
:: RandomGen g => g -> (g, g)
* Arbitrary
Driver | module SimpleCheck1 where
import System.Random
: : IO StdGen
: : ( RandomGen g , Random a ) = > ( a , a ) - > g - > ( a , g )
rozdziela argument na
instance RandomGen StdGen
)
import Data.List( group, sort, intersperse )
import Control.Monad( liftM2, liftM3, liftM4 )
infixr 0 = = >
infix 1 ` cl... |
726d79366f080b5fff1227388bb86505b6a7fd8c60e7a4cc2f2d20f42cebcdf3 | avsm/mirage-ci | opam_ops.mli | ---------------------------------------------------------------------------
Copyright ( c ) 2016 . All rights reserved .
Distributed under the ISC license , see terms at the end of the file .
% % NAME%% % % ---------------------------------------------------------------------------
Copyright (c) 2... | null | https://raw.githubusercontent.com/avsm/mirage-ci/a11ecf203976299fa19337fd9e1794d6ca3fa436/src/opam_ops.mli | ocaml | ---------------------------------------------------------------------------
Copyright ( c ) 2016 . All rights reserved .
Distributed under the ISC license , see terms at the end of the file .
% % NAME%% % % ---------------------------------------------------------------------------
Copyright (c) 2... | |
fedd46aa3ced4b23aaf28e38daf377f209dcc8175184a967927af025613b01a1 | coco-team/lustrec | json_parser.ml | open Basetypes
open Corelang
open Datatype
open LustreSpec
open Str
open Yojson
open Basic
module type ParseExt =
sig
val parse_condition : json -> Condition.t
val parse_action : json -> Action.t
val parse_event : json -> Basetypes.event_t
end
module Parser (Ext : ParseExt) =
struct
exception JSON_pars... | null | https://raw.githubusercontent.com/coco-team/lustrec/b21f9820df97e661633cd4418fdab68a6c6ca67d/src/tools/stateflow/json-parser/json_parser.ml | ocaml | open Basetypes
open Corelang
open Datatype
open LustreSpec
open Str
open Yojson
open Basic
module type ParseExt =
sig
val parse_condition : json -> Condition.t
val parse_action : json -> Action.t
val parse_event : json -> Basetypes.event_t
end
module Parser (Ext : ParseExt) =
struct
exception JSON_pars... | |
ada52a3768947c8aa8b22a147b601f92001ce79ef86e20faf66dd795237f0eb5 | ranjitjhala/haddock-annot | Names.hs | -----------------------------------------------------------------------------
-- |
-- Module : Haddock.Backends.Html.Names
Copyright : ( c ) 2003 - 2006 ,
2006 - 2009 ,
2010
-- License : BSD-like
--
-- Maintainer :
-- Stability : experimenta... | null | https://raw.githubusercontent.com/ranjitjhala/haddock-annot/ffaa182b17c3047887ff43dbe358c246011903f6/haddock-2.9.3/src/Haddock/Backends/Xhtml/Names.hs | haskell | ---------------------------------------------------------------------------
|
Module : Haddock.Backends.Html.Names
License : BSD-like
Maintainer :
Stability : experimental
Portability : portable
---------------------------------------------------------------------------
| Render a name dependi... | Copyright : ( c ) 2003 - 2006 ,
2006 - 2009 ,
2010
module Haddock.Backends.Xhtml.Names (
ppName, ppDocName, ppLDocName, ppRdrName,
ppBinder, ppBinder',
ppModule, ppModuleRef,
linkId
) where
import Haddock.Backends.Xhtml.Utils
import Haddock.GhcUtil... |
495e690f7acd0df26b28cb9da5a3f896f12e2c58dc5fbf2c893c3dfef214a27b | ocaml-sf/learn-ocaml-corpus | test.ml | open Report
open Test_lib
let lookup_for ast =
let open Parsetree in
let open Ast_mapper in
let res = ref None in
try
let expr mapper = function
| { pexp_desc = Pexp_for (_, _, _, _, body) } -> res := Some body ; raise Exit
| p -> default_mapper.expr mapper p in
let mapper = { default_mappe... | null | https://raw.githubusercontent.com/ocaml-sf/learn-ocaml-corpus/7dcf4d72b49863a3e37e41b3c3097aa4c6101a69/exercises/mooc/week5/seq3/ex2/test.ml | ocaml | open Report
open Test_lib
let lookup_for ast =
let open Parsetree in
let open Ast_mapper in
let res = ref None in
try
let expr mapper = function
| { pexp_desc = Pexp_for (_, _, _, _, body) } -> res := Some body ; raise Exit
| p -> default_mapper.expr mapper p in
let mapper = { default_mappe... | |
5414f2cec72b5e921f03c16de7c4a5fb296cf45860e916540c567a89e9b51952 | sadiqj/ocaml-esp32 | typecore.mli | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/sadiqj/ocaml-esp32/33aad4ca2becb9701eb90d779c1b1183aefeb578/typing/typecore.mli | ocaml | ************************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
open Asttypes
open Types
open Format
val is_nonexpansive: Typedtree.expression -> bool
val type_bindin... |
d8c6a83fe1dd29b108989274cf9c520b608a2b90902fd8a95560df692e84885f | ekoontz/menard | generate.cljc | (ns menard.generate
(:require
#?(:clj [clojure.tools.logging :as log])
#?(:cljs [cljslog.core :as log])
[menard.exception :refer [exception]]
[menard.serialization :as ser]
[menard.treeops :as tr]
[dag_unify.core :as u :refer [unify]]
[dag_unify.diagnostics :as diag :refer [strip-refs]]
[dag_u... | null | https://raw.githubusercontent.com/ekoontz/menard/29438b9514bb5aa17b0097d167ba4c20932faffb/src/menard/generate.cljc | clojure | See:
- english.cljc/generate
- nederlands.cljc/generate
for example usage.
Diagnostics:
to log/info.
Profiling:
Turn on (def ^:dynamic profiling?) in your namespace with:
(binding [menard.generate/profiling? true]
(menard.generate ..))
TODO: investigate why that only holds true for
.cljs and not .clj.
... | (ns menard.generate
(:require
#?(:clj [clojure.tools.logging :as log])
#?(:cljs [cljslog.core :as log])
[menard.exception :refer [exception]]
[menard.serialization :as ser]
[menard.treeops :as tr]
[dag_unify.core :as u :refer [unify]]
[dag_unify.diagnostics :as diag :refer [strip-refs]]
[dag_u... |
37457faf1c77467ef876afa6cef0cb79d771f1c5fe0323d4a967b7384408d9f6 | xapi-project/xen-api | cancel_utils_test.ml |
* Copyright ( C ) Citrix Systems Inc.
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation ; version 2.1 only . with the special
* exception on linking described in file LI... | null | https://raw.githubusercontent.com/xapi-project/xen-api/76ee0fad02c8e0ef017cd8d9172525f042e2b47d/ocaml/xenopsd/xc/cancel_utils_test.ml | ocaml |
* Copyright ( C ) Citrix Systems Inc.
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation ; version 2.1 only . with the special
* exception on linking described in file LI... | |
415c17ddbb1a84c271052d424de75c0a3215747abe471d5fee63cbe6dfdb92f5 | fourmolu/fourmolu | op-chain-l-eq-four-out.hs | Left chain , 2 operators with p(a ) = = p(b )
s :: Int
s =
1
+ 2
+ 3
+ 4
- 5
+ 6
+ 7
+ 8
| null | https://raw.githubusercontent.com/fourmolu/fourmolu/1f8903a92c8d5001dc1ec8ecfd4a04a3b61c3283/data/examples/declaration/value/function/infix/op-chain-l-eq-four-out.hs | haskell | Left chain , 2 operators with p(a ) = = p(b )
s :: Int
s =
1
+ 2
+ 3
+ 4
- 5
+ 6
+ 7
+ 8
| |
c260aad4867f9df452d8dcc2a4f72956d1d2a3bcdb876207e38d4d592422853f | mfoemmel/erlang-otp | bar.2.erl | -module(bar).
-vsn(2).
-export([simple/1, complicated_sum/1]).
simple(X) ->
case lists2:assoc(simple, X) of
{ok, Val} -> Val;
false -> false
end.
complicated_sum(X) ->
lists2:multi_map(fun(A,B,C) -> A+B+C end, X).
| null | https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/sasl/doc/src/rel/bar.2.erl | erlang | -module(bar).
-vsn(2).
-export([simple/1, complicated_sum/1]).
simple(X) ->
case lists2:assoc(simple, X) of
{ok, Val} -> Val;
false -> false
end.
complicated_sum(X) ->
lists2:multi_map(fun(A,B,C) -> A+B+C end, X).
| |
9e491ea92b75f949936e04e05bad611a0c914bde1b29afb18ccf0d09ce1ea101 | daveho/catparty | exc.cljs | (ns catparty.exc)
Cat Party - C parser in Clojure / ClojureScript
Copyright ( c ) 2016 - 2017 , < >
;;
This is free software distributed under the GNU Public License , version 3 ,
or any later version . See COPYING.txt for details .
(defn throw-exception
"Generic function for throwing an exception (fo... | null | https://raw.githubusercontent.com/daveho/catparty/015fffd1c30ea1685d633184b0f157ec3aed5c7c/src/catparty/exc.cljs | clojure | (ns catparty.exc)
Cat Party - C parser in Clojure / ClojureScript
Copyright ( c ) 2016 - 2017 , < >
This is free software distributed under the GNU Public License , version 3 ,
or any later version . See COPYING.txt for details .
(defn throw-exception
"Generic function for throwing an exception (for C... | |
6cf7d3438bbea0d18189f26ef43e5b4bcaf7ca893d88ff5f240f361e609912c7 | goldfirere/thesis | HybCC.hs | module Algo.HybCC (hybcc) where
import Data.Vector.Unboxed as V
hybcc :: (Int, Vector Int, Vector Int) -> Vector Int
# NOINLINE hybcc #
hybcc (n, e1, e2) = concomp (V.zip e1 e2) n
where
concomp es n
| V.null es = V.enumFromTo 0 (n-1)
| otherwise = V.backpermute ins ins
where
... | null | https://raw.githubusercontent.com/goldfirere/thesis/22f066bc26b1147530525aabb3df686416b3e4aa/cab/vector-0.10.12.3/benchmarks/Algo/HybCC.hs | haskell | module Algo.HybCC (hybcc) where
import Data.Vector.Unboxed as V
hybcc :: (Int, Vector Int, Vector Int) -> Vector Int
# NOINLINE hybcc #
hybcc (n, e1, e2) = concomp (V.zip e1 e2) n
where
concomp es n
| V.null es = V.enumFromTo 0 (n-1)
| otherwise = V.backpermute ins ins
where
... | |
c7f4aba5b2258170b2fe091ba97ab94b950ee898171ea5107f83a3ac1842961f | Gastove/doctopus | index.cljs | (ns doctopus.views.index)
(defn tentacle-items
[tentacles]
[:ul
(for [tentacle tentacles]
(let [tentacle-name (:name tentacle)
tentacle-location (:location tentacle)]
^{:key tentacle-name} [:li
[:a {:href tentacle-location} tentacle-name]]))])
(defn hea... | null | https://raw.githubusercontent.com/Gastove/doctopus/407ca58bb01a6da84f3a76a58c800ee0a7f14190/src-cljs/views/index.cljs | clojure | (ns doctopus.views.index)
(defn tentacle-items
[tentacles]
[:ul
(for [tentacle tentacles]
(let [tentacle-name (:name tentacle)
tentacle-location (:location tentacle)]
^{:key tentacle-name} [:li
[:a {:href tentacle-location} tentacle-name]]))])
(defn hea... | |
3aab0ae2d51e95d20ef04c4c76b23e8053aad092f2afbe0ec3fd320f2d226498 | catharinejm/wombat-j | datatypes.clj | (ns wombat.datatypes
(:refer-clojure :exclude [cons list? list list* vector?]))
(alias 'core 'clojure.core)
(defprotocol ICons
(-cons [c o])
(-car [c])
(-cdr [c]))
(defn assert-pair!
[o]
(when-not (instance? wombat.datatypes.ICons o)
(throw (IllegalArgumentException. (str "Exptected pair, got " (class... | null | https://raw.githubusercontent.com/catharinejm/wombat-j/2620ace42a8866c79465068427e9ae8c39c89c7b/src/clj/wombat/datatypes.clj | clojure | (ns wombat.datatypes
(:refer-clojure :exclude [cons list? list list* vector?]))
(alias 'core 'clojure.core)
(defprotocol ICons
(-cons [c o])
(-car [c])
(-cdr [c]))
(defn assert-pair!
[o]
(when-not (instance? wombat.datatypes.ICons o)
(throw (IllegalArgumentException. (str "Exptected pair, got " (class... | |
2eee996edf7a6b243a1470446adfd92dd68cd02842a65ba91a8af5e5939b1d28 | spechub/Hets | SentenceKindType.hs | # LANGUAGE TemplateHaskell #
module Persistence.Schema.SentenceKindType where
import Database.Persist.TH
data SentenceKindType = OpenConjecture | Theorem | CounterTheorem | Axiom
deriving (Show, Read, Eq)
derivePersistField "SentenceKindType"
| null | https://raw.githubusercontent.com/spechub/Hets/af7b628a75aab0d510b8ae7f067a5c9bc48d0f9e/Persistence/Schema/SentenceKindType.hs | haskell | # LANGUAGE TemplateHaskell #
module Persistence.Schema.SentenceKindType where
import Database.Persist.TH
data SentenceKindType = OpenConjecture | Theorem | CounterTheorem | Axiom
deriving (Show, Read, Eq)
derivePersistField "SentenceKindType"
| |
634eebebf451ffb1fd7d0e20e8aa56202af10910f7ffa19e742dc1dda32ee46a | hamidreza-s/Tnesia | tnesia_sup.erl | -module(tnesia_sup).
-behaviour(supervisor).
-export([
start_link/0,
init/1
]).
%%====================================================================
%% Main API
%%====================================================================
%%--------------------------------------------------------------------
%% sta... | null | https://raw.githubusercontent.com/hamidreza-s/Tnesia/52a3a88a52b423fbc5959978c0bba61654166d47/src/tnesia_sup.erl | erlang | ====================================================================
Main API
====================================================================
--------------------------------------------------------------------
start_link
--------------------------------------------------------------------
======================... | -module(tnesia_sup).
-behaviour(supervisor).
-export([
start_link/0,
init/1
]).
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
init([]) ->
{ok, {{one_for_one, 5, 10},
[
{tnesia_http_sup,
{tnesia_http_sup, start_link, []},
transient,
3000,
supervisor... |
8bfb019541156fa41eb2374b9215c6df107a9f7205c94b3cf9643b30dbd1ad4e | Clozure/ccl | socket-test.lisp | ;; -*- Lisp -*-
(defpackage :socket-test
(:use :cl :ccl))
(in-package :socket-test)
(defconstant +receive-timeout+ 0.2)
(defun set-receive-timeout (socket)
(ccl::timeval-setsockopt (ccl::socket-device socket) #$SOL_SOCKET #$SO_RCVTIMEO +receive-timeout+))
(defun say (format &rest args)
(format t "~&; ~?~%" f... | null | https://raw.githubusercontent.com/Clozure/ccl/6c1a9458f7a5437b73ec227e989aa5b825f32fd3/examples/sockets/socket-test.lisp | lisp | -*- Lisp -*- |
(defpackage :socket-test
(:use :cl :ccl))
(in-package :socket-test)
(defconstant +receive-timeout+ 0.2)
(defun set-receive-timeout (socket)
(ccl::timeval-setsockopt (ccl::socket-device socket) #$SOL_SOCKET #$SO_RCVTIMEO +receive-timeout+))
(defun say (format &rest args)
(format t "~&; ~?~%" format args)
(f... |
bdde22de08c19d865cedc645f62fda8c3f5e988ae47c0ea44eaec345c0929157 | evrim/core-server | file-upload.lisp | ;; File upload example
:8080 / fupload / upload
(defpackage :fupload
(:use :cl :core-server :arnesi))
(in-package :fupload)
;; Create an application
(defparameter *fupload-app*
(make-instance 'http-application
:fqdn "fupload"
:admin-email ""))
;; Render a page
(defun/cc page (body)
(<:html
(<:head
... | null | https://raw.githubusercontent.com/evrim/core-server/200ea8151d2f8d81b593d605b183a9cddae1e82d/examples/file-upload.lisp | lisp | File upload example
Create an application
Render a page
Read a text and a file
Preview image with inline image tag.
Save file to "/tmp/"
Register a handler
Register our application to the server | :8080 / fupload / upload
(defpackage :fupload
(:use :cl :core-server :arnesi))
(in-package :fupload)
(defparameter *fupload-app*
(make-instance 'http-application
:fqdn "fupload"
:admin-email ""))
(defun/cc page (body)
(<:html
(<:head
(<:meta :http--equiv "Content-Type" :content "text/html; char... |
91f982f298f678449556966591861d43dfe520e1f54da4f3f503c775925198a3 | green-coder/mate | io.cljc | (ns mate.io
(:require [clojure.string :as str]
#?(:clj [clojure.java.io :as io]))
#?(:cljs (:require-macros [mate.io])))
(defn- resource-path
"Returns the path of a resource.
If `resource-name` starts with a './', the path is built
using the parent directory of `namespace-obj`."
[namespace-o... | null | https://raw.githubusercontent.com/green-coder/mate/43040121633b840e8c44ef84e382f0cbcf6a5e82/src/mate/io.cljc | clojure | (ns mate.io
(:require [clojure.string :as str]
#?(:clj [clojure.java.io :as io]))
#?(:cljs (:require-macros [mate.io])))
(defn- resource-path
"Returns the path of a resource.
If `resource-name` starts with a './', the path is built
using the parent directory of `namespace-obj`."
[namespace-o... | |
3bcbd98f45eab63ce56cde0b4cb6a4a65375a197d0ec739ef37919e38a22d0af | hasktorch/hasktorch | GRUSpec.hs | # LANGUAGE DataKinds #
# LANGUAGE TypeApplications #
module Torch.Typed.NN.Recurrent.Cell.GRUSpec
( Torch.Typed.NN.Recurrent.Cell.GRUSpec.spec,
)
where
import Test.Hspec
import qualified Torch.DType as D
import qualified Torch.Device as D
import Torch.HList
import qualified Torch.NN as A
import Torch.Typed.Factor... | null | https://raw.githubusercontent.com/hasktorch/hasktorch/c34996b0a401a5b1b98b5774e892fde88adaa079/hasktorch/test/Torch/Typed/NN/Recurrent/Cell/GRUSpec.hs | haskell | # LANGUAGE DataKinds #
# LANGUAGE TypeApplications #
module Torch.Typed.NN.Recurrent.Cell.GRUSpec
( Torch.Typed.NN.Recurrent.Cell.GRUSpec.spec,
)
where
import Test.Hspec
import qualified Torch.DType as D
import qualified Torch.Device as D
import Torch.HList
import qualified Torch.NN as A
import Torch.Typed.Factor... | |
fedb16aeee338f9336152263980792c9b4d6697bf40aedb00e2c10c5963f9d68 | ocsigen/obrowser | calc.ml | (**************************************************************************)
(* *)
Menhir
(* *)
, INRIA Ro... | null | https://raw.githubusercontent.com/ocsigen/obrowser/977c09029ea1e4fde4fb0bf92b4d893835bd9504/examples/calc/calc.ml | ocaml | ************************************************************************
et en Automatique. All rig... | Menhir
, INRIA Rocquencourt
, PPS , Université Paris Diderot
Copyright 2005 - 2008 Institut National de Recherche en Informatique
under the terms of the Q Public License versi... |
6bd20b86bef0037ef11e0ab036f22f3d7a8e9afeb2503b7add5021baeb36fd3c | melange-re/melange | gpr_3931_test.ml | module rec PA : sig
val print: int array -> unit
end = struct
let ( ) = P.print 3
let print =
let iter = Array.iter P.print in
fun a -> iter a
end
and P : sig
val print: int -> unit
end = struct
let print i =
print_endline (string_of_int i)
end
let () =
PA.print [|1; 2|] | null | https://raw.githubusercontent.com/melange-re/melange/246e6df78fe3b6cc124cb48e5a37fdffd99379ed/jscomp/test/gpr_3931_test.ml | ocaml | module rec PA : sig
val print: int array -> unit
end = struct
let ( ) = P.print 3
let print =
let iter = Array.iter P.print in
fun a -> iter a
end
and P : sig
val print: int -> unit
end = struct
let print i =
print_endline (string_of_int i)
end
let () =
PA.print [|1; 2|] | |
ac52280fbab974345e25399c2b4632fc22541d7cfbad093c936eabf07f92ffe5 | nikita-volkov/rerebase | HashSet.hs | module Data.HashSet
(
module Rebase.Data.HashSet
)
where
import Rebase.Data.HashSet
| null | https://raw.githubusercontent.com/nikita-volkov/rerebase/25895e6d8b0c515c912c509ad8dd8868780a74b6/library/Data/HashSet.hs | haskell | module Data.HashSet
(
module Rebase.Data.HashSet
)
where
import Rebase.Data.HashSet
| |
46a0b22cf23de7cb5cdbb02ce205d324aea203e24e8a582bd404f171fdbdec77 | alanzplus/EOPL | cp-interpreter-test.rkt | #lang eopl
(require rackunit "cp-interpreter.rkt")
(require rackunit/text-ui)
(define cp-interpreter-test
(test-suite
"cp-interpreter-test"
(check-equal?
(run "3")
(num-val 3))
(check-equal?
(run "let x = 0 in if zero?(x) then 3 else 4")
(num-val 3))
(check-equal?
(run ... | null | https://raw.githubusercontent.com/alanzplus/EOPL/d7b06392d26d93df851d0ca66d9edc681a06693c/EOPL/ch5/cp-interpreter-test.rkt | racket | #lang eopl
(require rackunit "cp-interpreter.rkt")
(require rackunit/text-ui)
(define cp-interpreter-test
(test-suite
"cp-interpreter-test"
(check-equal?
(run "3")
(num-val 3))
(check-equal?
(run "let x = 0 in if zero?(x) then 3 else 4")
(num-val 3))
(check-equal?
(run ... | |
f2a4fff8c926c6678f5d85a3bafdafebe92d0c43f6669708c2f90d8b97693a60 | cronburg/antlr-haskell | Stacks.hs | # LANGUAGE ScopedTypeVariables , , DeriveGeneric ,
OverloadedStrings #
OverloadedStrings #-}
|
Module : Text . ANTLR.Allstar . Stacks
Description : Graph - structured stack ( GSS ) for the ALL ( * ) algorithm
Copyright : ( c ) , 2018
License : BSD3
Maintainer :
Stab... | null | https://raw.githubusercontent.com/cronburg/antlr-haskell/7a9367038eaa58f9764f2ff694269245fbebc155/src/Text/ANTLR/Allstar/Stacks.hs | haskell | | Graph-structured stack representation
| Represents the set of __all__ stacks
| Get heads of non-empty stacks / lists:
ss :: a -> Stacks a | # LANGUAGE ScopedTypeVariables , , DeriveGeneric ,
OverloadedStrings #
OverloadedStrings #-}
|
Module : Text . ANTLR.Allstar . Stacks
Description : Graph - structured stack ( GSS ) for the ALL ( * ) algorithm
Copyright : ( c ) , 2018
License : BSD3
Maintainer :
Stab... |
09b6edd417f52f18e416593184232083f32eb3db274a07c9cda336fddcf740b4 | sellout/yaya | Retrofit.hs | {-# LANGUAGE DeriveTraversable #-}
# LANGUAGE TemplateHaskell #
-- | The point of this module is that it should compile _without_ importing any
other modules .
module Test.Retrofit where
import Hedgehog
import Yaya.Retrofit
data DExpr
= Lit Int
| Add DExpr DExpr
| Mult DExpr DExpr
deriving (Eq, Show)
e... | null | https://raw.githubusercontent.com/sellout/yaya/3801a84a4371f016fa9e1483f5a38f828e257c2d/core-test/test/Test/Retrofit.hs | haskell | # LANGUAGE DeriveTraversable #
| The point of this module is that it should compile _without_ importing any
-- | This can be derived in this case, but we want to ensure we could define it
-- if necessary.
(==) = recursiveEq
-- | This can be derived in this case, but we want to ensure we could define it
-- i... | # LANGUAGE TemplateHaskell #
other modules .
module Test.Retrofit where
import Hedgehog
import Yaya.Retrofit
data DExpr
= Lit Int
| Add DExpr DExpr
| Mult DExpr DExpr
deriving (Eq, Show)
extractPatternFunctor defaultRules ''DExpr
instance where
instance Show where
tests :: IO Bool
tests = che... |
ed0f197b677c253bf56a1c05c3fca2f9f1510f8c07cf80b55887ce42edd447cd | pangloss/pattern | pass09_explicate_control.clj | (ns compiler-course.pass09-explicate-control
(:require
[compiler-course.dialects :refer :all]
[pattern :refer [=> dialects directed rule rule-list sub]]))
;; Explicate expressions: remove nesting (aka flatten)
(declare x-pred x-assign)
(let [x-assign*
(dialects
(=> Simplified Explicit)
(... | null | https://raw.githubusercontent.com/pangloss/pattern/0745de2054e5c3ac78e8b4cfc6e13bd6d83b1626/test/compiler_course/pass09_explicate_control.clj | clojure | Explicate expressions: remove nesting (aka flatten) | (ns compiler-course.pass09-explicate-control
(:require
[compiler-course.dialects :refer :all]
[pattern :refer [=> dialects directed rule rule-list sub]]))
(declare x-pred x-assign)
(let [x-assign*
(dialects
(=> Simplified Explicit)
(rule-list
(rule '(if ?e ?then ?else)
... |
b45d7ee87c2740a15127525c02f225ba967ac6963df76134009b0bd737f425ff | brendanzab/language-garden | Parametric.ml | * Based on Equation 1.7 in “ The Algorithmic Beauty of Plants ”
Note that parametric L - Systems fall out of ’s algebraic datatypes and
pattern guards . No additional features are required !
pattern guards. No additional features are required! *)
type symbol =
| A of int * int
| B of int
| C
let ... | null | https://raw.githubusercontent.com/brendanzab/language-garden/446cb3c77b2b2d8d74b9634eb5a83a2dea4ce295/lang-fractal-growth/examples/Parametric.ml | ocaml | FIXME: could do with some spaces and/or punctuation between symbols | * Based on Equation 1.7 in “ The Algorithmic Beauty of Plants ”
Note that parametric L - Systems fall out of ’s algebraic datatypes and
pattern guards . No additional features are required !
pattern guards. No additional features are required! *)
type symbol =
| A of int * int
| B of int
| C
let ... |
6d8fb55a97d58b7500f137d2a10ef65f8cd21a0def50c69cf879fa5296090e75 | rsnikhil/Forvis_RISCV-ISA-Spec | Bit_Manipulation.hs | Copyright ( c ) 2018
-- See LICENSE for license details
module Bit_Manipulation where
-- ================================================================
-- This module defines various bit-manipulation functions used by the
-- RISC-V ISA semantics.
-- Some of these are just renamings or minor variants of standa... | null | https://raw.githubusercontent.com/rsnikhil/Forvis_RISCV-ISA-Spec/0c5590a12f4b39644d0497fa6285ad5e33003dfc/ZZ_OLD/v2/Bit_Manipulation.hs | haskell | See LICENSE for license details
================================================================
This module defines various bit-manipulation functions used by the
RISC-V ISA semantics.
Some of these are just renamings or minor variants of standard
Haskell functions, but are defined here to improve clarity by usi... | Copyright ( c ) 2018
module Bit_Manipulation where
Standard Haskell imports
import Data.Int
import Data.Word
import Data.Bits
import Data.Char
import Data.List
import Numeric (showHex, readHex)
' s8 ' , ' s16 ' , ' s32 ' and ' s64 ' for signed ints
' u ' for unsigned ints of ( 32 for RV32 ,... |
b587e70e034ed681d64be588a93e2a14adfb9f3587a9e2ff825ec07ad783622a | alvatar/spheres | integration-test.scm | (include "ffi-types-include.scm")
(include "test-macro.scm")
(c-declare #<<c-declare-end
struct point_s { int x; int y; };
union point_u { int x; int y; };
typedef struct { int x; int y; } point;
typedef struct {
point p;
point q;
} segment;
typedef struct {
segment s;
segment r;
} segment_pair;
ty... | null | https://raw.githubusercontent.com/alvatar/spheres/568836f234a469ef70c69f4a2d9b56d41c3fc5bd/test/gambit-ffi-types/integration-test.scm | scheme | int y; };
int y; };
int y; } point;
current != start; current=current->next) {
Helper functions for the tests.
First gc kills the dependent's foreign object and clears its entry in the
dependents table, which causes decref callbacks to run. At second gc, the
C object has no Scheme references and, ... | (include "ffi-types-include.scm")
(include "test-macro.scm")
(c-declare #<<c-declare-end
typedef struct {
typedef struct {
typedef struct node {
/* Utility for lifecycle debugging. */
int is_still_address(unsigned long address) {
if ((unsigned long)(current + 1) == address) {
}
}
}
c-declare... |
6211b170a6588554f6709abf3bf070c2f4a86e000d248d5201d2a62b1beaaff3 | sofuture/rogueunlike | ru.erl | %% ============================================================================
Rogueunlike 0.30.0
%%
Copyright 2010
%%
%% This software is provided with absolutely no assurances, guarantees,
%% promises or assertions whatsoever.
%%
%% Do what thou wilt shall be the whole of the law.
%% ==========================... | null | https://raw.githubusercontent.com/sofuture/rogueunlike/67b29414ff13fd9e6711c04cfdc462c7985ded18/src/ru.erl | erlang | ============================================================================
This software is provided with absolutely no assurances, guarantees,
promises or assertions whatsoever.
Do what thou wilt shall be the whole of the law.
============================================================================
====... | Rogueunlike 0.30.0
Copyright 2010
-module(ru).
-author("Jeff Zellner <>").
-include("ru.hrl").
-behaviour(gen_server).
-export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2,
code_change/3]).
-export([start_link/0]).
-export([start/0, stop/1, redraw/1, tick/0, go/0]).
-record(sta... |
45a74f5d5bb79351a700c0d8e2a82a632ae8732507507c39adf2a151008a93c4 | hargettp/hh-redblack | memory.lisp | Copyright ( c ) 2011
;; Permission is hereby granted, free of charge, to any person obtaining a copy
;; of this software and associated documentation files (the "Software"), to deal
in the Software without restriction , including without limitation the rights
;; to use, copy, modify, merge, publish, distribute, ... | null | https://raw.githubusercontent.com/hargettp/hh-redblack/631dc6a566701069fad67bd8e90d9100442c570b/memory.lisp | lisp | Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
furnished to do so, subject to the following conditions:
The above copyright notice an... | Copyright ( c ) 2011
in the Software without restriction , including without limitation the rights
copies of the Software , and to permit persons to whom the Software is
all copies or substantial portions of the Software .
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR
L... |
48e977e01b76e37872e02332ebe85f664bd3394aef7580e09b08f3d0fd747e9b | well-typed/large-records | HL090.hs | # LANGUAGE DataKinds #
module Common.HListOfSize.HL090 where
import Bench.Types
import Bench.HList
type ExampleFields = '[
0
T 00
, T 01
, T 02
, T 03
, T 04
, T 05
, T 06
, T 07
, T 08
, T 09
1
, T 10
, T 11
, T 12
, T 13
, T 14
, T 15
, T 16... | null | https://raw.githubusercontent.com/well-typed/large-records/551f265845fbe56346988a6b484dca40ef380609/large-records-benchmarks/bench/experiments/Common/HListOfSize/HL090.hs | haskell | # LANGUAGE DataKinds #
module Common.HListOfSize.HL090 where
import Bench.Types
import Bench.HList
type ExampleFields = '[
0
T 00
, T 01
, T 02
, T 03
, T 04
, T 05
, T 06
, T 07
, T 08
, T 09
1
, T 10
, T 11
, T 12
, T 13
, T 14
, T 15
, T 16... | |
28ffd70f89b0a51af50142756de90c0459b5d200a30739fb828c728a9a72e6e3 | theam/haskell-do | View.hs |
- Copyright ( c ) 2017 The Agile Monkeys S.L. < >
-
- 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 agr... | null | https://raw.githubusercontent.com/theam/haskell-do/f339e57859d308437a72800bda08f96d0de12982/src/common/HaskellDo/Style/View.hs | haskell |
- Copyright ( c ) 2017 The Agile Monkeys S.L. < >
-
- 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 agr... | |
e8074d877dacda44ca2ce299ad6ddc4b0a18c2424dd774312ac183f579490d65 | haskell-opengl/OpenGLRaw | BindlessTexture.hs | # LANGUAGE PatternSynonyms #
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.GL.ARB.BindlessTexture
Copyright : ( c ) 2019
-- License : BSD3
--
Maintainer : < >
-- Stability : stable
-- Portability : portable
--
----------------... | null | https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/ARB/BindlessTexture.hs | haskell | ------------------------------------------------------------------------------
|
Module : Graphics.GL.ARB.BindlessTexture
License : BSD3
Stability : stable
Portability : portable
------------------------------------------------------------------------------
* Extension Support
* Enums
* Functio... | # LANGUAGE PatternSynonyms #
Copyright : ( c ) 2019
Maintainer : < >
module Graphics.GL.ARB.BindlessTexture (
glGetARBBindlessTexture,
gl_ARB_bindless_texture,
pattern GL_UNSIGNED_INT64_ARB,
glGetImageHandleARB,
glGetTextureHandleARB,
glGetTextureSamplerHandleARB,
glGetVertexAttribLui64... |
a8b68dda1a383d6f0f1566134c11464e7de585b4694829ec67165e94d671e4ac | cbaggers/nineveh | cubist.lisp | (in-package :nineveh.noise)
;;------------------------------------------------------------
;; 2D
(defun-g cubist-noise ((p :vec2) (range-clamp :vec2))
(let* ((pi (floor p))
(pf-pfmin1 (- (s~ p :xyxy) (v! pi (+ pi (v2! 1.0))))))
(multiple-value-bind (hash-x hash-y hash-value)
(bs-fast32-hash-3-p... | null | https://raw.githubusercontent.com/cbaggers/nineveh/0a10a84669cd9d1c584f54b9eab062986a5f1c47/noise/cubist.lisp | lisp | ------------------------------------------------------------
2D
------------------------------------------------------------
3D | (in-package :nineveh.noise)
(defun-g cubist-noise ((p :vec2) (range-clamp :vec2))
(let* ((pi (floor p))
(pf-pfmin1 (- (s~ p :xyxy) (v! pi (+ pi (v2! 1.0))))))
(multiple-value-bind (hash-x hash-y hash-value)
(bs-fast32-hash-3-per-corner pi)
(let* ((grad-x (- hash-x (v4! "0.49999")))
... |
84e94294095e82a6190d529d4765b13868358b6393503c329c5d81857776b65d | elliottt/dang | Env.hs | module Dang.TypeCheck.Env where
| null | https://raw.githubusercontent.com/elliottt/dang/490170c0ec674c4ce479108425e759dd4fd5a34b/src/Dang/TypeCheck/Env.hs | haskell | module Dang.TypeCheck.Env where
| |
7fb380ba6421ad6051465e563718bf29af8e759707b72963f51694621ca3c13e | ocaml-multicore/ocaml-tsan | signature_group.ml | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
, proje... | null | https://raw.githubusercontent.com/ocaml-multicore/ocaml-tsan/ae9c1502103845550162a49fcd3f76276cdfa866/typing/signature_group.ml | ocaml | ************************************************************************
OCaml
... | , projet Cambium , Paris
Copyright 2021 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
type sig_item =
{
src: Types.signature_item;
post_ghosts: Types.signature_item list
}
let flatten x = ... |
18820af8300480797b79141545e66153e67b27263f80f33afb04fe0ef223d3db | flotsfacetieux/sorcery-es | overlaps.lisp | (in-package :sorcery-es)
(defun inside-boundaries-p (bounding-box)
(and
(< (x bounding-box)
(- (area-width) (width bounding-box)))
(>= (x bounding-box) 0)
(< (y bounding-box)
(- (area-height) (height bounding-box)))
(>= (y bounding-box) 0)))
(defun overlaps-pixel-p (entity-manager entity1 bb... | null | https://raw.githubusercontent.com/flotsfacetieux/sorcery-es/9780a31fa2b61451d294cc23775b30098fcd3b4d/overlaps.lisp | lisp | Overlaps tests are done with stencils
return true if entity overlaps another entity with a component of type 'overlaps-forbidden' | (in-package :sorcery-es)
(defun inside-boundaries-p (bounding-box)
(and
(< (x bounding-box)
(- (area-width) (width bounding-box)))
(>= (x bounding-box) 0)
(< (y bounding-box)
(- (area-height) (height bounding-box)))
(>= (y bounding-box) 0)))
(defun overlaps-pixel-p (entity-manager entity1 bb... |
c67dc243cf4efe794b92cfb3e4c48e69ff6cad860952700cbf21486a75fca3a9 | polyfy/polylith | settings.clj | (ns polylith.clj.core.workspace.settings
(:require [polylith.clj.core.workspace.settings.alias :as alias]
[polylith.clj.core.workspace.settings.test :as test]))
(defn enrich-settings [settings projects]
(-> settings
(alias/enrich-settings projects)
(test/enrich-settings)))
| null | https://raw.githubusercontent.com/polyfy/polylith/ca7c38eb2df7a489202742ac28c0cfe9ef9ae9d2/components/workspace/src/polylith/clj/core/workspace/settings.clj | clojure | (ns polylith.clj.core.workspace.settings
(:require [polylith.clj.core.workspace.settings.alias :as alias]
[polylith.clj.core.workspace.settings.test :as test]))
(defn enrich-settings [settings projects]
(-> settings
(alias/enrich-settings projects)
(test/enrich-settings)))
| |
6becdce768f7af09148a9a7e7f957aae925e46cf79a9831f5e16acdeeb7329de | HaskellForCats/HaskellForCats | Tones.hs | module Tonos where
pitches = ["x0","x1","x2","x3","x4","x5","x6","x7","x8","x9","x10","x11"]
lydian = [ " x0","x2","x4","x6","x7","x9","x11 " ]
majorIonian = [ " x0","x2","x4","x5","x7","x9","x11 " ]
mixoLydian = [ " x0","x2","x4","x5","x7","x9","x10 " ]
dorian = [ " x0","x2","x3","x5","x7","x9"... | null | https://raw.githubusercontent.com/HaskellForCats/HaskellForCats/2d7a15c0cdaa262c157bbf37af6e72067bc279bc/IOtxt/Tones.hs | haskell | module Tonos where
pitches = ["x0","x1","x2","x3","x4","x5","x6","x7","x8","x9","x10","x11"]
lydian = [ " x0","x2","x4","x6","x7","x9","x11 " ]
majorIonian = [ " x0","x2","x4","x5","x7","x9","x11 " ]
mixoLydian = [ " x0","x2","x4","x5","x7","x9","x10 " ]
dorian = [ " x0","x2","x3","x5","x7","x9"... | |
5b7696e4195c2a8883217b474b1cad703ec7fde1267e0d26648227e9ce3457e4 | haskellfoundation/error-message-index | IncorrectImport.hs | module IncorrectImport where
import Foo (Bar(..))
barAddOne :: Bar -> Bar
barAddOne (MkBar n) = MkBar (n + 1)
| null | https://raw.githubusercontent.com/haskellfoundation/error-message-index/6b80c2fe6d8d2941190bda587bcea6f775ded0a4/message-index/messages/GHC-76037/example3/after/IncorrectImport.hs | haskell | module IncorrectImport where
import Foo (Bar(..))
barAddOne :: Bar -> Bar
barAddOne (MkBar n) = MkBar (n + 1)
| |
d59189d273c983ce73d8913392980e69ca747e69861666aa39cd6f8e1a1e8d46 | janestreet/ecaml | feature.ml | open! Core
open! Import0
include Ecaml_value.Feature
let provide = Funcall.Wrap.("provide" <: Symbol.t @-> return nil)
let is_provided = Funcall.Wrap.("featurep" <: Symbol.t @-> return bool)
let features = Var.Wrap.("features" <: list Symbol.t)
let all_provided () = Current_buffer0.value_exn features
| null | https://raw.githubusercontent.com/janestreet/ecaml/7c16e5720ee1da04e0757cf185a074debf9088df/src/feature.ml | ocaml | open! Core
open! Import0
include Ecaml_value.Feature
let provide = Funcall.Wrap.("provide" <: Symbol.t @-> return nil)
let is_provided = Funcall.Wrap.("featurep" <: Symbol.t @-> return bool)
let features = Var.Wrap.("features" <: list Symbol.t)
let all_provided () = Current_buffer0.value_exn features
| |
d5e0168b2bdb25ef61daf5b0b762d9361e83fbf49f68c6e385681a63fabbe6a5 | mjrusso/joy-of-clojure-examples | core.clj | (ns joc.test.core
(:use [joc.core])
(:use [clojure.test]))
(deftest replace-me ;; FIXME: write
(is false "No tests have been written."))
| null | https://raw.githubusercontent.com/mjrusso/joy-of-clojure-examples/d59fddbb416ff613af63d540d3f1076de0c79bc0/test/joc/test/core.clj | clojure | FIXME: write | (ns joc.test.core
(:use [joc.core])
(:use [clojure.test]))
(is false "No tests have been written."))
|
55257f3db4b071879bdc2ca95b202affdecd191370275246611a60c51380c6d2 | binsec/binsec | formula_main.mli | (**************************************************************************)
This file is part of BINSEC .
(* *)
Copyright ( C ) 2016 - 2022
CEA ( Co... | null | https://raw.githubusercontent.com/binsec/binsec/8ed9991d36451a3ae7487b966c4b38acca21a5b3/src/formula/formula_main.mli | ocaml | ************************************************************************
alternatives)
you can redistribute it an... | This file is part of BINSEC .
Copyright ( C ) 2016 - 2022
CEA ( Commissariat à l'énergie atomique et aux énergies
Lesser General Public License as published by the Free Software
Foundation , ve... |
368d5605250694174ec676edb63fc7213e08dd5751d7072bc6bc61cf44104485 | narkisr-deprecated/core | remoters.clj | (ns re-core.integration.remoters
"Capistrano remoter provider see -demo and fixtures/cap-deploy.edn"
(:require
[re-core.persistency.types :as t]
[re-core.persistency.systems :as s]
[re-core.fixtures.data :refer (redis-deploy redis-runall redis-kvm-spec redis-type)]
[re-core.fixtures.core :refer (wit... | null | https://raw.githubusercontent.com/narkisr-deprecated/core/85b4a768ef4b3a4eae86695bce36d270dd51dbae/test/re_core/integration/remoters.clj | clojure | (ns re-core.integration.remoters
"Capistrano remoter provider see -demo and fixtures/cap-deploy.edn"
(:require
[re-core.persistency.types :as t]
[re-core.persistency.systems :as s]
[re-core.fixtures.data :refer (redis-deploy redis-runall redis-kvm-spec redis-type)]
[re-core.fixtures.core :refer (wit... | |
2cde09422731b9cc0244193c5589997a18e9196fa10e3679527015e1dce1734e | kowainik/cake-slayer | Password.hs | module Test.Password
( pwdHashVerify
) where
import Hedgehog (Gen, Property, assert, failure, forAll, property)
import CakeSlayer.Password (PasswordPlainText (..), mkPasswordHashWithPolicy, verifyPassword)
import Test.Gen (genText)
import qualified Crypto.BCrypt as BC
pwdHashVerify :: Property
pwdHas... | null | https://raw.githubusercontent.com/kowainik/cake-slayer/744f072c0eeaf50e43210e4b548705e1948e5a39/test/Test/Password.hs | haskell | module Test.Password
( pwdHashVerify
) where
import Hedgehog (Gen, Property, assert, failure, forAll, property)
import CakeSlayer.Password (PasswordPlainText (..), mkPasswordHashWithPolicy, verifyPassword)
import Test.Gen (genText)
import qualified Crypto.BCrypt as BC
pwdHashVerify :: Property
pwdHas... | |
1612770ea3a3dd5465e724bb94f24f4dd74f675d09a99266cded282d1d701284 | AbstractMachinesLab/caramel | erl_ast.ml | open Sexplib.Std
type atom = Atom of string [@@deriving sexp]
and comment = Comment of string [@@deriving_sexp]
and guard = expr list [@@deriving sexp]
and name =
| Var_name of string
| Atom_name of atom
| Qualified_name of { n_mod : name; n_name : name }
[@@deriving sexp]
and map_field = { mf_name : expr; m... | null | https://raw.githubusercontent.com/AbstractMachinesLab/caramel/7d4e505d6032e22a630d2e3bd7085b77d0efbb0c/erlang/src/erl_ast.ml | ocaml | open Sexplib.Std
type atom = Atom of string [@@deriving sexp]
and comment = Comment of string [@@deriving_sexp]
and guard = expr list [@@deriving sexp]
and name =
| Var_name of string
| Atom_name of atom
| Qualified_name of { n_mod : name; n_name : name }
[@@deriving sexp]
and map_field = { mf_name : expr; m... | |
f934c0024c93129a3f3d23c649608f61a15226a094d33f8a7895eb088ba65469 | typelead/eta | VarSet.hs |
( c ) The University of Glasgow 2006
( c ) The GRASP / AQUA Project , Glasgow University , 1992 - 1998
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
-}
# LANGUAGE CPP #
module Eta.BasicTypes.VarSet (
* , I d and TyVar set types
VarSet, IdSet, TyVarSet, C... | null | https://raw.githubusercontent.com/typelead/eta/97ee2251bbc52294efbf60fa4342ce6f52c0d25c/compiler/Eta/BasicTypes/VarSet.hs | haskell | ** Manipulating these sets
** Manipulating these sets
| A non-deterministic Variable Set
A non-deterministic set of variables.
See Note [Deterministic UniqFM] in UniqDFM for explanation why it's not
deterministic and why it matters. Use DVarSet if the set eventually
gets converted into a list or folded over in ... |
( c ) The University of Glasgow 2006
( c ) The GRASP / AQUA Project , Glasgow University , 1992 - 1998
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
-}
# LANGUAGE CPP #
module Eta.BasicTypes.VarSet (
* , I d and TyVar set types
VarSet, IdSet, TyVarSet, C... |
5e127f861eca30a2e359bc4226faf95cac2e517142de3b68bc9c6b420f548b37 | arclanguage/Clamp | misc.lisp | Utilities which do not belong in any other file .
(in-package :clamp)
(use-syntax :clamp)
(mac ado (&body body)
"Evaluates each expression with the symbol 'it' bound to the result
of the previous one. Returns the value of the last expression."
;; The special-form let* cannot be used here because it makes it
... | null | https://raw.githubusercontent.com/arclanguage/Clamp/9f165b057a109564cd0e836cf611d1e81e43cb12/src/misc.lisp | lisp | The special-form let* cannot be used here because it makes it
does not use 'it', a warning would be given.
If there is a single choice, this is most likely part of an
iterate clause.
It is okay to use mapcan since map conses. | Utilities which do not belong in any other file .
(in-package :clamp)
(use-syntax :clamp)
(mac ado (&body body)
"Evaluates each expression with the symbol 'it' bound to the result
of the previous one. Returns the value of the last expression."
impossible to declare each ' it ' ignorable . So if one expressio... |
36443208231f84fd3da40d2cea31da244371af774775b79fbc22aa927c1937c5 | ddmcdonald/sparser | lists.lisp | ;;; -*- Mode:LISP; Syntax:Common-Lisp; Package:SPARSER -*-
copyright ( c ) 1993 - 1995,2010 - 2021 -- all rights reserved
;;;
;;; File: "list hacking"
;;; Module: "util:"
Version : December 2021
initiated 12/30/93 v2.3 . 4/11/95 added nil - checkers .
8/24/10 moved in quote - every - s... | null | https://raw.githubusercontent.com/ddmcdonald/sparser/cc4e343092cb4a2a0008cdac43fa0756aebb68d6/util/lists.lisp | lisp | -*- Mode:LISP; Syntax:Common-Lisp; Package:SPARSER -*-
File: "list hacking"
Module: "util:"
to deal with in case of list-per-run-init-forms. Added splice-out-nth-element
this is how it ends
copy all the unmatched keys
skip the matched key
----------------------------------------------------------
--... | copyright ( c ) 1993 - 1995,2010 - 2021 -- all rights reserved
Version : December 2021
initiated 12/30/93 v2.3 . 4/11/95 added nil - checkers .
8/24/10 moved in quote - every - second - one from forms / categories
( 3/9/11 ) Reworked to fit in ddm - util . ( 7/31 ) Added lowercase - tree
( 3/... |
47d491dda033e24d1b0fd24be4e1ab3012ef893d7e80c83d91de1c54a17e816b | reactive-systems/icedude | M25P10.hs | -----------------------------------------------------------------------------
-- |
Module : SPI
License : MIT ( see the LICENSE file )
Maintainer : ( )
--
-- M25P10 Memory Interface.
--
-----------------------------------------------------------------------------
module M25P10
( wakeup
... | null | https://raw.githubusercontent.com/reactive-systems/icedude/188624ad146c073dcec9e8e74db73f24be82e946/src/M25P10.hs | haskell | ---------------------------------------------------------------------------
|
M25P10 Memory Interface.
---------------------------------------------------------------------------
---------------------------------------------------------------------------
-----------------------------------------------------------... | Module : SPI
License : MIT ( see the LICENSE file )
Maintainer : ( )
module M25P10
( wakeup
, getId
, writeEnable
, writeDisable
, getStatus
, waitUntilDone
, chipErase
, readContent
, pageProgram
) where
import Data.Word
( Word8
)
import Control.Monad.State
(... |
347ad9f1bb52d0df8d8d67dd0f6a60b42076cd56d96f04357e4c26daab60ad48 | mbutterick/beautiful-racket | buttons.rkt | #lang br
(require racket/draw)
(define (button-func drr-window)
(define expr-string "@$ $@")
(define editor (send drr-window get-definitions-text))
(send editor insert expr-string)
(define pos (send editor get-start-position))
(send editor set-position (- pos 3)))
(define our-jsonic-button
(list
"Inse... | null | https://raw.githubusercontent.com/mbutterick/beautiful-racket/f0e2cb5b325733b3f9cbd554cc7d2bb236af9ee9/beautiful-racket-demo/jsonic-demo-3/buttons.rkt | racket | #lang br
(require racket/draw)
(define (button-func drr-window)
(define expr-string "@$ $@")
(define editor (send drr-window get-definitions-text))
(send editor insert expr-string)
(define pos (send editor get-start-position))
(send editor set-position (- pos 3)))
(define our-jsonic-button
(list
"Inse... | |
b5cde88c006f287479d73f11e71b6fcfa1aae9c46b426d38ed915ce180c7795a | coq/coq | partac.mli | (************************************************************************)
(* * The Coq Proof Assistant / The Coq Development Team *)
v * Copyright INRIA , CNRS and contributors
< O _ _ _ , , * ( see version control and CREDITS file for authors & dates )
\VV/ * * *... | null | https://raw.githubusercontent.com/coq/coq/110921a449fcb830ec2a1cd07e3acc32319feae6/stm/partac.mli | ocaml | **********************************************************************
* The Coq Proof Assistant / The Coq Development Team
// * This file is distributed under the terms of the
* (see LICENSE file for the text of the license)
************************************... | v * Copyright INRIA , CNRS and contributors
< O _ _ _ , , * ( see version control and CREDITS file for authors & dates )
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* GNU Lesser Gener... |
10dd640d4dffbedd83198700847cab6557f17daf031b924f5b722490a6893ca2 | metaocaml/ber-metaocaml | untypeast.mli | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
( O... | null | https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/typing/untypeast.mli | ocaml | ************************************************************************
OCaml
... | ( OCamlPro ) , ( INRIA Saclay )
Copyright 2007 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
open Parsetree
val lident_of_path : Path.t -> Longident.t
type mapper = {
attribute: mapper -> Typedtree.attribute -> a... |
e3cd5ceb7b958b7b4d14fb6c2c24d112ace3e239205cf5519dff3da64b43d1aa | andrewthad/sockets | Bytes.hs | # language BangPatterns #
# language DataKinds #
# language NamedFieldPuns #
module Socket.Connected.Bytes
( Buffer
, Peer
, advance
, length
, send
) where
import Prelude hiding (length)
import Data.Bytes.Types (Bytes(Bytes))
import Socket.Bytes (Buffer,length,advance)
import Foreign.C.Error (Errno)
imp... | null | https://raw.githubusercontent.com/andrewthad/sockets/90d314bd2ec71b248a90da6ad964c679f75cfcca/src-internal/Socket/Connected/Bytes.hs | haskell | socket, not a stream socket. | # language BangPatterns #
# language DataKinds #
# language NamedFieldPuns #
module Socket.Connected.Bytes
( Buffer
, Peer
, advance
, length
, send
) where
import Prelude hiding (length)
import Data.Bytes.Types (Bytes(Bytes))
import Socket.Bytes (Buffer,length,advance)
import Foreign.C.Error (Errno)
imp... |
c7631d284daeb75256e91b84601eb4729b8f51899668327cefc019da541b9430 | technomancy/leiningen | project.clj | (defproject {{name}} "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url ""
:license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
:url "-2.0/"}
:eval-in-leiningen true)
| null | https://raw.githubusercontent.com/technomancy/leiningen/24fb93936133bd7fc30c393c127e9e69bb5f2392/resources/leiningen/new/plugin/project.clj | clojure | (defproject {{name}} "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url ""
:license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
:url "-2.0/"}
:eval-in-leiningen true)
| |
0b377a685dc99c5e87cc124b0629aca9e3e5920cf32644ec03b6961c29fce1f6 | alephcloud/hs-aws-lambda | InvokeAsync.hs | Copyright ( c ) 2013 - 2014 PivotCloud , Inc.
--
Aws . Lambda . Commands . InvokeAsync
--
-- Please feel free to contact us at with any
-- contributions, additions, or other feedback; we would love to hear from
-- you.
--
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may
-- not use th... | null | https://raw.githubusercontent.com/alephcloud/hs-aws-lambda/df10334bf419384db254d71da06c801849571c1e/src/Aws/Lambda/Commands/InvokeAsync.hs | haskell |
Please feel free to contact us at with any
contributions, additions, or other feedback; we would love to hear from
you.
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
WARRANTIES OR COND... | Copyright ( c ) 2013 - 2014 PivotCloud , Inc.
Aws . Lambda . Commands . InvokeAsync
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may
distributed under the License is distributed on an " AS IS " BASIS , WITHOUT
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE TemplateHaskell #
# LANGUA... |
f07e09c5b2990480876aa7d6f5b9a0e62d4d0cfc9498438d6a348bf4102ecb11 | disconcision/fructure | hash-matching-test.rkt | #lang racket
(match #hash((gh . 1) ("c" . 2) ("b" . 2) )
[(hash-table ("b" b) ('gh a)) (list b a)]) | null | https://raw.githubusercontent.com/disconcision/fructure/d434086052eab3c450f631b7b14dcbf9358f45b7/archive/tests/hash-matching-test.rkt | racket | #lang racket
(match #hash((gh . 1) ("c" . 2) ("b" . 2) )
[(hash-table ("b" b) ('gh a)) (list b a)]) | |
413297e975f267ab09d71258420ff45a12003161b44b73aef9d889bc183a735e | sgbj/MaximaSharp | zbesi.lisp | ;;; Compiled by f2cl version:
( " f2cl1.l , v 46c1f6a93b0d 2012/05/03 04:40:28 toy $ "
" f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
;;; "f2cl5.l,v 46c1f6a93b0d 2012/05/03 04:40:28 toy $... | null | https://raw.githubusercontent.com/sgbj/MaximaSharp/75067d7e045b9ed50883b5eb09803b4c8f391059/Test/bin/Debug/Maxima-5.30.0/share/maxima/5.30.0/src/numerical/slatec/zbesi.lisp | lisp | Compiled by f2cl version:
"f2cl5.l,v 46c1f6a93b0d 2012/05/03 04:40:28 toy $"
Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t)
(:coerce-assigns :as-needed) (:array-type ':simple-array)
(:array-slicing nil) (:declare-common nil)
(:float-format double-float)) | ( " f2cl1.l , v 46c1f6a93b0d 2012/05/03 04:40:28 toy $ "
" f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl6.l , v 1d5cbacbb977 2008/08/24 00:56:27 rtoy $ "
" macros.l , v fceac53... |
2b27e185e05c894c767e78ce9026cd2a8fa96eefcc708fed7395086a8b7fbef4 | cark/cark.behavior-tree | hiccup.cljc | (ns cark.behavior-tree.hiccup
"Provides the services for parsing and compiling the hiccup notation to
a static tree."
(:require [clojure.spec.alpha :as s]
[expound.alpha :as expound]
[cark.behavior-tree.tree :as tree]
[cark.behavior-tree.type :as type]
[cark.be... | null | https://raw.githubusercontent.com/cark/cark.behavior-tree/4e229fcc2ed3af3c66e74d2c51dda6684927d254/src/main/cark/behavior_tree/hiccup.cljc | clojure | (ns cark.behavior-tree.hiccup
"Provides the services for parsing and compiling the hiccup notation to
a static tree."
(:require [clojure.spec.alpha :as s]
[expound.alpha :as expound]
[cark.behavior-tree.tree :as tree]
[cark.behavior-tree.type :as type]
[cark.be... | |
9f962a49cffb2c8e016a93bec3baf308d9f90e41d42cff44b026ef57f9e6f66e | freedict/tools | Language.hs |
- Data / NatLang / Language.hs - specific languages
-
- Copyright 2020
-
- This file is part of ding2tei - haskell .
-
- ding2tei - haskell is free software : you can redistribute it and/or modify
- it under the terms of the GNU Affero General Public License as published
- by the Free Softw... | null | https://raw.githubusercontent.com/freedict/tools/b730e5cb85a21a607d5d6ea7b9e0480018de47b4/importers/ding2tei/src/Data/NatLang/Language.hs | haskell | | There are more languages. They are not of particular importance for the
| Show short language code, as to be used in @xml:lang.
vi: ft=haskell ts=2 sw=2 et |
- Data / NatLang / Language.hs - specific languages
-
- Copyright 2020
-
- This file is part of ding2tei - haskell .
-
- ding2tei - haskell is free software : you can redistribute it and/or modify
- it under the terms of the GNU Affero General Public License as published
- by the Free Softw... |
37af88546ff415441c3274efa68966a276d4062da37f2b0f7866938835f9a045 | CBMM/tagging | Server.hs | # LANGUAGE TemplateHaskell #
NOTE : Do n't modify this file unless you know what you are doing . If you are
new to snap , start with Site.hs and Application.hs . This file contains
boilerplate needed for dynamic reloading and is not meant for general
consumption .
Occasionally if we modify the way the dy... | null | https://raw.githubusercontent.com/CBMM/tagging/15f257394f3dda5baf6db0581a52d9c9f99e2abe/tagging-server/exec/Server.hs | haskell | ----------------------------------------------------------------------------
----------------------------------------------------------------------------
| This is the entry point for this web server application. It supports
easily switching between interpreting source and running statically compiled
code.
In eith... | # LANGUAGE TemplateHaskell #
NOTE : Do n't modify this file unless you know what you are doing . If you are
new to snap , start with Site.hs and Application.hs . This file contains
boilerplate needed for dynamic reloading and is not meant for general
consumption .
Occasionally if we modify the way the dy... |
1f46fb93c26107ce7685e4083bce2aee3faa65bf2de581409d4cbd0219f2c621 | michaelklishin/welle | conversion_test.clj | (ns clojurewerkz.welle.test.conversion-test
(:require [clojure.test :refer :all]
[clojurewerkz.welle.conversion :refer :all])
(:import [com.basho.riak.client.cap Quora Quorum VClock BasicVClock]
com.basho.riak.client.bucket.TunableCAPProps
com.basho.riak.client.util.CharsetUtils
... | null | https://raw.githubusercontent.com/michaelklishin/welle/3f3cd24af7c0d95489298e4096b362b6943f85ef/test/clojurewerkz/welle/test/conversion_test.clj | clojure | we must use stricter true/false assertions here because of the way builder
boolean evaluation is used
(only false and nil evaluate to false) | (ns clojurewerkz.welle.test.conversion-test
(:require [clojure.test :refer :all]
[clojurewerkz.welle.conversion :refer :all])
(:import [com.basho.riak.client.cap Quora Quorum VClock BasicVClock]
com.basho.riak.client.bucket.TunableCAPProps
com.basho.riak.client.util.CharsetUtils
... |
c6d57c9b4c9bad6a84894aa8325b4d6813d35081b8cbf5003d7250ea12de9631 | NoRedInk/haskell-libraries | Environment.hs | # LANGUAGE DeriveFunctor #
-- | A module for reading configuration options from environment variables.
--
-- Applications have configuration options. [The Twelve-Factor
App]( / import ) recommends applications read these from
-- environment variables. This requires us to decode environment variables,
-- which are st... | null | https://raw.githubusercontent.com/NoRedInk/haskell-libraries/d39cee9059df998caafb5d9ffb2c7b1cbb8fcdb1/nri-env-parser/src/Environment.hs | haskell | | A module for reading configuration options from environment variables.
Applications have configuration options. [The Twelve-Factor
environment variables. This requires us to decode environment variables,
which are strings, into the different types the app's configuration options
might have. This module helps wi... | # LANGUAGE DeriveFunctor #
App]( / import ) recommends applications read these from
module Environment
* Parsers
Parser,
text,
int,
float,
boolean,
uri,
filePath,
networkURI,
secret,
enum,
custom,
Decoder,
consumes,
Variable (Variable, name, description, def... |
c57f44a8f864061002e5a3affc5780fc77d1222bc90ea3761d4f7dd999e2fbc4 | Convex-Dev/convex.cljc | write.clj | (ns convex.write
"Writing CVX cells as UTF-8 text.
Also see [[convex.read]] for the opposite idea."
{:author "Adam Helinski"}
(:import (convex.core.data ACell
Strings)
(java.io Writer)))
;;;;;;;;;;
(defn stream
"Writes the given `cell` to the given `java.io.Wr... | null | https://raw.githubusercontent.com/Convex-Dev/convex.cljc/211658a0d8e8f85b21b8dbc89f97a25063bb521c/module/cvm/src/main/clj/convex/write.clj | clojure |
Cannot use `$.cell/string` because of a circular dependency.
| (ns convex.write
"Writing CVX cells as UTF-8 text.
Also see [[convex.read]] for the opposite idea."
{:author "Adam Helinski"}
(:import (convex.core.data ACell
Strings)
(java.io Writer)))
(defn stream
"Writes the given `cell` to the given `java.io.Writer` (pare... |
986ae7bfd7f228007cd9aa038ffa7fe5480bb02dcda75aa2b2c7e4f77f78b43a | Gbury/archsat | export.ml | This file is free software , part of Archsat . See file " LICENSE " for more details .
let section = Section.make "export"
(* Some convenience functions *)
(* ************************************************************************ *)
(* Printing on optional formatters *)
let pp_opt pp o x =
match o with
| Non... | null | https://raw.githubusercontent.com/Gbury/archsat/322fbefa4a58023ddafb3fa1a51f8199c25cde3d/src/output/export.ml | ocaml | Some convenience functions
************************************************************************
Printing on optional formatters
Initialization
************************************************************************
Id declarations
***********************************************************************... | This file is free software , part of Archsat . See file " LICENSE " for more details .
let section = Section.make "export"
let pp_opt pp o x =
match o with
| None -> ()
| Some fmt -> pp fmt x
let init opts () =
let () = pp_opt Tptp.init Options.(opts.output.tptp) opts in
()
let declare_id_aux ?loc op... |
645591255176e55d60a9552cd4e8986c7d72df49ea48774fc4c7ae539fa97683 | mpickering/500-sql-haskell | SimpleStagedInterpreter.hs | {-# LANGUAGE OverloadedStrings #-}
# LANGUAGE TemplateHaskell #
# LANGUAGE NoImplicitPrelude #
{-# LANGUAGE OverloadedStrings #-}
module SimpleStagedInterpreter where
import qualified Data.ByteString as B
import qualified Data.ByteString.Char8 as BC
import Data.ByteString (ByteString)
import Control.Monad
import Data.... | null | https://raw.githubusercontent.com/mpickering/500-sql-haskell/b2beb269de21f37bc3c014ceb8233eec86c678d1/src/SimpleStagedInterpreter.hs | haskell | # LANGUAGE OverloadedStrings #
# LANGUAGE OverloadedStrings #
filterC2 :: Lift a => (Code a -> Code Bool) -> Code [a] -> Code [a]
Print p -> execOp p (printFields . fields) | # LANGUAGE TemplateHaskell #
# LANGUAGE NoImplicitPrelude #
module SimpleStagedInterpreter where
import qualified Data.ByteString as B
import qualified Data.ByteString.Char8 as BC
import Data.ByteString (ByteString)
import Control.Monad
import Data.List
import Data.Maybe
import Language.Haskell.TH
import Language.Hask... |
03a8094c36ae315c53455499205abbd3a0bcb7ce0eb5953e4ac3a2856479645b | LPCIC/matita | content2pres.ml | Copyright ( C ) 2003 - 2005 , HELM Team .
*
* This file is part of HELM , an Hypertextual , Electronic
* Library of Mathematics , developed at the Computer Science
* Department , University of Bologna , Italy .
*
* is free software ; you can redistribute it and/or
* modify it under the terms of ... | null | https://raw.githubusercontent.com/LPCIC/matita/794ed25e6e608b2136ce7fa2963bca4115c7e175/matita/components/content_pres/content2pres.ml | ocaml | *************************************************************************
17/06/2003
... | Copyright ( C ) 2003 - 2005 , HELM Team .
*
* This file is part of HELM , an Hypertextual , Electronic
* Library of Mathematics , developed at the Computer Science
* Department , University of Bologna , Italy .
*
* is free software ; you can redistribute it and/or
* modify it under the terms of ... |
194b0c1f50c8240d785e2add6289708b54520e91075039d53a5626838d52cba4 | cronburg/antlr-haskell | Grammar.hs | # LANGUAGE DeriveAnyClass , DeriveGeneric , TypeFamilies , QuasiQuotes
, DataKinds , ScopedTypeVariables , OverloadedStrings , TypeSynonymInstances
, FlexibleInstances , UndecidableInstances , TemplateHaskell #
, DataKinds, ScopedTypeVariables, OverloadedStrings, TypeSynonymInstances
, FlexibleInsta... | null | https://raw.githubusercontent.com/cronburg/antlr-haskell/7a9367038eaa58f9764f2ff694269245fbebc155/test/swift/Grammar.hs | haskell | This grammar is still in development / experimental.
Original license below.
[The "BSD license"]
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
notice, this list of conditions and the ... | # LANGUAGE DeriveAnyClass , DeriveGeneric , TypeFamilies , QuasiQuotes
, DataKinds , ScopedTypeVariables , OverloadedStrings , TypeSynonymInstances
, FlexibleInstances , UndecidableInstances , TemplateHaskell #
, DataKinds, ScopedTypeVariables, OverloadedStrings, TypeSynonymInstances
, FlexibleInsta... |
e7937176fea51c287bc23591b02aaa359c08145024aec22065d53efd99d09450 | finnishtransportagency/harja | oikeudet_test.clj | (ns harja.palvelin.oikeudet-test
(:require [clojure.test :refer :all]
[taoensso.timbre :as log]
[slingshot.slingshot :refer [try+ throw+]]
[harja.domain.oikeudet :as oikeudet]
[harja.testi :refer :all]
[harja.domain.roolit :as roolit]))
;; Järjestelmävastaa... | null | https://raw.githubusercontent.com/finnishtransportagency/harja/36acac45352ff47caaa498f7de4b204b30be7803/test/clj/harja/palvelin/oikeudet_test.clj | clojure | Järjestelmävastaava
ELYn urakanvalvoja
ELY_Laadunvalvoja | (ns harja.palvelin.oikeudet-test
(:require [clojure.test :refer :all]
[taoensso.timbre :as log]
[slingshot.slingshot :refer [try+ throw+]]
[harja.domain.oikeudet :as oikeudet]
[harja.testi :refer :all]
[harja.domain.roolit :as roolit]))
(def jvh {:roolit #{... |
0fcb8afda153afbb953664d291eb26176cea981d314c49961d9c2764a2d23e7d | f-o-a-m/kepler | Router.hs | module Tendermint.SDK.BaseApp.Router
( module Tendermint.SDK.BaseApp.Router.Types
, module Tendermint.SDK.BaseApp.Router.Router
, module Tendermint.SDK.BaseApp.Router.Delayed
) where
import Tendermint.SDK.BaseApp.Router.Delayed
import Tendermint.SDK.BaseApp.Router.Router
import Te... | null | https://raw.githubusercontent.com/f-o-a-m/kepler/6c1ad7f37683f509c2f1660e3561062307d3056b/hs-abci-sdk/src/Tendermint/SDK/BaseApp/Router.hs | haskell | module Tendermint.SDK.BaseApp.Router
( module Tendermint.SDK.BaseApp.Router.Types
, module Tendermint.SDK.BaseApp.Router.Router
, module Tendermint.SDK.BaseApp.Router.Delayed
) where
import Tendermint.SDK.BaseApp.Router.Delayed
import Tendermint.SDK.BaseApp.Router.Router
import Te... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.