_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
700d16a087c4602ef093033cf7edae021a8c17d98896fff3e940d14ad0705c02
homebaseio/homebase-react
todo.cljs
(ns homebase.dev.example.reagent.todo {:no-doc true} (:require [datascript.core :as d] [reagent.core :as r] [homebase.reagent :as hbr] [datalog-console.integrations.datascript :as datalog-console])) (def schema {:db/ident {:db/unique :db.unique/identity} :todo/project {:db/type :db.type/re...
null
https://raw.githubusercontent.com/homebaseio/homebase-react/ce29d41472e2a99cf6a39e4efb1717260bec6445/src/dev/homebase/dev/example/reagent/todo.cljs
clojure
Get all todos with names Get the id for :todo.filters Filter completed todos if not :todo.filter/show-completed? Filter by owner if :todo.filter/owner is not 0 Filter by project if :todo.filter/project is not 0 Also reset the filters to make sure the new todo shows up in the UI immediately
(ns homebase.dev.example.reagent.todo {:no-doc true} (:require [datascript.core :as d] [reagent.core :as r] [homebase.reagent :as hbr] [datalog-console.integrations.datascript :as datalog-console])) (def schema {:db/ident {:db/unique :db.unique/identity} :todo/project {:db/type :db.type/re...
81f1afdcd1070bb85fedd98176988f7e7aeb3d37e5f027fcad9a7453da44dd8e
elben/neblen
Tests.hs
module Neblen.Parser.Tests where import Test.Framework (Test, testGroup) import Test.Framework.Providers.HUnit (testCase) import Test.HUnit ((@?=)) import Control.Monad.Trans.State import Control.Monad.Trans.Except import qualified Data.Map.Strict as M import Neblen.Parser import Neblen.Data tests :: Test tests = t...
null
https://raw.githubusercontent.com/elben/neblen/3a586c212613cd5e731788605b4f8ae1e86ed9f5/tests/Neblen/Parser/Tests.hs
haskell
module Neblen.Parser.Tests where import Test.Framework (Test, testGroup) import Test.Framework.Providers.HUnit (testCase) import Test.HUnit ((@?=)) import Control.Monad.Trans.State import Control.Monad.Trans.Except import qualified Data.Map.Strict as M import Neblen.Parser import Neblen.Data tests :: Test tests = t...
bf6be5d91e3a9fa4fd4aee4106850befca099f9671203ab3fbd9b865bfb2bd32
8c6794b6/haskell-sc-scratch
Server.hs
{-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE GeneralizedNewtypeDeriving # | Module : $ Header$ CopyRight : ( c ) 8c6794b6 License : : Stability : unstable Portability : non - portable ( GHC concurrency ) Server to manage patterns . Writing server...
null
https://raw.githubusercontent.com/8c6794b6/haskell-sc-scratch/22de2199359fa56f256b544609cd6513b5e40f43/hsc3-lepton/src/lib/Sound/SC3/Lepton/Pattern/Server.hs
haskell
# LANGUAGE DeriveDataTypeable # * Types * Server actions ---------------------------------------------------------------------------- Command line wrapper utils | Wrapper to hold command line argument. | Default setting for command line argument. | Make initial env from command line argument. --------------------...
# LANGUAGE ScopedTypeVariables # # LANGUAGE GeneralizedNewtypeDeriving # | Module : $ Header$ CopyRight : ( c ) 8c6794b6 License : : Stability : unstable Portability : non - portable ( GHC concurrency ) Server to manage patterns . Writing server with using package . Communication...
553b2d507c5e947fc6a60f940e2a6184338396c000f57cfc87e9c4e25b3cec4c
ott-lang/ott
subrules_pp.mli
(**************************************************************************) (* Ott *) (* *) , Computer Laboratory , University of Cambridge , project , I...
null
https://raw.githubusercontent.com/ott-lang/ott/29ac9ef84967686da35b9b42608b3aec3539a689/src/subrules_pp.mli
ocaml
************************************************************************ Ott ...
, Computer Laboratory , University of Cambridge , project , INRIA Rocquencourt Copyright 2005 - 2010 1 . Redistributions of source code must retain the above copyright 2 . Redistributions in binary form must reproduce the ...
5fde1795a068d8bbcbd269fdb98b02956f213daab08d339b7793343c61488264
talex5/wayland-proxy-virtwl
trace.mli
module Client : Wayland.Server.TRACE module Host : Wayland.Client.TRACE val pp_status : Unix.process_status Fmt.t val cmdliner : (wayland_display:string -> unit Lwt.t) Cmdliner.Term.t
null
https://raw.githubusercontent.com/talex5/wayland-proxy-virtwl/12a4f03a22e3c48e9c4bc0fc2fd0c81bbd7ffe94/trace.mli
ocaml
module Client : Wayland.Server.TRACE module Host : Wayland.Client.TRACE val pp_status : Unix.process_status Fmt.t val cmdliner : (wayland_display:string -> unit Lwt.t) Cmdliner.Term.t
0f626f6092a5fdff07ddc7fad09a138bc67ea92b74b782daa9110bbf9ee1761d
mirage/ocaml-dns-forward
dns_forward_free_id.ml
* Copyright ( C ) 2016 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
null
https://raw.githubusercontent.com/mirage/ocaml-dns-forward/1b253cbf0e1c15b80facbb13ced762a0dfa99bdf/lib/dns_forward_free_id.ml
ocaml
track the ids in use to - avoid accidental re-use - limit the total number of simultaneous upstream requests used by in-progress requests bound on the number of in-progress requests generate unpredictable id [gen n] picks a value in the interval [0, n-1]. DNS transaction ids are between [0, 0xff...
* Copyright ( C ) 2016 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
572a49e851ac168b1bf0637e85d83fafae42fe68f8cca297d8746b89ff314c18
awslabs/s2n-bignum
for_hollight.ml
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved . * SPDX - License - Identifier : Apache-2.0 OR ISC * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 OR ISC *) (* =================================================================...
null
https://raw.githubusercontent.com/awslabs/s2n-bignum/824c15f908d7a343af1b2f378cfedd36e880bdde/common/for_hollight.ml
ocaml
========================================================================= ========================================================================= A drop in replacement for prove that uses the interactive tactic creation tools so that the goalstack is displayed if the proof is not complete. Like CHOOSE, but ...
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved . * SPDX - License - Identifier : Apache-2.0 OR ISC * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 OR ISC *) Additional utilities that could be part of HOL Light libraries . ...
deb25a7b88842e55e9242ac87c64a884228bb780392ac00b808e9f8ba9772551
iconnect/regex
Text.hs
# LANGUAGE NoImplicitPrelude # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # OPTIONS_GHC -fno - warn - orphans # # OPTIONS_GHC -fno - warn - duplicate - exports # # LANGUAGE CPP ...
null
https://raw.githubusercontent.com/iconnect/regex/68752790a8f75986b917b71cf0e8e22cd3a28a3d/Text/RE/TDFA/Text.hs
haskell
* Tutorial $tutorial * The 'Matches' and 'Match' Operators * The 'SearchReplace' Operators * The 'Matches' Type * The 'Match' Type $macros * The 'RE' Type * Options $options * Compiling and Escaping REs * The re Quasi Quoters $re $ed * IsRegex | find all the matches in the argument text; e.g., to count ...
# LANGUAGE NoImplicitPrelude # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # OPTIONS_GHC -fno - warn - orphans # # OPTIONS_GHC -fno - warn - duplicate - exports # # LANGUAGE CPP ...
e2890fd86c1b2e7800d41af966ddb4127fb3be72871ec02b958be4b00286e2a6
kupl/FixML
sub22.ml
type formula = TRUE | FALSE | NOT of formula | ANDALSO of formula * formula | ORELSE of formula * formula | IMPLY of formula * formula | LESS of expr * expr and expr = NUM of int | PLUS of expr * expr | MINUS of expr * expr;; let rec eval : formula -> bool = fun fml -> let rec calc...
null
https://raw.githubusercontent.com/kupl/FixML/0a032a733d68cd8ccc8b1034d2908cd43b241fce/benchmarks/formula/formula/submissions/sub22.ml
ocaml
type formula = TRUE | FALSE | NOT of formula | ANDALSO of formula * formula | ORELSE of formula * formula | IMPLY of formula * formula | LESS of expr * expr and expr = NUM of int | PLUS of expr * expr | MINUS of expr * expr;; let rec eval : formula -> bool = fun fml -> let rec calc...
4ca8e77ba36880012a5bd06955a0115dd47e97c2c64bfbeddc8a1a1dbc0018fa
hbr/albatross
tvars.mli
Copyright ( C ) < helmut dot brandl at gmx dot net > This file is distributed under the terms of the GNU General Public License version 2 ( GPLv2 ) as published by the Free Software Foundation . This file is distributed under the terms of the GNU General Public License version 2 (GPLv2) as publ...
null
https://raw.githubusercontent.com/hbr/albatross/8f28ef97951f92f30dc69cf94c0bbe20d64fba21/ocaml/alba1/tvars.mli
ocaml
* An environment for types It contains the number of type variables without a concepts, the concepts of type variables imported from global features and the names and concepts of all formal generices of the local environment Note: All concepts are valid in (i.e. relative to) the environment * An empt...
Copyright ( C ) < helmut dot brandl at gmx dot net > This file is distributed under the terms of the GNU General Public License version 2 ( GPLv2 ) as published by the Free Software Foundation . This file is distributed under the terms of the GNU General Public License version 2 (GPLv2) as publ...
1498fd28d95fe4a3f76befcb25c065511f647baaaa6a096f85b005b458b96535
mpickering/apply-refact
Uncurry.hs
f p = fst p `func` snd p f p = fst p .= snd p
null
https://raw.githubusercontent.com/mpickering/apply-refact/a4343ea0f4f9d8c2e16d6b16b9068f321ba4f272/tests/examples/Uncurry.hs
haskell
f p = fst p `func` snd p f p = fst p .= snd p
f3f97d4be30cec5bb29dda8c35cc1a8d8f4a918d39aae74c1f3c815e0bd0771f
michaelmelanson/cminus-compiler
Nameable.hs
module Compiler.TypeChecking.Nameable where import Compiler.Syntax class Nameable a where nameOf :: a -> String instance Nameable a => Nameable (Positioned a) where nameOf (Positioned _ x) = nameOf x nameOf (AnyPosition x) = nameOf x instance Nameable Variable where ...
null
https://raw.githubusercontent.com/michaelmelanson/cminus-compiler/667d760d74fbb239335f1a5266006cf3baca4959/Compiler/TypeChecking/Nameable.hs
haskell
module Compiler.TypeChecking.Nameable where import Compiler.Syntax class Nameable a where nameOf :: a -> String instance Nameable a => Nameable (Positioned a) where nameOf (Positioned _ x) = nameOf x nameOf (AnyPosition x) = nameOf x instance Nameable Variable where ...
ffcb3630ac9a7fe63ea668bc2538ae4b75b1ea2f1a07b27ad64355d2a3dc5f2f
GaloisInc/haskell-tor
RouterDesc.hs
-- |Structures and rules for describing routers. module Tor.RouterDesc( RouterDesc(..) , blankRouterDesc , NodeFamily(..) , ExitRule(..) , AddrSpec(..) , PortSpec(..) ) where import Crypto.PubKey.Curve25519 as Curve import Crypto.PubKey.RSA as RSA import Data.ByteStr...
null
https://raw.githubusercontent.com/GaloisInc/haskell-tor/e5bfe82f63722292df5634686195f85e3a7857b2/src/Tor/RouterDesc.hs
haskell
|Structures and rules for describing routers. |A blank router description, with most of the options initialized with standard "blank" values. |A family descriptor for a node. Either a nickname, or a digest referencing the family, or both. |A rule for accepting or rejecting traffic, usually specified by exit nodes...
module Tor.RouterDesc( RouterDesc(..) , blankRouterDesc , NodeFamily(..) , ExitRule(..) , AddrSpec(..) , PortSpec(..) ) where import Crypto.PubKey.Curve25519 as Curve import Crypto.PubKey.RSA as RSA import Data.ByteString(ByteString, empty) import Data.Hourglass impo...
bb0f1dc4ffde27f14a40e2cfa29577fca4d6c839b21eb103e998dacfeefd43aa
openweb-nl/kafka-graphql-examples
events.cljs
(ns nl.openweb.bank.events (:require [re-frame.core :as re-frame] [re-graph.core :as re-graph] [nl.openweb.bank.transactions :refer [get-dispatches]] [nl.openweb.bank.db :as db])) (re-frame/reg-event-db ::initialize-db (fn [_ _] db/default-db)) (re-frame/reg-event-db ::...
null
https://raw.githubusercontent.com/openweb-nl/kafka-graphql-examples/a404a265b5b0f13968a24d00c6494981063937fe/frontend/src/cljs/nl/openweb/bank/events.cljs
clojure
(ns nl.openweb.bank.events (:require [re-frame.core :as re-frame] [re-graph.core :as re-graph] [nl.openweb.bank.transactions :refer [get-dispatches]] [nl.openweb.bank.db :as db])) (re-frame/reg-event-db ::initialize-db (fn [_ _] db/default-db)) (re-frame/reg-event-db ::...
c8fb7c44eafcb8f12834a374a20636c8f7f4ac04a4e6f2afbfa2684e22d44f48
archaelus/tsung
ts_client.erl
This code was developped by IDEALX ( / ) and %%% contributors (their names can be found in the CONTRIBUTORS file). Copyright ( C ) 2000 - 2001 IDEALX %%% %%% This program 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 S...
null
https://raw.githubusercontent.com/archaelus/tsung/b4ea0419c6902d8bb63795200964d25b19e46532/src/tsung/ts_client.erl
erlang
contributors (their names can be found in the CONTRIBUTORS file). This program 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 implied warranty of MERCHANT...
This code was developped by IDEALX ( / ) and Copyright ( C ) 2000 - 2001 IDEALX it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or You should have received a copy of the GNU General Public License Foundation , Inc. ,...
3b69c3159a872030e00db66dbe426fb03d19300545f32228aa432577b2ff74bc
input-output-hk/offchain-metadata-tools
Postgres.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE IncoherentInstances # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE QuasiQuotes # # LANGUAGE RecordWildCards # # LANGU...
null
https://raw.githubusercontent.com/input-output-hk/offchain-metadata-tools/794f08cedbf555e9d207bccc45c08abbcf98add9/metadata-store-postgres/src/Cardano/Metadata/Store/Postgres.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE GADTs # # LANGUAGE OverloadedStrings # ^ Table name ^ Database connection pool ^ Database table name ^ Resulting key-value store ^ Database connection pool ^ Database table name
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE IncoherentInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE QuasiQuotes # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # module C...
50e4aa269055cb7508ceb86eb054b5560778edeead664bed3e4b8b22ac90fd09
nuvla/ui
utils.cljs
(ns sixsq.nuvla.ui.dashboard.utils) (def type-apps "APPS") (def type-deployments "DEPLOYMENTS") (def type-nbs "NUVLAEDGES") (def type-creds "CREDENTIALS") (def target-apps {:resource "apps"}) (def target-deployments {:resource "deployments"}) (def target-nbs {:resource "edges"}) (def target-creds {:resource "credenti...
null
https://raw.githubusercontent.com/nuvla/ui/76cdc865d2c7c6b11a28b1317ab24efdc03e7682/code/src/cljs/sixsq/nuvla/ui/dashboard/utils.cljs
clojure
(ns sixsq.nuvla.ui.dashboard.utils) (def type-apps "APPS") (def type-deployments "DEPLOYMENTS") (def type-nbs "NUVLAEDGES") (def type-creds "CREDENTIALS") (def target-apps {:resource "apps"}) (def target-deployments {:resource "deployments"}) (def target-nbs {:resource "edges"}) (def target-creds {:resource "credenti...
e9ce5d71ed4a39b5622af88bb1e01191953fe0ca36aeebafb93d98dbf8fbb7b0
klutometis/aima
online-dfs-non-deterministic.scm
#!/usr/bin/env chicken-scheme ;; [[file:~/prg/scm/aima/aima.org::*4.11c][4\.11c:1]] (include "online-navigation.scm") (define (maybe-update-untried! untried state) (unless (hash-table-exists? untried state) (hash-table-set! untried state (list->stack state)))) (define (maybe-update-labels! labe...
null
https://raw.githubusercontent.com/klutometis/aima/df78e161f22ddb677dbf2fa819e5a4869be22f50/online-dfs-non-deterministic.scm
scheme
[[file:~/prg/scm/aima/aima.org::*4.11c][4\.11c:1]] We could probably set this as a state variable and avoid the lookup. (debug ;; (coordinate-time old-coordinate) ;; time delta-x state->state->[[action_0, p_0], ..., [action_n, p_n]] state->action->[[state_0, p_0], ..., [state_n, p_n]] (if previous-state ...
#!/usr/bin/env chicken-scheme (include "online-navigation.scm") (define (maybe-update-untried! untried state) (unless (hash-table-exists? untried state) (hash-table-set! untried state (list->stack state)))) (define (maybe-update-labels! labels state) (unless (hash-table-exists? labels state) ...
e2b7c9c470d8f3dde9ed32c03c907c738c9ae0702e8cfa8b4c00e2c94bc334e7
chetmurthy/pa_ppx
pa_deriving_make.ml
(* camlp5r *) (* pa_deriving_make.ml,v *) Copyright ( c ) INRIA 2007 - 2017 #load "q_MLast.cmo"; #load "pa_extfun.cmo"; open Asttools; open MLast; open Pa_ppx_utils ; open Pa_ppx_base ; open Pa_passthru ; open Ppxutil ; open Surveil ; open Pa_deriving_base ; value make_fname arg base = if base = "t" then "make" ...
null
https://raw.githubusercontent.com/chetmurthy/pa_ppx/7c662fcf4897c978ae8a5ea230af0e8b2fa5858b/pa_deriving.plugins/pa_deriving_make.ml
ocaml
camlp5r pa_deriving_make.ml,v
Copyright ( c ) INRIA 2007 - 2017 #load "q_MLast.cmo"; #load "pa_extfun.cmo"; open Asttools; open MLast; open Pa_ppx_utils ; open Pa_ppx_base ; open Pa_passthru ; open Ppxutil ; open Surveil ; open Pa_deriving_base ; value make_fname arg base = if base = "t" then "make" else Printf.sprintf "make_%s" base ; va...
186b2fb6f95d356c3cf9c11189be5174127f49b4c0febc7ad17dbf9ac6e334e1
TrustInSoft/tis-interpreter
Pcond.mli
Modified by TrustInSoft (**************************************************************************) (* *) This file is part of WP plug - in of Frama - C. (* ...
null
https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/plugins/wp/Pcond.mli
ocaml
************************************************************************ alternatives) ...
Modified by TrustInSoft This file is part of WP plug - in of Frama - C. Copyright ( C ) 2007 - 2015 CEA ( Commissariat a l'energie atomique et aux energies Lesser General Public License as published by the Free Soft...
298894d971d0191f16a309eb1f47b24c91af506b33f9ba84bf765c6c8a022161
raspasov/neversleep
serializer.clj
(ns neversleep-db.serializer (:require [neversleep-db.util :as util] [flatland.protobuf.core :as proto] [neversleep-db.constants :as constants]) (:import java.nio.ByteBuffer (java.util Arrays) (java.io ByteArrayOutputStream))) (defn node-pointer-to-typed-byte-array [u...
null
https://raw.githubusercontent.com/raspasov/neversleep/7fd968f4ab20fa6ef71e1049e3eec289ea6691e4/src/neversleep_db/serializer.clj
clojure
TCP blob partitioning determine last index _ (println last-part-idx) partition the byte array else, cut without adjusting
(ns neversleep-db.serializer (:require [neversleep-db.util :as util] [flatland.protobuf.core :as proto] [neversleep-db.constants :as constants]) (:import java.nio.ByteBuffer (java.util Arrays) (java.io ByteArrayOutputStream))) (defn node-pointer-to-typed-byte-array [u...
2ebf518e14343de1de4043210337d98568476f723a40b397cab5aa940a764eb9
hhucn/decide3
root.cljs
(ns decide.ui.root (:require [com.fulcrologic.fulcro-i18n.i18n :as i18n] [com.fulcrologic.fulcro.components :as comp :refer [defsc]] [com.fulcrologic.fulcro.dom :as dom] [com.fulcrologic.fulcro.mutations :refer [defmutation]] [com.fulcrologic.fulcro.react.hooks :as hooks] [com.fulcrologic.fulcro.rou...
null
https://raw.githubusercontent.com/hhucn/decide3/271b48572256284880ba744b76aa5e50504d8241/src/main/decide/ui/root.cljs
clojure
(ns decide.ui.root (:require [com.fulcrologic.fulcro-i18n.i18n :as i18n] [com.fulcrologic.fulcro.components :as comp :refer [defsc]] [com.fulcrologic.fulcro.dom :as dom] [com.fulcrologic.fulcro.mutations :refer [defmutation]] [com.fulcrologic.fulcro.react.hooks :as hooks] [com.fulcrologic.fulcro.rou...
bac0105ee621ba14dadbd882fd20287e372041bb9f10155e0046a5b6e5b501e0
pschachte/wybe
Options.hs
-- File : Options.hs Author : -- Purpose : Handle compiler options/switches Copyright : ( c ) 2012 . All rights reserved . License : Licensed under terms of the MIT license . See the file -- : LICENSE in the root directory of this project. -- --------------------------------------...
null
https://raw.githubusercontent.com/pschachte/wybe/a0c8ce80903468ac57318a066bb0e663efa050fa/src/Options.hs
haskell
File : Options.hs Purpose : Handle compiler options/switches : LICENSE in the root directory of this project. -------------------------------------------------------------- Compiler Options -------------------------------------------------------------- |The wybe compiler comm...
Author : Copyright : ( c ) 2012 . All rights reserved . License : Licensed under terms of the MIT license . See the file module Options (Options(..), LogSelection(..), OptFlag(..), optimisationEnabled, handleCmdline, ...
fe3e88864163ab188b257aba7376fb70ce790ca081dccc4ad1f2b15f3d6da09a
cedlemo/OCaml-GI-ctypes-bindings-generator
Tree_view_private.ml
open Ctypes open Foreign type t let t_typ : t structure typ = structure "Tree_view_private"
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Tree_view_private.ml
ocaml
open Ctypes open Foreign type t let t_typ : t structure typ = structure "Tree_view_private"
335e562be3c6c6bc31668b3b2aa64918e580e974233ac67b6942e174b7a99ba1
AkronCodeClub/edX-FP101x-Oct-2014
caesar.hs
import Data.Char let2int : : Int --let2int c = ord c - ord 'a' -- --int2let :: Int -> Char int2let n = chr ( ord ' a ' + n ) -- --shift :: Int -> Char -> Char --shift n c | isLower c = int2let ( ( let2int c + n ) ` mod ` 26 ) -- | otherwise = c -- --encode :: Int -> String -> String --encode n xs = [shift n x |...
null
https://raw.githubusercontent.com/AkronCodeClub/edX-FP101x-Oct-2014/7db691d795126ad912256fec29b5aa1817beb8c0/jerry_d/caesar.hs
haskell
let2int c = ord c - ord 'a' int2let :: Int -> Char shift :: Int -> Char -> Char shift n c | otherwise = c encode :: Int -> String -> String encode n xs = [shift n x | x <- xs]
import Data.Char let2int : : Int int2let n = chr ( ord ' a ' + n ) | isLower c = int2let ( ( let2int c + n ) ` mod ` 26 ) let2int :: Char -> Int let2int c = ord c - ord 'a' cap2int :: Char -> Int cap2int c = ord c - ord 'A' int2let :: Int -> Char int2let n = chr (ord 'a' + n) int2cap :: Int -> Char int2cap n...
7b1b54d6388f703d975a527b75b09b33506fccc6e902e509f875a1348c26fa0d
gtk2hs/gtk2hs
CarSim.hs
-- program: S.A.R.A.H. jam simulator author : -- e-mail: -- license: public domain module Main where import Control.Applicative import Prelude import Data.Maybe import Graphics.UI.Gtk import Graphics.Rendering.Cairo import Control.Monad import Data.IORef import Data.List import Data.Time import Data.Complex -...
null
https://raw.githubusercontent.com/gtk2hs/gtk2hs/0f90caa1dae319a0f4bbab76ed1a84f17c730adf/gtk/demo/carsim/CarSim.hs
haskell
program: S.A.R.A.H. jam simulator e-mail: license: public domain Constants A few conveniences Car list handling Double is its position in a circular road, represented by idea behind the simulation is that in a list of cars each one will try to keep a safe speed to avoid a crash in the event of a sudden brake...
author : module Main where import Control.Applicative import Prelude import Data.Maybe import Graphics.UI.Gtk import Graphics.Rendering.Cairo import Control.Monad import Data.IORef import Data.List import Data.Time import Data.Complex accelerator = 0.7*carSize :: Double brake = 10*accelerator:: Double carSize...
ff2b27a438a3e11d6e3f74863c38d9813de627ef544210586353d322921c7e2a
haskus/packages
Text.hs
-- | Wrap Data.Text -- We plan to replace it with Haskus . Text in the future module Haskus.Utils.Text ( module Data.Text -- * Conversions , bufferDecodeUtf8 , textEncodeUtf8 , stringEncodeUtf8 -- * Formatting , textFormat , F.Format , (F.%) , (F.%.) , module Formatting.Formatters ...
null
https://raw.githubusercontent.com/haskus/packages/40ea6101cea84e2c1466bc55cdb22bed92f642a2/haskus-utils-compat/src/lib/Haskus/Utils/Text.hs
haskell
| Wrap Data.Text * Conversions * Formatting * Parsing * Get/Put * IO | Decode Utf8 | Encode Text into Utf8 | Format a text (strict) | Parse an hexadecimal number | Put an UTF8 encoded text | Pull n bytes from the input, as a Buffer | Pull \0 terminal text | Show as Text
We plan to replace it with Haskus . Text in the future module Haskus.Utils.Text ( module Data.Text , bufferDecodeUtf8 , textEncodeUtf8 , stringEncodeUtf8 , textFormat , F.Format , (F.%) , (F.%.) , module Formatting.Formatters , textParseHexadecimal , putTextUtf8 , getTextUtf8 , ...
8c01179037a1d92751991e3d58cedc1eee1de8fa540501b07f6b0aa4876d61b2
ekmett/ad
Halley.hs
# LANGUAGE CPP # ----------------------------------------------------------------------------- -- | Copyright : ( c ) 2010 - 2021 -- License : BSD3 -- Maintainer : -- Stability : experimental Portability : GHC only -- Root finding using Halley 's rational method ( the second in the class of ...
null
https://raw.githubusercontent.com/ekmett/ad/85aee3c6b4b621bab24c4379a88da1b5f0494d97/src/Numeric/AD/Rank1/Halley.hs
haskell
--------------------------------------------------------------------------- | License : BSD3 Maintainer : Stability : experimental times continuously differentiable and converges cubically when progress can be made. --------------------------------------------------------------------------- $setup ...
# LANGUAGE CPP # Copyright : ( c ) 2010 - 2021 Portability : GHC only Root finding using Halley 's rational method ( the second in the class of Householder methods ) . Assumes the function is three module Numeric.AD.Rank1.Halley ( * Halley 's Method ( Tower AD ) findZero , findZeroNoEq , i...
19b49e8859649529027d6c820e2383ff8815060703e4861b9f22d0fb9b076ee2
Oblosys/proxima
ProxParser_Generated.hs
module ProxParser_Generated where import Prelude hiding (Word) import Common.CommonTypes hiding (Dirty (..)) import Presentation.PresLayerTypes hiding (Edge) import Presentation.PresLayerUtils import Presentation.PresentationParsing import Evaluation.DocumentEdit import DocumentEdit_Generated import Evaluation.DocType...
null
https://raw.githubusercontent.com/Oblosys/proxima/f154dff2ccb8afe00eeb325d9d06f5e2a5ee7589/dazzle-editor/src/ProxParser_Generated.hs
haskell
--- GENERATED PART STARTS HERE. DO NOT EDIT ON OR BEYOND THIS LINE ----- ------------------------------------------------------------------------ ------------------------------------------------------------------------ ------------------------------------------------------------------------ --------------------------...
module ProxParser_Generated where import Prelude hiding (Word) import Common.CommonTypes hiding (Dirty (..)) import Presentation.PresLayerTypes hiding (Edge) import Presentation.PresLayerUtils import Presentation.PresentationParsing import Evaluation.DocumentEdit import DocumentEdit_Generated import Evaluation.DocType...
f1df9264f8da1f4ea8b467d7d1eed7b8b196fe82d9ae1fc3d72351f9c411056d
fission-codes/fission
Family.hs
module Fission.Key.GenData.Family (GenData) where import qualified Crypto.PubKey.RSA as RSA import Data.Kind type family GenData cipher :: Type type instance GenData (RSA.PublicKey, RSA.PrivateKey) = ()
null
https://raw.githubusercontent.com/fission-codes/fission/11d14b729ccebfd69499a534445fb072ac3433a3/fission-core/library/Fission/Key/GenData/Family.hs
haskell
module Fission.Key.GenData.Family (GenData) where import qualified Crypto.PubKey.RSA as RSA import Data.Kind type family GenData cipher :: Type type instance GenData (RSA.PublicKey, RSA.PrivateKey) = ()
a17f9b172780fe1b15d88b86a1e4e805c6e382f1e0273a4e848fb3abd9d6225a
typelead/eta
tcfail147.hs
module Foo1 where -- Variant: ill-kinded. class XClass a where xFun :: a -> XData data XData = XCon XClass
null
https://raw.githubusercontent.com/typelead/eta/97ee2251bbc52294efbf60fa4342ce6f52c0d25c/tests/suite/typecheck/fail/tcfail147.hs
haskell
Variant: ill-kinded.
module Foo1 where class XClass a where xFun :: a -> XData data XData = XCon XClass
e28133f764f265730b2927837c6005f40ef0493645e3dfa21fc2b39119cb62f1
gsakkas/rite
2726.ml
let rec clone x n = if n < 0 then [] else (match n with | 0 -> [] | _ -> (clone x (n - 1)) @ [x]);; let padZero l1 l2 = let num1 = (List.length l2) - (List.length l1) in let num2 = (List.length l1) - (List.length l2) in (((clone 0 num1) @ l1), ((clone 0 num2) @ l2));; let rec removeZero l = match l wit...
null
https://raw.githubusercontent.com/gsakkas/rite/958a0ad2460e15734447bc07bd181f5d35956d3b/data/sp14_min/2726.ml
ocaml
let rec clone x n = if n < 0 then [] else (match n with | 0 -> [] | _ -> (clone x (n - 1)) @ [x]);; let padZero l1 l2 = let num1 = (List.length l2) - (List.length l1) in let num2 = (List.length l1) - (List.length l2) in (((clone 0 num1) @ l1), ((clone 0 num2) @ l2));; let rec removeZero l = match l wit...
0e5a4336c81340b92932413687a660e8cec9aa85254f2872eeb412d90d939210
dnadales/sandbox
Inheritance.hs
| OO in Haskell . -- -- Taken from -typed.com/blog/2018/03/oop-in-haskell/ module PwFix.Inheritance where import Data.Function (fix) data Counter = Counter { tick :: Counter , display :: Int } mkCounter :: (Int -> Counter) -> Int -> Counter mkCounter self n = Counter { tick = self (n ...
null
https://raw.githubusercontent.com/dnadales/sandbox/401c4f0fac5f8044fb6e2e443bacddce6f135b4b/pw-fix/src/PwFix/Inheritance.hs
haskell
Taken from -typed.com/blog/2018/03/oop-in-haskell/ Note that if Counter would be an instance of show and you'd try to show 'zero' the recursion will never end! Note that this will work as well, and in this case we're ticking twice each time 'tick' is called.
| OO in Haskell . module PwFix.Inheritance where import Data.Function (fix) data Counter = Counter { tick :: Counter , display :: Int } mkCounter :: (Int -> Counter) -> Int -> Counter mkCounter self n = Counter { tick = self (n + 1) , display = n } zero = fix mkCounter 0 thre...
2594d91aa1c48b718a9c8f1ec1faf4f0abf8247d2269dcfcf199ddfeedc31178
bennn/dissertation
modulegraph-adapted.rkt
#lang typed/racket/base (require require-typed-check) (require/typed/check "modulegraph.rkt" [#:struct modulegraph ( [project-name : String] [adjlist : (Listof (Listof String))])] [project-name (-> ModuleGraph String)] [from-tex (-> Path-String ModuleGraph)] [module-names (-> ModuleGraph (Listof Str...
null
https://raw.githubusercontent.com/bennn/dissertation/779bfe6f8fee19092849b7e2cfc476df33e9357b/dissertation/scrbl/jfp-2019/benchmarks/lnm/both/modulegraph-adapted.rkt
racket
#lang typed/racket/base (require require-typed-check) (require/typed/check "modulegraph.rkt" [#:struct modulegraph ( [project-name : String] [adjlist : (Listof (Listof String))])] [project-name (-> ModuleGraph String)] [from-tex (-> Path-String ModuleGraph)] [module-names (-> ModuleGraph (Listof Str...
1cdd31ea2e9e08b395c334ab1a1060e325e7b58f71d0e91cadff9f40ade9b9d3
falsetru/htdp
29.3.12.scm
(define (vector+ a b) (build-vector (vector-length a) (lambda (i) (+ (vector-ref a i) (vector-ref b i))))) (define (vector- a b) (build-vector (vector-length a) (lambda (i) (- (vector-ref a i) (vector-ref b i))))) (require rackunit) (require rackunit/text-ui) (define vector+--test...
null
https://raw.githubusercontent.com/falsetru/htdp/4cdad3b999f19b89ff4fa7561839cbcbaad274df/29/29.3.12.scm
scheme
(define (vector+ a b) (build-vector (vector-length a) (lambda (i) (+ (vector-ref a i) (vector-ref b i))))) (define (vector- a b) (build-vector (vector-length a) (lambda (i) (- (vector-ref a i) (vector-ref b i))))) (require rackunit) (require rackunit/text-ui) (define vector+--test...
8a855f4f5f0bde5908803ab0d7d76d0e90d562e9223055fd1e94daccaf9d83a0
mbj/stratosphere
ContentTransformationProperty.hs
module Stratosphere.S3ObjectLambda.AccessPoint.ContentTransformationProperty ( module Exports, ContentTransformationProperty(..), mkContentTransformationProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURC...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/s3objectlambda/gen/Stratosphere/S3ObjectLambda/AccessPoint/ContentTransformationProperty.hs
haskell
# SOURCE #
module Stratosphere.S3ObjectLambda.AccessPoint.ContentTransformationProperty ( module Exports, ContentTransformationProperty(..), mkContentTransformationProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosph...
4b86597227c933df3863141e5ea9f324c3647b718d41dac2a2aa4c0e951e162d
unnohideyuki/bunny
sample205.hs
main = print (a,b) where x@(a:b) = "xy"
null
https://raw.githubusercontent.com/unnohideyuki/bunny/501856ff48f14b252b674585f25a2bf3801cb185/compiler/test/samples/sample205.hs
haskell
main = print (a,b) where x@(a:b) = "xy"
94a399752f88c2bcc070a2fb1f0a02b5eaecc4e98c921585bbe0ad176f64f94d
soegaard/metapict
gradient-example.rkt
#lang racket (require metapict) (set-curve-pict-size 300 300) ; Center and corners in triangle. Polar coordinates (radius,degrees) (defv (O A B C) (values (pt 0 0) (pt@d 1 90) (pt@d 1 210) (pt@d 1 330))) Fill the three interior triangles using a ; gradient parallel with the outer edge. (with-window (window -1 1 -1 ...
null
https://raw.githubusercontent.com/soegaard/metapict/47ae265f73cbb92ff3e7bdd61e49f4af17597fdf/metapict/examples/gradient-example.rkt
racket
Center and corners in triangle. Polar coordinates (radius,degrees) gradient parallel with the outer edge. at the corner. The direction is perpendicular to the side.
#lang racket (require metapict) (set-curve-pict-size 300 300) (defv (O A B C) (values (pt 0 0) (pt@d 1 90) (pt@d 1 210) (pt@d 1 330))) Fill the three interior triangles using a (with-window (window -1 1 -1 1) (def (tri P Q . colors) (brushgradient (linear-gradient P Q colors) (fill (curve P -- Q -- O -...
6f4606e124308424d6a9c1a98815d7d28522326b60cd10fdc6e501fa329cee69
haskell-graphql/graphql-api
Main.hs
module Main (main) where import Protolude import Criterion.Main (bgroup, defaultMain) import qualified Validation main :: IO () main = do defaultMain [ bgroup "GraphQL API" Validation.benchmarks ]
null
https://raw.githubusercontent.com/haskell-graphql/graphql-api/8ced344485cd638cee50eeb6b653baecea359406/benchmarks/Main.hs
haskell
module Main (main) where import Protolude import Criterion.Main (bgroup, defaultMain) import qualified Validation main :: IO () main = do defaultMain [ bgroup "GraphQL API" Validation.benchmarks ]
faeac29dc3e662d21450ed4a47af998e56880543f5f0046f2ebe23f99cbd9125
joshuamiller/map-todo-demo
main.cljs
(ns ^:figwheel-no-load env.ios.main (:require [reagent.core :as r] [re-frame.core :refer [clear-subscription-cache!]] [map-todo-demo.ios.core :as core] [figwheel.client :as figwheel :include-macros true])) (enable-console-print!) (def cnt (r/atom 0)) (defn reloader [] @cnt [cor...
null
https://raw.githubusercontent.com/joshuamiller/map-todo-demo/24cfc555357401f079b709891f2d53272f88b5b2/env/dev/env/ios/main.cljs
clojure
(ns ^:figwheel-no-load env.ios.main (:require [reagent.core :as r] [re-frame.core :refer [clear-subscription-cache!]] [map-todo-demo.ios.core :as core] [figwheel.client :as figwheel :include-macros true])) (enable-console-print!) (def cnt (r/atom 0)) (defn reloader [] @cnt [cor...
112ab165dbcde3ffe87ec100bed0158dbec33b5ca8ead6b99977474708bad14c
timbertson/opam2nix
extract.mli
val main : 'a -> 'b -> unit
null
https://raw.githubusercontent.com/timbertson/opam2nix/36b7627a8409f28aae295f9a0f8a9a8d143a0f14/src/extract.mli
ocaml
val main : 'a -> 'b -> unit
5da4f25207bc640622c06b0de634c054f8be7dc893c1b21af437709aaeaf7b1c
realworldocaml/book
ppx_compare_expander.ml
(* Generated code should depend on the environment in scope as little as possible. E.g. rather than [foo = []] do [match foo with [] ->], to eliminate the use of [=]. It is especially important to not use polymorphic comparisons, since we are moving more and more to code that doesn't have them in scope. *) ...
null
https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/ppx_compare/expander/ppx_compare_expander.ml
ocaml
Generated code should depend on the environment in scope as little as possible. E.g. rather than [foo = []] do [match foo with [] ->], to eliminate the use of [=]. It is especially important to not use polymorphic comparisons, since we are moving more and more to code that doesn't have them in scope. Note:...
open Base open Ppxlib open Ast_builder.Default include Ppx_compare_expander_intf type kind = Compare | Equal module type Params = sig val name : string val kind : kind val chain : expression -> expression -> expression val const : loc:Location.t -> Ordering.t -> expression val result_type : loc:Location...
ca6ca6dde6b923bc4d591ab814bfcd8a0f757d77d1a1e3798f47e2f0fabc77e8
tjammer/schmu
monomorph_tree.ml
open Cleaned_types module Vars = Map.Make (String) module Iset = Set.Make (Int) module Apptbl = Hashtbl type expr = | Mvar of string * var_kind | Mconst of const | Mbop of Ast.bop * monod_tree * monod_tree | Munop of Ast.unop * monod_tree | Mif of ifexpr | Mlet of string * monod_tree * global_name * int op...
null
https://raw.githubusercontent.com/tjammer/schmu/ee0b71a4b8259b014237b9821e0e6e6a71123333/lib/monomorph_tree.ml
ocaml
call name Marks an expression where an if is the last piece which returns a record. Needed for tail call elim Tracks all heap allocations in a scope. If a value with allocation is returned, they are marked for the parent scope. Otherwise freed We might have to substitute other types (in cl...
open Cleaned_types module Vars = Map.Make (String) module Iset = Set.Make (Int) module Apptbl = Hashtbl type expr = | Mvar of string * var_kind | Mconst of const | Mbop of Ast.bop * monod_tree * monod_tree | Munop of Ast.unop * monod_tree | Mif of ifexpr | Mlet of string * monod_tree * global_name * int op...
1648971574733eade19ca0a84252a955a879944beea0405b6bde76e2f97bbbec
lspector/gp
project.clj
(defproject gp "0.0.3" :description "Clojure code for a simple genetic programming system, for demonstration purposes." :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"]] :plugins [[lein-idefiles "0.2.0"] [lein-gorilla "0.4....
null
https://raw.githubusercontent.com/lspector/gp/fcd1c10518380cf8ee7862b80c4516e820c4f097/project.clj
clojure
(defproject gp "0.0.3" :description "Clojure code for a simple genetic programming system, for demonstration purposes." :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"]] :plugins [[lein-idefiles "0.2.0"] [lein-gorilla "0.4....
3b09863025e3018d9511803eea7ae723e66f436b6b2ae098a7fbeb2f74a3123c
input-output-hk/cardano-wallet
UTxO.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE OverloadedLabels # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # -- | Copyright : © 2018 - 2020 IOHK -- License: ...
null
https://raw.githubusercontent.com/input-output-hk/cardano-wallet/157a6d5f977f4600373596b7cfa9700138e8e140/lib/primitive/lib/Cardano/Wallet/Primitive/Types/UTxO.hs
haskell
# LANGUAGE RankNTypes # | License: Apache-2.0 This module provides the main 'UTxO' data type used by the wallet. * Queries * Transformations ------------------------------------------------------------------------------ UTxO ------------------------------------------------------------------------------ | Domai...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE OverloadedLabels # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # Copyright : © 2018 - 2020 IOHK module Cardano.Wallet.Primitive.Types.UTxO ...
76e61bae62629f429dd99555a198cc4ca7abfeed6df7b1cf54f03f128bef744c
sjl/coding-math
utils.lisp
(in-package #:coding-math.utils) (defmacro in-context (&body body) `(prog1 (push-matrix) (progn ,@body) (pop-matrix))) (defmacro scancode-case (scancode-form &rest pairs) (with-gensyms (scancode) `(let ((,scancode ,scancode-form)) (cond ,@(mapcar (lambda (pair) ...
null
https://raw.githubusercontent.com/sjl/coding-math/8e2add14d033da41cb3ac0aac63ad67edb4dd66a/src/utils.lisp
lisp
Handy drawing functions snagged from squirl Lisp macros are nice
(in-package #:coding-math.utils) (defmacro in-context (&body body) `(prog1 (push-matrix) (progn ,@body) (pop-matrix))) (defmacro scancode-case (scancode-form &rest pairs) (with-gensyms (scancode) `(let ((,scancode ,scancode-form)) (cond ,@(mapcar (lambda (pair) ...
91f37e49837ab03d0019619639bf90c986a40f6a26ca6211a37e1f1a84d816b0
tommay/pokemon-go
PlotPowerups.hs
module Main where import qualified Options.Applicative as O import Options.Applicative ((<|>), (<**>)) import Data.Semigroup ((<>)) import qualified Battle import qualified BattlerUtil import BattlerUtil (Battler, Level (Normal)) import qualified Epic import qualified IVs import qualifie...
null
https://raw.githubusercontent.com/tommay/pokemon-go/c7dac57c65fc60d4b3dbcd2530def2e6ba7f69fc/app/PlotPowerups.hs
haskell
multiple possible IV sets. Evolve all pokemon to their highest level and remember how much candy it took. evolve and do MyPokemon.setSpecies the moves will be checked for battleResults :: [[Log Battle]], where each [Battle] is the its powerups along with the required candy and stardust looks a ittle overkill bu...
module Main where import qualified Options.Applicative as O import Options.Applicative ((<|>), (<**>)) import Data.Semigroup ((<>)) import qualified Battle import qualified BattlerUtil import BattlerUtil (Battler, Level (Normal)) import qualified Epic import qualified IVs import qualifie...
6d6dada31b06293ff764dda329785e240739e4c276d4ae0a5795113a7b5228b0
ml4tp/tcoq
closure.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/ml4tp/tcoq/7a78c31df480fba721648f277ab0783229c8bece/checker/closure.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** Profiling [r_const=(true,cl)] mea...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Util open Pp open Names ...
055eea6cdf01a668ac8e24765211762942dcf606909786e43dfb1c7b8b81e33e
bennn/trivial
tailoring.rkt
#lang reprovide (only-in trivial/private/common [ttt-logger trivial-logger]) trivial/private/tailoring (for-syntax (only-in trivial/private/common φ φ? φ-init φ-ref φ-set φ<=? [make-abstract-domain make-property-domain] [abstract-domain? property-domain?] in-domain? ⊥ ...
null
https://raw.githubusercontent.com/bennn/trivial/c8fb9dcc377d1bf40ca167e34072bec90d2651e1/trivial/tailoring.rkt
racket
#lang reprovide (only-in trivial/private/common [ttt-logger trivial-logger]) trivial/private/tailoring (for-syntax (only-in trivial/private/common φ φ? φ-init φ-ref φ-set φ<=? [make-abstract-domain make-property-domain] [abstract-domain? property-domain?] in-domain? ⊥ ...
6fe3de85d46dd3d728b3b8566f51568d935ccd66575e8d8624a51ba4ee4c063c
gigasquid/hyperdimensional-playground
project.clj
(defproject hyperdimensional-playground "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [net.mikera/vectorz-clj "0.43.0"] [edu.stanford.nlp/stanf...
null
https://raw.githubusercontent.com/gigasquid/hyperdimensional-playground/ee83b9b38467f3ae60b82e70ec78db6563dbf17a/project.clj
clojure
(defproject hyperdimensional-playground "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [net.mikera/vectorz-clj "0.43.0"] [edu.stanford.nlp/stanf...
64e9d6ea621b8d8427a879d37e65c94c43b50e59841d8dfb83b73f60712bc9de
heshrobe/joshua-dist
nox-package.lisp
-*- package : COMMON - LISP - USER ; Syntax : Common - lisp ; Base : 10 -*- ;;; ;;;; nox-package.lisp ;;; ;;; ;;; ---------------------------------------------------------------------------- ;;; The contents of this file are subject to the NOKOS License Version 1.0a ;;; (the "License"); you may not use this f...
null
https://raw.githubusercontent.com/heshrobe/joshua-dist/f59f06303f9fabef3e945a920cf9a26d9c2fd55e/xml-parser/nox-package.lisp
lisp
Syntax : Common - lisp ; Base : 10 -*- nox-package.lisp ---------------------------------------------------------------------------- (the "License"); you may not use this file except in compliance with the License. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for...
The contents of this file are subject to the NOKOS License Version 1.0a Software distributed under the License is distributed on an " AS IS " The Original Software is WILBUR : Nokia RDF / XML Processor for CLOS Copyright ( c ) 2001 Nokia and others . All Rights Reserved . Portions Copyright (...
0b84dd9a34cfa80e4f3c1c88b70861133f6a69aea64a5479526e3ca9415d688a
haskell-tools/haskell-tools
CanCaptureVariable.hs
# LANGUAGE ScopedTypeVariables # module Refactor.GenerateTypeSignature.CanCaptureVariable where import qualified Data.Map as Map insertMany :: forall k v . (Ord k) => (v -> v -> v) -> [(k,v)] -> Map.Map k v -> Map.Map k v insertMany accf vs m = foldr f1 m vs where f1 (k,v) m = Map.insertWith accf k v m
null
https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/builtin-refactorings/examples/Refactor/GenerateTypeSignature/CanCaptureVariable.hs
haskell
# LANGUAGE ScopedTypeVariables # module Refactor.GenerateTypeSignature.CanCaptureVariable where import qualified Data.Map as Map insertMany :: forall k v . (Ord k) => (v -> v -> v) -> [(k,v)] -> Map.Map k v -> Map.Map k v insertMany accf vs m = foldr f1 m vs where f1 (k,v) m = Map.insertWith accf k v m
1e8806f83a672338ba34553658240a80acbe4401210130b2eb540af055b6a5b9
reactiveml/rml
rmltop_settings.ml
(***************************************************************) Reactive Asco (* *) (* *) Authors : ( ) ...
null
https://raw.githubusercontent.com/reactiveml/rml/d178d49ed923290fa7eee642541bdff3ee90b3b4/examples/reactive_asco/src/applications/rmltop_settings.ml
ocaml
************************************************************* ************************************************************* * Set the ...
Reactive Asco Authors : ( ) ( ) let () = Rmltop_directives.set_sampling 0.0
c798297ef45d413c06f5c11347979000ab4812ef0ca623f7b878bbcf1349ca21
quan-nh/adventofcode
day7.clj
(ns adventofcode.day7 (:require [clojure.string :as str])) (def instructions (atom [])) (def result (atom {})) (defn signal->wire [instruction] (let [[_ signal wire :as all] (re-find #"^(\d+) -> (\w+)$" instruction)] (when-not (nil? all) (swap! result assoc wire (read-string signal)) (swap! instru...
null
https://raw.githubusercontent.com/quan-nh/adventofcode/98542934a121d1df85dd271d28fedc1f25b98206/src/adventofcode2015/day7.clj
clojure
(ns adventofcode.day7 (:require [clojure.string :as str])) (def instructions (atom [])) (def result (atom {})) (defn signal->wire [instruction] (let [[_ signal wire :as all] (re-find #"^(\d+) -> (\w+)$" instruction)] (when-not (nil? all) (swap! result assoc wire (read-string signal)) (swap! instru...
b9414f1ae09932f488cac96ee0f4e8850d228405f9d871385411a78710994aea
arohner/spectrum
flow2_test.clj
(ns spectrum.flow2-test (:require [clojure.test :refer :all] [spectrum.conform :as c] [spectrum.flow :as f])) ;; seq ;; first ;; rest ;; get ;; assoc ;; get-in ;; assoc-in ;; update-in
null
https://raw.githubusercontent.com/arohner/spectrum/72b47a91a5ce4567eed547507d25b2528f48c2d1/test/spectrum/flow2_test.clj
clojure
seq first rest get assoc get-in assoc-in update-in
(ns spectrum.flow2-test (:require [clojure.test :refer :all] [spectrum.conform :as c] [spectrum.flow :as f]))
79a3b5e4f4accc3fcc08a12d57ade874d67d4b50e80ccc4068a2a9500731e418
malcolmreynolds/GSLL
elliptic-integrals.lisp
Regression test ELLIPTIC - INTEGRALS for GSLL , automatically generated (in-package :gsl) (LISP-UNIT:DEFINE-TEST ELLIPTIC-INTEGRALS (LISP-UNIT::ASSERT-NUMERICAL-EQUAL (LIST 1.5707963267948966d0 4.598091522633788d-16) (MULTIPLE-VALUE-LIST ...
null
https://raw.githubusercontent.com/malcolmreynolds/GSLL/2f722f12f1d08e1b9550a46e2a22adba8e1e52c4/tests/elliptic-integrals.lisp
lisp
Regression test ELLIPTIC - INTEGRALS for GSLL , automatically generated (in-package :gsl) (LISP-UNIT:DEFINE-TEST ELLIPTIC-INTEGRALS (LISP-UNIT::ASSERT-NUMERICAL-EQUAL (LIST 1.5707963267948966d0 4.598091522633788d-16) (MULTIPLE-VALUE-LIST ...
80d2213aac218ad0cac21b724804a516b71ebc742b0299e63e402ffa64415f66
CardanoSolutions/kupo
Version.hs
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 /. # LANGUAGE TemplateHaskell # module Kupo.Version ( version ) where import Kupo.Prelude import Data.Version ( makeVersion ...
null
https://raw.githubusercontent.com/CardanoSolutions/kupo/1ee9006d1513037cf0b662feaecbc444d6584bce/src/Kupo/Version.hs
haskell
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 /. # LANGUAGE TemplateHaskell # module Kupo.Version ( version ) where import Kupo.Prelude import Data.Version ( makeVersion ...
f6c5135efff6174b141682fea19db81a8650e7b0e1a633ce04673ba6382cc6da
froydnj/ironclad
pkcs5.lisp
;;;; -*- mode: lisp; indent-tabs-mode: nil -*- (in-package :crypto) PBKDF1 from RFC 2898 , section 5.1 (defmethod shared-initialize :after ((kdf pbkdf1) slot-names &rest initargs &key digest &allow-other-keys) (declare (ignore slot-names initargs)) (let ((digest-name (mass...
null
https://raw.githubusercontent.com/froydnj/ironclad/fe88483bba68eac4db3b48bb4a5a40035965fc84/src/pkcs5.lisp
lisp
-*- mode: lisp; indent-tabs-mode: nil -*- Permit DIGEST to be NULL to indicate reinitializing the whole instance. Don't cons unnecessarily. (Although this depends how expensive
(in-package :crypto) PBKDF1 from RFC 2898 , section 5.1 (defmethod shared-initialize :after ((kdf pbkdf1) slot-names &rest initargs &key digest &allow-other-keys) (declare (ignore slot-names initargs)) (let ((digest-name (massage-symbol digest))) (cond ((cl:null ...
4f596afd1efb7d71cafbb2c13ad185820760dc771bab14cfb322f1220d5a0249
2600hz/kazoo
kz_amqp_bootstrap.erl
%%%----------------------------------------------------------------------------- ( C ) 2012 - 2020 , 2600Hz @doc Hack .... We want to block during startup until we have a connection %%% but due to the way `kz_amqp_mgr' is structured we can't block in %%% init there. So this module will bootstrap `kz_amqp_mgr...
null
https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/core/kazoo_amqp/src/kz_amqp_bootstrap.erl
erlang
----------------------------------------------------------------------------- but due to the way `kz_amqp_mgr' is structured we can't block in init there. So this module will bootstrap `kz_amqp_mgr' and block until a connection becomes available, after that it removes itself. @end -------------------------------...
( C ) 2012 - 2020 , 2600Hz @doc Hack .... We want to block during startup until we have a connection This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. -module(kz_amqp_bootstrap). -beha...
2f7f38a4587eed640ac2b1ec35347635b5492af133fe82a7e7692fec597b8ed5
dainiusjocas/lucene-grep
matching.clj
(ns lmgrep.lucene.matching (:require [clojure.string :as s] [lmgrep.lucene.dictionary :as dictionary]) (:import (org.apache.lucene.monitor MonitorQuery Monitor HighlightsMatch HighlightsMatch$Hit ScoringMatch ...
null
https://raw.githubusercontent.com/dainiusjocas/lucene-grep/230b0af25959554df96d0a65e3e936b6869afb29/src/lmgrep/lucene/matching.clj
clojure
key of the map entry is a field name key of the map entry is a field name
(ns lmgrep.lucene.matching (:require [clojure.string :as s] [lmgrep.lucene.dictionary :as dictionary]) (:import (org.apache.lucene.monitor MonitorQuery Monitor HighlightsMatch HighlightsMatch$Hit ScoringMatch ...
b50c30fb59702b65e9a6ce7543ed3d36a670dad4a99afd9dbede436d49b0b125
CatalinStefan/Clojure
Sequence.clj
(ns s04.Sequence) In Clojure , a sequence is a logical list of elements ; Most data structures provide access to their ; data as a sequence ; And many of the core library functions work on ; sequential data ; This means that we can chain elements together ; with the help of sequences (defn Seq [] (def colors (s...
null
https://raw.githubusercontent.com/CatalinStefan/Clojure/c8a313fffe39ace8f5aae35de435c50f70b57ed9/s04/src/s04/Sequence.clj
clojure
Most data structures provide access to their data as a sequence And many of the core library functions work on sequential data This means that we can chain elements together with the help of sequences
(ns s04.Sequence) In Clojure , a sequence is a logical list of elements (defn Seq [] (def colors (seq ["red" "green" "blue"])) (println colors) (println (cons "yellow" colors) ) (println (cons colors "yellow")) (println (conj colors "yellow")) (println (conj ["red" "green" "blue"] "yellow")) (pri...
b4cd7221d410b7250df3707010c9bcaf9f05b30e648ccb7e94b5176789599c93
esl/ejabberd_tests
websockets_SUITE.erl
%%============================================================================== Copyright 2012 Erlang Solutions Ltd. %% 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 %% ...
null
https://raw.githubusercontent.com/esl/ejabberd_tests/913fb0a5a8c1ab753eb35c1e1b491e8572633b54/tests/websockets_SUITE.erl
erlang
============================================================================== you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either ex...
Copyright 2012 Erlang Solutions Ltd. Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(websockets_SUITE). -compile(export_all). -include_lib("escalus/include/escalus.hrl"). -include_lib("common_test/include/ct.hrl")...
82dba9aac52362dc3258cbdb11c2bdff04a9da1ba58ca77c88e690ce194976ac
cedlemo/OCaml-GI-ctypes-bindings-generator
Tree_view_column.mli
open Ctypes type t val t_typ : t typ val create : unit -> t ptr val create_with_area : Cell_area.t ptr -> t ptr val add_attribute : t -> Cell_renderer.t ptr -> string -> int32 -> unit val cell_get_position : t -> Cell_renderer.t ptr -> (bool * int32 * int32) val cell_get_size : t -> Rectangle.t structure pt...
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Tree_view_column.mli
ocaml
Not implemented gtk_tree_view_column_cell_set_cell_data type interface not implemented Not implemented gtk_tree_view_column_set_cell_data_func type callback not implemented
open Ctypes type t val t_typ : t typ val create : unit -> t ptr val create_with_area : Cell_area.t ptr -> t ptr val add_attribute : t -> Cell_renderer.t ptr -> string -> int32 -> unit val cell_get_position : t -> Cell_renderer.t ptr -> (bool * int32 * int32) val cell_get_size : t -> Rectangle.t structure pt...
1b3b55b661eed79a03b4caaf058560cad06f1e152b5f7d4b60905dce7b4ee020
input-output-hk/plutus-apps
MonetaryPolicies.hs
# LANGUAGE DataKinds # {-# LANGUAGE NamedFieldPuns #-} # LANGUAGE NoImplicitPrelude # # LANGUAGE TemplateHaskell # {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE ViewPatterns #-} # OPTIONS_GHC -fno - specialise # # OPTIONS_GHC -Wno - simplifiable - class - constraints # # OPTIONS_GHC -fno - omit -...
null
https://raw.githubusercontent.com/input-output-hk/plutus-apps/c1269a7ab8806957cda93448a4637c485352cda5/plutus-script-utils/src/Plutus/Script/Utils/V2/Typed/Scripts/MonetaryPolicies.hs
haskell
# LANGUAGE NamedFieldPuns # # LANGUAGE TypeFamilies # # LANGUAGE ViewPatterns # | A minting policy that checks whether the validator script was run in the minting transaction.
# LANGUAGE DataKinds # # LANGUAGE NoImplicitPrelude # # LANGUAGE TemplateHaskell # # OPTIONS_GHC -fno - specialise # # OPTIONS_GHC -Wno - simplifiable - class - constraints # # OPTIONS_GHC -fno - omit - interface - pragmas # # OPTIONS_GHC -fno - ignore - interface - pragmas # module Plutus.Script.Utils.V2...
94a62533025c1b8d4729ccc7bda50dfe572485abf599b5a825d5d3b003023aad
zcaudate/hara
deps.clj
(ns hara.module.deps (:require [hara.string.base.ansi :as ansi] [hara.module :as module] [hara.print :as print] [hara.io.file :as fs] [hara.io.archive :as archive] [hara.module.artifact.common :as base] [hara.module.artifact :as artifact] ...
null
https://raw.githubusercontent.com/zcaudate/hara/481316c1f5c2aeba5be6e01ae673dffc46a63ec9/src/hara/module/deps.clj
clojure
(ns hara.module.deps (:require [hara.string.base.ansi :as ansi] [hara.module :as module] [hara.print :as print] [hara.io.file :as fs] [hara.io.archive :as archive] [hara.module.artifact.common :as base] [hara.module.artifact :as artifact] ...
1927497475ab07ae13d5457cdd0e85a93423fc8e6ebf56016902d5e0c1842e46
ludat/conferer
NamespacedSpec.hs
module Conferer.Source.NamespacedSpec where import Test.Hspec import Conferer.Source import qualified Conferer.Source.Test as Test import Conferer.Source.Namespaced spec :: Spec spec = do describe "namespaced config" $ do let source = fromInner "postgres" $ Test.fromAssociations [("url",...
null
https://raw.githubusercontent.com/ludat/conferer/13af5727c3b34779e87a1bdb4b0f247581ce4bc4/packages/conferer/test/Conferer/Source/NamespacedSpec.hs
haskell
module Conferer.Source.NamespacedSpec where import Test.Hspec import Conferer.Source import qualified Conferer.Source.Test as Test import Conferer.Source.Namespaced spec :: Spec spec = do describe "namespaced config" $ do let source = fromInner "postgres" $ Test.fromAssociations [("url",...
61b8089dc8076334014ea894140af9fe5756c968f0ada1669a9b83a457845791
koka-lang/koka
Uniquefy.hs
----------------------------------------------------------------------------- Copyright 2012 - 2021 , Microsoft Research , . -- -- This is free software; you can redistribute it and/or modify it under the terms of the Apache License , Version 2.0 . A copy of the License can be -- found in the LICENSE file ...
null
https://raw.githubusercontent.com/koka-lang/koka/14c06eee6e520e9e0c6d8e2d7a6313fbbeea38b5/src/Core/Uniquefy.hs
haskell
--------------------------------------------------------------------------- This is free software; you can redistribute it and/or modify it under the found in the LICENSE file at the root of this distribution. --------------------------------------------------------------------------- Make local variables u...
Copyright 2012 - 2021 , Microsoft Research , . terms of the Apache License , Version 2.0 . A copy of the License can be module Core.Uniquefy ( uniquefy , uniquefyExpr ) where import Control.Monad import Control.Applicative import Common.Name import qualified...
e19578c37aeb82391cc33c882721b31a4954880d8c7d8d079a5d9ca81a3f49c4
clj-commons/rewrite-clj
apply_import_vars.clj
#!/usr/bin/env bb (ns apply-import-vars (:require [helper.main :as main] [helper.shell :as shell] [lread.status-line :as status])) (def args-usage "Valid args: (gen-code|check|--help) Commands: gen-code Generate API sources from templates check Fail if API sources are stale as compar...
null
https://raw.githubusercontent.com/clj-commons/rewrite-clj/3dfb15b264390edec8631c0f631ee828924973d6/script/apply_import_vars.clj
clojure
#!/usr/bin/env bb (ns apply-import-vars (:require [helper.main :as main] [helper.shell :as shell] [lread.status-line :as status])) (def args-usage "Valid args: (gen-code|check|--help) Commands: gen-code Generate API sources from templates check Fail if API sources are stale as compar...
d6ad73ef7e6e82047e79648876b8cbed408db2e54f63abc1c47742283fcffbac
skynet-gh/skylobby
register_test.clj
(ns skylobby.fx.register-test (:require [cljfx.api :as fx] [clojure.test :refer [deftest is]] [skylobby.fx.register :as fx.register])) (set! *warn-on-reflection* true) (deftest register-window (is (map? (fx.register/register-window-impl {:fx/context (fx/create-context nil) ...
null
https://raw.githubusercontent.com/skynet-gh/skylobby/7895ad30d992b790ffbffcd2d7be2cf17f8df794/test/clj/skylobby/fx/register_test.clj
clojure
(ns skylobby.fx.register-test (:require [cljfx.api :as fx] [clojure.test :refer [deftest is]] [skylobby.fx.register :as fx.register])) (set! *warn-on-reflection* true) (deftest register-window (is (map? (fx.register/register-window-impl {:fx/context (fx/create-context nil) ...
7ca2b5032be9901f13020c12e5634ffdf56e399529c29c79f04f50a0735353ac
bluddy/rails
mapview_d.ml
type zoom = | Zoom1 | Zoom2 | Zoom3 | Zoom4 [@@deriving eq, show, yojson] type options = [ `StationBoxes | `Resources] [@@ deriving enum, eq, show, yojson] module Options = Bitset.Make(struct type t = options let to_enum = options_to_enum let of_enum = options_of_enum let last = `Resour...
null
https://raw.githubusercontent.com/bluddy/rails/b2a8dd700fdcbdf36984ba50eb148000c1f0b32f/bin/ui/mapview_d.ml
ocaml
in map coordinates
type zoom = | Zoom1 | Zoom2 | Zoom3 | Zoom4 [@@deriving eq, show, yojson] type options = [ `StationBoxes | `Resources] [@@ deriving enum, eq, show, yojson] module Options = Bitset.Make(struct type t = options let to_enum = options_to_enum let of_enum = options_of_enum let last = `Resour...
d8896919f9bfc2654a099128dfc5b5bf48d93475eab5e7f1789b859075b50660
cgrand/poucet
project.clj
(defproject net.cgrand/poucet "0.1.0-SNAPSHOT" :description "trace as data" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"]])
null
https://raw.githubusercontent.com/cgrand/poucet/bbfa9ab900b6e5538ba75c067aa31b328a2b55ff/project.clj
clojure
(defproject net.cgrand/poucet "0.1.0-SNAPSHOT" :description "trace as data" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"]])
4b98074c9398be7b03891c49f5761846e76c395251833726cc45cd62d5058bd7
ontodev/howl
readme_test.clj
(ns howl.readme-test (:require [clojure.test :refer :all] [clojure.string :as string] [clojure.data.json :as json] [howl.core :refer :all])) Parse the README.md file ;; looking for pairs of example blocks and their JSON results, ;; then parse the example block and compare it to ...
null
https://raw.githubusercontent.com/ontodev/howl/0880c903a0f603324309153586f720860d1e7d89/test/howl/readme_test.clj
clojure
looking for pairs of example blocks and their JSON results, then parse the example block and compare it to the expected result. keep indented
(ns howl.readme-test (:require [clojure.test :refer :all] [clojure.string :as string] [clojure.data.json :as json] [howl.core :refer :all])) Parse the README.md file (defn run-test [[block result]] (try (testing block (is (= (clojure.walk/postwalk #(...
612e9a62e6692b24bedd489906cf17a0840863380bab46e6ac8549b214edb6c8
aws-beam/aws-erlang
aws_kinesis_video_signaling.erl
%% WARNING: DO NOT EDIT, AUTO-GENERATED CODE! See -beam/aws-codegen for more details . @doc Kinesis Video Streams Signaling Service is a intermediate service %% that establishes a communication channel for discovering peers, %% transmitting offers and answers in order to establish peer-to-peer connection in webR...
null
https://raw.githubusercontent.com/aws-beam/aws-erlang/699287cee7dfc9dc8c08ced5f090dcc192c9cba8/src/aws_kinesis_video_signaling.erl
erlang
WARNING: DO NOT EDIT, AUTO-GENERATED CODE! that establishes a communication channel for discovering peers, transmitting offers and answers in order to establish peer-to-peer ==================================================================== API ==================================================================== ...
See -beam/aws-codegen for more details . @doc Kinesis Video Streams Signaling Service is a intermediate service connection in webRTC technology . -module(aws_kinesis_video_signaling). -export([get_ice_server_config/2, get_ice_server_config/3, send_alexa_offer_to_master/2, send_alexa_o...
243511d9a2c33be8d3f0902ab03d419bce3cc824f2309c97189d14c45c06b78e
ryanpbrewster/haskell
259.hs
-- 259.hs - A positive integer will be called reachable if it can result from an arithmetic expression obeying the following rules : - - * Uses the digits 1 through 9 , in that order and exactly once each . - * Any successive digits can be concatenated ( for example , using the - digits ...
null
https://raw.githubusercontent.com/ryanpbrewster/haskell/6edd0afe234008a48b4871032dedfd143ca6e412/project-euler/src/Experimental/259.hs
haskell
259.hs
- A positive integer will be called reachable if it can result from an arithmetic expression obeying the following rules : - - * Uses the digits 1 through 9 , in that order and exactly once each . - * Any successive digits can be concatenated ( for example , using the - digits 2 , 3 and ...
97fd5bfb308013abb5540454b672e3c113ef4a16b4344d4d4c3de13c56c1cf6f
dundalek/closh
io.cljs
(ns closh.zero.platform.io (:require [glob :as glob-js] [fs] [deasync] [stream])) (def ^:dynamic *stdin* js/process.stdin) (def ^:dynamic *stdout* js/process.stdout) (def ^:dynamic *stderr* js/process.stderr) (defn glob [s _] (seq (glob-js/sync s #js{:nonull true}))) (defn lin...
null
https://raw.githubusercontent.com/dundalek/closh/b1a7fd310b6511048fbacb8e496f574c8ccfa291/src/lumo/closh/zero/platform/io.cljs
clojure
(ns closh.zero.platform.io (:require [glob :as glob-js] [fs] [deasync] [stream])) (def ^:dynamic *stdin* js/process.stdin) (def ^:dynamic *stdout* js/process.stdout) (def ^:dynamic *stderr* js/process.stderr) (defn glob [s _] (seq (glob-js/sync s #js{:nonull true}))) (defn lin...
4f4d302c7d54dd9e569a6ad811cde57f663196f4d8b9499dd058d6a4f4fa1a32
ekmett/free
Fast.hs
{-# LANGUAGE GADTs #-} # LANGUAGE RankNTypes # {-# LANGUAGE Safe #-} -------------------------------------------------------------------------------- -- | -- A faster free applicative. Based on < /~zednenem/2013/05/27/freeapp work > . ---------------------------------------------------------...
null
https://raw.githubusercontent.com/ekmett/free/29b5d2c2811f74f6566835b5cfbdc7f745e57557/src/Control/Applicative/Free/Fast.hs
haskell
# LANGUAGE GADTs # # LANGUAGE Safe # ------------------------------------------------------------------------------ | A faster free applicative. ------------------------------------------------------------------------------ * The Faster Free Applicative | The free applicative is composed of a sequence ...
# LANGUAGE RankNTypes # Based on < /~zednenem/2013/05/27/freeapp work > . module Control.Applicative.Free.Fast ( * The Sequence of Effects ASeq(..) , reduceASeq , hoistASeq , traverseASeq , rebaseASeq , Ap(..) , liftAp , retractAp , runAp , runAp_ , hoistAp ) where import ...
78cbb6e4cc57fb86140ad4e92b13d22ffd48cce6feb57fd367858e2962504570
hakaru-dev/hakaru
Transform.hs
# LANGUAGE CPP , FlexibleInstances , GADTs , DataKinds , TypeOperators , KindSignatures , LambdaCase , ViewPatterns , DeriveDataTypeable , StandaloneDeriving , OverlappingInstances ...
null
https://raw.githubusercontent.com/hakaru-dev/hakaru/94157c89ea136c3b654a85cce51f19351245a490/haskell/Language/Hakaru/Syntax/Transform.hs
haskell
# OPTIONS_GHC -Wall -fwarn-tabs # | Module : Language.Hakaru.Syntax.Transform License : BSD3 Stability : experimental primitives. -------------------------------------------------------------- * Transformation internal syntax * Some utilities * Mapping of input type to output type for transforms ...
# LANGUAGE CPP , FlexibleInstances , GADTs , DataKinds , TypeOperators , KindSignatures , LambdaCase , ViewPatterns , DeriveDataTypeable , StandaloneDeriving , OverlappingInstances ...
f45236d0cff2f6438041ae15a2d938c7157dabb32ac7b236f614517739004f87
apache/couchdb-couch
couch_task_status_tests.erl
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not % use this file except in compliance with the License. You may obtain a copy of % the License at % % -2.0 % % Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an " A...
null
https://raw.githubusercontent.com/apache/couchdb-couch/21c8d37ac6ee1a7fed1de1f54f95a4d3cd9f5248/test/couch_task_status_tests.erl
erlang
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 CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations...
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not distributed under the License is distributed on an " AS IS " BASIS , WITHOUT -module(couch_task_status_tests). -include_lib("couch/include/couch_eunit.hrl"). -include_lib("couch/include/couch_db.hrl"). -define(TIMEOUT, 1000). set...
583f9de6664f1e6cb7a8c2351adc50db5123e6f33ec23d9799da3b8b0f47d638
wizardpb/functional-vaadin
naming.clj
;; Copyright 2016 Prajna Inc. All Rights Reserved . ;; ;; This work is licensed under the Eclipse Public License v1.0 - -v10.html ;; Distrubition and use must be done under the terms of this license ;; (ns functional-vaadin.naming (:require [functional-vaadin.utils :refer :all]) (:import (clojure.lang Keyword) ...
null
https://raw.githubusercontent.com/wizardpb/functional-vaadin/eccd121b1a4c28ec73ad452fa3d1ce3c6e78d401/src/functional_vaadin/naming.clj
clojure
This work is licensed under the Eclipse Public License v1.0 - -v10.html Distrubition and use must be done under the terms of this license
Copyright 2016 Prajna Inc. All Rights Reserved . (ns functional-vaadin.naming (:require [functional-vaadin.utils :refer :all]) (:import (clojure.lang Keyword) (com.vaadin.ui Component))) (defn addComponent [ui ^Component component ^Keyword id] (let [ks (component-key id)] (if (get-data componen...
a9fd6dff12285a6910a56684193621676b9aaf3eb331e7a8f0d694a473bf8c06
hadolint/hadolint
DL3008Spec.hs
module Hadolint.Rule.DL3008Spec (spec) where import Data.Default import Data.Text as Text import Helpers import Test.Hspec spec :: SpecWith () spec = do let ?config = def describe "DL3008 - Pin versions in apt-get install." $ do it "apt-get version pinning" $ do ruleCatches "DL3008" "RUN apt-get updat...
null
https://raw.githubusercontent.com/hadolint/hadolint/bf7e48ea735db423a349fb2d7a83fe7a77091cc2/test/Hadolint/Rule/DL3008Spec.hs
haskell
module Hadolint.Rule.DL3008Spec (spec) where import Data.Default import Data.Text as Text import Helpers import Test.Hspec spec :: SpecWith () spec = do let ?config = def describe "DL3008 - Pin versions in apt-get install." $ do it "apt-get version pinning" $ do ruleCatches "DL3008" "RUN apt-get updat...
f210f28b7a1a749c390628ec5520ca81e14ae5d8d26b06c7d85abcf466a15066
facebookincubator/hsthrift
ParensTest.hs
Copyright ( c ) Facebook , Inc. and its affiliates . module ParensTest where import Parens.Types we just want Parens . Types to compile main :: IO () main = print Y_A
null
https://raw.githubusercontent.com/facebookincubator/hsthrift/d3ff75d487e9d0c2904d18327373b603456e7a01/tests/ParensTest.hs
haskell
Copyright ( c ) Facebook , Inc. and its affiliates . module ParensTest where import Parens.Types we just want Parens . Types to compile main :: IO () main = print Y_A
a78650cb5a31929baed7e74194b759e0e5840e53010b661b9686b2c44684f3ad
Mallku2/lua-redex-model
scope_tests.rkt
#lang racket (require redex "scope.rkt" rackunit rackunit/text-ui) (define actual-scope (void)) (define-test-suite scope-test-suite ; Actual scope #:before (lambda () (set! actual-scope (new-scope (new-empty-scope) (list 'a 'b)))) (check-true (is-i...
null
https://raw.githubusercontent.com/Mallku2/lua-redex-model/13a1b8cacbdc72a1b5cb1a1f140f21cc974d71c3/Desugar/scope_tests.rkt
racket
Actual scope Variables in external scopes are still visibles New scope Another scope Restore previous scopes Blocks
#lang racket (require redex "scope.rkt" rackunit rackunit/text-ui) (define actual-scope (void)) (define-test-suite scope-test-suite #:before (lambda () (set! actual-scope (new-scope (new-empty-scope) (list 'a 'b)))) (check-true (is-in-scope actual-sc...
d9110aa1234e2b0c89a0fb1760158ed96235c89c98bb694e6be6888785240160
dradtke/Lisp-Text-Editor
gdk.cursor.lisp
(in-package :gdk) (defcstruct %gdk-cursor (cursor-type cursor-type)) (defun cursor-cursor-type (cursor) (foreign-slot-value (pointer cursor) '%gdk-cursor 'cursor-type)) (export 'cursor-cursor-type) (defcfun (cursor-new "gdk_cursor_new") (g-boxed-foreign cursor :return) (cursor-type cursor-type)) (export 'cur...
null
https://raw.githubusercontent.com/dradtke/Lisp-Text-Editor/b0947828eda82d7edd0df8ec2595e7491a633580/cl-gtk2/gdk/gdk.cursor.lisp
lisp
(in-package :gdk) (defcstruct %gdk-cursor (cursor-type cursor-type)) (defun cursor-cursor-type (cursor) (foreign-slot-value (pointer cursor) '%gdk-cursor 'cursor-type)) (export 'cursor-cursor-type) (defcfun (cursor-new "gdk_cursor_new") (g-boxed-foreign cursor :return) (cursor-type cursor-type)) (export 'cur...
b7abfc8e35d6a4d636b56f4d2e6faba16b75648d3189ba546208c39ca2d24127
0xYUANTI/stdlib2
s2_atoms.erl
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% @doc Atoms. %%% @end %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%_* Module declaration =============================================== -module(s2_atoms). %%%_* Exports ===========================...
null
https://raw.githubusercontent.com/0xYUANTI/stdlib2/0c334200fd9c7ddd79f6dcc3a63c0aa5de5d3a33/src/s2_atoms.erl
erlang
@doc Atoms. @end _* Module declaration =============================================== _* Exports ========================================================== _* Includes ========================================================= _* Code ============================================================= @doc gensym() is a...
-module(s2_atoms). -export([ catenate/1 , gensym/0 , gensym/1 ]). -include_lib("eunit/include/eunit.hrl"). -include_lib("stdlib2/include/prelude.hrl"). -spec catenate([atom() | integer() | float() | string()]) -> atom(). @doc catenate(Args ) is the concatenation of as an atom . catenate(A...
194e0a36631d55ee2595f54ff1f87aff4badc932c7abd0108de2e77d4b4e9429
patricoferris/ocaml-multicore-monorepo
session.ml
This file is part of Dream , released under the MIT license . See LICENSE.md for details , or visit . Copyright 2021 for details, or visit . Copyright 2021 Anton Bachin *) module Dream = Dream_pure module Cookie = Dream__server.Cookie module Session = Dream__server.Session let (|>?) = Opt...
null
https://raw.githubusercontent.com/patricoferris/ocaml-multicore-monorepo/22b441e6727bc303950b3b37c8fbc024c748fe55/duniverse/dream/src/sql/session.ml
ocaml
TODO Session sharing is greatly complicated by the backing store; is it ok to just work with snapshots? All kinds of race conditions may be possible, unless there is a generation value or the like. TODO The in-memory sessions manager should actually be re-done in terms of the cache, just with no persistent ...
This file is part of Dream , released under the MIT license . See LICENSE.md for details , or visit . Copyright 2021 for details, or visit . Copyright 2021 Anton Bachin *) module Dream = Dream_pure module Cookie = Dream__server.Cookie module Session = Dream__server.Session let (|>?) = Opt...
917c3a76c02de1cba6661530473ecddfb795c0fc9093b403493dc06f4e16aadf
ktakashi/sagittarius-scheme
factory.scm
-*- mode : scheme ; coding : utf-8 ; -*- ;;; ;;; text/xml/dom/factory.scm - DOM tree factory ;;; Copyright ( c ) 2018 < > ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: ;;; ;;; 1....
null
https://raw.githubusercontent.com/ktakashi/sagittarius-scheme/3971b131d463696297c320dbe595dffd08867dac/sitelib/text/xml/dom/factory.scm
scheme
coding : utf-8 ; -*- text/xml/dom/factory.scm - DOM tree factory Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this l...
Copyright ( c ) 2018 < > " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING #!nounbound (library (text xml dom factory) (ex...
bc3185398434ecb60209d28918ac6eccc781e82414c28b106799bdf2886e1cd7
hamidreza-s/Tnesia
tnesia_tql_formatter.erl
-module(tnesia_tql_formatter). -export([ term/1, json/1 ]). -export([ proplist_to_json_object/1, list_to_json_array/1, term_to_json_string/1 ]). -include("tnesia.hrl"). -include("types.hrl"). %%==================================================================== %% Main API %%===========================...
null
https://raw.githubusercontent.com/hamidreza-s/Tnesia/52a3a88a52b423fbc5959978c0bba61654166d47/src/tnesia_tql_formatter.erl
erlang
==================================================================== Main API ==================================================================== -------------------------------------------------------------------- term -------------------------------------------------------------------- ----------------------------...
-module(tnesia_tql_formatter). -export([ term/1, json/1 ]). -export([ proplist_to_json_object/1, list_to_json_array/1, term_to_json_string/1 ]). -include("tnesia.hrl"). -include("types.hrl"). term(Term) -> {ok, Term}. json({select, Result}) -> {ok, select_format_json(Result)}; json({insert, Re...
811eb789aeee877a7a172d7813a5c76a4a5162bf5a4e5754f7ec1187f9c001b4
cmsc430/www
add1-false.rkt
#lang racket (add1 #f)
null
https://raw.githubusercontent.com/cmsc430/www/0809867532b8ef516029ac38093a145db5b424ea/langs/test-programs/extort/add1-false.rkt
racket
#lang racket (add1 #f)
5a27ccc805818d2d52dabd24f8a4ef3311179e351729be95e533e9352fdf63ce
ocamllabs/ocaml-modular-implicits
ocamlbuild_plugin.mli
(***********************************************************************) (* *) (* ocamlbuild *) (* *) , , projet Galliu...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/ocamlbuild/ocamlbuild_plugin.mli
ocaml
********************************************************************* ocamlbuild ...
, , projet Gallium , INRIA Rocquencourt Copyright 2007 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 . include Ocamlbuild_pack.Signatures.PLUGIN with modul...
838f76997a9133ad23d1f671818da8c72ce1a5cb9cbc75e4a7e3871002e32b31
swtwsk/vinci-lang
SSAtoSPIR.hs
# LANGUAGE LambdaCase # # LANGUAGE TupleSections # | Handle conversion of SSA to SPIR - V code module SPIRV.SSAtoSPIR (ssaToSpir) where import Control.Monad import Data.Bifunctor (first, second) import Data.DList (toList) import Data.List (elemIndex) import qualified Data.Map as Map import Data.Maybe (fromMaybe, is...
null
https://raw.githubusercontent.com/swtwsk/vinci-lang/9c7e01953e0b1cf135af7188e0c71fe6195bdfa1/src/SPIRV/SSAtoSPIR.hs
haskell
----------------------------------------------------------------------------- | Top-level of the SPIR-V code generator | Search for shader entry points - required from SPIR-V specification ----------------------------------------------------------------------------- * Function code generation | Generate code f...
# LANGUAGE LambdaCase # # LANGUAGE TupleSections # | Handle conversion of SSA to SPIR - V code module SPIRV.SSAtoSPIR (ssaToSpir) where import Control.Monad import Data.Bifunctor (first, second) import Data.DList (toList) import Data.List (elemIndex) import qualified Data.Map as Map import Data.Maybe (fromMaybe, is...
a7045836d73821f47730ceb232bc8f6a21fcd2e8cab1b25624da2134a6ca4be2
alexandroid000/improv
Turtle3.hs
# LANGUAGE TemplateHaskell # module Turtle3 (main) where import Prelude hiding (dropWhile) import Control.Applicative import Control.Arrow import System.IO (hFlush, stdout) import Data.Complex import Ros.Logging import Ros.Node import Ros.Topic (repeatM, force, dropWhile, metamorphM, yieldM) import Ros.Topic.Util (ever...
null
https://raw.githubusercontent.com/alexandroid000/improv/ef0f4a6a5f99a9c7ff3d25f50529417aba9f757c/roshask/Examples/Turtle/src/Turtle3.hs
haskell
A type synonym for a 2D point. A Topic of user-supplied waypoint trajectories. Create Twist message with linear and angular velocity in arguments. vicinity of the previous goal. Compute linear and angular error to goal. Run a PID loop on angular velocity to converge to a bearing for the goal. Compute position a...
# LANGUAGE TemplateHaskell # module Turtle3 (main) where import Prelude hiding (dropWhile) import Control.Applicative import Control.Arrow import System.IO (hFlush, stdout) import Data.Complex import Ros.Logging import Ros.Node import Ros.Topic (repeatM, force, dropWhile, metamorphM, yieldM) import Ros.Topic.Util (ever...
7a2ef413ea9c16e1f0eee0f3acba50927beeb1628d19763690e774dbe8518d96
Virtual-Insurance-Products/clim-web
04.2-drag-and-drop.lisp
(in-package :clim-web) (defparameter *highlight-color* "#6FAEFE") (defparameter *selected-outline* (s "3px solid ~A" *highlight-color*)) ! ! ! It would be nice if this could offer a context menu in the event that there are > 1 possible commands ;; output the drag/drop bits for the command... OTOH , maybe we can...
null
https://raw.githubusercontent.com/Virtual-Insurance-Products/clim-web/06aeff0794b50c3efe18a3c99bb495f428908185/04.2-drag-and-drop.lisp
lisp
output the drag/drop bits for the command... the data type will be the command name rather than anything else. !!! I could/should factor out the event handlers setting text/plain allows us to drag and drop to the command bar for ease of referencing, which is pretty darned handy. In fact, you can drag/drop to any ...
(in-package :clim-web) (defparameter *highlight-color* "#6FAEFE") (defparameter *selected-outline* (s "3px solid ~A" *highlight-color*)) ! ! ! It would be nice if this could offer a context menu in the event that there are > 1 possible commands OTOH , maybe we can just output different handlers for the differen...
c416b0f792e4c0c734359e5e7c0fbd5a314eff10715b40eda0d3a8ac015d27b6
composewell/streamly-coreutils
Common.hs
module Streamly.Coreutils.Common ( Switch (..)) where data Switch = On | Off deriving (Show, Eq)
null
https://raw.githubusercontent.com/composewell/streamly-coreutils/edf66d29cdd6ae7b89b909f06821d760c9971609/src/Streamly/Coreutils/Common.hs
haskell
module Streamly.Coreutils.Common ( Switch (..)) where data Switch = On | Off deriving (Show, Eq)
aec915cdab55ff029e414b66c45ec465c214c76e54ff54b5f93e3ba321827405
racket/math
gamma-utils.rkt
#lang typed/racket/base (require "../../../flonum.rkt" "../../../base.rkt" "../stirling-error.rkt") (provide flsharkfin fllog-sharkfin flgamma-series-const fllog-gamma-series-const flgamma-upper-const fllog-gamma-upper-const) (: flsharkfin-high-precision (Flonum Flonum -> Flonum))...
null
https://raw.githubusercontent.com/racket/math/dcd2ea1893dc5b45b26c8312997917a15fcd1c4a/math-lib/math/private/functions/incomplete-gamma/gamma-utils.rkt
racket
Argument reduction to make calculations cleaner if x is subnormal Didn't work... try a similar calculation with argument reductions Reduce exponents by `d' to keep intermediate computations from under-/overflowing Do it only if it wouldn't create too much error Otherwise bring out the big guns Plan z: just do it...
#lang typed/racket/base (require "../../../flonum.rkt" "../../../base.rkt" "../stirling-error.rkt") (provide flsharkfin fllog-sharkfin flgamma-series-const fllog-gamma-series-const flgamma-upper-const fllog-gamma-upper-const) (: flsharkfin-high-precision (Flonum Flonum -> Flonum))...
883bc81c6ddbe92de9787da5c7760a5bc2f174e28ab33cf11685ccd65e5cdb65
alexandroid000/improv
GridCells.hs
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DeriveGeneric # # LANGUAGE TemplateHaskell # module Ros.Nav_msgs.GridCells where import qualified Prelude as P import Prelude ((.), (+), (*)) import qualified Data.Typeable as T import Control.Applicative import Ros.Internal.RosBinary imp...
null
https://raw.githubusercontent.com/alexandroid000/improv/ef0f4a6a5f99a9c7ff3d25f50529417aba9f757c/roshask/msgs/Nav_msgs/Ros/Nav_msgs/GridCells.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE DeriveDataTypeable #
# LANGUAGE DeriveGeneric # # LANGUAGE TemplateHaskell # module Ros.Nav_msgs.GridCells 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 ...
06d6b4b388aaa2129d5615587ffad7b7497621872725123bcc339d51756ed688
UU-ComputerScience/uhc
Read.hs
# LANGUAGE CPP # # OPTIONS_GHC -XNoImplicitPrelude , CPP # ----------------------------------------------------------------------------- -- | -- Module : Text.Read Copyright : ( c ) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : -- S...
null
https://raw.githubusercontent.com/UU-ComputerScience/uhc/f2b94a90d26e2093d84044b3832a9a3e3c36b129/EHC/ehclib/base/Text/Read.hs
haskell
--------------------------------------------------------------------------- | Module : Text.Read License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : provisional Portability : non-portable (uses Text.ParserCombinators.ReadP) Converting strings to values. The "...
# LANGUAGE CPP # # OPTIONS_GHC -XNoImplicitPrelude , CPP # Copyright : ( c ) The University of Glasgow 2001 ' Read'-class facilities . For GHC only , it offers an extended and much module Text.Read ( The Read class * Haskell 98 functions #if defined(__GLASGOW_HASKELL__) || defined(__HUGS__) module...
73c2284c8fa164bd7a2160e87252b0f92f0e2457b42360021297ed97ef42cf5d
zhuangxm/clj-rpc
command.clj
(ns clj-rpc.test.command (:use [clj-rpc.command :reload true] [clojure.test])) ;"check the abstract of the command" (deftest test-command (let [cmd (mk-command "mk-command" (var mk-command))] (is (= (.name cmd) "mk-command")) (is (.doc cmd)) (is (.arglists cmd)))) ;"check a var is a ...
null
https://raw.githubusercontent.com/zhuangxm/clj-rpc/73a2f66b5ed0cce865d102acb49ba229203343ad/test/clj_rpc/test/command.clj
clojure
"check the abstract of the command" "check a var is a function" "check the get-commands"
(ns clj-rpc.test.command (:use [clj-rpc.command :reload true] [clojure.test])) (deftest test-command (let [cmd (mk-command "mk-command" (var mk-command))] (is (= (.name cmd) "mk-command")) (is (.doc cmd)) (is (.arglists cmd)))) (deftest test-var-fn (is (not (var-fn? #'clojure.cor...
fd6f2543a271ada1b7ee6de8682931320e0216da81dac4a7aa79b946e63e261f
lisp-korea/sicp
ex-1-1-lkbwww.scm
;;; exercise1.1 10 ;;value:10 (+ 5 3 4) (/ 6 2) (+ (* 2 4) (- 4 6)) (define a 3) (define b (+ a 1)) (+ a b (* a b)) (= a b) (if (and (> b a) < b (* a b)) b a) (cond ((= a 4) 6 ) ((= b 4) (+ 6 7 a)) (else 25)) (+ 2 (if (> b a) b a)) (* (cond ((> a b) a) ((< a b) b) (else ...
null
https://raw.githubusercontent.com/lisp-korea/sicp/4cdc1b1d858c6da7c9f4ec925ff4a724f36041cc/ch01/1.1/ex-1-1-lkbwww.scm
scheme
exercise1.1 value:10 ex 1-2 ex1.8
10 (+ 5 3 4) (/ 6 2) (+ (* 2 4) (- 4 6)) (define a 3) (define b (+ a 1)) (+ a b (* a b)) (= a b) (if (and (> b a) < b (* a b)) b a) (cond ((= a 4) 6 ) ((= b 4) (+ 6 7 a)) (else 25)) (+ 2 (if (> b a) b a)) (* (cond ((> a b) a) ((< a b) b) (else -1)) (+ a 1)) (/ (+ 5 ...
140de63d8a612da184975223c0b835f3a70180d46098e422532c11f6cc11da6d
mzp/msgpack-ocaml
serialize.mli
type t = Pack.t val deserialize_string : string -> t val serialize_string : t -> string
null
https://raw.githubusercontent.com/mzp/msgpack-ocaml/acfbfcbcc62a4f69f9fd024e28e42086048a9f16/lib/core/serialize.mli
ocaml
type t = Pack.t val deserialize_string : string -> t val serialize_string : t -> string
d4f8d17685cc2d13b9554e4596f79e8bbb53c315444e2c62ecc7ba339bf8acd5
ocamllabs/ocaml-modular-implicits
complex.ml
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/stdlib/complex.ml
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 2002 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 type t = { re: float; im: float } let...