_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
f623f0d735982b9f8ba34b1df85bde3dd209d068936802b87f3ab8baa1d10ce9
typedclojure/typedclojure
core.clj
(ns clojure.core.typed.test.CTYP-234.core (:require [typed.clojure :as t] [clojure.core.typed.test.CTYP-234.dep :as other])) (t/ann foo [other/MyType -> t/AnyInteger]) (defn foo [x] (:bar x))
null
https://raw.githubusercontent.com/typedclojure/typedclojure/1b3c9ef6786a792ae991c438ea8dca31175aa4a7/typed/clj.checker/test/clojure/core/typed/test/CTYP_234/core.clj
clojure
(ns clojure.core.typed.test.CTYP-234.core (:require [typed.clojure :as t] [clojure.core.typed.test.CTYP-234.dep :as other])) (t/ann foo [other/MyType -> t/AnyInteger]) (defn foo [x] (:bar x))
8406b97a46a67b5a43213153569d1d81acea9bbfed961b0cac388e0874b5385d
theodormoroianu/SecondYearCourses
HaskellChurch_20210415163305.hs
{-# LANGUAGE RankNTypes #-} module HaskellChurch where A boolean is any way to choose between two alternatives newtype CBool = CBool {cIf :: forall t. t -> t -> t} An instance to show as regular Booleans instance Show CBool where show b = "cBool " <> (show $ cIf b True False) The boolean constant true alway...
null
https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/5e359e6a7cf588a527d27209bf53b4ce6b8d5e83/FLP/Laboratoare/Lab%209/.history/HaskellChurch_20210415163305.hs
haskell
# LANGUAGE RankNTypes # The boolean negation switches the alternatives The boolean conjunction can be built as a conditional The boolean disjunction can be built as a conditional a pair is a way to compute something based on the values contained within the pair. a function to be applied on the values, it will apply i...
module HaskellChurch where A boolean is any way to choose between two alternatives newtype CBool = CBool {cIf :: forall t. t -> t -> t} An instance to show as regular Booleans instance Show CBool where show b = "cBool " <> (show $ cIf b True False) The boolean constant true always chooses the first alternat...
90f37bc8bb6710d1cfae69369ff72bac54cf1b8dce982e3b148c3f46212d5fbb
maximedenes/native-coq
constrintern.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/maximedenes/native-coq/3623a4d9fe95c165f02f7119c0e6564a83a9f4c9/interp/constrintern.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * constr_expr -> glob_constr transla...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Pp open Errors open Util...
b166fd8410a5bff78b55a34d1bd42813c91fdeadf9cd071eaf054ece66f2c10a
ocaml-doc/voodoo
markdown.ml
Markdown renderer open Omd open Result let ( >>= ) m f = match m with Ok x -> f x | Error y -> Error y type intermediate = | Bl of Odoc_document.Types.Block.t | It of Odoc_document.Types.Item.t let rec inline : 'attr inline -> Odoc_document.Types.Inline.t = function | Concat (_, is) -> inlines is | Text (_...
null
https://raw.githubusercontent.com/ocaml-doc/voodoo/c190a73e860bf6b5b33d414a83e5df1e81b7a622/src/voodoo-gen/markdown.ml
ocaml
Markdown renderer open Omd open Result let ( >>= ) m f = match m with Ok x -> f x | Error y -> Error y type intermediate = | Bl of Odoc_document.Types.Block.t | It of Odoc_document.Types.Item.t let rec inline : 'attr inline -> Odoc_document.Types.Inline.t = function | Concat (_, is) -> inlines is | Text (_...
74d2a11562e5939d9b876e5cd81031972ec502a5395b842d13460255181f4e7d
input-output-hk/ouroboros-network
VolatileDB.hs
module Ouroboros.Consensus.Storage.VolatileDB (module X) where import Ouroboros.Consensus.Storage.VolatileDB.API as X import Ouroboros.Consensus.Storage.VolatileDB.Impl as X
null
https://raw.githubusercontent.com/input-output-hk/ouroboros-network/c82309f403e99d916a76bb4d96d6812fb0a9db81/ouroboros-consensus/src/Ouroboros/Consensus/Storage/VolatileDB.hs
haskell
module Ouroboros.Consensus.Storage.VolatileDB (module X) where import Ouroboros.Consensus.Storage.VolatileDB.API as X import Ouroboros.Consensus.Storage.VolatileDB.Impl as X
c5477ca15275660e9823597cd4cd39aa707c92656cbae8201b35d1adfb5c1b3a
tov/dssl2
object.rkt
#lang racket/base (provide object-base object-base? object-base-info object-base-contract-paramses object-base-reflect object-info object-info-name object-info-projector object-info-interfaces object-info-method-infos method-info...
null
https://raw.githubusercontent.com/tov/dssl2/105d18069465781bd9b87466f8336d5ce9e9a0f3/private/object.rkt
racket
projector is map-methods
#lang racket/base (provide object-base object-base? object-base-info object-base-contract-paramses object-base-reflect object-info object-info-name object-info-projector object-info-interfaces object-info-method-infos method-info...
ad058542e8ce8df0c44800578fa9fc0ba1def9859572180c8b122dbc5c9585d8
HaskVan/HaskellKoans
Currification.hs
module Currification (tests) where import Test.Hspec (Spec, describe, it) import Test.HUnit (assertBool, assertEqual) tests :: Spec tests = describe "Currification" $ do testCurrificationPlus testCurrificationMap testCurrificationFilter failError msg = const $ error $ "You should try using \x1B[33;1m\...
null
https://raw.githubusercontent.com/HaskVan/HaskellKoans/5553712ec7b3f76f3a286249b971e633af725d90/test/Currification.hs
haskell
module Currification (tests) where import Test.Hspec (Spec, describe, it) import Test.HUnit (assertBool, assertEqual) tests :: Spec tests = describe "Currification" $ do testCurrificationPlus testCurrificationMap testCurrificationFilter failError msg = const $ error $ "You should try using \x1B[33;1m\...
0af3841285bd793820b7f1792ba7180ab9f78d2d852d28f70fda3421ce126215
cjdev/haskell-fundamentals
HelloBob.hs
module HelloBob where main :: IO () main = putStrLn "Hello, Bob!"
null
https://raw.githubusercontent.com/cjdev/haskell-fundamentals/03982d7b3ca140bfecc69fa4873fcc0e4fa54044/src/HelloBob.hs
haskell
module HelloBob where main :: IO () main = putStrLn "Hello, Bob!"
eb03d95e15216fe0d84b6ee2a5400e32826beed7a6296842c487f23b451ad1e7
Kappa-Dev/KappaTools
primitives.ml
(******************************************************************************) (* _ __ * The Kappa Language *) | |/ / * Copyright 2010 - 2020 CNRS - Harvard Medical School - INRIA - IRIF (* | ' / ********************************************************************...
null
https://raw.githubusercontent.com/Kappa-Dev/KappaTools/777835b82f449d3d379713df76ff25fd5926b762/core/term/primitives.ml
ocaml
**************************************************************************** _ __ * The Kappa Language | ' / ******************************************************************** | . \ * This file is distributed under the terms of the |_|\_\ * GN...
| |/ / * Copyright 2010 - 2020 CNRS - Harvard Medical School - INRIA - IRIF module Transformation = struct type 'a t = | Agent of 'a | Freed of 'a Instantiation.site | Linked of 'a Instantiation.site * 'a Instantiation.site | NegativeWhatEver of 'a Instantiation.site | PositiveInternalized of...
e70ba93c43a1ced944c8de3b16cda2f405c7cd0eb923e82f04e1f06dbc76b1f9
emqx/emqx
emqx_mgmt_api_metrics.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . %% 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 o...
null
https://raw.githubusercontent.com/emqx/emqx/dbc10c2eed3df314586c7b9ac6292083204f1f68/apps/emqx_management/src/emqx_mgmt_api_metrics.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2020 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(emqx_mgmt_api_metrics). -behaviour(minirest_api). -include_lib("typerefl/include/types...
ff1657cc6f61d821502fc8a969f1efca04eb89f88c1b77af76d271760fc78f3c
agrafix/superrecord
SuperRecord.hs
# LANGUAGE RoleAnnotations # # LANGUAGE CPP # # LANGUAGE FunctionalDependencies # # LANGUAGE PolyKinds # {-# LANGUAGE GADTs #-} {-# LANGUAGE BangPatterns #-} # LANGUAGE TypeApplications # # LANGUAGE FlexibleContexts # {-# LANGUAGE ConstraintKinds #-} # LANGUAGE ExistentialQuantification # # LANGUAGE UndecidableInstance...
null
https://raw.githubusercontent.com/agrafix/superrecord/f1c8cf87fd25243e715fd9585e595a90fff34050/src/SuperRecord.hs
haskell
# LANGUAGE GADTs # # LANGUAGE BangPatterns # # LANGUAGE ConstraintKinds # # LANGUAGE RankNTypes # * Basics * Reflection * Lens interop * Machinery * Unsafe operations | Sort a list of fields using merge sort, alias to 'FieldListSort' | The core record type. Prefer this type when manually writing type signatures...
# LANGUAGE RoleAnnotations # # LANGUAGE CPP # # LANGUAGE FunctionalDependencies # # LANGUAGE PolyKinds # # LANGUAGE TypeApplications # # LANGUAGE FlexibleContexts # # LANGUAGE ExistentialQuantification # # LANGUAGE UndecidableInstances # # LANGUAGE TypeFamilies # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleIn...
81bdc1de6cd4a50bb66a1286ec665d427bec0779afa5a7cc8783ec6e2eec63be
cedlemo/OCaml-GI-ctypes-bindings-generator
Recent_filter_flags.ml
open Ctypes open Foreign type t = Uri | Display_name | Mime_type | Application | Group | Age type t_list = t list let of_value v = if v = Unsigned.UInt32.of_int 1 then Uri else if v = Unsigned.UInt32.of_int 2 then Display_name else if v = Unsigned.UInt32.of_int 4 then Mime_type else if v = Unsigned.UInt32.of_...
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Recent_filter_flags.ml
ocaml
open Ctypes open Foreign type t = Uri | Display_name | Mime_type | Application | Group | Age type t_list = t list let of_value v = if v = Unsigned.UInt32.of_int 1 then Uri else if v = Unsigned.UInt32.of_int 2 then Display_name else if v = Unsigned.UInt32.of_int 4 then Mime_type else if v = Unsigned.UInt32.of_...
db27debf617ff7c9edb329bacae6ce03370765c7c7084af43996235123222a41
district0x/cljs-web3-next
all.cljs
(ns browser-test.all (:require-macros [cljs.test :refer [deftest testing is async]] [cljs.core.async.macros :refer [go]]) (:require [cljs.test :as t] [cljs-web3-next.core :as web3-core] [cljs-web3-next.eth :as web3-eth] [cljs-web3-next.utils :as web3-utils] ...
null
https://raw.githubusercontent.com/district0x/cljs-web3-next/69b4eb42d3e6eea33bb7dc23e2d6ced6c3459fae/browser-test/all.cljs
clojure
Not working with testrpc (is (= (web3/to-hex js/Web3 "A") "0x41")) (is (= (web3/to-ascii "0x41") "A")) (is (= (web3/from-ascii "A") "0x41")) (is (web3/address? "0x6fce64667819c82a8bcbb78e294d7b444d2e1a29")) (is (web3/current-provider w3)) (is (= (web3-settings/default-block w3) "latest"))
(ns browser-test.all (:require-macros [cljs.test :refer [deftest testing is async]] [cljs.core.async.macros :refer [go]]) (:require [cljs.test :as t] [cljs-web3-next.core :as web3-core] [cljs-web3-next.eth :as web3-eth] [cljs-web3-next.utils :as web3-utils] ...
bdb4e230c4f7e832da2babc0d859a0c96ecec0ee19df169c968fc8bef1ae8805
pavlobaron/ErlangOTPBookSamples
macros1.erl
-module(macros1). -export([sum/1]). -define(CONST, 123). sum(X) -> X + ?CONST.
null
https://raw.githubusercontent.com/pavlobaron/ErlangOTPBookSamples/50094964ad814932760174914490e49618b2b8c2/sprache/macros1.erl
erlang
-module(macros1). -export([sum/1]). -define(CONST, 123). sum(X) -> X + ?CONST.
dd317f0eb49d08a907f0c09cfd9713b464e5db0e4ab91b9122bb13298a4b1ce1
lambe-lang/nethra
render.mli
val render_binding : Format.formatter -> Binding.t -> unit val render_term : Format.formatter -> Term.t -> unit val render_localized : Format.formatter -> Term.t Localized.t -> unit
null
https://raw.githubusercontent.com/lambe-lang/nethra/d803be8005021b3ee12d45768e90bb95645b226c/lib/nethra/toy/cst/render.mli
ocaml
val render_binding : Format.formatter -> Binding.t -> unit val render_term : Format.formatter -> Term.t -> unit val render_localized : Format.formatter -> Term.t Localized.t -> unit
6f82d7a21a01c03a3875c10c5a1768183afedfc5722045a453939853fb9828e7
hellopatrick/xmas
main.ml
open Containers let input = IO.read_lines_l stdin module C = Xmas.Coordinate module M = Map.Make (C) module S = Set.Make (C) let starts c m = m |> M.filter (fun _ (h, _) -> Char.equal h c) |> M.keys |> List.of_iter let goal m = m |> M.filter (fun _ (h, _) -> Char.equal h 'E') |> M.choose |> fst let neighbors (x, ...
null
https://raw.githubusercontent.com/hellopatrick/xmas/ff2cbbfb2d569aabd33905e1caece50f88c8c54e/2022/day12/main.ml
ocaml
open Containers let input = IO.read_lines_l stdin module C = Xmas.Coordinate module M = Map.Make (C) module S = Set.Make (C) let starts c m = m |> M.filter (fun _ (h, _) -> Char.equal h c) |> M.keys |> List.of_iter let goal m = m |> M.filter (fun _ (h, _) -> Char.equal h 'E') |> M.choose |> fst let neighbors (x, ...
fb18f9c92504222c4010e782b28370ed22397ba10a85100915b39caec512ad18
LukaKurnjek/plutus-pioneer-program-book
token-name.hs
module Main ( main ) where import Data.String (IsString (..)) import System.Environment (getArgs) import Week06.Utils (unsafeTokenNameToHex) main :: IO () main = do [tn'] <- getArgs let tn = fromString tn' putStrLn $ unsafeTokenNameToHex tn
null
https://raw.githubusercontent.com/LukaKurnjek/plutus-pioneer-program-book/0e69b2719dc7412a412a546825a002be5209e733/code/week06/app/token-name.hs
haskell
module Main ( main ) where import Data.String (IsString (..)) import System.Environment (getArgs) import Week06.Utils (unsafeTokenNameToHex) main :: IO () main = do [tn'] <- getArgs let tn = fromString tn' putStrLn $ unsafeTokenNameToHex tn
bf52c6ce819d8a3585f5331f85b82520c9a5d52879c317025ec43c78ea58bf47
vbrankov/hdf5-ocaml
struct.mli
open Type module Ext : sig type t end module Mem : sig type t end module Ptr : sig type t val unsafe_next : t -> int -> unit val unsafe_prev : t -> int -> unit val unsafe_move : t -> int -> int -> unit val next : t -> int -> unit val prev : t -> int -> unit val move : t -> int -> int -> unit va...
null
https://raw.githubusercontent.com/vbrankov/hdf5-ocaml/7abc763189767cd6c92620f29ce98f6ee23ba88f/src/caml/struct.mli
ocaml
* A more efficient version of [get_string] which avoids [memcpy]. * A more efficient version of [set_string] which avoids [memcpy]. * Must be called before each call to [Marshal.to_*] to preserve sharing. * Must be called before each call to [Marshal.from_*] to preserve sharing.
open Type module Ext : sig type t end module Mem : sig type t end module Ptr : sig type t val unsafe_next : t -> int -> unit val unsafe_prev : t -> int -> unit val unsafe_move : t -> int -> int -> unit val next : t -> int -> unit val prev : t -> int -> unit val move : t -> int -> int -> unit va...
cc14297c3fe617dfb19082086fe23597513f2eea80b069ebdc0c1378946a425a
cognitect/transit-cljs
test_runner.cljs
(ns transit.test-runner (:require [cljs.test :refer [run-tests]] [transit.test.core])) (set! *print-newline* false) (if (exists? js/print) (set-print-fn! js/print) (enable-console-print!)) (run-tests 'transit.test.core)
null
https://raw.githubusercontent.com/cognitect/transit-cljs/d464dc9d286c8ad0375becadc2261d63be31016a/test/transit/test_runner.cljs
clojure
(ns transit.test-runner (:require [cljs.test :refer [run-tests]] [transit.test.core])) (set! *print-newline* false) (if (exists? js/print) (set-print-fn! js/print) (enable-console-print!)) (run-tests 'transit.test.core)
94729e5a7ad12bc5e1ba7a7273c42d8b339305873f71382ae41d8b4f3f858909
seantempesta/cljs-react-navigation
handlers.cljs
(ns expo-example.handlers (:require [re-frame.core :refer [reg-event-db ->interceptor]] [clojure.spec.alpha :as s] [expo-example.db :as db :refer [app-db]])) ;; -- Interceptors ---------------------------------------------------------- ;; ;; See -frame/blob/develop/docs/Interceptors.md ;; (defn check-and...
null
https://raw.githubusercontent.com/seantempesta/cljs-react-navigation/d8f6f998543608e930de8d565e7b48221ecfbe8a/examples/re-frame/expo-example/src/expo_example/handlers.cljs
clojure
-- Interceptors ---------------------------------------------------------- See -frame/blob/develop/docs/Interceptors.md -- Handlers --------------------------------------------------------------
(ns expo-example.handlers (:require [re-frame.core :refer [reg-event-db ->interceptor]] [clojure.spec.alpha :as s] [expo-example.db :as db :refer [app-db]])) (defn check-and-throw "Throw an exception if db doesn't have a valid spec." [spec db] (when-not (s/valid? spec db) (let [explain-data (s/...
6f140e80347fe502b1e8f7e6494cdd72cd018052c76c4dfba33883982086a4d0
sile/otp_passage
erlang_passage.erl
2017 < > %% %% @doc `erlang' module wrapper for providing tracing facility. %% The tracing facility is based on < a href=" / sile / passage">passage</a > . -module(erlang_passage). %%------------------------------------------------------------------------------ %% Exported API %%-------------------------------...
null
https://raw.githubusercontent.com/sile/otp_passage/b3fc076da30ca469385dbf90bde96a85bc713045/src/erlang_passage.erl
erlang
@doc `erlang' module wrapper for providing tracing facility. ------------------------------------------------------------------------------ Exported API ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Expo...
2017 < > The tracing facility is based on < a href=" / sile / passage">passage</a > . -module(erlang_passage). -export([spawn/1, spawn/2, spawn/3, spawn/4]). -export([spawn_link/1, spawn_link/2, spawn_link/3, spawn_link/4]). -export([spawn_monitor/1, spawn_monitor/3]). -export([spawn_opt/2, spawn_opt/3, spawn_...
a8dc594b0ab0d75f96a1476e3c3a86793939385d2c7c2add42866df2ad296be4
igorhvr/bedlam
type-system.scm
PROCEDURES AND PREDICATES ; ; ; ; ; ; ; ; ; ; (define type-of-hook (make-hook native-type-of)) (define type<=-hook (make-hook native-type<=)) (define (type-of o) (invoke-hook type-of-hook o)) (define (type<= x y) (if (eq? x y) #t (invoke-hook type<=-hook x y))) (define (type= x y) (and (type<= x y) (type<= y x))) (d...
null
https://raw.githubusercontent.com/igorhvr/bedlam/b62e0d047105bb0473bdb47c58b23f6ca0f79a4e/sisc/sisc-1.16.6/full-src/sisc/src/sisc/modules/type-system.scm
scheme
; ; ; ; ; ; ; ; ; NB: c must be a sub-type of both types R5RS TYPES ;;;;;;;;;; base type (<value>) of all of them. Caveat: instead of a pair and null type there is just a list type.
(define type-of-hook (make-hook native-type-of)) (define type<=-hook (make-hook native-type<=)) (define (type-of o) (invoke-hook type-of-hook o)) (define (type<= x y) (if (eq? x y) #t (invoke-hook type<=-hook x y))) (define (type= x y) (and (type<= x y) (type<= y x))) (define (instance-of? x y) (type<= (type-of x) y))...
4f7b54f54f418b897dedf6258e1c8b5646cc5887bdc8145060cd22ebdded6dc8
joeltg/mit-scheme-kernel
checkbox.scm
(define (make-checkbox-state layout #!optional description value) `((value . (if (default-object? value) #f value)) (description . ,(if (default-object? description) "" description)) (disabled . #f) (layout . ,(make-widget-model layout)) (_dom_classes . #()) (continuous_update . #t))) (define (ma...
null
https://raw.githubusercontent.com/joeltg/mit-scheme-kernel/b8ed3443a075e46567570062d73d3eb775b8743f/src/runtime/widgets/checkbox.scm
scheme
(define (make-checkbox-state layout #!optional description value) `((value . (if (default-object? value) #f value)) (description . ,(if (default-object? description) "" description)) (disabled . #f) (layout . ,(make-widget-model layout)) (_dom_classes . #()) (continuous_update . #t))) (define (ma...
50ca3947651b2a9dd09a215a41a623f5d5621d66d2dac49a1e7f8f2e0f772d11
hbr/albatross
induction.mli
open Term val put_assertion: int -> term -> Context.t -> unit
null
https://raw.githubusercontent.com/hbr/albatross/8f28ef97951f92f30dc69cf94c0bbe20d64fba21/ocaml/alba1/induction.mli
ocaml
open Term val put_assertion: int -> term -> Context.t -> unit
d4b0aabd134209cf233950c05ca49fd88ab5499ba229f57422181fd874861f9a
kennethkalmer/re-frame-semantic-ui-react-github-widget
db.cljs
(ns re-frame-semantic-ui-react-github-widget.db) (def default-db {:username ""}) (defn selected-repo [repos selected] (some #(when (= (:id %) selected) %) repos))
null
https://raw.githubusercontent.com/kennethkalmer/re-frame-semantic-ui-react-github-widget/5849fe00386518e5e28013a36c76efd0eb4b4c12/src/cljs/re_frame_semantic_ui_react_github_widget/db.cljs
clojure
(ns re-frame-semantic-ui-react-github-widget.db) (def default-db {:username ""}) (defn selected-repo [repos selected] (some #(when (= (:id %) selected) %) repos))
6676d08f36b1a1800ff18750c8b10229ecfdc4aa492e89f71eb36192328e5f56
semperos/rankle
rankle.clj
(ns com.semperos.rankle (:refer-clojure :exclude [= + - * / > < >= <= count drop not not= take]) (:require [clojure.core.matrix :as mx] [clojure.core.memoize :as memo] [clojure.pprint :refer [cl-format]] [clojure.set :as set] [clojure.string :as str] [cloj...
null
https://raw.githubusercontent.com/semperos/rankle/d898c144e33056d743848620f17564d88d87e874/src/com/semperos/rankle.clj
clojure
; Implementation ;; TODO Aliasing here as reminder to consider filling, since take fills when over-taking. TODO Handle higher ranked y's TODO Consider what from clojure.core.matrix could be used here. N.B. The implementation of mx/add, for example, is not equivalent to this, because this chec...
(ns com.semperos.rankle (:refer-clojure :exclude [= + - * / > < >= <= count drop not not= take]) (:require [clojure.core.matrix :as mx] [clojure.core.memoize :as memo] [clojure.pprint :refer [cl-format]] [clojure.set :as set] [clojure.string :as str] [cloj...
fa6ada8f070957f1790a1ad74eb9f03ed93266070d429141ee66913614621e39
j-mie6/ParsleyHaskell
Context.hs
# LANGUAGE DeriveAnyClass , MagicHash , DerivingStrategies , UnboxedTuples , PatternSynonyms # MagicHash, DerivingStrategies, UnboxedTuples, PatternSynonyms #-} | Module : Parsley . Internal . Backend...
null
https://raw.githubusercontent.com/j-mie6/ParsleyHaskell/045ab78ed7af0cbb52cf8b42b6aeef5dd7f91ab2/parsley-core/src/ghc-8.10%2B/Parsley/Internal/Backend/Machine/Types/Context.hs
haskell
* Core Data-types * Subroutines $sub-doc * Join Points $join-doc * Registers ** Putters ** Getters * Debug Level Tracking $debug-doc * Unique Offsets $offset-doc * Token Credit System (Piggy-banks) $piggy-doc ** Modifiers ** Getters ** Input Reclamation ^ Map of subroutine bindings. ^ Map of join poi...
# LANGUAGE DeriveAnyClass , MagicHash , DerivingStrategies , UnboxedTuples , PatternSynonyms # MagicHash, DerivingStrategies, UnboxedTuples, PatternSynonyms #-} | Module : Parsley . Internal . Backend...
4b6ccb9bd52102d3e387eb2fe7d32d638a3cd0c8561a00bde55273057d152536
kmi/irs
saved-new.lisp
Mode : Lisp ; Package : Author : The Open University (in-package "OCML") (in-ontology medical-guidelines) (def-class decision-support-model () ((has-computational-form :type utility-centred-decision-support-system) (maximizes-payoff-type :type payoff-type))) (def-class composite-planning-expression ...
null
https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/ontologies/domains/medical-guidelines/saved-new.lisp
lisp
Package :
Author : The Open University (in-package "OCML") (in-ontology medical-guidelines) (def-class decision-support-model () ((has-computational-form :type utility-centred-decision-support-system) (maximizes-payoff-type :type payoff-type))) (def-class composite-planning-expression () ?x :iff-def (or (and (=...
034c852015565721d735a4da472aa8fdf690baf2415f447e715e1ddd9f21d908
apibot-org/apibot
assert.cljs
(ns apibot.views.inspector.assert "An inspector component for assert-node" (:require [apibot.grexec.assert-node :as assert-node] [apibot.views.code-editor :refer [create-editor]] [apibot.views.commons :as commons :refer [form-group-bindable]] [clojure.string :as string] [reagent.core :refer [cur...
null
https://raw.githubusercontent.com/apibot-org/apibot/26c77c688980549a8deceeeb39f01108be016435/src/cljs/apibot/views/inspector/assert.cljs
clojure
XXX can't use the name 'assert' because its a core macro, jammer.
(ns apibot.views.inspector.assert "An inspector component for assert-node" (:require [apibot.grexec.assert-node :as assert-node] [apibot.views.code-editor :refer [create-editor]] [apibot.views.commons :as commons :refer [form-group-bindable]] [clojure.string :as string] [reagent.core :refer [cur...
e1bdd4370b1da3634ed6e942b8333de2dda6849b9daa127d6256c1321b91ec14
na4zagin3/satyrographos
buildScript_prim.ml
open Core type position = int * int [@@deriving sexp] let position_of_range (r : Sexp.Annotated.range) = let pos = r.start_pos in (pos.line, pos.col + 1) type link = { dst: string; src: string; } [@@deriving sexp] type font = [ | `Single of string | `Collection of string * int ] [@@deriving sexp] type...
null
https://raw.githubusercontent.com/na4zagin3/satyrographos/d2943bac9659d20746720ab36ebe11ae59203d32/src/buildScript_prim.ml
ocaml
TODO Return None Compatibility treatment Read
open Core type position = int * int [@@deriving sexp] let position_of_range (r : Sexp.Annotated.range) = let pos = r.start_pos in (pos.line, pos.col + 1) type link = { dst: string; src: string; } [@@deriving sexp] type font = [ | `Single of string | `Collection of string * int ] [@@deriving sexp] type...
dc14c7b745c1294264d3b0946d87ad7deb6ca3ad976fcdab48b957b948ef96b7
RichiH/git-annex
Queue.hs
Persistent sqlite database queues - - Copyright 2015 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2015 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} {-# LANGUAGE BangPatterns #-} module Database.Queue ( DbQueue, DbConcurrency(..), openDbQueue...
null
https://raw.githubusercontent.com/RichiH/git-annex/bbcad2b0af8cd9264d0cb86e6ca126ae626171f3/Database/Queue.hs
haskell
# LANGUAGE BangPatterns # Blocks until all queued changes have been written to the database. A queue of actions to perform, with a count of the number of actions - queued, and a last commit time.
Persistent sqlite database queues - - Copyright 2015 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2015 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} module Database.Queue ( DbQueue, DbConcurrency(..), openDbQueue, queryDbQueue, closeDbQueue...
954560183da83d81fc797ce5d8bab76c33d3c1c8955da4cfc3697a22ff2f3dcb
the-dr-lazy/cascade
User.hs
| Module : Test . Cascade . Api . StateMachine . Command . User Description : ! ! ! INSERT MODULE SHORT DESCRIPTION ! ! ! Copyright : ( c ) 2020 - 2021 Cascade License : MPL 2.0 Maintainer : < > ( the-dr-lazy.github.io ) Stability : Stable Portability : POSIX ! ! ! INSERT MODULE L...
null
https://raw.githubusercontent.com/the-dr-lazy/cascade/014a5589a2763ce373e8c84a211cddc479872b44/cascade-api/test/Test/Cascade/Api/StateMachine/Command/User.hs
haskell
| Module : Test . Cascade . Api . StateMachine . Command . User Description : ! ! ! INSERT MODULE SHORT DESCRIPTION ! ! ! Copyright : ( c ) 2020 - 2021 Cascade License : MPL 2.0 Maintainer : < > ( the-dr-lazy.github.io ) Stability : Stable Portability : POSIX ! ! ! INSERT MODULE L...
cfdbaf3e1ea8ba53c5d18ed25334e782279ebedbca0af3d56c9bce592fb1b784
iijlab/direct-hs
LoginInfo.hs
# LANGUAGE DeriveGeneric # {-# LANGUAGE OverloadedStrings #-} module Web.Direct.LoginInfo ( LoginInfo(..) , serializeLoginInfo , deserializeLoginInfo ) where import Data.Aeson (FromJSON, ToJSON, fieldLabelModifier) import qualified Data.Aeson as Json import qualified...
null
https://raw.githubusercontent.com/iijlab/direct-hs/2422fd6fe008109e8dfb74f31d65b0d5a0330788/direct-hs/src/Web/Direct/LoginInfo.hs
haskell
# LANGUAGE OverloadedStrings # --------------------------------------------------------------
# LANGUAGE DeriveGeneric # module Web.Direct.LoginInfo ( LoginInfo(..) , serializeLoginInfo , deserializeLoginInfo ) where import Data.Aeson (FromJSON, ToJSON, fieldLabelModifier) import qualified Data.Aeson as Json import qualified Data.ByteString.Lazy as B import q...
997eebbb3eb8b4c4e615f3790cd0bca6f55df69ce5b580f59a85f128dd78db86
illiichi/orenolisp
window_indicator.clj
(ns orenolisp.view.ui.component.window-indicator (:require [orenolisp.view.ui.fx-util :as fx] [orenolisp.view.ui.theme :as theme] [orenolisp.view.ui.component.animations :as anim]) (:import (javafx.scene.canvas Canvas) [javafx.scene.effect Bloom] (javafx.geometry Insets...
null
https://raw.githubusercontent.com/illiichi/orenolisp/7b085fb687dbe16b5cbe8c739238bbaf79156814/src/orenolisp/view/ui/component/window_indicator.clj
clojure
(ns orenolisp.view.ui.component.window-indicator (:require [orenolisp.view.ui.fx-util :as fx] [orenolisp.view.ui.theme :as theme] [orenolisp.view.ui.component.animations :as anim]) (:import (javafx.scene.canvas Canvas) [javafx.scene.effect Bloom] (javafx.geometry Insets...
ef6e23f0906a49a6fdc9ab26fbeec106b4539146cbe9a235037dac5f619ba3d7
exercism/babashka
example.clj
(ns phone-number (:require [clojure.string :as str])) (defn- digits-only [input] (str/replace input #"\D" "")) (defn- extract-parts [input] (if-let [matches (re-find #"^1?([2-9]..)([2-9]..)(....)$" input)] (rest matches) ["000" "000" "0000"])) (defn- parts [input] (-> input digits-only ...
null
https://raw.githubusercontent.com/exercism/babashka/707356c52e08490e66cb1b2e63e4f4439d91cf08/exercises/practice/phone-number/.meta/src/example.clj
clojure
(ns phone-number (:require [clojure.string :as str])) (defn- digits-only [input] (str/replace input #"\D" "")) (defn- extract-parts [input] (if-let [matches (re-find #"^1?([2-9]..)([2-9]..)(....)$" input)] (rest matches) ["000" "000" "0000"])) (defn- parts [input] (-> input digits-only ...
9f92a6629862e1b37b67d69389f470299430060a8c8212bf55aa784d06f2684c
lispm/FRL
init.lisp
;; init - this file is used to both load frl into lisp and to create FRL ( by the file doit.l ) ;; This file can create a compiled or interpretive ;; version of frl.(see notes below). ;; ;; ;; set interpret-mode to t if you wish to load an interpretive version of frl . ;;(setq interpret-mode t) ;; #+franz (c...
null
https://raw.githubusercontent.com/lispm/FRL/1a2aadf71062a89474b1164e4539911011b3b63e/init.lisp
lisp
This file can create a compiled or interpretive version of frl.(see notes below). set interpret-mode to t if you wish to load an (setq interpret-mode t) if interpret-mode is not set, set it too nil. load everything in compiled. This is commented out since it does not mean anything yet These readtabl...
init - this file is used to both load frl into lisp and to create FRL ( by the file doit.l ) interpretive version of frl . #+franz (cvttomaclisp) Important if you move the frl source , remember to remove frllib / ftop.o and recompile . ( setq frl - main - dir ' |//u0//csam//steve//rosenberg| ) #+unix pwd...
94d35845b58a862fd9bdf7ebe888a610e59b26008f423064e4da778d3a954362
jacekschae/learn-reitit-course-files
router.clj
(ns cheffy.router (:require [reitit.ring :as ring] [cheffy.recipe.routes :as recipe] [cheffy.account.routes :as account] [reitit.swagger :as swagger] [reitit.swagger-ui :as swagger-ui] [muuntaja.core :as m] [reitit.ring.middleware.muuntaja :as mu...
null
https://raw.githubusercontent.com/jacekschae/learn-reitit-course-files/c13a8eb622a371ad719d3d9023f1b4eff9392e4c/increments/46-account-tests/src/cheffy/router.clj
clojure
exception/exception-middleware
(ns cheffy.router (:require [reitit.ring :as ring] [cheffy.recipe.routes :as recipe] [cheffy.account.routes :as account] [reitit.swagger :as swagger] [reitit.swagger-ui :as swagger-ui] [muuntaja.core :as m] [reitit.ring.middleware.muuntaja :as mu...
84ebb5972c1cc77f236f33317fc5f0c34e95ed204df59bc1203bf9c01d047e5c
ocaml/ocaml
config.fixed.ml
#2 "utils/config.fixed.ml" (**************************************************************************) (* *) (* OCaml *) (* ...
null
https://raw.githubusercontent.com/ocaml/ocaml/dcf9181b56f1b08989b878110114dbe184576495/utils/config.fixed.ml
ocaml
************************************************************************ OCaml ...
#2 "utils/config.fixed.ml" , Tarides UK . Copyright 2022 David Allsopp Ltd. the GNU Lesser General Public License version 2.1 , with the let boot_cannot_call s = "/ The boot compiler should not call " ^ s let bindi...
76ea936ee5ba7418355ffc5c3bd9d427808c1162ab7c5b817b9a97c64d4262f4
clojurewerkz/gizmo
service.clj
(ns ^{:doc "Registerable services for flexible architectures. Services are usually defined in a cooperative manner, you can check out UDP server for details on how to implement a cooperative service. " } clojurewerkz.gizmo.service) (defonce ^:dynamic ^{:doc "True by default. If set to false, no service will be re...
null
https://raw.githubusercontent.com/clojurewerkz/gizmo/7fdad2b8cd59b72bc243ff8b28da72f71d33b72e/src/clojurewerkz/gizmo/service.clj
clojure
(ns ^{:doc "Registerable services for flexible architectures. Services are usually defined in a cooperative manner, you can check out UDP server for details on how to implement a cooperative service. " } clojurewerkz.gizmo.service) (defonce ^:dynamic ^{:doc "True by default. If set to false, no service will be re...
f12758a585428777da7e527bc7b7995280c78eab882aa59d28fd4ce3f39bb375
dra27/stdlib-sync
float.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/dra27/stdlib-sync/1786258982ed27bd0142b866059ad3fb158ea062/stdlib/float.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt , LexiFi Copyright 2018 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the * Floating - point arithmetic . OCaml...
fb9cef7ccd1135fb63f10e400ca065eb0c38c3a7c0f16fda13c155c14a8bae49
adamdoupe/find_ear_rails
run_tests.ml
open OUnit let suite = "Whole project test suite" >::: [Typing_suite.suite; Cfg_suite.suite; Parser_suite.suite; Profile_suite.suite; Yaml_suite.suite; Contracts_suite.suite; ] let _ = if OUnit_success.was_successful (run_test_tt suite) then () else exit 1
null
https://raw.githubusercontent.com/adamdoupe/find_ear_rails/38f892f9962ad415a583973caf24fbab1a011be1/diamondback-ruby-0.20090726/tests/run_tests.ml
ocaml
open OUnit let suite = "Whole project test suite" >::: [Typing_suite.suite; Cfg_suite.suite; Parser_suite.suite; Profile_suite.suite; Yaml_suite.suite; Contracts_suite.suite; ] let _ = if OUnit_success.was_successful (run_test_tt suite) then () else exit 1
f682318d11326e4d893636d42494be990b20edbb63885dd20ee1d0ae1843bc80
purescript/spago
Spago.hs
module Spago (main) where import Spago.Prelude import Spago.Env import Data.Version (showVersion) import qualified Paths_spago as Pcli import Main.Utf8 (withUtf8) import Spago.CLI (Command(..)) import qualified System.Environment a...
null
https://raw.githubusercontent.com/purescript/spago/d8ed94ee440aca6544c6e43d9874a0886ec855e9/app/Spago.hs
haskell
Stop `git` from asking for input, not gonna happen We just fail instead. Source: | Print out Spago version
module Spago (main) where import Spago.Prelude import Spago.Env import Data.Version (showVersion) import qualified Paths_spago as Pcli import Main.Utf8 (withUtf8) import Spago.CLI (Command(..)) import qualified System.Environment a...
13d7ecae4edeb608c3d6ec44e5a70d2664e1099afa4c4ff02b74da3c2ef8dc77
bristolpl/intensional-datatys
Constructors.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE KindSignatures # # LANGUAGE LambdaCase # The Hashable instances for Unique and Name are orphans -- but should eventually be removed when hashtables are replaced in the ConstraintSet representation . # OPTIONS_GHC -Wno - orphans...
null
https://raw.githubusercontent.com/bristolpl/intensional-datatys/ce6e7f5069530ea21a3e19c8e9e17fc23dc8e66c/src/Intensional/Constructors.hs
haskell
# LANGUAGE GADTs # but should eventually be removed when hashtables are A constructor set with a location tag identity so that multiple errors with the same constructor in different program locations are treated seperately. Don't disregard location in comparison i.e. distinguish between different sources and s...
# LANGUAGE DataKinds # # LANGUAGE FlexibleInstances # # LANGUAGE KindSignatures # # LANGUAGE LambdaCase # The Hashable instances for Unique and Name are orphans replaced in the ConstraintSet representation . # OPTIONS_GHC -Wno - orphans # module Intensional.Constructors ( Side (..), K (..), ConL, Co...
260f14077878766fdce49d6dd1f2915937162c77f857749725c6fd877c26f36f
racket/lazy
reader.rkt
#lang s-exp syntax/module-reader lazy
null
https://raw.githubusercontent.com/racket/lazy/2cc3a2434341a1a3a22a36a3fa1d1356086da274/lang/reader.rkt
racket
#lang s-exp syntax/module-reader lazy
e382be3d93cf189b172c0ff357e10edde3e9c8512220610f3ff5cf3221199f8d
kronkltd/jiksnu
notification_routes_test.clj
(ns jiksnu.modules.web.routes.notification-routes-test (:require [clojure.data.json :as json] [jiksnu.mock :as mock] [jiksnu.helpers.routes :refer [as-user response-for]] [jiksnu.test-helper :as th] [midje.sweet :refer :all] [ring.mock.request :as req]) (:...
null
https://raw.githubusercontent.com/kronkltd/jiksnu/8c91e9b1fddcc0224b028e573f7c3ca2f227e516/test/jiksnu/modules/web/routes/notification_routes_test.clj
clojure
(ns jiksnu.modules.web.routes.notification-routes-test (:require [clojure.data.json :as json] [jiksnu.mock :as mock] [jiksnu.helpers.routes :refer [as-user response-for]] [jiksnu.test-helper :as th] [midje.sweet :refer :all] [ring.mock.request :as req]) (:...
c4fb3ded3b3d92f5ea30833f8cd34ec2f4468f474feb0a5c6e14ac6a0af2f2fb
friedbrice/AutoDiff
Examples.hs
import AutoDiff -- Works for single-variable functions -- x^2 - 3x, derivative should be 2x - 3 f x = x ** 2 - 3 * x ` d f 2 ` should be ` 1 ` -- Works for functions of several variables -- f(x,y) = x^2 - 3xy + 2y^2 D_x(f)(x , y ) = 2x - 3y D_y(f)(x , y ) = -3x + 4y grad(f)(x , y ) = ( 2x - 3y , -3x + 4y ) g ...
null
https://raw.githubusercontent.com/friedbrice/AutoDiff/7885f6ecb50626e6c8183ec46af1640b25732aee/src/Examples.hs
haskell
Works for single-variable functions x^2 - 3x, derivative should be 2x - 3 Works for functions of several variables f(x,y) = x^2 - 3xy + 2y^2 Works for non-symbolic algorithms Example pulled from / automatic-differentiation-the-most-criminally-underused- tool-in-the-potential-machine-learning-toolbox/ who the ...
import AutoDiff f x = x ** 2 - 3 * x ` d f 2 ` should be ` 1 ` D_x(f)(x , y ) = 2x - 3y D_y(f)(x , y ) = -3x + 4y grad(f)(x , y ) = ( 2x - 3y , -3x + 4y ) g x y = x ** 2 - 3 * x * y + 2 * y ** 2 ` g ( Dual 2 1 ) ( Dual 1 0 ) ` should be ` Dual 0.0 1.0 ` ` g ( Dual 2 0 ) ( Dual 1 1 ) ` should be ` Dual 0.0...
bc65c727d6a99951a9e47138f93f3ff6201f8f1e155a93b0d71a79a405bc04bf
LCBH/UKano
display_interact.ml
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Cryptographic protocol verifier * * * ...
null
https://raw.githubusercontent.com/LCBH/UKano/13c046ddaca48b45d3652c3ea08e21599e051527/proverif2.01/src/display_interact.ml
ocaml
The next [module Gtk = LangDisp(LangGtk)] is giving displaying fonctions the function [display_process proc] which returns a list of "Pango strings" representing the process, and display_cpl_lst cpl_lst which is used to display the public elements during the protocol interactive reduction. For the functor [p...
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Cryptographic protocol verifier * * * ...
534e11c84acb2c272da9851421b1833e46d3e2819b4da58ec32911f6f958c774
fccm/glMLite
timer.ml
(* ocamlopt.opt -o time.opt -ccopt -L../SRC -I ../SRC GL.cmxa Glu.cmxa Glut.cmxa timer.ml *) open GL open Glu open Glut let t = ref 0.0 let col = ref 1 let display_color = function | 1 -> glColor3 ~r:1.0 ~g:0.0 ~b:0.0; | 2 -> glColor3 ~r:0.0 ~g:1.0 ~b:0.0; | 3 -> glColor3 ~r:0.0 ~g:0.0 ~b:1.0; | 4 -> glCol...
null
https://raw.githubusercontent.com/fccm/glMLite/c52cd806909581e49d9b660195576c8a932f6d33/examples/timer.ml
ocaml
ocamlopt.opt -o time.opt -ccopt -L../SRC -I ../SRC GL.cmxa Glu.cmxa Glut.cmxa timer.ml
open GL open Glu open Glut let t = ref 0.0 let col = ref 1 let display_color = function | 1 -> glColor3 ~r:1.0 ~g:0.0 ~b:0.0; | 2 -> glColor3 ~r:0.0 ~g:1.0 ~b:0.0; | 3 -> glColor3 ~r:0.0 ~g:0.0 ~b:1.0; | 4 -> glColor3 ~r:1.0 ~g:0.0 ~b:1.0; | 5 -> glColor3 ~r:1.0 ~g:1.0 ~b:0.0; | _ -> () ;; let display (...
e650134ac82a2afa0d1dbd8f4248987c871e6ee8f77f135114826fa5e4eb889a
clojure-interop/google-cloud-clients
DatabaseAdminClient$ListDatabasesFixedSizeCollection.clj
(ns com.google.cloud.spanner.admin.database.v1.DatabaseAdminClient$ListDatabasesFixedSizeCollection (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.spanner.admin.database.v1 DatabaseAdminClient$ListDatabasesFixedSizeCollection]))
null
https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.spanner/src/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClient%24ListDatabasesFixedSizeCollection.clj
clojure
(ns com.google.cloud.spanner.admin.database.v1.DatabaseAdminClient$ListDatabasesFixedSizeCollection (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.spanner.admin.database.v1 DatabaseAdminClient$ListDatabasesFixedSizeCollection]))
21f822d6fe615ab06e9ee20c7d59eca81be1571984da22a32bef9b8908ec5a78
walkable-server/realworld-fulcro
util.cljc
(ns conduit.util) (defn get-ident [x] (ffirst x)) (defn get-item [x] (second (first x))) (comment (get-ident {[:user/by-id 19] #:user{:bio "some text"}}) = > [: user / by - id 19 ] (get-item {[:user/by-id 19] #:user{:bio "some text"}}) = > # : user{:bio " some text"}#:user{:bio " some text " } ) (de...
null
https://raw.githubusercontent.com/walkable-server/realworld-fulcro/91c73e3a27621b528906d12bc22971caa9ea8d13/src/conduit/util.cljc
clojure
(ns conduit.util) (defn get-ident [x] (ffirst x)) (defn get-item [x] (second (first x))) (comment (get-ident {[:user/by-id 19] #:user{:bio "some text"}}) = > [: user / by - id 19 ] (get-item {[:user/by-id 19] #:user{:bio "some text"}}) = > # : user{:bio " some text"}#:user{:bio " some text " } ) (de...
e4d2aff4f24b1d54063979214e3315ee3c72ac595db30709f1706b5e5b0b88fc
lemmaandrew/CodingBatHaskell
old35.hs
From Return true if the given non - negative number is a multiple of 3 or 5 , but not both . Use the % \"mod\ " operator -- see Introduction to Mod Return true if the given non-negative number is a multiple of 3 or 5, but not both. Use the % \"mod\" operator -- see Introduction to Mod -} import Test.Hspec ( h...
null
https://raw.githubusercontent.com/lemmaandrew/CodingBatHaskell/d839118be02e1867504206657a0664fd79d04736/CodingBat/Logic-1/old35.hs
haskell
see Introduction to Mod see Introduction to Mod
From Return true if the given non - negative number is a multiple of 3 or 5 , but not both . Return true if the given non-negative number is a multiple of 3 or 5, but not both. -} import Test.Hspec ( hspec, describe, it, shouldBe ) old35 :: Int -> Bool old35 n = undefined main :: IO () main = hspec $ descri...
2bf013431b068b67859a3c68e942daf9da1bdc76e65f9c3a4d022c5f3b7b0e31
jumarko/clojure-experiments
error_handling.clj
(ns clojure-experiments.error-handling "Various error handling approaches. Exceptions, explicit error codes, monads, etc.") ;;; Promenade: Elegant Error handling for a More Civilized Age : :
null
https://raw.githubusercontent.com/jumarko/clojure-experiments/f0f9c091959e7f54c3fb13d0585a793ebb09e4f9/src/clojure_experiments/error_handling.clj
clojure
Promenade:
(ns clojure-experiments.error-handling "Various error handling approaches. Exceptions, explicit error codes, monads, etc.") Elegant Error handling for a More Civilized Age : :
f034e4a82989060c54d8ef200807678399f8296a4027d2712260cde354f048ba
theodormoroianu/SecondYearCourses
LambdaChurch_20210415170724.hs
module LambdaChurch where import Data.Char (isLetter) import Data.List ( nub ) class ShowNice a where showNice :: a -> String class ReadNice a where readNice :: String -> (a, String) data Variable = Variable { name :: String , count :: Int } deriving (Show, Eq, Ord) var :: String -> Variable var ...
null
https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/5e359e6a7cf588a527d27209bf53b4ce6b8d5e83/FLP/Laboratoare/Lab%209/.history/LambdaChurch_20210415170724.hs
haskell
alpha-equivalence subst u x t defines [u/x]t, i.e., substituting u for x in t This substitution avoids variable captures so it is safe to be used when reducing terms with free variables (e.g., if evaluating inside lambda abstractions) ^ substitution term ^ variable to be substitutes ^ term in which the substit...
module LambdaChurch where import Data.Char (isLetter) import Data.List ( nub ) class ShowNice a where showNice :: a -> String class ReadNice a where readNice :: String -> (a, String) data Variable = Variable { name :: String , count :: Int } deriving (Show, Eq, Ord) var :: String -> Variable var ...
b3da170b6c0a444ed997976975c9cd9222313810f442794d2a3d06634ccb610b
hadolint/language-docker
parseFile.hs
import Language.Docker import System.Environment main :: IO () main = do args <- getArgs output <- parseFile $ head args case output of Left err -> error (errorBundlePretty err) Right ast -> print (prettyPrintDockerfile ast)
null
https://raw.githubusercontent.com/hadolint/language-docker/5992510ab54675db765658cf9a2f6417dc8240a5/integration-tests/parseFile.hs
haskell
import Language.Docker import System.Environment main :: IO () main = do args <- getArgs output <- parseFile $ head args case output of Left err -> error (errorBundlePretty err) Right ast -> print (prettyPrintDockerfile ast)
a92699152d46f8434a2c893b4c07d1e51861413f022d2e12d778653238c2bf6c
MaartenFaddegon/Hoed
Properties.hs
module Properties where import Debug.Hoed.Pure import Test.QuickCheck hiding ((===)) import Test.QuickCheck.Property hiding ((===)) import Test.QuickCheck.Gen import Test.QuickCheck.Random prop_filter_t :: ((Int -> Bool) -> [Int] -> [Int]) -> (Int -> Bool) -> [Int] -> Int -> Property prop_filter_t filter_ p xs x = x ...
null
https://raw.githubusercontent.com/MaartenFaddegon/Hoed/8769d69e309928aab439b22bc3f3dbf5452acc77/tests/Prop/t5/Properties.hs
haskell
module Properties where import Debug.Hoed.Pure import Test.QuickCheck hiding ((===)) import Test.QuickCheck.Property hiding ((===)) import Test.QuickCheck.Gen import Test.QuickCheck.Random prop_filter_t :: ((Int -> Bool) -> [Int] -> [Int]) -> (Int -> Bool) -> [Int] -> Int -> Property prop_filter_t filter_ p xs x = x ...
8c51e963c04c9a23274b3c782f139b9c183774783a01bb8dc8f3a58c5d0e3c71
gas2serra/cldk
cffi-libs.lisp
(in-package :cldk-driver-xcb) (cffi:define-foreign-library libxcb (:unix "libxcb.so")) (cffi:use-foreign-library libxcb) (cffi:define-foreign-library libxcb-icccm (:unix "libxcb-icccm.so")) (cffi:use-foreign-library libxcb-icccm) (cffi:define-foreign-library libxcb-image (:unix "libxcb-image.so")) (cffi:us...
null
https://raw.githubusercontent.com/gas2serra/cldk/63c8322aedac44249ff8f28cd4f5f59a48ab1441/Drivers/XCB/cffi-libs.lisp
lisp
(in-package :cldk-driver-xcb) (cffi:define-foreign-library libxcb (:unix "libxcb.so")) (cffi:use-foreign-library libxcb) (cffi:define-foreign-library libxcb-icccm (:unix "libxcb-icccm.so")) (cffi:use-foreign-library libxcb-icccm) (cffi:define-foreign-library libxcb-image (:unix "libxcb-image.so")) (cffi:us...
e1bdc4932ad043cd60e408ec842fa267c09cdd67599f2b5985a7817efde21264
verystable/warframe-autobuilder
ComprehensiveWeaponPrinter.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} -- | -- Module : Printer.ComprehensiveWeaponPrinter -- Maintainer : -- Stability : experimental -- -- This module exports 'printComprehensiveWeapon' function which -- given a 'ComprehensiveWeapon' returns a 'Box' type. -- Both wrapped in 'Eithe...
null
https://raw.githubusercontent.com/verystable/warframe-autobuilder/015e0bb6812711ea27071816d054cbaa1c65770b/src/Printer/ComprehensiveWeaponPrinter.hs
haskell
# LANGUAGE OverloadedStrings # | Module : Printer.ComprehensiveWeaponPrinter Maintainer : Stability : experimental This module exports 'printComprehensiveWeapon' function which given a 'ComprehensiveWeapon' returns a 'Box' type. Both wrapped in 'Either' monad. # INLINE printComprehensiveWeapon #
# LANGUAGE NoImplicitPrelude # module Printer.ComprehensiveWeaponPrinter where import ClassyPrelude import Control.Lens ( (^.) ) import Printer.MeleePrinter ( printComprehensiveMelee ) import Printer.PistolPrinter ( printComprehensivePisto...
2307dcef2f05f38048ddca1ba6b0a4d327064640fab3cf44e37c3e08d005e872
Tener/deeplearning-thesis
nn-benchmark.hs
# LANGUAGE CPP # module Main where import Config import Criterion import Criterion.Main import System.Random.MWC import Text.Printf import Data.List.Split(splitPlaces) import AI.HNN.FF.Network as HNN import qualified Data.Vector.Unboxed as U import AI.Network as HasNN import AI.Calculation as HasNN import qualifie...
null
https://raw.githubusercontent.com/Tener/deeplearning-thesis/c56866bf6f48db3185b4b62348d292bf39a7a2af/src/nn-benchmark.hs
haskell
"nn.txt" biases in next layerCount lines -- in each appropriate number of biases weights in next neuronCount lines different from matlab
# LANGUAGE CPP # module Main where import Config import Criterion import Criterion.Main import System.Random.MWC import Text.Printf import Data.List.Split(splitPlaces) import AI.HNN.FF.Network as HNN import qualified Data.Vector.Unboxed as U import AI.Network as HasNN import AI.Calculation as HasNN import qualifie...
3c02472ad02fd49dafd3fa7f2b048c5b2ab3e49e4a05f062997b693fcd8d1def
zarkone/stumpwm.d
package.lisp
package.lisp (defpackage #:stumptray (:use #:cl #:alexandria) (:export *tray-viwin-background* *tray-hiwin-background* add-mode-line-hooks remove-mode-line-hooks ))
null
https://raw.githubusercontent.com/zarkone/stumpwm.d/021e51c98a80783df1345826ac9390b44a7d0aae/modules/util/stumptray/package.lisp
lisp
package.lisp (defpackage #:stumptray (:use #:cl #:alexandria) (:export *tray-viwin-background* *tray-hiwin-background* add-mode-line-hooks remove-mode-line-hooks ))
bbc79c1110b5678f5320dcaed82998a907df266e117a99d963ab1051541f4530
cmeiklejohn/riak_pg
riak_pg_console.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2013 . All Rights Reserved . %% This file is provided to you 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 ...
null
https://raw.githubusercontent.com/cmeiklejohn/riak_pg/32d46bc1909144cea93b8b98a652a00f6520ffdb/src/riak_pg_console.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissio...
Copyright ( c ) 2013 . All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY @author < > 2013 . ...
8abd2b849a3f39274f7a2991763950e431740f4f4524a8806e5438ef7a9c032c
vlaaad/reveal
action_popup.clj
(ns vlaaad.reveal.action-popup (:require [vlaaad.reveal.event :as event] [vlaaad.reveal.popup :as popup] [vlaaad.reveal.search :as search] [cljfx.lifecycle :as fx.lifecycle] [cljfx.mutator :as fx.mutator] [vlaaad.reveal.style :as style] [vlaaad.r...
null
https://raw.githubusercontent.com/vlaaad/reveal/6a294e4f8669f3320e2fef366c2a13db3c2948e4/src/vlaaad/reveal/action_popup.clj
clojure
(ns vlaaad.reveal.action-popup (:require [vlaaad.reveal.event :as event] [vlaaad.reveal.popup :as popup] [vlaaad.reveal.search :as search] [cljfx.lifecycle :as fx.lifecycle] [cljfx.mutator :as fx.mutator] [vlaaad.reveal.style :as style] [vlaaad.r...
1719707236c5860c4a554c4fd9ce52000c1b2335664379b5c59d5ae90e80265d
lamdu/lamdu
LambdaEdit.hs
module Lamdu.GUI.Expr.LambdaEdit ( make ) where import GUI.Momentu (Responsive) import qualified GUI.Momentu as M import qualified GUI.Momentu.I18N as MomentuTexts import qualified GUI.Momentu.Responsive.Expression as ResponsiveExpr import qualified GUI.Momentu.Responsive.Options as Options import qu...
null
https://raw.githubusercontent.com/lamdu/lamdu/c416b2c3862125705a04b421ccff146d10c232b1/src/Lamdu/GUI/Expr/LambdaEdit.hs
haskell
module Lamdu.GUI.Expr.LambdaEdit ( make ) where import GUI.Momentu (Responsive) import qualified GUI.Momentu as M import qualified GUI.Momentu.I18N as MomentuTexts import qualified GUI.Momentu.Responsive.Expression as ResponsiveExpr import qualified GUI.Momentu.Responsive.Options as Options import qu...
701b0acdb92cc0ee08623e226217e416e792543dcd042cceb86bcda80f662f70
teawaterwire/type-letter
dumb_views.cljs
(ns type.dumb-views) (defn twitter-button [] (let [base "?" size "size=l" domain "&url=/" text "&text=Learn to type fast with Type Letter ⌨💯" src (reduce str [base size domain text])] (fn [] [:iframe {:src src :scrolling "no" :width 80 ...
null
https://raw.githubusercontent.com/teawaterwire/type-letter/fe30703a313d02eb3844e1838161121ca828f083/src/cljs/type/dumb_views.cljs
clojure
(ns type.dumb-views) (defn twitter-button [] (let [base "?" size "size=l" domain "&url=/" text "&text=Learn to type fast with Type Letter ⌨💯" src (reduce str [base size domain text])] (fn [] [:iframe {:src src :scrolling "no" :width 80 ...
f50539362ad045d991dc6a046def8ecb385cb951d6f75c96eef45797a173df1c
diagrams/diagrams-cairo
beside.hs
# LANGUAGE TypeFamilies , FlexibleContexts # import Diagrams.Prelude import Diagrams.Backend.Cairo import Diagrams.Backend.Cairo.CmdLine import Diagrams.TwoD.Ellipse b :: (Backend b V2 Double, Renderable Ellipse b, Renderable (Path V2 Double) b) => Diagram b V2 Double b = beside (1,1) (rotate (pi/4 :: Rad) $ scaleY ...
null
https://raw.githubusercontent.com/diagrams/diagrams-cairo/533e4f4f18f961543bb1d78493c750dec45fd4a3/test/beside.hs
haskell
# LANGUAGE TypeFamilies , FlexibleContexts # import Diagrams.Prelude import Diagrams.Backend.Cairo import Diagrams.Backend.Cairo.CmdLine import Diagrams.TwoD.Ellipse b :: (Backend b V2 Double, Renderable Ellipse b, Renderable (Path V2 Double) b) => Diagram b V2 Double b = beside (1,1) (rotate (pi/4 :: Rad) $ scaleY ...
e8bcc48a19a3a2f992b9c0d7f5b34932771b7b80ab0f3ac44259c6d729a83911
albertoruiz/easyVision
CLK.hs
# LANGUAGE RecordWildCards , NamedFieldPuns , ViewPatterns # module Contours.CLK ( DeformableContour(..), noDeformable, LKDResult(..), lkd, refineProjective, refineDeformable, refineHN, homographyFromContours, diffCont, warpStep, projective )where import Numeric.LinearAlgebra h...
null
https://raw.githubusercontent.com/albertoruiz/easyVision/26bb2efaa676c902cecb12047560a09377a969f2/packages/contours/CLK/src/Contours/CLK.hs
haskell
-------------------------------------------------------------------- -------------------------------------------------------------------- ------------------------------------------------------------------------------ empty result means problems! (change to Maybe?) ------------------------------------------------------...
# LANGUAGE RecordWildCards , NamedFieldPuns , ViewPatterns # module Contours.CLK ( DeformableContour(..), noDeformable, LKDResult(..), lkd, refineProjective, refineDeformable, refineHN, homographyFromContours, diffCont, warpStep, projective )where import Numeric.LinearAlgebra h...
a25b533e69cfd444c932e1c6c71334296f3a9291fc719adc8ec0c315cbce5e98
geophf/1HaskellADay
Exercise.hs
module Y2016.M12.D09.Exercise where import Data.Aeson - So , there was this tweet : @RCGuerrilla 29m29 minutes ago # FF # Catholic @OnePeterFive @CrisisMag @geophf @hanmariams @EyeOfTheTiber @theghissilent # Follow Leading to the following response : Math problem Who is the most exclusive twee...
null
https://raw.githubusercontent.com/geophf/1HaskellADay/514792071226cd1e2ba7640af942667b85601006/exercises/HAD/Y2016/M12/D09/Exercise.hs
haskell
} }
module Y2016.M12.D09.Exercise where import Data.Aeson - So , there was this tweet : @RCGuerrilla 29m29 minutes ago # FF # Catholic @OnePeterFive @CrisisMag @geophf @hanmariams @EyeOfTheTiber @theghissilent # Follow Leading to the following response : Math problem Who is the most exclusive twee...
2dba7d0af4fadc9da0910ac4e776a4acfca1b56165befb799c2cb7b9779679db
mitsuji/mssql-simple
RpcQuerySet.hs
{-# OPTIONS_HADDOCK hide #-} {-# LANGUAGE BangPatterns #-} # LANGUAGE FlexibleInstances # # LANGUAGE TemplateHaskell # module Database.MSSQLServer.Query.RpcQuerySet ( RpcQuerySet (..) , RpcQuery (..) , RpcQueryId (..) ...
null
https://raw.githubusercontent.com/mitsuji/mssql-simple/76006bb9af0aa9032ef0f750977b6a24494a77e1/src/Database/MSSQLServer/Query/RpcQuerySet.hs
haskell
# OPTIONS_HADDOCK hide # # LANGUAGE BangPatterns # | There several ways provided for specify stored procedures. instance (Data a1, Data a2) => RpcParamSet (RpcParam a1, RpcParam a2) where toRpcReqBatchParams (d1,d2) = [p1,bp] where !p1 = rpcReqBatchParam d1 !p2 = rpcReqBatchParam d2 where ...
# LANGUAGE FlexibleInstances # # LANGUAGE TemplateHaskell # module Database.MSSQLServer.Query.RpcQuerySet ( RpcQuerySet (..) , RpcQuery (..) , RpcQueryId (..) , StoredProcedure (.....
b48b24d5d02e1c14c3fd75e8ea68c7ec1fd623a9ea7c07bc2041d8ecda580c78
gchrupala/morfette
FuzzyEditTree.hs
module GramLab.Data.Diff.FuzzyEditTree ( make , apply , check ) where import GramLab.Data.Diff.EditTree (split3) import qualified GramLab.Data.Diff.EditTree2 as ET2 import qualified GramLab.Data.Diff.E...
null
https://raw.githubusercontent.com/gchrupala/morfette/be40676c975d660bbb893953d354168506069862/src/GramLab/Data/Diff/FuzzyEditTree.hs
haskell
Quickchecks props are the same for all edit script types runtest should be in a separate module taking a record of functions to test against these properties
module GramLab.Data.Diff.FuzzyEditTree ( make , apply , check ) where import GramLab.Data.Diff.EditTree (split3) import qualified GramLab.Data.Diff.EditTree2 as ET2 import qualified GramLab.Data.Diff.E...
335ccc299458f3abf22a0904dcac852308ebfa4e2029280a0243cf0955b922c0
WorksHub/client
loadable.cljs
(ns wh.components.stats.loadable (:require [shadow.lazy :as lazy] [wh.re-frame :refer [atom]])) (def chart-lazy (lazy/loadable wh.components.stats.core/chart)) (def default (fn [] [:div])) (defn chart [_] (let [component (atom default) _promise (-> (lazy/load chart-lazy) ...
null
https://raw.githubusercontent.com/WorksHub/client/a51729585c2b9d7692e57b3edcd5217c228cf47c/common/src/wh/components/stats/loadable.cljs
clojure
(ns wh.components.stats.loadable (:require [shadow.lazy :as lazy] [wh.re-frame :refer [atom]])) (def chart-lazy (lazy/loadable wh.components.stats.core/chart)) (def default (fn [] [:div])) (defn chart [_] (let [component (atom default) _promise (-> (lazy/load chart-lazy) ...
decbe2acb7b0b1d94af0a4e29d049ef5aec8bdc7873ddbfd4a11ece5a8c29ab5
crisptrutski/boot-cljs-test
integration_suite.cljs
(ns boot-cljs-test-example.integration_suite (:require [doo.runner :refer-macros [doo-tests]] [boot-cljs-test-example.app-test])) (doo-tests 'boot-cljs-test-example.app-test)
null
https://raw.githubusercontent.com/crisptrutski/boot-cljs-test/307bc13a8b250d9583dd890c961cdec832238180/example/test/boot_cljs_test_example/integration_suite.cljs
clojure
(ns boot-cljs-test-example.integration_suite (:require [doo.runner :refer-macros [doo-tests]] [boot-cljs-test-example.app-test])) (doo-tests 'boot-cljs-test-example.app-test)
882bc3bdb1fe27f1f99f135e3dac47a06fd0c4af0ae16b5adc6540893fc87600
mtpearce/idyom
db2midi.lisp
;;;; ====================================================================== File : db2midi.lisp Author : < > Created : < 2005 - 06 - 09 11:01:51 > Time - stamp : < 2020 - 02 - 09 14:20:44 marcusp > ;;;; ====================================================================== (cl:in-package #:...
null
https://raw.githubusercontent.com/mtpearce/idyom/d0449a978c79f8ded74c509fdfad7c1a253c5a80/database/data-export/db2midi.lisp
lisp
====================================================================== ====================================================================== Export data Database events Helper
File : db2midi.lisp Author : < > Created : < 2005 - 06 - 09 11:01:51 > Time - stamp : < 2020 - 02 - 09 14:20:44 marcusp > (cl:in-package #:db2midi) (defvar *timebase* 96) (defvar *midc* 60) (defvar *tick-multiplier* 1) (defvar *default-tempo* 100) (defvar *default-velocity* 100) (defvar ...
b4f8e263da889b6d0299db1f0a9fe4896763c17abdab068647245f7e8b8c8d60
wireless-net/erlang-nommu
ssl_to_openssl_SUITE.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2008 - 2014 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Publi...
null
https://raw.githubusercontent.com/wireless-net/erlang-nommu/79f32f81418e022d8ad8e0e447deaea407289926/lib/ssl/test/ssl_to_openssl_SUITE.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitatio...
Copyright Ericsson AB 2008 - 2014 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(ssl_to_openssl_SUITE). -compile(e...
18ecaa18337c70a2ff453afff547c45307af39e49c979bf42962687b2095270d
gowthamk/ocaml-irmin
test_merge7.ml
original = | | q1 = q2 = |5||6| q1 = |5| q2 = |5||6| *) module U = struct let string_of_list f l = "[ " ^ List.fold_left (fun a b -> a ^ (f b) ^ "; ") "" l ^ "]" let print_header h = Printf.printf "%s" ("\n" ^ h ^ "\n") end (* Queue *) let _ = U.print_header "Heap7"; let module Atom = stru...
null
https://raw.githubusercontent.com/gowthamk/ocaml-irmin/54775f6c3012e87d2d0308f37a2ec7b27477e887/heap_leftist/mem/test_merge7.ml
ocaml
Queue
original = | | q1 = q2 = |5||6| q1 = |5| q2 = |5||6| *) module U = struct let string_of_list f l = "[ " ^ List.fold_left (fun a b -> a ^ (f b) ^ "; ") "" l ^ "]" let print_header h = Printf.printf "%s" ("\n" ^ h ^ "\n") end let _ = U.print_header "Heap7"; let module Atom = struct type t ...
962023e54ced05adf63570c51aed875062817020c6ae6905b529e6a94b526cc2
clojure-interop/java-jdk
KeyInfo.clj
(ns javax.xml.crypto.dsig.keyinfo.KeyInfo "A representation of the XML KeyInfo element as defined in the W3C Recommendation for XML-Signature Syntax and Processing. A KeyInfo contains a list of XMLStructures, each of which contain information that enables the recipient(s) to obtain the key needed to validat...
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.xml/src/javax/xml/crypto/dsig/keyinfo/KeyInfo.clj
clojure
(ns javax.xml.crypto.dsig.keyinfo.KeyInfo "A representation of the XML KeyInfo element as defined in the W3C Recommendation for XML-Signature Syntax and Processing. A KeyInfo contains a list of XMLStructures, each of which contain information that enables the recipient(s) to obtain the key needed to validat...
605730597b16095eff0d2826c5ad00abc2a306ad116f98b1b44f6a5fd9458dc1
HugoPeters1024/hs-sleuth
CaseMapping.hs
import System.Environment import System.IO import Arsec import CaseFolding import SpecialCasing main = do args <- getArgs let oname = case args of [] -> "../Data/Text/Internal/Fusion/CaseMapping.hs" [o] -> o psc <- parseSC "SpecialCasing.txt" pcf <- parseCF "CaseFolding.txt" ...
null
https://raw.githubusercontent.com/HugoPeters1024/hs-sleuth/385655e62031959a14a3bac5e9ccd1c42c045f0c/test-project/text-1.2.4.0/scripts/CaseMapping.hs
haskell
import System.Environment import System.IO import Arsec import CaseFolding import SpecialCasing main = do args <- getArgs let oname = case args of [] -> "../Data/Text/Internal/Fusion/CaseMapping.hs" [o] -> o psc <- parseSC "SpecialCasing.txt" pcf <- parseCF "CaseFolding.txt" ...
55f275a4d4ef62a7a8a62b06b285d558b1d0b166d9006f78abb036895563c99e
elaforge/karya
Solkattu.hs
Copyright 2017 -- This program is distributed under the terms of the GNU General Public -- License 3.0, see COPYING or -3.0.txt # LANGUAGE RecordWildCards # | Global imports for solkattu score modules . module Solkattu.Dsl.Solkattu ( module Solkattu.Dsl.Solkattu , module Solkattu.Dsl.Generic , module...
null
https://raw.githubusercontent.com/elaforge/karya/07bdeac32293a18f9ce982fab18d2802ea26b962/Solkattu/Dsl/Solkattu.hs
haskell
This program is distributed under the terms of the GNU General Public License 3.0, see COPYING or -3.0.txt * fragments 'spread' not work. ** fast variants ** standard fragments the solkattu are otherwise ambiguous, and too long anyway. I originally fast variants. These are more problematic because different r...
Copyright 2017 # LANGUAGE RecordWildCards # | Global imports for solkattu score modules . module Solkattu.Dsl.Solkattu ( module Solkattu.Dsl.Solkattu , module Solkattu.Dsl.Generic , module Solkattu.Dsl.Interactive ) where import Prelude hiding ((.), (^)) import qualified Data.List as List i...
3bc250940a5f9797d048eb996eed58e74e8cb7dda0d90aec8b5bc306e5689d8a
morpheusgraphql/morpheus-graphql
SourceText.hs
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE NoImplicitPrelude # {-# OPTIONS_GHC -Wno-overflowed-literals #-} module Data.Morpheus.Parsing.Internal.SourceText ( parseStringBS, ignoredTokens, ignoredTokens1, ) where import Data.ByteString.Lazy.Internal ( By...
null
https://raw.githubusercontent.com/morpheusgraphql/morpheus-graphql/f9684d1451fd4ee3aabdb821424fd352003a3982/morpheus-graphql-core/src/Data/Morpheus/Parsing/Internal/SourceText.hs
haskell
# LANGUAGE OverloadedStrings # # OPTIONS_GHC -Wno-overflowed-literals # Non-alphabetic characters /#sec-Source-Text
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE NoImplicitPrelude # module Data.Morpheus.Parsing.Internal.SourceText ( parseStringBS, ignoredTokens, ignoredTokens1, ) where import Data.ByteString.Lazy.Internal ( ByteString, ) import Data.Morpheus.Parsing.Internal.Internal ( Parser, ) imp...
f4dff8e86b9bf0f898a9505e541ec125865130aeb6f41efd352ad82da335eabc
tonyg/racket-unix-signals
install.rkt
#lang racket/base (require dynext/file dynext/link racket/file) (provide pre-installer) ;; Used by "../info.rkt" (so this-collection-path is ".."). Heavily based on bcrypt / private / install.rkt ;; (define (pre-installer collections-top-path this-collection-path) (define unix-signals/p...
null
https://raw.githubusercontent.com/tonyg/racket-unix-signals/a0c50918dac6cf5df7d0789d13dac9759eab5606/unix-signals/private/install.rkt
racket
Used by "../info.rkt" (so this-collection-path is ".."). not quiet
#lang racket/base (require dynext/file dynext/link racket/file) (provide pre-installer) Heavily based on bcrypt / private / install.rkt (define (pre-installer collections-top-path this-collection-path) (define unix-signals/private/ (build-path this-collection-path "private")) (para...
44d260b2ae6d259836716f416e0b157ca32fe75e0d9602ed98fa23bad7afe5d0
softwarelanguageslab/maf
R5RS_scp1_slide-in-4.scm
; Changes: * removed : 1 * added : 0 * swaps : 0 ; * negated predicates: 0 * swapped branches : 1 * calls to i d fun : 2 (letrec ((schuif-in! (lambda (l1 l2) (if (null? (cdr l1)) (<change> (begin (set...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_scp1_slide-in-4.scm
scheme
Changes: * negated predicates: 0
* removed : 1 * added : 0 * swaps : 0 * swapped branches : 1 * calls to i d fun : 2 (letrec ((schuif-in! (lambda (l1 l2) (if (null? (cdr l1)) (<change> (begin (set-cdr! l1 l2) ...
c720c8d243a39f52b6a626bf127d664b97c31dc7ec4937f44af08202ef575727
wdebeaum/step
winter.lisp
;;;; ;;;; W::winter ;;;; (define-words :pos W::n :templ COUNT-PRED-TEMPL :words ( (W::winter (SENSES ((meta-data :origin trips :entry-date 20060803 :change-date nil :comments nil :wn ("winter%1:28:00")) (LF-PARENT ONT::winter) (templ time-reln-templ) ) ) ) )) (define-words :pos W::n :...
null
https://raw.githubusercontent.com/wdebeaum/step/f38c07d9cd3a58d0e0183159d4445de9a0eafe26/src/LexiconManager/Data/new/winter.lisp
lisp
W::winter
(define-words :pos W::n :templ COUNT-PRED-TEMPL :words ( (W::winter (SENSES ((meta-data :origin trips :entry-date 20060803 :change-date nil :comments nil :wn ("winter%1:28:00")) (LF-PARENT ONT::winter) (templ time-reln-templ) ) ) ) )) (define-words :pos W::n :words ( ((W::WINTER W::...
bc083d5fc921d5aa3bdffc2a6c1444ae62f6574c37c00302b3d681c47398d77b
theodormoroianu/SecondYearCourses
lab6-sol_20210115145042.hs
-- / import Data.Char import Data.List import Test.QuickCheck 1 . rotate :: Int -> [Char] -> [Char] rotate n l | n > 0 , n < length l = suf ++ pre where (pre, suf) = splitAt n l rotate _ _ = error "număr negativ sau prea mare" 2 . prop_rotate :: Int -> String -> Bool prop_rotate k str = rotate (l ...
null
https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/99185b0e97119135e7301c2c7be0f07ae7258006/Haskell/l/.history/lab6/lab6-sol_20210115145042.hs
haskell
/
import Data.Char import Data.List import Test.QuickCheck 1 . rotate :: Int -> [Char] -> [Char] rotate n l | n > 0 , n < length l = suf ++ pre where (pre, suf) = splitAt n l rotate _ _ = error "număr negativ sau prea mare" 2 . prop_rotate :: Int -> String -> Bool prop_rotate k str = rotate (l + 1 -...
3b19f9a02f96be912be8f4fb87560280dec0e1a992d52415457d280602eaff14
issuu/sure-deploy
debounce.ml
(* simple and stupid debounce implementation *) open Core type t = { mutable last_triggered : Time.t; cooldown : Time.Span.t; } let init ?(cooldown_ms = 2000.) () = {last_triggered = Time.epoch; cooldown = Time.Span.of_ms cooldown_ms} let trigger v f = let now = Time.now () in let since_last_triggered = Ti...
null
https://raw.githubusercontent.com/issuu/sure-deploy/3df4298fd698dbdf221a8929e0c2b309728481f9/src/lib/debounce.ml
ocaml
simple and stupid debounce implementation
open Core type t = { mutable last_triggered : Time.t; cooldown : Time.Span.t; } let init ?(cooldown_ms = 2000.) () = {last_triggered = Time.epoch; cooldown = Time.Span.of_ms cooldown_ms} let trigger v f = let now = Time.now () in let since_last_triggered = Time.diff now v.last_triggered in match Time.Spa...
88d03c09a29accbedbc1f57d8f065038d65b4c455a4c8771da35a8087bf6ff5c
agda/agda
Lock.hs
# LANGUAGE NondecreasingIndentation # module Agda.TypeChecking.Lock ( isTimeless , checkLockedVars , checkEarlierThan ) where import Control.Monad ( filterM, forM, forM_ ) import qualified Data.IntMap as IMap import qualified Data.IntSet as ISet import qualified Data.Set as Set import Agda.Syntax...
null
https://raw.githubusercontent.com/agda/agda/bb3602f1d3d69439520ef7ab6327ccf63ffed811/src/full/Agda/TypeChecking/Lock.hs
haskell
^ term to check ^ its type ^ the lock ^ type of the lock Strategy: compute allowed variables, check that @t@ doesn't use more. flexible = IMap.keysSet $ flexibleVars fv flexVars = flexibleVars fv blockingMetas = map (`lookupVarMap` flexVars) (ISet.toList $ termVars ISet.\\ allowedVars) only flexible vars are i...
# LANGUAGE NondecreasingIndentation # module Agda.TypeChecking.Lock ( isTimeless , checkLockedVars , checkEarlierThan ) where import Control.Monad ( filterM, forM, forM_ ) import qualified Data.IntMap as IMap import qualified Data.IntSet as ISet import qualified Data.Set as Set import Agda.Syntax...
f7dbece36560ec13930d626edeedfa2f73420118deecf4520a3a5a84d7d31e13
NelosG/fp-tests
T1Quad.hs
# LANGUAGE StandaloneDeriving # module Test.T1Quad ( hspecQuad , propQuad ) where import HW2.T1 (Quad (Q), mapQuad) import Hedgehog (Gen) import Test.Common (allProps, genInt) import Test.Hspec (it, shouldBe) import Test.Tasty (TestTree) import Test.Tasty.Hspec (it, shouldBe, testSpec) deriving instance (Show a...
null
https://raw.githubusercontent.com/NelosG/fp-tests/7e2af5c3c3279c2045662faaff8e5f895af6af6a/hw2/test/T1/Test/T1Quad.hs
haskell
# LANGUAGE StandaloneDeriving # module Test.T1Quad ( hspecQuad , propQuad ) where import HW2.T1 (Quad (Q), mapQuad) import Hedgehog (Gen) import Test.Common (allProps, genInt) import Test.Hspec (it, shouldBe) import Test.Tasty (TestTree) import Test.Tasty.Hspec (it, shouldBe, testSpec) deriving instance (Show a...
b0ed111c27807f4a93a5aacec775ede3817990d184a9ed33cc86165b4382e618
Convex-Dev/convex-web
session.cljs
(ns convex-web.site.session (:require [convex-web.site.runtime :refer [disp sub]] [convex-web.site.gui :as gui] [convex-web.site.stack :as stack] [clojure.string :as str] [re-frame.core :as re-frame] [convex-web.site.db :as db] [convex-web.site...
null
https://raw.githubusercontent.com/Convex-Dev/convex-web/0e62b3ccfc3751c852c6ccc9203ae51ff35a9f96/src/main/clojure/convex_web/site/session.cljs
clojure
(ns convex-web.site.session (:require [convex-web.site.runtime :refer [disp sub]] [convex-web.site.gui :as gui] [convex-web.site.stack :as stack] [clojure.string :as str] [re-frame.core :as re-frame] [convex-web.site.db :as db] [convex-web.site...
b1a087a5b6629d6e5443a81fb22e3e4d8e1dc8212ba5a493d8255962214fff28
Oblosys/proxima
DPP.hs
{-# OPTIONS_GHC -fglasgow-exts -fallow-overlapping-instances -fallow-undecidable-instances -fno-monomorphism-restriction #-} module DPP where import Layers import DPP_Lib import DPPClass_Lib import Char liftE ' : : Simple state map doc pres gest upd - > state - > LayerE doc pres gest upd ...
null
https://raw.githubusercontent.com/Oblosys/proxima/f154dff2ccb8afe00eeb325d9d06f5e2a5ee7589/papers/Haskell%202008/Haskell/src/DPP.hs
haskell
# OPTIONS_GHC -fglasgow-exts -fallow-overlapping-instances -fallow-undecidable-instances -fno-monomorphism-restriction # ------------------------------------------------------ editLoop :: Layer Document Rendering EditRendering EditDocument -> Document -> IO () main :: IO ()
module DPP where import Layers import DPP_Lib import DPPClass_Lib import Char liftE ' : : Simple state map doc pres gest upd - > state - > LayerE doc pres gest upd liftE ' layer state = presStep state where presStep state = LayerE ( \doc - > let ( pres , ( m...
f820f456f37433d3b72b8326bd8dec295d8128230ced8e165b8a6b208ea7cd03
albertoruiz/easyVision
play2.hs
import EasyVision f = gaussS 5.7 . float . grayscale main = run (camera >>= observe "Gauss" f)
null
https://raw.githubusercontent.com/albertoruiz/easyVision/26bb2efaa676c902cecb12047560a09377a969f2/projects/old/tutorial/play2.hs
haskell
import EasyVision f = gaussS 5.7 . float . grayscale main = run (camera >>= observe "Gauss" f)
9b1daf677693016e8f1f65fedd3080c6a6eeca4fc8e9cb78f4f7828e5c4ae410
larrychristensen/orcpub
modifiers.cljc
(ns orcpub.dnd.e5.modifiers (:require [clojure.spec.alpha :as spec] [clojure.string :as s] [orcpub.common :as common] [orcpub.modifiers :as mods] [orcpub.entity-spec :as es] [orcpub.dnd.e5.character :as char5e] [orcpub.dnd.e5.character.equipment ...
null
https://raw.githubusercontent.com/larrychristensen/orcpub/e83995857f7e64af1798009a45a0b03abcd3a4be/src/cljc/orcpub/dnd/e5/modifiers.cljc
clojure
"Saving Throws" (s/join ", " (map (comp s/upper-case name) abilities))
(ns orcpub.dnd.e5.modifiers (:require [clojure.spec.alpha :as spec] [clojure.string :as s] [orcpub.common :as common] [orcpub.modifiers :as mods] [orcpub.entity-spec :as es] [orcpub.dnd.e5.character :as char5e] [orcpub.dnd.e5.character.equipment ...
792e399e6905b888b98e43d5ed00907c0ecefd8f8ce75b30f5dd447390ad8aef
Liqwid-Labs/liqwid-libs
Value.hs
# LANGUAGE ExistentialQuantification # # LANGUAGE PolyKinds # # LANGUAGE ViewPatterns # module Plutarch.Extra.Value ( -- * Creation passetClassDataValue, passetClassDataValueT, psingleValue, psingleValue', psingleValueT', pvalue, pvaluePositive, -- * Queries padaOf, passetClassValueOf', passet...
null
https://raw.githubusercontent.com/Liqwid-Labs/liqwid-libs/0898f8fdeeeacf3dd3a0e693711a2cfadcdc6629/liqwid-plutarch-extra/src/Plutarch/Extra/Value.hs
haskell
* Creation * Queries * Aggregation and elimination * Comparison * Miscellaneous ------------------------------------------------------------------------------ -------------------------------------- Value Creation > PValue ' Sorted ' NonZero ) > PAsData PTokenName > PInteger > PBuiltinPair > PBuiltinPair > PBuilt...
# LANGUAGE ExistentialQuantification # # LANGUAGE PolyKinds # # LANGUAGE ViewPatterns # module Plutarch.Extra.Value ( passetClassDataValue, passetClassDataValueT, psingleValue, psingleValue', psingleValueT', pvalue, pvaluePositive, padaOf, passetClassValueOf', passetClassValueOf, passetClassValu...
f3ff9e639704bd40ff05fba518d0b17ddad8ad8999020f0b7cb87492f50681b5
Helium4Haskell/helium
AppNotEnough2.hs
module AppNotEnough2 where main = [ i | i <- [1..10], (==) i ]
null
https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/typeerrors/Heuristics/AppNotEnough2.hs
haskell
module AppNotEnough2 where main = [ i | i <- [1..10], (==) i ]
beef7fe844708925b57ec66214ee90ad4df034a34128a83e1c8eca8b4c3ecfd3
unnohideyuki/bunny
sample332.hs
main = do putStr "Haskell" putChar ' ' putStrLn "Compiler"
null
https://raw.githubusercontent.com/unnohideyuki/bunny/5ba16325561b67f93e7144d92752ff8e882f7e09/compiler/test/samples/sample332.hs
haskell
main = do putStr "Haskell" putChar ' ' putStrLn "Compiler"
49b7f090841390e4b642aa12ec5b11566a18f040ef0566ad8d94eab1354c3f3d
khibino/haskell-relational-record
Derives.hs
# LANGUAGE FlexibleContexts # -- | -- Module : Database.Relational.Derives Copyright : 2013 - 2019 -- License : BSD3 -- -- Maintainer : -- Stability : experimental -- Portability : unknown -- This module defines typed SQLs derived from type informations . module Database.Relational.Derives ( --...
null
https://raw.githubusercontent.com/khibino/haskell-relational-record/759b3d7cea207e64d2bd1cf195125182f73d2a52/relational-query/src/Database/Relational/Derives.hs
haskell
| Module : Database.Relational.Derives License : BSD3 Maintainer : Stability : experimental Portability : unknown * Query derivation * Update derivation * Derived objects from table * Deprecated | Query restricted with specified key. ^ Projection path ^ 'Relation' to add restriction. ^ Resu...
# LANGUAGE FlexibleContexts # Copyright : 2013 - 2019 This module defines typed SQLs derived from type informations . module Database.Relational.Derives ( specifiedKey, uniqueSelect, primarySelect, updateByConstraintKey, primaryUpdate, updateValuesWithKey, derivedUniqueRelation, unique, ...
6442f6ca61b4eee788331ffe573a6084b67c0c7e377261145ee8b07f61df7044
JPMoresmau/scion-class-browser
TempFile.hs
Taken from Cabal source -- -1.10.2.0 {-# OPTIONS -cpp #-} OPTIONS required for ghc-6.4.x compat , and must appear first # LANGUAGE CPP , ScopedTypeVariables # # OPTIONS_GHC -cpp # # OPTIONS_NHC98 -cpp # # OPTIONS_JHC -fcpp # -- #hide module Scion.PersistentBrowser.TempFile ( openTempFile, openBinaryT...
null
https://raw.githubusercontent.com/JPMoresmau/scion-class-browser/572cc2c1177bdaa9558653cc1d941508cd4c7e5b/src/Scion/PersistentBrowser/TempFile.hs
haskell
-1.10.2.0 # OPTIONS -cpp # #hide ------------------------------------------------------------ * temporary files ------------------------------------------------------------ use a temporary filename that doesn't already exist. This is a copy/paste of the openBinaryTempFile definition, but needs to be chan...
Taken from Cabal source OPTIONS required for ghc-6.4.x compat , and must appear first # LANGUAGE CPP , ScopedTypeVariables # # OPTIONS_GHC -cpp # # OPTIONS_NHC98 -cpp # # OPTIONS_JHC -fcpp # module Scion.PersistentBrowser.TempFile ( openTempFile, openBinaryTempFile, openNewBinaryFile, createTempDi...
21514ff8cad3d4ad3117b5062afc29be7fa7a192572b028fb01ef159ce8b804a
semerdzhiev/fp-2020-21
tasks.rkt
#lang racket Задача 0 : Да се дефинира функция ( take n l ) , която връща първите n елемента на списъка l (define (take n l) ( if (or (empty? l) (= n 0)) null (cons (car l) (take (- n 1) (cdr l))) ) ) Задача 1 : Да се дефинира функция ( drop n l ) , на списъка l (define (drop n l) ( ...
null
https://raw.githubusercontent.com/semerdzhiev/fp-2020-21/64fa00c4f940f75a28cc5980275b124ca21244bc/group-c/week04/tasks.rkt
racket
append, fold(l/r), map, filter ...
#lang racket Задача 0 : Да се дефинира функция ( take n l ) , която връща първите n елемента на списъка l (define (take n l) ( if (or (empty? l) (= n 0)) null (cons (car l) (take (- n 1) (cdr l))) ) ) Задача 1 : Да се дефинира функция ( drop n l ) , на списъка l (define (drop n l) ( ...
f602c00dc66f8266f6695f169a462bbd9f34ab732501015fec8e32f590d8db67
BekaValentine/SimpleFP-v2
Elaboration.hs
{-# OPTIONS -Wall #-} -- | This module defines how elaboration of programs is performed. module Modular.Unification.Elaboration where import Utils.ABT import Utils.Elaborator import Utils.Names import Utils.Plicity import Utils.Pretty import Utils.Telescope import Utils.Vars import Modular.Core.ConSig import M...
null
https://raw.githubusercontent.com/BekaValentine/SimpleFP-v2/ae00ec809caefcd13664395b0ae2fc66145f6a74/src/Modular/Unification/Elaboration.hs
haskell
# OPTIONS -Wall # | This module defines how elaboration of programs is performed. | We can add a new defined value declaration given a name, term, and type. | We can add a new constructor by giving a name and a signature. | We can add an alias to the current collection of aliases. | We can add a module name to the...
module Modular.Unification.Elaboration where import Utils.ABT import Utils.Elaborator import Utils.Names import Utils.Plicity import Utils.Pretty import Utils.Telescope import Utils.Vars import Modular.Core.ConSig import Modular.Core.Program import Modular.Core.Term import Modular.Unification.Elaborator import...
60978bcf34a402863140afaabae3d1f575ef24f868a5fe3d717a51217c332e65
ucsd-progsys/dsolve
pattern.ml
* Copyright © 2008 The Regents of the University of California . All rights reserved . * * Permission is hereby granted , without written agreement and without * license or royalty fees , to use , copy , modify , and distribute this * software and its documentation for any purpose , provided that the ...
null
https://raw.githubusercontent.com/ucsd-progsys/dsolve/bfbbb8ed9bbf352d74561e9f9127ab07b7882c0c/liquid/pattern.ml
ocaml
* Copyright © 2008 The Regents of the University of California . All rights reserved . * * Permission is hereby granted , without written agreement and without * license or royalty fees , to use , copy , modify , and distribute this * software and its documentation for any purpose , provided that the ...
89a0f4344c3b92a018e3b9f7230c5e053104c50c2b35d8b2e42b7f1f63794203
den1k/vimsical
validation_test.cljc
(ns vimsical.vcs.validation-test (:require #?(:clj [clojure.test :as t] :cljs [cljs.test :as t :include-macros true]) [vimsical.common.test :refer [uuid]] [vimsical.vcs.alg.topo :as topo] [vimsical.vcs.validation :as sut])) ;; ;; * Mock data ;; (defn stub-deltas ([] (stub-deltas (uuid :branch))...
null
https://raw.githubusercontent.com/den1k/vimsical/1e4a1f1297849b1121baf24bdb7a0c6ba3558954/test/vcs/vimsical/vcs/validation_test.cljc
clojure
* Mock data * Heleprs * Tests
(ns vimsical.vcs.validation-test (:require #?(:clj [clojure.test :as t] :cljs [cljs.test :as t :include-macros true]) [vimsical.common.test :refer [uuid]] [vimsical.vcs.alg.topo :as topo] [vimsical.vcs.validation :as sut])) (defn stub-deltas ([] (stub-deltas (uuid :branch))) ([branch-uid] ...
a7d9dcdbe1145f0011034bba69c018ca4f6e203e60c3902dfae79a2094ac162c
ocaml/ocaml
bytelink.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml/ocaml/dcf9181b56f1b08989b878110114dbe184576495/bytecomp/bytelink.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Misc module Dep : Set.OrderedType with type t = modname * modname module DepSet : Set.S with type ...
2a167125c70c727c2d402c15ca9cb2bec7bc7cf4e38ac537f2d43bdc6fc4e0bc
jeromesimeon/Galax
print_type_core.ml
(***********************************************************************) (* *) (* GALAX *) (* XQuery Engine *) (* ...
null
https://raw.githubusercontent.com/jeromesimeon/Galax/bc565acf782c140291911d08c1c784c9ac09b432/ast_printer/print_type_core.ml
ocaml
********************************************************************* GALAX XQuery Engine ...
Copyright 2001 - 2007 . $ I d : print_type_core.ml , v 1.11 2007/08/15 18:53:48 mgreenberg Exp $ open Format open Error open Occurrence open Xquery_type_core_ast open Print_common open Namespace_symbols_util let raise_simple_type_with_attribute_content_error (...
e56d60750229a59bb8abb1e83add2849f42ab9e47b4dfd408607468bb3fdc011
S8A/htdp-exercises
ex486.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex486) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-...
null
https://raw.githubusercontent.com/S8A/htdp-exercises/578e49834a9513f29ef81b7589b28081c5e0b69f/ex486.rkt
racket
about the language level of this file in a form that our tools can easily process. that verify this claim. n² + n <= c·n² n² + n <= c·n² 1 + 1/n <= c To prove that c exists we have to check if the left hand expression grows indefinitely as n grows or not: that n² + n belongs t...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex486) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) Q : In the first subsection , we stated that the func...