_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 |
|---|---|---|---|---|---|---|---|---|
60b5fd4dde8edb4d171a1fca45e81e0b76f84014d271fe41c0e133aa70ddcc78 | franzinc/clim2 | panes.lisp | -*- Mode : Lisp ; Syntax : ANSI - Common - Lisp ; Package : CLIM - INTERNALS ; Base : 10 ; Lowercase : Yes -*-
;; See the file LICENSE for the full license governing this code.
;;
(in-package :clim-internals)
" Copyright ( c ) 1990 , 1991 , 1992 Symbolics , Inc. All rights reserved .
Portions copyright ( c ) 19... | null | https://raw.githubusercontent.com/franzinc/clim2/e8d03da80e1f000be40c37d088e283d95365bfdd/clim/panes.lisp | lisp | Syntax : ANSI - Common - Lisp ; Package : CLIM - INTERNALS ; Base : 10 ; Lowercase : Yes -*-
See the file LICENSE for the full license governing this code.
--- Extend this to default the options from the lambda list |
(in-package :clim-internals)
" Copyright ( c ) 1990 , 1991 , 1992 Symbolics , Inc. All rights reserved .
Portions copyright ( c ) 1991 , 1992 Franz , Inc. All rights reserved .
Portions copyright ( c ) 1989 , 1990 International Lisp Associates . "
(defun compute-pane-constructor-code (panes)
(check-type pa... |
780f821ec29fb501feb8dc6b984cf8aa1b29dd5f3b3cfb6bf5f11caf757c7d54 | ArulselvanMadhavan/diffusers-ocaml | unet_2d_blocks.mli | open Torch
module Downsample2D : sig
type t
val make : Var_store.t -> int -> bool -> int -> int -> t
end
module DownEncoderBlock2DConfig : sig
type t =
{ num_layers : int
; resnet_eps : float
; resnet_groups : int
; output_scale_factor : float
; add_downsample : bool
; downsample_paddin... | null | https://raw.githubusercontent.com/ArulselvanMadhavan/diffusers-ocaml/7f361e685b710776dfe4a6e1c45c5892b5554ab6/lib/models/unet_2d_blocks.mli | ocaml | open Torch
module Downsample2D : sig
type t
val make : Var_store.t -> int -> bool -> int -> int -> t
end
module DownEncoderBlock2DConfig : sig
type t =
{ num_layers : int
; resnet_eps : float
; resnet_groups : int
; output_scale_factor : float
; add_downsample : bool
; downsample_paddin... | |
e4790abaa8caac03ee1c152a2cf94399b1e499e61f03a379c862d8c9ccb1f774 | sylane/erod | erod_document_proc.erl | %%% ==========================================================================
Copyright ( c ) 2014 < >
%%%
%%% This file is part of erod.
%%%
%%% Erod is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation , eit... | null | https://raw.githubusercontent.com/sylane/erod/b0c435f8546ea38b1501d3e22614fe7951c61c9a/apps/erod/src/erod_document_proc.erl | erlang | ==========================================================================
This file is part of erod.
Erod is free software: you can redistribute it and/or modify
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the impli... | Copyright ( c ) 2014 < >
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
You should have received a copy of the GNU General Public License
2014 < >
@author < >
-module(erod_document_proc).
-author('Sebastien... |
97f4f5c417c62f9a59392345692e0ee0468f190d92698a6489542267918b7b34 | helium/erlang-tc | tc_g1.erl | -module(tc_g1).
-export([
G1 API
zero/0,
cmp/2,
random/0
]).
-type g1() :: reference().
-export_type([g1/0]).
-spec zero() -> g1().
zero() ->
erlang_tc:g1_zero().
-spec cmp(G1_1 :: g1(), G1_2 :: g1()) -> boolean().
cmp(G1_1, G1_2) ->
erlang_tc:cmp_g1(G1_1, G1_2).
-spec random() -> g1().
rando... | null | https://raw.githubusercontent.com/helium/erlang-tc/b3ef1d5541586f5c85b6d231345a921d57be32a3/src/tc_g1.erl | erlang | -module(tc_g1).
-export([
G1 API
zero/0,
cmp/2,
random/0
]).
-type g1() :: reference().
-export_type([g1/0]).
-spec zero() -> g1().
zero() ->
erlang_tc:g1_zero().
-spec cmp(G1_1 :: g1(), G1_2 :: g1()) -> boolean().
cmp(G1_1, G1_2) ->
erlang_tc:cmp_g1(G1_1, G1_2).
-spec random() -> g1().
rando... | |
f0d9187ce78832303579129f704e1bb6f7b86358eac13141aa3ba6d8f831f5df | facebook/duckling | Rules.hs | Copyright ( c ) 2016 - present , Facebook , Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree.
{-# LANGUAGE GADTs #-}
# LANGUAGE LambdaCase #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE NoRebindableSynt... | null | https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/Numeral/FI/Rules.hs | haskell | All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
# LANGUAGE GADTs #
# LANGUAGE OverloadedStrings # | Copyright ( c ) 2016 - present , Facebook , Inc.
# LANGUAGE LambdaCase #
# LANGUAGE NoRebindableSyntax #
module Duckling.Numeral.FI.Rules
( rules
) where
import Data.HashMap.Strict (HashMap)
import Data.Maybe
import Data.String
import Data.Text (Text)
import Prelude
import qualified Data.HashMap.Strict as Hash... |
49c8914e7b2c1219869efcec7563cc8aaa7f1706fccf4d463c488ca206b10c2c | bobzhang/fan | simplify_r.ml | open Camlp4.PreCast;
let simplify =
object
inherit Ast.map as super;
method expr e =
match super#expr e with
[ <:expr< $x$ + 0 >> | <:expr< 0 + $x$ >> -> x
| x -> x ];
end
in AstFilters.register_str_item_filter simplify#str_item;
| null | https://raw.githubusercontent.com/bobzhang/fan/7ed527d96c5a006da43d3813f32ad8a5baa31b7f/src/todoml/test/fixtures/simplify_r.ml | ocaml | open Camlp4.PreCast;
let simplify =
object
inherit Ast.map as super;
method expr e =
match super#expr e with
[ <:expr< $x$ + 0 >> | <:expr< 0 + $x$ >> -> x
| x -> x ];
end
in AstFilters.register_str_item_filter simplify#str_item;
| |
51878084570040c60a95746c25a6961b02ff8428846ede97900445f0a8f5101e | onyx-platform/onyx-examples | project.clj | (defproject filtering "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.7.0"]
^{:voom {:repo ":onyx-platform/onyx.git" :branch "master"}}
[org.onyxplatfo... | null | https://raw.githubusercontent.com/onyx-platform/onyx-examples/668fddd26bc6b692a478fb8dc0e6d3d329879396/filtering/project.clj | clojure | (defproject filtering "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.7.0"]
^{:voom {:repo ":onyx-platform/onyx.git" :branch "master"}}
[org.onyxplatfo... | |
4b88e1925462343a16381a7e485adf01a106b78a009968786e44ca8282bda0d9 | tsloughter/rebar3_tests | project_app_behaviours_sup.erl | %%%-------------------------------------------------------------------
%% @doc project_app_behaviours top level supervisor.
%% @end
%%%-------------------------------------------------------------------
-module(project_app_behaviours_sup).
-behaviour(supervisor).
-export([start_link/0]).
-export([init/1]).
-define... | null | https://raw.githubusercontent.com/tsloughter/rebar3_tests/090bfef7d3a4790bb6b16e4c38df6e4c0460b4b2/project_app_behaviours/apps/project_app_behaviours/src/project_app_behaviours_sup.erl | erlang | -------------------------------------------------------------------
@doc project_app_behaviours top level supervisor.
@end
-------------------------------------------------------------------
sup_flags() = #{strategy => strategy(), % optional
intensity => non_neg_integer(), % optional
option... |
-module(project_app_behaviours_sup).
-behaviour(supervisor).
-export([start_link/0]).
-export([init/1]).
-define(SERVER, ?MODULE).
start_link() ->
supervisor:start_link({local, ?SERVER}, ?MODULE, []).
init([]) ->
SupFlags = #{strategy => one_for_all,
intensity => 0,
peri... |
a8480f05c91b09f3319fd2727b9a2fa12632a8af0f2ac228c5e67da87c099933 | smaccoun/aeson-generic-ts | Generic.hs | # LANGUAGE DefaultSignatures #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeOperators #
{-# LANGUAGE TypeSynonymInstances #-}
module Typescript.Internal.Intermediate.Generic where
import Data.Proxy
import Data.Text ... | null | https://raw.githubusercontent.com/smaccoun/aeson-generic-ts/080ec883e77aad45cc01cc211bdb9998bd47e66e/src/Typescript/Internal/Intermediate/Generic.hs | haskell | # LANGUAGE TypeSynonymInstances #
| Helper typeclasses for intermediate translations
| Instances | # LANGUAGE DefaultSignatures #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeOperators #
module Typescript.Internal.Intermediate.Generic where
import Data.Proxy
import Data.Text ( Text )
import qualified Dat... |
beeb3f50ee3079f788195dd4ff4c5be62836bdeeee32b1af1c8673509e4c4def | pink-gorilla/goldly | service.clj | (ns demo.service
(:require
[taoensso.timbre :as timbre :refer [info warn errorf]]
[goldly.service.core :as s]))
(info "namespace demo.service is getting loaded...")
(defn fun-add [a b]
(+ a b))
(defn fun-quote []
"The early fish catches the worm.")
(defn fun-ex []
(throw (Exception. "something bad hap... | null | https://raw.githubusercontent.com/pink-gorilla/goldly/211186c839dafebe53ef344fe0691a363b1dec50/goldly-test/src/demo/service.clj | clojure | (ns demo.service
(:require
[taoensso.timbre :as timbre :refer [info warn errorf]]
[goldly.service.core :as s]))
(info "namespace demo.service is getting loaded...")
(defn fun-add [a b]
(+ a b))
(defn fun-quote []
"The early fish catches the worm.")
(defn fun-ex []
(throw (Exception. "something bad hap... | |
c0c4fc6e66bab216ad2663fad1c268a6b3bbc01873c57537992b3cbd7fa004e4 | fbellomi/crossclj | html.clj | (ns crossclj.codox.html
"Documentation writer that outputs HTML."
(:use [hiccup core page element util])
(:import [java.net URLEncoder]
[org.pegdown PegDownProcessor Extensions LinkRenderer LinkRenderer$Rendering]
[org.pegdown.ast WikiLinkNode])
(:require [clojure.java.io :as io]
... | null | https://raw.githubusercontent.com/fbellomi/crossclj/7630270ebe9ea3df89fe3d877b2571e6eae1062b/src/crossclj/codox/html.clj | clojure | (ns crossclj.codox.html
"Documentation writer that outputs HTML."
(:use [hiccup core page element util])
(:import [java.net URLEncoder]
[org.pegdown PegDownProcessor Extensions LinkRenderer LinkRenderer$Rendering]
[org.pegdown.ast WikiLinkNode])
(:require [clojure.java.io :as io]
... | |
0dbb184c1a4e38b083930dfb3072340a6dcabc18484fd02791234b6e1253f202 | janestreet/merlin-jst | cmt_format.mli | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | null | https://raw.githubusercontent.com/janestreet/merlin-jst/980b574405617fa0dfb0b79a84a66536b46cd71b/upstream/ocaml_414/file_formats/cmt_format.mli | ocaml | ************************************************************************
OCaml
Fabrice L... | Copyright 2012 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
* cmt and cmti files format .
open Misc
* The layout of a cmt file is as follows :
< cmt > : = \{<cmi>\ } < cmt magic > \{cmt infos\ } \{<source info>\ }
... |
b01f855cd42a2358b32f9f6b2c0ed1f6bbf66e9c48013cebde6a47c7d82fc5cd | expipiplus1/vulkan | ChromaLocation.hs | {-# language CPP #-}
No documentation found for Chapter " ChromaLocation "
module Vulkan.Core11.Enums.ChromaLocation (ChromaLocation( CHROMA_LOCATION_COSITED_EVEN
, CHROMA_LOCATION_MIDPOINT
, ..
... | null | https://raw.githubusercontent.com/expipiplus1/vulkan/ebc0dde0bcd9cf251f18538de6524eb4f2ab3e9d/src/Vulkan/Core11/Enums/ChromaLocation.hs | haskell | # language CPP #
| VkChromaLocation - Position of downsampled chroma samples
= See Also
are aligned with luma samples with even coordinates.
odd luma sample. | No documentation found for Chapter " ChromaLocation "
module Vulkan.Core11.Enums.ChromaLocation (ChromaLocation( CHROMA_LOCATION_COSITED_EVEN
, CHROMA_LOCATION_MIDPOINT
, ..
... |
4fb0f9a7b6bce9ea7f363cb74db901e3b60c550cd26c71fc03dd9b405da15d6c | grin-compiler/ghc-whole-program-compiler-project | Unsafe.hs | # LANGUAGE RecordWildCards , LambdaCase , OverloadedStrings , PatternSynonyms #
module Stg.Interpreter.PrimOp.Unsafe where
import Stg.Syntax
import Stg.Interpreter.Base
pattern IntV i = IntAtom i -- Literal (LitNumber LitNumInt i)
evalPrimOp :: PrimOpEval -> Name -> [Atom] -> Type -> Maybe TyCon -> M [Atom]
evalP... | null | https://raw.githubusercontent.com/grin-compiler/ghc-whole-program-compiler-project/6e75aaccf4df0d78786f5bb1a28778d54c09a7be/external-stg-interpreter/lib/Stg/Interpreter/PrimOp/Unsafe.hs | haskell | Literal (LitNumber LitNumInt i)
reallyUnsafePtrEquality# :: a -> b -> Int#
----------------------------------------------------------------------
( # 1 Bad Guy : :)
----------------------------------------------------------------------
See Note [ reallyUnsafePtrEquality # ]
Note [ reallyUnsafePtrEquality #... | # LANGUAGE RecordWildCards , LambdaCase , OverloadedStrings , PatternSynonyms #
module Stg.Interpreter.PrimOp.Unsafe where
import Stg.Syntax
import Stg.Interpreter.Base
evalPrimOp :: PrimOpEval -> Name -> [Atom] -> Type -> Maybe TyCon -> M [Atom]
evalPrimOp fallback op args t tc = case (op, args) of
( "reallyUnsaf... |
39458cdfe7b2fa70d3716dd530d3473573de1e41476a671ee0187ec2837acdc1 | gvolpe/fts | Movie.hs | # OPTIONS_GHC -fno - warn - type - defaults #
{-# LANGUAGE DeriveAnyClass #-}
# LANGUAGE DeriveGeneric #
# LANGUAGE DerivingVia #
{-# LANGUAGE OverloadedStrings #-}
module Domain.Movie where
import Data.List ( intercalate )
import Data.List.Extra ( trim )
import... | null | https://raw.githubusercontent.com/gvolpe/fts/d6c2b3da2abdd1e1a5f02a498abcddd071efda75/src/Domain/Movie.hs | haskell | # LANGUAGE DeriveAnyClass #
# LANGUAGE OverloadedStrings # | # OPTIONS_GHC -fno - warn - type - defaults #
# LANGUAGE DeriveGeneric #
# LANGUAGE DerivingVia #
module Domain.Movie where
import Data.List ( intercalate )
import Data.List.Extra ( trim )
import Data.String ( IsString
... |
547c0b51c20e1b1d8b43da6c9739e6f05ea84b9c1761106db767613ed3448b41 | BekaValentine/SimpleFP-v2 | Vars.hs | {-# OPTIONS -Wall #-}
# LANGUAGE GeneralizedNewtypeDeriving #
module Utils.Vars where
-- * Variable types
-- A free variable is just a 'String' but we use a @newtype@ to prevent
-- accidentally using it for the wrong things.
newtype FreeVar = FreeVar String
deriving (Eq,Show)
-- A bound variable ... | null | https://raw.githubusercontent.com/BekaValentine/SimpleFP-v2/ae00ec809caefcd13664395b0ae2fc66145f6a74/src/Utils/Vars.hs | haskell | # OPTIONS -Wall #
* Variable types
A free variable is just a 'String' but we use a @newtype@ to prevent
accidentally using it for the wrong things.
A bound variable is just an 'Int' but we use a @newtype@ to prevent
accidentally using it for the wrong things.
| A meta variable is just an 'Int' but we use a @newty... | # LANGUAGE GeneralizedNewtypeDeriving #
module Utils.Vars where
newtype FreeVar = FreeVar String
deriving (Eq,Show)
newtype BoundVar = BoundVar Int
deriving (Eq,Show)
newtype MetaVar = MetaVar Int
deriving (Eq,Show,Num,Ord)
distinct from one another .
freshen :: [String] -> ... |
3a9fc819a262b4e15decb6459307c921343c8c3908e2e9f0af702d1b9eaaaf62 | webnf/dwn | component.clj | (ns webnf.dwn.component
(:require [clojure.spec.alpha :as s]
[com.stuartsierra.component :as cmp]
[webnf.jvm :refer [eval-in-container]]
[webnf.dwn.container :as wdc :refer [container]]
[clojure.tools.logging :as log]
[webnf.dwn.util :refer [require-call-for... | null | https://raw.githubusercontent.com/webnf/dwn/31ae2b016d2e2978a4f08c0201572225dc72eb53/src/clj/webnf/dwn/component.clj | clojure | (ns webnf.dwn.component
(:require [clojure.spec.alpha :as s]
[com.stuartsierra.component :as cmp]
[webnf.jvm :refer [eval-in-container]]
[webnf.dwn.container :as wdc :refer [container]]
[clojure.tools.logging :as log]
[webnf.dwn.util :refer [require-call-for... | |
3a7bfb81b47b6f80c5254f4633f34c5ae003e1784606d6abe9cb87418e31fa22 | den1k/root | views.cljs | (ns examples.fetch.views
(:require [root.impl.core :as rc]
[kitchen-async.promise :as p]
[examples.util.dom :as ud]
[uix.dom.alpha :as uix.dom]))
(defn fetch-json [str]
(p/some-> (js/fetch str)
(.json)
(js->clj :keywordize-keys true)))
(def root
(rc/ui... | null | https://raw.githubusercontent.com/den1k/root/1d12a77737f29c183f0c7d394edb5e079a2614ac/dev/examples/fetch/views.cljs | clojure | (ns examples.fetch.views
(:require [root.impl.core :as rc]
[kitchen-async.promise :as p]
[examples.util.dom :as ud]
[uix.dom.alpha :as uix.dom]))
(defn fetch-json [str]
(p/some-> (js/fetch str)
(.json)
(js->clj :keywordize-keys true)))
(def root
(rc/ui... | |
34e8370f6a90e7c4220cdd507ea089ba7735a2cd65e9d9438820f3a0cd079ba3 | ertugrulcetin/overload-fn | core_test.clj | (ns overload-fn.core-test
(:require [clojure.test :refer :all]
[overload-fn.core :as of]))
(testing "protocol based overload"
(with-test
(of/defn my-fn
([^Double x]
:double)
([^Long x]
:long)
([x]
:any-type))
(is (= (my-f... | null | https://raw.githubusercontent.com/ertugrulcetin/overload-fn/5f0efe3eb8cbc0ab3770ab7b1f949be9b4062f56/test/overload_fn/core_test.clj | clojure | (ns overload-fn.core-test
(:require [clojure.test :refer :all]
[overload-fn.core :as of]))
(testing "protocol based overload"
(with-test
(of/defn my-fn
([^Double x]
:double)
([^Long x]
:long)
([x]
:any-type))
(is (= (my-f... | |
86745c806dd7cd7b7afce924b6bb646e32db635c992058ddec3354ea9076690d | annenkov/unmix | xsettings.rkt | #lang racket
(define **unmix-path** "")
;; File extension for target scheme/racket programs.
(define **program-file-ext** ".rkt")
;; Set to #t to generate target programs as racket module
(define **output-as-racket-module** #t)
;; Racket-specific module header for target programs.
;; Affects output program only if ... | null | https://raw.githubusercontent.com/annenkov/unmix/e156fb706e52994f86029ac512a79c737d7ee0d8/xsettings.rkt | racket | File extension for target scheme/racket programs.
Set to #t to generate target programs as racket module
Racket-specific module header for target programs.
Affects output program only if **output-as-racket-module** is #t
(define-for-syntax **mode** 'recursive) | #lang racket
(define **unmix-path** "")
(define **program-file-ext** ".rkt")
(define **output-as-racket-module** #t)
(define **lang-directive** "#lang racket")
Switch UNMIX mode here
(define-for-syntax **mode** 'iterative)
(provide (all-defined-out)
(for-syntax **mode**))
|
6494cd91934dff006abb6571d20f09221909fbea136beb68d70da58f48869729 | andrewthad/impure-containers | Basic.hs | {-# LANGUAGE BangPatterns #-}
# LANGUAGE CPP #
{-# LANGUAGE MagicHash #-}
-- | This whole module is mostly copied from the
-- < hashtables> package.
-- You can find much better documentation there. Additionally, if you
-- problem in the implementation of a function, you should probably open
-- up ... | null | https://raw.githubusercontent.com/andrewthad/impure-containers/20f14e3c671543cbb5af142767188e5111bebc65/src/Data/HashMap/Mutable/Basic.hs | haskell | # LANGUAGE BangPatterns #
# LANGUAGE MagicHash #
| This whole module is mostly copied from the
< hashtables> package.
You can find much better documentation there. Additionally, if you
problem in the implementation of a function, you should probably open
up the issue on the < hashtables github repo>
... | # LANGUAGE CPP #
since is the one who actually authored ( and the one who
* The type is named @MHashMap@ instead of @HashTable@.
module Data.HashMap.Mutable.Basic
( MHashMap
, new
, newSized
, delete
, lookup
, insert
, mapM_
, foldM
, computeOverhead
) where
import ... |
e800824634f048541dca3798f44bd3520c081c7e939ee1e8be06da8a0f17e8cb | GlideAngle/flare-timing | Flat.hs | module Flat.Flat (units) where
import Test.Tasty (TestTree, testGroup)
import Flat.Coincident (coincidentUnits, touchingUnits, disjointUnits)
units :: TestTree
units =
testGroup
"On a flat Earth (UTM Projection) using Pythagoras' theorem a² + b² = c²"
[ coincidentUnits
, touchingUnits
, disjointU... | null | https://raw.githubusercontent.com/GlideAngle/flare-timing/27bd34c1943496987382091441a1c2516c169263/lang-haskell/earth/test-suite-zones/Flat/Flat.hs | haskell | module Flat.Flat (units) where
import Test.Tasty (TestTree, testGroup)
import Flat.Coincident (coincidentUnits, touchingUnits, disjointUnits)
units :: TestTree
units =
testGroup
"On a flat Earth (UTM Projection) using Pythagoras' theorem a² + b² = c²"
[ coincidentUnits
, touchingUnits
, disjointU... | |
8f8008d92f2619d31b4631ce04afbb42c550bf119a175427e4e207d2a440351f | PUGzera/DATX02-DIT561 | Tests.hs | {-# LANGUAGE DeriveDataTypeable, MonadComprehensions #-}
-- | Functional tests, such as reading/writing to a database.
module Main (main) where
import Frontend.Run
import Database.Daison hiding (tableName, createTable)
import Test.QuickCheck
import Test.QuickCheck.Test
import Control.Monad
import Data.Data
impor... | null | https://raw.githubusercontent.com/PUGzera/DATX02-DIT561/2ef49018616b74901f60255b71dfc7918cf0c16d/tests/Tests.hs | haskell | # LANGUAGE DeriveDataTypeable, MonadComprehensions #
| Functional tests, such as reading/writing to a database.
Test data types
Test values
needs type casting
Functions for interacting with the front-end
Empties the IORef.
Helper functions
e.g. testTable = table "testTable" :: Table Person
| Create a temp... | module Main (main) where
import Frontend.Run
import Database.Daison hiding (tableName, createTable)
import Test.QuickCheck
import Test.QuickCheck.Test
import Control.Monad
import Data.Data
import Data.IORef
import System.IO (stdout, openTempFile)
import GHC.IO.Handle
import System.Directory
import System.Exit
... |
16398e6080be6b38125ededa29b4ddbc74a6dfc15c379b49814ee184acb25497 | groundedsage/VeganBN-website | index.cljc | (ns vbn.index
#?(:cljs (:require-macros [vbn.styler :refer [css at-media]]))
(:require [rum.core :as rum]
[vbn.atoms :as atom]
[vbn.molecules :as molecule]
[vbn.organisms :as organism]
#?(:clj [vbn.styler :refer [css at-media get-css-str]])))
;;;;;;;;;;;;;;;;;... | null | https://raw.githubusercontent.com/groundedsage/VeganBN-website/d04ebf49f409b7a1dfce98344556b479697995ae/src/cljc/vbn/index.cljc | clojure |
HOME PAGE SPECIFIC ;;;;;;;;;;;;
(hidden) | (ns vbn.index
#?(:cljs (:require-macros [vbn.styler :refer [css at-media]]))
(:require [rum.core :as rum]
[vbn.atoms :as atom]
[vbn.molecules :as molecule]
[vbn.organisms :as organism]
#?(:clj [vbn.styler :refer [css at-media get-css-str]])))
(rum/defc banner-ima... |
3289ba7565a263af75e834c94a31853573bef1fc927f6791dfc0b9eed46cf298 | ijvcms/chuanqi_dev | gem_upgrade_config.erl | %%%-------------------------------------------------------------------
@author zhengsiying
%%% @doc
%%% 自动生成文件,不要手动修改
%%% @end
Created : 2016/10/12
%%%-------------------------------------------------------------------
-module(gem_upgrade_config).
-include("common.hrl").
-include("config.hrl").
-compile([export... | null | https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/config/gem_upgrade_config.erl | erlang | -------------------------------------------------------------------
@doc
自动生成文件,不要手动修改
@end
------------------------------------------------------------------- | @author zhengsiying
Created : 2016/10/12
-module(gem_upgrade_config).
-include("common.hrl").
-include("config.hrl").
-compile([export_all]).
get_list_conf() ->
[ gem_upgrade_config:get(X) || X <- get_list() ].
get_list() ->
[10003, 10004, 10005, 10006, 10007, 10008].
get(10003) ->
#gem_upgrade_conf{
key... |
6bdf92be5b81e3000edfd3e2b9fab82fa4220dcd07dd20748a9d4ef177af9515 | evilmartians/foundry | fy_arith_status.mli | (***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
, projet Crista... | null | https://raw.githubusercontent.com/evilmartians/foundry/ce947c7dcca79ab7a7ce25870e9fc0eb15e9c2bd/vendor/ocaml-num/fy_arith_status.mli | ocaml | *********************************************************************
Objective Caml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
en Automatique . All rights reserved . This file is distributed
under the terms of the GNU Library General Public License , with
$ I d : arith_status.mli 9547 2010 - 01 - 22 12... |
57411df5e9b1bf55d381b159bf1bb186bff092928f988fafd3d2b5ffb133c837 | rd--/hsc3 | dswitch.help.hs | dswitch ; c.f . dswitch1
uid_st_eval (
do a0 <- dwhiteM 2 3 4
a1 <- dwhiteM 2 0 1
a2 <- dseqM 2 (mce [1,1,1,0])
i <- dseqM 2 (mce [0,1,2,1,0])
d <- dswitchM i (mce [a0,a1,a2])
let t = impulse kr 4 0
f = demand t 0 d * 300 + 400
return (sinOsc ar f 0 * 0.1))
| null | https://raw.githubusercontent.com/rd--/hsc3/60cb422f0e2049f00b7e15076b2667b85ad8f638/Help/Ugen/dswitch.help.hs | haskell | dswitch ; c.f . dswitch1
uid_st_eval (
do a0 <- dwhiteM 2 3 4
a1 <- dwhiteM 2 0 1
a2 <- dseqM 2 (mce [1,1,1,0])
i <- dseqM 2 (mce [0,1,2,1,0])
d <- dswitchM i (mce [a0,a1,a2])
let t = impulse kr 4 0
f = demand t 0 d * 300 + 400
return (sinOsc ar f 0 * 0.1))
| |
dd357d60ff928e40d7517e68cf6d4ce37776c1f68b382f4c15fb5cd8e6327055 | pirapira/coq2rust | tactic_debug.ml | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/pirapira/coq2rust/22e8aaefc723bfb324ca2001b2b8e51fcc923543/proofs/tactic_debug.ml | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
This module intends to be a beginni... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
open Util
open Names
open Pp
... |
34f2576f25e2d0f7588e1a4ec81c34db5b98cbd6a2471cd2b48527501a31e6d3 | ocamllabs/ocaml-modular-implicits | includeclass.mli | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
, projet Cr... | null | https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/typing/includeclass.mli | ocaml | *********************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1997 Institut National de Recherche en Informatique et
en Automatique . All rights reserved . This file is distributed
under the terms of the Q Public License version 1.0 .
open Types
open Ctype
open Format
val cl... |
08d503dac4b99457d7054f8b8b6ea26fa03cf863d03dc52a878e44d56f81b502 | lagenorhynque/aqoursql | songs_test.clj | (ns aqoursql.resolver.songs-test
(:require
[aqoursql.test-helper.core :as helper :refer [with-db-data with-system]]
[aqoursql.test-helper.db-data :as db-data]
[aqoursql.util.const :as const]
[clojure.string :as str]
[clojure.test :as t]))
(t/use-fixtures
:once
helper/instrument-specs)
(t/deftest ... | null | https://raw.githubusercontent.com/lagenorhynque/aqoursql/a7f00ee588ff7e1c1f10ac3f550aafea2ef661ab/test/aqoursql/resolver/songs_test.clj | clojure | (ns aqoursql.resolver.songs-test
(:require
[aqoursql.test-helper.core :as helper :refer [with-db-data with-system]]
[aqoursql.test-helper.db-data :as db-data]
[aqoursql.util.const :as const]
[clojure.string :as str]
[clojure.test :as t]))
(t/use-fixtures
:once
helper/instrument-specs)
(t/deftest ... | |
3064d5ff89209bcf2479d9c3573c8867cc0281bd856f5410e41e522ee0f7ed2f | ocaml-multicore/effects-examples | dynamic_state.ml | (* This file contains a collection of attempts at replicating ML-style
references using algebraic effects and handlers. The difficult thing
to do is the dynamic creation of new reference cells at arbitrary
types, without needing some kind of universal type or dynamic type
checking. *)
module type Type = si... | null | https://raw.githubusercontent.com/ocaml-multicore/effects-examples/4f07e1774b726eec0f6769da0a16b402582d37b5/dynamic_state.ml | ocaml | This file contains a collection of attempts at replicating ML-style
references using algebraic effects and handlers. The difficult thing
to do is the dynamic creation of new reference cells at arbitrary
types, without needing some kind of universal type or dynamic type
checking.
**************************... |
module type Type = sig type t end
module Int = struct type t = int let compare = compare end
module LocalState (R : sig type t end) = struct
type reff = R.t
effect New : int -> R.t
effect Get : R.t -> int
effect Put : R.t * int -> unit
end
module type StateOps = sig
type rEffect.t
effect New : int -> rEf... |
0a86dce6b1cb0c316e93ff70f3faed693e4d76828a3bad42d23e45800f726a40 | mpickering/apply-refact | List12.hs | yes = y :: [Char] -> a | null | https://raw.githubusercontent.com/mpickering/apply-refact/a4343ea0f4f9d8c2e16d6b16b9068f321ba4f272/tests/examples/List12.hs | haskell | yes = y :: [Char] -> a | |
b099de2f7557b253ddef4016fae66c77f2a04d3ad1087574e28feceaafb4e364 | nomnom-insights/nomnom.duckula | schema_test.clj | (ns duckula.avro.schema-test
(:require
[abracad.avro.codec :as avro.codec]
[cheshire.core :as json]
[clojure.test :refer [is deftest testing]]
[duckula.avro]
[duckula.avro.schema :as avro.schema]
[schema.core :as s]))
(def sample-avro-schema
(duckula.avro/load-schemas "schema/endpoint/search/test... | null | https://raw.githubusercontent.com/nomnom-insights/nomnom.duckula/a6c8ee965da5717c5909bfbda5745be7a287d2ce/test/duckula/avro/schema_test.clj | clojure | (ns duckula.avro.schema-test
(:require
[abracad.avro.codec :as avro.codec]
[cheshire.core :as json]
[clojure.test :refer [is deftest testing]]
[duckula.avro]
[duckula.avro.schema :as avro.schema]
[schema.core :as s]))
(def sample-avro-schema
(duckula.avro/load-schemas "schema/endpoint/search/test... | |
46bbbfb80251b76ca09f0a969379fdf4f1ff3c9d4406273a094beab3ab694216 | ocaml/dune | e.ml | let ()
= ()
| null | https://raw.githubusercontent.com/ocaml/dune/aa05250c5a8cfa1d59812910a56482ba4b75716e/test/blackbox-tests/test-cases/formatting/feature.t/lang2/disabled/e.ml | ocaml | let ()
= ()
| |
3313f68113b0f1451a8aa17e137cbc690edc04ace4b2177a2902f2f0fd9869da | andrejbauer/coop | value.mli | (** Runtime values *)
* A type that holds values whose Coop type is abstract .
type abstract =
| Out_channel of Stdlib.out_channel
| In_channel of Stdlib.in_channel
(** Runtime value *)
type t =
| Abstract of abstract
| Numeral of int
| Boolean of bool
| Quoted of string
| Constructor of Name.t * t opti... | null | https://raw.githubusercontent.com/andrejbauer/coop/173d0889795c55a370f79fb42425b77a5c0c8464/src/value.mli | ocaml | * Runtime values
* Runtime value
* The user monad carrier
* The kernel monad carrier
* The unit value
* The user monad structure
* The kernel monad structure
* Raise a [CoopException]
* Give a descriptive name of a value.
* Give a descriptive name of a value, in plural.
* The empty container
* Pretty-print a... |
* A type that holds values whose Coop type is abstract .
type abstract =
| Out_channel of Stdlib.out_channel
| In_channel of Stdlib.in_channel
type t =
| Abstract of abstract
| Numeral of int
| Boolean of bool
| Quoted of string
| Constructor of Name.t * t option
| Tuple of t list
| ClosureUser of (... |
41ea9d96e6f4300e11dd041d6592108ca61c4b447c44ee672954a276a9df7139 | arttuka/reagent-material-ui | person_2_two_tone.cljs | (ns reagent-mui.icons.person-2-two-tone
"Imports @mui/icons-material/Person2TwoTone 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 person-2-two-tone (creat... | null | https://raw.githubusercontent.com/arttuka/reagent-material-ui/14103a696c41c0eb67fc07fc67cd8799efd88cb9/src/icons/reagent_mui/icons/person_2_two_tone.cljs | clojure | (ns reagent-mui.icons.person-2-two-tone
"Imports @mui/icons-material/Person2TwoTone 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 person-2-two-tone (creat... | |
543d8ff92c5957bb0da06c8afd45031095071c4094f8435f3fd307e1cc9d8d00 | ghcjs/jsaddle-dom | HTMLAnchorElement.hs | # LANGUAGE PatternSynonyms #
-- For HasCallStack compatibility
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
# OPTIONS_GHC -fno - warn - unused - imports #
module JSDOM.Generated.HTMLAnchorElement
(setCharset, getCharset, setCoords, getCoords, setDownload,
getDownload, setHreflang, get... | null | https://raw.githubusercontent.com/ghcjs/jsaddle-dom/5f5094277d4b11f3dc3e2df6bb437b75712d268f/src/JSDOM/Generated/HTMLAnchorElement.hs | haskell | For HasCallStack compatibility
# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #
| <-US/docs/Web/API/HTMLAnchorElement.text Mozilla HTMLAnchorElement.text documentation>
| <-US/docs/Web/API/HTMLAnchorElement.text Mozilla HTMLAnchorElement.text documentation> | # LANGUAGE PatternSynonyms #
# OPTIONS_GHC -fno - warn - unused - imports #
module JSDOM.Generated.HTMLAnchorElement
(setCharset, getCharset, setCoords, getCoords, setDownload,
getDownload, setHreflang, getHreflang, setName, getName, setPing,
getPing, setRel, getRel, setRev, getRev, setShape, get... |
8969716b77c4346a20ff1e0a2ee1a5ef99539f88bb58b2e51e31214ffecf40c7 | tomhanika/conexp-clj | buttons.clj | ;; Copyright ⓒ the conexp-clj developers; all rights reserved.
;; The use and distribution terms for this software are covered by the
Eclipse Public License 1.0 ( -1.0.php )
;; which can be found in the file LICENSE at the root of this distribution.
;; By using this software in any fashion, you are agreeing to be bou... | null | https://raw.githubusercontent.com/tomhanika/conexp-clj/5e4c15697f06446f925f53d1d143528155d7dd3a/src/main/clojure/conexp/gui/draw/buttons.clj | clojure | Copyright ⓒ the conexp-clj developers; all rights reserved.
The use and distribution terms for this software are covered by the
which can be found in the file LICENSE at the root of this distribution.
By using this software in any fashion, you are agreeing to be bound by
the terms of this license.
You must not re... | Eclipse Public License 1.0 ( -1.0.php )
(ns conexp.gui.draw.buttons
"Provides simple helper functions to create the buttons of the lattice editor."
(:import [javax.swing JPanel JButton JTextField JLabel
JSeparator SwingConstants Box JComboBox
JSlider SpinnerNumberMo... |
b688f350474553c91d1fbf1708256976dc1e2d6ea5a03d16eb10ff17849ef891 | dalvescb/LearningHaskell_Exercises | Exercises05.hs | |
Module :
Copyright : ( c ) 2020
License : GPL ( see the LICENSE file )
Maintainer : none
Stability : experimental
Portability : portable
Description :
Haskell exercise template Set 05 - McMaster CS 1JC3 2021
Module : HaskellExercises05.Exercises05
Copyright ... | null | https://raw.githubusercontent.com/dalvescb/LearningHaskell_Exercises/938ac5eda1240a54393806fdb223ba197b0efcf8/HaskellExercises05/src/Exercises05.hs | haskell | -------------------------------------------------------------------------------------------------------
INSTRUCTIONS README!!!
-------------------------------------------------------------------------------------------------------
1) DO NOT DELETE/ALTER ANY CODE ABOVE THESE INSTRUCTIONS
-----------------... | |
Module :
Copyright : ( c ) 2020
License : GPL ( see the LICENSE file )
Maintainer : none
Stability : experimental
Portability : portable
Description :
Haskell exercise template Set 05 - McMaster CS 1JC3 2021
Module : HaskellExercises05.Exercises05
Copyright ... |
bb940794d7053ab18eb798f84a8a7cb531899c67ef5c4221793405f1978836a6 | melisgl/mgl-pax | navigate-early.lisp | (in-package :mgl-pax)
(in-readtable pythonic-string-syntax)
(autoload find-definition '#:mgl-pax/navigate)
(autoload find-definition* '#:mgl-pax/navigate)
(autoload locate-definitions-for-emacs '#:mgl-pax/navigate :export nil)
(declaim (ftype function find-method*))
(declaim (ftype function macro-arg-names))
| null | https://raw.githubusercontent.com/melisgl/mgl-pax/f0f421c04d05b77930af09b3f6c8ad574fb172cb/src/base/navigate-early.lisp | lisp | (in-package :mgl-pax)
(in-readtable pythonic-string-syntax)
(autoload find-definition '#:mgl-pax/navigate)
(autoload find-definition* '#:mgl-pax/navigate)
(autoload locate-definitions-for-emacs '#:mgl-pax/navigate :export nil)
(declaim (ftype function find-method*))
(declaim (ftype function macro-arg-names))
| |
aa931351dd58e3fe62f5aec544181e99cefdfb1707e9bc8f97934a93389bf023 | geneweb/geneweb | plugin_gwxjg.ml | let () = ()
| null | https://raw.githubusercontent.com/geneweb/geneweb/d4943f2a4530ae225ba8250de2111aaca694ec57/plugins/gwxjg/plugin_gwxjg.ml | ocaml | let () = ()
| |
c4347222c7a6a7605eae407b07b38cd93afa28478aab50a8e7101c9e8ecabc68 | hyperfiddle/electric | base64.cljc | (ns contrib.base64
(:require #?(:cljs [goog.crypt.base64 :as base64])
[clojure.set :refer [map-invert]]
clojure.string
[hyperfiddle.rcf :refer [tests]])
#?(:clj (:import (java.util Base64))))
#?(:cljs
(when (= *target* "nodejs")
(def base64 (js/require "base-64"))))
(de... | null | https://raw.githubusercontent.com/hyperfiddle/electric/1c6c3891cbf13123fef8d33e6555d300f0dac134/src/contrib/base64.cljc | clojure | why is this the same | (ns contrib.base64
(:require #?(:cljs [goog.crypt.base64 :as base64])
[clojure.set :refer [map-invert]]
clojure.string
[hyperfiddle.rcf :refer [tests]])
#?(:clj (:import (java.util Base64))))
#?(:cljs
(when (= *target* "nodejs")
(def base64 (js/require "base-64"))))
(de... |
dd8f719f9bb40b7ba8dde10bf2667586bbe6de3906b94519150de770a92e5346 | helins/medium.cljc | user.clj | 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 /.
(ns user
"For daydreaming at the REPL."
(:require [helins.medium.dev :as medium.dev]))
;;;;;;;;;;
| null | https://raw.githubusercontent.com/helins/medium.cljc/29ef3b42c741be1a27efb8b8ea343a55b0c95544/src/dev/user.clj | clojure | 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 /.
(ns user
"For daydreaming at the REPL."
(:require [helins.medium.dev :as medium.dev]))
| |
995ea0a7a30fb24a2542c33f14d5662efa6889ca568899c7e3b0c1cb575f3986 | florence/cover | raco.rkt | #lang racket
(require racket/list racket/cmdline raco/command-name
setup/getinfo
compiler/module-suffix
racket/match
racket/contract/base
racket/function
racket/logging
cover
(only-in cover/private/contracts coverage-gen/c)
cover/private/s... | null | https://raw.githubusercontent.com/florence/cover/bc17e4e22d47b1da91ddaa5eafefe28f4675e85c/cover-test/cover/tests/raco.rkt | racket | we expect that a standard install has "html", "coveralls", and "raw" | #lang racket
(require racket/list racket/cmdline raco/command-name
setup/getinfo
compiler/module-suffix
racket/match
racket/contract/base
racket/function
racket/logging
cover
(only-in cover/private/contracts coverage-gen/c)
cover/private/s... |
c85361ef5bd628ef3f921c22cb3f0fc63a3d3a919876ac752d93a164edc24041 | oliyh/kamera | graphs_test.cljs | (ns kamera.graphs-test
(:require [kamera.graphs :refer [log-gauge]]
[devcards.core :refer-macros [defcard-rg]]))
(defcard-rg log-gauge-test
[:div
[:h4 "Nil"]
[log-gauge nil]
(for [v [0 0.0001 0.001 0.01 0.1 1]
:let [threshold (* v 1.3)]]
[:div {:key v}
[:h4 "Value: " v]
... | null | https://raw.githubusercontent.com/oliyh/kamera/8e9b3708a16c09ffbdc7ffa7894e3d023dcb7101/test/cljs/kamera/graphs_test.cljs | clojure | (ns kamera.graphs-test
(:require [kamera.graphs :refer [log-gauge]]
[devcards.core :refer-macros [defcard-rg]]))
(defcard-rg log-gauge-test
[:div
[:h4 "Nil"]
[log-gauge nil]
(for [v [0 0.0001 0.001 0.01 0.1 1]
:let [threshold (* v 1.3)]]
[:div {:key v}
[:h4 "Value: " v]
... | |
44b011179a4886cffbc656752b1a284b7dbcd88beb5b6b97e30352a49483450d | jtod/Hydra | Pattern (2).hs | |
Module : HDL.Hydra . Circuits . Pattern
Description : Combinators for regular circuit patterns
Copyright : ( c ) 2016
License : GPL-3
Maintainer :
Stability : experimental
Combinators for regular circuit patterns
Module : HDL.Hydra.Circuits.Pattern
Description : Comb... | null | https://raw.githubusercontent.com/jtod/Hydra/49168a25e96fb034dc55176feab8c511ed97bf5d/src/HDL/Hydra/Core/Pattern%20(2).hs | haskell | * Wiring patterns
* Linear patterns
** Map
** Fold
** Scan
* Tree patterns
Summary of patterns:
map4 :: (a->b->c->d->e) -> [a] -> [b] -> [c] -> [d] -> [e]
mapn :: (a->b) -> Int -> [a] -> [b]
foldl :: (a->b->a) -> a -> [b] -> a
foldr :: (b->a->a) -> a -> [b] -> a
wscanr :: (b->a->a) -> a -> [b] -> [a]
... | |
Module : HDL.Hydra . Circuits . Pattern
Description : Combinators for regular circuit patterns
Copyright : ( c ) 2016
License : GPL-3
Maintainer :
Stability : experimental
Combinators for regular circuit patterns
Module : HDL.Hydra.Circuits.Pattern
Description : Comb... |
5459b344b98a0ae9544057954df17ffea7d1ae2c54762b81ab73e4982cda38c1 | lambe-lang/nethra | substitution.ml | open Stdlib.Fun
open Preface.Option.Monad
open Preface.Option.Foldable
open Nethra_lang_ast.Term
open Nethra_lang_ast.Term.Construct
let subs_kind (level, c) = kind ~c level
let subs_int (value, c) = int ~c value
let subs_char (value, c) = char ~c value
let subs_string (value, c) = string ~c value
let subs_id name va... | null | https://raw.githubusercontent.com/lambe-lang/nethra/fc7b962d264f34b696d2350222505bdbe6270d46/lib/nethra/lang/basic/substitution.ml | ocaml | open Stdlib.Fun
open Preface.Option.Monad
open Preface.Option.Foldable
open Nethra_lang_ast.Term
open Nethra_lang_ast.Term.Construct
let subs_kind (level, c) = kind ~c level
let subs_int (value, c) = int ~c value
let subs_char (value, c) = char ~c value
let subs_string (value, c) = string ~c value
let subs_id name va... | |
16b8dd07feb0fc74ccafbd734da93c53e2f1565c34b0212182d3205dcbfa028d | singleheart/programming-in-haskell | ex2b.hs | third :: [a] -> a
third xs = xs !! 2 | null | https://raw.githubusercontent.com/singleheart/programming-in-haskell/80c7efc0425babea3cd982e47e121f19bec0aba9/ch04/ex2b.hs | haskell | third :: [a] -> a
third xs = xs !! 2 | |
b779c7916e4b388a315e65134e628776f4f0a74eb239270784d1999cc226693d | vseloved/const-table | core-test.lisp | (in-package #:cstab)
(named-readtables:in-readtable rutilsx-readtable)
(deftest build-cst ()
(with ((ht (pairs->ht (loop :repeat 1000
:collect (pair (princ-to-string
(random most-positive-fixnum))
... | null | https://raw.githubusercontent.com/vseloved/const-table/e920aa1644417b05e810d047d1c8229bba091c93/test/core-test.lisp | lisp | (in-package #:cstab)
(named-readtables:in-readtable rutilsx-readtable)
(deftest build-cst ()
(with ((ht (pairs->ht (loop :repeat 1000
:collect (pair (princ-to-string
(random most-positive-fixnum))
... | |
9b54d7cab86232c61c2e0ed3c0d781b0d75db4945501c25fa91bbf9006151ff4 | SamB/coq | nameops.mli | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/SamB/coq/8f84aba9ae83a4dc43ea6e804227ae8cae8086b1/library/nameops.mli | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
i $Id$ i
Identifiers and names
re... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
open Names
val pr_id : id... |
d340f87c8aedd9ab523dfbb42b35557cdc4b980e561f0cb0e965f356135f1c42 | helium/merkerl | merkerl_eqc.erl | -module(merkerl_eqc).
%% include some quickcheck headers
-include_lib("eqc/include/eqc.hrl").
-export([prop_merkerl/0]).
prop_merkerl() ->
generate 2 disjoint lists of binaries
?FORALL({Values, NonValues}, ?SUCHTHAT({X1, X2}, {list(binary()), list(binary())}, sets:is_disjoint(sets:from_list(X1), sets:from_list... | null | https://raw.githubusercontent.com/helium/merkerl/26ddcaf7f3c2c76eebf6f9258822f923ce69cb75/eqc/merkerl_eqc.erl | erlang | include some quickcheck headers | -module(merkerl_eqc).
-include_lib("eqc/include/eqc.hrl").
-export([prop_merkerl/0]).
prop_merkerl() ->
generate 2 disjoint lists of binaries
?FORALL({Values, NonValues}, ?SUCHTHAT({X1, X2}, {list(binary()), list(binary())}, sets:is_disjoint(sets:from_list(X1), sets:from_list(X2))),
begin
... |
ae63d826e69132400cb4b4679412d2e2cf848347af5ca974b7b55bf4b310c693 | kmi/irs | load.lisp | Mode : Lisp ; Package :
The Open University
(in-package "OCML")
(def-ontology akt-support-ontology2
:author "enrico"
:allowed-editors ("john")
:do-not-include-base-ontology? t
:files ( "foundations" "basic" "frames" "time" "new")) | null | https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/ontologies/domains/akt-support-ontology2/load.lisp | lisp | Package : |
The Open University
(in-package "OCML")
(def-ontology akt-support-ontology2
:author "enrico"
:allowed-editors ("john")
:do-not-include-base-ontology? t
:files ( "foundations" "basic" "frames" "time" "new")) |
8dfeb64030dc2b4ecb1dfc04e08a419ab222c7f1ce9cf58020c75acc35eb25f0 | skanev/playground | 28.scm | SICP exercise 5.28
;
; Modify the definition of the evaluator by changing eval-sequence as
described in section 5.4.2 so that the evaluator is no longer
tail - recursive . Rerun your experiments from exercise 5.26 to 5.27 to
; demonstrate that both versions of the factorial procedure now require space
; that grow... | null | https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/sicp/05/28.scm | scheme |
Modify the definition of the evaluator by changing eval-sequence as
demonstrate that both versions of the factorial procedure now require space
that grows linearly with their input.
The results are:
Iterative factorial:
Recursive factorial:
One can see that both versions are not bound on stack space. The code... | SICP exercise 5.28
described in section 5.4.2 so that the evaluator is no longer
tail - recursive . Rerun your experiments from exercise 5.26 to 5.27 to
1 ! takes ( total - pushes = 70 maximum - depth = 17 )
2 ! takes ( total - pushes = 107 maximum - depth = 20 )
3 ! takes ( total - pushes = 144 maxi... |
28516b85fa41c58b9319876d09e7725ac96dfbcfa4705953f79f3f2f1cbc59a2 | fission-codes/fission | Types.hs | module Fission.Web.API.IPFS.Download.Types (Routes (..)) where
import qualified Network.IPFS.CID.Types as IPFS
import qualified Network.IPFS.File.Types as File
import Fission.Web.API.Prelude
data Routes mode = Routes
{ viaPath ::
mode
:- Summary "Get a file (path)"
:> Description "Down... | null | https://raw.githubusercontent.com/fission-codes/fission/7e69c0da210a77412c96631f5ff7ef1b38240d37/fission-web-api/library/Fission/Web/API/IPFS/Download/Types.hs | haskell | module Fission.Web.API.IPFS.Download.Types (Routes (..)) where
import qualified Network.IPFS.CID.Types as IPFS
import qualified Network.IPFS.File.Types as File
import Fission.Web.API.Prelude
data Routes mode = Routes
{ viaPath ::
mode
:- Summary "Get a file (path)"
:> Description "Down... | |
1ecfccbaf51ed5ca55834e86c4b5f2f078062f384436072a7ce1316f66f0626b | silky/quipper | QuantumIfTest.hs | This file is part of Quipper . Copyright ( C ) 2011 - 2016 . Please see the
-- file COPYRIGHT for a list of authors, copyright holders, licensing,
-- and other details. All rights reserved.
--
-- ======================================================================
import Quipper
import QuipperLib.Simulation
impor... | null | https://raw.githubusercontent.com/silky/quipper/1ef6d031984923d8b7ded1c14f05db0995791633/tests/QuantumIfTest.hs | haskell | file COPYRIGHT for a list of authors, copyright holders, licensing,
and other details. All rights reserved.
======================================================================
----------------------------------------------------------------------
* Testing quantum \"if then else\"
| A dummy value of type Dou... | This file is part of Quipper . Copyright ( C ) 2011 - 2016 . Please see the
import Quipper
import QuipperLib.Simulation
import Algorithms.BF.QuantumIf
double :: Double
double = undefined
if_test :: IO ()
if_test = do
print_simple ASCII ifTest2
print_simple Preview ifTest2
res0 <- run_generic_io double... |
35211a5e4b34c709ab93af7e83508e891478cc12c86ad3dc4373e513e9c33902 | nuvla/ui | subs.cljs | (ns sixsq.nuvla.ui.edges-detail.subs
(:require [clojure.string :as str]
[re-frame.core :refer [reg-sub]]
[sixsq.nuvla.ui.edges-detail.spec :as spec]
[sixsq.nuvla.ui.edges.utils :as edges-utils]
[sixsq.nuvla.ui.utils.general :as general-utils]))
(reg-sub
::loading?
... | null | https://raw.githubusercontent.com/nuvla/ui/255b7e975f6adb91e4b37cbf0aa6ede2a3251777/code/src/cljs/sixsq/nuvla/ui/edges_detail/subs.cljs | clojure | (ns sixsq.nuvla.ui.edges-detail.subs
(:require [clojure.string :as str]
[re-frame.core :refer [reg-sub]]
[sixsq.nuvla.ui.edges-detail.spec :as spec]
[sixsq.nuvla.ui.edges.utils :as edges-utils]
[sixsq.nuvla.ui.utils.general :as general-utils]))
(reg-sub
::loading?
... | |
cc9c19087af5e9c8a7638ee3907dafa4306afc34f3daaf869a9bd87c0c8a83be | gedge-platform/gedge-platform | uaa_jwt.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 /.
%%
Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved .
%%
-module(uaa_jwt).
-export([add_signing_key/3,
... | null | https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/rabbitmq_auth_backend_oauth2/src/uaa_jwt.erl | erlang | 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 /.
Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved .
-module(uaa_jwt).
-export([add_signing_key/3,
... | |
cc84cc5309e8ebdcca100f0f8f93c3b7ec7c4bdc0900ae86b2a031cf2377c848 | sbcl/sbcl | x86-64-vm.lisp | ;;;; X86-64-specific runtime stuff
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... | null | https://raw.githubusercontent.com/sbcl/sbcl/665dd859877b5d8737035542b7c35d33506e3e51/src/code/x86-64-vm.lisp | lisp | X86-64-specific runtime stuff
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.
register. FORMAT is the type of float to return.
Given a signal context, return the floating point modes word i... |
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-VM")
(defun machine-type ()
"Return a string describing the type of the local machine."
"X86-64")
#+(or ... |
ba4cdb88b5bbf5b4d6a2c98cf0028295d5a8f29fec862f566e44ece1e0dfba7d | DaMSL/K3 | Generators.hs | # LANGUAGE ScopedTypeVariables #
# LANGUAGE TemplateHaskell #
|
This module contains Template Haskell utilities which will produce
module - specific logging functions .
This module contains Template Haskell utilities which will produce
module-specific logging functions.
-}
module Language.K3.Utils.Logger... | null | https://raw.githubusercontent.com/DaMSL/K3/51749157844e76ae79dba619116fc5ad9d685643/src/Language/K3/Utils/Logger/Generators.hs | haskell | # LANGUAGE ScopedTypeVariables #
# LANGUAGE TemplateHaskell #
|
This module contains Template Haskell utilities which will produce
module - specific logging functions .
This module contains Template Haskell utilities which will produce
module-specific logging functions.
-}
module Language.K3.Utils.Logger... | |
6a85ae81c43225e8d9b38c1e4c7ecb1add640bb41d9f953bbc7564b19b9d2c0b | jdreaver/eventful | CustomerAccounts.hs | # LANGUAGE RecordWildCards #
# LANGUAGE TemplateHaskell #
# LANGUAGE TupleSections #
module Bank.ReadModels.CustomerAccounts
( CustomerAccounts (..)
, customerAccountsAccountsById
, customerAccountsCustomerAccounts
, customerAccountsCustomerIdsByName
, getCustomerAccountsFromName
, customerAccountsProjecti... | null | https://raw.githubusercontent.com/jdreaver/eventful/3f0c604e5bb2dcf5bacf0a2e01edf6a5e9c5e22e/examples/bank/src/Bank/ReadModels/CustomerAccounts.hs | haskell | | Groups account info by customer so it's easy to see all of a customer's
accounts
NOTE: This assumes all customer names are unique. Obviously not true in
the real world.
Assume it's an account event. If it isn't it won't get handled, no biggy. | # LANGUAGE RecordWildCards #
# LANGUAGE TemplateHaskell #
# LANGUAGE TupleSections #
module Bank.ReadModels.CustomerAccounts
( CustomerAccounts (..)
, customerAccountsAccountsById
, customerAccountsCustomerAccounts
, customerAccountsCustomerIdsByName
, getCustomerAccountsFromName
, customerAccountsProjecti... |
5bf9a5a9a2174c875340823d5782eaa5acd80d336c6ed93d7ae70f6384bea79d | AdaCore/why3 | driver.mli | (********************************************************************)
(* *)
The Why3 Verification Platform / The Why3 Development Team
Copyright 2010 - 2022 -- Inria - CNRS - Paris - Saclay University
(* ... | null | https://raw.githubusercontent.com/AdaCore/why3/be1023970d48869285e68f12d32858c3383958e0/src/driver/driver.mli | ocaml | ******************************************************************
This software is distributed under the terms of the GNU Lesser
on linking described in file LICENSE. ... | The Why3 Verification Platform / The Why3 Development Team
Copyright 2010 - 2022 -- Inria - CNRS - Paris - Saclay University
General Public License version 2.1 , with the special exception
* { 2 Create a driver }
type driver
val load_driver_file_and_extras :
Whyconf.main -> Env.env -> stri... |
87a193ec8a207970628a3b8d931529fb345b7b28cef8aaa2f82e67cda4b7339b | ocaml-flambda/flambda-backend | flambda.mli | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/ocaml-flambda/flambda-backend/089504f86099bbf7402cbffeeb5e5295eae6d5f6/middle_end/flambda2/terms/flambda.mli | ocaml | ************************************************************************
OCaml
... | , OCamlPro
and ,
Copyright 2014 - -2019 Jane Street Group LLC
the GNU Lesser General Public License version 2.1 , with the
* The grammar of the Flambda 2 term language .
The language i... |
ff25ae55c171195f449c0f41447179e8fc673814d12897f9b3b30d8b096e592d | k3nn7/algoliasearch-client-erlang | algolia_test.erl | -module(algolia_test).
-compile(export_all).
-include_lib("eunit/include/eunit.hrl").
-include("client.hrl").
-include("index.hrl").
create_client_test() ->
Client = algolia:make_client("foo", "bar"),
?assert(is_function(Client#algolia_client.transport)).
init_index_test() ->
Client = algolia:make_client("foo"... | null | https://raw.githubusercontent.com/k3nn7/algoliasearch-client-erlang/640f3da5161975a77f45f563ebab22edbf1fb021/test/algolia_test.erl | erlang | -module(algolia_test).
-compile(export_all).
-include_lib("eunit/include/eunit.hrl").
-include("client.hrl").
-include("index.hrl").
create_client_test() ->
Client = algolia:make_client("foo", "bar"),
?assert(is_function(Client#algolia_client.transport)).
init_index_test() ->
Client = algolia:make_client("foo"... | |
45aba7d95cb0e26a26f57caf8516c12bd640024cecae0f0f20c600bc48b1f492 | vyzo/gerbil | core__1.scm | (declare (block) (standard-bindings) (extended-bindings) (inlining-limit 200))
(begin
(define |gx[1]#_g9393_|
(##structure
gx#syntax-quote::t
'expander-context::t
#f
(gx#current-expander-context)
'()))
(define |gx[1]#_g9394_|
(##structure
gx#syntax-quote::t
'make-expander-... | null | https://raw.githubusercontent.com/vyzo/gerbil/17fbcb95a8302c0de3f88380be1a3eb6fe891b95/src/bootstrap/gerbil/expander/core__1.scm | scheme | <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> | (declare (block) (standard-bindings) (extended-bindings) (inlining-limit 200))
(begin
(define |gx[1]#_g9393_|
(##structure
gx#syntax-quote::t
'expander-context::t
#f
(gx#current-expander-context)
'()))
(define |gx[1]#_g9394_|
(##structure
gx#syntax-quote::t
'make-expander-... |
c7ce012db57ee112e5db5cd32c90a60cfce7369b19fdce97c4ec922c5a0e9b6d | pdarragh/variadic-curry-calculus | math-help.rkt | #lang racket
(require scribble-math)
(provide (all-defined-out))
(use-mathjax)
Some useful MathJax stuff on this MathSE post :
;; -basic-tutorial-and-quick-reference
(define (separate-text-by-pred text pred)
(define (group->text-pair group group-matches-pred?)
(cons group-matches-pred? (list->string (rev... | null | https://raw.githubusercontent.com/pdarragh/variadic-curry-calculus/79ac3aec14e31c08b626385acc06f389342d69a5/lambda-vc/scribblings/math-help.rkt | racket | -basic-tutorial-and-quick-reference
Add c to existing matching group.
Start a new matching group.
Start a new non-matching group.
Add c to existing non-matching group. | #lang racket
(require scribble-math)
(provide (all-defined-out))
(use-mathjax)
Some useful MathJax stuff on this MathSE post :
(define (separate-text-by-pred text pred)
(define (group->text-pair group group-matches-pred?)
(cons group-matches-pred? (list->string (reverse group))))
(define (separate-chars ... |
d5e781f7c5d78456227bc825b82c7670110b3b58cb81fc94425a3cb9c39a94f1 | dpiponi/Moodler | Module.hs | # LANGUAGE TemplateHaskell , FlexibleContexts #
module Module(NodeType(..),
inNames,
loadNodeType,
execCode,
inList,
initCode,
isInlined,
nodeInclude,
nodeLink,
nodeTypeName,
... | null | https://raw.githubusercontent.com/dpiponi/Moodler/a0c984c36abae52668d00f25eb3749e97e8936d3/Moodler/src/Module.hs | haskell | indent :: Int -> String
indent n = replicate n ' '
XXX Create in place
Auto-generate UI script for a .msl module
XXX More sizes
XXX Use `defines` to set "out"
| Loads a module from a .msl file
^ Load module with this name...
^ ...from this file...
fst (splitDot fileName') | # LANGUAGE TemplateHaskell , FlexibleContexts #
module Module(NodeType(..),
inNames,
loadNodeType,
execCode,
inList,
initCode,
isInlined,
nodeInclude,
nodeLink,
nodeTypeName,
... |
5fe87e3c6d35e502befd9b2a6f3f5daf8a456a93d0f5b7108c46b70329e9c79a | aryx/lfs | prefix.ml |
open Logic
module type PARAM =
sig
val toks : Syntax.t_list
end
module Make (Param : PARAM) (L : T) =
struct
module M = Id(L)
include M
let parse = parser
| [<f = Syntax.parse_tokens_and Param.toks parse>] -> f
let print f =
Param.toks @ print f
end
| null | https://raw.githubusercontent.com/aryx/lfs/b931530c7132b77dfaf3c99d452dc044fce37589/logfun/src/prefix.ml | ocaml |
open Logic
module type PARAM =
sig
val toks : Syntax.t_list
end
module Make (Param : PARAM) (L : T) =
struct
module M = Id(L)
include M
let parse = parser
| [<f = Syntax.parse_tokens_and Param.toks parse>] -> f
let print f =
Param.toks @ print f
end
| |
7a263ff6339034ed9cc923fb783fc102246cfe7262770fa92ffd9b02833491f2 | EveryTian/Haskell-Codewars | where-my-anagrams-at.hs | -- -my-anagrams-at
module Anagram where
import Data.List (sort)
anagrams :: String -> [String] -> [String]
anagrams w = let sortW = sort w in filter (\ x -> sortW == sort x)
| null | https://raw.githubusercontent.com/EveryTian/Haskell-Codewars/dc48d95c676ce1a59f697d07672acb6d4722893b/5kyu/where-my-anagrams-at.hs | haskell | -my-anagrams-at |
module Anagram where
import Data.List (sort)
anagrams :: String -> [String] -> [String]
anagrams w = let sortW = sort w in filter (\ x -> sortW == sort x)
|
eb8f5d1c209e763895d731fc19a839137dab6102df4accecdc4429074762b751 | ocaml/dune | vlib_impl.ml | let hello = "Hello from " ^ Virt.t
| null | https://raw.githubusercontent.com/ocaml/dune/b8fd9dffecfd1a102720ca2ab485e80fcee2cb65/test/blackbox-tests/test-cases/melange/virtual_lib_compilation.t/vlib/vlib_impl.ml | ocaml | let hello = "Hello from " ^ Virt.t
| |
9d368b786a5ead252625c24147c3631641d8aa7e2b49215056efd8285e43882c | spechub/Hets | Mapping.hs | # LANGUAGE CPP , TypeFamilies , DeriveDataTypeable #
module PGIP.GraphQL.Result.Mapping where
import PGIP.GraphQL.Result.ConservativityStatus
import PGIP.GraphQL.Result.IdReference
import PGIP.GraphQL.Result.Language
import PGIP.GraphQL.Result.LocIdReference
import Data.Data
data Mapping = Mapping { conservativityS... | null | https://raw.githubusercontent.com/spechub/Hets/af7b628a75aab0d510b8ae7f067a5c9bc48d0f9e/PGIP/GraphQL/Result/Mapping.hs | haskell | # LANGUAGE CPP , TypeFamilies , DeriveDataTypeable #
module PGIP.GraphQL.Result.Mapping where
import PGIP.GraphQL.Result.ConservativityStatus
import PGIP.GraphQL.Result.IdReference
import PGIP.GraphQL.Result.Language
import PGIP.GraphQL.Result.LocIdReference
import Data.Data
data Mapping = Mapping { conservativityS... | |
ad8745a6a21a209fcb3f567e7b976dfb19a293bd39fb7d4f9c1e0dcac26bdbed | phoe-trash/gateway | overlord.lisp | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; GATEWAY
" phoe " Herda 2017
db / overlord.lisp
(in-package :gateway/sql)
(overlord:set-package-base "yesql/" :gateway.sql)
(eval-when (:compile-toplevel :load-toplevel :execute)
(defparameter *sql-imports*
'((install . ... | null | https://raw.githubusercontent.com/phoe-trash/gateway/a8d579ccbafcaee8678caf59d365ec2eab0b1a7e/sql/overlord.lisp | lisp |
GATEWAY | " phoe " Herda 2017
db / overlord.lisp
(in-package :gateway/sql)
(overlord:set-package-base "yesql/" :gateway.sql)
(eval-when (:compile-toplevel :load-toplevel :execute)
(defparameter *sql-imports*
'((install . "install.sql")
(player . "player.sql"))))
(defun import-all ()
(let ((*package* (find... |
9f43c3b1713b5406bba4a35c71e6ba95949085e3bd50c05e3d94e7067bbf5205 | inhabitedtype/ocaml-aws | registerTargetWithMaintenanceWindow.ml | open Types
open Aws
type input = RegisterTargetWithMaintenanceWindowRequest.t
type output = RegisterTargetWithMaintenanceWindowResult.t
type error = Errors_internal.t
let service = "ssm"
let signature_version = Request.V4
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string (... | null | https://raw.githubusercontent.com/inhabitedtype/ocaml-aws/3bc554af7ae7ef9e2dcea44a1b72c9e687435fa9/libraries/ssm/lib/registerTargetWithMaintenanceWindow.ml | ocaml | open Types
open Aws
type input = RegisterTargetWithMaintenanceWindowRequest.t
type output = RegisterTargetWithMaintenanceWindowResult.t
type error = Errors_internal.t
let service = "ssm"
let signature_version = Request.V4
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string (... | |
af3b131aed4943d283d4551f263e5228689db57fb8e05ba9847b97147d331266 | int-index/caps | TestExamples.hs | # LANGUAGE DataKinds , TypeFamilies , RankNTypes , UndecidableInstances ,
MultiParamTypeClasses , FlexibleInstances , TypeApplications ,
AllowAmbiguousTypes , ScopedTypeVariables , TemplateHaskell #
MultiParamTypeClasses, FlexibleInstances, TypeApplications,
Allow... | null | https://raw.githubusercontent.com/int-index/caps/37ab7699570002ff92529cf92c8ca01d5419bb7b/test/TestExamples.hs | haskell | # OPTIONS -ddump-splices #
------ Effect declarations ----------
------ Effect implementations ----------
recursive use of capabilities!
------ Test implementations ----------
try commenting out this line,
you get a nice error message
try uncommenting this line ,
you get a nice error message
will have log output
... | # LANGUAGE DataKinds , TypeFamilies , RankNTypes , UndecidableInstances ,
MultiParamTypeClasses , FlexibleInstances , TypeApplications ,
AllowAmbiguousTypes , ScopedTypeVariables , TemplateHaskell #
MultiParamTypeClasses, FlexibleInstances, TypeApplications,
Allow... |
6e2f2798bf1eb421568eb317ca233769f12a76bc57bdd99a00f2c1c556437182 | microsoft/SLAyer | Analysis.mli | Copyright ( c ) Microsoft Corporation . All rights reserved .
(** Link the abstract domain and analysis algorithm together *)
(**/**)
open Program
open SymbolicHeap
open Interproc_sig
(**/**)
module SymbolicHeapsDomain : (INTRAPROC_DOMAIN with type t = XSH.t option)
module Pair : (module type of Interproc.Pair... | null | https://raw.githubusercontent.com/microsoft/SLAyer/6f46f6999c18f415bc368b43b5ba3eb54f0b1c04/src/Analysis.mli | ocaml | * Link the abstract domain and analysis algorithm together
*/*
*/*
Analyze
Query analysis result | Copyright ( c ) Microsoft Corporation . All rights reserved .
open Program
open SymbolicHeap
open Interproc_sig
module SymbolicHeapsDomain : (INTRAPROC_DOMAIN with type t = XSH.t option)
module Pair : (module type of Interproc.Pair(SymbolicHeapsDomain))
module InterprocDomain : (module type of AbstractTransit... |
c6c1dae1fe2bf43aeeb844ff99549696cff651a4606886ca2ab2314a26b08ad0 | mirage/ocaml-dkim | dkim_field.ml | let computation = Dkim.remove_signature_of_raw_dkim
let v str =
let _, v = Unstrctrd.safely_decode str in
v
let rem str =
let res = Dkim.remove_signature_of_raw_dkim (v str) in
Unstrctrd.to_utf_8_string res
let test_0 =
Alcotest.test_case "b=sig;" `Quick @@ fun () ->
Alcotest.(check string) "" (rem "b=si... | null | https://raw.githubusercontent.com/mirage/ocaml-dkim/5712202045b6e1b212787187a9376c397b1dd6ca/test/dkim_field.ml | ocaml | let computation = Dkim.remove_signature_of_raw_dkim
let v str =
let _, v = Unstrctrd.safely_decode str in
v
let rem str =
let res = Dkim.remove_signature_of_raw_dkim (v str) in
Unstrctrd.to_utf_8_string res
let test_0 =
Alcotest.test_case "b=sig;" `Quick @@ fun () ->
Alcotest.(check string) "" (rem "b=si... | |
389d10ea70b9fae3ca16f2cf5e8a69e48103ac92e11b05285a88e4e86f9d60bc | haskell-rewriting/term-rewriting | Parse.hs | -- This file is part of the 'term-rewriting' library. It is licensed
under an MIT license . See the accompanying ' LICENSE ' file for details .
--
Authors :
# LANGUAGE FlexibleContexts #
module Data.Rewriting.Utils.Parse (
lex,
par,
ident
) where
import Control.Monad
import Prelude hiding (lex)
impo... | null | https://raw.githubusercontent.com/haskell-rewriting/term-rewriting/d01ee419f9fd3c2011d37b6417326a9373d5ee9c/src/Data/Rewriting/Utils/Parse.hs | haskell | This file is part of the 'term-rewriting' library. It is licensed
| @lex p@ is similar to @p@ but also consumes trailing white space.
containing elements of @taboo@. | under an MIT license . See the accompanying ' LICENSE ' file for details .
Authors :
# LANGUAGE FlexibleContexts #
module Data.Rewriting.Utils.Parse (
lex,
par,
ident
) where
import Control.Monad
import Prelude hiding (lex)
import Text.Parsec
import Data.Char (isSpace)
lex :: Stream s m Char => Par... |
e5530f4bbf90fee1c7b2c1e98f466350be768f98f016c30e746dcb4a3fdf64bb | haskell-mafia/boris | Git.hs | # LANGUAGE NoImplicitPrelude #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE TemplateHaskell #
# OPTIONS_GHC -fno - warn - missing - signatures #
module Test.IO.Boris.Service.Git where
import Boris.Core.Data
import Boris.Service.Workspace
import qualified Boris.Service.Git as Git
import qualified ... | null | https://raw.githubusercontent.com/haskell-mafia/boris/fb670071600e8b2d8dbb9191fcf6bf8488f83f5a/boris-service/test/Test/IO/Boris/Service/Git.hs | haskell | # LANGUAGE OverloadedStrings #
A good boris.toml file
A broken boris.toml file
| # LANGUAGE NoImplicitPrelude #
# LANGUAGE TemplateHaskell #
# OPTIONS_GHC -fno - warn - missing - signatures #
module Test.IO.Boris.Service.Git where
import Boris.Core.Data
import Boris.Service.Workspace
import qualified Boris.Service.Git as Git
import qualified Data.Conduit.Binary as CB
import qu... |
e7a09ad6580b87a8e9a7c4ecd844617e7f6d794b22339990d6f60ccdd2b96e78 | vale1410/bule | Print.mli | val bits : int -> string
val bool : bool -> string
val int : int -> string
val float : float -> string
val string : string -> string
val couple' : string -> string -> string -> ('a -> string) -> ('b -> string) -> ('a * 'b) -> string
val couple : ('a -> string) -> ('b -> string) -> ('a * 'b) -> string
val option : ('a -... | null | https://raw.githubusercontent.com/vale1410/bule/7bfb2ce2cf7273f01ea550b1ba783c373fd18ec4/src/lib/Print.mli | ocaml | val bits : int -> string
val bool : bool -> string
val int : int -> string
val float : float -> string
val string : string -> string
val couple' : string -> string -> string -> ('a -> string) -> ('b -> string) -> ('a * 'b) -> string
val couple : ('a -> string) -> ('b -> string) -> ('a * 'b) -> string
val option : ('a -... | |
d610b6b4bda90de583de45dc376620f4957b8cbf5ffc9b0a8b16ec30c0883bf9 | chapmanb/bcbio.variation | util.clj | (ns bcbio.variation.filter.util
"Provide useful utilities dealing with filtering of variants"
(:import [htsjdk.variant.variantcontext
VariantContextBuilder])
(:require [bcbio.run.fsp :as fsp]
[bcbio.run.itx :as itx]
[bcbio.variation.variantcontext :as gvc]))
(defn remove-cur-filters... | null | https://raw.githubusercontent.com/chapmanb/bcbio.variation/c48834a6819e63dcccb5bc51540c7e19b212a019/src/bcbio/variation/filter/util.clj | clojure | (ns bcbio.variation.filter.util
"Provide useful utilities dealing with filtering of variants"
(:import [htsjdk.variant.variantcontext
VariantContextBuilder])
(:require [bcbio.run.fsp :as fsp]
[bcbio.run.itx :as itx]
[bcbio.variation.variantcontext :as gvc]))
(defn remove-cur-filters... | |
61698e18e6acd6eead76f305976cdd0939a0e984a9e2fff5d7e1be5a715cb16f | sbcl/sbcl | float.lisp | floating point support for the Sparc
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 an... | null | https://raw.githubusercontent.com/sbcl/sbcl/1a983ef5865d083a32ee3f67b02bbcf15d041b48/src/compiler/sparc/float.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.
float move functions
temporarily modified but is restored if restore-offset is true.
temporarily modified but is restored if restore-offset i... | floating point support for the Sparc
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-VM")
(define-move-fun (load-single 1) (vop x y)
((single-stack) (... |
26adf4e06d96e8bbc398dc40b43b45c5edf4353a3bbd0f27ab7251cee80499dd | Rober-t/apxr_run | signal_aggregator.erl | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright ( C ) 2009 by , DXNN Research Group ,
%%%
%%%
%%% The original release of this source code was introduced and explained
in a book ( available for purchase on Amazon ) by :
%%%
Handbook of Neuroevolution Thro... | null | https://raw.githubusercontent.com/Rober-t/apxr_run/9c62ab028af7ff3768ffe3f27b8eef1799540f05/src/agent_mgr/signal_aggregator.erl | erlang |
The original release of this source code was introduced and explained
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 KI... | Copyright ( C ) 2009 by , DXNN Research Group ,
in a book ( available for purchase on Amazon ) by :
Handbook of Neuroevolution Through Erlang . Springer 2012 ,
print ISBN : 978 - 1 - 4614 - 4462 - 6 ebook ISBN : 978 - 1 - 4614 - 4463 - 6 .
Licensed under the Apache License , Version 2.0 ( th... |
7fdc7c6179458d934b3226eb07ebd65bbc14d2b508716001842b8e2a74554861 | Deraen/sass4clj | util.clj | (ns sass4clj.util)
;;
;; Debugging
;; from boot.util
;;
(def ^:dynamic *verbosity* 1)
(defn- print*
[verbosity args]
(when (>= *verbosity* verbosity)
(binding [*out* *err*]
(print (if (seq (rest args))
(apply format args)
(first args)))
(flush))))
(defn dbug [& more... | null | https://raw.githubusercontent.com/Deraen/sass4clj/55c359471ccdc566591f3b38895d2e313f9d24d4/src/sass4clj/util.clj | clojure |
Debugging
from boot.util
| (ns sass4clj.util)
(def ^:dynamic *verbosity* 1)
(defn- print*
[verbosity args]
(when (>= *verbosity* verbosity)
(binding [*out* *err*]
(print (if (seq (rest args))
(apply format args)
(first args)))
(flush))))
(defn dbug [& more] (print* 2 more))
(defn info [& more... |
7eb081ced25f21b1f8752d553faef03c7e0826300e99bf1ca701db23c30dd606 | reborg/clojure-essential-reference | 5.clj | (- 1.03 0.42)
0.6100000000000001 ; < 1 > | null | https://raw.githubusercontent.com/reborg/clojure-essential-reference/c37fa19d45dd52b2995a191e3e96f0ebdc3f6d69/OperationsonNumbers/with-precision/5.clj | clojure | < 1 > | (- 1.03 0.42) |
dfb7644e506f0d70e5cf114318168478a687a46a6d779c56d7e992b7e0f98372 | ChicagoBoss/ChicagoBoss | boss_model_manager_boss_db.erl | %%-------------------------------------------------------------------
@author
ChicagoBoss Team and contributors , see file in root directory
%% @end
This file is part of ChicagoBoss project .
See file in root directory
%% for license information, see LICENSE file in root directory
%% @end
%... | null | https://raw.githubusercontent.com/ChicagoBoss/ChicagoBoss/113bac70c2f835c1e99c757170fd38abf09f5da2/src/boss/model_manager_adapters/boss_model_manager_boss_db.erl | erlang | -------------------------------------------------------------------
@end
for license information, see LICENSE file in root directory
@end
@doc
-------------------------------------------------------------------
, from_json/1 | @author
ChicagoBoss Team and contributors , see file in root directory
This file is part of ChicagoBoss project .
See file in root directory
-module(boss_model_manager_boss_db).
-behaviour(boss_model_manager_adapter).
-export([
start/0,
stop/0,
compile/2,
edoc_module/2,
is_model_inst... |
25f4c656ee52d6f001b3686ebd1d28a7d88f2d220fa108d23a51a00b3853d337 | ygrek/mldonkey | gui_installer.ml | Copyright 2001 , 2002 b8_bavard , b8_fee_carabine ,
This file is part of mldonkey .
mldonkey is free software ; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 2 of the License , or
... | null | https://raw.githubusercontent.com/ygrek/mldonkey/333868a12bb6cd25fed49391dd2c3a767741cb51/src/gtk2/gui/gui_installer.ml | ocaml | What we want ?
* In which directory should the .ini files be stored ?
* Which directories should the temp/ and incoming/ be ?
* Which other directories are shared ?
* Which connection link is used ?
* Security option ?
All these replies should be stored in a basic file ~/.mldonkey_install.ini
that should also be lo... | Copyright 2001 , 2002 b8_bavard , b8_fee_carabine ,
This file is part of mldonkey .
mldonkey is free software ; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 2 of the License , or
... |
577a2eeb19148f08d667f7f640ea284a3deaaf0b224ca1462a8901ac32f89832 | anurudhp/CPHaskell | b.hs | import Control.Arrow ((>>>))
import Data.Bool (bool)
main :: IO ()
main = interact $
lines
>>> drop 1
>>> map (words >>> map read >>> solve >>> bool "No" "Yes")
>>> unlines
solve :: [Integer] -> Bool
solve [n, 1, b] = b == 1 || n `mod` b == 1
solve [n, a, b] = any ((== 0) . (`mod` b) . (n -)) $ takeWhil... | null | https://raw.githubusercontent.com/anurudhp/CPHaskell/a5f23f61b144b83488c5a721274db6e322b005dd/contests/codeforces/1542/b.hs | haskell | import Control.Arrow ((>>>))
import Data.Bool (bool)
main :: IO ()
main = interact $
lines
>>> drop 1
>>> map (words >>> map read >>> solve >>> bool "No" "Yes")
>>> unlines
solve :: [Integer] -> Bool
solve [n, 1, b] = b == 1 || n `mod` b == 1
solve [n, a, b] = any ((== 0) . (`mod` b) . (n -)) $ takeWhil... | |
4a7f4a423f166d33c53e5ca49b4dc89fd52d3fb2a5adfd87d80b96be56ed98ac | mariari/Misc-ML-Scripts | webtest.hs | {-# LANGUAGE OverloadedStrings #-}
import Network.HTTP.Client as C
import Control.Monad.Catch
import Network.HTTP.Simple
import Data.ByteString.Lazy as L
import Control.Monad.IO.Class
import Data.ByteString.Lazy.Search as S
import Control.Monad
x :: MonadThrow m => m Request
x = (C.parseRequest "")
getInfo :: (Mo... | null | https://raw.githubusercontent.com/mariari/Misc-ML-Scripts/d18aecf539c2d2ccf7ba9eb796f90e3ca809f5bf/Haskell/webtest.hs | haskell | # LANGUAGE OverloadedStrings #
y <- responseBody <$> getInfo
let (x,z) = S.breakOn "<title>" y
let (i,_) = (S.breakOn "</title>" z) |
import Network.HTTP.Client as C
import Control.Monad.Catch
import Network.HTTP.Simple
import Data.ByteString.Lazy as L
import Control.Monad.IO.Class
import Data.ByteString.Lazy.Search as S
import Control.Monad
x :: MonadThrow m => m Request
x = (C.parseRequest "")
getInfo :: (MonadIO m, MonadThrow m) => m (Respon... |
2f1d5aaf60a6c1ccec264ddad16c005d53c033708c1115ab0523f47af574f659 | gr0uch/parenscript-builder | test-macros.lisp | ;; Condensed form of console.log.
(defmacro console-log (&body forms)
`(chain console (log ,@forms)))
| null | https://raw.githubusercontent.com/gr0uch/parenscript-builder/8557d47f8a5eaaed0faf859c3e334cc19f6916cb/test/test-macros.lisp | lisp | Condensed form of console.log. | (defmacro console-log (&body forms)
`(chain console (log ,@forms)))
|
21344a23784481ea477a738ff3d8a3c8cb34b52d8315c3c81c09ed4d0628c7b2 | geophf/1HaskellADay | Exercise.hs | module Y2018.M12.D19.Exercise where
-
So yesterday , you were given a list of positive and negative and told
to solve the sum - distance from the origin . Good . You 've got it !
Today , you 're given a list of numbers :
-
So yesterday, you were given a list of positive and negative numberd and told
to solve... | null | https://raw.githubusercontent.com/geophf/1HaskellADay/514792071226cd1e2ba7640af942667b85601006/exercises/HAD/Y2018/M12/D19/Exercise.hs | haskell | }
} | module Y2018.M12.D19.Exercise where
-
So yesterday , you were given a list of positive and negative and told
to solve the sum - distance from the origin . Good . You 've got it !
Today , you 're given a list of numbers :
-
So yesterday, you were given a list of positive and negative numberd and told
to solve... |
e84b567d4c09d545c3dd060636e29a393e0b773cb09e0bdc9ac62085d0675253 | erldb/erldb | erldb_compiler.erl | %%%-------------------------------------------------------------------
@author < > [ ]
( C ) 2013 - 2014 ,
%%% @doc
Simple compiler for erldb models
%%% @end
Created : 13 Dec 2013 by
%%%-------------------------------------------------------------------
-module(erldb_compiler).
-export([
comp... | null | https://raw.githubusercontent.com/erldb/erldb/d014c29ab5efa00c26847d637ce09be83b10cc19/src/erldb_compiler.erl | erlang | -------------------------------------------------------------------
@doc
@end
-------------------------------------------------------------------
--------------------------------------------------------------------
@doc Compiles a file
@end
--------------------------------------------------------------------
------... | @author < > [ ]
( C ) 2013 - 2014 ,
Simple compiler for erldb models
Created : 13 Dec 2013 by
-module(erldb_compiler).
-export([
compile/1,
compile/2
]).
-record(model_state, {
name = "" :: string(),
backends = [] :: [tuple()],
fields = [] :: [t... |
09be74507b129f19858d826066be7c076007b345848df2e7b211d839e2f44f85 | rill-event-sourcing/rill | psql.clj | (ns rill.event-store.psql
(:require [clojure.core.async :refer [thread <!! >!! chan close!]]
[rill.event-store :refer [EventStore]]
[rill.event-stream :refer [all-events-stream-id]]
[clojure.java.jdbc :as sql]
[rill.message :as message]
[taoensso.nippy :as n... | null | https://raw.githubusercontent.com/rill-event-sourcing/rill/711d08e52bd331cdc2255199069b2d0aca69e8b0/src/rill/event_store/psql.clj | clojure | make sure we return nil when no messages are found
arbitrary
db thread
deserializer thread
lazy-seq
catching up case
listening after catching up and aggregate case
generate our own stream_order
conflict - there is already an event with the given stream_order | (ns rill.event-store.psql
(:require [clojure.core.async :refer [thread <!! >!! chan close!]]
[rill.event-store :refer [EventStore]]
[rill.event-stream :refer [all-events-stream-id]]
[clojure.java.jdbc :as sql]
[rill.message :as message]
[taoensso.nippy :as n... |
93ba56e345b90cdd7b27709acd645660346159abf526779f9c1ec66cc43ffb36 | ibabushkin/hapstone | Default.hs | module Internal.Arm.Default where
import Foreign
import Foreign.C.Types
import Hapstone.Internal.Arm
import Test.QuickCheck
import Test.QuickCheck.Instances
-- generators for our datatypes
instance Arbitrary ArmShifter where
arbitrary = elements [minBound..maxBound]
instance Arbitrary ArmConditionCode where
... | null | https://raw.githubusercontent.com/ibabushkin/hapstone/4ac11f0a1e23e5a0f23351149c70bd541ddf5344/test/Internal/Arm/Default.hs | haskell | generators for our datatypes | module Internal.Arm.Default where
import Foreign
import Foreign.C.Types
import Hapstone.Internal.Arm
import Test.QuickCheck
import Test.QuickCheck.Instances
instance Arbitrary ArmShifter where
arbitrary = elements [minBound..maxBound]
instance Arbitrary ArmConditionCode where
arbitrary = elements [minBound... |
636d0c9cb338a692e25177016be8b48b8319b12eb373d59035e17fd1b148d187 | sbcl/sbcl | interface.pure.lisp | ;;;; tests for problems in the interface presented to the user/programmer
This software is part of the SBCL system . See the README file for
;;;; more information.
;;;;
While most of SBCL is derived from the CMU CL system , the test
;;;; files (like this one) were written from scratch after the fork
from CMU CL ... | null | https://raw.githubusercontent.com/sbcl/sbcl/4956547f38432d33783e1baec6c771a78d9d7d5c/tests/interface.pure.lisp | lisp | tests for problems in the interface presented to the user/programmer
more information.
files (like this one) were written from scratch after the fork
This software is in the public domain and is provided with
absolutely no warranty. See the COPYING and CREDITS files for
more information.
properties of symbols,... |
This software is part of the SBCL system . See the README file for
While most of SBCL is derived from the CMU CL system , the test
from CMU CL .
(enable-test-parallelism)
(with-test (:name (documentation :cl) :skipped-on (:not :sb-doc))
(let ((n 0))
(do-symbols (s 'cl)
(if (fboundp s)
... |
a9640ddfe4824325dd2347d3d60faa21ebeb50d52d84ca71eeddfe2509dae7fd | amnh/phylocaml | annotate.ml | module type Annotate =
sig
type s
type m
type 'a t
val annotate : m -> s -> s -> s t * s t
end
module type Align =
sig
type t
type m
type c
val distance : m -> t -> t -> c
val median : m -> t -> t -> c * t
end
| null | https://raw.githubusercontent.com/amnh/phylocaml/86aebc4f2664752668b16707214b3cad099434c0/lib/annotate.ml | ocaml | module type Annotate =
sig
type s
type m
type 'a t
val annotate : m -> s -> s -> s t * s t
end
module type Align =
sig
type t
type m
type c
val distance : m -> t -> t -> c
val median : m -> t -> t -> c * t
end
| |
93eafaa185889fdd0756facac2827d9756b05fe0c33b4f177fc645c7c8e5a06d | strint/sicpAns | 2005_cons_2a3b.scm | (define (cons23 n)
(let* ((a (get-a n))
(b (if (> a 0)
(get-b (/ n a))
(get-b n))))
(cons a b)))
(define (get-a n)
(define (a-iter n a)
(if (= 0 (remainder n 2))
(a-iter (/ n 2) (+ a 1))
a))
(a-iter n 0))
(define (get-b n)
(define (b-iter n b)
(if (< (/ ... | null | https://raw.githubusercontent.com/strint/sicpAns/efc4bdfaab7583117d42f2141d4b3b9e12792b79/2.1.3-3_DispatchMessagePassing/2005_cons_2a3b.scm | scheme | (define (cons23 n)
(let* ((a (get-a n))
(b (if (> a 0)
(get-b (/ n a))
(get-b n))))
(cons a b)))
(define (get-a n)
(define (a-iter n a)
(if (= 0 (remainder n 2))
(a-iter (/ n 2) (+ a 1))
a))
(a-iter n 0))
(define (get-b n)
(define (b-iter n b)
(if (< (/ ... | |
667db23b2fd9720e95d9e591401004459beffcae2e964d2fa5366ce56e10773b | manuel-serrano/bigloo | control.scm | ;*=====================================================================*/
* serrano / prgm / project / bigloo / / runtime / Ieee / control.scm * /
;* ------------------------------------------------------------- */
* Author : * /
* Creation : ... | null | https://raw.githubusercontent.com/manuel-serrano/bigloo/bd53a11ef760ee53a5e33ec01228b66bd5190124/runtime/Ieee/control.scm | scheme | *=====================================================================*/
* ------------------------------------------------------------- */
* ------------------------------------------------------------- */
*=====================================================================*/
*---------------------------... | * serrano / prgm / project / bigloo / / runtime / Ieee / control.scm * /
* Author : * /
* Creation : Fri Jan 20 17:48:44 1995 * /
* Last change : Thu Sep 16 17:42:58 2021 ( serrano ) * /
* 6.9 . Co... |
368d16b100d95f50c30415babe6bc9be6af575df986ea5bee5b5439974f08372 | den1k/vimsical | handlers.cljc | (ns vimsical.frontend.user.handlers
(:require
[re-frame.core :as re-frame]
[vimsical.subgraph :as sg]
[vimsical.frontend.util.subgraph :as util.sg]
[vimsical.remotes.backend.user.queries :as user.queries]
[medley.core :as md]
[vimsical.common.uuid :refer [uuid]]
[vimsical.user :as user])
(:refe... | null | https://raw.githubusercontent.com/den1k/vimsical/1e4a1f1297849b1121baf24bdb7a0c6ba3558954/src/frontend/vimsical/frontend/user/handlers.cljc | clojure |
* Me
We mosly ignore this because this would happened for every anon user when trying
to initialize an non-existing session
* Settings
| (ns vimsical.frontend.user.handlers
(:require
[re-frame.core :as re-frame]
[vimsical.subgraph :as sg]
[vimsical.frontend.util.subgraph :as util.sg]
[vimsical.remotes.backend.user.queries :as user.queries]
[medley.core :as md]
[vimsical.common.uuid :refer [uuid]]
[vimsical.user :as user])
(:refe... |
0740ddc107c6b6dcf028bbff6b4794ae1ad433f450958262a360204859785541 | nlamirault/climc | tools.lisp | -*- Mode : LISP ; Syntax : ANSI - Common - Lisp ; Base : 10 -*-
;;;; *************************************************************************
;;;; FILE IDENTIFICATION
;;;;
;;;; Name: tools.lisp
Purpose : Some tools
Programmer : < >
;;;;
This file , part of climc , is Copyright ( c ) 20... | null | https://raw.githubusercontent.com/nlamirault/climc/35a64a34d17c96708c14c08d1335352f1a4f96ee/src/tools.lisp | lisp | Syntax : ANSI - Common - Lisp ; Base : 10 -*-
*************************************************************************
FILE IDENTIFICATION
Name: tools.lisp
climc users are granted the rights to distribute and use this software
-license.php
***********************************************************... |
Purpose : Some tools
Programmer : < >
This file , part of climc , is Copyright ( c ) 2008 by
as governed by the terms of the MIT License :
(in-package :climc)
Hack based on iso - time from Hunchentoot
(defun iso-time (&optional (time (get-universal-time)))
"Returns the universal time ... |
93ec89b3546001dd6c760b6e7c107a007da9dd6abd8cf90d2de16da35ab29306 | clj-kondo/clj-kondo | main.clj | (ns clj-kondo.main
{:no-doc true}
(:gen-class)
(:require
[aaaa-this-has-to-be-first.because-patches]
[clj-kondo.core :as clj-kondo]
[clj-kondo.impl.core :as core-impl]
[clojure.string :as str
:refer [starts-with?]]
[pod.borkdude.clj-kondo :as pod]))
(set! *warn-on-reflection* true)
;;;; print... | null | https://raw.githubusercontent.com/clj-kondo/clj-kondo/787a8f75df65d82794c1cc8407d88a7b93a4c298/src/clj_kondo/main.clj | clojure | printing
parse command line options
deprecated
assoc nil value to indicate opt as explicitly added via cli args
deprecated
When running in musl-compiled static executable we lift execution of bb
inside a thread, so we have a larger than default stack size, set by an
argument to the linker. See
can't use cloju... | (ns clj-kondo.main
{:no-doc true}
(:gen-class)
(:require
[aaaa-this-has-to-be-first.because-patches]
[clj-kondo.core :as clj-kondo]
[clj-kondo.impl.core :as core-impl]
[clojure.string :as str
:refer [starts-with?]]
[pod.borkdude.clj-kondo :as pod]))
(set! *warn-on-reflection* true)
(defn- pr... |
ed3edf188353406b70a04262681c4fc53619e6773ab9767db6063bd8f6fbd5e3 | lexi-lambda/racket-multimethod | info.rkt | #lang info
(define scribblings
'(["multimethod.scrbl"]))
| null | https://raw.githubusercontent.com/lexi-lambda/racket-multimethod/8a0903ebaedd919971c382eeb785f05080c7a8d6/multimethod-doc/scribblings/info.rkt | racket | #lang info
(define scribblings
'(["multimethod.scrbl"]))
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.